babylonjs-node-geometry-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.
|
@@ -6388,6 +6388,63 @@ declare namespace BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6388
6388
|
|
|
6389
6389
|
|
|
6390
6390
|
|
|
6391
|
+
}
|
|
6392
|
+
declare namespace BABYLON.NodeGeometryEditor {
|
|
6393
|
+
|
|
6394
|
+
|
|
6395
|
+
}
|
|
6396
|
+
declare namespace BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
6397
|
+
/**
|
|
6398
|
+
* Props for an action button in the dialog footer.
|
|
6399
|
+
*/
|
|
6400
|
+
export type DialogActionProps = {
|
|
6401
|
+
/** Button label text. */
|
|
6402
|
+
label: string;
|
|
6403
|
+
/** Click handler. */
|
|
6404
|
+
onClick: () => void;
|
|
6405
|
+
/** Button appearance. Defaults to "secondary". */
|
|
6406
|
+
appearance?: "primary" | "secondary";
|
|
6407
|
+
};
|
|
6408
|
+
/**
|
|
6409
|
+
* Props for the shared Dialog primitive.
|
|
6410
|
+
*/
|
|
6411
|
+
export type DialogProps = {
|
|
6412
|
+
/** Whether the dialog is open. */
|
|
6413
|
+
open: boolean;
|
|
6414
|
+
/** Dialog title. */
|
|
6415
|
+
title: string;
|
|
6416
|
+
/** Dialog content (body). */
|
|
6417
|
+
children: React.ReactNode;
|
|
6418
|
+
/** Action buttons rendered in the footer. */
|
|
6419
|
+
actions?: DialogActionProps[];
|
|
6420
|
+
/** Called when the dialog is dismissed via the close button. */
|
|
6421
|
+
onDismiss?: () => void;
|
|
6422
|
+
};
|
|
6423
|
+
/**
|
|
6424
|
+
* A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
|
|
6425
|
+
*
|
|
6426
|
+
* @example
|
|
6427
|
+
* ```tsx
|
|
6428
|
+
* <Dialog
|
|
6429
|
+
* open={isOpen}
|
|
6430
|
+
* title="Confirm Action"
|
|
6431
|
+
* onDismiss={() => setIsOpen(false)}
|
|
6432
|
+
* actions={[
|
|
6433
|
+
* { label: "Cancel", onClick: () => setIsOpen(false) },
|
|
6434
|
+
* { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
|
|
6435
|
+
* ]}
|
|
6436
|
+
* >
|
|
6437
|
+
* <Text>Are you sure you want to proceed?</Text>
|
|
6438
|
+
* </Dialog>
|
|
6439
|
+
* ```
|
|
6440
|
+
*
|
|
6441
|
+
* @param props - The dialog props.
|
|
6442
|
+
* @returns The dialog element.
|
|
6443
|
+
*/
|
|
6444
|
+
export var Dialog: React.FC<DialogProps>;
|
|
6445
|
+
|
|
6446
|
+
|
|
6447
|
+
|
|
6391
6448
|
}
|
|
6392
6449
|
declare namespace BABYLON.NodeGeometryEditor {
|
|
6393
6450
|
|
|
@@ -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";
|
|
@@ -14756,6 +14808,63 @@ declare namespace BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
14756
14808
|
|
|
14757
14809
|
|
|
14758
14810
|
|
|
14811
|
+
}
|
|
14812
|
+
declare namespace BABYLON.NodeGeometryEditor {
|
|
14813
|
+
|
|
14814
|
+
|
|
14815
|
+
}
|
|
14816
|
+
declare namespace BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
14817
|
+
/**
|
|
14818
|
+
* Props for an action button in the dialog footer.
|
|
14819
|
+
*/
|
|
14820
|
+
export type DialogActionProps = {
|
|
14821
|
+
/** Button label text. */
|
|
14822
|
+
label: string;
|
|
14823
|
+
/** Click handler. */
|
|
14824
|
+
onClick: () => void;
|
|
14825
|
+
/** Button appearance. Defaults to "secondary". */
|
|
14826
|
+
appearance?: "primary" | "secondary";
|
|
14827
|
+
};
|
|
14828
|
+
/**
|
|
14829
|
+
* Props for the shared Dialog primitive.
|
|
14830
|
+
*/
|
|
14831
|
+
export type DialogProps = {
|
|
14832
|
+
/** Whether the dialog is open. */
|
|
14833
|
+
open: boolean;
|
|
14834
|
+
/** Dialog title. */
|
|
14835
|
+
title: string;
|
|
14836
|
+
/** Dialog content (body). */
|
|
14837
|
+
children: React.ReactNode;
|
|
14838
|
+
/** Action buttons rendered in the footer. */
|
|
14839
|
+
actions?: DialogActionProps[];
|
|
14840
|
+
/** Called when the dialog is dismissed via the close button. */
|
|
14841
|
+
onDismiss?: () => void;
|
|
14842
|
+
};
|
|
14843
|
+
/**
|
|
14844
|
+
* A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
|
|
14845
|
+
*
|
|
14846
|
+
* @example
|
|
14847
|
+
* ```tsx
|
|
14848
|
+
* <Dialog
|
|
14849
|
+
* open={isOpen}
|
|
14850
|
+
* title="Confirm Action"
|
|
14851
|
+
* onDismiss={() => setIsOpen(false)}
|
|
14852
|
+
* actions={[
|
|
14853
|
+
* { label: "Cancel", onClick: () => setIsOpen(false) },
|
|
14854
|
+
* { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
|
|
14855
|
+
* ]}
|
|
14856
|
+
* >
|
|
14857
|
+
* <Text>Are you sure you want to proceed?</Text>
|
|
14858
|
+
* </Dialog>
|
|
14859
|
+
* ```
|
|
14860
|
+
*
|
|
14861
|
+
* @param props - The dialog props.
|
|
14862
|
+
* @returns The dialog element.
|
|
14863
|
+
*/
|
|
14864
|
+
export var Dialog: React.FC<DialogProps>;
|
|
14865
|
+
|
|
14866
|
+
|
|
14867
|
+
|
|
14759
14868
|
}
|
|
14760
14869
|
declare namespace BABYLON.NodeGeometryEditor {
|
|
14761
14870
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-geometry-editor",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.0",
|
|
4
4
|
"main": "babylon.nodeGeometryEditor.js",
|
|
5
5
|
"types": "babylon.nodeGeometryEditor.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.
|
|
18
|
+
"babylonjs": "9.7.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|