stream-chat-react 14.0.0-beta.1 → 14.0.0-beta.3

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.
Files changed (110) hide show
  1. package/dist/{WithAudioPlayback-TERIQpZ6.js → cjs/WithAudioPlayback.4a84360f.js} +100 -12
  2. package/dist/cjs/WithAudioPlayback.4a84360f.js.map +1 -0
  3. package/dist/{audioProcessing-BbOs2wMd.js → cjs/audioProcessing.56e5db9d.js} +1 -1
  4. package/dist/cjs/audioProcessing.56e5db9d.js.map +1 -0
  5. package/dist/cjs/emojis.js +1 -1
  6. package/dist/cjs/index.js +1366 -1037
  7. package/dist/cjs/index.js.map +1 -1
  8. package/dist/cjs/mp3-encoder.js +1 -1
  9. package/dist/css/index.css +232 -62
  10. package/dist/css/index.css.map +1 -1
  11. package/dist/{WithAudioPlayback-BcKZ5Lbh.mjs → es/WithAudioPlayback.a3d5a2fc.mjs} +348 -260
  12. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs.map +1 -0
  13. package/dist/{audioProcessing-ByEVSjGG.mjs → es/audioProcessing.21cb49e1.mjs} +1 -1
  14. package/dist/es/audioProcessing.21cb49e1.mjs.map +1 -0
  15. package/dist/es/emojis.mjs +1 -1
  16. package/dist/es/index.mjs +1500 -1171
  17. package/dist/es/index.mjs.map +1 -1
  18. package/dist/es/mp3-encoder.mjs +1 -1
  19. package/dist/types/components/Attachment/Giphy.d.ts.map +1 -1
  20. package/dist/types/components/Attachment/VoiceRecording.d.ts.map +1 -1
  21. package/dist/types/components/AudioPlayback/AudioPlayer.d.ts.map +1 -1
  22. package/dist/types/components/Badge/Badge.d.ts +1 -0
  23. package/dist/types/components/Badge/Badge.d.ts.map +1 -1
  24. package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts +1 -1
  25. package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts.map +1 -1
  26. package/dist/types/components/Channel/Channel.d.ts.map +1 -1
  27. package/dist/types/components/Channel/utils.d.ts +7 -1
  28. package/dist/types/components/Channel/utils.d.ts.map +1 -1
  29. package/dist/types/components/ChannelList/hooks/useMobileNavigation.d.ts.map +1 -1
  30. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts +3 -1
  31. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts.map +1 -1
  32. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts +6 -3
  33. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts.map +1 -1
  34. package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts +5 -0
  35. package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts.map +1 -1
  36. package/dist/types/components/ChatView/ChatView.d.ts.map +1 -1
  37. package/dist/types/components/Dialog/components/ContextMenu.d.ts +119 -3
  38. package/dist/types/components/Dialog/components/ContextMenu.d.ts.map +1 -1
  39. package/dist/types/components/Dialog/hooks/useDialog.d.ts +1 -1
  40. package/dist/types/components/Dialog/hooks/useDialog.d.ts.map +1 -1
  41. package/dist/types/components/Dialog/service/DialogAnchor.d.ts +14 -1
  42. package/dist/types/components/Dialog/service/DialogAnchor.d.ts.map +1 -1
  43. package/dist/types/components/Dialog/service/DialogManager.d.ts +14 -3
  44. package/dist/types/components/Dialog/service/DialogManager.d.ts.map +1 -1
  45. package/dist/types/components/Dialog/service/DialogPortal.d.ts.map +1 -1
  46. package/dist/types/components/Gallery/Gallery.d.ts.map +1 -1
  47. package/dist/types/components/Gallery/GalleryContext.d.ts +1 -1
  48. package/dist/types/components/Gallery/GalleryContext.d.ts.map +1 -1
  49. package/dist/types/components/Icons/icons.d.ts +4 -0
  50. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  51. package/dist/types/components/MediaRecorder/AudioRecorder/AudioRecorderRecordingControls.d.ts.map +1 -1
  52. package/dist/types/components/Message/MessageErrorText.d.ts +0 -5
  53. package/dist/types/components/Message/MessageErrorText.d.ts.map +1 -1
  54. package/dist/types/components/Message/MessageText.d.ts.map +1 -1
  55. package/dist/types/components/Message/MessageUI.d.ts.map +1 -1
  56. package/dist/types/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
  57. package/dist/types/components/Message/index.d.ts +0 -1
  58. package/dist/types/components/Message/index.d.ts.map +1 -1
  59. package/dist/types/components/Message/utils.d.ts +1 -0
  60. package/dist/types/components/Message/utils.d.ts.map +1 -1
  61. package/dist/types/components/MessageActions/MessageActions.d.ts +14 -3
  62. package/dist/types/components/MessageActions/MessageActions.d.ts.map +1 -1
  63. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts +1 -1
  64. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts.map +1 -1
  65. package/dist/types/components/MessageActions/QuickMessageActionButton.d.ts.map +1 -1
  66. package/dist/types/components/MessageActions/hooks/useBaseMessageActionSetFilter.d.ts.map +1 -1
  67. package/dist/types/components/MessageComposer/AttachmentPreviewList/AttachmentPreviewList.d.ts.map +1 -1
  68. package/dist/types/components/MessageComposer/AttachmentPreviewList/ImageAttachmentPreview.d.ts +3 -1
  69. package/dist/types/components/MessageComposer/AttachmentPreviewList/ImageAttachmentPreview.d.ts.map +1 -1
  70. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts +4 -2
  71. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
  72. package/dist/types/components/MessageComposer/AttachmentPreviewList/utils/AttachmentPreviewRoot.d.ts +6 -1
  73. package/dist/types/components/MessageComposer/AttachmentPreviewList/utils/AttachmentPreviewRoot.d.ts.map +1 -1
  74. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts +9 -2
  75. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts.map +1 -1
  76. package/dist/types/components/MessageComposer/CommandChip.d.ts +5 -1
  77. package/dist/types/components/MessageComposer/CommandChip.d.ts.map +1 -1
  78. package/dist/types/components/MessageComposer/MessageComposerUI.d.ts.map +1 -1
  79. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts +18 -0
  80. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
  81. package/dist/types/components/Notifications/Notification.d.ts.map +1 -1
  82. package/dist/types/components/Notifications/hooks/useNotificationTarget.d.ts +1 -1
  83. package/dist/types/components/Notifications/hooks/useNotificationTarget.d.ts.map +1 -1
  84. package/dist/types/components/Notifications/notificationTarget.d.ts +1 -1
  85. package/dist/types/components/Notifications/notificationTarget.d.ts.map +1 -1
  86. package/dist/types/components/Poll/PollActions/PollResults/PollOptionWithVotes.d.ts.map +1 -1
  87. package/dist/types/components/Poll/PollOptionSelector.d.ts.map +1 -1
  88. package/dist/types/components/Reactions/MessageReactions.d.ts.map +1 -1
  89. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts +1 -0
  90. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts.map +1 -1
  91. package/dist/types/components/Reactions/ReactionSelector.d.ts +1 -1
  92. package/dist/types/components/Reactions/ReactionSelector.d.ts.map +1 -1
  93. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts.map +1 -1
  94. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts +1 -2
  95. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
  96. package/dist/types/context/ChannelListContext.d.ts +1 -1
  97. package/dist/types/context/ChannelListContext.d.ts.map +1 -1
  98. package/dist/types/context/ComponentContext.d.ts +10 -3
  99. package/dist/types/context/ComponentContext.d.ts.map +1 -1
  100. package/dist/types/context/DialogManagerContext.d.ts +11 -7
  101. package/dist/types/context/DialogManagerContext.d.ts.map +1 -1
  102. package/dist/types/i18n/Streami18n.d.ts +11 -6
  103. package/dist/types/i18n/Streami18n.d.ts.map +1 -1
  104. package/package.json +13 -41
  105. package/dist/WithAudioPlayback-BcKZ5Lbh.mjs.map +0 -1
  106. package/dist/WithAudioPlayback-TERIQpZ6.js.map +0 -1
  107. package/dist/audioProcessing-BbOs2wMd.js.map +0 -1
  108. package/dist/audioProcessing-ByEVSjGG.mjs.map +0 -1
  109. package/dist/types/components/Message/icons.d.ts +0 -7
  110. package/dist/types/components/Message/icons.d.ts.map +0 -1
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
- const audioProcessing = require("../audioProcessing-BbOs2wMd.js");
25
+ const audioProcessing = require("./audioProcessing.56e5db9d.js");
26
26
  const ENCODING_BIT_RATE = 128;
27
27
  const COUNT_SAMPLES_PER_ENCODED_BLOCK = 1152;
28
28
  const float32ArrayToInt16Array = (float32Arr) => {
@@ -1255,6 +1255,19 @@
1255
1255
  padding-inline: var(--spacing-sm);
1256
1256
  }
1257
1257
 
1258
+ .str-chat__badge--variant-error.str-chat__badge--size-xs {
1259
+ min-width: 16px;
1260
+ min-height: 16px;
1261
+ }
1262
+ .str-chat__badge--variant-error.str-chat__badge--size-sm {
1263
+ min-width: 20px;
1264
+ min-height: 20px;
1265
+ }
1266
+ .str-chat__badge--variant-error.str-chat__badge--size-md {
1267
+ min-width: 24px;
1268
+ min-height: 24px;
1269
+ }
1270
+
1258
1271
  .str-chat .str-chat__image-placeholder {
1259
1272
  width: 100%;
1260
1273
  height: 100%;
@@ -1879,6 +1892,66 @@
1879
1892
  top: var(--spacing-xs);
1880
1893
  }
1881
1894
 
1895
+ @keyframes str-chat-context-menu-roll-in-from-left {
1896
+ from {
1897
+ opacity: 0.12;
1898
+ transform: translateX(16px) scale(0.98);
1899
+ }
1900
+ to {
1901
+ opacity: 1;
1902
+ transform: translateX(0) scale(1);
1903
+ }
1904
+ }
1905
+ @keyframes str-chat-context-menu-roll-in-from-right {
1906
+ from {
1907
+ opacity: 0.12;
1908
+ transform: translateX(-16px) scale(0.98);
1909
+ }
1910
+ to {
1911
+ opacity: 1;
1912
+ transform: translateX(0) scale(1);
1913
+ }
1914
+ }
1915
+ @keyframes str-chat-context-menu-roll-in-from-top {
1916
+ from {
1917
+ opacity: 0.12;
1918
+ transform: translateY(14px) scale(0.98);
1919
+ }
1920
+ to {
1921
+ opacity: 1;
1922
+ transform: translateY(0) scale(1);
1923
+ }
1924
+ }
1925
+ @keyframes str-chat-context-menu-roll-in-from-bottom {
1926
+ from {
1927
+ opacity: 0.12;
1928
+ transform: translateY(-14px) scale(0.98);
1929
+ }
1930
+ to {
1931
+ opacity: 1;
1932
+ transform: translateY(0) scale(1);
1933
+ }
1934
+ }
1935
+ @keyframes str-chat-context-menu-submenu-forward {
1936
+ from {
1937
+ opacity: 0.18;
1938
+ transform: translateX(28px);
1939
+ }
1940
+ to {
1941
+ opacity: 1;
1942
+ transform: translateX(0);
1943
+ }
1944
+ }
1945
+ @keyframes str-chat-context-menu-submenu-backward {
1946
+ from {
1947
+ opacity: 0.18;
1948
+ transform: translateX(-32px);
1949
+ }
1950
+ to {
1951
+ opacity: 1;
1952
+ transform: translateX(0);
1953
+ }
1954
+ }
1882
1955
  .str-chat {
1883
1956
  /*
1884
1957
  * Dialog theme variables (ported from @stream-chat-css v2 Dialog theme),
@@ -1916,6 +1989,12 @@
1916
1989
  --str-chat__dialog-menu-button-border-inline-start: none;
1917
1990
  --str-chat__dialog-menu-button-border-inline-end: none;
1918
1991
  --str-chat__dialog-menu-button-box-shadow: none;
1992
+ --str-chat__menu-roll-duration: 170ms;
1993
+ --str-chat__menu-roll-ease: cubic-bezier(0.22, 1, 0.36, 1);
1994
+ --str-chat__menu-submenu-forward-duration: 280ms;
1995
+ --str-chat__menu-submenu-backward-duration: 400ms;
1996
+ --str-chat__menu-submenu-forward-ease: cubic-bezier(0.2, 0.95, 0.25, 1);
1997
+ --str-chat__menu-submenu-backward-ease: cubic-bezier(0.16, 0.92, 0.2, 1);
1919
1998
  }
1920
1999
  .str-chat .str-chat__context-menu {
1921
2000
  background: var(--str-chat__dialog-menu-background-color);
@@ -1975,6 +2054,19 @@
1975
2054
  display: flex;
1976
2055
  flex-direction: column;
1977
2056
  gap: var(--spacing-xxxs);
2057
+ overflow-x: hidden;
2058
+ }
2059
+ .str-chat .str-chat__context-menu .str-chat__context-menu__body.str-chat__context-menu__body--submenu-forward {
2060
+ animation-duration: var(--str-chat__menu-submenu-forward-duration, 220ms);
2061
+ animation-name: var(--str-chat__context-menu-submenu-forward-animation, str-chat-context-menu-submenu-forward);
2062
+ animation-timing-function: var(--str-chat__menu-submenu-forward-ease, cubic-bezier(0.25, 0.9, 0.35, 1));
2063
+ transform-origin: var(--str-chat__context-menu-submenu-forward-transform-origin, left center);
2064
+ }
2065
+ .str-chat .str-chat__context-menu .str-chat__context-menu__body.str-chat__context-menu__body--submenu-backward {
2066
+ animation-duration: var(--str-chat__menu-submenu-backward-duration, 320ms);
2067
+ animation-name: var(--str-chat__context-menu-submenu-backward-animation, str-chat-context-menu-submenu-backward);
2068
+ animation-timing-function: var(--str-chat__menu-submenu-backward-ease, cubic-bezier(0.2, 0.75, 0.2, 1));
2069
+ transform-origin: var(--str-chat__context-menu-submenu-backward-transform-origin, right center);
1978
2070
  }
1979
2071
  .str-chat .str-chat__context-menu .str-chat__context-menu__button {
1980
2072
  background: var(--str-chat__dialog-menu-button-background-color);
@@ -2040,6 +2132,72 @@
2040
2132
  .str-chat .str-chat__context-menu .str-chat__user-context-menu__button {
2041
2133
  font-weight: var(--typography-font-weight-regular, 400);
2042
2134
  }
2135
+ .str-chat [data-str-chat-placement^=right] > .str-chat__context-menu {
2136
+ animation: str-chat-context-menu-roll-in-from-left var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2137
+ transform-origin: left center;
2138
+ }
2139
+ .str-chat [data-str-chat-placement^=left] > .str-chat__context-menu {
2140
+ animation: str-chat-context-menu-roll-in-from-right var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2141
+ transform-origin: right center;
2142
+ }
2143
+ .str-chat [data-str-chat-placement^=bottom] > .str-chat__context-menu {
2144
+ animation: str-chat-context-menu-roll-in-from-bottom var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2145
+ transform-origin: center top;
2146
+ }
2147
+ .str-chat [data-str-chat-placement^=top] > .str-chat__context-menu {
2148
+ animation: str-chat-context-menu-roll-in-from-top var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2149
+ transform-origin: center bottom;
2150
+ }
2151
+ .str-chat [data-str-chat-dialog-state=closing][data-str-chat-placement^=right] > .str-chat__context-menu {
2152
+ animation: str-chat-context-menu-roll-in-from-left var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease) reverse forwards;
2153
+ transform-origin: left center;
2154
+ }
2155
+ .str-chat [data-str-chat-dialog-state=closing][data-str-chat-placement^=left] > .str-chat__context-menu {
2156
+ animation: str-chat-context-menu-roll-in-from-right var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease) reverse forwards;
2157
+ transform-origin: right center;
2158
+ }
2159
+ .str-chat [data-str-chat-dialog-state=closing][data-str-chat-placement^=bottom] > .str-chat__context-menu {
2160
+ animation: str-chat-context-menu-roll-in-from-bottom var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease) reverse forwards;
2161
+ transform-origin: center top;
2162
+ }
2163
+ .str-chat [data-str-chat-dialog-state=closing][data-str-chat-placement^=top] > .str-chat__context-menu {
2164
+ animation: str-chat-context-menu-roll-in-from-top var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease) reverse forwards;
2165
+ transform-origin: center bottom;
2166
+ }
2167
+ .str-chat .str-chat__context-menu__submenu-container:not([data-str-chat-roll-from])[data-str-chat-roll-axis=x][data-str-chat-placement^=left] > .str-chat__context-menu {
2168
+ animation: str-chat-context-menu-roll-in-from-right var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2169
+ transform-origin: right center;
2170
+ }
2171
+ .str-chat .str-chat__context-menu__submenu-container:not([data-str-chat-roll-from])[data-str-chat-roll-axis=x]:not([data-str-chat-placement^=left]) > .str-chat__context-menu {
2172
+ animation: str-chat-context-menu-roll-in-from-left var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2173
+ transform-origin: left center;
2174
+ }
2175
+ .str-chat .str-chat__context-menu__submenu-container[data-str-chat-roll-from=left] > .str-chat__context-menu {
2176
+ animation: str-chat-context-menu-roll-in-from-left var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2177
+ transform-origin: left center;
2178
+ }
2179
+ .str-chat .str-chat__context-menu__submenu-container[data-str-chat-roll-from=right] > .str-chat__context-menu {
2180
+ animation: str-chat-context-menu-roll-in-from-right var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2181
+ transform-origin: right center;
2182
+ }
2183
+ .str-chat .str-chat__context-menu__submenu-container[data-str-chat-roll-from=top] > .str-chat__context-menu {
2184
+ animation: str-chat-context-menu-roll-in-from-top var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2185
+ transform-origin: center top;
2186
+ }
2187
+ .str-chat .str-chat__context-menu__submenu-container[data-str-chat-roll-from=bottom] > .str-chat__context-menu {
2188
+ animation: str-chat-context-menu-roll-in-from-bottom var(--str-chat__menu-roll-duration, 130ms) var(--str-chat__menu-roll-ease);
2189
+ transform-origin: center bottom;
2190
+ }
2191
+ .str-chat .str-chat__context-menu[data-str-chat-enable-animations=false],
2192
+ .str-chat .str-chat__context-menu[data-str-chat-enable-animations=false] .str-chat__context-menu__body {
2193
+ animation: none !important;
2194
+ transform: none !important;
2195
+ }
2196
+ @media (prefers-reduced-motion: reduce) {
2197
+ .str-chat [data-str-chat-placement] > .str-chat__context-menu {
2198
+ animation: none;
2199
+ }
2200
+ }
2043
2201
 
2044
2202
  .str-chat__dialog-overlay {
2045
2203
  inset: 0;
@@ -2603,9 +2761,14 @@
2603
2761
  display: flex;
2604
2762
  align-items: center;
2605
2763
  justify-content: center;
2606
- padding: var(--spacing-xs);
2764
+ padding-block: var(--spacing-xs);
2765
+ padding-inline-start: var(--spacing-xs);
2766
+ padding-inline-end: var(--spacing-sm);
2607
2767
  min-height: 60px;
2608
2768
  }
2769
+ .str-chat__attachment-list .str-chat__message-attachment__voice-recording-widget .str-chat__message-attachment__voice-recording-widget__play-button-container {
2770
+ padding: var(--spacing-xxs);
2771
+ }
2609
2772
  .str-chat__attachment-list .str-chat__message-attachment__voice-recording-widget .str-chat__message-attachment__voice-recording-widget__metadata {
2610
2773
  min-width: 180px;
2611
2774
  padding-inline: var(--spacing-xs);
@@ -2649,14 +2812,16 @@
2649
2812
  }
2650
2813
 
2651
2814
  .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-no-text .str-chat__message-bubble {
2652
- padding: 0;
2653
- background-color: transparent;
2654
2815
  border: 1px solid var(--chat-border-incoming);
2655
2816
  box-shadow: var(--background-core-elevation-0);
2656
2817
  }
2657
2818
  .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-no-text .str-chat__message-attachment {
2658
2819
  background-color: var(--chat-bg-incoming);
2659
2820
  }
2821
+ .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-no-text .str-chat__message-attachment .str-chat__message-attachment__voice-recording-widget {
2822
+ padding: unset;
2823
+ padding-inline-end: var(--spacing-xxs);
2824
+ }
2660
2825
 
2661
2826
  .str-chat__message--me .str-chat__message-attachment {
2662
2827
  background-color: var(--chat-bg-attachment-outgoing);
@@ -3479,7 +3644,7 @@
3479
3644
  position: absolute;
3480
3645
  width: calc(100% + 4px);
3481
3646
  height: calc(100% + 4px);
3482
- border: 2px solid var(--border-core-inverted);
3647
+ border: 2px solid var(--border-core-inverse);
3483
3648
  border-radius: inherit;
3484
3649
  }
3485
3650
  .str-chat__avatar .str-chat__avatar-status-badge {
@@ -5081,6 +5246,7 @@
5081
5246
  .str-chat__audio_recorder .str-chat__audio-recorder__recording-playback,
5082
5247
  .str-chat__audio_recorder .str-chat__audio-recorder__recording-preview {
5083
5248
  flex: 1;
5249
+ min-width: 0;
5084
5250
  display: flex;
5085
5251
  align-items: center;
5086
5252
  gap: var(--spacing-md);
@@ -5153,11 +5319,11 @@
5153
5319
  }
5154
5320
  .str-chat__audio_recorder .str-chat__wave-progress-bar__track-container,
5155
5321
  .str-chat__audio_recorder .str-chat__waveform-box-container {
5322
+ flex: 1 1 auto;
5156
5323
  display: flex;
5157
5324
  align-items: center;
5158
- width: 100%;
5325
+ width: auto;
5159
5326
  min-width: 0;
5160
- flex-shrink: 1;
5161
5327
  }
5162
5328
  .str-chat__audio_recorder .str-chat__wave-progress-bar__track-container {
5163
5329
  max-width: 500px;
@@ -5168,7 +5334,7 @@
5168
5334
  .str-chat__audio_recorder .str-chat__wave-progress-bar__track {
5169
5335
  display: flex;
5170
5336
  min-width: 0;
5171
- width: unset;
5337
+ width: 100%;
5172
5338
  align-items: center;
5173
5339
  flex-wrap: nowrap;
5174
5340
  height: 2rem;
@@ -5183,7 +5349,7 @@
5183
5349
  padding-inline: var(--spacing-xs);
5184
5350
  }
5185
5351
  .str-chat__audio_recorder .str-chat__wave-progress-bar__track-container .str-chat__wave-progress-bar__track {
5186
- flex: unset;
5352
+ flex: 1 1 auto;
5187
5353
  }
5188
5354
  .str-chat__audio_recorder .str-chat__audio_recorder__recording-controls {
5189
5355
  display: flex;
@@ -5211,7 +5377,7 @@
5211
5377
  --str-chat__message-border-inline-end: none;
5212
5378
  --str-chat__message-box-shadow: none;
5213
5379
  --str-chat__message-active-background-color: transparent;
5214
- --str-chat__message-options-color: var(--str-chat__text-low-emphasis-color);
5380
+ --str-chat__message-options-color: var(--button-secondary-text);
5215
5381
  --str-chat__message-options-hover-background-color: var(
5216
5382
  --str-chat__tertiary-surface-color
5217
5383
  );
@@ -5323,16 +5489,6 @@
5323
5489
  max-width: var(--str-chat__message-max-width);
5324
5490
  }
5325
5491
 
5326
- .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-no-text .str-chat__message-bubble {
5327
- padding: 0;
5328
- }
5329
- .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-giphy-attachment .str-chat__message-bubble {
5330
- padding: 0;
5331
- }
5332
- .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-giphy-attachment .str-chat__message-text {
5333
- display: none;
5334
- }
5335
-
5336
5492
  .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-giphy-attachment .str-chat__message-bubble {
5337
5493
  padding: 0;
5338
5494
  }
@@ -5345,11 +5501,6 @@
5345
5501
  font: var(--str-chat__body2-medium-text);
5346
5502
  }
5347
5503
 
5348
- .str-chat__message--error-message {
5349
- color: var(--str-chat__message-error-message-color);
5350
- font: var(--str-chat__caption-text);
5351
- }
5352
-
5353
5504
  .str-chat__message {
5354
5505
  background: var(--str-chat__message-background-color);
5355
5506
  color: var(--str-chat__message-color);
@@ -5395,10 +5546,10 @@
5395
5546
  grid-template-columns: 1fr;
5396
5547
  }
5397
5548
  .str-chat__message.str-chat__message--other .str-chat__message-inner .str-chat__message-reactions-host {
5398
- justify-self: flex-start;
5549
+ justify-self: flex-end;
5399
5550
  }
5400
5551
  .str-chat__message.str-chat__message--other .str-chat__message-inner .str-chat__message-reactions-host:has(.str-chat__message-reactions--flipped-horizontally) {
5401
- justify-self: flex-end;
5552
+ justify-self: flex-start;
5402
5553
  }
5403
5554
  .str-chat__message.str-chat__message--other .str-chat__message-inner .str-chat__message-reactions-host:has(.str-chat__message-reactions--top) {
5404
5555
  padding-inline-start: calc(var(--str-chat__message-reactions-host-offset-x) * -1);
@@ -5431,10 +5582,10 @@
5431
5582
  grid-template-columns: 1fr;
5432
5583
  }
5433
5584
  .str-chat__message.str-chat__message--me .str-chat__message-inner .str-chat__message-reactions-host {
5434
- justify-self: flex-end;
5585
+ justify-self: flex-start;
5435
5586
  }
5436
5587
  .str-chat__message.str-chat__message--me .str-chat__message-inner .str-chat__message-reactions-host:has(.str-chat__message-reactions--flipped-horizontally) {
5437
- justify-self: flex-start;
5588
+ justify-self: flex-end;
5438
5589
  }
5439
5590
  .str-chat__message.str-chat__message--me .str-chat__message-inner .str-chat__message-reactions-host:has(.str-chat__message-reactions--top) {
5440
5591
  padding-inline-end: calc(var(--str-chat__message-reactions-host-offset-x) * -1);
@@ -5594,13 +5745,8 @@
5594
5745
  display: inline-block;
5595
5746
  width: 1.25em;
5596
5747
  }
5597
- .str-chat__message .str-chat__message-error-icon {
5748
+ .str-chat__message .str-chat__message-error-indicator {
5598
5749
  display: none;
5599
- --str-chat-icon-color: var(--str-chat__message-error-message-color);
5600
- /* stylelint-disable-next-line selector-max-id */
5601
- }
5602
- .str-chat__message .str-chat__message-error-icon svg #background {
5603
- fill: var(--str-chat__message-error-message-color);
5604
5750
  }
5605
5751
  .str-chat__message .str-chat__message-inner--error {
5606
5752
  cursor: pointer;
@@ -5614,16 +5760,12 @@
5614
5760
  padding: 0;
5615
5761
  gap: var(--spacing-xxs);
5616
5762
  }
5617
- .str-chat__message.str-chat__message--error .str-chat__message-error-icon, .str-chat__message.str-chat__message--failed .str-chat__message-error-icon {
5763
+ .str-chat__message.str-chat__message--failed .str-chat__message-error-indicator {
5618
5764
  display: block;
5619
5765
  position: absolute;
5620
5766
  top: 8px;
5621
5767
  inset-inline-end: calc(-1 * calc(var(--str-chat__spacing-px) * 18) / 2);
5622
5768
  }
5623
- .str-chat__message.str-chat__message--error .str-chat__message-error-icon svg, .str-chat__message.str-chat__message--failed .str-chat__message-error-icon svg {
5624
- width: calc(var(--str-chat__spacing-px) * 18);
5625
- height: calc(var(--str-chat__spacing-px) * 18);
5626
- }
5627
5769
 
5628
5770
  .str-chat__message--highlighted {
5629
5771
  transition: background-color 0.1s ease-out;
@@ -6109,6 +6251,8 @@
6109
6251
  .str-chat__message-options .str-chat__message-reply-in-thread-button .str-chat__message-action-icon path,
6110
6252
  .str-chat__message-options .str-chat__message-reactions-button .str-chat__message-action-icon path {
6111
6253
  fill: var(--str-chat__message-options-color);
6254
+ stroke: var(--str-chat__message-options-color);
6255
+ stroke-width: 0.25;
6112
6256
  }
6113
6257
  .str-chat__message-options .str-chat__message-actions-box-button:hover,
6114
6258
  .str-chat__message-options .str-chat__message-reply-in-thread-button:hover,
@@ -6480,18 +6624,15 @@
6480
6624
 
6481
6625
  .str-chat__command-chip {
6482
6626
  display: flex;
6483
- padding: var(--spacing-xxs) var(--spacing-sm);
6627
+ padding: var(--spacing-xxs) var(--spacing-xs);
6484
6628
  justify-content: center;
6485
6629
  align-items: center;
6486
6630
  gap: var(--spacing-xxs);
6487
6631
  border-radius: var(--radius-max);
6488
- height: fit-content;
6489
6632
  color: var(--text-inverse);
6490
6633
  background-color: var(--background-core-inverse, var(--slate-900));
6491
6634
  text-transform: uppercase;
6492
- font-size: var(--typography-font-size-xs);
6493
- font-weight: var(--typography-font-weight-semi-bold);
6494
- line-height: var(--typography-line-height-tight);
6635
+ font: var(--str-chat__metadata-emphasis-text);
6495
6636
  }
6496
6637
  .str-chat__command-chip .str-chat__command-chip__close-button {
6497
6638
  background: none;
@@ -6715,7 +6856,7 @@
6715
6856
  --str-chat__cooldown-border-inline-start: 0;
6716
6857
  --str-chat__cooldown-border-inline-end: 0;
6717
6858
  --str-chat__cooldown-box-shadow: none;
6718
- --str-chat__message-composer-max-width: 768px;
6859
+ --str-chat__message-composer-max-width: 1120px;
6719
6860
  --str-chat__message-composer-padding: var(--spacing-md);
6720
6861
  --str-chat__message-composer-command-transition-duration: 280ms;
6721
6862
  --str-chat__message-composer-command-ease: cubic-bezier(0.22, 1, 0.32, 1);
@@ -6833,11 +6974,22 @@
6833
6974
  flex: 1;
6834
6975
  display: flex;
6835
6976
  flex-direction: column;
6977
+ min-height: 26px;
6978
+ justify-content: center;
6836
6979
  gap: var(--spacing-sm);
6837
6980
  }
6981
+ .str-chat .str-chat__message-composer-controls .str-chat__message-composer-controls__text-composition-controls .str-chat__message-composer-controls__text-composition-controls__command-chip-container {
6982
+ height: 100%;
6983
+ display: flex;
6984
+ align-items: flex-end;
6985
+ flex: 0 0 auto;
6986
+ align-self: flex-end;
6987
+ }
6838
6988
  .str-chat .str-chat__message-composer-controls .str-chat__message-composer-controls__text-composition-controls__text {
6839
6989
  display: flex;
6840
- align-items: end;
6990
+ align-items: center;
6991
+ width: 100%;
6992
+ min-width: 0;
6841
6993
  gap: var(--spacing-xxs);
6842
6994
  }
6843
6995
  .str-chat .str-chat__message-composer-controls .str-chat__message-composer__actions,
@@ -6852,14 +7004,14 @@
6852
7004
  max-width: 6rem;
6853
7005
  opacity: 1;
6854
7006
  transition: max-width var(--str-chat__message-composer-command-transition-duration) var(--str-chat__message-composer-command-ease), opacity calc(var(--str-chat__message-composer-command-transition-duration) * 0.85) ease-out;
6855
- overflow: hidden;
6856
7007
  }
6857
7008
  .str-chat .str-chat__message-composer-controls .str-chat__textarea {
6858
7009
  flex: 1;
7010
+ min-width: 0;
6859
7011
  position: relative;
6860
7012
  display: flex;
6861
7013
  align-items: center;
6862
- margin-inline: var(--spacing-xxs) var(--spacing-xs);
7014
+ width: 100%;
6863
7015
  }
6864
7016
  .str-chat .str-chat__message-composer-controls .str-chat__textarea textarea {
6865
7017
  background: var(--str-chat__message-textarea-background-color);
@@ -7145,7 +7297,7 @@
7145
7297
  .str-chat__message-list-main-panel {
7146
7298
  --str-chat__message-list-scroll-max-width: calc(
7147
7299
  var(--str-chat__message-composer-max-width) +
7148
- var(--str-chat__message-composer-padding)
7300
+ (2 * var(--str-chat__message-composer-padding))
7149
7301
  );
7150
7302
  }
7151
7303
 
@@ -7176,7 +7328,6 @@
7176
7328
  max-width: 100%;
7177
7329
  }
7178
7330
  .str-chat__message-list .str-chat__message-list-scroll {
7179
- /* Max container 800px, 16px padding → 768px readable content; matches composer width + padding */
7180
7331
  max-width: var(--str-chat__message-list-scroll-max-width);
7181
7332
  }
7182
7333
  .str-chat__message-list .str-chat__message-list-scroll .str-chat__ul {
@@ -7410,7 +7561,7 @@
7410
7561
  .str-chat__notification {
7411
7562
  display: flex;
7412
7563
  align-items: center;
7413
- gap: var(--spacing-xxs);
7564
+ gap: var(--spacing-xs);
7414
7565
  min-height: 48px;
7415
7566
  min-width: 200px;
7416
7567
  max-width: 100%;
@@ -7427,7 +7578,6 @@
7427
7578
  display: flex;
7428
7579
  flex: 1 1 auto;
7429
7580
  gap: var(--spacing-xs);
7430
- min-width: 0;
7431
7581
  }
7432
7582
  .str-chat__notification .str-chat__notification-content .str-chat__notification-icon {
7433
7583
  display: flex;
@@ -7442,7 +7592,8 @@
7442
7592
  flex: 1 1 auto;
7443
7593
  padding-block: var(--spacing-xxxs);
7444
7594
  font: var(--str-chat__caption-default-text);
7445
- min-width: 0;
7595
+ text-align: center;
7596
+ white-space: nowrap;
7446
7597
  }
7447
7598
  .str-chat__notification .str-chat__notification-actions {
7448
7599
  display: flex;
@@ -7817,34 +7968,40 @@
7817
7968
  border: 1px solid var(--str-chat__disabled-color);
7818
7969
  }
7819
7970
  .str-chat__poll-option-list .str-chat__poll-option .str-chat__checkmark--checked {
7820
- height: calc(var(--str-chat__poll-checkmark-size) + 1px);
7821
- width: calc(var(--str-chat__poll-checkmark-size) + 1px);
7822
7971
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Im00IDkuNC00LTRMMS40IDQgNCA2LjYgMTAuNiAwIDEyIDEuNGwtOCA4WiIvPjwvc3ZnPg==");
7823
7972
  background-repeat: no-repeat;
7824
7973
  background-position: center;
7825
7974
  background-size: 11px 10px;
7826
7975
  background-color: var(--str-chat__primary-color);
7827
- border: none;
7976
+ border-color: var(--str-chat__primary-color);
7828
7977
  }
7829
7978
  .str-chat__poll-option-list .str-chat__poll-option .str-chat__poll-option-data {
7830
7979
  flex: 1;
7831
7980
  display: flex;
7832
7981
  align-items: start;
7833
- gap: var(--spacing-sm);
7982
+ gap: var(--spacing-xs);
7834
7983
  grid-column: 2/3;
7835
7984
  grid-row: 1/2;
7985
+ min-height: 24px;
7986
+ padding-block: var(--spacing-xxxs);
7836
7987
  }
7837
7988
  .str-chat__poll-option-list .str-chat__poll-option .str-chat__poll-option-data p {
7838
7989
  margin: 0;
7839
7990
  flex: 1;
7840
7991
  }
7841
- .str-chat__poll-option-list .str-chat__poll-option .str-chat__poll-option-data .str-chat__poll-option-voters {
7992
+ .str-chat__poll-option-list .str-chat__poll-option .str-chat__poll-option-data .str-chat__poll-option-votes {
7993
+ display: flex;
7994
+ align-items: center;
7995
+ gap: var(--spacing-xxs);
7996
+ }
7997
+ .str-chat__poll-option-list .str-chat__poll-option .str-chat__poll-option-data .str-chat__poll-option-votes .str-chat__poll-option-voters {
7842
7998
  --str-chat__avatar-size: 1.175rem;
7843
7999
  display: flex;
7844
8000
  }
7845
- .str-chat__poll-option-list .str-chat__poll-option .str-chat__poll-option-data .str-chat__poll-option-vote-count {
7846
- font-size: var(--typography-font-size-xs);
7847
- line-height: var(--typography-line-height-tight);
8001
+ .str-chat__poll-option-list .str-chat__poll-option .str-chat__poll-option-data .str-chat__poll-option-votes .str-chat__poll-option-vote-count {
8002
+ text-align: right;
8003
+ font: var(--str-chat__metadata-default-text);
8004
+ font-variant-numeric: tabular-nums;
7848
8005
  }
7849
8006
  .str-chat__poll-option-list .str-chat__poll-option .str-chat__poll-option__votes-bar {
7850
8007
  grid-column: 2/3;
@@ -7956,7 +8113,9 @@
7956
8113
  border-top: 1px solid var(--border-core-default);
7957
8114
  }
7958
8115
  .str-chat__modal__poll-results .str-chat_poll-option-with-votes-list .str-chat__poll-option--has-more-votes,
7959
- .str-chat__modal__poll-results .str-chat__modal__poll-results__option-list .str-chat__poll-option--has-more-votes {
8116
+ .str-chat__modal__poll-results .str-chat_poll-option-with-votes-list .str-chat__poll-option--has-votes,
8117
+ .str-chat__modal__poll-results .str-chat__modal__poll-results__option-list .str-chat__poll-option--has-more-votes,
8118
+ .str-chat__modal__poll-results .str-chat__modal__poll-results__option-list .str-chat__poll-option--has-votes {
7960
8119
  padding-bottom: 0;
7961
8120
  }
7962
8121
  .str-chat__modal__poll-results .str-chat_poll-option-with-votes-list .str-chat__poll-option {
@@ -8363,10 +8522,20 @@
8363
8522
  gap: var(--spacing-xs);
8364
8523
  padding-inline: calc(var(--spacing-sm) + var(--spacing-xxs));
8365
8524
  }
8525
+ .str-chat__message-reactions-detail .str-chat__message-reactions-detail__user-list .str-chat__message-reactions-detail__user-list-item .str-chat__message-reactions-detail__user-list-item-icon {
8526
+ font-size: 14px;
8527
+ line-height: 20px;
8528
+ font-family: system-ui;
8529
+ font-style: normal;
8530
+ letter-spacing: 0;
8531
+ display: flex;
8532
+ }
8366
8533
  .str-chat__message-reactions-detail .str-chat__message-reactions-detail__user-list .str-chat__message-reactions-detail__user-list-item .str-chat__message-reactions-detail__user-list-item-info {
8367
8534
  display: flex;
8368
8535
  flex-direction: column;
8369
8536
  gap: var(--spacing-xxxs);
8537
+ flex-grow: 1;
8538
+ min-width: 0;
8370
8539
  }
8371
8540
  .str-chat__message-reactions-detail .str-chat__message-reactions-detail__user-list .str-chat__message-reactions-detail__user-list-item .str-chat__message-reactions-detail__user-list-item-info .str-chat__message-reactions-detail__user-list-item-username {
8372
8541
  color: var(--text-primary);
@@ -8382,6 +8551,7 @@
8382
8551
  color: var(--text-tertiary);
8383
8552
  font: var(--str-chat__metadata-default-text);
8384
8553
  cursor: pointer;
8554
+ align-self: flex-start;
8385
8555
  }
8386
8556
 
8387
8557
  .str-chat__search {