@lexical/table
Advanced tools
Comparing version 0.25.1-nightly.20250221.0 to 0.25.1-nightly.20250224.0
@@ -11,9 +11,9 @@ { | ||
"license": "MIT", | ||
"version": "0.25.1-nightly.20250221.0", | ||
"version": "0.25.1-nightly.20250224.0", | ||
"main": "LexicalTable.js", | ||
"types": "index.d.ts", | ||
"dependencies": { | ||
"@lexical/clipboard": "0.25.1-nightly.20250221.0", | ||
"@lexical/utils": "0.25.1-nightly.20250221.0", | ||
"lexical": "0.25.1-nightly.20250221.0" | ||
"@lexical/clipboard": "0.25.1-nightly.20250224.0", | ||
"@lexical/utils": "0.25.1-nightly.20250224.0", | ||
"lexical": "0.25.1-nightly.20250224.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -14,3 +14,3 @@ # `@lexical/table` | ||
```bash | ||
npm install @lexical/table | ||
npm install @lexical/table @lexical/react | ||
``` | ||
@@ -20,24 +20,9 @@ | ||
```js | ||
import {TablePlugin} from '@lexical/table'; | ||
See the [react-table example](https://github.com/facebook/lexical/tree/main/examples/react-table) | ||
for a minimal example that uses this package and the | ||
[TablePlugin](https://lexical.dev/docs/api/modules/lexical_react_LexicalTablePlugin) | ||
from @lexical/react/LexicalTablePlugin | ||
// In your editor | ||
const editor = createEditor({ | ||
// ...other config | ||
nodes: [...TablePlugin.nodes], | ||
}); | ||
[](https://stackblitz.com/github/facebook/lexical/tree/main/examples/react-table?file=src/main.tsx) | ||
// In your React component | ||
function MyEditor() { | ||
return ( | ||
<LexicalComposer> | ||
<div className="editor-container"> | ||
<PlainTextPlugin /> | ||
<TablePlugin /> | ||
</div> | ||
</LexicalComposer> | ||
); | ||
} | ||
``` | ||
## Features | ||
@@ -69,2 +54,2 @@ | ||
- Convert nested tables to a different format (e.g., lists or paragraphs) | ||
- Store nested content as metadata for future processing | ||
- Store nested content as metadata for future processing |
445626
288
212
53
23
47
+ Added@lexical/clipboard@0.25.1-nightly.20250224.0(transitive)
+ Added@lexical/html@0.25.1-nightly.20250224.0(transitive)
+ Added@lexical/list@0.25.1-nightly.20250224.0(transitive)
+ Added@lexical/selection@0.25.1-nightly.20250224.0(transitive)
+ Added@lexical/utils@0.25.1-nightly.20250224.0(transitive)
+ Addedlexical@0.25.1-nightly.20250224.0(transitive)
- Removed@lexical/clipboard@0.25.1-nightly.20250221.0(transitive)
- Removed@lexical/html@0.25.1-nightly.20250221.0(transitive)
- Removed@lexical/list@0.25.1-nightly.20250221.0(transitive)
- Removed@lexical/selection@0.25.1-nightly.20250221.0(transitive)
- Removed@lexical/utils@0.25.1-nightly.20250221.0(transitive)
- Removedlexical@0.25.1-nightly.20250221.0(transitive)