babylonjs-inspector 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.
@@ -5363,26 +5363,27 @@ declare module INSPECTOR.SharedUIComponents {
5363
5363
  max?: number;
5364
5364
  placeholder?: string;
5365
5365
  unit?: React.ReactNode;
5366
- validator?: (value: string) => boolean;
5366
+ validator?: (input: string) => boolean;
5367
+ onValidateChangeFailed?: (invalidInput: string) => void;
5367
5368
  multilines?: boolean;
5368
5369
  throttlePropertyChangedNotification?: boolean;
5369
5370
  throttlePropertyChangedNotificationDelay?: number;
5370
5371
  disabled?: boolean;
5371
5372
  }
5372
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
5373
- value: string;
5373
+ interface ITextInputLineComponentState {
5374
+ input: string;
5374
5375
  dragging: boolean;
5375
- }> {
5376
+ inputValid: boolean;
5377
+ }
5378
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
5376
5379
  private _localChange;
5377
5380
  constructor(props: ITextInputLineComponentProps);
5378
5381
  componentWillUnmount(): void;
5379
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
5380
- value: string;
5381
- dragging: boolean;
5382
- }): boolean;
5382
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
5383
5383
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
5384
5384
  getCurrentNumericValue(value: string): number;
5385
- updateValue(value: string, valueToValidate?: string): void;
5385
+ updateInput(input: string): void;
5386
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
5386
5387
  incrementValue(amount: number): void;
5387
5388
  onKeyDown(event: React.KeyboardEvent): void;
5388
5389
  render(): import("react/jsx-runtime").JSX.Element;
@@ -6312,30 +6312,32 @@ export interface ITextInputLineComponentProps {
6312
6312
  max?: number;
6313
6313
  placeholder?: string;
6314
6314
  unit?: React.ReactNode;
6315
- validator?: (value: string) => boolean;
6315
+ validator?: (input: string) => boolean;
6316
+ onValidateChangeFailed?: (invalidInput: string) => void;
6316
6317
  multilines?: boolean;
6317
6318
  throttlePropertyChangedNotification?: boolean;
6318
6319
  throttlePropertyChangedNotificationDelay?: number;
6319
6320
  disabled?: boolean;
6320
6321
  }
6321
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
6322
- value: string;
6322
+ interface ITextInputLineComponentState {
6323
+ input: string;
6323
6324
  dragging: boolean;
6324
- }> {
6325
+ inputValid: boolean;
6326
+ }
6327
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
6325
6328
  private _localChange;
6326
6329
  constructor(props: ITextInputLineComponentProps);
6327
6330
  componentWillUnmount(): void;
6328
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
6329
- value: string;
6330
- dragging: boolean;
6331
- }): boolean;
6331
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
6332
6332
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
6333
6333
  getCurrentNumericValue(value: string): number;
6334
- updateValue(value: string, valueToValidate?: string): void;
6334
+ updateInput(input: string): void;
6335
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
6335
6336
  incrementValue(amount: number): void;
6336
6337
  onKeyDown(event: React.KeyboardEvent): void;
6337
6338
 
6338
6339
  }
6340
+ export {};
6339
6341
 
6340
6342
  }
6341
6343
  declare module "babylonjs-inspector/lines/targetsProxy" {
@@ -13500,26 +13502,27 @@ declare module INSPECTOR.SharedUIComponents {
13500
13502
  max?: number;
13501
13503
  placeholder?: string;
13502
13504
  unit?: React.ReactNode;
13503
- validator?: (value: string) => boolean;
13505
+ validator?: (input: string) => boolean;
13506
+ onValidateChangeFailed?: (invalidInput: string) => void;
13504
13507
  multilines?: boolean;
13505
13508
  throttlePropertyChangedNotification?: boolean;
13506
13509
  throttlePropertyChangedNotificationDelay?: number;
13507
13510
  disabled?: boolean;
13508
13511
  }
13509
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
13510
- value: string;
13512
+ interface ITextInputLineComponentState {
13513
+ input: string;
13511
13514
  dragging: boolean;
13512
- }> {
13515
+ inputValid: boolean;
13516
+ }
13517
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
13513
13518
  private _localChange;
13514
13519
  constructor(props: ITextInputLineComponentProps);
13515
13520
  componentWillUnmount(): void;
13516
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
13517
- value: string;
13518
- dragging: boolean;
13519
- }): boolean;
13521
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
13520
13522
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
13521
13523
  getCurrentNumericValue(value: string): number;
13522
- updateValue(value: string, valueToValidate?: string): void;
13524
+ updateInput(input: string): void;
13525
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
13523
13526
  incrementValue(amount: number): void;
13524
13527
  onKeyDown(event: React.KeyboardEvent): void;
13525
13528
  render(): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-inspector",
3
- "version": "7.50.0",
3
+ "version": "7.51.0",
4
4
  "main": "babylon.inspector.bundle.max.js",
5
5
  "types": "babylon.inspector.module.d.ts",
6
6
  "files": [
@@ -14,12 +14,12 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.50.0",
18
- "babylonjs-gui": "^7.50.0",
19
- "babylonjs-gui-editor": "^7.50.0",
20
- "babylonjs-loaders": "^7.50.0",
21
- "babylonjs-materials": "^7.50.0",
22
- "babylonjs-serializers": "^7.50.0"
17
+ "babylonjs": "^7.51.0",
18
+ "babylonjs-gui": "^7.51.0",
19
+ "babylonjs-gui-editor": "^7.51.0",
20
+ "babylonjs-loaders": "^7.51.0",
21
+ "babylonjs-materials": "^7.51.0",
22
+ "babylonjs-serializers": "^7.51.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@dev/build-tools": "1.0.0",