@dcl/js-runtime 7.25.1-30310486734.commit-5ffe873 → 7.25.1-30391610123.commit-26cb925
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 -0
- package/package.json +2 -2
package/apis.d.ts
CHANGED
|
@@ -1281,6 +1281,34 @@ declare module "~system/RestrictedActions" {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
|
|
1283
1283
|
// Function declaration section
|
|
1284
|
+
/**
|
|
1285
|
+
* Identifies which fullscreen explorer panel OpenExplorerUi targets.
|
|
1286
|
+
* EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
|
|
1287
|
+
*/
|
|
1288
|
+
export enum ExplorerUi {
|
|
1289
|
+
EU_SETTINGS = 0,
|
|
1290
|
+
EU_MAP = 1,
|
|
1291
|
+
EU_BACKPACK = 2,
|
|
1292
|
+
EU_CAMERA_REEL = 3,
|
|
1293
|
+
EU_COMMUNITIES = 4,
|
|
1294
|
+
EU_PLACES = 5,
|
|
1295
|
+
EU_EVENTS = 6,
|
|
1296
|
+
UNRECOGNIZED = -1
|
|
1297
|
+
}
|
|
1298
|
+
/** Verdict of an OpenExplorerUi request (enum rather than a bool so new outcomes stay expressible). */
|
|
1299
|
+
export enum OpenExplorerUiResult {
|
|
1300
|
+
UNSPECIFIED = 0,
|
|
1301
|
+
OPENED = 1,
|
|
1302
|
+
/** WAS_ALREADY_OPEN - a fullscreen panel is already open */
|
|
1303
|
+
WAS_ALREADY_OPEN = 2,
|
|
1304
|
+
/** REJECTED_NOT_CURRENT_SCENE - the standard restricted-actions current-scene gate rejected the call */
|
|
1305
|
+
REJECTED_NOT_CURRENT_SCENE = 3,
|
|
1306
|
+
/** REJECTED_FEATURE_DISABLED - the requested section is hidden by feature flags or client doesn't have that feature */
|
|
1307
|
+
REJECTED_FEATURE_DISABLED = 4,
|
|
1308
|
+
/** REJECTED_NO_USER_GESTURE - rejected: the call did not originate from a user gesture */
|
|
1309
|
+
REJECTED_NO_USER_GESTURE = 5,
|
|
1310
|
+
UNRECOGNIZED = -1
|
|
1311
|
+
}
|
|
1284
1312
|
export interface MovePlayerToRequest {
|
|
1285
1313
|
newRelativePosition: Vector3 | undefined;
|
|
1286
1314
|
cameraTarget?: Vector3 | undefined;
|
|
@@ -1331,6 +1359,13 @@ declare module "~system/RestrictedActions" {
|
|
|
1331
1359
|
export interface EmptyResponse {
|
|
1332
1360
|
}
|
|
1333
1361
|
export interface StopEmoteRequest {
|
|
1362
|
+
}
|
|
1363
|
+
export interface OpenExplorerUiRequest {
|
|
1364
|
+
ui: ExplorerUi;
|
|
1365
|
+
}
|
|
1366
|
+
export interface OpenExplorerUiResponse {
|
|
1367
|
+
/** Carries only the verdict of the open action. */
|
|
1368
|
+
openResult: OpenExplorerUiResult;
|
|
1334
1369
|
}
|
|
1335
1370
|
|
|
1336
1371
|
// Function declaration section
|
|
@@ -1361,6 +1396,8 @@ declare module "~system/RestrictedActions" {
|
|
|
1361
1396
|
export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
|
|
1362
1397
|
/** StopEmote will stop the current emote */
|
|
1363
1398
|
export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
|
|
1399
|
+
/** OpenExplorerUi opens a specific fullscreen explorer panel and returns the open verdict. */
|
|
1400
|
+
export function openExplorerUi(body: OpenExplorerUiRequest): Promise<OpenExplorerUiResponse>;
|
|
1364
1401
|
|
|
1365
1402
|
}
|
|
1366
1403
|
/**
|
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.25.1-
|
|
4
|
+
"version": "7.25.1-30391610123.commit-26cb925",
|
|
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": "26cb92516659d446b74945096eb4b7b48b7f06b1"
|
|
24
24
|
}
|