@hortiview/modulebase 0.0.13179 → 0.0.13321

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.
@@ -1,4 +1,4 @@
1
- import { u as i } from "../useQuery-CwwWze9O.js";
1
+ import { u as i } from "../useQuery-XBGd5Kep.js";
2
2
  import { useBasePropsStore as n } from "../stores/BasePropsStore.js";
3
3
  import { universalSelector as p } from "../types/Requests.js";
4
4
  import { fetchFromCustomApi as a } from "../utils/fetches.js";
@@ -1,14 +1,15 @@
1
- import { u } from "../useMutation-3rykrmeD.js";
2
- import "../components/ModuleBase.js";
1
+ import { u } from "../useMutation-Num57Ulc.js";
2
+ import "react/jsx-runtime";
3
3
  import "react";
4
- import "../stores/BasePropsStore.js";
5
4
  import "../provider/SignalR/SignalRProvider.js";
5
+ import "../stores/BasePropsStore.js";
6
+ import "../components/ModuleCore.js";
6
7
  import "../omit-B7MWDtHq.js";
7
8
  import "../stores/EnvironmentStore.js";
8
9
  import { mutateOnCustomApi as n } from "../utils/fetches.js";
9
10
  import "./useEntity.js";
10
11
  import "../api-D9Lmqe6S.js";
11
- const O = ({
12
+ const b = ({
12
13
  endpoint: t,
13
14
  method: o,
14
15
  token: m,
@@ -17,5 +18,5 @@ const O = ({
17
18
  mutationFn: (i, p) => n(p ?? t, i, o, m, r)
18
19
  });
19
20
  export {
20
- O as useCustomMutation
21
+ b as useCustomMutation
21
22
  };
@@ -1,4 +1,4 @@
1
- import { u as f } from "../useQuery-CwwWze9O.js";
1
+ import { u as f } from "../useQuery-XBGd5Kep.js";
2
2
  import { useMemo as p } from "react";
3
3
  import { useBasePropsStore as y } from "../stores/BasePropsStore.js";
4
4
  import { universalSelector as E } from "../types/Requests.js";
@@ -1,4 +1,4 @@
1
- import { u as m } from "../useQuery-CwwWze9O.js";
1
+ import { u as m } from "../useQuery-XBGd5Kep.js";
2
2
  import { g as u } from "../api-D9Lmqe6S.js";
3
3
  import { useBasePropsStore as n } from "../stores/BasePropsStore.js";
4
4
  import { universalSelector as s } from "../types/Requests.js";
@@ -1,17 +1,25 @@
1
- import { u } from "../useMutation-3rykrmeD.js";
2
- import { useBasePropsStore as t } from "../stores/BasePropsStore.js";
3
- const f = ({
1
+ import { u as n } from "../useMutation-Num57Ulc.js";
2
+ import { useBasePropsStore as r } from "../stores/BasePropsStore.js";
3
+ const a = ({
4
4
  authenticationKey: i,
5
- queue: e,
6
- topic: s
5
+ queue: s,
6
+ topic: o
7
7
  }) => {
8
- const r = t((o) => o.serviceBusNotification), n = t((o) => o.throwError);
9
- if (!r)
10
- throw n?.("serviceBusNotification is not defined", 400);
11
- return u({
12
- mutationFn: (o) => r(o, i, e, s)
8
+ const e = r((t) => t.serviceBusNotification), c = r((t) => t.throwError);
9
+ if (!e)
10
+ throw c?.("serviceBusNotification is not defined", 400);
11
+ return n({
12
+ mutationFn: (t) => e(t, i, s, o)
13
+ });
14
+ }, N = () => {
15
+ const i = r((o) => o.riseNotification), s = r((o) => o.throwError);
16
+ if (!i)
17
+ throw s?.("riseNotification is not defined", 400);
18
+ return n({
19
+ mutationFn: (o) => i(o)
13
20
  });
14
21
  };
15
22
  export {
16
- f as useServiceBus
23
+ N as useNotification,
24
+ a as useServiceBus
17
25
  };
@@ -2,6 +2,9 @@ import { QueryClient } from '@tanstack/react-query';
2
2
  import { RouteObject } from 'react-router';
3
3
  import { BaseProps } from '../types/BaseProps';
4
4
  import { EnvConfig } from '../types/Environment';
5
+ /**
6
+ * Main component of the module. This component is used to create a module with a router and a signalR provider.
7
+ */
5
8
  export declare const ModuleBase: ({ props, routes, env, useSignalR, queryClient, }: {
6
9
  props: BaseProps;
7
10
  routes: RouteObject[];
@@ -0,0 +1,13 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ import { BaseProps } from '../types/BaseProps';
3
+ import { EnvConfig } from '../types/Environment';
4
+ export declare const ModuleQueryClient: QueryClient;
5
+ /**
6
+ * Minimal component to create a module with a query client and a signalR provider (to use module api)
7
+ */
8
+ export declare const ModuleCore: ({ props, env, queryClient, children, }: {
9
+ props: BaseProps;
10
+ env?: EnvConfig;
11
+ queryClient?: QueryClient;
12
+ children: React.ReactNode;
13
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,19 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
- import { AlertServiceBusMessage } from '../types/ServiceBus';
3
2
  import { BaseResponse } from '../types/Requests';
3
+ import { AlertServiceBusMessage } from '../types/ServiceBus';
4
4
  /**
5
5
  *
6
6
  * @param authenticationKey SASToken, that will be provided by the vendor portal of HortiView
7
7
  * @param queue url of the service bus queue
8
8
  * @param topic topic of the service bus, where the message will be sent to
9
- * @returns
9
+ * @deprecated use useNotification instead
10
10
  */
11
11
  export declare const useServiceBus: ({ authenticationKey, queue, topic, }: {
12
12
  authenticationKey: string;
13
13
  queue: string;
14
14
  topic: string;
15
15
  }) => UseMutationResult<BaseResponse<unknown>, Error, AlertServiceBusMessage, unknown>;
16
+ /**
17
+ * create a notification in the service bus
18
+ */
19
+ export declare const useNotification: () => UseMutationResult<BaseResponse<unknown>, Error, AlertServiceBusMessage, unknown>;
@@ -9,7 +9,7 @@ export declare const useBaseProps: () => Pick<import('../types/Deprecated').Depr
9
9
  currentLanguageId?: string;
10
10
  alertRules?: string;
11
11
  commonOptions?: import('../types/CommonOptions').AllDropdownsData<import('../types/CommonOptions').CommonOption>["items"];
12
- serviceBusNotification?: (message: import('../types/ServiceBus').AlertServiceBusMessage, apiKey: string, queue: string, topic: string) => Promise<unknown>;
12
+ riseNotification?: (message: import('../main').AlertServiceBusMessage) => Promise<unknown>;
13
13
  navigateInHortiview?: (path: string) => void;
14
14
  addBreadcrumbTranslation?: (translation: {
15
15
  key: string;
@@ -22,7 +22,7 @@ export declare const useBaseProps: () => Pick<import('../types/Deprecated').Depr
22
22
  throwError?: (message: string, code: number) => void;
23
23
  } & {
24
24
  setBaseProps: (props: import('../main').BaseProps) => void;
25
- }, keyof import('../types/Deprecated').DeprecatedBaseProps | "modulePermissionToken" | "moduleId" | "organizationId" | "basePath" | "currentNavigationPath" | "sourcePath" | "currentLanguage" | "currentLanguageId" | "alertRules" | "commonOptions" | "serviceBusNotification" | "navigateInHortiview" | "addBreadcrumbTranslation" | "showSnackbar" | "showMessage" | "logEvent" | "logError" | "throwError">;
25
+ }, keyof import('../types/Deprecated').DeprecatedBaseProps | "modulePermissionToken" | "moduleId" | "organizationId" | "basePath" | "currentNavigationPath" | "sourcePath" | "currentLanguage" | "currentLanguageId" | "alertRules" | "commonOptions" | "riseNotification" | "navigateInHortiview" | "addBreadcrumbTranslation" | "showSnackbar" | "showMessage" | "logEvent" | "logError" | "throwError">;
26
26
  export declare const useConfig: () => Pick<{
27
27
  environment: import('../types/Environment').HortiViewEnvironments;
28
28
  setEnvironment: (environment: import('../types/Environment').HortiViewEnvironments) => void;
@@ -1,13 +1,16 @@
1
1
  export { ModuleBase } from './components/ModuleBase';
2
+ export { ModuleCore } from './components/ModuleCore';
2
3
  export type { BaseProps } from './types/BaseProps';
4
+ export type * from './types/ModuleApi';
5
+ export type { AlertServiceBusMessage } from './types/ServiceBus';
3
6
  export { useBreadcrumbTranslation } from './hooks/useBreadcrumbTranslation';
4
7
  export { useSignalRMessages } from './hooks/useSignalRMessages';
5
8
  export * from './module-router';
6
9
  export { useNavigate } from './module-router';
7
10
  export { useBaseProps, useConfig } from './hooks/useStores';
8
11
  export { useCustom } from './hooks/useCustom';
12
+ export { useCustomMutation } from './hooks/useCustomMutation';
9
13
  export { useEntity } from './hooks/useEntity';
10
14
  export { useOption } from './hooks/useOption';
11
- export { useCustomMutation } from './hooks/useCustomMutation';
12
- export { useServiceBus } from './hooks/useServiceBus';
15
+ export { useNotification, useServiceBus } from './hooks/useServiceBus';
13
16
  export { mutateOnCustomApi } from './utils/fetches';
@@ -26,8 +26,7 @@ export type BaseProps = DeprecatedBaseProps & {
26
26
  currentLanguageId?: string;
27
27
  alertRules?: string;
28
28
  commonOptions?: AllDropdownsData<CommonOption>['items'];
29
- serviceBusNotification?: (message: AlertServiceBusMessage, //currently only used for alerts
30
- apiKey: string, queue: string, topic: string) => Promise<unknown>;
29
+ riseNotification?: (message: AlertServiceBusMessage) => Promise<unknown>;
31
30
  navigateInHortiview?: (path: string) => void;
32
31
  addBreadcrumbTranslation?: (translation: {
33
32
  key: string;
@@ -1,3 +1,4 @@
1
+ import { AlertServiceBusMessage } from './ServiceBus';
1
2
  import { SystemMessage } from './SystemMessage';
2
3
  /**
3
4
  * @deprecated should not be used anymore, will be removed in the near future (max 2 months)
@@ -21,6 +22,11 @@ export type DeprecatedBaseProps = {
21
22
  * @deprecated
22
23
  */
23
24
  addNotification?: (notification: OldAlertDto) => void;
25
+ /**
26
+ * @deprecated use `riseNotification` instead
27
+ */
28
+ serviceBusNotification?: (message: AlertServiceBusMessage, //currently only used for alerts
29
+ apiKey: string, queue: string, topic: string) => Promise<unknown>;
24
30
  /**
25
31
  * @deprecated Use `showMessage` instead
26
32
  */
package/dist/main.js CHANGED
@@ -1,136 +1,139 @@
1
1
  import { ModuleBase as s } from "./components/ModuleBase.js";
2
- import { useBreadcrumbTranslation as r } from "./hooks/useBreadcrumbTranslation.js";
3
- import { useSignalRMessages as u } from "./hooks/useSignalRMessages.js";
4
- import { useNavigate as n } from "./module-router.js";
5
- import { useBaseProps as S, useConfig as R } from "./hooks/useStores.js";
6
- import { useCustom as E } from "./hooks/useCustom.js";
7
- import { useEntity as l } from "./hooks/useEntity.js";
8
- import { useOption as A } from "./hooks/useOption.js";
9
- import { useCustomMutation as d } from "./hooks/useCustomMutation.js";
10
- import { useServiceBus as h } from "./hooks/useServiceBus.js";
11
- import { mutateOnCustomApi as x } from "./utils/fetches.js";
12
- import { A as g, B as v, F as P, H as f, I as y, a as L, b as k, L as D, c as H, M, d as B, N as O, e as b, f as T, O as w, P as I, R as V, g as q, h as z, i as G, S as K, j as W, k as j, l as J, m as Q, D as X, n as Y, E as Z, o as $, p as aa, q as ea, r as sa, s as ta, t as ra, u as oa, v as ua, V as ia, w as na, x as ca, y as Sa, z as Ra, C as ma, G as Ea, J as Fa, K as la, Q as Na, T as Aa, U as _a, W as da, X as pa, Y as ha, Z as Ua, _ as xa, $ as Ca, a0 as ga, a1 as va, a2 as Pa, a3 as fa, a4 as ya, a5 as La, a6 as ka, a7 as Da, a8 as Ha, a9 as Ma, aa as Ba, ab as Oa, ac as ba, ad as Ta, ae as wa, af as Ia, ag as Va, ah as qa, ai as za, aj as Ga, ak as Ka, al as Wa, am as ja, an as Ja, ao as Qa, ap as Xa, aq as Ya, ar as Za, as as $a, at as ae, au as ee, av as se, aw as te, ax as re, ay as oe, az as ue, aA as ie, aB as ne, aC as ce, aD as Se, aE as Re, aF as me, aG as Ee, aH as Fe, aI as le, aJ as Ne, aK as Ae, aL as _e, aM as de, aN as pe, aO as he, aP as Ue, aQ as xe, aR as Ce, aS as ge, aT as ve } from "./chunk-IR6S3I6Y-BmDdD3SP.js";
2
+ import { ModuleCore as r } from "./components/ModuleCore.js";
3
+ import { useBreadcrumbTranslation as u } from "./hooks/useBreadcrumbTranslation.js";
4
+ import { useSignalRMessages as n } from "./hooks/useSignalRMessages.js";
5
+ import { useNavigate as S } from "./module-router.js";
6
+ import { useBaseProps as m, useConfig as E } from "./hooks/useStores.js";
7
+ import { useCustom as l } from "./hooks/useCustom.js";
8
+ import { useCustomMutation as A } from "./hooks/useCustomMutation.js";
9
+ import { useEntity as d } from "./hooks/useEntity.js";
10
+ import { useOption as h } from "./hooks/useOption.js";
11
+ import { useNotification as x, useServiceBus as C } from "./hooks/useServiceBus.js";
12
+ import { mutateOnCustomApi as v } from "./utils/fetches.js";
13
+ import { A as P, B as y, F as L, H as M, I as k, a as D, b as H, L as B, c as O, M as b, d as T, N as w, e as I, f as V, O as q, P as z, R as G, g as K, h as W, i as j, S as J, j as Q, k as X, l as Y, m as Z, D as $, n as aa, E as ea, o as sa, p as ta, q as ra, r as oa, s as ua, t as ia, u as na, v as ca, V as Sa, w as Ra, x as ma, y as Ea, z as Fa, C as la, G as Na, J as Aa, K as _a, Q as da, T as pa, U as ha, W as Ua, X as xa, Y as Ca, Z as ga, _ as va, $ as fa, a0 as Pa, a1 as ya, a2 as La, a3 as Ma, a4 as ka, a5 as Da, a6 as Ha, a7 as Ba, a8 as Oa, a9 as ba, aa as Ta, ab as wa, ac as Ia, ad as Va, ae as qa, af as za, ag as Ga, ah as Ka, ai as Wa, aj as ja, ak as Ja, al as Qa, am as Xa, an as Ya, ao as Za, ap as $a, aq as ae, ar as ee, as as se, at as te, au as re, av as oe, aw as ue, ax as ie, ay as ne, az as ce, aA as Se, aB as Re, aC as me, aD as Ee, aE as Fe, aF as le, aG as Ne, aH as Ae, aI as _e, aJ as de, aK as pe, aL as he, aM as Ue, aN as xe, aO as Ce, aP as ge, aQ as ve, aR as fe, aS as Pe, aT as ye } from "./chunk-IR6S3I6Y-BmDdD3SP.js";
13
14
  export {
14
- g as Await,
15
- v as BrowserRouter,
16
- P as Form,
17
- f as HashRouter,
18
- y as IDLE_BLOCKER,
19
- L as IDLE_FETCHER,
20
- k as IDLE_NAVIGATION,
21
- D as Link,
22
- H as Links,
23
- M as MemoryRouter,
24
- B as Meta,
15
+ P as Await,
16
+ y as BrowserRouter,
17
+ L as Form,
18
+ M as HashRouter,
19
+ k as IDLE_BLOCKER,
20
+ D as IDLE_FETCHER,
21
+ H as IDLE_NAVIGATION,
22
+ B as Link,
23
+ O as Links,
24
+ b as MemoryRouter,
25
+ T as Meta,
25
26
  s as ModuleBase,
26
- O as NavLink,
27
- b as Navigate,
28
- T as NavigationType,
29
- w as Outlet,
30
- I as PrefetchPageLinks,
31
- V as Route,
32
- q as Router,
33
- z as RouterProvider,
34
- G as Routes,
35
- K as Scripts,
36
- W as ScrollRestoration,
37
- j as ServerRouter,
38
- J as StaticRouter,
39
- Q as StaticRouterProvider,
40
- X as UNSAFE_DataRouterContext,
41
- Y as UNSAFE_DataRouterStateContext,
42
- Z as UNSAFE_ErrorResponseImpl,
43
- $ as UNSAFE_FetchersContext,
44
- aa as UNSAFE_FrameworkContext,
45
- ea as UNSAFE_LocationContext,
46
- sa as UNSAFE_NavigationContext,
47
- ta as UNSAFE_RemixErrorBoundary,
48
- ra as UNSAFE_RouteContext,
49
- oa as UNSAFE_ServerMode,
50
- ua as UNSAFE_SingleFetchRedirectSymbol,
51
- ia as UNSAFE_ViewTransitionContext,
52
- na as UNSAFE_createBrowserHistory,
53
- ca as UNSAFE_createClientRoutes,
54
- Sa as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
55
- Ra as UNSAFE_createRouter,
56
- ma as UNSAFE_decodeViaTurboStream,
57
- Ea as UNSAFE_deserializeErrors,
58
- Fa as UNSAFE_getPatchRoutesOnNavigationFunction,
59
- la as UNSAFE_getSingleFetchDataStrategy,
60
- Na as UNSAFE_invariant,
61
- Aa as UNSAFE_mapRouteProperties,
62
- _a as UNSAFE_shouldHydrateRouteLoader,
63
- da as UNSAFE_useFogOFWarDiscovery,
64
- pa as UNSAFE_useScrollRestoration,
65
- ha as createBrowserRouter,
66
- Ua as createCookie,
67
- xa as createCookieSessionStorage,
68
- Ca as createHashRouter,
69
- ga as createMemoryRouter,
70
- va as createMemorySessionStorage,
71
- Pa as createPath,
72
- fa as createRequestHandler,
73
- ya as createRoutesFromChildren,
74
- La as createRoutesFromElements,
75
- ka as createRoutesStub,
76
- Da as createSearchParams,
77
- Ha as createSession,
78
- Ma as createSessionStorage,
79
- Ba as createStaticHandler,
80
- Oa as createStaticRouter,
81
- ba as data,
82
- Ta as generatePath,
83
- wa as isCookie,
84
- Ia as isRouteErrorResponse,
85
- Va as isSession,
86
- qa as matchPath,
87
- za as matchRoutes,
88
- x as mutateOnCustomApi,
89
- Ga as parsePath,
90
- Ka as redirect,
91
- Wa as redirectDocument,
92
- ja as renderMatches,
93
- Ja as replace,
94
- Qa as resolvePath,
95
- Xa as unstable_HistoryRouter,
96
- Ya as unstable_setDevServerHooks,
97
- Za as unstable_usePrompt,
98
- $a as useActionData,
99
- ae as useAsyncError,
100
- ee as useAsyncValue,
101
- S as useBaseProps,
102
- se as useBeforeUnload,
103
- te as useBlocker,
104
- r as useBreadcrumbTranslation,
105
- R as useConfig,
106
- E as useCustom,
107
- d as useCustomMutation,
108
- l as useEntity,
109
- re as useFetcher,
110
- oe as useFetchers,
111
- ue as useFormAction,
112
- ie as useHref,
113
- ne as useInRouterContext,
114
- ce as useLinkClickHandler,
115
- Se as useLoaderData,
116
- Re as useLocation,
117
- me as useMatch,
118
- Ee as useMatches,
119
- n as useNavigate,
120
- Fe as useNavigation,
121
- le as useNavigationType,
122
- A as useOption,
123
- Ne as useOutlet,
124
- Ae as useOutletContext,
125
- _e as useParams,
126
- de as useResolvedPath,
127
- pe as useRevalidator,
128
- he as useRouteError,
129
- Ue as useRouteLoaderData,
130
- xe as useRoutes,
131
- Ce as useSearchParams,
132
- h as useServiceBus,
133
- u as useSignalRMessages,
134
- ge as useSubmit,
135
- ve as useViewTransitionState
27
+ r as ModuleCore,
28
+ w as NavLink,
29
+ I as Navigate,
30
+ V as NavigationType,
31
+ q as Outlet,
32
+ z as PrefetchPageLinks,
33
+ G as Route,
34
+ K as Router,
35
+ W as RouterProvider,
36
+ j as Routes,
37
+ J as Scripts,
38
+ Q as ScrollRestoration,
39
+ X as ServerRouter,
40
+ Y as StaticRouter,
41
+ Z as StaticRouterProvider,
42
+ $ as UNSAFE_DataRouterContext,
43
+ aa as UNSAFE_DataRouterStateContext,
44
+ ea as UNSAFE_ErrorResponseImpl,
45
+ sa as UNSAFE_FetchersContext,
46
+ ta as UNSAFE_FrameworkContext,
47
+ ra as UNSAFE_LocationContext,
48
+ oa as UNSAFE_NavigationContext,
49
+ ua as UNSAFE_RemixErrorBoundary,
50
+ ia as UNSAFE_RouteContext,
51
+ na as UNSAFE_ServerMode,
52
+ ca as UNSAFE_SingleFetchRedirectSymbol,
53
+ Sa as UNSAFE_ViewTransitionContext,
54
+ Ra as UNSAFE_createBrowserHistory,
55
+ ma as UNSAFE_createClientRoutes,
56
+ Ea as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
57
+ Fa as UNSAFE_createRouter,
58
+ la as UNSAFE_decodeViaTurboStream,
59
+ Na as UNSAFE_deserializeErrors,
60
+ Aa as UNSAFE_getPatchRoutesOnNavigationFunction,
61
+ _a as UNSAFE_getSingleFetchDataStrategy,
62
+ da as UNSAFE_invariant,
63
+ pa as UNSAFE_mapRouteProperties,
64
+ ha as UNSAFE_shouldHydrateRouteLoader,
65
+ Ua as UNSAFE_useFogOFWarDiscovery,
66
+ xa as UNSAFE_useScrollRestoration,
67
+ Ca as createBrowserRouter,
68
+ ga as createCookie,
69
+ va as createCookieSessionStorage,
70
+ fa as createHashRouter,
71
+ Pa as createMemoryRouter,
72
+ ya as createMemorySessionStorage,
73
+ La as createPath,
74
+ Ma as createRequestHandler,
75
+ ka as createRoutesFromChildren,
76
+ Da as createRoutesFromElements,
77
+ Ha as createRoutesStub,
78
+ Ba as createSearchParams,
79
+ Oa as createSession,
80
+ ba as createSessionStorage,
81
+ Ta as createStaticHandler,
82
+ wa as createStaticRouter,
83
+ Ia as data,
84
+ Va as generatePath,
85
+ qa as isCookie,
86
+ za as isRouteErrorResponse,
87
+ Ga as isSession,
88
+ Ka as matchPath,
89
+ Wa as matchRoutes,
90
+ v as mutateOnCustomApi,
91
+ ja as parsePath,
92
+ Ja as redirect,
93
+ Qa as redirectDocument,
94
+ Xa as renderMatches,
95
+ Ya as replace,
96
+ Za as resolvePath,
97
+ $a as unstable_HistoryRouter,
98
+ ae as unstable_setDevServerHooks,
99
+ ee as unstable_usePrompt,
100
+ se as useActionData,
101
+ te as useAsyncError,
102
+ re as useAsyncValue,
103
+ m as useBaseProps,
104
+ oe as useBeforeUnload,
105
+ ue as useBlocker,
106
+ u as useBreadcrumbTranslation,
107
+ E as useConfig,
108
+ l as useCustom,
109
+ A as useCustomMutation,
110
+ d as useEntity,
111
+ ie as useFetcher,
112
+ ne as useFetchers,
113
+ ce as useFormAction,
114
+ Se as useHref,
115
+ Re as useInRouterContext,
116
+ me as useLinkClickHandler,
117
+ Ee as useLoaderData,
118
+ Fe as useLocation,
119
+ le as useMatch,
120
+ Ne as useMatches,
121
+ S as useNavigate,
122
+ Ae as useNavigation,
123
+ _e as useNavigationType,
124
+ x as useNotification,
125
+ h as useOption,
126
+ de as useOutlet,
127
+ pe as useOutletContext,
128
+ he as useParams,
129
+ Ue as useResolvedPath,
130
+ xe as useRevalidator,
131
+ Ce as useRouteError,
132
+ ge as useRouteLoaderData,
133
+ ve as useRoutes,
134
+ fe as useSearchParams,
135
+ C as useServiceBus,
136
+ n as useSignalRMessages,
137
+ Pe as useSubmit,
138
+ ye as useViewTransitionState
136
139
  };
@@ -1,4 +1,4 @@
1
- import { R as o, c as a, n as r } from "./QueryClientProvider-Q_mWQTzQ.js";
1
+ import { R as o, c as a, n as r } from "./QueryClientProvider-VtJdNkDw.js";
2
2
  var d = class extends o {
3
3
  #e;
4
4
  #t;
@@ -1,4 +1,4 @@
1
- import { R as d, r as l, a as u, b as f, s as p, t as y, c as v, n as b, e as m, i as h, d as S } from "./QueryClientProvider-Q_mWQTzQ.js";
1
+ import { R as d, r as l, a as u, b as f, s as p, t as y, c as v, n as b, e as m, i as h, d as S } from "./QueryClientProvider-VtJdNkDw.js";
2
2
  var q = class extends d {
3
3
  #a;
4
4
  #n;
@@ -1,6 +1,6 @@
1
1
  import * as n from "react";
2
- import { g as l } from "./mutation-X73nm7Df.js";
3
- import { S as d, f as p, h, n as a, u as b } from "./QueryClientProvider-Q_mWQTzQ.js";
2
+ import { g as l } from "./mutation-CnKIetRs.js";
3
+ import { S as d, f as p, h, n as a, u as b } from "./QueryClientProvider-VtJdNkDw.js";
4
4
  import { n as m, s as f } from "./utils-DxRR_XLb.js";
5
5
  var v = class extends d {
6
6
  #e;
@@ -1,5 +1,5 @@
1
- import { S as N, x as U, b as f, f as w, q as O, a as H, y as Q, z as M, t as V, o as z, r as k, n as A, u as W } from "./QueryClientProvider-Q_mWQTzQ.js";
2
- import { f as $ } from "./query-CRIVoEP7.js";
1
+ import { S as N, p as U, b as f, f as w, g as O, a as H, j as Q, k, t as V, l as z, r as M, n as A, u as W } from "./QueryClientProvider-VtJdNkDw.js";
2
+ import { f as $ } from "./query-CFoO2uy7.js";
3
3
  import * as p from "react";
4
4
  import "react/jsx-runtime";
5
5
  import { s as K, n as _ } from "./utils-DxRR_XLb.js";
@@ -30,7 +30,7 @@ var G = class extends N {
30
30
  this.refetch = this.refetch.bind(this);
31
31
  }
32
32
  onSubscribe() {
33
- this.listeners.size === 1 && (this.#e.addObserver(this), q(this.#e, this.options) ? this.#u() : this.updateResult(), this.#R());
33
+ this.listeners.size === 1 && (this.#e.addObserver(this), j(this.#e, this.options) ? this.#u() : this.updateResult(), this.#R());
34
34
  }
35
35
  onUnsubscribe() {
36
36
  this.hasListeners() || this.destroy();
@@ -125,7 +125,7 @@ var G = class extends N {
125
125
  this.options.staleTime,
126
126
  this.#e
127
127
  );
128
- if (Q || this.#t.isStale || !M(e))
128
+ if (Q || this.#t.isStale || !k(e))
129
129
  return;
130
130
  const s = V(this.#t.dataUpdatedAt, e) + 1;
131
131
  this.#o = setTimeout(() => {
@@ -136,7 +136,7 @@ var G = class extends N {
136
136
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#e) : this.options.refetchInterval) ?? !1;
137
137
  }
138
138
  #g(e) {
139
- this.#O(), this.#n = e, !(Q || f(this.options.enabled, this.#e) === !1 || !M(this.#n) || this.#n === 0) && (this.#h = setInterval(() => {
139
+ this.#O(), this.#n = e, !(Q || f(this.options.enabled, this.#e) === !1 || !k(this.#n) || this.#n === 0) && (this.#h = setInterval(() => {
140
140
  (this.options.refetchIntervalInBackground || z.isFocused()) && this.#u();
141
141
  }, this.#n));
142
142
  }
@@ -153,7 +153,7 @@ var G = class extends N {
153
153
  const s = this.#e, r = this.options, a = this.#t, u = this.#a, i = this.#c, o = e !== s ? e.state : this.#p, { state: c } = e;
154
154
  let n = { ...c }, R = !1, l;
155
155
  if (t._optimisticResults) {
156
- const h = this.hasListeners(), b = !h && q(e, t), m = h && L(e, s, t, r);
156
+ const h = this.hasListeners(), b = !h && j(e, t), m = h && L(e, s, t, r);
157
157
  (b || m) && (n = {
158
158
  ...n,
159
159
  ...$(c.data, e.options)
@@ -165,7 +165,7 @@ var G = class extends N {
165
165
  l = this.#l;
166
166
  else
167
167
  try {
168
- this.#y = t.select, l = t.select(n.data), l = k(a?.data, l, t), this.#l = l, this.#r = null;
168
+ this.#y = t.select, l = t.select(n.data), l = M(a?.data, l, t), this.#l = l, this.#r = null;
169
169
  } catch (h) {
170
170
  this.#r = h;
171
171
  }
@@ -184,7 +184,7 @@ var G = class extends N {
184
184
  } catch (b) {
185
185
  this.#r = b;
186
186
  }
187
- h !== void 0 && (y = "success", l = k(
187
+ h !== void 0 && (y = "success", l = M(
188
188
  a?.data,
189
189
  h,
190
190
  t
@@ -284,7 +284,7 @@ var G = class extends N {
284
284
  function J(e, t) {
285
285
  return f(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
286
286
  }
287
- function q(e, t) {
287
+ function j(e, t) {
288
288
  return J(e, t) || e.state.data !== void 0 && T(e, t, t.refetchOnMount);
289
289
  }
290
290
  function T(e, t, s) {
@@ -332,7 +332,7 @@ var ee = p.createContext(Z()), te = () => p.useContext(ee), se = (e, t) => {
332
332
  }) => e.isError && !t.isReset() && !e.isFetching && r && (a && e.data === void 0 || K(s, [e.error, r])), ne = (e) => {
333
333
  const t = e.staleTime;
334
334
  e.suspense && (e.staleTime = typeof t == "function" ? (...s) => Math.max(t(...s), 1e3) : Math.max(t ?? 1e3, 1e3), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3)));
335
- }, ae = (e, t) => e.isLoading && e.isFetching && !t, oe = (e, t) => e?.suspense && t.isPending, j = (e, t, s) => t.fetchOptimistic(e).catch(() => {
335
+ }, ae = (e, t) => e.isLoading && e.isFetching && !t, oe = (e, t) => e?.suspense && t.isPending, q = (e, t, s) => t.fetchOptimistic(e).catch(() => {
336
336
  s.clearReset();
337
337
  });
338
338
  function he(e, t, s) {
@@ -365,7 +365,7 @@ function he(e, t, s) {
365
365
  ), p.useEffect(() => {
366
366
  o.setOptions(i, { listeners: !1 });
367
367
  }, [i, o]), oe(i, c))
368
- throw j(i, o, u);
368
+ throw q(i, o, u);
369
369
  if (ie({
370
370
  result: c,
371
371
  errorResetBoundary: u,
@@ -379,7 +379,7 @@ function he(e, t, s) {
379
379
  c
380
380
  ), i.experimental_prefetchInRender && !Q && ae(c, a) && (g ? (
381
381
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
382
- j(i, o, u)
382
+ q(i, o, u)
383
383
  ) : (
384
384
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
385
385
  r.getQueryCache().get(i.queryHash)?.promise