import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../../schema-component/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_action_index_mjs__ from "../../../schema-component/antd/action/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__collection_CollectionManagerProvider_mjs__ from "../../collection/CollectionManagerProvider.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__collection_CollectionProvider_mjs__ from "../../collection/CollectionProvider.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__data_source_DataSourceManagerProvider_mjs__ from "../../data-source/DataSourceManagerProvider.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__data_source_DataSourceProvider_mjs__ from "../../data-source/DataSourceProvider.mjs";
function useCollectionFieldContext() {
    const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
    const collection = (0, __WEBPACK_EXTERNAL_MODULE__collection_CollectionProvider_mjs__.useCollection)();
    const dataSourceManager = (0, __WEBPACK_EXTERNAL_MODULE__data_source_DataSourceManagerProvider_mjs__.useDataSourceManager)();
    const actionContext = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_antd_action_index_mjs__.useActionContext)();
    const dataSource = (0, __WEBPACK_EXTERNAL_MODULE__data_source_DataSourceProvider_mjs__.useDataSource)();
    const form = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
    const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
    const collectionManager = (0, __WEBPACK_EXTERNAL_MODULE__collection_CollectionManagerProvider_mjs__.useCollectionManager)();
    const compile = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useCompile)();
    return {
        t,
        compile,
        actionContext,
        fieldSchema,
        collection,
        dataSource,
        form,
        collectionManager,
        dataSourceManager
    };
}
export { useCollectionFieldContext };
