@trackunit/iris-app-runtime-core 1.5.1 → 1.5.2
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 +5 -1
- package/index.esm.js +5 -1
- package/package.json +3 -3
- package/src/TimeRangeRuntime.d.ts +5 -2
package/index.cjs.js
CHANGED
|
@@ -472,7 +472,11 @@ const ThemeCssRuntime = {
|
|
|
472
472
|
const TimeRangeRuntime = {
|
|
473
473
|
getTimeRange: async () => {
|
|
474
474
|
const api = await getHostConnector();
|
|
475
|
-
|
|
475
|
+
const timeRange = await api.getTimeRange();
|
|
476
|
+
return {
|
|
477
|
+
timeRange: timeRange.timeRange,
|
|
478
|
+
temporalPeriod: timeRange.temporalPeriod,
|
|
479
|
+
};
|
|
476
480
|
},
|
|
477
481
|
};
|
|
478
482
|
|
package/index.esm.js
CHANGED
|
@@ -470,7 +470,11 @@ const ThemeCssRuntime = {
|
|
|
470
470
|
const TimeRangeRuntime = {
|
|
471
471
|
getTimeRange: async () => {
|
|
472
472
|
const api = await getHostConnector();
|
|
473
|
-
|
|
473
|
+
const timeRange = await api.getTimeRange();
|
|
474
|
+
return {
|
|
475
|
+
timeRange: timeRange.timeRange,
|
|
476
|
+
temporalPeriod: timeRange.temporalPeriod,
|
|
477
|
+
};
|
|
474
478
|
},
|
|
475
479
|
};
|
|
476
480
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
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.5.
|
|
13
|
-
"@trackunit/iris-app-runtime-core-api": "1.4.
|
|
12
|
+
"@trackunit/react-core-contexts-api": "1.5.2",
|
|
13
|
+
"@trackunit/iris-app-runtime-core-api": "1.4.2",
|
|
14
14
|
"@trackunit/react-test-setup": "1.1.1"
|
|
15
15
|
},
|
|
16
16
|
"module": "./index.esm.js",
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { TimeRange } from "@trackunit/react-core-contexts-api";
|
|
1
|
+
import { TemporalPeriod, TimeRange } from "@trackunit/react-core-contexts-api";
|
|
2
2
|
export interface TimeRangeRuntimeApi {
|
|
3
3
|
/**
|
|
4
4
|
* Gets the time range.
|
|
5
5
|
*/
|
|
6
|
-
getTimeRange: () => Promise<
|
|
6
|
+
getTimeRange: () => Promise<{
|
|
7
|
+
timeRange: TimeRange | null;
|
|
8
|
+
temporalPeriod: TemporalPeriod | null;
|
|
9
|
+
}>;
|
|
7
10
|
}
|
|
8
11
|
export declare const TimeRangeRuntime: TimeRangeRuntimeApi;
|