@dcl/playground-assets 7.8.1-14112508710.commit-8fa2c9e → 7.8.1-14131012904.commit-6157fcb

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/dist/alpha.d.ts CHANGED
@@ -1309,7 +1309,6 @@ export declare const componentDefinitionByName: {
1309
1309
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1312
- "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1313
1312
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1314
1313
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1315
1314
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2668,32 +2667,6 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2668
2667
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2669
2668
  }
2670
2669
 
2671
- export declare const LightSource: LightSourceComponentDefinitionExtended;
2672
-
2673
- /**
2674
- * @public
2675
- */
2676
- export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2677
- /**
2678
- * LightSource helper with constructor
2679
- */
2680
- Type: LightSourceHelper;
2681
- }
2682
-
2683
- /**
2684
- * @public
2685
- */
2686
- export declare interface LightSourceHelper {
2687
- /**
2688
- * @returns a Light Source type
2689
- */
2690
- Point: (point: PBLightSource_Point) => PBLightSource['type'];
2691
- /**
2692
- * @returns a Light Source type
2693
- */
2694
- Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2695
- }
2696
-
2697
2670
  /**
2698
2671
  * User key event Listeners
2699
2672
  * @public
@@ -4569,85 +4542,6 @@ export declare namespace PBInputModifier_StandardInput {
4569
4542
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4570
4543
  }
4571
4544
 
4572
- /**
4573
- * @public
4574
- */
4575
- export declare interface PBLightSource {
4576
- /** default = true, whether the lightSource is active or not. */
4577
- active?: boolean | undefined;
4578
- /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4579
- color?: PBColor3 | undefined;
4580
- /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4581
- brightness?: number | undefined;
4582
- /** default = 10, how far the light travels, expressed in meters. */
4583
- range?: number | undefined;
4584
- type?: {
4585
- $case: "point";
4586
- point: PBLightSource_Point;
4587
- } | {
4588
- $case: "spot";
4589
- spot: PBLightSource_Spot;
4590
- } | undefined;
4591
- }
4592
-
4593
- /**
4594
- * @public
4595
- */
4596
- export declare namespace PBLightSource {
4597
- export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4598
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4599
- }
4600
-
4601
- /**
4602
- * @public
4603
- */
4604
- export declare interface PBLightSource_Point {
4605
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4606
- shadow?: PBLightSource_ShadowType | undefined;
4607
- }
4608
-
4609
- /**
4610
- * @public
4611
- */
4612
- export declare namespace PBLightSource_Point {
4613
- export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4614
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4615
- }
4616
-
4617
- /**
4618
- * @public
4619
- */
4620
- export declare const enum PBLightSource_ShadowType {
4621
- /** ST_NONE - No shadows are cast from this LightSource. */
4622
- ST_NONE = 0,
4623
- /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4624
- ST_SOFT = 1,
4625
- /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4626
- ST_HARD = 2
4627
- }
4628
-
4629
- /**
4630
- * @public
4631
- */
4632
- export declare interface PBLightSource_Spot {
4633
- /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4634
- innerAngle?: number | undefined;
4635
- /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4636
- outerAngle?: number | undefined;
4637
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4638
- shadow?: PBLightSource_ShadowType | undefined;
4639
- /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4640
- shadowMaskTexture?: TextureUnion | undefined;
4641
- }
4642
-
4643
- /**
4644
- * @public
4645
- */
4646
- export declare namespace PBLightSource_Spot {
4647
- export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4648
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4649
- }
4650
-
4651
4545
  /**
4652
4546
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4653
4547
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5778,7 +5672,6 @@ export declare namespace PBVideoPlayer {
5778
5672
  * an 'instant' transition (like using speed/time = 0)
5779
5673
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5780
5674
  * the holding entity transform).
5781
- * * The fov defines the Field of View of the virtual camera
5782
5675
  */
5783
5676
  /**
5784
5677
  * @public
@@ -5786,8 +5679,6 @@ export declare namespace PBVideoPlayer {
5786
5679
  export declare interface PBVirtualCamera {
5787
5680
  defaultTransition?: CameraTransition | undefined;
5788
5681
  lookAtEntity?: number | undefined;
5789
- /** default: 60 */
5790
- fov?: number | undefined;
5791
5682
  }
5792
5683
 
5793
5684
  /**
@@ -6680,6 +6571,15 @@ export declare namespace ReactEcs {
6680
6571
  }
6681
6572
  }
6682
6573
  const createElement: any;
6574
+ export type SetStateAction<T> = T | ((prevState: T) => T);
6575
+ export type Dispatch<T> = (action: SetStateAction<T>) => void;
6576
+ export type StateHook = <T>(initialState: T | (() => T)) => [T, Dispatch<T>];
6577
+ export type DependencyList = ReadonlyArray<any>;
6578
+ export type EffectCallback = () => void | (() => void | undefined);
6579
+ export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
6580
+ const useEffect: EffectHook;
6581
+ const useState: StateHook;
6582
+ {};
6683
6583
  }
6684
6584
 
6685
6585
  /**
package/dist/beta.d.ts CHANGED
@@ -1309,7 +1309,6 @@ export declare const componentDefinitionByName: {
1309
1309
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1312
- "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1313
1312
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1314
1313
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1315
1314
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2659,32 +2658,6 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2659
2658
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2660
2659
  }
2661
2660
 
2662
- export declare const LightSource: LightSourceComponentDefinitionExtended;
2663
-
2664
- /**
2665
- * @public
2666
- */
2667
- export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2668
- /**
2669
- * LightSource helper with constructor
2670
- */
2671
- Type: LightSourceHelper;
2672
- }
2673
-
2674
- /**
2675
- * @public
2676
- */
2677
- export declare interface LightSourceHelper {
2678
- /**
2679
- * @returns a Light Source type
2680
- */
2681
- Point: (point: PBLightSource_Point) => PBLightSource['type'];
2682
- /**
2683
- * @returns a Light Source type
2684
- */
2685
- Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2686
- }
2687
-
2688
2661
  /**
2689
2662
  * User key event Listeners
2690
2663
  * @public
@@ -4541,85 +4514,6 @@ export declare namespace PBInputModifier_StandardInput {
4541
4514
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4542
4515
  }
4543
4516
 
4544
- /**
4545
- * @public
4546
- */
4547
- export declare interface PBLightSource {
4548
- /** default = true, whether the lightSource is active or not. */
4549
- active?: boolean | undefined;
4550
- /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4551
- color?: PBColor3 | undefined;
4552
- /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4553
- brightness?: number | undefined;
4554
- /** default = 10, how far the light travels, expressed in meters. */
4555
- range?: number | undefined;
4556
- type?: {
4557
- $case: "point";
4558
- point: PBLightSource_Point;
4559
- } | {
4560
- $case: "spot";
4561
- spot: PBLightSource_Spot;
4562
- } | undefined;
4563
- }
4564
-
4565
- /**
4566
- * @public
4567
- */
4568
- export declare namespace PBLightSource {
4569
- export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4570
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4571
- }
4572
-
4573
- /**
4574
- * @public
4575
- */
4576
- export declare interface PBLightSource_Point {
4577
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4578
- shadow?: PBLightSource_ShadowType | undefined;
4579
- }
4580
-
4581
- /**
4582
- * @public
4583
- */
4584
- export declare namespace PBLightSource_Point {
4585
- export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4586
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4587
- }
4588
-
4589
- /**
4590
- * @public
4591
- */
4592
- export declare const enum PBLightSource_ShadowType {
4593
- /** ST_NONE - No shadows are cast from this LightSource. */
4594
- ST_NONE = 0,
4595
- /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4596
- ST_SOFT = 1,
4597
- /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4598
- ST_HARD = 2
4599
- }
4600
-
4601
- /**
4602
- * @public
4603
- */
4604
- export declare interface PBLightSource_Spot {
4605
- /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4606
- innerAngle?: number | undefined;
4607
- /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4608
- outerAngle?: number | undefined;
4609
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4610
- shadow?: PBLightSource_ShadowType | undefined;
4611
- /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4612
- shadowMaskTexture?: TextureUnion | undefined;
4613
- }
4614
-
4615
- /**
4616
- * @public
4617
- */
4618
- export declare namespace PBLightSource_Spot {
4619
- export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4620
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4621
- }
4622
-
4623
4517
  /**
4624
4518
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4625
4519
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5750,7 +5644,6 @@ export declare namespace PBVideoPlayer {
5750
5644
  * an 'instant' transition (like using speed/time = 0)
5751
5645
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5752
5646
  * the holding entity transform).
5753
- * * The fov defines the Field of View of the virtual camera
5754
5647
  */
5755
5648
  /**
5756
5649
  * @public
@@ -5758,8 +5651,6 @@ export declare namespace PBVideoPlayer {
5758
5651
  export declare interface PBVirtualCamera {
5759
5652
  defaultTransition?: CameraTransition | undefined;
5760
5653
  lookAtEntity?: number | undefined;
5761
- /** default: 60 */
5762
- fov?: number | undefined;
5763
5654
  }
5764
5655
 
5765
5656
  /**
@@ -6652,6 +6543,15 @@ export declare namespace ReactEcs {
6652
6543
  }
6653
6544
  }
6654
6545
  const createElement: any;
6546
+ export type SetStateAction<T> = T | ((prevState: T) => T);
6547
+ export type Dispatch<T> = (action: SetStateAction<T>) => void;
6548
+ export type StateHook = <T>(initialState: T | (() => T)) => [T, Dispatch<T>];
6549
+ export type DependencyList = ReadonlyArray<any>;
6550
+ export type EffectCallback = () => void | (() => void | undefined);
6551
+ export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
6552
+ const useEffect: EffectHook;
6553
+ const useState: StateHook;
6554
+ {};
6655
6555
  }
6656
6556
 
6657
6557
  /**
@@ -1309,7 +1309,6 @@ export declare const componentDefinitionByName: {
1309
1309
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1312
- "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1313
1312
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1314
1313
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1315
1314
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2659,32 +2658,6 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2659
2658
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2660
2659
  }
2661
2660
 
2662
- export declare const LightSource: LightSourceComponentDefinitionExtended;
2663
-
2664
- /**
2665
- * @public
2666
- */
2667
- export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2668
- /**
2669
- * LightSource helper with constructor
2670
- */
2671
- Type: LightSourceHelper;
2672
- }
2673
-
2674
- /**
2675
- * @public
2676
- */
2677
- export declare interface LightSourceHelper {
2678
- /**
2679
- * @returns a Light Source type
2680
- */
2681
- Point: (point: PBLightSource_Point) => PBLightSource['type'];
2682
- /**
2683
- * @returns a Light Source type
2684
- */
2685
- Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2686
- }
2687
-
2688
2661
  /**
2689
2662
  * User key event Listeners
2690
2663
  * @public
@@ -4541,85 +4514,6 @@ export declare namespace PBInputModifier_StandardInput {
4541
4514
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4542
4515
  }
4543
4516
 
4544
- /**
4545
- * @public
4546
- */
4547
- export declare interface PBLightSource {
4548
- /** default = true, whether the lightSource is active or not. */
4549
- active?: boolean | undefined;
4550
- /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4551
- color?: PBColor3 | undefined;
4552
- /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4553
- brightness?: number | undefined;
4554
- /** default = 10, how far the light travels, expressed in meters. */
4555
- range?: number | undefined;
4556
- type?: {
4557
- $case: "point";
4558
- point: PBLightSource_Point;
4559
- } | {
4560
- $case: "spot";
4561
- spot: PBLightSource_Spot;
4562
- } | undefined;
4563
- }
4564
-
4565
- /**
4566
- * @public
4567
- */
4568
- export declare namespace PBLightSource {
4569
- export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4570
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4571
- }
4572
-
4573
- /**
4574
- * @public
4575
- */
4576
- export declare interface PBLightSource_Point {
4577
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4578
- shadow?: PBLightSource_ShadowType | undefined;
4579
- }
4580
-
4581
- /**
4582
- * @public
4583
- */
4584
- export declare namespace PBLightSource_Point {
4585
- export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4586
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4587
- }
4588
-
4589
- /**
4590
- * @public
4591
- */
4592
- export declare const enum PBLightSource_ShadowType {
4593
- /** ST_NONE - No shadows are cast from this LightSource. */
4594
- ST_NONE = 0,
4595
- /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4596
- ST_SOFT = 1,
4597
- /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4598
- ST_HARD = 2
4599
- }
4600
-
4601
- /**
4602
- * @public
4603
- */
4604
- export declare interface PBLightSource_Spot {
4605
- /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4606
- innerAngle?: number | undefined;
4607
- /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4608
- outerAngle?: number | undefined;
4609
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4610
- shadow?: PBLightSource_ShadowType | undefined;
4611
- /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4612
- shadowMaskTexture?: TextureUnion | undefined;
4613
- }
4614
-
4615
- /**
4616
- * @public
4617
- */
4618
- export declare namespace PBLightSource_Spot {
4619
- export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4620
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4621
- }
4622
-
4623
4517
  /**
4624
4518
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4625
4519
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5750,7 +5644,6 @@ export declare namespace PBVideoPlayer {
5750
5644
  * an 'instant' transition (like using speed/time = 0)
5751
5645
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5752
5646
  * the holding entity transform).
5753
- * * The fov defines the Field of View of the virtual camera
5754
5647
  */
5755
5648
  /**
5756
5649
  * @public
@@ -5758,8 +5651,6 @@ export declare namespace PBVideoPlayer {
5758
5651
  export declare interface PBVirtualCamera {
5759
5652
  defaultTransition?: CameraTransition | undefined;
5760
5653
  lookAtEntity?: number | undefined;
5761
- /** default: 60 */
5762
- fov?: number | undefined;
5763
5654
  }
5764
5655
 
5765
5656
  /**
@@ -6652,6 +6543,15 @@ export declare namespace ReactEcs {
6652
6543
  }
6653
6544
  }
6654
6545
  const createElement: any;
6546
+ export type SetStateAction<T> = T | ((prevState: T) => T);
6547
+ export type Dispatch<T> = (action: SetStateAction<T>) => void;
6548
+ export type StateHook = <T>(initialState: T | (() => T)) => [T, Dispatch<T>];
6549
+ export type DependencyList = ReadonlyArray<any>;
6550
+ export type EffectCallback = () => void | (() => void | undefined);
6551
+ export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
6552
+ const useEffect: EffectHook;
6553
+ const useState: StateHook;
6554
+ {};
6655
6555
  }
6656
6556
 
6657
6557
  /**