@coldsmirk/inkstone-react 0.8.2 → 0.8.3

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -52,7 +52,7 @@ import { CodeMirrorEditor } from "@coldsmirk/inkstone-react";
52
52
 
53
53
  A controlled CM6 editor: create-once view, external value changes reconcile without resetting cursor/undo, catppuccin latte/macchiato flipped by `dark`, and restyled chrome (completion tooltip with a currentColor SVG icon set, themed scrollbars, real search-panel metrics).
54
54
 
55
- - **`language`** lazily imports the matching grammar as its own chunk. Includes the MiniJinja family — `minijinja` standalone or `minijinja-<host>` mixed variants (`minijinja-yaml`, `-json`, `-html`, `-sql`, …).
55
+ - **`language`** lazily imports the matching grammar as its own chunk — the official Lezer parsers plus the `@codemirror/legacy-modes` catalog (`shell`, `dockerfile`, `ini` / `env`, `toml`, `nginx`, …). Includes the MiniJinja family — `minijinja` standalone or `minijinja-<host>` mixed variants (`minijinja-yaml`, `-json`, `-html`, `-sql`, `-shell`, `-dockerfile`, …).
56
56
  - **`context`** — pass `{ schema }` (JSON Schema) or `{ sample }` (representative value) and MiniJinja completion suggests the render context's variables with member access. Memoize/hoist it — a fresh identity each render re-normalizes.
57
57
  - **`search`** (opt-in) adds the standard search keymap and panel; `locale="zh-cn"` localizes it per editor.
58
58
  - **Metrics & layout** — `fontSize` 14 and `lineHeight` 1.6 by default; `height` / `width` size the editor; `lineWrapping`, `showLineNumbers`, `folding` are opt-in.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coldsmirk/inkstone-react",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Drop-in React code editors: a preconfigured Monaco <MonacoEditor> (offline workers, Shiki catppuccin themes, dark switching, opt-in zh-CN UI) and a controlled CodeMirror 6 <CodeMirrorEditor> (catppuccin themes, dark switching, sizing).",
5
5
  "keywords": [
6
6
  "react",
@@ -47,9 +47,9 @@
47
47
  "@catppuccin/palette": "^1.8.0",
48
48
  "@monaco-editor/react": "^4.7.0",
49
49
  "@shikijs/monaco": "^4.3.1",
50
- "@coldsmirk/inkstone-codemirror": "^0.8.2",
51
- "@coldsmirk/inkstone-core": "^0.8.2",
52
- "@coldsmirk/inkstone-monaco": "^0.8.2"
50
+ "@coldsmirk/inkstone-codemirror": "^0.8.3",
51
+ "@coldsmirk/inkstone-core": "^0.8.3",
52
+ "@coldsmirk/inkstone-monaco": "^0.8.3"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@codemirror/autocomplete": "^6.20.3",