react-toolkits 2.2.2 → 2.3.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c6e08a0: Rollback
8
+
3
9
  ## 2.2.2
4
10
 
5
11
  ### Patch Changes
package/lib/index.css CHANGED
@@ -1,330 +1 @@
1
- /* src/styles/index.css */
2
- *,
3
- ::before,
4
- ::after {
5
- --tw-border-spacing-x: 0;
6
- --tw-border-spacing-y: 0;
7
- --tw-translate-x: 0;
8
- --tw-translate-y: 0;
9
- --tw-rotate: 0;
10
- --tw-skew-x: 0;
11
- --tw-skew-y: 0;
12
- --tw-scale-x: 1;
13
- --tw-scale-y: 1;
14
- --tw-pan-x: ;
15
- --tw-pan-y: ;
16
- --tw-pinch-zoom: ;
17
- --tw-scroll-snap-strictness: proximity;
18
- --tw-gradient-from-position: ;
19
- --tw-gradient-via-position: ;
20
- --tw-gradient-to-position: ;
21
- --tw-ordinal: ;
22
- --tw-slashed-zero: ;
23
- --tw-numeric-figure: ;
24
- --tw-numeric-spacing: ;
25
- --tw-numeric-fraction: ;
26
- --tw-ring-inset: ;
27
- --tw-ring-offset-width: 0px;
28
- --tw-ring-offset-color: #fff;
29
- --tw-ring-color: rgb(59 130 246 / 0.5);
30
- --tw-ring-offset-shadow: 0 0 #0000;
31
- --tw-ring-shadow: 0 0 #0000;
32
- --tw-shadow: 0 0 #0000;
33
- --tw-shadow-colored: 0 0 #0000;
34
- --tw-blur: ;
35
- --tw-brightness: ;
36
- --tw-contrast: ;
37
- --tw-grayscale: ;
38
- --tw-hue-rotate: ;
39
- --tw-invert: ;
40
- --tw-saturate: ;
41
- --tw-sepia: ;
42
- --tw-drop-shadow: ;
43
- --tw-backdrop-blur: ;
44
- --tw-backdrop-brightness: ;
45
- --tw-backdrop-contrast: ;
46
- --tw-backdrop-grayscale: ;
47
- --tw-backdrop-hue-rotate: ;
48
- --tw-backdrop-invert: ;
49
- --tw-backdrop-opacity: ;
50
- --tw-backdrop-saturate: ;
51
- --tw-backdrop-sepia: ;
52
- --tw-contain-size: ;
53
- --tw-contain-layout: ;
54
- --tw-contain-paint: ;
55
- --tw-contain-style: ;
56
- }
57
- ::backdrop {
58
- --tw-border-spacing-x: 0;
59
- --tw-border-spacing-y: 0;
60
- --tw-translate-x: 0;
61
- --tw-translate-y: 0;
62
- --tw-rotate: 0;
63
- --tw-skew-x: 0;
64
- --tw-skew-y: 0;
65
- --tw-scale-x: 1;
66
- --tw-scale-y: 1;
67
- --tw-pan-x: ;
68
- --tw-pan-y: ;
69
- --tw-pinch-zoom: ;
70
- --tw-scroll-snap-strictness: proximity;
71
- --tw-gradient-from-position: ;
72
- --tw-gradient-via-position: ;
73
- --tw-gradient-to-position: ;
74
- --tw-ordinal: ;
75
- --tw-slashed-zero: ;
76
- --tw-numeric-figure: ;
77
- --tw-numeric-spacing: ;
78
- --tw-numeric-fraction: ;
79
- --tw-ring-inset: ;
80
- --tw-ring-offset-width: 0px;
81
- --tw-ring-offset-color: #fff;
82
- --tw-ring-color: rgb(59 130 246 / 0.5);
83
- --tw-ring-offset-shadow: 0 0 #0000;
84
- --tw-ring-shadow: 0 0 #0000;
85
- --tw-shadow: 0 0 #0000;
86
- --tw-shadow-colored: 0 0 #0000;
87
- --tw-blur: ;
88
- --tw-brightness: ;
89
- --tw-contrast: ;
90
- --tw-grayscale: ;
91
- --tw-hue-rotate: ;
92
- --tw-invert: ;
93
- --tw-saturate: ;
94
- --tw-sepia: ;
95
- --tw-drop-shadow: ;
96
- --tw-backdrop-blur: ;
97
- --tw-backdrop-brightness: ;
98
- --tw-backdrop-contrast: ;
99
- --tw-backdrop-grayscale: ;
100
- --tw-backdrop-hue-rotate: ;
101
- --tw-backdrop-invert: ;
102
- --tw-backdrop-opacity: ;
103
- --tw-backdrop-saturate: ;
104
- --tw-backdrop-sepia: ;
105
- --tw-contain-size: ;
106
- --tw-contain-layout: ;
107
- --tw-contain-paint: ;
108
- --tw-contain-style: ;
109
- }
110
- .container {
111
- width: 100%;
112
- }
113
- @media (min-width: 640px) {
114
- .container {
115
- max-width: 640px;
116
- }
117
- }
118
- @media (min-width: 768px) {
119
- .container {
120
- max-width: 768px;
121
- }
122
- }
123
- @media (min-width: 1024px) {
124
- .container {
125
- max-width: 1024px;
126
- }
127
- }
128
- @media (min-width: 1280px) {
129
- .container {
130
- max-width: 1280px;
131
- }
132
- }
133
- @media (min-width: 1536px) {
134
- .container {
135
- max-width: 1536px;
136
- }
137
- }
138
- .fixed {
139
- position: fixed;
140
- }
141
- .absolute {
142
- position: absolute;
143
- }
144
- .relative {
145
- position: relative;
146
- }
147
- .bottom-0 {
148
- bottom: 0px;
149
- }
150
- .left-0 {
151
- left: 0px;
152
- }
153
- .left-14 {
154
- left: 3.5rem;
155
- }
156
- .right-0 {
157
- right: 0px;
158
- }
159
- .right-16 {
160
- right: 4rem;
161
- }
162
- .top-0 {
163
- top: 0px;
164
- }
165
- .top-1\/2 {
166
- top: 50%;
167
- }
168
- .top-16 {
169
- top: 4rem;
170
- }
171
- .top-6 {
172
- top: 1.5rem;
173
- }
174
- .z-10 {
175
- z-index: 10;
176
- }
177
- .my-12 {
178
- margin-top: 3rem;
179
- margin-bottom: 3rem;
180
- }
181
- .mb-0 {
182
- margin-bottom: 0px;
183
- }
184
- .mb-12 {
185
- margin-bottom: 3rem;
186
- }
187
- .mb-4 {
188
- margin-bottom: 1rem;
189
- }
190
- .mb-6 {
191
- margin-bottom: 1.5rem;
192
- }
193
- .ml-4 {
194
- margin-left: 1rem;
195
- }
196
- .mr-6 {
197
- margin-right: 1.5rem;
198
- }
199
- .mt-2 {
200
- margin-top: 0.5rem;
201
- }
202
- .mt-4 {
203
- margin-top: 1rem;
204
- }
205
- .block {
206
- display: block;
207
- }
208
- .inline {
209
- display: inline;
210
- }
211
- .flex {
212
- display: flex;
213
- }
214
- .h-10 {
215
- height: 2.5rem;
216
- }
217
- .h-full {
218
- height: 100%;
219
- }
220
- .h-screen {
221
- height: 100vh;
222
- }
223
- .w-10\/12 {
224
- width: 83.333333%;
225
- }
226
- .w-\[650px\] {
227
- width: 650px;
228
- }
229
- .w-full {
230
- width: 100%;
231
- }
232
- .w-screen {
233
- width: 100vw;
234
- }
235
- .flex-1 {
236
- flex: 1 1 0%;
237
- }
238
- .flex-grow-0 {
239
- flex-grow: 0;
240
- }
241
- .-translate-y-1\/2 {
242
- --tw-translate-y: -50%;
243
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
244
- }
245
- .-translate-y-10 {
246
- --tw-translate-y: -2.5rem;
247
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
248
- }
249
- .flex-col {
250
- flex-direction: column;
251
- }
252
- .items-center {
253
- align-items: center;
254
- }
255
- .justify-center {
256
- justify-content: center;
257
- }
258
- .justify-between {
259
- justify-content: space-between;
260
- }
261
- .gap-2 {
262
- gap: 0.5rem;
263
- }
264
- .overflow-hidden {
265
- overflow: hidden;
266
- }
267
- .bg-slate-50 {
268
- --tw-bg-opacity: 1;
269
- background-color: rgb(248 250 252 / var(--tw-bg-opacity));
270
- }
271
- .px-36 {
272
- padding-left: 9rem;
273
- padding-right: 9rem;
274
- }
275
- .px-6 {
276
- padding-left: 1.5rem;
277
- padding-right: 1.5rem;
278
- }
279
- .py-4 {
280
- padding-top: 1rem;
281
- padding-bottom: 1rem;
282
- }
283
- .filter {
284
- filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
285
- }
286
- .transition {
287
- transition-property:
288
- color,
289
- background-color,
290
- border-color,
291
- text-decoration-color,
292
- fill,
293
- stroke,
294
- opacity,
295
- box-shadow,
296
- transform,
297
- filter,
298
- -webkit-backdrop-filter;
299
- transition-property:
300
- color,
301
- background-color,
302
- border-color,
303
- text-decoration-color,
304
- fill,
305
- stroke,
306
- opacity,
307
- box-shadow,
308
- transform,
309
- filter,
310
- backdrop-filter;
311
- transition-property:
312
- color,
313
- background-color,
314
- border-color,
315
- text-decoration-color,
316
- fill,
317
- stroke,
318
- opacity,
319
- box-shadow,
320
- transform,
321
- filter,
322
- backdrop-filter,
323
- -webkit-backdrop-filter;
324
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
325
- transition-duration: 150ms;
326
- }
327
- .ease-in-out {
328
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
329
- }
330
- /*# sourceMappingURL=index.css.map */
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.left-14{left:3.5rem}.right-0{right:0}.right-16{right:4rem}.top-0{top:0}.top-1\/2{top:50%}.top-16{top:4rem}.top-6{top:1.5rem}.z-10{z-index:10}.my-12{margin-top:3rem;margin-bottom:3rem}.mb-0{margin-bottom:0}.mb-12{margin-bottom:3rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-4{margin-left:1rem}.mr-6{margin-right:1.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.h-10{height:2.5rem}.h-full{height:100%}.h-screen{height:100vh}.w-10\/12{width:83.333333%}.w-\[650px\]{width:650px}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.flex-grow-0{flex-grow:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.px-36{padding-left:9rem;padding-right:9rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}
package/lib/index.d.ts CHANGED
@@ -10,9 +10,27 @@ import { StateStorage } from 'zustand/middleware';
10
10
  import { FormInstance, ButtonProps, ModalProps, FormProps } from 'antd';
11
11
  import { TableProps } from 'antd/es/table';
12
12
  import { AnyObject } from 'antd/es/_util/type';
13
- import * as use_http from 'use-http';
14
- import { IncomingOptions } from 'use-http';
15
- import { MutatorCallback, MutatorOptions } from 'swr';
13
+ import { MutatorCallback, MutatorOptions, SWRConfiguration } from 'swr';
14
+
15
+ declare class RequestError extends Error {
16
+ status: number;
17
+ code?: number;
18
+ constructor(opts: {
19
+ message?: string;
20
+ status: number;
21
+ code?: number;
22
+ });
23
+ }
24
+ interface RequestOptions extends Omit<RequestInit, 'body'> {
25
+ body?: Record<string | number, any> | FormData | null;
26
+ params?: Record<string | number, any> | URLSearchParams | null;
27
+ responseType?: 'json' | 'blob' | 'text';
28
+ isGlobal?: boolean;
29
+ }
30
+ type RequestResponse<T> = Pick<Response, 'headers' | 'status' | 'statusText' | 'url'> & {
31
+ data: T;
32
+ };
33
+ declare function request<T = any>(url: string, opts?: RequestOptions): Promise<RequestResponse<T>>;
16
34
 
17
35
  declare const GameSelect: () => react_jsx_runtime.JSX.Element;
18
36
 
@@ -164,6 +182,7 @@ interface ContextState {
164
182
  children: ReactNode;
165
183
  }[];
166
184
  gameFilter?: (game: Game) => boolean;
185
+ responseInterceptor?: (response: Response, opts: RequestOptions) => Promise<any>;
167
186
  }
168
187
 
169
188
  declare const contextStore: zustand.StoreApi<ContextState>;
@@ -252,8 +271,6 @@ interface QueryListRef<Item, Value, Response> {
252
271
  dataSource: Item[] | undefined;
253
272
  form: FormInstance<Value>;
254
273
  }
255
- type BodyProp = Record<string | number, any> | FormData | null;
256
- type ParamsProp = Record<string | number, any> | URLSearchParams | null;
257
274
  interface QueryListProps<Item extends AnyObject = AnyObject, Value = any, Response = any> extends Omit<TableProps<Item>, 'pagination' | 'dataSource' | 'loading'> {
258
275
  code?: string;
259
276
  isGlobal?: boolean;
@@ -262,10 +279,10 @@ interface QueryListProps<Item extends AnyObject = AnyObject, Value = any, Respon
262
279
  refreshInterval?: number;
263
280
  onePage?: boolean;
264
281
  defaultSize?: number;
265
- headers?: IncomingOptions['headers'];
282
+ headers?: RequestOptions['headers'];
266
283
  buttonsAlign?: 'left' | 'right';
267
- body?: BodyProp | ((payload: QueryListPayload<Value>) => BodyProp);
268
- params?: ParamsProp | ((payload: QueryListPayload<Value>) => ParamsProp);
284
+ body?: RequestOptions['body'] | ((payload: QueryListPayload<Value>) => RequestOptions['body']);
285
+ params?: RequestOptions['params'] | ((payload: QueryListPayload<Value>) => RequestOptions['params']);
269
286
  tableExtra?: ReactNode | ((form: FormInstance<Value>) => ReactNode);
270
287
  renderForm?: (form: FormInstance<Value>) => ReactElement;
271
288
  extra?: (opts: {
@@ -334,138 +351,17 @@ declare function useFormModal<Values extends AnyObject = AnyObject, ExtraValues
334
351
  modal: react_jsx_runtime.JSX.Element;
335
352
  };
336
353
 
337
- declare function usePermissions(codes: string[], isGlobal?: boolean): {
354
+ declare function usePermissions(codes: string[], isGlobal?: boolean, config?: SWRConfiguration): {
338
355
  data: Record<string, boolean> | undefined;
339
356
  isValidating: boolean;
340
357
  isLoading: boolean;
341
358
  };
342
- declare function usePermission(code: string | undefined, isGlobal?: boolean): {
359
+ declare function usePermission(code: string | undefined, isGlobal?: boolean, config?: SWRConfiguration): {
343
360
  accessible: boolean;
344
361
  isValidating: boolean;
345
362
  isLoading: boolean;
346
363
  };
347
364
 
348
- type Params = Record<string | number, string | number> | URLSearchParams | null;
349
- declare const useRequest: <T>(opts?: Omit<IncomingOptions, "interceptors"> & {
350
- isGlobal?: boolean;
351
- responseType?: "json" | "blob" | "text";
352
- }) => {
353
- get: (route?: string, params?: Params) => Promise<T>;
354
- 0: use_http.Req<T>;
355
- 1: use_http.Res<T>;
356
- 2: boolean;
357
- 3: Error;
358
- length: 4;
359
- toString(): string;
360
- toLocaleString(): string;
361
- toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
362
- pop(): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
363
- push(...items: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]): number;
364
- concat(...items: ConcatArray<boolean | Error | use_http.Req<T> | use_http.Res<T>>[]): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
365
- concat(...items: (boolean | Error | use_http.Req<T> | use_http.Res<T> | ConcatArray<boolean | Error | use_http.Req<T> | use_http.Res<T>>)[]): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
366
- join(separator?: string): string;
367
- reverse(): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
368
- shift(): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
369
- slice(start?: number, end?: number): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
370
- sort(compareFn?: ((a: boolean | Error | use_http.Req<T> | use_http.Res<T>, b: boolean | Error | use_http.Req<T> | use_http.Res<T>) => number) | undefined): use_http.UseFetch<T>;
371
- splice(start: number, deleteCount?: number): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
372
- splice(start: number, deleteCount: number, ...items: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
373
- unshift(...items: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]): number;
374
- indexOf(searchElement: boolean | Error | use_http.Req<T> | use_http.Res<T>, fromIndex?: number): number;
375
- lastIndexOf(searchElement: boolean | Error | use_http.Req<T> | use_http.Res<T>, fromIndex?: number): number;
376
- every<S extends boolean | Error | use_http.Req<T> | use_http.Res<T>>(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => value is S, thisArg?: any): this is S[];
377
- every(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): boolean;
378
- some(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): boolean;
379
- forEach(callbackfn: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => void, thisArg?: any): void;
380
- map<U>(callbackfn: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => U, thisArg?: any): U[];
381
- filter<S extends boolean | Error | use_http.Req<T> | use_http.Res<T>>(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => value is S, thisArg?: any): S[];
382
- filter(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
383
- reduce(callbackfn: (previousValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => boolean | Error | use_http.Req<T> | use_http.Res<T>): boolean | Error | use_http.Req<T> | use_http.Res<T>;
384
- reduce(callbackfn: (previousValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => boolean | Error | use_http.Req<T> | use_http.Res<T>, initialValue: boolean | Error | use_http.Req<T> | use_http.Res<T>): boolean | Error | use_http.Req<T> | use_http.Res<T>;
385
- reduce<U>(callbackfn: (previousValue: U, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => U, initialValue: U): U;
386
- reduceRight(callbackfn: (previousValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => boolean | Error | use_http.Req<T> | use_http.Res<T>): boolean | Error | use_http.Req<T> | use_http.Res<T>;
387
- reduceRight(callbackfn: (previousValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => boolean | Error | use_http.Req<T> | use_http.Res<T>, initialValue: boolean | Error | use_http.Req<T> | use_http.Res<T>): boolean | Error | use_http.Req<T> | use_http.Res<T>;
388
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => U, initialValue: U): U;
389
- find<S extends boolean | Error | use_http.Req<T> | use_http.Res<T>>(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, obj: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => value is S, thisArg?: any): S | undefined;
390
- find(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, obj: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
391
- findIndex(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, obj: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): number;
392
- fill(value: boolean | Error | use_http.Req<T> | use_http.Res<T>, start?: number, end?: number): use_http.UseFetch<T>;
393
- copyWithin(target: number, start: number, end?: number): use_http.UseFetch<T>;
394
- entries(): IterableIterator<[number, boolean | Error | use_http.Req<T> | use_http.Res<T>]>;
395
- keys(): IterableIterator<number>;
396
- values(): IterableIterator<boolean | Error | use_http.Req<T> | use_http.Res<T>>;
397
- includes(searchElement: boolean | Error | use_http.Req<T> | use_http.Res<T>, fromIndex?: number): boolean;
398
- flatMap<U, This = undefined>(callback: (this: This, value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => U | readonly U[], thisArg?: This | undefined): U[];
399
- flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
400
- at(index: number): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
401
- findLast<S extends boolean | Error | use_http.Req<T> | use_http.Res<T>>(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => value is S, thisArg?: any): S | undefined;
402
- findLast(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
403
- findLastIndex(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): number;
404
- toReversed(): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
405
- toSorted(compareFn?: ((a: boolean | Error | use_http.Req<T> | use_http.Res<T>, b: boolean | Error | use_http.Req<T> | use_http.Res<T>) => number) | undefined): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
406
- toSpliced(start: number, deleteCount: number, ...items: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
407
- toSpliced(start: number, deleteCount?: number): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
408
- with(index: number, value: boolean | Error | use_http.Req<T> | use_http.Res<T>): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
409
- [Symbol.iterator](): IterableIterator<boolean | Error | use_http.Req<T> | use_http.Res<T>>;
410
- [Symbol.unscopables]: {
411
- [x: number]: boolean | undefined;
412
- length?: boolean | undefined;
413
- toString?: boolean | undefined;
414
- toLocaleString?: boolean | undefined;
415
- pop?: boolean | undefined;
416
- push?: boolean | undefined;
417
- concat?: boolean | undefined;
418
- join?: boolean | undefined;
419
- reverse?: boolean | undefined;
420
- shift?: boolean | undefined;
421
- slice?: boolean | undefined;
422
- sort?: boolean | undefined;
423
- splice?: boolean | undefined;
424
- unshift?: boolean | undefined;
425
- indexOf?: boolean | undefined;
426
- lastIndexOf?: boolean | undefined;
427
- every?: boolean | undefined;
428
- some?: boolean | undefined;
429
- forEach?: boolean | undefined;
430
- map?: boolean | undefined;
431
- filter?: boolean | undefined;
432
- reduce?: boolean | undefined;
433
- reduceRight?: boolean | undefined;
434
- find?: boolean | undefined;
435
- findIndex?: boolean | undefined;
436
- fill?: boolean | undefined;
437
- copyWithin?: boolean | undefined;
438
- entries?: boolean | undefined;
439
- keys?: boolean | undefined;
440
- values?: boolean | undefined;
441
- includes?: boolean | undefined;
442
- flatMap?: boolean | undefined;
443
- flat?: boolean | undefined;
444
- at?: boolean | undefined;
445
- findLast?: boolean | undefined;
446
- findLastIndex?: boolean | undefined;
447
- toReversed?: boolean | undefined;
448
- toSorted?: boolean | undefined;
449
- toSpliced?: boolean | undefined;
450
- with?: boolean | undefined;
451
- [Symbol.iterator]?: boolean | undefined;
452
- readonly [Symbol.unscopables]?: boolean | undefined;
453
- };
454
- data: T | undefined;
455
- loading: boolean;
456
- error: Error | undefined;
457
- cache: use_http.Cache;
458
- post: use_http.FetchData<T>;
459
- patch: use_http.FetchData<T>;
460
- put: use_http.FetchData<T>;
461
- del: use_http.FetchData<T>;
462
- delete: use_http.FetchData<T>;
463
- query: (query: string, variables?: BodyInit | object) => Promise<T>;
464
- mutate: (mutation: string, variables?: BodyInit | object) => Promise<T>;
465
- abort: () => void;
466
- request: use_http.Req<T>;
467
- };
468
-
469
365
  interface UserInfo {
470
366
  authorityId: string;
471
367
  exp: number;
@@ -499,10 +395,15 @@ declare const OperationLogList: FC;
499
395
 
500
396
  declare const PermissionRoutes: () => react_jsx_runtime.JSX.Element;
501
397
 
398
+ declare const useRedirectToSignIn: () => (notRegistered?: boolean) => void;
399
+ interface RedirectToSignInProps {
400
+ notRegistered?: boolean;
401
+ }
402
+ declare const RedirectToSignIn: FC<RedirectToSignInProps>;
502
403
  declare const SignIn: FC;
503
404
 
504
405
  declare const withLayout: (WrappedComponent: ComponentType, props?: Partial<ContextState>) => () => react_jsx_runtime.JSX.Element;
505
406
 
506
407
  declare const mixedStorage: StateStorage;
507
408
 
508
- export { ContextProvider, type ContextState, DynamicTags, type DynamicTagsProps, ExpandableParagraph, FilterFormWrapper, type FilterFormWrapperProps, type Game, GameSelect, type GameState, Highlight, type HighlightTextsProps, InfiniteList, type InfiniteListProps, Layout, NavMenu, type NavMenuItem, NotFound, OperationLogList, PermissionButton, type PermissionButtonProps, PermissionGuard, type PermissionGuardProps, PermissionRoutes, QueryList, QueryListAction, type QueryListProps, type QueryListRef, SignIn, type TokenState, type UseFormModalProps, UserWidget, contextStore, mixedStorage, useFormModal, useGameStore, useModal, useModalStore, usePermission, usePermissions, useQueryListStore, useRequest, useTokenStore, useTokenValidation, useToolkitsContext, withLayout };
409
+ export { ContextProvider, type ContextState, DynamicTags, type DynamicTagsProps, ExpandableParagraph, FilterFormWrapper, type FilterFormWrapperProps, type Game, GameSelect, type GameState, Highlight, type HighlightTextsProps, InfiniteList, type InfiniteListProps, Layout, NavMenu, type NavMenuItem, NotFound, OperationLogList, PermissionButton, type PermissionButtonProps, PermissionGuard, type PermissionGuardProps, PermissionRoutes, QueryList, QueryListAction, type QueryListProps, type QueryListRef, RedirectToSignIn, RequestError, type RequestOptions, type RequestResponse, SignIn, type TokenState, type UseFormModalProps, UserWidget, contextStore, mixedStorage, request, useFormModal, useGameStore, useModal, useModalStore, usePermission, usePermissions, useQueryListStore, useRedirectToSignIn, useTokenStore, useTokenValidation, useToolkitsContext, withLayout };