@babylonjs/inspector 5.24.0 → 5.26.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.
@@ -4303,7 +4303,7 @@ export * from "@babylonjs/inspector/index";
4303
4303
 
4304
4304
  }
4305
4305
  declare module "@babylonjs/inspector/lod" {
4306
- /** @hidden */
4306
+ /** @internal */
4307
4307
  export var lodPixelShader: {
4308
4308
  name: string;
4309
4309
  shader: string;
@@ -4311,7 +4311,7 @@ export var lodPixelShader: {
4311
4311
 
4312
4312
  }
4313
4313
  declare module "@babylonjs/inspector/lodCube" {
4314
- /** @hidden */
4314
+ /** @internal */
4315
4315
  export var lodCubePixelShader: {
4316
4316
  name: string;
4317
4317
  shader: string;
@@ -4432,6 +4432,65 @@ export class HexColor extends React.Component<IHexColorProps, {
4432
4432
  render(): JSX.Element;
4433
4433
  }
4434
4434
 
4435
+ }
4436
+ declare module "@babylonjs/inspector/components/bars/CommandBarComponent" {
4437
+ import * as React from "react";
4438
+ export interface ICommandBarComponentProps {
4439
+ onSaveButtonClicked?: () => void;
4440
+ onSaveToSnippetButtonClicked?: () => void;
4441
+ onLoadFromSnippetButtonClicked?: () => void;
4442
+ onHelpButtonClicked?: () => void;
4443
+ onGiveFeedbackButtonClicked?: () => void;
4444
+ onSelectButtonClicked?: () => void;
4445
+ onPanButtonClicked?: () => void;
4446
+ onZoomButtonClicked?: () => void;
4447
+ onFitButtonClicked?: () => void;
4448
+ }
4449
+ export const CommandBarComponent: React.FC<ICommandBarComponentProps>;
4450
+
4451
+ }
4452
+ declare module "@babylonjs/inspector/components/bars/CommandButtonComponent" {
4453
+ import * as React from "react";
4454
+ export interface ICommandButtonComponentProps {
4455
+ tooltip: string;
4456
+ shortcut?: string;
4457
+ icon: string;
4458
+ iconLabel?: string;
4459
+ isActive: boolean;
4460
+ onClick: () => void;
4461
+ disabled?: boolean;
4462
+ }
4463
+ export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
4464
+
4465
+ }
4466
+ declare module "@babylonjs/inspector/components/bars/CommandDropdownComponent" {
4467
+ import * as React from "react";
4468
+ interface ICommandDropdownComponentProps {
4469
+ icon?: string;
4470
+ tooltip: string;
4471
+ defaultValue?: string;
4472
+ items: {
4473
+ label: string;
4474
+ icon?: string;
4475
+ fileButton?: boolean;
4476
+ onClick?: () => void;
4477
+ onCheck?: (value: boolean) => void;
4478
+ storeKey?: string;
4479
+ isActive?: boolean;
4480
+ defaultValue?: boolean | string;
4481
+ subItems?: string[];
4482
+ }[];
4483
+ toRight?: boolean;
4484
+ }
4485
+ export class CommandDropdownComponent extends React.Component<ICommandDropdownComponentProps, {
4486
+ isExpanded: boolean;
4487
+ activeState: string;
4488
+ }> {
4489
+ constructor(props: ICommandDropdownComponentProps);
4490
+ render(): JSX.Element;
4491
+ }
4492
+ export {};
4493
+
4435
4494
  }
4436
4495
  declare module "@babylonjs/inspector/components/Button" {
4437
4496
  /// <reference types="react" />
@@ -4448,6 +4507,7 @@ export const Button: React.FC<ButtonProps>;
4448
4507
  }
4449
4508
  declare module "@babylonjs/inspector/components/classNames" {
4450
4509
  export function ClassNames(names: any, styleObject: any): string;
4510
+ export function JoinClassNames(styleObject: any, ...names: string[]): string;
4451
4511
 
4452
4512
  }
4453
4513
  declare module "@babylonjs/inspector/components/Icon" {
@@ -4468,6 +4528,25 @@ export type LabelProps = {
4468
4528
  };
4469
4529
  export const Label: React.FC<LabelProps>;
4470
4530
 
4531
+ }
4532
+ declare module "@babylonjs/inspector/components/lines/FileButtonLineComponent" {
4533
+ import * as React from "react";
4534
+ export interface IFileButtonLineComponentProps {
4535
+ label: string;
4536
+ onClick: (file: File) => void;
4537
+ accept: string;
4538
+ icon?: string;
4539
+ iconLabel?: string;
4540
+ }
4541
+ export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
4542
+ private static _IDGenerator;
4543
+ private _id;
4544
+ private _uploadInputRef;
4545
+ constructor(props: IFileButtonLineComponentProps);
4546
+ onChange(evt: any): void;
4547
+ render(): JSX.Element;
4548
+ }
4549
+
4471
4550
  }
4472
4551
  declare module "@babylonjs/inspector/components/MessageDialog" {
4473
4552
  import * as React from "react";
@@ -5033,9 +5112,14 @@ export interface IOptionsLineComponentProps {
5033
5112
  target: any;
5034
5113
  propertyName: string;
5035
5114
  options: IInspectableOptions[];
5115
+ addInput?: boolean;
5036
5116
  noDirectUpdate?: boolean;
5037
5117
  onSelect?: (value: number | string) => void;
5038
5118
  extractValue?: (target: any) => number | string;
5119
+ addVal?: (newVal: {
5120
+ label: string;
5121
+ value: number;
5122
+ }, prevVal: number) => void;
5039
5123
  onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
5040
5124
  allowNullValue?: boolean;
5041
5125
  icon?: string;
@@ -5043,9 +5127,13 @@ export interface IOptionsLineComponentProps {
5043
5127
  className?: string;
5044
5128
  valuesAreStrings?: boolean;
5045
5129
  defaultIfNull?: number;
5130
+ fromFontDropdown?: boolean;
5131
+ valueProp?: number;
5132
+ fallbackValue?: number;
5046
5133
  }
5047
5134
  export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
5048
5135
  value: number | string;
5136
+ addCustom: boolean;
5049
5137
  }> {
5050
5138
  private _localChange;
5051
5139
  private _remapValueIn;
@@ -5054,10 +5142,12 @@ export class OptionsLineComponent extends React.Component<IOptionsLineComponentP
5054
5142
  constructor(props: IOptionsLineComponentProps);
5055
5143
  shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
5056
5144
  value: number;
5145
+ addCustom: boolean;
5057
5146
  }): boolean;
5058
5147
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
5059
5148
  setValue(value: string | number): void;
5060
5149
  updateValue(valueString: string): void;
5150
+ updateCustomValue(): void;
5061
5151
  render(): JSX.Element;
5062
5152
  }
5063
5153
 
@@ -6061,6 +6151,24 @@ export class PropertyChangedEvent {
6061
6151
  allowNullValue?: boolean;
6062
6152
  }
6063
6153
 
6154
+ }
6155
+ declare module "@babylonjs/inspector/stories/bars/CommandBarComponent.stories" {
6156
+ /// <reference types="react" />
6157
+ const _default: {
6158
+
6159
+ };
6160
+ export default _default;
6161
+ export const Default: {};
6162
+
6163
+ }
6164
+ declare module "@babylonjs/inspector/stories/bars/CommandButtonComponent.stories" {
6165
+ /// <reference types="react" />
6166
+ const _default: {
6167
+
6168
+ };
6169
+ export default _default;
6170
+ export const Default: {};
6171
+
6064
6172
  }
6065
6173
  declare module "@babylonjs/inspector/stories/Button.stories" {
6066
6174
  /// <reference types="react" />
@@ -6097,6 +6205,15 @@ const _default: {
6097
6205
  export default _default;
6098
6206
  export const Default: any;
6099
6207
 
6208
+ }
6209
+ declare module "@babylonjs/inspector/stories/lines/FileButtonLineComponent.stories" {
6210
+ import { FileButtonLineComponent } from "@babylonjs/inspector/components/lines/FileButtonLineComponent";
6211
+ const _default: {
6212
+ component: typeof FileButtonLineComponent;
6213
+ };
6214
+ export default _default;
6215
+ export const Default: {};
6216
+
6100
6217
  }
6101
6218
  declare module "@babylonjs/inspector/stories/MessageDialog.stories" {
6102
6219
  /// <reference types="react" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "5.24.0",
3
+ "version": "5.26.0",
4
4
  "module": "dist/babylon.inspector.bundle.max.js",
5
5
  "main": "dist/babylon.inspector.bundle.max.js",
6
6
  "typings": "dist/babylon.inspector.module.d.ts",
@@ -32,12 +32,12 @@
32
32
  "@types/react-dom": ">=16.0.9"
33
33
  },
34
34
  "devDependencies": {
35
- "@babylonjs/core": "^5.24.0",
36
- "@babylonjs/gui": "^5.24.0",
37
- "@babylonjs/gui-editor": "^5.24.0",
38
- "@babylonjs/loaders": "^5.24.0",
39
- "@babylonjs/materials": "^5.24.0",
40
- "@babylonjs/serializers": "^5.24.0",
35
+ "@babylonjs/core": "^5.26.0",
36
+ "@babylonjs/gui": "^5.26.0",
37
+ "@babylonjs/gui-editor": "^5.26.0",
38
+ "@babylonjs/loaders": "^5.26.0",
39
+ "@babylonjs/materials": "^5.26.0",
40
+ "@babylonjs/serializers": "^5.26.0",
41
41
  "@lts/gui": "1.0.0",
42
42
  "react": "^17.0.2",
43
43
  "react-dom": "^17.0.2",