@dcl/playground-assets 7.24.6-29505165911.commit-d270434 → 7.24.6-29580060460.commit-06f0b7e

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
@@ -220,42 +220,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
220
220
  getAudioState(entity: Entity): PBAudioEvent | undefined;
221
221
  }
222
222
 
223
- /**
224
- * @public
225
- */
226
- export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
227
-
228
- /**
229
- * Server authoritative message - identical to PutComponentMessageBody but with forced processing
230
- * Min. length = header (8 bytes) + 16 bytes = 24 bytes
231
- *
232
- * @param entity - Uint32 number of the entity
233
- * @param componentId - Uint32 number of id
234
- * @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
235
- * @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
236
- * @public
237
- */
238
- export declare type AuthoritativePutComponentMessageBody = {
239
- type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
240
- entityId: Entity;
241
- componentId: number;
242
- timestamp: number;
243
- data: Uint8Array;
244
- };
245
-
246
- /**
247
- * @public
248
- */
249
- export declare namespace AuthoritativePutComponentOperation {
250
- const MESSAGE_HEADER_LENGTH = 16;
251
- /**
252
- * Call this function for an optimal writing data passing the ByteBuffer
253
- * already allocated
254
- */
255
- export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
256
- export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
257
- }
258
-
259
223
  /** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
260
224
  /**
261
225
  * @public
@@ -428,22 +392,6 @@ export declare interface BaseComponent<T> {
428
392
  * If the value is undefined, the component was deleted.
429
393
  */
430
394
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
431
- /**
432
- * @public
433
- *
434
- */
435
- validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
436
- validateBeforeChange(cb: ValidateCallback<T>): void;
437
- /**
438
- * Get the CRDT state for an entity (serialized data and timestamp)
439
- * @param entity - Entity to get the CRDT state for
440
- * @returns Object with serialized data and timestamp, or null if entity doesn't have the component
441
- * @public
442
- */
443
- getCrdtState(entity: Entity): {
444
- data: Uint8Array;
445
- timestamp: number;
446
- } | null;
447
395
  }
448
396
 
449
397
  /** @public */
@@ -1682,12 +1630,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
1682
1630
  /**
1683
1631
  * @public
1684
1632
  */
1685
- export declare type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1633
+ export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1686
1634
 
1687
1635
  /**
1688
1636
  * @public
1689
1637
  */
1690
- export declare type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1638
+ export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1691
1639
 
1692
1640
  /**
1693
1641
  * Min length = 8 bytes
@@ -1742,8 +1690,7 @@ export declare enum CrdtMessageType {
1742
1690
  PUT_COMPONENT_NETWORK = 5,
1743
1691
  DELETE_COMPONENT_NETWORK = 6,
1744
1692
  DELETE_ENTITY_NETWORK = 7,
1745
- AUTHORITATIVE_PUT_COMPONENT = 8,
1746
- MAX_MESSAGE_TYPE = 9
1693
+ MAX_MESSAGE_TYPE = 8
1747
1694
  }
1748
1695
 
1749
1696
  /**
@@ -1751,8 +1698,6 @@ export declare enum CrdtMessageType {
1751
1698
  */
1752
1699
  export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
1753
1700
 
1754
- export declare const CreatedBy: ICreatedBy;
1755
-
1756
1701
  /**
1757
1702
  * @public
1758
1703
  */
@@ -2479,12 +2424,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
2479
2424
 
2480
2425
  export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
2481
2426
 
2482
- export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
2483
-
2484
- export declare interface ICreatedByType {
2485
- address: string;
2486
- }
2487
-
2488
2427
  /**
2489
2428
  * @public
2490
2429
  */
@@ -2960,35 +2899,6 @@ export declare const enum InteractionType {
2960
2899
  PROXIMITY = 1
2961
2900
  }
2962
2901
 
2963
- /**
2964
- * Internal component interface that exposes all internal methods for SDK use
2965
- * This is not exposed to users, only for internal SDK operations
2966
- */
2967
- export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
2968
- /**
2969
- * @public
2970
- * Dry run update to check if a CRDT message would be accepted without actually applying it
2971
- */
2972
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
2973
- /**
2974
- * @public
2975
- * Get the iterator to every entity has the component
2976
- */
2977
- iterator(): Iterable<[Entity, any]>;
2978
- /**
2979
- * @public
2980
- */
2981
- dirtyIterator(): Iterable<Entity>;
2982
- /**
2983
- * @public
2984
- */
2985
- __onChangeCallbacks(entity: Entity, value: T): void;
2986
- /**
2987
- * @public
2988
- */
2989
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
2990
- }
2991
-
2992
2902
  /**
2993
2903
  * @public
2994
2904
  */
@@ -9736,14 +9646,6 @@ export declare interface UiTransformProps {
9736
9646
  */
9737
9647
  export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
9738
9648
 
9739
- export declare type ValidateCallback<T> = (value: {
9740
- entity: Entity;
9741
- currentValue: T | undefined;
9742
- newValue: T | undefined;
9743
- senderAddress: string;
9744
- createdBy: string;
9745
- }) => boolean;
9746
-
9747
9649
  /**
9748
9650
  * @public
9749
9651
  */
package/dist/beta.d.ts CHANGED
@@ -220,42 +220,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
220
220
  getAudioState(entity: Entity): PBAudioEvent | undefined;
221
221
  }
222
222
 
223
- /**
224
- * @public
225
- */
226
- export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
227
-
228
- /**
229
- * Server authoritative message - identical to PutComponentMessageBody but with forced processing
230
- * Min. length = header (8 bytes) + 16 bytes = 24 bytes
231
- *
232
- * @param entity - Uint32 number of the entity
233
- * @param componentId - Uint32 number of id
234
- * @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
235
- * @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
236
- * @public
237
- */
238
- export declare type AuthoritativePutComponentMessageBody = {
239
- type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
240
- entityId: Entity;
241
- componentId: number;
242
- timestamp: number;
243
- data: Uint8Array;
244
- };
245
-
246
- /**
247
- * @public
248
- */
249
- export declare namespace AuthoritativePutComponentOperation {
250
- const MESSAGE_HEADER_LENGTH = 16;
251
- /**
252
- * Call this function for an optimal writing data passing the ByteBuffer
253
- * already allocated
254
- */
255
- export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
256
- export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
257
- }
258
-
259
223
  /** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
260
224
  /**
261
225
  * @public
@@ -428,22 +392,6 @@ export declare interface BaseComponent<T> {
428
392
  * If the value is undefined, the component was deleted.
429
393
  */
430
394
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
431
- /**
432
- * @public
433
- *
434
- */
435
- validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
436
- validateBeforeChange(cb: ValidateCallback<T>): void;
437
- /**
438
- * Get the CRDT state for an entity (serialized data and timestamp)
439
- * @param entity - Entity to get the CRDT state for
440
- * @returns Object with serialized data and timestamp, or null if entity doesn't have the component
441
- * @public
442
- */
443
- getCrdtState(entity: Entity): {
444
- data: Uint8Array;
445
- timestamp: number;
446
- } | null;
447
395
  }
448
396
 
449
397
  /** @public */
@@ -1682,12 +1630,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
1682
1630
  /**
1683
1631
  * @public
1684
1632
  */
1685
- export declare type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1633
+ export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1686
1634
 
1687
1635
  /**
1688
1636
  * @public
1689
1637
  */
1690
- export declare type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1638
+ export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1691
1639
 
1692
1640
  /**
1693
1641
  * Min length = 8 bytes
@@ -1742,8 +1690,7 @@ export declare enum CrdtMessageType {
1742
1690
  PUT_COMPONENT_NETWORK = 5,
1743
1691
  DELETE_COMPONENT_NETWORK = 6,
1744
1692
  DELETE_ENTITY_NETWORK = 7,
1745
- AUTHORITATIVE_PUT_COMPONENT = 8,
1746
- MAX_MESSAGE_TYPE = 9
1693
+ MAX_MESSAGE_TYPE = 8
1747
1694
  }
1748
1695
 
1749
1696
  /**
@@ -1751,8 +1698,6 @@ export declare enum CrdtMessageType {
1751
1698
  */
1752
1699
  export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
1753
1700
 
1754
- export declare const CreatedBy: ICreatedBy;
1755
-
1756
1701
  /**
1757
1702
  * @public
1758
1703
  */
@@ -2479,12 +2424,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
2479
2424
 
2480
2425
  export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
2481
2426
 
2482
- export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
2483
-
2484
- export declare interface ICreatedByType {
2485
- address: string;
2486
- }
2487
-
2488
2427
  /**
2489
2428
  * @public
2490
2429
  */
@@ -2951,35 +2890,6 @@ export declare const enum InteractionType {
2951
2890
  PROXIMITY = 1
2952
2891
  }
2953
2892
 
2954
- /**
2955
- * Internal component interface that exposes all internal methods for SDK use
2956
- * This is not exposed to users, only for internal SDK operations
2957
- */
2958
- export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
2959
- /**
2960
- * @public
2961
- * Dry run update to check if a CRDT message would be accepted without actually applying it
2962
- */
2963
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
2964
- /**
2965
- * @public
2966
- * Get the iterator to every entity has the component
2967
- */
2968
- iterator(): Iterable<[Entity, any]>;
2969
- /**
2970
- * @public
2971
- */
2972
- dirtyIterator(): Iterable<Entity>;
2973
- /**
2974
- * @public
2975
- */
2976
- __onChangeCallbacks(entity: Entity, value: T): void;
2977
- /**
2978
- * @public
2979
- */
2980
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
2981
- }
2982
-
2983
2893
  /**
2984
2894
  * @public
2985
2895
  */
@@ -9703,14 +9613,6 @@ export declare interface UiTransformProps {
9703
9613
  */
9704
9614
  export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
9705
9615
 
9706
- export declare type ValidateCallback<T> = (value: {
9707
- entity: Entity;
9708
- currentValue: T | undefined;
9709
- newValue: T | undefined;
9710
- senderAddress: string;
9711
- createdBy: string;
9712
- }) => boolean;
9713
-
9714
9616
  /**
9715
9617
  * @public
9716
9618
  */
@@ -220,42 +220,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
220
220
  getAudioState(entity: Entity): PBAudioEvent | undefined;
221
221
  }
222
222
 
223
- /**
224
- * @public
225
- */
226
- export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
227
-
228
- /**
229
- * Server authoritative message - identical to PutComponentMessageBody but with forced processing
230
- * Min. length = header (8 bytes) + 16 bytes = 24 bytes
231
- *
232
- * @param entity - Uint32 number of the entity
233
- * @param componentId - Uint32 number of id
234
- * @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
235
- * @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
236
- * @public
237
- */
238
- export declare type AuthoritativePutComponentMessageBody = {
239
- type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
240
- entityId: Entity;
241
- componentId: number;
242
- timestamp: number;
243
- data: Uint8Array;
244
- };
245
-
246
- /**
247
- * @public
248
- */
249
- export declare namespace AuthoritativePutComponentOperation {
250
- const MESSAGE_HEADER_LENGTH = 16;
251
- /**
252
- * Call this function for an optimal writing data passing the ByteBuffer
253
- * already allocated
254
- */
255
- export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
256
- export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
257
- }
258
-
259
223
  /** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
260
224
  /**
261
225
  * @public
@@ -428,22 +392,6 @@ export declare interface BaseComponent<T> {
428
392
  * If the value is undefined, the component was deleted.
429
393
  */
430
394
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
431
- /**
432
- * @public
433
- *
434
- */
435
- validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
436
- validateBeforeChange(cb: ValidateCallback<T>): void;
437
- /**
438
- * Get the CRDT state for an entity (serialized data and timestamp)
439
- * @param entity - Entity to get the CRDT state for
440
- * @returns Object with serialized data and timestamp, or null if entity doesn't have the component
441
- * @public
442
- */
443
- getCrdtState(entity: Entity): {
444
- data: Uint8Array;
445
- timestamp: number;
446
- } | null;
447
395
  }
448
396
 
449
397
  /** @public */
@@ -1682,12 +1630,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
1682
1630
  /**
1683
1631
  * @public
1684
1632
  */
1685
- export declare type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1633
+ export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1686
1634
 
1687
1635
  /**
1688
1636
  * @public
1689
1637
  */
1690
- export declare type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1638
+ export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1691
1639
 
1692
1640
  /**
1693
1641
  * Min length = 8 bytes
@@ -1742,8 +1690,7 @@ export declare enum CrdtMessageType {
1742
1690
  PUT_COMPONENT_NETWORK = 5,
1743
1691
  DELETE_COMPONENT_NETWORK = 6,
1744
1692
  DELETE_ENTITY_NETWORK = 7,
1745
- AUTHORITATIVE_PUT_COMPONENT = 8,
1746
- MAX_MESSAGE_TYPE = 9
1693
+ MAX_MESSAGE_TYPE = 8
1747
1694
  }
1748
1695
 
1749
1696
  /**
@@ -1751,8 +1698,6 @@ export declare enum CrdtMessageType {
1751
1698
  */
1752
1699
  export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
1753
1700
 
1754
- export declare const CreatedBy: ICreatedBy;
1755
-
1756
1701
  /**
1757
1702
  * @public
1758
1703
  */
@@ -2479,12 +2424,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
2479
2424
 
2480
2425
  export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
2481
2426
 
2482
- export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
2483
-
2484
- export declare interface ICreatedByType {
2485
- address: string;
2486
- }
2487
-
2488
2427
  /**
2489
2428
  * @public
2490
2429
  */
@@ -2951,35 +2890,6 @@ export declare const enum InteractionType {
2951
2890
  PROXIMITY = 1
2952
2891
  }
2953
2892
 
2954
- /**
2955
- * Internal component interface that exposes all internal methods for SDK use
2956
- * This is not exposed to users, only for internal SDK operations
2957
- */
2958
- export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
2959
- /**
2960
- * @public
2961
- * Dry run update to check if a CRDT message would be accepted without actually applying it
2962
- */
2963
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
2964
- /**
2965
- * @public
2966
- * Get the iterator to every entity has the component
2967
- */
2968
- iterator(): Iterable<[Entity, any]>;
2969
- /**
2970
- * @public
2971
- */
2972
- dirtyIterator(): Iterable<Entity>;
2973
- /**
2974
- * @public
2975
- */
2976
- __onChangeCallbacks(entity: Entity, value: T): void;
2977
- /**
2978
- * @public
2979
- */
2980
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
2981
- }
2982
-
2983
2893
  /**
2984
2894
  * @public
2985
2895
  */
@@ -9703,14 +9613,6 @@ export declare interface UiTransformProps {
9703
9613
  */
9704
9614
  export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
9705
9615
 
9706
- export declare type ValidateCallback<T> = (value: {
9707
- entity: Entity;
9708
- currentValue: T | undefined;
9709
- newValue: T | undefined;
9710
- senderAddress: string;
9711
- createdBy: string;
9712
- }) => boolean;
9713
-
9714
9616
  /**
9715
9617
  * @public
9716
9618
  */