babylonjs-node-particle-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.
@@ -6403,6 +6403,63 @@ declare namespace BABYLON.NodeParticleEditor.SharedUIComponents {
6403
6403
 
6404
6404
 
6405
6405
 
6406
+ }
6407
+ declare namespace BABYLON.NodeParticleEditor {
6408
+
6409
+
6410
+ }
6411
+ declare namespace BABYLON.NodeParticleEditor.SharedUIComponents {
6412
+ /**
6413
+ * Props for an action button in the dialog footer.
6414
+ */
6415
+ export type DialogActionProps = {
6416
+ /** Button label text. */
6417
+ label: string;
6418
+ /** Click handler. */
6419
+ onClick: () => void;
6420
+ /** Button appearance. Defaults to "secondary". */
6421
+ appearance?: "primary" | "secondary";
6422
+ };
6423
+ /**
6424
+ * Props for the shared Dialog primitive.
6425
+ */
6426
+ export type DialogProps = {
6427
+ /** Whether the dialog is open. */
6428
+ open: boolean;
6429
+ /** Dialog title. */
6430
+ title: string;
6431
+ /** Dialog content (body). */
6432
+ children: React.ReactNode;
6433
+ /** Action buttons rendered in the footer. */
6434
+ actions?: DialogActionProps[];
6435
+ /** Called when the dialog is dismissed via the close button. */
6436
+ onDismiss?: () => void;
6437
+ };
6438
+ /**
6439
+ * A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
6440
+ *
6441
+ * @example
6442
+ * ```tsx
6443
+ * <Dialog
6444
+ * open={isOpen}
6445
+ * title="Confirm Action"
6446
+ * onDismiss={() => setIsOpen(false)}
6447
+ * actions={[
6448
+ * { label: "Cancel", onClick: () => setIsOpen(false) },
6449
+ * { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
6450
+ * ]}
6451
+ * >
6452
+ * <Text>Are you sure you want to proceed?</Text>
6453
+ * </Dialog>
6454
+ * ```
6455
+ *
6456
+ * @param props - The dialog props.
6457
+ * @returns The dialog element.
6458
+ */
6459
+ export var Dialog: React.FC<DialogProps>;
6460
+
6461
+
6462
+
6406
6463
  }
6407
6464
  declare namespace BABYLON.NodeParticleEditor {
6408
6465
 
@@ -6213,6 +6213,58 @@ export type DraggableLineProps = {
6213
6213
  };
6214
6214
  export const DraggableLine: React.FunctionComponent<DraggableLineProps>;
6215
6215
 
6216
+ }
6217
+ declare module "babylonjs-node-particle-editor/fluent/primitives/dialog" {
6218
+ import { ReactNode, FC } from "react";
6219
+ /**
6220
+ * Props for an action button in the dialog footer.
6221
+ */
6222
+ export type DialogActionProps = {
6223
+ /** Button label text. */
6224
+ label: string;
6225
+ /** Click handler. */
6226
+ onClick: () => void;
6227
+ /** Button appearance. Defaults to "secondary". */
6228
+ appearance?: "primary" | "secondary";
6229
+ };
6230
+ /**
6231
+ * Props for the shared Dialog primitive.
6232
+ */
6233
+ export type DialogProps = {
6234
+ /** Whether the dialog is open. */
6235
+ open: boolean;
6236
+ /** Dialog title. */
6237
+ title: string;
6238
+ /** Dialog content (body). */
6239
+ children: ReactNode;
6240
+ /** Action buttons rendered in the footer. */
6241
+ actions?: DialogActionProps[];
6242
+ /** Called when the dialog is dismissed via the close button. */
6243
+ onDismiss?: () => void;
6244
+ };
6245
+ /**
6246
+ * A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
6247
+ *
6248
+ * @example
6249
+ * ```tsx
6250
+ * <Dialog
6251
+ * open={isOpen}
6252
+ * title="Confirm Action"
6253
+ * onDismiss={() => setIsOpen(false)}
6254
+ * actions={[
6255
+ * { label: "Cancel", onClick: () => setIsOpen(false) },
6256
+ * { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
6257
+ * ]}
6258
+ * >
6259
+ * <Text>Are you sure you want to proceed?</Text>
6260
+ * </Dialog>
6261
+ * ```
6262
+ *
6263
+ * @param props - The dialog props.
6264
+ * @returns The dialog element.
6265
+ */
6266
+ export const Dialog: FC<DialogProps>;
6267
+
6216
6268
  }
6217
6269
  declare module "babylonjs-node-particle-editor/fluent/primitives/contextMenu" {
6218
6270
  import { ReactElement } from "react";
@@ -14757,6 +14809,63 @@ declare namespace BABYLON.NodeParticleEditor.SharedUIComponents {
14757
14809
 
14758
14810
 
14759
14811
 
14812
+ }
14813
+ declare namespace BABYLON.NodeParticleEditor {
14814
+
14815
+
14816
+ }
14817
+ declare namespace BABYLON.NodeParticleEditor.SharedUIComponents {
14818
+ /**
14819
+ * Props for an action button in the dialog footer.
14820
+ */
14821
+ export type DialogActionProps = {
14822
+ /** Button label text. */
14823
+ label: string;
14824
+ /** Click handler. */
14825
+ onClick: () => void;
14826
+ /** Button appearance. Defaults to "secondary". */
14827
+ appearance?: "primary" | "secondary";
14828
+ };
14829
+ /**
14830
+ * Props for the shared Dialog primitive.
14831
+ */
14832
+ export type DialogProps = {
14833
+ /** Whether the dialog is open. */
14834
+ open: boolean;
14835
+ /** Dialog title. */
14836
+ title: string;
14837
+ /** Dialog content (body). */
14838
+ children: React.ReactNode;
14839
+ /** Action buttons rendered in the footer. */
14840
+ actions?: DialogActionProps[];
14841
+ /** Called when the dialog is dismissed via the close button. */
14842
+ onDismiss?: () => void;
14843
+ };
14844
+ /**
14845
+ * A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
14846
+ *
14847
+ * @example
14848
+ * ```tsx
14849
+ * <Dialog
14850
+ * open={isOpen}
14851
+ * title="Confirm Action"
14852
+ * onDismiss={() => setIsOpen(false)}
14853
+ * actions={[
14854
+ * { label: "Cancel", onClick: () => setIsOpen(false) },
14855
+ * { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
14856
+ * ]}
14857
+ * >
14858
+ * <Text>Are you sure you want to proceed?</Text>
14859
+ * </Dialog>
14860
+ * ```
14861
+ *
14862
+ * @param props - The dialog props.
14863
+ * @returns The dialog element.
14864
+ */
14865
+ export var Dialog: React.FC<DialogProps>;
14866
+
14867
+
14868
+
14760
14869
  }
14761
14870
  declare namespace BABYLON.NodeParticleEditor {
14762
14871
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-particle-editor",
3
- "version": "9.6.1",
3
+ "version": "9.7.0",
4
4
  "main": "babylon.nodeParticleEditor.js",
5
5
  "types": "babylon.nodeParticleEditor.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.1"
18
+ "babylonjs": "9.7.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",