@dcl/playground-assets 7.31.1-41508430758.commit-0af8af0 → 7.32.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.
@@ -136,29 +136,6 @@ export interface AudioStreamComponentDefinitionExtended extends LastWriteWinElem
136
136
  getAudioState(entity: Entity): PBAudioEvent | undefined;
137
137
  }
138
138
 
139
- // @public (undocumented)
140
- export type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
141
-
142
- // Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
143
- //
144
- // @public
145
- export type AuthoritativePutComponentMessageBody = {
146
- type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
147
- entityId: Entity;
148
- componentId: number;
149
- timestamp: number;
150
- data: Uint8Array;
151
- };
152
-
153
- // @public (undocumented)
154
- export namespace AuthoritativePutComponentOperation {
155
- const // (undocumented)
156
- MESSAGE_HEADER_LENGTH = 16;
157
- // (undocumented)
158
- export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
159
- export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
160
- }
161
-
162
139
  // @public (undocumented)
163
140
  export const enum AvatarAnchorPointType {
164
141
  // (undocumented)
@@ -286,20 +263,12 @@ export interface BaseComponent<T> {
286
263
  dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
287
264
  entityDeleted(entity: Entity, markAsDirty: boolean): void;
288
265
  get(entity: Entity): any;
289
- getCrdtState(entity: Entity): {
290
- data: Uint8Array;
291
- timestamp: number;
292
- } | null;
293
266
  getCrdtUpdates(): Iterable<CrdtMessageBody>;
294
267
  has(entity: Entity): boolean;
295
268
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
296
269
  // (undocumented)
297
270
  readonly schema: ISchema<T>;
298
271
  updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
299
- // (undocumented)
300
- validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
301
- // (undocumented)
302
- validateBeforeChange(cb: ValidateCallback<T>): void;
303
272
  }
304
273
 
305
274
  // @public (undocumented)
@@ -695,6 +664,34 @@ export type Color4Type = {
695
664
  a: number;
696
665
  };
697
666
 
667
+ // @public (undocumented)
668
+ export interface ColorGradient {
669
+ // (undocumented)
670
+ keys: ColorKey[];
671
+ }
672
+
673
+ // @public (undocumented)
674
+ export namespace ColorGradient {
675
+ // (undocumented)
676
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorGradient;
677
+ // (undocumented)
678
+ export function encode(message: ColorGradient, writer?: _m0.Writer): _m0.Writer;
679
+ }
680
+
681
+ // @public (undocumented)
682
+ export interface ColorKey {
683
+ color: PBColor4 | undefined;
684
+ time: number;
685
+ }
686
+
687
+ // @public (undocumented)
688
+ export namespace ColorKey {
689
+ // (undocumented)
690
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorKey;
691
+ // (undocumented)
692
+ export function encode(message: ColorKey, writer?: _m0.Writer): _m0.Writer;
693
+ }
694
+
698
695
  // @public (undocumented)
699
696
  export interface ColorRange {
700
697
  // (undocumented)
@@ -761,6 +758,7 @@ export const componentDefinitionByName: {
761
758
  "core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
762
759
  "core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
763
760
  "core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
761
+ "core::EnvironmentFog": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEnvironmentFog>>;
764
762
  "core::ExplorerItemPurchaseResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
765
763
  "core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
766
764
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
@@ -784,7 +782,9 @@ export const componentDefinitionByName: {
784
782
  "core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
785
783
  "core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
786
784
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
785
+ "core::Skybox": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkybox>>;
787
786
  "core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
787
+ "core::Sun": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSun>>;
788
788
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
789
789
  "core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
790
790
  "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
@@ -940,10 +940,10 @@ export type Coords = {
940
940
  export const CRDT_MESSAGE_HEADER_LENGTH = 8;
941
941
 
942
942
  // @public (undocumented)
943
- export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
943
+ export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
944
944
 
945
945
  // @public (undocumented)
946
- export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
946
+ export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
947
947
 
948
948
  // @public
949
949
  export type CrdtMessageHeader = {
@@ -964,8 +964,6 @@ export enum CrdtMessageType {
964
964
  // (undocumented)
965
965
  APPEND_VALUE = 4,
966
966
  // (undocumented)
967
- AUTHORITATIVE_PUT_COMPONENT = 8,
968
- // (undocumented)
969
967
  DELETE_COMPONENT = 2,
970
968
  // (undocumented)
971
969
  DELETE_COMPONENT_NETWORK = 6,
@@ -974,7 +972,7 @@ export enum CrdtMessageType {
974
972
  // (undocumented)
975
973
  DELETE_ENTITY_NETWORK = 7,
976
974
  // (undocumented)
977
- MAX_MESSAGE_TYPE = 9,
975
+ MAX_MESSAGE_TYPE = 8,
978
976
  // (undocumented)
979
977
  PUT_COMPONENT = 1,
980
978
  // (undocumented)
@@ -986,11 +984,6 @@ export enum CrdtMessageType {
986
984
  // @public (undocumented)
987
985
  export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
988
986
 
989
- // Warning: (ae-missing-release-tag) "CreatedBy" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
990
- //
991
- // @public (undocumented)
992
- export const CreatedBy: ICreatedBy;
993
-
994
987
  // @public (undocumented)
995
988
  export function createEntityContainer(opts?: {
996
989
  reservedStaticEntities: number;
@@ -1297,6 +1290,9 @@ export namespace EntityUtils {
1297
1290
  export function toEntityId(entityNumber: number, entityVersion: number): Entity;
1298
1291
  }
1299
1292
 
1293
+ // @public (undocumented)
1294
+ export const EnvironmentFog: LastWriteWinElementSetComponentDefinition<PBEnvironmentFog>;
1295
+
1300
1296
  // @public
1301
1297
  export const Epsilon = 0.000001;
1302
1298
 
@@ -1484,19 +1480,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
1484
1480
  // @public (undocumented)
1485
1481
  export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
1486
1482
 
1487
- // Warning: (ae-missing-release-tag) "ICreatedBy" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1488
- //
1489
- // @public (undocumented)
1490
- export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
1491
-
1492
- // Warning: (ae-missing-release-tag) "ICreatedByType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1493
- //
1494
- // @public (undocumented)
1495
- export interface ICreatedByType {
1496
- // (undocumented)
1497
- address: string;
1498
- }
1499
-
1500
1483
  // @public (undocumented)
1501
1484
  export interface IEngine {
1502
1485
  addEntity(): Entity;
@@ -1753,20 +1736,6 @@ export const enum InteractionType {
1753
1736
  PROXIMITY = 1
1754
1737
  }
1755
1738
 
1756
- // Warning: (ae-missing-release-tag) "InternalBaseComponent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1757
- //
1758
- // @public
1759
- export interface InternalBaseComponent<T> extends BaseComponent<T> {
1760
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
1761
- // (undocumented)
1762
- __onChangeCallbacks(entity: Entity, value: T): void;
1763
- // (undocumented)
1764
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
1765
- // (undocumented)
1766
- dirtyIterator(): Iterable<Entity>;
1767
- iterator(): Iterable<[Entity, any]>;
1768
- }
1769
-
1770
1739
  // @public (undocumented)
1771
1740
  export interface ISchema<T = any> {
1772
1741
  // (undocumented)
@@ -2865,6 +2834,21 @@ export namespace PBEngineInfo {
2865
2834
  export function encode(message: PBEngineInfo, writer?: _m0.Writer): _m0.Writer;
2866
2835
  }
2867
2836
 
2837
+ // @public (undocumented)
2838
+ export interface PBEnvironmentFog {
2839
+ // (undocumented)
2840
+ color?: ColorGradient | undefined;
2841
+ density?: number | undefined;
2842
+ }
2843
+
2844
+ // @public (undocumented)
2845
+ export namespace PBEnvironmentFog {
2846
+ // (undocumented)
2847
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEnvironmentFog;
2848
+ // (undocumented)
2849
+ export function encode(message: PBEnvironmentFog, writer?: _m0.Writer): _m0.Writer;
2850
+ }
2851
+
2868
2852
  // @public (undocumented)
2869
2853
  export interface PBExplorerItemPurchaseResult {
2870
2854
  requestId: number;
@@ -3816,6 +3800,67 @@ export namespace PBRealmInfo {
3816
3800
  export function encode(message: PBRealmInfo, writer?: _m0.Writer): _m0.Writer;
3817
3801
  }
3818
3802
 
3803
+ // @public (undocumented)
3804
+ export interface PBSkybox {
3805
+ clouds?: PBSkybox_Clouds | undefined;
3806
+ skyboxTexture?: string | undefined;
3807
+ skyColors?: PBSkybox_SkyColors | undefined;
3808
+ stars?: PBSkybox_Stars | undefined;
3809
+ }
3810
+
3811
+ // @public (undocumented)
3812
+ export namespace PBSkybox {
3813
+ // (undocumented)
3814
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox;
3815
+ // (undocumented)
3816
+ export function encode(message: PBSkybox, writer?: _m0.Writer): _m0.Writer;
3817
+ }
3818
+
3819
+ // @public (undocumented)
3820
+ export interface PBSkybox_Clouds {
3821
+ // (undocumented)
3822
+ color?: ColorGradient | undefined;
3823
+ opacity?: number | undefined;
3824
+ speed?: number | undefined;
3825
+ }
3826
+
3827
+ // @public (undocumented)
3828
+ export namespace PBSkybox_Clouds {
3829
+ // (undocumented)
3830
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_Clouds;
3831
+ // (undocumented)
3832
+ export function encode(message: PBSkybox_Clouds, writer?: _m0.Writer): _m0.Writer;
3833
+ }
3834
+
3835
+ // @public (undocumented)
3836
+ export interface PBSkybox_SkyColors {
3837
+ horizon?: ColorGradient | undefined;
3838
+ nadir?: ColorGradient | undefined;
3839
+ rim?: ColorGradient | undefined;
3840
+ zenith?: ColorGradient | undefined;
3841
+ }
3842
+
3843
+ // @public (undocumented)
3844
+ export namespace PBSkybox_SkyColors {
3845
+ // (undocumented)
3846
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_SkyColors;
3847
+ // (undocumented)
3848
+ export function encode(message: PBSkybox_SkyColors, writer?: _m0.Writer): _m0.Writer;
3849
+ }
3850
+
3851
+ // @public (undocumented)
3852
+ export interface PBSkybox_Stars {
3853
+ brightness?: number | undefined;
3854
+ }
3855
+
3856
+ // @public (undocumented)
3857
+ export namespace PBSkybox_Stars {
3858
+ // (undocumented)
3859
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_Stars;
3860
+ // (undocumented)
3861
+ export function encode(message: PBSkybox_Stars, writer?: _m0.Writer): _m0.Writer;
3862
+ }
3863
+
3819
3864
  // @public (undocumented)
3820
3865
  export interface PBSkyboxTime {
3821
3866
  fixedTime: number;
@@ -3830,6 +3875,22 @@ export namespace PBSkyboxTime {
3830
3875
  export function encode(message: PBSkyboxTime, writer?: _m0.Writer): _m0.Writer;
3831
3876
  }
3832
3877
 
3878
+ // @public (undocumented)
3879
+ export interface PBSun {
3880
+ color?: ColorGradient | undefined;
3881
+ direction?: PBVector3 | undefined;
3882
+ intensity?: number | undefined;
3883
+ visible?: boolean | undefined;
3884
+ }
3885
+
3886
+ // @public (undocumented)
3887
+ export namespace PBSun {
3888
+ // (undocumented)
3889
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSun;
3890
+ // (undocumented)
3891
+ export function encode(message: PBSun, writer?: _m0.Writer): _m0.Writer;
3892
+ }
3893
+
3833
3894
  // @public (undocumented)
3834
3895
  export interface PBTextShape {
3835
3896
  font?: Font | undefined;
@@ -5108,6 +5169,9 @@ export interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
5108
5169
  easingFunction?: EasingFunction;
5109
5170
  }
5110
5171
 
5172
+ // @public (undocumented)
5173
+ export const Skybox: LastWriteWinElementSetComponentDefinition<PBSkybox>;
5174
+
5111
5175
  // @public (undocumented)
5112
5176
  export const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
5113
5177
 
@@ -5117,6 +5181,9 @@ export interface Spec {
5117
5181
  [key: string]: ISchema;
5118
5182
  }
5119
5183
 
5184
+ // @public (undocumented)
5185
+ export const Sun: LastWriteWinElementSetComponentDefinition<PBSun>;
5186
+
5120
5187
  // @alpha
5121
5188
  export const SyncComponents: ISyncComponents;
5122
5189
 
@@ -5378,6 +5445,7 @@ export interface TouchScreenControlsComponentDefinitionExtended extends LastWrit
5378
5445
  setMainAction(action: InputAction): void;
5379
5446
  showAll(): void;
5380
5447
  showCrosshair(): void;
5448
+ showDefault(): void;
5381
5449
  showJoystick(): void;
5382
5450
  }
5383
5451
 
@@ -5434,7 +5502,6 @@ export type Transport = {
5434
5502
  onmessage?(message: Uint8Array): void;
5435
5503
  filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
5436
5504
  type?: string;
5437
- allowReservedEntities?: boolean;
5438
5505
  };
5439
5506
 
5440
5507
  // @public (undocumented)
@@ -5734,17 +5801,6 @@ export interface UiTransformProps {
5734
5801
  // @public (undocumented)
5735
5802
  export type Unpacked<T> = T extends (infer U)[] ? U : T;
5736
5803
 
5737
- // Warning: (ae-missing-release-tag) "ValidateCallback" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
5738
- //
5739
- // @public (undocumented)
5740
- export type ValidateCallback<T> = (value: {
5741
- entity: Entity;
5742
- currentValue: T | undefined;
5743
- newValue: T | undefined;
5744
- senderAddress: string;
5745
- createdBy: string;
5746
- }) => boolean;
5747
-
5748
5804
  // @public (undocumented)
5749
5805
  export type ValueSetOptions<T> = {
5750
5806
  timestampFunction: (value: DeepReadonly<T>) => number;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.31.1-41508430758.commit-0af8af0",
4
+ "version": "7.32.0",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.31.1-41508430758.commit-0af8af0",
8
- "@dcl/sdk": "7.31.1-41508430758.commit-0af8af0"
7
+ "@dcl/js-runtime": "7.32.0",
8
+ "@dcl/sdk": "7.32.0"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@microsoft/api-extractor": "^7.33.8"
@@ -25,13 +25,12 @@
25
25
  "scripts": {
26
26
  "build": "npm run build-playground && node_modules/.bin/api-extractor run",
27
27
  "build-local": "npm run build-playground && node_modules/.bin/api-extractor run --local --verbose --diagnostics",
28
- "build-playground": "./../sdk-commands/dist/index.js build --production --emitDeclaration --customEntryPoint",
29
- "server-logs": "sdk-commands scene-insights tail"
28
+ "build-playground": "./../sdk-commands/dist/index.js build --production --emitDeclaration --customEntryPoint"
30
29
  },
31
30
  "tsdoc": {
32
31
  "tsdocFlavor": "AEDoc"
33
32
  },
34
33
  "types": "./dist/index.d.ts",
35
34
  "typings": "./dist/index.d.ts",
36
- "commit": "0af8af0053ab04de5ec157d179ef45678087281d"
35
+ "commit": "c7c08464f277fd6df22e7c20b0c21a9855c3077d"
37
36
  }