UNPKG

@lottielab/lottie-player

Version:

Versatile Lottie animation player based on lottie-web. Supports HTML (via Web Components) and React.

98 lines (97 loc) 2.73 kB
{ "name": "@lottielab/lottie-player", "version": "1.1.3", "description": "Versatile Lottie animation player based on lottie-web. Supports HTML (via Web Components) and React.", "main": "dist/cjs/bundle.js", "module": "dist/esm/bundle.js", "types": "dist/types/bundle.d.ts", "exports": { ".": { "require": "./dist/cjs/bundle.js", "import": "./dist/esm/bundle.mjs", "types": "./dist/types/bundle.d.ts" }, "./web": { "require": "./dist/cjs/web.js", "import": "./dist/esm/web.mjs", "types": "./dist/types/web.d.ts" }, "./react": { "require": "./dist/cjs/react.js", "import": "./dist/esm/react.mjs", "types": "./dist/types/react.d.ts" } }, "typesVersions": { "*": { "web": [ "./dist/types/web.d.ts" ], "react": [ "./dist/types/react.d.ts" ] } }, "scripts": { "build:ts": "tsc", "build:bundle": "rollup -c", "build": "npm run prettier && tsc && npm run build:bundle", "build:playground:bundle": "rollup -c rollup.config.playground.mjs", "build:playground": "npm run build:ts && npm run build:playground:bundle", "prettier": "prettier --write \"src/**/*.ts\" \"src/**/*.tsx\"", "playground": "npm run build:playground && http-server -p 8080 -c-1 -o playground/ .", "test": "echo \"Error: no test specified\" && exit 1", "prepare": "husky install" }, "author": "Lottielab", "license": "MIT", "keywords": [ "lottie", "lottie-web", "bodymovin", "animation", "lottielab" ], "homepage": "https://www.lottielab.com", "repository": { "type": "git", "url": "git+https://github.com/lottielab/lottie-player.git" }, "bugs": { "url": "https://github.com/lottielab/lottie-player/issues" }, "dependencies": { "lottie-web": "github:lottielab/lottie-web#c671e8eaefb95099fdb126d2fc68a566327e4354" }, "peerDependencies": { "react": ">=16.8.0" }, "peerDependenciesMeta": { "react": { "optional": true } }, "devDependencies": { "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-terser": "^0.4.4", "@types/react": "^18.2.47", "@types/react-dom": "^18.2.18", "classnames": "^2.5.1", "http-server": "^14.1.1", "husky": "^9.0.11", "lint-staged": "^15.2.2", "prettier": "^3.1.1", "react-dom": "^18.2.0", "rollup": "^4.12.0", "rollup-plugin-dts": "^6.1.0", "rollup-plugin-sourcemaps": "^0.6.3", "tslib": "^2.6.2", "typescript": "^5.3.3" }, "lint-staged": { "*.{js,css,md}": "prettier --write" } }