{"_id":"@portabletext/patches","_rev":"26-2a15f1bb56cccb90b242bea11c8974bb","name":"@portabletext/patches","dist-tags":{"canary":"2.0.0-canary.0","latest":"3.0.3"},"versions":{"1.0.0":{"name":"@portabletext/patches","version":"1.0.0","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.0.0","homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"db5168c21e82b3a8488cc456a3c3c433bb71421a","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.0.0.tgz","fileCount":17,"integrity":"sha512-yI1RVhP24JnztNbztDAlvmjc07axQkB4JqbPlUQrLNv/I9qQOn2m1g4Sb1qTWT/WeBmiMDeygXGdD2HPOIw9kQ==","signatures":[{"sig":"MEQCIHLmdBeYvftDFvqZajpwkqEGVMcImltAR68XNmwdbuI0AiAwIoerJuXwDcK6XAL/AyYCbUr/US0b9YV4F/7pyfGb7g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63402},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","build":"pkg-utils build --strict --check --clean","lint:fix":"eslint . --fix","check:lint":"eslint .","check:types":"tsc --noEmit --pretty"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/3ee6ba391acf720eef8486122dbfd974/portabletext-patches-1.0.0.tgz","_integrity":"sha512-yI1RVhP24JnztNbztDAlvmjc07axQkB4JqbPlUQrLNv/I9qQOn2m1g4Sb1qTWT/WeBmiMDeygXGdD2HPOIw9kQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.7.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","typescript":"^5.5.2","@sanity/types":"^3.47.1","@types/lodash":"^4.17.5","@sanity/pkg-utils":"^6.10.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.14.1","@typescript-eslint/eslint-plugin":"^7.14.1","eslint-plugin-simple-import-sort":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.0.0_1719479336816_0.39902944637190685","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@portabletext/patches","version":"1.0.1","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.0.1","homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"a5db1bc332feae6ecf18e8b994e049e50f94c979","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.0.1.tgz","fileCount":17,"integrity":"sha512-mDb7GwrLRXOxag3cOrCKVXy6Y7Hk8oZwLYIkBpsbwkkjUrUQN2H0ZbgRHrL+wyhFoyiZF5TJSnN9/S69MXfcAw==","signatures":[{"sig":"MEYCIQDL0gJ8uvR6VBEnEsYZJ+WE3R9d81Stk2sa1UMOzDC3aAIhAJ6GHnDO1MgYmaRefLukiSGmGkwBkBqZuDEBgctxhQ/I","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63402},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","build":"pkg-utils build --strict --check --clean","lint:fix":"eslint . --fix","check:lint":"eslint .","check:types":"tsc --noEmit --pretty"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/03b1a5a07025ab3d276c82fad59bb872/portabletext-patches-1.0.1.tgz","_integrity":"sha512-mDb7GwrLRXOxag3cOrCKVXy6Y7Hk8oZwLYIkBpsbwkkjUrUQN2H0ZbgRHrL+wyhFoyiZF5TJSnN9/S69MXfcAw==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.7.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","typescript":"^5.5.2","@sanity/types":"^3.47.1","@types/lodash":"^4.17.5","@sanity/pkg-utils":"^6.10.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.14.1","@typescript-eslint/eslint-plugin":"^7.14.1","eslint-plugin-simple-import-sort":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.0.1_1719479658832_0.8920179495598783","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@portabletext/patches","version":"1.0.2","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.0.2","homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"7746148778e3f720ed736a11a17d7f2f95caeeb7","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.0.2.tgz","fileCount":17,"integrity":"sha512-vRENK7hwja/gHOtqvGKY9SewrPRnLnJy7CX2dIQQnUkL4GZmUQ/mSYjNBVDJqk30JbYpZPsxhkftjzK/g3BkRA==","signatures":[{"sig":"MEUCIQCoCQzzMqHsrC/JrlmQvi2loaCcLwJAYLE5Nme7yG5yhgIgLh/kGWomW++n5PJlExBxF8KT3sg9Y3Le2VpQgpRwCcU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63402},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","build":"pkg-utils build --strict --check --clean","lint:fix":"eslint . --fix","check:lint":"eslint .","check:types":"tsc --noEmit --pretty"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/ce95c84a7c1be938de5f22663af428f2/portabletext-patches-1.0.2.tgz","_integrity":"sha512-vRENK7hwja/gHOtqvGKY9SewrPRnLnJy7CX2dIQQnUkL4GZmUQ/mSYjNBVDJqk30JbYpZPsxhkftjzK/g3BkRA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.7.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","typescript":"^5.5.2","@sanity/types":"^3.48.1","@types/lodash":"^4.17.5","@sanity/pkg-utils":"^6.10.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.14.1","@typescript-eslint/eslint-plugin":"^7.14.1","eslint-plugin-simple-import-sort":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.0.2_1719480933995_0.2847567464851799","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@portabletext/patches","version":"1.1.0","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.0","maintainers":[{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"911451bc6f9d00c0a5b689bf784bbb701c97e10a","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.0.tgz","fileCount":16,"integrity":"sha512-2qn4WaRc23m5qRwclT3sAyuHwTyjxCb4Lg0BQyhp7CABd83HtnPPYoP6hycREs6HRdWA48H3sU5gqUVPoxJxdg==","signatures":[{"sig":"MEQCIACbJ/MqPk9/InjzNcGgGUK/s/MZ71mvqihiHTQUNKpaAiB1L1GXdIgiJs13+vWV0KcftsTPDZbJnZ6UVxIp8LYnUg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63092},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"eslint . --fix","check:lint":"eslint .","check:types":"tsc --noEmit --pretty"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/fe3b6bc700844ff6a065319110c9d29c/portabletext-patches-1.1.0.tgz","_integrity":"sha512-2qn4WaRc23m5qRwclT3sAyuHwTyjxCb4Lg0BQyhp7CABd83HtnPPYoP6hycREs6HRdWA48H3sU5gqUVPoxJxdg==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.7.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"20.15.1","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","typescript":"^5.5.3","@types/lodash":"^4.17.7","@sanity/pkg-utils":"^6.10.6","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.17.0","@typescript-eslint/eslint-plugin":"^7.17.0","eslint-plugin-simple-import-sort":"^12.1.1"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.0_1722494196081_0.7534115018632788","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@portabletext/patches","version":"1.1.1","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.1","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"a9fe8ba218a45fde8f02b86a6d2a38acf51712b1","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.1.tgz","fileCount":17,"integrity":"sha512-FXeVdLvSJ3JmZzS0dbxEFJZXplFo7K27/Twv0/dX/l86tfhhUkDSqaTlWcigxuibvohjdEYp2mB8Ucgao/JzIQ==","signatures":[{"sig":"MEUCIAwFv+JYf89U5+lgxTUvN6AwYzuqGxTKesMp/clqtiJ/AiEAv7fppOPYrLIillqKX/vtzH/v/JrTizaLt8FoQ9IK5NI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63904},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","check:lint":"biome lint .","check:types":"tsc --noEmit --pretty"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/b6185ac4b4cb2c55c335d2d29f11a503/portabletext-patches-1.1.1.tgz","_integrity":"sha512-FXeVdLvSJ3JmZzS0dbxEFJZXplFo7K27/Twv0/dX/l86tfhhUkDSqaTlWcigxuibvohjdEYp2mB8Ucgao/JzIQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.9.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.1.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.7.2","@types/lodash":"^4.17.13","@sanity/pkg-utils":"^6.12.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.1_1734548364553_0.23745536209089457","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@portabletext/patches","version":"1.1.2","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.2","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"504c974c51b075c3c0ec71f765449ac09e68a718","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.2.tgz","fileCount":17,"integrity":"sha512-ENGxLD+AJc2Uq2GfDCNmeU/9dT50VYBMX5zKYyPVw2/OYDEpLYDlEZBjh0v0RqEuE2ecUu+eBaHf4PE6C0CoQQ==","signatures":[{"sig":"MEUCIQC5ihqHmzDf/F6Z2C3JKla5GyJzFWf5aHQc+qCeJ3SLwgIgGgjHody9QfzFmgtNx4HwKrKM4eBIL4VDzuOBETt5WBQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63903},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","check:lint":"biome lint .","check:types":"tsc --noEmit --pretty"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/8dca7ac10df523b646b9fed0ed25fc9f/portabletext-patches-1.1.2.tgz","_integrity":"sha512-ENGxLD+AJc2Uq2GfDCNmeU/9dT50VYBMX5zKYyPVw2/OYDEpLYDlEZBjh0v0RqEuE2ecUu+eBaHf4PE6C0CoQQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.9.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.7.3","@types/lodash":"^4.17.13","@sanity/pkg-utils":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.2_1737551307912_0.6811767412894971","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@portabletext/patches","version":"1.1.3","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.3","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"98ff9e59204bbde2d2cc2e316ef06bc0170781d7","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.3.tgz","fileCount":18,"integrity":"sha512-9olhOppydPR/UoMVf9w3SxHR3l9UJ66GoI/hnG34ESf6ccewI6cgLMXdcn9MPiFIve46hFMO/hP7g7exmN6RSg==","signatures":[{"sig":"MEQCIC47oEwLZL5JtPXkxvfPQ7uT+ZIaD5Bp90nwmPUnJYftAiBM/cDRANarZzgIDsnJyxCXB4XkSay1cqnlwVsUc9Gw6w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":64460},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/a70fd2a3967a4c74b2fadca0a88f83e1/portabletext-patches-1.1.3.tgz","_integrity":"sha512-9olhOppydPR/UoMVf9w3SxHR3l9UJ66GoI/hnG34ESf6ccewI6cgLMXdcn9MPiFIve46hFMO/hP7g7exmN6RSg==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.9.2","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.5","typescript":"5.7.3","@types/lodash":"^4.17.13","@sanity/pkg-utils":"^7.0.4"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.3_1739291611871_0.7196873121404166","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"@portabletext/patches","version":"1.1.4","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.4","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"23e98fc22be7cbceb6f827eda39c3cd13ec1820e","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.4.tgz","fileCount":19,"integrity":"sha512-t9+KxNjkffcydUxId4/7F5kyYvSzuuHscjkEQrT1CDWJZF8Z6PSsbq5WkbMwHopBuL5K5iKBBIv78GkzuZFncA==","signatures":[{"sig":"MEYCIQDDGxa3mJPhn2Bw4/riNwPzCi8YyTqo/ufQM+sR/19TGQIhAJ66UtIKUJRnD46oObKVmCp5GViDkCfJ13ncj4gN8jZX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":69943},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/77be4b0ebeadfb2b96db6b15e0c38236/portabletext-patches-1.1.4.tgz","_integrity":"sha512-t9+KxNjkffcydUxId4/7F5kyYvSzuuHscjkEQrT1CDWJZF8Z6PSsbq5WkbMwHopBuL5K5iKBBIv78GkzuZFncA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.9.2","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.15.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.1.4","typescript":"5.8.3","@types/lodash":"^4.17.16","@sanity/pkg-utils":"^7.2.3"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.4_1748544376136_0.7459275984908156","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"@portabletext/patches","version":"1.1.5","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.5","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"3635a23fd61c75d6e102afd2048ae24533f4cf0e","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.5.tgz","fileCount":19,"integrity":"sha512-XO9STk1ALQFGvW+gFoY3Ay5ODdr26iRg6ajKHPDanKLko5blPmfcYBpAlfOjFVxvOdeaPmoNuccwlf/0zIp/lA==","signatures":[{"sig":"MEQCIAK8cJhM2Z+qvl8E8cQsdQAGA71livBszp29oYrRKRdAAiAVNn8OkqJUkNS5uxOhr4s4Oy9wPMu5xf7N9DzIauihsQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":69993},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"sanity-io","actor":{"name":"sanity-io","type":"user","email":"developers@sanity.io"},"email":"developers@sanity.io"},"_resolved":"/tmp/9ef5928c812dffdf7acc12624100fd79/portabletext-patches-1.1.5.tgz","_integrity":"sha512-XO9STk1ALQFGvW+gFoY3Ay5ODdr26iRg6ajKHPDanKLko5blPmfcYBpAlfOjFVxvOdeaPmoNuccwlf/0zIp/lA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.9.2","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.3","typescript":"5.8.3","@types/lodash":"^4.17.16","@sanity/pkg-utils":"^7.6.2"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.5_1750408397054_0.1065400573415698","host":"s3://npm-registry-packages-npm-production"}},"2.0.0-canary.0":{"name":"@portabletext/patches","version":"2.0.0-canary.0","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@2.0.0-canary.0","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"3d27fe898e04215e66c460b0b17fbfae0be9e75b","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-2.0.0-canary.0.tgz","fileCount":19,"integrity":"sha512-XzhM1Aur1MOm8N8yg7WyltsS2ulOxCCJaSwqnpB/MwZ3EnryYJs9pjq0/KyA39ZXPWDArBdEksSs16xKfdFwEg==","signatures":[{"sig":"MEUCIHmiE7O9k+rDZOMz+z0XZtTj6Wupv6yVkS+P81RWK9TeAiEAmm/VmbkjXEbC800gmqd2ymg4qNnlXTyFn5RlHPjSSMc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69820},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-2.0.0-canary.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"stipsan","email":"stipsan@gmail.com"},"_resolved":"/private/var/folders/8f/k11x70td0x710myjxc29z94h0000gp/T/78eccda8a1f6abd3cf77c39dc83b7d7b/portabletext-patches-2.0.0-canary.0.tgz","_integrity":"sha512-XzhM1Aur1MOm8N8yg7WyltsS2ulOxCCJaSwqnpB/MwZ3EnryYJs9pjq0/KyA39ZXPWDArBdEksSs16xKfdFwEg==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.9.2","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"5.8.3","@types/lodash":"^4.17.16","@sanity/pkg-utils":"^7.9.6"},"_npmOperationalInternal":{"tmp":"tmp/patches_2.0.0-canary.0_1752777828118_0.21131325044424365","host":"s3://npm-registry-packages-npm-production"}},"1.1.6":{"name":"@portabletext/patches","version":"1.1.6","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.6","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"cf245689921decef01c43dd1c543f9604bbfa7cb","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.6.tgz","fileCount":19,"integrity":"sha512-1cjL+HIZ85KxAWcFD6M6gKPAaEm1SjqvRrltBreaTlWS8tebghxJAKW47doGzwQzB1I2sG069CoGqgLcRsT8OA==","signatures":[{"sig":"MEUCIQDeUQO9I9yuR2Z3KAqAcI90gOrRNPTA8KrpqqQpilO0xwIgBmy2vc6F4iUip7xT+yd+SBIGENLrFH2wHwVNAQ/Typg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":69811},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.6.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/221155d4fd30a38463a190b80408754f/portabletext-patches-1.1.6.tgz","_integrity":"sha512-1cjL+HIZ85KxAWcFD6M6gKPAaEm1SjqvRrltBreaTlWS8tebghxJAKW47doGzwQzB1I2sG069CoGqgLcRsT8OA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"10.9.2","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.17.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"5.8.3","@types/lodash":"^4.17.16","@sanity/pkg-utils":"^7.9.6"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.6_1752782014534_0.06947492383502785","host":"s3://npm-registry-packages-npm-production"}},"1.1.7":{"name":"@portabletext/patches","version":"1.1.7","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.7","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"0c31d6fddc0eea3a75dc0ed59d595b9f1e0cc44c","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.7.tgz","fileCount":19,"integrity":"sha512-rismkBJvFcHZJdHLu4f8VbqqY7OepPzBxFmdKGQMqyRghJBQeoEWJrp96i4nOWocPZwtlDlxGN/BLrB3TMRkbQ==","signatures":[{"sig":"MEYCIQD9qkwD/2b99u4QIyLtA9lV2u/qPc0pT3aYgBt4UIiW/QIhAPznhNB+d2+1TwOEDykiNZs2LjGwgBm1IJ50EgeYHM0K","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":69812},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.7.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/0e35dafd22aec40cd84b054d46742a4c/portabletext-patches-1.1.7.tgz","_integrity":"sha512-rismkBJvFcHZJdHLu4f8VbqqY7OepPzBxFmdKGQMqyRghJBQeoEWJrp96i4nOWocPZwtlDlxGN/BLrB3TMRkbQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.5.2","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"5.9.2","@types/lodash":"^4.17.16","@sanity/pkg-utils":"^7.11.1"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.7_1755705178090_0.47880101250101603","host":"s3://npm-registry-packages-npm-production"}},"1.1.8":{"name":"@portabletext/patches","version":"1.1.8","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@1.1.8","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"4f1ff7a3138c8d1d79a988c8369c1f4fb6b49a04","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-1.1.8.tgz","fileCount":19,"integrity":"sha512-L2eIdfzN4WHGxmvsvUVEKpayJrNTzGktexMG2Xop9f4rWbH1I7KwHivjZ0NgroYHDwFPFhZadciwW1ehFPbZAg==","signatures":[{"sig":"MEUCIEfG3Y+0Dguoza1tdcxezSrbf5fZp3zcZsbLYmUEKCJ9AiEAjsb9BUEhwuxlfFSjuN8Rdf8oup9Vep8ZmkiQXAxYsz0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@1.1.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":72561},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-patches-1.1.8.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/a1c07619790ac99134a4cfdfa96f5e0d/portabletext-patches-1.1.8.tgz","_integrity":"sha512-L2eIdfzN4WHGxmvsvUVEKpayJrNTzGktexMG2Xop9f4rWbH1I7KwHivjZ0NgroYHDwFPFhZadciwW1ehFPbZAg==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.5.2","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"5.9.2","@types/lodash":"^4.17.20","@sanity/pkg-utils":"^7.11.9"},"_npmOperationalInternal":{"tmp":"tmp/patches_1.1.8_1755763301075_0.7657626585066895","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@portabletext/patches","version":"2.0.0","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@2.0.0","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"de6fc77f0eafe1c4bce901dee4961db329e22c0e","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-2.0.0.tgz","fileCount":16,"integrity":"sha512-EmoUhyeOYahQrG3kafplwr/apAlNby79sKFbfLhnGZsrAXcNwyUqIHbBzBVRA1WmnpDep18VfAqs9A4mbHTQIg==","signatures":[{"sig":"MEUCIEfK+OpIEjJRqCOhpcZ5/pETXalWKuGk+9VRBCribU4sAiEAzW3S0atrmVnAVmegyqgopU0KfXFw/LXq2U7QP7Q9zl8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":48115},"main":"./dist/index.js","type":"module","_from":"file:portabletext-patches-2.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.19 <22 || >=22.12"},"exports":{".":{"source":"./src/index.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/6130ebec6188bcd660b039fc225e30bc/portabletext-patches-2.0.0.tgz","_integrity":"sha512-EmoUhyeOYahQrG3kafplwr/apAlNby79sKFbfLhnGZsrAXcNwyUqIHbBzBVRA1WmnpDep18VfAqs9A4mbHTQIg==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.6.2","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.5","typescript":"5.9.3","@types/lodash":"^4.17.20","@sanity/pkg-utils":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_2.0.0_1762267962509_0.1805672393234916","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@portabletext/patches","version":"2.0.1","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@2.0.1","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"d0f4f3b5eb1b157b31505c05519046789d96ef62","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-2.0.1.tgz","fileCount":6,"integrity":"sha512-+5soGhetPtRQd1I1+xQkTKw+gMGUHUsbtJ/WZTjuLo6TF/TusaMx1T7333Ny7AI/HU177tPAmzt5QS7cIF07WA==","signatures":[{"sig":"MEQCIFJZVAXdeeF6Mwoqscfk6FYJoDKNa9BFs/+B4UaLukWVAiAoqq68kZiR1fhO2Z9GwBmZ20U0rQQ2MOCpLqR2om/bKQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28586},"main":"./dist/index.js","type":"module","_from":"file:portabletext-patches-2.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.19 <22 || >=22.12"},"exports":{".":{"source":"./src/index.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/0ccb62a9adf1755b2d4f191cb68fad9e/portabletext-patches-2.0.1.tgz","_integrity":"sha512-+5soGhetPtRQd1I1+xQkTKw+gMGUHUsbtJ/WZTjuLo6TF/TusaMx1T7333Ny7AI/HU177tPAmzt5QS7cIF07WA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.6.4","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","dependencies":{"lodash":"^4.17.21","@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.14","typescript":"5.9.3","@types/lodash":"^4.17.20","@sanity/tsconfig":"^1.0.0","@sanity/pkg-utils":"^10.1.1"},"_npmOperationalInternal":{"tmp":"tmp/patches_2.0.1_1765282434129_0.874712677755838","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@portabletext/patches","version":"2.0.2","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@2.0.2","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"e980294415b12c67403ab1007442b5d9e4f70949","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-2.0.2.tgz","fileCount":6,"integrity":"sha512-KIGOvUIVfdUo7eynaZr+H9jidWlmKyC+3BGzkHUM2st4Qt50vzDUJpTM3agtUAIx3qRSzFI4yVPtsO3OkxH2Vg==","signatures":[{"sig":"MEQCICibu1lavgkrUi+CY/wW/ayxPsmQmwzeH/iiDFvbgB1CAiBxuw6K9N4hy4bBvgYXXw5kUzGX5t9BRSN7YOhlsxdWPg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@2.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29069},"main":"./dist/index.js","type":"module","_from":"file:portabletext-patches-2.0.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.19 <22 || >=22.12"},"exports":{".":{"source":"./src/index.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/9b495a9943c982cc3f55b94ed264d639/portabletext-patches-2.0.2.tgz","_integrity":"sha512-KIGOvUIVfdUo7eynaZr+H9jidWlmKyC+3BGzkHUM2st4Qt50vzDUJpTM3agtUAIx3qRSzFI4yVPtsO3OkxH2Vg==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.7.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","dependencies":{"@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.14","typescript":"5.9.3","@sanity/tsconfig":"^2.0.0","@sanity/pkg-utils":"^10.1.2"},"_npmOperationalInternal":{"tmp":"tmp/patches_2.0.2_1765362851819_0.884561031448148","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@portabletext/patches","version":"2.0.3","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@2.0.3","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"e92cf9991183c3da56187326252cd5c5be2e5a75","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-2.0.3.tgz","fileCount":6,"integrity":"sha512-m5/yjkjeU+ZcT7h7fMsXTLCd+M4Q3kit4HQEguoHKsK32WGE8elNDJzOpz5OzaU2nehCrXqVCRYp/UiCHn8dtQ==","signatures":[{"sig":"MEUCIQCUV89S324PHpHedVWUOBLcIIboyRsa0lYl5RjFiP/CFAIgFusiJ+5HgHlVlWFxec17Ucg2vULTGJ/Iysqu8bERpqA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@2.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29010},"main":"./dist/index.js","type":"module","_from":"file:portabletext-patches-2.0.3.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.19 <22 || >=22.12"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/8baaa746e20f5da1f12459756b08ce19/portabletext-patches-2.0.3.tgz","_integrity":"sha512-m5/yjkjeU+ZcT7h7fMsXTLCd+M4Q3kit4HQEguoHKsK32WGE8elNDJzOpz5OzaU2nehCrXqVCRYp/UiCHn8dtQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.7.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","dependencies":{"@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.14","typescript":"5.9.3","@sanity/tsconfig":"^2.0.0","@sanity/pkg-utils":"^10.2.1"},"_npmOperationalInternal":{"tmp":"tmp/patches_2.0.3_1765904654256_0.8007359677802957","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"@portabletext/patches","version":"2.0.4","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@2.0.4","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"bb1218976a0ba5c9c8f0bd6162e28c4b056b490c","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-2.0.4.tgz","fileCount":6,"integrity":"sha512-dz2tR921LMvz3tAlfAB5ehJhztGCERFs0j5jEha2Vkq9UAs9iuCxNGlf7C3d2f9pGGBpxOF4WBZgpZNjB84vrQ==","signatures":[{"sig":"MEQCIGYv97YdpSM/1pDaqEfeaY41ziGWzv38W5fXRNc4+YW3AiBwsQhx8F7/3Lbw6NeLUM06cB3Gsm2/mz0xzfGJ1pZ0mg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@2.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29708},"main":"./dist/index.js","type":"module","_from":"file:portabletext-patches-2.0.4.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.19 <22 || >=22.12"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/56e31a5f065d29cadcca10a56e40ef8f/portabletext-patches-2.0.4.tgz","_integrity":"sha512-dz2tR921LMvz3tAlfAB5ehJhztGCERFs0j5jEha2Vkq9UAs9iuCxNGlf7C3d2f9pGGBpxOF4WBZgpZNjB84vrQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.7.0","description":"Portable Text Patches","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.15","typescript":"5.9.3","@sanity/tsconfig":"^2.1.0","@sanity/pkg-utils":"^10.2.1"},"_npmOperationalInternal":{"tmp":"tmp/patches_2.0.4_1766134191976_0.5728641785504056","host":"s3://npm-registry-packages-npm-production"}},"2.0.5":{"name":"@portabletext/patches","version":"2.0.5","keywords":["portable-text","portable-text-editor","patches"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@2.0.5","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"46966fe416606cd697621083ddb8c1d32bd00521","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-2.0.5.tgz","fileCount":7,"integrity":"sha512-PUhFBFT+aToiU5G13v8uY3808RiFvFgxnPpk9bhMJuYOw1jZVEOfnmgQ2GA03sgO+bVbDQ13Hhx3axLwq73VUg==","signatures":[{"sig":"MEUCIARWCv03dByVDyFO1ayZ81yrdgAYlCU0JSu0pdqT7N88AiEAoca/UR08eJyKmA+P+zvNYkG9vtnR0YoznuTVEaBKFEs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@2.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":34513},"main":"./dist/index.js","type":"module","_from":"file:portabletext-patches-2.0.5.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.19 <22 || >=22.12"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check --clean","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/a5bf01108ac322dae810667ae246f19e/portabletext-patches-2.0.5.tgz","_integrity":"sha512-PUhFBFT+aToiU5G13v8uY3808RiFvFgxnPpk9bhMJuYOw1jZVEOfnmgQ2GA03sgO+bVbDQ13Hhx3axLwq73VUg==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.17.0","description":"Apply Sanity patches to a value","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.9","typescript":"5.9.3","@sanity/tsconfig":"^2.1.0","@sanity/pkg-utils":"^10.2.1"},"_npmOperationalInternal":{"tmp":"tmp/patches_2.0.5_1782294100522_0.18344076363030482","host":"s3://npm-registry-packages-npm-production"}},"2.0.6":{"name":"@portabletext/patches","version":"2.0.6","keywords":["patches","portable-text","portable-text-editor"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@2.0.6","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"da9921419e002f05939d3ab80a9b26fe916eae4b","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-2.0.6.tgz","fileCount":7,"integrity":"sha512-qki7QMrZz3FJ60XNPFDMQgn8RerfKPaLWAyNJ/wg83gpoNlPFevwYxwCsH8OahVDmaCy30QZrPgj7k0tWb97uA==","signatures":[{"sig":"MEYCIQDWp028CoQodk5znGQ977WAgQiw7uaawTAY9WmpVa0GBwIhAKRV5+qYoYEOgTsosxY3LvfXjAD3TdsZIMYCbljOlejK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@2.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32297},"main":"./dist/index.js","type":"module","_from":"file:portabletext-patches-2.0.6.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.19 <22 || >=22.12"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check","clean":"del .turbo && del dist && del node_modules","lint:fix":"biome lint --write .","test:unit":"vitest --run --project unit","check:lint":"biome lint .","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/728a341c067a3f8e1bd9017d4a1cde74/portabletext-patches-2.0.6.tgz","_integrity":"sha512-qki7QMrZz3FJ60XNPFDMQgn8RerfKPaLWAyNJ/wg83gpoNlPFevwYxwCsH8OahVDmaCy30QZrPgj7k0tWb97uA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.19.0","description":"Apply Sanity patches to a value","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.0","vitest":"^4.1.10","typescript":"6.0.3","@sanity/tsconfig":"^2.1.0","@sanity/pkg-utils":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_2.0.6_1786343741312_0.8081796826729901","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@portabletext/patches","version":"3.0.0","keywords":["patches","portable-text","portable-text-editor"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@3.0.0","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"2af2c08de26b3985612a0276b9d8c84974b2d9ea","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-3.0.0.tgz","fileCount":7,"integrity":"sha512-3RbeVhdQRThYSMbP8v2jjVxAumB5I/tE8W6g8nMvW7epjWAkmRXQcSHr6MEQXWbSbLZJAAjBCKIkWzvlv2lLUw==","signatures":[{"sig":"MEYCIQDTNmSppMp4LrruVdBcTmaDpn6OnNpStfu1lYjpZTGyDwIhAJPyrSmDjRrSy/FX9cMxor0o2cTedpiPtgmh+I9bNfSg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32149},"type":"module","_from":"file:portabletext-patches-3.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check","clean":"del .turbo && del dist && del node_modules","test:unit":"vitest --run --project unit","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/10cbc91b2c2158b1d5ababe20545b30a/portabletext-patches-3.0.0.tgz","_integrity":"sha512-3RbeVhdQRThYSMbP8v2jjVxAumB5I/tE8W6g8nMvW7epjWAkmRXQcSHr6MEQXWbSbLZJAAjBCKIkWzvlv2lLUw==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.19.0","description":"Apply Sanity patches to a value","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@sanity/diff-match-patch":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.0","vitest":"^4.1.10","typescript":"^7.0.2","@sanity/tsconfig":"^2.1.0","@sanity/pkg-utils":"^12.3.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_3.0.0_1787648606820_0.3464024887914834","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@portabletext/patches","version":"3.0.1","keywords":["patches","portable-text","portable-text-editor"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@3.0.1","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"6546b29fdc2de1fbb614aa6cd8d08c04d23dfa07","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-3.0.1.tgz","fileCount":7,"integrity":"sha512-sxlLodf85hjbqCZjLEff3wTKDWoUhFTk2Eoxh8b6wG/H3/t3Re32bSSSDmzietUJTYRkwtfClH0mh7Bfpqyt/w==","signatures":[{"sig":"MEYCIQDdFmaFZAkrMXxoNIh8LhQozufLqG1/XSLgSJJVrTn+lQIhALj7MPAWTHFF6MLAQynho445AHKLHaJinoTHqb+NIXDh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCbkvM/TH7ZetZxTS6H1K90qamgPOHYZyj28YTXnXbamQIhANadMj2q+h8vvWtL5UB4u7WIA6rg7u/ExB+WFB5GGoNM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32147},"type":"module","_from":"file:portabletext-patches-3.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check","clean":"del .turbo && del dist && del node_modules","test:unit":"vitest --run --project unit","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/8b1f65eb19aa16a9e6815c900c337055/portabletext-patches-3.0.1.tgz","_integrity":"sha512-sxlLodf85hjbqCZjLEff3wTKDWoUhFTk2Eoxh8b6wG/H3/t3Re32bSSSDmzietUJTYRkwtfClH0mh7Bfpqyt/w==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.19.1","description":"Apply Sanity patches to a value","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"@sanity/diff-match-patch":"^3.2.1"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.0","vitest":"^4.1.11","typescript":"^7.0.2","@sanity/tsconfig":"^2.1.0","@sanity/pkg-utils":"^12.3.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_3.0.1_1790003899409_0.4780514439686654","host":"s3://npm-registry-packages-npm-production"}},"3.0.2":{"name":"@portabletext/patches","version":"3.0.2","keywords":["patches","portable-text","portable-text-editor"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/patches@3.0.2","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://www.sanity.io/","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"659fb7ec70ada3222018a700c09f6ed661681f82","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-3.0.2.tgz","fileCount":7,"integrity":"sha512-h1Xp4zjKh5dLsXxkdWJA4r2N1kKGr+v52+MuXviu+cLuGvLoC0VrBOYF3H8hOmQw33ylenwtIIUE978t7IxOJQ==","signatures":[{"sig":"MEUCICx+mzk+9c94pL0unvdsMOPyeKr13pghWfNzUXt6WkCgAiEAvtg2BVRo8MYFYm/CbXg8/ue7oZVAZC+2SplPW5bS30o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQClWvRvcuwAfOI4Ed/Nr2/o724XmDagbuBe4pepZv7oIwIgKaRrJviw+4M6qZj0ALi0xN7CFwfhyiIx7x5nrVEF0Ws=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32826},"type":"module","_from":"file:portabletext-patches-3.0.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check","clean":"del .turbo && del dist && del node_modules","test:unit":"vitest --run --project unit","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"bb401a67-a901-4385-9822-cadca192aa3a"}},"_resolved":"/tmp/e4988f9eb7d94cc7a08d9b13e22522c0/portabletext-patches-3.0.2.tgz","_integrity":"sha512-h1Xp4zjKh5dLsXxkdWJA4r2N1kKGr+v52+MuXviu+cLuGvLoC0VrBOYF3H8hOmQw33ylenwtIIUE978t7IxOJQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.21.1","description":"Apply Sanity patches to a value","directories":{},"sideEffects":false,"_nodeVersion":"24.22.0","dependencies":{"@sanity/diff-match-patch":"^3.2.1"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.0","vitest":"^5.0.4","typescript":"^7.0.2","@sanity/tsconfig":"^2.1.0","@sanity/pkg-utils":"^12.3.0"},"_npmOperationalInternal":{"tmp":"tmp/patches_3.0.2_1792485852082_0.37093954094851056","host":"s3://npm-registry-packages-npm-production"}},"3.0.3":{"_id":"@portabletext/patches@3.0.3","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"42f74fa651fd4f80f5edb9938a438e42194758e8","tarball":"https://registry.npmjs.org/@portabletext/patches/-/patches-3.0.3.tgz","fileCount":7,"integrity":"sha512-ZorsFnptqEksWg2HjR9bkg9kK3JvHFBjvTh98txXk+nORU9cy/EQfFe+Dx2meBYcCyLxAGjLEqAWr8A2o0MB/w==","signatures":[{"sig":"MEYCIQCYooYv+UOlHzKJC+kqhsmZ/c9n/lIuRzWs6prwIaspKgIhAM/6c0Y6Fo/6HQYCSz1wky7cC8mUSBT+8xChqToNKACx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGBH9p2O425ixZ9usij89Zrtt/JAvv4Hg4E24gaJKkb4AiBZU4AD2N02cQA0Ja3nbXmfBuvFr+rtZ1dfzOXK8hO8oA=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fpatches@3.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":33940},"name":"@portabletext/patches","type":"module","_from":"file:portabletext-patches-3.0.3.tgz","types":"./dist/index.d.ts","author":{"name":"Sanity.io","email":"hello@sanity.io"},"engines":{"node":">=22.12"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"license":"MIT","scripts":{"dev":"pkg-utils watch","test":"vitest --run","build":"pkg-utils build --strict --check","clean":"del .turbo && del dist && del node_modules","test:unit":"vitest --run --project unit","test:watch":"vitest","check:types":"tsc --noEmit --pretty","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --noEmit --pretty --watch"},"version":"3.0.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"bb401a67-a901-4385-9822-cadca192aa3a"}},"homepage":"https://www.sanity.io/","keywords":["patches","portable-text","portable-text-editor"],"_resolved":"/tmp/b11786abbef21c06e278053faae37054/portabletext-patches-3.0.3.tgz","_integrity":"sha512-ZorsFnptqEksWg2HjR9bkg9kK3JvHFBjvTh98txXk+nORU9cy/EQfFe+Dx2meBYcCyLxAGjLEqAWr8A2o0MB/w==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"_npmVersion":"11.21.1","description":"Apply Sanity patches to a value","directories":{},"maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"sideEffects":false,"_nodeVersion":"24.22.1","dependencies":{"@sanity/diff-match-patch":"^3.2.1"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.3.3","vitest":"^5.0.5","typescript":"^7.0.2","@sanity/tsconfig":"^2.1.0","@sanity/pkg-utils":"^12.3.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/patches_3.0.3_1793010829004_0.36023124345377733"}}},"time":{"created":"2024-06-27T09:08:56.648Z","modified":"2026-10-26T10:33:49.554Z","1.0.0":"2024-06-27T09:08:56.977Z","1.0.1":"2024-06-27T09:14:19.022Z","1.0.2":"2024-06-27T09:35:34.206Z","1.1.0":"2024-08-01T06:36:36.253Z","1.1.1":"2024-12-18T18:59:24.795Z","1.1.2":"2025-01-22T13:08:28.144Z","1.1.3":"2025-02-11T16:33:32.058Z","1.1.4":"2025-05-29T18:46:16.335Z","1.1.5":"2025-06-20T08:33:17.218Z","2.0.0-canary.0":"2025-07-17T18:43:48.323Z","1.1.6":"2025-07-17T19:53:34.725Z","1.1.7":"2025-08-20T15:52:58.288Z","1.1.8":"2025-08-21T08:01:41.258Z","2.0.0":"2025-11-04T14:52:42.692Z","2.0.1":"2025-12-09T12:13:54.271Z","2.0.2":"2025-12-10T10:34:11.957Z","2.0.3":"2025-12-16T17:04:14.400Z","2.0.4":"2025-12-19T08:49:52.136Z","2.0.5":"2026-06-24T09:41:40.643Z","2.0.6":"2026-08-10T06:35:41.460Z","3.0.0":"2026-08-25T09:03:26.960Z","3.0.1":"2026-09-21T15:18:19.494Z","3.0.2":"2026-10-20T08:44:12.174Z","3.0.3":"2026-10-26T10:33:49.110Z"},"bugs":{"url":"https://github.com/portabletext/editor/issues"},"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","homepage":"https://www.sanity.io/","keywords":["patches","portable-text","portable-text-editor"],"repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/patches"},"description":"Apply Sanity patches to a value","maintainers":[{"name":"kmelve","email":"knut.melvaer@gmail.com"},{"name":"rexxars","email":"espen@hovlandsdal.com"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"mariuslundgard","email":"studio@mariuslundgard.com"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rbotten","email":"rbotten@gmail.com"},{"name":"sanity-io","email":"developers@sanity.io"},{"name":"snorreeb","email":"snorre.e.brekke@gmail.com"},{"name":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"readme":"# `@portabletext/patches`\n\n> Apply Sanity patches to a value\n\nPatches are the small mutation operations Sanity and the Portable Text Editor emit to describe a change: set a field, insert into an array, increment a number. This package builds those patches and applies them to a plain JavaScript value, returning the patched value, so you can replay edits locally without going through a Sanity client. It works on any JSON-compatible value, not just Portable Text.\n\n## You might not need this\n\nThis is a low-level building block, and most apps never apply patches by hand:\n\n- **Rendering** Portable Text? Use a serializer like [`@portabletext/react`](https://www.portabletext.org/rendering/react/) or [`@portabletext/to-html`](https://www.portabletext.org/rendering/html/), not this.\n- **Editing** with the Portable Text Editor and you just want the new value? Read `event.value` off the `mutation` event; the editor has already applied the patches for you.\n- **Using Sanity?** The Sanity client and Studio apply patches to your documents for you.\n\nReach for this package only when you have to apply Sanity patches to a value yourself, outside those flows, such as a server replaying the patches an editor sends over the wire.\n\n## Installation\n\n```bash\nnpm install @portabletext/patches\n```\n\n## Usage\n\n`applyAll(value, patches)` applies an array of patches in order and returns a new value, without mutating the input. Build the patches with the helper functions, each of which takes the target `path` as its last argument:\n\n```ts\nimport {applyAll, insert, set} from '@portabletext/patches'\n\napplyAll({title: 'Hello'}, [set('Hello, world!', ['title'])])\n// => {title: 'Hello, world!'}\n\napplyAll({items: ['a', 'c']}, [insert(['b'], 'after', ['items', 0])])\n// => {items: ['a', 'b', 'c']}\n```\n\nA `path` is an array of segments, where each segment is an object key (`'title'`), an array index (`0`), or a keyed array reference (`{_key: 'abc'}`). It defaults to `[]`, the value itself.\n\n## Patch builders\n\n| Builder                               | Effect                                                                                   |\n| ------------------------------------- | ---------------------------------------------------------------------------------------- |\n| `set(value, path)`                    | Set the value at `path`                                                                  |\n| `setIfMissing(value, path)`           | Set the value at `path` only if nothing is there yet                                     |\n| `unset(path)`                         | Remove the value at `path`                                                               |\n| `insert(items, position, path)`       | Insert `items` `'before'`, `'after'`, or in place of (`'replace'`) the element at `path` |\n| `diffMatchPatch(current, next, path)` | Apply the diff between two strings to the string at `path`                               |\n\n`inc` and `dec` patches (increment or decrement the number at `path` by `value`) have no builder, so pass them as plain objects:\n\n```ts\napplyAll({count: 0}, [{type: 'inc', path: ['count'], value: 2}])\n// => {count: 2}\n```\n\n## With the Portable Text Editor\n\nThe editor's `patch` events each carry one of these patches. Here is a full editor that keeps its own copy of the value by replaying those patches with `applyAll`, rendered live next to the editing surface:\n\n```tsx\nimport {\n  defineSchema,\n  EditorProvider,\n  PortableTextEditable,\n  type PortableTextBlock,\n} from '@portabletext/editor'\nimport {EventListenerPlugin} from '@portabletext/editor/plugins'\nimport {applyAll} from '@portabletext/patches'\nimport {useState} from 'react'\n\nconst schemaDefinition = defineSchema({\n  decorators: [{name: 'strong'}, {name: 'em'}],\n})\n\nexport function Editor() {\n  // Our own copy of the value, rebuilt from each patch the editor emits.\n  const [value, setValue] = useState<Array<PortableTextBlock>>([])\n\n  return (\n    <EditorProvider initialConfig={{schemaDefinition}}>\n      <EventListenerPlugin\n        on={(event) => {\n          if (event.type === 'patch') {\n            // Redundant in a single app: the `mutation` event already carries\n            // the finished `value`. This just shows `applyAll` on a real\n            // patch stream.\n            setValue((current) => applyAll(current, [event.patch]))\n          }\n        }}\n      />\n      <PortableTextEditable />\n      <pre>{JSON.stringify(value, null, 2)}</pre>\n    </EditorProvider>\n  )\n}\n```\n\nAs the comment notes, this is redundant in a single app: the editor's `mutation` event already includes the finished `value`, so listen for that and use `event.value` instead. You only need `applyAll` when you have the patches but not the value, such as a server or secondary store replaying them onto its own copy.\n","readmeFilename":"README.md"}