@aarsteinmedia/dotlottie-player 6.4.5 → 6.4.7
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/README.md +1 -1
- package/custom-elements.json +3 -3
- package/dist/canvas.js +2 -2
- package/dist/chunks/{DotLottiePlayerBase-EYV9k8CY.js → DotLottiePlayerBase-DdpA5NST.js} +13 -2
- package/dist/full.js +2 -2
- package/dist/light.js +2 -2
- package/dist/svg.js +2 -2
- package/dist/unpkg-canvas.js +7 -7
- package/dist/unpkg-full.js +7 -7
- package/dist/unpkg-light.js +6 -6
- package/dist/unpkg-svg.js +7 -7
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ 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 noteable changes to us](https://github.com/aarsteinmedia/dotlottie-player/issues), and we'll add them promptly.
|
|
9
9
|
|
|
10
|
+
## [6.4.6] - 28-08-2026
|
|
11
|
+
|
|
12
|
+
- Small adjustment to how accessibility is handled.
|
|
13
|
+
- Minor fixes.
|
|
14
|
+
|
|
10
15
|
## [6.4.4] - 10-08-2026
|
|
11
16
|
|
|
12
17
|
- Improved how masks are parsed in CanvasRenderer, and how window resize is handled.
|
package/README.md
CHANGED
|
@@ -395,7 +395,7 @@ We've made a free WordPress plugin that works with Gutenberg Blocks, Elementor,
|
|
|
395
395
|
|
|
396
396
|
It's super lightweight – and only loads on pages where animations are used.
|
|
397
397
|
|
|
398
|
-
We've also made a premium WordPress plugin for purchase: [AM LottiePlayer PRO](https://www.
|
|
398
|
+
We've also made a premium WordPress plugin for purchase: [AM LottiePlayer PRO](https://www.am-lottieplayer.com). It has an easy-to-use GUI for combining and controlling multiple Lottie animations in a single file, converting JSON to dotLottie with drag-and-drop, and many more exclusive features.
|
|
399
399
|
|
|
400
400
|
## License
|
|
401
401
|
|
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-DdpA5NST.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-DdpA5NST.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-DdpA5NST.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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -298,7 +298,19 @@ var controls = /*#__PURE__*/Object.freeze({
|
|
|
298
298
|
if (!this.shadow || !this.template) {
|
|
299
299
|
throw new Error('No Shadow Element or Template');
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
let langAttribute = '';
|
|
302
|
+
/**
|
|
303
|
+
* If player has aria-description, it's safe to assume
|
|
304
|
+
* language should be the same as `document.documentElement.lang`.
|
|
305
|
+
* Accessible labels on controls are only in English, so with no
|
|
306
|
+
* aria tag, and controls enabled, lang should reflect this.
|
|
307
|
+
* With neither controls or description, the lang attribute is
|
|
308
|
+
* not needed.
|
|
309
|
+
*/ if (this.description || this.controls) {
|
|
310
|
+
const lang = this.description ? document.documentElement.lang : 'en';
|
|
311
|
+
langAttribute = `lang="${lang}"`;
|
|
312
|
+
}
|
|
313
|
+
this.template.innerHTML = /* HTML */ `<div class="animation-container main" data-controls="${this.controls ?? false}" ${langAttribute}><figure class="animation" style="background:${this.background}" ${this.description ? /* HTML */ `
|
|
302
314
|
aria-label="${this.description}"
|
|
303
315
|
` : ''}></figure><slot name="controls"></slot></div>`;
|
|
304
316
|
this.shadow.adoptedStyleSheets = [
|
|
@@ -1480,7 +1492,6 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
|
|
|
1480
1492
|
this.dispatchEvent(new CustomEvent(PlayerEvent.Load));
|
|
1481
1493
|
}
|
|
1482
1494
|
_DOMLoaded() {
|
|
1483
|
-
this._playerState.loaded = true;
|
|
1484
1495
|
this.dispatchEvent(new CustomEvent(PlayerEvent.Ready));
|
|
1485
1496
|
}
|
|
1486
1497
|
_enterFrame() {
|
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-DdpA5NST.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|