@webitel/ui-sdk 25.12.40 → 25.12.41

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 (27) hide show
  1. package/dist/{install-DGNb9nVr.js → install-B4Nk3OEz.js} +63 -58
  2. package/dist/{plyr-ByorDhcr.js → plyr-KaDfMO3z.js} +1 -1
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +541 -541
  6. package/dist/{vidstack-Bq6c3Bam-D5KBuWRZ.js → vidstack-Bq6c3Bam-wTVq5dCD.js} +2 -2
  7. package/dist/{vidstack-D2pY00kU-Ws1Jvjkb.js → vidstack-D2pY00kU-BDY1tl0N.js} +2 -2
  8. package/dist/{vidstack-DDXt6fpN-CMGNnPQV.js → vidstack-DDXt6fpN-DFzqLOOW.js} +1 -1
  9. package/dist/{vidstack-D_-9AA6_-DLAWXBQ4.js → vidstack-D_-9AA6_-Doy3hgnN.js} +1 -1
  10. package/dist/{vidstack-DqAw8m9J-BPmv6sOh.js → vidstack-DqAw8m9J-CF8Kjm2j.js} +1 -1
  11. package/dist/{vidstack-audio-BIY4ys0T.js → vidstack-audio-CP2NCp0l.js} +2 -2
  12. package/dist/{vidstack-dash-HCChLXEY.js → vidstack-dash-D2mGrqE7.js} +3 -3
  13. package/dist/{vidstack-google-cast-Be_1pOC-.js → vidstack-google-cast-Buijkdak.js} +3 -3
  14. package/dist/{vidstack-hls-BbnSLJID.js → vidstack-hls-CmjSG0jl.js} +3 -3
  15. package/dist/{vidstack-video-Dxw2U6Fe.js → vidstack-video-1yX47WpZ.js} +2 -2
  16. package/dist/{vidstack-vimeo-G_rdpj4P.js → vidstack-vimeo-CHLHywMZ.js} +3 -3
  17. package/dist/{vidstack-youtube-Csh5czsD.js → vidstack-youtube-DT3G83C6.js} +2 -2
  18. package/dist/{vuex.esm-bundler-VVqVSpHV.js → vuex.esm-bundler-GW6Qg-nV.js} +1 -1
  19. package/package.json +2 -2
  20. package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +4 -3
  21. package/src/components/wt-vidstack-player/components/panels/media-controls-panel/media-controls-panel.vue +4 -0
  22. package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +4 -1
  23. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +27 -7
  24. package/src/modules/CallSession/modules/VideoCall/video-call.vue +73 -68
  25. package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +2 -1
  26. package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +2 -1
  27. package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +19 -1
@@ -57503,7 +57503,7 @@ const uge = /* @__PURE__ */ Ze(dge, [["render", pge], ["__scopeId", "data-v-9b7e
57503
57503
  }, l = o, s = n, d = sb(), p = Re(!1), u = Re(null);
57504
57504
  (async () => {
57505
57505
  try {
57506
- const w = await import("./vuex.esm-bundler-VVqVSpHV.js");
57506
+ const w = await import("./vuex.esm-bundler-GW6Qg-nV.js");
57507
57507
  u.value = w.useStore();
57508
57508
  } catch {
57509
57509
  u.value = null;
@@ -66117,7 +66117,7 @@ const fwe = /* @__PURE__ */ Ze(lwe, [["render", uwe], ["__scopeId", "data-v-d8a8
66117
66117
  "fullscreen"
66118
66118
  ], n = this.hideDuration ? o.filter((a) => a !== "duration") : o;
66119
66119
  this.download && n.push("download");
66120
- const i = (await import("./plyr-ByorDhcr.js")).default;
66120
+ const i = (await import("./plyr-KaDfMO3z.js")).default;
66121
66121
  this.player = new i(this.$refs.player, {
66122
66122
  autoplay: this.autoplay,
66123
66123
  loadSprite: !1,
@@ -76661,7 +76661,7 @@ class ZAe {
76661
76661
  return "audio";
76662
76662
  }
76663
76663
  async load(n) {
76664
- return new (await import("./vidstack-audio-BIY4ys0T.js")).AudioProvider(this.target, n);
76664
+ return new (await import("./vidstack-audio-CP2NCp0l.js")).AudioProvider(this.target, n);
76665
76665
  }
76666
76666
  }
76667
76667
  class DC {
@@ -76676,7 +76676,7 @@ class DC {
76676
76676
  return "video";
76677
76677
  }
76678
76678
  async load(n) {
76679
- return new (await import("./vidstack-video-Dxw2U6Fe.js")).VideoProvider(this.target, n);
76679
+ return new (await import("./vidstack-video-1yX47WpZ.js")).VideoProvider(this.target, n);
76680
76680
  }
76681
76681
  }
76682
76682
  const P3 = class P3 extends DC {
@@ -76688,7 +76688,7 @@ const P3 = class P3 extends DC {
76688
76688
  return P3.supported && ih(i);
76689
76689
  }
76690
76690
  async load(i) {
76691
- return new (await import("./vidstack-hls-BbnSLJID.js")).HLSProvider(this.target, i);
76691
+ return new (await import("./vidstack-hls-CmjSG0jl.js")).HLSProvider(this.target, i);
76692
76692
  }
76693
76693
  };
76694
76694
  Q(P3, "supported", AC());
@@ -76702,7 +76702,7 @@ const B3 = class B3 extends DC {
76702
76702
  return B3.supported && TC(i);
76703
76703
  }
76704
76704
  async load(i) {
76705
- return new (await import("./vidstack-dash-HCChLXEY.js")).DASHProvider(this.target, i);
76705
+ return new (await import("./vidstack-dash-D2mGrqE7.js")).DASHProvider(this.target, i);
76706
76706
  }
76707
76707
  };
76708
76708
  Q(B3, "supported", HSe());
@@ -76728,7 +76728,7 @@ class XAe {
76728
76728
  return "video";
76729
76729
  }
76730
76730
  async load(n) {
76731
- return new (await import("./vidstack-vimeo-G_rdpj4P.js")).VimeoProvider(this.target, n);
76731
+ return new (await import("./vidstack-vimeo-CHLHywMZ.js")).VimeoProvider(this.target, n);
76732
76732
  }
76733
76733
  async loadPoster(n, i, a) {
76734
76734
  const { resolveVimeoVideoId: l, getVimeoVideoInfo: s } = await import("./vidstack-krOAtKMi-B4IZWKdc.js");
@@ -76762,7 +76762,7 @@ class QAe {
76762
76762
  return "video";
76763
76763
  }
76764
76764
  async load(n) {
76765
- return new (await import("./vidstack-youtube-Csh5czsD.js")).YouTubeProvider(this.target, n);
76765
+ return new (await import("./vidstack-youtube-DT3G83C6.js")).YouTubeProvider(this.target, n);
76766
76766
  }
76767
76767
  async loadPoster(n, i, a) {
76768
76768
  const { findYouTubePoster: l, resolveYouTubeVideoId: s } = await import("./vidstack-Dm1xEU9Q-qSXq3AI-.js"), d = Ft(n.src) && s(n.src);
@@ -77182,7 +77182,7 @@ class nTe extends Fp {
77182
77182
  throw s.code = "CAST_NOT_AVAILABLE", s;
77183
77183
  }
77184
77184
  if (ah("https://www.gstatic.com"), !v(this, Dc)) {
77185
- const s = await import("./vidstack-D2pY00kU-Ws1Jvjkb.js").then((d) => d.v);
77185
+ const s = await import("./vidstack-D2pY00kU-BDY1tl0N.js").then((d) => d.v);
77186
77186
  Y(this, Dc, new s.GoogleCastLoader());
77187
77187
  }
77188
77188
  await v(this, Dc).prompt(v(this, Dl)), i && v(this, Rt).queue.enqueue("media-google-cast-request", i);
@@ -78903,7 +78903,7 @@ Pl = new WeakMap(), ti = new WeakMap(), Fi = new WeakMap(), pl = new WeakSet(),
78903
78903
  if ((a = v(this, ti)) != null && a.classList.contains("vds-google-cast"))
78904
78904
  return v(this, ti);
78905
78905
  const i = document.createElement("div");
78906
- return i.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-DLAWXBQ4.js").then(({ insertContent: l }) => {
78906
+ return i.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-Doy3hgnN.js").then(({ insertContent: l }) => {
78907
78907
  l(i, v(this, Pl).$state);
78908
78908
  }), i;
78909
78909
  }, Q(XM, "tagName", "media-provider");
@@ -83329,57 +83329,58 @@ const pEe = /* @__PURE__ */ Bt({
83329
83329
  },
83330
83330
  emits: ["close"],
83331
83331
  setup(o, { emit: n }) {
83332
- const { size: i, changeSize: a } = Vf("size"), l = o, s = n, d = (b) => {
83333
- b ? i.value !== Xt.LG && a(Xt.LG) : i.value === Xt.LG && (u(), a(Xt.SM));
83334
- }, p = () => {
83335
- i.value === Xt.SM ? a(Xt.MD) : i.value === Xt.MD ? a(Xt.SM) : i.value === Xt.LG && (u(), a(Xt.MD));
83332
+ const { size: i, fullscreen: a, changeSize: l } = Vf("size"), s = o, d = n, p = (g) => {
83333
+ g ? i.value !== Xt.LG && (a.value = !0, l(Xt.LG)) : i.value === Xt.LG && (h(), a.value = !1, l(Xt.SM));
83336
83334
  }, u = () => {
83335
+ i.value === Xt.SM ? l(Xt.MD) : i.value === Xt.MD ? l(Xt.SM) : i.value === Xt.LG && (h(), a.value = !1, l(Xt.MD));
83336
+ }, h = () => {
83337
83337
  document.fullscreenElement && document.exitFullscreen();
83338
- }, h = (b) => {
83339
- b.key === "Escape" && d(!1);
83338
+ }, b = (g) => {
83339
+ g.key === "Escape" && p(!1);
83340
83340
  };
83341
83341
  return Go(() => {
83342
83342
  document.addEventListener("fullscreenchange", () => {
83343
- document.fullscreenElement || d(!1);
83343
+ document.fullscreenElement || p(!1);
83344
83344
  }), lb(() => {
83345
- document.removeEventListener("keyup", h);
83345
+ document.removeEventListener("keyup", b);
83346
83346
  });
83347
- }), (b, g) => (k(), L("media-controls-group", {
83347
+ }), (g, y) => (k(), L("media-controls-group", {
83348
83348
  class: Ie(["video-display-panel controls-group", `video-display-panel--${ae(i)}`])
83349
83349
  }, [
83350
83350
  U("div", bEe, [
83351
- l.username ? (k(), J(n$, {
83351
+ s.username ? (k(), J(n$, {
83352
83352
  key: 0,
83353
- username: l.username,
83353
+ username: s.username,
83354
83354
  size: "sm",
83355
83355
  class: "video-display-panel__avatar"
83356
83356
  }, null, 8, ["username"])) : F("", !0),
83357
- U("span", gEe, Se(l.title || l.username), 1)
83357
+ U("span", gEe, Se(s.title || s.username), 1)
83358
83358
  ]),
83359
83359
  U("div", yEe, [
83360
- ke(uEe, { onToggle: d }),
83360
+ ke(uEe, { onToggle: p }),
83361
83361
  ke(mEe, {
83362
83362
  "primary-icon": "expand",
83363
83363
  "secondary-icon": "collapse",
83364
83364
  color: "on-dark",
83365
- onToggle: p
83365
+ onToggle: u
83366
83366
  }),
83367
- l.closable ? (k(), J(kp, {
83367
+ s.closable ? (k(), J(kp, {
83368
83368
  key: 0,
83369
83369
  icon: "close",
83370
83370
  color: "on-dark",
83371
- onClick: g[0] || (g[0] = (y) => s("close"))
83371
+ onClick: y[0] || (y[0] = (w) => d("close"))
83372
83372
  })) : F("", !0)
83373
83373
  ])
83374
83374
  ], 2));
83375
83375
  }
83376
- }), wEe = /* @__PURE__ */ Ze(vEe, [["__scopeId", "data-v-ebf08d1a"]]), CEe = /* @__PURE__ */ Bt({
83376
+ }), wEe = /* @__PURE__ */ Ze(vEe, [["__scopeId", "data-v-36942ac3"]]), CEe = /* @__PURE__ */ Bt({
83377
83377
  __name: "video-layout",
83378
83378
  props: {
83379
83379
  title: {},
83380
83380
  username: {},
83381
83381
  closable: { type: Boolean },
83382
- hideDisplayPanel: { type: Boolean }
83382
+ hideHeader: { type: Boolean },
83383
+ hideControlsPanel: { type: Boolean }
83383
83384
  },
83384
83385
  emits: ["close-player", "close-session", "make-screenshot", "toggle-record"],
83385
83386
  setup(o, { emit: n }) {
@@ -83388,7 +83389,7 @@ const pEe = /* @__PURE__ */ Bt({
83388
83389
  class: Ie(["video-layout controls", `video-layout--${ae(i)}`])
83389
83390
  }, [
83390
83391
  ke(wEe, {
83391
- class: Ie({ "video-display-panel--hidden": a.hideDisplayPanel }),
83392
+ class: Ie({ "video-display-panel--hidden": a.hideHeader }),
83392
83393
  title: a.title,
83393
83394
  username: a.username,
83394
83395
  closable: a.closable,
@@ -83397,12 +83398,12 @@ const pEe = /* @__PURE__ */ Bt({
83397
83398
  U("media-controls-group", null, [
83398
83399
  Z(s.$slots, "content", {}, void 0, !0)
83399
83400
  ]),
83400
- Z(s.$slots, "controls-panel", {}, () => [
83401
+ a.hideControlsPanel ? F("", !0) : Z(s.$slots, "controls-panel", { key: 0 }, () => [
83401
83402
  d[1] || (d[1] = U("media-controls-panel", null, null, -1))
83402
83403
  ], !0)
83403
83404
  ], 2));
83404
83405
  }
83405
- }), kEe = /* @__PURE__ */ Ze(CEe, [["__scopeId", "data-v-13983d76"]]), xEe = ["src", "autoplay", "muted"], IEe = /* @__PURE__ */ Bt({
83406
+ }), kEe = /* @__PURE__ */ Ze(CEe, [["__scopeId", "data-v-38ab9df6"]]), xEe = ["src", "autoplay", "muted"], IEe = /* @__PURE__ */ Bt({
83406
83407
  __name: "wt-vidstack-player",
83407
83408
  props: {
83408
83409
  src: {},
@@ -83416,32 +83417,34 @@ const pEe = /* @__PURE__ */ Bt({
83416
83417
  static: { type: Boolean, default: !1 },
83417
83418
  stream: {},
83418
83419
  size: {},
83419
- hideDisplayPanel: { type: Boolean },
83420
+ hideHeader: { type: Boolean },
83421
+ hideControlsPanel: { type: Boolean },
83420
83422
  hideBackground: { type: Boolean }
83421
83423
  },
83422
83424
  emits: ["close", "change-size"],
83423
83425
  setup(o, { emit: n }) {
83424
- const i = o, a = n, l = ts("player"), s = Re(i.size || Xt.SM), d = (h) => {
83425
- s.value = h;
83426
+ const i = o, a = n, l = ts("player"), s = Re(i.size || Xt.SM), d = Re(!1), p = (b) => {
83427
+ s.value = b;
83426
83428
  };
83427
- XH("size", { size: s, changeSize: d });
83428
- const p = ye(() => {
83429
+ XH("size", { size: s, fullscreen: d, changeSize: p });
83430
+ const u = ye(() => {
83429
83431
  if (i.mime) return i.mime;
83430
83432
  if (typeof i.src == "string") {
83431
83433
  if (i.src.includes("media") || i.src.includes("mp3")) return "audio/mp3";
83432
83434
  if (i.src.includes("ogg") || i.src.includes("oga")) return "audio/ogg";
83433
83435
  }
83434
83436
  return "video/mp4";
83435
- }), u = ye(() => {
83436
- var h, b;
83437
- return i.stream ? { src: i.stream, type: "video/object" } : typeof i.src == "string" ? { src: i.src, type: p.value } : {
83438
- src: ((h = i.src) == null ? void 0 : h.src) || "",
83439
- type: ((b = i.src) == null ? void 0 : b.type) || p.value
83437
+ }), h = ye(() => {
83438
+ var b, g;
83439
+ return i.stream ? { src: i.stream, type: "video/object" } : typeof i.src == "string" ? { src: i.src, type: u.value } : {
83440
+ src: ((b = i.src) == null ? void 0 : b.src) || "",
83441
+ type: ((g = i.src) == null ? void 0 : g.type) || u.value
83440
83442
  };
83441
83443
  });
83442
- return (h, b) => (k(), L("div", {
83444
+ return (b, g) => (k(), L("div", {
83443
83445
  class: Ie(["wt-vidstack-player", [
83444
- i.resizable && `wt-vidstack-player--${s.value}`,
83446
+ `wt-vidstack-player--${s.value}`,
83447
+ d.value && "wt-vidstack-player--fullscreen",
83445
83448
  i.static && "wt-vidstack-player--static",
83446
83449
  i.hideBackground && "wt-vidstack-player--hide-background"
83447
83450
  ]])
@@ -83449,37 +83452,37 @@ const pEe = /* @__PURE__ */ Bt({
83449
83452
  U("media-player", {
83450
83453
  ref_key: "player",
83451
83454
  ref: l,
83452
- src: u.value,
83455
+ src: h.value,
83453
83456
  autoplay: i.autoplay,
83454
83457
  muted: i.muted,
83455
83458
  class: "wt-vidstack-player__player",
83456
83459
  "cross-origin": "",
83457
83460
  "plays-inline": "",
83458
- onClose: b[1] || (b[1] = (g) => a("close")),
83459
- onChangeSize: d
83461
+ onClose: g[1] || (g[1] = (y) => a("close")),
83462
+ onChangeSize: p
83460
83463
  }, [
83461
- b[2] || (b[2] = U("media-provider", { class: "wt-vidstack-player__provider" }, null, -1)),
83462
- i.resizable ? (k(), J(ae(kEe), {
83463
- key: 0,
83464
- "hide-display-panel": i.hideDisplayPanel,
83464
+ g[2] || (g[2] = U("media-provider", { class: "wt-vidstack-player__provider" }, null, -1)),
83465
+ ke(ae(kEe), {
83466
+ "hide-header": i.hideHeader,
83467
+ "hide-controls-panel": i.hideControlsPanel,
83465
83468
  closable: i.closable,
83466
83469
  autoplay: i.autoplay,
83467
83470
  title: i.title,
83468
83471
  username: i.username,
83469
- onClosePlayer: b[0] || (b[0] = (g) => a("close"))
83472
+ onClosePlayer: g[0] || (g[0] = (y) => a("close"))
83470
83473
  }, {
83471
83474
  "controls-panel": re(() => [
83472
- Z(h.$slots, "controls-panel", { size: s.value }, void 0, !0)
83475
+ Z(b.$slots, "controls-panel", { size: s.value }, void 0, !0)
83473
83476
  ]),
83474
83477
  content: re(() => [
83475
- Z(h.$slots, "content", { size: s.value }, void 0, !0)
83478
+ Z(b.$slots, "content", { size: s.value }, void 0, !0)
83476
83479
  ]),
83477
83480
  _: 3
83478
- }, 8, ["hide-display-panel", "closable", "autoplay", "title", "username"])) : F("", !0)
83481
+ }, 8, ["hide-header", "hide-controls-panel", "closable", "autoplay", "title", "username"])
83479
83482
  ], 40, xEe)
83480
83483
  ], 2));
83481
83484
  }
83482
- }), SEe = /* @__PURE__ */ Ze(IEe, [["__scopeId", "data-v-21276592"]]), GE = {
83485
+ }), SEe = /* @__PURE__ */ Ze(IEe, [["__scopeId", "data-v-b64a3f5e"]]), GE = {
83483
83486
  WtActionBar: m5e,
83484
83487
  WtImage: g$,
83485
83488
  WtEmpty: C6e,
@@ -111267,7 +111270,9 @@ const hXe = {
111267
111270
  sm: {
111268
111271
  borderRadius: "{border-radius.lg}",
111269
111272
  width: "256px",
111270
- height: "201px"
111273
+ height: "201px",
111274
+ aspectRatio: 256 / 201
111275
+ // aspect ratio of width / height, need for css
111271
111276
  },
111272
111277
  md: {
111273
111278
  borderRadius: "{border-radius.xl}",
@@ -111275,7 +111280,7 @@ const hXe = {
111275
111280
  height: "494px"
111276
111281
  },
111277
111282
  lg: {
111278
- borderRadius: "{border-radius.none}",
111283
+ borderRadius: "{border-radius.xl}",
111279
111284
  width: "100%",
111280
111285
  height: "100%"
111281
111286
  }
@@ -111292,7 +111297,7 @@ const hXe = {
111292
111297
  gap: "1rem"
111293
111298
  },
111294
111299
  lg: {
111295
- borderRadius: "{border-radius.none}",
111300
+ borderRadius: "{border-radius.xl}",
111296
111301
  padding: "1rem",
111297
111302
  gap: "1rem"
111298
111303
  }
@@ -1,7 +1,7 @@
1
1
  var gt = Object.defineProperty;
2
2
  var bt = (e, t, i) => t in e ? gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
3
  var m = (e, t, i) => bt(e, typeof t != "symbol" ? t + "" : t, i);
4
- import { g as yt } from "./install-DGNb9nVr.js";
4
+ import { g as yt } from "./install-B4Nk3OEz.js";
5
5
  function wt(e, t) {
6
6
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
7
7
  }