@oyat/editor 1.7.9 → 1.7.11
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 +22 -5
- 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/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/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 +18 -1
- package/dist/components/editor/plugins/table-base-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/table-kit.d.ts +26 -2
- 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/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 +45 -45
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BaseEditorKit: (import('platejs').SlatePlugin<import('platejs').PluginConfig<"p", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"comment", {}, {
|
|
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
2
|
comment: {
|
|
3
3
|
has: (options: {
|
|
4
4
|
id: string;
|
|
@@ -76,8 +76,8 @@ export declare const BaseEditorKit: (import('platejs').SlatePlugin<import('plate
|
|
|
76
76
|
suggestionData: (node: import('platejs').TElement | import('platejs').TSuggestionText) => import('platejs').TInlineSuggestionData | import('platejs').TSuggestionElement["suggestion"] | undefined;
|
|
77
77
|
withoutSuggestions: (fn: () => void) => void;
|
|
78
78
|
}>, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"textAlign", {}, {}, Record<"textAlign", {
|
|
79
|
-
setNodes: (value: import('@platejs/basic-styles').Alignment,
|
|
80
|
-
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<any, {}, {},
|
|
79
|
+
setNodes: (value: import('@platejs/basic-styles').Alignment, options?: import('platejs').SetNodesOptions) => void;
|
|
80
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<any, {}, {}, Record<any, {
|
|
81
81
|
toggle: () => void;
|
|
82
82
|
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
|
|
83
83
|
toggle: () => void;
|
|
@@ -150,7 +150,7 @@ export declare const BaseEditorKit: (import('platejs').SlatePlugin<import('plate
|
|
|
150
150
|
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
|
|
151
151
|
addMark: (value: string) => void;
|
|
152
152
|
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"lineHeight", {}, {}, Record<"lineHeight", {
|
|
153
|
-
setNodes: (value: number,
|
|
153
|
+
setNodes: (value: number, options?: import('platejs').SetNodesOptions) => void;
|
|
154
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
155
|
insert: {
|
|
156
156
|
inlineEquation: (texExpression?: string | undefined, options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
@@ -198,6 +198,9 @@ export declare const BaseEditorKit: (import('platejs').SlatePlugin<import('plate
|
|
|
198
198
|
col: number;
|
|
199
199
|
row: number;
|
|
200
200
|
}>;
|
|
201
|
+
_selectedCellIds: string[] | null | undefined;
|
|
202
|
+
_selectedTableIds: string[] | null | undefined;
|
|
203
|
+
_selectionVersion: number;
|
|
201
204
|
selectedCells: import('platejs').TElement[] | null;
|
|
202
205
|
selectedTables: import('platejs').TElement[] | null;
|
|
203
206
|
disableExpandOnInsert?: boolean;
|
|
@@ -233,12 +236,19 @@ export declare const BaseEditorKit: (import('platejs').SlatePlugin<import('plate
|
|
|
233
236
|
colSizes?: number[];
|
|
234
237
|
rowSize?: number;
|
|
235
238
|
}) => {
|
|
236
|
-
minHeight: number
|
|
239
|
+
minHeight: number;
|
|
237
240
|
width: number;
|
|
238
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>;
|
|
239
247
|
getColSpan: (cellElem: import('platejs').TTableCellElement) => number;
|
|
240
248
|
getRowSpan: (cellElem: import('platejs').TTableCellElement) => number;
|
|
241
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>;
|
|
242
252
|
};
|
|
243
253
|
}, {
|
|
244
254
|
insert: {
|
|
@@ -269,6 +279,13 @@ export declare const BaseEditorKit: (import('platejs').SlatePlugin<import('plate
|
|
|
269
279
|
};
|
|
270
280
|
}, {
|
|
271
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;
|
|
272
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", {
|
|
273
290
|
openIds?: Set<string>;
|
|
274
291
|
}, {
|
|
@@ -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;;;;;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;;;;;
|
|
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;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