react-toolkits 0.8.66 → 0.8.68
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 +12 -0
- package/lib/{index-1OdjsSgR.chunk.js → index-EtXWwVUq.chunk.js} +3 -3
- package/lib/{index-1OdjsSgR.chunk.js.map → index-EtXWwVUq.chunk.js.map} +1 -1
- package/lib/{index-ublIYX8y.chunk.js → index-Nwjf2pVo.chunk.js} +2 -2
- package/lib/{index-ublIYX8y.chunk.js.map → index-Nwjf2pVo.chunk.js.map} +1 -1
- package/lib/{index-bOArzWbR.chunk.js → index-P6FB1b66.chunk.js} +4 -4
- package/lib/{index-bOArzWbR.chunk.js.map → index-P6FB1b66.chunk.js.map} +1 -1
- package/lib/{index-U4_wXe5n.chunk.js → index-dD7UXVuL.chunk.js} +4 -4
- package/lib/{index-U4_wXe5n.chunk.js.map → index-dD7UXVuL.chunk.js.map} +1 -1
- package/lib/{index-CPcao_rh.chunk.js → index-fnuikdnj.chunk.js} +3 -3
- package/lib/{index-CPcao_rh.chunk.js.map → index-fnuikdnj.chunk.js.map} +1 -1
- package/lib/{index-tuOuGmo8.chunk.js → index-nZjU9PaU.chunk.js} +804 -800
- package/lib/index-nZjU9PaU.chunk.js.map +1 -0
- package/lib/index.d.ts +2 -3
- package/lib/index.js +1 -1
- package/package.json +3 -3
- package/lib/index-tuOuGmo8.chunk.js.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ import type { PropsWithChildren } from 'react';
|
|
|
18
18
|
import type { ReactElement } from 'react';
|
|
19
19
|
import { ReactNode } from 'react';
|
|
20
20
|
import type { Ref } from 'react';
|
|
21
|
-
import type { RequestOptions as RequestOptions_2 } from 'src/utils/request';
|
|
22
21
|
import type { StateStorage } from 'zustand/middleware';
|
|
23
22
|
import { StoreApi } from 'zustand';
|
|
24
23
|
import type { SubMenuType } from 'antd/es/menu/hooks/useItems';
|
|
@@ -46,7 +45,7 @@ export declare interface ContextState {
|
|
|
46
45
|
children: ReactNode;
|
|
47
46
|
}[];
|
|
48
47
|
isGlobal?: boolean;
|
|
49
|
-
responseInterceptor?: (response: Response, opts:
|
|
48
|
+
responseInterceptor?: (response: Response, opts: RequestOptions) => Promise<any>;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
export declare const contextStore: StoreApi<ContextState>;
|
|
@@ -110,7 +109,7 @@ export declare interface InfiniteListProps<Item, Values, Response> extends Pick<
|
|
|
110
109
|
code?: string;
|
|
111
110
|
headers?: Record<string, string> | ((form: FormInstance<Values>) => Record<string, string>);
|
|
112
111
|
renderForm?: (form: FormInstance<Values>) => ReactNode;
|
|
113
|
-
transformArg: (values: Values
|
|
112
|
+
transformArg: (values: Values, rowKey?: string) => Record<any, any>;
|
|
114
113
|
hasMore?: (data: Response[] | undefined) => boolean;
|
|
115
114
|
isGlobal?: boolean;
|
|
116
115
|
extras?: InfiniteListExtra<Values>[];
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as r, D as u, F as n, G as m, H as d, l, L as p, N as L, o as S, O as g, p as y, P, q as x, Q as c, r as F, R as G, t as M, S as R, B as T, k as h, n as k, b as q, v as Q, x as v, y as B, c as C, z as N, u as f, e as w, E as D, J as E, d as H, a as I, K as O, M as W } from "./index-
|
|
1
|
+
import { C as r, D as u, F as n, G as m, H as d, l, L as p, N as L, o as S, O as g, p as y, P, q as x, Q as c, r as F, R as G, t as M, S as R, B as T, k as h, n as k, b as q, v as Q, x as v, y as B, c as C, z as N, u as f, e as w, E as D, J as E, d as H, a as I, K as O, M as W } from "./index-nZjU9PaU.chunk.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
4
|
import "react-dom";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-toolkits",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.68",
|
|
4
4
|
"packageManager": "^pnpm@8.7.5",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"typescript": "^5.3.3",
|
|
70
70
|
"vite": "^5.0.10",
|
|
71
71
|
"vite-plugin-dts": "^3.6.4",
|
|
72
|
+
"@flow97/eslint-config-mono": "0.0.4",
|
|
72
73
|
"tailwind-config": "0.1.1",
|
|
73
|
-
"tsconfig": "0.0.5"
|
|
74
|
-
"@flow97/eslint-config-mono": "0.0.4"
|
|
74
|
+
"tsconfig": "0.0.5"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"antd": "^5.12.2",
|