@dcl/playground-assets 7.30.2-38470202470.commit-ee06955 → 7.30.2-38752426937.commit-d38a9c4

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)
@@ -940,10 +909,10 @@ export type Coords = {
940
909
  export const CRDT_MESSAGE_HEADER_LENGTH = 8;
941
910
 
942
911
  // @public (undocumented)
943
- export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
912
+ export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
944
913
 
945
914
  // @public (undocumented)
946
- export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
915
+ export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
947
916
 
948
917
  // @public
949
918
  export type CrdtMessageHeader = {
@@ -964,8 +933,6 @@ export enum CrdtMessageType {
964
933
  // (undocumented)
965
934
  APPEND_VALUE = 4,
966
935
  // (undocumented)
967
- AUTHORITATIVE_PUT_COMPONENT = 8,
968
- // (undocumented)
969
936
  DELETE_COMPONENT = 2,
970
937
  // (undocumented)
971
938
  DELETE_COMPONENT_NETWORK = 6,
@@ -974,7 +941,7 @@ export enum CrdtMessageType {
974
941
  // (undocumented)
975
942
  DELETE_ENTITY_NETWORK = 7,
976
943
  // (undocumented)
977
- MAX_MESSAGE_TYPE = 9,
944
+ MAX_MESSAGE_TYPE = 8,
978
945
  // (undocumented)
979
946
  PUT_COMPONENT = 1,
980
947
  // (undocumented)
@@ -986,11 +953,6 @@ export enum CrdtMessageType {
986
953
  // @public (undocumented)
987
954
  export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
988
955
 
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
956
  // @public (undocumented)
995
957
  export function createEntityContainer(opts?: {
996
958
  reservedStaticEntities: number;
@@ -1484,19 +1446,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
1484
1446
  // @public (undocumented)
1485
1447
  export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
1486
1448
 
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
1449
  // @public (undocumented)
1501
1450
  export interface IEngine {
1502
1451
  addEntity(): Entity;
@@ -1753,20 +1702,6 @@ export const enum InteractionType {
1753
1702
  PROXIMITY = 1
1754
1703
  }
1755
1704
 
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
1705
  // @public (undocumented)
1771
1706
  export interface ISchema<T = any> {
1772
1707
  // (undocumented)
@@ -5429,7 +5364,6 @@ export type Transport = {
5429
5364
  onmessage?(message: Uint8Array): void;
5430
5365
  filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
5431
5366
  type?: string;
5432
- allowReservedEntities?: boolean;
5433
5367
  };
5434
5368
 
5435
5369
  // @public (undocumented)
@@ -5728,17 +5662,6 @@ export interface UiTransformProps {
5728
5662
  // @public (undocumented)
5729
5663
  export type Unpacked<T> = T extends (infer U)[] ? U : T;
5730
5664
 
5731
- // 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)
5732
- //
5733
- // @public (undocumented)
5734
- export type ValidateCallback<T> = (value: {
5735
- entity: Entity;
5736
- currentValue: T | undefined;
5737
- newValue: T | undefined;
5738
- senderAddress: string;
5739
- createdBy: string;
5740
- }) => boolean;
5741
-
5742
5665
  // @public (undocumented)
5743
5666
  export type ValueSetOptions<T> = {
5744
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.30.2-38470202470.commit-ee06955",
4
+ "version": "7.30.2-38752426937.commit-d38a9c4",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.30.2-38470202470.commit-ee06955",
8
- "@dcl/sdk": "7.30.2-38470202470.commit-ee06955"
7
+ "@dcl/js-runtime": "7.30.2-38752426937.commit-d38a9c4",
8
+ "@dcl/sdk": "7.30.2-38752426937.commit-d38a9c4"
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": "ee06955d61a6c1b6a7b820b76daff80062dfbf25"
35
+ "commit": "d38a9c4e3f336e1c15ec4f493188246ecf0778c9"
37
36
  }