createExampleRunner (the scripts/example.ts runner);
runEmbedCssSuite / runEmbedThemeE2e: reusable test suites, test API injected.
The shipped tsconfig bases live at @xtandard/kit/tsconfig/base.json and react.json.
Optional peers: postcss, postcss-prefix-selector, typescript, vite-plus, vite,
@vitejs/plugin-react, @tailwindcss/vite, @playwright/test — each loaded only by the helper
that needs it.
The React embed library build: ESM, React external, everything else (the kit UI, TanStack Query, Base UI, styles) bundled so the components are self-contained. The emitted CSS is a full Tailwind build; run xtandard-kit scope-embed-css on it afterwards.
The bundled admin SPA build. base: "./" keeps asset URLs relative so the SPA works under any mount path (the panel injects a <base> tag); the output directory is emptied first, since it only ever holds the SPA.
Resolve an exports value to its ESM runtime file and declaration file (paths as written in package.json). .d.mts is derived from an .mjs target when no types condition is given.
Rules that would restyle the host document if they escaped the scope: preflight resets, the universal custom-property rule, and token blocks left on :root/html/body. Returns the offending rule fragments (empty when fully scoped).
Prefix every rule in css with scope (a class, e.g. ".xtandard-flags"), re-homing :root/html/:host/body onto the wrapper and leaving keyframe steps alone. Pure.