@dcl/js-runtime 7.22.5 → 7.22.6-25007982108.commit-83012ab
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 +33 -0
- package/package.json +2 -2
package/apis.d.ts
CHANGED
|
@@ -1291,8 +1291,28 @@ declare module "~system/RestrictedActions" {
|
|
|
1291
1291
|
export interface MovePlayerToResponse {
|
|
1292
1292
|
success: boolean;
|
|
1293
1293
|
}
|
|
1294
|
+
export interface WalkPlayerToRequest {
|
|
1295
|
+
newRelativePosition: Vector3 | undefined;
|
|
1296
|
+
stopThreshold: number;
|
|
1297
|
+
/** max seconds before the request is failed; not passed to the movement scene */
|
|
1298
|
+
timeout?: number | undefined;
|
|
1299
|
+
}
|
|
1300
|
+
export interface WalkPlayerToResponse {
|
|
1301
|
+
success: boolean;
|
|
1302
|
+
}
|
|
1294
1303
|
export interface TeleportToResponse {
|
|
1295
1304
|
}
|
|
1305
|
+
export interface SetUiFocusRequest {
|
|
1306
|
+
elementId: string;
|
|
1307
|
+
}
|
|
1308
|
+
export interface ClearUiFocusRequest {
|
|
1309
|
+
}
|
|
1310
|
+
export interface GetUiFocusRequest {
|
|
1311
|
+
}
|
|
1312
|
+
export interface UiFocusResponse {
|
|
1313
|
+
/** the element that is/was focussed */
|
|
1314
|
+
elementId?: string | undefined;
|
|
1315
|
+
}
|
|
1296
1316
|
export interface CopyToClipboardRequest {
|
|
1297
1317
|
text: string;
|
|
1298
1318
|
}
|
|
@@ -1306,6 +1326,13 @@ declare module "~system/RestrictedActions" {
|
|
|
1306
1326
|
* whole interpolation being completed or interrupted (e.g: by input movement)
|
|
1307
1327
|
*/
|
|
1308
1328
|
export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
|
|
1329
|
+
/**
|
|
1330
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
1331
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
1332
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
1333
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
1334
|
+
*/
|
|
1335
|
+
export function walkPlayerTo(body: WalkPlayerToRequest): Promise<WalkPlayerToResponse>;
|
|
1309
1336
|
/** TeleportTo will move the user to the specified world LAND parcel coordinates */
|
|
1310
1337
|
export function teleportTo(body: TeleportToRequest): Promise<TeleportToResponse>;
|
|
1311
1338
|
/** TriggerEmote will trigger an emote in this current user */
|
|
@@ -1323,6 +1350,12 @@ declare module "~system/RestrictedActions" {
|
|
|
1323
1350
|
export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
|
|
1324
1351
|
/** TriggerSceneEmote will trigger an scene emote file in this current user */
|
|
1325
1352
|
export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
|
|
1353
|
+
/** Sets the focus to a specific UI element */
|
|
1354
|
+
export function setUiFocus(body: SetUiFocusRequest): Promise<UiFocusResponse>;
|
|
1355
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
1356
|
+
export function clearUiFocus(body: SetUiFocusRequest): Promise<UiFocusResponse>;
|
|
1357
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
1358
|
+
export function getUiFocus(body: GetUiFocusRequest): Promise<UiFocusResponse>;
|
|
1326
1359
|
/** CopyToClipboard copies the provided text into the clipboard */
|
|
1327
1360
|
export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
|
|
1328
1361
|
|
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.22.
|
|
4
|
+
"version": "7.22.6-25007982108.commit-83012ab",
|
|
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": "83012ab4c851bdd7da6c424a20094149b7707019"
|
|
24
24
|
}
|