@dcl/playground-assets 7.0.6-3713220614.commit-d02ef9f → 7.0.6-3767144242.commit-6bb12d2

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
- };
75
-
76
- // @public (undocumented)
77
- export const AvatarModifierArea: ComponentDefinition<typeof AvatarModifierAreaSchema>;
46
+ export const AvatarAttach: ComponentDefinition<PBAvatarAttach>;
78
47
 
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
48
  // @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>;
202
-
203
- // @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
- };
152
+ export const CameraMode: ComponentDefinition<PBCameraMode>;
212
153
 
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
154
  // @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
 
@@ -601,7 +532,11 @@ export type FloatArray = number[];
601
532
  // @public (undocumented)
602
533
  export const enum Font {
603
534
  // (undocumented)
604
- F_SANS_SERIF = 0
535
+ F_MONOSPACE = 2,
536
+ // (undocumented)
537
+ F_SANS_SERIF = 0,
538
+ // (undocumented)
539
+ F_SERIF = 1
605
540
  }
606
541
 
607
542
  // Warning: (ae-missing-release-tag) "GizmoDragEndEvent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -634,14 +569,7 @@ export type GlobalInputEventResult = InputEventResult & {
634
569
  };
635
570
 
636
571
  // @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
- };
572
+ export const GltfContainer: ComponentDefinition<PBGltfContainer>;
645
573
 
646
574
  // @public (undocumented)
647
575
  export function IArray<T>(type: ISchema<T>): ISchema<Array<T>>;
@@ -654,11 +582,11 @@ export type IEngine = {
654
582
  entityExists(entity: Entity): boolean;
655
583
  addSystem(system: SystemFn, priority?: number, name?: string): void;
656
584
  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;
585
+ registerCustomComponent<T>(component: ComponentDefinition<T>, componentId: number): ComponentDefinition<T>;
586
+ defineComponent<T extends Spec>(spec: T, componentId: number, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
587
+ defineComponentFromSchema<T>(spec: ISchema<T>, componentId: number): ComponentDefinition<T>;
588
+ getComponent<T>(componentId: number): ComponentDefinition<T>;
589
+ getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
662
590
  getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
663
591
  update(deltaTime: number): Promise<void>;
664
592
  readonly RootEntity: Entity;
@@ -861,7 +789,7 @@ export type IInputSystem = {
861
789
  };
862
790
 
863
791
  // @public (undocumented)
864
- export function IMap<T extends Spec>(spec: T): ISchema<Result<T>>;
792
+ export function IMap<T extends Spec>(spec: T, defaultValue?: Partial<MapResult<T>>): ISchema<MapResult<T>>;
865
793
 
866
794
  // 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
795
  //
@@ -934,6 +862,7 @@ export type ISchema<T = any> = {
934
862
  serialize(value: T, builder: ByteBuffer): void;
935
863
  deserialize(reader: ByteBuffer): T;
936
864
  create(): T;
865
+ extend?: (base?: T) => T;
937
866
  };
938
867
 
939
868
  // 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 +896,26 @@ export type Listeners = {
967
896
  onClick?: EventSystemCallback;
968
897
  };
969
898
 
899
+ // 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)
900
+ //
901
+ // @public (undocumented)
902
+ export interface MapComponentDefinition<T> extends ComponentDefinition<T> {
903
+ create(entity: Entity, val?: Partial<T>): T;
904
+ createOrReplace(entity: Entity, val?: Partial<T>): T;
905
+ }
906
+
907
+ // @public (undocumented)
908
+ export type MapResult<T extends Spec> = ToOptional<{
909
+ [K in keyof T]: T[K] extends ISchema ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? MapResult<T[K]> : never;
910
+ }>;
911
+
970
912
  // 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
913
  //
972
914
  // @public (undocumented)
973
915
  export const Material: MaterialComponentDefinitionExtended;
974
916
 
975
917
  // @public (undocumented)
976
- export type MaterialComponentDefinition = ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
918
+ export type MaterialComponentDefinition = ComponentDefinition<PBMaterial>;
977
919
 
978
920
  // @public (undocumented)
979
921
  export interface MaterialComponentDefinitionExtended extends MaterialComponentDefinition {
@@ -982,13 +924,6 @@ export interface MaterialComponentDefinitionExtended extends MaterialComponentDe
982
924
  Texture: TextureHelper;
983
925
  }
984
926
 
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
927
  // 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
928
  //
994
929
  // @public (undocumented)
@@ -1148,7 +1083,7 @@ export namespace Matrix {
1148
1083
  export const MeshCollider: MeshColliderComponentDefinitionExtended;
1149
1084
 
1150
1085
  // @public (undocumented)
1151
- export type MeshColliderComponentDefinition = ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
1086
+ export type MeshColliderComponentDefinition = ComponentDefinition<PBMeshCollider>;
1152
1087
 
1153
1088
  // @public (undocumented)
1154
1089
  export interface MeshColliderComponentDefinitionExtended extends MeshColliderComponentDefinition {
@@ -1158,20 +1093,13 @@ export interface MeshColliderComponentDefinitionExtended extends MeshColliderCom
1158
1093
  setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
1159
1094
  }
1160
1095
 
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
1096
  // 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
1097
  //
1170
1098
  // @public (undocumented)
1171
1099
  export const MeshRenderer: MeshRendererComponentDefinitionExtended;
1172
1100
 
1173
1101
  // @public (undocumented)
1174
- export type MeshRendererComponentDefinition = ComponentDefinition<ISchema<PBMeshRenderer>, PBMeshRenderer>;
1102
+ export type MeshRendererComponentDefinition = ComponentDefinition<PBMeshRenderer>;
1175
1103
 
1176
1104
  // @public (undocumented)
1177
1105
  export interface MeshRendererComponentDefinitionExtended extends MeshRendererComponentDefinition {
@@ -1181,13 +1109,6 @@ export interface MeshRendererComponentDefinitionExtended extends MeshRendererCom
1181
1109
  setSphere(entity: Entity): void;
1182
1110
  }
1183
1111
 
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
1112
  // 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
1113
  //
1193
1114
  // @public (undocumented)
@@ -1252,14 +1173,7 @@ export const enum NftFrameType {
1252
1173
  }
1253
1174
 
1254
1175
  // @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
- };
1176
+ export const NftShape: ComponentDefinition<PBNftShape>;
1263
1177
 
1264
1178
  // 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
1179
  //
@@ -2109,9 +2023,7 @@ export interface PBTextShape {
2109
2023
  fontAutoSize?: boolean | undefined;
2110
2024
  fontSize?: number | undefined;
2111
2025
  height?: number | undefined;
2112
- // (undocumented)
2113
2026
  lineCount?: number | undefined;
2114
- // (undocumented)
2115
2027
  lineSpacing?: number | undefined;
2116
2028
  outlineColor?: PBColor3 | undefined;
2117
2029
  // (undocumented)
@@ -2135,7 +2047,6 @@ export interface PBTextShape {
2135
2047
  text: string;
2136
2048
  textAlign?: TextAlignMode | undefined;
2137
2049
  textColor?: PBColor4 | undefined;
2138
- // (undocumented)
2139
2050
  textWrapping?: boolean | undefined;
2140
2051
  width?: number | undefined;
2141
2052
  }
@@ -2350,14 +2261,7 @@ export namespace Plane {
2350
2261
  }
2351
2262
 
2352
2263
  // @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
- };
2264
+ export const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
2361
2265
 
2362
2266
  // 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
2267
  //
@@ -2391,24 +2295,10 @@ export const enum PointerEventType {
2391
2295
  }
2392
2296
 
2393
2297
  // @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
- };
2402
-
2403
- // @public (undocumented)
2404
- export const PointerLock: ComponentDefinition<typeof PointerLockSchema>;
2298
+ export const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
2405
2299
 
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
2300
  // @public (undocumented)
2409
- export const PointerLockSchema: ISchema<PBPointerLock> & {
2410
- COMPONENT_ID: number;
2411
- };
2301
+ export const PointerLock: ComponentDefinition<PBPointerLock>;
2412
2302
 
2413
2303
  // @public (undocumented)
2414
2304
  export type Position = {
@@ -2486,7 +2376,7 @@ export type QuaternionType = {
2486
2376
  export const RAD2DEG: number;
2487
2377
 
2488
2378
  // @public (undocumented)
2489
- export const Raycast: ComponentDefinition<typeof RaycastSchema>;
2379
+ export const Raycast: ComponentDefinition<PBRaycast>;
2490
2380
 
2491
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)
2492
2382
  // 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 +2425,7 @@ export type RaycastResponsePayload<T> = {
2535
2425
  };
2536
2426
 
2537
2427
  // @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
- };
2428
+ export const RaycastResult: ComponentDefinition<PBRaycastResult>;
2553
2429
 
2554
2430
  // 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
2431
  //
@@ -2584,8 +2460,8 @@ export namespace ReactEcs {
2584
2460
  export const ReactEcsRenderer: ReactBasedUiSystem;
2585
2461
 
2586
2462
  // @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;
2463
+ export type ReadonlyComponentSchema<T extends [ComponentDefinition<unknown>, ...ComponentDefinition<unknown>[]]> = {
2464
+ [K in keyof T]: T[K] extends ComponentDefinition<unknown> ? ReturnType<T[K]['get']> : never;
2589
2465
  };
2590
2466
 
2591
2467
  // @public (undocumented)
@@ -2604,11 +2480,6 @@ export type ReceiveMessage = {
2604
2480
  messageBuffer: Uint8Array;
2605
2481
  };
2606
2482
 
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
2483
  // 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
2484
  //
2614
2485
  // @public (undocumented)
@@ -2696,6 +2567,15 @@ export interface Spec {
2696
2567
  // @public (undocumented)
2697
2568
  export type SystemFn = (dt: number) => void;
2698
2569
 
2570
+ // 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)
2571
+ //
2572
+ // @public (undocumented)
2573
+ export type SystemItem = {
2574
+ fn: SystemFn;
2575
+ priority: number;
2576
+ name?: string;
2577
+ };
2578
+
2699
2579
  // 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
2580
  //
2701
2581
  // @public (undocumented)
@@ -2726,14 +2606,7 @@ export const enum TextAlignMode {
2726
2606
  }
2727
2607
 
2728
2608
  // @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
- };
2609
+ export const TextShape: ComponentDefinition<PBTextShape>;
2737
2610
 
2738
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)
2739
2612
  // 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 +2692,18 @@ export type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedType
2819
2692
  // 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
2693
  //
2821
2694
  // @public (undocumented)
2822
- export const Transform: TransformComponent;
2695
+ export const Transform: TransformComponentExtended;
2823
2696
 
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
2697
  // @public (undocumented)
2827
- export type TransformComponent = ComponentDefinition<ISchema<TransformType>, Partial<TransformType>>;
2698
+ export type TransformComponent = ComponentDefinition<TransformType>;
2699
+
2700
+ // @public (undocumented)
2701
+ export interface TransformComponentExtended extends TransformComponent {
2702
+ // (undocumented)
2703
+ create(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
2704
+ // (undocumented)
2705
+ createOrReplace(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
2706
+ }
2828
2707
 
2829
2708
  // @public (undocumented)
2830
2709
  export type TransformType = {
@@ -2847,6 +2726,9 @@ export type TransformType = {
2847
2726
  parent?: Entity;
2848
2727
  };
2849
2728
 
2729
+ // @public (undocumented)
2730
+ export type TransformTypeWithOptionals = Partial<TransformType>;
2731
+
2850
2732
  // 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
2733
  //
2852
2734
  // @public (undocumented)
@@ -2862,14 +2744,7 @@ export type Transport = {
2862
2744
  export type TransportMessage = Omit<ReceiveMessage, 'data'>;
2863
2745
 
2864
2746
  // @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
- };
2747
+ export const UiBackground: ComponentDefinition<PBUiBackground>;
2873
2748
 
2874
2749
  // 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
2750
  //
@@ -2880,17 +2755,10 @@ export type UiComponent = () => JSX.Element;
2880
2755
  export function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
2881
2756
 
2882
2757
  // @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
- };
2758
+ export const UiText: ComponentDefinition<PBUiText>;
2891
2759
 
2892
2760
  // @public (undocumented)
2893
- export const UiTransform: ComponentDefinition<typeof UiTransformSchema>;
2761
+ export const UiTransform: ComponentDefinition<PBUiTransform>;
2894
2762
 
2895
2763
  // @public (undocumented)
2896
2764
  export interface UiTransformProps {
@@ -2940,13 +2808,6 @@ export interface UiTransformProps {
2940
2808
  width?: PositionUnit;
2941
2809
  }
2942
2810
 
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
2811
  // @public (undocumented)
2951
2812
  export type Unpacked<T> = T extends (infer U)[] ? U : T;
2952
2813
 
@@ -3054,14 +2915,7 @@ export type Vector3Type = {
3054
2915
  };
3055
2916
 
3056
2917
  // @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
- };
2918
+ export const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
3065
2919
 
3066
2920
  // 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
2921
  //
@@ -3079,7 +2933,7 @@ export namespace WireMessage {
3079
2933
  RESERVED = 0
3080
2934
  }
3081
2935
  // (undocumented)
3082
- export function getType(component: ComponentDefinition<ISchema<unknown>, unknown>, entity: Entity): Enum;
2936
+ export function getType(component: ComponentDefinition<unknown>, entity: Entity): Enum;
3083
2937
  // (undocumented)
3084
2938
  export type Header = {
3085
2939
  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-3767144242.commit-6bb12d2",
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-3767144242.commit-6bb12d2"
21
21
  },
22
22
  "minCliVersion": "3.12.3",
23
23
  "files": [
24
24
  "dist",
25
25
  "etc"
26
26
  ],
27
- "commit": "d02ef9fa9c36da3f26f7b1313e57cb4ccce5c539"
27
+ "commit": "6bb12d22069031724f3f256bc50443d3072b97a4"
28
28
  }