hlyc-web-pack 3.5.72 → 3.5.74

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.
Files changed (28) hide show
  1. package/lib/{index.d.ts → components/index.d.ts} +1 -0
  2. package/lib/components/unrelated/ConfigProvider/index.d.ts +7 -0
  3. package/lib/hooks/index.d.ts +11 -0
  4. package/lib/hooks/useDeepCompareEffect/index.d.ts +7 -0
  5. package/lib/hooks/useMount/index.d.ts +2 -0
  6. package/lib/hooks/useUnmount/index.d.ts +2 -0
  7. package/lib/hooks/useUpdateEffect/index.d.ts +4 -0
  8. package/lib/index.js +4 -4
  9. package/package.json +4 -2
  10. /package/lib/{Affix → components/Affix}/index.d.ts +0 -0
  11. /package/lib/{ButtonGroup → components/ButtonGroup}/index.d.ts +0 -0
  12. /package/lib/{Dialog → components/Dialog}/index.d.ts +0 -0
  13. /package/lib/{Empty → components/Empty}/index.d.ts +0 -0
  14. /package/lib/{GaoDeMap → components/GaoDeMap}/index.d.ts +0 -0
  15. /package/lib/{GenerateForm → components/GenerateForm}/index.d.ts +0 -0
  16. /package/lib/{GenerateTable → components/GenerateTable}/EditableCell/index.d.ts +0 -0
  17. /package/lib/{GenerateTable → components/GenerateTable}/ResizableTitle/index.d.ts +0 -0
  18. /package/lib/{GenerateTable → components/GenerateTable}/index.d.ts +0 -0
  19. /package/lib/{IconSelectionModal → components/IconSelectionModal}/index.d.ts +0 -0
  20. /package/lib/{LayoutFormModal → components/LayoutFormModal}/index.d.ts +0 -0
  21. /package/lib/{LayoutTableModal → components/LayoutTableModal}/index.d.ts +0 -0
  22. /package/lib/{QuicklyProcessForms → components/QuicklyProcessForms}/index.d.ts +0 -0
  23. /package/lib/{TreeNode → components/TreeNode}/index.d.ts +0 -0
  24. /package/lib/{Upload → components/Upload}/index.d.ts +0 -0
  25. /package/lib/{unrelated → components/unrelated}/DndWrap/index.d.ts +0 -0
  26. /package/lib/{unrelated → components/unrelated}/typings/index.d.ts +0 -0
  27. /package/lib/{unrelated → components/unrelated}/utils/index.d.ts +0 -0
  28. /package/lib/{unrelated/hooks → hooks}/useSetState/index.d.ts +0 -0
@@ -1,4 +1,5 @@
1
1
  import 'antd/dist/antd.less';
2
+ export { default as hooks } from '../hooks';
2
3
  export { default as Affix } from './Affix';
3
4
  export { default as Dialog } from './Dialog';
4
5
  export { default as GaoDeMap } from './GaoDeMap';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import 'moment/locale/zh-cn';
3
+ interface PropTypes {
4
+ children: React.ReactNode;
5
+ }
6
+ declare const ConfigProvider: (props: PropTypes) => JSX.Element;
7
+ export default ConfigProvider;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import useDeepCompareEffect from './useDeepCompareEffect';
3
+ declare const _default: {
4
+ useSetState: <T extends object>(initialState?: T) => [T, (patch: Partial<T> | ((prevState: T) => Partial<T>)) => void];
5
+ useDeepCompareEffect: typeof useDeepCompareEffect;
6
+ useUpdateEffect: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
7
+ useMemoizedFn: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
8
+ useMount: (fn: () => void) => void;
9
+ useUnmount: (fn: () => void) => void;
10
+ };
11
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare type UseEffectParams = Parameters<typeof React.useEffect>;
3
+ declare type EffectCallback = UseEffectParams[0];
4
+ declare type DependencyList = UseEffectParams[1];
5
+ declare type UseEffectReturn = ReturnType<typeof React.useEffect>;
6
+ declare function useDeepCompareEffect(callback: EffectCallback, dependencies: DependencyList): UseEffectReturn;
7
+ export default useDeepCompareEffect;
@@ -0,0 +1,2 @@
1
+ declare const useMount: (fn: () => void) => void;
2
+ export default useMount;
@@ -0,0 +1,2 @@
1
+ declare const useUnmount: (fn: () => void) => void;
2
+ export default useUnmount;
@@ -0,0 +1,4 @@
1
+ import { useEffect, useLayoutEffect } from 'react';
2
+ declare type effectHookType = typeof useEffect | typeof useLayoutEffect;
3
+ declare const _default: effectHookType;
4
+ export default _default;