@dcl/playground-assets 7.29.1-36637355925.commit-d261ba1 → 7.30.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)
@@ -761,6 +730,7 @@ export const componentDefinitionByName: {
761
730
  "core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
762
731
  "core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
763
732
  "core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
733
+ "core::ExplorerItemPurchaseResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
764
734
  "core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
765
735
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
766
736
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
@@ -939,10 +909,10 @@ export type Coords = {
939
909
  export const CRDT_MESSAGE_HEADER_LENGTH = 8;
940
910
 
941
911
  // @public (undocumented)
942
- export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
912
+ export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
943
913
 
944
914
  // @public (undocumented)
945
- export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
915
+ export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
946
916
 
947
917
  // @public
948
918
  export type CrdtMessageHeader = {
@@ -963,8 +933,6 @@ export enum CrdtMessageType {
963
933
  // (undocumented)
964
934
  APPEND_VALUE = 4,
965
935
  // (undocumented)
966
- AUTHORITATIVE_PUT_COMPONENT = 8,
967
- // (undocumented)
968
936
  DELETE_COMPONENT = 2,
969
937
  // (undocumented)
970
938
  DELETE_COMPONENT_NETWORK = 6,
@@ -973,7 +941,7 @@ export enum CrdtMessageType {
973
941
  // (undocumented)
974
942
  DELETE_ENTITY_NETWORK = 7,
975
943
  // (undocumented)
976
- MAX_MESSAGE_TYPE = 9,
944
+ MAX_MESSAGE_TYPE = 8,
977
945
  // (undocumented)
978
946
  PUT_COMPONENT = 1,
979
947
  // (undocumented)
@@ -985,11 +953,6 @@ export enum CrdtMessageType {
985
953
  // @public (undocumented)
986
954
  export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
987
955
 
988
- // 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)
989
- //
990
- // @public (undocumented)
991
- export const CreatedBy: ICreatedBy;
992
-
993
956
  // @public (undocumented)
994
957
  export function createEntityContainer(opts?: {
995
958
  reservedStaticEntities: number;
@@ -1322,6 +1285,9 @@ export type ExcludeUndefined<T> = {
1322
1285
  // @public
1323
1286
  export const executeTask: (task: Task<unknown>) => void;
1324
1287
 
1288
+ // @public (undocumented)
1289
+ export const ExplorerItemPurchaseResult: GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>;
1290
+
1325
1291
  // @public (undocumented)
1326
1292
  export const enum ExplorerUi {
1327
1293
  // (undocumented)
@@ -1332,6 +1298,7 @@ export const enum ExplorerUi {
1332
1298
  EU_COMMUNITIES = 4,
1333
1299
  // (undocumented)
1334
1300
  EU_EVENTS = 6,
1301
+ EU_ITEM_PURCHASE = 7,
1335
1302
  // (undocumented)
1336
1303
  EU_MAP = 1,
1337
1304
  // (undocumented)
@@ -1479,19 +1446,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
1479
1446
  // @public (undocumented)
1480
1447
  export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
1481
1448
 
1482
- // 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)
1483
- //
1484
- // @public (undocumented)
1485
- export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
1486
-
1487
- // 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)
1488
- //
1489
- // @public (undocumented)
1490
- export interface ICreatedByType {
1491
- // (undocumented)
1492
- address: string;
1493
- }
1494
-
1495
1449
  // @public (undocumented)
1496
1450
  export interface IEngine {
1497
1451
  addEntity(): Entity;
@@ -1748,20 +1702,6 @@ export const enum InteractionType {
1748
1702
  PROXIMITY = 1
1749
1703
  }
1750
1704
 
1751
- // 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)
1752
- //
1753
- // @public
1754
- export interface InternalBaseComponent<T> extends BaseComponent<T> {
1755
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
1756
- // (undocumented)
1757
- __onChangeCallbacks(entity: Entity, value: T): void;
1758
- // (undocumented)
1759
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
1760
- // (undocumented)
1761
- dirtyIterator(): Iterable<Entity>;
1762
- iterator(): Iterable<[Entity, any]>;
1763
- }
1764
-
1765
1705
  // @public (undocumented)
1766
1706
  export interface ISchema<T = any> {
1767
1707
  // (undocumented)
@@ -2859,6 +2799,69 @@ export namespace PBEngineInfo {
2859
2799
  export function encode(message: PBEngineInfo, writer?: _m0.Writer): _m0.Writer;
2860
2800
  }
2861
2801
 
2802
+ // @public (undocumented)
2803
+ export interface PBExplorerItemPurchaseResult {
2804
+ requestId: number;
2805
+ // (undocumented)
2806
+ status?: {
2807
+ $case: "purchased";
2808
+ purchased: PBExplorerItemPurchaseResult_Purchased;
2809
+ } | {
2810
+ $case: "dismissed";
2811
+ dismissed: PBExplorerItemPurchaseResult_Dismissed;
2812
+ } | {
2813
+ $case: "failed";
2814
+ failed: PBExplorerItemPurchaseResult_Failed;
2815
+ } | undefined;
2816
+ timestamp: number;
2817
+ // (undocumented)
2818
+ urn: string;
2819
+ }
2820
+
2821
+ // @public (undocumented)
2822
+ export namespace PBExplorerItemPurchaseResult {
2823
+ // (undocumented)
2824
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult;
2825
+ // (undocumented)
2826
+ export function encode(message: PBExplorerItemPurchaseResult, writer?: _m0.Writer): _m0.Writer;
2827
+ }
2828
+
2829
+ // @public (undocumented)
2830
+ export interface PBExplorerItemPurchaseResult_Dismissed {
2831
+ }
2832
+
2833
+ // @public (undocumented)
2834
+ export namespace PBExplorerItemPurchaseResult_Dismissed {
2835
+ // (undocumented)
2836
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Dismissed;
2837
+ // (undocumented)
2838
+ export function encode(_: PBExplorerItemPurchaseResult_Dismissed, writer?: _m0.Writer): _m0.Writer;
2839
+ }
2840
+
2841
+ // @public (undocumented)
2842
+ export interface PBExplorerItemPurchaseResult_Failed {
2843
+ }
2844
+
2845
+ // @public (undocumented)
2846
+ export namespace PBExplorerItemPurchaseResult_Failed {
2847
+ // (undocumented)
2848
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Failed;
2849
+ // (undocumented)
2850
+ export function encode(_: PBExplorerItemPurchaseResult_Failed, writer?: _m0.Writer): _m0.Writer;
2851
+ }
2852
+
2853
+ // @public (undocumented)
2854
+ export interface PBExplorerItemPurchaseResult_Purchased {
2855
+ }
2856
+
2857
+ // @public (undocumented)
2858
+ export namespace PBExplorerItemPurchaseResult_Purchased {
2859
+ // (undocumented)
2860
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Purchased;
2861
+ // (undocumented)
2862
+ export function encode(_: PBExplorerItemPurchaseResult_Purchased, writer?: _m0.Writer): _m0.Writer;
2863
+ }
2864
+
2862
2865
  // @public (undocumented)
2863
2866
  export interface PBExplorerUiEventsResult {
2864
2867
  // (undocumented)
@@ -2869,6 +2872,7 @@ export interface PBExplorerUiEventsResult {
2869
2872
  $case: "closed";
2870
2873
  closed: PBExplorerUiEventsResult_UiClosed;
2871
2874
  } | undefined;
2875
+ requestId: number;
2872
2876
  timestamp: number;
2873
2877
  ui: ExplorerUi;
2874
2878
  }
@@ -5360,7 +5364,6 @@ export type Transport = {
5360
5364
  onmessage?(message: Uint8Array): void;
5361
5365
  filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
5362
5366
  type?: string;
5363
- allowReservedEntities?: boolean;
5364
5367
  };
5365
5368
 
5366
5369
  // @public (undocumented)
@@ -5659,17 +5662,6 @@ export interface UiTransformProps {
5659
5662
  // @public (undocumented)
5660
5663
  export type Unpacked<T> = T extends (infer U)[] ? U : T;
5661
5664
 
5662
- // 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)
5663
- //
5664
- // @public (undocumented)
5665
- export type ValidateCallback<T> = (value: {
5666
- entity: Entity;
5667
- currentValue: T | undefined;
5668
- newValue: T | undefined;
5669
- senderAddress: string;
5670
- createdBy: string;
5671
- }) => boolean;
5672
-
5673
5665
  // @public (undocumented)
5674
5666
  export type ValueSetOptions<T> = {
5675
5667
  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.29.1-36637355925.commit-d261ba1",
4
+ "version": "7.30.0",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.29.1-36637355925.commit-d261ba1",
8
- "@dcl/sdk": "7.29.1-36637355925.commit-d261ba1"
7
+ "@dcl/js-runtime": "7.30.0",
8
+ "@dcl/sdk": "7.30.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 sdk-server-logs"
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": "d261ba17c3adb92cac3731e008529bc97e19a04f"
35
+ "commit": "ab46c8191eddd44d23a8e01bdf5fc7d7b7141986"
37
36
  }