@dcl/js-runtime 7.27.0 → 7.27.1-33247605236.commit-732120a
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.
- package/apis.d.ts +37 -2
- package/package.json +2 -2
package/apis.d.ts
CHANGED
|
@@ -1337,8 +1337,28 @@ declare module "~system/RestrictedActions" {
|
|
|
1337
1337
|
export interface MovePlayerToResponse {
|
|
1338
1338
|
success: boolean;
|
|
1339
1339
|
}
|
|
1340
|
+
export interface WalkPlayerToRequest {
|
|
1341
|
+
newRelativePosition: Vector3 | undefined;
|
|
1342
|
+
stopThreshold: number;
|
|
1343
|
+
/** max seconds before the request is failed; not passed to the movement scene */
|
|
1344
|
+
timeout?: number | undefined;
|
|
1345
|
+
}
|
|
1346
|
+
export interface WalkPlayerToResponse {
|
|
1347
|
+
success: boolean;
|
|
1348
|
+
}
|
|
1340
1349
|
export interface TeleportToResponse {
|
|
1341
1350
|
}
|
|
1351
|
+
export interface SetUiFocusRequest {
|
|
1352
|
+
elementId: string;
|
|
1353
|
+
}
|
|
1354
|
+
export interface ClearUiFocusRequest {
|
|
1355
|
+
}
|
|
1356
|
+
export interface GetUiFocusRequest {
|
|
1357
|
+
}
|
|
1358
|
+
export interface UiFocusResponse {
|
|
1359
|
+
/** the element that is/was focussed */
|
|
1360
|
+
elementId?: string | undefined;
|
|
1361
|
+
}
|
|
1342
1362
|
export interface CopyToClipboardRequest {
|
|
1343
1363
|
text: string;
|
|
1344
1364
|
}
|
|
@@ -1361,7 +1381,14 @@ declare module "~system/RestrictedActions" {
|
|
|
1361
1381
|
* whole interpolation being completed or interrupted (e.g: by input movement)
|
|
1362
1382
|
*/
|
|
1363
1383
|
export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
|
|
1364
|
-
/**
|
|
1384
|
+
/**
|
|
1385
|
+
* TeleportTo will move the user to the specified world LAND parcel coordinates
|
|
1386
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
1387
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
1388
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
1389
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
1390
|
+
*/
|
|
1391
|
+
export function walkPlayerTo(body: WalkPlayerToRequest): Promise<WalkPlayerToResponse>;
|
|
1365
1392
|
export function teleportTo(body: TeleportToRequest): Promise<TeleportToResponse>;
|
|
1366
1393
|
/** TriggerEmote will trigger an emote in this current user */
|
|
1367
1394
|
export function triggerEmote(body: TriggerEmoteRequest): Promise<TriggerEmoteResponse>;
|
|
@@ -1378,7 +1405,15 @@ declare module "~system/RestrictedActions" {
|
|
|
1378
1405
|
export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
|
|
1379
1406
|
/** TriggerSceneEmote will trigger an scene emote file in this current user */
|
|
1380
1407
|
export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
|
|
1381
|
-
/**
|
|
1408
|
+
/**
|
|
1409
|
+
* CopyToClipboard copies the provided text into the clipboard
|
|
1410
|
+
* Sets the focus to a specific UI element
|
|
1411
|
+
*/
|
|
1412
|
+
export function setUiFocus(body: SetUiFocusRequest): Promise<UiFocusResponse>;
|
|
1413
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
1414
|
+
export function clearUiFocus(body: ClearUiFocusRequest): Promise<UiFocusResponse>;
|
|
1415
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
1416
|
+
export function getUiFocus(body: GetUiFocusRequest): Promise<UiFocusResponse>;
|
|
1382
1417
|
export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
|
|
1383
1418
|
/** StopEmote will stop the current emote */
|
|
1384
1419
|
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.
|
|
4
|
+
"version": "7.27.1-33247605236.commit-732120a",
|
|
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": "
|
|
23
|
+
"commit": "732120a14d3baeef609ff96b7463293de7abd76b"
|
|
24
24
|
}
|