babylonjs-node-render-graph-editor 9.6.2 → 9.8.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.
@@ -6380,6 +6380,63 @@ declare namespace BABYLON.NodeRenderGraphEditor.SharedUIComponents {
6380
6380
 
6381
6381
 
6382
6382
 
6383
+ }
6384
+ declare namespace BABYLON.NodeRenderGraphEditor {
6385
+
6386
+
6387
+ }
6388
+ declare namespace BABYLON.NodeRenderGraphEditor.SharedUIComponents {
6389
+ /**
6390
+ * Props for an action button in the dialog footer.
6391
+ */
6392
+ export type DialogActionProps = {
6393
+ /** Button label text. */
6394
+ label: string;
6395
+ /** Click handler. */
6396
+ onClick: () => void;
6397
+ /** Button appearance. Defaults to "secondary". */
6398
+ appearance?: "primary" | "secondary";
6399
+ };
6400
+ /**
6401
+ * Props for the shared Dialog primitive.
6402
+ */
6403
+ export type DialogProps = {
6404
+ /** Whether the dialog is open. */
6405
+ open: boolean;
6406
+ /** Dialog title. */
6407
+ title: string;
6408
+ /** Dialog content (body). */
6409
+ children: React.ReactNode;
6410
+ /** Action buttons rendered in the footer. */
6411
+ actions?: DialogActionProps[];
6412
+ /** Called when the dialog is dismissed via the close button. */
6413
+ onDismiss?: () => void;
6414
+ };
6415
+ /**
6416
+ * A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
6417
+ *
6418
+ * @example
6419
+ * ```tsx
6420
+ * <Dialog
6421
+ * open={isOpen}
6422
+ * title="Confirm Action"
6423
+ * onDismiss={() => setIsOpen(false)}
6424
+ * actions={[
6425
+ * { label: "Cancel", onClick: () => setIsOpen(false) },
6426
+ * { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
6427
+ * ]}
6428
+ * >
6429
+ * <Text>Are you sure you want to proceed?</Text>
6430
+ * </Dialog>
6431
+ * ```
6432
+ *
6433
+ * @param props - The dialog props.
6434
+ * @returns The dialog element.
6435
+ */
6436
+ export var Dialog: React.FC<DialogProps>;
6437
+
6438
+
6439
+
6383
6440
  }
6384
6441
  declare namespace BABYLON.NodeRenderGraphEditor {
6385
6442
 
@@ -6154,6 +6154,58 @@ export type DraggableLineProps = {
6154
6154
  };
6155
6155
  export const DraggableLine: React.FunctionComponent<DraggableLineProps>;
6156
6156
 
6157
+ }
6158
+ declare module "babylonjs-node-render-graph-editor/fluent/primitives/dialog" {
6159
+ import { ReactNode, FC } from "react";
6160
+ /**
6161
+ * Props for an action button in the dialog footer.
6162
+ */
6163
+ export type DialogActionProps = {
6164
+ /** Button label text. */
6165
+ label: string;
6166
+ /** Click handler. */
6167
+ onClick: () => void;
6168
+ /** Button appearance. Defaults to "secondary". */
6169
+ appearance?: "primary" | "secondary";
6170
+ };
6171
+ /**
6172
+ * Props for the shared Dialog primitive.
6173
+ */
6174
+ export type DialogProps = {
6175
+ /** Whether the dialog is open. */
6176
+ open: boolean;
6177
+ /** Dialog title. */
6178
+ title: string;
6179
+ /** Dialog content (body). */
6180
+ children: ReactNode;
6181
+ /** Action buttons rendered in the footer. */
6182
+ actions?: DialogActionProps[];
6183
+ /** Called when the dialog is dismissed via the close button. */
6184
+ onDismiss?: () => void;
6185
+ };
6186
+ /**
6187
+ * A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
6188
+ *
6189
+ * @example
6190
+ * ```tsx
6191
+ * <Dialog
6192
+ * open={isOpen}
6193
+ * title="Confirm Action"
6194
+ * onDismiss={() => setIsOpen(false)}
6195
+ * actions={[
6196
+ * { label: "Cancel", onClick: () => setIsOpen(false) },
6197
+ * { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
6198
+ * ]}
6199
+ * >
6200
+ * <Text>Are you sure you want to proceed?</Text>
6201
+ * </Dialog>
6202
+ * ```
6203
+ *
6204
+ * @param props - The dialog props.
6205
+ * @returns The dialog element.
6206
+ */
6207
+ export const Dialog: FC<DialogProps>;
6208
+
6157
6209
  }
6158
6210
  declare module "babylonjs-node-render-graph-editor/fluent/primitives/contextMenu" {
6159
6211
  import { ReactElement } from "react";
@@ -14675,6 +14727,63 @@ declare namespace BABYLON.NodeRenderGraphEditor.SharedUIComponents {
14675
14727
 
14676
14728
 
14677
14729
 
14730
+ }
14731
+ declare namespace BABYLON.NodeRenderGraphEditor {
14732
+
14733
+
14734
+ }
14735
+ declare namespace BABYLON.NodeRenderGraphEditor.SharedUIComponents {
14736
+ /**
14737
+ * Props for an action button in the dialog footer.
14738
+ */
14739
+ export type DialogActionProps = {
14740
+ /** Button label text. */
14741
+ label: string;
14742
+ /** Click handler. */
14743
+ onClick: () => void;
14744
+ /** Button appearance. Defaults to "secondary". */
14745
+ appearance?: "primary" | "secondary";
14746
+ };
14747
+ /**
14748
+ * Props for the shared Dialog primitive.
14749
+ */
14750
+ export type DialogProps = {
14751
+ /** Whether the dialog is open. */
14752
+ open: boolean;
14753
+ /** Dialog title. */
14754
+ title: string;
14755
+ /** Dialog content (body). */
14756
+ children: React.ReactNode;
14757
+ /** Action buttons rendered in the footer. */
14758
+ actions?: DialogActionProps[];
14759
+ /** Called when the dialog is dismissed via the close button. */
14760
+ onDismiss?: () => void;
14761
+ };
14762
+ /**
14763
+ * A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
14764
+ *
14765
+ * @example
14766
+ * ```tsx
14767
+ * <Dialog
14768
+ * open={isOpen}
14769
+ * title="Confirm Action"
14770
+ * onDismiss={() => setIsOpen(false)}
14771
+ * actions={[
14772
+ * { label: "Cancel", onClick: () => setIsOpen(false) },
14773
+ * { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
14774
+ * ]}
14775
+ * >
14776
+ * <Text>Are you sure you want to proceed?</Text>
14777
+ * </Dialog>
14778
+ * ```
14779
+ *
14780
+ * @param props - The dialog props.
14781
+ * @returns The dialog element.
14782
+ */
14783
+ export var Dialog: React.FC<DialogProps>;
14784
+
14785
+
14786
+
14678
14787
  }
14679
14788
  declare namespace BABYLON.NodeRenderGraphEditor {
14680
14789
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-render-graph-editor",
3
- "version": "9.6.2",
3
+ "version": "9.8.0",
4
4
  "main": "babylon.nodeRenderGraphEditor.js",
5
5
  "types": "babylon.nodeRenderGraphEditor.module.d.ts",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "clean": "rimraf dist && rimraf babylon*.* -g"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "9.6.2"
18
+ "babylonjs": "9.8.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",