@100mslive/roomkit-react 0.3.19 → 0.3.20-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-LNJLFWK4.css → HLSView-KVYOXQXT.css} +3 -3
- package/dist/{HLSView-LNJLFWK4.css.map → HLSView-KVYOXQXT.css.map} +1 -1
- package/dist/{HLSView-GYB2QDIN.js → HLSView-WY2KZLYW.js} +63 -47
- package/dist/HLSView-WY2KZLYW.js.map +7 -0
- package/dist/Prebuilt/AppContext.d.ts +1 -1
- package/dist/Prebuilt/components/AuthToken.d.ts +1 -1
- package/dist/Prebuilt/components/peerTileUtils.d.ts +7 -0
- package/dist/{chunk-DIIFM6TW.js → chunk-I6M7HK22.js} +409 -390
- package/dist/chunk-I6M7HK22.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +480 -444
- 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 +79 -59
- package/dist/meta.esbuild.json +93 -73
- package/package.json +7 -7
- package/src/Prebuilt/App.tsx +5 -5
- package/src/Prebuilt/AppContext.tsx +1 -1
- package/src/Prebuilt/components/AuthToken.tsx +1 -1
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +24 -4
- package/src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx +13 -3
- package/src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx +1 -1
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +1 -1
- package/src/Prebuilt/components/ScreenshareTile.tsx +2 -2
- package/src/Prebuilt/components/Settings/SettingsModal.jsx +1 -2
- package/src/Prebuilt/components/TileMenu/TileMenu.tsx +7 -6
- package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +3 -3
- package/src/Prebuilt/components/VideoLayouts/EqualProminence.tsx +4 -2
- package/src/Prebuilt/components/VideoTile.tsx +2 -2
- package/src/Prebuilt/components/{peerTileUtils.jsx → peerTileUtils.tsx} +21 -6
- package/src/Prebuilt/layouts/HLSView.jsx +2 -5
- package/dist/HLSView-GYB2QDIN.js.map +0 -7
- package/dist/chunk-DIIFM6TW.js.map +0 -7
@@ -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_3239d931-854f-451e-b2a1-00f943ca805c", 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.9", 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.4 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.19", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3239d931-854f-451e-b2a1-00f943ca805c", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.19", 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.12", 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.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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: "594", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240901.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.6/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:3006", 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.19", 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: "false", GITHUB_RUN_ID: "10775631112", 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: "b1bdfdb1965a14fd6b61e9bb8f9a9c48c556fd37", 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: "35d1ee9741adef39d80387e400edbf575b9a7703324c18f8da2bef3bc3d960a2", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1725893382741-0.6519746386750118:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725893382550-0.5635610781867195:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725893357442-0.015279308298105088:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725893357267-0.1435051772390752:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_8c8def3e-ea24-4030-925c-559498fb7454", INVOCATION_ID: "62be4ee69caf4730b4b25bc5bc6354c7", 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: "668", GITHUB_TRIGGERING_ACTOR: "raviteja83", 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_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 113", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", 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/27.0.12077973", 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.19", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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: "b1bdfdb1965a14fd6b61e9bb8f9a9c48c556fd37", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", 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_3239d931-854f-451e-b2a1-00f943ca805c", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3239d931-854f-451e-b2a1-00f943ca805c", 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/27.0.12077973", 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_knip: "^5.11.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/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3239d931-854f-451e-b2a1-00f943ca805c" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3e764cf4-0852-44cc-8d6b-ec251e8167bb", 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.10-alpha.1", 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.4 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.20-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3e764cf4-0852-44cc-8d6b-ec251e8167bb", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.20-alpha.1", 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.12", 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.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "596", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240908.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.7/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:19422", 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.20-alpha.1", 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: "false", GITHUB_RUN_ID: "10849480265", 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: "1772ffc7344d3a8d0c3548779e1d7e808e3715ad", 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: "13209cc8437baad838a6c24edfe49d8efb9c5e8a1bac553f44235e521bad3ab6", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1726232130341-0.5095083111479979:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726232130134-0.2594445703114332:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726232103302-0.32296022442255934:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726232103112-0.3059228289535558:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_04df4529-8c4d-42a2-a153-f71776aa122f", INVOCATION_ID: "fa7a92a76bff4b4bbed2775a54b17c8d", 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: "670", 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_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 259", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", 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/27.1.12297006", 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.20-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.20-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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: "1772ffc7344d3a8d0c3548779e1d7e808e3715ad", 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_3e764cf4-0852-44cc-8d6b-ec251e8167bb", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3e764cf4-0852-44cc-8d6b-ec251e8167bb", 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/27.1.12297006", 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_knip: "^5.11.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/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3e764cf4-0852-44cc-8d6b-ec251e8167bb" };
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
@@ -8634,8 +8634,8 @@ var require_grammar = __commonJS({
|
|
8634
8634
|
var require_parser = __commonJS({
|
8635
8635
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
8636
8636
|
init_define_process_env();
|
8637
|
-
var toIntIfInt = function(
|
8638
|
-
return String(Number(
|
8637
|
+
var toIntIfInt = function(v2) {
|
8638
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
8639
8639
|
};
|
8640
8640
|
var attachProperties = function(match17, location, names, rawName) {
|
8641
8641
|
if (rawName && !names) {
|
@@ -8871,18 +8871,18 @@ var require_react_is_production_min = __commonJS({
|
|
8871
8871
|
var c2 = b2 ? Symbol.for("react.element") : 60103;
|
8872
8872
|
var d = b2 ? Symbol.for("react.portal") : 60106;
|
8873
8873
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
8874
|
-
var
|
8874
|
+
var f = b2 ? Symbol.for("react.strict_mode") : 60108;
|
8875
8875
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
8876
|
-
var
|
8876
|
+
var h = b2 ? Symbol.for("react.provider") : 60109;
|
8877
8877
|
var k = b2 ? Symbol.for("react.context") : 60110;
|
8878
8878
|
var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
|
8879
|
-
var
|
8879
|
+
var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
|
8880
8880
|
var n = b2 ? Symbol.for("react.forward_ref") : 60112;
|
8881
8881
|
var p = b2 ? Symbol.for("react.suspense") : 60113;
|
8882
8882
|
var q2 = b2 ? Symbol.for("react.suspense_list") : 60120;
|
8883
8883
|
var r = b2 ? Symbol.for("react.memo") : 60115;
|
8884
8884
|
var t = b2 ? Symbol.for("react.lazy") : 60116;
|
8885
|
-
var
|
8885
|
+
var v2 = b2 ? Symbol.for("react.block") : 60121;
|
8886
8886
|
var w = b2 ? Symbol.for("react.fundamental") : 60117;
|
8887
8887
|
var x = b2 ? Symbol.for("react.responder") : 60118;
|
8888
8888
|
var y2 = b2 ? Symbol.for("react.scope") : 60119;
|
@@ -8893,10 +8893,10 @@ var require_react_is_production_min = __commonJS({
|
|
8893
8893
|
case c2:
|
8894
8894
|
switch (a2 = a2.type, a2) {
|
8895
8895
|
case l2:
|
8896
|
-
case
|
8896
|
+
case m2:
|
8897
8897
|
case e:
|
8898
8898
|
case g:
|
8899
|
-
case
|
8899
|
+
case f:
|
8900
8900
|
case p:
|
8901
8901
|
return a2;
|
8902
8902
|
default:
|
@@ -8905,7 +8905,7 @@ var require_react_is_production_min = __commonJS({
|
|
8905
8905
|
case n:
|
8906
8906
|
case t:
|
8907
8907
|
case r:
|
8908
|
-
case
|
8908
|
+
case h:
|
8909
8909
|
return a2;
|
8910
8910
|
default:
|
8911
8911
|
return u;
|
@@ -8917,12 +8917,12 @@ var require_react_is_production_min = __commonJS({
|
|
8917
8917
|
}
|
8918
8918
|
}
|
8919
8919
|
function A2(a2) {
|
8920
|
-
return z2(a2) ===
|
8920
|
+
return z2(a2) === m2;
|
8921
8921
|
}
|
8922
8922
|
exports.AsyncMode = l2;
|
8923
|
-
exports.ConcurrentMode =
|
8923
|
+
exports.ConcurrentMode = m2;
|
8924
8924
|
exports.ContextConsumer = k;
|
8925
|
-
exports.ContextProvider =
|
8925
|
+
exports.ContextProvider = h;
|
8926
8926
|
exports.Element = c2;
|
8927
8927
|
exports.ForwardRef = n;
|
8928
8928
|
exports.Fragment = e;
|
@@ -8930,7 +8930,7 @@ var require_react_is_production_min = __commonJS({
|
|
8930
8930
|
exports.Memo = r;
|
8931
8931
|
exports.Portal = d;
|
8932
8932
|
exports.Profiler = g;
|
8933
|
-
exports.StrictMode =
|
8933
|
+
exports.StrictMode = f;
|
8934
8934
|
exports.Suspense = p;
|
8935
8935
|
exports.isAsyncMode = function(a2) {
|
8936
8936
|
return A2(a2) || z2(a2) === l2;
|
@@ -8940,7 +8940,7 @@ var require_react_is_production_min = __commonJS({
|
|
8940
8940
|
return z2(a2) === k;
|
8941
8941
|
};
|
8942
8942
|
exports.isContextProvider = function(a2) {
|
8943
|
-
return z2(a2) ===
|
8943
|
+
return z2(a2) === h;
|
8944
8944
|
};
|
8945
8945
|
exports.isElement = function(a2) {
|
8946
8946
|
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
@@ -8964,13 +8964,13 @@ var require_react_is_production_min = __commonJS({
|
|
8964
8964
|
return z2(a2) === g;
|
8965
8965
|
};
|
8966
8966
|
exports.isStrictMode = function(a2) {
|
8967
|
-
return z2(a2) ===
|
8967
|
+
return z2(a2) === f;
|
8968
8968
|
};
|
8969
8969
|
exports.isSuspense = function(a2) {
|
8970
8970
|
return z2(a2) === p;
|
8971
8971
|
};
|
8972
8972
|
exports.isValidElementType = function(a2) {
|
8973
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 ===
|
8973
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v2);
|
8974
8974
|
};
|
8975
8975
|
exports.typeOf = z2;
|
8976
8976
|
}
|
@@ -12920,14 +12920,14 @@ var Collapsible = {
|
|
12920
12920
|
|
12921
12921
|
// src/Prebuilt/App.tsx
|
12922
12922
|
init_define_process_env();
|
12923
|
-
import React186, { useEffect as
|
12923
|
+
import React186, { useEffect as useEffect80, useRef as useRef35 } from "react";
|
12924
12924
|
import { match as match16 } from "ts-pattern";
|
12925
12925
|
import {
|
12926
12926
|
HMSReactiveStore,
|
12927
12927
|
HMSRoomProvider,
|
12928
12928
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
12929
12929
|
useHMSActions as useHMSActions59,
|
12930
|
-
useHMSStore as
|
12930
|
+
useHMSStore as useHMSStore97
|
12931
12931
|
} from "@100mslive/react-sdk";
|
12932
12932
|
|
12933
12933
|
// src/Prebuilt/components/AppData/AppData.tsx
|
@@ -14636,7 +14636,7 @@ var AuthToken_default = AuthToken;
|
|
14636
14636
|
|
14637
14637
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
14638
14638
|
init_define_process_env();
|
14639
|
-
import React161, { useEffect as
|
14639
|
+
import React161, { useEffect as useEffect61, useRef as useRef32, useState as useState68 } from "react";
|
14640
14640
|
import { v4 as uuid3 } from "uuid";
|
14641
14641
|
import {
|
14642
14642
|
HMSRoomState as HMSRoomState8,
|
@@ -14645,12 +14645,12 @@ import {
|
|
14645
14645
|
selectRoomState as selectRoomState8,
|
14646
14646
|
useAwayNotifications as useAwayNotifications3,
|
14647
14647
|
useHMSActions as useHMSActions50,
|
14648
|
-
useHMSStore as
|
14648
|
+
useHMSStore as useHMSStore87
|
14649
14649
|
} from "@100mslive/react-sdk";
|
14650
14650
|
|
14651
14651
|
// src/Prebuilt/components/Footer/Footer.tsx
|
14652
14652
|
init_define_process_env();
|
14653
|
-
import React86, { useEffect as
|
14653
|
+
import React86, { useEffect as useEffect29 } from "react";
|
14654
14654
|
import { useMedia as useMedia15 } from "react-use";
|
14655
14655
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
14656
14656
|
|
@@ -15436,7 +15436,6 @@ var MobileSettingModal = ({
|
|
15436
15436
|
{
|
15437
15437
|
direction: "column",
|
15438
15438
|
css: {
|
15439
|
-
px: "$8",
|
15440
15439
|
pb: "$8",
|
15441
15440
|
overflowY: "auto"
|
15442
15441
|
}
|
@@ -15454,7 +15453,7 @@ var MobileSettingModal = ({
|
|
15454
15453
|
css: {
|
15455
15454
|
all: "unset",
|
15456
15455
|
fontFamily: "$sans",
|
15457
|
-
|
15456
|
+
p: "$10 $8",
|
15458
15457
|
display: "flex",
|
15459
15458
|
alignItems: "center",
|
15460
15459
|
fontSize: "$sm",
|
@@ -19148,7 +19147,7 @@ var DesktopOptions = ({
|
|
19148
19147
|
|
19149
19148
|
// src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
|
19150
19149
|
init_define_process_env();
|
19151
|
-
import React67, { useRef as
|
19150
|
+
import React67, { useRef as useRef19, useState as useState31 } from "react";
|
19152
19151
|
import { useClickAway } from "react-use";
|
19153
19152
|
import { match as match6 } from "ts-pattern";
|
19154
19153
|
import {
|
@@ -19701,11 +19700,11 @@ function shimOnTrack(window2) {
|
|
19701
19700
|
get() {
|
19702
19701
|
return this._ontrack;
|
19703
19702
|
},
|
19704
|
-
set(
|
19703
|
+
set(f) {
|
19705
19704
|
if (this._ontrack) {
|
19706
19705
|
this.removeEventListener("track", this._ontrack);
|
19707
19706
|
}
|
19708
|
-
this.addEventListener("track", this._ontrack =
|
19707
|
+
this.addEventListener("track", this._ontrack = f);
|
19709
19708
|
},
|
19710
19709
|
enumerable: true,
|
19711
19710
|
configurable: true
|
@@ -20688,12 +20687,12 @@ function shimRemoteStreamsAPI(window2) {
|
|
20688
20687
|
get() {
|
20689
20688
|
return this._onaddstream;
|
20690
20689
|
},
|
20691
|
-
set(
|
20690
|
+
set(f) {
|
20692
20691
|
if (this._onaddstream) {
|
20693
20692
|
this.removeEventListener("addstream", this._onaddstream);
|
20694
20693
|
this.removeEventListener("track", this._onaddstreampoly);
|
20695
20694
|
}
|
20696
|
-
this.addEventListener("addstream", this._onaddstream =
|
20695
|
+
this.addEventListener("addstream", this._onaddstream = f);
|
20697
20696
|
this.addEventListener("track", this._onaddstreampoly = (e) => {
|
20698
20697
|
e.streams.forEach((stream) => {
|
20699
20698
|
if (!this._remoteStreams) {
|
@@ -21385,7 +21384,7 @@ var ti = Object.getOwnPropertySymbols;
|
|
21385
21384
|
var ns = Object.prototype.hasOwnProperty;
|
21386
21385
|
var cs = Object.prototype.propertyIsEnumerable;
|
21387
21386
|
var os = (a2, e, t) => e in a2 ? Xa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21388
|
-
var
|
21387
|
+
var m = (a2, e) => {
|
21389
21388
|
for (var t in e || (e = {}))
|
21390
21389
|
ns.call(e, t) && os(a2, t, e[t]);
|
21391
21390
|
if (ti)
|
@@ -21421,7 +21420,7 @@ var c = (a2, e, t) => new Promise((i, r) => {
|
|
21421
21420
|
n((t = t.apply(a2, e)).next());
|
21422
21421
|
});
|
21423
21422
|
var yr = ro((Dc, ho) => {
|
21424
|
-
ho.exports = { version: "0.12.
|
21423
|
+
ho.exports = { version: "0.12.20-alpha.1", 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"] };
|
21425
21424
|
});
|
21426
21425
|
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 || {});
|
21427
21426
|
var so = ((e) => (e.CHAT = "chat", e))(so || {});
|
@@ -21553,7 +21552,7 @@ function lo() {
|
|
21553
21552
|
}
|
21554
21553
|
var Qe = lo();
|
21555
21554
|
var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
21556
|
-
var
|
21555
|
+
var v = class a extends Error {
|
21557
21556
|
constructor(t, i, r, s, o, n = false) {
|
21558
21557
|
super(s);
|
21559
21558
|
this.code = t;
|
@@ -21584,111 +21583,111 @@ var f = class a extends Error {
|
|
21584
21583
|
};
|
21585
21584
|
var uo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21586
21585
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21587
|
-
return new
|
21586
|
+
return new v(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21588
21587
|
}, WebSocketConnectionLost(a2, e = "") {
|
21589
|
-
return new
|
21588
|
+
return new v(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21590
21589
|
}, AbnormalClose(a2, e = "") {
|
21591
|
-
return new
|
21590
|
+
return new v(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21592
21591
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21593
|
-
return new
|
21592
|
+
return new v(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21594
21593
|
}, EndpointUnreachable(a2, e = "") {
|
21595
|
-
return new
|
21594
|
+
return new v(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21596
21595
|
}, InvalidTokenFormat(a2, e = "") {
|
21597
|
-
return new
|
21596
|
+
return new v(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21598
21597
|
}, InitConfigNotAvailable(a2, e = "") {
|
21599
|
-
return new
|
21598
|
+
return new v(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21600
21599
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21601
|
-
return new
|
21600
|
+
return new v(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21602
21601
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21603
|
-
return new
|
21602
|
+
return new v(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21604
21603
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21605
|
-
return new
|
21604
|
+
return new v(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21606
21605
|
}, DeviceInUse(a2, e, t = "") {
|
21607
|
-
return new
|
21606
|
+
return new v(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21608
21607
|
}, DeviceLostMidway(a2, e, t = "") {
|
21609
|
-
return new
|
21608
|
+
return new v(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21610
21609
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21611
|
-
return new
|
21610
|
+
return new v(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21612
21611
|
}, InvalidVideoSettings(a2, e = "") {
|
21613
|
-
return new
|
21612
|
+
return new v(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
21614
21613
|
}, AutoplayBlocked(a2, e = "") {
|
21615
|
-
return new
|
21614
|
+
return new v(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
21616
21615
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21617
|
-
return new
|
21616
|
+
return new v(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21618
21617
|
}, OverConstrained(a2, e, t = "") {
|
21619
|
-
return new
|
21618
|
+
return new v(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21620
21619
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21621
|
-
return new
|
21620
|
+
return new v(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21622
21621
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21623
|
-
return new
|
21622
|
+
return new v(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21624
21623
|
}, CurrentTabNotShared() {
|
21625
|
-
return new
|
21624
|
+
return new v(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
|
21626
21625
|
}, AudioPlaybackError(a2) {
|
21627
|
-
return new
|
21626
|
+
return new v(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21628
21627
|
}, SelectedDeviceMissing(a2) {
|
21629
|
-
return new
|
21628
|
+
return new v(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21630
21629
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21631
|
-
return new
|
21630
|
+
return new v(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21632
21631
|
}, CreateAnswerFailed(a2, e = "") {
|
21633
|
-
return new
|
21632
|
+
return new v(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21634
21633
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21635
|
-
return new
|
21634
|
+
return new v(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21636
21635
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21637
|
-
return new
|
21636
|
+
return new v(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21638
21637
|
}, ICEFailure(a2, e = "", t = false) {
|
21639
|
-
return new
|
21638
|
+
return new v(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21640
21639
|
}, ICEDisconnected(a2, e = "") {
|
21641
|
-
return new
|
21640
|
+
return new v(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21642
21641
|
}, StatsFailed(a2, e = "") {
|
21643
|
-
return new
|
21642
|
+
return new v(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21644
21643
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21645
|
-
return new
|
21644
|
+
return new v(a2, "ServerErrors", e, t, t, uo.includes(e));
|
21646
21645
|
}, AlreadyJoined(a2, e = "") {
|
21647
|
-
return new
|
21646
|
+
return new v(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21648
21647
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21649
|
-
return new
|
21648
|
+
return new v(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21650
21649
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21651
|
-
return new
|
21650
|
+
return new v(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21652
21651
|
}, Signalling(a2, e) {
|
21653
|
-
return new
|
21652
|
+
return new v(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21654
21653
|
}, Unknown(a2, e) {
|
21655
|
-
return new
|
21654
|
+
return new v(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21656
21655
|
}, NotReady(a2, e = "") {
|
21657
|
-
return new
|
21656
|
+
return new v(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21658
21657
|
}, JsonParsingFailed(a2, e, t = "") {
|
21659
|
-
return new
|
21658
|
+
return new v(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21660
21659
|
}, TrackMetadataMissing(a2, e = "") {
|
21661
|
-
return new
|
21660
|
+
return new v(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21662
21661
|
}, RTCTrackMissing(a2, e = "") {
|
21663
|
-
return new
|
21662
|
+
return new v(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21664
21663
|
}, PeerMetadataMissing(a2, e = "") {
|
21665
|
-
return new
|
21664
|
+
return new v(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21666
21665
|
}, ValidationFailed(a2, e) {
|
21667
|
-
return new
|
21666
|
+
return new v(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21668
21667
|
}, InvalidRole(a2, e) {
|
21669
|
-
return new
|
21668
|
+
return new v(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21670
21669
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21671
|
-
return new
|
21670
|
+
return new v(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21672
21671
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21673
|
-
return new
|
21672
|
+
return new v(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21674
21673
|
}, MissingMediaDevices() {
|
21675
|
-
return new
|
21674
|
+
return new v(P4.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
|
21676
21675
|
}, MissingRTCPeerConnection() {
|
21677
|
-
return new
|
21676
|
+
return new v(P4.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
|
21678
21677
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21679
|
-
return new
|
21678
|
+
return new v(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21680
21679
|
}, InitFailed(a2, e = "") {
|
21681
|
-
return new
|
21680
|
+
return new v(7002, "InitFailed", a2, "Plugin init failed", e);
|
21682
21681
|
}, ProcessingFailed(a2, e = "") {
|
21683
|
-
return new
|
21682
|
+
return new v(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
|
21684
21683
|
}, AddAlreadyInProgress(a2, e = "") {
|
21685
|
-
return new
|
21684
|
+
return new v(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
|
21686
21685
|
}, DeviceNotSupported(a2, e = "") {
|
21687
|
-
return new
|
21686
|
+
return new v(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21688
21687
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21689
|
-
return new
|
21688
|
+
return new v(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21690
21689
|
}, NoEntryPlaying(a2, e) {
|
21691
|
-
return new
|
21690
|
+
return new v(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21692
21691
|
} } };
|
21693
21692
|
var Mr = class {
|
21694
21693
|
constructor() {
|
@@ -21774,12 +21773,12 @@ var H = class {
|
|
21774
21773
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = mo(), this.device_id = ai();
|
21775
21774
|
}
|
21776
21775
|
toSignalParams() {
|
21777
|
-
return { name: this.name, info: M(
|
21776
|
+
return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21778
21777
|
}
|
21779
21778
|
};
|
21780
21779
|
var y = class {
|
21781
21780
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
21782
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(
|
21781
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
21783
21782
|
return new H({ name: o, level: n, properties: d });
|
21784
21783
|
}
|
21785
21784
|
static disconnect(e, t) {
|
@@ -21793,7 +21792,7 @@ var y = class {
|
|
21793
21792
|
}
|
21794
21793
|
static join(i) {
|
21795
21794
|
var r = i, { error: e } = r, t = gr(r, ["error"]);
|
21796
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(
|
21795
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
21797
21796
|
return new H({ name: s, level: o, properties: n });
|
21798
21797
|
}
|
21799
21798
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -21836,7 +21835,7 @@ var y = class {
|
|
21836
21835
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
21837
21836
|
if (!t && e.degradedAt instanceof Date) {
|
21838
21837
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
21839
|
-
s = M(
|
21838
|
+
s = M(m({}, s), { duration: n, restoredAt: o });
|
21840
21839
|
}
|
21841
21840
|
return new H({ name: i, level: r, properties: s });
|
21842
21841
|
}
|
@@ -21863,17 +21862,17 @@ var y = class {
|
|
21863
21862
|
return new H({ name: "krisp.stop", level: 1 });
|
21864
21863
|
}
|
21865
21864
|
static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
|
21866
|
-
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties:
|
21865
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ reason: i, type: t }, r) });
|
21867
21866
|
}
|
21868
21867
|
static eventNameFor(e, t) {
|
21869
21868
|
return `${e}.${t ? "success" : "failed"}`;
|
21870
21869
|
}
|
21871
21870
|
static getPropertiesWithError(e, t) {
|
21872
21871
|
let i = this.getErrorProperties(t);
|
21873
|
-
return e =
|
21872
|
+
return e = m(m({}, i), e), e;
|
21874
21873
|
}
|
21875
21874
|
static getErrorProperties(e) {
|
21876
|
-
return e ? e instanceof
|
21875
|
+
return e ? e instanceof v ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
21877
21876
|
}
|
21878
21877
|
};
|
21879
21878
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
@@ -22460,14 +22459,14 @@ var Vt = class {
|
|
22460
22459
|
static sendFeedback(s) {
|
22461
22460
|
return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
|
22462
22461
|
l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
|
22463
|
-
let o = new URL("v2/client/feedback", t), n = M(
|
22462
|
+
let o = new URL("v2/client/feedback", t), n = M(m({}, i), { payload: r });
|
22464
22463
|
try {
|
22465
22464
|
let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
|
22466
22465
|
try {
|
22467
22466
|
this.handleError(d);
|
22468
22467
|
return;
|
22469
22468
|
} catch (u) {
|
22470
|
-
throw l.e(this.TAG, "error", u.message, d.status), u instanceof
|
22469
|
+
throw l.e(this.TAG, "error", u.message, d.status), u instanceof v ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
|
22471
22470
|
}
|
22472
22471
|
} catch (d) {
|
22473
22472
|
let u = d;
|
@@ -22758,7 +22757,7 @@ import { selectLocalPeerName as selectLocalPeerName3, useHMSActions as useHMSAct
|
|
22758
22757
|
|
22759
22758
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
22760
22759
|
init_define_process_env();
|
22761
|
-
import React65 from "react";
|
22760
|
+
import React65, { useEffect as useEffect23, useRef as useRef18 } from "react";
|
22762
22761
|
import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
|
22763
22762
|
var ChangeNameContent = ({
|
22764
22763
|
changeName,
|
@@ -22769,6 +22768,15 @@ var ChangeNameContent = ({
|
|
22769
22768
|
onExit,
|
22770
22769
|
onBackClick
|
22771
22770
|
}) => {
|
22771
|
+
const inputRef = useRef18(null);
|
22772
|
+
useEffect23(() => {
|
22773
|
+
if (isMobile) {
|
22774
|
+
setTimeout(() => {
|
22775
|
+
var _a7;
|
22776
|
+
(_a7 = inputRef.current) == null ? void 0 : _a7.focus();
|
22777
|
+
}, 200);
|
22778
|
+
}
|
22779
|
+
}, [isMobile]);
|
22772
22780
|
return /* @__PURE__ */ React65.createElement(
|
22773
22781
|
"form",
|
22774
22782
|
{
|
@@ -22804,9 +22812,10 @@ var ChangeNameContent = ({
|
|
22804
22812
|
/* @__PURE__ */ React65.createElement(Flex, { justify: "center", align: "center", css: { my: "$8", w: "100%", "@md": { px: "$8" } } }, /* @__PURE__ */ React65.createElement(
|
22805
22813
|
Input,
|
22806
22814
|
{
|
22815
|
+
ref: inputRef,
|
22807
22816
|
css: { width: "100%", bg: "$surface_default" },
|
22808
22817
|
value: currentName,
|
22809
|
-
type:
|
22818
|
+
type: "text",
|
22810
22819
|
onChange: (e) => {
|
22811
22820
|
setCurrentName(e.target.value);
|
22812
22821
|
},
|
@@ -22903,7 +22912,7 @@ var ChangeNameModal = ({
|
|
22903
22912
|
}
|
22904
22913
|
};
|
22905
22914
|
if (isMobile) {
|
22906
|
-
return /* @__PURE__ */ React66.createElement(Sheet.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React66.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$8 0" } }, /* @__PURE__ */ React66.createElement(ChangeNameContent, __spreadValues({}, props))));
|
22915
|
+
return /* @__PURE__ */ React66.createElement(Sheet.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React66.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$8 0" }, onOpenAutoFocus: (e) => e.preventDefault() }, /* @__PURE__ */ React66.createElement(ChangeNameContent, __spreadValues({}, props))));
|
22907
22916
|
}
|
22908
22917
|
return /* @__PURE__ */ React66.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React66.createElement(Dialog.Portal, null, /* @__PURE__ */ React66.createElement(Dialog.Overlay, null), /* @__PURE__ */ React66.createElement(Dialog.Content, { css: { bg: "$surface_dim", width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React66.createElement(ChangeNameContent, __spreadValues({}, props)))));
|
22909
22918
|
};
|
@@ -22930,13 +22939,13 @@ var useSheetToggle = (sheetType) => {
|
|
22930
22939
|
|
22931
22940
|
// src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx
|
22932
22941
|
init_define_process_env();
|
22933
|
-
import { useEffect as
|
22942
|
+
import { useEffect as useEffect24, useState as useState30 } from "react";
|
22934
22943
|
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
|
22935
22944
|
var useUnreadPollQuizPresent = () => {
|
22936
22945
|
const localPeerID = useHMSStore32(Ee);
|
22937
22946
|
const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
|
22938
22947
|
const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
|
22939
|
-
|
22948
|
+
useEffect24(() => {
|
22940
22949
|
if (!notification) {
|
22941
22950
|
return;
|
22942
22951
|
}
|
@@ -22975,7 +22984,7 @@ var MwebOptions = ({
|
|
22975
22984
|
const { showPolls } = useShowPolls();
|
22976
22985
|
const togglePollView = usePollViewToggle();
|
22977
22986
|
const peerCount = useHMSStore33(selectPeerCount3);
|
22978
|
-
const emojiCardRef =
|
22987
|
+
const emojiCardRef = useRef19(null);
|
22979
22988
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
22980
22989
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
22981
22990
|
const { title, description } = useRoomLayoutHeader();
|
@@ -23739,7 +23748,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
23739
23748
|
|
23740
23749
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
23741
23750
|
init_define_process_env();
|
23742
|
-
import React77, { useEffect as
|
23751
|
+
import React77, { useEffect as useEffect25 } from "react";
|
23743
23752
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
23744
23753
|
import {
|
23745
23754
|
selectAppData as selectAppData5,
|
@@ -23760,7 +23769,7 @@ var VBToggle = () => {
|
|
23760
23769
|
const loadingEffects = useHMSStore35(selectAppData5(APP_DATA.loadingEffects));
|
23761
23770
|
const hmsActions = useHMSActions28();
|
23762
23771
|
const { toggleVideo } = useAVToggle3();
|
23763
|
-
|
23772
|
+
useEffect25(() => {
|
23764
23773
|
var _a7;
|
23765
23774
|
if (!toggleVideo) {
|
23766
23775
|
(_a7 = VBHandler) == null ? void 0 : _a7.reset();
|
@@ -23995,7 +24004,7 @@ var RemoveParticipant = ({ peerId }) => {
|
|
23995
24004
|
|
23996
24005
|
// src/Prebuilt/components/Footer/RoleAccordion.tsx
|
23997
24006
|
init_define_process_env();
|
23998
|
-
import React82, { useEffect as
|
24007
|
+
import React82, { useEffect as useEffect26 } from "react";
|
23999
24008
|
import { useMeasure } from "react-use";
|
24000
24009
|
import { FixedSizeList } from "react-window";
|
24001
24010
|
import { selectIsLargeRoom, useHMSStore as useHMSStore41, usePaginatedParticipants } from "@100mslive/react-sdk";
|
@@ -24239,7 +24248,7 @@ var RoleAccordion = ({
|
|
24239
24248
|
const { bringAllToStage, bring_to_stage_label, canBringToStage, lowerAllHands } = useGroupOnStageActions({
|
24240
24249
|
peers: peersInAccordion
|
24241
24250
|
});
|
24242
|
-
|
24251
|
+
useEffect26(() => {
|
24243
24252
|
if (!isOffStageRole || !isLargeRoom) {
|
24244
24253
|
return;
|
24245
24254
|
}
|
@@ -24327,13 +24336,13 @@ var RoleAccordion = ({
|
|
24327
24336
|
|
24328
24337
|
// src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
|
24329
24338
|
init_define_process_env();
|
24330
|
-
import { useEffect as
|
24339
|
+
import { useEffect as useEffect27 } from "react";
|
24331
24340
|
import { selectAppData as selectAppData6, useHMSStore as useHMSStore42 } from "@100mslive/react-sdk";
|
24332
24341
|
var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
24333
24342
|
const { elements } = useRoomLayoutConferencingScreen();
|
24334
24343
|
const sidepane = useHMSStore42(selectAppData6(APP_DATA.sidePane));
|
24335
24344
|
const resetSidePane = useSidepaneReset();
|
24336
|
-
|
24345
|
+
useEffect27(() => {
|
24337
24346
|
if (sidepane === sidepaneOption && !(elements == null ? void 0 : elements[layoutKey])) {
|
24338
24347
|
resetSidePane();
|
24339
24348
|
}
|
@@ -24730,13 +24739,13 @@ var ParticipantSearch = ({
|
|
24730
24739
|
|
24731
24740
|
// src/Prebuilt/components/Footer/PollsToggle.tsx
|
24732
24741
|
init_define_process_env();
|
24733
|
-
import React84, { useEffect as
|
24742
|
+
import React84, { useEffect as useEffect28 } from "react";
|
24734
24743
|
import { QuizActiveIcon as QuizActiveIcon2, QuizIcon as QuizIcon2 } from "@100mslive/react-icons";
|
24735
24744
|
var PollsToggle = () => {
|
24736
24745
|
const isPollsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.POLLS);
|
24737
24746
|
const togglePollView = usePollViewToggle();
|
24738
24747
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
24739
|
-
|
24748
|
+
useEffect28(() => {
|
24740
24749
|
if (unreadPollQuiz && isPollsOpen) {
|
24741
24750
|
setUnreadPollQuiz(false);
|
24742
24751
|
}
|
@@ -24807,7 +24816,7 @@ var Footer2 = ({
|
|
24807
24816
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
24808
24817
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
24809
24818
|
const { showPolls } = useShowPolls();
|
24810
|
-
|
24819
|
+
useEffect29(() => {
|
24811
24820
|
if (!isChatOpen && openByDefault) {
|
24812
24821
|
toggleChat();
|
24813
24822
|
}
|
@@ -24907,7 +24916,7 @@ function HLSFailureModal() {
|
|
24907
24916
|
|
24908
24917
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
24909
24918
|
init_define_process_env();
|
24910
|
-
import React138, { useEffect as
|
24919
|
+
import React138, { useEffect as useEffect45 } from "react";
|
24911
24920
|
import {
|
24912
24921
|
selectIsInPreview,
|
24913
24922
|
selectLocalPeerName as selectLocalPeerName4,
|
@@ -24920,7 +24929,7 @@ import {
|
|
24920
24929
|
|
24921
24930
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
24922
24931
|
init_define_process_env();
|
24923
|
-
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as
|
24932
|
+
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect44, useMemo as useMemo15, useState as useState57 } from "react";
|
24924
24933
|
import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
|
24925
24934
|
import {
|
24926
24935
|
HMSRoomState as HMSRoomState6,
|
@@ -24941,7 +24950,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
24941
24950
|
|
24942
24951
|
// src/Prebuilt/layouts/SidePane.tsx
|
24943
24952
|
init_define_process_env();
|
24944
|
-
import React132, { useEffect as
|
24953
|
+
import React132, { useEffect as useEffect43 } from "react";
|
24945
24954
|
import { useMedia as useMedia25 } from "react-use";
|
24946
24955
|
import { match as match12 } from "ts-pattern";
|
24947
24956
|
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
|
@@ -24952,7 +24961,7 @@ import React109 from "react";
|
|
24952
24961
|
|
24953
24962
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
24954
24963
|
init_define_process_env();
|
24955
|
-
import React90, { useEffect as
|
24964
|
+
import React90, { useEffect as useEffect30, useMemo as useMemo9, useRef as useRef20, useState as useState38 } from "react";
|
24956
24965
|
import {
|
24957
24966
|
selectLocalPeerRoleName as selectLocalPeerRoleName2,
|
24958
24967
|
selectPermissions as selectPermissions16,
|
@@ -25114,8 +25123,8 @@ var AddMenu = () => {
|
|
25114
25123
|
const [titleError, setTitleError] = useState38("");
|
25115
25124
|
const { setPollState } = usePollViewState();
|
25116
25125
|
const [interactionType, setInteractionType] = useState38("Poll" /* POLL */);
|
25117
|
-
const inputRef =
|
25118
|
-
|
25126
|
+
const inputRef = useRef20(null);
|
25127
|
+
useEffect30(() => {
|
25119
25128
|
if (inputRef.current) {
|
25120
25129
|
inputRef.current.focus();
|
25121
25130
|
}
|
@@ -25202,7 +25211,7 @@ var PrevMenu = () => {
|
|
25202
25211
|
[polls]
|
25203
25212
|
);
|
25204
25213
|
const permissions = useHMSStore48(selectPermissions16);
|
25205
|
-
|
25214
|
+
useEffect30(() => {
|
25206
25215
|
const updatePolls = () => __async(void 0, null, function* () {
|
25207
25216
|
yield hmsActions.interactivityCenter.getPolls();
|
25208
25217
|
});
|
@@ -25244,7 +25253,7 @@ import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
|
25244
25253
|
|
25245
25254
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
25246
25255
|
init_define_process_env();
|
25247
|
-
import React98, { useCallback as useCallback26, useRef as
|
25256
|
+
import React98, { useCallback as useCallback26, useRef as useRef21, useState as useState39 } from "react";
|
25248
25257
|
import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
|
25249
25258
|
|
25250
25259
|
// src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
|
@@ -25538,7 +25547,7 @@ var QuestionForm = ({
|
|
25538
25547
|
isQuiz
|
25539
25548
|
}) => {
|
25540
25549
|
var _a7;
|
25541
|
-
const ref =
|
25550
|
+
const ref = useRef21(null);
|
25542
25551
|
const selectionBg = useDropdownSelection();
|
25543
25552
|
const [openDelete, setOpenDelete] = useState39(false);
|
25544
25553
|
const [open, setOpen] = useState39(false);
|
@@ -25962,7 +25971,7 @@ var StatisticBox = ({ title, value = 0 }) => {
|
|
25962
25971
|
|
25963
25972
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
25964
25973
|
init_define_process_env();
|
25965
|
-
import { useEffect as
|
25974
|
+
import { useEffect as useEffect31, useState as useState41 } from "react";
|
25966
25975
|
import {
|
25967
25976
|
selectPollByID as selectPollByID2,
|
25968
25977
|
useHMSActions as useHMSActions36,
|
@@ -25980,7 +25989,7 @@ var useQuizSummary = (quizID) => {
|
|
25980
25989
|
correctUsers: 0
|
25981
25990
|
};
|
25982
25991
|
const [calculations, setCalculations] = useState41({ maxPossibleScore: 0, totalResponses: 0 });
|
25983
|
-
|
25992
|
+
useEffect31(() => {
|
25984
25993
|
const fetchLeaderboardData = () => __async(void 0, null, function* () {
|
25985
25994
|
var _a7;
|
25986
25995
|
if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
|
@@ -26120,7 +26129,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
26120
26129
|
|
26121
26130
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
26122
26131
|
init_define_process_env();
|
26123
|
-
import React108, { useEffect as
|
26132
|
+
import React108, { useEffect as useEffect34, useRef as useRef23, useState as useState45 } from "react";
|
26124
26133
|
import {
|
26125
26134
|
selectLocalPeer as selectLocalPeer4,
|
26126
26135
|
selectPeerNameByID as selectPeerNameByID4,
|
@@ -26137,7 +26146,7 @@ import React106 from "react";
|
|
26137
26146
|
|
26138
26147
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
26139
26148
|
init_define_process_env();
|
26140
|
-
import React105, { useCallback as useCallback27, useEffect as
|
26149
|
+
import React105, { useCallback as useCallback27, useEffect as useEffect32, useMemo as useMemo12, useRef as useRef22, useState as useState43 } from "react";
|
26141
26150
|
import { match as match9 } from "ts-pattern";
|
26142
26151
|
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
26143
26152
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon4, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
|
@@ -26163,14 +26172,14 @@ var QuestionCard2 = ({
|
|
26163
26172
|
const localPeerRoleName = useHMSStore53(selectLocalPeerRoleName3);
|
26164
26173
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
26165
26174
|
const [localPeerChoice, setLocalPeerChoice] = useState43(localPeerResponse);
|
26166
|
-
|
26175
|
+
useEffect32(() => {
|
26167
26176
|
setLocalPeerChoice(localPeerResponse);
|
26168
26177
|
}, [localPeerResponse]);
|
26169
26178
|
const showVoteCount = roleCanViewResponse && (localPeerChoice || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
26170
26179
|
const isLive = pollState === "started";
|
26171
26180
|
const pollEnded = pollState === "stopped";
|
26172
26181
|
const canRespond = isLive && !localPeerChoice;
|
26173
|
-
const startTime =
|
26182
|
+
const startTime = useRef22(Date.now());
|
26174
26183
|
const isCorrectAnswer = checkCorrectAnswer(answer, localPeerChoice, type);
|
26175
26184
|
const [singleOptionAnswer, setSingleOptionAnswer] = useState43();
|
26176
26185
|
const [multipleOptionAnswer, setMultipleOptionAnswer] = useState43(/* @__PURE__ */ new Set());
|
@@ -26345,7 +26354,7 @@ var StandardView = ({
|
|
26345
26354
|
|
26346
26355
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
26347
26356
|
init_define_process_env();
|
26348
|
-
import React107, { useEffect as
|
26357
|
+
import React107, { useEffect as useEffect33, useState as useState44 } from "react";
|
26349
26358
|
var TimedView = ({
|
26350
26359
|
poll,
|
26351
26360
|
localPeerResponses,
|
@@ -26355,7 +26364,7 @@ var TimedView = ({
|
|
26355
26364
|
const [currentIndex, setCurrentIndex] = useState44(getIndexToShow(localPeerResponses));
|
26356
26365
|
const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
|
26357
26366
|
const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
|
26358
|
-
|
26367
|
+
useEffect33(() => {
|
26359
26368
|
setCurrentIndex(getIndexToShow(localPeerResponses));
|
26360
26369
|
}, [localPeerResponses]);
|
26361
26370
|
if (!activeQuestion && !attemptedAll || !((_c = poll.questions) == null ? void 0 : _c.length)) {
|
@@ -26395,16 +26404,16 @@ var Voting = ({ id, toggleVoting }) => {
|
|
26395
26404
|
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
26396
26405
|
const { setPollView } = usePollViewState();
|
26397
26406
|
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
26398
|
-
const fetchedInitialResponses =
|
26407
|
+
const fetchedInitialResponses = useRef23(false);
|
26399
26408
|
const [savedResponses, setSavedResponses] = useState45({});
|
26400
26409
|
const localPeer = useHMSStore54(selectLocalPeer4);
|
26401
26410
|
const localPeerId = localPeer == null ? void 0 : localPeer.id;
|
26402
26411
|
const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
|
26403
|
-
|
26412
|
+
useEffect34(() => {
|
26404
26413
|
fetchedInitialResponses.current = false;
|
26405
26414
|
setSavedResponses({});
|
26406
26415
|
}, [id, setSavedResponses]);
|
26407
|
-
|
26416
|
+
useEffect34(() => {
|
26408
26417
|
const getResponses = () => __async(void 0, null, function* () {
|
26409
26418
|
if (poll && actions.interactivityCenter && !fetchedInitialResponses.current) {
|
26410
26419
|
yield actions.interactivityCenter.getPollResponses(poll, true);
|
@@ -26413,7 +26422,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
26413
26422
|
});
|
26414
26423
|
getResponses();
|
26415
26424
|
}, [poll, actions.interactivityCenter]);
|
26416
|
-
|
26425
|
+
useEffect34(() => {
|
26417
26426
|
if (poll == null ? void 0 : poll.questions) {
|
26418
26427
|
const localPeerResponses = getPeerResponses(poll.questions, localPeerId, customerUserId);
|
26419
26428
|
localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
|
@@ -26511,7 +26520,7 @@ import { CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
|
|
26511
26520
|
|
26512
26521
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
26513
26522
|
init_define_process_env();
|
26514
|
-
import React110, { useEffect as
|
26523
|
+
import React110, { useEffect as useEffect35, useState as useState46 } from "react";
|
26515
26524
|
import { selectDominantSpeaker, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
26516
26525
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
26517
26526
|
var SpeakerTag = () => {
|
@@ -26540,7 +26549,7 @@ var Logo = () => {
|
|
26540
26549
|
const roomLayout = useRoomLayout();
|
26541
26550
|
const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
|
26542
26551
|
const [hideImage, setHideImage] = useState46(false);
|
26543
|
-
|
26552
|
+
useEffect35(() => {
|
26544
26553
|
if (hideImage) {
|
26545
26554
|
setHideImage(false);
|
26546
26555
|
}
|
@@ -26564,10 +26573,10 @@ import React112 from "react";
|
|
26564
26573
|
|
26565
26574
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
26566
26575
|
init_define_process_env();
|
26567
|
-
import React111, { useEffect as
|
26576
|
+
import React111, { useEffect as useEffect36, useState as useState47 } from "react";
|
26568
26577
|
var Duration = ({ timestamp }) => {
|
26569
26578
|
const [elapsedTime, setElapsedTime] = useState47(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
26570
|
-
|
26579
|
+
useEffect36(() => {
|
26571
26580
|
const timerAdded = setInterval(() => {
|
26572
26581
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
26573
26582
|
}, 1e3);
|
@@ -26609,7 +26618,7 @@ var ShowRoomDetailHeader = () => {
|
|
26609
26618
|
|
26610
26619
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
26611
26620
|
init_define_process_env();
|
26612
|
-
import React124, { useEffect as
|
26621
|
+
import React124, { useEffect as useEffect41, useState as useState53 } from "react";
|
26613
26622
|
import { useMedia as useMedia21 } from "react-use";
|
26614
26623
|
import { match as match11 } from "ts-pattern";
|
26615
26624
|
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
@@ -26617,7 +26626,7 @@ import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
|
|
26617
26626
|
|
26618
26627
|
// src/Prebuilt/components/Chat/Chat.tsx
|
26619
26628
|
init_define_process_env();
|
26620
|
-
import React121, { useCallback as useCallback31, useRef as
|
26629
|
+
import React121, { useCallback as useCallback31, useRef as useRef26 } from "react";
|
26621
26630
|
import { useMedia as useMedia20 } from "react-use";
|
26622
26631
|
import { match as match10 } from "ts-pattern";
|
26623
26632
|
import { selectHMSMessagesCount, useHMSActions as useHMSActions42, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
|
@@ -26625,7 +26634,7 @@ import { ChevronDownIcon as ChevronDownIcon7 } from "@100mslive/react-icons";
|
|
26625
26634
|
|
26626
26635
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
26627
26636
|
init_define_process_env();
|
26628
|
-
import React116, { useCallback as useCallback29, useEffect as
|
26637
|
+
import React116, { useCallback as useCallback29, useEffect as useEffect38, useRef as useRef25, useState as useState50 } from "react";
|
26629
26638
|
import { useMedia as useMedia18 } from "react-use";
|
26630
26639
|
import data2 from "@emoji-mart/data";
|
26631
26640
|
import Picker from "@emoji-mart/react";
|
@@ -26948,10 +26957,10 @@ var useChatDraftMessage = () => {
|
|
26948
26957
|
|
26949
26958
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
26950
26959
|
init_define_process_env();
|
26951
|
-
import { useEffect as
|
26960
|
+
import { useEffect as useEffect37, useRef as useRef24 } from "react";
|
26952
26961
|
var useEmojiPickerStyles = (showing) => {
|
26953
|
-
const ref =
|
26954
|
-
|
26962
|
+
const ref = useRef24(null);
|
26963
|
+
useEffect37(() => {
|
26955
26964
|
if (showing) {
|
26956
26965
|
setTimeout(() => {
|
26957
26966
|
var _a7, _b7;
|
@@ -27027,7 +27036,7 @@ function EmojiPicker({ onSelect }) {
|
|
27027
27036
|
var ChatFooter = ({ onSend, children }) => {
|
27028
27037
|
var _a7, _b7, _c, _d, _e;
|
27029
27038
|
const hmsActions = useHMSActions40();
|
27030
|
-
const inputRef =
|
27039
|
+
const inputRef = useRef25(null);
|
27031
27040
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
27032
27041
|
const isMobile = useMedia18(config.media.md);
|
27033
27042
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
@@ -27043,7 +27052,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27043
27052
|
const isMwebHLSStream = useMobileHLSStream();
|
27044
27053
|
const [messageLengthExceeded, setMessageLengthExceeded] = useState50(false);
|
27045
27054
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
27046
|
-
|
27055
|
+
useEffect38(() => {
|
27047
27056
|
var _a8, _b8;
|
27048
27057
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
27049
27058
|
setRoleSelector(defaultSelection);
|
@@ -27092,7 +27101,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27092
27101
|
});
|
27093
27102
|
}
|
27094
27103
|
}), [selectedRole, selectedPeer, hmsActions, onSend]);
|
27095
|
-
|
27104
|
+
useEffect38(() => {
|
27096
27105
|
const messageElement = inputRef.current;
|
27097
27106
|
if (messageElement) {
|
27098
27107
|
messageElement.value = draftMessage;
|
@@ -27100,7 +27109,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27100
27109
|
setMessageLengthExceeded(draftMessage.length > CHAT_MESSAGE_LIMIT);
|
27101
27110
|
}
|
27102
27111
|
}, [draftMessage]);
|
27103
|
-
|
27112
|
+
useEffect38(() => {
|
27104
27113
|
const messageElement = inputRef.current;
|
27105
27114
|
return () => {
|
27106
27115
|
setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
|
@@ -27290,7 +27299,7 @@ var ChatBlocked = () => {
|
|
27290
27299
|
|
27291
27300
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
27292
27301
|
init_define_process_env();
|
27293
|
-
import React120, { useEffect as
|
27302
|
+
import React120, { useEffect as useEffect39, useState as useState51 } from "react";
|
27294
27303
|
import { useSwipeable } from "react-swipeable";
|
27295
27304
|
import { useMedia as useMedia19 } from "react-use";
|
27296
27305
|
import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
@@ -27373,7 +27382,7 @@ var PinnedMessage = () => {
|
|
27373
27382
|
onSwipedUp: () => showNextPinnedMessage(),
|
27374
27383
|
onSwipedDown: () => showPreviousPinnedMessage()
|
27375
27384
|
});
|
27376
|
-
|
27385
|
+
useEffect39(() => {
|
27377
27386
|
const count = (pinnedMessages == null ? void 0 : pinnedMessages.length) || 1;
|
27378
27387
|
if (pinnedMessageIndex >= count) {
|
27379
27388
|
setPinnedMessageIndex(count - 1);
|
@@ -27466,7 +27475,7 @@ var PinnedMessage = () => {
|
|
27466
27475
|
var Chat = () => {
|
27467
27476
|
var _a7, _b7;
|
27468
27477
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27469
|
-
const listRef =
|
27478
|
+
const listRef = useRef26(null);
|
27470
27479
|
const hmsActions = useHMSActions42();
|
27471
27480
|
const vanillaStore = useHMSVanillaStore11();
|
27472
27481
|
const { enabled: isChatEnabled = true } = useHMSStore61(jm("chatState" /* CHAT_STATE */)) || {};
|
@@ -27605,7 +27614,7 @@ var NewMessageIndicator = ({
|
|
27605
27614
|
|
27606
27615
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
27607
27616
|
init_define_process_env();
|
27608
|
-
import React122, { useEffect as
|
27617
|
+
import React122, { useEffect as useEffect40, useState as useState52 } from "react";
|
27609
27618
|
import { useInView } from "react-intersection-observer";
|
27610
27619
|
import { useMeasure as useMeasure2 } from "react-use";
|
27611
27620
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
@@ -27618,7 +27627,7 @@ var LoadMoreParticipants = ({
|
|
27618
27627
|
}) => {
|
27619
27628
|
const { ref, inView } = useInView();
|
27620
27629
|
const [inProgress, setInProgress] = useState52(false);
|
27621
|
-
|
27630
|
+
useEffect40(() => {
|
27622
27631
|
if (hasNext && inView && !inProgress) {
|
27623
27632
|
setInProgress(true);
|
27624
27633
|
loadMore().catch(console.error).finally(() => setInProgress(false));
|
@@ -27657,7 +27666,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
27657
27666
|
const [ref, { width }] = useMeasure2();
|
27658
27667
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
27659
27668
|
const resetSidePane = useSidepaneReset();
|
27660
|
-
|
27669
|
+
useEffect40(() => {
|
27661
27670
|
loadPeers();
|
27662
27671
|
}, []);
|
27663
27672
|
return /* @__PURE__ */ React122.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React122.createElement(Flex, { align: "center" }, /* @__PURE__ */ React122.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React122.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React122.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React122.createElement(
|
@@ -27774,7 +27783,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27774
27783
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
27775
27784
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
27776
27785
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
27777
|
-
|
27786
|
+
useEffect41(() => {
|
27778
27787
|
match11({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
27779
27788
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
27780
27789
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
@@ -27783,7 +27792,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27783
27792
|
resetSidePane();
|
27784
27793
|
});
|
27785
27794
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
27786
|
-
|
27795
|
+
useEffect41(() => {
|
27787
27796
|
setActiveTab(active);
|
27788
27797
|
}, [active]);
|
27789
27798
|
if (activeRole) {
|
@@ -27963,6 +27972,38 @@ import {
|
|
27963
27972
|
} from "@100mslive/react-sdk";
|
27964
27973
|
import { CrossIcon as CrossIcon24, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
27965
27974
|
|
27975
|
+
// src/Prebuilt/components/peerTileUtils.tsx
|
27976
|
+
init_define_process_env();
|
27977
|
+
var PEER_NAME_PLACEHOLDER = "peerName";
|
27978
|
+
var labelMap = /* @__PURE__ */ new Map([
|
27979
|
+
[[true, "screen"].toString(), "Your Screen"],
|
27980
|
+
[[true, "regular"].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
27981
|
+
[[false, "screen"].toString(), `${PEER_NAME_PLACEHOLDER}'s Screen`],
|
27982
|
+
[[false, "regular"].toString(), PEER_NAME_PLACEHOLDER],
|
27983
|
+
[[true, void 0].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
27984
|
+
[[false, void 0].toString(), `${PEER_NAME_PLACEHOLDER}`]
|
27985
|
+
]);
|
27986
|
+
var getVideoTileLabel = ({
|
27987
|
+
peerName,
|
27988
|
+
isLocal,
|
27989
|
+
videoTrack,
|
27990
|
+
audioTrack
|
27991
|
+
}) => {
|
27992
|
+
const isPeerPresent = peerName !== void 0;
|
27993
|
+
if (!isPeerPresent || !videoTrack) {
|
27994
|
+
const label2 = labelMap.get([isLocal, void 0].toString());
|
27995
|
+
return isPeerPresent && label2 ? label2.replace(PEER_NAME_PLACEHOLDER, peerName) : "";
|
27996
|
+
}
|
27997
|
+
const isLocallyMuted = (audioTrack == null ? void 0 : audioTrack.volume) === 0;
|
27998
|
+
let label = labelMap.get([isLocal, videoTrack.source].toString());
|
27999
|
+
if (label) {
|
28000
|
+
label = label.replace(PEER_NAME_PLACEHOLDER, peerName);
|
28001
|
+
} else {
|
28002
|
+
label = `${peerName} ${videoTrack.source}`;
|
28003
|
+
}
|
28004
|
+
return `${label}${isLocallyMuted ? " (Muted for you)" : ""}`;
|
28005
|
+
};
|
28006
|
+
|
27966
28007
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
27967
28008
|
init_define_process_env();
|
27968
28009
|
import React126, { Fragment as Fragment11 } from "react";
|
@@ -28201,7 +28242,7 @@ var TileMenuContent = ({
|
|
28201
28242
|
},
|
28202
28243
|
isAudioEnabled ? /* @__PURE__ */ React126.createElement(MicOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React126.createElement(MicOffIcon5, { height: 20, width: 20 }),
|
28203
28244
|
/* @__PURE__ */ React126.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
|
28204
|
-
) : null, canChangeRole && roles.length > 1 ? /* @__PURE__ */ React126.createElement(
|
28245
|
+
) : null, !isScreenshare && canChangeRole && roles.length > 1 ? /* @__PURE__ */ React126.createElement(
|
28205
28246
|
StyledMenuTile.ItemButton,
|
28206
28247
|
{
|
28207
28248
|
className: dragClassName,
|
@@ -28214,7 +28255,7 @@ var TileMenuContent = ({
|
|
28214
28255
|
},
|
28215
28256
|
/* @__PURE__ */ React126.createElement(PersonSettingsIcon2, { height: 20, width: 20 }),
|
28216
28257
|
/* @__PURE__ */ React126.createElement("span", null, "Switch Role")
|
28217
|
-
) : null, audioTrackID ? /* @__PURE__ */ React126.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ React126.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React126.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React126.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React126.createElement(
|
28258
|
+
) : null, !isIOS && audioTrackID ? /* @__PURE__ */ React126.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ React126.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React126.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React126.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React126.createElement(
|
28218
28259
|
Slider,
|
28219
28260
|
{
|
28220
28261
|
css: { my: "0.5rem" },
|
@@ -28271,6 +28312,7 @@ var TileMenu = ({
|
|
28271
28312
|
const isPrimaryVideoTrack = ((_a7 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
|
28272
28313
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
28273
28314
|
const track = useHMSStore67(selectTrackByID3(videoTrackID));
|
28315
|
+
const audioTrack = useHMSStore67(selectTrackByID3(audioTrackID));
|
28274
28316
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
28275
28317
|
const isMobile = useMedia23(config.media.md);
|
28276
28318
|
const peer = useHMSStore67(selectPeerByID2(peerID));
|
@@ -28278,7 +28320,7 @@ var TileMenu = ({
|
|
28278
28320
|
const [showRoleChangeModal, setShowRoleChangeModal] = useState54(false);
|
28279
28321
|
useDropdownList({ open, name: "TileMenu" });
|
28280
28322
|
const dragClassName = getDragClassName();
|
28281
|
-
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
28323
|
+
if (!peer || !(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
28282
28324
|
return null;
|
28283
28325
|
}
|
28284
28326
|
const openNameChangeModal = () => setShowNameChangeModal(true);
|
@@ -28289,7 +28331,6 @@ var TileMenu = ({
|
|
28289
28331
|
audioTrackID,
|
28290
28332
|
videoTrackID,
|
28291
28333
|
peerID,
|
28292
|
-
isPrimaryVideoTrack,
|
28293
28334
|
showSpotlight,
|
28294
28335
|
showPinAction,
|
28295
28336
|
canMinimise,
|
@@ -28319,38 +28360,12 @@ var TileMenu = ({
|
|
28319
28360
|
borderBottom: "1px solid $border_default"
|
28320
28361
|
}
|
28321
28362
|
},
|
28322
|
-
/* @__PURE__ */ React127.createElement(Box, null, /* @__PURE__ */ React127.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal
|
28363
|
+
/* @__PURE__ */ React127.createElement(Box, null, /* @__PURE__ */ React127.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, getVideoTileLabel({ peerName: peer == null ? void 0 : peer.name, isLocal, audioTrack, videoTrack: track })), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ React127.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
|
28323
28364
|
/* @__PURE__ */ React127.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React127.createElement(CrossIcon24, null))
|
28324
28365
|
), /* @__PURE__ */ React127.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React127.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ React127.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React127.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ React127.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }), showRoleChangeModal && /* @__PURE__ */ React127.createElement(RoleChangeModal, { peerId: peerID, onOpenChange: setShowRoleChangeModal }));
|
28325
28366
|
};
|
28326
28367
|
var TileMenu_default = TileMenu;
|
28327
28368
|
|
28328
|
-
// src/Prebuilt/components/peerTileUtils.jsx
|
28329
|
-
init_define_process_env();
|
28330
|
-
var PEER_NAME_PLACEHOLDER = "peerName";
|
28331
|
-
var labelMap = /* @__PURE__ */ new Map([
|
28332
|
-
[[true, "screen"].toString(), "Your Screen"],
|
28333
|
-
[[true, "regular"].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
28334
|
-
[[false, "screen"].toString(), `${PEER_NAME_PLACEHOLDER}'s Screen`],
|
28335
|
-
[[false, "regular"].toString(), PEER_NAME_PLACEHOLDER],
|
28336
|
-
[[true, void 0].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
28337
|
-
[[false, void 0].toString(), `${PEER_NAME_PLACEHOLDER}`]
|
28338
|
-
]);
|
28339
|
-
var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
28340
|
-
const isPeerPresent = peerName !== void 0;
|
28341
|
-
if (!isPeerPresent || !track) {
|
28342
|
-
return isPeerPresent ? labelMap.get([isLocal, void 0].toString()).replace(PEER_NAME_PLACEHOLDER, peerName) : "";
|
28343
|
-
}
|
28344
|
-
const isLocallyMuted = track.volume === 0;
|
28345
|
-
let label = labelMap.get([isLocal, track.source].toString());
|
28346
|
-
if (label) {
|
28347
|
-
label = label.replace(PEER_NAME_PLACEHOLDER, peerName);
|
28348
|
-
} else {
|
28349
|
-
label = `${peerName} ${track.source}`;
|
28350
|
-
}
|
28351
|
-
return `${label}${isLocallyMuted ? " (Muted for you)" : ""}`;
|
28352
|
-
};
|
28353
|
-
|
28354
28369
|
// src/Prebuilt/components/VideoTile.tsx
|
28355
28370
|
var PeerMetadata = ({ peerId, size }) => {
|
28356
28371
|
const metaData = useHMSStore68(selectPeerMetadata4(peerId));
|
@@ -28395,8 +28410,9 @@ var Tile = ({
|
|
28395
28410
|
});
|
28396
28411
|
const label = getVideoTileLabel({
|
28397
28412
|
peerName,
|
28398
|
-
|
28399
|
-
|
28413
|
+
isLocal,
|
28414
|
+
videoTrack: track,
|
28415
|
+
audioTrack
|
28400
28416
|
});
|
28401
28417
|
const onHoverHandler = useCallback32((event) => {
|
28402
28418
|
setIsMouseHovered(event.type === "mouseenter");
|
@@ -28470,7 +28486,7 @@ var VideoTile_default = VideoTile;
|
|
28470
28486
|
|
28471
28487
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
28472
28488
|
init_define_process_env();
|
28473
|
-
import React131, { useEffect as
|
28489
|
+
import React131, { useEffect as useEffect42, useRef as useRef27, useState as useState56 } from "react";
|
28474
28490
|
import { useMedia as useMedia24 } from "react-use";
|
28475
28491
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes4 } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
28476
28492
|
import {
|
@@ -28579,10 +28595,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28579
28595
|
const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
28580
28596
|
const background = useHMSStore69(qm(APP_DATA.background));
|
28581
28597
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
28582
|
-
const pluginLoadingRef =
|
28598
|
+
const pluginLoadingRef = useRef27(false);
|
28583
28599
|
const inPreview = roomState === HMSRoomState5.Preview;
|
28584
28600
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
28585
|
-
|
28601
|
+
useEffect42(() => {
|
28586
28602
|
const addHMSVBPlugin = () => __async(void 0, null, function* () {
|
28587
28603
|
setLoadingEffects(false);
|
28588
28604
|
if (!role) {
|
@@ -28644,7 +28660,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28644
28660
|
blurAmount,
|
28645
28661
|
setLoadingEffects
|
28646
28662
|
]);
|
28647
|
-
|
28663
|
+
useEffect42(() => {
|
28648
28664
|
if (!isVideoOn) {
|
28649
28665
|
toggleVB();
|
28650
28666
|
}
|
@@ -28883,7 +28899,7 @@ var SidePane = ({
|
|
28883
28899
|
return null;
|
28884
28900
|
});
|
28885
28901
|
const resetSidePane = useSidepaneReset();
|
28886
|
-
|
28902
|
+
useEffect43(() => {
|
28887
28903
|
return () => {
|
28888
28904
|
resetSidePane();
|
28889
28905
|
};
|
@@ -29097,7 +29113,7 @@ var PreviewJoin = ({
|
|
29097
29113
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
29098
29114
|
const { preview_header: previewHeader = {}, virtual_background } = elements || {};
|
29099
29115
|
const aspectRatio = useLocalTileAspectRatio();
|
29100
|
-
|
29116
|
+
useEffect44(() => {
|
29101
29117
|
if (authToken) {
|
29102
29118
|
if (skipPreview) {
|
29103
29119
|
savePreferenceAndJoin();
|
@@ -29106,7 +29122,7 @@ var PreviewJoin = ({
|
|
29106
29122
|
}
|
29107
29123
|
}
|
29108
29124
|
}, [authToken, skipPreview]);
|
29109
|
-
|
29125
|
+
useEffect44(() => {
|
29110
29126
|
if (initialName) {
|
29111
29127
|
setName(initialName);
|
29112
29128
|
}
|
@@ -29249,7 +29265,7 @@ var RoleChangeRequestModal = () => {
|
|
29249
29265
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
29250
29266
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
29251
29267
|
const { virtual_background } = elements || {};
|
29252
|
-
|
29268
|
+
useEffect45(() => {
|
29253
29269
|
if (!(roleChangeRequest == null ? void 0 : roleChangeRequest.role)) {
|
29254
29270
|
return;
|
29255
29271
|
}
|
@@ -29313,7 +29329,7 @@ var RoleChangeRequestModal = () => {
|
|
29313
29329
|
|
29314
29330
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
29315
29331
|
init_define_process_env();
|
29316
|
-
import React157, { Suspense, useEffect as
|
29332
|
+
import React157, { Suspense, useEffect as useEffect59, useState as useState67 } from "react";
|
29317
29333
|
import { useMedia as useMedia38 } from "react-use";
|
29318
29334
|
import { match as match13 } from "ts-pattern";
|
29319
29335
|
import {
|
@@ -29321,27 +29337,28 @@ import {
|
|
29321
29337
|
selectIsLocalScreenShared as selectIsLocalScreenShared2,
|
29322
29338
|
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
29323
29339
|
useHMSActions as useHMSActions48,
|
29324
|
-
useHMSStore as
|
29340
|
+
useHMSStore as useHMSStore84
|
29325
29341
|
} from "@100mslive/react-sdk";
|
29326
29342
|
import { PeopleAddIcon as PeopleAddIcon3, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
29327
29343
|
|
29328
29344
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
29329
29345
|
init_define_process_env();
|
29330
|
-
import React153, { useEffect as
|
29346
|
+
import React153, { useEffect as useEffect54, useMemo as useMemo20, useState as useState65 } from "react";
|
29331
29347
|
import {
|
29332
29348
|
selectLocalPeerID as selectLocalPeerID13,
|
29333
29349
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
29334
29350
|
selectPeers as selectPeers3,
|
29335
29351
|
selectPeerScreenSharing as selectPeerScreenSharing2,
|
29336
29352
|
selectWhiteboard as selectWhiteboard2,
|
29337
|
-
useHMSStore as
|
29353
|
+
useHMSStore as useHMSStore80,
|
29338
29354
|
useHMSVanillaStore as useHMSVanillaStore13
|
29339
29355
|
} from "@100mslive/react-sdk";
|
29340
29356
|
|
29341
29357
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
29342
29358
|
init_define_process_env();
|
29343
|
-
import React144, { useEffect as
|
29359
|
+
import React144, { useEffect as useEffect49, useState as useState59 } from "react";
|
29344
29360
|
import { useMedia as useMedia31 } from "react-use";
|
29361
|
+
import { selectPeerCount as selectPeerCount6, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
|
29345
29362
|
import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
|
29346
29363
|
|
29347
29364
|
// src/Prebuilt/layouts/WaitingView.tsx
|
@@ -29402,7 +29419,7 @@ var WaitingView = React139.memo(
|
|
29402
29419
|
|
29403
29420
|
// src/Prebuilt/components/InsetTile.tsx
|
29404
29421
|
init_define_process_env();
|
29405
|
-
import React141, { useEffect as
|
29422
|
+
import React141, { useEffect as useEffect46, useRef as useRef28 } from "react";
|
29406
29423
|
import Draggable from "react-draggable";
|
29407
29424
|
import { useMedia as useMedia29 } from "react-use";
|
29408
29425
|
import {
|
@@ -29466,8 +29483,8 @@ var InsetTile = ({ peerId }) => {
|
|
29466
29483
|
width = 240;
|
29467
29484
|
height = width / aspectRatio;
|
29468
29485
|
}
|
29469
|
-
const nodeRef =
|
29470
|
-
|
29486
|
+
const nodeRef = useRef28(null);
|
29487
|
+
useEffect46(() => {
|
29471
29488
|
const node = nodeRef.current;
|
29472
29489
|
if (!node || !window.ResizeObserver) {
|
29473
29490
|
return;
|
@@ -29527,7 +29544,7 @@ var InsetTile = ({ peerId }) => {
|
|
29527
29544
|
|
29528
29545
|
// src/Prebuilt/components/Pagination.tsx
|
29529
29546
|
init_define_process_env();
|
29530
|
-
import React142, { useEffect as
|
29547
|
+
import React142, { useEffect as useEffect47 } from "react";
|
29531
29548
|
import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
|
29532
29549
|
var Pagination = ({
|
29533
29550
|
page,
|
@@ -29544,7 +29561,7 @@ var Pagination = ({
|
|
29544
29561
|
e.stopPropagation();
|
29545
29562
|
onPageChange(Math.max(page - 1, 0));
|
29546
29563
|
};
|
29547
|
-
|
29564
|
+
useEffect47(() => {
|
29548
29565
|
if (page >= numPages) {
|
29549
29566
|
onPageChange(Math.max(0, numPages - 1));
|
29550
29567
|
}
|
@@ -29608,7 +29625,7 @@ var Grid = React143.forwardRef(
|
|
29608
29625
|
|
29609
29626
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
29610
29627
|
init_define_process_env();
|
29611
|
-
import { useEffect as
|
29628
|
+
import { useEffect as useEffect48, useMemo as useMemo16, useState as useState58 } from "react";
|
29612
29629
|
import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
|
29613
29630
|
import {
|
29614
29631
|
getPeersWithTiles,
|
@@ -29647,7 +29664,7 @@ var useTileLayout = ({
|
|
29647
29664
|
const [ref, { width, height }] = useMeasure5();
|
29648
29665
|
const isMobile = useMedia30(config.media.lg);
|
29649
29666
|
const [pagesWithTiles, setPagesWithTiles] = useState58([]);
|
29650
|
-
|
29667
|
+
useEffect48(() => {
|
29651
29668
|
if (width === 0 || height === 0) {
|
29652
29669
|
return;
|
29653
29670
|
}
|
@@ -29680,10 +29697,10 @@ var useTileLayout = ({
|
|
29680
29697
|
tileHeight = maxRowHeight;
|
29681
29698
|
} else {
|
29682
29699
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
29683
|
-
for (const
|
29684
|
-
if (
|
29685
|
-
if (tileHeight <
|
29686
|
-
tileHeight =
|
29700
|
+
for (const h of calcHeights) {
|
29701
|
+
if (h < maxRowHeight) {
|
29702
|
+
if (tileHeight < h) {
|
29703
|
+
tileHeight = h;
|
29687
29704
|
}
|
29688
29705
|
}
|
29689
29706
|
}
|
@@ -29717,6 +29734,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29717
29734
|
const isMobile = useMedia31(config.media.md);
|
29718
29735
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
29719
29736
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
29737
|
+
const peerCount = useHMSStore74(selectPeerCount6);
|
29720
29738
|
const pageList = usePagesWithTiles({
|
29721
29739
|
peers,
|
29722
29740
|
maxTileCount
|
@@ -29728,7 +29746,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29728
29746
|
});
|
29729
29747
|
const [page, setPage] = useState59(0);
|
29730
29748
|
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
29731
|
-
|
29749
|
+
useEffect49(() => {
|
29732
29750
|
if (pageSize > 0) {
|
29733
29751
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29734
29752
|
}
|
@@ -29746,8 +29764,8 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29746
29764
|
), pageList.length === 0 ? /* @__PURE__ */ React144.createElement(
|
29747
29765
|
WaitingView,
|
29748
29766
|
{
|
29749
|
-
title: "You're the
|
29750
|
-
subtitle: "Sit back and relax till others join",
|
29767
|
+
title: peerCount <= 1 ? "You're the only one here" : "Glad to have you here",
|
29768
|
+
subtitle: peerCount <= 1 ? "Sit back and relax till others join" : "",
|
29751
29769
|
icon: /* @__PURE__ */ React144.createElement(PeopleAddIcon2, { width: "56px", height: "56px", style: { color: "white" } })
|
29752
29770
|
}
|
29753
29771
|
) : null, isInsetEnabled && /* @__PURE__ */ React144.createElement(InsetTile, null));
|
@@ -29755,15 +29773,15 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29755
29773
|
|
29756
29774
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
29757
29775
|
init_define_process_env();
|
29758
|
-
import React147, { useEffect as
|
29776
|
+
import React147, { useEffect as useEffect51, useState as useState61 } from "react";
|
29759
29777
|
import { useMedia as useMedia33 } from "react-use";
|
29760
|
-
import { selectLocalPeer as selectLocalPeer11, useHMSStore as
|
29778
|
+
import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
|
29761
29779
|
|
29762
29780
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
29763
29781
|
init_define_process_env();
|
29764
|
-
import React146, { useEffect as
|
29782
|
+
import React146, { useEffect as useEffect50, useRef as useRef29, useState as useState60 } from "react";
|
29765
29783
|
import { useMedia as useMedia32 } from "react-use";
|
29766
|
-
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as
|
29784
|
+
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
29767
29785
|
|
29768
29786
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
29769
29787
|
init_define_process_env();
|
@@ -29850,11 +29868,11 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
29850
29868
|
const isMobile = useMedia32(config.media.md);
|
29851
29869
|
const maxTileCount = isMobile ? 2 : 4;
|
29852
29870
|
const [page, setPage] = useState60(0);
|
29853
|
-
const pinnedTrackId =
|
29854
|
-
const spotlightPeerId =
|
29855
|
-
const activeScreensharePeerId =
|
29856
|
-
const pinnedPeer = (_a7 =
|
29857
|
-
const pageChangedAfterPinning =
|
29871
|
+
const pinnedTrackId = useHMSStore75(selectAppData10(APP_DATA.pinnedTrackId));
|
29872
|
+
const spotlightPeerId = useHMSStore75(selectSessionStore12("spotlight" /* SPOTLIGHT */));
|
29873
|
+
const activeScreensharePeerId = useHMSStore75(selectAppData10(APP_DATA.activeScreensharePeerId));
|
29874
|
+
const pinnedPeer = (_a7 = useHMSStore75(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a7.peerId;
|
29875
|
+
const pageChangedAfterPinning = useRef29(false);
|
29858
29876
|
const pagesWithTiles = usePagesWithTiles({
|
29859
29877
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
29860
29878
|
if (activeScreensharePeerId === p1.id) {
|
@@ -29875,18 +29893,18 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
29875
29893
|
maxTileCount
|
29876
29894
|
});
|
29877
29895
|
const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
|
29878
|
-
|
29896
|
+
useEffect50(() => {
|
29879
29897
|
var _a8;
|
29880
29898
|
if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
|
29881
29899
|
setPage(Math.max(0, page - 1));
|
29882
29900
|
}
|
29883
29901
|
}, [peers, page, pagesWithTiles]);
|
29884
|
-
|
29902
|
+
useEffect50(() => {
|
29885
29903
|
if (pageSize > 0) {
|
29886
29904
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29887
29905
|
}
|
29888
29906
|
}, [pageSize, onPageSize]);
|
29889
|
-
|
29907
|
+
useEffect50(() => {
|
29890
29908
|
if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
|
29891
29909
|
setPage(0);
|
29892
29910
|
pageChangedAfterPinning.current = true;
|
@@ -29953,7 +29971,7 @@ function RoleProminence({
|
|
29953
29971
|
}) {
|
29954
29972
|
var _a7;
|
29955
29973
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
29956
|
-
const localPeer =
|
29974
|
+
const localPeer = useHMSStore76(selectLocalPeer11);
|
29957
29975
|
const isMobile = useMedia33(config.media.md);
|
29958
29976
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
29959
29977
|
maxTileCount = isMobile ? 4 : maxTileCount;
|
@@ -29967,7 +29985,7 @@ function RoleProminence({
|
|
29967
29985
|
});
|
29968
29986
|
const [page, setPage] = useState61(0);
|
29969
29987
|
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
29970
|
-
|
29988
|
+
useEffect51(() => {
|
29971
29989
|
if (pageSize > 0) {
|
29972
29990
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29973
29991
|
}
|
@@ -29987,13 +30005,13 @@ function RoleProminence({
|
|
29987
30005
|
|
29988
30006
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
29989
30007
|
init_define_process_env();
|
29990
|
-
import React151, { useEffect as
|
30008
|
+
import React151, { useEffect as useEffect52, useMemo as useMemo18, useState as useState64 } from "react";
|
29991
30009
|
import { useMedia as useMedia35 } from "react-use";
|
29992
|
-
import { selectPeersScreenSharing, useHMSStore as
|
30010
|
+
import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
|
29993
30011
|
|
29994
30012
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
29995
30013
|
init_define_process_env();
|
29996
|
-
import React150, { useRef as
|
30014
|
+
import React150, { useRef as useRef30, useState as useState63 } from "react";
|
29997
30015
|
import { useFullscreen as useFullscreen2, useMedia as useMedia34 } from "react-use";
|
29998
30016
|
import screenfull2 from "screenfull";
|
29999
30017
|
import {
|
@@ -30001,7 +30019,7 @@ import {
|
|
30001
30019
|
selectPeerByID as selectPeerByID4,
|
30002
30020
|
selectScreenShareAudioByPeerID,
|
30003
30021
|
selectScreenShareByPeerID as selectScreenShareByPeerID2,
|
30004
|
-
useHMSStore as
|
30022
|
+
useHMSStore as useHMSStore77
|
30005
30023
|
} from "@100mslive/react-sdk";
|
30006
30024
|
import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
|
30007
30025
|
|
@@ -30156,21 +30174,21 @@ var labelStyles = {
|
|
30156
30174
|
flexShrink: 0
|
30157
30175
|
};
|
30158
30176
|
var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
30159
|
-
const isLocal =
|
30160
|
-
const track =
|
30177
|
+
const isLocal = useHMSStore77(selectLocalPeerID12) === peerId;
|
30178
|
+
const track = useHMSStore77(selectScreenShareByPeerID2(peerId));
|
30161
30179
|
const { theme: theme2 } = useTheme();
|
30162
|
-
const peer =
|
30180
|
+
const peer = useHMSStore77(selectPeerByID4(peerId));
|
30163
30181
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
30164
30182
|
const [isMouseHovered, setIsMouseHovered] = useState63(false);
|
30165
30183
|
const isMobile = useMedia34(config.media.md);
|
30166
30184
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
30167
|
-
const fullscreenRef =
|
30185
|
+
const fullscreenRef = useRef30(null);
|
30168
30186
|
const [fullscreen, setFullscreen] = useState63(false);
|
30169
30187
|
const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
|
30170
30188
|
onClose: () => setFullscreen(false)
|
30171
30189
|
});
|
30172
30190
|
const isFullScreenSupported = screenfull2.isEnabled;
|
30173
|
-
const audioTrack =
|
30191
|
+
const audioTrack = useHMSStore77(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
|
30174
30192
|
if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
|
30175
30193
|
return /* @__PURE__ */ React150.createElement(ScreenshareDisplay, null);
|
30176
30194
|
}
|
@@ -30180,7 +30198,8 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
30180
30198
|
const label = getVideoTileLabel({
|
30181
30199
|
peerName: peer == null ? void 0 : peer.name,
|
30182
30200
|
isLocal: false,
|
30183
|
-
track
|
30201
|
+
videoTrack: track,
|
30202
|
+
audioTrack
|
30184
30203
|
});
|
30185
30204
|
return /* @__PURE__ */ React150.createElement(
|
30186
30205
|
StyledVideoTile.Root,
|
@@ -30249,7 +30268,7 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
30249
30268
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
30250
30269
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
30251
30270
|
var _a7;
|
30252
|
-
const peersSharing =
|
30271
|
+
const peersSharing = useHMSStore78(selectPeersScreenSharing);
|
30253
30272
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30254
30273
|
const [page, setPage] = useState64(0);
|
30255
30274
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
@@ -30265,7 +30284,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30265
30284
|
}
|
30266
30285
|
return peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id));
|
30267
30286
|
}, [activeSharePeer, peers, isMobile, layoutMode]);
|
30268
|
-
|
30287
|
+
useEffect52(() => {
|
30269
30288
|
if (isMobile) {
|
30270
30289
|
setLayoutMode(LayoutMode.GALLERY);
|
30271
30290
|
return;
|
@@ -30278,7 +30297,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30278
30297
|
setLayoutMode(LayoutMode.GALLERY);
|
30279
30298
|
};
|
30280
30299
|
}, [isMobile]);
|
30281
|
-
|
30300
|
+
useEffect52(() => {
|
30282
30301
|
setActiveScreenSharePeer(activeSharePeer == null ? void 0 : activeSharePeer.id);
|
30283
30302
|
return () => {
|
30284
30303
|
setActiveScreenSharePeer("");
|
@@ -30298,10 +30317,10 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30298
30317
|
|
30299
30318
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
30300
30319
|
init_define_process_env();
|
30301
|
-
import React152, { useEffect as
|
30320
|
+
import React152, { useEffect as useEffect53, useMemo as useMemo19 } from "react";
|
30302
30321
|
import { useMedia as useMedia36 } from "react-use";
|
30303
30322
|
import { Whiteboard } from "@100mslive/hms-whiteboard";
|
30304
|
-
import { selectPeerByCondition, selectWhiteboard, useHMSStore as
|
30323
|
+
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
30305
30324
|
var WhiteboardEmbed = () => {
|
30306
30325
|
const isMobile = useMedia36(config.media.md);
|
30307
30326
|
const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
|
@@ -30325,8 +30344,8 @@ var WhiteboardEmbed = () => {
|
|
30325
30344
|
);
|
30326
30345
|
};
|
30327
30346
|
var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
30328
|
-
const whiteboard =
|
30329
|
-
const whiteboardOwner =
|
30347
|
+
const whiteboard = useHMSStore79(selectWhiteboard);
|
30348
|
+
const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
30330
30349
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
30331
30350
|
const isMobile = useMedia36(config.media.md);
|
30332
30351
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
@@ -30339,7 +30358,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30339
30358
|
}
|
30340
30359
|
return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
|
30341
30360
|
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
30342
|
-
|
30361
|
+
useEffect53(() => {
|
30343
30362
|
if (isMobile) {
|
30344
30363
|
setLayoutMode(LayoutMode.GALLERY);
|
30345
30364
|
return;
|
@@ -30471,12 +30490,12 @@ var GridLayout = ({
|
|
30471
30490
|
edge_to_edge = false,
|
30472
30491
|
hide_metadata_on_tile = false
|
30473
30492
|
}) => {
|
30474
|
-
const peerSharing =
|
30475
|
-
const whiteboard =
|
30493
|
+
const peerSharing = useHMSStore80(selectPeerScreenSharing2);
|
30494
|
+
const whiteboard = useHMSStore80(selectWhiteboard2);
|
30476
30495
|
const pinnedTrack = usePinnedTrack();
|
30477
|
-
const peers =
|
30478
|
-
const localPeerRole =
|
30479
|
-
const localPeerID =
|
30496
|
+
const peers = useHMSStore80(selectPeers3);
|
30497
|
+
const localPeerRole = useHMSStore80(selectLocalPeerRoleName5);
|
30498
|
+
const localPeerID = useHMSStore80(selectLocalPeerID13);
|
30480
30499
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30481
30500
|
const isRoleProminence = prominentRoles.length && peers.some(
|
30482
30501
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
@@ -30517,7 +30536,7 @@ var GridLayout = ({
|
|
30517
30536
|
hideMetadataOnTile: hide_metadata_on_tile,
|
30518
30537
|
objectFit: video_object_fit
|
30519
30538
|
};
|
30520
|
-
|
30539
|
+
useEffect54(() => {
|
30521
30540
|
if (mainPage !== 0) {
|
30522
30541
|
return;
|
30523
30542
|
}
|
@@ -30574,20 +30593,20 @@ var GridLayout = ({
|
|
30574
30593
|
|
30575
30594
|
// src/Prebuilt/layouts/EmbedView.jsx
|
30576
30595
|
init_define_process_env();
|
30577
|
-
import React154, { useEffect as
|
30578
|
-
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as
|
30596
|
+
import React154, { useEffect as useEffect55, useMemo as useMemo21 } from "react";
|
30597
|
+
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
|
30579
30598
|
var EmbedView = () => {
|
30580
30599
|
return /* @__PURE__ */ React154.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React154.createElement(EmbedComponent, null));
|
30581
30600
|
};
|
30582
30601
|
var EmbedScreenShareView = ({ children }) => {
|
30583
|
-
const peers =
|
30584
|
-
const peerPresenting =
|
30602
|
+
const peers = useHMSStore81(selectPeers4);
|
30603
|
+
const peerPresenting = useHMSStore81(selectPeerScreenSharing3);
|
30585
30604
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30586
30605
|
const smallTilePeers = useMemo21(() => {
|
30587
30606
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
30588
30607
|
return smallTilePeers2;
|
30589
30608
|
}, [peers, peerPresenting]);
|
30590
|
-
|
30609
|
+
useEffect55(() => {
|
30591
30610
|
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
30592
30611
|
return () => {
|
30593
30612
|
setActiveScreenSharePeer("");
|
@@ -30596,10 +30615,10 @@ var EmbedScreenShareView = ({ children }) => {
|
|
30596
30615
|
return /* @__PURE__ */ React154.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React154.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React154.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
30597
30616
|
};
|
30598
30617
|
var EmbedComponent = () => {
|
30599
|
-
const embedConfig =
|
30618
|
+
const embedConfig = useHMSStore81(selectAppData11(APP_DATA.embedConfig));
|
30600
30619
|
const resetConfig = useResetEmbedConfig();
|
30601
30620
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
30602
|
-
|
30621
|
+
useEffect55(() => {
|
30603
30622
|
(() => __async(void 0, null, function* () {
|
30604
30623
|
if (embedConfig && !isEmbedShareInProgress) {
|
30605
30624
|
try {
|
@@ -30647,18 +30666,18 @@ var EmbedComponent = () => {
|
|
30647
30666
|
|
30648
30667
|
// src/Prebuilt/layouts/PDFView.jsx
|
30649
30668
|
init_define_process_env();
|
30650
|
-
import React155, { useEffect as
|
30669
|
+
import React155, { useEffect as useEffect56 } from "react";
|
30651
30670
|
import { usePDFShare } from "@100mslive/react-sdk";
|
30652
30671
|
var PDFView = () => {
|
30653
30672
|
const pdfConfig = usePDFConfig();
|
30654
30673
|
const resetConfig = useResetPDFConfig();
|
30655
30674
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
30656
|
-
|
30675
|
+
useEffect56(() => {
|
30657
30676
|
return () => {
|
30658
30677
|
resetConfig();
|
30659
30678
|
};
|
30660
30679
|
}, []);
|
30661
|
-
|
30680
|
+
useEffect56(() => {
|
30662
30681
|
(() => __async(void 0, null, function* () {
|
30663
30682
|
try {
|
30664
30683
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -30706,13 +30725,13 @@ var PDFView = () => {
|
|
30706
30725
|
|
30707
30726
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
30708
30727
|
init_define_process_env();
|
30709
|
-
import React156, { useEffect as
|
30728
|
+
import React156, { useEffect as useEffect57, useRef as useRef31, useState as useState66 } from "react";
|
30710
30729
|
import Draggable2 from "react-draggable";
|
30711
30730
|
import { useMedia as useMedia37 } from "react-use";
|
30712
30731
|
import {
|
30713
30732
|
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
|
30714
30733
|
selectPeerNameByID as selectPeerNameByID6,
|
30715
|
-
useHMSStore as
|
30734
|
+
useHMSStore as useHMSStore82,
|
30716
30735
|
useTranscript
|
30717
30736
|
} from "@100mslive/react-sdk";
|
30718
30737
|
var SimpleQueue = class {
|
@@ -30848,7 +30867,7 @@ var CaptionMaintainerQueue = class {
|
|
30848
30867
|
}
|
30849
30868
|
};
|
30850
30869
|
var TranscriptView = ({ peer_id, data: data3 }) => {
|
30851
|
-
const peerName =
|
30870
|
+
const peerName = useHMSStore82(selectPeerNameByID6(peer_id)) || "Participant";
|
30852
30871
|
data3 = data3.trim();
|
30853
30872
|
if (!data3)
|
30854
30873
|
return null;
|
@@ -30876,9 +30895,9 @@ var CaptionsViewer = ({
|
|
30876
30895
|
const [captionQueue] = useState66(new CaptionMaintainerQueue());
|
30877
30896
|
const [currentData, setCurrentData] = useState66([]);
|
30878
30897
|
const isCaptionEnabled = useIsCaptionEnabled();
|
30879
|
-
const isTranscriptionEnabled =
|
30880
|
-
const nodeRef =
|
30881
|
-
|
30898
|
+
const isTranscriptionEnabled = useHMSStore82(selectIsTranscriptionEnabled5);
|
30899
|
+
const nodeRef = useRef31(null);
|
30900
|
+
useEffect57(() => {
|
30882
30901
|
const timeInterval = setInterval(() => {
|
30883
30902
|
var _a8;
|
30884
30903
|
if (!captionQueue) {
|
@@ -30945,12 +30964,12 @@ var CaptionsViewer = ({
|
|
30945
30964
|
|
30946
30965
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
30947
30966
|
init_define_process_env();
|
30948
|
-
import { useEffect as
|
30949
|
-
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as
|
30967
|
+
import { useEffect as useEffect58 } from "react";
|
30968
|
+
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore83, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
30950
30969
|
var useCloseScreenshareWhiteboard = () => {
|
30951
|
-
const peerSharing =
|
30970
|
+
const peerSharing = useHMSStore83(selectPeerScreenSharing4);
|
30952
30971
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
30953
|
-
|
30972
|
+
useEffect58(() => {
|
30954
30973
|
if (isWhiteboardOwner && peerSharing) {
|
30955
30974
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
30956
30975
|
}
|
@@ -30958,16 +30977,16 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30958
30977
|
};
|
30959
30978
|
|
30960
30979
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30961
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
30980
|
+
var HLSView = React157.lazy(() => import("./HLSView-WY2KZLYW.js"));
|
30962
30981
|
var VideoStreamingSection = ({
|
30963
30982
|
screenType,
|
30964
30983
|
elements,
|
30965
30984
|
hideControls = false
|
30966
30985
|
}) => {
|
30967
30986
|
var _a7;
|
30968
|
-
const localPeerRoleName =
|
30969
|
-
const isConnected =
|
30970
|
-
const isSharingScreen =
|
30987
|
+
const localPeerRoleName = useHMSStore84(selectLocalPeerRoleName6);
|
30988
|
+
const isConnected = useHMSStore84(selectIsConnectedToRoom9);
|
30989
|
+
const isSharingScreen = useHMSStore84(selectIsLocalScreenShared2);
|
30971
30990
|
const hmsActions = useHMSActions48();
|
30972
30991
|
const urlToIframe = useUrlToEmbed();
|
30973
30992
|
const pdfAnnotatorActive = usePDFConfig();
|
@@ -30977,7 +30996,7 @@ var VideoStreamingSection = ({
|
|
30977
30996
|
const [captionPosition, setCaptionPosition] = useState67({ x: isMobile ? 0 : -200, y: 0 });
|
30978
30997
|
useCloseScreenshareWhiteboard();
|
30979
30998
|
const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
|
30980
|
-
|
30999
|
+
useEffect59(() => {
|
30981
31000
|
if (!isConnected) {
|
30982
31001
|
return;
|
30983
31002
|
}
|
@@ -31077,7 +31096,7 @@ init_define_process_env();
|
|
31077
31096
|
init_define_process_env();
|
31078
31097
|
import React160 from "react";
|
31079
31098
|
import { useMedia as useMedia40 } from "react-use";
|
31080
|
-
import { HMSRoomState as HMSRoomState7, selectRoomState as selectRoomState7, useHMSStore as
|
31099
|
+
import { HMSRoomState as HMSRoomState7, selectRoomState as selectRoomState7, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
|
31081
31100
|
|
31082
31101
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
31083
31102
|
init_define_process_env();
|
@@ -31113,7 +31132,7 @@ import {
|
|
31113
31132
|
selectVideoTrackByID as selectVideoTrackByID7,
|
31114
31133
|
useDevices as useDevices3,
|
31115
31134
|
useHMSActions as useHMSActions49,
|
31116
|
-
useHMSStore as
|
31135
|
+
useHMSStore as useHMSStore85
|
31117
31136
|
} from "@100mslive/react-sdk";
|
31118
31137
|
import {
|
31119
31138
|
BluetoothIcon,
|
@@ -31128,9 +31147,9 @@ var CamaraFlipActions = () => {
|
|
31128
31147
|
const actions = useHMSActions49();
|
31129
31148
|
const { allDevices } = useDevices3();
|
31130
31149
|
const { videoInput } = allDevices;
|
31131
|
-
const isVideoOn =
|
31132
|
-
const videoTrackId =
|
31133
|
-
const localVideoTrack =
|
31150
|
+
const isVideoOn = useHMSStore85(selectIsLocalVideoEnabled8);
|
31151
|
+
const videoTrackId = useHMSStore85(selectLocalVideoTrackID3);
|
31152
|
+
const localVideoTrack = useHMSStore85(selectVideoTrackByID7(videoTrackId));
|
31134
31153
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
31135
31154
|
return null;
|
31136
31155
|
}
|
@@ -31268,7 +31287,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React159.createElement(Re
|
|
31268
31287
|
|
31269
31288
|
// src/Prebuilt/components/Header/Header.tsx
|
31270
31289
|
var Header2 = () => {
|
31271
|
-
const roomState =
|
31290
|
+
const roomState = useHMSStore86(selectRoomState7);
|
31272
31291
|
const isMobile = useMedia40(config.media.md);
|
31273
31292
|
if (roomState !== HMSRoomState7.Connected) {
|
31274
31293
|
return /* @__PURE__ */ React160.createElement(React160.Fragment, null);
|
@@ -31290,12 +31309,12 @@ var Header2 = () => {
|
|
31290
31309
|
|
31291
31310
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
31292
31311
|
init_define_process_env();
|
31293
|
-
import { useEffect as
|
31312
|
+
import { useEffect as useEffect60 } from "react";
|
31294
31313
|
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
|
31295
31314
|
var PreviousRoleInMetadata = () => {
|
31296
31315
|
const vanillaStore = useHMSVanillaStore14();
|
31297
31316
|
const { updateMetaData } = useMyMetadata();
|
31298
|
-
|
31317
|
+
useEffect60(() => {
|
31299
31318
|
let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
|
31300
31319
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
31301
31320
|
if (previousRole !== currentRole && currentRole) {
|
@@ -31314,20 +31333,20 @@ var ConferenceScreen = () => {
|
|
31314
31333
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
31315
31334
|
const screenProps = useRoomLayoutConferencingScreen();
|
31316
31335
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
31317
|
-
const roomState =
|
31318
|
-
const isConnectedToRoom =
|
31336
|
+
const roomState = useHMSStore87(selectRoomState8);
|
31337
|
+
const isConnectedToRoom = useHMSStore87(selectIsConnectedToRoom10);
|
31319
31338
|
const hmsActions = useHMSActions50();
|
31320
31339
|
const [hideControls, setHideControls] = useState68(false);
|
31321
|
-
const dropdownList =
|
31340
|
+
const dropdownList = useHMSStore87(selectAppData12(APP_DATA.dropdownList));
|
31322
31341
|
const authTokenInAppData = useAuthToken();
|
31323
|
-
const headerRef =
|
31324
|
-
const footerRef =
|
31342
|
+
const headerRef = useRef32(null);
|
31343
|
+
const footerRef = useRef32(null);
|
31325
31344
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
31326
|
-
const dropdownListRef =
|
31345
|
+
const dropdownListRef = useRef32();
|
31327
31346
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
31328
31347
|
const { requestPermission } = useAwayNotifications3();
|
31329
31348
|
const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
|
31330
|
-
const autoRoomJoined =
|
31349
|
+
const autoRoomJoined = useRef32(isPreviewScreenEnabled);
|
31331
31350
|
const isMobileHLSStream = useMobileHLSStream();
|
31332
31351
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
31333
31352
|
const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
|
@@ -31337,7 +31356,7 @@ var ConferenceScreen = () => {
|
|
31337
31356
|
setHideControls((value) => !value);
|
31338
31357
|
}
|
31339
31358
|
};
|
31340
|
-
|
31359
|
+
useEffect61(() => {
|
31341
31360
|
let timeout;
|
31342
31361
|
dropdownListRef.current = dropdownList || [];
|
31343
31362
|
if (dropdownListRef.current && dropdownListRef.current.length === 0) {
|
@@ -31352,7 +31371,7 @@ var ConferenceScreen = () => {
|
|
31352
31371
|
clearTimeout(timeout);
|
31353
31372
|
};
|
31354
31373
|
}, [dropdownList, hideControls, isMobileDevice]);
|
31355
|
-
|
31374
|
+
useEffect61(() => {
|
31356
31375
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState8.Connecting && !autoRoomJoined.current) {
|
31357
31376
|
hmsActions.join({
|
31358
31377
|
userName: userName || uuid3(),
|
@@ -31376,7 +31395,7 @@ var ConferenceScreen = () => {
|
|
31376
31395
|
userName,
|
31377
31396
|
requestPermission
|
31378
31397
|
]);
|
31379
|
-
|
31398
|
+
useEffect61(() => {
|
31380
31399
|
onJoinFunc == null ? void 0 : onJoinFunc();
|
31381
31400
|
return () => {
|
31382
31401
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
@@ -31557,12 +31576,12 @@ var ErrorBoundary = class extends Component {
|
|
31557
31576
|
|
31558
31577
|
// src/Prebuilt/components/init/Init.jsx
|
31559
31578
|
init_define_process_env();
|
31560
|
-
import React163, { useEffect as
|
31579
|
+
import React163, { useEffect as useEffect63 } from "react";
|
31561
31580
|
|
31562
31581
|
// src/Prebuilt/services/FeatureFlags.jsx
|
31563
31582
|
init_define_process_env();
|
31564
|
-
import { useEffect as
|
31565
|
-
import { selectRoomID, useHMSStore as
|
31583
|
+
import { useEffect as useEffect62 } from "react";
|
31584
|
+
import { selectRoomID, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
|
31566
31585
|
var FeatureFlags = class {
|
31567
31586
|
static init(roomId) {
|
31568
31587
|
if (!window.HMS) {
|
@@ -31587,8 +31606,8 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
|
|
31587
31606
|
__publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
|
31588
31607
|
__publicField(FeatureFlags, "enableWhiteboard", define_process_env_default.REACT_APP_ENABLE_WHITEBOARD && define_process_env_default.REACT_APP_PUSHER_APP_KEY && define_process_env_default.REACT_APP_PUSHER_AUTHENDPOINT);
|
31589
31608
|
function FeatureFlagsInit() {
|
31590
|
-
const roomId =
|
31591
|
-
|
31609
|
+
const roomId = useHMSStore88(selectRoomID);
|
31610
|
+
useEffect62(() => {
|
31592
31611
|
if (roomId) {
|
31593
31612
|
FeatureFlags.init(roomId);
|
31594
31613
|
}
|
@@ -31599,10 +31618,10 @@ function FeatureFlagsInit() {
|
|
31599
31618
|
// src/Prebuilt/components/init/Init.jsx
|
31600
31619
|
var Init = () => {
|
31601
31620
|
const { toggleTheme } = useTheme();
|
31602
|
-
|
31621
|
+
useEffect63(() => {
|
31603
31622
|
window.toggleUiTheme = toggleTheme;
|
31604
31623
|
}, [toggleTheme]);
|
31605
|
-
|
31624
|
+
useEffect63(() => {
|
31606
31625
|
function resetHeight() {
|
31607
31626
|
var _a7;
|
31608
31627
|
document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
|
@@ -31618,7 +31637,7 @@ var Init = () => {
|
|
31618
31637
|
|
31619
31638
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
31620
31639
|
init_define_process_env();
|
31621
|
-
import { useEffect as
|
31640
|
+
import { useEffect as useEffect64 } from "react";
|
31622
31641
|
import {
|
31623
31642
|
selectAppData as selectAppData13,
|
31624
31643
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
@@ -31713,7 +31732,7 @@ _unbind = new WeakMap();
|
|
31713
31732
|
var KeyboardHandler = () => {
|
31714
31733
|
const store = useHMSVanillaStore15();
|
31715
31734
|
const actions = useHMSActions51();
|
31716
|
-
|
31735
|
+
useEffect64(() => {
|
31717
31736
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
31718
31737
|
keyboardManager.bindAllShortcuts();
|
31719
31738
|
return keyboardManager.unbindAllShortcuts;
|
@@ -32238,7 +32257,7 @@ var LeaveScreen = () => {
|
|
32238
32257
|
|
32239
32258
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
32240
32259
|
init_define_process_env();
|
32241
|
-
import React168, { useEffect as
|
32260
|
+
import React168, { useEffect as useEffect65, useState as useState71 } from "react";
|
32242
32261
|
import { useMedia as useMedia44 } from "react-use";
|
32243
32262
|
import { match as match14, P as P6 } from "ts-pattern";
|
32244
32263
|
import { RefreshIcon } from "@100mslive/react-icons";
|
@@ -32246,7 +32265,7 @@ var MwebLandscapePrompt = () => {
|
|
32246
32265
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState71(false);
|
32247
32266
|
const isLandscape = useMedia44(config.media.ls);
|
32248
32267
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
32249
|
-
|
32268
|
+
useEffect65(() => {
|
32250
32269
|
var _a7;
|
32251
32270
|
if (!isMobileUserAgent) {
|
32252
32271
|
setShowMwebLandscapePrompt(false);
|
@@ -32291,7 +32310,7 @@ init_define_process_env();
|
|
32291
32310
|
|
32292
32311
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
32293
32312
|
init_define_process_env();
|
32294
|
-
import React177, { useCallback as useCallback36, useEffect as
|
32313
|
+
import React177, { useCallback as useCallback36, useEffect as useEffect76 } from "react";
|
32295
32314
|
import {
|
32296
32315
|
HMSNotificationTypes as HMSNotificationTypes11,
|
32297
32316
|
HMSRoomState as HMSRoomState10,
|
@@ -32302,7 +32321,7 @@ import {
|
|
32302
32321
|
useAwayNotifications as useAwayNotifications5,
|
32303
32322
|
useCustomEvent as useCustomEvent4,
|
32304
32323
|
useHMSNotifications as useHMSNotifications11,
|
32305
|
-
useHMSStore as
|
32324
|
+
useHMSStore as useHMSStore92,
|
32306
32325
|
useHMSVanillaStore as useHMSVanillaStore17
|
32307
32326
|
} from "@100mslive/react-sdk";
|
32308
32327
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
@@ -32340,15 +32359,15 @@ function AutoplayBlockedModal() {
|
|
32340
32359
|
|
32341
32360
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
32342
32361
|
init_define_process_env();
|
32343
|
-
import React170, { useEffect as
|
32362
|
+
import React170, { useEffect as useEffect66 } from "react";
|
32344
32363
|
import { v4 as uuid4 } from "uuid";
|
32345
|
-
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as
|
32364
|
+
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
32346
32365
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
32347
32366
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
32348
32367
|
var ChatNotifications = () => {
|
32349
|
-
const chatState =
|
32350
|
-
const localPeerId =
|
32351
|
-
|
32368
|
+
const chatState = useHMSStore89(selectSessionStore13("chatState" /* CHAT_STATE */));
|
32369
|
+
const localPeerId = useHMSStore89(selectLocalPeerID14);
|
32370
|
+
useEffect66(() => {
|
32352
32371
|
var _a7, _b7;
|
32353
32372
|
if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
|
32354
32373
|
return;
|
@@ -32369,7 +32388,7 @@ var ChatNotifications = () => {
|
|
32369
32388
|
|
32370
32389
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
32371
32390
|
init_define_process_env();
|
32372
|
-
import { useEffect as
|
32391
|
+
import { useEffect as useEffect67 } from "react";
|
32373
32392
|
import { useDebounce as useDebounce2 } from "react-use";
|
32374
32393
|
import {
|
32375
32394
|
HMSNotificationTypes as HMSNotificationTypes2,
|
@@ -32381,7 +32400,7 @@ import {
|
|
32381
32400
|
selectRoomState as selectRoomState9,
|
32382
32401
|
useAwayNotifications as useAwayNotifications4,
|
32383
32402
|
useHMSNotifications as useHMSNotifications2,
|
32384
|
-
useHMSStore as
|
32403
|
+
useHMSStore as useHMSStore91,
|
32385
32404
|
useHMSVanillaStore as useHMSVanillaStore16
|
32386
32405
|
} from "@100mslive/react-sdk";
|
32387
32406
|
|
@@ -32391,7 +32410,7 @@ init_define_process_env();
|
|
32391
32410
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
32392
32411
|
init_define_process_env();
|
32393
32412
|
import React171, { useCallback as useCallback35 } from "react";
|
32394
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions53, useHMSStore as
|
32413
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions53, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
|
32395
32414
|
import {
|
32396
32415
|
ChatUnreadIcon as ChatUnreadIcon2,
|
32397
32416
|
ConnectivityIcon,
|
@@ -32413,7 +32432,7 @@ var HandRaiseAction = React171.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
32413
32432
|
const hmsActions = useHMSActions53();
|
32414
32433
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
32415
32434
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
32416
|
-
const peer =
|
32435
|
+
const peer = useHMSStore90(selectPeerByID5(id));
|
32417
32436
|
const layout = useRoomLayout();
|
32418
32437
|
const {
|
32419
32438
|
bring_to_stage_label,
|
@@ -32622,14 +32641,14 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
32622
32641
|
var HandRaisedNotifications = () => {
|
32623
32642
|
var _a7, _b7;
|
32624
32643
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
32625
|
-
const roomState =
|
32644
|
+
const roomState = useHMSStore91(selectRoomState9);
|
32626
32645
|
const vanillaStore = useHMSVanillaStore16();
|
32627
32646
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
32628
32647
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
32629
|
-
const amIScreenSharing =
|
32648
|
+
const amIScreenSharing = useHMSStore91(selectIsLocalScreenShared3);
|
32630
32649
|
const { showNotification } = useAwayNotifications4();
|
32631
32650
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
32632
|
-
|
32651
|
+
useEffect67(() => {
|
32633
32652
|
var _a8;
|
32634
32653
|
if (!(notification == null ? void 0 : notification.data)) {
|
32635
32654
|
return;
|
@@ -32669,13 +32688,13 @@ var HandRaisedNotifications = () => {
|
|
32669
32688
|
|
32670
32689
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
32671
32690
|
init_define_process_env();
|
32672
|
-
import React172, { useEffect as
|
32691
|
+
import React172, { useEffect as useEffect68, useState as useState72 } from "react";
|
32673
32692
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
32674
32693
|
var InitErrorModal = () => {
|
32675
32694
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
32676
32695
|
const [showModal, setShowModal] = useState72(false);
|
32677
32696
|
const [info, setInfo] = useState72({ title: "Init Error", description: "" });
|
32678
|
-
|
32697
|
+
useEffect68(() => {
|
32679
32698
|
const data3 = notification == null ? void 0 : notification.data;
|
32680
32699
|
if (!data3 || data3.action !== "INIT") {
|
32681
32700
|
return;
|
@@ -32700,7 +32719,7 @@ var InitErrorModal = () => {
|
|
32700
32719
|
|
32701
32720
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
32702
32721
|
init_define_process_env();
|
32703
|
-
import { useEffect as
|
32722
|
+
import { useEffect as useEffect69 } from "react";
|
32704
32723
|
import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
|
32705
32724
|
var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
|
32706
32725
|
var PeerNotifications = () => {
|
@@ -32708,7 +32727,7 @@ var PeerNotifications = () => {
|
|
32708
32727
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
32709
32728
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
32710
32729
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
32711
|
-
|
32730
|
+
useEffect69(() => {
|
32712
32731
|
if (!(notification == null ? void 0 : notification.data)) {
|
32713
32732
|
return;
|
32714
32733
|
}
|
@@ -32737,7 +32756,7 @@ var PeerNotifications = () => {
|
|
32737
32756
|
|
32738
32757
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
32739
32758
|
init_define_process_env();
|
32740
|
-
import React173, { useEffect as
|
32759
|
+
import React173, { useEffect as useEffect70, useState as useState73 } from "react";
|
32741
32760
|
import { useMedia as useMedia45 } from "react-use";
|
32742
32761
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
32743
32762
|
|
@@ -32756,7 +32775,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32756
32775
|
const [deviceType, setDeviceType] = useState73("");
|
32757
32776
|
const [isSystemError, setIsSystemError] = useState73(false);
|
32758
32777
|
const isMobile = useMedia45(config.media.md);
|
32759
|
-
|
32778
|
+
useEffect70(() => {
|
32760
32779
|
if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
|
32761
32780
|
return;
|
32762
32781
|
}
|
@@ -32812,7 +32831,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32812
32831
|
|
32813
32832
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
32814
32833
|
init_define_process_env();
|
32815
|
-
import { useEffect as
|
32834
|
+
import { useEffect as useEffect71, useRef as useRef33 } from "react";
|
32816
32835
|
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
32817
32836
|
var notificationTypes2 = [
|
32818
32837
|
HMSNotificationTypes6.RECONNECTED,
|
@@ -32822,8 +32841,8 @@ var notificationTypes2 = [
|
|
32822
32841
|
var notificationId = null;
|
32823
32842
|
var ReconnectNotifications = () => {
|
32824
32843
|
const notification = useHMSNotifications6(notificationTypes2);
|
32825
|
-
const prevErrorCode =
|
32826
|
-
|
32844
|
+
const prevErrorCode = useRef33(0);
|
32845
|
+
useEffect71(() => {
|
32827
32846
|
var _a7, _b7;
|
32828
32847
|
if (!notification) {
|
32829
32848
|
return;
|
@@ -32846,7 +32865,7 @@ var ReconnectNotifications = () => {
|
|
32846
32865
|
|
32847
32866
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
32848
32867
|
init_define_process_env();
|
32849
|
-
import React174, { useEffect as
|
32868
|
+
import React174, { useEffect as useEffect72, useState as useState74 } from "react";
|
32850
32869
|
import {
|
32851
32870
|
HMSNotificationTypes as HMSNotificationTypes7,
|
32852
32871
|
useHMSActions as useHMSActions54,
|
@@ -32861,7 +32880,7 @@ var TrackBulkUnmuteModal = () => {
|
|
32861
32880
|
HMSNotificationTypes7.ROOM_ENDED,
|
32862
32881
|
HMSNotificationTypes7.REMOVED_FROM_ROOM
|
32863
32882
|
]);
|
32864
|
-
|
32883
|
+
useEffect72(() => {
|
32865
32884
|
switch (notification == null ? void 0 : notification.type) {
|
32866
32885
|
case HMSNotificationTypes7.REMOVED_FROM_ROOM:
|
32867
32886
|
case HMSNotificationTypes7.ROOM_ENDED:
|
@@ -32900,7 +32919,7 @@ var TrackBulkUnmuteModal = () => {
|
|
32900
32919
|
|
32901
32920
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
32902
32921
|
init_define_process_env();
|
32903
|
-
import { useEffect as
|
32922
|
+
import { useEffect as useEffect73 } from "react";
|
32904
32923
|
import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
|
32905
32924
|
var notificationTypes3 = [
|
32906
32925
|
HMSNotificationTypes8.TRACK_ADDED,
|
@@ -32910,7 +32929,7 @@ var notificationTypes3 = [
|
|
32910
32929
|
];
|
32911
32930
|
var TrackNotifications = () => {
|
32912
32931
|
const notification = useHMSNotifications8(notificationTypes3);
|
32913
|
-
|
32932
|
+
useEffect73(() => {
|
32914
32933
|
if (notification) {
|
32915
32934
|
console.debug(`[${notification.type}]`, notification);
|
32916
32935
|
}
|
@@ -32920,7 +32939,7 @@ var TrackNotifications = () => {
|
|
32920
32939
|
|
32921
32940
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
32922
32941
|
init_define_process_env();
|
32923
|
-
import React175, { useEffect as
|
32942
|
+
import React175, { useEffect as useEffect74, useState as useState75 } from "react";
|
32924
32943
|
import {
|
32925
32944
|
HMSNotificationTypes as HMSNotificationTypes9,
|
32926
32945
|
useHMSActions as useHMSActions55,
|
@@ -32935,7 +32954,7 @@ var TrackUnmuteModal = () => {
|
|
32935
32954
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
32936
32955
|
]);
|
32937
32956
|
const [muteNotification, setMuteNotification] = useState75(null);
|
32938
|
-
|
32957
|
+
useEffect74(() => {
|
32939
32958
|
switch (notification == null ? void 0 : notification.type) {
|
32940
32959
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
32941
32960
|
case HMSNotificationTypes9.ROOM_ENDED:
|
@@ -32959,7 +32978,7 @@ var TrackUnmuteModal = () => {
|
|
32959
32978
|
{
|
32960
32979
|
title: `Unmute your ${track.type}?`,
|
32961
32980
|
onOpenChange: (value) => !value && setMuteNotification(null),
|
32962
|
-
body: `${peer == null ? void 0 : peer.name}is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
|
32981
|
+
body: `${peer == null ? void 0 : peer.name} is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
|
32963
32982
|
onAction: () => {
|
32964
32983
|
hmsActions.setEnabledTrack(track.id, enabled);
|
32965
32984
|
setMuteNotification(null);
|
@@ -32971,14 +32990,14 @@ var TrackUnmuteModal = () => {
|
|
32971
32990
|
|
32972
32991
|
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
32973
32992
|
init_define_process_env();
|
32974
|
-
import React176, { useEffect as
|
32993
|
+
import React176, { useEffect as useEffect75 } from "react";
|
32975
32994
|
import { match as match15 } from "ts-pattern";
|
32976
32995
|
import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
|
32977
32996
|
import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
|
32978
32997
|
var TranscriptionNotifications = () => {
|
32979
32998
|
const notification = useHMSNotifications10(HMSNotificationTypes10.TRANSCRIPTION_STATE_UPDATED);
|
32980
32999
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
32981
|
-
|
33000
|
+
useEffect75(() => {
|
32982
33001
|
if (!(notification == null ? void 0 : notification.data)) {
|
32983
33002
|
return;
|
32984
33003
|
}
|
@@ -33020,17 +33039,17 @@ var TranscriptionNotifications = () => {
|
|
33020
33039
|
var pollToastKey = {};
|
33021
33040
|
function Notifications() {
|
33022
33041
|
var _a7, _b7;
|
33023
|
-
const localPeerID =
|
33042
|
+
const localPeerID = useHMSStore92(selectLocalPeerID15);
|
33024
33043
|
const notification = useHMSNotifications11();
|
33025
33044
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
33026
|
-
const roomState =
|
33045
|
+
const roomState = useHMSStore92(selectRoomState10);
|
33027
33046
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
33028
33047
|
const isNotificationDisabled = useIsNotificationDisabled();
|
33029
33048
|
const screenProps = useRoomLayoutConferencingScreen();
|
33030
33049
|
const vanillaStore = useHMSVanillaStore17();
|
33031
33050
|
const togglePollView = usePollViewToggle();
|
33032
33051
|
const { showNotification } = useAwayNotifications5();
|
33033
|
-
const amIScreenSharing =
|
33052
|
+
const amIScreenSharing = useHMSStore92(selectIsLocalScreenShared4);
|
33034
33053
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
33035
33054
|
const { pipWindow } = usePIPWindow();
|
33036
33055
|
const handleRoleChangeDenied = useCallback36((request) => {
|
@@ -33040,7 +33059,7 @@ function Notifications() {
|
|
33040
33059
|
});
|
33041
33060
|
}, []);
|
33042
33061
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
33043
|
-
|
33062
|
+
useEffect76(() => {
|
33044
33063
|
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p, _q;
|
33045
33064
|
if (!notification || isNotificationDisabled) {
|
33046
33065
|
return;
|
@@ -33226,8 +33245,8 @@ var PreviewScreen = () => {
|
|
33226
33245
|
|
33227
33246
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
33228
33247
|
init_define_process_env();
|
33229
|
-
import React181, { useEffect as
|
33230
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as
|
33248
|
+
import React181, { useEffect as useEffect77, useState as useState77 } from "react";
|
33249
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore93 } from "@100mslive/react-sdk";
|
33231
33250
|
|
33232
33251
|
// src/Prebuilt/components/Toast/Toast.jsx
|
33233
33252
|
init_define_process_env();
|
@@ -33250,9 +33269,9 @@ var Toast2 = (_a7) => {
|
|
33250
33269
|
|
33251
33270
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
33252
33271
|
var ToastContainer = () => {
|
33253
|
-
const isConnected =
|
33272
|
+
const isConnected = useHMSStore93(selectIsConnectedToRoom11);
|
33254
33273
|
const [toasts, setToast] = useState77([]);
|
33255
|
-
|
33274
|
+
useEffect77(() => {
|
33256
33275
|
ToastManager.addListener(setToast);
|
33257
33276
|
return () => {
|
33258
33277
|
ToastManager.removeListener(setToast);
|
@@ -33273,7 +33292,7 @@ var ToastContainer = () => {
|
|
33273
33292
|
// src/Prebuilt/layouts/Sheet.tsx
|
33274
33293
|
init_define_process_env();
|
33275
33294
|
import React183 from "react";
|
33276
|
-
import { selectAppData as selectAppData14, useHMSStore as
|
33295
|
+
import { selectAppData as selectAppData14, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
|
33277
33296
|
|
33278
33297
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
33279
33298
|
init_define_process_env();
|
@@ -33297,7 +33316,7 @@ var RoomDetailsSheet = () => {
|
|
33297
33316
|
|
33298
33317
|
// src/Prebuilt/layouts/Sheet.tsx
|
33299
33318
|
var Sheet2 = () => {
|
33300
|
-
const sheet =
|
33319
|
+
const sheet = useHMSStore94(selectAppData14(APP_DATA.sheet));
|
33301
33320
|
let ViewComponent;
|
33302
33321
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
33303
33322
|
ViewComponent = /* @__PURE__ */ React183.createElement(RoomDetailsSheet, null);
|
@@ -33307,7 +33326,7 @@ var Sheet2 = () => {
|
|
33307
33326
|
|
33308
33327
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
33309
33328
|
init_define_process_env();
|
33310
|
-
import React184, { useCallback as useCallback38, useEffect as
|
33329
|
+
import React184, { useCallback as useCallback38, useEffect as useEffect78, useMemo as useMemo23, useState as useState78 } from "react";
|
33311
33330
|
import { useMedia as useMedia46 } from "react-use";
|
33312
33331
|
import {
|
33313
33332
|
selectIsLargeRoom as selectIsLargeRoom4,
|
@@ -33315,7 +33334,7 @@ import {
|
|
33315
33334
|
selectPeerNameByID as selectPeerNameByID8,
|
33316
33335
|
useCustomEvent as useCustomEvent5,
|
33317
33336
|
useHMSActions as useHMSActions56,
|
33318
|
-
useHMSStore as
|
33337
|
+
useHMSStore as useHMSStore95,
|
33319
33338
|
useHMSVanillaStore as useHMSVanillaStore18
|
33320
33339
|
} from "@100mslive/react-sdk";
|
33321
33340
|
var emojiCount = 1;
|
@@ -33342,12 +33361,12 @@ var getStartingPoints = (isMobile) => {
|
|
33342
33361
|
return arr;
|
33343
33362
|
};
|
33344
33363
|
function FlyingEmoji() {
|
33345
|
-
const localPeerId =
|
33364
|
+
const localPeerId = useHMSStore95(selectLocalPeerID16);
|
33346
33365
|
const vanillaStore = useHMSVanillaStore18();
|
33347
33366
|
const hmsActions = useHMSActions56();
|
33348
33367
|
const [emojis, setEmojis] = useState78([]);
|
33349
33368
|
const isMobile = useMedia46(config.media.md);
|
33350
|
-
const isLargeRoom =
|
33369
|
+
const isLargeRoom = useHMSStore95(selectIsLargeRoom4);
|
33351
33370
|
const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
|
33352
33371
|
const showFlyingEmoji = useCallback38(
|
33353
33372
|
(_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
|
@@ -33381,7 +33400,7 @@ function FlyingEmoji() {
|
|
33381
33400
|
type: EMOJI_REACTION_TYPE,
|
33382
33401
|
onEvent: showFlyingEmoji
|
33383
33402
|
});
|
33384
|
-
|
33403
|
+
useEffect78(() => {
|
33385
33404
|
window.showFlyingEmoji = showFlyingEmoji;
|
33386
33405
|
}, [showFlyingEmoji]);
|
33387
33406
|
return /* @__PURE__ */ React184.createElement(
|
@@ -33460,22 +33479,22 @@ function RemoteStopScreenshare() {
|
|
33460
33479
|
|
33461
33480
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
33462
33481
|
init_define_process_env();
|
33463
|
-
import { useCallback as useCallback40, useEffect as
|
33482
|
+
import { useCallback as useCallback40, useEffect as useEffect79, useRef as useRef34 } from "react";
|
33464
33483
|
import {
|
33465
33484
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
33466
33485
|
selectPermissions as selectPermissions20,
|
33467
33486
|
useHMSActions as useHMSActions58,
|
33468
|
-
useHMSStore as
|
33487
|
+
useHMSStore as useHMSStore96,
|
33469
33488
|
useRecordingStreaming as useRecordingStreaming12
|
33470
33489
|
} from "@100mslive/react-sdk";
|
33471
33490
|
var useAutoStartStreaming = () => {
|
33472
33491
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
33473
|
-
const permissions =
|
33492
|
+
const permissions = useHMSStore96(selectPermissions20);
|
33474
33493
|
const showStreamingUI = useShowStreamingUI();
|
33475
33494
|
const hmsActions = useHMSActions58();
|
33476
|
-
const isConnected =
|
33495
|
+
const isConnected = useHMSStore96(selectIsConnectedToRoom12);
|
33477
33496
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
33478
|
-
const streamStartedRef =
|
33497
|
+
const streamStartedRef = useRef34(false);
|
33479
33498
|
const startHLS = useCallback40(() => __async(void 0, null, function* () {
|
33480
33499
|
try {
|
33481
33500
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
@@ -33499,12 +33518,12 @@ var useAutoStartStreaming = () => {
|
|
33499
33518
|
isHLSRecordingOn,
|
33500
33519
|
isBrowserRecordingOn
|
33501
33520
|
]);
|
33502
|
-
|
33521
|
+
useEffect79(() => {
|
33503
33522
|
if (!isHLSStarted && !isHLSRunning) {
|
33504
33523
|
streamStartedRef.current = false;
|
33505
33524
|
}
|
33506
33525
|
}, [isHLSStarted, isHLSRunning]);
|
33507
|
-
|
33526
|
+
useEffect79(() => {
|
33508
33527
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
33509
33528
|
return;
|
33510
33529
|
}
|
@@ -33528,9 +33547,9 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33528
33547
|
onJoin
|
33529
33548
|
}, ref) => {
|
33530
33549
|
var _a7, _b7, _c, _d;
|
33531
|
-
const reactiveStore =
|
33550
|
+
const reactiveStore = useRef35();
|
33532
33551
|
const [hydrated, setHydrated] = React186.useState(false);
|
33533
|
-
|
33552
|
+
useEffect80(() => {
|
33534
33553
|
setHydrated(true);
|
33535
33554
|
const hms = new HMSReactiveStore();
|
33536
33555
|
const hmsStore = hms.getStore();
|
@@ -33545,13 +33564,13 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33545
33564
|
hmsNotifications
|
33546
33565
|
};
|
33547
33566
|
}, []);
|
33548
|
-
|
33567
|
+
useEffect80(() => {
|
33549
33568
|
if (!ref || !reactiveStore.current) {
|
33550
33569
|
return;
|
33551
33570
|
}
|
33552
33571
|
ref.current = __spreadValues({}, reactiveStore.current);
|
33553
33572
|
}, [ref]);
|
33554
|
-
|
33573
|
+
useEffect80(() => {
|
33555
33574
|
return () => {
|
33556
33575
|
var _a8;
|
33557
33576
|
VBHandler.reset();
|
@@ -33559,10 +33578,10 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33559
33578
|
};
|
33560
33579
|
}, []);
|
33561
33580
|
const endpointsObj = endpoints;
|
33562
|
-
const tokenByRoomCodeEndpoint =
|
33563
|
-
const initEndpoint =
|
33564
|
-
const eventEndpoint =
|
33565
|
-
const roomLayoutEndpoint =
|
33581
|
+
const tokenByRoomCodeEndpoint = endpointsObj == null ? void 0 : endpointsObj.tokenByRoomCode;
|
33582
|
+
const initEndpoint = endpointsObj == null ? void 0 : endpointsObj.init;
|
33583
|
+
const eventEndpoint = endpointsObj == null ? void 0 : endpointsObj.event;
|
33584
|
+
const roomLayoutEndpoint = endpointsObj == null ? void 0 : endpointsObj.roomLayout;
|
33566
33585
|
const overrideLayout = {
|
33567
33586
|
logo,
|
33568
33587
|
themes,
|
@@ -33665,9 +33684,9 @@ var AppStates = ({ activeState }) => {
|
|
33665
33684
|
return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React186.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React186.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React186.createElement(ConferenceScreen, null));
|
33666
33685
|
};
|
33667
33686
|
var BackSwipe = () => {
|
33668
|
-
const isConnectedToRoom =
|
33687
|
+
const isConnectedToRoom = useHMSStore97(selectIsConnectedToRoom13);
|
33669
33688
|
const hmsActions = useHMSActions59();
|
33670
|
-
|
33689
|
+
useEffect80(() => {
|
33671
33690
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
33672
33691
|
if (isConnectedToRoom) {
|
33673
33692
|
yield hmsActions.leave();
|
@@ -33718,7 +33737,7 @@ init_define_process_env();
|
|
33718
33737
|
|
33719
33738
|
// src/Diagnostics/Diagnostics.tsx
|
33720
33739
|
init_define_process_env();
|
33721
|
-
import React194, { useCallback as useCallback42, useRef as
|
33740
|
+
import React194, { useCallback as useCallback42, useRef as useRef37, useState as useState84 } from "react";
|
33722
33741
|
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions61 } from "@100mslive/react-sdk";
|
33723
33742
|
import {
|
33724
33743
|
CheckCircleIcon as CheckCircleIcon7,
|
@@ -33731,14 +33750,14 @@ import {
|
|
33731
33750
|
|
33732
33751
|
// src/Diagnostics/AudioTest.tsx
|
33733
33752
|
init_define_process_env();
|
33734
|
-
import React190, { useCallback as useCallback41, useEffect as
|
33753
|
+
import React190, { useCallback as useCallback41, useEffect as useEffect81, useState as useState80 } from "react";
|
33735
33754
|
import {
|
33736
33755
|
selectDevices,
|
33737
33756
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
33738
33757
|
selectLocalMediaSettings,
|
33739
33758
|
selectTrackAudioByID as selectTrackAudioByID2,
|
33740
33759
|
useHMSActions as useHMSActions60,
|
33741
|
-
useHMSStore as
|
33760
|
+
useHMSStore as useHMSStore98
|
33742
33761
|
} from "@100mslive/react-sdk";
|
33743
33762
|
import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
|
33744
33763
|
|
@@ -33824,11 +33843,11 @@ var TestFooter = ({
|
|
33824
33843
|
// src/Diagnostics/DeviceSelector.jsx
|
33825
33844
|
init_define_process_env();
|
33826
33845
|
var import_prop_types = __toESM(require_prop_types());
|
33827
|
-
import React189, { useRef as
|
33846
|
+
import React189, { useRef as useRef36, useState as useState79 } from "react";
|
33828
33847
|
var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
|
33829
33848
|
var _a7, _b7;
|
33830
33849
|
const [open, setOpen] = useState79(false);
|
33831
|
-
const ref =
|
33850
|
+
const ref = useRef36(null);
|
33832
33851
|
return /* @__PURE__ */ React189.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React189.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React189.createElement(
|
33833
33852
|
Flex,
|
33834
33853
|
{
|
@@ -33893,12 +33912,12 @@ var SelectContainer = ({ children }) => /* @__PURE__ */ React190.createElement(B
|
|
33893
33912
|
var MicTest = ({ setError }) => {
|
33894
33913
|
var _a7, _b7;
|
33895
33914
|
const { hmsDiagnostics } = useDiagnostics();
|
33896
|
-
const devices =
|
33915
|
+
const devices = useHMSStore98(selectDevices);
|
33897
33916
|
const [isRecording, setIsRecording] = useState80(false);
|
33898
33917
|
const [selectedMic, setSelectedMic] = useState80(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
|
33899
|
-
const trackID =
|
33900
|
-
const audioLevel =
|
33901
|
-
const { audioOutputDeviceId } =
|
33918
|
+
const trackID = useHMSStore98(selectLocalAudioTrackID2);
|
33919
|
+
const audioLevel = useHMSStore98(selectTrackAudioByID2(trackID));
|
33920
|
+
const { audioOutputDeviceId } = useHMSStore98(selectLocalMediaSettings);
|
33902
33921
|
const { playing, setPlaying, audioRef } = useAudioOutputTest({
|
33903
33922
|
deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
|
33904
33923
|
});
|
@@ -33974,8 +33993,8 @@ var MicTest = ({ setError }) => {
|
|
33974
33993
|
var SpeakerTest = () => {
|
33975
33994
|
var _a7;
|
33976
33995
|
const actions = useHMSActions60();
|
33977
|
-
const devices =
|
33978
|
-
const { audioOutputDeviceId } =
|
33996
|
+
const devices = useHMSStore98(selectDevices);
|
33997
|
+
const { audioOutputDeviceId } = useHMSStore98(selectLocalMediaSettings);
|
33979
33998
|
if (devices.audioOutput.length === 0) {
|
33980
33999
|
return /* @__PURE__ */ React190.createElement(React190.Fragment, null);
|
33981
34000
|
}
|
@@ -34002,7 +34021,7 @@ var AudioTest = () => {
|
|
34002
34021
|
},
|
34003
34022
|
[updateStep, setErrorAlone]
|
34004
34023
|
);
|
34005
|
-
|
34024
|
+
useEffect81(() => {
|
34006
34025
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
|
34007
34026
|
}, [hmsDiagnostics, setError]);
|
34008
34027
|
return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, null, /* @__PURE__ */ React190.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React190.createElement(
|
@@ -34024,7 +34043,7 @@ var AudioTest = () => {
|
|
34024
34043
|
|
34025
34044
|
// src/Diagnostics/BrowserTest.tsx
|
34026
34045
|
init_define_process_env();
|
34027
|
-
import React191, { useEffect as
|
34046
|
+
import React191, { useEffect as useEffect82, useState as useState81 } from "react";
|
34028
34047
|
import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
|
34029
34048
|
var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
|
34030
34049
|
var operatingSystemIconInfo = {
|
@@ -34111,7 +34130,7 @@ var BrowserTest = () => {
|
|
34111
34130
|
var _a7, _b7, _c, _d;
|
34112
34131
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
34113
34132
|
const [error, setError] = useState81();
|
34114
|
-
|
34133
|
+
useEffect82(() => {
|
34115
34134
|
try {
|
34116
34135
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
|
34117
34136
|
} catch (err) {
|
@@ -34360,22 +34379,22 @@ var downloadJson = (obj, fileName) => {
|
|
34360
34379
|
|
34361
34380
|
// src/Diagnostics/VideoTest.tsx
|
34362
34381
|
init_define_process_env();
|
34363
|
-
import React193, { useEffect as
|
34382
|
+
import React193, { useEffect as useEffect83, useState as useState83 } from "react";
|
34364
34383
|
import {
|
34365
34384
|
selectDevices as selectDevices2,
|
34366
34385
|
selectLocalMediaSettings as selectLocalMediaSettings2,
|
34367
34386
|
selectLocalVideoTrackID as selectLocalVideoTrackID4,
|
34368
|
-
useHMSStore as
|
34387
|
+
useHMSStore as useHMSStore99
|
34369
34388
|
} from "@100mslive/react-sdk";
|
34370
34389
|
import { VideoOnIcon as VideoOnIcon5 } from "@100mslive/react-icons";
|
34371
34390
|
var VideoTest = () => {
|
34372
34391
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
34373
|
-
const allDevices =
|
34392
|
+
const allDevices = useHMSStore99(selectDevices2);
|
34374
34393
|
const { videoInput } = allDevices;
|
34375
|
-
const trackID =
|
34376
|
-
const sdkSelectedDevices =
|
34394
|
+
const trackID = useHMSStore99(selectLocalVideoTrackID4);
|
34395
|
+
const sdkSelectedDevices = useHMSStore99(selectLocalMediaSettings2);
|
34377
34396
|
const [error, setError] = useState83();
|
34378
|
-
|
34397
|
+
useEffect83(() => {
|
34379
34398
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
|
34380
34399
|
updateStep(1 /* VIDEO */, { hasFailed: true });
|
34381
34400
|
setError(err);
|
@@ -34500,7 +34519,7 @@ var DiagnosticsProvider = () => {
|
|
34500
34519
|
const actions = useHMSActions61();
|
34501
34520
|
const [activeStep, setActiveStep] = useState84(0);
|
34502
34521
|
const [steps, setSteps] = useState84(initialSteps);
|
34503
|
-
const diagnosticsRef =
|
34522
|
+
const diagnosticsRef = useRef37(actions.initDiagnostics());
|
34504
34523
|
const updateStep = useCallback42((step, value) => {
|
34505
34524
|
setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
|
34506
34525
|
}, []);
|
@@ -34654,4 +34673,4 @@ object-assign/index.js:
|
|
34654
34673
|
@license MIT
|
34655
34674
|
*)
|
34656
34675
|
*/
|
34657
|
-
//# sourceMappingURL=chunk-
|
34676
|
+
//# sourceMappingURL=chunk-I6M7HK22.js.map
|