@haklex/rich-plugin-table 0.23.0 → 0.25.0
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 +18 -21
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,23 +10,20 @@ pnpm add @haklex/rich-plugin-table
|
|
|
10
10
|
|
|
11
11
|
## Peer Dependencies
|
|
12
12
|
|
|
13
|
-
| Package
|
|
14
|
-
|
|
|
15
|
-
| `@lexical/react` | `^0.
|
|
16
|
-
| `@lexical/table` | `^0.
|
|
17
|
-
| `lexical`
|
|
18
|
-
| `lucide-react`
|
|
19
|
-
| `react`
|
|
20
|
-
| `react-dom`
|
|
13
|
+
| Package | Version |
|
|
14
|
+
| ---------------- | --------- |
|
|
15
|
+
| `@lexical/react` | `^0.45.0` |
|
|
16
|
+
| `@lexical/table` | `^0.45.0` |
|
|
17
|
+
| `lexical` | `^0.45.0` |
|
|
18
|
+
| `lucide-react` | `^1.0.0` |
|
|
19
|
+
| `react` | `>= 19` |
|
|
20
|
+
| `react-dom` | `>= 19` |
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
23
23
|
|
|
24
24
|
```tsx
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
TableRowColumnHandlesPlugin,
|
|
28
|
-
} from '@haklex/rich-plugin-table'
|
|
29
|
-
import '@haklex/rich-plugin-table/style.css'
|
|
25
|
+
import { TableCellResizerPlugin, TableRowColumnHandlesPlugin } from '@haklex/rich-plugin-table';
|
|
26
|
+
import '@haklex/rich-plugin-table/style.css';
|
|
30
27
|
|
|
31
28
|
function Editor() {
|
|
32
29
|
return (
|
|
@@ -34,7 +31,7 @@ function Editor() {
|
|
|
34
31
|
<TableCellResizerPlugin />
|
|
35
32
|
<TableRowColumnHandlesPlugin />
|
|
36
33
|
</RichEditor>
|
|
37
|
-
)
|
|
34
|
+
);
|
|
38
35
|
}
|
|
39
36
|
```
|
|
40
37
|
|
|
@@ -45,17 +42,17 @@ This plugin provides two complementary components:
|
|
|
45
42
|
|
|
46
43
|
## Exports
|
|
47
44
|
|
|
48
|
-
| Export
|
|
49
|
-
|
|
|
50
|
-
| `TableCellResizerPlugin`
|
|
45
|
+
| Export | Type | Description |
|
|
46
|
+
| ----------------------------- | --------- | ---------------------------------------------- |
|
|
47
|
+
| `TableCellResizerPlugin` | Component | Cell border drag-to-resize plugin |
|
|
51
48
|
| `TableRowColumnHandlesPlugin` | Component | Row/column insert, delete, and reorder handles |
|
|
52
49
|
|
|
53
50
|
## Sub-path Exports
|
|
54
51
|
|
|
55
|
-
| Path
|
|
56
|
-
|
|
|
57
|
-
| `@haklex/rich-plugin-table`
|
|
58
|
-
| `@haklex/rich-plugin-table/style.css` | Stylesheet
|
|
52
|
+
| Path | Description |
|
|
53
|
+
| ------------------------------------- | ----------------- |
|
|
54
|
+
| `@haklex/rich-plugin-table` | Plugin components |
|
|
55
|
+
| `@haklex/rich-plugin-table/style.css` | Stylesheet |
|
|
59
56
|
|
|
60
57
|
## Part of Haklex
|
|
61
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-plugin-table",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Table editing plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"lucide-react": "^1.0.0",
|
|
43
43
|
"react": ">=19",
|
|
44
44
|
"react-dom": ">=19",
|
|
45
|
-
"@haklex/rich-editor-ui": "0.
|
|
46
|
-
"@haklex/rich-style-token": "0.
|
|
45
|
+
"@haklex/rich-editor-ui": "0.25.0",
|
|
46
|
+
"@haklex/rich-style-token": "0.25.0"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|