babylonjs-editor 5.4.3-alpha.5 → 5.5.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.
- package/build/src/index.js +12 -9
- package/declaration/src/editor/layout/animation/tools/export.d.ts +1 -1
- package/declaration/src/editor/layout/cinematic/timelines/add.d.ts +1 -1
- package/declaration/src/editor/layout/graph/label.d.ts +1 -1
- package/declaration/src/editor/layout/graph.d.ts +8 -0
- package/declaration/src/editor/layout/navmesh/tools.d.ts +4 -3
- package/declaration/src/editor/layout/preview/gizmo/gizmo.d.ts +6 -3
- package/declaration/src/editor/layout/preview/gizmo/magnetism.d.ts +33 -0
- package/declaration/src/editor/layout/preview/import/import.d.ts +1 -1
- package/declaration/src/editor/layout/preview/play.d.ts +5 -0
- package/declaration/src/electron/events/hook.d.ts +1 -0
- package/declaration/src/index.d.ts +1 -0
- package/declaration/src/tools/fs.d.ts +1 -1
- package/declaration/src/tools/marketplaces/provider.d.ts +1 -1
- package/declaration/src/tools/marketplaces/registrations.d.ts +1 -1
- package/declaration/src/tools/maths/triangle.d.ts +9 -0
- package/declaration/src/tools/node/clone.d.ts +1 -1
- package/declaration/src/ui/shadcn/ui/alert-dialog.d.ts +8 -8
- package/declaration/src/ui/shadcn/ui/alert.d.ts +1 -1
- package/declaration/src/ui/shadcn/ui/badge.d.ts +1 -1
- package/declaration/src/ui/shadcn/ui/breadcrumb.d.ts +8 -8
- package/declaration/src/ui/shadcn/ui/button.d.ts +3 -3
- package/declaration/src/ui/shadcn/ui/command.d.ts +7 -7
- package/declaration/src/ui/shadcn/ui/context-menu.d.ts +4 -4
- package/declaration/src/ui/shadcn/ui/dialog.d.ts +8 -8
- package/declaration/src/ui/shadcn/ui/dropdown-menu.d.ts +4 -4
- package/declaration/src/ui/shadcn/ui/field.d.ts +2 -2
- package/declaration/src/ui/shadcn/ui/label.d.ts +1 -1
- package/declaration/src/ui/shadcn/ui/menubar.d.ts +4 -4
- package/declaration/src/ui/shadcn/ui/toggle-group.d.ts +5 -5
- package/declaration/src/ui/shadcn/ui/toggle.d.ts +4 -4
- package/package.json +3 -3
package/build/src/index.js
CHANGED
|
@@ -15,6 +15,7 @@ require("./electron/events/shell");
|
|
|
15
15
|
require("./electron/events/dialog");
|
|
16
16
|
require("./electron/events/editor");
|
|
17
17
|
require("./electron/events/window");
|
|
18
|
+
require("./electron/events/hook");
|
|
18
19
|
require("./electron/assimp/assimpjs");
|
|
19
20
|
require("./electron/events/export");
|
|
20
21
|
require("./electron/protocol");
|
|
@@ -51,15 +52,17 @@ electron_1.app.addListener("ready", async () => {
|
|
|
51
52
|
}
|
|
52
53
|
electron_updater_1.autoUpdater.checkForUpdatesAndNotify();
|
|
53
54
|
try {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
if (electron_1.app.isPackaged) {
|
|
56
|
+
fetch("https://editor.babylonjs.com/api/hooks/launch", {
|
|
57
|
+
method: "POST",
|
|
58
|
+
headers: {
|
|
59
|
+
"Content-Type": "application/json",
|
|
60
|
+
},
|
|
61
|
+
body: JSON.stringify({
|
|
62
|
+
content: `${(0, os_1.platform)()} ${(0, os_1.arch)()}`,
|
|
63
|
+
}),
|
|
64
|
+
});
|
|
65
|
+
}
|
|
63
66
|
}
|
|
64
67
|
catch (error) {
|
|
65
68
|
// Catch silently, as this is not critical for the app to function.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IAnimatable } from "babylonjs";
|
|
2
|
-
export declare function exportAnimationsAs(animatable: IAnimatable | null): Promise<import("../../../../
|
|
2
|
+
export declare function exportAnimationsAs(animatable: IAnimatable | null): Promise<import("../../../../export").DialogReturnType | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICinematicKey, ICinematicKeyCut, ICinematicTrack } from "babylonjs-editor-tools";
|
|
2
2
|
import { CinematicEditor } from "../editor";
|
|
3
3
|
export declare function addAnimationKey(cinematicEditor: CinematicEditor, type: "key" | "cut", track: ICinematicTrack, positionX: number | null, keyFrameAnimations?: (ICinematicKey | ICinematicKeyCut)[]): void;
|
|
4
|
-
export declare function addSoundKey(cinematicEditor: CinematicEditor, track: ICinematicTrack, positionX?: number | null): import("../../../../
|
|
4
|
+
export declare function addSoundKey(cinematicEditor: CinematicEditor, track: ICinematicTrack, positionX?: number | null): import("../../../../export").DialogReturnType | undefined;
|
|
5
5
|
export declare function addEventKey(cinematicEditor: CinematicEditor, track: ICinematicTrack, positionX?: number | null): void;
|
|
6
6
|
export declare function addAnimationGroupKey(cinematicEditor: CinematicEditor, track: ICinematicTrack, positionX?: number | null): void;
|
|
@@ -29,6 +29,10 @@ export interface IEditorGraphState {
|
|
|
29
29
|
* Defines wether or not only decals should be shown in the graph.
|
|
30
30
|
*/
|
|
31
31
|
showOnlyDecals: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Defines whether or not only nodes with scripts attached should be shown in the graph.
|
|
34
|
+
*/
|
|
35
|
+
showOnlyScriptAttached: boolean;
|
|
32
36
|
/**
|
|
33
37
|
* Defines wether or not instanced meshes should be hidden from the graph.
|
|
34
38
|
*/
|
|
@@ -49,6 +53,7 @@ export interface IEditorGraphState {
|
|
|
49
53
|
}
|
|
50
54
|
export declare class EditorGraph extends Component<IEditorGraphProps, IEditorGraphState> {
|
|
51
55
|
_nodeToCopyTransform: Node | null;
|
|
56
|
+
_objectsToCut: TreeNodeInfo<unknown>[];
|
|
52
57
|
_objectsToCopy: TreeNodeInfo<unknown>[];
|
|
53
58
|
private _playRefreshIntervalId;
|
|
54
59
|
constructor(props: IEditorGraphProps);
|
|
@@ -87,10 +92,13 @@ export declare class EditorGraph extends Component<IEditorGraphProps, IEditorGra
|
|
|
87
92
|
* Copies the selected nodes from the graph.
|
|
88
93
|
*/
|
|
89
94
|
copySelectedNodes(): void;
|
|
95
|
+
cutSelectedNodes(): void;
|
|
90
96
|
/**
|
|
91
97
|
* Pastes the previously copied nodes.
|
|
92
98
|
*/
|
|
93
99
|
pasteSelectedNodes(parent?: Node, shift?: boolean): void;
|
|
100
|
+
private _pasteCutSelectedNodes;
|
|
101
|
+
private _pasteCopiedSelectedNodes;
|
|
94
102
|
copySelectedNodeTransform(node: Node): void;
|
|
95
103
|
pasteSelectedNodeTransform(node: Node): void;
|
|
96
104
|
private _handleSearch;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Scene, AbstractMesh } from "babylonjs";
|
|
1
|
+
import { Scene, AbstractMesh, Mesh, Geometry } from "babylonjs";
|
|
2
2
|
import { INavMeshObstacleConfiguration, INavMeshStaticMeshConfiguration } from "./types";
|
|
3
3
|
export declare function getStaticMeshes(scene: Scene, configurations: INavMeshStaticMeshConfiguration[]): {
|
|
4
4
|
clonedMeshes: AbstractMesh[];
|
|
5
|
-
|
|
5
|
+
clonedGeometries: Geometry[];
|
|
6
|
+
effectiveStaticMeshes: Mesh[];
|
|
6
7
|
};
|
|
7
8
|
export declare function getObstacleMeshes(scene: Scene, configurations: INavMeshObstacleConfiguration[]): {
|
|
8
|
-
clone:
|
|
9
|
+
clone: Mesh;
|
|
9
10
|
config: INavMeshObstacleConfiguration;
|
|
10
11
|
}[];
|
|
@@ -6,15 +6,18 @@ export declare class EditorPreviewGizmo {
|
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
_gizmosLayer: UtilityLayerRenderer;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
_scalingGizmo: ScaleGizmo | null;
|
|
10
|
+
_positionGizmo: PositionGizmo | null;
|
|
11
|
+
_rotationGizmo: RotationGizmo | null;
|
|
12
12
|
private _coordinatesMode;
|
|
13
13
|
private _cameraGizmo;
|
|
14
14
|
private _attachedNode;
|
|
15
15
|
private _attachedSprite;
|
|
16
16
|
private _spriteTransformNode;
|
|
17
17
|
private _snapPreferences;
|
|
18
|
+
private _keyUpListener;
|
|
19
|
+
private _keyDownListener;
|
|
20
|
+
_shiftDown: boolean;
|
|
18
21
|
constructor(scene: Scene);
|
|
19
22
|
/**
|
|
20
23
|
* Gets the current gizmo.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AbstractMesh, Vector3, BoundingBox } from "babylonjs";
|
|
2
|
+
import { EditorPreviewGizmo } from "./gizmo";
|
|
3
|
+
/**
|
|
4
|
+
* While the shift key is down, tries to snap the currently dragged mesh on the surrounding meshes.
|
|
5
|
+
* Like the vertex snapping available in Unity and the actor alignment available in Unreal Engine, the
|
|
6
|
+
* anchors of the dragged mesh (bounding box center, corners, edge midpoints and face centers) are matched
|
|
7
|
+
* against the anchors of the nearby meshes. The closest pair below the search radius wins and the mesh is
|
|
8
|
+
* translated by the exact offset that makes both anchors coincide, which makes combining pipes, walls, etc.
|
|
9
|
+
* way easier.
|
|
10
|
+
*
|
|
11
|
+
* Matching the center of the dragged mesh with the center of a nearby mesh of comparable size (plugging a pipe
|
|
12
|
+
* in its receptor) is the most useful case: it takes over any other anchor pair as soon as both centers are
|
|
13
|
+
* within the search radius.
|
|
14
|
+
*/
|
|
15
|
+
export declare function checkMagnetism(gizmo: EditorPreviewGizmo, mesh: AbstractMesh): void;
|
|
16
|
+
/**
|
|
17
|
+
* Computes, in world space, the anchors used by magnetism for the given mesh. Those are all the combinations
|
|
18
|
+
* of the minimum, center and maximum values of its bounding box on each axis, aka. its 8 corners, its 12 edge
|
|
19
|
+
* midpoints, its 6 face centers and its center.
|
|
20
|
+
*/
|
|
21
|
+
export declare function computeMagnetismAnchors(mesh: AbstractMesh): Vector3[];
|
|
22
|
+
/**
|
|
23
|
+
* Returns wether or not both given bounding boxes are distant from less than the given distance on each world axis.
|
|
24
|
+
*/
|
|
25
|
+
export declare function areBoundingBoxesClose(a: BoundingBox, b: BoundingBox, distance: number): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Draws a marker on the anchor the dragged mesh is currently snapped to, or hides it when there is no anchor.
|
|
28
|
+
*/
|
|
29
|
+
export declare function updateMagnetismMarker(gizmo: EditorPreviewGizmo, position: Vector3 | null): void;
|
|
30
|
+
/**
|
|
31
|
+
* Clears the state computed by magnetism for the current drag. The mesh keeps the position it was snapped to.
|
|
32
|
+
*/
|
|
33
|
+
export declare function resetMagnetism(): void;
|
|
@@ -5,7 +5,7 @@ export declare function loadImportedSceneFile(scene: Scene, absolutePath: string
|
|
|
5
5
|
export declare function configureImportedNodeIds(node: Node | Sprite | IParticleSystem): void;
|
|
6
6
|
export declare function configureImportedMaterial(material: Material): void;
|
|
7
7
|
export declare function configureImportedTexture<T extends Texture | CubeTexture | ColorGradingTexture | HDRCubeTexture>(texture: T, noCheckInvertY?: boolean): T;
|
|
8
|
-
export declare function configureEmbeddedTexture(texture: Texture, absolutePath: string): Promise<
|
|
8
|
+
export declare function configureEmbeddedTexture(texture: Texture, absolutePath: string): Promise<void | boolean>;
|
|
9
9
|
export declare function cleanTexture(texture: Texture, filename: string): void;
|
|
10
10
|
export declare function loadImportedMaterial(scene: Scene, absolutePath: string): Promise<Material | null>;
|
|
11
11
|
export declare function cleanImportedGltf(result: ISceneLoaderAsyncResult): void;
|
|
@@ -28,6 +28,9 @@ export interface IEditorPreviewPlayComponentState {
|
|
|
28
28
|
* Defines wether or not the game / application is playing in the editor.
|
|
29
29
|
*/
|
|
30
30
|
playing: boolean;
|
|
31
|
+
currentFPS: number;
|
|
32
|
+
activeMeshes: number;
|
|
33
|
+
totalMeshes: number;
|
|
31
34
|
}
|
|
32
35
|
export declare class EditorPreviewPlayComponent extends Component<IEditorPreviewPlayComponentProps, IEditorPreviewPlayComponentState> {
|
|
33
36
|
/**
|
|
@@ -39,6 +42,7 @@ export declare class EditorPreviewPlayComponent extends Component<IEditorPreview
|
|
|
39
42
|
private _srcWatcher;
|
|
40
43
|
private _temporaryDirectory;
|
|
41
44
|
private _compiledScriptExports;
|
|
45
|
+
private _intervalId;
|
|
42
46
|
constructor(props: IEditorPreviewPlayComponentProps);
|
|
43
47
|
render(): ReactNode;
|
|
44
48
|
componentDidMount(): void;
|
|
@@ -81,6 +85,7 @@ export declare class EditorPreviewPlayComponent extends Component<IEditorPreview
|
|
|
81
85
|
private _compileScripts;
|
|
82
86
|
private _createAndLoadScene;
|
|
83
87
|
private _requireCompiledScripts;
|
|
88
|
+
private _clearInterval;
|
|
84
89
|
/**
|
|
85
90
|
* Watches all the src directory of the project to detect changes in the scripts.
|
|
86
91
|
* If a change is detected, it will restart the game / application.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import "./electron/events/shell";
|
|
|
4
4
|
import "./electron/events/dialog";
|
|
5
5
|
import "./electron/events/editor";
|
|
6
6
|
import "./electron/events/window";
|
|
7
|
+
import "./electron/events/hook";
|
|
7
8
|
import "./electron/assimp/assimpjs";
|
|
8
9
|
import "./electron/events/export";
|
|
9
10
|
import "./electron/protocol";
|
|
@@ -7,7 +7,7 @@ export declare function createDirectoryIfNotExist(absolutePath: string): Promise
|
|
|
7
7
|
/**
|
|
8
8
|
* Normalizes the paths of the files returned by glob.
|
|
9
9
|
*/
|
|
10
|
-
export declare function normalizedGlob(...args: Parameters<typeof glob>):
|
|
10
|
+
export declare function normalizedGlob(...args: Parameters<typeof glob>): Promise<string[]>;
|
|
11
11
|
/**
|
|
12
12
|
* Creates a new FS watcher and returns its reference. Takes care of waiting enought time in order
|
|
13
13
|
* to notify the "change" event only once.
|
|
@@ -8,7 +8,7 @@ export declare abstract class MarketplaceProvider {
|
|
|
8
8
|
abstract title: string;
|
|
9
9
|
private _activeDownloadIds;
|
|
10
10
|
private _downloadListeners;
|
|
11
|
-
protected _settings: IMarketplaceSettings;
|
|
11
|
+
protected _settings: IMarketplaceSettings | null;
|
|
12
12
|
private _settingsListeners;
|
|
13
13
|
onSettingsChanged(listener: (id: string, value: any) => void): void;
|
|
14
14
|
removeSettingsListener(listener: (id: string, value: any) => void): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Vector3, Ray } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Returns whether or not the triangle defined by the three points is facing the given ray direction.
|
|
4
|
+
* @param p0 defines the first point of the triangle
|
|
5
|
+
* @param p1 defines the second point of the triangle
|
|
6
|
+
* @param p2 defines the third point of the triangle
|
|
7
|
+
* @param ray defines the reference to the ray to test against
|
|
8
|
+
*/
|
|
9
|
+
export declare function isTriangleFacingCamera(p0: Vector3, p1: Vector3, p2: Vector3, ray: Ray): boolean;
|
|
@@ -7,4 +7,4 @@ export interface ICloneNodeOptions {
|
|
|
7
7
|
cloneMaterial?: boolean;
|
|
8
8
|
cloneThinInstances?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare function cloneNode(editor: Editor, node: Node | Sprite | ParticleSystem | GPUParticleSystem, options?: ICloneNodeOptions): Node | Sprite | SpriteManagerNode |
|
|
10
|
+
export declare function cloneNode(editor: Editor, node: Node | Sprite | ParticleSystem | GPUParticleSystem, options?: ICloneNodeOptions): GPUParticleSystem | Node | Sprite | SpriteManagerNode | null;
|
|
@@ -5,14 +5,14 @@ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPri
|
|
|
5
5
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
6
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
displayName: string;
|
|
11
|
-
}
|
|
12
|
-
declare
|
|
13
|
-
|
|
14
|
-
displayName: string;
|
|
15
|
-
}
|
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare namespace AlertDialogHeader {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
declare function AlertDialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare namespace AlertDialogFooter {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
16
|
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
17
|
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
18
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
8
8
|
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,12 +8,12 @@ declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.Detaile
|
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
10
|
declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
displayName: string;
|
|
14
|
-
}
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
displayName: string;
|
|
18
|
-
}
|
|
11
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace BreadcrumbSeparator {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare namespace BreadcrumbEllipsis {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
19
|
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "
|
|
5
|
-
size?: "default" | "
|
|
6
|
-
} & import("class-variance-authority/
|
|
4
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "lg" | "sm" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
}
|
|
@@ -24,7 +24,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
24
24
|
ref?: React.Ref<HTMLInputElement>;
|
|
25
25
|
} & {
|
|
26
26
|
asChild?: boolean;
|
|
27
|
-
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "
|
|
27
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
28
28
|
value?: string;
|
|
29
29
|
onValueChange?: (search: string) => void;
|
|
30
30
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -50,7 +50,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
50
50
|
ref?: React.Ref<HTMLDivElement>;
|
|
51
51
|
} & {
|
|
52
52
|
asChild?: boolean;
|
|
53
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "
|
|
53
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
54
54
|
heading?: React.ReactNode;
|
|
55
55
|
value?: string;
|
|
56
56
|
forceMount?: boolean;
|
|
@@ -68,15 +68,15 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
68
68
|
ref?: React.Ref<HTMLDivElement>;
|
|
69
69
|
} & {
|
|
70
70
|
asChild?: boolean;
|
|
71
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "
|
|
71
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "onSelect" | "value"> & {
|
|
72
72
|
disabled?: boolean;
|
|
73
73
|
onSelect?: (value: string) => void;
|
|
74
74
|
value?: string;
|
|
75
75
|
keywords?: string[];
|
|
76
76
|
forceMount?: boolean;
|
|
77
77
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
-
declare
|
|
79
|
-
|
|
80
|
-
displayName: string;
|
|
81
|
-
}
|
|
78
|
+
declare function CommandShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
declare namespace CommandShortcut {
|
|
80
|
+
var displayName: string;
|
|
81
|
+
}
|
|
82
82
|
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator };
|
|
@@ -20,8 +20,8 @@ declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenu
|
|
|
20
20
|
inset?: boolean;
|
|
21
21
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare
|
|
24
|
-
|
|
25
|
-
displayName: string;
|
|
26
|
-
}
|
|
23
|
+
declare function ContextMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare namespace ContextMenuShortcut {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
27
|
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
@@ -6,14 +6,14 @@ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
|
6
6
|
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
displayName: string;
|
|
12
|
-
}
|
|
13
|
-
declare
|
|
14
|
-
|
|
15
|
-
displayName: string;
|
|
16
|
-
}
|
|
9
|
+
declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare namespace DialogHeader {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare namespace DialogFooter {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
17
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
18
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
19
|
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription };
|
|
@@ -20,8 +20,8 @@ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMe
|
|
|
20
20
|
inset?: boolean;
|
|
21
21
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare
|
|
24
|
-
|
|
25
|
-
displayName: string;
|
|
26
|
-
}
|
|
23
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare namespace DropdownMenuShortcut {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
27
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -6,8 +6,8 @@ declare function FieldLegend({ className, variant, ...props }: React.ComponentPr
|
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare const fieldVariants: (props?: ({
|
|
9
|
-
orientation?: "horizontal" | "
|
|
10
|
-
} & import("class-variance-authority/
|
|
9
|
+
orientation?: "horizontal" | "responsive" | "vertical" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
5
|
export { Label };
|
|
@@ -24,8 +24,8 @@ declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitiv
|
|
|
24
24
|
inset?: boolean;
|
|
25
25
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
declare
|
|
28
|
-
|
|
29
|
-
displayname: string;
|
|
30
|
-
}
|
|
27
|
+
declare function MenubarShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare namespace MenubarShortcut {
|
|
29
|
+
var displayname: string;
|
|
30
|
+
}
|
|
31
31
|
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.
|
|
4
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
5
5
|
variant?: "default" | "outline" | null | undefined;
|
|
6
|
-
size?: "default" | "
|
|
7
|
-
} & import("class-variance-authority/
|
|
6
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
9
|
variant?: "default" | "outline" | null | undefined;
|
|
10
|
-
size?: "default" | "
|
|
11
|
-
} & import("class-variance-authority/
|
|
10
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -3,10 +3,10 @@ import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
4
|
declare const toggleVariants: (props?: ({
|
|
5
5
|
variant?: "default" | "outline" | null | undefined;
|
|
6
|
-
size?: "default" | "
|
|
7
|
-
} & import("class-variance-authority/
|
|
6
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
9
|
variant?: "default" | "outline" | null | undefined;
|
|
10
|
-
size?: "default" | "
|
|
11
|
-
} & import("class-variance-authority/
|
|
10
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export { Toggle, toggleVariants };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "Babylon.js Editor is a Web Application helping artists to work with Babylon.js",
|
|
5
5
|
"productName": "Babylon.js Editor",
|
|
6
6
|
"main": "build/src/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"electron-reloader": "1.2.3",
|
|
37
37
|
"postcss-import": "16.1.0",
|
|
38
38
|
"tailwindcss": "3.4.4",
|
|
39
|
-
"typescript": "
|
|
39
|
+
"typescript": "7.0.2",
|
|
40
40
|
"vitest": "4.1.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"decompress-targz": "^4.1.1",
|
|
100
100
|
"dotenv": "17.2.3",
|
|
101
101
|
"dunder-proto": "1.0.1",
|
|
102
|
-
"electron-updater": "6.
|
|
102
|
+
"electron-updater": "6.8.9",
|
|
103
103
|
"esbuild": "0.28.1",
|
|
104
104
|
"fflate": "0.8.3",
|
|
105
105
|
"filenamify": "4.3.0",
|