@nocobase/plugin-notification-in-app-message 2.1.0-beta.25 → 2.1.0-beta.27
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/dist/externalVersion.js
CHANGED
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "2.1.0-beta.
|
|
13
|
-
"@nocobase/plugin-notification-manager": "2.1.0-beta.
|
|
14
|
-
"@nocobase/plugin-mobile": "2.1.0-beta.
|
|
15
|
-
"@nocobase/utils": "2.1.0-beta.
|
|
12
|
+
"@nocobase/client": "2.1.0-beta.27",
|
|
13
|
+
"@nocobase/plugin-notification-manager": "2.1.0-beta.27",
|
|
14
|
+
"@nocobase/plugin-mobile": "2.1.0-beta.27",
|
|
15
|
+
"@nocobase/utils": "2.1.0-beta.27",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/server": "2.1.0-beta.
|
|
17
|
+
"@nocobase/server": "2.1.0-beta.27",
|
|
18
18
|
"sequelize": "6.35.2",
|
|
19
|
-
"@nocobase/actions": "2.1.0-beta.
|
|
20
|
-
"@nocobase/database": "2.1.0-beta.
|
|
19
|
+
"@nocobase/actions": "2.1.0-beta.27",
|
|
20
|
+
"@nocobase/database": "2.1.0-beta.27",
|
|
21
21
|
"antd": "5.24.2",
|
|
22
|
-
"@nocobase/flow-engine": "2.1.0-beta.
|
|
22
|
+
"@nocobase/flow-engine": "2.1.0-beta.27",
|
|
23
23
|
"antd-style": "3.7.1",
|
|
24
24
|
"@emotion/css": "11.13.0",
|
|
25
25
|
"@formily/react": "2.3.7",
|
|
26
|
-
"@nocobase/plugin-workflow": "2.1.0-beta.
|
|
26
|
+
"@nocobase/plugin-workflow": "2.1.0-beta.27",
|
|
27
27
|
"react-router-dom": "6.30.1",
|
|
28
28
|
"@formily/reactive": "2.3.7",
|
|
29
29
|
"@formily/shared": "2.3.7"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"uuid","version":"10.0.0","description":"RFC9562 UUIDs","funding":["https://github.com/sponsors/broofa","https://github.com/sponsors/ctavan"],"commitlint":{"extends":["@commitlint/config-conventional"]},"keywords":["uuid","guid","rfc4122","rfc9562"],"license":"MIT","bin":{"uuid":"dist/bin/uuid"},"sideEffects":false,"main":"./dist/index.js","exports":{".":{"node":{"module":"./dist/esm-node/index.js","require":"./dist/index.js","import":"./wrapper.mjs"},"browser":{"import":"./dist/esm-browser/index.js","require":"./dist/commonjs-browser/index.js"},"default":"./dist/esm-browser/index.js"},"./package.json":"./package.json"},"module":"./dist/esm-node/index.js","browser":{"./dist/esm-node/index.js":"./dist/esm-browser/index.js","./dist/md5.js":"./dist/md5-browser.js","./dist/native.js":"./dist/native-browser.js","./dist/rng.js":"./dist/rng-browser.js","./dist/sha1.js":"./dist/sha1-browser.js"},"files":["CHANGELOG.md","CONTRIBUTING.md","LICENSE.md","README.md","dist","wrapper.mjs"],"devDependencies":{"@babel/cli":"7.24.6","@babel/core":"7.24.6","@babel/eslint-parser":"7.24.6","@babel/plugin-syntax-import-attributes":"7.24.6","@babel/preset-env":"7.24.6","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@wdio/browserstack-service":"7.16.10","@wdio/cli":"7.16.10","@wdio/jasmine-framework":"7.16.6","@wdio/local-runner":"7.16.10","@wdio/spec-reporter":"7.16.9","@wdio/static-server-service":"7.16.6","bundlewatch":"0.3.3","eslint":"9.4.0","eslint-plugin-prettier":"5.1.3","globals":"15.3.0","husky":"9.0.11","jest":"29.7.0","lint-staged":"15.2.5","neostandard":"0.5.1","npm-run-all":"4.1.5","optional-dev-dependency":"2.0.1","prettier":"3.3.0","random-seed":"0.3.0","runmd":"1.3.9","standard-version":"9.5.0"},"optionalDevDependencies":{"@wdio/browserstack-service":"7.16.10","@wdio/cli":"7.16.10","@wdio/jasmine-framework":"7.16.6","@wdio/local-runner":"7.16.10","@wdio/spec-reporter":"7.16.9","@wdio/static-server-service":"7.16.6"},"scripts":{"examples:browser:webpack:build":"cd examples/browser-webpack && npm install && npm run build","examples:browser:rollup:build":"cd examples/browser-rollup && npm install && npm run build","examples:node:commonjs:test":"cd examples/node-commonjs && npm install && npm test","examples:node:esmodules:test":"cd examples/node-esmodules && npm install && npm test","examples:node:jest:test":"cd examples/node-jest && npm install && npm test","prepare":"husky install","lint":"npm run eslint:check && npm run prettier:check","eslint:check":"eslint src/ test/ examples/ *.js","eslint:fix":"eslint --fix src/ test/ examples/ *.js","pretest":"npm run build","test":"BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/","test:matching":"BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/ -t","pretest:browser":"optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**","test:browser":"wdio run ./wdio.conf.js","pretest:node":"npm run build","test:node":"npm-run-all --parallel examples:node:**","test:pack":"./scripts/testpack.sh","pretest:benchmark":"npm run build","test:benchmark":"cd examples/benchmark && HUSKY=0 npm install && npm test","prettier:check":"prettier --check .","prettier:fix":"prettier --write .","bundlewatch":"npm run pretest:browser && bundlewatch --config bundlewatch.config.json","md":"runmd --watch --output=README.md README_js.md","docs":"npm run build && npx runmd --output=README.md README_js.md","docs:diff":"npm run docs && git diff --quiet README.md","build":"./scripts/build.sh","prepack":"npm run build","release":"standard-version --no-verify"},"repository":{"type":"git","url":"git+https://github.com/uuidjs/uuid.git"},"lint-staged":{"*":["prettier --no-error-on-unmatched-pattern --write"],"*.{js,jsx}":["eslint --no-error-on-unmatched-pattern --fix"]},"standard-version":{"scripts":{"postchangelog":"prettier --write CHANGELOG.md"}},"packageManager":"npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483","_lastModified":"2026-05-
|
|
1
|
+
{"name":"uuid","version":"10.0.0","description":"RFC9562 UUIDs","funding":["https://github.com/sponsors/broofa","https://github.com/sponsors/ctavan"],"commitlint":{"extends":["@commitlint/config-conventional"]},"keywords":["uuid","guid","rfc4122","rfc9562"],"license":"MIT","bin":{"uuid":"dist/bin/uuid"},"sideEffects":false,"main":"./dist/index.js","exports":{".":{"node":{"module":"./dist/esm-node/index.js","require":"./dist/index.js","import":"./wrapper.mjs"},"browser":{"import":"./dist/esm-browser/index.js","require":"./dist/commonjs-browser/index.js"},"default":"./dist/esm-browser/index.js"},"./package.json":"./package.json"},"module":"./dist/esm-node/index.js","browser":{"./dist/esm-node/index.js":"./dist/esm-browser/index.js","./dist/md5.js":"./dist/md5-browser.js","./dist/native.js":"./dist/native-browser.js","./dist/rng.js":"./dist/rng-browser.js","./dist/sha1.js":"./dist/sha1-browser.js"},"files":["CHANGELOG.md","CONTRIBUTING.md","LICENSE.md","README.md","dist","wrapper.mjs"],"devDependencies":{"@babel/cli":"7.24.6","@babel/core":"7.24.6","@babel/eslint-parser":"7.24.6","@babel/plugin-syntax-import-attributes":"7.24.6","@babel/preset-env":"7.24.6","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@wdio/browserstack-service":"7.16.10","@wdio/cli":"7.16.10","@wdio/jasmine-framework":"7.16.6","@wdio/local-runner":"7.16.10","@wdio/spec-reporter":"7.16.9","@wdio/static-server-service":"7.16.6","bundlewatch":"0.3.3","eslint":"9.4.0","eslint-plugin-prettier":"5.1.3","globals":"15.3.0","husky":"9.0.11","jest":"29.7.0","lint-staged":"15.2.5","neostandard":"0.5.1","npm-run-all":"4.1.5","optional-dev-dependency":"2.0.1","prettier":"3.3.0","random-seed":"0.3.0","runmd":"1.3.9","standard-version":"9.5.0"},"optionalDevDependencies":{"@wdio/browserstack-service":"7.16.10","@wdio/cli":"7.16.10","@wdio/jasmine-framework":"7.16.6","@wdio/local-runner":"7.16.10","@wdio/spec-reporter":"7.16.9","@wdio/static-server-service":"7.16.6"},"scripts":{"examples:browser:webpack:build":"cd examples/browser-webpack && npm install && npm run build","examples:browser:rollup:build":"cd examples/browser-rollup && npm install && npm run build","examples:node:commonjs:test":"cd examples/node-commonjs && npm install && npm test","examples:node:esmodules:test":"cd examples/node-esmodules && npm install && npm test","examples:node:jest:test":"cd examples/node-jest && npm install && npm test","prepare":"husky install","lint":"npm run eslint:check && npm run prettier:check","eslint:check":"eslint src/ test/ examples/ *.js","eslint:fix":"eslint --fix src/ test/ examples/ *.js","pretest":"npm run build","test":"BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/","test:matching":"BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/ -t","pretest:browser":"optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**","test:browser":"wdio run ./wdio.conf.js","pretest:node":"npm run build","test:node":"npm-run-all --parallel examples:node:**","test:pack":"./scripts/testpack.sh","pretest:benchmark":"npm run build","test:benchmark":"cd examples/benchmark && HUSKY=0 npm install && npm test","prettier:check":"prettier --check .","prettier:fix":"prettier --write .","bundlewatch":"npm run pretest:browser && bundlewatch --config bundlewatch.config.json","md":"runmd --watch --output=README.md README_js.md","docs":"npm run build && npx runmd --output=README.md README_js.md","docs:diff":"npm run docs && git diff --quiet README.md","build":"./scripts/build.sh","prepack":"npm run build","release":"standard-version --no-verify"},"repository":{"type":"git","url":"git+https://github.com/uuidjs/uuid.git"},"lint-staged":{"*":["prettier --no-error-on-unmatched-pattern --write"],"*.{js,jsx}":["eslint --no-error-on-unmatched-pattern --fix"]},"standard-version":{"scripts":{"postchangelog":"prettier --write CHANGELOG.md"}},"packageManager":"npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483","_lastModified":"2026-05-09T06:30:32.304Z"}
|
|
@@ -79,6 +79,7 @@ function defineMyInAppChannels(app) {
|
|
|
79
79
|
)`;
|
|
80
80
|
const latestMsgReceiveTSFilter = ((_b = filter == null ? void 0 : filter.latestMsgReceiveTimestamp) == null ? void 0 : _b.$lt) ? import_sequelize.Sequelize.literal(`${latestMsgReceiveTimestampSQL} < ${filter.latestMsgReceiveTimestamp.$lt}`) : null;
|
|
81
81
|
const channelIdFilter = (filter == null ? void 0 : filter.id) ? { id: filter.id } : null;
|
|
82
|
+
const channelNameFilter = (filter == null ? void 0 : filter.name) ? { name: filter.name } : null;
|
|
82
83
|
const statusMap = {
|
|
83
84
|
all: "read|unread",
|
|
84
85
|
unread: "unread",
|
|
@@ -98,21 +99,22 @@ function defineMyInAppChannels(app) {
|
|
|
98
99
|
try {
|
|
99
100
|
const channelsRes = channelsRepo.find({
|
|
100
101
|
limit,
|
|
101
|
-
attributes:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
attributes: [
|
|
103
|
+
"name",
|
|
104
|
+
"title",
|
|
105
|
+
[
|
|
106
|
+
import_sequelize.Sequelize.literal(`(
|
|
105
107
|
SELECT COUNT(*)
|
|
106
108
|
FROM ${messagesTableName} AS messages
|
|
107
109
|
WHERE
|
|
108
110
|
messages.${messagesFieldName.channelName} = ${channelsTableAliasName}.${channelsFieldName.name}
|
|
109
111
|
AND messages.${messagesFieldName.userId} = ${userId}
|
|
110
112
|
)`),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
"totalMsgCnt"
|
|
114
|
+
],
|
|
115
|
+
[import_sequelize.Sequelize.literal(`'${userId}'`), "userId"],
|
|
116
|
+
[
|
|
117
|
+
import_sequelize.Sequelize.literal(`(
|
|
116
118
|
SELECT COUNT(*)
|
|
117
119
|
FROM ${messagesTableName} AS messages
|
|
118
120
|
WHERE
|
|
@@ -120,11 +122,11 @@ function defineMyInAppChannels(app) {
|
|
|
120
122
|
AND messages.${messagesFieldName.status} = 'unread'
|
|
121
123
|
AND messages.${messagesFieldName.userId} = ${userId}
|
|
122
124
|
)`),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
"unreadMsgCnt"
|
|
126
|
+
],
|
|
127
|
+
[import_sequelize.Sequelize.literal(latestMsgReceiveTimestampSQL), "latestMsgReceiveTimestamp"],
|
|
128
|
+
[
|
|
129
|
+
import_sequelize.Sequelize.literal(`(
|
|
128
130
|
SELECT messages.${messagesFieldName.title}
|
|
129
131
|
FROM ${messagesTableName} AS messages
|
|
130
132
|
WHERE
|
|
@@ -133,20 +135,25 @@ function defineMyInAppChannels(app) {
|
|
|
133
135
|
ORDER BY messages.${messagesFieldName.receiveTimestamp} DESC
|
|
134
136
|
LIMIT 1
|
|
135
137
|
)`),
|
|
136
|
-
|
|
137
|
-
]
|
|
138
|
+
"latestMsgTitle"
|
|
138
139
|
]
|
|
139
|
-
|
|
140
|
+
],
|
|
140
141
|
//@ts-ignore
|
|
141
142
|
where: {
|
|
142
|
-
[import_sequelize.Op.and]: [
|
|
143
|
+
[import_sequelize.Op.and]: [
|
|
144
|
+
userFilter,
|
|
145
|
+
latestMsgReceiveTSFilter,
|
|
146
|
+
channelIdFilter,
|
|
147
|
+
channelNameFilter,
|
|
148
|
+
channelStatusFilter
|
|
149
|
+
].filter(Boolean)
|
|
143
150
|
},
|
|
144
151
|
sort: ["-latestMsgReceiveTimestamp"]
|
|
145
152
|
});
|
|
146
153
|
const countRes = channelsRepo.count({
|
|
147
154
|
//@ts-ignore
|
|
148
155
|
where: {
|
|
149
|
-
[import_sequelize.Op.and]: [userFilter, channelStatusFilter].filter(Boolean)
|
|
156
|
+
[import_sequelize.Op.and]: [userFilter, channelNameFilter, channelStatusFilter].filter(Boolean)
|
|
150
157
|
}
|
|
151
158
|
});
|
|
152
159
|
const [channels, count] = await Promise.all([channelsRes, countRes]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-notification-in-app-message",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.27",
|
|
4
4
|
"displayName": "Notification: In-app message",
|
|
5
5
|
"displayName.ru-RU": "Уведомления: Всплывающие сообщения внутри приложения",
|
|
6
6
|
"displayName.zh-CN": "通知:站内信",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"react-router-dom": "^6.x"
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "6d9e2d4ac3c6bf40951c8eb252860e47aa3a3c37"
|
|
36
36
|
}
|