@cascivo/charts 0.3.12 → 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 +8 -2
- package/package.json +5 -4
- package/readme.body.md +6 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[](https://github.com/cascivo/cascivo/blob/main/LICENSE)
|
|
11
11
|

|
|
12
12
|
|
|
13
|
-
[npm](https://www.npmjs.com/package/@cascivo/charts) · [cascivo.com](https://cascivo.com) · [Docs](https://
|
|
13
|
+
[npm](https://www.npmjs.com/package/@cascivo/charts) · [cascivo.com](https://cascivo.com) · [Docs](https://cascivo.com/docs) · [Storybook](https://storybook.cascivo.com) · [GitHub](https://github.com/cascivo/cascivo)
|
|
14
14
|
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -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()`
|
|
@@ -127,6 +133,6 @@ pnpm add @cascivo/charts
|
|
|
127
133
|
|
|
128
134
|
---
|
|
129
135
|
|
|
130
|
-
[cascivo.com](https://cascivo.com) · [Docs](https://
|
|
136
|
+
[cascivo.com](https://cascivo.com) · [Docs](https://cascivo.com/docs) · [Storybook](https://storybook.cascivo.com) · [GitHub](https://github.com/cascivo/cascivo) · AI agents: read [`llms.txt`](https://cascivo.com/llms.txt) (install steps + component index, plain text) or use [`@cascivo/mcp`](https://github.com/cascivo/cascivo/tree/main/packages/mcp) and [`registry.json`](https://github.com/cascivo/cascivo/blob/main/registry.json) · MIT
|
|
131
137
|
|
|
132
138
|
<div align="center"><a href="https://cascivo.com"><img src="https://cascivo.com/favicon.svg" width="28" height="28" alt="cascivo"></a></div>
|
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": [
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"types": "./dist/index.d.ts",
|
|
33
33
|
"exports": {
|
|
34
|
+
"./package.json": "./package.json",
|
|
34
35
|
".": {
|
|
35
36
|
"types": "./dist/index.d.ts",
|
|
36
37
|
"import": "./dist/index.js",
|
|
@@ -43,8 +44,8 @@
|
|
|
43
44
|
"provenance": true
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@cascivo/core": "^0.
|
|
47
|
-
"@cascivo/i18n": "^0.2.
|
|
47
|
+
"@cascivo/core": "^0.5.0",
|
|
48
|
+
"@cascivo/i18n": "^0.2.9"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@preact/signals": "^2",
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
"vite-plus": "^0.2.1"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
|
-
"@preact/signals-react": ">=
|
|
66
|
+
"@preact/signals-react": ">=3.0.0",
|
|
66
67
|
"react": ">=18.0.0",
|
|
67
68
|
"react-dom": ">=18.0.0"
|
|
68
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()`
|