@aarsteinmedia/dotlottie-player 2.2.5 → 2.2.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/dist/cjs/index.js CHANGED
@@ -30,6 +30,7 @@ exports.PlayerEvents = void 0;
30
30
  PlayerEvents["Freeze"] = "freeze";
31
31
  PlayerEvents["Load"] = "load";
32
32
  PlayerEvents["Loop"] = "loop";
33
+ PlayerEvents["Next"] = "next";
33
34
  PlayerEvents["Pause"] = "pause";
34
35
  PlayerEvents["Play"] = "play";
35
36
  PlayerEvents["Ready"] = "ready";
@@ -299,7 +300,7 @@ const addExt = (ext, str)=>{
299
300
  };
300
301
 
301
302
  var name = "@aarsteinmedia/dotlottie-player";
302
- var version = "2.2.5";
303
+ var version = "2.2.6";
303
304
  var description = "Web Component for playing Lottie animations in your web app. Previously @johanaarstein/dotlottie-player";
304
305
  var exports$1 = {
305
306
  ".": {
@@ -824,6 +825,7 @@ class DotLottiePlayer extends lit.LitElement {
824
825
  this._isBounce = this.multiAnimationSettings[this._currentAnimation].mode === exports.PlayMode.Bounce;
825
826
  }
826
827
  this._addEventListeners();
828
+ this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Next));
827
829
  if (this.multiAnimationSettings?.[this._currentAnimation]?.autoplay ?? this.autoplay) {
828
830
  this._lottieInstance?.goToAndPlay(0, true);
829
831
  this.currentState = exports.PlayerState.Playing;
package/dist/esm/index.js CHANGED
@@ -28,6 +28,7 @@ var PlayerEvents;
28
28
  PlayerEvents["Freeze"] = "freeze";
29
29
  PlayerEvents["Load"] = "load";
30
30
  PlayerEvents["Loop"] = "loop";
31
+ PlayerEvents["Next"] = "next";
31
32
  PlayerEvents["Pause"] = "pause";
32
33
  PlayerEvents["Play"] = "play";
33
34
  PlayerEvents["Ready"] = "ready";
@@ -297,7 +298,7 @@ const addExt = (ext, str)=>{
297
298
  };
298
299
 
299
300
  var name = "@aarsteinmedia/dotlottie-player";
300
- var version = "2.2.5";
301
+ var version = "2.2.6";
301
302
  var description = "Web Component for playing Lottie animations in your web app. Previously @johanaarstein/dotlottie-player";
302
303
  var exports = {
303
304
  ".": {
@@ -822,6 +823,7 @@ class DotLottiePlayer extends LitElement {
822
823
  this._isBounce = this.multiAnimationSettings[this._currentAnimation].mode === PlayMode.Bounce;
823
824
  }
824
825
  this._addEventListeners();
826
+ this.dispatchEvent(new CustomEvent(PlayerEvents.Next));
825
827
  if (this.multiAnimationSettings?.[this._currentAnimation]?.autoplay ?? this.autoplay) {
826
828
  this._lottieInstance?.goToAndPlay(0, true);
827
829
  this.currentState = PlayerState.Playing;
package/dist/index.d.ts CHANGED
@@ -96,6 +96,7 @@ declare enum PlayerEvents {
96
96
  Freeze = "freeze",
97
97
  Load = "load",
98
98
  Loop = "loop",
99
+ Next = "next",
99
100
  Pause = "pause",
100
101
  Play = "play",
101
102
  Ready = "ready",