@trackunit/iris-app-runtime-core 1.13.61 → 1.14.0

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
@@ -372,6 +372,13 @@ const FeatureFlagRuntime = {
372
372
  },
373
373
  };
374
374
 
375
+ const GeolocationRuntime = {
376
+ getGeolocationPosition: async (prompt) => {
377
+ const api = await getHostConnector();
378
+ return api.getGeolocationPosition(prompt);
379
+ },
380
+ };
381
+
375
382
  const ModalDialogRuntime = {
376
383
  async openModal() {
377
384
  const scrollX = window.scrollX || 0;
@@ -647,6 +654,7 @@ exports.EnvironmentRuntime = EnvironmentRuntime;
647
654
  exports.EventRuntime = EventRuntime;
648
655
  exports.ExportDataRuntime = ExportDataRuntime;
649
656
  exports.FeatureFlagRuntime = FeatureFlagRuntime;
657
+ exports.GeolocationRuntime = GeolocationRuntime;
650
658
  exports.ModalDialogRuntime = ModalDialogRuntime;
651
659
  exports.NavigationRuntime = NavigationRuntime;
652
660
  exports.OemBrandingRuntime = OemBrandingRuntime;
package/index.esm.js CHANGED
@@ -370,6 +370,13 @@ const FeatureFlagRuntime = {
370
370
  },
371
371
  };
372
372
 
373
+ const GeolocationRuntime = {
374
+ getGeolocationPosition: async (prompt) => {
375
+ const api = await getHostConnector();
376
+ return api.getGeolocationPosition(prompt);
377
+ },
378
+ };
379
+
373
380
  const ModalDialogRuntime = {
374
381
  async openModal() {
375
382
  const scrollX = window.scrollX || 0;
@@ -632,4 +639,4 @@ const WidgetConfigRuntime = {
632
639
  },
633
640
  };
634
641
 
635
- export { AnalyticsRuntime, AssetRuntime, AssetSortingRuntime, AssetsFilterBarRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, CustomersFilterBarRuntime, EnvironmentRuntime, EventRuntime, ExportDataRuntime, FeatureFlagRuntime, ModalDialogRuntime, NavigationRuntime, OemBrandingRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, SitesFilterBarRuntime, ThemeCssRuntime, TimeRangeRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, WidgetConfigRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
642
+ export { AnalyticsRuntime, AssetRuntime, AssetSortingRuntime, AssetsFilterBarRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, CustomersFilterBarRuntime, EnvironmentRuntime, EventRuntime, ExportDataRuntime, FeatureFlagRuntime, GeolocationRuntime, ModalDialogRuntime, NavigationRuntime, OemBrandingRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, SitesFilterBarRuntime, ThemeCssRuntime, TimeRangeRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, WidgetConfigRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core",
3
- "version": "1.13.61",
3
+ "version": "1.14.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "penpal": "^6.2.2",
11
- "@trackunit/iris-app-runtime-core-api": "1.12.58"
11
+ "@trackunit/iris-app-runtime-core-api": "1.13.0"
12
12
  },
13
13
  "module": "./index.esm.js",
14
14
  "main": "./index.cjs.js",
@@ -0,0 +1,2 @@
1
+ import type { GeolocationRuntimeApi } from "@trackunit/iris-app-runtime-core-api";
2
+ export declare const GeolocationRuntime: GeolocationRuntimeApi;
package/src/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from "./EnvironmentRuntime";
13
13
  export * from "./EventRuntime";
14
14
  export * from "./ExportDataRuntime";
15
15
  export * from "./FeatureFlagRuntime";
16
+ export * from "./GeolocationRuntime";
16
17
  export * from "./HostConnector";
17
18
  export * from "./ModalDialogRuntime";
18
19
  export * from "./NavigationRuntime";