@oyat/editor 1.7.9 → 1.7.10
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 +1 -283
- package/dist/components/editor/editor-base-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/block-menu-kit.d.ts +1 -165
- package/dist/components/editor/plugins/block-menu-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/block-selection-kit.d.ts +1 -137
- package/dist/components/editor/plugins/block-selection-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/cursor-overlay-kit.d.ts +1 -11
- package/dist/components/editor/plugins/cursor-overlay-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/table-base-kit.d.ts +1 -77
- package/dist/components/editor/plugins/table-base-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/table-kit.d.ts +1 -138
- package/dist/components/editor/plugins/table-kit.d.ts.map +1 -1
- package/dist/components/ui/comment.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/floating-toolbar.d.ts.map +1 -1
- package/dist/components/ui/font-color-toolbar-button.d.ts.map +1 -1
- package/dist/components/ui/table-node.d.ts.map +1 -1
- package/dist/components/ui/table-toolbar-button.d.ts.map +1 -1
- package/dist/components/ui/turn-into-toolbar-button.d.ts.map +1 -1
- package/dist/index.js +843 -838
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -1,284 +1,2 @@
|
|
|
1
|
-
export declare const BaseEditorKit:
|
|
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, setNodesOptions?: import('platejs').SetNodesOptions | undefined) => void;
|
|
80
|
-
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<any, {}, {}, {}, {}>> | 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, setNodesOptions?: import('platejs').SetNodesOptions | undefined) => 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
|
-
selectedCells: import('platejs').TElement[] | null;
|
|
202
|
-
selectedTables: import('platejs').TElement[] | null;
|
|
203
|
-
disableExpandOnInsert?: boolean;
|
|
204
|
-
disableMarginLeft?: boolean;
|
|
205
|
-
disableMerge?: boolean;
|
|
206
|
-
enableUnsetSingleColSize?: boolean;
|
|
207
|
-
initialTableWidth?: number;
|
|
208
|
-
minColumnWidth?: number;
|
|
209
|
-
}, {
|
|
210
|
-
create: {
|
|
211
|
-
table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import('@platejs/table').GetEmptyTableNodeOptions) => import('platejs').TTableElement>;
|
|
212
|
-
tableCell: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { children, header, row }?: import('@platejs/table').CreateCellOptions) => {
|
|
213
|
-
children: import('platejs').Descendant[];
|
|
214
|
-
type: string;
|
|
215
|
-
}>;
|
|
216
|
-
tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, ...cellOptions }?: import('@platejs/table').GetEmptyRowNodeOptions) => {
|
|
217
|
-
children: {
|
|
218
|
-
children: import('platejs').Descendant[];
|
|
219
|
-
type: string;
|
|
220
|
-
}[];
|
|
221
|
-
type: string;
|
|
222
|
-
}>;
|
|
223
|
-
};
|
|
224
|
-
table: {
|
|
225
|
-
getCellBorders: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
226
|
-
element: import('platejs').TTableCellElement;
|
|
227
|
-
cellIndices?: import('@platejs/table').CellIndices;
|
|
228
|
-
defaultBorder?: import('platejs').TTableCellBorder;
|
|
229
|
-
}) => import('@platejs/table').BorderStylesDefault>;
|
|
230
|
-
getCellSize: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
231
|
-
element: import('platejs').TTableCellElement;
|
|
232
|
-
cellIndices?: import('@platejs/table').CellIndices;
|
|
233
|
-
colSizes?: number[];
|
|
234
|
-
rowSize?: number;
|
|
235
|
-
}) => {
|
|
236
|
-
minHeight: number | undefined;
|
|
237
|
-
width: number;
|
|
238
|
-
}>;
|
|
239
|
-
getColSpan: (cellElem: import('platejs').TTableCellElement) => number;
|
|
240
|
-
getRowSpan: (cellElem: import('platejs').TTableCellElement) => number;
|
|
241
|
-
getCellChildren: (cell: import('platejs').TTableCellElement) => import('platejs').Descendant[];
|
|
242
|
-
};
|
|
243
|
-
}, {
|
|
244
|
-
insert: {
|
|
245
|
-
table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount }?: import('@platejs/table').GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import('platejs').InsertNodesOptions) => void>;
|
|
246
|
-
tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
|
|
247
|
-
at?: import('platejs').Path;
|
|
248
|
-
before?: boolean;
|
|
249
|
-
fromCell?: import('platejs').Path;
|
|
250
|
-
header?: boolean;
|
|
251
|
-
select?: boolean;
|
|
252
|
-
}) => void>;
|
|
253
|
-
tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
|
|
254
|
-
at?: import('platejs').Path;
|
|
255
|
-
before?: boolean;
|
|
256
|
-
fromRow?: import('platejs').Path;
|
|
257
|
-
header?: boolean;
|
|
258
|
-
select?: boolean;
|
|
259
|
-
}) => void>;
|
|
260
|
-
};
|
|
261
|
-
remove: {
|
|
262
|
-
table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
263
|
-
tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
264
|
-
tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
265
|
-
};
|
|
266
|
-
table: {
|
|
267
|
-
merge: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
268
|
-
split: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
|
|
269
|
-
};
|
|
270
|
-
}, {
|
|
271
|
-
cellIndices?: (id: string) => import('@platejs/table').CellIndices;
|
|
272
|
-
}>> | 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", {
|
|
273
|
-
openIds?: Set<string>;
|
|
274
|
-
}, {
|
|
275
|
-
toggle: {
|
|
276
|
-
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
277
|
-
};
|
|
278
|
-
} & Record<"toggle", {
|
|
279
|
-
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
280
|
-
}>, {}, {
|
|
281
|
-
isOpen?: (toggleId: string) => boolean;
|
|
282
|
-
someClosed?: (toggleIds: string[]) => boolean;
|
|
283
|
-
}>>)[];
|
|
1
|
+
export declare const BaseEditorKit: any[];
|
|
284
2
|
//# 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,OAqBzB,CAAC"}
|
|
@@ -1,166 +1,2 @@
|
|
|
1
|
-
export declare const BlockMenuKit:
|
|
2
|
-
openId: ((string & {}) | "context") | null;
|
|
3
|
-
position: {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
};
|
|
7
|
-
}, {
|
|
8
|
-
blockMenu: {
|
|
9
|
-
hide: () => void;
|
|
10
|
-
show: (id: (string & {}) | "context", position?: {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
}) => void;
|
|
14
|
-
showContextMenu: (blockId: string, position: {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
}) => void;
|
|
18
|
-
};
|
|
19
|
-
} & Record<"blockMenu", Partial<{
|
|
20
|
-
hide: () => void;
|
|
21
|
-
show: (id: (string & {}) | "context", position?: {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
}) => void;
|
|
25
|
-
showContextMenu: (blockId: string, position: {
|
|
26
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
|
-
}) => void;
|
|
29
|
-
}>>, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockSelection", {
|
|
30
|
-
anchorId?: string | null;
|
|
31
|
-
areaOptions?: {
|
|
32
|
-
document?: Document;
|
|
33
|
-
} & {
|
|
34
|
-
container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
35
|
-
behaviour?: {
|
|
36
|
-
intersect?: ("center" | "cover" | "touch") | undefined;
|
|
37
|
-
overlap?: ("drop" | "invert" | "keep") | undefined;
|
|
38
|
-
scrolling?: {
|
|
39
|
-
manualSpeed?: number | undefined;
|
|
40
|
-
speedDivider?: number | undefined;
|
|
41
|
-
startScrollMargins?: {
|
|
42
|
-
x?: number | undefined;
|
|
43
|
-
y?: number | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
startThreshold?: number | {
|
|
47
|
-
x?: number | undefined;
|
|
48
|
-
y?: number | undefined;
|
|
49
|
-
} | undefined;
|
|
50
|
-
triggers?: ((0 | 1 | 2 | 3 | 4) | {
|
|
51
|
-
button: 0 | 1 | 2 | 3 | 4;
|
|
52
|
-
modifiers: ("shift" | "alt" | "ctrl")[];
|
|
53
|
-
})[] | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
56
|
-
features?: {
|
|
57
|
-
range?: boolean | undefined;
|
|
58
|
-
singleTap?: {
|
|
59
|
-
allow?: boolean | undefined;
|
|
60
|
-
intersect?: ("touch" | "native") | undefined;
|
|
61
|
-
} | undefined;
|
|
62
|
-
touch?: boolean | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
selectables?: (string | string[]) | undefined;
|
|
65
|
-
selectionAreaClass?: string | undefined;
|
|
66
|
-
startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
67
|
-
};
|
|
68
|
-
editorPaddingRight?: import('react').CSSProperties["width"];
|
|
69
|
-
enableContextMenu?: boolean;
|
|
70
|
-
disableSelectAll?: boolean;
|
|
71
|
-
isSelecting?: boolean;
|
|
72
|
-
isSelectionAreaVisible?: boolean;
|
|
73
|
-
rightSelectionAreaClassName?: string;
|
|
74
|
-
selectedIds?: Set<string>;
|
|
75
|
-
shadowInputRef?: React.RefObject<HTMLInputElement | null>;
|
|
76
|
-
isSelectable?: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
77
|
-
onKeyDownSelecting?: (editor: import('platejs').SlateEditor, e: KeyboardEvent) => void;
|
|
78
|
-
}, {
|
|
79
|
-
blockSelection: {
|
|
80
|
-
addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
|
|
81
|
-
element: import('platejs').TElement;
|
|
82
|
-
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
83
|
-
disabledWhenFocused?: boolean;
|
|
84
|
-
}) => void>;
|
|
85
|
-
setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
|
|
86
|
-
added: Element[];
|
|
87
|
-
removed: Element[];
|
|
88
|
-
}> & {
|
|
89
|
-
ids?: string[];
|
|
90
|
-
}) => void>;
|
|
91
|
-
add: (id: string[] | string) => void;
|
|
92
|
-
addSelectedRow: (id: string, options?: {
|
|
93
|
-
clear?: boolean;
|
|
94
|
-
delay?: number;
|
|
95
|
-
}) => void;
|
|
96
|
-
clear: () => void;
|
|
97
|
-
delete: (id: string[] | string) => void;
|
|
98
|
-
deselect: () => void;
|
|
99
|
-
first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
|
|
100
|
-
focus: () => void;
|
|
101
|
-
getNodes: (options?: {
|
|
102
|
-
collapseTableRows?: boolean;
|
|
103
|
-
selectionFallback?: boolean;
|
|
104
|
-
sort?: boolean;
|
|
105
|
-
}) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
|
|
106
|
-
has: (id: string[] | string) => boolean;
|
|
107
|
-
isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
108
|
-
moveSelection: (direction: "down" | "up") => void;
|
|
109
|
-
resetSelectedIds: () => void;
|
|
110
|
-
selectAll: () => void;
|
|
111
|
-
set: (id: string[] | string) => void;
|
|
112
|
-
shiftSelection: (direction: "down" | "up") => void;
|
|
113
|
-
unselect: () => void;
|
|
114
|
-
};
|
|
115
|
-
} & Record<"blockSelection", Partial<{
|
|
116
|
-
addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
|
|
117
|
-
element: import('platejs').TElement;
|
|
118
|
-
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
119
|
-
disabledWhenFocused?: boolean;
|
|
120
|
-
}) => void>;
|
|
121
|
-
setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
|
|
122
|
-
added: Element[];
|
|
123
|
-
removed: Element[];
|
|
124
|
-
}> & {
|
|
125
|
-
ids?: string[];
|
|
126
|
-
}) => void>;
|
|
127
|
-
add: (id: string[] | string) => void;
|
|
128
|
-
addSelectedRow: (id: string, options?: {
|
|
129
|
-
clear?: boolean;
|
|
130
|
-
delay?: number;
|
|
131
|
-
}) => void;
|
|
132
|
-
clear: () => void;
|
|
133
|
-
delete: (id: string[] | string) => void;
|
|
134
|
-
deselect: () => void;
|
|
135
|
-
first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
|
|
136
|
-
focus: () => void;
|
|
137
|
-
getNodes: (options?: {
|
|
138
|
-
collapseTableRows?: boolean;
|
|
139
|
-
selectionFallback?: boolean;
|
|
140
|
-
sort?: boolean;
|
|
141
|
-
}) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
|
|
142
|
-
has: (id: string[] | string) => boolean;
|
|
143
|
-
isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
144
|
-
moveSelection: (direction: "down" | "up") => void;
|
|
145
|
-
resetSelectedIds: () => void;
|
|
146
|
-
selectAll: () => void;
|
|
147
|
-
set: (id: string[] | string) => void;
|
|
148
|
-
shiftSelection: (direction: "down" | "up") => void;
|
|
149
|
-
unselect: () => void;
|
|
150
|
-
}>>, Record<"blockSelection", {
|
|
151
|
-
duplicate: () => void;
|
|
152
|
-
insertBlocksAndSelect: (nodes: import('platejs').TElement[], args_1: {
|
|
153
|
-
at: import('platejs').Path;
|
|
154
|
-
insertedCallback?: () => void;
|
|
155
|
-
}) => void;
|
|
156
|
-
removeNodes: () => void;
|
|
157
|
-
select: () => void;
|
|
158
|
-
selectBlocks: (at: import('platejs').Path | import('platejs').TNode) => void;
|
|
159
|
-
setIndent: (indent: number, options?: import('platejs').SetNodesOptions | undefined) => void;
|
|
160
|
-
setNodes: (props: Partial<Omit<import('platejs').TElement, "children">>, options?: import('platejs').SetNodesOptions | undefined) => void;
|
|
161
|
-
setTexts: (props: Partial<Omit<import('platejs').TText, "text">>, options?: Omit<import('platejs').SetNodesOptions, "at"> | undefined) => void;
|
|
162
|
-
}>, {
|
|
163
|
-
isSelected?: (id?: string) => boolean;
|
|
164
|
-
isSelectingSome?: () => boolean;
|
|
165
|
-
}>>)[];
|
|
1
|
+
export declare const BlockMenuKit: any[];
|
|
166
2
|
//# sourceMappingURL=block-menu-kit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-menu-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-menu-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"block-menu-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-menu-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,OAKxB,CAAC"}
|
|
@@ -1,138 +1,2 @@
|
|
|
1
|
-
export declare const BlockSelectionKit:
|
|
2
|
-
anchorId?: string | null;
|
|
3
|
-
areaOptions?: {
|
|
4
|
-
document?: Document;
|
|
5
|
-
} & {
|
|
6
|
-
container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
7
|
-
behaviour?: {
|
|
8
|
-
intersect?: ("center" | "cover" | "touch") | undefined;
|
|
9
|
-
overlap?: ("drop" | "invert" | "keep") | undefined;
|
|
10
|
-
scrolling?: {
|
|
11
|
-
manualSpeed?: number | undefined;
|
|
12
|
-
speedDivider?: number | undefined;
|
|
13
|
-
startScrollMargins?: {
|
|
14
|
-
x?: number | undefined;
|
|
15
|
-
y?: number | undefined;
|
|
16
|
-
} | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
startThreshold?: number | {
|
|
19
|
-
x?: number | undefined;
|
|
20
|
-
y?: number | undefined;
|
|
21
|
-
} | undefined;
|
|
22
|
-
triggers?: ((0 | 1 | 2 | 3 | 4) | {
|
|
23
|
-
button: 0 | 1 | 2 | 3 | 4;
|
|
24
|
-
modifiers: ("shift" | "alt" | "ctrl")[];
|
|
25
|
-
})[] | undefined;
|
|
26
|
-
} | undefined;
|
|
27
|
-
boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
28
|
-
features?: {
|
|
29
|
-
range?: boolean | undefined;
|
|
30
|
-
singleTap?: {
|
|
31
|
-
allow?: boolean | undefined;
|
|
32
|
-
intersect?: ("touch" | "native") | undefined;
|
|
33
|
-
} | undefined;
|
|
34
|
-
touch?: boolean | undefined;
|
|
35
|
-
} | undefined;
|
|
36
|
-
selectables?: (string | string[]) | undefined;
|
|
37
|
-
selectionAreaClass?: string | undefined;
|
|
38
|
-
startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
39
|
-
};
|
|
40
|
-
editorPaddingRight?: import('react').CSSProperties["width"];
|
|
41
|
-
enableContextMenu?: boolean;
|
|
42
|
-
disableSelectAll?: boolean;
|
|
43
|
-
isSelecting?: boolean;
|
|
44
|
-
isSelectionAreaVisible?: boolean;
|
|
45
|
-
rightSelectionAreaClassName?: string;
|
|
46
|
-
selectedIds?: Set<string>;
|
|
47
|
-
shadowInputRef?: React.RefObject<HTMLInputElement | null>;
|
|
48
|
-
isSelectable?: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
49
|
-
onKeyDownSelecting?: (editor: import('platejs').SlateEditor, e: KeyboardEvent) => void;
|
|
50
|
-
}, {
|
|
51
|
-
blockSelection: {
|
|
52
|
-
addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
|
|
53
|
-
element: import('platejs').TElement;
|
|
54
|
-
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
55
|
-
disabledWhenFocused?: boolean;
|
|
56
|
-
}) => void>;
|
|
57
|
-
setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
|
|
58
|
-
added: Element[];
|
|
59
|
-
removed: Element[];
|
|
60
|
-
}> & {
|
|
61
|
-
ids?: string[];
|
|
62
|
-
}) => void>;
|
|
63
|
-
add: (id: string[] | string) => void;
|
|
64
|
-
addSelectedRow: (id: string, options?: {
|
|
65
|
-
clear?: boolean;
|
|
66
|
-
delay?: number;
|
|
67
|
-
}) => void;
|
|
68
|
-
clear: () => void;
|
|
69
|
-
delete: (id: string[] | string) => void;
|
|
70
|
-
deselect: () => void;
|
|
71
|
-
first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
|
|
72
|
-
focus: () => void;
|
|
73
|
-
getNodes: (options?: {
|
|
74
|
-
collapseTableRows?: boolean;
|
|
75
|
-
selectionFallback?: boolean;
|
|
76
|
-
sort?: boolean;
|
|
77
|
-
}) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
|
|
78
|
-
has: (id: string[] | string) => boolean;
|
|
79
|
-
isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
80
|
-
moveSelection: (direction: "down" | "up") => void;
|
|
81
|
-
resetSelectedIds: () => void;
|
|
82
|
-
selectAll: () => void;
|
|
83
|
-
set: (id: string[] | string) => void;
|
|
84
|
-
shiftSelection: (direction: "down" | "up") => void;
|
|
85
|
-
unselect: () => void;
|
|
86
|
-
};
|
|
87
|
-
} & Record<"blockSelection", Partial<{
|
|
88
|
-
addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
|
|
89
|
-
element: import('platejs').TElement;
|
|
90
|
-
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
91
|
-
disabledWhenFocused?: boolean;
|
|
92
|
-
}) => void>;
|
|
93
|
-
setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
|
|
94
|
-
added: Element[];
|
|
95
|
-
removed: Element[];
|
|
96
|
-
}> & {
|
|
97
|
-
ids?: string[];
|
|
98
|
-
}) => void>;
|
|
99
|
-
add: (id: string[] | string) => void;
|
|
100
|
-
addSelectedRow: (id: string, options?: {
|
|
101
|
-
clear?: boolean;
|
|
102
|
-
delay?: number;
|
|
103
|
-
}) => void;
|
|
104
|
-
clear: () => void;
|
|
105
|
-
delete: (id: string[] | string) => void;
|
|
106
|
-
deselect: () => void;
|
|
107
|
-
first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
|
|
108
|
-
focus: () => void;
|
|
109
|
-
getNodes: (options?: {
|
|
110
|
-
collapseTableRows?: boolean;
|
|
111
|
-
selectionFallback?: boolean;
|
|
112
|
-
sort?: boolean;
|
|
113
|
-
}) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
|
|
114
|
-
has: (id: string[] | string) => boolean;
|
|
115
|
-
isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
116
|
-
moveSelection: (direction: "down" | "up") => void;
|
|
117
|
-
resetSelectedIds: () => void;
|
|
118
|
-
selectAll: () => void;
|
|
119
|
-
set: (id: string[] | string) => void;
|
|
120
|
-
shiftSelection: (direction: "down" | "up") => void;
|
|
121
|
-
unselect: () => void;
|
|
122
|
-
}>>, Record<"blockSelection", {
|
|
123
|
-
duplicate: () => void;
|
|
124
|
-
insertBlocksAndSelect: (nodes: import('platejs').TElement[], args_1: {
|
|
125
|
-
at: import('platejs').Path;
|
|
126
|
-
insertedCallback?: () => void;
|
|
127
|
-
}) => void;
|
|
128
|
-
removeNodes: () => void;
|
|
129
|
-
select: () => void;
|
|
130
|
-
selectBlocks: (at: import('platejs').Path | import('platejs').TNode) => void;
|
|
131
|
-
setIndent: (indent: number, options?: import('platejs').SetNodesOptions | undefined) => void;
|
|
132
|
-
setNodes: (props: Partial<Omit<import('platejs').TElement, "children">>, options?: import('platejs').SetNodesOptions | undefined) => void;
|
|
133
|
-
setTexts: (props: Partial<Omit<import('platejs').TText, "text">>, options?: Omit<import('platejs').SetNodesOptions, "at"> | undefined) => void;
|
|
134
|
-
}>, {
|
|
135
|
-
isSelected?: (id?: string) => boolean;
|
|
136
|
-
isSelectingSome?: () => boolean;
|
|
137
|
-
}>>[];
|
|
1
|
+
export declare const BlockSelectionKit: any[];
|
|
138
2
|
//# sourceMappingURL=block-selection-kit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-selection-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-selection-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"block-selection-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-selection-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,OAuB7B,CAAC"}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
export declare const CursorOverlayKit:
|
|
2
|
-
cursors: Record<string, import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>>;
|
|
3
|
-
}, {
|
|
4
|
-
cursorOverlay: {
|
|
5
|
-
addCursor: (id: string, cursor: Omit<import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>, "id">) => void;
|
|
6
|
-
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
7
|
-
};
|
|
8
|
-
} & Record<"cursorOverlay", {
|
|
9
|
-
addCursor: (id: string, cursor: Omit<import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>, "id">) => void;
|
|
10
|
-
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
11
|
-
}>, {}, {}>>[];
|
|
1
|
+
export declare const CursorOverlayKit: any[];
|
|
12
2
|
//# sourceMappingURL=cursor-overlay-kit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-overlay-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/cursor-overlay-kit.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"cursor-overlay-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/cursor-overlay-kit.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,OAM5B,CAAC"}
|