From 5469cfe141ed3a8e0a01120310d3783947348a77 Mon Sep 17 00:00:00 2001 From: rocketchat-github-ci Date: Tue, 21 May 2024 12:58:47 +0000 Subject: [PATCH 01/39] Release 6.9.0-rc.0 --- .changeset/pre.json | 94 +++++++++++++++++++ apps/meteor/CHANGELOG.md | 94 +++++++++++++++++++ apps/meteor/app/utils/rocketchat.info | 2 +- apps/meteor/ee/server/services/CHANGELOG.md | 14 +++ apps/meteor/ee/server/services/package.json | 2 +- apps/meteor/package.json | 2 +- ee/apps/account-service/CHANGELOG.md | 13 +++ ee/apps/account-service/package.json | 2 +- ee/apps/authorization-service/CHANGELOG.md | 13 +++ ee/apps/authorization-service/package.json | 2 +- ee/apps/ddp-streamer/CHANGELOG.md | 15 +++ ee/apps/ddp-streamer/package.json | 2 +- ee/apps/omnichannel-transcript/CHANGELOG.md | 14 +++ ee/apps/omnichannel-transcript/package.json | 2 +- ee/apps/presence-service/CHANGELOG.md | 13 +++ ee/apps/presence-service/package.json | 2 +- ee/apps/queue-worker/CHANGELOG.md | 13 +++ ee/apps/queue-worker/package.json | 2 +- ee/apps/stream-hub-service/CHANGELOG.md | 12 +++ ee/apps/stream-hub-service/package.json | 2 +- ee/packages/api-client/CHANGELOG.md | 10 ++ ee/packages/api-client/package.json | 2 +- ee/packages/ddp-client/CHANGELOG.md | 10 ++ ee/packages/ddp-client/package.json | 2 +- ee/packages/license/CHANGELOG.md | 9 ++ ee/packages/license/package.json | 2 +- ee/packages/omnichannel-services/CHANGELOG.md | 18 ++++ ee/packages/omnichannel-services/package.json | 2 +- ee/packages/pdf-worker/CHANGELOG.md | 11 +++ ee/packages/pdf-worker/package.json | 2 +- ee/packages/presence/CHANGELOG.md | 11 +++ ee/packages/presence/package.json | 2 +- package.json | 2 +- packages/apps/CHANGELOG.md | 10 ++ packages/apps/package.json | 2 +- packages/core-services/CHANGELOG.md | 16 ++++ packages/core-services/package.json | 2 +- packages/core-typings/CHANGELOG.md | 15 +++ packages/core-typings/package.json | 2 +- packages/cron/CHANGELOG.md | 10 ++ packages/cron/package.json | 2 +- packages/fuselage-ui-kit/CHANGELOG.md | 20 ++++ packages/fuselage-ui-kit/package.json | 12 +-- packages/gazzodown/CHANGELOG.md | 11 +++ packages/gazzodown/package.json | 6 +- packages/i18n/CHANGELOG.md | 12 +++ packages/i18n/package.json | 2 +- packages/instance-status/CHANGELOG.md | 9 ++ packages/instance-status/package.json | 2 +- packages/livechat/CHANGELOG.md | 14 +++ packages/livechat/package.json | 2 +- packages/mock-providers/CHANGELOG.md | 9 ++ packages/mock-providers/package.json | 2 +- packages/model-typings/CHANGELOG.md | 9 ++ packages/model-typings/package.json | 2 +- packages/models/CHANGELOG.md | 9 ++ packages/models/package.json | 2 +- packages/rest-typings/CHANGELOG.md | 14 +++ packages/rest-typings/package.json | 2 +- packages/ui-avatar/CHANGELOG.md | 9 ++ packages/ui-avatar/package.json | 4 +- packages/ui-client/CHANGELOG.md | 9 ++ packages/ui-client/package.json | 4 +- packages/ui-contexts/CHANGELOG.md | 12 +++ packages/ui-contexts/package.json | 2 +- packages/ui-kit/CHANGELOG.md | 6 ++ packages/ui-kit/package.json | 2 +- packages/ui-video-conf/CHANGELOG.md | 10 ++ packages/ui-video-conf/package.json | 6 +- packages/uikit-playground/CHANGELOG.md | 11 +++ packages/uikit-playground/package.json | 2 +- packages/web-ui-registration/CHANGELOG.md | 9 ++ packages/web-ui-registration/package.json | 4 +- 73 files changed, 637 insertions(+), 49 deletions(-) create mode 100644 .changeset/pre.json diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000000000..7faf2d0be1073 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,94 @@ +{ + "mode": "pre", + "tag": "rc", + "initialVersions": { + "@rocket.chat/meteor": "6.9.0-develop", + "rocketchat-services": "1.1.32", + "@rocket.chat/account-service": "0.3.13", + "@rocket.chat/authorization-service": "0.3.14", + "@rocket.chat/ddp-streamer": "0.2.13", + "@rocket.chat/omnichannel-transcript": "0.3.14", + "@rocket.chat/presence-service": "0.3.14", + "@rocket.chat/queue-worker": "0.3.14", + "@rocket.chat/stream-hub-service": "0.3.14", + "@rocket.chat/api-client": "0.1.32", + "@rocket.chat/ddp-client": "0.2.23", + "@rocket.chat/license": "0.1.14", + "@rocket.chat/omnichannel-services": "0.1.14", + "@rocket.chat/pdf-worker": "0.0.38", + "@rocket.chat/presence": "0.1.14", + "@rocket.chat/ui-theming": "0.1.2", + "@rocket.chat/account-utils": "0.0.2", + "@rocket.chat/agenda": "0.1.0", + "@rocket.chat/apps": "0.0.5", + "@rocket.chat/base64": "1.0.13", + "@rocket.chat/cas-validate": "0.0.2", + "@rocket.chat/core-services": "0.3.14", + "@rocket.chat/core-typings": "6.9.0-develop", + "@rocket.chat/cron": "0.0.34", + "@rocket.chat/eslint-config": "0.7.0", + "@rocket.chat/favicon": "0.0.2", + "@rocket.chat/fuselage-ui-kit": "6.0.0", + "@rocket.chat/gazzodown": "6.0.0", + "@rocket.chat/i18n": "0.3.0", + "@rocket.chat/instance-status": "0.0.38", + "@rocket.chat/jwt": "0.1.1", + "@rocket.chat/livechat": "1.16.0", + "@rocket.chat/log-format": "0.0.2", + "@rocket.chat/logger": "0.0.2", + "@rocket.chat/message-parser": "0.31.29", + "@rocket.chat/mock-providers": "0.0.6", + "@rocket.chat/model-typings": "0.4.0", + "@rocket.chat/models": "0.0.38", + "@rocket.chat/poplib": "0.0.2", + "@rocket.chat/password-policies": "0.0.2", + "@rocket.chat/patch-injection": "0.0.1", + "@rocket.chat/peggy-loader": "0.31.25", + "@rocket.chat/random": "1.2.2", + "@rocket.chat/release-action": "2.2.3", + "@rocket.chat/release-changelog": "0.1.0", + "@rocket.chat/rest-typings": "6.9.0-develop", + "@rocket.chat/server-cloud-communication": "0.0.2", + "@rocket.chat/server-fetch": "0.0.3", + "@rocket.chat/sha256": "1.0.10", + "@rocket.chat/tools": "0.2.1", + "@rocket.chat/ui-avatar": "2.0.0", + "@rocket.chat/ui-client": "6.0.0", + "@rocket.chat/ui-composer": "0.1.0", + "@rocket.chat/ui-contexts": "6.0.0", + "@rocket.chat/ui-kit": "0.33.0", + "@rocket.chat/ui-video-conf": "6.0.0", + "@rocket.chat/uikit-playground": "0.2.22", + "@rocket.chat/web-ui-registration": "6.0.0" + }, + "changesets": [ + "angry-rocks-try", + "breezy-geckos-sparkle", + "chilly-poems-explode", + "cold-beds-hope", + "cuddly-owls-join", + "fair-grapes-thank", + "flat-starfishes-crash", + "fresh-students-remember", + "gorgeous-lizards-shave", + "lazy-gorilas-shop", + "nasty-swans-compete", + "ninety-rivers-mix", + "rich-bananas-complain", + "shiny-crabs-peel", + "shy-oranges-provide", + "silly-clocks-return", + "strange-bears-dance", + "strong-humans-bow", + "tall-wombats-love", + "unlucky-berries-guess", + "warm-squids-deliver", + "weak-starfishes-fail", + "weak-turkeys-sit", + "wicked-points-deliver", + "wild-teachers-design", + "wise-pianos-explode", + "yellow-lies-judge", + "young-yaks-suffer" + ] +} diff --git a/apps/meteor/CHANGELOG.md b/apps/meteor/CHANGELOG.md index 5039151d35bc8..c1b1d541ccf47 100644 --- a/apps/meteor/CHANGELOG.md +++ b/apps/meteor/CHANGELOG.md @@ -1,5 +1,99 @@ # @rocket.chat/meteor +## 6.9.0-rc.0 + +### Minor Changes + +- ([#31917](https://github.com/RocketChat/Rocket.Chat/pull/31917)) Introduced a tab layout to the users page and implemented a tab called "All" that lists all users. + +- ([#32439](https://github.com/RocketChat/Rocket.Chat/pull/32439)) Allow visitors & integrations to access downloaded files after a room has closed. This was a known limitation in our codebase, where visitors were only able to access uploaded files in a livechat conversation while the conversation was open. + +- ([#32233](https://github.com/RocketChat/Rocket.Chat/pull/32233)) Makes the triggers fired by the condition `after-guest-registration` persist on the livechat client, it will persist through reloads and pagination, only reseting when a conversation is closed (no changes were done on the agent side of the conversation) + +- ([#32193](https://github.com/RocketChat/Rocket.Chat/pull/32193)) Adds CheckOption to departments multi selects improving options visibility state + +- ([#32317](https://github.com/RocketChat/Rocket.Chat/pull/32317)) Replace the read receipt receipt indicator in order to improve the accessibility complience + +- ([#32341](https://github.com/RocketChat/Rocket.Chat/pull/32341)) Changes the scrollbar color in order to improve the contrast and accessibility compliance + +- ([#32298](https://github.com/RocketChat/Rocket.Chat/pull/32298)) Added "Rocket.Chat Cloud Workspace ID" to workspace statistics page + +### Patch Changes + +- ([#32393](https://github.com/RocketChat/Rocket.Chat/pull/32393)) Fixed an issue causing monitors to dissapear from a saved unit every time a user saved the item. This was caused by the UI not sending the correct \_id of the monitors that were already saved, and this caused the Backend to ignore them and remove from the list. + +- ([#31695](https://github.com/RocketChat/Rocket.Chat/pull/31695)) Fix an issue where read receipts menu item wasn't considering the enabled setting to be displayed + +- ([#32454](https://github.com/RocketChat/Rocket.Chat/pull/32454)) Fixes an issue not allowing override retention policy in channels + +- ([#32444](https://github.com/RocketChat/Rocket.Chat/pull/32444)) Fixed an issue that prevented CAS users from being merged with existing user data on login + +- ([#32289](https://github.com/RocketChat/Rocket.Chat/pull/32289)) Fixed a problem in how server was processing errors that was sending 2 ephemeral error messages when @all or @here were used while they were disabled via permissions + +- ([#32348](https://github.com/RocketChat/Rocket.Chat/pull/32348)) Fixed an issue where translations would fallback to english some of the times. + +- ([#32182](https://github.com/RocketChat/Rocket.Chat/pull/32182)) Fixed an issue with object storage settings that was not allowing admins to decide if files generated via "Export conversation" feature were being proxied through server or not. + +- ([#32311](https://github.com/RocketChat/Rocket.Chat/pull/32311)) Fixed multiple issues with PDF generation logic when a quoted message was too big to fit in one single page. This was causing an internal infinite loop within the library (as it tried to make it fit, failing and then trying to fit on next page where the same happened thus causing a loop). + The library was not able to break down some nested views and thus was trying to fit the whole quote on one single page. Logic was updated to allow wrapping of the contents when messages are quoted (so they can span multiple lines) and removed a bunch of unnecesary views from the code. +- ([#32364](https://github.com/RocketChat/Rocket.Chat/pull/32364)) Fixed issue with "Export room as file" feature (`rooms.export` endpoint) generating an empty export when given an invalid date + +- ([#32314](https://github.com/RocketChat/Rocket.Chat/pull/32314)) Fixed an issue on Users converter that was not returning the `statusText` property from users even when the typing indicated property existed. + +- ([#32391](https://github.com/RocketChat/Rocket.Chat/pull/32391)) Fixes link image preview not opening in gallery mode + +- ([#32318](https://github.com/RocketChat/Rocket.Chat/pull/32318)) Fixed error handling for files bigger than NATS max allowed payload. This should prevent PDFs from erroring out when generating from rooms that contain heavy images. + +- ([#32345](https://github.com/RocketChat/Rocket.Chat/pull/32345)) Replaces the burger menu with an appropriate button fixing the semantics and mismatching color + +- ([#32414](https://github.com/RocketChat/Rocket.Chat/pull/32414)) Fixes the missing spacing on don`t ask again checkbox inside modals + +- ([#32269](https://github.com/RocketChat/Rocket.Chat/pull/32269)) Fixed a bad behavior with the interaction between OTR system messages & trash collection. We use trash collection as a temporary storage that holds recently deleted items from some collections. Messages is one of those. This was causing "User joined OTR" messages to be viewable when querying the trash collection. + Since OTR messages are by definition private, code was updated to bypass trash collection when removing these special messages. + + Note: this only applies to these system messages. OTR user's messages are not stored on the database. + +- ([#32415](https://github.com/RocketChat/Rocket.Chat/pull/32415)) This fuselage`s bump fixes: + + - The message toolbar visibility on hover (Firefox ESR) + - `Bubble` missing font-family + + [more details](https://github.com/RocketChat/fuselage/releases/tag/%40rocket.chat%2Ffuselage%400.53.7) + +- ([#32398](https://github.com/RocketChat/Rocket.Chat/pull/32398)) Fixed issue with external users being able to reset their passwords even when the "Allow Password Change for OAuth Users" setting is disabled + +- ([#32284](https://github.com/RocketChat/Rocket.Chat/pull/32284)) fixed Engagement Dashboard and Device Management admin pages loading indefinitely + +- ([#32342](https://github.com/RocketChat/Rocket.Chat/pull/32342)) bump fuselage adding `AttachmentAuthorName` missing color token + +-
Updated dependencies [ff4e396416, bc50dd54a2, ad86761209, f83bd56cc5, 6205ef14f0, 724ba3a729, ee5cdfc367, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/i18n@0.4.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/omnichannel-services@0.1.15-rc.0 + - @rocket.chat/pdf-worker@0.0.39-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/fuselage-ui-kit@7.0.0-rc.0 + - @rocket.chat/ui-kit@0.34.0-rc.0 + - @rocket.chat/api-client@0.1.33-rc.0 + - @rocket.chat/license@0.1.15-rc.0 + - @rocket.chat/presence@0.1.15-rc.0 + - @rocket.chat/apps@0.0.6-rc.0 + - @rocket.chat/cron@0.0.35-rc.0 + - @rocket.chat/gazzodown@7.0.0-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/ui-contexts@7.0.0-rc.0 + - @rocket.chat/web-ui-registration@7.0.0-rc.0 + - @rocket.chat/server-cloud-communication@0.0.2 + - @rocket.chat/models@0.0.39-rc.0 + - @rocket.chat/ui-theming@0.1.2 + - @rocket.chat/ui-avatar@3.0.0-rc.0 + - @rocket.chat/ui-client@7.0.0-rc.0 + - @rocket.chat/ui-video-conf@7.0.0-rc.0 + - @rocket.chat/instance-status@0.0.39-rc.0 +
+ ## 6.8.0 ### Minor Changes diff --git a/apps/meteor/app/utils/rocketchat.info b/apps/meteor/app/utils/rocketchat.info index 5878bf0b31901..18d1687ea9bd0 100644 --- a/apps/meteor/app/utils/rocketchat.info +++ b/apps/meteor/app/utils/rocketchat.info @@ -1,3 +1,3 @@ { - "version": "6.9.0-develop" + "version": "6.9.0-rc.0" } diff --git a/apps/meteor/ee/server/services/CHANGELOG.md b/apps/meteor/ee/server/services/CHANGELOG.md index de9a11ca7a32f..c16384a9e56d1 100644 --- a/apps/meteor/ee/server/services/CHANGELOG.md +++ b/apps/meteor/ee/server/services/CHANGELOG.md @@ -1,5 +1,19 @@ # rocketchat-services +## 1.1.33-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, f83bd56cc5, 724ba3a729, ee5cdfc367, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/ui-kit@0.34.0-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 1.1.32 ### Patch Changes diff --git a/apps/meteor/ee/server/services/package.json b/apps/meteor/ee/server/services/package.json index 3a22d39653854..3d1dc89ee1b65 100644 --- a/apps/meteor/ee/server/services/package.json +++ b/apps/meteor/ee/server/services/package.json @@ -1,7 +1,7 @@ { "name": "rocketchat-services", "private": true, - "version": "1.1.32", + "version": "1.1.33-rc.0", "description": "Rocket.Chat Authorization service", "main": "index.js", "scripts": { diff --git a/apps/meteor/package.json b/apps/meteor/package.json index 127439f74c099..f67bbf4defbd4 100644 --- a/apps/meteor/package.json +++ b/apps/meteor/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/meteor", "description": "The Ultimate Open Source WebChat Platform", - "version": "6.9.0-develop", + "version": "6.9.0-rc.0", "private": true, "author": { "name": "Rocket.Chat", diff --git a/ee/apps/account-service/CHANGELOG.md b/ee/apps/account-service/CHANGELOG.md index 666eda95454d6..875b61da3e5f7 100644 --- a/ee/apps/account-service/CHANGELOG.md +++ b/ee/apps/account-service/CHANGELOG.md @@ -1,5 +1,18 @@ # @rocket.chat/account-service +## 0.3.14-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, f83bd56cc5, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.3.13 ### Patch Changes diff --git a/ee/apps/account-service/package.json b/ee/apps/account-service/package.json index 0ccbbce820f23..508814bc2b340 100644 --- a/ee/apps/account-service/package.json +++ b/ee/apps/account-service/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/account-service", "private": true, - "version": "0.3.13", + "version": "0.3.14-rc.0", "description": "Rocket.Chat Account service", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/ee/apps/authorization-service/CHANGELOG.md b/ee/apps/authorization-service/CHANGELOG.md index 80940bcb4ff46..7a15bf2053018 100644 --- a/ee/apps/authorization-service/CHANGELOG.md +++ b/ee/apps/authorization-service/CHANGELOG.md @@ -1,5 +1,18 @@ # @rocket.chat/authorization-service +## 0.3.15-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, f83bd56cc5, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.3.14 ### Patch Changes diff --git a/ee/apps/authorization-service/package.json b/ee/apps/authorization-service/package.json index 13546b16d3b3b..d9cc9e7e8ce15 100644 --- a/ee/apps/authorization-service/package.json +++ b/ee/apps/authorization-service/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/authorization-service", "private": true, - "version": "0.3.14", + "version": "0.3.15-rc.0", "description": "Rocket.Chat Authorization service", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/ee/apps/ddp-streamer/CHANGELOG.md b/ee/apps/ddp-streamer/CHANGELOG.md index 5376a1baad581..e7ba31816b5b0 100644 --- a/ee/apps/ddp-streamer/CHANGELOG.md +++ b/ee/apps/ddp-streamer/CHANGELOG.md @@ -1,5 +1,20 @@ # @rocket.chat/ddp-streamer +## 0.2.14-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, f83bd56cc5, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/ui-contexts@7.0.0-rc.0 + - @rocket.chat/models@0.0.39-rc.0 + - @rocket.chat/instance-status@0.0.39-rc.0 +
+ ## 0.2.13 ### Patch Changes diff --git a/ee/apps/ddp-streamer/package.json b/ee/apps/ddp-streamer/package.json index 8cc41e5b8e3ca..ce7064e834fb7 100644 --- a/ee/apps/ddp-streamer/package.json +++ b/ee/apps/ddp-streamer/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/ddp-streamer", "private": true, - "version": "0.2.13", + "version": "0.2.14-rc.0", "description": "Rocket.Chat DDP-Streamer service", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/ee/apps/omnichannel-transcript/CHANGELOG.md b/ee/apps/omnichannel-transcript/CHANGELOG.md index a2530269d793d..ac726a7e5ffbd 100644 --- a/ee/apps/omnichannel-transcript/CHANGELOG.md +++ b/ee/apps/omnichannel-transcript/CHANGELOG.md @@ -1,5 +1,19 @@ # @rocket.chat/omnichannel-transcript +## 0.3.15-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/omnichannel-services@0.1.15-rc.0 + - @rocket.chat/pdf-worker@0.0.39-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.3.14 ### Patch Changes diff --git a/ee/apps/omnichannel-transcript/package.json b/ee/apps/omnichannel-transcript/package.json index 5a8da65d51a44..fc27979f1b305 100644 --- a/ee/apps/omnichannel-transcript/package.json +++ b/ee/apps/omnichannel-transcript/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/omnichannel-transcript", "private": true, - "version": "0.3.14", + "version": "0.3.15-rc.0", "description": "Rocket.Chat service", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/ee/apps/presence-service/CHANGELOG.md b/ee/apps/presence-service/CHANGELOG.md index 3bd7b99528325..68e8cfcff8d7d 100644 --- a/ee/apps/presence-service/CHANGELOG.md +++ b/ee/apps/presence-service/CHANGELOG.md @@ -1,5 +1,18 @@ # @rocket.chat/presence-service +## 0.3.15-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/presence@0.1.15-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.3.14 ### Patch Changes diff --git a/ee/apps/presence-service/package.json b/ee/apps/presence-service/package.json index 10b47541cb826..e353668a1f365 100644 --- a/ee/apps/presence-service/package.json +++ b/ee/apps/presence-service/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/presence-service", "private": true, - "version": "0.3.14", + "version": "0.3.15-rc.0", "description": "Rocket.Chat Presence service", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/ee/apps/queue-worker/CHANGELOG.md b/ee/apps/queue-worker/CHANGELOG.md index 2834b63011812..911923e492ba0 100644 --- a/ee/apps/queue-worker/CHANGELOG.md +++ b/ee/apps/queue-worker/CHANGELOG.md @@ -1,5 +1,18 @@ # @rocket.chat/queue-worker +## 0.3.15-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/omnichannel-services@0.1.15-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.3.14 ### Patch Changes diff --git a/ee/apps/queue-worker/package.json b/ee/apps/queue-worker/package.json index 4864e4a34c9b2..dcbb47e7b0e46 100644 --- a/ee/apps/queue-worker/package.json +++ b/ee/apps/queue-worker/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/queue-worker", "private": true, - "version": "0.3.14", + "version": "0.3.15-rc.0", "description": "Rocket.Chat service", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/ee/apps/stream-hub-service/CHANGELOG.md b/ee/apps/stream-hub-service/CHANGELOG.md index e6a8f79aedd85..997188f03260b 100644 --- a/ee/apps/stream-hub-service/CHANGELOG.md +++ b/ee/apps/stream-hub-service/CHANGELOG.md @@ -1,5 +1,17 @@ # @rocket.chat/stream-hub-service +## 0.3.15-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.3.14 ### Patch Changes diff --git a/ee/apps/stream-hub-service/package.json b/ee/apps/stream-hub-service/package.json index 76076b4d30304..827753a270b1c 100644 --- a/ee/apps/stream-hub-service/package.json +++ b/ee/apps/stream-hub-service/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/stream-hub-service", "private": true, - "version": "0.3.14", + "version": "0.3.15-rc.0", "description": "Rocket.Chat Stream Hub service", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/ee/packages/api-client/CHANGELOG.md b/ee/packages/api-client/CHANGELOG.md index 28df5106b12f0..0a89cb4a8e591 100644 --- a/ee/packages/api-client/CHANGELOG.md +++ b/ee/packages/api-client/CHANGELOG.md @@ -1,5 +1,15 @@ # @rocket.chat/api-client +## 0.1.33-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, f83bd56cc5, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 +
+ ## 0.1.32 ### Patch Changes diff --git a/ee/packages/api-client/package.json b/ee/packages/api-client/package.json index 096eec4ee113c..609cd9888dd6e 100644 --- a/ee/packages/api-client/package.json +++ b/ee/packages/api-client/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/api-client", "private": true, - "version": "0.1.32", + "version": "0.1.33-rc.0", "devDependencies": { "@swc/core": "^1.3.95", "@swc/jest": "^0.2.29", diff --git a/ee/packages/ddp-client/CHANGELOG.md b/ee/packages/ddp-client/CHANGELOG.md index 80aada44fcab3..66344812c276d 100644 --- a/ee/packages/ddp-client/CHANGELOG.md +++ b/ee/packages/ddp-client/CHANGELOG.md @@ -1,5 +1,15 @@ # @rocket.chat/ddp-client +## 0.2.24-rc.0 + +### Patch Changes + +-
Updated dependencies [f83bd56cc5]: + + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/api-client@0.1.33-rc.0 +
+ ## 0.2.23 ### Patch Changes diff --git a/ee/packages/ddp-client/package.json b/ee/packages/ddp-client/package.json index daf3a22c5da6f..26c85939670f2 100644 --- a/ee/packages/ddp-client/package.json +++ b/ee/packages/ddp-client/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/ddp-client", "private": true, - "version": "0.2.23", + "version": "0.2.24-rc.0", "devDependencies": { "@swc/core": "^1.3.95", "@swc/jest": "^0.2.29", diff --git a/ee/packages/license/CHANGELOG.md b/ee/packages/license/CHANGELOG.md index 603f131dc4071..b2bbb88bdb2e7 100644 --- a/ee/packages/license/CHANGELOG.md +++ b/ee/packages/license/CHANGELOG.md @@ -1,5 +1,14 @@ # @rocket.chat/license +## 0.1.15-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 +
+ ## 0.1.14 ### Patch Changes diff --git a/ee/packages/license/package.json b/ee/packages/license/package.json index a07a8db51af0e..6418eb2245537 100644 --- a/ee/packages/license/package.json +++ b/ee/packages/license/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/license", - "version": "0.1.14", + "version": "0.1.15-rc.0", "private": true, "devDependencies": { "@swc/core": "^1.3.95", diff --git a/ee/packages/omnichannel-services/CHANGELOG.md b/ee/packages/omnichannel-services/CHANGELOG.md index e9364326e9494..fbed2ecb619ee 100644 --- a/ee/packages/omnichannel-services/CHANGELOG.md +++ b/ee/packages/omnichannel-services/CHANGELOG.md @@ -1,5 +1,23 @@ # @rocket.chat/omnichannel-services +## 0.1.15-rc.0 + +### Patch Changes + +- ([#32311](https://github.com/RocketChat/Rocket.Chat/pull/32311)) Fixed multiple issues with PDF generation logic when a quoted message was too big to fit in one single page. This was causing an internal infinite loop within the library (as it tried to make it fit, failing and then trying to fit on next page where the same happened thus causing a loop). + The library was not able to break down some nested views and thus was trying to fit the whole quote on one single page. Logic was updated to allow wrapping of the contents when messages are quoted (so they can span multiple lines) and removed a bunch of unnecesary views from the code. +- ([#32318](https://github.com/RocketChat/Rocket.Chat/pull/32318)) Fixed error handling for files bigger than NATS max allowed payload. This should prevent PDFs from erroring out when generating from rooms that contain heavy images. + +-
Updated dependencies [ff4e396416, ad86761209, f83bd56cc5, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/pdf-worker@0.0.39-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.1.14 ### Patch Changes diff --git a/ee/packages/omnichannel-services/package.json b/ee/packages/omnichannel-services/package.json index a9a99ff25fd7d..bc07fdc996394 100644 --- a/ee/packages/omnichannel-services/package.json +++ b/ee/packages/omnichannel-services/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/omnichannel-services", - "version": "0.1.14", + "version": "0.1.15-rc.0", "private": true, "devDependencies": { "@rocket.chat/eslint-config": "workspace:^", diff --git a/ee/packages/pdf-worker/CHANGELOG.md b/ee/packages/pdf-worker/CHANGELOG.md index 5cd81d9558ac7..05dab4b4b4149 100644 --- a/ee/packages/pdf-worker/CHANGELOG.md +++ b/ee/packages/pdf-worker/CHANGELOG.md @@ -1,5 +1,16 @@ # @rocket.chat/pdf-worker +## 0.0.39-rc.0 + +### Patch Changes + +- ([#32311](https://github.com/RocketChat/Rocket.Chat/pull/32311)) Fixed multiple issues with PDF generation logic when a quoted message was too big to fit in one single page. This was causing an internal infinite loop within the library (as it tried to make it fit, failing and then trying to fit on next page where the same happened thus causing a loop). + The library was not able to break down some nested views and thus was trying to fit the whole quote on one single page. Logic was updated to allow wrapping of the contents when messages are quoted (so they can span multiple lines) and removed a bunch of unnecesary views from the code. +-
Updated dependencies [ff4e396416, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 +
+ ## 0.0.38 ### Patch Changes diff --git a/ee/packages/pdf-worker/package.json b/ee/packages/pdf-worker/package.json index c2e3513b6aeca..2e68fd2f3ca4b 100644 --- a/ee/packages/pdf-worker/package.json +++ b/ee/packages/pdf-worker/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/pdf-worker", - "version": "0.0.38", + "version": "0.0.39-rc.0", "private": true, "devDependencies": { "@storybook/addon-essentials": "~6.5.16", diff --git a/ee/packages/presence/CHANGELOG.md b/ee/packages/presence/CHANGELOG.md index faae6ee61368d..8e11707e6c1e0 100644 --- a/ee/packages/presence/CHANGELOG.md +++ b/ee/packages/presence/CHANGELOG.md @@ -1,5 +1,16 @@ # @rocket.chat/presence +## 0.1.15-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, ad86761209, 724ba3a729, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/core-services@0.3.15-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.1.14 ### Patch Changes diff --git a/ee/packages/presence/package.json b/ee/packages/presence/package.json index d4b102247d9a0..9b2472dd91f6b 100644 --- a/ee/packages/presence/package.json +++ b/ee/packages/presence/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/presence", - "version": "0.1.14", + "version": "0.1.15-rc.0", "private": true, "devDependencies": { "@babel/core": "~7.22.20", diff --git a/package.json b/package.json index fa35a133961ed..0edd977b75084 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rocket.chat", - "version": "6.9.0-develop", + "version": "6.9.0-rc.0", "description": "Rocket.Chat Monorepo", "main": "index.js", "private": true, diff --git a/packages/apps/CHANGELOG.md b/packages/apps/CHANGELOG.md index 2eda0bcd9fb00..dd7986b1ed88d 100644 --- a/packages/apps/CHANGELOG.md +++ b/packages/apps/CHANGELOG.md @@ -1,5 +1,15 @@ # @rocket.chat/apps +## 0.0.6-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/model-typings@0.4.1-rc.0 +
+ ## 0.0.5 ### Patch Changes diff --git a/packages/apps/package.json b/packages/apps/package.json index fd657d4382f8a..b27fec0a2d74f 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/apps", - "version": "0.0.5", + "version": "0.0.6-rc.0", "private": true, "devDependencies": { "@types/jest": "~29.5.7", diff --git a/packages/core-services/CHANGELOG.md b/packages/core-services/CHANGELOG.md index 38f0c44cb8acb..212f0af2114fc 100644 --- a/packages/core-services/CHANGELOG.md +++ b/packages/core-services/CHANGELOG.md @@ -1,5 +1,21 @@ # @rocket.chat/core-services +## 0.3.15-rc.0 + +### Patch Changes + +- ([#32311](https://github.com/RocketChat/Rocket.Chat/pull/32311)) Fixed multiple issues with PDF generation logic when a quoted message was too big to fit in one single page. This was causing an internal infinite loop within the library (as it tried to make it fit, failing and then trying to fit on next page where the same happened thus causing a loop). + The library was not able to break down some nested views and thus was trying to fit the whole quote on one single page. Logic was updated to allow wrapping of the contents when messages are quoted (so they can span multiple lines) and removed a bunch of unnecesary views from the code. +- ([#32318](https://github.com/RocketChat/Rocket.Chat/pull/32318)) Fixed error handling for files bigger than NATS max allowed payload. This should prevent PDFs from erroring out when generating from rooms that contain heavy images. + +-
Updated dependencies [ff4e396416, f83bd56cc5, ee5cdfc367, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/ui-kit@0.34.0-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.3.14 ### Patch Changes diff --git a/packages/core-services/package.json b/packages/core-services/package.json index d7a8fe6b78f18..4f3aa194cf91e 100644 --- a/packages/core-services/package.json +++ b/packages/core-services/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/core-services", - "version": "0.3.14", + "version": "0.3.15-rc.0", "private": true, "devDependencies": { "@babel/core": "~7.22.20", diff --git a/packages/core-typings/CHANGELOG.md b/packages/core-typings/CHANGELOG.md index 311b3bbefa888..179038594e83b 100644 --- a/packages/core-typings/CHANGELOG.md +++ b/packages/core-typings/CHANGELOG.md @@ -1,5 +1,20 @@ # @rocket.chat/core-typings +## 6.9.0-rc.0 + +### Minor Changes + +- ([#31917](https://github.com/RocketChat/Rocket.Chat/pull/31917)) Introduced a tab layout to the users page and implemented a tab called "All" that lists all users. + +- ([#32298](https://github.com/RocketChat/Rocket.Chat/pull/32298)) Added "Rocket.Chat Cloud Workspace ID" to workspace statistics page + +### Patch Changes + +-
Updated dependencies [ee5cdfc367]: + + - @rocket.chat/ui-kit@0.34.0-rc.0 +
+ ## 6.8.0 ### Minor Changes diff --git a/packages/core-typings/package.json b/packages/core-typings/package.json index 8da5472092121..0778f37d98ca3 100644 --- a/packages/core-typings/package.json +++ b/packages/core-typings/package.json @@ -2,7 +2,7 @@ "$schema": "https://json.schemastore.org/package", "name": "@rocket.chat/core-typings", "private": true, - "version": "6.9.0-develop", + "version": "6.9.0-rc.0", "devDependencies": { "@rocket.chat/eslint-config": "workspace:^", "eslint": "~8.45.0", diff --git a/packages/cron/CHANGELOG.md b/packages/cron/CHANGELOG.md index 797d15348f5d7..a7cca89842a79 100644 --- a/packages/cron/CHANGELOG.md +++ b/packages/cron/CHANGELOG.md @@ -1,5 +1,15 @@ # @rocket.chat/cron +## 0.0.35-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.0.34 ### Patch Changes diff --git a/packages/cron/package.json b/packages/cron/package.json index a9a4424dafe9e..490d75ceb0414 100644 --- a/packages/cron/package.json +++ b/packages/cron/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/cron", - "version": "0.0.34", + "version": "0.0.35-rc.0", "private": true, "devDependencies": { "@types/jest": "~29.5.7", diff --git a/packages/fuselage-ui-kit/CHANGELOG.md b/packages/fuselage-ui-kit/CHANGELOG.md index 7733e8063e61a..8c6909e30be2d 100644 --- a/packages/fuselage-ui-kit/CHANGELOG.md +++ b/packages/fuselage-ui-kit/CHANGELOG.md @@ -1,5 +1,25 @@ # Change Log +## 7.0.0-rc.0 + +### Minor Changes + +- ([#31918](https://github.com/RocketChat/Rocket.Chat/pull/31918)) Introduced new elements for apps to select channels + +### Patch Changes + +- ([#32327](https://github.com/RocketChat/Rocket.Chat/pull/32327)) Fix translation param on video conf joined message + +-
Updated dependencies [ff4e396416, ee5cdfc367, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/ui-kit@0.34.0-rc.0 + - @rocket.chat/gazzodown@7.0.0-rc.0 + - @rocket.chat/ui-contexts@7.0.0-rc.0 + - @rocket.chat/ui-avatar@3.0.0-rc.0 + - @rocket.chat/ui-video-conf@7.0.0-rc.0 +
+ ## 6.0.0 ### Patch Changes diff --git a/packages/fuselage-ui-kit/package.json b/packages/fuselage-ui-kit/package.json index 5fe8960b25893..1ab7de0401498 100644 --- a/packages/fuselage-ui-kit/package.json +++ b/packages/fuselage-ui-kit/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/fuselage-ui-kit", "private": true, - "version": "6.0.0", + "version": "7.0.0-rc.0", "description": "UiKit elements for Rocket.Chat Apps built under Fuselage design system", "homepage": "https://rocketchat.github.io/Rocket.Chat.Fuselage/", "author": { @@ -50,10 +50,10 @@ "@rocket.chat/icons": "*", "@rocket.chat/prettier-config": "*", "@rocket.chat/styled": "*", - "@rocket.chat/ui-avatar": "2.0.0", - "@rocket.chat/ui-contexts": "6.0.0", - "@rocket.chat/ui-kit": "0.33.0", - "@rocket.chat/ui-video-conf": "6.0.0", + "@rocket.chat/ui-avatar": "3.0.0-rc.0", + "@rocket.chat/ui-contexts": "7.0.0-rc.0", + "@rocket.chat/ui-kit": "0.34.0-rc.0", + "@rocket.chat/ui-video-conf": "7.0.0-rc.0", "@tanstack/react-query": "*", "react": "*", "react-dom": "*" @@ -110,7 +110,7 @@ "typescript": "~5.3.3" }, "dependencies": { - "@rocket.chat/core-typings": "*", + "@rocket.chat/core-typings": "6.9.0-rc.0", "@rocket.chat/gazzodown": "workspace:^", "@rocket.chat/ui-kit": "workspace:~", "tslib": "^2.5.3" diff --git a/packages/gazzodown/CHANGELOG.md b/packages/gazzodown/CHANGELOG.md index 828981eb3809f..69e83db1e9aae 100644 --- a/packages/gazzodown/CHANGELOG.md +++ b/packages/gazzodown/CHANGELOG.md @@ -1,5 +1,16 @@ # @rocket.chat/gazzodown +## 7.0.0-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/ui-contexts@7.0.0-rc.0 + - @rocket.chat/ui-client@7.0.0-rc.0 +
+ ## 6.0.0 ### Patch Changes diff --git a/packages/gazzodown/package.json b/packages/gazzodown/package.json index 435c984008a5b..8168d202f0d1a 100644 --- a/packages/gazzodown/package.json +++ b/packages/gazzodown/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/gazzodown", - "version": "6.0.0", + "version": "7.0.0-rc.0", "private": true, "devDependencies": { "@babel/core": "~7.22.20", @@ -71,8 +71,8 @@ "@rocket.chat/fuselage-tokens": "*", "@rocket.chat/message-parser": "0.31.29", "@rocket.chat/styled": "*", - "@rocket.chat/ui-client": "6.0.0", - "@rocket.chat/ui-contexts": "6.0.0", + "@rocket.chat/ui-client": "7.0.0-rc.0", + "@rocket.chat/ui-contexts": "7.0.0-rc.0", "katex": "*", "react": "*" }, diff --git a/packages/i18n/CHANGELOG.md b/packages/i18n/CHANGELOG.md index c1488a9ce8ca7..17f2e90aaeeda 100644 --- a/packages/i18n/CHANGELOG.md +++ b/packages/i18n/CHANGELOG.md @@ -1,5 +1,17 @@ # @rocket.chat/i18n +## 0.4.0-rc.0 + +### Minor Changes + +- ([#32298](https://github.com/RocketChat/Rocket.Chat/pull/32298)) Added "Rocket.Chat Cloud Workspace ID" to workspace statistics page + +### Patch Changes + +- ([#31917](https://github.com/RocketChat/Rocket.Chat/pull/31917)) Introduced a tab layout to the users page and implemented a tab called "All" that lists all users. + +- ([#32182](https://github.com/RocketChat/Rocket.Chat/pull/32182)) Fixed an issue with object storage settings that was not allowing admins to decide if files generated via "Export conversation" feature were being proxied through server or not. + ## 0.3.0 ### Minor Changes diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 38a4c434b12c6..a63db12d18e96 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/i18n", - "version": "0.3.0", + "version": "0.4.0-rc.0", "private": true, "devDependencies": { "@babel/core": "~7.22.20", diff --git a/packages/instance-status/CHANGELOG.md b/packages/instance-status/CHANGELOG.md index 968ac7af79593..e6d3269dbda93 100644 --- a/packages/instance-status/CHANGELOG.md +++ b/packages/instance-status/CHANGELOG.md @@ -1,5 +1,14 @@ # @rocket.chat/instance-status +## 0.0.39-rc.0 + +### Patch Changes + +-
Updated dependencies []: + + - @rocket.chat/models@0.0.39-rc.0 +
+ ## 0.0.38 ### Patch Changes diff --git a/packages/instance-status/package.json b/packages/instance-status/package.json index a6998bbd4c327..43a333587fbaf 100644 --- a/packages/instance-status/package.json +++ b/packages/instance-status/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/instance-status", - "version": "0.0.38", + "version": "0.0.39-rc.0", "private": true, "devDependencies": { "@rocket.chat/eslint-config": "workspace:^", diff --git a/packages/livechat/CHANGELOG.md b/packages/livechat/CHANGELOG.md index 8541e820f1bb0..7ffe2b0da4e39 100644 --- a/packages/livechat/CHANGELOG.md +++ b/packages/livechat/CHANGELOG.md @@ -1,5 +1,19 @@ # @rocket.chat/livechat Change Log +## 1.17.0-rc.0 + +### Minor Changes + +- ([#32233](https://github.com/RocketChat/Rocket.Chat/pull/32233)) Makes the triggers fired by the condition `after-guest-registration` persist on the livechat client, it will persist through reloads and pagination, only reseting when a conversation is closed (no changes were done on the agent side of the conversation) + +### Patch Changes + +-
Updated dependencies [ee5cdfc367]: + + - @rocket.chat/ui-kit@0.34.0-rc.0 + - @rocket.chat/gazzodown@7.0.0-rc.0 +
+ ## 1.16.0 ### Patch Changes diff --git a/packages/livechat/package.json b/packages/livechat/package.json index 6d1b805b59abe..f7d3e8b9e80c5 100644 --- a/packages/livechat/package.json +++ b/packages/livechat/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/livechat", - "version": "1.16.0", + "version": "1.17.0-rc.0", "files": [ "/build" ], diff --git a/packages/mock-providers/CHANGELOG.md b/packages/mock-providers/CHANGELOG.md index 13e9fd464c720..fe564b88c0ce4 100644 --- a/packages/mock-providers/CHANGELOG.md +++ b/packages/mock-providers/CHANGELOG.md @@ -1,5 +1,14 @@ # @rocket.chat/mock-providers +## 0.0.7-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, bc50dd54a2, 70ab2a7b7b]: + + - @rocket.chat/i18n@0.4.0-rc.0 +
+ ## 0.0.6 ### Patch Changes diff --git a/packages/mock-providers/package.json b/packages/mock-providers/package.json index 89208cafaf41c..551447f9f1fc0 100644 --- a/packages/mock-providers/package.json +++ b/packages/mock-providers/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/mock-providers", - "version": "0.0.6", + "version": "0.0.7-rc.0", "private": true, "dependencies": { "@rocket.chat/i18n": "workspace:~", diff --git a/packages/model-typings/CHANGELOG.md b/packages/model-typings/CHANGELOG.md index a4ff3abbd66df..0c237e46f300e 100644 --- a/packages/model-typings/CHANGELOG.md +++ b/packages/model-typings/CHANGELOG.md @@ -1,5 +1,14 @@ # @rocket.chat/model-typings +## 0.4.1-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 +
+ ## 0.4.0 ### Minor Changes diff --git a/packages/model-typings/package.json b/packages/model-typings/package.json index 5c14dc6b7bb44..3a3d7268c00c3 100644 --- a/packages/model-typings/package.json +++ b/packages/model-typings/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/model-typings", - "version": "0.4.0", + "version": "0.4.1-rc.0", "private": true, "devDependencies": { "@types/jest": "~29.5.7", diff --git a/packages/models/CHANGELOG.md b/packages/models/CHANGELOG.md index 5479e14a00bd4..e23e0107e9f59 100644 --- a/packages/models/CHANGELOG.md +++ b/packages/models/CHANGELOG.md @@ -1,5 +1,14 @@ # @rocket.chat/models +## 0.0.39-rc.0 + +### Patch Changes + +-
Updated dependencies []: + + - @rocket.chat/model-typings@0.4.1-rc.0 +
+ ## 0.0.38 ### Patch Changes diff --git a/packages/models/package.json b/packages/models/package.json index e8d4c77158fc6..97ff2dcca4aa2 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/models", - "version": "0.0.38", + "version": "0.0.39-rc.0", "private": true, "devDependencies": { "@swc/core": "^1.3.95", diff --git a/packages/rest-typings/CHANGELOG.md b/packages/rest-typings/CHANGELOG.md index 4f2819a3d71c6..d54f717f38638 100644 --- a/packages/rest-typings/CHANGELOG.md +++ b/packages/rest-typings/CHANGELOG.md @@ -1,5 +1,19 @@ # @rocket.chat/rest-typings +## 6.9.0-rc.0 + +### Minor Changes + +- ([#32364](https://github.com/RocketChat/Rocket.Chat/pull/32364)) Fixed issue with "Export room as file" feature (`rooms.export` endpoint) generating an empty export when given an invalid date + +### Patch Changes + +-
Updated dependencies [ff4e396416, ee5cdfc367, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/ui-kit@0.34.0-rc.0 +
+ ## 6.8.0 ### Minor Changes diff --git a/packages/rest-typings/package.json b/packages/rest-typings/package.json index cd3c10d6ebb49..8cb1a260d201c 100644 --- a/packages/rest-typings/package.json +++ b/packages/rest-typings/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/rest-typings", "private": true, - "version": "6.9.0-develop", + "version": "6.9.0-rc.0", "devDependencies": { "@rocket.chat/eslint-config": "workspace:^", "@types/jest": "~29.5.7", diff --git a/packages/ui-avatar/CHANGELOG.md b/packages/ui-avatar/CHANGELOG.md index 5a6023b53c47b..acce08f9687b3 100644 --- a/packages/ui-avatar/CHANGELOG.md +++ b/packages/ui-avatar/CHANGELOG.md @@ -1,5 +1,14 @@ # @rocket.chat/ui-avatar +## 3.0.0-rc.0 + +### Patch Changes + +-
Updated dependencies []: + + - @rocket.chat/ui-contexts@7.0.0-rc.0 +
+ ## 2.0.0 ### Patch Changes diff --git a/packages/ui-avatar/package.json b/packages/ui-avatar/package.json index 949dbda74fb5b..45e9e4577858a 100644 --- a/packages/ui-avatar/package.json +++ b/packages/ui-avatar/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/ui-avatar", - "version": "2.0.0", + "version": "3.0.0-rc.0", "private": true, "devDependencies": { "@babel/core": "~7.22.20", @@ -31,7 +31,7 @@ ], "peerDependencies": { "@rocket.chat/fuselage": "*", - "@rocket.chat/ui-contexts": "6.0.0", + "@rocket.chat/ui-contexts": "7.0.0-rc.0", "react": "~17.0.2" }, "volta": { diff --git a/packages/ui-client/CHANGELOG.md b/packages/ui-client/CHANGELOG.md index 4ef42e89b3435..01c70590c8008 100644 --- a/packages/ui-client/CHANGELOG.md +++ b/packages/ui-client/CHANGELOG.md @@ -1,5 +1,14 @@ # @rocket.chat/ui-client +## 7.0.0-rc.0 + +### Patch Changes + +-
Updated dependencies []: + + - @rocket.chat/ui-contexts@7.0.0-rc.0 +
+ ## 6.0.0 ### Patch Changes diff --git a/packages/ui-client/package.json b/packages/ui-client/package.json index 1695860ee9496..d82021bb83448 100644 --- a/packages/ui-client/package.json +++ b/packages/ui-client/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/ui-client", - "version": "6.0.0", + "version": "7.0.0-rc.0", "private": true, "devDependencies": { "@babel/core": "~7.22.20", @@ -63,7 +63,7 @@ "@rocket.chat/fuselage": "*", "@rocket.chat/fuselage-hooks": "*", "@rocket.chat/icons": "*", - "@rocket.chat/ui-contexts": "6.0.0", + "@rocket.chat/ui-contexts": "7.0.0-rc.0", "react": "~17.0.2" }, "volta": { diff --git a/packages/ui-contexts/CHANGELOG.md b/packages/ui-contexts/CHANGELOG.md index b8c3a1ca3fbc8..d955d823c92e5 100644 --- a/packages/ui-contexts/CHANGELOG.md +++ b/packages/ui-contexts/CHANGELOG.md @@ -1,5 +1,17 @@ # @rocket.chat/ui-contexts +## 7.0.0-rc.0 + +### Patch Changes + +-
Updated dependencies [ff4e396416, bc50dd54a2, f83bd56cc5, 70ab2a7b7b]: + + - @rocket.chat/core-typings@6.9.0-rc.0 + - @rocket.chat/i18n@0.4.0-rc.0 + - @rocket.chat/rest-typings@6.9.0-rc.0 + - @rocket.chat/ddp-client@0.2.24-rc.0 +
+ ## 6.0.0 ### Minor Changes diff --git a/packages/ui-contexts/package.json b/packages/ui-contexts/package.json index 9152d21782c25..94a7f4ea41682 100644 --- a/packages/ui-contexts/package.json +++ b/packages/ui-contexts/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/ui-contexts", - "version": "6.0.0", + "version": "7.0.0-rc.0", "private": true, "devDependencies": { "@rocket.chat/core-typings": "workspace:^", diff --git a/packages/ui-kit/CHANGELOG.md b/packages/ui-kit/CHANGELOG.md index 59de835f34ade..283d203f0271b 100644 --- a/packages/ui-kit/CHANGELOG.md +++ b/packages/ui-kit/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 0.34.0-rc.0 + +### Minor Changes + +- ([#31918](https://github.com/RocketChat/Rocket.Chat/pull/31918)) Introduced new elements for apps to select channels + ## 0.33.0 ### Minor Changes diff --git a/packages/ui-kit/package.json b/packages/ui-kit/package.json index 23cd40877dfe5..cfd3d8f95407c 100644 --- a/packages/ui-kit/package.json +++ b/packages/ui-kit/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/ui-kit", - "version": "0.33.0", + "version": "0.34.0-rc.0", "description": "Interactive UI elements for Rocket.Chat Apps", "homepage": "https://rocket.chat", "author": { diff --git a/packages/ui-video-conf/CHANGELOG.md b/packages/ui-video-conf/CHANGELOG.md index 5244989bae582..a103f9410c095 100644 --- a/packages/ui-video-conf/CHANGELOG.md +++ b/packages/ui-video-conf/CHANGELOG.md @@ -1,5 +1,15 @@ # @rocket.chat/ui-video-conf +## 7.0.0-rc.0 + +### Patch Changes + +-
Updated dependencies []: + + - @rocket.chat/ui-contexts@7.0.0-rc.0 + - @rocket.chat/ui-avatar@3.0.0-rc.0 +
+ ## 6.0.0 ### Patch Changes diff --git a/packages/ui-video-conf/package.json b/packages/ui-video-conf/package.json index be30d82d7d9d7..e5cfb3e580c29 100644 --- a/packages/ui-video-conf/package.json +++ b/packages/ui-video-conf/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/ui-video-conf", - "version": "6.0.0", + "version": "7.0.0-rc.0", "private": true, "devDependencies": { "@babel/core": "~7.22.20", @@ -36,8 +36,8 @@ "@rocket.chat/fuselage-hooks": "*", "@rocket.chat/icons": "*", "@rocket.chat/styled": "*", - "@rocket.chat/ui-avatar": "2.0.0", - "@rocket.chat/ui-contexts": "6.0.0", + "@rocket.chat/ui-avatar": "3.0.0-rc.0", + "@rocket.chat/ui-contexts": "7.0.0-rc.0", "react": "^17.0.2", "react-dom": "^17.0.2" }, diff --git a/packages/uikit-playground/CHANGELOG.md b/packages/uikit-playground/CHANGELOG.md index bc81f0f24d9f3..26177ed977209 100644 --- a/packages/uikit-playground/CHANGELOG.md +++ b/packages/uikit-playground/CHANGELOG.md @@ -1,5 +1,16 @@ # @rocket.chat/uikit-playground +## 0.2.23-rc.0 + +### Patch Changes + +-
Updated dependencies [6205ef14f0, ee5cdfc367]: + + - @rocket.chat/fuselage-ui-kit@7.0.0-rc.0 + - @rocket.chat/ui-contexts@7.0.0-rc.0 + - @rocket.chat/ui-avatar@3.0.0-rc.0 +
+ ## 0.2.22 ### Patch Changes diff --git a/packages/uikit-playground/package.json b/packages/uikit-playground/package.json index 381dd9786545d..e8db2846b4298 100644 --- a/packages/uikit-playground/package.json +++ b/packages/uikit-playground/package.json @@ -1,7 +1,7 @@ { "name": "@rocket.chat/uikit-playground", "private": true, - "version": "0.2.22", + "version": "0.2.23-rc.0", "type": "module", "scripts": { "dev": "vite", diff --git a/packages/web-ui-registration/CHANGELOG.md b/packages/web-ui-registration/CHANGELOG.md index 310ba1e4abca2..f5aa9b7f8385e 100644 --- a/packages/web-ui-registration/CHANGELOG.md +++ b/packages/web-ui-registration/CHANGELOG.md @@ -1,5 +1,14 @@ # @rocket.chat/web-ui-registration +## 7.0.0-rc.0 + +### Patch Changes + +-
Updated dependencies []: + + - @rocket.chat/ui-contexts@7.0.0-rc.0 +
+ ## 6.0.0 ### Patch Changes diff --git a/packages/web-ui-registration/package.json b/packages/web-ui-registration/package.json index ab7bd0beb3f2e..0427c51f28c4e 100644 --- a/packages/web-ui-registration/package.json +++ b/packages/web-ui-registration/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/web-ui-registration", - "version": "6.0.0", + "version": "7.0.0-rc.0", "private": true, "homepage": "https://rocket.chat", "main": "./dist/index.js", @@ -51,7 +51,7 @@ "peerDependencies": { "@rocket.chat/layout": "*", "@rocket.chat/tools": "0.2.1", - "@rocket.chat/ui-contexts": "6.0.0", + "@rocket.chat/ui-contexts": "7.0.0-rc.0", "@tanstack/react-query": "*", "react": "*", "react-hook-form": "*", From 13aa4f54b74a265312318a1f14a30931768f59eb Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Tue, 21 May 2024 17:40:09 -0300 Subject: [PATCH 02/39] ci: publish missing Omnichannel services to DockerHub (#32462) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8393b0d9ec8fc..b16ab459d6bd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -629,7 +629,7 @@ jobs: strategy: matrix: - service: ['account', 'authorization', 'ddp-streamer', 'presence', 'stream-hub'] + service: ['account', 'authorization', 'ddp-streamer', 'omnichannel-transcript', 'presence', 'queue-worker', 'stream-hub'] steps: - name: Login to DockerHub From e3c2fb6db3babe3845687c9cf3b6c02b267eb292 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Tue, 21 May 2024 18:27:12 -0300 Subject: [PATCH 03/39] chore: Publish npm packages again (#32463) --- ee/packages/api-client/package.json | 1 - ee/packages/ddp-client/package.json | 1 - packages/core-typings/package.json | 1 - packages/rest-typings/package.json | 1 - 4 files changed, 4 deletions(-) diff --git a/ee/packages/api-client/package.json b/ee/packages/api-client/package.json index 609cd9888dd6e..4f80d73ca7329 100644 --- a/ee/packages/api-client/package.json +++ b/ee/packages/api-client/package.json @@ -1,6 +1,5 @@ { "name": "@rocket.chat/api-client", - "private": true, "version": "0.1.33-rc.0", "devDependencies": { "@swc/core": "^1.3.95", diff --git a/ee/packages/ddp-client/package.json b/ee/packages/ddp-client/package.json index 26c85939670f2..e26357fea0e03 100644 --- a/ee/packages/ddp-client/package.json +++ b/ee/packages/ddp-client/package.json @@ -1,6 +1,5 @@ { "name": "@rocket.chat/ddp-client", - "private": true, "version": "0.2.24-rc.0", "devDependencies": { "@swc/core": "^1.3.95", diff --git a/packages/core-typings/package.json b/packages/core-typings/package.json index 0778f37d98ca3..01c5c30adfd14 100644 --- a/packages/core-typings/package.json +++ b/packages/core-typings/package.json @@ -1,7 +1,6 @@ { "$schema": "https://json.schemastore.org/package", "name": "@rocket.chat/core-typings", - "private": true, "version": "6.9.0-rc.0", "devDependencies": { "@rocket.chat/eslint-config": "workspace:^", diff --git a/packages/rest-typings/package.json b/packages/rest-typings/package.json index 8cb1a260d201c..66c729f2e531e 100644 --- a/packages/rest-typings/package.json +++ b/packages/rest-typings/package.json @@ -1,6 +1,5 @@ { "name": "@rocket.chat/rest-typings", - "private": true, "version": "6.9.0-rc.0", "devDependencies": { "@rocket.chat/eslint-config": "workspace:^", From 61bf555d84e3f320a57297054c4fa4a1ac03db15 Mon Sep 17 00:00:00 2001 From: Douglas Fabris Date: Fri, 24 May 2024 15:01:20 -0300 Subject: [PATCH 04/39] regression: Incorrect retention policy banner's display rule for teams (#32483) --- .../teams/contextualBar/info/TeamsInfo.tsx | 21 +++++++---------- .../contextualBar/info/TeamsInfoWithData.js | 23 ------------------- .../meteor/tests/e2e/retention-policy.spec.ts | 23 ++++++++++++++++++- 3 files changed, 30 insertions(+), 37 deletions(-) diff --git a/apps/meteor/client/views/teams/contextualBar/info/TeamsInfo.tsx b/apps/meteor/client/views/teams/contextualBar/info/TeamsInfo.tsx index 12e092b487634..5a38722cfc421 100644 --- a/apps/meteor/client/views/teams/contextualBar/info/TeamsInfo.tsx +++ b/apps/meteor/client/views/teams/contextualBar/info/TeamsInfo.tsx @@ -17,18 +17,10 @@ import RetentionPolicyCallout from '../../../../components/InfoPanel/RetentionPo import MarkdownText from '../../../../components/MarkdownText'; import type { Action } from '../../../hooks/useActionSpread'; import { useActionSpread } from '../../../hooks/useActionSpread'; - -type RetentionPolicy = { - retentionPolicyEnabled: boolean; - maxAgeDefault: number; - retentionEnabledDefault: boolean; - excludePinnedDefault: boolean; - filesOnlyDefault: boolean; -}; +import { useRetentionPolicy } from '../../../room/hooks/useRetentionPolicy'; type TeamsInfoProps = { room: IRoom; - retentionPolicy: RetentionPolicy; onClickHide: () => void; onClickClose: () => void; onClickLeave: () => void; @@ -40,7 +32,6 @@ type TeamsInfoProps = { const TeamsInfo = ({ room, - retentionPolicy, onClickHide, onClickClose, onClickLeave, @@ -51,7 +42,7 @@ const TeamsInfo = ({ }: TeamsInfoProps): ReactElement => { const t = useTranslation(); - const { retentionPolicyEnabled, filesOnlyDefault, excludePinnedDefault, maxAgeDefault } = retentionPolicy; + const retentionPolicy = useRetentionPolicy(room); const memoizedActions = useMemo( () => ({ @@ -199,8 +190,12 @@ const TeamsInfo = ({ )} - {retentionPolicyEnabled && ( - + {retentionPolicy?.isActive && ( + )} diff --git a/apps/meteor/client/views/teams/contextualBar/info/TeamsInfoWithData.js b/apps/meteor/client/views/teams/contextualBar/info/TeamsInfoWithData.js index f5cb4a44c5d2b..0b2f84a339ed5 100644 --- a/apps/meteor/client/views/teams/contextualBar/info/TeamsInfoWithData.js +++ b/apps/meteor/client/views/teams/contextualBar/info/TeamsInfoWithData.js @@ -3,7 +3,6 @@ import { useSetModal, useToastMessageDispatch, useUserId, - useSetting, usePermission, useMethod, useTranslation, @@ -23,33 +22,12 @@ import ConvertToChannelModal from '../../ConvertToChannelModal'; import LeaveTeam from './LeaveTeam'; import TeamsInfo from './TeamsInfo'; -const retentionPolicyMaxAge = { - c: 'RetentionPolicy_MaxAge_Channels', - p: 'RetentionPolicy_MaxAge_Groups', - d: 'RetentionPolicy_MaxAge_DMs', -}; - -const retentionPolicyAppliesTo = { - c: 'RetentionPolicy_AppliesToChannels', - p: 'RetentionPolicy_AppliesToGroups', - d: 'RetentionPolicy_AppliesToDMs', -}; - const TeamsInfoWithLogic = ({ openEditing }) => { const room = useRoom(); const { openTab, closeTab } = useRoomToolbox(); const t = useTranslation(); const userId = useUserId(); - const retentionPolicyEnabled = useSetting('RetentionPolicy_Enabled'); - const retentionPolicy = { - retentionPolicyEnabled, - maxAgeDefault: useSetting(retentionPolicyMaxAge[room.t]) || 30, - retentionEnabledDefault: useSetting(retentionPolicyAppliesTo[room.t]), - excludePinnedDefault: useSetting('RetentionPolicy_DoNotPrunePinned'), - filesOnlyDefault: useSetting('RetentionPolicy_FilesOnly'), - }; - const dontAskHideRoom = useDontAskAgain('hideRoom'); const dispatchToastMessage = useToastMessageDispatch(); @@ -153,7 +131,6 @@ const TeamsInfoWithLogic = ({ openEditing }) => { return ( { let poHomeChannel: HomeChannel; let targetChannel: string; + let targetTeam: string; let targetGroup: string; test.beforeAll(async ({ api }) => { targetChannel = await createTargetChannel(api); targetGroup = await createTargetPrivateChannel(api); + targetTeam = await createTargetTeam(api); }) test.beforeEach(async ({ page }) => { @@ -28,6 +30,12 @@ test.describe.serial('retention-policy', () => { await expect(poHomeChannel.content.channelRetentionPolicyWarning).not.toBeVisible(); }); + test('should not show prune banner in team', async () => { + await poHomeChannel.sidenav.openChat(targetTeam); + + await expect(poHomeChannel.content.channelRetentionPolicyWarning).not.toBeVisible(); + }); + test('should not show prune section on edit channel', async () => { await poHomeChannel.sidenav.openChat(targetChannel); await poHomeChannel.tabs.btnRoomInfo.click(); @@ -53,6 +61,9 @@ test.describe.serial('retention-policy', () => { await poHomeChannel.sidenav.openChat(targetChannel); await expect(poHomeChannel.content.channelRetentionPolicyWarning).not.toBeVisible(); + await poHomeChannel.sidenav.openChat(targetTeam); + await expect(poHomeChannel.content.channelRetentionPolicyWarning).not.toBeVisible(); + await poHomeChannel.sidenav.openChat(targetGroup); await expect(poHomeChannel.content.channelRetentionPolicyWarning).not.toBeVisible(); @@ -85,6 +96,16 @@ test.describe.serial('retention-policy', () => { await expect(poHomeChannel.tabs.room.checkboxPruneMessages).toBeChecked(); }); + test('should prune old messages checkbox enabled by default in team and show retention policy banner', async () => { + await poHomeChannel.sidenav.openChat(targetTeam); + await expect(poHomeChannel.content.channelRetentionPolicyWarning).toBeVisible(); + + await poHomeChannel.tabs.btnRoomInfo.click(); + await poHomeChannel.tabs.room.btnEdit.click(); + await poHomeChannel.tabs.room.pruneAccordion.click(); + await expect(poHomeChannel.tabs.room.checkboxPruneMessages).toBeChecked(); + }); + test('should prune old messages checkbox enabled by default in group and show retention policy banner', async () => { await poHomeChannel.sidenav.openChat(targetGroup); await expect(poHomeChannel.content.channelRetentionPolicyWarning).toBeVisible(); From a565999ae093f9ca23fc83180625592bc3f26c80 Mon Sep 17 00:00:00 2001 From: Tiago Evangelista Pinto Date: Fri, 24 May 2024 15:14:57 -0300 Subject: [PATCH 05/39] feat(UiKit): Users select (#31455) --- .changeset/cuddly-cycles-nail.md | 6 + .../MultiUsersSelectElement.spec.tsx | 105 ++++++++++++++++++ .../MultiUsersSelectElement.tsx | 76 +++++++++++++ .../UserSelectElement.spec.tsx | 82 ++++++++++++++ .../UsersSelectElement/UsersSelectElement.tsx | 62 +++++++++++ .../UsersSelectElement/hooks/useUsersData.ts | 32 ++++++ .../src/stories/payloads/actions.ts | 20 ++-- .../src/surfaces/FuselageSurfaceRenderer.tsx | 40 +++++++ .../elements/MultiUsersSelectElement.ts | 3 +- .../src/blocks/elements/UsersSelectElement.ts | 3 +- packages/ui-kit/src/rendering/ActionOf.ts | 4 +- 11 files changed, 419 insertions(+), 14 deletions(-) create mode 100644 .changeset/cuddly-cycles-nail.md create mode 100644 packages/fuselage-ui-kit/src/elements/UsersSelectElement/MultiUsersSelectElement.spec.tsx create mode 100644 packages/fuselage-ui-kit/src/elements/UsersSelectElement/MultiUsersSelectElement.tsx create mode 100644 packages/fuselage-ui-kit/src/elements/UsersSelectElement/UserSelectElement.spec.tsx create mode 100644 packages/fuselage-ui-kit/src/elements/UsersSelectElement/UsersSelectElement.tsx create mode 100644 packages/fuselage-ui-kit/src/elements/UsersSelectElement/hooks/useUsersData.ts diff --git a/.changeset/cuddly-cycles-nail.md b/.changeset/cuddly-cycles-nail.md new file mode 100644 index 0000000000000..ee49600ee865e --- /dev/null +++ b/.changeset/cuddly-cycles-nail.md @@ -0,0 +1,6 @@ +--- +"@rocket.chat/fuselage-ui-kit": minor +"@rocket.chat/ui-kit": minor +--- + +Introduced new elements for apps to select users diff --git a/packages/fuselage-ui-kit/src/elements/UsersSelectElement/MultiUsersSelectElement.spec.tsx b/packages/fuselage-ui-kit/src/elements/UsersSelectElement/MultiUsersSelectElement.spec.tsx new file mode 100644 index 0000000000000..1a6afad6c6143 --- /dev/null +++ b/packages/fuselage-ui-kit/src/elements/UsersSelectElement/MultiUsersSelectElement.spec.tsx @@ -0,0 +1,105 @@ +import { MockedServerContext } from '@rocket.chat/mock-providers'; +import type { MultiUsersSelectElement as MultiUsersSelectElementType } from '@rocket.chat/ui-kit'; +import { BlockContext } from '@rocket.chat/ui-kit'; +import { render, screen } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; + +import { contextualBarParser } from '../../surfaces'; +import MultiUsersSelectElement from './MultiUsersSelectElement'; +import { useUsersData } from './hooks/useUsersData'; + +const usersBlock: MultiUsersSelectElementType = { + type: 'multi_users_select', + appId: 'test', + blockId: 'test', + actionId: 'test', +}; + +jest.mock('./hooks/useUsersData'); + +const mockedOptions = [ + { + value: 'user1_id', + label: 'User 1', + }, + { + value: 'user2_id', + label: 'User 2', + }, + { + value: 'user3_id', + label: 'User 3', + }, +]; + +const mockUseUsersData = jest.mocked(useUsersData); +mockUseUsersData.mockReturnValue(mockedOptions); + +describe('UiKit MultiUsersSelect Element', () => { + beforeAll(() => { + jest.useFakeTimers(); + }); + + afterAll(() => { + jest.useRealTimers(); + }); + + beforeEach(() => { + render( + + + + ); + }); + + it('should render a UiKit multiple users selector', async () => { + expect(await screen.findByRole('textbox')).toBeInTheDocument(); + }); + + it('should open the users selector', async () => { + const input = await screen.findByRole('textbox'); + input.focus(); + + expect(await screen.findByRole('listbox')).toBeInTheDocument(); + }); + + it('should select users', async () => { + const input = await screen.findByRole('textbox'); + + input.focus(); + + const option1 = (await screen.findAllByRole('option'))[0]; + await userEvent.click(option1, { delay: null }); + + const option2 = (await screen.findAllByRole('option'))[2]; + await userEvent.click(option2, { delay: null }); + + const selected = await screen.findAllByRole('button'); + expect(selected[0]).toHaveValue('user1_id'); + expect(selected[1]).toHaveValue('user3_id'); + }); + + it('should remove a user', async () => { + const input = await screen.findByRole('textbox'); + + input.focus(); + + const option1 = (await screen.findAllByRole('option'))[0]; + await userEvent.click(option1, { delay: null }); + + const option2 = (await screen.findAllByRole('option'))[2]; + await userEvent.click(option2, { delay: null }); + + const selected1 = (await screen.findAllByRole('button'))[0]; + expect(selected1).toHaveValue('user1_id'); + await userEvent.click(selected1, { delay: null }); + + const remainingSelected = (await screen.findAllByRole('button'))[0]; + expect(remainingSelected).toHaveValue('user3_id'); + }); +}); diff --git a/packages/fuselage-ui-kit/src/elements/UsersSelectElement/MultiUsersSelectElement.tsx b/packages/fuselage-ui-kit/src/elements/UsersSelectElement/MultiUsersSelectElement.tsx new file mode 100644 index 0000000000000..bdf7bfef4a31a --- /dev/null +++ b/packages/fuselage-ui-kit/src/elements/UsersSelectElement/MultiUsersSelectElement.tsx @@ -0,0 +1,76 @@ +import { + Box, + Chip, + AutoComplete, + Option, + OptionAvatar, + OptionContent, + OptionDescription, +} from '@rocket.chat/fuselage'; +import { useDebouncedValue } from '@rocket.chat/fuselage-hooks'; +import { UserAvatar } from '@rocket.chat/ui-avatar'; +import type * as UiKit from '@rocket.chat/ui-kit'; +import type { ReactElement } from 'react'; +import { memo, useCallback, useState } from 'react'; + +import { useUiKitState } from '../../hooks/useUiKitState'; +import type { BlockProps } from '../../utils/BlockProps'; +import { useUsersData } from './hooks/useUsersData'; + +type MultiUsersSelectElementProps = BlockProps; + +const MultiUsersSelectElement = ({ + block, + context, +}: MultiUsersSelectElementProps): ReactElement => { + const [{ loading, value }, action] = useUiKitState(block, context); + const [filter, setFilter] = useState(''); + + const debouncedFilter = useDebouncedValue(filter, 500); + + const data = useUsersData({ filter: debouncedFilter }); + + const handleChange = useCallback( + (value) => { + action({ target: { value } }); + }, + [action] + ); + + return ( + ( + + + + {label} + + + )} + renderItem={({ value, label, ...props }): ReactElement => ( + + )} + /> + ); +}; + +export default memo(MultiUsersSelectElement); diff --git a/packages/fuselage-ui-kit/src/elements/UsersSelectElement/UserSelectElement.spec.tsx b/packages/fuselage-ui-kit/src/elements/UsersSelectElement/UserSelectElement.spec.tsx new file mode 100644 index 0000000000000..02f11d50951bd --- /dev/null +++ b/packages/fuselage-ui-kit/src/elements/UsersSelectElement/UserSelectElement.spec.tsx @@ -0,0 +1,82 @@ +import { MockedServerContext } from '@rocket.chat/mock-providers'; +import type { UsersSelectElement as UsersSelectElementType } from '@rocket.chat/ui-kit'; +import { BlockContext } from '@rocket.chat/ui-kit'; +import { render, screen } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; + +import { contextualBarParser } from '../../surfaces'; +import UsersSelectElement from './UsersSelectElement'; +import { useUsersData } from './hooks/useUsersData'; + +const userBlock: UsersSelectElementType = { + type: 'users_select', + appId: 'test', + blockId: 'test', + actionId: 'test', +}; + +jest.mock('./hooks/useUsersData'); + +const mockedOptions = [ + { + value: 'user1_id', + label: 'User 1', + }, + { + value: 'user2_id', + label: 'User 2', + }, + { + value: 'user3_id', + label: 'User 3', + }, +]; + +const mockUseUsersData = jest.mocked(useUsersData); +mockUseUsersData.mockReturnValue(mockedOptions); + +describe('UiKit UserSelect Element', () => { + beforeAll(() => { + jest.useFakeTimers(); + }); + + afterAll(() => { + jest.useRealTimers(); + }); + + beforeEach(() => { + render( + + + + ); + }); + + it('should render a UiKit user selector', async () => { + expect(await screen.findByRole('textbox')).toBeInTheDocument(); + }); + + it('should open the user selector', async () => { + const input = await screen.findByRole('textbox'); + input.focus(); + + expect(await screen.findByRole('listbox')).toBeInTheDocument(); + }); + + it('should select a user', async () => { + const input = await screen.findByRole('textbox'); + + input.focus(); + + const option = (await screen.findAllByRole('option'))[0]; + await userEvent.click(option, { delay: null }); + + const selected = await screen.findByRole('button'); + expect(selected).toHaveValue('user1_id'); + }); +}); diff --git a/packages/fuselage-ui-kit/src/elements/UsersSelectElement/UsersSelectElement.tsx b/packages/fuselage-ui-kit/src/elements/UsersSelectElement/UsersSelectElement.tsx new file mode 100644 index 0000000000000..39e71bd4fce8f --- /dev/null +++ b/packages/fuselage-ui-kit/src/elements/UsersSelectElement/UsersSelectElement.tsx @@ -0,0 +1,62 @@ +import { AutoComplete, Box, Chip, Option } from '@rocket.chat/fuselage'; +import { useDebouncedValue } from '@rocket.chat/fuselage-hooks'; +import { UserAvatar } from '@rocket.chat/ui-avatar'; +import type * as UiKit from '@rocket.chat/ui-kit'; +import { useCallback, useState } from 'react'; + +import { useUiKitState } from '../../hooks/useUiKitState'; +import type { BlockProps } from '../../utils/BlockProps'; +import { useUsersData } from './hooks/useUsersData'; + +type UsersSelectElementProps = BlockProps; + +export type UserAutoCompleteOptionType = { + value: string; + label: string; +}; + +const UsersSelectElement = ({ block, context }: UsersSelectElementProps) => { + const [{ value, loading }, action] = useUiKitState(block, context); + + const [filter, setFilter] = useState(''); + const debouncedFilter = useDebouncedValue(filter, 300); + + const data = useUsersData({ filter: debouncedFilter }); + + const handleChange = useCallback( + (value) => { + action({ target: { value } }); + }, + [action] + ); + + return ( + ( + + + + {label} + + + )} + renderItem={({ value, label, ...props }) => ( +