@webitel/ui-sdk 26.6.117 → 26.6.119

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 (52) hide show
  1. package/dist/{components-CtLZTAqX.js → components-DkD3WP0T.js} +7 -7
  2. package/dist/ui-sdk.css +1 -1
  3. package/dist/ui-sdk.js +2 -2
  4. package/dist/ui-sdk.umd.cjs +232 -227
  5. package/dist/{wt-button-dC4nOW56.js → wt-button-DwAda_g4.js} +1 -1
  6. package/dist/{wt-chat-emoji-IgDi1RWV.js → wt-chat-emoji-CgJ-4Oal.js} +3 -3
  7. package/dist/{wt-display-chip-items-Cl3pyvc1.js → wt-display-chip-items-Bqo0iQgb.js} +1 -1
  8. package/dist/{wt-icon-y89gRcOs.js → wt-icon-DvONu3WD.js} +1 -0
  9. package/dist/{wt-icon-btn-DYjjSl-C.js → wt-icon-btn-Behnq_SS.js} +1 -1
  10. package/dist/{wt-notifications-bar-DhJxMjNB.js → wt-notifications-bar-CKEWt08-.js} +1 -1
  11. package/dist/{wt-player-Bbirdlj9.js → wt-player-zWCh3Ozp.js} +2 -2
  12. package/dist/{wt-send-message-popup-C9NwnoOr.js → wt-send-message-popup-Dz2RrnWO.js} +1 -1
  13. package/dist/{wt-toast-DXrSMdRm.js → wt-toast-LQxOxrff.js} +1 -1
  14. package/dist/{wt-tree-table-BRokvhkB.js → wt-tree-table-C-UiFrTF.js} +1 -1
  15. package/dist/{wt-type-extension-value-input-DdGlEVxi.js → wt-type-extension-value-input-CLxPbjkA.js} +1 -1
  16. package/dist/{wt-vidstack-player-qtPWzeNH.js → wt-vidstack-player-CpfJc5li.js} +85 -76
  17. package/package.json +1 -1
  18. package/src/assets/icons/sprite/index.ts +2 -0
  19. package/src/assets/icons/sprite/open-pip.svg +5 -0
  20. package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +4 -0
  21. package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +2 -0
  22. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +4 -0
  23. package/src/locale/en/en.js +1 -0
  24. package/src/locale/es/es.js +1 -0
  25. package/src/locale/kz/kz.js +1 -0
  26. package/src/locale/pl/pl.js +1 -0
  27. package/src/locale/ro/ro.js +1 -0
  28. package/src/locale/ru/ru.js +1 -0
  29. package/src/locale/uk/uk.js +1 -0
  30. package/src/locale/uz/uz.js +1 -0
  31. package/src/locale/vi/vi.js +1 -0
  32. package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/useDocumentPiP.ts +3 -3
  33. package/src/modules/CallSession/modules/VideoCall/video-call.vue +10 -30
  34. package/src/modules/Userinfo/types/UserAccess.ts +1 -1
  35. package/types/.tsbuildinfo +1 -1
  36. package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +5 -3
  37. package/types/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue.d.ts +3 -1
  38. package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +6 -4
  39. package/types/locale/en/en.d.ts +1 -0
  40. package/types/locale/es/es.d.ts +1 -0
  41. package/types/locale/i18n.d.ts +9 -0
  42. package/types/locale/index.d.ts +9 -0
  43. package/types/locale/kz/kz.d.ts +1 -0
  44. package/types/locale/pl/pl.d.ts +1 -0
  45. package/types/locale/ro/ro.d.ts +1 -0
  46. package/types/locale/ru/ru.d.ts +1 -0
  47. package/types/locale/uk/uk.d.ts +1 -0
  48. package/types/locale/uz/uz.d.ts +1 -0
  49. package/types/locale/vi/vi.d.ts +1 -0
  50. package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/useDocumentPiP.d.ts +1 -1
  51. package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +4 -4
  52. package/types/modules/Userinfo/types/UserAccess.d.ts +1 -1
@@ -779,6 +779,7 @@ export default deepmerge(
779
779
  service: ({ linked }) => {
780
780
  return linked('cases.service');
781
781
  },
782
+ showEmptyAmdResult: 'Show empty',
782
783
  sla: ({ linked }) => {
783
784
  return linked('cases.appliedSLA');
784
785
  },
@@ -766,6 +766,7 @@ export default {
766
766
  service: ({ linked }) => {
767
767
  return linked('cases.service');
768
768
  },
769
+ showEmptyAmdResult: 'Mostrar vacíos',
769
770
  sla: ({ linked }) => {
770
771
  return linked('cases.appliedSLA');
771
772
  },
@@ -768,6 +768,7 @@ export default {
768
768
  service: ({ linked }) => {
769
769
  return linked('cases.service');
770
770
  },
771
+ showEmptyAmdResult: 'Бос жазбаларды көрсету',
771
772
  sla: ({ linked }) => {
772
773
  return linked('cases.appliedSLA');
773
774
  },
@@ -767,6 +767,7 @@ export default {
767
767
  service: ({ linked }) => {
768
768
  return linked('cases.service');
769
769
  },
770
+ showEmptyAmdResult: 'Pokaż puste',
770
771
  sla: ({ linked }) => {
771
772
  return linked('cases.appliedSLA');
772
773
  },
@@ -772,6 +772,7 @@ export default {
772
772
  service: ({ linked }) => {
773
773
  return linked('cases.service');
774
774
  },
775
+ showEmptyAmdResult: 'Arată goale',
775
776
  sla: ({ linked }) => {
776
777
  return linked('cases.appliedSLA');
777
778
  },
@@ -763,6 +763,7 @@ export default {
763
763
  service: ({ linked }) => {
764
764
  return linked('cases.service');
765
765
  },
766
+ showEmptyAmdResult: 'Показать пустые',
766
767
  sla: ({ linked }) => {
767
768
  return linked('cases.appliedSLA');
768
769
  },
@@ -762,6 +762,7 @@ export default {
762
762
  service: ({ linked }) => {
763
763
  return linked('cases.service');
764
764
  },
765
+ showEmptyAmdResult: 'Показати порожні',
765
766
  sla: ({ linked }) => {
766
767
  return linked('cases.appliedSLA');
767
768
  },
@@ -771,6 +771,7 @@ export default {
771
771
  service: ({ linked }) => {
772
772
  return linked('cases.service');
773
773
  },
774
+ showEmptyAmdResult: "Bo'shlarni ko'rsatish",
774
775
  sla: ({ linked }) => {
775
776
  return linked('cases.appliedSLA');
776
777
  },
@@ -770,6 +770,7 @@ export default {
770
770
  service: ({ linked }) => {
771
771
  return linked('cases.service');
772
772
  },
773
+ showEmptyAmdResult: 'Hiển thị trống',
773
774
  sla: ({ linked }) => {
774
775
  return linked('cases.appliedSLA');
775
776
  },
@@ -14,7 +14,7 @@ export function useDocumentPiP(
14
14
  getElement: () => HTMLElement | null | undefined,
15
15
  ) {
16
16
  const isPiP = ref(false);
17
- const isSupported = computed(() => 'documentPictureInPicture' in window);
17
+ const isPiPSupported = computed(() => 'documentPictureInPicture' in window);
18
18
 
19
19
  let pipWindow: Window | null = null;
20
20
  let movedEl: HTMLElement | null = null;
@@ -85,7 +85,7 @@ export function useDocumentPiP(
85
85
  };
86
86
 
87
87
  const enterPiP = async (width = 480, height = 320) => {
88
- if (!isSupported.value || isPiP.value || isRequestWindowPending) return;
88
+ if (!isPiPSupported.value || isPiP.value || isRequestWindowPending) return;
89
89
 
90
90
  const el = getElement();
91
91
  if (!el) return;
@@ -189,7 +189,7 @@ export function useDocumentPiP(
189
189
 
190
190
  return {
191
191
  isPiP,
192
- isSupported,
192
+ isPiPSupported,
193
193
  enterPiP,
194
194
  exitPiP,
195
195
  armFirstGestureResume,
@@ -17,6 +17,14 @@
17
17
  hide-background
18
18
  @change-size="(payload) => emit('change-size', payload)"
19
19
  >
20
+ <template v-if="isPiPSupported && isPipMode" #display-panel-actions>
21
+ <wt-icon-btn
22
+ color="on-dark"
23
+ icon="open-pip"
24
+ @click="enterPiP()"
25
+ />
26
+ </template>
27
+
20
28
  <template v-if="props['receiver:mic:enabled'] === false || props.hideAvatar" #avatar>
21
29
  <wt-icon
22
30
  v-if="props['receiver:mic:enabled'] === false"
@@ -163,7 +171,7 @@
163
171
  import { WtVidstackPlayer } from '@webitel/ui-sdk/components';
164
172
  import { computed, isRef, onBeforeUnmount, type Ref, ref, watch } from 'vue';
165
173
  import { useI18n } from 'vue-i18n';
166
- import { WtIcon } from '../../../../components';
174
+ import { WtIcon, WtIconBtn } from '../../../../components';
167
175
  import {
168
176
  RecordingIndicator,
169
177
  ScreenshotBox,
@@ -292,7 +300,7 @@ const getVideoCallPlayerHostElement = (): HTMLElement | null => {
292
300
  return exposedElement ?? inst.$el ?? null;
293
301
  };
294
302
 
295
- const { isPiP, enterPiP, onPiPResize } = useDocumentPiP(
303
+ const { isPiP, isPiPSupported, enterPiP, onPiPResize } = useDocumentPiP(
296
304
  getVideoCallPlayerHostElement,
297
305
  );
298
306
 
@@ -455,36 +463,8 @@ watch(
455
463
  },
456
464
  );
457
465
 
458
- /**
459
- * @author @Oleksandr Palionnyi
460
- *
461
- * [WTEL-9414](https://webitel.atlassian.net/browse/WTEL-9414)
462
- *
463
- * Document PiP: call `requestWindow()` only when `mainStream` and a usable player host exist.
464
- * `flush: 'post'` runs after DOM updates so Vidstack / WC upgrade can finish before we read `rootEl`.
465
- * Stop the watcher only once `enterPiP` succeeds (`isPiP`), so gesture/API failures can retry on later ticks.
466
- */
467
- const stopAutoDocumentPiP = watch(
468
- [
469
- mainStream,
470
- playerRef,
471
- ],
472
- async () => {
473
- if (!props.isPipMode) return;
474
- if (!mainStream.value || !playerRef.value || isPiP.value) return;
475
- if (!getVideoCallPlayerHostElement()) return;
476
- await enterPiP();
477
- if (isPiP.value) stopAutoDocumentPiP();
478
- },
479
- {
480
- flush: 'post',
481
- immediate: true,
482
- },
483
- );
484
-
485
466
  onBeforeUnmount(() => {
486
467
  stopHoldTimer();
487
- stopAutoDocumentPiP();
488
468
  });
489
469
 
490
470
  const receiverVideoMutedIconSizes = {
@@ -1,4 +1,4 @@
1
- import { NavigationGuard } from 'vue-router';
1
+ import type { NavigationGuard } from 'vue-router';
2
2
 
3
3
  import type {
4
4
  AdminSections,