@hortiview/modulebase 1.1.0-alpha.8ea7f643.1 → 1.1.1-alpha.3d69639d.1
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/dist/IsRestoringProvider-SzKJZczp.js +931 -0
- package/dist/{ModuleCore-DuJVrj6v.js → ModuleCore-DRMqZO8r.js} +5947 -5758
- package/dist/assets/ModuleCore.css +1 -1
- package/dist/{chunk-LFPYN7LY-DmQ3La_a.js → chunk-EVOBXE3Y-BoyVF_Ri.js} +2921 -2784
- package/dist/components/ModuleBase.js +28 -19
- package/dist/components/ModuleCore.js +1 -1
- package/dist/constants.js +2 -2
- package/dist/hooks/useBreadcrumbTranslation.js +13 -14
- package/dist/hooks/useCustom.js +1 -1
- package/dist/hooks/useCustomMutation.js +5 -16
- package/dist/hooks/useEntity.js +1 -1
- package/dist/hooks/useOffline.js +1 -1
- package/dist/hooks/useOption.js +1 -1
- package/dist/hooks/useStores.js +1 -1
- package/dist/lib/hooks/useStores.d.ts +2 -33
- package/dist/lib/main.d.ts +2 -4
- package/dist/lib/types/BaseProps.d.ts +3 -6
- package/dist/main.js +174 -181
- package/dist/module-router.js +875 -837
- package/dist/{omit-Do6MFRwA.js → omit-DYPaIq41.js} +121 -128
- package/dist/provider/SignalR/SignalRProvider.js +469 -463
- package/dist/{useMutation-Aoachkw_.js → useCustomMutation-9VUQ7NbQ.js} +40 -20
- package/dist/{useQuery-DEU_AUtf.js → useQuery-DUDyh33-.js} +107 -108
- package/dist/utils/helper.js +1 -1
- package/package.json +24 -24
- package/dist/IsRestoringProvider-CBSZo7ur.js +0 -312
- package/dist/QueryClientProvider-DyiNrPkn.js +0 -514
- package/dist/hooks/useServiceBus.js +0 -25
- package/dist/lib/hooks/useServiceBus.d.ts +0 -19
- package/dist/lib/types/Deprecated.d.ts +0 -103
- package/dist/mutation-CmhiEgfA.js +0 -237
- package/dist/types/Deprecated.js +0 -1
package/dist/main.js
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import { ModuleBase as _ } from "./components/ModuleBase.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { useCustomMutation as ce } from "./hooks/useCustomMutation.js";
|
|
2
|
+
import { M as U, Q as v } from "./ModuleCore-DRMqZO8r.js";
|
|
3
|
+
import { ActionState as C } from "./enum/ActionStorage.js";
|
|
4
|
+
import { useBreadcrumbTranslation as M } from "./hooks/useBreadcrumbTranslation.js";
|
|
5
|
+
import { useOffline as H } from "./hooks/useOffline.js";
|
|
6
|
+
import { useSignalRMessages as w } from "./hooks/useSignalRMessages.js";
|
|
7
|
+
import { ServerRouter as B, UNSAFE_RSCDefaultRootErrorBoundary as L, UNSAFE_ServerMode as I, UNSAFE_deserializeErrors as Q, UNSAFE_getHydrationData as T, createCookie as V, createCookieSessionStorage as W, createMemorySessionStorage as K, createRequestHandler as q, createRoutesStub as z, createSession as G, createSessionStorage as j, href as J, isCookie as X, isSession as Y, unstable_RSCStaticRouter as Z, unstable_routeRSCServerRequest as $, unstable_setDevServerHooks as ee, useNavigate as ae } from "./module-router.js";
|
|
8
|
+
import { useBaseProps as se, useConfig as re } from "./hooks/useStores.js";
|
|
9
|
+
import { useCustom as ie } from "./hooks/useCustom.js";
|
|
10
|
+
import { u as ne, a as ce } from "./useCustomMutation-9VUQ7NbQ.js";
|
|
12
11
|
import { useEntity as Se } from "./hooks/useEntity.js";
|
|
13
12
|
import { useOption as Ee } from "./hooks/useOption.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { u as
|
|
21
|
-
|
|
22
|
-
var d = class extends m {
|
|
13
|
+
import { mutateOnCustomApi as fe } from "./utils/fetches.js";
|
|
14
|
+
import { arePropsValid as de, checkConfig as me, checkIfPropExists as Ne, checkVersion as Pe, getEnvironmentVariables as pe, getModuleQueryKey as ge, universalSelector as Ae } from "./utils/helper.js";
|
|
15
|
+
import { A as xe, B as Ue, F as ve, H as ye, I as Ce, a as be, b as Me, L as ke, d as He, M as Oe, e as we, N as De, f as Be, g as Le, O as Ie, P as Qe, h as Te, i as Ve, j as We, R as Ke, k as qe, S as ze, l as Ge, m as je, n as Je, o as Xe, D as Ye, p as Ze, E as $e, q as ea, r as aa, s as ta, t as sa, v as ra, w as oa, x as ia, V as ua, W as na, y as ca, z as ha, C as Sa, G as Ra, J as Ea, K as la, Q as fa, T as Fa, U as da, X as ma, Y as Na, Z as Pa, _ as pa, $ as ga, a0 as Aa, a1 as _a, a2 as xa, a3 as Ua, a4 as va, a5 as ya, c as Ca, a6 as ba, a7 as Ma, a8 as ka, a9 as Ha, aa as Oa, ab as wa, ac as Da, ad as Ba, ae as La, af as Ia, ag as Qa, ah as Ta, ai as Va, aj as Wa, ak as Ka, al as qa, am as za, an as Ga, ao as ja, ap as Ja, aq as Xa, ar as Ya, as as Za, at as $a, au as et, av as at, aw as tt, ax as st, ay as rt, az as ot, aA as it, aB as ut, aC as nt, aD as ct, aE as ht, aF as St, aG as Rt, aH as Et, aI as lt, aJ as ft, aK as Ft, aL as dt, aM as mt, aN as Nt, aO as Pt, aP as pt, aQ as gt, aR as At, aS as _t, aT as xt, aU as Ut } from "./chunk-EVOBXE3Y-BoyVF_Ri.js";
|
|
16
|
+
import { Q as E, a as l } from "./useQuery-DUDyh33-.js";
|
|
17
|
+
import { u as yt } from "./useQuery-DUDyh33-.js";
|
|
18
|
+
import { h as f, a as F } from "./IsRestoringProvider-SzKJZczp.js";
|
|
19
|
+
import { u as bt } from "./IsRestoringProvider-SzKJZczp.js";
|
|
20
|
+
var d = class extends E {
|
|
23
21
|
constructor(e, a) {
|
|
24
22
|
super(e, a);
|
|
25
23
|
}
|
|
@@ -27,13 +25,10 @@ var d = class extends m {
|
|
|
27
25
|
super.bindMethods(), this.fetchNextPage = this.fetchNextPage.bind(this), this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
|
|
28
26
|
}
|
|
29
27
|
setOptions(e) {
|
|
30
|
-
super.setOptions(
|
|
31
|
-
...e,
|
|
32
|
-
behavior: S()
|
|
33
|
-
});
|
|
28
|
+
e._type = "infinite", super.setOptions(e);
|
|
34
29
|
}
|
|
35
30
|
getOptimisticResult(e) {
|
|
36
|
-
return e.
|
|
31
|
+
return e._type = "infinite", super.getOptimisticResult(e);
|
|
37
32
|
}
|
|
38
33
|
fetchNextPage(e) {
|
|
39
34
|
return this.fetch({
|
|
@@ -52,184 +47,182 @@ var d = class extends m {
|
|
|
52
47
|
});
|
|
53
48
|
}
|
|
54
49
|
createResult(e, a) {
|
|
55
|
-
const { state: s } = e, r = super.createResult(e, a), { isFetching: o, isRefetching:
|
|
50
|
+
const { state: s } = e, r = super.createResult(e, a), { isFetching: o, isRefetching: S, isError: i, isRefetchError: R } = r, t = s.fetchMeta?.fetchMore?.direction, u = i && t === "forward", n = o && t === "forward", c = i && t === "backward", h = o && t === "backward";
|
|
56
51
|
return {
|
|
57
52
|
...r,
|
|
58
53
|
fetchNextPage: this.fetchNextPage,
|
|
59
54
|
fetchPreviousPage: this.fetchPreviousPage,
|
|
60
|
-
hasNextPage:
|
|
55
|
+
hasNextPage: F(a, s.data),
|
|
61
56
|
hasPreviousPage: f(a, s.data),
|
|
62
57
|
isFetchNextPageError: u,
|
|
63
58
|
isFetchingNextPage: n,
|
|
64
59
|
isFetchPreviousPageError: c,
|
|
65
60
|
isFetchingPreviousPage: h,
|
|
66
|
-
isRefetchError:
|
|
67
|
-
isRefetching:
|
|
61
|
+
isRefetchError: R && !u && !c,
|
|
62
|
+
isRefetching: S && !n && !h
|
|
68
63
|
};
|
|
69
64
|
}
|
|
70
65
|
};
|
|
71
|
-
function
|
|
72
|
-
return
|
|
66
|
+
function p(e, a) {
|
|
67
|
+
return l(
|
|
73
68
|
e,
|
|
74
69
|
d,
|
|
75
70
|
a
|
|
76
71
|
);
|
|
77
72
|
}
|
|
78
73
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
C as ActionState,
|
|
75
|
+
xe as Await,
|
|
76
|
+
Ue as BrowserRouter,
|
|
77
|
+
ve as Form,
|
|
78
|
+
ye as HashRouter,
|
|
79
|
+
Ce as IDLE_BLOCKER,
|
|
80
|
+
be as IDLE_FETCHER,
|
|
81
|
+
Me as IDLE_NAVIGATION,
|
|
82
|
+
ke as Link,
|
|
83
|
+
He as Links,
|
|
84
|
+
Oe as MemoryRouter,
|
|
85
|
+
we as Meta,
|
|
91
86
|
_ as ModuleBase,
|
|
92
87
|
U as ModuleCore,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
88
|
+
De as NavLink,
|
|
89
|
+
Be as Navigate,
|
|
90
|
+
Le as NavigationType,
|
|
91
|
+
Ie as Outlet,
|
|
92
|
+
Qe as PrefetchPageLinks,
|
|
93
|
+
v as QueryClient,
|
|
94
|
+
Te as Route,
|
|
95
|
+
Ve as Router,
|
|
96
|
+
We as RouterContextProvider,
|
|
97
|
+
Ke as RouterProvider,
|
|
98
|
+
qe as Routes,
|
|
99
|
+
ze as Scripts,
|
|
100
|
+
Ge as ScrollRestoration,
|
|
101
|
+
B as ServerRouter,
|
|
102
|
+
je as StaticRouter,
|
|
103
|
+
Je as StaticRouterProvider,
|
|
104
|
+
Xe as UNSAFE_AwaitContextProvider,
|
|
105
|
+
Ye as UNSAFE_DataRouterContext,
|
|
106
|
+
Ze as UNSAFE_DataRouterStateContext,
|
|
107
|
+
$e as UNSAFE_ErrorResponseImpl,
|
|
108
|
+
ea as UNSAFE_FetchersContext,
|
|
109
|
+
aa as UNSAFE_FrameworkContext,
|
|
110
|
+
ta as UNSAFE_LocationContext,
|
|
111
|
+
sa as UNSAFE_NavigationContext,
|
|
112
|
+
L as UNSAFE_RSCDefaultRootErrorBoundary,
|
|
113
|
+
ra as UNSAFE_RemixErrorBoundary,
|
|
114
|
+
oa as UNSAFE_RouteContext,
|
|
120
115
|
I as UNSAFE_ServerMode,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
116
|
+
ia as UNSAFE_SingleFetchRedirectSymbol,
|
|
117
|
+
ua as UNSAFE_ViewTransitionContext,
|
|
118
|
+
na as UNSAFE_WithComponentProps,
|
|
119
|
+
ca as UNSAFE_WithErrorBoundaryProps,
|
|
120
|
+
ha as UNSAFE_WithHydrateFallbackProps,
|
|
121
|
+
Sa as UNSAFE_createBrowserHistory,
|
|
122
|
+
Ra as UNSAFE_createClientRoutes,
|
|
123
|
+
Ea as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
|
124
|
+
la as UNSAFE_createHashHistory,
|
|
125
|
+
fa as UNSAFE_createMemoryHistory,
|
|
126
|
+
Fa as UNSAFE_createRouter,
|
|
127
|
+
da as UNSAFE_decodeViaTurboStream,
|
|
128
|
+
Q as UNSAFE_deserializeErrors,
|
|
129
|
+
T as UNSAFE_getHydrationData,
|
|
130
|
+
ma as UNSAFE_getPatchRoutesOnNavigationFunction,
|
|
131
|
+
Na as UNSAFE_getTurboStreamSingleFetchDataStrategy,
|
|
132
|
+
Pa as UNSAFE_hydrationRouteProperties,
|
|
133
|
+
pa as UNSAFE_invariant,
|
|
134
|
+
ga as UNSAFE_mapRouteProperties,
|
|
135
|
+
Aa as UNSAFE_shouldHydrateRouteLoader,
|
|
136
|
+
_a as UNSAFE_useFogOFWarDiscovery,
|
|
137
|
+
xa as UNSAFE_useScrollRestoration,
|
|
138
|
+
Ua as UNSAFE_withComponentProps,
|
|
139
|
+
va as UNSAFE_withErrorBoundaryProps,
|
|
140
|
+
ya as UNSAFE_withHydrateFallbackProps,
|
|
141
|
+
de as arePropsValid,
|
|
142
|
+
me as checkConfig,
|
|
143
|
+
Ne as checkIfPropExists,
|
|
144
|
+
Pe as checkVersion,
|
|
145
|
+
Ca as createBrowserRouter,
|
|
146
|
+
ba as createContext,
|
|
147
|
+
V as createCookie,
|
|
148
|
+
W as createCookieSessionStorage,
|
|
149
|
+
Ma as createHashRouter,
|
|
150
|
+
ka as createMemoryRouter,
|
|
151
|
+
K as createMemorySessionStorage,
|
|
152
|
+
Ha as createPath,
|
|
153
|
+
q as createRequestHandler,
|
|
154
|
+
Oa as createRoutesFromChildren,
|
|
155
|
+
wa as createRoutesFromElements,
|
|
156
|
+
z as createRoutesStub,
|
|
157
|
+
Da as createSearchParams,
|
|
158
|
+
G as createSession,
|
|
159
|
+
j as createSessionStorage,
|
|
160
|
+
Ba as createStaticHandler,
|
|
161
|
+
La as createStaticRouter,
|
|
162
|
+
Ia as data,
|
|
163
|
+
Qa as generatePath,
|
|
164
|
+
pe as getEnvironmentVariables,
|
|
165
|
+
ge as getModuleQueryKey,
|
|
166
|
+
J as href,
|
|
167
|
+
X as isCookie,
|
|
168
|
+
Ta as isRouteErrorResponse,
|
|
169
|
+
Y as isSession,
|
|
170
|
+
Va as matchPath,
|
|
171
|
+
Wa as matchRoutes,
|
|
172
|
+
fe as mutateOnCustomApi,
|
|
173
|
+
Ka as parsePath,
|
|
174
|
+
qa as redirect,
|
|
175
|
+
za as redirectDocument,
|
|
176
|
+
Ga as renderMatches,
|
|
177
|
+
ja as replace,
|
|
178
|
+
Ja as resolvePath,
|
|
179
|
+
Ae as universalSelector,
|
|
180
|
+
Xa as unstable_HistoryRouter,
|
|
181
|
+
Z as unstable_RSCStaticRouter,
|
|
182
|
+
$ as unstable_routeRSCServerRequest,
|
|
183
|
+
ee as unstable_setDevServerHooks,
|
|
184
|
+
Ya as unstable_usePrompt,
|
|
185
|
+
Za as unstable_useRoute,
|
|
186
|
+
$a as useActionData,
|
|
187
|
+
et as useAsyncError,
|
|
188
|
+
at as useAsyncValue,
|
|
189
|
+
se as useBaseProps,
|
|
190
|
+
tt as useBeforeUnload,
|
|
191
|
+
st as useBlocker,
|
|
192
|
+
M as useBreadcrumbTranslation,
|
|
193
|
+
re as useConfig,
|
|
194
|
+
ie as useCustom,
|
|
195
|
+
ne as useCustomMutation,
|
|
201
196
|
Se as useEntity,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
O as useOffline,
|
|
197
|
+
rt as useFetcher,
|
|
198
|
+
ot as useFetchers,
|
|
199
|
+
it as useFormAction,
|
|
200
|
+
ut as useHref,
|
|
201
|
+
nt as useInRouterContext,
|
|
202
|
+
p as useInfiniteQuery,
|
|
203
|
+
ct as useLinkClickHandler,
|
|
204
|
+
ht as useLoaderData,
|
|
205
|
+
St as useLocation,
|
|
206
|
+
Rt as useMatch,
|
|
207
|
+
Et as useMatches,
|
|
208
|
+
ce as useMutation,
|
|
209
|
+
ae as useNavigate,
|
|
210
|
+
lt as useNavigation,
|
|
211
|
+
ft as useNavigationType,
|
|
212
|
+
H as useOffline,
|
|
219
213
|
Ee as useOption,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
yt as useViewTransitionState
|
|
214
|
+
Ft as useOutlet,
|
|
215
|
+
dt as useOutletContext,
|
|
216
|
+
mt as useParams,
|
|
217
|
+
yt as useQuery,
|
|
218
|
+
bt as useQueryClient,
|
|
219
|
+
Nt as useResolvedPath,
|
|
220
|
+
Pt as useRevalidator,
|
|
221
|
+
pt as useRouteError,
|
|
222
|
+
gt as useRouteLoaderData,
|
|
223
|
+
At as useRoutes,
|
|
224
|
+
_t as useSearchParams,
|
|
225
|
+
w as useSignalRMessages,
|
|
226
|
+
xt as useSubmit,
|
|
227
|
+
Ut as useViewTransitionState
|
|
235
228
|
};
|