@nocobase/plugin-workflow-variable 2.0.21 → 2.1.0-alpha.10

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.
@@ -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("@nocobase/client"),require("@nocobase/plugin-workflow/client"),require("antd")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-variable",["react","@nocobase/client","@nocobase/plugin-workflow/client","antd"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-variable"]=t(require("react"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client"),require("antd")):e["@nocobase/plugin-workflow-variable"]=t(e.react,e["@nocobase/client"],e["@nocobase/plugin-workflow/client"],e.antd)}(self,function(e,t,n,r){return function(){"use strict";var o={772:function(e){e.exports=t},433:function(e){e.exports=n},721:function(e){e.exports=r},156:function(t){t.exports=e}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return!function(){i.r(c),i.d(c,{default:function(){return S},PluginWorkflowCustomVariableClient:function(){return P}});var e=i(772),t=i(156),n=i.n(t),r=i(721),o=i(433),a="@nocobase/plugin-workflow-variable";function u(t){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.i18n.t(t,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},o),r=r={ns:a},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=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})()}function b(){var e,t,n=(e=["\n color: ",";\n\n &:before {\n content: '#';\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return b=function(){return n},n}var y=(0,e.createStyles)(function(e){var t=e.css,n=e.token;return{nodeIdClass:t(b(),n.colorTextDescription)}});function v(a){var i=a.value,c=a.onChange,l=null==i,f=(0,o.useNodeContext)(),s=(0,o.useAvailableUpstreams)(f,function(e){return"variable"===e.type&&!e.config.target});y().styles;var p=(0,t.useCallback)(function(e){if(e.target.value)return c(null);s.length&&c(s[0].key)},[c,s]),b=(0,t.useCallback)(function(e,t){return t.label.toLowerCase().indexOf(e.toLowerCase())>=0||"#".concat(t.data.id).indexOf(e)>=0},[]);return n().createElement("fieldset",null,n().createElement(r.Radio.Group,{value:l,onChange:p},n().createElement(e.Space,{direction:"vertical"},n().createElement(r.Radio,{value:!0},u("Declare a new variable")),n().createElement(e.Space,null,n().createElement(r.Radio,{value:!1,disabled:!s.length},u("Assign value to an existing variable")),!l&&n().createElement(r.Select,{options:s.map(function(e){return{label:e.title,value:e.key,data:e}}),value:i,onChange:c,allowClear:!0,showSearch:!0,filterOption:b})))))}var d=function(t){var r;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function i(){var t,r,c;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return r=i,c=arguments,r=f(r),l(t=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(r,c||[],f(this).constructor):r.apply(this,c)),"title",'{{t("Variable", { ns: "'.concat(a,'" })}}')),l(t,"type","variable"),l(t,"group","control"),l(t,"description",'{{t("Assign value to a variable, for later use.", { ns: "'.concat(a,'" })}}')),l(t,"icon",n().createElement("span",{className:"anticon",style:{display:"inline-block",width:"1em",textAlign:"center",fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},"x")),l(t,"fieldset",{target:{type:"string",title:'{{t("Mode", { ns: "'.concat(a,'" })}}'),"x-decorator":"FormItem","x-component":"VariableTargetSelect"},value:{type:"string",title:'{{t("Value", { ns: "'.concat(a,'" })}}'),"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:!0,changeOnSelect:!0},default:""}}),l(t,"scope",{useCollectionDataSource:e.useCollectionDataSource}),l(t,"components",{WorkflowVariableInput:o.WorkflowVariableInput,VariableTargetSelect:v}),t}return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&s(i,t),r=[{key:"useVariables",value:function(e,t){var n,r=e.key,a=e.title,i=e.config,c=(t.types,t.fieldNames),u=void 0===c?o.defaultFieldNames:c;return(null==i?void 0:i.target)?null:(l(n={},u.value,r),l(n,u.label,a),n)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,r),i}(o.Instruction);function g(e,t,n,r,o,a,i){try{var c=e[a](i),u=c.value}catch(e){n(e);return}c.done?t(u):Promise.resolve(u).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){g(a,r,o,i,c,"next",e)}function c(e){g(a,r,o,i,c,"throw",e)}i(void 0)})}}function w(e,t,n){return(w=k()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&O(o,n.prototype),o}).apply(null,arguments)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t="function"==typeof Map?new Map:void 0;return(j=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 w(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,e)})(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}function x(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){var u=[a,c];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var P=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(e,t){var r,o;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return r=n,o=[e,t],r=m(r),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,k()?Reflect.construct(r,o||[],m(this).constructor):r.apply(this,o))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&O(n,e),t=[{key:"beforeLoad",value:function(){return h(function(){return x(this,function(e){return[2]})})()}},{key:"load",value:function(){var e=this;return h(function(){return x(this,function(t){return e.app.pm.get("workflow").registerInstruction("variable",d),[2]})})()}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(j(e.Plugin)),S=P}(),c}()});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-variable",["react","antd","@nocobase/client","@nocobase/plugin-workflow/client"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-variable"]=t(require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client")):e["@nocobase/plugin-workflow-variable"]=t(e.react,e.antd,e["@nocobase/client"],e["@nocobase/plugin-workflow/client"])}(self,function(e,t,r,n){return function(){"use strict";var o,a={342:function(e){e.exports=r},990:function(e){e.exports=n},59:function(e){e.exports=t},155:function(t){t.exports=e}},i={};function c(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.g.importScripts&&(u=c.g.location+"");var u,l=c.g.document;if(!u&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(u=l.currentScript.src),!u)){var f=l.getElementsByTagName("script");if(f.length)for(var s=f.length-1;s>-1&&(!u||!/^http(s?):/.test(u));)u=f[s--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");c.p=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var p={};return"/"!==(o=window.__webpack_public_path__||"/").charAt(o.length-1)&&(o+="/"),c.p=o+"static/plugins/@nocobase/plugin-workflow-variable/dist/client/",!function(){c.r(p),c.d(p,{default:function(){return x},PluginWorkflowCustomVariableClient:function(){return P}});var e=c(342),t=c(155),r=c.n(t),n=c(59),o=c(990),a="@nocobase/plugin-workflow-variable";function i(t){var r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.i18n.t(t,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},o),n=n={ns:a},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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 s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function b(){var e,t,r=(e=["\n color: ",";\n\n &:before {\n content: '#';\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return b=function(){return r},r}var y=(0,e.createStyles)(function(e){var t=e.css,r=e.token;return{nodeIdClass:t(b(),r.colorTextDescription)}});function v(a){var c=a.value,u=a.onChange,l=null==c,f=(0,o.useNodeContext)(),s=(0,o.useAvailableUpstreams)(f,function(e){return"variable"===e.type&&!e.config.target});y().styles;var p=(0,t.useCallback)(function(e){if(e.target.value)return u(null);s.length&&u(s[0].key)},[u,s]),b=(0,t.useCallback)(function(e,t){return t.label.toLowerCase().indexOf(e.toLowerCase())>=0||"#".concat(t.data.id).indexOf(e)>=0},[]);return r().createElement("fieldset",null,r().createElement(n.Radio.Group,{value:l,onChange:p},r().createElement(e.Space,{direction:"vertical"},r().createElement(n.Radio,{value:!0},i("Declare a new variable")),r().createElement(e.Space,null,r().createElement(n.Radio,{value:!1,disabled:!s.length},i("Assign value to an existing variable")),!l&&r().createElement(n.Select,{options:s.map(function(e){return{label:e.title,value:e.key,data:e}}),value:c,onChange:u,allowClear:!0,showSearch:!0,filterOption:b})))))}var d=function(t){var n;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function i(){var t,n,c;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return n=i,c=arguments,n=l(n),u(t=function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,s()?Reflect.construct(n,c||[],l(this).constructor):n.apply(this,c)),"title",'{{t("Variable", { ns: "'.concat(a,'" })}}')),u(t,"type","variable"),u(t,"group","control"),u(t,"description",'{{t("Assign value to a variable, for later use.", { ns: "'.concat(a,'" })}}')),u(t,"icon",r().createElement("span",{className:"anticon",style:{display:"inline-block",width:"1em",textAlign:"center",fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},"x")),u(t,"fieldset",{target:{type:"string",title:'{{t("Mode", { ns: "'.concat(a,'" })}}'),"x-decorator":"FormItem","x-component":"VariableTargetSelect"},value:{type:"string",title:'{{t("Value", { ns: "'.concat(a,'" })}}'),"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:!0,changeOnSelect:!0},default:""}}),u(t,"scope",{useCollectionDataSource:e.useCollectionDataSource}),u(t,"components",{WorkflowVariableInput:o.WorkflowVariableInput,VariableTargetSelect:v}),t}return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&f(i,t),n=[{key:"useVariables",value:function(e,t){var r,n=e.key,a=e.title,i=e.config,c=(t.types,t.fieldNames),l=void 0===c?o.defaultFieldNames:c;return(null==i?void 0:i.target)?null:(u(r={},l.value,n),u(r,l.label,a),r)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(i.prototype,n),i}(o.Instruction);function g(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){r(e);return}c.done?t(u):Promise.resolve(u).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){g(a,n,o,i,c,"next",e)}function c(e){g(a,n,o,i,c,"throw",e)}i(void 0)})}}function w(e,t,r){return(w=S()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&O(o,r.prototype),o}).apply(null,arguments)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t="function"==typeof Map?new Map:void 0;return(j=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,r)}function r(){return w(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),O(r,e)})(e)}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function k(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(i,"next",{value:u(0)}),c(i,"throw",{value:u(1)}),c(i,"return",{value:u(2)}),"function"==typeof Symbol&&c(i,Symbol.iterator,{value:function(){return this}}),i;function u(c){return function(u){var l=[c,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var P=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(e,t){var n,o;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return n=r,o=[e,t],n=m(n),function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,S()?Reflect.construct(n,o||[],m(this).constructor):n.apply(this,o))}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&O(r,e),t=[{key:"beforeLoad",value:function(){return h(function(){return k(this,function(e){return[2]})})()}},{key:"load",value:function(){return h(function(){return k(this,function(e){return this.app.pm.get("workflow").registerInstruction("variable",d),[2]})}).call(this)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,t),r}(j(e.Plugin)),x=P}(),p}()});
@@ -10,7 +10,7 @@
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
12
  "antd": "5.24.2",
13
- "@nocobase/plugin-workflow": "2.0.21",
14
- "@nocobase/client": "2.0.21",
15
- "@nocobase/server": "2.0.21"
13
+ "@nocobase/plugin-workflow": "2.1.0-alpha.10",
14
+ "@nocobase/client": "2.1.0-alpha.10",
15
+ "@nocobase/server": "2.1.0-alpha.10"
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-workflow-variable",
3
- "version": "2.0.21",
3
+ "version": "2.1.0-alpha.10",
4
4
  "displayName": "Workflow: Custom variable",
5
5
  "displayName.zh-CN": "工作流:自定义变量节点",
6
6
  "description": "Used for creating custom variables or assigning value to it in workflows, to save temporary data in the process.",
@@ -25,6 +25,6 @@
25
25
  "@nocobase/test": "2.x",
26
26
  "@nocobase/utils": "2.x"
27
27
  },
28
- "gitHead": "147f39c871299c60820cc9b98034fbfcc342a629",
28
+ "gitHead": "ce790d46c0a5768ca9618c7d0d77ab8300de75c8",
29
29
  "license": "Apache-2.0"
30
30
  }