@lax-wp/editor 0.3.28 → 0.4.2
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/components/redline/RedlinePanel.d.ts +6 -1
- package/dist/hooks/useRedlinePanel.d.ts +8 -1
- package/dist/index.es.js +8056 -8031
- package/dist/index.umd.js +81 -77
- package/package.json +1 -1
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { useRedline } from "@/hooks/useRedline";
|
|
2
|
+
interface RedlinePanelProps {
|
|
3
|
+
redline: ReturnType<typeof useRedline>;
|
|
4
|
+
}
|
|
5
|
+
export declare const RedlinePanel: ({ redline }: RedlinePanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export {};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
import type { RedlineChange } from "@/components/redline";
|
|
1
2
|
interface RedlineItemPosition {
|
|
2
3
|
changeId: string;
|
|
3
4
|
top: number;
|
|
4
5
|
left: number;
|
|
5
6
|
showCompact: boolean;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
+
interface UseRedlinePanelParams {
|
|
9
|
+
changes: RedlineChange[];
|
|
10
|
+
navigateToChange: (position: number, timestamp?: string, userId?: string) => void;
|
|
11
|
+
findChangeByMark: (timestamp: string, userId: string) => RedlineChange | null;
|
|
12
|
+
clearMarkHighlight: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const useRedlinePanel: ({ changes, navigateToChange, findChangeByMark, clearMarkHighlight, }: UseRedlinePanelParams) => {
|
|
8
15
|
panelRef: import("react").RefObject<HTMLDivElement>;
|
|
9
16
|
itemRefs: import("react").MutableRefObject<Map<string, HTMLDivElement>>;
|
|
10
17
|
itemPositions: Map<string, RedlineItemPosition>;
|