{"_id":"@bento/internal-props","_rev":"3-0418316d137b381acf8e3e29d8110c1f","name":"@bento/internal-props","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@bento/internal-props","version":"0.1.0","keywords":["bento","component","hook","internal","library","prefix","props","react"],"author":{"name":"GoDaddy Operating Company, LLC"},"license":"MIT","_id":"@bento/internal-props@0.1.0","maintainers":[{"name":"3rdeden","email":"npmjs@3rd-Eden.com"},{"name":"rxmarbles","email":"rmarkins@gmail.com"},{"name":"kawikabader","email":"ekbader@gmail.com"}],"homepage":"https://github.com/godaddy/bento#readme","bugs":{"url":"https://github.com/godaddy/bento/issues"},"dist":{"shasum":"6ea6291244b298fe32a22843188fcd50fe39978c","tarball":"https://registry.npmjs.org/@bento/internal-props/-/internal-props-0.1.0.tgz","fileCount":10,"integrity":"sha512-ZIF8bw4/b6xZVTf9vZDwm8K8ZiXzX3Tdlr1E2BOX9dOdlFCBctjGbU3Hm/990fAzqs7TLYC3SD9eMhFwej+eaw==","signatures":[{"sig":"MEYCIQCPigE+aTJmk0FeZhYw0poG1b78sTDguUD71fcA7wa/4QIhANtiDFsfg4EBt5/TsrCfdpj+oiz+OECMWhbmV76ZTTVF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bento%2finternal-props@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18888},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"gitHead":"8cf6c3e7e24572c8b548fc4207e3af58bc3b5cc1","scripts":{"dev":"tsup-node --watch","lint":"biome lint && tsc --noEmit","test":"vitest --run","build":"tsup-node","pretest":"npm run build","posttest":"npm run lint","test:watch":"vitest"},"_npmUser":{"name":"kawikabader","email":"ekbader@gmail.com"},"repository":{"url":"git+https://github.com/godaddy/bento.git","type":"git"},"_npmVersion":"10.9.2","description":"Internal utilities for managing prefixed component properties","directories":{},"_nodeVersion":"23.11.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"peerDependencies":{"react":"18.x || 19.x","react-dom":"18.x || 19.x"},"_npmOperationalInternal":{"tmp":"tmp/internal-props_0.1.0_1761318929120_0.6802360975739492","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bento/internal-props","version":"0.1.1","keywords":["bento","component","hook","internal","library","prefix","props","react"],"author":{"name":"GoDaddy Operating Company, LLC"},"license":"MIT","_id":"@bento/internal-props@0.1.1","maintainers":[{"name":"3rdeden","email":"npmjs@3rd-Eden.com"},{"name":"rxmarbles","email":"rmarkins@gmail.com"},{"name":"kawikabader","email":"ekbader@gmail.com"}],"homepage":"https://github.com/godaddy/bento#readme","bugs":{"url":"https://github.com/godaddy/bento/issues"},"dist":{"shasum":"b1ddcb09fc169d598f3dc6fdd1a93382bdbcc003","tarball":"https://registry.npmjs.org/@bento/internal-props/-/internal-props-0.1.1.tgz","fileCount":11,"integrity":"sha512-YXXhMOBalyH7EEVL8ankNKFVpfHA58ylA8t3cF9aTIh0ioIKB7INjgxMZlyu5jeEqi/+9qvqb7gY7HRjslOeig==","signatures":[{"sig":"MEYCIQDjyNhZRFMEobSLMq3hJBe4OeFbO/rTFy9VIyA3jl2M7wIhANshmWZ3Pz23F5ypK3OouNkqZ9NZBjB+oAvA4mRhVmSw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bento%2finternal-props@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":20889},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"gitHead":"b630e17d1fad413043801e80ed1c1a0c5fe1d4b3","scripts":{"dev":"tsup-node --watch","lint":"biome lint && tsc --noEmit","test":"vitest --run","build":"tsup-node","pretest":"npm run build","posttest":"npm run lint","test:watch":"vitest","prepublishOnly":"node ../../scripts/compile-readme.ts"},"_npmUser":{"name":"kawikabader","email":"ekbader@gmail.com"},"repository":{"url":"git+https://github.com/godaddy/bento.git","type":"git"},"_npmVersion":"11.6.2","description":"Internal utilities for managing prefixed component properties","directories":{},"_nodeVersion":"23.11.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"peerDependencies":{"react":"18.x || 19.x","react-dom":"18.x || 19.x"},"_npmOperationalInternal":{"tmp":"tmp/internal-props_0.1.1_1762462129427_0.9131126623349135","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-10-24T15:15:29.020Z","modified":"2025-12-18T16:37:48.861Z","0.1.0":"2025-10-24T15:15:29.299Z","0.1.1":"2025-11-06T20:48:49.639Z"},"bugs":{"url":"https://github.com/godaddy/bento/issues"},"author":{"name":"GoDaddy Operating Company, LLC"},"license":"MIT","homepage":"https://github.com/godaddy/bento#readme","keywords":["bento","component","hook","internal","library","prefix","props","react"],"repository":{"url":"git+https://github.com/godaddy/bento.git","type":"git"},"description":"Internal utilities for managing prefixed component properties","maintainers":[{"email":"rmarkins@godaddy.com","name":"rmarkins"},{"email":"npmjs@3rd-Eden.com","name":"3rdeden"},{"email":"rmarkins@gmail.com","name":"rxmarbles"},{"email":"ekbader@gmail.com","name":"kawikabader"}],"readme":"# InternalProps\n\nThe `@bento/internal-props` package provides internal utilities and components used across the Bento project to bypass restrictions, filtering of props, or triggering of data-override props within the Bento ecosystem. This package is strictly for internal use by @bento-based components or those who use Bento to create design system components.\n\n> ⚠️ **Warning**: This package is not intended for public consumption and is subject to change without notice. It should only be used by internal Bento components or design system implementations.\n\n## Installation\n\nTo install the package, use your preferred package manager:\n\n```shell\nnpm install @bento/internal-props\n```\n\n## API\n\nThe package exports two main functions:\n\n### useInternalProps\n\nExtracts internal properties from a set of properties by removing the specified prefix.\n\n```tsx\nimport { useInternalProps } from '@bento/internal-props';\n\nconst [props, internal] = useInternalProps({\n  '$$bento-internal-1-foo': 'bar',\n  '$$bento-internal-1-baz': 'qux',\n  regular: 'prop'\n});\n\nconsole.log(props);   // { regular: 'prop' }\nconsole.log(internal); // { foo: 'bar', baz: 'qux' }\n```\n\nThe function accepts two arguments:\n- `props`: The properties to extract from\n- `prefix`: (Optional) The prefix to remove from the properties. Defaults to `$$bento-internal-{major}-`\n\n### toInternalProps\n\nConverts a set of properties to internal properties by prefixing them with the specified namespace.\n\n```tsx\nimport { toInternalProps } from '@bento/internal-props';\n\nconst internal = toInternalProps({\n  foo: 'bar',\n  baz: 'qux'\n});\n\nconsole.log(internal); // { '$$bento-internal-1-foo': 'bar', '$$bento-internal-1-baz': 'qux' }\n```\n\nThe function accepts two arguments:\n- `props`: The properties to convert\n- `prefix`: (Optional) The prefix to use for the internal properties. Defaults to `$$bento-internal-{major}-`\n\n### Example\n\n<Source language='tsx' code={ SourceDemo } />","readmeFilename":"README.md"}