@babylonjs/node-particle-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.
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-particle-editor",
3
- "version": "9.6.2",
3
+ "version": "9.7.0",
4
4
  "main": "dist/babylon.nodeParticleEditor.js",
5
5
  "module": "dist/babylon.nodeParticleEditor.js",
6
6
  "esnext": "dist/babylon.nodeParticleEditor.js",