@nocobase/plugin-notification-email 2.2.0-alpha.1 → 2.2.0-alpha.2

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,10 @@
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
+
10
+ "use strict";(self.webpackChunk_nocobase_plugin_notification_email=self.webpackChunk_nocobase_plugin_notification_email||[]).push([["114"],{633:function(e,t,r){r.r(t),r.d(t,{MessageConfigForm:function(){return E}});var n=r(375),a=r(197),l=r(799),i=r(428),o=r(59),u=r(155),c=r.n(u),s=r(488);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t,r,n,a,l,i){try{var o=e[l](i),u=o.value}catch(e){r(e);return}o.done?t(u):Promise.resolve(u).then(n,a)}function d(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}function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return f(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return p(null!=e?e:[]).concat(p(r))}var v=c().createContext(null);function y(e){var t=(0,i.useSortable)({id:e.id}),r=t.attributes,n=t.isDragging,a=t.listeners,l=t.setActivatorNodeRef,o=t.setNodeRef,u=t.transform,s=t.transition;return c().createElement(v.Provider,{value:{attributes:r,listeners:a,setActivatorNodeRef:l}},c().createElement("div",{ref:o,style:d({transform:u?"translate3d(".concat(u.x,"px, ").concat(u.y,"px, 0)"):void 0,transition:s},n?{position:"relative",zIndex:1}:null)},e.children))}function h(){var e,t,r=c().useContext(v),a=o.theme.useToken().token;return c().createElement("span",(e=d({ref:null==r?void 0:r.setActivatorNodeRef},null==r?void 0:r.attributes,null==r?void 0:r.listeners),t=t={style:{alignItems:"center",color:a.colorTextTertiary,cursor:"grab",display:"inline-flex"}},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e),c().createElement(n.MenuOutlined,null))}function g(e){var t=e.formPath,r=e.title,u=e.addLabel,s=e.placeholder,f=e.required,d=e.requiredMessage,p=(0,l.useSensors)((0,l.useSensor)(l.PointerSensor,{activationConstraint:{distance:1}}));return c().createElement(o.Form.List,{name:t,rules:f?[{validator:function(e,t){var r;return(r=function(){return function(e,t){var r,n,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),o=Object.defineProperty;return o(i,"next",{value:u(0)}),o(i,"throw",{value:u(1)}),o(i,"return",{value:u(2)}),"function"==typeof Symbol&&o(i,Symbol.iterator,{value:function(){return this}}),i;function u(o){return function(u){var c=[o,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(l=0)),l;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!(a=(a=l.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){l=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){l.label=c[1];break}if(6===c[0]&&l.label<a[1]){l.label=a[1],a=c;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(c);break}a[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(e){c=[6,e],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){if(Array.isArray(t)&&t.filter(Boolean).length>0)return[2];throw Error(d)})},function(){var e=this,t=arguments;return new Promise(function(n,a){var l=r.apply(e,t);function i(e){m(l,n,a,i,o,"next",e)}function o(e){m(l,n,a,i,o,"throw",e)}i(void 0)})})()}}]:void 0},function(e,t,m){var d=t.add,b=t.remove,v=t.move,g=m.errors;return c().createElement(o.Form.Item,{label:r,required:f,validateStatus:g.length?"error":void 0,help:g[0]},c().createElement(o.Flex,{vertical:!0,gap:"small"},c().createElement(l.DndContext,{sensors:p,collisionDetection:l.closestCenter,onDragEnd:function(t){var r=t.active,n=t.over;if(n&&r.id!==n.id){var a=e.map(function(e){return String(e.key)}),l=a.indexOf(String(r.id)),i=a.indexOf(String(n.id));l<0||i<0||l===i||v(l,i)}}},c().createElement(i.SortableContext,{items:e.map(function(e){return String(e.key)}),strategy:i.verticalListSortingStrategy},c().createElement(o.Flex,{vertical:!0,gap:"small"},e.map(function(e){return c().createElement(y,{key:e.key,id:String(e.key)},c().createElement(o.Flex,{gap:"small",align:"center"},c().createElement(h,null),c().createElement(o.Form.Item,{name:e.name,noStyle:!0},c().createElement(a.WorkflowVariableInput,{placeholder:s,variableOptions:{types:["string"]}})),c().createElement(o.Button,{type:"text","aria-label":r,icon:c().createElement(n.DeleteOutlined,null),onClick:function(){return b(e.name)}})))})))),c().createElement(o.Button,{icon:c().createElement(n.PlusOutlined,null),onClick:function(){return d("")}},u)))})}function E(e){var t,r=(0,s.Yb)().t,n=null!=(t=o.Form.useWatch(b(e.namePrefix,"contentType")))?t:"html";return c().createElement(c().Fragment,null,c().createElement(g,{formPath:b(e.namePrefix,"to"),title:r("To"),addLabel:r("Add email address"),placeholder:r("Email address"),requiredMessage:r("The field value is required"),required:!0}),c().createElement(g,{formPath:b(e.namePrefix,"cc"),title:r("CC"),addLabel:r("Add email address"),placeholder:r("Email address"),requiredMessage:r("The field value is required")}),c().createElement(g,{formPath:b(e.namePrefix,"bcc"),title:r("BCC"),addLabel:r("Add email address"),placeholder:r("Email address"),requiredMessage:r("The field value is required")}),c().createElement(o.Form.Item,{name:b(e.namePrefix,"subject"),label:r("Subject"),rules:[{required:!0,message:r("The field value is required")}]},c().createElement(a.WorkflowVariableInput,null)),c().createElement(o.Form.Item,{name:b(e.namePrefix,"contentType"),label:r("Content type"),initialValue:"html"},c().createElement(o.Radio.Group,{options:[{label:"HTML",value:"html"},{label:r("Plain text"),value:"text"}]})),c().createElement(o.Form.Item,{name:b(e.namePrefix,"html"),label:r("Content"),hidden:"html"!==n,rules:"html"===n?[{required:!0,message:r("The field value is required")}]:void 0},c().createElement(a.WorkflowVariableTextArea,{autoSize:{minRows:10},placeholder:"Hi,"})),c().createElement(o.Form.Item,{name:b(e.namePrefix,"text"),label:r("Content"),hidden:"text"!==n,rules:"text"===n?[{required:!0,message:r("The field value is required")}]:void 0},c().createElement(a.WorkflowVariableTextArea,{autoSize:{minRows:10},placeholder:"Hi,"})))}t.default=E},488:function(e,t,r){r.d(t,{Yb:function(){return a}}),r(694);var n=r(953);function a(){return(0,n.useTranslation)(["notification-email","@nocobase/plugin-notification-email","client"],{nsMode:"fallback"})}}}]);
@@ -0,0 +1,10 @@
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
+
10
+ "use strict";(self.webpackChunk_nocobase_plugin_notification_email=self.webpackChunk_nocobase_plugin_notification_email||[]).push([["658"],{153:function(e,t,a){a.r(t),a.d(t,{ChannelConfigForm:function(){return s}});var n=a(485),r=a(59),l=a(155),i=a.n(l),o=a(488);function s(){var e=(0,o.Yb)().t;return i().createElement(i().Fragment,null,i().createElement(r.Form.Item,{label:e("Transport"),name:["options","transport"],initialValue:"smtp",rules:[{required:!0,message:e("The field value is required")}]},i().createElement(r.Select,{options:[{value:"smtp",label:"SMTP"}]})),i().createElement(r.Row,{gutter:16},i().createElement(r.Col,{span:11},i().createElement(r.Form.Item,{label:e("Host"),name:["options","host"],extra:e("SMTP server host"),rules:[{required:!0,message:e("The field value is required")}]},i().createElement(n.EnvVariableInput,{placeholder:"smtp.example.com"}))),i().createElement(r.Col,{span:5},i().createElement(r.Form.Item,{label:e("Port"),name:["options","port"],initialValue:465,rules:[{required:!0,message:e("The field value is required")}]},i().createElement(n.TypedVariableInput,{types:[["number",{min:1,max:65535,step:1}]],namespaces:["$env"]}))),i().createElement(r.Col,{span:8},i().createElement(r.Form.Item,{label:e("Secure"),name:["options","secure"],initialValue:!0,extra:e("In most cases, if using port 465, set it to true; otherwise, set it to false.")},i().createElement(n.TypedVariableInput,{types:["boolean"],namespaces:["$env"]})))),i().createElement(r.Row,{gutter:16},i().createElement(r.Col,{span:12},i().createElement(r.Form.Item,{label:e("Account"),name:["options","account"],rules:[{required:!0,message:e("The field value is required")}]},i().createElement(n.EnvVariableInput,{placeholder:"example@domain.com"}))),i().createElement(r.Col,{span:12},i().createElement(r.Form.Item,{label:e("Password"),name:["options","password"],rules:[{required:!0,message:e("The field value is required")}]},i().createElement(n.EnvVariableInput,{password:!0})))),i().createElement(r.Form.Item,{label:e("From"),name:["options","from"],extra:e("The email address that will be used as the sender"),rules:[{required:!0,message:e("The field value is required")}]},i().createElement(n.EnvVariableInput,{placeholder:"noreply <example@domain.com>"})))}t.default=s},488:function(e,t,a){a.d(t,{Yb:function(){return r}}),a(694);var n=a(953);function r(){return(0,n.useTranslation)(["notification-email","@nocobase/plugin-notification-email","client"],{nsMode:"fallback"})}}}]);
@@ -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-notification-manager/client"),require("react-i18next"),require("@nocobase/utils/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-notification-email",["react","@nocobase/client","@nocobase/plugin-notification-manager/client","react-i18next","@nocobase/utils/client"],t):"object"==typeof exports?exports["@nocobase/plugin-notification-email"]=t(require("react"),require("@nocobase/client"),require("@nocobase/plugin-notification-manager/client"),require("react-i18next"),require("@nocobase/utils/client")):e["@nocobase/plugin-notification-email"]=t(e.react,e["@nocobase/client"],e["@nocobase/plugin-notification-manager/client"],e["react-i18next"],e["@nocobase/utils/client"])}(self,function(e,t,o,r,n){return function(){"use strict";var i={342:function(e){e.exports=t},486:function(e){e.exports=o},768:function(e){e.exports=n},155:function(t){t.exports=e},953:function(e){e.exports=r}},c={};function a(e){var t=c[e];if(void 0!==t)return t.exports;var o=c[e]={exports:{}};return i[e](o,o.exports,a),o.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.g.importScripts&&(p=a.g.location+"");var p,l=a.g.document;if(!p&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(p=l.currentScript.src),!p)){var s=l.getElementsByTagName("script");if(s.length)for(var u=s.length-1;u>-1&&(!p||!/^http(s?):/.test(p));)p=s[u--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");a.p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var m={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var o=window.__webpack_public_path__||"";o&&("/"!==o.charAt(o.length-1)&&(o+="/"),e=o+"static/plugins/@nocobase/plugin-notification-email/dist/client/")}if(!e){var r=window.__nocobase_modern_client_prefix__||"v",n="/"+(r=String(r).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var i=window.location.pathname||"/",c=i.indexOf(n);e=c>=0?i.slice(0,c+1):"/"}e&&(e=e.replace(RegExp("/"+r+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-notification-email/dist/client/"}a.p=e}(),!function(){a.r(m),a.d(m,{PluginNotificationMailClient:function(){return T},default:function(){return A}});var e=a(342),t=a(486),o=a.n(t),r=a(768),n="@nocobase/plugin-notification-email",i=a(155),c=a.n(i),p=a(953);function l(){return(0,p.useTranslation)([n,"client"],{nsMode:"fallback"})}var s=function(){var t=l().t;return c().createElement(e.SchemaComponent,{scope:{t:t},schema:{type:"object",properties:{transport:{"x-decorator":"FormItem",type:"string",title:'{{t("Transport")}}',"x-component":"Select",enum:[{value:"smtp",label:"SMTP"}],default:"smtp",required:!0},server:{type:"void","x-component":"Grid",properties:{row:{type:"void","x-component":"Grid.Row",properties:{col1:{type:"void","x-component":"Grid.Col","x-component-props":{width:45},properties:{host:{"x-decorator":"FormItem",type:"string",title:'{{t("Host")}}',description:'{{t("SMTP server host")}}',"x-component":"TextAreaWithGlobalScope","x-component-props":{placeholder:"smtp.example.com"},required:!0}}},col2:{type:"void","x-component":"Grid.Col","x-component-props":{width:20},properties:{port:{"x-decorator":"FormItem",type:"number",title:'{{t("Port")}}',"x-component":"TextAreaWithGlobalScope","x-component-props":{number:!0,useTypedConstant:[["number",{min:1,max:65535,step:1}]]},default:465,required:!0}}},col3:{type:"void","x-component":"Grid.Col","x-component-props":{width:35},properties:{secure:{type:"boolean",title:'{{t("Secure")}}',"x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope",description:'{{t("In most cases, if using port 465, set it to true; otherwise, set it to false.")}}',"x-component-props":{boolean:!0,useTypedConstant:[["boolean",{style:{width:"100%"}}]]},default:!0}}}}}}},auth:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col1:{type:"void","x-component":"Grid.Col","x-component-props":{},properties:{account:{"x-decorator":"FormItem",type:"boolean",title:'{{t("Account")}}',"x-component":"TextAreaWithGlobalScope","x-component-props":{placeholder:"example@domain.com"},required:!0}}},col2:{type:"void","x-component":"Grid.Col","x-component-props":{},properties:{password:{"x-decorator":"FormItem",type:"boolean",title:'{{t("Password")}}',"x-component":"TextAreaWithGlobalScope","x-component-props":{password:!0},required:!0}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col1:{type:"void","x-component":"Grid.Col","x-component-props":{},properties:{from:{type:"string",required:!0,title:'{{t("From")}}',description:'{{t("The email address that will be used as the sender")}}',"x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope","x-component-props":{useTypedConstant:["string"],placeholder:"noreply <example@domain.com>",expression:!1}}}}}}}}}}})};function u(){var e,t,o=(e=["\n width: 100%;\n\n .ant-space-item:nth-child(2) {\n flex-grow: 1;\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return u=function(){return o},o}var d=(0,e.css)(u()),f=function(t){var o=t.variableOptions,r=l().t;return c().createElement(e.SchemaComponent,{scope:{t:r},schema:{type:"void",properties:{to:{type:"array",required:!0,title:'{{t("To")}}',"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:d},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Variable.Input","x-component-props":{scope:o,useTypedConstant:["string"],placeholder:'{{t("Email address")}}'}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add email address")}}',"x-component":"ArrayItems.Addition"}}},cc:{type:"array",title:'{{t("CC")}}',"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:d},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Variable.Input","x-component-props":{scope:o,useTypedConstant:["string"],placeholder:'{{t("Email address")}}'}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add email address")}}',"x-component":"ArrayItems.Addition"}}},bcc:{type:"array",title:'{{t("BCC")}}',"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:d},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Variable.Input","x-component-props":{scope:o,useTypedConstant:["string"],placeholder:'{{t("Email address")}}'}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add email address")}}',"x-component":"ArrayItems.Addition"}}},subject:{type:"string",required:!0,title:'{{t("Subject")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:o}},contentType:{type:"string",title:'{{t("Content type")}}',"x-decorator":"FormItem","x-component":"Radio.Group",enum:[{label:"HTML",value:"html"},{label:'{{t("Plain text")}}',value:"text"}],default:"html"},html:{type:"string",required:!0,title:'{{t("Content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:o,placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:["contentType"],fulfill:{state:{visible:'{{$deps[0] === "html"}}'}}}]},text:{type:"string",required:!0,title:'{{t("Content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:o,placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:["contentType"],fulfill:{state:{visible:'{{$deps[0] === "text"}}'}}}]}}}})},x=function(t){var o=t.variableOptions,r=l().t;return c().createElement(e.SchemaComponent,{scope:{t:r},schema:{type:"void",properties:{subject:{type:"string",required:!0,title:'{{t("Subject")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:o}},contentType:{type:"string",title:'{{t("Content type")}}',"x-decorator":"FormItem","x-component":"Radio.Group",enum:[{label:"HTML",value:"html"},{label:'{{t("Plain text")}}',value:"text"}],default:"html"},html:{type:"string",required:!0,title:'{{t("Content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:o,placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:[".contentType"],fulfill:{state:{visible:'{{$deps[0] === "html"}}'}}}]},text:{type:"string",required:!0,title:'{{t("Content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:o,placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:[".contentType"],fulfill:{state:{visible:'{{$deps[0] === "text"}}'}}}]}}}})};function y(e,t,o,r,n,i,c){try{var a=e[i](c),p=a.value}catch(e){o(e);return}a.done?t(p):Promise.resolve(p).then(r,n)}function b(e){return function(){var t=this,o=arguments;return new Promise(function(r,n){var i=e.apply(t,o);function c(e){y(i,r,n,c,a,"next",e)}function a(e){y(i,r,n,c,a,"throw",e)}c(void 0)})}}function v(e,t,o){return(v=I()?Reflect.construct:function(e,t,o){var r=[null];r.push.apply(r,t);var n=new(Function.bind.apply(e,r));return o&&g(n,o.prototype),n}).apply(null,arguments)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=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,o)}function o(){return v(e,arguments,h(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),g(o,e)})(e)}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(I=function(){return!!e})()}function S(e,t){var o,r,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:p(0)}),a(c,"throw",{value:p(1)}),a(c,"return",{value:p(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function p(a){return function(p){var l=[a,p];if(o)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(o=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){i.label=l[1];break}if(6===l[0]&&i.label<n[1]){i.label=n[1],n=l;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(l);break}n[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{o=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var T=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,t;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,t=arguments,e=h(e),function(e,t){var o;if(t&&("object"==((o=t)&&"u">typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,I()?Reflect.construct(e,t||[],h(this).constructor):e.apply(this,t))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&g(i,e),t=[{key:"afterAdd",value:function(){return b(function(){return S(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return b(function(){return S(this,function(e){return[2]})})()}},{key:"load",value:function(){return b(function(){return S(this,function(e){return this.pm.get(o()).registerChannelType({title:(0,r.tval)("Email",{ns:n}),type:"email",components:{ChannelConfigForm:s,MessageConfigForm:f,ContentConfigForm:x}}),[2]})}).call(this)}}],function(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,t),i}(w(e.Plugin)),A=T}(),m}()});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@nocobase/plugin-notification-manager/client"),require("@nocobase/client-v2"),require("@dnd-kit/sortable"),require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client-v2"),require("@dnd-kit/core"),require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@nocobase/utils/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-notification-email",["react-i18next","@nocobase/plugin-notification-manager/client","@nocobase/client-v2","@dnd-kit/sortable","react","antd","@nocobase/client","@nocobase/plugin-workflow/client-v2","@dnd-kit/core","@ant-design/icons","@nocobase/flow-engine","@nocobase/utils/client"],t):"object"==typeof exports?exports["@nocobase/plugin-notification-email"]=t(require("react-i18next"),require("@nocobase/plugin-notification-manager/client"),require("@nocobase/client-v2"),require("@dnd-kit/sortable"),require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client-v2"),require("@dnd-kit/core"),require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@nocobase/utils/client")):e["@nocobase/plugin-notification-email"]=t(e["react-i18next"],e["@nocobase/plugin-notification-manager/client"],e["@nocobase/client-v2"],e["@dnd-kit/sortable"],e.react,e.antd,e["@nocobase/client"],e["@nocobase/plugin-workflow/client-v2"],e["@dnd-kit/core"],e["@ant-design/icons"],e["@nocobase/flow-engine"],e["@nocobase/utils/client"])}(self,function(e,t,o,n,r,i,c,a,p,l,s,u){return function(){"use strict";var d,m,f,b={375:function(e){e.exports=l},799:function(e){e.exports=p},428:function(e){e.exports=n},342:function(e){e.exports=c},485:function(e){e.exports=o},694:function(e){e.exports=s},486:function(e){e.exports=t},197:function(e){e.exports=a},768:function(e){e.exports=u},59:function(e){e.exports=i},155:function(e){e.exports=r},953:function(t){t.exports=e}},x={};function y(e){var t=x[e];if(void 0!==t)return t.exports;var o=x[e]={exports:{}};return b[e](o,o.exports,y),o.exports}y.m=b,y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},y.d=function(e,t){for(var o in t)y.o(t,o)&&!y.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},y.f={},y.e=function(e){return Promise.all(Object.keys(y.f).reduce(function(t,o){return y.f[o](e,t),t},[]))},y.u=function(e){return""+e+"."+({114:"a4f75ac81fbdc511",658:"c93b8a6db9215816"})[e]+".js"},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v={},y.l=function(e,t,o,n){if(v[e])return void v[e].push(t);if(void 0!==o)for(var r,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var p=c[a];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@nocobase/plugin-notification-email:"+o){r=p;break}}r||(i=!0,(r=document.createElement("script")).timeout=120,y.nc&&r.setAttribute("nonce",y.nc),r.setAttribute("data-rspack","@nocobase/plugin-notification-email:"+o),r.src=e),v[e]=[t];var l=function(t,o){r.onerror=r.onload=null,clearTimeout(s);var n=v[e];if(delete v[e],r.parentNode&&r.parentNode.removeChild(r),n&&n.forEach(function(e){return e(o)}),t)return t(o)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),i&&document.head.appendChild(r)},y.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.g.importScripts&&(h=y.g.location+"");var v,h,g=y.g.document;if(!h&&g&&(g.currentScript&&"SCRIPT"===g.currentScript.tagName.toUpperCase()&&(h=g.currentScript.src),!h)){var w=g.getElementsByTagName("script");if(w.length)for(var I=w.length-1;I>-1&&(!h||!/^http(s?):/.test(h));)h=w[I--].src}if(!h)throw Error("Automatic publicPath is not supported in this browser");y.p=h.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),d={889:0},y.f.j=function(e,t){var o=y.o(d,e)?d[e]:void 0;if(0!==o)if(o)t.push(o[2]);else{var n=new Promise(function(t,n){o=d[e]=[t,n]});t.push(o[2]=n);var r=y.p+y.u(e),i=Error();y.l(r,function(t){if(y.o(d,e)&&(0!==(o=d[e])&&(d[e]=void 0),o)){var n=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+r+")",i.name="ChunkLoadError",i.type=n,i.request=r,o[1](i)}},"chunk-"+e,e)}},m=function(e,t){var o,n,r=t[0],i=t[1],c=t[2],a=0;if(r.some(function(e){return 0!==d[e]})){for(o in i)y.o(i,o)&&(y.m[o]=i[o]);c&&c(y)}for(e&&e(t);a<r.length;a++)n=r[a],y.o(d,n)&&d[n]&&d[n][0](),d[n]=0},(f=self.webpackChunk_nocobase_plugin_notification_email=self.webpackChunk_nocobase_plugin_notification_email||[]).forEach(m.bind(null,0)),f.push=m.bind(null,f.push.bind(f));var T={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var o=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");o.indexOf("/static/plugins/@nocobase/plugin-notification-email/dist/client/")>=0&&(e=o.replace(/\/[^\/]+$/,"/"))}if(!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/@nocobase/plugin-notification-email/dist/client/")}if(!e){var r=window.__nocobase_modern_client_prefix__||"v",i="/"+(r=String(r).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",a=c.indexOf(i);e=a>=0?c.slice(0,a+1):"/"}e&&(e=e.replace(RegExp("/"+r+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-notification-email/dist/client/"}y.p=e}(),!function(){y.r(T),y.d(T,{PluginNotificationMailClient:function(){return S},default:function(){return C}});var e=y(342),t=y(486),o=y.n(t),n=y(768),r="@nocobase/plugin-notification-email",i=y(155),c=y.n(i),a=y(953);function p(){return(0,a.useTranslation)([r,"client"],{nsMode:"fallback"})}var l=function(){var t=p().t;return c().createElement(e.SchemaComponent,{scope:{t:t},schema:{type:"object",properties:{transport:{"x-decorator":"FormItem",type:"string",title:'{{t("Transport")}}',"x-component":"Select",enum:[{value:"smtp",label:"SMTP"}],default:"smtp",required:!0},server:{type:"void","x-component":"Grid",properties:{row:{type:"void","x-component":"Grid.Row",properties:{col1:{type:"void","x-component":"Grid.Col","x-component-props":{width:45},properties:{host:{"x-decorator":"FormItem",type:"string",title:'{{t("Host")}}',description:'{{t("SMTP server host")}}',"x-component":"TextAreaWithGlobalScope","x-component-props":{placeholder:"smtp.example.com"},required:!0}}},col2:{type:"void","x-component":"Grid.Col","x-component-props":{width:20},properties:{port:{"x-decorator":"FormItem",type:"number",title:'{{t("Port")}}',"x-component":"TextAreaWithGlobalScope","x-component-props":{number:!0,useTypedConstant:[["number",{min:1,max:65535,step:1}]]},default:465,required:!0}}},col3:{type:"void","x-component":"Grid.Col","x-component-props":{width:35},properties:{secure:{type:"boolean",title:'{{t("Secure")}}',"x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope",description:'{{t("In most cases, if using port 465, set it to true; otherwise, set it to false.")}}',"x-component-props":{boolean:!0,useTypedConstant:[["boolean",{style:{width:"100%"}}]]},default:!0}}}}}}},auth:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col1:{type:"void","x-component":"Grid.Col","x-component-props":{},properties:{account:{"x-decorator":"FormItem",type:"boolean",title:'{{t("Account")}}',"x-component":"TextAreaWithGlobalScope","x-component-props":{placeholder:"example@domain.com"},required:!0}}},col2:{type:"void","x-component":"Grid.Col","x-component-props":{},properties:{password:{"x-decorator":"FormItem",type:"boolean",title:'{{t("Password")}}',"x-component":"TextAreaWithGlobalScope","x-component-props":{password:!0},required:!0}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col1:{type:"void","x-component":"Grid.Col","x-component-props":{},properties:{from:{type:"string",required:!0,title:'{{t("From")}}',description:'{{t("The email address that will be used as the sender")}}',"x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope","x-component-props":{useTypedConstant:["string"],placeholder:"noreply <example@domain.com>",expression:!1}}}}}}}}}}})};function s(){var e,t,o=(e=["\n width: 100%;\n\n .ant-space-item:nth-child(2) {\n flex-grow: 1;\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return s=function(){return o},o}var u=(0,e.css)(s()),d=function(t){var o=t.variableOptions,n=p().t;return c().createElement(e.SchemaComponent,{scope:{t:n},schema:{type:"void",properties:{to:{type:"array",required:!0,title:'{{t("To")}}',"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:u},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Variable.Input","x-component-props":{scope:o,useTypedConstant:["string"],placeholder:'{{t("Email address")}}'}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add email address")}}',"x-component":"ArrayItems.Addition"}}},cc:{type:"array",title:'{{t("CC")}}',"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:u},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Variable.Input","x-component-props":{scope:o,useTypedConstant:["string"],placeholder:'{{t("Email address")}}'}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add email address")}}',"x-component":"ArrayItems.Addition"}}},bcc:{type:"array",title:'{{t("BCC")}}',"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:u},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Variable.Input","x-component-props":{scope:o,useTypedConstant:["string"],placeholder:'{{t("Email address")}}'}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add email address")}}',"x-component":"ArrayItems.Addition"}}},subject:{type:"string",required:!0,title:'{{t("Subject")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:o}},contentType:{type:"string",title:'{{t("Content type")}}',"x-decorator":"FormItem","x-component":"Radio.Group",enum:[{label:"HTML",value:"html"},{label:'{{t("Plain text")}}',value:"text"}],default:"html"},html:{type:"string",required:!0,title:'{{t("Content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:o,placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:["contentType"],fulfill:{state:{visible:'{{$deps[0] === "html"}}'}}}]},text:{type:"string",required:!0,title:'{{t("Content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:o,placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:["contentType"],fulfill:{state:{visible:'{{$deps[0] === "text"}}'}}}]}}}})},m=function(t){var o=t.variableOptions,n=p().t;return c().createElement(e.SchemaComponent,{scope:{t:n},schema:{type:"void",properties:{subject:{type:"string",required:!0,title:'{{t("Subject")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:o}},contentType:{type:"string",title:'{{t("Content type")}}',"x-decorator":"FormItem","x-component":"Radio.Group",enum:[{label:"HTML",value:"html"},{label:'{{t("Plain text")}}',value:"text"}],default:"html"},html:{type:"string",required:!0,title:'{{t("Content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:o,placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:[".contentType"],fulfill:{state:{visible:'{{$deps[0] === "html"}}'}}}]},text:{type:"string",required:!0,title:'{{t("Content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:o,placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:[".contentType"],fulfill:{state:{visible:'{{$deps[0] === "text"}}'}}}]}}}})};function f(e,t,o,n,r,i,c){try{var a=e[i](c),p=a.value}catch(e){o(e);return}a.done?t(p):Promise.resolve(p).then(n,r)}function b(e){return function(){var t=this,o=arguments;return new Promise(function(n,r){var i=e.apply(t,o);function c(e){f(i,n,r,c,a,"next",e)}function a(e){f(i,n,r,c,a,"throw",e)}c(void 0)})}}function x(e,t,o){return(x=w()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&h(r,o.prototype),r}).apply(null,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t="function"==typeof Map?new Map:void 0;return(g=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,o)}function o(){return x(e,arguments,v(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),h(o,e)})(e)}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}function I(e,t){var o,n,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:p(0)}),a(c,"throw",{value:p(1)}),a(c,"return",{value:p(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function p(a){return function(p){var l=[a,p];if(o)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(o=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],n=0}finally{o=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var S=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,t;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,t=arguments,e=v(e),function(e,t){var o;if(t&&("object"==((o=t)&&"u">typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,w()?Reflect.construct(e,t||[],v(this).constructor):e.apply(this,t))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&h(i,e),t=[{key:"afterAdd",value:function(){return b(function(){return I(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return b(function(){return I(this,function(e){return[2]})})()}},{key:"load",value:function(){return b(function(){return I(this,function(e){return this.pm.get(o()).registerChannelType({title:(0,n.tval)("Email",{ns:r}),type:"email",components:{ChannelConfigForm:l,MessageConfigForm:d,ContentConfigForm:m,ChannelConfigFormLoader:function(){return y.e("658").then(y.bind(y,153))},MessageConfigFormLoader:function(){return y.e("114").then(y.bind(y,633))}}}),[2]})}).call(this)}}],function(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(i.prototype,t),i}(g(e.Plugin)),C=S}(),T}()});
@@ -0,0 +1,10 @@
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
+
10
+ "use strict";(self.webpackChunk_nocobase_plugin_notification_email_client_v2=self.webpackChunk_nocobase_plugin_notification_email_client_v2||[]).push([["114"],{633:function(e,t,r){r.r(t),r.d(t,{MessageConfigForm:function(){return E}});var n=r(375),a=r(197),l=r(799),i=r(428),o=r(59),u=r(155),c=r.n(u),s=r(488);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t,r,n,a,l,i){try{var o=e[l](i),u=o.value}catch(e){r(e);return}o.done?t(u):Promise.resolve(u).then(n,a)}function d(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}function p(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return m(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return p(null!=e?e:[]).concat(p(r))}var v=c().createContext(null);function y(e){var t=(0,i.useSortable)({id:e.id}),r=t.attributes,n=t.isDragging,a=t.listeners,l=t.setActivatorNodeRef,o=t.setNodeRef,u=t.transform,s=t.transition;return c().createElement(v.Provider,{value:{attributes:r,listeners:a,setActivatorNodeRef:l}},c().createElement("div",{ref:o,style:d({transform:u?"translate3d(".concat(u.x,"px, ").concat(u.y,"px, 0)"):void 0,transition:s},n?{position:"relative",zIndex:1}:null)},e.children))}function h(){var e,t,r=c().useContext(v),a=o.theme.useToken().token;return c().createElement("span",(e=d({ref:null==r?void 0:r.setActivatorNodeRef},null==r?void 0:r.attributes,null==r?void 0:r.listeners),t=t={style:{alignItems:"center",color:a.colorTextTertiary,cursor:"grab",display:"inline-flex"}},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e),c().createElement(n.MenuOutlined,null))}function g(e){var t=e.formPath,r=e.title,u=e.addLabel,s=e.placeholder,m=e.required,d=e.requiredMessage,p=(0,l.useSensors)((0,l.useSensor)(l.PointerSensor,{activationConstraint:{distance:1}}));return c().createElement(o.Form.List,{name:t,rules:m?[{validator:function(e,t){var r;return(r=function(){return function(e,t){var r,n,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),o=Object.defineProperty;return o(i,"next",{value:u(0)}),o(i,"throw",{value:u(1)}),o(i,"return",{value:u(2)}),"function"==typeof Symbol&&o(i,Symbol.iterator,{value:function(){return this}}),i;function u(o){return function(u){var c=[o,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(l=0)),l;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!(a=(a=l.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){l=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){l.label=c[1];break}if(6===c[0]&&l.label<a[1]){l.label=a[1],a=c;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(c);break}a[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(e){c=[6,e],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){if(Array.isArray(t)&&t.filter(Boolean).length>0)return[2];throw Error(d)})},function(){var e=this,t=arguments;return new Promise(function(n,a){var l=r.apply(e,t);function i(e){f(l,n,a,i,o,"next",e)}function o(e){f(l,n,a,i,o,"throw",e)}i(void 0)})})()}}]:void 0},function(e,t,f){var d=t.add,b=t.remove,v=t.move,g=f.errors;return c().createElement(o.Form.Item,{label:r,required:m,validateStatus:g.length?"error":void 0,help:g[0]},c().createElement(o.Flex,{vertical:!0,gap:"small"},c().createElement(l.DndContext,{sensors:p,collisionDetection:l.closestCenter,onDragEnd:function(t){var r=t.active,n=t.over;if(n&&r.id!==n.id){var a=e.map(function(e){return String(e.key)}),l=a.indexOf(String(r.id)),i=a.indexOf(String(n.id));l<0||i<0||l===i||v(l,i)}}},c().createElement(i.SortableContext,{items:e.map(function(e){return String(e.key)}),strategy:i.verticalListSortingStrategy},c().createElement(o.Flex,{vertical:!0,gap:"small"},e.map(function(e){return c().createElement(y,{key:e.key,id:String(e.key)},c().createElement(o.Flex,{gap:"small",align:"center"},c().createElement(h,null),c().createElement(o.Form.Item,{name:e.name,noStyle:!0},c().createElement(a.WorkflowVariableInput,{placeholder:s,variableOptions:{types:["string"]}})),c().createElement(o.Button,{type:"text","aria-label":r,icon:c().createElement(n.DeleteOutlined,null),onClick:function(){return b(e.name)}})))})))),c().createElement(o.Button,{icon:c().createElement(n.PlusOutlined,null),onClick:function(){return d("")}},u)))})}function E(e){var t,r=(0,s.Yb)().t,n=null!=(t=o.Form.useWatch(b(e.namePrefix,"contentType")))?t:"html";return c().createElement(c().Fragment,null,c().createElement(g,{formPath:b(e.namePrefix,"to"),title:r("To"),addLabel:r("Add email address"),placeholder:r("Email address"),requiredMessage:r("The field value is required"),required:!0}),c().createElement(g,{formPath:b(e.namePrefix,"cc"),title:r("CC"),addLabel:r("Add email address"),placeholder:r("Email address"),requiredMessage:r("The field value is required")}),c().createElement(g,{formPath:b(e.namePrefix,"bcc"),title:r("BCC"),addLabel:r("Add email address"),placeholder:r("Email address"),requiredMessage:r("The field value is required")}),c().createElement(o.Form.Item,{name:b(e.namePrefix,"subject"),label:r("Subject"),rules:[{required:!0,message:r("The field value is required")}]},c().createElement(a.WorkflowVariableInput,null)),c().createElement(o.Form.Item,{name:b(e.namePrefix,"contentType"),label:r("Content type"),initialValue:"html"},c().createElement(o.Radio.Group,{options:[{label:"HTML",value:"html"},{label:r("Plain text"),value:"text"}]})),c().createElement(o.Form.Item,{name:b(e.namePrefix,"html"),label:r("Content"),hidden:"html"!==n,rules:"html"===n?[{required:!0,message:r("The field value is required")}]:void 0},c().createElement(a.WorkflowVariableTextArea,{autoSize:{minRows:10},placeholder:"Hi,"})),c().createElement(o.Form.Item,{name:b(e.namePrefix,"text"),label:r("Content"),hidden:"text"!==n,rules:"text"===n?[{required:!0,message:r("The field value is required")}]:void 0},c().createElement(a.WorkflowVariableTextArea,{autoSize:{minRows:10},placeholder:"Hi,"})))}t.default=E}}]);
@@ -0,0 +1,12 @@
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 type { MessageConfigFormProps } from '@nocobase/plugin-notification-manager/client-v2';
10
+ import React from 'react';
11
+ export declare function MessageConfigForm(props: MessageConfigFormProps): React.JSX.Element;
12
+ export default MessageConfigForm;
@@ -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-i18next"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("@nocobase/plugin-notification-email/client-v2",["react-i18next","@nocobase/plugin-notification-manager/client-v2","@nocobase/client-v2","react","antd","@nocobase/flow-engine"],t):"object"==typeof exports?exports["@nocobase/plugin-notification-email/client-v2"]=t(require("react-i18next"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/flow-engine")):e["@nocobase/plugin-notification-email/client-v2"]=t(e["react-i18next"],e["@nocobase/plugin-notification-manager/client-v2"],e["@nocobase/client-v2"],e.react,e.antd,e["@nocobase/flow-engine"])}(self,function(e,t,n,r,o,i){return function(){"use strict";var c,a,u,l={488:function(e,t,n){n.d(t,{CU:function(){return i},MZ:function(){return u},Yb:function(){return a}});var r=n(694),o=n(953),i="notification-email",c="@nocobase/plugin-notification-email";function a(){return(0,o.useTranslation)([i,c,"client"],{nsMode:"fallback"})}function u(e){return(0,r.tExpr)(e,{ns:[i,c,"client"]})}},485:function(e){e.exports=n},694:function(e){e.exports=i},341:function(e){e.exports=t},59:function(e){e.exports=o},155:function(e){e.exports=r},953:function(t){t.exports=e}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return l[e](n,n.exports,p),n.exports}p.m=l,p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=function(e){return Promise.all(Object.keys(p.f).reduce(function(t,n){return p.f[n](e,t),t},[]))},p.u=function(e){return""+e+".b4e6d867cd397b33.js"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s={},p.l=function(e,t,n,r){if(s[e])return void s[e].push(t);if(void 0!==n)for(var o,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var u=c[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-notification-email/client-v2:"+n){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.setAttribute("data-rspack","@nocobase/plugin-notification-email/client-v2:"+n),o.src=e),s[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=s[e];if(delete s[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},p.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.g.importScripts&&(b=p.g.location+"");var s,b,d=p.g.document;if(!b&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(b=d.currentScript.src),!b)){var v=d.getElementsByTagName("script");if(v.length)for(var h=v.length-1;h>-1&&(!b||!/^http(s?):/.test(b));)b=v[h--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");p.p=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c={889:0},p.f.j=function(e,t){var n=p.o(c,e)?c[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=c[e]=[t,r]});t.push(n[2]=r);var o=p.p+p.u(e),i=Error();p.l(o,function(t){if(p.o(c,e)&&(0!==(n=c[e])&&(c[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}},a=function(e,t){var n,r,o=t[0],i=t[1],a=t[2],u=0;if(o.some(function(e){return 0!==c[e]})){for(n in i)p.o(i,n)&&(p.m[n]=i[n]);a&&a(p)}for(e&&e(t);u<o.length;u++)r=o[u],p.o(c,r)&&c[r]&&c[r][0](),c[r]=0},(u=self.webpackChunk_nocobase_plugin_notification_email_client_v2=self.webpackChunk_nocobase_plugin_notification_email_client_v2||[]).forEach(a.bind(null,0)),u.push=a.bind(null,u.push.bind(u));var g={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/@nocobase/plugin-notification-email/dist/client-v2/")}if(!e){var r=window.__nocobase_modern_client_prefix__||"v",o="/"+(r=String(r).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var i=window.location.pathname||"/",c=i.indexOf(o);e=c>=0?i.slice(0,c+1):"/"}e&&(e=e.replace(RegExp("/"+r+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-notification-email/dist/client-v2/"}p.p=e}(),!function(){p.r(g),p.d(g,{NAMESPACE:function(){return r.CU},PluginNotificationEmailClientV2:function(){return f},default:function(){return s}});var e=p(485),t=p(341),n=p.n(t),r=p(488);function o(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function i(e,t,n){return(i=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&a(o,n.prototype),o}).apply(null,arguments)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=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 i(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var f=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,t;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,t=arguments,e=c(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">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,l()?Reflect.construct(e,t||[],c(this).constructor):e.apply(this,t))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&a(i,e),t=[{key:"beforeLoad",value:function(){var e;return(e=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(t){return(e=this.pm.get(n()))&&e.registerChannelType({type:"email",title:(0,r.MZ)("Email"),components:{ChannelConfigFormLoader:function(){return p.e("658").then(p.bind(p,153))}},meta:{creatable:!0,editable:!0,deletable:!0}}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,i){var c=e.apply(t,n);function a(e){o(c,r,i,a,u,"next",e)}function u(e){o(c,r,i,a,u,"throw",e)}a(void 0)})}).call(this)}}],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,t),i}(u(e.Plugin)),s=f}(),g}()});
10
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react-i18next"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("@dnd-kit/sortable"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@dnd-kit/core"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("@nocobase/plugin-notification-email/client-v2",["react-i18next","@nocobase/plugin-notification-manager/client-v2","@nocobase/client-v2","@dnd-kit/sortable","react","antd","@nocobase/plugin-workflow/client-v2","@ant-design/icons","@dnd-kit/core","@nocobase/flow-engine"],n):"object"==typeof exports?exports["@nocobase/plugin-notification-email/client-v2"]=n(require("react-i18next"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("@dnd-kit/sortable"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@dnd-kit/core"),require("@nocobase/flow-engine")):e["@nocobase/plugin-notification-email/client-v2"]=n(e["react-i18next"],e["@nocobase/plugin-notification-manager/client-v2"],e["@nocobase/client-v2"],e["@dnd-kit/sortable"],e.react,e.antd,e["@nocobase/plugin-workflow/client-v2"],e["@ant-design/icons"],e["@dnd-kit/core"],e["@nocobase/flow-engine"])}(self,function(e,n,t,r,o,i,c,a,u,l){return function(){"use strict";var f,s,p,b={488:function(e,n,t){t.d(n,{CU:function(){return i},MZ:function(){return u},Yb:function(){return a}});var r=t(694),o=t(953),i="notification-email",c="@nocobase/plugin-notification-email";function a(){return(0,o.useTranslation)([i,c,"client"],{nsMode:"fallback"})}function u(e){return(0,r.tExpr)(e,{ns:[i,c,"client"]})}},375:function(e){e.exports=a},799:function(e){e.exports=u},428:function(e){e.exports=r},485:function(e){e.exports=t},694:function(e){e.exports=l},341:function(e){e.exports=n},197:function(e){e.exports=c},59:function(e){e.exports=i},155:function(e){e.exports=o},953:function(n){n.exports=e}},d={};function v(e){var n=d[e];if(void 0!==n)return n.exports;var t=d[e]={exports:{}};return b[e](t,t.exports,v),t.exports}v.m=b,v.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(n,{a:n}),n},v.d=function(e,n){for(var t in n)v.o(n,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},v.f={},v.e=function(e){return Promise.all(Object.keys(v.f).reduce(function(n,t){return v.f[t](e,n),n},[]))},v.u=function(e){return""+e+"."+({114:"896af7a6658fdab6",658:"b4e6d867cd397b33"})[e]+".js"},v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},g={},v.l=function(e,n,t,r){if(g[e])return void g[e].push(n);if(void 0!==t)for(var o,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var u=c[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-notification-email/client-v2:"+t){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,v.nc&&o.setAttribute("nonce",v.nc),o.setAttribute("data-rspack","@nocobase/plugin-notification-email/client-v2:"+t),o.src=e),g[e]=[n];var l=function(n,t){o.onerror=o.onload=null,clearTimeout(f);var r=g[e];if(delete g[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(t)}),n)return n(t)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},v.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.g.importScripts&&(h=v.g.location+"");var g,h,m=v.g.document;if(!h&&m&&(m.currentScript&&"SCRIPT"===m.currentScript.tagName.toUpperCase()&&(h=m.currentScript.src),!h)){var y=m.getElementsByTagName("script");if(y.length)for(var w=y.length-1;w>-1&&(!h||!/^http(s?):/.test(h));)h=y[w--].src}if(!h)throw Error("Automatic publicPath is not supported in this browser");v.p=h.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),f={889:0},v.f.j=function(e,n){var t=v.o(f,e)?f[e]:void 0;if(0!==t)if(t)n.push(t[2]);else{var r=new Promise(function(n,r){t=f[e]=[n,r]});n.push(t[2]=r);var o=v.p+v.u(e),i=Error();v.l(o,function(n){if(v.o(f,e)&&(0!==(t=f[e])&&(f[e]=void 0),t)){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,t[1](i)}},"chunk-"+e,e)}},s=function(e,n){var t,r,o=n[0],i=n[1],c=n[2],a=0;if(o.some(function(e){return 0!==f[e]})){for(t in i)v.o(i,t)&&(v.m[t]=i[t]);c&&c(v)}for(e&&e(n);a<o.length;a++)r=o[a],v.o(f,r)&&f[r]&&f[r][0](),f[r]=0},(p=self.webpackChunk_nocobase_plugin_notification_email_client_v2=self.webpackChunk_nocobase_plugin_notification_email_client_v2||[]).forEach(s.bind(null,0)),p.push=s.bind(null,p.push.bind(p));var _={};return!function(){var e="",n="u">typeof document?document.currentScript:null;if(n&&n.src){var t=n.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");t.indexOf("/static/plugins/@nocobase/plugin-notification-email/dist/client-v2/")>=0&&(e=t.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@nocobase/plugin-notification-email/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",a=c.indexOf(i);e=a>=0?c.slice(0,a+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-notification-email/dist/client-v2/"}v.p=e}(),!function(){v.r(_),v.d(_,{NAMESPACE:function(){return r.CU},PluginNotificationEmailClientV2:function(){return f},default:function(){return s}});var e=v(485),n=v(341),t=v.n(n),r=v(488);function o(e,n,t,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){t(e);return}a.done?n(u):Promise.resolve(u).then(r,o)}function i(e,n,t){return(i=l()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&a(o,t.prototype),o}).apply(null,arguments)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,n){return(a=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function u(e){var n="function"==typeof Map?new Map:void 0;return(u=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!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return i(e,arguments,c(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var f=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,n;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,n=arguments,e=c(e),function(e,n){var t;if(n&&("object"==((t=n)&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,l()?Reflect.construct(e,n||[],c(this).constructor):e.apply(this,n))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&a(i,e),n=[{key:"beforeLoad",value:function(){var e;return(e=function(){var e;return function(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var l=[a,u];if(t)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(n){return(e=this.pm.get(t()))&&e.registerChannelType({type:"email",title:(0,r.MZ)("Email"),components:{ChannelConfigFormLoader:function(){return v.e("658").then(v.bind(v,153))},MessageConfigFormLoader:function(){return v.e("114").then(v.bind(v,633))}},meta:{creatable:!0,editable:!0,deletable:!0}}),[2]})},function(){var n=this,t=arguments;return new Promise(function(r,i){var c=e.apply(n,t);function a(e){o(c,r,i,a,u,"next",e)}function u(e){o(c,r,i,a,u,"throw",e)}a(void 0)})}).call(this)}}],function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,n),i}(u(e.Plugin)),s=f}(),_}()});
@@ -6,12 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- /**
10
- * TODO (deferred to follow-up v2 migrations):
11
- * - MessageConfigForm / ContentConfigForm: depend on `@nocobase/plugin-workflow`
12
- * v2 (workflow injects `variableOptions` into both forms). Will be added when
13
- * workflow's client-v2 lands.
14
- */
15
9
  import { Plugin } from '@nocobase/client-v2';
16
10
  import type { Application } from '@nocobase/client-v2';
17
11
  import { NAMESPACE } from './locale';
@@ -8,13 +8,17 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.2.0-alpha.1",
11
+ "@nocobase/client": "2.2.0-alpha.2",
12
12
  "react": "18.2.0",
13
- "@nocobase/plugin-notification-manager": "2.2.0-alpha.1",
14
- "@nocobase/utils": "2.2.0-alpha.1",
15
- "@nocobase/flow-engine": "2.2.0-alpha.1",
13
+ "@nocobase/plugin-notification-manager": "2.2.0-alpha.2",
14
+ "@nocobase/utils": "2.2.0-alpha.2",
15
+ "@nocobase/flow-engine": "2.2.0-alpha.2",
16
16
  "react-i18next": "11.18.6",
17
- "@nocobase/client-v2": "2.2.0-alpha.1",
18
- "@nocobase/server": "2.2.0-alpha.1",
19
- "antd": "5.24.2"
17
+ "@nocobase/client-v2": "2.2.0-alpha.2",
18
+ "@nocobase/server": "2.2.0-alpha.2",
19
+ "antd": "5.24.2",
20
+ "@ant-design/icons": "5.6.1",
21
+ "@nocobase/plugin-workflow": "2.2.0-alpha.2",
22
+ "@dnd-kit/core": "6.1.0",
23
+ "@dnd-kit/sortable": "7.0.2"
20
24
  };
@@ -7,6 +7,7 @@
7
7
  "Content": "Content",
8
8
  "Content type": "Content type",
9
9
  "Email": "Email",
10
+ "Email address": "Email address",
10
11
  "From": "From",
11
12
  "Host": "Host",
12
13
  "In most cases, if using port 465, set it to true; otherwise, set it to false.": "In most cases, if using port 465, set it to true; otherwise, set it to false.",
@@ -23,4 +24,4 @@
23
24
  "To": "To",
24
25
  "Transport": "Transport",
25
26
  "Yes": "Yes"
26
- }
27
+ }
@@ -7,6 +7,7 @@
7
7
  "Content": "内容",
8
8
  "Content type": "内容格式",
9
9
  "Email": "邮件",
10
+ "Email address": "邮件地址",
10
11
  "From": "发件人",
11
12
  "Host": "主机",
12
13
  "In most cases, if using port 465, set it to true; otherwise, set it to false.": "通常情况下,如果使用端口 465 ,请设置为 true ;否则,请设置为 false 。",
@@ -23,4 +24,4 @@
23
24
  "To": "收件人",
24
25
  "Transport": "传输方式",
25
26
  "Yes": "是"
26
- }
27
+ }
@@ -1 +1 @@
1
- {"name":"nodemailer","version":"6.9.7","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"grunt --trace-warnings","update":"rm -rf node_modules/ package-lock.json && ncu -u && npm install"},"repository":{"type":"git","url":"https://github.com/nodemailer/nodemailer.git"},"keywords":["Nodemailer"],"author":"Andris Reinman","license":"MIT-0","bugs":{"url":"https://github.com/nodemailer/nodemailer/issues"},"homepage":"https://nodemailer.com/","devDependencies":{"@aws-sdk/client-ses":"3.433.0","aws-sdk":"2.1478.0","bunyan":"1.8.15","chai":"4.3.10","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.0.0","grunt":"1.6.1","grunt-cli":"1.4.3","grunt-eslint":"24.3.0","grunt-mocha-test":"0.13.3","libbase64":"1.2.1","libmime":"5.2.1","libqp":"2.0.1","mocha":"10.2.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","sinon":"17.0.0","smtp-server":"3.13.0"},"engines":{"node":">=6.0.0"},"_lastModified":"2026-06-10T18:13:44.526Z"}
1
+ {"name":"nodemailer","version":"6.9.7","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"grunt --trace-warnings","update":"rm -rf node_modules/ package-lock.json && ncu -u && npm install"},"repository":{"type":"git","url":"https://github.com/nodemailer/nodemailer.git"},"keywords":["Nodemailer"],"author":"Andris Reinman","license":"MIT-0","bugs":{"url":"https://github.com/nodemailer/nodemailer/issues"},"homepage":"https://nodemailer.com/","devDependencies":{"@aws-sdk/client-ses":"3.433.0","aws-sdk":"2.1478.0","bunyan":"1.8.15","chai":"4.3.10","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.0.0","grunt":"1.6.1","grunt-cli":"1.4.3","grunt-eslint":"24.3.0","grunt-mocha-test":"0.13.3","libbase64":"1.2.1","libmime":"5.2.1","libqp":"2.0.1","mocha":"10.2.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","sinon":"17.0.0","smtp-server":"3.13.0"},"engines":{"node":">=6.0.0"},"_lastModified":"2026-06-26T03:52:02.570Z"}
@@ -0,0 +1,127 @@
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
+ declare const _default: {
10
+ openapi: string;
11
+ info: {
12
+ title: string;
13
+ };
14
+ paths: {};
15
+ components: {
16
+ schemas: {
17
+ EmailNotificationChannelOptions: {
18
+ type: string;
19
+ required: string[];
20
+ properties: {
21
+ transport: {
22
+ type: string;
23
+ enum: string[];
24
+ default: string;
25
+ };
26
+ host: {
27
+ type: string;
28
+ example: string;
29
+ };
30
+ port: {
31
+ type: string;
32
+ minimum: number;
33
+ maximum: number;
34
+ default: number;
35
+ };
36
+ secure: {
37
+ type: string;
38
+ default: boolean;
39
+ description: string;
40
+ };
41
+ account: {
42
+ type: string;
43
+ example: string;
44
+ };
45
+ password: {
46
+ type: string;
47
+ format: string;
48
+ description: string;
49
+ };
50
+ from: {
51
+ type: string;
52
+ example: string;
53
+ };
54
+ };
55
+ additionalProperties: boolean;
56
+ };
57
+ EmailNotificationMessage: {
58
+ type: string;
59
+ required: string[];
60
+ properties: {
61
+ to: {
62
+ type: string;
63
+ items: {
64
+ type: string;
65
+ format: string;
66
+ };
67
+ };
68
+ cc: {
69
+ type: string;
70
+ items: {
71
+ type: string;
72
+ format: string;
73
+ };
74
+ };
75
+ bcc: {
76
+ type: string;
77
+ items: {
78
+ type: string;
79
+ format: string;
80
+ };
81
+ };
82
+ subject: {
83
+ type: string;
84
+ };
85
+ contentType: {
86
+ type: string;
87
+ enum: string[];
88
+ default: string;
89
+ };
90
+ html: {
91
+ type: string;
92
+ description: string;
93
+ };
94
+ text: {
95
+ type: string;
96
+ description: string;
97
+ };
98
+ };
99
+ additionalProperties: boolean;
100
+ };
101
+ EmailNotificationChannel: {
102
+ type: string;
103
+ required: string[];
104
+ properties: {
105
+ name: {
106
+ type: string;
107
+ };
108
+ title: {
109
+ type: string;
110
+ };
111
+ description: {
112
+ type: string;
113
+ };
114
+ notificationType: {
115
+ type: string;
116
+ enum: string[];
117
+ };
118
+ options: {
119
+ $ref: string;
120
+ };
121
+ };
122
+ additionalProperties: boolean;
123
+ };
124
+ };
125
+ };
126
+ };
127
+ export default _default;
@@ -0,0 +1,149 @@
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
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var swagger_exports = {};
28
+ __export(swagger_exports, {
29
+ default: () => swagger_default
30
+ });
31
+ module.exports = __toCommonJS(swagger_exports);
32
+ var swagger_default = {
33
+ openapi: "3.0.2",
34
+ info: {
35
+ title: "NocoBase API - Notification email plugin"
36
+ },
37
+ paths: {},
38
+ components: {
39
+ schemas: {
40
+ EmailNotificationChannelOptions: {
41
+ type: "object",
42
+ required: ["transport", "host", "port", "secure", "account", "password", "from"],
43
+ properties: {
44
+ transport: {
45
+ type: "string",
46
+ enum: ["smtp"],
47
+ default: "smtp"
48
+ },
49
+ host: {
50
+ type: "string",
51
+ example: "smtp.example.com"
52
+ },
53
+ port: {
54
+ type: "integer",
55
+ minimum: 1,
56
+ maximum: 65535,
57
+ default: 465
58
+ },
59
+ secure: {
60
+ type: "boolean",
61
+ default: true,
62
+ description: "Usually true for port 465; verify with the SMTP provider for other ports."
63
+ },
64
+ account: {
65
+ type: "string",
66
+ example: "example@domain.com"
67
+ },
68
+ password: {
69
+ type: "string",
70
+ format: "password",
71
+ description: "SMTP password or provider app password. Do not expose this value in logs."
72
+ },
73
+ from: {
74
+ type: "string",
75
+ example: "noreply <example@domain.com>"
76
+ }
77
+ },
78
+ additionalProperties: true
79
+ },
80
+ EmailNotificationMessage: {
81
+ type: "object",
82
+ required: ["to", "subject", "contentType"],
83
+ properties: {
84
+ to: {
85
+ type: "array",
86
+ items: {
87
+ type: "string",
88
+ format: "email"
89
+ }
90
+ },
91
+ cc: {
92
+ type: "array",
93
+ items: {
94
+ type: "string",
95
+ format: "email"
96
+ }
97
+ },
98
+ bcc: {
99
+ type: "array",
100
+ items: {
101
+ type: "string",
102
+ format: "email"
103
+ }
104
+ },
105
+ subject: {
106
+ type: "string"
107
+ },
108
+ contentType: {
109
+ type: "string",
110
+ enum: ["html", "text"],
111
+ default: "html"
112
+ },
113
+ html: {
114
+ type: "string",
115
+ description: "Required when `contentType` is `html`."
116
+ },
117
+ text: {
118
+ type: "string",
119
+ description: "Required when `contentType` is `text`."
120
+ }
121
+ },
122
+ additionalProperties: true
123
+ },
124
+ EmailNotificationChannel: {
125
+ type: "object",
126
+ required: ["name", "title", "notificationType", "options"],
127
+ properties: {
128
+ name: {
129
+ type: "string"
130
+ },
131
+ title: {
132
+ type: "string"
133
+ },
134
+ description: {
135
+ type: "string"
136
+ },
137
+ notificationType: {
138
+ type: "string",
139
+ enum: ["email"]
140
+ },
141
+ options: {
142
+ $ref: "#/components/schemas/EmailNotificationChannelOptions"
143
+ }
144
+ },
145
+ additionalProperties: true
146
+ }
147
+ }
148
+ }
149
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-notification-email",
3
- "version": "2.2.0-alpha.1",
3
+ "version": "2.2.0-alpha.2",
4
4
  "displayName": "Notification: Email",
5
5
  "displayName.ru-RU": "Уведомления: Электронная почта (Email)",
6
6
  "displayName.zh-CN": "通知:电子邮件",
@@ -12,6 +12,8 @@
12
12
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/notification-email",
13
13
  "main": "dist/server/index.js",
14
14
  "devDependencies": {
15
+ "@dnd-kit/core": "^6.0.0",
16
+ "@dnd-kit/sortable": "^7.0.0",
15
17
  "@types/nodemailer": "^6.x",
16
18
  "nodemailer": "^6.x"
17
19
  },
@@ -19,6 +21,7 @@
19
21
  "@nocobase/client": "2.x",
20
22
  "@nocobase/client-v2": "2.x",
21
23
  "@nocobase/plugin-notification-manager": "2.x",
24
+ "@nocobase/plugin-workflow": "2.x",
22
25
  "@nocobase/server": "2.x",
23
26
  "@nocobase/test": "2.x"
24
27
  },
@@ -26,5 +29,5 @@
26
29
  "Notification"
27
30
  ],
28
31
  "license": "Apache-2.0",
29
- "gitHead": "303663aba6c6eefa27e6a6435b4c0352074ec40f"
32
+ "gitHead": "9dd5224bb8f6c1ac12d766b9f175bdc29bddd845"
30
33
  }