@dcl/playground-assets 7.0.6-4177592674.commit-39cdc99 → 7.0.6-4183962432.commit-2fbe270

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.
@@ -13,7 +13,7 @@ export type AlignType = 'auto' | 'flex-start' | 'center' | 'flex-end' | 'stretch
13
13
  export const Animator: AnimatorComponentDefinitionExtended;
14
14
 
15
15
  // @public (undocumented)
16
- export interface AnimatorComponentDefinitionExtended extends ComponentDefinition<PBAnimator> {
16
+ export interface AnimatorComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAnimator> {
17
17
  getClip(entity: Entity, name: string): PBAnimationState;
18
18
  getClipOrNull(entity: Entity, name: string): PBAnimationState | null;
19
19
  playSingleAnimation(entity: Entity, name: string, resetCursor?: boolean): boolean;
@@ -21,10 +21,24 @@ export interface AnimatorComponentDefinitionExtended extends ComponentDefinition
21
21
  }
22
22
 
23
23
  // @public (undocumented)
24
- export const AudioSource: ComponentDefinition<PBAudioSource>;
24
+ export type AppendValueMessage = CrdtMessageHeader & AppendValueMessageBody;
25
+
26
+ // Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
27
+ //
28
+ // @public
29
+ export type AppendValueMessageBody = {
30
+ type: CrdtMessageType.APPEND_VALUE;
31
+ entityId: Entity;
32
+ componentId: number;
33
+ timestamp: number;
34
+ data: Uint8Array;
35
+ };
25
36
 
26
37
  // @public (undocumented)
27
- export const AudioStream: ComponentDefinition<PBAudioStream>;
38
+ export const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
39
+
40
+ // @public (undocumented)
41
+ export const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
28
42
 
29
43
  // @public (undocumented)
30
44
  export const enum AvatarAnchorPointType {
@@ -39,10 +53,10 @@ export const enum AvatarAnchorPointType {
39
53
  }
40
54
 
41
55
  // @public (undocumented)
42
- export const AvatarAttach: ComponentDefinition<PBAvatarAttach>;
56
+ export const AvatarAttach: LastWriteWinElementSetComponentDefinition<PBAvatarAttach>;
43
57
 
44
58
  // @public (undocumented)
45
- export const AvatarModifierArea: ComponentDefinition<PBAvatarModifierArea>;
59
+ export const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
46
60
 
47
61
  // @public (undocumented)
48
62
  export const enum AvatarModifierType {
@@ -53,7 +67,7 @@ export const enum AvatarModifierType {
53
67
  }
54
68
 
55
69
  // @public (undocumented)
56
- export const AvatarShape: ComponentDefinition<PBAvatarShape>;
70
+ export const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
57
71
 
58
72
  // @public (undocumented)
59
73
  export interface AvatarTexture {
@@ -71,7 +85,24 @@ export const enum BackgroundTextureMode {
71
85
  }
72
86
 
73
87
  // @public (undocumented)
74
- export const Billboard: ComponentDefinition<PBBillboard>;
88
+ export interface BaseComponent<T> {
89
+ // (undocumented)
90
+ readonly componentId: number;
91
+ // (undocumented)
92
+ readonly componentName: string;
93
+ // (undocumented)
94
+ readonly componentType: ComponentType;
95
+ entityDeleted(entity: Entity, markAsDirty: boolean): void;
96
+ get(entity: Entity): any;
97
+ getCrdtUpdates(): Iterable<CrdtMessageBody>;
98
+ has(entity: Entity): boolean;
99
+ // (undocumented)
100
+ readonly schema: ISchema<T>;
101
+ updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
102
+ }
103
+
104
+ // @public (undocumented)
105
+ export const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
75
106
 
76
107
  // @public (undocumented)
77
108
  export const enum BillboardMode {
@@ -215,10 +246,10 @@ export interface ByteBuffer {
215
246
  export type Callback = () => void;
216
247
 
217
248
  // @public (undocumented)
218
- export const CameraMode: ComponentDefinition<PBCameraMode>;
249
+ export const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
219
250
 
220
251
  // @public (undocumented)
221
- export const CameraModeArea: ComponentDefinition<PBCameraModeArea>;
252
+ export const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraModeArea>;
222
253
 
223
254
  // @public (undocumented)
224
255
  export const enum CameraType {
@@ -393,43 +424,27 @@ export type Color4Type = {
393
424
  };
394
425
 
395
426
  // @public (undocumented)
396
- export interface ComponentDefinition<T> {
427
+ export type ComponentDefinition<T> = LastWriteWinElementSetComponentDefinition<T> | GrowOnlyValueSetComponentDefinition<T>;
428
+
429
+ // @public
430
+ export const enum ComponentType {
397
431
  // (undocumented)
398
- readonly componentId: number;
432
+ GrowOnlyValueSet = 1,
399
433
  // (undocumented)
400
- readonly componentName: string;
401
- create(entity: Entity, val?: T): T;
402
- createOrReplace(entity: Entity, val?: T): T;
403
- default(): DeepReadonly<T>;
404
- deleteFrom(entity: Entity): T | null;
405
- entityDeleted(entity: Entity, markAsDirty: boolean): void;
406
- get(entity: Entity): DeepReadonly<T>;
407
- getCrdtUpdates(): Iterable<CrdtMessageBody>;
408
- getMutable(entity: Entity): T;
409
- getMutableOrNull(entity: Entity): T | null;
410
- getOrNull(entity: Entity): DeepReadonly<T> | null;
411
- has(entity: Entity): boolean;
412
- updateFromCrdt(body: CrdtMessageBody): [null | PutComponentMessageBody | DeleteComponentMessageBody, T | null];
434
+ LastWriteWinElementSet = 0
413
435
  }
414
436
 
415
- // Warning: (ae-missing-release-tag) "ComponentGetter" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
416
- //
417
- // @public (undocumented)
418
- export type ComponentGetter<T extends ComponentDefinition<any>> = (engine: Pick<IEngine, 'defineComponentFromSchema'>) => T;
419
-
420
- // @public (undocumented)
421
- export type ComponentSchema<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]> = {
422
- [K in keyof T]: T[K] extends ComponentDefinition<any> ? ReturnType<T[K]['getMutable']> : never;
423
- };
437
+ // @public
438
+ export type ConflictResolutionMessage = PutComponentMessageBody | DeleteComponentMessageBody;
424
439
 
425
440
  // @public (undocumented)
426
441
  export const CRDT_MESSAGE_HEADER_LENGTH = 8;
427
442
 
428
443
  // @public (undocumented)
429
- export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | DeleteEntityMessage;
444
+ export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | DeleteEntityMessage | AppendValueMessage;
430
445
 
431
446
  // @public (undocumented)
432
- export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody;
447
+ export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody;
433
448
 
434
449
  // @public
435
450
  export type CrdtMessageHeader = {
@@ -439,12 +454,14 @@ export type CrdtMessageHeader = {
439
454
 
440
455
  // @public (undocumented)
441
456
  export enum CrdtMessageType {
457
+ // (undocumented)
458
+ APPEND_VALUE = 4,
442
459
  // (undocumented)
443
460
  DELETE_COMPONENT = 2,
444
461
  // (undocumented)
445
462
  DELETE_ENTITY = 3,
446
463
  // (undocumented)
447
- MAX_MESSAGE_TYPE = 4,
464
+ MAX_MESSAGE_TYPE = 5,
448
465
  // (undocumented)
449
466
  PUT_COMPONENT = 1,
450
467
  // (undocumented)
@@ -459,16 +476,6 @@ export function createEthereumProvider(): {
459
476
  sendAsync(message: RPCSendableMessage, callback: (error: Error | null, result?: any) => void): void;
460
477
  };
461
478
 
462
- // Warning: (ae-missing-release-tag) "createGetCrdtMessages" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
463
- //
464
- // @public (undocumented)
465
- export function createGetCrdtMessages(componentId: number, timestamps: Map<Entity, number>, dirtyIterator: Set<Entity>, schema: Pick<ISchema<any>, 'serialize'>, data: Map<Entity, unknown>): () => Generator<PutComponentMessageBody | DeleteComponentMessageBody, void, unknown>;
466
-
467
- // Warning: (ae-missing-release-tag) "createUpdateFromCrdt" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
468
- //
469
- // @public (undocumented)
470
- export function createUpdateFromCrdt(componentId: number, timestamps: Map<Entity, number>, schema: Pick<ISchema<any>, 'serialize' | 'deserialize'>, data: Map<Entity, unknown>): (msg: CrdtMessageBody) => [null | PutComponentMessageBody | DeleteComponentMessageBody, any];
471
-
472
479
  // Warning: (tsdoc-code-fence-closing-syntax) Unexpected characters after closing delimiter for code fence
473
480
  // Warning: (tsdoc-code-span-missing-delimiter) The code span is missing its closing backtick
474
481
  // Warning: (tsdoc-undefined-tag) The TSDoc tag "@params" is not defined in this configuration
@@ -477,10 +484,10 @@ export function createUpdateFromCrdt(componentId: number, timestamps: Map<Entity
477
484
  export function cyclicParentingChecker(engine: IEngine): () => void;
478
485
 
479
486
  // @public (undocumented)
480
- export type DeepReadonly<T> = T extends ReadonlyPrimitive ? T : T extends Map<infer K, infer V> ? DeepReadonlyMap<K, V> : T extends Set<infer M> ? DeepReadonlySet<M> : DeepReadonlyObject<T>;
487
+ export type DeepReadonly<T> = T extends ReadonlyPrimitive ? T : T extends Array<infer K> ? ReadonlyArray<DeepReadonly<K>> : T extends Map<infer K, infer V> ? DeepReadonlyMap<K, V> : T extends Set<infer M> ? DeepReadonlySet<M> : DeepReadonlyObject<T>;
481
488
 
482
489
  // @public (undocumented)
483
- export type DeepReadonlyMap<K, V> = ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>>;
490
+ export type DeepReadonlyMap<K, V> = ReadonlyMap<K, DeepReadonly<V>>;
484
491
 
485
492
  // @public (undocumented)
486
493
  export type DeepReadonlyObject<T> = {
@@ -615,7 +622,7 @@ export enum EntityState {
615
622
  export const Epsilon = 0.000001;
616
623
 
617
624
  // @public (undocumented)
618
- export type EventSystemCallback = (event: PBPointerEventsResult_PointerCommand) => void;
625
+ export type EventSystemCallback = (event: PBPointerEventsResult) => void;
619
626
 
620
627
  // @public (undocumented)
621
628
  export type EventSystemOptions = {
@@ -682,7 +689,20 @@ export type GlobalInputEventResult = InputEventResult & {
682
689
  };
683
690
 
684
691
  // @public (undocumented)
685
- export const GltfContainer: ComponentDefinition<PBGltfContainer>;
692
+ export const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
693
+
694
+ // @public (undocumented)
695
+ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T> {
696
+ addValue(entity: Entity, val: DeepReadonly<T>): DeepReadonlySet<T>;
697
+ // (undocumented)
698
+ readonly componentType: ComponentType.GrowOnlyValueSet;
699
+ get(entity: Entity): DeepReadonlySet<T>;
700
+ }
701
+
702
+ // Warning: (ae-missing-release-tag) "GSetComponentGetter" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
703
+ //
704
+ // @public (undocumented)
705
+ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
686
706
 
687
707
  // @public (undocumented)
688
708
  export interface IEngine {
@@ -693,7 +713,8 @@ export interface IEngine {
693
713
  readonly CameraEntity: Entity;
694
714
  componentsIter(): Iterable<ComponentDefinition<unknown>>;
695
715
  defineComponent<T extends Spec>(componentName: string, spec: T, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
696
- defineComponentFromSchema<T>(componentName: string, spec: ISchema<T>): ComponentDefinition<T>;
716
+ defineComponentFromSchema<T>(componentName: string, spec: ISchema<T>): LastWriteWinElementSetComponentDefinition<T>;
717
+ defineValueSetComponentFromSchema<T>(componentName: string, spec: ISchema<T>, options: ValueSetOptions<T>): GrowOnlyValueSetComponentDefinition<T>;
697
718
  getComponent<T>(componentId: number): ComponentDefinition<T>;
698
719
  getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
699
720
  getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
@@ -894,9 +915,9 @@ export interface IEvents {
894
915
 
895
916
  // @public (undocumented)
896
917
  export type IInputSystem = {
897
- isTriggered: (inputAction: InputAction, pointerEventType: PointerEventType, entity?: Entity) => boolean;
918
+ isTriggered: (inputAction: InputAction, pointerEventType: PointerEventType, entity: Entity) => boolean;
898
919
  isPressed: (inputAction: InputAction) => boolean;
899
- getInputCommand: (inputAction: InputAction, pointerEventType: PointerEventType, entity?: Entity) => PBPointerEventsResult_PointerCommand | null;
920
+ getInputCommand: (inputAction: InputAction, pointerEventType: PointerEventType, entity: Entity) => PBPointerEventsResult | null;
900
921
  };
901
922
 
902
923
  // @public
@@ -904,11 +925,6 @@ export type IncludeUndefined<T> = {
904
925
  [P in keyof T]: undefined extends T[P] ? P : never;
905
926
  }[keyof T];
906
927
 
907
- // Warning: (ae-missing-release-tag) "incrementTimestamp" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
908
- //
909
- // @public (undocumented)
910
- export function incrementTimestamp(entity: Entity, timestamps: Map<Entity, number>): number;
911
-
912
928
  // Warning: (tsdoc-html-tag-missing-string) The HTML element has an invalid attribute: Expecting an HTML string starting with a single-quote or double-quote character
913
929
  // Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
914
930
  // Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
@@ -988,11 +1004,30 @@ export interface ISchema<T = any> {
988
1004
  // (undocumented)
989
1005
  deserialize(reader: ByteBuffer): T;
990
1006
  // (undocumented)
991
- extend?: (base?: T) => T;
1007
+ extend?: (base: Partial<DeepReadonly<T>> | undefined) => T;
992
1008
  // (undocumented)
993
- serialize(value: T, builder: ByteBuffer): void;
1009
+ jsonSchema: JsonSchemaExtended;
1010
+ // (undocumented)
1011
+ serialize(value: DeepReadonly<T>, builder: ByteBuffer): void;
994
1012
  }
995
1013
 
1014
+ // @public (undocumented)
1015
+ export type JsonArray = Array<JsonPrimitive | JsonMap | JsonArray>;
1016
+
1017
+ // @public (undocumented)
1018
+ export type JsonMap = {
1019
+ [key: string]: JsonPrimitive | JsonMap | JsonArray;
1020
+ };
1021
+
1022
+ // @public (undocumented)
1023
+ export type JsonPrimitive = string | number | boolean | null;
1024
+
1025
+ // @public
1026
+ export type JsonSchemaExtended = {
1027
+ type: 'object' | 'number' | 'integer' | 'string' | 'array' | 'boolean';
1028
+ serializationType: 'boolean' | 'enum-int' | 'enum-string' | 'int8' | 'int16' | 'int32' | 'int64' | 'float32' | 'float64' | 'vector3' | 'color3' | 'quaternion' | 'color4' | 'map' | 'optional' | 'entity' | 'array' | 'utf8-string' | 'protocol-buffer' | 'transform' | 'unknown';
1029
+ } & JsonMap;
1030
+
996
1031
  // Warning: (tsdoc-undefined-tag) The TSDoc tag "@hidden" is not defined in this configuration
997
1032
  // Warning: (ae-missing-release-tag) "JSX" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
998
1033
  //
@@ -1026,14 +1061,32 @@ export type Key = number | string;
1026
1061
  // @public
1027
1062
  export function Label(props: EntityPropTypes & UiLabelProps): ReactEcs.JSX.Element;
1028
1063
 
1064
+ // @public (undocumented)
1065
+ export interface LastWriteWinElementSetComponentDefinition<T> extends BaseComponent<T> {
1066
+ // (undocumented)
1067
+ readonly componentType: ComponentType.LastWriteWinElementSet;
1068
+ create(entity: Entity, val?: T): T;
1069
+ createOrReplace(entity: Entity, val?: T): T;
1070
+ deleteFrom(entity: Entity): T | null;
1071
+ get(entity: Entity): DeepReadonly<T>;
1072
+ getMutable(entity: Entity): T;
1073
+ getMutableOrNull(entity: Entity): T | null;
1074
+ getOrNull(entity: Entity): DeepReadonly<T> | null;
1075
+ }
1076
+
1029
1077
  // @public
1030
1078
  export type Listeners = {
1031
1079
  onMouseDown?: Callback;
1032
1080
  onMouseUp?: Callback;
1033
1081
  };
1034
1082
 
1083
+ // Warning: (ae-missing-release-tag) "LwwComponentGetter" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1084
+ //
1085
+ // @public (undocumented)
1086
+ export type LwwComponentGetter<T extends LastWriteWinElementSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineComponentFromSchema'>) => T;
1087
+
1035
1088
  // @public
1036
- export interface MapComponentDefinition<T> extends ComponentDefinition<T> {
1089
+ export interface MapComponentDefinition<T> extends LastWriteWinElementSetComponentDefinition<T> {
1037
1090
  create(entity: Entity, val?: Partial<T>): T;
1038
1091
  createOrReplace(entity: Entity, val?: Partial<T>): T;
1039
1092
  }
@@ -1049,7 +1102,7 @@ export type MapResult<T extends Spec> = ToOptional<{
1049
1102
  export const Material: MaterialComponentDefinitionExtended;
1050
1103
 
1051
1104
  // @public (undocumented)
1052
- export interface MaterialComponentDefinitionExtended extends ComponentDefinition<PBMaterial> {
1105
+ export interface MaterialComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBMaterial> {
1053
1106
  setBasicMaterial: (entity: Entity, material: PBMaterial_UnlitMaterial) => void;
1054
1107
  setPbrMaterial: (entity: Entity, material: PBMaterial_PbrMaterial) => void;
1055
1108
  Texture: TextureHelper;
@@ -1212,7 +1265,7 @@ export namespace Matrix {
1212
1265
  export const MeshCollider: MeshColliderComponentDefinitionExtended;
1213
1266
 
1214
1267
  // @public (undocumented)
1215
- export interface MeshColliderComponentDefinitionExtended extends ComponentDefinition<PBMeshCollider> {
1268
+ export interface MeshColliderComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBMeshCollider> {
1216
1269
  setBox(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
1217
1270
  setCylinder(entity: Entity, radiusBottom?: number, radiusTop?: number, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
1218
1271
  setPlane(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
@@ -1225,7 +1278,7 @@ export interface MeshColliderComponentDefinitionExtended extends ComponentDefini
1225
1278
  export const MeshRenderer: MeshRendererComponentDefinitionExtended;
1226
1279
 
1227
1280
  // @public (undocumented)
1228
- export interface MeshRendererComponentDefinitionExtended extends ComponentDefinition<PBMeshRenderer> {
1281
+ export interface MeshRendererComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBMeshRenderer> {
1229
1282
  setBox(entity: Entity, uvs?: number[]): void;
1230
1283
  setCylinder(entity: Entity, radiusBottom?: number, radiusTop?: number): void;
1231
1284
  setPlane(entity: Entity, uvs?: number[]): void;
@@ -1294,7 +1347,7 @@ export const enum NftFrameType {
1294
1347
  }
1295
1348
 
1296
1349
  // @public (undocumented)
1297
- export const NftShape: ComponentDefinition<PBNftShape>;
1350
+ export const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
1298
1351
 
1299
1352
  // Warning: (ae-missing-release-tag) "Observable" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1300
1353
  //
@@ -1362,7 +1415,7 @@ export class ObserverEventState {
1362
1415
  }
1363
1416
 
1364
1417
  // @public (undocumented)
1365
- export type OnChangeFunction = (entity: Entity, operation: CrdtMessageType, component?: ComponentDefinition<any>) => void;
1418
+ export type OnChangeFunction = (entity: Entity, operation: CrdtMessageType, component?: ComponentDefinition<any>, componentValue?: any) => void;
1366
1419
 
1367
1420
  // Warning: (ae-missing-release-tag) "onCommsMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1368
1421
  //
@@ -1757,11 +1810,6 @@ export interface PBPointerEvents_Info {
1757
1810
 
1758
1811
  // @public (undocumented)
1759
1812
  export interface PBPointerEventsResult {
1760
- commands: PBPointerEventsResult_PointerCommand[];
1761
- }
1762
-
1763
- // @public (undocumented)
1764
- export interface PBPointerEventsResult_PointerCommand {
1765
1813
  analog?: number | undefined;
1766
1814
  button: InputAction;
1767
1815
  // (undocumented)
@@ -2054,10 +2102,10 @@ export namespace Plane {
2054
2102
  }
2055
2103
 
2056
2104
  // @public (undocumented)
2057
- export const PointerEvents: ComponentDefinition<PBPointerEvents>;
2105
+ export const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
2058
2106
 
2059
2107
  // @public (undocumented)
2060
- export const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
2108
+ export const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
2061
2109
 
2062
2110
  // @public (undocumented)
2063
2111
  export interface PointerEventsSystem {
@@ -2083,7 +2131,7 @@ export const enum PointerEventType {
2083
2131
  }
2084
2132
 
2085
2133
  // @public (undocumented)
2086
- export const PointerLock: ComponentDefinition<PBPointerLock>;
2134
+ export const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
2087
2135
 
2088
2136
  // @public
2089
2137
  export interface Position {
@@ -2210,7 +2258,7 @@ export type QuaternionType = {
2210
2258
  export const RAD2DEG: number;
2211
2259
 
2212
2260
  // @public (undocumented)
2213
- export const Raycast: ComponentDefinition<PBRaycast>;
2261
+ export const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
2214
2262
 
2215
2263
  // @public (undocumented)
2216
2264
  export interface RaycastHit {
@@ -2248,7 +2296,7 @@ export type RaycastResponsePayload<T> = {
2248
2296
  };
2249
2297
 
2250
2298
  // @public (undocumented)
2251
- export const RaycastResult: ComponentDefinition<PBRaycastResult>;
2299
+ export const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
2252
2300
 
2253
2301
  // @public (undocumented)
2254
2302
  export interface ReactBasedUiSystem {
@@ -2422,7 +2470,7 @@ export const enum TextAlignMode {
2422
2470
  export type TextAlignType = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2423
2471
 
2424
2472
  // @public (undocumented)
2425
- export const TextShape: ComponentDefinition<PBTextShape>;
2473
+ export const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
2426
2474
 
2427
2475
  // @public (undocumented)
2428
2476
  export interface Texture {
@@ -2503,7 +2551,7 @@ export type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedType
2503
2551
  export const Transform: TransformComponentExtended;
2504
2552
 
2505
2553
  // @public (undocumented)
2506
- export type TransformComponent = ComponentDefinition<TransformType>;
2554
+ export type TransformComponent = LastWriteWinElementSetComponentDefinition<TransformType>;
2507
2555
 
2508
2556
  // @public (undocumented)
2509
2557
  export interface TransformComponentExtended extends TransformComponent {
@@ -2558,7 +2606,7 @@ export interface UiAvatarTexture {
2558
2606
  }
2559
2607
 
2560
2608
  // @public (undocumented)
2561
- export const UiBackground: ComponentDefinition<PBUiBackground>;
2609
+ export const UiBackground: LastWriteWinElementSetComponentDefinition<PBUiBackground>;
2562
2610
 
2563
2611
  // @public
2564
2612
  export interface UiBackgroundProps {
@@ -2580,7 +2628,7 @@ export interface UiButtonProps extends UiLabelProps, EntityPropTypes {
2580
2628
  export type UiComponent = () => ReactEcs.JSX.Element;
2581
2629
 
2582
2630
  // @public (undocumented)
2583
- export const UiDropdown: ComponentDefinition<PBUiDropdown>;
2631
+ export const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
2584
2632
 
2585
2633
  // @public
2586
2634
  export interface UiDropdownProps extends EntityPropTypes, Omit<Partial<PBUiDropdown>, 'textAlign' | 'font'> {
@@ -2593,7 +2641,7 @@ export interface UiDropdownProps extends EntityPropTypes, Omit<Partial<PBUiDropd
2593
2641
  }
2594
2642
 
2595
2643
  // @public (undocumented)
2596
- export const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
2644
+ export const UiDropdownResult: LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>;
2597
2645
 
2598
2646
  // Warning: (tsdoc-undefined-tag) The TSDoc tag "@category" is not defined in this configuration
2599
2647
  //
@@ -2606,7 +2654,7 @@ export function UiEntity(props: EntityPropTypes & {
2606
2654
  export type UiFontType = 'sans-serif' | 'serif' | 'monospace';
2607
2655
 
2608
2656
  // @public (undocumented)
2609
- export const UiInput: ComponentDefinition<PBUiInput>;
2657
+ export const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInput>;
2610
2658
 
2611
2659
  // @public (undocumented)
2612
2660
  export interface UiInputProps extends Omit<PBUiInput, 'font' | 'textAlign'> {
@@ -2618,7 +2666,7 @@ export interface UiInputProps extends Omit<PBUiInput, 'font' | 'textAlign'> {
2618
2666
  }
2619
2667
 
2620
2668
  // @public (undocumented)
2621
- export const UiInputResult: ComponentDefinition<PBUiInputResult>;
2669
+ export const UiInputResult: LastWriteWinElementSetComponentDefinition<PBUiInputResult>;
2622
2670
 
2623
2671
  // @public
2624
2672
  export interface UiLabelProps {
@@ -2633,7 +2681,7 @@ export interface UiLabelProps {
2633
2681
  export type uint32 = number;
2634
2682
 
2635
2683
  // @public (undocumented)
2636
- export const UiText: ComponentDefinition<PBUiText>;
2684
+ export const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
2637
2685
 
2638
2686
  // @public
2639
2687
  export type UiTexture = {
@@ -2643,7 +2691,7 @@ export type UiTexture = {
2643
2691
  };
2644
2692
 
2645
2693
  // @public (undocumented)
2646
- export const UiTransform: ComponentDefinition<PBUiTransform>;
2694
+ export const UiTransform: LastWriteWinElementSetComponentDefinition<PBUiTransform>;
2647
2695
 
2648
2696
  // @public
2649
2697
  export interface UiTransformProps {
@@ -2674,6 +2722,12 @@ export interface UiTransformProps {
2674
2722
  // @public (undocumented)
2675
2723
  export type Unpacked<T> = T extends (infer U)[] ? U : T;
2676
2724
 
2725
+ // @public (undocumented)
2726
+ export type ValueSetOptions<T> = {
2727
+ timestampFunction: (value: DeepReadonly<T>) => number;
2728
+ maxElements: number;
2729
+ };
2730
+
2677
2731
  // @public
2678
2732
  export type Vector3 = Vector3.ReadonlyVector3;
2679
2733
 
@@ -2778,7 +2832,7 @@ export type Vector3Type = {
2778
2832
  };
2779
2833
 
2780
2834
  // @public (undocumented)
2781
- export const VideoPlayer: ComponentDefinition<PBVideoPlayer>;
2835
+ export const VideoPlayer: LastWriteWinElementSetComponentDefinition<PBVideoPlayer>;
2782
2836
 
2783
2837
  // @public (undocumented)
2784
2838
  export interface VideoTexture {
@@ -2789,7 +2843,7 @@ export interface VideoTexture {
2789
2843
  }
2790
2844
 
2791
2845
  // @public (undocumented)
2792
- export const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
2846
+ export const VisibilityComponent: LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>;
2793
2847
 
2794
2848
  // @public (undocumented)
2795
2849
  export const enum YGAlign {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
- "version": "7.0.6-4177592674.commit-39cdc99",
3
+ "version": "7.0.6-4183962432.commit-2fbe270",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
@@ -17,12 +17,12 @@
17
17
  "author": "Decentraland",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcl/sdk": "7.0.6-4177592674.commit-39cdc99"
20
+ "@dcl/sdk": "7.0.6-4183962432.commit-2fbe270"
21
21
  },
22
22
  "minCliVersion": "3.12.3",
23
23
  "files": [
24
24
  "dist",
25
25
  "etc"
26
26
  ],
27
- "commit": "39cdc99ea857c63f707ec9188836116d838fa10e"
27
+ "commit": "2fbe270d3909a3f1cb2a1794544288e5e5d602aa"
28
28
  }