@trackunit/iris-app-runtime-core 1.8.8 → 1.8.10
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 +9 -0
- package/index.esm.js +9 -0
- package/package.json +4 -4
- package/src/WidgetConfigRuntime.d.ts +1 -9
package/index.cjs.js
CHANGED
|
@@ -19,6 +19,7 @@ const setupHostConnector = (subscribedMethods) => {
|
|
|
19
19
|
onCustomersFilterBarValuesChanged: doNothingByDefault,
|
|
20
20
|
onSitesFilterBarValuesChanged: doNothingByDefault,
|
|
21
21
|
onTimeRangeChanged: doNothingByDefault,
|
|
22
|
+
onWidgetPollIntervalChanged: doNothingByDefault,
|
|
22
23
|
...subscribedMethods,
|
|
23
24
|
};
|
|
24
25
|
const connection = penpal.connectToParent({ methods });
|
|
@@ -533,6 +534,14 @@ const WidgetConfigRuntime = {
|
|
|
533
534
|
const api = await getHostConnector();
|
|
534
535
|
return api.closeEditMode();
|
|
535
536
|
},
|
|
537
|
+
setLoadingState: async (loadingState) => {
|
|
538
|
+
const api = await getHostConnector();
|
|
539
|
+
return api.setLoadingState(loadingState);
|
|
540
|
+
},
|
|
541
|
+
getPollInterval: async () => {
|
|
542
|
+
const api = await getHostConnector();
|
|
543
|
+
return api.getWidgetPollInterval();
|
|
544
|
+
},
|
|
536
545
|
};
|
|
537
546
|
|
|
538
547
|
exports.AnalyticsContextRuntime = AnalyticsContextRuntime;
|
package/index.esm.js
CHANGED
|
@@ -17,6 +17,7 @@ const setupHostConnector = (subscribedMethods) => {
|
|
|
17
17
|
onCustomersFilterBarValuesChanged: doNothingByDefault,
|
|
18
18
|
onSitesFilterBarValuesChanged: doNothingByDefault,
|
|
19
19
|
onTimeRangeChanged: doNothingByDefault,
|
|
20
|
+
onWidgetPollIntervalChanged: doNothingByDefault,
|
|
20
21
|
...subscribedMethods,
|
|
21
22
|
};
|
|
22
23
|
const connection = connectToParent({ methods });
|
|
@@ -531,6 +532,14 @@ const WidgetConfigRuntime = {
|
|
|
531
532
|
const api = await getHostConnector();
|
|
532
533
|
return api.closeEditMode();
|
|
533
534
|
},
|
|
535
|
+
setLoadingState: async (loadingState) => {
|
|
536
|
+
const api = await getHostConnector();
|
|
537
|
+
return api.setLoadingState(loadingState);
|
|
538
|
+
},
|
|
539
|
+
getPollInterval: async () => {
|
|
540
|
+
const api = await getHostConnector();
|
|
541
|
+
return api.getWidgetPollInterval();
|
|
542
|
+
},
|
|
534
543
|
};
|
|
535
544
|
|
|
536
545
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.10",
|
|
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.
|
|
13
|
-
"@trackunit/iris-app-runtime-core-api": "1.7.
|
|
14
|
-
"@trackunit/react-test-setup": "1.4.
|
|
12
|
+
"@trackunit/react-core-contexts-api": "1.8.10",
|
|
13
|
+
"@trackunit/iris-app-runtime-core-api": "1.7.10",
|
|
14
|
+
"@trackunit/react-test-setup": "1.4.8"
|
|
15
15
|
},
|
|
16
16
|
"module": "./index.esm.js",
|
|
17
17
|
"main": "./index.cjs.js",
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
getData: () => Promise<Record<string, unknown>>;
|
|
3
|
-
setData: (data: Record<string, unknown>, dataVersion: number, title?: string) => Promise<void>;
|
|
4
|
-
getDataVersion: () => Promise<number>;
|
|
5
|
-
openEditMode: () => Promise<void>;
|
|
6
|
-
closeEditMode: () => Promise<void>;
|
|
7
|
-
getTitle: () => Promise<string>;
|
|
8
|
-
setTitle: (title: string) => Promise<void>;
|
|
9
|
-
}
|
|
1
|
+
import { WidgetConfigRuntimeApi } from "@trackunit/iris-app-runtime-core-api";
|
|
10
2
|
export declare const WidgetConfigRuntime: WidgetConfigRuntimeApi;
|