@babylonjs/inspector 5.25.0 → 5.26.1

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.
@@ -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";
@@ -5050,6 +5129,7 @@ export interface IOptionsLineComponentProps {
5050
5129
  defaultIfNull?: number;
5051
5130
  fromFontDropdown?: boolean;
5052
5131
  valueProp?: number;
5132
+ fallbackValue?: number;
5053
5133
  }
5054
5134
  export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
5055
5135
  value: number | string;
@@ -6071,6 +6151,24 @@ export class PropertyChangedEvent {
6071
6151
  allowNullValue?: boolean;
6072
6152
  }
6073
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
+
6074
6172
  }
6075
6173
  declare module "@babylonjs/inspector/stories/Button.stories" {
6076
6174
  /// <reference types="react" />
@@ -6107,6 +6205,15 @@ const _default: {
6107
6205
  export default _default;
6108
6206
  export const Default: any;
6109
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
+
6110
6217
  }
6111
6218
  declare module "@babylonjs/inspector/stories/MessageDialog.stories" {
6112
6219
  /// <reference types="react" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "5.25.0",
3
+ "version": "5.26.1",
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.25.0",
36
- "@babylonjs/gui": "^5.25.0",
37
- "@babylonjs/gui-editor": "^5.25.0",
38
- "@babylonjs/loaders": "^5.25.0",
39
- "@babylonjs/materials": "^5.25.0",
40
- "@babylonjs/serializers": "^5.25.0",
35
+ "@babylonjs/core": "^5.26.1",
36
+ "@babylonjs/gui": "^5.26.1",
37
+ "@babylonjs/gui-editor": "^5.26.1",
38
+ "@babylonjs/loaders": "^5.26.1",
39
+ "@babylonjs/materials": "^5.26.1",
40
+ "@babylonjs/serializers": "^5.26.1",
41
41
  "@lts/gui": "1.0.0",
42
42
  "react": "^17.0.2",
43
43
  "react-dom": "^17.0.2",