@babylonjs/node-editor 7.50.0 → 7.51.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.
@@ -2953,30 +2953,32 @@ export interface ITextInputLineComponentProps {
2953
2953
  max?: number;
2954
2954
  placeholder?: string;
2955
2955
  unit?: React.ReactNode;
2956
- validator?: (value: string) => boolean;
2956
+ validator?: (input: string) => boolean;
2957
+ onValidateChangeFailed?: (invalidInput: string) => void;
2957
2958
  multilines?: boolean;
2958
2959
  throttlePropertyChangedNotification?: boolean;
2959
2960
  throttlePropertyChangedNotificationDelay?: number;
2960
2961
  disabled?: boolean;
2961
2962
  }
2962
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
2963
- value: string;
2963
+ interface ITextInputLineComponentState {
2964
+ input: string;
2964
2965
  dragging: boolean;
2965
- }> {
2966
+ inputValid: boolean;
2967
+ }
2968
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
2966
2969
  private _localChange;
2967
2970
  constructor(props: ITextInputLineComponentProps);
2968
2971
  componentWillUnmount(): void;
2969
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
2970
- value: string;
2971
- dragging: boolean;
2972
- }): boolean;
2972
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
2973
2973
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
2974
2974
  getCurrentNumericValue(value: string): number;
2975
- updateValue(value: string, valueToValidate?: string): void;
2975
+ updateInput(input: string): void;
2976
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
2976
2977
  incrementValue(amount: number): void;
2977
2978
  onKeyDown(event: React.KeyboardEvent): void;
2978
2979
 
2979
2980
  }
2981
+ export {};
2980
2982
 
2981
2983
  }
2982
2984
  declare module "@babylonjs/node-editor/lines/targetsProxy" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "7.50.0",
3
+ "version": "7.51.0",
4
4
  "main": "dist/babylon.nodeEditor.max.js",
5
5
  "module": "dist/babylon.nodeEditor.max.js",
6
6
  "esnext": "dist/babylon.nodeEditor.max.js",
@@ -23,7 +23,7 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "^7.50.0",
26
+ "@babylonjs/core": "^7.51.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },