{"_id":"@portabletext/keyboard-shortcuts","_rev":"15-319da1b98879ab2f516cced2f37c8c2a","name":"@portabletext/keyboard-shortcuts","dist-tags":{"canary":"2.0.0-canary.0","latest":"3.0.0"},"versions":{"0.0.0":{"name":"@portabletext/keyboard-shortcuts","version":"0.0.0","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@0.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"}],"homepage":"https://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"dae4a76d810df92895d032146e39acb4c58c61b1","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-0.0.0.tgz","fileCount":16,"integrity":"sha512-dPQmlEhqU6L8qPdPwJ4mVC7gRrTDIjA1vZXqneTOFoDIzcxU+tpKWQM7BF25iPr/5nUAx00+n9nBS9a05Il13w==","signatures":[{"sig":"MEYCIQCBoQMhy1MYH4jhXfDRtZeMwIrrqAhfmIrAujgOcvMnBgIhAN2kqE34WUI2ImmR44CI687zAMrm4l0g8aoXSW4Qv5Dc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@0.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":87728},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-keyboard-shortcuts-0.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch","check:react-compiler":"eslint --cache --no-inline-config --no-eslintrc --ignore-pattern '**/__tests__/**' --ext .cjs,.mjs,.js,.jsx,.ts,.tsx --parser @typescript-eslint/parser --plugin react-hooks --rule 'react-hooks/react-compiler: [error]' --rule 'react-hooks/rules-of-hooks: [error]' --rule 'react-hooks/exhaustive-deps: [error]' src"},"_npmUser":{"name":"sanity-io","actor":{"name":"sanity-io","type":"user","email":"developers@sanity.io"},"email":"developers@sanity.io"},"_resolved":"/tmp/452b7607951a3678eea737c7ee675907/portabletext-keyboard-shortcuts-0.0.0.tgz","_integrity":"sha512-dPQmlEhqU6L8qPdPwJ4mVC7gRrTDIjA1vZXqneTOFoDIzcxU+tpKWQM7BF25iPr/5nUAx00+n9nBS9a05Il13w==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"10.9.2","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"react-compiler-runtime":"19.1.0-rc.2"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.0","eslint":"8.57.1","vitest":"^3.2.4","@types/react":"^19.1.2","@sanity/pkg-utils":"^7.9.0","@typescript-eslint/parser":"^8.35.0","eslint-plugin-react-hooks":"0.0.0-experimental-cee7939b-20250625","babel-plugin-react-compiler":"19.1.0-rc.2","@typescript-eslint/eslint-plugin":"^8.35.0"},"peerDependencies":{"react":"^19.1.0"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_0.0.0_1751970060081_0.6478212466518694","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@portabletext/keyboard-shortcuts","version":"1.0.0","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@1.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"}],"homepage":"https://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"207bd990285dae8db204829b13d0bcfbee51b1bc","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-1.0.0.tgz","fileCount":16,"integrity":"sha512-edi0gvZeB9ZiS7rHqNBmPN8ujxWCgQNGcgZFWvGFxxrVh/+9UgH2VfB7VZaRbfNUIlIdTxsHEPaoa2xvKQul/w==","signatures":[{"sig":"MEYCIQDzNZySxFpJvFKS0HMdLzJNvV/J6wuNbVkaiBFOJH8fFwIhAO4OMz0mw1k8+L8M3zTHuAVbq+S5mLZWM4fQWqjWihzG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":87728},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-keyboard-shortcuts-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch","check:react-compiler":"eslint --cache --no-inline-config --no-eslintrc --ignore-pattern '**/__tests__/**' --ext .cjs,.mjs,.js,.jsx,.ts,.tsx --parser @typescript-eslint/parser --plugin react-hooks --rule 'react-hooks/react-compiler: [error]' --rule 'react-hooks/rules-of-hooks: [error]' --rule 'react-hooks/exhaustive-deps: [error]' src"},"_npmUser":{"name":"sanity-io","actor":{"name":"sanity-io","type":"user","email":"developers@sanity.io"},"email":"developers@sanity.io"},"_resolved":"/tmp/dfc22fbefdf0ad929558d7347b8f8df6/portabletext-keyboard-shortcuts-1.0.0.tgz","_integrity":"sha512-edi0gvZeB9ZiS7rHqNBmPN8ujxWCgQNGcgZFWvGFxxrVh/+9UgH2VfB7VZaRbfNUIlIdTxsHEPaoa2xvKQul/w==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"10.9.2","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"react-compiler-runtime":"19.1.0-rc.2"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.0","eslint":"8.57.1","vitest":"^3.2.4","@types/react":"^19.1.2","@sanity/pkg-utils":"^7.9.0","@typescript-eslint/parser":"^8.35.0","eslint-plugin-react-hooks":"0.0.0-experimental-cee7939b-20250625","babel-plugin-react-compiler":"19.1.0-rc.2","@typescript-eslint/eslint-plugin":"^8.35.0"},"peerDependencies":{"react":"^19.1.0"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_1.0.0_1751970240621_0.049270605534198486","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@portabletext/keyboard-shortcuts","version":"1.1.0","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@1.1.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://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"3adac3f26e0decb867c1bec5f80d00a41d05c905","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-1.1.0.tgz","fileCount":16,"integrity":"sha512-krhhFXLdoSNRxPZVygdyKqNNXRGbjLjkmP7HKM/pweDlgjpIAaw9vsOtTkEdS+eFuWYQ/suj4Py2aOyAwrjKpA==","signatures":[{"sig":"MEUCIE7nn9zfPkYCyQu1VeCiwiRrG/sAyMZkD44Tu635Afo6AiEA8/AoiKAmMyeu0YvVKa2mnrhxkRZ+CYqyGz6CFmGmCwI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":92220},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-keyboard-shortcuts-1.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"sanity-io","actor":{"name":"sanity-io","type":"user","email":"developers@sanity.io"},"email":"developers@sanity.io"},"_resolved":"/tmp/d6ad7b679c23ebd8eba48df171f41bb6/portabletext-keyboard-shortcuts-1.1.0.tgz","_integrity":"sha512-krhhFXLdoSNRxPZVygdyKqNNXRGbjLjkmP7HKM/pweDlgjpIAaw9vsOtTkEdS+eFuWYQ/suj4Py2aOyAwrjKpA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"10.9.2","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"22.17.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@sanity/pkg-utils":"^7.9.2"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_1.1.0_1752051038563_0.33648988118078416","host":"s3://npm-registry-packages-npm-production"}},"2.0.0-canary.0":{"name":"@portabletext/keyboard-shortcuts","version":"2.0.0-canary.0","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@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://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"ac3c1528d604443813213f5ff31304693d935c38","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-2.0.0-canary.0.tgz","fileCount":16,"integrity":"sha512-vfbRI3pr5Kd00v39sbBz2sCLaexy6N3MEyXdxhE/knn1eLOXZghTsazdEKurllnfJYdFj97qJRixCpBrcUzS6A==","signatures":[{"sig":"MEUCIQDQUzXYlh8OaeWwexRDHJKaiQrecrBHsOuTEYfA6fhg8AIgUiJAPll9bQk1PeoRdmh8qg9O4kT4uajslFtH3MWlehM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91397},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-keyboard-shortcuts-2.0.0-canary.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"stipsan","email":"stipsan@gmail.com"},"_resolved":"/private/var/folders/8f/k11x70td0x710myjxc29z94h0000gp/T/d683a4cc80b14d887933c6f7af042f93/portabletext-keyboard-shortcuts-2.0.0-canary.0.tgz","_integrity":"sha512-vfbRI3pr5Kd00v39sbBz2sCLaexy6N3MEyXdxhE/knn1eLOXZghTsazdEKurllnfJYdFj97qJRixCpBrcUzS6A==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"10.9.2","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.2.4","@sanity/pkg-utils":"^7.9.6"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_2.0.0-canary.0_1752777691744_0.7945568930231597","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@portabletext/keyboard-shortcuts","version":"1.1.1","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@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://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"45c1904b304beccc9f701da6248496fa55b5da1b","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-1.1.1.tgz","fileCount":16,"integrity":"sha512-wCoH9+D9wci5sCSAsjJRnzV769e/xYw/ZjbtOmPGncE3EcWa/7+qP8kYFRj/ptsORJw3jRZkhXiUwYkD5jaC2w==","signatures":[{"sig":"MEYCIQCzVGIEb7kYBC47Jug5kKKO4x0VIvZ6DU74cqm5BRNUigIhAKzHGsKtwAgOk3w0jkjhksCAU8qCxNpJqmqIMZ0q/Oty","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":91388},"main":"./dist/index.cjs","type":"module","_from":"file:portabletext-keyboard-shortcuts-1.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"sanity-io","email":"developers@sanity.io"},"_resolved":"/tmp/0145ff24d9f27848037c1cd32e063cd9/portabletext-keyboard-shortcuts-1.1.1.tgz","_integrity":"sha512-wCoH9+D9wci5sCSAsjJRnzV769e/xYw/ZjbtOmPGncE3EcWa/7+qP8kYFRj/ptsORJw3jRZkhXiUwYkD5jaC2w==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"10.9.2","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"22.17.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@sanity/pkg-utils":"^7.9.6"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_1.1.1_1752782011701_0.6513098463826987","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@portabletext/keyboard-shortcuts","version":"2.0.0","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@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://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"293d476ca1ab467305f283a121e89daf675573a6","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-2.0.0.tgz","fileCount":13,"integrity":"sha512-8KipB6OWv/04vHj8RDLdPQZYfJ7LsWgALmC2s6bnyrb4ykrp2qzDIjLWqhLYq4tQiJ+1mL9vd4ROrihpSygQfQ==","signatures":[{"sig":"MEUCIEXaSSAUWmd/7nuyfu7FbRpX/iAQ8x90jvKG4rA2aCyZAiEA69hIfikUrED8nqzSSJOfBmC9+vjHMfIlBFkwzRCtvLI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57095},"main":"./dist/index.js","type":"module","_from":"file:portabletext-keyboard-shortcuts-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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1acdf951-6e5f-494b-9309-16a9459aeeae"}},"_resolved":"/tmp/9398e8a0004202e9b3a707c45a0ba22a/portabletext-keyboard-shortcuts-2.0.0.tgz","_integrity":"sha512-8KipB6OWv/04vHj8RDLdPQZYfJ7LsWgALmC2s6bnyrb4ykrp2qzDIjLWqhLYq4tQiJ+1mL9vd4ROrihpSygQfQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"11.6.2","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.5","typescript":"5.9.3","@sanity/pkg-utils":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_2.0.0_1762267963268_0.7191306846190337","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@portabletext/keyboard-shortcuts","version":"2.0.1","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@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://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"ec3b049c4b8ac4a2dba7cc0c8839f4162cf2b986","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-2.0.1.tgz","fileCount":13,"integrity":"sha512-krKdR31QheCjLJvv+3taspDBMYz+C7Kh6NBp5mlzXxRNUShUgsUG5CzSpqfctqxJnMU7y45Sdv3mjd0lpg6h0w==","signatures":[{"sig":"MEUCIQD4IXFb0v2g40KKTs7YncS806fA1Mx65Lr0AnRIBeBTBAIgZIFbPn0NOeI73yyCQDxpVtFEK2ARK9WJOplkwTe3ydo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57158},"main":"./dist/index.js","type":"module","_from":"file:portabletext-keyboard-shortcuts-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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1acdf951-6e5f-494b-9309-16a9459aeeae"}},"_resolved":"/tmp/56fcf6ca0d3d54d82d4ca9fc93e25050/portabletext-keyboard-shortcuts-2.0.1.tgz","_integrity":"sha512-krKdR31QheCjLJvv+3taspDBMYz+C7Kh6NBp5mlzXxRNUShUgsUG5CzSpqfctqxJnMU7y45Sdv3mjd0lpg6h0w==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"11.6.2","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","dependencies":{"react-compiler-runtime":"1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.6","typescript":"5.9.3","@sanity/pkg-utils":"^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_2.0.1_1762450028754_0.6852460178138966","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@portabletext/keyboard-shortcuts","version":"2.1.0","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@2.1.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://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"91428364fb83d60423e2909cc47a533e0b2d500b","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-2.1.0.tgz","fileCount":13,"integrity":"sha512-/oI0p0COD/CBFlUADiSsHwKIL5iwSyqIFnbP8bUlXVp0yfYItTjSE6L1RV4b/7JO0KG3jVdusaKjplwsdXZQPw==","signatures":[{"sig":"MEQCICzmBFKMIdwZcOwrFxtCRkQbxNIR0FFnsXB9ZRliZ3GwAiBmhkXRuE4OMk/OY5+Atf2NYpke4zq5gchMGkSZQV8t7A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57823},"main":"./dist/index.js","type":"module","_from":"file:portabletext-keyboard-shortcuts-2.1.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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1acdf951-6e5f-494b-9309-16a9459aeeae"}},"_resolved":"/tmp/5e5dbe1d53ccfec4a0e65e030f1c0e1b/portabletext-keyboard-shortcuts-2.1.0.tgz","_integrity":"sha512-/oI0p0COD/CBFlUADiSsHwKIL5iwSyqIFnbP8bUlXVp0yfYItTjSE6L1RV4b/7JO0KG3jVdusaKjplwsdXZQPw==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"11.6.2","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.6","typescript":"5.9.3","@sanity/pkg-utils":"^9.0.3"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_2.1.0_1762527815931_0.28243615142220846","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"@portabletext/keyboard-shortcuts","version":"2.1.1","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@2.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"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"729942fa57a31ebb9a20f19afbee6eb389f75978","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-2.1.1.tgz","fileCount":7,"integrity":"sha512-9qD9xk1jG/vP5O6Ab33IL7HW0bDhJ/lTkOyeq6EDnJAqVcnaZ0mw/nBVbW+2gH5DTLVJFNJ35N/24kXHFnkEXA==","signatures":[{"sig":"MEQCIDzxwqrqIAwFmuYSTfODQrTdB6IzsOtt1m0cJRcyvYNaAiArMwJVUe4YVfdrsUDRNa5dkaxrAlUtsWixSc9Y2HyXgA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@2.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":45576},"main":"./dist/index.js","type":"module","_from":"file:portabletext-keyboard-shortcuts-2.1.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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1acdf951-6e5f-494b-9309-16a9459aeeae"}},"_resolved":"/tmp/090291ae32614b5ad15a5c38b119c491/portabletext-keyboard-shortcuts-2.1.1.tgz","_integrity":"sha512-9qD9xk1jG/vP5O6Ab33IL7HW0bDhJ/lTkOyeq6EDnJAqVcnaZ0mw/nBVbW+2gH5DTLVJFNJ35N/24kXHFnkEXA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"11.6.4","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.14","typescript":"5.9.3","@sanity/tsconfig":"^1.0.0","@sanity/pkg-utils":"^10.1.1"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-shortcuts_2.1.1_1765282434610_0.21118979885342237","host":"s3://npm-registry-packages-npm-production"}},"2.1.2":{"name":"@portabletext/keyboard-shortcuts","version":"2.1.2","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@2.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"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"8f22bdf9ef7c35f261fb66af6c662cea5c0456f8","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-2.1.2.tgz","fileCount":7,"integrity":"sha512-PmrD819NcfKURLJvaKFkCIk1z7va9PxPfo34LuySMAgH/jL94FkYzCCpdzmhp7xyKu/v2aukfKvOVVdskygOkQ==","signatures":[{"sig":"MEUCIQCg4yCDF+pHB9Zt1VkjQQH6+dZMi8fJHHspIgReWYQ58QIgOzbV6Fcu4E8ngdcsdxXe8MVYd7+gyyH6cu4geiXyZYQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@2.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":45517},"main":"./dist/index.js","type":"module","_from":"file:portabletext-keyboard-shortcuts-2.1.2.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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1acdf951-6e5f-494b-9309-16a9459aeeae"}},"_resolved":"/tmp/adbaf13a48b7cf33e196be4a107be658/portabletext-keyboard-shortcuts-2.1.2.tgz","_integrity":"sha512-PmrD819NcfKURLJvaKFkCIk1z7va9PxPfo34LuySMAgH/jL94FkYzCCpdzmhp7xyKu/v2aukfKvOVVdskygOkQ==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"11.7.0","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","_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/keyboard-shortcuts_2.1.2_1765904654396_0.42615138497109717","host":"s3://npm-registry-packages-npm-production"}},"2.1.3":{"name":"@portabletext/keyboard-shortcuts","version":"2.1.3","keywords":["portabletext","keyboard-shortcuts"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@2.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":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"b4b8043652e7fbcd0e88af3b3b0b612635831d19","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-2.1.3.tgz","fileCount":7,"integrity":"sha512-dIK1zRfRLMm0j0deXEfMZ2Mcm9olyeGCo2Vx+/qhBs29kvl/NhNvHC9hvBHlqRcOieRz45wpHpqA6oEfTeWCVA==","signatures":[{"sig":"MEUCIQCWA/ezTdXVlAaZvI89KiqCEbrLD2c8HMlD1nObAX1bpwIgAgFIqsBw+nMfaWx+HON10f4nfleI2mCgDKmZnXdh1mU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@2.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":45652},"main":"./dist/index.js","type":"module","_from":"file:portabletext-keyboard-shortcuts-2.1.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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1acdf951-6e5f-494b-9309-16a9459aeeae"}},"_resolved":"/tmp/49270334794eaa3c3b44b7d5f780edcd/portabletext-keyboard-shortcuts-2.1.3.tgz","_integrity":"sha512-dIK1zRfRLMm0j0deXEfMZ2Mcm9olyeGCo2Vx+/qhBs29kvl/NhNvHC9hvBHlqRcOieRz45wpHpqA6oEfTeWCVA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"11.17.0","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"24.16.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/keyboard-shortcuts_2.1.3_1782294101228_0.48533790816240896","host":"s3://npm-registry-packages-npm-production"}},"2.1.4":{"name":"@portabletext/keyboard-shortcuts","version":"2.1.4","keywords":["keyboard-shortcuts","portabletext"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@portabletext/keyboard-shortcuts@2.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":"josef-sanity","email":"josef.hlavacek@sanity.io"},{"name":"stipsan","email":"stipsan@gmail.com"},{"name":"christianhg","email":"services@groengaard.dk"}],"homepage":"https://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"dist":{"shasum":"f4dd379f58d700bf99621b87f4e86d1c331bf331","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-2.1.4.tgz","fileCount":7,"integrity":"sha512-oIIYUjr2At34+Nrl409HVRTO8T1wAEExAKVQIvGnuS2ZkJMvJN2tn7oPK1ImIZoQbizikHW+o3hqVSNd0agLlA==","signatures":[{"sig":"MEQCIB48oBakracrv7ANbrrf0KAnLnyu4+aMhidxHxI7PYcOAiATRvxyRAEutVawIJSxxPGrz3A57W7zSIz1IpO3X5WvRQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@2.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39856},"main":"./dist/index.js","type":"module","_from":"file:portabletext-keyboard-shortcuts-2.1.4.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","test:unit:watch":"vitest --project unit","check:types:watch":"tsc --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1acdf951-6e5f-494b-9309-16a9459aeeae"}},"_resolved":"/tmp/086cc850ce44dc1aa831bd3838908b18/portabletext-keyboard-shortcuts-2.1.4.tgz","_integrity":"sha512-oIIYUjr2At34+Nrl409HVRTO8T1wAEExAKVQIvGnuS2ZkJMvJN2tn7oPK1ImIZoQbizikHW+o3hqVSNd0agLlA==","repository":{"url":"git+https://github.com/portabletext/editor.git","type":"git","directory":"packages/keyboard-shortcuts"},"_npmVersion":"11.19.0","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","directories":{},"sideEffects":false,"_nodeVersion":"24.19.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/keyboard-shortcuts_2.1.4_1786343744725_0.5004327834726119","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@portabletext/keyboard-shortcuts","version":"3.0.0","description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","keywords":["keyboard-shortcuts","portabletext"],"homepage":"https://portabletext.org","bugs":{"url":"https://github.com/portabletext/editor/issues"},"license":"MIT","author":{"name":"Sanity.io","email":"hello@sanity.io"},"repository":{"type":"git","url":"git+https://github.com/portabletext/editor.git","directory":"packages/keyboard-shortcuts"},"type":"module","sideEffects":false,"types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"devDependencies":{"@sanity/pkg-utils":"^12.3.0","@sanity/tsconfig":"^2.1.0","typescript":"^7.0.2","vite":"^8.2.0","vitest":"^4.1.10"},"engines":{"node":">=22.12"},"scripts":{"build":"pkg-utils build --strict --check","check:types":"tsc","check:types:watch":"tsc --watch","clean":"del .turbo && del dist && del node_modules","dev":"pkg-utils watch","test":"vitest --run","test:unit":"vitest --run --project unit","test:unit:watch":"vitest --project unit","test:watch":"vitest"},"_id":"@portabletext/keyboard-shortcuts@3.0.0","_integrity":"sha512-YsK/3mkFEVHs021S9EGA885p6eIe3XzFcARKD7scqtNaPBz7y579XXoa78kXe6XBLgiuKmB8eU3/Ucdnvi5SCA==","_resolved":"/tmp/9eae29fc9bcd38c2253194337bb7b3b8/portabletext-keyboard-shortcuts-3.0.0.tgz","_from":"file:portabletext-keyboard-shortcuts-3.0.0.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-YsK/3mkFEVHs021S9EGA885p6eIe3XzFcARKD7scqtNaPBz7y579XXoa78kXe6XBLgiuKmB8eU3/Ucdnvi5SCA==","shasum":"87a7667674254b81b7b7b56a27c9b87347c34ccb","tarball":"https://registry.npmjs.org/@portabletext/keyboard-shortcuts/-/keyboard-shortcuts-3.0.0.tgz","fileCount":7,"unpackedSize":39708,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@portabletext%2fkeyboard-shortcuts@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICljVbfyoH/Xqa37pn0JX9RJ9OETlLD7Zs2RS3+E4jZlAiEAxdKHmzsFJr1NhVKrm1blMmXWJdaBgUQgO+DFjsWJT3w="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1acdf951-6e5f-494b-9309-16a9459aeeae"}},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/keyboard-shortcuts_3.0.0_1787648607702_0.16799139456784729"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-08T10:20:59.956Z","modified":"2026-08-25T09:03:28.287Z","0.0.0":"2025-07-08T10:21:00.335Z","1.0.0":"2025-07-08T10:24:00.803Z","1.1.0":"2025-07-09T08:50:38.711Z","2.0.0-canary.0":"2025-07-17T18:41:31.929Z","1.1.1":"2025-07-17T19:53:31.874Z","2.0.0":"2025-11-04T14:52:43.437Z","2.0.1":"2025-11-06T17:27:08.924Z","2.1.0":"2025-11-07T15:03:36.128Z","2.1.1":"2025-12-09T12:13:54.735Z","2.1.2":"2025-12-16T17:04:14.538Z","2.1.3":"2026-06-24T09:41:41.467Z","2.1.4":"2026-08-10T06:35:44.887Z","3.0.0":"2026-08-25T09:03:27.897Z"},"bugs":{"url":"https://github.com/portabletext/editor/issues"},"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","homepage":"https://portabletext.org","keywords":["keyboard-shortcuts","portabletext"],"repository":{"type":"git","url":"git+https://github.com/portabletext/editor.git","directory":"packages/keyboard-shortcuts"},"description":"Create platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms","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/keyboard-shortcuts`\n\nA TypeScript library for creating platform-aware keyboard shortcuts with automatic detection of Apple vs non-Apple platforms.\n\n## Features\n\n- **Platform Detection**: Automatically detects Apple platforms and uses appropriate key combinations\n- **Flexible Definitions**: Support for multiple key combinations per shortcut\n- **Event Matching**: Built-in keyboard event matching functionality\n- **Common Shortcuts**: Pre-defined shortcuts for common text editing operations\n\n## Installation\n\n```bash\nnpm install @portabletext/keyboard-shortcuts\n```\n\n## API reference\n\n### `KeyboardEventDefinition`\n\nDefines a single keyboard event that can be part of a shortcut.\n\n```typescript\ntype KeyboardEventDefinition = (\n  | {key: KeyboardEvent['key']; code: KeyboardEvent['code']}\n  | {key: KeyboardEvent['key']; code?: undefined}\n  | {key?: undefined; code: KeyboardEvent['code']}\n) & {\n  alt?: KeyboardEvent['altKey']\n  ctrl?: KeyboardEvent['ctrlKey']\n  meta?: KeyboardEvent['metaKey']\n  shift?: KeyboardEvent['shiftKey']\n}\n```\n\n**Properties:**\n\n- `key`: The keyboard key (case-insensitive)\n- `code`: The keyboard code (case-insensitive)\n- `alt`: Alt/Option key modifier\n- `ctrl`: Ctrl key modifier\n- `meta`: Meta/Command key modifier\n- `shift`: Shift key modifier\n\nAt least one of `key` or `code` must be provided.\n\n### `KeyboardShortcutDefinition`\n\nDefines a complete keyboard shortcut with platform-specific configurations.\n\n```typescript\ntype KeyboardShortcutDefinition = {\n  default: ReadonlyArray<KeyboardEventDefinition>\n  apple?: ReadonlyArray<KeyboardEventDefinition>\n}\n```\n\n**Properties:**\n\n- `default`: Required array of keyboard event definitions for non-Apple platforms\n- `apple`: Optional array of keyboard event definitions for Apple platforms (falls back to `default` if not provided)\n\n### `KeyboardShortcut`\n\nA resolved keyboard shortcut for the current platform.\n\n```typescript\ntype KeyboardShortcut<TKeyboardEvent> = {\n  guard: (event: TKeyboardEvent) => boolean\n  keys: ReadonlyArray<string>\n}\n```\n\n**Properties:**\n\n- `guard`: Function that determines if a keyboard event matches this shortcut\n- `keys`: Display-friendly key combination for the current platform\n\n### Core functions\n\n#### `createKeyboardShortcut(definition)`\n\nCreates a `KeyboardShortcut` from a `KeyboardShortcutDefinition`.\n\n```typescript\nfunction createKeyboardShortcut<TKeyboardEvent>(\n  definition: KeyboardShortcutDefinition,\n): KeyboardShortcut<TKeyboardEvent>\n```\n\n**Example:**\n\n```typescript\nimport {createKeyboardShortcut} from '@portabletext/keyboard-shortcuts'\n\nconst boldShortcut = createKeyboardShortcut({\n  default: [\n    {\n      key: 'B',\n      ctrl: true,\n      meta: false,\n      alt: false,\n      shift: false,\n    },\n  ],\n  apple: [\n    {\n      key: 'B',\n      ctrl: false,\n      meta: true,\n      alt: false,\n      shift: false,\n    },\n  ],\n})\n\n// On non-Apple platforms: Ctrl+B\n// On Apple platforms: ⌘+B\n```\n\n#### `isKeyboardShortcut(definition, event)`\n\nChecks whether a keyboard event matches a single `KeyboardEventDefinition`. Returns `true` on a match.\n\n```typescript\nimport {isKeyboardShortcut} from '@portabletext/keyboard-shortcuts'\n\nconst definition = {\n  key: 'B',\n  ctrl: true,\n  meta: false,\n  alt: false,\n  shift: false,\n}\n\nconst isMatch = isKeyboardShortcut(definition, keyboardEvent)\n```\n\n### Common shortcuts\n\nThe library provides pre-defined shortcuts for common text editing operations:\n\n```typescript\nimport {\n  blockquote,\n  bold,\n  code,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  italic,\n  link,\n  normal,\n  strikeThrough,\n  underline,\n} from '@portabletext/keyboard-shortcuts'\n```\n\n### Usage examples\n\n#### Basic usage\n\n```typescript\nimport {createKeyboardShortcut} from '@portabletext/keyboard-shortcuts'\n\nconst saveShortcut = createKeyboardShortcut({\n  default: [\n    {\n      key: 'S',\n      ctrl: true,\n      meta: false,\n      alt: false,\n      shift: false,\n    },\n  ],\n  apple: [\n    {\n      key: 'S',\n      ctrl: false,\n      meta: true,\n      alt: false,\n      shift: false,\n    },\n  ],\n})\n\n// Use the shortcut\ndocument.addEventListener('keydown', (event) => {\n  if (saveShortcut.guard(event)) {\n    event.preventDefault()\n    saveDocument()\n  }\n})\n\n// Display the shortcut keys\nconsole.log(saveShortcut.keys.join('+')) // \"Ctrl+S\" or \"⌘+S\"\n```\n\n#### Using pre-defined shortcuts\n\n```typescript\nimport {bold, italic} from '@portabletext/keyboard-shortcuts'\n\ndocument.addEventListener('keydown', (event) => {\n  if (bold.guard(event)) {\n    event.preventDefault()\n    toggleBold()\n  } else if (italic.guard(event)) {\n    event.preventDefault()\n    toggleItalic()\n  }\n})\n```\n\n#### Multiple key combinations\n\n```typescript\nconst deleteShortcut = createKeyboardShortcut({\n  default: [\n    {key: 'Delete', ctrl: false, meta: false, alt: false, shift: false},\n    {key: 'Backspace', ctrl: false, meta: false, alt: false, shift: false},\n  ],\n})\n```\n","readmeFilename":"README.md"}