tuikit-atomicx-vue3 3.4.1 → 3.4.2

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 (84) hide show
  1. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  2. package/dist/components/BarrageInput/TextEditor/EditorCore.js +2 -2
  3. package/dist/components/CoHostPanel/BattlePanel.js +16 -16
  4. package/dist/components/CoHostPanel/CoHostPanel.js +60 -55
  5. package/dist/components/CoHostPanel/ConnectionPanel.js +42 -42
  6. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.js +1 -1
  7. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.js +56 -49
  8. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.js +1 -1
  9. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.js +1 -1
  10. package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.js +7 -7
  11. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.js +16 -16
  12. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.js +15 -15
  13. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.js +1 -1
  14. package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +1 -0
  15. package/dist/components/{LiveCoreView → LiveView}/i18n/en-US/index.js +2 -1
  16. package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +1 -0
  17. package/dist/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.js +2 -1
  18. package/dist/components/LiveView/index.d.ts +79 -0
  19. package/dist/components/{LiveCoreView → LiveView}/index.js +44 -42
  20. package/dist/components/MessageInput/TextEditor/EditorCore.js +2 -2
  21. package/dist/components/StreamMixer/index.js +6 -6
  22. package/dist/{index-D-KJvDvy.js → index-Bm-QfV5o.js} +1 -1
  23. package/dist/{index-D88ja_7_.js → index-D2OVtqc8.js} +1705 -1705
  24. package/dist/index.js +140 -138
  25. package/dist/rtc/index.d.ts +2 -39
  26. package/dist/rtc/index.js +49 -48
  27. package/dist/states/BattleState.js +48 -48
  28. package/dist/styles/index.css +1 -1
  29. package/package.json +2 -2
  30. package/src/components/CoHostPanel/BattlePanel.vue +3 -3
  31. package/src/components/CoHostPanel/CoHostPanel.vue +11 -3
  32. package/src/components/CoHostPanel/ConnectionPanel.vue +4 -4
  33. package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue +28 -29
  34. package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +1 -0
  35. package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +1 -0
  36. package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
  37. package/src/components/{LiveCoreView → LiveView}/index.vue +1 -1
  38. package/src/components/StreamMixer/index.vue +1 -1
  39. package/src/rtc/index.ts +2 -2
  40. package/dist/components/LiveCoreView/index.d.ts +0 -4
  41. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue.d.ts +0 -0
  42. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue.d.ts +0 -0
  43. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue.d.ts +0 -0
  44. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +0 -0
  45. /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
  46. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +0 -0
  47. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue.d.ts +0 -0
  48. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
  49. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +0 -0
  50. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.js +0 -0
  51. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
  52. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.js +0 -0
  53. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
  54. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.js +0 -0
  55. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +0 -0
  56. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.js +0 -0
  57. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
  58. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.js +0 -0
  59. /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
  60. /package/dist/components/{LiveCoreView → LiveView}/i18n/index.js +0 -0
  61. /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
  62. /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue +0 -0
  63. /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue +0 -0
  64. /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue +0 -0
  65. /package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +0 -0
  66. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +0 -0
  67. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue +0 -0
  68. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
  69. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +0 -0
  70. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +0 -0
  71. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
  72. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
  73. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +0 -0
  74. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
  75. /package/src/components/{LiveCoreView → LiveView}/assets/img/defeat.png +0 -0
  76. /package/src/components/{LiveCoreView → LiveView}/assets/img/draw.png +0 -0
  77. /package/src/components/{LiveCoreView → LiveView}/assets/img/victory.png +0 -0
  78. /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleOrdinaryBadge.svg +0 -0
  79. /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleTopBadge.svg +0 -0
  80. /package/src/components/{LiveCoreView → LiveView}/assets/svg/blueBkg.svg +0 -0
  81. /package/src/components/{LiveCoreView → LiveView}/assets/svg/redBkg.svg +0 -0
  82. /package/src/components/{LiveCoreView → LiveView}/assets/svg/s.svg +0 -0
  83. /package/src/components/{LiveCoreView → LiveView}/assets/svg/v.svg +0 -0
  84. /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
@@ -1,66 +1,73 @@
1
- import { defineComponent as I, ref as S, computed as m, onMounted as U, onUnmounted as V, createElementBlock as n, createCommentVNode as B, openBlock as s, Fragment as D, renderList as C, normalizeStyle as G, createElementVNode as i, normalizeClass as M, unref as p, toDisplayString as w } from "vue";
2
- import { useBattleState as T } from "../../../states/BattleState.js";
3
- import { useLiveState as Z } from "../../../states/LiveState/index.js";
4
- import { TUILiveBattleManagerEvents as c } from "@tencentcloud/tuiroom-engine-js";
1
+ import { defineComponent as S, ref as U, computed as g, watch as V, createElementBlock as l, createCommentVNode as m, openBlock as a, Fragment as L, renderList as D, normalizeStyle as C, unref as o, toDisplayString as p, createElementVNode as d, normalizeClass as E } from "vue";
2
+ import { useBattleState as G } from "../../../states/BattleState.js";
3
+ import { useLiveState as k } from "../../../states/LiveState/index.js";
4
+ import { useUIKit as M } from "@tencentcloud/uikit-base-component-vue3";
5
+ import { useCoHostState as T } from "../../../states/CoHostState/CoHostState.js";
5
6
  import { CoHostLayoutTemplate as y } from "../../../types/coHost.js";
6
- import { _ as k } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
7
- const z = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_18421_20177)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200.70166L14.9282%204.52622V12.1753L8%2015.9999L1.0718%2012.1753V4.52622L8%200.70166Z'%20fill='%23EF6428'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L14.9282%203.82456V11.4737L8%2015.2982L1.0718%2011.4737V3.82456L8%200Z'%20fill='url(%23paint0_linear_18421_20177)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99957%201.69971L13.3882%204.67437V10.6237L7.99957%2013.5983L2.61096%2010.6237V4.67437L7.99957%201.69971Z'%20fill='%23FFD37A'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_18421_20177'%20x1='0'%20y1='0'%20x2='0'%20y2='15.2982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFAE5F'/%3e%3cstop%20offset='1'%20stop-color='%23FF8C3C'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_18421_20177'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_18421_20178)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200.69458L14.9282%204.48401V12.0629L8%2015.8523L1.0718%2012.0629V4.48401L8%200.69458Z'%20fill='%237D9AC6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L14.9282%203.78943V11.3683L8%2015.1577L1.0718%2011.3683V3.78943L8%200Z'%20fill='url(%23paint0_linear_18421_20178)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99957%201.68311L13.3882%204.63044V10.5251L7.99957%2013.4724L2.61096%2010.5251V4.63044L7.99957%201.68311Z'%20fill='url(%23paint1_linear_18421_20178)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_18421_20178'%20x1='0'%20y1='0'%20x2='0'%20y2='15.1577'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E6F1FE'/%3e%3cstop%20offset='1'%20stop-color='%23B7C6E2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_18421_20178'%20x1='1.77734'%20y1='1.68311'%20x2='1.77734'%20y2='13.4724'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EDF6FF'/%3e%3cstop%20offset='1'%20stop-color='%23E1F0FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_18421_20178'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", P = {
7
+ import { _ as Z } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const z = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_18421_20177)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200.70166L14.9282%204.52622V12.1753L8%2015.9999L1.0718%2012.1753V4.52622L8%200.70166Z'%20fill='%23EF6428'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L14.9282%203.82456V11.4737L8%2015.2982L1.0718%2011.4737V3.82456L8%200Z'%20fill='url(%23paint0_linear_18421_20177)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99957%201.69971L13.3882%204.67437V10.6237L7.99957%2013.5983L2.61096%2010.6237V4.67437L7.99957%201.69971Z'%20fill='%23FFD37A'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_18421_20177'%20x1='0'%20y1='0'%20x2='0'%20y2='15.2982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFAE5F'/%3e%3cstop%20offset='1'%20stop-color='%23FF8C3C'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_18421_20177'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_18421_20178)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200.69458L14.9282%204.48401V12.0629L8%2015.8523L1.0718%2012.0629V4.48401L8%200.69458Z'%20fill='%237D9AC6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L14.9282%203.78943V11.3683L8%2015.1577L1.0718%2011.3683V3.78943L8%200Z'%20fill='url(%23paint0_linear_18421_20178)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99957%201.68311L13.3882%204.63044V10.5251L7.99957%2013.4724L2.61096%2010.5251V4.63044L7.99957%201.68311Z'%20fill='url(%23paint1_linear_18421_20178)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_18421_20178'%20x1='0'%20y1='0'%20x2='0'%20y2='15.1577'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E6F1FE'/%3e%3cstop%20offset='1'%20stop-color='%23B7C6E2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_18421_20178'%20x1='1.77734'%20y1='1.68311'%20x2='1.77734'%20y2='13.4724'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EDF6FF'/%3e%3cstop%20offset='1'%20stop-color='%23E1F0FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_18421_20178'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", H = {
8
9
  key: 0,
9
10
  class: "battle-user-decorate-container"
10
- }, A = {
11
+ }, P = {
11
12
  key: 0,
12
13
  class: "battle-decorate"
13
- }, H = ["src"], R = { class: "battle-level" }, W = { class: "battle-score-value" }, N = /* @__PURE__ */ I({
14
+ }, A = {
15
+ key: 0,
16
+ class: "battle-score-value"
17
+ }, R = ["src"], W = { class: "battle-level" }, N = { class: "battle-score-value" }, K = /* @__PURE__ */ S({
14
18
  __name: "BattleUserDecorate",
15
19
  props: {
16
20
  seatListWithRealSize: {}
17
21
  },
18
22
  setup(f) {
19
- const b = f, { currentLive: v } = Z(), { battleUsers: F, battleScore: d, subscribeEvent: h, unsubscribeEvent: _ } = T(), u = S(!1), x = m(() => {
20
- var o, l;
21
- const t = ((o = v.value) == null ? void 0 : o.layoutTemplate) === y.HostDynamicGrid && F.value.length > 2, r = ((l = v.value) == null ? void 0 : l.layoutTemplate) === y.HostDynamic1v6, e = t || r;
22
- return b.seatListWithRealSize.length > 0 && u.value && e;
23
- }), E = m(() => [...d.value.values()].sort((t, r) => r - t));
24
- function a(t) {
25
- return E.value.indexOf(d.value.get(t) || 0) + 1;
26
- }
27
- function g() {
28
- u.value = !0;
29
- }
30
- function L() {
31
- setTimeout(() => {
32
- u.value = !1;
33
- }, 5e3);
23
+ const { t: w } = M(), I = f, { currentLive: v } = k(), { connected: b } = T(), { currentBattleInfo: B, battleScore: s } = G(), u = U(!1), F = g(() => {
24
+ var c, r;
25
+ const e = ((c = v.value) == null ? void 0 : c.layoutTemplate) === y.HostDynamicGrid, n = ((r = v.value) == null ? void 0 : r.layoutTemplate) === y.HostDynamic1v6, t = e || n;
26
+ return I.seatListWithRealSize.length > 0 && u.value && t && b.value.length > 2;
27
+ }), x = g(() => [...s.value.values()].sort((e, n) => n - e));
28
+ function i(e) {
29
+ return x.value.indexOf(s.value.get(e) || 0) + 1;
34
30
  }
35
- return U(() => {
36
- h(c.onBattleStarted, g), h(c.onBattleEnded, L);
37
- }), V(() => {
38
- _(c.onBattleStarted, g), _(c.onBattleEnded, L);
39
- }), (t, r) => x.value ? (s(), n("div", P, [
40
- (s(!0), n(D, null, C(f.seatListWithRealSize, (e, o) => {
41
- var l;
42
- return s(), n("div", {
43
- key: `seat-${o}`,
44
- style: G(e.region)
31
+ let _ = null;
32
+ return V(() => {
33
+ var e;
34
+ return (e = B.value) == null ? void 0 : e.battleId;
35
+ }, (e) => {
36
+ if (e != null)
37
+ u.value = !0;
38
+ else {
39
+ if (_) return;
40
+ _ = setTimeout(() => {
41
+ u.value = !1;
42
+ }, 5e3);
43
+ }
44
+ }, { immediate: !0 }), (e, n) => F.value ? (a(), l("div", H, [
45
+ (a(!0), l(L, null, D(f.seatListWithRealSize, (t, c) => {
46
+ var r, h;
47
+ return a(), l("div", {
48
+ key: `seat-${c}`,
49
+ style: C(t.region)
45
50
  }, [
46
- a(e.userInfo.userId) > 0 ? (s(), n("div", A, [
47
- i("div", {
48
- class: M(["battle-badge-container", a(e.userInfo.userId) === 1 ? "top-badge" : "ordinary-badge"])
49
- }, [
50
- i("img", {
51
- src: a(e.userInfo.userId) === 1 ? p(z) : p(O),
52
- alt: "battle-badge",
53
- class: "battle-badge"
54
- }, null, 8, H),
55
- i("span", R, w(a(e.userInfo.userId)), 1)
56
- ], 2),
57
- i("span", W, w(((l = p(d)) == null ? void 0 : l.get(e.userInfo.userId)) || 0), 1)
58
- ])) : B("", !0)
51
+ i(t.userInfo.userId) > 0 ? (a(), l("div", P, [
52
+ (r = o(s)) != null && r.has(t.userInfo.userId) ? (a(), l(L, { key: 1 }, [
53
+ d("div", {
54
+ class: E(["battle-badge-container", i(t.userInfo.userId) === 1 ? "top-badge" : "ordinary-badge"])
55
+ }, [
56
+ d("img", {
57
+ src: i(t.userInfo.userId) === 1 ? o(z) : o(O),
58
+ alt: "battle-badge",
59
+ class: "battle-badge"
60
+ }, null, 8, R),
61
+ d("span", W, p(i(t.userInfo.userId)), 1)
62
+ ], 2),
63
+ d("span", N, p(((h = o(s)) == null ? void 0 : h.get(t.userInfo.userId)) || 0), 1)
64
+ ], 64)) : (a(), l("span", A, p(o(w)("Connecting")), 1))
65
+ ])) : m("", !0)
59
66
  ], 4);
60
67
  }), 128))
61
- ])) : B("", !0);
68
+ ])) : m("", !0);
62
69
  }
63
- }), X = /* @__PURE__ */ k(N, [["__scopeId", "data-v-643ef0a9"]]);
70
+ }), ee = /* @__PURE__ */ Z(K, [["__scopeId", "data-v-0a9bc14e"]]);
64
71
  export {
65
- X as default
72
+ ee as default
66
73
  };
@@ -48,7 +48,7 @@ const M = {
48
48
  ])) : T("", !0);
49
49
  };
50
50
  }
51
- }), J = /* @__PURE__ */ E(b, [["__scopeId", "data-v-d6dae3fa"]]);
51
+ }), J = /* @__PURE__ */ E(b, [["__scopeId", "data-v-673defc5"]]);
52
52
  export {
53
53
  J as default
54
54
  };
@@ -29,7 +29,7 @@ const S = {
29
29
  ], 4)) : u("", !0)
30
30
  ], 64));
31
31
  }
32
- }), D = /* @__PURE__ */ z(W, [["__scopeId", "data-v-bd899db7"]]);
32
+ }), D = /* @__PURE__ */ z(W, [["__scopeId", "data-v-666d0e70"]]);
33
33
  export {
34
34
  D as default
35
35
  };
@@ -35,7 +35,7 @@ const q = { class: "stream-cover" }, J = {
35
35
  width: parseInt(e == null ? void 0 : e.region.width),
36
36
  height: parseInt(e == null ? void 0 : e.region.height)
37
37
  } : { width: 0, height: 0 };
38
- }), b = u(() => {
38
+ }), A = u(() => {
39
39
  const t = Math.min(g.value.width, g.value.height);
40
40
  return t < 64 ? t - 10 : 54;
41
41
  }), f = u(() => {
@@ -44,8 +44,8 @@ const q = { class: "stream-cover" }, J = {
44
44
  return ((n = t.userInfo) == null ? void 0 : n.userId) === ((s = a.userInfo) == null ? void 0 : s.userId);
45
45
  });
46
46
  return e ? a.streamViewInfoList.filter((t) => {
47
- const n = t.region.zIndex > (e == null ? void 0 : e.region.zIndex), s = parseInt(t.region.left) > parseInt(e == null ? void 0 : e.region.left) && parseInt(t.region.left) < parseInt(e == null ? void 0 : e.region.left) + parseInt(e == null ? void 0 : e.region.width), L = parseInt(t.region.top) > parseInt(e == null ? void 0 : e.region.top) && parseInt(t.region.top) < parseInt(e == null ? void 0 : e.region.top) + parseInt(e == null ? void 0 : e.region.height);
48
- return n && s && L;
47
+ const n = t.region.zIndex > (e == null ? void 0 : e.region.zIndex), s = parseInt(t.region.left) > parseInt(e == null ? void 0 : e.region.left) && parseInt(t.region.left) < parseInt(e == null ? void 0 : e.region.left) + parseInt(e == null ? void 0 : e.region.width), b = parseInt(t.region.top) > parseInt(e == null ? void 0 : e.region.top) && parseInt(t.region.top) < parseInt(e == null ? void 0 : e.region.top) + parseInt(e == null ? void 0 : e.region.height);
48
+ return n && s && b;
49
49
  }).map((t) => ({
50
50
  left: parseInt(t.region.left) - parseInt(e == null ? void 0 : e.region.left),
51
51
  top: parseInt(t.region.top) - parseInt(e == null ? void 0 : e.region.top),
@@ -75,13 +75,13 @@ const q = { class: "stream-cover" }, J = {
75
75
  }), _ = u(() => {
76
76
  var e;
77
77
  return ((e = a.userInfo) == null ? void 0 : e.microphoneStatus) === k.On;
78
- }), A = u(() => {
78
+ }), L = u(() => {
79
79
  var e;
80
80
  return ((e = a.userInfo) == null ? void 0 : e.cameraStatus) === k.On;
81
81
  });
82
82
  return (e, t) => (o(), r("div", q, [
83
83
  d.userInfo.userId ? (o(), r(B, { key: 0 }, [
84
- A.value ? v("", !0) : (o(), r("div", J, [
84
+ L.value ? v("", !0) : (o(), r("div", J, [
85
85
  f.value.length > 0 ? (o(), r("canvas", {
86
86
  key: 0,
87
87
  ref_key: "canvasRef",
@@ -90,7 +90,7 @@ const q = { class: "stream-cover" }, J = {
90
90
  }, null, 512)) : (o(), r("div", P)),
91
91
  D(l(w), {
92
92
  class: "avatar",
93
- size: b.value,
93
+ size: A.value,
94
94
  src: d.userInfo.avatarUrl,
95
95
  alt: m.value
96
96
  }, null, 8, ["size", "src", "alt"])
@@ -118,7 +118,7 @@ const q = { class: "stream-cover" }, J = {
118
118
  ]))
119
119
  ]));
120
120
  }
121
- }), le = /* @__PURE__ */ j(S, [["__scopeId", "data-v-9237082b"]]);
121
+ }), le = /* @__PURE__ */ j(S, [["__scopeId", "data-v-0e1033e9"]]);
122
122
  export {
123
123
  le as default
124
124
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as K, ref as v, computed as y, onUnmounted as N, createElementBlock as j, openBlock as g, normalizeStyle as C, createElementVNode as n, withDirectives as q, unref as S, createBlock as D, normalizeClass as J, toDisplayString as Q, vShow as W, toRaw as X } from "vue";
1
+ import { defineComponent as K, ref as v, computed as y, onUnmounted as N, createElementBlock as j, openBlock as C, normalizeStyle as _, createElementVNode as n, withDirectives as q, unref as S, createBlock as D, normalizeClass as J, toDisplayString as Q, vShow as W, toRaw as X } from "vue";
2
2
  import { useUIKit as Z, IconSpeakerOff as ee, IconSpeakerOn as oe } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import { isMobile as r } from "../../../utils/env.js";
4
4
  import { _ as te } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
@@ -10,15 +10,15 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
10
10
  },
11
11
  emits: ["volume-change", "muted-change"],
12
12
  setup(T, { emit: w }) {
13
- const o = T, m = w, { t: _ } = Z(), t = v({
13
+ const o = T, m = w, { t: V } = Z(), t = v({
14
14
  current: 1,
15
15
  previous: 1
16
- }), u = v(!1), l = v(!1), a = v(!1), V = v(), s = v(null), E = {
16
+ }), u = v(!1), l = v(!1), a = v(!1), E = v(), s = v(null), b = {
17
17
  PC: 500,
18
18
  // 0.5 seconds for PC
19
19
  MOBILE: 3e3
20
20
  // 3 seconds for mobile
21
- }, b = y(() => o.enableVolumeControl === !1 ? u.value ? 0 : 100 : Math.round(t.value.current * 100)), z = y(() => ({
21
+ }, g = y(() => o.enableVolumeControl === !1 ? u.value ? 0 : 100 : Math.round(t.value.current * 100)), z = y(() => ({
22
22
  width: `${o.iconSize || 20}px`,
23
23
  height: `${o.iconSize || 20}px`
24
24
  })), A = (e) => {
@@ -29,7 +29,7 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
29
29
  o.enableVolumeControl === !1 ? M() : r ? (l.value = !l.value, l.value ? i() : d()) : M();
30
30
  }, i = () => {
31
31
  d();
32
- const e = r ? E.MOBILE : E.PC;
32
+ const e = r ? b.MOBILE : b.PC;
33
33
  s.value = window.setTimeout(() => {
34
34
  o.enableVolumeControl && (l.value = !1);
35
35
  }, e);
@@ -53,7 +53,7 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
53
53
  e.preventDefault();
54
54
  let c;
55
55
  e instanceof MouseEvent ? c = e.clientY : c = e.touches[0].clientY;
56
- const p = O(c, V.value);
56
+ const p = O(c, E.value);
57
57
  A(p);
58
58
  }, h = () => {
59
59
  a.value = !1, o.enableVolumeControl && l.value && i(), L();
@@ -70,21 +70,21 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
70
70
  };
71
71
  return N(() => {
72
72
  L(), s.value && clearTimeout(s.value);
73
- }), (e, c) => (g(), j("div", {
73
+ }), (e, c) => (C(), j("div", {
74
74
  class: "audio-control",
75
- style: C(z.value),
75
+ style: _(z.value),
76
76
  onMouseenter: B,
77
77
  onMouseleave: x
78
78
  }, [
79
79
  n("span", {
80
80
  class: "control-btn volume-btn",
81
- title: u.value ? S(_)("Unmute") : S(_)("Mute"),
81
+ title: u.value ? S(V)("Unmute") : S(V)("Mute"),
82
82
  onClick: I
83
83
  }, [
84
- u.value ? (g(), D(S(ee), {
84
+ u.value ? (C(), D(S(ee), {
85
85
  key: 0,
86
86
  size: "20"
87
- })) : (g(), D(S(oe), {
87
+ })) : (C(), D(S(oe), {
88
88
  key: 1,
89
89
  size: "20"
90
90
  }))
@@ -98,7 +98,7 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
98
98
  n("div", ue, [
99
99
  n("div", {
100
100
  ref_key: "volumeSliderElement",
101
- ref: V,
101
+ ref: E,
102
102
  class: "custom-volume-slider",
103
103
  onMousedown: H,
104
104
  onTouchstart: P,
@@ -107,23 +107,23 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
107
107
  n("div", re, [
108
108
  n("div", {
109
109
  class: "slider-progress",
110
- style: C({ height: `${b.value}%` })
110
+ style: _({ height: `${g.value}%` })
111
111
  }, null, 4),
112
112
  n("div", {
113
113
  class: J(["slider-thumb", { "no-transition": a.value }]),
114
- style: C({ bottom: `${b.value}%` })
114
+ style: _({ bottom: `${g.value}%` })
115
115
  }, null, 6)
116
116
  ])
117
117
  ], 544)
118
118
  ]),
119
- n("div", ae, Q(b.value), 1)
119
+ n("div", ae, Q(g.value), 1)
120
120
  ], 32)
121
121
  ], 512), [
122
122
  [W, l.value]
123
123
  ])
124
124
  ], 36));
125
125
  }
126
- }), de = /* @__PURE__ */ te(se, [["__scopeId", "data-v-22bb0b88"]]);
126
+ }), de = /* @__PURE__ */ te(se, [["__scopeId", "data-v-4dd002d9"]]);
127
127
  export {
128
128
  de as default
129
129
  };
@@ -1,21 +1,21 @@
1
- import { defineComponent as w, ref as g, onMounted as y, watch as I, withDirectives as f, createCommentVNode as L, unref as t, createElementBlock as d, openBlock as p, createElementVNode as v, Fragment as S, renderList as M, toDisplayString as _, vShow as b } from "vue";
2
- import { useUIKit as x } from "@tencentcloud/uikit-base-component-vue3";
3
- import N from "../../../directives/vClickOutside.js";
4
- import { useLiveState as V } from "../../../states/LiveState/index.js";
5
- import { usePlayerControlState as B, Resolution as n } from "./PlayerControlState.js";
6
- import { _ as D } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
7
- const E = {
1
+ import { defineComponent as w, ref as g, onMounted as y, watch as I, withDirectives as f, createCommentVNode as L, unref as t, createElementBlock as d, openBlock as p, createElementVNode as v, Fragment as S, renderList as M, toDisplayString as _, vShow as x } from "vue";
2
+ import { useUIKit as N } from "@tencentcloud/uikit-base-component-vue3";
3
+ import V from "../../../directives/vClickOutside.js";
4
+ import { useLiveState as B } from "../../../states/LiveState/index.js";
5
+ import { usePlayerControlState as D, Resolution as n } from "./PlayerControlState.js";
6
+ import { _ as E } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const O = {
8
8
  key: 0,
9
9
  class: "multi-resolution"
10
- }, O = ["data-resolution"], z = /* @__PURE__ */ w({
10
+ }, b = ["data-resolution"], z = /* @__PURE__ */ w({
11
11
  __name: "MultiResolution",
12
12
  setup(F) {
13
- const { t: l } = x(), { currentLive: a } = V(), {
13
+ const { t: l } = N(), { currentLive: a } = B(), {
14
14
  resolutionList: s,
15
15
  currentResolution: r,
16
16
  switchResolution: h,
17
17
  initializeResolution: R
18
- } = B(), u = {
18
+ } = D(), u = {
19
19
  [n.R360P]: "360P",
20
20
  [n.R540P]: "540P",
21
21
  [n.R720P]: "720P",
@@ -51,7 +51,7 @@ const E = {
51
51
  immediate: !0
52
52
  }
53
53
  );
54
- }), (e, c) => t(s).length > 0 ? f((p(), d("span", E, [
54
+ }), (e, c) => t(s).length > 0 ? f((p(), d("span", O, [
55
55
  f(v("span", {
56
56
  class: "multi-resolution-list",
57
57
  onClick: P
@@ -60,19 +60,19 @@ const E = {
60
60
  key: o,
61
61
  class: "multi-resolution-item",
62
62
  "data-resolution": o
63
- }, _(t(l)(u[o])), 9, O))), 128))
63
+ }, _(t(l)(u[o])), 9, b))), 128))
64
64
  ], 512), [
65
- [b, i.value]
65
+ [x, i.value]
66
66
  ]),
67
67
  v("span", {
68
68
  class: "current-resolution",
69
69
  onClick: C
70
70
  }, _(t(r) ? t(l)(u[t(r)]) : t(s).length > 0 ? t(l)(u[t(s)[0]]) : ""), 1)
71
71
  ])), [
72
- [t(N), k]
72
+ [t(V), k]
73
73
  ]) : L("", !0);
74
74
  }
75
- }), H = /* @__PURE__ */ D(z, [["__scopeId", "data-v-7fa16bb5"]]);
75
+ }), H = /* @__PURE__ */ E(z, [["__scopeId", "data-v-013ca8f7"]]);
76
76
  export {
77
77
  H as default
78
78
  };
@@ -162,7 +162,7 @@ const ye = { class: "control-buttons" }, Ee = ["title"], Te = { class: "right-co
162
162
  _: 1
163
163
  }));
164
164
  }
165
- }), Re = /* @__PURE__ */ Pe(ge, [["__scopeId", "data-v-307287f1"]]);
165
+ }), Re = /* @__PURE__ */ Pe(ge, [["__scopeId", "data-v-a2e1bd41"]]);
166
166
  export {
167
167
  Re as default
168
168
  };
@@ -16,4 +16,5 @@ export declare const resource: {
16
16
  '540P': string;
17
17
  '720P': string;
18
18
  '1080P': string;
19
+ Connecting: string;
19
20
  };
@@ -15,7 +15,8 @@ const e = {
15
15
  "360P": "360P",
16
16
  "540P": "540P",
17
17
  "720P": "720P",
18
- "1080P": "1080P"
18
+ "1080P": "1080P",
19
+ Connecting: "Connecting"
19
20
  };
20
21
  export {
21
22
  e as resource
@@ -16,4 +16,5 @@ export declare const resource: {
16
16
  '540P': string;
17
17
  '720P': string;
18
18
  '1080P': string;
19
+ Connecting: string;
19
20
  };
@@ -15,7 +15,8 @@ const e = {
15
15
  "360P": "低清",
16
16
  "540P": "标清",
17
17
  "720P": "高清",
18
- "1080P": "超清"
18
+ "1080P": "超清",
19
+ Connecting: "连线中"
19
20
  };
20
21
  export {
21
22
  e as resource
@@ -0,0 +1,79 @@
1
+ import { default as DefaultStreamViewUI } from './DefaultStreamViewUI.vue';
2
+
3
+ declare const LiveCoreView: {
4
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
5
+ P: {};
6
+ B: {};
7
+ D: {};
8
+ C: {};
9
+ M: {};
10
+ Defaults: {};
11
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
12
+ __isFragment?: never;
13
+ __isTeleport?: never;
14
+ __isSuspense?: never;
15
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
16
+ $slots: {
17
+ streamViewUI?(_: {
18
+ userInfo: import('../..').SeatUserInfo;
19
+ }): any;
20
+ localVideo?(_: {
21
+ style: {
22
+ position: "absolute";
23
+ left: string;
24
+ top: string;
25
+ width: string;
26
+ height: string;
27
+ transform: string;
28
+ zIndex: number;
29
+ } | {
30
+ position: "absolute";
31
+ left: string;
32
+ top: string;
33
+ width: string;
34
+ height: string;
35
+ zIndex: number;
36
+ transform?: undefined;
37
+ } | undefined;
38
+ }): any;
39
+ };
40
+ });
41
+ declare const LiveView: {
42
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
43
+ P: {};
44
+ B: {};
45
+ D: {};
46
+ C: {};
47
+ M: {};
48
+ Defaults: {};
49
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
50
+ __isFragment?: never;
51
+ __isTeleport?: never;
52
+ __isSuspense?: never;
53
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
54
+ $slots: {
55
+ streamViewUI?(_: {
56
+ userInfo: import('../..').SeatUserInfo;
57
+ }): any;
58
+ localVideo?(_: {
59
+ style: {
60
+ position: "absolute";
61
+ left: string;
62
+ top: string;
63
+ width: string;
64
+ height: string;
65
+ transform: string;
66
+ zIndex: number;
67
+ } | {
68
+ position: "absolute";
69
+ left: string;
70
+ top: string;
71
+ width: string;
72
+ height: string;
73
+ zIndex: number;
74
+ transform?: undefined;
75
+ } | undefined;
76
+ }): any;
77
+ };
78
+ });
79
+ export { LiveCoreView, LiveView, DefaultStreamViewUI };