babylonjs-node-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.
- package/babylon.nodeEditor.d.ts +57 -0
- package/babylon.nodeEditor.module.d.ts +109 -0
- package/package.json +2 -2
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -6663,6 +6663,63 @@ declare namespace BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6663
6663
|
|
|
6664
6664
|
|
|
6665
6665
|
|
|
6666
|
+
}
|
|
6667
|
+
declare namespace BABYLON.NodeEditor {
|
|
6668
|
+
|
|
6669
|
+
|
|
6670
|
+
}
|
|
6671
|
+
declare namespace BABYLON.NodeEditor.SharedUIComponents {
|
|
6672
|
+
/**
|
|
6673
|
+
* Props for an action button in the dialog footer.
|
|
6674
|
+
*/
|
|
6675
|
+
export type DialogActionProps = {
|
|
6676
|
+
/** Button label text. */
|
|
6677
|
+
label: string;
|
|
6678
|
+
/** Click handler. */
|
|
6679
|
+
onClick: () => void;
|
|
6680
|
+
/** Button appearance. Defaults to "secondary". */
|
|
6681
|
+
appearance?: "primary" | "secondary";
|
|
6682
|
+
};
|
|
6683
|
+
/**
|
|
6684
|
+
* Props for the shared Dialog primitive.
|
|
6685
|
+
*/
|
|
6686
|
+
export type DialogProps = {
|
|
6687
|
+
/** Whether the dialog is open. */
|
|
6688
|
+
open: boolean;
|
|
6689
|
+
/** Dialog title. */
|
|
6690
|
+
title: string;
|
|
6691
|
+
/** Dialog content (body). */
|
|
6692
|
+
children: React.ReactNode;
|
|
6693
|
+
/** Action buttons rendered in the footer. */
|
|
6694
|
+
actions?: DialogActionProps[];
|
|
6695
|
+
/** Called when the dialog is dismissed via the close button. */
|
|
6696
|
+
onDismiss?: () => void;
|
|
6697
|
+
};
|
|
6698
|
+
/**
|
|
6699
|
+
* A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
|
|
6700
|
+
*
|
|
6701
|
+
* @example
|
|
6702
|
+
* ```tsx
|
|
6703
|
+
* <Dialog
|
|
6704
|
+
* open={isOpen}
|
|
6705
|
+
* title="Confirm Action"
|
|
6706
|
+
* onDismiss={() => setIsOpen(false)}
|
|
6707
|
+
* actions={[
|
|
6708
|
+
* { label: "Cancel", onClick: () => setIsOpen(false) },
|
|
6709
|
+
* { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
|
|
6710
|
+
* ]}
|
|
6711
|
+
* >
|
|
6712
|
+
* <Text>Are you sure you want to proceed?</Text>
|
|
6713
|
+
* </Dialog>
|
|
6714
|
+
* ```
|
|
6715
|
+
*
|
|
6716
|
+
* @param props - The dialog props.
|
|
6717
|
+
* @returns The dialog element.
|
|
6718
|
+
*/
|
|
6719
|
+
export var Dialog: React.FC<DialogProps>;
|
|
6720
|
+
|
|
6721
|
+
|
|
6722
|
+
|
|
6666
6723
|
}
|
|
6667
6724
|
declare namespace BABYLON.NodeEditor {
|
|
6668
6725
|
|
|
@@ -6608,6 +6608,58 @@ export type DraggableLineProps = {
|
|
|
6608
6608
|
};
|
|
6609
6609
|
export const DraggableLine: React.FunctionComponent<DraggableLineProps>;
|
|
6610
6610
|
|
|
6611
|
+
}
|
|
6612
|
+
declare module "babylonjs-node-editor/fluent/primitives/dialog" {
|
|
6613
|
+
import { ReactNode, FC } from "react";
|
|
6614
|
+
/**
|
|
6615
|
+
* Props for an action button in the dialog footer.
|
|
6616
|
+
*/
|
|
6617
|
+
export type DialogActionProps = {
|
|
6618
|
+
/** Button label text. */
|
|
6619
|
+
label: string;
|
|
6620
|
+
/** Click handler. */
|
|
6621
|
+
onClick: () => void;
|
|
6622
|
+
/** Button appearance. Defaults to "secondary". */
|
|
6623
|
+
appearance?: "primary" | "secondary";
|
|
6624
|
+
};
|
|
6625
|
+
/**
|
|
6626
|
+
* Props for the shared Dialog primitive.
|
|
6627
|
+
*/
|
|
6628
|
+
export type DialogProps = {
|
|
6629
|
+
/** Whether the dialog is open. */
|
|
6630
|
+
open: boolean;
|
|
6631
|
+
/** Dialog title. */
|
|
6632
|
+
title: string;
|
|
6633
|
+
/** Dialog content (body). */
|
|
6634
|
+
children: ReactNode;
|
|
6635
|
+
/** Action buttons rendered in the footer. */
|
|
6636
|
+
actions?: DialogActionProps[];
|
|
6637
|
+
/** Called when the dialog is dismissed via the close button. */
|
|
6638
|
+
onDismiss?: () => void;
|
|
6639
|
+
};
|
|
6640
|
+
/**
|
|
6641
|
+
* A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
|
|
6642
|
+
*
|
|
6643
|
+
* @example
|
|
6644
|
+
* ```tsx
|
|
6645
|
+
* <Dialog
|
|
6646
|
+
* open={isOpen}
|
|
6647
|
+
* title="Confirm Action"
|
|
6648
|
+
* onDismiss={() => setIsOpen(false)}
|
|
6649
|
+
* actions={[
|
|
6650
|
+
* { label: "Cancel", onClick: () => setIsOpen(false) },
|
|
6651
|
+
* { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
|
|
6652
|
+
* ]}
|
|
6653
|
+
* >
|
|
6654
|
+
* <Text>Are you sure you want to proceed?</Text>
|
|
6655
|
+
* </Dialog>
|
|
6656
|
+
* ```
|
|
6657
|
+
*
|
|
6658
|
+
* @param props - The dialog props.
|
|
6659
|
+
* @returns The dialog element.
|
|
6660
|
+
*/
|
|
6661
|
+
export const Dialog: FC<DialogProps>;
|
|
6662
|
+
|
|
6611
6663
|
}
|
|
6612
6664
|
declare module "babylonjs-node-editor/fluent/primitives/contextMenu" {
|
|
6613
6665
|
import { ReactElement } from "react";
|
|
@@ -15412,6 +15464,63 @@ declare namespace BABYLON.NodeEditor.SharedUIComponents {
|
|
|
15412
15464
|
|
|
15413
15465
|
|
|
15414
15466
|
|
|
15467
|
+
}
|
|
15468
|
+
declare namespace BABYLON.NodeEditor {
|
|
15469
|
+
|
|
15470
|
+
|
|
15471
|
+
}
|
|
15472
|
+
declare namespace BABYLON.NodeEditor.SharedUIComponents {
|
|
15473
|
+
/**
|
|
15474
|
+
* Props for an action button in the dialog footer.
|
|
15475
|
+
*/
|
|
15476
|
+
export type DialogActionProps = {
|
|
15477
|
+
/** Button label text. */
|
|
15478
|
+
label: string;
|
|
15479
|
+
/** Click handler. */
|
|
15480
|
+
onClick: () => void;
|
|
15481
|
+
/** Button appearance. Defaults to "secondary". */
|
|
15482
|
+
appearance?: "primary" | "secondary";
|
|
15483
|
+
};
|
|
15484
|
+
/**
|
|
15485
|
+
* Props for the shared Dialog primitive.
|
|
15486
|
+
*/
|
|
15487
|
+
export type DialogProps = {
|
|
15488
|
+
/** Whether the dialog is open. */
|
|
15489
|
+
open: boolean;
|
|
15490
|
+
/** Dialog title. */
|
|
15491
|
+
title: string;
|
|
15492
|
+
/** Dialog content (body). */
|
|
15493
|
+
children: React.ReactNode;
|
|
15494
|
+
/** Action buttons rendered in the footer. */
|
|
15495
|
+
actions?: DialogActionProps[];
|
|
15496
|
+
/** Called when the dialog is dismissed via the close button. */
|
|
15497
|
+
onDismiss?: () => void;
|
|
15498
|
+
};
|
|
15499
|
+
/**
|
|
15500
|
+
* A shared dialog component wrapping Fluent UI Dialog with Babylon conventions.
|
|
15501
|
+
*
|
|
15502
|
+
* @example
|
|
15503
|
+
* ```tsx
|
|
15504
|
+
* <Dialog
|
|
15505
|
+
* open={isOpen}
|
|
15506
|
+
* title="Confirm Action"
|
|
15507
|
+
* onDismiss={() => setIsOpen(false)}
|
|
15508
|
+
* actions={[
|
|
15509
|
+
* { label: "Cancel", onClick: () => setIsOpen(false) },
|
|
15510
|
+
* { label: "Confirm", onClick: handleConfirm, appearance: "primary" },
|
|
15511
|
+
* ]}
|
|
15512
|
+
* >
|
|
15513
|
+
* <Text>Are you sure you want to proceed?</Text>
|
|
15514
|
+
* </Dialog>
|
|
15515
|
+
* ```
|
|
15516
|
+
*
|
|
15517
|
+
* @param props - The dialog props.
|
|
15518
|
+
* @returns The dialog element.
|
|
15519
|
+
*/
|
|
15520
|
+
export var Dialog: React.FC<DialogProps>;
|
|
15521
|
+
|
|
15522
|
+
|
|
15523
|
+
|
|
15415
15524
|
}
|
|
15416
15525
|
declare namespace BABYLON.NodeEditor {
|
|
15417
15526
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-editor",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.0",
|
|
4
4
|
"main": "babylon.nodeEditor.js",
|
|
5
5
|
"types": "babylon.nodeEditor.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",
|