@babylonjs/node-editor 9.6.1 → 9.7.0
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.
|
@@ -6608,6 +6608,58 @@ export type DraggableLineProps = {
|
|
|
6608
6608
|
};
|
|
6609
6609
|
export const DraggableLine: React.FunctionComponent<DraggableLineProps>;
|
|
6610
6610
|
|
|
6611
|
+
}
|
|
6612
|
+
declare module "@babylonjs/node-editor/fluent/primitives/dialog" {
|
|
6613
|
+
import { ReactNode, FC } from "react";
|
|
6614
|
+
/**
|
|
6615
|
+
* Props for an action button in the dialog footer.
|
|
6616
|
+
*/
|
|
6617
|
+
export type DialogActionProps = {
|
|
6618
|
+
/** Button label text. */
|
|
6619
|
+
label: string;
|
|
6620
|
+
/** Click handler. */
|
|
6621
|
+
onClick: () => void;
|
|
6622
|
+
/** Button appearance. Defaults to "secondary". */
|
|
6623
|
+
appearance?: "primary" | "secondary";
|
|
6624
|
+
};
|
|
6625
|
+
/**
|
|
6626
|
+
* Props for the shared Dialog primitive.
|
|
6627
|
+
*/
|
|
6628
|
+
export type DialogProps = {
|
|
6629
|
+
/** Whether the dialog is open. */
|
|
6630
|
+
open: boolean;
|
|
6631
|
+
/** Dialog title. */
|
|
6632
|
+
title: string;
|
|
6633
|
+
/** Dialog content (body). */
|
|
6634
|
+
children: ReactNode;
|
|
6635
|
+
/** Action buttons rendered in the footer. */
|
|
6636
|
+
actions?: DialogActionProps[];
|
|
6637
|
+
/** Called when the dialog is dismissed via the close button. */
|
|
6638
|
+
onDismiss?: () => void;
|
|
6639
|
+
};
|
|
6640
|
+
/**
|
|
6641
|
+
* A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
|
|
6642
|
+
*
|
|
6643
|
+
* @example
|
|
6644
|
+
* ```tsx
|
|
6645
|
+
* <Dialog
|
|
6646
|
+
* open={isOpen}
|
|
6647
|
+
* title="Confirm Action"
|
|
6648
|
+
* onDismiss={() => setIsOpen(false)}
|
|
6649
|
+
* actions={[
|
|
6650
|
+
* { label: "Cancel", onClick: () => setIsOpen(false) },
|
|
6651
|
+
* { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
|
|
6652
|
+
* ]}
|
|
6653
|
+
* >
|
|
6654
|
+
* <Text>Are you sure you want to proceed?</Text>
|
|
6655
|
+
* </Dialog>
|
|
6656
|
+
* ```
|
|
6657
|
+
*
|
|
6658
|
+
* @param props - The dialog props.
|
|
6659
|
+
* @returns The dialog element.
|
|
6660
|
+
*/
|
|
6661
|
+
export const Dialog: FC<DialogProps>;
|
|
6662
|
+
|
|
6611
6663
|
}
|
|
6612
6664
|
declare module "@babylonjs/node-editor/fluent/primitives/contextMenu" {
|
|
6613
6665
|
import { ReactElement } from "react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-editor",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.0",
|
|
4
4
|
"main": "dist/babylon.nodeEditor.js",
|
|
5
5
|
"module": "dist/babylon.nodeEditor.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeEditor.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babylonjs/core": "9.
|
|
26
|
+
"@babylonjs/core": "9.7.0",
|
|
27
27
|
"@tools/node-editor": "1.0.0",
|
|
28
28
|
"react": "^18.2.0",
|
|
29
29
|
"react-dom": "^18.2.0"
|