@webitel/ui-chats 26.12.4 → 26.12.5
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/package.json +1 -1
- package/src/adapters/chat-web-sdk/__tests__/toChatMessage.spec.ts +58 -0
- package/src/adapters/chat-web-sdk/toChatMessage.ts +3 -2
- package/src/shared/scripts/__tests__/isSafeAttachmentUrl.spec.ts +13 -0
- package/src/shared/scripts/isSafeAttachmentUrl.ts +18 -0
- package/src/ui/image-viewer/__tests__/image-viewer.spec.ts +28 -0
- package/src/ui/image-viewer/image-viewer.vue +7 -2
- package/src/ui/messaging/modules/message/components/details/__tests__/details.spec.ts +130 -0
- package/src/ui/messaging/modules/message/components/details/chat-message-document.vue +7 -2
- package/src/ui/messaging/modules/message/components/details/chat-message-image.vue +5 -1
- package/src/ui/messaging/modules/message/components/details/chat-message-player.vue +3 -1
- package/src/v2/scripts/__tests__/attachments.spec.ts +71 -0
- package/src/v2/scripts/attachments.ts +13 -4
- package/src/v2/ui/chat-history/__tests__/chat-history.spec.ts +31 -0
- package/src/v2/ui/chat-history/chat-history.vue +5 -1
- package/src/v2/ui/chat-history/components/__tests__/message-attachments.spec.ts +73 -0
- package/src/v2/ui/chat-history/components/message-attachments.vue +22 -7
- package/types/.tsbuildinfo +1 -1
- package/types/shared/scripts/isSafeAttachmentUrl.d.ts +4 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const isSafeAttachmentUrl: (url?: string | null) => url is string;
|
|
2
|
+
export declare const toSafeAttachmentUrl: (url?: string | null) => string | undefined;
|
|
3
|
+
export declare const isPlayableAttachmentUrl: (url?: string | null) => url is string;
|
|
4
|
+
export declare const toPlayableAttachmentUrl: (url?: string | null) => string | undefined;
|