@cascivo/charts 0.3.13 → 0.3.14
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 +6 -0
- package/package.json +4 -4
- package/readme.body.md +6 -0
package/README.md
CHANGED
|
@@ -49,6 +49,12 @@ export function Traffic() {
|
|
|
49
49
|
Charts are CSS-token-themed: drop them inside any element carrying a `data-theme` (or import a
|
|
50
50
|
theme stylesheet) and they pick up the same palette, radii, and typography as the rest of cascivo.
|
|
51
51
|
|
|
52
|
+
> **Vite SSR (TanStack Start, Remix, vite-ssr, workerd)?** Like the rest of cascivo, the
|
|
53
|
+
> chart CSS ships as side-effect imports a bare server loader can't resolve — mark
|
|
54
|
+
> `ssr: { noExternal: [/^@cascivo\//] }` (the pattern already covers `@cascivo/charts`) and
|
|
55
|
+
> import `@cascivo/charts/styles.css` once in your root entry. Full recipe:
|
|
56
|
+
> [USING-WITH-VITE-SSR.md](https://github.com/cascivo/cascivo/blob/main/docs/USING-WITH-VITE-SSR.md).
|
|
57
|
+
|
|
52
58
|
### React apps must subscribe to signals
|
|
53
59
|
|
|
54
60
|
The charts are signal-driven. In a plain React app (no Babel signals transform), call `useSignals()`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cascivo/charts",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Chart components built from scratch — scales, shapes, and signal-driven rendering, zero dependencies",
|
|
6
6
|
"keywords": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"provenance": true
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@cascivo/core": "^0.
|
|
48
|
-
"@cascivo/i18n": "^0.2.
|
|
47
|
+
"@cascivo/core": "^0.5.0",
|
|
48
|
+
"@cascivo/i18n": "^0.2.9"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@preact/signals": "^2",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"vite-plus": "^0.2.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@preact/signals-react": ">=
|
|
66
|
+
"@preact/signals-react": ">=3.0.0",
|
|
67
67
|
"react": ">=18.0.0",
|
|
68
68
|
"react-dom": ">=18.0.0"
|
|
69
69
|
},
|
package/readme.body.md
CHANGED
|
@@ -31,6 +31,12 @@ export function Traffic() {
|
|
|
31
31
|
Charts are CSS-token-themed: drop them inside any element carrying a `data-theme` (or import a
|
|
32
32
|
theme stylesheet) and they pick up the same palette, radii, and typography as the rest of cascivo.
|
|
33
33
|
|
|
34
|
+
> **Vite SSR (TanStack Start, Remix, vite-ssr, workerd)?** Like the rest of cascivo, the
|
|
35
|
+
> chart CSS ships as side-effect imports a bare server loader can't resolve — mark
|
|
36
|
+
> `ssr: { noExternal: [/^@cascivo\//] }` (the pattern already covers `@cascivo/charts`) and
|
|
37
|
+
> import `@cascivo/charts/styles.css` once in your root entry. Full recipe:
|
|
38
|
+
> [USING-WITH-VITE-SSR.md](https://github.com/cascivo/cascivo/blob/main/docs/USING-WITH-VITE-SSR.md).
|
|
39
|
+
|
|
34
40
|
### React apps must subscribe to signals
|
|
35
41
|
|
|
36
42
|
The charts are signal-driven. In a plain React app (no Babel signals transform), call `useSignals()`
|