@100mslive/roomkit-react 0.2.7 → 0.2.8-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-KPCDHIH2.js → HLSView-37B2YVTC.js} +2 -2
- package/dist/Prebuilt/components/MoreSettings/FullScreenItem.d.ts +2 -0
- package/dist/Prebuilt/components/MoreSettings/MuteAllContent.d.ts +15 -0
- package/dist/Prebuilt/components/MoreSettings/MuteAllModal.d.ts +5 -0
- package/dist/Prebuilt/components/MoreSettings/constants.d.ts +8 -0
- package/dist/Prebuilt/components/hooks/useFullscreen.d.ts +5 -0
- package/dist/{chunk-Q6VWGYM4.js → chunk-72B32WVR.js} +663 -636
- package/dist/chunk-72B32WVR.js.map +7 -0
- package/dist/index.cjs.js +969 -946
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +105 -61
- package/dist/meta.esbuild.json +111 -67
- package/package.json +6 -6
- package/src/Prebuilt/components/Connection/TileConnection.tsx +30 -27
- package/src/Prebuilt/components/Footer/RoleOptions.tsx +81 -38
- package/src/Prebuilt/components/MoreSettings/{FullScreenItem.jsx → FullScreenItem.tsx} +1 -1
- package/src/Prebuilt/components/MoreSettings/MuteAllContent.tsx +81 -0
- package/src/Prebuilt/components/MoreSettings/{MuteAllModal.jsx → MuteAllModal.tsx} +21 -22
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +0 -2
- package/src/Prebuilt/components/MoreSettings/constants.ts +12 -0
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +4 -2
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +2 -2
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +1 -1
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -1
- package/src/Prebuilt/components/VideoLayouts/RoleProminence.tsx +5 -1
- package/src/Prebuilt/components/hooks/{useFullscreen.js → useFullscreen.ts} +5 -3
- package/src/Prebuilt/primitives/DialogContent.jsx +3 -2
- package/dist/chunk-Q6VWGYM4.js.map +0 -7
- package/src/Prebuilt/components/MoreSettings/MuteAllContent.jsx +0 -61
- /package/dist/{HLSView-KPCDHIH2.js.map → HLSView-37B2YVTC.js.map} +0 -0
@@ -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 = (to, 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(to, key) && key !== except)
|
50
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
51
51
|
}
|
52
|
-
return
|
52
|
+
return to;
|
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_4b303fa8-d556-4910-b51b-dcd502c32470", 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.21 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.9.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4b303fa8-d556-4910-b51b-dcd502c32470", 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.12.7", 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.7", 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: "591", 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.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240218.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.0/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:18895", 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.2.7", 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: "8015224502", 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_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: "34ebd883853e8aefe7054badd305f7bdf813df58", 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: "b1705fb7dfaf5be68c0480ad49b85b8f789313691d64ac3ad7de0addea86c20b", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", 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--1708667115207-0.6212878650294971:/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--1708667115019-0.5686017916348498:/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--1708667094088-0.972733614539623:/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--1708667093919-0.6325795866908743:/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_98100392-c109-4888-be7b-02bb2be733cc", INVOCATION_ID: "1f3bd554fca44d2296d7e5fba54b84f2", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "448", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", 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 307", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", 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.9.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.7", 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: "34ebd883853e8aefe7054badd305f7bdf813df58", 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/main", GITHUB_ACTOR: "KaustubhKumar05", 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_4b303fa8-d556-4910-b51b-dcd502c32470", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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_4b303fa8-d556-4910-b51b-dcd502c32470", 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_4b303fa8-d556-4910-b51b-dcd502c32470" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_24dcdf95-58ce-42bd-8106-372091da51d6", 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.21 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.9.8-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_24dcdf95-58ce-42bd-8106-372091da51d6", 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.12.8-alpha.0", 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.7", 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.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240218.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.0/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:19317", 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.2.8-alpha.0", 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: "8049573559", 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_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: "9eade912c3121837ed2b09ef0047bfbdb6f7cdf2", 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: "cfef66f67f9c72976bccd67b4c9311aaa942f13d441174c054c9117d513a40fe", 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--1708953751238-0.271551730031129:/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--1708953751042-0.034731111596302044:/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--1708953728172-0.622987475170591:/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--1708953727993-0.5386297543083511:/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_42149012-d290-4591-bd14-5a80e5f45413", INVOCATION_ID: "b278f1c25e2444e6a3c875a6df492d26", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "449", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", 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 496", 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.9.8-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.0", 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: "9eade912c3121837ed2b09ef0047bfbdb6f7cdf2", 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: "KaustubhKumar05", 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_24dcdf95-58ce-42bd-8106-372091da51d6", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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_24dcdf95-58ce-42bd-8106-372091da51d6", 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_24dcdf95-58ce-42bd-8106-372091da51d6" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -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;
|
@@ -5628,18 +5628,18 @@ var require_ua_parser = __commonJS({
|
|
5628
5628
|
}
|
5629
5629
|
};
|
5630
5630
|
var rgxMapper = function(ua, arrays) {
|
5631
|
-
var i = 0,
|
5631
|
+
var i = 0, j, k2, p, q2, matches, match;
|
5632
5632
|
while (i < arrays.length && !matches) {
|
5633
5633
|
var regex = arrays[i], props = arrays[i + 1];
|
5634
|
-
|
5635
|
-
while (
|
5636
|
-
if (!regex[
|
5634
|
+
j = k2 = 0;
|
5635
|
+
while (j < regex.length && !matches) {
|
5636
|
+
if (!regex[j]) {
|
5637
5637
|
break;
|
5638
5638
|
}
|
5639
|
-
matches = regex[
|
5639
|
+
matches = regex[j++].exec(ua);
|
5640
5640
|
if (!!matches) {
|
5641
5641
|
for (p = 0; p < props.length; p++) {
|
5642
|
-
match = matches[++
|
5642
|
+
match = matches[++k2];
|
5643
5643
|
q2 = props[p];
|
5644
5644
|
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
5645
5645
|
if (q2.length === 2) {
|
@@ -5668,8 +5668,8 @@ var require_ua_parser = __commonJS({
|
|
5668
5668
|
}, strMapper = function(str, map) {
|
5669
5669
|
for (var i in map) {
|
5670
5670
|
if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
|
5671
|
-
for (var
|
5672
|
-
if (has(map[i][
|
5671
|
+
for (var j = 0; j < map[i].length; j++) {
|
5672
|
+
if (has(map[i][j], str)) {
|
5673
5673
|
return i === UNKNOWN ? undefined2 : i;
|
5674
5674
|
}
|
5675
5675
|
}
|
@@ -7693,8 +7693,8 @@ var require_sdp = __commonJS({
|
|
7693
7693
|
const parsed = {};
|
7694
7694
|
let kv;
|
7695
7695
|
const parts = line.substring(line.indexOf(" ") + 1).split(";");
|
7696
|
-
for (let
|
7697
|
-
kv = parts[
|
7696
|
+
for (let j = 0; j < parts.length; j++) {
|
7697
|
+
kv = parts[j].trim().split("=");
|
7698
7698
|
parsed[kv[0].trim()] = kv[1];
|
7699
7699
|
}
|
7700
7700
|
return parsed;
|
@@ -8674,8 +8674,8 @@ var require_parser = __commonJS({
|
|
8674
8674
|
media.push({ rtp: [], fmtp: [] });
|
8675
8675
|
location = media[media.length - 1];
|
8676
8676
|
}
|
8677
|
-
for (var
|
8678
|
-
var obj = grammar[type][
|
8677
|
+
for (var j = 0; j < (grammar[type] || []).length; j += 1) {
|
8678
|
+
var obj = grammar[type][j];
|
8679
8679
|
if (obj.reg.test(content)) {
|
8680
8680
|
return parseReg(obj, location, content);
|
8681
8681
|
}
|
@@ -11176,12 +11176,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
11176
11176
|
if (!bytes) {
|
11177
11177
|
return "-";
|
11178
11178
|
}
|
11179
|
-
const
|
11180
|
-
const
|
11179
|
+
const k2 = 1024;
|
11180
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
11181
11181
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
11182
|
-
let i = Math.floor(Math.log(bytes) / Math.log(
|
11182
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k2));
|
11183
11183
|
i === 0 && i++;
|
11184
|
-
return `${parseFloat((bytes / Math.pow(
|
11184
|
+
return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2))} ${sizes[i]}`;
|
11185
11185
|
};
|
11186
11186
|
|
11187
11187
|
// src/Stats/StyledStats.tsx
|
@@ -11907,7 +11907,7 @@ import {
|
|
11907
11907
|
HMSRoomProvider,
|
11908
11908
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
11909
11909
|
useHMSActions as useHMSActions53,
|
11910
|
-
useHMSStore as
|
11910
|
+
useHMSStore as useHMSStore93
|
11911
11911
|
} from "@100mslive/react-sdk";
|
11912
11912
|
|
11913
11913
|
// src/Prebuilt/components/AppData/AppData.tsx
|
@@ -12874,7 +12874,7 @@ import {
|
|
12874
12874
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
12875
12875
|
selectRoomState as selectRoomState7,
|
12876
12876
|
useHMSActions as useHMSActions46,
|
12877
|
-
useHMSStore as
|
12877
|
+
useHMSStore as useHMSStore82
|
12878
12878
|
} from "@100mslive/react-sdk";
|
12879
12879
|
|
12880
12880
|
// src/Prebuilt/components/Footer/Footer.tsx
|
@@ -14462,7 +14462,7 @@ import { useMedia as useMedia8 } from "react-use";
|
|
14462
14462
|
init_define_process_env();
|
14463
14463
|
import React52, { Fragment as Fragment7, useState as useState23 } from "react";
|
14464
14464
|
import { HMSHLSPlayer } from "@100mslive/hls-player";
|
14465
|
-
import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions15, useHMSStore as
|
14465
|
+
import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions15, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
|
14466
14466
|
import { BrbIcon, CheckIcon as CheckIcon5, HamburgerMenuIcon, InfoIcon as InfoIcon2, PipIcon as PipIcon2, SettingsIcon as SettingsIcon3 } from "@100mslive/react-icons";
|
14467
14467
|
|
14468
14468
|
// src/Prebuilt/components/PIP/index.jsx
|
@@ -15187,7 +15187,7 @@ import React44, { useRef as useRef10 } from "react";
|
|
15187
15187
|
import { CheckIcon as CheckIcon3, CloudUploadIcon, CrossIcon as CrossIcon6 } from "@100mslive/react-icons";
|
15188
15188
|
var DialogContent = (_a8) => {
|
15189
15189
|
var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
|
15190
|
-
return /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React44.createElement(Dialog.Title, null, /* @__PURE__ */ React44.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React44.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ React44.createElement(
|
15190
|
+
return /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React44.createElement(Dialog.Title, null, /* @__PURE__ */ React44.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React44.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ React44.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ React44.createElement(Icon4, null)) : null, /* @__PURE__ */ React44.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React44.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React44.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React44.createElement(Box, null, children)));
|
15191
15191
|
};
|
15192
15192
|
var ErrorDialog = (_a8) => {
|
15193
15193
|
var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
|
@@ -15668,11 +15668,11 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
|
15668
15668
|
return "-";
|
15669
15669
|
if (bytes === 0)
|
15670
15670
|
return "0 " + unit;
|
15671
|
-
const
|
15672
|
-
const
|
15671
|
+
const k2 = 1024;
|
15672
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
15673
15673
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
15674
|
-
const i = Math.floor(Math.log(bytes) / Math.log(
|
15675
|
-
return parseFloat((bytes / Math.pow(
|
15674
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k2));
|
15675
|
+
return parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2)) + " " + sizes[i];
|
15676
15676
|
};
|
15677
15677
|
|
15678
15678
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
@@ -15783,12 +15783,12 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
15783
15783
|
})))), /* @__PURE__ */ React48.createElement(DialogRow, null, errorMessage && /* @__PURE__ */ React48.createElement(Flex, { gap: 2, css: { c: "$alert_error_default", w: "70%", ml: "auto" } }, /* @__PURE__ */ React48.createElement(AlertTriangleIcon4, null), /* @__PURE__ */ React48.createElement(Text, { css: { c: "inherit" } }, errorMessage))), /* @__PURE__ */ React48.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React48.createElement(Button, { variant: "primary", onClick: changeBulkRole, disabled: !(selectedRole && selectedBulkRole.length > 0) }, isSubmiting && /* @__PURE__ */ React48.createElement(Loading, { css: { color: "$on_primary_medium" } }), "Apply"))));
|
15784
15784
|
};
|
15785
15785
|
|
15786
|
-
// src/Prebuilt/components/MoreSettings/FullScreenItem.
|
15786
|
+
// src/Prebuilt/components/MoreSettings/FullScreenItem.tsx
|
15787
15787
|
init_define_process_env();
|
15788
15788
|
import React49 from "react";
|
15789
15789
|
import { ExpandIcon } from "@100mslive/react-icons";
|
15790
15790
|
|
15791
|
-
// src/Prebuilt/components/hooks/useFullscreen.
|
15791
|
+
// src/Prebuilt/components/hooks/useFullscreen.ts
|
15792
15792
|
init_define_process_env();
|
15793
15793
|
import { useCallback as useCallback11, useEffect as useEffect15, useState as useState21 } from "react";
|
15794
15794
|
import screenfull from "screenfull";
|
@@ -15800,10 +15800,11 @@ var useFullscreen = () => {
|
|
15800
15800
|
return;
|
15801
15801
|
}
|
15802
15802
|
try {
|
15803
|
+
const container = document.querySelector(DEFAULT_PORTAL_CONTAINER);
|
15803
15804
|
if (isFullScreenEnabled) {
|
15804
15805
|
yield screenfull.exit();
|
15805
|
-
} else {
|
15806
|
-
yield screenfull.request(
|
15806
|
+
} else if (container) {
|
15807
|
+
yield screenfull.request(container);
|
15807
15808
|
}
|
15808
15809
|
} catch (err) {
|
15809
15810
|
ToastManager.addToast({ title: err.message });
|
@@ -15829,7 +15830,7 @@ var useFullscreen = () => {
|
|
15829
15830
|
};
|
15830
15831
|
};
|
15831
15832
|
|
15832
|
-
// src/Prebuilt/components/MoreSettings/FullScreenItem.
|
15833
|
+
// src/Prebuilt/components/MoreSettings/FullScreenItem.tsx
|
15833
15834
|
var FullScreenItem = () => {
|
15834
15835
|
const { allowed, isFullscreen, toggleFullscreen } = useFullscreen();
|
15835
15836
|
if (!allowed) {
|
@@ -15848,17 +15849,40 @@ var FullScreenItem = () => {
|
|
15848
15849
|
);
|
15849
15850
|
};
|
15850
15851
|
|
15851
|
-
// src/Prebuilt/components/MoreSettings/MuteAllModal.
|
15852
|
+
// src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
|
15852
15853
|
init_define_process_env();
|
15853
15854
|
import React51, { useCallback as useCallback12, useState as useState22 } from "react";
|
15854
|
-
import {
|
15855
|
+
import {
|
15856
|
+
selectAvailableRoleNames as selectAvailableRoleNames3,
|
15857
|
+
useHMSActions as useHMSActions13,
|
15858
|
+
useHMSStore as useHMSStore19
|
15859
|
+
} from "@100mslive/react-sdk";
|
15855
15860
|
import { MicOffIcon as MicOffIcon2 } from "@100mslive/react-icons";
|
15856
15861
|
|
15857
|
-
// src/Prebuilt/components/MoreSettings/MuteAllContent.
|
15862
|
+
// src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
|
15858
15863
|
init_define_process_env();
|
15859
15864
|
import React50 from "react";
|
15865
|
+
import { selectPermissions as selectPermissions6, useHMSStore as useHMSStore18 } from "@100mslive/react-sdk";
|
15866
|
+
|
15867
|
+
// src/Prebuilt/components/MoreSettings/constants.ts
|
15868
|
+
init_define_process_env();
|
15869
|
+
var trackSourceOptions = [
|
15870
|
+
{ label: "All Track Sources", value: "" },
|
15871
|
+
{ label: "regular", value: "regular" },
|
15872
|
+
{ label: "screen", value: "screen" },
|
15873
|
+
{ label: "audioplaylist", value: "audioplaylist" },
|
15874
|
+
{ label: "videoplaylist", value: "videoplaylist" }
|
15875
|
+
];
|
15876
|
+
var trackTypeOptions = [
|
15877
|
+
{ label: "All Track Types", value: "" },
|
15878
|
+
{ label: "audio", value: "audio" },
|
15879
|
+
{ label: "video", value: "video" }
|
15880
|
+
];
|
15881
|
+
|
15882
|
+
// src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
|
15860
15883
|
var MuteAllContent = (props) => {
|
15861
15884
|
const roles = props.roles || [];
|
15885
|
+
const permissions = useHMSStore18(selectPermissions6);
|
15862
15886
|
return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(
|
15863
15887
|
DialogSelect,
|
15864
15888
|
{
|
@@ -15873,7 +15897,7 @@ var MuteAllContent = (props) => {
|
|
15873
15897
|
DialogSelect,
|
15874
15898
|
{
|
15875
15899
|
title: "Track type",
|
15876
|
-
options:
|
15900
|
+
options: trackTypeOptions,
|
15877
15901
|
selected: props.trackType,
|
15878
15902
|
onChange: props.setTrackType,
|
15879
15903
|
keyField: "value",
|
@@ -15883,30 +15907,21 @@ var MuteAllContent = (props) => {
|
|
15883
15907
|
DialogSelect,
|
15884
15908
|
{
|
15885
15909
|
title: "Track source",
|
15886
|
-
options:
|
15910
|
+
options: trackSourceOptions,
|
15887
15911
|
selected: props.selectedSource,
|
15888
15912
|
onChange: props.setSource,
|
15889
15913
|
keyField: "value",
|
15890
15914
|
labelField: "label"
|
15891
15915
|
}
|
15892
|
-
), /* @__PURE__ */ React50.createElement(DialogRow, null, /* @__PURE__ */ React50.createElement(Text, { variant: "md" }, "Track status"), /* @__PURE__ */ React50.createElement(RadioGroup.Root, { value: props.enabled, onValueChange: props.setEnabled }, /* @__PURE__ */ React50.createElement(Flex, { align: "center", css: { mr: "$8" } }, /* @__PURE__ */ React50.createElement(RadioGroup.Item, { value: false, id: "trackDisableRadio", css: { mr: "$4" } }, /* @__PURE__ */ React50.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ React50.createElement(Label3, { htmlFor: "trackDisableRadio" }, "Mute")), /* @__PURE__ */ React50.createElement(Flex, { align: "center", css: { cursor: "pointer" } }, /* @__PURE__ */ React50.createElement(RadioGroup.Item, { value: true, id: "trackEnableRadio", css: { mr: "$4" } }, /* @__PURE__ */ React50.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ React50.createElement(Label3, { htmlFor: "trackEnableRadio" }, "Request Unmute")))), /* @__PURE__ */ React50.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React50.createElement(Button, { variant: "primary", onClick: props.muteAll, css: { w: (props == null ? void 0 : props.isMobile) ? "100%" : "" } }, "Apply")));
|
15916
|
+
), /* @__PURE__ */ React50.createElement(DialogRow, null, /* @__PURE__ */ React50.createElement(Text, { variant: "md" }, "Track status"), /* @__PURE__ */ React50.createElement(RadioGroup.Root, { value: String(props.enabled), onValueChange: (value) => props.setEnabled(value === "true") }, (permissions == null ? void 0 : permissions.mute) && /* @__PURE__ */ React50.createElement(Flex, { align: "center", css: { mr: "$8" } }, /* @__PURE__ */ React50.createElement(RadioGroup.Item, { value: "false", id: "trackDisableRadio", css: { mr: "$4" } }, /* @__PURE__ */ React50.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ React50.createElement(Label3, { htmlFor: "trackDisableRadio" }, "Mute")), (permissions == null ? void 0 : permissions.unmute) && /* @__PURE__ */ React50.createElement(Flex, { align: "center", css: { cursor: "pointer" } }, /* @__PURE__ */ React50.createElement(RadioGroup.Item, { value: "true", id: "trackEnableRadio", css: { mr: "$4" } }, /* @__PURE__ */ React50.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ React50.createElement(Label3, { htmlFor: "trackEnableRadio" }, "Request Unmute")))), /* @__PURE__ */ React50.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React50.createElement(Button, { variant: "primary", onClick: props.muteAll, css: { w: (props == null ? void 0 : props.isMobile) ? "100%" : "" } }, "Apply")));
|
15893
15917
|
};
|
15894
15918
|
|
15895
|
-
// src/Prebuilt/components/MoreSettings/MuteAllModal.
|
15896
|
-
var
|
15897
|
-
|
15898
|
-
|
15899
|
-
|
15900
|
-
|
15901
|
-
{ label: "videoplaylist", value: "videoplaylist" }
|
15902
|
-
];
|
15903
|
-
var trackTypeOptions = [
|
15904
|
-
{ label: "All Track Types", value: "" },
|
15905
|
-
{ label: "audio", value: "audio" },
|
15906
|
-
{ label: "video", value: "video" }
|
15907
|
-
];
|
15908
|
-
var MuteAllModal = ({ onOpenChange, isMobile = false }) => {
|
15909
|
-
const roles = useFilteredRoles();
|
15919
|
+
// src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
|
15920
|
+
var MuteAllModal = ({
|
15921
|
+
onOpenChange,
|
15922
|
+
isMobile = false
|
15923
|
+
}) => {
|
15924
|
+
const roles = useHMSStore19(selectAvailableRoleNames3);
|
15910
15925
|
const hmsActions = useHMSActions13();
|
15911
15926
|
const [enabled, setEnabled] = useState22(false);
|
15912
15927
|
const [trackType, setTrackType] = useState22();
|
@@ -15932,8 +15947,6 @@ var MuteAllModal = ({ onOpenChange, isMobile = false }) => {
|
|
15932
15947
|
setRole,
|
15933
15948
|
selectedSource,
|
15934
15949
|
setSource,
|
15935
|
-
trackSourceOptions,
|
15936
|
-
trackTypeOptions,
|
15937
15950
|
isMobile
|
15938
15951
|
};
|
15939
15952
|
if (isMobile) {
|
@@ -15950,15 +15963,15 @@ import {
|
|
15950
15963
|
selectLocalPeerID as selectLocalPeerID3,
|
15951
15964
|
selectPeerMetadata as selectPeerMetadata2,
|
15952
15965
|
useHMSActions as useHMSActions14,
|
15953
|
-
useHMSStore as
|
15966
|
+
useHMSStore as useHMSStore20,
|
15954
15967
|
useHMSVanillaStore as useHMSVanillaStore6
|
15955
15968
|
} from "@100mslive/react-sdk";
|
15956
15969
|
var useMyMetadata = () => {
|
15957
15970
|
const hmsActions = useHMSActions14();
|
15958
|
-
const localPeerId =
|
15971
|
+
const localPeerId = useHMSStore20(selectLocalPeerID3);
|
15959
15972
|
const vanillaStore = useHMSVanillaStore6();
|
15960
|
-
const metaData =
|
15961
|
-
const isHandRaised =
|
15973
|
+
const metaData = useHMSStore20(selectPeerMetadata2(localPeerId));
|
15974
|
+
const isHandRaised = useHMSStore20(selectHasPeerHandRaised(localPeerId));
|
15962
15975
|
const update = (updatedFields) => __async(void 0, null, function* () {
|
15963
15976
|
try {
|
15964
15977
|
const currentMetadata = vanillaStore.getState(selectPeerMetadata2(localPeerId));
|
@@ -16015,9 +16028,9 @@ var DesktopOptions = ({
|
|
16015
16028
|
elements,
|
16016
16029
|
screenType
|
16017
16030
|
}) => {
|
16018
|
-
const localPeerId =
|
16031
|
+
const localPeerId = useHMSStore21(selectLocalPeerID4);
|
16019
16032
|
const hmsActions = useHMSActions15();
|
16020
|
-
const enablHlsStats =
|
16033
|
+
const enablHlsStats = useHMSStore21(selectAppData3(APP_DATA.hlsStats));
|
16021
16034
|
const [openModals, setOpenModals] = useState23(/* @__PURE__ */ new Set());
|
16022
16035
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
16023
16036
|
const isPipOn = PictureInPicture.isOn();
|
@@ -16108,10 +16121,10 @@ import { useClickAway } from "react-use";
|
|
16108
16121
|
import {
|
16109
16122
|
selectIsConnectedToRoom as selectIsConnectedToRoom7,
|
16110
16123
|
selectPeerCount as selectPeerCount3,
|
16111
|
-
selectPermissions as
|
16124
|
+
selectPermissions as selectPermissions8,
|
16112
16125
|
useAVToggle as useAVToggle3,
|
16113
16126
|
useHMSActions as useHMSActions21,
|
16114
|
-
useHMSStore as
|
16127
|
+
useHMSStore as useHMSStore29,
|
16115
16128
|
useRecordingStreaming as useRecordingStreaming7
|
16116
16129
|
} from "@100mslive/react-sdk";
|
16117
16130
|
import {
|
@@ -16217,8 +16230,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
16217
16230
|
// ../hms-video-store/dist/index.js
|
16218
16231
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
16219
16232
|
var import_lodash3 = __toESM(require_lodash2());
|
16233
|
+
import { v4 as Ga } from "uuid";
|
16220
16234
|
import { v4 as Ba } from "uuid";
|
16221
|
-
import { v4 as Ua } from "uuid";
|
16222
16235
|
|
16223
16236
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
16224
16237
|
init_define_process_env();
|
@@ -16710,20 +16723,20 @@ function shimOnTrack(window2) {
|
|
16710
16723
|
}
|
16711
16724
|
function shimGetSendersWithDtmf(window2) {
|
16712
16725
|
if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
|
16713
|
-
const shimSenderWithDtmf = function(
|
16726
|
+
const shimSenderWithDtmf = function(pc2, track) {
|
16714
16727
|
return {
|
16715
16728
|
track,
|
16716
16729
|
get dtmf() {
|
16717
16730
|
if (this._dtmf === void 0) {
|
16718
16731
|
if (track.kind === "audio") {
|
16719
|
-
this._dtmf =
|
16732
|
+
this._dtmf = pc2.createDTMFSender(track);
|
16720
16733
|
} else {
|
16721
16734
|
this._dtmf = null;
|
16722
16735
|
}
|
16723
16736
|
}
|
16724
16737
|
return this._dtmf;
|
16725
16738
|
},
|
16726
|
-
_pc:
|
16739
|
+
_pc: pc2
|
16727
16740
|
};
|
16728
16741
|
};
|
16729
16742
|
if (!window2.RTCPeerConnection.prototype.getSenders) {
|
@@ -17078,11 +17091,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
|
|
17078
17091
|
}
|
17079
17092
|
return this.getSenders().find((s) => s.track === track);
|
17080
17093
|
};
|
17081
|
-
function replaceInternalStreamId(
|
17094
|
+
function replaceInternalStreamId(pc2, description) {
|
17082
17095
|
let sdp2 = description.sdp;
|
17083
|
-
Object.keys(
|
17084
|
-
const externalStream =
|
17085
|
-
const internalStream =
|
17096
|
+
Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
|
17097
|
+
const externalStream = pc2._reverseStreams[internalId];
|
17098
|
+
const internalStream = pc2._streams[externalStream.id];
|
17086
17099
|
sdp2 = sdp2.replace(
|
17087
17100
|
new RegExp(internalStream.id, "g"),
|
17088
17101
|
externalStream.id
|
@@ -17093,11 +17106,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
|
|
17093
17106
|
sdp: sdp2
|
17094
17107
|
});
|
17095
17108
|
}
|
17096
|
-
function replaceExternalStreamId(
|
17109
|
+
function replaceExternalStreamId(pc2, description) {
|
17097
17110
|
let sdp2 = description.sdp;
|
17098
|
-
Object.keys(
|
17099
|
-
const externalStream =
|
17100
|
-
const internalStream =
|
17111
|
+
Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
|
17112
|
+
const externalStream = pc2._reverseStreams[internalId];
|
17113
|
+
const internalStream = pc2._streams[externalStream.id];
|
17101
17114
|
sdp2 = sdp2.replace(
|
17102
17115
|
new RegExp(externalStream.id, "g"),
|
17103
17116
|
internalStream.id
|
@@ -17211,9 +17224,9 @@ function shimPeerConnection(window2, browserDetails) {
|
|
17211
17224
|
}
|
17212
17225
|
function fixNegotiationNeeded(window2, browserDetails) {
|
17213
17226
|
wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
|
17214
|
-
const
|
17215
|
-
if (browserDetails.version < 72 ||
|
17216
|
-
if (
|
17227
|
+
const pc2 = e.target;
|
17228
|
+
if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
|
17229
|
+
if (pc2.signalingState !== "stable") {
|
17217
17230
|
return;
|
17218
17231
|
}
|
17219
17232
|
}
|
@@ -17660,24 +17673,24 @@ function shimRemoteStreamsAPI(window2) {
|
|
17660
17673
|
});
|
17661
17674
|
const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
|
17662
17675
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
17663
|
-
const
|
17676
|
+
const pc2 = this;
|
17664
17677
|
if (!this._onaddstreampoly) {
|
17665
17678
|
this.addEventListener("track", this._onaddstreampoly = function(e) {
|
17666
17679
|
e.streams.forEach((stream) => {
|
17667
|
-
if (!
|
17668
|
-
|
17680
|
+
if (!pc2._remoteStreams) {
|
17681
|
+
pc2._remoteStreams = [];
|
17669
17682
|
}
|
17670
|
-
if (
|
17683
|
+
if (pc2._remoteStreams.indexOf(stream) >= 0) {
|
17671
17684
|
return;
|
17672
17685
|
}
|
17673
|
-
|
17686
|
+
pc2._remoteStreams.push(stream);
|
17674
17687
|
const event = new Event("addstream");
|
17675
17688
|
event.stream = stream;
|
17676
|
-
|
17689
|
+
pc2.dispatchEvent(event);
|
17677
17690
|
});
|
17678
17691
|
});
|
17679
17692
|
}
|
17680
|
-
return origSetRemoteDescription.apply(
|
17693
|
+
return origSetRemoteDescription.apply(pc2, arguments);
|
17681
17694
|
};
|
17682
17695
|
}
|
17683
17696
|
}
|
@@ -18043,13 +18056,13 @@ function shimSendThrowTypeError(window2) {
|
|
18043
18056
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
18044
18057
|
return;
|
18045
18058
|
}
|
18046
|
-
function wrapDcSend(dc,
|
18059
|
+
function wrapDcSend(dc, pc2) {
|
18047
18060
|
const origDataChannelSend = dc.send;
|
18048
18061
|
dc.send = function send() {
|
18049
18062
|
const data3 = arguments[0];
|
18050
18063
|
const length = data3.length || data3.size || data3.byteLength;
|
18051
|
-
if (dc.readyState === "open" &&
|
18052
|
-
throw new TypeError("Message too large (can send a maximum of " +
|
18064
|
+
if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
|
18065
|
+
throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
|
18053
18066
|
}
|
18054
18067
|
return origDataChannelSend.apply(dc, arguments);
|
18055
18068
|
};
|
@@ -18107,11 +18120,11 @@ function shimConnectionState(window2) {
|
|
18107
18120
|
proto[method] = function() {
|
18108
18121
|
if (!this._connectionstatechangepoly) {
|
18109
18122
|
this._connectionstatechangepoly = (e) => {
|
18110
|
-
const
|
18111
|
-
if (
|
18112
|
-
|
18123
|
+
const pc2 = e.target;
|
18124
|
+
if (pc2._lastConnectionState !== pc2.connectionState) {
|
18125
|
+
pc2._lastConnectionState = pc2.connectionState;
|
18113
18126
|
const newEvent = new Event("connectionstatechange", e);
|
18114
|
-
|
18127
|
+
pc2.dispatchEvent(newEvent);
|
18115
18128
|
}
|
18116
18129
|
return e;
|
18117
18130
|
};
|
@@ -18315,48 +18328,48 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
18315
18328
|
|
18316
18329
|
// ../hms-video-store/dist/index.js
|
18317
18330
|
var import_lodash4 = __toESM(require_lodash2());
|
18318
|
-
import { v4 as
|
18319
|
-
import { v4 as
|
18320
|
-
import { v4 as
|
18321
|
-
import { EventEmitter2 as
|
18322
|
-
var
|
18323
|
-
import { EventEmitter2 as
|
18324
|
-
import { v4 as
|
18325
|
-
import { EventEmitter2 as
|
18326
|
-
import
|
18327
|
-
import { v4 as
|
18328
|
-
import { v4 as
|
18329
|
-
var
|
18330
|
-
var
|
18331
|
-
var
|
18332
|
-
var
|
18331
|
+
import { v4 as Xa } from "uuid";
|
18332
|
+
import { v4 as io } from "uuid";
|
18333
|
+
import { v4 as oo } from "uuid";
|
18334
|
+
import { EventEmitter2 as no } from "eventemitter2";
|
18335
|
+
var Ct = __toESM(require_lib());
|
18336
|
+
import { EventEmitter2 as Ao } from "eventemitter2";
|
18337
|
+
import { v4 as Ho } from "uuid";
|
18338
|
+
import { EventEmitter2 as Co } from "eventemitter2";
|
18339
|
+
import Lo from "eventemitter2";
|
18340
|
+
import { v4 as wo } from "uuid";
|
18341
|
+
import { v4 as No } from "uuid";
|
18342
|
+
var fa = Object.defineProperty;
|
18343
|
+
var va = Object.defineProperties;
|
18344
|
+
var Ma = Object.getOwnPropertyDescriptors;
|
18345
|
+
var Ut = Object.getOwnPropertySymbols;
|
18333
18346
|
var Fr = Object.prototype.hasOwnProperty;
|
18334
18347
|
var Gr = Object.prototype.propertyIsEnumerable;
|
18335
|
-
var Br = (a2, e, t) => e in a2 ?
|
18336
|
-
var
|
18348
|
+
var Br = (a2, e, t) => e in a2 ? fa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
18349
|
+
var S = (a2, e) => {
|
18337
18350
|
for (var t in e || (e = {}))
|
18338
18351
|
Fr.call(e, t) && Br(a2, t, e[t]);
|
18339
|
-
if (
|
18340
|
-
for (var t of
|
18352
|
+
if (Ut)
|
18353
|
+
for (var t of Ut(e))
|
18341
18354
|
Gr.call(e, t) && Br(a2, t, e[t]);
|
18342
18355
|
return a2;
|
18343
18356
|
};
|
18344
|
-
var
|
18357
|
+
var k = (a2, e) => va(a2, Ma(e));
|
18345
18358
|
var Qi = (a2, e) => {
|
18346
18359
|
var t = {};
|
18347
18360
|
for (var i in a2)
|
18348
18361
|
Fr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
18349
|
-
if (a2 != null &&
|
18350
|
-
for (var i of
|
18362
|
+
if (a2 != null && Ut)
|
18363
|
+
for (var i of Ut(a2))
|
18351
18364
|
e.indexOf(i) < 0 && Gr.call(a2, i) && (t[i] = a2[i]);
|
18352
18365
|
return t;
|
18353
18366
|
};
|
18354
|
-
var
|
18355
|
-
var nr =
|
18356
|
-
|
18367
|
+
var Pa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18368
|
+
var nr = Pa((zc, Fa) => {
|
18369
|
+
Fa.exports = { version: "0.11.8-alpha.0", 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"] };
|
18357
18370
|
});
|
18358
18371
|
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 || {});
|
18359
|
-
var
|
18372
|
+
var Ea = ((e) => (e.CHAT = "chat", e))(Ea || {});
|
18360
18373
|
var $r = ((t) => (t.INFO = "info", t.ERROR = "error", t))($r || {});
|
18361
18374
|
var Yi = ((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))(Yi || {});
|
18362
18375
|
var Wr = ((t) => (t.audio = "audio", t.video = "video", t))(Wr || {});
|
@@ -18365,64 +18378,64 @@ function He(a2, e) {
|
|
18365
18378
|
if (e)
|
18366
18379
|
for (let r of e.auxiliaryTracks) {
|
18367
18380
|
let s = a2[r];
|
18368
|
-
|
18381
|
+
ba(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
|
18369
18382
|
}
|
18370
18383
|
return { video: t, audio: i };
|
18371
18384
|
}
|
18372
|
-
function
|
18385
|
+
function tt(a2) {
|
18373
18386
|
return a2 && a2.type === "audio";
|
18374
18387
|
}
|
18375
|
-
function
|
18388
|
+
function it(a2) {
|
18376
18389
|
return a2 && a2.type === "video";
|
18377
18390
|
}
|
18378
|
-
function
|
18391
|
+
function ba(a2) {
|
18379
18392
|
return a2 && a2.source === "screen";
|
18380
18393
|
}
|
18381
|
-
function
|
18394
|
+
function Ft(a2) {
|
18382
18395
|
return a2 && a2.source === "audioplaylist";
|
18383
18396
|
}
|
18384
|
-
function
|
18397
|
+
function rt(a2) {
|
18385
18398
|
return a2 && a2.source === "videoplaylist";
|
18386
18399
|
}
|
18387
18400
|
function Kr(a2) {
|
18388
18401
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
18389
18402
|
}
|
18390
|
-
function
|
18403
|
+
function Ue(a2, e) {
|
18391
18404
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
18392
18405
|
}
|
18393
|
-
function
|
18406
|
+
function st(a2) {
|
18394
18407
|
var r;
|
18395
18408
|
let e = false, t = false, i = false;
|
18396
18409
|
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 };
|
18397
18410
|
}
|
18398
18411
|
var V = (a2) => a2.room;
|
18399
|
-
var
|
18400
|
-
var
|
18401
|
-
var
|
18412
|
+
var Aa = (a2) => a2.errors;
|
18413
|
+
var En = createSelector(Aa, (a2) => a2.length === 0 ? null : a2.at(-1));
|
18414
|
+
var bn = createSelector(V, (a2) => a2.id);
|
18402
18415
|
var G = (a2) => a2.peers;
|
18403
|
-
var
|
18416
|
+
var Gt = (a2) => a2.messages.byID;
|
18404
18417
|
var jr = (a2) => a2.messages.allIDs;
|
18405
18418
|
var w = (a2) => a2.tracks;
|
18406
18419
|
var Xi = (a2) => a2.appData;
|
18407
|
-
var
|
18408
|
-
var
|
18409
|
-
var
|
18410
|
-
var
|
18411
|
-
var ae = createSelector([V, G,
|
18412
|
-
var
|
18413
|
-
var
|
18414
|
-
var
|
18415
|
-
var
|
18416
|
-
var
|
18417
|
-
var Z = createSelector(
|
18418
|
-
var K = createSelector(
|
18419
|
-
var
|
18420
|
-
var Qr = createSelector([Z, K,
|
18420
|
+
var Ia = (a2) => a2.speakers;
|
18421
|
+
var ye = createSelector([V], (a2) => a2 && a2.isConnected);
|
18422
|
+
var Rn = createSelector([ye, V], (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));
|
18423
|
+
var Ra = (a2) => a2.hideLocalPeer;
|
18424
|
+
var ae = createSelector([V, G, Ra], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
18425
|
+
var Ha = createSelector(w, (a2) => Object.values(a2));
|
18426
|
+
var z = createSelector(V, G, (a2, e) => e[a2.localPeer]);
|
18427
|
+
var ue = createSelector(V, (a2) => a2.localPeer);
|
18428
|
+
var Hn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
|
18429
|
+
var Cn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
|
18430
|
+
var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
18431
|
+
var K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
18432
|
+
var Ca = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
18433
|
+
var Qr = createSelector([Z, K, Ca], (a2, e, t) => {
|
18421
18434
|
let i = t ? [...t] : [];
|
18422
18435
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
18423
18436
|
});
|
18424
|
-
var
|
18425
|
-
var
|
18437
|
+
var Ln = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
|
18438
|
+
var wn = createSelector(G, Ia, (a2, e) => {
|
18426
18439
|
let t = Object.entries(e).sort((i, r) => {
|
18427
18440
|
var n, l;
|
18428
18441
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -18435,11 +18448,11 @@ var Ln = createSelector(G, ba, (a2, e) => {
|
|
18435
18448
|
}
|
18436
18449
|
return null;
|
18437
18450
|
});
|
18438
|
-
var er = createSelector(
|
18451
|
+
var er = createSelector(z, w, (a2, e) => {
|
18439
18452
|
let { video: t, audio: i } = He(e, a2);
|
18440
18453
|
return !!(t || i);
|
18441
18454
|
});
|
18442
|
-
var
|
18455
|
+
var La = createSelector(G, w, (a2, e) => {
|
18443
18456
|
let t;
|
18444
18457
|
for (let i in a2) {
|
18445
18458
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -18449,15 +18462,15 @@ var Ha = createSelector(G, w, (a2, e) => {
|
|
18449
18462
|
}
|
18450
18463
|
return t;
|
18451
18464
|
});
|
18452
|
-
var
|
18453
|
-
var
|
18465
|
+
var _n = createSelector(La, (a2) => !!a2);
|
18466
|
+
var Nn = createSelector(G, w, (a2, e) => {
|
18454
18467
|
for (let t in a2) {
|
18455
18468
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
18456
18469
|
if (!s && r)
|
18457
18470
|
return i;
|
18458
18471
|
}
|
18459
18472
|
});
|
18460
|
-
var
|
18473
|
+
var On = createSelector(G, w, (a2, e) => {
|
18461
18474
|
let t = [], i = [];
|
18462
18475
|
for (let r in a2) {
|
18463
18476
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -18465,62 +18478,62 @@ var Nn = createSelector(G, w, (a2, e) => {
|
|
18465
18478
|
}
|
18466
18479
|
return t.concat(i);
|
18467
18480
|
});
|
18468
|
-
var
|
18481
|
+
var xn = createSelector(G, w, (a2, e) => {
|
18469
18482
|
for (let t in e) {
|
18470
18483
|
let i = e[t];
|
18471
|
-
if (
|
18484
|
+
if (rt(i) && it(i) && i.peerId)
|
18472
18485
|
return a2[i.peerId];
|
18473
18486
|
}
|
18474
18487
|
});
|
18475
|
-
var
|
18488
|
+
var Un = createSelector(G, w, (a2, e) => {
|
18476
18489
|
for (let t in e) {
|
18477
18490
|
let i = e[t];
|
18478
|
-
if (
|
18491
|
+
if (Ft(i) && i.peerId)
|
18479
18492
|
return a2[i.peerId];
|
18480
18493
|
}
|
18481
18494
|
});
|
18482
|
-
var
|
18483
|
-
var
|
18484
|
-
var
|
18485
|
-
var
|
18495
|
+
var Vn = createSelector(Ha, (a2) => a2.filter(Kr));
|
18496
|
+
var Bn = createSelector(jr, (a2) => a2.length);
|
18497
|
+
var Fn = createSelector(Gt, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
18498
|
+
var at = createSelector(jr, Gt, (a2, e) => {
|
18486
18499
|
let t = [];
|
18487
18500
|
return a2.forEach((i) => {
|
18488
18501
|
t.push(e[i]);
|
18489
18502
|
}), t;
|
18490
18503
|
});
|
18491
|
-
var
|
18504
|
+
var wa = createSelector(at, (a2) => a2.filter((e) => {
|
18492
18505
|
var t;
|
18493
18506
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
18494
18507
|
}));
|
18495
|
-
var
|
18496
|
-
var
|
18497
|
-
var Yr = createSelector(
|
18498
|
-
var
|
18508
|
+
var Gn = createSelector(wa, (a2) => a2.filter((e) => !e.read).length);
|
18509
|
+
var Y = createSelector([V], (a2) => a2 && a2.roomState);
|
18510
|
+
var Yr = createSelector(Y, (a2) => a2 === "Preview");
|
18511
|
+
var $n = createSelector(V, (a2) => a2.roomState !== "Disconnected");
|
18499
18512
|
var oe = (a2) => a2.roles;
|
18500
|
-
var
|
18501
|
-
var
|
18502
|
-
var
|
18513
|
+
var Wn = createSelector([oe], (a2) => Object.keys(a2));
|
18514
|
+
var $t = createSelector([z, oe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
18515
|
+
var Da = (a2) => {
|
18503
18516
|
var e;
|
18504
18517
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
18505
18518
|
};
|
18506
|
-
var Xr = createSelector([
|
18507
|
-
var
|
18519
|
+
var Xr = createSelector([Da, oe], (a2, e) => a2 ? e[a2] : null);
|
18520
|
+
var Kn = createSelector([$t], (a2) => {
|
18508
18521
|
var e;
|
18509
18522
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
18510
18523
|
});
|
18511
|
-
var Zr = createSelector(
|
18512
|
-
var
|
18513
|
-
var
|
18514
|
-
var
|
18515
|
-
var
|
18516
|
-
var
|
18517
|
-
var
|
18518
|
-
var
|
18519
|
-
var
|
18524
|
+
var Zr = createSelector($t, (a2) => a2 == null ? void 0 : a2.permissions);
|
18525
|
+
var qn = createSelector(V, (a2) => a2.recording);
|
18526
|
+
var jn = createSelector(V, (a2) => a2.rtmp);
|
18527
|
+
var Jn = createSelector(V, (a2) => a2.hls);
|
18528
|
+
var Qn = createSelector(V, (a2) => a2.sessionId);
|
18529
|
+
var zn = createSelector(V, (a2) => a2.startedAt);
|
18530
|
+
var Yn = createSelector(V, (a2) => !!a2.isLargeRoom);
|
18531
|
+
var Xn = createSelector(V, (a2) => !!a2.isEffectsEnabled);
|
18532
|
+
var Zn = createSelector(V, (a2) => a2.effectsKey);
|
18520
18533
|
var es = (a2) => a2.polls;
|
18521
|
-
var
|
18522
|
-
var
|
18523
|
-
var
|
18534
|
+
var rc = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
|
18535
|
+
var _a7 = (a2) => a2.whiteboards;
|
18536
|
+
var sc = createSelector(_a7, (a2) => Object.values(a2)[0]);
|
18524
18537
|
var is = (a2 = "audio") => (e) => e.playlist[a2].list;
|
18525
18538
|
var tr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
18526
18539
|
var rs = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
@@ -18538,7 +18551,7 @@ function b(a2) {
|
|
18538
18551
|
return (e) => (t) => a2(t, e);
|
18539
18552
|
}
|
18540
18553
|
var us = ((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))(us || {});
|
18541
|
-
var
|
18554
|
+
var Na = typeof window != "undefined" && typeof window.expect != "undefined";
|
18542
18555
|
var d = class {
|
18543
18556
|
static v(e, ...t) {
|
18544
18557
|
this.log(0, e, ...t);
|
@@ -18604,24 +18617,24 @@ var d = class {
|
|
18604
18617
|
}
|
18605
18618
|
}
|
18606
18619
|
};
|
18607
|
-
d.level =
|
18608
|
-
var
|
18609
|
-
var
|
18620
|
+
d.level = Na ? 7 : 0;
|
18621
|
+
var pe = new import_ua_parser_js.UAParser();
|
18622
|
+
var D = typeof window != "undefined";
|
18610
18623
|
var ps;
|
18611
|
-
var Ce = typeof window == "undefined" && !((ps =
|
18612
|
-
var
|
18613
|
-
var
|
18624
|
+
var Ce = typeof window == "undefined" && !((ps = pe.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
|
18625
|
+
var xa = () => !Ce;
|
18626
|
+
var pc = xa();
|
18614
18627
|
var hs;
|
18615
|
-
var
|
18616
|
-
var gs = ((
|
18617
|
-
function
|
18618
|
-
if (
|
18628
|
+
var ms;
|
18629
|
+
var gs = ((ms = (hs = pe.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
|
18630
|
+
function Ua() {
|
18631
|
+
if (D && window) {
|
18619
18632
|
let a2 = window.location.hostname;
|
18620
18633
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
18621
18634
|
}
|
18622
18635
|
return "CUSTOM";
|
18623
18636
|
}
|
18624
|
-
var
|
18637
|
+
var Be = Ua();
|
18625
18638
|
var v = { 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 } };
|
18626
18639
|
var f = class a extends Error {
|
18627
18640
|
constructor(t, i, r, s, o, n = false) {
|
@@ -18652,7 +18665,7 @@ var f = class a extends Error {
|
|
18652
18665
|
}`;
|
18653
18666
|
}
|
18654
18667
|
};
|
18655
|
-
var
|
18668
|
+
var Va = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
18656
18669
|
var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
18657
18670
|
return new f(v.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
18658
18671
|
}, WebSocketConnectionLost(a2, e = "") {
|
@@ -18712,7 +18725,7 @@ var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
18712
18725
|
}, StatsFailed(a2, e = "") {
|
18713
18726
|
return new f(v.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
18714
18727
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
18715
|
-
return new f(a2, "ServerErrors", e, t, t,
|
18728
|
+
return new f(a2, "ServerErrors", e, t, t, Va.includes(e));
|
18716
18729
|
}, AlreadyJoined(a2, e = "") {
|
18717
18730
|
return new f(v.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
18718
18731
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
@@ -18787,7 +18800,7 @@ var sr = class {
|
|
18787
18800
|
};
|
18788
18801
|
var Ts = () => {
|
18789
18802
|
try {
|
18790
|
-
|
18803
|
+
D && !localStorage && (window.localStorage = new sr());
|
18791
18804
|
} catch (a2) {
|
18792
18805
|
d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied());
|
18793
18806
|
}
|
@@ -18799,7 +18812,7 @@ var ne = class {
|
|
18799
18812
|
}
|
18800
18813
|
getStorage() {
|
18801
18814
|
try {
|
18802
|
-
return
|
18815
|
+
return D && !this.storage && (Ts(), this.storage = window.localStorage), this.storage;
|
18803
18816
|
} catch (e) {
|
18804
18817
|
return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
|
18805
18818
|
}
|
@@ -18821,18 +18834,18 @@ var ne = class {
|
|
18821
18834
|
};
|
18822
18835
|
var fs = () => {
|
18823
18836
|
let a2, e = new ne("hms-analytics-deviceId"), t = e.get();
|
18824
|
-
return t ? a2 = t : (a2 =
|
18837
|
+
return t ? a2 = t : (a2 = Ba(), e.set(a2)), a2;
|
18825
18838
|
};
|
18826
18839
|
function ie(a2) {
|
18827
18840
|
return a2 != null;
|
18828
18841
|
}
|
18829
18842
|
var Ms = nr().version;
|
18830
|
-
function
|
18831
|
-
let t = "web", i =
|
18843
|
+
function ot(a2 = "prod", e) {
|
18844
|
+
let t = "web", i = Be !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
18832
18845
|
if (Ce)
|
18833
|
-
return ys({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ms, env: i, domain:
|
18834
|
-
let r =
|
18835
|
-
return s.type && (p = `${cr(`${s.vendor}_${s.type}`)}/${u}`), ys({ os: n, os_version: l, sdk: t, sdk_version: Ms, device_model: p, env: i, domain:
|
18846
|
+
return ys({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ms, env: i, domain: Be, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
18847
|
+
let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = cr(`web_${r.name}`), l = r.version || "", u = cr(`${o.name}_${o.version}`), p = u;
|
18848
|
+
return s.type && (p = `${cr(`${s.vendor}_${s.type}`)}/${u}`), ys({ os: n, os_version: l, sdk: t, sdk_version: Ms, device_model: p, env: i, domain: Be, 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 });
|
18836
18849
|
}
|
18837
18850
|
function cr(a2) {
|
18838
18851
|
return a2.replace(/ /g, "_");
|
@@ -18840,16 +18853,16 @@ function cr(a2) {
|
|
18840
18853
|
var ys = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
18841
18854
|
var R = class {
|
18842
18855
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
18843
|
-
this.metadata = { peer: {}, userAgent:
|
18844
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
18856
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
18857
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Ga(), this.device_id = fs();
|
18845
18858
|
}
|
18846
18859
|
toSignalParams() {
|
18847
|
-
return { name: this.name, info:
|
18860
|
+
return { name: this.name, info: k(S({}, this.properties), { timestamp: this.timestamp, domain: Be }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
18848
18861
|
}
|
18849
18862
|
};
|
18850
18863
|
var M = class {
|
18851
18864
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
18852
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(
|
18865
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(k(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);
|
18853
18866
|
return new R({ name: o, level: n, properties: l });
|
18854
18867
|
}
|
18855
18868
|
static disconnect(e, t) {
|
@@ -18863,7 +18876,7 @@ var M = class {
|
|
18863
18876
|
}
|
18864
18877
|
static join(i) {
|
18865
18878
|
var r = i, { error: e } = r, t = Qi(r, ["error"]);
|
18866
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
18879
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(k(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
18867
18880
|
return new R({ name: s, level: o, properties: n });
|
18868
18881
|
}
|
18869
18882
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -18906,7 +18919,7 @@ var M = class {
|
|
18906
18919
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
18907
18920
|
if (!t && e.degradedAt instanceof Date) {
|
18908
18921
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
18909
|
-
s =
|
18922
|
+
s = k(S({}, s), { duration: n, restoredAt: o });
|
18910
18923
|
}
|
18911
18924
|
return new R({ name: i, level: r, properties: s });
|
18912
18925
|
}
|
@@ -18928,7 +18941,7 @@ var M = class {
|
|
18928
18941
|
}
|
18929
18942
|
static getPropertiesWithError(e, t) {
|
18930
18943
|
let i = this.getErrorProperties(t);
|
18931
|
-
return e =
|
18944
|
+
return e = S(S({}, i), e), e;
|
18932
18945
|
}
|
18933
18946
|
static getErrorProperties(e) {
|
18934
18947
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
@@ -18982,8 +18995,8 @@ function qt(a2, e = 300) {
|
|
18982
18995
|
}, e);
|
18983
18996
|
};
|
18984
18997
|
}
|
18985
|
-
var
|
18986
|
-
var
|
18998
|
+
var Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
|
18999
|
+
var Rs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Rs || {});
|
18987
19000
|
var pr = class {
|
18988
19001
|
constructor() {
|
18989
19002
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
@@ -19007,11 +19020,11 @@ var pr = class {
|
|
19007
19020
|
this.createObserver();
|
19008
19021
|
}
|
19009
19022
|
isSupported() {
|
19010
|
-
let e =
|
19023
|
+
let e = D && typeof window.IntersectionObserver != "undefined";
|
19011
19024
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
19012
19025
|
}
|
19013
19026
|
};
|
19014
|
-
var
|
19027
|
+
var ws = new pr();
|
19015
19028
|
var hr = class {
|
19016
19029
|
constructor() {
|
19017
19030
|
this.TAG = "[HMSResizeObserverWrapper]";
|
@@ -19035,18 +19048,18 @@ var hr = class {
|
|
19035
19048
|
this.createObserver();
|
19036
19049
|
}
|
19037
19050
|
isSupported() {
|
19038
|
-
let e =
|
19051
|
+
let e = D && typeof window.ResizeObserver != "undefined";
|
19039
19052
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
19040
19053
|
}
|
19041
19054
|
};
|
19042
|
-
var
|
19043
|
-
var
|
19044
|
-
var
|
19045
|
-
var
|
19046
|
-
var
|
19047
|
-
var
|
19055
|
+
var Ds = new hr();
|
19056
|
+
var mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
|
19057
|
+
var Sr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Sr || {});
|
19058
|
+
var Os = "https://event.100ms.live/v2/client/report";
|
19059
|
+
var xs = "https://event-nonprod.100ms.live/v2/client/report";
|
19060
|
+
var Qe = class {
|
19048
19061
|
};
|
19049
|
-
|
19062
|
+
Qe.makePeerId = () => oo();
|
19050
19063
|
var St = "HMS-Store:";
|
19051
19064
|
var y = class {
|
19052
19065
|
static v(e, ...t) {
|
@@ -19115,130 +19128,130 @@ var y = class {
|
|
19115
19128
|
};
|
19116
19129
|
y.level = 0;
|
19117
19130
|
var br = (a2, e) => e;
|
19118
|
-
var
|
19119
|
-
var
|
19120
|
-
var no = (a2, e) => e;
|
19131
|
+
var gt = (a2, e) => e;
|
19132
|
+
var Ws = (a2, e) => e;
|
19121
19133
|
var co = (a2, e) => e;
|
19122
|
-
var
|
19123
|
-
var
|
19124
|
-
var
|
19134
|
+
var lo = (a2, e) => e;
|
19135
|
+
var J = createSelector([G, br], (a2, e) => e ? a2[e] : null);
|
19136
|
+
var Ar = createSelector([w, gt], (a2, e) => e ? a2[e] : null);
|
19137
|
+
var uo = createSelector([w, gt], (a2, e) => {
|
19125
19138
|
if (!e)
|
19126
19139
|
return null;
|
19127
19140
|
let t = a2[e];
|
19128
19141
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
19129
19142
|
});
|
19130
|
-
var
|
19143
|
+
var po = createSelector([w, gt], (a2, e) => {
|
19131
19144
|
if (!e)
|
19132
19145
|
return null;
|
19133
19146
|
let t = a2[e];
|
19134
19147
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
19135
19148
|
});
|
19136
|
-
var
|
19149
|
+
var ho = createSelector([w, gt], (a2, e) => {
|
19137
19150
|
if (!e)
|
19138
19151
|
return null;
|
19139
19152
|
let t = a2[e];
|
19140
19153
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19141
19154
|
});
|
19142
|
-
var
|
19155
|
+
var mo = createSelector([w, gt], (a2, e) => {
|
19143
19156
|
if (!e)
|
19144
19157
|
return null;
|
19145
19158
|
let t = a2[e];
|
19146
19159
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19147
19160
|
});
|
19148
|
-
var So = createSelector([es,
|
19149
|
-
var
|
19150
|
-
var
|
19161
|
+
var So = createSelector([es, lo], (a2, e) => e ? a2[e] : null);
|
19162
|
+
var Q = b(J);
|
19163
|
+
var Xh = b(createSelector([Xi, co], (a2, e) => {
|
19151
19164
|
if (a2)
|
19152
19165
|
return e ? a2[e] : a2;
|
19153
19166
|
}));
|
19154
|
-
function
|
19167
|
+
function Zh(a2) {
|
19155
19168
|
return (e) => {
|
19156
19169
|
if (e.sessionStore)
|
19157
19170
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19158
19171
|
};
|
19159
19172
|
}
|
19160
|
-
var
|
19173
|
+
var tm = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
19161
19174
|
var si = b(Ar);
|
19162
|
-
var
|
19163
|
-
var
|
19164
|
-
var
|
19165
|
-
var
|
19166
|
-
var
|
19167
|
-
let t =
|
19175
|
+
var Ks = b(uo);
|
19176
|
+
var im = b(po);
|
19177
|
+
var rm = b(ho);
|
19178
|
+
var sm = b(mo);
|
19179
|
+
var go = b((a2, e) => {
|
19180
|
+
let t = J(a2, e);
|
19168
19181
|
if (t && t.videoTrack && t.videoTrack !== "")
|
19169
19182
|
return a2.tracks[t.videoTrack];
|
19170
19183
|
});
|
19171
|
-
var
|
19172
|
-
let t =
|
19184
|
+
var To = b((a2, e) => {
|
19185
|
+
let t = J(a2, e);
|
19173
19186
|
if (t && t.audioTrack && t.audioTrack !== "")
|
19174
19187
|
return a2.tracks[t.audioTrack];
|
19175
19188
|
});
|
19176
|
-
var
|
19177
|
-
let t =
|
19189
|
+
var om = b((a2, e) => {
|
19190
|
+
let t = J(a2, e);
|
19178
19191
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
19179
19192
|
});
|
19180
|
-
var
|
19181
|
-
var
|
19182
|
-
var
|
19183
|
-
let t =
|
19184
|
-
return
|
19185
|
-
};
|
19186
|
-
var
|
19187
|
-
var
|
19193
|
+
var qs = (a2, e) => e ? a2.speakers[e] : null;
|
19194
|
+
var nm = b(createSelector(qs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19195
|
+
var fo = (a2, e) => {
|
19196
|
+
let t = To(e)(a2);
|
19197
|
+
return qs(a2, t == null ? void 0 : t.id);
|
19198
|
+
};
|
19199
|
+
var cm = b(createSelector(fo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19200
|
+
var dm = b((a2, e) => {
|
19188
19201
|
if (e)
|
19189
19202
|
return a2.connectionQualities[e];
|
19190
19203
|
});
|
19191
|
-
var
|
19192
|
-
let t =
|
19204
|
+
var lm = b((a2, e) => {
|
19205
|
+
let t = J(a2, e);
|
19193
19206
|
if (t) {
|
19194
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
19207
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
|
19195
19208
|
return i ? a2.tracks[i] : void 0;
|
19196
19209
|
}
|
19197
19210
|
});
|
19198
|
-
var
|
19211
|
+
var um = b(createSelector(w, J, (a2, e) => {
|
19199
19212
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19200
19213
|
let r = a2[i];
|
19201
|
-
return
|
19214
|
+
return rt(r) && it(r);
|
19202
19215
|
});
|
19203
19216
|
return t ? a2[t] : void 0;
|
19204
19217
|
}));
|
19205
|
-
var
|
19218
|
+
var pm = b(createSelector(w, J, (a2, e) => {
|
19206
19219
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19207
19220
|
let r = a2[i];
|
19208
|
-
return
|
19221
|
+
return rt(r) && tt(r);
|
19209
19222
|
});
|
19210
19223
|
return t ? a2[t] : void 0;
|
19211
19224
|
}));
|
19212
|
-
var
|
19225
|
+
var hm = b(createSelector(w, J, (a2, e) => {
|
19213
19226
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19214
19227
|
let r = a2[i];
|
19215
|
-
return
|
19228
|
+
return Ft(r) && tt(r);
|
19216
19229
|
});
|
19217
19230
|
return t ? a2[t] : void 0;
|
19218
19231
|
}));
|
19219
|
-
var
|
19220
|
-
var
|
19221
|
-
var
|
19222
|
-
let t =
|
19223
|
-
return
|
19232
|
+
var js = b(createSelector(w, J, (a2, e) => He(a2, e)));
|
19233
|
+
var Js = (a2) => createSelector(js(a2), (e) => e.audio);
|
19234
|
+
var Sm = b((a2, e) => {
|
19235
|
+
let t = J(a2, e);
|
19236
|
+
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
19224
19237
|
});
|
19225
|
-
var
|
19226
|
-
let t =
|
19227
|
-
return
|
19238
|
+
var gm = b((a2, e) => {
|
19239
|
+
let t = J(a2, e);
|
19240
|
+
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
19228
19241
|
});
|
19229
|
-
var
|
19242
|
+
var Qs = b((a2, e) => {
|
19230
19243
|
if (e && a2.tracks[e])
|
19231
19244
|
return a2.tracks[e].volume === 0;
|
19232
19245
|
});
|
19233
|
-
var
|
19234
|
-
let t =
|
19235
|
-
return
|
19246
|
+
var Tm = b((a2, e) => {
|
19247
|
+
let t = J(a2, e);
|
19248
|
+
return Qs(t == null ? void 0 : t.audioTrack)(a2);
|
19236
19249
|
});
|
19237
|
-
var
|
19238
|
-
let t =
|
19239
|
-
return
|
19250
|
+
var fm = b((a2, e) => {
|
19251
|
+
let t = Js(e)(a2);
|
19252
|
+
return Qs(t == null ? void 0 : t.id)(a2);
|
19240
19253
|
});
|
19241
|
-
var
|
19254
|
+
var zs = b((a2, e) => {
|
19242
19255
|
let t = Ar(a2, e);
|
19243
19256
|
if (t) {
|
19244
19257
|
if (t.type !== "audio") {
|
@@ -19248,15 +19261,15 @@ var Js = b((a2, e) => {
|
|
19248
19261
|
return t.volume;
|
19249
19262
|
}
|
19250
19263
|
});
|
19251
|
-
var
|
19252
|
-
let t =
|
19253
|
-
return
|
19264
|
+
var vm = b((a2, e) => {
|
19265
|
+
let t = J(a2, e);
|
19266
|
+
return zs(t == null ? void 0 : t.audioTrack)(a2);
|
19254
19267
|
});
|
19255
|
-
var
|
19256
|
-
let t =
|
19257
|
-
return
|
19268
|
+
var Mm = b((a2, e) => {
|
19269
|
+
let t = Js(e)(a2);
|
19270
|
+
return zs(t == null ? void 0 : t.id)(a2);
|
19258
19271
|
});
|
19259
|
-
var
|
19272
|
+
var ym = b((a2, e) => {
|
19260
19273
|
let t = Ar(a2, e);
|
19261
19274
|
if (t) {
|
19262
19275
|
if (t.type !== "video") {
|
@@ -19266,45 +19279,45 @@ var vS = b((a2, e) => {
|
|
19266
19279
|
return t.layer;
|
19267
19280
|
}
|
19268
19281
|
});
|
19269
|
-
var
|
19282
|
+
var Ys = createSelector([at, ue, br], (a2, e, t) => {
|
19270
19283
|
if (t)
|
19271
19284
|
return a2.filter((i) => {
|
19272
19285
|
var r;
|
19273
19286
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
19274
19287
|
});
|
19275
19288
|
});
|
19276
|
-
var
|
19289
|
+
var Xs = createSelector([at, Ws], (a2, e) => {
|
19277
19290
|
if (e)
|
19278
19291
|
return a2.filter((t) => {
|
19279
19292
|
var i, r;
|
19280
19293
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
19281
19294
|
});
|
19282
19295
|
});
|
19283
|
-
var
|
19296
|
+
var vo = createSelector(at, (a2) => a2.filter((e) => {
|
19284
19297
|
var t;
|
19285
19298
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
19286
19299
|
}));
|
19287
|
-
var
|
19288
|
-
var
|
19289
|
-
var
|
19290
|
-
var
|
19291
|
-
var
|
19292
|
-
var
|
19293
|
-
var
|
19294
|
-
var
|
19295
|
-
var
|
19300
|
+
var Mo = createSelector([Xs, Ws], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19301
|
+
var yo = createSelector([Ys, br], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19302
|
+
var km = createSelector(vo, (a2) => a2.filter((e) => !e.read).length);
|
19303
|
+
var Pm = b(Ys);
|
19304
|
+
var Em = b(Xs);
|
19305
|
+
var bm = b(Mo);
|
19306
|
+
var Am = b(yo);
|
19307
|
+
var Zs = b(So);
|
19308
|
+
var xm = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
|
19296
19309
|
var r;
|
19297
19310
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
19298
19311
|
}));
|
19299
|
-
var
|
19300
|
-
var
|
19301
|
-
var
|
19302
|
-
var
|
19303
|
-
var
|
19312
|
+
var ko = (a2) => a2.roleChangeRequests[0] || null;
|
19313
|
+
var Um = createSelector([ko, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
19314
|
+
var Vm = createSelector([$t], (a2) => st(a2));
|
19315
|
+
var Bm = createSelector([Xr], (a2) => st(a2));
|
19316
|
+
var Eo = createSelector([K, w], (a2, e) => {
|
19304
19317
|
let t = null;
|
19305
19318
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19306
19319
|
});
|
19307
|
-
var
|
19320
|
+
var bo = createSelector([Z, w], (a2, e) => {
|
19308
19321
|
let t = null;
|
19309
19322
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19310
19323
|
});
|
@@ -19327,7 +19340,7 @@ var Lr = class {
|
|
19327
19340
|
this.addEventToStorage(e);
|
19328
19341
|
return;
|
19329
19342
|
}
|
19330
|
-
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" ?
|
19343
|
+
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" ? Os : xs;
|
19331
19344
|
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) => {
|
19332
19345
|
if (r.status === 401) {
|
19333
19346
|
this.removeFromStorage(e);
|
@@ -19353,77 +19366,77 @@ var Lr = class {
|
|
19353
19366
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
19354
19367
|
}
|
19355
19368
|
};
|
19356
|
-
var
|
19369
|
+
var Te = new Lr();
|
19357
19370
|
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))($ || {});
|
19358
19371
|
var xi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(xi || {});
|
19359
19372
|
var Ki = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ki || {});
|
19360
|
-
var
|
19361
|
-
var
|
19362
|
-
var
|
19363
|
-
var
|
19364
|
-
var
|
19365
|
-
var
|
19366
|
-
var
|
19373
|
+
var Ko = (a2) => a2.localPeer.id;
|
19374
|
+
var qo = (a2) => a2.localPeer.audioTrack;
|
19375
|
+
var jo = (a2) => a2.localPeer.videoTrack;
|
19376
|
+
var Jo = (a2, e) => e;
|
19377
|
+
var ga = (a2, e) => e;
|
19378
|
+
var Qo = (a2) => a2.remoteTrackStats;
|
19379
|
+
var Ta = (a2) => a2.peerStats;
|
19367
19380
|
var xr = (a2) => a2.localTrackStats;
|
19368
|
-
var
|
19369
|
-
var
|
19381
|
+
var ve = createSelector([Ta, Ko], (a2, e) => a2[e]);
|
19382
|
+
var zo = createSelector(ve, (a2) => {
|
19370
19383
|
var e;
|
19371
19384
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
19372
19385
|
});
|
19373
|
-
var
|
19386
|
+
var Yo = createSelector(ve, (a2) => {
|
19374
19387
|
var e;
|
19375
19388
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
19376
19389
|
});
|
19377
|
-
var
|
19390
|
+
var Xo = createSelector(ve, (a2) => {
|
19378
19391
|
var e;
|
19379
19392
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
19380
19393
|
});
|
19381
|
-
var
|
19394
|
+
var Zo = createSelector(ve, (a2) => {
|
19382
19395
|
var e;
|
19383
19396
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
19384
19397
|
});
|
19385
|
-
var
|
19398
|
+
var en = createSelector(ve, (a2) => {
|
19386
19399
|
var e;
|
19387
19400
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
19388
19401
|
});
|
19389
|
-
var
|
19402
|
+
var tn = createSelector(ve, (a2) => {
|
19390
19403
|
var e;
|
19391
19404
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
19392
19405
|
});
|
19393
|
-
var
|
19406
|
+
var rn = createSelector(ve, (a2) => {
|
19394
19407
|
var e;
|
19395
19408
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
19396
19409
|
});
|
19397
|
-
var
|
19410
|
+
var sn = createSelector(ve, (a2) => {
|
19398
19411
|
var e;
|
19399
19412
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
19400
19413
|
});
|
19401
|
-
var
|
19402
|
-
var
|
19403
|
-
var Ur = createSelector([xr,
|
19404
|
-
var on = b(sn);
|
19414
|
+
var an = createSelector([Ta, Jo], (a2, e) => e ? a2[e] : void 0);
|
19415
|
+
var on = createSelector([Qo, ga], (a2, e) => e ? a2[e] : void 0);
|
19416
|
+
var Ur = createSelector([xr, ga], (a2, e) => e ? a2[e] : void 0);
|
19405
19417
|
var nn = b(an);
|
19406
|
-
var cn =
|
19418
|
+
var cn = b(on);
|
19419
|
+
var dn = createSelector([xr, qo], (a2, e) => {
|
19407
19420
|
var t;
|
19408
19421
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19409
19422
|
});
|
19410
|
-
var
|
19411
|
-
var
|
19423
|
+
var ln = b(createSelector(Ur, (a2) => a2 == null ? void 0 : a2[0]));
|
19424
|
+
var un = createSelector([xr, jo], (a2, e) => {
|
19412
19425
|
var t;
|
19413
19426
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19414
19427
|
});
|
19415
|
-
var
|
19428
|
+
var pn = b(createSelector(Ur, (a2) => a2));
|
19416
19429
|
|
19417
19430
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
19418
19431
|
import {
|
19419
19432
|
HMSRoomState as HMSRoomState3,
|
19420
19433
|
selectHLSState as selectHLSState4,
|
19421
19434
|
selectIsConnectedToRoom as selectIsConnectedToRoom6,
|
19422
|
-
selectPermissions as
|
19435
|
+
selectPermissions as selectPermissions7,
|
19423
19436
|
selectRecordingState,
|
19424
19437
|
selectRoomState as selectRoomState3,
|
19425
19438
|
useHMSActions as useHMSActions18,
|
19426
|
-
useHMSStore as
|
19439
|
+
useHMSStore as useHMSStore25,
|
19427
19440
|
useRecordingStreaming as useRecordingStreaming6
|
19428
19441
|
} from "@100mslive/react-sdk";
|
19429
19442
|
import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as CrossIcon7, PauseCircleIcon, RecordIcon } from "@100mslive/react-icons";
|
@@ -19431,7 +19444,7 @@ import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as CrossIcon7, Pause
|
|
19431
19444
|
// src/Prebuilt/components/Header/AdditionalRoomState.jsx
|
19432
19445
|
init_define_process_env();
|
19433
19446
|
import React53, { useState as useState24 } from "react";
|
19434
|
-
import { selectLocalPeerID as selectLocalPeerID5, selectPeerSharingVideoPlaylist, useHMSStore as
|
19447
|
+
import { selectLocalPeerID as selectLocalPeerID5, selectPeerSharingVideoPlaylist, useHMSStore as useHMSStore24, useScreenShare } from "@100mslive/react-sdk";
|
19435
19448
|
import {
|
19436
19449
|
AudioPlayerIcon,
|
19437
19450
|
ChevronDownIcon as ChevronDownIcon4,
|
@@ -19449,12 +19462,12 @@ import {
|
|
19449
19462
|
selectAudioPlaylistTrackByPeerID,
|
19450
19463
|
selectPeerSharingAudioPlaylist,
|
19451
19464
|
useHMSActions as useHMSActions16,
|
19452
|
-
useHMSStore as
|
19465
|
+
useHMSStore as useHMSStore22
|
19453
19466
|
} from "@100mslive/react-sdk";
|
19454
19467
|
var usePlaylistMusic = () => {
|
19455
|
-
const peer =
|
19456
|
-
const track =
|
19457
|
-
const selection =
|
19468
|
+
const peer = useHMSStore22(selectPeerSharingAudioPlaylist);
|
19469
|
+
const track = useHMSStore22(selectAudioPlaylistTrackByPeerID(peer == null ? void 0 : peer.id));
|
19470
|
+
const selection = useHMSStore22(selectAudioPlaylist.selectedItem);
|
19458
19471
|
const hmsActions = useHMSActions16();
|
19459
19472
|
const play = useCallback14(
|
19460
19473
|
(selectedId) => __async(void 0, null, function* () {
|
@@ -19481,12 +19494,12 @@ import {
|
|
19481
19494
|
selectPeerSharingAudio,
|
19482
19495
|
selectScreenShareAudioByPeerID,
|
19483
19496
|
useHMSActions as useHMSActions17,
|
19484
|
-
useHMSStore as
|
19497
|
+
useHMSStore as useHMSStore23
|
19485
19498
|
} from "@100mslive/react-sdk";
|
19486
19499
|
var useScreenshareAudio = () => {
|
19487
19500
|
const hmsActions = useHMSActions17();
|
19488
|
-
const peer =
|
19489
|
-
const track =
|
19501
|
+
const peer = useHMSStore23(selectPeerSharingAudio);
|
19502
|
+
const track = useHMSStore23(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
|
19490
19503
|
const handleMute = useCallback15(() => {
|
19491
19504
|
if (!peer.isLocal) {
|
19492
19505
|
hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
|
@@ -19533,8 +19546,8 @@ var AdditionalRoomState = () => {
|
|
19533
19546
|
!screenshareAudio.peer || !screenshareAudio.track,
|
19534
19547
|
!((_d = screenshareAudio.peer) == null ? void 0 : _d.isLocal) && !((_e = screenshareAudio.track) == null ? void 0 : _e.enabled)
|
19535
19548
|
].some(Boolean);
|
19536
|
-
const peerSharingPlaylist =
|
19537
|
-
const localPeerID =
|
19549
|
+
const peerSharingPlaylist = useHMSStore24(selectPeerSharingVideoPlaylist);
|
19550
|
+
const localPeerID = useHMSStore24(selectLocalPeerID5);
|
19538
19551
|
const isVideoPlayListPlaying = !!(peerSharingPlaylist == null ? void 0 : peerSharingPlaylist.id);
|
19539
19552
|
const { screenSharingPeerName, screenSharingPeerId, screenShareVideoTrackId } = useScreenShare();
|
19540
19553
|
const isVideoScreenSharingOn = !!screenShareVideoTrackId;
|
@@ -19601,7 +19614,7 @@ var AdditionalRoomState = () => {
|
|
19601
19614
|
var LiveStatus = () => {
|
19602
19615
|
var _a8;
|
19603
19616
|
const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
|
19604
|
-
const hlsState =
|
19617
|
+
const hlsState = useHMSStore25(selectHLSState4);
|
19605
19618
|
const isMobile = useMedia6(config.media.md);
|
19606
19619
|
const intervalRef = useRef13(null);
|
19607
19620
|
const { screenType } = useRoomLayoutConferencingScreen();
|
@@ -19648,7 +19661,7 @@ var LiveStatus = () => {
|
|
19648
19661
|
};
|
19649
19662
|
var RecordingStatus = () => {
|
19650
19663
|
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
|
19651
|
-
const permissions =
|
19664
|
+
const permissions = useHMSStore25(selectPermissions7);
|
19652
19665
|
const isMobile = useMedia6(config.media.md);
|
19653
19666
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
19654
19667
|
// so no need to show this as it duplicates
|
@@ -19681,8 +19694,8 @@ var RecordingStatus = () => {
|
|
19681
19694
|
);
|
19682
19695
|
};
|
19683
19696
|
var RecordingPauseStatus = () => {
|
19684
|
-
const recording =
|
19685
|
-
if (recording.hls && recording.hls.state ===
|
19697
|
+
const recording = useHMSStore25(selectRecordingState);
|
19698
|
+
if (recording.hls && recording.hls.state === Is.PAUSED) {
|
19686
19699
|
return /* @__PURE__ */ React54.createElement(
|
19687
19700
|
Tooltip,
|
19688
19701
|
{
|
@@ -19708,7 +19721,7 @@ var RecordingPauseStatus = () => {
|
|
19708
19721
|
return null;
|
19709
19722
|
};
|
19710
19723
|
var StartRecording2 = () => {
|
19711
|
-
const permissions =
|
19724
|
+
const permissions = useHMSStore25(selectPermissions7);
|
19712
19725
|
const [open, setOpen] = useState25(false);
|
19713
19726
|
const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
|
19714
19727
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming6();
|
@@ -19775,9 +19788,9 @@ var StartRecording2 = () => {
|
|
19775
19788
|
);
|
19776
19789
|
};
|
19777
19790
|
var StreamActions = () => {
|
19778
|
-
const isConnected =
|
19791
|
+
const isConnected = useHMSStore25(selectIsConnectedToRoom6);
|
19779
19792
|
const isMobile = useMedia6(config.media.md);
|
19780
|
-
const roomState =
|
19793
|
+
const roomState = useHMSStore25(selectRoomState3);
|
19781
19794
|
return /* @__PURE__ */ React54.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React54.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React54.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React54.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React54.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React54.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React54.createElement(StartRecording2, null) : null);
|
19782
19795
|
};
|
19783
19796
|
var StopRecordingInSheet = ({
|
@@ -19859,7 +19872,7 @@ var ActionTile = {
|
|
19859
19872
|
init_define_process_env();
|
19860
19873
|
import React57, { useState as useState26 } from "react";
|
19861
19874
|
import { useMedia as useMedia7 } from "react-use";
|
19862
|
-
import { selectLocalPeerName, useHMSActions as useHMSActions19, useHMSStore as
|
19875
|
+
import { selectLocalPeerName, useHMSActions as useHMSActions19, useHMSStore as useHMSStore26 } from "@100mslive/react-sdk";
|
19863
19876
|
|
19864
19877
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
19865
19878
|
init_define_process_env();
|
@@ -19975,7 +19988,7 @@ var ChangeNameModal = ({
|
|
19975
19988
|
}) => {
|
19976
19989
|
const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
|
19977
19990
|
const hmsActions = useHMSActions19();
|
19978
|
-
const localPeerName =
|
19991
|
+
const localPeerName = useHMSStore26(selectLocalPeerName);
|
19979
19992
|
const [currentName, setCurrentName] = useState26(localPeerName);
|
19980
19993
|
const isMobile = useMedia7(config.media.md);
|
19981
19994
|
const changeName = () => __async(void 0, null, function* () {
|
@@ -20016,12 +20029,12 @@ var ChangeNameModal = ({
|
|
20016
20029
|
// src/Prebuilt/components/AppData/useSheet.ts
|
20017
20030
|
init_define_process_env();
|
20018
20031
|
import { useCallback as useCallback17 } from "react";
|
20019
|
-
import { selectAppData as selectAppData4, useHMSActions as useHMSActions20, useHMSStore as
|
20032
|
+
import { selectAppData as selectAppData4, useHMSActions as useHMSActions20, useHMSStore as useHMSStore27, useHMSVanillaStore as useHMSVanillaStore7 } from "@100mslive/react-sdk";
|
20020
20033
|
var useIsSheetTypeOpen = (sheetType) => {
|
20021
20034
|
if (!sheetType) {
|
20022
20035
|
throw Error("Pass one of the sheet options");
|
20023
20036
|
}
|
20024
|
-
return
|
20037
|
+
return useHMSStore27(selectAppData4(APP_DATA.sheet)) === sheetType;
|
20025
20038
|
};
|
20026
20039
|
var useSheetToggle = (sheetType) => {
|
20027
20040
|
const hmsActions = useHMSActions20();
|
@@ -20036,9 +20049,9 @@ var useSheetToggle = (sheetType) => {
|
|
20036
20049
|
// src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx
|
20037
20050
|
init_define_process_env();
|
20038
20051
|
import { useEffect as useEffect17, useState as useState27 } from "react";
|
20039
|
-
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as
|
20052
|
+
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore28 } from "@100mslive/react-sdk";
|
20040
20053
|
var useUnreadPollQuizPresent = () => {
|
20041
|
-
const localPeerID =
|
20054
|
+
const localPeerID = useHMSStore28(ue);
|
20042
20055
|
const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
|
20043
20056
|
const [unreadPollQuiz, setUnreadPollQuiz] = useState27(false);
|
20044
20057
|
useEffect17(() => {
|
@@ -20067,8 +20080,8 @@ var MwebOptions = ({
|
|
20067
20080
|
screenType
|
20068
20081
|
}) => {
|
20069
20082
|
const hmsActions = useHMSActions21();
|
20070
|
-
const permissions =
|
20071
|
-
const isConnected =
|
20083
|
+
const permissions = useHMSStore29(selectPermissions8);
|
20084
|
+
const isConnected = useHMSStore29(selectIsConnectedToRoom7);
|
20072
20085
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming7();
|
20073
20086
|
const [openModals, setOpenModals] = useState28(/* @__PURE__ */ new Set());
|
20074
20087
|
const [openOptionsSheet, setOpenOptionsSheet] = useState28(false);
|
@@ -20079,7 +20092,7 @@ var MwebOptions = ({
|
|
20079
20092
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
20080
20093
|
const { showPolls } = useShowPolls();
|
20081
20094
|
const togglePollView = usePollViewToggle();
|
20082
|
-
const peerCount =
|
20095
|
+
const peerCount = useHMSStore29(selectPeerCount3);
|
20083
20096
|
const emojiCardRef = useRef14(null);
|
20084
20097
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
20085
20098
|
const { toggleAudio, toggleVideo } = useAVToggle3();
|
@@ -20324,7 +20337,7 @@ var RaiseHand = () => {
|
|
20324
20337
|
// src/Prebuilt/components/ScreenShareToggle.jsx
|
20325
20338
|
init_define_process_env();
|
20326
20339
|
import React67, { Fragment as Fragment9 } from "react";
|
20327
|
-
import { selectIsAllowedToPublish, useAwayNotifications, useHMSStore as
|
20340
|
+
import { selectIsAllowedToPublish, useAwayNotifications, useHMSStore as useHMSStore30, useScreenShare as useScreenShare3 } from "@100mslive/react-sdk";
|
20328
20341
|
import { ShareScreenIcon as ShareScreenIcon2 } from "@100mslive/react-icons";
|
20329
20342
|
|
20330
20343
|
// src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx
|
@@ -20784,7 +20797,7 @@ function ShareScreenOptions() {
|
|
20784
20797
|
|
20785
20798
|
// src/Prebuilt/components/ScreenShareToggle.jsx
|
20786
20799
|
var ScreenshareToggle = ({ css: css2 = {} }) => {
|
20787
|
-
const isAllowedToPublish =
|
20800
|
+
const isAllowedToPublish = useHMSStore30(selectIsAllowedToPublish);
|
20788
20801
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
20789
20802
|
const { amIScreenSharing, screenShareVideoTrackId: video, toggleScreenShare } = useScreenShare3();
|
20790
20803
|
const { requestPermission } = useAwayNotifications();
|
@@ -20812,13 +20825,13 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
20812
20825
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
20813
20826
|
init_define_process_env();
|
20814
20827
|
import React68 from "react";
|
20815
|
-
import { selectIsEffectsEnabled, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4, useHMSStore as
|
20828
|
+
import { selectIsEffectsEnabled, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4, useHMSStore as useHMSStore31 } from "@100mslive/react-sdk";
|
20816
20829
|
import { VirtualBackgroundIcon } from "@100mslive/react-icons";
|
20817
20830
|
var VBToggle = () => {
|
20818
20831
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
20819
20832
|
const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
|
20820
|
-
const isVideoOn =
|
20821
|
-
const isEffectsEnabled =
|
20833
|
+
const isVideoOn = useHMSStore31(selectIsLocalVideoEnabled4);
|
20834
|
+
const isEffectsEnabled = useHMSStore31(selectIsEffectsEnabled);
|
20822
20835
|
if (!isVideoOn || !isEffectsEnabled && isSafari) {
|
20823
20836
|
return null;
|
20824
20837
|
}
|
@@ -20828,10 +20841,10 @@ var VBToggle = () => {
|
|
20828
20841
|
// src/Prebuilt/components/Footer/ChatToggle.tsx
|
20829
20842
|
init_define_process_env();
|
20830
20843
|
import React69 from "react";
|
20831
|
-
import { selectUnreadHMSMessagesCount, useHMSStore as
|
20844
|
+
import { selectUnreadHMSMessagesCount, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
|
20832
20845
|
import { ChatIcon } from "@100mslive/react-icons";
|
20833
20846
|
var ChatToggle = () => {
|
20834
|
-
const countUnreadMessages =
|
20847
|
+
const countUnreadMessages = useHMSStore32(selectUnreadHMSMessagesCount);
|
20835
20848
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
20836
20849
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
20837
20850
|
return /* @__PURE__ */ React69.createElement(
|
@@ -20874,16 +20887,16 @@ import {
|
|
20874
20887
|
selectLocalPeerID as selectLocalPeerID7,
|
20875
20888
|
selectPeerCount as selectPeerCount4,
|
20876
20889
|
selectPeerMetadata as selectPeerMetadata3,
|
20877
|
-
selectPermissions as
|
20890
|
+
selectPermissions as selectPermissions11,
|
20878
20891
|
useHMSActions as useHMSActions24,
|
20879
|
-
useHMSStore as
|
20892
|
+
useHMSStore as useHMSStore37
|
20880
20893
|
} from "@100mslive/react-sdk";
|
20881
20894
|
import { ChangeRoleIcon as ChangeRoleIcon2, HandIcon as HandIcon4, MicOffIcon as MicOffIcon4, PeopleIcon as PeopleIcon2, SearchIcon, VerticalMenuIcon as VerticalMenuIcon5 } from "@100mslive/react-icons";
|
20882
20895
|
|
20883
20896
|
// src/Prebuilt/components/Connection/ConnectionIndicator.tsx
|
20884
20897
|
init_define_process_env();
|
20885
20898
|
import React70 from "react";
|
20886
|
-
import { selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, useHMSStore as
|
20899
|
+
import { selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
|
20887
20900
|
import { PoorConnectivityIcon } from "@100mslive/react-icons";
|
20888
20901
|
|
20889
20902
|
// src/Prebuilt/components/Connection/connectionQualityUtils.js
|
@@ -20936,7 +20949,7 @@ var ConnectionIndicator = ({
|
|
20936
20949
|
hideBg = false
|
20937
20950
|
}) => {
|
20938
20951
|
var _a8;
|
20939
|
-
const downlinkQuality = (_a8 =
|
20952
|
+
const downlinkQuality = (_a8 = useHMSStore33(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a8.downlinkQuality;
|
20940
20953
|
const { theme: theme2 } = useTheme();
|
20941
20954
|
const defaultColor = theme2.colors.on_surface_low;
|
20942
20955
|
if (downlinkQuality === -1 || downlinkQuality === void 0) {
|
@@ -20997,12 +21010,12 @@ var ConnectionIndicator = ({
|
|
20997
21010
|
// src/Prebuilt/components/RemoveParticipant.tsx
|
20998
21011
|
init_define_process_env();
|
20999
21012
|
import React71 from "react";
|
21000
|
-
import { selectLocalPeerID as selectLocalPeerID6, selectPermissions as
|
21013
|
+
import { selectLocalPeerID as selectLocalPeerID6, selectPermissions as selectPermissions9, useHMSActions as useHMSActions22, useHMSStore as useHMSStore34 } from "@100mslive/react-sdk";
|
21001
21014
|
import { PeopleRemoveIcon as PeopleRemoveIcon2 } from "@100mslive/react-icons";
|
21002
21015
|
var RemoveParticipant = ({ peerId }) => {
|
21003
21016
|
var _a8;
|
21004
|
-
const canRemoveOthers = (_a8 =
|
21005
|
-
const localPeerId =
|
21017
|
+
const canRemoveOthers = (_a8 = useHMSStore34(selectPermissions9)) == null ? void 0 : _a8.removeOthers;
|
21018
|
+
const localPeerId = useHMSStore34(selectLocalPeerID6);
|
21006
21019
|
const actions = useHMSActions22();
|
21007
21020
|
if (peerId === localPeerId || !canRemoveOthers) {
|
21008
21021
|
return null;
|
@@ -21030,13 +21043,19 @@ init_define_process_env();
|
|
21030
21043
|
import React73, { useEffect as useEffect18 } from "react";
|
21031
21044
|
import { useMeasure } from "react-use";
|
21032
21045
|
import { FixedSizeList } from "react-window";
|
21033
|
-
import { selectIsLargeRoom, useHMSStore as
|
21046
|
+
import { selectIsLargeRoom, useHMSStore as useHMSStore36, usePaginatedParticipants } from "@100mslive/react-sdk";
|
21034
21047
|
import { ChevronRightIcon } from "@100mslive/react-icons";
|
21035
21048
|
|
21036
21049
|
// src/Prebuilt/components/Footer/RoleOptions.tsx
|
21037
21050
|
init_define_process_env();
|
21038
21051
|
import React72, { useState as useState31 } from "react";
|
21039
|
-
import {
|
21052
|
+
import {
|
21053
|
+
selectPermissions as selectPermissions10,
|
21054
|
+
selectRoleByRoleName,
|
21055
|
+
useHMSActions as useHMSActions23,
|
21056
|
+
useHMSStore as useHMSStore35,
|
21057
|
+
useHMSVanillaStore as useHMSVanillaStore8
|
21058
|
+
} from "@100mslive/react-sdk";
|
21040
21059
|
import {
|
21041
21060
|
MicOffIcon as MicOffIcon3,
|
21042
21061
|
MicOnIcon as MicOnIcon3,
|
@@ -21048,27 +21067,44 @@ import {
|
|
21048
21067
|
} from "@100mslive/react-icons";
|
21049
21068
|
var dropdownItemCSS = { backgroundColor: "$surface_default", gap: "$4", p: "$8" };
|
21050
21069
|
var optionTextCSS = { fontWeight: "$semiBold", color: "$on_surface_high", textTransform: "none" };
|
21051
|
-
var
|
21052
|
-
|
21053
|
-
const permissions = useHMSStore33(selectPermissions9);
|
21054
|
-
const hmsActions = useHMSActions23();
|
21055
|
-
const { elements } = useRoomLayoutConferencingScreen();
|
21056
|
-
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
21070
|
+
var MuteUnmuteOption = ({ roleName, peerList }) => {
|
21071
|
+
var _a8, _b7;
|
21057
21072
|
const vanillaStore = useHMSVanillaStore8();
|
21058
21073
|
const store = vanillaStore.getState();
|
21074
|
+
const hmsActions = useHMSActions23();
|
21075
|
+
const permissions = useHMSStore35(selectPermissions10);
|
21076
|
+
const role = useHMSStore35(selectRoleByRoleName(roleName));
|
21059
21077
|
let allPeersHaveVideoOn = true;
|
21060
21078
|
let allPeersHaveAudioOn = true;
|
21061
21079
|
peerList.forEach((peer) => {
|
21062
|
-
var
|
21063
|
-
|
21064
|
-
|
21080
|
+
var _a9, _b8;
|
21081
|
+
if (peer.isLocal) {
|
21082
|
+
return;
|
21083
|
+
}
|
21084
|
+
const isAudioOn = !!peer.audioTrack && ((_a9 = store.tracks[peer.audioTrack]) == null ? void 0 : _a9.enabled);
|
21085
|
+
const isVideoOn = !!peer.videoTrack && ((_b8 = store.tracks[peer.videoTrack]) == null ? void 0 : _b8.enabled);
|
21065
21086
|
allPeersHaveAudioOn = allPeersHaveAudioOn && isAudioOn;
|
21066
21087
|
allPeersHaveVideoOn = allPeersHaveVideoOn && isVideoOn;
|
21067
21088
|
});
|
21068
|
-
const
|
21089
|
+
const setTrackEnabled = (type, enabled = false) => __async(void 0, null, function* () {
|
21090
|
+
try {
|
21091
|
+
yield hmsActions.setRemoteTracksEnabled({ roles: [roleName], source: "regular", type, enabled });
|
21092
|
+
} catch (e) {
|
21093
|
+
console.error(e);
|
21094
|
+
}
|
21095
|
+
});
|
21096
|
+
return /* @__PURE__ */ React72.createElement(React72.Fragment, null, ((_a8 = role.publishParams.allowed) == null ? void 0 : _a8.includes("audio")) && /* @__PURE__ */ React72.createElement(React72.Fragment, null, allPeersHaveAudioOn && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ React72.createElement(MicOffIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio")) : null, !allPeersHaveAudioOn && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ React72.createElement(MicOnIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Unmute Audio")) : null), ((_b7 = role.publishParams.allowed) == null ? void 0 : _b7.includes("audio")) && /* @__PURE__ */ React72.createElement(React72.Fragment, null, allPeersHaveVideoOn && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ React72.createElement(VideoOffIcon2, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video")) : null, !allPeersHaveVideoOn && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ React72.createElement(VideoOnIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Unmute Video")) : null));
|
21097
|
+
};
|
21098
|
+
var RoleOptions = ({ roleName, peerList }) => {
|
21099
|
+
const [openOptions, setOpenOptions] = useState31(false);
|
21100
|
+
const permissions = useHMSStore35(selectPermissions10);
|
21101
|
+
const hmsActions = useHMSActions23();
|
21102
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
21103
|
+
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
21104
|
+
const canMuteOrUnmute = (permissions == null ? void 0 : permissions.mute) || (permissions == null ? void 0 : permissions.unmute);
|
21069
21105
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
21070
21106
|
const canRemoveRoleFromRoom = (permissions == null ? void 0 : permissions.removeOthers) && (on_stage_role === roleName || (off_stage_roles == null ? void 0 : off_stage_roles.includes(roleName)));
|
21071
|
-
if (!(
|
21107
|
+
if (!(canMuteOrUnmute || canRemoveRoleFromStage || canRemoveRoleFromRoom) || peerList.length === 0) {
|
21072
21108
|
return null;
|
21073
21109
|
}
|
21074
21110
|
const removeAllFromStage = () => {
|
@@ -21079,13 +21115,6 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
21079
21115
|
}
|
21080
21116
|
});
|
21081
21117
|
};
|
21082
|
-
const setTrackEnabled = (type, enabled = false) => __async(void 0, null, function* () {
|
21083
|
-
try {
|
21084
|
-
yield hmsActions.setRemoteTracksEnabled({ roles: [roleName], source: "regular", type, enabled });
|
21085
|
-
} catch (e) {
|
21086
|
-
console.error(e);
|
21087
|
-
}
|
21088
|
-
});
|
21089
21118
|
const removePeersFromRoom = () => __async(void 0, null, function* () {
|
21090
21119
|
try {
|
21091
21120
|
peerList.forEach((peer) => __async(void 0, null, function* () {
|
@@ -21132,15 +21161,7 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
21132
21161
|
/* @__PURE__ */ React72.createElement(PersonRectangleIcon2, null),
|
21133
21162
|
/* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Remove all from Stage")
|
21134
21163
|
),
|
21135
|
-
|
21136
|
-
Dropdown.Item,
|
21137
|
-
{
|
21138
|
-
css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderTop: "1px solid $border_bright" }),
|
21139
|
-
onClick: () => setTrackEnabled("video", !allPeersHaveVideoOn)
|
21140
|
-
},
|
21141
|
-
allPeersHaveVideoOn ? /* @__PURE__ */ React72.createElement(VideoOffIcon2, null) : /* @__PURE__ */ React72.createElement(VideoOnIcon3, null),
|
21142
|
-
/* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, allPeersHaveVideoOn ? "Mute" : "Unmute", " Video")
|
21143
|
-
)),
|
21164
|
+
canMuteOrUnmute && /* @__PURE__ */ React72.createElement(MuteUnmuteOption, { peerList, roleName }),
|
21144
21165
|
canRemoveRoleFromRoom && /* @__PURE__ */ React72.createElement(
|
21145
21166
|
Dropdown.Item,
|
21146
21167
|
{
|
@@ -21183,7 +21204,7 @@ var RoleAccordion = ({
|
|
21183
21204
|
onActive
|
21184
21205
|
}) => {
|
21185
21206
|
const [ref, { width }] = useMeasure();
|
21186
|
-
const isLargeRoom =
|
21207
|
+
const isLargeRoom = useHMSStore36(selectIsLargeRoom);
|
21187
21208
|
const { peers, total, loadPeers } = usePaginatedParticipants({ role: roleName, limit: 10 });
|
21188
21209
|
const isOffStageRole = roleName && offStageRoles.includes(roleName);
|
21189
21210
|
let peersInAccordion = peerList;
|
@@ -21273,9 +21294,9 @@ var ParticipantList = ({
|
|
21273
21294
|
}) => {
|
21274
21295
|
const [filter, setFilter] = useState32();
|
21275
21296
|
const { participants, isConnected, peerCount } = useParticipants(filter);
|
21276
|
-
const isLargeRoom =
|
21297
|
+
const isLargeRoom = useHMSStore37(selectIsLargeRoom2);
|
21277
21298
|
const peersOrderedByRoles = {};
|
21278
|
-
const handRaisedPeers =
|
21299
|
+
const handRaisedPeers = useHMSStore37(selectHandRaisedPeers);
|
21279
21300
|
participants.forEach((participant) => {
|
21280
21301
|
if (participant.roleName) {
|
21281
21302
|
if (peersOrderedByRoles[participant.roleName] === void 0) {
|
@@ -21338,7 +21359,7 @@ var ParticipantList = ({
|
|
21338
21359
|
));
|
21339
21360
|
};
|
21340
21361
|
var ParticipantCount = () => {
|
21341
|
-
const peerCount =
|
21362
|
+
const peerCount = useHMSStore37(selectPeerCount4);
|
21342
21363
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21343
21364
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21344
21365
|
if (peerCount === 0) {
|
@@ -21369,7 +21390,7 @@ var Participant = ({
|
|
21369
21390
|
isConnected,
|
21370
21391
|
style
|
21371
21392
|
}) => {
|
21372
|
-
const localPeerId =
|
21393
|
+
const localPeerId = useHMSStore37(selectLocalPeerID7);
|
21373
21394
|
return /* @__PURE__ */ React74.createElement(
|
21374
21395
|
Flex,
|
21375
21396
|
{
|
@@ -21453,13 +21474,13 @@ var VirtualizedParticipants = ({
|
|
21453
21474
|
var ParticipantActions = React74.memo(
|
21454
21475
|
({ peerId, role, isLocal }) => {
|
21455
21476
|
var _a8, _b7;
|
21456
|
-
const isHandRaised =
|
21457
|
-
const canChangeRole = (_a8 =
|
21458
|
-
const canRemoveOthers = (_b7 =
|
21477
|
+
const isHandRaised = useHMSStore37(selectHasPeerHandRaised2(peerId));
|
21478
|
+
const canChangeRole = (_a8 = useHMSStore37(selectPermissions11)) == null ? void 0 : _a8.changeRole;
|
21479
|
+
const canRemoveOthers = (_b7 = useHMSStore37(selectPermissions11)) == null ? void 0 : _b7.removeOthers;
|
21459
21480
|
const { elements } = useRoomLayoutConferencingScreen();
|
21460
21481
|
const { on_stage_exp } = elements || {};
|
21461
21482
|
const shouldShowMoreActions = on_stage_exp && canChangeRole || canRemoveOthers;
|
21462
|
-
const isAudioMuted = !
|
21483
|
+
const isAudioMuted = !useHMSStore37(selectIsPeerAudioEnabled(peerId));
|
21463
21484
|
return /* @__PURE__ */ React74.createElement(
|
21464
21485
|
Flex,
|
21465
21486
|
{
|
@@ -21509,7 +21530,7 @@ var ParticipantMoreActions = ({
|
|
21509
21530
|
} = elements.on_stage_exp || {};
|
21510
21531
|
const isInStage = role === on_stage_role;
|
21511
21532
|
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
|
21512
|
-
const prevRole = (_a8 =
|
21533
|
+
const prevRole = (_a8 = useHMSStore37(selectPeerMetadata3(peerId))) == null ? void 0 : _a8.prevRole;
|
21513
21534
|
const [open, setOpen] = useState32(false);
|
21514
21535
|
const handleStageAction = () => __async(void 0, null, function* () {
|
21515
21536
|
if (isInStage) {
|
@@ -21715,9 +21736,9 @@ var Footer2 = ({
|
|
21715
21736
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
21716
21737
|
init_define_process_env();
|
21717
21738
|
import React78, { useCallback as useCallback19, useState as useState33 } from "react";
|
21718
|
-
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions25, useHMSStore as
|
21739
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions25, useHMSStore as useHMSStore38, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
21719
21740
|
function HLSFailureModal() {
|
21720
|
-
const hlsError =
|
21741
|
+
const hlsError = useHMSStore38(selectHLSState5).error || false;
|
21721
21742
|
const [openModal, setOpenModal] = useState33(!!hlsError);
|
21722
21743
|
const hmsActions = useHMSActions25();
|
21723
21744
|
const { isRTMPRunning } = useRecordingStreaming8();
|
@@ -21770,7 +21791,7 @@ import {
|
|
21770
21791
|
selectRoleChangeRequest,
|
21771
21792
|
useCustomEvent as useCustomEvent3,
|
21772
21793
|
useHMSActions as useHMSActions42,
|
21773
|
-
useHMSStore as
|
21794
|
+
useHMSStore as useHMSStore69
|
21774
21795
|
} from "@100mslive/react-sdk";
|
21775
21796
|
|
21776
21797
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
@@ -21784,7 +21805,7 @@ import {
|
|
21784
21805
|
selectRoomState as selectRoomState5,
|
21785
21806
|
selectVideoTrackByID as selectVideoTrackByID5,
|
21786
21807
|
useAVToggle as useAVToggle5,
|
21787
|
-
useHMSStore as
|
21808
|
+
useHMSStore as useHMSStore68,
|
21788
21809
|
useParticipants as useParticipants2,
|
21789
21810
|
usePreviewJoin,
|
21790
21811
|
useRecordingStreaming as useRecordingStreaming11
|
@@ -21795,7 +21816,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
21795
21816
|
init_define_process_env();
|
21796
21817
|
import React126, { useEffect as useEffect32 } from "react";
|
21797
21818
|
import { useMedia as useMedia21 } from "react-use";
|
21798
|
-
import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as
|
21819
|
+
import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore66 } from "@100mslive/react-sdk";
|
21799
21820
|
|
21800
21821
|
// src/Prebuilt/components/Polls/Polls.tsx
|
21801
21822
|
init_define_process_env();
|
@@ -21806,17 +21827,17 @@ init_define_process_env();
|
|
21806
21827
|
import React81, { useEffect as useEffect21, useMemo as useMemo5, useRef as useRef15, useState as useState34 } from "react";
|
21807
21828
|
import {
|
21808
21829
|
selectLocalPeerRoleName,
|
21809
|
-
selectPermissions as
|
21830
|
+
selectPermissions as selectPermissions13,
|
21810
21831
|
selectPolls as selectPolls2,
|
21811
21832
|
useHMSActions as useHMSActions26,
|
21812
|
-
useHMSStore as
|
21833
|
+
useHMSStore as useHMSStore40
|
21813
21834
|
} from "@100mslive/react-sdk";
|
21814
21835
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
21815
21836
|
|
21816
21837
|
// src/Prebuilt/components/Streaming/Common.jsx
|
21817
21838
|
init_define_process_env();
|
21818
21839
|
import React79 from "react";
|
21819
|
-
import { selectPermissions as
|
21840
|
+
import { selectPermissions as selectPermissions12, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
|
21820
21841
|
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon10, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
|
21821
21842
|
var ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
21822
21843
|
return /* @__PURE__ */ React79.createElement(
|
@@ -21916,7 +21937,7 @@ var StatusIndicator = ({ status }) => {
|
|
21916
21937
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
21917
21938
|
var PollsQuizMenu = () => {
|
21918
21939
|
const togglePollView = usePollViewToggle();
|
21919
|
-
const permissions =
|
21940
|
+
const permissions = useHMSStore40(selectPermissions13);
|
21920
21941
|
return /* @__PURE__ */ React81.createElement(Container3, { rounded: true }, /* @__PURE__ */ React81.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ React81.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ React81.createElement(AddMenu, null), /* @__PURE__ */ React81.createElement(PrevMenu, null)));
|
21921
21942
|
};
|
21922
21943
|
function InteractionSelectionCard({
|
@@ -21958,7 +21979,7 @@ function InteractionSelectionCard({
|
|
21958
21979
|
var AddMenu = () => {
|
21959
21980
|
const actions = useHMSActions26();
|
21960
21981
|
const [title, setTitle] = useState34("");
|
21961
|
-
const localPeerRoleName =
|
21982
|
+
const localPeerRoleName = useHMSStore40(selectLocalPeerRoleName);
|
21962
21983
|
const [hideVoteCount, setHideVoteCount] = useState34(false);
|
21963
21984
|
const [error, setError] = useState34();
|
21964
21985
|
const [titleError, setTitleError] = useState34("");
|
@@ -22040,7 +22061,7 @@ var AddMenu = () => {
|
|
22040
22061
|
};
|
22041
22062
|
var PrevMenu = () => {
|
22042
22063
|
const hmsActions = useHMSActions26();
|
22043
|
-
const polls =
|
22064
|
+
const polls = useHMSStore40(selectPolls2);
|
22044
22065
|
const sortedPolls = useMemo5(
|
22045
22066
|
() => {
|
22046
22067
|
var _a8;
|
@@ -22051,7 +22072,7 @@ var PrevMenu = () => {
|
|
22051
22072
|
},
|
22052
22073
|
[polls]
|
22053
22074
|
);
|
22054
|
-
const permissions =
|
22075
|
+
const permissions = useHMSStore40(selectPermissions13);
|
22055
22076
|
useEffect21(() => {
|
22056
22077
|
const updatePolls = () => __async(void 0, null, function* () {
|
22057
22078
|
yield hmsActions.interactivityCenter.getPolls();
|
@@ -22089,7 +22110,7 @@ var InteractionCard = ({ id, title, status }) => {
|
|
22089
22110
|
init_define_process_env();
|
22090
22111
|
import React91, { useMemo as useMemo6, useState as useState36 } from "react";
|
22091
22112
|
import { v4 as uuid2 } from "uuid";
|
22092
|
-
import { selectPollByID, useHMSActions as useHMSActions27, useHMSStore as
|
22113
|
+
import { selectPollByID, useHMSActions as useHMSActions27, useHMSStore as useHMSStore41, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
22093
22114
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
22094
22115
|
|
22095
22116
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
@@ -22614,7 +22635,7 @@ function CreateQuestions() {
|
|
22614
22635
|
const { isHLSRunning } = useRecordingStreaming9();
|
22615
22636
|
const togglePollView = usePollViewToggle();
|
22616
22637
|
const { pollInView: id, setPollView } = usePollViewState();
|
22617
|
-
const interaction =
|
22638
|
+
const interaction = useHMSStore41(selectPollByID(id));
|
22618
22639
|
const [questions, setQuestions] = useState36(
|
22619
22640
|
((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
|
22620
22641
|
);
|
@@ -22708,7 +22729,7 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
|
|
22708
22729
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
22709
22730
|
init_define_process_env();
|
22710
22731
|
import React95, { useState as useState38 } from "react";
|
22711
|
-
import { selectPollByID as selectPollByID3, useHMSStore as
|
22732
|
+
import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore44 } from "@100mslive/react-sdk";
|
22712
22733
|
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
|
22713
22734
|
|
22714
22735
|
// src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
|
@@ -22772,7 +22793,7 @@ var LeaderboardEntry = ({
|
|
22772
22793
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
22773
22794
|
init_define_process_env();
|
22774
22795
|
import React94 from "react";
|
22775
|
-
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as
|
22796
|
+
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
|
22776
22797
|
|
22777
22798
|
// src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
|
22778
22799
|
init_define_process_env();
|
@@ -22797,11 +22818,11 @@ import { useEffect as useEffect22, useState as useState37 } from "react";
|
|
22797
22818
|
import {
|
22798
22819
|
selectPollByID as selectPollByID2,
|
22799
22820
|
useHMSActions as useHMSActions28,
|
22800
|
-
useHMSStore as
|
22821
|
+
useHMSStore as useHMSStore42
|
22801
22822
|
} from "@100mslive/react-sdk";
|
22802
22823
|
var useQuizSummary = (quizID) => {
|
22803
22824
|
const hmsActions = useHMSActions28();
|
22804
|
-
const quiz =
|
22825
|
+
const quiz = useHMSStore42(selectPollByID2(quizID));
|
22805
22826
|
const [quizLeaderboard, setQuizLeaderboard] = useState37();
|
22806
22827
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
22807
22828
|
totalUsers: 0,
|
@@ -22838,7 +22859,7 @@ var useQuizSummary = (quizID) => {
|
|
22838
22859
|
|
22839
22860
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
22840
22861
|
var PeerParticipationSummary = ({ quiz }) => {
|
22841
|
-
const localPeerId =
|
22862
|
+
const localPeerId = useHMSStore43(selectLocalPeerID8);
|
22842
22863
|
const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
|
22843
22864
|
if (quiz.state !== "stopped") {
|
22844
22865
|
return /* @__PURE__ */ React94.createElement(React94.Fragment, null);
|
@@ -22879,7 +22900,7 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
22879
22900
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
22880
22901
|
var LeaderboardSummary = ({ pollID }) => {
|
22881
22902
|
var _a8, _b7;
|
22882
|
-
const quiz =
|
22903
|
+
const quiz = useHMSStore44(selectPollByID3(pollID));
|
22883
22904
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
22884
22905
|
const [viewAllEntries, setViewAllEntries] = useState38(false);
|
22885
22906
|
const { setPollView } = usePollViewState();
|
@@ -22954,10 +22975,10 @@ init_define_process_env();
|
|
22954
22975
|
import React99 from "react";
|
22955
22976
|
import {
|
22956
22977
|
selectPeerNameByID,
|
22957
|
-
selectPermissions as
|
22978
|
+
selectPermissions as selectPermissions14,
|
22958
22979
|
selectPollByID as selectPollByID4,
|
22959
22980
|
useHMSActions as useHMSActions30,
|
22960
|
-
useHMSStore as
|
22981
|
+
useHMSStore as useHMSStore47
|
22961
22982
|
} from "@100mslive/react-sdk";
|
22962
22983
|
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon13 } from "@100mslive/react-icons";
|
22963
22984
|
|
@@ -22968,7 +22989,7 @@ import React97 from "react";
|
|
22968
22989
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
22969
22990
|
init_define_process_env();
|
22970
22991
|
import React96, { useCallback as useCallback21, useMemo as useMemo7, useRef as useRef17, useState as useState39 } from "react";
|
22971
|
-
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions29, useHMSStore as
|
22992
|
+
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
|
22972
22993
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
22973
22994
|
var QuestionCard2 = ({
|
22974
22995
|
pollID,
|
@@ -22987,7 +23008,7 @@ var QuestionCard2 = ({
|
|
22987
23008
|
rolesThatCanViewResponses
|
22988
23009
|
}) => {
|
22989
23010
|
const actions = useHMSActions29();
|
22990
|
-
const localPeer =
|
23011
|
+
const localPeer = useHMSStore45(selectLocalPeer);
|
22991
23012
|
const localPeerResponse = responses == null ? void 0 : responses.find(
|
22992
23013
|
(response) => {
|
22993
23014
|
var _a8, _b7;
|
@@ -22995,7 +23016,7 @@ var QuestionCard2 = ({
|
|
22995
23016
|
}
|
22996
23017
|
);
|
22997
23018
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
22998
|
-
const localPeerRoleName =
|
23019
|
+
const localPeerRoleName = useHMSStore45(selectLocalPeerRoleName2);
|
22999
23020
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
23000
23021
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
23001
23022
|
const isLive = pollState === "started";
|
@@ -23178,10 +23199,10 @@ var StandardView = ({ poll }) => {
|
|
23178
23199
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
23179
23200
|
init_define_process_env();
|
23180
23201
|
import React98, { useState as useState40 } from "react";
|
23181
|
-
import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as
|
23202
|
+
import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore46 } from "@100mslive/react-sdk";
|
23182
23203
|
var TimedView = ({ poll }) => {
|
23183
23204
|
var _a8, _b7, _c;
|
23184
|
-
const localPeerId =
|
23205
|
+
const localPeerId = useHMSStore46(selectLocalPeerID9);
|
23185
23206
|
const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
|
23186
23207
|
const [currentIndex, setCurrentIndex] = useState40(lastAttemptedIndex);
|
23187
23208
|
const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
|
@@ -23217,9 +23238,9 @@ var TimedView = ({ poll }) => {
|
|
23217
23238
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
23218
23239
|
var Voting = ({ id, toggleVoting }) => {
|
23219
23240
|
const actions = useHMSActions30();
|
23220
|
-
const poll =
|
23221
|
-
const pollCreatorName =
|
23222
|
-
const permissions =
|
23241
|
+
const poll = useHMSStore47(selectPollByID4(id));
|
23242
|
+
const pollCreatorName = useHMSStore47(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
|
23243
|
+
const permissions = useHMSStore47(selectPermissions14);
|
23223
23244
|
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
23224
23245
|
const { setPollView } = usePollViewState();
|
23225
23246
|
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
@@ -23346,14 +23367,14 @@ var RoomDetailsPane = () => {
|
|
23346
23367
|
init_define_process_env();
|
23347
23368
|
import React118, { useEffect as useEffect30, useState as useState50 } from "react";
|
23348
23369
|
import { useMedia as useMedia18 } from "react-use";
|
23349
|
-
import { selectPeerCount as selectPeerCount5, useHMSStore as
|
23370
|
+
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
23350
23371
|
import { CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
|
23351
23372
|
|
23352
23373
|
// src/Prebuilt/components/Chat/Chat.tsx
|
23353
23374
|
init_define_process_env();
|
23354
23375
|
import React115, { useCallback as useCallback29, useRef as useRef21 } from "react";
|
23355
23376
|
import { useMedia as useMedia17 } from "react-use";
|
23356
|
-
import { selectHMSMessagesCount, useHMSActions as useHMSActions38, useHMSStore as
|
23377
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions38, useHMSStore as useHMSStore57, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
|
23357
23378
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
23358
23379
|
|
23359
23380
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
@@ -23371,7 +23392,7 @@ import {
|
|
23371
23392
|
selectSessionStore as selectSessionStore5,
|
23372
23393
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
23373
23394
|
useHMSActions as useHMSActions34,
|
23374
|
-
useHMSStore as
|
23395
|
+
useHMSStore as useHMSStore51,
|
23375
23396
|
useHMSVanillaStore as useHMSVanillaStore10
|
23376
23397
|
} from "@100mslive/react-sdk";
|
23377
23398
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
@@ -23379,7 +23400,7 @@ import { SolidPinIcon } from "@100mslive/react-icons";
|
|
23379
23400
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
23380
23401
|
init_define_process_env();
|
23381
23402
|
import React105, { useCallback as useCallback24, useState as useState42 } from "react";
|
23382
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as
|
23403
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions15, useHMSActions as useHMSActions33, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
|
23383
23404
|
import {
|
23384
23405
|
CopyIcon as CopyIcon2,
|
23385
23406
|
CrossCircleIcon as CrossCircleIcon2,
|
@@ -23407,10 +23428,10 @@ var MwebChatOption = ({
|
|
23407
23428
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
23408
23429
|
init_define_process_env();
|
23409
23430
|
import { useCallback as useCallback22 } from "react";
|
23410
|
-
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as
|
23431
|
+
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
|
23411
23432
|
var useChatBlacklist = (sessionStoreKey) => {
|
23412
23433
|
const hmsActions = useHMSActions31();
|
23413
|
-
const blacklistedIDs =
|
23434
|
+
const blacklistedIDs = useHMSStore48(selectSessionStore2(sessionStoreKey));
|
23414
23435
|
const blacklistItem = useCallback22(
|
23415
23436
|
(blacklistID) => __async(void 0, null, function* () {
|
23416
23437
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -23420,8 +23441,8 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
23420
23441
|
return { blacklistItem, blacklistedIDs };
|
23421
23442
|
};
|
23422
23443
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
23423
|
-
const localPeer =
|
23424
|
-
const blacklistedPeerIDs =
|
23444
|
+
const localPeer = useHMSStore48(selectLocalPeer2);
|
23445
|
+
const blacklistedPeerIDs = useHMSStore48(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
23425
23446
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
23426
23447
|
};
|
23427
23448
|
|
@@ -23504,9 +23525,9 @@ var ChatActions = ({
|
|
23504
23525
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
23505
23526
|
const [open, setOpen] = useState42(false);
|
23506
23527
|
const actions = useHMSActions33();
|
23507
|
-
const canRemoveOthers = (_b7 =
|
23528
|
+
const canRemoveOthers = (_b7 = useHMSStore49(selectPermissions15)) == null ? void 0 : _b7.removeOthers;
|
23508
23529
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
23509
|
-
const localPeerName =
|
23530
|
+
const localPeerName = useHMSStore49(selectLocalPeerName2);
|
23510
23531
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
23511
23532
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
23512
23533
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -23726,9 +23747,9 @@ var EmptyChat = () => {
|
|
23726
23747
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
23727
23748
|
init_define_process_env();
|
23728
23749
|
import { useEffect as useEffect24, useState as useState43 } from "react";
|
23729
|
-
import { selectSessionStore as selectSessionStore4, useHMSStore as
|
23750
|
+
import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23730
23751
|
var usePinnedBy = (messageId) => {
|
23731
|
-
const pinnedMessages =
|
23752
|
+
const pinnedMessages = useHMSStore50(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
23732
23753
|
const [pinnedBy, setPinnedBy] = useState43("");
|
23733
23754
|
useEffect24(() => {
|
23734
23755
|
let match = "";
|
@@ -23811,8 +23832,8 @@ var MessageType = ({
|
|
23811
23832
|
hasCurrentUserSent,
|
23812
23833
|
receiver
|
23813
23834
|
}) => {
|
23814
|
-
const peerName =
|
23815
|
-
const localPeerRoleName =
|
23835
|
+
const peerName = useHMSStore51(selectPeerNameByID3(receiver));
|
23836
|
+
const localPeerRoleName = useHMSStore51(selectLocalPeerRoleName3);
|
23816
23837
|
if (receiver) {
|
23817
23838
|
return /* @__PURE__ */ React107.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
23818
23839
|
}
|
@@ -23860,7 +23881,7 @@ var ChatMessage = React107.memo(
|
|
23860
23881
|
const isMobile = useMedia12(config.media.md);
|
23861
23882
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
23862
23883
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
23863
|
-
const localPeerId =
|
23884
|
+
const localPeerId = useHMSStore51(selectLocalPeerID10);
|
23864
23885
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
23865
23886
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
23866
23887
|
const messageType = getMessageType({
|
@@ -24079,8 +24100,8 @@ var VirtualizedChatMessages = React107.forwardRef(({ messages, scrollToBottom },
|
|
24079
24100
|
});
|
24080
24101
|
var ChatBody = React107.forwardRef(
|
24081
24102
|
({ scrollToBottom }, listRef) => {
|
24082
|
-
const messages =
|
24083
|
-
const blacklistedMessageIDs =
|
24103
|
+
const messages = useHMSStore51(selectHMSMessages);
|
24104
|
+
const blacklistedMessageIDs = useHMSStore51(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
24084
24105
|
const filteredMessages = useMemo8(() => {
|
24085
24106
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
24086
24107
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
@@ -24107,7 +24128,7 @@ var PinnedBy = ({
|
|
24107
24128
|
rowRef
|
24108
24129
|
}) => {
|
24109
24130
|
const pinnedBy = usePinnedBy(messageId);
|
24110
|
-
const localPeerName =
|
24131
|
+
const localPeerName = useHMSStore51(selectLocalPeerName3);
|
24111
24132
|
useLayoutEffect(() => {
|
24112
24133
|
if (rowRef == null ? void 0 : rowRef.current) {
|
24113
24134
|
if (pinnedBy) {
|
@@ -24130,7 +24151,7 @@ import React110, { useCallback as useCallback27, useEffect as useEffect27, useRe
|
|
24130
24151
|
import { useMedia as useMedia15 } from "react-use";
|
24131
24152
|
import data2 from "@emoji-mart/data";
|
24132
24153
|
import Picker from "@emoji-mart/react";
|
24133
|
-
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions36, useHMSStore as
|
24154
|
+
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions36, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
24134
24155
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24135
24156
|
|
24136
24157
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -24148,7 +24169,7 @@ import {
|
|
24148
24169
|
selectMessagesUnreadCountByRole,
|
24149
24170
|
selectRemotePeers as selectRemotePeers2,
|
24150
24171
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
|
24151
|
-
useHMSStore as
|
24172
|
+
useHMSStore as useHMSStore52
|
24152
24173
|
} from "@100mslive/react-sdk";
|
24153
24174
|
import { CheckIcon as CheckIcon7, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
|
24154
24175
|
var ChatDotIcon = () => {
|
@@ -24198,7 +24219,7 @@ var SelectorHeader = React108.memo(
|
|
24198
24219
|
}
|
24199
24220
|
);
|
24200
24221
|
var Everyone = React108.memo(({ active }) => {
|
24201
|
-
const unreadCount =
|
24222
|
+
const unreadCount = useHMSStore52(selectUnreadHMSMessagesCount3);
|
24202
24223
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24203
24224
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24204
24225
|
return /* @__PURE__ */ React108.createElement(
|
@@ -24216,7 +24237,7 @@ var Everyone = React108.memo(({ active }) => {
|
|
24216
24237
|
);
|
24217
24238
|
});
|
24218
24239
|
var RoleItem = React108.memo(({ role, active }) => {
|
24219
|
-
const unreadCount =
|
24240
|
+
const unreadCount = useHMSStore52(selectMessagesUnreadCountByRole(role));
|
24220
24241
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24221
24242
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24222
24243
|
return /* @__PURE__ */ React108.createElement(
|
@@ -24233,7 +24254,7 @@ var RoleItem = React108.memo(({ role, active }) => {
|
|
24233
24254
|
);
|
24234
24255
|
});
|
24235
24256
|
var PeerItem = ({ peerId, name, active }) => {
|
24236
|
-
const unreadCount =
|
24257
|
+
const unreadCount = useHMSStore52(selectMessagesUnreadCountByPeerID(peerId));
|
24237
24258
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24238
24259
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24239
24260
|
return /* @__PURE__ */ React108.createElement(
|
@@ -24292,7 +24313,7 @@ var VirtualizedSelectItemList = ({
|
|
24292
24313
|
var ChatSelector = ({ role, peerId }) => {
|
24293
24314
|
var _a8, _b7;
|
24294
24315
|
const { elements } = useRoomLayoutConferencingScreen();
|
24295
|
-
const peers =
|
24316
|
+
const peers = useHMSStore52(selectRemotePeers2);
|
24296
24317
|
const [search, setSearch] = useState45("");
|
24297
24318
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
24298
24319
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
@@ -24430,10 +24451,10 @@ var ChatSelectorContainer = () => {
|
|
24430
24451
|
// src/Prebuilt/components/AppData/useChatState.js
|
24431
24452
|
init_define_process_env();
|
24432
24453
|
import { useCallback as useCallback26 } from "react";
|
24433
|
-
import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as
|
24454
|
+
import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
24434
24455
|
var useChatDraftMessage = () => {
|
24435
24456
|
const hmsActions = useHMSActions35();
|
24436
|
-
let chatDraftMessage =
|
24457
|
+
let chatDraftMessage = useHMSStore53(selectAppData5(APP_DATA.chatDraft));
|
24437
24458
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
24438
24459
|
chatDraftMessage = "";
|
24439
24460
|
}
|
@@ -24532,7 +24553,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24532
24553
|
const isMobile = useMedia15(config.media.md);
|
24533
24554
|
const { elements } = useRoomLayoutConferencingScreen();
|
24534
24555
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
24535
|
-
const localPeer =
|
24556
|
+
const localPeer = useHMSStore54(selectLocalPeer3);
|
24536
24557
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
24537
24558
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
24538
24559
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -24700,14 +24721,14 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24700
24721
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
24701
24722
|
init_define_process_env();
|
24702
24723
|
import React111, { useCallback as useCallback28 } from "react";
|
24703
|
-
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as
|
24724
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
24704
24725
|
var ChatPaused = () => {
|
24705
24726
|
var _a8, _b7;
|
24706
24727
|
const hmsActions = useHMSActions37();
|
24707
24728
|
const { elements } = useRoomLayoutConferencingScreen();
|
24708
24729
|
const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
24709
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } =
|
24710
|
-
const localPeer =
|
24730
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore55(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
24731
|
+
const localPeer = useHMSStore55(selectLocalPeer4);
|
24711
24732
|
const unPauseChat = useCallback28(
|
24712
24733
|
() => __async(void 0, null, function* () {
|
24713
24734
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
@@ -24758,7 +24779,7 @@ init_define_process_env();
|
|
24758
24779
|
import React114, { useEffect as useEffect28, useState as useState48 } from "react";
|
24759
24780
|
import { useSwipeable } from "react-swipeable";
|
24760
24781
|
import { useMedia as useMedia16 } from "react-use";
|
24761
|
-
import { selectSessionStore as selectSessionStore7, useHMSStore as
|
24782
|
+
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
|
24762
24783
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
24763
24784
|
|
24764
24785
|
// src/Prebuilt/components/Chat/ArrowNavigation.tsx
|
@@ -24815,7 +24836,7 @@ var StickIndicator = ({ total, index }) => {
|
|
24815
24836
|
var PINNED_MESSAGE_LENGTH = 75;
|
24816
24837
|
var PinnedMessage = () => {
|
24817
24838
|
var _a8, _b7, _c;
|
24818
|
-
const pinnedMessages =
|
24839
|
+
const pinnedMessages = useHMSStore56(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
24819
24840
|
const [pinnedMessageIndex, setPinnedMessageIndex] = useState48(0);
|
24820
24841
|
const { removePinnedMessage } = usePinnedMessages();
|
24821
24842
|
const isMobile = useMedia16(config.media.md);
|
@@ -24933,7 +24954,7 @@ var Chat = () => {
|
|
24933
24954
|
const listRef = useRef21(null);
|
24934
24955
|
const hmsActions = useHMSActions38();
|
24935
24956
|
const vanillaStore = useHMSVanillaStore11();
|
24936
|
-
const { enabled: isChatEnabled = true } =
|
24957
|
+
const { enabled: isChatEnabled = true } = useHMSStore57(Zh("chatState" /* CHAT_STATE */)) || {};
|
24937
24958
|
const isMobile = useMedia17(config.media.md);
|
24938
24959
|
const scrollToBottom = useCallback29(
|
24939
24960
|
(unreadCount = 0) => {
|
@@ -24972,7 +24993,7 @@ var NewMessageIndicator = ({
|
|
24972
24993
|
scrollToBottom,
|
24973
24994
|
listRef
|
24974
24995
|
}) => {
|
24975
|
-
const unreadCount =
|
24996
|
+
const unreadCount = useHMSStore57(Fn);
|
24976
24997
|
if (!unreadCount || !listRef.current) {
|
24977
24998
|
return null;
|
24978
24999
|
}
|
@@ -25022,7 +25043,7 @@ import React116, { useEffect as useEffect29, useState as useState49 } from "reac
|
|
25022
25043
|
import { useInView } from "react-intersection-observer";
|
25023
25044
|
import { useMeasure as useMeasure2 } from "react-use";
|
25024
25045
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
25025
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as
|
25046
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore58, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
25026
25047
|
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
|
25027
25048
|
var LoadMoreParticipants = ({
|
25028
25049
|
hasNext,
|
@@ -25066,7 +25087,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25066
25087
|
var _a8;
|
25067
25088
|
return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
25068
25089
|
});
|
25069
|
-
const isConnected =
|
25090
|
+
const isConnected = useHMSStore58(selectIsConnectedToRoom8);
|
25070
25091
|
const [ref, { width }] = useMeasure2();
|
25071
25092
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
25072
25093
|
const resetSidePane = useSidepaneReset();
|
@@ -25100,15 +25121,15 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25100
25121
|
// src/Prebuilt/components/ChatSettings.tsx
|
25101
25122
|
init_define_process_env();
|
25102
25123
|
import React117 from "react";
|
25103
|
-
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions39, useHMSStore as
|
25124
|
+
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
25104
25125
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
25105
25126
|
var ChatSettings = () => {
|
25106
25127
|
var _a8, _b7;
|
25107
25128
|
const hmsActions = useHMSActions39();
|
25108
|
-
const localPeer =
|
25129
|
+
const localPeer = useHMSStore59(selectLocalPeer5);
|
25109
25130
|
const { elements } = useRoomLayoutConferencingScreen();
|
25110
25131
|
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
25111
|
-
const { enabled: isChatEnabled = true } =
|
25132
|
+
const { enabled: isChatEnabled = true } = useHMSStore59(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
25112
25133
|
const showPause = canPauseChat && isChatEnabled;
|
25113
25134
|
if (!showPause) {
|
25114
25135
|
return null;
|
@@ -25173,7 +25194,7 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25173
25194
|
const resetSidePane = useSidepaneReset();
|
25174
25195
|
const [activeTab, setActiveTab] = useState50(active);
|
25175
25196
|
const [activeRole, setActiveRole] = useState50("");
|
25176
|
-
const peerCount =
|
25197
|
+
const peerCount = useHMSStore60(selectPeerCount5);
|
25177
25198
|
const { elements } = useRoomLayoutConferencingScreen();
|
25178
25199
|
const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
|
25179
25200
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
@@ -25304,14 +25325,14 @@ import {
|
|
25304
25325
|
selectPeerNameByID as selectPeerNameByID4,
|
25305
25326
|
selectVideoTrackByID as selectVideoTrackByID3,
|
25306
25327
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
25307
|
-
useHMSStore as
|
25328
|
+
useHMSStore as useHMSStore64
|
25308
25329
|
} from "@100mslive/react-sdk";
|
25309
25330
|
import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
|
25310
25331
|
|
25311
25332
|
// src/Prebuilt/components/Connection/TileConnection.tsx
|
25312
25333
|
init_define_process_env();
|
25313
25334
|
import React119 from "react";
|
25314
|
-
import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as
|
25335
|
+
import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
|
25315
25336
|
import { PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
|
25316
25337
|
var TileConnection = ({
|
25317
25338
|
name,
|
@@ -25320,9 +25341,9 @@ var TileConnection = ({
|
|
25320
25341
|
width,
|
25321
25342
|
pinned
|
25322
25343
|
}) => {
|
25323
|
-
const spotlighted =
|
25324
|
-
const isPeerScreenSharing = !!
|
25325
|
-
return /* @__PURE__ */ React119.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React119.createElement(React119.Fragment, null, /* @__PURE__ */ React119.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React119.createElement(
|
25344
|
+
const spotlighted = useHMSStore61(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
|
25345
|
+
const isPeerScreenSharing = !!useHMSStore61(selectScreenShareByPeerID(peerId));
|
25346
|
+
return /* @__PURE__ */ React119.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React119.createElement(React119.Fragment, null, name ? /* @__PURE__ */ React119.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React119.createElement(
|
25326
25347
|
Text,
|
25327
25348
|
{
|
25328
25349
|
css: __spreadValues({
|
@@ -25332,7 +25353,7 @@ var TileConnection = ({
|
|
25332
25353
|
variant: "xs"
|
25333
25354
|
},
|
25334
25355
|
name
|
25335
|
-
)), /* @__PURE__ */ React119.createElement(ConnectionIndicator, { isTile: true, peerId, hideBg: true })) : null);
|
25356
|
+
)) : null, /* @__PURE__ */ React119.createElement(ConnectionIndicator, { isTile: true, peerId, hideBg: true })) : null);
|
25336
25357
|
};
|
25337
25358
|
var IconWrapper = styled("div", { c: "$on_surface_high", ml: "$3", mt: "$1", display: "flex" });
|
25338
25359
|
var Wrapper2 = styled("div", {
|
@@ -25345,6 +25366,7 @@ var Wrapper2 = styled("div", {
|
|
25345
25366
|
backgroundColor: "$background_dim",
|
25346
25367
|
borderRadius: "$1",
|
25347
25368
|
maxWidth: "85%",
|
25369
|
+
zIndex: 1,
|
25348
25370
|
"& p,span": {
|
25349
25371
|
p: "$2 $3"
|
25350
25372
|
}
|
@@ -25358,10 +25380,10 @@ import { useMedia as useMedia20 } from "react-use";
|
|
25358
25380
|
import {
|
25359
25381
|
selectLocalPeerID as selectLocalPeerID11,
|
25360
25382
|
selectPeerByID as selectPeerByID2,
|
25361
|
-
selectPermissions as
|
25383
|
+
selectPermissions as selectPermissions17,
|
25362
25384
|
selectTrackByID as selectTrackByID3,
|
25363
25385
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
25364
|
-
useHMSStore as
|
25386
|
+
useHMSStore as useHMSStore63,
|
25365
25387
|
useRemoteAVToggle as useRemoteAVToggle2
|
25366
25388
|
} from "@100mslive/react-sdk";
|
25367
25389
|
import { CrossIcon as CrossIcon19, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
@@ -25371,12 +25393,12 @@ init_define_process_env();
|
|
25371
25393
|
import React120, { Fragment as Fragment12 } from "react";
|
25372
25394
|
import { useMedia as useMedia19 } from "react-use";
|
25373
25395
|
import {
|
25374
|
-
selectPermissions as
|
25396
|
+
selectPermissions as selectPermissions16,
|
25375
25397
|
selectSessionStore as selectSessionStore10,
|
25376
25398
|
selectTrackByID as selectTrackByID2,
|
25377
25399
|
useCustomEvent as useCustomEvent2,
|
25378
25400
|
useHMSActions as useHMSActions40,
|
25379
|
-
useHMSStore as
|
25401
|
+
useHMSStore as useHMSStore62,
|
25380
25402
|
useRemoteAVToggle
|
25381
25403
|
} from "@100mslive/react-sdk";
|
25382
25404
|
import {
|
@@ -25413,7 +25435,7 @@ var SpotlightActions = ({
|
|
25413
25435
|
}
|
25414
25436
|
}) => {
|
25415
25437
|
const hmsActions = useHMSActions40();
|
25416
|
-
const spotlightPeerId =
|
25438
|
+
const spotlightPeerId = useHMSStore62(selectSessionStore10("spotlight" /* SPOTLIGHT */));
|
25417
25439
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
25418
25440
|
const dragClassName = getDragClassName();
|
25419
25441
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -25461,7 +25483,7 @@ var MinimiseInset = () => {
|
|
25461
25483
|
};
|
25462
25484
|
var SimulcastLayers = ({ trackId }) => {
|
25463
25485
|
var _a8;
|
25464
|
-
const track =
|
25486
|
+
const track = useHMSStore62(selectTrackByID2(trackId));
|
25465
25487
|
const actions = useHMSActions40();
|
25466
25488
|
const bg = useDropdownSelection();
|
25467
25489
|
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
@@ -25547,7 +25569,7 @@ var TileMenuContent = ({
|
|
25547
25569
|
var _a8;
|
25548
25570
|
const actions = useHMSActions40();
|
25549
25571
|
const dragClassName = getDragClassName();
|
25550
|
-
const removeOthers = (_a8 =
|
25572
|
+
const removeOthers = (_a8 = useHMSStore62(selectPermissions16)) == null ? void 0 : _a8.removeOthers;
|
25551
25573
|
const { userName } = useHMSPrebuiltContext();
|
25552
25574
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
25553
25575
|
audioTrackID,
|
@@ -25646,17 +25668,17 @@ var TileMenu = ({
|
|
25646
25668
|
var _a8, _b7;
|
25647
25669
|
const [open, setOpen] = useState51(false);
|
25648
25670
|
const { theme: theme2 } = useTheme();
|
25649
|
-
const localPeerID =
|
25671
|
+
const localPeerID = useHMSStore63(selectLocalPeerID11);
|
25650
25672
|
const isLocal = localPeerID === peerID;
|
25651
|
-
const { removeOthers } =
|
25673
|
+
const { removeOthers } = useHMSStore63(selectPermissions17) || {};
|
25652
25674
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
25653
25675
|
const showSpotlight = enableSpotlightingPeer;
|
25654
|
-
const isPrimaryVideoTrack = ((_a8 =
|
25676
|
+
const isPrimaryVideoTrack = ((_a8 = useHMSStore63(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
25655
25677
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
25656
|
-
const track =
|
25678
|
+
const track = useHMSStore63(selectTrackByID3(videoTrackID));
|
25657
25679
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
25658
25680
|
const isMobile = useMedia20(config.media.md);
|
25659
|
-
const peer =
|
25681
|
+
const peer = useHMSStore63(selectPeerByID2(peerID));
|
25660
25682
|
const [showNameChangeModal, setShowNameChangeModal] = useState51(false);
|
25661
25683
|
useDropdownList({ open, name: "TileMenu" });
|
25662
25684
|
const dragClassName = getDragClassName();
|
@@ -25733,9 +25755,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
|
25733
25755
|
|
25734
25756
|
// src/Prebuilt/components/VideoTile.tsx
|
25735
25757
|
var PeerMetadata = ({ peerId, size }) => {
|
25736
|
-
const metaData =
|
25758
|
+
const metaData = useHMSStore64(selectPeerMetadata4(peerId));
|
25737
25759
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
25738
|
-
const isHandRaised =
|
25760
|
+
const isHandRaised = useHMSStore64(selectHasPeerHandRaised3(peerId));
|
25739
25761
|
return /* @__PURE__ */ React122.createElement(React122.Fragment, null, isHandRaised ? /* @__PURE__ */ React122.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React122.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React122.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React122.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
|
25740
25762
|
};
|
25741
25763
|
var Tile = ({
|
@@ -25755,14 +25777,14 @@ var Tile = ({
|
|
25755
25777
|
hideMetadataOnTile = false
|
25756
25778
|
}) => {
|
25757
25779
|
const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
|
25758
|
-
const track =
|
25759
|
-
const peerName =
|
25760
|
-
const audioTrack =
|
25761
|
-
const localPeerID =
|
25780
|
+
const track = useHMSStore64(trackSelector);
|
25781
|
+
const peerName = useHMSStore64(selectPeerNameByID4(peerId));
|
25782
|
+
const audioTrack = useHMSStore64(selectAudioTrackByPeerID2(peerId));
|
25783
|
+
const localPeerID = useHMSStore64(selectLocalPeerID12);
|
25762
25784
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
25763
25785
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
25764
25786
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
25765
|
-
const isAudioMuted = !
|
25787
|
+
const isAudioMuted = !useHMSStore64(selectIsPeerAudioEnabled2(peerId));
|
25766
25788
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
25767
25789
|
const [isMouseHovered, setIsMouseHovered] = useState52(false);
|
25768
25790
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
@@ -25861,7 +25883,7 @@ import {
|
|
25861
25883
|
selectRoomState as selectRoomState4,
|
25862
25884
|
selectVideoTrackByID as selectVideoTrackByID4,
|
25863
25885
|
useHMSActions as useHMSActions41,
|
25864
|
-
useHMSStore as
|
25886
|
+
useHMSStore as useHMSStore65
|
25865
25887
|
} from "@100mslive/react-sdk";
|
25866
25888
|
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
|
25867
25889
|
|
@@ -26048,19 +26070,19 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26048
26070
|
var _a8;
|
26049
26071
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26050
26072
|
const hmsActions = useHMSActions41();
|
26051
|
-
const localPeer =
|
26052
|
-
const role =
|
26053
|
-
const isVideoOn =
|
26073
|
+
const localPeer = useHMSStore65(selectLocalPeer6);
|
26074
|
+
const role = useHMSStore65($t);
|
26075
|
+
const isVideoOn = useHMSStore65(selectIsLocalVideoEnabled5);
|
26054
26076
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26055
26077
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
26056
|
-
const track =
|
26078
|
+
const track = useHMSStore65(trackSelector);
|
26057
26079
|
const [blurAmount, setBlurAmount] = useState53(VBHandler.getBlurAmount() || 0.5);
|
26058
|
-
const roomState =
|
26059
|
-
const isLargeRoom =
|
26060
|
-
const isEffectsEnabled =
|
26061
|
-
const effectsKey =
|
26062
|
-
const isPluginAdded =
|
26063
|
-
const background =
|
26080
|
+
const roomState = useHMSStore65(selectRoomState4);
|
26081
|
+
const isLargeRoom = useHMSStore65(selectIsLargeRoom3);
|
26082
|
+
const isEffectsEnabled = useHMSStore65(Xn);
|
26083
|
+
const effectsKey = useHMSStore65(Zn);
|
26084
|
+
const isPluginAdded = useHMSStore65(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
26085
|
+
const background = useHMSStore65(Xh(APP_DATA.background));
|
26064
26086
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26065
26087
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26066
26088
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -26197,9 +26219,9 @@ var SidePane = ({
|
|
26197
26219
|
}) => {
|
26198
26220
|
var _a8, _b7, _c, _d, _e, _f;
|
26199
26221
|
const isMobile = useMedia21(config.media.md);
|
26200
|
-
const sidepane =
|
26201
|
-
const activeScreensharePeerId =
|
26202
|
-
const trackId = (_a8 =
|
26222
|
+
const sidepane = useHMSStore66(selectAppData6(APP_DATA.sidePane));
|
26223
|
+
const activeScreensharePeerId = useHMSStore66(selectAppData6(APP_DATA.activeScreensharePeerId));
|
26224
|
+
const trackId = (_a8 = useHMSStore66(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
26203
26225
|
const { elements } = useRoomLayoutConferencingScreen();
|
26204
26226
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
26205
26227
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
@@ -26334,10 +26356,10 @@ var FullPageProgress_default = FullPageProgress;
|
|
26334
26356
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
26335
26357
|
init_define_process_env();
|
26336
26358
|
import React129, { useEffect as useEffect33, useState as useState54 } from "react";
|
26337
|
-
import { selectDominantSpeaker, useHMSStore as
|
26359
|
+
import { selectDominantSpeaker, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
|
26338
26360
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
26339
26361
|
var SpeakerTag = () => {
|
26340
|
-
const dominantSpeaker =
|
26362
|
+
const dominantSpeaker = useHMSStore67(selectDominantSpeaker);
|
26341
26363
|
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React129.createElement(
|
26342
26364
|
Flex,
|
26343
26365
|
{
|
@@ -26460,8 +26482,8 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
26460
26482
|
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
26461
26483
|
};
|
26462
26484
|
var useLocalTileAspectRatio = () => {
|
26463
|
-
const localPeer =
|
26464
|
-
const videoTrack =
|
26485
|
+
const localPeer = useHMSStore68(selectLocalPeer7);
|
26486
|
+
const videoTrack = useHMSStore68(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
|
26465
26487
|
const isMobile = useMedia23(config.media.md);
|
26466
26488
|
let aspectRatio = 0;
|
26467
26489
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
@@ -26504,7 +26526,7 @@ var PreviewJoin = ({
|
|
26504
26526
|
},
|
26505
26527
|
asRole
|
26506
26528
|
});
|
26507
|
-
const roomState =
|
26529
|
+
const roomState = useHMSStore68(selectRoomState5);
|
26508
26530
|
const savePreferenceAndJoin = useCallback31(() => {
|
26509
26531
|
setPreviewPreference({
|
26510
26532
|
name
|
@@ -26570,12 +26592,12 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
26570
26592
|
px: "$10"
|
26571
26593
|
}));
|
26572
26594
|
var PreviewTile = ({ name, error }) => {
|
26573
|
-
const localPeer =
|
26595
|
+
const localPeer = useHMSStore68(selectLocalPeer7);
|
26574
26596
|
const { isLocalAudioEnabled, toggleAudio } = useAVToggle5();
|
26575
|
-
const isVideoOn =
|
26597
|
+
const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled6);
|
26576
26598
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26577
26599
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
26578
|
-
const track =
|
26600
|
+
const track = useHMSStore68(trackSelector);
|
26579
26601
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
26580
26602
|
const aspectRatio = useLocalTileAspectRatio();
|
26581
26603
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
|
@@ -26603,7 +26625,7 @@ var PreviewTile = ({ name, error }) => {
|
|
26603
26625
|
}
|
26604
26626
|
}
|
26605
26627
|
},
|
26606
|
-
localPeer ? /* @__PURE__ */ React131.createElement(React131.Fragment, null, /* @__PURE__ */ React131.createElement(TileConnection_default, { name, peerId: localPeer.id, hideLabel:
|
26628
|
+
localPeer ? /* @__PURE__ */ React131.createElement(React131.Fragment, null, /* @__PURE__ */ React131.createElement(TileConnection_default, { name: "", peerId: localPeer.id, hideLabel: false }), /* @__PURE__ */ React131.createElement(
|
26607
26629
|
Video,
|
26608
26630
|
{
|
26609
26631
|
mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo,
|
@@ -26665,10 +26687,10 @@ var RequestActions = ({
|
|
26665
26687
|
var RoleChangeRequestModal = () => {
|
26666
26688
|
const hmsActions = useHMSActions42();
|
26667
26689
|
const { updateMetaData } = useMyMetadata();
|
26668
|
-
const isPreview =
|
26669
|
-
const currentRole =
|
26670
|
-
const roleChangeRequest =
|
26671
|
-
const name =
|
26690
|
+
const isPreview = useHMSStore69(selectIsInPreview);
|
26691
|
+
const currentRole = useHMSStore69(selectLocalPeerRoleName4);
|
26692
|
+
const roleChangeRequest = useHMSStore69(selectRoleChangeRequest);
|
26693
|
+
const name = useHMSStore69(selectLocalPeerName4);
|
26672
26694
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
26673
26695
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
26674
26696
|
const { virtual_background } = elements || {};
|
@@ -26743,7 +26765,7 @@ import {
|
|
26743
26765
|
selectPeerScreenSharing as selectPeerScreenSharing3,
|
26744
26766
|
selectWhiteboard as selectWhiteboard2,
|
26745
26767
|
useHMSActions as useHMSActions44,
|
26746
|
-
useHMSStore as
|
26768
|
+
useHMSStore as useHMSStore79
|
26747
26769
|
} from "@100mslive/react-sdk";
|
26748
26770
|
|
26749
26771
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
@@ -26754,7 +26776,7 @@ import {
|
|
26754
26776
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
26755
26777
|
selectPeers as selectPeers3,
|
26756
26778
|
selectPeerScreenSharing,
|
26757
|
-
useHMSStore as
|
26779
|
+
useHMSStore as useHMSStore76,
|
26758
26780
|
useHMSVanillaStore as useHMSVanillaStore13
|
26759
26781
|
} from "@100mslive/react-sdk";
|
26760
26782
|
|
@@ -26762,7 +26784,7 @@ import {
|
|
26762
26784
|
init_define_process_env();
|
26763
26785
|
import React138, { useEffect as useEffect39, useMemo as useMemo13, useState as useState57 } from "react";
|
26764
26786
|
import { useMedia as useMedia27 } from "react-use";
|
26765
|
-
import { selectLocalPeer as selectLocalPeer9, useHMSStore as
|
26787
|
+
import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
|
26766
26788
|
|
26767
26789
|
// src/Prebuilt/components/InsetTile.tsx
|
26768
26790
|
init_define_process_env();
|
@@ -26774,7 +26796,7 @@ import {
|
|
26774
26796
|
selectLocalPeer as selectLocalPeer8,
|
26775
26797
|
selectPeerByID as selectPeerByID3,
|
26776
26798
|
selectVideoTrackByID as selectVideoTrackByID6,
|
26777
|
-
useHMSStore as
|
26799
|
+
useHMSStore as useHMSStore70
|
26778
26800
|
} from "@100mslive/react-sdk";
|
26779
26801
|
import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
|
26780
26802
|
|
@@ -26815,10 +26837,10 @@ var InsetTile = ({ peerId }) => {
|
|
26815
26837
|
const isMobile = useMedia25(config.media.md);
|
26816
26838
|
const isLandscape = useMedia25(config.media.ls);
|
26817
26839
|
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
|
26818
|
-
const peer =
|
26840
|
+
const peer = useHMSStore70(selector);
|
26819
26841
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
26820
|
-
const videoTrack =
|
26821
|
-
const isAllowedToPublish =
|
26842
|
+
const videoTrack = useHMSStore70(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
|
26843
|
+
const isAllowedToPublish = useHMSStore70(selectIsAllowedToPublish2);
|
26822
26844
|
const videoTileProps = useVideoTileContext();
|
26823
26845
|
let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
|
26824
26846
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
|
@@ -27026,7 +27048,7 @@ var useTileLayout = ({
|
|
27026
27048
|
const matrix = new Array(maxRows).fill(null).map((_, i) => {
|
27027
27049
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
27028
27050
|
const rowElements = [];
|
27029
|
-
for (let
|
27051
|
+
for (let j = 0; j < numCols; j++) {
|
27030
27052
|
if (index < page.length) {
|
27031
27053
|
rowElements.push(page[index++]);
|
27032
27054
|
}
|
@@ -27078,7 +27100,7 @@ var useTileLayout = ({
|
|
27078
27100
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27079
27101
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
27080
27102
|
var _a8;
|
27081
|
-
const localPeer =
|
27103
|
+
const localPeer = useHMSStore71(selectLocalPeer9);
|
27082
27104
|
const isMobile = useMedia27(config.media.md);
|
27083
27105
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27084
27106
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
@@ -27124,13 +27146,14 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
27124
27146
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
27125
27147
|
init_define_process_env();
|
27126
27148
|
import React141, { useEffect as useEffect41, useState as useState59 } from "react";
|
27127
|
-
import {
|
27149
|
+
import { useMedia as useMedia29 } from "react-use";
|
27150
|
+
import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore73 } from "@100mslive/react-sdk";
|
27128
27151
|
|
27129
27152
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
27130
27153
|
init_define_process_env();
|
27131
27154
|
import React140, { useEffect as useEffect40, useRef as useRef23, useState as useState58 } from "react";
|
27132
27155
|
import { useMedia as useMedia28 } from "react-use";
|
27133
|
-
import { selectAppData as selectAppData7, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as
|
27156
|
+
import { selectAppData as selectAppData7, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore72 } from "@100mslive/react-sdk";
|
27134
27157
|
|
27135
27158
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
27136
27159
|
init_define_process_env();
|
@@ -27164,7 +27187,8 @@ var SecondarySection = ({
|
|
27164
27187
|
}
|
27165
27188
|
const gridStyles = hasSidebar ? {
|
27166
27189
|
gridTemplateColumns: "1fr",
|
27167
|
-
gridTemplateRows: `repeat(${tiles.length}, minmax(0,
|
27190
|
+
gridTemplateRows: `repeat(${tiles.length}, minmax(0, 1fr))`,
|
27191
|
+
maxHeight: "100%"
|
27168
27192
|
} : {
|
27169
27193
|
gridTemplateRows: React139.Children.count(children) > 0 ? "136px auto" : "154px",
|
27170
27194
|
gridTemplateColumns: `repeat(${tiles.length}, minmax(0, 1fr))`
|
@@ -27215,10 +27239,10 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
27215
27239
|
const isMobile = useMedia28(config.media.md);
|
27216
27240
|
const maxTileCount = isMobile ? 2 : 4;
|
27217
27241
|
const [page, setPage] = useState58(0);
|
27218
|
-
const pinnedTrackId =
|
27219
|
-
const spotlightPeerId =
|
27220
|
-
const activeScreensharePeerId =
|
27221
|
-
const pinnedPeer = (_a8 =
|
27242
|
+
const pinnedTrackId = useHMSStore72(selectAppData7(APP_DATA.pinnedTrackId));
|
27243
|
+
const spotlightPeerId = useHMSStore72(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
27244
|
+
const activeScreensharePeerId = useHMSStore72(selectAppData7(APP_DATA.activeScreensharePeerId));
|
27245
|
+
const pinnedPeer = (_a8 = useHMSStore72(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
|
27222
27246
|
const pageChangedAfterPinning = useRef23(false);
|
27223
27247
|
const pagesWithTiles = usePagesWithTiles({
|
27224
27248
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
@@ -27312,9 +27336,11 @@ function RoleProminence({
|
|
27312
27336
|
}) {
|
27313
27337
|
var _a8;
|
27314
27338
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
27315
|
-
const localPeer =
|
27339
|
+
const localPeer = useHMSStore73(selectLocalPeer10);
|
27316
27340
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
27317
|
-
const
|
27341
|
+
const isMobile = useMedia29(config.media.md);
|
27342
|
+
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27343
|
+
maxTileCount = isMobile ? 4 : maxTileCount;
|
27318
27344
|
const pageList = usePagesWithTiles({
|
27319
27345
|
peers: prominentPeers,
|
27320
27346
|
maxTileCount
|
@@ -27354,20 +27380,20 @@ function RoleProminence({
|
|
27354
27380
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
27355
27381
|
init_define_process_env();
|
27356
27382
|
import React145, { useEffect as useEffect42, useMemo as useMemo15, useState as useState62 } from "react";
|
27357
|
-
import { useMedia as
|
27358
|
-
import { selectPeersScreenSharing, useHMSStore as
|
27383
|
+
import { useMedia as useMedia31 } from "react-use";
|
27384
|
+
import { selectPeersScreenSharing, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
27359
27385
|
|
27360
27386
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
27361
27387
|
init_define_process_env();
|
27362
27388
|
import React144, { useRef as useRef24, useState as useState61 } from "react";
|
27363
|
-
import { useFullscreen as useFullscreen2, useMedia as
|
27389
|
+
import { useFullscreen as useFullscreen2, useMedia as useMedia30 } from "react-use";
|
27364
27390
|
import screenfull2 from "screenfull";
|
27365
27391
|
import {
|
27366
27392
|
selectLocalPeerID as selectLocalPeerID13,
|
27367
27393
|
selectPeerByID as selectPeerByID4,
|
27368
27394
|
selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
|
27369
27395
|
selectScreenShareByPeerID as selectScreenShareByPeerID2,
|
27370
|
-
useHMSStore as
|
27396
|
+
useHMSStore as useHMSStore74
|
27371
27397
|
} from "@100mslive/react-sdk";
|
27372
27398
|
import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
|
27373
27399
|
|
@@ -27515,13 +27541,13 @@ var labelStyles = {
|
|
27515
27541
|
flexShrink: 0
|
27516
27542
|
};
|
27517
27543
|
var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
27518
|
-
const isLocal =
|
27519
|
-
const track =
|
27544
|
+
const isLocal = useHMSStore74(selectLocalPeerID13) === peerId;
|
27545
|
+
const track = useHMSStore74(selectScreenShareByPeerID2(peerId));
|
27520
27546
|
const { theme: theme2 } = useTheme();
|
27521
|
-
const peer =
|
27547
|
+
const peer = useHMSStore74(selectPeerByID4(peerId));
|
27522
27548
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
27523
27549
|
const [isMouseHovered, setIsMouseHovered] = useState61(false);
|
27524
|
-
const isMobile =
|
27550
|
+
const isMobile = useMedia30(config.media.md);
|
27525
27551
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
27526
27552
|
const fullscreenRef = useRef24(null);
|
27527
27553
|
const [fullscreen, setFullscreen] = useState61(false);
|
@@ -27529,7 +27555,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
27529
27555
|
onClose: () => setFullscreen(false)
|
27530
27556
|
});
|
27531
27557
|
const isFullScreenSupported = screenfull2.isEnabled;
|
27532
|
-
const audioTrack =
|
27558
|
+
const audioTrack = useHMSStore74(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
|
27533
27559
|
if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
|
27534
27560
|
return /* @__PURE__ */ React144.createElement(ScreenshareDisplay, null);
|
27535
27561
|
}
|
@@ -27608,12 +27634,12 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
27608
27634
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
27609
27635
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
27610
27636
|
var _a8;
|
27611
|
-
const peersSharing =
|
27637
|
+
const peersSharing = useHMSStore75(selectPeersScreenSharing);
|
27612
27638
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
27613
27639
|
const [page, setPage] = useState62(0);
|
27614
27640
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
27615
27641
|
const activeSharePeer = peersSharing[page];
|
27616
|
-
const isMobile =
|
27642
|
+
const isMobile = useMedia31(config.media.md);
|
27617
27643
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
27618
27644
|
const secondaryPeers = useMemo15(() => {
|
27619
27645
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -27762,11 +27788,11 @@ var GridLayout = ({
|
|
27762
27788
|
edge_to_edge = false,
|
27763
27789
|
hide_metadata_on_tile = false
|
27764
27790
|
}) => {
|
27765
|
-
const peerSharing =
|
27791
|
+
const peerSharing = useHMSStore76(selectPeerScreenSharing);
|
27766
27792
|
const pinnedTrack = usePinnedTrack();
|
27767
|
-
const peers =
|
27768
|
-
const localPeerRole =
|
27769
|
-
const localPeerID =
|
27793
|
+
const peers = useHMSStore76(selectPeers3);
|
27794
|
+
const localPeerRole = useHMSStore76(selectLocalPeerRoleName5);
|
27795
|
+
const localPeerID = useHMSStore76(selectLocalPeerID14);
|
27770
27796
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
27771
27797
|
const isRoleProminence = prominentRoles.length && peers.some(
|
27772
27798
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
@@ -27846,13 +27872,13 @@ var GridLayout = ({
|
|
27846
27872
|
// src/Prebuilt/layouts/EmbedView.jsx
|
27847
27873
|
init_define_process_env();
|
27848
27874
|
import React147, { useEffect as useEffect44, useMemo as useMemo17 } from "react";
|
27849
|
-
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as
|
27875
|
+
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
27850
27876
|
var EmbedView = () => {
|
27851
27877
|
return /* @__PURE__ */ React147.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React147.createElement(EmbedComponent, null));
|
27852
27878
|
};
|
27853
27879
|
var EmbedScreenShareView = ({ children }) => {
|
27854
|
-
const peers =
|
27855
|
-
const peerPresenting =
|
27880
|
+
const peers = useHMSStore77(selectPeers4);
|
27881
|
+
const peerPresenting = useHMSStore77(selectPeerScreenSharing2);
|
27856
27882
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
27857
27883
|
const smallTilePeers = useMemo17(() => {
|
27858
27884
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
@@ -27867,7 +27893,7 @@ var EmbedScreenShareView = ({ children }) => {
|
|
27867
27893
|
return /* @__PURE__ */ React147.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React147.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React147.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
27868
27894
|
};
|
27869
27895
|
var EmbedComponent = () => {
|
27870
|
-
const embedConfig =
|
27896
|
+
const embedConfig = useHMSStore77(selectAppData8(APP_DATA.embedConfig));
|
27871
27897
|
const resetConfig = useResetEmbedConfig();
|
27872
27898
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
27873
27899
|
useEffect44(() => {
|
@@ -28024,10 +28050,10 @@ var WaitingView = React149.memo(() => {
|
|
28024
28050
|
// src/Prebuilt/layouts/WhiteboardView.tsx
|
28025
28051
|
init_define_process_env();
|
28026
28052
|
import React150, { useEffect as useEffect46, useMemo as useMemo18 } from "react";
|
28027
|
-
import { useMedia as
|
28028
|
-
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as
|
28053
|
+
import { useMedia as useMedia32 } from "react-use";
|
28054
|
+
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28029
28055
|
var EmbedComponent2 = () => {
|
28030
|
-
const isMobile =
|
28056
|
+
const isMobile = useMedia32(config.media.md);
|
28031
28057
|
const { iframeRef } = useWhiteboard2(isMobile);
|
28032
28058
|
return /* @__PURE__ */ React150.createElement(
|
28033
28059
|
Box,
|
@@ -28060,8 +28086,8 @@ var EmbedComponent2 = () => {
|
|
28060
28086
|
);
|
28061
28087
|
};
|
28062
28088
|
var WhiteboardView = () => {
|
28063
|
-
const peers =
|
28064
|
-
const whiteboard =
|
28089
|
+
const peers = useHMSStore78(selectPeers5);
|
28090
|
+
const whiteboard = useHMSStore78(selectWhiteboard);
|
28065
28091
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28066
28092
|
const smallTilePeers = useMemo18(() => {
|
28067
28093
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
|
@@ -28098,17 +28124,17 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28098
28124
|
};
|
28099
28125
|
|
28100
28126
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28101
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28127
|
+
var HLSView = React151.lazy(() => import("./HLSView-37B2YVTC.js"));
|
28102
28128
|
var VideoStreamingSection = ({
|
28103
28129
|
screenType,
|
28104
28130
|
elements,
|
28105
28131
|
hideControls = false
|
28106
28132
|
}) => {
|
28107
28133
|
var _a8, _b7, _c, _d;
|
28108
|
-
const localPeerRole =
|
28109
|
-
const isConnected =
|
28110
|
-
const peerSharing =
|
28111
|
-
const isWhiteboardOpen = (_a8 =
|
28134
|
+
const localPeerRole = useHMSStore79(selectLocalPeerRoleName6);
|
28135
|
+
const isConnected = useHMSStore79(selectIsConnectedToRoom9);
|
28136
|
+
const peerSharing = useHMSStore79(selectPeerScreenSharing3);
|
28137
|
+
const isWhiteboardOpen = (_a8 = useHMSStore79(selectWhiteboard2)) == null ? void 0 : _a8.open;
|
28112
28138
|
const hmsActions = useHMSActions44();
|
28113
28139
|
const waitingViewerRole = useWaitingViewerRole();
|
28114
28140
|
const urlToIframe = useUrlToEmbed();
|
@@ -28172,17 +28198,17 @@ init_define_process_env();
|
|
28172
28198
|
// src/Prebuilt/components/Header/Header.tsx
|
28173
28199
|
init_define_process_env();
|
28174
28200
|
import React154 from "react";
|
28175
|
-
import { useMedia as
|
28176
|
-
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as
|
28201
|
+
import { useMedia as useMedia34 } from "react-use";
|
28202
|
+
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
|
28177
28203
|
|
28178
28204
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
28179
28205
|
init_define_process_env();
|
28180
28206
|
import React152 from "react";
|
28181
|
-
import { useMedia as
|
28207
|
+
import { useMedia as useMedia33 } from "react-use";
|
28182
28208
|
import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
|
28183
28209
|
var RoomDetailsHeader = () => {
|
28184
28210
|
const { title, description } = useRoomLayoutHeader();
|
28185
|
-
const isMobile =
|
28211
|
+
const isMobile = useMedia33(config.media.md);
|
28186
28212
|
const clipLength = 30;
|
28187
28213
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
28188
28214
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -28209,7 +28235,7 @@ import {
|
|
28209
28235
|
selectVideoTrackByID as selectVideoTrackByID7,
|
28210
28236
|
useDevices as useDevices3,
|
28211
28237
|
useHMSActions as useHMSActions45,
|
28212
|
-
useHMSStore as
|
28238
|
+
useHMSStore as useHMSStore80
|
28213
28239
|
} from "@100mslive/react-sdk";
|
28214
28240
|
import {
|
28215
28241
|
BluetoothIcon,
|
@@ -28223,9 +28249,9 @@ var CamaraFlipActions = () => {
|
|
28223
28249
|
const actions = useHMSActions45();
|
28224
28250
|
const { allDevices } = useDevices3();
|
28225
28251
|
const { videoInput } = allDevices;
|
28226
|
-
const isVideoOn =
|
28227
|
-
const videoTrackId =
|
28228
|
-
const localVideoTrack =
|
28252
|
+
const isVideoOn = useHMSStore80(selectIsLocalVideoEnabled7);
|
28253
|
+
const videoTrackId = useHMSStore80(selectLocalVideoTrackID3);
|
28254
|
+
const localVideoTrack = useHMSStore80(selectVideoTrackByID7(videoTrackId));
|
28229
28255
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
28230
28256
|
return null;
|
28231
28257
|
}
|
@@ -28361,8 +28387,8 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React153.createElement(Re
|
|
28361
28387
|
|
28362
28388
|
// src/Prebuilt/components/Header/Header.tsx
|
28363
28389
|
var Header2 = () => {
|
28364
|
-
const roomState =
|
28365
|
-
const isMobile =
|
28390
|
+
const roomState = useHMSStore81(selectRoomState6);
|
28391
|
+
const isMobile = useMedia34(config.media.md);
|
28366
28392
|
if (roomState !== HMSRoomState6.Connected) {
|
28367
28393
|
return /* @__PURE__ */ React154.createElement(React154.Fragment, null);
|
28368
28394
|
}
|
@@ -28407,11 +28433,11 @@ var ConferenceScreen = () => {
|
|
28407
28433
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
28408
28434
|
const screenProps = useRoomLayoutConferencingScreen();
|
28409
28435
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
28410
|
-
const roomState =
|
28411
|
-
const isConnectedToRoom =
|
28436
|
+
const roomState = useHMSStore82(selectRoomState7);
|
28437
|
+
const isConnectedToRoom = useHMSStore82(selectIsConnectedToRoom10);
|
28412
28438
|
const hmsActions = useHMSActions46();
|
28413
28439
|
const [hideControls, setHideControls] = useState64(false);
|
28414
|
-
const dropdownList =
|
28440
|
+
const dropdownList = useHMSStore82(selectAppData9(APP_DATA.dropdownList));
|
28415
28441
|
const authTokenInAppData = useAuthToken();
|
28416
28442
|
const headerRef = useRef25(null);
|
28417
28443
|
const footerRef = useRef25(null);
|
@@ -28615,7 +28641,7 @@ import React157, { useEffect as useEffect52 } from "react";
|
|
28615
28641
|
// src/Prebuilt/services/FeatureFlags.jsx
|
28616
28642
|
init_define_process_env();
|
28617
28643
|
import { useEffect as useEffect51 } from "react";
|
28618
|
-
import { selectRoomID, useHMSStore as
|
28644
|
+
import { selectRoomID, useHMSStore as useHMSStore83 } from "@100mslive/react-sdk";
|
28619
28645
|
var FeatureFlags = class {
|
28620
28646
|
static init(roomId) {
|
28621
28647
|
if (!window.HMS) {
|
@@ -28640,7 +28666,7 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
|
|
28640
28666
|
__publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
|
28641
28667
|
__publicField(FeatureFlags, "enableWhiteboard", define_process_env_default.REACT_APP_ENABLE_WHITEBOARD && define_process_env_default.REACT_APP_PUSHER_APP_KEY && define_process_env_default.REACT_APP_PUSHER_AUTHENDPOINT);
|
28642
28668
|
function FeatureFlagsInit() {
|
28643
|
-
const roomId =
|
28669
|
+
const roomId = useHMSStore83(selectRoomID);
|
28644
28670
|
useEffect51(() => {
|
28645
28671
|
if (roomId) {
|
28646
28672
|
FeatureFlags.init(roomId);
|
@@ -28783,7 +28809,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
|
|
28783
28809
|
init_define_process_env();
|
28784
28810
|
import React158, { useContext as useContext4, useEffect as useEffect54 } from "react";
|
28785
28811
|
import { usePreviousDistinct } from "react-use";
|
28786
|
-
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as
|
28812
|
+
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore84 } from "@100mslive/react-sdk";
|
28787
28813
|
|
28788
28814
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
28789
28815
|
init_define_process_env();
|
@@ -28820,7 +28846,7 @@ var useHMSAppStateContext = () => {
|
|
28820
28846
|
var useAppStateManager = () => {
|
28821
28847
|
const roomLayout = useRoomLayout();
|
28822
28848
|
const [activeState, setActiveState] = React158.useState();
|
28823
|
-
const roomState =
|
28849
|
+
const roomState = useHMSStore84(selectRoomState8);
|
28824
28850
|
const prevRoomState = usePreviousDistinct(roomState);
|
28825
28851
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
28826
28852
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -28893,11 +28919,11 @@ var LeaveScreen = () => {
|
|
28893
28919
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
28894
28920
|
init_define_process_env();
|
28895
28921
|
import React160, { useEffect as useEffect55, useState as useState65 } from "react";
|
28896
|
-
import { useMedia as
|
28922
|
+
import { useMedia as useMedia35 } from "react-use";
|
28897
28923
|
import { RefreshIcon } from "@100mslive/react-icons";
|
28898
28924
|
var MwebLandscapePrompt = () => {
|
28899
28925
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState65(false);
|
28900
|
-
const isLandscape =
|
28926
|
+
const isLandscape = useMedia35(config.media.ls);
|
28901
28927
|
useEffect55(() => {
|
28902
28928
|
var _a8;
|
28903
28929
|
if (!isMobileUserAgent) {
|
@@ -28949,7 +28975,7 @@ import {
|
|
28949
28975
|
useAwayNotifications as useAwayNotifications2,
|
28950
28976
|
useCustomEvent as useCustomEvent4,
|
28951
28977
|
useHMSNotifications as useHMSNotifications10,
|
28952
|
-
useHMSStore as
|
28978
|
+
useHMSStore as useHMSStore88,
|
28953
28979
|
useHMSVanillaStore as useHMSVanillaStore17
|
28954
28980
|
} from "@100mslive/react-sdk";
|
28955
28981
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
@@ -28989,12 +29015,12 @@ function AutoplayBlockedModal() {
|
|
28989
29015
|
init_define_process_env();
|
28990
29016
|
import React162, { useEffect as useEffect56 } from "react";
|
28991
29017
|
import { v4 as uuid4 } from "uuid";
|
28992
|
-
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as
|
29018
|
+
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
|
28993
29019
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
28994
29020
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
28995
29021
|
var ChatNotifications = () => {
|
28996
|
-
const chatState =
|
28997
|
-
const localPeerId =
|
29022
|
+
const chatState = useHMSStore85(selectSessionStore12("chatState" /* CHAT_STATE */));
|
29023
|
+
const localPeerId = useHMSStore85(selectLocalPeerID15);
|
28998
29024
|
useEffect56(() => {
|
28999
29025
|
var _a8, _b7;
|
29000
29026
|
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
@@ -29023,7 +29049,7 @@ import {
|
|
29023
29049
|
selectHasPeerHandRaised as selectHasPeerHandRaised4,
|
29024
29050
|
selectRoomState as selectRoomState9,
|
29025
29051
|
useHMSNotifications as useHMSNotifications2,
|
29026
|
-
useHMSStore as
|
29052
|
+
useHMSStore as useHMSStore87,
|
29027
29053
|
useHMSVanillaStore as useHMSVanillaStore16
|
29028
29054
|
} from "@100mslive/react-sdk";
|
29029
29055
|
|
@@ -29033,7 +29059,7 @@ init_define_process_env();
|
|
29033
29059
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
29034
29060
|
init_define_process_env();
|
29035
29061
|
import React163, { useCallback as useCallback33 } from "react";
|
29036
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions48, useHMSStore as
|
29062
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions48, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
|
29037
29063
|
import {
|
29038
29064
|
ChatUnreadIcon as ChatUnreadIcon2,
|
29039
29065
|
ConnectivityIcon,
|
@@ -29055,7 +29081,7 @@ var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
29055
29081
|
const hmsActions = useHMSActions48();
|
29056
29082
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29057
29083
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29058
|
-
const peer =
|
29084
|
+
const peer = useHMSStore86(selectPeerByID5(id));
|
29059
29085
|
const layout = useRoomLayout();
|
29060
29086
|
const {
|
29061
29087
|
bring_to_stage_label,
|
@@ -29257,7 +29283,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
29257
29283
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
29258
29284
|
var HandRaisedNotifications = () => {
|
29259
29285
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
29260
|
-
const roomState =
|
29286
|
+
const roomState = useHMSStore87(selectRoomState9);
|
29261
29287
|
const vanillaStore = useHMSVanillaStore16();
|
29262
29288
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
29263
29289
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
@@ -29357,7 +29383,7 @@ var PeerNotifications = () => {
|
|
29357
29383
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
29358
29384
|
init_define_process_env();
|
29359
29385
|
import React165, { useEffect as useEffect60, useState as useState67 } from "react";
|
29360
|
-
import { useMedia as
|
29386
|
+
import { useMedia as useMedia36 } from "react-use";
|
29361
29387
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
29362
29388
|
|
29363
29389
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -29371,7 +29397,7 @@ function PermissionErrorModal() {
|
|
29371
29397
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
29372
29398
|
const [deviceType, setDeviceType] = useState67("");
|
29373
29399
|
const [isSystemError, setIsSystemError] = useState67(false);
|
29374
|
-
const isMobile =
|
29400
|
+
const isMobile = useMedia36(config.media.md);
|
29375
29401
|
useEffect60(() => {
|
29376
29402
|
var _a8, _b7, _c, _d, _e;
|
29377
29403
|
if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
|
@@ -29514,11 +29540,12 @@ var TrackBulkUnmuteModal = () => {
|
|
29514
29540
|
return null;
|
29515
29541
|
}
|
29516
29542
|
const { requestedBy: peer, tracks, enabled } = muteNotification;
|
29543
|
+
const types = new Set(tracks.map((track) => track.type));
|
29517
29544
|
return /* @__PURE__ */ React167.createElement(
|
29518
29545
|
RequestDialog,
|
29519
29546
|
{
|
29520
|
-
title: "
|
29521
|
-
body: `${peer == null ? void 0 : peer.name}
|
29547
|
+
title: "Unmute request",
|
29548
|
+
body: `${peer == null ? void 0 : peer.name} is requesting you to unmute your ${Array.from(types).join(",")}`,
|
29522
29549
|
onOpenChange: (value) => !value && setMuteNotification(null),
|
29523
29550
|
onAction: () => {
|
29524
29551
|
tracks.forEach((track) => {
|
@@ -29590,9 +29617,9 @@ var TrackUnmuteModal = () => {
|
|
29590
29617
|
return /* @__PURE__ */ React168.createElement(
|
29591
29618
|
RequestDialog,
|
29592
29619
|
{
|
29593
|
-
title:
|
29620
|
+
title: `Unmute your ${track.type}?`,
|
29594
29621
|
onOpenChange: (value) => !value && setMuteNotification(null),
|
29595
|
-
body: `${peer == null ? void 0 : peer.name}
|
29622
|
+
body: `${peer == null ? void 0 : peer.name}is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
|
29596
29623
|
onAction: () => {
|
29597
29624
|
hmsActions.setEnabledTrack(track.id, enabled);
|
29598
29625
|
setMuteNotification(null);
|
@@ -29606,17 +29633,17 @@ var TrackUnmuteModal = () => {
|
|
29606
29633
|
var pollToastKey = {};
|
29607
29634
|
function Notifications() {
|
29608
29635
|
var _a8, _b7;
|
29609
|
-
const localPeerID =
|
29636
|
+
const localPeerID = useHMSStore88(selectLocalPeerID16);
|
29610
29637
|
const notification = useHMSNotifications10();
|
29611
29638
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
29612
|
-
const roomState =
|
29639
|
+
const roomState = useHMSStore88(selectRoomState10);
|
29613
29640
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
29614
29641
|
const isNotificationDisabled = useIsNotificationDisabled();
|
29615
29642
|
const screenProps = useRoomLayoutConferencingScreen();
|
29616
29643
|
const vanillaStore = useHMSVanillaStore17();
|
29617
29644
|
const togglePollView = usePollViewToggle();
|
29618
29645
|
const { showNotification } = useAwayNotifications2();
|
29619
|
-
const amIScreenSharing =
|
29646
|
+
const amIScreenSharing = useHMSStore88(selectIsLocalScreenShared2);
|
29620
29647
|
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
29621
29648
|
const handleRoleChangeDenied = useCallback34((request) => {
|
29622
29649
|
ToastManager.addToast({
|
@@ -29626,7 +29653,7 @@ function Notifications() {
|
|
29626
29653
|
}, []);
|
29627
29654
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
29628
29655
|
useEffect65(() => {
|
29629
|
-
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2,
|
29656
|
+
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o, _p;
|
29630
29657
|
if (!notification || isNotificationDisabled) {
|
29631
29658
|
return;
|
29632
29659
|
}
|
@@ -29676,7 +29703,7 @@ function Notifications() {
|
|
29676
29703
|
break;
|
29677
29704
|
}
|
29678
29705
|
case HMSNotificationTypes10.CHANGE_TRACK_STATE_REQUEST:
|
29679
|
-
const track = (
|
29706
|
+
const track = (_o = notification.data) == null ? void 0 : _o.track;
|
29680
29707
|
if (!notification.data.enabled) {
|
29681
29708
|
ToastManager.addToast({
|
29682
29709
|
title: `Your ${track.source} ${track.type} was muted by
|
@@ -29773,7 +29800,7 @@ var PreviewScreen = () => {
|
|
29773
29800
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
29774
29801
|
init_define_process_env();
|
29775
29802
|
import React172, { useEffect as useEffect66, useState as useState71 } from "react";
|
29776
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as
|
29803
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
29777
29804
|
|
29778
29805
|
// src/Prebuilt/components/Toast/Toast.jsx
|
29779
29806
|
init_define_process_env();
|
@@ -29796,7 +29823,7 @@ var Toast2 = (_a8) => {
|
|
29796
29823
|
|
29797
29824
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
29798
29825
|
var ToastContainer = () => {
|
29799
|
-
const isConnected =
|
29826
|
+
const isConnected = useHMSStore89(selectIsConnectedToRoom11);
|
29800
29827
|
const [toasts, setToast] = useState71([]);
|
29801
29828
|
useEffect66(() => {
|
29802
29829
|
ToastManager.addListener(setToast);
|
@@ -29819,7 +29846,7 @@ var ToastContainer = () => {
|
|
29819
29846
|
// src/Prebuilt/layouts/Sheet.tsx
|
29820
29847
|
init_define_process_env();
|
29821
29848
|
import React174 from "react";
|
29822
|
-
import { selectAppData as selectAppData11, useHMSStore as
|
29849
|
+
import { selectAppData as selectAppData11, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
|
29823
29850
|
|
29824
29851
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
29825
29852
|
init_define_process_env();
|
@@ -29843,7 +29870,7 @@ var RoomDetailsSheet = () => {
|
|
29843
29870
|
|
29844
29871
|
// src/Prebuilt/layouts/Sheet.tsx
|
29845
29872
|
var Sheet2 = () => {
|
29846
|
-
const sheet =
|
29873
|
+
const sheet = useHMSStore90(selectAppData11(APP_DATA.sheet));
|
29847
29874
|
let ViewComponent;
|
29848
29875
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
29849
29876
|
ViewComponent = /* @__PURE__ */ React174.createElement(RoomDetailsSheet, null);
|
@@ -29854,12 +29881,12 @@ var Sheet2 = () => {
|
|
29854
29881
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
29855
29882
|
init_define_process_env();
|
29856
29883
|
import React175, { useCallback as useCallback35, useEffect as useEffect67, useMemo as useMemo19, useState as useState72 } from "react";
|
29857
|
-
import { useMedia as
|
29884
|
+
import { useMedia as useMedia37 } from "react-use";
|
29858
29885
|
import {
|
29859
29886
|
selectLocalPeerID as selectLocalPeerID17,
|
29860
29887
|
selectPeerNameByID as selectPeerNameByID6,
|
29861
29888
|
useCustomEvent as useCustomEvent5,
|
29862
|
-
useHMSStore as
|
29889
|
+
useHMSStore as useHMSStore91,
|
29863
29890
|
useHMSVanillaStore as useHMSVanillaStore18
|
29864
29891
|
} from "@100mslive/react-sdk";
|
29865
29892
|
var emojiCount = 1;
|
@@ -29886,10 +29913,10 @@ var getStartingPoints = (isMobile) => {
|
|
29886
29913
|
return arr;
|
29887
29914
|
};
|
29888
29915
|
function FlyingEmoji() {
|
29889
|
-
const localPeerId =
|
29916
|
+
const localPeerId = useHMSStore91(selectLocalPeerID17);
|
29890
29917
|
const vanillaStore = useHMSVanillaStore18();
|
29891
29918
|
const [emojis, setEmojis] = useState72([]);
|
29892
|
-
const isMobile =
|
29919
|
+
const isMobile = useMedia37(config.media.md);
|
29893
29920
|
const startingPoints = useMemo19(() => getStartingPoints(isMobile), [isMobile]);
|
29894
29921
|
const showFlyingEmoji = useCallback35(
|
29895
29922
|
({ emojiId, senderId }) => {
|
@@ -30003,17 +30030,17 @@ init_define_process_env();
|
|
30003
30030
|
import { useCallback as useCallback37, useEffect as useEffect68, useRef as useRef26 } from "react";
|
30004
30031
|
import {
|
30005
30032
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
30006
|
-
selectPermissions as
|
30033
|
+
selectPermissions as selectPermissions18,
|
30007
30034
|
useHMSActions as useHMSActions52,
|
30008
|
-
useHMSStore as
|
30035
|
+
useHMSStore as useHMSStore92,
|
30009
30036
|
useRecordingStreaming as useRecordingStreaming12
|
30010
30037
|
} from "@100mslive/react-sdk";
|
30011
30038
|
var useAutoStartStreaming = () => {
|
30012
30039
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
30013
|
-
const permissions =
|
30040
|
+
const permissions = useHMSStore92(selectPermissions18);
|
30014
30041
|
const showStreamingUI = useShowStreamingUI();
|
30015
30042
|
const hmsActions = useHMSActions52();
|
30016
|
-
const isConnected =
|
30043
|
+
const isConnected = useHMSStore92(selectIsConnectedToRoom12);
|
30017
30044
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
30018
30045
|
const streamStartedRef = useRef26(false);
|
30019
30046
|
const startHLS = useCallback37(() => __async(void 0, null, function* () {
|
@@ -30207,7 +30234,7 @@ var AppStates = ({ activeState }) => {
|
|
30207
30234
|
return /* @__PURE__ */ React177.createElement(ConferenceScreen, null);
|
30208
30235
|
};
|
30209
30236
|
var BackSwipe = () => {
|
30210
|
-
const isConnectedToRoom =
|
30237
|
+
const isConnectedToRoom = useHMSStore93(selectIsConnectedToRoom13);
|
30211
30238
|
const hmsActions = useHMSActions53();
|
30212
30239
|
useEffect69(() => {
|
30213
30240
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
@@ -30370,4 +30397,4 @@ lodash/lodash.js:
|
|
30370
30397
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
30371
30398
|
*)
|
30372
30399
|
*/
|
30373
|
-
//# sourceMappingURL=chunk-
|
30400
|
+
//# sourceMappingURL=chunk-72B32WVR.js.map
|