@lyfie/luthor-headless 2.1.0 → 2.2.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 +27 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,13 +46,21 @@ function MyEditor() {
|
|
|
46
46
|
Luthor-Headless is designed to be lightweight with Lexical packages as **peer dependencies**.
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
+
# npm
|
|
49
50
|
npm install @lyfie/luthor-headless
|
|
51
|
+
|
|
52
|
+
# pnpm
|
|
53
|
+
pnpm add @lyfie/luthor-headless
|
|
50
54
|
```
|
|
51
55
|
|
|
52
56
|
Install the required Lexical peer dependencies:
|
|
53
57
|
|
|
54
58
|
```bash
|
|
59
|
+
# npm
|
|
55
60
|
npm install lexical @lexical/react @lexical/html @lexical/markdown @lexical/list @lexical/rich-text @lexical/selection @lexical/utils @lexical/code @lexical/link @lexical/table
|
|
61
|
+
|
|
62
|
+
# pnpm
|
|
63
|
+
pnpm add lexical @lexical/react @lexical/html @lexical/markdown @lexical/list @lexical/rich-text @lexical/selection @lexical/utils @lexical/code @lexical/link @lexical/table
|
|
56
64
|
```
|
|
57
65
|
|
|
58
66
|
> **💡 Want a simpler setup?** Check out [@lyfie/luthor](../luthor/README.md) which bundles all Lexical dependencies for you.
|
|
@@ -60,13 +68,21 @@ npm install lexical @lexical/react @lexical/html @lexical/markdown @lexical/list
|
|
|
60
68
|
### Basic Usage
|
|
61
69
|
|
|
62
70
|
```bash
|
|
71
|
+
# npm
|
|
63
72
|
npm install @lyfie/luthor-headless
|
|
73
|
+
|
|
74
|
+
# pnpm
|
|
75
|
+
pnpm add @lyfie/luthor-headless
|
|
64
76
|
```
|
|
65
77
|
|
|
66
78
|
Install the Lexical peer dependencies:
|
|
67
79
|
|
|
68
80
|
```bash
|
|
69
|
-
npm
|
|
81
|
+
# npm
|
|
82
|
+
npm install lexical @lexical/react @lexical/html @lexical/markdown @lexical/list @lexical/rich-text @lexical/selection @lexical/utils @lexical/code @lexical/link @lexical/table
|
|
83
|
+
|
|
84
|
+
# pnpm
|
|
85
|
+
pnpm add lexical @lexical/react @lexical/html @lexical/markdown @lexical/list @lexical/rich-text @lexical/selection @lexical/utils @lexical/code @lexical/link @lexical/table
|
|
70
86
|
```
|
|
71
87
|
|
|
72
88
|
```tsx
|
|
@@ -131,11 +147,13 @@ export default function App() {
|
|
|
131
147
|
For maximum control and flexibility:
|
|
132
148
|
|
|
133
149
|
```bash
|
|
134
|
-
#
|
|
150
|
+
# npm
|
|
135
151
|
npm install @lyfie/luthor-headless
|
|
136
|
-
|
|
137
|
-
# Manually install Lexical peer dependencies
|
|
138
152
|
npm install lexical @lexical/react @lexical/html @lexical/markdown @lexical/list @lexical/rich-text @lexical/selection @lexical/utils @lexical/code @lexical/link @lexical/table
|
|
153
|
+
|
|
154
|
+
# pnpm
|
|
155
|
+
pnpm add @lyfie/luthor-headless
|
|
156
|
+
pnpm add lexical @lexical/react @lexical/html @lexical/markdown @lexical/list @lexical/rich-text @lexical/selection @lexical/utils @lexical/code @lexical/link @lexical/table
|
|
139
157
|
```
|
|
140
158
|
|
|
141
159
|
**Use this when:**
|
|
@@ -149,9 +167,11 @@ npm install lexical @lexical/react @lexical/html @lexical/markdown @lexical/list
|
|
|
149
167
|
For a batteries-included experience:
|
|
150
168
|
|
|
151
169
|
```bash
|
|
152
|
-
#
|
|
153
|
-
npm install @lyfie/luthor-headless
|
|
154
|
-
|
|
170
|
+
# npm
|
|
171
|
+
npm install @lyfie/luthor-headless @lyfie/luthor
|
|
172
|
+
|
|
173
|
+
# pnpm
|
|
174
|
+
pnpm add @lyfie/luthor-headless @lyfie/luthor
|
|
155
175
|
|
|
156
176
|
# That's it! All Lexical dependencies included
|
|
157
177
|
```
|