@nocobase/client 2.1.0-beta.21 → 2.1.0-beta.23

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 (419) hide show
  1. package/es/ai/index.d.ts +2 -4
  2. package/es/api-client/APIClient.d.ts +1 -2
  3. package/es/application/Application.d.ts +69 -139
  4. package/es/application/Plugin.d.ts +2 -24
  5. package/es/application/PluginManager.d.ts +7 -36
  6. package/es/application/PluginSettingsManager.d.ts +103 -7
  7. package/es/application/RouteRepository.d.ts +1 -15
  8. package/es/application/RouterManager.d.ts +4 -44
  9. package/es/application/WebSocketClient.d.ts +2 -36
  10. package/es/application/components/index.d.ts +0 -2
  11. package/es/application/hooks/usePlugin.d.ts +2 -2
  12. package/es/application/schema-initializer/context/index.d.ts +1 -1
  13. package/es/application/schema-settings/hooks/useSchemaSettingsRender.d.ts +2 -2
  14. package/es/application/utils/remotePlugins.d.ts +6 -6
  15. package/es/block-provider/TableBlockContextBasicValue.d.ts +25 -0
  16. package/es/block-provider/TableBlockProvider.d.ts +0 -11
  17. package/es/block-provider/index.d.ts +1 -0
  18. package/es/collection-manager/hooks/useCollection_deprecated.d.ts +2 -2
  19. package/es/collection-manager/templates/sql.d.ts +4 -4
  20. package/es/collection-manager/templates/view.d.ts +4 -4
  21. package/es/data-source/collection/utils.d.ts +3 -3
  22. package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
  23. package/es/global-theme/AntdAppProvider.d.ts +1 -10
  24. package/es/global-theme/compatOldTheme.d.ts +1 -3
  25. package/es/global-theme/customAlgorithm.d.ts +1 -7
  26. package/es/global-theme/defaultTheme.d.ts +1 -3
  27. package/es/global-theme/index.d.ts +2 -29
  28. package/es/global-theme/type.d.ts +1 -56
  29. package/es/index.d.ts +1 -1
  30. package/es/index.mjs +507 -1118
  31. package/es/modules/actions/link/useURLAndHTMLSchema.d.ts +1 -0
  32. package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -1
  33. package/es/plugin-manager/PinnedPluginListProvider.d.ts +2 -1
  34. package/es/plugin-manager/context.d.ts +1 -4
  35. package/es/pm/AdminSettingsLayoutModel.d.ts +2 -4
  36. package/es/{flow/components/placeholders/FieldPlaceholder.d.ts → route-switch/antd/admin-layout/AdminDynamicPage.d.ts} +1 -1
  37. package/es/route-switch/antd/admin-layout/AdminLayoutCompat.d.ts +32 -0
  38. package/es/route-switch/antd/admin-layout/AdminLayoutComponentV1.d.ts +15 -0
  39. package/es/route-switch/antd/admin-layout/AdminLayoutMenuFlowUtils.d.ts +107 -0
  40. package/es/route-switch/antd/admin-layout/AdminLayoutMenuModels.d.ts +64 -0
  41. package/es/route-switch/antd/admin-layout/AdminLayoutMenuUtils.d.ts +164 -0
  42. package/es/route-switch/antd/admin-layout/AdminLayoutModel.d.ts +22 -16
  43. package/es/{application/components/AppComponent.d.ts → route-switch/antd/admin-layout/AdminShellProvider.d.ts} +4 -6
  44. package/es/{flow/components/drag-drop/Sortable.d.ts → route-switch/antd/admin-layout/ResetThemeTokenAndKeepAlgorithm.d.ts} +4 -3
  45. package/es/route-switch/antd/admin-layout/index.d.ts +12 -27
  46. package/es/route-switch/antd/admin-layout/route-runtime.d.ts +20 -0
  47. package/es/route-switch/antd/admin-layout/{convertRoutesToSchema.d.ts → route-types.d.ts} +5 -1
  48. package/es/route-switch/antd/admin-layout/route-utils.d.ts +13 -0
  49. package/es/schema-component/antd/__builtins__/hooks/useToken.d.ts +1 -1
  50. package/es/schema-component/antd/__builtins__/style.d.ts +1 -1
  51. package/es/schema-component/antd/association-field/hooks.d.ts +1 -1
  52. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
  53. package/es/schema-component/antd/menu/Menu.d.ts +2 -2
  54. package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -1
  55. package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
  56. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  57. package/es/schema-settings/SchemaSettings.d.ts +1 -1
  58. package/es/style/index.d.ts +1 -1
  59. package/es/style/useToken.d.ts +1 -1
  60. package/es/system-settings/SystemSettingsProvider.d.ts +1 -6
  61. package/es/{flow/components/code-editor/extension/index.d.ts → system-settings/SystemSettingsSource.d.ts} +1 -1
  62. package/es/system-settings/index.d.ts +2 -1
  63. package/lib/index.js +530 -1141
  64. package/lib/locale/en-US.json +11 -0
  65. package/lib/locale/zh-CN.json +12 -1
  66. package/package.json +7 -6
  67. package/es/ai/ai-manager.d.ts +0 -15
  68. package/es/ai/skills-manager/index.d.ts +0 -9
  69. package/es/ai/skills-manager/types.d.ts +0 -23
  70. package/es/ai/tools-manager/hooks/context.d.ts +0 -17
  71. package/es/ai/tools-manager/hooks/index.d.ts +0 -11
  72. package/es/ai/tools-manager/hooks/provider.d.ts +0 -16
  73. package/es/ai/tools-manager/index.d.ts +0 -20
  74. package/es/ai/tools-manager/types.d.ts +0 -90
  75. package/es/ai/utils.d.ts +0 -10
  76. package/es/application/components/MainComponent.d.ts +0 -10
  77. package/es/application/components/defaultComponents.d.ts +0 -19
  78. package/es/flow/FlowModelRepository.d.ts +0 -36
  79. package/es/flow/FlowPage.d.ts +0 -20
  80. package/es/flow/actions/aclCheck.d.ts +0 -9
  81. package/es/flow/actions/aclCheckRefresh.d.ts +0 -9
  82. package/es/flow/actions/afterSuccess.d.ts +0 -9
  83. package/es/flow/actions/blockHeight.d.ts +0 -9
  84. package/es/flow/actions/columnFixed.d.ts +0 -9
  85. package/es/flow/actions/confirm.d.ts +0 -9
  86. package/es/flow/actions/customVariable.d.ts +0 -9
  87. package/es/flow/actions/dataLoadingMode.d.ts +0 -9
  88. package/es/flow/actions/dataScope.d.ts +0 -9
  89. package/es/flow/actions/dateTimeFormat.d.ts +0 -9
  90. package/es/flow/actions/displayFieldComponent.d.ts +0 -19
  91. package/es/flow/actions/fieldComponent.d.ts +0 -9
  92. package/es/flow/actions/filterFormDefaultValues.d.ts +0 -9
  93. package/es/flow/actions/formAssignRules.d.ts +0 -9
  94. package/es/flow/actions/index.d.ts +0 -40
  95. package/es/flow/actions/layout.d.ts +0 -10
  96. package/es/flow/actions/linkageRules.d.ts +0 -23
  97. package/es/flow/actions/linkageRulesRefresh.d.ts +0 -9
  98. package/es/flow/actions/navigateToURL.d.ts +0 -9
  99. package/es/flow/actions/numberFormat.d.ts +0 -9
  100. package/es/flow/actions/openView.d.ts +0 -15
  101. package/es/flow/actions/overflowMode.d.ts +0 -9
  102. package/es/flow/actions/pattern.d.ts +0 -9
  103. package/es/flow/actions/refreshTargetBlocks.d.ts +0 -9
  104. package/es/flow/actions/renderMode.d.ts +0 -9
  105. package/es/flow/actions/required.d.ts +0 -9
  106. package/es/flow/actions/runjs.d.ts +0 -9
  107. package/es/flow/actions/setTargetDataScope.d.ts +0 -10
  108. package/es/flow/actions/showMessage.d.ts +0 -9
  109. package/es/flow/actions/showNotification.d.ts +0 -9
  110. package/es/flow/actions/sortingRules.d.ts +0 -9
  111. package/es/flow/actions/titleField.d.ts +0 -9
  112. package/es/flow/actions/validation.d.ts +0 -9
  113. package/es/flow/common/Liquid.d.ts +0 -33
  114. package/es/flow/common/Markdown/Display.d.ts +0 -9
  115. package/es/flow/common/Markdown/Edit.d.ts +0 -23
  116. package/es/flow/common/Markdown/Markdown.d.ts +0 -24
  117. package/es/flow/common/Markdown/style.d.ts +0 -10
  118. package/es/flow/common/Markdown/useCDN.d.ts +0 -9
  119. package/es/flow/components/BlockItemCard.d.ts +0 -16
  120. package/es/flow/components/ConditionBuilder.d.ts +0 -17
  121. package/es/flow/components/DefaultValue.d.ts +0 -20
  122. package/es/flow/components/DynamicFlowsIcon.d.ts +0 -13
  123. package/es/flow/components/EllipsisWithTooltip.d.ts +0 -17
  124. package/es/flow/components/ExpiresRadio/index.d.ts +0 -12
  125. package/es/flow/components/FieldAssignEditor.d.ts +0 -32
  126. package/es/flow/components/FieldAssignExactDatePicker.d.ts +0 -23
  127. package/es/flow/components/FieldAssignRulesEditor.d.ts +0 -70
  128. package/es/flow/components/FieldAssignValueInput.d.ts +0 -88
  129. package/es/flow/components/Grid/index.d.ts +0 -26
  130. package/es/flow/components/JsonEditor.d.ts +0 -19
  131. package/es/flow/components/RunJSValueEditor.d.ts +0 -19
  132. package/es/flow/components/SkeletonFallback.d.ts +0 -10
  133. package/es/flow/components/TextAreaWithContextSelector.d.ts +0 -30
  134. package/es/flow/components/code-editor/core/EditorCore.d.ts +0 -25
  135. package/es/flow/components/code-editor/core/tooltipParent.d.ts +0 -9
  136. package/es/flow/components/code-editor/errorHelpers.d.ts +0 -17
  137. package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +0 -14
  138. package/es/flow/components/code-editor/formatDocInfo.d.ts +0 -17
  139. package/es/flow/components/code-editor/hooks/useCodeRunner.d.ts +0 -23
  140. package/es/flow/components/code-editor/hooks/useRunJSDocCompletions.d.ts +0 -15
  141. package/es/flow/components/code-editor/htmlCompletion.d.ts +0 -11
  142. package/es/flow/components/code-editor/index.d.ts +0 -31
  143. package/es/flow/components/code-editor/javascriptCompletion.d.ts +0 -11
  144. package/es/flow/components/code-editor/javascriptHtmlTemplate.d.ts +0 -16
  145. package/es/flow/components/code-editor/jsxCompletion.d.ts +0 -10
  146. package/es/flow/components/code-editor/linter.d.ts +0 -19
  147. package/es/flow/components/code-editor/panels/LogsPanel.d.ts +0 -15
  148. package/es/flow/components/code-editor/panels/RightExtra.d.ts +0 -18
  149. package/es/flow/components/code-editor/panels/SnippetsDrawer.d.ts +0 -18
  150. package/es/flow/components/code-editor/resolveScenes.d.ts +0 -10
  151. package/es/flow/components/code-editor/runjsCompletionSource.d.ts +0 -20
  152. package/es/flow/components/code-editor/runjsCompletions.d.ts +0 -23
  153. package/es/flow/components/code-editor/runjsDiagnostics.d.ts +0 -46
  154. package/es/flow/components/code-editor/types.d.ts +0 -32
  155. package/es/flow/components/drag-drop/SortableItem.d.ts +0 -12
  156. package/es/flow/components/drag-drop/index.d.ts +0 -10
  157. package/es/flow/components/fieldAssignOptions.d.ts +0 -23
  158. package/es/flow/components/filter/FilterContainer.d.ts +0 -67
  159. package/es/flow/components/filter/FilterGroup.d.ts +0 -66
  160. package/es/flow/components/filter/FilterItem.d.ts +0 -40
  161. package/es/flow/components/filter/LinkageFilterItem.d.ts +0 -51
  162. package/es/flow/components/filter/VariableFilterItem.d.ts +0 -37
  163. package/es/flow/components/filter/fieldsToOptions.d.ts +0 -9
  164. package/es/flow/components/filter/index.d.ts +0 -16
  165. package/es/flow/components/index.d.ts +0 -14
  166. package/es/flow/components/placeholders/BlockPlaceholder.d.ts +0 -11
  167. package/es/flow/components/useAssociationTitleFieldSync.d.ts +0 -13
  168. package/es/flow/flows/editMarkdownFlow.d.ts +0 -10
  169. package/es/flow/flows/openViewFlow.d.ts +0 -17
  170. package/es/flow/formily/ReactiveField.d.ts +0 -19
  171. package/es/flow/formily/index.d.ts +0 -8
  172. package/es/flow/getViewDiffAndUpdateHidden.d.ts +0 -21
  173. package/es/flow/index.d.ts +0 -24
  174. package/es/flow/internal/components/Markdown/DisplayMarkdown.d.ts +0 -10
  175. package/es/flow/internal/components/Markdown/markdown-it-plugins/mermaidPlugin.d.ts +0 -13
  176. package/es/flow/internal/components/Markdown/md.d.ts +0 -11
  177. package/es/flow/internal/components/Markdown/style.d.ts +0 -9
  178. package/es/flow/internal/components/Markdown/util.d.ts +0 -15
  179. package/es/flow/internal/constants/HeightMode.d.ts +0 -13
  180. package/es/flow/internal/index.d.ts +0 -11
  181. package/es/flow/internal/utils/associationValueCoercion.d.ts +0 -15
  182. package/es/flow/internal/utils/dateTimeUtils.d.ts +0 -10
  183. package/es/flow/internal/utils/enumOptionsUtils.d.ts +0 -23
  184. package/es/flow/internal/utils/modelUtils.d.ts +0 -27
  185. package/es/flow/internal/utils/operatorSchemaHelper.d.ts +0 -15
  186. package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +0 -33
  187. package/es/flow/internal/utils/saveStepParamsWithSubModels.d.ts +0 -11
  188. package/es/flow/internal/utils/titleFieldQuickSync.d.ts +0 -35
  189. package/es/flow/models/actions/AddChildActionModel.d.ts +0 -16
  190. package/es/flow/models/actions/AddNewActionModel.d.ts +0 -16
  191. package/es/flow/models/actions/BulkDeleteActionModel.d.ts +0 -16
  192. package/es/flow/models/actions/DeleteActionModel.d.ts +0 -15
  193. package/es/flow/models/actions/EditActionModel.d.ts +0 -16
  194. package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +0 -19
  195. package/es/flow/models/actions/FilterActionModel.d.ts +0 -26
  196. package/es/flow/models/actions/JSActionModel.d.ts +0 -13
  197. package/es/flow/models/actions/JSCollectionActionModel.d.ts +0 -14
  198. package/es/flow/models/actions/JSItemActionModel.d.ts +0 -19
  199. package/es/flow/models/actions/JSRecordActionModel.d.ts +0 -14
  200. package/es/flow/models/actions/LinkActionModel.d.ts +0 -15
  201. package/es/flow/models/actions/LinkActionUtils.d.ts +0 -34
  202. package/es/flow/models/actions/PopupCollectionActionModel.d.ts +0 -14
  203. package/es/flow/models/actions/RefreshActionModel.d.ts +0 -14
  204. package/es/flow/models/actions/UpdateRecordActionModel.d.ts +0 -27
  205. package/es/flow/models/actions/UpdateRecordActionUtils.d.ts +0 -12
  206. package/es/flow/models/actions/ViewActionModel.d.ts +0 -15
  207. package/es/flow/models/actions/index.d.ts +0 -24
  208. package/es/flow/models/actions/joinUrlSearch.d.ts +0 -12
  209. package/es/flow/models/base/ActionGroupModel.d.ts +0 -36
  210. package/es/flow/models/base/ActionModel.d.ts +0 -45
  211. package/es/flow/models/base/AssociationFieldGroupModel.d.ts +0 -49
  212. package/es/flow/models/base/BlockGridModel.d.ts +0 -22
  213. package/es/flow/models/base/BlockModel.d.ts +0 -57
  214. package/es/flow/models/base/CollectionActionModel.d.ts +0 -12
  215. package/es/flow/models/base/CollectionBlockModel.d.ts +0 -71
  216. package/es/flow/models/base/CommonItemModel.d.ts +0 -11
  217. package/es/flow/models/base/DataBlockModel.d.ts +0 -12
  218. package/es/flow/models/base/FieldModel.d.ts +0 -17
  219. package/es/flow/models/base/FilterBlockModel.d.ts +0 -12
  220. package/es/flow/models/base/GridModel.d.ts +0 -99
  221. package/es/flow/models/base/PageModel/ChildPageModel.d.ts +0 -21
  222. package/es/flow/models/base/PageModel/MainPageModel.d.ts +0 -17
  223. package/es/flow/models/base/PageModel/OldPageModel.d.ts +0 -21
  224. package/es/flow/models/base/PageModel/PageModel.d.ts +0 -53
  225. package/es/flow/models/base/PageModel/PageTabModel.d.ts +0 -42
  226. package/es/flow/models/base/PageModel/RootPageModel.d.ts +0 -24
  227. package/es/flow/models/base/PageModel/SubPageModel.d.ts +0 -17
  228. package/es/flow/models/base/PageModel/index.d.ts +0 -14
  229. package/es/flow/models/base/PopupActionModel.d.ts +0 -13
  230. package/es/flow/models/base/RecordActionModel.d.ts +0 -12
  231. package/es/flow/models/base/RouteModel.d.ts +0 -11
  232. package/es/flow/models/base/index.d.ts +0 -24
  233. package/es/flow/models/blocks/assign-form/AssignFormGridModel.d.ts +0 -15
  234. package/es/flow/models/blocks/assign-form/AssignFormItemModel.d.ts +0 -22
  235. package/es/flow/models/blocks/assign-form/AssignFormModel.d.ts +0 -26
  236. package/es/flow/models/blocks/assign-form/index.d.ts +0 -11
  237. package/es/flow/models/blocks/details/DetailsAssociationFieldGroupModel.d.ts +0 -12
  238. package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +0 -41
  239. package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +0 -13
  240. package/es/flow/models/blocks/details/DetailsGridModel.d.ts +0 -33
  241. package/es/flow/models/blocks/details/DetailsItemModel.d.ts +0 -60
  242. package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +0 -19
  243. package/es/flow/models/blocks/details/index.d.ts +0 -14
  244. package/es/flow/models/blocks/details/utils.d.ts +0 -16
  245. package/es/flow/models/blocks/filter-form/FieldModelSelect.d.ts +0 -10
  246. package/es/flow/models/blocks/filter-form/FieldOperatorSelect.d.ts +0 -10
  247. package/es/flow/models/blocks/filter-form/FilterFormActionGroupModel.d.ts +0 -13
  248. package/es/flow/models/blocks/filter-form/FilterFormActionModel.d.ts +0 -11
  249. package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +0 -39
  250. package/es/flow/models/blocks/filter-form/FilterFormCollapseActionModel.d.ts +0 -18
  251. package/es/flow/models/blocks/filter-form/FilterFormCustomItemModel.d.ts +0 -13
  252. package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +0 -43
  253. package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +0 -59
  254. package/es/flow/models/blocks/filter-form/FilterFormJSActionModel.d.ts +0 -11
  255. package/es/flow/models/blocks/filter-form/FilterFormResetActionModel.d.ts +0 -13
  256. package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +0 -15
  257. package/es/flow/models/blocks/filter-form/SourceCascader.d.ts +0 -10
  258. package/es/flow/models/blocks/filter-form/customFieldOperators.d.ts +0 -34
  259. package/es/flow/models/blocks/filter-form/fields/FieldComponentProps.d.ts +0 -13
  260. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +0 -52
  261. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomRecordSelectFieldModel.d.ts +0 -20
  262. package/es/flow/models/blocks/filter-form/fields/FilterFormFieldModel.d.ts +0 -11
  263. package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +0 -12
  264. package/es/flow/models/blocks/filter-form/fields/date-time/DateOnlyFilterFieldModel.d.ts +0 -14
  265. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeFilterFieldModel.d.ts +0 -13
  266. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeNoTzFilterFieldModel.d.ts +0 -13
  267. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeTzFilterFieldModel.d.ts +0 -14
  268. package/es/flow/models/blocks/filter-form/fields/date-time/components/DateFilterDynamicComponent.d.ts +0 -10
  269. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterDatePicker.d.ts +0 -10
  270. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterRangePicker.d.ts +0 -10
  271. package/es/flow/models/blocks/filter-form/fields/date-time/index.d.ts +0 -12
  272. package/es/flow/models/blocks/filter-form/fields/index.d.ts +0 -13
  273. package/es/flow/models/blocks/filter-form/index.d.ts +0 -23
  274. package/es/flow/models/blocks/filter-form/legacyDefaultValueMigration.d.ts +0 -13
  275. package/es/flow/models/blocks/filter-form/valueNormalization.d.ts +0 -17
  276. package/es/flow/models/blocks/filter-manager/FilterManager.d.ts +0 -141
  277. package/es/flow/models/blocks/filter-manager/flow-actions/connectFields.d.ts +0 -10
  278. package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +0 -10
  279. package/es/flow/models/blocks/filter-manager/flow-actions/defaultOperator.d.ts +0 -9
  280. package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +0 -12
  281. package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +0 -10
  282. package/es/flow/models/blocks/filter-manager/index.d.ts +0 -11
  283. package/es/flow/models/blocks/filter-manager/utils.d.ts +0 -21
  284. package/es/flow/models/blocks/form/CreateFormModel.d.ts +0 -22
  285. package/es/flow/models/blocks/form/EditFormModel.d.ts +0 -26
  286. package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +0 -13
  287. package/es/flow/models/blocks/form/FormActionModel.d.ts +0 -21
  288. package/es/flow/models/blocks/form/FormAssociationFieldGroupModel.d.ts +0 -12
  289. package/es/flow/models/blocks/form/FormAssociationItemModel.d.ts +0 -39
  290. package/es/flow/models/blocks/form/FormBlockModel.d.ts +0 -96
  291. package/es/flow/models/blocks/form/FormCustomItemModel.d.ts +0 -13
  292. package/es/flow/models/blocks/form/FormGridModel.d.ts +0 -34
  293. package/es/flow/models/blocks/form/FormItemModel.d.ts +0 -39
  294. package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +0 -18
  295. package/es/flow/models/blocks/form/JSFormActionModel.d.ts +0 -11
  296. package/es/flow/models/blocks/form/QuickEditFormModel.d.ts +0 -38
  297. package/es/flow/models/blocks/form/assignRulesUpdateAssociationValues.d.ts +0 -18
  298. package/es/flow/models/blocks/form/dynamicNamePath.d.ts +0 -19
  299. package/es/flow/models/blocks/form/index.d.ts +0 -21
  300. package/es/flow/models/blocks/form/legacyDefaultValueMigration.d.ts +0 -13
  301. package/es/flow/models/blocks/form/submitHandler.d.ts +0 -9
  302. package/es/flow/models/blocks/form/submitValues.d.ts +0 -40
  303. package/es/flow/models/blocks/form/value-runtime/conditions.d.ts +0 -9
  304. package/es/flow/models/blocks/form/value-runtime/deps.d.ts +0 -23
  305. package/es/flow/models/blocks/form/value-runtime/form-patch.d.ts +0 -19
  306. package/es/flow/models/blocks/form/value-runtime/index.d.ts +0 -11
  307. package/es/flow/models/blocks/form/value-runtime/path.d.ts +0 -25
  308. package/es/flow/models/blocks/form/value-runtime/rules.d.ts +0 -137
  309. package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -88
  310. package/es/flow/models/blocks/form/value-runtime/types.d.ts +0 -62
  311. package/es/flow/models/blocks/form/value-runtime/utils.d.ts +0 -12
  312. package/es/flow/models/blocks/index.d.ts +0 -15
  313. package/es/flow/models/blocks/js-block/JSBlock.d.ts +0 -16
  314. package/es/flow/models/blocks/js-block/index.d.ts +0 -9
  315. package/es/flow/models/blocks/shared/legacyDefaultValueMigrationBase.d.ts +0 -20
  316. package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -21
  317. package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -18
  318. package/es/flow/models/blocks/table/TableAssociationFieldGroupModel.d.ts +0 -12
  319. package/es/flow/models/blocks/table/TableBlockModel.d.ts +0 -68
  320. package/es/flow/models/blocks/table/TableColumnModel.d.ts +0 -29
  321. package/es/flow/models/blocks/table/TableCustomColumnModel.d.ts +0 -12
  322. package/es/flow/models/blocks/table/TableJSFieldItemModel.d.ts +0 -19
  323. package/es/flow/models/blocks/table/TableSelectModel.d.ts +0 -14
  324. package/es/flow/models/blocks/table/dragSort/dragSortComponents.d.ts +0 -14
  325. package/es/flow/models/blocks/table/dragSort/dragSortHooks.d.ts +0 -13
  326. package/es/flow/models/blocks/table/dragSort/dragSortSettings.d.ts +0 -39
  327. package/es/flow/models/blocks/table/dragSort/dragSortUtils.d.ts +0 -37
  328. package/es/flow/models/blocks/table/dragSort/index.d.ts +0 -12
  329. package/es/flow/models/blocks/table/index.d.ts +0 -16
  330. package/es/flow/models/blocks/table/sortUtils.d.ts +0 -32
  331. package/es/flow/models/blocks/table/utils.d.ts +0 -18
  332. package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +0 -42
  333. package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +0 -5
  334. package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +0 -45
  335. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +0 -11
  336. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +0 -19
  337. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +0 -30
  338. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +0 -28
  339. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +0 -16
  340. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +0 -14
  341. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/popupSubTableBeforeClose.d.ts +0 -25
  342. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +0 -36
  343. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +0 -17
  344. package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +0 -45
  345. package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +0 -46
  346. package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +0 -32
  347. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +0 -32
  348. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.d.ts +0 -10
  349. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +0 -19
  350. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/rowIdentity.d.ts +0 -18
  351. package/es/flow/models/fields/AssociationFieldModel/index.d.ts +0 -15
  352. package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +0 -99
  353. package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -48
  354. package/es/flow/models/fields/CheckboxFieldModel.d.ts +0 -13
  355. package/es/flow/models/fields/CheckboxGroupFieldModel.d.ts +0 -13
  356. package/es/flow/models/fields/ClickableFieldModel.d.ts +0 -25
  357. package/es/flow/models/fields/CollectionSelectorFieldModel.d.ts +0 -13
  358. package/es/flow/models/fields/ColorFieldModel.d.ts +0 -14
  359. package/es/flow/models/fields/DateTimeFieldModel/DateOnlyFieldModel.d.ts +0 -7
  360. package/es/flow/models/fields/DateTimeFieldModel/DateTimeFieldModel.d.ts +0 -3
  361. package/es/flow/models/fields/DateTimeFieldModel/DateTimeNoTzFieldModel.d.ts +0 -6
  362. package/es/flow/models/fields/DateTimeFieldModel/DateTimeTzFieldModel.d.ts +0 -7
  363. package/es/flow/models/fields/DateTimeFieldModel/index.d.ts +0 -11
  364. package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +0 -26
  365. package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +0 -26
  366. package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +0 -20
  367. package/es/flow/models/fields/DisplayAssociationField/displaySubListUtils.d.ts +0 -14
  368. package/es/flow/models/fields/DisplayAssociationField/index.d.ts +0 -11
  369. package/es/flow/models/fields/DisplayCheckboxFieldModel.d.ts +0 -13
  370. package/es/flow/models/fields/DisplayColorFieldModel.d.ts +0 -13
  371. package/es/flow/models/fields/DisplayDateTimeFieldModel.d.ts +0 -13
  372. package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +0 -14
  373. package/es/flow/models/fields/DisplayHtmlFieldModel.d.ts +0 -13
  374. package/es/flow/models/fields/DisplayIconFieldModel.d.ts +0 -13
  375. package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +0 -13
  376. package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +0 -33
  377. package/es/flow/models/fields/DisplayPasswordFieldModel.d.ts +0 -13
  378. package/es/flow/models/fields/DisplayPercentFieldModel.d.ts +0 -13
  379. package/es/flow/models/fields/DisplayTextFieldModel.d.ts +0 -14
  380. package/es/flow/models/fields/DisplayTimeFieldModel.d.ts +0 -13
  381. package/es/flow/models/fields/DisplayTitleFieldModel.d.ts +0 -18
  382. package/es/flow/models/fields/DisplayURLFieldModel.d.ts +0 -13
  383. package/es/flow/models/fields/DividerItemModel.d.ts +0 -13
  384. package/es/flow/models/fields/IconFieldModel.d.ts +0 -13
  385. package/es/flow/models/fields/InputFieldModel.d.ts +0 -13
  386. package/es/flow/models/fields/JSEditableFieldModel.d.ts +0 -27
  387. package/es/flow/models/fields/JSFieldModel.d.ts +0 -45
  388. package/es/flow/models/fields/JSItemModel.d.ts +0 -27
  389. package/es/flow/models/fields/JsonFieldModel.d.ts +0 -6
  390. package/es/flow/models/fields/MarkdownItemModel.d.ts +0 -14
  391. package/es/flow/models/fields/NumberFieldModel.d.ts +0 -15
  392. package/es/flow/models/fields/PasswordFieldModel.d.ts +0 -13
  393. package/es/flow/models/fields/PercentFieldModel.d.ts +0 -14
  394. package/es/flow/models/fields/RadioGroupFieldModel.d.ts +0 -13
  395. package/es/flow/models/fields/RichTextFieldModel/index.d.ts +0 -14
  396. package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +0 -9
  397. package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +0 -9
  398. package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +0 -12
  399. package/es/flow/models/fields/RichTextFieldModel/style.d.ts +0 -9
  400. package/es/flow/models/fields/SelectFieldModel.d.ts +0 -13
  401. package/es/flow/models/fields/TextareaFieldModel.d.ts +0 -13
  402. package/es/flow/models/fields/TimeFieldModel.d.ts +0 -5
  403. package/es/flow/models/fields/VariableFieldFormModel.d.ts +0 -18
  404. package/es/flow/models/fields/index.d.ts +0 -47
  405. package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +0 -10
  406. package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +0 -11
  407. package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +0 -10
  408. package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +0 -10
  409. package/es/flow/models/index.d.ts +0 -12
  410. package/es/flow/models/utils/resolveRunJsParams.d.ts +0 -19
  411. package/es/flow/resolveViewParamsToViewList.d.ts +0 -20
  412. package/es/flow/utils/actionCapability.d.ts +0 -60
  413. package/es/flow/utils/blockUtils.d.ts +0 -16
  414. package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
  415. package/es/flow/utils/index.d.ts +0 -11
  416. package/es/flow/utils/pagination.d.ts +0 -29
  417. package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
  418. package/es/route-switch/antd/admin-layout/AdminLayoutRouteCoordinator.d.ts +0 -50
  419. package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
package/es/ai/index.d.ts CHANGED
@@ -6,7 +6,5 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- export * from './ai-manager';
10
- export * from './tools-manager';
11
- export * from './skills-manager';
12
- export * from './utils';
9
+ export { AIManager, DefaultToolsManager, toToolsMap } from '@nocobase/client-v2';
10
+ export type { ToolsManager, ToolsRegistration, ToolsOptions, ToolCall, FrontendTools, BackendTools, ToolsEntry, ToolsUIProperties, DecisionActions, ToolsFilter, Scope, Permission, From, SkillsScope, SkillsEntry, SkillsFilter, } from '@nocobase/client-v2';
@@ -13,8 +13,7 @@ export declare class APIClient extends APIClientSDK {
13
13
  services: Record<string, Result<any, any>>;
14
14
  silence: boolean;
15
15
  app: Application;
16
- /** 该值会在 AntdAppProvider 中被重新赋值 */
17
- notification: any;
16
+ get notification(): import("antd/es/notification/interface").NotificationInstance;
18
17
  cloneInstance(): APIClient;
19
18
  getHostname(): string;
20
19
  getHeaders(): {};
@@ -6,205 +6,135 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
+ import { BaseApplication, type BaseApplicationOptions, type ComponentAndProps, type WebSocketClientOptions } from '@nocobase/client-v2';
9
10
  import { APIClientOptions } from '@nocobase/sdk';
10
11
  import { i18n as i18next } from 'i18next';
11
- import React, { ComponentType, ReactElement, ReactNode } from 'react';
12
+ import type { ComponentType } from 'react';
12
13
  import { APIClient } from '../api-client';
13
- import { PluginManager, PluginType } from './PluginManager';
14
+ import type { CollectionFieldInterfaceFactory } from '../data-source';
15
+ import { CollectionFieldInterfaceComponentOption } from '../data-source/collection-field-interface/CollectionFieldInterface';
16
+ import { DataSourceManager, type DataSourceManagerOptions } from '../data-source/data-source/DataSourceManager';
17
+ import { PluginManager, type PluginType } from './PluginManager';
18
+ import type { PluginClass } from './PluginManager';
14
19
  import { PluginSettingOptions, PluginSettingsManager } from './PluginSettingsManager';
15
- import { ComponentTypeAndString, RouterManager, RouterOptions } from './RouterManager';
16
- import { WebSocketClient, WebSocketClientOptions } from './WebSocketClient';
20
+ import { RouterManager, type RouterOptions } from './RouterManager';
17
21
  import { SchemaInitializer, SchemaInitializerManager } from './schema-initializer';
18
22
  import { SchemaSettings, SchemaSettingsItemType, SchemaSettingsManager } from './schema-settings';
19
- import { CollectionFieldInterfaceComponentOption } from '../data-source/collection-field-interface/CollectionFieldInterface';
20
- import { DataSourceManager, type DataSourceManagerOptions } from '../data-source/data-source/DataSourceManager';
21
- import { FlowEngine, FlowEngineContext, FlowModel } from '@nocobase/flow-engine';
22
- import type { CollectionFieldInterfaceFactory } from '../data-source';
23
- import type { Plugin } from './Plugin';
24
- import type { RequireJS } from './utils/requirejs';
25
- import { AIManager } from '../ai';
26
23
  type JsonLogic = {
27
24
  addOperation: (name: string, fn?: any) => void;
28
25
  rmOperation: (name: string) => void;
29
26
  };
30
- declare global {
31
- interface Window {
32
- define: RequireJS['define'];
33
- }
34
- }
35
- export type DevDynamicImport = (packageName: string) => Promise<{
36
- default: typeof Plugin;
37
- }>;
38
- export type ComponentAndProps<T = any> = [ComponentType, T];
39
- export interface ApplicationOptions {
40
- name?: string;
41
- publicPath?: string;
42
- apiClient?: APIClientOptions | APIClient;
43
- ws?: WebSocketClientOptions | boolean;
44
- i18n?: i18next;
45
- providers?: (ComponentType | ComponentAndProps)[];
46
- plugins?: PluginType[];
47
- components?: Record<string, ComponentType>;
48
- scopes?: Record<string, any>;
49
- router?: RouterOptions;
50
- pluginSettings?: Record<string, PluginSettingOptions>;
51
- schemaSettings?: SchemaSettings[];
52
- schemaInitializers?: SchemaInitializer[];
53
- designable?: boolean;
54
- loadRemotePlugins?: boolean;
55
- devDynamicImport?: DevDynamicImport;
56
- dataSourceManager?: DataSourceManagerOptions;
57
- disableAcl?: boolean;
58
- }
59
27
  /**
60
28
  * Reference: https://ant.design/components/cascader-cn#option
61
29
  */
62
30
  interface VariableOption {
63
- /** Unique identifier of the variable */
64
31
  value: string | number;
65
- /** Variable name displayed in UI */
66
32
  label?: React.ReactNode;
67
33
  disabled?: boolean;
68
34
  children?: VariableOption[];
69
35
  }
70
36
  interface Variable {
71
- /** Unique identifier of the variable */
72
37
  name: string;
73
- /** Variable configuration options */
74
38
  useOption: () => {
75
39
  option: VariableOption;
76
40
  visible?: boolean;
77
41
  };
78
- /** Variable context */
79
42
  useCtx: () => any | ((param: {
80
43
  variableName: string;
81
44
  }) => Promise<any>);
82
45
  }
83
- export declare class Application {
84
- protected options: ApplicationOptions;
85
- eventBus: EventTarget;
86
- aiManager: AIManager;
87
- providers: ComponentAndProps[];
88
- router: RouterManager;
89
- scopes: Record<string, any>;
90
- i18n: i18next;
91
- ws: WebSocketClient;
92
- apiClient: APIClient;
93
- components: Record<string, ComponentType<any> | any>;
94
- pluginManager: PluginManager;
95
- pluginSettingsManager: PluginSettingsManager;
96
- devDynamicImport: DevDynamicImport;
97
- requirejs: RequireJS;
98
- notification: any;
46
+ export type { ComponentAndProps };
47
+ export type DevDynamicImport = (packageName: string) => Promise<{
48
+ default: PluginClass;
49
+ }>;
50
+ export interface ApplicationOptions extends BaseApplicationOptions<PluginType> {
51
+ apiClient?: APIClientOptions | APIClient;
52
+ ws?: WebSocketClientOptions | boolean;
53
+ i18n?: i18next;
54
+ providers?: (ComponentType | ComponentAndProps)[];
55
+ plugins?: PluginType[];
56
+ components?: Record<string, ComponentType>;
57
+ scopes?: Record<string, any>;
58
+ router?: RouterOptions;
59
+ pluginSettings?: Record<string, PluginSettingOptions>;
60
+ schemaSettings?: SchemaSettings[];
61
+ schemaInitializers?: SchemaInitializer[];
62
+ dataSourceManager?: DataSourceManagerOptions;
63
+ }
64
+ export declare class Application extends BaseApplication<ApplicationOptions, PluginManager, RouterManager, APIClient, PluginSettingsManager> {
65
+ devDynamicImport?: DevDynamicImport;
99
66
  schemaInitializerManager: SchemaInitializerManager;
100
67
  schemaSettingsManager: SchemaSettingsManager;
101
68
  dataSourceManager: DataSourceManager;
102
- name: string;
103
- favicon: string;
104
69
  globalVars: Record<string, any>;
105
70
  globalVarCtxs: Record<string, any>;
106
71
  jsonLogic: JsonLogic;
107
- flowEngine: FlowEngine;
108
- model: ApplicationModel;
109
- context: FlowEngineContext & {
110
- pluginSettingsRouter: PluginSettingsManager;
111
- pluginManager: PluginManager;
112
- };
113
72
  loading: boolean;
114
- maintained: boolean;
115
- maintaining: boolean;
116
- error: any;
117
73
  hasLoadError: boolean;
118
74
  locales: any;
119
- private wsAuthorized;
120
75
  private readonly variables;
121
- apps: {
122
- Component?: ComponentType;
76
+ protected initRequireJs(): void;
77
+ protected defineObservableState(): void;
78
+ protected createApiClient(options: ApplicationOptions): APIClient;
79
+ protected createI18n(options: ApplicationOptions): i18next;
80
+ protected createRouterManager(options: ApplicationOptions): RouterManager;
81
+ protected createPluginManager(options: ApplicationOptions): PluginManager;
82
+ protected createPluginSettingsManager(options: ApplicationOptions): PluginSettingsManager;
83
+ protected getDefaultComponents(): {
84
+ DataBlockProvider: import("react").FC<Partial<import("../data-source").AllDataBlockProps>>;
85
+ SchemaInitializerActionModal: import("react").FC<import("./schema-initializer").SchemaInitializerActionModalProps>;
86
+ SchemaInitializerActionModalInternal: () => import("react").JSX.Element;
87
+ SchemaInitializerChildren: import("react").FC<{
88
+ children: import("./schema-initializer").SchemaInitializerItemType[];
89
+ }>;
90
+ SchemaInitializerChild: import("react").FC<import("./schema-initializer").SchemaInitializerItemType>;
91
+ SchemaInitializerDivider: () => import("react").JSX.Element;
92
+ SchemaInitializerItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./schema-initializer").SchemaInitializerItemProps & import("react").RefAttributes<any>>>;
93
+ SchemaInitializerItemGroup: import("react").FC<import("./schema-initializer").SchemaInitializerItemGroupProps>;
94
+ SchemaInitializerItemGroupInternal: () => import("react").JSX.Element;
95
+ SchemaInitializerItemInternal: () => import("react").JSX.Element;
96
+ SchemaInitializerItems: import("react").FC<{
97
+ options?: import("./schema-initializer").SchemaInitializerOptions<import("antd").ButtonProps, {}>;
98
+ items?: import("./schema-initializer").SchemaInitializerItemType<any>[];
99
+ }>;
100
+ SchemaInitializerSelect: import("react").FC<import("./schema-initializer").SchemaInitializerSelectItemProps>;
101
+ SchemaInitializerSelectInternal: () => import("react").JSX.Element;
102
+ SchemaInitializerSubMenu: import("react").FC<import("./schema-initializer").SchemaInitializerSubMenuProps>;
103
+ SchemaInitializerSubMenuInternal: () => import("react").JSX.Element;
104
+ SchemaInitializerSwitch: import("react").FC<import("./schema-initializer").SchemaInitializerSwitchItemProps>;
105
+ SchemaInitializerSwitchInternal: () => import("react").JSX.Element;
106
+ CollectionField: import("react").ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & import("react").RefAttributes<unknown>>;
123
107
  };
124
- get pm(): PluginManager;
125
- get disableAcl(): boolean;
126
- get isWsAuthorized(): boolean;
127
- updateFavicon(favicon?: string): void;
128
- setWsAuthorized(authorized: boolean): void;
129
- constructor(options?: ApplicationOptions);
130
- private initListeners;
131
- protected setTokenInWebSocket(options: {
132
- token: string;
133
- authenticator: string;
134
- }): void;
135
- setMaintaining(maintaining: boolean): void;
136
- private initRequireJs;
137
- private addDefaultProviders;
138
- private addReactRouterComponents;
139
- private addRoutes;
140
- getOptions(): ApplicationOptions;
141
- getName(): string;
142
- getPublicPath(): string;
143
- getApiUrl(pathname?: string): string;
144
- getRouteUrl(pathname: string): string;
145
- getHref(pathname: string): string;
108
+ protected initializeExtendedState(): void;
109
+ protected afterManagersInitialized(): void;
110
+ protected addCustomProviders(): void;
111
+ protected getRootFallback(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
146
112
  getCollectionManager(dataSource?: string): import("../data-source").CollectionManager;
147
- /**
148
- * @internal
149
- */
150
- getComposeProviders(): React.FC;
151
- use<T = any>(component: ComponentType, props?: T): number;
152
- addProvider<T = any>(component: ComponentType, props?: T): number;
153
- addProviders(providers: (ComponentType | [ComponentType, any])[]): void;
154
113
  load(): Promise<void>;
155
114
  loadWebSocket(): Promise<void>;
156
- getComponent<T = any>(Component: ComponentTypeAndString<T>, isShowError?: boolean): ComponentType<T> | undefined;
157
- renderComponent<T extends {}>(Component: ComponentTypeAndString, props?: T, children?: ReactNode): ReactElement;
158
- /**
159
- * @internal use addComponents({ SomeComponent }) instead
160
- */
161
- protected addComponent(component: ComponentType, name?: string): void;
162
- addComponents(components: Record<string, ComponentType>): void;
163
115
  addScopes(scopes: Record<string, any>): void;
164
- getRootComponent(): React.FC<{
165
- children?: React.ReactNode;
166
- }>;
167
- mount(containerOrSelector: Element | ShadowRoot | string): import("react-dom/client").Root;
168
116
  addFieldInterfaces(fieldInterfaceClasses?: CollectionFieldInterfaceFactory[]): void;
117
+ addFieldInterfaceGroups(groups: Record<string, {
118
+ label: string;
119
+ order?: number;
120
+ }>): void;
169
121
  addFieldInterfaceComponentOption(fieldName: string, componentOption: CollectionFieldInterfaceComponentOption): void;
170
122
  /**
171
123
  * 为指定的字段接口添加操作符选项
172
124
  *
173
125
  * @param name 字段接口的名称
174
126
  * @param operatorOption 要添加的操作符选项
175
- *
176
- * @example
177
- * // 为"单行文本"类型字段添加"等于任意一个"操作符
178
- * app.addFieldInterfaceOperator('input', {
179
- * label: '{{t("equals any of")}}',
180
- * value: '$in',
181
- * });
182
127
  */
183
128
  addFieldInterfaceOperator(name: string, operatorOption: any): void;
184
129
  addGlobalVar(key: string, value: any, varCtx?: any): void;
185
- getGlobalVar(key: any): any;
186
- getGlobalVarCtx(key: any): any;
130
+ getGlobalVar(key: string): any;
131
+ getGlobalVarCtx(key: string): any;
187
132
  addUserCenterSettingsItem(item: SchemaSettingsItemType & {
188
133
  aclSnippet?: string;
189
134
  }): void;
190
- /**
191
- * Register a variable for use in the frontend
192
- *
193
- * Note: It is not recommended to register variables in components as it may cause rendering errors
194
- * @param variable
195
- * @returns
196
- */
197
135
  registerVariable(variable: Variable): void;
198
- /**
199
- * Get all registered variables
200
- * @returns
201
- */
202
136
  getVariables(): Variable[];
203
137
  setAppsComponent({ Component }: {
204
138
  Component: ComponentType;
205
139
  }): void;
206
140
  }
207
- declare class ApplicationModel extends FlowModel {
208
- render(): React.JSX.Element;
209
- }
210
- export {};
@@ -6,29 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { TFuncKey, TOptions } from 'i18next';
10
9
  import type { Application } from './Application';
11
- export declare class Plugin<T = any> {
12
- options: T;
13
- protected app: Application;
14
- constructor(options: T, app: Application);
15
- get pluginManager(): import("./PluginManager").PluginManager;
16
- get context(): import("@nocobase/flow-engine").FlowEngineContext & {
17
- pluginSettingsRouter: import("./PluginSettingsManager").PluginSettingsManager;
18
- pluginManager: import("./PluginManager").PluginManager;
19
- };
20
- get flowEngine(): import("@nocobase/flow-engine").FlowEngine;
21
- get engine(): import("@nocobase/flow-engine").FlowEngine;
22
- get ai(): import("..").AIManager;
23
- get pm(): import("./PluginManager").PluginManager;
24
- get router(): import("./RouterManager").RouterManager;
25
- get pluginSettingsManager(): import("./PluginSettingsManager").PluginSettingsManager;
26
- get pluginSettingsRouter(): import("./PluginSettingsManager").PluginSettingsManager;
27
- get schemaInitializerManager(): import("./schema-initializer").SchemaInitializerManager;
28
- get schemaSettingsManager(): import("./schema-settings").SchemaSettingsManager;
29
- get dataSourceManager(): import("..").DataSourceManager;
30
- afterAdd(): Promise<void>;
31
- beforeLoad(): Promise<void>;
32
- load(): Promise<void>;
33
- t(text: TFuncKey | TFuncKey[], options?: TOptions): import("i18next").TFunctionDetailedResult<object>;
10
+ import { Plugin as BasePlugin, PluginOptions } from '@nocobase/client-v2';
11
+ export declare class Plugin<T extends PluginOptions = PluginOptions> extends BasePlugin<T, Application> {
34
12
  }
@@ -6,41 +6,12 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
+ import { PluginManager as BasePluginManager, type PluginClass as BasePluginClass, type PluginType as BasePluginType } from '@nocobase/client-v2';
9
10
  import type { Application } from './Application';
10
- import type { Plugin } from './Plugin';
11
- export type PluginOptions<T = any> = {
12
- name?: string;
13
- packageName?: string;
14
- config?: T;
15
- };
16
- export type PluginType<Opts = any> = typeof Plugin | [typeof Plugin<Opts>, PluginOptions<Opts>];
17
- export type PluginData = {
18
- name: string;
19
- packageName: string;
20
- version: string;
21
- url: string;
22
- type: 'local' | 'upload' | 'npm';
23
- };
24
- export declare class PluginManager {
25
- protected _plugins: PluginType[];
26
- protected loadRemotePlugins: boolean;
27
- protected app: Application;
28
- protected pluginInstances: Map<typeof Plugin, Plugin>;
29
- protected pluginsAliases: Record<string, Plugin>;
30
- private initPlugins;
31
- constructor(_plugins: PluginType[], loadRemotePlugins: boolean, app: Application);
32
- /**
33
- * @internal
34
- */
35
- init(_plugins: PluginType[]): Promise<void>;
36
- private initStaticPlugins;
37
- private initRemotePlugins;
38
- add<T = any>(plugin: typeof Plugin, opts?: PluginOptions<T>): Promise<void>;
39
- get<T extends typeof Plugin>(PluginClass: T): InstanceType<T>;
40
- get<T extends {}>(name: string): T;
41
- private getInstance;
42
- /**
43
- * @internal
44
- */
45
- load(): Promise<void>;
11
+ export type { PluginData, PluginOptions } from '@nocobase/client-v2';
12
+ export type PluginClass<Opts = any> = BasePluginClass<Opts, Application>;
13
+ export type PluginType<Opts = any> = BasePluginType<Opts, Application>;
14
+ export declare class PluginManager extends BasePluginManager<Application> {
15
+ protected getRemotePluginsRequestUrl(): string;
16
+ protected initRemotePlugins(): Promise<void>;
46
17
  }
@@ -6,7 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import React from 'react';
9
+ import { type ReactNode } from 'react';
10
10
  import type { Application } from './Application';
11
11
  import type { RouteType } from './RouterManager';
12
12
  export declare const ADMIN_SETTINGS_KEY = "admin.settings.";
@@ -18,7 +18,8 @@ export interface PluginSettingOptions {
18
18
  * @default Outlet
19
19
  */
20
20
  Component?: RouteType['Component'];
21
- icon?: string;
21
+ componentLoader?: RouteType['componentLoader'];
22
+ icon?: string | ReactNode;
22
23
  /**
23
24
  * sort, the smaller the number, the higher the priority
24
25
  * @default 0
@@ -31,11 +32,11 @@ export interface PluginSettingOptions {
31
32
  [index: string]: any;
32
33
  }
33
34
  export interface PluginSettingsPageType {
34
- label?: string | React.ReactElement;
35
- title: string | React.ReactElement;
35
+ label?: string | ReactNode;
36
+ title: string | ReactNode;
36
37
  link?: string;
37
38
  key: string;
38
- icon: any;
39
+ icon: ReactNode;
39
40
  path: string;
40
41
  sort?: number;
41
42
  name?: string;
@@ -45,23 +46,118 @@ export interface PluginSettingsPageType {
45
46
  children?: PluginSettingsPageType[];
46
47
  [index: string]: any;
47
48
  }
49
+ /**
50
+ * client-v1 兼容版插件设置管理器。
51
+ *
52
+ * 继续保留旧的 dotted-key 注册协议,与 client-v2 的新两层实现完全脱钩。
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * app.pluginSettingsManager.add('system.test', { title: 'Test', Component: DemoPage });
57
+ * ```
58
+ */
48
59
  export declare class PluginSettingsManager {
49
60
  protected settings: Record<string, PluginSettingOptions>;
50
61
  protected aclSnippets: string[];
51
62
  app: Application;
52
63
  private cachedList;
53
- constructor(_pluginSettings: Record<string, PluginSettingOptions>, app: Application);
64
+ constructor(_pluginSettings: Record<string, PluginSettingOptions> | undefined, app: Application);
65
+ /**
66
+ * 渲染图标字符串为 Icon 组件。
67
+ *
68
+ * @param {PluginSettingOptions['icon']} icon 图标定义
69
+ * @returns {ReactNode} 图标节点
70
+ */
71
+ protected renderIcon(icon: PluginSettingOptions['icon']): ReactNode;
72
+ /**
73
+ * 清理缓存。
74
+ *
75
+ * @returns {void}
76
+ */
54
77
  clearCache(): void;
78
+ /**
79
+ * 设置 ACL snippets。
80
+ *
81
+ * @param {string[]} aclSnippets snippets 列表
82
+ * @returns {void}
83
+ */
55
84
  setAclSnippets(aclSnippets: string[]): void;
85
+ /**
86
+ * 获取 ACL snippet。
87
+ *
88
+ * @param {string} name settings 名称
89
+ * @returns {string | null} snippet
90
+ */
56
91
  getAclSnippet(name: string): string;
92
+ /**
93
+ * 获取 route name。
94
+ *
95
+ * @param {string} name settings 名称
96
+ * @returns {string} route name
97
+ */
57
98
  getRouteName(name: string): string;
99
+ /**
100
+ * 获取 route path。
101
+ *
102
+ * @param {string} name settings 名称
103
+ * @returns {string} route path
104
+ */
58
105
  getRoutePath(name: string): string;
106
+ /**
107
+ * 追加 settings 配置。
108
+ *
109
+ * @param {string} name dotted settings key
110
+ * @param {PluginSettingOptions} options 配置项
111
+ * @returns {void}
112
+ */
59
113
  add(name: string, options: PluginSettingOptions): void;
114
+ /**
115
+ * 删除 settings 配置。
116
+ *
117
+ * @param {string} name settings 名称
118
+ * @returns {void}
119
+ */
60
120
  remove(name: string): void;
121
+ /**
122
+ * 判断 ACL 是否允许。
123
+ *
124
+ * @param {string} name settings 名称
125
+ * @returns {boolean} 是否允许
126
+ */
61
127
  hasAuth(name: string): boolean;
128
+ /**
129
+ * 获取内部原始设置。
130
+ *
131
+ * @param {string} name settings 名称
132
+ * @returns {PluginSettingOptions | undefined} 原始设置
133
+ */
62
134
  getSetting(name: string): PluginSettingOptions;
135
+ /**
136
+ * 判断配置是否存在且可访问。
137
+ *
138
+ * @param {string} name settings 名称
139
+ * @returns {boolean} 是否存在
140
+ */
63
141
  has(name: string): boolean;
64
- get(name: string, filterAuth?: boolean): PluginSettingsPageType;
142
+ /**
143
+ * 获取 settings 快照。
144
+ *
145
+ * @param {string} name settings 名称
146
+ * @param {boolean} [filterAuth=true] 是否过滤 ACL
147
+ * @returns {PluginSettingsPageType | null} settings 快照
148
+ */
149
+ get(name: string, filterAuth?: boolean): PluginSettingsPageType | null;
150
+ /**
151
+ * 获取顶级 settings 列表。
152
+ *
153
+ * @param {boolean} [filterAuth=true] 是否过滤 ACL
154
+ * @returns {PluginSettingsPageType[]} 顶级列表
155
+ */
65
156
  getList(filterAuth?: boolean): PluginSettingsPageType[];
157
+ /**
158
+ * 获取所有 ACL snippets。
159
+ *
160
+ * @returns {(string | null)[]} snippet 列表
161
+ */
66
162
  getAclSnippets(): string[];
67
163
  }
@@ -6,18 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- type RouteOptions = {
10
- id: string;
11
- schemaUid: string;
12
- children?: RouteOptions[];
13
- };
14
- export declare class RouteRepository {
15
- protected ctx: any;
16
- routes: Array<RouteOptions>;
17
- constructor(ctx: any);
18
- setRoutes(routes: Array<any>): void;
19
- listAccessible(): RouteOptions[];
20
- getRouteBySchemaUid(schemaUid: string): RouteOptions | undefined;
21
- private findRoute;
22
- }
23
- export {};
9
+ export { RouteRepository } from '@nocobase/client-v2';
@@ -6,56 +6,16 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import React, { ComponentType } from 'react';
10
- import { BrowserRouterProps, HashRouterProps, MemoryRouterProps, RouteObject } from 'react-router-dom';
9
+ import { RouterManager as BaseRouterManager, type RouterOptions } from '@nocobase/client-v2';
10
+ import React, { type ComponentType } from 'react';
11
11
  import { Application } from './Application';
12
- export interface BrowserRouterOptions extends Omit<BrowserRouterProps, 'children'> {
13
- type?: 'browser';
14
- }
15
- export interface HashRouterOptions extends Omit<HashRouterProps, 'children'> {
16
- type?: 'hash';
17
- }
18
- export interface MemoryRouterOptions extends Omit<MemoryRouterProps, 'children'> {
19
- type?: 'memory';
20
- }
21
- export type RouterOptions = (HashRouterOptions | BrowserRouterOptions | MemoryRouterOptions) & {
22
- renderComponent?: RenderComponentType;
23
- routes?: Record<string, RouteType>;
24
- };
25
- export type ComponentTypeAndString<T = any> = ComponentType<T> | string;
26
- export interface RouteType extends Omit<RouteObject, 'children' | 'Component'> {
27
- Component?: ComponentTypeAndString;
28
- skipAuthCheck?: boolean;
29
- }
30
- export type RenderComponentType = (Component: ComponentTypeAndString, props?: any) => React.ReactNode;
31
- export declare class RouterManager {
32
- protected routes: Record<string, RouteType>;
33
- protected options: RouterOptions;
34
- app: Application;
35
- router: any;
36
- get basename(): any;
37
- get state(): any;
38
- get navigate(): any;
39
- constructor(options: RouterOptions, app: Application);
40
- /**
41
- * @internal
42
- */
43
- getRoutesTree(): RouteObject[];
44
- getRoutes(): Record<string, RouteType>;
45
- setType(type: RouterOptions['type']): void;
46
- getBasename(): string;
47
- setBasename(basename: string): void;
48
- matchRoutes(pathname: string): import("@remix-run/router").AgnosticRouteMatch<string, RouteType>[];
49
- isSkippedAuthCheckRoute(pathname: string): boolean;
12
+ export type { BrowserRouterOptions, HashRouterOptions, MemoryRouterOptions, RouterOptions, ComponentTypeAndString, ComponentLoaderResult, ComponentLoader, RouteType, RenderComponentType, } from '@nocobase/client-v2';
13
+ export declare class RouterManager extends BaseRouterManager<Application> {
50
14
  /**
51
15
  * @internal
52
16
  */
53
17
  getRouterComponent(children?: React.ReactNode): React.FC<{
54
18
  BaseLayout?: ComponentType;
55
19
  }>;
56
- add(name: string, route: RouteType): void;
57
- get(name: string): RouteType;
58
- has(name: string): boolean;
59
- remove(name: string): void;
60
20
  }
61
21
  export declare function createRouterManager(options?: RouterOptions, app?: Application): RouterManager;
@@ -6,39 +6,5 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { Application } from './Application';
10
- export type WebSocketClientOptions = {
11
- reconnectInterval?: number;
12
- reconnectAttempts?: number;
13
- pingInterval?: number;
14
- url?: string;
15
- basename?: string;
16
- protocols?: string | string[];
17
- onServerDown?: any;
18
- };
19
- export declare class WebSocketClient {
20
- protected _ws: WebSocket;
21
- protected _reconnectTimes: number;
22
- protected events: any[];
23
- protected options: WebSocketClientOptions;
24
- app: Application;
25
- enabled: boolean;
26
- connected: boolean;
27
- serverDown: boolean;
28
- lastMessage: {};
29
- constructor(options: WebSocketClientOptions | boolean);
30
- getSubAppName: (app: Application) => string;
31
- getURL(): string;
32
- get reconnectAttempts(): number;
33
- get reconnectInterval(): number;
34
- get pingInterval(): number;
35
- get readyState(): number;
36
- connect(): void;
37
- reconnect(): void;
38
- close(): void;
39
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
40
- on(type: string, listener: any, options?: boolean | AddEventListenerOptions): void;
41
- emit(type: string, args: any): void;
42
- off(type: string, listener: any, options?: boolean | EventListenerOptions): void;
43
- removeAllListeners(): void;
44
- }
9
+ export { WebSocketClient } from '@nocobase/client-v2';
10
+ export type { WebSocketClientOptions } from '@nocobase/client-v2';
@@ -6,7 +6,5 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- export * from './AppComponent';
10
9
  export * from './BlankComponent';
11
- export * from './defaultComponents';
12
10
  export * from './RouterContextCleaner';