@trackunit/react-core-hooks 1.7.80 → 1.7.83
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 +1 -1
- package/index.esm.js +1 -1
- package/package.json +4 -7
- package/src/analytics/AnalyticsProvider.d.ts +1 -1
- package/src/assetSorting/AssetSortingProvider.d.ts +1 -1
- package/src/confirmationDialog/ConfirmationDialogProvider.d.ts +1 -1
- package/src/environment/EnvironmentContextProvider.d.ts +1 -1
- package/src/errorHandling/ErrorHandlingProvider.d.ts +1 -1
- package/src/filter-bar/FilterBarProvider.d.ts +1 -1
- package/src/irisOemApp/IrisOemAppContextProvider.d.ts +1 -1
- package/src/modalDialog/ModalDialogProvider.d.ts +1 -1
- package/src/navigation/NavigationContextProvider.d.ts +1 -1
- package/src/subscription/UserSubscriptionProvider.d.ts +1 -1
- package/src/timeRange/TimeRangeProvider.d.ts +1 -1
- package/src/toast/ToastProvider.d.ts +1 -1
- package/src/token/TokenProvider.d.ts +1 -1
- package/src/user/CurrentUserPreferenceProvider.d.ts +5 -5
- package/src/user/CurrentUserProvider.d.ts +1 -1
- package/src/widgetConfig/WidgetConfigProvider.d.ts +3 -3
package/index.cjs.js
CHANGED
|
@@ -1335,7 +1335,7 @@ const useWidgetConfig = () => {
|
|
|
1335
1335
|
closeEditMode: async (props) => {
|
|
1336
1336
|
if (props) {
|
|
1337
1337
|
if (props.newData && props.newData.data) {
|
|
1338
|
-
await irisAppRuntimeCore.WidgetConfigRuntime.
|
|
1338
|
+
await irisAppRuntimeCore.WidgetConfigRuntime.setWidgetData(props.newData.data, props.newData.dataVersion ?? 1, props.newTitle ?? undefined);
|
|
1339
1339
|
setData(props.newData.data);
|
|
1340
1340
|
setDataVersion(props.newData.dataVersion ?? 1);
|
|
1341
1341
|
}
|
package/index.esm.js
CHANGED
|
@@ -1333,7 +1333,7 @@ const useWidgetConfig = () => {
|
|
|
1333
1333
|
closeEditMode: async (props) => {
|
|
1334
1334
|
if (props) {
|
|
1335
1335
|
if (props.newData && props.newData.data) {
|
|
1336
|
-
await WidgetConfigRuntime.
|
|
1336
|
+
await WidgetConfigRuntime.setWidgetData(props.newData.data, props.newData.dataVersion ?? 1, props.newTitle ?? undefined);
|
|
1337
1337
|
setData(props.newData.data);
|
|
1338
1338
|
setDataVersion(props.newData.dataVersion ?? 1);
|
|
1339
1339
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-hooks",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.83",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,15 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "19.0.0",
|
|
11
|
-
"jest-fetch-mock": "^3.0.3",
|
|
12
11
|
"zod": "^3.23.8",
|
|
13
|
-
"@trackunit/
|
|
14
|
-
"@trackunit/
|
|
15
|
-
"@trackunit/shared-utils": "1.9.70",
|
|
16
|
-
"@trackunit/react-test-setup": "1.4.70",
|
|
12
|
+
"@trackunit/iris-app-runtime-core": "1.8.79",
|
|
13
|
+
"@trackunit/shared-utils": "1.9.73",
|
|
17
14
|
"fflate": "^0.8.2",
|
|
18
15
|
"es-toolkit": "^1.39.10",
|
|
19
|
-
"@trackunit/iris-app-runtime-core-api": "1.7.
|
|
16
|
+
"@trackunit/iris-app-runtime-core-api": "1.7.79"
|
|
20
17
|
},
|
|
21
18
|
"module": "./index.esm.js",
|
|
22
19
|
"main": "./index.cjs.js",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventDictionary, IAnalyticsContext } from "@trackunit/
|
|
1
|
+
import { EventDictionary, IAnalyticsContext } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
export declare const AnalyticsContext: import("react").Context<IAnalyticsContext<Record<string, never>> | null>;
|
|
3
3
|
export declare const AnalyticsContextProvider: import("react").Provider<IAnalyticsContext<Record<string, never>> | null>;
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfirmationDialogContextValue } from "@trackunit/
|
|
1
|
+
import { ConfirmationDialogContextValue } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
export interface ConfirmationDialogContextProviderProps {
|
|
4
4
|
value: ConfirmationDialogContextValue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorHandlingContextValue } from "@trackunit/
|
|
1
|
+
import { ErrorHandlingContextValue } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
export declare const ErrorHandlingContext: import("react").Context<ErrorHandlingContextValue | null>;
|
|
3
3
|
export declare const ErrorHandlingContextProvider: import("react").Provider<ErrorHandlingContextValue | null>;
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterBarContext as FilterBarContextType } from "@trackunit/
|
|
1
|
+
import { FilterBarContext as FilterBarContextType } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* This is a hook to use the FilterBarProvider.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModalDialogContextValue } from "@trackunit/
|
|
1
|
+
import { ModalDialogContextValue } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
export interface ModalDialogProviderProps {
|
|
4
4
|
value: ModalDialogContextValue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HasAccessToOptions, INavigationContext } from "@trackunit/
|
|
1
|
+
import { HasAccessToOptions, INavigationContext } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
interface NavigationContextProviderProps {
|
|
3
3
|
value: INavigationContext;
|
|
4
4
|
children?: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUserSubscriptionContext } from "@trackunit/
|
|
1
|
+
import { IUserSubscriptionContext } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
interface UserSubscriptionProviderProps {
|
|
4
4
|
value: IUserSubscriptionContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimeRangeContext as TimeRangeContextType } from "@trackunit/
|
|
1
|
+
import { TimeRangeContext as TimeRangeContextType } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* This is a hook to use the TimeRangeProvider.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUserPreferencesContext } from "@trackunit/
|
|
1
|
+
import { IUserPreferencesContext } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
interface Props {
|
|
4
4
|
value: IUserPreferencesContext;
|
|
@@ -37,8 +37,8 @@ export declare const useCurrentUserLanguage: () => {
|
|
|
37
37
|
* @see { IUserPreferencesContext}
|
|
38
38
|
*/
|
|
39
39
|
export declare const useCurrentUserTimeZonePreference: () => {
|
|
40
|
-
timeZonePreference: import("@trackunit/
|
|
41
|
-
setTimeZonePreference: ((timeZonePreference: import("@trackunit/
|
|
40
|
+
timeZonePreference: import("@trackunit/iris-app-runtime-core-api").TimeZonePreferenceType | undefined;
|
|
41
|
+
setTimeZonePreference: ((timeZonePreference: import("@trackunit/iris-app-runtime-core-api").TimeZonePreferenceType) => void) | undefined;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* This is a hook providing the Current User language.
|
|
@@ -53,7 +53,7 @@ export declare const useCurrentUserTimeZonePreference: () => {
|
|
|
53
53
|
* @see { IUserPreferencesContext}
|
|
54
54
|
*/
|
|
55
55
|
export declare const useCurrentUserSystemOfMeasurement: () => {
|
|
56
|
-
systemOfMeasurement: import("@trackunit/
|
|
57
|
-
setSystemOfMeasurement: ((systemOfMeasurement: import("@trackunit/
|
|
56
|
+
systemOfMeasurement: import("@trackunit/iris-app-runtime-core-api").SystemOfMeasurementType | null;
|
|
57
|
+
setSystemOfMeasurement: ((systemOfMeasurement: import("@trackunit/iris-app-runtime-core-api").SystemOfMeasurementType) => void) | undefined;
|
|
58
58
|
};
|
|
59
59
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LoadingState, WidgetConfigContext as WidgetConfigContextType } from "@trackunit/
|
|
1
|
+
import { LoadingState, WidgetConfigContext as WidgetConfigContextType } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
export declare const WidgetConfigContext: import("react").Context<WidgetConfigContextType | null>;
|
|
4
4
|
/**
|
|
@@ -45,8 +45,8 @@ export declare const useWidgetConfig: () => {
|
|
|
45
45
|
setLoadingState: (newLoadingState: LoadingState) => Promise<void>;
|
|
46
46
|
title: string | null;
|
|
47
47
|
setTitle: (newTitle: string) => Promise<void>;
|
|
48
|
-
filters: import("@trackunit/
|
|
49
|
-
timeRange: import("@trackunit/
|
|
48
|
+
filters: import("@trackunit/iris-app-runtime-core").FilterBarContext;
|
|
49
|
+
timeRange: import("@trackunit/iris-app-runtime-core").TimeRange | null;
|
|
50
50
|
isEditMode: boolean;
|
|
51
51
|
pollInterval: number | undefined;
|
|
52
52
|
openEditMode: () => Promise<void>;
|