@lottiefiles/lottie-player 1.7.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +1 -1
- package/dist/lottie-player.d.ts +252 -233
- package/dist/lottie-player.js +350 -77
- package/dist/lottie-player.js.map +1 -1
- package/dist/lottie-player.mjs +339 -0
- package/dist/lottie-player.mjs.map +1 -0
- package/dist/tgs-player.d.ts +263 -29
- package/dist/tgs-player.js +355 -54
- package/dist/tgs-player.js.map +1 -1
- package/dist/tgs-player.mjs +349 -0
- package/dist/tgs-player.mjs.map +1 -0
- package/package.json +56 -83
- package/dist/lottie-player.d.ts.map +0 -1
- package/dist/lottie-player.esm.js +0 -77
- package/dist/lottie-player.esm.js.map +0 -1
- package/dist/lottie-player.styles.d.ts +0 -6
- package/dist/lottie-player.styles.d.ts.map +0 -1
- package/dist/tgs-player.d.ts.map +0 -1
- package/dist/tgs-player.esm.js +0 -54
- package/dist/tgs-player.esm.js.map +0 -1
- package/dist/tgs-player.styles.d.ts +0 -6
- package/dist/tgs-player.styles.d.ts.map +0 -1
- package/dist/versions.d.ts +0 -3
- package/dist/versions.d.ts.map +0 -1
package/package.json
CHANGED
@@ -1,89 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lottiefiles/lottie-player",
|
3
|
-
"version": "
|
3
|
+
"version": "2.0.0",
|
4
4
|
"description": "Lottie animation and Telegram Sticker player web components.",
|
5
|
-
"main": "dist/lottie-player.js",
|
6
|
-
"module": "dist/lottie-player.esm.js",
|
7
|
-
"types": "dist/lottie-player.d.ts",
|
8
|
-
"homepage": "https://lottiefiles.com/web-player",
|
9
5
|
"repository": "https://github.com/LottieFiles/lottie-player.git",
|
6
|
+
"homepage": "https://lottiefiles.com/web-player",
|
10
7
|
"bugs": "https://github.com/LottieFiles/lottie-player/issues",
|
11
8
|
"author": "Jawish Hameed <jawish@lottiefiles.com>",
|
12
9
|
"license": "MIT",
|
13
|
-
"
|
14
|
-
|
15
|
-
|
16
|
-
"prebuild": "node -p \"'export const LOTTIE_PLAYER_VERSION = ' + JSON.stringify(require('./package.json').version) + '; \\n' + 'export const LOTTIE_WEB_VERSION = ' + JSON.stringify(require('./package.json').dependencies['lottie-web']) + ';'\" > src/versions.ts",
|
17
|
-
"build": "npm run cleanup && npm run build-lottie && npm run build-tgs",
|
18
|
-
"build-with-coverage": "npm run cleanup && CODE_COVERAGE=true npm run build-lottie && CODE_COVERAGE=true npm run build-tgs",
|
19
|
-
"build-lottie": "rollup -c ",
|
20
|
-
"build-tgs": "rollup -c rollup-tgs.config.js",
|
21
|
-
"watch-lottie": "npm run cleanup && rollup -c --watch",
|
22
|
-
"watch-tgs": "npm run cleanup && rollup -c rollup-tgs.config.js --watch",
|
23
|
-
"cleanup": "shx rm -rf dist && shx mkdir dist",
|
24
|
-
"release": "semantic-release",
|
25
|
-
"lint": "eslint . --ext .ts,.tsx,.js",
|
26
|
-
"lint:fix": "eslint . --ext .ts,.tsx,.js --fix",
|
27
|
-
"serve": "node ./cypress/pages/server.js -p 8000 &",
|
28
|
-
"start-cypress": "yarn run cypress run && npx nyc report --reporter=text-summary",
|
29
|
-
"run-tests": "yarn run build-with-coverage && yarn run serve && yarn run start-cypress",
|
30
|
-
"postrun-tests": "kill $(lsof -t -i:8000)"
|
31
|
-
},
|
32
|
-
"dependencies": {
|
33
|
-
"@types/pako": "^1.0.1",
|
34
|
-
"lit": "^2.1.2",
|
35
|
-
"lottie-web": "^5.10.0",
|
36
|
-
"pako": "^2.0.4",
|
37
|
-
"resize-observer-polyfill": "^1.5.1"
|
38
|
-
},
|
39
|
-
"devDependencies": {
|
40
|
-
"@babel/core": "^7.11.0",
|
41
|
-
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
42
|
-
"@babel/plugin-proposal-decorators": "^7.10.5",
|
43
|
-
"@babel/preset-env": "^7.11.0",
|
44
|
-
"@babel/preset-typescript": "^7.10.4",
|
45
|
-
"@commitlint/cli": "^16.1.0",
|
46
|
-
"@commitlint/config-conventional": "^16.0.0",
|
47
|
-
"@cypress/code-coverage": "^3.9.12",
|
48
|
-
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
49
|
-
"@lottiefiles/eslint-plugin": "^2.2.0",
|
50
|
-
"@rollup/plugin-babel": "^5.1.0",
|
51
|
-
"@rollup/plugin-commonjs": "^21.0.1",
|
52
|
-
"@rollup/plugin-node-resolve": "^13.1.3",
|
53
|
-
"@semantic-release/changelog": "^6.0.1",
|
54
|
-
"@semantic-release/commit-analyzer": "^9.0.2",
|
55
|
-
"@semantic-release/git": "^10.0.1",
|
56
|
-
"@semantic-release/github": "^8.0.2",
|
57
|
-
"@semantic-release/npm": "^9.0.0",
|
58
|
-
"@semantic-release/release-notes-generator": "^10.0.3",
|
59
|
-
"babel-eslint": "^10.1.0",
|
60
|
-
"babel-plugin-istanbul": "^6.1.1",
|
61
|
-
"cypress": "^9.2.1",
|
62
|
-
"cypress-real-events": "^1.6.0",
|
63
|
-
"eslint": "^7.27.0",
|
64
|
-
"eslint-plugin-only-warn": "^1.0.2",
|
65
|
-
"fastify": "^3.25.3",
|
66
|
-
"fastify-static": "^4.5.0",
|
67
|
-
"husky": ">=4",
|
68
|
-
"lerna": "^4.0.0",
|
69
|
-
"lint-staged": "^12.3.2",
|
70
|
-
"parcel-bundler": "^1.12.4",
|
71
|
-
"prettier": "^2.3.0",
|
72
|
-
"rollup": "^2.23.0",
|
73
|
-
"rollup-plugin-copy": "^3.3.0",
|
74
|
-
"rollup-plugin-filesize": "^9.0.2",
|
75
|
-
"rollup-plugin-serve": "^1.0.3",
|
76
|
-
"rollup-plugin-terser": "^7.0.2",
|
77
|
-
"rollup-plugin-typescript2": "^0.31.1",
|
78
|
-
"rollup-plugin-uglify": "^6.0.4",
|
79
|
-
"rollup-plugin-visualizer": "^5.5.4",
|
80
|
-
"semantic-release": "^19.0.2",
|
81
|
-
"shx": "^0.3.4",
|
82
|
-
"source-map-support": "^0.5.21",
|
83
|
-
"ts-node": "^10.4.0",
|
84
|
-
"typescript": "^4.5.5",
|
85
|
-
"unicode-canonical-property-names-ecmascript": "^2.0.0"
|
86
|
-
},
|
10
|
+
"main": "dist/lottie-player.js",
|
11
|
+
"module": "dist/lottie-player.mjs",
|
12
|
+
"types": "dist/lottie-player.d.ts",
|
87
13
|
"files": [
|
88
14
|
"dist/"
|
89
15
|
],
|
@@ -98,12 +24,40 @@
|
|
98
24
|
"telegram sticker",
|
99
25
|
"tgs"
|
100
26
|
],
|
101
|
-
"
|
102
|
-
"
|
103
|
-
|
27
|
+
"dependencies": {
|
28
|
+
"@changesets/cli": "^2.26.1",
|
29
|
+
"@types/pako": "^1.0.4",
|
30
|
+
"lit": "^2.4.1",
|
31
|
+
"lottie-web": "^5.12.0",
|
32
|
+
"pako": "^2.1.0",
|
33
|
+
"resize-observer-polyfill": "^1.5.1"
|
34
|
+
},
|
35
|
+
"devDependencies": {
|
36
|
+
"@commitlint/cli": "^16.3.0",
|
37
|
+
"@commitlint/config-conventional": "^16.2.4",
|
38
|
+
"@lottiefiles/eslint-plugin": "^3.0.0",
|
39
|
+
"@lottiefiles/prettier-config": "^3.0.0",
|
40
|
+
"cypress": "^12.13.0",
|
41
|
+
"cypress-ct-lit": "^0.3.2",
|
42
|
+
"cypress-real-events": "^1.7.4",
|
43
|
+
"eslint": "^7.32.0",
|
44
|
+
"eslint-plugin-only-warn": "^1.0.3",
|
45
|
+
"husky": "^8.0.2",
|
46
|
+
"lint-staged": "^12.5.0",
|
47
|
+
"prettier": "^2.8.0",
|
48
|
+
"ts-node": "^10.9.1",
|
49
|
+
"tsup": "^6.7.0",
|
50
|
+
"turbo": "^1.10.2",
|
51
|
+
"typescript": "^4.9.3",
|
52
|
+
"unicode-canonical-property-names-ecmascript": "^2.0.0",
|
53
|
+
"vite": "^4.3.9"
|
54
|
+
},
|
104
55
|
"publishConfig": {
|
105
56
|
"access": "public"
|
106
57
|
},
|
58
|
+
"browserslist": [
|
59
|
+
"> 3%"
|
60
|
+
],
|
107
61
|
"husky": {
|
108
62
|
"hooks": {
|
109
63
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
@@ -121,5 +75,24 @@
|
|
121
75
|
"nyc": {
|
122
76
|
"extends": "@istanbuljs/nyc-config-typescript",
|
123
77
|
"all": true
|
78
|
+
},
|
79
|
+
"scripts": {
|
80
|
+
"build": "tsup",
|
81
|
+
"changelog": "changeset add",
|
82
|
+
"changelog:check": "changeset status --since=main",
|
83
|
+
"dev": "tsup --watch",
|
84
|
+
"format": "pnpm run format:prettier",
|
85
|
+
"format:prettier": "prettier --loglevel=warn --no-editorconfig --write .",
|
86
|
+
"format:remark": "remark . --output --ignore-path .remarkignore --silently-ignore",
|
87
|
+
"lint": "eslint . --ext .ts,.tsx,.js",
|
88
|
+
"lint:fix": "eslint . --ext .ts,.tsx,.js --fix",
|
89
|
+
"open": "cypress open",
|
90
|
+
"preinstall": "npx only-allow pnpm",
|
91
|
+
"release": "pnpm release:version && pnpm release:publish",
|
92
|
+
"release:publish": "pnpm build && changeset publish",
|
93
|
+
"release:tag": "changeset tag",
|
94
|
+
"release:version": "changeset version",
|
95
|
+
"test": "cypress run --component",
|
96
|
+
"type-check": "turbo run type-check"
|
124
97
|
}
|
125
|
-
}
|
98
|
+
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"lottie-player.d.ts","sourceRoot":"","sources":["../src/lottie-player.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAS7C,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAGD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IAC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