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/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: RequestOptions_2) => Promise<any>;
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 | undefined, rowKey?: string) => Record<any, any>;
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-tuOuGmo8.chunk.js";
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.66",
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",