@babylonjs/gui-editor 7.51.0 → 7.51.2

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