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" {
@@ -7808,27 +7806,26 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7808
7806
  max?: number;
7809
7807
  placeholder?: string;
7810
7808
  unit?: React.ReactNode;
7811
- validator?: (input: string) => boolean;
7812
- onValidateChangeFailed?: (invalidInput: string) => void;
7809
+ validator?: (value: string) => boolean;
7813
7810
  multilines?: boolean;
7814
7811
  throttlePropertyChangedNotification?: boolean;
7815
7812
  throttlePropertyChangedNotificationDelay?: number;
7816
7813
  disabled?: boolean;
7817
7814
  }
7818
- interface ITextInputLineComponentState {
7819
- input: string;
7815
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
7816
+ value: string;
7820
7817
  dragging: boolean;
7821
- inputValid: boolean;
7822
- }
7823
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
7818
+ }> {
7824
7819
  private _localChange;
7825
7820
  constructor(props: ITextInputLineComponentProps);
7826
7821
  componentWillUnmount(): void;
7827
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
7822
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
7823
+ value: string;
7824
+ dragging: boolean;
7825
+ }): boolean;
7828
7826
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
7829
7827
  getCurrentNumericValue(value: string): number;
7830
- updateInput(input: string): void;
7831
- updateValue(adjustedInput?: string, updateState?: boolean): void;
7828
+ updateValue(value: string, valueToValidate?: string): void;
7832
7829
  incrementValue(amount: number): void;
7833
7830
  onKeyDown(event: React.KeyboardEvent): void;
7834
7831
  render(): import("react/jsx-runtime").JSX.Element;
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": "babylon.guiEditor.max.js",
5
5
  "types": "babylon.guiEditor.module.d.ts",
6
6
  "files": [
@@ -14,8 +14,8 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.51.0",
18
- "babylonjs-gui": "^7.51.0"
17
+ "babylonjs": "^7.51.2",
18
+ "babylonjs-gui": "^7.51.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",