@100mslive/roomkit-react 0.3.17-alpha.5 → 0.3.17-alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-SG6INEVH.js → HLSView-FAZNEBL5.js} +2 -2
- package/dist/{HLSView-GU7KK7TC.css → HLSView-GNQ22CRJ.css} +3 -3
- package/dist/{HLSView-GU7KK7TC.css.map → HLSView-GNQ22CRJ.css.map} +1 -1
- package/dist/{chunk-CAKVWPSI.js → chunk-YBCPTZFO.js} +146 -137
- package/dist/chunk-YBCPTZFO.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +33 -25
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +15 -15
- package/dist/meta.esbuild.json +27 -27
- package/package.json +7 -7
- package/src/Prebuilt/components/AudioVideoToggle.tsx +31 -18
- package/dist/chunk-CAKVWPSI.js.map +0 -7
- /package/dist/{HLSView-SG6INEVH.js.map → HLSView-FAZNEBL5.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_3a55f355-565b-4df8-8b38-285a4d99a2eb", 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.7-alpha.5", 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.17-alpha.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3a55f355-565b-4df8-8b38-285a4d99a2eb", 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.17-alpha.5", 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/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "589", 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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240721.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.5/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:21522", 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.17-alpha.5", 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: "10197289080", 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: "b08101f4180d7b673e1d459fd252dc3ea9a65389", 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: "3b022624deb7808a2e169017475647db1a7a5afd6a729298eae46bb4bd084563", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722511188433-0.057103806814660985:/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--1722511188237-0.15698933475304533:/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--1722511162874-0.5285484400859677:/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--1722511162698-0.43240044370398767:/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_c5c5bb8e-3b79-4fba-8d1e-44c464966450", INVOCATION_ID: "dcab7626d1f64ee2bd067e373366d3bf", 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: "622", 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 161", 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/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.5", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.5", 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: "b08101f4180d7b673e1d459fd252dc3ea9a65389", 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_3a55f355-565b-4df8-8b38-285a4d99a2eb", 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_3a55f355-565b-4df8-8b38-285a4d99a2eb", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_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/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3a55f355-565b-4df8-8b38-285a4d99a2eb" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ee57e437-7877-470b-911f-e00653d29b33", 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.7-alpha.7", 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.17-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ee57e437-7877-470b-911f-e00653d29b33", 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.17-alpha.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240721.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.5/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:19606", 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.17-alpha.7", 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: "10210736510", 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: "a3858015ba34995efa28cd6e7ce1be842fc8b000", 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: "58cc85f341ad3589bb899d8b954ec7588433d90431cee075b984af83c3fa649b", 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--1722578284395-0.5579634795079289:/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--1722578284200-0.7922271856544278:/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--1722578258938-0.39393428488983195:/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--1722578258758-0.8906568957038827:/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_7b616977-10fb-4a63-a525-53636e4ba14d", INVOCATION_ID: "d89d15ea33f648cfa81ad28407ea1fd2", 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: "624", 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 412", 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/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.7", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "a3858015ba34995efa28cd6e7ce1be842fc8b000", 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_ee57e437-7877-470b-911f-e00653d29b33", 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_ee57e437-7877-470b-911f-e00653d29b33", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_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/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ee57e437-7877-470b-911f-e00653d29b33" };
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
@@ -13956,7 +13956,7 @@ import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
|
13956
13956
|
|
13957
13957
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
13958
13958
|
init_define_process_env();
|
13959
|
-
import React33, { Fragment as Fragment3, useEffect as useEffect10, useState as useState10 } from "react";
|
13959
|
+
import React33, { Fragment as Fragment3, useCallback as useCallback8, useEffect as useEffect10, useState as useState10 } from "react";
|
13960
13960
|
import { HMSKrispPlugin } from "@100mslive/hms-noise-cancellation";
|
13961
13961
|
import {
|
13962
13962
|
DeviceType as DeviceType2,
|
@@ -13971,7 +13971,8 @@ import {
|
|
13971
13971
|
useAVToggle as useAVToggle2,
|
13972
13972
|
useDevices as useDevices2,
|
13973
13973
|
useHMSActions as useHMSActions7,
|
13974
|
-
useHMSStore as useHMSStore8
|
13974
|
+
useHMSStore as useHMSStore8,
|
13975
|
+
useHMSVanillaStore as useHMSVanillaStore4
|
13975
13976
|
} from "@100mslive/react-sdk";
|
13976
13977
|
import {
|
13977
13978
|
AudioLevelIcon,
|
@@ -14946,25 +14947,30 @@ var OptionLabel = ({ children, icon }) => {
|
|
14946
14947
|
);
|
14947
14948
|
};
|
14948
14949
|
var useNoiseCancellationWithPlugin = () => {
|
14950
|
+
var _a7;
|
14949
14951
|
const actions = useHMSActions7();
|
14950
14952
|
const [inProgress, setInProgress] = useState10(false);
|
14951
14953
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
14952
|
-
const
|
14953
|
-
|
14954
|
-
|
14955
|
-
|
14956
|
-
|
14957
|
-
|
14958
|
-
|
14959
|
-
|
14960
|
-
|
14961
|
-
|
14962
|
-
|
14963
|
-
|
14964
|
-
|
14965
|
-
|
14966
|
-
|
14967
|
-
|
14954
|
+
const isEnabledForRoom = (_a7 = useHMSStore8(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
14955
|
+
const setNoiseCancellationWithPlugin = useCallback8(
|
14956
|
+
(enabled) => __async(void 0, null, function* () {
|
14957
|
+
if (!isEnabledForRoom || inProgress) {
|
14958
|
+
return;
|
14959
|
+
}
|
14960
|
+
if (!krispPlugin.checkSupport().isSupported) {
|
14961
|
+
throw Error("Krisp plugin is not supported");
|
14962
|
+
}
|
14963
|
+
setInProgress(true);
|
14964
|
+
if (enabled) {
|
14965
|
+
yield actions.addPluginToAudioTrack(krispPlugin);
|
14966
|
+
} else {
|
14967
|
+
yield actions.removePluginFromAudioTrack(krispPlugin);
|
14968
|
+
}
|
14969
|
+
setNoiseCancellationEnabled(enabled);
|
14970
|
+
setInProgress(false);
|
14971
|
+
}),
|
14972
|
+
[actions, inProgress, isEnabledForRoom, setNoiseCancellationEnabled]
|
14973
|
+
);
|
14968
14974
|
return {
|
14969
14975
|
setNoiseCancellationWithPlugin,
|
14970
14976
|
inProgress
|
@@ -15102,6 +15108,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
15102
15108
|
const localPeer = useHMSStore8(selectLocalPeer);
|
15103
15109
|
const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle2();
|
15104
15110
|
const actions = useHMSActions7();
|
15111
|
+
const vanillaStore = useHMSVanillaStore4();
|
15105
15112
|
const videoTrackId = useHMSStore8(selectLocalVideoTrackID2);
|
15106
15113
|
const localVideoTrack = useHMSStore8(selectVideoTrackByID2(videoTrackId));
|
15107
15114
|
const roomState = useHMSStore8(selectRoomState2);
|
@@ -15116,7 +15123,9 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
15116
15123
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
15117
15124
|
useEffect10(() => {
|
15118
15125
|
(() => __async(void 0, null, function* () {
|
15119
|
-
|
15126
|
+
var _a7;
|
15127
|
+
const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
15128
|
+
if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
|
15120
15129
|
try {
|
15121
15130
|
yield setNoiseCancellationWithPlugin(true);
|
15122
15131
|
ToastManager.addToast({
|
@@ -15283,7 +15292,7 @@ var useDropdownList = ({ name, open }) => {
|
|
15283
15292
|
|
15284
15293
|
// src/Prebuilt/common/hooks.ts
|
15285
15294
|
init_define_process_env();
|
15286
|
-
import { useCallback as
|
15295
|
+
import { useCallback as useCallback9, useEffect as useEffect12, useMemo as useMemo5, useRef as useRef10, useState as useState11 } from "react";
|
15287
15296
|
import { useMedia as useMedia3 } from "react-use";
|
15288
15297
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
15289
15298
|
import {
|
@@ -15301,7 +15310,7 @@ import {
|
|
15301
15310
|
selectRolesMap,
|
15302
15311
|
useHMSActions as useHMSActions8,
|
15303
15312
|
useHMSStore as useHMSStore10,
|
15304
|
-
useHMSVanillaStore as
|
15313
|
+
useHMSVanillaStore as useHMSVanillaStore5
|
15305
15314
|
} from "@100mslive/react-sdk";
|
15306
15315
|
var useFilteredRoles = () => {
|
15307
15316
|
var _a7;
|
@@ -15333,7 +15342,7 @@ var useParticipants = (params) => {
|
|
15333
15342
|
const availableRoles = useHMSStore10(selectAvailableRoleNames);
|
15334
15343
|
let participantList = useHMSStore10(isConnected ? selectPeers : selectRemotePeers);
|
15335
15344
|
const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
|
15336
|
-
const vanillaStore =
|
15345
|
+
const vanillaStore = useHMSVanillaStore5();
|
15337
15346
|
if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
|
15338
15347
|
participantList = participantList.filter((peer) => {
|
15339
15348
|
return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
|
@@ -15364,7 +15373,7 @@ var useMobileHLSStream = () => {
|
|
15364
15373
|
return isMobile && screenType === "hls_live_streaming";
|
15365
15374
|
};
|
15366
15375
|
var useKeyboardHandler = (isPaused, hlsPlayer) => {
|
15367
|
-
const handleKeyEvent =
|
15376
|
+
const handleKeyEvent = useCallback9(
|
15368
15377
|
(event) => __async(void 0, null, function* () {
|
15369
15378
|
switch (event.key) {
|
15370
15379
|
case " ":
|
@@ -15396,7 +15405,7 @@ var useRecordingHandler = () => {
|
|
15396
15405
|
setRecordingState(false);
|
15397
15406
|
}
|
15398
15407
|
}, [recordingStarted, recordingState.browser.error, setRecordingState]);
|
15399
|
-
const startRecording =
|
15408
|
+
const startRecording = useCallback9(
|
15400
15409
|
(resolution = null) => __async(void 0, null, function* () {
|
15401
15410
|
try {
|
15402
15411
|
setRecordingState(true);
|
@@ -15952,8 +15961,8 @@ import React44 from "react";
|
|
15952
15961
|
|
15953
15962
|
// src/Prebuilt/components/PIP/PIPComponent.tsx
|
15954
15963
|
init_define_process_env();
|
15955
|
-
import React43, { useCallback as
|
15956
|
-
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as
|
15964
|
+
import React43, { useCallback as useCallback10, useEffect as useEffect13, useState as useState15 } from "react";
|
15965
|
+
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as useHMSVanillaStore6 } from "@100mslive/react-sdk";
|
15957
15966
|
import { PipIcon } from "@100mslive/react-icons";
|
15958
15967
|
|
15959
15968
|
// src/Prebuilt/components/PIP/PIPManager.ts
|
@@ -16425,8 +16434,8 @@ var MediaSession = new SetupMediaSession();
|
|
16425
16434
|
var PIPComponent = ({ content = null }) => {
|
16426
16435
|
const [isPipOn, setIsPipOn] = useState15(PictureInPicture.isOn());
|
16427
16436
|
const hmsActions = useHMSActions10();
|
16428
|
-
const store =
|
16429
|
-
const onPipToggle =
|
16437
|
+
const store = useHMSVanillaStore6();
|
16438
|
+
const onPipToggle = useCallback10(() => {
|
16430
16439
|
if (!isPipOn) {
|
16431
16440
|
PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
|
16432
16441
|
MediaSession.setup(hmsActions, store);
|
@@ -16440,7 +16449,7 @@ var PIPComponent = ({ content = null }) => {
|
|
16440
16449
|
return /* @__PURE__ */ React43.createElement(React43.Fragment, null, content ? /* @__PURE__ */ React43.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React43.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React43.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React43.createElement(PipIcon, null))));
|
16441
16450
|
};
|
16442
16451
|
var ActivatedPIP = () => {
|
16443
|
-
const store =
|
16452
|
+
const store = useHMSVanillaStore6();
|
16444
16453
|
const pinnedTrack = usePinnedTrack();
|
16445
16454
|
useEffect13(() => {
|
16446
16455
|
function subscribeToStore() {
|
@@ -16481,7 +16490,7 @@ var PIP = ({ content = null }) => {
|
|
16481
16490
|
|
16482
16491
|
// src/Prebuilt/components/PIP/PIPChat.tsx
|
16483
16492
|
init_define_process_env();
|
16484
|
-
import React49, { useCallback as
|
16493
|
+
import React49, { useCallback as useCallback15, useEffect as useEffect16, useMemo as useMemo7, useState as useState19 } from "react";
|
16485
16494
|
import {
|
16486
16495
|
selectHMSMessages as selectHMSMessages2,
|
16487
16496
|
selectLocalPeerID as selectLocalPeerID3,
|
@@ -16528,7 +16537,7 @@ var TextArea = styled("textarea", {
|
|
16528
16537
|
|
16529
16538
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
16530
16539
|
init_define_process_env();
|
16531
|
-
import React48, { Fragment as Fragment6, useCallback as
|
16540
|
+
import React48, { Fragment as Fragment6, useCallback as useCallback14, useEffect as useEffect15, useLayoutEffect, useMemo as useMemo6, useRef as useRef11, useState as useState18 } from "react";
|
16532
16541
|
import { useMedia as useMedia7 } from "react-use";
|
16533
16542
|
import AutoSizer from "react-virtualized-auto-sizer";
|
16534
16543
|
import { VariableSizeList } from "react-window";
|
@@ -16542,13 +16551,13 @@ import {
|
|
16542
16551
|
selectUnreadHMSMessagesCount,
|
16543
16552
|
useHMSActions as useHMSActions14,
|
16544
16553
|
useHMSStore as useHMSStore18,
|
16545
|
-
useHMSVanillaStore as
|
16554
|
+
useHMSVanillaStore as useHMSVanillaStore8
|
16546
16555
|
} from "@100mslive/react-sdk";
|
16547
16556
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
16548
16557
|
|
16549
16558
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
16550
16559
|
init_define_process_env();
|
16551
|
-
import React46, { useCallback as
|
16560
|
+
import React46, { useCallback as useCallback13, useState as useState16 } from "react";
|
16552
16561
|
import { selectLocalPeerName, selectPermissions as selectPermissions5, useHMSActions as useHMSActions13, useHMSStore as useHMSStore16 } from "@100mslive/react-sdk";
|
16553
16562
|
import {
|
16554
16563
|
CopyIcon as CopyIcon2,
|
@@ -16576,12 +16585,12 @@ var MwebChatOption = ({
|
|
16576
16585
|
|
16577
16586
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
16578
16587
|
init_define_process_env();
|
16579
|
-
import { useCallback as
|
16588
|
+
import { useCallback as useCallback11 } from "react";
|
16580
16589
|
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
|
16581
16590
|
var useChatBlacklist = (sessionStoreKey) => {
|
16582
16591
|
const hmsActions = useHMSActions11();
|
16583
16592
|
const blacklistedIDs = useHMSStore15(selectSessionStore2(sessionStoreKey));
|
16584
|
-
const blacklistItem =
|
16593
|
+
const blacklistItem = useCallback11(
|
16585
16594
|
(blacklistID) => __async(void 0, null, function* () {
|
16586
16595
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
16587
16596
|
}),
|
@@ -16597,17 +16606,17 @@ var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
|
16597
16606
|
|
16598
16607
|
// src/Prebuilt/components/hooks/usePinnedMessages.ts
|
16599
16608
|
init_define_process_env();
|
16600
|
-
import { useCallback as
|
16609
|
+
import { useCallback as useCallback12 } from "react";
|
16601
16610
|
import {
|
16602
16611
|
selectPeerNameByID,
|
16603
16612
|
selectSessionStore as selectSessionStore3,
|
16604
16613
|
useHMSActions as useHMSActions12,
|
16605
|
-
useHMSVanillaStore as
|
16614
|
+
useHMSVanillaStore as useHMSVanillaStore7
|
16606
16615
|
} from "@100mslive/react-sdk";
|
16607
16616
|
var usePinnedMessages = () => {
|
16608
16617
|
const hmsActions = useHMSActions12();
|
16609
|
-
const vanillaStore =
|
16610
|
-
const setPinnedMessages =
|
16618
|
+
const vanillaStore = useHMSVanillaStore7();
|
16619
|
+
const setPinnedMessages = useCallback12(
|
16611
16620
|
(message, pinnedBy) => __async(void 0, null, function* () {
|
16612
16621
|
const peerName = vanillaStore.getState(selectPeerNameByID(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
|
16613
16622
|
const newPinnedMessage = { text: "", id: message.id, pinnedBy };
|
@@ -16623,7 +16632,7 @@ var usePinnedMessages = () => {
|
|
16623
16632
|
}),
|
16624
16633
|
[hmsActions, vanillaStore]
|
16625
16634
|
);
|
16626
|
-
const removePinnedMessage =
|
16635
|
+
const removePinnedMessage = useCallback12(
|
16627
16636
|
(indexToRemove) => __async(void 0, null, function* () {
|
16628
16637
|
const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
16629
16638
|
if (pinnedMessages[indexToRemove]) {
|
@@ -16635,7 +16644,7 @@ var usePinnedMessages = () => {
|
|
16635
16644
|
}),
|
16636
16645
|
[hmsActions, vanillaStore]
|
16637
16646
|
);
|
16638
|
-
const unpinBlacklistedMessages =
|
16647
|
+
const unpinBlacklistedMessages = useCallback12(
|
16639
16648
|
(blacklistedMessageIDSet) => __async(void 0, null, function* () {
|
16640
16649
|
const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
16641
16650
|
const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
|
@@ -16682,14 +16691,14 @@ var ChatActions = ({
|
|
16682
16691
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
16683
16692
|
);
|
16684
16693
|
const isSenderBlocked = useIsPeerBlacklisted({ peerCustomerUserId: message.senderUserId });
|
16685
|
-
const updatePinnedMessages =
|
16694
|
+
const updatePinnedMessages = useCallback13(
|
16686
16695
|
(messageID = "") => {
|
16687
16696
|
const blacklistedMessageIDSet = /* @__PURE__ */ new Set([...blacklistedMessageIDs || [], messageID]);
|
16688
16697
|
unpinBlacklistedMessages(blacklistedMessageIDSet);
|
16689
16698
|
},
|
16690
16699
|
[blacklistedMessageIDs, unpinBlacklistedMessages]
|
16691
16700
|
);
|
16692
|
-
const copyMessageContent =
|
16701
|
+
const copyMessageContent = useCallback13(() => {
|
16693
16702
|
try {
|
16694
16703
|
navigator == null ? void 0 : navigator.clipboard.writeText(message.message);
|
16695
16704
|
ToastManager.addToast({
|
@@ -17222,7 +17231,7 @@ var MessageWrapper = React48.memo(
|
|
17222
17231
|
);
|
17223
17232
|
var VirtualizedChatMessages = React48.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
17224
17233
|
const hmsActions = useHMSActions14();
|
17225
|
-
const itemKey2 =
|
17234
|
+
const itemKey2 = useCallback14((index, data3) => {
|
17226
17235
|
return data3[index].id;
|
17227
17236
|
}, []);
|
17228
17237
|
useEffect15(() => {
|
@@ -17282,7 +17291,7 @@ var ChatBody = React48.forwardRef(
|
|
17282
17291
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
17283
17292
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
17284
17293
|
}, [blacklistedMessageIDs, messages]);
|
17285
|
-
const vanillaStore =
|
17294
|
+
const vanillaStore = useHMSVanillaStore8();
|
17286
17295
|
const rerenderOnFirstMount = useRef11(false);
|
17287
17296
|
useEffect15(() => {
|
17288
17297
|
const unsubscribe = vanillaStore.subscribe(() => {
|
@@ -17335,7 +17344,7 @@ var PIPChat = () => {
|
|
17335
17344
|
const localPeerID = useHMSStore19(selectLocalPeerID3);
|
17336
17345
|
const count = useHMSStore19(selectUnreadHMSMessagesCount2);
|
17337
17346
|
const [unreadMessageCount, setUnreadMessageCount] = useState19(0);
|
17338
|
-
const getSenderName =
|
17347
|
+
const getSenderName = useCallback15(
|
17339
17348
|
(senderName, senderID) => {
|
17340
17349
|
const slicedName = senderName.length > 10 ? senderName.slice(0, 10) + "..." : senderName;
|
17341
17350
|
return slicedName + (senderID === localPeerID ? " (You)" : "");
|
@@ -17358,7 +17367,7 @@ var PIPChat = () => {
|
|
17358
17367
|
const { elements } = useRoomLayoutConferencingScreen();
|
17359
17368
|
const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
|
17360
17369
|
const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length);
|
17361
|
-
const getChatStatus =
|
17370
|
+
const getChatStatus = useCallback15(() => {
|
17362
17371
|
if (isLocalPeerBlacklisted)
|
17363
17372
|
return "You've been blocked from sending messages";
|
17364
17373
|
if (!isChatEnabled)
|
@@ -17701,7 +17710,7 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
|
|
17701
17710
|
|
17702
17711
|
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
17703
17712
|
init_define_process_env();
|
17704
|
-
import React53, { useCallback as
|
17713
|
+
import React53, { useCallback as useCallback16, useState as useState21 } from "react";
|
17705
17714
|
import { InfoIcon } from "@100mslive/react-icons";
|
17706
17715
|
|
17707
17716
|
// src/Prebuilt/primitives/DialogContent.jsx
|
@@ -17863,7 +17872,7 @@ var DialogInputFile = (_a7) => {
|
|
17863
17872
|
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
17864
17873
|
var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
|
17865
17874
|
const [resolution, setResolution] = useState21(RTMP_RECORD_DEFAULT_RESOLUTION);
|
17866
|
-
const resolutionChangeHandler =
|
17875
|
+
const resolutionChangeHandler = useCallback16(
|
17867
17876
|
(event) => {
|
17868
17877
|
const { name, value } = event.target;
|
17869
17878
|
let width = name === "resWidth" ? Number(value) : resolution.width;
|
@@ -18170,7 +18179,7 @@ var StatsRow2 = React55.memo(({ label, value }) => /* @__PURE__ */ React55.creat
|
|
18170
18179
|
|
18171
18180
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
18172
18181
|
init_define_process_env();
|
18173
|
-
import React56, { useCallback as
|
18182
|
+
import React56, { useCallback as useCallback17, useRef as useRef15, useState as useState24 } from "react";
|
18174
18183
|
import { useHMSActions as useHMSActions17 } from "@100mslive/react-sdk";
|
18175
18184
|
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
|
18176
18185
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
@@ -18185,7 +18194,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
18185
18194
|
const [roleDialog, setRoleDialog] = useState24(false);
|
18186
18195
|
const [errorMessage, setErrorMessage] = useState24("");
|
18187
18196
|
const [isSubmiting, setIsSubmiting] = useState24(false);
|
18188
|
-
const changeBulkRole =
|
18197
|
+
const changeBulkRole = useCallback17(() => __async(void 0, null, function* () {
|
18189
18198
|
if (selectedBulkRole.length > 0 && selectedRole) {
|
18190
18199
|
try {
|
18191
18200
|
setIsSubmiting(true);
|
@@ -18425,11 +18434,11 @@ import { ExpandIcon } from "@100mslive/react-icons";
|
|
18425
18434
|
|
18426
18435
|
// src/Prebuilt/components/hooks/useFullscreen.ts
|
18427
18436
|
init_define_process_env();
|
18428
|
-
import { useCallback as
|
18437
|
+
import { useCallback as useCallback18, useEffect as useEffect18, useState as useState25 } from "react";
|
18429
18438
|
import screenfull from "screenfull";
|
18430
18439
|
var useFullscreen = () => {
|
18431
18440
|
const [isFullScreenEnabled, setIsFullScreenEnabled] = useState25(screenfull.isFullscreen);
|
18432
|
-
const toggle =
|
18441
|
+
const toggle = useCallback18(() => __async(void 0, null, function* () {
|
18433
18442
|
if (!screenfull.isEnabled) {
|
18434
18443
|
ToastManager.addToast({ title: "Fullscreen feature not supported" });
|
18435
18444
|
return;
|
@@ -18486,7 +18495,7 @@ var FullScreenItem = () => {
|
|
18486
18495
|
|
18487
18496
|
// src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
|
18488
18497
|
init_define_process_env();
|
18489
|
-
import React61, { useCallback as
|
18498
|
+
import React61, { useCallback as useCallback19, useState as useState26 } from "react";
|
18490
18499
|
import {
|
18491
18500
|
selectAvailableRoleNames as selectAvailableRoleNames4,
|
18492
18501
|
useHMSActions as useHMSActions19,
|
@@ -18562,7 +18571,7 @@ var MuteAllModal = ({
|
|
18562
18571
|
const [trackType, setTrackType] = useState26();
|
18563
18572
|
const [selectedRole, setRole] = useState26();
|
18564
18573
|
const [selectedSource, setSource] = useState26();
|
18565
|
-
const muteAll =
|
18574
|
+
const muteAll = useCallback19(() => __async(void 0, null, function* () {
|
18566
18575
|
yield hmsActions.setRemoteTracksEnabled({
|
18567
18576
|
enabled,
|
18568
18577
|
type: trackType,
|
@@ -18592,19 +18601,19 @@ var MuteAllModal = ({
|
|
18592
18601
|
|
18593
18602
|
// src/Prebuilt/components/hooks/useMetadata.tsx
|
18594
18603
|
init_define_process_env();
|
18595
|
-
import { useCallback as
|
18604
|
+
import { useCallback as useCallback20 } from "react";
|
18596
18605
|
import {
|
18597
18606
|
selectHasPeerHandRaised,
|
18598
18607
|
selectLocalPeerID as selectLocalPeerID5,
|
18599
18608
|
selectPeerMetadata as selectPeerMetadata2,
|
18600
18609
|
useHMSActions as useHMSActions20,
|
18601
18610
|
useHMSStore as useHMSStore26,
|
18602
|
-
useHMSVanillaStore as
|
18611
|
+
useHMSVanillaStore as useHMSVanillaStore9
|
18603
18612
|
} from "@100mslive/react-sdk";
|
18604
18613
|
var useMyMetadata = () => {
|
18605
18614
|
const hmsActions = useHMSActions20();
|
18606
18615
|
const localPeerId = useHMSStore26(selectLocalPeerID5);
|
18607
|
-
const vanillaStore =
|
18616
|
+
const vanillaStore = useHMSVanillaStore9();
|
18608
18617
|
const metaData = useHMSStore26(selectPeerMetadata2(localPeerId));
|
18609
18618
|
const isHandRaised = useHMSStore26(selectHasPeerHandRaised(localPeerId));
|
18610
18619
|
const update = (updatedFields) => __async(void 0, null, function* () {
|
@@ -18617,7 +18626,7 @@ var useMyMetadata = () => {
|
|
18617
18626
|
}
|
18618
18627
|
return false;
|
18619
18628
|
});
|
18620
|
-
const toggleHandRaise =
|
18629
|
+
const toggleHandRaise = useCallback20(() => __async(void 0, null, function* () {
|
18621
18630
|
if (isHandRaised) {
|
18622
18631
|
yield hmsActions.lowerLocalPeerHand();
|
18623
18632
|
yield update({ handRaisedAt: void 0 });
|
@@ -18626,7 +18635,7 @@ var useMyMetadata = () => {
|
|
18626
18635
|
yield update({ isBRBOn: false, handRaisedAt: Date.now() });
|
18627
18636
|
}
|
18628
18637
|
}), [isHandRaised]);
|
18629
|
-
const toggleBRB =
|
18638
|
+
const toggleBRB = useCallback20(() => __async(void 0, null, function* () {
|
18630
18639
|
const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
|
18631
18640
|
yield update({ isBRBOn: newValue });
|
18632
18641
|
if (newValue) {
|
@@ -18937,7 +18946,7 @@ import {
|
|
18937
18946
|
|
18938
18947
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
18939
18948
|
init_define_process_env();
|
18940
|
-
import React64, { useCallback as
|
18949
|
+
import React64, { useCallback as useCallback22, useEffect as useEffect20, useRef as useRef16, useState as useState29 } from "react";
|
18941
18950
|
import { useMedia as useMedia10 } from "react-use";
|
18942
18951
|
|
18943
18952
|
// ../hms-video-store/dist/index.js
|
@@ -21159,7 +21168,7 @@ var mr = (a2, e) => {
|
|
21159
21168
|
};
|
21160
21169
|
var Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21161
21170
|
var vr = Xa((Ac, no) => {
|
21162
|
-
no.exports = { version: "0.12.17-alpha.
|
21171
|
+
no.exports = { version: "0.12.17-alpha.7", 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"] };
|
21163
21172
|
});
|
21164
21173
|
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 || {});
|
21165
21174
|
var Za = ((e) => (e.CHAT = "chat", e))(Za || {});
|
@@ -21488,7 +21497,7 @@ var vs = () => {
|
|
21488
21497
|
let a2, e = new pe("hms-analytics-deviceId"), t = e.get();
|
21489
21498
|
return t ? a2 = t : (a2 = oo(), e.set(a2)), a2;
|
21490
21499
|
};
|
21491
|
-
function
|
21500
|
+
function ce(a2) {
|
21492
21501
|
return a2 != null;
|
21493
21502
|
}
|
21494
21503
|
var ys = vr().version;
|
@@ -21502,7 +21511,7 @@ function Tt(a2 = "prod", e) {
|
|
21502
21511
|
function Mr(a2) {
|
21503
21512
|
return a2.replace(/ /g, "_");
|
21504
21513
|
}
|
21505
|
-
var ks = (a2, e = ",") => Object.keys(a2).filter((t) =>
|
21514
|
+
var ks = (a2, e = ",") => Object.keys(a2).filter((t) => ce(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21506
21515
|
var H = class {
|
21507
21516
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21508
21517
|
this.metadata = { peer: {}, userAgent: Tt() };
|
@@ -22266,7 +22275,7 @@ import { ChevronDownIcon as ChevronDownIcon4, ChevronUpIcon as ChevronUpIcon4, M
|
|
22266
22275
|
|
22267
22276
|
// src/Prebuilt/components/hooks/useScreenshareAudio.js
|
22268
22277
|
init_define_process_env();
|
22269
|
-
import { useCallback as
|
22278
|
+
import { useCallback as useCallback21 } from "react";
|
22270
22279
|
import {
|
22271
22280
|
selectPeerSharingAudio,
|
22272
22281
|
selectScreenShareAudioByPeerID,
|
@@ -22277,7 +22286,7 @@ var useScreenshareAudio = () => {
|
|
22277
22286
|
const hmsActions = useHMSActions23();
|
22278
22287
|
const peer = useHMSStore28(selectPeerSharingAudio);
|
22279
22288
|
const track = useHMSStore28(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
|
22280
|
-
const handleMute =
|
22289
|
+
const handleMute = useCallback21(() => {
|
22281
22290
|
if (!peer.isLocal) {
|
22282
22291
|
hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
|
22283
22292
|
} else {
|
@@ -22365,7 +22374,7 @@ var LiveStatus = () => {
|
|
22365
22374
|
const intervalRef = useRef16(null);
|
22366
22375
|
const { screenType } = useRoomLayoutConferencingScreen();
|
22367
22376
|
const [liveTime, setLiveTime] = useState29(0);
|
22368
|
-
const startTimer =
|
22377
|
+
const startTimer = useCallback22(() => {
|
22369
22378
|
intervalRef.current = setInterval(() => {
|
22370
22379
|
var _a8;
|
22371
22380
|
const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
|
@@ -22697,8 +22706,8 @@ var ChangeNameModal = ({
|
|
22697
22706
|
|
22698
22707
|
// src/Prebuilt/components/AppData/useSheet.ts
|
22699
22708
|
init_define_process_env();
|
22700
|
-
import { useCallback as
|
22701
|
-
import { selectAppData as selectAppData4, useHMSActions as useHMSActions26, useHMSStore as useHMSStore32, useHMSVanillaStore as
|
22709
|
+
import { useCallback as useCallback23 } from "react";
|
22710
|
+
import { selectAppData as selectAppData4, useHMSActions as useHMSActions26, useHMSStore as useHMSStore32, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
22702
22711
|
var useIsSheetTypeOpen = (sheetType) => {
|
22703
22712
|
if (!sheetType) {
|
22704
22713
|
throw Error("Pass one of the sheet options");
|
@@ -22707,8 +22716,8 @@ var useIsSheetTypeOpen = (sheetType) => {
|
|
22707
22716
|
};
|
22708
22717
|
var useSheetToggle = (sheetType) => {
|
22709
22718
|
const hmsActions = useHMSActions26();
|
22710
|
-
const vanillaStore =
|
22711
|
-
const toggleSheet =
|
22719
|
+
const vanillaStore = useHMSVanillaStore10();
|
22720
|
+
const toggleSheet = useCallback23(() => {
|
22712
22721
|
const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
|
22713
22722
|
hmsActions.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
|
22714
22723
|
}, [vanillaStore, hmsActions, sheetType]);
|
@@ -23588,7 +23597,7 @@ var ChatToggle = ({ onClick }) => {
|
|
23588
23597
|
|
23589
23598
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
23590
23599
|
init_define_process_env();
|
23591
|
-
import React83, { Fragment as Fragment10, useCallback as
|
23600
|
+
import React83, { Fragment as Fragment10, useCallback as useCallback24, useState as useState37 } from "react";
|
23592
23601
|
import { useDebounce, useMedia as useMedia13 } from "react-use";
|
23593
23602
|
import {
|
23594
23603
|
HMSPeerType as HMSPeerType2,
|
@@ -24180,7 +24189,7 @@ var ParticipantList = ({
|
|
24180
24189
|
});
|
24181
24190
|
}
|
24182
24191
|
useSidepaneResetOnLayoutUpdate("participant_list", SIDE_PANE_OPTIONS.PARTICIPANTS);
|
24183
|
-
const onSearch =
|
24192
|
+
const onSearch = useCallback24((value) => {
|
24184
24193
|
setFilter((filterValue) => {
|
24185
24194
|
if (!filterValue) {
|
24186
24195
|
filterValue = {};
|
@@ -24627,7 +24636,7 @@ var Footer2 = ({
|
|
24627
24636
|
|
24628
24637
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
24629
24638
|
init_define_process_env();
|
24630
|
-
import React87, { useCallback as
|
24639
|
+
import React87, { useCallback as useCallback25, useState as useState38 } from "react";
|
24631
24640
|
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions32, useHMSStore as useHMSStore47, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
24632
24641
|
function HLSFailureModal() {
|
24633
24642
|
const hlsError = useHMSStore47(selectHLSState5).error || false;
|
@@ -24635,7 +24644,7 @@ function HLSFailureModal() {
|
|
24635
24644
|
const hmsActions = useHMSActions32();
|
24636
24645
|
const { isRTMPRunning } = useRecordingStreaming8();
|
24637
24646
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
24638
|
-
const startHLS =
|
24647
|
+
const startHLS = useCallback25(() => __async(this, null, function* () {
|
24639
24648
|
try {
|
24640
24649
|
if (isHLSStarted || isRTMPRunning) {
|
24641
24650
|
return;
|
@@ -24688,7 +24697,7 @@ import {
|
|
24688
24697
|
|
24689
24698
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
24690
24699
|
init_define_process_env();
|
24691
|
-
import React136, { Fragment as Fragment12, useCallback as
|
24700
|
+
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
|
24692
24701
|
import { useMeasure as useMeasure4, useMedia as useMedia26 } from "react-use";
|
24693
24702
|
import {
|
24694
24703
|
HMSRoomState as HMSRoomState5,
|
@@ -25011,7 +25020,7 @@ import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
|
25011
25020
|
|
25012
25021
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
25013
25022
|
init_define_process_env();
|
25014
|
-
import React98, { useCallback as
|
25023
|
+
import React98, { useCallback as useCallback26, useRef as useRef19, useState as useState40 } from "react";
|
25015
25024
|
import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
|
25016
25025
|
|
25017
25026
|
// src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
|
@@ -25325,13 +25334,13 @@ var QuestionForm = ({
|
|
25325
25334
|
weight,
|
25326
25335
|
isQuiz
|
25327
25336
|
});
|
25328
|
-
const handleOptionTextChange =
|
25337
|
+
const handleOptionTextChange = useCallback26(
|
25329
25338
|
(index2, text2) => {
|
25330
25339
|
setOptions((options2) => [...options2.slice(0, index2), __spreadProps(__spreadValues({}, options2[index2]), { text: text2 }), ...options2.slice(index2 + 1)]);
|
25331
25340
|
},
|
25332
25341
|
[setOptions]
|
25333
25342
|
);
|
25334
|
-
const removeOption =
|
25343
|
+
const removeOption = useCallback26(
|
25335
25344
|
(index2) => setOptions((options2) => {
|
25336
25345
|
const newOptions = [...options2];
|
25337
25346
|
newOptions.splice(index2, 1);
|
@@ -25339,7 +25348,7 @@ var QuestionForm = ({
|
|
25339
25348
|
}),
|
25340
25349
|
[setOptions]
|
25341
25350
|
);
|
25342
|
-
const selectSingleChoiceAnswer =
|
25351
|
+
const selectSingleChoiceAnswer = useCallback26(
|
25343
25352
|
(answerIndex) => {
|
25344
25353
|
if (!isQuiz) {
|
25345
25354
|
return;
|
@@ -25352,7 +25361,7 @@ var QuestionForm = ({
|
|
25352
25361
|
},
|
25353
25362
|
[setOptions, isQuiz]
|
25354
25363
|
);
|
25355
|
-
const selectMultipleChoiceAnswer =
|
25364
|
+
const selectMultipleChoiceAnswer = useCallback26(
|
25356
25365
|
(checked, index2) => {
|
25357
25366
|
if (!isQuiz) {
|
25358
25367
|
return;
|
@@ -25904,7 +25913,7 @@ import React106 from "react";
|
|
25904
25913
|
|
25905
25914
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
25906
25915
|
init_define_process_env();
|
25907
|
-
import React105, { useCallback as
|
25916
|
+
import React105, { useCallback as useCallback27, useEffect as useEffect28, useMemo as useMemo12, useRef as useRef20, useState as useState44 } from "react";
|
25908
25917
|
import { match as match8 } from "ts-pattern";
|
25909
25918
|
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions36, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
25910
25919
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
|
@@ -25950,7 +25959,7 @@ var QuestionCard2 = ({
|
|
25950
25959
|
return multipleOptionAnswer.size > 0;
|
25951
25960
|
}
|
25952
25961
|
}, [singleOptionAnswer, multipleOptionAnswer, type]);
|
25953
|
-
const handleVote =
|
25962
|
+
const handleVote = useCallback27(() => __async(void 0, null, function* () {
|
25954
25963
|
if (!isValidVote) {
|
25955
25964
|
return;
|
25956
25965
|
}
|
@@ -26384,15 +26393,15 @@ import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
|
|
26384
26393
|
|
26385
26394
|
// src/Prebuilt/components/Chat/Chat.tsx
|
26386
26395
|
init_define_process_env();
|
26387
|
-
import React121, { useCallback as
|
26396
|
+
import React121, { useCallback as useCallback31, useRef as useRef24 } from "react";
|
26388
26397
|
import { useMedia as useMedia19 } from "react-use";
|
26389
26398
|
import { match as match9 } from "ts-pattern";
|
26390
|
-
import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as
|
26399
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
|
26391
26400
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
26392
26401
|
|
26393
26402
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
26394
26403
|
init_define_process_env();
|
26395
|
-
import React116, { useCallback as
|
26404
|
+
import React116, { useCallback as useCallback29, useEffect as useEffect34, useRef as useRef23, useState as useState51 } from "react";
|
26396
26405
|
import { useMedia as useMedia17 } from "react-use";
|
26397
26406
|
import data2 from "@emoji-mart/data";
|
26398
26407
|
import Picker from "@emoji-mart/react";
|
@@ -26696,7 +26705,7 @@ var ChatSelectorContainer = () => {
|
|
26696
26705
|
|
26697
26706
|
// src/Prebuilt/components/AppData/useChatState.js
|
26698
26707
|
init_define_process_env();
|
26699
|
-
import { useCallback as
|
26708
|
+
import { useCallback as useCallback28 } from "react";
|
26700
26709
|
import { selectAppData as selectAppData7, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
26701
26710
|
var useChatDraftMessage = () => {
|
26702
26711
|
const hmsActions = useHMSActions38();
|
@@ -26704,7 +26713,7 @@ var useChatDraftMessage = () => {
|
|
26704
26713
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
26705
26714
|
chatDraftMessage = "";
|
26706
26715
|
}
|
26707
|
-
const setDraftMessage =
|
26716
|
+
const setDraftMessage = useCallback28(
|
26708
26717
|
(message) => {
|
26709
26718
|
hmsActions.setAppData(APP_DATA.chatDraft, message, true);
|
26710
26719
|
},
|
@@ -26820,7 +26829,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26820
26829
|
}
|
26821
26830
|
}
|
26822
26831
|
}, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
|
26823
|
-
const resetInputHeight =
|
26832
|
+
const resetInputHeight = useCallback29(() => {
|
26824
26833
|
if (inputRef.current) {
|
26825
26834
|
inputRef.current.style.height = `${Math.max(
|
26826
26835
|
32,
|
@@ -26828,12 +26837,12 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26828
26837
|
)}px`;
|
26829
26838
|
}
|
26830
26839
|
}, []);
|
26831
|
-
const updateInputHeight =
|
26840
|
+
const updateInputHeight = useCallback29(() => {
|
26832
26841
|
if (inputRef.current) {
|
26833
26842
|
inputRef.current.style.height = `${Math.max(32, Math.min(inputRef.current.scrollHeight, 24 * 4))}px`;
|
26834
26843
|
}
|
26835
26844
|
}, []);
|
26836
|
-
const sendMessage =
|
26845
|
+
const sendMessage = useCallback29(() => __async(void 0, null, function* () {
|
26837
26846
|
var _a8;
|
26838
26847
|
const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
|
26839
26848
|
if (!message || !message.trim().length) {
|
@@ -27001,7 +27010,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27001
27010
|
|
27002
27011
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
27003
27012
|
init_define_process_env();
|
27004
|
-
import React117, { useCallback as
|
27013
|
+
import React117, { useCallback as useCallback30 } from "react";
|
27005
27014
|
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions40, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
27006
27015
|
var ChatPaused = () => {
|
27007
27016
|
var _a7, _b7;
|
@@ -27010,7 +27019,7 @@ var ChatPaused = () => {
|
|
27010
27019
|
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);
|
27011
27020
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
|
27012
27021
|
const localPeer = useHMSStore60(selectLocalPeer6);
|
27013
|
-
const unPauseChat =
|
27022
|
+
const unPauseChat = useCallback30(
|
27014
27023
|
() => __async(void 0, null, function* () {
|
27015
27024
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
27016
27025
|
enabled: true,
|
@@ -27235,14 +27244,14 @@ var Chat = () => {
|
|
27235
27244
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27236
27245
|
const listRef = useRef24(null);
|
27237
27246
|
const hmsActions = useHMSActions41();
|
27238
|
-
const vanillaStore =
|
27247
|
+
const vanillaStore = useHMSVanillaStore11();
|
27239
27248
|
const { enabled: isChatEnabled = true } = useHMSStore62(Bm("chatState" /* CHAT_STATE */)) || {};
|
27240
27249
|
const isMobile = useMedia19(config.media.md);
|
27241
27250
|
const isMobileHLSStream = useMobileHLSStream();
|
27242
27251
|
const isLandscapeStream = useLandscapeHLSStream();
|
27243
27252
|
useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
|
27244
27253
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
27245
|
-
const scrollToBottom =
|
27254
|
+
const scrollToBottom = useCallback31(
|
27246
27255
|
(unreadCount = 0) => {
|
27247
27256
|
var _a8;
|
27248
27257
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
@@ -27649,7 +27658,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27649
27658
|
|
27650
27659
|
// src/Prebuilt/components/VideoTile.tsx
|
27651
27660
|
init_define_process_env();
|
27652
|
-
import React128, { useCallback as
|
27661
|
+
import React128, { useCallback as useCallback32, useMemo as useMemo14, useState as useState56 } from "react";
|
27653
27662
|
import { useMeasure as useMeasure3 } from "react-use";
|
27654
27663
|
import {
|
27655
27664
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
@@ -28165,7 +28174,7 @@ var Tile = ({
|
|
28165
28174
|
track,
|
28166
28175
|
isLocal
|
28167
28176
|
});
|
28168
|
-
const onHoverHandler =
|
28177
|
+
const onHoverHandler = useCallback32((event) => {
|
28169
28178
|
setIsMouseHovered(event.type === "mouseenter");
|
28170
28179
|
}, []);
|
28171
28180
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
|
@@ -28924,7 +28933,7 @@ var PreviewJoin = ({
|
|
28924
28933
|
});
|
28925
28934
|
const { requestPermission } = useAwayNotifications2();
|
28926
28935
|
const roomState = useHMSStore72(selectRoomState5);
|
28927
|
-
const savePreferenceAndJoin =
|
28936
|
+
const savePreferenceAndJoin = useCallback33(() => {
|
28928
28937
|
setPreviewPreference({
|
28929
28938
|
name
|
28930
28939
|
});
|
@@ -29170,7 +29179,7 @@ import {
|
|
29170
29179
|
selectPeerScreenSharing as selectPeerScreenSharing2,
|
29171
29180
|
selectWhiteboard as selectWhiteboard2,
|
29172
29181
|
useHMSStore as useHMSStore80,
|
29173
|
-
useHMSVanillaStore as
|
29182
|
+
useHMSVanillaStore as useHMSVanillaStore13
|
29174
29183
|
} from "@100mslive/react-sdk";
|
29175
29184
|
|
29176
29185
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
@@ -29448,11 +29457,11 @@ import { useMeasure as useMeasure5, useMedia as useMedia29 } from "react-use";
|
|
29448
29457
|
import {
|
29449
29458
|
getPeersWithTiles,
|
29450
29459
|
selectTracksMap as selectTracksMap4,
|
29451
|
-
useHMSVanillaStore as
|
29460
|
+
useHMSVanillaStore as useHMSVanillaStore12
|
29452
29461
|
} from "@100mslive/react-sdk";
|
29453
29462
|
var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
|
29454
29463
|
var usePagesWithTiles = ({ peers, maxTileCount }) => {
|
29455
|
-
const vanillaStore =
|
29464
|
+
const vanillaStore = useHMSVanillaStore12();
|
29456
29465
|
const tracksMap = vanillaStore.getState(selectTracksMap4);
|
29457
29466
|
const peersWithTiles = useMemo16(
|
29458
29467
|
() => getPeersWithTiles(peers, tracksMap, () => false),
|
@@ -29478,7 +29487,7 @@ var useTileLayout = ({
|
|
29478
29487
|
maxTileCount,
|
29479
29488
|
edgeToEdge = false
|
29480
29489
|
}) => {
|
29481
|
-
const vanillaStore =
|
29490
|
+
const vanillaStore = useHMSVanillaStore12();
|
29482
29491
|
const [ref, { width, height }] = useMeasure5();
|
29483
29492
|
const isMobile = useMedia29(config.media.lg);
|
29484
29493
|
const [pagesWithTiles, setPagesWithTiles] = useState59([]);
|
@@ -29851,12 +29860,12 @@ import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive
|
|
29851
29860
|
|
29852
29861
|
// src/Prebuilt/components/LayoutModeSelector.tsx
|
29853
29862
|
init_define_process_env();
|
29854
|
-
import React148, { useCallback as
|
29863
|
+
import React148, { useCallback as useCallback34, useState as useState63 } from "react";
|
29855
29864
|
import { CheckIcon as CheckIcon7, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
|
29856
29865
|
var LayoutModeSelector = () => {
|
29857
29866
|
const [open, setOpen] = useState63(false);
|
29858
29867
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
29859
|
-
const updateLayoutMode =
|
29868
|
+
const updateLayoutMode = useCallback34(
|
29860
29869
|
(value) => {
|
29861
29870
|
setLayoutMode(value);
|
29862
29871
|
setOpen(false);
|
@@ -30348,7 +30357,7 @@ var GridLayout = ({
|
|
30348
30357
|
peers,
|
30349
30358
|
pinnedTrack
|
30350
30359
|
]);
|
30351
|
-
const vanillaStore =
|
30360
|
+
const vanillaStore = useHMSVanillaStore13();
|
30352
30361
|
const [sortedPeers, setSortedPeers] = useState66(updatedPeers);
|
30353
30362
|
const peersSorter = useMemo20(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
30354
30363
|
const [pageSize, setPageSize] = useState66(0);
|
@@ -30802,7 +30811,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30802
30811
|
};
|
30803
30812
|
|
30804
30813
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30805
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
30814
|
+
var HLSView = React157.lazy(() => import("./HLSView-FAZNEBL5.js"));
|
30806
30815
|
var VideoStreamingSection = ({
|
30807
30816
|
screenType,
|
30808
30817
|
elements,
|
@@ -31135,9 +31144,9 @@ var Header2 = () => {
|
|
31135
31144
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
31136
31145
|
init_define_process_env();
|
31137
31146
|
import { useEffect as useEffect56 } from "react";
|
31138
|
-
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as
|
31147
|
+
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
|
31139
31148
|
var PreviousRoleInMetadata = () => {
|
31140
|
-
const vanillaStore =
|
31149
|
+
const vanillaStore = useHMSVanillaStore14();
|
31141
31150
|
const { updateMetaData } = useMyMetadata();
|
31142
31151
|
useEffect56(() => {
|
31143
31152
|
let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
|
@@ -31468,7 +31477,7 @@ import {
|
|
31468
31477
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
31469
31478
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
31470
31479
|
useHMSActions as useHMSActions50,
|
31471
|
-
useHMSVanillaStore as
|
31480
|
+
useHMSVanillaStore as useHMSVanillaStore15
|
31472
31481
|
} from "@100mslive/react-sdk";
|
31473
31482
|
var isEvenListenersAttached = false;
|
31474
31483
|
var _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind;
|
@@ -31555,7 +31564,7 @@ _keyDownHandler = new WeakMap();
|
|
31555
31564
|
_bind = new WeakMap();
|
31556
31565
|
_unbind = new WeakMap();
|
31557
31566
|
var KeyboardHandler = () => {
|
31558
|
-
const store =
|
31567
|
+
const store = useHMSVanillaStore15();
|
31559
31568
|
const actions = useHMSActions50();
|
31560
31569
|
useEffect60(() => {
|
31561
31570
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
@@ -31579,10 +31588,10 @@ import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, use
|
|
31579
31588
|
|
31580
31589
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
31581
31590
|
init_define_process_env();
|
31582
|
-
import { useCallback as
|
31591
|
+
import { useCallback as useCallback35 } from "react";
|
31583
31592
|
var useRedirectToLeave = () => {
|
31584
31593
|
const { onLeave } = useHMSPrebuiltContext();
|
31585
|
-
const redirect =
|
31594
|
+
const redirect = useCallback35(
|
31586
31595
|
(timeout = 0) => {
|
31587
31596
|
setTimeout(() => {
|
31588
31597
|
PictureInPicture.stop().catch(() => console.error("stopping pip"));
|
@@ -31747,7 +31756,7 @@ init_define_process_env();
|
|
31747
31756
|
|
31748
31757
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
31749
31758
|
init_define_process_env();
|
31750
|
-
import React176, { useCallback as
|
31759
|
+
import React176, { useCallback as useCallback37, useEffect as useEffect73 } from "react";
|
31751
31760
|
import {
|
31752
31761
|
HMSNotificationTypes as HMSNotificationTypes11,
|
31753
31762
|
HMSRoomState as HMSRoomState10,
|
@@ -31759,7 +31768,7 @@ import {
|
|
31759
31768
|
useCustomEvent as useCustomEvent4,
|
31760
31769
|
useHMSNotifications as useHMSNotifications11,
|
31761
31770
|
useHMSStore as useHMSStore93,
|
31762
|
-
useHMSVanillaStore as
|
31771
|
+
useHMSVanillaStore as useHMSVanillaStore17
|
31763
31772
|
} from "@100mslive/react-sdk";
|
31764
31773
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
31765
31774
|
|
@@ -31838,7 +31847,7 @@ import {
|
|
31838
31847
|
useAwayNotifications as useAwayNotifications4,
|
31839
31848
|
useHMSNotifications as useHMSNotifications2,
|
31840
31849
|
useHMSStore as useHMSStore92,
|
31841
|
-
useHMSVanillaStore as
|
31850
|
+
useHMSVanillaStore as useHMSVanillaStore16
|
31842
31851
|
} from "@100mslive/react-sdk";
|
31843
31852
|
|
31844
31853
|
// src/Prebuilt/components/Toast/ToastBatcher.js
|
@@ -31846,7 +31855,7 @@ init_define_process_env();
|
|
31846
31855
|
|
31847
31856
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
31848
31857
|
init_define_process_env();
|
31849
|
-
import React169, { useCallback as
|
31858
|
+
import React169, { useCallback as useCallback36 } from "react";
|
31850
31859
|
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions51, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
|
31851
31860
|
import {
|
31852
31861
|
ChatUnreadIcon as ChatUnreadIcon2,
|
@@ -31877,7 +31886,7 @@ var HandRaiseAction = React169.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
31877
31886
|
off_stage_roles = [],
|
31878
31887
|
skip_preview_for_role_change = false
|
31879
31888
|
} = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
|
31880
|
-
const onClickHandler =
|
31889
|
+
const onClickHandler = useCallback36(() => __async(void 0, null, function* () {
|
31881
31890
|
if (isSingleHandRaise) {
|
31882
31891
|
hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
31883
31892
|
if (skip_preview_for_role_change) {
|
@@ -32079,7 +32088,7 @@ var HandRaisedNotifications = () => {
|
|
32079
32088
|
var _a7, _b7;
|
32080
32089
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
32081
32090
|
const roomState = useHMSStore92(selectRoomState9);
|
32082
|
-
const vanillaStore =
|
32091
|
+
const vanillaStore = useHMSVanillaStore16();
|
32083
32092
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
32084
32093
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
32085
32094
|
const amIScreenSharing = useHMSStore92(selectIsLocalScreenShared3);
|
@@ -32499,13 +32508,13 @@ function Notifications() {
|
|
32499
32508
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
32500
32509
|
const isNotificationDisabled = useIsNotificationDisabled();
|
32501
32510
|
const screenProps = useRoomLayoutConferencingScreen();
|
32502
|
-
const vanillaStore =
|
32511
|
+
const vanillaStore = useHMSVanillaStore17();
|
32503
32512
|
const togglePollView = usePollViewToggle();
|
32504
32513
|
const { showNotification } = useAwayNotifications5();
|
32505
32514
|
const amIScreenSharing = useHMSStore93(selectIsLocalScreenShared4);
|
32506
32515
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
32507
32516
|
const { pipWindow } = usePIPWindow();
|
32508
|
-
const handleRoleChangeDenied =
|
32517
|
+
const handleRoleChangeDenied = useCallback37((request) => {
|
32509
32518
|
ToastManager.addToast({
|
32510
32519
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
32511
32520
|
variant: "error"
|
@@ -32634,17 +32643,17 @@ function Notifications() {
|
|
32634
32643
|
|
32635
32644
|
// src/Prebuilt/components/PIP/PIPProvider.tsx
|
32636
32645
|
init_define_process_env();
|
32637
|
-
import React177, { useCallback as
|
32646
|
+
import React177, { useCallback as useCallback38, useMemo as useMemo22, useState as useState76 } from "react";
|
32638
32647
|
var PIPProvider = ({ children }) => {
|
32639
32648
|
const isSupported = "documentPictureInPicture" in window;
|
32640
32649
|
const [pipWindow, setPipWindow] = useState76(null);
|
32641
|
-
const closePipWindow =
|
32650
|
+
const closePipWindow = useCallback38(() => {
|
32642
32651
|
if (pipWindow != null) {
|
32643
32652
|
pipWindow.close();
|
32644
32653
|
setPipWindow(null);
|
32645
32654
|
}
|
32646
32655
|
}, [pipWindow]);
|
32647
|
-
const requestPipWindow =
|
32656
|
+
const requestPipWindow = useCallback38(
|
32648
32657
|
(width, height) => __async(void 0, null, function* () {
|
32649
32658
|
if (pipWindow != null) {
|
32650
32659
|
return;
|
@@ -32779,7 +32788,7 @@ var Sheet2 = () => {
|
|
32779
32788
|
|
32780
32789
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
32781
32790
|
init_define_process_env();
|
32782
|
-
import React183, { useCallback as
|
32791
|
+
import React183, { useCallback as useCallback39, useEffect as useEffect75, useMemo as useMemo23, useState as useState78 } from "react";
|
32783
32792
|
import { useMedia as useMedia42 } from "react-use";
|
32784
32793
|
import {
|
32785
32794
|
selectIsLargeRoom as selectIsLargeRoom4,
|
@@ -32788,7 +32797,7 @@ import {
|
|
32788
32797
|
useCustomEvent as useCustomEvent5,
|
32789
32798
|
useHMSActions as useHMSActions54,
|
32790
32799
|
useHMSStore as useHMSStore96,
|
32791
|
-
useHMSVanillaStore as
|
32800
|
+
useHMSVanillaStore as useHMSVanillaStore18
|
32792
32801
|
} from "@100mslive/react-sdk";
|
32793
32802
|
var emojiCount = 1;
|
32794
32803
|
var flyAndFade = keyframes({
|
@@ -32815,13 +32824,13 @@ var getStartingPoints = (isMobile) => {
|
|
32815
32824
|
};
|
32816
32825
|
function FlyingEmoji() {
|
32817
32826
|
const localPeerId = useHMSStore96(selectLocalPeerID17);
|
32818
|
-
const vanillaStore =
|
32827
|
+
const vanillaStore = useHMSVanillaStore18();
|
32819
32828
|
const hmsActions = useHMSActions54();
|
32820
32829
|
const [emojis, setEmojis] = useState78([]);
|
32821
32830
|
const isMobile = useMedia42(config.media.md);
|
32822
32831
|
const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
|
32823
32832
|
const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
|
32824
|
-
const showFlyingEmoji =
|
32833
|
+
const showFlyingEmoji = useCallback39(
|
32825
32834
|
(_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
|
32826
32835
|
if (!emojiId || !senderId || document.hidden) {
|
32827
32836
|
return;
|
@@ -32916,11 +32925,11 @@ function FlyingEmoji() {
|
|
32916
32925
|
|
32917
32926
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
32918
32927
|
init_define_process_env();
|
32919
|
-
import React184, { useCallback as
|
32928
|
+
import React184, { useCallback as useCallback40 } from "react";
|
32920
32929
|
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions55 } from "@100mslive/react-sdk";
|
32921
32930
|
function RemoteStopScreenshare() {
|
32922
32931
|
const actions = useHMSActions55();
|
32923
|
-
const onRemoteStopScreenshare =
|
32932
|
+
const onRemoteStopScreenshare = useCallback40(() => __async(this, null, function* () {
|
32924
32933
|
yield actions.setScreenShareEnabled(false);
|
32925
32934
|
}), [actions]);
|
32926
32935
|
useCustomEvent6({
|
@@ -32932,7 +32941,7 @@ function RemoteStopScreenshare() {
|
|
32932
32941
|
|
32933
32942
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
32934
32943
|
init_define_process_env();
|
32935
|
-
import { useCallback as
|
32944
|
+
import { useCallback as useCallback41, useEffect as useEffect76, useRef as useRef30 } from "react";
|
32936
32945
|
import {
|
32937
32946
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
32938
32947
|
selectPermissions as selectPermissions20,
|
@@ -32948,7 +32957,7 @@ var useAutoStartStreaming = () => {
|
|
32948
32957
|
const isConnected = useHMSStore97(selectIsConnectedToRoom12);
|
32949
32958
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
32950
32959
|
const streamStartedRef = useRef30(false);
|
32951
|
-
const startHLS =
|
32960
|
+
const startHLS = useCallback41(() => __async(void 0, null, function* () {
|
32952
32961
|
try {
|
32953
32962
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
32954
32963
|
return;
|
@@ -33181,7 +33190,7 @@ init_define_process_env();
|
|
33181
33190
|
|
33182
33191
|
// src/Diagnostics/Diagnostics.tsx
|
33183
33192
|
init_define_process_env();
|
33184
|
-
import React193, { useCallback as
|
33193
|
+
import React193, { useCallback as useCallback43, useRef as useRef33, useState as useState84 } from "react";
|
33185
33194
|
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions59 } from "@100mslive/react-sdk";
|
33186
33195
|
import {
|
33187
33196
|
CheckCircleIcon as CheckCircleIcon7,
|
@@ -33194,7 +33203,7 @@ import {
|
|
33194
33203
|
|
33195
33204
|
// src/Diagnostics/AudioTest.tsx
|
33196
33205
|
init_define_process_env();
|
33197
|
-
import React189, { useCallback as
|
33206
|
+
import React189, { useCallback as useCallback42, useEffect as useEffect78, useState as useState80 } from "react";
|
33198
33207
|
import {
|
33199
33208
|
selectDevices,
|
33200
33209
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
@@ -33458,7 +33467,7 @@ var SpeakerTest = () => {
|
|
33458
33467
|
var AudioTest = () => {
|
33459
33468
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
33460
33469
|
const [error, setErrorAlone] = useState80();
|
33461
|
-
const setError =
|
33470
|
+
const setError = useCallback42(
|
33462
33471
|
(err) => {
|
33463
33472
|
updateStep(2 /* AUDIO */, { hasFailed: !!err });
|
33464
33473
|
setErrorAlone(err);
|
@@ -33964,7 +33973,7 @@ var DiagnosticsProvider = () => {
|
|
33964
33973
|
const [activeStep, setActiveStep] = useState84(0);
|
33965
33974
|
const [steps, setSteps] = useState84(initialSteps);
|
33966
33975
|
const diagnosticsRef = useRef33(actions.initDiagnostics());
|
33967
|
-
const updateStep =
|
33976
|
+
const updateStep = useCallback43((step, value) => {
|
33968
33977
|
setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
|
33969
33978
|
}, []);
|
33970
33979
|
return /* @__PURE__ */ React193.createElement(
|
@@ -34117,4 +34126,4 @@ object-assign/index.js:
|
|
34117
34126
|
@license MIT
|
34118
34127
|
*)
|
34119
34128
|
*/
|
34120
|
-
//# sourceMappingURL=chunk-
|
34129
|
+
//# sourceMappingURL=chunk-YBCPTZFO.js.map
|