deja-vue 2.1.2 → 2.1.3

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/index.d.ts CHANGED
@@ -273,11 +273,11 @@ type __VLS_Slots$2 = {
273
273
  default(props: DejaVueSplitTextScopeProps): any;
274
274
  };
275
275
  declare const __VLS_base$2: import("vue").DefineComponent<__VLS_Props, DejaVueSplitTextInstance, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
276
- revert: (splitText: SplitText) => any;
277
276
  split: (splitText: SplitText) => any;
277
+ revert: (splitText: SplitText) => any;
278
278
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
279
- onRevert?: ((splitText: SplitText) => any) | undefined;
280
279
  onSplit?: ((splitText: SplitText) => any) | undefined;
280
+ onRevert?: ((splitText: SplitText) => any) | undefined;
281
281
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
282
282
  declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
283
283
  declare const _default$1: typeof __VLS_export$2;
@@ -339,13 +339,13 @@ declare const __VLS_base$1: import("vue").DefineComponent<(DejaVueAnimationCompo
339
339
  duration?: number;
340
340
  options?: gsap.TimelineVars;
341
341
  } & __VLS_ModelProps$1)> & Readonly<{
342
+ "onUpdate:progress"?: ((value: number) => any) | undefined;
342
343
  onComplete?: ((...args: any[]) => any) | undefined;
343
344
  onInterrupt?: ((...args: any[]) => any) | undefined;
344
345
  onRepeat?: ((...args: any[]) => any) | undefined;
345
346
  onReverseComplete?: ((...args: any[]) => any) | undefined;
346
347
  onStart?: ((...args: any[]) => any) | undefined;
347
348
  onUpdate?: ((...args: any[]) => any) | undefined;
348
- "onUpdate:progress"?: ((value: number) => any) | undefined;
349
349
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
350
350
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
351
351
  declare const _default$2: typeof __VLS_export$1;
@@ -547,13 +547,13 @@ declare const __VLS_base: import("vue").DefineComponent<(DejaVueAnimationCompone
547
547
  effect?: string;
548
548
  effectOptions?: gsap.TweenVars;
549
549
  } & __VLS_ModelProps)> & Readonly<{
550
+ "onUpdate:progress"?: ((value: number) => any) | undefined;
550
551
  onComplete?: ((...args: any[]) => any) | undefined;
551
552
  onInterrupt?: ((...args: any[]) => any) | undefined;
552
553
  onRepeat?: ((...args: any[]) => any) | undefined;
553
554
  onReverseComplete?: ((...args: any[]) => any) | undefined;
554
555
  onStart?: ((...args: any[]) => any) | undefined;
555
556
  onUpdate?: ((...args: any[]) => any) | undefined;
556
- "onUpdate:progress"?: ((value: number) => any) | undefined;
557
557
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
558
558
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
559
559
  declare const _default$3: typeof __VLS_export;
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ var EventBus = class {
125
125
  };
126
126
  //#endregion
127
127
  //#region src/core/Animation.ts
128
- gsap.registerPlugin(ScrollTrigger);
128
+ if (typeof window !== "undefined") gsap.registerPlugin(ScrollTrigger);
129
129
  var Animation = class extends EventBus {
130
130
  ctx;
131
131
  scrollTrigger;
@@ -384,7 +384,7 @@ function useAnimationScope(options) {
384
384
  }
385
385
  //#endregion
386
386
  //#region src/composables/useSplitText.ts
387
- gsap.registerPlugin(SplitText);
387
+ if (typeof window !== "undefined") gsap.registerPlugin(SplitText);
388
388
  function useSplitText(domTarget, options) {
389
389
  const instance = shallowRef();
390
390
  const state = shallowReactive({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "deja-vue",
3
3
  "type": "module",
4
- "version": "2.1.2",
4
+ "version": "2.1.3",
5
5
  "description": "Declarative GSAP Animations for Vue 3",
6
6
  "author": "Andrea 'Fiad' Fiadone <hello@fiad.one>",
7
7
  "license": "MIT",