@babylonjs/gui-editor 8.55.3 → 8.55.4

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.
@@ -4602,7 +4602,7 @@ export type EntitySelectorProps<T extends Entity> = (PrimitiveProps<Nullable<T>>
4602
4602
  /**
4603
4603
  * Optional default value that enables clearing the current linked entity
4604
4604
  */
4605
- defaultValue?: T;
4605
+ defaultValue?: Nullable<T>;
4606
4606
  };
4607
4607
  /**
4608
4608
  * A generic primitive component with a ComboBox for selecting from a list of entities.
@@ -4875,6 +4875,31 @@ type CollapseProps = {
4875
4875
  export const Collapse: FunctionComponent<PropsWithChildren<CollapseProps>>;
4876
4876
  export {};
4877
4877
 
4878
+ }
4879
+ declare module "@babylonjs/gui-editor/fluent/primitives/clusteredLightContainerSelector" {
4880
+ import { FunctionComponent } from "react";
4881
+ import { Scene } from "@babylonjs/core/scene";
4882
+ import { Nullable } from "@babylonjs/core/types";
4883
+ import { PrimitiveProps } from "@babylonjs/gui-editor/fluent/primitives/primitive";
4884
+ import { EntitySelectorProps } from "@babylonjs/gui-editor/fluent/primitives/entitySelector";
4885
+ import { ClusteredLightContainer } from "@babylonjs/core/Lights/Clustered/clusteredLightContainer";
4886
+ export type ClusteredLightContainerSelectorProps = PrimitiveProps<Nullable<ClusteredLightContainer>> & {
4887
+ /**
4888
+ * The scene to get clustered light containers from
4889
+ */
4890
+ scene: Scene;
4891
+ /**
4892
+ * Optional filter function to filter which clustered light containers are shown
4893
+ */
4894
+ filter?: (container: ClusteredLightContainer) => boolean;
4895
+ } & Omit<EntitySelectorProps<ClusteredLightContainer>, "getEntities" | "getName">;
4896
+ /**
4897
+ * A primitive component with a ComboBox for selecting from existing scene clustered light containers.
4898
+ * @param props ClusteredLightContainerSelectorProps
4899
+ * @returns ClusteredLightContainerSelector component
4900
+ */
4901
+ export const ClusteredLightContainerSelector: FunctionComponent<ClusteredLightContainerSelectorProps>;
4902
+
4878
4903
  }
4879
4904
  declare module "@babylonjs/gui-editor/fluent/primitives/checkbox" {
4880
4905
  import { FunctionComponent } from "react";
@@ -5609,24 +5634,28 @@ export const HexPropertyLine: FunctionComponent<HexPropertyLineProps>;
5609
5634
 
5610
5635
  }
5611
5636
  declare module "@babylonjs/gui-editor/fluent/hoc/propertyLines/entitySelectorPropertyLine" {
5637
+ import { Skeleton } from "@babylonjs/core/Bones/skeleton";
5638
+ import { ClusteredLightContainer } from "@babylonjs/core/Lights/Clustered/clusteredLightContainer";
5639
+ import { Material } from "@babylonjs/core/Materials/material";
5640
+ import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
5612
5641
  import { Node } from "@babylonjs/core/node";
5613
5642
  import { Nullable } from "@babylonjs/core/types";
5614
- import { PropertyLineProps } from "@babylonjs/gui-editor/fluent/hoc/propertyLines/propertyLine";
5615
- import { NodeSelectorProps } from "@babylonjs/gui-editor/fluent/primitives/nodeSelector";
5643
+ import { ClusteredLightContainerSelectorProps } from "@babylonjs/gui-editor/fluent/primitives/clusteredLightContainerSelector";
5616
5644
  import { MaterialSelectorProps } from "@babylonjs/gui-editor/fluent/primitives/materialSelector";
5617
- import { TextureSelectorProps } from "@babylonjs/gui-editor/fluent/primitives/textureSelector";
5645
+ import { NodeSelectorProps } from "@babylonjs/gui-editor/fluent/primitives/nodeSelector";
5618
5646
  import { SkeletonSelectorProps } from "@babylonjs/gui-editor/fluent/primitives/skeletonSelector";
5619
- import { Material } from "@babylonjs/core/Materials/material";
5620
- import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
5621
- import { Skeleton } from "@babylonjs/core/Bones/skeleton";
5647
+ import { TextureSelectorProps } from "@babylonjs/gui-editor/fluent/primitives/textureSelector";
5648
+ import { PropertyLineProps } from "@babylonjs/gui-editor/fluent/hoc/propertyLines/propertyLine";
5622
5649
  type NodeSelectorPropertyLineProps = PropertyLineProps<Nullable<Node>> & NodeSelectorProps;
5623
5650
  type MaterialSelectorPropertyLineProps = PropertyLineProps<Nullable<Material>> & MaterialSelectorProps;
5624
5651
  type TextureSelectorPropertyLineProps = PropertyLineProps<Nullable<BaseTexture>> & TextureSelectorProps;
5625
5652
  type SkeletonSelectorPropertyLineProps = PropertyLineProps<Nullable<Skeleton>> & SkeletonSelectorProps;
5653
+ type ClusteredLightContainerSelectorPropertyLineProps = PropertyLineProps<Nullable<ClusteredLightContainer>> & ClusteredLightContainerSelectorProps;
5626
5654
  export const NodeSelectorPropertyLine: (props: NodeSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5627
5655
  export const MaterialSelectorPropertyLine: (props: MaterialSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5628
5656
  export const TextureSelectorPropertyLine: (props: TextureSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5629
5657
  export const SkeletonSelectorPropertyLine: (props: SkeletonSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5658
+ export const ClusteredLightContainerSelectorPropertyLine: (props: ClusteredLightContainerSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5630
5659
  export {};
5631
5660
 
5632
5661
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/gui-editor",
3
- "version": "8.55.3",
3
+ "version": "8.55.4",
4
4
  "main": "dist/babylon.guiEditor.js",
5
5
  "module": "dist/babylon.guiEditor.js",
6
6
  "esnext": "dist/babylon.guiEditor.js",
@@ -24,8 +24,8 @@
24
24
  "@types/react-dom": ">=16.0.9"
25
25
  },
26
26
  "devDependencies": {
27
- "@babylonjs/core": "8.55.3",
28
- "@babylonjs/gui": "8.55.3",
27
+ "@babylonjs/core": "8.55.4",
28
+ "@babylonjs/gui": "8.55.4",
29
29
  "@tools/gui-editor": "1.0.0",
30
30
  "react": "^18.2.0",
31
31
  "react-dom": "^18.2.0"