@babylonjs/node-editor 5.20.0 → 5.22.1

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.
@@ -499,6 +499,8 @@ interface IGraphEditorProps {
499
499
  }
500
500
  interface IGraphEditorState {
501
501
  showPreviewPopUp: boolean;
502
+ message: string;
503
+ isError: boolean;
502
504
  }
503
505
  interface IInternalPreviewAreaOptions extends IInspectorOptions {
504
506
  popup: boolean;
@@ -1238,22 +1240,6 @@ export class LineWithFileButtonComponent extends React.Component<ILineWithFileBu
1238
1240
  }
1239
1241
  export {};
1240
1242
 
1241
- }
1242
- declare module "@babylonjs/node-editor/sharedComponents/messageDialog" {
1243
- import * as React from "react";
1244
- import { GlobalState } from "@babylonjs/node-editor/globalState";
1245
- interface IMessageDialogComponentProps {
1246
- globalState: GlobalState;
1247
- }
1248
- export class MessageDialogComponent extends React.Component<IMessageDialogComponentProps, {
1249
- message: string;
1250
- isError: boolean;
1251
- }> {
1252
- constructor(props: IMessageDialogComponentProps);
1253
- render(): JSX.Element | null;
1254
- }
1255
- export {};
1256
-
1257
1243
  }
1258
1244
  declare module "@babylonjs/node-editor/sharedComponents/popup" {
1259
1245
  export class Popup {
@@ -1417,6 +1403,15 @@ export type LabelProps = {
1417
1403
  };
1418
1404
  export const Label: React.FC<LabelProps>;
1419
1405
 
1406
+ }
1407
+ declare module "@babylonjs/node-editor/components/MessageDialog" {
1408
+ import * as React from "react";
1409
+ export interface MessageDialogProps {
1410
+ message: string;
1411
+ isError: boolean;
1412
+ }
1413
+ export const MessageDialog: React.FC<MessageDialogProps>;
1414
+
1420
1415
  }
1421
1416
  declare module "@babylonjs/node-editor/components/Toggle" {
1422
1417
  /// <reference types="react" />
@@ -2951,10 +2946,10 @@ export class StateManager {
2951
2946
  getEditorDataMap: () => {
2952
2947
  [key: number]: number;
2953
2948
  };
2954
- createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => {
2949
+ createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => Nullable<{
2955
2950
  data: INodeData;
2956
2951
  name: string;
2957
- };
2952
+ }>;
2958
2953
  }
2959
2954
 
2960
2955
  }
@@ -3032,6 +3027,18 @@ const _default: {
3032
3027
  export default _default;
3033
3028
  export const Default: any;
3034
3029
 
3030
+ }
3031
+ declare module "@babylonjs/node-editor/stories/MessageDialog.stories" {
3032
+ /// <reference types="react" />
3033
+ import { MessageDialogProps } from "@babylonjs/node-editor/components/MessageDialog";
3034
+ const _default: {
3035
+ title: string;
3036
+ component: import("react").FC<MessageDialogProps>;
3037
+ };
3038
+ export default _default;
3039
+ export const NoError: any;
3040
+ export const Error: any;
3041
+
3035
3042
  }
3036
3043
  declare module "@babylonjs/node-editor/stories/Toggle.stories" {
3037
3044
  /// <reference types="react" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "5.20.0",
3
+ "version": "5.22.1",
4
4
  "main": "dist/babylon.nodeEditor.max.js",
5
5
  "module": "dist/babylon.nodeEditor.max.js",
6
6
  "esnext": "dist/babylon.nodeEditor.max.js",
@@ -18,12 +18,12 @@
18
18
  "clean": "rimraf dist"
19
19
  },
20
20
  "peerDependencies": {
21
- "@babylonjs/core": "^5.0.0",
21
+ "@babylonjs/core": "^5.22.0",
22
22
  "@types/react": ">=16.7.3",
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "^5.20.0",
26
+ "@babylonjs/core": "^5.22.1",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2",
29
29
  "rimraf": "^3.0.2",