@zat-design/sisyphus-react 3.6.5-beta.2 → 3.6.5-beta.4
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/es/ProDownload/index.d.ts +1 -1
- package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
- package/es/ProEditTable/components/Summary/index.d.ts +1 -1
- package/es/ProEditTable/utils/config.d.ts +1 -1
- package/es/ProEnum/components/Group.d.ts +1 -1
- package/es/ProEnum/components/Tag.d.ts +1 -1
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/utils/eventCenter.js +1 -2
- package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/es/ProForm/components/base/Input/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +1 -2
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
- package/es/ProForm/index.d.ts +3 -2
- package/es/ProForm/index.js +3 -17
- package/es/ProForm/utils/useWatch.d.ts +7 -0
- package/es/ProForm/utils/useWatch.js +80 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/es/ProLayout/index.d.ts +4 -4
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/es/ProSelect/index.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.d.ts +1 -1
- package/es/ProStep/components/Step/index.d.ts +1 -1
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProTable/components/ResizableLine/index.d.ts +1 -1
- package/es/ProTable/components/TableResizable/index.d.ts +1 -1
- package/es/ProTable/index.d.ts +1 -1
- package/es/ProTabs/components/Card/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProTooltip/index.d.ts +1 -1
- package/es/ProTree/components/CloseIcon.d.ts +1 -2
- package/es/ProTree/components/List.d.ts +1 -1
- package/es/ProTree/components/ProTree.d.ts +1 -1
- package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +1 -1
- package/es/ProTree/index.d.ts +1 -1
- package/es/ProTreeModal/components/Cascader.d.ts +1 -1
- package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/es/ProTreeModal/components/Trigger.d.ts +1 -1
- package/es/ProTreeModal/index.d.ts +1 -1
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/lib/ProDownload/index.d.ts +1 -1
- package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
- package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
- package/lib/ProEditTable/utils/config.d.ts +1 -1
- package/lib/ProEnum/components/Group.d.ts +1 -1
- package/lib/ProEnum/components/Tag.d.ts +1 -1
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/utils/eventCenter.js +1 -2
- package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/lib/ProForm/components/base/Input/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -2
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
- package/lib/ProForm/index.d.ts +3 -2
- package/lib/ProForm/index.js +2 -16
- package/lib/ProForm/utils/useWatch.d.ts +7 -0
- package/lib/ProForm/utils/useWatch.js +90 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/lib/ProLayout/index.d.ts +4 -4
- package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/lib/ProSelect/index.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +1 -1
- package/lib/ProStep/components/Item/index.d.ts +1 -1
- package/lib/ProStep/components/Step/index.d.ts +1 -1
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProTable/components/ResizableLine/index.d.ts +1 -1
- package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
- package/lib/ProTable/index.d.ts +1 -1
- package/lib/ProTabs/components/Card/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProTooltip/index.d.ts +1 -1
- package/lib/ProTree/components/CloseIcon.d.ts +1 -2
- package/lib/ProTree/components/List.d.ts +1 -1
- package/lib/ProTree/components/ProTree.d.ts +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- package/lib/ProTree/components/Tree.d.ts +1 -1
- package/lib/ProTree/index.d.ts +1 -1
- package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
- package/lib/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
- package/lib/ProTreeModal/index.d.ts +1 -1
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/package.json +1 -1
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import { IProDownloadProps } from './propsType';
         | 
| 2 2 | 
             
            declare const ProDownload: {
         | 
| 3 | 
            -
                (props: IProDownloadProps): JSX.Element;
         | 
| 3 | 
            +
                (props: IProDownloadProps): import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
                downLoadRequest: import("./utils").DownloadRequestProps;
         | 
| 5 5 | 
             
            };
         | 
| 6 6 | 
             
            export default ProDownload;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const ActionButton: ({ record, index, config, btnConfig }: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const ActionButton: ({ record, index, config, btnConfig }: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default ActionButton;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const RenderField: ({ text: value, record, index, column, config }: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const RenderField: ({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default RenderField;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const RenderToolbar: (config: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const RenderToolbar: (config: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default RenderToolbar;
         | 
| @@ -8,5 +8,5 @@ interface SummaryProps<T = any> { | |
| 8 8 | 
             
                };
         | 
| 9 9 | 
             
                rowSelection: any;
         | 
| 10 10 | 
             
            }
         | 
| 11 | 
            -
            declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => JSX.Element;
         | 
| 11 | 
            +
            declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 12 12 | 
             
            export default Summary;
         | 
| @@ -9,7 +9,7 @@ export declare const defaultBtnNameMap: { | |
| 9 9 | 
             
                custom: any;
         | 
| 10 10 | 
             
            };
         | 
| 11 11 | 
             
            export declare const iconMap: {
         | 
| 12 | 
            -
                add: JSX.Element;
         | 
| 12 | 
            +
                add: import("react/jsx-runtime").JSX.Element;
         | 
| 13 13 | 
             
            };
         | 
| 14 14 | 
             
            export declare const defaultSingleActionKeys: string[];
         | 
| 15 15 | 
             
            export declare const defaultMultipleActionKeys: string[];
         | 
| @@ -6,5 +6,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource' | |
| 6 6 | 
             
                allowClear?: boolean;
         | 
| 7 7 | 
             
                button?: boolean;
         | 
| 8 8 | 
             
            }
         | 
| 9 | 
            -
            declare const Group: (props: Props) => JSX.Element;
         | 
| 9 | 
            +
            declare const Group: (props: Props) => import("react/jsx-runtime").JSX.Element;
         | 
| 10 10 | 
             
            export default Group;
         | 
| @@ -3,5 +3,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource' | |
| 3 3 | 
             
                fieldValue: string;
         | 
| 4 4 | 
             
                fieldLabel: string;
         | 
| 5 5 | 
             
            }
         | 
| 6 | 
            -
            declare const ProEnumTag: (props: Props) => JSX.Element;
         | 
| 6 | 
            +
            declare const ProEnumTag: (props: Props) => import("react/jsx-runtime").JSX.Element;
         | 
| 7 7 | 
             
            export default ProEnumTag;
         | 
    
        package/es/ProEnum/index.d.ts
    CHANGED
    
    | @@ -2,8 +2,8 @@ import useEnum from './hooks/useEnum'; | |
| 2 2 | 
             
            import { ProEnumProps } from './propsType';
         | 
| 3 3 | 
             
            import './style/index.less';
         | 
| 4 4 | 
             
            declare const ProEnum: {
         | 
| 5 | 
            -
                (props: ProEnumProps): JSX.Element;
         | 
| 6 | 
            -
                getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
         | 
| 5 | 
            +
                (props: ProEnumProps): import("react/jsx-runtime").JSX.Element;
         | 
| 6 | 
            +
                getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
         | 
| 7 7 | 
             
                useEnum: typeof useEnum;
         | 
| 8 8 | 
             
            };
         | 
| 9 9 | 
             
            export default ProEnum;
         | 
| @@ -7,7 +7,7 @@ var SimpleEventCenter = /*#__PURE__*/function () { | |
| 7 7 | 
             
                this.events = void 0;
         | 
| 8 8 | 
             
                this.events = new Map();
         | 
| 9 9 | 
             
              }
         | 
| 10 | 
            -
              _createClass(SimpleEventCenter, [{
         | 
| 10 | 
            +
              return _createClass(SimpleEventCenter, [{
         | 
| 11 11 | 
             
                key: "subscribe",
         | 
| 12 12 | 
             
                value: function subscribe(eventName, callback) {
         | 
| 13 13 | 
             
                  if (!this.events.has(eventName)) {
         | 
| @@ -34,6 +34,5 @@ var SimpleEventCenter = /*#__PURE__*/function () { | |
| 34 34 | 
             
                  }
         | 
| 35 35 | 
             
                }
         | 
| 36 36 | 
             
              }]);
         | 
| 37 | 
            -
              return SimpleEventCenter;
         | 
| 38 37 | 
             
            }(); // 将 eventCenter 实例添加到 window 对象上
         | 
| 39 38 | 
             
            window.eventCenter = new SimpleEventCenter();
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
         | 
| 1 | 
            +
            declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default getEnumLabel;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            /// <reference types="react" />
         | 
| 2 2 | 
             
            import { ProCascaderProps } from './propsType';
         | 
| 3 | 
            -
            declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => JSX.Element>;
         | 
| 3 | 
            +
            declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 4 4 | 
             
            export default _default;
         | 
| @@ -12,5 +12,5 @@ export interface InputRangeProps { | |
| 12 12 | 
             
                isPositiveInteger?: boolean;
         | 
| 13 13 | 
             
                precision?: number;
         | 
| 14 14 | 
             
            }
         | 
| 15 | 
            -
            declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => JSX.Element;
         | 
| 15 | 
            +
            declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 16 16 | 
             
            export default InputRange;
         | 
| @@ -1,4 +1,3 @@ | |
| 1 | 
            -
            /// <reference types="react" />
         | 
| 2 1 | 
             
            import { ProAddressPropsType } from './propsTypes';
         | 
| 3 2 | 
             
            export declare const transferAddressInfoToRegion: () => {
         | 
| 4 3 | 
             
                normalize: (value: any) => {
         | 
| @@ -24,5 +23,5 @@ export declare const transferAddressInfoToRegion: () => { | |
| 24 23 | 
             
                    };
         | 
| 25 24 | 
             
                };
         | 
| 26 25 | 
             
            };
         | 
| 27 | 
            -
            export declare function ProAddress({ ...props }: ProAddressPropsType): JSX.Element;
         | 
| 26 | 
            +
            export declare function ProAddress({ ...props }: ProAddressPropsType): import("react/jsx-runtime").JSX.Element;
         | 
| 28 27 | 
             
            export default ProAddress;
         | 
| @@ -1,3 +1,2 @@ | |
| 1 | 
            -
            /// <reference types="react" />
         | 
| 2 1 | 
             
            import { ProRangeBoxPropsType } from './propsType';
         | 
| 3 | 
            -
            export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): JSX.Element;
         | 
| 2 | 
            +
            export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;
         | 
    
        package/es/ProForm/index.d.ts
    CHANGED
    
    | @@ -1,11 +1,12 @@ | |
| 1 | 
            -
            import {  | 
| 1 | 
            +
            import { FormInstance } from 'antd';
         | 
| 2 2 | 
             
            import React, { ForwardRefRenderFunction } from 'react';
         | 
| 3 3 | 
             
            import { FormProviderProps } from 'antd/es/form/context';
         | 
| 4 4 | 
             
            import { ProFormProps } from './propsType';
         | 
| 5 5 | 
             
            import { useForm } from './utils/useForm';
         | 
| 6 | 
            +
            import useWatch from './utils/useWatch';
         | 
| 6 7 | 
             
            interface IProForm<T = any> extends ForwardRefRenderFunction<FormInstance<T>, ProFormProps<T>> {
         | 
| 7 8 | 
             
                useForm: typeof useForm;
         | 
| 8 | 
            -
                useWatch: typeof  | 
| 9 | 
            +
                useWatch: typeof useWatch;
         | 
| 9 10 | 
             
                [key: string]: any;
         | 
| 10 11 | 
             
            }
         | 
| 11 12 | 
             
            declare const ProFormForward: IProForm;
         | 
    
        package/es/ProForm/index.js
    CHANGED
    
    | @@ -16,7 +16,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | |
| 16 16 | 
             
            import { DoubleLeftOutlined } from '@ant-design/icons';
         | 
| 17 17 | 
             
            import classnames from 'classnames';
         | 
| 18 18 | 
             
            import React, { forwardRef, useImperativeHandle, useMemo } from 'react';
         | 
| 19 | 
            -
            import { isObject,  | 
| 19 | 
            +
            import { isObject, merge } from 'lodash';
         | 
| 20 20 | 
             
            import { FormFooter, InputRange, ProAddress, ProCascader, ProCertNo, ProCertValidity, ProCombination, ProModalSelect, ProNumberRange, ProRangeBox, ProTimeLimit, transferAddressInfoToRegion, ProUpload, ProTreeModal, ProTree, EnumSelect } from './components';
         | 
| 21 21 | 
             
            import RenderFields from './components/render/RenderFields';
         | 
| 22 22 | 
             
            import { useProConfig, useContextForms } from '../ProConfigProvider';
         | 
| @@ -24,6 +24,7 @@ import { getLayout, splitNameStr, useControlled, initialValuesToNames, filterInt | |
| 24 24 | 
             
            import { useForm } from './utils/useForm';
         | 
| 25 25 | 
             
            import { useFieldProps } from './utils/useFieldProps';
         | 
| 26 26 | 
             
            import locale from '../locale';
         | 
| 27 | 
            +
            import useWatch from './utils/useWatch';
         | 
| 27 28 | 
             
            var ProForm = function ProForm(props, ref) {
         | 
| 28 29 | 
             
              var _forms$formKey, _localStorage, _ref;
         | 
| 29 30 | 
             
              var _props$mode = props.mode,
         | 
| @@ -273,22 +274,7 @@ var ProForm = function ProForm(props, ref) { | |
| 273 274 | 
             
            // @ts-ignore
         | 
| 274 275 | 
             
            var ProFormForward = /*#__PURE__*/forwardRef(ProForm);
         | 
| 275 276 | 
             
            ProFormForward.useForm = useForm;
         | 
| 276 | 
            -
            ProFormForward.useWatch =  | 
| 277 | 
            -
              if (isString(watchValue)) {
         | 
| 278 | 
            -
                var watchValues = [watchValue];
         | 
| 279 | 
            -
                watchValues.forEach(function (item) {
         | 
| 280 | 
            -
                  _Form.useWatch(item, form);
         | 
| 281 | 
            -
                });
         | 
| 282 | 
            -
                return form.getFieldsValue(watchValues);
         | 
| 283 | 
            -
              }
         | 
| 284 | 
            -
              if (watchValue.length) {
         | 
| 285 | 
            -
                watchValue.forEach(function (item) {
         | 
| 286 | 
            -
                  _Form.useWatch(item, form);
         | 
| 287 | 
            -
                });
         | 
| 288 | 
            -
                return form.getFieldsValue(watchValue);
         | 
| 289 | 
            -
              }
         | 
| 290 | 
            -
              return _Form.useWatch([], form);
         | 
| 291 | 
            -
            };
         | 
| 277 | 
            +
            ProFormForward.useWatch = useWatch;
         | 
| 292 278 | 
             
            export var ProFormProvider = function ProFormProvider(props) {
         | 
| 293 279 | 
             
              var onFormChange = props.onFormChange,
         | 
| 294 280 | 
             
                onFormFinish = props.onFormFinish,
         | 
| @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            import { InternalNamePath, FormInstance, NamePath } from 'rc-field-form/es/interface';
         | 
| 2 | 
            +
            export declare function toArray<T>(value?: T | T[] | null): T[];
         | 
| 3 | 
            +
            export declare function getNamePath(path: NamePath | null): InternalNamePath;
         | 
| 4 | 
            +
            export declare function stringify(value: any): string | number;
         | 
| 5 | 
            +
            declare function useWatch(dependencies: string, form?: FormInstance, wait?: number): any;
         | 
| 6 | 
            +
            declare function useWatch(dependencies: NamePath[], form?: FormInstance, wait?: number): any[];
         | 
| 7 | 
            +
            export default useWatch;
         | 
| @@ -0,0 +1,80 @@ | |
| 1 | 
            +
            import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
         | 
| 2 | 
            +
            import { debounce, get } from 'lodash';
         | 
| 3 | 
            +
            import { HOOK_MARK } from 'rc-field-form/es/FieldContext';
         | 
| 4 | 
            +
            import warning from 'rc-util/lib/warning';
         | 
| 5 | 
            +
            import { useState, useEffect, useRef, useMemo } from 'react';
         | 
| 6 | 
            +
            export function toArray(value) {
         | 
| 7 | 
            +
              if (value === undefined || value === null) {
         | 
| 8 | 
            +
                return [];
         | 
| 9 | 
            +
              }
         | 
| 10 | 
            +
              return Array.isArray(value) ? value : [value];
         | 
| 11 | 
            +
            }
         | 
| 12 | 
            +
            export function getNamePath(path) {
         | 
| 13 | 
            +
              return toArray(path);
         | 
| 14 | 
            +
            }
         | 
| 15 | 
            +
            export function stringify(value) {
         | 
| 16 | 
            +
              try {
         | 
| 17 | 
            +
                return JSON.stringify(value);
         | 
| 18 | 
            +
              } catch (err) {
         | 
| 19 | 
            +
                return Math.random();
         | 
| 20 | 
            +
              }
         | 
| 21 | 
            +
            }
         | 
| 22 | 
            +
            // 创建之后namepath就不可变
         | 
| 23 | 
            +
            var useWatchWarning = process.env.NODE_ENV !== 'production' ? function (namePath) {
         | 
| 24 | 
            +
              var fullyStr = JSON.stringify(namePath);
         | 
| 25 | 
            +
              var nameStrRef = useRef(fullyStr);
         | 
| 26 | 
            +
              warning(nameStrRef.current === fullyStr, '`useWatch` is not support dynamic `namePath`. Please provide static instead.');
         | 
| 27 | 
            +
            } : function () {};
         | 
| 28 | 
            +
            function useWatch(dependencies, form, wait) {
         | 
| 29 | 
            +
              var _useState = useState(typeof dependencies === 'string' ? undefined : []),
         | 
| 30 | 
            +
                _useState2 = _slicedToArray(_useState, 2),
         | 
| 31 | 
            +
                value = _useState2[0],
         | 
| 32 | 
            +
                setValue = _useState2[1];
         | 
| 33 | 
            +
              var valueStr = useMemo(function () {
         | 
| 34 | 
            +
                return stringify(value);
         | 
| 35 | 
            +
              }, [value]);
         | 
| 36 | 
            +
              var valueStrRef = useRef(valueStr);
         | 
| 37 | 
            +
              valueStrRef.current = valueStr;
         | 
| 38 | 
            +
              var formInstance = form;
         | 
| 39 | 
            +
              var isValidForm = formInstance && formInstance._init;
         | 
| 40 | 
            +
              var _dependencies = typeof dependencies === 'string' ? [dependencies] : dependencies;
         | 
| 41 | 
            +
              var namePaths = _dependencies === null || _dependencies === void 0 ? void 0 : _dependencies.map(function (item) {
         | 
| 42 | 
            +
                return getNamePath(item);
         | 
| 43 | 
            +
              });
         | 
| 44 | 
            +
              var namePathsRef = useRef(namePaths);
         | 
| 45 | 
            +
              namePathsRef.current = namePaths;
         | 
| 46 | 
            +
              useWatchWarning(namePaths);
         | 
| 47 | 
            +
              useEffect(function () {
         | 
| 48 | 
            +
                if (!isValidForm) return;
         | 
| 49 | 
            +
                var getFieldsValue = formInstance.getFieldsValue,
         | 
| 50 | 
            +
                  getInternalHooks = formInstance.getInternalHooks;
         | 
| 51 | 
            +
                var _getInternalHooks = getInternalHooks(HOOK_MARK),
         | 
| 52 | 
            +
                  registerWatch = _getInternalHooks.registerWatch;
         | 
| 53 | 
            +
                var callback = function callback(store) {
         | 
| 54 | 
            +
                  var newValue = namePathsRef.current.map(function (namePath) {
         | 
| 55 | 
            +
                    return get(store, namePath);
         | 
| 56 | 
            +
                  });
         | 
| 57 | 
            +
                  var nextValueStr = stringify(newValue);
         | 
| 58 | 
            +
                  // Compare stringify in case it's nest object
         | 
| 59 | 
            +
                  if (valueStrRef.current !== nextValueStr) {
         | 
| 60 | 
            +
                    valueStrRef.current = nextValueStr;
         | 
| 61 | 
            +
                    setValue(newValue);
         | 
| 62 | 
            +
                  }
         | 
| 63 | 
            +
                };
         | 
| 64 | 
            +
                // 增加防抖
         | 
| 65 | 
            +
                if (wait) {
         | 
| 66 | 
            +
                  callback = debounce(callback, wait);
         | 
| 67 | 
            +
                }
         | 
| 68 | 
            +
                var cancelRegister = registerWatch(callback);
         | 
| 69 | 
            +
                var initialValue = namePathsRef.current.map(function (namePath) {
         | 
| 70 | 
            +
                  return get(getFieldsValue(), namePath);
         | 
| 71 | 
            +
                });
         | 
| 72 | 
            +
                setValue(initialValue);
         | 
| 73 | 
            +
                return cancelRegister;
         | 
| 74 | 
            +
              },
         | 
| 75 | 
            +
              // We do not need re-register since namePath content is the same
         | 
| 76 | 
            +
              // eslint-disable-next-line react-hooks/exhaustive-deps
         | 
| 77 | 
            +
              [isValidForm]);
         | 
| 78 | 
            +
              return value;
         | 
| 79 | 
            +
            }
         | 
| 80 | 
            +
            export default useWatch;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            /// <reference types="react" />
         | 
| 2 2 | 
             
            import { ProFooterProps } from './PropTypes';
         | 
| 3 | 
            -
            declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => JSX.Element>;
         | 
| 3 | 
            +
            declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 4 4 | 
             
            export default _default;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            import React from 'react';
         | 
| 2 2 | 
             
            import type { ProHeaderProps } from './PropTypes';
         | 
| 3 | 
            -
            declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => JSX.Element>;
         | 
| 3 | 
            +
            declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 4 4 | 
             
            export default _default;
         | 
    
        package/es/ProLayout/index.d.ts
    CHANGED
    
    | @@ -5,7 +5,7 @@ export declare const LayoutContext: import("react").Context<{ | |
| 5 5 | 
             
                onSelected: (params: any) => void;
         | 
| 6 6 | 
             
            }>;
         | 
| 7 7 | 
             
            declare const ProLayout: {
         | 
| 8 | 
            -
                (props: ProLayoutProps): JSX.Element;
         | 
| 8 | 
            +
                (props: ProLayoutProps): import("react/jsx-runtime").JSX.Element;
         | 
| 9 9 | 
             
                defaultProps: {
         | 
| 10 10 | 
             
                    menus: any[];
         | 
| 11 11 | 
             
                    iconfontUrl: string;
         | 
| @@ -17,8 +17,8 @@ declare const ProLayout: { | |
| 17 17 | 
             
                    headerHeight: number;
         | 
| 18 18 | 
             
                    contentStyle: {};
         | 
| 19 19 | 
             
                };
         | 
| 20 | 
            -
                ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => JSX.Element;
         | 
| 21 | 
            -
                ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => JSX.Element>;
         | 
| 22 | 
            -
                ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => JSX.Element>;
         | 
| 20 | 
            +
                ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 21 | 
            +
                ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 22 | 
            +
                ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
         | 
| 23 23 | 
             
            };
         | 
| 24 24 | 
             
            export default ProLayout;
         | 
    
        package/es/ProSelect/index.d.ts
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import React from 'react';
         | 
| 2 2 | 
             
            import { PropSelectProps, ProSelectAction } from './propsType';
         | 
| 3 3 | 
             
            import './index.less';
         | 
| 4 | 
            -
            export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => JSX.Element;
         | 
| 4 | 
            +
            export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => import("react/jsx-runtime").JSX.Element;
         | 
| 5 5 | 
             
            declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<ProSelectAction>>;
         | 
| 6 6 | 
             
            export default _default;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            export declare const MenuItem: (props: any) => JSX.Element;
         | 
| 1 | 
            +
            export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default MenuItem;
         | 
| @@ -1,3 +1,3 @@ | |
| 1 1 | 
             
            import { ProStepItem } from '../../propsType';
         | 
| 2 | 
            -
            declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => JSX.Element;
         | 
| 2 | 
            +
            declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => import("react/jsx-runtime").JSX.Element;
         | 
| 3 3 | 
             
            export default _default;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import { ProStepPropsType } from '../../propsType';
         | 
| 2 2 | 
             
            export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: ProStepPropsType & {
         | 
| 3 3 | 
             
                errorCollection: object;
         | 
| 4 | 
            -
            }) => JSX.Element;
         | 
| 4 | 
            +
            }) => import("react/jsx-runtime").JSX.Element;
         | 
| 5 5 | 
             
            export default Step;
         | 
    
        package/es/ProStep/index.d.ts
    CHANGED
    
    | @@ -4,9 +4,9 @@ import './style/index.less'; | |
| 4 4 | 
             
            export declare const ProStepContext: import("react").Context<any>;
         | 
| 5 5 | 
             
            export declare const useStep: () => any;
         | 
| 6 6 | 
             
            declare const ProStep: {
         | 
| 7 | 
            -
                ({ children, ...resetProps }: ProStepPropsType): JSX.Element;
         | 
| 7 | 
            +
                ({ children, ...resetProps }: ProStepPropsType): import("react/jsx-runtime").JSX.Element;
         | 
| 8 8 | 
             
                useStep: () => any;
         | 
| 9 | 
            -
                Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => JSX.Element;
         | 
| 9 | 
            +
                Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => import("react/jsx-runtime").JSX.Element;
         | 
| 10 10 | 
             
                Listener: ({ children, delayTime, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>;
         | 
| 11 11 | 
             
            };
         | 
| 12 12 | 
             
            export default ProStep;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const ResizableLine: () => JSX.Element;
         | 
| 1 | 
            +
            declare const ResizableLine: () => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default ResizableLine;
         | 
    
        package/es/ProTable/index.d.ts
    CHANGED
    
    | @@ -5,7 +5,7 @@ export declare const defaultPage: { | |
| 5 5 | 
             
                pageNum: number;
         | 
| 6 6 | 
             
                pageSize: number;
         | 
| 7 7 | 
             
            };
         | 
| 8 | 
            -
            declare function ProTable(props: ProTableProps): JSX.Element;
         | 
| 8 | 
            +
            declare function ProTable(props: ProTableProps): import("react/jsx-runtime").JSX.Element;
         | 
| 9 9 | 
             
            declare namespace ProTable {
         | 
| 10 10 | 
             
                var defaultProps: {
         | 
| 11 11 | 
             
                    quickConfig: boolean;
         | 
| @@ -1,3 +1,3 @@ | |
| 1 1 | 
             
            import type { DevToolsPropsType } from '../../propsType';
         | 
| 2 | 
            -
            declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => JSX.Element;
         | 
| 2 | 
            +
            declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
         | 
| 3 3 | 
             
            export default PrdTools;
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import type { ProThemeToolsProps } from './propsType';
         | 
| 2 2 | 
             
            declare const ProThemeTools: {
         | 
| 3 | 
            -
                ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): JSX.Element;
         | 
| 3 | 
            +
                ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
                defaultProps: {
         | 
| 5 5 | 
             
                    size: number;
         | 
| 6 6 | 
             
                    mode: string;
         | 
    
        package/es/ProTooltip/index.d.ts
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 1 | 
             
            import { ProTooltipPropsType } from './propsType';
         | 
| 2 2 | 
             
            import './style/index.less';
         | 
| 3 | 
            -
            declare const ProTooltip: (props: ProTooltipPropsType) => JSX.Element;
         | 
| 3 | 
            +
            declare const ProTooltip: (props: ProTooltipPropsType) => import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
            export default ProTooltip;
         | 
| @@ -12,6 +12,6 @@ interface ListProps { | |
| 12 12 | 
             
                handleFilterClose?: (code: string) => void;
         | 
| 13 13 | 
             
                optionRender?: (item: any, searchStr?: string) => string | ReactNode;
         | 
| 14 14 | 
             
            }
         | 
| 15 | 
            -
            declare function List(props: ListProps): JSX.Element;
         | 
| 15 | 
            +
            declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
         | 
| 16 16 | 
             
            declare const _default: import("react").MemoExoticComponent<typeof List>;
         | 
| 17 17 | 
             
            export default _default;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import React from 'react';
         | 
| 2 2 | 
             
            import { PropTreeSelectProps } from './propsType';
         | 
| 3 | 
            -
            export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => JSX.Element;
         | 
| 3 | 
            +
            export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
            declare const _default: React.ForwardRefExoticComponent<PropTreeSelectProps & React.RefAttributes<unknown>>;
         | 
| 5 5 | 
             
            export default _default;
         | 
| @@ -4,6 +4,6 @@ declare function SearchTitle(props: { | |
| 4 4 | 
             
                label?: string;
         | 
| 5 5 | 
             
                showEllipse?: boolean;
         | 
| 6 6 | 
             
                ellipseWidth?: string;
         | 
| 7 | 
            -
            }): JSX.Element;
         | 
| 7 | 
            +
            }): import("react/jsx-runtime").JSX.Element;
         | 
| 8 8 | 
             
            declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
         | 
| 9 9 | 
             
            export default _default;
         | 
| @@ -23,5 +23,5 @@ interface ListProps extends ProTreeProps { | |
| 23 23 | 
             
                handleFilterClose?: (code: string, node?: any) => void;
         | 
| 24 24 | 
             
                [key: string]: any;
         | 
| 25 25 | 
             
            }
         | 
| 26 | 
            -
            declare function List(props: ListProps): JSX.Element;
         | 
| 26 | 
            +
            declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
         | 
| 27 27 | 
             
            export default List;
         | 
    
        package/es/ProTree/index.d.ts
    CHANGED
    
    
| @@ -10,5 +10,5 @@ interface CascaderProps { | |
| 10 10 | 
             
                handleOnChange?: (e: any, value: string) => void;
         | 
| 11 11 | 
             
                optionRender?: (item: any, searchStr: string) => string | ReactNode;
         | 
| 12 12 | 
             
            }
         | 
| 13 | 
            -
            declare const Cascader: (props: CascaderProps) => JSX.Element;
         | 
| 13 | 
            +
            declare const Cascader: (props: CascaderProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 14 14 | 
             
            export default Cascader;
         | 
| @@ -17,5 +17,5 @@ interface TriggerProps { | |
| 17 17 | 
             
                handleClearAll: () => void;
         | 
| 18 18 | 
             
                appointChange: (appoint?: boolean) => void;
         | 
| 19 19 | 
             
            }
         | 
| 20 | 
            -
            declare function Trigger(props: TriggerProps): JSX.Element;
         | 
| 20 | 
            +
            declare function Trigger(props: TriggerProps): import("react/jsx-runtime").JSX.Element;
         | 
| 21 21 | 
             
            export default Trigger;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import { ProTreeModalProps } from './propsType';
         | 
| 2 2 | 
             
            import './style/index.less';
         | 
| 3 3 | 
             
            export declare const CASCADER = "CASCADER";
         | 
| 4 | 
            -
            declare const ProTreeModal: (props: ProTreeModalProps) => JSX.Element;
         | 
| 4 | 
            +
            declare const ProTreeModal: (props: ProTreeModalProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 5 5 | 
             
            export default ProTreeModal;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 1 | 
             
            import { DraggableUploadListItemProps } from '../propsType';
         | 
| 2 | 
            -
            export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => JSX.Element;
         | 
| 2 | 
            +
            export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => import("react/jsx-runtime").JSX.Element;
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import { IProDownloadProps } from './propsType';
         | 
| 2 2 | 
             
            declare const ProDownload: {
         | 
| 3 | 
            -
                (props: IProDownloadProps): JSX.Element;
         | 
| 3 | 
            +
                (props: IProDownloadProps): import("react/jsx-runtime").JSX.Element;
         | 
| 4 4 | 
             
                downLoadRequest: import("./utils").DownloadRequestProps;
         | 
| 5 5 | 
             
            };
         | 
| 6 6 | 
             
            export default ProDownload;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const ActionButton: ({ record, index, config, btnConfig }: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const ActionButton: ({ record, index, config, btnConfig }: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default ActionButton;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const RenderField: ({ text: value, record, index, column, config }: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const RenderField: ({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default RenderField;
         | 
| @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            declare const RenderToolbar: (config: any) => JSX.Element;
         | 
| 1 | 
            +
            declare const RenderToolbar: (config: any) => import("react/jsx-runtime").JSX.Element;
         | 
| 2 2 | 
             
            export default RenderToolbar;
         | 
| @@ -8,5 +8,5 @@ interface SummaryProps<T = any> { | |
| 8 8 | 
             
                };
         | 
| 9 9 | 
             
                rowSelection: any;
         | 
| 10 10 | 
             
            }
         | 
| 11 | 
            -
            declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => JSX.Element;
         | 
| 11 | 
            +
            declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
         | 
| 12 12 | 
             
            export default Summary;
         | 
| @@ -9,7 +9,7 @@ export declare const defaultBtnNameMap: { | |
| 9 9 | 
             
                custom: any;
         | 
| 10 10 | 
             
            };
         | 
| 11 11 | 
             
            export declare const iconMap: {
         | 
| 12 | 
            -
                add: JSX.Element;
         | 
| 12 | 
            +
                add: import("react/jsx-runtime").JSX.Element;
         | 
| 13 13 | 
             
            };
         | 
| 14 14 | 
             
            export declare const defaultSingleActionKeys: string[];
         | 
| 15 15 | 
             
            export declare const defaultMultipleActionKeys: string[];
         | 
| @@ -6,5 +6,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource' | |
| 6 6 | 
             
                allowClear?: boolean;
         | 
| 7 7 | 
             
                button?: boolean;
         | 
| 8 8 | 
             
            }
         | 
| 9 | 
            -
            declare const Group: (props: Props) => JSX.Element;
         | 
| 9 | 
            +
            declare const Group: (props: Props) => import("react/jsx-runtime").JSX.Element;
         | 
| 10 10 | 
             
            export default Group;
         | 
| @@ -3,5 +3,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource' | |
| 3 3 | 
             
                fieldValue: string;
         | 
| 4 4 | 
             
                fieldLabel: string;
         | 
| 5 5 | 
             
            }
         | 
| 6 | 
            -
            declare const ProEnumTag: (props: Props) => JSX.Element;
         | 
| 6 | 
            +
            declare const ProEnumTag: (props: Props) => import("react/jsx-runtime").JSX.Element;
         | 
| 7 7 | 
             
            export default ProEnumTag;
         |