@100mslive/roomkit-react 0.3.20 → 0.3.21-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -6
- package/dist/{HLSView-E242LM6X.css → HLSView-3CVLSXRH.css} +3 -3
- package/dist/{HLSView-E242LM6X.css.map → HLSView-3CVLSXRH.css.map} +1 -1
- package/dist/{HLSView-6QAHWMQF.js → HLSView-3JERKVTE.js} +63 -47
- package/dist/HLSView-3JERKVTE.js.map +7 -0
- package/dist/Prebuilt/AppContext.d.ts +1 -1
- package/dist/Prebuilt/components/AuthToken.d.ts +1 -1
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
- package/dist/Prebuilt/components/peerTileUtils.d.ts +7 -0
- package/dist/{chunk-ACEDLM3B.js → chunk-J5FLGI2T.js} +541 -510
- package/dist/chunk-J5FLGI2T.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +608 -561
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +89 -69
- package/dist/meta.esbuild.json +101 -81
- package/package.json +7 -7
- package/src/Prebuilt/App.tsx +5 -5
- package/src/Prebuilt/AppContext.tsx +1 -1
- package/src/Prebuilt/components/AuthToken.tsx +1 -1
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +24 -4
- package/src/Prebuilt/components/Header/common.jsx +5 -3
- package/src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx +13 -3
- package/src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx +1 -1
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +1 -1
- package/src/Prebuilt/components/ScreenshareTile.tsx +2 -2
- package/src/Prebuilt/components/Settings/SettingsModal.jsx +1 -2
- package/src/Prebuilt/components/TileMenu/TileMenu.tsx +7 -6
- package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +3 -3
- package/src/Prebuilt/components/VideoLayouts/EqualProminence.tsx +4 -2
- package/src/Prebuilt/components/VideoTile.tsx +2 -2
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +13 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +3 -2
- package/src/Prebuilt/components/{peerTileUtils.jsx → peerTileUtils.tsx} +21 -6
- package/src/Prebuilt/layouts/HLSView.jsx +2 -5
- package/dist/HLSView-6QAHWMQF.js.map +0 -7
- package/dist/chunk-ACEDLM3B.js.map +0 -7
package/dist/index.cjs.js
CHANGED
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
109
109
|
var define_process_env_default;
|
110
110
|
var init_define_process_env = __esm({
|
111
111
|
"<define:process.env>"() {
|
112
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ec11c631-e485-4f51-9c26-bb717e858271", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.10", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.20", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ec11c631-e485-4f51-9c26-bb717e858271", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.20", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "608", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240908.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.7/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18964", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.20", 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: "10924413428", 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: "da50781c2357d6201da1c94dcfef574a0081e2dc", 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: "6a550264188b60ad5b210e7360722db39c68e566f3b4a82fd42d283442fee345", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1726670303235-0.6943569884753475:/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--1726670303041-0.9452376450439679:/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--1726670277486-0.9961146939722547:/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--1726670277275-0.7350963641480994:/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_935d062f-73ee-4fb4-a130-ccb29bb267a6", INVOCATION_ID: "f6689711720b4bc8a234afc9b66d7530", 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: "674", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 361", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.20", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.20", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "da50781c2357d6201da1c94dcfef574a0081e2dc", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_ec11c631-e485-4f51-9c26-bb717e858271", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_ec11c631-e485-4f51-9c26-bb717e858271", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.1.12297006", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ec11c631-e485-4f51-9c26-bb717e858271" };
|
112
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_2fd49eb0-2158-4741-b970-37de932b0d4e", 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.11-alpha.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.21-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_2fd49eb0-2158-4741-b970-37de932b0d4e", 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.21-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "613", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240915.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.7/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:5326", 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.21-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10992692463", 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: "0a20a1cccaa0c7d4b42eaee308d1132efb938bb2", 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: "1fabd1a9e22a4ded73444263fe5b4dc9dbb53af8228251c4eaf963d5af8723aa", 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--1727088432167-0.12323804271835304:/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--1727088431972-0.8217328614932575:/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--1727088406198-0.5045339109208111:/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--1727088406021-0.6566894725083408:/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_9f9b5346-06e9-4eae-8420-7d97ae27986c", INVOCATION_ID: "c3bae4d11f8e45f0a2f02b86cbe7dd1f", 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: "676", 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 281", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.21-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.21-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "0a20a1cccaa0c7d4b42eaee308d1132efb938bb2", 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_2fd49eb0-2158-4741-b970-37de932b0d4e", 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_2fd49eb0-2158-4741-b970-37de932b0d4e", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.1.12297006", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.189/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_2fd49eb0-2158-4741-b970-37de932b0d4e" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -2644,8 +2644,8 @@ var init_useBorderAudioLevel = __esm({
|
|
2644
2644
|
import_react19 = require("react");
|
2645
2645
|
import_react_sdk3 = require("@100mslive/react-sdk");
|
2646
2646
|
init_Theme();
|
2647
|
-
sigmoid = (
|
2648
|
-
return 1 / (1 + Math.exp(-
|
2647
|
+
sigmoid = (z) => {
|
2648
|
+
return 1 / (1 + Math.exp(-z));
|
2649
2649
|
};
|
2650
2650
|
}
|
2651
2651
|
});
|
@@ -2800,11 +2800,11 @@ var init_formatBytes = __esm({
|
|
2800
2800
|
return "-";
|
2801
2801
|
}
|
2802
2802
|
const k = 1024;
|
2803
|
-
const
|
2803
|
+
const dm = decimals < 0 ? 0 : decimals;
|
2804
2804
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
2805
2805
|
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
2806
2806
|
i === 0 && i++;
|
2807
|
-
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(
|
2807
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;
|
2808
2808
|
};
|
2809
2809
|
}
|
2810
2810
|
});
|
@@ -10395,6 +10395,15 @@ var init_VBHandler = __esm({
|
|
10395
10395
|
this.effectsPlugin = void 0;
|
10396
10396
|
this.hmsPlugin = void 0;
|
10397
10397
|
};
|
10398
|
+
this.isBlurSupported = () => {
|
10399
|
+
if ((isSafari || isIOS) && this.hmsPlugin) {
|
10400
|
+
return false;
|
10401
|
+
}
|
10402
|
+
if (this.effectsPlugin) {
|
10403
|
+
return true;
|
10404
|
+
}
|
10405
|
+
return false;
|
10406
|
+
};
|
10398
10407
|
this.isEffectsSupported = () => {
|
10399
10408
|
var _a7, _b7;
|
10400
10409
|
if (!isSafari) {
|
@@ -11950,7 +11959,6 @@ var init_SettingsModal = __esm({
|
|
11950
11959
|
{
|
11951
11960
|
direction: "column",
|
11952
11961
|
css: {
|
11953
|
-
px: "$8",
|
11954
11962
|
pb: "$8",
|
11955
11963
|
overflowY: "auto"
|
11956
11964
|
}
|
@@ -11968,7 +11976,7 @@ var init_SettingsModal = __esm({
|
|
11968
11976
|
css: {
|
11969
11977
|
all: "unset",
|
11970
11978
|
fontFamily: "$sans",
|
11971
|
-
|
11979
|
+
p: "$10 $8",
|
11972
11980
|
display: "flex",
|
11973
11981
|
alignItems: "center",
|
11974
11982
|
fontSize: "$sm",
|
@@ -18282,7 +18290,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
18282
18290
|
if (typeof c2 !== "object" || c2.mandatory || c2.optional) {
|
18283
18291
|
return c2;
|
18284
18292
|
}
|
18285
|
-
const
|
18293
|
+
const cc = {};
|
18286
18294
|
Object.keys(c2).forEach((key) => {
|
18287
18295
|
if (key === "require" || key === "advanced" || key === "mediaSource") {
|
18288
18296
|
return;
|
@@ -18298,35 +18306,35 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
18298
18306
|
return name === "deviceId" ? "sourceId" : name;
|
18299
18307
|
};
|
18300
18308
|
if (r.ideal !== void 0) {
|
18301
|
-
|
18309
|
+
cc.optional = cc.optional || [];
|
18302
18310
|
let oc = {};
|
18303
18311
|
if (typeof r.ideal === "number") {
|
18304
18312
|
oc[oldname_("min", key)] = r.ideal;
|
18305
|
-
|
18313
|
+
cc.optional.push(oc);
|
18306
18314
|
oc = {};
|
18307
18315
|
oc[oldname_("max", key)] = r.ideal;
|
18308
|
-
|
18316
|
+
cc.optional.push(oc);
|
18309
18317
|
} else {
|
18310
18318
|
oc[oldname_("", key)] = r.ideal;
|
18311
|
-
|
18319
|
+
cc.optional.push(oc);
|
18312
18320
|
}
|
18313
18321
|
}
|
18314
18322
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
18315
|
-
|
18316
|
-
|
18323
|
+
cc.mandatory = cc.mandatory || {};
|
18324
|
+
cc.mandatory[oldname_("", key)] = r.exact;
|
18317
18325
|
} else {
|
18318
18326
|
["min", "max"].forEach((mix) => {
|
18319
18327
|
if (r[mix] !== void 0) {
|
18320
|
-
|
18321
|
-
|
18328
|
+
cc.mandatory = cc.mandatory || {};
|
18329
|
+
cc.mandatory[oldname_(mix, key)] = r[mix];
|
18322
18330
|
}
|
18323
18331
|
});
|
18324
18332
|
}
|
18325
18333
|
});
|
18326
18334
|
if (c2.advanced) {
|
18327
|
-
|
18335
|
+
cc.optional = (cc.optional || []).concat(c2.advanced);
|
18328
18336
|
}
|
18329
|
-
return
|
18337
|
+
return cc;
|
18330
18338
|
};
|
18331
18339
|
const shimConstraints_ = function(constraints, func) {
|
18332
18340
|
if (browserDetails.version >= 61) {
|
@@ -20540,15 +20548,15 @@ function shimSendThrowTypeError(window2) {
|
|
20540
20548
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
20541
20549
|
return;
|
20542
20550
|
}
|
20543
|
-
function wrapDcSend(
|
20544
|
-
const origDataChannelSend =
|
20545
|
-
|
20551
|
+
function wrapDcSend(dc2, pc) {
|
20552
|
+
const origDataChannelSend = dc2.send;
|
20553
|
+
dc2.send = function send() {
|
20546
20554
|
const data3 = arguments[0];
|
20547
20555
|
const length = data3.length || data3.size || data3.byteLength;
|
20548
|
-
if (
|
20556
|
+
if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
|
20549
20557
|
throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
|
20550
20558
|
}
|
20551
|
-
return origDataChannelSend.apply(
|
20559
|
+
return origDataChannelSend.apply(dc2, arguments);
|
20552
20560
|
};
|
20553
20561
|
}
|
20554
20562
|
const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
|
@@ -21608,13 +21616,13 @@ function ci(a2, e = 300) {
|
|
21608
21616
|
function R(a2) {
|
21609
21617
|
return (e) => (t) => a2(t, e);
|
21610
21618
|
}
|
21611
|
-
function
|
21619
|
+
function Qm(a2) {
|
21612
21620
|
return (e) => {
|
21613
21621
|
if (e.sessionStore)
|
21614
21622
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
21615
21623
|
};
|
21616
21624
|
}
|
21617
|
-
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, jt, import_eventemitter24, import_uuid9, import_uuid10, Za, eo, to, ti, ns, cs, os,
|
21625
|
+
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, jt, import_eventemitter24, import_uuid9, import_uuid10, Za, eo, to, ti, ns, cs, os, m, y, gr, so, c, yr, Tr, ao, ds, fr, ls, hs, no, l, he, B, ms, Be, lo, dc, Ss, gs, ys, Ts, fs, ks, Es, Qe, P4, f, po, S, Mr, Ps, me, ai, As, Rs, C, E, Er, Y, Pr, br, Hr, ws, Ds, _s, Ns, Os, Cr, xs, Lr, Fs, wr, Gs, Dr, _r, Ks, qs, Pt, rt, V, No, em, tm, j, Mi, ta, O, Wr, Oo, Oe, sm, xo, fe, Uo, ie, Ee, am, om, ne, X, Bo, ra, nm, cm, Kr, Vo, lm, um, pm, hm, mm, Sm, gm, Tm, Rt, Fo, fm, re, aa, vm, Mm, ve, ym, at, Go, oa, km, na, Em, Pm, bm, Im, Am, Rm, Hm, Cm, Lm, wm, ca, Om, Wo, xm, la, qr, ua, pa, ha, ma, Sa, ga, Ta, fa, Ht, b, jr, Ct, va, $o, Ko, J, Jr, qo, jo, Jo, Qo, zo, Z, Jm, Ym, Xm, yi, Ma, Zm, eS, tS, Yo, Xo, rS, ya, sS, Zo, aS, oS, nS, cS, dS, lS, ka, Ea, pS, hS, Pa, mS, SS, ba, gS, TS, fS, Ia, Aa, en, tn, rn, vS, MS, yS, kS, ES, Ra, NS, sn, OS, xS, US, on, nn, ln, Zr, be, Vt, Q, sr, lt, Cn, Ln, wn, Dn, Ya, _n, Xa, rs, Ae, Nn, On, xn, Un, Bn, Vn, Fn, Gn, Wn, $n, ss, Kn, qn, jn, Jn, Qn, zn;
|
21618
21626
|
var init_dist = __esm({
|
21619
21627
|
"../hms-video-store/dist/index.js"() {
|
21620
21628
|
"use strict";
|
@@ -21649,7 +21657,7 @@ var init_dist = __esm({
|
|
21649
21657
|
ns = Object.prototype.hasOwnProperty;
|
21650
21658
|
cs = Object.prototype.propertyIsEnumerable;
|
21651
21659
|
os = (a2, e, t) => e in a2 ? Za(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21652
|
-
|
21660
|
+
m = (a2, e) => {
|
21653
21661
|
for (var t in e || (e = {}))
|
21654
21662
|
ns.call(e, t) && os(a2, t, e[t]);
|
21655
21663
|
if (ti)
|
@@ -21657,7 +21665,7 @@ var init_dist = __esm({
|
|
21657
21665
|
cs.call(e, t) && os(a2, t, e[t]);
|
21658
21666
|
return a2;
|
21659
21667
|
};
|
21660
|
-
|
21668
|
+
y = (a2, e) => eo(a2, to(e));
|
21661
21669
|
gr = (a2, e) => {
|
21662
21670
|
var t = {};
|
21663
21671
|
for (var i in a2)
|
@@ -21684,8 +21692,8 @@ var init_dist = __esm({
|
|
21684
21692
|
}, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
|
21685
21693
|
n((t = t.apply(a2, e)).next());
|
21686
21694
|
});
|
21687
|
-
yr = so((
|
21688
|
-
mo.exports = { version: "0.12.
|
21695
|
+
yr = so((Nc, mo) => {
|
21696
|
+
mo.exports = { version: "0.12.21-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
21689
21697
|
});
|
21690
21698
|
Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
|
21691
21699
|
ao = ((e) => (e.CHAT = "chat", e))(ao || {});
|
@@ -21764,7 +21772,7 @@ var init_dist = __esm({
|
|
21764
21772
|
B = typeof window != "undefined";
|
21765
21773
|
Be = typeof window == "undefined" && !((ms = he.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
21766
21774
|
lo = () => !Be;
|
21767
|
-
|
21775
|
+
dc = lo();
|
21768
21776
|
ys = (gs = (Ss = he.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase().includes("safari");
|
21769
21777
|
ks = ((fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase()) === "firefox";
|
21770
21778
|
Es = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Es || {});
|
@@ -21972,115 +21980,115 @@ var init_dist = __esm({
|
|
21972
21980
|
};
|
21973
21981
|
As = yr().version;
|
21974
21982
|
Rs = (a2, e = ",") => Object.keys(a2).filter((t) => ce(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21975
|
-
|
21983
|
+
C = class {
|
21976
21984
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21977
21985
|
this.metadata = { peer: {}, userAgent: vt() };
|
21978
21986
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = ai();
|
21979
21987
|
}
|
21980
21988
|
toSignalParams() {
|
21981
|
-
return { name: this.name, info:
|
21989
|
+
return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21982
21990
|
}
|
21983
21991
|
};
|
21984
|
-
|
21992
|
+
E = class {
|
21985
21993
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
21986
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(
|
21987
|
-
return new
|
21994
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(y(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
21995
|
+
return new C({ name: o, level: n, properties: d });
|
21988
21996
|
}
|
21989
21997
|
static disconnect(e, t) {
|
21990
21998
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
21991
|
-
return new
|
21999
|
+
return new C({ name: i, level: r, properties: s });
|
21992
22000
|
}
|
21993
22001
|
static preview(i) {
|
21994
22002
|
var r = i, { error: e } = r, t = gr(r, ["error"]);
|
21995
22003
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
21996
|
-
return new
|
22004
|
+
return new C({ name: s, level: o, properties: n });
|
21997
22005
|
}
|
21998
22006
|
static join(i) {
|
21999
22007
|
var r = i, { error: e } = r, t = gr(r, ["error"]);
|
22000
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
22001
|
-
return new
|
22008
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
22009
|
+
return new C({ name: s, level: o, properties: n });
|
22002
22010
|
}
|
22003
22011
|
static publish({ devices: e, settings: t, error: i }) {
|
22004
22012
|
let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
|
22005
|
-
return new
|
22013
|
+
return new C({ name: r, level: s, properties: o });
|
22006
22014
|
}
|
22007
22015
|
static hlsPlayerError(e) {
|
22008
|
-
return new
|
22016
|
+
return new C({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
|
22009
22017
|
}
|
22010
22018
|
static subscribeFail(e) {
|
22011
22019
|
let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
|
22012
|
-
return new
|
22020
|
+
return new C({ name: t, level: i, properties: r });
|
22013
22021
|
}
|
22014
22022
|
static leave() {
|
22015
|
-
return new
|
22023
|
+
return new C({ name: "leave", level: 1 });
|
22016
22024
|
}
|
22017
22025
|
static autoplayError() {
|
22018
|
-
return new
|
22026
|
+
return new C({ name: "autoplayError", level: 2 });
|
22019
22027
|
}
|
22020
22028
|
static audioPlaybackError(e) {
|
22021
|
-
return new
|
22029
|
+
return new C({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
22022
22030
|
}
|
22023
22031
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
22024
22032
|
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
22025
|
-
return new
|
22033
|
+
return new C({ name: o, level: n, properties: d });
|
22026
22034
|
}
|
22027
22035
|
static performance(e) {
|
22028
22036
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
22029
|
-
return new
|
22037
|
+
return new C({ name: t, level: i, properties: r });
|
22030
22038
|
}
|
22031
22039
|
static rtcStats(e) {
|
22032
22040
|
let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
|
22033
|
-
return new
|
22041
|
+
return new C({ name: t, level: i, properties: r });
|
22034
22042
|
}
|
22035
22043
|
static rtcStatsFailed(e) {
|
22036
22044
|
let t = "rtc.stats.failed", i = 2;
|
22037
|
-
return new
|
22045
|
+
return new C({ name: t, level: i, properties: this.getErrorProperties(e) });
|
22038
22046
|
}
|
22039
22047
|
static degradationStats(e, t) {
|
22040
22048
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
22041
22049
|
if (!t && e.degradedAt instanceof Date) {
|
22042
22050
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
22043
|
-
s =
|
22051
|
+
s = y(m({}, s), { duration: n, restoredAt: o });
|
22044
22052
|
}
|
22045
|
-
return new
|
22053
|
+
return new C({ name: i, level: r, properties: s });
|
22046
22054
|
}
|
22047
22055
|
static audioDetectionFail(e, t) {
|
22048
22056
|
let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
|
22049
|
-
return new
|
22057
|
+
return new C({ name: s, level: r, properties: i });
|
22050
22058
|
}
|
22051
22059
|
static previewNetworkQuality(e) {
|
22052
|
-
return new
|
22060
|
+
return new C({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
|
22053
22061
|
}
|
22054
22062
|
static publishStats(e) {
|
22055
|
-
return new
|
22063
|
+
return new C({ name: "publisher.stats", level: 1, properties: e });
|
22056
22064
|
}
|
22057
22065
|
static subscribeStats(e) {
|
22058
|
-
return new
|
22066
|
+
return new C({ name: "subscriber.stats", level: 1, properties: e });
|
22059
22067
|
}
|
22060
22068
|
static getKrispUsage(e) {
|
22061
|
-
return new
|
22069
|
+
return new C({ name: "krisp.usage", level: 1, properties: { duration: e } });
|
22062
22070
|
}
|
22063
22071
|
static krispStart() {
|
22064
|
-
return new
|
22072
|
+
return new C({ name: "krisp.start", level: 1 });
|
22065
22073
|
}
|
22066
22074
|
static krispStop() {
|
22067
|
-
return new
|
22075
|
+
return new C({ name: "krisp.stop", level: 1 });
|
22068
22076
|
}
|
22069
22077
|
static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
|
22070
|
-
return new
|
22078
|
+
return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ reason: i, type: t }, r) });
|
22071
22079
|
}
|
22072
22080
|
static eventNameFor(e, t) {
|
22073
22081
|
return `${e}.${t ? "success" : "failed"}`;
|
22074
22082
|
}
|
22075
22083
|
static getPropertiesWithError(e, t) {
|
22076
22084
|
let i = this.getErrorProperties(t);
|
22077
|
-
return e =
|
22085
|
+
return e = m(m({}, i), e), e;
|
22078
22086
|
}
|
22079
22087
|
static getErrorProperties(e) {
|
22080
22088
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
22081
22089
|
}
|
22082
22090
|
};
|
22083
|
-
|
22091
|
+
E.KEY_REQUESTED_AT = "requested_at", E.KEY_RESPONDED_AT = "responded_at";
|
22084
22092
|
Er = class {
|
22085
22093
|
constructor() {
|
22086
22094
|
this.storage = new me("hms-device-selection");
|
@@ -22115,18 +22123,18 @@ var init_dist = __esm({
|
|
22115
22123
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
22116
22124
|
}
|
22117
22125
|
};
|
22118
|
-
|
22126
|
+
Y = new Er();
|
22119
22127
|
Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
|
22120
22128
|
br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
|
22121
|
-
|
22129
|
+
Hr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Hr || {});
|
22122
22130
|
ws = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(ws || {});
|
22123
22131
|
Ds = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ds || {});
|
22124
22132
|
_s = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(_s || {});
|
22125
22133
|
Ns = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Ns || {});
|
22126
22134
|
Os = ((e) => (e.CAPTION = "caption", e))(Os || {});
|
22127
|
-
|
22135
|
+
Cr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Cr || {});
|
22128
22136
|
xs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(xs || {});
|
22129
|
-
|
22137
|
+
Lr = class {
|
22130
22138
|
constructor() {
|
22131
22139
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
22132
22140
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -22153,8 +22161,8 @@ var init_dist = __esm({
|
|
22153
22161
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
22154
22162
|
}
|
22155
22163
|
};
|
22156
|
-
Fs = new
|
22157
|
-
|
22164
|
+
Fs = new Lr();
|
22165
|
+
wr = class {
|
22158
22166
|
constructor() {
|
22159
22167
|
this.TAG = "[HMSResizeObserverWrapper]";
|
22160
22168
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -22181,9 +22189,9 @@ var init_dist = __esm({
|
|
22181
22189
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
22182
22190
|
}
|
22183
22191
|
};
|
22184
|
-
Gs = new
|
22185
|
-
|
22186
|
-
|
22192
|
+
Gs = new wr();
|
22193
|
+
Dr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Dr || {});
|
22194
|
+
_r = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(_r || {});
|
22187
22195
|
Ks = "https://event.100ms.live/v2/client/report";
|
22188
22196
|
qs = "https://event-nonprod.100ms.live/v2/client/report";
|
22189
22197
|
Pt = Math.pow(2, 31) - 1;
|
@@ -22192,32 +22200,32 @@ var init_dist = __esm({
|
|
22192
22200
|
rt.makePeerId = () => (0, import_uuid7.v4)();
|
22193
22201
|
V = (a2) => a2.room;
|
22194
22202
|
No = (a2) => a2.errors;
|
22195
|
-
|
22196
|
-
|
22203
|
+
em = createSelector(No, (a2) => a2.length === 0 ? null : a2.at(-1));
|
22204
|
+
tm = createSelector(V, (a2) => a2.id);
|
22197
22205
|
j = (a2) => a2.peers;
|
22198
22206
|
Mi = (a2) => a2.messages.byID;
|
22199
22207
|
ta = (a2) => a2.messages.allIDs;
|
22200
22208
|
O = (a2) => a2.tracks;
|
22201
|
-
|
22209
|
+
Wr = (a2) => a2.appData;
|
22202
22210
|
Oo = (a2) => a2.speakers;
|
22203
22211
|
Oe = createSelector([V], (a2) => a2 && a2.isConnected);
|
22204
|
-
|
22212
|
+
sm = createSelector([Oe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
22205
22213
|
xo = (a2) => a2.hideLocalPeer;
|
22206
22214
|
fe = createSelector([V, j, xo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
22207
22215
|
Uo = createSelector(O, (a2) => Object.values(a2));
|
22208
22216
|
ie = createSelector(V, j, (a2, e) => e[a2.localPeer]);
|
22209
22217
|
Ee = createSelector(V, (a2) => a2.localPeer);
|
22210
|
-
|
22211
|
-
|
22218
|
+
am = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
|
22219
|
+
om = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
|
22212
22220
|
ne = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
22213
|
-
|
22221
|
+
X = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
22214
22222
|
Bo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
22215
|
-
ra = createSelector([ne,
|
22223
|
+
ra = createSelector([ne, X, Bo], (a2, e, t) => {
|
22216
22224
|
let i = t ? [...t] : [];
|
22217
22225
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
22218
22226
|
});
|
22219
|
-
|
22220
|
-
|
22227
|
+
nm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
|
22228
|
+
cm = createSelector(j, Oo, (a2, e) => {
|
22221
22229
|
let t = Object.entries(e).sort((i, r) => {
|
22222
22230
|
var n, d;
|
22223
22231
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -22230,7 +22238,7 @@ var init_dist = __esm({
|
|
22230
22238
|
}
|
22231
22239
|
return null;
|
22232
22240
|
});
|
22233
|
-
|
22241
|
+
Kr = createSelector(ie, O, (a2, e) => {
|
22234
22242
|
let { video: t, audio: i } = Ue(e, a2);
|
22235
22243
|
return !!(t || i);
|
22236
22244
|
});
|
@@ -22244,15 +22252,15 @@ var init_dist = __esm({
|
|
22244
22252
|
}
|
22245
22253
|
return t;
|
22246
22254
|
});
|
22247
|
-
|
22248
|
-
|
22255
|
+
lm = createSelector(Vo, (a2) => !!a2);
|
22256
|
+
um = createSelector(j, O, (a2, e) => {
|
22249
22257
|
for (let t in a2) {
|
22250
22258
|
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
22251
22259
|
if (!s && r)
|
22252
22260
|
return i;
|
22253
22261
|
}
|
22254
22262
|
});
|
22255
|
-
|
22263
|
+
pm = createSelector(j, O, (a2, e) => {
|
22256
22264
|
let t = [], i = [];
|
22257
22265
|
for (let r in a2) {
|
22258
22266
|
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
@@ -22260,23 +22268,23 @@ var init_dist = __esm({
|
|
22260
22268
|
}
|
22261
22269
|
return t.concat(i);
|
22262
22270
|
});
|
22263
|
-
|
22271
|
+
hm = createSelector(j, O, (a2, e) => {
|
22264
22272
|
for (let t in e) {
|
22265
22273
|
let i = e[t];
|
22266
22274
|
if (mt(i) && ht(i) && i.peerId)
|
22267
22275
|
return a2[i.peerId];
|
22268
22276
|
}
|
22269
22277
|
});
|
22270
|
-
|
22278
|
+
mm = createSelector(j, O, (a2, e) => {
|
22271
22279
|
for (let t in e) {
|
22272
22280
|
let i = e[t];
|
22273
22281
|
if (si(i) && i.peerId)
|
22274
22282
|
return a2[i.peerId];
|
22275
22283
|
}
|
22276
22284
|
});
|
22277
|
-
|
22278
|
-
|
22279
|
-
|
22285
|
+
Sm = createSelector(Uo, (a2) => a2.filter(us));
|
22286
|
+
gm = createSelector(ta, (a2) => a2.length);
|
22287
|
+
Tm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22280
22288
|
Rt = createSelector(ta, Mi, (a2, e) => {
|
22281
22289
|
let t = [];
|
22282
22290
|
return a2.forEach((i) => {
|
@@ -22287,51 +22295,51 @@ var init_dist = __esm({
|
|
22287
22295
|
var t;
|
22288
22296
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22289
22297
|
}));
|
22290
|
-
|
22298
|
+
fm = createSelector(Fo, (a2) => a2.filter((e) => !e.read).length);
|
22291
22299
|
re = createSelector([V], (a2) => a2 && a2.roomState);
|
22292
22300
|
aa = createSelector(re, (a2) => a2 === "Preview");
|
22293
|
-
|
22294
|
-
|
22301
|
+
vm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
|
22302
|
+
Mm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22295
22303
|
ve = (a2) => a2.roles;
|
22296
|
-
|
22304
|
+
ym = createSelector([ve], (a2) => Object.keys(a2));
|
22297
22305
|
at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22298
22306
|
Go = (a2) => {
|
22299
22307
|
var e;
|
22300
22308
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22301
22309
|
};
|
22302
22310
|
oa = createSelector([Go, ve], (a2, e) => a2 ? e[a2] : null);
|
22303
|
-
|
22311
|
+
km = createSelector([at], (a2) => {
|
22304
22312
|
var e;
|
22305
22313
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
22306
22314
|
});
|
22307
22315
|
na = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
|
22308
|
-
|
22309
|
-
|
22310
|
-
|
22311
|
-
|
22312
|
-
|
22313
|
-
|
22314
|
-
|
22315
|
-
|
22316
|
-
|
22317
|
-
|
22316
|
+
Em = createSelector(V, (a2) => a2.recording);
|
22317
|
+
Pm = createSelector(V, (a2) => a2.rtmp);
|
22318
|
+
bm = createSelector(V, (a2) => a2.hls);
|
22319
|
+
Im = createSelector(V, (a2) => a2.transcriptions);
|
22320
|
+
Am = createSelector(V, (a2) => a2.sessionId);
|
22321
|
+
Rm = createSelector(V, (a2) => a2.startedAt);
|
22322
|
+
Hm = createSelector(V, (a2) => !!a2.isLargeRoom);
|
22323
|
+
Cm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
|
22324
|
+
Lm = createSelector(V, (a2) => !!a2.isVBEnabled);
|
22325
|
+
wm = createSelector(V, (a2) => a2.effectsKey);
|
22318
22326
|
ca = (a2) => a2.polls;
|
22319
|
-
|
22327
|
+
Om = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
|
22320
22328
|
Wo = (a2) => a2.whiteboards;
|
22321
|
-
|
22329
|
+
xm = createSelector(Wo, (a2) => Object.values(a2)[0]);
|
22322
22330
|
la = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22323
|
-
|
22331
|
+
qr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22324
22332
|
ua = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22325
22333
|
pa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22326
22334
|
ha = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22327
22335
|
ma = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22328
22336
|
Sa = (a2 = "audio") => createSelector(la(a2), (e) => Object.values(e));
|
22329
|
-
ga = (a2 = "audio") => createSelector(la(a2),
|
22337
|
+
ga = (a2 = "audio") => createSelector(la(a2), qr(a2), (e, t) => {
|
22330
22338
|
if (t.id)
|
22331
22339
|
return e[t.id];
|
22332
22340
|
});
|
22333
|
-
Ta = { selection:
|
22334
|
-
fa = { selection:
|
22341
|
+
Ta = { selection: qr("audio"), progress: ua("audio"), currentTime: pa("audio"), playbackRate: ha("audio"), volume: ma("audio"), list: Sa("audio"), selectedItem: ga("audio") };
|
22342
|
+
fa = { selection: qr("video"), progress: ua("video"), currentTime: pa("video"), playbackRate: ha("video"), volume: ma("video"), list: Sa("video"), selectedItem: ga("video") };
|
22335
22343
|
Ht = "HMS-Store:";
|
22336
22344
|
b = class {
|
22337
22345
|
static v(e, ...t) {
|
@@ -22399,13 +22407,13 @@ var init_dist = __esm({
|
|
22399
22407
|
}
|
22400
22408
|
};
|
22401
22409
|
b.level = 0;
|
22402
|
-
|
22410
|
+
jr = (a2, e) => e;
|
22403
22411
|
Ct = (a2, e) => e;
|
22404
22412
|
va = (a2, e) => e;
|
22405
22413
|
$o = (a2, e) => e;
|
22406
22414
|
Ko = (a2, e) => e;
|
22407
|
-
J = createSelector([j,
|
22408
|
-
|
22415
|
+
J = createSelector([j, jr], (a2, e) => e ? a2[e] : null);
|
22416
|
+
Jr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
|
22409
22417
|
qo = createSelector([O, Ct], (a2, e) => {
|
22410
22418
|
if (!e)
|
22411
22419
|
return null;
|
@@ -22431,18 +22439,18 @@ var init_dist = __esm({
|
|
22431
22439
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22432
22440
|
});
|
22433
22441
|
zo = createSelector([ca, Ko], (a2, e) => e ? a2[e] : null);
|
22434
|
-
|
22435
|
-
|
22442
|
+
Z = R(J);
|
22443
|
+
Jm = R(createSelector([Wr, $o], (a2, e) => {
|
22436
22444
|
if (a2)
|
22437
22445
|
return e ? a2[e] : a2;
|
22438
22446
|
}));
|
22439
|
-
|
22440
|
-
|
22441
|
-
yi = R(
|
22447
|
+
Ym = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
22448
|
+
Xm = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.type));
|
22449
|
+
yi = R(Jr);
|
22442
22450
|
Ma = R(qo);
|
22443
|
-
|
22444
|
-
|
22445
|
-
|
22451
|
+
Zm = R(jo);
|
22452
|
+
eS = R(Jo);
|
22453
|
+
tS = R(Qo);
|
22446
22454
|
Yo = R((a2, e) => {
|
22447
22455
|
let t = J(a2, e);
|
22448
22456
|
if (t && t.videoTrack && t.videoTrack !== "")
|
@@ -22453,43 +22461,43 @@ var init_dist = __esm({
|
|
22453
22461
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22454
22462
|
return a2.tracks[t.audioTrack];
|
22455
22463
|
});
|
22456
|
-
|
22464
|
+
rS = R((a2, e) => {
|
22457
22465
|
let t = J(a2, e);
|
22458
22466
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22459
22467
|
});
|
22460
22468
|
ya = (a2, e) => e ? a2.speakers[e] : null;
|
22461
|
-
|
22469
|
+
sS = R(createSelector(ya, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22462
22470
|
Zo = (a2, e) => {
|
22463
22471
|
let t = Xo(e)(a2);
|
22464
22472
|
return ya(a2, t == null ? void 0 : t.id);
|
22465
22473
|
};
|
22466
|
-
|
22467
|
-
|
22474
|
+
aS = R(createSelector(Zo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22475
|
+
oS = R((a2, e) => {
|
22468
22476
|
if (e)
|
22469
22477
|
return a2.connectionQualities[e];
|
22470
22478
|
});
|
22471
|
-
|
22479
|
+
nS = R((a2, e) => {
|
22472
22480
|
let t = J(a2, e);
|
22473
22481
|
if (t) {
|
22474
22482
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
|
22475
22483
|
return i ? a2.tracks[i] : void 0;
|
22476
22484
|
}
|
22477
22485
|
});
|
22478
|
-
|
22486
|
+
cS = R(createSelector(O, J, (a2, e) => {
|
22479
22487
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22480
22488
|
let r = a2[i];
|
22481
22489
|
return mt(r) && ht(r);
|
22482
22490
|
});
|
22483
22491
|
return t ? a2[t] : void 0;
|
22484
22492
|
}));
|
22485
|
-
|
22493
|
+
dS = R(createSelector(O, J, (a2, e) => {
|
22486
22494
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22487
22495
|
let r = a2[i];
|
22488
22496
|
return mt(r) && pt(r);
|
22489
22497
|
});
|
22490
22498
|
return t ? a2[t] : void 0;
|
22491
22499
|
}));
|
22492
|
-
|
22500
|
+
lS = R(createSelector(O, J, (a2, e) => {
|
22493
22501
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22494
22502
|
let r = a2[i];
|
22495
22503
|
return si(r) && pt(r);
|
@@ -22498,11 +22506,11 @@ var init_dist = __esm({
|
|
22498
22506
|
}));
|
22499
22507
|
ka = R(createSelector(O, J, (a2, e) => Ue(a2, e)));
|
22500
22508
|
Ea = (a2) => createSelector(ka(a2), (e) => e.audio);
|
22501
|
-
|
22509
|
+
pS = R((a2, e) => {
|
22502
22510
|
let t = J(a2, e);
|
22503
22511
|
return je(a2, t == null ? void 0 : t.audioTrack);
|
22504
22512
|
});
|
22505
|
-
|
22513
|
+
hS = R((a2, e) => {
|
22506
22514
|
let t = J(a2, e);
|
22507
22515
|
return je(a2, t == null ? void 0 : t.videoTrack);
|
22508
22516
|
});
|
@@ -22510,16 +22518,16 @@ var init_dist = __esm({
|
|
22510
22518
|
if (e && a2.tracks[e])
|
22511
22519
|
return a2.tracks[e].volume === 0;
|
22512
22520
|
});
|
22513
|
-
|
22521
|
+
mS = R((a2, e) => {
|
22514
22522
|
let t = J(a2, e);
|
22515
22523
|
return Pa(t == null ? void 0 : t.audioTrack)(a2);
|
22516
22524
|
});
|
22517
|
-
|
22525
|
+
SS = R((a2, e) => {
|
22518
22526
|
let t = Ea(e)(a2);
|
22519
22527
|
return Pa(t == null ? void 0 : t.id)(a2);
|
22520
22528
|
});
|
22521
22529
|
ba = R((a2, e) => {
|
22522
|
-
let t =
|
22530
|
+
let t = Jr(a2, e);
|
22523
22531
|
if (t) {
|
22524
22532
|
if (t.type !== "audio") {
|
22525
22533
|
b.w("Please pass audio track here");
|
@@ -22528,16 +22536,16 @@ var init_dist = __esm({
|
|
22528
22536
|
return t.volume;
|
22529
22537
|
}
|
22530
22538
|
});
|
22531
|
-
|
22539
|
+
gS = R((a2, e) => {
|
22532
22540
|
let t = J(a2, e);
|
22533
22541
|
return ba(t == null ? void 0 : t.audioTrack)(a2);
|
22534
22542
|
});
|
22535
|
-
|
22543
|
+
TS = R((a2, e) => {
|
22536
22544
|
let t = Ea(e)(a2);
|
22537
22545
|
return ba(t == null ? void 0 : t.id)(a2);
|
22538
22546
|
});
|
22539
|
-
|
22540
|
-
let t =
|
22547
|
+
fS = R((a2, e) => {
|
22548
|
+
let t = Jr(a2, e);
|
22541
22549
|
if (t) {
|
22542
22550
|
if (t.type !== "video") {
|
22543
22551
|
b.w("Please pass video track here");
|
@@ -22546,7 +22554,7 @@ var init_dist = __esm({
|
|
22546
22554
|
return t.layer;
|
22547
22555
|
}
|
22548
22556
|
});
|
22549
|
-
Ia = createSelector([Rt, Ee,
|
22557
|
+
Ia = createSelector([Rt, Ee, jr], (a2, e, t) => {
|
22550
22558
|
if (t)
|
22551
22559
|
return a2.filter((i) => {
|
22552
22560
|
var r;
|
@@ -22565,22 +22573,22 @@ var init_dist = __esm({
|
|
22565
22573
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22566
22574
|
}));
|
22567
22575
|
tn = createSelector([Aa, va], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22568
|
-
rn = createSelector([Ia,
|
22569
|
-
|
22570
|
-
|
22571
|
-
|
22572
|
-
|
22573
|
-
|
22576
|
+
rn = createSelector([Ia, jr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22577
|
+
vS = createSelector(en, (a2) => a2.filter((e) => !e.read).length);
|
22578
|
+
MS = R(Ia);
|
22579
|
+
yS = R(Aa);
|
22580
|
+
kS = R(tn);
|
22581
|
+
ES = R(rn);
|
22574
22582
|
Ra = R(zo);
|
22575
|
-
|
22583
|
+
NS = createSelector([j, O], (a2, e) => Object.values(a2).map((i) => {
|
22576
22584
|
var r;
|
22577
22585
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22578
22586
|
}));
|
22579
22587
|
sn = (a2) => a2.roleChangeRequests[0] || null;
|
22580
|
-
|
22581
|
-
|
22582
|
-
|
22583
|
-
on = createSelector([
|
22588
|
+
OS = createSelector([sn, j, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22589
|
+
xS = createSelector([at], (a2) => St(a2));
|
22590
|
+
US = createSelector([oa], (a2) => St(a2));
|
22591
|
+
on = createSelector([X, O], (a2, e) => {
|
22584
22592
|
let t = null;
|
22585
22593
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22586
22594
|
});
|
@@ -22589,7 +22597,7 @@ var init_dist = __esm({
|
|
22589
22597
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22590
22598
|
});
|
22591
22599
|
ln = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(ln || {});
|
22592
|
-
|
22600
|
+
Zr = class {
|
22593
22601
|
constructor() {
|
22594
22602
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22595
22603
|
this.failedEvents = new me("client-events");
|
@@ -22634,7 +22642,7 @@ var init_dist = __esm({
|
|
22634
22642
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22635
22643
|
}
|
22636
22644
|
};
|
22637
|
-
be = new
|
22645
|
+
be = new Zr();
|
22638
22646
|
Vt = class {
|
22639
22647
|
static handleError(e) {
|
22640
22648
|
if (e.status === 404)
|
@@ -22645,7 +22653,7 @@ var init_dist = __esm({
|
|
22645
22653
|
static sendFeedback(s) {
|
22646
22654
|
return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
|
22647
22655
|
l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
|
22648
|
-
let o = new URL("v2/client/feedback", t), n =
|
22656
|
+
let o = new URL("v2/client/feedback", t), n = y(m({}, i), { payload: r });
|
22649
22657
|
try {
|
22650
22658
|
let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
|
22651
22659
|
try {
|
@@ -22665,62 +22673,62 @@ var init_dist = __esm({
|
|
22665
22673
|
Q = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(Q || {});
|
22666
22674
|
sr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(sr || {});
|
22667
22675
|
lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
|
22668
|
-
|
22669
|
-
|
22670
|
-
|
22671
|
-
|
22676
|
+
Cn = (a2) => a2.localPeer.id;
|
22677
|
+
Ln = (a2) => a2.localPeer.audioTrack;
|
22678
|
+
wn = (a2) => a2.localPeer.videoTrack;
|
22679
|
+
Dn = (a2, e) => e;
|
22672
22680
|
Ya = (a2, e) => e;
|
22673
|
-
|
22681
|
+
_n = (a2) => a2.remoteTrackStats;
|
22674
22682
|
Xa = (a2) => a2.peerStats;
|
22675
22683
|
rs = (a2) => a2.localTrackStats;
|
22676
|
-
Ae = createSelector([Xa,
|
22677
|
-
|
22684
|
+
Ae = createSelector([Xa, Cn], (a2, e) => a2[e]);
|
22685
|
+
Nn = createSelector(Ae, (a2) => {
|
22678
22686
|
var e;
|
22679
22687
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22680
22688
|
});
|
22681
|
-
|
22689
|
+
On = createSelector(Ae, (a2) => {
|
22682
22690
|
var e;
|
22683
22691
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22684
22692
|
});
|
22685
|
-
|
22693
|
+
xn = createSelector(Ae, (a2) => {
|
22686
22694
|
var e;
|
22687
22695
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22688
22696
|
});
|
22689
|
-
|
22697
|
+
Un = createSelector(Ae, (a2) => {
|
22690
22698
|
var e;
|
22691
22699
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22692
22700
|
});
|
22693
|
-
|
22701
|
+
Bn = createSelector(Ae, (a2) => {
|
22694
22702
|
var e;
|
22695
22703
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22696
22704
|
});
|
22697
|
-
|
22705
|
+
Vn = createSelector(Ae, (a2) => {
|
22698
22706
|
var e;
|
22699
22707
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22700
22708
|
});
|
22701
|
-
|
22709
|
+
Fn = createSelector(Ae, (a2) => {
|
22702
22710
|
var e;
|
22703
22711
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22704
22712
|
});
|
22705
|
-
|
22713
|
+
Gn = createSelector(Ae, (a2) => {
|
22706
22714
|
var e;
|
22707
22715
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22708
22716
|
});
|
22709
|
-
|
22710
|
-
|
22717
|
+
Wn = createSelector([Xa, Dn], (a2, e) => e ? a2[e] : void 0);
|
22718
|
+
$n = createSelector([_n, Ya], (a2, e) => e ? a2[e] : void 0);
|
22711
22719
|
ss = createSelector([rs, Ya], (a2, e) => e ? a2[e] : void 0);
|
22712
|
-
$n = R(Gn);
|
22713
22720
|
Kn = R(Wn);
|
22714
|
-
qn =
|
22721
|
+
qn = R($n);
|
22722
|
+
jn = createSelector([rs, Ln], (a2, e) => {
|
22715
22723
|
var t;
|
22716
22724
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22717
22725
|
});
|
22718
|
-
|
22719
|
-
|
22726
|
+
Jn = R(createSelector(ss, (a2) => a2 == null ? void 0 : a2[0]));
|
22727
|
+
Qn = createSelector([rs, wn], (a2, e) => {
|
22720
22728
|
var t;
|
22721
22729
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22722
22730
|
});
|
22723
|
-
|
22731
|
+
zn = R(createSelector(ss, (a2) => a2));
|
22724
22732
|
}
|
22725
22733
|
});
|
22726
22734
|
|
@@ -22964,6 +22972,15 @@ var init_ChangeNameContent = __esm({
|
|
22964
22972
|
onExit,
|
22965
22973
|
onBackClick
|
22966
22974
|
}) => {
|
22975
|
+
const inputRef = (0, import_react89.useRef)(null);
|
22976
|
+
(0, import_react89.useEffect)(() => {
|
22977
|
+
if (isMobile) {
|
22978
|
+
setTimeout(() => {
|
22979
|
+
var _a7;
|
22980
|
+
(_a7 = inputRef.current) == null ? void 0 : _a7.focus();
|
22981
|
+
}, 200);
|
22982
|
+
}
|
22983
|
+
}, [isMobile]);
|
22967
22984
|
return /* @__PURE__ */ import_react89.default.createElement(
|
22968
22985
|
"form",
|
22969
22986
|
{
|
@@ -22999,9 +23016,10 @@ var init_ChangeNameContent = __esm({
|
|
22999
23016
|
/* @__PURE__ */ import_react89.default.createElement(Flex, { justify: "center", align: "center", css: { my: "$8", w: "100%", "@md": { px: "$8" } } }, /* @__PURE__ */ import_react89.default.createElement(
|
23000
23017
|
Input,
|
23001
23018
|
{
|
23019
|
+
ref: inputRef,
|
23002
23020
|
css: { width: "100%", bg: "$surface_default" },
|
23003
23021
|
value: currentName,
|
23004
|
-
type:
|
23022
|
+
type: "text",
|
23005
23023
|
onChange: (e) => {
|
23006
23024
|
setCurrentName(e.target.value);
|
23007
23025
|
},
|
@@ -23113,7 +23131,7 @@ var init_ChangeNameModal = __esm({
|
|
23113
23131
|
}
|
23114
23132
|
};
|
23115
23133
|
if (isMobile) {
|
23116
|
-
return /* @__PURE__ */ import_react90.default.createElement(Sheet.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react90.default.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$8 0" } }, /* @__PURE__ */ import_react90.default.createElement(ChangeNameContent, __spreadValues({}, props))));
|
23134
|
+
return /* @__PURE__ */ import_react90.default.createElement(Sheet.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react90.default.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$8 0" }, onOpenAutoFocus: (e) => e.preventDefault() }, /* @__PURE__ */ import_react90.default.createElement(ChangeNameContent, __spreadValues({}, props))));
|
23117
23135
|
}
|
23118
23136
|
return /* @__PURE__ */ import_react90.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react90.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react90.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react90.default.createElement(Dialog.Content, { css: { bg: "$surface_dim", width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ import_react90.default.createElement(ChangeNameContent, __spreadValues({}, props)))));
|
23119
23137
|
};
|
@@ -28243,7 +28261,7 @@ var init_Chat = __esm({
|
|
28243
28261
|
const listRef = (0, import_react153.useRef)(null);
|
28244
28262
|
const hmsActions = (0, import_react_sdk74.useHMSActions)();
|
28245
28263
|
const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
|
28246
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(
|
28264
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(Qm("chatState" /* CHAT_STATE */)) || {};
|
28247
28265
|
const isMobile = (0, import_react_use26.useMedia)(config.media.md);
|
28248
28266
|
const isMobileHLSStream = useMobileHLSStream();
|
28249
28267
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -28333,7 +28351,7 @@ var init_Chat = __esm({
|
|
28333
28351
|
scrollToBottom,
|
28334
28352
|
listRef
|
28335
28353
|
}) => {
|
28336
|
-
const unreadCount = (0, import_react_sdk74.useHMSStore)(
|
28354
|
+
const unreadCount = (0, import_react_sdk74.useHMSStore)(Tm);
|
28337
28355
|
if (!unreadCount || !listRef.current) {
|
28338
28356
|
return null;
|
28339
28357
|
}
|
@@ -28755,6 +28773,44 @@ var init_TileConnection = __esm({
|
|
28755
28773
|
}
|
28756
28774
|
});
|
28757
28775
|
|
28776
|
+
// src/Prebuilt/components/peerTileUtils.tsx
|
28777
|
+
var PEER_NAME_PLACEHOLDER, labelMap, getVideoTileLabel;
|
28778
|
+
var init_peerTileUtils = __esm({
|
28779
|
+
"src/Prebuilt/components/peerTileUtils.tsx"() {
|
28780
|
+
"use strict";
|
28781
|
+
init_define_process_env();
|
28782
|
+
PEER_NAME_PLACEHOLDER = "peerName";
|
28783
|
+
labelMap = /* @__PURE__ */ new Map([
|
28784
|
+
[[true, "screen"].toString(), "Your Screen"],
|
28785
|
+
[[true, "regular"].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
28786
|
+
[[false, "screen"].toString(), `${PEER_NAME_PLACEHOLDER}'s Screen`],
|
28787
|
+
[[false, "regular"].toString(), PEER_NAME_PLACEHOLDER],
|
28788
|
+
[[true, void 0].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
28789
|
+
[[false, void 0].toString(), `${PEER_NAME_PLACEHOLDER}`]
|
28790
|
+
]);
|
28791
|
+
getVideoTileLabel = ({
|
28792
|
+
peerName,
|
28793
|
+
isLocal,
|
28794
|
+
videoTrack,
|
28795
|
+
audioTrack
|
28796
|
+
}) => {
|
28797
|
+
const isPeerPresent = peerName !== void 0;
|
28798
|
+
if (!isPeerPresent || !videoTrack) {
|
28799
|
+
const label2 = labelMap.get([isLocal, void 0].toString());
|
28800
|
+
return isPeerPresent && label2 ? label2.replace(PEER_NAME_PLACEHOLDER, peerName) : "";
|
28801
|
+
}
|
28802
|
+
const isLocallyMuted = (audioTrack == null ? void 0 : audioTrack.volume) === 0;
|
28803
|
+
let label = labelMap.get([isLocal, videoTrack.source].toString());
|
28804
|
+
if (label) {
|
28805
|
+
label = label.replace(PEER_NAME_PLACEHOLDER, peerName);
|
28806
|
+
} else {
|
28807
|
+
label = `${peerName} ${videoTrack.source}`;
|
28808
|
+
}
|
28809
|
+
return `${label}${isLocallyMuted ? " (Muted for you)" : ""}`;
|
28810
|
+
};
|
28811
|
+
}
|
28812
|
+
});
|
28813
|
+
|
28758
28814
|
// src/Prebuilt/components/TileMenu/utils.ts
|
28759
28815
|
var getDragClassName;
|
28760
28816
|
var init_utils6 = __esm({
|
@@ -28990,7 +29046,7 @@ var init_TileMenuContent = __esm({
|
|
28990
29046
|
},
|
28991
29047
|
isAudioEnabled ? /* @__PURE__ */ import_react158.default.createElement(import_react_icons76.MicOnIcon, { height: 20, width: 20 }) : /* @__PURE__ */ import_react158.default.createElement(import_react_icons76.MicOffIcon, { height: 20, width: 20 }),
|
28992
29048
|
/* @__PURE__ */ import_react158.default.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
|
28993
|
-
) : null, canChangeRole && roles.length > 1 ? /* @__PURE__ */ import_react158.default.createElement(
|
29049
|
+
) : null, !isScreenshare && canChangeRole && roles.length > 1 ? /* @__PURE__ */ import_react158.default.createElement(
|
28994
29050
|
StyledMenuTile.ItemButton,
|
28995
29051
|
{
|
28996
29052
|
className: dragClassName,
|
@@ -29003,7 +29059,7 @@ var init_TileMenuContent = __esm({
|
|
29003
29059
|
},
|
29004
29060
|
/* @__PURE__ */ import_react158.default.createElement(import_react_icons76.PersonSettingsIcon, { height: 20, width: 20 }),
|
29005
29061
|
/* @__PURE__ */ import_react158.default.createElement("span", null, "Switch Role")
|
29006
|
-
) : null, audioTrackID ? /* @__PURE__ */ import_react158.default.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ import_react158.default.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ import_react158.default.createElement(import_react_icons76.SpeakerIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react158.default.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ import_react158.default.createElement(
|
29062
|
+
) : null, !isIOS && audioTrackID ? /* @__PURE__ */ import_react158.default.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ import_react158.default.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ import_react158.default.createElement(import_react_icons76.SpeakerIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react158.default.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ import_react158.default.createElement(
|
29007
29063
|
Slider,
|
29008
29064
|
{
|
29009
29065
|
css: { my: "0.5rem" },
|
@@ -29058,6 +29114,7 @@ var init_TileMenu2 = __esm({
|
|
29058
29114
|
init_Theme();
|
29059
29115
|
init_TileMenu();
|
29060
29116
|
init_ChangeNameModal();
|
29117
|
+
init_peerTileUtils();
|
29061
29118
|
init_RoleChangeModal();
|
29062
29119
|
init_TileMenuContent();
|
29063
29120
|
init_useDropdownList();
|
@@ -29082,6 +29139,7 @@ var init_TileMenu2 = __esm({
|
|
29082
29139
|
const isPrimaryVideoTrack = ((_a7 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
|
29083
29140
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
29084
29141
|
const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
|
29142
|
+
const audioTrack = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(audioTrackID));
|
29085
29143
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
29086
29144
|
const isMobile = (0, import_react_use30.useMedia)(config.media.md);
|
29087
29145
|
const peer = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectPeerByID)(peerID));
|
@@ -29089,7 +29147,7 @@ var init_TileMenu2 = __esm({
|
|
29089
29147
|
const [showRoleChangeModal, setShowRoleChangeModal] = (0, import_react159.useState)(false);
|
29090
29148
|
useDropdownList({ open, name: "TileMenu" });
|
29091
29149
|
const dragClassName = getDragClassName();
|
29092
|
-
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
29150
|
+
if (!peer || !(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
29093
29151
|
return null;
|
29094
29152
|
}
|
29095
29153
|
const openNameChangeModal = () => setShowNameChangeModal(true);
|
@@ -29100,7 +29158,6 @@ var init_TileMenu2 = __esm({
|
|
29100
29158
|
audioTrackID,
|
29101
29159
|
videoTrackID,
|
29102
29160
|
peerID,
|
29103
|
-
isPrimaryVideoTrack,
|
29104
29161
|
showSpotlight,
|
29105
29162
|
showPinAction,
|
29106
29163
|
canMinimise,
|
@@ -29130,7 +29187,7 @@ var init_TileMenu2 = __esm({
|
|
29130
29187
|
borderBottom: "1px solid $border_default"
|
29131
29188
|
}
|
29132
29189
|
},
|
29133
|
-
/* @__PURE__ */ import_react159.default.createElement(Box, null, /* @__PURE__ */ import_react159.default.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal
|
29190
|
+
/* @__PURE__ */ import_react159.default.createElement(Box, null, /* @__PURE__ */ import_react159.default.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, getVideoTileLabel({ peerName: peer == null ? void 0 : peer.name, isLocal, audioTrack, videoTrack: track })), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ import_react159.default.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
|
29134
29191
|
/* @__PURE__ */ import_react159.default.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ import_react159.default.createElement(import_react_icons77.CrossIcon, null))
|
29135
29192
|
), /* @__PURE__ */ import_react159.default.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ import_react159.default.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ import_react159.default.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ import_react159.default.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ import_react159.default.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }), showRoleChangeModal && /* @__PURE__ */ import_react159.default.createElement(RoleChangeModal, { peerId: peerID, onOpenChange: setShowRoleChangeModal }));
|
29136
29193
|
};
|
@@ -29138,38 +29195,6 @@ var init_TileMenu2 = __esm({
|
|
29138
29195
|
}
|
29139
29196
|
});
|
29140
29197
|
|
29141
|
-
// src/Prebuilt/components/peerTileUtils.jsx
|
29142
|
-
var PEER_NAME_PLACEHOLDER, labelMap, getVideoTileLabel;
|
29143
|
-
var init_peerTileUtils = __esm({
|
29144
|
-
"src/Prebuilt/components/peerTileUtils.jsx"() {
|
29145
|
-
"use strict";
|
29146
|
-
init_define_process_env();
|
29147
|
-
PEER_NAME_PLACEHOLDER = "peerName";
|
29148
|
-
labelMap = /* @__PURE__ */ new Map([
|
29149
|
-
[[true, "screen"].toString(), "Your Screen"],
|
29150
|
-
[[true, "regular"].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
29151
|
-
[[false, "screen"].toString(), `${PEER_NAME_PLACEHOLDER}'s Screen`],
|
29152
|
-
[[false, "regular"].toString(), PEER_NAME_PLACEHOLDER],
|
29153
|
-
[[true, void 0].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
29154
|
-
[[false, void 0].toString(), `${PEER_NAME_PLACEHOLDER}`]
|
29155
|
-
]);
|
29156
|
-
getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
29157
|
-
const isPeerPresent = peerName !== void 0;
|
29158
|
-
if (!isPeerPresent || !track) {
|
29159
|
-
return isPeerPresent ? labelMap.get([isLocal, void 0].toString()).replace(PEER_NAME_PLACEHOLDER, peerName) : "";
|
29160
|
-
}
|
29161
|
-
const isLocallyMuted = track.volume === 0;
|
29162
|
-
let label = labelMap.get([isLocal, track.source].toString());
|
29163
|
-
if (label) {
|
29164
|
-
label = label.replace(PEER_NAME_PLACEHOLDER, peerName);
|
29165
|
-
} else {
|
29166
|
-
label = `${peerName} ${track.source}`;
|
29167
|
-
}
|
29168
|
-
return `${label}${isLocallyMuted ? " (Muted for you)" : ""}`;
|
29169
|
-
};
|
29170
|
-
}
|
29171
|
-
});
|
29172
|
-
|
29173
29198
|
// src/Prebuilt/components/VideoTile.tsx
|
29174
29199
|
var import_react160, import_react_use31, import_react_sdk81, import_react_icons78, PeerMetadata, Tile, VideoTile, VideoTile_default;
|
29175
29200
|
var init_VideoTile2 = __esm({
|
@@ -29234,8 +29259,9 @@ var init_VideoTile2 = __esm({
|
|
29234
29259
|
});
|
29235
29260
|
const label = getVideoTileLabel({
|
29236
29261
|
peerName,
|
29237
|
-
|
29238
|
-
|
29262
|
+
isLocal,
|
29263
|
+
videoTrack: track,
|
29264
|
+
audioTrack
|
29239
29265
|
});
|
29240
29266
|
const onHoverHandler = (0, import_react160.useCallback)((event) => {
|
29241
29267
|
setIsMouseHovered(event.type === "mouseenter");
|
@@ -29416,7 +29442,7 @@ var init_VBPicker = __esm({
|
|
29416
29442
|
init_constants();
|
29417
29443
|
iconDims = { height: "40px", width: "40px" };
|
29418
29444
|
VBPicker = ({ backgroundMedia = [] }) => {
|
29419
|
-
var _a7;
|
29445
|
+
var _a7, _b7;
|
29420
29446
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
29421
29447
|
const hmsActions = (0, import_react_sdk82.useHMSActions)();
|
29422
29448
|
const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
|
@@ -29429,14 +29455,15 @@ var init_VBPicker = __esm({
|
|
29429
29455
|
const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
|
29430
29456
|
const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
|
29431
29457
|
const isEffectsSupported = VBHandler.isEffectsSupported();
|
29432
|
-
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(
|
29433
|
-
const effectsKey = (0, import_react_sdk82.useHMSStore)(
|
29458
|
+
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Cm);
|
29459
|
+
const effectsKey = (0, import_react_sdk82.useHMSStore)(wm);
|
29434
29460
|
const isMobile = (0, import_react_use32.useMedia)(config.media.md);
|
29435
29461
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
29436
29462
|
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
29437
|
-
const background = (0, import_react_sdk82.useHMSStore)(
|
29463
|
+
const background = (0, import_react_sdk82.useHMSStore)(Jm(APP_DATA.background));
|
29438
29464
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
29439
29465
|
const pluginLoadingRef = (0, import_react163.useRef)(false);
|
29466
|
+
const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
|
29440
29467
|
const inPreview = roomState === import_react_sdk82.HMSRoomState.Preview;
|
29441
29468
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
29442
29469
|
(0, import_react163.useEffect)(() => {
|
@@ -29558,13 +29585,13 @@ var init_VBPicker = __esm({
|
|
29558
29585
|
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
|
29559
29586
|
hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR);
|
29560
29587
|
}),
|
29561
|
-
supported:
|
29588
|
+
supported: isBlurSupported
|
29562
29589
|
}
|
29563
29590
|
],
|
29564
29591
|
activeBackground: background
|
29565
29592
|
}
|
29566
29593
|
),
|
29567
|
-
/* @__PURE__ */ import_react163.default.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR &&
|
29594
|
+
/* @__PURE__ */ import_react163.default.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR && isBlurSupported ? /* @__PURE__ */ import_react163.default.createElement(Box, null, /* @__PURE__ */ import_react163.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ import_react163.default.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ import_react163.default.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ import_react163.default.createElement(
|
29568
29595
|
Slider,
|
29569
29596
|
{
|
29570
29597
|
showTooltip: false,
|
@@ -30647,10 +30674,10 @@ var init_useTileLayout = __esm({
|
|
30647
30674
|
tileHeight = maxRowHeight;
|
30648
30675
|
} else {
|
30649
30676
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
30650
|
-
for (const
|
30651
|
-
if (
|
30652
|
-
if (tileHeight <
|
30653
|
-
tileHeight =
|
30677
|
+
for (const h of calcHeights) {
|
30678
|
+
if (h < maxRowHeight) {
|
30679
|
+
if (tileHeight < h) {
|
30680
|
+
tileHeight = h;
|
30654
30681
|
}
|
30655
30682
|
}
|
30656
30683
|
}
|
@@ -30686,6 +30713,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
30686
30713
|
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
30687
30714
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
30688
30715
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
30716
|
+
const peerCount = (0, import_react_sdk89.useHMSStore)(import_react_sdk89.selectPeerCount);
|
30689
30717
|
const pageList = usePagesWithTiles({
|
30690
30718
|
peers,
|
30691
30719
|
maxTileCount
|
@@ -30715,19 +30743,20 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
30715
30743
|
), pageList.length === 0 ? /* @__PURE__ */ import_react177.default.createElement(
|
30716
30744
|
WaitingView,
|
30717
30745
|
{
|
30718
|
-
title: "You're the
|
30719
|
-
subtitle: "Sit back and relax till others join",
|
30746
|
+
title: peerCount <= 1 ? "You're the only one here" : "Glad to have you here",
|
30747
|
+
subtitle: peerCount <= 1 ? "Sit back and relax till others join" : "",
|
30720
30748
|
icon: /* @__PURE__ */ import_react177.default.createElement(import_react_icons84.PeopleAddIcon, { width: "56px", height: "56px", style: { color: "white" } })
|
30721
30749
|
}
|
30722
30750
|
) : null, isInsetEnabled && /* @__PURE__ */ import_react177.default.createElement(InsetTile, null));
|
30723
30751
|
}
|
30724
|
-
var import_react177, import_react_use39, import_react_icons84;
|
30752
|
+
var import_react177, import_react_use39, import_react_sdk89, import_react_icons84;
|
30725
30753
|
var init_EqualProminence = __esm({
|
30726
30754
|
"src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
|
30727
30755
|
"use strict";
|
30728
30756
|
init_define_process_env();
|
30729
30757
|
import_react177 = __toESM(require("react"));
|
30730
30758
|
import_react_use39 = require("react-use");
|
30759
|
+
import_react_sdk89 = require("@100mslive/react-sdk");
|
30731
30760
|
import_react_icons84 = require("@100mslive/react-icons");
|
30732
30761
|
init_Layout();
|
30733
30762
|
init_Theme();
|
@@ -30830,14 +30859,14 @@ var init_ProminenceLayout = __esm({
|
|
30830
30859
|
});
|
30831
30860
|
|
30832
30861
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
30833
|
-
var import_react179, import_react_use40,
|
30862
|
+
var import_react179, import_react_use40, import_react_sdk90, SecondaryTiles;
|
30834
30863
|
var init_SecondaryTiles = __esm({
|
30835
30864
|
"src/Prebuilt/components/SecondaryTiles.tsx"() {
|
30836
30865
|
"use strict";
|
30837
30866
|
init_define_process_env();
|
30838
30867
|
import_react179 = __toESM(require("react"));
|
30839
30868
|
import_react_use40 = require("react-use");
|
30840
|
-
|
30869
|
+
import_react_sdk90 = require("@100mslive/react-sdk");
|
30841
30870
|
init_ProminenceLayout();
|
30842
30871
|
init_Theme();
|
30843
30872
|
init_Pagination2();
|
@@ -30848,10 +30877,10 @@ var init_SecondaryTiles = __esm({
|
|
30848
30877
|
const isMobile = (0, import_react_use40.useMedia)(config.media.md);
|
30849
30878
|
const maxTileCount = isMobile ? 2 : 4;
|
30850
30879
|
const [page, setPage] = (0, import_react179.useState)(0);
|
30851
|
-
const pinnedTrackId = (0,
|
30852
|
-
const spotlightPeerId = (0,
|
30853
|
-
const activeScreensharePeerId = (0,
|
30854
|
-
const pinnedPeer = (_a7 = (0,
|
30880
|
+
const pinnedTrackId = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectAppData)(APP_DATA.pinnedTrackId));
|
30881
|
+
const spotlightPeerId = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectSessionStore)("spotlight" /* SPOTLIGHT */));
|
30882
|
+
const activeScreensharePeerId = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectAppData)(APP_DATA.activeScreensharePeerId));
|
30883
|
+
const pinnedPeer = (_a7 = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a7.peerId;
|
30855
30884
|
const pageChangedAfterPinning = (0, import_react179.useRef)(false);
|
30856
30885
|
const pagesWithTiles = usePagesWithTiles({
|
30857
30886
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
@@ -30960,7 +30989,7 @@ function RoleProminence({
|
|
30960
30989
|
}) {
|
30961
30990
|
var _a7;
|
30962
30991
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
30963
|
-
const localPeer = (0,
|
30992
|
+
const localPeer = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectLocalPeer);
|
30964
30993
|
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
30965
30994
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
30966
30995
|
maxTileCount = isMobile ? 4 : maxTileCount;
|
@@ -30991,14 +31020,14 @@ function RoleProminence({
|
|
30991
31020
|
}
|
30992
31021
|
), /* @__PURE__ */ import_react181.default.createElement(SecondaryTiles, { peers: secondaryPeers, isInsetEnabled, edgeToEdge }), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react181.default.createElement(InsetTile, null));
|
30993
31022
|
}
|
30994
|
-
var import_react181, import_react_use41,
|
31023
|
+
var import_react181, import_react_use41, import_react_sdk91;
|
30995
31024
|
var init_RoleProminence = __esm({
|
30996
31025
|
"src/Prebuilt/components/VideoLayouts/RoleProminence.tsx"() {
|
30997
31026
|
"use strict";
|
30998
31027
|
init_define_process_env();
|
30999
31028
|
import_react181 = __toESM(require("react"));
|
31000
31029
|
import_react_use41 = require("react-use");
|
31001
|
-
|
31030
|
+
import_react_sdk91 = require("@100mslive/react-sdk");
|
31002
31031
|
init_Theme();
|
31003
31032
|
init_InsetTile();
|
31004
31033
|
init_Pagination2();
|
@@ -31129,19 +31158,19 @@ var init_LayoutModeSelector = __esm({
|
|
31129
31158
|
});
|
31130
31159
|
|
31131
31160
|
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
31132
|
-
var import_react183,
|
31161
|
+
var import_react183, import_react_sdk92, import_react_icons86, ScreenshareDisplay;
|
31133
31162
|
var init_ScreenshareDisplay = __esm({
|
31134
31163
|
"src/Prebuilt/components/ScreenshareDisplay.tsx"() {
|
31135
31164
|
"use strict";
|
31136
31165
|
init_define_process_env();
|
31137
31166
|
import_react183 = __toESM(require("react"));
|
31138
|
-
|
31167
|
+
import_react_sdk92 = require("@100mslive/react-sdk");
|
31139
31168
|
import_react_icons86 = require("@100mslive/react-icons");
|
31140
31169
|
init_Button2();
|
31141
31170
|
init_Layout();
|
31142
31171
|
init_Text2();
|
31143
31172
|
ScreenshareDisplay = () => {
|
31144
|
-
const hmsActions = (0,
|
31173
|
+
const hmsActions = (0, import_react_sdk92.useHMSActions)();
|
31145
31174
|
return /* @__PURE__ */ import_react183.default.createElement(
|
31146
31175
|
Flex,
|
31147
31176
|
{
|
@@ -31175,7 +31204,7 @@ var init_ScreenshareDisplay = __esm({
|
|
31175
31204
|
});
|
31176
31205
|
|
31177
31206
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
31178
|
-
var import_react184, import_react_use42, import_screenfull2,
|
31207
|
+
var import_react184, import_react_use42, import_screenfull2, import_react_sdk93, import_react_icons87, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
|
31179
31208
|
var init_ScreenshareTile = __esm({
|
31180
31209
|
"src/Prebuilt/components/ScreenshareTile.tsx"() {
|
31181
31210
|
"use strict";
|
@@ -31183,7 +31212,7 @@ var init_ScreenshareTile = __esm({
|
|
31183
31212
|
import_react184 = __toESM(require("react"));
|
31184
31213
|
import_react_use42 = require("react-use");
|
31185
31214
|
import_screenfull2 = __toESM(require("screenfull"));
|
31186
|
-
|
31215
|
+
import_react_sdk93 = require("@100mslive/react-sdk");
|
31187
31216
|
import_react_icons87 = require("@100mslive/react-icons");
|
31188
31217
|
init_TileMenu2();
|
31189
31218
|
init_Layout();
|
@@ -31205,10 +31234,10 @@ var init_ScreenshareTile = __esm({
|
|
31205
31234
|
flexShrink: 0
|
31206
31235
|
};
|
31207
31236
|
Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
31208
|
-
const isLocal = (0,
|
31209
|
-
const track = (0,
|
31237
|
+
const isLocal = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerID) === peerId;
|
31238
|
+
const track = (0, import_react_sdk93.useHMSStore)((0, import_react_sdk93.selectScreenShareByPeerID)(peerId));
|
31210
31239
|
const { theme: theme2 } = useTheme();
|
31211
|
-
const peer = (0,
|
31240
|
+
const peer = (0, import_react_sdk93.useHMSStore)((0, import_react_sdk93.selectPeerByID)(peerId));
|
31212
31241
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
31213
31242
|
const [isMouseHovered, setIsMouseHovered] = (0, import_react184.useState)(false);
|
31214
31243
|
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
@@ -31219,7 +31248,7 @@ var init_ScreenshareTile = __esm({
|
|
31219
31248
|
onClose: () => setFullscreen(false)
|
31220
31249
|
});
|
31221
31250
|
const isFullScreenSupported = import_screenfull2.default.isEnabled;
|
31222
|
-
const audioTrack = (0,
|
31251
|
+
const audioTrack = (0, import_react_sdk93.useHMSStore)((0, import_react_sdk93.selectScreenShareAudioByPeerID)(peer == null ? void 0 : peer.id));
|
31223
31252
|
if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
|
31224
31253
|
return /* @__PURE__ */ import_react184.default.createElement(ScreenshareDisplay, null);
|
31225
31254
|
}
|
@@ -31229,7 +31258,8 @@ var init_ScreenshareTile = __esm({
|
|
31229
31258
|
const label = getVideoTileLabel({
|
31230
31259
|
peerName: peer == null ? void 0 : peer.name,
|
31231
31260
|
isLocal: false,
|
31232
|
-
track
|
31261
|
+
videoTrack: track,
|
31262
|
+
audioTrack
|
31233
31263
|
});
|
31234
31264
|
return /* @__PURE__ */ import_react184.default.createElement(
|
31235
31265
|
StyledVideoTile.Root,
|
@@ -31298,14 +31328,14 @@ var init_ScreenshareTile = __esm({
|
|
31298
31328
|
});
|
31299
31329
|
|
31300
31330
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
31301
|
-
var import_react185, import_react_use43,
|
31331
|
+
var import_react185, import_react_use43, import_react_sdk94, ScreenshareLayout;
|
31302
31332
|
var init_ScreenshareLayout = __esm({
|
31303
31333
|
"src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
|
31304
31334
|
"use strict";
|
31305
31335
|
init_define_process_env();
|
31306
31336
|
import_react185 = __toESM(require("react"));
|
31307
31337
|
import_react_use43 = require("react-use");
|
31308
|
-
|
31338
|
+
import_react_sdk94 = require("@100mslive/react-sdk");
|
31309
31339
|
init_Theme();
|
31310
31340
|
init_InsetTile();
|
31311
31341
|
init_Pagination2();
|
@@ -31317,7 +31347,7 @@ var init_ScreenshareLayout = __esm({
|
|
31317
31347
|
init_constants();
|
31318
31348
|
ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
31319
31349
|
var _a7;
|
31320
|
-
const peersSharing = (0,
|
31350
|
+
const peersSharing = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeersScreenSharing);
|
31321
31351
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
31322
31352
|
const [page, setPage] = (0, import_react185.useState)(0);
|
31323
31353
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
@@ -31366,14 +31396,14 @@ var init_ScreenshareLayout = __esm({
|
|
31366
31396
|
}
|
31367
31397
|
});
|
31368
31398
|
|
31369
|
-
// ../../../../../../../tmp/tmp-
|
31370
|
-
var
|
31371
|
-
"../../../../../../../tmp/tmp-
|
31399
|
+
// ../../../../../../../tmp/tmp-2795-Q28cnrhxSZjY/1921e7e15e40/index.css
|
31400
|
+
var init_e7e15e40 = __esm({
|
31401
|
+
"../../../../../../../tmp/tmp-2795-Q28cnrhxSZjY/1921e7e15e40/index.css"() {
|
31372
31402
|
}
|
31373
31403
|
});
|
31374
31404
|
|
31375
31405
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
31376
|
-
var import_react186, import_react_use44, import_hms_whiteboard,
|
31406
|
+
var import_react186, import_react_use44, import_hms_whiteboard, import_react_sdk95, WhiteboardEmbed, WhiteboardLayout;
|
31377
31407
|
var init_WhiteboardLayout = __esm({
|
31378
31408
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx"() {
|
31379
31409
|
"use strict";
|
@@ -31381,7 +31411,7 @@ var init_WhiteboardLayout = __esm({
|
|
31381
31411
|
import_react186 = __toESM(require("react"));
|
31382
31412
|
import_react_use44 = require("react-use");
|
31383
31413
|
import_hms_whiteboard = require("@100mslive/hms-whiteboard");
|
31384
|
-
|
31414
|
+
import_react_sdk95 = require("@100mslive/react-sdk");
|
31385
31415
|
init_Layout();
|
31386
31416
|
init_Theme();
|
31387
31417
|
init_InsetTile();
|
@@ -31390,10 +31420,10 @@ var init_WhiteboardLayout = __esm({
|
|
31390
31420
|
init_ProminenceLayout();
|
31391
31421
|
init_useUISettings();
|
31392
31422
|
init_constants();
|
31393
|
-
|
31423
|
+
init_e7e15e40();
|
31394
31424
|
WhiteboardEmbed = () => {
|
31395
31425
|
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31396
|
-
const { token, endpoint, zoomToContent } = (0,
|
31426
|
+
const { token, endpoint, zoomToContent } = (0, import_react_sdk95.useWhiteboard)(isMobile);
|
31397
31427
|
if (!token) {
|
31398
31428
|
return null;
|
31399
31429
|
}
|
@@ -31414,8 +31444,8 @@ var init_WhiteboardLayout = __esm({
|
|
31414
31444
|
);
|
31415
31445
|
};
|
31416
31446
|
WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
31417
|
-
const whiteboard = (0,
|
31418
|
-
const whiteboardOwner = (0,
|
31447
|
+
const whiteboard = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectWhiteboard);
|
31448
|
+
const whiteboardOwner = (0, import_react_sdk95.useHMSStore)((0, import_react_sdk95.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
31419
31449
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
31420
31450
|
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31421
31451
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
@@ -31456,12 +31486,12 @@ var init_WhiteboardLayout = __esm({
|
|
31456
31486
|
});
|
31457
31487
|
|
31458
31488
|
// src/Prebuilt/common/PeersSorter.ts
|
31459
|
-
var
|
31489
|
+
var import_react_sdk96, PeersSorter, PeersSorter_default;
|
31460
31490
|
var init_PeersSorter = __esm({
|
31461
31491
|
"src/Prebuilt/common/PeersSorter.ts"() {
|
31462
31492
|
"use strict";
|
31463
31493
|
init_define_process_env();
|
31464
|
-
|
31494
|
+
import_react_sdk96 = require("@100mslive/react-sdk");
|
31465
31495
|
PeersSorter = class {
|
31466
31496
|
constructor(store) {
|
31467
31497
|
this.storeUnsubscribe = void 0;
|
@@ -31482,7 +31512,7 @@ var init_PeersSorter = __esm({
|
|
31482
31512
|
}
|
31483
31513
|
});
|
31484
31514
|
if (!this.storeUnsubscribe) {
|
31485
|
-
this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange,
|
31515
|
+
this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk96.selectDominantSpeaker);
|
31486
31516
|
}
|
31487
31517
|
this.moveSpeakerToFront(this.speaker);
|
31488
31518
|
};
|
@@ -31557,13 +31587,13 @@ var init_PeersSorter = __esm({
|
|
31557
31587
|
});
|
31558
31588
|
|
31559
31589
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
31560
|
-
var import_react187,
|
31590
|
+
var import_react187, import_react_sdk97, GridLayout;
|
31561
31591
|
var init_GridLayout = __esm({
|
31562
31592
|
"src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
|
31563
31593
|
"use strict";
|
31564
31594
|
init_define_process_env();
|
31565
31595
|
import_react187 = __toESM(require("react"));
|
31566
|
-
|
31596
|
+
import_react_sdk97 = require("@100mslive/react-sdk");
|
31567
31597
|
init_EqualProminence();
|
31568
31598
|
init_RoleProminence();
|
31569
31599
|
init_ScreenshareLayout();
|
@@ -31583,12 +31613,12 @@ var init_GridLayout = __esm({
|
|
31583
31613
|
edge_to_edge = false,
|
31584
31614
|
hide_metadata_on_tile = false
|
31585
31615
|
}) => {
|
31586
|
-
const peerSharing = (0,
|
31587
|
-
const whiteboard = (0,
|
31616
|
+
const peerSharing = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectPeerScreenSharing);
|
31617
|
+
const whiteboard = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectWhiteboard);
|
31588
31618
|
const pinnedTrack = usePinnedTrack();
|
31589
|
-
const peers = (0,
|
31590
|
-
const localPeerRole = (0,
|
31591
|
-
const localPeerID = (0,
|
31619
|
+
const peers = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectPeers);
|
31620
|
+
const localPeerRole = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectLocalPeerRoleName);
|
31621
|
+
const localPeerID = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectLocalPeerID);
|
31592
31622
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
31593
31623
|
const isRoleProminence = prominentRoles.length && peers.some(
|
31594
31624
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
@@ -31616,7 +31646,7 @@ var init_GridLayout = __esm({
|
|
31616
31646
|
peers,
|
31617
31647
|
pinnedTrack
|
31618
31648
|
]);
|
31619
|
-
const vanillaStore = (0,
|
31649
|
+
const vanillaStore = (0, import_react_sdk97.useHMSVanillaStore)();
|
31620
31650
|
const [sortedPeers, setSortedPeers] = (0, import_react187.useState)(updatedPeers);
|
31621
31651
|
const peersSorter = (0, import_react187.useMemo)(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
31622
31652
|
const [pageSize, setPageSize] = (0, import_react187.useState)(0);
|
@@ -31687,13 +31717,13 @@ var init_GridLayout = __esm({
|
|
31687
31717
|
});
|
31688
31718
|
|
31689
31719
|
// src/Prebuilt/layouts/EmbedView.jsx
|
31690
|
-
var import_react188,
|
31720
|
+
var import_react188, import_react_sdk98, EmbedView, EmbedScreenShareView, EmbedComponent;
|
31691
31721
|
var init_EmbedView = __esm({
|
31692
31722
|
"src/Prebuilt/layouts/EmbedView.jsx"() {
|
31693
31723
|
"use strict";
|
31694
31724
|
init_define_process_env();
|
31695
31725
|
import_react188 = __toESM(require("react"));
|
31696
|
-
|
31726
|
+
import_react_sdk98 = require("@100mslive/react-sdk");
|
31697
31727
|
init_SecondaryTiles();
|
31698
31728
|
init_ToastManager();
|
31699
31729
|
init_ProminenceLayout();
|
@@ -31704,8 +31734,8 @@ var init_EmbedView = __esm({
|
|
31704
31734
|
return /* @__PURE__ */ import_react188.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react188.default.createElement(EmbedComponent, null));
|
31705
31735
|
};
|
31706
31736
|
EmbedScreenShareView = ({ children }) => {
|
31707
|
-
const peers = (0,
|
31708
|
-
const peerPresenting = (0,
|
31737
|
+
const peers = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectPeers);
|
31738
|
+
const peerPresenting = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectPeerScreenSharing);
|
31709
31739
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
31710
31740
|
const smallTilePeers = (0, import_react188.useMemo)(() => {
|
31711
31741
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
@@ -31720,9 +31750,9 @@ var init_EmbedView = __esm({
|
|
31720
31750
|
return /* @__PURE__ */ import_react188.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react188.default.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ import_react188.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
31721
31751
|
};
|
31722
31752
|
EmbedComponent = () => {
|
31723
|
-
const embedConfig = (0,
|
31753
|
+
const embedConfig = (0, import_react_sdk98.useHMSStore)((0, import_react_sdk98.selectAppData)(APP_DATA.embedConfig));
|
31724
31754
|
const resetConfig = useResetEmbedConfig();
|
31725
|
-
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0,
|
31755
|
+
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk98.useEmbedShare)(resetConfig);
|
31726
31756
|
(0, import_react188.useEffect)(() => {
|
31727
31757
|
(() => __async(void 0, null, function* () {
|
31728
31758
|
if (embedConfig && !isEmbedShareInProgress) {
|
@@ -31772,13 +31802,13 @@ var init_EmbedView = __esm({
|
|
31772
31802
|
});
|
31773
31803
|
|
31774
31804
|
// src/Prebuilt/layouts/PDFView.jsx
|
31775
|
-
var import_react189,
|
31805
|
+
var import_react189, import_react_sdk99, PDFView;
|
31776
31806
|
var init_PDFView = __esm({
|
31777
31807
|
"src/Prebuilt/layouts/PDFView.jsx"() {
|
31778
31808
|
"use strict";
|
31779
31809
|
init_define_process_env();
|
31780
31810
|
import_react189 = __toESM(require("react"));
|
31781
|
-
|
31811
|
+
import_react_sdk99 = require("@100mslive/react-sdk");
|
31782
31812
|
init_ToastManager();
|
31783
31813
|
init_Layout();
|
31784
31814
|
init_EmbedView();
|
@@ -31786,7 +31816,7 @@ var init_PDFView = __esm({
|
|
31786
31816
|
PDFView = () => {
|
31787
31817
|
const pdfConfig = usePDFConfig();
|
31788
31818
|
const resetConfig = useResetPDFConfig();
|
31789
|
-
const { iframeRef, startPDFShare, isPDFShareInProgress } = (0,
|
31819
|
+
const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk99.usePDFShare)(resetConfig);
|
31790
31820
|
(0, import_react189.useEffect)(() => {
|
31791
31821
|
return () => {
|
31792
31822
|
resetConfig();
|
@@ -31841,7 +31871,7 @@ var init_PDFView = __esm({
|
|
31841
31871
|
});
|
31842
31872
|
|
31843
31873
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
31844
|
-
var import_react190, import_react_draggable2, import_react_use45,
|
31874
|
+
var import_react190, import_react_draggable2, import_react_use45, import_react_sdk100, SimpleQueue, Queue, CaptionMaintainerQueue, TranscriptView, CaptionsViewer;
|
31845
31875
|
var init_CaptionsViewer = __esm({
|
31846
31876
|
"src/Prebuilt/plugins/CaptionsViewer.tsx"() {
|
31847
31877
|
"use strict";
|
@@ -31849,7 +31879,7 @@ var init_CaptionsViewer = __esm({
|
|
31849
31879
|
import_react190 = __toESM(require("react"));
|
31850
31880
|
import_react_draggable2 = __toESM(require("react-draggable"));
|
31851
31881
|
import_react_use45 = require("react-use");
|
31852
|
-
|
31882
|
+
import_react_sdk100 = require("@100mslive/react-sdk");
|
31853
31883
|
init_Layout();
|
31854
31884
|
init_Text2();
|
31855
31885
|
init_Theme();
|
@@ -31990,7 +32020,7 @@ var init_CaptionsViewer = __esm({
|
|
31990
32020
|
}
|
31991
32021
|
};
|
31992
32022
|
TranscriptView = ({ peer_id, data: data3 }) => {
|
31993
|
-
const peerName = (0,
|
32023
|
+
const peerName = (0, import_react_sdk100.useHMSStore)((0, import_react_sdk100.selectPeerNameByID)(peer_id)) || "Participant";
|
31994
32024
|
data3 = data3.trim();
|
31995
32025
|
if (!data3)
|
31996
32026
|
return null;
|
@@ -32018,7 +32048,7 @@ var init_CaptionsViewer = __esm({
|
|
32018
32048
|
const [captionQueue] = (0, import_react190.useState)(new CaptionMaintainerQueue());
|
32019
32049
|
const [currentData, setCurrentData] = (0, import_react190.useState)([]);
|
32020
32050
|
const isCaptionEnabled = useIsCaptionEnabled();
|
32021
|
-
const isTranscriptionEnabled = (0,
|
32051
|
+
const isTranscriptionEnabled = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectIsTranscriptionEnabled);
|
32022
32052
|
const nodeRef = (0, import_react190.useRef)(null);
|
32023
32053
|
(0, import_react190.useEffect)(() => {
|
32024
32054
|
const timeInterval = setInterval(() => {
|
@@ -32031,7 +32061,7 @@ var init_CaptionsViewer = __esm({
|
|
32031
32061
|
}, 1e3);
|
32032
32062
|
return () => clearInterval(timeInterval);
|
32033
32063
|
}, [captionQueue]);
|
32034
|
-
(0,
|
32064
|
+
(0, import_react_sdk100.useTranscript)({
|
32035
32065
|
onTranscript: (data3) => {
|
32036
32066
|
captionQueue && captionQueue.push(data3);
|
32037
32067
|
}
|
@@ -32088,16 +32118,16 @@ var init_CaptionsViewer = __esm({
|
|
32088
32118
|
});
|
32089
32119
|
|
32090
32120
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
32091
|
-
var import_react191,
|
32121
|
+
var import_react191, import_react_sdk101, useCloseScreenshareWhiteboard;
|
32092
32122
|
var init_useCloseScreenshareWhiteboard = __esm({
|
32093
32123
|
"src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx"() {
|
32094
32124
|
"use strict";
|
32095
32125
|
init_define_process_env();
|
32096
32126
|
import_react191 = require("react");
|
32097
|
-
|
32127
|
+
import_react_sdk101 = require("@100mslive/react-sdk");
|
32098
32128
|
useCloseScreenshareWhiteboard = () => {
|
32099
|
-
const peerSharing = (0,
|
32100
|
-
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0,
|
32129
|
+
const peerSharing = (0, import_react_sdk101.useHMSStore)(import_react_sdk101.selectPeerScreenSharing);
|
32130
|
+
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk101.useWhiteboard)();
|
32101
32131
|
(0, import_react191.useEffect)(() => {
|
32102
32132
|
if (isWhiteboardOwner && peerSharing) {
|
32103
32133
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
@@ -32236,6 +32266,26 @@ var init_HMSVideo = __esm({
|
|
32236
32266
|
init_Layout();
|
32237
32267
|
HMSVideo = (0, import_react193.forwardRef)((_a7, videoRef) => {
|
32238
32268
|
var _b7 = _a7, { children } = _b7, props = __objRest(_b7, ["children"]);
|
32269
|
+
const [width, setWidth] = (0, import_react193.useState)("auto");
|
32270
|
+
(0, import_react193.useEffect)(() => {
|
32271
|
+
const updatingVideoWidth = () => {
|
32272
|
+
const videoEl2 = videoRef.current;
|
32273
|
+
if (!videoEl2) {
|
32274
|
+
return;
|
32275
|
+
}
|
32276
|
+
if (videoEl2.videoWidth > videoEl2.videoHeight && width !== "100%") {
|
32277
|
+
setWidth("100%");
|
32278
|
+
}
|
32279
|
+
};
|
32280
|
+
const videoEl = videoRef.current;
|
32281
|
+
if (!videoEl) {
|
32282
|
+
return;
|
32283
|
+
}
|
32284
|
+
videoEl.addEventListener("loadedmetadata", updatingVideoWidth);
|
32285
|
+
return () => {
|
32286
|
+
videoEl.removeEventListener("loadedmetadata", updatingVideoWidth);
|
32287
|
+
};
|
32288
|
+
}, []);
|
32239
32289
|
return /* @__PURE__ */ import_react193.default.createElement(
|
32240
32290
|
Flex,
|
32241
32291
|
__spreadValues({
|
@@ -32246,9 +32296,8 @@ var init_HMSVideo = __esm({
|
|
32246
32296
|
justifyContent: "center",
|
32247
32297
|
transition: "all 0.3s ease-in-out",
|
32248
32298
|
"@md": {
|
32249
|
-
height: "auto",
|
32250
32299
|
"& video": {
|
32251
|
-
height: "$60 !important"
|
32300
|
+
height: props.isFullScreen ? "" : "$60 !important"
|
32252
32301
|
}
|
32253
32302
|
},
|
32254
32303
|
"& video::cue": {
|
@@ -32277,7 +32326,7 @@ var init_HMSVideo = __esm({
|
|
32277
32326
|
style: {
|
32278
32327
|
margin: "0 auto",
|
32279
32328
|
objectFit: "contain",
|
32280
|
-
width
|
32329
|
+
width,
|
32281
32330
|
height: "100%",
|
32282
32331
|
maxWidth: "100%"
|
32283
32332
|
},
|
@@ -33205,7 +33254,7 @@ var HLSView_exports = {};
|
|
33205
33254
|
__export(HLSView_exports, {
|
33206
33255
|
default: () => HLSView_default
|
33207
33256
|
});
|
33208
|
-
var import_react206, import_react_use49, import_hls_player3, import_screenfull3, import_ts_pattern13,
|
33257
|
+
var import_react206, import_react_use49, import_hls_player3, import_screenfull3, import_ts_pattern13, import_react_sdk102, import_react_icons97, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
|
33209
33258
|
var init_HLSView = __esm({
|
33210
33259
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
33211
33260
|
"use strict";
|
@@ -33215,7 +33264,7 @@ var init_HLSView = __esm({
|
|
33215
33264
|
import_hls_player3 = require("@100mslive/hls-player");
|
33216
33265
|
import_screenfull3 = __toESM(require("screenfull"));
|
33217
33266
|
import_ts_pattern13 = require("ts-pattern");
|
33218
|
-
|
33267
|
+
import_react_sdk102 = require("@100mslive/react-sdk");
|
33219
33268
|
import_react_icons97 = require("@100mslive/react-icons");
|
33220
33269
|
init_ChatToggle();
|
33221
33270
|
init_HlsStatsOverlay();
|
@@ -33243,11 +33292,11 @@ var init_HLSView = __esm({
|
|
33243
33292
|
toastMap = {};
|
33244
33293
|
ToggleChat = ({ isFullScreen = false }) => {
|
33245
33294
|
const { elements } = useRoomLayoutConferencingScreen();
|
33246
|
-
const sidepane = (0,
|
33295
|
+
const sidepane = (0, import_react_sdk102.useHMSStore)((0, import_react_sdk102.selectAppData)(APP_DATA.sidePane));
|
33247
33296
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33248
33297
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
33249
33298
|
const isMobile = (0, import_react_use49.useMedia)(config.media.md);
|
33250
|
-
const hmsActions = (0,
|
33299
|
+
const hmsActions = (0, import_react_sdk102.useHMSActions)();
|
33251
33300
|
(0, import_react206.useEffect)(() => {
|
33252
33301
|
(0, import_ts_pattern13.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
|
33253
33302
|
hmsActions.setAppData(APP_DATA.sidePane, "");
|
@@ -33265,10 +33314,10 @@ var init_HLSView = __esm({
|
|
33265
33314
|
const videoRef = (0, import_react206.useRef)(null);
|
33266
33315
|
const hlsViewRef = (0, import_react206.useRef)();
|
33267
33316
|
const { elements } = useRoomLayoutConferencingScreen();
|
33268
|
-
const hlsState = (0,
|
33269
|
-
const enablHlsStats = (0,
|
33270
|
-
const notification = (0,
|
33271
|
-
const hmsActions = (0,
|
33317
|
+
const hlsState = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectHLSState);
|
33318
|
+
const enablHlsStats = (0, import_react_sdk102.useHMSStore)((0, import_react_sdk102.selectAppData)(APP_DATA.hlsStats));
|
33319
|
+
const notification = (0, import_react_sdk102.useHMSNotifications)(import_react_sdk102.HMSNotificationTypes.POLL_STOPPED);
|
33320
|
+
const hmsActions = (0, import_react_sdk102.useHMSActions)();
|
33272
33321
|
const { themeType } = useTheme();
|
33273
33322
|
const [streamEnded, setStreamEnded] = (0, import_react206.useState)(false);
|
33274
33323
|
let [hlsStatsState, setHlsStatsState] = (0, import_react206.useState)(null);
|
@@ -33287,7 +33336,7 @@ var init_HLSView = __esm({
|
|
33287
33336
|
const [isPaused, setIsPaused] = (0, import_react206.useState)(false);
|
33288
33337
|
const [show, toggle] = (0, import_react_use49.useToggle)(false);
|
33289
33338
|
const lastHlsUrl = (0, import_react_use49.usePrevious)(hlsUrl);
|
33290
|
-
const vanillaStore = (0,
|
33339
|
+
const vanillaStore = (0, import_react_sdk102.useHMSVanillaStore)();
|
33291
33340
|
const [controlsVisible, setControlsVisible] = (0, import_react206.useState)(true);
|
33292
33341
|
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react206.useState)(true);
|
33293
33342
|
const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react206.useState)(false);
|
@@ -33373,8 +33422,8 @@ var init_HLSView = __esm({
|
|
33373
33422
|
const parsedPayload = parsePayload(payload);
|
33374
33423
|
if (parsedPayload.startsWith("poll:")) {
|
33375
33424
|
const pollId = parsedPayload.substr(parsedPayload.indexOf(":") + 1);
|
33376
|
-
const poll = vanillaStore.getState((0,
|
33377
|
-
const pollStartedBy = vanillaStore.getState((0,
|
33425
|
+
const poll = vanillaStore.getState((0, import_react_sdk102.selectPollByID)(pollId));
|
33426
|
+
const pollStartedBy = vanillaStore.getState((0, import_react_sdk102.selectPeerNameByID)(poll.startedBy)) || "Participant";
|
33378
33427
|
if (!toastMap[pollId]) {
|
33379
33428
|
const toastID = ToastManager.addToast({
|
33380
33429
|
title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
|
@@ -33530,7 +33579,7 @@ var init_HLSView = __esm({
|
|
33530
33579
|
const onDoubleClickHandler = (0, import_react206.useCallback)(
|
33531
33580
|
(event) => {
|
33532
33581
|
var _a8;
|
33533
|
-
if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !==
|
33582
|
+
if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== import_react_sdk102.HLSPlaylistType.DVR) {
|
33534
33583
|
return;
|
33535
33584
|
}
|
33536
33585
|
const sidePercentage = event.screenX * 100 / event.target.clientWidth;
|
@@ -33556,7 +33605,7 @@ var init_HLSView = __esm({
|
|
33556
33605
|
);
|
33557
33606
|
const onClickHandler = (0, import_react206.useCallback)(() => __async(void 0, null, function* () {
|
33558
33607
|
var _a8;
|
33559
|
-
(0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type:
|
33608
|
+
(0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: import_react_sdk102.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
|
33560
33609
|
if (isPaused) {
|
33561
33610
|
yield hlsPlayer == null ? void 0 : hlsPlayer.play();
|
33562
33611
|
} else {
|
@@ -33634,12 +33683,7 @@ var init_HLSView = __esm({
|
|
33634
33683
|
justify: "center",
|
33635
33684
|
css: {
|
33636
33685
|
flex: isLandscape ? "2 1 0" : "1 1 0",
|
33637
|
-
transition: "all 0.3s ease-in-out"
|
33638
|
-
"&:fullscreen": {
|
33639
|
-
"& video": {
|
33640
|
-
height: "unset !important"
|
33641
|
-
}
|
33642
|
-
}
|
33686
|
+
transition: "all 0.3s ease-in-out"
|
33643
33687
|
}
|
33644
33688
|
},
|
33645
33689
|
hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react206.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react206.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })),
|
@@ -33659,7 +33703,7 @@ var init_HLSView = __esm({
|
|
33659
33703
|
},
|
33660
33704
|
onKeyDown: (event) => __async(void 0, null, function* () {
|
33661
33705
|
var _a8;
|
33662
|
-
if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) ===
|
33706
|
+
if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === import_react_sdk102.HLSPlaylistType.DVR) {
|
33663
33707
|
yield keyHandler(event);
|
33664
33708
|
}
|
33665
33709
|
}),
|
@@ -33685,6 +33729,7 @@ var init_HLSView = __esm({
|
|
33685
33729
|
onMouseMove: onHoverHandler,
|
33686
33730
|
onMouseLeave: onHoverHandler,
|
33687
33731
|
onClick: onClickHandler,
|
33732
|
+
isFullScreen,
|
33688
33733
|
onDoubleClick: (e) => {
|
33689
33734
|
onDoubleClickHandler(e);
|
33690
33735
|
}
|
@@ -33703,7 +33748,7 @@ var init_HLSView = __esm({
|
|
33703
33748
|
size: "100%"
|
33704
33749
|
}
|
33705
33750
|
},
|
33706
|
-
!showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) ===
|
33751
|
+
!showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk102.HLSPlaylistType.DVR && /* @__PURE__ */ import_react206.default.createElement(
|
33707
33752
|
HMSVideoPlayer.PlayPauseSeekControls.Overlay,
|
33708
33753
|
{
|
33709
33754
|
isPaused,
|
@@ -33711,7 +33756,7 @@ var init_HLSView = __esm({
|
|
33711
33756
|
hoverControlsVisible
|
33712
33757
|
}
|
33713
33758
|
)
|
33714
|
-
), isMobile || isLandscape ? /* @__PURE__ */ import_react206.default.createElement(import_react206.default.Fragment, null, !showLoader && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) ===
|
33759
|
+
), isMobile || isLandscape ? /* @__PURE__ */ import_react206.default.createElement(import_react206.default.Fragment, null, !showLoader && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk102.HLSPlaylistType.DVR && /* @__PURE__ */ import_react206.default.createElement(
|
33715
33760
|
HMSVideoPlayer.PlayPauseSeekControls.Overlay,
|
33716
33761
|
{
|
33717
33762
|
isPaused,
|
@@ -33778,7 +33823,7 @@ var init_HLSView = __esm({
|
|
33778
33823
|
align: "start",
|
33779
33824
|
css: {
|
33780
33825
|
position: "absolute",
|
33781
|
-
bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) ===
|
33826
|
+
bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk102.HLSPlaylistType.DVR ? "$8" : "0",
|
33782
33827
|
left: "0",
|
33783
33828
|
zIndex: 1,
|
33784
33829
|
background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
|
@@ -33788,7 +33833,7 @@ var init_HLSView = __esm({
|
|
33788
33833
|
transition: "visibility 0s 0.5s, opacity 0.5s linear"
|
33789
33834
|
}
|
33790
33835
|
},
|
33791
|
-
((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) ===
|
33836
|
+
((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk102.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
|
33792
33837
|
/* @__PURE__ */ import_react206.default.createElement(
|
33793
33838
|
HMSVideoPlayer.Controls.Root,
|
33794
33839
|
{
|
@@ -33797,7 +33842,7 @@ var init_HLSView = __esm({
|
|
33797
33842
|
},
|
33798
33843
|
onClick: (e) => e.stopPropagation()
|
33799
33844
|
},
|
33800
|
-
/* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react206.default.createElement(import_react206.default.Fragment, null, ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) ===
|
33845
|
+
/* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react206.default.createElement(import_react206.default.Fragment, null, ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk102.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react206.default.createElement(import_react206.default.Fragment, null, /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.PlayPauseSeekControls.Button, { isPaused, onSeekTo }), !isVideoLive ? /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react206.default.createElement(
|
33801
33846
|
IconButton,
|
33802
33847
|
{
|
33803
33848
|
css: { px: "$2" },
|
@@ -33830,7 +33875,7 @@ var init_HLSView = __esm({
|
|
33830
33875
|
},
|
33831
33876
|
isVideoLive ? "LIVE" : "GO LIVE"
|
33832
33877
|
)))
|
33833
|
-
), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) ===
|
33878
|
+
), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === import_react_sdk102.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Duration, null) : null),
|
33834
33879
|
/* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react206.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react206.default.createElement(
|
33835
33880
|
HLSQualitySelector,
|
33836
33881
|
{
|
@@ -33839,7 +33884,8 @@ var init_HLSView = __esm({
|
|
33839
33884
|
open: qualityDropDownOpen,
|
33840
33885
|
selection: currentSelectedQuality,
|
33841
33886
|
onQualityChange: handleQuality,
|
33842
|
-
isAuto: isUserSelectedAuto
|
33887
|
+
isAuto: isUserSelectedAuto,
|
33888
|
+
containerRef: hlsViewRef.current
|
33843
33889
|
}
|
33844
33890
|
) : null, isFullScreenSupported ? /* @__PURE__ */ import_react206.default.createElement(FullScreenButton2, { isFullScreen, onToggle: toggle }) : null)
|
33845
33891
|
)
|
@@ -33855,7 +33901,7 @@ var init_HLSView = __esm({
|
|
33855
33901
|
});
|
33856
33902
|
|
33857
33903
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
33858
|
-
var import_react207, import_react_use50, import_ts_pattern14,
|
33904
|
+
var import_react207, import_react_use50, import_ts_pattern14, import_react_sdk103, import_react_icons98, HLSView2, VideoStreamingSection;
|
33859
33905
|
var init_VideoStreamingSection = __esm({
|
33860
33906
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
33861
33907
|
"use strict";
|
@@ -33863,7 +33909,7 @@ var init_VideoStreamingSection = __esm({
|
|
33863
33909
|
import_react207 = __toESM(require("react"));
|
33864
33910
|
import_react_use50 = require("react-use");
|
33865
33911
|
import_ts_pattern14 = require("ts-pattern");
|
33866
|
-
|
33912
|
+
import_react_sdk103 = require("@100mslive/react-sdk");
|
33867
33913
|
import_react_icons98 = require("@100mslive/react-icons");
|
33868
33914
|
init_FullPageProgress();
|
33869
33915
|
init_GridLayout();
|
@@ -33884,10 +33930,10 @@ var init_VideoStreamingSection = __esm({
|
|
33884
33930
|
hideControls = false
|
33885
33931
|
}) => {
|
33886
33932
|
var _a7;
|
33887
|
-
const localPeerRoleName = (0,
|
33888
|
-
const isConnected = (0,
|
33889
|
-
const isSharingScreen = (0,
|
33890
|
-
const hmsActions = (0,
|
33933
|
+
const localPeerRoleName = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectLocalPeerRoleName);
|
33934
|
+
const isConnected = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectIsConnectedToRoom);
|
33935
|
+
const isSharingScreen = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectIsLocalScreenShared);
|
33936
|
+
const hmsActions = (0, import_react_sdk103.useHMSActions)();
|
33891
33937
|
const urlToIframe = useUrlToEmbed();
|
33892
33938
|
const pdfAnnotatorActive = usePDFConfig();
|
33893
33939
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -34029,13 +34075,13 @@ var init_RoomDetailsHeader = __esm({
|
|
34029
34075
|
});
|
34030
34076
|
|
34031
34077
|
// src/Prebuilt/components/Header/common.jsx
|
34032
|
-
var import_react209,
|
34078
|
+
var import_react209, import_react_sdk104, import_react_icons100, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
|
34033
34079
|
var init_common2 = __esm({
|
34034
34080
|
"src/Prebuilt/components/Header/common.jsx"() {
|
34035
34081
|
"use strict";
|
34036
34082
|
init_define_process_env();
|
34037
34083
|
import_react209 = __toESM(require("react"));
|
34038
|
-
|
34084
|
+
import_react_sdk104 = require("@100mslive/react-sdk");
|
34039
34085
|
import_react_icons100 = require("@100mslive/react-icons");
|
34040
34086
|
init_Divider2();
|
34041
34087
|
init_Label2();
|
@@ -34045,12 +34091,12 @@ var init_common2 = __esm({
|
|
34045
34091
|
init_IconButton3();
|
34046
34092
|
init_ToastManager();
|
34047
34093
|
CamaraFlipActions = () => {
|
34048
|
-
const actions = (0,
|
34049
|
-
const { allDevices } = (0,
|
34094
|
+
const actions = (0, import_react_sdk104.useHMSActions)();
|
34095
|
+
const { allDevices } = (0, import_react_sdk104.useDevices)();
|
34050
34096
|
const { videoInput } = allDevices;
|
34051
|
-
const isVideoOn = (0,
|
34052
|
-
const videoTrackId = (0,
|
34053
|
-
const localVideoTrack = (0,
|
34097
|
+
const isVideoOn = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectIsLocalVideoEnabled);
|
34098
|
+
const videoTrackId = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectLocalVideoTrackID);
|
34099
|
+
const localVideoTrack = (0, import_react_sdk104.useHMSStore)((0, import_react_sdk104.selectVideoTrackByID)(videoTrackId));
|
34054
34100
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
34055
34101
|
return null;
|
34056
34102
|
}
|
@@ -34073,7 +34119,7 @@ var init_common2 = __esm({
|
|
34073
34119
|
));
|
34074
34120
|
};
|
34075
34121
|
AudioActions = () => {
|
34076
|
-
const { allDevices, selectedDeviceIDs, updateDevice } = (0,
|
34122
|
+
const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk104.useDevices)();
|
34077
34123
|
const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype;
|
34078
34124
|
const { audioInput, audioOutput } = allDevices;
|
34079
34125
|
let availableAudioDevices = audioInput;
|
@@ -34082,18 +34128,19 @@ var init_common2 = __esm({
|
|
34082
34128
|
availableAudioDevices = audioOutput;
|
34083
34129
|
selectedAudio = selectedDeviceIDs.audioOutput;
|
34084
34130
|
}
|
34085
|
-
const hmsActions = (0,
|
34131
|
+
const hmsActions = (0, import_react_sdk104.useHMSActions)();
|
34086
34132
|
const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
|
34087
34133
|
const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
|
34088
34134
|
if (!audioFiltered) {
|
34089
34135
|
return null;
|
34090
34136
|
}
|
34137
|
+
const deviceCategory = (0, import_react_sdk104.getAudioDeviceCategory)(currentSelection.label);
|
34091
34138
|
let AudioIcon = /* @__PURE__ */ import_react209.default.createElement(import_react_icons100.SpeakerIcon, null);
|
34092
|
-
if (
|
34139
|
+
if (deviceCategory === "bluetooth") {
|
34093
34140
|
AudioIcon = /* @__PURE__ */ import_react209.default.createElement(import_react_icons100.BluetoothIcon, null);
|
34094
|
-
} else if (
|
34141
|
+
} else if (deviceCategory === "wired") {
|
34095
34142
|
AudioIcon = /* @__PURE__ */ import_react209.default.createElement(import_react_icons100.HeadphonesIcon, null);
|
34096
|
-
} else if (
|
34143
|
+
} else if (deviceCategory === "earpiece") {
|
34097
34144
|
AudioIcon = /* @__PURE__ */ import_react209.default.createElement(import_react_icons100.TelePhoneIcon, null);
|
34098
34145
|
}
|
34099
34146
|
return /* @__PURE__ */ import_react209.default.createElement(
|
@@ -34105,7 +34152,7 @@ var init_common2 = __esm({
|
|
34105
34152
|
try {
|
34106
34153
|
yield updateDevice({
|
34107
34154
|
deviceId,
|
34108
|
-
deviceType: shouldShowAudioOutput ?
|
34155
|
+
deviceType: shouldShowAudioOutput ? import_react_sdk104.DeviceType.audioOutput : import_react_sdk104.DeviceType.audioInput
|
34109
34156
|
});
|
34110
34157
|
} catch (e) {
|
34111
34158
|
ToastManager.addToast({
|
@@ -34189,23 +34236,23 @@ var init_common2 = __esm({
|
|
34189
34236
|
});
|
34190
34237
|
|
34191
34238
|
// src/Prebuilt/components/Header/Header.tsx
|
34192
|
-
var import_react210, import_react_use52,
|
34239
|
+
var import_react210, import_react_use52, import_react_sdk105, Header2;
|
34193
34240
|
var init_Header = __esm({
|
34194
34241
|
"src/Prebuilt/components/Header/Header.tsx"() {
|
34195
34242
|
"use strict";
|
34196
34243
|
init_define_process_env();
|
34197
34244
|
import_react210 = __toESM(require("react"));
|
34198
34245
|
import_react_use52 = require("react-use");
|
34199
|
-
|
34246
|
+
import_react_sdk105 = require("@100mslive/react-sdk");
|
34200
34247
|
init_src();
|
34201
34248
|
init_HeaderComponents();
|
34202
34249
|
init_RoomDetailsHeader();
|
34203
34250
|
init_StreamActions();
|
34204
34251
|
init_common2();
|
34205
34252
|
Header2 = () => {
|
34206
|
-
const roomState = (0,
|
34253
|
+
const roomState = (0, import_react_sdk105.useHMSStore)(import_react_sdk105.selectRoomState);
|
34207
34254
|
const isMobile = (0, import_react_use52.useMedia)(config.media.md);
|
34208
|
-
if (roomState !==
|
34255
|
+
if (roomState !== import_react_sdk105.HMSRoomState.Connected) {
|
34209
34256
|
return /* @__PURE__ */ import_react210.default.createElement(import_react210.default.Fragment, null);
|
34210
34257
|
}
|
34211
34258
|
return /* @__PURE__ */ import_react210.default.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ import_react210.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ import_react210.default.createElement(Logo, null), /* @__PURE__ */ import_react210.default.createElement(RoomDetailsHeader, null), /* @__PURE__ */ import_react210.default.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ import_react210.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react210.default.createElement(LiveStatus, null), /* @__PURE__ */ import_react210.default.createElement(RecordingStatus, null), /* @__PURE__ */ import_react210.default.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ import_react210.default.createElement(
|
@@ -34235,25 +34282,25 @@ var init_Header2 = __esm({
|
|
34235
34282
|
});
|
34236
34283
|
|
34237
34284
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
34238
|
-
var import_react211,
|
34285
|
+
var import_react211, import_react_sdk106, PreviousRoleInMetadata;
|
34239
34286
|
var init_PreviousRoleInMetadata = __esm({
|
34240
34287
|
"src/Prebuilt/components/PreviousRoleInMetadata.tsx"() {
|
34241
34288
|
"use strict";
|
34242
34289
|
init_define_process_env();
|
34243
34290
|
import_react211 = require("react");
|
34244
|
-
|
34291
|
+
import_react_sdk106 = require("@100mslive/react-sdk");
|
34245
34292
|
init_useMetadata();
|
34246
34293
|
PreviousRoleInMetadata = () => {
|
34247
|
-
const vanillaStore = (0,
|
34294
|
+
const vanillaStore = (0, import_react_sdk106.useHMSVanillaStore)();
|
34248
34295
|
const { updateMetaData } = useMyMetadata();
|
34249
34296
|
(0, import_react211.useEffect)(() => {
|
34250
|
-
let previousRole = vanillaStore.getState(
|
34297
|
+
let previousRole = vanillaStore.getState(import_react_sdk106.selectLocalPeerRoleName);
|
34251
34298
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
34252
34299
|
if (previousRole !== currentRole && currentRole) {
|
34253
34300
|
updateMetaData({ prevRole: previousRole });
|
34254
34301
|
previousRole = currentRole;
|
34255
34302
|
}
|
34256
|
-
},
|
34303
|
+
}, import_react_sdk106.selectLocalPeerRoleName);
|
34257
34304
|
return unsubscribe;
|
34258
34305
|
}, [vanillaStore]);
|
34259
34306
|
return null;
|
@@ -34262,14 +34309,14 @@ var init_PreviousRoleInMetadata = __esm({
|
|
34262
34309
|
});
|
34263
34310
|
|
34264
34311
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
34265
|
-
var import_react212, import_uuid12,
|
34312
|
+
var import_react212, import_uuid12, import_react_sdk107, ConferenceScreen;
|
34266
34313
|
var init_ConferenceScreen = __esm({
|
34267
34314
|
"src/Prebuilt/components/ConferenceScreen.tsx"() {
|
34268
34315
|
"use strict";
|
34269
34316
|
init_define_process_env();
|
34270
34317
|
import_react212 = __toESM(require("react"));
|
34271
34318
|
import_uuid12 = require("uuid");
|
34272
|
-
|
34319
|
+
import_react_sdk107 = require("@100mslive/react-sdk");
|
34273
34320
|
init_Footer3();
|
34274
34321
|
init_MoreSettings();
|
34275
34322
|
init_HLSFailureModal();
|
@@ -34293,18 +34340,18 @@ var init_ConferenceScreen = __esm({
|
|
34293
34340
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
34294
34341
|
const screenProps = useRoomLayoutConferencingScreen();
|
34295
34342
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
34296
|
-
const roomState = (0,
|
34297
|
-
const isConnectedToRoom = (0,
|
34298
|
-
const hmsActions = (0,
|
34343
|
+
const roomState = (0, import_react_sdk107.useHMSStore)(import_react_sdk107.selectRoomState);
|
34344
|
+
const isConnectedToRoom = (0, import_react_sdk107.useHMSStore)(import_react_sdk107.selectIsConnectedToRoom);
|
34345
|
+
const hmsActions = (0, import_react_sdk107.useHMSActions)();
|
34299
34346
|
const [hideControls, setHideControls] = (0, import_react212.useState)(false);
|
34300
|
-
const dropdownList = (0,
|
34347
|
+
const dropdownList = (0, import_react_sdk107.useHMSStore)((0, import_react_sdk107.selectAppData)(APP_DATA.dropdownList));
|
34301
34348
|
const authTokenInAppData = useAuthToken();
|
34302
34349
|
const headerRef = (0, import_react212.useRef)(null);
|
34303
34350
|
const footerRef = (0, import_react212.useRef)(null);
|
34304
34351
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
34305
34352
|
const dropdownListRef = (0, import_react212.useRef)();
|
34306
34353
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
34307
|
-
const { requestPermission } = (0,
|
34354
|
+
const { requestPermission } = (0, import_react_sdk107.useAwayNotifications)();
|
34308
34355
|
const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
|
34309
34356
|
const autoRoomJoined = (0, import_react212.useRef)(isPreviewScreenEnabled);
|
34310
34357
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -34332,7 +34379,7 @@ var init_ConferenceScreen = __esm({
|
|
34332
34379
|
};
|
34333
34380
|
}, [dropdownList, hideControls, isMobileDevice]);
|
34334
34381
|
(0, import_react212.useEffect)(() => {
|
34335
|
-
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !==
|
34382
|
+
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk107.HMSRoomState.Connecting && !autoRoomJoined.current) {
|
34336
34383
|
hmsActions.join({
|
34337
34384
|
userName: userName || (0, import_uuid12.v4)(),
|
34338
34385
|
authToken: authTokenInAppData,
|
@@ -34361,8 +34408,8 @@ var init_ConferenceScreen = __esm({
|
|
34361
34408
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
34362
34409
|
};
|
34363
34410
|
}, [onJoinFunc]);
|
34364
|
-
if (!isConnectedToRoom && ![
|
34365
|
-
return /* @__PURE__ */ import_react212.default.createElement(FullPageProgress_default, { text: roomState ===
|
34411
|
+
if (!isConnectedToRoom && ![import_react_sdk107.HMSRoomState.Reconnecting, import_react_sdk107.HMSRoomState.Disconnected].includes(roomState)) {
|
34412
|
+
return /* @__PURE__ */ import_react212.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk107.HMSRoomState.Connecting ? "Joining..." : "" });
|
34366
34413
|
}
|
34367
34414
|
const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
|
34368
34415
|
return /* @__PURE__ */ import_react212.default.createElement(import_react212.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react212.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react212.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react212.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react212.default.createElement(
|
@@ -34548,7 +34595,7 @@ var init_ErrorBoundary = __esm({
|
|
34548
34595
|
|
34549
34596
|
// src/Prebuilt/services/FeatureFlags.jsx
|
34550
34597
|
function FeatureFlagsInit() {
|
34551
|
-
const roomId = (0,
|
34598
|
+
const roomId = (0, import_react_sdk108.useHMSStore)(import_react_sdk108.selectRoomID);
|
34552
34599
|
(0, import_react214.useEffect)(() => {
|
34553
34600
|
if (roomId) {
|
34554
34601
|
FeatureFlags.init(roomId);
|
@@ -34556,13 +34603,13 @@ function FeatureFlagsInit() {
|
|
34556
34603
|
}, [roomId]);
|
34557
34604
|
return null;
|
34558
34605
|
}
|
34559
|
-
var import_react214,
|
34606
|
+
var import_react214, import_react_sdk108, FeatureFlags;
|
34560
34607
|
var init_FeatureFlags = __esm({
|
34561
34608
|
"src/Prebuilt/services/FeatureFlags.jsx"() {
|
34562
34609
|
"use strict";
|
34563
34610
|
init_define_process_env();
|
34564
34611
|
import_react214 = require("react");
|
34565
|
-
|
34612
|
+
import_react_sdk108 = require("@100mslive/react-sdk");
|
34566
34613
|
FeatureFlags = class {
|
34567
34614
|
static init(roomId) {
|
34568
34615
|
if (!window.HMS) {
|
@@ -34620,13 +34667,13 @@ var init_Init = __esm({
|
|
34620
34667
|
});
|
34621
34668
|
|
34622
34669
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
34623
|
-
var import_react216,
|
34670
|
+
var import_react216, import_react_sdk109, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
|
34624
34671
|
var init_KeyboardInputManager = __esm({
|
34625
34672
|
"src/Prebuilt/components/Input/KeyboardInputManager.js"() {
|
34626
34673
|
"use strict";
|
34627
34674
|
init_define_process_env();
|
34628
34675
|
import_react216 = require("react");
|
34629
|
-
|
34676
|
+
import_react_sdk109 = require("@100mslive/react-sdk");
|
34630
34677
|
init_constants();
|
34631
34678
|
isEvenListenersAttached = false;
|
34632
34679
|
KeyboardInputManager = class {
|
@@ -34634,27 +34681,27 @@ var init_KeyboardInputManager = __esm({
|
|
34634
34681
|
__privateAdd(this, _actions, void 0);
|
34635
34682
|
__privateAdd(this, _store, void 0);
|
34636
34683
|
__privateAdd(this, _toggleAudio, () => __async(this, null, function* () {
|
34637
|
-
const enabled = __privateGet(this, _store).getState(
|
34684
|
+
const enabled = __privateGet(this, _store).getState(import_react_sdk109.selectIsLocalAudioEnabled);
|
34638
34685
|
yield __privateGet(this, _actions).setLocalAudioEnabled(!enabled);
|
34639
34686
|
}));
|
34640
34687
|
__privateAdd(this, _toggleVideo, () => __async(this, null, function* () {
|
34641
|
-
const enabled = __privateGet(this, _store).getState(
|
34688
|
+
const enabled = __privateGet(this, _store).getState(import_react_sdk109.selectIsLocalVideoEnabled);
|
34642
34689
|
yield __privateGet(this, _actions).setLocalVideoEnabled(!enabled);
|
34643
34690
|
}));
|
34644
34691
|
__privateAdd(this, _hideSidepane, () => {
|
34645
|
-
if (__privateGet(this, _store).getState((0,
|
34692
|
+
if (__privateGet(this, _store).getState((0, import_react_sdk109.selectAppData)(APP_DATA.sidePane))) {
|
34646
34693
|
__privateGet(this, _actions).setAppData(APP_DATA.sidePane, "");
|
34647
34694
|
}
|
34648
34695
|
});
|
34649
34696
|
__privateAdd(this, _toggleStatsForNerds, () => {
|
34650
|
-
const uiSettings = __privateGet(this, _store).getState((0,
|
34697
|
+
const uiSettings = __privateGet(this, _store).getState((0, import_react_sdk109.selectAppData)(APP_DATA.uiSettings));
|
34651
34698
|
const statsEnabled = uiSettings.showStatsOnTiles;
|
34652
34699
|
__privateGet(this, _actions).setAppData(APP_DATA.uiSettings, __spreadProps(__spreadValues({}, uiSettings), {
|
34653
34700
|
showStatsOnTiles: !statsEnabled
|
34654
34701
|
}));
|
34655
34702
|
});
|
34656
34703
|
__privateAdd(this, _toggleHlsStats, () => {
|
34657
|
-
__privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState((0,
|
34704
|
+
__privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState((0, import_react_sdk109.selectAppData)(APP_DATA.hlsStats)));
|
34658
34705
|
});
|
34659
34706
|
// eslint-disable-next-line complexity
|
34660
34707
|
__privateAdd(this, _keyDownHandler, (e) => __async(this, null, function* () {
|
@@ -34712,8 +34759,8 @@ var init_KeyboardInputManager = __esm({
|
|
34712
34759
|
_bind = new WeakMap();
|
34713
34760
|
_unbind = new WeakMap();
|
34714
34761
|
KeyboardHandler = () => {
|
34715
|
-
const store = (0,
|
34716
|
-
const actions = (0,
|
34762
|
+
const store = (0, import_react_sdk109.useHMSVanillaStore)();
|
34763
|
+
const actions = (0, import_react_sdk109.useHMSActions)();
|
34717
34764
|
(0, import_react216.useEffect)(() => {
|
34718
34765
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
34719
34766
|
keyboardManager.bindAllShortcuts();
|
@@ -34725,14 +34772,14 @@ var init_KeyboardInputManager = __esm({
|
|
34725
34772
|
});
|
34726
34773
|
|
34727
34774
|
// src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx
|
34728
|
-
var import_react217, import_react_use53,
|
34775
|
+
var import_react217, import_react_use53, import_react_sdk110, import_react_icons102, FEEBACK_INDEX, FeedbackModal, FeedbackContent, FeedbackHeader, FeedbackForm;
|
34729
34776
|
var init_FeedbackForm = __esm({
|
34730
34777
|
"src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx"() {
|
34731
34778
|
"use strict";
|
34732
34779
|
init_define_process_env();
|
34733
34780
|
import_react217 = __toESM(require("react"));
|
34734
34781
|
import_react_use53 = require("react-use");
|
34735
|
-
|
34782
|
+
import_react_sdk110 = require("@100mslive/react-sdk");
|
34736
34783
|
import_react_icons102 = require("@100mslive/react-icons");
|
34737
34784
|
init_Button2();
|
34738
34785
|
init_Checkbox2();
|
@@ -34790,7 +34837,7 @@ var init_FeedbackForm = __esm({
|
|
34790
34837
|
const { feedback } = useRoomLayoutLeaveScreen();
|
34791
34838
|
const { endpoints } = useHMSPrebuiltContext();
|
34792
34839
|
const isMobile = (0, import_react_use53.useMedia)(config.media.md);
|
34793
|
-
const hmsActions = (0,
|
34840
|
+
const hmsActions = (0, import_react_sdk110.useHMSActions)();
|
34794
34841
|
const [comment, setComment] = (0, import_react217.useState)("");
|
34795
34842
|
const [selectedReasons, setSelectedReasons] = (0, import_react217.useState)(/* @__PURE__ */ new Set());
|
34796
34843
|
const handleCheckedChange = (checked, index) => {
|
@@ -35352,7 +35399,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
35352
35399
|
|
35353
35400
|
// src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
|
35354
35401
|
function AutoplayBlockedModal() {
|
35355
|
-
const { error, resetError, unblockAudio } = (0,
|
35402
|
+
const { error, resetError, unblockAudio } = (0, import_react_sdk111.useAutoplayError)();
|
35356
35403
|
return /* @__PURE__ */ import_react222.default.createElement(
|
35357
35404
|
Dialog.Root,
|
35358
35405
|
{
|
@@ -35377,33 +35424,33 @@ function AutoplayBlockedModal() {
|
|
35377
35424
|
)))
|
35378
35425
|
);
|
35379
35426
|
}
|
35380
|
-
var import_react222,
|
35427
|
+
var import_react222, import_react_sdk111;
|
35381
35428
|
var init_AutoplayBlockedModal = __esm({
|
35382
35429
|
"src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx"() {
|
35383
35430
|
"use strict";
|
35384
35431
|
init_define_process_env();
|
35385
35432
|
import_react222 = __toESM(require("react"));
|
35386
|
-
|
35433
|
+
import_react_sdk111 = require("@100mslive/react-sdk");
|
35387
35434
|
init_src();
|
35388
35435
|
init_DialogContent2();
|
35389
35436
|
}
|
35390
35437
|
});
|
35391
35438
|
|
35392
35439
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
35393
|
-
var import_react223, import_uuid13,
|
35440
|
+
var import_react223, import_uuid13, import_react_sdk112, import_react_icons106, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
|
35394
35441
|
var init_ChatNotifications = __esm({
|
35395
35442
|
"src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
|
35396
35443
|
"use strict";
|
35397
35444
|
init_define_process_env();
|
35398
35445
|
import_react223 = __toESM(require("react"));
|
35399
35446
|
import_uuid13 = require("uuid");
|
35400
|
-
|
35447
|
+
import_react_sdk112 = require("@100mslive/react-sdk");
|
35401
35448
|
import_react_icons106 = require("@100mslive/react-icons");
|
35402
35449
|
init_ToastManager();
|
35403
35450
|
NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
35404
35451
|
ChatNotifications = () => {
|
35405
|
-
const chatState = (0,
|
35406
|
-
const localPeerId = (0,
|
35452
|
+
const chatState = (0, import_react_sdk112.useHMSStore)((0, import_react_sdk112.selectSessionStore)("chatState" /* CHAT_STATE */));
|
35453
|
+
const localPeerId = (0, import_react_sdk112.useHMSStore)(import_react_sdk112.selectLocalPeerID);
|
35407
35454
|
(0, import_react223.useEffect)(() => {
|
35408
35455
|
var _a7, _b7;
|
35409
35456
|
if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
|
@@ -35426,13 +35473,13 @@ var init_ChatNotifications = __esm({
|
|
35426
35473
|
});
|
35427
35474
|
|
35428
35475
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
35429
|
-
var import_react224,
|
35476
|
+
var import_react224, import_react_sdk113, import_react_icons107, ChatAction, HandRaiseAction, ToastConfig;
|
35430
35477
|
var init_ToastConfig = __esm({
|
35431
35478
|
"src/Prebuilt/components/Toast/ToastConfig.jsx"() {
|
35432
35479
|
"use strict";
|
35433
35480
|
init_define_process_env();
|
35434
35481
|
import_react224 = __toESM(require("react"));
|
35435
|
-
|
35482
|
+
import_react_sdk113 = require("@100mslive/react-sdk");
|
35436
35483
|
import_react_icons107 = require("@100mslive/react-icons");
|
35437
35484
|
init_Button2();
|
35438
35485
|
init_roomLayoutProvider();
|
@@ -35448,10 +35495,10 @@ var init_ToastConfig = __esm({
|
|
35448
35495
|
});
|
35449
35496
|
HandRaiseAction = import_react224.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
35450
35497
|
var _a7, _b7, _c;
|
35451
|
-
const hmsActions = (0,
|
35498
|
+
const hmsActions = (0, import_react_sdk113.useHMSActions)();
|
35452
35499
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
35453
35500
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
35454
|
-
const peer = (0,
|
35501
|
+
const peer = (0, import_react_sdk113.useHMSStore)((0, import_react_sdk113.selectPeerByID)(id));
|
35455
35502
|
const layout = useRoomLayout();
|
35456
35503
|
const {
|
35457
35504
|
bring_to_stage_label,
|
@@ -35668,14 +35715,14 @@ var init_ToastBatcher = __esm({
|
|
35668
35715
|
});
|
35669
35716
|
|
35670
35717
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
35671
|
-
var import_react225, import_react_use57,
|
35718
|
+
var import_react225, import_react_use57, import_react_sdk114, HandRaisedNotifications;
|
35672
35719
|
var init_HandRaisedNotifications = __esm({
|
35673
35720
|
"src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
|
35674
35721
|
"use strict";
|
35675
35722
|
init_define_process_env();
|
35676
35723
|
import_react225 = require("react");
|
35677
35724
|
import_react_use57 = require("react-use");
|
35678
|
-
|
35725
|
+
import_react_sdk114 = require("@100mslive/react-sdk");
|
35679
35726
|
init_roomLayoutProvider();
|
35680
35727
|
init_ToastBatcher();
|
35681
35728
|
init_useRoomLayoutScreen();
|
@@ -35683,24 +35730,24 @@ var init_HandRaisedNotifications = __esm({
|
|
35683
35730
|
init_constants();
|
35684
35731
|
HandRaisedNotifications = () => {
|
35685
35732
|
var _a7, _b7;
|
35686
|
-
const notification = (0,
|
35687
|
-
const roomState = (0,
|
35688
|
-
const vanillaStore = (0,
|
35733
|
+
const notification = (0, import_react_sdk114.useHMSNotifications)(import_react_sdk114.HMSNotificationTypes.HAND_RAISE_CHANGED);
|
35734
|
+
const roomState = (0, import_react_sdk114.useHMSStore)(import_react_sdk114.selectRoomState);
|
35735
|
+
const vanillaStore = (0, import_react_sdk114.useHMSVanillaStore)();
|
35689
35736
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
35690
35737
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
35691
|
-
const amIScreenSharing = (0,
|
35692
|
-
const { showNotification } = (0,
|
35738
|
+
const amIScreenSharing = (0, import_react_sdk114.useHMSStore)(import_react_sdk114.selectIsLocalScreenShared);
|
35739
|
+
const { showNotification } = (0, import_react_sdk114.useAwayNotifications)();
|
35693
35740
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
35694
35741
|
(0, import_react225.useEffect)(() => {
|
35695
35742
|
var _a8;
|
35696
35743
|
if (!(notification == null ? void 0 : notification.data)) {
|
35697
35744
|
return;
|
35698
35745
|
}
|
35699
|
-
if (roomState !==
|
35746
|
+
if (roomState !== import_react_sdk114.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
|
35700
35747
|
return;
|
35701
35748
|
}
|
35702
|
-
const hasPeerHandRaised = vanillaStore.getState((0,
|
35703
|
-
const peer = vanillaStore.getState((0,
|
35749
|
+
const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk114.selectHasPeerHandRaised)(notification.data.id));
|
35750
|
+
const peer = vanillaStore.getState((0, import_react_sdk114.selectPeerByID)(notification.data.id));
|
35704
35751
|
if (hasPeerHandRaised) {
|
35705
35752
|
const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
|
35706
35753
|
ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
|
@@ -35712,12 +35759,12 @@ var init_HandRaisedNotifications = __esm({
|
|
35712
35759
|
if (!(notification == null ? void 0 : notification.data)) {
|
35713
35760
|
return;
|
35714
35761
|
}
|
35715
|
-
if (roomState !==
|
35762
|
+
if (roomState !== import_react_sdk114.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
|
35716
35763
|
return;
|
35717
35764
|
}
|
35718
|
-
const hasPeerHandRaised = vanillaStore.getState((0,
|
35719
|
-
const peer = vanillaStore.getState((0,
|
35720
|
-
const handRaisedPeers = vanillaStore.getState(
|
35765
|
+
const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk114.selectHasPeerHandRaised)(notification.data.id));
|
35766
|
+
const peer = vanillaStore.getState((0, import_react_sdk114.selectPeerByID)(notification.data.id));
|
35767
|
+
const handRaisedPeers = vanillaStore.getState(import_react_sdk114.selectHandRaisedPeers);
|
35721
35768
|
if (amIScreenSharing && hasPeerHandRaised) {
|
35722
35769
|
const title = `${peer == null ? void 0 : peer.name} ${handRaisedPeers.length > 1 ? `and ${handRaisedPeers.length - 1} others` : ""} raised hand`;
|
35723
35770
|
showNotification(title, { icon: logoURL });
|
@@ -35732,17 +35779,17 @@ var init_HandRaisedNotifications = __esm({
|
|
35732
35779
|
});
|
35733
35780
|
|
35734
35781
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
35735
|
-
var import_react226,
|
35782
|
+
var import_react226, import_react_sdk115, InitErrorModal;
|
35736
35783
|
var init_InitErrorModal = __esm({
|
35737
35784
|
"src/Prebuilt/components/Notifications/InitErrorModal.tsx"() {
|
35738
35785
|
"use strict";
|
35739
35786
|
init_define_process_env();
|
35740
35787
|
import_react226 = __toESM(require("react"));
|
35741
|
-
|
35788
|
+
import_react_sdk115 = require("@100mslive/react-sdk");
|
35742
35789
|
init_src();
|
35743
35790
|
init_DialogContent2();
|
35744
35791
|
InitErrorModal = () => {
|
35745
|
-
const notification = (0,
|
35792
|
+
const notification = (0, import_react_sdk115.useHMSNotifications)(import_react_sdk115.HMSNotificationTypes.ERROR);
|
35746
35793
|
const [showModal, setShowModal] = (0, import_react226.useState)(false);
|
35747
35794
|
const [info, setInfo] = (0, import_react226.useState)({ title: "Init Error", description: "" });
|
35748
35795
|
(0, import_react226.useEffect)(() => {
|
@@ -35771,19 +35818,19 @@ var init_InitErrorModal = __esm({
|
|
35771
35818
|
});
|
35772
35819
|
|
35773
35820
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
35774
|
-
var import_react227,
|
35821
|
+
var import_react227, import_react_sdk116, notificationTypes, PeerNotifications;
|
35775
35822
|
var init_PeerNotifications = __esm({
|
35776
35823
|
"src/Prebuilt/components/Notifications/PeerNotifications.tsx"() {
|
35777
35824
|
"use strict";
|
35778
35825
|
init_define_process_env();
|
35779
35826
|
import_react227 = require("react");
|
35780
|
-
|
35827
|
+
import_react_sdk116 = require("@100mslive/react-sdk");
|
35781
35828
|
init_ToastBatcher();
|
35782
35829
|
init_useUISettings();
|
35783
35830
|
init_constants();
|
35784
|
-
notificationTypes = [
|
35831
|
+
notificationTypes = [import_react_sdk116.HMSNotificationTypes.PEER_JOINED, import_react_sdk116.HMSNotificationTypes.PEER_LEFT];
|
35785
35832
|
PeerNotifications = () => {
|
35786
|
-
const notification = (0,
|
35833
|
+
const notification = (0, import_react_sdk116.useHMSNotifications)(notificationTypes);
|
35787
35834
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
35788
35835
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
35789
35836
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
@@ -35793,12 +35840,12 @@ var init_PeerNotifications = __esm({
|
|
35793
35840
|
}
|
35794
35841
|
console.debug(`[${notification.type}]`, notification);
|
35795
35842
|
switch (notification.type) {
|
35796
|
-
case
|
35843
|
+
case import_react_sdk116.HMSNotificationTypes.PEER_JOINED:
|
35797
35844
|
if (!isPeerJoinSubscribed) {
|
35798
35845
|
return;
|
35799
35846
|
}
|
35800
35847
|
break;
|
35801
|
-
case
|
35848
|
+
case import_react_sdk116.HMSNotificationTypes.PEER_LEFT:
|
35802
35849
|
if (selectedPeer.id === notification.data.id) {
|
35803
35850
|
setPeerSelector({});
|
35804
35851
|
}
|
@@ -35834,17 +35881,17 @@ var init_ios_perm_0 = __esm({
|
|
35834
35881
|
|
35835
35882
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
35836
35883
|
function PermissionErrorNotificationModal() {
|
35837
|
-
const notification = (0,
|
35884
|
+
const notification = (0, import_react_sdk117.useHMSNotifications)(import_react_sdk117.HMSNotificationTypes.ERROR);
|
35838
35885
|
return /* @__PURE__ */ import_react228.default.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
|
35839
35886
|
}
|
35840
|
-
var import_react228, import_react_use58,
|
35887
|
+
var import_react228, import_react_use58, import_react_sdk117, PermissionErrorModal;
|
35841
35888
|
var init_PermissionErrorModal = __esm({
|
35842
35889
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
35843
35890
|
"use strict";
|
35844
35891
|
init_define_process_env();
|
35845
35892
|
import_react228 = __toESM(require("react"));
|
35846
35893
|
import_react_use58 = require("react-use");
|
35847
|
-
|
35894
|
+
import_react_sdk117 = require("@100mslive/react-sdk");
|
35848
35895
|
init_src();
|
35849
35896
|
init_android_perm_1();
|
35850
35897
|
init_ios_perm_0();
|
@@ -35910,35 +35957,35 @@ var init_PermissionErrorModal = __esm({
|
|
35910
35957
|
});
|
35911
35958
|
|
35912
35959
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
35913
|
-
var import_react229,
|
35960
|
+
var import_react229, import_react_sdk118, notificationTypes2, notificationId, ReconnectNotifications;
|
35914
35961
|
var init_ReconnectNotifications = __esm({
|
35915
35962
|
"src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
|
35916
35963
|
"use strict";
|
35917
35964
|
init_define_process_env();
|
35918
35965
|
import_react229 = require("react");
|
35919
|
-
|
35966
|
+
import_react_sdk118 = require("@100mslive/react-sdk");
|
35920
35967
|
init_ToastConfig();
|
35921
35968
|
init_ToastManager();
|
35922
35969
|
notificationTypes2 = [
|
35923
|
-
|
35924
|
-
|
35925
|
-
|
35970
|
+
import_react_sdk118.HMSNotificationTypes.RECONNECTED,
|
35971
|
+
import_react_sdk118.HMSNotificationTypes.RECONNECTING,
|
35972
|
+
import_react_sdk118.HMSNotificationTypes.ERROR
|
35926
35973
|
];
|
35927
35974
|
notificationId = null;
|
35928
35975
|
ReconnectNotifications = () => {
|
35929
|
-
const notification = (0,
|
35976
|
+
const notification = (0, import_react_sdk118.useHMSNotifications)(notificationTypes2);
|
35930
35977
|
const prevErrorCode = (0, import_react229.useRef)(0);
|
35931
35978
|
(0, import_react229.useEffect)(() => {
|
35932
35979
|
var _a7, _b7;
|
35933
35980
|
if (!notification) {
|
35934
35981
|
return;
|
35935
35982
|
}
|
35936
|
-
if (notification.type ===
|
35983
|
+
if (notification.type === import_react_sdk118.HMSNotificationTypes.RECONNECTED) {
|
35937
35984
|
notificationId = ToastManager.replaceToast(
|
35938
35985
|
notificationId,
|
35939
35986
|
ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
|
35940
35987
|
);
|
35941
|
-
} else if (notification.type ===
|
35988
|
+
} else if (notification.type === import_react_sdk118.HMSNotificationTypes.RECONNECTING) {
|
35942
35989
|
prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
|
35943
35990
|
notificationId = ToastManager.replaceToast(
|
35944
35991
|
notificationId,
|
@@ -35952,30 +35999,30 @@ var init_ReconnectNotifications = __esm({
|
|
35952
35999
|
});
|
35953
36000
|
|
35954
36001
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
35955
|
-
var import_react230,
|
36002
|
+
var import_react230, import_react_sdk119, import_react_icons108, TrackBulkUnmuteModal;
|
35956
36003
|
var init_TrackBulkUnmuteModal = __esm({
|
35957
36004
|
"src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
|
35958
36005
|
"use strict";
|
35959
36006
|
init_define_process_env();
|
35960
36007
|
import_react230 = __toESM(require("react"));
|
35961
|
-
|
36008
|
+
import_react_sdk119 = require("@100mslive/react-sdk");
|
35962
36009
|
import_react_icons108 = require("@100mslive/react-icons");
|
35963
36010
|
init_DialogContent2();
|
35964
36011
|
TrackBulkUnmuteModal = () => {
|
35965
|
-
const hmsActions = (0,
|
36012
|
+
const hmsActions = (0, import_react_sdk119.useHMSActions)();
|
35966
36013
|
const [muteNotification, setMuteNotification] = (0, import_react230.useState)(null);
|
35967
|
-
const notification = (0,
|
35968
|
-
|
35969
|
-
|
35970
|
-
|
36014
|
+
const notification = (0, import_react_sdk119.useHMSNotifications)([
|
36015
|
+
import_react_sdk119.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
36016
|
+
import_react_sdk119.HMSNotificationTypes.ROOM_ENDED,
|
36017
|
+
import_react_sdk119.HMSNotificationTypes.REMOVED_FROM_ROOM
|
35971
36018
|
]);
|
35972
36019
|
(0, import_react230.useEffect)(() => {
|
35973
36020
|
switch (notification == null ? void 0 : notification.type) {
|
35974
|
-
case
|
35975
|
-
case
|
36021
|
+
case import_react_sdk119.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
36022
|
+
case import_react_sdk119.HMSNotificationTypes.ROOM_ENDED:
|
35976
36023
|
setMuteNotification(null);
|
35977
36024
|
break;
|
35978
|
-
case
|
36025
|
+
case import_react_sdk119.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST:
|
35979
36026
|
if (notification == null ? void 0 : notification.data.enabled) {
|
35980
36027
|
setMuteNotification(notification.data);
|
35981
36028
|
}
|
@@ -36009,21 +36056,21 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
36009
36056
|
});
|
36010
36057
|
|
36011
36058
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
36012
|
-
var import_react231,
|
36059
|
+
var import_react231, import_react_sdk120, notificationTypes3, TrackNotifications;
|
36013
36060
|
var init_TrackNotifications = __esm({
|
36014
36061
|
"src/Prebuilt/components/Notifications/TrackNotifications.tsx"() {
|
36015
36062
|
"use strict";
|
36016
36063
|
init_define_process_env();
|
36017
36064
|
import_react231 = require("react");
|
36018
|
-
|
36065
|
+
import_react_sdk120 = require("@100mslive/react-sdk");
|
36019
36066
|
notificationTypes3 = [
|
36020
|
-
|
36021
|
-
|
36022
|
-
|
36023
|
-
|
36067
|
+
import_react_sdk120.HMSNotificationTypes.TRACK_ADDED,
|
36068
|
+
import_react_sdk120.HMSNotificationTypes.TRACK_REMOVED,
|
36069
|
+
import_react_sdk120.HMSNotificationTypes.TRACK_MUTED,
|
36070
|
+
import_react_sdk120.HMSNotificationTypes.TRACK_UNMUTED
|
36024
36071
|
];
|
36025
36072
|
TrackNotifications = () => {
|
36026
|
-
const notification = (0,
|
36073
|
+
const notification = (0, import_react_sdk120.useHMSNotifications)(notificationTypes3);
|
36027
36074
|
(0, import_react231.useEffect)(() => {
|
36028
36075
|
if (notification) {
|
36029
36076
|
console.debug(`[${notification.type}]`, notification);
|
@@ -36035,30 +36082,30 @@ var init_TrackNotifications = __esm({
|
|
36035
36082
|
});
|
36036
36083
|
|
36037
36084
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
36038
|
-
var import_react232,
|
36085
|
+
var import_react232, import_react_sdk121, import_react_icons109, TrackUnmuteModal;
|
36039
36086
|
var init_TrackUnmuteModal = __esm({
|
36040
36087
|
"src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
|
36041
36088
|
"use strict";
|
36042
36089
|
init_define_process_env();
|
36043
36090
|
import_react232 = __toESM(require("react"));
|
36044
|
-
|
36091
|
+
import_react_sdk121 = require("@100mslive/react-sdk");
|
36045
36092
|
import_react_icons109 = require("@100mslive/react-icons");
|
36046
36093
|
init_DialogContent2();
|
36047
36094
|
TrackUnmuteModal = () => {
|
36048
|
-
const hmsActions = (0,
|
36049
|
-
const notification = (0,
|
36050
|
-
|
36051
|
-
|
36052
|
-
|
36095
|
+
const hmsActions = (0, import_react_sdk121.useHMSActions)();
|
36096
|
+
const notification = (0, import_react_sdk121.useHMSNotifications)([
|
36097
|
+
import_react_sdk121.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST,
|
36098
|
+
import_react_sdk121.HMSNotificationTypes.ROOM_ENDED,
|
36099
|
+
import_react_sdk121.HMSNotificationTypes.REMOVED_FROM_ROOM
|
36053
36100
|
]);
|
36054
36101
|
const [muteNotification, setMuteNotification] = (0, import_react232.useState)(null);
|
36055
36102
|
(0, import_react232.useEffect)(() => {
|
36056
36103
|
switch (notification == null ? void 0 : notification.type) {
|
36057
|
-
case
|
36058
|
-
case
|
36104
|
+
case import_react_sdk121.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
36105
|
+
case import_react_sdk121.HMSNotificationTypes.ROOM_ENDED:
|
36059
36106
|
setMuteNotification(null);
|
36060
36107
|
break;
|
36061
|
-
case
|
36108
|
+
case import_react_sdk121.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
36062
36109
|
if (notification == null ? void 0 : notification.data.enabled) {
|
36063
36110
|
setMuteNotification(notification.data);
|
36064
36111
|
}
|
@@ -36076,7 +36123,7 @@ var init_TrackUnmuteModal = __esm({
|
|
36076
36123
|
{
|
36077
36124
|
title: `Unmute your ${track.type}?`,
|
36078
36125
|
onOpenChange: (value) => !value && setMuteNotification(null),
|
36079
|
-
body: `${peer == null ? void 0 : peer.name}is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
|
36126
|
+
body: `${peer == null ? void 0 : peer.name} is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
|
36080
36127
|
onAction: () => {
|
36081
36128
|
hmsActions.setEnabledTrack(track.id, enabled);
|
36082
36129
|
setMuteNotification(null);
|
@@ -36089,20 +36136,20 @@ var init_TrackUnmuteModal = __esm({
|
|
36089
36136
|
});
|
36090
36137
|
|
36091
36138
|
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
36092
|
-
var import_react233, import_ts_pattern16,
|
36139
|
+
var import_react233, import_ts_pattern16, import_react_sdk122, import_react_icons110, TranscriptionNotifications;
|
36093
36140
|
var init_TranscriptionNotifications = __esm({
|
36094
36141
|
"src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx"() {
|
36095
36142
|
"use strict";
|
36096
36143
|
init_define_process_env();
|
36097
36144
|
import_react233 = __toESM(require("react"));
|
36098
36145
|
import_ts_pattern16 = require("ts-pattern");
|
36099
|
-
|
36146
|
+
import_react_sdk122 = require("@100mslive/react-sdk");
|
36100
36147
|
import_react_icons110 = require("@100mslive/react-icons");
|
36101
36148
|
init_ToastManager();
|
36102
36149
|
init_useUISettings();
|
36103
36150
|
init_constants();
|
36104
36151
|
TranscriptionNotifications = () => {
|
36105
|
-
const notification = (0,
|
36152
|
+
const notification = (0, import_react_sdk122.useHMSNotifications)(import_react_sdk122.HMSNotificationTypes.TRANSCRIPTION_STATE_UPDATED);
|
36106
36153
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
36107
36154
|
(0, import_react233.useEffect)(() => {
|
36108
36155
|
if (!(notification == null ? void 0 : notification.data)) {
|
@@ -36121,14 +36168,14 @@ var init_TranscriptionNotifications = __esm({
|
|
36121
36168
|
icon: /* @__PURE__ */ import_react233.default.createElement(import_react_icons110.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
36122
36169
|
});
|
36123
36170
|
}
|
36124
|
-
).with({ state:
|
36171
|
+
).with({ state: import_react_sdk122.HMSTranscriptionState.STARTED }, () => {
|
36125
36172
|
id = ToastManager.replaceToast(toastId, {
|
36126
36173
|
title: `Closed Captioning enabled for everyone`,
|
36127
36174
|
variant: "standard",
|
36128
36175
|
duration: 2e3,
|
36129
36176
|
icon: /* @__PURE__ */ import_react233.default.createElement(import_react_icons110.ClosedCaptionIcon, { style: { marginRight: "0.5rem" } })
|
36130
36177
|
});
|
36131
|
-
}).with({ state:
|
36178
|
+
}).with({ state: import_react_sdk122.HMSTranscriptionState.STOPPED }, () => {
|
36132
36179
|
id = ToastManager.replaceToast(toastId, {
|
36133
36180
|
title: `Closed Captioning disabled for everyone`,
|
36134
36181
|
variant: "standard",
|
@@ -36147,17 +36194,17 @@ var init_TranscriptionNotifications = __esm({
|
|
36147
36194
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
36148
36195
|
function Notifications() {
|
36149
36196
|
var _a7, _b7;
|
36150
|
-
const localPeerID = (0,
|
36151
|
-
const notification = (0,
|
36197
|
+
const localPeerID = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectLocalPeerID);
|
36198
|
+
const notification = (0, import_react_sdk123.useHMSNotifications)();
|
36152
36199
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
36153
|
-
const roomState = (0,
|
36200
|
+
const roomState = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectRoomState);
|
36154
36201
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
36155
36202
|
const isNotificationDisabled = useIsNotificationDisabled();
|
36156
36203
|
const screenProps = useRoomLayoutConferencingScreen();
|
36157
|
-
const vanillaStore = (0,
|
36204
|
+
const vanillaStore = (0, import_react_sdk123.useHMSVanillaStore)();
|
36158
36205
|
const togglePollView = usePollViewToggle();
|
36159
|
-
const { showNotification } = (0,
|
36160
|
-
const amIScreenSharing = (0,
|
36206
|
+
const { showNotification } = (0, import_react_sdk123.useAwayNotifications)();
|
36207
|
+
const amIScreenSharing = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsLocalScreenShared);
|
36161
36208
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
36162
36209
|
const { pipWindow } = usePIPWindow();
|
36163
36210
|
const handleRoleChangeDenied = (0, import_react234.useCallback)((request) => {
|
@@ -36166,17 +36213,17 @@ function Notifications() {
|
|
36166
36213
|
variant: "error"
|
36167
36214
|
});
|
36168
36215
|
}, []);
|
36169
|
-
(0,
|
36216
|
+
(0, import_react_sdk123.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
36170
36217
|
(0, import_react234.useEffect)(() => {
|
36171
36218
|
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
|
36172
36219
|
if (!notification || isNotificationDisabled) {
|
36173
36220
|
return;
|
36174
36221
|
}
|
36175
36222
|
switch (notification.type) {
|
36176
|
-
case
|
36223
|
+
case import_react_sdk123.HMSNotificationTypes.NAME_UPDATED:
|
36177
36224
|
console.log(notification.data.id + " changed their name to " + notification.data.name);
|
36178
36225
|
break;
|
36179
|
-
case
|
36226
|
+
case import_react_sdk123.HMSNotificationTypes.ERROR:
|
36180
36227
|
if (((_a8 = notification.data) == null ? void 0 : _a8.isTerminal) && ((_b8 = notification.data) == null ? void 0 : _b8.action) !== "INIT") {
|
36181
36228
|
if ([500, 6008].includes((_c = notification.data) == null ? void 0 : _c.code)) {
|
36182
36229
|
ToastManager.addToast({
|
@@ -36208,7 +36255,7 @@ function Notifications() {
|
|
36208
36255
|
title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
|
36209
36256
|
});
|
36210
36257
|
break;
|
36211
|
-
case
|
36258
|
+
case import_react_sdk123.HMSNotificationTypes.ROLE_UPDATED: {
|
36212
36259
|
if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
36213
36260
|
ToastManager.addToast({
|
36214
36261
|
title: `You are now a ${notification.data.roleName}`
|
@@ -36217,7 +36264,7 @@ function Notifications() {
|
|
36217
36264
|
}
|
36218
36265
|
break;
|
36219
36266
|
}
|
36220
|
-
case
|
36267
|
+
case import_react_sdk123.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
36221
36268
|
const track = (_o2 = notification.data) == null ? void 0 : _o2.track;
|
36222
36269
|
if (!notification.data.enabled) {
|
36223
36270
|
ToastManager.addToast({
|
@@ -36226,21 +36273,21 @@ function Notifications() {
|
|
36226
36273
|
});
|
36227
36274
|
}
|
36228
36275
|
break;
|
36229
|
-
case
|
36230
|
-
case
|
36276
|
+
case import_react_sdk123.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
36277
|
+
case import_react_sdk123.HMSNotificationTypes.ROOM_ENDED:
|
36231
36278
|
ToastManager.addToast({
|
36232
36279
|
title: `${notification.message}.
|
36233
36280
|
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
36234
36281
|
});
|
36235
36282
|
break;
|
36236
|
-
case
|
36283
|
+
case import_react_sdk123.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
|
36237
36284
|
ToastManager.addToast({
|
36238
36285
|
title: notification.message
|
36239
36286
|
});
|
36240
36287
|
break;
|
36241
|
-
case
|
36288
|
+
case import_react_sdk123.HMSNotificationTypes.POLL_STARTED:
|
36242
36289
|
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
36243
|
-
const pollStartedBy = vanillaStore.getState((0,
|
36290
|
+
const pollStartedBy = vanillaStore.getState((0, import_react_sdk123.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
36244
36291
|
const pollToastID = ToastManager.addToast({
|
36245
36292
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
36246
36293
|
action: /* @__PURE__ */ import_react234.default.createElement(
|
@@ -36262,14 +36309,14 @@ function Notifications() {
|
|
36262
36309
|
pollToastKey[notification.data.id] = pollToastID;
|
36263
36310
|
}
|
36264
36311
|
break;
|
36265
|
-
case
|
36312
|
+
case import_react_sdk123.HMSNotificationTypes.POLL_STOPPED:
|
36266
36313
|
const pollID = notification == null ? void 0 : notification.data.id;
|
36267
36314
|
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
36268
36315
|
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
36269
36316
|
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
36270
36317
|
}
|
36271
36318
|
break;
|
36272
|
-
case
|
36319
|
+
case import_react_sdk123.HMSNotificationTypes.NEW_MESSAGE:
|
36273
36320
|
if (amIScreenSharing && !((_q = notification.data) == null ? void 0 : _q.ignored) && !pipWindow) {
|
36274
36321
|
showNotification(`New message from ${notification.data.senderName}`, {
|
36275
36322
|
body: notification.data.message,
|
@@ -36284,15 +36331,15 @@ function Notifications() {
|
|
36284
36331
|
if (isNotificationDisabled) {
|
36285
36332
|
return null;
|
36286
36333
|
}
|
36287
|
-
return /* @__PURE__ */ import_react234.default.createElement(import_react234.default.Fragment, null, /* @__PURE__ */ import_react234.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react234.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react234.default.createElement(TrackNotifications, null), roomState ===
|
36334
|
+
return /* @__PURE__ */ import_react234.default.createElement(import_react234.default.Fragment, null, /* @__PURE__ */ import_react234.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react234.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react234.default.createElement(TrackNotifications, null), roomState === import_react_sdk123.HMSRoomState.Connected ? /* @__PURE__ */ import_react234.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react234.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react234.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react234.default.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ import_react234.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react234.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react234.default.createElement(HandRaisedNotifications, null), /* @__PURE__ */ import_react234.default.createElement(TranscriptionNotifications, null));
|
36288
36335
|
}
|
36289
|
-
var import_react234,
|
36336
|
+
var import_react234, import_react_sdk123, import_react_icons111, pollToastKey;
|
36290
36337
|
var init_Notifications = __esm({
|
36291
36338
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
36292
36339
|
"use strict";
|
36293
36340
|
init_define_process_env();
|
36294
36341
|
import_react234 = __toESM(require("react"));
|
36295
|
-
|
36342
|
+
import_react_sdk123 = require("@100mslive/react-sdk");
|
36296
36343
|
import_react_icons111 = require("@100mslive/react-icons");
|
36297
36344
|
init_src();
|
36298
36345
|
init_roomLayoutProvider();
|
@@ -36438,19 +36485,19 @@ var init_Toast3 = __esm({
|
|
36438
36485
|
});
|
36439
36486
|
|
36440
36487
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
36441
|
-
var import_react238,
|
36488
|
+
var import_react238, import_react_sdk124, ToastContainer;
|
36442
36489
|
var init_ToastContainer = __esm({
|
36443
36490
|
"src/Prebuilt/components/Toast/ToastContainer.jsx"() {
|
36444
36491
|
"use strict";
|
36445
36492
|
init_define_process_env();
|
36446
36493
|
import_react238 = __toESM(require("react"));
|
36447
|
-
|
36494
|
+
import_react_sdk124 = require("@100mslive/react-sdk");
|
36448
36495
|
init_Toast2();
|
36449
36496
|
init_Toast3();
|
36450
36497
|
init_ToastManager();
|
36451
36498
|
init_constants();
|
36452
36499
|
ToastContainer = () => {
|
36453
|
-
const isConnected = (0,
|
36500
|
+
const isConnected = (0, import_react_sdk124.useHMSStore)(import_react_sdk124.selectIsConnectedToRoom);
|
36454
36501
|
const [toasts, setToast] = (0, import_react238.useState)([]);
|
36455
36502
|
(0, import_react238.useEffect)(() => {
|
36456
36503
|
ToastManager.addListener(setToast);
|
@@ -36507,18 +36554,18 @@ var init_RoomDetailsSheet = __esm({
|
|
36507
36554
|
});
|
36508
36555
|
|
36509
36556
|
// src/Prebuilt/layouts/Sheet.tsx
|
36510
|
-
var import_react240,
|
36557
|
+
var import_react240, import_react_sdk125, Sheet2;
|
36511
36558
|
var init_Sheet3 = __esm({
|
36512
36559
|
"src/Prebuilt/layouts/Sheet.tsx"() {
|
36513
36560
|
"use strict";
|
36514
36561
|
init_define_process_env();
|
36515
36562
|
import_react240 = __toESM(require("react"));
|
36516
|
-
|
36563
|
+
import_react_sdk125 = require("@100mslive/react-sdk");
|
36517
36564
|
init_RoomDetailsSheet();
|
36518
36565
|
init_Layout();
|
36519
36566
|
init_constants();
|
36520
36567
|
Sheet2 = () => {
|
36521
|
-
const sheet = (0,
|
36568
|
+
const sheet = (0, import_react_sdk125.useHMSStore)((0, import_react_sdk125.selectAppData)(APP_DATA.sheet));
|
36522
36569
|
let ViewComponent;
|
36523
36570
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
36524
36571
|
ViewComponent = /* @__PURE__ */ import_react240.default.createElement(RoomDetailsSheet, null);
|
@@ -36530,19 +36577,19 @@ var init_Sheet3 = __esm({
|
|
36530
36577
|
|
36531
36578
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
36532
36579
|
function FlyingEmoji() {
|
36533
|
-
const localPeerId = (0,
|
36534
|
-
const vanillaStore = (0,
|
36535
|
-
const hmsActions = (0,
|
36580
|
+
const localPeerId = (0, import_react_sdk126.useHMSStore)(import_react_sdk126.selectLocalPeerID);
|
36581
|
+
const vanillaStore = (0, import_react_sdk126.useHMSVanillaStore)();
|
36582
|
+
const hmsActions = (0, import_react_sdk126.useHMSActions)();
|
36536
36583
|
const [emojis, setEmojis] = (0, import_react241.useState)([]);
|
36537
36584
|
const isMobile = (0, import_react_use60.useMedia)(config.media.md);
|
36538
|
-
const isLargeRoom = (0,
|
36585
|
+
const isLargeRoom = (0, import_react_sdk126.useHMSStore)(import_react_sdk126.selectIsLargeRoom);
|
36539
36586
|
const startingPoints = (0, import_react241.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
36540
36587
|
const showFlyingEmoji = (0, import_react241.useCallback)(
|
36541
36588
|
(_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
|
36542
36589
|
if (!emojiId || !senderId || document.hidden) {
|
36543
36590
|
return;
|
36544
36591
|
}
|
36545
|
-
let senderPeerName = vanillaStore.getState((0,
|
36592
|
+
let senderPeerName = vanillaStore.getState((0, import_react_sdk126.selectPeerNameByID)(senderId));
|
36546
36593
|
if (!senderPeerName && isLargeRoom) {
|
36547
36594
|
const sender = yield hmsActions.getPeer(senderId);
|
36548
36595
|
senderPeerName = sender == null ? void 0 : sender.name;
|
@@ -36565,7 +36612,7 @@ function FlyingEmoji() {
|
|
36565
36612
|
}),
|
36566
36613
|
[vanillaStore, isLargeRoom, localPeerId, startingPoints, hmsActions]
|
36567
36614
|
);
|
36568
|
-
(0,
|
36615
|
+
(0, import_react_sdk126.useCustomEvent)({
|
36569
36616
|
type: EMOJI_REACTION_TYPE,
|
36570
36617
|
onEvent: showFlyingEmoji
|
36571
36618
|
});
|
@@ -36629,14 +36676,14 @@ function FlyingEmoji() {
|
|
36629
36676
|
})
|
36630
36677
|
);
|
36631
36678
|
}
|
36632
|
-
var import_react241, import_react_use60,
|
36679
|
+
var import_react241, import_react_use60, import_react_sdk126, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
36633
36680
|
var init_FlyingEmoji = __esm({
|
36634
36681
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
36635
36682
|
"use strict";
|
36636
36683
|
init_define_process_env();
|
36637
36684
|
import_react241 = __toESM(require("react"));
|
36638
36685
|
import_react_use60 = require("react-use");
|
36639
|
-
|
36686
|
+
import_react_sdk126 = require("@100mslive/react-sdk");
|
36640
36687
|
init_Layout();
|
36641
36688
|
init_Text2();
|
36642
36689
|
init_Theme();
|
@@ -36669,45 +36716,45 @@ var init_FlyingEmoji = __esm({
|
|
36669
36716
|
|
36670
36717
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
36671
36718
|
function RemoteStopScreenshare() {
|
36672
|
-
const actions = (0,
|
36719
|
+
const actions = (0, import_react_sdk127.useHMSActions)();
|
36673
36720
|
const onRemoteStopScreenshare = (0, import_react242.useCallback)(() => __async(this, null, function* () {
|
36674
36721
|
yield actions.setScreenShareEnabled(false);
|
36675
36722
|
}), [actions]);
|
36676
|
-
(0,
|
36723
|
+
(0, import_react_sdk127.useCustomEvent)({
|
36677
36724
|
type: REMOTE_STOP_SCREENSHARE_TYPE,
|
36678
36725
|
onEvent: onRemoteStopScreenshare
|
36679
36726
|
});
|
36680
36727
|
return /* @__PURE__ */ import_react242.default.createElement(import_react242.default.Fragment, null);
|
36681
36728
|
}
|
36682
|
-
var import_react242,
|
36729
|
+
var import_react242, import_react_sdk127;
|
36683
36730
|
var init_RemoteStopScreenshare = __esm({
|
36684
36731
|
"src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
|
36685
36732
|
"use strict";
|
36686
36733
|
init_define_process_env();
|
36687
36734
|
import_react242 = __toESM(require("react"));
|
36688
|
-
|
36735
|
+
import_react_sdk127 = require("@100mslive/react-sdk");
|
36689
36736
|
init_constants();
|
36690
36737
|
}
|
36691
36738
|
});
|
36692
36739
|
|
36693
36740
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
36694
|
-
var import_react243,
|
36741
|
+
var import_react243, import_react_sdk128, useAutoStartStreaming;
|
36695
36742
|
var init_useAutoStartStreaming = __esm({
|
36696
36743
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
|
36697
36744
|
"use strict";
|
36698
36745
|
init_define_process_env();
|
36699
36746
|
import_react243 = require("react");
|
36700
|
-
|
36747
|
+
import_react_sdk128 = require("@100mslive/react-sdk");
|
36701
36748
|
init_useUISettings();
|
36702
36749
|
init_hooks();
|
36703
36750
|
init_constants();
|
36704
36751
|
useAutoStartStreaming = () => {
|
36705
36752
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
36706
|
-
const permissions = (0,
|
36753
|
+
const permissions = (0, import_react_sdk128.useHMSStore)(import_react_sdk128.selectPermissions);
|
36707
36754
|
const showStreamingUI = useShowStreamingUI();
|
36708
|
-
const hmsActions = (0,
|
36709
|
-
const isConnected = (0,
|
36710
|
-
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0,
|
36755
|
+
const hmsActions = (0, import_react_sdk128.useHMSActions)();
|
36756
|
+
const isConnected = (0, import_react_sdk128.useHMSStore)(import_react_sdk128.selectIsConnectedToRoom);
|
36757
|
+
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk128.useRecordingStreaming)();
|
36711
36758
|
const streamStartedRef = (0, import_react243.useRef)(false);
|
36712
36759
|
const startHLS = (0, import_react243.useCallback)(() => __async(void 0, null, function* () {
|
36713
36760
|
try {
|
@@ -36764,14 +36811,14 @@ function AppRoutes({
|
|
36764
36811
|
}
|
36765
36812
|
), roomLayout && activeState && /* @__PURE__ */ import_react244.default.createElement(AppStates, { activeState })));
|
36766
36813
|
}
|
36767
|
-
var import_react244, import_ts_pattern17,
|
36814
|
+
var import_react244, import_ts_pattern17, import_react_sdk129, HMSPrebuilt, AppStates, BackSwipe;
|
36768
36815
|
var init_App = __esm({
|
36769
36816
|
"src/Prebuilt/App.tsx"() {
|
36770
36817
|
"use strict";
|
36771
36818
|
init_define_process_env();
|
36772
36819
|
import_react244 = __toESM(require("react"));
|
36773
36820
|
import_ts_pattern17 = require("ts-pattern");
|
36774
|
-
|
36821
|
+
import_react_sdk129 = require("@100mslive/react-sdk");
|
36775
36822
|
init_AppData();
|
36776
36823
|
init_AuthToken();
|
36777
36824
|
init_ConferenceScreen();
|
@@ -36818,7 +36865,7 @@ var init_App = __esm({
|
|
36818
36865
|
const [hydrated, setHydrated] = import_react244.default.useState(false);
|
36819
36866
|
(0, import_react244.useEffect)(() => {
|
36820
36867
|
setHydrated(true);
|
36821
|
-
const hms = new
|
36868
|
+
const hms = new import_react_sdk129.HMSReactiveStore();
|
36822
36869
|
const hmsStore = hms.getStore();
|
36823
36870
|
const hmsActions = hms.getActions();
|
36824
36871
|
const hmsNotifications = hms.getNotifications();
|
@@ -36845,10 +36892,10 @@ var init_App = __esm({
|
|
36845
36892
|
};
|
36846
36893
|
}, []);
|
36847
36894
|
const endpointsObj = endpoints;
|
36848
|
-
const tokenByRoomCodeEndpoint =
|
36849
|
-
const initEndpoint =
|
36850
|
-
const eventEndpoint =
|
36851
|
-
const roomLayoutEndpoint =
|
36895
|
+
const tokenByRoomCodeEndpoint = endpointsObj == null ? void 0 : endpointsObj.tokenByRoomCode;
|
36896
|
+
const initEndpoint = endpointsObj == null ? void 0 : endpointsObj.init;
|
36897
|
+
const eventEndpoint = endpointsObj == null ? void 0 : endpointsObj.event;
|
36898
|
+
const roomLayoutEndpoint = endpointsObj == null ? void 0 : endpointsObj.roomLayout;
|
36852
36899
|
const overrideLayout = {
|
36853
36900
|
logo,
|
36854
36901
|
themes,
|
@@ -36886,7 +36933,7 @@ var init_App = __esm({
|
|
36886
36933
|
}
|
36887
36934
|
},
|
36888
36935
|
/* @__PURE__ */ import_react244.default.createElement(
|
36889
|
-
|
36936
|
+
import_react_sdk129.HMSRoomProvider,
|
36890
36937
|
{
|
36891
36938
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
36892
36939
|
actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
|
@@ -36951,8 +36998,8 @@ var init_App = __esm({
|
|
36951
36998
|
return (0, import_ts_pattern17.match)({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ import_react244.default.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ import_react244.default.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ import_react244.default.createElement(ConferenceScreen, null));
|
36952
36999
|
};
|
36953
37000
|
BackSwipe = () => {
|
36954
|
-
const isConnectedToRoom = (0,
|
36955
|
-
const hmsActions = (0,
|
37001
|
+
const isConnectedToRoom = (0, import_react_sdk129.useHMSStore)(import_react_sdk129.selectIsConnectedToRoom);
|
37002
|
+
const hmsActions = (0, import_react_sdk129.useHMSActions)();
|
36956
37003
|
(0, import_react244.useEffect)(() => {
|
36957
37004
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
36958
37005
|
if (isConnectedToRoom) {
|
@@ -37105,10 +37152,10 @@ var require_react_is_production_min = __commonJS({
|
|
37105
37152
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
37106
37153
|
var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
|
37107
37154
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
37108
|
-
var
|
37155
|
+
var h = b2 ? Symbol.for("react.provider") : 60109;
|
37109
37156
|
var k = b2 ? Symbol.for("react.context") : 60110;
|
37110
37157
|
var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
|
37111
|
-
var
|
37158
|
+
var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
|
37112
37159
|
var n = b2 ? Symbol.for("react.forward_ref") : 60112;
|
37113
37160
|
var p = b2 ? Symbol.for("react.suspense") : 60113;
|
37114
37161
|
var q = b2 ? Symbol.for("react.suspense_list") : 60120;
|
@@ -37118,14 +37165,14 @@ var require_react_is_production_min = __commonJS({
|
|
37118
37165
|
var w = b2 ? Symbol.for("react.fundamental") : 60117;
|
37119
37166
|
var x = b2 ? Symbol.for("react.responder") : 60118;
|
37120
37167
|
var y2 = b2 ? Symbol.for("react.scope") : 60119;
|
37121
|
-
function
|
37168
|
+
function z(a2) {
|
37122
37169
|
if ("object" === typeof a2 && null !== a2) {
|
37123
37170
|
var u = a2.$$typeof;
|
37124
37171
|
switch (u) {
|
37125
37172
|
case c2:
|
37126
37173
|
switch (a2 = a2.type, a2) {
|
37127
37174
|
case l2:
|
37128
|
-
case
|
37175
|
+
case m2:
|
37129
37176
|
case e:
|
37130
37177
|
case g:
|
37131
37178
|
case f2:
|
@@ -37137,7 +37184,7 @@ var require_react_is_production_min = __commonJS({
|
|
37137
37184
|
case n:
|
37138
37185
|
case t:
|
37139
37186
|
case r:
|
37140
|
-
case
|
37187
|
+
case h:
|
37141
37188
|
return a2;
|
37142
37189
|
default:
|
37143
37190
|
return u;
|
@@ -37149,12 +37196,12 @@ var require_react_is_production_min = __commonJS({
|
|
37149
37196
|
}
|
37150
37197
|
}
|
37151
37198
|
function A(a2) {
|
37152
|
-
return
|
37199
|
+
return z(a2) === m2;
|
37153
37200
|
}
|
37154
37201
|
exports.AsyncMode = l2;
|
37155
|
-
exports.ConcurrentMode =
|
37202
|
+
exports.ConcurrentMode = m2;
|
37156
37203
|
exports.ContextConsumer = k;
|
37157
|
-
exports.ContextProvider =
|
37204
|
+
exports.ContextProvider = h;
|
37158
37205
|
exports.Element = c2;
|
37159
37206
|
exports.ForwardRef = n;
|
37160
37207
|
exports.Fragment = e;
|
@@ -37165,46 +37212,46 @@ var require_react_is_production_min = __commonJS({
|
|
37165
37212
|
exports.StrictMode = f2;
|
37166
37213
|
exports.Suspense = p;
|
37167
37214
|
exports.isAsyncMode = function(a2) {
|
37168
|
-
return A(a2) ||
|
37215
|
+
return A(a2) || z(a2) === l2;
|
37169
37216
|
};
|
37170
37217
|
exports.isConcurrentMode = A;
|
37171
37218
|
exports.isContextConsumer = function(a2) {
|
37172
|
-
return
|
37219
|
+
return z(a2) === k;
|
37173
37220
|
};
|
37174
37221
|
exports.isContextProvider = function(a2) {
|
37175
|
-
return
|
37222
|
+
return z(a2) === h;
|
37176
37223
|
};
|
37177
37224
|
exports.isElement = function(a2) {
|
37178
37225
|
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
37179
37226
|
};
|
37180
37227
|
exports.isForwardRef = function(a2) {
|
37181
|
-
return
|
37228
|
+
return z(a2) === n;
|
37182
37229
|
};
|
37183
37230
|
exports.isFragment = function(a2) {
|
37184
|
-
return
|
37231
|
+
return z(a2) === e;
|
37185
37232
|
};
|
37186
37233
|
exports.isLazy = function(a2) {
|
37187
|
-
return
|
37234
|
+
return z(a2) === t;
|
37188
37235
|
};
|
37189
37236
|
exports.isMemo = function(a2) {
|
37190
|
-
return
|
37237
|
+
return z(a2) === r;
|
37191
37238
|
};
|
37192
37239
|
exports.isPortal = function(a2) {
|
37193
|
-
return
|
37240
|
+
return z(a2) === d;
|
37194
37241
|
};
|
37195
37242
|
exports.isProfiler = function(a2) {
|
37196
|
-
return
|
37243
|
+
return z(a2) === g;
|
37197
37244
|
};
|
37198
37245
|
exports.isStrictMode = function(a2) {
|
37199
|
-
return
|
37246
|
+
return z(a2) === f2;
|
37200
37247
|
};
|
37201
37248
|
exports.isSuspense = function(a2) {
|
37202
|
-
return
|
37249
|
+
return z(a2) === p;
|
37203
37250
|
};
|
37204
37251
|
exports.isValidElementType = function(a2) {
|
37205
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 ===
|
37252
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
|
37206
37253
|
};
|
37207
|
-
exports.typeOf =
|
37254
|
+
exports.typeOf = z;
|
37208
37255
|
}
|
37209
37256
|
});
|
37210
37257
|
|
@@ -38128,13 +38175,13 @@ var init_DeviceSelector = __esm({
|
|
38128
38175
|
});
|
38129
38176
|
|
38130
38177
|
// src/Diagnostics/AudioTest.tsx
|
38131
|
-
var import_react248,
|
38178
|
+
var import_react248, import_react_sdk130, import_react_icons113, SelectContainer, MicTest, SpeakerTest, AudioTest;
|
38132
38179
|
var init_AudioTest = __esm({
|
38133
38180
|
"src/Diagnostics/AudioTest.tsx"() {
|
38134
38181
|
"use strict";
|
38135
38182
|
init_define_process_env();
|
38136
38183
|
import_react248 = __toESM(require("react"));
|
38137
|
-
|
38184
|
+
import_react_sdk130 = require("@100mslive/react-sdk");
|
38138
38185
|
import_react_icons113 = require("@100mslive/react-icons");
|
38139
38186
|
init_PermissionErrorModal();
|
38140
38187
|
init_components();
|
@@ -38150,12 +38197,12 @@ var init_AudioTest = __esm({
|
|
38150
38197
|
MicTest = ({ setError }) => {
|
38151
38198
|
var _a7, _b7;
|
38152
38199
|
const { hmsDiagnostics } = useDiagnostics();
|
38153
|
-
const devices = (0,
|
38200
|
+
const devices = (0, import_react_sdk130.useHMSStore)(import_react_sdk130.selectDevices);
|
38154
38201
|
const [isRecording, setIsRecording] = (0, import_react248.useState)(false);
|
38155
38202
|
const [selectedMic, setSelectedMic] = (0, import_react248.useState)(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
|
38156
|
-
const trackID = (0,
|
38157
|
-
const audioLevel = (0,
|
38158
|
-
const { audioOutputDeviceId } = (0,
|
38203
|
+
const trackID = (0, import_react_sdk130.useHMSStore)(import_react_sdk130.selectLocalAudioTrackID);
|
38204
|
+
const audioLevel = (0, import_react_sdk130.useHMSStore)((0, import_react_sdk130.selectTrackAudioByID)(trackID));
|
38205
|
+
const { audioOutputDeviceId } = (0, import_react_sdk130.useHMSStore)(import_react_sdk130.selectLocalMediaSettings);
|
38159
38206
|
const { playing, setPlaying, audioRef } = useAudioOutputTest({
|
38160
38207
|
deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
|
38161
38208
|
});
|
@@ -38230,9 +38277,9 @@ var init_AudioTest = __esm({
|
|
38230
38277
|
};
|
38231
38278
|
SpeakerTest = () => {
|
38232
38279
|
var _a7;
|
38233
|
-
const actions = (0,
|
38234
|
-
const devices = (0,
|
38235
|
-
const { audioOutputDeviceId } = (0,
|
38280
|
+
const actions = (0, import_react_sdk130.useHMSActions)();
|
38281
|
+
const devices = (0, import_react_sdk130.useHMSStore)(import_react_sdk130.selectDevices);
|
38282
|
+
const { audioOutputDeviceId } = (0, import_react_sdk130.useHMSStore)(import_react_sdk130.selectLocalMediaSettings);
|
38236
38283
|
if (devices.audioOutput.length === 0) {
|
38237
38284
|
return /* @__PURE__ */ import_react248.default.createElement(import_react248.default.Fragment, null);
|
38238
38285
|
}
|
@@ -38282,13 +38329,13 @@ var init_AudioTest = __esm({
|
|
38282
38329
|
});
|
38283
38330
|
|
38284
38331
|
// src/Diagnostics/BrowserTest.tsx
|
38285
|
-
var import_react249,
|
38332
|
+
var import_react249, import_react_sdk131, CMS_MEDIA_SERVER, operatingSystemIconInfo, browserTypeIconInfo, CheckDetails, BrowserTest;
|
38286
38333
|
var init_BrowserTest = __esm({
|
38287
38334
|
"src/Diagnostics/BrowserTest.tsx"() {
|
38288
38335
|
"use strict";
|
38289
38336
|
init_define_process_env();
|
38290
38337
|
import_react249 = __toESM(require("react"));
|
38291
|
-
|
38338
|
+
import_react_sdk131 = require("@100mslive/react-sdk");
|
38292
38339
|
init_components();
|
38293
38340
|
init_Layout();
|
38294
38341
|
init_Text2();
|
@@ -38390,15 +38437,15 @@ var init_BrowserTest = __esm({
|
|
38390
38437
|
CheckDetails,
|
38391
38438
|
{
|
38392
38439
|
title: "Browser",
|
38393
|
-
iconURL:
|
38394
|
-
value: `${
|
38440
|
+
iconURL: import_react_sdk131.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = import_react_sdk131.parsedUserAgent.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
|
38441
|
+
value: `${import_react_sdk131.parsedUserAgent.getBrowser().name} ${import_react_sdk131.parsedUserAgent.getBrowser().version}`
|
38395
38442
|
}
|
38396
38443
|
), /* @__PURE__ */ import_react249.default.createElement(
|
38397
38444
|
CheckDetails,
|
38398
38445
|
{
|
38399
38446
|
title: "Operating system",
|
38400
|
-
iconURL:
|
38401
|
-
value: `${
|
38447
|
+
iconURL: import_react_sdk131.parsedUserAgent.getOS().name && ((_d = operatingSystemIconInfo[(_c = import_react_sdk131.parsedUserAgent.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
|
38448
|
+
value: `${import_react_sdk131.parsedUserAgent.getOS().name} ${import_react_sdk131.parsedUserAgent.getOS().version}`
|
38402
38449
|
}
|
38403
38450
|
)), /* @__PURE__ */ import_react249.default.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
|
38404
38451
|
};
|
@@ -38406,13 +38453,13 @@ var init_BrowserTest = __esm({
|
|
38406
38453
|
});
|
38407
38454
|
|
38408
38455
|
// src/Diagnostics/ConnectivityTest.tsx
|
38409
|
-
var import_react250,
|
38456
|
+
var import_react250, import_react_sdk132, import_react_icons114, Regions, ConnectivityStateMessage, ConnectivityTestStepResult, DetailedInfo, MediaServerResult, SignallingResult, AudioStats, VideoStats, Footer3, ConnectivityTestReport, RegionSelector, ConnectivityTest, downloadJson;
|
38410
38457
|
var init_ConnectivityTest = __esm({
|
38411
38458
|
"src/Diagnostics/ConnectivityTest.tsx"() {
|
38412
38459
|
"use strict";
|
38413
38460
|
init_define_process_env();
|
38414
38461
|
import_react250 = __toESM(require("react"));
|
38415
|
-
|
38462
|
+
import_react_sdk132 = require("@100mslive/react-sdk");
|
38416
38463
|
import_react_icons114 = require("@100mslive/react-icons");
|
38417
38464
|
init_components();
|
38418
38465
|
init_Button2();
|
@@ -38427,13 +38474,13 @@ var init_ConnectivityTest = __esm({
|
|
38427
38474
|
us: "United States"
|
38428
38475
|
};
|
38429
38476
|
ConnectivityStateMessage = {
|
38430
|
-
[
|
38431
|
-
[
|
38432
|
-
[
|
38433
|
-
[
|
38434
|
-
[
|
38435
|
-
[
|
38436
|
-
[
|
38477
|
+
[import_react_sdk132.ConnectivityState.STARTING]: "Fetching Init",
|
38478
|
+
[import_react_sdk132.ConnectivityState.INIT_FETCHED]: "Connecting to signal server",
|
38479
|
+
[import_react_sdk132.ConnectivityState.SIGNAL_CONNECTED]: "Establishing ICE connection",
|
38480
|
+
[import_react_sdk132.ConnectivityState.ICE_ESTABLISHED]: "Capturing Media",
|
38481
|
+
[import_react_sdk132.ConnectivityState.MEDIA_CAPTURED]: "Publishing Media",
|
38482
|
+
[import_react_sdk132.ConnectivityState.MEDIA_PUBLISHED]: "Finishing Up",
|
38483
|
+
[import_react_sdk132.ConnectivityState.COMPLETED]: "Completed"
|
38437
38484
|
};
|
38438
38485
|
ConnectivityTestStepResult = ({
|
38439
38486
|
title,
|
@@ -38624,7 +38671,7 @@ var init_ConnectivityTest = __esm({
|
|
38624
38671
|
{
|
38625
38672
|
region,
|
38626
38673
|
setRegion,
|
38627
|
-
startTest: progress === void 0 || progress ===
|
38674
|
+
startTest: progress === void 0 || progress === import_react_sdk132.ConnectivityState.COMPLETED ? startTest : void 0
|
38628
38675
|
}
|
38629
38676
|
), /* @__PURE__ */ import_react250.default.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
|
38630
38677
|
};
|
@@ -38641,13 +38688,13 @@ var init_ConnectivityTest = __esm({
|
|
38641
38688
|
});
|
38642
38689
|
|
38643
38690
|
// src/Diagnostics/VideoTest.tsx
|
38644
|
-
var import_react251,
|
38691
|
+
var import_react251, import_react_sdk133, import_react_icons115, VideoTest;
|
38645
38692
|
var init_VideoTest = __esm({
|
38646
38693
|
"src/Diagnostics/VideoTest.tsx"() {
|
38647
38694
|
"use strict";
|
38648
38695
|
init_define_process_env();
|
38649
38696
|
import_react251 = __toESM(require("react"));
|
38650
|
-
|
38697
|
+
import_react_sdk133 = require("@100mslive/react-sdk");
|
38651
38698
|
import_react_icons115 = require("@100mslive/react-icons");
|
38652
38699
|
init_PermissionErrorModal();
|
38653
38700
|
init_components();
|
@@ -38659,10 +38706,10 @@ var init_VideoTest = __esm({
|
|
38659
38706
|
init_DiagnosticsContext();
|
38660
38707
|
VideoTest = () => {
|
38661
38708
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
38662
|
-
const allDevices = (0,
|
38709
|
+
const allDevices = (0, import_react_sdk133.useHMSStore)(import_react_sdk133.selectDevices);
|
38663
38710
|
const { videoInput } = allDevices;
|
38664
|
-
const trackID = (0,
|
38665
|
-
const sdkSelectedDevices = (0,
|
38711
|
+
const trackID = (0, import_react_sdk133.useHMSStore)(import_react_sdk133.selectLocalVideoTrackID);
|
38712
|
+
const sdkSelectedDevices = (0, import_react_sdk133.useHMSStore)(import_react_sdk133.selectLocalMediaSettings);
|
38666
38713
|
const [error, setError] = (0, import_react251.useState)();
|
38667
38714
|
(0, import_react251.useEffect)(() => {
|
38668
38715
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
|
@@ -38699,13 +38746,13 @@ var init_VideoTest = __esm({
|
|
38699
38746
|
});
|
38700
38747
|
|
38701
38748
|
// src/Diagnostics/Diagnostics.tsx
|
38702
|
-
var import_react252,
|
38749
|
+
var import_react252, import_react_sdk134, import_react_icons116, DiagnosticsStepIcon, Container5, DiagnosticsStepTest, DiagnosticsStepHeader, DiagnosticsStepContainer, DiagnosticsStepsList, DiagnosticsProvider, Diagnostics;
|
38703
38750
|
var init_Diagnostics = __esm({
|
38704
38751
|
"src/Diagnostics/Diagnostics.tsx"() {
|
38705
38752
|
"use strict";
|
38706
38753
|
init_define_process_env();
|
38707
38754
|
import_react252 = __toESM(require("react"));
|
38708
|
-
|
38755
|
+
import_react_sdk134 = require("@100mslive/react-sdk");
|
38709
38756
|
import_react_icons116 = require("@100mslive/react-icons");
|
38710
38757
|
init_Layout();
|
38711
38758
|
init_Text2();
|
@@ -38804,7 +38851,7 @@ var init_Diagnostics = __esm({
|
|
38804
38851
|
}));
|
38805
38852
|
};
|
38806
38853
|
DiagnosticsProvider = () => {
|
38807
|
-
const actions = (0,
|
38854
|
+
const actions = (0, import_react_sdk134.useHMSActions)();
|
38808
38855
|
const [activeStep, setActiveStep] = (0, import_react252.useState)(0);
|
38809
38856
|
const [steps, setSteps] = (0, import_react252.useState)(initialSteps);
|
38810
38857
|
const diagnosticsRef = (0, import_react252.useRef)(actions.initDiagnostics());
|
@@ -38826,7 +38873,7 @@ var init_Diagnostics = __esm({
|
|
38826
38873
|
);
|
38827
38874
|
};
|
38828
38875
|
Diagnostics = () => {
|
38829
|
-
return /* @__PURE__ */ import_react252.default.createElement(
|
38876
|
+
return /* @__PURE__ */ import_react252.default.createElement(import_react_sdk134.HMSRoomProvider, null, /* @__PURE__ */ import_react252.default.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ import_react252.default.createElement(DiagnosticsProvider, null)));
|
38830
38877
|
};
|
38831
38878
|
}
|
38832
38879
|
});
|