@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 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.setData(props.newData.data, props.newData.dataVersion ?? 1, props.newTitle ?? undefined);
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.setData(props.newData.data, props.newData.dataVersion ?? 1, props.newTitle ?? undefined);
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.80",
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/react-core-contexts-api": "1.8.75",
14
- "@trackunit/iris-app-runtime-core": "1.8.76",
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.76"
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/react-core-contexts-api";
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 { AssetSortingContextValue } from "@trackunit/react-core-contexts-api";
1
+ import { AssetSortingContextValue } from "@trackunit/iris-app-runtime-core-api";
2
2
  /**
3
3
  * This is a provider for the AssetSortingContext.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ConfirmationDialogContextValue } from "@trackunit/react-core-contexts-api";
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 { IEnvironmentContext } from "@trackunit/react-core-contexts-api";
1
+ import { IEnvironmentContext } from "@trackunit/iris-app-runtime-core-api";
2
2
  interface EnvironmentContextProviderProps {
3
3
  value: IEnvironmentContext;
4
4
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { ErrorHandlingContextValue } from "@trackunit/react-core-contexts-api";
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/react-core-contexts-api";
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 { OemBrandingContext } from "@trackunit/react-core-contexts-api";
1
+ import { OemBrandingContext } from "@trackunit/iris-app-runtime-core-api";
2
2
  /**
3
3
  * This is a hook to use the OemBrandingContext.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ModalDialogContextValue } from "@trackunit/react-core-contexts-api";
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/react-core-contexts-api";
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/react-core-contexts-api";
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/react-core-contexts-api";
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 { IToastContext } from "@trackunit/react-core-contexts-api";
1
+ import { IToastContext } from "@trackunit/iris-app-runtime-core-api";
2
2
  import { ReactNode } from "react";
3
3
  export interface ToastContextProviderProps {
4
4
  value: IToastContext;
@@ -1,4 +1,4 @@
1
- import { ITokenContext } from "@trackunit/react-core-contexts-api";
1
+ import { ITokenContext } from "@trackunit/iris-app-runtime-core-api";
2
2
  import { ReactNode } from "react";
3
3
  /**
4
4
  * This is a hook to use the TokenContext.
@@ -1,4 +1,4 @@
1
- import { IUserPreferencesContext } from "@trackunit/react-core-contexts-api";
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/react-core-contexts-api").TimeZonePreferenceType | undefined;
41
- setTimeZonePreference: ((timeZonePreference: import("@trackunit/react-core-contexts-api").TimeZonePreferenceType) => void) | undefined;
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/react-core-contexts-api").SystemOfMeasurementType | null;
57
- setSystemOfMeasurement: ((systemOfMeasurement: import("@trackunit/react-core-contexts-api").SystemOfMeasurementType) => void) | undefined;
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 { CurrentUserContextInterface } from "@trackunit/react-core-contexts-api";
1
+ import { CurrentUserContextInterface } from "@trackunit/iris-app-runtime-core-api";
2
2
  import { ReactNode } from "react";
3
3
  interface Props {
4
4
  value: CurrentUserContextInterface;
@@ -1,4 +1,4 @@
1
- import { LoadingState, WidgetConfigContext as WidgetConfigContextType } from "@trackunit/react-core-contexts-api";
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/react-core-contexts-api").FilterBarContext;
49
- timeRange: import("@trackunit/react-core-contexts-api").TimeRange | null;
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>;