babylonjs-node-geometry-editor 8.1.0 → 8.2.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.
@@ -15,10 +15,11 @@ export class SerializationTools {
15
15
  declare module "babylonjs-node-geometry-editor/portal" {
16
16
  import * as React from "react";
17
17
  import { GlobalState } from "babylonjs-node-geometry-editor/globalState";
18
+ import { PropsWithChildren } from "react";
18
19
  interface IPortalProps {
19
20
  globalState: GlobalState;
20
21
  }
21
- export class Portal extends React.Component<IPortalProps> {
22
+ export class Portal extends React.Component<PropsWithChildren<IPortalProps>> {
22
23
  render(): React.ReactPortal;
23
24
  }
24
25
  export {};
@@ -1522,6 +1523,7 @@ export const SplitContext: import("react").Context<ISplitContext>;
1522
1523
 
1523
1524
  }
1524
1525
  declare module "babylonjs-node-geometry-editor/split/splitContainer" {
1526
+ import { PropsWithChildren } from "react";
1525
1527
  import { SplitDirection } from "babylonjs-node-geometry-editor/split/splitContext";
1526
1528
  /**
1527
1529
  * Split container properties
@@ -1578,7 +1580,7 @@ export interface ISplitContainerProps {
1578
1580
  * @param props defines the split container properties
1579
1581
  * @returns the split container component
1580
1582
  */
1581
- export const SplitContainer: React.FC<ISplitContainerProps>;
1583
+ export const SplitContainer: React.FC<PropsWithChildren<ISplitContainerProps>>;
1582
1584
 
1583
1585
  }
1584
1586
  declare module "babylonjs-node-geometry-editor/nodeGraphSystem/typeLedger" {
@@ -3217,9 +3219,7 @@ export class ColorPickerLine extends React.Component<IColorPickerLineProps, ICol
3217
3219
  constructor(props: IColorPickerLineProps);
3218
3220
  syncPositions(): void;
3219
3221
  shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
3220
- getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
3221
- children?: React.ReactNode | undefined;
3222
- }>): string;
3222
+ getHexString(props?: Readonly<IColorPickerLineProps>): string;
3223
3223
  componentDidUpdate(): void;
3224
3224
  componentDidMount(): void;
3225
3225
 
@@ -3252,9 +3252,7 @@ interface IColorLineComponentState {
3252
3252
  export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
3253
3253
  constructor(props: IColorLineProps);
3254
3254
  shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
3255
- getValue(props?: Readonly<IColorLineProps> & Readonly<{
3256
- children?: React.ReactNode | undefined;
3257
- }>): Color4;
3255
+ getValue(props?: Readonly<IColorLineProps>): Color4;
3258
3256
  setColorFromString(colorString: string): void;
3259
3257
  setColor(newColor: Color4): void;
3260
3258
  switchExpandState(): void;
@@ -3441,6 +3439,7 @@ export const Icon: React.FC<IconProps>;
3441
3439
 
3442
3440
  }
3443
3441
  declare module "babylonjs-node-geometry-editor/components/Button" {
3442
+ import { PropsWithChildren } from "react";
3444
3443
  export type ButtonProps = {
3445
3444
  disabled?: boolean;
3446
3445
  active?: boolean;
@@ -3450,7 +3449,7 @@ export type ButtonProps = {
3450
3449
  title?: string;
3451
3450
  backgroundColor?: string;
3452
3451
  };
3453
- export const Button: React.FC<ButtonProps>;
3452
+ export const Button: React.FC<PropsWithChildren<ButtonProps>>;
3454
3453
 
3455
3454
  }
3456
3455
  declare module "babylonjs-node-geometry-editor/components/reactGraphSystem/useGraphContext" {
@@ -3462,7 +3461,7 @@ export const useGraphContext: () => import("babylonjs-node-geometry-editor/compo
3462
3461
 
3463
3462
  }
3464
3463
  declare module "babylonjs-node-geometry-editor/components/reactGraphSystem/NodeRenderer" {
3465
- import { ComponentType } from "react";
3464
+ import { ComponentType, PropsWithChildren } from "react";
3466
3465
  import { Nullable } from "babylonjs/types";
3467
3466
  export type IVisualRecordsType = Record<string, {
3468
3467
  x: number;
@@ -3534,7 +3533,7 @@ export interface INodeRendererProps {
3534
3533
 
3535
3534
  }
3536
3535
  declare module "babylonjs-node-geometry-editor/components/reactGraphSystem/GraphNodesContainer" {
3537
- import { FC } from "react";
3536
+ import { FC, PropsWithChildren } from "react";
3538
3537
  export interface IGraphContainerProps {
3539
3538
  onNodeMoved: (id: string, x: number, y: number) => void;
3540
3539
  id: string;
@@ -3544,11 +3543,11 @@ export interface IGraphContainerProps {
3544
3543
  * @param props properties
3545
3544
  * @returns graph node container element
3546
3545
  */
3547
- export const GraphNodesContainer: FC<IGraphContainerProps>;
3546
+ export const GraphNodesContainer: FC<PropsWithChildren<IGraphContainerProps>>;
3548
3547
 
3549
3548
  }
3550
3549
  declare module "babylonjs-node-geometry-editor/components/reactGraphSystem/GraphNode" {
3551
- import { FC } from "react";
3550
+ import { FC, PropsWithChildren } from "react";
3552
3551
  export interface IGraphNodeProps {
3553
3552
  id: string;
3554
3553
  name: string;
@@ -3560,11 +3559,11 @@ export interface IGraphNodeProps {
3560
3559
  highlighted?: boolean;
3561
3560
  parentContainerId: string;
3562
3561
  }
3563
- export const SingleGraphNode: FC<IGraphNodeProps>;
3562
+ export const SingleGraphNode: FC<PropsWithChildren<IGraphNodeProps>>;
3564
3563
 
3565
3564
  }
3566
3565
  declare module "babylonjs-node-geometry-editor/components/reactGraphSystem/GraphLinesContainer" {
3567
- import { FC } from "react";
3566
+ import { FC, PropsWithChildren } from "react";
3568
3567
  /**
3569
3568
  * props for the GraphLineContainer
3570
3569
  */
@@ -3579,7 +3578,7 @@ export interface IGraphLinesContainerProps {
3579
3578
  * @param props
3580
3579
  * @returns
3581
3580
  */
3582
- export const GraphLinesContainer: FC<IGraphLinesContainerProps>;
3581
+ export const GraphLinesContainer: FC<PropsWithChildren<IGraphLinesContainerProps>>;
3583
3582
 
3584
3583
  }
3585
3584
  declare module "babylonjs-node-geometry-editor/components/reactGraphSystem/GraphLine" {
@@ -3640,7 +3639,7 @@ export const GraphContextManager: import("react").Context<IGraphContext>;
3640
3639
 
3641
3640
  }
3642
3641
  declare module "babylonjs-node-geometry-editor/components/reactGraphSystem/GraphContainer" {
3643
- import { FC } from "react";
3642
+ import { FC, PropsWithChildren } from "react";
3644
3643
  export interface IGraphContainerProps {
3645
3644
  }
3646
3645
  /**
@@ -3649,11 +3648,11 @@ export interface IGraphContainerProps {
3649
3648
  * @param props
3650
3649
  * @returns
3651
3650
  */
3652
- export const GraphContainer: FC<IGraphContainerProps>;
3651
+ export const GraphContainer: FC<PropsWithChildren<IGraphContainerProps>>;
3653
3652
 
3654
3653
  }
3655
3654
  declare module "babylonjs-node-geometry-editor/components/reactGraphSystem/GraphConnectorHandle" {
3656
- import { FC } from "react";
3655
+ import { FC, PropsWithChildren } from "react";
3657
3656
  /**
3658
3657
  * Props for the connector
3659
3658
  */
@@ -3696,7 +3695,7 @@ export interface IGraphConnectorHandlerProps {
3696
3695
  * drag the handle in a node and drop it in another node to create a connection.
3697
3696
  * @returns connector element
3698
3697
  */
3699
- export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps>;
3698
+ export const GraphConnectorHandler: FC<PropsWithChildren<IGraphConnectorHandlerProps>>;
3700
3699
 
3701
3700
  }
3702
3701
  declare module "babylonjs-node-geometry-editor/components/lines/OptionsLineComponent" {
@@ -3801,9 +3800,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerLineCo
3801
3800
  constructor(props: IColorPickerLineComponentProps);
3802
3801
  syncPositions(): void;
3803
3802
  shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
3804
- getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
3805
- children?: React.ReactNode | undefined;
3806
- }>): string;
3803
+ getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
3807
3804
  componentDidUpdate(): void;
3808
3805
  componentDidMount(): void;
3809
3806
 
@@ -3836,9 +3833,7 @@ interface IColorLineComponentState {
3836
3833
  export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
3837
3834
  constructor(props: IColorLineComponentProps);
3838
3835
  shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
3839
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
3840
- children?: React.ReactNode | undefined;
3841
- }>): Color4;
3836
+ getValue(props?: Readonly<IColorLineComponentProps>): Color4;
3842
3837
  setColorFromString(colorString: string): void;
3843
3838
  setColor(newColor: Color4): void;
3844
3839
  switchExpandState(): void;
@@ -4138,7 +4133,7 @@ export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
4138
4133
 
4139
4134
  }
4140
4135
  declare module "babylonjs-node-geometry-editor/components/layout/FlexibleDropZone" {
4141
- import { FC } from "react";
4136
+ import { FC, PropsWithChildren } from "react";
4142
4137
  /**
4143
4138
  * Arguments for the FlexibleDropZone component.
4144
4139
  */
@@ -4158,11 +4153,11 @@ export interface IFlexibleDropZoneProps {
4158
4153
  * @param props properties
4159
4154
  * @returns drop zone element
4160
4155
  */
4161
- export const FlexibleDropZone: FC<IFlexibleDropZoneProps>;
4156
+ export const FlexibleDropZone: FC<PropsWithChildren<IFlexibleDropZoneProps>>;
4162
4157
 
4163
4158
  }
4164
4159
  declare module "babylonjs-node-geometry-editor/components/layout/FlexibleDragHandler" {
4165
- import { FC } from "react";
4160
+ import { FC, PropsWithChildren } from "react";
4166
4161
  /**
4167
4162
  * Arguments for the DragHandler component.
4168
4163
  */
@@ -4181,11 +4176,11 @@ export interface IFlexibleDragHandlerProps {
4181
4176
  * @param props properties
4182
4177
  * @returns DragHandler element
4183
4178
  */
4184
- export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps>;
4179
+ export const FlexibleDragHandler: FC<PropsWithChildren<IFlexibleDragHandlerProps>>;
4185
4180
 
4186
4181
  }
4187
4182
  declare module "babylonjs-node-geometry-editor/components/layout/FlexibleColumn" {
4188
- import { FC } from "react";
4183
+ import { FC, PropsWithChildren } from "react";
4189
4184
  /**
4190
4185
  * Arguments for the Column component.
4191
4186
  */
@@ -4201,7 +4196,7 @@ export interface IFlexibleColumnProps {
4201
4196
  * @param props
4202
4197
  * @returns
4203
4198
  */
4204
- export const FlexibleColumn: FC<IFlexibleColumnProps>;
4199
+ export const FlexibleColumn: FC<PropsWithChildren<IFlexibleColumnProps>>;
4205
4200
 
4206
4201
  }
4207
4202
  declare module "babylonjs-node-geometry-editor/components/layout/DraggableIcon" {
@@ -4366,7 +4361,7 @@ export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
4366
4361
 
4367
4362
  }
4368
4363
  declare module "babylonjs-node-geometry-editor/components/bars/CommandBarComponent" {
4369
- import { FC } from "react";
4364
+ import { FC, PropsWithChildren } from "react";
4370
4365
  export interface ICommandBarComponentProps {
4371
4366
  onSaveButtonClicked?: () => void;
4372
4367
  onSaveToSnippetButtonClicked?: () => void;
@@ -4381,7 +4376,7 @@ export interface ICommandBarComponentProps {
4381
4376
  artboardColor?: string;
4382
4377
  artboardColorPickerColor?: string;
4383
4378
  }
4384
- export const CommandBarComponent: FC<ICommandBarComponentProps>;
4379
+ export const CommandBarComponent: FC<PropsWithChildren<ICommandBarComponentProps>>;
4385
4380
 
4386
4381
  }
4387
4382
  declare module "babylonjs-node-geometry-editor/colorPicker/hexColor" {
@@ -4492,7 +4487,7 @@ declare module BABYLON.NodeGeometryEditor {
4492
4487
  interface IPortalProps {
4493
4488
  globalState: GlobalState;
4494
4489
  }
4495
- export class Portal extends React.Component<IPortalProps> {
4490
+ export class Portal extends React.Component<React.PropsWithChildren<IPortalProps>> {
4496
4491
  render(): React.ReactPortal;
4497
4492
  }
4498
4493
 
@@ -5816,7 +5811,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
5816
5811
  * @param props defines the split container properties
5817
5812
  * @returns the split container component
5818
5813
  */
5819
- export var SplitContainer: React.FC<ISplitContainerProps>;
5814
+ export var SplitContainer: React.FC<React.PropsWithChildren<ISplitContainerProps>>;
5820
5815
 
5821
5816
 
5822
5817
 
@@ -7578,9 +7573,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7578
7573
  constructor(props: IColorPickerLineProps);
7579
7574
  syncPositions(): void;
7580
7575
  shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
7581
- getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
7582
- children?: React.ReactNode | undefined;
7583
- }>): string;
7576
+ getHexString(props?: Readonly<IColorPickerLineProps>): string;
7584
7577
  componentDidUpdate(): void;
7585
7578
  componentDidMount(): void;
7586
7579
  render(): import("react/jsx-runtime").JSX.Element;
@@ -7613,9 +7606,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7613
7606
  export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
7614
7607
  constructor(props: IColorLineProps);
7615
7608
  shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
7616
- getValue(props?: Readonly<IColorLineProps> & Readonly<{
7617
- children?: React.ReactNode | undefined;
7618
- }>): BABYLON.Color4;
7609
+ getValue(props?: Readonly<IColorLineProps>): BABYLON.Color4;
7619
7610
  setColorFromString(colorString: string): void;
7620
7611
  setColor(newColor: BABYLON.Color4): void;
7621
7612
  switchExpandState(): void;
@@ -7866,7 +7857,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7866
7857
  title?: string;
7867
7858
  backgroundColor?: string;
7868
7859
  };
7869
- export var Button: React.FC<ButtonProps>;
7860
+ export var Button: React.FC<React.PropsWithChildren<ButtonProps>>;
7870
7861
 
7871
7862
 
7872
7863
 
@@ -7956,7 +7947,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7956
7947
  * @param props
7957
7948
  * @returns
7958
7949
  */
7959
- export const NodeRenderer: (props: INodeRendererProps) => import("react/jsx-runtime").JSX.Element;
7950
+ export const NodeRenderer: (props: React.PropsWithChildren<INodeRendererProps>) => import("react/jsx-runtime").JSX.Element;
7960
7951
 
7961
7952
 
7962
7953
 
@@ -7975,7 +7966,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7975
7966
  * @param props properties
7976
7967
  * @returns graph node container element
7977
7968
  */
7978
- export var GraphNodesContainer: React.FC<IGraphContainerProps>;
7969
+ export var GraphNodesContainer: React.FC<React.PropsWithChildren<IGraphContainerProps>>;
7979
7970
 
7980
7971
 
7981
7972
 
@@ -7996,7 +7987,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7996
7987
  highlighted?: boolean;
7997
7988
  parentContainerId: string;
7998
7989
  }
7999
- export var SingleGraphNode: React.FC<IGraphNodeProps>;
7990
+ export var SingleGraphNode: React.FC<React.PropsWithChildren<IGraphNodeProps>>;
8000
7991
 
8001
7992
 
8002
7993
 
@@ -8020,7 +8011,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8020
8011
  * @param props
8021
8012
  * @returns
8022
8013
  */
8023
- export var GraphLinesContainer: React.FC<IGraphLinesContainerProps>;
8014
+ export var GraphLinesContainer: React.FC<React.PropsWithChildren<IGraphLinesContainerProps>>;
8024
8015
 
8025
8016
 
8026
8017
 
@@ -8106,7 +8097,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8106
8097
  * @param props
8107
8098
  * @returns
8108
8099
  */
8109
- export var GraphContainer: React.FC<IGraphContainerProps>;
8100
+ export var GraphContainer: React.FC<React.PropsWithChildren<IGraphContainerProps>>;
8110
8101
 
8111
8102
 
8112
8103
 
@@ -8158,7 +8149,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8158
8149
  * drag the handle in a node and drop it in another node to create a connection.
8159
8150
  * @returns connector element
8160
8151
  */
8161
- export var GraphConnectorHandler: React.FC<IGraphConnectorHandlerProps>;
8152
+ export var GraphConnectorHandler: React.FC<React.PropsWithChildren<IGraphConnectorHandlerProps>>;
8162
8153
 
8163
8154
 
8164
8155
 
@@ -8280,9 +8271,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8280
8271
  constructor(props: IColorPickerLineComponentProps);
8281
8272
  syncPositions(): void;
8282
8273
  shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
8283
- getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
8284
- children?: React.ReactNode | undefined;
8285
- }>): string;
8274
+ getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
8286
8275
  componentDidUpdate(): void;
8287
8276
  componentDidMount(): void;
8288
8277
  render(): import("react/jsx-runtime").JSX.Element;
@@ -8315,9 +8304,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8315
8304
  export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
8316
8305
  constructor(props: IColorLineComponentProps);
8317
8306
  shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
8318
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
8319
- children?: React.ReactNode | undefined;
8320
- }>): BABYLON.Color4;
8307
+ getValue(props?: Readonly<IColorLineComponentProps>): BABYLON.Color4;
8321
8308
  setColorFromString(colorString: string): void;
8322
8309
  setColor(newColor: BABYLON.Color4): void;
8323
8310
  switchExpandState(): void;
@@ -8677,7 +8664,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8677
8664
  * @param props properties
8678
8665
  * @returns drop zone element
8679
8666
  */
8680
- export var FlexibleDropZone: React.FC<IFlexibleDropZoneProps>;
8667
+ export var FlexibleDropZone: React.FC<React.PropsWithChildren<IFlexibleDropZoneProps>>;
8681
8668
 
8682
8669
 
8683
8670
 
@@ -8705,7 +8692,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8705
8692
  * @param props properties
8706
8693
  * @returns DragHandler element
8707
8694
  */
8708
- export var FlexibleDragHandler: React.FC<IFlexibleDragHandlerProps>;
8695
+ export var FlexibleDragHandler: React.FC<React.PropsWithChildren<IFlexibleDragHandlerProps>>;
8709
8696
 
8710
8697
 
8711
8698
 
@@ -8730,7 +8717,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8730
8717
  * @param props
8731
8718
  * @returns
8732
8719
  */
8733
- export var FlexibleColumn: React.FC<IFlexibleColumnProps>;
8720
+ export var FlexibleColumn: React.FC<React.PropsWithChildren<IFlexibleColumnProps>>;
8734
8721
 
8735
8722
 
8736
8723
 
@@ -8939,7 +8926,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
8939
8926
  artboardColor?: string;
8940
8927
  artboardColorPickerColor?: string;
8941
8928
  }
8942
- export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
8929
+ export var CommandBarComponent: React.FC<React.PropsWithChildren<ICommandBarComponentProps>>;
8943
8930
 
8944
8931
 
8945
8932
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-geometry-editor",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
4
4
  "main": "babylon.nodeGeometryEditor.js",
5
5
  "types": "babylon.nodeGeometryEditor.module.d.ts",
6
6
  "files": [
@@ -14,22 +14,22 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^8.1.0"
17
+ "babylonjs": "^8.2.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",
21
21
  "@dev/shared-ui-components": "1.0.0",
22
22
  "@tools/node-geometry-editor": "1.0.0",
23
- "@types/react": "^17.0.30",
24
- "@types/react-dom": "^17.0.10",
23
+ "@types/react": "^18.0.0",
24
+ "@types/react-dom": "^18.0.0",
25
25
  "css-loader": "^7.1.0",
26
- "react": "^17.0.2",
26
+ "react": "^18.2.0",
27
27
  "react-contextmenu": "RaananW/react-contextmenu",
28
- "react-dom": "^17.0.2",
28
+ "react-dom": "^18.2.0",
29
29
  "sass-loader": "^16.0.0",
30
30
  "source-map-loader": "^4.0.0",
31
31
  "ts-loader": "^9.2.6",
32
- "webpack": "^5.73.0",
32
+ "webpack": "^5.98.0",
33
33
  "webpack-cli": "^5.1.0",
34
34
  "webpack-merge": "^5.8.0"
35
35
  },