@aarsteinmedia/dotlottie-player 6.4.2 → 6.4.3

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.
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "superclass": {
52
52
  "name": "DotLottiePlayerBase",
53
- "module": "/dist/chunks/DotLottiePlayerBase-DZEPP1-j.js"
53
+ "module": "/dist/chunks/DotLottiePlayerBase-EYV9k8CY.js"
54
54
  },
55
55
  "tagName": "tagName",
56
56
  "customElement": true
@@ -86,7 +86,7 @@
86
86
  "name": "MouseOut",
87
87
  "declaration": {
88
88
  "name": "M",
89
- "module": "./chunks/DotLottiePlayerBase-DZEPP1-j.js"
89
+ "module": "./chunks/DotLottiePlayerBase-EYV9k8CY.js"
90
90
  }
91
91
  },
92
92
  {
@@ -94,7 +94,7 @@
94
94
  "name": "PlayerState",
95
95
  "declaration": {
96
96
  "name": "P",
97
- "module": "./chunks/DotLottiePlayerBase-DZEPP1-j.js"
97
+ "module": "./chunks/DotLottiePlayerBase-EYV9k8CY.js"
98
98
  }
99
99
  },
100
100
  {
package/dist/canvas.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import Lottie from '@aarsteinmedia/lottie-web/canvas';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DZEPP1-j.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DZEPP1-j.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**
@@ -7,6 +7,12 @@ function loadControlsModule() {
7
7
  return modulePromise$1;
8
8
  }
9
9
 
10
+ let modulePromise = null;
11
+ function loadErrorModule() {
12
+ modulePromise = modulePromise ?? import('./errorScreen-BPvA3AoR.js');
13
+ return modulePromise;
14
+ }
15
+
10
16
  /**
11
17
  * Credit to: Leonardo Favre https://github.com/leofavre/observed-properties.
12
18
  */ const updateOnConnected = Symbol('UPDATE_ON_CONNECTED');
@@ -282,7 +288,7 @@ function updatePlayPauseButton(togglePlay, state) {
282
288
 
283
289
  var controls = /*#__PURE__*/Object.freeze({
284
290
  __proto__: null,
285
- default: renderControls,
291
+ renderControls: renderControls,
286
292
  updatePlayPauseButton: updatePlayPauseButton
287
293
  });
288
294
 
@@ -365,12 +371,6 @@ var controls = /*#__PURE__*/Object.freeze({
365
371
  '1'
366
372
  ].includes(val);
367
373
 
368
- let modulePromise = null;
369
- function loadErrorModule() {
370
- modulePromise = modulePromise ?? import('./errorScreen-CN8UGB0n.js');
371
- return modulePromise;
372
- }
373
-
374
374
  const notImplemented = 'Method is not implemented', getStyles = async ()=>{
375
375
  const styleSheet = new CSSStyleSheet();
376
376
  await styleSheet.replace(css_248z);
@@ -729,7 +729,7 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
729
729
  slot.innerHTML = '';
730
730
  return;
731
731
  }
732
- const loadId = ++this._controlsLoadId, { default: renderControls } = await loadControlsModule();
732
+ const loadId = ++this._controlsLoadId, { renderControls } = await loadControlsModule();
733
733
  if (loadId !== this._controlsLoadId) {
734
734
  return;
735
735
  }
@@ -976,7 +976,7 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
976
976
  this.source = src;
977
977
  // Load the resource
978
978
  const { animations, isDotLottie, manifest } = await getAnimationData(src);
979
- if (!animations || animations.some((animation)=>!isLottie(animation))) {
979
+ if (!animations?.every(isLottie)) {
980
980
  throw new Error('Broken or corrupted file');
981
981
  }
982
982
  const ldScript = this.parentElement?.querySelector('script[type="application/ld+json"]');
@@ -1375,7 +1375,7 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
1375
1375
  if (!(figure instanceof HTMLElement)) {
1376
1376
  return;
1377
1377
  }
1378
- const loadId = ++this._errorLoadId, { default: errorScreen } = await loadErrorModule();
1378
+ const loadId = ++this._errorLoadId, { errorScreen } = await loadErrorModule();
1379
1379
  if (loadId !== this._errorLoadId) {
1380
1380
  return;
1381
1381
  }
@@ -4,4 +4,4 @@ function errorScreen(message) {
4
4
  return /* HTML */ `<div class="error"><svg preserveAspectRatio="${PreserveAspectRatio.Cover}" xmlns="${namespaceSVG}" width="1920" height="1080" viewBox="0 0 1920 1080" style="white-space:preserve"><path fill="#fff" d="M0 0h1920v1080H0z"/><path fill="#3a6d8b" d="M1190.2 531 1007 212.4c-22-38.2-77.2-38-98.8.5L729.5 531.3c-21.3 37.9 6.1 84.6 49.5 84.6l361.9.3c43.7 0 71.1-47.3 49.3-85.2zM937.3 288.7c.2-7.5 3.3-23.9 23.2-23.9 16.3 0 23 16.1 23 23.5 0 55.3-10.7 197.2-12.2 214.5-.1 1-.9 1.7-1.9 1.7h-18.3c-1 0-1.8-.7-1.9-1.7-1.4-17.5-13.4-162.9-11.9-214.1zm24.2 283.8c-13.1 0-23.7-10.6-23.7-23.7s10.6-23.7 23.7-23.7 23.7 10.6 23.7 23.7-10.6 23.7-23.7 23.7zM722.1 644h112.6v34.4h-70.4V698h58.8v31.7h-58.8v22.6h72.4v36.2H722.1V644zm162 57.1h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6zm78.9 0h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5H963v15.6zm39.5 36.2c0-31.3 22.2-54.8 56.6-54.8 34.4 0 56.2 23.5 56.2 54.8s-21.8 54.6-56.2 54.6c-34.4-.1-56.6-23.3-56.6-54.6zm74 0c0-17.4-6.1-29.1-17.8-29.1-11.7 0-17.4 11.7-17.4 29.1 0 17.4 5.7 29.1 17.4 29.1s17.8-11.8 17.8-29.1zm83.1-36.2h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6z"/><path fill="none" d="M718.9 807.7h645v285.4h-645z"/><text fill="#3a6d8b" style="text-align:center;position:absolute;left:100%;font-size:47px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',sans-serif" x="50%" y="848.017" text-anchor="middle">${message}</text></svg></div>`;
5
5
  }
6
6
 
7
- export { errorScreen as default };
7
+ export { errorScreen };
package/dist/full.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web';
4
- import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-DZEPP1-j.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DZEPP1-j.js';
4
+ import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**
package/dist/light.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web/light';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DZEPP1-j.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DZEPP1-j.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**
package/dist/svg.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web/svg';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DZEPP1-j.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DZEPP1-j.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**