@nocobase/plugin-workflow 2.0.0-beta.21 → 2.0.0-beta.22

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.
@@ -0,0 +1,13 @@
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 { DetailsGridModel } from '@nocobase/client';
10
+ import React from 'react';
11
+ export declare class NodeDetailsGridModel extends DetailsGridModel {
12
+ renderAddSubModelButton(): React.JSX.Element;
13
+ }
@@ -114,5 +114,11 @@ export default class extends Instruction {
114
114
  getCreateModelMenuItem({ node }: {
115
115
  node: any;
116
116
  }): SubModelItem;
117
+ useTempAssociationSource(node: any): {
118
+ collection: any;
119
+ nodeId: any;
120
+ nodeKey: any;
121
+ nodeType: "node";
122
+ };
117
123
  }
118
124
  export {};
@@ -74,7 +74,17 @@ export declare abstract class Instruction {
74
74
  node: any;
75
75
  workflow: any;
76
76
  }): SubModelItem | null;
77
+ /**
78
+ * @experimental
79
+ */
80
+ useTempAssociationSource?(node: any): TempAssociationSource | null;
77
81
  }
82
+ export type TempAssociationSource = {
83
+ collection: string;
84
+ nodeId: string | number;
85
+ nodeKey: string;
86
+ nodeType: 'workflow' | 'node';
87
+ };
78
88
  export declare function updateNodeConfig({ api, nodeId, config, resourceName }: {
79
89
  api: any;
80
90
  nodeId: any;
@@ -239,5 +239,11 @@ export default class extends Instruction {
239
239
  getCreateModelMenuItem({ node }: {
240
240
  node: any;
241
241
  }): SubModelItem;
242
+ useTempAssociationSource(node: any): {
243
+ collection: any;
244
+ nodeId: any;
245
+ nodeKey: any;
246
+ nodeType: "node";
247
+ };
242
248
  }
243
249
  export {};
@@ -112,4 +112,5 @@ export default class extends Instruction {
112
112
  AssignedFieldsFormSchemaConfig: typeof AssignedFieldsFormSchemaConfig;
113
113
  RadioWithTooltip: typeof RadioWithTooltip;
114
114
  };
115
+ useTempAssociationSource(node: any): any;
115
116
  }
@@ -11,6 +11,7 @@ import { SchemaInitializerItemType, useCollectionDataSource } from '@nocobase/cl
11
11
  import { useWorkflowAnyExecuted } from '../hooks';
12
12
  import { Trigger } from '.';
13
13
  import { TriggerCollectionRecordSelect } from '../components/TriggerCollectionRecordSelect';
14
+ import { SubModelItem } from '@nocobase/flow-engine';
14
15
  declare function useVariables(config: any, options: any): import("../variable").VariableOption[];
15
16
  export default class extends Trigger {
16
17
  title: string;
@@ -134,5 +135,17 @@ export default class extends Trigger {
134
135
  validate(values: any): any;
135
136
  useVariables: typeof useVariables;
136
137
  useInitializers(config: any): SchemaInitializerItemType | null;
138
+ /**
139
+ * 2.0
140
+ */
141
+ getCreateModelMenuItem({ config }: {
142
+ config: any;
143
+ }): SubModelItem;
144
+ useTempAssociationSource(config: any, workflow: any): {
145
+ collection: any;
146
+ nodeId: any;
147
+ nodeKey: string;
148
+ nodeType: "workflow";
149
+ };
137
150
  }
138
151
  export {};
@@ -28,7 +28,17 @@ export declare abstract class Trigger {
28
28
  useInitializers?(config: any): SchemaInitializerItemType | null;
29
29
  initializers?: any;
30
30
  isActionTriggerable_deprecated?: boolean | ((config: object, context?: object) => boolean);
31
+ /**
32
+ * @experimental
33
+ */
34
+ useTempAssociationSource?(config: any, workflow: any): TriggerTempAssociationSource | null;
31
35
  }
36
+ export type TriggerTempAssociationSource = {
37
+ collection: string;
38
+ nodeId: string | number;
39
+ nodeKey: string;
40
+ nodeType: 'workflow';
41
+ };
32
42
  export declare const TriggerConfig: () => React.JSX.Element;
33
43
  /**
34
44
  * @experimental
@@ -12,6 +12,7 @@ import { Trigger } from '..';
12
12
  import { TriggerScheduleConfig } from './TriggerScheduleConfig';
13
13
  import { WorkflowVariableWrapper } from '../../variable';
14
14
  import { TriggerCollectionRecordSelect } from '../../components/TriggerCollectionRecordSelect';
15
+ import { SubModelItem } from '@nocobase/flow-engine';
15
16
  declare function useVariables(config: any, opts: any): any[];
16
17
  export default class extends Trigger {
17
18
  sync: boolean;
@@ -42,5 +43,17 @@ export default class extends Trigger {
42
43
  };
43
44
  useVariables: typeof useVariables;
44
45
  useInitializers(config: any): SchemaInitializerItemType | null;
46
+ /**
47
+ * 2.0
48
+ */
49
+ getCreateModelMenuItem({ config }: {
50
+ config: any;
51
+ }): SubModelItem | null;
52
+ useTempAssociationSource(config: any, workflow: any): {
53
+ collection: any;
54
+ nodeId: any;
55
+ nodeKey: string;
56
+ nodeType: "workflow";
57
+ };
45
58
  }
46
59
  export {};
@@ -11,8 +11,8 @@ module.exports = {
11
11
  "react": "18.2.0",
12
12
  "@formily/core": "2.3.7",
13
13
  "@formily/react": "2.3.7",
14
- "@nocobase/client": "2.0.0-beta.21",
15
- "@nocobase/utils": "2.0.0-beta.21",
14
+ "@nocobase/client": "2.0.0-beta.22",
15
+ "@nocobase/utils": "2.0.0-beta.22",
16
16
  "antd": "5.24.2",
17
17
  "@ant-design/icons": "5.6.1",
18
18
  "react-router-dom": "6.30.1",
@@ -20,18 +20,18 @@ module.exports = {
20
20
  "lodash": "4.17.21",
21
21
  "@dnd-kit/core": "6.1.0",
22
22
  "@formily/shared": "2.3.7",
23
- "@nocobase/flow-engine": "2.0.0-beta.21",
24
- "@nocobase/plugin-mobile": "2.0.0-beta.21",
23
+ "@nocobase/flow-engine": "2.0.0-beta.22",
24
+ "@nocobase/plugin-mobile": "2.0.0-beta.22",
25
25
  "sequelize": "6.35.2",
26
- "@nocobase/server": "2.0.0-beta.21",
27
- "@nocobase/database": "2.0.0-beta.21",
28
- "@nocobase/data-source-manager": "2.0.0-beta.21",
29
- "@nocobase/logger": "2.0.0-beta.21",
30
- "@nocobase/evaluators": "2.0.0-beta.21",
26
+ "@nocobase/server": "2.0.0-beta.22",
27
+ "@nocobase/database": "2.0.0-beta.22",
28
+ "@nocobase/data-source-manager": "2.0.0-beta.22",
29
+ "@nocobase/logger": "2.0.0-beta.22",
30
+ "@nocobase/evaluators": "2.0.0-beta.22",
31
31
  "@formily/antd-v5": "1.2.3",
32
32
  "@formily/reactive": "2.3.7",
33
- "@nocobase/actions": "2.0.0-beta.21",
33
+ "@nocobase/actions": "2.0.0-beta.22",
34
34
  "dayjs": "1.11.13",
35
- "@nocobase/plugin-workflow-test": "2.0.0-beta.21",
36
- "@nocobase/test": "2.0.0-beta.21"
35
+ "@nocobase/plugin-workflow-test": "2.0.0-beta.22",
36
+ "@nocobase/test": "2.0.0-beta.22"
37
37
  };
@@ -1 +1 @@
1
- {"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-02-07T03:54:55.499Z"}
1
+ {"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-02-09T23:47:11.502Z"}
@@ -1 +1 @@
1
- {"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2026-02-07T03:54:55.152Z"}
1
+ {"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2026-02-09T23:47:11.133Z"}
@@ -1 +1 @@
1
- {"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-02-07T03:54:54.947Z"}
1
+ {"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-02-09T23:47:10.935Z"}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.",
7
7
  "description.zh-CN": "一个强大的 BPM 工具,为业务自动化提供基础支持,并且可任意扩展更多的触发器和节点。",
8
8
  "description.ru-RU": "Мощный инструмент BPM, обеспечивающий базовую поддержку автоматизации бизнес-процессов с возможностью неограниченного расширения триггеров и узлов.",
9
- "version": "2.0.0-beta.21",
9
+ "version": "2.0.0-beta.22",
10
10
  "license": "AGPL-3.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/workflow",
@@ -48,7 +48,7 @@
48
48
  "@nocobase/test": "2.x",
49
49
  "@nocobase/utils": "2.x"
50
50
  },
51
- "gitHead": "3ea30685d9592934ec578c0b5e8def60a7fcc3c2",
51
+ "gitHead": "a49874a59e48eda08c1a1570466e8baff00b8a24",
52
52
  "keywords": [
53
53
  "Workflow"
54
54
  ]