@babylonjs/node-editor 5.6.1 → 5.8.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.
@@ -1437,6 +1437,7 @@ export class GraphEditor extends React.Component<IGraphEditorProps, IGraphEditor
1437
1437
  reOrganize(editorData?: Nullable<IEditorData>, isImportingAFrame?: boolean): void;
1438
1438
  onPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
1439
1439
  onPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
1440
+ onWheel(this: any, evt: WheelEvent): void;
1440
1441
  resizeColumns(evt: React.PointerEvent<HTMLDivElement>, forLeft?: boolean): void;
1441
1442
  buildColumnLayout(): string;
1442
1443
  emitNewBlock(blockType: string, targetX: number, targetY: number): void;
@@ -2246,6 +2247,53 @@ export class HexColor extends React.Component<IHexColorProps, {
2246
2247
  render(): JSX.Element;
2247
2248
  }
2248
2249
 
2250
+ }
2251
+ declare module "@babylonjs/node-editor/components/Button" {
2252
+ /// <reference types="react" />
2253
+ export type ButtonProps = {
2254
+ disabled?: boolean;
2255
+ active?: boolean;
2256
+ onClick?: () => void;
2257
+ color: "light" | "dark";
2258
+ size: "default" | "small" | "wide";
2259
+ title?: string;
2260
+ };
2261
+ export const Button: React.FC<ButtonProps>;
2262
+
2263
+ }
2264
+ declare module "@babylonjs/node-editor/components/classNames" {
2265
+ export function ClassNames(names: any, styleObject: any): string;
2266
+
2267
+ }
2268
+ declare module "@babylonjs/node-editor/components/Icon" {
2269
+ /// <reference types="react" />
2270
+ export type IconProps = {
2271
+ color?: "dark" | "light";
2272
+ icon: string;
2273
+ };
2274
+ export const Icon: React.FC<IconProps>;
2275
+
2276
+ }
2277
+ declare module "@babylonjs/node-editor/components/Label" {
2278
+ import { ReactChild } from "react";
2279
+ export type LabelProps = {
2280
+ text: string;
2281
+ children?: ReactChild;
2282
+ color?: "dark" | "light";
2283
+ };
2284
+ export const Label: React.FC<LabelProps>;
2285
+
2286
+ }
2287
+ declare module "@babylonjs/node-editor/components/Toggle" {
2288
+ /// <reference types="react" />
2289
+ export type ToggleProps = {
2290
+ toggled: "on" | "mixed" | "off";
2291
+ onToggle?: () => void;
2292
+ padded?: boolean;
2293
+ color?: "dark" | "light";
2294
+ };
2295
+ export const Toggle: React.FC<ToggleProps>;
2296
+
2249
2297
  }
2250
2298
  declare module "@babylonjs/node-editor/lines/booleanLineComponent" {
2251
2299
  import * as React from "react";
@@ -3083,6 +3131,54 @@ export class PropertyChangedEvent {
3083
3131
  allowNullValue?: boolean;
3084
3132
  }
3085
3133
 
3134
+ }
3135
+ declare module "@babylonjs/node-editor/stories/Button.stories" {
3136
+ /// <reference types="react" />
3137
+ import { ButtonProps } from "@babylonjs/node-editor/components/Button";
3138
+ const _default: {
3139
+ title: string;
3140
+ component: import("react").FC<ButtonProps>;
3141
+ };
3142
+ export default _default;
3143
+ export const Default: any;
3144
+ export const Wide: any;
3145
+ export const Small: any;
3146
+
3147
+ }
3148
+ declare module "@babylonjs/node-editor/stories/Icon.stories" {
3149
+ /// <reference types="react" />
3150
+ import { IconProps } from "@babylonjs/node-editor/components/Icon";
3151
+ const _default: {
3152
+ title: string;
3153
+ component: import("react").FC<IconProps>;
3154
+ };
3155
+ export default _default;
3156
+ export const Light: any;
3157
+ export const Dark: any;
3158
+
3159
+ }
3160
+ declare module "@babylonjs/node-editor/stories/Label.stories" {
3161
+ /// <reference types="react" />
3162
+ import { LabelProps } from "@babylonjs/node-editor/components/Label";
3163
+ const _default: {
3164
+ title: string;
3165
+ component: import("react").FC<LabelProps>;
3166
+ };
3167
+ export default _default;
3168
+ export const Default: any;
3169
+
3170
+ }
3171
+ declare module "@babylonjs/node-editor/stories/Toggle.stories" {
3172
+ /// <reference types="react" />
3173
+ import { ToggleProps } from "@babylonjs/node-editor/components/Toggle";
3174
+ const _default: {
3175
+ title: string;
3176
+ component: import("react").FC<ToggleProps>;
3177
+ };
3178
+ export default _default;
3179
+ export const Default: any;
3180
+ export const Padded: any;
3181
+
3086
3182
  }
3087
3183
  declare module "@babylonjs/node-editor/stringTools" {
3088
3184
  export class StringTools {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "5.6.1",
3
+ "version": "5.8.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,7 +18,7 @@
18
18
  "clean": "rimraf dist"
19
19
  },
20
20
  "dependencies": {
21
- "@babylonjs/core": "^5.6.1"
21
+ "@babylonjs/core": "^5.8.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@types/react": ">=16.7.3",