@aarsteinmedia/dotlottie-player 2.1.8 → 2.2.0

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
  ]
@@ -1166,66 +867,363 @@
1166
867
  "exports": [
1167
868
  {
1168
869
  "kind": "js",
1169
- "name": "DotLottiePlayer",
870
+ "name": "DotLottiePlayer",
871
+ "declaration": {
872
+ "name": "DotLottiePlayer",
873
+ "module": "src/component/index.ts"
874
+ }
875
+ },
876
+ {
877
+ "kind": "custom-element-definition",
878
+ "name": "dotlottie-player",
879
+ "declaration": {
880
+ "name": "DotLottiePlayer",
881
+ "module": "src/component/index.ts"
882
+ }
883
+ }
884
+ ]
885
+ },
886
+ {
887
+ "kind": "javascript-module",
888
+ "path": "src/component/styles.ts",
889
+ "declarations": [],
890
+ "exports": [
891
+ {
892
+ "kind": "js",
893
+ "name": "default",
894
+ "declaration": {
895
+ "module": "src/component/styles.ts"
896
+ }
897
+ }
898
+ ]
899
+ },
900
+ {
901
+ "kind": "javascript-module",
902
+ "path": "src/component/types.ts",
903
+ "declarations": [],
904
+ "exports": []
905
+ },
906
+ {
907
+ "kind": "javascript-module",
908
+ "path": "src/component/utils.ts",
909
+ "declarations": [
910
+ {
911
+ "kind": "class",
912
+ "description": "",
913
+ "name": "CustomError",
914
+ "members": [
915
+ {
916
+ "kind": "field",
917
+ "name": "status",
918
+ "type": {
919
+ "text": "number | undefined"
920
+ }
921
+ }
922
+ ],
923
+ "superclass": {
924
+ "name": "Error",
925
+ "module": "src/component/utils.ts"
926
+ }
927
+ },
928
+ {
929
+ "kind": "function",
930
+ "name": "addExt",
931
+ "parameters": [
932
+ {
933
+ "name": "ext",
934
+ "type": {
935
+ "text": "string"
936
+ }
937
+ },
938
+ {
939
+ "name": "str",
940
+ "optional": true,
941
+ "type": {
942
+ "text": "string"
943
+ }
944
+ }
945
+ ]
946
+ },
947
+ {
948
+ "kind": "variable",
949
+ "name": "aspectRatio"
950
+ },
951
+ {
952
+ "kind": "variable",
953
+ "name": "base64ToU8"
954
+ },
955
+ {
956
+ "kind": "variable",
957
+ "name": "createDotLottie"
958
+ },
959
+ {
960
+ "kind": "variable",
961
+ "name": "download"
962
+ },
963
+ {
964
+ "kind": "variable",
965
+ "name": "handleErrors"
966
+ },
967
+ {
968
+ "kind": "variable",
969
+ "name": "frameOutput"
970
+ },
971
+ {
972
+ "kind": "variable",
973
+ "name": "getAnimationData"
974
+ },
975
+ {
976
+ "kind": "variable",
977
+ "name": "getArrayBuffer"
978
+ },
979
+ {
980
+ "kind": "variable",
981
+ "name": "getExt"
982
+ },
983
+ {
984
+ "kind": "variable",
985
+ "name": "getExtFromB64"
986
+ },
987
+ {
988
+ "kind": "variable",
989
+ "name": "getFilename"
990
+ },
991
+ {
992
+ "kind": "variable",
993
+ "name": "getLottieJSON"
994
+ },
995
+ {
996
+ "kind": "variable",
997
+ "name": "getManifest"
998
+ },
999
+ {
1000
+ "kind": "variable",
1001
+ "name": "getMimeFromExt"
1002
+ },
1003
+ {
1004
+ "kind": "variable",
1005
+ "name": "hasExt"
1006
+ },
1007
+ {
1008
+ "kind": "variable",
1009
+ "name": "isAudio"
1010
+ },
1011
+ {
1012
+ "kind": "variable",
1013
+ "name": "isImage"
1014
+ },
1015
+ {
1016
+ "kind": "variable",
1017
+ "name": "isServer"
1018
+ },
1019
+ {
1020
+ "kind": "variable",
1021
+ "name": "strToU8"
1022
+ },
1023
+ {
1024
+ "kind": "variable",
1025
+ "name": "resolveAssets"
1026
+ },
1027
+ {
1028
+ "kind": "variable",
1029
+ "name": "unzip"
1030
+ },
1031
+ {
1032
+ "kind": "variable",
1033
+ "name": "useId"
1034
+ }
1035
+ ],
1036
+ "exports": [
1037
+ {
1038
+ "kind": "js",
1039
+ "name": "CustomError",
1170
1040
  "declaration": {
1171
- "name": "DotLottiePlayer",
1172
- "module": "src/component/index.ts"
1041
+ "name": "CustomError",
1042
+ "module": "src/component/utils.ts"
1173
1043
  }
1174
1044
  },
1175
1045
  {
1176
- "kind": "custom-element-definition",
1177
- "name": "dotlottie-player",
1046
+ "kind": "js",
1047
+ "name": "addExt",
1178
1048
  "declaration": {
1179
- "name": "DotLottiePlayer",
1180
- "module": "src/component/index.ts"
1049
+ "name": "addExt",
1050
+ "module": "src/component/utils.ts"
1181
1051
  }
1182
- }
1183
- ]
1184
- },
1185
- {
1186
- "kind": "javascript-module",
1187
- "path": "src/component/styles.ts",
1188
- "declarations": [],
1189
- "exports": [
1052
+ },
1190
1053
  {
1191
1054
  "kind": "js",
1192
- "name": "default",
1055
+ "name": "aspectRatio",
1193
1056
  "declaration": {
1194
- "module": "src/component/styles.ts"
1057
+ "name": "aspectRatio",
1058
+ "module": "src/component/utils.ts"
1195
1059
  }
1196
- }
1197
- ]
1198
- },
1199
- {
1200
- "kind": "javascript-module",
1201
- "path": "src/component/types.ts",
1202
- "declarations": [
1060
+ },
1203
1061
  {
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"
1062
+ "kind": "js",
1063
+ "name": "base64ToU8",
1064
+ "declaration": {
1065
+ "name": "base64ToU8",
1066
+ "module": "src/component/utils.ts"
1219
1067
  }
1220
- }
1221
- ],
1222
- "exports": [
1068
+ },
1223
1069
  {
1224
1070
  "kind": "js",
1225
- "name": "CustomError",
1071
+ "name": "createDotLottie",
1226
1072
  "declaration": {
1227
- "name": "CustomError",
1228
- "module": "src/component/types.ts"
1073
+ "name": "createDotLottie",
1074
+ "module": "src/component/utils.ts"
1075
+ }
1076
+ },
1077
+ {
1078
+ "kind": "js",
1079
+ "name": "download",
1080
+ "declaration": {
1081
+ "name": "download",
1082
+ "module": "src/component/utils.ts"
1083
+ }
1084
+ },
1085
+ {
1086
+ "kind": "js",
1087
+ "name": "handleErrors",
1088
+ "declaration": {
1089
+ "name": "handleErrors",
1090
+ "module": "src/component/utils.ts"
1091
+ }
1092
+ },
1093
+ {
1094
+ "kind": "js",
1095
+ "name": "frameOutput",
1096
+ "declaration": {
1097
+ "name": "frameOutput",
1098
+ "module": "src/component/utils.ts"
1099
+ }
1100
+ },
1101
+ {
1102
+ "kind": "js",
1103
+ "name": "getAnimationData",
1104
+ "declaration": {
1105
+ "name": "getAnimationData",
1106
+ "module": "src/component/utils.ts"
1107
+ }
1108
+ },
1109
+ {
1110
+ "kind": "js",
1111
+ "name": "getArrayBuffer",
1112
+ "declaration": {
1113
+ "name": "getArrayBuffer",
1114
+ "module": "src/component/utils.ts"
1115
+ }
1116
+ },
1117
+ {
1118
+ "kind": "js",
1119
+ "name": "getExt",
1120
+ "declaration": {
1121
+ "name": "getExt",
1122
+ "module": "src/component/utils.ts"
1123
+ }
1124
+ },
1125
+ {
1126
+ "kind": "js",
1127
+ "name": "getExtFromB64",
1128
+ "declaration": {
1129
+ "name": "getExtFromB64",
1130
+ "module": "src/component/utils.ts"
1131
+ }
1132
+ },
1133
+ {
1134
+ "kind": "js",
1135
+ "name": "getFilename",
1136
+ "declaration": {
1137
+ "name": "getFilename",
1138
+ "module": "src/component/utils.ts"
1139
+ }
1140
+ },
1141
+ {
1142
+ "kind": "js",
1143
+ "name": "getLottieJSON",
1144
+ "declaration": {
1145
+ "name": "getLottieJSON",
1146
+ "module": "src/component/utils.ts"
1147
+ }
1148
+ },
1149
+ {
1150
+ "kind": "js",
1151
+ "name": "getManifest",
1152
+ "declaration": {
1153
+ "name": "getManifest",
1154
+ "module": "src/component/utils.ts"
1155
+ }
1156
+ },
1157
+ {
1158
+ "kind": "js",
1159
+ "name": "getMimeFromExt",
1160
+ "declaration": {
1161
+ "name": "getMimeFromExt",
1162
+ "module": "src/component/utils.ts"
1163
+ }
1164
+ },
1165
+ {
1166
+ "kind": "js",
1167
+ "name": "hasExt",
1168
+ "declaration": {
1169
+ "name": "hasExt",
1170
+ "module": "src/component/utils.ts"
1171
+ }
1172
+ },
1173
+ {
1174
+ "kind": "js",
1175
+ "name": "isAudio",
1176
+ "declaration": {
1177
+ "name": "isAudio",
1178
+ "module": "src/component/utils.ts"
1179
+ }
1180
+ },
1181
+ {
1182
+ "kind": "js",
1183
+ "name": "isImage",
1184
+ "declaration": {
1185
+ "name": "isImage",
1186
+ "module": "src/component/utils.ts"
1187
+ }
1188
+ },
1189
+ {
1190
+ "kind": "js",
1191
+ "name": "isServer",
1192
+ "declaration": {
1193
+ "name": "isServer",
1194
+ "module": "src/component/utils.ts"
1195
+ }
1196
+ },
1197
+ {
1198
+ "kind": "js",
1199
+ "name": "strToU8",
1200
+ "declaration": {
1201
+ "name": "strToU8",
1202
+ "module": "src/component/utils.ts"
1203
+ }
1204
+ },
1205
+ {
1206
+ "kind": "js",
1207
+ "name": "resolveAssets",
1208
+ "declaration": {
1209
+ "name": "resolveAssets",
1210
+ "module": "src/component/utils.ts"
1211
+ }
1212
+ },
1213
+ {
1214
+ "kind": "js",
1215
+ "name": "unzip",
1216
+ "declaration": {
1217
+ "name": "unzip",
1218
+ "module": "src/component/utils.ts"
1219
+ }
1220
+ },
1221
+ {
1222
+ "kind": "js",
1223
+ "name": "useId",
1224
+ "declaration": {
1225
+ "name": "useId",
1226
+ "module": "src/component/utils.ts"
1229
1227
  }
1230
1228
  }
1231
1229
  ]