@plait/common 0.58.0 → 0.59.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/package.json
CHANGED
package/utils/text.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import { PlaitBoard, PlaitElement } from '@plait/core';
|
|
|
2
2
|
import { CustomText, TextManage } from '@plait/text';
|
|
3
3
|
export declare const getTextManages: (element: PlaitElement) => TextManage[];
|
|
4
4
|
export declare const getFirstTextManage: (element: PlaitElement) => TextManage;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const getTextEditorsByElement: (element: PlaitElement) => (import("slate").BaseEditor & import("slate-angular").AngularEditor & import("slate-history").HistoryEditor)[];
|
|
6
6
|
export declare const getFirstTextEditor: (element: PlaitElement) => import("slate").BaseEditor & import("slate-angular").AngularEditor & import("slate-history").HistoryEditor;
|
|
7
7
|
export declare const findFirstTextEditor: (board: PlaitBoard) => null;
|
|
8
8
|
export declare const getTextMarksByElement: (element: PlaitElement) => Omit<CustomText, "text">;
|
|
9
9
|
export declare const getElementsText: (elements: PlaitElement[]) => string;
|
|
10
|
+
export declare const getTextEditors: (board: PlaitBoard, elements?: PlaitElement[]) => (import("slate").BaseEditor & import("slate-angular").AngularEditor & import("slate-history").HistoryEditor)[] | undefined;
|
|
11
|
+
export declare const getEditingTextEditor: (board: PlaitBoard, elements?: PlaitElement[]) => (import("slate").BaseEditor & import("slate-angular").AngularEditor & import("slate-history").HistoryEditor) | undefined;
|
|
10
12
|
export declare const ELEMENT_TO_TEXT_MANAGES: WeakMap<PlaitElement, TextManage[]>;
|