@trackunit/react-core-hooks 1.15.36 → 1.16.3
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 +3 -1
- package/index.esm.js +3 -1
- package/package.json +4 -4
- package/src/widgetConfig/useWidgetConfig.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -1313,7 +1313,7 @@ const useWidgetConfig = () => {
|
|
|
1313
1313
|
const widgetConfigContext = useWidgetConfigAsync();
|
|
1314
1314
|
const [widgetData, dispatch] = react.useReducer(widgetDataReducer, INITIAL_WIDGET_DATA_STATE);
|
|
1315
1315
|
const filters = useFilterBarContext();
|
|
1316
|
-
const { timeRange } = useTimeRange();
|
|
1316
|
+
const { timeRange, temporalPeriod } = useTimeRange();
|
|
1317
1317
|
const [edit, setEdit] = react.useState(() => window.location.hash.includes("edit=true"));
|
|
1318
1318
|
react.useEffect(() => {
|
|
1319
1319
|
const handleHashChange = () => {
|
|
@@ -1348,6 +1348,7 @@ const useWidgetConfig = () => {
|
|
|
1348
1348
|
},
|
|
1349
1349
|
filters,
|
|
1350
1350
|
timeRange,
|
|
1351
|
+
temporalPeriod,
|
|
1351
1352
|
isEditMode: edit,
|
|
1352
1353
|
pollInterval: widgetConfigContext.pollInterval,
|
|
1353
1354
|
openEditMode: async () => {
|
|
@@ -1371,6 +1372,7 @@ const useWidgetConfig = () => {
|
|
|
1371
1372
|
widgetData.dataVersion,
|
|
1372
1373
|
widgetData.title,
|
|
1373
1374
|
filters,
|
|
1375
|
+
temporalPeriod,
|
|
1374
1376
|
timeRange,
|
|
1375
1377
|
edit,
|
|
1376
1378
|
widgetData.loadingData,
|
package/index.esm.js
CHANGED
|
@@ -1311,7 +1311,7 @@ const useWidgetConfig = () => {
|
|
|
1311
1311
|
const widgetConfigContext = useWidgetConfigAsync();
|
|
1312
1312
|
const [widgetData, dispatch] = useReducer(widgetDataReducer, INITIAL_WIDGET_DATA_STATE);
|
|
1313
1313
|
const filters = useFilterBarContext();
|
|
1314
|
-
const { timeRange } = useTimeRange();
|
|
1314
|
+
const { timeRange, temporalPeriod } = useTimeRange();
|
|
1315
1315
|
const [edit, setEdit] = useState(() => window.location.hash.includes("edit=true"));
|
|
1316
1316
|
useEffect(() => {
|
|
1317
1317
|
const handleHashChange = () => {
|
|
@@ -1346,6 +1346,7 @@ const useWidgetConfig = () => {
|
|
|
1346
1346
|
},
|
|
1347
1347
|
filters,
|
|
1348
1348
|
timeRange,
|
|
1349
|
+
temporalPeriod,
|
|
1349
1350
|
isEditMode: edit,
|
|
1350
1351
|
pollInterval: widgetConfigContext.pollInterval,
|
|
1351
1352
|
openEditMode: async () => {
|
|
@@ -1369,6 +1370,7 @@ const useWidgetConfig = () => {
|
|
|
1369
1370
|
widgetData.dataVersion,
|
|
1370
1371
|
widgetData.title,
|
|
1371
1372
|
filters,
|
|
1373
|
+
temporalPeriod,
|
|
1372
1374
|
timeRange,
|
|
1373
1375
|
edit,
|
|
1374
1376
|
widgetData.loadingData,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-hooks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.3",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"es-toolkit": "^1.39.10",
|
|
11
|
-
"@trackunit/iris-app-runtime-core": "1.
|
|
12
|
-
"@trackunit/iris-app-runtime-core-api": "1.
|
|
13
|
-
"@trackunit/react-core-contexts-api": "1.
|
|
11
|
+
"@trackunit/iris-app-runtime-core": "1.16.2",
|
|
12
|
+
"@trackunit/iris-app-runtime-core-api": "1.15.1",
|
|
13
|
+
"@trackunit/react-core-contexts-api": "1.16.1",
|
|
14
14
|
"zod": "^3.25.76"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
@@ -38,6 +38,7 @@ export declare const useWidgetConfig: () => {
|
|
|
38
38
|
setTitle: (newTitle: string) => Promise<void>;
|
|
39
39
|
filters: import("@trackunit/iris-app-runtime-core-api").FilterBarContext;
|
|
40
40
|
timeRange: import("@trackunit/iris-app-runtime-core-api").TimeRange | null;
|
|
41
|
+
temporalPeriod: import("@trackunit/iris-app-runtime-core-api").TemporalPeriod | null;
|
|
41
42
|
isEditMode: boolean;
|
|
42
43
|
pollInterval: number | undefined;
|
|
43
44
|
openEditMode: () => Promise<void>;
|