@mediamonks/react-kit 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.
|
@@ -6,7 +6,7 @@ import { useObjectRef } from '../../../hooks/useObjectRef/useObjectRef.js';
|
|
|
6
6
|
if (typeof window !== 'undefined') {
|
|
7
7
|
gsap.registerPlugin(SplitText);
|
|
8
8
|
}
|
|
9
|
-
export function SplitTextWrapper({ variables = {}, as, children, splitFirstElementChild = false, ref, ...props }) {
|
|
9
|
+
export function SplitTextWrapper({ variables = { type: 'chars,words,lines' }, as, children, splitFirstElementChild = false, ref, ...props }) {
|
|
10
10
|
const objectRef = useObjectRef(ref);
|
|
11
11
|
/**
|
|
12
12
|
* Not using useCallback on purpose so that a new SplitText instance is
|
|
@@ -2,4 +2,4 @@ import { type Unreffable } from '../../../index.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Hook to get animation from global animations map using given reference
|
|
4
4
|
*/
|
|
5
|
-
export declare function useExposedAnimations(target: Unreffable<ReadonlyArray<unknown
|
|
5
|
+
export declare function useExposedAnimations(target: Unreffable<ReadonlyArray<unknown> | null>): ReadonlyArray<gsap.core.Animation>;
|
package/dist/gsap.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export * from './gsap/hooks/useExposedAnimations/useExposedAnimations.js';
|
|
|
6
6
|
export * from './gsap/hooks/useFlip/useFlip.js';
|
|
7
7
|
export * from './gsap/hooks/useScrollAnimation/useScrollAnimation.js';
|
|
8
8
|
export * from './gsap/utils/getAnimation/getAnimation.js';
|
|
9
|
+
export * from './gsap/animations.js';
|
package/dist/gsap.js
CHANGED
|
@@ -6,3 +6,4 @@ export * from './gsap/hooks/useExposedAnimations/useExposedAnimations.js';
|
|
|
6
6
|
export * from './gsap/hooks/useFlip/useFlip.js';
|
|
7
7
|
export * from './gsap/hooks/useScrollAnimation/useScrollAnimation.js';
|
|
8
8
|
export * from './gsap/utils/getAnimation/getAnimation.js';
|
|
9
|
+
export * from './gsap/animations.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediamonks/react-kit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "A collection of React hooks, components, utilities that we use at Media.Monks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -72,10 +72,11 @@
|
|
|
72
72
|
"@storybook/types": "^8.5.2",
|
|
73
73
|
"@testing-library/react": "^16.2.0",
|
|
74
74
|
"@types/lodash-es": "^4.17.11",
|
|
75
|
+
"@types/react-dom": "^19.2.3",
|
|
75
76
|
"@vitejs/plugin-react": "^4.0.0",
|
|
76
77
|
"concurrently": "^8.2.2",
|
|
77
78
|
"eslint": "^8.28.0",
|
|
78
|
-
"gsap": "
|
|
79
|
+
"gsap": "^3.14.2",
|
|
79
80
|
"http-server": "^14.1.1",
|
|
80
81
|
"husky": "^8.0.0",
|
|
81
82
|
"jsdom": "^22.0.0",
|