@ahoo-wang/fetcher-react 3.5.5 → 3.5.6
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/cosec/useSecurity.d.ts.map +1 -1
- package/dist/index.es.js +96 -93
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSecurity.d.ts","sourceRoot":"","sources":["../../src/cosec/useSecurity.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"useSecurity.d.ts","sourceRoot":"","sources":["../../src/cosec/useSecurity.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,cAAc,EAAE,eAK5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,WAAW,EAAE,eAAe,CAAC;IAE7B;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,MAAM,EAAE,CAAC,cAAc,EAAE,cAAc,KAAK,IAAI,CAAC;IAEjD;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,iBAAiB,CAezE"}
|
package/dist/index.es.js
CHANGED
|
@@ -7,7 +7,7 @@ import { nameGenerator as te } from "@ahoo-wang/fetcher-eventbus";
|
|
|
7
7
|
import { produce as re } from "immer";
|
|
8
8
|
import { fetcherRegistrar as ne, getFetcher as ce, JsonResultExtractor as se } from "@ahoo-wang/fetcher";
|
|
9
9
|
import { JsonEventStreamResultExtractor as oe } from "@ahoo-wang/fetcher-eventstream";
|
|
10
|
-
function
|
|
10
|
+
function j() {
|
|
11
11
|
const r = w(3), e = I(!1);
|
|
12
12
|
let t;
|
|
13
13
|
r[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ l(() => e.current, "t0"), r[0] = t) : t = r[0];
|
|
@@ -17,18 +17,18 @@ function z() {
|
|
|
17
17
|
e.current = !1;
|
|
18
18
|
}), "t1"), c = [], r[1] = s, r[2] = c) : (s = r[1], c = r[2]), O(s, c), n;
|
|
19
19
|
}
|
|
20
|
-
l(
|
|
21
|
-
function
|
|
20
|
+
l(j, "useMounted");
|
|
21
|
+
function p(r) {
|
|
22
22
|
const e = I(r);
|
|
23
23
|
return e.current = r, e;
|
|
24
24
|
}
|
|
25
|
-
l(
|
|
25
|
+
l(p, "useLatest");
|
|
26
26
|
var ue = /* @__PURE__ */ ((r) => (r.IDLE = "idle", r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(ue || {});
|
|
27
27
|
function le(r) {
|
|
28
28
|
const [e, t] = D(
|
|
29
29
|
r?.initialStatus ?? "idle"
|
|
30
30
|
/* IDLE */
|
|
31
|
-
), [n, s] = D(void 0), [c, i] = D(void 0), o =
|
|
31
|
+
), [n, s] = D(void 0), [c, i] = D(void 0), o = j(), u = p(r), d = _(() => {
|
|
32
32
|
o() && (t(
|
|
33
33
|
"loading"
|
|
34
34
|
/* LOADING */
|
|
@@ -116,13 +116,13 @@ function q(r) {
|
|
|
116
116
|
setSuccess: i,
|
|
117
117
|
setError: o,
|
|
118
118
|
setIdle: u
|
|
119
|
-
} = le(r), d =
|
|
119
|
+
} = le(r), d = j(), a = ie(), f = I(void 0), m = r?.propagateError, b = p(r?.onAbort), y = _(async () => {
|
|
120
120
|
try {
|
|
121
121
|
await b.current?.();
|
|
122
122
|
} catch (Q) {
|
|
123
123
|
console.warn("useExecutePromise onAbort callback error:", Q);
|
|
124
124
|
}
|
|
125
|
-
}, [b]),
|
|
125
|
+
}, [b]), x = _(async (Q) => {
|
|
126
126
|
f.current && (f.current.abort(), await y());
|
|
127
127
|
const g = new AbortController();
|
|
128
128
|
f.current = g;
|
|
@@ -143,20 +143,20 @@ function q(r) {
|
|
|
143
143
|
}
|
|
144
144
|
}, [c, i, o, u, d, a, m, y]), E = _(() => {
|
|
145
145
|
d() && u();
|
|
146
|
-
}, [u, d]),
|
|
146
|
+
}, [u, d]), h = _(async () => {
|
|
147
147
|
E(), f.current && (f.current.abort(), f.current = void 0, await y());
|
|
148
148
|
}, [E, y]);
|
|
149
149
|
return O(() => () => {
|
|
150
|
-
|
|
151
|
-
}, [
|
|
150
|
+
h();
|
|
151
|
+
}, [h]), M(() => ({
|
|
152
152
|
loading: e,
|
|
153
153
|
result: t,
|
|
154
154
|
error: n,
|
|
155
155
|
status: s,
|
|
156
|
-
execute:
|
|
156
|
+
execute: x,
|
|
157
157
|
reset: E,
|
|
158
|
-
abort:
|
|
159
|
-
}), [e, t, n, s,
|
|
158
|
+
abort: h
|
|
159
|
+
}), [e, t, n, s, x, E, h]);
|
|
160
160
|
}
|
|
161
161
|
l(q, "useExecutePromise");
|
|
162
162
|
function Se() {
|
|
@@ -186,7 +186,7 @@ function T(r, e) {
|
|
|
186
186
|
const t = w(19);
|
|
187
187
|
if (e.leading === !1 && e.trailing === !1)
|
|
188
188
|
throw new Error("useDebouncedCallback: at least one of leading or trailing must be true");
|
|
189
|
-
const n = I(void 0), s = I(null), c = I(null), i =
|
|
189
|
+
const n = I(void 0), s = I(null), c = I(null), i = p(r), o = p(e);
|
|
190
190
|
let u;
|
|
191
191
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(() => {
|
|
192
192
|
n.current !== void 0 && (clearTimeout(n.current), n.current = void 0);
|
|
@@ -210,9 +210,9 @@ function T(r, e) {
|
|
|
210
210
|
n.current = void 0;
|
|
211
211
|
}, o.current.delay);
|
|
212
212
|
}, "t3"), t[5] = b, t[6] = o, t[7] = y) : y = t[7];
|
|
213
|
-
const
|
|
213
|
+
const x = y;
|
|
214
214
|
let E;
|
|
215
|
-
t[8] !== b || t[9] !== o || t[10] !==
|
|
215
|
+
t[8] !== b || t[9] !== o || t[10] !== x || t[11] !== f ? (E = /* @__PURE__ */ l((...R) => {
|
|
216
216
|
const C = R;
|
|
217
217
|
d();
|
|
218
218
|
const {
|
|
@@ -220,7 +220,7 @@ function T(r, e) {
|
|
|
220
220
|
trailing: k
|
|
221
221
|
} = o.current, K = U === void 0 ? !1 : U, N = k === void 0 ? !0 : k;
|
|
222
222
|
if (s.current = C, N && !K) {
|
|
223
|
-
|
|
223
|
+
x();
|
|
224
224
|
return;
|
|
225
225
|
}
|
|
226
226
|
const V = Date.now();
|
|
@@ -228,9 +228,9 @@ function T(r, e) {
|
|
|
228
228
|
b(V, C);
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
|
-
N &&
|
|
232
|
-
}, "t4"), t[8] = b, t[9] = o, t[10] =
|
|
233
|
-
const
|
|
231
|
+
N && x();
|
|
232
|
+
}, "t4"), t[8] = b, t[9] = o, t[10] = x, t[11] = f, t[12] = E) : E = t[12];
|
|
233
|
+
const h = E;
|
|
234
234
|
let Q;
|
|
235
235
|
t[13] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ l(() => {
|
|
236
236
|
d(), s.current = null;
|
|
@@ -244,11 +244,11 @@ function T(r, e) {
|
|
|
244
244
|
g();
|
|
245
245
|
}, "t7"), L = [g], t[15] = F, t[16] = L) : (F = t[15], L = t[16]), O(F, L);
|
|
246
246
|
let $;
|
|
247
|
-
return t[17] !==
|
|
248
|
-
run:
|
|
247
|
+
return t[17] !== h ? ($ = {
|
|
248
|
+
run: h,
|
|
249
249
|
cancel: g,
|
|
250
250
|
isPending: v
|
|
251
|
-
}, t[17] =
|
|
251
|
+
}, t[17] = h, t[18] = $) : $ = t[18], $;
|
|
252
252
|
}
|
|
253
253
|
l(T, "useDebouncedCallback");
|
|
254
254
|
function _e(r) {
|
|
@@ -288,7 +288,7 @@ function ae(r) {
|
|
|
288
288
|
return r + 1;
|
|
289
289
|
}
|
|
290
290
|
l(ae, "_temp");
|
|
291
|
-
function
|
|
291
|
+
function z(r, e) {
|
|
292
292
|
const t = w(13);
|
|
293
293
|
let n;
|
|
294
294
|
t[0] !== r ? (n = /* @__PURE__ */ l((b) => r.addListener({
|
|
@@ -311,9 +311,9 @@ function G(r, e) {
|
|
|
311
311
|
let m;
|
|
312
312
|
return t[9] !== f || t[10] !== d || t[11] !== o ? (m = [o, d, f], t[9] = f, t[10] = d, t[11] = o, t[12] = m) : m = t[12], m;
|
|
313
313
|
}
|
|
314
|
-
l(
|
|
314
|
+
l(z, "useKeyStorage");
|
|
315
315
|
function Fe(r, e) {
|
|
316
|
-
const t = w(8), [n, s, c] =
|
|
316
|
+
const t = w(8), [n, s, c] = z(r, e);
|
|
317
317
|
let i;
|
|
318
318
|
t[0] !== c || t[1] !== s || t[2] !== n ? (i = /* @__PURE__ */ l((d) => {
|
|
319
319
|
const a = re(n, d);
|
|
@@ -329,10 +329,13 @@ function Fe(r, e) {
|
|
|
329
329
|
}
|
|
330
330
|
l(Fe, "useImmerKeyStorage");
|
|
331
331
|
const fe = {
|
|
332
|
-
|
|
332
|
+
jti: "",
|
|
333
|
+
sub: "anonymous",
|
|
334
|
+
iat: 0,
|
|
335
|
+
exp: 0
|
|
333
336
|
};
|
|
334
337
|
function de(r) {
|
|
335
|
-
const e = w(7), [t, , n] =
|
|
338
|
+
const e = w(7), [t, , n] = z(r);
|
|
336
339
|
let s;
|
|
337
340
|
e[0] !== r ? (s = /* @__PURE__ */ l((d) => {
|
|
338
341
|
r.signIn(d);
|
|
@@ -347,24 +350,24 @@ function de(r) {
|
|
|
347
350
|
}, e[2] = n, e[3] = c, e[4] = i, e[5] = o, e[6] = u) : u = e[6], u;
|
|
348
351
|
}
|
|
349
352
|
l(de, "useSecurity");
|
|
350
|
-
const
|
|
353
|
+
const G = X(void 0);
|
|
351
354
|
function Re(r) {
|
|
352
355
|
const e = w(3), {
|
|
353
356
|
tokenStorage: t,
|
|
354
357
|
children: n
|
|
355
358
|
} = r, s = de(t);
|
|
356
359
|
let c;
|
|
357
|
-
return e[0] !== n || e[1] !== s ? (c = /* @__PURE__ */ ee(
|
|
360
|
+
return e[0] !== n || e[1] !== s ? (c = /* @__PURE__ */ ee(G.Provider, { value: s, children: n }), e[0] = n, e[1] = s, e[2] = c) : c = e[2], c;
|
|
358
361
|
}
|
|
359
362
|
l(Re, "SecurityProvider");
|
|
360
363
|
function Ce() {
|
|
361
|
-
const r = Z(
|
|
364
|
+
const r = Z(G);
|
|
362
365
|
if (!r)
|
|
363
366
|
throw new Error("useSecurityContext must be used within a SecurityProvider");
|
|
364
367
|
return r;
|
|
365
368
|
}
|
|
366
369
|
l(Ce, "useSecurityContext");
|
|
367
|
-
function
|
|
370
|
+
function J(r) {
|
|
368
371
|
const e = w(21);
|
|
369
372
|
let t;
|
|
370
373
|
e[0] !== r ? (t = r || {}, e[0] = r, e[1] = t) : t = e[1];
|
|
@@ -378,12 +381,12 @@ function W(r) {
|
|
|
378
381
|
execute: d,
|
|
379
382
|
reset: a,
|
|
380
383
|
abort: f
|
|
381
|
-
} = q(r), [m, b] = D(void 0), y =
|
|
382
|
-
let h;
|
|
383
|
-
e[2] !== s ? (h = ce(s), e[2] = s, e[3] = h) : h = e[3];
|
|
384
|
-
const E = h;
|
|
384
|
+
} = q(r), [m, b] = D(void 0), y = p(r);
|
|
385
385
|
let x;
|
|
386
|
-
e[
|
|
386
|
+
e[2] !== s ? (x = ce(s), e[2] = s, e[3] = x) : x = e[3];
|
|
387
|
+
const E = x;
|
|
388
|
+
let h;
|
|
389
|
+
e[4] !== E || e[5] !== y || e[6] !== d ? (h = /* @__PURE__ */ l(async ($) => {
|
|
387
390
|
try {
|
|
388
391
|
await d(async (R) => {
|
|
389
392
|
$.abortController = R;
|
|
@@ -394,8 +397,8 @@ function W(r) {
|
|
|
394
397
|
const C = R;
|
|
395
398
|
throw b(void 0), C;
|
|
396
399
|
}
|
|
397
|
-
}, "t3"), e[4] = E, e[5] = y, e[6] = d, e[7] =
|
|
398
|
-
const Q =
|
|
400
|
+
}, "t3"), e[4] = E, e[5] = y, e[6] = d, e[7] = h) : h = e[7];
|
|
401
|
+
const Q = h;
|
|
399
402
|
let g;
|
|
400
403
|
e[8] !== a ? (g = /* @__PURE__ */ l(() => {
|
|
401
404
|
a(), b(void 0);
|
|
@@ -418,7 +421,7 @@ function W(r) {
|
|
|
418
421
|
abort: F
|
|
419
422
|
}, e[12] = F, e[13] = o, e[14] = m, e[15] = Q, e[16] = c, e[17] = S, e[18] = i, e[19] = u, e[20] = L) : L = e[20], L;
|
|
420
423
|
}
|
|
421
|
-
l(
|
|
424
|
+
l(J, "useFetcher");
|
|
422
425
|
function Le(r) {
|
|
423
426
|
const e = w(11), {
|
|
424
427
|
loading: t,
|
|
@@ -429,7 +432,7 @@ function Le(r) {
|
|
|
429
432
|
execute: o,
|
|
430
433
|
reset: u,
|
|
431
434
|
abort: d
|
|
432
|
-
} =
|
|
435
|
+
} = J(r), {
|
|
433
436
|
run: a,
|
|
434
437
|
cancel: f,
|
|
435
438
|
isPending: m
|
|
@@ -449,7 +452,7 @@ function Le(r) {
|
|
|
449
452
|
}, e[0] = d, e[1] = f, e[2] = s, e[3] = i, e[4] = m, e[5] = t, e[6] = u, e[7] = n, e[8] = a, e[9] = c, e[10] = b) : b = e[10], b;
|
|
450
453
|
}
|
|
451
454
|
l(Le, "useDebouncedFetcher");
|
|
452
|
-
function
|
|
455
|
+
function W(r) {
|
|
453
456
|
const e = w(10), {
|
|
454
457
|
initialQuery: t,
|
|
455
458
|
autoExecute: n,
|
|
@@ -473,9 +476,9 @@ function j(r) {
|
|
|
473
476
|
setQuery: a
|
|
474
477
|
}, e[8] = a, e[9] = b) : b = e[9], b;
|
|
475
478
|
}
|
|
476
|
-
l(
|
|
477
|
-
function
|
|
478
|
-
const e =
|
|
479
|
+
l(W, "useQueryState");
|
|
480
|
+
function P(r) {
|
|
481
|
+
const e = p(r), {
|
|
479
482
|
loading: t,
|
|
480
483
|
result: n,
|
|
481
484
|
error: s,
|
|
@@ -483,10 +486,10 @@ function p(r) {
|
|
|
483
486
|
execute: i,
|
|
484
487
|
reset: o,
|
|
485
488
|
abort: u
|
|
486
|
-
} = q(e.current), d = _((b) => i(/* @__PURE__ */ l(async (
|
|
489
|
+
} = q(e.current), d = _((b) => i(/* @__PURE__ */ l(async (x) => e.current.execute(b, e.current.attributes, x), "queryExecutor")), [i, e]), {
|
|
487
490
|
getQuery: a,
|
|
488
491
|
setQuery: f
|
|
489
|
-
} =
|
|
492
|
+
} = W({
|
|
490
493
|
initialQuery: r.initialQuery,
|
|
491
494
|
autoExecute: e.current.autoExecute,
|
|
492
495
|
execute: d
|
|
@@ -503,9 +506,9 @@ function p(r) {
|
|
|
503
506
|
setQuery: f
|
|
504
507
|
}), [t, n, s, c, m, o, u, a, f]);
|
|
505
508
|
}
|
|
506
|
-
l(
|
|
509
|
+
l(P, "useQuery");
|
|
507
510
|
function Ie(r) {
|
|
508
|
-
return
|
|
511
|
+
return P(r);
|
|
509
512
|
}
|
|
510
513
|
l(Ie, "useCountQuery");
|
|
511
514
|
function A(r) {
|
|
@@ -515,7 +518,7 @@ function A(r) {
|
|
|
515
518
|
resultExtractor: se,
|
|
516
519
|
...r
|
|
517
520
|
}, e[0] = r, e[1] = t) : t = e[1];
|
|
518
|
-
const n = t, s =
|
|
521
|
+
const n = t, s = p(n), {
|
|
519
522
|
loading: c,
|
|
520
523
|
result: i,
|
|
521
524
|
error: o,
|
|
@@ -523,7 +526,7 @@ function A(r) {
|
|
|
523
526
|
execute: d,
|
|
524
527
|
reset: a,
|
|
525
528
|
abort: f
|
|
526
|
-
} =
|
|
529
|
+
} = J(n);
|
|
527
530
|
let m;
|
|
528
531
|
e[2] !== d || e[3] !== s ? (m = /* @__PURE__ */ l((S) => {
|
|
529
532
|
const v = {
|
|
@@ -541,14 +544,14 @@ function A(r) {
|
|
|
541
544
|
execute: b
|
|
542
545
|
}, e[5] = b, e[6] = n.autoExecute, e[7] = n.initialQuery, e[8] = y) : y = e[8];
|
|
543
546
|
const {
|
|
544
|
-
getQuery:
|
|
547
|
+
getQuery: x,
|
|
545
548
|
setQuery: E
|
|
546
|
-
} =
|
|
547
|
-
let
|
|
548
|
-
e[9] !== b || e[10] !==
|
|
549
|
-
const Q =
|
|
549
|
+
} = W(y);
|
|
550
|
+
let h;
|
|
551
|
+
e[9] !== b || e[10] !== x ? (h = /* @__PURE__ */ l(() => b(x()), "t3"), e[9] = b, e[10] = x, e[11] = h) : h = e[11];
|
|
552
|
+
const Q = h;
|
|
550
553
|
let g;
|
|
551
|
-
return e[12] !== f || e[13] !== o || e[14] !== Q || e[15] !==
|
|
554
|
+
return e[12] !== f || e[13] !== o || e[14] !== Q || e[15] !== x || e[16] !== c || e[17] !== a || e[18] !== i || e[19] !== E || e[20] !== u ? (g = {
|
|
552
555
|
loading: c,
|
|
553
556
|
result: i,
|
|
554
557
|
error: o,
|
|
@@ -556,9 +559,9 @@ function A(r) {
|
|
|
556
559
|
execute: Q,
|
|
557
560
|
reset: a,
|
|
558
561
|
abort: f,
|
|
559
|
-
getQuery:
|
|
562
|
+
getQuery: x,
|
|
560
563
|
setQuery: E
|
|
561
|
-
}, e[12] = f, e[13] = o, e[14] = Q, e[15] =
|
|
564
|
+
}, e[12] = f, e[13] = o, e[14] = Q, e[15] = x, e[16] = c, e[17] = a, e[18] = i, e[19] = E, e[20] = u, e[21] = g) : g = e[21], g;
|
|
562
565
|
}
|
|
563
566
|
l(A, "useFetcherQuery");
|
|
564
567
|
function Oe(r) {
|
|
@@ -569,7 +572,7 @@ function $e(r) {
|
|
|
569
572
|
return A(r);
|
|
570
573
|
}
|
|
571
574
|
l($e, "useFetcherListQuery");
|
|
572
|
-
function
|
|
575
|
+
function pe(r) {
|
|
573
576
|
const e = w(2);
|
|
574
577
|
let t;
|
|
575
578
|
return e[0] !== r ? (t = {
|
|
@@ -577,29 +580,29 @@ function Pe(r) {
|
|
|
577
580
|
resultExtractor: oe
|
|
578
581
|
}, e[0] = r, e[1] = t) : t = e[1], A(t);
|
|
579
582
|
}
|
|
580
|
-
l(
|
|
581
|
-
function
|
|
583
|
+
l(pe, "useFetcherListStreamQuery");
|
|
584
|
+
function Pe(r) {
|
|
582
585
|
return A(r);
|
|
583
586
|
}
|
|
584
|
-
l(
|
|
587
|
+
l(Pe, "useFetcherPagedQuery");
|
|
585
588
|
function Ae(r) {
|
|
586
589
|
return A(r);
|
|
587
590
|
}
|
|
588
591
|
l(Ae, "useFetcherSingleQuery");
|
|
589
592
|
function De(r) {
|
|
590
|
-
return
|
|
593
|
+
return P(r);
|
|
591
594
|
}
|
|
592
595
|
l(De, "useListQuery");
|
|
593
596
|
function Me(r) {
|
|
594
|
-
return
|
|
597
|
+
return P(r);
|
|
595
598
|
}
|
|
596
599
|
l(Me, "useListStreamQuery");
|
|
597
600
|
function Te(r) {
|
|
598
|
-
return
|
|
601
|
+
return P(r);
|
|
599
602
|
}
|
|
600
603
|
l(Te, "usePagedQuery");
|
|
601
604
|
function qe(r) {
|
|
602
|
-
return
|
|
605
|
+
return P(r);
|
|
603
606
|
}
|
|
604
607
|
l(qe, "useSingleQuery");
|
|
605
608
|
function Ue(r) {
|
|
@@ -621,20 +624,20 @@ function Ue(r) {
|
|
|
621
624
|
setQuery: b
|
|
622
625
|
} = A(s), {
|
|
623
626
|
run: y,
|
|
624
|
-
cancel:
|
|
627
|
+
cancel: x,
|
|
625
628
|
isPending: E
|
|
626
629
|
} = T(d, r.debounce);
|
|
627
|
-
let
|
|
628
|
-
e[2] !== t || e[3] !== y || e[4] !== b ? (
|
|
630
|
+
let h;
|
|
631
|
+
e[2] !== t || e[3] !== y || e[4] !== b ? (h = /* @__PURE__ */ l((F) => {
|
|
629
632
|
b(F), t && y();
|
|
630
|
-
}, "t1"), e[2] = t, e[3] = y, e[4] = b, e[5] =
|
|
631
|
-
const Q =
|
|
633
|
+
}, "t1"), e[2] = t, e[3] = y, e[4] = b, e[5] = h) : h = e[5];
|
|
634
|
+
const Q = h;
|
|
632
635
|
let g, S;
|
|
633
636
|
e[6] !== t || e[7] !== y ? (g = /* @__PURE__ */ l(() => {
|
|
634
637
|
t && y();
|
|
635
638
|
}, "t2"), S = [y, t], e[6] = t, e[7] = y, e[8] = g, e[9] = S) : (g = e[8], S = e[9]), O(g, S);
|
|
636
639
|
let v;
|
|
637
|
-
return e[10] !== f || e[11] !==
|
|
640
|
+
return e[10] !== f || e[11] !== x || e[12] !== o || e[13] !== m || e[14] !== E || e[15] !== c || e[16] !== a || e[17] !== i || e[18] !== y || e[19] !== Q || e[20] !== u ? (v = {
|
|
638
641
|
loading: c,
|
|
639
642
|
result: i,
|
|
640
643
|
error: o,
|
|
@@ -644,9 +647,9 @@ function Ue(r) {
|
|
|
644
647
|
getQuery: m,
|
|
645
648
|
setQuery: Q,
|
|
646
649
|
run: y,
|
|
647
|
-
cancel:
|
|
650
|
+
cancel: x,
|
|
648
651
|
isPending: E
|
|
649
|
-
}, e[10] = f, e[11] =
|
|
652
|
+
}, e[10] = f, e[11] = x, e[12] = o, e[13] = m, e[14] = E, e[15] = c, e[16] = a, e[17] = i, e[18] = y, e[19] = Q, e[20] = u, e[21] = v) : v = e[21], v;
|
|
650
653
|
}
|
|
651
654
|
l(Ue, "useDebouncedFetcherQuery");
|
|
652
655
|
function ke(r) {
|
|
@@ -666,22 +669,22 @@ function ke(r) {
|
|
|
666
669
|
abort: f,
|
|
667
670
|
getQuery: m,
|
|
668
671
|
setQuery: b
|
|
669
|
-
} =
|
|
672
|
+
} = P(s), {
|
|
670
673
|
run: y,
|
|
671
|
-
cancel:
|
|
674
|
+
cancel: x,
|
|
672
675
|
isPending: E
|
|
673
676
|
} = T(d, r.debounce);
|
|
674
|
-
let
|
|
675
|
-
e[2] !== t || e[3] !== y || e[4] !== b ? (
|
|
677
|
+
let h;
|
|
678
|
+
e[2] !== t || e[3] !== y || e[4] !== b ? (h = /* @__PURE__ */ l((F) => {
|
|
676
679
|
b(F), t && y();
|
|
677
|
-
}, "t1"), e[2] = t, e[3] = y, e[4] = b, e[5] =
|
|
678
|
-
const Q =
|
|
680
|
+
}, "t1"), e[2] = t, e[3] = y, e[4] = b, e[5] = h) : h = e[5];
|
|
681
|
+
const Q = h;
|
|
679
682
|
let g, S;
|
|
680
683
|
e[6] !== t || e[7] !== y ? (g = /* @__PURE__ */ l(() => {
|
|
681
684
|
t && y();
|
|
682
685
|
}, "t2"), S = [y, t], e[6] = t, e[7] = y, e[8] = g, e[9] = S) : (g = e[8], S = e[9]), O(g, S);
|
|
683
686
|
let v;
|
|
684
|
-
return e[10] !== f || e[11] !==
|
|
687
|
+
return e[10] !== f || e[11] !== x || e[12] !== o || e[13] !== m || e[14] !== E || e[15] !== c || e[16] !== a || e[17] !== i || e[18] !== y || e[19] !== Q || e[20] !== u ? (v = {
|
|
685
688
|
loading: c,
|
|
686
689
|
result: i,
|
|
687
690
|
error: o,
|
|
@@ -691,9 +694,9 @@ function ke(r) {
|
|
|
691
694
|
getQuery: m,
|
|
692
695
|
setQuery: Q,
|
|
693
696
|
run: y,
|
|
694
|
-
cancel:
|
|
697
|
+
cancel: x,
|
|
695
698
|
isPending: E
|
|
696
|
-
}, e[10] = f, e[11] =
|
|
699
|
+
}, e[10] = f, e[11] = x, e[12] = o, e[13] = m, e[14] = E, e[15] = c, e[16] = a, e[17] = i, e[18] = y, e[19] = Q, e[20] = u, e[21] = v) : v = e[21], v;
|
|
697
700
|
}
|
|
698
701
|
l(ke, "useDebouncedQuery");
|
|
699
702
|
function Ke(r) {
|
|
@@ -721,7 +724,7 @@ l(Ke, "useEventSubscription");
|
|
|
721
724
|
export {
|
|
722
725
|
fe as ANONYMOUS_USER,
|
|
723
726
|
ue as PromiseStatus,
|
|
724
|
-
|
|
727
|
+
G as SecurityContext,
|
|
725
728
|
Re as SecurityProvider,
|
|
726
729
|
Ie as useCountQuery,
|
|
727
730
|
T as useDebouncedCallback,
|
|
@@ -731,24 +734,24 @@ export {
|
|
|
731
734
|
ke as useDebouncedQuery,
|
|
732
735
|
Ke as useEventSubscription,
|
|
733
736
|
q as useExecutePromise,
|
|
734
|
-
|
|
737
|
+
J as useFetcher,
|
|
735
738
|
Oe as useFetcherCountQuery,
|
|
736
739
|
$e as useFetcherListQuery,
|
|
737
|
-
|
|
738
|
-
|
|
740
|
+
pe as useFetcherListStreamQuery,
|
|
741
|
+
Pe as useFetcherPagedQuery,
|
|
739
742
|
A as useFetcherQuery,
|
|
740
743
|
Ae as useFetcherSingleQuery,
|
|
741
744
|
we as useForceUpdate,
|
|
742
745
|
Fe as useImmerKeyStorage,
|
|
743
|
-
|
|
744
|
-
|
|
746
|
+
z as useKeyStorage,
|
|
747
|
+
p as useLatest,
|
|
745
748
|
De as useListQuery,
|
|
746
749
|
Me as useListStreamQuery,
|
|
747
|
-
|
|
750
|
+
j as useMounted,
|
|
748
751
|
Te as usePagedQuery,
|
|
749
752
|
le as usePromiseState,
|
|
750
|
-
|
|
751
|
-
|
|
753
|
+
P as useQuery,
|
|
754
|
+
W as useQueryState,
|
|
752
755
|
Se as useRefs,
|
|
753
756
|
ie as useRequestId,
|
|
754
757
|
de as useSecurity,
|