@payloadcms/richtext-lexical 0.1.0-beta.0 → 0.1.0-beta.2

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 (71) hide show
  1. package/dist/field/features/Blocks/afterReadPromise.d.ts +5 -0
  2. package/dist/field/features/Blocks/afterReadPromise.d.ts.map +1 -0
  3. package/dist/field/features/Blocks/afterReadPromise.js +52 -0
  4. package/dist/field/features/Blocks/component/BlockContent.d.ts +14 -0
  5. package/dist/field/features/Blocks/component/BlockContent.d.ts.map +1 -0
  6. package/dist/field/features/Blocks/component/BlockContent.js +163 -0
  7. package/dist/field/features/Blocks/component/index.d.ts.map +1 -1
  8. package/dist/field/features/Blocks/component/index.js +21 -104
  9. package/dist/field/features/Blocks/component/index.scss +148 -0
  10. package/dist/field/features/Blocks/drawer/index.d.ts.map +1 -1
  11. package/dist/field/features/Blocks/drawer/index.js +9 -7
  12. package/dist/field/features/Blocks/drawer/index.scss +1 -0
  13. package/dist/field/features/Blocks/index.d.ts.map +1 -1
  14. package/dist/field/features/Blocks/index.js +36 -18
  15. package/dist/field/features/Blocks/index.scss +1 -0
  16. package/dist/field/features/Blocks/nodes/BlocksNode.d.ts +5 -4
  17. package/dist/field/features/Blocks/nodes/BlocksNode.d.ts.map +1 -1
  18. package/dist/field/features/Blocks/nodes/BlocksNode.js +1 -1
  19. package/dist/field/features/Blocks/plugin/index.js +3 -3
  20. package/dist/field/features/Link/drawer/index.scss +50 -0
  21. package/dist/field/features/Link/index.scss +1 -0
  22. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  23. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/index.js +9 -4
  24. package/dist/field/features/Link/plugins/floatingLinkEditor/index.scss +79 -0
  25. package/dist/field/features/Relationship/drawer/index.scss +1 -0
  26. package/dist/field/features/Relationship/index.scss +1 -0
  27. package/dist/field/features/Relationship/nodes/components/RelationshipComponent.d.ts.map +1 -1
  28. package/dist/field/features/Relationship/nodes/components/RelationshipComponent.js +2 -1
  29. package/dist/field/features/Relationship/nodes/components/index.scss +97 -0
  30. package/dist/field/features/Upload/component/index.scss +152 -0
  31. package/dist/field/features/Upload/drawer/index.scss +1 -0
  32. package/dist/field/features/Upload/index.scss +1 -0
  33. package/dist/field/features/Upload/nodes/UploadNode.d.ts.map +1 -1
  34. package/dist/field/features/Upload/nodes/UploadNode.js +1 -1
  35. package/dist/field/features/align/index.scss +4 -0
  36. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.scss +4 -0
  37. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.scss +4 -0
  38. package/dist/field/features/debug/TreeView/index.scss +78 -0
  39. package/dist/field/features/format/common/index.scss +4 -0
  40. package/dist/field/features/indent/index.scss +4 -0
  41. package/dist/field/index.scss +1 -0
  42. package/dist/field/lexical/LexicalEditor.scss +34 -0
  43. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.scss +39 -0
  44. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.scss +100 -0
  45. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.scss +57 -0
  46. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +7 -0
  47. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  48. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +8 -3
  49. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +2 -2
  50. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -1
  51. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +19 -11
  52. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  53. package/dist/field/lexical/plugins/SlashMenu/index.js +14 -2
  54. package/dist/field/lexical/plugins/SlashMenu/index.scss +56 -0
  55. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +4 -3
  56. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +35 -0
  57. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +50 -0
  58. package/dist/field/lexical/theme/EditorTheme.scss +509 -0
  59. package/dist/field/lexical/ui/ContentEditable.scss +21 -0
  60. package/dist/field/lexical/ui/icons/Add/index.svg +4 -0
  61. package/dist/field/lexical/ui/icons/Caret/index.svg +3 -0
  62. package/dist/field/lexical/ui/icons/DraggableBlock/index.svg +9 -0
  63. package/dist/field/lexical/ui/icons/Edit/index.svg +10 -0
  64. package/dist/field/lexical/ui/icons/Remove/index.svg +4 -0
  65. package/dist/index.d.ts +19 -5
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +38 -23
  68. package/dist/populate/recurseNestedFields.d.ts.map +1 -1
  69. package/dist/populate/recurseNestedFields.js +3 -1
  70. package/package.json +6 -4
  71. package/src/index.ts +21 -5
@@ -0,0 +1,509 @@
1
+ @import 'payload/scss';
2
+
3
+ .LexicalEditorTheme {
4
+ &__ltr {
5
+ text-align: left;
6
+ }
7
+ &__ltr {
8
+ text-align: left;
9
+ }
10
+
11
+ &__rtl {
12
+ text-align: right;
13
+ }
14
+
15
+ &__paragraph {
16
+ margin: 0 0 1.5em;
17
+ position: relative;
18
+ }
19
+
20
+ &__quote {
21
+ margin: 0;
22
+ margin-left: 20px;
23
+ margin-bottom: 10px;
24
+ font-size: 15px;
25
+ color: rgb(101, 103, 107);
26
+ border-left-color: rgb(206, 208, 212);
27
+ border-left-width: 4px;
28
+ border-left-style: solid;
29
+ padding-left: 16px;
30
+ }
31
+
32
+ &__h1 {
33
+ font-size: 2.8rem;
34
+ line-height: 1.125;
35
+ color: rgb(5, 5, 5);
36
+ font-weight: 500;
37
+ margin-top: 2rem;
38
+ margin-bottom: 1rem;
39
+ }
40
+
41
+ &__h2 {
42
+ font-size: 2rem;
43
+ color: rgb(5, 5, 5);
44
+ font-weight: 700;
45
+ text-transform: uppercase;
46
+ margin-top: 1.8rem;
47
+ margin-bottom: 1rem;
48
+ }
49
+
50
+ &__h3 {
51
+ font-size: 1.4rem;
52
+ color: rgb(101, 103, 107);
53
+ font-weight: 700;
54
+ text-transform: uppercase;
55
+ margin-top: 1.4rem;
56
+ margin-bottom: 1rem;
57
+ }
58
+
59
+ &__indent {
60
+ --lexical-indent-base-value: 40px;
61
+ }
62
+
63
+ &__textBold {
64
+ font-weight: bold;
65
+ }
66
+
67
+ &__textItalic {
68
+ font-style: italic;
69
+ }
70
+
71
+ &__textUnderline {
72
+ text-decoration: underline;
73
+ }
74
+
75
+ &__textStrikethrough {
76
+ text-decoration: line-through;
77
+ }
78
+
79
+ &__textUnderlineStrikethrough {
80
+ text-decoration: underline line-through;
81
+ }
82
+
83
+ &__textSubscript {
84
+ font-size: 0.8em;
85
+ vertical-align: sub !important;
86
+ }
87
+
88
+ &__textSuperscript {
89
+ font-size: 0.8em;
90
+ vertical-align: super;
91
+ }
92
+
93
+ &__textCode {
94
+ background-color: rgb(240, 242, 245);
95
+ padding: 1px 0.25rem;
96
+ font-family: Menlo, Consolas, Monaco, monospace;
97
+ font-size: 94%;
98
+ }
99
+
100
+ &__hashtag {
101
+ background-color: rgba(88, 144, 255, 0.15);
102
+ border-bottom: 1px solid rgba(88, 144, 255, 0.3);
103
+ }
104
+
105
+ .ContentEditable__root &__link {
106
+ pointer-events: none;
107
+ }
108
+
109
+ &__link {
110
+ color: var(--color-blue-600);
111
+ text-decoration: none;
112
+ border-bottom: 1px dotted;
113
+ }
114
+
115
+ &__code {
116
+ /*background-color: rgb(240, 242, 245);*/
117
+ font-family: Menlo, Consolas, Monaco, monospace;
118
+ display: block;
119
+ padding: 8px 8px 8px 52px;
120
+ line-height: 1.53;
121
+ font-size: 13px;
122
+ margin: 0;
123
+ margin-top: 8px;
124
+ margin-bottom: 8px;
125
+ tab-size: 2;
126
+ /* white-space: pre; */
127
+ overflow-x: auto;
128
+ position: relative;
129
+ }
130
+
131
+ &__code:before {
132
+ content: attr(data-gutter);
133
+ position: absolute;
134
+ /*background-color: #eee;*/
135
+ left: 0;
136
+ top: 0;
137
+ border-right: 1px solid #ccc;
138
+ padding: 8px;
139
+ color: #777;
140
+ white-space: pre-wrap;
141
+ text-align: right;
142
+ min-width: 25px;
143
+ }
144
+
145
+ &__table {
146
+ border-collapse: collapse;
147
+ border-spacing: 0;
148
+ max-width: 100%;
149
+ overflow-y: scroll;
150
+ table-layout: fixed;
151
+ width: calc(100% - 25px);
152
+ margin: 30px 0;
153
+ }
154
+
155
+ &__tableSelected {
156
+ outline: 2px solid rgb(60, 132, 244);
157
+ }
158
+
159
+ &__tableCell {
160
+ border: 1px solid #bbb;
161
+ min-width: 75px;
162
+ vertical-align: top;
163
+ text-align: start;
164
+ padding: 6px 8px;
165
+ position: relative;
166
+ cursor: default;
167
+ outline: none;
168
+ }
169
+
170
+ &__tableCellSortedIndicator {
171
+ display: block;
172
+ opacity: 0.5;
173
+ position: absolute;
174
+ bottom: 0;
175
+ left: 0;
176
+ width: 100%;
177
+ height: 4px;
178
+ background-color: #999;
179
+ }
180
+
181
+ &__tableCellResizer {
182
+ position: absolute;
183
+ right: -4px;
184
+ height: 100%;
185
+ width: 8px;
186
+ cursor: ew-resize;
187
+ z-index: 10;
188
+ top: 0;
189
+ }
190
+
191
+ &__tableCellHeader {
192
+ background-color: #f2f3f5;
193
+ text-align: start;
194
+ }
195
+
196
+ &__tableCellSelected {
197
+ background-color: #c9dbf0;
198
+ }
199
+
200
+ &__tableCellPrimarySelected {
201
+ border: 2px solid rgb(60, 132, 244);
202
+ display: block;
203
+ height: calc(100% - 2px);
204
+ position: absolute;
205
+ width: calc(100% - 2px);
206
+ left: -1px;
207
+ top: -1px;
208
+ z-index: 2;
209
+ }
210
+
211
+ &__tableCellEditing {
212
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
213
+ border-radius: 3px;
214
+ }
215
+
216
+ &__tableAddColumns {
217
+ position: absolute;
218
+ top: 0;
219
+ width: 20px;
220
+ background-color: #eee;
221
+ height: 100%;
222
+ right: 0;
223
+ animation: table-controls 0.2s ease;
224
+ border: 0;
225
+ cursor: pointer;
226
+ }
227
+
228
+ &__tableAddColumns:hover {
229
+ background-color: #c9dbf0;
230
+ }
231
+
232
+ &__tableAddRows {
233
+ position: absolute;
234
+ bottom: -25px;
235
+ width: calc(100% - 25px);
236
+ background-color: #eee;
237
+ height: 20px;
238
+ left: 0;
239
+ animation: table-controls 0.2s ease;
240
+ border: 0;
241
+ cursor: pointer;
242
+ }
243
+
244
+ &__tableAddRows:hover {
245
+ background-color: #c9dbf0;
246
+ }
247
+
248
+ @keyframes table-controls {
249
+ 0% {
250
+ opacity: 0;
251
+ }
252
+
253
+ 100% {
254
+ opacity: 1;
255
+ }
256
+ }
257
+
258
+ &__tableCellResizeRuler {
259
+ display: block;
260
+ position: absolute;
261
+ width: 1px;
262
+ background-color: rgb(60, 132, 244);
263
+ height: 100%;
264
+ top: 0;
265
+ }
266
+
267
+ &__tableCellActionButtonContainer {
268
+ display: block;
269
+ right: 5px;
270
+ top: 6px;
271
+ position: absolute;
272
+ z-index: 4;
273
+ width: 20px;
274
+ height: 20px;
275
+ }
276
+
277
+ &__tableCellActionButton {
278
+ background-color: #eee;
279
+ display: block;
280
+ border: 0;
281
+ border-radius: 20px;
282
+ width: 20px;
283
+ height: 20px;
284
+ color: #222;
285
+ cursor: pointer;
286
+ }
287
+
288
+ &__tableCellActionButton:hover {
289
+ background-color: #ddd;
290
+ }
291
+
292
+ &__characterLimit {
293
+ display: inline;
294
+ background-color: #ffbbbb !important;
295
+ }
296
+
297
+ &__ol1 {
298
+ padding: 0;
299
+ margin: 0;
300
+ list-style-position: inside;
301
+ margin: 0 0 1.5em;
302
+ }
303
+
304
+ &__ol2 {
305
+ padding: 0;
306
+ margin: 0;
307
+ list-style-type: upper-alpha;
308
+ list-style-position: inside;
309
+ }
310
+
311
+ &__ol3 {
312
+ padding: 0;
313
+ margin: 0;
314
+ list-style-type: lower-alpha;
315
+ list-style-position: inside;
316
+ }
317
+
318
+ &__ol4 {
319
+ padding: 0;
320
+ margin: 0;
321
+ list-style-type: upper-roman;
322
+ list-style-position: inside;
323
+ }
324
+
325
+ &__ol5 {
326
+ padding: 0;
327
+ margin: 0;
328
+ list-style-type: lower-roman;
329
+ list-style-position: inside;
330
+ }
331
+
332
+ &__ul {
333
+ padding: 0;
334
+ margin: 0 0 1.5em;
335
+ list-style-position: inside;
336
+ }
337
+
338
+ &__listItem {
339
+ margin: 0 0px 0.4em 16px;
340
+ }
341
+
342
+ &__listItemChecked,
343
+ &__listItemUnchecked {
344
+ position: relative;
345
+ margin-left: 8px;
346
+ margin-right: 8px;
347
+ padding-left: 24px;
348
+ padding-right: 24px;
349
+ list-style-type: none;
350
+ outline: none;
351
+ }
352
+
353
+ &__listItemChecked {
354
+ text-decoration: line-through;
355
+ }
356
+
357
+ &__listItemUnchecked:before,
358
+ &__listItemChecked:before {
359
+ content: '';
360
+ width: 16px;
361
+ height: 16px;
362
+ top: 2px;
363
+ left: 0;
364
+ cursor: pointer;
365
+ display: block;
366
+ background-size: cover;
367
+ position: absolute;
368
+ }
369
+
370
+ &__listItemUnchecked[dir='rtl']:before,
371
+ &__listItemChecked[dir='rtl']:before {
372
+ left: auto;
373
+ right: 0;
374
+ }
375
+
376
+ &__listItemUnchecked:focus:before,
377
+ &__listItemChecked:focus:before {
378
+ box-shadow: 0 0 0 2px #a6cdfe;
379
+ border-radius: 2px;
380
+ }
381
+
382
+ &__listItemUnchecked:before {
383
+ border: 1px solid #999;
384
+ border-radius: 2px;
385
+ }
386
+
387
+ &__listItemChecked:before {
388
+ border: 1px solid rgb(61, 135, 245);
389
+ border-radius: 2px;
390
+ background-color: #3d87f5;
391
+ background-repeat: no-repeat;
392
+ }
393
+
394
+ &__listItemChecked:after {
395
+ content: '';
396
+ cursor: pointer;
397
+ border-color: #fff;
398
+ border-style: solid;
399
+ position: absolute;
400
+ display: block;
401
+ top: 6px;
402
+ width: 3px;
403
+ left: 7px;
404
+ right: 7px;
405
+ height: 6px;
406
+ transform: rotate(45deg);
407
+ border-width: 0 2px 2px 0;
408
+ }
409
+
410
+ &__nestedListItem {
411
+ list-style-type: none;
412
+ }
413
+
414
+ &__nestedListItem:before,
415
+ &__nestedListItem:after {
416
+ display: none;
417
+ }
418
+
419
+ &__tokenComment {
420
+ color: slategray;
421
+ }
422
+
423
+ &__tokenPunctuation {
424
+ color: #999;
425
+ }
426
+
427
+ &__tokenProperty {
428
+ color: #905;
429
+ }
430
+
431
+ &__tokenSelector {
432
+ color: #690;
433
+ }
434
+
435
+ &__tokenOperator {
436
+ color: #9a6e3a;
437
+ }
438
+
439
+ &__tokenAttr {
440
+ color: #07a;
441
+ }
442
+
443
+ &__tokenVariable {
444
+ color: #e90;
445
+ }
446
+
447
+ &__tokenFunction {
448
+ color: #dd4a68;
449
+ }
450
+
451
+ &__mark {
452
+ background: rgba(255, 212, 0, 0.14);
453
+ border-bottom: 2px solid rgba(255, 212, 0, 0.3);
454
+ padding-bottom: 2px;
455
+ }
456
+
457
+ &__markOverlap {
458
+ background: rgba(255, 212, 0, 0.3);
459
+ border-bottom: 2px solid rgba(255, 212, 0, 0.7);
460
+ }
461
+
462
+ &__mark.selected {
463
+ background: rgba(255, 212, 0, 0.5);
464
+ border-bottom: 2px solid rgba(255, 212, 0, 1);
465
+ }
466
+
467
+ &__markOverlap.selected {
468
+ background: rgba(255, 212, 0, 0.7);
469
+ border-bottom: 2px solid rgba(255, 212, 0, 0.7);
470
+ }
471
+
472
+ &__embedBlock {
473
+ user-select: none;
474
+ }
475
+
476
+ &__embedBlockFocus {
477
+ outline: 2px solid rgb(60, 132, 244);
478
+ }
479
+ }
480
+
481
+ html[data-theme='dark'] {
482
+ .LexicalEditorTheme {
483
+ &__h1,
484
+ &__h2 {
485
+ color: rgb(255, 255, 255);
486
+ }
487
+
488
+ &__h3 {
489
+ color: rgb(148, 151, 157);
490
+ }
491
+
492
+ &__link {
493
+ color: var(--color-blue-600);
494
+ }
495
+
496
+ &__tableCellHeader {
497
+ background-color: var(--theme-elevation-50);
498
+ }
499
+
500
+ &__quote {
501
+ color: rgb(193, 198, 206);
502
+ border-left-color: var(--theme-elevation-150);
503
+ }
504
+
505
+ &__textCode {
506
+ background-color: rgb(0, 0, 0);
507
+ }
508
+ }
509
+ }
@@ -0,0 +1,21 @@
1
+ .ContentEditable__root {
2
+ border: 0;
3
+ font-size: 15px;
4
+ display: block;
5
+ position: relative;
6
+ tab-size: 1;
7
+ outline: 0;
8
+ padding-top: 8px;
9
+
10
+ & > * {
11
+ transition: transform 0.2s ease-in-out;
12
+ will-change: transform;
13
+ }
14
+ }
15
+
16
+ @media (max-width: 1025px) {
17
+ .ContentEditable__root {
18
+ padding-left: 0px;
19
+ padding-right: 0px;
20
+ }
21
+ }
@@ -0,0 +1,4 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M6 10H14" stroke="#000000" />
3
+ <path d="M10 14L10 6" stroke="#000000" />
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1.25 3.5L3.75 1L6.25 3.5" stroke="#000000" />
3
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="19" height="26" viewBox="0 0 19 26" fill="#000000"
2
+ xmlns="http://www.w3.org/2000/svg">
3
+ <circle cx="7.375" cy="9" r="1" fill="#000000" />
4
+ <circle cx="11.375" cy="9" r="1" fill="#000000" />
5
+ <circle cx="7.375" cy="13" r="1" fill="#000000" />
6
+ <circle cx="11.375" cy="13" r="1" fill="#000000" />
7
+ <circle cx="7.375" cy="17" r="1" fill="#000000" />
8
+ <circle cx="11.375" cy="17" r="1" fill="#000000" />
9
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M14.2293 14.6187H5.55926V5.96867H9.84926V4.38867H3.98926V16.1887H15.8093V10.2887H14.2293V14.6187Z"
4
+ fill="currentColor" />
5
+ <path
6
+ d="M13.6188 5.08887L14.7288 6.19887L9.96885 10.9589L8.81885 10.9989L8.85885 9.84887L13.6188 5.08887Z"
7
+ fill="currentColor" />
8
+ <path d="M16.0108 4.92778L14.8936 3.81055L14.0804 4.62372L15.1976 5.74095L16.0108 4.92778Z"
9
+ fill="currentColor" />
10
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15 5L5.00021 15" stroke="currentColor" stroke-width="1.5" />
3
+ <path d="M5.00049 5L15.0003 15" stroke="currentColor" stroke-width="1.5" />
4
+ </svg>
package/dist/index.d.ts CHANGED
@@ -1,16 +1,20 @@
1
1
  import type { RichTextAdapter } from 'payload/types';
2
- import type { EditorConfig } from './field/lexical/config/types';
2
+ import type { EditorConfig, SanitizedEditorConfig } from './field/lexical/config/types';
3
3
  import type { AdapterProps } from './types';
4
- export declare function createLexical({ userConfig, }: {
4
+ import { RichTextCell } from './cell';
5
+ import { RichTextField } from './field';
6
+ export declare function lexicalEditor({ userConfig, }: {
5
7
  userConfig?: (defaultEditorConfig: EditorConfig) => EditorConfig;
6
8
  }): RichTextAdapter<AdapterProps>;
7
9
  export { BlockQuoteFeature } from './field/features/BlockQuote';
8
10
  export { BlocksFeature } from './field/features/Blocks';
9
11
  export { HeadingFeature } from './field/features/Heading';
10
- export { LinkFeature, LinkFeatureProps } from './field/features/Link';
12
+ export { LinkFeature } from './field/features/Link';
13
+ export type { LinkFeatureProps } from './field/features/Link';
11
14
  export { ParagraphFeature } from './field/features/Paragraph';
12
15
  export { RelationshipFeature } from './field/features/Relationship';
13
- export { UploadFeature, UploadFeatureProps } from './field/features/Upload';
16
+ export { UploadFeature } from './field/features/Upload';
17
+ export type { UploadFeatureProps } from './field/features/Upload';
14
18
  export { AlignFeature } from './field/features/align';
15
19
  export { TextDropdownSectionWithEntries } from './field/features/common/floatingSelectToolbarTextDropdownSection';
16
20
  export { TreeviewFeature } from './field/features/debug/TreeView';
@@ -26,5 +30,15 @@ export { IndentFeature } from './field/features/indent';
26
30
  export { CheckListFeature } from './field/features/lists/CheckList';
27
31
  export { OrderedListFeature } from './field/features/lists/OrderedList';
28
32
  export { UnoderedListFeature } from './field/features/lists/UnorderedList';
29
- export { Feature, FeatureProvider, FeatureProviderMap, ResolvedFeature, ResolvedFeatureMap, SanitizedFeatures, } from './field/features/types';
33
+ export type { Feature, FeatureProvider, FeatureProviderMap, ResolvedFeature, ResolvedFeatureMap, SanitizedFeatures, } from './field/features/types';
34
+ export { EditorConfigProvider, useEditorConfigContext, } from './field/lexical/config/EditorConfigProvider';
35
+ export { defaultEditorConfig, defaultSanitizedEditorConfig } from './field/lexical/config/default';
36
+ export { loadFeatures, sortFeaturesForOptimalLoading } from './field/lexical/config/loader';
37
+ export { sanitizeEditorConfig, sanitizeFeatures } from './field/lexical/config/sanitize';
38
+ export type { EditorConfig, SanitizedEditorConfig };
39
+ export type { AdapterProps };
40
+ export { RichTextCell };
41
+ export { RichTextField };
42
+ export { getEnabledNodes } from './field/lexical/nodes';
43
+ export { defaultRichTextValue } from './populate/defaultValue';
30
44
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAIpD,OAAO,KAAK,EAAE,YAAY,EAAyB,MAAM,8BAA8B,CAAA;AACvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAS3C,wBAAgB,aAAa,CAAC,EAC5B,UAAU,GACX,EAA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