@lottiefiles/dotlottie-vue 0.3.3 → 0.3.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.
@@ -1,10 +1,13 @@
1
1
  import * as vue from 'vue';
2
2
  import { VNode } from 'vue';
3
- import { Config, Mode } from '@lottiefiles/dotlottie-web';
3
+ import { Config, Mode, DotLottie } from '@lottiefiles/dotlottie-web';
4
4
  export { DotLottie } from '@lottiefiles/dotlottie-web';
5
5
 
6
6
  interface DotLottieVueProps extends Omit<Config, 'canvas'> {
7
7
  }
8
+ interface DotLottieVueExposed {
9
+ getDotLottieInstance: () => DotLottie | null;
10
+ }
8
11
  declare const DotLottieVue: vue.DefineComponent<{
9
12
  autoplay: {
10
13
  type: BooleanConstructor;
@@ -92,6 +95,7 @@ declare const DotLottieVue: vue.DefineComponent<{
92
95
  loop: boolean;
93
96
  useFrameInterpolation: boolean;
94
97
  }, {}>;
98
+ type DotLottieVueInstance = InstanceType<typeof DotLottieVue> & DotLottieVueExposed;
95
99
  declare const setWasmUrl: (url: string) => void;
96
100
 
97
- export { DotLottieVue, type DotLottieVueProps, setWasmUrl };
101
+ export { DotLottieVue, type DotLottieVueInstance, type DotLottieVueProps, setWasmUrl };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { DotLottieVue, DotLottieVueProps, setWasmUrl } from './dotlottie.js';
1
+ export { DotLottieVue, DotLottieVueInstance, DotLottieVueProps, setWasmUrl } from './dotlottie.js';
2
2
  export { DotLottie } from '@lottiefiles/dotlottie-web';
3
3
  import 'vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lottiefiles/dotlottie-vue",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
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.23.2"
38
+ "@lottiefiles/dotlottie-web": "0.24.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@vue/runtime-dom": "^3.4.6",