@oyat/editor 1.7.2 → 1.7.4

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.
@@ -1,610 +1,6 @@
1
1
  import { Value } from 'platejs';
2
2
  import { TPlateEditor } from 'platejs/react';
3
- export declare const EditorKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"textAlign", {}, {}, Record<"textAlign", {
4
- setNodes: (value: import('@platejs/basic-styles').Alignment, setNodesOptions?: import('platejs').SetNodesOptions | undefined) => void;
5
- }>, {}>> | import('platejs').SlatePlugin<import('@platejs/autoformat').AutoformatConfig> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"p", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<any, {}, {}, Record<any, {
6
- toggle: () => void;
7
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
8
- toggle: () => void;
9
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"hr", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"bold", {}, {}, Record<"bold", {
10
- toggle: () => void;
11
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"italic", {}, {}, Record<"italic", {
12
- toggle: () => void;
13
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"underline", {}, {}, Record<"underline", {
14
- toggle: () => void;
15
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"code", {}, {}, Record<"code", {
16
- toggle: () => void;
17
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
18
- toggle: () => void;
19
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"subscript", {}, {}, Record<"subscript", {
20
- toggle: () => void;
21
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"superscript", {}, {}, Record<"superscript", {
22
- toggle: () => void;
23
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"highlight", {}, {}, Record<"highlight", {
24
- toggle: () => void;
25
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"kbd", {}, {}, Record<"kbd", {
26
- toggle: () => void;
27
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockMenu", {
28
- openId: ((string & {}) | "context") | null;
29
- position: {
30
- x: number;
31
- y: number;
32
- };
33
- }, {
34
- blockMenu: {
35
- hide: () => void;
36
- show: (id: (string & {}) | "context", position?: {
37
- x: number;
38
- y: number;
39
- }) => void;
40
- showContextMenu: (blockId: string, position: {
41
- x: number;
42
- y: number;
43
- }) => void;
44
- };
45
- } & Record<"blockMenu", Partial<{
46
- hide: () => void;
47
- show: (id: (string & {}) | "context", position?: {
48
- x: number;
49
- y: number;
50
- }) => void;
51
- showContextMenu: (blockId: string, position: {
52
- x: number;
53
- y: number;
54
- }) => void;
55
- }>>, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockSelection", {
56
- anchorId?: string | null;
57
- areaOptions?: {
58
- document?: Document;
59
- } & {
60
- container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
61
- behaviour?: {
62
- intersect?: ("center" | "cover" | "touch") | undefined;
63
- overlap?: ("drop" | "invert" | "keep") | undefined;
64
- scrolling?: {
65
- manualSpeed?: number | undefined;
66
- speedDivider?: number | undefined;
67
- startScrollMargins?: {
68
- x?: number | undefined;
69
- y?: number | undefined;
70
- } | undefined;
71
- } | undefined;
72
- startThreshold?: number | {
73
- x?: number | undefined;
74
- y?: number | undefined;
75
- } | undefined;
76
- triggers?: ((0 | 1 | 2 | 3 | 4) | {
77
- button: 0 | 1 | 2 | 3 | 4;
78
- modifiers: ("shift" | "alt" | "ctrl")[];
79
- })[] | undefined;
80
- } | undefined;
81
- boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
82
- features?: {
83
- range?: boolean | undefined;
84
- singleTap?: {
85
- allow?: boolean | undefined;
86
- intersect?: ("touch" | "native") | undefined;
87
- } | undefined;
88
- touch?: boolean | undefined;
89
- } | undefined;
90
- selectables?: (string | string[]) | undefined;
91
- selectionAreaClass?: string | undefined;
92
- startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
93
- };
94
- editorPaddingRight?: import('react').CSSProperties["width"];
95
- enableContextMenu?: boolean;
96
- disableSelectAll?: boolean;
97
- isSelecting?: boolean;
98
- isSelectionAreaVisible?: boolean;
99
- rightSelectionAreaClassName?: string;
100
- selectedIds?: Set<string>;
101
- shadowInputRef?: React.RefObject<HTMLInputElement | null>;
102
- isSelectable?: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
103
- onKeyDownSelecting?: (editor: import('platejs').SlateEditor, e: KeyboardEvent) => void;
104
- }, {
105
- blockSelection: {
106
- addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
107
- element: import('platejs').TElement;
108
- event: React.MouseEvent<HTMLDivElement, MouseEvent>;
109
- disabledWhenFocused?: boolean;
110
- }) => void>;
111
- setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
112
- added: Element[];
113
- removed: Element[];
114
- }> & {
115
- ids?: string[];
116
- }) => void>;
117
- add: (id: string[] | string) => void;
118
- addSelectedRow: (id: string, options?: {
119
- clear?: boolean;
120
- delay?: number;
121
- }) => void;
122
- clear: () => void;
123
- delete: (id: string[] | string) => void;
124
- deselect: () => void;
125
- first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
126
- focus: () => void;
127
- getNodes: (options?: {
128
- collapseTableRows?: boolean;
129
- selectionFallback?: boolean;
130
- sort?: boolean;
131
- }) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
132
- has: (id: string[] | string) => boolean;
133
- isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
134
- moveSelection: (direction: "down" | "up") => void;
135
- resetSelectedIds: () => void;
136
- selectAll: () => void;
137
- set: (id: string[] | string) => void;
138
- shiftSelection: (direction: "down" | "up") => void;
139
- unselect: () => void;
140
- };
141
- } & Record<"blockSelection", Partial<{
142
- addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
143
- element: import('platejs').TElement;
144
- event: React.MouseEvent<HTMLDivElement, MouseEvent>;
145
- disabledWhenFocused?: boolean;
146
- }) => void>;
147
- setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
148
- added: Element[];
149
- removed: Element[];
150
- }> & {
151
- ids?: string[];
152
- }) => void>;
153
- add: (id: string[] | string) => void;
154
- addSelectedRow: (id: string, options?: {
155
- clear?: boolean;
156
- delay?: number;
157
- }) => void;
158
- clear: () => void;
159
- delete: (id: string[] | string) => void;
160
- deselect: () => void;
161
- first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
162
- focus: () => void;
163
- getNodes: (options?: {
164
- collapseTableRows?: boolean;
165
- selectionFallback?: boolean;
166
- sort?: boolean;
167
- }) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
168
- has: (id: string[] | string) => boolean;
169
- isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
170
- moveSelection: (direction: "down" | "up") => void;
171
- resetSelectedIds: () => void;
172
- selectAll: () => void;
173
- set: (id: string[] | string) => void;
174
- shiftSelection: (direction: "down" | "up") => void;
175
- unselect: () => void;
176
- }>>, Record<"blockSelection", {
177
- duplicate: () => void;
178
- insertBlocksAndSelect: (nodes: import('platejs').TElement[], args_1: {
179
- at: import('platejs').Path;
180
- insertedCallback?: () => void;
181
- }) => void;
182
- removeNodes: () => void;
183
- select: () => void;
184
- selectBlocks: (at: import('platejs').Path | import('platejs').TNode) => void;
185
- setIndent: (indent: number, options?: import('platejs').SetNodesOptions | undefined) => void;
186
- setNodes: (props: Partial<Omit<import('platejs').TElement, "children">>, options?: import('platejs').SetNodesOptions | undefined) => void;
187
- setTexts: (props: Partial<Omit<import('platejs').TText, "text">>, options?: Omit<import('platejs').SetNodesOptions, "at"> | undefined) => void;
188
- }>, {
189
- isSelected?: (id?: string) => boolean;
190
- isSelectingSome?: () => boolean;
191
- }>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"dnd", {
192
- _isOver?: boolean;
193
- draggingId?: string[] | string | null;
194
- dropTarget?: {
195
- id: string | null;
196
- line: import('@platejs/dnd').DropLineDirection;
197
- };
198
- enableScroller?: boolean;
199
- isDragging?: boolean;
200
- multiplePreviewRef?: React.RefObject<HTMLDivElement | null> | null;
201
- scrollerProps?: Partial<import('@platejs/dnd').ScrollerProps>;
202
- onDropFiles?: (props: {
203
- id: string;
204
- dragItem: import('@platejs/dnd').FileDragItemNode;
205
- editor: import('platejs/react').PlateEditor;
206
- monitor: import('react-dnd').DropTargetMonitor<import('@platejs/dnd').DragItemNode, unknown>;
207
- nodeRef: any;
208
- target?: import('platejs').Path;
209
- }) => void;
210
- }, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockPlaceholder", {
211
- _target: {
212
- node: import('platejs').TElement;
213
- placeholder: string;
214
- } | null;
215
- placeholders: Record<string, string>;
216
- query: (context: import('platejs/react').PlatePluginContext<import('platejs/react').BlockPlaceholderConfig> & {
217
- node: import('platejs').TElement;
218
- path: import('platejs').Path;
219
- }) => boolean;
220
- className?: string;
221
- }, {}, {}, {
222
- placeholder: (node: import('platejs').TElement) => string | undefined;
223
- }>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"callout", {}, {}, {
224
- insert: {
225
- callout: (args_0?: ({
226
- batchDirty?: boolean;
227
- hanging?: boolean;
228
- nextBlock?: boolean;
229
- removeEmpty?: import('platejs').QueryNodeOptions | boolean;
230
- select?: boolean;
231
- } & {
232
- id?: boolean | string;
233
- block?: boolean;
234
- empty?: boolean;
235
- match?: import('platejs').Predicate<import('platejs').NodeIn<Value>> | undefined;
236
- text?: boolean;
237
- } & import('platejs').QueryAt & import('platejs').QueryMode & import('platejs').QueryVoids & {
238
- icon?: string;
239
- variant?: (string & {}) | import('platejs').TCalloutElement["variant"];
240
- }) | undefined) => void;
241
- };
242
- }, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"code_block", {
243
- defaultLanguage?: string | null;
244
- lowlight?: ReturnType<typeof import('lowlight').createLowlight> | null;
245
- }, {}, Record<"code_block", {
246
- toggle: () => void;
247
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<any, {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"code_syntax", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"column_group", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"column", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"comment", {
248
- activeId: string | null;
249
- commentingBlock: import('platejs').Path | null;
250
- hoverId: string | null;
251
- uniquePathMap: Map<string, import('platejs').Path>;
252
- }, {
253
- comment: {
254
- has: (options: {
255
- id: string;
256
- }) => boolean;
257
- node: (options?: import('platejs').EditorNodesOptions & {
258
- id?: string;
259
- isDraft?: boolean;
260
- }) => import('platejs').NodeEntry<import('platejs').TCommentText> | undefined;
261
- nodeId: (leaf: import('platejs').TCommentText) => string | undefined;
262
- nodes: (options?: import('platejs').EditorNodesOptions & {
263
- id?: string;
264
- isDraft?: boolean;
265
- transient?: boolean;
266
- }) => import('platejs').NodeEntry<import('platejs').TCommentText>[];
267
- };
268
- }, {
269
- comment: {
270
- removeMark: () => void;
271
- setDraft: (options?: import('platejs').SetNodesOptions) => void;
272
- unsetMark: (options: {
273
- id?: string;
274
- transient?: boolean;
275
- }) => void;
276
- };
277
- } & Record<"comment", {
278
- setDraft: () => void;
279
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"cursorOverlay", {
280
- cursors: Record<string, import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>>;
281
- }, {
282
- cursorOverlay: {
283
- addCursor: (id: string, cursor: Omit<import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>, "id">) => void;
284
- removeCursor: (id: (string & {}) | "drag" | "selection") => void;
285
- };
286
- } & Record<"cursorOverlay", {
287
- addCursor: (id: string, cursor: Omit<import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>, "id">) => void;
288
- removeCursor: (id: (string & {}) | "drag" | "selection") => void;
289
- }>, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"date", {}, {}, {
290
- insert: {
291
- date: (args_0?: ({
292
- date?: string;
293
- } & {
294
- batchDirty?: boolean;
295
- hanging?: boolean;
296
- nextBlock?: boolean;
297
- removeEmpty?: import('platejs').QueryNodeOptions | boolean;
298
- select?: boolean;
299
- } & {
300
- id?: boolean | string;
301
- block?: boolean;
302
- empty?: boolean;
303
- match?: import('platejs').Predicate<import('platejs').NodeIn<Value>> | undefined;
304
- text?: boolean;
305
- } & import('platejs').QueryAt & import('platejs').QueryMode & import('platejs').QueryVoids) | undefined) => void;
306
- };
307
- }, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"discussion", {
308
- commenting: boolean;
309
- currentUser: string;
310
- discussions: import('./plugins/discussion-kit').TDiscussion[];
311
- }, {}, {}, {
312
- currentUserInfo: () => {
313
- id: string;
314
- name: string;
315
- };
316
- user: (id: string) => {
317
- id: string;
318
- name: string;
319
- };
320
- }>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"suggestion", {
321
- currentUserId: string | null;
322
- isSuggesting: boolean;
323
- } & {
324
- activeId: string | null;
325
- hoverId: string | null;
326
- uniquePathMap: Map<string, import('platejs').Path>;
327
- }, {
328
- suggestion: {
329
- dataList: (node: import('platejs').TSuggestionText) => import('platejs').TInlineSuggestionData[];
330
- isBlockSuggestion: (node: import('platejs').TNode) => node is import('platejs').TSuggestionElement;
331
- node: (options?: import('platejs').EditorNodesOptions & {
332
- id?: string;
333
- isText?: boolean;
334
- }) => import('platejs').NodeEntry<import('platejs').TSuggestionElement | import('platejs').TSuggestionText> | undefined;
335
- nodeId: (node: import('platejs').TElement | import('platejs').TSuggestionText) => string | undefined;
336
- nodes: (options?: import('platejs').EditorNodesOptions & {
337
- transient?: boolean;
338
- }) => import('platejs').NodeEntry<import('platejs').TElement | import('platejs').TSuggestionText>[];
339
- suggestionData: (node: import('platejs').TElement | import('platejs').TSuggestionText) => import('platejs').TInlineSuggestionData | import('platejs').TSuggestionElement["suggestion"] | undefined;
340
- withoutSuggestions: (fn: () => void) => void;
341
- };
342
- }, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"placeholder", import('@platejs/media').MediaPlaceholderOptions & {
343
- disableEmptyPlaceholder: boolean;
344
- disableFileDrop: boolean;
345
- uploadConfig: import('@platejs/media/react').UploadConfig;
346
- uploadingFiles: Record<string, File>;
347
- error?: import('@platejs/media/react').UploadError | null;
348
- maxFileCount?: number;
349
- multiple?: boolean;
350
- }, {
351
- placeholder: import('@platejs/media/react').PlaceholderApi;
352
- } & Record<"placeholder", {
353
- addUploadingFile: (id: string, file: File) => void;
354
- getUploadingFile: (id: string) => File;
355
- removeUploadingFile: (id: string) => void;
356
- }>, {
357
- insert: {
358
- media: (files: FileList, options?: (Omit<import('platejs').InsertNodesOptions, "at"> & {
359
- at?: import('platejs').Path;
360
- }) | undefined) => any;
361
- };
362
- }, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"docx", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"juice", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"exitBreak", {}, {}, Record<"exitBreak", {
363
- insert: (options: Omit<import('platejs').InsertExitBreakOptions, "reverse">) => true | undefined;
364
- insertBefore: (options: Omit<import('platejs').InsertExitBreakOptions, "reverse">) => true | undefined;
365
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"table", {
366
- _cellIndices: Record<string, {
367
- col: number;
368
- row: number;
369
- }>;
370
- selectedCells: import('platejs').TElement[] | null;
371
- selectedTables: import('platejs').TElement[] | null;
372
- disableExpandOnInsert?: boolean;
373
- disableMarginLeft?: boolean;
374
- disableMerge?: boolean;
375
- enableUnsetSingleColSize?: boolean;
376
- initialTableWidth?: number;
377
- minColumnWidth?: number;
378
- }, {
379
- create: {
380
- table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import('@platejs/table').GetEmptyTableNodeOptions) => import('platejs').TTableElement>;
381
- tableCell: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { children, header, row }?: import('@platejs/table').CreateCellOptions) => {
382
- children: import('platejs').Descendant[];
383
- type: string;
384
- }>;
385
- tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, ...cellOptions }?: import('@platejs/table').GetEmptyRowNodeOptions) => {
386
- children: {
387
- children: import('platejs').Descendant[];
388
- type: string;
389
- }[];
390
- type: string;
391
- }>;
392
- };
393
- table: {
394
- getCellBorders: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, defaultBorder, element }: {
395
- element: import('platejs').TTableCellElement;
396
- cellIndices?: import('@platejs/table').CellIndices;
397
- defaultBorder?: import('platejs').TTableCellBorder;
398
- }) => import('@platejs/table').BorderStylesDefault>;
399
- getCellSize: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, colSizes, element, rowSize }: {
400
- element: import('platejs').TTableCellElement;
401
- cellIndices?: import('@platejs/table').CellIndices;
402
- colSizes?: number[];
403
- rowSize?: number;
404
- }) => {
405
- minHeight: number | undefined;
406
- width: number;
407
- }>;
408
- getColSpan: (cellElem: import('platejs').TTableCellElement) => number;
409
- getRowSpan: (cellElem: import('platejs').TTableCellElement) => number;
410
- getCellChildren: (cell: import('platejs').TTableCellElement) => import('platejs').Descendant[];
411
- };
412
- } & {
413
- create: {
414
- table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import('@platejs/table').GetEmptyTableNodeOptions) => import('platejs').TTableElement>;
415
- tableCell: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { children, header, row }?: import('@platejs/table').CreateCellOptions) => {
416
- children: import('platejs').Descendant[];
417
- type: string;
418
- }>;
419
- tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, ...cellOptions }?: import('@platejs/table').GetEmptyRowNodeOptions) => {
420
- children: {
421
- children: import('platejs').Descendant[];
422
- type: string;
423
- }[];
424
- type: string;
425
- }>;
426
- };
427
- table: {
428
- getCellBorders: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, defaultBorder, element }: {
429
- element: import('platejs').TTableCellElement;
430
- cellIndices?: import('@platejs/table').CellIndices;
431
- defaultBorder?: import('platejs').TTableCellBorder;
432
- }) => import('@platejs/table').BorderStylesDefault>;
433
- getCellSize: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, colSizes, element, rowSize }: {
434
- element: import('platejs').TTableCellElement;
435
- cellIndices?: import('@platejs/table').CellIndices;
436
- colSizes?: number[];
437
- rowSize?: number;
438
- }) => {
439
- minHeight: number | undefined;
440
- width: number;
441
- }>;
442
- getColSpan: (cellElem: import('platejs').TTableCellElement) => number;
443
- getRowSpan: (cellElem: import('platejs').TTableCellElement) => number;
444
- getCellChildren: (cell: import('platejs').TTableCellElement) => import('platejs').Descendant[];
445
- };
446
- }, {
447
- insert: {
448
- table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount }?: import('@platejs/table').GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import('platejs').InsertNodesOptions) => void>;
449
- tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
450
- at?: import('platejs').Path;
451
- before?: boolean;
452
- fromCell?: import('platejs').Path;
453
- header?: boolean;
454
- select?: boolean;
455
- }) => void>;
456
- tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
457
- at?: import('platejs').Path;
458
- before?: boolean;
459
- fromRow?: import('platejs').Path;
460
- header?: boolean;
461
- select?: boolean;
462
- }) => void>;
463
- };
464
- remove: {
465
- table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
466
- tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
467
- tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
468
- };
469
- table: {
470
- merge: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
471
- split: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
472
- };
473
- } & {
474
- insert: {
475
- table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount }?: import('@platejs/table').GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import('platejs').InsertNodesOptions) => void>;
476
- tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
477
- at?: import('platejs').Path;
478
- before?: boolean;
479
- fromCell?: import('platejs').Path;
480
- header?: boolean;
481
- select?: boolean;
482
- }) => void>;
483
- tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
484
- at?: import('platejs').Path;
485
- before?: boolean;
486
- fromRow?: import('platejs').Path;
487
- header?: boolean;
488
- select?: boolean;
489
- }) => void>;
490
- };
491
- remove: {
492
- table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
493
- tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
494
- tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
495
- };
496
- table: {
497
- merge: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
498
- split: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
499
- };
500
- }, {
501
- cellIndices?: (id: string) => import('@platejs/table').CellIndices;
502
- }>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"fixed-toolbar", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"floating-toolbar", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"color", {}, {}, Record<"color", {
503
- addMark: (value: string) => void;
504
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
505
- addMark: (value: string) => void;
506
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"fontSize", {}, {}, Record<"fontSize", {
507
- addMark: (value: string) => void;
508
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
509
- addMark: (value: string) => void;
510
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"lineHeight", {}, {}, Record<"lineHeight", {
511
- setNodes: (value: number, setNodesOptions?: import('platejs').SetNodesOptions | undefined) => void;
512
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"a", {
513
- allowedSchemes?: string[];
514
- dangerouslySkipSanitization?: boolean;
515
- defaultLinkAttributes?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
516
- forceSubmit?: boolean;
517
- keepSelectedTextOnPaste?: boolean;
518
- rangeBeforeOptions?: import('platejs').EditorBeforeOptions;
519
- triggerFloatingLinkHotkeys?: string[] | string;
520
- getLinkUrl?: (prevUrl: string | null) => Promise<string | null>;
521
- getUrlHref?: (url: string) => string | undefined;
522
- isUrl?: (text: string) => boolean;
523
- transformInput?: (url: string) => string | undefined;
524
- } & {
525
- isEditing: boolean;
526
- mode: import('@platejs/link/react').FloatingLinkMode;
527
- mouseDown: boolean;
528
- newTab: boolean;
529
- openEditorId: string | null;
530
- text: string;
531
- updated: boolean;
532
- url: string;
533
- triggerFloatingLinkHotkeys?: string;
534
- }, {
535
- floatingLink: {
536
- hide: () => void;
537
- reset: () => void;
538
- show: (mode: import('@platejs/link/react').FloatingLinkMode, editorId: string) => void;
539
- };
540
- link: {
541
- getAttributes: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, link: import('platejs').TLinkElement) => Pick<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target"> & import('platejs').UnknownObject>;
542
- };
543
- }, {}, {
544
- isOpen?: (editorId: string) => boolean;
545
- }>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"indent", {
546
- indentMax?: number;
547
- offset?: number;
548
- unit?: string;
549
- }, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"list", {
550
- getSiblingListOptions?: import('@platejs/list').GetSiblingListOptions<import('platejs').TElement>;
551
- getListStyleType?: (element: HTMLElement) => import('@platejs/list').ListStyleType;
552
- }, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"inline_equation", {}, {}, {
553
- insert: {
554
- inlineEquation: (texExpression?: string | undefined, options?: import('platejs').InsertNodesOptions | undefined) => void;
555
- };
556
- }, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"equation", {}, {}, {
557
- insert: {
558
- equation: (options?: import('platejs').InsertNodesOptions | undefined) => void;
559
- };
560
- }, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"img", {
561
- disableEmbedInsert?: boolean;
562
- disableUploadInsert?: boolean;
563
- uploadImage?: (dataUrl: ArrayBuffer | string) => ArrayBuffer | Promise<ArrayBuffer | string> | string;
564
- } & import('@platejs/media').MediaPluginOptions, {}, {
565
- insert: {
566
- imageFromFiles: (files: FileList, options?: import('platejs').InsertNodesOptions | undefined) => void;
567
- };
568
- }, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"audio", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"file", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"caption", {
569
- focusEndPath: import('platejs').Path | null;
570
- focusStartPath: import('platejs').Path | null;
571
- query: {
572
- allow: string[];
573
- };
574
- visibleId: string | null;
575
- }, {}, {}, {
576
- isVisible?: (elementId: string) => boolean;
577
- }>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"mention", {
578
- insertSpaceAfterMention?: boolean;
579
- } & import('@platejs/combobox').TriggerComboboxPluginOptions, {}, {
580
- insert: {
581
- mention: (options: {
582
- search: string;
583
- value: any;
584
- key?: any;
585
- }) => void;
586
- };
587
- }, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"mention_input", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"slash_command", import('@platejs/combobox').TriggerComboboxPluginOptions, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"slash_input", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"tr", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"td", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"th", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"toc", {
588
- isScroll: boolean;
589
- topOffset: number;
590
- queryHeading?: (editor: import('platejs').SlateEditor) => import('@platejs/toc').Heading[];
591
- }, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"toggle", {
592
- openIds?: Set<string>;
593
- } & {
594
- toggleIndex?: ReturnType<(elements: Value) => Map<string, string[]>>;
595
- }, {
596
- toggle: {
597
- toggleIds: (ids: string[], force?: boolean | null) => void;
598
- };
599
- }, {}, {
600
- isOpen?: (toggleId: string) => boolean;
601
- someClosed?: (toggleIds: string[]) => boolean;
602
- }>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"trailingBlock", {
603
- type: string;
604
- } & {
605
- level?: number;
606
- type?: string;
607
- } & import('platejs').QueryNodeOptions, {}, {}, {}>>)[];
3
+ export declare const EditorKit: any[];
608
4
  export type MyEditor = TPlateEditor<Value, (typeof EditorKit)[number]>;
609
5
  export declare const useEditor: () => MyEditor | null;
610
6
  //# sourceMappingURL=editor-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor-kit.d.ts","sourceRoot":"","sources":["../../../src/components/editor/editor-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAuB,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,eAAe,CAAC;AAiChE,eAAO,MAAM,SAAS;gFAZf,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDANuB,CAAC;;;;;;;;;;;kDAG0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAiE8J,CAAC;;;;;;eAAod,CAAC;;;4CAA+5I,CAAC;iBAAe,CAAC;iBAAsB,CAAC;;;;;;;0BAA8sB,CAAC;6BAA2B,CAAC;6BAAsK,CAAC;gBAAqB,CAAC;;;;;;;;;;;;;;;2BAAr0L,CAAC;;;;;;WAAod,CAAC;;;wCAAimN,CAAC;aAAa,CAAC;aAAoB,CAAC;;;;;;;sBAAsqB,CAAC;yBAAyB,CAAC;yBAA4J,CAAC;YAAmB,CAAC;;;;;;;;;;;;;;wBAAg8B,CAAC;;;;;uCAAioB,CAAC;oFAAuJ,CAAC;6EAAyJ,CAAC;;oBAAiI,CAAC;;;;;;;;;;;;;;;;;;;cAAhqU,CAAC;;;;;;;;;;;;;;;;;wBAhFsC,CAAC;sBAAqB,CAAC;mBACpD,CAAC;qBAA0B,CAAC;uBAClD,CAAA;kBAAmD,CAAC;;cAChD,CAAC;iBAA+B,CAAC;iBAAsB,CAAC;iBACrD,CAAC;gBAA6E,CAAC;;gBAElE,CAAC;mBAAuB,CAAC;;;;;;;;;;;;;;;;;;sBALsB,CAAC;cAC7C,CAAA;mBAAuB,CAAC;;;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A8DxB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEvE,eAAO,MAAM,SAAS,QAAO,QAAQ,GAAG,IAAgC,CAAC"}
1
+ {"version":3,"file":"editor-kit.d.ts","sourceRoot":"","sources":["../../../src/components/editor/editor-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAuB,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,eAAe,CAAC;AAkChE,eAAO,MAAM,SAAS,OA8CrB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEvE,eAAO,MAAM,SAAS,QAAO,QAAQ,GAAG,IAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plate-editor.d.ts","sourceRoot":"","sources":["../../../src/components/editor/plate-editor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAOrC,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,4CAA4C,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,iIAAiI;IACjI,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,+EAA+E;IAC/E,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8EAA8E;IA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declare const BlockPlaceholderKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockPlaceholder", {
2
- _target: {
3
- node: import('platejs').TElement;
4
- placeholder: string;
5
- } | null;
6
- placeholders: Record<string, string>;
7
- query: (context: import('platejs/react').PlatePluginContext<import('platejs/react').BlockPlaceholderConfig> & {
8
- node: import('platejs').TElement;
9
- path: import('platejs').Path;
10
- }) => boolean;
11
- className?: string;
12
- }, {}, {}, {
13
- placeholder: (node: import('platejs').TElement) => string | undefined;
14
- }>>[];
1
+ export declare const BlockPlaceholderKit: any[];
15
2
  //# sourceMappingURL=block-placeholder-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block-placeholder-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-placeholder-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;KAW/B,CAAC"}
1
+ {"version":3,"file":"block-placeholder-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-placeholder-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB,OAW/B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { default as emojiMartData } from '@emoji-mart/data';
2
+ export declare const EmojiKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"emoji", {
3
+ data?: emojiMartData.EmojiMartData;
4
+ createEmojiNode?: (emoji: emojiMartData.Emoji) => import('platejs').Descendant;
5
+ } & import('@platejs/combobox').TriggerComboboxPluginOptions, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"emoji_input", {}, {}, {}, {}>>)[];
6
+ //# sourceMappingURL=emoji-kit.d.ts.map