@nocobase/plugin-notification-in-app-message 1.5.0-beta.1 → 1.5.0-beta.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.
@@ -22,7 +22,7 @@
22
22
  > .ant-space-item:nth-child(2) {
23
23
  flex-grow: 1;
24
24
  }
25
- `},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"UsersSelect"},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},required:!0,properties:{add:{type:"void",title:'{{t("Add receiver")}}',"x-component":"UsersAddition"}}},title:{type:"string",required:!0,title:'{{t("Message title")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"]}},content:{type:"string",required:!0,title:'{{t("Message content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:e,placeholder:"Hi,",autoSize:{minRows:10}}},options:{type:"object",properties:{url:{type:"string",required:!1,title:'{{t("PC detail URL")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"]},description:be.tval('Support two types of links: internal links and external links. If using an internal link, the link starts with"/", for example, "/admin". If using an external link, the link starts with "http", for example, "https://example.com".')},mobileUrl:{type:"string",required:!1,title:'{{t("Mobile detail URL")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"]},description:be.tval('Support two types of links: internal links and external links. If using an internal link, the link starts with"/", for example, "/m". If using an external link, the link starts with "http", for example, "https://example.com".')}}}}}})},wm=({variableOptions:e})=>{const{t}=Ze();return S.jsx(j.SchemaComponent,{scope:{t},schema:{type:"void",properties:{title:{type:"string",required:!0,title:'{{t("Message title")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"]}},content:{type:"string",required:!0,title:'{{t("Message content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:e,placeholder:"Hi,",autoSize:{minRows:10}}},options:{type:"object",properties:{url:{type:"string",required:!1,title:'{{t("PC detail URL")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"],delimiters:["{{{","}}}"]},description:be.tval('Support two types of links: internal links and external links. If using an internal link, the link starts with"/", for example, "/admin". If using an external link, the link starts with "http", for example, "https://example.com".')},mobileUrl:{type:"string",required:!1,title:'{{t("Mobile detail URL")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"],delimiters:["{{{","}}}"]},description:be.tval("Support two types of links: internal links and external links. If using an internal link, the link starts with '/', for example, '/m'. If using an external link, the link starts with 'http', for example, 'https://example.com'.")}}}}}})},Ui=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Ui&&document.addEventListener("touchstart",()=>{},!0);function On(e,t,n,r){function i(l){return l instanceof n?l:new n(function(o){o(l)})}return new(n||(n=Promise))(function(l,o){function s(h){try{a(r.next(h))}catch(f){o(f)}}function u(h){try{a(r.throw(h))}catch(f){o(f)}}function a(h){h.done?l(h.value):i(h.value).then(s,u)}a((r=r.apply(e,t||[])).next())})}function km(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,i,l,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(a){return function(h){return u([a,h])}}function u(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(n=0)),n;)try{if(r=1,i&&(l=a[0]&2?i.return:a[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,a[1])).done)return l;switch(i=0,l&&(a=[a[0]&2,l.value]),a[0]){case 0:case 1:l=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!l||a[1]>l[0]&&a[1]<l[3])){n.label=a[1];break}if(a[0]===6&&n.label<l[1]){n.label=l[1],l=a;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(a);break}l[2]&&n.ops.pop(),n.trys.pop();continue}a=t.call(e,n)}catch(h){a=[6,h],i=0}finally{r=l=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function Ro(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,l=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return l}function Za(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;const ze="${label}不是一个有效的${type}",Sm={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:ze,method:ze,array:ze,object:ze,number:ze,date:ze,boolean:ze,integer:ze,float:ze,regexp:ze,email:ze,url:ze,hex:ze},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function xm(){return Sm.current}const Cm=v.createContext(null);function Vi(){var e;return(e=v.useContext(Cm))!==null&&e!==void 0?e:xm()}function Ko(e,t){const n=e;for(const r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}var Bi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ja={exports:{}};/*!
25
+ `},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"UsersSelect"},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},required:!0,properties:{add:{type:"void",title:'{{t("Add receiver")}}',"x-component":"UsersAddition"}}},title:{type:"string",required:!0,title:'{{t("Message title")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"]}},content:{type:"string",required:!0,title:'{{t("Message content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:e,placeholder:"Hi,",autoSize:{minRows:10}}},options:{type:"object",properties:{url:{type:"string",required:!1,title:'{{t("Details page for desktop")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"]},description:be.tval('Support two types of links: internal links and external links. If using an internal link, the link starts with"/", for example, "/admin". If using an external link, the link starts with "http", for example, "https://example.com".')},mobileUrl:{type:"string",required:!1,title:'{{t("Details page for mobile")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"]},description:be.tval('Support two types of links: internal links and external links. If using an internal link, the link starts with"/", for example, "/m". If using an external link, the link starts with "http", for example, "https://example.com".')}}}}}})},wm=({variableOptions:e})=>{const{t}=Ze();return S.jsx(j.SchemaComponent,{scope:{t},schema:{type:"void",properties:{title:{type:"string",required:!0,title:'{{t("Message title")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"]}},content:{type:"string",required:!0,title:'{{t("Message content")}}',"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:e,placeholder:"Hi,",autoSize:{minRows:10}}},options:{type:"object",properties:{url:{type:"string",required:!1,title:'{{t("Details page for desktop")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"],delimiters:["{{{","}}}"]},description:be.tval('Support two types of links: internal links and external links. If using an internal link, the link starts with"/", for example, "/admin". If using an external link, the link starts with "http", for example, "https://example.com".')},mobileUrl:{type:"string",required:!1,title:'{{t("Details page for mobile")}}',"x-decorator":"FormItem","x-component":"Variable.TextArea","x-component-props":{scope:e,useTypedConstant:["string"],delimiters:["{{{","}}}"]},description:be.tval("Support two types of links: internal links and external links. If using an internal link, the link starts with '/', for example, '/m'. If using an external link, the link starts with 'http', for example, 'https://example.com'.")}}}}}})},Ui=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Ui&&document.addEventListener("touchstart",()=>{},!0);function On(e,t,n,r){function i(l){return l instanceof n?l:new n(function(o){o(l)})}return new(n||(n=Promise))(function(l,o){function s(h){try{a(r.next(h))}catch(f){o(f)}}function u(h){try{a(r.throw(h))}catch(f){o(f)}}function a(h){h.done?l(h.value):i(h.value).then(s,u)}a((r=r.apply(e,t||[])).next())})}function km(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,i,l,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(a){return function(h){return u([a,h])}}function u(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(n=0)),n;)try{if(r=1,i&&(l=a[0]&2?i.return:a[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,a[1])).done)return l;switch(i=0,l&&(a=[a[0]&2,l.value]),a[0]){case 0:case 1:l=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!l||a[1]>l[0]&&a[1]<l[3])){n.label=a[1];break}if(a[0]===6&&n.label<l[1]){n.label=l[1],l=a;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(a);break}l[2]&&n.ops.pop(),n.trys.pop();continue}a=t.call(e,n)}catch(h){a=[6,h],i=0}finally{r=l=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function Ro(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,l=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return l}function Za(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;const ze="${label}不是一个有效的${type}",Sm={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:ze,method:ze,array:ze,object:ze,number:ze,date:ze,boolean:ze,integer:ze,float:ze,regexp:ze,email:ze,url:ze,hex:ze},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function xm(){return Sm.current}const Cm=v.createContext(null);function Vi(){var e;return(e=v.useContext(Cm))!==null&&e!==void 0?e:xm()}function Ko(e,t){const n=e;for(const r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}var Bi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ja={exports:{}};/*!
26
26
  Copyright (c) 2018 Jed Watson.
27
27
  Licensed under the MIT License (MIT), see
28
28
  http://jedwatson.github.io/classnames
@@ -9,14 +9,14 @@
9
9
 
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
- "@nocobase/client": "1.5.0-beta.1",
13
- "@nocobase/plugin-notification-manager": "1.5.0-beta.1",
14
- "@nocobase/plugin-mobile": "1.5.0-beta.1",
15
- "@nocobase/utils": "1.5.0-beta.1",
12
+ "@nocobase/client": "1.5.0-beta.2",
13
+ "@nocobase/plugin-notification-manager": "1.5.0-beta.2",
14
+ "@nocobase/plugin-mobile": "1.5.0-beta.2",
15
+ "@nocobase/utils": "1.5.0-beta.2",
16
16
  "react-i18next": "11.18.6",
17
- "@nocobase/server": "1.5.0-beta.1",
17
+ "@nocobase/server": "1.5.0-beta.2",
18
18
  "sequelize": "6.35.2",
19
- "@nocobase/database": "1.5.0-beta.1",
19
+ "@nocobase/database": "1.5.0-beta.2",
20
20
  "antd": "5.12.8",
21
21
  "@formily/reactive-react": "2.3.0",
22
22
  "@formily/reactive": "2.3.0",
@@ -26,6 +26,6 @@ module.exports = {
26
26
  "react-router-dom": "6.21.0",
27
27
  "@formily/react": "2.3.0",
28
28
  "@formily/core": "2.3.0",
29
- "@nocobase/plugin-workflow": "1.5.0-beta.1",
29
+ "@nocobase/plugin-workflow": "1.5.0-beta.2",
30
30
  "@formily/shared": "2.3.2"
31
31
  };
@@ -19,10 +19,10 @@
19
19
  "Message group name": "Message group name",
20
20
  "Message title": "Message title",
21
21
  "Message content": "Message content",
22
- "PC detail URL": "PC detail URL",
22
+ "Details page for desktop": "Details page for desktop",
23
23
  "Support two types of links: internal links and external links. If using an internal link, the link starts with\"/\", for example, \"/admin\". If using an external link, the link starts with \"http\", for example, \"https://example.com\".": "Support two types of links: internal links and external links. If using an internal link, the link starts with \"/\", for example, \"/admin\". If using an external link, the link starts with \"http\", for example, \"https://example.com\".",
24
24
  "Mark as read": "Mark as read",
25
25
  "Support two types of links: internal links and external links. If using an internal link, the link starts with\"/\", for example, \"/m\". If using an external link, the link starts with \"http\", for example, \"https://example.com\".": "Support two types of links: internal links and external links. If using an internal link, the link starts with \"/\", for example, \"/m\". If using an external link, the link starts with \"http\", for example, \"https://example.com\".",
26
- "Mobile detail URL": "Mobile detail URL",
26
+ "Details page for mobile": "Details page for mobile",
27
27
  "The message page has already been created.": "The message page has already been created."
28
28
  }
@@ -19,10 +19,10 @@
19
19
  "Message title": "消息标题",
20
20
  "Message content": "消息内容",
21
21
  "detail URL": "详情链接",
22
- "PC detail URL": "PC端详情链接",
22
+ "Details page for desktop": "桌面端详情页",
23
23
  "Support two types of links: internal links and external links. If using an internal link, the link starts with\"/\", for example, \"/admin\". If using an external link, the link starts with \"http\", for example, \"https://example.com\".": "支持两种链接类型:内部链接和外部链接。如果使用内部链接,链接以“/”开头,例如“/admin”。如果使用外部链接,链接以“http”开头,例如“https://example.com”。",
24
24
  "Mark as read": "标记为已读",
25
25
  "Support two types of links: internal links and external links. If using an internal link, the link starts with\"/\", for example, \"/m\". If using an external link, the link starts with \"http\", for example, \"https://example.com\".": "支持两种链接类型:内部链接和外部链接。如果使用内部链接,链接以“/”开头,例如“/m”。如果使用外部链接,链接以“http”开头,例如“https://example.com”。",
26
- "Mobile detail URL": "移动端详情链接",
26
+ "Details page for mobile": "移动端详情页",
27
27
  "The message page has already been created.": "站内信页面已创建。"
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-notification-in-app-message",
3
- "version": "1.5.0-beta.1",
3
+ "version": "1.5.0-beta.2",
4
4
  "displayName": "Notification: In-app message",
5
5
  "displayName.zh-CN": "通知:站内信",
6
6
  "description": "It supports users in receiving real-time message notifications within the NocoBase application.",
@@ -24,5 +24,5 @@
24
24
  "@nocobase/test": "1.x",
25
25
  "react-router-dom": "^6.x"
26
26
  },
27
- "gitHead": "10c6f1f3d90e91f3aabfa80449c7ef062e90f6af"
27
+ "gitHead": "8a9c29fdac5c6295dcc7abf00c3fa81bd9e01a36"
28
28
  }