@trackunit/iris-app-runtime-core 0.3.145 → 0.3.146

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.js CHANGED
@@ -326,10 +326,6 @@ const OemBrandingContextRuntime = {
326
326
  };
327
327
 
328
328
  const NavigationRuntime = {
329
- setDeepLink: (props) => __awaiter(void 0, void 0, void 0, function* () {
330
- const api = yield getHostConnector();
331
- return api.setDeepLink(props);
332
- }),
333
329
  gotoAssetHome: (assetId, options) => __awaiter(void 0, void 0, void 0, function* () {
334
330
  const api = yield getHostConnector();
335
331
  return api.gotoAssetHome(assetId, options);
@@ -377,6 +373,13 @@ const RestRuntime = {
377
373
  },
378
374
  };
379
375
 
376
+ const RouterRuntime = {
377
+ getBasePath: () => {
378
+ var _a;
379
+ return `${((_a = document.getElementById("baseHref")) === null || _a === void 0 ? void 0 : _a.getAttribute("href")) || "<missing baseHref>"}${global.module}`;
380
+ },
381
+ };
382
+
380
383
  const SiteRuntime = {
381
384
  getSiteInfo: () => __awaiter(void 0, void 0, void 0, function* () {
382
385
  const api = yield getHostConnector();
@@ -434,6 +437,7 @@ exports.NavigationRuntime = NavigationRuntime;
434
437
  exports.OemBrandingContextRuntime = OemBrandingContextRuntime;
435
438
  exports.ParamsRuntime = ParamsRuntime;
436
439
  exports.RestRuntime = RestRuntime;
440
+ exports.RouterRuntime = RouterRuntime;
437
441
  exports.SiteRuntime = SiteRuntime;
438
442
  exports.ToastRuntime = ToastRuntime;
439
443
  exports.TokenRuntime = TokenRuntime;
package/index.esm.js CHANGED
@@ -322,10 +322,6 @@ const OemBrandingContextRuntime = {
322
322
  };
323
323
 
324
324
  const NavigationRuntime = {
325
- setDeepLink: (props) => __awaiter(void 0, void 0, void 0, function* () {
326
- const api = yield getHostConnector();
327
- return api.setDeepLink(props);
328
- }),
329
325
  gotoAssetHome: (assetId, options) => __awaiter(void 0, void 0, void 0, function* () {
330
326
  const api = yield getHostConnector();
331
327
  return api.gotoAssetHome(assetId, options);
@@ -373,6 +369,13 @@ const RestRuntime = {
373
369
  },
374
370
  };
375
371
 
372
+ const RouterRuntime = {
373
+ getBasePath: () => {
374
+ var _a;
375
+ return `${((_a = document.getElementById("baseHref")) === null || _a === void 0 ? void 0 : _a.getAttribute("href")) || "<missing baseHref>"}${global.module}`;
376
+ },
377
+ };
378
+
376
379
  const SiteRuntime = {
377
380
  getSiteInfo: () => __awaiter(void 0, void 0, void 0, function* () {
378
381
  const api = yield getHostConnector();
@@ -416,4 +419,4 @@ const UserSubscriptionRuntime = {
416
419
  }),
417
420
  };
418
421
 
419
- export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomFieldRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, SiteRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, setupHostConnector };
422
+ export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomFieldRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, setupHostConnector };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core",
3
- "version": "0.3.145",
3
+ "version": "0.3.146",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -1,5 +1,2 @@
1
1
  import { INavigationRuntime } from "@trackunit/iris-app-runtime-core-api";
2
- import { SetDeepLinkPromise } from "@trackunit/react-core-contexts-api";
3
- export declare const NavigationRuntime: INavigationRuntime & {
4
- setDeepLink: SetDeepLinkPromise;
5
- };
2
+ export declare const NavigationRuntime: INavigationRuntime;
@@ -0,0 +1,4 @@
1
+ export interface IRouterRuntime {
2
+ getBasePath: () => string;
3
+ }
4
+ export declare const RouterRuntime: IRouterRuntime;
package/src/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from "./IrisOemManifestRuntime";
14
14
  export * from "./NavigationRuntime";
15
15
  export * from "./ParamsRuntime";
16
16
  export * from "./RestRuntime";
17
+ export * from "./RouterRuntime";
17
18
  export * from "./SiteRuntime";
18
19
  export * from "./ToastRuntime";
19
20
  export * from "./TokenRuntime";