diff --git a/docs/docs_screenshots/pubspec.yaml b/docs/docs_screenshots/pubspec.yaml index 1766a3b40b..32e872807b 100644 --- a/docs/docs_screenshots/pubspec.yaml +++ b/docs/docs_screenshots/pubspec.yaml @@ -18,12 +18,8 @@ dependencies: flutter: sdk: flutter record: ^6.2.0 - stream_chat_flutter: ^10.3.0 - stream_core_flutter: - git: - url: https://github.com/GetStream/stream-core-flutter.git - ref: 4b7ed86a52c3109fad0a6f5118120082e378c610 - path: packages/stream_core_flutter + stream_chat_flutter: ^10.4.0 + stream_core_flutter: ^0.5.1 dev_dependencies: alchemist: ^0.14.0 diff --git a/docs/docs_screenshots/test/channel/channel_preview_test.dart b/docs/docs_screenshots/test/channel/channel_preview_test.dart index c663120f7c..abb4863198 100644 --- a/docs/docs_screenshots/test/channel/channel_preview_test.dart +++ b/docs/docs_screenshots/test/channel/channel_preview_test.dart @@ -225,7 +225,7 @@ void main() { foregroundColor: colorScheme.textPrimary, backgroundColor: colorScheme.backgroundSurface, onPressed: (_) {}, - child: Icon(icons.more, size: 20), + child: Icon(icons.moreHorizontal, size: 20), ), CustomSlidableAction( foregroundColor: colorScheme.textOnAccent, @@ -350,7 +350,7 @@ void main() { foregroundColor: colorScheme.textPrimary, backgroundColor: colorScheme.backgroundSurface, onPressed: (_) {}, - child: Icon(icons.more, size: 20), + child: Icon(icons.moreHorizontal, size: 20), ), CustomSlidableAction( foregroundColor: colorScheme.textOnAccent, diff --git a/melos.yaml b/melos.yaml index 4172629cd9..2a130bf5a9 100644 --- a/melos.yaml +++ b/melos.yaml @@ -97,18 +97,14 @@ command: share_plus: ">=12.0.2 <14.0.0" shimmer: ^3.0.0 sqlite3_flutter_libs: ^0.5.26 - stream_chat: ^10.3.0 - stream_chat_flutter: ^10.3.0 - stream_chat_flutter_core: ^10.3.0 - stream_chat_localizations: ^10.3.0 - stream_chat_persistence: ^10.3.0 + stream_chat: ^10.4.0 + stream_chat_flutter: ^10.4.0 + stream_chat_flutter_core: ^10.4.0 + stream_chat_localizations: ^10.4.0 + stream_chat_persistence: ^10.4.0 streaming_shared_preferences: ^2.0.0 svg_icon_widget: ^0.0.1 - stream_core_flutter: - git: - url: https://github.com/GetStream/stream-core-flutter.git - ref: 4b7ed86a52c3109fad0a6f5118120082e378c610 - path: packages/stream_core_flutter + stream_core_flutter: ^0.5.1 stream_thumbnail: ^0.1.0 synchronized: ^3.4.0 thumblr: ^0.0.4 diff --git a/packages/stream_chat/CHANGELOG.md b/packages/stream_chat/CHANGELOG.md index 1d90f0ccfd..5c2d60971d 100644 --- a/packages/stream_chat/CHANGELOG.md +++ b/packages/stream_chat/CHANGELOG.md @@ -1,4 +1,4 @@ -## Upcoming +## 10.4.0 ✅ Added diff --git a/packages/stream_chat/example/pubspec.yaml b/packages/stream_chat/example/pubspec.yaml index 193816c51e..4ef732589e 100644 --- a/packages/stream_chat/example/pubspec.yaml +++ b/packages/stream_chat/example/pubspec.yaml @@ -24,7 +24,7 @@ dependencies: cupertino_icons: ^1.0.3 flutter: sdk: flutter - stream_chat: ^10.3.0 + stream_chat: ^10.4.0 dependency_overrides: stream_chat: diff --git a/packages/stream_chat/lib/version.dart b/packages/stream_chat/lib/version.dart index a99a38dfa5..de2f022d6e 100644 --- a/packages/stream_chat/lib/version.dart +++ b/packages/stream_chat/lib/version.dart @@ -9,4 +9,4 @@ /// Current package version /// Used in [SystemEnvironmentManager] to build the `x-stream-client` header -const PACKAGE_VERSION = '10.3.0'; +const PACKAGE_VERSION = '10.4.0'; diff --git a/packages/stream_chat/pubspec.yaml b/packages/stream_chat/pubspec.yaml index fa3a266a99..334c69fde7 100644 --- a/packages/stream_chat/pubspec.yaml +++ b/packages/stream_chat/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat homepage: https://getstream.io/ description: The official Dart client for Stream Chat, a service for building chat applications. -version: 10.3.0 +version: 10.4.0 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues diff --git a/packages/stream_chat_flutter/CHANGELOG.md b/packages/stream_chat_flutter/CHANGELOG.md index 7a1c74ed54..166768a44a 100644 --- a/packages/stream_chat_flutter/CHANGELOG.md +++ b/packages/stream_chat_flutter/CHANGELOG.md @@ -1,8 +1,11 @@ -## Upcoming +## 10.4.0 ✅ Added - Added `onReactionLongPress` to `StreamMessageItem` and `StreamMessageListView`, reporting the long-pressed message's `BuildContext` and a `ReactionLongPressDetails` with the `message` and `reaction` (the reaction is `null` for a clustered or overflow chip that maps to no single reaction). +- Exported this package's `StreamMessageContent`, which was previously unreachable from `package:stream_chat_flutter/stream_chat_flutter.dart`. +- Added `StreamChatConfigurationData.messageTranslation`, a `StreamMessageTranslationConfiguration` with `enabled` (default `true`) to display translations from `Message.i18n` and `annotationEnabled` (default `false`) to opt into a "Translated"/"Original" annotation with a toggle link. +- Added `StreamMessageTranslationStore`, tracking which messages show their original text instead of their translation. `StreamChat` owns one and provides it through a `StreamMessageTranslations` scope, so every message list agrees on which text a message shows. Also drivable per widget via `showTranslatedText` and `onToggleTranslatedText`. ⚠️ Changed @@ -15,6 +18,7 @@ 🐞 Fixed +- Fixed message text and previews translating to English for users with no `User.language` set; they now show the original text. - Fixed a crash on web when the message list rebuilt while messages were selectable, for example after opening the attachment picker. - Fixed the browser's native context menu reappearing over the message context menu on web after scrolling messages out of view or deleting one. - Fixed the SDK re-enabling the browser's native context menu on web in apps that had disabled it themselves. @@ -46,9 +50,6 @@ - Added `onReactionTap` to `StreamMessageItem` and `StreamMessageListView`, reporting the tapped message's `BuildContext` and a `ReactionTapDetails` with the tapped `message` and `reaction` (the reaction is `null` for a clustered or overflow chip that maps to no single reaction). - Exported `StreamEphemeralMessage`, the row `StreamMessageListView` builds for ephemeral messages, matching its already-exported `StreamSystemMessage` and `StreamModeratedMessage` siblings. - Added an `unreadIndicator` parameter to `StreamBackButton` that overlays a widget (typically a `StreamUnreadIndicator`) on the button's top-end corner. Pass `StreamUnreadIndicator(excludeCid: cid)` to show the total unread count of other channels, or `StreamUnreadIndicator.channels(cid: cid)` for a single channel's count. -- Exported this package's `StreamMessageContent`, which was previously unreachable from `package:stream_chat_flutter/stream_chat_flutter.dart`. -- Added `StreamChatConfigurationData.messageTranslation`, a `StreamMessageTranslationConfiguration` with `enabled` (default `true`) to display translations from `Message.i18n` and `annotationEnabled` (default `false`) to opt into a "Translated"/"Original" annotation with a toggle link. -- Added `StreamMessageTranslationStore`, tracking which messages show their original text instead of their translation. `StreamChat` owns one and provides it through a `StreamMessageTranslations` scope, so every message list agrees on which text a message shows. Also drivable per widget via `showTranslatedText` and `onToggleTranslatedText`. ⚠️ Deprecated @@ -59,7 +60,6 @@ 🐞 Fixed -- Fixed message text and previews translating to English for users with no `User.language` set; they now show the original text. - Fixed a failed send surfacing as an unhandled async error when `StreamMessageComposer` has no `onError`; it is now reported through `FlutterError.reportError`. - Fixed the default `StreamChannel` loading and error states not being themed or localized; `StreamChat` now installs themed, connection-aware defaults, overridable per `StreamChannel` or via `DefaultStreamChannelBuilders`. - Fixed the default list/scroll-view error states (channel, message, member, user, thread, poll-vote, reaction, search, and photo) showing raw or fixed errors; they are now connection-aware (no internet / slow connection), falling back to each view's specific error text. diff --git a/packages/stream_chat_flutter/example/pubspec.yaml b/packages/stream_chat_flutter/example/pubspec.yaml index cab1e79ac8..702d735ff7 100644 --- a/packages/stream_chat_flutter/example/pubspec.yaml +++ b/packages/stream_chat_flutter/example/pubspec.yaml @@ -25,9 +25,9 @@ dependencies: flutter: sdk: flutter responsive_builder: ^0.7.0 - stream_chat_flutter: ^10.3.0 - stream_chat_localizations: ^10.3.0 - stream_chat_persistence: ^10.3.0 + stream_chat_flutter: ^10.4.0 + stream_chat_localizations: ^10.4.0 + stream_chat_persistence: ^10.4.0 dependency_overrides: stream_chat: diff --git a/packages/stream_chat_flutter/pubspec.yaml b/packages/stream_chat_flutter/pubspec.yaml index bba0f2a0f3..e259c5ce32 100644 --- a/packages/stream_chat_flutter/pubspec.yaml +++ b/packages/stream_chat_flutter/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_flutter homepage: https://github.com/GetStream/stream-chat-flutter description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter. -version: 10.3.0 +version: 10.4.0 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues @@ -54,20 +54,8 @@ dependencies: rxdart: ^0.28.0 share_plus: ">=12.0.2 <14.0.0" shimmer: ^3.0.0 - stream_chat_flutter_core: ^10.3.0 - stream_core_flutter: - # The ignore below silences `invalid_dependency` because we occasionally - # pin stream_core_flutter to a git ref to iterate on it alongside this - # SDK between its releases. - # - # **Note:** Before publishing stream_chat_flutter, this MUST be swapped - # back to a pub version constraint — git deps are not allowed on pub.dev - # and will block the release. - # ignore: invalid_dependency - git: - url: https://github.com/GetStream/stream-core-flutter.git - ref: 4b7ed86a52c3109fad0a6f5118120082e378c610 - path: packages/stream_core_flutter + stream_chat_flutter_core: ^10.4.0 + stream_core_flutter: ^0.5.1 stream_thumbnail: ^0.1.0 svg_icon_widget: ^0.0.1 synchronized: ^3.4.0 diff --git a/packages/stream_chat_flutter_core/CHANGELOG.md b/packages/stream_chat_flutter_core/CHANGELOG.md index 5b4b112243..baac1765f4 100644 --- a/packages/stream_chat_flutter_core/CHANGELOG.md +++ b/packages/stream_chat_flutter_core/CHANGELOG.md @@ -1,4 +1,4 @@ -## Upcoming +## 10.4.0 🔄 Changed diff --git a/packages/stream_chat_flutter_core/example/pubspec.yaml b/packages/stream_chat_flutter_core/example/pubspec.yaml index ce0041df2a..46f4631bda 100644 --- a/packages/stream_chat_flutter_core/example/pubspec.yaml +++ b/packages/stream_chat_flutter_core/example/pubspec.yaml @@ -23,7 +23,7 @@ dependencies: cupertino_icons: ^1.0.3 flutter: sdk: flutter - stream_chat_flutter_core: ^10.3.0 + stream_chat_flutter_core: ^10.4.0 dependency_overrides: stream_chat: diff --git a/packages/stream_chat_flutter_core/pubspec.yaml b/packages/stream_chat_flutter_core/pubspec.yaml index 7906022d7a..f4b1ef3dea 100644 --- a/packages/stream_chat_flutter_core/pubspec.yaml +++ b/packages/stream_chat_flutter_core/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_flutter_core homepage: https://github.com/GetStream/stream-chat-flutter description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter. -version: 10.3.0 +version: 10.4.0 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues @@ -32,7 +32,7 @@ dependencies: package_info_plus: ">=9.0.1 <11.0.0" rate_limiter: ^1.1.0 rxdart: ^0.28.0 - stream_chat: ^10.3.0 + stream_chat: ^10.4.0 dev_dependencies: build_runner: ^2.15.0 diff --git a/packages/stream_chat_localizations/CHANGELOG.md b/packages/stream_chat_localizations/CHANGELOG.md index 32cac6298b..0835dd4764 100644 --- a/packages/stream_chat_localizations/CHANGELOG.md +++ b/packages/stream_chat_localizations/CHANGELOG.md @@ -1,4 +1,4 @@ -## Upcoming +## 10.4.0 ✅ Added diff --git a/packages/stream_chat_localizations/example/pubspec.yaml b/packages/stream_chat_localizations/example/pubspec.yaml index c15e6065a7..73d439d125 100644 --- a/packages/stream_chat_localizations/example/pubspec.yaml +++ b/packages/stream_chat_localizations/example/pubspec.yaml @@ -24,8 +24,8 @@ dependencies: cupertino_icons: ^1.0.3 flutter: sdk: flutter - stream_chat_flutter: ^10.3.0 - stream_chat_localizations: ^10.3.0 + stream_chat_flutter: ^10.4.0 + stream_chat_localizations: ^10.4.0 dependency_overrides: stream_chat: diff --git a/packages/stream_chat_localizations/pubspec.yaml b/packages/stream_chat_localizations/pubspec.yaml index a184f54636..994f695bdc 100644 --- a/packages/stream_chat_localizations/pubspec.yaml +++ b/packages/stream_chat_localizations/pubspec.yaml @@ -1,6 +1,6 @@ name: stream_chat_localizations description: The Official localizations for Stream Chat Flutter, a service for building chat applications -version: 10.3.0 +version: 10.4.0 homepage: https://github.com/GetStream/stream-chat-flutter repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues @@ -27,7 +27,7 @@ dependencies: flutter_localizations: sdk: flutter intl: ^0.20.2 - stream_chat_flutter: ^10.3.0 + stream_chat_flutter: ^10.4.0 dev_dependencies: clock: ^1.1.2 diff --git a/packages/stream_chat_persistence/CHANGELOG.md b/packages/stream_chat_persistence/CHANGELOG.md index a7be41f459..715d7fab5c 100644 --- a/packages/stream_chat_persistence/CHANGELOG.md +++ b/packages/stream_chat_persistence/CHANGELOG.md @@ -1,4 +1,4 @@ -## Upcoming +## 10.4.0 🔄 Changed diff --git a/packages/stream_chat_persistence/example/pubspec.yaml b/packages/stream_chat_persistence/example/pubspec.yaml index ec1ee624c5..a6573ca2c6 100644 --- a/packages/stream_chat_persistence/example/pubspec.yaml +++ b/packages/stream_chat_persistence/example/pubspec.yaml @@ -23,8 +23,8 @@ dependencies: cupertino_icons: ^1.0.3 flutter: sdk: flutter - stream_chat: ^10.3.0 - stream_chat_persistence: ^10.3.0 + stream_chat: ^10.4.0 + stream_chat_persistence: ^10.4.0 dependency_overrides: stream_chat: diff --git a/packages/stream_chat_persistence/pubspec.yaml b/packages/stream_chat_persistence/pubspec.yaml index cb465112b4..b3f6dd69c0 100644 --- a/packages/stream_chat_persistence/pubspec.yaml +++ b/packages/stream_chat_persistence/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_persistence homepage: https://github.com/GetStream/stream-chat-flutter description: Official Stream Chat Persistence library. Build your own chat experience using Dart and Flutter. -version: 10.3.0 +version: 10.4.0 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues @@ -30,7 +30,7 @@ dependencies: path: ^1.9.1 path_provider: ^2.1.5 sqlite3_flutter_libs: ^0.5.26 - stream_chat: ^10.3.0 + stream_chat: ^10.4.0 dev_dependencies: build_runner: ^2.15.0 diff --git a/sample_app/lib/widgets/channel_list.dart b/sample_app/lib/widgets/channel_list.dart index ffb70ced2c..f557eac3e5 100644 --- a/sample_app/lib/widgets/channel_list.dart +++ b/sample_app/lib/widgets/channel_list.dart @@ -166,7 +166,7 @@ class _ChannelListDefault extends StatelessWidget { foregroundColor: colorScheme.textPrimary, backgroundColor: colorScheme.backgroundSurface, onPressed: (_) => _openChannelDetailSheet(context, channel), - child: Icon(icons.more, size: 20), + child: Icon(icons.moreHorizontal, size: 20), ), BetterStreamBuilder( stream: channel.isMutedStream, diff --git a/sample_app/pubspec.yaml b/sample_app/pubspec.yaml index 696ef9ab16..778595a67f 100644 --- a/sample_app/pubspec.yaml +++ b/sample_app/pubspec.yaml @@ -1,7 +1,7 @@ name: sample_app description: A new Flutter project. publish_to: "none" -version: 10.3.0 +version: 10.4.0 # Note: The environment configuration and dependency versions are managed by Melos. # @@ -46,9 +46,9 @@ dependencies: media_kit_video: ^2.0.1 path_provider_android: ">=2.2.5 <2.3.0" rxdart: ^0.28.0 - stream_chat_flutter: ^10.3.0 - stream_chat_localizations: ^10.3.0 - stream_chat_persistence: ^10.3.0 + stream_chat_flutter: ^10.4.0 + stream_chat_localizations: ^10.4.0 + stream_chat_persistence: ^10.4.0 streaming_shared_preferences: ^2.0.0 uuid: ^4.5.3 video_player: ^2.11.1