@trackunit/iris-app-runtime-core 1.8.50 → 1.8.52

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
@@ -346,6 +346,13 @@ const EventRuntime = {
346
346
  },
347
347
  };
348
348
 
349
+ const ExportDataRuntime = {
350
+ exportData: async ({ document, variables, columns, name, headers, }) => {
351
+ const api = await getHostConnector();
352
+ return api.exportData({ document, variables, columns, name, headers });
353
+ },
354
+ };
355
+
349
356
  const OemBrandingContextRuntime = {
350
357
  getOemBrandingContextRuntime: async () => {
351
358
  const api = await getHostConnector();
@@ -529,6 +536,10 @@ const ToastRuntime = {
529
536
  break;
530
537
  }
531
538
  },
539
+ async removeToast(id) {
540
+ const api = await getHostConnector();
541
+ await api.removeToast(id);
542
+ },
532
543
  };
533
544
 
534
545
  const TokenRuntime = {
@@ -595,6 +606,7 @@ exports.CustomerRuntime = CustomerRuntime;
595
606
  exports.CustomersFilterBarRuntime = CustomersFilterBarRuntime;
596
607
  exports.EnvironmentRuntime = EnvironmentRuntime;
597
608
  exports.EventRuntime = EventRuntime;
609
+ exports.ExportDataRuntime = ExportDataRuntime;
598
610
  exports.ModalDialogRuntime = ModalDialogRuntime;
599
611
  exports.NavigationRuntime = NavigationRuntime;
600
612
  exports.OemBrandingContextRuntime = OemBrandingContextRuntime;
package/index.esm.js CHANGED
@@ -344,6 +344,13 @@ const EventRuntime = {
344
344
  },
345
345
  };
346
346
 
347
+ const ExportDataRuntime = {
348
+ exportData: async ({ document, variables, columns, name, headers, }) => {
349
+ const api = await getHostConnector();
350
+ return api.exportData({ document, variables, columns, name, headers });
351
+ },
352
+ };
353
+
347
354
  const OemBrandingContextRuntime = {
348
355
  getOemBrandingContextRuntime: async () => {
349
356
  const api = await getHostConnector();
@@ -527,6 +534,10 @@ const ToastRuntime = {
527
534
  break;
528
535
  }
529
536
  },
537
+ async removeToast(id) {
538
+ const api = await getHostConnector();
539
+ await api.removeToast(id);
540
+ },
530
541
  };
531
542
 
532
543
  const TokenRuntime = {
@@ -582,4 +593,4 @@ const WidgetConfigRuntime = {
582
593
  },
583
594
  };
584
595
 
585
- export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, AssetsFilterBarRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, CustomersFilterBarRuntime, EnvironmentRuntime, EventRuntime, ModalDialogRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, SitesFilterBarRuntime, ThemeCssRuntime, TimeRangeRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, WidgetConfigRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
596
+ export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, AssetsFilterBarRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, CustomersFilterBarRuntime, EnvironmentRuntime, EventRuntime, ExportDataRuntime, ModalDialogRuntime, NavigationRuntime, OemBrandingContextRuntime, 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.8.50",
3
+ "version": "1.8.52",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,9 +9,9 @@
9
9
  "dependencies": {
10
10
  "penpal": "^6.2.2",
11
11
  "jest-fetch-mock": "^3.0.3",
12
- "@trackunit/react-core-contexts-api": "1.8.50",
13
- "@trackunit/iris-app-runtime-core-api": "1.7.50",
14
- "@trackunit/react-test-setup": "1.4.46"
12
+ "@trackunit/react-core-contexts-api": "1.8.52",
13
+ "@trackunit/iris-app-runtime-core-api": "1.7.52",
14
+ "@trackunit/react-test-setup": "1.4.47"
15
15
  },
16
16
  "module": "./index.esm.js",
17
17
  "main": "./index.cjs.js",
@@ -0,0 +1,2 @@
1
+ import { ExportDataRuntimeApi } from "@trackunit/iris-app-runtime-core-api";
2
+ export declare const ExportDataRuntime: ExportDataRuntimeApi;
@@ -1,4 +1,5 @@
1
1
  import { Toast } from "@trackunit/react-core-contexts-api";
2
2
  export declare const ToastRuntime: {
3
3
  addToast(toast: Toast): Promise<void | "primaryAction" | "secondaryAction">;
4
+ removeToast(id: string): Promise<void>;
4
5
  };
package/src/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from "./CustomersFilterBarRuntime";
11
11
  export * from "./CustomFieldRuntime";
12
12
  export * from "./EnvironmentRuntime";
13
13
  export * from "./EventRuntime";
14
+ export * from "./ExportDataRuntime";
14
15
  export * from "./HostConnector";
15
16
  export * from "./IrisOemManifestRuntime";
16
17
  export * from "./ModalDialogRuntime";