@babylonjs/inspector 8.1.1 → 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.
@@ -69,8 +69,12 @@ export class Inspector {
69
69
  private static _SceneExplorerHost;
70
70
  private static _ActionTabsHost;
71
71
  private static _EmbedHost;
72
- private static _NewCanvasContainer;
73
72
  private static _PersistentPopupHost;
73
+ private static _SceneExplorerRoot;
74
+ private static _ActionTabsRoot;
75
+ private static _EmbedHostRoot;
76
+ private static _PersistentPopupRoot;
77
+ private static _NewCanvasContainer;
74
78
  private static _SceneExplorerWindow;
75
79
  private static _ActionTabsWindow;
76
80
  private static _EmbedHostWindow;
@@ -141,6 +145,7 @@ export class PropertyChangedEvent {
141
145
  }
142
146
  declare module "@babylonjs/inspector/components/popupComponent" {
143
147
  import * as React from "react";
148
+ import { PropsWithChildren } from "react";
144
149
  export interface IPopupComponentProps {
145
150
  id: string;
146
151
  title: string;
@@ -154,7 +159,7 @@ export interface IPopupComponentProps {
154
159
  onKeyUp?: (evt: KeyboardEvent) => void;
155
160
  onKeyDown?: (evt: KeyboardEvent) => void;
156
161
  }
157
- export class PopupComponent extends React.Component<IPopupComponentProps, {
162
+ export class PopupComponent extends React.Component<PropsWithChildren<IPopupComponentProps>, {
158
163
  isComponentMounted: boolean;
159
164
  blockedByBrowser: boolean;
160
165
  }> {
@@ -307,6 +312,7 @@ export class TreeItemSelectableComponent extends React.Component<ITreeItemSelect
307
312
  isSelected: boolean;
308
313
  }> {
309
314
  private _wasSelected;
315
+ private _thisRef;
310
316
  constructor(props: ITreeItemSelectableComponentProps);
311
317
  switchExpandedState(): void;
312
318
  shouldComponentUpdate(nextProps: ITreeItemSelectableComponentProps, nextState: {
@@ -5270,6 +5276,7 @@ export const SplitContext: import("react").Context<ISplitContext>;
5270
5276
 
5271
5277
  }
5272
5278
  declare module "@babylonjs/inspector/split/splitContainer" {
5279
+ import { PropsWithChildren } from "react";
5273
5280
  import { SplitDirection } from "@babylonjs/inspector/split/splitContext";
5274
5281
  /**
5275
5282
  * Split container properties
@@ -5326,7 +5333,7 @@ export interface ISplitContainerProps {
5326
5333
  * @param props defines the split container properties
5327
5334
  * @returns the split container component
5328
5335
  */
5329
- export const SplitContainer: React.FC<ISplitContainerProps>;
5336
+ export const SplitContainer: React.FC<PropsWithChildren<ISplitContainerProps>>;
5330
5337
 
5331
5338
  }
5332
5339
  declare module "@babylonjs/inspector/nodeGraphSystem/typeLedger" {
@@ -6965,9 +6972,7 @@ export class ColorPickerLine extends React.Component<IColorPickerLineProps, ICol
6965
6972
  constructor(props: IColorPickerLineProps);
6966
6973
  syncPositions(): void;
6967
6974
  shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
6968
- getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
6969
- children?: React.ReactNode | undefined;
6970
- }>): string;
6975
+ getHexString(props?: Readonly<IColorPickerLineProps>): string;
6971
6976
  componentDidUpdate(): void;
6972
6977
  componentDidMount(): void;
6973
6978
 
@@ -7000,9 +7005,7 @@ interface IColorLineComponentState {
7000
7005
  export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
7001
7006
  constructor(props: IColorLineProps);
7002
7007
  shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
7003
- getValue(props?: Readonly<IColorLineProps> & Readonly<{
7004
- children?: React.ReactNode | undefined;
7005
- }>): Color4;
7008
+ getValue(props?: Readonly<IColorLineProps>): Color4;
7006
7009
  setColorFromString(colorString: string): void;
7007
7010
  setColor(newColor: Color4): void;
7008
7011
  switchExpandState(): void;
@@ -7189,6 +7192,7 @@ export const Icon: React.FC<IconProps>;
7189
7192
 
7190
7193
  }
7191
7194
  declare module "@babylonjs/inspector/components/Button" {
7195
+ import { PropsWithChildren } from "react";
7192
7196
  export type ButtonProps = {
7193
7197
  disabled?: boolean;
7194
7198
  active?: boolean;
@@ -7198,7 +7202,7 @@ export type ButtonProps = {
7198
7202
  title?: string;
7199
7203
  backgroundColor?: string;
7200
7204
  };
7201
- export const Button: React.FC<ButtonProps>;
7205
+ export const Button: React.FC<PropsWithChildren<ButtonProps>>;
7202
7206
 
7203
7207
  }
7204
7208
  declare module "@babylonjs/inspector/components/reactGraphSystem/useGraphContext" {
@@ -7210,7 +7214,7 @@ export const useGraphContext: () => import("@babylonjs/inspector/components/reac
7210
7214
 
7211
7215
  }
7212
7216
  declare module "@babylonjs/inspector/components/reactGraphSystem/NodeRenderer" {
7213
- import { ComponentType } from "react";
7217
+ import { ComponentType, PropsWithChildren } from "react";
7214
7218
  import { Nullable } from "@babylonjs/core/types";
7215
7219
  export type IVisualRecordsType = Record<string, {
7216
7220
  x: number;
@@ -7282,7 +7286,7 @@ export interface INodeRendererProps {
7282
7286
 
7283
7287
  }
7284
7288
  declare module "@babylonjs/inspector/components/reactGraphSystem/GraphNodesContainer" {
7285
- import { FC } from "react";
7289
+ import { FC, PropsWithChildren } from "react";
7286
7290
  export interface IGraphContainerProps {
7287
7291
  onNodeMoved: (id: string, x: number, y: number) => void;
7288
7292
  id: string;
@@ -7292,11 +7296,11 @@ export interface IGraphContainerProps {
7292
7296
  * @param props properties
7293
7297
  * @returns graph node container element
7294
7298
  */
7295
- export const GraphNodesContainer: FC<IGraphContainerProps>;
7299
+ export const GraphNodesContainer: FC<PropsWithChildren<IGraphContainerProps>>;
7296
7300
 
7297
7301
  }
7298
7302
  declare module "@babylonjs/inspector/components/reactGraphSystem/GraphNode" {
7299
- import { FC } from "react";
7303
+ import { FC, PropsWithChildren } from "react";
7300
7304
  export interface IGraphNodeProps {
7301
7305
  id: string;
7302
7306
  name: string;
@@ -7308,11 +7312,11 @@ export interface IGraphNodeProps {
7308
7312
  highlighted?: boolean;
7309
7313
  parentContainerId: string;
7310
7314
  }
7311
- export const SingleGraphNode: FC<IGraphNodeProps>;
7315
+ export const SingleGraphNode: FC<PropsWithChildren<IGraphNodeProps>>;
7312
7316
 
7313
7317
  }
7314
7318
  declare module "@babylonjs/inspector/components/reactGraphSystem/GraphLinesContainer" {
7315
- import { FC } from "react";
7319
+ import { FC, PropsWithChildren } from "react";
7316
7320
  /**
7317
7321
  * props for the GraphLineContainer
7318
7322
  */
@@ -7327,7 +7331,7 @@ export interface IGraphLinesContainerProps {
7327
7331
  * @param props
7328
7332
  * @returns
7329
7333
  */
7330
- export const GraphLinesContainer: FC<IGraphLinesContainerProps>;
7334
+ export const GraphLinesContainer: FC<PropsWithChildren<IGraphLinesContainerProps>>;
7331
7335
 
7332
7336
  }
7333
7337
  declare module "@babylonjs/inspector/components/reactGraphSystem/GraphLine" {
@@ -7388,7 +7392,7 @@ export const GraphContextManager: import("react").Context<IGraphContext>;
7388
7392
 
7389
7393
  }
7390
7394
  declare module "@babylonjs/inspector/components/reactGraphSystem/GraphContainer" {
7391
- import { FC } from "react";
7395
+ import { FC, PropsWithChildren } from "react";
7392
7396
  export interface IGraphContainerProps {
7393
7397
  }
7394
7398
  /**
@@ -7397,11 +7401,11 @@ export interface IGraphContainerProps {
7397
7401
  * @param props
7398
7402
  * @returns
7399
7403
  */
7400
- export const GraphContainer: FC<IGraphContainerProps>;
7404
+ export const GraphContainer: FC<PropsWithChildren<IGraphContainerProps>>;
7401
7405
 
7402
7406
  }
7403
7407
  declare module "@babylonjs/inspector/components/reactGraphSystem/GraphConnectorHandle" {
7404
- import { FC } from "react";
7408
+ import { FC, PropsWithChildren } from "react";
7405
7409
  /**
7406
7410
  * Props for the connector
7407
7411
  */
@@ -7444,7 +7448,7 @@ export interface IGraphConnectorHandlerProps {
7444
7448
  * drag the handle in a node and drop it in another node to create a connection.
7445
7449
  * @returns connector element
7446
7450
  */
7447
- export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps>;
7451
+ export const GraphConnectorHandler: FC<PropsWithChildren<IGraphConnectorHandlerProps>>;
7448
7452
 
7449
7453
  }
7450
7454
  declare module "@babylonjs/inspector/components/lines/OptionsLineComponent" {
@@ -7549,9 +7553,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerLineCo
7549
7553
  constructor(props: IColorPickerLineComponentProps);
7550
7554
  syncPositions(): void;
7551
7555
  shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
7552
- getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
7553
- children?: React.ReactNode | undefined;
7554
- }>): string;
7556
+ getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
7555
7557
  componentDidUpdate(): void;
7556
7558
  componentDidMount(): void;
7557
7559
 
@@ -7584,9 +7586,7 @@ interface IColorLineComponentState {
7584
7586
  export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
7585
7587
  constructor(props: IColorLineComponentProps);
7586
7588
  shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
7587
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
7588
- children?: React.ReactNode | undefined;
7589
- }>): Color4;
7589
+ getValue(props?: Readonly<IColorLineComponentProps>): Color4;
7590
7590
  setColorFromString(colorString: string): void;
7591
7591
  setColor(newColor: Color4): void;
7592
7592
  switchExpandState(): void;
@@ -7886,7 +7886,7 @@ export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
7886
7886
 
7887
7887
  }
7888
7888
  declare module "@babylonjs/inspector/components/layout/FlexibleDropZone" {
7889
- import { FC } from "react";
7889
+ import { FC, PropsWithChildren } from "react";
7890
7890
  /**
7891
7891
  * Arguments for the FlexibleDropZone component.
7892
7892
  */
@@ -7906,11 +7906,11 @@ export interface IFlexibleDropZoneProps {
7906
7906
  * @param props properties
7907
7907
  * @returns drop zone element
7908
7908
  */
7909
- export const FlexibleDropZone: FC<IFlexibleDropZoneProps>;
7909
+ export const FlexibleDropZone: FC<PropsWithChildren<IFlexibleDropZoneProps>>;
7910
7910
 
7911
7911
  }
7912
7912
  declare module "@babylonjs/inspector/components/layout/FlexibleDragHandler" {
7913
- import { FC } from "react";
7913
+ import { FC, PropsWithChildren } from "react";
7914
7914
  /**
7915
7915
  * Arguments for the DragHandler component.
7916
7916
  */
@@ -7929,11 +7929,11 @@ export interface IFlexibleDragHandlerProps {
7929
7929
  * @param props properties
7930
7930
  * @returns DragHandler element
7931
7931
  */
7932
- export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps>;
7932
+ export const FlexibleDragHandler: FC<PropsWithChildren<IFlexibleDragHandlerProps>>;
7933
7933
 
7934
7934
  }
7935
7935
  declare module "@babylonjs/inspector/components/layout/FlexibleColumn" {
7936
- import { FC } from "react";
7936
+ import { FC, PropsWithChildren } from "react";
7937
7937
  /**
7938
7938
  * Arguments for the Column component.
7939
7939
  */
@@ -7949,7 +7949,7 @@ export interface IFlexibleColumnProps {
7949
7949
  * @param props
7950
7950
  * @returns
7951
7951
  */
7952
- export const FlexibleColumn: FC<IFlexibleColumnProps>;
7952
+ export const FlexibleColumn: FC<PropsWithChildren<IFlexibleColumnProps>>;
7953
7953
 
7954
7954
  }
7955
7955
  declare module "@babylonjs/inspector/components/layout/DraggableIcon" {
@@ -8114,7 +8114,7 @@ export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
8114
8114
 
8115
8115
  }
8116
8116
  declare module "@babylonjs/inspector/components/bars/CommandBarComponent" {
8117
- import { FC } from "react";
8117
+ import { FC, PropsWithChildren } from "react";
8118
8118
  export interface ICommandBarComponentProps {
8119
8119
  onSaveButtonClicked?: () => void;
8120
8120
  onSaveToSnippetButtonClicked?: () => void;
@@ -8129,7 +8129,7 @@ export interface ICommandBarComponentProps {
8129
8129
  artboardColor?: string;
8130
8130
  artboardColorPickerColor?: string;
8131
8131
  }
8132
- export const CommandBarComponent: FC<ICommandBarComponentProps>;
8132
+ export const CommandBarComponent: FC<PropsWithChildren<ICommandBarComponentProps>>;
8133
8133
 
8134
8134
  }
8135
8135
  declare module "@babylonjs/inspector/colorPicker/hexColor" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "8.1.1",
3
+ "version": "8.2.0",
4
4
  "module": "dist/babylon.inspector.bundle.max.js",
5
5
  "main": "dist/babylon.inspector.bundle.max.js",
6
6
  "typings": "dist/babylon.inspector.module.d.ts",
@@ -32,15 +32,15 @@
32
32
  "@types/react-dom": ">=16.0.9"
33
33
  },
34
34
  "devDependencies": {
35
- "@babylonjs/core": "^8.1.1",
36
- "@babylonjs/gui": "^8.1.1",
37
- "@babylonjs/gui-editor": "^8.1.1",
38
- "@babylonjs/loaders": "^8.1.1",
39
- "@babylonjs/materials": "^8.1.1",
40
- "@babylonjs/serializers": "^8.1.1",
35
+ "@babylonjs/core": "^8.2.0",
36
+ "@babylonjs/gui": "^8.2.0",
37
+ "@babylonjs/gui-editor": "^8.2.0",
38
+ "@babylonjs/loaders": "^8.2.0",
39
+ "@babylonjs/materials": "^8.2.0",
40
+ "@babylonjs/serializers": "^8.2.0",
41
41
  "@lts/gui": "1.0.0",
42
- "react": "^17.0.2",
43
- "react-dom": "^17.0.2"
42
+ "react": "^18.2.0",
43
+ "react-dom": "^18.2.0"
44
44
  },
45
45
  "keywords": [
46
46
  "3D",