@dcl/js-runtime 7.29.1-35861881691.commit-e4e55e9 → 7.29.1-35901015152.commit-d1b7b96

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 +37 -2
  2. package/package.json +2 -2
package/apis.d.ts CHANGED
@@ -1344,8 +1344,28 @@ 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
+ }
1347
1356
  export interface TeleportToResponse {
1348
1357
  }
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
+ }
1349
1369
  export interface CopyToClipboardRequest {
1350
1370
  text: string;
1351
1371
  }
@@ -1368,7 +1388,14 @@ declare module "~system/RestrictedActions" {
1368
1388
  * whole interpolation being completed or interrupted (e.g: by input movement)
1369
1389
  */
1370
1390
  export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
1371
- /** TeleportTo will move the user to the specified world LAND parcel coordinates */
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>;
1372
1399
  export function teleportTo(body: TeleportToRequest): Promise<TeleportToResponse>;
1373
1400
  /** TriggerEmote will trigger an emote in this current user */
1374
1401
  export function triggerEmote(body: TriggerEmoteRequest): Promise<TriggerEmoteResponse>;
@@ -1388,7 +1415,15 @@ declare module "~system/RestrictedActions" {
1388
1415
  export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
1389
1416
  /** TriggerSceneEmote will trigger an scene emote file in this current user */
1390
1417
  export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
1391
- /** CopyToClipboard copies the provided text into the clipboard */
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>;
1392
1427
  export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
1393
1428
  /** StopEmote will stop the current emote */
1394
1429
  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.29.1-35861881691.commit-e4e55e9",
4
+ "version": "7.29.1-35901015152.commit-d1b7b96",
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": "e4e55e9b21dcb13946478368eec478893f22c4a0"
23
+ "commit": "d1b7b964cd184465c1b65118e47b5dc6be68a184"
24
24
  }