@trackunit/iris-app-runtime-core 1.4.70 → 1.4.71
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 -1
- package/package.json +3 -3
- package/src/TimeRangeRuntime.d.ts +8 -0
- package/src/index.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -18,6 +18,7 @@ const setupHostConnector = (subscribedMethods) => {
|
|
|
18
18
|
onAssetsFilterBarValuesChanged: doNothingByDefault,
|
|
19
19
|
onCustomersFilterBarValuesChanged: doNothingByDefault,
|
|
20
20
|
onSitesFilterBarValuesChanged: doNothingByDefault,
|
|
21
|
+
onTimeRangeChanged: doNothingByDefault,
|
|
21
22
|
...subscribedMethods,
|
|
22
23
|
};
|
|
23
24
|
const connection = penpal.connectToParent({ methods });
|
|
@@ -468,6 +469,13 @@ const ThemeCssRuntime = {
|
|
|
468
469
|
},
|
|
469
470
|
};
|
|
470
471
|
|
|
472
|
+
const TimeRangeRuntime = {
|
|
473
|
+
getTimeRange: async () => {
|
|
474
|
+
const api = await getHostConnector();
|
|
475
|
+
return api.getTimeRange();
|
|
476
|
+
},
|
|
477
|
+
};
|
|
478
|
+
|
|
471
479
|
const ToastRuntime = {
|
|
472
480
|
async addToast(toast) {
|
|
473
481
|
const api = await getHostConnector();
|
|
@@ -520,6 +528,7 @@ exports.RouterRuntime = RouterRuntime;
|
|
|
520
528
|
exports.SiteRuntime = SiteRuntime;
|
|
521
529
|
exports.SitesFilterBarRuntime = SitesFilterBarRuntime;
|
|
522
530
|
exports.ThemeCssRuntime = ThemeCssRuntime;
|
|
531
|
+
exports.TimeRangeRuntime = TimeRangeRuntime;
|
|
523
532
|
exports.ToastRuntime = ToastRuntime;
|
|
524
533
|
exports.TokenRuntime = TokenRuntime;
|
|
525
534
|
exports.UserSubscriptionRuntime = UserSubscriptionRuntime;
|
package/index.esm.js
CHANGED
|
@@ -16,6 +16,7 @@ const setupHostConnector = (subscribedMethods) => {
|
|
|
16
16
|
onAssetsFilterBarValuesChanged: doNothingByDefault,
|
|
17
17
|
onCustomersFilterBarValuesChanged: doNothingByDefault,
|
|
18
18
|
onSitesFilterBarValuesChanged: doNothingByDefault,
|
|
19
|
+
onTimeRangeChanged: doNothingByDefault,
|
|
19
20
|
...subscribedMethods,
|
|
20
21
|
};
|
|
21
22
|
const connection = connectToParent({ methods });
|
|
@@ -466,6 +467,13 @@ const ThemeCssRuntime = {
|
|
|
466
467
|
},
|
|
467
468
|
};
|
|
468
469
|
|
|
470
|
+
const TimeRangeRuntime = {
|
|
471
|
+
getTimeRange: async () => {
|
|
472
|
+
const api = await getHostConnector();
|
|
473
|
+
return api.getTimeRange();
|
|
474
|
+
},
|
|
475
|
+
};
|
|
476
|
+
|
|
469
477
|
const ToastRuntime = {
|
|
470
478
|
async addToast(toast) {
|
|
471
479
|
const api = await getHostConnector();
|
|
@@ -497,4 +505,4 @@ const UserSubscriptionRuntime = {
|
|
|
497
505
|
},
|
|
498
506
|
};
|
|
499
507
|
|
|
500
|
-
export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, AssetsFilterBarRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, CustomersFilterBarRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, ModalDialogRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, SitesFilterBarRuntime, ThemeCssRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
|
|
508
|
+
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, 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.
|
|
3
|
+
"version": "1.4.71",
|
|
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.
|
|
13
|
-
"@trackunit/iris-app-runtime-core-api": "1.3.
|
|
12
|
+
"@trackunit/react-core-contexts-api": "1.4.70",
|
|
13
|
+
"@trackunit/iris-app-runtime-core-api": "1.3.71"
|
|
14
14
|
},
|
|
15
15
|
"module": "./index.esm.js",
|
|
16
16
|
"main": "./index.cjs.js",
|
package/src/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./RouterRuntime";
|
|
|
22
22
|
export * from "./SiteRuntime";
|
|
23
23
|
export * from "./SitesFilterBarRuntime";
|
|
24
24
|
export * from "./ThemeCssRuntime";
|
|
25
|
+
export * from "./TimeRangeRuntime";
|
|
25
26
|
export * from "./ToastRuntime";
|
|
26
27
|
export * from "./TokenRuntime";
|
|
27
28
|
export * from "./UserSubscriptionRuntime";
|