@aarsteinmedia/dotlottie-player 6.5.7 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +9 -49
- package/dist/canvas.d.ts +7 -20
- package/dist/canvas.js +5 -10
- package/dist/chunks/{DotLottiePlayerBase-CsIB0VNt.js → DotLottiePlayerBase-BDutF_6O.js} +144 -151
- package/dist/chunks/{constants.d-t4RBAbwL.d.ts → DotLottiePlayerCanvas.d-CRQYBqlf.d.ts} +95 -39
- package/dist/chunks/{errorScreen-BPvA3AoR.js → errorScreen-B5U8u-AX.js} +4 -1
- package/dist/chunks/utilities-CC4oA5Yh.js +33 -0
- package/dist/full.d.ts +7 -20
- package/dist/full.js +8 -5
- package/dist/light.d.ts +7 -20
- package/dist/light.js +4 -9
- package/dist/svg.d.ts +7 -20
- package/dist/svg.js +4 -9
- package/dist/unpkg-canvas.js +3 -3
- package/dist/unpkg-full.js +3 -3
- package/dist/unpkg-light.js +2 -2
- package/dist/unpkg-svg.js +3 -3
- package/dist/utilities.d.ts +29 -0
- package/dist/utilities.js +2 -0
- package/package.json +17 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
2
|
+
|
|
3
|
+
declare enum ObjectFit {
|
|
4
|
+
Contain = "contain",
|
|
5
|
+
Cover = "cover",
|
|
6
|
+
Fill = "fill",
|
|
7
|
+
None = "none",
|
|
8
|
+
ScaleDown = "scale-down"
|
|
9
|
+
}
|
|
10
|
+
declare enum MouseOut {
|
|
11
|
+
Pause = "pause",
|
|
12
|
+
Reverse = "reverse",
|
|
13
|
+
Stop = "stop",
|
|
14
|
+
Void = "void"
|
|
15
|
+
}
|
|
16
|
+
declare enum PlayerState {
|
|
17
|
+
Completed = "completed",
|
|
18
|
+
Destroyed = "destroyed",
|
|
19
|
+
Error = "error",
|
|
20
|
+
Frozen = "frozen",
|
|
21
|
+
Loading = "loading",
|
|
22
|
+
Paused = "paused",
|
|
23
|
+
Playing = "playing",
|
|
24
|
+
Stopped = "stopped"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare const tagName = "dotlottie-player";
|
|
28
|
+
|
|
29
|
+
export { MouseOut, ObjectFit, PlayerState, tagName };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarsteinmedia/dotlottie-player",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.1",
|
|
4
4
|
"description": "Web Component for playing Lottie animations in your web app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"types": "./dist/canvas.d.ts",
|
|
24
24
|
"import": "./dist/canvas.js",
|
|
25
25
|
"unpkg": "./dist/unpkg-canvas.js"
|
|
26
|
+
},
|
|
27
|
+
"./utils": {
|
|
28
|
+
"types": "./dist/utilities.d.ts",
|
|
29
|
+
"import": "./dist/utilities.js"
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
"main": "./dist/full.js",
|
|
@@ -73,6 +77,11 @@
|
|
|
73
77
|
"peerDependencies": {
|
|
74
78
|
"@types/react": ">= 16.0.0"
|
|
75
79
|
},
|
|
80
|
+
"peerDependenciesMeta": {
|
|
81
|
+
"@types/react": {
|
|
82
|
+
"optional": true
|
|
83
|
+
}
|
|
84
|
+
},
|
|
76
85
|
"devDependencies": {
|
|
77
86
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
78
87
|
"@eslint/compat": "^2.1.1",
|
|
@@ -140,7 +149,13 @@
|
|
|
140
149
|
"dist",
|
|
141
150
|
"README.md"
|
|
142
151
|
],
|
|
143
|
-
"sideEffects":
|
|
152
|
+
"sideEffects": [
|
|
153
|
+
"./dist/full.js",
|
|
154
|
+
"./dist/light.js",
|
|
155
|
+
"./dist/svg.js",
|
|
156
|
+
"./dist/canvas.js",
|
|
157
|
+
"./dist/unpkg-*.js"
|
|
158
|
+
],
|
|
144
159
|
"keywords": [
|
|
145
160
|
"lottie",
|
|
146
161
|
"dotlottie",
|