@webitel/ui-sdk 26.8.100 → 26.8.102

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": "26.8.100",
3
+ "version": "26.8.102",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -10,7 +10,7 @@
10
10
  @update:model-value="toggleCallCenterMode"
11
11
  />
12
12
  <wt-status-select
13
- :key="status"
13
+ :key="`${status}_${statusSelectKey}`"
14
14
  :status="status"
15
15
  :status-duration="statusDuration"
16
16
  :disabled="disabled"
@@ -85,6 +85,8 @@ const emit = defineEmits<{
85
85
 
86
86
  const { t } = useI18n();
87
87
 
88
+ const statusSelectKey = ref(0);
89
+
88
90
  const isPauseCausePopup = ref(false);
89
91
  const pauseCauses = ref<EngineForAgentPauseCause[]>([]);
90
92
  const error = ref(null);
@@ -109,6 +111,7 @@ function openPauseCausePopup() {
109
111
 
110
112
  function closePauseCausePopup() {
111
113
  isPauseCausePopup.value = false;
114
+ statusSelectKey.value++;
112
115
  }
113
116
 
114
117
  async function loadPauseCauses(): Promise<void> {
@@ -125,6 +128,7 @@ function openActivityTypePopup() {
125
128
  function closeActivityTypePopup() {
126
129
  isActivityTypePopup.value = false;
127
130
  callCenterModeChanging.value = false;
131
+ statusSelectKey.value++;
128
132
  }
129
133
 
130
134
  async function updateStatus({
@@ -162,7 +166,8 @@ async function changeStatus({
162
166
  await updateStatus(statusPayload);
163
167
  emit('changed', statusPayload);
164
168
  } catch (err) {
165
- if (err.response.data.id === PauseNotAllowedError.id) error.value = err;
169
+ statusSelectKey.value++;
170
+ if (err?.response?.data?.id === PauseNotAllowedError.id) error.value = err;
166
171
  throw err;
167
172
  }
168
173
  }
@@ -678,10 +678,6 @@ const senderVideoMutedIconSizes: Partial<Record<ComponentSize, ComponentSize>> =
678
678
  height: 160px;
679
679
  }
680
680
 
681
- .video-call-content-wrapper--sender-portrait .video-call-sender.video-call-sender--lg :deep(video) {
682
- object-fit: cover;
683
- }
684
-
685
681
  .video-call-receiver {
686
682
  color: var(--p-player-wrapper-muted-color);
687
683
  }