@nocobase/plugin-workflow-mailer 1.4.0-alpha.20241020033334 → 1.4.0-alpha.20241024133132

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.
@@ -45,7 +45,9 @@ export default class extends Instruction {
45
45
  'x-decorator': string;
46
46
  'x-component': string;
47
47
  'x-component-props': {
48
- useTypedConstant: string[];
48
+ useTypedConstant: (string | {
49
+ placeholder: string;
50
+ })[][];
49
51
  };
50
52
  };
51
53
  };
@@ -121,12 +123,13 @@ export default class extends Instruction {
121
123
  properties: {
122
124
  'auth.user': {
123
125
  type: string;
124
- required: boolean;
125
126
  title: string;
126
127
  'x-decorator': string;
127
128
  'x-component': string;
128
129
  'x-component-props': {
129
- useTypedConstant: string[];
130
+ useTypedConstant: (string | {
131
+ placeholder: string;
132
+ })[][];
130
133
  };
131
134
  };
132
135
  };
@@ -137,7 +140,6 @@ export default class extends Instruction {
137
140
  properties: {
138
141
  'auth.pass': {
139
142
  type: string;
140
- required: boolean;
141
143
  title: string;
142
144
  'x-decorator': string;
143
145
  'x-component': string;
@@ -162,7 +164,9 @@ export default class extends Instruction {
162
164
  'x-decorator': string;
163
165
  'x-component': string;
164
166
  'x-component-props': {
165
- useTypedConstant: string[];
167
+ useTypedConstant: (string | {
168
+ placeholder: string;
169
+ })[][];
166
170
  };
167
171
  };
168
172
  to: {
@@ -291,7 +295,6 @@ export default class extends Instruction {
291
295
  };
292
296
  subject: {
293
297
  type: string;
294
- required: boolean;
295
298
  title: string;
296
299
  'x-decorator': string;
297
300
  'x-component': string;
@@ -309,7 +312,6 @@ export default class extends Instruction {
309
312
  };
310
313
  html: {
311
314
  type: string;
312
- required: boolean;
313
315
  title: string;
314
316
  'x-decorator': string;
315
317
  'x-decorator-props': {};
@@ -331,7 +333,6 @@ export default class extends Instruction {
331
333
  };
332
334
  text: {
333
335
  type: string;
334
- required: boolean;
335
336
  title: string;
336
337
  'x-decorator': string;
337
338
  'x-decorator-props': {};
@@ -7,10 +7,10 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- (function(o,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("@nocobase/client"),require("@formily/antd-v5"),require("@nocobase/plugin-workflow/client"),require("react-i18next")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client","@formily/antd-v5","@nocobase/plugin-workflow/client","react-i18next"],t):(o=typeof globalThis!="undefined"?globalThis:o||self,t(o["@nocobase/plugin-workflow-mailer"]={},o["@nocobase/client"],o["@formily/antd-v5"],o["@nocobase/plugin-workflow"]))})(this,function(o,t,r,s){"use strict";var l=Object.defineProperty;var x=(o,t,r)=>t in o?l(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r;var p=(o,t,r)=>(x(o,typeof t!="symbol"?t+"":t,r),r);var m=(o,t,r)=>new Promise((s,e)=>{var a=n=>{try{i(r.next(n))}catch(d){e(d)}},c=n=>{try{i(r.throw(n))}catch(d){e(d)}},i=n=>n.done?s(n.value):Promise.resolve(n.value).then(a,c);i((r=r.apply(o,t)).next())});const e="workflow-mailer",a=t.css`
10
+ (function(o,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("@nocobase/client"),require("@formily/antd-v5"),require("@nocobase/plugin-workflow/client"),require("react-i18next")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client","@formily/antd-v5","@nocobase/plugin-workflow/client","react-i18next"],t):(o=typeof globalThis!="undefined"?globalThis:o||self,t(o["@nocobase/plugin-workflow-mailer"]={},o["@nocobase/client"],o["@formily/antd-v5"],o["@nocobase/plugin-workflow"]))})(this,function(o,t,r,a){"use strict";var c=Object.defineProperty;var x=(o,t,r)=>t in o?c(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r;var p=(o,t,r)=>(x(o,typeof t!="symbol"?t+"":t,r),r);var d=(o,t,r)=>new Promise((a,e)=>{var s=n=>{try{i(r.next(n))}catch(m){e(m)}},l=n=>{try{i(r.throw(n))}catch(m){e(m)}},i=n=>n.done?a(n.value):Promise.resolve(n.value).then(s,l);i((r=r.apply(o,t)).next())});const e="workflow-mailer",s=t.css`
11
11
  width: 100%;
12
12
 
13
13
  .ant-space-item:nth-child(2) {
14
14
  flex-grow: 1;
15
15
  }
16
- `;class c extends s.Instruction{constructor(){super(...arguments);p(this,"title",`{{t("Mailer", { ns: "${e}" })}}`);p(this,"type","mailer");p(this,"group","extended");p(this,"description",`{{t("Send email. You can use the variables in the upstream nodes as receivers, subject and content of the email.", { ns: "${e}" })}}`);p(this,"fieldset",{provider:{type:"object",properties:{server:{type:"void","x-decorator":"SchemaComponentContext.Provider","x-decorator-props":{value:{designable:!1}},"x-component":"Grid",properties:{row:{type:"void","x-component":"Grid.Row",properties:{host:{type:"void","x-component":"Grid.Col","x-component-props":{width:50},properties:{host:{type:"string",required:!0,title:`{{t("SMTP host", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:["string"]}}}},port:{type:"void","x-component":"Grid.Col","x-component-props":{width:25},properties:{port:{type:"number",required:!0,title:`{{t("Port", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["number",{min:1,max:65535,step:1}]]},default:465}}},secure:{type:"void","x-component":"Grid.Col","x-component-props":{width:25},properties:{secure:{type:"boolean",title:`{{t("Secure", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["boolean",{style:{width:"100%"}}]]},default:!0}}}}}}},auth:{type:"void","x-decorator":"SchemaComponentContext.Provider","x-decorator-props":{value:{designable:!1}},"x-component":"Grid",properties:{row:{type:"void","x-component":"Grid.Row",properties:{user:{type:"void","x-component":"Grid.Col",properties:{"auth.user":{type:"string",required:!0,title:`{{t("User", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:["string"]}}}},pass:{type:"void","x-component":"Grid.Col",properties:{"auth.pass":{type:"string",required:!0,title:`{{t("Password", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["string",{type:"password"}]]}}}}}}}}}},from:{type:"string",required:!0,title:`{{t("From", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:["string"]}},to:{type:"array",required:!0,title:`{{t("To", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:a},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{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", { ns: "${e}" })}}`,"x-component":"ArrayItems.Addition"}}},cc:{type:"array",title:`{{t("CC", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:a},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{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", { ns: "${e}" })}}`,"x-component":"ArrayItems.Addition"}}},bcc:{type:"array",title:`{{t("BCC", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:a},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{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", { ns: "${e}" })}}`,"x-component":"ArrayItems.Addition"}}},subject:{type:"string",required:!0,title:`{{t("Subject", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableTextArea"},contentType:{type:"string",title:`{{t("Content type", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"Radio.Group",enum:[{label:"HTML",value:"html"},{label:`{{t("Plain text", { ns: "${e}" })}}`,value:"text"}],default:"html"},html:{type:"string",required:!0,title:`{{t("Content", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-decorator-props":{},"x-component":"WorkflowVariableRawTextArea","x-component-props":{placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:["contentType"],fulfill:{state:{visible:'{{$deps[0] === "html"}}'}}}]},text:{type:"string",required:!0,title:`{{t("Content", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-decorator-props":{},"x-component":"WorkflowVariableRawTextArea","x-component-props":{placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:["contentType"],fulfill:{state:{visible:'{{$deps[0] === "text"}}'}}}]},ignoreFail:{type:"boolean","x-content":`{{t("Ignore failed sending and continue workflow", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"Checkbox"}});p(this,"components",{ArrayItems:r.ArrayItems,SchemaComponentContext:t.SchemaComponentContext,WorkflowVariableInput:s.WorkflowVariableInput,WorkflowVariableTextArea:s.WorkflowVariableTextArea,WorkflowVariableRawTextArea:s.WorkflowVariableRawTextArea})}}class i extends t.Plugin{afterAdd(){return m(this,null,function*(){})}beforeLoad(){return m(this,null,function*(){})}load(){return m(this,null,function*(){this.app.pm.get("workflow").registerInstruction("mailer",c)})}}o.default=i,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
16
+ `;class l extends a.Instruction{constructor(){super(...arguments);p(this,"title",`{{t("Mailer", { ns: "${e}" })}}`);p(this,"type","mailer");p(this,"group","extended");p(this,"description",`{{t("Send email. You can use the variables in the upstream nodes as receivers, subject and content of the email.", { ns: "${e}" })}}`);p(this,"fieldset",{provider:{type:"object",properties:{server:{type:"void","x-decorator":"SchemaComponentContext.Provider","x-decorator-props":{value:{designable:!1}},"x-component":"Grid",properties:{row:{type:"void","x-component":"Grid.Row",properties:{host:{type:"void","x-component":"Grid.Col","x-component-props":{width:50},properties:{host:{type:"string",required:!0,title:`{{t("SMTP host", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["string",{placeholder:"smtp.example.com"}]]}}}},port:{type:"void","x-component":"Grid.Col","x-component-props":{width:25},properties:{port:{type:"number",required:!0,title:`{{t("Port", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["number",{min:1,max:65535,step:1}]]},default:465}}},secure:{type:"void","x-component":"Grid.Col","x-component-props":{width:25},properties:{secure:{type:"boolean",title:`{{t("Secure", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["boolean",{style:{width:"100%"}}]]},default:!0}}}}}}},auth:{type:"void","x-decorator":"SchemaComponentContext.Provider","x-decorator-props":{value:{designable:!1}},"x-component":"Grid",properties:{row:{type:"void","x-component":"Grid.Row",properties:{user:{type:"void","x-component":"Grid.Col",properties:{"auth.user":{type:"string",title:`{{t("User", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["string",{placeholder:"example@domain.com"}]]}}}},pass:{type:"void","x-component":"Grid.Col",properties:{"auth.pass":{type:"string",title:`{{t("Password", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["string",{type:"password"}]]}}}}}}}}}},from:{type:"string",required:!0,title:`{{t("From", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:[["string",{placeholder:"noreply <example@domain.com>"}]]}},to:{type:"array",required:!0,title:`{{t("To", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:s},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{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", { ns: "${e}" })}}`,"x-component":"ArrayItems.Addition"}}},cc:{type:"array",title:`{{t("CC", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:s},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{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", { ns: "${e}" })}}`,"x-component":"ArrayItems.Addition"}}},bcc:{type:"array",title:`{{t("BCC", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space","x-component-props":{className:s},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{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", { ns: "${e}" })}}`,"x-component":"ArrayItems.Addition"}}},subject:{type:"string",title:`{{t("Subject", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"WorkflowVariableTextArea"},contentType:{type:"string",title:`{{t("Content type", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"Radio.Group",enum:[{label:"HTML",value:"html"},{label:`{{t("Plain text", { ns: "${e}" })}}`,value:"text"}],default:"html"},html:{type:"string",title:`{{t("Content", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-decorator-props":{},"x-component":"WorkflowVariableRawTextArea","x-component-props":{placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:["contentType"],fulfill:{state:{visible:'{{$deps[0] === "html"}}'}}}]},text:{type:"string",title:`{{t("Content", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-decorator-props":{},"x-component":"WorkflowVariableRawTextArea","x-component-props":{placeholder:"Hi,",autoSize:{minRows:10}},"x-reactions":[{dependencies:["contentType"],fulfill:{state:{visible:'{{$deps[0] === "text"}}'}}}]},ignoreFail:{type:"boolean","x-content":`{{t("Ignore failed sending and continue workflow", { ns: "${e}" })}}`,"x-decorator":"FormItem","x-component":"Checkbox"}});p(this,"components",{ArrayItems:r.ArrayItems,SchemaComponentContext:t.SchemaComponentContext,WorkflowVariableInput:a.WorkflowVariableInput,WorkflowVariableTextArea:a.WorkflowVariableTextArea,WorkflowVariableRawTextArea:a.WorkflowVariableRawTextArea})}}class i extends t.Plugin{afterAdd(){return d(this,null,function*(){})}beforeLoad(){return d(this,null,function*(){})}load(){return d(this,null,function*(){this.app.pm.get("workflow").registerInstruction("mailer",l)})}}o.default=i,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -9,8 +9,8 @@
9
9
 
10
10
  module.exports = {
11
11
  "@formily/antd-v5": "1.1.9",
12
- "@nocobase/client": "1.4.0-alpha.20241020033334",
13
- "@nocobase/plugin-workflow": "1.4.0-alpha.20241020033334",
12
+ "@nocobase/client": "1.4.0-alpha.20241024133132",
13
+ "@nocobase/plugin-workflow": "1.4.0-alpha.20241024133132",
14
14
  "react-i18next": "11.18.6",
15
- "@nocobase/server": "1.4.0-alpha.20241020033334"
15
+ "@nocobase/server": "1.4.0-alpha.20241024133132"
16
16
  };
@@ -1 +1 @@
1
- {"name":"nodemailer","version":"6.9.13","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","test:coverage":"c8 node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","lint":"eslint .","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.529.1","bunyan":"1.8.15","c8":"9.1.0","eslint":"8.57.0","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.1.0","libbase64":"1.3.0","libmime":"5.3.4","libqp":"2.1.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","smtp-server":"3.13.3"},"engines":{"node":">=6.0.0"},"_lastModified":"2024-10-20T03:48:11.791Z"}
1
+ {"name":"nodemailer","version":"6.9.13","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","test:coverage":"c8 node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","lint":"eslint .","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.529.1","bunyan":"1.8.15","c8":"9.1.0","eslint":"8.57.0","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.1.0","libbase64":"1.3.0","libmime":"5.3.4","libqp":"2.1.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","smtp-server":"3.13.3"},"engines":{"node":">=6.0.0"},"_lastModified":"2024-10-24T13:47:31.441Z"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "工作流:邮件发送节点",
5
5
  "description": "Send email in workflow.",
6
6
  "description.zh-CN": "可用于在工作流中发送电子邮件。",
7
- "version": "1.4.0-alpha.20241020033334",
7
+ "version": "1.4.0-alpha.20241024133132",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/workflow-smtp-mailer",
@@ -21,7 +21,7 @@
21
21
  "@nocobase/server": "1.x",
22
22
  "@nocobase/test": "1.x"
23
23
  },
24
- "gitHead": "e99a8cf94fd0cf26db7fe7f82745d6345d80c48b",
24
+ "gitHead": "d127161994b06678d2d41f406fe73221242a1a05",
25
25
  "keywords": [
26
26
  "NocoBase",
27
27
  "Workflow",
File without changes