@lottiefiles/lottie-player 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright 2022 Design Barn Inc.
3
+ */
4
+ declare const _default: import("lit-element").CSSResult;
5
+ export default _default;
6
+ //# sourceMappingURL=tgs-player.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tgs-player.styles.d.ts","sourceRoot":"","sources":["../src/tgs-player.styles.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAMH,wBAOE"}
@@ -0,0 +1,3 @@
1
+ export declare const LOTTIE_PLAYER_VERSION = "2.0.2";
2
+ export declare const LOTTIE_WEB_VERSION = "^5.10.0";
3
+ //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,kBAAkB,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,15 +1,89 @@
1
1
  {
2
2
  "name": "@lottiefiles/lottie-player",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Lottie animation and Telegram Sticker player web components.",
5
- "repository": "https://github.com/LottieFiles/lottie-player.git",
5
+ "main": "dist/lottie-player.js",
6
+ "module": "dist/lottie-player.esm.js",
7
+ "types": "dist/lottie-player.d.ts",
6
8
  "homepage": "https://lottiefiles.com/web-player",
9
+ "repository": "https://github.com/LottieFiles/lottie-player.git",
7
10
  "bugs": "https://github.com/LottieFiles/lottie-player/issues",
8
11
  "author": "Jawish Hameed <jawish@lottiefiles.com>",
9
12
  "license": "MIT",
10
- "main": "dist/lottie-player.js",
11
- "module": "dist/lottie-player.mjs",
12
- "types": "dist/lottie-player.d.ts",
13
+ "scripts": {
14
+ "prestart": "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",
15
+ "start": "npm run cleanup && rollup -c --watch",
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
+ },
13
87
  "files": [
14
88
  "dist/"
15
89
  ],
@@ -24,40 +98,12 @@
24
98
  "telegram sticker",
25
99
  "tgs"
26
100
  ],
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
- },
55
- "publishConfig": {
56
- "access": "public"
57
- },
58
101
  "browserslist": [
59
102
  "> 3%"
60
103
  ],
104
+ "publishConfig": {
105
+ "access": "public"
106
+ },
61
107
  "husky": {
62
108
  "hooks": {
63
109
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
@@ -75,24 +121,5 @@
75
121
  "nyc": {
76
122
  "extends": "@istanbuljs/nyc-config-typescript",
77
123
  "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"
97
124
  }
98
- }
125
+ }