diff --git a/packages/core/client/src/block-provider/BlockProvider.tsx b/packages/core/client/src/block-provider/BlockProvider.tsx index 9bb9e4f2d..0c4e92cad 100644 --- a/packages/core/client/src/block-provider/BlockProvider.tsx +++ b/packages/core/client/src/block-provider/BlockProvider.tsx @@ -28,7 +28,7 @@ import { import { DataBlockCollector } from '../filter-provider/FilterProvider'; import { RecordProvider, useRecordIndex } from '../record-provider'; import { useAssociationNames } from './hooks'; -import { useDataBlockParentRecord } from './hooks/useDataBlockSourceId'; +import { useDataBlockParentRecord } from './hooks/useDataBlockParentRecord'; /** * @deprecated @@ -53,11 +53,21 @@ export const BlockRequestContext_deprecated = createContext<{ }>({}); BlockRequestContext_deprecated.displayName = 'BlockRequestContext_deprecated'; +/** + * @deprecated + * use `useDataBlockResource` instead + * @returns + */ export const useBlockResource = () => { const resource = useDataBlockResource(); return useContext(BlockResourceContext) || resource; }; +/** + * @internal + * @param props + * @returns + */ export const MaybeCollectionProvider = (props) => { const { collection } = props; return collection ? ( @@ -71,6 +81,7 @@ export const MaybeCollectionProvider = (props) => { /** * @deprecated + * use `DataBlockRequestProvider` instead * @param props * @returns */ @@ -115,11 +126,17 @@ export const BlockRequestProvider_deprecated = (props) => { /** * @deprecated + * use `useDataBlockRequest` instead */ export const useBlockRequestContext = () => { return useContext(BlockRequestContext_deprecated); }; +/** + * @internal + * @param props + * @returns + */ export const RenderChildrenWithAssociationFilter: React.FC = (props) => { const fieldSchema = useFieldSchema(); const { findComponent } = useDesignable(); @@ -176,12 +193,19 @@ export const RenderChildrenWithAssociationFilter: React.FC = (props) => { return props.children; }; +/** + * @internal + */ const BlockContext = createContext<{ /** 用以区分区块的标识 */ name: string; }>(null); BlockContext.displayName = 'BlockContext'; +/** + * @internal + * @returns + */ export const useBlockContext = () => { return useContext(BlockContext); }; @@ -203,7 +227,8 @@ const useCompatDataBlockParentRecord = (props) => { }; /** - * @deprecated use `DataBlockProvider` instead + * @deprecated + * use `DataBlockProvider` instead */ export const BlockProvider = (props: { name: string; @@ -248,6 +273,11 @@ export const BlockProvider = (props: { ); }; +/** + * @deprecated + * use `useDataBlockProps` instead + * @returns + */ export const useBlockAssociationContext = () => { const { association } = useDataBlockProps(); return useContext(BlockAssociationContext) || association; @@ -276,8 +306,6 @@ export const useFilterByTk = () => { /** * @deprecated - * 已弃用,应使用 useSourceIdFromParentRecord - * @returns */ export const useSourceIdFromRecord = () => { const record = useRecord(); @@ -289,6 +317,10 @@ export const useSourceIdFromRecord = () => { } }; +/** + * @deprecated + * @returns + */ export const useSourceIdFromParentRecord = () => { const cm = useCollectionManager(); const parentRecordData = useCollectionParentRecordData(); @@ -303,6 +335,10 @@ export const useSourceIdFromParentRecord = () => { } }; +/** + * @internal + * @returns + */ export const useParamsFromRecord = () => { const filterByTk = useFilterByTk(); const record = useRecord(); diff --git a/packages/core/client/src/block-provider/DetailsBlockProvider.tsx b/packages/core/client/src/block-provider/DetailsBlockProvider.tsx index 83c27bf29..c215e579b 100644 --- a/packages/core/client/src/block-provider/DetailsBlockProvider.tsx +++ b/packages/core/client/src/block-provider/DetailsBlockProvider.tsx @@ -3,13 +3,16 @@ import { useField } from '@formily/react'; import { Spin } from 'antd'; import _ from 'lodash'; import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react'; +import { withDynamicSchemaProps } from '../application/hoc/withDynamicSchemaProps'; import { useCollectionParentRecord } from '../data-source/collection-record/CollectionRecordProvider'; import { RecordProvider } from '../record-provider'; import { BlockProvider, useBlockRequestContext } from './BlockProvider'; -import { useParsedFilter } from './hooks'; -import { withDynamicSchemaProps } from '../application/hoc/withDynamicSchemaProps'; import { TemplateBlockProvider } from './TemplateBlockProvider'; +import { useParsedFilter } from './hooks'; +/** + * @internal + */ export const DetailsBlockContext = createContext({}); DetailsBlockContext.displayName = 'DetailsBlockContext'; @@ -74,7 +77,7 @@ export const DetailsBlockProvider = withDynamicSchemaProps((props) => { }); /** - * @deprecated + * @internal */ export const useDetailsBlockContext = () => { return useContext(DetailsBlockContext); @@ -82,7 +85,7 @@ export const useDetailsBlockContext = () => { /** * @deprecated - * 即将废弃,请用 useDetailsWithPaginationProps 或者 useDetailsProps + * use `useDetailsWithPaginationProps` or `useDetailsProps` instead * @returns */ export const useDetailsBlockProps = () => { diff --git a/packages/core/client/src/block-provider/FormBlockProvider.tsx b/packages/core/client/src/block-provider/FormBlockProvider.tsx index 3574c2ac2..7122b27c1 100644 --- a/packages/core/client/src/block-provider/FormBlockProvider.tsx +++ b/packages/core/client/src/block-provider/FormBlockProvider.tsx @@ -2,6 +2,7 @@ import { createForm } from '@formily/core'; import { RecursionField, Schema, useField, useFieldSchema } from '@formily/react'; import { Spin } from 'antd'; import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react'; +import { withDynamicSchemaProps } from '../application/hoc/withDynamicSchemaProps'; import { useCollection_deprecated } from '../collection-manager'; import { CollectionRecord, useCollectionParentRecordData, useCollectionRecord } from '../data-source'; import { RecordProvider, useRecord } from '../record-provider'; @@ -10,7 +11,6 @@ import { Templates as DataTemplateSelect } from '../schema-component/antd/form-v import { BlockProvider, useBlockRequestContext } from './BlockProvider'; import { TemplateBlockProvider } from './TemplateBlockProvider'; import { FormActiveFieldsProvider } from './hooks/useFormActiveFields'; -import { withDynamicSchemaProps } from '../application/hoc/withDynamicSchemaProps'; export const FormBlockContext = createContext<{ form?: any; @@ -76,6 +76,7 @@ const InternalFormBlockProvider = (props) => { }; /** + * @internal * 获取表单区块的类型:update 表示是表单编辑区块,create 表示是表单新增区块 * @returns */ @@ -128,10 +129,17 @@ export const FormBlockProvider = withDynamicSchemaProps((props) => { ); }); +/** + * @internal + * @returns + */ export const useFormBlockContext = () => { return useContext(FormBlockContext); }; +/** + * @internal + */ export const useFormBlockProps = () => { const ctx = useFormBlockContext(); const record = useRecord(); @@ -169,6 +177,9 @@ const RenderChildrenWithDataTemplates = ({ form }) => { ); }; +/** + * @internal + */ export const findFormBlock = (schema: Schema) => { while (schema) { if (schema['x-decorator'] === 'FormBlockProvider') { diff --git a/packages/core/client/src/block-provider/FormFieldProvider.tsx b/packages/core/client/src/block-provider/FormFieldProvider.tsx index 58e253f45..a74f159c3 100644 --- a/packages/core/client/src/block-provider/FormFieldProvider.tsx +++ b/packages/core/client/src/block-provider/FormFieldProvider.tsx @@ -9,6 +9,9 @@ import { RecordProvider } from '../record-provider'; import { BlockProvider, useBlockRequestContext } from './BlockProvider'; import { useFormBlockContext } from './FormBlockProvider'; +/** + * @internal + */ export const FormFieldContext = createContext({}); FormFieldContext.displayName = 'FormFieldContext'; @@ -75,9 +78,15 @@ const InternalFormFieldProvider = (props) => { ); }; +/** + * @internal + */ export const WithoutFormFieldResource = createContext(null); WithoutFormFieldResource.displayName = 'WithoutFormFieldResource'; +/** + * @internal + */ export const FormFieldProvider = (props) => { return ( @@ -88,10 +97,16 @@ export const FormFieldProvider = (props) => { ); }; +/** + * @internal + */ export const useFormFieldContext = () => { return useContext(FormFieldContext); }; +/** + * @internal + */ export const useFormFieldProps = () => { const ctx = useFormFieldContext(); useEffect(() => { diff --git a/packages/core/client/src/block-provider/TableBlockProvider.tsx b/packages/core/client/src/block-provider/TableBlockProvider.tsx index f6cdcdc82..57feb07d5 100644 --- a/packages/core/client/src/block-provider/TableBlockProvider.tsx +++ b/packages/core/client/src/block-provider/TableBlockProvider.tsx @@ -1,15 +1,21 @@ import { createForm } from '@formily/core'; import { FormContext, useField, useFieldSchema } from '@formily/react'; import React, { createContext, useCallback, useContext, useMemo, useState } from 'react'; +import { withDynamicSchemaProps } from '../application/hoc/withDynamicSchemaProps'; import { useCollectionManager_deprecated } from '../collection-manager'; +import { useTableBlockParams } from '../modules/blocks/data-blocks/table'; import { FixedBlockWrapper, SchemaComponentOptions } from '../schema-component'; import { BlockProvider, RenderChildrenWithAssociationFilter, useBlockRequestContext } from './BlockProvider'; -import { useTableBlockParams } from '../modules/blocks/data-blocks/table'; -import { withDynamicSchemaProps } from '../application/hoc/withDynamicSchemaProps'; +/** + * @internal + */ export const TableBlockContext = createContext({}); TableBlockContext.displayName = 'TableBlockContext'; +/** + * @internal + */ export function getIdsWithChildren(nodes) { const ids = []; if (nodes) { @@ -79,6 +85,7 @@ const InternalTableBlockProvider = (props: Props) => { }; /** + * @internal * 用于兼容旧版本的 schema,当不需要兼容时可直接移除该方法 * @param props * @returns @@ -138,6 +145,9 @@ export const TableBlockProvider = withDynamicSchemaProps((props) => { ); }); +/** + * @internal + */ export const useTableBlockContext = () => { return useContext(TableBlockContext); }; diff --git a/packages/core/client/src/block-provider/TableFieldProvider.tsx b/packages/core/client/src/block-provider/TableFieldProvider.tsx index 18966e757..a651b51e5 100644 --- a/packages/core/client/src/block-provider/TableFieldProvider.tsx +++ b/packages/core/client/src/block-provider/TableFieldProvider.tsx @@ -6,6 +6,9 @@ import { BlockProvider, useBlockRequestContext } from './BlockProvider'; import { useFormBlockContext } from './FormBlockProvider'; import { useFormFieldContext } from './FormFieldProvider'; +/** + * @internal + */ export const TableFieldContext = createContext({}); TableFieldContext.displayName = 'TableFieldContext'; @@ -122,9 +125,15 @@ export class TableFieldResource { } } +/** + * @internal + */ export const WithoutTableFieldResource = createContext(null); WithoutTableFieldResource.displayName = 'WithoutTableFieldResource'; +/** + * @internal + */ export const TableFieldProvider = (props) => { return ( @@ -135,10 +144,16 @@ export const TableFieldProvider = (props) => { ); }; +/** + * @internal + */ export const useTableFieldContext = () => { return useContext(TableFieldContext); }; +/** + * @internal + */ export const useTableFieldProps = () => { const field = useField(); const ctx = useTableFieldContext(); diff --git a/packages/core/client/src/block-provider/TableSelectorProvider.tsx b/packages/core/client/src/block-provider/TableSelectorProvider.tsx index 506c70e0e..02f62c89c 100644 --- a/packages/core/client/src/block-provider/TableSelectorProvider.tsx +++ b/packages/core/client/src/block-provider/TableSelectorProvider.tsx @@ -3,6 +3,7 @@ import { Schema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; import uniq from 'lodash/uniq'; import React, { createContext, useContext, useEffect, useState } from 'react'; +import { withDynamicSchemaProps } from '../application/hoc/withDynamicSchemaProps'; import { useCollectionManager_deprecated } from '../collection-manager'; import { useCollectionParentRecordData } from '../data-source/collection-record/CollectionRecordProvider'; import { isInFilterFormBlock } from '../filter-provider'; @@ -11,7 +12,6 @@ import { RecordProvider, useRecord } from '../record-provider'; import { SchemaComponentOptions } from '../schema-component'; import { BlockProvider, RenderChildrenWithAssociationFilter, useBlockRequestContext } from './BlockProvider'; import { useParsedFilter } from './hooks'; -import { withDynamicSchemaProps } from '../application/hoc/withDynamicSchemaProps'; type Params = { filter?: any; @@ -20,6 +20,9 @@ type Params = { sort?: any; }; +/** + * @internal + */ export const TableSelectorContext = createContext({}); TableSelectorContext.displayName = 'TableSelectorContext'; const TableSelectorParamsContext = createContext({}); // 用于传递参数 diff --git a/packages/core/client/src/block-provider/TemplateBlockProvider.tsx b/packages/core/client/src/block-provider/TemplateBlockProvider.tsx index 7da7e65e5..86d54f7cc 100644 --- a/packages/core/client/src/block-provider/TemplateBlockProvider.tsx +++ b/packages/core/client/src/block-provider/TemplateBlockProvider.tsx @@ -7,6 +7,9 @@ const TemplateBlockContext = createContext<{ }>({}); TemplateBlockContext.displayName = 'TemplateBlockContext'; +/** + * @internal + */ export const useTemplateBlockContext = () => { return useContext(TemplateBlockContext); }; diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index 8b6385c2a..a1180dfaa 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -34,9 +34,9 @@ import { useBlockRequestContext, useFilterByTk, useParamsFromRecord } from '../B import { useDetailsBlockContext } from '../DetailsBlockProvider'; import { TableFieldResource } from '../TableFieldProvider'; +export * from './useDataBlockParentRecord'; export * from './useFormActiveFields'; export * from './useParsedFilter'; -export * from './useDataBlockSourceId'; export const usePickActionProps = () => { const form = useForm(); diff --git a/packages/core/client/src/block-provider/hooks/useDataBlockSourceId.tsx b/packages/core/client/src/block-provider/hooks/useDataBlockParentRecord.tsx similarity index 100% rename from packages/core/client/src/block-provider/hooks/useDataBlockSourceId.tsx rename to packages/core/client/src/block-provider/hooks/useDataBlockParentRecord.tsx diff --git a/packages/core/client/src/block-provider/hooks/useFormActiveFields.tsx b/packages/core/client/src/block-provider/hooks/useFormActiveFields.tsx index 2c221a297..a9c3614f1 100644 --- a/packages/core/client/src/block-provider/hooks/useFormActiveFields.tsx +++ b/packages/core/client/src/block-provider/hooks/useFormActiveFields.tsx @@ -15,6 +15,7 @@ interface ProviderProps extends Partial { } /** + * @internal * 用于提供获取和更新当前表单区块中已显示出来的字段 * @param param0 * @returns diff --git a/packages/core/client/src/block-provider/hooks/useParsedFilter.ts b/packages/core/client/src/block-provider/hooks/useParsedFilter.ts index aa732654d..af2756815 100644 --- a/packages/core/client/src/block-provider/hooks/useParsedFilter.ts +++ b/packages/core/client/src/block-provider/hooks/useParsedFilter.ts @@ -8,6 +8,11 @@ import { getPath } from '../../variables/utils/getPath'; import { getVariableName } from '../../variables/utils/getVariableName'; import { isVariable } from '../../variables/utils/isVariable'; +/** + * @internal + * @param param0 + * @returns + */ export function useParsedFilter({ filterOption }: { filterOption: any }) { const { parseFilter, findVariable } = useParseDataScopeFilter(); const [filter, setFilter] = useState({}); diff --git a/packages/core/client/src/modules/actions/add-new/createFormBlockInitializers.tsx b/packages/core/client/src/modules/actions/add-new/createFormBlockInitializers.tsx index 4cb926553..04c6a2660 100644 --- a/packages/core/client/src/modules/actions/add-new/createFormBlockInitializers.tsx +++ b/packages/core/client/src/modules/actions/add-new/createFormBlockInitializers.tsx @@ -3,6 +3,7 @@ import { gridRowColWrap } from '../../../schema-initializer/utils'; /** * @deprecated + * use `createFormBlockInitializers` instead */ export const createFormBlockInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'CreateFormBlockInitializers', diff --git a/packages/core/client/src/modules/actions/add-record/customizeCreateFormBlockInitializers.tsx b/packages/core/client/src/modules/actions/add-record/customizeCreateFormBlockInitializers.tsx index f98ddeef9..ba0670184 100644 --- a/packages/core/client/src/modules/actions/add-record/customizeCreateFormBlockInitializers.tsx +++ b/packages/core/client/src/modules/actions/add-record/customizeCreateFormBlockInitializers.tsx @@ -3,6 +3,7 @@ import { gridRowColWrap } from '../../../schema-initializer/utils'; /** * @deprecated + * use `customizeCreateFormBlockInitializers` instead */ export const customizeCreateFormBlockInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'CusomeizeCreateFormBlockInitializers', diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.tsx index 41adedbfb..e0619a4c4 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.tsx @@ -2,6 +2,7 @@ import { CompatibleSchemaInitializer } from '../../../../application/schema-init /** * @deprecated + * use `detailsActionInitializers` instead * 表单的操作配置 */ export const detailsActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.tsx index 6a3697b85..fa5227a37 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.tsx @@ -8,6 +8,7 @@ const useVisibleCollection = () => { /** * @deprecated + * use `readPrettyFormActionInitializers` instead * 表单的操作配置 */ export const readPrettyFormActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.tsx index 6e87749ba..f13296ed5 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { useTranslation } from 'react-i18next'; import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; +import { SchemaInitializerChildren } from '../../../../application/schema-initializer/components/SchemaInitializerChildren'; import { useCompile } from '../../../../schema-component'; import { gridRowColWrap, @@ -8,7 +9,6 @@ import { useFormItemInitializerFields, useInheritsFormItemInitializerFields, } from '../../../../schema-initializer/utils'; -import { SchemaInitializerChildren } from '../../../../application/schema-initializer/components/SchemaInitializerChildren'; const ParentCollectionFields = () => { const inheritFields = useInheritsFormItemInitializerFields(); @@ -47,7 +47,7 @@ const AssociatedFields = () => { /** * @deprecated - * 已弃用,请使用 readPrettyFormItemInitializers 代替 + * use `readPrettyFormItemInitializers` instead */ export const readPrettyFormItemInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'ReadPrettyFormItemInitializers', diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createFormActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/createFormActionInitializers.tsx index 4696bec0d..e512a0a77 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createFormActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createFormActionInitializers.tsx @@ -2,6 +2,7 @@ import { CompatibleSchemaInitializer } from '../../../../application/schema-init /** * @deprecated + * use `createFormActionInitializers` instead */ export const createFormActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'CreateFormActionInitializers', diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/formItemInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/formItemInitializers.tsx index 633ab1db0..accc784a1 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/formItemInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/formItemInitializers.tsx @@ -1,9 +1,10 @@ -import { gridRowColWrap, useFormItemInitializerFields } from '../../../../schema-initializer/utils'; -import { ParentCollectionFields, AssociatedFields } from '../../../../schema-initializer/buttons/FormItemInitializers'; import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; +import { AssociatedFields, ParentCollectionFields } from '../../../../schema-initializer/buttons/FormItemInitializers'; +import { gridRowColWrap, useFormItemInitializerFields } from '../../../../schema-initializer/utils'; /** * @deprecated + * use `formItemInitializers` instead * 表单里配置字段 */ export const formItemInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/updateFormActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/updateFormActionInitializers.tsx index 46bf31630..89687319c 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/updateFormActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/updateFormActionInitializers.tsx @@ -2,6 +2,7 @@ import { CompatibleSchemaInitializer } from '../../../../application/schema-init /** * @deprecated + * use `updateFormActionInitializers` instead */ export const updateFormActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'UpdateFormActionInitializers', diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.tsx index 5b143528a..072aef25a 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.tsx @@ -3,6 +3,7 @@ import { useCollection_deprecated } from '../../../../collection-manager'; /** * @deprecated + * use `gridCardActionInitializers` instead */ export const gridCardActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'GridCardActionInitializers', diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.tsx index 8418ffd6e..aa7a78a87 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.tsx @@ -3,6 +3,7 @@ import { useCollection_deprecated } from '../../../../collection-manager'; /** * @deprecated + * use `gridCardItemActionInitializers` instead */ export const gridCardItemActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'GridCardItemActionInitializers', diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/ListActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/list/ListActionInitializers.tsx index ab7caa761..6ac4b8891 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/ListActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/list/ListActionInitializers.tsx @@ -3,6 +3,7 @@ import { useCollection_deprecated } from '../../../../collection-manager'; /** * @deprecated + * use `listActionInitializers` instead * 表单的操作配置 */ export const listActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/listItemActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/list/listItemActionInitializers.tsx index 845836879..e630f1fd8 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/listItemActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/list/listItemActionInitializers.tsx @@ -3,6 +3,7 @@ import { useCollection_deprecated } from '../../../../collection-manager'; /** * @deprecated + * use `listItemActionInitializers` instead */ export const listItemActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'ListItemActionInitializers', diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx index 3edb4f219..f6487aef9 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx @@ -247,6 +247,7 @@ const commonOptions = { /** * @deprecated + * use `tableActionColumnInitializers` instead */ export const tableActionColumnInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'TableActionColumnInitializers', diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx index 512679908..03ab6b26d 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx @@ -4,6 +4,7 @@ import { useCollection_deprecated } from '../../../../collection-manager/hooks/u /** * @deprecated + * use `tableActionInitializers` instead * 表格操作配置 */ export const tableActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx index dcc8d31e4..d14295a49 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx @@ -1,14 +1,14 @@ import { useFieldSchema } from '@formily/react'; import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; +import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; +import { SchemaInitializerChildren } from '../../../../application/schema-initializer/components/SchemaInitializerChildren'; import { useCompile } from '../../../../schema-component'; import { useAssociatedTableColumnInitializerFields, useInheritsTableColumnInitializerFields, useTableColumnInitializerFields, } from '../../../../schema-initializer/utils'; -import { SchemaInitializerChildren } from '../../../../application/schema-initializer/components/SchemaInitializerChildren'; -import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; // 表格列配置 const ParentCollectionFields = () => { @@ -49,6 +49,7 @@ const AssociatedFields = () => { /** * @deprecated + * use `tableColumnInitializers` instead */ export const tableColumnInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'TableColumnInitializers', diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.tsx b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.tsx index e292bca17..e712c4589 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.tsx @@ -81,6 +81,7 @@ export const associationFilterFilterBlockInitializer = new SchemaInitializer({ /** * @deprecated + * use `filterCollapseItemInitializer` instead */ export const filterCollapseItemInitializer_deprecated = new CompatibleSchemaInitializer({ name: 'AssociationFilterInitializers', diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormActionInitializers.tsx b/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormActionInitializers.tsx index dc1f7ec75..69d0b5ee8 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormActionInitializers.tsx @@ -2,6 +2,7 @@ import { CompatibleSchemaInitializer } from '../../../../application/schema-init /** * @deprecated + * use `filterFormActionInitializers` instead * 表单的操作配置 */ export const filterFormActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemInitializers.tsx b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemInitializers.tsx index 02ae03aa8..2ecd33661 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemInitializers.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemInitializers.tsx @@ -1,12 +1,13 @@ -import { gridRowColWrap, useFilterFormItemInitializerFields } from '../../../../schema-initializer/utils'; -import { - FilterParentCollectionFields, - FilterAssociatedFields, -} from '../../../../schema-initializer/buttons/FormItemInitializers'; import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; +import { + FilterAssociatedFields, + FilterParentCollectionFields, +} from '../../../../schema-initializer/buttons/FormItemInitializers'; +import { gridRowColWrap, useFilterFormItemInitializerFields } from '../../../../schema-initializer/utils'; /** * @deprecated + * use `filterFormItemInitializers` instead */ export const filterFormItemInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'FilterFormItemInitializers', diff --git a/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx b/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx index 319d66c17..df16fb782 100644 --- a/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx +++ b/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx @@ -84,6 +84,7 @@ const commonOptions = { /** * @deprecated + * use `tableSelectorInitializers` instead */ export const tableSelectorInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'TableSelectorInitializers', diff --git a/packages/core/client/src/modules/page/BlockInitializers.tsx b/packages/core/client/src/modules/page/BlockInitializers.tsx index d532e63aa..de22ce58a 100644 --- a/packages/core/client/src/modules/page/BlockInitializers.tsx +++ b/packages/core/client/src/modules/page/BlockInitializers.tsx @@ -3,6 +3,7 @@ import { gridRowColWrap } from '../../schema-initializer/utils'; /** * @deprecated + * use `blockInitializers` instead */ export const blockInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'BlockInitializers', diff --git a/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx index e224dd872..ffa3fd1a3 100644 --- a/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { useTranslation } from 'react-i18next'; +import { CompatibleSchemaInitializer } from '../../application/schema-initializer/CompatibleSchemaInitializer'; +import { SchemaInitializerChildren } from '../../application/schema-initializer/components/SchemaInitializerChildren'; import { useCompile } from '../../schema-component'; import { gridRowColWrap, useCustomFormItemInitializerFields, useInheritsFormItemInitializerFields } from '../utils'; -import { SchemaInitializerChildren } from '../../application/schema-initializer/components/SchemaInitializerChildren'; -import { CompatibleSchemaInitializer } from '../../application/schema-initializer/CompatibleSchemaInitializer'; // 表单里配置字段 const ParentCollectionFields = () => { @@ -26,6 +26,7 @@ const ParentCollectionFields = () => { /** * @deprecated + * use `customFormItemInitializers` instead */ export const customFormItemInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'CustomFormItemInitializers', diff --git a/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx index 2c9446f85..ee14b7b4b 100644 --- a/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx @@ -13,8 +13,8 @@ import { useCreateEditFormBlock, } from '../..'; import { CompatibleSchemaInitializer } from '../../application/schema-initializer/CompatibleSchemaInitializer'; -import { gridRowColWrap } from '../utils'; import { useCreateSingleDetailsSchema } from '../../modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer'; +import { gridRowColWrap } from '../utils'; const recursiveParent = (schema: Schema) => { if (!schema) return null; @@ -259,6 +259,7 @@ function useRecordBlocks() { /** * @deprecated + * use `recordBlockInitializers` instead */ export const recordBlockInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'RecordBlockInitializers', diff --git a/packages/core/client/src/schema-initializer/buttons/SubTableActionInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/SubTableActionInitializers.tsx index 561f0c205..76371d116 100644 --- a/packages/core/client/src/schema-initializer/buttons/SubTableActionInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/SubTableActionInitializers.tsx @@ -2,6 +2,7 @@ import { CompatibleSchemaInitializer } from '../../application/schema-initialize /** * @deprecated + * use `subTableActionInitializers` instead * 表格操作配置 */ export const subTableActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx index 61607416c..c2e1fee6c 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx @@ -40,6 +40,7 @@ export const CreateFormBulkEditBlockInitializers: SchemaInitializer = new Schema /** * @deprecated + * use `bulkEditBlockInitializers` instead */ export const BulkEditBlockInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'BulkEditBlockInitializers', diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx index 2b5257745..cc8ea394e 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx @@ -1,8 +1,9 @@ -import { CompatibleSchemaInitializer, SchemaInitializer } from '@nocobase/client'; +import { CompatibleSchemaInitializer } from '@nocobase/client'; import { BulkEditSubmitActionInitializer } from './BulkEditSubmitActionInitializer'; /** * @deprecated + * use `bulkEditFormActionInitializers` instead */ export const BulkEditFormActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'BulkEditFormActionInitializers', diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx index 9f42168e4..40be91046 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx @@ -3,6 +3,7 @@ import { useCustomBulkEditFormItemInitializerFields } from './utils'; /** * @deprecated + * use `bulkEditFormItemInitializers` instead */ export const BulkEditFormItemInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'BulkEditFormItemInitializers', diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx index 437f47899..ebb783974 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx @@ -12,6 +12,7 @@ import { useTranslation } from 'react-i18next'; /** * @deprecated + * use `auditLogsTableActionColumnInitializers` instead */ export const auditLogsTableActionColumnInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'AuditLogsTableActionColumnInitializers', diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionInitializers.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionInitializers.tsx index 41b74bec4..c5dd704b4 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionInitializers.tsx @@ -2,6 +2,7 @@ import { CompatibleSchemaInitializer } from '@nocobase/client'; /** * @deprecated + * use `auditLogsTableActionInitializers` instead * 操作记录表格操作配置 */ export const auditLogsTableActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableColumnInitializers.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableColumnInitializers.tsx index 81ae12a81..ac033c94a 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableColumnInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableColumnInitializers.tsx @@ -46,6 +46,7 @@ const AssociatedFields = () => { /** * @deprecated + * use `auditLogsTableColumnInitializers` instead */ export const auditLogsTableColumnInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'AuditLogsTableColumnInitializers', diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx index 23df1f694..ed399101a 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx @@ -3,6 +3,7 @@ import { generateNTemplate } from '../../../locale'; /** * @deprecated + * use `calendarActionInitializers` instead * 日历的操作配置 */ export const CalendarActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx index 1bd527796..bc6f25dd1 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx @@ -52,6 +52,7 @@ const ChartInitializer = () => { /** * @deprecated + * use `chartInitializers` instead */ export const chartInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'ChartInitializers', diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx index 89060651e..84aa6eeac 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx @@ -125,6 +125,7 @@ const ChartFilterCollapseInitializer = (props) => { /** * @deprecated + * use `chartFilterActionInitializers` instead */ export const chartFilterActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'ChartFilterActionInitializers', diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx index 9534a7558..c3ac511f3 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx @@ -9,15 +9,14 @@ import { CollectionFieldProvider, CollectionManagerProvider, CollectionProvider, - DEFAULT_DATA_SOURCE_KEY, CompatibleSchemaInitializer, + DEFAULT_DATA_SOURCE_KEY, FormDialog, HTMLEncode, SchemaComponent, SchemaComponentOptions, SchemaInitializerItem, gridRowColWrap, - useCollectionManager_deprecated, useDataSourceManager, useDesignable, useGlobalTheme, @@ -311,6 +310,7 @@ const filterItemInitializers = { /** * @deprecated + * use `chartFilterItemInitializers` instead */ export const chartFilterItemInitializers_deprecated = new CompatibleSchemaInitializer({ ...filterItemInitializers, diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx index 2c6bddbb7..1c0d19349 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx @@ -3,6 +3,7 @@ import { CompatibleSchemaInitializer, useCollection_deprecated } from '@nocobase /** * @deprecated + * use `ganttActionInitializers` instead */ export const GanttActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'GanttActionInitializers', diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx index 1a51ce194..c0269d99b 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx @@ -61,6 +61,7 @@ export const KanbanCardDesigner = () => { /** * @deprecated + * use `kanbanCardInitializers` instead */ export const kanbanCardInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'KanbanCardInitializers', diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx index 2864b7aca..2216ddbd8 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx @@ -2,6 +2,7 @@ import { CompatibleSchemaInitializer, useCollection_deprecated } from '@nocobase /** * @deprecated + * use `kanbanActionInitializers` instead */ export const kanbanActionInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'KanbanActionInitializers', diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx index 16e645e56..19d5a3362 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx @@ -2,6 +2,7 @@ import { CompatibleSchemaInitializer, useCollection_deprecated } from '@nocobase /** * @deprecated + * use `mapActionInitializers` instead * 表格操作配置 */ export const mapActionInitializers_deprecated = new CompatibleSchemaInitializer({ diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts index 36f8b3169..536a725c9 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts @@ -3,6 +3,7 @@ import { generateNTemplate } from '../../../locale'; /** * @deprecated + * use `mBlockInitializers` instead */ export const mBlockInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'MBlockInitializers', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx index 5991c94e9..094394696 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx @@ -3,6 +3,7 @@ import { NAMESPACE } from '../../locale'; /** * @deprecated + * use `snapshotBlockInitializers` instead */ export const snapshotBlockInitializers_deprecated = new CompatibleSchemaInitializer({ name: 'SnapshotBlockInitializers', diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx index 602da4e9f..d9bdfdbce 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx @@ -17,14 +17,12 @@ import { SchemaComponentContext, SchemaInitializerItem, SchemaInitializerItemType, - SchemaSettingsBlockTitleItem, SchemaSettingsDivider, SchemaSettingsItem, SchemaSettingsRemove, VariableScopeProvider, css, gridRowColWrap, - useCompile, useDataSourceManager, useFormActiveFields, useFormBlockContext, @@ -34,8 +32,8 @@ import { useSchemaOptionsContext, } from '@nocobase/client'; import WorkflowPlugin, { - JOB_STATUS, DetailsBlockProvider, + JOB_STATUS, SimpleDesigner, useAvailableUpstreams, useFlowContext, @@ -108,6 +106,7 @@ const blockTypeNames = { /** * @deprecated + * use `addBlockButton` instead */ export const addBlockButton_deprecated = new CompatibleSchemaInitializer({ name: 'AddBlockButton', @@ -421,6 +420,7 @@ function ActionInitializer() { /** * @deprecated + * use `addActionButton` instead */ export const addActionButton_deprecated = new CompatibleSchemaInitializer({ name: 'AddActionButton', diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx index 5c210cb79..0fbdabb52 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx @@ -340,6 +340,7 @@ const CustomItemsComponent = (props) => { /** * @deprecated + * use `addCustomFormField` instead */ export const addCustomFormField_deprecated = new CompatibleSchemaInitializer({ name: 'AddCustomFormField',