stream-chat-react 10.2.0 → 10.3.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.
- package/dist/browser.full-bundle.js +88 -29
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +2 -2
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelList.js +2 -2
- package/dist/components/ChannelList/ChannelListMessenger.js +2 -2
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +19 -4
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +28 -6
- package/dist/components/LoadMore/LoadMoreButton.d.ts +7 -2
- package/dist/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
- package/dist/components/LoadMore/LoadMoreButton.js +9 -4
- package/dist/components/LoadMore/LoadMorePaginator.d.ts +2 -7
- package/dist/components/LoadMore/LoadMorePaginator.d.ts.map +1 -1
- package/dist/components/LoadMore/LoadMorePaginator.js +8 -3
- package/dist/components/Message/hooks/useUserRole.d.ts +1 -1
- package/dist/components/Message/hooks/useUserRole.d.ts.map +1 -1
- package/dist/components/Message/hooks/useUserRole.js +5 -5
- package/dist/components/MessageList/MessageList.js +1 -1
- package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/SimpleReactionsList.js +26 -6
- package/dist/css/index.css +1 -1
- package/dist/css/index.css.map +1 -1
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.css.map +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/css/v2/index.layout.css.map +1 -1
- package/dist/index.cjs.js +87 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/scss/ChannelList.scss +14 -0
- package/dist/scss/ChannelSearch.scss +8 -8
- package/dist/scss/v2/ChannelList/ChannelList-layout.scss +14 -0
- package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +68 -51
- package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +48 -0
- package/dist/scss/v2/Tooltip/Tooltip-layout.scss +1 -1
- package/dist/types/types.d.ts +10 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/utils/deprecationWarning.d.ts +2 -0
- package/dist/utils/deprecationWarning.d.ts.map +1 -0
- package/dist/utils/deprecationWarning.js +12 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -125,3 +125,17 @@
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
+
|
|
129
|
+
.str-chat__channel-list.str-chat__channel-list-react {
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
|
|
132
|
+
.str-chat__channel-list-messenger-react {
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
padding-bottom: var(--sm-p);
|
|
135
|
+
|
|
136
|
+
.str-chat__channel-list-messenger-react__main {
|
|
137
|
+
overflow-y: auto;
|
|
138
|
+
height: 100%;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
.str-chat__channel-search {
|
|
2
2
|
--channel-search-input-height: 30px;
|
|
3
3
|
|
|
4
|
-
padding: var(--md-p)
|
|
4
|
+
padding: var(--md-p);
|
|
5
5
|
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
6
7
|
align-items: center;
|
|
7
8
|
position: relative;
|
|
8
9
|
background: var(--grey-gainsboro);
|
|
9
10
|
|
|
10
11
|
input {
|
|
11
|
-
|
|
12
|
+
width: 100%;
|
|
12
13
|
background: var(--grey-whisper);
|
|
13
14
|
border: 1px solid transparent;
|
|
14
15
|
outline: none;
|
|
@@ -31,9 +32,7 @@
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
&-container {
|
|
34
|
-
|
|
35
|
-
width: 300px;
|
|
36
|
-
z-index: 2;
|
|
35
|
+
|
|
37
36
|
padding: 8px;
|
|
38
37
|
|
|
39
38
|
&-searching {
|
|
@@ -69,7 +68,10 @@
|
|
|
69
68
|
&-container.popup {
|
|
70
69
|
border-radius: var(--border-radius-md);
|
|
71
70
|
background: var(--white-smoke);
|
|
71
|
+
position: absolute;
|
|
72
|
+
z-index: 2;
|
|
72
73
|
left: 0;
|
|
74
|
+
right: 0;
|
|
73
75
|
top: calc(var(--channel-search-input-height) + 40px);
|
|
74
76
|
box-shadow: 0 7px 9px 0 var(--border), 0 1px 0 0 var(--border);
|
|
75
77
|
border: 1px solid var(--border);
|
|
@@ -86,10 +88,8 @@
|
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
&-container.inline {
|
|
89
|
-
|
|
90
|
-
right: 0;
|
|
91
|
+
width: 100%;
|
|
91
92
|
background: var(--grey-gainsboro);
|
|
92
|
-
height: calc(100vh - 60px);
|
|
93
93
|
|
|
94
94
|
.str-chat__channel-search-result {
|
|
95
95
|
&:hover {
|
|
@@ -39,3 +39,17 @@
|
|
|
39
39
|
display: none;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
.str-chat__channel-list-react {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
|
|
47
|
+
.str-chat__channel-list-messenger-react {
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
padding-bottom: var(--str-chat__spacing-2_5);
|
|
50
|
+
|
|
51
|
+
.str-chat__channel-list-messenger-react__main {
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1,71 +1,88 @@
|
|
|
1
1
|
@use '../utils';
|
|
2
2
|
|
|
3
|
-
.str-chat__channel-search
|
|
4
|
-
|
|
5
|
-
padding: var(--str-chat__spacing-2_5);
|
|
3
|
+
.str-chat__channel-search {
|
|
4
|
+
position: relative;
|
|
6
5
|
|
|
7
|
-
.str-chat__channel-search-bar
|
|
8
|
-
@include utils.
|
|
9
|
-
width: calc(var(--str-chat__spacing-px) * 40);
|
|
10
|
-
height: calc(var(--str-chat__spacing-px) * 40);
|
|
6
|
+
.str-chat__channel-search-bar {
|
|
7
|
+
@include utils.flex-row-center;
|
|
11
8
|
padding: var(--str-chat__spacing-2_5);
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.str-chat__channel-search-input--wrapper {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
flex: 1;
|
|
19
|
-
padding: var(--str-chat__spacing-2_5);
|
|
20
|
-
min-width: 0;
|
|
21
9
|
|
|
22
|
-
.str-chat__channel-search-
|
|
23
|
-
.str-chat__channel-search-input--clear-button {
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
padding: 0 var(--str-chat__spacing-2_5);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.str-chat__channel-search-input--clear-button {
|
|
10
|
+
.str-chat__channel-search-bar-button {
|
|
29
11
|
@include utils.button-reset;
|
|
12
|
+
width: calc(var(--str-chat__spacing-px) * 40);
|
|
13
|
+
height: calc(var(--str-chat__spacing-px) * 40);
|
|
14
|
+
padding: var(--str-chat__spacing-2_5);
|
|
30
15
|
cursor: pointer;
|
|
31
|
-
|
|
32
|
-
&:disabled {
|
|
33
|
-
cursor: default;
|
|
34
|
-
}
|
|
35
16
|
}
|
|
36
17
|
|
|
37
|
-
input {
|
|
18
|
+
.str-chat__channel-search-input--wrapper {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
38
21
|
flex: 1;
|
|
22
|
+
padding: var(--str-chat__spacing-2_5);
|
|
39
23
|
min-width: 0;
|
|
24
|
+
|
|
25
|
+
.str-chat__channel-search-input--icon,
|
|
26
|
+
.str-chat__channel-search-input--clear-button {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
padding: 0 var(--str-chat__spacing-2_5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.str-chat__channel-search-input--clear-button {
|
|
32
|
+
@include utils.button-reset;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
|
|
35
|
+
&:disabled {
|
|
36
|
+
cursor: default;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input {
|
|
41
|
+
flex: 1;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
|
-
}
|
|
43
46
|
|
|
44
|
-
.str-chat__channel-search-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
47
|
+
.str-chat__channel-search-container-searching {
|
|
48
|
+
width: 100%;
|
|
49
|
+
padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
|
|
50
|
+
}
|
|
48
51
|
|
|
49
|
-
.str-chat__channel-search-
|
|
50
|
-
.str-chat__channel-search-container-empty {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
align-items: center;
|
|
52
|
+
.str-chat__channel-search-results-header {
|
|
54
53
|
width: 100%;
|
|
54
|
+
padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
|
|
55
|
+
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
|
|
58
|
+
.str-chat__channel-search-result-list {
|
|
59
|
+
&.popup {
|
|
60
|
+
position: absolute;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
60
63
|
}
|
|
61
|
-
}
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
.str-chat__channel-search-container-empty {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: center;
|
|
69
|
+
width: 100%;
|
|
70
|
+
padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
|
|
71
|
+
|
|
72
|
+
svg {
|
|
73
|
+
height: calc(var(--str-chat__spacing-px) * 90 + var(--str-chat__spacing-20));
|
|
74
|
+
width: calc(var(--str-chat__spacing-px) * 90);
|
|
75
|
+
padding: var(--str-chat__spacing-10) 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.str-chat__channel-search-result {
|
|
80
|
+
@include utils.button-reset;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
width: 100%;
|
|
84
|
+
column-gap: var(--str-chat__spacing-2);
|
|
85
|
+
padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
|
|
86
|
+
}
|
|
70
87
|
}
|
|
71
|
-
}
|
|
88
|
+
}
|
|
@@ -89,6 +89,25 @@
|
|
|
89
89
|
--str-chat__secondary-surface-color
|
|
90
90
|
);
|
|
91
91
|
|
|
92
|
+
--str-chat__channel-search-result-list-color: var(--str-chat__text-color);
|
|
93
|
+
|
|
94
|
+
--str-chat__channel-search-result-list-background-color: var(--str-chat__secondary-background-color);
|
|
95
|
+
|
|
96
|
+
/* Top border of the component */
|
|
97
|
+
--str-chat__channel-search-result-list-border-block-start: none;
|
|
98
|
+
|
|
99
|
+
/* Bottom border of the component */
|
|
100
|
+
--str-chat__channel-search-result-list-border-block-end: none;
|
|
101
|
+
|
|
102
|
+
/* Left (right in RTL layout) border of the component */
|
|
103
|
+
--str-chat__channel-search-result-list-border-inline-start: none;
|
|
104
|
+
|
|
105
|
+
/* Right (left in RTL layout) border of the component */
|
|
106
|
+
--str-chat__channel-search-result-list-border-inline-end: none;
|
|
107
|
+
|
|
108
|
+
/* Box shadow applied to the component */
|
|
109
|
+
--str-chat__channel-search-result-list-popup-box-shadow: 0 4px 4px var(--str-chat__box-shadow-color);
|
|
110
|
+
|
|
92
111
|
/* The font color used in the search results header */
|
|
93
112
|
--str-chat__channel-search-results-header-color: var(--str-chat__text-low-emphasis-color);
|
|
94
113
|
|
|
@@ -108,6 +127,25 @@
|
|
|
108
127
|
/* Right (left in RTL layout) border of the component */
|
|
109
128
|
--str-chat__channel-search-results-header-border-inline-end: none;
|
|
110
129
|
|
|
130
|
+
/* The font color used in the search results loading indicator */
|
|
131
|
+
--str-chat__channel-search-results-loading-indicator-color: var(--str-chat__text-low-emphasis-color);
|
|
132
|
+
|
|
133
|
+
/* The background color used in the search results loading indicator */
|
|
134
|
+
--str-chat__channel-search-results-loading-indicator-background-color: var(--str-chat__background-color);
|
|
135
|
+
|
|
136
|
+
/* Top border of the component */
|
|
137
|
+
--str-chat__channel-search-results-loading-indicator-border-block-start: none;
|
|
138
|
+
|
|
139
|
+
/* Bottom border of the component */
|
|
140
|
+
--str-chat__channel-search-results-loading-indicator-border-block-end: var(--str-chat__surface-color) 1px
|
|
141
|
+
solid;
|
|
142
|
+
|
|
143
|
+
/* Left (right in RTL layout) border of the component */
|
|
144
|
+
--str-chat__channel-search-results-loading-indicator-border-inline-start: none;
|
|
145
|
+
|
|
146
|
+
/* Right (left in RTL layout) border of the component */
|
|
147
|
+
--str-chat__channel-search-results-loading-indicator-border-inline-end: none;
|
|
148
|
+
|
|
111
149
|
/* The font color used in the empty search results indicator */
|
|
112
150
|
--str-chat__channel-search-results-empty-color: var(--str-chat__text-low-emphasis-color);
|
|
113
151
|
|
|
@@ -162,6 +200,16 @@
|
|
|
162
200
|
}
|
|
163
201
|
|
|
164
202
|
.str-chat__channel-search-result-list {
|
|
203
|
+
@include utils.component-layer-overrides('channel-search-result-list');
|
|
204
|
+
|
|
205
|
+
&.popup {
|
|
206
|
+
box-shadow: var(--str-chat__channel-search-result-list-popup-box-shadow);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.str-chat__channel-search-container-searching {
|
|
210
|
+
@include utils.component-layer-overrides('channel-search-results-loading-indicator');
|
|
211
|
+
}
|
|
212
|
+
|
|
165
213
|
.str-chat__channel-search-container-empty {
|
|
166
214
|
@include utils.component-layer-overrides('channel-search-results-empty');
|
|
167
215
|
font: var(--str-chat__subtitle2-medium-text);
|
package/dist/types/types.d.ts
CHANGED
|
@@ -55,9 +55,18 @@ export declare type PaginatorProps = {
|
|
|
55
55
|
loadNextPage: () => void;
|
|
56
56
|
/** indicates if there is a next page to load */
|
|
57
57
|
hasNextPage?: boolean;
|
|
58
|
+
/** indicates if there is a previous page to load */
|
|
59
|
+
hasPreviousPage?: boolean;
|
|
60
|
+
/** indicates whether a loading request is in progress */
|
|
61
|
+
isLoading?: boolean;
|
|
58
62
|
/** The loading indicator to use */
|
|
59
63
|
LoadingIndicator?: React.ComponentType<LoadingIndicatorProps>;
|
|
60
|
-
/**
|
|
64
|
+
/** callback to load the previous page */
|
|
65
|
+
loadPreviousPage?: () => void;
|
|
66
|
+
/**
|
|
67
|
+
* @desc indicates if there's currently any refreshing taking place
|
|
68
|
+
* @deprecated Use loading prop instead of refreshing. Planned for removal: https://github.com/GetStream/stream-chat-react/issues/1804
|
|
69
|
+
*/
|
|
61
70
|
refreshing?: boolean;
|
|
62
71
|
/** display the items in opposite order */
|
|
63
72
|
reverse?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,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EAAE,OAAO,CAAC;IACrB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,oBAAY,UAAU,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D,oBAAY,4BAA4B,GAAG;IACzC,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,oBAAY,4BAA4B,GAAG,4BAA4B,GAAG;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,0BAA0B,GAAG,CACvC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,WAAW,KACjB,4BAA4B,CAAC;AAElC,oBAAY,0BAA0B,GAAG,CACvC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,WAAW,EACpB,4BAA4B,EAAE,OAAO,KAClC,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecationWarning.d.ts","sourceRoot":"","sources":["../../src/utils/deprecationWarning.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,+DAEhC,MAAM,SAiBlB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var deprecationAndReplacementWarning = function (pairs, component) {
|
|
2
|
+
pairs.forEach(function (data) {
|
|
3
|
+
var _a = [
|
|
4
|
+
Object.entries(data[0])[0],
|
|
5
|
+
Object.entries(data[1])[0],
|
|
6
|
+
], _b = _a[0], oldName = _b[0], oldValue = _b[1], _c = _a[1], newName = _c[0], newValue = _c[1];
|
|
7
|
+
if ((typeof oldValue !== 'undefined' && typeof newValue === 'undefined') ||
|
|
8
|
+
(typeof oldValue !== 'undefined' && typeof newValue !== 'undefined')) {
|
|
9
|
+
console.warn("[Deprecation notice (".concat(component, ")]: prefer using prop ").concat(newName, " instead of ").concat(oldName));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "10.
|
|
1
|
+
export declare const version = "10.3.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '10.
|
|
1
|
+
export var version = '10.3.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.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.
|
|
33
|
+
"@stream-io/stream-chat-css": "^3.6.0",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"dayjs": "^1.10.4",
|
|
36
36
|
"emoji-mart": "3.0.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"react": "^18.0.0 || ^17.0.0 || ^16.8.0",
|
|
66
66
|
"react-dom": "^18.0.0 || ^17.0.0 || ^16.8.0",
|
|
67
|
-
"stream-chat": "^7.1.0"
|
|
67
|
+
"stream-chat": "^8.0.0 || ^7.1.0"
|
|
68
68
|
},
|
|
69
69
|
"files": [
|
|
70
70
|
"dist",
|