@cascivo/editor 0.2.13 → 0.2.15
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/editor) · [cascivo.com](https://cascivo.com) · [Docs](https://
|
|
13
|
+
[npm](https://www.npmjs.com/package/@cascivo/editor) · [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
|
|
|
@@ -46,6 +46,12 @@ The editor is CSS-token-themed: drop it inside any element carrying a `data-them
|
|
|
46
46
|
theme stylesheet) and it picks up the same palette, radii, and typography as the rest of cascivo —
|
|
47
47
|
including the syntax colors, which map onto the `--cascivo-editor-syntax-*` palette.
|
|
48
48
|
|
|
49
|
+
> **Vite SSR (TanStack Start, Remix, vite-ssr, workerd)?** The editor CSS ships as side-effect
|
|
50
|
+
> imports a bare server loader can't resolve — mark `ssr: { noExternal: [/^@cascivo\//] }` (the
|
|
51
|
+
> pattern already covers `@cascivo/editor`) and import `@cascivo/editor/styles.css` once in your
|
|
52
|
+
> root entry. Full recipe:
|
|
53
|
+
> [USING-WITH-VITE-SSR.md](https://github.com/cascivo/cascivo/blob/main/docs/USING-WITH-VITE-SSR.md).
|
|
54
|
+
|
|
49
55
|
### Read-only highlighting
|
|
50
56
|
|
|
51
57
|
```tsx
|
|
@@ -112,6 +118,6 @@ pnpm add @cascivo/editor
|
|
|
112
118
|
|
|
113
119
|
---
|
|
114
120
|
|
|
115
|
-
[cascivo.com](https://cascivo.com) · [Docs](https://
|
|
121
|
+
[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
|
|
116
122
|
|
|
117
123
|
<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/editor",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Lightweight CSS-native code editor — native textarea overlay + owned zero-dependency tokenizer",
|
|
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
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"vite-plus": "^0.2.1"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
|
-
"@preact/signals-react": ">=
|
|
64
|
+
"@preact/signals-react": ">=3.0.0",
|
|
64
65
|
"react": ">=18.0.0",
|
|
65
66
|
"react-dom": ">=18.0.0"
|
|
66
67
|
},
|
package/readme.body.md
CHANGED
|
@@ -28,6 +28,12 @@ The editor is CSS-token-themed: drop it inside any element carrying a `data-them
|
|
|
28
28
|
theme stylesheet) and it picks up the same palette, radii, and typography as the rest of cascivo —
|
|
29
29
|
including the syntax colors, which map onto the `--cascivo-editor-syntax-*` palette.
|
|
30
30
|
|
|
31
|
+
> **Vite SSR (TanStack Start, Remix, vite-ssr, workerd)?** The editor CSS ships as side-effect
|
|
32
|
+
> imports a bare server loader can't resolve — mark `ssr: { noExternal: [/^@cascivo\//] }` (the
|
|
33
|
+
> pattern already covers `@cascivo/editor`) and import `@cascivo/editor/styles.css` once in your
|
|
34
|
+
> root entry. Full recipe:
|
|
35
|
+
> [USING-WITH-VITE-SSR.md](https://github.com/cascivo/cascivo/blob/main/docs/USING-WITH-VITE-SSR.md).
|
|
36
|
+
|
|
31
37
|
### Read-only highlighting
|
|
32
38
|
|
|
33
39
|
```tsx
|