@nocobase/plugin-data-source-manager 2.1.0-beta.9 → 2.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/client-v2.d.ts +2 -0
  2. package/client-v2.js +1 -0
  3. package/dist/ai/ai-employees/orin/ignored.d.ts +10 -0
  4. package/dist/ai/ai-employees/orin/ignored.js +59 -0
  5. package/dist/ai/ai-employees/orin/skills/data-modeling/SKILLS.md +245 -0
  6. package/dist/ai/{tools → ai-employees/orin/skills/data-modeling/tools}/defineCollections.js +47 -1
  7. package/dist/ai/{tools → ai-employees/orin/skills/data-modeling/tools}/intentRouter.js +1 -1
  8. package/dist/ai/{tools/data-query → common}/common.js +63 -11
  9. package/dist/ai/{tools/data-query → common}/utils.d.ts +1 -0
  10. package/dist/ai/{tools/data-query → common}/utils.js +15 -0
  11. package/dist/ai/skills/data-metadata/SKILLS.md +108 -0
  12. package/dist/ai/{tools → skills/data-metadata/tools}/getCollectionMetadata.js +2 -2
  13. package/dist/ai/{tools → skills/data-metadata/tools}/getCollectionNames.js +2 -2
  14. package/dist/ai/{tools → skills/data-metadata/tools}/getDataSources.js +2 -2
  15. package/dist/ai/{tools → skills/data-metadata/tools}/searchFieldMetadata.js +2 -2
  16. package/dist/ai/skills/data-query/SKILLS.md +245 -0
  17. package/dist/ai/skills/data-query/tools/dataQuery.js +282 -0
  18. package/dist/ai/{tools/data-query → skills/data-query/tools}/dataSourceCounting.js +12 -4
  19. package/dist/ai/skills/data-query/tools/dataSourceQuery.d.ts +10 -0
  20. package/dist/ai/{tools/data-query → skills/data-query/tools}/dataSourceQuery.js +12 -5
  21. package/dist/client/271.1374702d84646fff.js +10 -0
  22. package/dist/client/369.342f1e0231dbe482.js +10 -0
  23. package/dist/client/397.c8c6659cf3f7ac1c.js +10 -0
  24. package/dist/client/416.197712b8b93033c5.js +10 -0
  25. package/dist/client/420.a37695bbfc3bec7a.js +10 -0
  26. package/dist/client/603.d6022bceb934f5b0.js +10 -0
  27. package/dist/client/644.b98e4b39058e9c32.js +10 -0
  28. package/dist/client/936.d5ab7aecb4eb6004.js +10 -0
  29. package/dist/client/index.js +1 -1
  30. package/dist/client-v2/167.52e683be46f9cfc7.js +10 -0
  31. package/dist/client-v2/426.53e3eaee8d9dbca0.js +10 -0
  32. package/dist/client-v2/907.a0ab273516f45ac3.js +10 -0
  33. package/dist/client-v2/components/DataSourceForm.d.ts +17 -0
  34. package/dist/client-v2/field-interfaces/index.d.ts +13 -0
  35. package/dist/client-v2/index.d.ts +12 -0
  36. package/dist/client-v2/index.js +10 -0
  37. package/dist/client-v2/locale.d.ts +12 -0
  38. package/dist/client-v2/pages/DataSourceCollectionsPage.d.ts +10 -0
  39. package/dist/client-v2/pages/DataSourcesPage.d.ts +10 -0
  40. package/dist/client-v2/pages/components/CollectionsPage.d.ts +27 -0
  41. package/dist/client-v2/pages/components/FieldForm.d.ts +19 -0
  42. package/dist/client-v2/pages/components/FieldsPage.d.ts +16 -0
  43. package/dist/client-v2/pages/components/ViewCollectionConfigure.d.ts +27 -0
  44. package/dist/client-v2/pages/components/collectionFieldApi.d.ts +11 -0
  45. package/dist/client-v2/pages/components/collectionTemplateFieldInterfaces.d.ts +18 -0
  46. package/dist/client-v2/pages/permissions/DataSourcePermissionsTab.d.ts +15 -0
  47. package/dist/client-v2/pages/permissions/PermissionEditors.d.ts +45 -0
  48. package/dist/client-v2/pages/permissions/ScopeSelect.d.ts +21 -0
  49. package/dist/client-v2/pages/permissions/permissionRequests.d.ts +33 -0
  50. package/dist/client-v2/pages/permissions/types.d.ts +55 -0
  51. package/dist/client-v2/plugin.d.ts +243 -0
  52. package/dist/client-v2/registries.d.ts +36 -0
  53. package/dist/client-v2/runtime.d.ts +12 -0
  54. package/dist/client-v2/utils/compileLegacyTemplate.d.ts +16 -0
  55. package/dist/client-v2/utils/error.d.ts +11 -0
  56. package/dist/externalVersion.js +17 -13
  57. package/dist/locale/en-US.json +275 -3
  58. package/dist/locale/zh-CN.json +275 -3
  59. package/dist/node_modules/zod/index.cjs +1 -1
  60. package/dist/node_modules/zod/package.json +1 -1
  61. package/dist/server/collections/data-sources-collections.js +1 -0
  62. package/dist/server/collections/data-sources-fields.js +1 -0
  63. package/dist/server/collections/data-sources-roles-resources-actions.js +1 -0
  64. package/dist/server/collections/data-sources-roles-resources-scopes.js +1 -0
  65. package/dist/server/collections/data-sources-roles-resources.js +1 -0
  66. package/dist/server/collections/data-sources-roles.js +1 -0
  67. package/dist/server/collections/data-sources.js +1 -0
  68. package/dist/server/mcp-post-processors.d.ts +24 -0
  69. package/dist/server/mcp-post-processors.js +158 -0
  70. package/dist/server/models/data-source.js +3 -13
  71. package/dist/server/plugin.js +7 -2
  72. package/dist/server/resourcers/data-sources-collections-fields.d.ts +1 -0
  73. package/dist/server/resourcers/data-sources-collections-fields.js +19 -0
  74. package/dist/server/services/external-field-apply.d.ts +23 -0
  75. package/dist/server/services/external-field-apply.js +208 -0
  76. package/dist/server/utils.js +11 -3
  77. package/dist/swagger/index.d.ts +326 -0
  78. package/dist/swagger/index.js +385 -0
  79. package/package.json +4 -2
  80. package/dist/client/1a8cce8035a89dd9.js +0 -10
  81. package/dist/client/276bcf3de74bebd1.js +0 -10
  82. package/dist/client/2f7a418e7935984d.js +0 -10
  83. package/dist/client/689d3bec33ad2ec3.js +0 -10
  84. package/dist/client/d33eb40009bd7ec6.js +0 -10
  85. package/dist/client/dbf5ddf434ab29c0.js +0 -10
  86. package/dist/client/f528b165e77e3608.js +0 -10
  87. package/dist/client/fdae18574fda07af.js +0 -10
  88. /package/dist/ai/{tools → ai-employees/orin/skills/data-modeling/tools}/defineCollections.d.ts +0 -0
  89. /package/dist/ai/{tools → ai-employees/orin/skills/data-modeling/tools}/intentRouter.d.ts +0 -0
  90. /package/dist/ai/{tools/data-query → common}/common.d.ts +0 -0
  91. /package/dist/ai/{tools → skills/data-metadata/tools}/getCollectionMetadata.d.ts +0 -0
  92. /package/dist/ai/{tools → skills/data-metadata/tools}/getCollectionNames.d.ts +0 -0
  93. /package/dist/ai/{tools → skills/data-metadata/tools}/getDataSources.d.ts +0 -0
  94. /package/dist/ai/{tools → skills/data-metadata/tools}/searchFieldMetadata.d.ts +0 -0
  95. /package/dist/ai/{tools/data-query/dataSourceCounting.d.ts → skills/data-query/tools/dataQuery.d.ts} +0 -0
  96. /package/dist/ai/{tools/data-query/dataSourceQuery.d.ts → skills/data-query/tools/dataSourceCounting.d.ts} +0 -0
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { ReactNode } from 'react';
10
+ export interface AvailableAction {
11
+ name: string;
12
+ displayName?: ReactNode;
13
+ onNewRecord?: boolean;
14
+ allowConfigureFields?: boolean;
15
+ }
16
+ export interface DataSourceRecord {
17
+ key: string;
18
+ displayName?: ReactNode;
19
+ type?: string;
20
+ enabled?: boolean;
21
+ }
22
+ export interface CollectionFieldRecord {
23
+ name: string;
24
+ interface?: string;
25
+ type?: string;
26
+ target?: string;
27
+ uiSchema?: {
28
+ title?: ReactNode;
29
+ [key: string]: unknown;
30
+ };
31
+ [key: string]: unknown;
32
+ }
33
+ export interface RoleCollectionRecord {
34
+ type?: string;
35
+ name: string;
36
+ collectionName?: string;
37
+ title?: ReactNode;
38
+ roleName: string;
39
+ usingConfig?: 'strategy' | 'resourceAction';
40
+ exists?: boolean;
41
+ fields?: CollectionFieldRecord[];
42
+ }
43
+ export interface RoleResourceAction {
44
+ name: string;
45
+ fields?: string[];
46
+ scopeId?: string | number | null;
47
+ scope?: unknown;
48
+ }
49
+ export interface ScopeRecord {
50
+ id: string | number;
51
+ key?: string;
52
+ name?: string;
53
+ resourceName?: string | null;
54
+ scope?: Record<string, unknown>;
55
+ }
@@ -0,0 +1,243 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Application, Plugin, type CollectionTemplateField } from '@nocobase/client-v2';
10
+ import React, { ComponentType } from 'react';
11
+ import { FieldInterfaceConfigureOptions } from './field-interfaces';
12
+ import { DataSourcePermissionTabRegistry, type DataSourcePermissionTabOptionResolver, type DataSourcePermissionTabProps } from './registries';
13
+ export interface DataSourceSettingsFormProps {
14
+ mode: 'create' | 'edit';
15
+ type: DataSourceTypeOptions;
16
+ initialValues?: Record<string, any>;
17
+ loadCollections: (key: string) => Promise<any>;
18
+ }
19
+ export interface DataSourceCollectionActionProps {
20
+ dataSourceKey: string;
21
+ record?: Record<string, any>;
22
+ selectedRowKeys?: React.Key[];
23
+ onSubmitted?: () => void;
24
+ children?: React.ReactNode;
25
+ isBulk?: boolean;
26
+ }
27
+ export interface DataSourceFieldInterfaceFilterOptions {
28
+ groups?: string[];
29
+ include?: string[];
30
+ exclude?: string[];
31
+ }
32
+ export interface DataSourceFieldInterfaceReadOnlyContext {
33
+ collection: Record<string, unknown>;
34
+ field: Record<string, unknown>;
35
+ fieldInterface?: {
36
+ name?: string;
37
+ group?: string;
38
+ isAssociation?: boolean;
39
+ };
40
+ }
41
+ export interface DataSourceTypeOptions {
42
+ name?: string;
43
+ label?: React.ReactNode;
44
+ defaultValues?: Record<string, any>;
45
+ createFieldInterfaces?: DataSourceFieldInterfaceFilterOptions | ((context: {
46
+ collection: Record<string, any>;
47
+ }) => DataSourceFieldInterfaceFilterOptions | undefined);
48
+ disableAddFields?: boolean;
49
+ disableConfigureFields?: boolean;
50
+ disableTestConnection?: boolean;
51
+ capabilities?: {
52
+ query?: boolean;
53
+ runSQL?: boolean;
54
+ };
55
+ AddCollection?: ComponentType<DataSourceCollectionActionProps>;
56
+ EditCollection?: ComponentType<DataSourceCollectionActionProps>;
57
+ DeleteCollection?: ComponentType<DataSourceCollectionActionProps>;
58
+ allowCollectionCreate?: boolean;
59
+ allowCollectionDeletion?: boolean;
60
+ isFieldInterfaceReadOnly?: (context: DataSourceFieldInterfaceReadOnlyContext) => boolean | undefined;
61
+ normalizeValues?: (values: Record<string, any>) => Record<string, any>;
62
+ SettingsForm?: ComponentType<DataSourceSettingsFormProps>;
63
+ }
64
+ export interface CollectionPresetFieldOptions {
65
+ name?: string;
66
+ order?: number;
67
+ field?: React.ReactNode;
68
+ interfaceLabel?: React.ReactNode;
69
+ description?: React.ReactNode;
70
+ defaultSelected?: boolean;
71
+ value: CollectionTemplateField & {
72
+ name: string;
73
+ interface?: string;
74
+ primaryKey?: boolean;
75
+ uiSchema?: Record<string, any>;
76
+ [key: string]: any;
77
+ };
78
+ }
79
+ export interface CollectionTemplateFormProps {
80
+ mode: 'create' | 'edit';
81
+ template: CollectionTemplateOptions;
82
+ form: any;
83
+ }
84
+ export interface CollectionTemplateConfigureItemProps extends CollectionTemplateFormProps {
85
+ item: CollectionTemplateConfigureItem;
86
+ }
87
+ export interface CollectionTemplateSyncFieldsProps {
88
+ collection: Record<string, any>;
89
+ dataSourceKey: string;
90
+ onSubmitted: () => void;
91
+ }
92
+ export interface CollectionTemplateSyncFieldsOptions {
93
+ Component?: ComponentType<CollectionTemplateSyncFieldsProps>;
94
+ visible?: boolean | ((props: {
95
+ collection: Record<string, any>;
96
+ dataSourceKey: string;
97
+ }) => boolean);
98
+ }
99
+ export interface CollectionTemplateConfigureItem {
100
+ name?: string;
101
+ label?: React.ReactNode;
102
+ component?: 'Input' | 'Input.TextArea' | 'Select' | 'Checkbox';
103
+ options?: Array<{
104
+ label: React.ReactNode;
105
+ value: string | number | boolean;
106
+ }>;
107
+ Component?: ComponentType<CollectionTemplateConfigureItemProps>;
108
+ componentProps?: Record<string, unknown>;
109
+ required?: boolean;
110
+ hidden?: boolean | ((props: CollectionTemplateFormProps) => boolean);
111
+ }
112
+ export interface CollectionTemplateOptions {
113
+ name?: string;
114
+ title: React.ReactNode;
115
+ description?: React.ReactNode;
116
+ order?: number;
117
+ color?: string;
118
+ divider?: boolean;
119
+ collection?: {
120
+ options?: Record<string, any> | (() => Record<string, any>);
121
+ fields?: CollectionTemplateField[] | (() => CollectionTemplateField[]);
122
+ };
123
+ capabilities?: {
124
+ inherits?: boolean;
125
+ recordUniqueKey?: boolean;
126
+ simplePaginate?: boolean;
127
+ };
128
+ configure?: {
129
+ items?: CollectionTemplateConfigureItem[];
130
+ Form?: ComponentType<CollectionTemplateFormProps>;
131
+ syncFields?: CollectionTemplateSyncFieldsOptions;
132
+ transformSubmitValues?: (values: Record<string, any>) => Record<string, any> | void;
133
+ };
134
+ fieldInterfaces?: {
135
+ include?: Array<string | {
136
+ interface?: string;
137
+ name?: string;
138
+ targetScope?: Record<string, unknown>;
139
+ }>;
140
+ exclude?: string[];
141
+ create?: {
142
+ include?: Array<string | {
143
+ interface?: string;
144
+ name?: string;
145
+ targetScope?: Record<string, unknown>;
146
+ }>;
147
+ exclude?: string[];
148
+ };
149
+ };
150
+ /**
151
+ * @deprecated Use fieldInterfaces instead.
152
+ */
153
+ availableFieldInterfaces?: {
154
+ include?: Array<string | {
155
+ interface?: string;
156
+ name?: string;
157
+ targetScope?: Record<string, unknown>;
158
+ }>;
159
+ exclude?: string[];
160
+ create?: {
161
+ include?: Array<string | {
162
+ interface?: string;
163
+ name?: string;
164
+ targetScope?: Record<string, unknown>;
165
+ }>;
166
+ exclude?: string[];
167
+ };
168
+ };
169
+ presetFields?: {
170
+ disabled?: boolean;
171
+ disabledIncludes?: string[];
172
+ };
173
+ actions?: unknown[];
174
+ /**
175
+ * @deprecated Use collection.options instead.
176
+ */
177
+ defaultValues?: Record<string, any> | (() => Record<string, any>);
178
+ /**
179
+ * @deprecated Use presetFields.disabled instead.
180
+ */
181
+ presetFieldsDisabled?: boolean;
182
+ /**
183
+ * @deprecated Use presetFields.disabledIncludes instead.
184
+ */
185
+ presetFieldsDisabledIncludes?: string[];
186
+ /**
187
+ * @deprecated Use configure.Form instead.
188
+ */
189
+ ConfigureForm?: ComponentType<CollectionTemplateFormProps>;
190
+ /**
191
+ * @deprecated Use configure.transformSubmitValues instead.
192
+ */
193
+ beforeSubmit?: (values: Record<string, any>) => void;
194
+ }
195
+ declare class CollectionTemplateRegistry {
196
+ protected templates: Map<string, CollectionTemplateOptions>;
197
+ register(nameOrOptions: string | CollectionTemplateOptions, options?: CollectionTemplateOptions): void;
198
+ get(name?: string): CollectionTemplateOptions;
199
+ getAll(): CollectionTemplateOptions[];
200
+ }
201
+ declare class CollectionPresetFieldRegistry {
202
+ protected fields: Map<string, CollectionPresetFieldOptions>;
203
+ register(options: CollectionPresetFieldOptions): void;
204
+ remove(name: string): void;
205
+ getAll(): CollectionPresetFieldOptions[];
206
+ }
207
+ declare class ExtensionManager {
208
+ protected managerActions: Array<{
209
+ order: number;
210
+ component: ComponentType;
211
+ }>;
212
+ registerManagerAction({ order, component }: {
213
+ order?: number;
214
+ component: ComponentType;
215
+ }): void;
216
+ getManagerActions(): {
217
+ order: number;
218
+ component: React.ComponentType;
219
+ }[];
220
+ }
221
+ export declare class PluginDataSourceManagerClientV2 extends Plugin<any, Application> {
222
+ types: Map<string, DataSourceTypeOptions>;
223
+ extensionManager: ExtensionManager;
224
+ collectionTemplateRegistry: CollectionTemplateRegistry;
225
+ collectionPresetFieldRegistry: CollectionPresetFieldRegistry;
226
+ permissionTabRegistry: DataSourcePermissionTabRegistry;
227
+ load(): Promise<void>;
228
+ registerType(name: string, options: DataSourceTypeOptions): void;
229
+ getType(name?: string): DataSourceTypeOptions;
230
+ registerFieldInterfaceConfigure(options: FieldInterfaceConfigureOptions): void;
231
+ registerCollectionTemplate(nameOrOptions: string | CollectionTemplateOptions, options?: CollectionTemplateOptions): void;
232
+ registerCollectionPresetField(options: CollectionPresetFieldOptions): void;
233
+ registerPermissionTab(options: DataSourcePermissionTabOptionResolver): void;
234
+ getPermissionTabs(props: DataSourcePermissionTabProps): import("./registries").DataSourcePermissionTabOptions[];
235
+ addCollectionPresetField(options: CollectionPresetFieldOptions): void;
236
+ removeCollectionPresetField(name: string): void;
237
+ getCollectionPresetFields(): CollectionPresetFieldOptions[];
238
+ getCollectionTemplate(name?: string): CollectionTemplateOptions;
239
+ getCollectionTemplates(): CollectionTemplateOptions[];
240
+ private registerBuiltInCollectionPresetFields;
241
+ private registerBuiltInCollectionTemplates;
242
+ }
243
+ export default PluginDataSourceManagerClientV2;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { ComponentType, ReactNode } from 'react';
10
+ import type { AvailableAction, DataSourceRecord } from './pages/permissions/types';
11
+ export type DataSourcePermissionT = (key: string, options?: Record<string, unknown>) => string;
12
+ export interface DataSourcePermissionRole {
13
+ name: string;
14
+ title?: string;
15
+ }
16
+ export interface DataSourcePermissionTabProps {
17
+ activeRole?: DataSourcePermissionRole | null;
18
+ availableActions: AvailableAction[];
19
+ dataSource: DataSourceRecord;
20
+ t: DataSourcePermissionT;
21
+ }
22
+ export type ComponentLoader<Props> = () => Promise<{
23
+ default: ComponentType<Props>;
24
+ }>;
25
+ export interface DataSourcePermissionTabOptions {
26
+ key: string;
27
+ label: ReactNode;
28
+ componentLoader: ComponentLoader<DataSourcePermissionTabProps>;
29
+ sort?: number;
30
+ }
31
+ export type DataSourcePermissionTabOptionResolver = DataSourcePermissionTabOptions | ((props: DataSourcePermissionTabProps) => DataSourcePermissionTabOptions | null | undefined);
32
+ export declare class DataSourcePermissionTabRegistry {
33
+ private readonly permissionTabs;
34
+ add(options: DataSourcePermissionTabOptionResolver): void;
35
+ getPermissionTabs(props: DataSourcePermissionTabProps): DataSourcePermissionTabOptions[];
36
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { type DataSourceManager } from '@nocobase/flow-engine';
10
+ import type React from 'react';
11
+ export declare function syncDataSourcesToRuntime(dataSourceManager: DataSourceManager | undefined, records: Array<Record<string, any>>): void;
12
+ export declare function removeDataSourcesFromRuntime(dataSourceManager: DataSourceManager | undefined, keys: React.Key[]): void;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { ReactNode } from 'react';
10
+ type TOptions = Record<string, unknown>;
11
+ type TFunction = (key: string, options?: TOptions) => string;
12
+ export declare function getLegacyTemplateKey(value: ReactNode): string;
13
+ export declare function compileLegacyTemplate(value: ReactNode, t: TFunction): ReactNode;
14
+ export declare function preferLegacyTemplateTitle(value: ReactNode, templateTitle?: ReactNode): ReactNode;
15
+ export declare function compileLegacyTemplateText(value: ReactNode, t: TFunction, fallback?: string): string;
16
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function isFormValidationError(error: unknown): boolean;
10
+ export declare function getErrorMessage(error: unknown, fallback?: string): string;
11
+ export declare function getResponseErrorMessage(response: unknown): string;
@@ -8,30 +8,34 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-beta.9",
11
+ "@nocobase/client": "2.2.0-alpha.1",
12
12
  "react": "18.2.0",
13
- "@nocobase/plugin-acl": "2.1.0-beta.9",
14
- "@nocobase/utils": "2.1.0-beta.9",
15
- "@nocobase/server": "2.1.0-beta.9",
16
- "@nocobase/data-source-manager": "2.1.0-beta.9",
17
- "lodash": "4.17.21",
18
- "@nocobase/acl": "2.1.0-beta.9",
19
- "@nocobase/database": "2.1.0-beta.9",
20
- "@nocobase/actions": "2.1.0-beta.9",
21
- "@nocobase/ai": "2.1.0-beta.9",
13
+ "@nocobase/plugin-acl": "2.2.0-alpha.1",
14
+ "@nocobase/utils": "2.2.0-alpha.1",
15
+ "@nocobase/flow-engine": "2.2.0-alpha.1",
16
+ "@nocobase/client-v2": "2.2.0-alpha.1",
17
+ "@nocobase/ai": "2.2.0-alpha.1",
18
+ "@nocobase/server": "2.2.0-alpha.1",
19
+ "@nocobase/data-source-manager": "2.2.0-alpha.1",
20
+ "lodash": "4.18.1",
21
+ "@nocobase/acl": "2.2.0-alpha.1",
22
+ "@nocobase/database": "2.2.0-alpha.1",
22
23
  "@ant-design/icons": "5.6.1",
23
24
  "antd": "5.24.2",
24
25
  "react-router-dom": "6.30.1",
25
- "@nocobase/flow-engine": "2.1.0-beta.9",
26
26
  "@formily/shared": "2.3.7",
27
27
  "@formily/react": "2.3.7",
28
28
  "react-i18next": "11.18.6",
29
29
  "@emotion/css": "11.13.0",
30
+ "ahooks": "3.7.8",
31
+ "@nocobase/actions": "2.2.0-alpha.1",
30
32
  "sequelize": "6.35.2",
31
- "@nocobase/test": "2.1.0-beta.9",
33
+ "@nocobase/test": "2.2.0-alpha.1",
32
34
  "@formily/antd-v5": "1.2.3",
33
35
  "@formily/core": "2.3.7",
34
36
  "@formily/reactive": "2.3.7",
35
37
  "@dnd-kit/core": "6.1.0",
36
- "antd-style": "3.7.1"
38
+ "antd-style": "3.7.1",
39
+ "@dnd-kit/sortable": "7.0.2",
40
+ "dayjs": "1.11.13"
37
41
  };