@nocobase/plugin-notification-in-app-message 1.5.0-alpha.5 → 1.5.0-beta.1

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.
@@ -9,14 +9,14 @@
9
9
 
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
- "@nocobase/client": "1.5.0-alpha.5",
13
- "@nocobase/plugin-notification-manager": "1.5.0-alpha.5",
14
- "@nocobase/plugin-mobile": "1.5.0-alpha.5",
15
- "@nocobase/utils": "1.5.0-alpha.5",
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",
16
16
  "react-i18next": "11.18.6",
17
- "@nocobase/server": "1.5.0-alpha.5",
17
+ "@nocobase/server": "1.5.0-beta.1",
18
18
  "sequelize": "6.35.2",
19
- "@nocobase/database": "1.5.0-alpha.5",
19
+ "@nocobase/database": "1.5.0-beta.1",
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-alpha.5",
29
+ "@nocobase/plugin-workflow": "1.5.0-beta.1",
30
30
  "@formily/shared": "2.3.2"
31
31
  };
@@ -81,7 +81,6 @@ class InAppNotificationChannel extends import_plugin_notification_manager.BaseNo
81
81
  }
82
82
  };
83
83
  sendDataToUser(userId, message) {
84
- var _a, _b;
85
84
  const clients = this.userClientsMap[userId];
86
85
  if (clients) {
87
86
  for (const clientId in clients) {
@@ -91,8 +90,8 @@ class InAppNotificationChannel extends import_plugin_notification_manager.BaseNo
91
90
  type: message.type,
92
91
  data: {
93
92
  ...message.data,
94
- title: ((_a = message.data.title) == null ? void 0 : _a.slice(0, 30)) || "",
95
- content: ((_b = message.data.content) == null ? void 0 : _b.slice(0, 105)) || ""
93
+ title: message.data.title || "",
94
+ content: message.data.content || ""
96
95
  }
97
96
  })}
98
97
 
@@ -11,5 +11,5 @@ export default function defineMyInAppMessages({ app, addClient, removeClient, ge
11
11
  app: Application;
12
12
  addClient: any;
13
13
  removeClient: any;
14
- getClient?: any;
14
+ getClient: any;
15
15
  }): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-notification-in-app-message",
3
- "version": "1.5.0-alpha.5",
3
+ "version": "1.5.0-beta.1",
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": "8d24e8d2c0f3f57ceaa271438fd93db2b4150011"
27
+ "gitHead": "10c6f1f3d90e91f3aabfa80449c7ef062e90f6af"
28
28
  }