@dcl/playground-assets 7.5.1-9299912306.commit-7629bda → 7.5.1-9350870029.commit-b66059d

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 CHANGED
@@ -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 = unknown;
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?: 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 type Element = {} | null;
2563
- export type IntrinsicElements = EcsElements;
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, 3rd-person or cinematic) is overridden.
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 Element = {} | null;
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 type IntrinsicElements = EcsElements;
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.Element;
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
  /**
package/dist/beta.d.ts CHANGED
@@ -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 = unknown;
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?: Children;
1787
+ children?: ReactNode;
1864
1788
  key?: Key;
1865
1789
  };
1866
1790
  }
@@ -2550,12 +2474,19 @@ export declare type JsonSchemaExtended = {
2550
2474
  * @hidden
2551
2475
  */
2552
2476
  export declare namespace JSX {
2553
- export type Element = {} | null;
2554
- export type IntrinsicElements = EcsElements;
2477
+ export interface Element extends ReactElement<any, any> {
2478
+ }
2479
+ export interface IntrinsicElements extends EcsElements {
2480
+ }
2555
2481
  export interface Component {
2556
2482
  }
2557
2483
  }
2558
2484
 
2485
+ /**
2486
+ * @public
2487
+ */
2488
+ export declare type JSXElementConstructor<P> = (props: P) => ReactElement<any, any> | null;
2489
+
2559
2490
  /**
2560
2491
  * @public
2561
2492
  */
@@ -4204,9 +4135,6 @@ export declare interface PBAvatarModifierArea {
4204
4135
  excludeIds: string[];
4205
4136
  /** list of modifiers to apply */
4206
4137
  modifiers: AvatarModifierType[];
4207
- movementSettings?: AvatarMovementSettings | undefined;
4208
- /** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
4209
- useColliderRange?: boolean | undefined;
4210
4138
  }
4211
4139
 
4212
4140
  /**
@@ -4319,7 +4247,7 @@ export declare namespace PBCameraMode {
4319
4247
 
4320
4248
  /**
4321
4249
  * The CameraModeArea component can be attached to an Entity to define a region of space where
4322
- * the player's camera mode (1st-person, 3rd-person or cinematic) is overridden.
4250
+ * the player's camera mode (1st-person or 3rd-person) is overridden.
4323
4251
  *
4324
4252
  * The Entity's Transform position determines the center-point of the region, while its size is
4325
4253
  * given as a vector in the `area` property below. The Transform rotation is applied, but the scale
@@ -4329,8 +4257,6 @@ export declare namespace PBCameraMode {
4329
4257
  *
4330
4258
  * Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
4331
4259
  * is actually a 3D volume.
4332
- *
4333
- * When mode is set to CtCinematic, the cinematic_settings field must also be provided.
4334
4260
  */
4335
4261
  /**
4336
4262
  * @public
@@ -4340,9 +4266,6 @@ export declare interface PBCameraModeArea {
4340
4266
  area: PBVector3 | undefined;
4341
4267
  /** the camera mode to enforce */
4342
4268
  mode: CameraType;
4343
- cinematicSettings?: CinematicSettings | undefined;
4344
- /** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
4345
- useColliderRange?: boolean | undefined;
4346
4269
  }
4347
4270
 
4348
4271
  /**
@@ -5338,12 +5261,6 @@ export declare interface PBUiText {
5338
5261
  font?: Font | undefined;
5339
5262
  /** size of the text (default: 10) */
5340
5263
  fontSize?: number | undefined;
5341
- /** width of the outline (default: 0) */
5342
- outlineWidth?: number | undefined;
5343
- /** RGBA color of the outline (default: opaque black) */
5344
- outlineColor?: PBColor4 | undefined;
5345
- /** wrap text when the border is reached (default false) */
5346
- textWrapping?: boolean | undefined;
5347
5264
  }
5348
5265
 
5349
5266
  /**
@@ -5440,8 +5357,6 @@ export declare interface PBUiTransform {
5440
5357
  paddingBottom: number;
5441
5358
  /** default: PointerFilterMode.PFM_NONE */
5442
5359
  pointerFilter?: PointerFilterMode | undefined;
5443
- /** default: 1 */
5444
- opacity?: number | undefined;
5445
5360
  }
5446
5361
 
5447
5362
  /**
@@ -6362,12 +6277,18 @@ export declare namespace ReactEcs {
6362
6277
  /**
6363
6278
  * @public
6364
6279
  */
6365
- export type Element = {} | null;
6280
+ export type ReactNode = ReactElement | string | number | boolean | null | undefined | ReactElement[];
6281
+ /**
6282
+ * @public
6283
+ */
6284
+ export interface Element extends ReactElement<any, any> {
6285
+ }
6366
6286
  /**
6367
6287
  * @public
6368
6288
  * HTML tag elements
6369
6289
  */
6370
- export type IntrinsicElements = EcsElements;
6290
+ export interface IntrinsicElements extends EcsElements {
6291
+ }
6371
6292
  /**
6372
6293
  * @public
6373
6294
  * Component empty interface
@@ -6387,6 +6308,20 @@ export declare namespace ReactEcs {
6387
6308
  */
6388
6309
  export declare const ReactEcsRenderer: ReactBasedUiSystem;
6389
6310
 
6311
+ /**
6312
+ * @public
6313
+ */
6314
+ export declare interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
6315
+ type: T;
6316
+ props: P;
6317
+ key: Key | null;
6318
+ }
6319
+
6320
+ /**
6321
+ * @public
6322
+ */
6323
+ export declare type ReactNode = ReactElement | string | number | boolean | null | undefined;
6324
+
6390
6325
  /**
6391
6326
  * @public
6392
6327
  */
@@ -7139,7 +7074,7 @@ export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinit
7139
7074
  /**
7140
7075
  * @public
7141
7076
  */
7142
- export declare type UiComponent = () => ReactEcs.JSX.Element;
7077
+ export declare type UiComponent = () => ReactEcs.JSX.ReactNode;
7143
7078
 
7144
7079
  /** @public */
7145
7080
  export declare const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
@@ -7205,12 +7140,6 @@ export declare interface UiLabelProps {
7205
7140
  textAlign?: TextAlignType | undefined;
7206
7141
  /** Label font type. @defaultValue 'sans-serif' */
7207
7142
  font?: UiFontType | undefined;
7208
- /** Outline width of the text. @defaultValue 0 */
7209
- outlineWidth?: number | undefined;
7210
- /** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
7211
- outlineColor?: PBColor4 | undefined;
7212
- /** Text wrapping. @defaultValue false */
7213
- textWrapping?: boolean | undefined;
7214
7143
  }
7215
7144
 
7216
7145
  /**
@@ -7285,8 +7214,6 @@ export declare interface UiTransformProps {
7285
7214
  overflow?: OverflowType;
7286
7215
  /** 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) **/
7287
7216
  pointerFilter?: PointerFilterType;
7288
- /** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
7289
- opacity?: number;
7290
7217
  }
7291
7218
 
7292
7219
  /**