@nocobase/plugin-workflow-notification 2.1.11 → 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.
package/client-v2.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client-v2';
2
+ export { default } from './dist/client-v2';
package/client-v2.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client-v2/index.js');
@@ -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_workflow_notification=self.webpackChunk_nocobase_plugin_workflow_notification||[]).push([["471"],{242:function(e,n,o){o.d(n,{NotificationFieldset:function(){return f}});var i=o(155),t=o.n(i),a=o(341),r=o(197),l=o(59),c=o(488);function f(){var e=(0,c.kj)(),n=(0,r.useWorkflowVariableOptions)();return t().createElement(t().Fragment,null,t().createElement(a.MessageConfigForm,{namePrefix:["config"],variableOptions:n}),t().createElement(l.Form.Item,{name:["config","ignoreFail"],valuePropName:"checked"},t().createElement(l.Checkbox,null,e("Ignore failure and continue workflow"))))}}}]);
@@ -6,28 +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
- import React from 'react';
10
- import { Instruction } from '@nocobase/plugin-workflow/client';
11
- export default class extends Instruction {
12
- title: string;
13
- type: string;
14
- group: string;
15
- description: string;
16
- icon: React.JSX.Element;
17
- fieldset: {
18
- message: {
19
- type: string;
20
- 'x-component': string;
21
- };
22
- ignoreFail: {
23
- type: string;
24
- 'x-content': string;
25
- 'x-decorator': string;
26
- 'x-component': string;
27
- };
28
- };
29
- components: {
30
- LocalProvider: () => React.JSX.Element;
31
- };
32
- testable: boolean;
9
+ import V2NotificationInstruction from '../client-v2/NotificationInstruction';
10
+ export default class NotificationInstruction extends V2NotificationInstruction {
33
11
  }
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-i18next"),require("@nocobase/client"),require("@nocobase/plugin-notification-manager/client"),require("@ant-design/icons"),require("@nocobase/plugin-workflow/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-notification",["react","react-i18next","@nocobase/client","@nocobase/plugin-notification-manager/client","@ant-design/icons","@nocobase/plugin-workflow/client"],e):"object"==typeof exports?exports["@nocobase/plugin-workflow-notification"]=e(require("react"),require("react-i18next"),require("@nocobase/client"),require("@nocobase/plugin-notification-manager/client"),require("@ant-design/icons"),require("@nocobase/plugin-workflow/client")):t["@nocobase/plugin-workflow-notification"]=e(t.react,t["react-i18next"],t["@nocobase/client"],t["@nocobase/plugin-notification-manager/client"],t["@ant-design/icons"],t["@nocobase/plugin-workflow/client"])}(self,function(t,e,n,o,r,i){return function(){"use strict";var c={375:function(t){t.exports=r},342:function(t){t.exports=n},486:function(t){t.exports=o},990:function(t){t.exports=i},155:function(e){e.exports=t},953:function(t){t.exports=e}},u={};function a(t){var e=u[t];if(void 0!==e)return e.exports;var n=u[t]={exports:{}};return c[t](n,n.exports,a),n.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.g.importScripts&&(l=a.g.location+"");var l,f=a.g.document;if(!l&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(l=f.currentScript.src),!l)){var p=f.getElementsByTagName("script");if(p.length)for(var s=p.length-1;s>-1&&(!l||!/^http(s?):/.test(l));)l=p[s--].src}if(!l)throw Error("Automatic publicPath is not supported in this browser");a.p=l.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var b={};return!function(){var t="",e="u">typeof document?document.currentScript:null;if(e&&e.src){var n=e.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@nocobase/plugin-workflow-notification/dist/client/")>=0&&(t=n.replace(/\/[^\/]+$/,"/"))}if(!t){var o=window.__webpack_public_path__||"";o&&("/"!==o.charAt(o.length-1)&&(o+="/"),t=o+"static/plugins/@nocobase/plugin-workflow-notification/dist/client/")}if(!t){var r=window.__nocobase_modern_client_prefix__||"v",i="/"+(r=String(r).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(t=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",u=c.indexOf(i);t=u>=0?c.slice(0,u+1):"/"}t&&(t=t.replace(RegExp("/"+r+"/?$"),"/")),t||(t="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t+="static/plugins/@nocobase/plugin-workflow-notification/dist/client/"}a.p=t}(),!function(){a.r(b),a.d(b,{default:function(){return x}});var t=a(342),e=a(155),n=a.n(e),o=a(375),r=a(990),i=a(486);a(953);var c="workflow-notification";function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}var s=function(){var t=(0,r.useWorkflowVariableOptions)();return n().createElement(i.MessageConfigForm,{variableOptions:t})},y=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function e(){var t,r,i;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return r=e,i=arguments,r=l(r),u(t=function(t,e){var n;if(e&&("object"==((n=e)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,p()?Reflect.construct(r,i||[],l(this).constructor):r.apply(this,i)),"title",'{{t("Notification", { ns: "'.concat(c,'" })}}')),u(t,"type","notification"),u(t,"group","extended"),u(t,"description",'{{t("Send notification. You can use the variables in the upstream nodes as content and ohter config.", { ns: "'.concat(c,'" })}}')),u(t,"icon",n().createElement(o.NotificationOutlined,null)),u(t,"fieldset",{message:{type:"void","x-component":"LocalProvider"},ignoreFail:{type:"boolean","x-content":'{{t("Ignore failure and continue workflow", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"Checkbox"}}),u(t,"components",{LocalProvider:s}),u(t,"testable",!0),t}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t),e}(r.Instruction);function d(t,e,n,o,r,i,c){try{var u=t[i](c),a=u.value}catch(t){n(t);return}u.done?e(a):Promise.resolve(a).then(o,r)}function h(t){return function(){var e=this,n=arguments;return new Promise(function(o,r){var i=t.apply(e,n);function c(t){d(i,o,r,c,u,"next",t)}function u(t){d(i,o,r,c,u,"throw",t)}c(void 0)})}}function v(t,e,n){return(v=_()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&w(r,n.prototype),r}).apply(null,arguments)}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e="function"==typeof Map?new Map:void 0;return(m=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return v(t,arguments,g(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),w(n,t)})(t)}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_=function(){return!!t})()}function O(t,e){var n,o,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),u=Object.defineProperty;return u(c,"next",{value:a(0)}),u(c,"throw",{value:a(1)}),u(c,"return",{value:a(2)}),"function"==typeof Symbol&&u(c,Symbol.iterator,{value:function(){return this}}),c;function a(u){return function(a){var l=[u,a];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=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++,o=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=e.call(t,i)}catch(t){l=[6,t],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var x=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function n(){var t,e;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return t=n,e=arguments,t=g(t),function(t,e){var n;if(e&&("object"==((n=e)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,_()?Reflect.construct(t,e||[],g(this).constructor):t.apply(this,e))}return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&w(n,t),e=[{key:"afterAdd",value:function(){return h(function(){return O(this,function(t){return[2]})})()}},{key:"beforeLoad",value:function(){return h(function(){return O(this,function(t){return[2]})})()}},{key:"load",value:function(){return h(function(){return O(this,function(t){return this.app.pm.get("workflow").registerInstruction("notification",y),[2]})}).call(this)}}],function(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}(n.prototype,e),n}(m(t.Plugin))}(),b}()});
10
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@nocobase/plugin-notification-manager/client-v2"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-notification",["@nocobase/plugin-notification-manager/client-v2","react","antd","@nocobase/plugin-workflow/client-v2","@nocobase/client","@ant-design/icons","@nocobase/flow-engine"],e):"object"==typeof exports?exports["@nocobase/plugin-workflow-notification"]=e(require("@nocobase/plugin-notification-manager/client-v2"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/flow-engine")):t["@nocobase/plugin-workflow-notification"]=e(t["@nocobase/plugin-notification-manager/client-v2"],t.react,t.antd,t["@nocobase/plugin-workflow/client-v2"],t["@nocobase/client"],t["@ant-design/icons"],t["@nocobase/flow-engine"])}(self,function(t,e,n,o,r,i,c){return function(){"use strict";var u,a,l,f={488:function(t,e,n){n.d(e,{MZ:function(){return a},kj:function(){return u}});var o=n(694);function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){var o;o=n[e],e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o})}return t}var i="workflow-notification",c="@nocobase/plugin-workflow-notification";function u(){var t=(0,o.useFlowEngine)();return function(e,n){return t.context.t(e,r({ns:[i,c,"client"],nsMode:"fallback"},n))}}function a(t,e){return(0,o.tExpr)(t,r({ns:[i,c,"client"],nsMode:"fallback"},e))}},375:function(t){t.exports=i},342:function(t){t.exports=r},694:function(t){t.exports=c},341:function(e){e.exports=t},197:function(t){t.exports=o},59:function(t){t.exports=n},155:function(t){t.exports=e}},s={};function p(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return f[t](n,n.exports,p),n.exports}p.m=f,p.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return p.d(e,{a:e}),e},p.d=function(t,e){for(var n in e)p.o(e,n)&&!p.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},p.f={},p.e=function(t){return Promise.all(Object.keys(p.f).reduce(function(e,n){return p.f[n](t,e),e},[]))},p.u=function(t){return""+t+".1fa04987d27c5a6b.js"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),p.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},b={},p.l=function(t,e,n,o){if(b[t])return void b[t].push(e);if(void 0!==n)for(var r,i,c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var a=c[u];if(a.getAttribute("src")==t||a.getAttribute("data-rspack")=="@nocobase/plugin-workflow-notification:"+n){r=a;break}}r||(i=!0,(r=document.createElement("script")).timeout=120,p.nc&&r.setAttribute("nonce",p.nc),r.setAttribute("data-rspack","@nocobase/plugin-workflow-notification:"+n),r.src=t),b[t]=[e];var l=function(e,n){r.onerror=r.onload=null,clearTimeout(f);var o=b[t];if(delete b[t],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach(function(t){return t(n)}),e)return e(n)},f=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)},p.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},p.g.importScripts&&(d=p.g.location+"");var b,d,y=p.g.document;if(!d&&y&&(y.currentScript&&"SCRIPT"===y.currentScript.tagName.toUpperCase()&&(d=y.currentScript.src),!d)){var h=y.getElementsByTagName("script");if(h.length)for(var v=h.length-1;v>-1&&(!d||!/^http(s?):/.test(d));)d=h[v--].src}if(!d)throw Error("Automatic publicPath is not supported in this browser");p.p=d.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u={889:0},p.f.j=function(t,e){var n=p.o(u,t)?u[t]:void 0;if(0!==n)if(n)e.push(n[2]);else{var o=new Promise(function(e,o){n=u[t]=[e,o]});e.push(n[2]=o);var r=p.p+p.u(t),i=Error();p.l(r,function(e){if(p.o(u,t)&&(0!==(n=u[t])&&(u[t]=void 0),n)){var o=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+r+")",i.name="ChunkLoadError",i.type=o,i.request=r,n[1](i)}},"chunk-"+t,t)}},a=function(t,e){var n,o,r=e[0],i=e[1],c=e[2],a=0;if(r.some(function(t){return 0!==u[t]})){for(n in i)p.o(i,n)&&(p.m[n]=i[n]);c&&c(p)}for(t&&t(e);a<r.length;a++)o=r[a],p.o(u,o)&&u[o]&&u[o][0](),u[o]=0},(l=self.webpackChunk_nocobase_plugin_workflow_notification=self.webpackChunk_nocobase_plugin_workflow_notification||[]).forEach(a.bind(null,0)),l.push=a.bind(null,l.push.bind(l));var g={};return!function(){var t="",e="u">typeof document?document.currentScript:null;if(e&&e.src){var n=e.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@nocobase/plugin-workflow-notification/dist/client/")>=0&&(t=n.replace(/\/[^\/]+$/,"/"))}if(!t){var o=window.__webpack_public_path__||"";o&&("/"!==o.charAt(o.length-1)&&(o+="/"),t=o+"static/plugins/@nocobase/plugin-workflow-notification/dist/client/")}if(!t){var r=window.__nocobase_modern_client_prefix__||"v",i="/"+(r=String(r).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(t=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",u=c.indexOf(i);t=u>=0?c.slice(0,u+1):"/"}t&&(t=t.replace(RegExp("/"+r+"/?$"),"/")),t||(t="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t+="static/plugins/@nocobase/plugin-workflow-notification/dist/client/"}p.p=t}(),!function(){p.r(g),p.d(g,{default:function(){return k}});var t=p(342),e=p(155),n=p.n(e),o=p(375),r=p(197),i=p(488);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(b=function(){return!!t})()}var d=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function e(){var t,n;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return t=e,n=arguments,t=f(t),function(t,e){var n;if(e&&("object"==((n=e)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,b()?Reflect.construct(t,n||[],f(this).constructor):t.apply(this,n))}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t),e}(function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function e(){var t,r,a;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return r=e,a=arguments,r=u(r),c(t=function(t,e){var n;if(e&&("object"==((n=e)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,l()?Reflect.construct(r,a||[],u(this).constructor):r.apply(this,a)),"type","notification"),c(t,"title",(0,i.MZ)("Notification")),c(t,"group","extended"),c(t,"description",(0,i.MZ)("Send notification. You can use the variables in the upstream nodes as content and ohter config.")),c(t,"icon",n().createElement(o.NotificationOutlined,null)),c(t,"testable",!0),c(t,"FieldsetLoader",function(){return p.e("471").then(p.bind(p,242)).then(function(t){return{default:t.NotificationFieldset}})}),t}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t),e}(r.Instruction));function y(t,e,n,o,r,i,c){try{var u=t[i](c),a=u.value}catch(t){n(t);return}u.done?e(a):Promise.resolve(a).then(o,r)}function h(t){return function(){var e=this,n=arguments;return new Promise(function(o,r){var i=t.apply(e,n);function c(t){y(i,o,r,c,u,"next",t)}function u(t){y(i,o,r,c,u,"throw",t)}c(void 0)})}}function v(t,e,n){return(v=O()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&m(r,n.prototype),r}).apply(null,arguments)}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e="function"==typeof Map?new Map:void 0;return(_=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return v(t,arguments,w(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),m(n,t)})(t)}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(O=function(){return!!t})()}function j(t,e){var n,o,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),u=Object.defineProperty;return u(c,"next",{value:a(0)}),u(c,"throw",{value:a(1)}),u(c,"return",{value:a(2)}),"function"==typeof Symbol&&u(c,Symbol.iterator,{value:function(){return this}}),c;function a(u){return function(a){var l=[u,a];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=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++,o=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=e.call(t,i)}catch(t){l=[6,t],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var k=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function n(){var t,e;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return t=n,e=arguments,t=w(t),function(t,e){var n;if(e&&("object"==((n=e)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,O()?Reflect.construct(t,e||[],w(this).constructor):t.apply(this,e))}return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&m(n,t),e=[{key:"afterAdd",value:function(){return h(function(){return j(this,function(t){return[2]})})()}},{key:"beforeLoad",value:function(){return h(function(){return j(this,function(t){return[2]})})()}},{key:"load",value:function(){return h(function(){return j(this,function(t){return this.app.pm.get("workflow").registerInstruction("notification",d),[2]})}).call(this)}}],function(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}(n.prototype,e),n}(_(t.Plugin))}(),g}()});
@@ -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_workflow_notification_client_v2=self.webpackChunk_nocobase_plugin_workflow_notification_client_v2||[]).push([["471"],{242:function(e,n,o){o.d(n,{NotificationFieldset:function(){return f}});var i=o(155),t=o.n(i),a=o(341),r=o(197),l=o(59),c=o(488);function f(){var e=(0,c.kj)(),n=(0,r.useWorkflowVariableOptions)();return t().createElement(t().Fragment,null,t().createElement(a.MessageConfigForm,{namePrefix:["config"],variableOptions:n}),t().createElement(l.Form.Item,{name:["config","ignoreFail"],valuePropName:"checked"},t().createElement(l.Checkbox,null,e("Ignore failure and continue workflow"))))}}}]);
@@ -0,0 +1,21 @@
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 React from 'react';
10
+ import { Instruction } from '@nocobase/plugin-workflow/client-v2';
11
+ export default class NotificationInstruction extends Instruction {
12
+ type: string;
13
+ title: string;
14
+ group: string;
15
+ description: string;
16
+ icon: React.JSX.Element;
17
+ testable: boolean;
18
+ FieldsetLoader: () => Promise<{
19
+ default: typeof import("./components/NotificationFieldset").NotificationFieldset;
20
+ }>;
21
+ }
@@ -0,0 +1,11 @@
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 React from 'react';
10
+ export declare function NotificationFieldset(): React.JSX.Element;
11
+ export default NotificationFieldset;
@@ -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
+ export { PluginWorkflowNotificationClientV2 } from './plugin';
10
+ export { default } from './plugin';
@@ -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
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-notification/client-v2",["@nocobase/plugin-notification-manager/client-v2","@nocobase/client-v2","react","antd","@nocobase/plugin-workflow/client-v2","@ant-design/icons","@nocobase/flow-engine"],e):"object"==typeof exports?exports["@nocobase/plugin-workflow-notification/client-v2"]=e(require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine")):t["@nocobase/plugin-workflow-notification/client-v2"]=e(t["@nocobase/plugin-notification-manager/client-v2"],t["@nocobase/client-v2"],t.react,t.antd,t["@nocobase/plugin-workflow/client-v2"],t["@ant-design/icons"],t["@nocobase/flow-engine"])}(self,function(t,e,n,o,r,i,c){return function(){"use strict";var u,a,l,f={488:function(t,e,n){n.d(e,{MZ:function(){return a},kj:function(){return u}});var o=n(694);function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){var o;o=n[e],e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o})}return t}var i="workflow-notification",c="@nocobase/plugin-workflow-notification";function u(){var t=(0,o.useFlowEngine)();return function(e,n){return t.context.t(e,r({ns:[i,c,"client"],nsMode:"fallback"},n))}}function a(t,e){return(0,o.tExpr)(t,r({ns:[i,c,"client"],nsMode:"fallback"},e))}},375:function(t){t.exports=i},485:function(t){t.exports=e},694:function(t){t.exports=c},341:function(e){e.exports=t},197:function(t){t.exports=r},59:function(t){t.exports=o},155:function(t){t.exports=n}},s={};function p(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return f[t](n,n.exports,p),n.exports}p.m=f,p.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return p.d(e,{a:e}),e},p.d=function(t,e){for(var n in e)p.o(e,n)&&!p.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},p.f={},p.e=function(t){return Promise.all(Object.keys(p.f).reduce(function(e,n){return p.f[n](t,e),e},[]))},p.u=function(t){return""+t+".b2873a3979da6fa2.js"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),p.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},b={},p.l=function(t,e,n,o){if(b[t])return void b[t].push(e);if(void 0!==n)for(var r,i,c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var a=c[u];if(a.getAttribute("src")==t||a.getAttribute("data-rspack")=="@nocobase/plugin-workflow-notification/client-v2:"+n){r=a;break}}r||(i=!0,(r=document.createElement("script")).timeout=120,p.nc&&r.setAttribute("nonce",p.nc),r.setAttribute("data-rspack","@nocobase/plugin-workflow-notification/client-v2:"+n),r.src=t),b[t]=[e];var l=function(e,n){r.onerror=r.onload=null,clearTimeout(f);var o=b[t];if(delete b[t],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach(function(t){return t(n)}),e)return e(n)},f=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)},p.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},p.g.importScripts&&(d=p.g.location+"");var b,d,v=p.g.document;if(!d&&v&&(v.currentScript&&"SCRIPT"===v.currentScript.tagName.toUpperCase()&&(d=v.currentScript.src),!d)){var y=v.getElementsByTagName("script");if(y.length)for(var g=y.length-1;g>-1&&(!d||!/^http(s?):/.test(d));)d=y[g--].src}if(!d)throw Error("Automatic publicPath is not supported in this browser");p.p=d.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u={889:0},p.f.j=function(t,e){var n=p.o(u,t)?u[t]:void 0;if(0!==n)if(n)e.push(n[2]);else{var o=new Promise(function(e,o){n=u[t]=[e,o]});e.push(n[2]=o);var r=p.p+p.u(t),i=Error();p.l(r,function(e){if(p.o(u,t)&&(0!==(n=u[t])&&(u[t]=void 0),n)){var o=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+r+")",i.name="ChunkLoadError",i.type=o,i.request=r,n[1](i)}},"chunk-"+t,t)}},a=function(t,e){var n,o,r=e[0],i=e[1],c=e[2],a=0;if(r.some(function(t){return 0!==u[t]})){for(n in i)p.o(i,n)&&(p.m[n]=i[n]);c&&c(p)}for(t&&t(e);a<r.length;a++)o=r[a],p.o(u,o)&&u[o]&&u[o][0](),u[o]=0},(l=self.webpackChunk_nocobase_plugin_workflow_notification_client_v2=self.webpackChunk_nocobase_plugin_workflow_notification_client_v2||[]).forEach(a.bind(null,0)),l.push=a.bind(null,l.push.bind(l));var h={};return!function(){var t="",e="u">typeof document?document.currentScript:null;if(e&&e.src){var n=e.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@nocobase/plugin-workflow-notification/dist/client-v2/")>=0&&(t=n.replace(/\/[^\/]+$/,"/"))}if(!t){var o=window.__webpack_public_path__||"";o&&("/"!==o.charAt(o.length-1)&&(o+="/"),t=o+"static/plugins/@nocobase/plugin-workflow-notification/dist/client-v2/")}if(!t){var r=window.__nocobase_modern_client_prefix__||"v",i="/"+(r=String(r).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(t=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",u=c.indexOf(i);t=u>=0?c.slice(0,u+1):"/"}t&&(t=t.replace(RegExp("/"+r+"/?$"),"/")),t||(t="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t+="static/plugins/@nocobase/plugin-workflow-notification/dist/client-v2/"}p.p=t}(),!function(){p.r(h),p.d(h,{PluginWorkflowNotificationClientV2:function(){return w},default:function(){return m}});var t=p(485),e=p(155),n=p.n(e),o=p(375),r=p(197),i=p(488);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}var f=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function e(){var t,r,a;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return r=e,a=arguments,r=u(r),c(t=function(t,e){var n;if(e&&("object"==((n=e)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,l()?Reflect.construct(r,a||[],u(this).constructor):r.apply(this,a)),"type","notification"),c(t,"title",(0,i.MZ)("Notification")),c(t,"group","extended"),c(t,"description",(0,i.MZ)("Send notification. You can use the variables in the upstream nodes as content and ohter config.")),c(t,"icon",n().createElement(o.NotificationOutlined,null)),c(t,"testable",!0),c(t,"FieldsetLoader",function(){return p.e("471").then(p.bind(p,242)).then(function(t){return{default:t.NotificationFieldset}})}),t}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t),e}(r.Instruction);function s(t,e,n,o,r,i,c){try{var u=t[i](c),a=u.value}catch(t){n(t);return}u.done?e(a):Promise.resolve(a).then(o,r)}function b(t,e,n){return(b=g()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&v(r,n.prototype),r}).apply(null,arguments)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e="function"==typeof Map?new Map:void 0;return(y=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return b(t,arguments,d(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,t)})(t)}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}var w=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function n(){var t,e;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return t=n,e=arguments,t=d(t),function(t,e){var n;if(e&&("object"==((n=e)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,g()?Reflect.construct(t,e||[],d(this).constructor):t.apply(this,e))}return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&v(n,t),e=[{key:"load",value:function(){var t;return(t=function(){var t,e;return function(t,e){var n,o,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),u=Object.defineProperty;return u(c,"next",{value:a(0)}),u(c,"throw",{value:a(1)}),u(c,"return",{value:a(2)}),"function"==typeof Symbol&&u(c,Symbol.iterator,{value:function(){return this}}),c;function a(u){return function(a){var l=[u,a];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=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++,o=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=e.call(t,i)}catch(t){l=[6,t],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(n){return null==(e=this.app.pm.get("workflow"))||null==(t=e.registerInstruction)||t.call(e,"notification",f),[2]})},function(){var e=this,n=arguments;return new Promise(function(o,r){var i=t.apply(e,n);function c(t){s(i,o,r,c,u,"next",t)}function u(t){s(i,o,r,c,u,"throw",t)}c(void 0)})}).call(this)}}],function(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}(n.prototype,e),n}(y(t.Plugin)),m=w}(),h}()});
@@ -0,0 +1,11 @@
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
+ export declare const NAMESPACE = "workflow-notification";
10
+ export declare function useT(): (key: string, options?: Record<string, unknown>) => string;
11
+ export declare function tExpr(key: string, options?: Record<string, unknown>): string;
@@ -0,0 +1,13 @@
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 { Application, Plugin } from '@nocobase/client-v2';
10
+ export declare class PluginWorkflowNotificationClientV2 extends Plugin<Record<string, never>, Application> {
11
+ load(): Promise<void>;
12
+ }
13
+ export default PluginWorkflowNotificationClientV2;
@@ -8,11 +8,14 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
+ "@nocobase/client": "2.2.0-alpha.2",
12
+ "@nocobase/plugin-workflow": "2.2.0-alpha.2",
11
13
  "react": "18.2.0",
12
14
  "@ant-design/icons": "5.6.1",
13
- "@nocobase/plugin-workflow": "2.1.11",
14
- "@nocobase/plugin-notification-manager": "2.1.11",
15
- "@nocobase/client": "2.1.11",
15
+ "@nocobase/flow-engine": "2.2.0-alpha.2",
16
+ "@nocobase/client-v2": "2.2.0-alpha.2",
16
17
  "react-i18next": "11.18.6",
17
- "@nocobase/server": "2.1.11"
18
+ "@nocobase/plugin-notification-manager": "2.2.0-alpha.2",
19
+ "@nocobase/server": "2.2.0-alpha.2",
20
+ "antd": "5.24.2"
18
21
  };
@@ -1 +1 @@
1
- {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-06-24T23:39:32.804Z"}
1
+ {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-06-26T03:52:04.731Z"}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Send notification in workflow.",
7
7
  "description.ru-RU": "Отправляет уведомления в рамках рабочего процесса.",
8
8
  "description.zh-CN": "可用于在工作流中发送各类通知。",
9
- "version": "2.1.11",
9
+ "version": "2.2.0-alpha.2",
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/workflow-smtp-mailer",
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@nocobase/client": "2.x",
22
+ "@nocobase/client-v2": "2.x",
22
23
  "@nocobase/database": "2.x",
23
24
  "@nocobase/plugin-notification-manager": "2.x",
24
25
  "@nocobase/plugin-workflow": ">=0.17.0-alpha.3",
@@ -28,5 +29,5 @@
28
29
  "keywords": [
29
30
  "Workflow"
30
31
  ],
31
- "gitHead": "1ccf891d837e21089f65f84b892407b34a0a0cb9"
32
+ "gitHead": "9dd5224bb8f6c1ac12d766b9f175bdc29bddd845"
32
33
  }