@babylonjs/gui-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.
@@ -3102,30 +3102,32 @@ export interface ITextInputLineComponentProps {
3102
3102
  max?: number;
3103
3103
  placeholder?: string;
3104
3104
  unit?: React.ReactNode;
3105
- validator?: (value: string) => boolean;
3105
+ validator?: (input: string) => boolean;
3106
+ onValidateChangeFailed?: (invalidInput: string) => void;
3106
3107
  multilines?: boolean;
3107
3108
  throttlePropertyChangedNotification?: boolean;
3108
3109
  throttlePropertyChangedNotificationDelay?: number;
3109
3110
  disabled?: boolean;
3110
3111
  }
3111
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
3112
- value: string;
3112
+ interface ITextInputLineComponentState {
3113
+ input: string;
3113
3114
  dragging: boolean;
3114
- }> {
3115
+ inputValid: boolean;
3116
+ }
3117
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
3115
3118
  private _localChange;
3116
3119
  constructor(props: ITextInputLineComponentProps);
3117
3120
  componentWillUnmount(): void;
3118
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
3119
- value: string;
3120
- dragging: boolean;
3121
- }): boolean;
3121
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
3122
3122
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
3123
3123
  getCurrentNumericValue(value: string): number;
3124
- updateValue(value: string, valueToValidate?: string): void;
3124
+ updateInput(input: string): void;
3125
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
3125
3126
  incrementValue(amount: number): void;
3126
3127
  onKeyDown(event: React.KeyboardEvent): void;
3127
3128
 
3128
3129
  }
3130
+ export {};
3129
3131
 
3130
3132
  }
3131
3133
  declare module "@babylonjs/gui-editor/lines/targetsProxy" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/gui-editor",
3
- "version": "7.49.0",
3
+ "version": "7.51.0",
4
4
  "main": "dist/babylon.guiEditor.max.js",
5
5
  "module": "dist/babylon.guiEditor.max.js",
6
6
  "esnext": "dist/babylon.guiEditor.max.js",
@@ -24,8 +24,8 @@
24
24
  "@types/react-dom": ">=16.0.9"
25
25
  },
26
26
  "devDependencies": {
27
- "@babylonjs/core": "^7.49.0",
28
- "@babylonjs/gui": "^7.49.0",
27
+ "@babylonjs/core": "^7.51.0",
28
+ "@babylonjs/gui": "^7.51.0",
29
29
  "react": "^17.0.2",
30
30
  "react-dom": "^17.0.2"
31
31
  },