@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/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +3 -3
- package/dist/ui-sdk.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/components/wt-headline/wt-headline.vue +1 -0
- package/src/components/wt-headline-nav/wt-headline-nav.vue +1 -2
- package/src/locale/en/en.js +11 -0
- package/src/locale/ru/ru.js +11 -0
- package/src/locale/ua/ua.js +11 -0
- package/src/modules/Notifications/store/NotificationsStoreModule.js +4 -3
package/package.json
CHANGED
package/src/locale/en/en.js
CHANGED
|
@@ -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: {
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -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: {
|
package/src/locale/ua/ua.js
CHANGED
|
@@ -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
|
}
|