@100mslive/roomkit-react 0.3.13-alpha.2 → 0.3.13-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-PKDRMZ6I.css → HLSView-QPE6FRVQ.css} +3 -3
- package/dist/{HLSView-PKDRMZ6I.css.map → HLSView-QPE6FRVQ.css.map} +1 -1
- package/dist/{HLSView-6LSPJ2Z7.js → HLSView-VGNORAAX.js} +2 -2
- package/dist/Prebuilt/components/AudioVideoToggle.d.ts +5 -0
- package/dist/{chunk-WVDHAUXG.js → chunk-XSEQ4VZT.js} +478 -429
- package/dist/chunk-XSEQ4VZT.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +602 -550
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +102 -72
- package/dist/meta.esbuild.json +114 -84
- package/package.json +7 -7
- package/src/Prebuilt/components/AppData/AppData.tsx +2 -2
- package/src/Prebuilt/components/AppData/useUISettings.js +3 -4
- package/src/Prebuilt/components/AudioVideoToggle.tsx +94 -35
- package/src/Prebuilt/components/CaptionIcon.tsx +1 -1
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx +1 -1
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +7 -2
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +10 -5
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +4 -1
- package/dist/chunk-WVDHAUXG.js.map +0 -7
- /package/dist/{HLSView-6LSPJ2Z7.js.map → HLSView-VGNORAAX.js.map} +0 -0
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
107
107
|
var define_process_env_default;
|
108
108
|
var init_define_process_env = __esm({
|
109
109
|
"<define:process.env>"() {
|
110
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_781d4ddf-5daa-45db-9f83-c0bf317f9e95", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", 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", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.3-alpha.2", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.3 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.13-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_781d4ddf-5daa-45db-9f83-c0bf317f9e95", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.13-alpha.2", 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.9", 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.8", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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_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.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240609.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.4/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.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:18234", 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__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.13-alpha.2", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "true", GITHUB_RUN_ID: "9504609350", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "8ad775c3c97fb8bbc724a83aa16891271f0d9b83", 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: "42b125171dea7d12c69002be435ead6e0223e3f1f4635b00e17b5bd03a173816", npm_package_exports___import: "./dist/index.js", 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--1718302155559-0.9798725688206638:/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.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718302155365-0.44461227345693377:/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.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718302130135-0.059118830462507654:/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.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718302129956-0.2484037447094678:/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.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.20.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_71d83aa6-547c-4ab5-aae8-16419954a821", INVOCATION_ID: "f0e414d2de8a4a0e83671c8b0b2f2f7b", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "573", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 80", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "true", 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_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.13-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.13-alpha.2", 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", GITHUB_SHA: "8ad775c3c97fb8bbc724a83aa16891271f0d9b83", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_781d4ddf-5daa-45db-9f83-c0bf317f9e95", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", 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_781d4ddf-5daa-45db-9f83-c0bf317f9e95", 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.181+6/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_781d4ddf-5daa-45db-9f83-c0bf317f9e95" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8e6af420-513e-414d-aa23-a752e95303fc", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", 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", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.3-alpha.4", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.3 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.13-alpha.4", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8e6af420-513e-414d-aa23-a752e95303fc", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.13-alpha.4", 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.9", 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.8", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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_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.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240609.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.4/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.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:18983", 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__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.13-alpha.4", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "true", GITHUB_RUN_ID: "9514408329", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "678e1447e57c5ab4d7574c319f274cd45ac60a96", 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: "5884bdc4d8de5e2ee5b2c3155430dd18592148e2a0ea132b5694c35c60e13c5e", npm_package_exports___import: "./dist/index.js", 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--1718359908640-0.3005683268034627:/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.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718359908443-0.9888851874003317:/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.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718359882489-0.9992482425092206:/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.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718359882307-0.045798951201833304:/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.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.20.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_71b9e33b-74da-4b38-bf15-fffbdfa04ed4", INVOCATION_ID: "1f8a737f33994aa898adfa84b6401159", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "575", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 55", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "true", 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_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.13-alpha.4", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.13-alpha.4", 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", GITHUB_SHA: "678e1447e57c5ab4d7574c319f274cd45ac60a96", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8e6af420-513e-414d-aa23-a752e95303fc", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", 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_8e6af420-513e-414d-aa23-a752e95303fc", 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.181+6/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_8e6af420-513e-414d-aa23-a752e95303fc" };
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
@@ -12214,10 +12214,10 @@ var usePollViewState = () => {
|
|
12214
12214
|
};
|
12215
12215
|
};
|
12216
12216
|
var useIsNoiseCancellationEnabled = () => {
|
12217
|
-
const
|
12218
|
-
return
|
12217
|
+
const isNoiseCancellationEnabled = useHMSStore2(selectAppDataByPath(APP_DATA.noiseCancellation));
|
12218
|
+
return isNoiseCancellationEnabled;
|
12219
12219
|
};
|
12220
|
-
var
|
12220
|
+
var useSetNoiseCancellation = () => {
|
12221
12221
|
const [isNoiseCancellationEnabled, setNoiseCancellationEnabled] = useSetAppDataByKey(APP_DATA.noiseCancellation);
|
12222
12222
|
return [isNoiseCancellationEnabled, setNoiseCancellationEnabled];
|
12223
12223
|
};
|
@@ -12752,7 +12752,7 @@ var AppData = React23.memo(() => {
|
|
12752
12752
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
12753
12753
|
const { isLocalVideoEnabled } = useAVToggle();
|
12754
12754
|
const sidepaneOpenedRef = useRef7(false);
|
12755
|
-
const [, setNoiseCancellationEnabled] =
|
12755
|
+
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
12756
12756
|
useEffect5(() => {
|
12757
12757
|
var _a9;
|
12758
12758
|
if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
|
@@ -12985,13 +12985,14 @@ import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
|
12985
12985
|
|
12986
12986
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
12987
12987
|
init_define_process_env();
|
12988
|
-
import
|
12988
|
+
import React33, { Fragment as Fragment3, useEffect as useEffect10, useState as useState10 } from "react";
|
12989
12989
|
import { HMSKrispPlugin } from "@100mslive/hms-noise-cancellation";
|
12990
12990
|
import {
|
12991
12991
|
DeviceType as DeviceType2,
|
12992
12992
|
HMSRoomState as HMSRoomState2,
|
12993
12993
|
selectIsLocalAudioPluginPresent,
|
12994
12994
|
selectLocalAudioTrackID,
|
12995
|
+
selectLocalPeer,
|
12995
12996
|
selectLocalVideoTrackID as selectLocalVideoTrackID2,
|
12996
12997
|
selectRoom,
|
12997
12998
|
selectRoomState as selectRoomState2,
|
@@ -13133,7 +13134,7 @@ var IconButtonWithOptions = ({
|
|
13133
13134
|
}
|
13134
13135
|
}) => {
|
13135
13136
|
const commonProps = { disabled, active };
|
13136
|
-
return /* @__PURE__ */ React26.createElement(Flex, null, /* @__PURE__ */ React26.createElement(IconSection, __spreadProps(__spreadValues({}, commonProps), { onClick, hideOptions }), /* @__PURE__ */ React26.createElement(Tooltip, { disabled: !tooltipMessage, title: tooltipMessage }, /* @__PURE__ */ React26.createElement(Icon2, __spreadValues({}, commonProps), icon))), !hideOptions && children ? /* @__PURE__ */ React26.createElement(Dropdown.Root, null, /* @__PURE__ */ React26.createElement(
|
13137
|
+
return /* @__PURE__ */ React26.createElement(Flex, null, /* @__PURE__ */ React26.createElement(IconSection, __spreadProps(__spreadValues({}, commonProps), { onClick, hideOptions, className: "__cancel-drag-event" }), /* @__PURE__ */ React26.createElement(Tooltip, { disabled: !tooltipMessage, title: tooltipMessage }, /* @__PURE__ */ React26.createElement(Icon2, __spreadValues({}, commonProps), icon))), !hideOptions && children ? /* @__PURE__ */ React26.createElement(Dropdown.Root, null, /* @__PURE__ */ React26.createElement(
|
13137
13138
|
Dropdown.Trigger,
|
13138
13139
|
{
|
13139
13140
|
asChild: true,
|
@@ -13165,9 +13166,67 @@ var IconButtonWithOptions = ({
|
|
13165
13166
|
)) : null);
|
13166
13167
|
};
|
13167
13168
|
|
13169
|
+
// src/Prebuilt/components/MoreSettings/ActionTile.jsx
|
13170
|
+
init_define_process_env();
|
13171
|
+
import React27 from "react";
|
13172
|
+
var ActionTileRoot = (_a8) => {
|
13173
|
+
var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
|
13174
|
+
return /* @__PURE__ */ React27.createElement(
|
13175
|
+
Flex,
|
13176
|
+
__spreadProps(__spreadValues({}, props), {
|
13177
|
+
css: {
|
13178
|
+
flexDirection: "column",
|
13179
|
+
alignItems: "center",
|
13180
|
+
p: "$4 $2",
|
13181
|
+
position: "relative",
|
13182
|
+
bg: active ? "$surface_bright" : "",
|
13183
|
+
color: disabled ? "$on_surface_low" : "$on_surface_high",
|
13184
|
+
gap: "$4",
|
13185
|
+
r: "$1",
|
13186
|
+
"&:hover": {
|
13187
|
+
bg: "$surface_bright"
|
13188
|
+
}
|
13189
|
+
},
|
13190
|
+
onClick: () => {
|
13191
|
+
if (!disabled) {
|
13192
|
+
onClick();
|
13193
|
+
}
|
13194
|
+
}
|
13195
|
+
}),
|
13196
|
+
children
|
13197
|
+
);
|
13198
|
+
};
|
13199
|
+
var ActionTileCount = styled(Text, {
|
13200
|
+
position: "absolute",
|
13201
|
+
top: 0,
|
13202
|
+
right: 0,
|
13203
|
+
fontWeight: "$semiBold",
|
13204
|
+
color: "$on_surface_high",
|
13205
|
+
p: "$1 $2",
|
13206
|
+
minWidth: "$9",
|
13207
|
+
textAlign: "center",
|
13208
|
+
boxSizing: "border-box",
|
13209
|
+
bg: "$surface_bright",
|
13210
|
+
r: "$round",
|
13211
|
+
letterSpacing: "1.5px",
|
13212
|
+
fontSize: "$tiny !important",
|
13213
|
+
lineHeight: "$tiny !important"
|
13214
|
+
});
|
13215
|
+
var ActionTileTitle = styled(Text, {
|
13216
|
+
fontWeight: "$semiBold",
|
13217
|
+
color: "inherit",
|
13218
|
+
textAlign: "center",
|
13219
|
+
fontSize: "$xs !important"
|
13220
|
+
});
|
13221
|
+
var ActionTile = {
|
13222
|
+
Root: ActionTileRoot,
|
13223
|
+
Title: ActionTileTitle,
|
13224
|
+
Count: ActionTileCount
|
13225
|
+
};
|
13226
|
+
|
13168
13227
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
13169
13228
|
init_define_process_env();
|
13170
|
-
import
|
13229
|
+
import React32, { useCallback as useCallback7, useEffect as useEffect9, useState as useState9 } from "react";
|
13171
13230
|
import { useMedia as useMedia2 } from "react-use";
|
13172
13231
|
import { ChevronLeftIcon, CrossIcon as CrossIcon3, GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
|
13173
13232
|
|
@@ -13176,7 +13235,7 @@ init_define_process_env();
|
|
13176
13235
|
|
13177
13236
|
// src/Sheet/Sheet.tsx
|
13178
13237
|
init_define_process_env();
|
13179
|
-
import
|
13238
|
+
import React28 from "react";
|
13180
13239
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
13181
13240
|
var SheetRoot = styled(DialogPrimitive2.Root, {
|
13182
13241
|
minHeight: "240px",
|
@@ -13254,10 +13313,10 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
13254
13313
|
side: "bottom"
|
13255
13314
|
}
|
13256
13315
|
});
|
13257
|
-
var SheetContent =
|
13316
|
+
var SheetContent = React28.forwardRef(
|
13258
13317
|
(_a8, forwardedRef) => {
|
13259
13318
|
var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
|
13260
|
-
return /* @__PURE__ */
|
13319
|
+
return /* @__PURE__ */ React28.createElement(Dialog.Portal, { container }, /* @__PURE__ */ React28.createElement(StyledOverlay, null), /* @__PURE__ */ React28.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
|
13261
13320
|
}
|
13262
13321
|
);
|
13263
13322
|
var SheetClose = Dialog.Close;
|
@@ -13278,7 +13337,7 @@ var Sheet = {
|
|
13278
13337
|
|
13279
13338
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
13280
13339
|
init_define_process_env();
|
13281
|
-
import
|
13340
|
+
import React30, { Fragment as Fragment2, useEffect as useEffect8, useRef as useRef9, useState as useState8 } from "react";
|
13282
13341
|
import { useMedia } from "react-use";
|
13283
13342
|
import {
|
13284
13343
|
DeviceType,
|
@@ -13293,10 +13352,10 @@ import { MicOnIcon, SpeakerIcon, VideoOnIcon } from "@100mslive/react-icons";
|
|
13293
13352
|
|
13294
13353
|
// src/Prebuilt/primitives/DropdownTrigger.jsx
|
13295
13354
|
init_define_process_env();
|
13296
|
-
import
|
13355
|
+
import React29 from "react";
|
13297
13356
|
import { ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon as ChevronUpIcon2 } from "@100mslive/react-icons";
|
13298
|
-
var DialogDropdownTrigger =
|
13299
|
-
return /* @__PURE__ */
|
13357
|
+
var DialogDropdownTrigger = React29.forwardRef(({ title, css: css2, open, icon, titleCSS = {} }, ref) => {
|
13358
|
+
return /* @__PURE__ */ React29.createElement(
|
13300
13359
|
Dropdown.Trigger,
|
13301
13360
|
{
|
13302
13361
|
asChild: true,
|
@@ -13310,7 +13369,7 @@ var DialogDropdownTrigger = React28.forwardRef(({ title, css: css2, open, icon,
|
|
13310
13369
|
}, css2),
|
13311
13370
|
ref
|
13312
13371
|
},
|
13313
|
-
/* @__PURE__ */
|
13372
|
+
/* @__PURE__ */ React29.createElement(
|
13314
13373
|
Flex,
|
13315
13374
|
{
|
13316
13375
|
css: {
|
@@ -13321,7 +13380,7 @@ var DialogDropdownTrigger = React28.forwardRef(({ title, css: css2, open, icon,
|
|
13321
13380
|
}
|
13322
13381
|
},
|
13323
13382
|
icon,
|
13324
|
-
/* @__PURE__ */
|
13383
|
+
/* @__PURE__ */ React29.createElement(
|
13325
13384
|
Text,
|
13326
13385
|
{
|
13327
13386
|
css: __spreadValues(__spreadProps(__spreadValues({
|
@@ -13333,7 +13392,7 @@ var DialogDropdownTrigger = React28.forwardRef(({ title, css: css2, open, icon,
|
|
13333
13392
|
},
|
13334
13393
|
title
|
13335
13394
|
),
|
13336
|
-
open ? /* @__PURE__ */
|
13395
|
+
open ? /* @__PURE__ */ React29.createElement(ChevronUpIcon2, null) : /* @__PURE__ */ React29.createElement(ChevronDownIcon2, null)
|
13337
13396
|
)
|
13338
13397
|
);
|
13339
13398
|
});
|
@@ -13386,7 +13445,7 @@ var Settings = ({ setHide }) => {
|
|
13386
13445
|
if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
|
13387
13446
|
setHide(true);
|
13388
13447
|
}
|
13389
|
-
return /* @__PURE__ */
|
13448
|
+
return /* @__PURE__ */ React30.createElement(Box, { className: settingOverflow() }, (videoInput == null ? void 0 : videoInput.length) ? /* @__PURE__ */ React30.createElement(Fragment2, null, isVideoOn && /* @__PURE__ */ React30.createElement(
|
13390
13449
|
StyledVideoTile.Container,
|
13391
13450
|
{
|
13392
13451
|
css: {
|
@@ -13397,24 +13456,24 @@ var Settings = ({ setHide }) => {
|
|
13397
13456
|
m: "$10 auto"
|
13398
13457
|
}
|
13399
13458
|
},
|
13400
|
-
/* @__PURE__ */
|
13401
|
-
), /* @__PURE__ */
|
13459
|
+
/* @__PURE__ */ React30.createElement(Video, { trackId: videoTrackId, mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo })
|
13460
|
+
), /* @__PURE__ */ React30.createElement(
|
13402
13461
|
DeviceSelector,
|
13403
13462
|
{
|
13404
13463
|
title: "Video",
|
13405
13464
|
devices: videoInput,
|
13406
|
-
icon: /* @__PURE__ */
|
13465
|
+
icon: /* @__PURE__ */ React30.createElement(VideoOnIcon, null),
|
13407
13466
|
selection: selectedDeviceIDs.videoInput,
|
13408
13467
|
onChange: (deviceId) => updateDevice({
|
13409
13468
|
deviceId,
|
13410
13469
|
deviceType: DeviceType.videoInput
|
13411
13470
|
})
|
13412
13471
|
}
|
13413
|
-
)) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */
|
13472
|
+
)) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */ React30.createElement(
|
13414
13473
|
DeviceSelector,
|
13415
13474
|
{
|
13416
13475
|
title: shouldShowAudioOutput ? "Microphone" : "Audio",
|
13417
|
-
icon: /* @__PURE__ */
|
13476
|
+
icon: /* @__PURE__ */ React30.createElement(MicOnIcon, null),
|
13418
13477
|
devices: audioInput,
|
13419
13478
|
selection: selectedDeviceIDs.audioInput,
|
13420
13479
|
onChange: (deviceId) => updateDevice({
|
@@ -13422,11 +13481,11 @@ var Settings = ({ setHide }) => {
|
|
13422
13481
|
deviceType: DeviceType.audioInput
|
13423
13482
|
})
|
13424
13483
|
}
|
13425
|
-
) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */
|
13484
|
+
) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */ React30.createElement(
|
13426
13485
|
DeviceSelector,
|
13427
13486
|
{
|
13428
13487
|
title: "Speaker",
|
13429
|
-
icon: /* @__PURE__ */
|
13488
|
+
icon: /* @__PURE__ */ React30.createElement(SpeakerIcon, null),
|
13430
13489
|
devices: audioOutput,
|
13431
13490
|
selection: selectedDeviceIDs.audioOutput,
|
13432
13491
|
onChange: (deviceId) => updateDevice({
|
@@ -13434,7 +13493,7 @@ var Settings = ({ setHide }) => {
|
|
13434
13493
|
deviceType: DeviceType.audioOutput
|
13435
13494
|
})
|
13436
13495
|
},
|
13437
|
-
/* @__PURE__ */
|
13496
|
+
/* @__PURE__ */ React30.createElement(TestAudio, { id: selectedDeviceIDs.audioOutput })
|
13438
13497
|
) : null);
|
13439
13498
|
};
|
13440
13499
|
var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
|
@@ -13442,7 +13501,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13442
13501
|
const [open, setOpen] = useState8(false);
|
13443
13502
|
const selectionBg = useDropdownSelection();
|
13444
13503
|
const ref = useRef9(null);
|
13445
|
-
return /* @__PURE__ */
|
13504
|
+
return /* @__PURE__ */ React30.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React30.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React30.createElement(
|
13446
13505
|
Flex,
|
13447
13506
|
{
|
13448
13507
|
align: "center",
|
@@ -13454,7 +13513,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13454
13513
|
}
|
13455
13514
|
}
|
13456
13515
|
},
|
13457
|
-
/* @__PURE__ */
|
13516
|
+
/* @__PURE__ */ React30.createElement(
|
13458
13517
|
Box,
|
13459
13518
|
{
|
13460
13519
|
css: {
|
@@ -13468,7 +13527,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13468
13527
|
}
|
13469
13528
|
}
|
13470
13529
|
},
|
13471
|
-
/* @__PURE__ */
|
13530
|
+
/* @__PURE__ */ React30.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React30.createElement(
|
13472
13531
|
DialogDropdownTrigger,
|
13473
13532
|
{
|
13474
13533
|
ref,
|
@@ -13476,8 +13535,8 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13476
13535
|
title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
|
13477
13536
|
open
|
13478
13537
|
}
|
13479
|
-
), /* @__PURE__ */
|
13480
|
-
return /* @__PURE__ */
|
13538
|
+
), /* @__PURE__ */ React30.createElement(Dropdown.Portal, null, /* @__PURE__ */ React30.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
|
13539
|
+
return /* @__PURE__ */ React30.createElement(
|
13481
13540
|
Dropdown.Item,
|
13482
13541
|
{
|
13483
13542
|
key: device.label,
|
@@ -13496,7 +13555,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13496
13555
|
};
|
13497
13556
|
var TestAudio = ({ id }) => {
|
13498
13557
|
const { playing, setPlaying, audioRef } = useAudioOutputTest({ deviceId: id });
|
13499
|
-
return /* @__PURE__ */
|
13558
|
+
return /* @__PURE__ */ React30.createElement(React30.Fragment, null, /* @__PURE__ */ React30.createElement(
|
13500
13559
|
Button,
|
13501
13560
|
{
|
13502
13561
|
variant: "standard",
|
@@ -13513,11 +13572,11 @@ var TestAudio = ({ id }) => {
|
|
13513
13572
|
},
|
13514
13573
|
disabled: playing
|
13515
13574
|
},
|
13516
|
-
/* @__PURE__ */
|
13575
|
+
/* @__PURE__ */ React30.createElement(SpeakerIcon, null),
|
13517
13576
|
"\xA0Test",
|
13518
13577
|
" ",
|
13519
|
-
/* @__PURE__ */
|
13520
|
-
), /* @__PURE__ */
|
13578
|
+
/* @__PURE__ */ React30.createElement(Text, { as: "span", css: { display: "none", "@md": { display: "inline" } } }, "\xA0 speaker")
|
13579
|
+
), /* @__PURE__ */ React30.createElement(
|
13521
13580
|
"audio",
|
13522
13581
|
{
|
13523
13582
|
ref: audioRef,
|
@@ -13532,7 +13591,7 @@ var DeviceSettings_default = Settings;
|
|
13532
13591
|
|
13533
13592
|
// src/Prebuilt/components/Settings/NotificationSettings.tsx
|
13534
13593
|
init_define_process_env();
|
13535
|
-
import
|
13594
|
+
import React31 from "react";
|
13536
13595
|
import { AlertOctagonIcon, HandIcon, PeopleAddIcon, PeopleRemoveIcon } from "@100mslive/react-icons";
|
13537
13596
|
var NotificationItem = ({
|
13538
13597
|
type,
|
@@ -13541,7 +13600,7 @@ var NotificationItem = ({
|
|
13541
13600
|
checked
|
13542
13601
|
}) => {
|
13543
13602
|
const [, setSubscribedNotifications] = useSetSubscribedNotifications(type);
|
13544
|
-
return /* @__PURE__ */
|
13603
|
+
return /* @__PURE__ */ React31.createElement(
|
13545
13604
|
SwitchWithLabel_default,
|
13546
13605
|
{
|
13547
13606
|
label,
|
@@ -13556,36 +13615,36 @@ var NotificationItem = ({
|
|
13556
13615
|
};
|
13557
13616
|
var NotificationSettings = () => {
|
13558
13617
|
const subscribedNotifications = useSubscribedNotifications();
|
13559
|
-
return /* @__PURE__ */
|
13618
|
+
return /* @__PURE__ */ React31.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React31.createElement(
|
13560
13619
|
NotificationItem,
|
13561
13620
|
{
|
13562
13621
|
label: "Peer Joined",
|
13563
13622
|
type: SUBSCRIBED_NOTIFICATIONS.PEER_JOINED,
|
13564
|
-
icon: /* @__PURE__ */
|
13623
|
+
icon: /* @__PURE__ */ React31.createElement(PeopleAddIcon, null),
|
13565
13624
|
checked: subscribedNotifications.PEER_JOINED
|
13566
13625
|
}
|
13567
|
-
), /* @__PURE__ */
|
13626
|
+
), /* @__PURE__ */ React31.createElement(
|
13568
13627
|
NotificationItem,
|
13569
13628
|
{
|
13570
13629
|
label: "Peer Leave",
|
13571
13630
|
type: SUBSCRIBED_NOTIFICATIONS.PEER_LEFT,
|
13572
|
-
icon: /* @__PURE__ */
|
13631
|
+
icon: /* @__PURE__ */ React31.createElement(PeopleRemoveIcon, null),
|
13573
13632
|
checked: subscribedNotifications.PEER_LEFT
|
13574
13633
|
}
|
13575
|
-
), /* @__PURE__ */
|
13634
|
+
), /* @__PURE__ */ React31.createElement(
|
13576
13635
|
NotificationItem,
|
13577
13636
|
{
|
13578
13637
|
label: "Hand Raised",
|
13579
13638
|
type: SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED,
|
13580
|
-
icon: /* @__PURE__ */
|
13639
|
+
icon: /* @__PURE__ */ React31.createElement(HandIcon, null),
|
13581
13640
|
checked: subscribedNotifications.METADATA_UPDATED
|
13582
13641
|
}
|
13583
|
-
), /* @__PURE__ */
|
13642
|
+
), /* @__PURE__ */ React31.createElement(
|
13584
13643
|
NotificationItem,
|
13585
13644
|
{
|
13586
13645
|
label: "Error",
|
13587
13646
|
type: SUBSCRIBED_NOTIFICATIONS.ERROR,
|
13588
|
-
icon: /* @__PURE__ */
|
13647
|
+
icon: /* @__PURE__ */ React31.createElement(AlertOctagonIcon, null),
|
13589
13648
|
checked: subscribedNotifications.ERROR
|
13590
13649
|
}
|
13591
13650
|
));
|
@@ -13612,7 +13671,7 @@ var settingsList = [
|
|
13612
13671
|
content: LayoutSettings
|
13613
13672
|
}
|
13614
13673
|
];
|
13615
|
-
var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */
|
13674
|
+
var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React32.createElement(React32.Fragment, null) }) => {
|
13616
13675
|
const mediaQueryLg = config.media.md;
|
13617
13676
|
const isMobile = useMedia2(mediaQueryLg);
|
13618
13677
|
const [showSetting, setShowSetting] = useState9(
|
@@ -13643,7 +13702,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
|
|
13643
13702
|
setSelection(firstNotHiddenTabName);
|
13644
13703
|
}
|
13645
13704
|
}, [isMobile, showSetting]);
|
13646
|
-
return isMobile ? /* @__PURE__ */
|
13705
|
+
return isMobile ? /* @__PURE__ */ React32.createElement(
|
13647
13706
|
MobileSettingModal,
|
13648
13707
|
{
|
13649
13708
|
open,
|
@@ -13655,7 +13714,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
|
|
13655
13714
|
resetSelection
|
13656
13715
|
},
|
13657
13716
|
children
|
13658
|
-
) : /* @__PURE__ */
|
13717
|
+
) : /* @__PURE__ */ React32.createElement(
|
13659
13718
|
DesktopSettingModal,
|
13660
13719
|
{
|
13661
13720
|
open,
|
@@ -13677,9 +13736,9 @@ var MobileSettingModal = ({
|
|
13677
13736
|
showSetting,
|
13678
13737
|
hideSettingByTabName,
|
13679
13738
|
resetSelection,
|
13680
|
-
children = /* @__PURE__ */
|
13739
|
+
children = /* @__PURE__ */ React32.createElement(React32.Fragment, null)
|
13681
13740
|
}) => {
|
13682
|
-
return /* @__PURE__ */
|
13741
|
+
return /* @__PURE__ */ React32.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React32.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React32.createElement(
|
13683
13742
|
Sheet.Content,
|
13684
13743
|
{
|
13685
13744
|
css: {
|
@@ -13687,9 +13746,9 @@ var MobileSettingModal = ({
|
|
13687
13746
|
overflowY: "auto"
|
13688
13747
|
}
|
13689
13748
|
},
|
13690
|
-
/* @__PURE__ */
|
13691
|
-
/* @__PURE__ */
|
13692
|
-
!selection ? /* @__PURE__ */
|
13749
|
+
/* @__PURE__ */ React32.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React32.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, !selection ? /* @__PURE__ */ React32.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Settings") : /* @__PURE__ */ React32.createElement(Text, { variant: "h6", css: { display: "flex" } }, /* @__PURE__ */ React32.createElement(Box, { as: "span", css: { r: "$round", mr: "$2" }, onClick: resetSelection }, /* @__PURE__ */ React32.createElement(ChevronLeftIcon, null)), (selection == null ? void 0 : selection.charAt(0).toUpperCase()) + selection.slice(1)), /* @__PURE__ */ React32.createElement(Sheet.Close, null, /* @__PURE__ */ React32.createElement(IconButton, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React32.createElement(CrossIcon3, null))))),
|
13750
|
+
/* @__PURE__ */ React32.createElement(HorizontalDivider, null),
|
13751
|
+
!selection ? /* @__PURE__ */ React32.createElement(
|
13693
13752
|
Flex,
|
13694
13753
|
{
|
13695
13754
|
direction: "column",
|
@@ -13700,7 +13759,7 @@ var MobileSettingModal = ({
|
|
13700
13759
|
}
|
13701
13760
|
},
|
13702
13761
|
settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon4, tabName, title }) => {
|
13703
|
-
return /* @__PURE__ */
|
13762
|
+
return /* @__PURE__ */ React32.createElement(
|
13704
13763
|
Box,
|
13705
13764
|
{
|
13706
13765
|
key: tabName,
|
@@ -13730,18 +13789,18 @@ var MobileSettingModal = ({
|
|
13730
13789
|
borderBottom: "1px solid $border_default"
|
13731
13790
|
}
|
13732
13791
|
},
|
13733
|
-
/* @__PURE__ */
|
13792
|
+
/* @__PURE__ */ React32.createElement(Icon4, null),
|
13734
13793
|
title
|
13735
13794
|
);
|
13736
13795
|
})
|
13737
|
-
) : /* @__PURE__ */
|
13796
|
+
) : /* @__PURE__ */ React32.createElement(
|
13738
13797
|
Box,
|
13739
13798
|
{
|
13740
13799
|
direction: "column",
|
13741
13800
|
css: { overflowY: "scroll", px: "$8", py: "$10", maxHeight: "70vh", overflowX: "hidden" }
|
13742
13801
|
},
|
13743
13802
|
settingsList.filter(({ tabName }) => showSetting[tabName] && selection === tabName).map(({ content: Content11, title, tabName }) => {
|
13744
|
-
return /* @__PURE__ */
|
13803
|
+
return /* @__PURE__ */ React32.createElement(Content11, { key: title, setHide: hideSettingByTabName(tabName) });
|
13745
13804
|
})
|
13746
13805
|
)
|
13747
13806
|
));
|
@@ -13754,9 +13813,9 @@ var DesktopSettingModal = ({
|
|
13754
13813
|
showSetting,
|
13755
13814
|
hideSettingByTabName,
|
13756
13815
|
resetSelection,
|
13757
|
-
children = /* @__PURE__ */
|
13816
|
+
children = /* @__PURE__ */ React32.createElement(React32.Fragment, null)
|
13758
13817
|
}) => {
|
13759
|
-
return /* @__PURE__ */
|
13818
|
+
return /* @__PURE__ */ React32.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React32.createElement(Dialog.Trigger, { asChild: true }, children), /* @__PURE__ */ React32.createElement(Dialog.Portal, null, /* @__PURE__ */ React32.createElement(Dialog.Overlay, null), /* @__PURE__ */ React32.createElement(
|
13760
13819
|
Dialog.Content,
|
13761
13820
|
{
|
13762
13821
|
css: {
|
@@ -13766,7 +13825,7 @@ var DesktopSettingModal = ({
|
|
13766
13825
|
r: "$4"
|
13767
13826
|
}
|
13768
13827
|
},
|
13769
|
-
/* @__PURE__ */
|
13828
|
+
/* @__PURE__ */ React32.createElement(
|
13770
13829
|
Tabs.Root,
|
13771
13830
|
{
|
13772
13831
|
value: selection,
|
@@ -13774,7 +13833,7 @@ var DesktopSettingModal = ({
|
|
13774
13833
|
onValueChange: setSelection,
|
13775
13834
|
css: { size: "100%", position: "relative" }
|
13776
13835
|
},
|
13777
|
-
/* @__PURE__ */
|
13836
|
+
/* @__PURE__ */ React32.createElement(
|
13778
13837
|
Tabs.List,
|
13779
13838
|
{
|
13780
13839
|
css: {
|
@@ -13786,12 +13845,12 @@ var DesktopSettingModal = ({
|
|
13786
13845
|
borderBottomLeftRadius: "$4"
|
13787
13846
|
}
|
13788
13847
|
},
|
13789
|
-
/* @__PURE__ */
|
13790
|
-
/* @__PURE__ */
|
13791
|
-
return /* @__PURE__ */
|
13848
|
+
/* @__PURE__ */ React32.createElement(Text, { variant: "h5" }, "Settings "),
|
13849
|
+
/* @__PURE__ */ React32.createElement(Flex, { direction: "column", css: { mx: 0, overflowY: "auto", pt: "$10" } }, settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon4, tabName, title }) => {
|
13850
|
+
return /* @__PURE__ */ React32.createElement(Tabs.Trigger, { key: tabName, value: tabName, css: { gap: "$8" } }, /* @__PURE__ */ React32.createElement(Icon4, null), title);
|
13792
13851
|
}))
|
13793
13852
|
),
|
13794
|
-
selection && /* @__PURE__ */
|
13853
|
+
selection && /* @__PURE__ */ React32.createElement(
|
13795
13854
|
Flex,
|
13796
13855
|
{
|
13797
13856
|
direction: "column",
|
@@ -13802,15 +13861,15 @@ var DesktopSettingModal = ({
|
|
13802
13861
|
}
|
13803
13862
|
},
|
13804
13863
|
settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ content: Content11, title, tabName }) => {
|
13805
|
-
return /* @__PURE__ */
|
13864
|
+
return /* @__PURE__ */ React32.createElement(Tabs.Content, { key: tabName, value: tabName, className: settingContent() }, /* @__PURE__ */ React32.createElement(SettingsContentHeader, { onBack: resetSelection, isMobile: false }, title), /* @__PURE__ */ React32.createElement(Content11, { setHide: hideSettingByTabName(tabName) }));
|
13806
13865
|
})
|
13807
13866
|
)
|
13808
13867
|
),
|
13809
|
-
/* @__PURE__ */
|
13868
|
+
/* @__PURE__ */ React32.createElement(Dialog.Close, { css: { position: "absolute", right: "$10", top: "$10" } }, /* @__PURE__ */ React32.createElement(IconButton, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React32.createElement(CrossIcon3, null)))
|
13810
13869
|
)));
|
13811
13870
|
};
|
13812
13871
|
var SettingsContentHeader = ({ children, isMobile, onBack }) => {
|
13813
|
-
return /* @__PURE__ */
|
13872
|
+
return /* @__PURE__ */ React32.createElement(Text, { variant: "h6", css: { mb: "$12", display: "flex", alignItems: "center" } }, isMobile && /* @__PURE__ */ React32.createElement(Box, { as: "span", css: { bg: "$surface_bright", mr: "$4", r: "$round", p: "$2" }, onClick: onBack }, /* @__PURE__ */ React32.createElement(ChevronLeftIcon, null)), children);
|
13814
13873
|
};
|
13815
13874
|
var SettingsModal_default = SettingsModal;
|
13816
13875
|
|
@@ -13859,12 +13918,13 @@ var ToastManager = {
|
|
13859
13918
|
};
|
13860
13919
|
|
13861
13920
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
13921
|
+
var krispPlugin = new HMSKrispPlugin();
|
13862
13922
|
var Options = ({
|
13863
13923
|
options,
|
13864
13924
|
selectedDeviceId,
|
13865
13925
|
onClick
|
13866
13926
|
}) => {
|
13867
|
-
return /* @__PURE__ */
|
13927
|
+
return /* @__PURE__ */ React33.createElement(React33.Fragment, null, options == null ? void 0 : options.map((option) => /* @__PURE__ */ React33.createElement(
|
13868
13928
|
Dropdown.Item,
|
13869
13929
|
{
|
13870
13930
|
key: option.label,
|
@@ -13881,11 +13941,11 @@ var Options = ({
|
|
13881
13941
|
}
|
13882
13942
|
},
|
13883
13943
|
option.label,
|
13884
|
-
selectedDeviceId === option.deviceId ? /* @__PURE__ */
|
13944
|
+
selectedDeviceId === option.deviceId ? /* @__PURE__ */ React33.createElement(CheckIcon, { width: 16, height: 16 }) : null
|
13885
13945
|
)));
|
13886
13946
|
};
|
13887
13947
|
var OptionLabel = ({ children, icon }) => {
|
13888
|
-
return /* @__PURE__ */
|
13948
|
+
return /* @__PURE__ */ React33.createElement(
|
13889
13949
|
Dropdown.Label,
|
13890
13950
|
{
|
13891
13951
|
css: {
|
@@ -13898,35 +13958,78 @@ var OptionLabel = ({ children, icon }) => {
|
|
13898
13958
|
alignItems: "center"
|
13899
13959
|
}
|
13900
13960
|
},
|
13901
|
-
/* @__PURE__ */
|
13961
|
+
/* @__PURE__ */ React33.createElement(Flex, { css: { alignItems: "center", justifyContent: "center", "& svg": { size: "$8" } } }, icon),
|
13902
13962
|
" ",
|
13903
13963
|
children
|
13904
13964
|
);
|
13905
13965
|
};
|
13906
|
-
var
|
13907
|
-
var NoiseCancellation = () => {
|
13908
|
-
const localPeerAudioTrackID = useHMSStore8(selectLocalAudioTrackID);
|
13909
|
-
const [enabled, setEnabled] = useSetNoiseCancellationEnabled();
|
13910
|
-
const isPluginAdded = useHMSStore8(selectIsLocalAudioPluginPresent(plugin.getName()));
|
13911
|
-
const [inProgress, setInProgress] = useState10(false);
|
13966
|
+
var useNoiseCancellationWithPlugin = () => {
|
13912
13967
|
const actions = useHMSActions7();
|
13968
|
+
const [inProgress, setInProgress] = useState10(false);
|
13969
|
+
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
13970
|
+
const setNoiseCancellationWithPlugin = (enabled) => __async(void 0, null, function* () {
|
13971
|
+
if (inProgress) {
|
13972
|
+
return;
|
13973
|
+
}
|
13974
|
+
setInProgress(true);
|
13975
|
+
if (enabled) {
|
13976
|
+
yield actions.addPluginToAudioTrack(krispPlugin);
|
13977
|
+
} else {
|
13978
|
+
yield actions.removePluginFromAudioTrack(krispPlugin);
|
13979
|
+
}
|
13980
|
+
setNoiseCancellationEnabled(enabled);
|
13981
|
+
setInProgress(false);
|
13982
|
+
});
|
13983
|
+
return {
|
13984
|
+
setNoiseCancellationWithPlugin,
|
13985
|
+
inProgress
|
13986
|
+
};
|
13987
|
+
};
|
13988
|
+
var NoiseCancellation = ({
|
13989
|
+
actionTile,
|
13990
|
+
iconOnly,
|
13991
|
+
setOpenOptionsSheet
|
13992
|
+
}) => {
|
13993
|
+
const localPeerAudioTrackID = useHMSStore8(selectLocalAudioTrackID);
|
13994
|
+
const isNoiseCancellationEnabled = useIsNoiseCancellationEnabled();
|
13995
|
+
const { setNoiseCancellationWithPlugin, inProgress } = useNoiseCancellationWithPlugin();
|
13913
13996
|
const room = useHMSStore8(selectRoom);
|
13914
|
-
|
13915
|
-
|
13916
|
-
setInProgress(true);
|
13917
|
-
if (enabled && !isPluginAdded) {
|
13918
|
-
yield actions.addPluginToAudioTrack(plugin);
|
13919
|
-
}
|
13920
|
-
if (!enabled && isPluginAdded) {
|
13921
|
-
yield actions.removePluginFromAudioTrack(plugin);
|
13922
|
-
}
|
13923
|
-
setInProgress(false);
|
13924
|
-
}))();
|
13925
|
-
}, [actions, enabled, isPluginAdded]);
|
13926
|
-
if (!plugin.isSupported() || !room.isNoiseCancellationEnabled || !localPeerAudioTrackID) {
|
13997
|
+
const isKrispPluginAdded = useHMSStore8(selectIsLocalAudioPluginPresent(krispPlugin.getName()));
|
13998
|
+
if (!krispPlugin.isSupported() || !room.isNoiseCancellationEnabled || !localPeerAudioTrackID) {
|
13927
13999
|
return null;
|
13928
14000
|
}
|
13929
|
-
|
14001
|
+
if (actionTile) {
|
14002
|
+
return /* @__PURE__ */ React33.createElement(
|
14003
|
+
ActionTile.Root,
|
14004
|
+
{
|
14005
|
+
active: isNoiseCancellationEnabled && isKrispPluginAdded,
|
14006
|
+
disable: inProgress,
|
14007
|
+
onClick: () => __async(void 0, null, function* () {
|
14008
|
+
yield setNoiseCancellationWithPlugin(!isNoiseCancellationEnabled);
|
14009
|
+
setOpenOptionsSheet == null ? void 0 : setOpenOptionsSheet(false);
|
14010
|
+
})
|
14011
|
+
},
|
14012
|
+
/* @__PURE__ */ React33.createElement(AudioLevelIcon, null),
|
14013
|
+
/* @__PURE__ */ React33.createElement(ActionTile.Title, null, isNoiseCancellationEnabled ? "Noise Reduced" : "Reduce Noise")
|
14014
|
+
);
|
14015
|
+
}
|
14016
|
+
if (iconOnly) {
|
14017
|
+
return /* @__PURE__ */ React33.createElement(Tooltip, { title: isNoiseCancellationEnabled ? "Noise Reduced" : "Reduce Noise" }, /* @__PURE__ */ React33.createElement(
|
14018
|
+
IconButton_default,
|
14019
|
+
{
|
14020
|
+
onClick: () => __async(void 0, null, function* () {
|
14021
|
+
yield setNoiseCancellationWithPlugin(!isNoiseCancellationEnabled);
|
14022
|
+
}),
|
14023
|
+
disabled: inProgress,
|
14024
|
+
css: {
|
14025
|
+
bg: isNoiseCancellationEnabled && isKrispPluginAdded ? "$surface_brighter" : "$background_dim",
|
14026
|
+
borderColor: isNoiseCancellationEnabled && isKrispPluginAdded ? "$border_brighter" : "$border_bright"
|
14027
|
+
}
|
14028
|
+
},
|
14029
|
+
/* @__PURE__ */ React33.createElement(AudioLevelIcon, null)
|
14030
|
+
));
|
14031
|
+
}
|
14032
|
+
return /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }), /* @__PURE__ */ React33.createElement(
|
13930
14033
|
Dropdown.Item,
|
13931
14034
|
{
|
13932
14035
|
css: {
|
@@ -13935,29 +14038,29 @@ var NoiseCancellation = () => {
|
|
13935
14038
|
fontSize: "$xs",
|
13936
14039
|
justifyContent: "space-between"
|
13937
14040
|
},
|
13938
|
-
onClick: (e) => {
|
14041
|
+
onClick: (e) => __async(void 0, null, function* () {
|
13939
14042
|
e.preventDefault();
|
13940
|
-
|
13941
|
-
}
|
14043
|
+
yield setNoiseCancellationWithPlugin(!isNoiseCancellationEnabled);
|
14044
|
+
})
|
13942
14045
|
},
|
13943
|
-
/* @__PURE__ */
|
13944
|
-
/* @__PURE__ */
|
14046
|
+
/* @__PURE__ */ React33.createElement(Text, { css: { display: "flex", alignItems: "center", gap: "$2", fontSize: "$xs", "& svg": { size: "$8" } } }, /* @__PURE__ */ React33.createElement(AudioLevelIcon, null), "Reduce Noise"),
|
14047
|
+
/* @__PURE__ */ React33.createElement(
|
13945
14048
|
Switch,
|
13946
14049
|
{
|
13947
14050
|
id: "noise_cancellation",
|
13948
|
-
checked:
|
14051
|
+
checked: isNoiseCancellationEnabled && isKrispPluginAdded,
|
13949
14052
|
disabled: inProgress,
|
13950
14053
|
onClick: (e) => e.stopPropagation(),
|
13951
|
-
onCheckedChange: (value) => {
|
13952
|
-
|
13953
|
-
}
|
14054
|
+
onCheckedChange: (value) => __async(void 0, null, function* () {
|
14055
|
+
yield setNoiseCancellationWithPlugin(value);
|
14056
|
+
})
|
13954
14057
|
}
|
13955
14058
|
)
|
13956
|
-
), /* @__PURE__ */
|
14059
|
+
), /* @__PURE__ */ React33.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }));
|
13957
14060
|
};
|
13958
14061
|
var AudioOutputLabel = ({ deviceId }) => {
|
13959
14062
|
const { playing, setPlaying, audioRef } = useAudioOutputTest({ deviceId });
|
13960
|
-
return /* @__PURE__ */
|
14063
|
+
return /* @__PURE__ */ React33.createElement(OptionLabel, { icon: /* @__PURE__ */ React33.createElement(SpeakerIcon2, null) }, /* @__PURE__ */ React33.createElement(Box, { css: { flex: "1 1 0" } }, "Speakers"), /* @__PURE__ */ React33.createElement(
|
13961
14064
|
Text,
|
13962
14065
|
{
|
13963
14066
|
variant: "xs",
|
@@ -13970,7 +14073,7 @@ var AudioOutputLabel = ({ deviceId }) => {
|
|
13970
14073
|
yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
|
13971
14074
|
})
|
13972
14075
|
},
|
13973
|
-
/* @__PURE__ */
|
14076
|
+
/* @__PURE__ */ React33.createElement(
|
13974
14077
|
"audio",
|
13975
14078
|
{
|
13976
14079
|
ref: audioRef,
|
@@ -13984,7 +14087,7 @@ var AudioOutputLabel = ({ deviceId }) => {
|
|
13984
14087
|
));
|
13985
14088
|
};
|
13986
14089
|
var AudioSettings = ({ onClick }) => {
|
13987
|
-
return /* @__PURE__ */
|
14090
|
+
return /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(
|
13988
14091
|
Dropdown.Item,
|
13989
14092
|
{
|
13990
14093
|
css: {
|
@@ -13998,13 +14101,14 @@ var AudioSettings = ({ onClick }) => {
|
|
13998
14101
|
},
|
13999
14102
|
onClick
|
14000
14103
|
},
|
14001
|
-
/* @__PURE__ */
|
14104
|
+
/* @__PURE__ */ React33.createElement(SettingsIcon2, null),
|
14002
14105
|
" Audio Settings"
|
14003
14106
|
));
|
14004
14107
|
};
|
14005
14108
|
var AudioVideoToggle = ({ hideOptions = false }) => {
|
14006
14109
|
const { allDevices, selectedDeviceIDs, updateDevice } = useDevices2();
|
14007
14110
|
const { videoInput, audioInput, audioOutput } = allDevices;
|
14111
|
+
const localPeer = useHMSStore8(selectLocalPeer);
|
14008
14112
|
const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle2();
|
14009
14113
|
const actions = useHMSActions7();
|
14010
14114
|
const videoTrackId = useHMSStore8(selectLocalVideoTrackID2);
|
@@ -14015,39 +14119,39 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
14015
14119
|
const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype && Number(audioOutput == null ? void 0 : audioOutput.length) > 0;
|
14016
14120
|
const { screenType } = useRoomLayoutConferencingScreen();
|
14017
14121
|
const [showSettings, setShowSettings] = useState10(false);
|
14018
|
-
const
|
14122
|
+
const isKrispPluginAdded = useHMSStore8(selectIsLocalAudioPluginPresent(krispPlugin.getName()));
|
14019
14123
|
const isNoiseCancellationEnabled = useIsNoiseCancellationEnabled();
|
14124
|
+
const { setNoiseCancellationWithPlugin, inProgress } = useNoiseCancellationWithPlugin();
|
14125
|
+
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
14020
14126
|
useEffect10(() => {
|
14021
14127
|
(() => __async(void 0, null, function* () {
|
14022
|
-
if (isNoiseCancellationEnabled && !
|
14023
|
-
yield
|
14024
|
-
}
|
14025
|
-
if (isNoiseCancellationEnabled && isPluginAdded) {
|
14128
|
+
if (isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
|
14129
|
+
yield setNoiseCancellationWithPlugin(true);
|
14026
14130
|
ToastManager.addToast({
|
14027
14131
|
title: `Noise Reduction Enabled`,
|
14028
14132
|
variant: "standard",
|
14029
14133
|
duration: 2e3,
|
14030
|
-
icon: /* @__PURE__ */
|
14134
|
+
icon: /* @__PURE__ */ React33.createElement(AudioLevelIcon, null)
|
14031
14135
|
});
|
14032
14136
|
}
|
14033
14137
|
}))();
|
14034
|
-
}, [
|
14138
|
+
}, [isNoiseCancellationEnabled, localPeer == null ? void 0 : localPeer.audioTrack, inProgress]);
|
14035
14139
|
if (!toggleAudio && !toggleVideo) {
|
14036
14140
|
return null;
|
14037
14141
|
}
|
14038
|
-
return /* @__PURE__ */
|
14142
|
+
return /* @__PURE__ */ React33.createElement(Fragment3, null, toggleAudio ? /* @__PURE__ */ React33.createElement(
|
14039
14143
|
IconButtonWithOptions,
|
14040
14144
|
{
|
14041
14145
|
disabled: !toggleAudio,
|
14042
14146
|
hideOptions: hideOptions || !hasAudioDevices,
|
14043
14147
|
onDisabledClick: toggleAudio,
|
14044
14148
|
tooltipMessage: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)`,
|
14045
|
-
icon: !isLocalAudioEnabled ? /* @__PURE__ */
|
14149
|
+
icon: !isLocalAudioEnabled ? /* @__PURE__ */ React33.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React33.createElement(MicOnIcon2, { "data-testid": "audio_on_btn" }),
|
14046
14150
|
active: isLocalAudioEnabled,
|
14047
14151
|
onClick: toggleAudio,
|
14048
14152
|
key: "toggleAudio"
|
14049
14153
|
},
|
14050
|
-
/* @__PURE__ */
|
14154
|
+
/* @__PURE__ */ React33.createElement(Dropdown.Group, null, /* @__PURE__ */ React33.createElement(OptionLabel, { icon: /* @__PURE__ */ React33.createElement(MicOnIcon2, null) }, /* @__PURE__ */ React33.createElement(Box, { css: { flex: "1 1 0" } }, !shouldShowAudioOutput ? "Audio" : "Microphone"), !showMuteIcon && /* @__PURE__ */ React33.createElement(AudioLevel, { trackId: localPeer == null ? void 0 : localPeer.audioTrack })), /* @__PURE__ */ React33.createElement(
|
14051
14155
|
Options,
|
14052
14156
|
{
|
14053
14157
|
options: audioInput,
|
@@ -14055,8 +14159,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
14055
14159
|
onClick: (deviceId) => updateDevice({ deviceId, deviceType: DeviceType2.audioInput })
|
14056
14160
|
}
|
14057
14161
|
)),
|
14058
|
-
/* @__PURE__ */
|
14059
|
-
shouldShowAudioOutput && /* @__PURE__ */
|
14162
|
+
/* @__PURE__ */ React33.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }),
|
14163
|
+
shouldShowAudioOutput && /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(AudioOutputLabel, { deviceId: selectedDeviceIDs.audioOutput || "" }), /* @__PURE__ */ React33.createElement(Dropdown.Group, null, /* @__PURE__ */ React33.createElement(
|
14060
14164
|
Options,
|
14061
14165
|
{
|
14062
14166
|
options: audioOutput,
|
@@ -14064,21 +14168,21 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
14064
14168
|
onClick: (deviceId) => updateDevice({ deviceId, deviceType: DeviceType2.audioOutput })
|
14065
14169
|
}
|
14066
14170
|
))),
|
14067
|
-
/* @__PURE__ */
|
14068
|
-
/* @__PURE__ */
|
14069
|
-
) : null, toggleVideo ? /* @__PURE__ */
|
14171
|
+
/* @__PURE__ */ React33.createElement(NoiseCancellation, null),
|
14172
|
+
/* @__PURE__ */ React33.createElement(AudioSettings, { onClick: () => setShowSettings(true) })
|
14173
|
+
) : null, toggleVideo ? /* @__PURE__ */ React33.createElement(
|
14070
14174
|
IconButtonWithOptions,
|
14071
14175
|
{
|
14072
14176
|
disabled: !toggleVideo,
|
14073
14177
|
hideOptions: hideOptions || !hasVideoDevices,
|
14074
14178
|
onDisabledClick: toggleVideo,
|
14075
14179
|
tooltipMessage: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)`,
|
14076
|
-
icon: !isLocalVideoEnabled ? /* @__PURE__ */
|
14180
|
+
icon: !isLocalVideoEnabled ? /* @__PURE__ */ React33.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React33.createElement(VideoOnIcon2, { "data-testid": "video_on_btn" }),
|
14077
14181
|
key: "toggleVideo",
|
14078
14182
|
active: isLocalVideoEnabled,
|
14079
14183
|
onClick: toggleVideo
|
14080
14184
|
},
|
14081
|
-
/* @__PURE__ */
|
14185
|
+
/* @__PURE__ */ React33.createElement(
|
14082
14186
|
Options,
|
14083
14187
|
{
|
14084
14188
|
options: videoInput,
|
@@ -14086,7 +14190,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
14086
14190
|
onClick: (deviceId) => updateDevice({ deviceId, deviceType: DeviceType2.videoInput })
|
14087
14191
|
}
|
14088
14192
|
)
|
14089
|
-
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */
|
14193
|
+
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */ React33.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ React33.createElement(
|
14090
14194
|
IconButton_default,
|
14091
14195
|
{
|
14092
14196
|
onClick: () => __async(void 0, null, function* () {
|
@@ -14100,13 +14204,13 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
14100
14204
|
}
|
14101
14205
|
})
|
14102
14206
|
},
|
14103
|
-
/* @__PURE__ */
|
14104
|
-
)) : null, showSettings && /* @__PURE__ */
|
14207
|
+
/* @__PURE__ */ React33.createElement(CameraFlipIcon, null)
|
14208
|
+
)) : null, showSettings && /* @__PURE__ */ React33.createElement(SettingsModal_default, { open: showSettings, onOpenChange: () => setShowSettings(false), screenType }));
|
14105
14209
|
};
|
14106
14210
|
|
14107
14211
|
// src/Prebuilt/components/CaptionIcon.tsx
|
14108
14212
|
init_define_process_env();
|
14109
|
-
import
|
14213
|
+
import React34 from "react";
|
14110
14214
|
import { selectIsTranscriptionEnabled, useHMSStore as useHMSStore9 } from "@100mslive/react-sdk";
|
14111
14215
|
import { ClosedCaptionIcon, OpenCaptionIcon } from "@100mslive/react-icons";
|
14112
14216
|
var CaptionIcon = () => {
|
@@ -14118,12 +14222,12 @@ var CaptionIcon = () => {
|
|
14118
14222
|
if (!isCaptionPresent) {
|
14119
14223
|
return null;
|
14120
14224
|
}
|
14121
|
-
return /* @__PURE__ */
|
14225
|
+
return /* @__PURE__ */ React34.createElement(Tooltip, { title: isCaption ? "Hide closed captions" : "Show closed captions" }, /* @__PURE__ */ React34.createElement(IconButton_default, { "data-testid": "caption_btn", onClick }, isCaption ? /* @__PURE__ */ React34.createElement(ClosedCaptionIcon, { width: "20", height: "20px" }) : /* @__PURE__ */ React34.createElement(OpenCaptionIcon, { width: "20", height: "20px" })));
|
14122
14226
|
};
|
14123
14227
|
|
14124
14228
|
// src/Prebuilt/components/EmojiReaction.jsx
|
14125
14229
|
init_define_process_env();
|
14126
|
-
import
|
14230
|
+
import React36, { useState as useState12 } from "react";
|
14127
14231
|
import { useMedia as useMedia4 } from "react-use";
|
14128
14232
|
import data from "@emoji-mart/data/sets/14/apple.json";
|
14129
14233
|
import { init } from "emoji-mart";
|
@@ -14138,13 +14242,13 @@ import { EmojiIcon } from "@100mslive/react-icons";
|
|
14138
14242
|
|
14139
14243
|
// src/Prebuilt/components/Footer/EmojiCard.jsx
|
14140
14244
|
init_define_process_env();
|
14141
|
-
import
|
14245
|
+
import React35 from "react";
|
14142
14246
|
var emojiReactionList = [
|
14143
14247
|
[{ emojiId: "+1" }, { emojiId: "-1" }, { emojiId: "wave" }, { emojiId: "clap" }, { emojiId: "fire" }],
|
14144
14248
|
[{ emojiId: "tada" }, { emojiId: "heart_eyes" }, { emojiId: "joy" }, { emojiId: "open_mouth" }, { emojiId: "sob" }]
|
14145
14249
|
];
|
14146
14250
|
var EmojiCard = ({ sendReaction }) => {
|
14147
|
-
return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */
|
14251
|
+
return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */ React35.createElement(Flex, { key: index, justify: "between", css: { mb: "$8" } }, emojiLine.map((emoji) => /* @__PURE__ */ React35.createElement(EmojiContainer, { key: emoji.emojiId, onClick: () => sendReaction(emoji.emojiId) }, /* @__PURE__ */ React35.createElement("em-emoji", { id: emoji.emojiId, size: "100%", set: "apple" })))));
|
14148
14252
|
};
|
14149
14253
|
var EmojiContainer = styled("span", {
|
14150
14254
|
position: "relative",
|
@@ -14396,28 +14500,28 @@ var EmojiReaction = ({ showCard = false }) => {
|
|
14396
14500
|
return null;
|
14397
14501
|
}
|
14398
14502
|
if (showCard) {
|
14399
|
-
return /* @__PURE__ */
|
14503
|
+
return /* @__PURE__ */ React36.createElement(EmojiCard, { sendReaction });
|
14400
14504
|
}
|
14401
|
-
return /* @__PURE__ */
|
14505
|
+
return /* @__PURE__ */ React36.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React36.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React36.createElement(
|
14402
14506
|
IconButton_default,
|
14403
14507
|
{
|
14404
14508
|
css: isMobile || isLandscape ? { bg: "$surface_default", r: "$round", border: "1px solid $border_bright" } : {}
|
14405
14509
|
},
|
14406
|
-
/* @__PURE__ */
|
14407
|
-
)), /* @__PURE__ */
|
14510
|
+
/* @__PURE__ */ React36.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React36.createElement(Box, null, /* @__PURE__ */ React36.createElement(EmojiIcon, null)))
|
14511
|
+
)), /* @__PURE__ */ React36.createElement(
|
14408
14512
|
Dropdown.Content,
|
14409
14513
|
{
|
14410
14514
|
sideOffset: 5,
|
14411
14515
|
align: isMobileHLSStream || isLandscapeStream ? "end" : "center",
|
14412
14516
|
css: { p: "$8", bg: "$surface_default" }
|
14413
14517
|
},
|
14414
|
-
/* @__PURE__ */
|
14518
|
+
/* @__PURE__ */ React36.createElement(EmojiCard, { sendReaction })
|
14415
14519
|
));
|
14416
14520
|
};
|
14417
14521
|
|
14418
14522
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
14419
14523
|
init_define_process_env();
|
14420
|
-
import
|
14524
|
+
import React42 from "react";
|
14421
14525
|
import { useMedia as useMedia5 } from "react-use";
|
14422
14526
|
import {
|
14423
14527
|
selectHLSState as selectHLSState3,
|
@@ -14431,13 +14535,13 @@ import {
|
|
14431
14535
|
|
14432
14536
|
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
14433
14537
|
init_define_process_env();
|
14434
|
-
import
|
14538
|
+
import React40, { Fragment as Fragment4, useState as useState13 } from "react";
|
14435
14539
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom3, selectPermissions as selectPermissions2, useHMSStore as useHMSStore12, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
|
14436
14540
|
import { ExitIcon, StopIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
|
14437
14541
|
|
14438
14542
|
// src/Prebuilt/components/Leave/EndSessionContent.tsx
|
14439
14543
|
init_define_process_env();
|
14440
|
-
import
|
14544
|
+
import React37 from "react";
|
14441
14545
|
import { AlertTriangleIcon, CrossIcon as CrossIcon4 } from "@100mslive/react-icons";
|
14442
14546
|
var EndSessionContent = ({
|
14443
14547
|
setShowEndStreamAlert,
|
@@ -14445,7 +14549,7 @@ var EndSessionContent = ({
|
|
14445
14549
|
isModal = false,
|
14446
14550
|
isStreamingOn = false
|
14447
14551
|
}) => {
|
14448
|
-
return /* @__PURE__ */
|
14552
|
+
return /* @__PURE__ */ React37.createElement(Box, null, /* @__PURE__ */ React37.createElement(
|
14449
14553
|
Flex,
|
14450
14554
|
{
|
14451
14555
|
css: {
|
@@ -14454,10 +14558,10 @@ var EndSessionContent = ({
|
|
14454
14558
|
alignItems: "center"
|
14455
14559
|
}
|
14456
14560
|
},
|
14457
|
-
/* @__PURE__ */
|
14458
|
-
/* @__PURE__ */
|
14459
|
-
isModal ? null : /* @__PURE__ */
|
14460
|
-
), /* @__PURE__ */
|
14561
|
+
/* @__PURE__ */ React37.createElement(AlertTriangleIcon, { style: { marginRight: "0.5rem" } }),
|
14562
|
+
/* @__PURE__ */ React37.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "End ", isStreamingOn ? "Stream" : "Session"),
|
14563
|
+
isModal ? null : /* @__PURE__ */ React37.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowEndStreamAlert(false) }, /* @__PURE__ */ React37.createElement(CrossIcon4, null))
|
14564
|
+
), /* @__PURE__ */ React37.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "The ", isStreamingOn ? "stream" : "session", " will end for everyone. You can't undo this action."), /* @__PURE__ */ React37.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React37.createElement(
|
14461
14565
|
Button,
|
14462
14566
|
{
|
14463
14567
|
outlined: true,
|
@@ -14466,7 +14570,7 @@ var EndSessionContent = ({
|
|
14466
14570
|
onClick: () => setShowEndStreamAlert(false)
|
14467
14571
|
},
|
14468
14572
|
"Cancel"
|
14469
|
-
), /* @__PURE__ */
|
14573
|
+
), /* @__PURE__ */ React37.createElement(
|
14470
14574
|
Button,
|
14471
14575
|
{
|
14472
14576
|
variant: "danger",
|
@@ -14510,7 +14614,7 @@ var MenuTriggerButton = styled(LeaveIconButton, {
|
|
14510
14614
|
|
14511
14615
|
// src/Prebuilt/components/Leave/LeaveCard.tsx
|
14512
14616
|
init_define_process_env();
|
14513
|
-
import
|
14617
|
+
import React38 from "react";
|
14514
14618
|
var LeaveCard = ({
|
14515
14619
|
icon,
|
14516
14620
|
title,
|
@@ -14520,19 +14624,19 @@ var LeaveCard = ({
|
|
14520
14624
|
titleColor,
|
14521
14625
|
css: css2 = {}
|
14522
14626
|
}) => {
|
14523
|
-
return /* @__PURE__ */
|
14627
|
+
return /* @__PURE__ */ React38.createElement(Flex, { css: __spreadValues({ p: "$10", flexGrow: 1, gap: "$8", bg }, css2), onClick }, /* @__PURE__ */ React38.createElement(Box, { css: { color: titleColor } }, icon), /* @__PURE__ */ React38.createElement(Box, { css: { gap: "$2" } }, /* @__PURE__ */ React38.createElement(Text, { variant: "lg", css: { color: titleColor } }, title), /* @__PURE__ */ React38.createElement(Text, { variant: "sm", css: { c: "inherit" } }, subtitle)));
|
14524
14628
|
};
|
14525
14629
|
|
14526
14630
|
// src/Prebuilt/components/Leave/LeaveSessionContent.tsx
|
14527
14631
|
init_define_process_env();
|
14528
|
-
import
|
14632
|
+
import React39 from "react";
|
14529
14633
|
import { AlertTriangleIcon as AlertTriangleIcon2, CrossIcon as CrossIcon5 } from "@100mslive/react-icons";
|
14530
14634
|
var LeaveSessionContent = ({
|
14531
14635
|
setShowLeaveRoomAlert,
|
14532
14636
|
leaveRoom,
|
14533
14637
|
isModal = false
|
14534
14638
|
}) => {
|
14535
|
-
return /* @__PURE__ */
|
14639
|
+
return /* @__PURE__ */ React39.createElement(Box, null, /* @__PURE__ */ React39.createElement(
|
14536
14640
|
Flex,
|
14537
14641
|
{
|
14538
14642
|
css: {
|
@@ -14541,10 +14645,10 @@ var LeaveSessionContent = ({
|
|
14541
14645
|
alignItems: "center"
|
14542
14646
|
}
|
14543
14647
|
},
|
14544
|
-
/* @__PURE__ */
|
14545
|
-
/* @__PURE__ */
|
14546
|
-
isModal ? null : /* @__PURE__ */
|
14547
|
-
), /* @__PURE__ */
|
14648
|
+
/* @__PURE__ */ React39.createElement(AlertTriangleIcon2, { style: { marginRight: "0.5rem" } }),
|
14649
|
+
/* @__PURE__ */ React39.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "Leave"),
|
14650
|
+
isModal ? null : /* @__PURE__ */ React39.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowLeaveRoomAlert(false) }, /* @__PURE__ */ React39.createElement(CrossIcon5, null))
|
14651
|
+
), /* @__PURE__ */ React39.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", mb: "$8", mt: "$4" } }, "Others will continue after you leave. You can join the session again."), /* @__PURE__ */ React39.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React39.createElement(
|
14548
14652
|
Button,
|
14549
14653
|
{
|
14550
14654
|
outlined: true,
|
@@ -14553,7 +14657,7 @@ var LeaveSessionContent = ({
|
|
14553
14657
|
onClick: () => setShowLeaveRoomAlert(false)
|
14554
14658
|
},
|
14555
14659
|
"Cancel"
|
14556
|
-
), /* @__PURE__ */
|
14660
|
+
), /* @__PURE__ */ React39.createElement(
|
14557
14661
|
Button,
|
14558
14662
|
{
|
14559
14663
|
variant: "danger",
|
@@ -14587,7 +14691,7 @@ var DesktopLeaveRoom = ({
|
|
14587
14691
|
if (!permissions || !isConnected) {
|
14588
14692
|
return null;
|
14589
14693
|
}
|
14590
|
-
return /* @__PURE__ */
|
14694
|
+
return /* @__PURE__ */ React40.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React40.createElement(Flex, null, /* @__PURE__ */ React40.createElement(
|
14591
14695
|
LeaveIconButton,
|
14592
14696
|
{
|
14593
14697
|
key: "LeaveRoom",
|
@@ -14598,8 +14702,8 @@ var DesktopLeaveRoom = ({
|
|
14598
14702
|
},
|
14599
14703
|
onClick: () => setShowLeaveRoomAlert(true)
|
14600
14704
|
},
|
14601
|
-
/* @__PURE__ */
|
14602
|
-
), /* @__PURE__ */
|
14705
|
+
/* @__PURE__ */ React40.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React40.createElement(Box, null, /* @__PURE__ */ React40.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
14706
|
+
), /* @__PURE__ */ React40.createElement(Dropdown.Root, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React40.createElement(
|
14603
14707
|
Dropdown.Trigger,
|
14604
14708
|
{
|
14605
14709
|
asChild: true,
|
@@ -14609,8 +14713,8 @@ var DesktopLeaveRoom = ({
|
|
14609
14713
|
}
|
14610
14714
|
}
|
14611
14715
|
},
|
14612
|
-
/* @__PURE__ */
|
14613
|
-
), /* @__PURE__ */
|
14716
|
+
/* @__PURE__ */ React40.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React40.createElement(VerticalMenuIcon2, null))
|
14717
|
+
), /* @__PURE__ */ React40.createElement(Dropdown.Portal, { container }, /* @__PURE__ */ React40.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React40.createElement(
|
14614
14718
|
Dropdown.Item,
|
14615
14719
|
{
|
14616
14720
|
css: {
|
@@ -14621,21 +14725,21 @@ var DesktopLeaveRoom = ({
|
|
14621
14725
|
},
|
14622
14726
|
"data-testid": "just_leave_btn"
|
14623
14727
|
},
|
14624
|
-
/* @__PURE__ */
|
14728
|
+
/* @__PURE__ */ React40.createElement(
|
14625
14729
|
LeaveCard,
|
14626
14730
|
{
|
14627
14731
|
title: showStream ? "Leave Stream" : "Leave Session",
|
14628
14732
|
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
14629
14733
|
bg: "",
|
14630
14734
|
titleColor: "$on_surface_high",
|
14631
|
-
icon: /* @__PURE__ */
|
14735
|
+
icon: /* @__PURE__ */ React40.createElement(ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
14632
14736
|
onClick: () => __async(void 0, null, function* () {
|
14633
14737
|
return yield leaveRoom();
|
14634
14738
|
}),
|
14635
14739
|
css: { p: "$8 $4" }
|
14636
14740
|
}
|
14637
14741
|
)
|
14638
|
-
), /* @__PURE__ */
|
14742
|
+
), /* @__PURE__ */ React40.createElement(
|
14639
14743
|
Dropdown.Item,
|
14640
14744
|
{
|
14641
14745
|
css: {
|
@@ -14646,14 +14750,14 @@ var DesktopLeaveRoom = ({
|
|
14646
14750
|
},
|
14647
14751
|
"data-testid": "end_room_btn"
|
14648
14752
|
},
|
14649
|
-
/* @__PURE__ */
|
14753
|
+
/* @__PURE__ */ React40.createElement(
|
14650
14754
|
LeaveCard,
|
14651
14755
|
{
|
14652
14756
|
title: showStream ? "End Stream" : "End Session",
|
14653
14757
|
subtitle: `The ${showStream ? "stream" : "session"} will end for everyone. You can't undo this action.`,
|
14654
14758
|
bg: "",
|
14655
14759
|
titleColor: "$alert_error_brighter",
|
14656
|
-
icon: /* @__PURE__ */
|
14760
|
+
icon: /* @__PURE__ */ React40.createElement(StopIcon, { height: 24, width: 24 }),
|
14657
14761
|
onClick: () => {
|
14658
14762
|
setOpen(false);
|
14659
14763
|
setShowEndStreamAlert(true);
|
@@ -14661,7 +14765,7 @@ var DesktopLeaveRoom = ({
|
|
14661
14765
|
css: { p: "$8 $4" }
|
14662
14766
|
}
|
14663
14767
|
)
|
14664
|
-
))))) : /* @__PURE__ */
|
14768
|
+
))))) : /* @__PURE__ */ React40.createElement(
|
14665
14769
|
LeaveIconButton,
|
14666
14770
|
{
|
14667
14771
|
onClick: () => {
|
@@ -14670,8 +14774,8 @@ var DesktopLeaveRoom = ({
|
|
14670
14774
|
key: "LeaveRoom",
|
14671
14775
|
"data-testid": "leave_room_btn"
|
14672
14776
|
},
|
14673
|
-
/* @__PURE__ */
|
14674
|
-
), /* @__PURE__ */
|
14777
|
+
/* @__PURE__ */ React40.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React40.createElement(Box, null, /* @__PURE__ */ React40.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
14778
|
+
), /* @__PURE__ */ React40.createElement(Dialog.Root, { open: showEndStreamAlert, modal: false }, /* @__PURE__ */ React40.createElement(Dialog.Portal, null, /* @__PURE__ */ React40.createElement(Dialog.Overlay, null), /* @__PURE__ */ React40.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React40.createElement(
|
14675
14779
|
EndSessionContent,
|
14676
14780
|
{
|
14677
14781
|
setShowEndStreamAlert,
|
@@ -14679,12 +14783,12 @@ var DesktopLeaveRoom = ({
|
|
14679
14783
|
isStreamingOn,
|
14680
14784
|
isModal: true
|
14681
14785
|
}
|
14682
|
-
)))), /* @__PURE__ */
|
14786
|
+
)))), /* @__PURE__ */ React40.createElement(Dialog.Root, { open: showLeaveRoomAlert, modal: false }, /* @__PURE__ */ React40.createElement(Dialog.Portal, null, /* @__PURE__ */ React40.createElement(Dialog.Overlay, null), /* @__PURE__ */ React40.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React40.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom, isModal: true })))));
|
14683
14787
|
};
|
14684
14788
|
|
14685
14789
|
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
14686
14790
|
init_define_process_env();
|
14687
|
-
import
|
14791
|
+
import React41, { Fragment as Fragment5, useState as useState14 } from "react";
|
14688
14792
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom4, selectPermissions as selectPermissions3, useHMSStore as useHMSStore13, useRecordingStreaming as useRecordingStreaming4 } from "@100mslive/react-sdk";
|
14689
14793
|
import { CrossIcon as CrossIcon6, ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
|
14690
14794
|
var MwebLeaveRoom = ({
|
@@ -14705,27 +14809,27 @@ var MwebLeaveRoom = ({
|
|
14705
14809
|
if (!permissions || !isConnected) {
|
14706
14810
|
return null;
|
14707
14811
|
}
|
14708
|
-
return /* @__PURE__ */
|
14812
|
+
return /* @__PURE__ */ React41.createElement(Fragment5, null, showLeaveOptions ? /* @__PURE__ */ React41.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React41.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React41.createElement(
|
14709
14813
|
LeaveButton,
|
14710
14814
|
{
|
14711
14815
|
onClick: () => {
|
14712
14816
|
setOpen((open2) => !open2);
|
14713
14817
|
}
|
14714
14818
|
}
|
14715
|
-
)), /* @__PURE__ */
|
14819
|
+
)), /* @__PURE__ */ React41.createElement(Sheet.Content, { container }, /* @__PURE__ */ React41.createElement(
|
14716
14820
|
LeaveCard,
|
14717
14821
|
{
|
14718
14822
|
title: showStream ? "Leave Stream" : "Leave Session",
|
14719
14823
|
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
14720
14824
|
bg: "$surface_default",
|
14721
14825
|
titleColor: "$on_surface_high",
|
14722
|
-
icon: /* @__PURE__ */
|
14826
|
+
icon: /* @__PURE__ */ React41.createElement(ExitIcon2, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
14723
14827
|
onClick: () => __async(void 0, null, function* () {
|
14724
14828
|
return yield leaveRoom();
|
14725
14829
|
}),
|
14726
14830
|
css: { pt: 0, mt: "$10", color: "$on_surface_low", "&:hover": { color: "$on_surface_high" } }
|
14727
14831
|
}
|
14728
|
-
), /* @__PURE__ */
|
14832
|
+
), /* @__PURE__ */ React41.createElement(
|
14729
14833
|
LeaveCard,
|
14730
14834
|
{
|
14731
14835
|
title: showStream ? "End Stream" : "End Session",
|
@@ -14733,25 +14837,25 @@ var MwebLeaveRoom = ({
|
|
14733
14837
|
bg: "$alert_error_dim",
|
14734
14838
|
titleColor: "$alert_error_brighter",
|
14735
14839
|
css: { color: "$alert_error_bright", "&:hover": { color: "$alert_error_brighter" } },
|
14736
|
-
icon: /* @__PURE__ */
|
14840
|
+
icon: /* @__PURE__ */ React41.createElement(StopIcon2, { height: 24, width: 24 }),
|
14737
14841
|
onClick: () => {
|
14738
14842
|
setOpen(false);
|
14739
14843
|
setShowEndStreamAlert(true);
|
14740
14844
|
}
|
14741
14845
|
}
|
14742
|
-
))) : /* @__PURE__ */
|
14846
|
+
))) : /* @__PURE__ */ React41.createElement(LeaveButton, { onClick: () => setShowLeaveRoomAlert(true) }), /* @__PURE__ */ React41.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React41.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" }, container }, /* @__PURE__ */ React41.createElement(
|
14743
14847
|
EndSessionContent,
|
14744
14848
|
{
|
14745
14849
|
setShowEndStreamAlert,
|
14746
14850
|
leaveRoom: isStreamingOn ? leaveRoom : endRoom,
|
14747
14851
|
isStreamingOn
|
14748
14852
|
}
|
14749
|
-
))), /* @__PURE__ */
|
14853
|
+
))), /* @__PURE__ */ React41.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React41.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" }, container }, /* @__PURE__ */ React41.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
|
14750
14854
|
};
|
14751
14855
|
var LeaveButton = ({ onClick }) => {
|
14752
14856
|
const isMobileHLSStream = useMobileHLSStream();
|
14753
14857
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
14754
|
-
return isMobileHLSStream || isLandscapeHLSStream ? /* @__PURE__ */
|
14858
|
+
return isMobileHLSStream || isLandscapeHLSStream ? /* @__PURE__ */ React41.createElement(IconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick }, /* @__PURE__ */ React41.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React41.createElement(Box, null, /* @__PURE__ */ React41.createElement(CrossIcon6, null)))) : /* @__PURE__ */ React41.createElement(
|
14755
14859
|
LeaveIconButton,
|
14756
14860
|
{
|
14757
14861
|
key: "LeaveRoom",
|
@@ -14762,7 +14866,7 @@ var LeaveButton = ({ onClick }) => {
|
|
14762
14866
|
},
|
14763
14867
|
onClick
|
14764
14868
|
},
|
14765
|
-
/* @__PURE__ */
|
14869
|
+
/* @__PURE__ */ React41.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React41.createElement(Box, null, /* @__PURE__ */ React41.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
|
14766
14870
|
);
|
14767
14871
|
};
|
14768
14872
|
|
@@ -14811,9 +14915,9 @@ var LeaveRoom = ({
|
|
14811
14915
|
return null;
|
14812
14916
|
}
|
14813
14917
|
if (isMobileHLSStream || isLandscapeHLSStream) {
|
14814
|
-
return /* @__PURE__ */
|
14918
|
+
return /* @__PURE__ */ React42.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container });
|
14815
14919
|
}
|
14816
|
-
return isMobile ? /* @__PURE__ */
|
14920
|
+
return isMobile ? /* @__PURE__ */ React42.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container }) : /* @__PURE__ */ React42.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom, container });
|
14817
14921
|
};
|
14818
14922
|
|
14819
14923
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
@@ -14823,7 +14927,7 @@ import { useMedia as useMedia10 } from "react-use";
|
|
14823
14927
|
|
14824
14928
|
// src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
|
14825
14929
|
init_define_process_env();
|
14826
|
-
import
|
14930
|
+
import React56, { Fragment as Fragment6, useState as useState23 } from "react";
|
14827
14931
|
import { HMSHLSPlayer } from "@100mslive/hls-player";
|
14828
14932
|
import { match as match4 } from "ts-pattern";
|
14829
14933
|
import {
|
@@ -14847,11 +14951,11 @@ import {
|
|
14847
14951
|
|
14848
14952
|
// src/Prebuilt/components/PIP/index.jsx
|
14849
14953
|
init_define_process_env();
|
14850
|
-
import
|
14954
|
+
import React44 from "react";
|
14851
14955
|
|
14852
14956
|
// src/Prebuilt/components/PIP/PIPComponent.tsx
|
14853
14957
|
init_define_process_env();
|
14854
|
-
import
|
14958
|
+
import React43, { useCallback as useCallback9, useEffect as useEffect13, useState as useState15 } from "react";
|
14855
14959
|
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as useHMSVanillaStore5 } from "@100mslive/react-sdk";
|
14856
14960
|
import { PipIcon } from "@100mslive/react-icons";
|
14857
14961
|
|
@@ -15336,7 +15440,7 @@ var PIPComponent = ({ content = null }) => {
|
|
15336
15440
|
if (!PictureInPicture.isSupported()) {
|
15337
15441
|
return null;
|
15338
15442
|
}
|
15339
|
-
return /* @__PURE__ */
|
15443
|
+
return /* @__PURE__ */ React43.createElement(React43.Fragment, null, content ? /* @__PURE__ */ React43.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React43.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React43.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React43.createElement(PipIcon, null))));
|
15340
15444
|
};
|
15341
15445
|
var ActivatedPIP = () => {
|
15342
15446
|
const store = useHMSVanillaStore5();
|
@@ -15369,23 +15473,23 @@ var ActivatedPIP = () => {
|
|
15369
15473
|
unsubscribe = void 0;
|
15370
15474
|
};
|
15371
15475
|
}, [pinnedTrack, store]);
|
15372
|
-
return /* @__PURE__ */
|
15476
|
+
return /* @__PURE__ */ React43.createElement(React43.Fragment, null);
|
15373
15477
|
};
|
15374
15478
|
var PIPComponent_default = PIPComponent;
|
15375
15479
|
|
15376
15480
|
// src/Prebuilt/components/PIP/index.jsx
|
15377
15481
|
var PIP = ({ content = null }) => {
|
15378
|
-
return /* @__PURE__ */
|
15482
|
+
return /* @__PURE__ */ React44.createElement(PIPComponent_default, { content });
|
15379
15483
|
};
|
15380
15484
|
|
15381
15485
|
// src/Prebuilt/components/RoleChangeModal.tsx
|
15382
15486
|
init_define_process_env();
|
15383
|
-
import
|
15487
|
+
import React45, { useRef as useRef11, useState as useState16 } from "react";
|
15384
15488
|
import { useMedia as useMedia6 } from "react-use";
|
15385
15489
|
import { selectAvailableRoleNames as selectAvailableRoleNames3, selectPeerByID, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
|
15386
15490
|
import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3, CrossIcon as CrossIcon7 } from "@100mslive/react-icons";
|
15387
15491
|
var HighlightTerm = ({ value }) => {
|
15388
|
-
return value ? /* @__PURE__ */
|
15492
|
+
return value ? /* @__PURE__ */ React45.createElement(Tooltip, { side: "top", title: value }, /* @__PURE__ */ React45.createElement(
|
15389
15493
|
Text,
|
15390
15494
|
{
|
15391
15495
|
variant: "body2",
|
@@ -15398,7 +15502,7 @@ var HighlightTerm = ({ value }) => {
|
|
15398
15502
|
value.slice(0, 100),
|
15399
15503
|
value.length > 100 ? "..." : "",
|
15400
15504
|
"'"
|
15401
|
-
)) : /* @__PURE__ */
|
15505
|
+
)) : /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
15402
15506
|
};
|
15403
15507
|
var RoleChangeContent = ({
|
15404
15508
|
peer,
|
@@ -15413,7 +15517,7 @@ var RoleChangeContent = ({
|
|
15413
15517
|
const hmsActions = useHMSActions11();
|
15414
15518
|
const [open, setOpen] = useState16(false);
|
15415
15519
|
const triggerRef = useRef11();
|
15416
|
-
return /* @__PURE__ */
|
15520
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(Flex, { align: "center", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React45.createElement(Text, { as: "h6", variant: "h6" }, "Switch Role"), isMobile && /* @__PURE__ */ React45.createElement(CrossIcon7, { onClick: () => onOpenChange(false) })), /* @__PURE__ */ React45.createElement(Box, null, /* @__PURE__ */ React45.createElement(
|
15417
15521
|
Text,
|
15418
15522
|
{
|
15419
15523
|
variant: "sm",
|
@@ -15427,11 +15531,11 @@ var RoleChangeContent = ({
|
|
15427
15531
|
}
|
15428
15532
|
},
|
15429
15533
|
"Switch the role of",
|
15430
|
-
/* @__PURE__ */
|
15534
|
+
/* @__PURE__ */ React45.createElement(HighlightTerm, { value: peer.name }),
|
15431
15535
|
"from ",
|
15432
|
-
/* @__PURE__ */
|
15536
|
+
/* @__PURE__ */ React45.createElement(HighlightTerm, { value: peer.roleName }),
|
15433
15537
|
" to"
|
15434
|
-
)), /* @__PURE__ */
|
15538
|
+
)), /* @__PURE__ */ React45.createElement(
|
15435
15539
|
Flex,
|
15436
15540
|
{
|
15437
15541
|
align: "center",
|
@@ -15440,7 +15544,7 @@ var RoleChangeContent = ({
|
|
15440
15544
|
mb: "$10"
|
15441
15545
|
}
|
15442
15546
|
},
|
15443
|
-
/* @__PURE__ */
|
15547
|
+
/* @__PURE__ */ React45.createElement(
|
15444
15548
|
Box,
|
15445
15549
|
{
|
15446
15550
|
css: {
|
@@ -15449,7 +15553,7 @@ var RoleChangeContent = ({
|
|
15449
15553
|
minWidth: 0
|
15450
15554
|
}
|
15451
15555
|
},
|
15452
|
-
/* @__PURE__ */
|
15556
|
+
/* @__PURE__ */ React45.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React45.createElement(
|
15453
15557
|
Dropdown.Trigger,
|
15454
15558
|
{
|
15455
15559
|
ref: triggerRef,
|
@@ -15461,10 +15565,10 @@ var RoleChangeContent = ({
|
|
15461
15565
|
p: "$6 $9"
|
15462
15566
|
}
|
15463
15567
|
},
|
15464
|
-
/* @__PURE__ */
|
15465
|
-
), /* @__PURE__ */
|
15568
|
+
/* @__PURE__ */ React45.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React45.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React45.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React45.createElement(ChevronDownIcon3, null))
|
15569
|
+
), /* @__PURE__ */ React45.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
|
15466
15570
|
var _a9;
|
15467
|
-
return /* @__PURE__ */
|
15571
|
+
return /* @__PURE__ */ React45.createElement(
|
15468
15572
|
Dropdown.Item,
|
15469
15573
|
{
|
15470
15574
|
"data-testid": role,
|
@@ -15476,7 +15580,7 @@ var RoleChangeContent = ({
|
|
15476
15580
|
);
|
15477
15581
|
})))
|
15478
15582
|
)
|
15479
|
-
), /* @__PURE__ */
|
15583
|
+
), /* @__PURE__ */ React45.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, !isMobile && /* @__PURE__ */ React45.createElement(
|
15480
15584
|
Button,
|
15481
15585
|
{
|
15482
15586
|
variant: "standard",
|
@@ -15486,7 +15590,7 @@ var RoleChangeContent = ({
|
|
15486
15590
|
"data-testid": "cancel_button"
|
15487
15591
|
},
|
15488
15592
|
"Cancel"
|
15489
|
-
), /* @__PURE__ */
|
15593
|
+
), /* @__PURE__ */ React45.createElement(
|
15490
15594
|
Button,
|
15491
15595
|
{
|
15492
15596
|
"data-testid": "change_button",
|
@@ -15512,33 +15616,33 @@ var RoleChangeModal = ({
|
|
15512
15616
|
return null;
|
15513
15617
|
}
|
15514
15618
|
if (isMobile) {
|
15515
|
-
return /* @__PURE__ */
|
15619
|
+
return /* @__PURE__ */ React45.createElement(Sheet.Root, { open: true, onOpenChange, css: { borderRadius: "$0 $0 0 0" } }, /* @__PURE__ */ React45.createElement(Sheet.Content, { css: { p: "$10 $8", background: "$surface_dim", border: "1px solid $border_default" } }, /* @__PURE__ */ React45.createElement(RoleChangeContent, { peer, onOpenChange, isMobile: true })));
|
15516
15620
|
}
|
15517
|
-
return /* @__PURE__ */
|
15621
|
+
return /* @__PURE__ */ React45.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React45.createElement(Dialog.Portal, null, /* @__PURE__ */ React45.createElement(Dialog.Overlay, null), /* @__PURE__ */ React45.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10", overflow: "visible" } }, /* @__PURE__ */ React45.createElement(RoleChangeContent, { peer, onOpenChange }))));
|
15518
15622
|
};
|
15519
15623
|
|
15520
15624
|
// src/Prebuilt/components/Settings/StartRecording.jsx
|
15521
15625
|
init_define_process_env();
|
15522
|
-
import
|
15626
|
+
import React48, { useState as useState18 } from "react";
|
15523
15627
|
import { selectPermissions as selectPermissions5, useHMSActions as useHMSActions12, useHMSStore as useHMSStore16, useRecordingStreaming as useRecordingStreaming5 } from "@100mslive/react-sdk";
|
15524
15628
|
import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons";
|
15525
15629
|
|
15526
15630
|
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
15527
15631
|
init_define_process_env();
|
15528
|
-
import
|
15632
|
+
import React47, { useCallback as useCallback10, useState as useState17 } from "react";
|
15529
15633
|
import { InfoIcon } from "@100mslive/react-icons";
|
15530
15634
|
|
15531
15635
|
// src/Prebuilt/primitives/DialogContent.jsx
|
15532
15636
|
init_define_process_env();
|
15533
|
-
import
|
15637
|
+
import React46, { useRef as useRef12 } from "react";
|
15534
15638
|
import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon8 } from "@100mslive/react-icons";
|
15535
15639
|
var DialogContent = (_a8) => {
|
15536
15640
|
var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
|
15537
|
-
return /* @__PURE__ */
|
15641
|
+
return /* @__PURE__ */ React46.createElement(Dialog.Portal, null, /* @__PURE__ */ React46.createElement(Dialog.Overlay, null), /* @__PURE__ */ React46.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React46.createElement(Dialog.Title, null, /* @__PURE__ */ React46.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React46.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ React46.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ React46.createElement(Icon4, null)) : null, /* @__PURE__ */ React46.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React46.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React46.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React46.createElement(Box, null, children)));
|
15538
15642
|
};
|
15539
15643
|
var ErrorDialog = (_a8) => {
|
15540
15644
|
var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
|
15541
|
-
return /* @__PURE__ */
|
15645
|
+
return /* @__PURE__ */ React46.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React46.createElement(
|
15542
15646
|
DialogContent,
|
15543
15647
|
__spreadValues({
|
15544
15648
|
Icon: CrossIcon8,
|
@@ -15549,10 +15653,10 @@ var ErrorDialog = (_a8) => {
|
|
15549
15653
|
closeable: false,
|
15550
15654
|
iconCSS: { color: "$alert_error_default" }
|
15551
15655
|
}, props),
|
15552
|
-
/* @__PURE__ */
|
15656
|
+
/* @__PURE__ */ React46.createElement(Box, { css: { mt: "$lg" } }, children)
|
15553
15657
|
));
|
15554
15658
|
};
|
15555
|
-
var RequestDialog = ({ open = true, onOpenChange, title, body, actionText = "Accept", onAction, Icon: Icon4 }) => /* @__PURE__ */
|
15659
|
+
var RequestDialog = ({ open = true, onOpenChange, title, body, actionText = "Accept", onAction, Icon: Icon4 }) => /* @__PURE__ */ React46.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React46.createElement(Dialog.Portal, null, /* @__PURE__ */ React46.createElement(Dialog.Overlay, null), /* @__PURE__ */ React46.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React46.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md" } }, Icon4 ? Icon4 : null, /* @__PURE__ */ React46.createElement(Text, { variant: "h6" }, title)), typeof body === "string" ? /* @__PURE__ */ React46.createElement(
|
15556
15660
|
Text,
|
15557
15661
|
{
|
15558
15662
|
variant: "md",
|
@@ -15564,7 +15668,7 @@ var RequestDialog = ({ open = true, onOpenChange, title, body, actionText = "Acc
|
|
15564
15668
|
}
|
15565
15669
|
},
|
15566
15670
|
body
|
15567
|
-
) : /* @__PURE__ */
|
15671
|
+
) : /* @__PURE__ */ React46.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ React46.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React46.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React46.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ React46.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" } }, "Cancel"))), /* @__PURE__ */ React46.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React46.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction }, actionText))))));
|
15568
15672
|
var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" }) => {
|
15569
15673
|
let finalCSS = {
|
15570
15674
|
margin: "$10 0",
|
@@ -15579,7 +15683,7 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
|
|
15579
15683
|
if (css2) {
|
15580
15684
|
finalCSS = Object.assign(finalCSS, css2);
|
15581
15685
|
}
|
15582
|
-
return /* @__PURE__ */
|
15686
|
+
return /* @__PURE__ */ React46.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
|
15583
15687
|
};
|
15584
15688
|
var DialogCol = (_a8) => {
|
15585
15689
|
var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
|
@@ -15595,20 +15699,20 @@ var DialogCol = (_a8) => {
|
|
15595
15699
|
if (css2) {
|
15596
15700
|
finalCSS = Object.assign(finalCSS, css2);
|
15597
15701
|
}
|
15598
|
-
return /* @__PURE__ */
|
15702
|
+
return /* @__PURE__ */ React46.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
|
15599
15703
|
};
|
15600
15704
|
var DialogSelect = (_a8) => {
|
15601
15705
|
var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
|
15602
|
-
return /* @__PURE__ */
|
15706
|
+
return /* @__PURE__ */ React46.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React46.createElement(Label3, null, title), /* @__PURE__ */ React46.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React46.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React46.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
|
15603
15707
|
const id = keyField ? option[keyField] : option;
|
15604
15708
|
const label = labelField ? option[labelField] : option;
|
15605
|
-
return /* @__PURE__ */
|
15709
|
+
return /* @__PURE__ */ React46.createElement("option", { value: id, key: id }, label);
|
15606
15710
|
}))));
|
15607
15711
|
};
|
15608
15712
|
var DialogInputFile = (_a8) => {
|
15609
15713
|
var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
|
15610
15714
|
const inputRef = useRef12();
|
15611
|
-
return /* @__PURE__ */
|
15715
|
+
return /* @__PURE__ */ React46.createElement(
|
15612
15716
|
DialogCol,
|
15613
15717
|
{
|
15614
15718
|
breakSm: true,
|
@@ -15629,7 +15733,7 @@ var DialogInputFile = (_a8) => {
|
|
15629
15733
|
},
|
15630
15734
|
gap: "8"
|
15631
15735
|
},
|
15632
|
-
/* @__PURE__ */
|
15736
|
+
/* @__PURE__ */ React46.createElement(
|
15633
15737
|
IconButton,
|
15634
15738
|
{
|
15635
15739
|
variant: "standard",
|
@@ -15643,7 +15747,7 @@ var DialogInputFile = (_a8) => {
|
|
15643
15747
|
}
|
15644
15748
|
}
|
15645
15749
|
},
|
15646
|
-
/* @__PURE__ */
|
15750
|
+
/* @__PURE__ */ React46.createElement(
|
15647
15751
|
CloudUploadIcon,
|
15648
15752
|
{
|
15649
15753
|
style: {
|
@@ -15653,7 +15757,7 @@ var DialogInputFile = (_a8) => {
|
|
15653
15757
|
}
|
15654
15758
|
)
|
15655
15759
|
),
|
15656
|
-
/* @__PURE__ */
|
15760
|
+
/* @__PURE__ */ React46.createElement(Flex, { direction: "row" }, /* @__PURE__ */ React46.createElement(
|
15657
15761
|
Input,
|
15658
15762
|
__spreadValues({
|
15659
15763
|
ref: inputRef,
|
@@ -15665,7 +15769,7 @@ var DialogInputFile = (_a8) => {
|
|
15665
15769
|
type,
|
15666
15770
|
hidden: true
|
15667
15771
|
}, props)
|
15668
|
-
), /* @__PURE__ */
|
15772
|
+
), /* @__PURE__ */ React46.createElement(
|
15669
15773
|
IconButton,
|
15670
15774
|
{
|
15671
15775
|
variant: "standard",
|
@@ -15679,7 +15783,7 @@ var DialogInputFile = (_a8) => {
|
|
15679
15783
|
}
|
15680
15784
|
}
|
15681
15785
|
},
|
15682
|
-
/* @__PURE__ */
|
15786
|
+
/* @__PURE__ */ React46.createElement(Text, { variant: "md" }, placeholder)
|
15683
15787
|
))
|
15684
15788
|
);
|
15685
15789
|
};
|
@@ -15706,7 +15810,7 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
|
|
15706
15810
|
},
|
15707
15811
|
[resolution]
|
15708
15812
|
);
|
15709
|
-
return /* @__PURE__ */
|
15813
|
+
return /* @__PURE__ */ React47.createElement(DialogRow, { breakSm: true, css: css2 }, /* @__PURE__ */ React47.createElement(Flex, { gap: 1 }, /* @__PURE__ */ React47.createElement(Label3, { css: { mb: "$8" } }, "Resolution"), tooltipText && /* @__PURE__ */ React47.createElement(Tooltip, { title: tooltipText }, /* @__PURE__ */ React47.createElement("div", null, /* @__PURE__ */ React47.createElement(InfoIcon, { color: "#B0C3DB" })))), /* @__PURE__ */ React47.createElement(
|
15710
15814
|
Flex,
|
15711
15815
|
{
|
15712
15816
|
justify: "between",
|
@@ -15714,7 +15818,7 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
|
|
15714
15818
|
gap: 2,
|
15715
15819
|
direction: "column"
|
15716
15820
|
},
|
15717
|
-
/* @__PURE__ */
|
15821
|
+
/* @__PURE__ */ React47.createElement(Flex, { justify: "between", gap: 2 }, /* @__PURE__ */ React47.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ React47.createElement(Text, { variant: "xs" }, "Width"), /* @__PURE__ */ React47.createElement(
|
15718
15822
|
Input,
|
15719
15823
|
{
|
15720
15824
|
"data-testid": `${testId}_width`,
|
@@ -15728,7 +15832,7 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
|
|
15728
15832
|
onBlur: () => onResolutionChange(resolution),
|
15729
15833
|
type: "number"
|
15730
15834
|
}
|
15731
|
-
)), /* @__PURE__ */
|
15835
|
+
)), /* @__PURE__ */ React47.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ React47.createElement(Text, { variant: "xs" }, "Height"), /* @__PURE__ */ React47.createElement(
|
15732
15836
|
Input,
|
15733
15837
|
{
|
15734
15838
|
"data-testid": `${testId}_height`,
|
@@ -15757,7 +15861,7 @@ var StartRecording = ({ open, onOpenChange }) => {
|
|
15757
15861
|
return null;
|
15758
15862
|
}
|
15759
15863
|
if (isBrowserRecordingOn) {
|
15760
|
-
return /* @__PURE__ */
|
15864
|
+
return /* @__PURE__ */ React48.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React48.createElement(Dialog.Portal, null, /* @__PURE__ */ React48.createElement(
|
15761
15865
|
Dialog.Content,
|
15762
15866
|
{
|
15763
15867
|
css: {
|
@@ -15766,9 +15870,9 @@ var StartRecording = ({ open, onOpenChange }) => {
|
|
15766
15870
|
bg: "#201617"
|
15767
15871
|
}
|
15768
15872
|
},
|
15769
|
-
/* @__PURE__ */
|
15770
|
-
/* @__PURE__ */
|
15771
|
-
/* @__PURE__ */
|
15873
|
+
/* @__PURE__ */ React48.createElement(Dialog.Title, null, /* @__PURE__ */ React48.createElement(Flex, { gap: 2, css: { c: "$alert_error_default" } }, /* @__PURE__ */ React48.createElement(AlertTriangleIcon3, null), /* @__PURE__ */ React48.createElement(Text, { css: { c: "inherit" }, variant: "h6" }, "End Recording"))),
|
15874
|
+
/* @__PURE__ */ React48.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium", my: "$8" } }, "Are you sure you want to end recording? You can\u2019t undo this action."),
|
15875
|
+
/* @__PURE__ */ React48.createElement(Flex, { justify: "end", css: { mt: "$12" } }, /* @__PURE__ */ React48.createElement(Dialog.Close, { asChild: true }, /* @__PURE__ */ React48.createElement(Button, { outlined: true, css: { borderColor: "$secondary_bright", mr: "$4" } }, "Don't end")), /* @__PURE__ */ React48.createElement(
|
15772
15876
|
Button,
|
15773
15877
|
{
|
15774
15878
|
"data-testid": "stop_recording_confirm_mobile",
|
@@ -15790,14 +15894,14 @@ var StartRecording = ({ open, onOpenChange }) => {
|
|
15790
15894
|
))
|
15791
15895
|
)));
|
15792
15896
|
}
|
15793
|
-
return /* @__PURE__ */
|
15897
|
+
return /* @__PURE__ */ React48.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React48.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React48.createElement(Dialog.Title, null, /* @__PURE__ */ React48.createElement(Text, { variant: "h6" }, "Start Recording")), /* @__PURE__ */ React48.createElement(
|
15794
15898
|
ResolutionInput,
|
15795
15899
|
{
|
15796
15900
|
testId: "recording_resolution_mobile",
|
15797
15901
|
css: { flexDirection: "column", alignItems: "start" },
|
15798
15902
|
onResolutionChange: setResolution
|
15799
15903
|
}
|
15800
|
-
), /* @__PURE__ */
|
15904
|
+
), /* @__PURE__ */ React48.createElement(
|
15801
15905
|
Button,
|
15802
15906
|
{
|
15803
15907
|
"data-testid": "start_recording_confirm_mobile",
|
@@ -15818,7 +15922,7 @@ var StartRecording_default = StartRecording;
|
|
15818
15922
|
|
15819
15923
|
// src/Prebuilt/components/StatsForNerds.jsx
|
15820
15924
|
init_define_process_env();
|
15821
|
-
import
|
15925
|
+
import React49, { useEffect as useEffect14, useMemo as useMemo6, useRef as useRef13, useState as useState19 } from "react";
|
15822
15926
|
import { match as match3, P as P2 } from "ts-pattern";
|
15823
15927
|
import {
|
15824
15928
|
selectHMSStats as selectHMSStats3,
|
@@ -15845,7 +15949,7 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
15845
15949
|
setSelectedStat("local-peer");
|
15846
15950
|
}
|
15847
15951
|
}, [tracksWithLabels, selectedStat]);
|
15848
|
-
return /* @__PURE__ */
|
15952
|
+
return /* @__PURE__ */ React49.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React49.createElement(Dialog.Portal, null, /* @__PURE__ */ React49.createElement(Dialog.Overlay, null), /* @__PURE__ */ React49.createElement(
|
15849
15953
|
Dialog.Content,
|
15850
15954
|
{
|
15851
15955
|
css: {
|
@@ -15854,10 +15958,10 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
15854
15958
|
overflowY: "auto"
|
15855
15959
|
}
|
15856
15960
|
},
|
15857
|
-
/* @__PURE__ */
|
15858
|
-
/* @__PURE__ */
|
15859
|
-
/* @__PURE__ */
|
15860
|
-
/* @__PURE__ */
|
15961
|
+
/* @__PURE__ */ React49.createElement(Dialog.Title, { css: { p: "$4 0" } }, /* @__PURE__ */ React49.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React49.createElement(Flex, { align: "center", css: { mb: "$1" } }, /* @__PURE__ */ React49.createElement(Text, { variant: "h6", inline: true }, "Stats For Nerds")), /* @__PURE__ */ React49.createElement(Dialog.DefaultClose, { "data-testid": "stats_dialog_close_icon" }))),
|
15962
|
+
/* @__PURE__ */ React49.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }),
|
15963
|
+
/* @__PURE__ */ React49.createElement(Flex, { justify: "start", gap: 4, css: { m: "$10 0" } }, /* @__PURE__ */ React49.createElement(Switch, { checked: showStatsOnTiles, onCheckedChange: setShowStatsOnTiles }), /* @__PURE__ */ React49.createElement(Text, { variant: "body2", css: { fontWeight: "$semiBold" } }, "Show Stats on Tiles")),
|
15964
|
+
/* @__PURE__ */ React49.createElement(
|
15861
15965
|
Flex,
|
15862
15966
|
{
|
15863
15967
|
direction: "column",
|
@@ -15867,8 +15971,8 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
15867
15971
|
minWidth: 0
|
15868
15972
|
}
|
15869
15973
|
},
|
15870
|
-
/* @__PURE__ */
|
15871
|
-
/* @__PURE__ */
|
15974
|
+
/* @__PURE__ */ React49.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Stats For"),
|
15975
|
+
/* @__PURE__ */ React49.createElement(Dropdown.Root, { "data-testid": "dialog_select_Stats For", open, onOpenChange: setOpen }, /* @__PURE__ */ React49.createElement(
|
15872
15976
|
DialogDropdownTrigger,
|
15873
15977
|
{
|
15874
15978
|
title: selectedStat.label || "Select Stats",
|
@@ -15877,9 +15981,9 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
15877
15981
|
open,
|
15878
15982
|
ref
|
15879
15983
|
}
|
15880
|
-
), /* @__PURE__ */
|
15984
|
+
), /* @__PURE__ */ React49.createElement(Dropdown.Portal, null, /* @__PURE__ */ React49.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
|
15881
15985
|
const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
|
15882
|
-
return /* @__PURE__ */
|
15986
|
+
return /* @__PURE__ */ React49.createElement(
|
15883
15987
|
Dropdown.Item,
|
15884
15988
|
{
|
15885
15989
|
key: `${option.id}-${option.layer || ""}`,
|
@@ -15896,7 +16000,7 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
15896
16000
|
);
|
15897
16001
|
}))))
|
15898
16002
|
),
|
15899
|
-
selectedStat.id === "local-peer" ? /* @__PURE__ */
|
16003
|
+
selectedStat.id === "local-peer" ? /* @__PURE__ */ React49.createElement(LocalPeerStats, null) : /* @__PURE__ */ React49.createElement(TrackStats, { trackID: selectedStat.id, layer: selectedStat.layer, local: selectedStat.local })
|
15900
16004
|
)));
|
15901
16005
|
};
|
15902
16006
|
var useTracksWithLabel = () => {
|
@@ -15938,13 +16042,13 @@ var LocalPeerStats = () => {
|
|
15938
16042
|
if (!stats) {
|
15939
16043
|
return null;
|
15940
16044
|
}
|
15941
|
-
return /* @__PURE__ */
|
16045
|
+
return /* @__PURE__ */ React49.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Packets Lost", value: (_a8 = stats.subscribe) == null ? void 0 : _a8.packetsLost }), /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes2((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes2((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ React49.createElement(
|
15942
16046
|
StatsRow2,
|
15943
16047
|
{
|
15944
16048
|
label: "Available Outgoing Bitrate",
|
15945
16049
|
value: formatBytes2((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
|
15946
16050
|
}
|
15947
|
-
), /* @__PURE__ */
|
16051
|
+
), /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes2((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes2((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ React49.createElement(
|
15948
16052
|
StatsRow2,
|
15949
16053
|
{
|
15950
16054
|
label: "Round Trip Time",
|
@@ -15965,13 +16069,13 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
15965
16069
|
return null;
|
15966
16070
|
}
|
15967
16071
|
const inbound = stats.type.includes("inbound");
|
15968
|
-
return /* @__PURE__ */
|
16072
|
+
return /* @__PURE__ */ React49.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Bitrate", value: formatBytes2(stats.bitrate, "b/s") }), /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Jitter", value: (_a8 = stats.jitter) == null ? void 0 : _a8.toFixed(3) }), /* @__PURE__ */ React49.createElement(
|
15969
16073
|
StatsRow2,
|
15970
16074
|
{
|
15971
16075
|
label: inbound ? "Bytes Received" : "Bytes Sent",
|
15972
16076
|
value: formatBytes2(inbound ? stats.bytesReceived : stats.bytesSent)
|
15973
16077
|
}
|
15974
|
-
), stats.kind === "video" && /* @__PURE__ */
|
16078
|
+
), stats.kind === "video" && /* @__PURE__ */ React49.createElement(React49.Fragment, null, /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Framerate", value: stats.framesPerSecond }), !inbound && /* @__PURE__ */ React49.createElement(StatsRow2, { label: "Quality Limitation Reason", value: stats.qualityLimitationReason })), /* @__PURE__ */ React49.createElement(
|
15975
16079
|
StatsRow2,
|
15976
16080
|
{
|
15977
16081
|
label: "Round Trip Time",
|
@@ -15979,7 +16083,7 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
15979
16083
|
}
|
15980
16084
|
));
|
15981
16085
|
};
|
15982
|
-
var StatsRow2 =
|
16086
|
+
var StatsRow2 = React49.memo(({ label, value }) => /* @__PURE__ */ React49.createElement(Box, { css: { bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" } }, /* @__PURE__ */ React49.createElement(
|
15983
16087
|
Text,
|
15984
16088
|
{
|
15985
16089
|
variant: "overline",
|
@@ -15990,7 +16094,7 @@ var StatsRow2 = React48.memo(({ label, value }) => /* @__PURE__ */ React48.creat
|
|
15990
16094
|
}
|
15991
16095
|
},
|
15992
16096
|
label
|
15993
|
-
), /* @__PURE__ */
|
16097
|
+
), /* @__PURE__ */ React49.createElement(Text, { variant: "sub1", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, value || "-")));
|
15994
16098
|
var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
15995
16099
|
if (bytes === void 0)
|
15996
16100
|
return "-";
|
@@ -16005,7 +16109,7 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
|
16005
16109
|
|
16006
16110
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
16007
16111
|
init_define_process_env();
|
16008
|
-
import
|
16112
|
+
import React50, { useCallback as useCallback11, useRef as useRef14, useState as useState20 } from "react";
|
16009
16113
|
import { useHMSActions as useHMSActions13 } from "@100mslive/react-sdk";
|
16010
16114
|
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
|
16011
16115
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
@@ -16034,7 +16138,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
16034
16138
|
}
|
16035
16139
|
}
|
16036
16140
|
}), [selectedBulkRole, selectedRole, hmsActions, onOpenChange]);
|
16037
|
-
return /* @__PURE__ */
|
16141
|
+
return /* @__PURE__ */ React50.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React50.createElement(DialogContent, { title: "Bulk Role Change", Icon: ChangeRoleIcon }, /* @__PURE__ */ React50.createElement(DialogRow, null, /* @__PURE__ */ React50.createElement(Text, null, "For Roles: "), /* @__PURE__ */ React50.createElement(
|
16038
16142
|
Dropdown.Root,
|
16039
16143
|
{
|
16040
16144
|
open: bulkRoleDialog,
|
@@ -16045,7 +16149,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
16045
16149
|
},
|
16046
16150
|
modal: false
|
16047
16151
|
},
|
16048
|
-
/* @__PURE__ */
|
16152
|
+
/* @__PURE__ */ React50.createElement(
|
16049
16153
|
DialogDropdownTrigger,
|
16050
16154
|
{
|
16051
16155
|
ref,
|
@@ -16057,7 +16161,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
16057
16161
|
open: bulkRoleDialog
|
16058
16162
|
}
|
16059
16163
|
),
|
16060
|
-
/* @__PURE__ */
|
16164
|
+
/* @__PURE__ */ React50.createElement(
|
16061
16165
|
Dropdown.Content,
|
16062
16166
|
{
|
16063
16167
|
css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
|
@@ -16068,7 +16172,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
16068
16172
|
}
|
16069
16173
|
},
|
16070
16174
|
roles && roles.map((role) => {
|
16071
|
-
return /* @__PURE__ */
|
16175
|
+
return /* @__PURE__ */ React50.createElement(
|
16072
16176
|
Dropdown.CheckboxItem,
|
16073
16177
|
{
|
16074
16178
|
key: role,
|
@@ -16080,12 +16184,12 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
16080
16184
|
setErrorMessage("");
|
16081
16185
|
}
|
16082
16186
|
},
|
16083
|
-
/* @__PURE__ */
|
16187
|
+
/* @__PURE__ */ React50.createElement(Checkbox.Root, { css: { margin: "$2" }, checked: selectedBulkRole.includes(role) }, /* @__PURE__ */ React50.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React50.createElement(CheckIcon3, { width: 16, height: 16 }))),
|
16084
16188
|
role
|
16085
16189
|
);
|
16086
16190
|
})
|
16087
16191
|
)
|
16088
|
-
)), /* @__PURE__ */
|
16192
|
+
)), /* @__PURE__ */ React50.createElement(DialogRow, null, /* @__PURE__ */ React50.createElement(Text, null, "To Role: "), /* @__PURE__ */ React50.createElement(Dropdown.Root, { open: roleDialog, onOpenChange: (value) => setRoleDialog(value) }, /* @__PURE__ */ React50.createElement(
|
16089
16193
|
DialogDropdownTrigger,
|
16090
16194
|
{
|
16091
16195
|
ref: roleRef,
|
@@ -16096,8 +16200,8 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
16096
16200
|
},
|
16097
16201
|
open: roleDialog
|
16098
16202
|
}
|
16099
|
-
), /* @__PURE__ */
|
16100
|
-
return /* @__PURE__ */
|
16203
|
+
), /* @__PURE__ */ React50.createElement(Dropdown.Content, { css: { w: (_b7 = roleRef.current) == null ? void 0 : _b7.clientWidth, zIndex: 1e3 } }, roles && roles.map((role) => {
|
16204
|
+
return /* @__PURE__ */ React50.createElement(
|
16101
16205
|
Dropdown.Item,
|
16102
16206
|
{
|
16103
16207
|
key: role,
|
@@ -16108,17 +16212,17 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
16108
16212
|
},
|
16109
16213
|
role
|
16110
16214
|
);
|
16111
|
-
})))), /* @__PURE__ */
|
16215
|
+
})))), /* @__PURE__ */ React50.createElement(DialogRow, null, errorMessage && /* @__PURE__ */ React50.createElement(Flex, { gap: 2, css: { c: "$alert_error_default", w: "70%", ml: "auto" } }, /* @__PURE__ */ React50.createElement(AlertTriangleIcon4, null), /* @__PURE__ */ React50.createElement(Text, { css: { c: "inherit" } }, errorMessage))), /* @__PURE__ */ React50.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React50.createElement(Button, { variant: "primary", onClick: changeBulkRole, disabled: !(selectedRole && selectedBulkRole.length > 0) }, isSubmiting && /* @__PURE__ */ React50.createElement(Loading, { css: { color: "$on_primary_medium" } }), "Apply"))));
|
16112
16216
|
};
|
16113
16217
|
|
16114
16218
|
// src/Prebuilt/components/MoreSettings/CaptionModal.tsx
|
16115
16219
|
init_define_process_env();
|
16116
|
-
import
|
16220
|
+
import React52 from "react";
|
16117
16221
|
import { useMedia as useMedia7 } from "react-use";
|
16118
16222
|
|
16119
16223
|
// src/Prebuilt/components/MoreSettings/CaptionContent.tsx
|
16120
16224
|
init_define_process_env();
|
16121
|
-
import
|
16225
|
+
import React51 from "react";
|
16122
16226
|
import { HMSTranscriptionMode, selectIsTranscriptionEnabled as selectIsTranscriptionEnabled2, useHMSActions as useHMSActions14, useHMSStore as useHMSStore18 } from "@100mslive/react-sdk";
|
16123
16227
|
import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as CrossIcon9 } from "@100mslive/react-icons";
|
16124
16228
|
var CaptionContent = ({ isMobile, onExit }) => {
|
@@ -16127,7 +16231,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
16127
16231
|
const isTranscriptionEnabled = useHMSStore18(selectIsTranscriptionEnabled2);
|
16128
16232
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
16129
16233
|
const [isCaptionEnabled, setIsCaptionEnabled] = useSetIsCaptionEnabled();
|
16130
|
-
return /* @__PURE__ */
|
16234
|
+
return /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(
|
16131
16235
|
Text,
|
16132
16236
|
{
|
16133
16237
|
variant: isMobile ? "md" : "lg",
|
@@ -16140,15 +16244,15 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
16140
16244
|
},
|
16141
16245
|
isTranscriptionEnabled ? "Disable" : "Enable",
|
16142
16246
|
" Closed Caption (CC) for this session?",
|
16143
|
-
/* @__PURE__ */
|
16247
|
+
/* @__PURE__ */ React51.createElement(
|
16144
16248
|
Box,
|
16145
16249
|
{
|
16146
16250
|
css: { color: "inherit", ml: "auto", "&:hover": { color: "$on_surface_medium", cursor: "pointer" } },
|
16147
16251
|
onClick: onExit
|
16148
16252
|
},
|
16149
|
-
/* @__PURE__ */
|
16253
|
+
/* @__PURE__ */ React51.createElement(CrossIcon9, null)
|
16150
16254
|
)
|
16151
|
-
), !isMobile ? /* @__PURE__ */
|
16255
|
+
), !isMobile ? /* @__PURE__ */ React51.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mt: "$4", "@md": { px: "$8" } } }, "This will ", isTranscriptionEnabled ? "disable" : "enable", " Closed Captions for everyone in this room. You can\xA0", isTranscriptionEnabled ? "enable" : "disable", " it later.") : null, /* @__PURE__ */ React51.createElement(
|
16152
16256
|
Flex,
|
16153
16257
|
{
|
16154
16258
|
justify: "between",
|
@@ -16160,8 +16264,8 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
16160
16264
|
"@md": { px: "$4" }
|
16161
16265
|
}
|
16162
16266
|
},
|
16163
|
-
isMobile ? null : /* @__PURE__ */
|
16164
|
-
/* @__PURE__ */
|
16267
|
+
isMobile ? null : /* @__PURE__ */ React51.createElement(Button, { variant: "standard", css: { w: "100%" }, outlined: true, onClick: onExit }, "Cancel"),
|
16268
|
+
/* @__PURE__ */ React51.createElement(
|
16165
16269
|
Flex,
|
16166
16270
|
{
|
16167
16271
|
direction: "column",
|
@@ -16172,7 +16276,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
16172
16276
|
"@md": { px: "$4" }
|
16173
16277
|
}
|
16174
16278
|
},
|
16175
|
-
isMobile && isTranscriptionEnabled ? /* @__PURE__ */
|
16279
|
+
isMobile && isTranscriptionEnabled ? /* @__PURE__ */ React51.createElement(
|
16176
16280
|
Button,
|
16177
16281
|
{
|
16178
16282
|
variant: "standard",
|
@@ -16185,7 +16289,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
16185
16289
|
},
|
16186
16290
|
isCaptionEnabled ? "Hide For Me" : "Show For Me"
|
16187
16291
|
) : null,
|
16188
|
-
/* @__PURE__ */
|
16292
|
+
/* @__PURE__ */ React51.createElement(
|
16189
16293
|
Button,
|
16190
16294
|
{
|
16191
16295
|
variant: isTranscriptionEnabled ? "danger" : "primary",
|
@@ -16202,7 +16306,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
16202
16306
|
title: `Disabling Closed Caption for everyone.`,
|
16203
16307
|
variant: "standard",
|
16204
16308
|
duration: DURATION,
|
16205
|
-
icon: /* @__PURE__ */
|
16309
|
+
icon: /* @__PURE__ */ React51.createElement(Loading, { color: "currentColor" })
|
16206
16310
|
});
|
16207
16311
|
setToastId(id2);
|
16208
16312
|
onExit();
|
@@ -16215,14 +16319,14 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
16215
16319
|
title: `Enabling Closed Caption for everyone.`,
|
16216
16320
|
variant: "standard",
|
16217
16321
|
duration: DURATION,
|
16218
|
-
icon: /* @__PURE__ */
|
16322
|
+
icon: /* @__PURE__ */ React51.createElement(Loading, { color: "currentColor" })
|
16219
16323
|
});
|
16220
16324
|
setToastId(id);
|
16221
16325
|
} catch (err) {
|
16222
16326
|
const id = ToastManager.replaceToast(toastId, {
|
16223
16327
|
title: `Failed to ${isTranscriptionEnabled ? "disable" : "enable"} closed caption`,
|
16224
16328
|
variant: "error",
|
16225
|
-
icon: /* @__PURE__ */
|
16329
|
+
icon: /* @__PURE__ */ React51.createElement(AlertTriangleIcon5, { style: { marginRight: "0.5rem" } })
|
16226
16330
|
});
|
16227
16331
|
setToastId(id);
|
16228
16332
|
} finally {
|
@@ -16235,7 +16339,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
16235
16339
|
" for Everyone"
|
16236
16340
|
)
|
16237
16341
|
)
|
16238
|
-
), isMobile && /* @__PURE__ */
|
16342
|
+
), isMobile && /* @__PURE__ */ React51.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", pb: "$4", mb: "$8", "@md": { px: "$8", mt: "$4" } } }, "This will ", isTranscriptionEnabled ? "disable" : "enable", " Closed Captions for everyone in this room. You can\xA0", isTranscriptionEnabled ? "enable" : "disable", " it later."));
|
16239
16343
|
};
|
16240
16344
|
|
16241
16345
|
// src/Prebuilt/components/MoreSettings/CaptionModal.tsx
|
@@ -16248,14 +16352,14 @@ var CaptionModal = ({ onOpenChange }) => {
|
|
16248
16352
|
}
|
16249
16353
|
};
|
16250
16354
|
if (isMobile) {
|
16251
|
-
return /* @__PURE__ */
|
16355
|
+
return /* @__PURE__ */ React52.createElement(Sheet.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React52.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$8 0" } }, /* @__PURE__ */ React52.createElement(CaptionContent, __spreadValues({}, props))));
|
16252
16356
|
}
|
16253
|
-
return /* @__PURE__ */
|
16357
|
+
return /* @__PURE__ */ React52.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React52.createElement(Dialog.Portal, null, /* @__PURE__ */ React52.createElement(Dialog.Overlay, null), /* @__PURE__ */ React52.createElement(Dialog.Content, { css: { bg: "$surface_dim", width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React52.createElement(CaptionContent, __spreadValues({}, props)))));
|
16254
16358
|
};
|
16255
16359
|
|
16256
16360
|
// src/Prebuilt/components/MoreSettings/FullScreenItem.tsx
|
16257
16361
|
init_define_process_env();
|
16258
|
-
import
|
16362
|
+
import React53 from "react";
|
16259
16363
|
import { ExpandIcon } from "@100mslive/react-icons";
|
16260
16364
|
|
16261
16365
|
// src/Prebuilt/components/hooks/useFullscreen.ts
|
@@ -16306,7 +16410,7 @@ var FullScreenItem = () => {
|
|
16306
16410
|
if (!allowed) {
|
16307
16411
|
return null;
|
16308
16412
|
}
|
16309
|
-
return /* @__PURE__ */
|
16413
|
+
return /* @__PURE__ */ React53.createElement(
|
16310
16414
|
Dropdown.Item,
|
16311
16415
|
{
|
16312
16416
|
onClick: () => {
|
@@ -16314,14 +16418,14 @@ var FullScreenItem = () => {
|
|
16314
16418
|
},
|
16315
16419
|
"data-testid": "full_screen_btn"
|
16316
16420
|
},
|
16317
|
-
/* @__PURE__ */
|
16318
|
-
/* @__PURE__ */
|
16421
|
+
/* @__PURE__ */ React53.createElement(ExpandIcon, null),
|
16422
|
+
/* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4" } }, isFullscreen ? "Exit " : "Go ", "Fullscreen")
|
16319
16423
|
);
|
16320
16424
|
};
|
16321
16425
|
|
16322
16426
|
// src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
|
16323
16427
|
init_define_process_env();
|
16324
|
-
import
|
16428
|
+
import React55, { useCallback as useCallback13, useState as useState22 } from "react";
|
16325
16429
|
import {
|
16326
16430
|
selectAvailableRoleNames as selectAvailableRoleNames4,
|
16327
16431
|
useHMSActions as useHMSActions15,
|
@@ -16331,7 +16435,7 @@ import { MicOffIcon as MicOffIcon2 } from "@100mslive/react-icons";
|
|
16331
16435
|
|
16332
16436
|
// src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
|
16333
16437
|
init_define_process_env();
|
16334
|
-
import
|
16438
|
+
import React54 from "react";
|
16335
16439
|
import { selectPermissions as selectPermissions6, useHMSStore as useHMSStore19 } from "@100mslive/react-sdk";
|
16336
16440
|
|
16337
16441
|
// src/Prebuilt/components/MoreSettings/constants.ts
|
@@ -16353,7 +16457,7 @@ var trackTypeOptions = [
|
|
16353
16457
|
var MuteAllContent = (props) => {
|
16354
16458
|
const roles = props.roles || [];
|
16355
16459
|
const permissions = useHMSStore19(selectPermissions6);
|
16356
|
-
return /* @__PURE__ */
|
16460
|
+
return /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(
|
16357
16461
|
DialogSelect,
|
16358
16462
|
{
|
16359
16463
|
title: "Role",
|
@@ -16363,7 +16467,7 @@ var MuteAllContent = (props) => {
|
|
16363
16467
|
labelField: "label",
|
16364
16468
|
onChange: props.setRole
|
16365
16469
|
}
|
16366
|
-
), /* @__PURE__ */
|
16470
|
+
), /* @__PURE__ */ React54.createElement(
|
16367
16471
|
DialogSelect,
|
16368
16472
|
{
|
16369
16473
|
title: "Track type",
|
@@ -16373,7 +16477,7 @@ var MuteAllContent = (props) => {
|
|
16373
16477
|
keyField: "value",
|
16374
16478
|
labelField: "label"
|
16375
16479
|
}
|
16376
|
-
), /* @__PURE__ */
|
16480
|
+
), /* @__PURE__ */ React54.createElement(
|
16377
16481
|
DialogSelect,
|
16378
16482
|
{
|
16379
16483
|
title: "Track source",
|
@@ -16383,7 +16487,7 @@ var MuteAllContent = (props) => {
|
|
16383
16487
|
keyField: "value",
|
16384
16488
|
labelField: "label"
|
16385
16489
|
}
|
16386
|
-
), /* @__PURE__ */
|
16490
|
+
), /* @__PURE__ */ React54.createElement(DialogRow, null, /* @__PURE__ */ React54.createElement(Text, { variant: "md" }, "Track status"), /* @__PURE__ */ React54.createElement(RadioGroup.Root, { value: String(props.enabled), onValueChange: (value) => props.setEnabled(value === "true") }, (permissions == null ? void 0 : permissions.mute) && /* @__PURE__ */ React54.createElement(Flex, { align: "center", css: { mr: "$8" } }, /* @__PURE__ */ React54.createElement(RadioGroup.Item, { value: "false", id: "trackDisableRadio", css: { mr: "$4" } }, /* @__PURE__ */ React54.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ React54.createElement(Label3, { htmlFor: "trackDisableRadio" }, "Mute")), (permissions == null ? void 0 : permissions.unmute) && /* @__PURE__ */ React54.createElement(Flex, { align: "center", css: { cursor: "pointer" } }, /* @__PURE__ */ React54.createElement(RadioGroup.Item, { value: "true", id: "trackEnableRadio", css: { mr: "$4" } }, /* @__PURE__ */ React54.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ React54.createElement(Label3, { htmlFor: "trackEnableRadio" }, "Request Unmute")))), /* @__PURE__ */ React54.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React54.createElement(Button, { variant: "primary", onClick: props.muteAll, css: { w: (props == null ? void 0 : props.isMobile) ? "100%" : "" } }, "Apply")));
|
16387
16491
|
};
|
16388
16492
|
|
16389
16493
|
// src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
|
@@ -16420,9 +16524,9 @@ var MuteAllModal = ({
|
|
16420
16524
|
isMobile
|
16421
16525
|
};
|
16422
16526
|
if (isMobile) {
|
16423
|
-
return /* @__PURE__ */
|
16527
|
+
return /* @__PURE__ */ React55.createElement(Sheet.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React55.createElement(Sheet.Content, { css: { px: "$10" } }, /* @__PURE__ */ React55.createElement(MuteAllContent, __spreadValues({}, props))));
|
16424
16528
|
}
|
16425
|
-
return /* @__PURE__ */
|
16529
|
+
return /* @__PURE__ */ React55.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React55.createElement(DialogContent, { title: "Mute/Unmute Remote Tracks", Icon: MicOffIcon2 }, /* @__PURE__ */ React55.createElement(MuteAllContent, __spreadValues({}, props))));
|
16426
16530
|
};
|
16427
16531
|
|
16428
16532
|
// src/Prebuilt/components/hooks/useMetadata.tsx
|
@@ -16516,15 +16620,15 @@ var DesktopOptions = ({
|
|
16516
16620
|
return copy;
|
16517
16621
|
});
|
16518
16622
|
};
|
16519
|
-
return /* @__PURE__ */
|
16623
|
+
return /* @__PURE__ */ React56.createElement(Fragment6, null, /* @__PURE__ */ React56.createElement(
|
16520
16624
|
Dropdown.Root,
|
16521
16625
|
{
|
16522
16626
|
open: openModals.has(MODALS.MORE_SETTINGS),
|
16523
16627
|
onOpenChange: (value) => updateState(MODALS.MORE_SETTINGS, value),
|
16524
16628
|
modal: false
|
16525
16629
|
},
|
16526
|
-
/* @__PURE__ */
|
16527
|
-
/* @__PURE__ */
|
16630
|
+
/* @__PURE__ */ React56.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ React56.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ React56.createElement(IconButton_default, null, /* @__PURE__ */ React56.createElement(HamburgerMenuIcon, null)))),
|
16631
|
+
/* @__PURE__ */ React56.createElement(
|
16528
16632
|
Dropdown.Content,
|
16529
16633
|
{
|
16530
16634
|
sideOffset: 5,
|
@@ -16538,8 +16642,8 @@ var DesktopOptions = ({
|
|
16538
16642
|
}
|
16539
16643
|
}
|
16540
16644
|
},
|
16541
|
-
isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */
|
16542
|
-
isTranscriptionAllowed ? /* @__PURE__ */
|
16645
|
+
isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ React56.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ React56.createElement(BrbIcon, null), /* @__PURE__ */ React56.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ React56.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ React56.createElement(CheckIcon4, null) : null)) : null,
|
16646
|
+
isTranscriptionAllowed ? /* @__PURE__ */ React56.createElement(
|
16543
16647
|
Dropdown.Item,
|
16544
16648
|
{
|
16545
16649
|
"data-testid": "closed_caption_admin",
|
@@ -16547,61 +16651,61 @@ var DesktopOptions = ({
|
|
16547
16651
|
updateState(MODALS.CAPTION, true);
|
16548
16652
|
}
|
16549
16653
|
},
|
16550
|
-
/* @__PURE__ */
|
16551
|
-
/* @__PURE__ */
|
16552
|
-
/* @__PURE__ */
|
16654
|
+
/* @__PURE__ */ React56.createElement(OpenCaptionIcon2, null),
|
16655
|
+
/* @__PURE__ */ React56.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React56.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Closed Captions"), /* @__PURE__ */ React56.createElement(Text, { variant: "caption", css: { ml: "$4", color: "$on_surface_medium" } }, isTranscriptionEnabled ? "Enabled" : "Disabled")),
|
16656
|
+
/* @__PURE__ */ React56.createElement(Switch, { id: "closed_caption_start_stop", checked: isTranscriptionEnabled, disabled: false })
|
16553
16657
|
) : null,
|
16554
|
-
screenType !== "hls_live_streaming" ? /* @__PURE__ */
|
16658
|
+
screenType !== "hls_live_streaming" ? /* @__PURE__ */ React56.createElement(Dropdown.Item, { css: { p: 0, "&:empty": { display: "none" } } }, /* @__PURE__ */ React56.createElement(
|
16555
16659
|
PIP,
|
16556
16660
|
{
|
16557
|
-
content: /* @__PURE__ */
|
16661
|
+
content: /* @__PURE__ */ React56.createElement(Flex, { css: { w: "100%", h: "100%", p: "$8" } }, /* @__PURE__ */ React56.createElement(PipIcon2, null), /* @__PURE__ */ React56.createElement(Text, { variant: "sm", css: { ml: "$4" } }, isPipOn ? "Disable" : "Enable", " Picture-in-Picture"))
|
16558
16662
|
}
|
16559
16663
|
)) : null,
|
16560
|
-
/* @__PURE__ */
|
16561
|
-
/* @__PURE__ */
|
16562
|
-
/* @__PURE__ */
|
16664
|
+
/* @__PURE__ */ React56.createElement(FullScreenItem, null),
|
16665
|
+
/* @__PURE__ */ React56.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }),
|
16666
|
+
/* @__PURE__ */ React56.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.DEVICE_SETTINGS, true), "data-testid": "device_settings_btn" }, /* @__PURE__ */ React56.createElement(SettingsIcon3, null), /* @__PURE__ */ React56.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Settings")),
|
16563
16667
|
match4({ screenType, isSupported: HMSHLSPlayer.isSupported() }).with({ screenType: "hls_live_streaming", isSupported: false }, () => null).with({ screenType: "hls_live_streaming", isSupported: true }, () => {
|
16564
|
-
return /* @__PURE__ */
|
16668
|
+
return /* @__PURE__ */ React56.createElement(
|
16565
16669
|
Dropdown.Item,
|
16566
16670
|
{
|
16567
16671
|
onClick: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats),
|
16568
16672
|
"data-testid": "hls_stats"
|
16569
16673
|
},
|
16570
|
-
/* @__PURE__ */
|
16674
|
+
/* @__PURE__ */ React56.createElement(
|
16571
16675
|
Checkbox.Root,
|
16572
16676
|
{
|
16573
16677
|
css: { margin: "$2" },
|
16574
16678
|
checked: enablHlsStats,
|
16575
16679
|
onCheckedChange: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats)
|
16576
16680
|
},
|
16577
|
-
/* @__PURE__ */
|
16681
|
+
/* @__PURE__ */ React56.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React56.createElement(CheckIcon4, { width: 16, height: 16 }))
|
16578
16682
|
),
|
16579
|
-
/* @__PURE__ */
|
16683
|
+
/* @__PURE__ */ React56.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React56.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ React56.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`))
|
16580
16684
|
);
|
16581
|
-
}).otherwise(() => /* @__PURE__ */
|
16685
|
+
}).otherwise(() => /* @__PURE__ */ React56.createElement(
|
16582
16686
|
Dropdown.Item,
|
16583
16687
|
{
|
16584
16688
|
onClick: () => updateState(MODALS.STATS_FOR_NERDS, true),
|
16585
16689
|
"data-testid": "stats_for_nerds_btn"
|
16586
16690
|
},
|
16587
|
-
/* @__PURE__ */
|
16588
|
-
/* @__PURE__ */
|
16691
|
+
/* @__PURE__ */ React56.createElement(InfoIcon2, null),
|
16692
|
+
/* @__PURE__ */ React56.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Stats for Nerds")
|
16589
16693
|
))
|
16590
16694
|
)
|
16591
|
-
), openModals.has(MODALS.BULK_ROLE_CHANGE) && /* @__PURE__ */
|
16695
|
+
), openModals.has(MODALS.BULK_ROLE_CHANGE) && /* @__PURE__ */ React56.createElement(BulkRoleChangeModal, { onOpenChange: (value) => updateState(MODALS.BULK_ROLE_CHANGE, value) }), openModals.has(MODALS.MUTE_ALL) && /* @__PURE__ */ React56.createElement(MuteAllModal, { onOpenChange: (value) => updateState(MODALS.MUTE_ALL, value) }), openModals.has(MODALS.START_RECORDING) && /* @__PURE__ */ React56.createElement(StartRecording_default, { open: true, onOpenChange: (value) => updateState(MODALS.START_RECORDING, value) }), openModals.has(MODALS.DEVICE_SETTINGS) && /* @__PURE__ */ React56.createElement(
|
16592
16696
|
SettingsModal_default,
|
16593
16697
|
{
|
16594
16698
|
open: true,
|
16595
16699
|
onOpenChange: (value) => updateState(MODALS.DEVICE_SETTINGS, value),
|
16596
16700
|
screenType
|
16597
16701
|
}
|
16598
|
-
), openModals.has(MODALS.STATS_FOR_NERDS) && /* @__PURE__ */
|
16702
|
+
), openModals.has(MODALS.STATS_FOR_NERDS) && /* @__PURE__ */ React56.createElement(StatsForNerds, { open: true, onOpenChange: (value) => updateState(MODALS.STATS_FOR_NERDS, value) }), openModals.has(MODALS.SELF_ROLE_CHANGE) && /* @__PURE__ */ React56.createElement(
|
16599
16703
|
RoleChangeModal,
|
16600
16704
|
{
|
16601
16705
|
peerId: localPeerId,
|
16602
16706
|
onOpenChange: (value) => updateState(MODALS.SELF_ROLE_CHANGE, value)
|
16603
16707
|
}
|
16604
|
-
), openModals.has(MODALS.CAPTION) && /* @__PURE__ */
|
16708
|
+
), openModals.has(MODALS.CAPTION) && /* @__PURE__ */ React56.createElement(CaptionModal, { onOpenChange: (value) => updateState(MODALS.CAPTION, value) }));
|
16605
16709
|
};
|
16606
16710
|
|
16607
16711
|
// src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
|
@@ -16641,7 +16745,7 @@ import {
|
|
16641
16745
|
|
16642
16746
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
16643
16747
|
init_define_process_env();
|
16644
|
-
import
|
16748
|
+
import React58, { useCallback as useCallback17, useEffect as useEffect16, useRef as useRef15, useState as useState25 } from "react";
|
16645
16749
|
import { useMedia as useMedia8 } from "react-use";
|
16646
16750
|
|
16647
16751
|
// ../hms-video-store/dist/index.js
|
@@ -18863,7 +18967,7 @@ var er = (a2, e) => {
|
|
18863
18967
|
};
|
18864
18968
|
var Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18865
18969
|
var cr = Ba((Ic, Ja) => {
|
18866
|
-
Ja.exports = { version: "0.12.13-alpha.
|
18970
|
+
Ja.exports = { version: "0.12.13-alpha.4", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
18867
18971
|
});
|
18868
18972
|
var tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(tr || {});
|
18869
18973
|
var Va = ((e) => (e.CHAT = "chat", e))(Va || {});
|
@@ -19959,7 +20063,7 @@ import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon10, Paus
|
|
19959
20063
|
|
19960
20064
|
// src/Prebuilt/components/Header/AdditionalRoomState.jsx
|
19961
20065
|
init_define_process_env();
|
19962
|
-
import
|
20066
|
+
import React57, { useState as useState24 } from "react";
|
19963
20067
|
import { selectLocalPeerID as selectLocalPeerID5, selectPeerSharingVideoPlaylist, useHMSStore as useHMSStore25, useScreenShare } from "@100mslive/react-sdk";
|
19964
20068
|
import {
|
19965
20069
|
AudioPlayerIcon,
|
@@ -20072,7 +20176,7 @@ var AdditionalRoomState = () => {
|
|
20072
20176
|
if (isPlaylistInactive && isAudioshareInactive && !shouldShowScreenShareState && !shouldShowVideoState) {
|
20073
20177
|
return null;
|
20074
20178
|
}
|
20075
|
-
return /* @__PURE__ */
|
20179
|
+
return /* @__PURE__ */ React57.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React57.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React57.createElement(
|
20076
20180
|
Flex,
|
20077
20181
|
{
|
20078
20182
|
align: "center",
|
@@ -20085,12 +20189,12 @@ var AdditionalRoomState = () => {
|
|
20085
20189
|
},
|
20086
20190
|
"data-testid": "record_status_dropdown"
|
20087
20191
|
},
|
20088
|
-
!isAudioshareInactive && /* @__PURE__ */
|
20089
|
-
shouldShowScreenShareState && /* @__PURE__ */
|
20090
|
-
shouldShowVideoState && /* @__PURE__ */
|
20091
|
-
!isPlaylistInactive && /* @__PURE__ */
|
20092
|
-
/* @__PURE__ */
|
20093
|
-
)), /* @__PURE__ */
|
20192
|
+
!isAudioshareInactive && /* @__PURE__ */ React57.createElement(Tooltip, { title: "Screenshare Audio" }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React57.createElement(MusicIcon, { width: 24, height: 24 }))),
|
20193
|
+
shouldShowScreenShareState && /* @__PURE__ */ React57.createElement(Tooltip, { title: "Screenshare" }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React57.createElement(ShareScreenIcon, { width: 24, height: 24 }))),
|
20194
|
+
shouldShowVideoState && /* @__PURE__ */ React57.createElement(Tooltip, { title: "video playlist" }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React57.createElement(VideoPlayerIcon, { width: 24, height: 24 }))),
|
20195
|
+
!isPlaylistInactive && /* @__PURE__ */ React57.createElement(Tooltip, { title: "Playlist Music" }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React57.createElement(AudioPlayerIcon, { width: 24, height: 24 }))),
|
20196
|
+
/* @__PURE__ */ React57.createElement(Box, { css: { "@lg": { display: "none" }, color: "$on_surface_low" } }, open ? /* @__PURE__ */ React57.createElement(ChevronUpIcon4, null) : /* @__PURE__ */ React57.createElement(ChevronDownIcon4, null))
|
20197
|
+
)), /* @__PURE__ */ React57.createElement(Dropdown.Content, { sideOffset: 5, align: "end", css: { w: "$60" } }, !isPlaylistInactive && /* @__PURE__ */ React57.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React57.createElement(AudioPlayerIcon, { width: 24, height: 24 }), /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Playlist is playing"), playlist.peer.isLocal ? /* @__PURE__ */ React57.createElement(
|
20094
20198
|
Text,
|
20095
20199
|
{
|
20096
20200
|
variant: "sm",
|
@@ -20101,7 +20205,7 @@ var AdditionalRoomState = () => {
|
|
20101
20205
|
}
|
20102
20206
|
},
|
20103
20207
|
playlist.selection.playing ? "Pause" : "Play"
|
20104
|
-
) : /* @__PURE__ */
|
20208
|
+
) : /* @__PURE__ */ React57.createElement(
|
20105
20209
|
Text,
|
20106
20210
|
{
|
20107
20211
|
variant: "sm",
|
@@ -20112,7 +20216,7 @@ var AdditionalRoomState = () => {
|
|
20112
20216
|
}
|
20113
20217
|
},
|
20114
20218
|
playlist.track.volume === 0 ? "Unmute" : "Mute"
|
20115
|
-
)), !isAudioshareInactive && /* @__PURE__ */
|
20219
|
+
)), !isAudioshareInactive && /* @__PURE__ */ React57.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React57.createElement(MusicIcon, { width: 24, height: 24 }), /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Music is playing"), /* @__PURE__ */ React57.createElement(
|
20116
20220
|
Text,
|
20117
20221
|
{
|
20118
20222
|
variant: "sm",
|
@@ -20123,7 +20227,7 @@ var AdditionalRoomState = () => {
|
|
20123
20227
|
}
|
20124
20228
|
},
|
20125
20229
|
screenshareAudio.muted ? "Unmute" : "Mute"
|
20126
|
-
)), shouldShowScreenShareState && /* @__PURE__ */
|
20230
|
+
)), shouldShowScreenShareState && /* @__PURE__ */ React57.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React57.createElement(ShareScreenIcon, { width: 24, height: 24 }), /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, `Shared by: ${screenSharingPeerId === localPeerID ? "You" : screenSharingPeerName}`)), shouldShowVideoState && /* @__PURE__ */ React57.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React57.createElement(VideoPlayerIcon, { width: 24, height: 24 }), /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, `Shared by: ${peerSharingPlaylist.id === localPeerID ? "You" : peerSharingPlaylist.name}`))));
|
20127
20231
|
};
|
20128
20232
|
|
20129
20233
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
@@ -20160,7 +20264,7 @@ var LiveStatus = () => {
|
|
20160
20264
|
if (!isHLSRunning && !isRTMPRunning) {
|
20161
20265
|
return null;
|
20162
20266
|
}
|
20163
|
-
return /* @__PURE__ */
|
20267
|
+
return /* @__PURE__ */ React58.createElement(
|
20164
20268
|
Flex,
|
20165
20269
|
{
|
20166
20270
|
align: "center",
|
@@ -20171,8 +20275,8 @@ var LiveStatus = () => {
|
|
20171
20275
|
borderRadius: "$1"
|
20172
20276
|
}
|
20173
20277
|
},
|
20174
|
-
/* @__PURE__ */
|
20175
|
-
/* @__PURE__ */
|
20278
|
+
/* @__PURE__ */ React58.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
|
20279
|
+
/* @__PURE__ */ React58.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ React58.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ React58.createElement(Text, { variant: "caption" }, ((_a8 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a8.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
|
20176
20280
|
);
|
20177
20281
|
};
|
20178
20282
|
var RecordingStatus = () => {
|
@@ -20187,7 +20291,7 @@ var RecordingStatus = () => {
|
|
20187
20291
|
if (!(isMobile && isRecordingOn))
|
20188
20292
|
return null;
|
20189
20293
|
}
|
20190
|
-
return /* @__PURE__ */
|
20294
|
+
return /* @__PURE__ */ React58.createElement(
|
20191
20295
|
Tooltip,
|
20192
20296
|
{
|
20193
20297
|
boxCss: { zIndex: 1 },
|
@@ -20197,7 +20301,7 @@ var RecordingStatus = () => {
|
|
20197
20301
|
isHLSRecordingOn
|
20198
20302
|
})
|
20199
20303
|
},
|
20200
|
-
/* @__PURE__ */
|
20304
|
+
/* @__PURE__ */ React58.createElement(
|
20201
20305
|
Flex,
|
20202
20306
|
{
|
20203
20307
|
css: {
|
@@ -20205,14 +20309,14 @@ var RecordingStatus = () => {
|
|
20205
20309
|
alignItems: "center"
|
20206
20310
|
}
|
20207
20311
|
},
|
20208
|
-
/* @__PURE__ */
|
20312
|
+
/* @__PURE__ */ React58.createElement(RecordIcon, { width: 24, height: 24 })
|
20209
20313
|
)
|
20210
20314
|
);
|
20211
20315
|
};
|
20212
20316
|
var RecordingPauseStatus = () => {
|
20213
20317
|
const recording = useHMSStore26(selectRecordingState2);
|
20214
20318
|
if (recording.hls && recording.hls.state === Ss.PAUSED) {
|
20215
|
-
return /* @__PURE__ */
|
20319
|
+
return /* @__PURE__ */ React58.createElement(
|
20216
20320
|
Tooltip,
|
20217
20321
|
{
|
20218
20322
|
boxCss: { zIndex: 1 },
|
@@ -20222,7 +20326,7 @@ var RecordingPauseStatus = () => {
|
|
20222
20326
|
isHLSRecordingOn: true
|
20223
20327
|
})
|
20224
20328
|
},
|
20225
|
-
/* @__PURE__ */
|
20329
|
+
/* @__PURE__ */ React58.createElement(
|
20226
20330
|
Flex,
|
20227
20331
|
{
|
20228
20332
|
css: {
|
@@ -20230,7 +20334,7 @@ var RecordingPauseStatus = () => {
|
|
20230
20334
|
alignItems: "center"
|
20231
20335
|
}
|
20232
20336
|
},
|
20233
|
-
/* @__PURE__ */
|
20337
|
+
/* @__PURE__ */ React58.createElement(PauseCircleIcon, { width: 24, height: 24 })
|
20234
20338
|
)
|
20235
20339
|
);
|
20236
20340
|
}
|
@@ -20246,7 +20350,7 @@ var StartRecording2 = () => {
|
|
20246
20350
|
return null;
|
20247
20351
|
}
|
20248
20352
|
if (isBrowserRecordingOn) {
|
20249
|
-
return /* @__PURE__ */
|
20353
|
+
return /* @__PURE__ */ React58.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React58.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React58.createElement(Button, { variant: "danger", "data-testid": "stop_recording", icon: true, outlined: true, onClick: () => setOpen(true) }, /* @__PURE__ */ React58.createElement(RecordIcon, null), /* @__PURE__ */ React58.createElement(Text, { as: "span", css: { "@md": { display: "none" }, color: "currentColor" } }, "Stop Recording"))), /* @__PURE__ */ React58.createElement(Popover2.Portal, null, /* @__PURE__ */ React58.createElement(Popover2.Content, { align: "end", sideOffset: 8, css: { w: "$64" } }, /* @__PURE__ */ React58.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium" } }, "Are you sure you want to end the recording?"), /* @__PURE__ */ React58.createElement(
|
20250
20354
|
Button,
|
20251
20355
|
{
|
20252
20356
|
"data-testid": "stop_recording_confirm",
|
@@ -20269,7 +20373,7 @@ var StartRecording2 = () => {
|
|
20269
20373
|
"Stop"
|
20270
20374
|
))));
|
20271
20375
|
}
|
20272
|
-
return /* @__PURE__ */
|
20376
|
+
return /* @__PURE__ */ React58.createElement(
|
20273
20377
|
Button,
|
20274
20378
|
{
|
20275
20379
|
"data-testid": "start_recording",
|
@@ -20280,21 +20384,21 @@ var StartRecording2 = () => {
|
|
20280
20384
|
yield startRecording();
|
20281
20385
|
})
|
20282
20386
|
},
|
20283
|
-
recordingStarted ? /* @__PURE__ */
|
20284
|
-
/* @__PURE__ */
|
20387
|
+
recordingStarted ? /* @__PURE__ */ React58.createElement(Loading, { size: 24, color: "currentColor" }) : /* @__PURE__ */ React58.createElement(RecordIcon, null),
|
20388
|
+
/* @__PURE__ */ React58.createElement(Text, { as: "span", css: { "@md": { display: "none" }, color: "currentColor" } }, recordingStarted ? "Starting" : "Start", " Recording")
|
20285
20389
|
);
|
20286
20390
|
};
|
20287
20391
|
var StreamActions = () => {
|
20288
20392
|
const isConnected = useHMSStore26(selectIsConnectedToRoom6);
|
20289
20393
|
const isMobile = useMedia8(config.media.md);
|
20290
20394
|
const roomState = useHMSStore26(selectRoomState3);
|
20291
|
-
return /* @__PURE__ */
|
20395
|
+
return /* @__PURE__ */ React58.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React58.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React58.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React58.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React58.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React58.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React58.createElement(StartRecording2, null) : null);
|
20292
20396
|
};
|
20293
20397
|
var StopRecordingInSheet = ({
|
20294
20398
|
onStopRecording,
|
20295
20399
|
onClose
|
20296
20400
|
}) => {
|
20297
|
-
return /* @__PURE__ */
|
20401
|
+
return /* @__PURE__ */ React58.createElement(Sheet.Root, { open: true }, /* @__PURE__ */ React58.createElement(Sheet.Content, null, /* @__PURE__ */ React58.createElement(Sheet.Title, { css: { p: "$10" } }, /* @__PURE__ */ React58.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%", c: "$alert_error_default" } }, /* @__PURE__ */ React58.createElement(Flex, { justify: "start", align: "center", gap: "3" }, /* @__PURE__ */ React58.createElement(AlertTriangleIcon6, null), /* @__PURE__ */ React58.createElement(Text, { variant: "h5", css: { c: "$alert_error_default" } }, "Stop Recording")), /* @__PURE__ */ React58.createElement(Sheet.Close, { css: { color: "white" }, onClick: onClose }, /* @__PURE__ */ React58.createElement(CrossIcon10, null)))), /* @__PURE__ */ React58.createElement(HorizontalDivider, null), /* @__PURE__ */ React58.createElement(Box, { as: "div", css: { p: "$10", overflowY: "scroll", maxHeight: "70vh" } }, /* @__PURE__ */ React58.createElement(Text, { variant: "caption", css: { c: "$on_surface_medium", pb: "$8" } }, "Are you sure you want to stop recording? You can\u2019t undo this action."), /* @__PURE__ */ React58.createElement(
|
20298
20402
|
Button,
|
20299
20403
|
{
|
20300
20404
|
variant: "danger",
|
@@ -20307,64 +20411,6 @@ var StopRecordingInSheet = ({
|
|
20307
20411
|
))));
|
20308
20412
|
};
|
20309
20413
|
|
20310
|
-
// src/Prebuilt/components/MoreSettings/ActionTile.jsx
|
20311
|
-
init_define_process_env();
|
20312
|
-
import React58 from "react";
|
20313
|
-
var ActionTileRoot = (_a8) => {
|
20314
|
-
var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
|
20315
|
-
return /* @__PURE__ */ React58.createElement(
|
20316
|
-
Flex,
|
20317
|
-
__spreadProps(__spreadValues({}, props), {
|
20318
|
-
css: {
|
20319
|
-
flexDirection: "column",
|
20320
|
-
alignItems: "center",
|
20321
|
-
p: "$4 $2",
|
20322
|
-
position: "relative",
|
20323
|
-
bg: active ? "$surface_bright" : "",
|
20324
|
-
color: disabled ? "$on_surface_low" : "$on_surface_high",
|
20325
|
-
gap: "$4",
|
20326
|
-
r: "$1",
|
20327
|
-
"&:hover": {
|
20328
|
-
bg: "$surface_bright"
|
20329
|
-
}
|
20330
|
-
},
|
20331
|
-
onClick: () => {
|
20332
|
-
if (!disabled) {
|
20333
|
-
onClick();
|
20334
|
-
}
|
20335
|
-
}
|
20336
|
-
}),
|
20337
|
-
children
|
20338
|
-
);
|
20339
|
-
};
|
20340
|
-
var ActionTileCount = styled(Text, {
|
20341
|
-
position: "absolute",
|
20342
|
-
top: 0,
|
20343
|
-
right: 0,
|
20344
|
-
fontWeight: "$semiBold",
|
20345
|
-
color: "$on_surface_high",
|
20346
|
-
p: "$1 $2",
|
20347
|
-
minWidth: "$9",
|
20348
|
-
textAlign: "center",
|
20349
|
-
boxSizing: "border-box",
|
20350
|
-
bg: "$surface_bright",
|
20351
|
-
r: "$round",
|
20352
|
-
letterSpacing: "1.5px",
|
20353
|
-
fontSize: "$tiny !important",
|
20354
|
-
lineHeight: "$tiny !important"
|
20355
|
-
});
|
20356
|
-
var ActionTileTitle = styled(Text, {
|
20357
|
-
fontWeight: "$semiBold",
|
20358
|
-
color: "inherit",
|
20359
|
-
textAlign: "center",
|
20360
|
-
fontSize: "$xs !important"
|
20361
|
-
});
|
20362
|
-
var ActionTile = {
|
20363
|
-
Root: ActionTileRoot,
|
20364
|
-
Title: ActionTileTitle,
|
20365
|
-
Count: ActionTileCount
|
20366
|
-
};
|
20367
|
-
|
20368
20414
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
|
20369
20415
|
init_define_process_env();
|
20370
20416
|
import React60, { useState as useState26 } from "react";
|
@@ -20671,6 +20717,7 @@ var MwebOptions = ({
|
|
20671
20717
|
isHandRaised ? /* @__PURE__ */ React61.createElement(HandRaiseSlashedIcon, null) : /* @__PURE__ */ React61.createElement(HandIcon2, null),
|
20672
20718
|
/* @__PURE__ */ React61.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
|
20673
20719
|
) : null,
|
20720
|
+
/* @__PURE__ */ React61.createElement(NoiseCancellation, { setOpenOptionsSheet, actionTile: true }),
|
20674
20721
|
isTranscriptionAllowed ? /* @__PURE__ */ React61.createElement(
|
20675
20722
|
ActionTile.Root,
|
20676
20723
|
{
|
@@ -22501,7 +22548,7 @@ import {
|
|
22501
22548
|
HMSRoomState as HMSRoomState5,
|
22502
22549
|
selectAppData as selectAppData9,
|
22503
22550
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
|
22504
|
-
selectLocalPeer as
|
22551
|
+
selectLocalPeer as selectLocalPeer9,
|
22505
22552
|
selectRoomState as selectRoomState5,
|
22506
22553
|
selectVideoTrackByID as selectVideoTrackByID5,
|
22507
22554
|
useAVToggle as useAVToggle3,
|
@@ -23695,7 +23742,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
23695
23742
|
init_define_process_env();
|
23696
23743
|
import React102, { useEffect as useEffect26, useRef as useRef20, useState as useState42 } from "react";
|
23697
23744
|
import {
|
23698
|
-
selectLocalPeer as
|
23745
|
+
selectLocalPeer as selectLocalPeer3,
|
23699
23746
|
selectPeerNameByID,
|
23700
23747
|
selectPermissions as selectPermissions16,
|
23701
23748
|
selectPollByID as selectPollByID4,
|
@@ -23712,7 +23759,7 @@ import React100 from "react";
|
|
23712
23759
|
init_define_process_env();
|
23713
23760
|
import React99, { useCallback as useCallback22, useEffect as useEffect24, useMemo as useMemo10, useRef as useRef19, useState as useState40 } from "react";
|
23714
23761
|
import { match as match8 } from "ts-pattern";
|
23715
|
-
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions32, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23762
|
+
import { selectLocalPeer as selectLocalPeer2, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions32, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23716
23763
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
23717
23764
|
var QuestionCard2 = ({
|
23718
23765
|
pollID,
|
@@ -23731,7 +23778,7 @@ var QuestionCard2 = ({
|
|
23731
23778
|
rolesThatCanViewResponses
|
23732
23779
|
}) => {
|
23733
23780
|
const actions = useHMSActions32();
|
23734
|
-
const localPeer = useHMSStore50(
|
23781
|
+
const localPeer = useHMSStore50(selectLocalPeer2);
|
23735
23782
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
23736
23783
|
const localPeerRoleName = useHMSStore50(selectLocalPeerRoleName2);
|
23737
23784
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
@@ -23970,7 +24017,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
23970
24017
|
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
23971
24018
|
const fetchedInitialResponses = useRef20(false);
|
23972
24019
|
const [savedResponses, setSavedResponses] = useState42({});
|
23973
|
-
const localPeer = useHMSStore51(
|
24020
|
+
const localPeer = useHMSStore51(selectLocalPeer3);
|
23974
24021
|
const localPeerId = localPeer == null ? void 0 : localPeer.id;
|
23975
24022
|
const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
|
23976
24023
|
useEffect26(() => {
|
@@ -24248,7 +24295,7 @@ var MwebChatOption = ({
|
|
24248
24295
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
24249
24296
|
init_define_process_env();
|
24250
24297
|
import { useCallback as useCallback23 } from "react";
|
24251
|
-
import { selectLocalPeer as
|
24298
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions34, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
24252
24299
|
var useChatBlacklist = (sessionStoreKey) => {
|
24253
24300
|
const hmsActions = useHMSActions34();
|
24254
24301
|
const blacklistedIDs = useHMSStore53(selectSessionStore2(sessionStoreKey));
|
@@ -24261,7 +24308,7 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
24261
24308
|
return { blacklistItem, blacklistedIDs };
|
24262
24309
|
};
|
24263
24310
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
24264
|
-
const localPeer = useHMSStore53(
|
24311
|
+
const localPeer = useHMSStore53(selectLocalPeer4);
|
24265
24312
|
const blacklistedPeerIDs = useHMSStore53(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
24266
24313
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
24267
24314
|
};
|
@@ -24981,7 +25028,7 @@ import React114, { useCallback as useCallback28, useEffect as useEffect32, useRe
|
|
24981
25028
|
import { useMedia as useMedia17 } from "react-use";
|
24982
25029
|
import data2 from "@emoji-mart/data";
|
24983
25030
|
import Picker from "@emoji-mart/react";
|
24984
|
-
import { selectLocalPeer as
|
25031
|
+
import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
24985
25032
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24986
25033
|
|
24987
25034
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -25384,7 +25431,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
25384
25431
|
const isMobile = useMedia17(config.media.md);
|
25385
25432
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
25386
25433
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
25387
|
-
const localPeer = useHMSStore59(
|
25434
|
+
const localPeer = useHMSStore59(selectLocalPeer5);
|
25388
25435
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
25389
25436
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
25390
25437
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -25577,14 +25624,14 @@ var ChatFooter = ({ onSend, children }) => {
|
|
25577
25624
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
25578
25625
|
init_define_process_env();
|
25579
25626
|
import React115, { useCallback as useCallback29 } from "react";
|
25580
|
-
import { selectLocalPeer as
|
25627
|
+
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions40, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
25581
25628
|
var ChatPaused = () => {
|
25582
25629
|
var _a8, _b7;
|
25583
25630
|
const hmsActions = useHMSActions40();
|
25584
25631
|
const { elements } = useRoomLayoutConferencingScreen();
|
25585
25632
|
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);
|
25586
25633
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
25587
|
-
const localPeer = useHMSStore60(
|
25634
|
+
const localPeer = useHMSStore60(selectLocalPeer6);
|
25588
25635
|
const unPauseChat = useCallback29(
|
25589
25636
|
() => __async(void 0, null, function* () {
|
25590
25637
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
@@ -26029,12 +26076,12 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
26029
26076
|
// src/Prebuilt/components/ChatSettings.tsx
|
26030
26077
|
init_define_process_env();
|
26031
26078
|
import React121 from "react";
|
26032
|
-
import { selectLocalPeer as
|
26079
|
+
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions42, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
26033
26080
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
26034
26081
|
var ChatSettings = () => {
|
26035
26082
|
var _a8, _b7;
|
26036
26083
|
const hmsActions = useHMSActions42();
|
26037
|
-
const localPeer = useHMSStore64(
|
26084
|
+
const localPeer = useHMSStore64(selectLocalPeer7);
|
26038
26085
|
const { elements } = useRoomLayoutConferencingScreen();
|
26039
26086
|
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
26040
26087
|
const { enabled: isChatEnabled = true } = useHMSStore64(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
@@ -26820,7 +26867,7 @@ import {
|
|
26820
26867
|
selectIsLargeRoom as selectIsLargeRoom3,
|
26821
26868
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled6,
|
26822
26869
|
selectIsLocalVideoPluginPresent,
|
26823
|
-
selectLocalPeer as
|
26870
|
+
selectLocalPeer as selectLocalPeer8,
|
26824
26871
|
selectRoomState as selectRoomState4,
|
26825
26872
|
selectVideoTrackByID as selectVideoTrackByID4,
|
26826
26873
|
useHMSActions as useHMSActions44,
|
@@ -27011,7 +27058,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
27011
27058
|
var _a8;
|
27012
27059
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
27013
27060
|
const hmsActions = useHMSActions44();
|
27014
|
-
const localPeer = useHMSStore70(
|
27061
|
+
const localPeer = useHMSStore70(selectLocalPeer8);
|
27015
27062
|
const role = useHMSStore70(Ye);
|
27016
27063
|
const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
|
27017
27064
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
@@ -27469,7 +27516,7 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
27469
27516
|
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
27470
27517
|
};
|
27471
27518
|
var useLocalTileAspectRatio = () => {
|
27472
|
-
const localPeer = useHMSStore72(
|
27519
|
+
const localPeer = useHMSStore72(selectLocalPeer9);
|
27473
27520
|
const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
|
27474
27521
|
const isMobile = useMedia26(config.media.md);
|
27475
27522
|
let aspectRatio = 0;
|
@@ -27580,7 +27627,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
27580
27627
|
px: "$10"
|
27581
27628
|
}));
|
27582
27629
|
var PreviewTile = ({ name, error }) => {
|
27583
|
-
const localPeer = useHMSStore72(
|
27630
|
+
const localPeer = useHMSStore72(selectLocalPeer9);
|
27584
27631
|
const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
|
27585
27632
|
const isVideoOn = useHMSStore72(selectIsLocalVideoEnabled7);
|
27586
27633
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
@@ -27637,7 +27684,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
|
27637
27684
|
}
|
27638
27685
|
},
|
27639
27686
|
/* @__PURE__ */ React134.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React134.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ React134.createElement(VBToggle, null) : null),
|
27640
|
-
!hideSettings ? /* @__PURE__ */ React134.createElement(PreviewSettings, null) : null
|
27687
|
+
/* @__PURE__ */ React134.createElement(Flex, { align: "center", gap: "1" }, isMobile && /* @__PURE__ */ React134.createElement(NoiseCancellation, { iconOnly: true }), !hideSettings ? /* @__PURE__ */ React134.createElement(PreviewSettings, null) : null)
|
27641
27688
|
);
|
27642
27689
|
};
|
27643
27690
|
var PreviewSettings = React134.memo(() => {
|
@@ -27747,6 +27794,7 @@ var RoleChangeRequestModal = () => {
|
|
27747
27794
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
27748
27795
|
init_define_process_env();
|
27749
27796
|
import React155, { Suspense, useEffect as useEffect53, useState as useState67 } from "react";
|
27797
|
+
import { useMedia as useMedia37 } from "react-use";
|
27750
27798
|
import { match as match12 } from "ts-pattern";
|
27751
27799
|
import {
|
27752
27800
|
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
@@ -27839,7 +27887,7 @@ import Draggable from "react-draggable";
|
|
27839
27887
|
import { useMedia as useMedia28 } from "react-use";
|
27840
27888
|
import {
|
27841
27889
|
selectIsAllowedToPublish as selectIsAllowedToPublish3,
|
27842
|
-
selectLocalPeer as
|
27890
|
+
selectLocalPeer as selectLocalPeer10,
|
27843
27891
|
selectPeerByID as selectPeerByID3,
|
27844
27892
|
selectVideoTrackByID as selectVideoTrackByID6,
|
27845
27893
|
useHMSStore as useHMSStore74
|
@@ -27882,7 +27930,7 @@ var desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
|
27882
27930
|
var InsetTile = ({ peerId }) => {
|
27883
27931
|
const isMobile = useMedia28(config.media.md);
|
27884
27932
|
const isLandscape = useMedia28(config.media.ls);
|
27885
|
-
const selector = peerId ? selectPeerByID3(peerId) :
|
27933
|
+
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer10;
|
27886
27934
|
const peer = useHMSStore74(selector);
|
27887
27935
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
27888
27936
|
const videoTrack = useHMSStore74(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
|
@@ -28189,7 +28237,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
28189
28237
|
init_define_process_env();
|
28190
28238
|
import React145, { useEffect as useEffect45, useState as useState61 } from "react";
|
28191
28239
|
import { useMedia as useMedia32 } from "react-use";
|
28192
|
-
import { selectLocalPeer as
|
28240
|
+
import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
|
28193
28241
|
|
28194
28242
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
28195
28243
|
init_define_process_env();
|
@@ -28385,7 +28433,7 @@ function RoleProminence({
|
|
28385
28433
|
}) {
|
28386
28434
|
var _a8;
|
28387
28435
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
28388
|
-
const localPeer = useHMSStore76(
|
28436
|
+
const localPeer = useHMSStore76(selectLocalPeer11);
|
28389
28437
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
28390
28438
|
const isMobile = useMedia32(config.media.md);
|
28391
28439
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
@@ -29396,7 +29444,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
29396
29444
|
};
|
29397
29445
|
|
29398
29446
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
29399
|
-
var HLSView = React155.lazy(() => import("./HLSView-
|
29447
|
+
var HLSView = React155.lazy(() => import("./HLSView-VGNORAAX.js"));
|
29400
29448
|
var VideoStreamingSection = ({
|
29401
29449
|
screenType,
|
29402
29450
|
elements,
|
@@ -29411,7 +29459,8 @@ var VideoStreamingSection = ({
|
|
29411
29459
|
const pdfAnnotatorActive = usePDFConfig();
|
29412
29460
|
const isMobileHLSStream = useMobileHLSStream();
|
29413
29461
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
29414
|
-
const
|
29462
|
+
const isMobile = useMedia37(config.media.md);
|
29463
|
+
const [captionPosition, setCaptionPosition] = useState67({ x: isMobile ? 0 : -200, y: 0 });
|
29415
29464
|
useCloseScreenshareWhiteboard();
|
29416
29465
|
const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
|
29417
29466
|
useEffect53(() => {
|
@@ -29513,17 +29562,17 @@ init_define_process_env();
|
|
29513
29562
|
// src/Prebuilt/components/Header/Header.tsx
|
29514
29563
|
init_define_process_env();
|
29515
29564
|
import React158 from "react";
|
29516
|
-
import { useMedia as
|
29565
|
+
import { useMedia as useMedia39 } from "react-use";
|
29517
29566
|
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
|
29518
29567
|
|
29519
29568
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
29520
29569
|
init_define_process_env();
|
29521
29570
|
import React156 from "react";
|
29522
|
-
import { useMedia as
|
29571
|
+
import { useMedia as useMedia38 } from "react-use";
|
29523
29572
|
import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
|
29524
29573
|
var RoomDetailsHeader = () => {
|
29525
29574
|
const { title, description } = useRoomLayoutHeader();
|
29526
|
-
const isMobile =
|
29575
|
+
const isMobile = useMedia38(config.media.md);
|
29527
29576
|
const clipLength = 30;
|
29528
29577
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
29529
29578
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -29703,7 +29752,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React157.createElement(Re
|
|
29703
29752
|
// src/Prebuilt/components/Header/Header.tsx
|
29704
29753
|
var Header2 = () => {
|
29705
29754
|
const roomState = useHMSStore86(selectRoomState6);
|
29706
|
-
const isMobile =
|
29755
|
+
const isMobile = useMedia39(config.media.md);
|
29707
29756
|
if (roomState !== HMSRoomState6.Connected) {
|
29708
29757
|
return /* @__PURE__ */ React158.createElement(React158.Fragment, null);
|
29709
29758
|
}
|
@@ -30273,12 +30322,12 @@ var LeaveScreen = () => {
|
|
30273
30322
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
30274
30323
|
init_define_process_env();
|
30275
30324
|
import React164, { useEffect as useEffect60, useState as useState69 } from "react";
|
30276
|
-
import { useMedia as
|
30325
|
+
import { useMedia as useMedia40 } from "react-use";
|
30277
30326
|
import { match as match14, P as P5 } from "ts-pattern";
|
30278
30327
|
import { RefreshIcon } from "@100mslive/react-icons";
|
30279
30328
|
var MwebLandscapePrompt = () => {
|
30280
30329
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState69(false);
|
30281
|
-
const isLandscape =
|
30330
|
+
const isLandscape = useMedia40(config.media.ls);
|
30282
30331
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
30283
30332
|
useEffect60(() => {
|
30284
30333
|
var _a8;
|
@@ -30745,7 +30794,7 @@ var PeerNotifications = () => {
|
|
30745
30794
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
30746
30795
|
init_define_process_env();
|
30747
30796
|
import React169, { useEffect as useEffect65, useState as useState71 } from "react";
|
30748
|
-
import { useMedia as
|
30797
|
+
import { useMedia as useMedia41 } from "react-use";
|
30749
30798
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
30750
30799
|
|
30751
30800
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -30759,7 +30808,7 @@ function PermissionErrorModal() {
|
|
30759
30808
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
30760
30809
|
const [deviceType, setDeviceType] = useState71("");
|
30761
30810
|
const [isSystemError, setIsSystemError] = useState71(false);
|
30762
|
-
const isMobile =
|
30811
|
+
const isMobile = useMedia41(config.media.md);
|
30763
30812
|
useEffect65(() => {
|
30764
30813
|
var _a8, _b7, _c, _d, _e;
|
30765
30814
|
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"))) {
|
@@ -31290,7 +31339,7 @@ var Sheet2 = () => {
|
|
31290
31339
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
31291
31340
|
init_define_process_env();
|
31292
31341
|
import React180, { useCallback as useCallback37, useEffect as useEffect73, useMemo as useMemo21, useState as useState76 } from "react";
|
31293
|
-
import { useMedia as
|
31342
|
+
import { useMedia as useMedia42 } from "react-use";
|
31294
31343
|
import {
|
31295
31344
|
selectIsLargeRoom as selectIsLargeRoom4,
|
31296
31345
|
selectLocalPeerID as selectLocalPeerID16,
|
@@ -31328,7 +31377,7 @@ function FlyingEmoji() {
|
|
31328
31377
|
const vanillaStore = useHMSVanillaStore17();
|
31329
31378
|
const hmsActions = useHMSActions54();
|
31330
31379
|
const [emojis, setEmojis] = useState76([]);
|
31331
|
-
const isMobile =
|
31380
|
+
const isMobile = useMedia42(config.media.md);
|
31332
31381
|
const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
|
31333
31382
|
const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
|
31334
31383
|
const showFlyingEmoji = useCallback37(
|
@@ -31822,4 +31871,4 @@ lodash/lodash.js:
|
|
31822
31871
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
31823
31872
|
*)
|
31824
31873
|
*/
|
31825
|
-
//# sourceMappingURL=chunk-
|
31874
|
+
//# sourceMappingURL=chunk-XSEQ4VZT.js.map
|