@nocobase/plugin-workflow-cc 2.4.0-alpha.13 → 2.4.0-alpha.15

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.
package/README.md CHANGED
@@ -24,7 +24,7 @@ Online Demo:
24
24
  https://demo.nocobase.com/new
25
25
 
26
26
  Documents:
27
- https://docs.nocobase.com/
27
+ https://nocode.docs.nocobase.com/
28
28
 
29
29
  Forum:
30
30
  https://forum.nocobase.com/
@@ -80,15 +80,15 @@ Adding more no-code features will never cover every business case. NocoBase is b
80
80
 
81
81
  NocoBase supports three installation methods:
82
82
 
83
- - <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/docker-compose">Installing With Docker (👍Recommended)</a>
83
+ - <a target="_blank" href="https://nocode.docs.nocobase.com/welcome/getting-started/installation/docker-compose">Installing With Docker (👍Recommended)</a>
84
84
 
85
85
  Suitable for no-code scenarios, no code to write. When upgrading, just download the latest image and reboot.
86
86
 
87
- - <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/create-nocobase-app">Installing from create-nocobase-app CLI</a>
87
+ - <a target="_blank" href="https://nocode.docs.nocobase.com/welcome/getting-started/installation/create-nocobase-app">Installing from create-nocobase-app CLI</a>
88
88
 
89
89
  The business code of the project is completely independent and supports low-code development.
90
90
 
91
- - <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/git-clone">Installing from Git source code</a>
91
+ - <a target="_blank" href="https://nocode.docs.nocobase.com/welcome/getting-started/installation/git-clone">Installing from Git source code</a>
92
92
 
93
93
  If you want to experience the latest unreleased version, or want to participate in the contribution, you need to make changes and debug on the source code, it is recommended to choose this installation method, which requires a high level of development skills, and if the code has been updated, you can git pull the latest code.
94
94
 
@@ -9,22 +9,22 @@
9
9
 
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
- "@nocobase/client": "2.4.0-alpha.13",
13
- "@nocobase/plugin-workflow": "2.4.0-alpha.13",
12
+ "@nocobase/client": "2.4.0-alpha.15",
13
+ "@nocobase/plugin-workflow": "2.4.0-alpha.15",
14
14
  "react-i18next": "11.18.6",
15
15
  "antd-style": "3.7.1",
16
16
  "antd": "5.24.2",
17
17
  "react-router-dom": "6.30.1",
18
18
  "lodash": "4.18.1",
19
- "@nocobase/flow-engine": "2.4.0-alpha.13",
20
- "@nocobase/client-v2": "2.4.0-alpha.13",
19
+ "@nocobase/flow-engine": "2.4.0-alpha.15",
20
+ "@nocobase/client-v2": "2.4.0-alpha.15",
21
21
  "@ant-design/icons": "5.6.1",
22
22
  "ahooks": "3.7.8",
23
- "@nocobase/utils": "2.4.0-alpha.13",
24
- "@nocobase/plugin-ui-schema-storage": "2.4.0-alpha.13",
25
- "@nocobase/actions": "2.4.0-alpha.13",
26
- "@nocobase/server": "2.4.0-alpha.13",
27
- "@nocobase/database": "2.4.0-alpha.13",
28
- "@nocobase/data-source-manager": "2.4.0-alpha.13",
29
- "@nocobase/plugin-notification-manager": "2.4.0-alpha.13"
23
+ "@nocobase/utils": "2.4.0-alpha.15",
24
+ "@nocobase/plugin-ui-schema-storage": "2.4.0-alpha.15",
25
+ "@nocobase/actions": "2.4.0-alpha.15",
26
+ "@nocobase/server": "2.4.0-alpha.15",
27
+ "@nocobase/database": "2.4.0-alpha.15",
28
+ "@nocobase/data-source-manager": "2.4.0-alpha.15",
29
+ "@nocobase/plugin-notification-manager": "2.4.0-alpha.15"
30
30
  };
@@ -40,6 +40,7 @@ __export(actions_exports, {
40
40
  });
41
41
  module.exports = __toCommonJS(actions_exports);
42
42
  var import_actions = __toESM(require("@nocobase/actions"));
43
+ var import_plugin_workflow = require("@nocobase/plugin-workflow");
43
44
  var import_tempAssociationFields = require("./tempAssociationFields");
44
45
  const mergeAppends = (appends, required) => {
45
46
  const result = /* @__PURE__ */ new Set([...appends || []]);
@@ -48,6 +49,7 @@ const mergeAppends = (appends, required) => {
48
49
  };
49
50
  const workflowCcTasks = {
50
51
  async get(context, next) {
52
+ (0, import_plugin_workflow.sanitizeWorkflowTaskReadParams)(context);
51
53
  context.action.mergeParams({
52
54
  filter: {
53
55
  userId: context.state.currentUser.id
@@ -57,6 +59,7 @@ const workflowCcTasks = {
57
59
  },
58
60
  async listMine(context, next) {
59
61
  var _a;
62
+ (0, import_plugin_workflow.sanitizeWorkflowTaskReadParams)(context);
60
63
  context.action.mergeParams({
61
64
  filter: {
62
65
  userId: context.state.currentUser.id
@@ -177,7 +177,7 @@ class PluginWorkflowCCServer extends import_server.Plugin {
177
177
  };
178
178
  async load() {
179
179
  (0, import_actions.initActions)(this.app);
180
- this.app.acl.allow("workflowCcTasks", ["list", "listMine", "get", "read", "unread", "readAll"], "loggedIn");
180
+ this.app.acl.allow("workflowCcTasks", ["listMine", "get", "read", "unread", "readAll"], "loggedIn");
181
181
  const workflowPlugin = this.app.pm.get(import_plugin_workflow.default);
182
182
  workflowPlugin.registerInstruction("cc", import_CCInstruction.default);
183
183
  workflowPlugin.registerTaskStatsProvider(import_constants.TASK_TYPE_CC, {
package/package.json CHANGED
@@ -6,11 +6,11 @@
6
6
  "description": "Provide a CC (carbon copy) feature in workflows to send approvals, or any other type of information to specified users.",
7
7
  "description.zh-CN": "在工作流中提供抄送功能,将审批或其他任意信息抄送给特定的用户。",
8
8
  "description.ru-RU": "Предоставляет функцию CC (копия) в рабочих процессах для отправки утверждений или любого другого типа информации указанным пользователям.",
9
- "homepage": "https://docs.nocobase.com/handbook/workflow-cc",
9
+ "homepage": "https://nocode.docs.nocobase.com/handbook/workflow-cc",
10
10
  "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/workflow-cc",
11
11
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-cc",
12
12
  "license": "Apache-2.0",
13
- "version": "2.4.0-alpha.13",
13
+ "version": "2.4.0-alpha.15",
14
14
  "main": "dist/server/index.js",
15
15
  "peerDependencies": {
16
16
  "@nocobase/actions": "2.x",
@@ -30,5 +30,5 @@
30
30
  "keywords": [
31
31
  "Workflow"
32
32
  ],
33
- "gitHead": "4f8b779e0efb365eabff87294a9eb222cec4ed55"
33
+ "gitHead": "3a53e97f8f63766c61f1b94928a3aa873524027b"
34
34
  }