@trackunit/iris-app-runtime-core 0.3.15 → 0.3.17
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/index.cjs +6 -5
- package/package.json +3 -3
- package/src/AssetRuntime.d.ts +1 -6
- package/src/NavigationRuntime.d.ts +6 -1
package/index.cjs
CHANGED
|
@@ -31,9 +31,10 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
const setupHostConnector = (subscribedMethods) => {
|
|
34
|
+
var _a;
|
|
34
35
|
const methods = Object.assign({ onGlobalSelectionChanged: () => { }, onTokenChanged: () => { }, onAssetSortingStateChanged: () => { } }, subscribedMethods);
|
|
35
36
|
const connection = penpal.connectToParent({ methods });
|
|
36
|
-
|
|
37
|
+
(_a = connection.promise) === null || _a === void 0 ? void 0 : _a.catch(err => {
|
|
37
38
|
// TODO consider how to handle this catch
|
|
38
39
|
// eslint-disable-next-line no-console
|
|
39
40
|
console.log(err);
|
|
@@ -50,10 +51,6 @@ const AssetRuntime = {
|
|
|
50
51
|
const api = yield getHostConnector();
|
|
51
52
|
return api.getAssetInfo();
|
|
52
53
|
}),
|
|
53
|
-
gotoAssetHome: (assetId, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
-
const api = yield getHostConnector();
|
|
55
|
-
return api.gotoAssetHome(assetId, options);
|
|
56
|
-
}),
|
|
57
54
|
};
|
|
58
55
|
|
|
59
56
|
const AssetSortingRuntime = {
|
|
@@ -224,6 +221,10 @@ const NavigationRuntime = {
|
|
|
224
221
|
const api = yield getHostConnector();
|
|
225
222
|
return api.setDeepLink(props);
|
|
226
223
|
}),
|
|
224
|
+
gotoAssetHome: (assetId, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
225
|
+
const api = yield getHostConnector();
|
|
226
|
+
return api.gotoAssetHome(assetId, options);
|
|
227
|
+
}),
|
|
227
228
|
};
|
|
228
229
|
|
|
229
230
|
const ParamsRuntime = {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"types": "./src/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/iris-app-runtime-core-api": "0.3.
|
|
11
|
-
"@trackunit/react-core-contexts-api": "0.2.
|
|
10
|
+
"@trackunit/iris-app-runtime-core-api": "0.3.15",
|
|
11
|
+
"@trackunit/react-core-contexts-api": "0.2.15"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {}
|
|
14
14
|
}
|
package/src/AssetRuntime.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetInfo } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
export interface IAssetRuntime {
|
|
3
3
|
getAssetInfo: () => Promise<AssetInfo>;
|
|
4
|
-
gotoAssetHome: (assetId: string, options?: {
|
|
5
|
-
irisAppId?: string;
|
|
6
|
-
extensionId?: string;
|
|
7
|
-
subPage?: AssetHomeSubPage;
|
|
8
|
-
}) => Promise<boolean>;
|
|
9
4
|
}
|
|
10
5
|
export declare const AssetRuntime: IAssetRuntime;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { SetDeepLink } from "@trackunit/iris-app-runtime-core-api";
|
|
1
|
+
import { AssetHomeSubPage, SetDeepLink } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
export interface INavigationRuntime {
|
|
3
3
|
setDeepLink: SetDeepLink;
|
|
4
|
+
gotoAssetHome: (assetId: string, options?: {
|
|
5
|
+
irisAppId?: string;
|
|
6
|
+
extensionId?: string;
|
|
7
|
+
subPage?: AssetHomeSubPage;
|
|
8
|
+
}) => Promise<boolean>;
|
|
4
9
|
}
|
|
5
10
|
export declare const NavigationRuntime: INavigationRuntime;
|