@dcl/playground-assets 7.5.1-9299912306.commit-7629bda → 7.5.1-9349876127.commit-ca3ef96
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 +35 -108
- package/dist/beta.d.ts +35 -108
- package/dist/index.bundled.d.ts +35 -108
- package/dist/index.js +6 -5
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +35 -108
- package/etc/playground-assets.api.json +357 -1241
- package/etc/playground-assets.api.md +29 -73
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.5.1-
|
4
|
+
"version": "7.5.1-9349876127.commit-ca3ef96",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"dependencies": {
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
@@ -35,5 +35,5 @@
|
|
35
35
|
},
|
36
36
|
"types": "./index.d.ts",
|
37
37
|
"typings": "./index.d.ts",
|
38
|
-
"commit": "
|
38
|
+
"commit": "ca3ef964cedc719294f9794e0a8584c3d1e132ca"
|
39
39
|
}
|
@@ -177,18 +177,6 @@ export declare const AvatarAttach: LastWriteWinElementSetComponentDefinition<PBA
|
|
177
177
|
/** @public */
|
178
178
|
export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
|
179
179
|
|
180
|
-
/**
|
181
|
-
* @public
|
182
|
-
*/
|
183
|
-
export declare const enum AvatarControlType {
|
184
|
-
/** CCT_NONE - avatar cannot move */
|
185
|
-
CCT_NONE = 0,
|
186
|
-
/** CCT_RELATIVE - avatar moves relative to the camera origin */
|
187
|
-
CCT_RELATIVE = 1,
|
188
|
-
/** CCT_TANK - avatar moves like a tank: left/right rotate the player, forward/backward advance/retreat the player */
|
189
|
-
CCT_TANK = 2
|
190
|
-
}
|
191
|
-
|
192
180
|
/** @public */
|
193
181
|
export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
194
182
|
|
@@ -209,37 +197,6 @@ export declare const enum AvatarModifierType {
|
|
209
197
|
AMT_DISABLE_PASSPORTS = 1
|
210
198
|
}
|
211
199
|
|
212
|
-
/**
|
213
|
-
* @public
|
214
|
-
*/
|
215
|
-
export declare interface AvatarMovementSettings {
|
216
|
-
controlMode?: AvatarControlType | undefined;
|
217
|
-
/** if not explicitly set, the following properties default to user's preference settings */
|
218
|
-
runSpeed?: number | undefined;
|
219
|
-
/** how fast the player gets up to speed or comes to rest. higher = more responsive */
|
220
|
-
friction?: number | undefined;
|
221
|
-
/** how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative */
|
222
|
-
gravity?: number | undefined;
|
223
|
-
/** how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible */
|
224
|
-
jumpHeight?: number | undefined;
|
225
|
-
/** max fall speed in m/s. should normally be negative */
|
226
|
-
maxFallSpeed?: number | undefined;
|
227
|
-
/** speed the player turns in tank mode, in radians/s */
|
228
|
-
turnSpeed?: number | undefined;
|
229
|
-
/** speed the player walks at, in m/s */
|
230
|
-
walkSpeed?: number | undefined;
|
231
|
-
/** whether to allow player to move at a slower speed (e.g. with a walk-key or when using a gamepad/joystick). defaults to true */
|
232
|
-
allowWeightedMovement?: boolean | undefined;
|
233
|
-
}
|
234
|
-
|
235
|
-
/**
|
236
|
-
* @public
|
237
|
-
*/
|
238
|
-
export declare namespace AvatarMovementSettings {
|
239
|
-
export function encode(message: AvatarMovementSettings, writer?: _m0.Writer): _m0.Writer;
|
240
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
|
241
|
-
}
|
242
|
-
|
243
200
|
/** @public */
|
244
201
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
245
202
|
|
@@ -520,40 +477,7 @@ export declare const enum CameraType {
|
|
520
477
|
CT_CINEMATIC = 2
|
521
478
|
}
|
522
479
|
|
523
|
-
export declare type Children =
|
524
|
-
|
525
|
-
/**
|
526
|
-
* @public
|
527
|
-
*/
|
528
|
-
export declare interface CinematicSettings {
|
529
|
-
/** Entity that defines the cinematic camera transform. */
|
530
|
-
cameraEntity: number;
|
531
|
-
/**
|
532
|
-
* Position -> camera's position
|
533
|
-
* Rotation -> camera's direction
|
534
|
-
* scale.z -> zoom level
|
535
|
-
* scale.x and scale.y -> unused
|
536
|
-
*/
|
537
|
-
allowManualRotation?: boolean | undefined;
|
538
|
-
/** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
|
539
|
-
yawRange?: number | undefined;
|
540
|
-
/** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
|
541
|
-
pitchRange?: number | undefined;
|
542
|
-
/** note: cameras can never look up/down further than Vec3::Y */
|
543
|
-
rollRange?: number | undefined;
|
544
|
-
/** minimum zoom level. must be greater than 0. defaults to the input zoom level */
|
545
|
-
zoomMin?: number | undefined;
|
546
|
-
/** maximum zoom level. must be greater than 0. defaults to the input zoom level */
|
547
|
-
zoomMax?: number | undefined;
|
548
|
-
}
|
549
|
-
|
550
|
-
/**
|
551
|
-
* @public
|
552
|
-
*/
|
553
|
-
export declare namespace CinematicSettings {
|
554
|
-
export function encode(message: CinematicSettings, writer?: _m0.Writer): _m0.Writer;
|
555
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings;
|
556
|
-
}
|
480
|
+
export declare type Children = ReactNode;
|
557
481
|
|
558
482
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
559
483
|
/**
|
@@ -1860,7 +1784,7 @@ export declare const enum EasingFunction {
|
|
1860
1784
|
*/
|
1861
1785
|
export declare interface EcsElements {
|
1862
1786
|
entity: Partial<EntityComponents> & {
|
1863
|
-
children?:
|
1787
|
+
children?: ReactNode;
|
1864
1788
|
key?: Key;
|
1865
1789
|
};
|
1866
1790
|
}
|
@@ -2559,12 +2483,19 @@ export declare type JsonSchemaExtended = {
|
|
2559
2483
|
* @hidden
|
2560
2484
|
*/
|
2561
2485
|
export declare namespace JSX {
|
2562
|
-
export
|
2563
|
-
|
2486
|
+
export interface Element extends ReactElement<any, any> {
|
2487
|
+
}
|
2488
|
+
export interface IntrinsicElements extends EcsElements {
|
2489
|
+
}
|
2564
2490
|
export interface Component {
|
2565
2491
|
}
|
2566
2492
|
}
|
2567
2493
|
|
2494
|
+
/**
|
2495
|
+
* @public
|
2496
|
+
*/
|
2497
|
+
export declare type JSXElementConstructor<P> = (props: P) => ReactElement<any, any> | null;
|
2498
|
+
|
2568
2499
|
/**
|
2569
2500
|
* @public
|
2570
2501
|
*/
|
@@ -4232,9 +4163,6 @@ export declare interface PBAvatarModifierArea {
|
|
4232
4163
|
excludeIds: string[];
|
4233
4164
|
/** list of modifiers to apply */
|
4234
4165
|
modifiers: AvatarModifierType[];
|
4235
|
-
movementSettings?: AvatarMovementSettings | undefined;
|
4236
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4237
|
-
useColliderRange?: boolean | undefined;
|
4238
4166
|
}
|
4239
4167
|
|
4240
4168
|
/**
|
@@ -4347,7 +4275,7 @@ export declare namespace PBCameraMode {
|
|
4347
4275
|
|
4348
4276
|
/**
|
4349
4277
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4350
|
-
* the player's camera mode (1st-person
|
4278
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
4351
4279
|
*
|
4352
4280
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4353
4281
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4357,8 +4285,6 @@ export declare namespace PBCameraMode {
|
|
4357
4285
|
*
|
4358
4286
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4359
4287
|
* is actually a 3D volume.
|
4360
|
-
*
|
4361
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4362
4288
|
*/
|
4363
4289
|
/**
|
4364
4290
|
* @public
|
@@ -4368,9 +4294,6 @@ export declare interface PBCameraModeArea {
|
|
4368
4294
|
area: PBVector3 | undefined;
|
4369
4295
|
/** the camera mode to enforce */
|
4370
4296
|
mode: CameraType;
|
4371
|
-
cinematicSettings?: CinematicSettings | undefined;
|
4372
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4373
|
-
useColliderRange?: boolean | undefined;
|
4374
4297
|
}
|
4375
4298
|
|
4376
4299
|
/**
|
@@ -5366,12 +5289,6 @@ export declare interface PBUiText {
|
|
5366
5289
|
font?: Font | undefined;
|
5367
5290
|
/** size of the text (default: 10) */
|
5368
5291
|
fontSize?: number | undefined;
|
5369
|
-
/** width of the outline (default: 0) */
|
5370
|
-
outlineWidth?: number | undefined;
|
5371
|
-
/** RGBA color of the outline (default: opaque black) */
|
5372
|
-
outlineColor?: PBColor4 | undefined;
|
5373
|
-
/** wrap text when the border is reached (default false) */
|
5374
|
-
textWrapping?: boolean | undefined;
|
5375
5292
|
}
|
5376
5293
|
|
5377
5294
|
/**
|
@@ -5468,8 +5385,6 @@ export declare interface PBUiTransform {
|
|
5468
5385
|
paddingBottom: number;
|
5469
5386
|
/** default: PointerFilterMode.PFM_NONE */
|
5470
5387
|
pointerFilter?: PointerFilterMode | undefined;
|
5471
|
-
/** default: 1 */
|
5472
|
-
opacity?: number | undefined;
|
5473
5388
|
}
|
5474
5389
|
|
5475
5390
|
/**
|
@@ -6390,12 +6305,18 @@ export declare namespace ReactEcs {
|
|
6390
6305
|
/**
|
6391
6306
|
* @public
|
6392
6307
|
*/
|
6393
|
-
export type
|
6308
|
+
export type ReactNode = ReactElement | string | number | boolean | null | undefined | ReactElement[];
|
6309
|
+
/**
|
6310
|
+
* @public
|
6311
|
+
*/
|
6312
|
+
export interface Element extends ReactElement<any, any> {
|
6313
|
+
}
|
6394
6314
|
/**
|
6395
6315
|
* @public
|
6396
6316
|
* HTML tag elements
|
6397
6317
|
*/
|
6398
|
-
export
|
6318
|
+
export interface IntrinsicElements extends EcsElements {
|
6319
|
+
}
|
6399
6320
|
/**
|
6400
6321
|
* @public
|
6401
6322
|
* Component empty interface
|
@@ -6415,6 +6336,20 @@ export declare namespace ReactEcs {
|
|
6415
6336
|
*/
|
6416
6337
|
export declare const ReactEcsRenderer: ReactBasedUiSystem;
|
6417
6338
|
|
6339
|
+
/**
|
6340
|
+
* @public
|
6341
|
+
*/
|
6342
|
+
export declare interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
|
6343
|
+
type: T;
|
6344
|
+
props: P;
|
6345
|
+
key: Key | null;
|
6346
|
+
}
|
6347
|
+
|
6348
|
+
/**
|
6349
|
+
* @public
|
6350
|
+
*/
|
6351
|
+
export declare type ReactNode = ReactElement | string | number | boolean | null | undefined;
|
6352
|
+
|
6418
6353
|
/**
|
6419
6354
|
* @public
|
6420
6355
|
*/
|
@@ -7172,7 +7107,7 @@ export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinit
|
|
7172
7107
|
/**
|
7173
7108
|
* @public
|
7174
7109
|
*/
|
7175
|
-
export declare type UiComponent = () => ReactEcs.JSX.
|
7110
|
+
export declare type UiComponent = () => ReactEcs.JSX.ReactNode;
|
7176
7111
|
|
7177
7112
|
/** @public */
|
7178
7113
|
export declare const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
|
@@ -7238,12 +7173,6 @@ export declare interface UiLabelProps {
|
|
7238
7173
|
textAlign?: TextAlignType | undefined;
|
7239
7174
|
/** Label font type. @defaultValue 'sans-serif' */
|
7240
7175
|
font?: UiFontType | undefined;
|
7241
|
-
/** Outline width of the text. @defaultValue 0 */
|
7242
|
-
outlineWidth?: number | undefined;
|
7243
|
-
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
7244
|
-
outlineColor?: PBColor4 | undefined;
|
7245
|
-
/** Text wrapping. @defaultValue false */
|
7246
|
-
textWrapping?: boolean | undefined;
|
7247
7176
|
}
|
7248
7177
|
|
7249
7178
|
/**
|
@@ -7318,8 +7247,6 @@ export declare interface UiTransformProps {
|
|
7318
7247
|
overflow?: OverflowType;
|
7319
7248
|
/** The pointer filter property determines if the ui element blocks the pointer or not (elements with pointer events always block the pointer regardless of this property) **/
|
7320
7249
|
pointerFilter?: PointerFilterType;
|
7321
|
-
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
7322
|
-
opacity?: number;
|
7323
7250
|
}
|
7324
7251
|
|
7325
7252
|
/**
|