@lax-wp/editor 0.3.20 → 0.3.21
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.
|
@@ -2,6 +2,7 @@ import type { ReactNode } from "react";
|
|
|
2
2
|
import { type TEditorMode } from "@/constants/Toolbar";
|
|
3
3
|
import type { PageConfig } from "@/components/toolbar/page/PageSizeSelector";
|
|
4
4
|
import type { EditorConfig } from "@/config/EditorConfig";
|
|
5
|
+
import "@/extensions/plugins/ViewModeDocumentPreview";
|
|
5
6
|
export interface ToolbarContextType {
|
|
6
7
|
onPresentationModeToggle: () => void;
|
|
7
8
|
pageConfig: PageConfig;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
declare module "@tiptap/core" {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
viewModeDocumentPreview: {
|
|
5
|
+
enterViewModeCleanPreview: () => ReturnType;
|
|
6
|
+
exitViewModeCleanPreview: () => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
type ViewModePreviewStorage = {
|
|
11
|
+
previewSnapshot: unknown | null;
|
|
12
|
+
previewActive: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare module "@tiptap/core" {
|
|
15
|
+
interface Storage {
|
|
16
|
+
viewModeDocumentPreview: ViewModePreviewStorage;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const ViewModeDocumentPreview: Extension<any, any>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cleanDocumentJsonForView(docJson: unknown): unknown;
|