babylonjs-gui-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.
@@ -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" {
@@ -7806,26 +7808,27 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7806
7808
  max?: number;
7807
7809
  placeholder?: string;
7808
7810
  unit?: React.ReactNode;
7809
- validator?: (value: string) => boolean;
7811
+ validator?: (input: string) => boolean;
7812
+ onValidateChangeFailed?: (invalidInput: string) => void;
7810
7813
  multilines?: boolean;
7811
7814
  throttlePropertyChangedNotification?: boolean;
7812
7815
  throttlePropertyChangedNotificationDelay?: number;
7813
7816
  disabled?: boolean;
7814
7817
  }
7815
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
7816
- value: string;
7818
+ interface ITextInputLineComponentState {
7819
+ input: string;
7817
7820
  dragging: boolean;
7818
- }> {
7821
+ inputValid: boolean;
7822
+ }
7823
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
7819
7824
  private _localChange;
7820
7825
  constructor(props: ITextInputLineComponentProps);
7821
7826
  componentWillUnmount(): void;
7822
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
7823
- value: string;
7824
- dragging: boolean;
7825
- }): boolean;
7827
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
7826
7828
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
7827
7829
  getCurrentNumericValue(value: string): number;
7828
- updateValue(value: string, valueToValidate?: string): void;
7830
+ updateInput(input: string): void;
7831
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
7829
7832
  incrementValue(amount: number): void;
7830
7833
  onKeyDown(event: React.KeyboardEvent): void;
7831
7834
  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.50.0",
3
+ "version": "7.51.0",
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.50.0",
18
- "babylonjs-gui": "^7.50.0"
17
+ "babylonjs": "^7.51.0",
18
+ "babylonjs-gui": "^7.51.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",