@dcl/playground-assets 7.0.6-4153633895.commit-4aad233 → 7.0.6-4180146485.commit-9a7dde9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alpha.d.ts +244 -149
- package/dist/beta.d.ts +244 -149
- package/dist/index.bundled.d.ts +244 -149
- package/dist/index.js +411 -199
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +3 -3
- package/dist/playground/snippets/ui-backgrounds.tsx +5 -26
- package/dist/playground/snippets/ui.tsx +4 -21
- package/dist/playground-assets.d.ts +244 -149
- package/etc/playground-assets.api.json +2105 -1647
- package/etc/playground-assets.api.md +132 -92
- package/package.json +3 -3
|
@@ -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
|
|
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
|
|
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
|
+
};
|
|
36
|
+
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
export const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
|
|
25
39
|
|
|
26
40
|
// @public (undocumented)
|
|
27
|
-
export const AudioStream:
|
|
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:
|
|
56
|
+
export const AvatarAttach: LastWriteWinElementSetComponentDefinition<PBAvatarAttach>;
|
|
43
57
|
|
|
44
58
|
// @public (undocumented)
|
|
45
|
-
export const AvatarModifierArea:
|
|
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:
|
|
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
|
|
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:
|
|
249
|
+
export const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
|
|
219
250
|
|
|
220
251
|
// @public (undocumented)
|
|
221
|
-
export const CameraModeArea:
|
|
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
|
|
427
|
+
export type ComponentDefinition<T> = LastWriteWinElementSetComponentDefinition<T> | GrowOnlyValueSetComponentDefinition<T>;
|
|
428
|
+
|
|
429
|
+
// @public
|
|
430
|
+
export const enum ComponentType {
|
|
397
431
|
// (undocumented)
|
|
398
|
-
|
|
432
|
+
GrowOnlyValueSet = 1,
|
|
399
433
|
// (undocumented)
|
|
400
|
-
|
|
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
|
-
//
|
|
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 =
|
|
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<
|
|
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:
|
|
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:
|
|
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>):
|
|
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
|
|
918
|
+
isTriggered: (inputAction: InputAction, pointerEventType: PointerEventType, entity: Entity) => boolean;
|
|
898
919
|
isPressed: (inputAction: InputAction) => boolean;
|
|
899
|
-
getInputCommand: (inputAction: InputAction, pointerEventType: PointerEventType, entity
|
|
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,9 +1004,9 @@ export interface ISchema<T = any> {
|
|
|
988
1004
|
// (undocumented)
|
|
989
1005
|
deserialize(reader: ByteBuffer): T;
|
|
990
1006
|
// (undocumented)
|
|
991
|
-
extend?: (base
|
|
1007
|
+
extend?: (base: Partial<DeepReadonly<T>> | undefined) => T;
|
|
992
1008
|
// (undocumented)
|
|
993
|
-
serialize(value: T
|
|
1009
|
+
serialize(value: DeepReadonly<T>, builder: ByteBuffer): void;
|
|
994
1010
|
}
|
|
995
1011
|
|
|
996
1012
|
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@hidden" is not defined in this configuration
|
|
@@ -1026,14 +1042,32 @@ export type Key = number | string;
|
|
|
1026
1042
|
// @public
|
|
1027
1043
|
export function Label(props: EntityPropTypes & UiLabelProps): ReactEcs.JSX.Element;
|
|
1028
1044
|
|
|
1045
|
+
// @public (undocumented)
|
|
1046
|
+
export interface LastWriteWinElementSetComponentDefinition<T> extends BaseComponent<T> {
|
|
1047
|
+
// (undocumented)
|
|
1048
|
+
readonly componentType: ComponentType.LastWriteWinElementSet;
|
|
1049
|
+
create(entity: Entity, val?: T): T;
|
|
1050
|
+
createOrReplace(entity: Entity, val?: T): T;
|
|
1051
|
+
deleteFrom(entity: Entity): T | null;
|
|
1052
|
+
get(entity: Entity): DeepReadonly<T>;
|
|
1053
|
+
getMutable(entity: Entity): T;
|
|
1054
|
+
getMutableOrNull(entity: Entity): T | null;
|
|
1055
|
+
getOrNull(entity: Entity): DeepReadonly<T> | null;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1029
1058
|
// @public
|
|
1030
1059
|
export type Listeners = {
|
|
1031
1060
|
onMouseDown?: Callback;
|
|
1032
1061
|
onMouseUp?: Callback;
|
|
1033
1062
|
};
|
|
1034
1063
|
|
|
1064
|
+
// 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)
|
|
1065
|
+
//
|
|
1066
|
+
// @public (undocumented)
|
|
1067
|
+
export type LwwComponentGetter<T extends LastWriteWinElementSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineComponentFromSchema'>) => T;
|
|
1068
|
+
|
|
1035
1069
|
// @public
|
|
1036
|
-
export interface MapComponentDefinition<T> extends
|
|
1070
|
+
export interface MapComponentDefinition<T> extends LastWriteWinElementSetComponentDefinition<T> {
|
|
1037
1071
|
create(entity: Entity, val?: Partial<T>): T;
|
|
1038
1072
|
createOrReplace(entity: Entity, val?: Partial<T>): T;
|
|
1039
1073
|
}
|
|
@@ -1049,7 +1083,7 @@ export type MapResult<T extends Spec> = ToOptional<{
|
|
|
1049
1083
|
export const Material: MaterialComponentDefinitionExtended;
|
|
1050
1084
|
|
|
1051
1085
|
// @public (undocumented)
|
|
1052
|
-
export interface MaterialComponentDefinitionExtended extends
|
|
1086
|
+
export interface MaterialComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBMaterial> {
|
|
1053
1087
|
setBasicMaterial: (entity: Entity, material: PBMaterial_UnlitMaterial) => void;
|
|
1054
1088
|
setPbrMaterial: (entity: Entity, material: PBMaterial_PbrMaterial) => void;
|
|
1055
1089
|
Texture: TextureHelper;
|
|
@@ -1212,7 +1246,7 @@ export namespace Matrix {
|
|
|
1212
1246
|
export const MeshCollider: MeshColliderComponentDefinitionExtended;
|
|
1213
1247
|
|
|
1214
1248
|
// @public (undocumented)
|
|
1215
|
-
export interface MeshColliderComponentDefinitionExtended extends
|
|
1249
|
+
export interface MeshColliderComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBMeshCollider> {
|
|
1216
1250
|
setBox(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
|
1217
1251
|
setCylinder(entity: Entity, radiusBottom?: number, radiusTop?: number, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
|
1218
1252
|
setPlane(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
|
@@ -1225,7 +1259,7 @@ export interface MeshColliderComponentDefinitionExtended extends ComponentDefini
|
|
|
1225
1259
|
export const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
|
1226
1260
|
|
|
1227
1261
|
// @public (undocumented)
|
|
1228
|
-
export interface MeshRendererComponentDefinitionExtended extends
|
|
1262
|
+
export interface MeshRendererComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBMeshRenderer> {
|
|
1229
1263
|
setBox(entity: Entity, uvs?: number[]): void;
|
|
1230
1264
|
setCylinder(entity: Entity, radiusBottom?: number, radiusTop?: number): void;
|
|
1231
1265
|
setPlane(entity: Entity, uvs?: number[]): void;
|
|
@@ -1294,7 +1328,7 @@ export const enum NftFrameType {
|
|
|
1294
1328
|
}
|
|
1295
1329
|
|
|
1296
1330
|
// @public (undocumented)
|
|
1297
|
-
export const NftShape:
|
|
1331
|
+
export const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
|
|
1298
1332
|
|
|
1299
1333
|
// 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
1334
|
//
|
|
@@ -1362,7 +1396,7 @@ export class ObserverEventState {
|
|
|
1362
1396
|
}
|
|
1363
1397
|
|
|
1364
1398
|
// @public (undocumented)
|
|
1365
|
-
export type OnChangeFunction = (entity: Entity, operation: CrdtMessageType, component?: ComponentDefinition<any
|
|
1399
|
+
export type OnChangeFunction = (entity: Entity, operation: CrdtMessageType, component?: ComponentDefinition<any>, componentValue?: any) => void;
|
|
1366
1400
|
|
|
1367
1401
|
// 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
1402
|
//
|
|
@@ -1757,11 +1791,6 @@ export interface PBPointerEvents_Info {
|
|
|
1757
1791
|
|
|
1758
1792
|
// @public (undocumented)
|
|
1759
1793
|
export interface PBPointerEventsResult {
|
|
1760
|
-
commands: PBPointerEventsResult_PointerCommand[];
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
// @public (undocumented)
|
|
1764
|
-
export interface PBPointerEventsResult_PointerCommand {
|
|
1765
1794
|
analog?: number | undefined;
|
|
1766
1795
|
button: InputAction;
|
|
1767
1796
|
// (undocumented)
|
|
@@ -2054,10 +2083,10 @@ export namespace Plane {
|
|
|
2054
2083
|
}
|
|
2055
2084
|
|
|
2056
2085
|
// @public (undocumented)
|
|
2057
|
-
export const PointerEvents:
|
|
2086
|
+
export const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
|
|
2058
2087
|
|
|
2059
2088
|
// @public (undocumented)
|
|
2060
|
-
export const PointerEventsResult:
|
|
2089
|
+
export const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
|
|
2061
2090
|
|
|
2062
2091
|
// @public (undocumented)
|
|
2063
2092
|
export interface PointerEventsSystem {
|
|
@@ -2083,7 +2112,7 @@ export const enum PointerEventType {
|
|
|
2083
2112
|
}
|
|
2084
2113
|
|
|
2085
2114
|
// @public (undocumented)
|
|
2086
|
-
export const PointerLock:
|
|
2115
|
+
export const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
|
2087
2116
|
|
|
2088
2117
|
// @public
|
|
2089
2118
|
export interface Position {
|
|
@@ -2097,11 +2126,14 @@ export interface Position {
|
|
|
2097
2126
|
top: PositionUnit;
|
|
2098
2127
|
}
|
|
2099
2128
|
|
|
2129
|
+
// @public
|
|
2130
|
+
export type PositionShorthand = PositionUnit | `${PositionUnit} ${PositionUnit}` | `${PositionUnit} ${PositionUnit} ${PositionUnit}` | `${PositionUnit} ${PositionUnit} ${PositionUnit} ${PositionUnit}`;
|
|
2131
|
+
|
|
2100
2132
|
// @public
|
|
2101
2133
|
export type PositionType = 'absolute' | 'relative';
|
|
2102
2134
|
|
|
2103
2135
|
// @public
|
|
2104
|
-
export type PositionUnit = `${number}px` | `${number}%` | number
|
|
2136
|
+
export type PositionUnit = `${number}px` | `${number}%` | number | `${number}`;
|
|
2105
2137
|
|
|
2106
2138
|
// Warning: (ae-missing-release-tag) "ProcessMessageResultType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2107
2139
|
//
|
|
@@ -2207,7 +2239,7 @@ export type QuaternionType = {
|
|
|
2207
2239
|
export const RAD2DEG: number;
|
|
2208
2240
|
|
|
2209
2241
|
// @public (undocumented)
|
|
2210
|
-
export const Raycast:
|
|
2242
|
+
export const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
|
|
2211
2243
|
|
|
2212
2244
|
// @public (undocumented)
|
|
2213
2245
|
export interface RaycastHit {
|
|
@@ -2245,7 +2277,7 @@ export type RaycastResponsePayload<T> = {
|
|
|
2245
2277
|
};
|
|
2246
2278
|
|
|
2247
2279
|
// @public (undocumented)
|
|
2248
|
-
export const RaycastResult:
|
|
2280
|
+
export const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
|
|
2249
2281
|
|
|
2250
2282
|
// @public (undocumented)
|
|
2251
2283
|
export interface ReactBasedUiSystem {
|
|
@@ -2419,7 +2451,7 @@ export const enum TextAlignMode {
|
|
|
2419
2451
|
export type TextAlignType = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
2420
2452
|
|
|
2421
2453
|
// @public (undocumented)
|
|
2422
|
-
export const TextShape:
|
|
2454
|
+
export const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
|
|
2423
2455
|
|
|
2424
2456
|
// @public (undocumented)
|
|
2425
2457
|
export interface Texture {
|
|
@@ -2500,7 +2532,7 @@ export type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedType
|
|
|
2500
2532
|
export const Transform: TransformComponentExtended;
|
|
2501
2533
|
|
|
2502
2534
|
// @public (undocumented)
|
|
2503
|
-
export type TransformComponent =
|
|
2535
|
+
export type TransformComponent = LastWriteWinElementSetComponentDefinition<TransformType>;
|
|
2504
2536
|
|
|
2505
2537
|
// @public (undocumented)
|
|
2506
2538
|
export interface TransformComponentExtended extends TransformComponent {
|
|
@@ -2555,7 +2587,7 @@ export interface UiAvatarTexture {
|
|
|
2555
2587
|
}
|
|
2556
2588
|
|
|
2557
2589
|
// @public (undocumented)
|
|
2558
|
-
export const UiBackground:
|
|
2590
|
+
export const UiBackground: LastWriteWinElementSetComponentDefinition<PBUiBackground>;
|
|
2559
2591
|
|
|
2560
2592
|
// @public
|
|
2561
2593
|
export interface UiBackgroundProps {
|
|
@@ -2577,7 +2609,7 @@ export interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
|
2577
2609
|
export type UiComponent = () => ReactEcs.JSX.Element;
|
|
2578
2610
|
|
|
2579
2611
|
// @public (undocumented)
|
|
2580
|
-
export const UiDropdown:
|
|
2612
|
+
export const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
|
|
2581
2613
|
|
|
2582
2614
|
// @public
|
|
2583
2615
|
export interface UiDropdownProps extends EntityPropTypes, Omit<Partial<PBUiDropdown>, 'textAlign' | 'font'> {
|
|
@@ -2590,18 +2622,20 @@ export interface UiDropdownProps extends EntityPropTypes, Omit<Partial<PBUiDropd
|
|
|
2590
2622
|
}
|
|
2591
2623
|
|
|
2592
2624
|
// @public (undocumented)
|
|
2593
|
-
export const UiDropdownResult:
|
|
2625
|
+
export const UiDropdownResult: LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>;
|
|
2594
2626
|
|
|
2595
2627
|
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@category" is not defined in this configuration
|
|
2596
2628
|
//
|
|
2597
2629
|
// @public
|
|
2598
|
-
export function UiEntity(props: EntityPropTypes
|
|
2630
|
+
export function UiEntity(props: EntityPropTypes & {
|
|
2631
|
+
uiText?: UiLabelProps;
|
|
2632
|
+
}): ReactEcs.JSX.Element;
|
|
2599
2633
|
|
|
2600
2634
|
// @public (undocumented)
|
|
2601
2635
|
export type UiFontType = 'sans-serif' | 'serif' | 'monospace';
|
|
2602
2636
|
|
|
2603
2637
|
// @public (undocumented)
|
|
2604
|
-
export const UiInput:
|
|
2638
|
+
export const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInput>;
|
|
2605
2639
|
|
|
2606
2640
|
// @public (undocumented)
|
|
2607
2641
|
export interface UiInputProps extends Omit<PBUiInput, 'font' | 'textAlign'> {
|
|
@@ -2613,7 +2647,7 @@ export interface UiInputProps extends Omit<PBUiInput, 'font' | 'textAlign'> {
|
|
|
2613
2647
|
}
|
|
2614
2648
|
|
|
2615
2649
|
// @public (undocumented)
|
|
2616
|
-
export const UiInputResult:
|
|
2650
|
+
export const UiInputResult: LastWriteWinElementSetComponentDefinition<PBUiInputResult>;
|
|
2617
2651
|
|
|
2618
2652
|
// @public
|
|
2619
2653
|
export interface UiLabelProps {
|
|
@@ -2628,7 +2662,7 @@ export interface UiLabelProps {
|
|
|
2628
2662
|
export type uint32 = number;
|
|
2629
2663
|
|
|
2630
2664
|
// @public (undocumented)
|
|
2631
|
-
export const UiText:
|
|
2665
|
+
export const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
2632
2666
|
|
|
2633
2667
|
// @public
|
|
2634
2668
|
export type UiTexture = {
|
|
@@ -2638,7 +2672,7 @@ export type UiTexture = {
|
|
|
2638
2672
|
};
|
|
2639
2673
|
|
|
2640
2674
|
// @public (undocumented)
|
|
2641
|
-
export const UiTransform:
|
|
2675
|
+
export const UiTransform: LastWriteWinElementSetComponentDefinition<PBUiTransform>;
|
|
2642
2676
|
|
|
2643
2677
|
// @public
|
|
2644
2678
|
export interface UiTransformProps {
|
|
@@ -2654,14 +2688,14 @@ export interface UiTransformProps {
|
|
|
2654
2688
|
flexWrap?: FlexWrapType;
|
|
2655
2689
|
height?: PositionUnit;
|
|
2656
2690
|
justifyContent?: JustifyType;
|
|
2657
|
-
margin?: Partial<Position
|
|
2691
|
+
margin?: Partial<Position> | PositionShorthand;
|
|
2658
2692
|
maxHeight?: PositionUnit;
|
|
2659
2693
|
maxWidth?: PositionUnit;
|
|
2660
2694
|
minHeight?: PositionUnit;
|
|
2661
2695
|
minWidth?: PositionUnit;
|
|
2662
2696
|
overflow?: OverflowType;
|
|
2663
|
-
padding?: Partial<Position
|
|
2664
|
-
position?: Partial<Position
|
|
2697
|
+
padding?: Partial<Position> | PositionShorthand;
|
|
2698
|
+
position?: Partial<Position> | PositionShorthand;
|
|
2665
2699
|
positionType?: PositionType;
|
|
2666
2700
|
width?: PositionUnit;
|
|
2667
2701
|
}
|
|
@@ -2669,6 +2703,12 @@ export interface UiTransformProps {
|
|
|
2669
2703
|
// @public (undocumented)
|
|
2670
2704
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
2671
2705
|
|
|
2706
|
+
// @public (undocumented)
|
|
2707
|
+
export type ValueSetOptions<T> = {
|
|
2708
|
+
timestampFunction: (value: DeepReadonly<T>) => number;
|
|
2709
|
+
maxElements: number;
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2672
2712
|
// @public
|
|
2673
2713
|
export type Vector3 = Vector3.ReadonlyVector3;
|
|
2674
2714
|
|
|
@@ -2773,7 +2813,7 @@ export type Vector3Type = {
|
|
|
2773
2813
|
};
|
|
2774
2814
|
|
|
2775
2815
|
// @public (undocumented)
|
|
2776
|
-
export const VideoPlayer:
|
|
2816
|
+
export const VideoPlayer: LastWriteWinElementSetComponentDefinition<PBVideoPlayer>;
|
|
2777
2817
|
|
|
2778
2818
|
// @public (undocumented)
|
|
2779
2819
|
export interface VideoTexture {
|
|
@@ -2784,7 +2824,7 @@ export interface VideoTexture {
|
|
|
2784
2824
|
}
|
|
2785
2825
|
|
|
2786
2826
|
// @public (undocumented)
|
|
2787
|
-
export const VisibilityComponent:
|
|
2827
|
+
export const VisibilityComponent: LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>;
|
|
2788
2828
|
|
|
2789
2829
|
// @public (undocumented)
|
|
2790
2830
|
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-
|
|
3
|
+
"version": "7.0.6-4180146485.commit-9a7dde9",
|
|
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-
|
|
20
|
+
"@dcl/sdk": "7.0.6-4180146485.commit-9a7dde9"
|
|
21
21
|
},
|
|
22
22
|
"minCliVersion": "3.12.3",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
25
|
"etc"
|
|
26
26
|
],
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "9a7dde903f381c1778ec3c7519e4f312ab9b2ee3"
|
|
28
28
|
}
|