Releases: OpenShock/svelte-core
Releases · OpenShock/svelte-core
Release list
v0.2.2
Patch Changes
- e267bc3: Fix consumption in a SvelteKit dev server. Importing components via raw
.svelte-file subpaths (e.g.components/input/PasswordInput.svelte) made Vite's dependency scanner crawl into the file and fail on its relative imports. The component directories are now exposed via JS barrel index files —components,components/input,components/svg,components/datetime-picker,components/dialog-manager— so consumers import named exports (likeui/*andstepperalready do) and Vite treats the package as a Svelte library. Also add the missingdefaultexport condition to.and./hooks/is-mobile.svelte.
v0.2.1
Patch Changes
- 9a6c73b:
theme.cssnow registers the package's components as a Tailwind content source (@source './components'). Tailwind v4 auto-detection skipsnode_modules, so previously consumers had to add their own@source '@openshock/svelte-core'or utility classes used only inside the library's components would be missing from the generated CSS. Importing@openshock/svelte-core/theme.cssis now sufficient.
v0.2.0
Minor Changes
-
ca28ee6: Add
./state/*subpath export with the sharedPersistedStateclass (andusePersistedState) plus thecolorSchemecolor-scheme state (ColorScheme,getDarkReaderState,initializeColorScheme). Both are ported to be framework-agnostic — browser detection usestypeof windowinstead of SvelteKit's$app/environment.With the color-scheme state now living in the library,
LightSwitchand thesonnerToasterare self-contained again: they readcolorSchemedirectly instead of requiring the consumer to wirevalue/onValueChange/themeprops.LightSwitchno longer takes any props.