@babylonjs/node-render-graph-editor 9.6.2 → 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.
@@ -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";
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.7.0",
4
4
  "main": "dist/babylon.nodeRenderGraphEditor.js",
5
5
  "module": "dist/babylon.nodeRenderGraphEditor.js",
6
6
  "esnext": "dist/babylon.nodeRenderGraphEditor.js",
@@ -23,7 +23,7 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "9.6.2",
26
+ "@babylonjs/core": "9.7.0",
27
27
  "@tools/node-render-graph-editor": "1.0.0",
28
28
  "react": "^18.2.0",
29
29
  "react-dom": "^18.2.0"