babylonjs-node-editor 7.49.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" {
@@ -7436,26 +7438,27 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
7436
7438
  max?: number;
7437
7439
  placeholder?: string;
7438
7440
  unit?: React.ReactNode;
7439
- validator?: (value: string) => boolean;
7441
+ validator?: (input: string) => boolean;
7442
+ onValidateChangeFailed?: (invalidInput: string) => void;
7440
7443
  multilines?: boolean;
7441
7444
  throttlePropertyChangedNotification?: boolean;
7442
7445
  throttlePropertyChangedNotificationDelay?: number;
7443
7446
  disabled?: boolean;
7444
7447
  }
7445
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
7446
- value: string;
7448
+ interface ITextInputLineComponentState {
7449
+ input: string;
7447
7450
  dragging: boolean;
7448
- }> {
7451
+ inputValid: boolean;
7452
+ }
7453
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
7449
7454
  private _localChange;
7450
7455
  constructor(props: ITextInputLineComponentProps);
7451
7456
  componentWillUnmount(): void;
7452
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
7453
- value: string;
7454
- dragging: boolean;
7455
- }): boolean;
7457
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
7456
7458
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
7457
7459
  getCurrentNumericValue(value: string): number;
7458
- updateValue(value: string, valueToValidate?: string): void;
7460
+ updateInput(input: string): void;
7461
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
7459
7462
  incrementValue(amount: number): void;
7460
7463
  onKeyDown(event: React.KeyboardEvent): void;
7461
7464
  render(): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-editor",
3
- "version": "7.49.0",
3
+ "version": "7.51.0",
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*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.49.0"
17
+ "babylonjs": "^7.51.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",