diff --git a/package.json b/package.json index 8147404..778ba10 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "types": "./dist/index.d.ts", "module": "./dist/index.js", "exports": { - ".": "./dist/index.js" + ".": "./dist/index.js", + "./gsap": "./dist/gsap.js", + "./nextjs": "./dist/nextjs.js" }, "type": "module", "files": [ diff --git a/src/gsap.ts b/src/gsap.ts new file mode 100644 index 0000000..93c978c --- /dev/null +++ b/src/gsap.ts @@ -0,0 +1,8 @@ +export * from './gsap/components/SplitTextWrapper/SplitTextWrapper.js'; +export * from './gsap/hooks/useAnimation/useAnimation.js'; +export * from './gsap/hooks/useExposeAnimation/useExposeAnimation.js'; +export * from './gsap/hooks/useExposedAnimation/useExposedAnimation.js'; +export * from './gsap/hooks/useExposedAnimations/useExposedAnimations.js'; +export * from './gsap/hooks/useFlip/useFlip.js'; +export * from './gsap/hooks/useScrollAnimation/useScrollAnimation.js'; +export * from './gsap/utils/getAnimation/getAnimation.js'; diff --git a/src/index.ts b/src/index.ts index 8751b21..815250e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,14 +1,6 @@ /* PLOP_ADD_EXPORT */ export * from './components/AutoAdjustFontSize/AutoAdjustFontSize.js'; export * from './components/AutoFill/AutoFill.js'; -export * from './gsap/components/SplitTextWrapper/SplitTextWrapper.js'; -export * from './gsap/hooks/useAnimation/useAnimation.js'; -export * from './gsap/hooks/useExposeAnimation/useExposeAnimation.js'; -export * from './gsap/hooks/useExposedAnimation/useExposedAnimation.js'; -export * from './gsap/hooks/useExposedAnimations/useExposedAnimations.js'; -export * from './gsap/hooks/useFlip/useFlip.js'; -export * from './gsap/hooks/useScrollAnimation/useScrollAnimation.js'; -export * from './gsap/utils/getAnimation/getAnimation.js'; export * from './hocs/ensuredForwardRef/ensuredForwardRef.js'; export * from './hooks/useClientSideValue/useClientSideValue.js'; export * from './hooks/useContentRect/useContentRect.js'; @@ -32,24 +24,18 @@ export * from './hooks/useRefs/utils/validateAndUnwrapRefs/validateAndUnwrapRefs export * from './hooks/useResizeObserver/useResizeObserver.js'; export * from './hooks/useStaticValue/useStaticValue.js'; export * from './hooks/useToggle/useToggle.js'; +export * from './lifecycle/components/CrossFlow/CrossFlow.js'; +export * from './lifecycle/components/TransitionPresence/TransitionPresence.context.js'; +export * from './lifecycle/components/TransitionPresence/TransitionPresence.js'; export * from './lifecycle/hooks/useBeforeMount/useBeforeMount.js'; +export * from './lifecycle/hooks/useBeforeUnmount/useBeforeUnmount.js'; export * from './lifecycle/hooks/useIsMounted/useIsMounted.js'; export * from './lifecycle/hooks/useIsMountedState/useIsMountedState.js'; export * from './lifecycle/hooks/useMount/useMount.js'; export * from './lifecycle/hooks/useUnmount/useUnmount.js'; -export * from './nextjs/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js'; export * from './types/PolymorphicComponentProps/PolymorphicComponentProps.js'; export * from './utils/adjustFontSize/adjustFontSize.js'; export * from './utils/arrayRef/arrayRef.js'; export * from './utils/createTimeout/createTimeout.js'; export * from './utils/isRefObject/isRefObject.js'; export * from './utils/unref/unref.js'; - -// Custom exports for external use only -export { CrossFlow } from './lifecycle/components/CrossFlow/CrossFlow.js'; -export { TransitionPresenceContext } from './lifecycle/components/TransitionPresence/TransitionPresence.context.js'; -export { TransitionPresence } from './lifecycle/components/TransitionPresence/TransitionPresence.js'; -export { - useBeforeUnmount, - type BeforeUnmountCallback, -} from './lifecycle/hooks/useBeforeUnmount/useBeforeUnmount.js'; diff --git a/src/nextjs.ts b/src/nextjs.ts new file mode 100644 index 0000000..04ee68a --- /dev/null +++ b/src/nextjs.ts @@ -0,0 +1 @@ +export * from './nextjs/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js';