@nocobase/plugin-workflow-custom-action-trigger 2.1.0-alpha.12 → 2.1.0-alpha.13

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.
@@ -10,20 +10,20 @@
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
12
  "@formily/react": "2.3.7",
13
- "@nocobase/client": "2.1.0-alpha.12",
14
- "@nocobase/plugin-workflow": "2.1.0-alpha.12",
15
- "@nocobase/flow-engine": "2.1.0-alpha.12",
13
+ "@nocobase/client": "2.1.0-alpha.13",
14
+ "@nocobase/plugin-workflow": "2.1.0-alpha.13",
15
+ "@nocobase/flow-engine": "2.1.0-alpha.13",
16
16
  "@emotion/css": "11.13.0",
17
17
  "antd": "5.24.2",
18
18
  "react-router-dom": "6.30.1",
19
- "@nocobase/utils": "2.1.0-alpha.12",
19
+ "@nocobase/utils": "2.1.0-alpha.13",
20
20
  "react-i18next": "11.18.6",
21
21
  "@formily/antd-v5": "1.2.3",
22
- "@nocobase/plugin-error-handler": "2.1.0-alpha.12",
23
- "@nocobase/data-source-manager": "2.1.0-alpha.12",
24
- "@nocobase/server": "2.1.0-alpha.12",
22
+ "@nocobase/plugin-error-handler": "2.1.0-alpha.13",
23
+ "@nocobase/data-source-manager": "2.1.0-alpha.13",
24
+ "@nocobase/server": "2.1.0-alpha.13",
25
25
  "lodash": "4.17.21",
26
- "@nocobase/actions": "2.1.0-alpha.12",
27
- "@nocobase/plugin-workflow-test": "2.1.0-alpha.12",
28
- "@nocobase/test": "2.1.0-alpha.12"
26
+ "@nocobase/actions": "2.1.0-alpha.13",
27
+ "@nocobase/plugin-workflow-test": "2.1.0-alpha.13",
28
+ "@nocobase/test": "2.1.0-alpha.13"
29
29
  };
@@ -1 +1 @@
1
- {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-03-25T14:12:24.420Z"}
1
+ {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-03-27T05:55:18.723Z"}
@@ -60,8 +60,9 @@ class CustomActionTrigger extends import_plugin_workflow.Trigger {
60
60
  collection: import_joi.default.when("type", {
61
61
  is: import_joi.default.valid(import_constants.CONTEXT_TYPE.SINGLE_RECORD, import_constants.CONTEXT_TYPE.MULTIPLE_RECORDS),
62
62
  then: import_joi.default.string().required().messages({ "any.required": "Collection is required for record-based context" }),
63
- otherwise: import_joi.default.string()
64
- })
63
+ otherwise: import_joi.default.string().allow(null, "")
64
+ }),
65
+ appends: import_joi.default.array().items(import_joi.default.string()).optional()
65
66
  });
66
67
  validateConfig(config) {
67
68
  const errors = super.validateConfig(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-workflow-custom-action-trigger",
3
- "version": "2.1.0-alpha.12",
3
+ "version": "2.1.0-alpha.13",
4
4
  "displayName": "Workflow: Custom action event",
5
5
  "displayName.zh-CN": "工作流:自定义操作事件",
6
6
  "description": "Triggers after click a custom action button.",
@@ -30,6 +30,6 @@
30
30
  ],
31
31
  "editionLevel": 0
32
32
  },
33
- "gitHead": "f12c4a75470590b1670ce54510b96ef94c2cd7a2",
33
+ "gitHead": "2807a8948412d9c235115a31a81a66f7c82dd173",
34
34
  "license": "Apache-2.0"
35
35
  }