stream-chat-react 10.0.0-theming-v2.1 → 10.0.0-theming-v2.2
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 +8 -1
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +5 -5
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/AttachmentContainer.d.ts.map +1 -1
- package/dist/components/Attachment/AttachmentContainer.js +2 -1
- package/dist/components/Attachment/utils.d.ts +1 -0
- package/dist/components/Attachment/utils.d.ts.map +1 -1
- package/dist/components/Attachment/utils.js +5 -0
- package/dist/index.cjs.js +8 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -13375,6 +13375,10 @@ var StreamChatReact = (function (exports, React, streamChat, ReactDOM) {
|
|
|
13375
13375
|
return (attachment.mime_type && SUPPORTED_VIDEO_FORMATS.indexOf(attachment.mime_type) !== -1) ||
|
|
13376
13376
|
attachment.type === 'video';
|
|
13377
13377
|
};
|
|
13378
|
+
var isSvgAttachment = function (attachment) {
|
|
13379
|
+
var filename = attachment.fallback || '';
|
|
13380
|
+
return filename.toLowerCase().endsWith('.svg');
|
|
13381
|
+
};
|
|
13378
13382
|
/**
|
|
13379
13383
|
* @deprecated will be removed in the next major release,
|
|
13380
13384
|
* replaced with the proper component equivalent `AttachmentContainer/AttachmentWithinContainer`
|
|
@@ -13397,6 +13401,7 @@ var StreamChatReact = (function (exports, React, streamChat, ReactDOM) {
|
|
|
13397
13401
|
_a["str-chat__message-attachment--".concat(componentType)] = componentType,
|
|
13398
13402
|
_a["str-chat__message-attachment--".concat(attachment === null || attachment === void 0 ? void 0 : attachment.type)] = attachment === null || attachment === void 0 ? void 0 : attachment.type,
|
|
13399
13403
|
_a["str-chat__message-attachment--".concat(componentType, "--").concat(extra)] = componentType && extra,
|
|
13404
|
+
_a['str-chat__message-attachment--svg-image'] = isSvgAttachment(attachment),
|
|
13400
13405
|
_a['str-chat__message-attachment-with-actions'] = extra === 'actions',
|
|
13401
13406
|
_a));
|
|
13402
13407
|
return React__default["default"].createElement("div", { className: classNames }, children);
|
|
@@ -13536,6 +13541,7 @@ var StreamChatReact = (function (exports, React, streamChat, ReactDOM) {
|
|
|
13536
13541
|
_b["str-chat__message-attachment--".concat(componentType)] = componentType,
|
|
13537
13542
|
_b["str-chat__message-attachment--".concat(attachment === null || attachment === void 0 ? void 0 : attachment.type)] = attachment === null || attachment === void 0 ? void 0 : attachment.type,
|
|
13538
13543
|
_b["str-chat__message-attachment--".concat(componentType, "--").concat(extra)] = componentType && extra,
|
|
13544
|
+
_b['str-chat__message-attachment--svg-image'] = isSvgAttachment(attachment),
|
|
13539
13545
|
_b['str-chat__message-attachment-with-actions'] = extra === 'actions',
|
|
13540
13546
|
_b));
|
|
13541
13547
|
return React__default["default"].createElement("div", { className: classNames }, children);
|
|
@@ -49372,7 +49378,7 @@ var StreamChatReact = (function (exports, React, streamChat, ReactDOM) {
|
|
|
49372
49378
|
|
|
49373
49379
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
49374
49380
|
|
|
49375
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version = '10.0.0-theming-v2.
|
|
49381
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version = '10.0.0-theming-v2.2';
|
|
49376
49382
|
|
|
49377
49383
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var useChat = function (_a) {
|
|
49378
49384
|
var _b, _c;
|
|
@@ -69273,6 +69279,7 @@ var StreamChatReact = (function (exports, React, streamChat, ReactDOM) {
|
|
|
69273
69279
|
exports.isNumberOrString = isNumberOrString;
|
|
69274
69280
|
exports.isOnlyEmojis = isOnlyEmojis;
|
|
69275
69281
|
exports.isScrapedContent = isScrapedContent;
|
|
69282
|
+
exports.isSvgAttachment = isSvgAttachment;
|
|
69276
69283
|
exports.isUploadedImage = isUploadedImage;
|
|
69277
69284
|
exports.isUserMuted = isUserMuted;
|
|
69278
69285
|
exports.itTranslations = itTranslations;
|