{"_id":"@lottie-animation-community/lottie-types","_rev":"6-534bcec8b63dc76bb168f4da04b72f5d","name":"@lottie-animation-community/lottie-types","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@lottie-animation-community/lottie-types","version":"1.0.0","keywords":["lottie","lottie-animation-community","lottie-schema","lottie-types"],"author":{"name":"Aidos Sabit","email":"https://github.com/aidosmf/"},"license":"MIT","_id":"@lottie-animation-community/lottie-types@1.0.0","maintainers":[{"name":"aidosmf","email":"aidosmf@gmail.com"}],"homepage":"https://github.com/lottie/lottie-types#readme","bugs":{"url":"https://github.com/lottie/lottie-types/issues"},"dist":{"shasum":"659404d6803cfa3a21958d8bb9bfbe1270e657fa","tarball":"https://registry.npmjs.org/@lottie-animation-community/lottie-types/-/lottie-types-1.0.0.tgz","fileCount":4,"integrity":"sha512-5zKU2kPUOC5loHaSzKse/iIJSvSHSM0MgHfhVnNTrNrxzTGE/7TIjtZhFDFWQxfEjKjiXINOJ07p3iG7jW/aFw==","signatures":[{"sig":"MEYCIQC0RFFBY46+vucHGS1L1aGv8TVju6XgoLarv2TvmEXIFwIhAMsiE+HHS8VR1KpNXnpX/yRRyrNS+Qzld9+nu7s3oiWc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65059},"main":"index.js","types":"index.d.ts","gitHead":"1933a5bf7930ea7813a8b2c1071802336dea00be","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"yarn clean && rollup -c","clean":"rm -rf index.d.ts","prepare":"husky install","changelog":"changeset add","changelog:check":"changeset status --since=main","format:prettier":"prettier --loglevel=warn --no-editorconfig --write .","changelog:publish":"changeset publish","changelog:version":"changeset version"},"_npmUser":{"name":"aidosmf","email":"aidosmf@gmail.com"},"repository":{"url":"git+https://github.com/lottie/lottie-types.git","type":"git"},"_npmVersion":"10.5.2","description":"TypeScript definitions for Lottie animation format","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"20.13.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.4","rollup":"^2.66.1","prettier":"2.6.2","typescript":"^4.6.3","@types/node":"^17.0.23","lint-staged":"^12.3.7","@changesets/cli":"^2.24.3","rollup-plugin-dts":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lottie-types_1.0.0_1716566088009_0.3638557511462248","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@lottie-animation-community/lottie-types","version":"1.1.0","keywords":["lottie","lottie-animation-community","lottie-schema","lottie-types"],"author":{"name":"Aidos Sabit","email":"https://github.com/aidosmf/"},"license":"MIT","_id":"@lottie-animation-community/lottie-types@1.1.0","maintainers":[{"name":"aidosmf","email":"aidosmf@gmail.com"}],"homepage":"https://github.com/lottie/lottie-types#readme","bugs":{"url":"https://github.com/lottie/lottie-types/issues"},"dist":{"shasum":"bffbd13953a0c4a9338465589298d1997e17a450","tarball":"https://registry.npmjs.org/@lottie-animation-community/lottie-types/-/lottie-types-1.1.0.tgz","fileCount":4,"integrity":"sha512-xMPpJWnBKHrC8WMmL4DImXOIlJArNqL0eWKAHDw8UGGgiQfrlJp+YdKkV8p4Zr4EqWE1YqxB2iFI0GrTkGz3jA==","signatures":[{"sig":"MEUCIBPq9yu5WD4vvHwzOGjHz1TKxcC0DU1b1QRPqbtQkXtSAiEA44mmoETKHkNdZUNPR6GbS3GgZ4eT5KSLDzrZuR9RHlc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66277},"main":"index.js","types":"index.d.ts","gitHead":"dff793ede4ff3f75c934bb4faa6c55131508dd26","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"yarn clean && rollup -c","clean":"rm -rf index.d.ts","prepare":"husky install","changelog":"changeset add","changelog:check":"changeset status --since=main","format:prettier":"prettier --loglevel=warn --no-editorconfig --write .","changelog:publish":"changeset publish","changelog:version":"changeset version"},"_npmUser":{"name":"aidosmf","email":"aidosmf@gmail.com"},"repository":{"url":"git+https://github.com/lottie/lottie-types.git","type":"git"},"_npmVersion":"10.5.2","description":"TypeScript definitions for Lottie animation format","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"20.13.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.4","rollup":"^2.66.1","prettier":"2.6.2","typescript":"^4.6.3","@types/node":"^17.0.23","lint-staged":"^12.3.7","@changesets/cli":"^2.24.3","rollup-plugin-dts":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lottie-types_1.1.0_1716893189762_0.36125549240512367","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@lottie-animation-community/lottie-types","version":"1.2.0","keywords":["lottie","lottie-animation-community","lottie-schema","lottie-types"],"author":{"name":"Aidos Sabit","email":"https://github.com/aidosmf/"},"license":"MIT","_id":"@lottie-animation-community/lottie-types@1.2.0","maintainers":[{"name":"aidosmf","email":"aidosmf@gmail.com"}],"homepage":"https://github.com/lottie/lottie-types#readme","bugs":{"url":"https://github.com/lottie/lottie-types/issues"},"dist":{"shasum":"31c5a06b2026d744a4bf8b6c826392039656ab50","tarball":"https://registry.npmjs.org/@lottie-animation-community/lottie-types/-/lottie-types-1.2.0.tgz","fileCount":4,"integrity":"sha512-/TKbYhDbjneATE++7yxuBJU1PsiSvXFFZgjB4SyOehTrkUmIaSFSb1mHj/Em9YIWpF5TRkxzqRwJZIh5/g0cSA==","signatures":[{"sig":"MEQCIGdwv0kZ6u2Uc4C66sWMXo0BVq0w9uor2qsf/WPGTwcKAiBOGkbIzrwZcASco/446WgqeAg4FRBDZ/TqLDm/QRaRjQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66301},"main":"index.js","types":"index.d.ts","gitHead":"3282441e8f652107c011d919640d8fa54a33c40a","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"yarn clean && rollup -c","clean":"rm -rf index.d.ts","prepare":"husky install","changelog":"changeset add","changelog:check":"changeset status --since=main","format:prettier":"prettier --loglevel=warn --no-editorconfig --write .","changelog:publish":"changeset publish","changelog:version":"changeset version"},"_npmUser":{"name":"aidosmf","email":"aidosmf@gmail.com"},"repository":{"url":"git+https://github.com/lottie/lottie-types.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript definitions for Lottie animation format","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"20.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.4","rollup":"^2.66.1","prettier":"2.6.2","typescript":"^4.6.3","@types/node":"^17.0.23","lint-staged":"^12.3.7","@changesets/cli":"^2.24.3","rollup-plugin-dts":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lottie-types_1.2.0_1724987253398_0.10947279933516052","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@lottie-animation-community/lottie-types","version":"1.3.0","description":"TypeScript definitions and runtime constants for the Lottie animation format","type":"module","main":"./index.cjs","module":"./index.js","types":"./index.d.ts","exports":{".":{"import":{"types":"./index.d.ts","default":"./index.js"},"require":{"types":"./index.d.cts","default":"./index.cjs"}},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"clean":"rm -f index.d.ts index.d.cts index.js index.js.map index.cjs index.cjs.map","test":"yarn build && yarn test:types && yarn test:runtime","test:types":"tsc --noEmit -p test/tsconfig.json && tsc --noEmit -p test/tsconfig.cjs.json","test:runtime":"node test/runtime.mjs && node test/runtime.cjs","format:prettier":"prettier --log-level=warn --no-editorconfig --write .","build":"yarn clean && rollup -c","prepack":"yarn build","prepare":"husky","changelog":"changeset add","changelog:check":"changeset status --since=main","changelog:version":"changeset version","changelog:publish":"changeset publish"},"repository":{"type":"git","url":"git+https://github.com/lottie/lottie-types.git"},"keywords":["lottie","lottie-animation-community","lottie-schema","lottie-types"],"author":{"name":"Aidos Sabit","email":"https://github.com/aidosmf/"},"license":"MIT","devDependencies":{"@changesets/cli":"^2.28.1","@rollup/plugin-typescript":"^12.1.2","@types/node":"^22.13.14","husky":"^9.1.7","lint-staged":"^15.5.0","prettier":"^3.5.3","rollup":"^4.38.0","rollup-plugin-dts":"^6.2.1","tslib":"^2.8.1","typescript":"^5.8.2"},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"publishConfig":{"access":"public"},"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","gitHead":"2281379f6fd9d8060dfbe704a6f3298d68ccc00e","_id":"@lottie-animation-community/lottie-types@1.3.0","bugs":{"url":"https://github.com/lottie/lottie-types/issues"},"homepage":"https://github.com/lottie/lottie-types#readme","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-vWHeBR/EbZEhWj3p0n1Xch/nInLU6QFsLrpFSoudF/TBYHFv/M0RITmJ9UGPmDVsoxF0eV25rGFhl8qLjRpWmg==","shasum":"3baffb17e19f5a2ff08b093371cee529174ca606","tarball":"https://registry.npmjs.org/@lottie-animation-community/lottie-types/-/lottie-types-1.3.0.tgz","fileCount":7,"unpackedSize":199761,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lottie-animation-community%2flottie-types@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD7DfHyqsRb2EzccenAiWr9w0zFsKb2ZE93hr75F7MtpwIgBX/DnTRkzgkjqaDeENM4d3psT8CJ+MVSvgxegdAzL5g="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9f0ffcbe-256a-49a1-af66-04ed763f8822"}},"directories":{},"maintainers":[{"name":"aidosmf","email":"aidosmf@gmail.com"},{"name":"mattbas","email":"glax.npm@dragon.best"},{"name":"bwils","email":"bmw8719+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lottie-types_1.3.0_1784877823098_0.8071973357075417"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-24T15:54:47.914Z","modified":"2026-07-24T07:23:43.613Z","1.0.0":"2024-05-24T15:54:48.142Z","1.1.0":"2024-05-28T10:46:29.917Z","1.2.0":"2024-08-30T03:07:33.676Z","1.3.0":"2026-07-24T07:23:43.240Z"},"bugs":{"url":"https://github.com/lottie/lottie-types/issues"},"author":{"name":"Aidos Sabit","email":"https://github.com/aidosmf/"},"license":"MIT","homepage":"https://github.com/lottie/lottie-types#readme","keywords":["lottie","lottie-animation-community","lottie-schema","lottie-types"],"repository":{"type":"git","url":"git+https://github.com/lottie/lottie-types.git"},"description":"TypeScript definitions and runtime constants for the Lottie animation format","maintainers":[{"name":"aidosmf","email":"aidosmf@gmail.com"},{"name":"mattbas","email":"glax.npm@dragon.best"},{"name":"bwils","email":"bmw8719+npm@gmail.com"}],"readme":"# lottie-types\n\n## Installation\n\n```bash\nnpm install --save @lottie-animation-community/lottie-types\n```\n\n## Summary\n\nThis package contains type definitions and runtime constants for the Lottie animation format, with dedicated ESM and CommonJS entry points.\n\n```ts\nimport { BlendMode, LayerType } from \"@lottie-animation-community/lottie-types\";\n\nconst blendMode: BlendMode = BlendMode.Normal;\nconst layerType: LayerType = LayerType.Text;\n```\n\n```js\nconst { BlendMode } = require(\"@lottie-animation-community/lottie-types\");\n```\n\nThe deprecated uppercase enum names remain available for compatibility:\n\n```ts\nconst blendMode: BlendMode.VALUE = BlendMode.VALUE.NORMAL;\n```\n\nSince the constants exist at runtime, install the package as a regular dependency (not a `devDependency`) if you use them as values rather than only as types.\n\n## Details\n\nThe project has been migrated from the [lottiefiles](https://github.com/lottiefiles) organization that has been used internally. The definition types have been built based on [lottie-docs/schema](https://lottiefiles.github.io/lottie-docs/schema/) with a few differences: firstly, some\nadditional informative type comments have been added through testing the schema types with real Lottie data; secondly,\nthe types constructed in a way to avoid duplications.\n\nInstead of writing the types manually, generating it automatically was considered but wasn't successful, for\nreason that most of the tools such as [quicktype](https://quicktype.io/),\n[json-schema-to-typescript](https://github.com/bcherny/json-schema-to-typescript) and\n[transform](https://github.com/ritz078/transform) don't work well with huge JSON-schema structures with many nested\nlayers and don't support [json-schema/draft/2020-12](https://json-schema.org/draft/2020-12/release-notes.html) features\nsuch as complicated conditionals, prefixItems, and some def reference scenarios.\n\nThe schema definitions have been synced with [marcusstenbeck/lottie-types](https://github.com/marcusstenbeck/lottie-types) as well.\n\n## Plan\n\n- auto-generate types from [lottie-docs/schema](https://lottiefiles.github.io/lottie-docs/schema/)\n- publish the final definition bundle to [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped)\n\n## Contribution\n\nThe following steps will get you setup to contribute changes to this repo:\n\n1. Fork the repo\n\n2. Run `yarn install` to get dependencies packages\n\n3. Sync any schema changes with [lottie-docs](https://github.com/LottieFiles/lottie-docs)\n\n4. Add changesets running `yarn changelog` for any reasonable change to your codebase. You must ensure Changesets are\n   included when making a Pull Request to merge to main branches. Please refer to the [changeset docs](https://github.com/changesets/changesets)\n\n5. Create a PR from `feature-branch` to `main`\n\n6. After merging to `main` the Github action will create another PR for only version bumping and changelog, which you\n   have to merge the PR manually\n\n7. the package will be released to the NPM and GitHub registry after the merging the Changeset PR\n\n## Commands\n\n| Command                  | Description                                                          |\n| ------------------------ | -------------------------------------------------------------------- |\n| `yarn clean`             | Deletes the generated package entry points                           |\n| `yarn test`              | Builds and validates types plus ESM and CommonJS runtime exports     |\n| `yarn format:prettier`   | Format the code using prettier                                       |\n| `yarn build`             | Bundles runtime constants and declarations into package entry points |\n| `yarn changelog`         | Add a changeset changelog entry                                      |\n| `yarn changelog:check`   | Check pending changesets                                             |\n| `yarn changelog:version` | Update all the workspace projects versions using changesets          |\n| `yarn changelog:publish` | Publish the packages to the package repository                       |\n\n## License\n\n[MIT](./LICENSE) © [lottie-animation-community](https://github.com/lottie)\n","readmeFilename":"README.md"}