@dcl/playground-assets 7.0.6-3713220614.commit-d02ef9f → 7.0.6-3741197705.commit-bb37667

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.
@@ -12,7 +12,7 @@ import _m0 from 'protobufjs/minimal';
12
12
  export const Animator: AnimatorComponentDefinitionExtended;
13
13
 
14
14
  // @public (undocumented)
15
- export type AnimatorComponentDefinition = ComponentDefinition<ISchema<PBAnimator>, PBAnimator>;
15
+ export type AnimatorComponentDefinition = ComponentDefinition<PBAnimator>;
16
16
 
17
17
  // @public (undocumented)
18
18
  export interface AnimatorComponentDefinitionExtended extends AnimatorComponentDefinition {
@@ -22,32 +22,11 @@ export interface AnimatorComponentDefinitionExtended extends AnimatorComponentDe
22
22
  stopAllAnimations(entity: Entity, resetCursor?: boolean): boolean;
23
23
  }
24
24
 
25
- // Warning: (ae-missing-release-tag) "AnimatorSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
26
- //
27
- // @public (undocumented)
28
- export const AnimatorSchema: ISchema<PBAnimator> & {
29
- COMPONENT_ID: number;
30
- };
31
-
32
- // @public (undocumented)
33
- export const AudioSource: ComponentDefinition<typeof AudioSourceSchema>;
34
-
35
- // Warning: (ae-missing-release-tag) "AudioSourceSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
36
- //
37
- // @public (undocumented)
38
- export const AudioSourceSchema: ISchema<PBAudioSource> & {
39
- COMPONENT_ID: number;
40
- };
41
-
42
25
  // @public (undocumented)
43
- export const AudioStream: ComponentDefinition<typeof AudioStreamSchema>;
26
+ export const AudioSource: ComponentDefinition<PBAudioSource>;
44
27
 
45
- // Warning: (ae-missing-release-tag) "AudioStreamSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
46
- //
47
28
  // @public (undocumented)
48
- export const AudioStreamSchema: ISchema<PBAudioStream> & {
49
- COMPONENT_ID: number;
50
- };
29
+ export const AudioStream: ComponentDefinition<PBAudioStream>;
51
30
 
52
31
  // Warning: (ae-missing-release-tag) "AvatarAnchorPointType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
53
32
  //
@@ -64,24 +43,10 @@ export const enum AvatarAnchorPointType {
64
43
  }
65
44
 
66
45
  // @public (undocumented)
67
- export const AvatarAttach: ComponentDefinition<typeof AvatarAttachSchema>;
68
-
69
- // Warning: (ae-missing-release-tag) "AvatarAttachSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
70
- //
71
- // @public (undocumented)
72
- export const AvatarAttachSchema: ISchema<PBAvatarAttach> & {
73
- COMPONENT_ID: number;
74
- };
46
+ export const AvatarAttach: ComponentDefinition<PBAvatarAttach>;
75
47
 
76
48
  // @public (undocumented)
77
- export const AvatarModifierArea: ComponentDefinition<typeof AvatarModifierAreaSchema>;
78
-
79
- // Warning: (ae-missing-release-tag) "AvatarModifierAreaSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
80
- //
81
- // @public (undocumented)
82
- export const AvatarModifierAreaSchema: ISchema<PBAvatarModifierArea> & {
83
- COMPONENT_ID: number;
84
- };
49
+ export const AvatarModifierArea: ComponentDefinition<PBAvatarModifierArea>;
85
50
 
86
51
  // Warning: (ae-missing-release-tag) "AvatarModifierType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
87
52
  //
@@ -94,14 +59,7 @@ export const enum AvatarModifierType {
94
59
  }
95
60
 
96
61
  // @public (undocumented)
97
- export const AvatarShape: ComponentDefinition<typeof AvatarShapeSchema>;
98
-
99
- // Warning: (ae-missing-release-tag) "AvatarShapeSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
100
- //
101
- // @public (undocumented)
102
- export const AvatarShapeSchema: ISchema<PBAvatarShape> & {
103
- COMPONENT_ID: number;
104
- };
62
+ export const AvatarShape: ComponentDefinition<PBAvatarShape>;
105
63
 
106
64
  // Warning: (ae-missing-release-tag) "AvatarTexture" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
107
65
  // Warning: (ae-missing-release-tag) "AvatarTexture" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -121,7 +79,7 @@ export const AvatarTexture: {
121
79
  };
122
80
 
123
81
  // @public (undocumented)
124
- export const Billboard: ComponentDefinition<typeof BillboardSchema>;
82
+ export const Billboard: ComponentDefinition<PBBillboard>;
125
83
 
126
84
  // Warning: (ae-missing-release-tag) "BillboardMode" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
127
85
  //
@@ -133,13 +91,6 @@ export const enum BillboardMode {
133
91
  BM_Y_AXE = 1
134
92
  }
135
93
 
136
- // Warning: (ae-missing-release-tag) "BillboardSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
137
- //
138
- // @public (undocumented)
139
- export const BillboardSchema: ISchema<PBBillboard> & {
140
- COMPONENT_ID: number;
141
- };
142
-
143
94
  // @public (undocumented)
144
95
  export type ByteBuffer = {
145
96
  buffer(): Uint8Array;
@@ -198,24 +149,10 @@ export type ByteBuffer = {
198
149
  };
199
150
 
200
151
  // @public (undocumented)
201
- export const CameraMode: ComponentDefinition<typeof CameraModeSchema>;
152
+ export const CameraMode: ComponentDefinition<PBCameraMode>;
202
153
 
203
154
  // @public (undocumented)
204
- export const CameraModeArea: ComponentDefinition<typeof CameraModeAreaSchema>;
205
-
206
- // Warning: (ae-missing-release-tag) "CameraModeAreaSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
207
- //
208
- // @public (undocumented)
209
- export const CameraModeAreaSchema: ISchema<PBCameraModeArea> & {
210
- COMPONENT_ID: number;
211
- };
212
-
213
- // Warning: (ae-missing-release-tag) "CameraModeSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
214
- //
215
- // @public (undocumented)
216
- export const CameraModeSchema: ISchema<PBCameraMode> & {
217
- COMPONENT_ID: number;
218
- };
155
+ export const CameraModeArea: ComponentDefinition<PBCameraModeArea>;
219
156
 
220
157
  // Warning: (ae-missing-release-tag) "CameraType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
221
158
  //
@@ -407,17 +344,17 @@ export type CommonProps = {
407
344
  };
408
345
 
409
346
  // @public (undocumented)
410
- export type ComponentDefinition<T extends ISchema<ConstructorType>, ConstructorType = any> = {
347
+ export type ComponentDefinition<T> = {
411
348
  _id: number;
412
- default(): DeepReadonly<ComponentType<T>>;
349
+ default(): DeepReadonly<T>;
413
350
  has(entity: Entity): boolean;
414
- get(entity: Entity): DeepReadonly<ComponentType<T>>;
415
- getOrNull(entity: Entity): DeepReadonly<ComponentType<T>> | null;
416
- create(entity: Entity, val?: ConstructorType): ComponentType<T>;
417
- createOrReplace(entity: Entity, val?: ConstructorType): ComponentType<T>;
418
- deleteFrom(entity: Entity): ComponentType<T> | null;
419
- getMutable(entity: Entity): ComponentType<T>;
420
- getMutableOrNull(entity: Entity): ComponentType<T> | null;
351
+ get(entity: Entity): DeepReadonly<T>;
352
+ getOrNull(entity: Entity): DeepReadonly<T> | null;
353
+ create(entity: Entity, val?: T): T;
354
+ createOrReplace(entity: Entity, val?: T): T;
355
+ deleteFrom(entity: Entity): T | null;
356
+ getMutable(entity: Entity): T;
357
+ getMutableOrNull(entity: Entity): T | null;
421
358
  writeToByteBuffer(entity: Entity, buffer: ByteBuffer): void;
422
359
  };
423
360
 
@@ -431,9 +368,6 @@ export type ComponentSchema<T extends [ComponentDefinition<any>, ...ComponentDef
431
368
  [K in keyof T]: T[K] extends ComponentDefinition<any> ? ReturnType<T[K]['getMutable']> : never;
432
369
  };
433
370
 
434
- // @public (undocumented)
435
- export type ComponentType<T extends ISchema> = EcsResult<T>;
436
-
437
371
  // Warning: (ae-missing-release-tag) "Container" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
438
372
  //
439
373
  // @public (undocumented)
@@ -505,7 +439,7 @@ export type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
505
439
  // Warning: (ae-missing-release-tag) "defineComponent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
506
440
  //
507
441
  // @public (undocumented)
508
- export function defineComponent<T extends ISchema, ConstructorType = ComponentType<T>>(componentId: number, spec: T, constructorDefault?: ConstructorType): ComponentDefinition<T, ConstructorType>;
442
+ export function defineComponent<T>(componentId: number, spec: ISchema<T>): ComponentDefinition<T>;
509
443
 
510
444
  // @public
511
445
  export const DEG2RAD: number;
@@ -517,9 +451,6 @@ export type EcsElements = {
517
451
  entity: Partial<Omit<EntityComponents, 'onClick'> & CommonProps>;
518
452
  };
519
453
 
520
- // @public (undocumented)
521
- export type EcsResult<T extends ISchema> = T extends ISchema ? ReturnType<T['deserialize']> : never;
522
-
523
454
  // @public (undocumented)
524
455
  export function Engine(): IEngine;
525
456
 
@@ -634,14 +565,7 @@ export type GlobalInputEventResult = InputEventResult & {
634
565
  };
635
566
 
636
567
  // @public (undocumented)
637
- export const GltfContainer: ComponentDefinition<typeof GltfContainerSchema>;
638
-
639
- // Warning: (ae-missing-release-tag) "GltfContainerSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
640
- //
641
- // @public (undocumented)
642
- export const GltfContainerSchema: ISchema<PBGltfContainer> & {
643
- COMPONENT_ID: number;
644
- };
568
+ export const GltfContainer: ComponentDefinition<PBGltfContainer>;
645
569
 
646
570
  // @public (undocumented)
647
571
  export function IArray<T>(type: ISchema<T>): ISchema<Array<T>>;
@@ -654,11 +578,11 @@ export type IEngine = {
654
578
  entityExists(entity: Entity): boolean;
655
579
  addSystem(system: SystemFn, priority?: number, name?: string): void;
656
580
  removeSystem(selector: string | SystemFn): boolean;
657
- registerCustomComponent<T extends ISchema, V>(component: ComponentDefinition<T, V>, componentId: number): ComponentDefinition<T, V>;
658
- defineComponent<T extends Spec, ConstructorType = Partial<Result<T>>>(spec: T, componentId: number, constructorDefault?: ConstructorType): ComponentDefinition<ISchema<Result<T>>, Partial<Result<T>>>;
659
- defineComponentFromSchema<T extends ISchema<ConstructorType>, ConstructorType>(spec: T, componentId: number, constructorDefault?: ConstructorType): ComponentDefinition<T, ConstructorType>;
660
- getComponent<T extends ISchema>(componentId: number): ComponentDefinition<T>;
661
- getComponentOrNull<T extends ISchema>(componentId: number): ComponentDefinition<T> | null;
581
+ registerCustomComponent<T>(component: ComponentDefinition<T>, componentId: number): ComponentDefinition<T>;
582
+ defineComponent<T extends Spec>(spec: T, componentId: number, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
583
+ defineComponentFromSchema<T>(spec: ISchema<T>, componentId: number): ComponentDefinition<T>;
584
+ getComponent<T>(componentId: number): ComponentDefinition<T>;
585
+ getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
662
586
  getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
663
587
  update(deltaTime: number): Promise<void>;
664
588
  readonly RootEntity: Entity;
@@ -861,7 +785,7 @@ export type IInputSystem = {
861
785
  };
862
786
 
863
787
  // @public (undocumented)
864
- export function IMap<T extends Spec>(spec: T): ISchema<Result<T>>;
788
+ export function IMap<T extends Spec>(spec: T, defaultValue?: Partial<MapResult<T>>): ISchema<MapResult<T>>;
865
789
 
866
790
  // Warning: (ae-missing-release-tag) "IncludeUndefined" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
867
791
  //
@@ -934,6 +858,7 @@ export type ISchema<T = any> = {
934
858
  serialize(value: T, builder: ByteBuffer): void;
935
859
  deserialize(reader: ByteBuffer): T;
936
860
  create(): T;
861
+ extend?: (base?: T) => T;
937
862
  };
938
863
 
939
864
  // Warning: (ae-missing-release-tag) "isListener" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -967,13 +892,26 @@ export type Listeners = {
967
892
  onClick?: EventSystemCallback;
968
893
  };
969
894
 
895
+ // Warning: (ae-missing-release-tag) "MapComponentDefinition" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
896
+ //
897
+ // @public (undocumented)
898
+ export interface MapComponentDefinition<T> extends ComponentDefinition<T> {
899
+ create(entity: Entity, val?: Partial<T>): T;
900
+ createOrReplace(entity: Entity, val?: Partial<T>): T;
901
+ }
902
+
903
+ // @public (undocumented)
904
+ export type MapResult<T extends Spec> = ToOptional<{
905
+ [K in keyof T]: T[K] extends ISchema ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? MapResult<T[K]> : never;
906
+ }>;
907
+
970
908
  // Warning: (ae-missing-release-tag) "Material" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
971
909
  //
972
910
  // @public (undocumented)
973
911
  export const Material: MaterialComponentDefinitionExtended;
974
912
 
975
913
  // @public (undocumented)
976
- export type MaterialComponentDefinition = ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
914
+ export type MaterialComponentDefinition = ComponentDefinition<PBMaterial>;
977
915
 
978
916
  // @public (undocumented)
979
917
  export interface MaterialComponentDefinitionExtended extends MaterialComponentDefinition {
@@ -982,13 +920,6 @@ export interface MaterialComponentDefinitionExtended extends MaterialComponentDe
982
920
  Texture: TextureHelper;
983
921
  }
984
922
 
985
- // Warning: (ae-missing-release-tag) "MaterialSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
986
- //
987
- // @public (undocumented)
988
- export const MaterialSchema: ISchema<PBMaterial> & {
989
- COMPONENT_ID: number;
990
- };
991
-
992
923
  // Warning: (ae-missing-release-tag) "MaterialTransparencyMode" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
993
924
  //
994
925
  // @public (undocumented)
@@ -1148,7 +1079,7 @@ export namespace Matrix {
1148
1079
  export const MeshCollider: MeshColliderComponentDefinitionExtended;
1149
1080
 
1150
1081
  // @public (undocumented)
1151
- export type MeshColliderComponentDefinition = ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
1082
+ export type MeshColliderComponentDefinition = ComponentDefinition<PBMeshCollider>;
1152
1083
 
1153
1084
  // @public (undocumented)
1154
1085
  export interface MeshColliderComponentDefinitionExtended extends MeshColliderComponentDefinition {
@@ -1158,20 +1089,13 @@ export interface MeshColliderComponentDefinitionExtended extends MeshColliderCom
1158
1089
  setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
1159
1090
  }
1160
1091
 
1161
- // Warning: (ae-missing-release-tag) "MeshColliderSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1162
- //
1163
- // @public (undocumented)
1164
- export const MeshColliderSchema: ISchema<PBMeshCollider> & {
1165
- COMPONENT_ID: number;
1166
- };
1167
-
1168
1092
  // Warning: (ae-missing-release-tag) "MeshRenderer" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1169
1093
  //
1170
1094
  // @public (undocumented)
1171
1095
  export const MeshRenderer: MeshRendererComponentDefinitionExtended;
1172
1096
 
1173
1097
  // @public (undocumented)
1174
- export type MeshRendererComponentDefinition = ComponentDefinition<ISchema<PBMeshRenderer>, PBMeshRenderer>;
1098
+ export type MeshRendererComponentDefinition = ComponentDefinition<PBMeshRenderer>;
1175
1099
 
1176
1100
  // @public (undocumented)
1177
1101
  export interface MeshRendererComponentDefinitionExtended extends MeshRendererComponentDefinition {
@@ -1181,13 +1105,6 @@ export interface MeshRendererComponentDefinitionExtended extends MeshRendererCom
1181
1105
  setSphere(entity: Entity): void;
1182
1106
  }
1183
1107
 
1184
- // Warning: (ae-missing-release-tag) "MeshRendererSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1185
- //
1186
- // @public (undocumented)
1187
- export const MeshRendererSchema: ISchema<PBMeshRenderer> & {
1188
- COMPONENT_ID: number;
1189
- };
1190
-
1191
1108
  // Warning: (ae-missing-release-tag) "MessageBus" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1192
1109
  //
1193
1110
  // @public (undocumented)
@@ -1252,14 +1169,7 @@ export const enum NftFrameType {
1252
1169
  }
1253
1170
 
1254
1171
  // @public (undocumented)
1255
- export const NftShape: ComponentDefinition<typeof NftShapeSchema>;
1256
-
1257
- // Warning: (ae-missing-release-tag) "NftShapeSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1258
- //
1259
- // @public (undocumented)
1260
- export const NftShapeSchema: ISchema<PBNftShape> & {
1261
- COMPONENT_ID: number;
1262
- };
1172
+ export const NftShape: ComponentDefinition<PBNftShape>;
1263
1173
 
1264
1174
  // 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)
1265
1175
  //
@@ -2350,14 +2260,7 @@ export namespace Plane {
2350
2260
  }
2351
2261
 
2352
2262
  // @public (undocumented)
2353
- export const PointerEventsResult: ComponentDefinition<typeof PointerEventsResultSchema>;
2354
-
2355
- // Warning: (ae-missing-release-tag) "PointerEventsResultSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2356
- //
2357
- // @public (undocumented)
2358
- export const PointerEventsResultSchema: ISchema<PBPointerEventsResult> & {
2359
- COMPONENT_ID: number;
2360
- };
2263
+ export const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
2361
2264
 
2362
2265
  // Warning: (ae-missing-release-tag) "PointerEventsSystem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2363
2266
  //
@@ -2391,24 +2294,10 @@ export const enum PointerEventType {
2391
2294
  }
2392
2295
 
2393
2296
  // @public (undocumented)
2394
- export const PointerHoverFeedback: ComponentDefinition<typeof PointerHoverFeedbackSchema>;
2395
-
2396
- // Warning: (ae-missing-release-tag) "PointerHoverFeedbackSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2397
- //
2398
- // @public (undocumented)
2399
- export const PointerHoverFeedbackSchema: ISchema<PBPointerHoverFeedback> & {
2400
- COMPONENT_ID: number;
2401
- };
2297
+ export const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
2402
2298
 
2403
2299
  // @public (undocumented)
2404
- export const PointerLock: ComponentDefinition<typeof PointerLockSchema>;
2405
-
2406
- // Warning: (ae-missing-release-tag) "PointerLockSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2407
- //
2408
- // @public (undocumented)
2409
- export const PointerLockSchema: ISchema<PBPointerLock> & {
2410
- COMPONENT_ID: number;
2411
- };
2300
+ export const PointerLock: ComponentDefinition<PBPointerLock>;
2412
2301
 
2413
2302
  // @public (undocumented)
2414
2303
  export type Position = {
@@ -2486,7 +2375,7 @@ export type QuaternionType = {
2486
2375
  export const RAD2DEG: number;
2487
2376
 
2488
2377
  // @public (undocumented)
2489
- export const Raycast: ComponentDefinition<typeof RaycastSchema>;
2378
+ export const Raycast: ComponentDefinition<PBRaycast>;
2490
2379
 
2491
2380
  // Warning: (ae-missing-release-tag) "RaycastHit" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2492
2381
  // Warning: (ae-missing-release-tag) "RaycastHit" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -2535,21 +2424,7 @@ export type RaycastResponsePayload<T> = {
2535
2424
  };
2536
2425
 
2537
2426
  // @public (undocumented)
2538
- export const RaycastResult: ComponentDefinition<typeof RaycastResultSchema>;
2539
-
2540
- // Warning: (ae-missing-release-tag) "RaycastResultSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2541
- //
2542
- // @public (undocumented)
2543
- export const RaycastResultSchema: ISchema<PBRaycastResult> & {
2544
- COMPONENT_ID: number;
2545
- };
2546
-
2547
- // Warning: (ae-missing-release-tag) "RaycastSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2548
- //
2549
- // @public (undocumented)
2550
- export const RaycastSchema: ISchema<PBRaycast> & {
2551
- COMPONENT_ID: number;
2552
- };
2427
+ export const RaycastResult: ComponentDefinition<PBRaycastResult>;
2553
2428
 
2554
2429
  // Warning: (ae-missing-release-tag) "ReactBasedUiSystem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2555
2430
  //
@@ -2584,8 +2459,8 @@ export namespace ReactEcs {
2584
2459
  export const ReactEcsRenderer: ReactBasedUiSystem;
2585
2460
 
2586
2461
  // @public (undocumented)
2587
- export type ReadonlyComponentSchema<T extends [ComponentDefinition<any, any>, ...ComponentDefinition<any, any>[]]> = {
2588
- [K in keyof T]: T[K] extends ComponentDefinition<any, any> ? ReturnType<T[K]['get']> : never;
2462
+ export type ReadonlyComponentSchema<T extends [ComponentDefinition<unknown>, ...ComponentDefinition<unknown>[]]> = {
2463
+ [K in keyof T]: T[K] extends ComponentDefinition<unknown> ? ReturnType<T[K]['get']> : never;
2589
2464
  };
2590
2465
 
2591
2466
  // @public (undocumented)
@@ -2604,11 +2479,6 @@ export type ReceiveMessage = {
2604
2479
  messageBuffer: Uint8Array;
2605
2480
  };
2606
2481
 
2607
- // @public (undocumented)
2608
- export type Result<T extends Spec> = ToOptional<{
2609
- [K in keyof T]: T[K] extends ISchema ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? Result<T[K]> : never;
2610
- }>;
2611
-
2612
2482
  // Warning: (ae-missing-release-tag) "RPCSendableMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2613
2483
  //
2614
2484
  // @public (undocumented)
@@ -2696,6 +2566,15 @@ export interface Spec {
2696
2566
  // @public (undocumented)
2697
2567
  export type SystemFn = (dt: number) => void;
2698
2568
 
2569
+ // Warning: (ae-missing-release-tag) "SystemItem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2570
+ //
2571
+ // @public (undocumented)
2572
+ export type SystemItem = {
2573
+ fn: SystemFn;
2574
+ priority: number;
2575
+ name?: string;
2576
+ };
2577
+
2699
2578
  // Warning: (ae-missing-release-tag) "Task" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2700
2579
  //
2701
2580
  // @public (undocumented)
@@ -2726,14 +2605,7 @@ export const enum TextAlignMode {
2726
2605
  }
2727
2606
 
2728
2607
  // @public (undocumented)
2729
- export const TextShape: ComponentDefinition<typeof TextShapeSchema>;
2730
-
2731
- // Warning: (ae-missing-release-tag) "TextShapeSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2732
- //
2733
- // @public (undocumented)
2734
- export const TextShapeSchema: ISchema<PBTextShape> & {
2735
- COMPONENT_ID: number;
2736
- };
2608
+ export const TextShape: ComponentDefinition<PBTextShape>;
2737
2609
 
2738
2610
  // Warning: (ae-missing-release-tag) "Texture" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2739
2611
  // Warning: (ae-missing-release-tag) "Texture" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -2819,12 +2691,18 @@ export type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedType
2819
2691
  // Warning: (ae-missing-release-tag) "Transform" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2820
2692
  //
2821
2693
  // @public (undocumented)
2822
- export const Transform: TransformComponent;
2694
+ export const Transform: TransformComponentExtended;
2823
2695
 
2824
- // Warning: (ae-missing-release-tag) "TransformComponent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2825
- //
2826
2696
  // @public (undocumented)
2827
- export type TransformComponent = ComponentDefinition<ISchema<TransformType>, Partial<TransformType>>;
2697
+ export type TransformComponent = ComponentDefinition<TransformType>;
2698
+
2699
+ // @public (undocumented)
2700
+ export interface TransformComponentExtended extends TransformComponent {
2701
+ // (undocumented)
2702
+ create(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
2703
+ // (undocumented)
2704
+ createOrReplace(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
2705
+ }
2828
2706
 
2829
2707
  // @public (undocumented)
2830
2708
  export type TransformType = {
@@ -2847,6 +2725,9 @@ export type TransformType = {
2847
2725
  parent?: Entity;
2848
2726
  };
2849
2727
 
2728
+ // @public (undocumented)
2729
+ export type TransformTypeWithOptionals = Partial<TransformType>;
2730
+
2850
2731
  // Warning: (ae-missing-release-tag) "Transport" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2851
2732
  //
2852
2733
  // @public (undocumented)
@@ -2862,14 +2743,7 @@ export type Transport = {
2862
2743
  export type TransportMessage = Omit<ReceiveMessage, 'data'>;
2863
2744
 
2864
2745
  // @public (undocumented)
2865
- export const UiBackground: ComponentDefinition<typeof UiBackgroundSchema>;
2866
-
2867
- // Warning: (ae-missing-release-tag) "UiBackgroundSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2868
- //
2869
- // @public (undocumented)
2870
- export const UiBackgroundSchema: ISchema<PBUiBackground> & {
2871
- COMPONENT_ID: number;
2872
- };
2746
+ export const UiBackground: ComponentDefinition<PBUiBackground>;
2873
2747
 
2874
2748
  // Warning: (ae-missing-release-tag) "UiComponent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2875
2749
  //
@@ -2880,17 +2754,10 @@ export type UiComponent = () => JSX.Element;
2880
2754
  export function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
2881
2755
 
2882
2756
  // @public (undocumented)
2883
- export const UiText: ComponentDefinition<typeof UiTextSchema>;
2884
-
2885
- // Warning: (ae-missing-release-tag) "UiTextSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2886
- //
2887
- // @public (undocumented)
2888
- export const UiTextSchema: ISchema<PBUiText> & {
2889
- COMPONENT_ID: number;
2890
- };
2757
+ export const UiText: ComponentDefinition<PBUiText>;
2891
2758
 
2892
2759
  // @public (undocumented)
2893
- export const UiTransform: ComponentDefinition<typeof UiTransformSchema>;
2760
+ export const UiTransform: ComponentDefinition<PBUiTransform>;
2894
2761
 
2895
2762
  // @public (undocumented)
2896
2763
  export interface UiTransformProps {
@@ -2940,13 +2807,6 @@ export interface UiTransformProps {
2940
2807
  width?: PositionUnit;
2941
2808
  }
2942
2809
 
2943
- // Warning: (ae-missing-release-tag) "UiTransformSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2944
- //
2945
- // @public (undocumented)
2946
- export const UiTransformSchema: ISchema<PBUiTransform> & {
2947
- COMPONENT_ID: number;
2948
- };
2949
-
2950
2810
  // @public (undocumented)
2951
2811
  export type Unpacked<T> = T extends (infer U)[] ? U : T;
2952
2812
 
@@ -3054,14 +2914,7 @@ export type Vector3Type = {
3054
2914
  };
3055
2915
 
3056
2916
  // @public (undocumented)
3057
- export const VisibilityComponent: ComponentDefinition<typeof VisibilityComponentSchema>;
3058
-
3059
- // Warning: (ae-missing-release-tag) "VisibilityComponentSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
3060
- //
3061
- // @public (undocumented)
3062
- export const VisibilityComponentSchema: ISchema<PBVisibilityComponent> & {
3063
- COMPONENT_ID: number;
3064
- };
2917
+ export const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
3065
2918
 
3066
2919
  // Warning: (ae-missing-release-tag) "WireMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
3067
2920
  //
@@ -3079,7 +2932,7 @@ export namespace WireMessage {
3079
2932
  RESERVED = 0
3080
2933
  }
3081
2934
  // (undocumented)
3082
- export function getType(component: ComponentDefinition<ISchema<unknown>, unknown>, entity: Entity): Enum;
2935
+ export function getType(component: ComponentDefinition<unknown>, entity: Entity): Enum;
3083
2936
  // (undocumented)
3084
2937
  export type Header = {
3085
2938
  length: Uint32;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
- "version": "7.0.6-3713220614.commit-d02ef9f",
3
+ "version": "7.0.6-3741197705.commit-bb37667",
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-3713220614.commit-d02ef9f"
20
+ "@dcl/sdk": "7.0.6-3741197705.commit-bb37667"
21
21
  },
22
22
  "minCliVersion": "3.12.3",
23
23
  "files": [
24
24
  "dist",
25
25
  "etc"
26
26
  ],
27
- "commit": "d02ef9fa9c36da3f26f7b1313e57cb4ccce5c539"
27
+ "commit": "bb376675027050591f82fce195c1797a5b77ed3a"
28
28
  }