deja-vue 2.1.1 → 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 +2 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
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;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import gsap from "gsap";
|
|
2
2
|
import ScrollTrigger from "gsap/ScrollTrigger";
|
|
3
3
|
import { computed, createBlock, defineComponent, effectScope, inject, mergeModels, nextTick, onUnmounted, openBlock, provide, reactive, ref, renderSlot, shallowReactive, shallowRef, toRefs, toValue, unref, useAttrs, useModel, watch } from "vue";
|
|
4
4
|
import { getNodeElement, useUnwrap } from "vue-unwrap";
|
|
@@ -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({
|