@aarsteinmedia/dotlottie-player 6.6.0 → 6.6.2
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 +1 -1
- package/dist/canvas.d.ts +3 -3
- package/dist/canvas.js +1 -1
- package/dist/chunks/{DotLottiePlayerBase-BDutF_6O.js → DotLottiePlayerBase-1cqXX2jB.js} +6 -6
- package/dist/chunks/{DotLottiePlayerCanvas.d-CBwsqsPc.d.ts → DotLottiePlayerCanvas.d-BuQAVERW.d.ts} +2 -2
- package/dist/chunks/{errorScreen-B5U8u-AX.js → errorScreen-DcJ2haCJ.js} +1 -1
- package/dist/full.d.ts +3 -3
- package/dist/full.js +1 -1
- package/dist/light.d.ts +3 -3
- package/dist/light.js +1 -1
- package/dist/svg.d.ts +3 -3
- package/dist/svg.js +1 -1
- package/dist/unpkg-canvas.js +1 -1
- package/dist/unpkg-full.js +1 -1
- package/dist/unpkg-light.js +2 -2
- package/dist/unpkg-svg.js +1 -1
- package/dist/utilities.d.ts +28 -1
- package/dist/utilities.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/utilities.d-BCeerq0j.d.ts +0 -29
package/custom-elements.json
CHANGED
package/dist/canvas.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as DotLottiePlayerCanvas } from './chunks/DotLottiePlayerCanvas.d-
|
|
2
|
-
export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-
|
|
1
|
+
import { D as DotLottiePlayerCanvas } from './chunks/DotLottiePlayerCanvas.d-BuQAVERW.js';
|
|
2
|
+
export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-BuQAVERW.js';
|
|
3
3
|
import '@aarsteinmedia/lottie-web';
|
|
4
4
|
import '@aarsteinmedia/lottie-web/utils';
|
|
5
|
-
import './
|
|
5
|
+
import './utilities.js';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
package/dist/canvas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
import { loadAnimation } from '@aarsteinmedia/lottie-web/canvas';
|
|
3
|
-
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-1cqXX2jB.js';
|
|
4
4
|
import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
|
|
5
5
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ function loadControlsModule() {
|
|
|
10
10
|
|
|
11
11
|
let modulePromise = null;
|
|
12
12
|
function loadErrorModule() {
|
|
13
|
-
modulePromise = modulePromise ?? import('./errorScreen-
|
|
13
|
+
modulePromise = modulePromise ?? import('./errorScreen-DcJ2haCJ.js');
|
|
14
14
|
return modulePromise;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1074,7 +1074,7 @@ var controls = /*#__PURE__*/Object.freeze({
|
|
|
1074
1074
|
if (!animations?.every(isLottie)) {
|
|
1075
1075
|
throw new Error('Broken or corrupted file');
|
|
1076
1076
|
}
|
|
1077
|
-
this.
|
|
1077
|
+
this._handleInlineScript();
|
|
1078
1078
|
this._isBounce = this.mode === PlayMode.Bounce;
|
|
1079
1079
|
if (this._multiAnimationSettings.length > 0 && this._multiAnimationSettings[this._currentAnimation]?.mode) {
|
|
1080
1080
|
this._isBounce = this._multiAnimationSettings[this._currentAnimation]?.mode === PlayMode.Bounce;
|
|
@@ -1601,13 +1601,13 @@ var controls = /*#__PURE__*/Object.freeze({
|
|
|
1601
1601
|
this.dispatchEvent(new CustomEvent(PlayerEvent.Error));
|
|
1602
1602
|
this.devLog(error);
|
|
1603
1603
|
}
|
|
1604
|
-
|
|
1605
|
-
const
|
|
1606
|
-
if (!
|
|
1604
|
+
_handleInlineScript() {
|
|
1605
|
+
const inlineScript = this.parentElement?.querySelector(':scope > script#aamd_inline_script');
|
|
1606
|
+
if (!inlineScript) {
|
|
1607
1607
|
return;
|
|
1608
1608
|
}
|
|
1609
1609
|
try {
|
|
1610
|
-
const settings = JSON.parse(
|
|
1610
|
+
const settings = JSON.parse(inlineScript.innerHTML);
|
|
1611
1611
|
if (settings.selector) {
|
|
1612
1612
|
this.selector = settings.selector;
|
|
1613
1613
|
}
|
package/dist/chunks/{DotLottiePlayerCanvas.d-CBwsqsPc.d.ts → DotLottiePlayerCanvas.d-BuQAVERW.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
2
2
|
import { HTMLBooleanAttribute, AnimationData, AnimationDirection, AnimationItem, LottieManifest, AnimationSettings, AnimationConfiguration, Vector2, AddAnimationParams, ConvertParams } from '@aarsteinmedia/lottie-web';
|
|
3
3
|
import { PlayMode, PreserveAspectRatio, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
4
|
-
import {
|
|
4
|
+
import { PlayerState, MouseOut, ObjectFit, tagName } from '../utilities.js';
|
|
5
5
|
|
|
6
6
|
declare abstract class PropertyCallbackElement extends HTMLElement {
|
|
7
7
|
constructor();
|
|
@@ -181,7 +181,7 @@ declare abstract class DotLottiePlayerBase extends ScrollElement {
|
|
|
181
181
|
private _enterFrame;
|
|
182
182
|
private _getOptions;
|
|
183
183
|
private _handleError;
|
|
184
|
-
private
|
|
184
|
+
private _handleInlineScript;
|
|
185
185
|
private _handleSelector;
|
|
186
186
|
private _handleWindowBlur;
|
|
187
187
|
private _loopComplete;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PreserveAspectRatio, namespaceSVG } from '@aarsteinmedia/lottie-web/utils';
|
|
2
|
-
import { e as escapeHTML } from './DotLottiePlayerBase-
|
|
2
|
+
import { e as escapeHTML } from './DotLottiePlayerBase-1cqXX2jB.js';
|
|
3
3
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
4
4
|
import './utilities-CC4oA5Yh.js';
|
|
5
5
|
|
package/dist/full.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as DotLottiePlayer } from './chunks/DotLottiePlayerCanvas.d-
|
|
2
|
-
export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-
|
|
1
|
+
import { b as DotLottiePlayer } from './chunks/DotLottiePlayerCanvas.d-BuQAVERW.js';
|
|
2
|
+
export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-BuQAVERW.js';
|
|
3
3
|
import '@aarsteinmedia/lottie-web';
|
|
4
4
|
import '@aarsteinmedia/lottie-web/utils';
|
|
5
|
-
import './
|
|
5
|
+
import './utilities.js';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
package/dist/full.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
import { loadAnimation } from '@aarsteinmedia/lottie-web';
|
|
3
|
-
import { D as DotLottiePlayerBase, l as loadDotLottieTools } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { D as DotLottiePlayerBase, l as loadDotLottieTools } from './chunks/DotLottiePlayerBase-1cqXX2jB.js';
|
|
4
4
|
import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
|
|
5
5
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
6
|
|
package/dist/light.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as DotLottiePlayerLight } from './chunks/DotLottiePlayerCanvas.d-
|
|
2
|
-
export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-
|
|
1
|
+
import { c as DotLottiePlayerLight } from './chunks/DotLottiePlayerCanvas.d-BuQAVERW.js';
|
|
2
|
+
export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-BuQAVERW.js';
|
|
3
3
|
import '@aarsteinmedia/lottie-web';
|
|
4
4
|
import '@aarsteinmedia/lottie-web/utils';
|
|
5
|
-
import './
|
|
5
|
+
import './utilities.js';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
package/dist/light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
import { loadAnimation } from '@aarsteinmedia/lottie-web/light';
|
|
3
|
-
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-1cqXX2jB.js';
|
|
4
4
|
import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
|
|
5
5
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
6
|
|
package/dist/svg.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as DotLottiePlayerSVG } from './chunks/DotLottiePlayerCanvas.d-
|
|
2
|
-
export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-
|
|
1
|
+
import { d as DotLottiePlayerSVG } from './chunks/DotLottiePlayerCanvas.d-BuQAVERW.js';
|
|
2
|
+
export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-BuQAVERW.js';
|
|
3
3
|
import '@aarsteinmedia/lottie-web';
|
|
4
4
|
import '@aarsteinmedia/lottie-web/utils';
|
|
5
|
-
import './
|
|
5
|
+
import './utilities.js';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
package/dist/svg.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
import { loadAnimation } from '@aarsteinmedia/lottie-web/svg';
|
|
3
|
-
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-1cqXX2jB.js';
|
|
4
4
|
import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
|
|
5
5
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
6
|
|