@trackunit/iris-app-runtime-core 1.4.101 → 1.4.103

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
@@ -528,6 +528,10 @@ const WidgetConfigRuntime = {
528
528
  const api = await getHostConnector();
529
529
  return api.setWidgetTitle(title);
530
530
  },
531
+ closeEditMode: async () => {
532
+ const api = await getHostConnector();
533
+ return api.closeEditMode();
534
+ },
531
535
  };
532
536
 
533
537
  exports.AnalyticsContextRuntime = AnalyticsContextRuntime;
package/index.esm.js CHANGED
@@ -526,6 +526,10 @@ const WidgetConfigRuntime = {
526
526
  const api = await getHostConnector();
527
527
  return api.setWidgetTitle(title);
528
528
  },
529
+ closeEditMode: async () => {
530
+ const api = await getHostConnector();
531
+ return api.closeEditMode();
532
+ },
529
533
  };
530
534
 
531
535
  export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, AssetsFilterBarRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, CustomersFilterBarRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, 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.4.101",
3
+ "version": "1.4.103",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,8 +9,8 @@
9
9
  "dependencies": {
10
10
  "penpal": "^6.2.2",
11
11
  "jest-fetch-mock": "^3.0.3",
12
- "@trackunit/react-core-contexts-api": "1.4.100",
13
- "@trackunit/iris-app-runtime-core-api": "1.3.101"
12
+ "@trackunit/react-core-contexts-api": "1.4.101",
13
+ "@trackunit/iris-app-runtime-core-api": "1.3.103"
14
14
  },
15
15
  "module": "./index.esm.js",
16
16
  "main": "./index.cjs.js",
@@ -2,6 +2,7 @@ export interface WidgetConfigRuntimeApi {
2
2
  getData: () => Promise<Record<string, unknown>>;
3
3
  setData: (data: Record<string, unknown>, dataVersion: number) => Promise<void>;
4
4
  getDataVersion: () => Promise<number>;
5
+ closeEditMode: () => Promise<void>;
5
6
  getTitle: () => Promise<string>;
6
7
  setTitle: (title: string) => Promise<void>;
7
8
  }