@dcl/playground-assets 7.0.6-3807227301.commit-1045452 → 7.0.6-3808564125.commit-7a2650b
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 +267 -70
- package/dist/beta.d.ts +267 -70
- package/dist/index.bundled.d.ts +267 -70
- package/dist/index.js +936 -276
- 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 +2 -2
- package/dist/playground/snippets/info.json +1 -1
- package/dist/playground/snippets/pointer-events.ts +6 -4
- package/dist/playground/snippets/ui-backgrounds.tsx +192 -0
- package/dist/playground/snippets/ui-dropdown.tsx +32 -0
- package/dist/playground/snippets/ui.tsx +17 -14
- package/dist/playground-assets.d.ts +268 -71
- package/etc/playground-assets.api.json +2889 -882
- package/etc/playground-assets.api.md +251 -82
- package/package.json +3 -3
|
@@ -78,6 +78,15 @@ export const AvatarTexture: {
|
|
|
78
78
|
decode(input: _m0.Reader | Uint8Array, length?: number): AvatarTexture;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
// Warning: (ae-missing-release-tag) "BackgroundTextureMode" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
82
|
+
//
|
|
83
|
+
// @public (undocumented)
|
|
84
|
+
export const enum BackgroundTextureMode {
|
|
85
|
+
CENTER = 1,
|
|
86
|
+
NINE_SLICES = 0,
|
|
87
|
+
STRETCH = 2
|
|
88
|
+
}
|
|
89
|
+
|
|
81
90
|
// @public (undocumented)
|
|
82
91
|
export const Billboard: ComponentDefinition<PBBillboard>;
|
|
83
92
|
|
|
@@ -91,6 +100,30 @@ export const enum BillboardMode {
|
|
|
91
100
|
BM_Y_AXE = 1
|
|
92
101
|
}
|
|
93
102
|
|
|
103
|
+
// Warning: (ae-missing-release-tag) "BorderRect" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
104
|
+
// Warning: (ae-missing-release-tag) "BorderRect" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
105
|
+
//
|
|
106
|
+
// @public
|
|
107
|
+
export interface BorderRect {
|
|
108
|
+
// (undocumented)
|
|
109
|
+
bottom: number;
|
|
110
|
+
// (undocumented)
|
|
111
|
+
left: number;
|
|
112
|
+
// (undocumented)
|
|
113
|
+
right: number;
|
|
114
|
+
// (undocumented)
|
|
115
|
+
top: number;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// @public
|
|
119
|
+
export const BorderRect: {
|
|
120
|
+
encode(message: BorderRect, writer?: _m0.Writer): _m0.Writer;
|
|
121
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BorderRect;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// @public (undocumented)
|
|
125
|
+
export function Button(props: EntityPropTypes & UiButtonProps): ReactEcs.JSX.Element;
|
|
126
|
+
|
|
94
127
|
// @public (undocumented)
|
|
95
128
|
export type ByteBuffer = {
|
|
96
129
|
buffer(): Uint8Array;
|
|
@@ -150,6 +183,11 @@ export type ByteBuffer = {
|
|
|
150
183
|
setUint64(offset: number, value: bigint): void;
|
|
151
184
|
};
|
|
152
185
|
|
|
186
|
+
// Warning: (ae-missing-release-tag) "Callback" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
187
|
+
//
|
|
188
|
+
// @public (undocumented)
|
|
189
|
+
export type Callback = () => void;
|
|
190
|
+
|
|
153
191
|
// @public (undocumented)
|
|
154
192
|
export const CameraMode: ComponentDefinition<PBCameraMode>;
|
|
155
193
|
|
|
@@ -174,7 +212,7 @@ export const CANVAS_ROOT_ENTITY = 0;
|
|
|
174
212
|
// Warning: (ae-missing-release-tag) "Children" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
175
213
|
//
|
|
176
214
|
// @public (undocumented)
|
|
177
|
-
export type Children =
|
|
215
|
+
export type Children = unknown;
|
|
178
216
|
|
|
179
217
|
// Warning: (ae-missing-release-tag) "ColliderLayer" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
180
218
|
//
|
|
@@ -370,16 +408,6 @@ export type ComponentSchema<T extends [ComponentDefinition<any>, ...ComponentDef
|
|
|
370
408
|
[K in keyof T]: T[K] extends ComponentDefinition<any> ? ReturnType<T[K]['getMutable']> : never;
|
|
371
409
|
};
|
|
372
410
|
|
|
373
|
-
// 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)
|
|
374
|
-
//
|
|
375
|
-
// @public (undocumented)
|
|
376
|
-
export function Container({ width, height, children }: ContainerPropTypes): ReactEcs.JSX.Element;
|
|
377
|
-
|
|
378
|
-
// Warning: (ae-missing-release-tag) "ContainerPropTypes" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
379
|
-
//
|
|
380
|
-
// @public (undocumented)
|
|
381
|
-
export type ContainerPropTypes = Partial<CommonProps> & EntityPropTypes['uiTransform'];
|
|
382
|
-
|
|
383
411
|
// Warning: (ae-missing-release-tag) "createEthereumProvider" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
384
412
|
//
|
|
385
413
|
// @public (undocumented)
|
|
@@ -400,9 +428,9 @@ export function createPointerEventSystem(engine: IEngine, inputSystem: IInputSys
|
|
|
400
428
|
removeOnClick(entity: Entity): void;
|
|
401
429
|
removeOnPointerDown(entity: Entity): void;
|
|
402
430
|
removeOnPointerUp(entity: Entity): void;
|
|
403
|
-
onClick(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
404
|
-
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
405
|
-
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
431
|
+
onClick(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
432
|
+
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
433
|
+
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
406
434
|
};
|
|
407
435
|
|
|
408
436
|
// Warning: (ae-missing-release-tag) "createReactBasedUiSystem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
@@ -446,11 +474,14 @@ export function defineComponent<T>(componentId: number, spec: ISchema<T>): Compo
|
|
|
446
474
|
// @public
|
|
447
475
|
export const DEG2RAD: number;
|
|
448
476
|
|
|
477
|
+
// @public (undocumented)
|
|
478
|
+
export function Dropdown(props: EntityPropTypes & UiDropdownProps): ReactEcs.JSX.Element;
|
|
479
|
+
|
|
449
480
|
// Warning: (ae-missing-release-tag) "EcsElements" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
450
481
|
//
|
|
451
482
|
// @public (undocumented)
|
|
452
483
|
export type EcsElements = {
|
|
453
|
-
entity: Partial<
|
|
484
|
+
entity: Partial<EntityComponents & CommonProps>;
|
|
454
485
|
};
|
|
455
486
|
|
|
456
487
|
// @public (undocumented)
|
|
@@ -479,7 +510,10 @@ export type EntityComponents = {
|
|
|
479
510
|
uiTransform: PBUiTransform;
|
|
480
511
|
uiText: PBUiText;
|
|
481
512
|
uiBackground: PBUiBackground;
|
|
482
|
-
|
|
513
|
+
uiInput: PBUiInput;
|
|
514
|
+
uiDropdown: PBUiDropdown;
|
|
515
|
+
onMouseDown: Callback;
|
|
516
|
+
onMouseUp: Callback;
|
|
483
517
|
};
|
|
484
518
|
|
|
485
519
|
// Warning: (ae-missing-release-tag) "EntityContainer" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
@@ -495,9 +529,8 @@ export function EntityContainer(): {
|
|
|
495
529
|
// @public (undocumented)
|
|
496
530
|
export type EntityPropTypes = {
|
|
497
531
|
uiTransform?: UiTransformProps;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
};
|
|
532
|
+
uiBackground?: UiBackgroundProps;
|
|
533
|
+
} & Listeners;
|
|
501
534
|
|
|
502
535
|
// @public
|
|
503
536
|
export const Epsilon = 0.000001;
|
|
@@ -511,9 +544,10 @@ export type EventSystemCallback = (event: PBPointerEventsResult_PointerCommand)
|
|
|
511
544
|
//
|
|
512
545
|
// @public (undocumented)
|
|
513
546
|
export type EventSystemOptions = {
|
|
514
|
-
button
|
|
547
|
+
button: InputAction;
|
|
515
548
|
hoverText?: string;
|
|
516
549
|
maxDistance?: number;
|
|
550
|
+
showFeedback?: boolean;
|
|
517
551
|
};
|
|
518
552
|
|
|
519
553
|
// Warning: (ae-missing-release-tag) "ExcludeUndefined" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
@@ -800,6 +834,9 @@ export type IncludeUndefined<T> = {
|
|
|
800
834
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
|
801
835
|
}[keyof T];
|
|
802
836
|
|
|
837
|
+
// @public (undocumented)
|
|
838
|
+
export function Input(props: EntityPropTypes & Partial<UiInputProps>): ReactEcs.JSX.Element;
|
|
839
|
+
|
|
803
840
|
// Warning: (ae-missing-release-tag) "InputAction" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
804
841
|
//
|
|
805
842
|
// @public (undocumented)
|
|
@@ -870,7 +907,7 @@ export type ISchema<T = any> = {
|
|
|
870
907
|
// 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)
|
|
871
908
|
//
|
|
872
909
|
// @public (undocumented)
|
|
873
|
-
export const isListener: (key: string) => key is
|
|
910
|
+
export const isListener: (key: string) => key is keyof Listeners;
|
|
874
911
|
|
|
875
912
|
// Warning: (ae-missing-release-tag) "JSX" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
876
913
|
//
|
|
@@ -880,8 +917,7 @@ export namespace JSX {
|
|
|
880
917
|
export interface Component {
|
|
881
918
|
}
|
|
882
919
|
// (undocumented)
|
|
883
|
-
export
|
|
884
|
-
}
|
|
920
|
+
export type Element = {} | null;
|
|
885
921
|
// (undocumented)
|
|
886
922
|
export type IntrinsicElements = EcsElements;
|
|
887
923
|
}
|
|
@@ -891,11 +927,15 @@ export namespace JSX {
|
|
|
891
927
|
// @public (undocumented)
|
|
892
928
|
export type Key = number | string;
|
|
893
929
|
|
|
930
|
+
// @public (undocumented)
|
|
931
|
+
export function Label(props: EntityPropTypes & UiTextProps): ReactEcs.JSX.Element;
|
|
932
|
+
|
|
894
933
|
// Warning: (ae-missing-release-tag) "Listeners" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
895
934
|
//
|
|
896
935
|
// @public (undocumented)
|
|
897
936
|
export type Listeners = {
|
|
898
|
-
|
|
937
|
+
onMouseDown?: Callback;
|
|
938
|
+
onMouseUp?: Callback;
|
|
899
939
|
};
|
|
900
940
|
|
|
901
941
|
// 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)
|
|
@@ -1856,6 +1896,55 @@ export const PBNftShape: {
|
|
|
1856
1896
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
1857
1897
|
};
|
|
1858
1898
|
|
|
1899
|
+
// Warning: (ae-missing-release-tag) "PBPointerEvents" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1900
|
+
// Warning: (ae-missing-release-tag) "PBPointerEvents" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1901
|
+
//
|
|
1902
|
+
// @public (undocumented)
|
|
1903
|
+
export interface PBPointerEvents {
|
|
1904
|
+
// (undocumented)
|
|
1905
|
+
pointerEvents: PBPointerEvents_Entry[];
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
// @public
|
|
1909
|
+
export const PBPointerEvents: {
|
|
1910
|
+
encode(message: PBPointerEvents, writer?: _m0.Writer): _m0.Writer;
|
|
1911
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents;
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1914
|
+
// Warning: (ae-missing-release-tag) "PBPointerEvents_Entry" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1915
|
+
// Warning: (ae-missing-release-tag) "PBPointerEvents_Entry" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1916
|
+
//
|
|
1917
|
+
// @public (undocumented)
|
|
1918
|
+
export interface PBPointerEvents_Entry {
|
|
1919
|
+
// (undocumented)
|
|
1920
|
+
eventInfo: PBPointerEvents_Info | undefined;
|
|
1921
|
+
// (undocumented)
|
|
1922
|
+
eventType: PointerEventType;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
// @public
|
|
1926
|
+
export const PBPointerEvents_Entry: {
|
|
1927
|
+
encode(message: PBPointerEvents_Entry, writer?: _m0.Writer): _m0.Writer;
|
|
1928
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Entry;
|
|
1929
|
+
};
|
|
1930
|
+
|
|
1931
|
+
// Warning: (ae-missing-release-tag) "PBPointerEvents_Info" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1932
|
+
// Warning: (ae-missing-release-tag) "PBPointerEvents_Info" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1933
|
+
//
|
|
1934
|
+
// @public (undocumented)
|
|
1935
|
+
export interface PBPointerEvents_Info {
|
|
1936
|
+
button?: InputAction | undefined;
|
|
1937
|
+
hoverText?: string | undefined;
|
|
1938
|
+
maxDistance?: number | undefined;
|
|
1939
|
+
showFeedback?: boolean | undefined;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
// @public
|
|
1943
|
+
export const PBPointerEvents_Info: {
|
|
1944
|
+
encode(message: PBPointerEvents_Info, writer?: _m0.Writer): _m0.Writer;
|
|
1945
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Info;
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1859
1948
|
// Warning: (ae-missing-release-tag) "PBPointerEventsResult" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1860
1949
|
// Warning: (ae-missing-release-tag) "PBPointerEventsResult" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1861
1950
|
//
|
|
@@ -1890,55 +1979,6 @@ export const PBPointerEventsResult_PointerCommand: {
|
|
|
1890
1979
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult_PointerCommand;
|
|
1891
1980
|
};
|
|
1892
1981
|
|
|
1893
|
-
// Warning: (ae-missing-release-tag) "PBPointerHoverFeedback" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1894
|
-
// Warning: (ae-missing-release-tag) "PBPointerHoverFeedback" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1895
|
-
//
|
|
1896
|
-
// @public (undocumented)
|
|
1897
|
-
export interface PBPointerHoverFeedback {
|
|
1898
|
-
// (undocumented)
|
|
1899
|
-
pointerEvents: PBPointerHoverFeedback_Entry[];
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
// @public
|
|
1903
|
-
export const PBPointerHoverFeedback: {
|
|
1904
|
-
encode(message: PBPointerHoverFeedback, writer?: _m0.Writer): _m0.Writer;
|
|
1905
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerHoverFeedback;
|
|
1906
|
-
};
|
|
1907
|
-
|
|
1908
|
-
// Warning: (ae-missing-release-tag) "PBPointerHoverFeedback_Entry" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1909
|
-
// Warning: (ae-missing-release-tag) "PBPointerHoverFeedback_Entry" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1910
|
-
//
|
|
1911
|
-
// @public (undocumented)
|
|
1912
|
-
export interface PBPointerHoverFeedback_Entry {
|
|
1913
|
-
// (undocumented)
|
|
1914
|
-
eventInfo: PBPointerHoverFeedback_Info | undefined;
|
|
1915
|
-
// (undocumented)
|
|
1916
|
-
eventType: PointerEventType;
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
// @public
|
|
1920
|
-
export const PBPointerHoverFeedback_Entry: {
|
|
1921
|
-
encode(message: PBPointerHoverFeedback_Entry, writer?: _m0.Writer): _m0.Writer;
|
|
1922
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerHoverFeedback_Entry;
|
|
1923
|
-
};
|
|
1924
|
-
|
|
1925
|
-
// Warning: (ae-missing-release-tag) "PBPointerHoverFeedback_Info" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1926
|
-
// Warning: (ae-missing-release-tag) "PBPointerHoverFeedback_Info" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1927
|
-
//
|
|
1928
|
-
// @public (undocumented)
|
|
1929
|
-
export interface PBPointerHoverFeedback_Info {
|
|
1930
|
-
button?: InputAction | undefined;
|
|
1931
|
-
hoverText?: string | undefined;
|
|
1932
|
-
maxDistance?: number | undefined;
|
|
1933
|
-
showFeedback?: boolean | undefined;
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
// @public
|
|
1937
|
-
export const PBPointerHoverFeedback_Info: {
|
|
1938
|
-
encode(message: PBPointerHoverFeedback_Info, writer?: _m0.Writer): _m0.Writer;
|
|
1939
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerHoverFeedback_Info;
|
|
1940
|
-
};
|
|
1941
|
-
|
|
1942
1982
|
// Warning: (ae-missing-release-tag) "PBPointerLock" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1943
1983
|
// Warning: (ae-missing-release-tag) "PBPointerLock" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1944
1984
|
//
|
|
@@ -2064,7 +2104,13 @@ export const PBTextShape: {
|
|
|
2064
2104
|
//
|
|
2065
2105
|
// @public (undocumented)
|
|
2066
2106
|
export interface PBUiBackground {
|
|
2067
|
-
|
|
2107
|
+
color?: PBColor4 | undefined;
|
|
2108
|
+
// (undocumented)
|
|
2109
|
+
texture?: TextureUnion | undefined;
|
|
2110
|
+
// (undocumented)
|
|
2111
|
+
textureMode: BackgroundTextureMode;
|
|
2112
|
+
textureSlices?: BorderRect | undefined;
|
|
2113
|
+
uvs: number[];
|
|
2068
2114
|
}
|
|
2069
2115
|
|
|
2070
2116
|
// @public
|
|
@@ -2073,6 +2119,84 @@ export const PBUiBackground: {
|
|
|
2073
2119
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
2074
2120
|
};
|
|
2075
2121
|
|
|
2122
|
+
// Warning: (ae-missing-release-tag) "PBUiDropdown" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2123
|
+
// Warning: (ae-missing-release-tag) "PBUiDropdown" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2124
|
+
//
|
|
2125
|
+
// @public (undocumented)
|
|
2126
|
+
export interface PBUiDropdown {
|
|
2127
|
+
// (undocumented)
|
|
2128
|
+
acceptEmpty: boolean;
|
|
2129
|
+
color?: PBColor4 | undefined;
|
|
2130
|
+
// (undocumented)
|
|
2131
|
+
disabled: boolean;
|
|
2132
|
+
// (undocumented)
|
|
2133
|
+
emptyLabel?: string | undefined;
|
|
2134
|
+
font?: Font | undefined;
|
|
2135
|
+
fontSize?: number | undefined;
|
|
2136
|
+
// (undocumented)
|
|
2137
|
+
options: string[];
|
|
2138
|
+
selectedIndex?: number | undefined;
|
|
2139
|
+
textAlign?: TextAlignMode | undefined;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
// @public
|
|
2143
|
+
export const PBUiDropdown: {
|
|
2144
|
+
encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
|
|
2145
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
|
|
2146
|
+
};
|
|
2147
|
+
|
|
2148
|
+
// Warning: (ae-missing-release-tag) "PBUiDropdownResult" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2149
|
+
// Warning: (ae-missing-release-tag) "PBUiDropdownResult" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2150
|
+
//
|
|
2151
|
+
// @public (undocumented)
|
|
2152
|
+
export interface PBUiDropdownResult {
|
|
2153
|
+
// (undocumented)
|
|
2154
|
+
value: number;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
// @public
|
|
2158
|
+
export const PBUiDropdownResult: {
|
|
2159
|
+
encode(message: PBUiDropdownResult, writer?: _m0.Writer): _m0.Writer;
|
|
2160
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdownResult;
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
// Warning: (ae-missing-release-tag) "PBUiInput" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2164
|
+
// Warning: (ae-missing-release-tag) "PBUiInput" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2165
|
+
//
|
|
2166
|
+
// @public (undocumented)
|
|
2167
|
+
export interface PBUiInput {
|
|
2168
|
+
color?: PBColor4 | undefined;
|
|
2169
|
+
// (undocumented)
|
|
2170
|
+
disabled: boolean;
|
|
2171
|
+
font?: Font | undefined;
|
|
2172
|
+
fontSize?: number | undefined;
|
|
2173
|
+
// (undocumented)
|
|
2174
|
+
placeholder: string;
|
|
2175
|
+
placeholderColor?: PBColor4 | undefined;
|
|
2176
|
+
textAlign?: TextAlignMode | undefined;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
// @public
|
|
2180
|
+
export const PBUiInput: {
|
|
2181
|
+
encode(message: PBUiInput, writer?: _m0.Writer): _m0.Writer;
|
|
2182
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
// Warning: (ae-missing-release-tag) "PBUiInputResult" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2186
|
+
// Warning: (ae-missing-release-tag) "PBUiInputResult" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2187
|
+
//
|
|
2188
|
+
// @public (undocumented)
|
|
2189
|
+
export interface PBUiInputResult {
|
|
2190
|
+
// (undocumented)
|
|
2191
|
+
value: string;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
// @public
|
|
2195
|
+
export const PBUiInputResult: {
|
|
2196
|
+
encode(message: PBUiInputResult, writer?: _m0.Writer): _m0.Writer;
|
|
2197
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2076
2200
|
// Warning: (ae-missing-release-tag) "PBUiText" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2077
2201
|
// Warning: (ae-missing-release-tag) "PBUiText" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2078
2202
|
//
|
|
@@ -2262,6 +2386,9 @@ export namespace Plane {
|
|
|
2262
2386
|
export function transform(plane: ReadonlyPlane, transformation: Matrix.ReadonlyMatrix): MutablePlane;
|
|
2263
2387
|
}
|
|
2264
2388
|
|
|
2389
|
+
// @public (undocumented)
|
|
2390
|
+
export const PointerEvents: ComponentDefinition<PBPointerEvents>;
|
|
2391
|
+
|
|
2265
2392
|
// @public (undocumented)
|
|
2266
2393
|
export const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
|
|
2267
2394
|
|
|
@@ -2277,9 +2404,9 @@ export const pointerEventsSystem: {
|
|
|
2277
2404
|
removeOnClick(entity: unknown): void;
|
|
2278
2405
|
removeOnPointerDown(entity: unknown): void;
|
|
2279
2406
|
removeOnPointerUp(entity: unknown): void;
|
|
2280
|
-
onClick(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
2281
|
-
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
2282
|
-
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
2407
|
+
onClick(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
2408
|
+
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
2409
|
+
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
2283
2410
|
};
|
|
2284
2411
|
|
|
2285
2412
|
// Warning: (ae-missing-release-tag) "PointerEventType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
@@ -2296,9 +2423,6 @@ export const enum PointerEventType {
|
|
|
2296
2423
|
PET_UP = 0
|
|
2297
2424
|
}
|
|
2298
2425
|
|
|
2299
|
-
// @public (undocumented)
|
|
2300
|
-
export const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
|
|
2301
|
-
|
|
2302
2426
|
// @public (undocumented)
|
|
2303
2427
|
export const PointerLock: ComponentDefinition<PBPointerLock>;
|
|
2304
2428
|
|
|
@@ -2447,8 +2571,7 @@ export namespace ReactEcs {
|
|
|
2447
2571
|
export interface Component {
|
|
2448
2572
|
}
|
|
2449
2573
|
// (undocumented)
|
|
2450
|
-
export
|
|
2451
|
-
}
|
|
2574
|
+
export type Element = {} | null;
|
|
2452
2575
|
// (undocumented)
|
|
2453
2576
|
export type IntrinsicElements = EcsElements;
|
|
2454
2577
|
}
|
|
@@ -2745,20 +2868,66 @@ export type Transport = {
|
|
|
2745
2868
|
// @public (undocumented)
|
|
2746
2869
|
export type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
2747
2870
|
|
|
2871
|
+
// @public (undocumented)
|
|
2872
|
+
export type UiAvatarTexture = {
|
|
2873
|
+
avatarTexture?: AvatarTexture;
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2748
2876
|
// @public (undocumented)
|
|
2749
2877
|
export const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
2750
2878
|
|
|
2879
|
+
// @public (undocumented)
|
|
2880
|
+
export type UiBackgroundProps = Partial<Omit<PBUiBackground, 'texture'>> & UiTextureUnion;
|
|
2881
|
+
|
|
2882
|
+
// @public (undocumented)
|
|
2883
|
+
export type UiButtonProps = PBUiText & {
|
|
2884
|
+
type?: 'primary' | 'secondary';
|
|
2885
|
+
};
|
|
2886
|
+
|
|
2751
2887
|
// 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)
|
|
2752
2888
|
//
|
|
2753
2889
|
// @public (undocumented)
|
|
2754
2890
|
export type UiComponent = () => JSX.Element;
|
|
2755
2891
|
|
|
2892
|
+
// @public (undocumented)
|
|
2893
|
+
export const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
2894
|
+
|
|
2895
|
+
// @public (undocumented)
|
|
2896
|
+
export type UiDropdownProps = Partial<PBUiDropdown> & {
|
|
2897
|
+
onChange?(value: number): void;
|
|
2898
|
+
};
|
|
2899
|
+
|
|
2900
|
+
// @public (undocumented)
|
|
2901
|
+
export const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
2902
|
+
|
|
2756
2903
|
// @public (undocumented)
|
|
2757
2904
|
export function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
2758
2905
|
|
|
2906
|
+
// @public (undocumented)
|
|
2907
|
+
export const UiInput: ComponentDefinition<PBUiInput>;
|
|
2908
|
+
|
|
2909
|
+
// @public (undocumented)
|
|
2910
|
+
export type UiInputProps = PBUiInput & {
|
|
2911
|
+
onChange?(value: string): void;
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
// @public (undocumented)
|
|
2915
|
+
export const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
2916
|
+
|
|
2759
2917
|
// @public (undocumented)
|
|
2760
2918
|
export const UiText: ComponentDefinition<PBUiText>;
|
|
2761
2919
|
|
|
2920
|
+
// @public (undocumented)
|
|
2921
|
+
export type UiTextProps = PBUiText;
|
|
2922
|
+
|
|
2923
|
+
// @public (undocumented)
|
|
2924
|
+
export type UiTexture = {
|
|
2925
|
+
texture?: Texture;
|
|
2926
|
+
};
|
|
2927
|
+
|
|
2928
|
+
// @public (undocumented)
|
|
2929
|
+
export type UiTextureUnion = UiAvatarTexture | UiTexture;
|
|
2930
|
+
|
|
2762
2931
|
// @public (undocumented)
|
|
2763
2932
|
export const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
2764
2933
|
|
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-3808564125.commit-7a2650b",
|
|
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-3808564125.commit-7a2650b"
|
|
21
21
|
},
|
|
22
22
|
"minCliVersion": "3.12.3",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
25
|
"etc"
|
|
26
26
|
],
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "7a2650b741ac5f5a5d3f00ac1c955e5f773d679a"
|
|
28
28
|
}
|