@100mslive/roomkit-react 0.3.19-alpha.0 → 0.3.19-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-LJQ65VXH.js → HLSView-6KUW45BA.js} +2 -2
- package/dist/{HLSView-6CQOPAJJ.css → HLSView-MI7WHLIB.css} +3 -3
- package/dist/{HLSView-6CQOPAJJ.css.map → HLSView-MI7WHLIB.css.map} +1 -1
- package/dist/{chunk-O3I4DN7I.js → chunk-NC3PKPDD.js} +245 -225
- package/dist/chunk-NC3PKPDD.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +40 -21
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +31 -16
- package/dist/meta.esbuild.json +41 -26
- package/package.json +7 -7
- package/src/Prebuilt/components/PIP/PIPChat.tsx +14 -2
- package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +14 -1
- package/dist/chunk-O3I4DN7I.js.map +0 -7
- /package/dist/{HLSView-LJQ65VXH.js.map → HLSView-6KUW45BA.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_8060985f-6820-4336-8097-099726194fa5", 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.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.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.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8060985f-6820-4336-8097-099726194fa5", 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.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", 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.9", 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: "20240811.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:19713", 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.0", 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: "10465566030", 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: "5de66a04a026c41273f2e5c7726569cf75ee4bc4", 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: "624004f7a07b3d88570fdbaad8a462c284764d6b2f0c503522294f48bd919e32", 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--1724130281828-0.09475934427180333:/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--1724130281634-0.1487797940428417:/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--1724130255579-0.16172174150702223:/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--1724130255395-0.5013479225943236:/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_7ba39714-4a2d-4ba0-98b8-767dbb899398", INVOCATION_ID: "8092bc65893e434aa6237ee2149a024d", 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: "643", 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 482", 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.0", 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.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "5de66a04a026c41273f2e5c7726569cf75ee4bc4", 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_8060985f-6820-4336-8097-099726194fa5", 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_8060985f-6820-4336-8097-099726194fa5", 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_8060985f-6820-4336-8097-099726194fa5" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6cea5802-ce23-4c1e-97a2-70076471882b", 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.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6cea5802-ce23-4c1e-97a2-70076471882b", 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.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", 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.9", 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: "592", 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: "20240811.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:1821", 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.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10472637880", 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: "4e76816ac6791d45d6099d5ecf81b9b730bbb9db", 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: "6790174dc36e26c3b589aa85cb1ac4b030a9489d29e85bee676df9058a07e5f4", 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--1724160935532-0.7852344527720556:/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--1724160935303-0.6284305740362575:/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--1724160908813-0.14105343274938886:/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--1724160908629-0.46815752240870667:/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_05bd7fdb-bfbd-48f1-a2d1-f746c00dddb2", INVOCATION_ID: "297196c99e914941bba85b21184f9190", 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: "644", 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 92", 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.1", 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.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "4e76816ac6791d45d6099d5ecf81b9b730bbb9db", 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_6cea5802-ce23-4c1e-97a2-70076471882b", 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_6cea5802-ce23-4c1e-97a2-70076471882b", 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_6cea5802-ce23-4c1e-97a2-70076471882b" };
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
@@ -12911,13 +12911,13 @@ var Collapsible = {
|
|
12911
12911
|
|
12912
12912
|
// src/Prebuilt/App.tsx
|
12913
12913
|
init_define_process_env();
|
12914
|
-
import React183, { useEffect as
|
12914
|
+
import React183, { useEffect as useEffect78, useRef as useRef33 } from "react";
|
12915
12915
|
import { match as match16 } from "ts-pattern";
|
12916
12916
|
import {
|
12917
12917
|
HMSReactiveStore,
|
12918
12918
|
HMSRoomProvider,
|
12919
12919
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
12920
|
-
useHMSActions as
|
12920
|
+
useHMSActions as useHMSActions58,
|
12921
12921
|
useHMSStore as useHMSStore96
|
12922
12922
|
} from "@100mslive/react-sdk";
|
12923
12923
|
|
@@ -14604,7 +14604,7 @@ var AuthToken_default = AuthToken;
|
|
14604
14604
|
|
14605
14605
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
14606
14606
|
init_define_process_env();
|
14607
|
-
import React161, { useEffect as
|
14607
|
+
import React161, { useEffect as useEffect59, useRef as useRef30, useState as useState68 } from "react";
|
14608
14608
|
import { v4 as uuid3 } from "uuid";
|
14609
14609
|
import {
|
14610
14610
|
HMSRoomState as HMSRoomState8,
|
@@ -14612,13 +14612,13 @@ import {
|
|
14612
14612
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
14613
14613
|
selectRoomState as selectRoomState8,
|
14614
14614
|
useAwayNotifications as useAwayNotifications3,
|
14615
|
-
useHMSActions as
|
14615
|
+
useHMSActions as useHMSActions50,
|
14616
14616
|
useHMSStore as useHMSStore86
|
14617
14617
|
} from "@100mslive/react-sdk";
|
14618
14618
|
|
14619
14619
|
// src/Prebuilt/components/Footer/Footer.tsx
|
14620
14620
|
init_define_process_env();
|
14621
|
-
import React86, { useEffect as
|
14621
|
+
import React86, { useEffect as useEffect27 } from "react";
|
14622
14622
|
import { useMedia as useMedia15 } from "react-use";
|
14623
14623
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
14624
14624
|
|
@@ -17630,9 +17630,17 @@ var PIPChat = () => {
|
|
17630
17630
|
filteredMessages.length === 0 ? /* @__PURE__ */ React50.createElement(
|
17631
17631
|
"div",
|
17632
17632
|
{
|
17633
|
-
style: {
|
17633
|
+
style: {
|
17634
|
+
display: "flex",
|
17635
|
+
flexDirection: "column",
|
17636
|
+
height: "100%",
|
17637
|
+
width: "100%",
|
17638
|
+
alignItems: "center",
|
17639
|
+
justifyContent: "center"
|
17640
|
+
}
|
17634
17641
|
},
|
17635
|
-
/* @__PURE__ */ React50.createElement(Text,
|
17642
|
+
/* @__PURE__ */ React50.createElement(Text, { variant: "h5", css: { mt: "$8", c: "$on_surface_high" } }, canSendChatMessages ? "Start a conversation" : "No messages yet"),
|
17643
|
+
/* @__PURE__ */ React50.createElement(Text, { variant: "sm", style: { maxWidth: "80%", textAlign: "center", marginTop: "4px" } }, "There are no messages here yet. Start a conversation by sending a message.")
|
17636
17644
|
) : filteredMessages.map((message) => /* @__PURE__ */ React50.createElement(Box, { className: "pip-message", key: message.id, id: message.id, style: { padding: "8px 0.75rem" } }, /* @__PURE__ */ React50.createElement(Flex, { style: { width: "100%", alignItems: "center", justifyContent: "between" } }, /* @__PURE__ */ React50.createElement(
|
17637
17645
|
Text,
|
17638
17646
|
{
|
@@ -21365,7 +21373,7 @@ var mr = (a2, e) => {
|
|
21365
21373
|
};
|
21366
21374
|
var Za = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21367
21375
|
var vr = Za((Hc, co) => {
|
21368
|
-
co.exports = { version: "0.12.19-alpha.
|
21376
|
+
co.exports = { version: "0.12.19-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
21369
21377
|
});
|
21370
21378
|
var Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
|
21371
21379
|
var eo = ((e) => (e.CHAT = "chat", e))(eo || {});
|
@@ -23653,12 +23661,15 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
23653
23661
|
|
23654
23662
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
23655
23663
|
init_define_process_env();
|
23656
|
-
import React77 from "react";
|
23664
|
+
import React77, { useEffect as useEffect23 } from "react";
|
23665
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background";
|
23657
23666
|
import {
|
23658
23667
|
selectAppData as selectAppData5,
|
23659
23668
|
selectIsEffectsEnabled,
|
23660
23669
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
|
23661
23670
|
selectIsVBEnabled,
|
23671
|
+
useAVToggle as useAVToggle3,
|
23672
|
+
useHMSActions as useHMSActions28,
|
23662
23673
|
useHMSStore as useHMSStore35
|
23663
23674
|
} from "@100mslive/react-sdk";
|
23664
23675
|
import { VirtualBackgroundIcon as VirtualBackgroundIcon2 } from "@100mslive/react-icons";
|
@@ -23669,6 +23680,15 @@ var VBToggle = () => {
|
|
23669
23680
|
const isVBEnabled = useHMSStore35(selectIsVBEnabled);
|
23670
23681
|
const isEffectsEnabled = useHMSStore35(selectIsEffectsEnabled);
|
23671
23682
|
const loadingEffects = useHMSStore35(selectAppData5(APP_DATA.loadingEffects));
|
23683
|
+
const hmsActions = useHMSActions28();
|
23684
|
+
const { toggleVideo } = useAVToggle3();
|
23685
|
+
useEffect23(() => {
|
23686
|
+
var _a7;
|
23687
|
+
if (!toggleVideo) {
|
23688
|
+
(_a7 = VBHandler) == null ? void 0 : _a7.reset();
|
23689
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes2.NONE);
|
23690
|
+
}
|
23691
|
+
}, [hmsActions, toggleVideo]);
|
23672
23692
|
if (!isVideoOn || !isEffectsEnabled && isSafari || !isVBEnabled) {
|
23673
23693
|
return null;
|
23674
23694
|
}
|
@@ -23867,13 +23887,13 @@ var ConnectionIndicator = ({
|
|
23867
23887
|
// src/Prebuilt/components/RemoveParticipant.tsx
|
23868
23888
|
init_define_process_env();
|
23869
23889
|
import React80 from "react";
|
23870
|
-
import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as
|
23890
|
+
import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as useHMSActions29, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
|
23871
23891
|
import { PeopleRemoveIcon as PeopleRemoveIcon3 } from "@100mslive/react-icons";
|
23872
23892
|
var RemoveParticipant = ({ peerId }) => {
|
23873
23893
|
var _a7;
|
23874
23894
|
const canRemoveOthers = (_a7 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a7.removeOthers;
|
23875
23895
|
const localPeerId = useHMSStore38(selectLocalPeerID7);
|
23876
|
-
const actions =
|
23896
|
+
const actions = useHMSActions29();
|
23877
23897
|
if (peerId === localPeerId || !canRemoveOthers) {
|
23878
23898
|
return null;
|
23879
23899
|
}
|
@@ -23897,7 +23917,7 @@ var RemoveParticipant = ({ peerId }) => {
|
|
23897
23917
|
|
23898
23918
|
// src/Prebuilt/components/Footer/RoleAccordion.tsx
|
23899
23919
|
init_define_process_env();
|
23900
|
-
import React82, { useEffect as
|
23920
|
+
import React82, { useEffect as useEffect24 } from "react";
|
23901
23921
|
import { useMeasure } from "react-use";
|
23902
23922
|
import { FixedSizeList } from "react-window";
|
23903
23923
|
import { selectIsLargeRoom, useHMSStore as useHMSStore41, usePaginatedParticipants } from "@100mslive/react-sdk";
|
@@ -23911,7 +23931,7 @@ import {
|
|
23911
23931
|
selectPermissions as selectPermissions11,
|
23912
23932
|
selectRoleByRoleName,
|
23913
23933
|
selectTracksMap as selectTracksMap3,
|
23914
|
-
useHMSActions as
|
23934
|
+
useHMSActions as useHMSActions30,
|
23915
23935
|
useHMSStore as useHMSStore39
|
23916
23936
|
} from "@100mslive/react-sdk";
|
23917
23937
|
import {
|
@@ -23968,7 +23988,7 @@ var DropdownWrapper = ({ children }) => {
|
|
23968
23988
|
};
|
23969
23989
|
var RoleOptions = ({ roleName, peerList }) => {
|
23970
23990
|
const permissions = useHMSStore39(selectPermissions11);
|
23971
|
-
const hmsActions =
|
23991
|
+
const hmsActions = useHMSActions30();
|
23972
23992
|
const { elements } = useRoomLayoutConferencingScreen();
|
23973
23993
|
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
23974
23994
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
@@ -24050,10 +24070,10 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
24050
24070
|
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
24051
24071
|
init_define_process_env();
|
24052
24072
|
import { match as match8, P as P4 } from "ts-pattern";
|
24053
|
-
import { selectPermissions as selectPermissions12, useHMSActions as
|
24073
|
+
import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions31, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
|
24054
24074
|
var useGroupOnStageActions = ({ peers }) => {
|
24055
24075
|
var _a7;
|
24056
|
-
const hmsActions =
|
24076
|
+
const hmsActions = useHMSActions31();
|
24057
24077
|
const { elements } = useRoomLayoutConferencingScreen();
|
24058
24078
|
const {
|
24059
24079
|
bring_to_stage_label,
|
@@ -24141,7 +24161,7 @@ var RoleAccordion = ({
|
|
24141
24161
|
const { bringAllToStage, bring_to_stage_label, canBringToStage, lowerAllHands } = useGroupOnStageActions({
|
24142
24162
|
peers: peersInAccordion
|
24143
24163
|
});
|
24144
|
-
|
24164
|
+
useEffect24(() => {
|
24145
24165
|
if (!isOffStageRole || !isLargeRoom) {
|
24146
24166
|
return;
|
24147
24167
|
}
|
@@ -24229,13 +24249,13 @@ var RoleAccordion = ({
|
|
24229
24249
|
|
24230
24250
|
// src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
|
24231
24251
|
init_define_process_env();
|
24232
|
-
import { useEffect as
|
24252
|
+
import { useEffect as useEffect25 } from "react";
|
24233
24253
|
import { selectAppData as selectAppData6, useHMSStore as useHMSStore42 } from "@100mslive/react-sdk";
|
24234
24254
|
var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
24235
24255
|
const { elements } = useRoomLayoutConferencingScreen();
|
24236
24256
|
const sidepane = useHMSStore42(selectAppData6(APP_DATA.sidePane));
|
24237
24257
|
const resetSidePane = useSidepaneReset();
|
24238
|
-
|
24258
|
+
useEffect25(() => {
|
24239
24259
|
if (sidepane === sidepaneOption && !(elements == null ? void 0 : elements[layoutKey])) {
|
24240
24260
|
resetSidePane();
|
24241
24261
|
}
|
@@ -24245,10 +24265,10 @@ var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
|
24245
24265
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
24246
24266
|
init_define_process_env();
|
24247
24267
|
import { useState as useState35 } from "react";
|
24248
|
-
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as
|
24268
|
+
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as useHMSActions32, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
|
24249
24269
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
24250
24270
|
var _a7, _b7;
|
24251
|
-
const hmsActions =
|
24271
|
+
const hmsActions = useHMSActions32();
|
24252
24272
|
const { elements } = useRoomLayoutConferencingScreen();
|
24253
24273
|
const {
|
24254
24274
|
bring_to_stage_label,
|
@@ -24632,13 +24652,13 @@ var ParticipantSearch = ({
|
|
24632
24652
|
|
24633
24653
|
// src/Prebuilt/components/Footer/PollsToggle.tsx
|
24634
24654
|
init_define_process_env();
|
24635
|
-
import React84, { useEffect as
|
24655
|
+
import React84, { useEffect as useEffect26 } from "react";
|
24636
24656
|
import { QuizActiveIcon as QuizActiveIcon2, QuizIcon as QuizIcon2 } from "@100mslive/react-icons";
|
24637
24657
|
var PollsToggle = () => {
|
24638
24658
|
const isPollsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.POLLS);
|
24639
24659
|
const togglePollView = usePollViewToggle();
|
24640
24660
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
24641
|
-
|
24661
|
+
useEffect26(() => {
|
24642
24662
|
if (unreadPollQuiz && isPollsOpen) {
|
24643
24663
|
setUnreadPollQuiz(false);
|
24644
24664
|
}
|
@@ -24709,7 +24729,7 @@ var Footer2 = ({
|
|
24709
24729
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
24710
24730
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
24711
24731
|
const { showPolls } = useShowPolls();
|
24712
|
-
|
24732
|
+
useEffect27(() => {
|
24713
24733
|
if (!isChatOpen && openByDefault) {
|
24714
24734
|
toggleChat();
|
24715
24735
|
}
|
@@ -24762,11 +24782,11 @@ var Footer2 = ({
|
|
24762
24782
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
24763
24783
|
init_define_process_env();
|
24764
24784
|
import React87, { useCallback as useCallback25, useState as useState37 } from "react";
|
24765
|
-
import { selectHLSState as selectHLSState5, useHMSActions as
|
24785
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions33, useHMSStore as useHMSStore46, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
24766
24786
|
function HLSFailureModal() {
|
24767
24787
|
const hlsError = useHMSStore46(selectHLSState5).error || false;
|
24768
24788
|
const [openModal, setOpenModal] = useState37(!!hlsError);
|
24769
|
-
const hmsActions =
|
24789
|
+
const hmsActions = useHMSActions33();
|
24770
24790
|
const { isRTMPRunning } = useRecordingStreaming8();
|
24771
24791
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
24772
24792
|
const startHLS = useCallback25(() => __async(this, null, function* () {
|
@@ -24809,20 +24829,20 @@ function HLSFailureModal() {
|
|
24809
24829
|
|
24810
24830
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
24811
24831
|
init_define_process_env();
|
24812
|
-
import React138, { useEffect as
|
24832
|
+
import React138, { useEffect as useEffect43 } from "react";
|
24813
24833
|
import {
|
24814
24834
|
selectIsInPreview,
|
24815
24835
|
selectLocalPeerName as selectLocalPeerName4,
|
24816
24836
|
selectLocalPeerRoleName as selectLocalPeerRoleName4,
|
24817
24837
|
selectRoleChangeRequest,
|
24818
24838
|
useCustomEvent as useCustomEvent3,
|
24819
|
-
useHMSActions as
|
24839
|
+
useHMSActions as useHMSActions46,
|
24820
24840
|
useHMSStore as useHMSStore72
|
24821
24841
|
} from "@100mslive/react-sdk";
|
24822
24842
|
|
24823
24843
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
24824
24844
|
init_define_process_env();
|
24825
|
-
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as
|
24845
|
+
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect42, useMemo as useMemo15, useState as useState57 } from "react";
|
24826
24846
|
import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
|
24827
24847
|
import {
|
24828
24848
|
HMSRoomState as HMSRoomState6,
|
@@ -24832,7 +24852,7 @@ import {
|
|
24832
24852
|
selectLocalPeer as selectLocalPeer9,
|
24833
24853
|
selectRoomState as selectRoomState6,
|
24834
24854
|
selectVideoTrackByID as selectVideoTrackByID5,
|
24835
|
-
useAVToggle as
|
24855
|
+
useAVToggle as useAVToggle4,
|
24836
24856
|
useAwayNotifications as useAwayNotifications2,
|
24837
24857
|
useHMSStore as useHMSStore71,
|
24838
24858
|
useParticipants as useParticipants2,
|
@@ -24843,7 +24863,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
24843
24863
|
|
24844
24864
|
// src/Prebuilt/layouts/SidePane.tsx
|
24845
24865
|
init_define_process_env();
|
24846
|
-
import React132, { useEffect as
|
24866
|
+
import React132, { useEffect as useEffect41 } from "react";
|
24847
24867
|
import { useMedia as useMedia25 } from "react-use";
|
24848
24868
|
import { match as match12 } from "ts-pattern";
|
24849
24869
|
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
|
@@ -24854,12 +24874,12 @@ import React109 from "react";
|
|
24854
24874
|
|
24855
24875
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
24856
24876
|
init_define_process_env();
|
24857
|
-
import React90, { useEffect as
|
24877
|
+
import React90, { useEffect as useEffect28, useMemo as useMemo9, useRef as useRef19, useState as useState38 } from "react";
|
24858
24878
|
import {
|
24859
24879
|
selectLocalPeerRoleName as selectLocalPeerRoleName2,
|
24860
24880
|
selectPermissions as selectPermissions16,
|
24861
24881
|
selectPolls as selectPolls2,
|
24862
|
-
useHMSActions as
|
24882
|
+
useHMSActions as useHMSActions34,
|
24863
24883
|
useHMSStore as useHMSStore48
|
24864
24884
|
} from "@100mslive/react-sdk";
|
24865
24885
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
@@ -25008,7 +25028,7 @@ function InteractionSelectionCard({
|
|
25008
25028
|
);
|
25009
25029
|
}
|
25010
25030
|
var AddMenu = () => {
|
25011
|
-
const actions =
|
25031
|
+
const actions = useHMSActions34();
|
25012
25032
|
const [title, setTitle] = useState38("");
|
25013
25033
|
const localPeerRoleName = useHMSStore48(selectLocalPeerRoleName2);
|
25014
25034
|
const [hideVoteCount, setHideVoteCount] = useState38(false);
|
@@ -25017,7 +25037,7 @@ var AddMenu = () => {
|
|
25017
25037
|
const { setPollState } = usePollViewState();
|
25018
25038
|
const [interactionType, setInteractionType] = useState38("Poll" /* POLL */);
|
25019
25039
|
const inputRef = useRef19(null);
|
25020
|
-
|
25040
|
+
useEffect28(() => {
|
25021
25041
|
if (inputRef.current) {
|
25022
25042
|
inputRef.current.focus();
|
25023
25043
|
}
|
@@ -25091,7 +25111,7 @@ var AddMenu = () => {
|
|
25091
25111
|
), /* @__PURE__ */ React90.createElement(ErrorText, { error: error || titleError })));
|
25092
25112
|
};
|
25093
25113
|
var PrevMenu = () => {
|
25094
|
-
const hmsActions =
|
25114
|
+
const hmsActions = useHMSActions34();
|
25095
25115
|
const polls = useHMSStore48(selectPolls2);
|
25096
25116
|
const sortedPolls = useMemo9(
|
25097
25117
|
() => {
|
@@ -25104,7 +25124,7 @@ var PrevMenu = () => {
|
|
25104
25124
|
[polls]
|
25105
25125
|
);
|
25106
25126
|
const permissions = useHMSStore48(selectPermissions16);
|
25107
|
-
|
25127
|
+
useEffect28(() => {
|
25108
25128
|
const updatePolls = () => __async(void 0, null, function* () {
|
25109
25129
|
yield hmsActions.interactivityCenter.getPolls();
|
25110
25130
|
});
|
@@ -25141,7 +25161,7 @@ var InteractionCard = ({ id, title, status }) => {
|
|
25141
25161
|
init_define_process_env();
|
25142
25162
|
import React100, { useMemo as useMemo11, useState as useState40 } from "react";
|
25143
25163
|
import { v4 as uuid2 } from "uuid";
|
25144
|
-
import { selectPollByID, useHMSActions as
|
25164
|
+
import { selectPollByID, useHMSActions as useHMSActions35, useHMSStore as useHMSStore49, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
25145
25165
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
25146
25166
|
|
25147
25167
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
@@ -25678,7 +25698,7 @@ var getEditableFormat = (questions) => {
|
|
25678
25698
|
};
|
25679
25699
|
function CreateQuestions() {
|
25680
25700
|
var _a7, _b7, _c, _d;
|
25681
|
-
const actions =
|
25701
|
+
const actions = useHMSActions35();
|
25682
25702
|
const { isHLSRunning } = useRecordingStreaming9();
|
25683
25703
|
const togglePollView = usePollViewToggle();
|
25684
25704
|
const { pollInView: id, setPollView } = usePollViewState();
|
@@ -25864,14 +25884,14 @@ var StatisticBox = ({ title, value = 0 }) => {
|
|
25864
25884
|
|
25865
25885
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
25866
25886
|
init_define_process_env();
|
25867
|
-
import { useEffect as
|
25887
|
+
import { useEffect as useEffect29, useState as useState41 } from "react";
|
25868
25888
|
import {
|
25869
25889
|
selectPollByID as selectPollByID2,
|
25870
|
-
useHMSActions as
|
25890
|
+
useHMSActions as useHMSActions36,
|
25871
25891
|
useHMSStore as useHMSStore50
|
25872
25892
|
} from "@100mslive/react-sdk";
|
25873
25893
|
var useQuizSummary = (quizID) => {
|
25874
|
-
const hmsActions =
|
25894
|
+
const hmsActions = useHMSActions36();
|
25875
25895
|
const quiz = useHMSStore50(selectPollByID2(quizID));
|
25876
25896
|
const [quizLeaderboard, setQuizLeaderboard] = useState41();
|
25877
25897
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
@@ -25882,7 +25902,7 @@ var useQuizSummary = (quizID) => {
|
|
25882
25902
|
correctUsers: 0
|
25883
25903
|
};
|
25884
25904
|
const [calculations, setCalculations] = useState41({ maxPossibleScore: 0, totalResponses: 0 });
|
25885
|
-
|
25905
|
+
useEffect29(() => {
|
25886
25906
|
const fetchLeaderboardData = () => __async(void 0, null, function* () {
|
25887
25907
|
var _a7;
|
25888
25908
|
if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
|
@@ -26022,13 +26042,13 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
26022
26042
|
|
26023
26043
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
26024
26044
|
init_define_process_env();
|
26025
|
-
import React108, { useEffect as
|
26045
|
+
import React108, { useEffect as useEffect32, useRef as useRef22, useState as useState45 } from "react";
|
26026
26046
|
import {
|
26027
26047
|
selectLocalPeer as selectLocalPeer4,
|
26028
26048
|
selectPeerNameByID as selectPeerNameByID4,
|
26029
26049
|
selectPermissions as selectPermissions17,
|
26030
26050
|
selectPollByID as selectPollByID4,
|
26031
|
-
useHMSActions as
|
26051
|
+
useHMSActions as useHMSActions38,
|
26032
26052
|
useHMSStore as useHMSStore54
|
26033
26053
|
} from "@100mslive/react-sdk";
|
26034
26054
|
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
|
@@ -26039,9 +26059,9 @@ import React106 from "react";
|
|
26039
26059
|
|
26040
26060
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
26041
26061
|
init_define_process_env();
|
26042
|
-
import React105, { useCallback as useCallback27, useEffect as
|
26062
|
+
import React105, { useCallback as useCallback27, useEffect as useEffect30, useMemo as useMemo12, useRef as useRef21, useState as useState43 } from "react";
|
26043
26063
|
import { match as match9 } from "ts-pattern";
|
26044
|
-
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as
|
26064
|
+
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
26045
26065
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon4, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
|
26046
26066
|
var QuestionCard2 = ({
|
26047
26067
|
pollID,
|
@@ -26059,13 +26079,13 @@ var QuestionCard2 = ({
|
|
26059
26079
|
updateSavedResponses,
|
26060
26080
|
rolesThatCanViewResponses
|
26061
26081
|
}) => {
|
26062
|
-
const actions =
|
26082
|
+
const actions = useHMSActions37();
|
26063
26083
|
const localPeer = useHMSStore53(selectLocalPeer3);
|
26064
26084
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
26065
26085
|
const localPeerRoleName = useHMSStore53(selectLocalPeerRoleName3);
|
26066
26086
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
26067
26087
|
const [localPeerChoice, setLocalPeerChoice] = useState43(localPeerResponse);
|
26068
|
-
|
26088
|
+
useEffect30(() => {
|
26069
26089
|
setLocalPeerChoice(localPeerResponse);
|
26070
26090
|
}, [localPeerResponse]);
|
26071
26091
|
const showVoteCount = roleCanViewResponse && (localPeerChoice || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
@@ -26247,7 +26267,7 @@ var StandardView = ({
|
|
26247
26267
|
|
26248
26268
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
26249
26269
|
init_define_process_env();
|
26250
|
-
import React107, { useEffect as
|
26270
|
+
import React107, { useEffect as useEffect31, useState as useState44 } from "react";
|
26251
26271
|
var TimedView = ({
|
26252
26272
|
poll,
|
26253
26273
|
localPeerResponses,
|
@@ -26257,7 +26277,7 @@ var TimedView = ({
|
|
26257
26277
|
const [currentIndex, setCurrentIndex] = useState44(getIndexToShow(localPeerResponses));
|
26258
26278
|
const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
|
26259
26279
|
const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
|
26260
|
-
|
26280
|
+
useEffect31(() => {
|
26261
26281
|
setCurrentIndex(getIndexToShow(localPeerResponses));
|
26262
26282
|
}, [localPeerResponses]);
|
26263
26283
|
if (!activeQuestion && !attemptedAll || !((_c = poll.questions) == null ? void 0 : _c.length)) {
|
@@ -26290,7 +26310,7 @@ var TimedView = ({
|
|
26290
26310
|
|
26291
26311
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
26292
26312
|
var Voting = ({ id, toggleVoting }) => {
|
26293
|
-
const actions =
|
26313
|
+
const actions = useHMSActions38();
|
26294
26314
|
const poll = useHMSStore54(selectPollByID4(id));
|
26295
26315
|
const pollCreatorName = useHMSStore54(selectPeerNameByID4(poll == null ? void 0 : poll.createdBy));
|
26296
26316
|
const permissions = useHMSStore54(selectPermissions17);
|
@@ -26302,11 +26322,11 @@ var Voting = ({ id, toggleVoting }) => {
|
|
26302
26322
|
const localPeer = useHMSStore54(selectLocalPeer4);
|
26303
26323
|
const localPeerId = localPeer == null ? void 0 : localPeer.id;
|
26304
26324
|
const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
|
26305
|
-
|
26325
|
+
useEffect32(() => {
|
26306
26326
|
fetchedInitialResponses.current = false;
|
26307
26327
|
setSavedResponses({});
|
26308
26328
|
}, [id, setSavedResponses]);
|
26309
|
-
|
26329
|
+
useEffect32(() => {
|
26310
26330
|
const getResponses = () => __async(void 0, null, function* () {
|
26311
26331
|
if (poll && actions.interactivityCenter && !fetchedInitialResponses.current) {
|
26312
26332
|
yield actions.interactivityCenter.getPollResponses(poll, true);
|
@@ -26315,7 +26335,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
26315
26335
|
});
|
26316
26336
|
getResponses();
|
26317
26337
|
}, [poll, actions.interactivityCenter]);
|
26318
|
-
|
26338
|
+
useEffect32(() => {
|
26319
26339
|
if (poll == null ? void 0 : poll.questions) {
|
26320
26340
|
const localPeerResponses = getPeerResponses(poll.questions, localPeerId, customerUserId);
|
26321
26341
|
localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
|
@@ -26413,7 +26433,7 @@ import { CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
|
|
26413
26433
|
|
26414
26434
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
26415
26435
|
init_define_process_env();
|
26416
|
-
import React110, { useEffect as
|
26436
|
+
import React110, { useEffect as useEffect33, useState as useState46 } from "react";
|
26417
26437
|
import { selectDominantSpeaker, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
26418
26438
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
26419
26439
|
var SpeakerTag = () => {
|
@@ -26442,7 +26462,7 @@ var Logo = () => {
|
|
26442
26462
|
const roomLayout = useRoomLayout();
|
26443
26463
|
const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
|
26444
26464
|
const [hideImage, setHideImage] = useState46(false);
|
26445
|
-
|
26465
|
+
useEffect33(() => {
|
26446
26466
|
if (hideImage) {
|
26447
26467
|
setHideImage(false);
|
26448
26468
|
}
|
@@ -26466,10 +26486,10 @@ import React112 from "react";
|
|
26466
26486
|
|
26467
26487
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
26468
26488
|
init_define_process_env();
|
26469
|
-
import React111, { useEffect as
|
26489
|
+
import React111, { useEffect as useEffect34, useState as useState47 } from "react";
|
26470
26490
|
var Duration = ({ timestamp }) => {
|
26471
26491
|
const [elapsedTime, setElapsedTime] = useState47(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
26472
|
-
|
26492
|
+
useEffect34(() => {
|
26473
26493
|
const timerAdded = setInterval(() => {
|
26474
26494
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
26475
26495
|
}, 1e3);
|
@@ -26511,7 +26531,7 @@ var ShowRoomDetailHeader = () => {
|
|
26511
26531
|
|
26512
26532
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
26513
26533
|
init_define_process_env();
|
26514
|
-
import React124, { useEffect as
|
26534
|
+
import React124, { useEffect as useEffect39, useState as useState53 } from "react";
|
26515
26535
|
import { useMedia as useMedia21 } from "react-use";
|
26516
26536
|
import { match as match11 } from "ts-pattern";
|
26517
26537
|
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
@@ -26522,16 +26542,16 @@ init_define_process_env();
|
|
26522
26542
|
import React121, { useCallback as useCallback31, useRef as useRef25 } from "react";
|
26523
26543
|
import { useMedia as useMedia20 } from "react-use";
|
26524
26544
|
import { match as match10 } from "ts-pattern";
|
26525
|
-
import { selectHMSMessagesCount, useHMSActions as
|
26545
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions42, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
|
26526
26546
|
import { ChevronDownIcon as ChevronDownIcon7 } from "@100mslive/react-icons";
|
26527
26547
|
|
26528
26548
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
26529
26549
|
init_define_process_env();
|
26530
|
-
import React116, { useCallback as useCallback29, useEffect as
|
26550
|
+
import React116, { useCallback as useCallback29, useEffect as useEffect36, useRef as useRef24, useState as useState50 } from "react";
|
26531
26551
|
import { useMedia as useMedia18 } from "react-use";
|
26532
26552
|
import data2 from "@emoji-mart/data";
|
26533
26553
|
import Picker from "@emoji-mart/react";
|
26534
|
-
import { selectLocalPeer as selectLocalPeer5, useHMSActions as
|
26554
|
+
import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions40, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
26535
26555
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon as SendIcon2, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
26536
26556
|
|
26537
26557
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -26832,9 +26852,9 @@ var ChatSelectorContainer = () => {
|
|
26832
26852
|
// src/Prebuilt/components/AppData/useChatState.js
|
26833
26853
|
init_define_process_env();
|
26834
26854
|
import { useCallback as useCallback28 } from "react";
|
26835
|
-
import { selectAppData as selectAppData7, useHMSActions as
|
26855
|
+
import { selectAppData as selectAppData7, useHMSActions as useHMSActions39, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
26836
26856
|
var useChatDraftMessage = () => {
|
26837
|
-
const hmsActions =
|
26857
|
+
const hmsActions = useHMSActions39();
|
26838
26858
|
let chatDraftMessage = useHMSStore57(selectAppData7(APP_DATA.chatDraft));
|
26839
26859
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
26840
26860
|
chatDraftMessage = "";
|
@@ -26850,10 +26870,10 @@ var useChatDraftMessage = () => {
|
|
26850
26870
|
|
26851
26871
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
26852
26872
|
init_define_process_env();
|
26853
|
-
import { useEffect as
|
26873
|
+
import { useEffect as useEffect35, useRef as useRef23 } from "react";
|
26854
26874
|
var useEmojiPickerStyles = (showing) => {
|
26855
26875
|
const ref = useRef23(null);
|
26856
|
-
|
26876
|
+
useEffect35(() => {
|
26857
26877
|
if (showing) {
|
26858
26878
|
setTimeout(() => {
|
26859
26879
|
var _a7, _b7;
|
@@ -26928,7 +26948,7 @@ function EmojiPicker({ onSelect }) {
|
|
26928
26948
|
}
|
26929
26949
|
var ChatFooter = ({ onSend, children }) => {
|
26930
26950
|
var _a7, _b7, _c, _d, _e;
|
26931
|
-
const hmsActions =
|
26951
|
+
const hmsActions = useHMSActions40();
|
26932
26952
|
const inputRef = useRef24(null);
|
26933
26953
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
26934
26954
|
const isMobile = useMedia18(config.media.md);
|
@@ -26945,7 +26965,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26945
26965
|
const isMwebHLSStream = useMobileHLSStream();
|
26946
26966
|
const [messageLengthExceeded, setMessageLengthExceeded] = useState50(false);
|
26947
26967
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
26948
|
-
|
26968
|
+
useEffect36(() => {
|
26949
26969
|
var _a8, _b8;
|
26950
26970
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
26951
26971
|
setRoleSelector(defaultSelection);
|
@@ -26994,7 +27014,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26994
27014
|
});
|
26995
27015
|
}
|
26996
27016
|
}), [selectedRole, selectedPeer, hmsActions, onSend]);
|
26997
|
-
|
27017
|
+
useEffect36(() => {
|
26998
27018
|
const messageElement = inputRef.current;
|
26999
27019
|
if (messageElement) {
|
27000
27020
|
messageElement.value = draftMessage;
|
@@ -27002,7 +27022,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27002
27022
|
setMessageLengthExceeded(draftMessage.length > CHAT_MESSAGE_LIMIT);
|
27003
27023
|
}
|
27004
27024
|
}, [draftMessage]);
|
27005
|
-
|
27025
|
+
useEffect36(() => {
|
27006
27026
|
const messageElement = inputRef.current;
|
27007
27027
|
return () => {
|
27008
27028
|
setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
|
@@ -27137,10 +27157,10 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27137
27157
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
27138
27158
|
init_define_process_env();
|
27139
27159
|
import React117, { useCallback as useCallback30 } from "react";
|
27140
|
-
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as
|
27160
|
+
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions41, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
27141
27161
|
var ChatPaused = () => {
|
27142
27162
|
var _a7, _b7;
|
27143
|
-
const hmsActions =
|
27163
|
+
const hmsActions = useHMSActions41();
|
27144
27164
|
const { elements } = useRoomLayoutConferencingScreen();
|
27145
27165
|
const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
27146
27166
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
|
@@ -27192,7 +27212,7 @@ var ChatBlocked = () => {
|
|
27192
27212
|
|
27193
27213
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
27194
27214
|
init_define_process_env();
|
27195
|
-
import React120, { useEffect as
|
27215
|
+
import React120, { useEffect as useEffect37, useState as useState51 } from "react";
|
27196
27216
|
import { useSwipeable } from "react-swipeable";
|
27197
27217
|
import { useMedia as useMedia19 } from "react-use";
|
27198
27218
|
import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
@@ -27275,7 +27295,7 @@ var PinnedMessage = () => {
|
|
27275
27295
|
onSwipedUp: () => showNextPinnedMessage(),
|
27276
27296
|
onSwipedDown: () => showPreviousPinnedMessage()
|
27277
27297
|
});
|
27278
|
-
|
27298
|
+
useEffect37(() => {
|
27279
27299
|
const count = (pinnedMessages == null ? void 0 : pinnedMessages.length) || 1;
|
27280
27300
|
if (pinnedMessageIndex >= count) {
|
27281
27301
|
setPinnedMessageIndex(count - 1);
|
@@ -27369,7 +27389,7 @@ var Chat = () => {
|
|
27369
27389
|
var _a7, _b7;
|
27370
27390
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27371
27391
|
const listRef = useRef25(null);
|
27372
|
-
const hmsActions =
|
27392
|
+
const hmsActions = useHMSActions42();
|
27373
27393
|
const vanillaStore = useHMSVanillaStore11();
|
27374
27394
|
const { enabled: isChatEnabled = true } = useHMSStore61(Fm("chatState" /* CHAT_STATE */)) || {};
|
27375
27395
|
const isMobile = useMedia20(config.media.md);
|
@@ -27507,7 +27527,7 @@ var NewMessageIndicator = ({
|
|
27507
27527
|
|
27508
27528
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
27509
27529
|
init_define_process_env();
|
27510
|
-
import React122, { useEffect as
|
27530
|
+
import React122, { useEffect as useEffect38, useState as useState52 } from "react";
|
27511
27531
|
import { useInView } from "react-intersection-observer";
|
27512
27532
|
import { useMeasure as useMeasure2 } from "react-use";
|
27513
27533
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
@@ -27520,7 +27540,7 @@ var LoadMoreParticipants = ({
|
|
27520
27540
|
}) => {
|
27521
27541
|
const { ref, inView } = useInView();
|
27522
27542
|
const [inProgress, setInProgress] = useState52(false);
|
27523
|
-
|
27543
|
+
useEffect38(() => {
|
27524
27544
|
if (hasNext && inView && !inProgress) {
|
27525
27545
|
setInProgress(true);
|
27526
27546
|
loadMore().catch(console.error).finally(() => setInProgress(false));
|
@@ -27559,7 +27579,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
27559
27579
|
const [ref, { width }] = useMeasure2();
|
27560
27580
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
27561
27581
|
const resetSidePane = useSidepaneReset();
|
27562
|
-
|
27582
|
+
useEffect38(() => {
|
27563
27583
|
loadPeers();
|
27564
27584
|
}, []);
|
27565
27585
|
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(
|
@@ -27589,11 +27609,11 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
27589
27609
|
// src/Prebuilt/components/ChatSettings.tsx
|
27590
27610
|
init_define_process_env();
|
27591
27611
|
import React123 from "react";
|
27592
|
-
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as
|
27612
|
+
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as useHMSActions43, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
|
27593
27613
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
27594
27614
|
var ChatSettings = () => {
|
27595
27615
|
var _a7, _b7;
|
27596
|
-
const hmsActions =
|
27616
|
+
const hmsActions = useHMSActions43();
|
27597
27617
|
const localPeer = useHMSStore63(selectLocalPeer7);
|
27598
27618
|
const { elements } = useRoomLayoutConferencingScreen();
|
27599
27619
|
const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
@@ -27676,7 +27696,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27676
27696
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
27677
27697
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
27678
27698
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
27679
|
-
|
27699
|
+
useEffect39(() => {
|
27680
27700
|
match11({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
27681
27701
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
27682
27702
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
@@ -27685,7 +27705,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27685
27705
|
resetSidePane();
|
27686
27706
|
});
|
27687
27707
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
27688
|
-
|
27708
|
+
useEffect39(() => {
|
27689
27709
|
setActiveTab(active);
|
27690
27710
|
}, [active]);
|
27691
27711
|
if (activeRole) {
|
@@ -27875,7 +27895,7 @@ import {
|
|
27875
27895
|
selectSessionStore as selectSessionStore11,
|
27876
27896
|
selectTrackByID as selectTrackByID2,
|
27877
27897
|
useCustomEvent as useCustomEvent2,
|
27878
|
-
useHMSActions as
|
27898
|
+
useHMSActions as useHMSActions44,
|
27879
27899
|
useHMSStore as useHMSStore66,
|
27880
27900
|
useRemoteAVToggle
|
27881
27901
|
} from "@100mslive/react-sdk";
|
@@ -27913,7 +27933,7 @@ var SpotlightActions = ({
|
|
27913
27933
|
return;
|
27914
27934
|
}
|
27915
27935
|
}) => {
|
27916
|
-
const hmsActions =
|
27936
|
+
const hmsActions = useHMSActions44();
|
27917
27937
|
const spotlightPeerId = useHMSStore66(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
27918
27938
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
27919
27939
|
const dragClassName = getDragClassName();
|
@@ -27963,7 +27983,7 @@ var MinimiseInset = () => {
|
|
27963
27983
|
var SimulcastLayers = ({ trackId }) => {
|
27964
27984
|
var _a7;
|
27965
27985
|
const track = useHMSStore66(selectTrackByID2(trackId));
|
27966
|
-
const actions =
|
27986
|
+
const actions = useHMSActions44();
|
27967
27987
|
const bg = useDropdownSelection();
|
27968
27988
|
if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
|
27969
27989
|
return null;
|
@@ -28048,7 +28068,7 @@ var TileMenuContent = ({
|
|
28048
28068
|
return;
|
28049
28069
|
}
|
28050
28070
|
}) => {
|
28051
|
-
const actions =
|
28071
|
+
const actions = useHMSActions44();
|
28052
28072
|
const dragClassName = getDragClassName();
|
28053
28073
|
const permissions = useHMSStore66(selectPermissions18);
|
28054
28074
|
const canChangeRole = !!(permissions == null ? void 0 : permissions.changeRole);
|
@@ -28372,9 +28392,9 @@ var VideoTile_default = VideoTile;
|
|
28372
28392
|
|
28373
28393
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
28374
28394
|
init_define_process_env();
|
28375
|
-
import React131, { useEffect as
|
28395
|
+
import React131, { useEffect as useEffect40, useState as useState56 } from "react";
|
28376
28396
|
import { useMedia as useMedia24 } from "react-use";
|
28377
|
-
import { HMSVirtualBackgroundTypes as
|
28397
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes4 } from "@100mslive/hms-virtual-background";
|
28378
28398
|
import {
|
28379
28399
|
HMSRoomState as HMSRoomState5,
|
28380
28400
|
selectIsLargeRoom as selectIsLargeRoom3,
|
@@ -28383,7 +28403,7 @@ import {
|
|
28383
28403
|
selectLocalPeer as selectLocalPeer8,
|
28384
28404
|
selectRoomState as selectRoomState5,
|
28385
28405
|
selectVideoTrackByID as selectVideoTrackByID4,
|
28386
|
-
useHMSActions as
|
28406
|
+
useHMSActions as useHMSActions45,
|
28387
28407
|
useHMSStore as useHMSStore69
|
28388
28408
|
} from "@100mslive/react-sdk";
|
28389
28409
|
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon25 } from "@100mslive/react-icons";
|
@@ -28406,7 +28426,7 @@ var doesBrowserSupportEffectsSDK = () => {
|
|
28406
28426
|
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
28407
28427
|
init_define_process_env();
|
28408
28428
|
import React130 from "react";
|
28409
|
-
import { HMSVirtualBackgroundTypes as
|
28429
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
28410
28430
|
|
28411
28431
|
// src/Prebuilt/components/VirtualBackground/VBOption.tsx
|
28412
28432
|
init_define_process_env();
|
@@ -28463,7 +28483,7 @@ var VBCollection = ({
|
|
28463
28483
|
VBOption.Root,
|
28464
28484
|
__spreadProps(__spreadValues({
|
28465
28485
|
key: option.value,
|
28466
|
-
testid: option.value ===
|
28486
|
+
testid: option.value === HMSVirtualBackgroundTypes3.IMAGE ? `virtual_bg_option-${index}` : option.value
|
28467
28487
|
}, option), {
|
28468
28488
|
isActive: activeBackground === option.value
|
28469
28489
|
}),
|
@@ -28478,7 +28498,7 @@ var iconDims = { height: "40px", width: "40px" };
|
|
28478
28498
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
28479
28499
|
var _a7;
|
28480
28500
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28481
|
-
const hmsActions =
|
28501
|
+
const hmsActions = useHMSActions45();
|
28482
28502
|
const localPeer = useHMSStore69(selectLocalPeer8);
|
28483
28503
|
const role = useHMSStore69(ot);
|
28484
28504
|
const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
|
@@ -28498,7 +28518,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28498
28518
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
28499
28519
|
const inPreview = roomState === HMSRoomState5.Preview;
|
28500
28520
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
28501
|
-
|
28521
|
+
useEffect40(() => {
|
28502
28522
|
if (!(track == null ? void 0 : track.id)) {
|
28503
28523
|
return;
|
28504
28524
|
}
|
@@ -28523,10 +28543,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28523
28543
|
}
|
28524
28544
|
const handleDefaultBackground = () => __async(void 0, null, function* () {
|
28525
28545
|
switch (background) {
|
28526
|
-
case
|
28546
|
+
case HMSVirtualBackgroundTypes4.NONE: {
|
28527
28547
|
break;
|
28528
28548
|
}
|
28529
|
-
case
|
28549
|
+
case HMSVirtualBackgroundTypes4.BLUR: {
|
28530
28550
|
yield VBHandler.setBlur(blurAmount);
|
28531
28551
|
break;
|
28532
28552
|
}
|
@@ -28547,7 +28567,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28547
28567
|
blurAmount,
|
28548
28568
|
setLoadingEffects
|
28549
28569
|
]);
|
28550
|
-
|
28570
|
+
useEffect40(() => {
|
28551
28571
|
if (!isVideoOn) {
|
28552
28572
|
toggleVB();
|
28553
28573
|
}
|
@@ -28588,21 +28608,21 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28588
28608
|
{
|
28589
28609
|
title: "No effect",
|
28590
28610
|
icon: /* @__PURE__ */ React131.createElement(CrossCircleIcon3, { style: iconDims }),
|
28591
|
-
value:
|
28611
|
+
value: HMSVirtualBackgroundTypes4.NONE,
|
28592
28612
|
onClick: () => __async(void 0, null, function* () {
|
28593
28613
|
yield VBHandler.removeEffects();
|
28594
|
-
hmsActions.setAppData(APP_DATA.background,
|
28614
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes4.NONE);
|
28595
28615
|
}),
|
28596
28616
|
supported: true
|
28597
28617
|
},
|
28598
28618
|
{
|
28599
28619
|
title: "Blur",
|
28600
28620
|
icon: /* @__PURE__ */ React131.createElement(BlurPersonHighIcon, { style: iconDims }),
|
28601
|
-
value:
|
28621
|
+
value: HMSVirtualBackgroundTypes4.BLUR,
|
28602
28622
|
onClick: () => __async(void 0, null, function* () {
|
28603
28623
|
var _a8;
|
28604
28624
|
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
|
28605
|
-
hmsActions.setAppData(APP_DATA.background,
|
28625
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes4.BLUR);
|
28606
28626
|
}),
|
28607
28627
|
supported: isBlurSupported
|
28608
28628
|
}
|
@@ -28610,7 +28630,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28610
28630
|
activeBackground: background
|
28611
28631
|
}
|
28612
28632
|
),
|
28613
|
-
/* @__PURE__ */ React131.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background ===
|
28633
|
+
/* @__PURE__ */ React131.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes4.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React131.createElement(Box, null, /* @__PURE__ */ React131.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React131.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React131.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React131.createElement(
|
28614
28634
|
Slider,
|
28615
28635
|
{
|
28616
28636
|
showTooltip: false,
|
@@ -28786,7 +28806,7 @@ var SidePane = ({
|
|
28786
28806
|
return null;
|
28787
28807
|
});
|
28788
28808
|
const resetSidePane = useSidepaneReset();
|
28789
|
-
|
28809
|
+
useEffect41(() => {
|
28790
28810
|
return () => {
|
28791
28811
|
resetSidePane();
|
28792
28812
|
};
|
@@ -28967,7 +28987,7 @@ var PreviewJoin = ({
|
|
28967
28987
|
const { isStreamingOn } = useRecordingStreaming11();
|
28968
28988
|
const authToken = useAuthToken();
|
28969
28989
|
const [name, setName] = useState57(initialName || previewPreference.name);
|
28970
|
-
const { toggleAudio, toggleVideo } =
|
28990
|
+
const { toggleAudio, toggleVideo } = useAVToggle4();
|
28971
28991
|
const [previewError, setPreviewError] = useState57(false);
|
28972
28992
|
const { endpoints } = useHMSPrebuiltContext();
|
28973
28993
|
const { peerCount } = useParticipants2();
|
@@ -29000,7 +29020,7 @@ var PreviewJoin = ({
|
|
29000
29020
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
29001
29021
|
const { preview_header: previewHeader = {}, virtual_background } = elements || {};
|
29002
29022
|
const aspectRatio = useLocalTileAspectRatio();
|
29003
|
-
|
29023
|
+
useEffect42(() => {
|
29004
29024
|
if (authToken) {
|
29005
29025
|
if (skipPreview) {
|
29006
29026
|
savePreferenceAndJoin();
|
@@ -29009,7 +29029,7 @@ var PreviewJoin = ({
|
|
29009
29029
|
}
|
29010
29030
|
}
|
29011
29031
|
}, [authToken, skipPreview]);
|
29012
|
-
|
29032
|
+
useEffect42(() => {
|
29013
29033
|
if (initialName) {
|
29014
29034
|
setName(initialName);
|
29015
29035
|
}
|
@@ -29050,7 +29070,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
29050
29070
|
}));
|
29051
29071
|
var PreviewTile = ({ name, error }) => {
|
29052
29072
|
const localPeer = useHMSStore71(selectLocalPeer9);
|
29053
|
-
const { isLocalAudioEnabled, toggleAudio } =
|
29073
|
+
const { isLocalAudioEnabled, toggleAudio } = useAVToggle4();
|
29054
29074
|
const isVideoOn = useHMSStore71(selectIsLocalVideoEnabled7);
|
29055
29075
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
29056
29076
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -29143,7 +29163,7 @@ var RequestActions = ({
|
|
29143
29163
|
|
29144
29164
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
29145
29165
|
var RoleChangeRequestModal = () => {
|
29146
|
-
const hmsActions =
|
29166
|
+
const hmsActions = useHMSActions46();
|
29147
29167
|
const { updateMetaData } = useMyMetadata();
|
29148
29168
|
const isPreview = useHMSStore72(selectIsInPreview);
|
29149
29169
|
const currentRole = useHMSStore72(selectLocalPeerRoleName4);
|
@@ -29152,7 +29172,7 @@ var RoleChangeRequestModal = () => {
|
|
29152
29172
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
29153
29173
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
29154
29174
|
const { virtual_background } = elements || {};
|
29155
|
-
|
29175
|
+
useEffect43(() => {
|
29156
29176
|
if (!(roleChangeRequest == null ? void 0 : roleChangeRequest.role)) {
|
29157
29177
|
return;
|
29158
29178
|
}
|
@@ -29216,21 +29236,21 @@ var RoleChangeRequestModal = () => {
|
|
29216
29236
|
|
29217
29237
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
29218
29238
|
init_define_process_env();
|
29219
|
-
import React157, { Suspense, useEffect as
|
29239
|
+
import React157, { Suspense, useEffect as useEffect57, useState as useState67 } from "react";
|
29220
29240
|
import { useMedia as useMedia38 } from "react-use";
|
29221
29241
|
import { match as match13 } from "ts-pattern";
|
29222
29242
|
import {
|
29223
29243
|
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
29224
29244
|
selectIsLocalScreenShared as selectIsLocalScreenShared2,
|
29225
29245
|
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
29226
|
-
useHMSActions as
|
29246
|
+
useHMSActions as useHMSActions48,
|
29227
29247
|
useHMSStore as useHMSStore83
|
29228
29248
|
} from "@100mslive/react-sdk";
|
29229
29249
|
import { PeopleAddIcon as PeopleAddIcon3, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
29230
29250
|
|
29231
29251
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
29232
29252
|
init_define_process_env();
|
29233
|
-
import React153, { useEffect as
|
29253
|
+
import React153, { useEffect as useEffect52, useMemo as useMemo20, useState as useState65 } from "react";
|
29234
29254
|
import {
|
29235
29255
|
selectLocalPeerID as selectLocalPeerID13,
|
29236
29256
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
@@ -29243,7 +29263,7 @@ import {
|
|
29243
29263
|
|
29244
29264
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
29245
29265
|
init_define_process_env();
|
29246
|
-
import React144, { useEffect as
|
29266
|
+
import React144, { useEffect as useEffect47, useState as useState59 } from "react";
|
29247
29267
|
import { useMedia as useMedia31 } from "react-use";
|
29248
29268
|
import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
|
29249
29269
|
|
@@ -29305,7 +29325,7 @@ var WaitingView = React139.memo(
|
|
29305
29325
|
|
29306
29326
|
// src/Prebuilt/components/InsetTile.tsx
|
29307
29327
|
init_define_process_env();
|
29308
|
-
import React141, { useEffect as
|
29328
|
+
import React141, { useEffect as useEffect44, useRef as useRef26 } from "react";
|
29309
29329
|
import Draggable from "react-draggable";
|
29310
29330
|
import { useMedia as useMedia29 } from "react-use";
|
29311
29331
|
import {
|
@@ -29370,7 +29390,7 @@ var InsetTile = ({ peerId }) => {
|
|
29370
29390
|
height = width / aspectRatio;
|
29371
29391
|
}
|
29372
29392
|
const nodeRef = useRef26(null);
|
29373
|
-
|
29393
|
+
useEffect44(() => {
|
29374
29394
|
const node = nodeRef.current;
|
29375
29395
|
if (!node || !window.ResizeObserver) {
|
29376
29396
|
return;
|
@@ -29430,7 +29450,7 @@ var InsetTile = ({ peerId }) => {
|
|
29430
29450
|
|
29431
29451
|
// src/Prebuilt/components/Pagination.tsx
|
29432
29452
|
init_define_process_env();
|
29433
|
-
import React142, { useEffect as
|
29453
|
+
import React142, { useEffect as useEffect45 } from "react";
|
29434
29454
|
import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
|
29435
29455
|
var Pagination = ({
|
29436
29456
|
page,
|
@@ -29447,7 +29467,7 @@ var Pagination = ({
|
|
29447
29467
|
e.stopPropagation();
|
29448
29468
|
onPageChange(Math.max(page - 1, 0));
|
29449
29469
|
};
|
29450
|
-
|
29470
|
+
useEffect45(() => {
|
29451
29471
|
if (page >= numPages) {
|
29452
29472
|
onPageChange(Math.max(0, numPages - 1));
|
29453
29473
|
}
|
@@ -29511,7 +29531,7 @@ var Grid = React143.forwardRef(
|
|
29511
29531
|
|
29512
29532
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
29513
29533
|
init_define_process_env();
|
29514
|
-
import { useEffect as
|
29534
|
+
import { useEffect as useEffect46, useMemo as useMemo16, useState as useState58 } from "react";
|
29515
29535
|
import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
|
29516
29536
|
import {
|
29517
29537
|
getPeersWithTiles,
|
@@ -29550,7 +29570,7 @@ var useTileLayout = ({
|
|
29550
29570
|
const [ref, { width, height }] = useMeasure5();
|
29551
29571
|
const isMobile = useMedia30(config.media.lg);
|
29552
29572
|
const [pagesWithTiles, setPagesWithTiles] = useState58([]);
|
29553
|
-
|
29573
|
+
useEffect46(() => {
|
29554
29574
|
if (width === 0 || height === 0) {
|
29555
29575
|
return;
|
29556
29576
|
}
|
@@ -29631,7 +29651,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29631
29651
|
});
|
29632
29652
|
const [page, setPage] = useState59(0);
|
29633
29653
|
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
29634
|
-
|
29654
|
+
useEffect47(() => {
|
29635
29655
|
if (pageSize > 0) {
|
29636
29656
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29637
29657
|
}
|
@@ -29658,13 +29678,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29658
29678
|
|
29659
29679
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
29660
29680
|
init_define_process_env();
|
29661
|
-
import React147, { useEffect as
|
29681
|
+
import React147, { useEffect as useEffect49, useState as useState61 } from "react";
|
29662
29682
|
import { useMedia as useMedia33 } from "react-use";
|
29663
29683
|
import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
29664
29684
|
|
29665
29685
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
29666
29686
|
init_define_process_env();
|
29667
|
-
import React146, { useEffect as
|
29687
|
+
import React146, { useEffect as useEffect48, useRef as useRef27, useState as useState60 } from "react";
|
29668
29688
|
import { useMedia as useMedia32 } from "react-use";
|
29669
29689
|
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
|
29670
29690
|
|
@@ -29778,18 +29798,18 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
29778
29798
|
maxTileCount
|
29779
29799
|
});
|
29780
29800
|
const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
|
29781
|
-
|
29801
|
+
useEffect48(() => {
|
29782
29802
|
var _a8;
|
29783
29803
|
if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
|
29784
29804
|
setPage(Math.max(0, page - 1));
|
29785
29805
|
}
|
29786
29806
|
}, [peers, page, pagesWithTiles]);
|
29787
|
-
|
29807
|
+
useEffect48(() => {
|
29788
29808
|
if (pageSize > 0) {
|
29789
29809
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29790
29810
|
}
|
29791
29811
|
}, [pageSize, onPageSize]);
|
29792
|
-
|
29812
|
+
useEffect48(() => {
|
29793
29813
|
if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
|
29794
29814
|
setPage(0);
|
29795
29815
|
pageChangedAfterPinning.current = true;
|
@@ -29871,7 +29891,7 @@ function RoleProminence({
|
|
29871
29891
|
});
|
29872
29892
|
const [page, setPage] = useState61(0);
|
29873
29893
|
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
29874
|
-
|
29894
|
+
useEffect49(() => {
|
29875
29895
|
if (pageSize > 0) {
|
29876
29896
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29877
29897
|
}
|
@@ -29899,7 +29919,7 @@ function RoleProminence({
|
|
29899
29919
|
|
29900
29920
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
29901
29921
|
init_define_process_env();
|
29902
|
-
import React151, { useEffect as
|
29922
|
+
import React151, { useEffect as useEffect50, useMemo as useMemo18, useState as useState64 } from "react";
|
29903
29923
|
import { useMedia as useMedia35 } from "react-use";
|
29904
29924
|
import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
29905
29925
|
|
@@ -30024,10 +30044,10 @@ var LayoutModeSelector = () => {
|
|
30024
30044
|
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
30025
30045
|
init_define_process_env();
|
30026
30046
|
import React149 from "react";
|
30027
|
-
import { useHMSActions as
|
30047
|
+
import { useHMSActions as useHMSActions47 } from "@100mslive/react-sdk";
|
30028
30048
|
import { CrossIcon as CrossIcon26, ShareScreenIcon as ShareScreenIcon4 } from "@100mslive/react-icons";
|
30029
30049
|
var ScreenshareDisplay = () => {
|
30030
|
-
const hmsActions =
|
30050
|
+
const hmsActions = useHMSActions47();
|
30031
30051
|
return /* @__PURE__ */ React149.createElement(
|
30032
30052
|
Flex,
|
30033
30053
|
{
|
@@ -30177,7 +30197,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30177
30197
|
}
|
30178
30198
|
return peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id));
|
30179
30199
|
}, [activeSharePeer, peers, isMobile, layoutMode]);
|
30180
|
-
|
30200
|
+
useEffect50(() => {
|
30181
30201
|
if (isMobile) {
|
30182
30202
|
setLayoutMode(LayoutMode.GALLERY);
|
30183
30203
|
return;
|
@@ -30190,7 +30210,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30190
30210
|
setLayoutMode(LayoutMode.GALLERY);
|
30191
30211
|
};
|
30192
30212
|
}, [isMobile]);
|
30193
|
-
|
30213
|
+
useEffect50(() => {
|
30194
30214
|
setActiveScreenSharePeer(activeSharePeer == null ? void 0 : activeSharePeer.id);
|
30195
30215
|
return () => {
|
30196
30216
|
setActiveScreenSharePeer("");
|
@@ -30210,7 +30230,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30210
30230
|
|
30211
30231
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
30212
30232
|
init_define_process_env();
|
30213
|
-
import React152, { useEffect as
|
30233
|
+
import React152, { useEffect as useEffect51, useMemo as useMemo19 } from "react";
|
30214
30234
|
import { useMedia as useMedia36 } from "react-use";
|
30215
30235
|
import { Whiteboard } from "@100mslive/hms-whiteboard";
|
30216
30236
|
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
@@ -30251,7 +30271,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30251
30271
|
}
|
30252
30272
|
return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
|
30253
30273
|
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
30254
|
-
|
30274
|
+
useEffect51(() => {
|
30255
30275
|
if (isMobile) {
|
30256
30276
|
setLayoutMode(LayoutMode.GALLERY);
|
30257
30277
|
return;
|
@@ -30429,7 +30449,7 @@ var GridLayout = ({
|
|
30429
30449
|
hideMetadataOnTile: hide_metadata_on_tile,
|
30430
30450
|
objectFit: video_object_fit
|
30431
30451
|
};
|
30432
|
-
|
30452
|
+
useEffect52(() => {
|
30433
30453
|
if (mainPage !== 0) {
|
30434
30454
|
return;
|
30435
30455
|
}
|
@@ -30486,7 +30506,7 @@ var GridLayout = ({
|
|
30486
30506
|
|
30487
30507
|
// src/Prebuilt/layouts/EmbedView.jsx
|
30488
30508
|
init_define_process_env();
|
30489
|
-
import React154, { useEffect as
|
30509
|
+
import React154, { useEffect as useEffect53, useMemo as useMemo21 } from "react";
|
30490
30510
|
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
|
30491
30511
|
var EmbedView = () => {
|
30492
30512
|
return /* @__PURE__ */ React154.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React154.createElement(EmbedComponent, null));
|
@@ -30499,7 +30519,7 @@ var EmbedScreenShareView = ({ children }) => {
|
|
30499
30519
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
30500
30520
|
return smallTilePeers2;
|
30501
30521
|
}, [peers, peerPresenting]);
|
30502
|
-
|
30522
|
+
useEffect53(() => {
|
30503
30523
|
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
30504
30524
|
return () => {
|
30505
30525
|
setActiveScreenSharePeer("");
|
@@ -30511,7 +30531,7 @@ var EmbedComponent = () => {
|
|
30511
30531
|
const embedConfig = useHMSStore80(selectAppData11(APP_DATA.embedConfig));
|
30512
30532
|
const resetConfig = useResetEmbedConfig();
|
30513
30533
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
30514
|
-
|
30534
|
+
useEffect53(() => {
|
30515
30535
|
(() => __async(void 0, null, function* () {
|
30516
30536
|
if (embedConfig && !isEmbedShareInProgress) {
|
30517
30537
|
try {
|
@@ -30559,18 +30579,18 @@ var EmbedComponent = () => {
|
|
30559
30579
|
|
30560
30580
|
// src/Prebuilt/layouts/PDFView.jsx
|
30561
30581
|
init_define_process_env();
|
30562
|
-
import React155, { useEffect as
|
30582
|
+
import React155, { useEffect as useEffect54 } from "react";
|
30563
30583
|
import { usePDFShare } from "@100mslive/react-sdk";
|
30564
30584
|
var PDFView = () => {
|
30565
30585
|
const pdfConfig = usePDFConfig();
|
30566
30586
|
const resetConfig = useResetPDFConfig();
|
30567
30587
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
30568
|
-
|
30588
|
+
useEffect54(() => {
|
30569
30589
|
return () => {
|
30570
30590
|
resetConfig();
|
30571
30591
|
};
|
30572
30592
|
}, []);
|
30573
|
-
|
30593
|
+
useEffect54(() => {
|
30574
30594
|
(() => __async(void 0, null, function* () {
|
30575
30595
|
try {
|
30576
30596
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -30618,7 +30638,7 @@ var PDFView = () => {
|
|
30618
30638
|
|
30619
30639
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
30620
30640
|
init_define_process_env();
|
30621
|
-
import React156, { useEffect as
|
30641
|
+
import React156, { useEffect as useEffect55, useRef as useRef29, useState as useState66 } from "react";
|
30622
30642
|
import Draggable2 from "react-draggable";
|
30623
30643
|
import { useMedia as useMedia37 } from "react-use";
|
30624
30644
|
import {
|
@@ -30790,7 +30810,7 @@ var CaptionsViewer = ({
|
|
30790
30810
|
const isCaptionEnabled = useIsCaptionEnabled();
|
30791
30811
|
const isTranscriptionEnabled = useHMSStore81(selectIsTranscriptionEnabled5);
|
30792
30812
|
const nodeRef = useRef29(null);
|
30793
|
-
|
30813
|
+
useEffect55(() => {
|
30794
30814
|
const timeInterval = setInterval(() => {
|
30795
30815
|
var _a8;
|
30796
30816
|
if (!captionQueue) {
|
@@ -30857,12 +30877,12 @@ var CaptionsViewer = ({
|
|
30857
30877
|
|
30858
30878
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
30859
30879
|
init_define_process_env();
|
30860
|
-
import { useEffect as
|
30880
|
+
import { useEffect as useEffect56 } from "react";
|
30861
30881
|
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore82, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
30862
30882
|
var useCloseScreenshareWhiteboard = () => {
|
30863
30883
|
const peerSharing = useHMSStore82(selectPeerScreenSharing4);
|
30864
30884
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
30865
|
-
|
30885
|
+
useEffect56(() => {
|
30866
30886
|
if (isWhiteboardOwner && peerSharing) {
|
30867
30887
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
30868
30888
|
}
|
@@ -30870,7 +30890,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30870
30890
|
};
|
30871
30891
|
|
30872
30892
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30873
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
30893
|
+
var HLSView = React157.lazy(() => import("./HLSView-6KUW45BA.js"));
|
30874
30894
|
var VideoStreamingSection = ({
|
30875
30895
|
screenType,
|
30876
30896
|
elements,
|
@@ -30880,7 +30900,7 @@ var VideoStreamingSection = ({
|
|
30880
30900
|
const localPeerRoleName = useHMSStore83(selectLocalPeerRoleName6);
|
30881
30901
|
const isConnected = useHMSStore83(selectIsConnectedToRoom9);
|
30882
30902
|
const isSharingScreen = useHMSStore83(selectIsLocalScreenShared2);
|
30883
|
-
const hmsActions =
|
30903
|
+
const hmsActions = useHMSActions48();
|
30884
30904
|
const urlToIframe = useUrlToEmbed();
|
30885
30905
|
const pdfAnnotatorActive = usePDFConfig();
|
30886
30906
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -30889,7 +30909,7 @@ var VideoStreamingSection = ({
|
|
30889
30909
|
const [captionPosition, setCaptionPosition] = useState67({ x: isMobile ? 0 : -200, y: 0 });
|
30890
30910
|
useCloseScreenshareWhiteboard();
|
30891
30911
|
const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
|
30892
|
-
|
30912
|
+
useEffect57(() => {
|
30893
30913
|
if (!isConnected) {
|
30894
30914
|
return;
|
30895
30915
|
}
|
@@ -31024,7 +31044,7 @@ import {
|
|
31024
31044
|
selectLocalVideoTrackID as selectLocalVideoTrackID3,
|
31025
31045
|
selectVideoTrackByID as selectVideoTrackByID7,
|
31026
31046
|
useDevices as useDevices3,
|
31027
|
-
useHMSActions as
|
31047
|
+
useHMSActions as useHMSActions49,
|
31028
31048
|
useHMSStore as useHMSStore84
|
31029
31049
|
} from "@100mslive/react-sdk";
|
31030
31050
|
import {
|
@@ -31037,7 +31057,7 @@ import {
|
|
31037
31057
|
TelePhoneIcon
|
31038
31058
|
} from "@100mslive/react-icons";
|
31039
31059
|
var CamaraFlipActions = () => {
|
31040
|
-
const actions =
|
31060
|
+
const actions = useHMSActions49();
|
31041
31061
|
const { allDevices } = useDevices3();
|
31042
31062
|
const { videoInput } = allDevices;
|
31043
31063
|
const isVideoOn = useHMSStore84(selectIsLocalVideoEnabled8);
|
@@ -31074,7 +31094,7 @@ var AudioActions = () => {
|
|
31074
31094
|
availableAudioDevices = audioOutput;
|
31075
31095
|
selectedAudio = selectedDeviceIDs.audioOutput;
|
31076
31096
|
}
|
31077
|
-
const hmsActions =
|
31097
|
+
const hmsActions = useHMSActions49();
|
31078
31098
|
const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
|
31079
31099
|
const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
|
31080
31100
|
if (!audioFiltered) {
|
@@ -31202,12 +31222,12 @@ var Header2 = () => {
|
|
31202
31222
|
|
31203
31223
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
31204
31224
|
init_define_process_env();
|
31205
|
-
import { useEffect as
|
31225
|
+
import { useEffect as useEffect58 } from "react";
|
31206
31226
|
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
|
31207
31227
|
var PreviousRoleInMetadata = () => {
|
31208
31228
|
const vanillaStore = useHMSVanillaStore14();
|
31209
31229
|
const { updateMetaData } = useMyMetadata();
|
31210
|
-
|
31230
|
+
useEffect58(() => {
|
31211
31231
|
let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
|
31212
31232
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
31213
31233
|
if (previousRole !== currentRole && currentRole) {
|
@@ -31228,7 +31248,7 @@ var ConferenceScreen = () => {
|
|
31228
31248
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
31229
31249
|
const roomState = useHMSStore86(selectRoomState8);
|
31230
31250
|
const isConnectedToRoom = useHMSStore86(selectIsConnectedToRoom10);
|
31231
|
-
const hmsActions =
|
31251
|
+
const hmsActions = useHMSActions50();
|
31232
31252
|
const [hideControls, setHideControls] = useState68(false);
|
31233
31253
|
const dropdownList = useHMSStore86(selectAppData12(APP_DATA.dropdownList));
|
31234
31254
|
const authTokenInAppData = useAuthToken();
|
@@ -31249,7 +31269,7 @@ var ConferenceScreen = () => {
|
|
31249
31269
|
setHideControls((value) => !value);
|
31250
31270
|
}
|
31251
31271
|
};
|
31252
|
-
|
31272
|
+
useEffect59(() => {
|
31253
31273
|
let timeout;
|
31254
31274
|
dropdownListRef.current = dropdownList || [];
|
31255
31275
|
if (dropdownListRef.current && dropdownListRef.current.length === 0) {
|
@@ -31264,7 +31284,7 @@ var ConferenceScreen = () => {
|
|
31264
31284
|
clearTimeout(timeout);
|
31265
31285
|
};
|
31266
31286
|
}, [dropdownList, hideControls, isMobileDevice]);
|
31267
|
-
|
31287
|
+
useEffect59(() => {
|
31268
31288
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState8.Connecting && !autoRoomJoined.current) {
|
31269
31289
|
hmsActions.join({
|
31270
31290
|
userName: userName || uuid3(),
|
@@ -31288,7 +31308,7 @@ var ConferenceScreen = () => {
|
|
31288
31308
|
userName,
|
31289
31309
|
requestPermission
|
31290
31310
|
]);
|
31291
|
-
|
31311
|
+
useEffect59(() => {
|
31292
31312
|
onJoinFunc == null ? void 0 : onJoinFunc();
|
31293
31313
|
return () => {
|
31294
31314
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
@@ -31469,11 +31489,11 @@ var ErrorBoundary = class extends Component {
|
|
31469
31489
|
|
31470
31490
|
// src/Prebuilt/components/init/Init.jsx
|
31471
31491
|
init_define_process_env();
|
31472
|
-
import React163, { useEffect as
|
31492
|
+
import React163, { useEffect as useEffect61 } from "react";
|
31473
31493
|
|
31474
31494
|
// src/Prebuilt/services/FeatureFlags.jsx
|
31475
31495
|
init_define_process_env();
|
31476
|
-
import { useEffect as
|
31496
|
+
import { useEffect as useEffect60 } from "react";
|
31477
31497
|
import { selectRoomID, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
|
31478
31498
|
var FeatureFlags = class {
|
31479
31499
|
static init(roomId) {
|
@@ -31500,7 +31520,7 @@ __publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.RE
|
|
31500
31520
|
__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);
|
31501
31521
|
function FeatureFlagsInit() {
|
31502
31522
|
const roomId = useHMSStore87(selectRoomID);
|
31503
|
-
|
31523
|
+
useEffect60(() => {
|
31504
31524
|
if (roomId) {
|
31505
31525
|
FeatureFlags.init(roomId);
|
31506
31526
|
}
|
@@ -31511,10 +31531,10 @@ function FeatureFlagsInit() {
|
|
31511
31531
|
// src/Prebuilt/components/init/Init.jsx
|
31512
31532
|
var Init = () => {
|
31513
31533
|
const { toggleTheme } = useTheme();
|
31514
|
-
|
31534
|
+
useEffect61(() => {
|
31515
31535
|
window.toggleUiTheme = toggleTheme;
|
31516
31536
|
}, [toggleTheme]);
|
31517
|
-
|
31537
|
+
useEffect61(() => {
|
31518
31538
|
function resetHeight() {
|
31519
31539
|
var _a7;
|
31520
31540
|
document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
|
@@ -31530,12 +31550,12 @@ var Init = () => {
|
|
31530
31550
|
|
31531
31551
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
31532
31552
|
init_define_process_env();
|
31533
|
-
import { useEffect as
|
31553
|
+
import { useEffect as useEffect62 } from "react";
|
31534
31554
|
import {
|
31535
31555
|
selectAppData as selectAppData13,
|
31536
31556
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
31537
31557
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
31538
|
-
useHMSActions as
|
31558
|
+
useHMSActions as useHMSActions51,
|
31539
31559
|
useHMSVanillaStore as useHMSVanillaStore15
|
31540
31560
|
} from "@100mslive/react-sdk";
|
31541
31561
|
var isEvenListenersAttached = false;
|
@@ -31624,8 +31644,8 @@ _bind = new WeakMap();
|
|
31624
31644
|
_unbind = new WeakMap();
|
31625
31645
|
var KeyboardHandler = () => {
|
31626
31646
|
const store = useHMSVanillaStore15();
|
31627
|
-
const actions =
|
31628
|
-
|
31647
|
+
const actions = useHMSActions51();
|
31648
|
+
useEffect62(() => {
|
31629
31649
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
31630
31650
|
keyboardManager.bindAllShortcuts();
|
31631
31651
|
return keyboardManager.unbindAllShortcuts;
|
@@ -31682,7 +31702,7 @@ var LeaveScreen = () => {
|
|
31682
31702
|
|
31683
31703
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
31684
31704
|
init_define_process_env();
|
31685
|
-
import React165, { useEffect as
|
31705
|
+
import React165, { useEffect as useEffect63, useState as useState69 } from "react";
|
31686
31706
|
import { useMedia as useMedia41 } from "react-use";
|
31687
31707
|
import { match as match14, P as P5 } from "ts-pattern";
|
31688
31708
|
import { RefreshIcon } from "@100mslive/react-icons";
|
@@ -31690,7 +31710,7 @@ var MwebLandscapePrompt = () => {
|
|
31690
31710
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState69(false);
|
31691
31711
|
const isLandscape = useMedia41(config.media.ls);
|
31692
31712
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
31693
|
-
|
31713
|
+
useEffect63(() => {
|
31694
31714
|
var _a7;
|
31695
31715
|
if (!isMobileUserAgent) {
|
31696
31716
|
setShowMwebLandscapePrompt(false);
|
@@ -31735,7 +31755,7 @@ init_define_process_env();
|
|
31735
31755
|
|
31736
31756
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
31737
31757
|
init_define_process_env();
|
31738
|
-
import React174, { useCallback as useCallback36, useEffect as
|
31758
|
+
import React174, { useCallback as useCallback36, useEffect as useEffect74 } from "react";
|
31739
31759
|
import {
|
31740
31760
|
HMSNotificationTypes as HMSNotificationTypes11,
|
31741
31761
|
HMSRoomState as HMSRoomState10,
|
@@ -31784,7 +31804,7 @@ function AutoplayBlockedModal() {
|
|
31784
31804
|
|
31785
31805
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
31786
31806
|
init_define_process_env();
|
31787
|
-
import React167, { useEffect as
|
31807
|
+
import React167, { useEffect as useEffect64 } from "react";
|
31788
31808
|
import { v4 as uuid4 } from "uuid";
|
31789
31809
|
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
|
31790
31810
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
@@ -31792,7 +31812,7 @@ var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
|
31792
31812
|
var ChatNotifications = () => {
|
31793
31813
|
const chatState = useHMSStore88(selectSessionStore13("chatState" /* CHAT_STATE */));
|
31794
31814
|
const localPeerId = useHMSStore88(selectLocalPeerID14);
|
31795
|
-
|
31815
|
+
useEffect64(() => {
|
31796
31816
|
var _a7, _b7;
|
31797
31817
|
if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
|
31798
31818
|
return;
|
@@ -31813,7 +31833,7 @@ var ChatNotifications = () => {
|
|
31813
31833
|
|
31814
31834
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
31815
31835
|
init_define_process_env();
|
31816
|
-
import { useEffect as
|
31836
|
+
import { useEffect as useEffect65 } from "react";
|
31817
31837
|
import { useDebounce as useDebounce2 } from "react-use";
|
31818
31838
|
import {
|
31819
31839
|
HMSNotificationTypes as HMSNotificationTypes2,
|
@@ -31835,7 +31855,7 @@ init_define_process_env();
|
|
31835
31855
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
31836
31856
|
init_define_process_env();
|
31837
31857
|
import React168, { useCallback as useCallback35 } from "react";
|
31838
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as
|
31858
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions52, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
31839
31859
|
import {
|
31840
31860
|
ChatUnreadIcon as ChatUnreadIcon2,
|
31841
31861
|
ConnectivityIcon,
|
@@ -31854,7 +31874,7 @@ var ChatAction = React168.forwardRef((_, ref) => {
|
|
31854
31874
|
});
|
31855
31875
|
var HandRaiseAction = React168.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
31856
31876
|
var _a7, _b7, _c;
|
31857
|
-
const hmsActions =
|
31877
|
+
const hmsActions = useHMSActions52();
|
31858
31878
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
31859
31879
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
31860
31880
|
const peer = useHMSStore89(selectPeerByID5(id));
|
@@ -32073,7 +32093,7 @@ var HandRaisedNotifications = () => {
|
|
32073
32093
|
const amIScreenSharing = useHMSStore90(selectIsLocalScreenShared3);
|
32074
32094
|
const { showNotification } = useAwayNotifications4();
|
32075
32095
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
32076
|
-
|
32096
|
+
useEffect65(() => {
|
32077
32097
|
var _a8;
|
32078
32098
|
if (!(notification == null ? void 0 : notification.data)) {
|
32079
32099
|
return;
|
@@ -32113,13 +32133,13 @@ var HandRaisedNotifications = () => {
|
|
32113
32133
|
|
32114
32134
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
32115
32135
|
init_define_process_env();
|
32116
|
-
import React169, { useEffect as
|
32136
|
+
import React169, { useEffect as useEffect66, useState as useState70 } from "react";
|
32117
32137
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
32118
32138
|
var InitErrorModal = () => {
|
32119
32139
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
32120
32140
|
const [showModal, setShowModal] = useState70(false);
|
32121
32141
|
const [info, setInfo] = useState70({ title: "Init Error", description: "" });
|
32122
|
-
|
32142
|
+
useEffect66(() => {
|
32123
32143
|
const data3 = notification == null ? void 0 : notification.data;
|
32124
32144
|
if (!data3 || data3.action !== "INIT") {
|
32125
32145
|
return;
|
@@ -32144,7 +32164,7 @@ var InitErrorModal = () => {
|
|
32144
32164
|
|
32145
32165
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
32146
32166
|
init_define_process_env();
|
32147
|
-
import { useEffect as
|
32167
|
+
import { useEffect as useEffect67 } from "react";
|
32148
32168
|
import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
|
32149
32169
|
var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
|
32150
32170
|
var PeerNotifications = () => {
|
@@ -32152,7 +32172,7 @@ var PeerNotifications = () => {
|
|
32152
32172
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
32153
32173
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
32154
32174
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
32155
|
-
|
32175
|
+
useEffect67(() => {
|
32156
32176
|
if (!(notification == null ? void 0 : notification.data)) {
|
32157
32177
|
return;
|
32158
32178
|
}
|
@@ -32181,7 +32201,7 @@ var PeerNotifications = () => {
|
|
32181
32201
|
|
32182
32202
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
32183
32203
|
init_define_process_env();
|
32184
|
-
import React170, { useEffect as
|
32204
|
+
import React170, { useEffect as useEffect68, useState as useState71 } from "react";
|
32185
32205
|
import { useMedia as useMedia42 } from "react-use";
|
32186
32206
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
32187
32207
|
|
@@ -32200,7 +32220,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32200
32220
|
const [deviceType, setDeviceType] = useState71("");
|
32201
32221
|
const [isSystemError, setIsSystemError] = useState71(false);
|
32202
32222
|
const isMobile = useMedia42(config.media.md);
|
32203
|
-
|
32223
|
+
useEffect68(() => {
|
32204
32224
|
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"))) {
|
32205
32225
|
return;
|
32206
32226
|
}
|
@@ -32256,7 +32276,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32256
32276
|
|
32257
32277
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
32258
32278
|
init_define_process_env();
|
32259
|
-
import { useEffect as
|
32279
|
+
import { useEffect as useEffect69, useRef as useRef31 } from "react";
|
32260
32280
|
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
32261
32281
|
var notificationTypes2 = [
|
32262
32282
|
HMSNotificationTypes6.RECONNECTED,
|
@@ -32267,7 +32287,7 @@ var notificationId = null;
|
|
32267
32287
|
var ReconnectNotifications = () => {
|
32268
32288
|
const notification = useHMSNotifications6(notificationTypes2);
|
32269
32289
|
const prevErrorCode = useRef31(0);
|
32270
|
-
|
32290
|
+
useEffect69(() => {
|
32271
32291
|
var _a7, _b7;
|
32272
32292
|
if (!notification) {
|
32273
32293
|
return;
|
@@ -32290,22 +32310,22 @@ var ReconnectNotifications = () => {
|
|
32290
32310
|
|
32291
32311
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
32292
32312
|
init_define_process_env();
|
32293
|
-
import React171, { useEffect as
|
32313
|
+
import React171, { useEffect as useEffect70, useState as useState72 } from "react";
|
32294
32314
|
import {
|
32295
32315
|
HMSNotificationTypes as HMSNotificationTypes7,
|
32296
|
-
useHMSActions as
|
32316
|
+
useHMSActions as useHMSActions53,
|
32297
32317
|
useHMSNotifications as useHMSNotifications7
|
32298
32318
|
} from "@100mslive/react-sdk";
|
32299
32319
|
import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
|
32300
32320
|
var TrackBulkUnmuteModal = () => {
|
32301
|
-
const hmsActions =
|
32321
|
+
const hmsActions = useHMSActions53();
|
32302
32322
|
const [muteNotification, setMuteNotification] = useState72(null);
|
32303
32323
|
const notification = useHMSNotifications7([
|
32304
32324
|
HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
32305
32325
|
HMSNotificationTypes7.ROOM_ENDED,
|
32306
32326
|
HMSNotificationTypes7.REMOVED_FROM_ROOM
|
32307
32327
|
]);
|
32308
|
-
|
32328
|
+
useEffect70(() => {
|
32309
32329
|
switch (notification == null ? void 0 : notification.type) {
|
32310
32330
|
case HMSNotificationTypes7.REMOVED_FROM_ROOM:
|
32311
32331
|
case HMSNotificationTypes7.ROOM_ENDED:
|
@@ -32344,7 +32364,7 @@ var TrackBulkUnmuteModal = () => {
|
|
32344
32364
|
|
32345
32365
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
32346
32366
|
init_define_process_env();
|
32347
|
-
import { useEffect as
|
32367
|
+
import { useEffect as useEffect71 } from "react";
|
32348
32368
|
import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
|
32349
32369
|
var notificationTypes3 = [
|
32350
32370
|
HMSNotificationTypes8.TRACK_ADDED,
|
@@ -32354,7 +32374,7 @@ var notificationTypes3 = [
|
|
32354
32374
|
];
|
32355
32375
|
var TrackNotifications = () => {
|
32356
32376
|
const notification = useHMSNotifications8(notificationTypes3);
|
32357
|
-
|
32377
|
+
useEffect71(() => {
|
32358
32378
|
if (notification) {
|
32359
32379
|
console.debug(`[${notification.type}]`, notification);
|
32360
32380
|
}
|
@@ -32364,22 +32384,22 @@ var TrackNotifications = () => {
|
|
32364
32384
|
|
32365
32385
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
32366
32386
|
init_define_process_env();
|
32367
|
-
import React172, { useEffect as
|
32387
|
+
import React172, { useEffect as useEffect72, useState as useState73 } from "react";
|
32368
32388
|
import {
|
32369
32389
|
HMSNotificationTypes as HMSNotificationTypes9,
|
32370
|
-
useHMSActions as
|
32390
|
+
useHMSActions as useHMSActions54,
|
32371
32391
|
useHMSNotifications as useHMSNotifications9
|
32372
32392
|
} from "@100mslive/react-sdk";
|
32373
32393
|
import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
|
32374
32394
|
var TrackUnmuteModal = () => {
|
32375
|
-
const hmsActions =
|
32395
|
+
const hmsActions = useHMSActions54();
|
32376
32396
|
const notification = useHMSNotifications9([
|
32377
32397
|
HMSNotificationTypes9.CHANGE_TRACK_STATE_REQUEST,
|
32378
32398
|
HMSNotificationTypes9.ROOM_ENDED,
|
32379
32399
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
32380
32400
|
]);
|
32381
32401
|
const [muteNotification, setMuteNotification] = useState73(null);
|
32382
|
-
|
32402
|
+
useEffect72(() => {
|
32383
32403
|
switch (notification == null ? void 0 : notification.type) {
|
32384
32404
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
32385
32405
|
case HMSNotificationTypes9.ROOM_ENDED:
|
@@ -32415,14 +32435,14 @@ var TrackUnmuteModal = () => {
|
|
32415
32435
|
|
32416
32436
|
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
32417
32437
|
init_define_process_env();
|
32418
|
-
import React173, { useEffect as
|
32438
|
+
import React173, { useEffect as useEffect73 } from "react";
|
32419
32439
|
import { match as match15 } from "ts-pattern";
|
32420
32440
|
import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
|
32421
32441
|
import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
|
32422
32442
|
var TranscriptionNotifications = () => {
|
32423
32443
|
const notification = useHMSNotifications10(HMSNotificationTypes10.TRANSCRIPTION_STATE_UPDATED);
|
32424
32444
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
32425
|
-
|
32445
|
+
useEffect73(() => {
|
32426
32446
|
if (!(notification == null ? void 0 : notification.data)) {
|
32427
32447
|
return;
|
32428
32448
|
}
|
@@ -32484,7 +32504,7 @@ function Notifications() {
|
|
32484
32504
|
});
|
32485
32505
|
}, []);
|
32486
32506
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
32487
|
-
|
32507
|
+
useEffect74(() => {
|
32488
32508
|
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
|
32489
32509
|
if (!notification || isNotificationDisabled) {
|
32490
32510
|
return;
|
@@ -32670,7 +32690,7 @@ var PreviewScreen = () => {
|
|
32670
32690
|
|
32671
32691
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
32672
32692
|
init_define_process_env();
|
32673
|
-
import React178, { useEffect as
|
32693
|
+
import React178, { useEffect as useEffect75, useState as useState75 } from "react";
|
32674
32694
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
|
32675
32695
|
|
32676
32696
|
// src/Prebuilt/components/Toast/Toast.jsx
|
@@ -32696,7 +32716,7 @@ var Toast2 = (_a7) => {
|
|
32696
32716
|
var ToastContainer = () => {
|
32697
32717
|
const isConnected = useHMSStore92(selectIsConnectedToRoom11);
|
32698
32718
|
const [toasts, setToast] = useState75([]);
|
32699
|
-
|
32719
|
+
useEffect75(() => {
|
32700
32720
|
ToastManager.addListener(setToast);
|
32701
32721
|
return () => {
|
32702
32722
|
ToastManager.removeListener(setToast);
|
@@ -32751,14 +32771,14 @@ var Sheet2 = () => {
|
|
32751
32771
|
|
32752
32772
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
32753
32773
|
init_define_process_env();
|
32754
|
-
import React181, { useCallback as useCallback38, useEffect as
|
32774
|
+
import React181, { useCallback as useCallback38, useEffect as useEffect76, useMemo as useMemo23, useState as useState76 } from "react";
|
32755
32775
|
import { useMedia as useMedia43 } from "react-use";
|
32756
32776
|
import {
|
32757
32777
|
selectIsLargeRoom as selectIsLargeRoom4,
|
32758
32778
|
selectLocalPeerID as selectLocalPeerID16,
|
32759
32779
|
selectPeerNameByID as selectPeerNameByID8,
|
32760
32780
|
useCustomEvent as useCustomEvent5,
|
32761
|
-
useHMSActions as
|
32781
|
+
useHMSActions as useHMSActions55,
|
32762
32782
|
useHMSStore as useHMSStore94,
|
32763
32783
|
useHMSVanillaStore as useHMSVanillaStore18
|
32764
32784
|
} from "@100mslive/react-sdk";
|
@@ -32788,7 +32808,7 @@ var getStartingPoints = (isMobile) => {
|
|
32788
32808
|
function FlyingEmoji() {
|
32789
32809
|
const localPeerId = useHMSStore94(selectLocalPeerID16);
|
32790
32810
|
const vanillaStore = useHMSVanillaStore18();
|
32791
|
-
const hmsActions =
|
32811
|
+
const hmsActions = useHMSActions55();
|
32792
32812
|
const [emojis, setEmojis] = useState76([]);
|
32793
32813
|
const isMobile = useMedia43(config.media.md);
|
32794
32814
|
const isLargeRoom = useHMSStore94(selectIsLargeRoom4);
|
@@ -32825,7 +32845,7 @@ function FlyingEmoji() {
|
|
32825
32845
|
type: EMOJI_REACTION_TYPE,
|
32826
32846
|
onEvent: showFlyingEmoji
|
32827
32847
|
});
|
32828
|
-
|
32848
|
+
useEffect76(() => {
|
32829
32849
|
window.showFlyingEmoji = showFlyingEmoji;
|
32830
32850
|
}, [showFlyingEmoji]);
|
32831
32851
|
return /* @__PURE__ */ React181.createElement(
|
@@ -32889,9 +32909,9 @@ function FlyingEmoji() {
|
|
32889
32909
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
32890
32910
|
init_define_process_env();
|
32891
32911
|
import React182, { useCallback as useCallback39 } from "react";
|
32892
|
-
import { useCustomEvent as useCustomEvent6, useHMSActions as
|
32912
|
+
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions56 } from "@100mslive/react-sdk";
|
32893
32913
|
function RemoteStopScreenshare() {
|
32894
|
-
const actions =
|
32914
|
+
const actions = useHMSActions56();
|
32895
32915
|
const onRemoteStopScreenshare = useCallback39(() => __async(this, null, function* () {
|
32896
32916
|
yield actions.setScreenShareEnabled(false);
|
32897
32917
|
}), [actions]);
|
@@ -32904,11 +32924,11 @@ function RemoteStopScreenshare() {
|
|
32904
32924
|
|
32905
32925
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
32906
32926
|
init_define_process_env();
|
32907
|
-
import { useCallback as useCallback40, useEffect as
|
32927
|
+
import { useCallback as useCallback40, useEffect as useEffect77, useRef as useRef32 } from "react";
|
32908
32928
|
import {
|
32909
32929
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
32910
32930
|
selectPermissions as selectPermissions20,
|
32911
|
-
useHMSActions as
|
32931
|
+
useHMSActions as useHMSActions57,
|
32912
32932
|
useHMSStore as useHMSStore95,
|
32913
32933
|
useRecordingStreaming as useRecordingStreaming12
|
32914
32934
|
} from "@100mslive/react-sdk";
|
@@ -32916,7 +32936,7 @@ var useAutoStartStreaming = () => {
|
|
32916
32936
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
32917
32937
|
const permissions = useHMSStore95(selectPermissions20);
|
32918
32938
|
const showStreamingUI = useShowStreamingUI();
|
32919
|
-
const hmsActions =
|
32939
|
+
const hmsActions = useHMSActions57();
|
32920
32940
|
const isConnected = useHMSStore95(selectIsConnectedToRoom12);
|
32921
32941
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
32922
32942
|
const streamStartedRef = useRef32(false);
|
@@ -32943,12 +32963,12 @@ var useAutoStartStreaming = () => {
|
|
32943
32963
|
isHLSRecordingOn,
|
32944
32964
|
isBrowserRecordingOn
|
32945
32965
|
]);
|
32946
|
-
|
32966
|
+
useEffect77(() => {
|
32947
32967
|
if (!isHLSStarted && !isHLSRunning) {
|
32948
32968
|
streamStartedRef.current = false;
|
32949
32969
|
}
|
32950
32970
|
}, [isHLSStarted, isHLSRunning]);
|
32951
|
-
|
32971
|
+
useEffect77(() => {
|
32952
32972
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
32953
32973
|
return;
|
32954
32974
|
}
|
@@ -32974,7 +32994,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
32974
32994
|
var _a7, _b7, _c, _d;
|
32975
32995
|
const reactiveStore = useRef33();
|
32976
32996
|
const [hydrated, setHydrated] = React183.useState(false);
|
32977
|
-
|
32997
|
+
useEffect78(() => {
|
32978
32998
|
setHydrated(true);
|
32979
32999
|
const hms = new HMSReactiveStore();
|
32980
33000
|
const hmsStore = hms.getStore();
|
@@ -32989,13 +33009,13 @@ var HMSPrebuilt = React183.forwardRef(
|
|
32989
33009
|
hmsNotifications
|
32990
33010
|
};
|
32991
33011
|
}, []);
|
32992
|
-
|
33012
|
+
useEffect78(() => {
|
32993
33013
|
if (!ref || !reactiveStore.current) {
|
32994
33014
|
return;
|
32995
33015
|
}
|
32996
33016
|
ref.current = __spreadValues({}, reactiveStore.current);
|
32997
33017
|
}, [ref]);
|
32998
|
-
|
33018
|
+
useEffect78(() => {
|
32999
33019
|
return () => {
|
33000
33020
|
var _a8;
|
33001
33021
|
VBHandler.reset();
|
@@ -33108,8 +33128,8 @@ var AppStates = ({ activeState }) => {
|
|
33108
33128
|
};
|
33109
33129
|
var BackSwipe = () => {
|
33110
33130
|
const isConnectedToRoom = useHMSStore96(selectIsConnectedToRoom13);
|
33111
|
-
const hmsActions =
|
33112
|
-
|
33131
|
+
const hmsActions = useHMSActions58();
|
33132
|
+
useEffect78(() => {
|
33113
33133
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
33114
33134
|
if (isConnectedToRoom) {
|
33115
33135
|
yield hmsActions.leave();
|
@@ -33161,7 +33181,7 @@ init_define_process_env();
|
|
33161
33181
|
// src/Diagnostics/Diagnostics.tsx
|
33162
33182
|
init_define_process_env();
|
33163
33183
|
import React191, { useCallback as useCallback42, useRef as useRef35, useState as useState82 } from "react";
|
33164
|
-
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as
|
33184
|
+
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions60 } from "@100mslive/react-sdk";
|
33165
33185
|
import {
|
33166
33186
|
CheckCircleIcon as CheckCircleIcon7,
|
33167
33187
|
ConnectivityIcon as ConnectivityIcon2,
|
@@ -33173,13 +33193,13 @@ import {
|
|
33173
33193
|
|
33174
33194
|
// src/Diagnostics/AudioTest.tsx
|
33175
33195
|
init_define_process_env();
|
33176
|
-
import React187, { useCallback as useCallback41, useEffect as
|
33196
|
+
import React187, { useCallback as useCallback41, useEffect as useEffect79, useState as useState78 } from "react";
|
33177
33197
|
import {
|
33178
33198
|
selectDevices,
|
33179
33199
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
33180
33200
|
selectLocalMediaSettings,
|
33181
33201
|
selectTrackAudioByID as selectTrackAudioByID2,
|
33182
|
-
useHMSActions as
|
33202
|
+
useHMSActions as useHMSActions59,
|
33183
33203
|
useHMSStore as useHMSStore97
|
33184
33204
|
} from "@100mslive/react-sdk";
|
33185
33205
|
import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
|
@@ -33415,7 +33435,7 @@ var MicTest = ({ setError }) => {
|
|
33415
33435
|
};
|
33416
33436
|
var SpeakerTest = () => {
|
33417
33437
|
var _a7;
|
33418
|
-
const actions =
|
33438
|
+
const actions = useHMSActions59();
|
33419
33439
|
const devices = useHMSStore97(selectDevices);
|
33420
33440
|
const { audioOutputDeviceId } = useHMSStore97(selectLocalMediaSettings);
|
33421
33441
|
if (devices.audioOutput.length === 0) {
|
@@ -33444,7 +33464,7 @@ var AudioTest = () => {
|
|
33444
33464
|
},
|
33445
33465
|
[updateStep, setErrorAlone]
|
33446
33466
|
);
|
33447
|
-
|
33467
|
+
useEffect79(() => {
|
33448
33468
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
|
33449
33469
|
}, [hmsDiagnostics, setError]);
|
33450
33470
|
return /* @__PURE__ */ React187.createElement(React187.Fragment, null, /* @__PURE__ */ React187.createElement(TestContainer, null, /* @__PURE__ */ React187.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__ */ React187.createElement(
|
@@ -33466,7 +33486,7 @@ var AudioTest = () => {
|
|
33466
33486
|
|
33467
33487
|
// src/Diagnostics/BrowserTest.tsx
|
33468
33488
|
init_define_process_env();
|
33469
|
-
import React188, { useEffect as
|
33489
|
+
import React188, { useEffect as useEffect80, useState as useState79 } from "react";
|
33470
33490
|
import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
|
33471
33491
|
var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
|
33472
33492
|
var operatingSystemIconInfo = {
|
@@ -33553,7 +33573,7 @@ var BrowserTest = () => {
|
|
33553
33573
|
var _a7, _b7, _c, _d;
|
33554
33574
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
33555
33575
|
const [error, setError] = useState79();
|
33556
|
-
|
33576
|
+
useEffect80(() => {
|
33557
33577
|
try {
|
33558
33578
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
|
33559
33579
|
} catch (err) {
|
@@ -33802,7 +33822,7 @@ var downloadJson = (obj, fileName) => {
|
|
33802
33822
|
|
33803
33823
|
// src/Diagnostics/VideoTest.tsx
|
33804
33824
|
init_define_process_env();
|
33805
|
-
import React190, { useEffect as
|
33825
|
+
import React190, { useEffect as useEffect81, useState as useState81 } from "react";
|
33806
33826
|
import {
|
33807
33827
|
selectDevices as selectDevices2,
|
33808
33828
|
selectLocalMediaSettings as selectLocalMediaSettings2,
|
@@ -33817,7 +33837,7 @@ var VideoTest = () => {
|
|
33817
33837
|
const trackID = useHMSStore98(selectLocalVideoTrackID4);
|
33818
33838
|
const sdkSelectedDevices = useHMSStore98(selectLocalMediaSettings2);
|
33819
33839
|
const [error, setError] = useState81();
|
33820
|
-
|
33840
|
+
useEffect81(() => {
|
33821
33841
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
|
33822
33842
|
updateStep(1 /* VIDEO */, { hasFailed: true });
|
33823
33843
|
setError(err);
|
@@ -33939,7 +33959,7 @@ var DiagnosticsStepsList = () => {
|
|
33939
33959
|
}));
|
33940
33960
|
};
|
33941
33961
|
var DiagnosticsProvider = () => {
|
33942
|
-
const actions =
|
33962
|
+
const actions = useHMSActions60();
|
33943
33963
|
const [activeStep, setActiveStep] = useState82(0);
|
33944
33964
|
const [steps, setSteps] = useState82(initialSteps);
|
33945
33965
|
const diagnosticsRef = useRef35(actions.initDiagnostics());
|
@@ -34096,4 +34116,4 @@ object-assign/index.js:
|
|
34096
34116
|
@license MIT
|
34097
34117
|
*)
|
34098
34118
|
*/
|
34099
|
-
//# sourceMappingURL=chunk-
|
34119
|
+
//# sourceMappingURL=chunk-NC3PKPDD.js.map
|