@babylonjs/node-editor 8.55.2 → 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.
@@ -4478,7 +4478,7 @@ export type EntitySelectorProps<T extends Entity> = (PrimitiveProps<Nullable<T>>
4478
4478
  /**
4479
4479
  * Optional default value that enables clearing the current linked entity
4480
4480
  */
4481
- defaultValue?: T;
4481
+ defaultValue?: Nullable<T>;
4482
4482
  };
4483
4483
  /**
4484
4484
  * A generic primitive component with a ComboBox for selecting from a list of entities.
@@ -4751,6 +4751,31 @@ type CollapseProps = {
4751
4751
  export const Collapse: FunctionComponent<PropsWithChildren<CollapseProps>>;
4752
4752
  export {};
4753
4753
 
4754
+ }
4755
+ declare module "@babylonjs/node-editor/fluent/primitives/clusteredLightContainerSelector" {
4756
+ import { FunctionComponent } from "react";
4757
+ import { Scene } from "@babylonjs/core/scene";
4758
+ import { Nullable } from "@babylonjs/core/types";
4759
+ import { PrimitiveProps } from "@babylonjs/node-editor/fluent/primitives/primitive";
4760
+ import { EntitySelectorProps } from "@babylonjs/node-editor/fluent/primitives/entitySelector";
4761
+ import { ClusteredLightContainer } from "@babylonjs/core/Lights/Clustered/clusteredLightContainer";
4762
+ export type ClusteredLightContainerSelectorProps = PrimitiveProps<Nullable<ClusteredLightContainer>> & {
4763
+ /**
4764
+ * The scene to get clustered light containers from
4765
+ */
4766
+ scene: Scene;
4767
+ /**
4768
+ * Optional filter function to filter which clustered light containers are shown
4769
+ */
4770
+ filter?: (container: ClusteredLightContainer) => boolean;
4771
+ } & Omit<EntitySelectorProps<ClusteredLightContainer>, "getEntities" | "getName">;
4772
+ /**
4773
+ * A primitive component with a ComboBox for selecting from existing scene clustered light containers.
4774
+ * @param props ClusteredLightContainerSelectorProps
4775
+ * @returns ClusteredLightContainerSelector component
4776
+ */
4777
+ export const ClusteredLightContainerSelector: FunctionComponent<ClusteredLightContainerSelectorProps>;
4778
+
4754
4779
  }
4755
4780
  declare module "@babylonjs/node-editor/fluent/primitives/checkbox" {
4756
4781
  import { FunctionComponent } from "react";
@@ -5485,24 +5510,28 @@ export const HexPropertyLine: FunctionComponent<HexPropertyLineProps>;
5485
5510
 
5486
5511
  }
5487
5512
  declare module "@babylonjs/node-editor/fluent/hoc/propertyLines/entitySelectorPropertyLine" {
5513
+ import { Skeleton } from "@babylonjs/core/Bones/skeleton";
5514
+ import { ClusteredLightContainer } from "@babylonjs/core/Lights/Clustered/clusteredLightContainer";
5515
+ import { Material } from "@babylonjs/core/Materials/material";
5516
+ import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
5488
5517
  import { Node } from "@babylonjs/core/node";
5489
5518
  import { Nullable } from "@babylonjs/core/types";
5490
- import { PropertyLineProps } from "@babylonjs/node-editor/fluent/hoc/propertyLines/propertyLine";
5491
- import { NodeSelectorProps } from "@babylonjs/node-editor/fluent/primitives/nodeSelector";
5519
+ import { ClusteredLightContainerSelectorProps } from "@babylonjs/node-editor/fluent/primitives/clusteredLightContainerSelector";
5492
5520
  import { MaterialSelectorProps } from "@babylonjs/node-editor/fluent/primitives/materialSelector";
5493
- import { TextureSelectorProps } from "@babylonjs/node-editor/fluent/primitives/textureSelector";
5521
+ import { NodeSelectorProps } from "@babylonjs/node-editor/fluent/primitives/nodeSelector";
5494
5522
  import { SkeletonSelectorProps } from "@babylonjs/node-editor/fluent/primitives/skeletonSelector";
5495
- import { Material } from "@babylonjs/core/Materials/material";
5496
- import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
5497
- import { Skeleton } from "@babylonjs/core/Bones/skeleton";
5523
+ import { TextureSelectorProps } from "@babylonjs/node-editor/fluent/primitives/textureSelector";
5524
+ import { PropertyLineProps } from "@babylonjs/node-editor/fluent/hoc/propertyLines/propertyLine";
5498
5525
  type NodeSelectorPropertyLineProps = PropertyLineProps<Nullable<Node>> & NodeSelectorProps;
5499
5526
  type MaterialSelectorPropertyLineProps = PropertyLineProps<Nullable<Material>> & MaterialSelectorProps;
5500
5527
  type TextureSelectorPropertyLineProps = PropertyLineProps<Nullable<BaseTexture>> & TextureSelectorProps;
5501
5528
  type SkeletonSelectorPropertyLineProps = PropertyLineProps<Nullable<Skeleton>> & SkeletonSelectorProps;
5529
+ type ClusteredLightContainerSelectorPropertyLineProps = PropertyLineProps<Nullable<ClusteredLightContainer>> & ClusteredLightContainerSelectorProps;
5502
5530
  export const NodeSelectorPropertyLine: (props: NodeSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5503
5531
  export const MaterialSelectorPropertyLine: (props: MaterialSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5504
5532
  export const TextureSelectorPropertyLine: (props: TextureSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5505
5533
  export const SkeletonSelectorPropertyLine: (props: SkeletonSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5534
+ export const ClusteredLightContainerSelectorPropertyLine: (props: ClusteredLightContainerSelectorPropertyLineProps) => import("react/jsx-runtime").JSX.Element;
5506
5535
  export {};
5507
5536
 
5508
5537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "8.55.2",
3
+ "version": "8.55.4",
4
4
  "main": "dist/babylon.nodeEditor.js",
5
5
  "module": "dist/babylon.nodeEditor.js",
6
6
  "esnext": "dist/babylon.nodeEditor.js",
@@ -23,7 +23,7 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "8.55.2",
26
+ "@babylonjs/core": "8.55.4",
27
27
  "@tools/node-editor": "1.0.0",
28
28
  "react": "^18.2.0",
29
29
  "react-dom": "^18.2.0"