@haklex/rich-static-renderer 0.0.85 → 0.0.87

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 +20 -20
  2. package/package.json +17 -17
package/README.md CHANGED
@@ -10,26 +10,26 @@ pnpm add @haklex/rich-static-renderer
10
10
 
11
11
  ## Peer Dependencies
12
12
 
13
- `@lexical/code` is provided transitively via `lexical-code-no-prism`. Install it separately only if your app imports `@lexical/code` directly.
14
-
15
- | Package | Version |
16
- | --- | --- |
17
- | `@lexical/extension` | `^0.41.0` |
18
- | `@lexical/link` | `^0.41.0` |
19
- | `@lexical/list` | `^0.41.0` |
20
- | `@lexical/rich-text` | `^0.41.0` |
21
- | `@lexical/table` | `^0.41.0` |
22
- | `lexical` | `^0.41.0` |
23
- | `react` | `>=19` |
24
- | `react-dom` | `>=19` |
13
+ This package depends on `@lexical/code-core` (Lexical 0.42+ code blocks, no Prism). Add `@lexical/code-core` yourself only if your app imports it directly.
14
+
15
+ | Package | Version |
16
+ | -------------------- | --------- |
17
+ | `@lexical/extension` | `^0.42.0` |
18
+ | `@lexical/link` | `^0.42.0` |
19
+ | `@lexical/list` | `^0.42.0` |
20
+ | `@lexical/rich-text` | `^0.42.0` |
21
+ | `@lexical/table` | `^0.42.0` |
22
+ | `lexical` | `^0.42.0` |
23
+ | `react` | `>=19` |
24
+ | `react-dom` | `>=19` |
25
25
 
26
26
  ## Usage
27
27
 
28
28
  ```tsx
29
- import { RichRenderer } from '@haklex/rich-static-renderer'
30
- import '@haklex/rich-editor/style.css'
29
+ import { RichRenderer } from '@haklex/rich-static-renderer';
30
+ import '@haklex/rich-editor/style.css';
31
31
 
32
- <RichRenderer value={editorState} variant="article" theme="light" />
32
+ <RichRenderer value={editorState} variant="article" theme="light" />;
33
33
  ```
34
34
 
35
35
  The `value` prop accepts a Lexical `SerializedEditorState` JSON object. The renderer parses it into React elements without instantiating a Lexical editor, making it suitable for SSR and static rendering.
@@ -38,15 +38,15 @@ The `value` prop accepts a Lexical `SerializedEditorState` JSON object. The rend
38
38
 
39
39
  ### Components
40
40
 
41
- | Export | Description |
42
- | --- | --- |
41
+ | Export | Description |
42
+ | -------------- | ------------------------------ |
43
43
  | `RichRenderer` | Main static renderer component |
44
44
 
45
45
  ### Types
46
46
 
47
- | Export | Description |
48
- | --- | --- |
49
- | `RichRendererProps` | Props for `RichRenderer` |
47
+ | Export | Description |
48
+ | --------------------- | ---------------------------------------- |
49
+ | `RichRendererProps` | Props for `RichRenderer` |
50
50
  | `BuiltinNodeRenderer` | Type for builtin node renderer functions |
51
51
 
52
52
  ## Part of Haklex
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-static-renderer",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "description": "Headless SSR engine for Lexical rich content",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,22 +20,22 @@
20
20
  "dist"
21
21
  ],
22
22
  "dependencies": {
23
- "@lexical/code": "npm:lexical-code-no-prism@0.41.0",
24
- "@lexical/headless": "^0.41.0",
23
+ "@lexical/code-core": "^0.42.0",
24
+ "@lexical/headless": "^0.42.0",
25
25
  "lucide-react": "^0.577.0",
26
- "@haklex/rich-editor": "0.0.85",
27
- "@haklex/rich-style-token": "0.0.85"
26
+ "@haklex/rich-editor": "0.0.87",
27
+ "@haklex/rich-style-token": "0.0.87"
28
28
  },
29
29
  "devDependencies": {
30
- "@lexical/extension": "^0.41.0",
31
- "@lexical/link": "^0.41.0",
32
- "@lexical/list": "^0.41.0",
33
- "@lexical/rich-text": "^0.41.0",
34
- "@lexical/table": "^0.41.0",
30
+ "@lexical/extension": "^0.42.0",
31
+ "@lexical/link": "^0.42.0",
32
+ "@lexical/list": "^0.42.0",
33
+ "@lexical/rich-text": "^0.42.0",
34
+ "@lexical/table": "^0.42.0",
35
35
  "@types/react": "^19.2.14",
36
36
  "@vanilla-extract/css": "^1.18.0",
37
37
  "@vanilla-extract/vite-plugin": "^5.1.4",
38
- "lexical": "^0.41.0",
38
+ "lexical": "^0.42.0",
39
39
  "react": "^19.2.4",
40
40
  "react-dom": "^19.2.4",
41
41
  "typescript": "^5.9.3",
@@ -43,12 +43,12 @@
43
43
  "vite-plugin-dts": "^4.5.4"
44
44
  },
45
45
  "peerDependencies": {
46
- "@lexical/extension": "^0.41.0",
47
- "@lexical/link": "^0.41.0",
48
- "@lexical/list": "^0.41.0",
49
- "@lexical/rich-text": "^0.41.0",
50
- "@lexical/table": "^0.41.0",
51
- "lexical": "^0.41.0",
46
+ "@lexical/extension": "^0.42.0",
47
+ "@lexical/link": "^0.42.0",
48
+ "@lexical/list": "^0.42.0",
49
+ "@lexical/rich-text": "^0.42.0",
50
+ "@lexical/table": "^0.42.0",
51
+ "lexical": "^0.42.0",
52
52
  "react": ">=19",
53
53
  "react-dom": ">=19"
54
54
  },