@webitel/ui-sdk 24.10.77 → 24.10.79

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,16 @@
1
1
 
2
2
 
3
+ ## [v24.10.78] - 2024-11-14
4
+ ### :bug: Bug Fixes
5
+ - [`d3b9b92`](https://github.com/webitel/webitel-ui-sdk/commit/d3b9b927a63f6c06f0c8f817aa2e159db6696ec4) - implimented version [WTEL-5437](https://webitel.atlassian.net/browse/WTEL-5437) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))*
6
+ - [`211dff4`](https://github.com/webitel/webitel-ui-sdk/commit/211dff4a97e1203318982a460178c1de4d32d0a4) - bug with error in chat history api if message underfined [WTEL-5437](https://webitel.atlassian.net/browse/WTEL-5437) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))*
7
+
8
+
9
+ ## [v24.10.77] - 2024-11-13
10
+ ### :bug: Bug Fixes
11
+ - [`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)
12
+
13
+
3
14
  ## [v24.10.76] - 2024-11-13
4
15
  ### :sparkles: New Features
5
16
  - [`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 +208,5 @@
197
208
  [v24.10.74]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.73...v24.10.74
198
209
  [v24.10.75]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.74...v24.10.75
199
210
  [v24.10.76]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.75...v24.10.76
211
+ [v24.10.77]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.76...v24.10.77
212
+ [v24.10.78]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.77...v24.10.78
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.79",
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,
@@ -33,7 +33,7 @@ export const useCardComponent = (params) => {
33
33
  const redirectToEdit = () => {
34
34
  return router.replace({
35
35
  ...route,
36
- params: { id },
36
+ params: { id: id?.value },
37
37
  });
38
38
  };
39
39
 
@@ -46,7 +46,7 @@ export const useCardComponent = (params) => {
46
46
  await updateItem();
47
47
  }
48
48
 
49
- if (id.value) {
49
+ if (id?.value) {
50
50
  await redirectToEdit();
51
51
  }
52
52
  };