@trackunit/iris-app-runtime-core 0.3.46 → 0.3.47

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 CHANGED
@@ -276,6 +276,10 @@ const NavigationRuntime = {
276
276
  const api = yield getHostConnector();
277
277
  return api.gotoAssetHome(assetId, options);
278
278
  }),
279
+ gotoSiteHome: (siteId, options) => __awaiter(void 0, void 0, void 0, function* () {
280
+ const api = yield getHostConnector();
281
+ return api.gotoSiteHome(siteId, options);
282
+ }),
279
283
  };
280
284
 
281
285
  const ParamsRuntime = {
package/index.js CHANGED
@@ -273,6 +273,10 @@ const NavigationRuntime = {
273
273
  const api = yield getHostConnector();
274
274
  return api.gotoAssetHome(assetId, options);
275
275
  }),
276
+ gotoSiteHome: (siteId, options) => __awaiter(void 0, void 0, void 0, function* () {
277
+ const api = yield getHostConnector();
278
+ return api.gotoSiteHome(siteId, options);
279
+ }),
276
280
  };
277
281
 
278
282
  const ParamsRuntime = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core",
3
- "version": "0.3.46",
3
+ "version": "0.3.47",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -8,7 +8,7 @@
8
8
  "type": "module",
9
9
  "types": "./src/index.d.ts",
10
10
  "dependencies": {
11
- "@trackunit/iris-app-runtime-core-api": "0.3.40",
11
+ "@trackunit/iris-app-runtime-core-api": "0.3.41",
12
12
  "@trackunit/react-core-contexts-api": "0.2.37"
13
13
  },
14
14
  "peerDependencies": {}
@@ -1,4 +1,4 @@
1
- import { AssetHomeSubPage, SetDeepLink } from "@trackunit/iris-app-runtime-core-api";
1
+ import { AssetHomeSubPage, SetDeepLink, SiteHomeSubPage } from "@trackunit/iris-app-runtime-core-api";
2
2
  export interface INavigationRuntime {
3
3
  setDeepLink: SetDeepLink;
4
4
  gotoAssetHome: (assetId: string, options?: {
@@ -6,5 +6,10 @@ export interface INavigationRuntime {
6
6
  extensionId?: string;
7
7
  subPage?: AssetHomeSubPage;
8
8
  }) => Promise<boolean>;
9
+ gotoSiteHome: (siteId: string, options?: {
10
+ irisAppId?: string;
11
+ extensionId?: string;
12
+ subPage?: SiteHomeSubPage;
13
+ }) => Promise<boolean>;
9
14
  }
10
15
  export declare const NavigationRuntime: INavigationRuntime;