@100mslive/roomkit-react 0.3.3-alpha.3 → 0.3.3-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +0 -1
- package/dist/Accordion/index.d.ts +0 -1
- package/dist/{HLSView-BCIIVR2T.js → HLSView-VUANLYLS.js} +166 -331
- package/dist/HLSView-VUANLYLS.js.map +7 -0
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/Modal/Dialog.d.ts +1 -1
- package/dist/Prebuilt/IconButton.d.ts +3 -2
- package/dist/Prebuilt/components/Footer/ChatToggle.d.ts +1 -3
- package/dist/Prebuilt/components/HMSVideo/PlayPauseButton.d.ts +2 -2
- package/dist/Prebuilt/components/HMSVideo/{SeekControl.d.ts → SeekControls.d.ts} +2 -2
- package/dist/Prebuilt/components/HMSVideo/index.d.ts +11 -15
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +2 -2
- package/dist/Prebuilt/components/RaiseHand.d.ts +1 -1
- package/dist/Prebuilt/layouts/WhiteboardView.d.ts +2 -0
- package/dist/Sheet/Sheet.d.ts +1 -1
- package/dist/{chunk-W47ZJGSD.js → chunk-5WTUTVRO.js} +540 -617
- package/dist/chunk-5WTUTVRO.js.map +7 -0
- package/dist/index.cjs.js +1426 -1686
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +169 -248
- package/dist/meta.esbuild.json +180 -260
- package/package.json +7 -7
- package/src/Accordion/Accordion.tsx +4 -4
- package/src/IconButton/IconButton.tsx +7 -2
- package/src/Prebuilt/IconButton.tsx +10 -6
- package/src/Prebuilt/components/Chat/ChatBody.tsx +0 -10
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +4 -2
- package/src/Prebuilt/components/ConferenceScreen.tsx +4 -1
- package/src/Prebuilt/components/Footer/ChatToggle.tsx +2 -2
- package/src/Prebuilt/components/Footer/Footer.tsx +4 -1
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +1 -4
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +6 -6
- package/src/Prebuilt/components/Footer/WhiteboardToggle.tsx +3 -17
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +0 -1
- package/src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx +2 -2
- package/src/Prebuilt/components/HMSVideo/{SeekControl.tsx → SeekControls.tsx} +2 -2
- package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +3 -7
- package/src/Prebuilt/components/HMSVideo/index.ts +4 -5
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx +7 -7
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +1 -0
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -1
- package/src/Prebuilt/components/PreviousRoleInMetadata.tsx +1 -0
- package/src/Prebuilt/components/RaiseHand.tsx +1 -7
- package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +1 -0
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +4 -27
- package/src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx +5 -13
- package/src/Prebuilt/components/hooks/{useMetadata.tsx → useMetadata.jsx} +8 -2
- package/src/Prebuilt/layouts/HLSView.jsx +78 -115
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +17 -1
- package/src/Prebuilt/layouts/WhiteboardView.tsx +69 -0
- package/dist/HLSView-BCIIVR2T.js.map +0 -7
- package/dist/Prebuilt/components/HMSVideo/PlayPauseSeekControls.d.ts +0 -14
- package/dist/Prebuilt/components/VideoLayouts/WhiteboardLayout.d.ts +0 -3
- package/dist/Prebuilt/components/hooks/useMetadata.d.ts +0 -8
- package/dist/chunk-W47ZJGSD.js.map +0 -7
- package/src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx +0 -158
- package/src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx +0 -95
@@ -9,18 +9,18 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
9
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
10
10
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
11
11
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
12
|
-
var __spreadValues = (a2,
|
13
|
-
for (var prop in
|
14
|
-
if (__hasOwnProp.call(
|
15
|
-
__defNormalProp(a2, prop,
|
12
|
+
var __spreadValues = (a2, b2) => {
|
13
|
+
for (var prop in b2 || (b2 = {}))
|
14
|
+
if (__hasOwnProp.call(b2, prop))
|
15
|
+
__defNormalProp(a2, prop, b2[prop]);
|
16
16
|
if (__getOwnPropSymbols)
|
17
|
-
for (var prop of __getOwnPropSymbols(
|
18
|
-
if (__propIsEnum.call(
|
19
|
-
__defNormalProp(a2, prop,
|
17
|
+
for (var prop of __getOwnPropSymbols(b2)) {
|
18
|
+
if (__propIsEnum.call(b2, prop))
|
19
|
+
__defNormalProp(a2, prop, b2[prop]);
|
20
20
|
}
|
21
21
|
return a2;
|
22
22
|
};
|
23
|
-
var __spreadProps = (a2,
|
23
|
+
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
24
24
|
var __objRest = (source, exclude) => {
|
25
25
|
var target = {};
|
26
26
|
for (var prop in source)
|
@@ -43,13 +43,13 @@ var __export = (target, all) => {
|
|
43
43
|
for (var name in all)
|
44
44
|
__defProp(target, name, { get: all[name], enumerable: true });
|
45
45
|
};
|
46
|
-
var __copyProps = (
|
46
|
+
var __copyProps = (to2, from, except, desc) => {
|
47
47
|
if (from && typeof from === "object" || typeof from === "function") {
|
48
48
|
for (let key of __getOwnPropNames(from))
|
49
|
-
if (!__hasOwnProp.call(
|
50
|
-
__defProp(
|
49
|
+
if (!__hasOwnProp.call(to2, key) && key !== except)
|
50
|
+
__defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
51
51
|
}
|
52
|
-
return
|
52
|
+
return to2;
|
53
53
|
};
|
54
54
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
55
55
|
// If the importer is in node compatibility mode or this is not an ESM
|
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e1af34ff-a562-4ece-98b8-62d8c089106d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_e1af34ff-a562-4ece-98b8-62d8c089106d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.3", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "595", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19832", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.3", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8343246532", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "2f0dfb954601e7028cf0a4d9582a30be0fe726ca", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "dc383a02648df0438838bc7519ddf0466d732140d594ac7884f40b9ad676af22", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710852557001-0.002215858080938826:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710852556808-0.8108733321995873:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710852534869-0.8214156190232955:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710852534692-0.4998782271041631:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_9b743310-ce74-40c4-985b-43804b3d6bc4", INVOCATION_ID: "9c159d16d0984bb1b5de7dbc6ec5d7a9", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "484", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 410", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.3", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.3", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "2f0dfb954601e7028cf0a4d9582a30be0fe726ca", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_e1af34ff-a562-4ece-98b8-62d8c089106d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_e1af34ff-a562-4ece-98b8-62d8c089106d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_e1af34ff-a562-4ece-98b8-62d8c089106d" };
|
109
|
+
define_process_env_default = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v18.17.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.4", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.87.0", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "b0f3689284995b999c8c5650146ced9afae1bbd19cf3308ede185a4a9b0ede50", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.kq3RNeovXJ/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680723-0.5894944620724656:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680330-0.621429415928052:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858665031-0.12795214732375126:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680723-0.5894944620724656/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.4", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.4", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.3.3-alpha.4", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.4", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-10419d9aa6.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -801,7 +801,7 @@ var require_lodash = __commonJS({
|
|
801
801
|
return string.match(reUnicodeWord) || [];
|
802
802
|
}
|
803
803
|
var runInContext = function runInContext2(context) {
|
804
|
-
context = context == null ? root :
|
804
|
+
context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
|
805
805
|
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
806
806
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
807
807
|
var coreJsData = context["__core-js_shared__"];
|
@@ -4148,7 +4148,7 @@ var require_lodash = __commonJS({
|
|
4148
4148
|
function eq(value, other) {
|
4149
4149
|
return value === other || value !== value && other !== other;
|
4150
4150
|
}
|
4151
|
-
var
|
4151
|
+
var gt2 = createRelationalOperation(baseGt);
|
4152
4152
|
var gte = createRelationalOperation(function(value, other) {
|
4153
4153
|
return value >= other;
|
4154
4154
|
});
|
@@ -5287,7 +5287,7 @@ var require_lodash = __commonJS({
|
|
5287
5287
|
lodash.forOwn = forOwn;
|
5288
5288
|
lodash.forOwnRight = forOwnRight;
|
5289
5289
|
lodash.get = get;
|
5290
|
-
lodash.gt =
|
5290
|
+
lodash.gt = gt2;
|
5291
5291
|
lodash.gte = gte;
|
5292
5292
|
lodash.has = has;
|
5293
5293
|
lodash.hasIn = hasIn;
|
@@ -5575,17 +5575,17 @@ var require_lodash = __commonJS({
|
|
5575
5575
|
}
|
5576
5576
|
return lodash;
|
5577
5577
|
};
|
5578
|
-
var
|
5578
|
+
var _ = runInContext();
|
5579
5579
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
5580
|
-
root._ =
|
5580
|
+
root._ = _;
|
5581
5581
|
define(function() {
|
5582
|
-
return
|
5582
|
+
return _;
|
5583
5583
|
});
|
5584
5584
|
} else if (freeModule) {
|
5585
|
-
(freeModule.exports =
|
5586
|
-
freeExports._ =
|
5585
|
+
(freeModule.exports = _)._ = _;
|
5586
|
+
freeExports._ = _;
|
5587
5587
|
} else {
|
5588
|
-
root._ =
|
5588
|
+
root._ = _;
|
5589
5589
|
}
|
5590
5590
|
}).call(exports);
|
5591
5591
|
}
|
@@ -7670,12 +7670,12 @@ var require_sdp = __commonJS({
|
|
7670
7670
|
return parsed;
|
7671
7671
|
};
|
7672
7672
|
SDPUtils2.writeRtpMap = function(codec) {
|
7673
|
-
let
|
7673
|
+
let pt2 = codec.payloadType;
|
7674
7674
|
if (codec.preferredPayloadType !== void 0) {
|
7675
|
-
|
7675
|
+
pt2 = codec.preferredPayloadType;
|
7676
7676
|
}
|
7677
7677
|
const channels = codec.channels || codec.numChannels || 1;
|
7678
|
-
return "a=rtpmap:" +
|
7678
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
7679
7679
|
};
|
7680
7680
|
SDPUtils2.parseExtmap = function(line) {
|
7681
7681
|
const parts = line.substring(9).split(" ");
|
@@ -7701,9 +7701,9 @@ var require_sdp = __commonJS({
|
|
7701
7701
|
};
|
7702
7702
|
SDPUtils2.writeFmtp = function(codec) {
|
7703
7703
|
let line = "";
|
7704
|
-
let
|
7704
|
+
let pt2 = codec.payloadType;
|
7705
7705
|
if (codec.preferredPayloadType !== void 0) {
|
7706
|
-
|
7706
|
+
pt2 = codec.preferredPayloadType;
|
7707
7707
|
}
|
7708
7708
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
7709
7709
|
const params = [];
|
@@ -7714,7 +7714,7 @@ var require_sdp = __commonJS({
|
|
7714
7714
|
params.push(param);
|
7715
7715
|
}
|
7716
7716
|
});
|
7717
|
-
line += "a=fmtp:" +
|
7717
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
7718
7718
|
}
|
7719
7719
|
return line;
|
7720
7720
|
};
|
@@ -7727,13 +7727,13 @@ var require_sdp = __commonJS({
|
|
7727
7727
|
};
|
7728
7728
|
SDPUtils2.writeRtcpFb = function(codec) {
|
7729
7729
|
let lines = "";
|
7730
|
-
let
|
7730
|
+
let pt2 = codec.payloadType;
|
7731
7731
|
if (codec.preferredPayloadType !== void 0) {
|
7732
|
-
|
7732
|
+
pt2 = codec.preferredPayloadType;
|
7733
7733
|
}
|
7734
7734
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
7735
7735
|
codec.rtcpFeedback.forEach((fb) => {
|
7736
|
-
lines += "a=rtcp-fb:" +
|
7736
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
7737
7737
|
});
|
7738
7738
|
}
|
7739
7739
|
return lines;
|
@@ -7861,21 +7861,21 @@ var require_sdp = __commonJS({
|
|
7861
7861
|
const mline = lines[0].split(" ");
|
7862
7862
|
description.profile = mline[2];
|
7863
7863
|
for (let i = 3; i < mline.length; i++) {
|
7864
|
-
const
|
7864
|
+
const pt2 = mline[i];
|
7865
7865
|
const rtpmapline = SDPUtils2.matchPrefix(
|
7866
7866
|
mediaSection,
|
7867
|
-
"a=rtpmap:" +
|
7867
|
+
"a=rtpmap:" + pt2 + " "
|
7868
7868
|
)[0];
|
7869
7869
|
if (rtpmapline) {
|
7870
7870
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
7871
7871
|
const fmtps = SDPUtils2.matchPrefix(
|
7872
7872
|
mediaSection,
|
7873
|
-
"a=fmtp:" +
|
7873
|
+
"a=fmtp:" + pt2 + " "
|
7874
7874
|
);
|
7875
7875
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
7876
7876
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
7877
7877
|
mediaSection,
|
7878
|
-
"a=rtcp-fb:" +
|
7878
|
+
"a=rtcp-fb:" + pt2 + " "
|
7879
7879
|
).map(SDPUtils2.parseRtcpFb);
|
7880
7880
|
description.codecs.push(codec);
|
7881
7881
|
switch (codec.name.toUpperCase()) {
|
@@ -9827,15 +9827,20 @@ var IconButton = styled("button", __spreadProps(__spreadValues({}, flexCenter),
|
|
9827
9827
|
},
|
9828
9828
|
"&[disabled]": {
|
9829
9829
|
opacity: 0.5,
|
9830
|
-
cursor: "not-allowed"
|
9831
|
-
backgroundColor: "$secondary_dim",
|
9832
|
-
color: "$on_primary_high"
|
9830
|
+
cursor: "not-allowed"
|
9833
9831
|
},
|
9834
9832
|
"&:focus": {
|
9835
9833
|
outline: "none"
|
9836
9834
|
},
|
9837
9835
|
variants: {
|
9838
9836
|
active: {
|
9837
|
+
false: {
|
9838
|
+
backgroundColor: "$secondary_dim",
|
9839
|
+
color: "$on_primary_high",
|
9840
|
+
"&:not([disabled]):hover": {
|
9841
|
+
backgroundColor: "$secondary_default"
|
9842
|
+
}
|
9843
|
+
},
|
9839
9844
|
true: {
|
9840
9845
|
"&:not([disabled]):hover": {
|
9841
9846
|
backgroundColor: "$on_surface_low"
|
@@ -11051,7 +11056,7 @@ import { selectTrackAudioByID, useHMSVanillaStore } from "@100mslive/react-sdk";
|
|
11051
11056
|
var audio_level_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABABAMAAAAHc7SNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAtUExURQAAAP///////////////////////////////////////////////////////6FIq5sAAAAOdFJOUwA/QJqbnJ2euLnc3d7+2IFKrQAAAa9JREFUaN7dmcFRxDAMRXNgW4AbV24ZSkgrlAAFUAqlpITtgT0QnB22BnY3iWXHSlYz5H/NoJNO8bP8JTlyVW1k923/MveYdnc623PuUe3jsux37tEDcN24eFR7HJb9TD2qvQ/LfqUexR7a41Xx7bDsMfWo2j+NlnpU7TsBiOKdAOqoeCcAUTwFYFK8pn0GgFLttWVxAEq1pwJo1Z4KoFV7KoBW7YEAT0uK729pfxuAZcX/3Fr2TwAx05cVDwWIu11RPBQg7lZ0XlR7JIDsdkXxCIDp5GXf2v0GBxBP3pTfAIB48qb83h7AWtlhANbKDgOwVnYYgLWywwCsn/u/AO5HMIqwcwOovdNwLESNG8BQioNfKa52YwBsakC04/MF9C1Rw4HdjhU1SCyKqOCvZCGLhXgMgKgGiUWRI9hr+aSG+bU8sP4LyliIxwW4xOI1j8pKZlB/Tjt794ANpKzdAzOgaOzdAzKiCVpmkACWM4MEIFVCyQzfQWXnPao9eA+rG+dxfXB8L1jNB4pN+bCfd4re59Gqoz9alflQ+zzb7ZROwTWlUziEIO8UZCs7hc1+AbiVW6XSE8knAAAAAElFTkSuQmCC";
|
11052
11057
|
|
11053
11058
|
// src/AudioLevel/AudioLevel.tsx
|
11054
|
-
var positionValues = new Array(101).fill(0).reduce((acc,
|
11059
|
+
var positionValues = new Array(101).fill(0).reduce((acc, _, index) => {
|
11055
11060
|
acc[index] = Math.round(index / 100 * 4) / 4;
|
11056
11061
|
return acc;
|
11057
11062
|
}, {});
|
@@ -11612,8 +11617,8 @@ var StyledChevron = styled(ChevronUpIcon, {
|
|
11612
11617
|
var AccordionRoot = StyledAccordion;
|
11613
11618
|
var AccordionItem = StyledItem;
|
11614
11619
|
var AccordionHeader = React17.forwardRef((_a8, forwardedRef) => {
|
11615
|
-
var _b7 = _a8, { children, iconStyles, css: css2
|
11616
|
-
return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "
|
11620
|
+
var _b7 = _a8, { children, iconStyles, css: css2 } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css"]);
|
11621
|
+
return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "aria-hidden": true, css: iconStyles })));
|
11617
11622
|
});
|
11618
11623
|
var AccordionContent = React17.forwardRef(
|
11619
11624
|
(_a8, forwardedRef) => {
|
@@ -12418,12 +12423,12 @@ var formatTime = (timeInSeconds) => {
|
|
12418
12423
|
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
12419
12424
|
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
12420
12425
|
};
|
12421
|
-
var compareArrays = (a2,
|
12422
|
-
if (a2.length !==
|
12426
|
+
var compareArrays = (a2, b2) => {
|
12427
|
+
if (a2.length !== b2.length)
|
12423
12428
|
return false;
|
12424
12429
|
else {
|
12425
12430
|
for (var i = 0; i < a2.length; i++) {
|
12426
|
-
if (a2[i] !==
|
12431
|
+
if (a2[i] !== b2[i]) {
|
12427
12432
|
return false;
|
12428
12433
|
}
|
12429
12434
|
}
|
@@ -12892,6 +12897,7 @@ import {
|
|
12892
12897
|
selectAppData as selectAppData9,
|
12893
12898
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
12894
12899
|
selectRoomState as selectRoomState7,
|
12900
|
+
useAVToggle as useAVToggle7,
|
12895
12901
|
useHMSActions as useHMSActions47,
|
12896
12902
|
useHMSStore as useHMSStore84
|
12897
12903
|
} from "@100mslive/react-sdk";
|
@@ -12901,6 +12907,7 @@ init_define_process_env();
|
|
12901
12907
|
import React77, { useEffect as useEffect20 } from "react";
|
12902
12908
|
import { useMedia as useMedia11 } from "react-use";
|
12903
12909
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
12910
|
+
import { useAVToggle as useAVToggle4 } from "@100mslive/react-sdk";
|
12904
12911
|
|
12905
12912
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
12906
12913
|
init_define_process_env();
|
@@ -12945,17 +12952,21 @@ var IconButton2 = styled(IconButton, {
|
|
12945
12952
|
border: "1px solid $border_bright",
|
12946
12953
|
bg: "$background_dim",
|
12947
12954
|
r: "$1",
|
12948
|
-
"&[disabled]": {
|
12949
|
-
opacity: 0.5,
|
12950
|
-
cursor: "not-allowed",
|
12951
|
-
backgroundColor: "$secondary_dim",
|
12952
|
-
color: "$on_primary_high"
|
12953
|
-
},
|
12954
12955
|
variants: {
|
12955
12956
|
active: {
|
12956
12957
|
true: {
|
12957
12958
|
color: "$on_surface_high",
|
12958
12959
|
backgroundColor: "transparent"
|
12960
|
+
},
|
12961
|
+
false: {
|
12962
|
+
border: "1px solid transparent",
|
12963
|
+
color: "$on_primary_high"
|
12964
|
+
}
|
12965
|
+
},
|
12966
|
+
disabled: {
|
12967
|
+
true: {
|
12968
|
+
backgroundColor: "$surface_brighter",
|
12969
|
+
color: "$on_surface_low"
|
12959
12970
|
}
|
12960
12971
|
}
|
12961
12972
|
}
|
@@ -12981,9 +12992,9 @@ var IconSection = styled(IconButton_default, {
|
|
12981
12992
|
p: "$4",
|
12982
12993
|
r: "$1",
|
12983
12994
|
bg: "transparent",
|
12984
|
-
borderTopRightRadius:
|
12995
|
+
borderTopRightRadius: 0,
|
12985
12996
|
borderColor: "$border_bright",
|
12986
|
-
borderBottomRightRadius:
|
12997
|
+
borderBottomRightRadius: 0,
|
12987
12998
|
position: "relative",
|
12988
12999
|
"&:not([disabled]):focus-visible": {
|
12989
13000
|
zIndex: 1
|
@@ -12996,8 +13007,8 @@ var IconSection = styled(IconButton_default, {
|
|
12996
13007
|
variants: __spreadProps(__spreadValues({}, variants), {
|
12997
13008
|
hideOptions: {
|
12998
13009
|
true: {
|
12999
|
-
borderTopRightRadius: "$1
|
13000
|
-
borderBottomRightRadius: "$1
|
13010
|
+
borderTopRightRadius: "$1",
|
13011
|
+
borderBottomRightRadius: "$1"
|
13001
13012
|
}
|
13002
13013
|
}
|
13003
13014
|
})
|
@@ -13007,10 +13018,10 @@ var OptionsSection = styled(IconButton_default, {
|
|
13007
13018
|
h: "$14",
|
13008
13019
|
p: "$4 $2",
|
13009
13020
|
r: "$1",
|
13010
|
-
borderTopLeftRadius:
|
13021
|
+
borderTopLeftRadius: 0,
|
13011
13022
|
borderColor: "$border_bright",
|
13012
|
-
borderBottomLeftRadius:
|
13013
|
-
borderLeftWidth:
|
13023
|
+
borderBottomLeftRadius: 0,
|
13024
|
+
borderLeftWidth: 0,
|
13014
13025
|
position: "relative",
|
13015
13026
|
"&:not([disabled]):focus-visible": {
|
13016
13027
|
zIndex: 1
|
@@ -16068,7 +16079,7 @@ var MuteAllModal = ({
|
|
16068
16079
|
return /* @__PURE__ */ React51.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React51.createElement(DialogContent, { title: "Mute/Unmute Remote Tracks", Icon: MicOffIcon2 }, /* @__PURE__ */ React51.createElement(MuteAllContent, __spreadValues({}, props))));
|
16069
16080
|
};
|
16070
16081
|
|
16071
|
-
// src/Prebuilt/components/hooks/useMetadata.
|
16082
|
+
// src/Prebuilt/components/hooks/useMetadata.jsx
|
16072
16083
|
init_define_process_env();
|
16073
16084
|
import { useCallback as useCallback14 } from "react";
|
16074
16085
|
import {
|
@@ -16093,7 +16104,6 @@ var useMyMetadata = () => {
|
|
16093
16104
|
} catch (error) {
|
16094
16105
|
console.error("failed to update metadata ", updatedFields);
|
16095
16106
|
}
|
16096
|
-
return false;
|
16097
16107
|
});
|
16098
16108
|
const toggleHandRaise = useCallback14(() => __async(void 0, null, function* () {
|
16099
16109
|
if (isHandRaised) {
|
@@ -16110,13 +16120,19 @@ var useMyMetadata = () => {
|
|
16110
16120
|
yield hmsActions.lowerLocalPeerHand();
|
16111
16121
|
}
|
16112
16122
|
}), [metaData == null ? void 0 : metaData.isBRBOn]);
|
16123
|
+
const setPrevRole = (role) => __async(void 0, null, function* () {
|
16124
|
+
yield update({
|
16125
|
+
prevRole: role
|
16126
|
+
});
|
16127
|
+
});
|
16113
16128
|
return {
|
16114
16129
|
isHandRaised,
|
16115
16130
|
isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
|
16116
16131
|
metaData,
|
16117
16132
|
updateMetaData: update,
|
16118
16133
|
toggleHandRaise,
|
16119
|
-
toggleBRB
|
16134
|
+
toggleBRB,
|
16135
|
+
setPrevRole
|
16120
16136
|
};
|
16121
16137
|
};
|
16122
16138
|
|
@@ -16241,6 +16257,7 @@ import {
|
|
16241
16257
|
selectIsConnectedToRoom as selectIsConnectedToRoom7,
|
16242
16258
|
selectPeerCount as selectPeerCount3,
|
16243
16259
|
selectPermissions as selectPermissions8,
|
16260
|
+
useAVToggle as useAVToggle3,
|
16244
16261
|
useHMSActions as useHMSActions21,
|
16245
16262
|
useHMSStore as useHMSStore29,
|
16246
16263
|
useRecordingStreaming as useRecordingStreaming7
|
@@ -16270,8 +16287,8 @@ init_define_process_env();
|
|
16270
16287
|
|
16271
16288
|
// ../../node_modules/reselect/es/index.js
|
16272
16289
|
init_define_process_env();
|
16273
|
-
function defaultEqualityCheck(a2,
|
16274
|
-
return a2 ===
|
16290
|
+
function defaultEqualityCheck(a2, b2) {
|
16291
|
+
return a2 === b2;
|
16275
16292
|
}
|
16276
16293
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
16277
16294
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -16348,8 +16365,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
16348
16365
|
// ../hms-video-store/dist/index.js
|
16349
16366
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
16350
16367
|
var import_lodash3 = __toESM(require_lodash2());
|
16351
|
-
import { v4 as
|
16352
|
-
import { v4 as
|
16368
|
+
import { v4 as Ka } from "uuid";
|
16369
|
+
import { v4 as $a } from "uuid";
|
16353
16370
|
|
16354
16371
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
16355
16372
|
init_define_process_env();
|
@@ -16587,7 +16604,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16587
16604
|
if (typeof c !== "object" || c.mandatory || c.optional) {
|
16588
16605
|
return c;
|
16589
16606
|
}
|
16590
|
-
const
|
16607
|
+
const cc = {};
|
16591
16608
|
Object.keys(c).forEach((key) => {
|
16592
16609
|
if (key === "require" || key === "advanced" || key === "mediaSource") {
|
16593
16610
|
return;
|
@@ -16603,35 +16620,35 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16603
16620
|
return name === "deviceId" ? "sourceId" : name;
|
16604
16621
|
};
|
16605
16622
|
if (r.ideal !== void 0) {
|
16606
|
-
|
16607
|
-
let
|
16623
|
+
cc.optional = cc.optional || [];
|
16624
|
+
let oc2 = {};
|
16608
16625
|
if (typeof r.ideal === "number") {
|
16609
|
-
|
16610
|
-
|
16611
|
-
|
16612
|
-
|
16613
|
-
|
16626
|
+
oc2[oldname_("min", key)] = r.ideal;
|
16627
|
+
cc.optional.push(oc2);
|
16628
|
+
oc2 = {};
|
16629
|
+
oc2[oldname_("max", key)] = r.ideal;
|
16630
|
+
cc.optional.push(oc2);
|
16614
16631
|
} else {
|
16615
|
-
|
16616
|
-
|
16632
|
+
oc2[oldname_("", key)] = r.ideal;
|
16633
|
+
cc.optional.push(oc2);
|
16617
16634
|
}
|
16618
16635
|
}
|
16619
16636
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
16620
|
-
|
16621
|
-
|
16637
|
+
cc.mandatory = cc.mandatory || {};
|
16638
|
+
cc.mandatory[oldname_("", key)] = r.exact;
|
16622
16639
|
} else {
|
16623
16640
|
["min", "max"].forEach((mix) => {
|
16624
16641
|
if (r[mix] !== void 0) {
|
16625
|
-
|
16626
|
-
|
16642
|
+
cc.mandatory = cc.mandatory || {};
|
16643
|
+
cc.mandatory[oldname_(mix, key)] = r[mix];
|
16627
16644
|
}
|
16628
16645
|
});
|
16629
16646
|
}
|
16630
16647
|
});
|
16631
16648
|
if (c.advanced) {
|
16632
|
-
|
16649
|
+
cc.optional = (cc.optional || []).concat(c.advanced);
|
16633
16650
|
}
|
16634
|
-
return
|
16651
|
+
return cc;
|
16635
16652
|
};
|
16636
16653
|
const shimConstraints_ = function(constraints, func) {
|
16637
16654
|
if (browserDetails.version >= 61) {
|
@@ -16639,9 +16656,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16639
16656
|
}
|
16640
16657
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16641
16658
|
if (constraints && typeof constraints.audio === "object") {
|
16642
|
-
const remap = function(obj, a2,
|
16643
|
-
if (a2 in obj && !(
|
16644
|
-
obj[
|
16659
|
+
const remap = function(obj, a2, b2) {
|
16660
|
+
if (a2 in obj && !(b2 in obj)) {
|
16661
|
+
obj[b2] = obj[a2];
|
16645
16662
|
delete obj[a2];
|
16646
16663
|
}
|
16647
16664
|
};
|
@@ -17383,9 +17400,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
17383
17400
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
17384
17401
|
};
|
17385
17402
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
17386
|
-
const remap = function(obj, a2,
|
17387
|
-
if (a2 in obj && !(
|
17388
|
-
obj[
|
17403
|
+
const remap = function(obj, a2, b2) {
|
17404
|
+
if (a2 in obj && !(b2 in obj)) {
|
17405
|
+
obj[b2] = obj[a2];
|
17389
17406
|
delete obj[a2];
|
17390
17407
|
}
|
17391
17408
|
};
|
@@ -18446,114 +18463,114 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
18446
18463
|
|
18447
18464
|
// ../hms-video-store/dist/index.js
|
18448
18465
|
var import_lodash4 = __toESM(require_lodash2());
|
18449
|
-
import { v4 as
|
18450
|
-
import { v4 as
|
18451
|
-
import { v4 as
|
18452
|
-
import { EventEmitter2 as
|
18466
|
+
import { v4 as to } from "uuid";
|
18467
|
+
import { v4 as ao } from "uuid";
|
18468
|
+
import { v4 as lo } from "uuid";
|
18469
|
+
import { EventEmitter2 as uo } from "eventemitter2";
|
18453
18470
|
var Dt = __toESM(require_lib());
|
18454
|
-
import { EventEmitter2 as
|
18455
|
-
import { v4 as
|
18456
|
-
import { EventEmitter2 as
|
18457
|
-
import
|
18458
|
-
import { v4 as
|
18459
|
-
import { v4 as
|
18460
|
-
var
|
18461
|
-
var
|
18462
|
-
var
|
18471
|
+
import { EventEmitter2 as Ho } from "eventemitter2";
|
18472
|
+
import { v4 as Do } from "uuid";
|
18473
|
+
import { EventEmitter2 as wo } from "eventemitter2";
|
18474
|
+
import _o from "eventemitter2";
|
18475
|
+
import { v4 as No } from "uuid";
|
18476
|
+
import { v4 as Uo } from "uuid";
|
18477
|
+
var ya = Object.defineProperty;
|
18478
|
+
var ka = Object.defineProperties;
|
18479
|
+
var Pa = Object.getOwnPropertyDescriptors;
|
18463
18480
|
var Vt = Object.getOwnPropertySymbols;
|
18464
|
-
var
|
18465
|
-
var
|
18466
|
-
var
|
18467
|
-
var
|
18481
|
+
var $r = Object.prototype.hasOwnProperty;
|
18482
|
+
var Wr = Object.prototype.propertyIsEnumerable;
|
18483
|
+
var Gr = (a2, e, t) => e in a2 ? ya(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
18484
|
+
var S = (a2, e) => {
|
18468
18485
|
for (var t in e || (e = {}))
|
18469
|
-
|
18486
|
+
$r.call(e, t) && Gr(a2, t, e[t]);
|
18470
18487
|
if (Vt)
|
18471
18488
|
for (var t of Vt(e))
|
18472
|
-
|
18489
|
+
Wr.call(e, t) && Gr(a2, t, e[t]);
|
18473
18490
|
return a2;
|
18474
18491
|
};
|
18475
|
-
var v = (a2, e) =>
|
18492
|
+
var v = (a2, e) => ka(a2, Pa(e));
|
18476
18493
|
var Xi = (a2, e) => {
|
18477
18494
|
var t = {};
|
18478
18495
|
for (var i in a2)
|
18479
|
-
|
18496
|
+
$r.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
18480
18497
|
if (a2 != null && Vt)
|
18481
18498
|
for (var i of Vt(a2))
|
18482
|
-
e.indexOf(i) < 0 &&
|
18499
|
+
e.indexOf(i) < 0 && Wr.call(a2, i) && (t[i] = a2[i]);
|
18483
18500
|
return t;
|
18484
18501
|
};
|
18485
|
-
var
|
18486
|
-
var lr =
|
18487
|
-
|
18502
|
+
var Aa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18503
|
+
var lr = Aa((Zc, Wa) => {
|
18504
|
+
Wa.exports = { version: "0.12.3-alpha.4", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, 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" } }, sideEffects: false, 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", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
18488
18505
|
});
|
18489
18506
|
var Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
|
18490
|
-
var
|
18491
|
-
var
|
18507
|
+
var Ia = ((e) => (e.CHAT = "chat", e))(Ia || {});
|
18508
|
+
var Kr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Kr || {});
|
18492
18509
|
var er = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(er || {});
|
18493
|
-
var
|
18510
|
+
var qr = ((t) => (t.audio = "audio", t.video = "video", t))(qr || {});
|
18494
18511
|
function He(a2, e) {
|
18495
18512
|
let t, i;
|
18496
18513
|
if (e)
|
18497
18514
|
for (let r of e.auxiliaryTracks) {
|
18498
18515
|
let s = a2[r];
|
18499
|
-
|
18516
|
+
Ra(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
|
18500
18517
|
}
|
18501
18518
|
return { video: t, audio: i };
|
18502
18519
|
}
|
18503
|
-
function
|
18520
|
+
function tt(a2) {
|
18504
18521
|
return a2 && a2.type === "audio";
|
18505
18522
|
}
|
18506
|
-
function
|
18523
|
+
function it(a2) {
|
18507
18524
|
return a2 && a2.type === "video";
|
18508
18525
|
}
|
18509
|
-
function
|
18526
|
+
function Ra(a2) {
|
18510
18527
|
return a2 && a2.source === "screen";
|
18511
18528
|
}
|
18512
18529
|
function $t(a2) {
|
18513
18530
|
return a2 && a2.source === "audioplaylist";
|
18514
18531
|
}
|
18515
|
-
function
|
18532
|
+
function rt(a2) {
|
18516
18533
|
return a2 && a2.source === "videoplaylist";
|
18517
18534
|
}
|
18518
|
-
function
|
18535
|
+
function jr(a2) {
|
18519
18536
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
18520
18537
|
}
|
18521
18538
|
function Ue(a2, e) {
|
18522
18539
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
18523
18540
|
}
|
18524
|
-
function
|
18541
|
+
function st(a2) {
|
18525
18542
|
var r;
|
18526
18543
|
let e = false, t = false, i = false;
|
18527
18544
|
return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
|
18528
18545
|
}
|
18529
18546
|
var B = (a2) => a2.room;
|
18530
|
-
var
|
18531
|
-
var
|
18532
|
-
var
|
18547
|
+
var Ha = (a2) => a2.errors;
|
18548
|
+
var In = createSelector(Ha, (a2) => a2.length === 0 ? null : a2.at(-1));
|
18549
|
+
var Rn = createSelector(B, (a2) => a2.id);
|
18533
18550
|
var G = (a2) => a2.peers;
|
18534
18551
|
var Wt = (a2) => a2.messages.byID;
|
18535
|
-
var
|
18536
|
-
var
|
18552
|
+
var Qr = (a2) => a2.messages.allIDs;
|
18553
|
+
var D = (a2) => a2.tracks;
|
18537
18554
|
var tr = (a2) => a2.appData;
|
18538
|
-
var
|
18555
|
+
var Ca = (a2) => a2.speakers;
|
18539
18556
|
var ye = createSelector([B], (a2) => a2 && a2.isConnected);
|
18540
|
-
var
|
18541
|
-
var
|
18542
|
-
var oe = createSelector([B, G,
|
18543
|
-
var
|
18557
|
+
var Ln = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
18558
|
+
var La = (a2) => a2.hideLocalPeer;
|
18559
|
+
var oe = createSelector([B, G, La], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
18560
|
+
var Da = createSelector(D, (a2) => Object.values(a2));
|
18544
18561
|
var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
|
18545
18562
|
var ue = createSelector(B, (a2) => a2.localPeer);
|
18546
|
-
var
|
18547
|
-
var
|
18563
|
+
var Dn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
|
18564
|
+
var wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
|
18548
18565
|
var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
18549
18566
|
var K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
18550
|
-
var
|
18551
|
-
var
|
18567
|
+
var wa = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
18568
|
+
var Yr = createSelector([Z, K, wa], (a2, e, t) => {
|
18552
18569
|
let i = t ? [...t] : [];
|
18553
18570
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
18554
18571
|
});
|
18555
|
-
var
|
18556
|
-
var
|
18572
|
+
var _n = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
|
18573
|
+
var Nn = createSelector(G, Ca, (a2, e) => {
|
18557
18574
|
let t = Object.entries(e).sort((i, r) => {
|
18558
18575
|
var n, l;
|
18559
18576
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -18566,11 +18583,11 @@ var On = createSelector(G, La, (a2, e) => {
|
|
18566
18583
|
}
|
18567
18584
|
return null;
|
18568
18585
|
});
|
18569
|
-
var rr = createSelector(z,
|
18586
|
+
var rr = createSelector(z, D, (a2, e) => {
|
18570
18587
|
let { video: t, audio: i } = He(e, a2);
|
18571
18588
|
return !!(t || i);
|
18572
18589
|
});
|
18573
|
-
var
|
18590
|
+
var _a7 = createSelector(G, D, (a2, e) => {
|
18574
18591
|
let t;
|
18575
18592
|
for (let i in a2) {
|
18576
18593
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -18580,15 +18597,15 @@ var Na = createSelector(G, w, (a2, e) => {
|
|
18580
18597
|
}
|
18581
18598
|
return t;
|
18582
18599
|
});
|
18583
|
-
var
|
18584
|
-
var
|
18600
|
+
var xn = createSelector(_a7, (a2) => !!a2);
|
18601
|
+
var Un = createSelector(G, D, (a2, e) => {
|
18585
18602
|
for (let t in a2) {
|
18586
18603
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
18587
18604
|
if (!s && r)
|
18588
18605
|
return i;
|
18589
18606
|
}
|
18590
18607
|
});
|
18591
|
-
var
|
18608
|
+
var Bn = createSelector(G, D, (a2, e) => {
|
18592
18609
|
let t = [], i = [];
|
18593
18610
|
for (let r in a2) {
|
18594
18611
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -18596,80 +18613,80 @@ var Vn = createSelector(G, w, (a2, e) => {
|
|
18596
18613
|
}
|
18597
18614
|
return t.concat(i);
|
18598
18615
|
});
|
18599
|
-
var
|
18616
|
+
var Vn = createSelector(G, D, (a2, e) => {
|
18600
18617
|
for (let t in e) {
|
18601
18618
|
let i = e[t];
|
18602
|
-
if (
|
18619
|
+
if (rt(i) && it(i) && i.peerId)
|
18603
18620
|
return a2[i.peerId];
|
18604
18621
|
}
|
18605
18622
|
});
|
18606
|
-
var
|
18623
|
+
var Fn = createSelector(G, D, (a2, e) => {
|
18607
18624
|
for (let t in e) {
|
18608
18625
|
let i = e[t];
|
18609
18626
|
if ($t(i) && i.peerId)
|
18610
18627
|
return a2[i.peerId];
|
18611
18628
|
}
|
18612
18629
|
});
|
18613
|
-
var
|
18614
|
-
var
|
18615
|
-
var
|
18616
|
-
var
|
18630
|
+
var Gn = createSelector(Da, (a2) => a2.filter(jr));
|
18631
|
+
var $n = createSelector(Qr, (a2) => a2.length);
|
18632
|
+
var Wn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
18633
|
+
var at = createSelector(Qr, Wt, (a2, e) => {
|
18617
18634
|
let t = [];
|
18618
18635
|
return a2.forEach((i) => {
|
18619
18636
|
t.push(e[i]);
|
18620
18637
|
}), t;
|
18621
18638
|
});
|
18622
|
-
var
|
18639
|
+
var Na = createSelector(at, (a2) => a2.filter((e) => {
|
18623
18640
|
var t;
|
18624
18641
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
18625
18642
|
}));
|
18626
|
-
var
|
18643
|
+
var Kn = createSelector(Na, (a2) => a2.filter((e) => !e.read).length);
|
18627
18644
|
var Y = createSelector([B], (a2) => a2 && a2.roomState);
|
18628
|
-
var
|
18629
|
-
var
|
18645
|
+
var Zr = createSelector(Y, (a2) => a2 === "Preview");
|
18646
|
+
var qn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
18630
18647
|
var ne = (a2) => a2.roles;
|
18631
|
-
var
|
18648
|
+
var jn = createSelector([ne], (a2) => Object.keys(a2));
|
18632
18649
|
var Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
18633
|
-
var
|
18650
|
+
var Oa = (a2) => {
|
18634
18651
|
var e;
|
18635
18652
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
18636
18653
|
};
|
18637
|
-
var
|
18638
|
-
var
|
18654
|
+
var es = createSelector([Oa, ne], (a2, e) => a2 ? e[a2] : null);
|
18655
|
+
var Jn = createSelector([Kt], (a2) => {
|
18639
18656
|
var e;
|
18640
18657
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
18641
18658
|
});
|
18642
|
-
var
|
18643
|
-
var
|
18644
|
-
var
|
18645
|
-
var
|
18646
|
-
var
|
18647
|
-
var
|
18648
|
-
var
|
18649
|
-
var
|
18650
|
-
var
|
18651
|
-
var
|
18652
|
-
var
|
18653
|
-
var
|
18654
|
-
var
|
18655
|
-
var
|
18659
|
+
var ts = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
|
18660
|
+
var Qn = createSelector(B, (a2) => a2.recording);
|
18661
|
+
var zn = createSelector(B, (a2) => a2.rtmp);
|
18662
|
+
var Yn = createSelector(B, (a2) => a2.hls);
|
18663
|
+
var Xn = createSelector(B, (a2) => a2.sessionId);
|
18664
|
+
var Zn = createSelector(B, (a2) => a2.startedAt);
|
18665
|
+
var ec = createSelector(B, (a2) => !!a2.isLargeRoom);
|
18666
|
+
var tc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
18667
|
+
var ic = createSelector(B, (a2) => a2.effectsKey);
|
18668
|
+
var is = (a2) => a2.polls;
|
18669
|
+
var oc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
|
18670
|
+
var xa = (a2) => a2.whiteboards;
|
18671
|
+
var nc = createSelector(xa, (a2) => Object.values(a2)[0]);
|
18672
|
+
var ss = (a2 = "audio") => (e) => e.playlist[a2].list;
|
18656
18673
|
var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
18657
|
-
var
|
18658
|
-
var
|
18659
|
-
var
|
18660
|
-
var
|
18661
|
-
var
|
18662
|
-
var
|
18674
|
+
var as = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
18675
|
+
var os = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
18676
|
+
var ns = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
18677
|
+
var cs = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
18678
|
+
var ds = (a2 = "audio") => createSelector(ss(a2), (e) => Object.values(e));
|
18679
|
+
var ls = (a2 = "audio") => createSelector(ss(a2), sr(a2), (e, t) => {
|
18663
18680
|
if (t.id)
|
18664
18681
|
return e[t.id];
|
18665
18682
|
});
|
18666
|
-
var
|
18667
|
-
var
|
18668
|
-
function
|
18683
|
+
var us = { selection: sr("audio"), progress: as("audio"), currentTime: os("audio"), playbackRate: ns("audio"), volume: cs("audio"), list: ds("audio"), selectedItem: ls("audio") };
|
18684
|
+
var ps = { selection: sr("video"), progress: as("video"), currentTime: os("video"), playbackRate: ns("video"), volume: cs("video"), list: ds("video"), selectedItem: ls("video") };
|
18685
|
+
function b(a2) {
|
18669
18686
|
return (e) => (t) => a2(t, e);
|
18670
18687
|
}
|
18671
|
-
var
|
18672
|
-
var
|
18688
|
+
var hs = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(hs || {});
|
18689
|
+
var Ua = typeof window != "undefined" && typeof window.expect != "undefined";
|
18673
18690
|
var d = class {
|
18674
18691
|
static v(e, ...t) {
|
18675
18692
|
this.log(0, e, ...t);
|
@@ -18735,24 +18752,24 @@ var d = class {
|
|
18735
18752
|
}
|
18736
18753
|
}
|
18737
18754
|
};
|
18738
|
-
d.level =
|
18755
|
+
d.level = Ua ? 7 : 0;
|
18739
18756
|
var pe = new import_ua_parser_js.UAParser();
|
18740
|
-
var
|
18757
|
+
var w = typeof window != "undefined";
|
18758
|
+
var ms;
|
18759
|
+
var Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
18760
|
+
var Va = () => !Ce;
|
18761
|
+
var Sc = Va();
|
18741
18762
|
var Ss;
|
18742
|
-
var Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
|
18743
|
-
var Fa = () => !Ce;
|
18744
|
-
var gc = Fa();
|
18745
18763
|
var gs;
|
18746
|
-
var
|
18747
|
-
|
18748
|
-
|
18749
|
-
if (_ && window) {
|
18764
|
+
var fs = ((gs = (Ss = pe.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
|
18765
|
+
function Fa() {
|
18766
|
+
if (w && window) {
|
18750
18767
|
let a2 = window.location.hostname;
|
18751
18768
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
18752
18769
|
}
|
18753
18770
|
return "CUSTOM";
|
18754
18771
|
}
|
18755
|
-
var Ve =
|
18772
|
+
var Ve = Fa();
|
18756
18773
|
var M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
18757
18774
|
var f = class a extends Error {
|
18758
18775
|
constructor(t, i, r, s, o, n = false) {
|
@@ -18783,8 +18800,8 @@ var f = class a extends Error {
|
|
18783
18800
|
}`;
|
18784
18801
|
}
|
18785
18802
|
};
|
18786
|
-
var
|
18787
|
-
var
|
18803
|
+
var Ga = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
18804
|
+
var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
18788
18805
|
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
18789
18806
|
}, WebSocketConnectionLost(a2, e = "") {
|
18790
18807
|
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
|
@@ -18843,7 +18860,7 @@ var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
18843
18860
|
}, StatsFailed(a2, e = "") {
|
18844
18861
|
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
18845
18862
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
18846
|
-
return new f(a2, "ServerErrors", e, t, t,
|
18863
|
+
return new f(a2, "ServerErrors", e, t, t, Ga.includes(e));
|
18847
18864
|
}, AlreadyJoined(a2, e = "") {
|
18848
18865
|
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
18849
18866
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
@@ -18916,11 +18933,11 @@ var nr = class {
|
|
18916
18933
|
return this.valuesMap.size;
|
18917
18934
|
}
|
18918
18935
|
};
|
18919
|
-
var
|
18936
|
+
var vs = () => {
|
18920
18937
|
try {
|
18921
|
-
|
18938
|
+
w && !localStorage && (window.localStorage = new nr());
|
18922
18939
|
} catch (a2) {
|
18923
|
-
d.e("Error initialising localStorage",
|
18940
|
+
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
18924
18941
|
}
|
18925
18942
|
};
|
18926
18943
|
var ce = class {
|
@@ -18930,9 +18947,9 @@ var ce = class {
|
|
18930
18947
|
}
|
18931
18948
|
getStorage() {
|
18932
18949
|
try {
|
18933
|
-
return
|
18950
|
+
return w && !this.storage && (vs(), this.storage = window.localStorage), this.storage;
|
18934
18951
|
} catch (e) {
|
18935
|
-
return d.e("Error initialising localStorage",
|
18952
|
+
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
18936
18953
|
}
|
18937
18954
|
}
|
18938
18955
|
get() {
|
@@ -18950,70 +18967,37 @@ var ce = class {
|
|
18950
18967
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
18951
18968
|
}
|
18952
18969
|
};
|
18953
|
-
var
|
18970
|
+
var Ms = () => {
|
18954
18971
|
let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
|
18955
|
-
return t ? a2 = t : (a2 =
|
18972
|
+
return t ? a2 = t : (a2 = $a(), e.set(a2)), a2;
|
18956
18973
|
};
|
18957
18974
|
function ie(a2) {
|
18958
18975
|
return a2 != null;
|
18959
18976
|
}
|
18960
|
-
var
|
18961
|
-
function
|
18977
|
+
var ks = lr().version;
|
18978
|
+
function ot(a2 = "prod", e) {
|
18962
18979
|
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
18963
18980
|
if (Ce)
|
18964
|
-
return
|
18981
|
+
return Ps({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ks, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
18965
18982
|
let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
|
18966
|
-
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`),
|
18983
|
+
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), Ps({ os: n, os_version: l, sdk: t, sdk_version: ks, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
18967
18984
|
}
|
18968
18985
|
function ur(a2) {
|
18969
18986
|
return a2.replace(/ /g, "_");
|
18970
18987
|
}
|
18971
|
-
var
|
18988
|
+
var Ps = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
18972
18989
|
var R = class {
|
18973
18990
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
18974
|
-
this.metadata = { peer: {}, userAgent:
|
18975
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
18991
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
18992
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Ka(), this.device_id = Ms();
|
18976
18993
|
}
|
18977
18994
|
toSignalParams() {
|
18978
|
-
return { name: this.name, info: v(
|
18995
|
+
return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
18979
18996
|
}
|
18980
18997
|
};
|
18981
|
-
var pr = class {
|
18982
|
-
constructor() {
|
18983
|
-
this.pluginUsage = /* @__PURE__ */ new Map();
|
18984
|
-
this.pluginLastAddedAt = /* @__PURE__ */ new Map();
|
18985
|
-
this.getPluginUsage = (e, t) => {
|
18986
|
-
let i = `${t}-${e}`;
|
18987
|
-
if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
|
18988
|
-
let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
|
18989
|
-
this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
|
18990
|
-
}
|
18991
|
-
return this.pluginUsage.get(i);
|
18992
|
-
};
|
18993
|
-
this.updatePluginUsageData = (e, t) => {
|
18994
|
-
if (e.name === "transport.leave") {
|
18995
|
-
this.cleanup(t);
|
18996
|
-
return;
|
18997
|
-
}
|
18998
|
-
let i = e.properties.plugin_name, r = `${t}-${i}`;
|
18999
|
-
if (e.name === "mediaPlugin.added") {
|
19000
|
-
let s = e.properties.added_at;
|
19001
|
-
this.pluginLastAddedAt.set(r, s);
|
19002
|
-
} else if (e.name === "mediaPlugin.stats") {
|
19003
|
-
let s = e.properties.duration;
|
19004
|
-
s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
|
19005
|
-
}
|
19006
|
-
};
|
19007
|
-
this.cleanup = (e) => {
|
19008
|
-
for (let t of this.pluginUsage.keys())
|
19009
|
-
e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
|
19010
|
-
};
|
19011
|
-
}
|
19012
|
-
};
|
19013
|
-
var Fe = new pr();
|
19014
18998
|
var y = class {
|
19015
18999
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
19016
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(
|
19000
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
19017
19001
|
return new R({ name: o, level: n, properties: l });
|
19018
19002
|
}
|
19019
19003
|
static disconnect(e, t) {
|
@@ -19027,7 +19011,7 @@ var y = class {
|
|
19027
19011
|
}
|
19028
19012
|
static join(i) {
|
19029
19013
|
var r = i, { error: e } = r, t = Xi(r, ["error"]);
|
19030
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(
|
19014
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
19031
19015
|
return new R({ name: s, level: o, properties: n });
|
19032
19016
|
}
|
19033
19017
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -19070,7 +19054,7 @@ var y = class {
|
|
19070
19054
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
19071
19055
|
if (!t && e.degradedAt instanceof Date) {
|
19072
19056
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
19073
|
-
s = v(
|
19057
|
+
s = v(S({}, s), { duration: n, restoredAt: o });
|
19074
19058
|
}
|
19075
19059
|
return new R({ name: i, level: r, properties: s });
|
19076
19060
|
}
|
@@ -19088,8 +19072,7 @@ var y = class {
|
|
19088
19072
|
return new R({ name: "subscriber.stats", level: 1, properties: e });
|
19089
19073
|
}
|
19090
19074
|
static getKrispUsage(e) {
|
19091
|
-
|
19092
|
-
return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
|
19075
|
+
return new R({ name: "krisp.usage", level: 1, properties: { duration: e } });
|
19093
19076
|
}
|
19094
19077
|
static transportLeave() {
|
19095
19078
|
return new R({ name: "transport.leave", level: 1, properties: {} });
|
@@ -19099,14 +19082,14 @@ var y = class {
|
|
19099
19082
|
}
|
19100
19083
|
static getPropertiesWithError(e, t) {
|
19101
19084
|
let i = this.getErrorProperties(t);
|
19102
|
-
return e =
|
19085
|
+
return e = S(S({}, i), e), e;
|
19103
19086
|
}
|
19104
19087
|
static getErrorProperties(e) {
|
19105
19088
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
19106
19089
|
}
|
19107
19090
|
};
|
19108
19091
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
19109
|
-
var
|
19092
|
+
var pr = class {
|
19110
19093
|
constructor() {
|
19111
19094
|
this.storage = new ce("hms-device-selection");
|
19112
19095
|
this.remember = false;
|
@@ -19140,9 +19123,9 @@ var hr = class {
|
|
19140
19123
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
19141
19124
|
}
|
19142
19125
|
};
|
19143
|
-
var q = new
|
19144
|
-
var
|
19145
|
-
var
|
19126
|
+
var q = new pr();
|
19127
|
+
var hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
|
19128
|
+
var mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
|
19146
19129
|
function Jt(a2, e = 300) {
|
19147
19130
|
let t;
|
19148
19131
|
return function(...i) {
|
@@ -19153,10 +19136,10 @@ function Jt(a2, e = 300) {
|
|
19153
19136
|
}, e);
|
19154
19137
|
};
|
19155
19138
|
}
|
19156
|
-
var
|
19157
|
-
var
|
19158
|
-
var
|
19159
|
-
var
|
19139
|
+
var Hs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Hs || {});
|
19140
|
+
var Cs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Cs || {});
|
19141
|
+
var Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
|
19142
|
+
var Sr = class {
|
19160
19143
|
constructor() {
|
19161
19144
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
19162
19145
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19179,12 +19162,12 @@ var gr = class {
|
|
19179
19162
|
this.createObserver();
|
19180
19163
|
}
|
19181
19164
|
isSupported() {
|
19182
|
-
let e =
|
19165
|
+
let e = w && typeof window.IntersectionObserver != "undefined";
|
19183
19166
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
19184
19167
|
}
|
19185
19168
|
};
|
19186
|
-
var
|
19187
|
-
var
|
19169
|
+
var Ns = new Sr();
|
19170
|
+
var gr = class {
|
19188
19171
|
constructor() {
|
19189
19172
|
this.TAG = "[HMSResizeObserverWrapper]";
|
19190
19173
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19207,20 +19190,20 @@ var Tr = class {
|
|
19207
19190
|
this.createObserver();
|
19208
19191
|
}
|
19209
19192
|
isSupported() {
|
19210
|
-
let e =
|
19193
|
+
let e = w && typeof window.ResizeObserver != "undefined";
|
19211
19194
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
19212
19195
|
}
|
19213
19196
|
};
|
19214
|
-
var
|
19215
|
-
var
|
19216
|
-
var
|
19217
|
-
var
|
19218
|
-
var
|
19219
|
-
var
|
19220
|
-
var
|
19221
|
-
};
|
19222
|
-
|
19223
|
-
var
|
19197
|
+
var Os = new gr();
|
19198
|
+
var Tr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Tr || {});
|
19199
|
+
var fr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(fr || {});
|
19200
|
+
var Bs = "https://event.100ms.live/v2/client/report";
|
19201
|
+
var Vs = "https://event-nonprod.100ms.live/v2/client/report";
|
19202
|
+
var pt = Math.pow(2, 31) - 1;
|
19203
|
+
var Qe = class {
|
19204
|
+
};
|
19205
|
+
Qe.makePeerId = () => lo();
|
19206
|
+
var gt = "HMS-Store:";
|
19224
19207
|
var k = class {
|
19225
19208
|
static v(e, ...t) {
|
19226
19209
|
this.log(0, e, ...t);
|
@@ -19250,23 +19233,23 @@ var k = class {
|
|
19250
19233
|
if (!(this.level.valueOf() > e.valueOf()))
|
19251
19234
|
switch (e) {
|
19252
19235
|
case 0: {
|
19253
|
-
console.log(
|
19236
|
+
console.log(gt, ...t);
|
19254
19237
|
break;
|
19255
19238
|
}
|
19256
19239
|
case 1: {
|
19257
|
-
console.debug(
|
19240
|
+
console.debug(gt, ...t);
|
19258
19241
|
break;
|
19259
19242
|
}
|
19260
19243
|
case 2: {
|
19261
|
-
console.info(
|
19244
|
+
console.info(gt, ...t);
|
19262
19245
|
break;
|
19263
19246
|
}
|
19264
19247
|
case 3: {
|
19265
|
-
console.warn(
|
19248
|
+
console.warn(gt, ...t);
|
19266
19249
|
break;
|
19267
19250
|
}
|
19268
19251
|
case 6: {
|
19269
|
-
console.error(
|
19252
|
+
console.error(gt, ...t);
|
19270
19253
|
break;
|
19271
19254
|
}
|
19272
19255
|
case 4: {
|
@@ -19287,132 +19270,132 @@ var k = class {
|
|
19287
19270
|
}
|
19288
19271
|
};
|
19289
19272
|
k.level = 0;
|
19290
|
-
var
|
19291
|
-
var
|
19292
|
-
var
|
19273
|
+
var Rr = (a2, e) => e;
|
19274
|
+
var Tt = (a2, e) => e;
|
19275
|
+
var js = (a2, e) => e;
|
19276
|
+
var po = (a2, e) => e;
|
19293
19277
|
var ho = (a2, e) => e;
|
19294
|
-
var
|
19295
|
-
var
|
19296
|
-
var
|
19297
|
-
var So = createSelector([w, ft], (a2, e) => {
|
19278
|
+
var J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
|
19279
|
+
var Hr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
|
19280
|
+
var mo = createSelector([D, Tt], (a2, e) => {
|
19298
19281
|
if (!e)
|
19299
19282
|
return null;
|
19300
19283
|
let t = a2[e];
|
19301
19284
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
19302
19285
|
});
|
19303
|
-
var
|
19286
|
+
var So = createSelector([D, Tt], (a2, e) => {
|
19304
19287
|
if (!e)
|
19305
19288
|
return null;
|
19306
19289
|
let t = a2[e];
|
19307
19290
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
19308
19291
|
});
|
19309
|
-
var
|
19292
|
+
var go = createSelector([D, Tt], (a2, e) => {
|
19310
19293
|
if (!e)
|
19311
19294
|
return null;
|
19312
19295
|
let t = a2[e];
|
19313
19296
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19314
19297
|
});
|
19315
|
-
var
|
19298
|
+
var To = createSelector([D, Tt], (a2, e) => {
|
19316
19299
|
if (!e)
|
19317
19300
|
return null;
|
19318
19301
|
let t = a2[e];
|
19319
19302
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19320
19303
|
});
|
19321
|
-
var
|
19322
|
-
var Q =
|
19323
|
-
var
|
19304
|
+
var fo = createSelector([is, ho], (a2, e) => e ? a2[e] : null);
|
19305
|
+
var Q = b(J);
|
19306
|
+
var tm = b(createSelector([tr, po], (a2, e) => {
|
19324
19307
|
if (a2)
|
19325
19308
|
return e ? a2[e] : a2;
|
19326
19309
|
}));
|
19327
|
-
function
|
19310
|
+
function im(a2) {
|
19328
19311
|
return (e) => {
|
19329
19312
|
if (e.sessionStore)
|
19330
19313
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19331
19314
|
};
|
19332
19315
|
}
|
19333
|
-
var
|
19334
|
-
var oi =
|
19335
|
-
var
|
19336
|
-
var
|
19337
|
-
var
|
19338
|
-
var
|
19339
|
-
var
|
19316
|
+
var sm = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
19317
|
+
var oi = b(Hr);
|
19318
|
+
var Js = b(mo);
|
19319
|
+
var am = b(So);
|
19320
|
+
var om = b(go);
|
19321
|
+
var nm = b(To);
|
19322
|
+
var vo = b((a2, e) => {
|
19340
19323
|
let t = J(a2, e);
|
19341
19324
|
if (t && t.videoTrack && t.videoTrack !== "")
|
19342
19325
|
return a2.tracks[t.videoTrack];
|
19343
19326
|
});
|
19344
|
-
var
|
19327
|
+
var Mo = b((a2, e) => {
|
19345
19328
|
let t = J(a2, e);
|
19346
19329
|
if (t && t.audioTrack && t.audioTrack !== "")
|
19347
19330
|
return a2.tracks[t.audioTrack];
|
19348
19331
|
});
|
19349
|
-
var
|
19332
|
+
var dm = b((a2, e) => {
|
19350
19333
|
let t = J(a2, e);
|
19351
19334
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
19352
19335
|
});
|
19353
|
-
var
|
19354
|
-
var
|
19355
|
-
var
|
19356
|
-
let t =
|
19357
|
-
return
|
19358
|
-
};
|
19359
|
-
var
|
19360
|
-
var
|
19336
|
+
var Qs = (a2, e) => e ? a2.speakers[e] : null;
|
19337
|
+
var lm = b(createSelector(Qs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19338
|
+
var yo = (a2, e) => {
|
19339
|
+
let t = Mo(e)(a2);
|
19340
|
+
return Qs(a2, t == null ? void 0 : t.id);
|
19341
|
+
};
|
19342
|
+
var um = b(createSelector(yo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19343
|
+
var pm = b((a2, e) => {
|
19361
19344
|
if (e)
|
19362
19345
|
return a2.connectionQualities[e];
|
19363
19346
|
});
|
19364
|
-
var
|
19347
|
+
var hm = b((a2, e) => {
|
19365
19348
|
let t = J(a2, e);
|
19366
19349
|
if (t) {
|
19367
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
19350
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
|
19368
19351
|
return i ? a2.tracks[i] : void 0;
|
19369
19352
|
}
|
19370
19353
|
});
|
19371
|
-
var
|
19354
|
+
var mm = b(createSelector(D, J, (a2, e) => {
|
19372
19355
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19373
19356
|
let r = a2[i];
|
19374
|
-
return
|
19357
|
+
return rt(r) && it(r);
|
19375
19358
|
});
|
19376
19359
|
return t ? a2[t] : void 0;
|
19377
19360
|
}));
|
19378
|
-
var
|
19361
|
+
var Sm = b(createSelector(D, J, (a2, e) => {
|
19379
19362
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19380
19363
|
let r = a2[i];
|
19381
|
-
return
|
19364
|
+
return rt(r) && tt(r);
|
19382
19365
|
});
|
19383
19366
|
return t ? a2[t] : void 0;
|
19384
19367
|
}));
|
19385
|
-
var
|
19368
|
+
var gm = b(createSelector(D, J, (a2, e) => {
|
19386
19369
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19387
19370
|
let r = a2[i];
|
19388
|
-
return $t(r) &&
|
19371
|
+
return $t(r) && tt(r);
|
19389
19372
|
});
|
19390
19373
|
return t ? a2[t] : void 0;
|
19391
19374
|
}));
|
19392
|
-
var
|
19393
|
-
var
|
19394
|
-
var
|
19375
|
+
var zs = b(createSelector(D, J, (a2, e) => He(a2, e)));
|
19376
|
+
var Ys = (a2) => createSelector(zs(a2), (e) => e.audio);
|
19377
|
+
var fm = b((a2, e) => {
|
19395
19378
|
let t = J(a2, e);
|
19396
19379
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
19397
19380
|
});
|
19398
|
-
var
|
19381
|
+
var vm = b((a2, e) => {
|
19399
19382
|
let t = J(a2, e);
|
19400
19383
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
19401
19384
|
});
|
19402
|
-
var
|
19385
|
+
var Xs = b((a2, e) => {
|
19403
19386
|
if (e && a2.tracks[e])
|
19404
19387
|
return a2.tracks[e].volume === 0;
|
19405
19388
|
});
|
19406
|
-
var
|
19389
|
+
var Mm = b((a2, e) => {
|
19407
19390
|
let t = J(a2, e);
|
19408
|
-
return
|
19391
|
+
return Xs(t == null ? void 0 : t.audioTrack)(a2);
|
19409
19392
|
});
|
19410
|
-
var
|
19411
|
-
let t =
|
19412
|
-
return
|
19393
|
+
var ym = b((a2, e) => {
|
19394
|
+
let t = Ys(e)(a2);
|
19395
|
+
return Xs(t == null ? void 0 : t.id)(a2);
|
19413
19396
|
});
|
19414
|
-
var
|
19415
|
-
let t =
|
19397
|
+
var Zs = b((a2, e) => {
|
19398
|
+
let t = Hr(a2, e);
|
19416
19399
|
if (t) {
|
19417
19400
|
if (t.type !== "audio") {
|
19418
19401
|
k.w("Please pass audio track here");
|
@@ -19421,16 +19404,16 @@ var ea = A((a2, e) => {
|
|
19421
19404
|
return t.volume;
|
19422
19405
|
}
|
19423
19406
|
});
|
19424
|
-
var
|
19407
|
+
var km = b((a2, e) => {
|
19425
19408
|
let t = J(a2, e);
|
19426
|
-
return
|
19409
|
+
return Zs(t == null ? void 0 : t.audioTrack)(a2);
|
19427
19410
|
});
|
19428
|
-
var
|
19429
|
-
let t =
|
19430
|
-
return
|
19411
|
+
var Pm = b((a2, e) => {
|
19412
|
+
let t = Ys(e)(a2);
|
19413
|
+
return Zs(t == null ? void 0 : t.id)(a2);
|
19431
19414
|
});
|
19432
|
-
var
|
19433
|
-
let t =
|
19415
|
+
var Em = b((a2, e) => {
|
19416
|
+
let t = Hr(a2, e);
|
19434
19417
|
if (t) {
|
19435
19418
|
if (t.type !== "video") {
|
19436
19419
|
k.w("Please pass video track here");
|
@@ -19439,49 +19422,49 @@ var Hm = A((a2, e) => {
|
|
19439
19422
|
return t.layer;
|
19440
19423
|
}
|
19441
19424
|
});
|
19442
|
-
var
|
19425
|
+
var ea = createSelector([at, ue, Rr], (a2, e, t) => {
|
19443
19426
|
if (t)
|
19444
19427
|
return a2.filter((i) => {
|
19445
19428
|
var r;
|
19446
19429
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
19447
19430
|
});
|
19448
19431
|
});
|
19449
|
-
var
|
19432
|
+
var ta = createSelector([at, js], (a2, e) => {
|
19450
19433
|
if (e)
|
19451
19434
|
return a2.filter((t) => {
|
19452
19435
|
var i, r;
|
19453
19436
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
19454
19437
|
});
|
19455
19438
|
});
|
19456
|
-
var
|
19439
|
+
var ko = createSelector(at, (a2) => a2.filter((e) => {
|
19457
19440
|
var t;
|
19458
19441
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
19459
19442
|
}));
|
19460
|
-
var
|
19461
|
-
var
|
19462
|
-
var
|
19463
|
-
var
|
19464
|
-
var
|
19465
|
-
var
|
19466
|
-
var
|
19467
|
-
var
|
19468
|
-
var
|
19443
|
+
var Po = createSelector([ta, js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19444
|
+
var Eo = createSelector([ea, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19445
|
+
var bm = createSelector(ko, (a2) => a2.filter((e) => !e.read).length);
|
19446
|
+
var Am = b(ea);
|
19447
|
+
var Im = b(ta);
|
19448
|
+
var Rm = b(Po);
|
19449
|
+
var Hm = b(Eo);
|
19450
|
+
var ia = b(fo);
|
19451
|
+
var Vm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
|
19469
19452
|
var r;
|
19470
19453
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
19471
19454
|
}));
|
19472
|
-
var
|
19473
|
-
var
|
19474
|
-
var
|
19475
|
-
var
|
19476
|
-
var
|
19455
|
+
var bo = (a2) => a2.roleChangeRequests[0] || null;
|
19456
|
+
var Fm = createSelector([bo, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
19457
|
+
var Gm = createSelector([Kt], (a2) => st(a2));
|
19458
|
+
var $m = createSelector([es], (a2) => st(a2));
|
19459
|
+
var Io = createSelector([K, D], (a2, e) => {
|
19477
19460
|
let t = null;
|
19478
19461
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19479
19462
|
});
|
19480
|
-
var
|
19463
|
+
var Ro = createSelector([Z, D], (a2, e) => {
|
19481
19464
|
let t = null;
|
19482
19465
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19483
19466
|
});
|
19484
|
-
var
|
19467
|
+
var _r = class {
|
19485
19468
|
constructor() {
|
19486
19469
|
this.TAG = "[HTTPAnalyticsTransport]";
|
19487
19470
|
this.failedEvents = new ce("client-events");
|
@@ -19500,7 +19483,7 @@ var Nr = class {
|
|
19500
19483
|
this.addEventToStorage(e);
|
19501
19484
|
return;
|
19502
19485
|
}
|
19503
|
-
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ?
|
19486
|
+
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Bs : Vs;
|
19504
19487
|
fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
|
19505
19488
|
if (r.status === 401) {
|
19506
19489
|
this.removeFromStorage(e);
|
@@ -19526,66 +19509,66 @@ var Nr = class {
|
|
19526
19509
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
19527
19510
|
}
|
19528
19511
|
};
|
19529
|
-
var Te = new
|
19512
|
+
var Te = new _r();
|
19530
19513
|
var $ = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))($ || {});
|
19531
19514
|
var Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
|
19532
19515
|
var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
|
19533
|
-
var
|
19534
|
-
var
|
19535
|
-
var
|
19536
|
-
var
|
19537
|
-
var
|
19538
|
-
var
|
19539
|
-
var
|
19540
|
-
var
|
19541
|
-
var ve = createSelector([
|
19542
|
-
var
|
19516
|
+
var Jo = (a2) => a2.localPeer.id;
|
19517
|
+
var Qo = (a2) => a2.localPeer.audioTrack;
|
19518
|
+
var zo = (a2) => a2.localPeer.videoTrack;
|
19519
|
+
var Yo = (a2, e) => e;
|
19520
|
+
var va = (a2, e) => e;
|
19521
|
+
var Xo = (a2) => a2.remoteTrackStats;
|
19522
|
+
var Ma = (a2) => a2.peerStats;
|
19523
|
+
var Br = (a2) => a2.localTrackStats;
|
19524
|
+
var ve = createSelector([Ma, Jo], (a2, e) => a2[e]);
|
19525
|
+
var Zo = createSelector(ve, (a2) => {
|
19543
19526
|
var e;
|
19544
19527
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
19545
19528
|
});
|
19546
|
-
var
|
19529
|
+
var en = createSelector(ve, (a2) => {
|
19547
19530
|
var e;
|
19548
19531
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
19549
19532
|
});
|
19550
|
-
var
|
19533
|
+
var tn = createSelector(ve, (a2) => {
|
19551
19534
|
var e;
|
19552
19535
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
19553
19536
|
});
|
19554
|
-
var
|
19537
|
+
var rn = createSelector(ve, (a2) => {
|
19555
19538
|
var e;
|
19556
19539
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
19557
19540
|
});
|
19558
|
-
var
|
19541
|
+
var sn = createSelector(ve, (a2) => {
|
19559
19542
|
var e;
|
19560
19543
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
19561
19544
|
});
|
19562
|
-
var
|
19545
|
+
var an = createSelector(ve, (a2) => {
|
19563
19546
|
var e;
|
19564
19547
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
19565
19548
|
});
|
19566
|
-
var
|
19549
|
+
var on = createSelector(ve, (a2) => {
|
19567
19550
|
var e;
|
19568
19551
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
19569
19552
|
});
|
19570
|
-
var
|
19553
|
+
var nn = createSelector(ve, (a2) => {
|
19571
19554
|
var e;
|
19572
19555
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
19573
19556
|
});
|
19574
|
-
var
|
19575
|
-
var
|
19576
|
-
var
|
19577
|
-
var
|
19578
|
-
var
|
19579
|
-
var
|
19557
|
+
var cn = createSelector([Ma, Yo], (a2, e) => e ? a2[e] : void 0);
|
19558
|
+
var dn = createSelector([Xo, va], (a2, e) => e ? a2[e] : void 0);
|
19559
|
+
var Vr = createSelector([Br, va], (a2, e) => e ? a2[e] : void 0);
|
19560
|
+
var ln = b(cn);
|
19561
|
+
var un = b(dn);
|
19562
|
+
var pn = createSelector([Br, Qo], (a2, e) => {
|
19580
19563
|
var t;
|
19581
19564
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19582
19565
|
});
|
19583
|
-
var
|
19584
|
-
var
|
19566
|
+
var hn = b(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
|
19567
|
+
var mn = createSelector([Br, zo], (a2, e) => {
|
19585
19568
|
var t;
|
19586
19569
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19587
19570
|
});
|
19588
|
-
var
|
19571
|
+
var Sn = b(createSelector(Vr, (a2) => a2));
|
19589
19572
|
|
19590
19573
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
19591
19574
|
import {
|
@@ -19855,7 +19838,7 @@ var RecordingStatus = () => {
|
|
19855
19838
|
};
|
19856
19839
|
var RecordingPauseStatus = () => {
|
19857
19840
|
const recording = useHMSStore25(selectRecordingState);
|
19858
|
-
if (recording.hls && recording.hls.state ===
|
19841
|
+
if (recording.hls && recording.hls.state === Hs.PAUSED) {
|
19859
19842
|
return /* @__PURE__ */ React54.createElement(
|
19860
19843
|
Tooltip,
|
19861
19844
|
{
|
@@ -20255,6 +20238,8 @@ var MwebOptions = ({
|
|
20255
20238
|
const peerCount = useHMSStore29(selectPeerCount3);
|
20256
20239
|
const emojiCardRef = useRef14(null);
|
20257
20240
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
20241
|
+
const { toggleAudio, toggleVideo } = useAVToggle3();
|
20242
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
20258
20243
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
20259
20244
|
const { title, description } = useRoomLayoutHeader();
|
20260
20245
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -20316,7 +20301,7 @@ var MwebOptions = ({
|
|
20316
20301
|
/* @__PURE__ */ React58.createElement(PeopleIcon, null),
|
20317
20302
|
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, "Participants")
|
20318
20303
|
),
|
20319
|
-
|
20304
|
+
!noAVPermissions ? /* @__PURE__ */ React58.createElement(
|
20320
20305
|
ActionTile.Root,
|
20321
20306
|
{
|
20322
20307
|
active: isHandRaised,
|
@@ -20490,10 +20475,6 @@ import React60 from "react";
|
|
20490
20475
|
import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
|
20491
20476
|
var RaiseHand = ({ css: css2 }) => {
|
20492
20477
|
const { isHandRaised, toggleHandRaise } = useMyMetadata();
|
20493
|
-
const { elements } = useRoomLayoutConferencingScreen();
|
20494
|
-
if (!elements.hand_raise) {
|
20495
|
-
return null;
|
20496
|
-
}
|
20497
20478
|
return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
|
20498
20479
|
IconButton_default,
|
20499
20480
|
{
|
@@ -21017,7 +20998,7 @@ init_define_process_env();
|
|
21017
20998
|
import React69 from "react";
|
21018
20999
|
import { selectUnreadHMSMessagesCount, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
|
21019
21000
|
import { ChatIcon } from "@100mslive/react-icons";
|
21020
|
-
var ChatToggle = (
|
21001
|
+
var ChatToggle = () => {
|
21021
21002
|
const countUnreadMessages = useHMSStore32(selectUnreadHMSMessagesCount);
|
21022
21003
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21023
21004
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
@@ -21028,7 +21009,7 @@ var ChatToggle = ({ onClick }) => {
|
|
21028
21009
|
position: "relative"
|
21029
21010
|
}
|
21030
21011
|
},
|
21031
|
-
/* @__PURE__ */ React69.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ React69.createElement(IconButton_default, { onClick:
|
21012
|
+
/* @__PURE__ */ React69.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ React69.createElement(IconButton_default, { onClick: toggleChat, active: !isChatOpen, "data-testid": "chat_btn" }, /* @__PURE__ */ React69.createElement(ChatIcon, null))),
|
21032
21013
|
countUnreadMessages > 0 && /* @__PURE__ */ React69.createElement(
|
21033
21014
|
Flex,
|
21034
21015
|
{
|
@@ -21483,7 +21464,6 @@ var RoleAccordion = ({
|
|
21483
21464
|
return /* @__PURE__ */ React73.createElement(Accordion.Item, { value: roleName, css: { "&:hover .role_actions": { visibility: "visible" }, mb: "$8" }, ref }, /* @__PURE__ */ React73.createElement(
|
21484
21465
|
Accordion.Header,
|
21485
21466
|
{
|
21486
|
-
chevronID: `role_accordion_btn_${roleName}`,
|
21487
21467
|
iconStyles: { c: "$on_surface_high" },
|
21488
21468
|
css: {
|
21489
21469
|
textTransform: "capitalize",
|
@@ -21536,7 +21516,7 @@ var RoleAccordion = ({
|
|
21536
21516
|
},
|
21537
21517
|
/* @__PURE__ */ React73.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
21538
21518
|
/* @__PURE__ */ React73.createElement(ChevronRightIcon, null)
|
21539
|
-
) : null, isHandRaisedAccordion &&
|
21519
|
+
) : null, isHandRaisedAccordion && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(HorizontalDivider, null), /* @__PURE__ */ React73.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React73.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(CrossIcon11, null), " Lower all hands"), canBringToStage && /* @__PURE__ */ React73.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(AddIcon, null), " ", bring_to_stage_label)))));
|
21540
21520
|
};
|
21541
21521
|
|
21542
21522
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
@@ -21828,10 +21808,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
|
21828
21808
|
peerId,
|
21829
21809
|
role
|
21830
21810
|
});
|
21831
|
-
|
21832
|
-
return null;
|
21833
|
-
}
|
21834
|
-
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React74.createElement(CrossIcon12, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React74.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React74.createElement(AddIcon2, { height: 18, width: 18 })));
|
21811
|
+
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React74.createElement(CrossIcon12, { height: 18, width: 18 })), shouldShowStageRoleChange && !isInStage && /* @__PURE__ */ React74.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React74.createElement(AddIcon2, { height: 18, width: 18 })));
|
21835
21812
|
};
|
21836
21813
|
var ParticipantMoreActions = ({ peerId, role }) => {
|
21837
21814
|
const {
|
@@ -21944,42 +21921,29 @@ var PollsToggle = () => {
|
|
21944
21921
|
// src/Prebuilt/components/Footer/WhiteboardToggle.tsx
|
21945
21922
|
init_define_process_env();
|
21946
21923
|
import React76 from "react";
|
21947
|
-
import {
|
21924
|
+
import { useWhiteboard } from "@100mslive/react-sdk";
|
21948
21925
|
import { PencilDrawIcon } from "@100mslive/react-icons";
|
21949
21926
|
var WhiteboardToggle = () => {
|
21950
21927
|
const { toggle, open, isOwner } = useWhiteboard();
|
21951
|
-
const { screenSharingPeerId, amIScreenSharing } = useScreenShare4();
|
21952
|
-
const remoteScreenShare = screenSharingPeerId && !amIScreenSharing;
|
21953
|
-
const disabled = remoteScreenShare || open && !isOwner;
|
21954
21928
|
if (!toggle) {
|
21955
21929
|
return null;
|
21956
21930
|
}
|
21957
|
-
return /* @__PURE__ */ React76.createElement(
|
21958
|
-
|
21931
|
+
return /* @__PURE__ */ React76.createElement(Tooltip, { key: "whiteboard", title: `${open ? "Close" : "Open"} Whiteboard` }, /* @__PURE__ */ React76.createElement(
|
21932
|
+
IconButton_default,
|
21959
21933
|
{
|
21960
|
-
|
21961
|
-
|
21934
|
+
onClick: () => __async(void 0, null, function* () {
|
21935
|
+
try {
|
21936
|
+
yield toggle();
|
21937
|
+
} catch (error) {
|
21938
|
+
ToastManager.addToast({ title: error.message, variant: "error" });
|
21939
|
+
}
|
21940
|
+
}),
|
21941
|
+
active: !open,
|
21942
|
+
disabled: open && !isOwner,
|
21943
|
+
"data-testid": "whiteboard_btn"
|
21962
21944
|
},
|
21963
|
-
/* @__PURE__ */ React76.createElement(
|
21964
|
-
|
21965
|
-
{
|
21966
|
-
onClick: () => __async(void 0, null, function* () {
|
21967
|
-
if (disabled) {
|
21968
|
-
return;
|
21969
|
-
}
|
21970
|
-
try {
|
21971
|
-
yield toggle();
|
21972
|
-
} catch (error) {
|
21973
|
-
ToastManager.addToast({ title: error.message, variant: "error" });
|
21974
|
-
}
|
21975
|
-
}),
|
21976
|
-
active: !open,
|
21977
|
-
disabled,
|
21978
|
-
"data-testid": "whiteboard_btn"
|
21979
|
-
},
|
21980
|
-
/* @__PURE__ */ React76.createElement(PencilDrawIcon, null)
|
21981
|
-
)
|
21982
|
-
);
|
21945
|
+
/* @__PURE__ */ React76.createElement(PencilDrawIcon, null)
|
21946
|
+
));
|
21983
21947
|
};
|
21984
21948
|
|
21985
21949
|
// src/Prebuilt/components/Footer/Footer.tsx
|
@@ -21991,6 +21955,8 @@ var Footer2 = ({
|
|
21991
21955
|
const isMobile = useMedia11(config.media.md);
|
21992
21956
|
const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
|
21993
21957
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
|
21958
|
+
const { toggleAudio, toggleVideo } = useAVToggle4();
|
21959
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
21994
21960
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21995
21961
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
21996
21962
|
const { showPolls } = useShowPolls();
|
@@ -22038,7 +22004,7 @@ var Footer2 = ({
|
|
22038
22004
|
}
|
22039
22005
|
}
|
22040
22006
|
},
|
22041
|
-
isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
|
22007
|
+
isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, noAVPermissions ? /* @__PURE__ */ React77.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
|
22042
22008
|
),
|
22043
22009
|
/* @__PURE__ */ React77.createElement(Footer.Right, null, /* @__PURE__ */ React77.createElement(WhiteboardToggle, null), showPolls && /* @__PURE__ */ React77.createElement(PollsToggle, null), !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ React77.createElement(ParticipantCount, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType }))
|
22044
22010
|
);
|
@@ -22115,7 +22081,7 @@ import {
|
|
22115
22081
|
selectLocalPeer as selectLocalPeer7,
|
22116
22082
|
selectRoomState as selectRoomState5,
|
22117
22083
|
selectVideoTrackByID as selectVideoTrackByID5,
|
22118
|
-
useAVToggle as
|
22084
|
+
useAVToggle as useAVToggle6,
|
22119
22085
|
useHMSStore as useHMSStore70,
|
22120
22086
|
useParticipants as useParticipants2,
|
22121
22087
|
usePreviewJoin,
|
@@ -22377,10 +22343,10 @@ var PrevMenu = () => {
|
|
22377
22343
|
const sortedPolls = useMemo5(
|
22378
22344
|
() => {
|
22379
22345
|
var _a8;
|
22380
|
-
return (_a8 = polls == null ? void 0 : polls.sort((a2,
|
22346
|
+
return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
|
22381
22347
|
var _a9, _b7;
|
22382
|
-
return (((_a9 =
|
22383
|
-
})) == null ? void 0 : _a8.sort((a2,
|
22348
|
+
return (((_a9 = b2.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
|
22349
|
+
})) == null ? void 0 : _a8.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
|
22384
22350
|
},
|
22385
22351
|
[polls]
|
22386
22352
|
);
|
@@ -23882,7 +23848,7 @@ var usePinnedMessages = () => {
|
|
23882
23848
|
if (pinnedMessages[indexToRemove]) {
|
23883
23849
|
yield hmsActions.sessionStore.set(
|
23884
23850
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
23885
|
-
pinnedMessages.filter((
|
23851
|
+
pinnedMessages.filter((_, index) => index !== indexToRemove)
|
23886
23852
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
23887
23853
|
}
|
23888
23854
|
}),
|
@@ -24512,7 +24478,6 @@ var ChatBody = React108.forwardRef(
|
|
24512
24478
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
24513
24479
|
}, [blacklistedMessageIDs, messages]);
|
24514
24480
|
const vanillaStore = useHMSVanillaStore9();
|
24515
|
-
const rerenderOnFirstMount = useRef18(false);
|
24516
24481
|
useEffect26(() => {
|
24517
24482
|
const unsubscribe = vanillaStore.subscribe(() => {
|
24518
24483
|
if (!listRef.current) {
|
@@ -24525,12 +24490,6 @@ var ChatBody = React108.forwardRef(
|
|
24525
24490
|
}, selectUnreadHMSMessagesCount2);
|
24526
24491
|
return unsubscribe;
|
24527
24492
|
}, [vanillaStore, listRef, scrollToBottom]);
|
24528
|
-
useEffect26(() => {
|
24529
|
-
if (filteredMessages.length > 0 && (listRef == null ? void 0 : listRef.current) && !rerenderOnFirstMount.current) {
|
24530
|
-
rerenderOnFirstMount.current = true;
|
24531
|
-
listRef.current.resetAfterIndex(0);
|
24532
|
-
}
|
24533
|
-
}, [listRef, filteredMessages]);
|
24534
24493
|
return filteredMessages.length === 0 ? /* @__PURE__ */ React108.createElement(EmptyChat, null) : /* @__PURE__ */ React108.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
|
24535
24494
|
}
|
24536
24495
|
);
|
@@ -24563,7 +24522,7 @@ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRe
|
|
24563
24522
|
import { useMedia as useMedia16 } from "react-use";
|
24564
24523
|
import data2 from "@emoji-mart/data";
|
24565
24524
|
import Picker from "@emoji-mart/react";
|
24566
|
-
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24525
|
+
import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24567
24526
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24568
24527
|
|
24569
24528
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -24973,6 +24932,8 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24973
24932
|
const defaultSelection = useDefaultChatSelection();
|
24974
24933
|
const selection = selectedPeer.name || selectedRole || defaultSelection;
|
24975
24934
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
24935
|
+
const { toggleAudio, toggleVideo } = useAVToggle5();
|
24936
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
24976
24937
|
const isMwebHLSStream = useMobileHLSStream();
|
24977
24938
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
24978
24939
|
useEffect28(() => {
|
@@ -25138,7 +25099,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
25138
25099
|
},
|
25139
25100
|
gap: "2"
|
25140
25101
|
},
|
25141
|
-
/* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
|
25102
|
+
noAVPermissions ? /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
|
25142
25103
|
/* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
|
25143
25104
|
))));
|
25144
25105
|
};
|
@@ -25245,7 +25206,7 @@ var StickIndicator = ({ total, index }) => {
|
|
25245
25206
|
if (total < 2) {
|
25246
25207
|
return null;
|
25247
25208
|
}
|
25248
|
-
return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
25209
|
+
return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React114.createElement(
|
25249
25210
|
Box,
|
25250
25211
|
{
|
25251
25212
|
css: {
|
@@ -25380,7 +25341,7 @@ var Chat = () => {
|
|
25380
25341
|
const listRef = useRef21(null);
|
25381
25342
|
const hmsActions = useHMSActions39();
|
25382
25343
|
const vanillaStore = useHMSVanillaStore10();
|
25383
|
-
const { enabled: isChatEnabled = true } = useHMSStore60(
|
25344
|
+
const { enabled: isChatEnabled = true } = useHMSStore60(im("chatState" /* CHAT_STATE */)) || {};
|
25384
25345
|
const isMobile = useMedia18(config.media.md);
|
25385
25346
|
const isMobileHLSStream = useMobileHLSStream();
|
25386
25347
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -25464,7 +25425,7 @@ var NewMessageIndicator = ({
|
|
25464
25425
|
scrollToBottom,
|
25465
25426
|
listRef
|
25466
25427
|
}) => {
|
25467
|
-
const unreadCount = useHMSStore60(
|
25428
|
+
const unreadCount = useHMSStore60(Wn);
|
25468
25429
|
if (!unreadCount || !listRef.current) {
|
25469
25430
|
return null;
|
25470
25431
|
}
|
@@ -26552,10 +26513,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26552
26513
|
const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
|
26553
26514
|
const roomState = useHMSStore68(selectRoomState4);
|
26554
26515
|
const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
|
26555
|
-
const isEffectsEnabled = useHMSStore68(
|
26556
|
-
const effectsKey = useHMSStore68(
|
26516
|
+
const isEffectsEnabled = useHMSStore68(tc);
|
26517
|
+
const effectsKey = useHMSStore68(ic);
|
26557
26518
|
const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
26558
|
-
const background = useHMSStore68(
|
26519
|
+
const background = useHMSStore68(tm(APP_DATA.background));
|
26559
26520
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26560
26521
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26561
26522
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -26997,7 +26958,7 @@ var PreviewJoin = ({
|
|
26997
26958
|
const { isStreamingOn } = useRecordingStreaming11();
|
26998
26959
|
const authToken = useAuthToken();
|
26999
26960
|
const [name, setName] = useState56(initialName || previewPreference.name);
|
27000
|
-
const { toggleAudio, toggleVideo } =
|
26961
|
+
const { toggleAudio, toggleVideo } = useAVToggle6();
|
27001
26962
|
const [previewError, setPreviewError] = useState56(false);
|
27002
26963
|
const { endpoints } = useHMSPrebuiltContext();
|
27003
26964
|
const { peerCount } = useParticipants2();
|
@@ -27011,7 +26972,7 @@ var PreviewJoin = ({
|
|
27011
26972
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
27012
26973
|
},
|
27013
26974
|
captureNetworkQualityInPreview: true,
|
27014
|
-
handleError: (
|
26975
|
+
handleError: (_, method) => {
|
27015
26976
|
if (method === "preview") {
|
27016
26977
|
setPreviewError(true);
|
27017
26978
|
}
|
@@ -27085,7 +27046,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
27085
27046
|
}));
|
27086
27047
|
var PreviewTile = ({ name, error }) => {
|
27087
27048
|
const localPeer = useHMSStore70(selectLocalPeer7);
|
27088
|
-
const { isLocalAudioEnabled, toggleAudio } =
|
27049
|
+
const { isLocalAudioEnabled, toggleAudio } = useAVToggle6();
|
27089
27050
|
const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
|
27090
27051
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
27091
27052
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -27252,18 +27213,24 @@ var RoleChangeRequestModal = () => {
|
|
27252
27213
|
init_define_process_env();
|
27253
27214
|
import React151, { Suspense, useEffect as useEffect48 } from "react";
|
27254
27215
|
import { match as match11 } from "ts-pattern";
|
27255
|
-
import {
|
27216
|
+
import {
|
27217
|
+
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
27218
|
+
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
27219
|
+
selectPeerScreenSharing as selectPeerScreenSharing3,
|
27220
|
+
selectWhiteboard as selectWhiteboard2,
|
27221
|
+
useHMSActions as useHMSActions45,
|
27222
|
+
useHMSStore as useHMSStore81
|
27223
|
+
} from "@100mslive/react-sdk";
|
27256
27224
|
|
27257
27225
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
27258
27226
|
init_define_process_env();
|
27259
|
-
import
|
27227
|
+
import React146, { useEffect as useEffect43, useMemo as useMemo17, useState as useState64 } from "react";
|
27260
27228
|
import {
|
27261
27229
|
selectLocalPeerID as selectLocalPeerID14,
|
27262
27230
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
27263
27231
|
selectPeers as selectPeers3,
|
27264
27232
|
selectPeerScreenSharing,
|
27265
|
-
|
27266
|
-
useHMSStore as useHMSStore79,
|
27233
|
+
useHMSStore as useHMSStore78,
|
27267
27234
|
useHMSVanillaStore as useHMSVanillaStore12
|
27268
27235
|
} from "@100mslive/react-sdk";
|
27269
27236
|
|
@@ -27425,7 +27392,7 @@ var Pagination = ({
|
|
27425
27392
|
if (numPages <= 1) {
|
27426
27393
|
return null;
|
27427
27394
|
}
|
27428
|
-
return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((
|
27395
|
+
return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ React136.createElement(
|
27429
27396
|
StyledPagination.Dot,
|
27430
27397
|
{
|
27431
27398
|
key: i,
|
@@ -27532,7 +27499,7 @@ var useTileLayout = ({
|
|
27532
27499
|
}
|
27533
27500
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
27534
27501
|
let index = 0;
|
27535
|
-
const matrix = new Array(maxRows).fill(null).map((
|
27502
|
+
const matrix = new Array(maxRows).fill(null).map((_, i) => {
|
27536
27503
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
27537
27504
|
const rowElements = [];
|
27538
27505
|
for (let j = 0; j < numCols; j++) {
|
@@ -27553,10 +27520,10 @@ var useTileLayout = ({
|
|
27553
27520
|
tileHeight = maxRowHeight;
|
27554
27521
|
} else {
|
27555
27522
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
27556
|
-
for (const
|
27557
|
-
if (
|
27558
|
-
if (tileHeight <
|
27559
|
-
tileHeight =
|
27523
|
+
for (const h of calcHeights) {
|
27524
|
+
if (h < maxRowHeight) {
|
27525
|
+
if (tileHeight < h) {
|
27526
|
+
tileHeight = h;
|
27560
27527
|
}
|
27561
27528
|
}
|
27562
27529
|
}
|
@@ -28170,84 +28137,6 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28170
28137
|
), layoutMode === LayoutMode.SPOTLIGHT && activeSharePeer && /* @__PURE__ */ React145.createElement(InsetTile, { peerId: activeSharePeer == null ? void 0 : activeSharePeer.id }));
|
28171
28138
|
};
|
28172
28139
|
|
28173
|
-
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
28174
|
-
init_define_process_env();
|
28175
|
-
import React146, { useEffect as useEffect43, useMemo as useMemo17 } from "react";
|
28176
|
-
import { useMedia as useMedia33 } from "react-use";
|
28177
|
-
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28178
|
-
var WhiteboardEmbed = () => {
|
28179
|
-
const isMobile = useMedia33(config.media.md);
|
28180
|
-
const { iframeRef } = useWhiteboard2(isMobile);
|
28181
|
-
return /* @__PURE__ */ React146.createElement(
|
28182
|
-
Box,
|
28183
|
-
{
|
28184
|
-
css: {
|
28185
|
-
mx: "$8",
|
28186
|
-
flex: "3 1 0",
|
28187
|
-
"@lg": {
|
28188
|
-
flex: "2 1 0",
|
28189
|
-
display: "flex",
|
28190
|
-
alignItems: "center"
|
28191
|
-
}
|
28192
|
-
}
|
28193
|
-
},
|
28194
|
-
/* @__PURE__ */ React146.createElement(
|
28195
|
-
"iframe",
|
28196
|
-
{
|
28197
|
-
title: "Whiteboard View",
|
28198
|
-
ref: iframeRef,
|
28199
|
-
style: {
|
28200
|
-
width: "100%",
|
28201
|
-
height: "100%",
|
28202
|
-
border: 0,
|
28203
|
-
borderRadius: "0.75rem"
|
28204
|
-
},
|
28205
|
-
allow: "autoplay; clipboard-write;",
|
28206
|
-
referrerPolicy: "no-referrer"
|
28207
|
-
}
|
28208
|
-
)
|
28209
|
-
);
|
28210
|
-
};
|
28211
|
-
var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
28212
|
-
const whiteboard = useHMSStore78(selectWhiteboard);
|
28213
|
-
const whiteboardOwner = useHMSStore78(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
28214
|
-
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28215
|
-
const isMobile = useMedia33(config.media.md);
|
28216
|
-
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28217
|
-
const secondaryPeers = useMemo17(() => {
|
28218
|
-
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
28219
|
-
return [];
|
28220
|
-
}
|
28221
|
-
if (isMobile || layoutMode === LayoutMode.SIDEBAR) {
|
28222
|
-
return whiteboardOwner ? [whiteboardOwner, ...peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id))] : peers;
|
28223
|
-
}
|
28224
|
-
return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
|
28225
|
-
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
28226
|
-
useEffect43(() => {
|
28227
|
-
if (isMobile) {
|
28228
|
-
setLayoutMode(LayoutMode.GALLERY);
|
28229
|
-
return;
|
28230
|
-
}
|
28231
|
-
if (layoutMode === LayoutMode.SIDEBAR) {
|
28232
|
-
return;
|
28233
|
-
}
|
28234
|
-
setLayoutMode(LayoutMode.SIDEBAR);
|
28235
|
-
return () => {
|
28236
|
-
setLayoutMode(LayoutMode.GALLERY);
|
28237
|
-
};
|
28238
|
-
}, [isMobile]);
|
28239
|
-
return /* @__PURE__ */ React146.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React146.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React146.createElement(WhiteboardEmbed, null)), /* @__PURE__ */ React146.createElement(
|
28240
|
-
SecondaryTiles,
|
28241
|
-
{
|
28242
|
-
peers: secondaryPeers,
|
28243
|
-
onPageChange,
|
28244
|
-
onPageSize,
|
28245
|
-
edgeToEdge,
|
28246
|
-
hasSidebar
|
28247
|
-
}
|
28248
|
-
), layoutMode === LayoutMode.SPOTLIGHT && whiteboardOwner && /* @__PURE__ */ React146.createElement(InsetTile, { peerId: whiteboardOwner == null ? void 0 : whiteboardOwner.id }));
|
28249
|
-
};
|
28250
|
-
|
28251
28140
|
// src/Prebuilt/common/PeersSorter.ts
|
28252
28141
|
init_define_process_env();
|
28253
28142
|
import { selectDominantSpeaker as selectDominantSpeaker2 } from "@100mslive/react-sdk";
|
@@ -28259,7 +28148,7 @@ var PeersSorter = class {
|
|
28259
28148
|
this.speaker = void 0;
|
28260
28149
|
this.tilesPerPage = tilesPerPage;
|
28261
28150
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
28262
|
-
this.peers.forEach((
|
28151
|
+
this.peers.forEach((_, key) => {
|
28263
28152
|
if (!peerIds.has(key)) {
|
28264
28153
|
this.peers.delete(key);
|
28265
28154
|
}
|
@@ -28355,19 +28244,18 @@ var GridLayout = ({
|
|
28355
28244
|
edge_to_edge = false,
|
28356
28245
|
hide_metadata_on_tile = false
|
28357
28246
|
}) => {
|
28358
|
-
const peerSharing =
|
28359
|
-
const whiteboard = useHMSStore79(selectWhiteboard2);
|
28247
|
+
const peerSharing = useHMSStore78(selectPeerScreenSharing);
|
28360
28248
|
const pinnedTrack = usePinnedTrack();
|
28361
|
-
const peers =
|
28362
|
-
const localPeerRole =
|
28363
|
-
const localPeerID =
|
28249
|
+
const peers = useHMSStore78(selectPeers3);
|
28250
|
+
const localPeerRole = useHMSStore78(selectLocalPeerRoleName5);
|
28251
|
+
const localPeerID = useHMSStore78(selectLocalPeerID14);
|
28364
28252
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28365
28253
|
const isRoleProminence = prominentRoles.length && peers.some(
|
28366
28254
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
28367
28255
|
) || pinnedTrack;
|
28368
|
-
const updatedPeers =
|
28369
|
-
if (activeScreensharePeerId
|
28370
|
-
return peers.filter((peer) => peer.id !== activeScreensharePeerId
|
28256
|
+
const updatedPeers = useMemo17(() => {
|
28257
|
+
if (activeScreensharePeerId) {
|
28258
|
+
return peers.filter((peer) => peer.id !== activeScreensharePeerId);
|
28371
28259
|
}
|
28372
28260
|
if (isInsetEnabled) {
|
28373
28261
|
const isLocalPeerPinned = localPeerID === (pinnedTrack == null ? void 0 : pinnedTrack.peerId);
|
@@ -28378,19 +28266,10 @@ var GridLayout = ({
|
|
28378
28266
|
}
|
28379
28267
|
}
|
28380
28268
|
return peers;
|
28381
|
-
}, [
|
28382
|
-
isInsetEnabled,
|
28383
|
-
whiteboard,
|
28384
|
-
activeScreensharePeerId,
|
28385
|
-
localPeerRole,
|
28386
|
-
localPeerID,
|
28387
|
-
prominentRoles,
|
28388
|
-
peers,
|
28389
|
-
pinnedTrack
|
28390
|
-
]);
|
28269
|
+
}, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
|
28391
28270
|
const vanillaStore = useHMSVanillaStore12();
|
28392
28271
|
const [sortedPeers, setSortedPeers] = useState64(updatedPeers);
|
28393
|
-
const peersSorter =
|
28272
|
+
const peersSorter = useMemo17(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
28394
28273
|
const [pageSize, setPageSize] = useState64(0);
|
28395
28274
|
const [mainPage, setMainPage] = useState64(0);
|
28396
28275
|
const tileLayout = {
|
@@ -28401,7 +28280,7 @@ var GridLayout = ({
|
|
28401
28280
|
hideMetadataOnTile: hide_metadata_on_tile,
|
28402
28281
|
objectFit: video_object_fit
|
28403
28282
|
};
|
28404
|
-
|
28283
|
+
useEffect43(() => {
|
28405
28284
|
if (mainPage !== 0) {
|
28406
28285
|
return;
|
28407
28286
|
}
|
@@ -28412,7 +28291,7 @@ var GridLayout = ({
|
|
28412
28291
|
peersSorter.onUpdate(setSortedPeers);
|
28413
28292
|
}, [mainPage, peersSorter, updatedPeers, pageSize]);
|
28414
28293
|
if (peerSharing) {
|
28415
|
-
return /* @__PURE__ */
|
28294
|
+
return /* @__PURE__ */ React146.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React146.createElement(
|
28416
28295
|
ScreenshareLayout,
|
28417
28296
|
{
|
28418
28297
|
peers: sortedPeers,
|
@@ -28421,18 +28300,8 @@ var GridLayout = ({
|
|
28421
28300
|
edgeToEdge: edge_to_edge
|
28422
28301
|
}
|
28423
28302
|
));
|
28424
|
-
} else if (whiteboard == null ? void 0 : whiteboard.open) {
|
28425
|
-
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28426
|
-
WhiteboardLayout,
|
28427
|
-
{
|
28428
|
-
peers: sortedPeers,
|
28429
|
-
onPageSize: setPageSize,
|
28430
|
-
onPageChange: setMainPage,
|
28431
|
-
edgeToEdge: edge_to_edge
|
28432
|
-
}
|
28433
|
-
));
|
28434
28303
|
} else if (isRoleProminence) {
|
28435
|
-
return /* @__PURE__ */
|
28304
|
+
return /* @__PURE__ */ React146.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React146.createElement(
|
28436
28305
|
RoleProminence,
|
28437
28306
|
{
|
28438
28307
|
peers: sortedPeers,
|
@@ -28444,7 +28313,7 @@ var GridLayout = ({
|
|
28444
28313
|
}
|
28445
28314
|
));
|
28446
28315
|
}
|
28447
|
-
return /* @__PURE__ */
|
28316
|
+
return /* @__PURE__ */ React146.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React146.createElement(
|
28448
28317
|
EqualProminence,
|
28449
28318
|
{
|
28450
28319
|
peers: sortedPeers,
|
@@ -28458,32 +28327,32 @@ var GridLayout = ({
|
|
28458
28327
|
|
28459
28328
|
// src/Prebuilt/layouts/EmbedView.jsx
|
28460
28329
|
init_define_process_env();
|
28461
|
-
import
|
28462
|
-
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as
|
28330
|
+
import React147, { useEffect as useEffect44, useMemo as useMemo18 } from "react";
|
28331
|
+
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
|
28463
28332
|
var EmbedView = () => {
|
28464
|
-
return /* @__PURE__ */
|
28333
|
+
return /* @__PURE__ */ React147.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React147.createElement(EmbedComponent, null));
|
28465
28334
|
};
|
28466
28335
|
var EmbedScreenShareView = ({ children }) => {
|
28467
|
-
const peers =
|
28468
|
-
const peerPresenting =
|
28336
|
+
const peers = useHMSStore79(selectPeers4);
|
28337
|
+
const peerPresenting = useHMSStore79(selectPeerScreenSharing2);
|
28469
28338
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28470
|
-
const smallTilePeers =
|
28339
|
+
const smallTilePeers = useMemo18(() => {
|
28471
28340
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
28472
28341
|
return smallTilePeers2;
|
28473
28342
|
}, [peers, peerPresenting]);
|
28474
|
-
|
28343
|
+
useEffect44(() => {
|
28475
28344
|
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
28476
28345
|
return () => {
|
28477
28346
|
setActiveScreenSharePeer("");
|
28478
28347
|
};
|
28479
28348
|
}, [peerPresenting == null ? void 0 : peerPresenting.id, setActiveScreenSharePeer]);
|
28480
|
-
return /* @__PURE__ */
|
28349
|
+
return /* @__PURE__ */ React147.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React147.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React147.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28481
28350
|
};
|
28482
28351
|
var EmbedComponent = () => {
|
28483
|
-
const embedConfig =
|
28352
|
+
const embedConfig = useHMSStore79(selectAppData8(APP_DATA.embedConfig));
|
28484
28353
|
const resetConfig = useResetEmbedConfig();
|
28485
28354
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
28486
|
-
|
28355
|
+
useEffect44(() => {
|
28487
28356
|
(() => __async(void 0, null, function* () {
|
28488
28357
|
if (embedConfig && !isEmbedShareInProgress) {
|
28489
28358
|
try {
|
@@ -28498,7 +28367,7 @@ var EmbedComponent = () => {
|
|
28498
28367
|
}
|
28499
28368
|
}))();
|
28500
28369
|
}, [isEmbedShareInProgress, embedConfig, startEmbedShare, resetConfig]);
|
28501
|
-
return /* @__PURE__ */
|
28370
|
+
return /* @__PURE__ */ React147.createElement(
|
28502
28371
|
Box,
|
28503
28372
|
{
|
28504
28373
|
css: {
|
@@ -28511,7 +28380,7 @@ var EmbedComponent = () => {
|
|
28511
28380
|
}
|
28512
28381
|
}
|
28513
28382
|
},
|
28514
|
-
/* @__PURE__ */
|
28383
|
+
/* @__PURE__ */ React147.createElement(
|
28515
28384
|
"iframe",
|
28516
28385
|
{
|
28517
28386
|
title: "Embed View",
|
@@ -28531,13 +28400,13 @@ var EmbedComponent = () => {
|
|
28531
28400
|
|
28532
28401
|
// src/Prebuilt/layouts/PDFView.jsx
|
28533
28402
|
init_define_process_env();
|
28534
|
-
import
|
28403
|
+
import React148, { useEffect as useEffect45 } from "react";
|
28535
28404
|
import { usePDFShare } from "@100mslive/react-sdk";
|
28536
28405
|
var PDFView = () => {
|
28537
28406
|
const pdfConfig = usePDFConfig();
|
28538
28407
|
const resetConfig = useResetPDFConfig();
|
28539
28408
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
28540
|
-
|
28409
|
+
useEffect45(() => {
|
28541
28410
|
(() => __async(void 0, null, function* () {
|
28542
28411
|
try {
|
28543
28412
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -28552,7 +28421,7 @@ var PDFView = () => {
|
|
28552
28421
|
}
|
28553
28422
|
}))();
|
28554
28423
|
}, [isPDFShareInProgress, pdfConfig, resetConfig, startPDFShare]);
|
28555
|
-
return /* @__PURE__ */
|
28424
|
+
return /* @__PURE__ */ React148.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React148.createElement(
|
28556
28425
|
Box,
|
28557
28426
|
{
|
28558
28427
|
css: {
|
@@ -28565,7 +28434,7 @@ var PDFView = () => {
|
|
28565
28434
|
}
|
28566
28435
|
}
|
28567
28436
|
},
|
28568
|
-
/* @__PURE__ */
|
28437
|
+
/* @__PURE__ */ React148.createElement(
|
28569
28438
|
"iframe",
|
28570
28439
|
{
|
28571
28440
|
title: "Embed View",
|
@@ -28585,10 +28454,10 @@ var PDFView = () => {
|
|
28585
28454
|
|
28586
28455
|
// src/Prebuilt/layouts/WaitingView.jsx
|
28587
28456
|
init_define_process_env();
|
28588
|
-
import
|
28457
|
+
import React149 from "react";
|
28589
28458
|
import { ColoredTimeIcon } from "@100mslive/react-icons";
|
28590
|
-
var WaitingView =
|
28591
|
-
return /* @__PURE__ */
|
28459
|
+
var WaitingView = React149.memo(() => {
|
28460
|
+
return /* @__PURE__ */ React149.createElement(
|
28592
28461
|
Box,
|
28593
28462
|
{
|
28594
28463
|
css: {
|
@@ -28602,7 +28471,7 @@ var WaitingView = React150.memo(() => {
|
|
28602
28471
|
},
|
28603
28472
|
"data-testid": "waiting_view"
|
28604
28473
|
},
|
28605
|
-
/* @__PURE__ */
|
28474
|
+
/* @__PURE__ */ React149.createElement(
|
28606
28475
|
Flex,
|
28607
28476
|
{
|
28608
28477
|
align: "center",
|
@@ -28616,8 +28485,8 @@ var WaitingView = React150.memo(() => {
|
|
28616
28485
|
gap: "$8"
|
28617
28486
|
}
|
28618
28487
|
},
|
28619
|
-
/* @__PURE__ */
|
28620
|
-
/* @__PURE__ */
|
28488
|
+
/* @__PURE__ */ React149.createElement(ColoredTimeIcon, { width: "80px", height: "80px" }),
|
28489
|
+
/* @__PURE__ */ React149.createElement(
|
28621
28490
|
Flex,
|
28622
28491
|
{
|
28623
28492
|
direction: "column",
|
@@ -28627,52 +28496,101 @@ var WaitingView = React150.memo(() => {
|
|
28627
28496
|
gap: "$4"
|
28628
28497
|
}
|
28629
28498
|
},
|
28630
|
-
/* @__PURE__ */
|
28631
|
-
/* @__PURE__ */
|
28499
|
+
/* @__PURE__ */ React149.createElement(Text, { color: "white", variant: "h6", css: { "@md": { fontSize: "$md" } } }, "Please wait"),
|
28500
|
+
/* @__PURE__ */ React149.createElement(Text, { color: "$on_surface_medium", css: { mt: "$4", "@md": { fontSize: "$sm" } } }, "Sit back and relax till others let you join.")
|
28632
28501
|
)
|
28633
28502
|
)
|
28634
28503
|
);
|
28635
28504
|
});
|
28636
28505
|
|
28506
|
+
// src/Prebuilt/layouts/WhiteboardView.tsx
|
28507
|
+
init_define_process_env();
|
28508
|
+
import React150, { useEffect as useEffect46, useMemo as useMemo19 } from "react";
|
28509
|
+
import { useMedia as useMedia33 } from "react-use";
|
28510
|
+
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28511
|
+
var EmbedComponent2 = () => {
|
28512
|
+
const isMobile = useMedia33(config.media.md);
|
28513
|
+
const { iframeRef } = useWhiteboard2(isMobile);
|
28514
|
+
return /* @__PURE__ */ React150.createElement(
|
28515
|
+
Box,
|
28516
|
+
{
|
28517
|
+
css: {
|
28518
|
+
mx: "$8",
|
28519
|
+
flex: "3 1 0",
|
28520
|
+
"@lg": {
|
28521
|
+
flex: "2 1 0",
|
28522
|
+
display: "flex",
|
28523
|
+
alignItems: "center"
|
28524
|
+
}
|
28525
|
+
}
|
28526
|
+
},
|
28527
|
+
/* @__PURE__ */ React150.createElement(
|
28528
|
+
"iframe",
|
28529
|
+
{
|
28530
|
+
title: "Whiteboard View",
|
28531
|
+
ref: iframeRef,
|
28532
|
+
style: {
|
28533
|
+
width: "100%",
|
28534
|
+
height: "100%",
|
28535
|
+
border: 0,
|
28536
|
+
borderRadius: "0.75rem"
|
28537
|
+
},
|
28538
|
+
allow: "autoplay; clipboard-write;",
|
28539
|
+
referrerPolicy: "no-referrer"
|
28540
|
+
}
|
28541
|
+
)
|
28542
|
+
);
|
28543
|
+
};
|
28544
|
+
var WhiteboardView = () => {
|
28545
|
+
const peers = useHMSStore80(selectPeers5);
|
28546
|
+
const whiteboard = useHMSStore80(selectWhiteboard);
|
28547
|
+
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28548
|
+
const smallTilePeers = useMemo19(() => {
|
28549
|
+
const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
|
28550
|
+
return smallTilePeers2;
|
28551
|
+
}, [peers, whiteboard == null ? void 0 : whiteboard.owner]);
|
28552
|
+
useEffect46(() => {
|
28553
|
+
setActiveScreenSharePeer((whiteboard == null ? void 0 : whiteboard.owner) || "");
|
28554
|
+
return () => {
|
28555
|
+
setActiveScreenSharePeer("");
|
28556
|
+
};
|
28557
|
+
}, [whiteboard == null ? void 0 : whiteboard.owner, setActiveScreenSharePeer]);
|
28558
|
+
return /* @__PURE__ */ React150.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React150.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React150.createElement(EmbedComponent2, null)), /* @__PURE__ */ React150.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28559
|
+
};
|
28560
|
+
|
28637
28561
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
28638
28562
|
init_define_process_env();
|
28639
28563
|
import { useEffect as useEffect47 } from "react";
|
28640
28564
|
import { usePrevious } from "react-use";
|
28641
|
-
import { useScreenShare as
|
28565
|
+
import { useScreenShare as useScreenShare4, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
28642
28566
|
var useCloseScreenshareWhiteboard = () => {
|
28643
|
-
const { amIScreenSharing,
|
28567
|
+
const { amIScreenSharing, toggleScreenShare } = useScreenShare4();
|
28644
28568
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
28645
|
-
const prevScreenSharer = usePrevious(
|
28569
|
+
const prevScreenSharer = usePrevious(amIScreenSharing);
|
28646
28570
|
const prevWhiteboardOwner = usePrevious(isWhiteboardOwner);
|
28647
28571
|
useEffect47(() => {
|
28648
|
-
if (isWhiteboardOwner &&
|
28649
|
-
if (prevScreenSharer &&
|
28572
|
+
if (isWhiteboardOwner && amIScreenSharing) {
|
28573
|
+
if (prevScreenSharer && !prevWhiteboardOwner) {
|
28650
28574
|
toggleScreenShare == null ? void 0 : toggleScreenShare();
|
28651
28575
|
} else if (prevWhiteboardOwner && !prevScreenSharer) {
|
28652
28576
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
28653
28577
|
}
|
28654
28578
|
}
|
28655
|
-
}, [
|
28656
|
-
isWhiteboardOwner,
|
28657
|
-
screenSharingPeerId,
|
28658
|
-
amIScreenSharing,
|
28659
|
-
prevScreenSharer,
|
28660
|
-
prevWhiteboardOwner,
|
28661
|
-
toggleScreenShare,
|
28662
|
-
toggleWhiteboard
|
28663
|
-
]);
|
28579
|
+
}, [isWhiteboardOwner, amIScreenSharing, prevScreenSharer, prevWhiteboardOwner, toggleScreenShare, toggleWhiteboard]);
|
28664
28580
|
};
|
28665
28581
|
|
28666
28582
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28667
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28583
|
+
var HLSView = React151.lazy(() => import("./HLSView-VUANLYLS.js"));
|
28668
28584
|
var VideoStreamingSection = ({
|
28669
28585
|
screenType,
|
28670
28586
|
elements,
|
28671
28587
|
hideControls = false
|
28672
28588
|
}) => {
|
28673
|
-
var _a8, _b7;
|
28589
|
+
var _a8, _b7, _c, _d;
|
28674
28590
|
const localPeerRole = useHMSStore81(selectLocalPeerRoleName6);
|
28675
28591
|
const isConnected = useHMSStore81(selectIsConnectedToRoom9);
|
28592
|
+
const peerSharing = useHMSStore81(selectPeerScreenSharing3);
|
28593
|
+
const isWhiteboardOpen = (_a8 = useHMSStore81(selectWhiteboard2)) == null ? void 0 : _a8.open;
|
28676
28594
|
const hmsActions = useHMSActions45();
|
28677
28595
|
const waitingViewerRole = useWaitingViewerRole();
|
28678
28596
|
const urlToIframe = useUrlToEmbed();
|
@@ -28704,8 +28622,12 @@ var VideoStreamingSection = ({
|
|
28704
28622
|
ViewComponent = /* @__PURE__ */ React151.createElement(PDFView, null);
|
28705
28623
|
} else if (urlToIframe) {
|
28706
28624
|
ViewComponent = /* @__PURE__ */ React151.createElement(EmbedView, null);
|
28625
|
+
} else if (peerSharing) {
|
28626
|
+
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid));
|
28627
|
+
} else if (isWhiteboardOpen) {
|
28628
|
+
ViewComponent = /* @__PURE__ */ React151.createElement(WhiteboardView, null);
|
28707
28629
|
} else {
|
28708
|
-
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (
|
28630
|
+
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (_c = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _c.grid));
|
28709
28631
|
}
|
28710
28632
|
return /* @__PURE__ */ React151.createElement(Suspense, { fallback: /* @__PURE__ */ React151.createElement(FullPageProgress_default, null) }, /* @__PURE__ */ React151.createElement(
|
28711
28633
|
Flex,
|
@@ -28734,7 +28656,7 @@ var VideoStreamingSection = ({
|
|
28734
28656
|
SidePane_default,
|
28735
28657
|
{
|
28736
28658
|
screenType,
|
28737
|
-
tileProps: (
|
28659
|
+
tileProps: (_d = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _d.grid,
|
28738
28660
|
hideControls
|
28739
28661
|
}
|
28740
28662
|
)
|
@@ -28994,6 +28916,8 @@ var ConferenceScreen = () => {
|
|
28994
28916
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
28995
28917
|
const dropdownListRef = useRef25();
|
28996
28918
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
28919
|
+
const { toggleAudio, toggleVideo } = useAVToggle7();
|
28920
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
28997
28921
|
const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
|
28998
28922
|
const autoRoomJoined = useRef25(isPreviewScreenEnabled);
|
28999
28923
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -29117,7 +29041,7 @@ var ConferenceScreen = () => {
|
|
29117
29041
|
justify: "end",
|
29118
29042
|
gap: "2"
|
29119
29043
|
},
|
29120
|
-
/* @__PURE__ */ React155.createElement(RaiseHand, null),
|
29044
|
+
noAVPermissions ? /* @__PURE__ */ React155.createElement(RaiseHand, null) : null,
|
29121
29045
|
/* @__PURE__ */ React155.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
|
29122
29046
|
/* @__PURE__ */ React155.createElement(
|
29123
29047
|
Box,
|
@@ -29656,7 +29580,7 @@ import {
|
|
29656
29580
|
PeopleRemoveIcon as PeopleRemoveIcon4,
|
29657
29581
|
PoorConnectivityIcon as PoorConnectivityIcon2
|
29658
29582
|
} from "@100mslive/react-icons";
|
29659
|
-
var ChatAction = React163.forwardRef((
|
29583
|
+
var ChatAction = React163.forwardRef((_, ref) => {
|
29660
29584
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
29661
29585
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
29662
29586
|
if (isChatOpen) {
|
@@ -30271,7 +30195,7 @@ function Notifications() {
|
|
30271
30195
|
}, []);
|
30272
30196
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
30273
30197
|
useEffect65(() => {
|
30274
|
-
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
30198
|
+
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
|
30275
30199
|
if (!notification || isNotificationDisabled) {
|
30276
30200
|
return;
|
30277
30201
|
}
|
@@ -30312,7 +30236,7 @@ function Notifications() {
|
|
30312
30236
|
});
|
30313
30237
|
break;
|
30314
30238
|
case HMSNotificationTypes10.ROLE_UPDATED: {
|
30315
|
-
if (((
|
30239
|
+
if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
30316
30240
|
ToastManager.addToast({
|
30317
30241
|
title: `You are now a ${notification.data.roleName}`
|
30318
30242
|
});
|
@@ -30929,7 +30853,6 @@ var TextArea = styled("textarea", {
|
|
30929
30853
|
|
30930
30854
|
export {
|
30931
30855
|
__spreadValues,
|
30932
|
-
__spreadProps,
|
30933
30856
|
__objRest,
|
30934
30857
|
__async,
|
30935
30858
|
init_define_process_env,
|
@@ -31029,4 +30952,4 @@ lodash/lodash.js:
|
|
31029
30952
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
31030
30953
|
*)
|
31031
30954
|
*/
|
31032
|
-
//# sourceMappingURL=chunk-
|
30955
|
+
//# sourceMappingURL=chunk-5WTUTVRO.js.map
|