treege 3.0.0-beta.33 → 3.0.0-beta.34
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.
|
@@ -26,9 +26,21 @@ export interface TreegeEditorContextValue {
|
|
|
26
26
|
* Function to open or close the node actions sheet
|
|
27
27
|
*/
|
|
28
28
|
setIsNodeSheetOpen: (open: boolean) => void;
|
|
29
|
+
/**
|
|
30
|
+
* ID of the node pending deletion confirmation, or null if no deletion is pending
|
|
31
|
+
*/
|
|
32
|
+
pendingDeleteNodeId: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Open the deletion confirmation dialog for a given node
|
|
35
|
+
*/
|
|
36
|
+
openDeleteNodeConfirmation: (id: string) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Close the deletion confirmation dialog (cancels any pending deletion)
|
|
39
|
+
*/
|
|
40
|
+
closeDeleteNodeConfirmation: () => void;
|
|
29
41
|
}
|
|
30
42
|
export interface TreegeEditorProviderProps extends PropsWithChildren {
|
|
31
|
-
value: Omit<TreegeEditorContextValue, "isNodeSheetOpen" | "setIsNodeSheetOpen">;
|
|
43
|
+
value: Omit<TreegeEditorContextValue, "isNodeSheetOpen" | "setIsNodeSheetOpen" | "pendingDeleteNodeId" | "openDeleteNodeConfirmation" | "closeDeleteNodeConfirmation">;
|
|
32
44
|
}
|
|
33
45
|
export declare const TreegeEditorContext: import('react').Context<TreegeEditorContextValue | null>;
|
|
34
46
|
export declare const TreegeEditorProvider: ({ children, value }: TreegeEditorProviderProps) => import("react/jsx-runtime").JSX.Element;
|