@100mslive/roomkit-react 0.3.19-alpha.6 → 0.3.19-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-2P2FVCEW.js → HLSView-72N5Y4QP.js} +2 -2
- package/dist/{HLSView-GRUKIJTY.css → HLSView-Y4ED3H3Z.css} +3 -3
- package/dist/{HLSView-GRUKIJTY.css.map → HLSView-Y4ED3H3Z.css.map} +1 -1
- package/dist/Modal/Dialog.d.ts +3 -1
- package/dist/{chunk-KZIOZDJV.js → chunk-P323KKZF.js} +210 -210
- package/dist/chunk-P323KKZF.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +19 -20
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +19 -19
- package/dist/meta.esbuild.json +32 -32
- package/package.json +7 -7
- package/src/Modal/Dialog.tsx +13 -2
- package/src/Prebuilt/components/VideoLayouts/RoleProminence.tsx +2 -9
- package/dist/chunk-KZIOZDJV.js.map +0 -7
- /package/dist/{HLSView-2P2FVCEW.js.map → HLSView-72N5Y4QP.js.map} +0 -0
|
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
107
107
|
var define_process_env_default;
|
|
108
108
|
var init_define_process_env = __esm({
|
|
109
109
|
"<define:process.env>"() {
|
|
110
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5d40e4cd-a5bf-432a-9f0c-8938de0276f8", 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-alpha.6", 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-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5d40e4cd-a5bf-432a-9f0c-8938de0276f8", 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-alpha.6", 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: "590", 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: "20240825.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:3000", 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-alpha.6", 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: "10662670030", 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: "bff1ab1173426dcefe0c58e22ac406f01a110443", 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: "92cf93726e0613e11fee294fd6dc5ba1e6be24fd6db6d568cc6874018582f82a", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1725261964667-0.9714174939580624:/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--1725261964455-0.6683922873991801:/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--1725261939159-0.7955046597599891:/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--1725261938983-0.7180717708920137:/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_495de3dc-fc8e-4641-8ede-2790c7ec8e12", INVOCATION_ID: "50adb1508fd8445ea807c108c1a3ad5f", 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: "649", 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 473", 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.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-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.6", 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: "bff1ab1173426dcefe0c58e22ac406f01a110443", 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_5d40e4cd-a5bf-432a-9f0c-8938de0276f8", 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_5d40e4cd-a5bf-432a-9f0c-8938de0276f8", 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_5d40e4cd-a5bf-432a-9f0c-8938de0276f8" };
|
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_2073671e-e8e5-4931-a799-6ddfc0bc0167", 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-alpha.8", 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-alpha.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_2073671e-e8e5-4931-a799-6ddfc0bc0167", 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-alpha.8", 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: "591", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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: "20240825.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:18166", 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-alpha.8", 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: "10668881368", 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: "da4d46cf000a606d2f48261536d8e00a03c1fdb0", 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: "8abda0f81a131a72fdd6f22fba3a9c600bc25fe4d060e15bf10bb0df11116396", 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--1725286948994-0.305645425302161:/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--1725286948795-0.5121635878357853:/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--1725286922367-0.34493508258857997:/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--1725286922184-0.7176341366414503:/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_471eb000-d1d0-4e1a-9545-38001b22346a", INVOCATION_ID: "baa3cc1be24e454c86f904e400dfbfa6", 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: "651", 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 255", 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.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-alpha.8", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.8", 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: "da4d46cf000a606d2f48261536d8e00a03c1fdb0", 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_2073671e-e8e5-4931-a799-6ddfc0bc0167", 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_2073671e-e8e5-4931-a799-6ddfc0bc0167", 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_2073671e-e8e5-4931-a799-6ddfc0bc0167" };
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
|
|
@@ -11262,7 +11262,7 @@ init_define_process_env();
|
|
|
11262
11262
|
|
|
11263
11263
|
// src/Modal/Dialog.tsx
|
|
11264
11264
|
init_define_process_env();
|
|
11265
|
-
import React11, { useRef as useRef2 } from "react";
|
|
11265
|
+
import React11, { useEffect as useEffect3, useRef as useRef2 } from "react";
|
|
11266
11266
|
import { Root as Root6 } from "@radix-ui/react-dialog";
|
|
11267
11267
|
import { styled as styled2 } from "@stitches/react";
|
|
11268
11268
|
|
|
@@ -11341,6 +11341,15 @@ function useDialogContainerSelector() {
|
|
|
11341
11341
|
|
|
11342
11342
|
// src/Modal/Dialog.tsx
|
|
11343
11343
|
var StyledDialog = styled2(Root6, {});
|
|
11344
|
+
var DialogRoot = (props) => {
|
|
11345
|
+
useEffect3(() => {
|
|
11346
|
+
return () => {
|
|
11347
|
+
if (document)
|
|
11348
|
+
setTimeout(() => document.body.style.pointerEvents = "auto", 0);
|
|
11349
|
+
};
|
|
11350
|
+
}, []);
|
|
11351
|
+
return /* @__PURE__ */ React11.createElement(StyledDialog, __spreadValues({}, props));
|
|
11352
|
+
};
|
|
11344
11353
|
var CustomDialogPortal = ({ children, container }) => {
|
|
11345
11354
|
const dialogContainerSelector = useDialogContainerSelector();
|
|
11346
11355
|
const containerRef = useRef2(null);
|
|
@@ -11354,7 +11363,7 @@ var CustomDialogPortal = ({ children, container }) => {
|
|
|
11354
11363
|
return /* @__PURE__ */ React11.createElement(StyledDialogPortal, { container: containerRef.current }, /* @__PURE__ */ React11.createElement(React11.Fragment, null, children));
|
|
11355
11364
|
};
|
|
11356
11365
|
var Dialog = {
|
|
11357
|
-
Root:
|
|
11366
|
+
Root: DialogRoot,
|
|
11358
11367
|
Trigger: StyledDialogTrigger,
|
|
11359
11368
|
Overlay: CustomDialogOverlay,
|
|
11360
11369
|
Content: CustomDialogContent,
|
|
@@ -12007,7 +12016,7 @@ var sigmoid = (z2) => {
|
|
|
12007
12016
|
|
|
12008
12017
|
// src/AudioLevel/AudioLevel.tsx
|
|
12009
12018
|
init_define_process_env();
|
|
12010
|
-
import React14, { useEffect as
|
|
12019
|
+
import React14, { useEffect as useEffect4, useRef as useRef4 } from "react";
|
|
12011
12020
|
import { selectTrackAudioByID, useHMSVanillaStore } from "@100mslive/react-sdk";
|
|
12012
12021
|
|
|
12013
12022
|
// src/AudioLevel/audio-level.png
|
|
@@ -12053,7 +12062,7 @@ var AudioBar = () => {
|
|
|
12053
12062
|
var AudioLevel = ({ trackId, size }) => {
|
|
12054
12063
|
const ref = useRef4(null);
|
|
12055
12064
|
const vanillaStore = useHMSVanillaStore();
|
|
12056
|
-
|
|
12065
|
+
useEffect4(() => {
|
|
12057
12066
|
const unsubscribe = vanillaStore.subscribe((audioLevel) => {
|
|
12058
12067
|
if (ref.current) {
|
|
12059
12068
|
let index = 0;
|
|
@@ -12911,7 +12920,7 @@ var Collapsible = {
|
|
|
12911
12920
|
|
|
12912
12921
|
// src/Prebuilt/App.tsx
|
|
12913
12922
|
init_define_process_env();
|
|
12914
|
-
import React186, { useEffect as
|
|
12923
|
+
import React186, { useEffect as useEffect79, useRef as useRef34 } from "react";
|
|
12915
12924
|
import { match as match16 } from "ts-pattern";
|
|
12916
12925
|
import {
|
|
12917
12926
|
HMSReactiveStore,
|
|
@@ -12923,7 +12932,7 @@ import {
|
|
|
12923
12932
|
|
|
12924
12933
|
// src/Prebuilt/components/AppData/AppData.tsx
|
|
12925
12934
|
init_define_process_env();
|
|
12926
|
-
import React23, { useEffect as
|
|
12935
|
+
import React23, { useEffect as useEffect6, useMemo as useMemo4, useRef as useRef7 } from "react";
|
|
12927
12936
|
import { useMedia } from "react-use";
|
|
12928
12937
|
import {
|
|
12929
12938
|
HMSRoomState,
|
|
@@ -13266,7 +13275,7 @@ import React22 from "react";
|
|
|
13266
13275
|
|
|
13267
13276
|
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
|
13268
13277
|
init_define_process_env();
|
|
13269
|
-
import { useCallback as useCallback5, useEffect as
|
|
13278
|
+
import { useCallback as useCallback5, useEffect as useEffect5, useRef as useRef6, useState as useState5 } from "react";
|
|
13270
13279
|
|
|
13271
13280
|
// src/Prebuilt/provider/roomLayoutProvider/constants/index.ts
|
|
13272
13281
|
init_define_process_env();
|
|
@@ -13362,7 +13371,7 @@ var useFetchRoomLayout = ({
|
|
|
13362
13371
|
setLayout(layout2);
|
|
13363
13372
|
}
|
|
13364
13373
|
}, []);
|
|
13365
|
-
|
|
13374
|
+
useEffect5(() => {
|
|
13366
13375
|
(() => __async(void 0, null, function* () {
|
|
13367
13376
|
var _a7, _b7;
|
|
13368
13377
|
if (isFetchInProgress.current || !authToken) {
|
|
@@ -13741,7 +13750,7 @@ var AppData = React23.memo(() => {
|
|
|
13741
13750
|
const sidepaneOpenedRef = useRef7(false);
|
|
13742
13751
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
|
13743
13752
|
const isMobile = useMedia(config.media.md);
|
|
13744
|
-
|
|
13753
|
+
useEffect6(() => {
|
|
13745
13754
|
var _a8;
|
|
13746
13755
|
if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
|
|
13747
13756
|
setNoiseCancellationEnabled(true);
|
|
@@ -13757,7 +13766,7 @@ var AppData = React23.memo(() => {
|
|
|
13757
13766
|
}
|
|
13758
13767
|
return "";
|
|
13759
13768
|
}, [(_b7 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _b7.background_media]);
|
|
13760
|
-
|
|
13769
|
+
useEffect6(() => {
|
|
13761
13770
|
hmsActions.initAppData(__spreadValues(__spreadValues({}, initialAppData), appData));
|
|
13762
13771
|
hmsActions.setFrameworkInfo({
|
|
13763
13772
|
type: "react-web",
|
|
@@ -13765,7 +13774,7 @@ var AppData = React23.memo(() => {
|
|
|
13765
13774
|
version: React23.version
|
|
13766
13775
|
});
|
|
13767
13776
|
}, [hmsActions]);
|
|
13768
|
-
|
|
13777
|
+
useEffect6(() => {
|
|
13769
13778
|
const uiSettings = preferences || {};
|
|
13770
13779
|
const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
|
|
13771
13780
|
[UI_SETTINGS.isAudioOnly]: void 0,
|
|
@@ -13773,7 +13782,7 @@ var AppData = React23.memo(() => {
|
|
|
13773
13782
|
});
|
|
13774
13783
|
hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
|
|
13775
13784
|
}, [hmsActions, preferences]);
|
|
13776
|
-
|
|
13785
|
+
useEffect6(() => {
|
|
13777
13786
|
var _a8, _b8;
|
|
13778
13787
|
hmsActions.setAppData(
|
|
13779
13788
|
APP_DATA.uiSettings,
|
|
@@ -13783,13 +13792,13 @@ var AppData = React23.memo(() => {
|
|
|
13783
13792
|
true
|
|
13784
13793
|
);
|
|
13785
13794
|
}, [hmsActions, isMobile, (_d = (_c = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _c.grid) == null ? void 0 : _d.tiles_in_view]);
|
|
13786
|
-
|
|
13795
|
+
useEffect6(() => {
|
|
13787
13796
|
if (!preferences.subscribedNotifications) {
|
|
13788
13797
|
return;
|
|
13789
13798
|
}
|
|
13790
13799
|
hmsActions.setAppData(APP_DATA.subscribedNotifications, preferences.subscribedNotifications, true);
|
|
13791
13800
|
}, [preferences.subscribedNotifications, hmsActions]);
|
|
13792
|
-
|
|
13801
|
+
useEffect6(() => {
|
|
13793
13802
|
if (defaultMediaURL && !sidepaneOpenedRef.current && isLocalVideoEnabled) {
|
|
13794
13803
|
hmsActions.setAppData(APP_DATA.background, defaultMediaURL);
|
|
13795
13804
|
sidepaneOpenedRef.current = true;
|
|
@@ -13808,19 +13817,19 @@ var ResetStreamingStart = () => {
|
|
|
13808
13817
|
const [rtmpStarted, setRTMPStarted] = useSetAppDataByKey(APP_DATA.rtmpStarted);
|
|
13809
13818
|
const toggleStreaming = useSidepaneToggle(SIDE_PANE_OPTIONS.STREAMING);
|
|
13810
13819
|
const isStreamingOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.STREAMING);
|
|
13811
|
-
|
|
13820
|
+
useEffect6(() => {
|
|
13812
13821
|
if (isBrowserRecordingOn && recordingStarted) {
|
|
13813
13822
|
setRecordingStarted(false);
|
|
13814
13823
|
}
|
|
13815
13824
|
}, [isBrowserRecordingOn, recordingStarted, setRecordingStarted]);
|
|
13816
|
-
|
|
13825
|
+
useEffect6(() => {
|
|
13817
13826
|
if (roomState === HMSRoomState.Disconnected) {
|
|
13818
13827
|
setHLSStarted(false);
|
|
13819
13828
|
setRecordingStarted(false);
|
|
13820
13829
|
setRTMPStarted(false);
|
|
13821
13830
|
}
|
|
13822
13831
|
}, [roomState, setHLSStarted, setRTMPStarted, setRecordingStarted]);
|
|
13823
|
-
|
|
13832
|
+
useEffect6(() => {
|
|
13824
13833
|
if (isHLSRunning || hlsError) {
|
|
13825
13834
|
if (hlsStarted) {
|
|
13826
13835
|
setHLSStarted(false);
|
|
@@ -13830,7 +13839,7 @@ var ResetStreamingStart = () => {
|
|
|
13830
13839
|
}
|
|
13831
13840
|
}
|
|
13832
13841
|
}, [isHLSRunning, hlsStarted, setHLSStarted, hlsError, isStreamingOpen, toggleStreaming]);
|
|
13833
|
-
|
|
13842
|
+
useEffect6(() => {
|
|
13834
13843
|
if (isRTMPRunning || rtmpError || isBrowserRecordingOn) {
|
|
13835
13844
|
if (rtmpStarted) {
|
|
13836
13845
|
setRTMPStarted(false);
|
|
@@ -13845,7 +13854,7 @@ var ResetStreamingStart = () => {
|
|
|
13845
13854
|
|
|
13846
13855
|
// src/Prebuilt/components/AuthToken.tsx
|
|
13847
13856
|
init_define_process_env();
|
|
13848
|
-
import React26, { useEffect as
|
|
13857
|
+
import React26, { useEffect as useEffect8, useRef as useRef8, useState as useState6 } from "react";
|
|
13849
13858
|
import { useSessionStorage } from "react-use";
|
|
13850
13859
|
import { match as match3 } from "ts-pattern";
|
|
13851
13860
|
import { v4 as uuid } from "uuid";
|
|
@@ -13874,7 +13883,7 @@ var useHMSPrebuiltContext = () => {
|
|
|
13874
13883
|
|
|
13875
13884
|
// src/Prebuilt/AppStateContext.tsx
|
|
13876
13885
|
init_define_process_env();
|
|
13877
|
-
import React25, { useContext as useContext3, useEffect as
|
|
13886
|
+
import React25, { useContext as useContext3, useEffect as useEffect7 } from "react";
|
|
13878
13887
|
import { usePreviousDistinct } from "react-use";
|
|
13879
13888
|
import { match as match2, P as P2 } from "ts-pattern";
|
|
13880
13889
|
import { HMSRoomState as HMSRoomState2, selectRoomState as selectRoomState2, useHMSActions as useHMSActions5, useHMSStore as useHMSStore7 } from "@100mslive/react-sdk";
|
|
@@ -14480,7 +14489,7 @@ var useAppStateManager = () => {
|
|
|
14480
14489
|
hmsActions.setAppData(APP_DATA.authToken, "");
|
|
14481
14490
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
|
14482
14491
|
};
|
|
14483
|
-
|
|
14492
|
+
useEffect7(() => {
|
|
14484
14493
|
if (!roomLayout) {
|
|
14485
14494
|
return;
|
|
14486
14495
|
}
|
|
@@ -14518,7 +14527,7 @@ var AuthToken = React26.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken, a
|
|
|
14518
14527
|
const [tokenInAppData, setAuthTokenInAppData] = useSetAppDataByKey(APP_DATA.authToken);
|
|
14519
14528
|
const [savedUserId, setSavedUserId] = useSessionStorage(UserPreferencesKeys.USER_ID);
|
|
14520
14529
|
const progressRef = useRef8(null);
|
|
14521
|
-
|
|
14530
|
+
useEffect8(() => {
|
|
14522
14531
|
if (authToken) {
|
|
14523
14532
|
setAuthTokenInAppData(authToken);
|
|
14524
14533
|
return;
|
|
@@ -14612,7 +14621,7 @@ var AuthToken_default = AuthToken;
|
|
|
14612
14621
|
|
|
14613
14622
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
|
14614
14623
|
init_define_process_env();
|
|
14615
|
-
import React161, { useEffect as
|
|
14624
|
+
import React161, { useEffect as useEffect60, useRef as useRef31, useState as useState68 } from "react";
|
|
14616
14625
|
import { v4 as uuid3 } from "uuid";
|
|
14617
14626
|
import {
|
|
14618
14627
|
HMSRoomState as HMSRoomState8,
|
|
@@ -14626,13 +14635,13 @@ import {
|
|
|
14626
14635
|
|
|
14627
14636
|
// src/Prebuilt/components/Footer/Footer.tsx
|
|
14628
14637
|
init_define_process_env();
|
|
14629
|
-
import React86, { useEffect as
|
|
14638
|
+
import React86, { useEffect as useEffect28 } from "react";
|
|
14630
14639
|
import { useMedia as useMedia15 } from "react-use";
|
|
14631
14640
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
|
14632
14641
|
|
|
14633
14642
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
|
14634
14643
|
init_define_process_env();
|
|
14635
|
-
import React34, { Fragment as Fragment3, useCallback as useCallback9, useEffect as
|
|
14644
|
+
import React34, { Fragment as Fragment3, useCallback as useCallback9, useEffect as useEffect12, useState as useState10 } from "react";
|
|
14636
14645
|
import { HMSKrispPlugin } from "@100mslive/hms-noise-cancellation";
|
|
14637
14646
|
import {
|
|
14638
14647
|
DeviceType as DeviceType2,
|
|
@@ -14885,7 +14894,7 @@ var ActionTile = {
|
|
|
14885
14894
|
|
|
14886
14895
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
|
14887
14896
|
init_define_process_env();
|
|
14888
|
-
import React33, { useCallback as useCallback8, useEffect as
|
|
14897
|
+
import React33, { useCallback as useCallback8, useEffect as useEffect11, useState as useState9 } from "react";
|
|
14889
14898
|
import { useMedia as useMedia3 } from "react-use";
|
|
14890
14899
|
import { ChevronLeftIcon, CrossIcon as CrossIcon3, GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
|
|
14891
14900
|
|
|
@@ -14996,7 +15005,7 @@ var Sheet = {
|
|
|
14996
15005
|
|
|
14997
15006
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
|
14998
15007
|
init_define_process_env();
|
|
14999
|
-
import React31, { Fragment as Fragment2, useEffect as
|
|
15008
|
+
import React31, { Fragment as Fragment2, useEffect as useEffect10, useRef as useRef10, useState as useState8 } from "react";
|
|
15000
15009
|
import { useMedia as useMedia2 } from "react-use";
|
|
15001
15010
|
import {
|
|
15002
15011
|
DeviceType,
|
|
@@ -15058,11 +15067,11 @@ var DialogDropdownTrigger = React30.forwardRef(({ title, css: css2, open, icon,
|
|
|
15058
15067
|
|
|
15059
15068
|
// src/Prebuilt/components/hooks/useAudioOutputTest.tsx
|
|
15060
15069
|
init_define_process_env();
|
|
15061
|
-
import { useEffect as
|
|
15070
|
+
import { useEffect as useEffect9, useRef as useRef9, useState as useState7 } from "react";
|
|
15062
15071
|
var useAudioOutputTest = ({ deviceId }) => {
|
|
15063
15072
|
const audioRef = useRef9(null);
|
|
15064
15073
|
const [playing, setPlaying] = useState7(false);
|
|
15065
|
-
|
|
15074
|
+
useEffect9(() => {
|
|
15066
15075
|
if (audioRef.current && deviceId) {
|
|
15067
15076
|
try {
|
|
15068
15077
|
if (typeof audioRef.current.setSinkId !== "undefined") {
|
|
@@ -15095,7 +15104,7 @@ var Settings = ({ setHide }) => {
|
|
|
15095
15104
|
const hmsActions = useHMSActions7();
|
|
15096
15105
|
const track = useHMSStore8(trackSelector);
|
|
15097
15106
|
const isMobile = useMedia2(config.media.md);
|
|
15098
|
-
|
|
15107
|
+
useEffect10(() => {
|
|
15099
15108
|
if (isMobile) {
|
|
15100
15109
|
hmsActions.refreshDevices();
|
|
15101
15110
|
}
|
|
@@ -15340,7 +15349,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
|
|
|
15340
15349
|
(key) => (hide) => setShowSetting((prev) => __spreadProps(__spreadValues({}, prev), { [key]: !hide })),
|
|
15341
15350
|
[setShowSetting]
|
|
15342
15351
|
);
|
|
15343
|
-
|
|
15352
|
+
useEffect11(() => {
|
|
15344
15353
|
if (screenType === "hls_live_streaming") {
|
|
15345
15354
|
hideSettingByTabName("layout")(true);
|
|
15346
15355
|
}
|
|
@@ -15352,7 +15361,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
|
|
|
15352
15361
|
const resetSelection = useCallback8(() => {
|
|
15353
15362
|
setSelection("");
|
|
15354
15363
|
}, []);
|
|
15355
|
-
|
|
15364
|
+
useEffect11(() => {
|
|
15356
15365
|
var _a7;
|
|
15357
15366
|
if (isMobile) {
|
|
15358
15367
|
setSelection("");
|
|
@@ -15753,7 +15762,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
|
15753
15762
|
const isNoiseCancellationEnabled = useIsNoiseCancellationEnabled();
|
|
15754
15763
|
const { setNoiseCancellationWithPlugin, inProgress } = useNoiseCancellationWithPlugin();
|
|
15755
15764
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
|
15756
|
-
|
|
15765
|
+
useEffect12(() => {
|
|
15757
15766
|
(() => __async(void 0, null, function* () {
|
|
15758
15767
|
var _a7;
|
|
15759
15768
|
const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
|
@@ -15903,10 +15912,10 @@ var EmojiContainer = styled("span", {
|
|
|
15903
15912
|
|
|
15904
15913
|
// src/Prebuilt/components/hooks/useDropdownList.ts
|
|
15905
15914
|
init_define_process_env();
|
|
15906
|
-
import { useEffect as
|
|
15915
|
+
import { useEffect as useEffect13 } from "react";
|
|
15907
15916
|
var useDropdownList = ({ name, open }) => {
|
|
15908
15917
|
const [dropdownList = [], setDropdownList] = useSetAppDataByKey(APP_DATA.dropdownList);
|
|
15909
|
-
|
|
15918
|
+
useEffect13(() => {
|
|
15910
15919
|
if (open) {
|
|
15911
15920
|
if (!dropdownList.includes(name)) {
|
|
15912
15921
|
setDropdownList([...dropdownList, name]);
|
|
@@ -15924,7 +15933,7 @@ var useDropdownList = ({ name, open }) => {
|
|
|
15924
15933
|
|
|
15925
15934
|
// src/Prebuilt/common/hooks.ts
|
|
15926
15935
|
init_define_process_env();
|
|
15927
|
-
import { useCallback as useCallback10, useEffect as
|
|
15936
|
+
import { useCallback as useCallback10, useEffect as useEffect14, useMemo as useMemo5, useRef as useRef11, useState as useState11 } from "react";
|
|
15928
15937
|
import { useMedia as useMedia4 } from "react-use";
|
|
15929
15938
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
|
15930
15939
|
import {
|
|
@@ -16032,7 +16041,7 @@ var useRecordingHandler = () => {
|
|
|
16032
16041
|
const recordingState = useHMSStore11(selectRecordingState);
|
|
16033
16042
|
const [isRecordingLoading, setIsRecordingLoading] = useState11(false);
|
|
16034
16043
|
const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
|
|
16035
|
-
|
|
16044
|
+
useEffect14(() => {
|
|
16036
16045
|
if (recordingState.browser.error && recordingStarted) {
|
|
16037
16046
|
setRecordingState(false);
|
|
16038
16047
|
}
|
|
@@ -16593,7 +16602,7 @@ import React45 from "react";
|
|
|
16593
16602
|
|
|
16594
16603
|
// src/Prebuilt/components/PIP/PIPComponent.tsx
|
|
16595
16604
|
init_define_process_env();
|
|
16596
|
-
import React44, { useCallback as useCallback11, useEffect as
|
|
16605
|
+
import React44, { useCallback as useCallback11, useEffect as useEffect15, useState as useState15 } from "react";
|
|
16597
16606
|
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions11, useHMSVanillaStore as useHMSVanillaStore6 } from "@100mslive/react-sdk";
|
|
16598
16607
|
import { PipIcon } from "@100mslive/react-icons";
|
|
16599
16608
|
|
|
@@ -16673,7 +16682,7 @@ var PIPComponent = ({ content = null }) => {
|
|
|
16673
16682
|
var ActivatedPIP = () => {
|
|
16674
16683
|
const store = useHMSVanillaStore6();
|
|
16675
16684
|
const pinnedTrack = usePinnedTrack();
|
|
16676
|
-
|
|
16685
|
+
useEffect15(() => {
|
|
16677
16686
|
function subscribeToStore() {
|
|
16678
16687
|
return store.subscribe((tracksMap) => {
|
|
16679
16688
|
let pipPeers = store.getState(selectPeers2);
|
|
@@ -16712,7 +16721,7 @@ var PIP = ({ content = null }) => {
|
|
|
16712
16721
|
|
|
16713
16722
|
// src/Prebuilt/components/PIP/PIPChat.tsx
|
|
16714
16723
|
init_define_process_env();
|
|
16715
|
-
import React50, { useCallback as useCallback16, useEffect as
|
|
16724
|
+
import React50, { useCallback as useCallback16, useEffect as useEffect18, useMemo as useMemo7, useState as useState19 } from "react";
|
|
16716
16725
|
import {
|
|
16717
16726
|
selectHMSMessages as selectHMSMessages2,
|
|
16718
16727
|
selectLocalPeerID as selectLocalPeerID3,
|
|
@@ -16759,7 +16768,7 @@ var TextArea = styled("textarea", {
|
|
|
16759
16768
|
|
|
16760
16769
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
|
16761
16770
|
init_define_process_env();
|
|
16762
|
-
import React49, { Fragment as Fragment6, useCallback as useCallback15, useEffect as
|
|
16771
|
+
import React49, { Fragment as Fragment6, useCallback as useCallback15, useEffect as useEffect17, useLayoutEffect, useMemo as useMemo6, useRef as useRef12, useState as useState18 } from "react";
|
|
16763
16772
|
import { useMedia as useMedia8 } from "react-use";
|
|
16764
16773
|
import AutoSizer from "react-virtualized-auto-sizer";
|
|
16765
16774
|
import { VariableSizeList } from "react-window";
|
|
@@ -17129,12 +17138,12 @@ var EmptyChat = () => {
|
|
|
17129
17138
|
|
|
17130
17139
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
|
17131
17140
|
init_define_process_env();
|
|
17132
|
-
import { useEffect as
|
|
17141
|
+
import { useEffect as useEffect16, useState as useState17 } from "react";
|
|
17133
17142
|
import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore18 } from "@100mslive/react-sdk";
|
|
17134
17143
|
var usePinnedBy = (messageId) => {
|
|
17135
17144
|
const pinnedMessages = useHMSStore18(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
|
17136
17145
|
const [pinnedBy, setPinnedBy] = useState17("");
|
|
17137
|
-
|
|
17146
|
+
useEffect16(() => {
|
|
17138
17147
|
let match17 = "";
|
|
17139
17148
|
pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
|
|
17140
17149
|
if (pinnedMessage.id === messageId) {
|
|
@@ -17456,7 +17465,7 @@ var VirtualizedChatMessages = React49.forwardRef(({ messages, scrollToBottom },
|
|
|
17456
17465
|
const itemKey2 = useCallback15((index, data3) => {
|
|
17457
17466
|
return data3[index].id;
|
|
17458
17467
|
}, []);
|
|
17459
|
-
|
|
17468
|
+
useEffect17(() => {
|
|
17460
17469
|
requestAnimationFrame(() => scrollToBottom(1));
|
|
17461
17470
|
}, [scrollToBottom]);
|
|
17462
17471
|
return /* @__PURE__ */ React49.createElement(
|
|
@@ -17515,7 +17524,7 @@ var ChatBody = React49.forwardRef(
|
|
|
17515
17524
|
}, [blacklistedMessageIDs, messages]);
|
|
17516
17525
|
const vanillaStore = useHMSVanillaStore8();
|
|
17517
17526
|
const rerenderOnFirstMount = useRef12(false);
|
|
17518
|
-
|
|
17527
|
+
useEffect17(() => {
|
|
17519
17528
|
const unsubscribe = vanillaStore.subscribe(() => {
|
|
17520
17529
|
if (!listRef.current) {
|
|
17521
17530
|
return;
|
|
@@ -17527,7 +17536,7 @@ var ChatBody = React49.forwardRef(
|
|
|
17527
17536
|
}, selectUnreadHMSMessagesCount);
|
|
17528
17537
|
return unsubscribe;
|
|
17529
17538
|
}, [vanillaStore, listRef, scrollToBottom]);
|
|
17530
|
-
|
|
17539
|
+
useEffect17(() => {
|
|
17531
17540
|
if (filteredMessages.length > 0 && (listRef == null ? void 0 : listRef.current) && !rerenderOnFirstMount.current) {
|
|
17532
17541
|
rerenderOnFirstMount.current = true;
|
|
17533
17542
|
listRef.current.resetAfterIndex(0);
|
|
@@ -17573,7 +17582,7 @@ var PIPChat = () => {
|
|
|
17573
17582
|
},
|
|
17574
17583
|
[localPeerID]
|
|
17575
17584
|
);
|
|
17576
|
-
|
|
17585
|
+
useEffect18(() => {
|
|
17577
17586
|
const timeoutId = setTimeout(() => {
|
|
17578
17587
|
setUnreadMessageCount(count);
|
|
17579
17588
|
}, 100);
|
|
@@ -18233,7 +18242,7 @@ var StartRecording_default = StartRecording;
|
|
|
18233
18242
|
|
|
18234
18243
|
// src/Prebuilt/components/StatsForNerds.jsx
|
|
18235
18244
|
init_define_process_env();
|
|
18236
|
-
import React56, { useEffect as
|
|
18245
|
+
import React56, { useEffect as useEffect19, useMemo as useMemo8, useRef as useRef15, useState as useState23 } from "react";
|
|
18237
18246
|
import { match as match4, P as P3 } from "ts-pattern";
|
|
18238
18247
|
import {
|
|
18239
18248
|
selectHMSStats as selectHMSStats3,
|
|
@@ -18255,7 +18264,7 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
|
18255
18264
|
const [open, setOpen] = useState23(false);
|
|
18256
18265
|
const ref = useRef15();
|
|
18257
18266
|
const selectionBg = useDropdownSelection();
|
|
18258
|
-
|
|
18267
|
+
useEffect19(() => {
|
|
18259
18268
|
if (selectedStat.id !== "local-peer" && !tracksWithLabels.find((track) => track.id === selectedStat.id)) {
|
|
18260
18269
|
setSelectedStat("local-peer");
|
|
18261
18270
|
}
|
|
@@ -18664,7 +18673,7 @@ import { ExpandIcon } from "@100mslive/react-icons";
|
|
|
18664
18673
|
|
|
18665
18674
|
// src/Prebuilt/components/hooks/useFullscreen.ts
|
|
18666
18675
|
init_define_process_env();
|
|
18667
|
-
import { useCallback as useCallback19, useEffect as
|
|
18676
|
+
import { useCallback as useCallback19, useEffect as useEffect20, useState as useState25 } from "react";
|
|
18668
18677
|
import screenfull from "screenfull";
|
|
18669
18678
|
var useFullscreen = () => {
|
|
18670
18679
|
const [isFullScreenEnabled, setIsFullScreenEnabled] = useState25(screenfull.isFullscreen);
|
|
@@ -18684,7 +18693,7 @@ var useFullscreen = () => {
|
|
|
18684
18693
|
ToastManager.addToast({ title: err.message });
|
|
18685
18694
|
}
|
|
18686
18695
|
}), [isFullScreenEnabled]);
|
|
18687
|
-
|
|
18696
|
+
useEffect20(() => {
|
|
18688
18697
|
const onChange = () => {
|
|
18689
18698
|
setIsFullScreenEnabled(screenfull.isFullscreen);
|
|
18690
18699
|
};
|
|
@@ -18867,7 +18876,7 @@ var useMyMetadata = () => {
|
|
|
18867
18876
|
|
|
18868
18877
|
// src/Prebuilt/components/PIP/usePIPChat.tsx
|
|
18869
18878
|
init_define_process_env();
|
|
18870
|
-
import { useEffect as
|
|
18879
|
+
import { useEffect as useEffect21 } from "react";
|
|
18871
18880
|
import { useHMSActions as useHMSActions22 } from "@100mslive/react-sdk";
|
|
18872
18881
|
|
|
18873
18882
|
// src/Prebuilt/components/PIP/usePIPWindow.tsx
|
|
@@ -18892,7 +18901,7 @@ var usePIPWindow = () => {
|
|
|
18892
18901
|
var usePIPChat = () => {
|
|
18893
18902
|
const hmsActions = useHMSActions22();
|
|
18894
18903
|
const { isSupported, requestPipWindow, pipWindow, closePipWindow } = usePIPWindow();
|
|
18895
|
-
|
|
18904
|
+
useEffect21(() => {
|
|
18896
18905
|
if (document && pipWindow) {
|
|
18897
18906
|
const style = document.createElement("style");
|
|
18898
18907
|
style.id = "stitches";
|
|
@@ -18900,7 +18909,7 @@ var usePIPChat = () => {
|
|
|
18900
18909
|
pipWindow.document.head.appendChild(style);
|
|
18901
18910
|
}
|
|
18902
18911
|
}, [pipWindow]);
|
|
18903
|
-
|
|
18912
|
+
useEffect21(() => {
|
|
18904
18913
|
if (pipWindow) {
|
|
18905
18914
|
const chatContainer = pipWindow.document.getElementById("chat-container");
|
|
18906
18915
|
const selector = pipWindow.document.getElementById("selector");
|
|
@@ -18973,7 +18982,7 @@ var usePIPChat = () => {
|
|
|
18973
18982
|
}
|
|
18974
18983
|
}
|
|
18975
18984
|
}, [pipWindow, hmsActions]);
|
|
18976
|
-
|
|
18985
|
+
useEffect21(() => {
|
|
18977
18986
|
return () => {
|
|
18978
18987
|
pipWindow && closePipWindow();
|
|
18979
18988
|
};
|
|
@@ -19159,7 +19168,7 @@ import {
|
|
|
19159
19168
|
|
|
19160
19169
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
|
19161
19170
|
init_define_process_env();
|
|
19162
|
-
import React64, { useCallback as useCallback22, useEffect as
|
|
19171
|
+
import React64, { useCallback as useCallback22, useEffect as useEffect22, useRef as useRef17, useState as useState28 } from "react";
|
|
19163
19172
|
import { useMedia as useMedia11 } from "react-use";
|
|
19164
19173
|
|
|
19165
19174
|
// ../hms-video-store/dist/index.js
|
|
@@ -21397,7 +21406,7 @@ var c = (a2, e, t) => new Promise((i, r) => {
|
|
|
21397
21406
|
n((t = t.apply(a2, e)).next());
|
|
21398
21407
|
});
|
|
21399
21408
|
var yr = ro((Dc, ho) => {
|
|
21400
|
-
ho.exports = { version: "0.12.19-alpha.
|
|
21409
|
+
ho.exports = { version: "0.12.19-alpha.8", 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"] };
|
|
21401
21410
|
});
|
|
21402
21411
|
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 || {});
|
|
21403
21412
|
var so = ((e) => (e.CHAT = "chat", e))(so || {});
|
|
@@ -22563,7 +22572,7 @@ var LiveStatus = () => {
|
|
|
22563
22572
|
}
|
|
22564
22573
|
}, 1e3);
|
|
22565
22574
|
}, [hlsState == null ? void 0 : hlsState.running, hlsState == null ? void 0 : hlsState.variants, screenType]);
|
|
22566
|
-
|
|
22575
|
+
useEffect22(() => {
|
|
22567
22576
|
if (hlsState == null ? void 0 : hlsState.running) {
|
|
22568
22577
|
startTimer();
|
|
22569
22578
|
}
|
|
@@ -22906,13 +22915,13 @@ var useSheetToggle = (sheetType) => {
|
|
|
22906
22915
|
|
|
22907
22916
|
// src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx
|
|
22908
22917
|
init_define_process_env();
|
|
22909
|
-
import { useEffect as
|
|
22918
|
+
import { useEffect as useEffect23, useState as useState30 } from "react";
|
|
22910
22919
|
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
|
|
22911
22920
|
var useUnreadPollQuizPresent = () => {
|
|
22912
22921
|
const localPeerID = useHMSStore32(Ee);
|
|
22913
22922
|
const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
|
|
22914
22923
|
const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
|
|
22915
|
-
|
|
22924
|
+
useEffect23(() => {
|
|
22916
22925
|
if (!notification) {
|
|
22917
22926
|
return;
|
|
22918
22927
|
}
|
|
@@ -23715,7 +23724,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
|
23715
23724
|
|
|
23716
23725
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
|
23717
23726
|
init_define_process_env();
|
|
23718
|
-
import React77, { useEffect as
|
|
23727
|
+
import React77, { useEffect as useEffect24 } from "react";
|
|
23719
23728
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
|
23720
23729
|
import {
|
|
23721
23730
|
selectAppData as selectAppData5,
|
|
@@ -23736,7 +23745,7 @@ var VBToggle = () => {
|
|
|
23736
23745
|
const loadingEffects = useHMSStore35(selectAppData5(APP_DATA.loadingEffects));
|
|
23737
23746
|
const hmsActions = useHMSActions28();
|
|
23738
23747
|
const { toggleVideo } = useAVToggle3();
|
|
23739
|
-
|
|
23748
|
+
useEffect24(() => {
|
|
23740
23749
|
var _a7;
|
|
23741
23750
|
if (!toggleVideo) {
|
|
23742
23751
|
(_a7 = VBHandler) == null ? void 0 : _a7.reset();
|
|
@@ -23971,7 +23980,7 @@ var RemoveParticipant = ({ peerId }) => {
|
|
|
23971
23980
|
|
|
23972
23981
|
// src/Prebuilt/components/Footer/RoleAccordion.tsx
|
|
23973
23982
|
init_define_process_env();
|
|
23974
|
-
import React82, { useEffect as
|
|
23983
|
+
import React82, { useEffect as useEffect25 } from "react";
|
|
23975
23984
|
import { useMeasure } from "react-use";
|
|
23976
23985
|
import { FixedSizeList } from "react-window";
|
|
23977
23986
|
import { selectIsLargeRoom, useHMSStore as useHMSStore41, usePaginatedParticipants } from "@100mslive/react-sdk";
|
|
@@ -24215,7 +24224,7 @@ var RoleAccordion = ({
|
|
|
24215
24224
|
const { bringAllToStage, bring_to_stage_label, canBringToStage, lowerAllHands } = useGroupOnStageActions({
|
|
24216
24225
|
peers: peersInAccordion
|
|
24217
24226
|
});
|
|
24218
|
-
|
|
24227
|
+
useEffect25(() => {
|
|
24219
24228
|
if (!isOffStageRole || !isLargeRoom) {
|
|
24220
24229
|
return;
|
|
24221
24230
|
}
|
|
@@ -24303,13 +24312,13 @@ var RoleAccordion = ({
|
|
|
24303
24312
|
|
|
24304
24313
|
// src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
|
|
24305
24314
|
init_define_process_env();
|
|
24306
|
-
import { useEffect as
|
|
24315
|
+
import { useEffect as useEffect26 } from "react";
|
|
24307
24316
|
import { selectAppData as selectAppData6, useHMSStore as useHMSStore42 } from "@100mslive/react-sdk";
|
|
24308
24317
|
var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
|
24309
24318
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
24310
24319
|
const sidepane = useHMSStore42(selectAppData6(APP_DATA.sidePane));
|
|
24311
24320
|
const resetSidePane = useSidepaneReset();
|
|
24312
|
-
|
|
24321
|
+
useEffect26(() => {
|
|
24313
24322
|
if (sidepane === sidepaneOption && !(elements == null ? void 0 : elements[layoutKey])) {
|
|
24314
24323
|
resetSidePane();
|
|
24315
24324
|
}
|
|
@@ -24706,13 +24715,13 @@ var ParticipantSearch = ({
|
|
|
24706
24715
|
|
|
24707
24716
|
// src/Prebuilt/components/Footer/PollsToggle.tsx
|
|
24708
24717
|
init_define_process_env();
|
|
24709
|
-
import React84, { useEffect as
|
|
24718
|
+
import React84, { useEffect as useEffect27 } from "react";
|
|
24710
24719
|
import { QuizActiveIcon as QuizActiveIcon2, QuizIcon as QuizIcon2 } from "@100mslive/react-icons";
|
|
24711
24720
|
var PollsToggle = () => {
|
|
24712
24721
|
const isPollsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.POLLS);
|
|
24713
24722
|
const togglePollView = usePollViewToggle();
|
|
24714
24723
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
|
24715
|
-
|
|
24724
|
+
useEffect27(() => {
|
|
24716
24725
|
if (unreadPollQuiz && isPollsOpen) {
|
|
24717
24726
|
setUnreadPollQuiz(false);
|
|
24718
24727
|
}
|
|
@@ -24783,7 +24792,7 @@ var Footer2 = ({
|
|
|
24783
24792
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
24784
24793
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
|
24785
24794
|
const { showPolls } = useShowPolls();
|
|
24786
|
-
|
|
24795
|
+
useEffect28(() => {
|
|
24787
24796
|
if (!isChatOpen && openByDefault) {
|
|
24788
24797
|
toggleChat();
|
|
24789
24798
|
}
|
|
@@ -24883,7 +24892,7 @@ function HLSFailureModal() {
|
|
|
24883
24892
|
|
|
24884
24893
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
|
24885
24894
|
init_define_process_env();
|
|
24886
|
-
import React138, { useEffect as
|
|
24895
|
+
import React138, { useEffect as useEffect44 } from "react";
|
|
24887
24896
|
import {
|
|
24888
24897
|
selectIsInPreview,
|
|
24889
24898
|
selectLocalPeerName as selectLocalPeerName4,
|
|
@@ -24896,7 +24905,7 @@ import {
|
|
|
24896
24905
|
|
|
24897
24906
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
|
24898
24907
|
init_define_process_env();
|
|
24899
|
-
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as
|
|
24908
|
+
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect43, useMemo as useMemo15, useState as useState57 } from "react";
|
|
24900
24909
|
import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
|
|
24901
24910
|
import {
|
|
24902
24911
|
HMSRoomState as HMSRoomState6,
|
|
@@ -24917,7 +24926,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
|
24917
24926
|
|
|
24918
24927
|
// src/Prebuilt/layouts/SidePane.tsx
|
|
24919
24928
|
init_define_process_env();
|
|
24920
|
-
import React132, { useEffect as
|
|
24929
|
+
import React132, { useEffect as useEffect42 } from "react";
|
|
24921
24930
|
import { useMedia as useMedia25 } from "react-use";
|
|
24922
24931
|
import { match as match12 } from "ts-pattern";
|
|
24923
24932
|
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
|
|
@@ -24928,7 +24937,7 @@ import React109 from "react";
|
|
|
24928
24937
|
|
|
24929
24938
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
|
24930
24939
|
init_define_process_env();
|
|
24931
|
-
import React90, { useEffect as
|
|
24940
|
+
import React90, { useEffect as useEffect29, useMemo as useMemo9, useRef as useRef19, useState as useState38 } from "react";
|
|
24932
24941
|
import {
|
|
24933
24942
|
selectLocalPeerRoleName as selectLocalPeerRoleName2,
|
|
24934
24943
|
selectPermissions as selectPermissions16,
|
|
@@ -25091,7 +25100,7 @@ var AddMenu = () => {
|
|
|
25091
25100
|
const { setPollState } = usePollViewState();
|
|
25092
25101
|
const [interactionType, setInteractionType] = useState38("Poll" /* POLL */);
|
|
25093
25102
|
const inputRef = useRef19(null);
|
|
25094
|
-
|
|
25103
|
+
useEffect29(() => {
|
|
25095
25104
|
if (inputRef.current) {
|
|
25096
25105
|
inputRef.current.focus();
|
|
25097
25106
|
}
|
|
@@ -25178,7 +25187,7 @@ var PrevMenu = () => {
|
|
|
25178
25187
|
[polls]
|
|
25179
25188
|
);
|
|
25180
25189
|
const permissions = useHMSStore48(selectPermissions16);
|
|
25181
|
-
|
|
25190
|
+
useEffect29(() => {
|
|
25182
25191
|
const updatePolls = () => __async(void 0, null, function* () {
|
|
25183
25192
|
yield hmsActions.interactivityCenter.getPolls();
|
|
25184
25193
|
});
|
|
@@ -25938,7 +25947,7 @@ var StatisticBox = ({ title, value = 0 }) => {
|
|
|
25938
25947
|
|
|
25939
25948
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
|
25940
25949
|
init_define_process_env();
|
|
25941
|
-
import { useEffect as
|
|
25950
|
+
import { useEffect as useEffect30, useState as useState41 } from "react";
|
|
25942
25951
|
import {
|
|
25943
25952
|
selectPollByID as selectPollByID2,
|
|
25944
25953
|
useHMSActions as useHMSActions36,
|
|
@@ -25956,7 +25965,7 @@ var useQuizSummary = (quizID) => {
|
|
|
25956
25965
|
correctUsers: 0
|
|
25957
25966
|
};
|
|
25958
25967
|
const [calculations, setCalculations] = useState41({ maxPossibleScore: 0, totalResponses: 0 });
|
|
25959
|
-
|
|
25968
|
+
useEffect30(() => {
|
|
25960
25969
|
const fetchLeaderboardData = () => __async(void 0, null, function* () {
|
|
25961
25970
|
var _a7;
|
|
25962
25971
|
if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
|
|
@@ -26096,7 +26105,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
|
26096
26105
|
|
|
26097
26106
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
|
26098
26107
|
init_define_process_env();
|
|
26099
|
-
import React108, { useEffect as
|
|
26108
|
+
import React108, { useEffect as useEffect33, useRef as useRef22, useState as useState45 } from "react";
|
|
26100
26109
|
import {
|
|
26101
26110
|
selectLocalPeer as selectLocalPeer4,
|
|
26102
26111
|
selectPeerNameByID as selectPeerNameByID4,
|
|
@@ -26113,7 +26122,7 @@ import React106 from "react";
|
|
|
26113
26122
|
|
|
26114
26123
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
|
26115
26124
|
init_define_process_env();
|
|
26116
|
-
import React105, { useCallback as useCallback27, useEffect as
|
|
26125
|
+
import React105, { useCallback as useCallback27, useEffect as useEffect31, useMemo as useMemo12, useRef as useRef21, useState as useState43 } from "react";
|
|
26117
26126
|
import { match as match9 } from "ts-pattern";
|
|
26118
26127
|
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
|
26119
26128
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon4, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
|
|
@@ -26139,7 +26148,7 @@ var QuestionCard2 = ({
|
|
|
26139
26148
|
const localPeerRoleName = useHMSStore53(selectLocalPeerRoleName3);
|
|
26140
26149
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
|
26141
26150
|
const [localPeerChoice, setLocalPeerChoice] = useState43(localPeerResponse);
|
|
26142
|
-
|
|
26151
|
+
useEffect31(() => {
|
|
26143
26152
|
setLocalPeerChoice(localPeerResponse);
|
|
26144
26153
|
}, [localPeerResponse]);
|
|
26145
26154
|
const showVoteCount = roleCanViewResponse && (localPeerChoice || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
|
@@ -26321,7 +26330,7 @@ var StandardView = ({
|
|
|
26321
26330
|
|
|
26322
26331
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
|
26323
26332
|
init_define_process_env();
|
|
26324
|
-
import React107, { useEffect as
|
|
26333
|
+
import React107, { useEffect as useEffect32, useState as useState44 } from "react";
|
|
26325
26334
|
var TimedView = ({
|
|
26326
26335
|
poll,
|
|
26327
26336
|
localPeerResponses,
|
|
@@ -26331,7 +26340,7 @@ var TimedView = ({
|
|
|
26331
26340
|
const [currentIndex, setCurrentIndex] = useState44(getIndexToShow(localPeerResponses));
|
|
26332
26341
|
const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
|
|
26333
26342
|
const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
|
|
26334
|
-
|
|
26343
|
+
useEffect32(() => {
|
|
26335
26344
|
setCurrentIndex(getIndexToShow(localPeerResponses));
|
|
26336
26345
|
}, [localPeerResponses]);
|
|
26337
26346
|
if (!activeQuestion && !attemptedAll || !((_c = poll.questions) == null ? void 0 : _c.length)) {
|
|
@@ -26376,11 +26385,11 @@ var Voting = ({ id, toggleVoting }) => {
|
|
|
26376
26385
|
const localPeer = useHMSStore54(selectLocalPeer4);
|
|
26377
26386
|
const localPeerId = localPeer == null ? void 0 : localPeer.id;
|
|
26378
26387
|
const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
|
|
26379
|
-
|
|
26388
|
+
useEffect33(() => {
|
|
26380
26389
|
fetchedInitialResponses.current = false;
|
|
26381
26390
|
setSavedResponses({});
|
|
26382
26391
|
}, [id, setSavedResponses]);
|
|
26383
|
-
|
|
26392
|
+
useEffect33(() => {
|
|
26384
26393
|
const getResponses = () => __async(void 0, null, function* () {
|
|
26385
26394
|
if (poll && actions.interactivityCenter && !fetchedInitialResponses.current) {
|
|
26386
26395
|
yield actions.interactivityCenter.getPollResponses(poll, true);
|
|
@@ -26389,7 +26398,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
|
26389
26398
|
});
|
|
26390
26399
|
getResponses();
|
|
26391
26400
|
}, [poll, actions.interactivityCenter]);
|
|
26392
|
-
|
|
26401
|
+
useEffect33(() => {
|
|
26393
26402
|
if (poll == null ? void 0 : poll.questions) {
|
|
26394
26403
|
const localPeerResponses = getPeerResponses(poll.questions, localPeerId, customerUserId);
|
|
26395
26404
|
localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
|
|
@@ -26487,7 +26496,7 @@ import { CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
|
|
|
26487
26496
|
|
|
26488
26497
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
|
26489
26498
|
init_define_process_env();
|
|
26490
|
-
import React110, { useEffect as
|
|
26499
|
+
import React110, { useEffect as useEffect34, useState as useState46 } from "react";
|
|
26491
26500
|
import { selectDominantSpeaker, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
|
26492
26501
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
|
26493
26502
|
var SpeakerTag = () => {
|
|
@@ -26516,7 +26525,7 @@ var Logo = () => {
|
|
|
26516
26525
|
const roomLayout = useRoomLayout();
|
|
26517
26526
|
const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
|
|
26518
26527
|
const [hideImage, setHideImage] = useState46(false);
|
|
26519
|
-
|
|
26528
|
+
useEffect34(() => {
|
|
26520
26529
|
if (hideImage) {
|
|
26521
26530
|
setHideImage(false);
|
|
26522
26531
|
}
|
|
@@ -26540,10 +26549,10 @@ import React112 from "react";
|
|
|
26540
26549
|
|
|
26541
26550
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
|
26542
26551
|
init_define_process_env();
|
|
26543
|
-
import React111, { useEffect as
|
|
26552
|
+
import React111, { useEffect as useEffect35, useState as useState47 } from "react";
|
|
26544
26553
|
var Duration = ({ timestamp }) => {
|
|
26545
26554
|
const [elapsedTime, setElapsedTime] = useState47(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
|
26546
|
-
|
|
26555
|
+
useEffect35(() => {
|
|
26547
26556
|
const timerAdded = setInterval(() => {
|
|
26548
26557
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
|
26549
26558
|
}, 1e3);
|
|
@@ -26585,7 +26594,7 @@ var ShowRoomDetailHeader = () => {
|
|
|
26585
26594
|
|
|
26586
26595
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
|
26587
26596
|
init_define_process_env();
|
|
26588
|
-
import React124, { useEffect as
|
|
26597
|
+
import React124, { useEffect as useEffect40, useState as useState53 } from "react";
|
|
26589
26598
|
import { useMedia as useMedia21 } from "react-use";
|
|
26590
26599
|
import { match as match11 } from "ts-pattern";
|
|
26591
26600
|
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
|
@@ -26601,7 +26610,7 @@ import { ChevronDownIcon as ChevronDownIcon7 } from "@100mslive/react-icons";
|
|
|
26601
26610
|
|
|
26602
26611
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
|
26603
26612
|
init_define_process_env();
|
|
26604
|
-
import React116, { useCallback as useCallback29, useEffect as
|
|
26613
|
+
import React116, { useCallback as useCallback29, useEffect as useEffect37, useRef as useRef24, useState as useState50 } from "react";
|
|
26605
26614
|
import { useMedia as useMedia18 } from "react-use";
|
|
26606
26615
|
import data2 from "@emoji-mart/data";
|
|
26607
26616
|
import Picker from "@emoji-mart/react";
|
|
@@ -26924,10 +26933,10 @@ var useChatDraftMessage = () => {
|
|
|
26924
26933
|
|
|
26925
26934
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
|
26926
26935
|
init_define_process_env();
|
|
26927
|
-
import { useEffect as
|
|
26936
|
+
import { useEffect as useEffect36, useRef as useRef23 } from "react";
|
|
26928
26937
|
var useEmojiPickerStyles = (showing) => {
|
|
26929
26938
|
const ref = useRef23(null);
|
|
26930
|
-
|
|
26939
|
+
useEffect36(() => {
|
|
26931
26940
|
if (showing) {
|
|
26932
26941
|
setTimeout(() => {
|
|
26933
26942
|
var _a7, _b7;
|
|
@@ -27019,7 +27028,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
27019
27028
|
const isMwebHLSStream = useMobileHLSStream();
|
|
27020
27029
|
const [messageLengthExceeded, setMessageLengthExceeded] = useState50(false);
|
|
27021
27030
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
27022
|
-
|
|
27031
|
+
useEffect37(() => {
|
|
27023
27032
|
var _a8, _b8;
|
|
27024
27033
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
|
27025
27034
|
setRoleSelector(defaultSelection);
|
|
@@ -27068,7 +27077,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
27068
27077
|
});
|
|
27069
27078
|
}
|
|
27070
27079
|
}), [selectedRole, selectedPeer, hmsActions, onSend]);
|
|
27071
|
-
|
|
27080
|
+
useEffect37(() => {
|
|
27072
27081
|
const messageElement = inputRef.current;
|
|
27073
27082
|
if (messageElement) {
|
|
27074
27083
|
messageElement.value = draftMessage;
|
|
@@ -27076,7 +27085,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
27076
27085
|
setMessageLengthExceeded(draftMessage.length > CHAT_MESSAGE_LIMIT);
|
|
27077
27086
|
}
|
|
27078
27087
|
}, [draftMessage]);
|
|
27079
|
-
|
|
27088
|
+
useEffect37(() => {
|
|
27080
27089
|
const messageElement = inputRef.current;
|
|
27081
27090
|
return () => {
|
|
27082
27091
|
setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
|
|
@@ -27266,7 +27275,7 @@ var ChatBlocked = () => {
|
|
|
27266
27275
|
|
|
27267
27276
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
|
27268
27277
|
init_define_process_env();
|
|
27269
|
-
import React120, { useEffect as
|
|
27278
|
+
import React120, { useEffect as useEffect38, useState as useState51 } from "react";
|
|
27270
27279
|
import { useSwipeable } from "react-swipeable";
|
|
27271
27280
|
import { useMedia as useMedia19 } from "react-use";
|
|
27272
27281
|
import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
|
@@ -27349,7 +27358,7 @@ var PinnedMessage = () => {
|
|
|
27349
27358
|
onSwipedUp: () => showNextPinnedMessage(),
|
|
27350
27359
|
onSwipedDown: () => showPreviousPinnedMessage()
|
|
27351
27360
|
});
|
|
27352
|
-
|
|
27361
|
+
useEffect38(() => {
|
|
27353
27362
|
const count = (pinnedMessages == null ? void 0 : pinnedMessages.length) || 1;
|
|
27354
27363
|
if (pinnedMessageIndex >= count) {
|
|
27355
27364
|
setPinnedMessageIndex(count - 1);
|
|
@@ -27581,7 +27590,7 @@ var NewMessageIndicator = ({
|
|
|
27581
27590
|
|
|
27582
27591
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
|
27583
27592
|
init_define_process_env();
|
|
27584
|
-
import React122, { useEffect as
|
|
27593
|
+
import React122, { useEffect as useEffect39, useState as useState52 } from "react";
|
|
27585
27594
|
import { useInView } from "react-intersection-observer";
|
|
27586
27595
|
import { useMeasure as useMeasure2 } from "react-use";
|
|
27587
27596
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
|
@@ -27594,7 +27603,7 @@ var LoadMoreParticipants = ({
|
|
|
27594
27603
|
}) => {
|
|
27595
27604
|
const { ref, inView } = useInView();
|
|
27596
27605
|
const [inProgress, setInProgress] = useState52(false);
|
|
27597
|
-
|
|
27606
|
+
useEffect39(() => {
|
|
27598
27607
|
if (hasNext && inView && !inProgress) {
|
|
27599
27608
|
setInProgress(true);
|
|
27600
27609
|
loadMore().catch(console.error).finally(() => setInProgress(false));
|
|
@@ -27633,7 +27642,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
|
27633
27642
|
const [ref, { width }] = useMeasure2();
|
|
27634
27643
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
|
27635
27644
|
const resetSidePane = useSidepaneReset();
|
|
27636
|
-
|
|
27645
|
+
useEffect39(() => {
|
|
27637
27646
|
loadPeers();
|
|
27638
27647
|
}, []);
|
|
27639
27648
|
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(
|
|
@@ -27750,7 +27759,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
|
27750
27759
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
|
27751
27760
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
27752
27761
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
|
27753
|
-
|
|
27762
|
+
useEffect40(() => {
|
|
27754
27763
|
match11({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
|
27755
27764
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
27756
27765
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
|
@@ -27759,7 +27768,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
|
27759
27768
|
resetSidePane();
|
|
27760
27769
|
});
|
|
27761
27770
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
|
27762
|
-
|
|
27771
|
+
useEffect40(() => {
|
|
27763
27772
|
setActiveTab(active);
|
|
27764
27773
|
}, [active]);
|
|
27765
27774
|
if (activeRole) {
|
|
@@ -28446,7 +28455,7 @@ var VideoTile_default = VideoTile;
|
|
|
28446
28455
|
|
|
28447
28456
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
|
28448
28457
|
init_define_process_env();
|
|
28449
|
-
import React131, { useEffect as
|
|
28458
|
+
import React131, { useEffect as useEffect41, useRef as useRef26, useState as useState56 } from "react";
|
|
28450
28459
|
import { useMedia as useMedia24 } from "react-use";
|
|
28451
28460
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes4 } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
|
28452
28461
|
import {
|
|
@@ -28573,7 +28582,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
28573
28582
|
const pluginLoadingRef = useRef26(false);
|
|
28574
28583
|
const inPreview = roomState === HMSRoomState5.Preview;
|
|
28575
28584
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
|
28576
|
-
|
|
28585
|
+
useEffect41(() => {
|
|
28577
28586
|
const initializeVirtualBackground = () => __async(void 0, null, function* () {
|
|
28578
28587
|
if (!(track == null ? void 0 : track.id) || pluginLoadingRef.current || isPluginAdded) {
|
|
28579
28588
|
return;
|
|
@@ -28628,7 +28637,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
28628
28637
|
blurAmount,
|
|
28629
28638
|
setLoadingEffects
|
|
28630
28639
|
]);
|
|
28631
|
-
|
|
28640
|
+
useEffect41(() => {
|
|
28632
28641
|
if (!isVideoOn) {
|
|
28633
28642
|
toggleVB();
|
|
28634
28643
|
}
|
|
@@ -28867,7 +28876,7 @@ var SidePane = ({
|
|
|
28867
28876
|
return null;
|
|
28868
28877
|
});
|
|
28869
28878
|
const resetSidePane = useSidepaneReset();
|
|
28870
|
-
|
|
28879
|
+
useEffect42(() => {
|
|
28871
28880
|
return () => {
|
|
28872
28881
|
resetSidePane();
|
|
28873
28882
|
};
|
|
@@ -29081,7 +29090,7 @@ var PreviewJoin = ({
|
|
|
29081
29090
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
|
29082
29091
|
const { preview_header: previewHeader = {}, virtual_background } = elements || {};
|
|
29083
29092
|
const aspectRatio = useLocalTileAspectRatio();
|
|
29084
|
-
|
|
29093
|
+
useEffect43(() => {
|
|
29085
29094
|
if (authToken) {
|
|
29086
29095
|
if (skipPreview) {
|
|
29087
29096
|
savePreferenceAndJoin();
|
|
@@ -29090,7 +29099,7 @@ var PreviewJoin = ({
|
|
|
29090
29099
|
}
|
|
29091
29100
|
}
|
|
29092
29101
|
}, [authToken, skipPreview]);
|
|
29093
|
-
|
|
29102
|
+
useEffect43(() => {
|
|
29094
29103
|
if (initialName) {
|
|
29095
29104
|
setName(initialName);
|
|
29096
29105
|
}
|
|
@@ -29233,7 +29242,7 @@ var RoleChangeRequestModal = () => {
|
|
|
29233
29242
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
|
29234
29243
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
|
29235
29244
|
const { virtual_background } = elements || {};
|
|
29236
|
-
|
|
29245
|
+
useEffect44(() => {
|
|
29237
29246
|
if (!(roleChangeRequest == null ? void 0 : roleChangeRequest.role)) {
|
|
29238
29247
|
return;
|
|
29239
29248
|
}
|
|
@@ -29297,7 +29306,7 @@ var RoleChangeRequestModal = () => {
|
|
|
29297
29306
|
|
|
29298
29307
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
|
29299
29308
|
init_define_process_env();
|
|
29300
|
-
import React157, { Suspense, useEffect as
|
|
29309
|
+
import React157, { Suspense, useEffect as useEffect58, useState as useState67 } from "react";
|
|
29301
29310
|
import { useMedia as useMedia38 } from "react-use";
|
|
29302
29311
|
import { match as match13 } from "ts-pattern";
|
|
29303
29312
|
import {
|
|
@@ -29311,7 +29320,7 @@ import { PeopleAddIcon as PeopleAddIcon3, ShareScreenIcon as ShareScreenIcon5 }
|
|
|
29311
29320
|
|
|
29312
29321
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
|
29313
29322
|
init_define_process_env();
|
|
29314
|
-
import React153, { useEffect as
|
|
29323
|
+
import React153, { useEffect as useEffect53, useMemo as useMemo20, useState as useState65 } from "react";
|
|
29315
29324
|
import {
|
|
29316
29325
|
selectLocalPeerID as selectLocalPeerID13,
|
|
29317
29326
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
|
@@ -29324,7 +29333,7 @@ import {
|
|
|
29324
29333
|
|
|
29325
29334
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
|
29326
29335
|
init_define_process_env();
|
|
29327
|
-
import React144, { useEffect as
|
|
29336
|
+
import React144, { useEffect as useEffect48, useState as useState59 } from "react";
|
|
29328
29337
|
import { useMedia as useMedia31 } from "react-use";
|
|
29329
29338
|
import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
|
|
29330
29339
|
|
|
@@ -29386,7 +29395,7 @@ var WaitingView = React139.memo(
|
|
|
29386
29395
|
|
|
29387
29396
|
// src/Prebuilt/components/InsetTile.tsx
|
|
29388
29397
|
init_define_process_env();
|
|
29389
|
-
import React141, { useEffect as
|
|
29398
|
+
import React141, { useEffect as useEffect45, useRef as useRef27 } from "react";
|
|
29390
29399
|
import Draggable from "react-draggable";
|
|
29391
29400
|
import { useMedia as useMedia29 } from "react-use";
|
|
29392
29401
|
import {
|
|
@@ -29451,7 +29460,7 @@ var InsetTile = ({ peerId }) => {
|
|
|
29451
29460
|
height = width / aspectRatio;
|
|
29452
29461
|
}
|
|
29453
29462
|
const nodeRef = useRef27(null);
|
|
29454
|
-
|
|
29463
|
+
useEffect45(() => {
|
|
29455
29464
|
const node = nodeRef.current;
|
|
29456
29465
|
if (!node || !window.ResizeObserver) {
|
|
29457
29466
|
return;
|
|
@@ -29511,7 +29520,7 @@ var InsetTile = ({ peerId }) => {
|
|
|
29511
29520
|
|
|
29512
29521
|
// src/Prebuilt/components/Pagination.tsx
|
|
29513
29522
|
init_define_process_env();
|
|
29514
|
-
import React142, { useEffect as
|
|
29523
|
+
import React142, { useEffect as useEffect46 } from "react";
|
|
29515
29524
|
import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
|
|
29516
29525
|
var Pagination = ({
|
|
29517
29526
|
page,
|
|
@@ -29528,7 +29537,7 @@ var Pagination = ({
|
|
|
29528
29537
|
e.stopPropagation();
|
|
29529
29538
|
onPageChange(Math.max(page - 1, 0));
|
|
29530
29539
|
};
|
|
29531
|
-
|
|
29540
|
+
useEffect46(() => {
|
|
29532
29541
|
if (page >= numPages) {
|
|
29533
29542
|
onPageChange(Math.max(0, numPages - 1));
|
|
29534
29543
|
}
|
|
@@ -29592,7 +29601,7 @@ var Grid = React143.forwardRef(
|
|
|
29592
29601
|
|
|
29593
29602
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
|
29594
29603
|
init_define_process_env();
|
|
29595
|
-
import { useEffect as
|
|
29604
|
+
import { useEffect as useEffect47, useMemo as useMemo16, useState as useState58 } from "react";
|
|
29596
29605
|
import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
|
|
29597
29606
|
import {
|
|
29598
29607
|
getPeersWithTiles,
|
|
@@ -29631,7 +29640,7 @@ var useTileLayout = ({
|
|
|
29631
29640
|
const [ref, { width, height }] = useMeasure5();
|
|
29632
29641
|
const isMobile = useMedia30(config.media.lg);
|
|
29633
29642
|
const [pagesWithTiles, setPagesWithTiles] = useState58([]);
|
|
29634
|
-
|
|
29643
|
+
useEffect47(() => {
|
|
29635
29644
|
if (width === 0 || height === 0) {
|
|
29636
29645
|
return;
|
|
29637
29646
|
}
|
|
@@ -29712,7 +29721,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
|
29712
29721
|
});
|
|
29713
29722
|
const [page, setPage] = useState59(0);
|
|
29714
29723
|
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
|
29715
|
-
|
|
29724
|
+
useEffect48(() => {
|
|
29716
29725
|
if (pageSize > 0) {
|
|
29717
29726
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
|
29718
29727
|
}
|
|
@@ -29739,13 +29748,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
|
29739
29748
|
|
|
29740
29749
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
|
29741
29750
|
init_define_process_env();
|
|
29742
|
-
import React147, { useEffect as
|
|
29751
|
+
import React147, { useEffect as useEffect50, useState as useState61 } from "react";
|
|
29743
29752
|
import { useMedia as useMedia33 } from "react-use";
|
|
29744
29753
|
import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
|
29745
29754
|
|
|
29746
29755
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
|
29747
29756
|
init_define_process_env();
|
|
29748
|
-
import React146, { useEffect as
|
|
29757
|
+
import React146, { useEffect as useEffect49, useRef as useRef28, useState as useState60 } from "react";
|
|
29749
29758
|
import { useMedia as useMedia32 } from "react-use";
|
|
29750
29759
|
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
|
|
29751
29760
|
|
|
@@ -29859,18 +29868,18 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
|
29859
29868
|
maxTileCount
|
|
29860
29869
|
});
|
|
29861
29870
|
const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
|
|
29862
|
-
|
|
29871
|
+
useEffect49(() => {
|
|
29863
29872
|
var _a8;
|
|
29864
29873
|
if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
|
|
29865
29874
|
setPage(Math.max(0, page - 1));
|
|
29866
29875
|
}
|
|
29867
29876
|
}, [peers, page, pagesWithTiles]);
|
|
29868
|
-
|
|
29877
|
+
useEffect49(() => {
|
|
29869
29878
|
if (pageSize > 0) {
|
|
29870
29879
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
|
29871
29880
|
}
|
|
29872
29881
|
}, [pageSize, onPageSize]);
|
|
29873
|
-
|
|
29882
|
+
useEffect49(() => {
|
|
29874
29883
|
if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
|
|
29875
29884
|
setPage(0);
|
|
29876
29885
|
pageChangedAfterPinning.current = true;
|
|
@@ -29938,7 +29947,6 @@ function RoleProminence({
|
|
|
29938
29947
|
var _a7;
|
|
29939
29948
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
|
29940
29949
|
const localPeer = useHMSStore75(selectLocalPeer11);
|
|
29941
|
-
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
|
29942
29950
|
const isMobile = useMedia33(config.media.md);
|
|
29943
29951
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
|
29944
29952
|
maxTileCount = isMobile ? 4 : maxTileCount;
|
|
@@ -29952,12 +29960,12 @@ function RoleProminence({
|
|
|
29952
29960
|
});
|
|
29953
29961
|
const [page, setPage] = useState61(0);
|
|
29954
29962
|
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
|
29955
|
-
|
|
29963
|
+
useEffect50(() => {
|
|
29956
29964
|
if (pageSize > 0) {
|
|
29957
29965
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
|
29958
29966
|
}
|
|
29959
29967
|
}, [pageSize, onPageSize]);
|
|
29960
|
-
return /* @__PURE__ */ React147.createElement(ProminenceLayout.Root,
|
|
29968
|
+
return /* @__PURE__ */ React147.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React147.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React147.createElement(Grid, { ref, tiles: pagesWithTiles[page] })), !edgeToEdge && /* @__PURE__ */ React147.createElement(
|
|
29961
29969
|
Pagination,
|
|
29962
29970
|
{
|
|
29963
29971
|
page,
|
|
@@ -29967,20 +29975,12 @@ function RoleProminence({
|
|
|
29967
29975
|
},
|
|
29968
29976
|
numPages: pagesWithTiles.length
|
|
29969
29977
|
}
|
|
29970
|
-
), /* @__PURE__ */ React147.createElement(
|
|
29971
|
-
SecondaryTiles,
|
|
29972
|
-
{
|
|
29973
|
-
peers: layoutMode === LayoutMode.SPOTLIGHT ? [] : secondaryPeers,
|
|
29974
|
-
isInsetEnabled,
|
|
29975
|
-
edgeToEdge,
|
|
29976
|
-
hasSidebar: layoutMode === LayoutMode.SIDEBAR
|
|
29977
|
-
}
|
|
29978
|
-
), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ React147.createElement(InsetTile, null));
|
|
29978
|
+
), /* @__PURE__ */ React147.createElement(SecondaryTiles, { peers: secondaryPeers, isInsetEnabled, edgeToEdge }), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ React147.createElement(InsetTile, null));
|
|
29979
29979
|
}
|
|
29980
29980
|
|
|
29981
29981
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
|
29982
29982
|
init_define_process_env();
|
|
29983
|
-
import React151, { useEffect as
|
|
29983
|
+
import React151, { useEffect as useEffect51, useMemo as useMemo18, useState as useState64 } from "react";
|
|
29984
29984
|
import { useMedia as useMedia35 } from "react-use";
|
|
29985
29985
|
import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
|
29986
29986
|
|
|
@@ -30258,7 +30258,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
|
30258
30258
|
}
|
|
30259
30259
|
return peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id));
|
|
30260
30260
|
}, [activeSharePeer, peers, isMobile, layoutMode]);
|
|
30261
|
-
|
|
30261
|
+
useEffect51(() => {
|
|
30262
30262
|
if (isMobile) {
|
|
30263
30263
|
setLayoutMode(LayoutMode.GALLERY);
|
|
30264
30264
|
return;
|
|
@@ -30271,7 +30271,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
|
30271
30271
|
setLayoutMode(LayoutMode.GALLERY);
|
|
30272
30272
|
};
|
|
30273
30273
|
}, [isMobile]);
|
|
30274
|
-
|
|
30274
|
+
useEffect51(() => {
|
|
30275
30275
|
setActiveScreenSharePeer(activeSharePeer == null ? void 0 : activeSharePeer.id);
|
|
30276
30276
|
return () => {
|
|
30277
30277
|
setActiveScreenSharePeer("");
|
|
@@ -30291,7 +30291,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
|
30291
30291
|
|
|
30292
30292
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
|
30293
30293
|
init_define_process_env();
|
|
30294
|
-
import React152, { useEffect as
|
|
30294
|
+
import React152, { useEffect as useEffect52, useMemo as useMemo19 } from "react";
|
|
30295
30295
|
import { useMedia as useMedia36 } from "react-use";
|
|
30296
30296
|
import { Whiteboard } from "@100mslive/hms-whiteboard";
|
|
30297
30297
|
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
|
@@ -30332,7 +30332,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
|
30332
30332
|
}
|
|
30333
30333
|
return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
|
|
30334
30334
|
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
|
30335
|
-
|
|
30335
|
+
useEffect52(() => {
|
|
30336
30336
|
if (isMobile) {
|
|
30337
30337
|
setLayoutMode(LayoutMode.GALLERY);
|
|
30338
30338
|
return;
|
|
@@ -30510,7 +30510,7 @@ var GridLayout = ({
|
|
|
30510
30510
|
hideMetadataOnTile: hide_metadata_on_tile,
|
|
30511
30511
|
objectFit: video_object_fit
|
|
30512
30512
|
};
|
|
30513
|
-
|
|
30513
|
+
useEffect53(() => {
|
|
30514
30514
|
if (mainPage !== 0) {
|
|
30515
30515
|
return;
|
|
30516
30516
|
}
|
|
@@ -30567,7 +30567,7 @@ var GridLayout = ({
|
|
|
30567
30567
|
|
|
30568
30568
|
// src/Prebuilt/layouts/EmbedView.jsx
|
|
30569
30569
|
init_define_process_env();
|
|
30570
|
-
import React154, { useEffect as
|
|
30570
|
+
import React154, { useEffect as useEffect54, useMemo as useMemo21 } from "react";
|
|
30571
30571
|
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
|
|
30572
30572
|
var EmbedView = () => {
|
|
30573
30573
|
return /* @__PURE__ */ React154.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React154.createElement(EmbedComponent, null));
|
|
@@ -30580,7 +30580,7 @@ var EmbedScreenShareView = ({ children }) => {
|
|
|
30580
30580
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
|
30581
30581
|
return smallTilePeers2;
|
|
30582
30582
|
}, [peers, peerPresenting]);
|
|
30583
|
-
|
|
30583
|
+
useEffect54(() => {
|
|
30584
30584
|
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
|
30585
30585
|
return () => {
|
|
30586
30586
|
setActiveScreenSharePeer("");
|
|
@@ -30592,7 +30592,7 @@ var EmbedComponent = () => {
|
|
|
30592
30592
|
const embedConfig = useHMSStore80(selectAppData11(APP_DATA.embedConfig));
|
|
30593
30593
|
const resetConfig = useResetEmbedConfig();
|
|
30594
30594
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
|
30595
|
-
|
|
30595
|
+
useEffect54(() => {
|
|
30596
30596
|
(() => __async(void 0, null, function* () {
|
|
30597
30597
|
if (embedConfig && !isEmbedShareInProgress) {
|
|
30598
30598
|
try {
|
|
@@ -30640,18 +30640,18 @@ var EmbedComponent = () => {
|
|
|
30640
30640
|
|
|
30641
30641
|
// src/Prebuilt/layouts/PDFView.jsx
|
|
30642
30642
|
init_define_process_env();
|
|
30643
|
-
import React155, { useEffect as
|
|
30643
|
+
import React155, { useEffect as useEffect55 } from "react";
|
|
30644
30644
|
import { usePDFShare } from "@100mslive/react-sdk";
|
|
30645
30645
|
var PDFView = () => {
|
|
30646
30646
|
const pdfConfig = usePDFConfig();
|
|
30647
30647
|
const resetConfig = useResetPDFConfig();
|
|
30648
30648
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
|
30649
|
-
|
|
30649
|
+
useEffect55(() => {
|
|
30650
30650
|
return () => {
|
|
30651
30651
|
resetConfig();
|
|
30652
30652
|
};
|
|
30653
30653
|
}, []);
|
|
30654
|
-
|
|
30654
|
+
useEffect55(() => {
|
|
30655
30655
|
(() => __async(void 0, null, function* () {
|
|
30656
30656
|
try {
|
|
30657
30657
|
if (!isPDFShareInProgress && pdfConfig) {
|
|
@@ -30699,7 +30699,7 @@ var PDFView = () => {
|
|
|
30699
30699
|
|
|
30700
30700
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
|
30701
30701
|
init_define_process_env();
|
|
30702
|
-
import React156, { useEffect as
|
|
30702
|
+
import React156, { useEffect as useEffect56, useRef as useRef30, useState as useState66 } from "react";
|
|
30703
30703
|
import Draggable2 from "react-draggable";
|
|
30704
30704
|
import { useMedia as useMedia37 } from "react-use";
|
|
30705
30705
|
import {
|
|
@@ -30871,7 +30871,7 @@ var CaptionsViewer = ({
|
|
|
30871
30871
|
const isCaptionEnabled = useIsCaptionEnabled();
|
|
30872
30872
|
const isTranscriptionEnabled = useHMSStore81(selectIsTranscriptionEnabled5);
|
|
30873
30873
|
const nodeRef = useRef30(null);
|
|
30874
|
-
|
|
30874
|
+
useEffect56(() => {
|
|
30875
30875
|
const timeInterval = setInterval(() => {
|
|
30876
30876
|
var _a8;
|
|
30877
30877
|
if (!captionQueue) {
|
|
@@ -30938,12 +30938,12 @@ var CaptionsViewer = ({
|
|
|
30938
30938
|
|
|
30939
30939
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
|
30940
30940
|
init_define_process_env();
|
|
30941
|
-
import { useEffect as
|
|
30941
|
+
import { useEffect as useEffect57 } from "react";
|
|
30942
30942
|
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore82, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
|
30943
30943
|
var useCloseScreenshareWhiteboard = () => {
|
|
30944
30944
|
const peerSharing = useHMSStore82(selectPeerScreenSharing4);
|
|
30945
30945
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
|
30946
|
-
|
|
30946
|
+
useEffect57(() => {
|
|
30947
30947
|
if (isWhiteboardOwner && peerSharing) {
|
|
30948
30948
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
|
30949
30949
|
}
|
|
@@ -30951,7 +30951,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
|
30951
30951
|
};
|
|
30952
30952
|
|
|
30953
30953
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
|
30954
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
|
30954
|
+
var HLSView = React157.lazy(() => import("./HLSView-72N5Y4QP.js"));
|
|
30955
30955
|
var VideoStreamingSection = ({
|
|
30956
30956
|
screenType,
|
|
30957
30957
|
elements,
|
|
@@ -30970,7 +30970,7 @@ var VideoStreamingSection = ({
|
|
|
30970
30970
|
const [captionPosition, setCaptionPosition] = useState67({ x: isMobile ? 0 : -200, y: 0 });
|
|
30971
30971
|
useCloseScreenshareWhiteboard();
|
|
30972
30972
|
const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
|
|
30973
|
-
|
|
30973
|
+
useEffect58(() => {
|
|
30974
30974
|
if (!isConnected) {
|
|
30975
30975
|
return;
|
|
30976
30976
|
}
|
|
@@ -31283,12 +31283,12 @@ var Header2 = () => {
|
|
|
31283
31283
|
|
|
31284
31284
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
|
31285
31285
|
init_define_process_env();
|
|
31286
|
-
import { useEffect as
|
|
31286
|
+
import { useEffect as useEffect59 } from "react";
|
|
31287
31287
|
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
|
|
31288
31288
|
var PreviousRoleInMetadata = () => {
|
|
31289
31289
|
const vanillaStore = useHMSVanillaStore14();
|
|
31290
31290
|
const { updateMetaData } = useMyMetadata();
|
|
31291
|
-
|
|
31291
|
+
useEffect59(() => {
|
|
31292
31292
|
let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
|
|
31293
31293
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
|
31294
31294
|
if (previousRole !== currentRole && currentRole) {
|
|
@@ -31330,7 +31330,7 @@ var ConferenceScreen = () => {
|
|
|
31330
31330
|
setHideControls((value) => !value);
|
|
31331
31331
|
}
|
|
31332
31332
|
};
|
|
31333
|
-
|
|
31333
|
+
useEffect60(() => {
|
|
31334
31334
|
let timeout;
|
|
31335
31335
|
dropdownListRef.current = dropdownList || [];
|
|
31336
31336
|
if (dropdownListRef.current && dropdownListRef.current.length === 0) {
|
|
@@ -31345,7 +31345,7 @@ var ConferenceScreen = () => {
|
|
|
31345
31345
|
clearTimeout(timeout);
|
|
31346
31346
|
};
|
|
31347
31347
|
}, [dropdownList, hideControls, isMobileDevice]);
|
|
31348
|
-
|
|
31348
|
+
useEffect60(() => {
|
|
31349
31349
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState8.Connecting && !autoRoomJoined.current) {
|
|
31350
31350
|
hmsActions.join({
|
|
31351
31351
|
userName: userName || uuid3(),
|
|
@@ -31369,7 +31369,7 @@ var ConferenceScreen = () => {
|
|
|
31369
31369
|
userName,
|
|
31370
31370
|
requestPermission
|
|
31371
31371
|
]);
|
|
31372
|
-
|
|
31372
|
+
useEffect60(() => {
|
|
31373
31373
|
onJoinFunc == null ? void 0 : onJoinFunc();
|
|
31374
31374
|
return () => {
|
|
31375
31375
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
|
@@ -31550,11 +31550,11 @@ var ErrorBoundary = class extends Component {
|
|
|
31550
31550
|
|
|
31551
31551
|
// src/Prebuilt/components/init/Init.jsx
|
|
31552
31552
|
init_define_process_env();
|
|
31553
|
-
import React163, { useEffect as
|
|
31553
|
+
import React163, { useEffect as useEffect62 } from "react";
|
|
31554
31554
|
|
|
31555
31555
|
// src/Prebuilt/services/FeatureFlags.jsx
|
|
31556
31556
|
init_define_process_env();
|
|
31557
|
-
import { useEffect as
|
|
31557
|
+
import { useEffect as useEffect61 } from "react";
|
|
31558
31558
|
import { selectRoomID, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
|
|
31559
31559
|
var FeatureFlags = class {
|
|
31560
31560
|
static init(roomId) {
|
|
@@ -31581,7 +31581,7 @@ __publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.RE
|
|
|
31581
31581
|
__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);
|
|
31582
31582
|
function FeatureFlagsInit() {
|
|
31583
31583
|
const roomId = useHMSStore87(selectRoomID);
|
|
31584
|
-
|
|
31584
|
+
useEffect61(() => {
|
|
31585
31585
|
if (roomId) {
|
|
31586
31586
|
FeatureFlags.init(roomId);
|
|
31587
31587
|
}
|
|
@@ -31592,10 +31592,10 @@ function FeatureFlagsInit() {
|
|
|
31592
31592
|
// src/Prebuilt/components/init/Init.jsx
|
|
31593
31593
|
var Init = () => {
|
|
31594
31594
|
const { toggleTheme } = useTheme();
|
|
31595
|
-
|
|
31595
|
+
useEffect62(() => {
|
|
31596
31596
|
window.toggleUiTheme = toggleTheme;
|
|
31597
31597
|
}, [toggleTheme]);
|
|
31598
|
-
|
|
31598
|
+
useEffect62(() => {
|
|
31599
31599
|
function resetHeight() {
|
|
31600
31600
|
var _a7;
|
|
31601
31601
|
document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
|
|
@@ -31611,7 +31611,7 @@ var Init = () => {
|
|
|
31611
31611
|
|
|
31612
31612
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
|
31613
31613
|
init_define_process_env();
|
|
31614
|
-
import { useEffect as
|
|
31614
|
+
import { useEffect as useEffect63 } from "react";
|
|
31615
31615
|
import {
|
|
31616
31616
|
selectAppData as selectAppData13,
|
|
31617
31617
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
|
@@ -31706,7 +31706,7 @@ _unbind = new WeakMap();
|
|
|
31706
31706
|
var KeyboardHandler = () => {
|
|
31707
31707
|
const store = useHMSVanillaStore15();
|
|
31708
31708
|
const actions = useHMSActions51();
|
|
31709
|
-
|
|
31709
|
+
useEffect63(() => {
|
|
31710
31710
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
|
31711
31711
|
keyboardManager.bindAllShortcuts();
|
|
31712
31712
|
return keyboardManager.unbindAllShortcuts;
|
|
@@ -32220,7 +32220,7 @@ var LeaveScreen = () => {
|
|
|
32220
32220
|
|
|
32221
32221
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
|
32222
32222
|
init_define_process_env();
|
|
32223
|
-
import React168, { useEffect as
|
|
32223
|
+
import React168, { useEffect as useEffect64, useState as useState71 } from "react";
|
|
32224
32224
|
import { useMedia as useMedia44 } from "react-use";
|
|
32225
32225
|
import { match as match14, P as P6 } from "ts-pattern";
|
|
32226
32226
|
import { RefreshIcon } from "@100mslive/react-icons";
|
|
@@ -32228,7 +32228,7 @@ var MwebLandscapePrompt = () => {
|
|
|
32228
32228
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState71(false);
|
|
32229
32229
|
const isLandscape = useMedia44(config.media.ls);
|
|
32230
32230
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
32231
|
-
|
|
32231
|
+
useEffect64(() => {
|
|
32232
32232
|
var _a7;
|
|
32233
32233
|
if (!isMobileUserAgent) {
|
|
32234
32234
|
setShowMwebLandscapePrompt(false);
|
|
@@ -32273,7 +32273,7 @@ init_define_process_env();
|
|
|
32273
32273
|
|
|
32274
32274
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
|
32275
32275
|
init_define_process_env();
|
|
32276
|
-
import React177, { useCallback as useCallback36, useEffect as
|
|
32276
|
+
import React177, { useCallback as useCallback36, useEffect as useEffect75 } from "react";
|
|
32277
32277
|
import {
|
|
32278
32278
|
HMSNotificationTypes as HMSNotificationTypes11,
|
|
32279
32279
|
HMSRoomState as HMSRoomState10,
|
|
@@ -32322,7 +32322,7 @@ function AutoplayBlockedModal() {
|
|
|
32322
32322
|
|
|
32323
32323
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
|
32324
32324
|
init_define_process_env();
|
|
32325
|
-
import React170, { useEffect as
|
|
32325
|
+
import React170, { useEffect as useEffect65 } from "react";
|
|
32326
32326
|
import { v4 as uuid4 } from "uuid";
|
|
32327
32327
|
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
|
|
32328
32328
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
|
@@ -32330,7 +32330,7 @@ var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
|
|
32330
32330
|
var ChatNotifications = () => {
|
|
32331
32331
|
const chatState = useHMSStore88(selectSessionStore13("chatState" /* CHAT_STATE */));
|
|
32332
32332
|
const localPeerId = useHMSStore88(selectLocalPeerID14);
|
|
32333
|
-
|
|
32333
|
+
useEffect65(() => {
|
|
32334
32334
|
var _a7, _b7;
|
|
32335
32335
|
if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
|
|
32336
32336
|
return;
|
|
@@ -32351,7 +32351,7 @@ var ChatNotifications = () => {
|
|
|
32351
32351
|
|
|
32352
32352
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
|
32353
32353
|
init_define_process_env();
|
|
32354
|
-
import { useEffect as
|
|
32354
|
+
import { useEffect as useEffect66 } from "react";
|
|
32355
32355
|
import { useDebounce as useDebounce2 } from "react-use";
|
|
32356
32356
|
import {
|
|
32357
32357
|
HMSNotificationTypes as HMSNotificationTypes2,
|
|
@@ -32611,7 +32611,7 @@ var HandRaisedNotifications = () => {
|
|
|
32611
32611
|
const amIScreenSharing = useHMSStore90(selectIsLocalScreenShared3);
|
|
32612
32612
|
const { showNotification } = useAwayNotifications4();
|
|
32613
32613
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
|
32614
|
-
|
|
32614
|
+
useEffect66(() => {
|
|
32615
32615
|
var _a8;
|
|
32616
32616
|
if (!(notification == null ? void 0 : notification.data)) {
|
|
32617
32617
|
return;
|
|
@@ -32651,13 +32651,13 @@ var HandRaisedNotifications = () => {
|
|
|
32651
32651
|
|
|
32652
32652
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
|
32653
32653
|
init_define_process_env();
|
|
32654
|
-
import React172, { useEffect as
|
|
32654
|
+
import React172, { useEffect as useEffect67, useState as useState72 } from "react";
|
|
32655
32655
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
|
32656
32656
|
var InitErrorModal = () => {
|
|
32657
32657
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
|
32658
32658
|
const [showModal, setShowModal] = useState72(false);
|
|
32659
32659
|
const [info, setInfo] = useState72({ title: "Init Error", description: "" });
|
|
32660
|
-
|
|
32660
|
+
useEffect67(() => {
|
|
32661
32661
|
const data3 = notification == null ? void 0 : notification.data;
|
|
32662
32662
|
if (!data3 || data3.action !== "INIT") {
|
|
32663
32663
|
return;
|
|
@@ -32682,7 +32682,7 @@ var InitErrorModal = () => {
|
|
|
32682
32682
|
|
|
32683
32683
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
|
32684
32684
|
init_define_process_env();
|
|
32685
|
-
import { useEffect as
|
|
32685
|
+
import { useEffect as useEffect68 } from "react";
|
|
32686
32686
|
import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
|
|
32687
32687
|
var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
|
|
32688
32688
|
var PeerNotifications = () => {
|
|
@@ -32690,7 +32690,7 @@ var PeerNotifications = () => {
|
|
|
32690
32690
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
|
32691
32691
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
|
32692
32692
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
|
32693
|
-
|
|
32693
|
+
useEffect68(() => {
|
|
32694
32694
|
if (!(notification == null ? void 0 : notification.data)) {
|
|
32695
32695
|
return;
|
|
32696
32696
|
}
|
|
@@ -32719,7 +32719,7 @@ var PeerNotifications = () => {
|
|
|
32719
32719
|
|
|
32720
32720
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
|
32721
32721
|
init_define_process_env();
|
|
32722
|
-
import React173, { useEffect as
|
|
32722
|
+
import React173, { useEffect as useEffect69, useState as useState73 } from "react";
|
|
32723
32723
|
import { useMedia as useMedia45 } from "react-use";
|
|
32724
32724
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
|
32725
32725
|
|
|
@@ -32738,7 +32738,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
|
32738
32738
|
const [deviceType, setDeviceType] = useState73("");
|
|
32739
32739
|
const [isSystemError, setIsSystemError] = useState73(false);
|
|
32740
32740
|
const isMobile = useMedia45(config.media.md);
|
|
32741
|
-
|
|
32741
|
+
useEffect69(() => {
|
|
32742
32742
|
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"))) {
|
|
32743
32743
|
return;
|
|
32744
32744
|
}
|
|
@@ -32794,7 +32794,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
|
32794
32794
|
|
|
32795
32795
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
|
32796
32796
|
init_define_process_env();
|
|
32797
|
-
import { useEffect as
|
|
32797
|
+
import { useEffect as useEffect70, useRef as useRef32 } from "react";
|
|
32798
32798
|
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
|
32799
32799
|
var notificationTypes2 = [
|
|
32800
32800
|
HMSNotificationTypes6.RECONNECTED,
|
|
@@ -32805,7 +32805,7 @@ var notificationId = null;
|
|
|
32805
32805
|
var ReconnectNotifications = () => {
|
|
32806
32806
|
const notification = useHMSNotifications6(notificationTypes2);
|
|
32807
32807
|
const prevErrorCode = useRef32(0);
|
|
32808
|
-
|
|
32808
|
+
useEffect70(() => {
|
|
32809
32809
|
var _a7, _b7;
|
|
32810
32810
|
if (!notification) {
|
|
32811
32811
|
return;
|
|
@@ -32828,7 +32828,7 @@ var ReconnectNotifications = () => {
|
|
|
32828
32828
|
|
|
32829
32829
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
|
32830
32830
|
init_define_process_env();
|
|
32831
|
-
import React174, { useEffect as
|
|
32831
|
+
import React174, { useEffect as useEffect71, useState as useState74 } from "react";
|
|
32832
32832
|
import {
|
|
32833
32833
|
HMSNotificationTypes as HMSNotificationTypes7,
|
|
32834
32834
|
useHMSActions as useHMSActions54,
|
|
@@ -32843,7 +32843,7 @@ var TrackBulkUnmuteModal = () => {
|
|
|
32843
32843
|
HMSNotificationTypes7.ROOM_ENDED,
|
|
32844
32844
|
HMSNotificationTypes7.REMOVED_FROM_ROOM
|
|
32845
32845
|
]);
|
|
32846
|
-
|
|
32846
|
+
useEffect71(() => {
|
|
32847
32847
|
switch (notification == null ? void 0 : notification.type) {
|
|
32848
32848
|
case HMSNotificationTypes7.REMOVED_FROM_ROOM:
|
|
32849
32849
|
case HMSNotificationTypes7.ROOM_ENDED:
|
|
@@ -32882,7 +32882,7 @@ var TrackBulkUnmuteModal = () => {
|
|
|
32882
32882
|
|
|
32883
32883
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
|
32884
32884
|
init_define_process_env();
|
|
32885
|
-
import { useEffect as
|
|
32885
|
+
import { useEffect as useEffect72 } from "react";
|
|
32886
32886
|
import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
|
|
32887
32887
|
var notificationTypes3 = [
|
|
32888
32888
|
HMSNotificationTypes8.TRACK_ADDED,
|
|
@@ -32892,7 +32892,7 @@ var notificationTypes3 = [
|
|
|
32892
32892
|
];
|
|
32893
32893
|
var TrackNotifications = () => {
|
|
32894
32894
|
const notification = useHMSNotifications8(notificationTypes3);
|
|
32895
|
-
|
|
32895
|
+
useEffect72(() => {
|
|
32896
32896
|
if (notification) {
|
|
32897
32897
|
console.debug(`[${notification.type}]`, notification);
|
|
32898
32898
|
}
|
|
@@ -32902,7 +32902,7 @@ var TrackNotifications = () => {
|
|
|
32902
32902
|
|
|
32903
32903
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
|
32904
32904
|
init_define_process_env();
|
|
32905
|
-
import React175, { useEffect as
|
|
32905
|
+
import React175, { useEffect as useEffect73, useState as useState75 } from "react";
|
|
32906
32906
|
import {
|
|
32907
32907
|
HMSNotificationTypes as HMSNotificationTypes9,
|
|
32908
32908
|
useHMSActions as useHMSActions55,
|
|
@@ -32917,7 +32917,7 @@ var TrackUnmuteModal = () => {
|
|
|
32917
32917
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
|
32918
32918
|
]);
|
|
32919
32919
|
const [muteNotification, setMuteNotification] = useState75(null);
|
|
32920
|
-
|
|
32920
|
+
useEffect73(() => {
|
|
32921
32921
|
switch (notification == null ? void 0 : notification.type) {
|
|
32922
32922
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
|
32923
32923
|
case HMSNotificationTypes9.ROOM_ENDED:
|
|
@@ -32953,14 +32953,14 @@ var TrackUnmuteModal = () => {
|
|
|
32953
32953
|
|
|
32954
32954
|
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
|
32955
32955
|
init_define_process_env();
|
|
32956
|
-
import React176, { useEffect as
|
|
32956
|
+
import React176, { useEffect as useEffect74 } from "react";
|
|
32957
32957
|
import { match as match15 } from "ts-pattern";
|
|
32958
32958
|
import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
|
|
32959
32959
|
import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
|
|
32960
32960
|
var TranscriptionNotifications = () => {
|
|
32961
32961
|
const notification = useHMSNotifications10(HMSNotificationTypes10.TRANSCRIPTION_STATE_UPDATED);
|
|
32962
32962
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
|
32963
|
-
|
|
32963
|
+
useEffect74(() => {
|
|
32964
32964
|
if (!(notification == null ? void 0 : notification.data)) {
|
|
32965
32965
|
return;
|
|
32966
32966
|
}
|
|
@@ -33022,7 +33022,7 @@ function Notifications() {
|
|
|
33022
33022
|
});
|
|
33023
33023
|
}, []);
|
|
33024
33024
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
|
33025
|
-
|
|
33025
|
+
useEffect75(() => {
|
|
33026
33026
|
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p, _q;
|
|
33027
33027
|
if (!notification || isNotificationDisabled) {
|
|
33028
33028
|
return;
|
|
@@ -33208,7 +33208,7 @@ var PreviewScreen = () => {
|
|
|
33208
33208
|
|
|
33209
33209
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
|
33210
33210
|
init_define_process_env();
|
|
33211
|
-
import React181, { useEffect as
|
|
33211
|
+
import React181, { useEffect as useEffect76, useState as useState77 } from "react";
|
|
33212
33212
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
|
|
33213
33213
|
|
|
33214
33214
|
// src/Prebuilt/components/Toast/Toast.jsx
|
|
@@ -33234,7 +33234,7 @@ var Toast2 = (_a7) => {
|
|
|
33234
33234
|
var ToastContainer = () => {
|
|
33235
33235
|
const isConnected = useHMSStore92(selectIsConnectedToRoom11);
|
|
33236
33236
|
const [toasts, setToast] = useState77([]);
|
|
33237
|
-
|
|
33237
|
+
useEffect76(() => {
|
|
33238
33238
|
ToastManager.addListener(setToast);
|
|
33239
33239
|
return () => {
|
|
33240
33240
|
ToastManager.removeListener(setToast);
|
|
@@ -33289,7 +33289,7 @@ var Sheet2 = () => {
|
|
|
33289
33289
|
|
|
33290
33290
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
|
33291
33291
|
init_define_process_env();
|
|
33292
|
-
import React184, { useCallback as useCallback38, useEffect as
|
|
33292
|
+
import React184, { useCallback as useCallback38, useEffect as useEffect77, useMemo as useMemo23, useState as useState78 } from "react";
|
|
33293
33293
|
import { useMedia as useMedia46 } from "react-use";
|
|
33294
33294
|
import {
|
|
33295
33295
|
selectIsLargeRoom as selectIsLargeRoom4,
|
|
@@ -33363,7 +33363,7 @@ function FlyingEmoji() {
|
|
|
33363
33363
|
type: EMOJI_REACTION_TYPE,
|
|
33364
33364
|
onEvent: showFlyingEmoji
|
|
33365
33365
|
});
|
|
33366
|
-
|
|
33366
|
+
useEffect77(() => {
|
|
33367
33367
|
window.showFlyingEmoji = showFlyingEmoji;
|
|
33368
33368
|
}, [showFlyingEmoji]);
|
|
33369
33369
|
return /* @__PURE__ */ React184.createElement(
|
|
@@ -33442,7 +33442,7 @@ function RemoteStopScreenshare() {
|
|
|
33442
33442
|
|
|
33443
33443
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
|
33444
33444
|
init_define_process_env();
|
|
33445
|
-
import { useCallback as useCallback40, useEffect as
|
|
33445
|
+
import { useCallback as useCallback40, useEffect as useEffect78, useRef as useRef33 } from "react";
|
|
33446
33446
|
import {
|
|
33447
33447
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
|
33448
33448
|
selectPermissions as selectPermissions20,
|
|
@@ -33481,12 +33481,12 @@ var useAutoStartStreaming = () => {
|
|
|
33481
33481
|
isHLSRecordingOn,
|
|
33482
33482
|
isBrowserRecordingOn
|
|
33483
33483
|
]);
|
|
33484
|
-
|
|
33484
|
+
useEffect78(() => {
|
|
33485
33485
|
if (!isHLSStarted && !isHLSRunning) {
|
|
33486
33486
|
streamStartedRef.current = false;
|
|
33487
33487
|
}
|
|
33488
33488
|
}, [isHLSStarted, isHLSRunning]);
|
|
33489
|
-
|
|
33489
|
+
useEffect78(() => {
|
|
33490
33490
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
|
33491
33491
|
return;
|
|
33492
33492
|
}
|
|
@@ -33512,7 +33512,7 @@ var HMSPrebuilt = React186.forwardRef(
|
|
|
33512
33512
|
var _a7, _b7, _c, _d;
|
|
33513
33513
|
const reactiveStore = useRef34();
|
|
33514
33514
|
const [hydrated, setHydrated] = React186.useState(false);
|
|
33515
|
-
|
|
33515
|
+
useEffect79(() => {
|
|
33516
33516
|
setHydrated(true);
|
|
33517
33517
|
const hms = new HMSReactiveStore();
|
|
33518
33518
|
const hmsStore = hms.getStore();
|
|
@@ -33527,13 +33527,13 @@ var HMSPrebuilt = React186.forwardRef(
|
|
|
33527
33527
|
hmsNotifications
|
|
33528
33528
|
};
|
|
33529
33529
|
}, []);
|
|
33530
|
-
|
|
33530
|
+
useEffect79(() => {
|
|
33531
33531
|
if (!ref || !reactiveStore.current) {
|
|
33532
33532
|
return;
|
|
33533
33533
|
}
|
|
33534
33534
|
ref.current = __spreadValues({}, reactiveStore.current);
|
|
33535
33535
|
}, [ref]);
|
|
33536
|
-
|
|
33536
|
+
useEffect79(() => {
|
|
33537
33537
|
return () => {
|
|
33538
33538
|
var _a8;
|
|
33539
33539
|
VBHandler.reset();
|
|
@@ -33649,7 +33649,7 @@ var AppStates = ({ activeState }) => {
|
|
|
33649
33649
|
var BackSwipe = () => {
|
|
33650
33650
|
const isConnectedToRoom = useHMSStore96(selectIsConnectedToRoom13);
|
|
33651
33651
|
const hmsActions = useHMSActions59();
|
|
33652
|
-
|
|
33652
|
+
useEffect79(() => {
|
|
33653
33653
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
|
33654
33654
|
if (isConnectedToRoom) {
|
|
33655
33655
|
yield hmsActions.leave();
|
|
@@ -33713,7 +33713,7 @@ import {
|
|
|
33713
33713
|
|
|
33714
33714
|
// src/Diagnostics/AudioTest.tsx
|
|
33715
33715
|
init_define_process_env();
|
|
33716
|
-
import React190, { useCallback as useCallback41, useEffect as
|
|
33716
|
+
import React190, { useCallback as useCallback41, useEffect as useEffect80, useState as useState80 } from "react";
|
|
33717
33717
|
import {
|
|
33718
33718
|
selectDevices,
|
|
33719
33719
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
|
@@ -33984,7 +33984,7 @@ var AudioTest = () => {
|
|
|
33984
33984
|
},
|
|
33985
33985
|
[updateStep, setErrorAlone]
|
|
33986
33986
|
);
|
|
33987
|
-
|
|
33987
|
+
useEffect80(() => {
|
|
33988
33988
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
|
|
33989
33989
|
}, [hmsDiagnostics, setError]);
|
|
33990
33990
|
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(
|
|
@@ -34006,7 +34006,7 @@ var AudioTest = () => {
|
|
|
34006
34006
|
|
|
34007
34007
|
// src/Diagnostics/BrowserTest.tsx
|
|
34008
34008
|
init_define_process_env();
|
|
34009
|
-
import React191, { useEffect as
|
|
34009
|
+
import React191, { useEffect as useEffect81, useState as useState81 } from "react";
|
|
34010
34010
|
import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
|
|
34011
34011
|
var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
|
|
34012
34012
|
var operatingSystemIconInfo = {
|
|
@@ -34093,7 +34093,7 @@ var BrowserTest = () => {
|
|
|
34093
34093
|
var _a7, _b7, _c, _d;
|
|
34094
34094
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
|
34095
34095
|
const [error, setError] = useState81();
|
|
34096
|
-
|
|
34096
|
+
useEffect81(() => {
|
|
34097
34097
|
try {
|
|
34098
34098
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
|
|
34099
34099
|
} catch (err) {
|
|
@@ -34342,7 +34342,7 @@ var downloadJson = (obj, fileName) => {
|
|
|
34342
34342
|
|
|
34343
34343
|
// src/Diagnostics/VideoTest.tsx
|
|
34344
34344
|
init_define_process_env();
|
|
34345
|
-
import React193, { useEffect as
|
|
34345
|
+
import React193, { useEffect as useEffect82, useState as useState83 } from "react";
|
|
34346
34346
|
import {
|
|
34347
34347
|
selectDevices as selectDevices2,
|
|
34348
34348
|
selectLocalMediaSettings as selectLocalMediaSettings2,
|
|
@@ -34357,7 +34357,7 @@ var VideoTest = () => {
|
|
|
34357
34357
|
const trackID = useHMSStore98(selectLocalVideoTrackID4);
|
|
34358
34358
|
const sdkSelectedDevices = useHMSStore98(selectLocalMediaSettings2);
|
|
34359
34359
|
const [error, setError] = useState83();
|
|
34360
|
-
|
|
34360
|
+
useEffect82(() => {
|
|
34361
34361
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
|
|
34362
34362
|
updateStep(1 /* VIDEO */, { hasFailed: true });
|
|
34363
34363
|
setError(err);
|
|
@@ -34636,4 +34636,4 @@ object-assign/index.js:
|
|
|
34636
34636
|
@license MIT
|
|
34637
34637
|
*)
|
|
34638
34638
|
*/
|
|
34639
|
-
//# sourceMappingURL=chunk-
|
|
34639
|
+
//# sourceMappingURL=chunk-P323KKZF.js.map
|