@oyat/editor 1.0.7 → 1.1.1
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/index.d.ts +27 -1
- package/dist/index.js +824 -31
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -12,13 +12,39 @@ export declare const styles: string;
|
|
|
12
12
|
|
|
13
13
|
// Export other commonly used components
|
|
14
14
|
export { EditorKit } from "./components/editor/editor-kit";
|
|
15
|
+
export { BaseEditorKit } from "./components/editor/editor-base-kit";
|
|
15
16
|
export type { MyEditor } from "./components/editor/editor-kit";
|
|
16
17
|
|
|
17
18
|
// Re-export commonly used types from platejs
|
|
18
19
|
export type { Value } from "platejs";
|
|
19
20
|
|
|
20
21
|
// Export utility functions
|
|
21
|
-
export {
|
|
22
|
+
export {
|
|
23
|
+
normalizeNodeId,
|
|
24
|
+
createSlateEditor,
|
|
25
|
+
createSlatePlugin,
|
|
26
|
+
serializeHtml,
|
|
27
|
+
PlateStatic,
|
|
28
|
+
} from "platejs";
|
|
29
|
+
|
|
30
|
+
// Export platejs/react
|
|
31
|
+
export {
|
|
32
|
+
Plate,
|
|
33
|
+
PlateView,
|
|
34
|
+
usePlateEditor,
|
|
35
|
+
usePlateViewEditor,
|
|
36
|
+
toPlatePlugin,
|
|
37
|
+
PlateLeaf,
|
|
38
|
+
type PlateLeafProps,
|
|
39
|
+
} from "platejs/react";
|
|
40
|
+
|
|
41
|
+
// Export platejs/diff
|
|
42
|
+
export {
|
|
43
|
+
computeDiff,
|
|
44
|
+
withGetFragmentExcludeDiff,
|
|
45
|
+
type DiffOperation,
|
|
46
|
+
type DiffUpdate,
|
|
47
|
+
} from "@platejs/diff";
|
|
22
48
|
|
|
23
49
|
// Export UI components that users might want to customize
|
|
24
50
|
export { Editor, EditorContainer, EditorView } from "./components/ui/editor";
|