stream-chat-react 13.13.5 → 13.13.6
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/components/Chat/hooks/useChat.js +1 -1
- package/dist/experimental/index.browser.cjs.map +2 -2
- package/dist/experimental/index.node.cjs.map +2 -2
- package/dist/i18n/utils.js +4 -2
- package/dist/index.browser.cjs +2 -2
- package/dist/index.browser.cjs.map +2 -2
- package/dist/index.node.cjs +2 -2
- package/dist/index.node.cjs.map +2 -2
- package/dist/plugins/Emojis/index.browser.cjs.map +2 -2
- package/dist/plugins/Emojis/index.node.cjs.map +2 -2
- package/package.json +1 -1
package/dist/index.node.cjs
CHANGED
|
@@ -1466,7 +1466,7 @@ function getDateString({
|
|
|
1466
1466
|
}
|
|
1467
1467
|
var predefinedFormatters = {
|
|
1468
1468
|
durationFormatter: (streamI18n) => (value, _, { format, withSuffix }) => {
|
|
1469
|
-
if (format &&
|
|
1469
|
+
if (format && import_dayjs.default.isDayjs(streamI18n.DateTimeParser)) {
|
|
1470
1470
|
return streamI18n.DateTimeParser.duration(value).format(
|
|
1471
1471
|
format
|
|
1472
1472
|
);
|
|
@@ -39289,7 +39289,7 @@ var useChat = ({
|
|
|
39289
39289
|
};
|
|
39290
39290
|
(0, import_react289.useEffect)(() => {
|
|
39291
39291
|
if (!client) return;
|
|
39292
|
-
const version = "13.13.
|
|
39292
|
+
const version = "13.13.6";
|
|
39293
39293
|
const userAgent = client.getUserAgent();
|
|
39294
39294
|
if (!userAgent.includes("stream-chat-react")) {
|
|
39295
39295
|
client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
|