@onerjs/inspector 8.45.9 → 8.46.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.
@@ -213,10 +213,10 @@ export class HeaderComponent extends React.Component<IHeaderComponentProps, {
213
213
 
214
214
  }
215
215
  declare module "@onerjs/inspector/components/globalState" {
216
+ import { IGLTFLoaderExtension, GLTFFileLoader } from "@onerjs/loaders/glTF/index";
216
217
  import { IGLTFValidationResults } from "babylonjs-gltf2interface";
217
218
  import { Nullable } from "@onerjs/core/types";
218
- import { Observer } from "@onerjs/core/Misc/observable";
219
- import { Observable } from "@onerjs/core/Misc/observable";
219
+ import { Observer, Observable } from "@onerjs/core/Misc/observable";
220
220
  import { ISceneLoaderPlugin, ISceneLoaderPluginAsync } from "@onerjs/core/Loading/sceneLoader";
221
221
  import { Scene } from "@onerjs/core/scene";
222
222
  import { Light } from "@onerjs/core/Lights/light";
@@ -225,7 +225,6 @@ import { LightGizmo } from "@onerjs/core/Gizmos/lightGizmo";
225
225
  import { CameraGizmo } from "@onerjs/core/Gizmos/cameraGizmo";
226
226
  import { PropertyChangedEvent } from "@onerjs/inspector/components/propertyChangedEvent";
227
227
  import { ReplayRecorder } from "@onerjs/inspector/components/replayRecorder";
228
- import { IGLTFLoaderExtension, GLTFFileLoader } from "@onerjs/loaders/glTF/index";
229
228
  export class GlobalState {
230
229
  onSelectionChangedObservable: Observable<any>;
231
230
  onPropertyChangedObservable: Observable<PropertyChangedEvent>;
@@ -1370,8 +1369,7 @@ export {};
1370
1369
 
1371
1370
  }
1372
1371
  declare module "@onerjs/inspector/components/actionTabs/tabs/toolsTabComponent" {
1373
- import { IPaneComponentProps } from "@onerjs/inspector/components/actionTabs/paneComponent";
1374
- import { PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1372
+ import { IPaneComponentProps, PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1375
1373
  export class ToolsTabComponent extends PaneComponent {
1376
1374
  private _lockObject;
1377
1375
  private _videoRecorder;
@@ -1410,8 +1408,7 @@ export class ToolsTabComponent extends PaneComponent {
1410
1408
 
1411
1409
  }
1412
1410
  declare module "@onerjs/inspector/components/actionTabs/tabs/statisticsTabComponent" {
1413
- import { IPaneComponentProps } from "@onerjs/inspector/components/actionTabs/paneComponent";
1414
- import { PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1411
+ import { IPaneComponentProps, PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1415
1412
  export class StatisticsTabComponent extends PaneComponent {
1416
1413
  private _sceneInstrumentation;
1417
1414
  private _engineInstrumentation;
@@ -1423,8 +1420,7 @@ export class StatisticsTabComponent extends PaneComponent {
1423
1420
 
1424
1421
  }
1425
1422
  declare module "@onerjs/inspector/components/actionTabs/tabs/settingsTabComponent" {
1426
- import { IPaneComponentProps } from "@onerjs/inspector/components/actionTabs/paneComponent";
1427
- import { PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1423
+ import { IPaneComponentProps, PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1428
1424
  export class SettingsTabComponent extends PaneComponent {
1429
1425
  constructor(props: IPaneComponentProps);
1430
1426
  render(): import("react/jsx-runtime").JSX.Element;
@@ -1432,8 +1428,7 @@ export class SettingsTabComponent extends PaneComponent {
1432
1428
 
1433
1429
  }
1434
1430
  declare module "@onerjs/inspector/components/actionTabs/tabs/propertyGridTabComponent" {
1435
- import { IPaneComponentProps } from "@onerjs/inspector/components/actionTabs/paneComponent";
1436
- import { PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1431
+ import { IPaneComponentProps, PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1437
1432
  export class PropertyGridTabComponent extends PaneComponent {
1438
1433
  private _timerIntervalId;
1439
1434
  private _lockObject;
@@ -1500,8 +1495,7 @@ export class GradientPropertyTabComponent extends React.Component<IPropertyCompo
1500
1495
 
1501
1496
  }
1502
1497
  declare module "@onerjs/inspector/components/actionTabs/tabs/debugTabComponent" {
1503
- import { IPaneComponentProps } from "@onerjs/inspector/components/actionTabs/paneComponent";
1504
- import { PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1498
+ import { IPaneComponentProps, PaneComponent } from "@onerjs/inspector/components/actionTabs/paneComponent";
1505
1499
  import "@onerjs/core/Physics/physicsEngineComponent";
1506
1500
  import "@onerjs/core/Physics/v1/physicsEngineComponent";
1507
1501
  import "@onerjs/core/Physics/v2/physicsEngineComponent";
@@ -1572,7 +1566,6 @@ import { LockObject } from "@onerjs/inspector/tabs/propertyGrids/lockObject";
1572
1566
  import { GlobalState } from "@onerjs/inspector/components/globalState";
1573
1567
  import "@onerjs/core/Physics/physicsEngineComponent";
1574
1568
  import "@onerjs/core/Physics/v1/physicsEngineComponent";
1575
- import "@onerjs/core/Physics/v1/physicsEngineComponent";
1576
1569
  interface IScenePropertyGridComponentProps {
1577
1570
  globalState: GlobalState;
1578
1571
  scene: Scene;
@@ -4972,6 +4965,14 @@ export class HistoryStack implements IDisposable {
4972
4965
  * Checks if there is any data in the history stack
4973
4966
  */
4974
4967
  get hasData(): boolean;
4968
+ /**
4969
+ * Whether an undo operation is available
4970
+ */
4971
+ get canUndo(): boolean;
4972
+ /**
4973
+ * Whether a redo operation is available
4974
+ */
4975
+ get canRedo(): boolean;
4975
4976
  /**
4976
4977
  * Undo the latest operation
4977
4978
  */
@@ -5638,7 +5639,7 @@ import { StateManager } from "@onerjs/inspector/nodeGraphSystem/stateManager";
5638
5639
  import { ISelectionChangedOptions } from "@onerjs/inspector/nodeGraphSystem/interfaces/selectionChangedOptions";
5639
5640
  import { FrameNodePort } from "@onerjs/inspector/nodeGraphSystem/frameNodePort";
5640
5641
  import { IDisplayManager } from "@onerjs/inspector/nodeGraphSystem/interfaces/displayManager";
5641
- import { type IPortData } from "@onerjs/inspector/nodeGraphSystem/interfaces/portData";
5642
+ import { IPortData } from "@onerjs/inspector/nodeGraphSystem/interfaces/portData";
5642
5643
  export class NodePort {
5643
5644
  portData: IPortData;
5644
5645
  node: GraphNode;
@@ -6868,8 +6869,7 @@ export {};
6868
6869
 
6869
6870
  }
6870
6871
  declare module "@onerjs/inspector/lines/textInputLineComponent" {
6871
- import { ReactNode, KeyboardEvent } from "react";
6872
- import { Component } from "react";
6872
+ import { ReactNode, KeyboardEvent, Component } from "react";
6873
6873
  import { Observable } from "@onerjs/core/Misc/observable";
6874
6874
  import { PropertyChangedEvent } from "@onerjs/inspector/propertyChangedEvent";
6875
6875
  import { LockObject } from "@onerjs/inspector/tabs/propertyGrids/lockObject";
@@ -7102,8 +7102,7 @@ export {};
7102
7102
  }
7103
7103
  declare module "@onerjs/inspector/lines/matrixLineComponent" {
7104
7104
  import * as React from "react";
7105
- import { Vector3, Vector4 } from "@onerjs/core/Maths/math.vector";
7106
- import { Matrix } from "@onerjs/core/Maths/math.vector";
7105
+ import { Vector3, Vector4, Matrix } from "@onerjs/core/Maths/math.vector";
7107
7106
  import { Observable } from "@onerjs/core/Misc/observable";
7108
7107
  import { PropertyChangedEvent } from "@onerjs/inspector/propertyChangedEvent";
7109
7108
  import { LockObject } from "@onerjs/inspector/tabs/propertyGrids/lockObject";
@@ -8185,7 +8184,7 @@ declare module "@onerjs/inspector/fluent/primitives/lazyComponent" {
8185
8184
 
8186
8185
  import { ComponentProps, ComponentType, ElementRef } from "react";
8187
8186
  type LazyComponentProps = {
8188
- spinnerSize?: any;
8187
+ spinnerSize?: any["size"];
8189
8188
  spinnerLabel?: string;
8190
8189
  };
8191
8190
  /**
@@ -8432,7 +8431,7 @@ export type ContextMenuProps = BasePrimitiveProps & (ContextMenuWithIconProps |
8432
8431
  /**
8433
8432
  * Positioning of the menu relative to the trigger.
8434
8433
  */
8435
- positioning?: any;
8434
+ positioning?: any["positioning"];
8436
8435
  /**
8437
8436
  * Called when the menu open state changes.
8438
8437
  */
@@ -9059,10 +9058,9 @@ export {};
9059
9058
  }
9060
9059
  declare module "@onerjs/inspector/fluent/hoc/propertyLines/vectorPropertyLine" {
9061
9060
  import { FunctionComponent } from "react";
9062
- import { Vector3 } from "@onerjs/core/Maths/math.vector";
9061
+ import { Vector3, Quaternion, Vector2, Vector4 } from "@onerjs/core/Maths/math.vector";
9063
9062
  import { PrimitiveProps } from "@onerjs/inspector/fluent/primitives/primitive";
9064
9063
  import { PropertyLineProps } from "@onerjs/inspector/fluent/hoc/propertyLines/propertyLine";
9065
- import { Quaternion, Vector2, Vector4 } from "@onerjs/core/Maths/math.vector";
9066
9064
  export type TensorPropertyLineProps<V extends Vector2 | Vector3 | Vector4 | Quaternion> = PropertyLineProps<V> & PrimitiveProps<V> & {
9067
9065
  /**
9068
9066
  * If passed, all sliders will use this for the min value
@@ -9121,8 +9119,8 @@ export {};
9121
9119
 
9122
9120
  }
9123
9121
  declare module "@onerjs/inspector/fluent/hoc/propertyLines/textPropertyLine" {
9124
- import { ImmutablePrimitiveProps } from "@onerjs/inspector/fluent/primitives/primitive";
9125
9122
  import { PropertyLineProps } from "@onerjs/inspector/fluent/hoc/propertyLines/propertyLine";
9123
+ import { ImmutablePrimitiveProps } from "@onerjs/inspector/fluent/primitives/primitive";
9126
9124
  import { FunctionComponent } from "react";
9127
9125
  /**
9128
9126
  * Wraps text in a property line
@@ -9269,8 +9267,8 @@ export {};
9269
9267
 
9270
9268
  }
9271
9269
  declare module "@onerjs/inspector/fluent/hoc/propertyLines/linkPropertyLine" {
9272
- import { LinkProps } from "@onerjs/inspector/fluent/primitives/link";
9273
9270
  import { PropertyLineProps } from "@onerjs/inspector/fluent/hoc/propertyLines/propertyLine";
9271
+ import { LinkProps } from "@onerjs/inspector/fluent/primitives/link";
9274
9272
  import { FunctionComponent } from "react";
9275
9273
  /**
9276
9274
  * Wraps a link in a property line
@@ -9380,8 +9378,7 @@ export {};
9380
9378
  declare module "@onerjs/inspector/fluent/hoc/propertyLines/colorPropertyLine" {
9381
9379
  import { FunctionComponent } from "react";
9382
9380
  import { PropertyLineProps } from "@onerjs/inspector/fluent/hoc/propertyLines/propertyLine";
9383
- import { Color3 } from "@onerjs/core/Maths/math.color";
9384
- import { Color4 } from "@onerjs/core/Maths/math.color";
9381
+ import { Color3, Color4 } from "@onerjs/core/Maths/math.color";
9385
9382
  import { ColorPickerProps } from "@onerjs/inspector/fluent/primitives/colorPicker";
9386
9383
  export type ColorPropertyLineProps = ColorPickerProps<Color3 | Color4> & PropertyLineProps<Color3 | Color4>;
9387
9384
  export const Color3PropertyLine: FunctionComponent<ColorPickerProps<Color3> & PropertyLineProps<Color3>>;
@@ -9389,8 +9386,8 @@ export const Color4PropertyLine: FunctionComponent<ColorPickerProps<Color4> & Pr
9389
9386
 
9390
9387
  }
9391
9388
  declare module "@onerjs/inspector/fluent/hoc/propertyLines/checkboxPropertyLine" {
9392
- import { PrimitiveProps } from "@onerjs/inspector/fluent/primitives/primitive";
9393
9389
  import { PropertyLineProps } from "@onerjs/inspector/fluent/hoc/propertyLines/propertyLine";
9390
+ import { PrimitiveProps } from "@onerjs/inspector/fluent/primitives/primitive";
9394
9391
  import { FunctionComponent } from "react";
9395
9392
  /**
9396
9393
  * Wraps a checkbox in a property line
@@ -9402,8 +9399,8 @@ export const CheckboxPropertyLine: FunctionComponent<PropertyLineProps<boolean>
9402
9399
  }
9403
9400
  declare module "@onerjs/inspector/fluent/hoc/propertyLines/booleanBadgePropertyLine" {
9404
9401
  import { FunctionComponent } from "react";
9405
- import { ImmutablePrimitiveProps } from "@onerjs/inspector/fluent/primitives/primitive";
9406
9402
  import { PropertyLineProps } from "@onerjs/inspector/fluent/hoc/propertyLines/propertyLine";
9403
+ import { ImmutablePrimitiveProps } from "@onerjs/inspector/fluent/primitives/primitive";
9407
9404
  /**
9408
9405
  * Displays an icon indicating enabled (green check) or disabled (red cross) state
9409
9406
  * @param props - The properties for the PropertyLine, including the boolean value to display.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onerjs/inspector",
3
- "version": "8.45.9",
3
+ "version": "8.46.2",
4
4
  "module": "dist/babylon.inspector.bundle.js",
5
5
  "main": "dist/babylon.inspector.bundle.js",
6
6
  "esnext": "dist/babylon.inspector.bundle.js",
@@ -34,13 +34,13 @@
34
34
  "@types/react-dom": ">=16.0.9"
35
35
  },
36
36
  "devDependencies": {
37
- "@onerjs/addons": "8.45.9",
38
- "@onerjs/core": "8.45.9",
39
- "@onerjs/gui": "8.45.9",
40
- "@onerjs/gui-editor": "8.45.9",
41
- "@onerjs/loaders": "8.45.9",
42
- "@onerjs/materials": "8.45.9",
43
- "@onerjs/serializers": "8.45.9",
37
+ "@onerjs/addons": "8.46.2",
38
+ "@onerjs/core": "8.46.2",
39
+ "@onerjs/gui": "8.46.2",
40
+ "@onerjs/gui-editor": "8.46.2",
41
+ "@onerjs/loaders": "8.46.2",
42
+ "@onerjs/materials": "8.46.2",
43
+ "@onerjs/serializers": "8.46.2",
44
44
  "@lts/gui": "1.0.0",
45
45
  "react": "^18.2.0",
46
46
  "react-dom": "^18.2.0"