vue-parley 5.5.2 → 5.5.4
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/dist/chat.css +143 -159
- package/dist/chunks/{Call-C8hIYIQh.cjs → Call-D2M0rk0G.cjs} +81 -68
- package/dist/chunks/Call-D2M0rk0G.cjs.map +1 -0
- package/dist/chunks/{Call-DcPB_bvV.mjs → Call-DxzJMkU0.mjs} +81 -68
- package/dist/chunks/Call-DxzJMkU0.mjs.map +1 -0
- package/dist/chunks/{index-CjSoVP6o.cjs → index-D0p5jXOm.cjs} +6 -6
- package/dist/chunks/{index-CjSoVP6o.cjs.map → index-D0p5jXOm.cjs.map} +1 -1
- package/dist/chunks/{index-BvbalrIO.mjs → index-DXMGNyzr.mjs} +6 -6
- package/dist/chunks/{index-BvbalrIO.mjs.map → index-DXMGNyzr.mjs.map} +1 -1
- package/dist/chunks/{session-Bg3l7G09.cjs → session-DOwjZWzx.cjs} +5 -4
- package/dist/chunks/{session-LULuwceW.mjs.map → session-DOwjZWzx.cjs.map} +1 -1
- package/dist/chunks/{session-LULuwceW.mjs → session-YVuYT5mi.mjs} +5 -4
- package/dist/chunks/{session-Bg3l7G09.cjs.map → session-YVuYT5mi.mjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/app/components/call/CallStage.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/tokens.d.ts +2 -2
- package/dist/types/app/composables/call/session.d.ts.map +1 -1
- package/dist/types/i18n/locales/index.d.ts +6 -4
- package/dist/types/i18n/locales/index.d.ts.map +1 -1
- package/package.json +12 -13
- package/dist/chunks/Call-C8hIYIQh.cjs.map +0 -1
- package/dist/chunks/Call-DcPB_bvV.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const index = require("./index-
|
|
4
|
+
const index = require("./index-D0p5jXOm.cjs");
|
|
5
5
|
const core = require("@vueuse/core");
|
|
6
6
|
const Button = require("primevue/button");
|
|
7
7
|
const Menu = require("primevue/menu");
|
|
@@ -553,8 +553,8 @@ const tileButton = {
|
|
|
553
553
|
dt: callButtonDt,
|
|
554
554
|
text: false,
|
|
555
555
|
size: "small",
|
|
556
|
-
iconClass: "size-4.5",
|
|
557
|
-
class: "size-9! [@media(hover:none)]:size-11!"
|
|
556
|
+
iconClass: "size-4.5 shrink-0",
|
|
557
|
+
class: "size-9! p-0! [@media(hover:none)]:size-11!"
|
|
558
558
|
};
|
|
559
559
|
const tileActions = "absolute end-2 bottom-2 z-20 flex items-center gap-x-1.5 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 motion-reduce:transition-none [@media(hover:none)]:opacity-100";
|
|
560
560
|
const nameChip = "min-w-0 truncate rounded-md bg-black/60 px-2 py-0.5 text-label-sm text-white backdrop-blur-sm select-none";
|
|
@@ -994,36 +994,40 @@ const _hoisted_11$1 = {
|
|
|
994
994
|
class: "call-avatar call-avatar--large"
|
|
995
995
|
};
|
|
996
996
|
const _hoisted_12$1 = { class: "call-badge call-badge--camera" };
|
|
997
|
-
const _hoisted_13$1 = ["aria-label"
|
|
998
|
-
const _hoisted_14$1 =
|
|
999
|
-
const _hoisted_15$1 = {
|
|
997
|
+
const _hoisted_13$1 = ["aria-label"];
|
|
998
|
+
const _hoisted_14$1 = {
|
|
1000
999
|
key: 2,
|
|
1001
1000
|
class: "call-badge call-badge--center"
|
|
1002
1001
|
};
|
|
1003
|
-
const
|
|
1004
|
-
const
|
|
1005
|
-
const
|
|
1006
|
-
const
|
|
1007
|
-
const
|
|
1008
|
-
const
|
|
1009
|
-
const
|
|
1002
|
+
const _hoisted_15$1 = { class: "call-main-footer" };
|
|
1003
|
+
const _hoisted_16$1 = { class: "call-identity" };
|
|
1004
|
+
const _hoisted_17$1 = ["disabled", "aria-pressed", "aria-busy"];
|
|
1005
|
+
const _hoisted_18$1 = { class: "call-others-title" };
|
|
1006
|
+
const _hoisted_19$1 = { class: "call-avatar" };
|
|
1007
|
+
const _hoisted_20$1 = { class: "call-badge call-badge--tile" };
|
|
1008
|
+
const _hoisted_21$1 = {
|
|
1010
1009
|
key: 2,
|
|
1011
1010
|
class: "call-badge call-badge--center"
|
|
1012
1011
|
};
|
|
1013
|
-
const
|
|
1014
|
-
const
|
|
1015
|
-
const
|
|
1016
|
-
const
|
|
1012
|
+
const _hoisted_22$1 = { class: "call-tile-footer" };
|
|
1013
|
+
const _hoisted_23$1 = { class: "call-name" };
|
|
1014
|
+
const _hoisted_24$1 = ["aria-label", "onClick"];
|
|
1015
|
+
const _hoisted_25$1 = {
|
|
1017
1016
|
class: "call-controls",
|
|
1018
1017
|
role: "toolbar"
|
|
1019
1018
|
};
|
|
1020
|
-
const
|
|
1021
|
-
const
|
|
1022
|
-
const
|
|
1023
|
-
const
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1026
|
-
|
|
1019
|
+
const _hoisted_26$1 = { class: "call-control" };
|
|
1020
|
+
const _hoisted_27$1 = ["aria-label", "aria-pressed"];
|
|
1021
|
+
const _hoisted_28$1 = { class: "call-control" };
|
|
1022
|
+
const _hoisted_29 = ["aria-label", "aria-pressed"];
|
|
1023
|
+
const _hoisted_30 = {
|
|
1024
|
+
key: 0,
|
|
1025
|
+
class: "call-control"
|
|
1026
|
+
};
|
|
1027
|
+
const _hoisted_31 = ["aria-label", "disabled", "data-facing"];
|
|
1028
|
+
const _hoisted_32 = ["aria-label", "aria-pressed", "aria-busy", "disabled"];
|
|
1029
|
+
const _hoisted_33 = { class: "call-control call-control--end" };
|
|
1030
|
+
const _hoisted_34 = ["aria-label"];
|
|
1027
1031
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
1028
1032
|
__name: "CallStage",
|
|
1029
1033
|
props: {
|
|
@@ -1047,7 +1051,6 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1047
1051
|
const participants = vue.computed(() => session.participants.value);
|
|
1048
1052
|
const selfTile = vue.computed(() => participants.value.find((person) => person.isSelf));
|
|
1049
1053
|
const selectedId = vue.ref();
|
|
1050
|
-
const pinnedId = vue.ref();
|
|
1051
1054
|
const manuallySelected = vue.ref(false);
|
|
1052
1055
|
const fallbackId = () => {
|
|
1053
1056
|
var _a, _b, _c;
|
|
@@ -1058,7 +1061,6 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1058
1061
|
() => {
|
|
1059
1062
|
var _a, _b;
|
|
1060
1063
|
const ids = new Set(participants.value.map((person) => person.id));
|
|
1061
|
-
if (pinnedId.value && !ids.has(pinnedId.value)) pinnedId.value = void 0;
|
|
1062
1064
|
const counterpartId = ((_a = participants.value.find((person) => person.id === props.featuredId)) == null ? void 0 : _a.id) ?? ((_b = participants.value.find((person) => !person.isSelf)) == null ? void 0 : _b.id);
|
|
1063
1065
|
if (!selectedId.value || !ids.has(selectedId.value)) {
|
|
1064
1066
|
manuallySelected.value = false;
|
|
@@ -1077,15 +1079,22 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1077
1079
|
});
|
|
1078
1080
|
return [...others].sort((a, b) => Number(b.isSelf) - Number(a.isSelf));
|
|
1079
1081
|
});
|
|
1080
|
-
const
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
const
|
|
1082
|
+
const isFlipping = vue.ref(false);
|
|
1083
|
+
const flipLabel = vue.computed(
|
|
1084
|
+
() => media.facingMode.value === "environment" ? t("chat.call.stage.frontCamera") : t("chat.call.stage.backCamera")
|
|
1085
|
+
);
|
|
1086
|
+
const flip = async () => {
|
|
1087
|
+
if (isFlipping.value) return;
|
|
1088
|
+
isFlipping.value = true;
|
|
1089
|
+
try {
|
|
1090
|
+
await session.flipCamera();
|
|
1091
|
+
} finally {
|
|
1092
|
+
isFlipping.value = false;
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1085
1095
|
const pickMain = (id) => {
|
|
1086
1096
|
manuallySelected.value = true;
|
|
1087
1097
|
selectedId.value = id;
|
|
1088
|
-
if (pinnedId.value) pinnedId.value = id;
|
|
1089
1098
|
};
|
|
1090
1099
|
const isFeatured = (tile) => !!tile && !!props.featuredId && tile.id === props.featuredId;
|
|
1091
1100
|
const streamOf = (tile) => (tile == null ? void 0 : tile.isSelf) ? media.localStream.value : tile == null ? void 0 : tile.camera;
|
|
@@ -1206,19 +1215,6 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1206
1215
|
}, null, 2),
|
|
1207
1216
|
vue.createTextVNode(" " + vue.toDisplayString(cameraOn(mainTile.value) ? vue.unref(t)("chat.call.cameraOn") : vue.unref(t)("chat.call.cameraOff")), 1)
|
|
1208
1217
|
]),
|
|
1209
|
-
vue.createElementVNode("button", {
|
|
1210
|
-
type: "button",
|
|
1211
|
-
class: vue.normalizeClass(["call-pin", isPinned.value && "call-pin--active"]),
|
|
1212
|
-
"aria-label": isPinned.value ? vue.unref(t)("chat.call.stage.unpinMain") : vue.unref(t)("chat.call.stage.pinMain"),
|
|
1213
|
-
"aria-pressed": isPinned.value,
|
|
1214
|
-
"data-testid": "call-stage-pin",
|
|
1215
|
-
onClick: togglePin
|
|
1216
|
-
}, [
|
|
1217
|
-
vue.createVNode(_sfc_main$7, {
|
|
1218
|
-
name: isPinned.value ? "keepOff" : "keep",
|
|
1219
|
-
class: "size-5"
|
|
1220
|
-
}, null, 8, ["name"])
|
|
1221
|
-
], 10, _hoisted_13$1),
|
|
1222
1218
|
vue.createElementVNode("button", {
|
|
1223
1219
|
type: "button",
|
|
1224
1220
|
class: "call-fullscreen",
|
|
@@ -1230,8 +1226,8 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1230
1226
|
name: isExpanded.value ? "fullscreenExit" : "fullscreen",
|
|
1231
1227
|
class: "size-5"
|
|
1232
1228
|
}, null, 8, ["name"])
|
|
1233
|
-
], 8,
|
|
1234
|
-
isDisconnected(mainTile.value) ? (vue.openBlock(), vue.createElementBlock("span",
|
|
1229
|
+
], 8, _hoisted_13$1),
|
|
1230
|
+
isDisconnected(mainTile.value) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$1, [
|
|
1235
1231
|
vue.createVNode(_sfc_main$7, {
|
|
1236
1232
|
name: "refresh",
|
|
1237
1233
|
class: "size-4 animate-spin motion-reduce:animate-none"
|
|
@@ -1245,8 +1241,8 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1245
1241
|
"data-testid": "call-stage-sound",
|
|
1246
1242
|
onClick: _cache[2] || (_cache[2] = ($event) => emit("enableSound"))
|
|
1247
1243
|
}, vue.toDisplayString(vue.unref(t)("chat.call.controls.enableSound")), 1)) : vue.createCommentVNode("", true),
|
|
1248
|
-
vue.createElementVNode("div",
|
|
1249
|
-
vue.createElementVNode("div",
|
|
1244
|
+
vue.createElementVNode("div", _hoisted_15$1, [
|
|
1245
|
+
vue.createElementVNode("div", _hoisted_16$1, [
|
|
1250
1246
|
vue.createElementVNode("strong", null, vue.toDisplayString(nameOf(mainTile.value)), 1),
|
|
1251
1247
|
((_a = action.value) == null ? void 0 : _a.note) && isFeatured(mainTile.value) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
1252
1248
|
key: 0,
|
|
@@ -1279,11 +1275,11 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1279
1275
|
name: "check",
|
|
1280
1276
|
class: "size-4 shrink-0"
|
|
1281
1277
|
})) : vue.createCommentVNode("", true)
|
|
1282
|
-
], 10,
|
|
1278
|
+
], 10, _hoisted_17$1)) : vue.createCommentVNode("", true)
|
|
1283
1279
|
])
|
|
1284
1280
|
], 2),
|
|
1285
1281
|
thumbnails.value.length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
1286
|
-
vue.createElementVNode("div",
|
|
1282
|
+
vue.createElementVNode("div", _hoisted_18$1, [
|
|
1287
1283
|
vue.createElementVNode("h2", null, vue.toDisplayString(vue.unref(t)("chat.call.stage.others")), 1),
|
|
1288
1284
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("chat.call.stage.peopleCount", { count: vue.unref(n)(thumbnails.value.length) })), 1)
|
|
1289
1285
|
]),
|
|
@@ -1300,17 +1296,17 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1300
1296
|
stream: streamOf(tile),
|
|
1301
1297
|
mirrored: isMirrored(tile)
|
|
1302
1298
|
}, null, 8, ["stream", "mirrored"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
1303
|
-
vue.createElementVNode("div",
|
|
1304
|
-
vue.createElementVNode("span",
|
|
1299
|
+
vue.createElementVNode("div", _hoisted_19$1, vue.toDisplayString(nameOf(tile).charAt(0)), 1),
|
|
1300
|
+
vue.createElementVNode("span", _hoisted_20$1, vue.toDisplayString(vue.unref(t)("chat.call.cameraOff")), 1)
|
|
1305
1301
|
], 64)),
|
|
1306
|
-
isDisconnected(tile) ? (vue.openBlock(), vue.createElementBlock("span",
|
|
1302
|
+
isDisconnected(tile) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_21$1, [
|
|
1307
1303
|
vue.createVNode(_sfc_main$7, {
|
|
1308
1304
|
name: "refresh",
|
|
1309
1305
|
class: "size-4 animate-spin motion-reduce:animate-none"
|
|
1310
1306
|
})
|
|
1311
1307
|
])) : vue.createCommentVNode("", true),
|
|
1312
|
-
vue.createElementVNode("div",
|
|
1313
|
-
vue.createElementVNode("span",
|
|
1308
|
+
vue.createElementVNode("div", _hoisted_22$1, [
|
|
1309
|
+
vue.createElementVNode("span", _hoisted_23$1, vue.toDisplayString(nameOf(tile)), 1),
|
|
1314
1310
|
vue.createElementVNode("span", {
|
|
1315
1311
|
class: vue.normalizeClass(["call-mic", !micOn(tile) && "call-mic--off"])
|
|
1316
1312
|
}, [
|
|
@@ -1325,13 +1321,13 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1325
1321
|
class: "call-tile-pick",
|
|
1326
1322
|
"aria-label": vue.unref(t)("chat.call.stage.showNameInMain", { name: nameOf(tile) }),
|
|
1327
1323
|
onClick: ($event) => pickMain(tile.id)
|
|
1328
|
-
}, null, 8,
|
|
1324
|
+
}, null, 8, _hoisted_24$1)
|
|
1329
1325
|
], 2);
|
|
1330
1326
|
}), 128))
|
|
1331
1327
|
], 2)
|
|
1332
1328
|
], 64)) : vue.createCommentVNode("", true),
|
|
1333
|
-
vue.createElementVNode("nav",
|
|
1334
|
-
vue.createElementVNode("div",
|
|
1329
|
+
vue.createElementVNode("nav", _hoisted_25$1, [
|
|
1330
|
+
vue.createElementVNode("div", _hoisted_26$1, [
|
|
1335
1331
|
vue.createElementVNode("button", {
|
|
1336
1332
|
type: "button",
|
|
1337
1333
|
class: "call-control-button",
|
|
@@ -1344,10 +1340,10 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1344
1340
|
name: vue.unref(media).isAudioOn.value ? "mic" : "micOff",
|
|
1345
1341
|
class: "size-6"
|
|
1346
1342
|
}, null, 8, ["name"])
|
|
1347
|
-
], 8,
|
|
1343
|
+
], 8, _hoisted_27$1),
|
|
1348
1344
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("chat.call.stage.microphone")), 1)
|
|
1349
1345
|
]),
|
|
1350
|
-
vue.createElementVNode("div",
|
|
1346
|
+
vue.createElementVNode("div", _hoisted_28$1, [
|
|
1351
1347
|
vue.createElementVNode("button", {
|
|
1352
1348
|
type: "button",
|
|
1353
1349
|
class: "call-control-button",
|
|
@@ -1360,11 +1356,28 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1360
1356
|
name: vue.unref(media).isVideoOn.value ? "videocam" : "videocamOff",
|
|
1361
1357
|
class: "size-6"
|
|
1362
1358
|
}, null, 8, ["name"])
|
|
1363
|
-
], 8,
|
|
1359
|
+
], 8, _hoisted_29),
|
|
1364
1360
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("chat.call.stage.camera")), 1)
|
|
1365
1361
|
]),
|
|
1362
|
+
vue.unref(media).canFlipCamera.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_30, [
|
|
1363
|
+
vue.createElementVNode("button", {
|
|
1364
|
+
type: "button",
|
|
1365
|
+
class: "call-control-button",
|
|
1366
|
+
"aria-label": flipLabel.value,
|
|
1367
|
+
disabled: !vue.unref(media).isVideoOn.value || isFlipping.value,
|
|
1368
|
+
"data-testid": "call-stage-flip",
|
|
1369
|
+
"data-facing": vue.unref(media).facingMode.value ?? void 0,
|
|
1370
|
+
onClick: flip
|
|
1371
|
+
}, [
|
|
1372
|
+
vue.createVNode(_sfc_main$7, {
|
|
1373
|
+
name: isFlipping.value ? "refresh" : "cameraSwitch",
|
|
1374
|
+
class: vue.normalizeClass(["size-6", isFlipping.value && "animate-spin motion-reduce:animate-none"])
|
|
1375
|
+
}, null, 8, ["name", "class"])
|
|
1376
|
+
], 8, _hoisted_31),
|
|
1377
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("chat.call.stage.flipCamera")), 1)
|
|
1378
|
+
])) : vue.createCommentVNode("", true),
|
|
1366
1379
|
action.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1367
|
-
key:
|
|
1380
|
+
key: 1,
|
|
1368
1381
|
class: vue.normalizeClass(["call-control", isLit.value && "call-control--lit"])
|
|
1369
1382
|
}, [
|
|
1370
1383
|
vue.createElementVNode("button", {
|
|
@@ -1386,11 +1399,11 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1386
1399
|
name: action.value.icon,
|
|
1387
1400
|
class: "size-6"
|
|
1388
1401
|
}, null, 8, ["name"]))
|
|
1389
|
-
], 10,
|
|
1402
|
+
], 10, _hoisted_32),
|
|
1390
1403
|
vue.createElementVNode("span", null, vue.toDisplayString(action.value.label), 1)
|
|
1391
1404
|
], 2)) : vue.createCommentVNode("", true),
|
|
1392
1405
|
vue.renderSlot(_ctx.$slots, "controls", {}, void 0, true),
|
|
1393
|
-
vue.createElementVNode("div",
|
|
1406
|
+
vue.createElementVNode("div", _hoisted_33, [
|
|
1394
1407
|
vue.createElementVNode("button", {
|
|
1395
1408
|
type: "button",
|
|
1396
1409
|
class: "call-control-button call-control-button--end",
|
|
@@ -1402,7 +1415,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1402
1415
|
name: "callEnd",
|
|
1403
1416
|
class: "size-6"
|
|
1404
1417
|
})
|
|
1405
|
-
], 8,
|
|
1418
|
+
], 8, _hoisted_34),
|
|
1406
1419
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("chat.call.stage.end")), 1)
|
|
1407
1420
|
])
|
|
1408
1421
|
])
|
|
@@ -1410,7 +1423,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1410
1423
|
};
|
|
1411
1424
|
}
|
|
1412
1425
|
});
|
|
1413
|
-
const CallStage = /* @__PURE__ */ index._export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
1426
|
+
const CallStage = /* @__PURE__ */ index._export_sfc(_sfc_main$2, [["__scopeId", "data-v-05c663ae"]]);
|
|
1414
1427
|
const _hoisted_1$1 = ["dir", "aria-label"];
|
|
1415
1428
|
const _hoisted_2$1 = { class: "call-mini-head" };
|
|
1416
1429
|
const _hoisted_3$1 = { class: "call-mini-avatar" };
|
|
@@ -2444,4 +2457,4 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
2444
2457
|
}
|
|
2445
2458
|
});
|
|
2446
2459
|
exports.default = _sfc_main;
|
|
2447
|
-
//# sourceMappingURL=Call-
|
|
2460
|
+
//# sourceMappingURL=Call-D2M0rk0G.cjs.map
|