diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 0441788..6febad3 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -21,7 +21,7 @@ const preview: Preview = { options: { // Sort stories with Welcome first storySort: { - order: ['Welcome', 'The Tooltip', 'The Tourtip', 'The TipAdvisor', 'Tooltip', '*'], + order: ['Welcome', 'The Tooltip', 'The TipAdvisor', 'The Tourtip', 'Tooltip', '*'], }, }, }, diff --git a/CLAUDE.md b/CLAUDE.md index 9ec947b..6b3a0e4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -19,6 +19,7 @@ npm run build # library (dist/index.mjs, .cjs, styles.css) | -------------------------- | ------------------------------------------------------------------------------------------------------------- | | `src/components/` | React components. `Tooltip` renders the single tooltip; the rest are internals mounted by `TipMagicProvider`. | | `src/hooks/` | Public hooks and the API objects behind `useTipMagic()`. | +| `src/hooks/useTour/` | `useTour`, and `TourPanel`, the React component it passes to the tooltip as content. | | `src/hooks/useTour/utils/` | Tour helpers: DOM managers (classes) and pure functions. | | `src/utils/` | Pure helpers shared across components. Tests in `__tests__/` beside them. | | `src/types/` | All public types. `tour.ts` re-exports through `index.ts`. | @@ -49,9 +50,10 @@ on the next push rather than stranding the bump. **`dangerouslySetInnerHTML` is re-applied on every render.** React rewrites the subtree even when the html string is byte-identical. Anything focused inside it is dropped to -``, an `` or autoplaying `