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

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 (144) hide show
  1. package/dist/cjs/WithAudioPlayback.236d404c.js +4670 -0
  2. package/dist/cjs/WithAudioPlayback.236d404c.js.map +1 -0
  3. package/dist/cjs/emojis.js +2 -2
  4. package/dist/cjs/emojis.js.map +1 -1
  5. package/dist/cjs/index.js +191 -264
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/css/emoji-replacement.css +34 -0
  8. package/dist/css/emoji-replacement.css.map +1 -0
  9. package/dist/css/index.css +9 -25
  10. package/dist/css/index.css.map +1 -1
  11. package/dist/es/WithAudioPlayback.89700cb5.mjs +4654 -0
  12. package/dist/es/WithAudioPlayback.89700cb5.mjs.map +1 -0
  13. package/dist/es/emojis.mjs +2 -2
  14. package/dist/es/emojis.mjs.map +1 -1
  15. package/dist/es/index.mjs +230 -303
  16. package/dist/es/index.mjs.map +1 -1
  17. package/dist/types/components/Form/TextInput.d.ts +2 -2
  18. package/dist/types/components/Form/TextInput.d.ts.map +1 -1
  19. package/dist/types/components/Icons/IconGiphy.d.ts.map +1 -1
  20. package/dist/types/components/Icons/icons.d.ts +56 -340
  21. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  22. package/dist/types/components/Loading/LoadingIndicator.d.ts +2 -2
  23. package/dist/types/components/Loading/LoadingIndicator.d.ts.map +1 -1
  24. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
  25. package/dist/types/components/Poll/PollCreationDialog/OptionFieldSet.d.ts.map +1 -1
  26. package/package.json +3 -4
  27. package/dist/assets/icons/stream-chat-icons.eot +0 -0
  28. package/dist/assets/icons/stream-chat-icons.svg +0 -50
  29. package/dist/assets/icons/stream-chat-icons.ttf +0 -0
  30. package/dist/assets/icons/stream-chat-icons.woff +0 -0
  31. package/dist/assets/icons/stream-chat-icons.woff2 +0 -0
  32. package/dist/cjs/WithAudioPlayback.4a84360f.js +0 -4727
  33. package/dist/cjs/WithAudioPlayback.4a84360f.js.map +0 -1
  34. package/dist/css/v2/emoji-mart.css +0 -1
  35. package/dist/css/v2/emoji-replacement.css +0 -1
  36. package/dist/css/v2/index.css +0 -1
  37. package/dist/css/v2/index.layout.css +0 -1
  38. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs +0 -4711
  39. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs.map +0 -1
  40. package/dist/scss/v2/AIStateIndicator/AIStateIndicator-layout.scss +0 -3
  41. package/dist/scss/v2/AIStateIndicator/AIStateIndicator-theme.scss +0 -7
  42. package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +0 -701
  43. package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +0 -605
  44. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +0 -141
  45. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-theme.scss +0 -190
  46. package/dist/scss/v2/AudioRecorder/AudioRecorder-layout.scss +0 -139
  47. package/dist/scss/v2/AudioRecorder/AudioRecorder-theme.scss +0 -61
  48. package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +0 -94
  49. package/dist/scss/v2/Autocomplete/Autocomplete-theme.scss +0 -220
  50. package/dist/scss/v2/Avatar/Avatar-layout.scss +0 -137
  51. package/dist/scss/v2/Avatar/Avatar-theme.scss +0 -64
  52. package/dist/scss/v2/BaseImage/BaseImage-layout.scss +0 -21
  53. package/dist/scss/v2/BaseImage/BaseImage-theme.scss +0 -35
  54. package/dist/scss/v2/BaseImage/index.scss +0 -2
  55. package/dist/scss/v2/Channel/Channel-layout.scss +0 -141
  56. package/dist/scss/v2/Channel/Channel-theme.scss +0 -100
  57. package/dist/scss/v2/ChannelHeader/ChannelHeader-layout.scss +0 -27
  58. package/dist/scss/v2/ChannelHeader/ChannelHeader-theme.scss +0 -43
  59. package/dist/scss/v2/ChannelList/ChannelList-layout.scss +0 -65
  60. package/dist/scss/v2/ChannelList/ChannelList-theme.scss +0 -89
  61. package/dist/scss/v2/ChannelPreview/ChannelPreview-layout.scss +0 -126
  62. package/dist/scss/v2/ChannelPreview/ChannelPreview-theme.scss +0 -148
  63. package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +0 -122
  64. package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +0 -238
  65. package/dist/scss/v2/ChatView/ChatView-layout.scss +0 -43
  66. package/dist/scss/v2/ChatView/ChatView-theme.scss +0 -32
  67. package/dist/scss/v2/Dialog/Dialog-layout.scss +0 -70
  68. package/dist/scss/v2/Dialog/Dialog-theme.scss +0 -103
  69. package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-layout.scss +0 -5
  70. package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-theme.scss +0 -47
  71. package/dist/scss/v2/DropzoneContainer/DropzoneContainer-layout.scss +0 -14
  72. package/dist/scss/v2/DropzoneContainer/DropzoneContainer-theme.scss +0 -17
  73. package/dist/scss/v2/EditMessageForm/EditMessageForm-layout.scss +0 -51
  74. package/dist/scss/v2/EditMessageForm/EditMessageForm-theme.scss +0 -50
  75. package/dist/scss/v2/Form/Form-layout.scss +0 -49
  76. package/dist/scss/v2/Form/Form-theme.scss +0 -82
  77. package/dist/scss/v2/Icon/Icon-layout.scss +0 -98
  78. package/dist/scss/v2/Icon/Icon-theme.scss +0 -17
  79. package/dist/scss/v2/ImageCarousel/ImageCarousel-layout.scss +0 -51
  80. package/dist/scss/v2/ImageCarousel/ImageCarousel-theme.scss +0 -30
  81. package/dist/scss/v2/InfiniteScrollPaginator/InfiniteScrollPaginator-layout.scss +0 -4
  82. package/dist/scss/v2/LinkPreview/LinkPreview-layout.scss +0 -67
  83. package/dist/scss/v2/LinkPreview/LinkPreview-theme.scss +0 -32
  84. package/dist/scss/v2/LinkPreview/index.scss +0 -2
  85. package/dist/scss/v2/LoadingIndicator/LoadingIndicator-layout.scss +0 -64
  86. package/dist/scss/v2/LoadingIndicator/LoadingIndicator-theme.scss +0 -14
  87. package/dist/scss/v2/Location/Location-layout.scss +0 -52
  88. package/dist/scss/v2/Location/Location-theme.scss +0 -32
  89. package/dist/scss/v2/Message/Message-layout.scss +0 -619
  90. package/dist/scss/v2/Message/Message-theme.scss +0 -483
  91. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +0 -21
  92. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-theme.scss +0 -85
  93. package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-layout.scss +0 -19
  94. package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-theme.scss +0 -51
  95. package/dist/scss/v2/MessageInput/MessageInput-layout.scss +0 -268
  96. package/dist/scss/v2/MessageInput/MessageInput-theme.scss +0 -359
  97. package/dist/scss/v2/MessageList/MessageList-layout.scss +0 -65
  98. package/dist/scss/v2/MessageList/MessageList-theme.scss +0 -107
  99. package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +0 -57
  100. package/dist/scss/v2/MessageList/VirtualizedMessageList-theme.scss +0 -41
  101. package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +0 -143
  102. package/dist/scss/v2/MessageReactions/MessageReactions-theme.scss +0 -92
  103. package/dist/scss/v2/MessageReactions/MessageReactionsSelector-layout.scss +0 -86
  104. package/dist/scss/v2/MessageReactions/MessageReactionsSelector-theme.scss +0 -94
  105. package/dist/scss/v2/Modal/Modal-layout.scss +0 -74
  106. package/dist/scss/v2/Modal/Modal-theme.scss +0 -109
  107. package/dist/scss/v2/Notification/MessageNotification-layout.scss +0 -12
  108. package/dist/scss/v2/Notification/MessageNotification-theme.scss +0 -34
  109. package/dist/scss/v2/Notification/Notification-layout.scss +0 -7
  110. package/dist/scss/v2/Notification/Notification-theme.scss +0 -32
  111. package/dist/scss/v2/Notification/NotificationList-layout.scss +0 -11
  112. package/dist/scss/v2/Notification/NotificationList-theme.scss +0 -31
  113. package/dist/scss/v2/Poll/Poll-layout.scss +0 -493
  114. package/dist/scss/v2/Poll/Poll-theme.scss +0 -178
  115. package/dist/scss/v2/Search/Search-layout.scss +0 -148
  116. package/dist/scss/v2/Search/Search-theme.scss +0 -222
  117. package/dist/scss/v2/Thread/Thread-layout.scss +0 -65
  118. package/dist/scss/v2/Thread/Thread-theme.scss +0 -82
  119. package/dist/scss/v2/ThreadList/ThreadList-layout.scss +0 -152
  120. package/dist/scss/v2/ThreadList/ThreadList-theme.scss +0 -75
  121. package/dist/scss/v2/Tooltip/Tooltip-layout.scss +0 -10
  122. package/dist/scss/v2/Tooltip/Tooltip-theme.scss +0 -36
  123. package/dist/scss/v2/TypingIndicator/TypingIndicator-layout.scss +0 -31
  124. package/dist/scss/v2/TypingIndicator/TypingIndicator-theme.scss +0 -68
  125. package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-layout.scss +0 -49
  126. package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-theme.scss +0 -11
  127. package/dist/scss/v2/_base.scss +0 -65
  128. package/dist/scss/v2/_emoji-replacement.scss +0 -45
  129. package/dist/scss/v2/_global-layout-variables.scss +0 -65
  130. package/dist/scss/v2/_global-theme-variables.scss +0 -173
  131. package/dist/scss/v2/_icons.scss +0 -36
  132. package/dist/scss/v2/_palette-variables.scss +0 -55
  133. package/dist/scss/v2/_utils.scss +0 -212
  134. package/dist/scss/v2/_variables.scss +0 -2
  135. package/dist/scss/v2/common/CTAButton/CTAButton-layout.scss +0 -4
  136. package/dist/scss/v2/common/CTAButton/CTAButton-theme.scss +0 -42
  137. package/dist/scss/v2/common/CircleFAButton/CircleFAButton-layout.scss +0 -14
  138. package/dist/scss/v2/common/CircleFAButton/CircleFAButton-theme.scss +0 -35
  139. package/dist/scss/v2/index.layout.scss +0 -49
  140. package/dist/scss/v2/index.scss +0 -50
  141. package/dist/scss/v2/vendor/emoji-mart.scss +0 -514
  142. package/dist/scss/v2/vendor/react-image-gallery.scss +0 -258
  143. /package/dist/{assets → css/assets}/EmojiOneColor.woff2 +0 -0
  144. /package/dist/{assets → css/assets}/NotoColorEmoji-flags.woff2 +0 -0
@@ -1,109 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the content area of the component of the content area of the component */
5
- --str-chat__modal-border-radius: var(--str-chat__border-radius-sm);
6
-
7
- /* The text/icon color of the content area of the component */
8
- --str-chat__modal-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the content area of the component */
11
- --str-chat__modal-background-color: var(--str-chat__secondary-background-color);
12
-
13
- /* The overlay color of the component */
14
- --str-chat__modal-overlay-color: var(--str-chat__secondary-overlay-color);
15
-
16
- /* The backdrop filter applied to the component */
17
- --str-chat__modal-overlay-backdrop-filter: blur(3px);
18
-
19
- /* Top border of the content area of the component */
20
- --str-chat__modal-border-block-start: none;
21
-
22
- /* Bottom border of the content area of the component */
23
- --str-chat__modal-border-block-end: none;
24
-
25
- /* Left (right in RTL layout) border of the content area of the component */
26
- --str-chat__modal-border-inline-start: none;
27
-
28
- /* Right (left in RTL layout) border of the content area of the component */
29
- --str-chat__modal-border-inline-end: none;
30
-
31
- /* Box shadow applied to the content area of the component */
32
- --str-chat__modal-box-shadow: none;
33
-
34
- /* The background color of the close button */
35
- --str-chat__modal-close-icon-background: var(--str-chat__text-low-emphasis-color);
36
-
37
- /* The icon color of the close button */
38
- --str-chat__modal-close-icon-color: var(--str-chat__on-disabled-color);
39
- }
40
-
41
- .str-chat__modal {
42
- background-color: var(--str-chat__modal-overlay-color);
43
- backdrop-filter: var(--str-chat__modal-overlay-backdrop-filter);
44
-
45
- .str-chat__modal__inner {
46
- @include utils.component-layer-overrides('modal');
47
- }
48
-
49
- .str-chat__modal-header {
50
- .str-chat__modal-header__title {
51
- font: var(--str-chat__subtitle2-medium-text);
52
- }
53
- }
54
-
55
- .str-chat__modal__close-button {
56
- --str-chat-icon-color: var(--str-chat__modal-close-icon-color);
57
- @include utils.button-reset;
58
-
59
- .str-chat__icon {
60
- background-color: var(--str-chat__modal-close-icon-background);
61
- border-radius: 999px;
62
- }
63
-
64
- svg {
65
- path {
66
- fill: var(--str-chat__modal-close-icon-color);
67
- }
68
-
69
- rect,
70
- circle {
71
- fill: var(--str-chat__modal-close-icon-background);
72
- }
73
- }
74
- }
75
- }
76
-
77
- @mixin image-on-modal {
78
- .str-chat__modal__inner.str-chat-react__modal__inner {
79
- background-color: transparent;
80
- width: unset;
81
- max-width: unset;
82
- height: unset;
83
- padding: 0;
84
-
85
- img {
86
- max-width: unset;
87
- max-height: calc(100vh - 80px);
88
- cursor: default;
89
- }
90
- }
91
- }
92
-
93
- // stream-chat-react image gallery does not show the modal inner container. It has to be reset to
94
- // width of its content in order the modal can be closed when clicked on overlay
95
- // todo: remove this rule once only GlobalModal is used and old Modal is removed from stream-chat-react
96
- .str-chat__message-attachment--card,
97
- .str-chat__message-attachment--image,
98
- .str-chat__message-attachment--gallery {
99
- .str-chat__modal--open {
100
- @include image-on-modal;
101
- }
102
- }
103
-
104
- .str-chat-react__modal.str-chat__modal--open {
105
- &.str-chat__image-modal,
106
- &.str-chat__gallery-modal {
107
- @include image-on-modal;
108
- }
109
- }
@@ -1,12 +0,0 @@
1
- .str-chat__message-notification {
2
- display: block;
3
- position: absolute;
4
- align-self: center;
5
- padding: var(--str-chat__spacing-1) var(--str-chat__spacing-2);
6
- bottom: calc(var(--str-chat__spacing-px) * 10);
7
- z-index: 100;
8
- }
9
-
10
- .str-chat__list-notifications {
11
- position: relative;
12
- }
@@ -1,34 +0,0 @@
1
- @use '../utils';
2
-
3
- /* Only available in React SDK. */
4
- .str-chat {
5
- /* The background color of the component */
6
- --str-chat__message-notification-background-color: var(--str-chat__primary-color);
7
-
8
- /* Top border of the component */
9
- --str-chat__message-notification-border-block-start: none;
10
-
11
- /* Bottom border of the component */
12
- --str-chat__message-notification-border-block-end: none;
13
-
14
- /* Left (right in RTL layout) border of the component */
15
- --str-chat__message-notification-border-inline-start: none;
16
-
17
- /* Right (left in RTL layout) border of the component */
18
- --str-chat__message-notification-border-inline-end: none;
19
-
20
- /* The border radius used for the borders of the component */
21
- --str-chat__message-notification-border-radius: 50px;
22
-
23
- /* Box shadow applied to the component */
24
- --str-chat__message-notification-box-shadow: none;
25
-
26
- /* The text/icon color of the component */
27
- --str-chat__message-notification-color: var(--str-chat__on-primary-color);
28
- }
29
-
30
- .str-chat__message-notification {
31
- @include utils.component-layer-overrides('message-notification');
32
- font: var(--str-chat__caption-text);
33
- cursor: pointer;
34
- }
@@ -1,7 +0,0 @@
1
- .str-chat__notification {
2
- padding: var(--str-chat__spacing-3_5) var(--str-chat__spacing-4);
3
- }
4
-
5
- .str-chat-react__notification {
6
- z-index: 101;
7
- }
@@ -1,32 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__notification-border-radius: var(--str-chat__border-radius-sm);
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__notification-color: var(--str-chat__opaque-surface-text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__notification-background-color: var(--str-chat__opaque-surface-background-color);
12
-
13
- /* Top border of the component */
14
- --str-chat__notification-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__notification-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__notification-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__notification-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__notification-box-shadow: 0 0 8px var(--str-chat__box-shadow-color);
27
- }
28
-
29
- .str-chat__notification {
30
- @include utils.component-layer-overrides('notification');
31
- font: var(--str-chat__subtitle-text);
32
- }
@@ -1,11 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__list-notifications {
4
- display: flex;
5
- flex-direction: column;
6
- align-items: stretch;
7
- justify-content: center;
8
- row-gap: var(--str-chat__spacing-1);
9
- margin: var(--str-chat__spacing-1_5);
10
- width: auto;
11
- }
@@ -1,31 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__notification-list-border-radius: none;
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__notification-list-color: var(--str-chat__notification-list-text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__notification-list-background-color: transparent;
12
-
13
- /* Top border of the component */
14
- --str-chat__notification-list-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__notification-list-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__notification-list-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__notification-list-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__notification-list-box-shadow: none;
27
- }
28
-
29
- .str-chat__list-notifications {
30
- @include utils.component-layer-overrides('notification-list');
31
- }