@lexical/table 0.25.1-nightly.20250221.0 → 0.25.1-nightly.20250224.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.
Files changed (2) hide show
  1. package/README.md +8 -23
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -11,32 +11,17 @@ A plugin for handling tables in Lexical.
11
11
  ## Installation
12
12
 
13
13
  ```bash
14
- npm install @lexical/table
14
+ npm install @lexical/table @lexical/react
15
15
  ```
16
16
 
17
17
  ## Usage
18
18
 
19
- ```js
20
- import {TablePlugin} from '@lexical/table';
21
-
22
- // In your editor
23
- const editor = createEditor({
24
- // ...other config
25
- nodes: [...TablePlugin.nodes],
26
- });
27
-
28
- // In your React component
29
- function MyEditor() {
30
- return (
31
- <LexicalComposer>
32
- <div className="editor-container">
33
- <PlainTextPlugin />
34
- <TablePlugin />
35
- </div>
36
- </LexicalComposer>
37
- );
38
- }
39
- ```
19
+ See the [react-table example](https://github.com/facebook/lexical/tree/main/examples/react-table)
20
+ for a minimal example that uses this package and the
21
+ [TablePlugin](https://lexical.dev/docs/api/modules/lexical_react_LexicalTablePlugin)
22
+ from @lexical/react/LexicalTablePlugin
23
+
24
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/facebook/lexical/tree/main/examples/react-table?file=src/main.tsx)
40
25
 
41
26
  ## Features
42
27
 
@@ -64,4 +49,4 @@ This approach allows you to:
64
49
  Choose an approach that best fits your needs:
65
50
  - Flatten nested tables into a single table
66
51
  - Convert nested tables to a different format (e.g., lists or paragraphs)
67
- - Store nested content as metadata for future processing
52
+ - Store nested content as metadata for future processing
package/package.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "table"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.25.1-nightly.20250221.0",
11
+ "version": "0.25.1-nightly.20250224.0",
12
12
  "main": "LexicalTable.js",
13
13
  "types": "index.d.ts",
14
14
  "dependencies": {
15
- "@lexical/clipboard": "0.25.1-nightly.20250221.0",
16
- "@lexical/utils": "0.25.1-nightly.20250221.0",
17
- "lexical": "0.25.1-nightly.20250221.0"
15
+ "@lexical/clipboard": "0.25.1-nightly.20250224.0",
16
+ "@lexical/utils": "0.25.1-nightly.20250224.0",
17
+ "lexical": "0.25.1-nightly.20250224.0"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",