@aarsteinmedia/dotlottie-player 2.1.8 → 2.2.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.
@@ -20,7 +20,7 @@
20
20
  "name": "PlayMode",
21
21
  "declaration": {
22
22
  "name": "PlayMode",
23
- "module": "./component/types"
23
+ "module": "./component/utils"
24
24
  }
25
25
  },
26
26
  {
@@ -28,7 +28,7 @@
28
28
  "name": "PlayerEvents",
29
29
  "declaration": {
30
30
  "name": "PlayerEvents",
31
- "module": "./component/types"
31
+ "module": "./component/utils"
32
32
  }
33
33
  },
34
34
  {
@@ -36,306 +36,7 @@
36
36
  "name": "PlayerState",
37
37
  "declaration": {
38
38
  "name": "PlayerState",
39
- "module": "./component/types"
40
- }
41
- }
42
- ]
43
- },
44
- {
45
- "kind": "javascript-module",
46
- "path": "src/component/functions.ts",
47
- "declarations": [
48
- {
49
- "kind": "function",
50
- "name": "addExt",
51
- "parameters": [
52
- {
53
- "name": "ext",
54
- "type": {
55
- "text": "string"
56
- }
57
- },
58
- {
59
- "name": "str",
60
- "optional": true,
61
- "type": {
62
- "text": "string"
63
- }
64
- }
65
- ]
66
- },
67
- {
68
- "kind": "variable",
69
- "name": "aspectRatio"
70
- },
71
- {
72
- "kind": "variable",
73
- "name": "base64ToU8"
74
- },
75
- {
76
- "kind": "variable",
77
- "name": "createDotLottie"
78
- },
79
- {
80
- "kind": "variable",
81
- "name": "download"
82
- },
83
- {
84
- "kind": "variable",
85
- "name": "handleErrors"
86
- },
87
- {
88
- "kind": "variable",
89
- "name": "frameOutput"
90
- },
91
- {
92
- "kind": "variable",
93
- "name": "getAnimationData"
94
- },
95
- {
96
- "kind": "variable",
97
- "name": "getArrayBuffer"
98
- },
99
- {
100
- "kind": "variable",
101
- "name": "getExt"
102
- },
103
- {
104
- "kind": "variable",
105
- "name": "getExtFromB64"
106
- },
107
- {
108
- "kind": "variable",
109
- "name": "getFilename"
110
- },
111
- {
112
- "kind": "variable",
113
- "name": "getLottieJSON"
114
- },
115
- {
116
- "kind": "variable",
117
- "name": "getManifest"
118
- },
119
- {
120
- "kind": "variable",
121
- "name": "getMimeFromExt"
122
- },
123
- {
124
- "kind": "variable",
125
- "name": "hasExt"
126
- },
127
- {
128
- "kind": "variable",
129
- "name": "isAudio"
130
- },
131
- {
132
- "kind": "variable",
133
- "name": "isImage"
134
- },
135
- {
136
- "kind": "variable",
137
- "name": "isServer"
138
- },
139
- {
140
- "kind": "variable",
141
- "name": "strToU8"
142
- },
143
- {
144
- "kind": "variable",
145
- "name": "resolveAssets"
146
- },
147
- {
148
- "kind": "variable",
149
- "name": "unzip"
150
- },
151
- {
152
- "kind": "variable",
153
- "name": "useId"
154
- }
155
- ],
156
- "exports": [
157
- {
158
- "kind": "js",
159
- "name": "addExt",
160
- "declaration": {
161
- "name": "addExt",
162
- "module": "src/component/functions.ts"
163
- }
164
- },
165
- {
166
- "kind": "js",
167
- "name": "aspectRatio",
168
- "declaration": {
169
- "name": "aspectRatio",
170
- "module": "src/component/functions.ts"
171
- }
172
- },
173
- {
174
- "kind": "js",
175
- "name": "base64ToU8",
176
- "declaration": {
177
- "name": "base64ToU8",
178
- "module": "src/component/functions.ts"
179
- }
180
- },
181
- {
182
- "kind": "js",
183
- "name": "createDotLottie",
184
- "declaration": {
185
- "name": "createDotLottie",
186
- "module": "src/component/functions.ts"
187
- }
188
- },
189
- {
190
- "kind": "js",
191
- "name": "download",
192
- "declaration": {
193
- "name": "download",
194
- "module": "src/component/functions.ts"
195
- }
196
- },
197
- {
198
- "kind": "js",
199
- "name": "handleErrors",
200
- "declaration": {
201
- "name": "handleErrors",
202
- "module": "src/component/functions.ts"
203
- }
204
- },
205
- {
206
- "kind": "js",
207
- "name": "frameOutput",
208
- "declaration": {
209
- "name": "frameOutput",
210
- "module": "src/component/functions.ts"
211
- }
212
- },
213
- {
214
- "kind": "js",
215
- "name": "getAnimationData",
216
- "declaration": {
217
- "name": "getAnimationData",
218
- "module": "src/component/functions.ts"
219
- }
220
- },
221
- {
222
- "kind": "js",
223
- "name": "getArrayBuffer",
224
- "declaration": {
225
- "name": "getArrayBuffer",
226
- "module": "src/component/functions.ts"
227
- }
228
- },
229
- {
230
- "kind": "js",
231
- "name": "getExt",
232
- "declaration": {
233
- "name": "getExt",
234
- "module": "src/component/functions.ts"
235
- }
236
- },
237
- {
238
- "kind": "js",
239
- "name": "getExtFromB64",
240
- "declaration": {
241
- "name": "getExtFromB64",
242
- "module": "src/component/functions.ts"
243
- }
244
- },
245
- {
246
- "kind": "js",
247
- "name": "getFilename",
248
- "declaration": {
249
- "name": "getFilename",
250
- "module": "src/component/functions.ts"
251
- }
252
- },
253
- {
254
- "kind": "js",
255
- "name": "getLottieJSON",
256
- "declaration": {
257
- "name": "getLottieJSON",
258
- "module": "src/component/functions.ts"
259
- }
260
- },
261
- {
262
- "kind": "js",
263
- "name": "getManifest",
264
- "declaration": {
265
- "name": "getManifest",
266
- "module": "src/component/functions.ts"
267
- }
268
- },
269
- {
270
- "kind": "js",
271
- "name": "getMimeFromExt",
272
- "declaration": {
273
- "name": "getMimeFromExt",
274
- "module": "src/component/functions.ts"
275
- }
276
- },
277
- {
278
- "kind": "js",
279
- "name": "hasExt",
280
- "declaration": {
281
- "name": "hasExt",
282
- "module": "src/component/functions.ts"
283
- }
284
- },
285
- {
286
- "kind": "js",
287
- "name": "isAudio",
288
- "declaration": {
289
- "name": "isAudio",
290
- "module": "src/component/functions.ts"
291
- }
292
- },
293
- {
294
- "kind": "js",
295
- "name": "isImage",
296
- "declaration": {
297
- "name": "isImage",
298
- "module": "src/component/functions.ts"
299
- }
300
- },
301
- {
302
- "kind": "js",
303
- "name": "isServer",
304
- "declaration": {
305
- "name": "isServer",
306
- "module": "src/component/functions.ts"
307
- }
308
- },
309
- {
310
- "kind": "js",
311
- "name": "strToU8",
312
- "declaration": {
313
- "name": "strToU8",
314
- "module": "src/component/functions.ts"
315
- }
316
- },
317
- {
318
- "kind": "js",
319
- "name": "resolveAssets",
320
- "declaration": {
321
- "name": "resolveAssets",
322
- "module": "src/component/functions.ts"
323
- }
324
- },
325
- {
326
- "kind": "js",
327
- "name": "unzip",
328
- "declaration": {
329
- "name": "unzip",
330
- "module": "src/component/functions.ts"
331
- }
332
- },
333
- {
334
- "kind": "js",
335
- "name": "useId",
336
- "declaration": {
337
- "name": "useId",
338
- "module": "src/component/functions.ts"
39
+ "module": "./component/utils"
339
40
  }
340
41
  }
341
42
  ]
@@ -457,6 +158,15 @@
457
158
  "description": "Play mode",
458
159
  "attribute": "mode"
459
160
  },
161
+ {
162
+ "kind": "field",
163
+ "name": "multiAnimationSettings",
164
+ "type": {
165
+ "text": "Partial<Animations> | undefined"
166
+ },
167
+ "description": "Multi-animation settings\nIf set, these will override conflicting settings",
168
+ "attribute": "multiAnimationSettings"
169
+ },
460
170
  {
461
171
  "kind": "field",
462
172
  "name": "objectfit",
@@ -868,6 +578,20 @@
868
578
  ],
869
579
  "description": "Set loop"
870
580
  },
581
+ {
582
+ "kind": "method",
583
+ "name": "setMultiAnimationSettings",
584
+ "privacy": "public",
585
+ "parameters": [
586
+ {
587
+ "name": "settings",
588
+ "type": {
589
+ "text": "Partial<Animations>"
590
+ }
591
+ }
592
+ ],
593
+ "description": "Set Multi-animation settings"
594
+ },
871
595
  {
872
596
  "kind": "method",
873
597
  "name": "togglePlay",
@@ -1085,6 +809,14 @@
1085
809
  "description": "Play mode",
1086
810
  "fieldName": "mode"
1087
811
  },
812
+ {
813
+ "name": "multiAnimationSettings",
814
+ "type": {
815
+ "text": "Partial<Animations> | undefined"
816
+ },
817
+ "description": "Multi-animation settings\nIf set, these will override conflicting settings",
818
+ "fieldName": "multiAnimationSettings"
819
+ },
1088
820
  {
1089
821
  "name": "objectfit",
1090
822
  "type": {
@@ -1166,66 +898,363 @@
1166
898
  "exports": [
1167
899
  {
1168
900
  "kind": "js",
1169
- "name": "DotLottiePlayer",
901
+ "name": "DotLottiePlayer",
902
+ "declaration": {
903
+ "name": "DotLottiePlayer",
904
+ "module": "src/component/index.ts"
905
+ }
906
+ },
907
+ {
908
+ "kind": "custom-element-definition",
909
+ "name": "dotlottie-player",
910
+ "declaration": {
911
+ "name": "DotLottiePlayer",
912
+ "module": "src/component/index.ts"
913
+ }
914
+ }
915
+ ]
916
+ },
917
+ {
918
+ "kind": "javascript-module",
919
+ "path": "src/component/styles.ts",
920
+ "declarations": [],
921
+ "exports": [
922
+ {
923
+ "kind": "js",
924
+ "name": "default",
925
+ "declaration": {
926
+ "module": "src/component/styles.ts"
927
+ }
928
+ }
929
+ ]
930
+ },
931
+ {
932
+ "kind": "javascript-module",
933
+ "path": "src/component/types.ts",
934
+ "declarations": [],
935
+ "exports": []
936
+ },
937
+ {
938
+ "kind": "javascript-module",
939
+ "path": "src/component/utils.ts",
940
+ "declarations": [
941
+ {
942
+ "kind": "class",
943
+ "description": "",
944
+ "name": "CustomError",
945
+ "members": [
946
+ {
947
+ "kind": "field",
948
+ "name": "status",
949
+ "type": {
950
+ "text": "number | undefined"
951
+ }
952
+ }
953
+ ],
954
+ "superclass": {
955
+ "name": "Error",
956
+ "module": "src/component/utils.ts"
957
+ }
958
+ },
959
+ {
960
+ "kind": "function",
961
+ "name": "addExt",
962
+ "parameters": [
963
+ {
964
+ "name": "ext",
965
+ "type": {
966
+ "text": "string"
967
+ }
968
+ },
969
+ {
970
+ "name": "str",
971
+ "optional": true,
972
+ "type": {
973
+ "text": "string"
974
+ }
975
+ }
976
+ ]
977
+ },
978
+ {
979
+ "kind": "variable",
980
+ "name": "aspectRatio"
981
+ },
982
+ {
983
+ "kind": "variable",
984
+ "name": "base64ToU8"
985
+ },
986
+ {
987
+ "kind": "variable",
988
+ "name": "createDotLottie"
989
+ },
990
+ {
991
+ "kind": "variable",
992
+ "name": "download"
993
+ },
994
+ {
995
+ "kind": "variable",
996
+ "name": "handleErrors"
997
+ },
998
+ {
999
+ "kind": "variable",
1000
+ "name": "frameOutput"
1001
+ },
1002
+ {
1003
+ "kind": "variable",
1004
+ "name": "getAnimationData"
1005
+ },
1006
+ {
1007
+ "kind": "variable",
1008
+ "name": "getArrayBuffer"
1009
+ },
1010
+ {
1011
+ "kind": "variable",
1012
+ "name": "getExt"
1013
+ },
1014
+ {
1015
+ "kind": "variable",
1016
+ "name": "getExtFromB64"
1017
+ },
1018
+ {
1019
+ "kind": "variable",
1020
+ "name": "getFilename"
1021
+ },
1022
+ {
1023
+ "kind": "variable",
1024
+ "name": "getLottieJSON"
1025
+ },
1026
+ {
1027
+ "kind": "variable",
1028
+ "name": "getManifest"
1029
+ },
1030
+ {
1031
+ "kind": "variable",
1032
+ "name": "getMimeFromExt"
1033
+ },
1034
+ {
1035
+ "kind": "variable",
1036
+ "name": "hasExt"
1037
+ },
1038
+ {
1039
+ "kind": "variable",
1040
+ "name": "isAudio"
1041
+ },
1042
+ {
1043
+ "kind": "variable",
1044
+ "name": "isImage"
1045
+ },
1046
+ {
1047
+ "kind": "variable",
1048
+ "name": "isServer"
1049
+ },
1050
+ {
1051
+ "kind": "variable",
1052
+ "name": "strToU8"
1053
+ },
1054
+ {
1055
+ "kind": "variable",
1056
+ "name": "resolveAssets"
1057
+ },
1058
+ {
1059
+ "kind": "variable",
1060
+ "name": "unzip"
1061
+ },
1062
+ {
1063
+ "kind": "variable",
1064
+ "name": "useId"
1065
+ }
1066
+ ],
1067
+ "exports": [
1068
+ {
1069
+ "kind": "js",
1070
+ "name": "CustomError",
1170
1071
  "declaration": {
1171
- "name": "DotLottiePlayer",
1172
- "module": "src/component/index.ts"
1072
+ "name": "CustomError",
1073
+ "module": "src/component/utils.ts"
1173
1074
  }
1174
1075
  },
1175
1076
  {
1176
- "kind": "custom-element-definition",
1177
- "name": "dotlottie-player",
1077
+ "kind": "js",
1078
+ "name": "addExt",
1178
1079
  "declaration": {
1179
- "name": "DotLottiePlayer",
1180
- "module": "src/component/index.ts"
1080
+ "name": "addExt",
1081
+ "module": "src/component/utils.ts"
1181
1082
  }
1182
- }
1183
- ]
1184
- },
1185
- {
1186
- "kind": "javascript-module",
1187
- "path": "src/component/styles.ts",
1188
- "declarations": [],
1189
- "exports": [
1083
+ },
1190
1084
  {
1191
1085
  "kind": "js",
1192
- "name": "default",
1086
+ "name": "aspectRatio",
1193
1087
  "declaration": {
1194
- "module": "src/component/styles.ts"
1088
+ "name": "aspectRatio",
1089
+ "module": "src/component/utils.ts"
1195
1090
  }
1196
- }
1197
- ]
1198
- },
1199
- {
1200
- "kind": "javascript-module",
1201
- "path": "src/component/types.ts",
1202
- "declarations": [
1091
+ },
1203
1092
  {
1204
- "kind": "class",
1205
- "description": "",
1206
- "name": "CustomError",
1207
- "members": [
1208
- {
1209
- "kind": "field",
1210
- "name": "status",
1211
- "type": {
1212
- "text": "number | undefined"
1213
- }
1214
- }
1215
- ],
1216
- "superclass": {
1217
- "name": "Error",
1218
- "module": "src/component/types.ts"
1093
+ "kind": "js",
1094
+ "name": "base64ToU8",
1095
+ "declaration": {
1096
+ "name": "base64ToU8",
1097
+ "module": "src/component/utils.ts"
1219
1098
  }
1220
- }
1221
- ],
1222
- "exports": [
1099
+ },
1223
1100
  {
1224
1101
  "kind": "js",
1225
- "name": "CustomError",
1102
+ "name": "createDotLottie",
1226
1103
  "declaration": {
1227
- "name": "CustomError",
1228
- "module": "src/component/types.ts"
1104
+ "name": "createDotLottie",
1105
+ "module": "src/component/utils.ts"
1106
+ }
1107
+ },
1108
+ {
1109
+ "kind": "js",
1110
+ "name": "download",
1111
+ "declaration": {
1112
+ "name": "download",
1113
+ "module": "src/component/utils.ts"
1114
+ }
1115
+ },
1116
+ {
1117
+ "kind": "js",
1118
+ "name": "handleErrors",
1119
+ "declaration": {
1120
+ "name": "handleErrors",
1121
+ "module": "src/component/utils.ts"
1122
+ }
1123
+ },
1124
+ {
1125
+ "kind": "js",
1126
+ "name": "frameOutput",
1127
+ "declaration": {
1128
+ "name": "frameOutput",
1129
+ "module": "src/component/utils.ts"
1130
+ }
1131
+ },
1132
+ {
1133
+ "kind": "js",
1134
+ "name": "getAnimationData",
1135
+ "declaration": {
1136
+ "name": "getAnimationData",
1137
+ "module": "src/component/utils.ts"
1138
+ }
1139
+ },
1140
+ {
1141
+ "kind": "js",
1142
+ "name": "getArrayBuffer",
1143
+ "declaration": {
1144
+ "name": "getArrayBuffer",
1145
+ "module": "src/component/utils.ts"
1146
+ }
1147
+ },
1148
+ {
1149
+ "kind": "js",
1150
+ "name": "getExt",
1151
+ "declaration": {
1152
+ "name": "getExt",
1153
+ "module": "src/component/utils.ts"
1154
+ }
1155
+ },
1156
+ {
1157
+ "kind": "js",
1158
+ "name": "getExtFromB64",
1159
+ "declaration": {
1160
+ "name": "getExtFromB64",
1161
+ "module": "src/component/utils.ts"
1162
+ }
1163
+ },
1164
+ {
1165
+ "kind": "js",
1166
+ "name": "getFilename",
1167
+ "declaration": {
1168
+ "name": "getFilename",
1169
+ "module": "src/component/utils.ts"
1170
+ }
1171
+ },
1172
+ {
1173
+ "kind": "js",
1174
+ "name": "getLottieJSON",
1175
+ "declaration": {
1176
+ "name": "getLottieJSON",
1177
+ "module": "src/component/utils.ts"
1178
+ }
1179
+ },
1180
+ {
1181
+ "kind": "js",
1182
+ "name": "getManifest",
1183
+ "declaration": {
1184
+ "name": "getManifest",
1185
+ "module": "src/component/utils.ts"
1186
+ }
1187
+ },
1188
+ {
1189
+ "kind": "js",
1190
+ "name": "getMimeFromExt",
1191
+ "declaration": {
1192
+ "name": "getMimeFromExt",
1193
+ "module": "src/component/utils.ts"
1194
+ }
1195
+ },
1196
+ {
1197
+ "kind": "js",
1198
+ "name": "hasExt",
1199
+ "declaration": {
1200
+ "name": "hasExt",
1201
+ "module": "src/component/utils.ts"
1202
+ }
1203
+ },
1204
+ {
1205
+ "kind": "js",
1206
+ "name": "isAudio",
1207
+ "declaration": {
1208
+ "name": "isAudio",
1209
+ "module": "src/component/utils.ts"
1210
+ }
1211
+ },
1212
+ {
1213
+ "kind": "js",
1214
+ "name": "isImage",
1215
+ "declaration": {
1216
+ "name": "isImage",
1217
+ "module": "src/component/utils.ts"
1218
+ }
1219
+ },
1220
+ {
1221
+ "kind": "js",
1222
+ "name": "isServer",
1223
+ "declaration": {
1224
+ "name": "isServer",
1225
+ "module": "src/component/utils.ts"
1226
+ }
1227
+ },
1228
+ {
1229
+ "kind": "js",
1230
+ "name": "strToU8",
1231
+ "declaration": {
1232
+ "name": "strToU8",
1233
+ "module": "src/component/utils.ts"
1234
+ }
1235
+ },
1236
+ {
1237
+ "kind": "js",
1238
+ "name": "resolveAssets",
1239
+ "declaration": {
1240
+ "name": "resolveAssets",
1241
+ "module": "src/component/utils.ts"
1242
+ }
1243
+ },
1244
+ {
1245
+ "kind": "js",
1246
+ "name": "unzip",
1247
+ "declaration": {
1248
+ "name": "unzip",
1249
+ "module": "src/component/utils.ts"
1250
+ }
1251
+ },
1252
+ {
1253
+ "kind": "js",
1254
+ "name": "useId",
1255
+ "declaration": {
1256
+ "name": "useId",
1257
+ "module": "src/component/utils.ts"
1229
1258
  }
1230
1259
  }
1231
1260
  ]