@webitel/ui-sdk 24.8.4 → 24.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.8.4",
3
+ "version": "24.8.6",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -35,6 +35,7 @@ export default {
35
35
  min-height: var(--headline-min-height);
36
36
  border-radius: var(--border-radius);
37
37
  background: var(--wt-headline-background-color);
38
+ gap: var(--headline-nav-gap);
38
39
  }
39
40
 
40
41
  .wt-headline__title {
@@ -99,8 +99,7 @@ const props = defineProps({
99
99
  }
100
100
 
101
101
  .wt-headline-nav__title {
102
- overflow: hidden;
103
- text-overflow: ellipsis;
102
+ word-break: break-word;
104
103
  }
105
104
  }
106
105
  </style>
@@ -5,6 +5,8 @@ import {
5
5
  ChannelType,
6
6
  EngineRoutingSchemaType,
7
7
  } from 'webitel-sdk';
8
+ import ChatGatewayProvider
9
+ from '../../enums/ChatGatewayProvider/ChatGatewayProvider.enum.js';
8
10
  import QueueType from '../../enums/QueueType/QueueType.enum.js';
9
11
  import AdminSections
10
12
  from '../../enums/WebitelApplications/AdminSections.enum.js';
@@ -148,6 +150,15 @@ export default {
148
150
  [EngineRoutingSchemaType.Processing]: 'Forms',
149
151
  },
150
152
  },
153
+ messengers: {
154
+ [ChatGatewayProvider.TELEGRAM_BOT]: 'Telegram Bot',
155
+ [ChatGatewayProvider.TELEGRAM_APP]: 'Telegram App',
156
+ [ChatGatewayProvider.MESSENGER]: 'Meta',
157
+ [ChatGatewayProvider.VIBER]: 'Viber',
158
+ [ChatGatewayProvider.WEBCHAT]: 'Web chat',
159
+ [ChatGatewayProvider.INFOBIP]: 'Infobip',
160
+ [ChatGatewayProvider.CUSTOM]: 'Custom Chat Gateway',
161
+ },
151
162
  },
152
163
  channel: {
153
164
  state: {
@@ -5,6 +5,8 @@ import {
5
5
  ChannelType,
6
6
  EngineRoutingSchemaType,
7
7
  } from 'webitel-sdk';
8
+ import ChatGatewayProvider
9
+ from '../../enums/ChatGatewayProvider/ChatGatewayProvider.enum.js';
8
10
  import QueueType from '../../enums/QueueType/QueueType.enum.js';
9
11
  import AdminSections
10
12
  from '../../enums/WebitelApplications/AdminSections.enum.js';
@@ -147,6 +149,15 @@ export default {
147
149
  [EngineRoutingSchemaType.Processing]: 'Формы',
148
150
  },
149
151
  },
152
+ messengers: {
153
+ [ChatGatewayProvider.TELEGRAM_BOT]: 'Telegram Бот',
154
+ [ChatGatewayProvider.TELEGRAM_APP]: 'Telegram Приложение',
155
+ [ChatGatewayProvider.MESSENGER]: 'Meta',
156
+ [ChatGatewayProvider.VIBER]: 'Viber',
157
+ [ChatGatewayProvider.WEBCHAT]: 'Web chat',
158
+ [ChatGatewayProvider.INFOBIP]: 'Infobip',
159
+ [ChatGatewayProvider.CUSTOM]: 'Custom Chat Gateway',
160
+ },
150
161
  },
151
162
  channel: {
152
163
  state: {
@@ -5,6 +5,8 @@ import {
5
5
  ChannelType,
6
6
  EngineRoutingSchemaType,
7
7
  } from 'webitel-sdk';
8
+ import ChatGatewayProvider
9
+ from '../../enums/ChatGatewayProvider/ChatGatewayProvider.enum.js';
8
10
  import QueueType from '../../enums/QueueType/QueueType.enum.js';
9
11
  import AdminSections
10
12
  from '../../enums/WebitelApplications/AdminSections.enum.js';
@@ -147,6 +149,15 @@ export default {
147
149
  [EngineRoutingSchemaType.Processing]: 'Форми',
148
150
  },
149
151
  },
152
+ messengers: {
153
+ [ChatGatewayProvider.TELEGRAM_BOT]: 'Telegram Бот',
154
+ [ChatGatewayProvider.TELEGRAM_APP]: 'Telegram Застосунок',
155
+ [ChatGatewayProvider.MESSENGER]: 'Meta',
156
+ [ChatGatewayProvider.VIBER]: 'Viber',
157
+ [ChatGatewayProvider.WEBCHAT]: 'Web chat',
158
+ [ChatGatewayProvider.INFOBIP]: 'Infobip',
159
+ [ChatGatewayProvider.CUSTOM]: 'Custom Chat Gateway',
160
+ },
150
161
  },
151
162
  channel: {
152
163
  state: {
@@ -40,6 +40,7 @@ export default class NotificationsStoreModule extends BaseStoreModule {
40
40
  broadcastChannel: null, // in order to reset the tab title with unread number
41
41
  unreadCount: 0,
42
42
  currentlyPlaying: false,
43
+ isHangupSoundAllowed: false, // for prevent pause() of all sounds after end call
43
44
  };
44
45
 
45
46
  getters = {
@@ -121,9 +122,6 @@ export default class NotificationsStoreModule extends BaseStoreModule {
121
122
  if (context.getters.IS_SOUND_ALLOWED
122
123
  && !localStorage.getItem('wtIsPlaying')
123
124
  ) {
124
- if (action === CallActions.Hangup
125
- && !localStorage.getItem('settings/callEndSound'))
126
- return;
127
125
 
128
126
  const audio = sound instanceof Audio ? sound : new Audio(sound);
129
127
 
@@ -192,5 +190,8 @@ export default class NotificationsStoreModule extends BaseStoreModule {
192
190
  SET_UNREAD_COUNT: (state, count) => {
193
191
  state.unreadCount = count;
194
192
  },
193
+ SET_HANGUP_STATE: (state, value) => {
194
+ state.isHangupSoundAllowed = value;
195
+ },
195
196
  };
196
197
  }