@oyat/editor 1.7.10 → 1.8.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/dist/components/editor/editor-base-kit.d.ts +300 -1
- package/dist/components/editor/editor-base-kit.d.ts.map +1 -1
- package/dist/components/editor/editor-kit.d.ts +632 -1
- package/dist/components/editor/editor-kit.d.ts.map +1 -1
- package/dist/components/editor/plate-editor.d.ts +6 -1
- package/dist/components/editor/plate-editor.d.ts.map +1 -1
- package/dist/components/editor/plugins/align-base-kit.d.ts +1 -1
- package/dist/components/editor/plugins/align-base-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/align-kit.d.ts +1 -1
- package/dist/components/editor/plugins/align-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/autoformat-kit.d.ts +1 -1
- package/dist/components/editor/plugins/autoformat-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/block-menu-kit.d.ts +165 -1
- package/dist/components/editor/plugins/block-menu-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/block-selection-kit.d.ts +137 -1
- package/dist/components/editor/plugins/block-selection-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/cursor-overlay-kit.d.ts +11 -1
- package/dist/components/editor/plugins/cursor-overlay-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/dnd-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/editor-media-dataurl-paste-kit.d.ts +6 -0
- package/dist/components/editor/plugins/editor-media-dataurl-paste-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/emoji-kit.d.ts +1 -1
- package/dist/components/editor/plugins/line-height-base-kit.d.ts +1 -1
- package/dist/components/editor/plugins/line-height-base-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/line-height-kit.d.ts +1 -1
- package/dist/components/editor/plugins/line-height-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/media-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/table-base-kit.d.ts +94 -1
- package/dist/components/editor/plugins/table-base-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/table-kit.d.ts +162 -1
- package/dist/components/editor/plugins/table-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/toggle-kit.d.ts +1 -1
- package/dist/components/editor/plugins/toggle-kit.d.ts.map +1 -1
- package/dist/components/ui/block-context-menu.d.ts.map +1 -1
- package/dist/components/ui/block-suggestion.d.ts.map +1 -1
- package/dist/components/ui/caption.d.ts +21 -1
- package/dist/components/ui/caption.d.ts.map +1 -1
- package/dist/components/ui/comment.d.ts.map +1 -1
- package/dist/contexts/editor-media-upload-context.d.ts +22 -0
- package/dist/contexts/editor-media-upload-context.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +845 -843
- package/dist/index.js.map +1 -1
- package/package.json +44 -44
|
@@ -1,2 +1,301 @@
|
|
|
1
|
-
export declare const BaseEditorKit: any
|
|
1
|
+
export declare const BaseEditorKit: (import('platejs').SlatePlugin<import('platejs').PluginConfig<"p", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<any, {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"comment", {}, {
|
|
2
|
+
comment: {
|
|
3
|
+
has: (options: {
|
|
4
|
+
id: string;
|
|
5
|
+
}) => boolean;
|
|
6
|
+
node: (options?: import('platejs').EditorNodesOptions & {
|
|
7
|
+
id?: string;
|
|
8
|
+
isDraft?: boolean;
|
|
9
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText> | undefined;
|
|
10
|
+
nodeId: (leaf: import('platejs').TCommentText) => string | undefined;
|
|
11
|
+
nodes: (options?: import('platejs').EditorNodesOptions & {
|
|
12
|
+
id?: string;
|
|
13
|
+
isDraft?: boolean;
|
|
14
|
+
transient?: boolean;
|
|
15
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText>[];
|
|
16
|
+
};
|
|
17
|
+
} & Record<"comment", {
|
|
18
|
+
has: (options: {
|
|
19
|
+
id: string;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
node: (options?: import('platejs').EditorNodesOptions & {
|
|
22
|
+
id?: string;
|
|
23
|
+
isDraft?: boolean;
|
|
24
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText> | undefined;
|
|
25
|
+
nodeId: (leaf: import('platejs').TCommentText) => string | undefined;
|
|
26
|
+
nodes: (options?: import('platejs').EditorNodesOptions & {
|
|
27
|
+
id?: string;
|
|
28
|
+
isDraft?: boolean;
|
|
29
|
+
transient?: boolean;
|
|
30
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText>[];
|
|
31
|
+
}>, {
|
|
32
|
+
comment: {
|
|
33
|
+
removeMark: () => void;
|
|
34
|
+
setDraft: (options?: import('platejs').SetNodesOptions) => void;
|
|
35
|
+
unsetMark: (options: {
|
|
36
|
+
id?: string;
|
|
37
|
+
transient?: boolean;
|
|
38
|
+
}) => void;
|
|
39
|
+
};
|
|
40
|
+
} & Record<"comment", {
|
|
41
|
+
removeMark: () => void;
|
|
42
|
+
setDraft: (options?: import('platejs').SetNodesOptions) => void;
|
|
43
|
+
unsetMark: (options: {
|
|
44
|
+
id?: string;
|
|
45
|
+
transient?: boolean;
|
|
46
|
+
}) => void;
|
|
47
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"suggestion", {
|
|
48
|
+
currentUserId: string | null;
|
|
49
|
+
isSuggesting: boolean;
|
|
50
|
+
}, {
|
|
51
|
+
suggestion: {
|
|
52
|
+
dataList: (node: import('platejs').TSuggestionText) => import('platejs').TInlineSuggestionData[];
|
|
53
|
+
isBlockSuggestion: (node: import('platejs').TNode) => node is import('platejs').TSuggestionElement;
|
|
54
|
+
node: (options?: import('platejs').EditorNodesOptions & {
|
|
55
|
+
id?: string;
|
|
56
|
+
isText?: boolean;
|
|
57
|
+
}) => import('platejs').NodeEntry<import('platejs').TSuggestionElement | import('platejs').TSuggestionText> | undefined;
|
|
58
|
+
nodeId: (node: import('platejs').TElement | import('platejs').TSuggestionText) => string | undefined;
|
|
59
|
+
nodes: (options?: import('platejs').EditorNodesOptions & {
|
|
60
|
+
transient?: boolean;
|
|
61
|
+
}) => import('platejs').NodeEntry<import('platejs').TElement | import('platejs').TSuggestionText>[];
|
|
62
|
+
suggestionData: (node: import('platejs').TElement | import('platejs').TSuggestionText) => import('platejs').TInlineSuggestionData | import('platejs').TSuggestionElement["suggestion"] | undefined;
|
|
63
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
64
|
+
};
|
|
65
|
+
} & Record<"suggestion", {
|
|
66
|
+
dataList: (node: import('platejs').TSuggestionText) => import('platejs').TInlineSuggestionData[];
|
|
67
|
+
isBlockSuggestion: (node: import('platejs').TNode) => node is import('platejs').TSuggestionElement;
|
|
68
|
+
node: (options?: import('platejs').EditorNodesOptions & {
|
|
69
|
+
id?: string;
|
|
70
|
+
isText?: boolean;
|
|
71
|
+
}) => import('platejs').NodeEntry<import('platejs').TSuggestionElement | import('platejs').TSuggestionText> | undefined;
|
|
72
|
+
nodeId: (node: import('platejs').TElement | import('platejs').TSuggestionText) => string | undefined;
|
|
73
|
+
nodes: (options?: import('platejs').EditorNodesOptions & {
|
|
74
|
+
transient?: boolean;
|
|
75
|
+
}) => import('platejs').NodeEntry<import('platejs').TElement | import('platejs').TSuggestionText>[];
|
|
76
|
+
suggestionData: (node: import('platejs').TElement | import('platejs').TSuggestionText) => import('platejs').TInlineSuggestionData | import('platejs').TSuggestionElement["suggestion"] | undefined;
|
|
77
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
78
|
+
}>, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"textAlign", {}, {}, Record<"textAlign", {
|
|
79
|
+
setNodes: (value: import('@platejs/basic-styles').Alignment, options?: import('platejs').SetNodesOptions) => void;
|
|
80
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<any, {}, {}, Record<any, {
|
|
81
|
+
toggle: () => void;
|
|
82
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
|
|
83
|
+
toggle: () => void;
|
|
84
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"hr", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
85
|
+
toggle: () => void;
|
|
86
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
87
|
+
toggle: () => void;
|
|
88
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
89
|
+
toggle: () => void;
|
|
90
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"code", {}, {}, Record<"code", {
|
|
91
|
+
toggle: () => void;
|
|
92
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
93
|
+
toggle: () => void;
|
|
94
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
95
|
+
toggle: () => void;
|
|
96
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
97
|
+
toggle: () => void;
|
|
98
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"highlight", {}, {}, Record<"highlight", {
|
|
99
|
+
toggle: () => void;
|
|
100
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"kbd", {}, {}, Record<"kbd", {
|
|
101
|
+
toggle: () => void;
|
|
102
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"callout", {}, {}, {
|
|
103
|
+
insert: {
|
|
104
|
+
callout: (args_0?: ({
|
|
105
|
+
batchDirty?: boolean;
|
|
106
|
+
hanging?: boolean;
|
|
107
|
+
nextBlock?: boolean;
|
|
108
|
+
removeEmpty?: import('platejs').QueryNodeOptions | boolean;
|
|
109
|
+
select?: boolean;
|
|
110
|
+
} & {
|
|
111
|
+
id?: boolean | string;
|
|
112
|
+
block?: boolean;
|
|
113
|
+
empty?: boolean;
|
|
114
|
+
match?: import('platejs').Predicate<import('platejs').NodeIn<import('platejs').Value>> | undefined;
|
|
115
|
+
text?: boolean;
|
|
116
|
+
} & import('platejs').QueryAt & import('platejs').QueryMode & import('platejs').QueryVoids & {
|
|
117
|
+
icon?: string;
|
|
118
|
+
variant?: (string & {}) | import('platejs').TCalloutElement["variant"];
|
|
119
|
+
}) | undefined) => void;
|
|
120
|
+
};
|
|
121
|
+
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"code_block", {
|
|
122
|
+
defaultLanguage?: string | null;
|
|
123
|
+
lowlight?: ReturnType<typeof import('lowlight').createLowlight> | null;
|
|
124
|
+
}, {}, Record<"code_block", {
|
|
125
|
+
toggle: () => void;
|
|
126
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"code_syntax", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"column_group", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"column", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"date", {}, {}, {
|
|
127
|
+
insert: {
|
|
128
|
+
date: (args_0?: ({
|
|
129
|
+
date?: string;
|
|
130
|
+
} & {
|
|
131
|
+
batchDirty?: boolean;
|
|
132
|
+
hanging?: boolean;
|
|
133
|
+
nextBlock?: boolean;
|
|
134
|
+
removeEmpty?: import('platejs').QueryNodeOptions | boolean;
|
|
135
|
+
select?: boolean;
|
|
136
|
+
} & {
|
|
137
|
+
id?: boolean | string;
|
|
138
|
+
block?: boolean;
|
|
139
|
+
empty?: boolean;
|
|
140
|
+
match?: import('platejs').Predicate<import('platejs').NodeIn<import('platejs').Value>> | undefined;
|
|
141
|
+
text?: boolean;
|
|
142
|
+
} & import('platejs').QueryAt & import('platejs').QueryMode & import('platejs').QueryVoids) | undefined) => void;
|
|
143
|
+
};
|
|
144
|
+
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"color", {}, {}, Record<"color", {
|
|
145
|
+
addMark: (value: string) => void;
|
|
146
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
|
|
147
|
+
addMark: (value: string) => void;
|
|
148
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"fontSize", {}, {}, Record<"fontSize", {
|
|
149
|
+
addMark: (value: string) => void;
|
|
150
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
|
|
151
|
+
addMark: (value: string) => void;
|
|
152
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"lineHeight", {}, {}, Record<"lineHeight", {
|
|
153
|
+
setNodes: (value: number, options?: import('platejs').SetNodesOptions) => void;
|
|
154
|
+
}>, {}>> | import('platejs').SlatePlugin<import('@platejs/link').BaseLinkConfig> | import('platejs').SlatePlugin<import('@platejs/indent').IndentConfig> | import('platejs').SlatePlugin<import('@platejs/list').BaseListConfig> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"inline_equation", {}, {}, {
|
|
155
|
+
insert: {
|
|
156
|
+
inlineEquation: (texExpression?: string | undefined, options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
157
|
+
};
|
|
158
|
+
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"equation", {}, {}, {
|
|
159
|
+
insert: {
|
|
160
|
+
equation: (options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
161
|
+
};
|
|
162
|
+
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"img", {
|
|
163
|
+
disableEmbedInsert?: boolean;
|
|
164
|
+
disableUploadInsert?: boolean;
|
|
165
|
+
uploadImage?: (dataUrl: ArrayBuffer | string) => ArrayBuffer | Promise<ArrayBuffer | string> | string;
|
|
166
|
+
} & import('@platejs/media').MediaPluginOptions, {}, {
|
|
167
|
+
insert: {
|
|
168
|
+
imageFromFiles: (files: FileList, options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
169
|
+
};
|
|
170
|
+
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"audio", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"file", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"caption", {
|
|
171
|
+
focusEndPath: import('platejs').Path | null;
|
|
172
|
+
focusStartPath: import('platejs').Path | null;
|
|
173
|
+
query: {
|
|
174
|
+
allow: string[];
|
|
175
|
+
};
|
|
176
|
+
visibleId: string | null;
|
|
177
|
+
}, {}, {}, {
|
|
178
|
+
isVisible?: (elementId: string) => boolean;
|
|
179
|
+
}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"placeholder", import('@platejs/media').MediaPlaceholderOptions, {}, {
|
|
180
|
+
insert: {
|
|
181
|
+
audioPlaceholder: (options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
182
|
+
filePlaceholder: (options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
183
|
+
imagePlaceholder: (options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
184
|
+
videoPlaceholder: (options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
185
|
+
};
|
|
186
|
+
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"mention", {
|
|
187
|
+
insertSpaceAfterMention?: boolean;
|
|
188
|
+
} & import('@platejs/combobox').TriggerComboboxPluginOptions, {}, {
|
|
189
|
+
insert: {
|
|
190
|
+
mention: (options: {
|
|
191
|
+
search: string;
|
|
192
|
+
value: any;
|
|
193
|
+
key?: any;
|
|
194
|
+
}) => void;
|
|
195
|
+
};
|
|
196
|
+
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"table", {
|
|
197
|
+
_cellIndices: Record<string, {
|
|
198
|
+
col: number;
|
|
199
|
+
row: number;
|
|
200
|
+
}>;
|
|
201
|
+
_selectedCellIds: string[] | null | undefined;
|
|
202
|
+
_selectedTableIds: string[] | null | undefined;
|
|
203
|
+
_selectionVersion: number;
|
|
204
|
+
selectedCells: import('platejs').TElement[] | null;
|
|
205
|
+
selectedTables: import('platejs').TElement[] | null;
|
|
206
|
+
disableExpandOnInsert?: boolean;
|
|
207
|
+
disableMarginLeft?: boolean;
|
|
208
|
+
disableMerge?: boolean;
|
|
209
|
+
enableUnsetSingleColSize?: boolean;
|
|
210
|
+
initialTableWidth?: number;
|
|
211
|
+
minColumnWidth?: number;
|
|
212
|
+
}, {
|
|
213
|
+
create: {
|
|
214
|
+
table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import('@platejs/table').GetEmptyTableNodeOptions) => import('platejs').TTableElement>;
|
|
215
|
+
tableCell: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { children, header, row }?: import('@platejs/table').CreateCellOptions) => {
|
|
216
|
+
children: import('platejs').Descendant[];
|
|
217
|
+
type: string;
|
|
218
|
+
}>;
|
|
219
|
+
tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, ...cellOptions }?: import('@platejs/table').GetEmptyRowNodeOptions) => {
|
|
220
|
+
children: {
|
|
221
|
+
children: import('platejs').Descendant[];
|
|
222
|
+
type: string;
|
|
223
|
+
}[];
|
|
224
|
+
type: string;
|
|
225
|
+
}>;
|
|
226
|
+
};
|
|
227
|
+
table: {
|
|
228
|
+
getCellBorders: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
229
|
+
element: import('platejs').TTableCellElement;
|
|
230
|
+
cellIndices?: import('@platejs/table').CellIndices;
|
|
231
|
+
defaultBorder?: import('platejs').TTableCellBorder;
|
|
232
|
+
}) => import('@platejs/table').BorderStylesDefault>;
|
|
233
|
+
getCellSize: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
234
|
+
element: import('platejs').TTableCellElement;
|
|
235
|
+
cellIndices?: import('@platejs/table').CellIndices;
|
|
236
|
+
colSizes?: number[];
|
|
237
|
+
rowSize?: number;
|
|
238
|
+
}) => {
|
|
239
|
+
minHeight: number;
|
|
240
|
+
width: number;
|
|
241
|
+
}>;
|
|
242
|
+
getSelectedCell: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, id?: string | null) => import('platejs').TElement | null>;
|
|
243
|
+
getSelectedCellIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => string[] | null>;
|
|
244
|
+
getSelectedCells: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => import('platejs').TElement[] | null>;
|
|
245
|
+
getSelectedTableIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => string[] | null>;
|
|
246
|
+
getSelectedTables: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => import('platejs').TElement[] | null>;
|
|
247
|
+
getColSpan: (cellElem: import('platejs').TTableCellElement) => number;
|
|
248
|
+
getRowSpan: (cellElem: import('platejs').TTableCellElement) => number;
|
|
249
|
+
getCellChildren: (cell: import('platejs').TTableCellElement) => import('platejs').Descendant[];
|
|
250
|
+
isCellSelected: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, id?: string | null) => boolean>;
|
|
251
|
+
isSelectingCell: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => boolean>;
|
|
252
|
+
};
|
|
253
|
+
}, {
|
|
254
|
+
insert: {
|
|
255
|
+
table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount }?: import('@platejs/table').GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import('platejs').InsertNodesOptions) => void>;
|
|
256
|
+
tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
|
|
257
|
+
at?: import('platejs').Path;
|
|
258
|
+
before?: boolean;
|
|
259
|
+
fromCell?: import('platejs').Path;
|
|
260
|
+
header?: boolean;
|
|
261
|
+
select?: boolean;
|
|
262
|
+
}) => void>;
|
|
263
|
+
tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
|
|
264
|
+
at?: import('platejs').Path;
|
|
265
|
+
before?: boolean;
|
|
266
|
+
fromRow?: import('platejs').Path;
|
|
267
|
+
header?: boolean;
|
|
268
|
+
select?: boolean;
|
|
269
|
+
}) => void>;
|
|
270
|
+
};
|
|
271
|
+
remove: {
|
|
272
|
+
table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
273
|
+
tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
274
|
+
tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
275
|
+
};
|
|
276
|
+
table: {
|
|
277
|
+
merge: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
278
|
+
split: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
279
|
+
};
|
|
280
|
+
}, {
|
|
281
|
+
cellIndices?: (id: string) => import('@platejs/table').CellIndices;
|
|
282
|
+
isCellSelected?: (id?: string | null) => boolean;
|
|
283
|
+
isSelectingCell?: () => boolean;
|
|
284
|
+
selectedCell?: (id?: string | null) => import('platejs').TElement | null;
|
|
285
|
+
selectedCellIds?: () => string[] | null;
|
|
286
|
+
selectedCells?: () => import('platejs').TElement[] | null;
|
|
287
|
+
selectedTableIds?: () => string[] | null;
|
|
288
|
+
selectedTables?: () => import('platejs').TElement[] | null;
|
|
289
|
+
}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"tr", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"td", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"th", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('@platejs/toc').TocConfig> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"toggle", {
|
|
290
|
+
openIds?: Set<string>;
|
|
291
|
+
}, {
|
|
292
|
+
toggle: {
|
|
293
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
294
|
+
};
|
|
295
|
+
} & Record<"toggle", {
|
|
296
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
297
|
+
}>, {}, {
|
|
298
|
+
isOpen?: (toggleId: string) => boolean;
|
|
299
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
300
|
+
}>>)[];
|
|
2
301
|
//# sourceMappingURL=editor-base-kit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-base-kit.d.ts","sourceRoot":"","sources":["../../../src/components/editor/editor-base-kit.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"editor-base-kit.d.ts","sourceRoot":"","sources":["../../../src/components/editor/editor-base-kit.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,aAAa;;;;;sBAJhB,CAAC;cAAiC,CAAC;mBAClC,CAAC;;;uBAIV,CAAA;cACQ,CAAC;mBACA,CAAC;qBAEV,CAAF;;;;;;;kBAOc,CAAC;UAEb,CAAA;eACG,CAAC;;;mBAKqB,CAAC;UAEL,CAAC;eAAqB,CAAC;iBAAwB,CAAC;;;;;0BAAmH,CAAC;;cAA+D,CAAC;qBAAyB,CAAC;;;;;sBAAsG,CAAC;;UAA2D,CAAC;iBAAuB,CAAC;;;;;;;;;sBAP1c,CAAC;cAEJ,CAAC;kBACF,CAAC;;;uBAI0F,CAAC;qBAAwC,CAAC;;;;;;;;kBAAka,CAAC;UAA+B,CAAC;cAAoB,CAAC;;;mBAAqK,CAAC;iBAAsC,CAAC;;;;;wEAA9K,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;wBAvCnmB,CAAC;sBAAqB,CAAC;mBAC1C,CAAC;qBAA0B,CAAC;uBAC9B,CAAA;kBAAmD,CAAC;;cAC/B,CAAA;iBACxB,CAAC;iBAAuB,CAAA;iBAAsB,CAAC;gBAE9C,CAAC;;gBACsC,CAAC;mBAChC,CAAC;;;;;;;;;;qBARP,CAAA;gBAAe,CAAC;;sBAAoC,CAAC;mBAC1C,CAAC;qBAA0B,CAAC;uBAC/B,CAAC;kBACT,CAAA;;cAA6B,CAAC;iBACxB,CAAC;iBAAsB,CAAC;iBACjC,CAAC;gBACS,CAAC;;;;;;;;;;;;qCA4BV,CAAC;;;sCA5BuB,CAAC,6BAC1B,CAAC;;;;0BANoC,CAAC;;;;;;;;iDAsCqiC,CAAC;;;;;;;;;;;;;kCAAk1E,CAAC;iCAAiF,CAAC;kCAAkF,CAAC;kCAAkF,CAAC;;;;;;;;;eA9B9mH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA8BqsR,CAAC;yBAA8B,CAAC;;;;uBAAyT,CAAC;oBAAyB,CAAC;mBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;cAA43G,CAAC;kBAAsF,CAAC;oBAA0E,CAAC;kBAAgB,CAAC;kBAAmB,CAAC;;;cAA8S,CAAC;kBAAgF,CAAC;mBAAoB,CAAC;kBAAgB,CAAC;kBAAmB,CAAC;;;;;;;;;;;;;;wBAAqtQ,CAAC;;sBAAoF,CAAC;;;;;;;;;wCAnC73qB,CAAC;;;oCAEjC,CAAA;;;;MAgCR,CAAC"}
|