@dcl/playground-assets 7.25.1-30365680769.commit-9c1b99d → 7.25.1-30447792919.commit-c06a494

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.
@@ -1281,6 +1281,34 @@ declare module "~system/RestrictedActions" {
1281
1281
  }
1282
1282
 
1283
1283
  // Function declaration section
1284
+ /**
1285
+ * Identifies which fullscreen explorer panel OpenExplorerUi targets.
1286
+ * EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
1287
+ */
1288
+ export enum ExplorerUi {
1289
+ EU_SETTINGS = 0,
1290
+ EU_MAP = 1,
1291
+ EU_BACKPACK = 2,
1292
+ EU_CAMERA_REEL = 3,
1293
+ EU_COMMUNITIES = 4,
1294
+ EU_PLACES = 5,
1295
+ EU_EVENTS = 6,
1296
+ UNRECOGNIZED = -1
1297
+ }
1298
+ /** Verdict of an OpenExplorerUi request (enum rather than a bool so new outcomes stay expressible). */
1299
+ export enum OpenExplorerUiResult {
1300
+ UNSPECIFIED = 0,
1301
+ OPENED = 1,
1302
+ /** WAS_ALREADY_OPEN - a fullscreen panel is already open */
1303
+ WAS_ALREADY_OPEN = 2,
1304
+ /** REJECTED_NOT_CURRENT_SCENE - the standard restricted-actions current-scene gate rejected the call */
1305
+ REJECTED_NOT_CURRENT_SCENE = 3,
1306
+ /** REJECTED_FEATURE_DISABLED - the requested section is hidden by feature flags or client doesn't have that feature */
1307
+ REJECTED_FEATURE_DISABLED = 4,
1308
+ /** REJECTED_NO_USER_GESTURE - rejected: the call did not originate from a user gesture */
1309
+ REJECTED_NO_USER_GESTURE = 5,
1310
+ UNRECOGNIZED = -1
1311
+ }
1284
1312
  export interface MovePlayerToRequest {
1285
1313
  newRelativePosition: Vector3 | undefined;
1286
1314
  cameraTarget?: Vector3 | undefined;
@@ -1331,6 +1359,13 @@ declare module "~system/RestrictedActions" {
1331
1359
  export interface EmptyResponse {
1332
1360
  }
1333
1361
  export interface StopEmoteRequest {
1362
+ }
1363
+ export interface OpenExplorerUiRequest {
1364
+ ui: ExplorerUi;
1365
+ }
1366
+ export interface OpenExplorerUiResponse {
1367
+ /** Carries only the verdict of the open action. */
1368
+ openResult: OpenExplorerUiResult;
1334
1369
  }
1335
1370
 
1336
1371
  // Function declaration section
@@ -1361,6 +1396,8 @@ declare module "~system/RestrictedActions" {
1361
1396
  export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
1362
1397
  /** StopEmote will stop the current emote */
1363
1398
  export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
1399
+ /** OpenExplorerUi opens a specific fullscreen explorer panel and returns the open verdict. */
1400
+ export function openExplorerUi(body: OpenExplorerUiRequest): Promise<OpenExplorerUiResponse>;
1364
1401
 
1365
1402
  }
1366
1403
  /**
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.25.1-30365680769.commit-9c1b99d",
4
+ "version": "7.25.1-30447792919.commit-c06a494",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -34,5 +34,5 @@
34
34
  },
35
35
  "types": "./index.d.ts",
36
36
  "typings": "./index.d.ts",
37
- "commit": "9c1b99d2d13298dd3e5d7d4f049fab56f92bae75"
37
+ "commit": "c06a4949a4e3dd50ed906d35304aefa6baebfc0d"
38
38
  }
@@ -263,6 +263,15 @@ export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAva
263
263
  /** @public */
264
264
  export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
265
265
 
266
+ /** Mask for which bones an animation applies to. */
267
+ /**
268
+ * @public
269
+ */
270
+ export declare const enum AvatarEmoteMask {
271
+ AEM_FULL_BODY = 0,
272
+ AEM_UPPER_BODY = 1
273
+ }
274
+
266
275
  /** @public */
267
276
  export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
268
277
 
@@ -1447,6 +1456,7 @@ export declare const componentDefinitionByName: {
1447
1456
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
1448
1457
  "core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
1449
1458
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
1459
+ "core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
1450
1460
  "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
1451
1461
  "core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
1452
1462
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
@@ -1457,6 +1467,7 @@ export declare const componentDefinitionByName: {
1457
1467
  "core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
1458
1468
  "core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
1459
1469
  "core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
1470
+ "core::UiInputBinding": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputBinding>>;
1460
1471
  "core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
1461
1472
  "core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
1462
1473
  "core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
@@ -4821,8 +4832,9 @@ export declare namespace PBAvatarBase {
4821
4832
  }
4822
4833
 
4823
4834
  /**
4824
- * AvatarEmoteCommand is a grow only value set, used to signal the renderer about
4825
- * avatar emotes playback.
4835
+ * AvatarEmoteCommand is a grow only value set, written by the explorer to report
4836
+ * avatar emote playback to the scene. It is appended to every player entity in the
4837
+ * scene (the local player and remote avatars alike).
4826
4838
  */
4827
4839
  /**
4828
4840
  * @public
@@ -6433,6 +6445,70 @@ export declare namespace PBTextShape {
6433
6445
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
6434
6446
  }
6435
6447
 
6448
+ /**
6449
+ * The TouchScreenControls component lets a scene configure the native on-screen touch
6450
+ * controls (the mobile joystick + gamepad). It must be set on the RootEntity.
6451
+ *
6452
+ * By default every on-screen button is shown; list a button in `touch_inputs` with
6453
+ * `hide = true` to remove it (declutter). `main_action` picks which action the large
6454
+ * central button triggers, and `hide_joystick` removes the native virtual joystick. It is
6455
+ * a no-op on platforms without native on-screen controls (e.g. desktop).
6456
+ *
6457
+ * Accepted actions: only the on-screen gamepad actions map to a button — `IA_POINTER`,
6458
+ * `IA_PRIMARY`, `IA_SECONDARY`, `IA_JUMP`, and `IA_ACTION_3`..`IA_ACTION_6`. Any other
6459
+ * `InputAction` (movement actions, `IA_ANY`, `IA_MODIFIER`, or unknown/future values) is
6460
+ * ignored: a `TouchInput` entry naming a non-button action has no effect, and a `main_action`
6461
+ * that isn't a valid gamepad action falls back to the default central button (`IA_JUMP`).
6462
+ */
6463
+ /**
6464
+ * @public
6465
+ */
6466
+ export declare interface PBTouchScreenControls {
6467
+ touchInputs: PBTouchScreenControls_TouchInput[];
6468
+ /**
6469
+ * The large central button's action. Only the gamepad actions are valid:
6470
+ * jump / pointer / primary (E) / secondary (F) / action_3..action_6 (1/2/3/4).
6471
+ * When unset, the default central button (jump) is kept.
6472
+ */
6473
+ mainAction?: InputAction | undefined;
6474
+ /** hide the native virtual joystick */
6475
+ hideJoystick: boolean;
6476
+ /** hide the on-screen crosshair / reticle */
6477
+ hideCrosshair: boolean;
6478
+ }
6479
+
6480
+ /**
6481
+ * @public
6482
+ */
6483
+ export declare namespace PBTouchScreenControls {
6484
+ export function encode(message: PBTouchScreenControls, writer?: _m0.Writer): _m0.Writer;
6485
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls;
6486
+ }
6487
+
6488
+ /** Per-button configuration. A button not listed here keeps its default (shown). */
6489
+ /**
6490
+ * @public
6491
+ */
6492
+ export declare interface PBTouchScreenControls_TouchInput {
6493
+ /** which on-screen button this configures */
6494
+ inputAction: InputAction;
6495
+ /** hide this button (default: shown) */
6496
+ hide: boolean;
6497
+ /**
6498
+ * Override the button glyph with this texture. For the jump button it replaces all
6499
+ * of its dynamic states (jump / double-jump / glide).
6500
+ */
6501
+ icon?: TextureUnion | undefined;
6502
+ }
6503
+
6504
+ /**
6505
+ * @public
6506
+ */
6507
+ export declare namespace PBTouchScreenControls_TouchInput {
6508
+ export function encode(message: PBTouchScreenControls_TouchInput, writer?: _m0.Writer): _m0.Writer;
6509
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls_TouchInput;
6510
+ }
6511
+
6436
6512
  /**
6437
6513
  * The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
6438
6514
  * when entities enter this component's defined area.
@@ -6721,6 +6797,42 @@ export declare namespace PBUiInput {
6721
6797
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
6722
6798
  }
6723
6799
 
6800
+ /**
6801
+ * The UiInputBinding component binds a UI entity to one or more InputActions. While the
6802
+ * element is pressed (touch or pointer) the listed actions are held down, driving both
6803
+ * the local player input and scene InputAction listeners, just like the native on-screen
6804
+ * buttons. It is typically combined with PBTouchScreenControls to replace the native
6805
+ * controls with a custom touch UI.
6806
+ *
6807
+ * Release semantics: the held actions are released as soon as the press that started them
6808
+ * ends. A renderer MUST release all actions held by this binding when any of the following
6809
+ * happens: the press/touch is lifted or cancelled, the pointer/touch leaves the element
6810
+ * (loses press ownership), the actions list changes (the previous set is released before
6811
+ * the new set is applied), the component is removed or its actions list becomes empty, the
6812
+ * UI element is hidden, disabled or removed from the tree, or the scene unloads. In short,
6813
+ * no action may remain held once the element is no longer both present and actively pressed.
6814
+ *
6815
+ * Multi-touch: the binding is a single held state, not reference-counted per pointer. The
6816
+ * actions are held while the element is pressed and released when that press ends; a second
6817
+ * simultaneous press on the same element does not stack, and does not extend the hold past
6818
+ * the first release.
6819
+ */
6820
+ /**
6821
+ * @public
6822
+ */
6823
+ export declare interface PBUiInputBinding {
6824
+ /** the input actions fired while this element is pressed */
6825
+ actions: InputAction[];
6826
+ }
6827
+
6828
+ /**
6829
+ * @public
6830
+ */
6831
+ export declare namespace PBUiInputBinding {
6832
+ export function encode(message: PBUiInputBinding, writer?: _m0.Writer): _m0.Writer;
6833
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputBinding;
6834
+ }
6835
+
6724
6836
  /**
6725
6837
  * @public
6726
6838
  */
@@ -6989,6 +7101,7 @@ export declare namespace PBVideoPlayer {
6989
7101
  * an 'instant' transition (like using speed/time = 0)
6990
7102
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
6991
7103
  * the holding entity transform).
7104
+ * * The fov defines the Field of View of the virtual camera
6992
7105
  */
6993
7106
  /**
6994
7107
  * @public
@@ -6996,6 +7109,8 @@ export declare namespace PBVideoPlayer {
6996
7109
  export declare interface PBVirtualCamera {
6997
7110
  defaultTransition?: CameraTransition | undefined;
6998
7111
  lookAtEntity?: number | undefined;
7112
+ /** default: 60 */
7113
+ fov?: number | undefined;
6999
7114
  }
7000
7115
 
7001
7116
  /**
@@ -9021,6 +9136,9 @@ export declare const ToLinearSpace = 2.2;
9021
9136
  */
9022
9137
  export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
9023
9138
 
9139
+ /** @public */
9140
+ export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
9141
+
9024
9142
  export declare const Transform: TransformComponentExtended;
9025
9143
 
9026
9144
  /**
@@ -9467,6 +9585,9 @@ export declare type UiFontType = 'sans-serif' | 'serif' | 'monospace';
9467
9585
  /** @public */
9468
9586
  export declare const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInput>;
9469
9587
 
9588
+ /** @public */
9589
+ export declare const UiInputBinding: LastWriteWinElementSetComponentDefinition<PBUiInputBinding>;
9590
+
9470
9591
  /**
9471
9592
  * @public
9472
9593
  */