stream-chat-react 10.0.2 → 10.1.1

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.
@@ -3,6 +3,7 @@
3
3
  @use 'global-theme-variables';
4
4
 
5
5
  @use 'vendor/emoji-mart.scss';
6
+ @use 'vendor/react-image-gallery';
6
7
 
7
8
  @use 'common/CTAButton/CTAButton-theme';
8
9
  @use 'common/CircleFAButton/CircleFAButton-theme';
@@ -33,4 +34,3 @@
33
34
  @use 'Tooltip/Tooltip-theme';
34
35
  @use 'TypingIndicator/TypingIndicator-theme';
35
36
 
36
- @use '../../vendor/react-image-gallery';
@@ -0,0 +1,232 @@
1
+ $ig-small-screen: 768px !default;
2
+ $ig-xsmall-screen: 480px !default;
3
+ $ig-white: #fff !default;
4
+ $ig-black: #000 !default;
5
+ $ig-blue: #337ab7 !default;
6
+ $ig-background-black: rgba(0, 0, 0, 0.4) !default;
7
+ $ig-transparent: rgba(0, 0, 0, 0) !default;
8
+ $ig-shadow: 0 2px 2px lighten($ig-black, 10%);
9
+
10
+ @mixin vendor-prefix($name, $value) {
11
+ @each $vendor in ('-webkit-', '-moz-', '-ms-', '-o-', '') {
12
+ #{$vendor}#{$name}: #{$value};
13
+ }
14
+ }
15
+
16
+ // SVG ICON STYLES
17
+ .image-gallery-icon {
18
+ color: $ig-white;
19
+ transition: all 0.3s ease-out;
20
+ appearance: none;
21
+ background-color: transparent;
22
+ border: 0;
23
+ cursor: pointer;
24
+ outline: none;
25
+ position: absolute;
26
+ z-index: 4;
27
+ filter: drop-shadow($ig-shadow);
28
+
29
+ @media (hover: hover) and (pointer: fine) {
30
+ &:hover {
31
+ color: $ig-blue;
32
+
33
+ .image-gallery-svg {
34
+ transform: scale(1.1);
35
+ }
36
+ }
37
+ }
38
+
39
+ &:focus {
40
+ // a11y support
41
+ outline: 2px solid $ig-blue;
42
+ }
43
+ }
44
+
45
+ .image-gallery-using-mouse {
46
+ .image-gallery-icon {
47
+ &:focus {
48
+ outline: none;
49
+ }
50
+ }
51
+ }
52
+
53
+ .image-gallery-fullscreen-button {
54
+ bottom: 0;
55
+ padding: 20px;
56
+
57
+ .image-gallery-svg {
58
+ height: 28px;
59
+ width: 28px;
60
+ }
61
+
62
+ @media (max-width: $ig-small-screen) {
63
+ padding: 15px;
64
+
65
+ .image-gallery-svg {
66
+ height: 24px;
67
+ width: 24px;
68
+ }
69
+ }
70
+
71
+ @media (max-width: $ig-xsmall-screen) {
72
+ padding: 10px;
73
+
74
+ .image-gallery-svg {
75
+ height: 16px;
76
+ width: 16px;
77
+ }
78
+ }
79
+ }
80
+
81
+ .image-gallery-fullscreen-button {
82
+ right: 0;
83
+ }
84
+
85
+ .image-gallery-left-nav,
86
+ .image-gallery-right-nav {
87
+ padding: 50px 10px;
88
+ top: 50%;
89
+ transform: translateY(-50%);
90
+
91
+ .image-gallery-svg {
92
+ height: 120px;
93
+ width: 60px;
94
+ }
95
+
96
+ @media (max-width: $ig-small-screen) {
97
+ .image-gallery-svg {
98
+ height: 72px;
99
+ width: 36px;
100
+ }
101
+ }
102
+
103
+ @media (max-width: $ig-xsmall-screen) {
104
+ .image-gallery-svg {
105
+ height: 48px;
106
+ width: 24px;
107
+ }
108
+ }
109
+
110
+ &[disabled] {
111
+ cursor: disabled;
112
+ opacity: 0.6;
113
+ pointer-events: none;
114
+ }
115
+ }
116
+
117
+ .image-gallery-left-nav {
118
+ left: 0;
119
+ }
120
+
121
+ .image-gallery-right-nav {
122
+ right: 0;
123
+ }
124
+ // End of Icon styles
125
+
126
+ .image-gallery {
127
+ @include vendor-prefix('user-select', none);
128
+ -webkit-tap-highlight-color: $ig-transparent;
129
+ position: relative;
130
+
131
+ &.fullscreen-modal {
132
+ background: $ig-black;
133
+ bottom: 0;
134
+ height: 100%;
135
+ left: 0;
136
+ position: fixed;
137
+ right: 0;
138
+ top: 0;
139
+ width: 100%;
140
+ z-index: 5;
141
+
142
+ .image-gallery-content {
143
+ top: 50%;
144
+ transform: translateY(-50%);
145
+ }
146
+ }
147
+ }
148
+
149
+ .image-gallery-content {
150
+ position: relative;
151
+ line-height: 0;
152
+ top: 0;
153
+
154
+ &.fullscreen {
155
+ background: $ig-black;
156
+
157
+ .image-gallery-slide .image-gallery-image {
158
+ max-width: 100%;
159
+ }
160
+ }
161
+
162
+ .image-gallery-slide .image-gallery-image {
163
+ max-height: calc(100vh - 80px); // 80 px for the thumbnail space
164
+ max-width: unset;
165
+ object-fit: contain;
166
+ }
167
+
168
+ &.left,
169
+ &.right {
170
+ .image-gallery-slide .image-gallery-image {
171
+ max-height: 100vh;
172
+ }
173
+ }
174
+ }
175
+
176
+ .image-gallery-slide-wrapper {
177
+ position: relative;
178
+
179
+ &.left,
180
+ &.right {
181
+ display: inline-block;
182
+ width: calc(100% - 110px); // 100px + 10px for margin
183
+
184
+ @media (max-width: $ig-small-screen) {
185
+ width: calc(100% - 87px); // 81px + 6px for margin
186
+ }
187
+ }
188
+
189
+ &.image-gallery-rtl {
190
+ direction: rtl;
191
+ }
192
+ }
193
+
194
+ .image-gallery-slides {
195
+ line-height: 0;
196
+ overflow: hidden;
197
+ position: relative;
198
+ white-space: nowrap;
199
+ text-align: center;
200
+ }
201
+
202
+ .image-gallery-slide {
203
+ left: 0;
204
+ position: absolute;
205
+ top: 0;
206
+ width: 100%;
207
+
208
+ &.center {
209
+ position: relative;
210
+ }
211
+
212
+ .image-gallery-image {
213
+ width: 100%;
214
+ object-fit: contain;
215
+ }
216
+ }
217
+
218
+ .image-gallery-index {
219
+ background: $ig-background-black;
220
+ color: $ig-white;
221
+ line-height: 1;
222
+ padding: 10px 20px;
223
+ position: absolute;
224
+ right: 0;
225
+ top: 0;
226
+ z-index: 4;
227
+
228
+ @media (max-width: $ig-small-screen) {
229
+ font-size: 0.8em;
230
+ padding: 5px 10px;
231
+ }
232
+ }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "10.0.2";
1
+ export declare const version = "10.1.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export var version = '10.0.2';
1
+ export var version = '10.1.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "10.0.2",
3
+ "version": "10.1.1",
4
4
  "description": "React components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@braintree/sanitize-url": "6.0.0",
32
32
  "@popperjs/core": "^2.11.5",
33
- "@stream-io/stream-chat-css": "^3.1.0",
33
+ "@stream-io/stream-chat-css": "3.1.1",
34
34
  "clsx": "^1.1.1",
35
35
  "dayjs": "^1.10.4",
36
36
  "emoji-mart": "3.0.1",