@crystallize/design-system 2.0.4 → 2.1.0
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/CHANGELOG.md +15 -0
- package/dist/styles-light-core.css +1991 -0
- package/dist/styles-rich-text-editor.css +1490 -0
- package/package.json +13 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @crystallize/design-system
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f9028a1: Move design-system RTE styles (and their inlined SVG data: URIs) into a lazy CSS chunk that loads only when the editor mounts, shrinking the main CSS from 259 KB to 190 KB. Done via additive `styles-light-core.css` / `styles-rich-text-editor.css` exports on the design-system (existing `styles.css` untouched) and a lazy wrapper around `@app/modules/rich-text-editor`. `styles-light-core.css` also strips the unused `.c-dark` color-vars block (~7.6 KB) for consumers that only render light mode.
|
|
8
|
+
|
|
9
|
+
Additional `apps/web` bundle optimizations on the same branch (no version impact — `app` is private):
|
|
10
|
+
|
|
11
|
+
- Image assets: ran SVGO (multipass, `mergePaths.force`, `floatPrecision: 2`) over `src/images/illustrations` and `src/icons/svg`, and pngquant (q70-95) over the four oversized PNGs (`orders.png`, `mass-operation-no-logs-placeholder.png`, `atom-success.png`, `labs-feature-empty.png`). Bundle image total dropped from 4.32 MB → 2.07 MB gzipped.
|
|
12
|
+
- Removed three orphan image files: `images/illustrations/map.png`, `images/illustrations/Pretty_View_Illustration.jpg`, `public/img/crystallize-headless-commerce.png`.
|
|
13
|
+
- Lazy-loaded the kbar-based `CommandPalette`: refactored `command-palette.tsx` to no longer wrap children with `KBarProvider` (no descendant uses `useKBar` outside the module), added `lazy-command-palette.tsx` that defers loading via `requestIdleCallback`. Saves ~16 KB gzipped from the main entry chunk.
|
|
14
|
+
- Added `manualChunks` in `vite.config.ts` to hoist `prettier`, `recharts`, `graphql`, and `@glideapps/glide-data-grid` into shared chunks, eliminating cross-route duplication.
|
|
15
|
+
|
|
16
|
+
Combined effect: total bundle 9.55 MB → 6.54 MB gzipped (−32%); main entry 689 KB → 526 KB gzipped (−24%).
|
|
17
|
+
|
|
3
18
|
## 2.0.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|