@webitel/ui-sdk 26.8.106 → 26.8.108

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.
Files changed (29) hide show
  1. package/dist/{components-CRmvV0ze.js → components-BwnHoOxc.js} +3 -3
  2. package/dist/ui-sdk.css +1 -1
  3. package/dist/ui-sdk.js +1 -1
  4. package/dist/ui-sdk.umd.cjs +381 -381
  5. package/dist/{wt-chat-emoji-DUYgD7x0.js → wt-chat-emoji-YWk_As-i.js} +1 -1
  6. package/dist/{wt-display-chip-items-Dm6I2JFC.js → wt-display-chip-items-CM7ukRbx.js} +1 -1
  7. package/dist/{wt-send-message-popup-afA26_0Q.js → wt-send-message-popup-DpWs6kDO.js} +1 -1
  8. package/dist/{wt-tree-table-DMK0J0Jx.js → wt-tree-table-B24eT18h.js} +75 -58
  9. package/dist/{wt-type-extension-value-input-CEX06xVC.js → wt-type-extension-value-input-B2GxgFE7.js} +1 -1
  10. package/dist/{wt-vidstack-player-1Z1fEhkA.js → wt-vidstack-player-CfRt7lLu.js} +1 -1
  11. package/package.json +7 -2
  12. package/src/components/wt-tree-table-row/__tests__/WtTreeTableRow.spec.js +4 -3
  13. package/src/components/wt-tree-table-row/wt-tree-table-row.vue +45 -2
  14. package/src/locale/en/en.js +3 -5
  15. package/src/locale/es/es.js +3 -5
  16. package/src/locale/kz/kz.js +3 -5
  17. package/src/locale/pl/pl.js +3 -5
  18. package/src/locale/ro/ro.js +3 -5
  19. package/src/locale/ru/ru.js +3 -5
  20. package/src/locale/uk/uk.js +3 -5
  21. package/src/locale/uz/uz.js +3 -5
  22. package/src/locale/vi/vi.js +3 -5
  23. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-activity-type-popup.vue +3 -0
  24. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +15 -2
  25. package/src/modules/AgentStatusSelect/composables/useCCenterModeSwitcher.ts +2 -1
  26. package/src/modules/AgentStatusSelect/index.ts +1 -0
  27. package/types/.tsbuildinfo +1 -1
  28. package/types/modules/AgentStatusSelect/composables/useCCenterModeSwitcher.d.ts +1 -1
  29. package/types/modules/AgentStatusSelect/index.d.ts +1 -0
@@ -89,7 +89,17 @@ const statusSelectKey = ref(0);
89
89
 
90
90
  const isPauseCausePopup = ref(false);
91
91
  const pauseCauses = ref<EngineForAgentPauseCause[]>([]);
92
- const error = ref(null);
92
+
93
+ /** Only the shape this component reads off a rejected status change. */
94
+ type StatusChangeError = {
95
+ response?: {
96
+ data?: {
97
+ id?: string;
98
+ };
99
+ };
100
+ };
101
+
102
+ const error = ref<StatusChangeError | null>(null);
93
103
 
94
104
  const isActivityTypePopup = ref(false);
95
105
 
@@ -167,7 +177,10 @@ async function changeStatus({
167
177
  emit('changed', statusPayload);
168
178
  } catch (err) {
169
179
  statusSelectKey.value++;
170
- if (err?.response?.data?.id === PauseNotAllowedError.id) error.value = err;
180
+ const failure = err as StatusChangeError;
181
+ if (failure?.response?.data?.id === PauseNotAllowedError.id) {
182
+ error.value = failure;
183
+ }
171
184
  throw err;
172
185
  }
173
186
  }
@@ -15,7 +15,8 @@ export const useCCenterModeSwitcher = ({
15
15
  callCenterModeChanging.value = false;
16
16
  }
17
17
 
18
- async function toggleCallCenterMode(value: boolean) {
18
+ // wt-switcher emits `boolean | undefined`; an absent value reads as off
19
+ async function toggleCallCenterMode(value?: boolean) {
19
20
  callCenterModeChanging.value = true;
20
21
  if (value) {
21
22
  if (activityTypes.value.length <= 1) {
@@ -0,0 +1 @@
1
+ export { default as WtCcAgentStatusSelect } from './components/wt-cc-agent-status-select.vue';