diff --git a/packages/react-transition-presence/src/TransitionPresence/TransitionPresence.stories.tsx b/packages/react-transition-presence/src/TransitionPresence/TransitionPresence.stories.tsx index dee9927..d51bf56 100644 --- a/packages/react-transition-presence/src/TransitionPresence/TransitionPresence.stories.tsx +++ b/packages/react-transition-presence/src/TransitionPresence/TransitionPresence.stories.tsx @@ -1,15 +1,16 @@ /* eslint-disable no-console */ import { useAnimation } from '@mediamonks/react-animation'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta } from '@storybook/react'; import gsap from 'gsap'; import { useCallback, useEffect, useRef, useState, type ReactElement, Fragment } from 'react'; import { useBeforeUnmount } from '../useBeforeUnmount/useBeforeUnmount.js'; import { TransitionPresence } from './TransitionPresence.js'; -export default { +const meta = { title: 'components/TransitionPresence', - component: TransitionPresence, -} as Meta; +} satisfies Meta; + +export default meta; type ChildProps = { background: string; @@ -106,7 +107,7 @@ export const Demo = { ); }, -} satisfies StoryObj; +}; export const DemoUsingFragment = { render(): ReactElement { @@ -218,7 +219,6 @@ export const DemoClickToHide = { /> ) : null} -
Click the square (isVisible: {String(isVisible)})
); diff --git a/packages/react-transition-presence/tsconfig.build.json b/packages/react-transition-presence/tsconfig.build.json index 4fd6ecf..765355c 100644 --- a/packages/react-transition-presence/tsconfig.build.json +++ b/packages/react-transition-presence/tsconfig.build.json @@ -4,5 +4,13 @@ "declaration": true, "outDir": "./dist" }, - "exclude": ["**/*.test.ts", "**/*.test.tsx", "jest.config.ts"] + "include": ["./src/**/*"], + "exclude": [ + "**/*.test.ts", + "**/*.test.tsx", + "**/*.stories.tsx", + "**/*.stories.ts", + "**/*.playwright.tsx", + "**/*.playwright.ts" + ] } diff --git a/packages/react-transition-presence/tsconfig.json b/packages/react-transition-presence/tsconfig.json index b510a00..eb3ce62 100644 --- a/packages/react-transition-presence/tsconfig.json +++ b/packages/react-transition-presence/tsconfig.json @@ -2,6 +2,7 @@ "extends": "../../tsconfig.json", "compilerOptions": { "jsx": "react-jsx", - "moduleResolution": "NodeNext" + "moduleResolution": "NodeNext", + "types": ["jest"] } }