@nocobase/plugin-workflow-response-message 1.6.20 → 1.7.0-alpha.11
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.
|
@@ -63,7 +63,7 @@ export default class extends Instruction {
|
|
|
63
63
|
RadioWithTooltip: typeof RadioWithTooltip;
|
|
64
64
|
WorkflowVariableTextArea: typeof WorkflowVariableTextArea;
|
|
65
65
|
WorkflowVariableInput: typeof WorkflowVariableInput;
|
|
66
|
-
Alert: React.
|
|
66
|
+
Alert: React.ForwardRefExoticComponent<import("antd").AlertProps & React.RefAttributes<import("antd/es/alert/Alert").AlertRef>> & {
|
|
67
67
|
ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
|
|
68
68
|
};
|
|
69
69
|
Space: React.ForwardRefExoticComponent<import("antd").SpaceProps & React.RefAttributes<HTMLDivElement>> & {
|
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@ant-design/icons"),require("
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nocobase/client"),require("@ant-design/icons"),require("antd"),require("@nocobase/plugin-workflow/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-response-message",["react","@nocobase/client","@ant-design/icons","antd","@nocobase/plugin-workflow/client"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-response-message"]=t(require("react"),require("@nocobase/client"),require("@ant-design/icons"),require("antd"),require("@nocobase/plugin-workflow/client")):e["@nocobase/plugin-workflow-response-message"]=t(e.react,e["@nocobase/client"],e["@ant-design/icons"],e.antd,e["@nocobase/plugin-workflow/client"])}(self,function(e,t,n,o,r){return function(){"use strict";var i={482:function(e){e.exports=n},772:function(e){e.exports=t},433:function(e){e.exports=r},721:function(e){e.exports=o},156:function(t){t.exports=e}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return i[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return!function(){u.r(a),u.d(a,{PluginWorkflowResponseMessageClient:function(){return g},default:function(){return x}});var e=u(772),t=u(156),n=u.n(t),o=u(482),r=u(721),i=u(433),c="@nocobase/plugin-workflow-response-message";function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var b=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function u(){var e,t,a;if(!(this instanceof u))throw TypeError("Cannot call a class as a function");return t=u,a=arguments,t=l(t),s(e=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,p()?Reflect.construct(t,a||[],l(this).constructor):t.apply(this,a)),"title",'{{t("Response message", { ns: "'.concat(c,'" })}}')),s(e,"type","response-message"),s(e,"group","extended"),s(e,"description",'{{t("Add response message, will be send to client when process of request ends.", { ns: "'.concat(c,'" })}}')),s(e,"icon",n().createElement(o.InfoCircleOutlined,null)),s(e,"fieldset",{message:{type:"string",title:'{{t("Message content", { ns: "'.concat(c,'" })}}'),description:"{{t('Supports variables in template.', { ns: \"".concat(c,"\", name: '{{name}}' })}}"),"x-decorator":"FormItem","x-component":"WorkflowVariableTextArea"},info:{type:"void","x-component":"Space","x-component-props":{direction:"vertical"},properties:{success:{type:"void","x-component":"Alert","x-component-props":{type:"success",showIcon:!0,description:"{{t('If the workflow ends normally, the response message will return a success status by default.', { ns: \"".concat(c,'" })}}')}},failure:{type:"void","x-component":"Alert","x-component-props":{type:"error",showIcon:!0,description:'{{t(\'If you want to return a failure status, please add an "End Process" node downstream to terminate the workflow.\', { ns: "'.concat(c,'" })}}')}}}}}),s(e,"scope",{}),s(e,"components",{RadioWithTooltip:i.RadioWithTooltip,WorkflowVariableTextArea:i.WorkflowVariableTextArea,WorkflowVariableInput:i.WorkflowVariableInput,Alert:r.Alert,Space:r.Space}),e}return u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),e&&f(u,e),t=[{key:"isAvailable",value:function(e){var t=e.workflow;return e.upstream,e.branchIndex,"request-interception"===t.type||["action","custom-action"].includes(t.type)&&t.sync}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(u.prototype,t),u}(i.Instruction);function y(e,t,n,o,r,i,c){try{var u=e[i](c),a=u.value}catch(e){n(e);return}u.done?t(a):Promise.resolve(a).then(o,r)}function d(e,t,n){return(d=m()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&w(r,n.prototype),r}).apply(null,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,v(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),w(n,e)})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}var g=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=v(e),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,m()?Reflect.construct(e,t||[],v(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&w(n,e),t=[{key:"load",value:function(){var e,t=this;return(e=function(){return function(e,t){var n,o,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var a=[i,u];if(n)throw TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(r=(r=c.trys).length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){c.label=a[1];break}if(6===a[0]&&c.label<r[1]){c.label=r[1],r=a;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(a);break}r[2]&&c.ops.pop(),c.trys.pop();continue}a=t.call(e,c)}catch(e){a=[6,e],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(e){return t.app.pm.get("workflow").registerInstruction("response-message",b),[2]})},function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function c(e){y(i,o,r,c,u,"next",e)}function u(e){y(i,o,r,c,u,"throw",e)}c(void 0)})})()}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(h(e.Plugin)),x=g}(),a}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"@ant-design/icons": "5.6.1",
|
|
13
|
-
"antd": "5.
|
|
14
|
-
"@nocobase/plugin-workflow": "1.
|
|
15
|
-
"@nocobase/client": "1.
|
|
16
|
-
"@nocobase/server": "1.
|
|
13
|
+
"antd": "5.24.2",
|
|
14
|
+
"@nocobase/plugin-workflow": "1.7.0-alpha.11",
|
|
15
|
+
"@nocobase/client": "1.7.0-alpha.11",
|
|
16
|
+
"@nocobase/server": "1.7.0-alpha.11"
|
|
17
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow-response-message",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-alpha.11",
|
|
4
4
|
"displayName": "Workflow: Response message",
|
|
5
5
|
"displayName.zh-CN": "工作流:响应消息",
|
|
6
6
|
"description": "Used for assemble response message and showing to client in form event and request interception workflows.",
|
|
@@ -10,15 +10,13 @@
|
|
|
10
10
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-response-message",
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@nocobase/client": "1.x",
|
|
13
|
+
"@nocobase/plugin-workflow": "1.x",
|
|
13
14
|
"@nocobase/server": "1.x",
|
|
14
15
|
"@nocobase/test": "1.x",
|
|
15
16
|
"@nocobase/utils": "1.x"
|
|
16
17
|
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@nocobase/plugin-workflow": "1.6.20"
|
|
19
|
-
},
|
|
20
18
|
"keywords": [
|
|
21
19
|
"Workflow"
|
|
22
20
|
],
|
|
23
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "41830f1b20f8f5f7aae0699042a10135f1f8cf30"
|
|
24
22
|
}
|