@sanity/themer 0.7.1 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/ResizableSidebar-DD787kQr.js +2050 -0
- package/dist/ResizableSidebar-DD787kQr.js.map +1 -0
- package/dist/ResizableSidebar.css.ts.vanilla-M9EuPu-q.js +422 -0
- package/dist/ResizableSidebar.css.ts.vanilla-M9EuPu-q.js.map +1 -0
- package/dist/bundle.css +555 -555
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/legacy.d.ts +13 -12
- package/dist/legacy.d.ts.map +1 -1
- package/dist/presets-CqBgS3A-.js.map +1 -1
- package/dist/tool.d.ts +2 -2
- package/dist/tool.d.ts.map +1 -1
- package/dist/tool.js +368 -2576
- package/dist/tool.js.map +1 -1
- package/package.json +16 -21
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ export default defineConfig({
|
|
|
67
67
|
|
|
68
68
|
If the Studio already uses a `buildTheme` theme, pass the same options so the tool starts editing from them: `themerTool({config: {light: {accent: '#1cb485'}}})`.
|
|
69
69
|
|
|
70
|
-
The tool's styles are a stylesheet, `@sanity/themer/bundle.css`, that `@sanity/themer/tool` imports itself — the Studio's bundler picks it up, nothing to add to the config. The sidebar slides in from the edge (and closing it ends the split preview), its header takes the height of the Studio navbar so the two line up, and with `prefers-reduced-motion` the sidebar and the split preview switch layouts without animating.
|
|
70
|
+
The tool's styles are a stylesheet, `@sanity/themer/bundle.css`, that `@sanity/themer/tool` imports itself — the Studio's bundler picks it up, nothing to add to the config. The sidebar's code loads the first time it's needed, starting as the pointer moves onto the navbar toggle — pressed before the code has arrived, the toggle's color wheel goes round until it has — so the tool adds little to the Studio's startup. The sidebar slides in from the edge (and closing it ends the split preview), its header takes the height of the Studio navbar so the two line up, and with `prefers-reduced-motion` the sidebar and the split preview switch layouts without animating.
|
|
71
71
|
|
|
72
72
|
## Migrating from themer.sanity.build
|
|
73
73
|
|
|
@@ -83,4 +83,4 @@ The npm migration path off the hosted Themer service ([themer.sanity.build](http
|
|
|
83
83
|
|
|
84
84
|
## License
|
|
85
85
|
|
|
86
|
-
MIT © Sanity.io — see [LICENSE](https://github.com/sanity-io/
|
|
86
|
+
MIT © Sanity.io — see [LICENSE](https://github.com/sanity-io/plugins/blob/main/LICENSE)
|