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