@aarsteinmedia/dotlottie-player 5.1.4 → 5.1.5

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,12 @@ 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
+ ## [5.1.5] - 04-06-2025
11
+
12
+ ### Changed
13
+
14
+ - Fixed issue with enums causing compiler errors in TypeScript
15
+
10
16
  ## [5.1.4] - 03-06-2025
11
17
 
12
18
  ### Changed
package/dist/index.d.ts CHANGED
@@ -59,13 +59,6 @@ declare abstract class PropertyCallbackElement extends HTMLElement {
59
59
  propertyChangedCallback(_name: string, _oldValue: unknown, _value: unknown): void;
60
60
  }
61
61
 
62
- declare enum ObjectFit {
63
- Contain = "contain",
64
- Cover = "cover",
65
- Fill = "fill",
66
- None = "none",
67
- ScaleDown = "scale-down"
68
- }
69
62
  declare enum PlayerState {
70
63
  Completed = "completed",
71
64
  Destroyed = "destroyed",
@@ -142,8 +135,8 @@ declare class DotLottiePlayer extends PropertyCallbackElement {
142
135
  get loop(): Loop;
143
136
  set mode(value: PlayMode);
144
137
  get mode(): PlayMode;
145
- set objectfit(value: ObjectFit);
146
- get objectfit(): ObjectFit;
138
+ set objectfit(value: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down');
139
+ get objectfit(): "contain" | "cover" | "fill" | "none" | "scale-down";
147
140
  set preserveAspectRatio(value: PreserveAspectRatio | null);
148
141
  get preserveAspectRatio(): PreserveAspectRatio | null;
149
142
  set renderer(value: RendererType);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aarsteinmedia/dotlottie-player",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "Web Component for playing Lottie animations in your web app. Previously @johanaarstein/dotlottie-player",
5
5
  "type": "module",
6
6
  "exports": {
@@ -78,7 +78,7 @@
78
78
  "eslint": "^9.28.0",
79
79
  "eslint-config-prettier": "^10.1.5",
80
80
  "eslint-config-sheriff": "^28.0.0",
81
- "eslint-plugin-perfectionist": "^4.13.0",
81
+ "eslint-plugin-perfectionist": "^4.14.0",
82
82
  "globals": "^16.2.0",
83
83
  "jiti": "^2.4.2",
84
84
  "lodash-es": "^4.17.21",