babylonjs-node-editor 5.31.2 → 5.32.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.
@@ -1439,8 +1439,9 @@ export type ButtonProps = {
1439
1439
  active?: boolean;
1440
1440
  onClick?: () => void;
1441
1441
  color: "light" | "dark";
1442
- size: "default" | "small" | "wide";
1442
+ size: "default" | "small" | "wide" | "smaller";
1443
1443
  title?: string;
1444
+ backgroundColor?: string;
1444
1445
  };
1445
1446
  export const Button: React.FC<ButtonProps>;
1446
1447
 
@@ -2050,6 +2051,29 @@ export class NumericInputComponent extends React.Component<INumericInputComponen
2050
2051
  }
2051
2052
  export {};
2052
2053
 
2054
+ }
2055
+ declare module "babylonjs-node-editor/components/lines/OptionsLineComponent" {
2056
+ /// <reference types="react" />
2057
+ /**
2058
+ * This components represents an options menu with optional
2059
+ * customizable properties. Option IDs should be unique.
2060
+ */
2061
+ export interface IOption {
2062
+ label: string;
2063
+ value: string;
2064
+ id: string;
2065
+ }
2066
+ export interface IOptionsLineComponentProps {
2067
+ options: IOption[];
2068
+ addOptionPlaceholder?: string;
2069
+ onOptionAdded?: (newOption: IOption) => void;
2070
+ onOptionSelected: (selectedOptionValue: string) => void;
2071
+ selectedOptionValue: string;
2072
+ validateNewOptionValue?: (newOptionValue: string) => boolean;
2073
+ addOptionText?: string;
2074
+ }
2075
+ export const OptionsLineComponent: (props: IOptionsLineComponentProps) => JSX.Element;
2076
+
2053
2077
  }
2054
2078
  declare module "babylonjs-node-editor/components/MessageDialog" {
2055
2079
  import * as React from "react";
@@ -2060,6 +2084,21 @@ export interface MessageDialogProps {
2060
2084
  }
2061
2085
  export const MessageDialog: React.FC<MessageDialogProps>;
2062
2086
 
2087
+ }
2088
+ declare module "babylonjs-node-editor/components/TextInputWithSubmit" {
2089
+ /// <reference types="react" />
2090
+ export interface ITextInputProps {
2091
+ label?: string;
2092
+ placeholder?: string;
2093
+ submitValue: (newValue: string) => void;
2094
+ validateValue?: (value: string) => boolean;
2095
+ cancelSubmit?: () => void;
2096
+ }
2097
+ /**
2098
+ * This component represents a text input that can be submitted or cancelled on buttons
2099
+ */
2100
+ export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
2101
+
2063
2102
  }
2064
2103
  declare module "babylonjs-node-editor/components/Toggle" {
2065
2104
  /// <reference types="react" />
@@ -2615,14 +2654,9 @@ export interface IOptionsLineComponentProps {
2615
2654
  target: any;
2616
2655
  propertyName: string;
2617
2656
  options: IInspectableOptions[];
2618
- addInput?: boolean;
2619
2657
  noDirectUpdate?: boolean;
2620
2658
  onSelect?: (value: number | string) => void;
2621
2659
  extractValue?: (target: any) => number | string;
2622
- addVal?: (newVal: {
2623
- label: string;
2624
- value: number;
2625
- }, prevVal: number) => void;
2626
2660
  onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
2627
2661
  allowNullValue?: boolean;
2628
2662
  icon?: string;
@@ -2630,13 +2664,9 @@ export interface IOptionsLineComponentProps {
2630
2664
  className?: string;
2631
2665
  valuesAreStrings?: boolean;
2632
2666
  defaultIfNull?: number;
2633
- fromFontDropdown?: boolean;
2634
- valueProp?: number;
2635
- fallbackValue?: number;
2636
2667
  }
2637
2668
  export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
2638
2669
  value: number | string;
2639
- addCustom: boolean;
2640
2670
  }> {
2641
2671
  private _localChange;
2642
2672
  private _remapValueIn;
@@ -2645,12 +2675,10 @@ export class OptionsLineComponent extends React.Component<IOptionsLineComponentP
2645
2675
  constructor(props: IOptionsLineComponentProps);
2646
2676
  shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
2647
2677
  value: number;
2648
- addCustom: boolean;
2649
2678
  }): boolean;
2650
2679
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
2651
2680
  setValue(value: string | number): void;
2652
2681
  updateValue(valueString: string): void;
2653
- updateCustomValue(): void;
2654
2682
  render(): JSX.Element;
2655
2683
  }
2656
2684
 
@@ -5085,8 +5113,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
5085
5113
  active?: boolean;
5086
5114
  onClick?: () => void;
5087
5115
  color: "light" | "dark";
5088
- size: "default" | "small" | "wide";
5116
+ size: "default" | "small" | "wide" | "smaller";
5089
5117
  title?: string;
5118
+ backgroundColor?: string;
5090
5119
  };
5091
5120
  export var Button: React.FC<ButtonProps>;
5092
5121
 
@@ -5769,6 +5798,34 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
5769
5798
 
5770
5799
 
5771
5800
 
5801
+ }
5802
+ declare module BABYLON.NodeEditor {
5803
+
5804
+ }
5805
+ declare module BABYLON.NodeEditor.SharedUIComponents {
5806
+ /// <reference types="react" />
5807
+ /**
5808
+ * This components represents an options menu with optional
5809
+ * customizable properties. Option IDs should be unique.
5810
+ */
5811
+ export interface IOption {
5812
+ label: string;
5813
+ value: string;
5814
+ id: string;
5815
+ }
5816
+ export interface IOptionsLineComponentProps {
5817
+ options: IOption[];
5818
+ addOptionPlaceholder?: string;
5819
+ onOptionAdded?: (newOption: IOption) => void;
5820
+ onOptionSelected: (selectedOptionValue: string) => void;
5821
+ selectedOptionValue: string;
5822
+ validateNewOptionValue?: (newOptionValue: string) => boolean;
5823
+ addOptionText?: string;
5824
+ }
5825
+ export const OptionsLineComponent: (props: IOptionsLineComponentProps) => JSX.Element;
5826
+
5827
+
5828
+
5772
5829
  }
5773
5830
  declare module BABYLON.NodeEditor {
5774
5831
 
@@ -5783,6 +5840,26 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
5783
5840
 
5784
5841
 
5785
5842
 
5843
+ }
5844
+ declare module BABYLON.NodeEditor {
5845
+
5846
+ }
5847
+ declare module BABYLON.NodeEditor.SharedUIComponents {
5848
+ /// <reference types="react" />
5849
+ export interface ITextInputProps {
5850
+ label?: string;
5851
+ placeholder?: string;
5852
+ submitValue: (newValue: string) => void;
5853
+ validateValue?: (value: string) => boolean;
5854
+ cancelSubmit?: () => void;
5855
+ }
5856
+ /**
5857
+ * This component represents a text input that can be submitted or cancelled on buttons
5858
+ */
5859
+ export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
5860
+
5861
+
5862
+
5786
5863
  }
5787
5864
  declare module BABYLON.NodeEditor {
5788
5865
 
@@ -6387,14 +6464,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6387
6464
  target: any;
6388
6465
  propertyName: string;
6389
6466
  options: BABYLON.IInspectableOptions[];
6390
- addInput?: boolean;
6391
6467
  noDirectUpdate?: boolean;
6392
6468
  onSelect?: (value: number | string) => void;
6393
6469
  extractValue?: (target: any) => number | string;
6394
- addVal?: (newVal: {
6395
- label: string;
6396
- value: number;
6397
- }, prevVal: number) => void;
6398
6470
  onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
6399
6471
  allowNullValue?: boolean;
6400
6472
  icon?: string;
@@ -6402,13 +6474,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6402
6474
  className?: string;
6403
6475
  valuesAreStrings?: boolean;
6404
6476
  defaultIfNull?: number;
6405
- fromFontDropdown?: boolean;
6406
- valueProp?: number;
6407
- fallbackValue?: number;
6408
6477
  }
6409
6478
  export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
6410
6479
  value: number | string;
6411
- addCustom: boolean;
6412
6480
  }> {
6413
6481
  private _localChange;
6414
6482
  private _remapValueIn;
@@ -6417,12 +6485,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6417
6485
  constructor(props: IOptionsLineComponentProps);
6418
6486
  shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
6419
6487
  value: number;
6420
- addCustom: boolean;
6421
6488
  }): boolean;
6422
6489
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
6423
6490
  setValue(value: string | number): void;
6424
6491
  updateValue(valueString: string): void;
6425
- updateCustomValue(): void;
6426
6492
  render(): JSX.Element;
6427
6493
  }
6428
6494
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-editor",
3
- "version": "5.31.2",
3
+ "version": "5.32.1",
4
4
  "main": "babylon.nodeEditor.js",
5
5
  "types": "babylon.nodeEditor.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^5.31.2"
17
+ "babylonjs": "^5.32.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",