Skip to content

Commit 1675968

Browse files
author
jaapbakker88
authored
Merge branch 'master' into export-emojipicker
2 parents ccbcf6d + a600baa commit 1675968

File tree

9 files changed

+8257
-444
lines changed

9 files changed

+8257
-444
lines changed

docs/build/bundle.13de61e4.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/bundle.13de61e4.js.LICENSE.txt

Lines changed: 7637 additions & 0 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
</head>
1010
<body>
1111
<div id="rsg-root"></div>
12-
<script src="build/bundle.852685aa.js"></script>
12+
<script src="build/bundle.13de61e4.js"></script>
1313
</body>
1414
</html>

examples/typescript-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"react": "^16.13.1",
77
"react-dom": "^16.13.1",
88
"react-scripts": "3.4.1",
9-
"stream-chat": "^2.3.0",
9+
"stream-chat": "^2.4.0",
1010
"stream-chat-react": "^2.4.1",
1111
"typescript": "~3.7.2"
1212
},

examples/typescript-app/yarn.lock

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,13 +1004,20 @@
10041004
dependencies:
10051005
regenerator-runtime "^0.13.4"
10061006

1007-
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.1", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.1":
1007+
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.1", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.5.1":
10081008
version "7.10.5"
10091009
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.10.5.tgz#303d8bd440ecd5a491eae6117fd3367698674c5c"
10101010
integrity sha512-otddXKhdNn7d0ptoFRHtMLa8LqDxLYwTjB4nYgM1yy5N6gU/MUf8zqyyLltCH3yAVitBzmwK4us+DD0l/MauAg==
10111011
dependencies:
10121012
regenerator-runtime "^0.13.4"
10131013

1014+
"@babel/runtime@^7.3.1":
1015+
version "7.11.2"
1016+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.11.2.tgz#f549c13c754cc40b87644b9fa9f09a6a95fe0736"
1017+
integrity sha512-TeWkU52so0mPtDcaCTxNBI/IHiz0pZgr8VEFqXFtZWpYD08ZB6FaSwVAS8MKRQAP3bYKiVjwysOJgMFY28o6Tw==
1018+
dependencies:
1019+
regenerator-runtime "^0.13.4"
1020+
10141021
"@babel/template@^7.10.4":
10151022
version "7.10.4"
10161023
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.10.4.tgz#3251996c4200ebc71d1a8fc405fba940f36ba278"
@@ -1589,6 +1596,13 @@
15891596
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339"
15901597
integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==
15911598

1599+
"@types/jsonwebtoken@^8.3.5":
1600+
version "8.5.0"
1601+
resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-8.5.0.tgz#2531d5e300803aa63279b232c014acf780c981c5"
1602+
integrity sha512-9bVao7LvyorRGZCw0VmH/dr7Og+NdjYSsKAxB43OQoComFbBgsEpoR9JW6+qSq/ogwVBg8GI2MfAlk4SYI4OLg==
1603+
dependencies:
1604+
"@types/node" "*"
1605+
15921606
"@types/minimatch@*":
15931607
version "3.0.3"
15941608
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
@@ -1634,6 +1648,11 @@
16341648
"@types/prop-types" "*"
16351649
csstype "^2.2.0"
16361650

1651+
1652+
version "7.1.13"
1653+
resolved "https://registry.yarnpkg.com/@types/seamless-immutable/-/seamless-immutable-7.1.13.tgz#dc8d645914086300e49410c72f6e5fae902fdbc5"
1654+
integrity sha512-kvgsr2sI8NBtxgR+YZNgSk0S+isAtS77TKtITUCGcNHlwYERrvgv6DbLER4TbvUK4/Qclm8C9jXzHqegpV2Ikg==
1655+
16371656
"@types/stack-utils@^1.0.1":
16381657
version "1.0.1"
16391658
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
@@ -1662,6 +1681,18 @@
16621681
"@types/testing-library__dom" "*"
16631682
pretty-format "^25.1.0"
16641683

1684+
"@types/uuid@^3.4.5":
1685+
version "3.4.9"
1686+
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.9.tgz#fcf01997bbc9f7c09ae5f91383af076d466594e1"
1687+
integrity sha512-XDwyIlt/47l2kWLTzw/mtrpLdB+GPSskR2n/PIcPn+VYhVO77rGhRncIR5GPU0KRzXuqkDO+J5qqrG0Y8P6jzQ==
1688+
1689+
"@types/ws@^6.0.3":
1690+
version "6.0.4"
1691+
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-6.0.4.tgz#7797707c8acce8f76d8c34b370d4645b70421ff1"
1692+
integrity sha512-PpPrX7SZW9re6+Ha8ojZG4Se8AZXgf0GK6zmfqEuCsY49LFDNXO3SByp44X3dFEqtB73lkCDAdUazhAjVPiNwg==
1693+
dependencies:
1694+
"@types/node" "*"
1695+
16651696
"@types/yargs-parser@*":
16661697
version "15.0.0"
16671698
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d"
@@ -10475,12 +10506,16 @@ stream-chat-react@^2.4.1:
1047510506
textarea-caret "^3.1.0"
1047610507
uuid "^7.0.3"
1047710508

10478-
stream-chat@^2.3.0:
10479-
version "2.3.0"
10480-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-2.3.0.tgz#5ebe22e4078ee9bd52ceb704f7b3f4b6e2073923"
10481-
integrity sha512-L7evlsIyTFpi3/rhwAdQvEXVDzUngxGAo6HV03DTKKAVh4/tu2jKEID+Lv1fCISoJshlwcSXf54ppwvWY/ASSw==
10509+
stream-chat@^2.4.0:
10510+
version "2.5.0"
10511+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-2.5.0.tgz#1859f810ffaeb53ddf19b47c2c5bc8d480bac016"
10512+
integrity sha512-uh6Ms3ovyGaTME21o8/hjjh3FbdNu6Ph3Me16IMjINTubUI0tJjj+NRqcg1Wnk2WlMmsFJlOQ9Fnx3fSVdw+mw==
1048210513
dependencies:
1048310514
"@babel/runtime" "^7.3.1"
10515+
"@types/jsonwebtoken" "^8.3.5"
10516+
"@types/seamless-immutable" "7.1.13"
10517+
"@types/uuid" "^3.4.5"
10518+
"@types/ws" "^6.0.3"
1048410519
axios "^0.18.1"
1048510520
base64-js "^1.3.1"
1048610521
form-data "^2.3.3"

package.json

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"getstream.io"
2121
],
2222
"dependencies": {
23-
"@braintree/sanitize-url": "4.1.1",
23+
"@braintree/sanitize-url": "5.0.0",
2424
"custom-event": "^1.0.1",
25-
"dayjs": "^1.8.35",
25+
"dayjs": "^1.9.1",
2626
"emoji-mart": "3.0.0",
2727
"emoji-regex": "^9.0.0",
28-
"i18next": "^19.7.0",
28+
"i18next": "^19.8.1",
2929
"isomorphic-ws": "^4.0.1",
3030
"linkifyjs": "^2.1.9",
3131
"lodash.debounce": "^4.0.8",
@@ -48,7 +48,7 @@
4848
"peerDependencies": {
4949
"react": "^16.8.x",
5050
"react-dom": "^16.8.x",
51-
"stream-chat": "2.4.x"
51+
"stream-chat": "2.5.x"
5252
},
5353
"files": [
5454
"dist",
@@ -70,8 +70,8 @@
7070
"@rollup/plugin-replace": "^2.3.3",
7171
"@stream-io/rollup-plugin-node-builtins": "^2.1.5",
7272
"@testing-library/jest-dom": "5.11.4",
73-
"@testing-library/react": "^11.0.2",
74-
"@testing-library/react-hooks": "^3.4.1",
73+
"@testing-library/react": "^11.0.4",
74+
"@testing-library/react-hooks": "^3.4.2",
7575
"@types/braintree__sanitize-url": "4.1.0",
7676
"@types/deep-equal": "^1.0.1",
7777
"@types/emoji-mart": "^3.0.2",
@@ -82,63 +82,63 @@
8282
"@types/react-dom": "^16.9.8",
8383
"@types/seamless-immutable": "7.1.13",
8484
"@types/uuid": "^8.3.0",
85-
"autoprefixer": "^9.8.6",
85+
"autoprefixer": "^10.0.1",
8686
"babel-eslint": "^10.1.0",
8787
"babel-loader": "8.1.0",
88-
"babel-plugin-i18next-extract": "^0.7.2",
88+
"babel-plugin-i18next-extract": "^0.8.0",
8989
"codecov": "^3.7.2",
9090
"css-loader": "^4.3.0",
91-
"eslint": "7.8.1",
91+
"eslint": "7.10.0",
9292
"eslint-config-airbnb": "^18.2.0",
93-
"eslint-config-prettier": "^6.11.0",
93+
"eslint-config-prettier": "^6.12.0",
9494
"eslint-config-react-app": "^5.2.1",
9595
"eslint-import-resolver-alias": "^1.1.2",
9696
"eslint-loader": "^4.0.2",
9797
"eslint-plugin-babel": "^5.3.1",
9898
"eslint-plugin-flowtype": "^5.2.0",
99-
"eslint-plugin-import": "^2.22.0",
100-
"eslint-plugin-jest": "^24.0.0",
99+
"eslint-plugin-import": "^2.22.1",
100+
"eslint-plugin-jest": "^24.0.2",
101101
"eslint-plugin-jest-dom": "^3.2.3",
102102
"eslint-plugin-jsx-a11y": "^6.3.1",
103103
"eslint-plugin-markdown": "^1.0.2",
104104
"eslint-plugin-node": "^11.1.0",
105105
"eslint-plugin-prettier": "^3.1.4",
106106
"eslint-plugin-promise": "^4.2.1",
107-
"eslint-plugin-react": "^7.20.6",
108-
"eslint-plugin-react-hooks": "^4.1.1",
107+
"eslint-plugin-react": "^7.21.3",
108+
"eslint-plugin-react-hooks": "^4.1.2",
109109
"eslint-plugin-sonarjs": "^0.5.0",
110-
"htmlparser2": "^4.1.0",
110+
"htmlparser2": "^5.0.0",
111111
"husky": "^4.3.0",
112-
"jest": "^26.4.2",
112+
"jest": "^26.5.0",
113113
"node-sass": "^4.14.1",
114114
"node-sass-import": "^2.0.1",
115-
"postcss": "^7.0.32",
116-
"postcss-loader": "^4.0.1",
117-
"prettier": "^2.1.1",
115+
"postcss": "^8.1.1",
116+
"postcss-loader": "^4.0.3",
117+
"prettier": "^2.1.2",
118118
"react-styleguidist": "^11.1.0",
119119
"react-test-renderer": "^16.13.1",
120-
"rollup": "^2.26.11",
120+
"rollup": "^2.28.2",
121121
"rollup-plugin-commonjs": "^10.1.0",
122122
"rollup-plugin-copy": "^3.3.0",
123123
"rollup-plugin-copy-glob": "^0.3.1",
124124
"rollup-plugin-insert": "^1.3.1",
125125
"rollup-plugin-node-globals": "^1.4.0",
126126
"rollup-plugin-peer-deps-external": "^2.2.3",
127-
"rollup-plugin-scss": "^2.6.0",
127+
"rollup-plugin-scss": "^2.6.1",
128128
"rollup-plugin-terser": "^7.0.2",
129129
"rollup-plugin-url": "^3.0.1",
130130
"rollup-plugin-visualizer": "^4.1.1",
131-
"sass": "^1.26.10",
131+
"sass": "^1.26.11",
132132
"sass-loader": "^10.0.2",
133-
"stream-chat": "^2.4.0",
134-
"style-loader": "^1.2.1",
135-
"stylelint": "^13.7.0",
133+
"stream-chat": "^2.5.0",
134+
"style-loader": "^1.3.0",
135+
"stylelint": "^13.7.2",
136136
"stylelint-config-recommended-scss": "^4.2.0",
137137
"stylelint-config-standard": "^20.0.0",
138138
"stylelint-scss": "^3.18.0",
139-
"typescript": "^4.0.2",
139+
"typescript": "^4.0.3",
140140
"url-loader": "^4.1.0",
141-
"webpack": "4.44.1",
141+
"webpack": "4.44.2",
142142
"webpack-cli": "^3.3.12",
143143
"webpack-dev-server": "~3.11.0"
144144
},
@@ -181,6 +181,9 @@
181181
"block-no-empty": null
182182
}
183183
},
184+
"resolutions": {
185+
"ast-types": "^0.14.0"
186+
},
184187
"browserslist": [
185188
">0.2%",
186189
"not ie <= 11",

src/components/Chat/Chat.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,14 @@ const Chat = ({
5252
const clientMutes = client?.user?.mutes;
5353

5454
useEffect(() => {
55+
if (!client) return;
5556
const userAgent = client.getUserAgent();
5657
if (!userAgent.includes('stream-chat-react')) {
5758
// should result in something like:
5859
// 'stream-chat-react-2.3.2-stream-chat-javascript-client-browser-2.2.2'
5960
client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
6061
}
61-
// don't want client in dep array because it is a required
62-
// prop for this component and we only want this run on mount
63-
// eslint-disable-next-line react-hooks/exhaustive-deps
64-
}, []);
62+
}, [client]);
6563

6664
useEffect(() => {
6765
setMutes(clientMutes || []);

types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ import { ScrollSeekConfiguration } from 'react-virtuoso/dist/engines/scrollSeekE
1313

1414
export type Mute = Client.Mute<StreamChatReactUserType>;
1515
export type AnyType = Record<string, any>;
16-
export type StreamChatReactUserType = {
16+
export type StreamChatReactUserType = AnyType & {
1717
status?: string;
1818
image?: string;
1919
mutes?: Array<Mute>;
2020
};
21-
export type StreamChatReactChannelType = {
21+
export type StreamChatReactChannelType = AnyType & {
2222
image?: string;
2323
subtitle?: string;
2424
member_count?: number;
2525
};
26-
export type StreamChatMessageType = {
26+
export type StreamChatMessageType = AnyType & {
2727
event?: Client.Event<
2828
AnyType,
2929
StreamChatReactChannelType,

0 commit comments

Comments
 (0)