@dcl/playground-assets 7.26.1-32860802198.commit-dae48fb → 7.26.1-32862325783.commit-08de733

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
@@ -245,42 +245,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
245
245
  getAudioState(entity: Entity): PBAudioEvent | undefined;
246
246
  }
247
247
 
248
- /**
249
- * @public
250
- */
251
- export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
252
-
253
- /**
254
- * Server authoritative message - identical to PutComponentMessageBody but with forced processing
255
- * Min. length = header (8 bytes) + 16 bytes = 24 bytes
256
- *
257
- * @param entity - Uint32 number of the entity
258
- * @param componentId - Uint32 number of id
259
- * @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
260
- * @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
261
- * @public
262
- */
263
- export declare type AuthoritativePutComponentMessageBody = {
264
- type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
265
- entityId: Entity;
266
- componentId: number;
267
- timestamp: number;
268
- data: Uint8Array;
269
- };
270
-
271
- /**
272
- * @public
273
- */
274
- export declare namespace AuthoritativePutComponentOperation {
275
- const MESSAGE_HEADER_LENGTH = 16;
276
- /**
277
- * Call this function for an optimal writing data passing the ByteBuffer
278
- * already allocated
279
- */
280
- export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
281
- export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
282
- }
283
-
284
248
  /** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
285
249
  /**
286
250
  * @public
@@ -453,22 +417,6 @@ export declare interface BaseComponent<T> {
453
417
  * If the value is undefined, the component was deleted.
454
418
  */
455
419
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
456
- /**
457
- * @public
458
- *
459
- */
460
- validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
461
- validateBeforeChange(cb: ValidateCallback<T>): void;
462
- /**
463
- * Get the CRDT state for an entity (serialized data and timestamp)
464
- * @param entity - Entity to get the CRDT state for
465
- * @returns Object with serialized data and timestamp, or null if entity doesn't have the component
466
- * @public
467
- */
468
- getCrdtState(entity: Entity): {
469
- data: Uint8Array;
470
- timestamp: number;
471
- } | null;
472
420
  }
473
421
 
474
422
  /** @public */
@@ -1710,12 +1658,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
1710
1658
  /**
1711
1659
  * @public
1712
1660
  */
1713
- export declare type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1661
+ export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1714
1662
 
1715
1663
  /**
1716
1664
  * @public
1717
1665
  */
1718
- export declare type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1666
+ export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1719
1667
 
1720
1668
  /**
1721
1669
  * Min length = 8 bytes
@@ -1770,8 +1718,7 @@ export declare enum CrdtMessageType {
1770
1718
  PUT_COMPONENT_NETWORK = 5,
1771
1719
  DELETE_COMPONENT_NETWORK = 6,
1772
1720
  DELETE_ENTITY_NETWORK = 7,
1773
- AUTHORITATIVE_PUT_COMPONENT = 8,
1774
- MAX_MESSAGE_TYPE = 9
1721
+ MAX_MESSAGE_TYPE = 8
1775
1722
  }
1776
1723
 
1777
1724
  /**
@@ -1779,8 +1726,6 @@ export declare enum CrdtMessageType {
1779
1726
  */
1780
1727
  export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
1781
1728
 
1782
- export declare const CreatedBy: ICreatedBy;
1783
-
1784
1729
  /**
1785
1730
  * @public
1786
1731
  */
@@ -2550,12 +2495,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
2550
2495
 
2551
2496
  export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
2552
2497
 
2553
- export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
2554
-
2555
- export declare interface ICreatedByType {
2556
- address: string;
2557
- }
2558
-
2559
2498
  /**
2560
2499
  * @public
2561
2500
  */
@@ -3038,35 +2977,6 @@ export declare const enum InteractionType {
3038
2977
  PROXIMITY = 1
3039
2978
  }
3040
2979
 
3041
- /**
3042
- * Internal component interface that exposes all internal methods for SDK use
3043
- * This is not exposed to users, only for internal SDK operations
3044
- */
3045
- export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
3046
- /**
3047
- * @public
3048
- * Dry run update to check if a CRDT message would be accepted without actually applying it
3049
- */
3050
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
3051
- /**
3052
- * @public
3053
- * Get the iterator to every entity has the component
3054
- */
3055
- iterator(): Iterable<[Entity, any]>;
3056
- /**
3057
- * @public
3058
- */
3059
- dirtyIterator(): Iterable<Entity>;
3060
- /**
3061
- * @public
3062
- */
3063
- __onChangeCallbacks(entity: Entity, value: T): void;
3064
- /**
3065
- * @public
3066
- */
3067
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
3068
- }
3069
-
3070
2980
  /**
3071
2981
  * @public
3072
2982
  */
@@ -10046,14 +9956,6 @@ export declare interface UiTransformProps {
10046
9956
  */
10047
9957
  export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
10048
9958
 
10049
- export declare type ValidateCallback<T> = (value: {
10050
- entity: Entity;
10051
- currentValue: T | undefined;
10052
- newValue: T | undefined;
10053
- senderAddress: string;
10054
- createdBy: string;
10055
- }) => boolean;
10056
-
10057
9959
  /**
10058
9960
  * @public
10059
9961
  */
package/dist/beta.d.ts CHANGED
@@ -245,42 +245,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
245
245
  getAudioState(entity: Entity): PBAudioEvent | undefined;
246
246
  }
247
247
 
248
- /**
249
- * @public
250
- */
251
- export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
252
-
253
- /**
254
- * Server authoritative message - identical to PutComponentMessageBody but with forced processing
255
- * Min. length = header (8 bytes) + 16 bytes = 24 bytes
256
- *
257
- * @param entity - Uint32 number of the entity
258
- * @param componentId - Uint32 number of id
259
- * @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
260
- * @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
261
- * @public
262
- */
263
- export declare type AuthoritativePutComponentMessageBody = {
264
- type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
265
- entityId: Entity;
266
- componentId: number;
267
- timestamp: number;
268
- data: Uint8Array;
269
- };
270
-
271
- /**
272
- * @public
273
- */
274
- export declare namespace AuthoritativePutComponentOperation {
275
- const MESSAGE_HEADER_LENGTH = 16;
276
- /**
277
- * Call this function for an optimal writing data passing the ByteBuffer
278
- * already allocated
279
- */
280
- export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
281
- export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
282
- }
283
-
284
248
  /** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
285
249
  /**
286
250
  * @public
@@ -453,22 +417,6 @@ export declare interface BaseComponent<T> {
453
417
  * If the value is undefined, the component was deleted.
454
418
  */
455
419
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
456
- /**
457
- * @public
458
- *
459
- */
460
- validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
461
- validateBeforeChange(cb: ValidateCallback<T>): void;
462
- /**
463
- * Get the CRDT state for an entity (serialized data and timestamp)
464
- * @param entity - Entity to get the CRDT state for
465
- * @returns Object with serialized data and timestamp, or null if entity doesn't have the component
466
- * @public
467
- */
468
- getCrdtState(entity: Entity): {
469
- data: Uint8Array;
470
- timestamp: number;
471
- } | null;
472
420
  }
473
421
 
474
422
  /** @public */
@@ -1710,12 +1658,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
1710
1658
  /**
1711
1659
  * @public
1712
1660
  */
1713
- export declare type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1661
+ export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1714
1662
 
1715
1663
  /**
1716
1664
  * @public
1717
1665
  */
1718
- export declare type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1666
+ export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1719
1667
 
1720
1668
  /**
1721
1669
  * Min length = 8 bytes
@@ -1770,8 +1718,7 @@ export declare enum CrdtMessageType {
1770
1718
  PUT_COMPONENT_NETWORK = 5,
1771
1719
  DELETE_COMPONENT_NETWORK = 6,
1772
1720
  DELETE_ENTITY_NETWORK = 7,
1773
- AUTHORITATIVE_PUT_COMPONENT = 8,
1774
- MAX_MESSAGE_TYPE = 9
1721
+ MAX_MESSAGE_TYPE = 8
1775
1722
  }
1776
1723
 
1777
1724
  /**
@@ -1779,8 +1726,6 @@ export declare enum CrdtMessageType {
1779
1726
  */
1780
1727
  export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
1781
1728
 
1782
- export declare const CreatedBy: ICreatedBy;
1783
-
1784
1729
  /**
1785
1730
  * @public
1786
1731
  */
@@ -2550,12 +2495,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
2550
2495
 
2551
2496
  export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
2552
2497
 
2553
- export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
2554
-
2555
- export declare interface ICreatedByType {
2556
- address: string;
2557
- }
2558
-
2559
2498
  /**
2560
2499
  * @public
2561
2500
  */
@@ -3029,35 +2968,6 @@ export declare const enum InteractionType {
3029
2968
  PROXIMITY = 1
3030
2969
  }
3031
2970
 
3032
- /**
3033
- * Internal component interface that exposes all internal methods for SDK use
3034
- * This is not exposed to users, only for internal SDK operations
3035
- */
3036
- export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
3037
- /**
3038
- * @public
3039
- * Dry run update to check if a CRDT message would be accepted without actually applying it
3040
- */
3041
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
3042
- /**
3043
- * @public
3044
- * Get the iterator to every entity has the component
3045
- */
3046
- iterator(): Iterable<[Entity, any]>;
3047
- /**
3048
- * @public
3049
- */
3050
- dirtyIterator(): Iterable<Entity>;
3051
- /**
3052
- * @public
3053
- */
3054
- __onChangeCallbacks(entity: Entity, value: T): void;
3055
- /**
3056
- * @public
3057
- */
3058
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
3059
- }
3060
-
3061
2971
  /**
3062
2972
  * @public
3063
2973
  */
@@ -10013,14 +9923,6 @@ export declare interface UiTransformProps {
10013
9923
  */
10014
9924
  export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
10015
9925
 
10016
- export declare type ValidateCallback<T> = (value: {
10017
- entity: Entity;
10018
- currentValue: T | undefined;
10019
- newValue: T | undefined;
10020
- senderAddress: string;
10021
- createdBy: string;
10022
- }) => boolean;
10023
-
10024
9926
  /**
10025
9927
  * @public
10026
9928
  */
@@ -245,42 +245,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
245
245
  getAudioState(entity: Entity): PBAudioEvent | undefined;
246
246
  }
247
247
 
248
- /**
249
- * @public
250
- */
251
- export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
252
-
253
- /**
254
- * Server authoritative message - identical to PutComponentMessageBody but with forced processing
255
- * Min. length = header (8 bytes) + 16 bytes = 24 bytes
256
- *
257
- * @param entity - Uint32 number of the entity
258
- * @param componentId - Uint32 number of id
259
- * @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
260
- * @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
261
- * @public
262
- */
263
- export declare type AuthoritativePutComponentMessageBody = {
264
- type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
265
- entityId: Entity;
266
- componentId: number;
267
- timestamp: number;
268
- data: Uint8Array;
269
- };
270
-
271
- /**
272
- * @public
273
- */
274
- export declare namespace AuthoritativePutComponentOperation {
275
- const MESSAGE_HEADER_LENGTH = 16;
276
- /**
277
- * Call this function for an optimal writing data passing the ByteBuffer
278
- * already allocated
279
- */
280
- export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
281
- export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
282
- }
283
-
284
248
  /** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
285
249
  /**
286
250
  * @public
@@ -453,22 +417,6 @@ export declare interface BaseComponent<T> {
453
417
  * If the value is undefined, the component was deleted.
454
418
  */
455
419
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
456
- /**
457
- * @public
458
- *
459
- */
460
- validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
461
- validateBeforeChange(cb: ValidateCallback<T>): void;
462
- /**
463
- * Get the CRDT state for an entity (serialized data and timestamp)
464
- * @param entity - Entity to get the CRDT state for
465
- * @returns Object with serialized data and timestamp, or null if entity doesn't have the component
466
- * @public
467
- */
468
- getCrdtState(entity: Entity): {
469
- data: Uint8Array;
470
- timestamp: number;
471
- } | null;
472
420
  }
473
421
 
474
422
  /** @public */
@@ -1710,12 +1658,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
1710
1658
  /**
1711
1659
  * @public
1712
1660
  */
1713
- export declare type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1661
+ export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1714
1662
 
1715
1663
  /**
1716
1664
  * @public
1717
1665
  */
1718
- export declare type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1666
+ export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1719
1667
 
1720
1668
  /**
1721
1669
  * Min length = 8 bytes
@@ -1770,8 +1718,7 @@ export declare enum CrdtMessageType {
1770
1718
  PUT_COMPONENT_NETWORK = 5,
1771
1719
  DELETE_COMPONENT_NETWORK = 6,
1772
1720
  DELETE_ENTITY_NETWORK = 7,
1773
- AUTHORITATIVE_PUT_COMPONENT = 8,
1774
- MAX_MESSAGE_TYPE = 9
1721
+ MAX_MESSAGE_TYPE = 8
1775
1722
  }
1776
1723
 
1777
1724
  /**
@@ -1779,8 +1726,6 @@ export declare enum CrdtMessageType {
1779
1726
  */
1780
1727
  export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
1781
1728
 
1782
- export declare const CreatedBy: ICreatedBy;
1783
-
1784
1729
  /**
1785
1730
  * @public
1786
1731
  */
@@ -2550,12 +2495,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
2550
2495
 
2551
2496
  export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
2552
2497
 
2553
- export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
2554
-
2555
- export declare interface ICreatedByType {
2556
- address: string;
2557
- }
2558
-
2559
2498
  /**
2560
2499
  * @public
2561
2500
  */
@@ -3029,35 +2968,6 @@ export declare const enum InteractionType {
3029
2968
  PROXIMITY = 1
3030
2969
  }
3031
2970
 
3032
- /**
3033
- * Internal component interface that exposes all internal methods for SDK use
3034
- * This is not exposed to users, only for internal SDK operations
3035
- */
3036
- export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
3037
- /**
3038
- * @public
3039
- * Dry run update to check if a CRDT message would be accepted without actually applying it
3040
- */
3041
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
3042
- /**
3043
- * @public
3044
- * Get the iterator to every entity has the component
3045
- */
3046
- iterator(): Iterable<[Entity, any]>;
3047
- /**
3048
- * @public
3049
- */
3050
- dirtyIterator(): Iterable<Entity>;
3051
- /**
3052
- * @public
3053
- */
3054
- __onChangeCallbacks(entity: Entity, value: T): void;
3055
- /**
3056
- * @public
3057
- */
3058
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
3059
- }
3060
-
3061
2971
  /**
3062
2972
  * @public
3063
2973
  */
@@ -10013,14 +9923,6 @@ export declare interface UiTransformProps {
10013
9923
  */
10014
9924
  export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
10015
9925
 
10016
- export declare type ValidateCallback<T> = (value: {
10017
- entity: Entity;
10018
- currentValue: T | undefined;
10019
- newValue: T | undefined;
10020
- senderAddress: string;
10021
- createdBy: string;
10022
- }) => boolean;
10023
-
10024
9926
  /**
10025
9927
  * @public
10026
9928
  */