@100mslive/roomkit-react 0.1.2 → 0.1.4-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{ActiveSpeakerView-ELWK3LNE.css → ActiveSpeakerView-AGL73O6U.css} +2 -2
- package/dist/{PinnedTrackView-NWN3H5EZ.css.map → ActiveSpeakerView-AGL73O6U.css.map} +2 -2
- package/dist/{ActiveSpeakerView-I4XBBOOY.js → ActiveSpeakerView-UPFD5RXA.js} +6 -6
- package/dist/{HLSView-UPP5PDCE.css → HLSView-64OG755F.css} +2 -2
- package/dist/{ActiveSpeakerView-ELWK3LNE.css.map → HLSView-64OG755F.css.map} +2 -2
- package/dist/{HLSView-VXI2RN37.js → HLSView-T267ZHOS.js} +5 -5
- package/dist/{PinnedTrackView-V2COEYUL.js → PinnedTrackView-O4FHHHOV.js} +6 -6
- package/dist/{PinnedTrackView-NWN3H5EZ.css → PinnedTrackView-YWAZ2342.css} +2 -2
- package/dist/{conference-JFEDNIUG.css.map → PinnedTrackView-YWAZ2342.css.map} +2 -2
- package/dist/{VirtualBackground-4RPLPBOQ.js → VirtualBackground-BCKXNDTD.js} +3 -3
- package/dist/{chunk-2SV2DRIF.js → chunk-3HMUOAD6.js} +116 -126
- package/dist/chunk-3HMUOAD6.js.map +7 -0
- package/dist/{chunk-S4QRZ4VV.js → chunk-6GXDYWD5.js} +2 -2
- package/dist/{chunk-MJNJRHS3.js → chunk-NLZVUXR3.js} +568 -561
- package/dist/chunk-NLZVUXR3.js.map +7 -0
- package/dist/{chunk-PLKNFRDT.js → chunk-ORPC2GYB.js} +2 -2
- package/dist/{chunk-YJCBCMH4.js → chunk-YE4RPJYG.js} +2 -2
- package/dist/{chunk-YJCBCMH4.js.map → chunk-YE4RPJYG.js.map} +1 -1
- package/dist/{conference-JFEDNIUG.css → conference-7KHWJZLG.css} +2 -2
- package/dist/{HLSView-UPP5PDCE.css.map → conference-7KHWJZLG.css.map} +2 -2
- package/dist/{conference-DGJFMV3O.js → conference-ETISNCLN.js} +11 -11
- package/dist/index.cjs.css +1 -1
- package/dist/index.cjs.css.map +2 -2
- package/dist/index.cjs.js +913 -916
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- package/dist/index.js +4 -4
- package/dist/meta.cjs.json +40 -20
- package/dist/meta.esbuild.json +126 -106
- package/dist/{transcription-KASUU6FK.js → transcription-JJQ4UAIK.js} +3 -3
- package/package.json +10 -10
- package/src/Prebuilt/components/AppData/useUISettings.js +6 -2
- package/src/Prebuilt/components/Chip.jsx +1 -0
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx +1 -0
- package/src/Prebuilt/components/TileMenu.jsx +10 -17
- package/dist/chunk-2SV2DRIF.js.map +0 -7
- package/dist/chunk-MJNJRHS3.js.map +0 -7
- /package/dist/{ActiveSpeakerView-I4XBBOOY.js.map → ActiveSpeakerView-UPFD5RXA.js.map} +0 -0
- /package/dist/{HLSView-VXI2RN37.js.map → HLSView-T267ZHOS.js.map} +0 -0
- /package/dist/{PinnedTrackView-V2COEYUL.js.map → PinnedTrackView-O4FHHHOV.js.map} +0 -0
- /package/dist/{VirtualBackground-4RPLPBOQ.js.map → VirtualBackground-BCKXNDTD.js.map} +0 -0
- /package/dist/{chunk-S4QRZ4VV.js.map → chunk-6GXDYWD5.js.map} +0 -0
- /package/dist/{chunk-PLKNFRDT.js.map → chunk-ORPC2GYB.js.map} +0 -0
- /package/dist/{conference-DGJFMV3O.js.map → conference-ETISNCLN.js.map} +0 -0
- /package/dist/{transcription-KASUU6FK.js.map → transcription-JJQ4UAIK.js.map} +0 -0
@@ -17,15 +17,15 @@ import {
|
|
17
17
|
useSetAppDataByKey,
|
18
18
|
useTheme,
|
19
19
|
useUISettings
|
20
|
-
} from "./chunk-
|
20
|
+
} from "./chunk-NLZVUXR3.js";
|
21
21
|
import {
|
22
22
|
useIsFeatureEnabled
|
23
|
-
} from "./chunk-
|
23
|
+
} from "./chunk-ORPC2GYB.js";
|
24
24
|
import {
|
25
25
|
Box,
|
26
26
|
Flex,
|
27
27
|
Text
|
28
|
-
} from "./chunk-
|
28
|
+
} from "./chunk-6GXDYWD5.js";
|
29
29
|
import {
|
30
30
|
APP_DATA,
|
31
31
|
FEATURE_LIST,
|
@@ -42,7 +42,7 @@ import {
|
|
42
42
|
define_process_env_default,
|
43
43
|
init_define_process_env,
|
44
44
|
styled
|
45
|
-
} from "./chunk-
|
45
|
+
} from "./chunk-YE4RPJYG.js";
|
46
46
|
|
47
47
|
// ../../node_modules/ua-parser-js/src/ua-parser.js
|
48
48
|
var require_ua_parser = __commonJS({
|
@@ -2682,23 +2682,12 @@ import {
|
|
2682
2682
|
VideoOnIcon
|
2683
2683
|
} from "@100mslive/react-icons";
|
2684
2684
|
var isSameTile = ({ trackId, videoTrackID, audioTrackID }) => trackId && (videoTrackID && videoTrackID === trackId || audioTrackID && audioTrackID === trackId);
|
2685
|
-
var SpotlightActions = ({
|
2685
|
+
var SpotlightActions = ({ peerId }) => {
|
2686
2686
|
const hmsActions = useHMSActions();
|
2687
|
-
const
|
2688
|
-
const isTileSpotlighted =
|
2689
|
-
|
2690
|
-
|
2691
|
-
audioTrackID
|
2692
|
-
});
|
2693
|
-
const setSpotlightTrackId = (trackId) => hmsActions.sessionStore.set(SESSION_STORE_KEY.SPOTLIGHT, trackId).catch((err) => ToastManager.addToast({ title: err.description }));
|
2694
|
-
return /* @__PURE__ */ React.createElement(
|
2695
|
-
StyledMenuTile.ItemButton,
|
2696
|
-
{
|
2697
|
-
onClick: () => isTileSpotlighted ? setSpotlightTrackId() : setSpotlightTrackId(videoTrackID || audioTrackID)
|
2698
|
-
},
|
2699
|
-
/* @__PURE__ */ React.createElement(StarIcon, null),
|
2700
|
-
/* @__PURE__ */ React.createElement("span", null, isTileSpotlighted ? "Remove from Spotlight" : "Spotlight Tile for everyone")
|
2701
|
-
);
|
2687
|
+
const spotlightPeerId = useHMSStore(selectSessionStore(SESSION_STORE_KEY.SPOTLIGHT));
|
2688
|
+
const isTileSpotlighted = spotlightPeerId === peerId;
|
2689
|
+
const setSpotlightPeerId = (peer) => hmsActions.sessionStore.set(SESSION_STORE_KEY.SPOTLIGHT, peer).catch((err) => ToastManager.addToast({ title: err.description }));
|
2690
|
+
return /* @__PURE__ */ React.createElement(StyledMenuTile.ItemButton, { onClick: () => isTileSpotlighted ? setSpotlightPeerId() : setSpotlightPeerId(peerId) }, /* @__PURE__ */ React.createElement(StarIcon, null), /* @__PURE__ */ React.createElement("span", null, isTileSpotlighted ? "Remove from Spotlight" : "Spotlight Tile for everyone"));
|
2702
2691
|
};
|
2703
2692
|
var PinActions = ({ audioTrackID, videoTrackID }) => {
|
2704
2693
|
const [pinnedTrackId, setPinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
|
@@ -2716,18 +2705,18 @@ var PinActions = ({ audioTrackID, videoTrackID }) => {
|
|
2716
2705
|
/* @__PURE__ */ React.createElement("span", null, isTilePinned ? "Unpin" : "Pin", " Tile for myself")
|
2717
2706
|
));
|
2718
2707
|
};
|
2719
|
-
var showSpotlight = define_process_env_default.REACT_APP_ENV === "qa";
|
2720
2708
|
var TileMenu = ({ audioTrackID, videoTrackID, peerID, isScreenshare = false }) => {
|
2721
2709
|
var _a, _b;
|
2722
2710
|
const [open, setOpen] = useState(false);
|
2723
2711
|
const actions = useHMSActions();
|
2724
2712
|
const localPeerID = useHMSStore(selectLocalPeerID);
|
2725
2713
|
const isLocal = localPeerID === peerID;
|
2726
|
-
const { removeOthers } = useHMSStore(selectPermissions);
|
2714
|
+
const { removeOthers, changeRole } = useHMSStore(selectPermissions);
|
2727
2715
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
2728
2716
|
audioTrackID,
|
2729
2717
|
videoTrackID
|
2730
2718
|
);
|
2719
|
+
const showSpotlight = changeRole;
|
2731
2720
|
const { sendEvent } = useCustomEvent({
|
2732
2721
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
2733
2722
|
});
|
@@ -2745,7 +2734,7 @@ var TileMenu = ({ audioTrackID, videoTrackID, peerID, isScreenshare = false }) =
|
|
2745
2734
|
if (isInset && isLocal) {
|
2746
2735
|
return null;
|
2747
2736
|
}
|
2748
|
-
return /* @__PURE__ */ React.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React.createElement(StyledMenuTile.Trigger, { "data-testid": "participant_menu_btn", onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ React.createElement(HorizontalMenuIcon, null)), /* @__PURE__ */ React.createElement(StyledMenuTile.Content, { side: "top", align: "end" }, isLocal ? showPinAction && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React.createElement(SpotlightActions, {
|
2737
|
+
return /* @__PURE__ */ React.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React.createElement(StyledMenuTile.Trigger, { "data-testid": "participant_menu_btn", onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ React.createElement(HorizontalMenuIcon, null)), /* @__PURE__ */ React.createElement(StyledMenuTile.Content, { side: "top", align: "end" }, isLocal ? showPinAction && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React.createElement(SpotlightActions, { peerId: peerID })) : /* @__PURE__ */ React.createElement(React.Fragment, null, toggleVideo ? /* @__PURE__ */ React.createElement(
|
2749
2738
|
StyledMenuTile.ItemButton,
|
2750
2739
|
{
|
2751
2740
|
onClick: toggleVideo,
|
@@ -2761,7 +2750,7 @@ var TileMenu = ({ audioTrackID, videoTrackID, peerID, isScreenshare = false }) =
|
|
2761
2750
|
},
|
2762
2751
|
isAudioEnabled ? /* @__PURE__ */ React.createElement(MicOnIcon, null) : /* @__PURE__ */ React.createElement(MicOffIcon, null),
|
2763
2752
|
/* @__PURE__ */ React.createElement("span", null, isAudioEnabled ? "Mute" : "Request Unmute")
|
2764
|
-
) : null, audioTrackID ? /* @__PURE__ */ React.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider" }, /* @__PURE__ */ React.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React.createElement(SpeakerIcon, null), /* @__PURE__ */ React.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React.createElement(Slider, { css: { my: "0.5rem" }, step: 5, value: [volume], onValueChange: (e) => setVolume(e[0]) })) : null, showPinAction && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React.createElement(SpotlightActions, {
|
2753
|
+
) : null, audioTrackID ? /* @__PURE__ */ React.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider" }, /* @__PURE__ */ React.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React.createElement(SpeakerIcon, null), /* @__PURE__ */ React.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React.createElement(Slider, { css: { my: "0.5rem" }, step: 5, value: [volume], onValueChange: (e) => setVolume(e[0]) })) : null, showPinAction && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React.createElement(SpotlightActions, { peerId: peerID })), /* @__PURE__ */ React.createElement(SimulcastLayers, { trackId: videoTrackID }), removeOthers ? /* @__PURE__ */ React.createElement(
|
2765
2754
|
StyledMenuTile.RemoveItem,
|
2766
2755
|
{
|
2767
2756
|
onClick: () => __async(void 0, null, function* () {
|
@@ -5338,7 +5327,7 @@ var $t = (n2, e) => {
|
|
5338
5327
|
};
|
5339
5328
|
var mr = (n2, e) => () => (e || n2((e = { exports: {} }).exports, e), e.exports);
|
5340
5329
|
var Jt = mr((aa, Ar) => {
|
5341
|
-
Ar.exports = { name: "@100mslive/hms-video", version: "0.9.
|
5330
|
+
Ar.exports = { name: "@100mslive/hms-video", version: "0.9.13-alpha.0", license: "MIT", main: "dist/index.cjs.js", typings: "dist/index.d.ts", module: "dist/index.js", files: ["dist", "src"], engines: { node: ">=10" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", test: "jest --maxWorkers=1", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", format: "prettier --write src/**/*.ts" }, author: "100ms <tech-common@100ms.live>", devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", tslib: "^2.2.0" }, dependencies: { eventemitter2: "^6.4.7", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0" } };
|
5342
5331
|
});
|
5343
5332
|
var Se = class {
|
5344
5333
|
};
|
@@ -5792,10 +5781,10 @@ var Ie = ((c) => (c.Disconnected = "Disconnected", c.Connecting = "Connecting",
|
|
5792
5781
|
var me = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(me || {});
|
5793
5782
|
|
5794
5783
|
// ../hms-video-store/dist/index.js
|
5795
|
-
import { EventEmitter2 as
|
5784
|
+
import { EventEmitter2 as gs } from "eventemitter2";
|
5796
5785
|
var Ut = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports);
|
5797
|
-
var At = Ut((
|
5798
|
-
|
5786
|
+
var At = Ut((Kn, Is) => {
|
5787
|
+
Is.exports = { version: "0.10.13-alpha.0", license: "MIT", main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", sideEffects: false, dependencies: { "@100mslive/hms-video": "0.9.13-alpha.0", eventemitter2: "^6.4.7", immer: "^9.0.6", reselect: "4.0.0", zustand: "3.5.7" }, devDependencies: { "ts-node": "^10.4.0", tslib: "^2.2.0" }, description: "This is an addon to the core sdk provided by 100ms. It abstracts away the intricacies of data management and provides a flux based reactive data store where data flows in only one direction.", repository: { type: "git", url: "git+https://github.com/100mslive/hms-video-store.git" }, keywords: ["video", "webrtc", "conferencing", "100ms"], bugs: { url: "https://github.com/100mslive/hms-video-store/issues" }, homepage: "https://github.com/100mslive/hms-video-store#readme" };
|
5799
5788
|
});
|
5800
5789
|
var Re = ((n2) => (n2.Disconnected = "Disconnected", n2.Preview = "Preview", n2.Connecting = "Connecting", n2.Connected = "Connected", n2.Reconnecting = "Reconnecting", n2.Disconnecting = "Disconnecting", n2.Failed = "Failed", n2))(Re || {});
|
5801
5790
|
var Vt = ((e) => (e.CHAT = "chat", e))(Vt || {});
|
@@ -5839,8 +5828,8 @@ function Y(s) {
|
|
5839
5828
|
}
|
5840
5829
|
var P2 = (s) => s.room;
|
5841
5830
|
var Bt = (s) => s.errors;
|
5842
|
-
var
|
5843
|
-
var
|
5831
|
+
var di = createSelector(Bt, (s) => s.length === 0 ? null : s.at(-1));
|
5832
|
+
var ui2 = createSelector(P2, (s) => s.id);
|
5844
5833
|
var k = (s) => s.peers;
|
5845
5834
|
var Qe = (s) => s.messages.byID;
|
5846
5835
|
var $e = (s) => s.messages.allIDs;
|
@@ -5848,22 +5837,23 @@ var T = (s) => s.tracks;
|
|
5848
5837
|
var ve2 = (s) => s.appData;
|
5849
5838
|
var qt = (s) => s.speakers;
|
5850
5839
|
var B = createSelector([P2], (s) => s && s.isConnected);
|
5851
|
-
var
|
5852
|
-
var
|
5853
|
-
var
|
5840
|
+
var Ti2 = createSelector([B, P2], (s, e) => s ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
5841
|
+
var jt = (s) => s.hideLocalPeer;
|
5842
|
+
var w2 = createSelector([P2, k, jt], (s, e, t) => t ? s.peers.filter((i) => s.localPeer !== i).map((i) => e[i]) : s.peers.map((i) => e[i]));
|
5843
|
+
var Gt = createSelector(T, (s) => Object.values(s));
|
5854
5844
|
var v2 = createSelector(P2, k, (s, e) => e[s.localPeer]);
|
5855
5845
|
var G = createSelector(P2, (s) => s.localPeer);
|
5856
|
-
var
|
5857
|
-
var
|
5846
|
+
var Hi = createSelector(v2, (s) => s == null ? void 0 : s.name);
|
5847
|
+
var fi2 = createSelector(v2, (s) => s == null ? void 0 : s.roleName);
|
5858
5848
|
var b = createSelector(v2, (s) => s == null ? void 0 : s.audioTrack);
|
5859
5849
|
var I = createSelector(v2, (s) => s == null ? void 0 : s.videoTrack);
|
5860
|
-
var
|
5861
|
-
var Je = createSelector([b, I,
|
5850
|
+
var Ft = createSelector(v2, (s) => s == null ? void 0 : s.auxiliaryTracks);
|
5851
|
+
var Je = createSelector([b, I, Ft], (s, e, t) => {
|
5862
5852
|
let i = t ? [...t] : [];
|
5863
5853
|
return s && i.unshift(s), e && i.unshift(e), i;
|
5864
5854
|
});
|
5865
|
-
var
|
5866
|
-
var
|
5855
|
+
var mi = createSelector(w2, (s) => s.filter((e) => !e.isLocal));
|
5856
|
+
var yi = createSelector(k, qt, (s, e) => {
|
5867
5857
|
let t = Object.entries(e).sort((i, o2) => {
|
5868
5858
|
var n2, l;
|
5869
5859
|
let r = ((n2 = i[1]) == null ? void 0 : n2.audioLevel) || 0;
|
@@ -5880,7 +5870,7 @@ var Ee = createSelector(v2, T, (s, e) => {
|
|
5880
5870
|
let { video: t, audio: i } = j(e, s);
|
5881
5871
|
return !!(t || i);
|
5882
5872
|
});
|
5883
|
-
var
|
5873
|
+
var Qt = createSelector(k, T, (s, e) => {
|
5884
5874
|
let t;
|
5885
5875
|
for (let i in s) {
|
5886
5876
|
let o2 = s[i], { video: r, audio: a } = j(e, o2);
|
@@ -5890,15 +5880,15 @@ var Ft = createSelector(k, T, (s, e) => {
|
|
5890
5880
|
}
|
5891
5881
|
return t;
|
5892
5882
|
});
|
5893
|
-
var
|
5894
|
-
var
|
5883
|
+
var hi = createSelector(Qt, (s) => !!s);
|
5884
|
+
var Pi2 = createSelector(k, T, (s, e) => {
|
5895
5885
|
for (let t in s) {
|
5896
5886
|
let i = s[t], { audio: o2, video: r } = j(e, i);
|
5897
5887
|
if (!r && o2)
|
5898
5888
|
return i;
|
5899
5889
|
}
|
5900
5890
|
});
|
5901
|
-
var
|
5891
|
+
var ki2 = createSelector(k, T, (s, e) => {
|
5902
5892
|
let t = [], i = [];
|
5903
5893
|
for (let o2 in s) {
|
5904
5894
|
let r = s[o2], { video: a, audio: n2 } = j(e, r);
|
@@ -5906,23 +5896,23 @@ var Pi2 = createSelector(k, T, (s, e) => {
|
|
5906
5896
|
}
|
5907
5897
|
return t.concat(i);
|
5908
5898
|
});
|
5909
|
-
var
|
5899
|
+
var Ri2 = createSelector(k, T, (s, e) => {
|
5910
5900
|
for (let t in e) {
|
5911
5901
|
let i = e[t];
|
5912
5902
|
if (J2(i) && W(i) && i.peerId)
|
5913
5903
|
return s[i.peerId];
|
5914
5904
|
}
|
5915
5905
|
});
|
5916
|
-
var
|
5906
|
+
var Di2 = createSelector(k, T, (s, e) => {
|
5917
5907
|
for (let t in e) {
|
5918
5908
|
let i = e[t];
|
5919
5909
|
if (ce2(i) && i.peerId)
|
5920
5910
|
return s[i.peerId];
|
5921
5911
|
}
|
5922
5912
|
});
|
5923
|
-
var
|
5924
|
-
var
|
5925
|
-
var
|
5913
|
+
var vi = createSelector(Gt, (s) => s.filter(Ge));
|
5914
|
+
var Ii2 = createSelector($e, (s) => s.length);
|
5915
|
+
var Ei2 = createSelector(Qe, (s) => Object.values(s).filter((e) => !e.read).length);
|
5926
5916
|
var Se2 = createSelector($e, Qe, (s, e) => {
|
5927
5917
|
let t = [];
|
5928
5918
|
return s.forEach((i) => {
|
@@ -5930,26 +5920,26 @@ var Se2 = createSelector($e, Qe, (s, e) => {
|
|
5930
5920
|
}), t;
|
5931
5921
|
});
|
5932
5922
|
var E2 = createSelector([P2], (s) => s && s.roomState);
|
5933
|
-
var
|
5934
|
-
var
|
5923
|
+
var bi = createSelector(E2, (s) => s === "Preview");
|
5924
|
+
var Ai2 = createSelector(P2, (s) => s.roomState !== "Disconnected");
|
5935
5925
|
var _2 = (s) => s.roles;
|
5936
|
-
var
|
5926
|
+
var Ci = createSelector([_2], (s) => Object.keys(s));
|
5937
5927
|
var le2 = createSelector([v2, _2], (s, e) => s != null && s.roleName ? e[s.roleName] : null);
|
5938
|
-
var
|
5928
|
+
var $t2 = (s) => {
|
5939
5929
|
var e;
|
5940
5930
|
return (e = s.preview) == null ? void 0 : e.asRole;
|
5941
5931
|
};
|
5942
|
-
var ze = createSelector([
|
5943
|
-
var
|
5932
|
+
var ze = createSelector([$t2, _2], (s, e) => s ? e[s] : null);
|
5933
|
+
var Ni2 = createSelector([le2], (s) => {
|
5944
5934
|
var e;
|
5945
5935
|
return (e = s == null ? void 0 : s.subscribeParams) != null && e.subscribeToRoles ? s.subscribeParams.subscribeToRoles.length > 0 : false;
|
5946
5936
|
});
|
5947
5937
|
var Xe = createSelector(le2, (s) => s == null ? void 0 : s.permissions);
|
5948
|
-
var
|
5949
|
-
var
|
5950
|
-
var
|
5951
|
-
var
|
5952
|
-
var
|
5938
|
+
var Li = createSelector(P2, (s) => s.recording);
|
5939
|
+
var xi2 = createSelector(P2, (s) => s.rtmp);
|
5940
|
+
var Oi2 = createSelector(P2, (s) => s.hls);
|
5941
|
+
var _i2 = createSelector(P2, (s) => s.sessionId);
|
5942
|
+
var wi2 = createSelector(P2, (s) => s.startedAt);
|
5953
5943
|
var Ze2 = (s) => s.polls;
|
5954
5944
|
var tt = (s = "audio") => (e) => e.playlist[s].list;
|
5955
5945
|
var be = (s = "audio") => (e) => e.playlist[s].selection;
|
@@ -6037,93 +6027,93 @@ S.level = kr.VERBOSE;
|
|
6037
6027
|
var Ae = (s, e) => e;
|
6038
6028
|
var Z = (s, e) => e;
|
6039
6029
|
var dt = (s, e) => e;
|
6040
|
-
var Xt2 = (s, e) => e;
|
6041
6030
|
var Zt2 = (s, e) => e;
|
6031
|
+
var es = (s, e) => e;
|
6042
6032
|
var D = createSelector([k, Ae], (s, e) => e ? s[e] : null);
|
6043
6033
|
var Ce = createSelector([T, Z], (s, e) => e ? s[e] : null);
|
6044
|
-
var
|
6034
|
+
var ts = createSelector([T, Z], (s, e) => {
|
6045
6035
|
if (!e)
|
6046
6036
|
return null;
|
6047
6037
|
let t = s[e];
|
6048
6038
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
6049
6039
|
});
|
6050
|
-
var
|
6040
|
+
var ss = createSelector([T, Z], (s, e) => {
|
6051
6041
|
if (!e)
|
6052
6042
|
return null;
|
6053
6043
|
let t = s[e];
|
6054
6044
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
6055
6045
|
});
|
6056
|
-
var
|
6046
|
+
var is2 = createSelector([T, Z], (s, e) => {
|
6057
6047
|
if (!e)
|
6058
6048
|
return null;
|
6059
6049
|
let t = s[e];
|
6060
6050
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
6061
6051
|
});
|
6062
|
-
var
|
6052
|
+
var os = createSelector([T, Z], (s, e) => {
|
6063
6053
|
if (!e)
|
6064
6054
|
return null;
|
6065
6055
|
let t = s[e];
|
6066
6056
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
6067
6057
|
});
|
6068
|
-
var
|
6058
|
+
var rs2 = createSelector([Ze2, es], (s, e) => e ? s[e] : null);
|
6069
6059
|
var C = u(D);
|
6070
|
-
var
|
6060
|
+
var Jo = u(createSelector([ve2, Zt2], (s, e) => {
|
6071
6061
|
if (s)
|
6072
6062
|
return e ? s[e] : s;
|
6073
6063
|
}));
|
6074
|
-
var
|
6064
|
+
var Xo = u(createSelector(D, (s) => s == null ? void 0 : s.name));
|
6075
6065
|
var ue = u(Ce);
|
6076
|
-
var ut = u(
|
6077
|
-
var Xo = u(ts);
|
6066
|
+
var ut = u(ts);
|
6078
6067
|
var Zo = u(ss);
|
6079
6068
|
var er = u(is2);
|
6080
|
-
var
|
6069
|
+
var tr = u(os);
|
6070
|
+
var as = u((s, e) => {
|
6081
6071
|
let t = D(s, e);
|
6082
6072
|
if (t && t.videoTrack && t.videoTrack !== "")
|
6083
6073
|
return s.tracks[t.videoTrack];
|
6084
6074
|
});
|
6085
|
-
var
|
6075
|
+
var ns = u((s, e) => {
|
6086
6076
|
let t = D(s, e);
|
6087
6077
|
if (t && t.audioTrack && t.audioTrack !== "")
|
6088
6078
|
return s.tracks[t.audioTrack];
|
6089
6079
|
});
|
6090
|
-
var
|
6080
|
+
var ir = u((s, e) => {
|
6091
6081
|
let t = D(s, e);
|
6092
6082
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => s.tracks[i])) || [];
|
6093
6083
|
});
|
6094
6084
|
var pt = (s, e) => e ? s.speakers[e] : null;
|
6095
|
-
var
|
6096
|
-
var
|
6097
|
-
let t =
|
6085
|
+
var or = u(createSelector(pt, (s) => (s == null ? void 0 : s.audioLevel) || 0));
|
6086
|
+
var cs = (s, e) => {
|
6087
|
+
let t = ns(e)(s);
|
6098
6088
|
return pt(s, t == null ? void 0 : t.id);
|
6099
6089
|
};
|
6100
|
-
var
|
6101
|
-
var
|
6090
|
+
var rr = u(createSelector(cs, (s) => (s == null ? void 0 : s.audioLevel) || 0));
|
6091
|
+
var ar = u((s, e) => {
|
6102
6092
|
if (e)
|
6103
6093
|
return s.connectionQualities[e];
|
6104
6094
|
});
|
6105
|
-
var
|
6095
|
+
var nr = u((s, e) => {
|
6106
6096
|
let t = D(s, e);
|
6107
6097
|
if (t) {
|
6108
6098
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((o2) => $(s.tracks[o2]));
|
6109
6099
|
return i ? s.tracks[i] : void 0;
|
6110
6100
|
}
|
6111
6101
|
});
|
6112
|
-
var
|
6102
|
+
var cr2 = u(createSelector(T, D, (s, e) => {
|
6113
6103
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
6114
6104
|
let o2 = s[i];
|
6115
6105
|
return J2(o2) && W(o2);
|
6116
6106
|
});
|
6117
6107
|
return t ? s[t] : void 0;
|
6118
6108
|
}));
|
6119
|
-
var
|
6109
|
+
var Sr2 = u(createSelector(T, D, (s, e) => {
|
6120
6110
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
6121
6111
|
let o2 = s[i];
|
6122
6112
|
return J2(o2) && $(o2);
|
6123
6113
|
});
|
6124
6114
|
return t ? s[t] : void 0;
|
6125
6115
|
}));
|
6126
|
-
var
|
6116
|
+
var lr2 = u(createSelector(T, D, (s, e) => {
|
6127
6117
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
6128
6118
|
let o2 = s[i];
|
6129
6119
|
return ce2(o2) && $(o2);
|
@@ -6132,11 +6122,11 @@ var Sr2 = u(createSelector(T, D, (s, e) => {
|
|
6132
6122
|
}));
|
6133
6123
|
var Mt = u(createSelector(T, D, (s, e) => j(s, e)));
|
6134
6124
|
var Tt = (s) => createSelector(Mt(s), (e) => e.audio);
|
6135
|
-
var
|
6125
|
+
var ur2 = u((s, e) => {
|
6136
6126
|
let t = D(s, e);
|
6137
6127
|
return Q(s, t == null ? void 0 : t.audioTrack);
|
6138
6128
|
});
|
6139
|
-
var
|
6129
|
+
var pr = u((s, e) => {
|
6140
6130
|
let t = D(s, e);
|
6141
6131
|
return Q(s, t == null ? void 0 : t.videoTrack);
|
6142
6132
|
});
|
@@ -6144,11 +6134,11 @@ var Ht = u((s, e) => {
|
|
6144
6134
|
if (e && s.tracks[e])
|
6145
6135
|
return s.tracks[e].volume === 0;
|
6146
6136
|
});
|
6147
|
-
var
|
6137
|
+
var Mr2 = u((s, e) => {
|
6148
6138
|
let t = D(s, e);
|
6149
6139
|
return Ht(t == null ? void 0 : t.audioTrack)(s);
|
6150
6140
|
});
|
6151
|
-
var
|
6141
|
+
var Tr = u((s, e) => {
|
6152
6142
|
let t = Tt(e)(s);
|
6153
6143
|
return Ht(t == null ? void 0 : t.id)(s);
|
6154
6144
|
});
|
@@ -6162,15 +6152,15 @@ var ft = u((s, e) => {
|
|
6162
6152
|
return t.volume;
|
6163
6153
|
}
|
6164
6154
|
});
|
6165
|
-
var
|
6155
|
+
var Hr = u((s, e) => {
|
6166
6156
|
let t = D(s, e);
|
6167
6157
|
return ft(t == null ? void 0 : t.audioTrack)(s);
|
6168
6158
|
});
|
6169
|
-
var
|
6159
|
+
var fr2 = u((s, e) => {
|
6170
6160
|
let t = Tt(e)(s);
|
6171
6161
|
return ft(t == null ? void 0 : t.id)(s);
|
6172
6162
|
});
|
6173
|
-
var
|
6163
|
+
var mr2 = u((s, e) => {
|
6174
6164
|
let t = Ce(s, e);
|
6175
6165
|
if (t) {
|
6176
6166
|
if (t.type !== "video") {
|
@@ -6194,93 +6184,93 @@ var yt = createSelector([Se2, dt], (s, e) => {
|
|
6194
6184
|
return (i = t.recipientRoles) != null && i.length ? (o2 = t.recipientRoles) == null ? void 0 : o2.includes(e) : false;
|
6195
6185
|
});
|
6196
6186
|
});
|
6197
|
-
var
|
6187
|
+
var Ss = createSelector(Se2, (s) => s.filter((e) => {
|
6198
6188
|
var t;
|
6199
6189
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
6200
6190
|
}));
|
6201
|
-
var
|
6202
|
-
var
|
6203
|
-
var
|
6204
|
-
var
|
6205
|
-
var
|
6206
|
-
var hr = u(Ss);
|
6191
|
+
var ls = createSelector([yt, dt], (s) => s ? s.filter((e) => !e.read).length : 0);
|
6192
|
+
var ds2 = createSelector([mt, Ae], (s) => s ? s.filter((e) => !e.read).length : 0);
|
6193
|
+
var yr = createSelector(Ss, (s) => s.filter((e) => !e.read).length);
|
6194
|
+
var gr2 = u(mt);
|
6195
|
+
var hr = u(yt);
|
6207
6196
|
var Pr = u(ls);
|
6208
|
-
var
|
6209
|
-
var
|
6197
|
+
var kr2 = u(ds2);
|
6198
|
+
var gt = u(rs2);
|
6199
|
+
var Nr = createSelector([k, T], (s, e) => Object.values(s).map((i) => {
|
6210
6200
|
var o2;
|
6211
6201
|
return { peer: i, isAudioEnabled: i.audioTrack ? (o2 = e[i.audioTrack]) == null ? void 0 : o2.enabled : false };
|
6212
6202
|
}));
|
6213
|
-
var
|
6214
|
-
var
|
6215
|
-
var
|
6216
|
-
var
|
6217
|
-
var
|
6203
|
+
var us = (s) => s.roleChangeRequests[0] || null;
|
6204
|
+
var Lr = createSelector([us, k, _2], (s, e, t) => s ? { requestedBy: s.requestedBy ? e[s.requestedBy] : void 0, role: t[s.roleName], token: s.token } : null);
|
6205
|
+
var xr2 = createSelector([le2], (s) => Y(s));
|
6206
|
+
var Or2 = createSelector([ze], (s) => Y(s));
|
6207
|
+
var Ms = createSelector([I, T], (s, e) => {
|
6218
6208
|
let t = null;
|
6219
6209
|
return s && (t = e[s]), (t == null ? void 0 : t.plugins) || [];
|
6220
6210
|
});
|
6221
|
-
var
|
6211
|
+
var Ts = createSelector([b, T], (s, e) => {
|
6222
6212
|
let t = null;
|
6223
6213
|
return s && (t = e[s]), (t == null ? void 0 : t.plugins) || [];
|
6224
6214
|
});
|
6225
6215
|
var He = { [ct.PEER_JOINED]: "PEER_JOINED", [ct.PEER_LEFT]: "PEER_LEFT", [ct.ROLE_UPDATED]: "ROLE_UPDATED", [ct.NAME_UPDATED]: "NAME_UPDATED", [ct.METADATA_UPDATED]: "METADATA_UPDATED" };
|
6226
6216
|
var te = { [ie.TRACK_ADDED]: "TRACK_ADDED", [ie.TRACK_REMOVED]: "TRACK_REMOVED", [ie.TRACK_MUTED]: "TRACK_MUTED", [ie.TRACK_UNMUTED]: "TRACK_UNMUTED", [ie.TRACK_DEGRADED]: "TRACK_DEGRADED", [ie.TRACK_RESTORED]: "TRACK_RESTORED", [ie.TRACK_DESCRIPTION_CHANGED]: "TRACK_DESCRIPTION_CHANGED" };
|
6227
6217
|
var fe2 = { [Xt.POLL_CREATED]: "POLL_CREATED", [Xt.POLL_STARTED]: "POLL_STARTED", [Xt.POLL_STOPPED]: "POLL_STOPPED", [Xt.POLL_STATS_UPDATED]: "POLL_VOTES_UPDATED" };
|
6228
|
-
var
|
6229
|
-
var
|
6230
|
-
var
|
6231
|
-
var
|
6218
|
+
var Ls = (s) => s.localPeer.id;
|
6219
|
+
var xs = (s) => s.localPeer.audioTrack;
|
6220
|
+
var Os = (s) => s.localPeer.videoTrack;
|
6221
|
+
var _s = (s, e) => e;
|
6232
6222
|
var Ct = (s, e) => e;
|
6233
|
-
var
|
6223
|
+
var ws = (s) => s.remoteTrackStats;
|
6234
6224
|
var Nt = (s) => s.peerStats;
|
6235
6225
|
var we = (s) => s.localTrackStats;
|
6236
|
-
var V2 = createSelector([Nt,
|
6237
|
-
var
|
6226
|
+
var V2 = createSelector([Nt, Ls], (s, e) => s[e]);
|
6227
|
+
var Us = createSelector(V2, (s) => {
|
6238
6228
|
var e;
|
6239
6229
|
return (e = s == null ? void 0 : s.subscribe) == null ? void 0 : e.packetsLost;
|
6240
6230
|
});
|
6241
|
-
var
|
6231
|
+
var Vs = createSelector(V2, (s) => {
|
6242
6232
|
var e;
|
6243
6233
|
return (e = s == null ? void 0 : s.subscribe) == null ? void 0 : e.jitter;
|
6244
6234
|
});
|
6245
|
-
var
|
6235
|
+
var Ks = createSelector(V2, (s) => {
|
6246
6236
|
var e;
|
6247
6237
|
return (e = s == null ? void 0 : s.publish) == null ? void 0 : e.bitrate;
|
6248
6238
|
});
|
6249
|
-
var
|
6239
|
+
var Bs = createSelector(V2, (s) => {
|
6250
6240
|
var e;
|
6251
6241
|
return (e = s == null ? void 0 : s.subscribe) == null ? void 0 : e.bitrate;
|
6252
6242
|
});
|
6253
|
-
var
|
6243
|
+
var qs = createSelector(V2, (s) => {
|
6254
6244
|
var e;
|
6255
6245
|
return (e = s == null ? void 0 : s.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
6256
6246
|
});
|
6257
|
-
var
|
6247
|
+
var js = createSelector(V2, (s) => {
|
6258
6248
|
var e;
|
6259
6249
|
return (e = s == null ? void 0 : s.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
6260
6250
|
});
|
6261
|
-
var
|
6251
|
+
var Gs = createSelector(V2, (s) => {
|
6262
6252
|
var e;
|
6263
6253
|
return (e = s == null ? void 0 : s.publish) == null ? void 0 : e.bytesSent;
|
6264
6254
|
});
|
6265
|
-
var
|
6255
|
+
var Fs = createSelector(V2, (s) => {
|
6266
6256
|
var e;
|
6267
6257
|
return (e = s == null ? void 0 : s.subscribe) == null ? void 0 : e.bytesReceived;
|
6268
6258
|
});
|
6269
|
-
var
|
6270
|
-
var
|
6259
|
+
var Qs = createSelector([Nt, _s], (s, e) => e ? s[e] : void 0);
|
6260
|
+
var $s = createSelector([ws, Ct], (s, e) => e ? s[e] : void 0);
|
6271
6261
|
var Ue = createSelector([we, Ct], (s, e) => e ? s[e] : void 0);
|
6272
|
-
var $s = u(Fs);
|
6273
6262
|
var Ws = u(Qs);
|
6274
|
-
var Js =
|
6263
|
+
var Js = u($s);
|
6264
|
+
var Ys = createSelector([we, xs], (s, e) => {
|
6275
6265
|
var t;
|
6276
6266
|
return e ? (t = s[e]) == null ? void 0 : t[0] : void 0;
|
6277
6267
|
});
|
6278
|
-
var
|
6279
|
-
var
|
6268
|
+
var zs = u(createSelector(Ue, (s) => s == null ? void 0 : s[0]));
|
6269
|
+
var Xs = createSelector([we, Os], (s, e) => {
|
6280
6270
|
var t;
|
6281
6271
|
return e ? (t = s[e]) == null ? void 0 : t[0] : void 0;
|
6282
6272
|
});
|
6283
|
-
var
|
6273
|
+
var Zs = u(createSelector(Ue, (s) => s));
|
6284
6274
|
|
6285
6275
|
// src/Prebuilt/common/PeersSorter.js
|
6286
6276
|
var PeersSorter = class {
|
@@ -6303,7 +6293,7 @@ var PeersSorter = class {
|
|
6303
6293
|
}
|
6304
6294
|
});
|
6305
6295
|
if (!this.storeUnsubscribe) {
|
6306
|
-
this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange,
|
6296
|
+
this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, yi);
|
6307
6297
|
}
|
6308
6298
|
this.moveSpeakerToFront(this.speaker);
|
6309
6299
|
});
|
@@ -6519,4 +6509,4 @@ export {
|
|
6519
6509
|
GridCenterView,
|
6520
6510
|
GridSidePaneView
|
6521
6511
|
};
|
6522
|
-
//# sourceMappingURL=chunk-
|
6512
|
+
//# sourceMappingURL=chunk-3HMUOAD6.js.map
|