@dcl/playground-assets 7.31.1-40370968977.commit-10922ec → 7.31.1-40604676255.commit-cb3ed84

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.
@@ -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
  }
@@ -1377,7 +1397,14 @@ declare module "~system/RestrictedActions" {
1377
1397
  * whole interpolation being completed or interrupted (e.g: by input movement)
1378
1398
  */
1379
1399
  export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
1380
- /** TeleportTo will move the user to the specified world LAND parcel coordinates */
1400
+ /**
1401
+ * TeleportTo will move the user to the specified world LAND parcel coordinates
1402
+ * WalkPlayerTo will walk the player to a position relative to the current scene,
1403
+ * managed by the movement controller scene. Returns success when the player reaches
1404
+ * within stop_threshold distance, or false if the path is blocked, the player gets
1405
+ * stuck, the player interrupts the walk with manual input, or the optional timeout expires.
1406
+ */
1407
+ export function walkPlayerTo(body: WalkPlayerToRequest): Promise<WalkPlayerToResponse>;
1381
1408
  export function teleportTo(body: TeleportToRequest): Promise<TeleportToResponse>;
1382
1409
  /** TriggerEmote will trigger an emote in this current user */
1383
1410
  export function triggerEmote(body: TriggerEmoteRequest): Promise<TriggerEmoteResponse>;
@@ -1397,7 +1424,15 @@ declare module "~system/RestrictedActions" {
1397
1424
  export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
1398
1425
  /** TriggerSceneEmote will trigger an scene emote file in this current user */
1399
1426
  export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
1400
- /** CopyToClipboard copies the provided text into the clipboard */
1427
+ /**
1428
+ * CopyToClipboard copies the provided text into the clipboard
1429
+ * Sets the focus to a specific UI element
1430
+ */
1431
+ export function setUiFocus(body: SetUiFocusRequest): Promise<UiFocusResponse>;
1432
+ /** Clears the focus from any currently focused textentry or dropdown */
1433
+ export function clearUiFocus(body: ClearUiFocusRequest): Promise<UiFocusResponse>;
1434
+ /** Returns the element_id of any currently focused textentry or dropdown */
1435
+ export function getUiFocus(body: GetUiFocusRequest): Promise<UiFocusResponse>;
1401
1436
  export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
1402
1437
  /** StopEmote will stop the current emote */
1403
1438
  export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.31.1-40370968977.commit-10922ec",
4
+ "version": "7.31.1-40604676255.commit-cb3ed84",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -33,5 +33,5 @@
33
33
  },
34
34
  "types": "./index.d.ts",
35
35
  "typings": "./index.d.ts",
36
- "commit": "10922ec763a8123e401148539d44189ac95a02b7"
36
+ "commit": "cb3ed840b67e8695a9dfd9461e8a54736d349e03"
37
37
  }