@flatbiz/antd 2.3.39 → 2.3.40

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/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { TextAreaProps } from 'antd/lib/input';
10
10
  import { ColumnsType } from 'antd/lib/table';
11
11
  import { UploadChangeParam } from 'antd/lib/upload';
12
12
  import { UploadFile } from 'antd/lib/upload/interface';
13
- import { CSSProperties, DependencyList, EffectCallback, FC, ReactElement, ReactNode, VFC } from 'react';
13
+ import { CSSProperties, DependencyList, Dispatch, EffectCallback, FC, ReactElement, ReactNode, SetStateAction, VFC } from 'react';
14
14
 
15
15
  export declare const styles: () => void;
16
16
  export interface ButtonOperateItem extends ButtonProps {
@@ -605,6 +605,10 @@ export declare const Gap: VFC<GapProps>;
605
605
  export declare const useEffectCustom: (fn: EffectCallback, deps: DependencyList) => void;
606
606
  export declare const useEffectCustomAsync: (fn: () => Promise<void>, deps: DependencyList) => void;
607
607
  export declare type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean;
608
+ export declare const useSafeState: <S extends unknown>(initialState?: S | (() => S) | undefined) => [
609
+ S,
610
+ Dispatch<SetStateAction<S>>
611
+ ];
608
612
  export declare type IconWrapperProps = {
609
613
  hoverTips?: string;
610
614
  icon?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "2.3.39",
3
+ "version": "2.3.40",
4
4
  "description": "flat-biz oss ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -49,5 +49,5 @@
49
49
  "react-router": "^6.3.0",
50
50
  "react-router-dom": "^6.3.0"
51
51
  },
52
- "gitHead": "48fb4ec8bd41a636008d94c338dbd13bbe25df77"
52
+ "gitHead": "27cdc14c3b0ce51fa8991ceefd595dfa331c9b91"
53
53
  }