@tachybase/module-workflow 1.5.1 → 1.6.0

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 (40) hide show
  1. package/dist/client/WorkflowCategoriesProvider.d.ts +4 -0
  2. package/dist/client/components/WorkflowCategoryColumn.d.ts +8 -0
  3. package/dist/client/components/index.d.ts +2 -0
  4. package/dist/client/hooks/index.d.ts +2 -0
  5. package/dist/client/hooks/useDumpAction.d.ts +7 -0
  6. package/dist/client/hooks/useRevisionAction.d.ts +7 -0
  7. package/dist/client/index.d.ts +2 -0
  8. package/dist/client/index.js +56 -56
  9. package/dist/client/schemas/workflows.d.ts +5 -0
  10. package/dist/client/utils.d.ts +2 -2
  11. package/dist/externalVersion.js +4 -4
  12. package/dist/locale/en-US.json +2 -0
  13. package/dist/locale/es-ES.json +2 -0
  14. package/dist/locale/fr-FR.json +2 -0
  15. package/dist/locale/ja-JP.json +2 -0
  16. package/dist/locale/ko_KR.json +2 -0
  17. package/dist/locale/pt-BR.json +2 -0
  18. package/dist/locale/ru-RU.json +2 -0
  19. package/dist/locale/tr-TR.json +2 -0
  20. package/dist/locale/zh-CN.json +2 -0
  21. package/dist/node_modules/@babel/core/package.json +1 -1
  22. package/dist/node_modules/@babel/preset-env/package.json +1 -1
  23. package/dist/node_modules/@babel/preset-react/package.json +1 -1
  24. package/dist/node_modules/@babel/preset-typescript/package.json +1 -1
  25. package/dist/node_modules/cron-parser/package.json +1 -1
  26. package/dist/node_modules/form-data/package.json +1 -1
  27. package/dist/node_modules/jsonata/package.json +1 -1
  28. package/dist/node_modules/lru-cache/package.json +1 -1
  29. package/dist/node_modules/mime-types/package.json +1 -1
  30. package/dist/node_modules/qrcode/package.json +1 -1
  31. package/dist/server/actions/executions.d.ts +1 -1
  32. package/dist/server/actions/executions.js +15 -3
  33. package/dist/server/actions/workflows.d.ts +11 -2
  34. package/dist/server/actions/workflows.helpers.d.ts +55 -0
  35. package/dist/server/actions/workflows.helpers.js +167 -0
  36. package/dist/server/actions/workflows.js +56 -7
  37. package/dist/server/utils.d.ts +16 -0
  38. package/dist/server/utils.js +33 -2
  39. package/package.json +7 -7
  40. package/dist/client/provider/EventSourceProvider.d.ts +0 -7
@@ -1,10 +1,14 @@
1
1
  export declare const WorkflowCategoryContext: import("react").Context<{
2
+ data: any[];
2
3
  refresh: () => void;
3
4
  activeKey: string;
4
5
  setActiveKey: (key: string) => void;
6
+ categoriesLoaded?: boolean;
5
7
  }>;
6
8
  export declare const useWorkflowCategory: () => {
9
+ data: any[];
7
10
  refresh: () => void;
8
11
  activeKey: string;
9
12
  setActiveKey: (key: string) => void;
13
+ categoriesLoaded?: boolean;
10
14
  };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ /**
3
+ * 工作流分类列组件
4
+ * - 直接展示后端返回的分类数据,不触发额外的 API 请求
5
+ * - 数据由 listExtended action 提供,格式:{ id, name, color? }[]
6
+ * - 与 data-source 模块的 CollectionCategory 组件设计类似
7
+ */
8
+ export declare const WorkflowCategoryColumn: React.MemoExoticComponent<import("@tachybase/schema").ReactFC<Omit<any, "ref">>>;
@@ -14,3 +14,5 @@ export * from './AddNotifiedPerson';
14
14
  export * from './ConfigButtonMessage';
15
15
  export * from './ExecutionLink';
16
16
  export * from './ExecutionRetryAction';
17
+ export * from './ColumnExecutedTime';
18
+ export * from './WorkflowCategoryColumn';
@@ -1,3 +1,5 @@
1
1
  export * from './useGetAriaLabelOfAddButton';
2
+ export * from './useDumpAction';
3
+ export * from './useRevisionAction';
2
4
  export * from './useTriggerWorkflowActionProps';
3
5
  export * from './useWorkflowExecuted';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 工作流导出的 useAction hook
3
+ * 将工作流数据导出为 JSON 文件
4
+ */
5
+ export declare function useDumpAction(): {
6
+ run(): Promise<void>;
7
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 工作流复制的 useAction hook
3
+ * 支持设置分类字段的默认值,并在提交时转换为 ID 数组格式
4
+ */
5
+ export declare function useRevisionAction(): {
6
+ run(): Promise<void>;
7
+ };
@@ -17,3 +17,5 @@ export * from './nodes/default-node';
17
17
  export * from './nodes/default-node/components/NodeDefaultView';
18
18
  export * from './nodes/default-node/interface';
19
19
  export { TabTableBlockProvider, WorkflowTabCardItem } from './schemas/workflows';
20
+ export * from './WorkflowPage';
21
+ export * from './ExecutionPage';