@aarsteinmedia/dotlottie-player 6.4.5 → 6.4.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 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.aarstein.media/en/am-lottieplayer/pro). 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.
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
 
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "superclass": {
52
52
  "name": "DotLottiePlayerBase",
53
- "module": "/dist/chunks/DotLottiePlayerBase-EYV9k8CY.js"
53
+ "module": "/dist/chunks/DotLottiePlayerBase-DlP7nSA9.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-EYV9k8CY.js"
89
+ "module": "./chunks/DotLottiePlayerBase-DlP7nSA9.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-EYV9k8CY.js"
97
+ "module": "./chunks/DotLottiePlayerBase-DlP7nSA9.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-EYV9k8CY.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DlP7nSA9.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DlP7nSA9.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
- this.template.innerHTML = /* HTML */ `<div class="animation-container main" data-controls="${this.controls ?? false}" lang="${this.description ? document.documentElement.lang : 'en'}" data-loaded="${this._playerState.loaded}"><figure class="animation" style="background:${this.background}" ${this.description ? /* HTML */ `
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} data-loaded="${this._playerState.loaded}"><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 = [
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-EYV9k8CY.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
4
+ import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-DlP7nSA9.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DlP7nSA9.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-EYV9k8CY.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DlP7nSA9.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DlP7nSA9.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-EYV9k8CY.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-EYV9k8CY.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DlP7nSA9.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DlP7nSA9.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**