@dcl/js-runtime 7.27.1-33533530571.commit-451d001 → 7.27.1-33669021544.commit-a6216ed

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 +43 -2
  2. package/package.json +2 -2
package/apis.d.ts CHANGED
@@ -1304,6 +1304,12 @@ declare module "~system/RestrictedActions" {
1304
1304
  }
1305
1305
  export interface TeleportToRequest {
1306
1306
  worldCoordinates: Vector2 | undefined;
1307
+ /**
1308
+ * The realm the parcel belongs to: a world name (`foo.dcl.eth`) or a realm url. When set, the
1309
+ * client changes realm (as for ChangeRealm — a full reconnect, even to the realm the player is
1310
+ * in) and lands on the parcel there. Omitted: the parcel is in the player's current realm.
1311
+ */
1312
+ realm?: string | undefined;
1307
1313
  }
1308
1314
  export interface TriggerEmoteRequest {
1309
1315
  predefinedEmote: string;
@@ -1337,8 +1343,28 @@ declare module "~system/RestrictedActions" {
1337
1343
  export interface MovePlayerToResponse {
1338
1344
  success: boolean;
1339
1345
  }
1346
+ export interface WalkPlayerToRequest {
1347
+ newRelativePosition: Vector3 | undefined;
1348
+ stopThreshold: number;
1349
+ /** max seconds before the request is failed; not passed to the movement scene */
1350
+ timeout?: number | undefined;
1351
+ }
1352
+ export interface WalkPlayerToResponse {
1353
+ success: boolean;
1354
+ }
1340
1355
  export interface TeleportToResponse {
1341
1356
  }
1357
+ export interface SetUiFocusRequest {
1358
+ elementId: string;
1359
+ }
1360
+ export interface ClearUiFocusRequest {
1361
+ }
1362
+ export interface GetUiFocusRequest {
1363
+ }
1364
+ export interface UiFocusResponse {
1365
+ /** the element that is/was focussed */
1366
+ elementId?: string | undefined;
1367
+ }
1342
1368
  export interface CopyToClipboardRequest {
1343
1369
  text: string;
1344
1370
  }
@@ -1361,7 +1387,14 @@ declare module "~system/RestrictedActions" {
1361
1387
  * whole interpolation being completed or interrupted (e.g: by input movement)
1362
1388
  */
1363
1389
  export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
1364
- /** TeleportTo will move the user to the specified world LAND parcel coordinates */
1390
+ /**
1391
+ * TeleportTo will move the user to the specified world LAND parcel coordinates
1392
+ * WalkPlayerTo will walk the player to a position relative to the current scene,
1393
+ * managed by the movement controller scene. Returns success when the player reaches
1394
+ * within stop_threshold distance, or false if the path is blocked, the player gets
1395
+ * stuck, the player interrupts the walk with manual input, or the optional timeout expires.
1396
+ */
1397
+ export function walkPlayerTo(body: WalkPlayerToRequest): Promise<WalkPlayerToResponse>;
1365
1398
  export function teleportTo(body: TeleportToRequest): Promise<TeleportToResponse>;
1366
1399
  /** TriggerEmote will trigger an emote in this current user */
1367
1400
  export function triggerEmote(body: TriggerEmoteRequest): Promise<TriggerEmoteResponse>;
@@ -1378,7 +1411,15 @@ declare module "~system/RestrictedActions" {
1378
1411
  export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
1379
1412
  /** TriggerSceneEmote will trigger an scene emote file in this current user */
1380
1413
  export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
1381
- /** CopyToClipboard copies the provided text into the clipboard */
1414
+ /**
1415
+ * CopyToClipboard copies the provided text into the clipboard
1416
+ * Sets the focus to a specific UI element
1417
+ */
1418
+ export function setUiFocus(body: SetUiFocusRequest): Promise<UiFocusResponse>;
1419
+ /** Clears the focus from any currently focused textentry or dropdown */
1420
+ export function clearUiFocus(body: ClearUiFocusRequest): Promise<UiFocusResponse>;
1421
+ /** Returns the element_id of any currently focused textentry or dropdown */
1422
+ export function getUiFocus(body: GetUiFocusRequest): Promise<UiFocusResponse>;
1382
1423
  export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
1383
1424
  /** StopEmote will stop the current emote */
1384
1425
  export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
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.27.1-33533530571.commit-451d001",
4
+ "version": "7.27.1-33669021544.commit-a6216ed",
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": "451d001304e4d3e8eecece568a58990d129e1000"
23
+ "commit": "a6216ed019b3e94bc687847a82d433d07c6e3e9d"
24
24
  }