@aarsteinmedia/dotlottie-player 2.2.4 → 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.4";
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
  ".": {
@@ -820,7 +821,11 @@ class DotLottiePlayer extends lit.LitElement {
820
821
  ...this._getOptions(),
821
822
  animationData: this._animations[this._currentAnimation]
822
823
  });
824
+ if (this.multiAnimationSettings?.[this._currentAnimation]?.mode) {
825
+ this._isBounce = this.multiAnimationSettings[this._currentAnimation].mode === exports.PlayMode.Bounce;
826
+ }
823
827
  this._addEventListeners();
828
+ this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Next));
824
829
  if (this.multiAnimationSettings?.[this._currentAnimation]?.autoplay ?? this.autoplay) {
825
830
  this._lottieInstance?.goToAndPlay(0, true);
826
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.4";
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
  ".": {
@@ -818,7 +819,11 @@ class DotLottiePlayer extends LitElement {
818
819
  ...this._getOptions(),
819
820
  animationData: this._animations[this._currentAnimation]
820
821
  });
822
+ if (this.multiAnimationSettings?.[this._currentAnimation]?.mode) {
823
+ this._isBounce = this.multiAnimationSettings[this._currentAnimation].mode === PlayMode.Bounce;
824
+ }
821
825
  this._addEventListeners();
826
+ this.dispatchEvent(new CustomEvent(PlayerEvents.Next));
822
827
  if (this.multiAnimationSettings?.[this._currentAnimation]?.autoplay ?? this.autoplay) {
823
828
  this._lottieInstance?.goToAndPlay(0, true);
824
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",