@lax-wp/editor 0.3.19 → 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;
@@ -22,8 +22,6 @@ export declare function applyCategoryStyle(dom: HTMLElement, anonymizedData: str
22
22
  /** Remove all chip styling from a DOM element so it renders as inline text. */
23
23
  export declare function clearCategoryStyle(dom: HTMLElement): void;
24
24
  export interface AnonymizedTextOptions {
25
- /** Whether the original value tooltip is shown on hover. */
26
- showTooltip: boolean;
27
25
  placeholderFormat: string;
28
26
  highlightChanges: boolean;
29
27
  isAnonymized: boolean;
@@ -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;