@lax-wp/editor 0.3.2 → 0.3.3

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.
@@ -73,10 +73,7 @@ export interface EditorConfig {
73
73
  insertTableFromData: ({ tableType, data, columns, options }: InsertTableUsingDataProps) => void;
74
74
  updateTableValues: () => void;
75
75
  }) => void;
76
- /** Sidebar configuration for redline positioning */
77
- sidebarConfig?: {
78
- /** ID of the sidebar element (default: 'editor-sidebar-qwCfsxssdsfsd') */
79
- sidebarId?: string;
80
- };
76
+ /** Parent container id for redline positioning */
77
+ parentContainerId?: string;
81
78
  }
82
79
  export declare const defaultEditorConfig: EditorConfig;
@@ -0,0 +1,25 @@
1
+ interface RedlineItemPosition {
2
+ changeId: string;
3
+ top: number;
4
+ left: number;
5
+ showCompact: boolean;
6
+ }
7
+ export declare const useRedlinePanel: () => {
8
+ panelRef: import("react").RefObject<HTMLDivElement>;
9
+ itemRefs: import("react").MutableRefObject<Map<string, HTMLDivElement>>;
10
+ itemPositions: Map<string, RedlineItemPosition>;
11
+ activeItemId: string | null;
12
+ popupPosition: {
13
+ top: number;
14
+ left: number;
15
+ showBelow: boolean;
16
+ } | null;
17
+ setActiveItemId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
18
+ setPopupPosition: import("react").Dispatch<import("react").SetStateAction<{
19
+ top: number;
20
+ left: number;
21
+ showBelow: boolean;
22
+ } | null>>;
23
+ handleLabelClick: (changeId: string) => void;
24
+ };
25
+ export {};