@webitel/ui-sdk 24.10.77 → 24.10.78

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
 
2
2
 
3
+ ## [v24.10.77] - 2024-11-13
4
+ ### :bug: Bug Fixes
5
+ - [`0f67887`](https://github.com/webitel/webitel-ui-sdk/commit/0f67887cd5949e7edf943d79fa1eb0b99be0df15) - fix error with not throw emit from delete-confirmation-popup [WTEL-5522](https://webitel.atlassian.net/browse/WTEL-5522)
6
+
7
+
3
8
  ## [v24.10.76] - 2024-11-13
4
9
  ### :sparkles: New Features
5
10
  - [`c73fefb`](https://github.com/webitel/webitel-ui-sdk/commit/c73fefbd50cd6bd981a49d83700ad7256fd2cdf3) - add composables in docs[WTEL-5282] *(commit by [@Lera24](https://github.com/Lera24))*
@@ -197,3 +202,4 @@
197
202
  [v24.10.74]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.73...v24.10.74
198
203
  [v24.10.75]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.74...v24.10.75
199
204
  [v24.10.76]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.75...v24.10.76
205
+ [v24.10.77]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.76...v24.10.77
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.10.77",
3
+ "version": "24.10.78",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -16,6 +16,7 @@ const contactChatService = new ContactsChatCatalogApiFactory(configuration, '',
16
16
 
17
17
  const getChat = async ({ contactId, chatId }) => {
18
18
  const mergeChatMessagesData = ({ messages, peers }) => {
19
+ if (!messages) return [];
19
20
  return messages.map(({ from, ...message }) => {
20
21
  return {
21
22
  ...message,
@@ -40,6 +41,7 @@ const getChat = async ({ contactId, chatId }) => {
40
41
  const getAllMessages = async (params) => {
41
42
 
42
43
  const mergeMessagesData = ({ messages, peers, chats }) => {
44
+ if (!messages) return [];
43
45
  return messages.map(({ from, chat, ...message }) => {
44
46
  return {
45
47
  ...message,