@aarsteinmedia/dotlottie-player 6.5.5 → 6.5.6
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/CHANGELOG.md +5 -0
- package/custom-elements.json +3 -3
- package/dist/canvas.d.ts +2 -2
- package/dist/canvas.js +2 -2
- package/dist/chunks/{DotLottiePlayerBase-O43LyqdS.js → DotLottiePlayerBase-z6EhEWjH.js} +1 -17
- package/dist/chunks/{constants.d-DFJt3bbF.d.ts → constants.d-t4RBAbwL.d.ts} +4 -6
- package/dist/full.d.ts +2 -2
- package/dist/full.js +2 -2
- package/dist/light.d.ts +2 -2
- package/dist/light.js +2 -2
- package/dist/svg.d.ts +2 -2
- package/dist/svg.js +2 -2
- 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/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Changelog was only added since [3.2.3], so it's not exhaustive. [Please report any missing notable changes to us](https://github.com/aarsteinmedia/dotlottie-player/issues), and we'll add them promptly.
|
|
9
9
|
|
|
10
|
+
## [6.5.6] - 06-10-2026
|
|
11
|
+
|
|
12
|
+
- Minor performance improvements to animation engine.
|
|
13
|
+
|
|
10
14
|
## [6.5.5] - 30-09-2026
|
|
11
15
|
|
|
12
16
|
- Fixed bug with circular dependency affecting iife output.
|
|
@@ -410,6 +414,7 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
|
|
|
410
414
|
- Removed dependencies
|
|
411
415
|
- `@lit`
|
|
412
416
|
|
|
417
|
+
[6.5.6]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.6
|
|
413
418
|
[6.5.5]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.5
|
|
414
419
|
[6.5.2]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.2
|
|
415
420
|
[6.3.0]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.3.0
|
package/custom-elements.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"superclass": {
|
|
52
52
|
"name": "DotLottiePlayerBase",
|
|
53
|
-
"module": "/dist/chunks/DotLottiePlayerBase-
|
|
53
|
+
"module": "/dist/chunks/DotLottiePlayerBase-z6EhEWjH.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-
|
|
89
|
+
"module": "./chunks/DotLottiePlayerBase-z6EhEWjH.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-
|
|
97
|
+
"module": "./chunks/DotLottiePlayerBase-z6EhEWjH.js"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
{
|
package/dist/canvas.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/uti
|
|
|
2
2
|
export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
4
4
|
import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
5
|
-
import { D as DotLottiePlayerBase } from './chunks/constants.d-
|
|
6
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/constants.d-t4RBAbwL.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-t4RBAbwL.js';
|
|
7
7
|
|
|
8
8
|
declare class DotLottiePlayerCanvas extends DotLottiePlayerBase {
|
|
9
9
|
get renderer(): RendererType;
|
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 { loadAnimation } from '@aarsteinmedia/lottie-web/canvas';
|
|
4
|
-
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -170,7 +170,7 @@ const getStyles = async ()=>{
|
|
|
170
170
|
const styleSheet = new CSSStyleSheet();
|
|
171
171
|
await styleSheet.replace(css_248z);
|
|
172
172
|
return styleSheet;
|
|
173
|
-
}
|
|
173
|
+
};
|
|
174
174
|
class BaseElement extends PropertyCallbackElement {
|
|
175
175
|
/**
|
|
176
176
|
* Return the styles for the component.
|
|
@@ -466,12 +466,6 @@ class BaseElement extends PropertyCallbackElement {
|
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
play() {
|
|
470
|
-
throw new Error(notImplemented$1);
|
|
471
|
-
}
|
|
472
|
-
_freeze() {
|
|
473
|
-
throw new Error(notImplemented$1);
|
|
474
|
-
}
|
|
475
469
|
constructor(...args){
|
|
476
470
|
super(...args), /**
|
|
477
471
|
* Player state.
|
|
@@ -801,7 +795,6 @@ var controls = /*#__PURE__*/Object.freeze({
|
|
|
801
795
|
this.shadow.appendChild(this.template.content.cloneNode(true));
|
|
802
796
|
}
|
|
803
797
|
|
|
804
|
-
const notImplemented = 'Method is not implemented';
|
|
805
798
|
/**
|
|
806
799
|
* DotLottie Player Web Component.
|
|
807
800
|
*/ class DotLottiePlayerBase extends ScrollElement {
|
|
@@ -889,9 +882,6 @@ const notImplemented = 'Method is not implemented';
|
|
|
889
882
|
mode: 'open'
|
|
890
883
|
});
|
|
891
884
|
}
|
|
892
|
-
addAnimation(_params) {
|
|
893
|
-
throw new Error(notImplemented);
|
|
894
|
-
}
|
|
895
885
|
/**
|
|
896
886
|
* Runs when the value of an attribute is changed on the component.
|
|
897
887
|
*/ // eslint-disable-next-line sonarjs/cognitive-complexity
|
|
@@ -1039,9 +1029,6 @@ const notImplemented = 'Method is not implemented';
|
|
|
1039
1029
|
}
|
|
1040
1030
|
})();
|
|
1041
1031
|
}
|
|
1042
|
-
convert(_params) {
|
|
1043
|
-
throw new Error(notImplemented);
|
|
1044
|
-
}
|
|
1045
1032
|
/**
|
|
1046
1033
|
* Destroy animation and element.
|
|
1047
1034
|
*/ destroy() {
|
|
@@ -1163,9 +1150,6 @@ const notImplemented = 'Method is not implemented';
|
|
|
1163
1150
|
await this._handleError(error);
|
|
1164
1151
|
}
|
|
1165
1152
|
}
|
|
1166
|
-
loadAnimation(_config) {
|
|
1167
|
-
throw new Error(notImplemented);
|
|
1168
|
-
}
|
|
1169
1153
|
/**
|
|
1170
1154
|
* Skip to next animation.
|
|
1171
1155
|
*/ next() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLBooleanAttribute, AnimationData, AnimationDirection, AnimationItem,
|
|
1
|
+
import { HTMLBooleanAttribute, AnimationData, AnimationDirection, AnimationItem, LottieManifest, AnimationSettings, AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
2
2
|
import { PlayMode, PreserveAspectRatio, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
|
|
4
4
|
declare abstract class PropertyCallbackElement extends HTMLElement {
|
|
@@ -105,8 +105,8 @@ declare abstract class BaseElement extends PropertyCallbackElement {
|
|
|
105
105
|
private _toLog;
|
|
106
106
|
clearDevLog(): void;
|
|
107
107
|
devLog(toLog: unknown, type?: 'error' | 'info' | 'warn'): void;
|
|
108
|
-
play(): void;
|
|
109
|
-
protected _freeze(): void;
|
|
108
|
+
abstract play(): void;
|
|
109
|
+
protected abstract _freeze(): void;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
declare abstract class ScrollElement extends BaseElement {
|
|
@@ -144,10 +144,8 @@ declare abstract class DotLottiePlayerBase extends ScrollElement {
|
|
|
144
144
|
private _multiAnimationSettings;
|
|
145
145
|
private _segment?;
|
|
146
146
|
constructor();
|
|
147
|
-
addAnimation(_params: AddAnimationParams): Promise<Result>;
|
|
148
147
|
attributeChangedCallback(name: typeof DotLottiePlayerBase.observedAttributes[number], _oldValue: unknown, value: string): Promise<void>;
|
|
149
148
|
connectedCallback(): void;
|
|
150
|
-
convert(_params: ConvertParams): Promise<Result>;
|
|
151
149
|
destroy(): void;
|
|
152
150
|
disconnectedCallback(): void;
|
|
153
151
|
getLottie(): AnimationItem | null;
|
|
@@ -155,7 +153,7 @@ declare abstract class DotLottiePlayerBase extends ScrollElement {
|
|
|
155
153
|
getMultiAnimationSettings(): AnimationSettings[];
|
|
156
154
|
getSegment(): [number, number] | undefined;
|
|
157
155
|
load(src: string | null): Promise<void>;
|
|
158
|
-
loadAnimation(_config: AnimationConfiguration): AnimationItem;
|
|
156
|
+
abstract loadAnimation(_config: AnimationConfiguration): AnimationItem;
|
|
159
157
|
next(): void;
|
|
160
158
|
pause(): void;
|
|
161
159
|
play(): void;
|
package/dist/full.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/uti
|
|
|
2
2
|
export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
4
4
|
import { AddAnimationParams, ConvertParams, AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
5
|
-
import { D as DotLottiePlayerBase } from './chunks/constants.d-
|
|
6
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/constants.d-t4RBAbwL.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-t4RBAbwL.js';
|
|
7
7
|
|
|
8
8
|
declare class DotLottiePlayer extends DotLottiePlayerBase {
|
|
9
9
|
addAnimation(params: AddAnimationParams): Promise<_aarsteinmedia_lottie_web.Result>;
|
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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/light.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/uti
|
|
|
2
2
|
export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
4
4
|
import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
5
|
-
import { D as DotLottiePlayerBase } from './chunks/constants.d-
|
|
6
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/constants.d-t4RBAbwL.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-t4RBAbwL.js';
|
|
7
7
|
|
|
8
8
|
declare class DotLottiePlayerLight extends DotLottiePlayerBase {
|
|
9
9
|
get renderer(): RendererType;
|
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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/svg.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/uti
|
|
|
2
2
|
export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
4
4
|
import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
5
|
-
import { D as DotLottiePlayerBase } from './chunks/constants.d-
|
|
6
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/constants.d-t4RBAbwL.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-t4RBAbwL.js';
|
|
7
7
|
|
|
8
8
|
declare class DotLottiePlayerSVG extends DotLottiePlayerBase {
|
|
9
9
|
get renderer(): RendererType;
|
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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|