@dcl/js-runtime 7.29.1-35901015152.commit-d1b7b96 → 7.29.1-35978346337.commit-823107b

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.
Files changed (2) hide show
  1. package/apis.d.ts +13 -39
  2. package/package.json +2 -2
package/apis.d.ts CHANGED
@@ -1285,7 +1285,7 @@ declare module "~system/RestrictedActions" {
1285
1285
  export enum OpenExplorerUiResult {
1286
1286
  UNSPECIFIED = 0,
1287
1287
  OPENED = 1,
1288
- /** WAS_ALREADY_OPEN - a fullscreen panel is already open */
1288
+ /** WAS_ALREADY_OPEN - the slot the requested panel occupies is already in use; panels sharing a slot exclude each other */
1289
1289
  WAS_ALREADY_OPEN = 2,
1290
1290
  /** REJECTED_NOT_CURRENT_SCENE - the standard restricted-actions current-scene gate rejected the call */
1291
1291
  REJECTED_NOT_CURRENT_SCENE = 3,
@@ -1344,28 +1344,8 @@ declare module "~system/RestrictedActions" {
1344
1344
  export interface MovePlayerToResponse {
1345
1345
  success: boolean;
1346
1346
  }
1347
- export interface WalkPlayerToRequest {
1348
- newRelativePosition: Vector3 | undefined;
1349
- stopThreshold: number;
1350
- /** max seconds before the request is failed; not passed to the movement scene */
1351
- timeout?: number | undefined;
1352
- }
1353
- export interface WalkPlayerToResponse {
1354
- success: boolean;
1355
- }
1356
1347
  export interface TeleportToResponse {
1357
1348
  }
1358
- export interface SetUiFocusRequest {
1359
- elementId: string;
1360
- }
1361
- export interface ClearUiFocusRequest {
1362
- }
1363
- export interface GetUiFocusRequest {
1364
- }
1365
- export interface UiFocusResponse {
1366
- /** the element that is/was focussed */
1367
- elementId?: string | undefined;
1368
- }
1369
1349
  export interface CopyToClipboardRequest {
1370
1350
  text: string;
1371
1351
  }
@@ -1375,6 +1355,15 @@ declare module "~system/RestrictedActions" {
1375
1355
  }
1376
1356
  export interface OpenExplorerUiRequest {
1377
1357
  ui: import('../ecs').ExplorerUi;
1358
+ /**
1359
+ * Echoed back in the events this request produces, so they can be matched to their call.
1360
+ * Unset means no correlation, and 0 is reserved for the same meaning on the result, so ids start at 1.
1361
+ */
1362
+ requestId?: number | undefined;
1363
+ itemPurchase?: OpenExplorerUiRequest_ItemPurchaseParams | undefined;
1364
+ }
1365
+ export interface OpenExplorerUiRequest_ItemPurchaseParams {
1366
+ urn: string;
1378
1367
  }
1379
1368
  export interface OpenExplorerUiResponse {
1380
1369
  /** Carries only the verdict of the open action. */
@@ -1388,14 +1377,7 @@ declare module "~system/RestrictedActions" {
1388
1377
  * whole interpolation being completed or interrupted (e.g: by input movement)
1389
1378
  */
1390
1379
  export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
1391
- /**
1392
- * TeleportTo will move the user to the specified world LAND parcel coordinates
1393
- * WalkPlayerTo will walk the player to a position relative to the current scene,
1394
- * managed by the movement controller scene. Returns success when the player reaches
1395
- * within stop_threshold distance, or false if the path is blocked, the player gets
1396
- * stuck, the player interrupts the walk with manual input, or the optional timeout expires.
1397
- */
1398
- export function walkPlayerTo(body: WalkPlayerToRequest): Promise<WalkPlayerToResponse>;
1380
+ /** TeleportTo will move the user to the specified world LAND parcel coordinates */
1399
1381
  export function teleportTo(body: TeleportToRequest): Promise<TeleportToResponse>;
1400
1382
  /** TriggerEmote will trigger an emote in this current user */
1401
1383
  export function triggerEmote(body: TriggerEmoteRequest): Promise<TriggerEmoteResponse>;
@@ -1415,19 +1397,11 @@ declare module "~system/RestrictedActions" {
1415
1397
  export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
1416
1398
  /** TriggerSceneEmote will trigger an scene emote file in this current user */
1417
1399
  export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
1418
- /**
1419
- * CopyToClipboard copies the provided text into the clipboard
1420
- * Sets the focus to a specific UI element
1421
- */
1422
- export function setUiFocus(body: SetUiFocusRequest): Promise<UiFocusResponse>;
1423
- /** Clears the focus from any currently focused textentry or dropdown */
1424
- export function clearUiFocus(body: ClearUiFocusRequest): Promise<UiFocusResponse>;
1425
- /** Returns the element_id of any currently focused textentry or dropdown */
1426
- export function getUiFocus(body: GetUiFocusRequest): Promise<UiFocusResponse>;
1400
+ /** CopyToClipboard copies the provided text into the clipboard */
1427
1401
  export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
1428
1402
  /** StopEmote will stop the current emote */
1429
1403
  export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
1430
- /** OpenExplorerUi opens a specific fullscreen explorer panel and returns the open verdict. */
1404
+ /** OpenExplorerUi opens an explorer panel, fullscreen or modal, and returns the open verdict. */
1431
1405
  export function openExplorerUi(body: OpenExplorerUiRequest): Promise<OpenExplorerUiResponse>;
1432
1406
 
1433
1407
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/js-runtime",
3
3
  "description": "JavaScript runtime definitions for Decentraland environments",
4
- "version": "7.29.1-35901015152.commit-d1b7b96",
4
+ "version": "7.29.1-35978346337.commit-823107b",
5
5
  "author": "",
6
6
  "files": [
7
7
  "index.d.ts",
@@ -20,5 +20,5 @@
20
20
  },
21
21
  "types": "./index.d.ts",
22
22
  "typings": "./index.d.ts",
23
- "commit": "d1b7b964cd184465c1b65118e47b5dc6be68a184"
23
+ "commit": "823107b9c97923a982ab4005453f7128e111aada"
24
24
  }