diff --git a/knip.jsonc b/knip.jsonc index 8c8e7573..4c66d4e7 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -107,6 +107,13 @@ "packages/hub": { "entry": ["src/{index,constants}.ts", "src/{client,node,types}/index.ts", "src/node/{index,initiate}.ts"] }, + "packages/hub-ui": { + // `playground/client-scripts/*.ts` are dock `action` entries the + // playground's `seed.ts` points at by their runtime URL string + // (`action.importFrom`), not a static import knip's graph can see — + // the same shape as a devframe's `clientScript`/`clientScripts` entry. + "entry": ["playground/client-scripts/*.ts"] + }, "packages/json-render": { // `src/node/index.ts` is already picked up via `tsdown.config.ts` // (its literal `entry` object parses cleanly); only `core.ts`/`hub.ts` diff --git a/packages/hub-ui/.storybook/preview.ts b/packages/hub-ui/.storybook/preview.ts index 3bcac0a0..b91bddd3 100644 --- a/packages/hub-ui/.storybook/preview.ts +++ b/packages/hub-ui/.storybook/preview.ts @@ -1,4 +1,11 @@ import type { Decorator, Preview } from '@storybook/vue3-vite' +// The same Tailwind preflight `scripts/build-css.ts` prepends to the shipped +// shadow-root stylesheet — first, so `virtual:uno.css`'s utilities (and the +// hand-written `style.css`) win over its resets, matching the production +// build's `[reset, userStyle, unoCss, ...]` order. Without it, stories miss +// the reset (unstyled default `