@lottiefiles/dotlottie-vue 0.6.0 → 0.6.1

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.
@@ -6,7 +6,6 @@ export { DotLottie } from '@lottiefiles/dotlottie-web';
6
6
  interface DotLottieVueProps extends Omit<Config, 'canvas'> {
7
7
  animationId?: string;
8
8
  playOnHover?: boolean;
9
- stateMachineId?: string;
10
9
  themeData?: string;
11
10
  themeId?: string;
12
11
  }
@@ -74,10 +73,6 @@ declare const DotLottieVue: vue.DefineComponent<{
74
73
  type: StringConstructor;
75
74
  required: false;
76
75
  };
77
- stateMachineId: {
78
- type: StringConstructor;
79
- required: false;
80
- };
81
76
  }, () => VNode, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
82
77
  animationId: {
83
78
  type: StringConstructor;
@@ -139,10 +134,6 @@ declare const DotLottieVue: vue.DefineComponent<{
139
134
  type: StringConstructor;
140
135
  required: false;
141
136
  };
142
- stateMachineId: {
143
- type: StringConstructor;
144
- required: false;
145
- };
146
137
  }>>, {
147
138
  autoplay: boolean;
148
139
  loop: boolean;
package/dist/dotlottie.js CHANGED
@@ -18,8 +18,7 @@ var DotLottieVue = defineComponent({
18
18
  marker: { type: String, required: false },
19
19
  playOnHover: { type: Boolean, required: false },
20
20
  themeData: { type: String, required: false },
21
- themeId: { type: String, required: false },
22
- stateMachineId: { type: String, required: false }
21
+ themeId: { type: String, required: false }
23
22
  },
24
23
  setup(props, { attrs, expose }) {
25
24
  const canvas = ref(void 0);
@@ -109,15 +108,6 @@ var DotLottieVue = defineComponent({
109
108
  }
110
109
  }
111
110
  );
112
- watch(
113
- () => props.stateMachineId,
114
- (newVal) => {
115
- if (dotLottie && typeof newVal !== "undefined") {
116
- dotLottie.stateMachineLoad(newVal);
117
- dotLottie.stateMachineStart();
118
- }
119
- }
120
- );
121
111
  function hoverHandler(event) {
122
112
  if (event.type === "mouseenter") {
123
113
  dotLottie?.play();
package/dist/index.js CHANGED
@@ -18,8 +18,7 @@ var DotLottieVue = defineComponent({
18
18
  marker: { type: String, required: false },
19
19
  playOnHover: { type: Boolean, required: false },
20
20
  themeData: { type: String, required: false },
21
- themeId: { type: String, required: false },
22
- stateMachineId: { type: String, required: false }
21
+ themeId: { type: String, required: false }
23
22
  },
24
23
  setup(props, { attrs, expose }) {
25
24
  const canvas = ref(void 0);
@@ -109,15 +108,6 @@ var DotLottieVue = defineComponent({
109
108
  }
110
109
  }
111
110
  );
112
- watch(
113
- () => props.stateMachineId,
114
- (newVal) => {
115
- if (dotLottie && typeof newVal !== "undefined") {
116
- dotLottie.stateMachineLoad(newVal);
117
- dotLottie.stateMachineStart();
118
- }
119
- }
120
- );
121
111
  function hoverHandler(event) {
122
112
  if (event.type === "mouseenter") {
123
113
  dotLottie?.play();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lottiefiles/dotlottie-vue",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "description": "Vue wrapper around the dotlottie-web library",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "vue": "^3.3.4"
36
36
  },
37
37
  "dependencies": {
38
- "@lottiefiles/dotlottie-web": "0.39.0"
38
+ "@lottiefiles/dotlottie-web": "0.42.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@vue/runtime-dom": "^3.4.6",