@babylonjs/node-geometry-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.
@@ -6227,6 +6227,58 @@ export type DraggableLineProps = {
6227
6227
  };
6228
6228
  export const DraggableLine: React.FunctionComponent<DraggableLineProps>;
6229
6229
 
6230
+ }
6231
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/dialog" {
6232
+ import { ReactNode, FC } from "react";
6233
+ /**
6234
+ * Props for an action button in the dialog footer.
6235
+ */
6236
+ export type DialogActionProps = {
6237
+ /** Button label text. */
6238
+ label: string;
6239
+ /** Click handler. */
6240
+ onClick: () => void;
6241
+ /** Button appearance. Defaults to "secondary". */
6242
+ appearance?: "primary" | "secondary";
6243
+ };
6244
+ /**
6245
+ * Props for the shared Dialog primitive.
6246
+ */
6247
+ export type DialogProps = {
6248
+ /** Whether the dialog is open. */
6249
+ open: boolean;
6250
+ /** Dialog title. */
6251
+ title: string;
6252
+ /** Dialog content (body). */
6253
+ children: ReactNode;
6254
+ /** Action buttons rendered in the footer. */
6255
+ actions?: DialogActionProps[];
6256
+ /** Called when the dialog is dismissed via the close button. */
6257
+ onDismiss?: () => void;
6258
+ };
6259
+ /**
6260
+ * A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
6261
+ *
6262
+ * @example
6263
+ * ```tsx
6264
+ * <Dialog
6265
+ * open={isOpen}
6266
+ * title="Confirm Action"
6267
+ * onDismiss={() => setIsOpen(false)}
6268
+ * actions={[
6269
+ * { label: "Cancel", onClick: () => setIsOpen(false) },
6270
+ * { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
6271
+ * ]}
6272
+ * >
6273
+ * <Text>Are you sure you want to proceed?</Text>
6274
+ * </Dialog>
6275
+ * ```
6276
+ *
6277
+ * @param props - The dialog props.
6278
+ * @returns The dialog element.
6279
+ */
6280
+ export const Dialog: FC<DialogProps>;
6281
+
6230
6282
  }
6231
6283
  declare module "@babylonjs/node-geometry-editor/fluent/primitives/contextMenu" {
6232
6284
  import { ReactElement } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-geometry-editor",
3
- "version": "9.6.2",
3
+ "version": "9.8.0",
4
4
  "main": "dist/babylon.nodeGeometryEditor.js",
5
5
  "module": "dist/babylon.nodeGeometryEditor.js",
6
6
  "esnext": "dist/babylon.nodeGeometryEditor.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.8.0",
27
27
  "@tools/node-geometry-editor": "1.0.0",
28
28
  "react": "^18.2.0",
29
29
  "react-dom": "^18.2.0"