@100mslive/roomkit-react 0.2.8-alpha.4 → 0.2.8-alpha.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-UIPDGADR.js → HLSView-53PDKIS2.js} +239 -144
- package/dist/HLSView-53PDKIS2.js.map +7 -0
- package/dist/Prebuilt/components/Chat/MwebChatOption.d.ts +1 -1
- package/dist/Prebuilt/components/HMSVideo/PlayPauseButton.d.ts +6 -0
- package/dist/Prebuilt/components/HMSVideo/SeekControls.d.ts +7 -0
- package/dist/Prebuilt/components/HMSVideo/VideoProgress.d.ts +3 -1
- package/dist/Prebuilt/components/HMSVideo/index.d.ts +10 -2
- package/dist/Prebuilt/layouts/SidePane.d.ts +1 -1
- package/dist/{chunk-J4NOQ2YL.js → chunk-2ZFAT7KY.js} +339 -218
- package/dist/chunk-2ZFAT7KY.js.map +7 -0
- package/dist/index.cjs.js +932 -708
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +217 -78
- package/dist/meta.esbuild.json +227 -87
- package/package.json +7 -6
- package/src/Prebuilt/components/AppData/useSidepane.js +17 -2
- package/src/Prebuilt/components/AuthToken.jsx +1 -1
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
- package/src/Prebuilt/components/Chat/MwebChatOption.tsx +1 -1
- package/src/Prebuilt/components/ConferenceScreen.tsx +11 -14
- package/src/Prebuilt/components/Footer/RoleOptions.tsx +32 -15
- package/src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx +31 -1
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +7 -1
- package/src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx +27 -0
- package/src/Prebuilt/components/HMSVideo/SeekControls.tsx +22 -0
- package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +4 -3
- package/src/Prebuilt/components/HMSVideo/VolumeControl.tsx +1 -1
- package/src/Prebuilt/components/HMSVideo/index.ts +4 -2
- package/src/Prebuilt/components/Header/StreamActions.tsx +1 -1
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +37 -31
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -5
- package/src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx +2 -2
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +1 -1
- package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +19 -8
- package/src/Prebuilt/components/SidePaneTabs.tsx +27 -35
- package/src/Prebuilt/components/StatsForNerds.jsx +14 -6
- package/src/Prebuilt/components/Streaming/Common.jsx +1 -1
- package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +2 -2
- package/src/Prebuilt/components/Toast/ToastBatcher.js +8 -1
- package/src/Prebuilt/components/Toast/ToastConfig.jsx +17 -0
- package/src/Prebuilt/layouts/HLSView.jsx +109 -69
- package/src/Prebuilt/layouts/SidePane.tsx +125 -67
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +2 -1
- package/src/Prebuilt/provider/roomLayoutProvider/index.tsx +1 -1
- package/src/Sheet/Sheet.tsx +4 -0
- package/dist/HLSView-UIPDGADR.js.map +0 -7
- package/dist/chunk-J4NOQ2YL.js.map +0 -7
- package/src/Prebuilt/components/HMSVideo/PlayButton.jsx +0 -13
package/dist/index.cjs.js
CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
|
|
108
108
|
var define_process_env_default;
|
109
109
|
var init_define_process_env = __esm({
|
110
110
|
"<define:process.env>"() {
|
111
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5ede396e-fae2-4c22-afdd-0f454da9e128", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.9.8-alpha.4", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5ede396e-fae2-4c22-afdd-0f454da9e128", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.12.8-alpha.4", 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.7", 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.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "586", 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_devDependencies__rollup_plugin_image: "^3.0.2", 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.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240218.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.0/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.0-alpha.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:18095", 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__rollup_plugin_commonjs: "^21.0.3", 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.2.8-alpha.4", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8065543694", 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_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: "ec046697fe2d6a12f4be23b04f217cf38e63af34", 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: "798f06e695440a486dc5dbd94ebf819e9180ace412072617faa664fb3749cba4", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1709040556510-0.8027960450697429:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709040556303-0.7176284115096692:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709040534093-0.6805113006718821:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709040533915-0.45728804418563085:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b556612a-3367-406c-a84b-37ad483933bb", INVOCATION_ID: "4cb2ffbe4e4a46ebb260c8a8827715ce", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "453", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", 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_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 272", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.8-alpha.4", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.4", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "ec046697fe2d6a12f4be23b04f217cf38e63af34", 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_5ede396e-fae2-4c22-afdd-0f454da9e128", 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_5ede396e-fae2-4c22-afdd-0f454da9e128", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/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__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5ede396e-fae2-4c22-afdd-0f454da9e128" };
|
111
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_1eeeb889-e810-4357-8dae-7696cc9131eb", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.9.8-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_1eeeb889-e810-4357-8dae-7696cc9131eb", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.12.8-alpha.6", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", 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.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "598", 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_devDependencies__rollup_plugin_image: "^3.0.2", 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.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240218.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.0/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.0-alpha.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:18106", 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__rollup_plugin_commonjs: "^21.0.3", 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.2.8-alpha.6", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8078816063", 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: "666634daeed360298e28b87d08d82b96639e0f70", 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: "c21e1c32024c6a68076244eb1a6fae30faf932b84fb76927426b95760a88de21", 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--1709115828483-0.45227821066223206:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709115828286-0.07337047120319218:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709115805575-0.3880739035407834:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709115805396-0.062155291177570016:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_11d09d9f-3cf1-4f7e-bd5c-b105b3bb09bf", INVOCATION_ID: "5981f37fe33b4681a285f819e990e118", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "455", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", 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_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 269", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.8-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_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", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "666634daeed360298e28b87d08d82b96639e0f70", 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_1eeeb889-e810-4357-8dae-7696cc9131eb", 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_1eeeb889-e810-4357-8dae-7696cc9131eb", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/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__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_1eeeb889-e810-4357-8dae-7696cc9131eb" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -6870,8 +6870,8 @@ var require_lodash = __commonJS({
|
|
6870
6870
|
return { "start": start, "end": end };
|
6871
6871
|
}
|
6872
6872
|
function getWrapDetails(source) {
|
6873
|
-
var
|
6874
|
-
return
|
6873
|
+
var match8 = source.match(reWrapDetails);
|
6874
|
+
return match8 ? match8[1].split(reSplitDetails) : [];
|
6875
6875
|
}
|
6876
6876
|
function hasPath(object, path, hasFunc) {
|
6877
6877
|
path = castPath(path, object);
|
@@ -7139,8 +7139,8 @@ var require_lodash = __commonJS({
|
|
7139
7139
|
if (string.charCodeAt(0) === 46) {
|
7140
7140
|
result2.push("");
|
7141
7141
|
}
|
7142
|
-
string.replace(rePropName, function(
|
7143
|
-
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number ||
|
7142
|
+
string.replace(rePropName, function(match8, number, quote, subString) {
|
7143
|
+
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match8);
|
7144
7144
|
});
|
7145
7145
|
return result2;
|
7146
7146
|
});
|
@@ -8706,7 +8706,7 @@ var require_lodash = __commonJS({
|
|
8706
8706
|
"g"
|
8707
8707
|
);
|
8708
8708
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
8709
|
-
string.replace(reDelimiters, function(
|
8709
|
+
string.replace(reDelimiters, function(match8, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
8710
8710
|
interpolateValue || (interpolateValue = esTemplateValue);
|
8711
8711
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
8712
8712
|
if (escapeValue) {
|
@@ -8720,8 +8720,8 @@ var require_lodash = __commonJS({
|
|
8720
8720
|
if (interpolateValue) {
|
8721
8721
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
8722
8722
|
}
|
8723
|
-
index = offset +
|
8724
|
-
return
|
8723
|
+
index = offset + match8.length;
|
8724
|
+
return match8;
|
8725
8725
|
});
|
8726
8726
|
source += "';\n";
|
8727
8727
|
var variable = hasOwnProperty.call(options, "variable") && options.variable;
|
@@ -8809,13 +8809,13 @@ var require_lodash = __commonJS({
|
|
8809
8809
|
}
|
8810
8810
|
if (isRegExp(separator)) {
|
8811
8811
|
if (string.slice(end).search(separator)) {
|
8812
|
-
var
|
8812
|
+
var match8, substring = result2;
|
8813
8813
|
if (!separator.global) {
|
8814
8814
|
separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
|
8815
8815
|
}
|
8816
8816
|
separator.lastIndex = 0;
|
8817
|
-
while (
|
8818
|
-
var newEnd =
|
8817
|
+
while (match8 = separator.exec(substring)) {
|
8818
|
+
var newEnd = match8.index;
|
8819
8819
|
}
|
8820
8820
|
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
8821
8821
|
}
|
@@ -9890,12 +9890,13 @@ var init_useRoomLayoutScreen = __esm({
|
|
9890
9890
|
});
|
9891
9891
|
|
9892
9892
|
// src/Prebuilt/components/AppData/useSidepane.js
|
9893
|
-
var import_react33, import_react_sdk9, useIsSidepaneTypeOpen, useSidepaneState, useSidepaneToggle, usePollViewToggle, useSidepaneReset;
|
9893
|
+
var import_react33, import_ts_pattern, import_react_sdk9, useIsSidepaneTypeOpen, useSidepaneState, useSidepaneToggle, usePollViewToggle, useSidepaneReset;
|
9894
9894
|
var init_useSidepane = __esm({
|
9895
9895
|
"src/Prebuilt/components/AppData/useSidepane.js"() {
|
9896
9896
|
"use strict";
|
9897
9897
|
init_define_process_env();
|
9898
9898
|
import_react33 = require("react");
|
9899
|
+
import_ts_pattern = require("ts-pattern");
|
9899
9900
|
import_react_sdk9 = require("@100mslive/react-sdk");
|
9900
9901
|
init_useUISettings();
|
9901
9902
|
init_constants();
|
@@ -9924,8 +9925,18 @@ var init_useSidepane = __esm({
|
|
9924
9925
|
const isOpen = useSidepaneState() === SIDE_PANE_OPTIONS.POLLS;
|
9925
9926
|
const togglePollView = (0, import_react33.useCallback)(
|
9926
9927
|
(id) => {
|
9927
|
-
|
9928
|
-
|
9928
|
+
const newView = (0, import_ts_pattern.match)({ id, isOpen, view }).with(
|
9929
|
+
{
|
9930
|
+
id: import_ts_pattern.P.string
|
9931
|
+
},
|
9932
|
+
() => POLL_VIEWS.VOTE
|
9933
|
+
).with(
|
9934
|
+
{
|
9935
|
+
isOpen: true,
|
9936
|
+
view: import_ts_pattern.P.when((view2) => !!view2)
|
9937
|
+
},
|
9938
|
+
() => null
|
9939
|
+
).otherwise(() => POLL_VIEWS.CREATE_POLL_QUIZ);
|
9929
9940
|
setPollState({
|
9930
9941
|
[POLL_STATE.pollInView]: id,
|
9931
9942
|
[POLL_STATE.view]: newView
|
@@ -10194,7 +10205,7 @@ var init_AuthToken = __esm({
|
|
10194
10205
|
alignItems: "center"
|
10195
10206
|
}
|
10196
10207
|
},
|
10197
|
-
/* @__PURE__ */ import_react36.default.createElement("img", { src: transaction_error_default, height: 80, width: 80 }),
|
10208
|
+
/* @__PURE__ */ import_react36.default.createElement("img", { src: transaction_error_default, height: 80, width: 80, alt: "Token Error" }),
|
10198
10209
|
/* @__PURE__ */ import_react36.default.createElement(Text, { variant: "h4", css: { textAlign: "center", mb: "$4", mt: "$10" } }, error.title),
|
10199
10210
|
/* @__PURE__ */ import_react36.default.createElement(Text, { css: { c: "$on_surface_medium", textAlign: "center" } }, error.body)
|
10200
10211
|
));
|
@@ -10475,6 +10486,10 @@ var init_Sheet = __esm({
|
|
10475
10486
|
animation: `${sheetSlideOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
10476
10487
|
}
|
10477
10488
|
},
|
10489
|
+
"@ls": {
|
10490
|
+
maxWidth: "50%",
|
10491
|
+
margin: "0 auto"
|
10492
|
+
},
|
10478
10493
|
variants: {
|
10479
10494
|
side: {
|
10480
10495
|
top: {
|
@@ -13123,12 +13138,13 @@ var init_StartRecording = __esm({
|
|
13123
13138
|
});
|
13124
13139
|
|
13125
13140
|
// src/Prebuilt/components/StatsForNerds.jsx
|
13126
|
-
var import_react61, import_react_sdk23, StatsForNerds, useTracksWithLabel, LocalPeerStats, TrackStats, StatsRow2, formatBytes2;
|
13141
|
+
var import_react61, import_ts_pattern2, import_react_sdk23, StatsForNerds, useTracksWithLabel, LocalPeerStats, TrackStats, StatsRow2, formatBytes2;
|
13127
13142
|
var init_StatsForNerds = __esm({
|
13128
13143
|
"src/Prebuilt/components/StatsForNerds.jsx"() {
|
13129
13144
|
"use strict";
|
13130
13145
|
init_define_process_env();
|
13131
13146
|
import_react61 = __toESM(require("react"));
|
13147
|
+
import_ts_pattern2 = require("ts-pattern");
|
13132
13148
|
import_react_sdk23 = require("@100mslive/react-sdk");
|
13133
13149
|
init_Divider2();
|
13134
13150
|
init_Dropdown2();
|
@@ -13267,7 +13283,12 @@ var init_StatsForNerds = __esm({
|
|
13267
13283
|
};
|
13268
13284
|
TrackStats = ({ trackID, layer, local }) => {
|
13269
13285
|
var _a8;
|
13270
|
-
const selector =
|
13286
|
+
const selector = (0, import_ts_pattern2.match)({ trackID, layer, local }).with(
|
13287
|
+
{
|
13288
|
+
layer: import_ts_pattern2.P.when((layer2) => !!layer2)
|
13289
|
+
},
|
13290
|
+
() => import_react_sdk23.selectHMSStats.localVideoTrackStatsByLayer(layer)(trackID)
|
13291
|
+
).with({ local: import_ts_pattern2.P.when((local2) => !!local2) }, () => import_react_sdk23.selectHMSStats.localAudioTrackStatsByID(trackID)).otherwise(() => import_react_sdk23.selectHMSStats.trackStatsByID(trackID));
|
13271
13292
|
const stats = (0, import_react_sdk23.useHMSStatsStore)(selector);
|
13272
13293
|
if (!stats) {
|
13273
13294
|
return null;
|
@@ -13279,7 +13300,13 @@ var init_StatsForNerds = __esm({
|
|
13279
13300
|
label: inbound ? "Bytes Received" : "Bytes Sent",
|
13280
13301
|
value: formatBytes2(inbound ? stats.bytesReceived : stats.bytesSent)
|
13281
13302
|
}
|
13282
|
-
), stats.kind === "video" && /* @__PURE__ */ import_react61.default.createElement(import_react61.default.Fragment, null, /* @__PURE__ */ import_react61.default.createElement(StatsRow2, { label: "Framerate", value: stats.framesPerSecond }), !inbound && /* @__PURE__ */ import_react61.default.createElement(StatsRow2, { label: "Quality Limitation Reason", value: stats.qualityLimitationReason })), /* @__PURE__ */ import_react61.default.createElement(
|
13303
|
+
), stats.kind === "video" && /* @__PURE__ */ import_react61.default.createElement(import_react61.default.Fragment, null, /* @__PURE__ */ import_react61.default.createElement(StatsRow2, { label: "Framerate", value: stats.framesPerSecond }), !inbound && /* @__PURE__ */ import_react61.default.createElement(StatsRow2, { label: "Quality Limitation Reason", value: stats.qualityLimitationReason })), /* @__PURE__ */ import_react61.default.createElement(
|
13304
|
+
StatsRow2,
|
13305
|
+
{
|
13306
|
+
label: "Round Trip Time",
|
13307
|
+
value: stats.roundTripTime ? `${(stats.roundTripTime * 1e3).toFixed(3)} ms` : "-"
|
13308
|
+
}
|
13309
|
+
));
|
13283
13310
|
};
|
13284
13311
|
StatsRow2 = import_react61.default.memo(({ label, value }) => /* @__PURE__ */ import_react61.default.createElement(Box, { css: { bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" } }, /* @__PURE__ */ import_react61.default.createElement(
|
13285
13312
|
Text,
|
@@ -13689,13 +13716,14 @@ var init_useMetadata = __esm({
|
|
13689
13716
|
});
|
13690
13717
|
|
13691
13718
|
// src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
|
13692
|
-
var import_react68, import_hls_player, import_react_sdk28, import_react_icons27, MODALS, DesktopOptions;
|
13719
|
+
var import_react68, import_hls_player, import_ts_pattern3, import_react_sdk28, import_react_icons27, MODALS, DesktopOptions;
|
13693
13720
|
var init_DesktopOptions = __esm({
|
13694
13721
|
"src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx"() {
|
13695
13722
|
"use strict";
|
13696
13723
|
init_define_process_env();
|
13697
13724
|
import_react68 = __toESM(require("react"));
|
13698
13725
|
import_hls_player = require("@100mslive/hls-player");
|
13726
|
+
import_ts_pattern3 = require("ts-pattern");
|
13699
13727
|
import_react_sdk28 = require("@100mslive/react-sdk");
|
13700
13728
|
import_react_icons27 = require("@100mslive/react-icons");
|
13701
13729
|
init_src();
|
@@ -13779,23 +13807,33 @@ var init_DesktopOptions = __esm({
|
|
13779
13807
|
/* @__PURE__ */ import_react68.default.createElement(FullScreenItem, null),
|
13780
13808
|
/* @__PURE__ */ import_react68.default.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }),
|
13781
13809
|
/* @__PURE__ */ import_react68.default.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.DEVICE_SETTINGS, true), "data-testid": "device_settings_btn" }, /* @__PURE__ */ import_react68.default.createElement(import_react_icons27.SettingsIcon, null), /* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Settings")),
|
13782
|
-
|
13810
|
+
(0, import_ts_pattern3.match)({ screenType, isSupported: import_hls_player.HMSHLSPlayer.isSupported() }).with({ screenType: "hls_live_streaming", isSupported: false }, () => null).with({ screenType: "hls_live_streaming", isSupported: true }, () => {
|
13811
|
+
return /* @__PURE__ */ import_react68.default.createElement(
|
13812
|
+
Dropdown.Item,
|
13813
|
+
{
|
13814
|
+
onClick: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats),
|
13815
|
+
"data-testid": "hls_stats"
|
13816
|
+
},
|
13817
|
+
/* @__PURE__ */ import_react68.default.createElement(
|
13818
|
+
Checkbox.Root,
|
13819
|
+
{
|
13820
|
+
css: { margin: "$2" },
|
13821
|
+
checked: enablHlsStats,
|
13822
|
+
onCheckedChange: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats)
|
13823
|
+
},
|
13824
|
+
/* @__PURE__ */ import_react68.default.createElement(Checkbox.Indicator, null, /* @__PURE__ */ import_react68.default.createElement(import_react_icons27.CheckIcon, { width: 16, height: 16 }))
|
13825
|
+
),
|
13826
|
+
/* @__PURE__ */ import_react68.default.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`))
|
13827
|
+
);
|
13828
|
+
}).otherwise(() => /* @__PURE__ */ import_react68.default.createElement(
|
13783
13829
|
Dropdown.Item,
|
13784
13830
|
{
|
13785
|
-
onClick: () =>
|
13786
|
-
"data-testid": "
|
13831
|
+
onClick: () => updateState(MODALS.STATS_FOR_NERDS, true),
|
13832
|
+
"data-testid": "stats_for_nerds_btn"
|
13787
13833
|
},
|
13788
|
-
/* @__PURE__ */ import_react68.default.createElement(
|
13789
|
-
|
13790
|
-
|
13791
|
-
css: { margin: "$2" },
|
13792
|
-
checked: enablHlsStats,
|
13793
|
-
onCheckedChange: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats)
|
13794
|
-
},
|
13795
|
-
/* @__PURE__ */ import_react68.default.createElement(Checkbox.Indicator, null, /* @__PURE__ */ import_react68.default.createElement(import_react_icons27.CheckIcon, { width: 16, height: 16 }))
|
13796
|
-
),
|
13797
|
-
/* @__PURE__ */ import_react68.default.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`))
|
13798
|
-
) : null : /* @__PURE__ */ import_react68.default.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.STATS_FOR_NERDS, true), "data-testid": "stats_for_nreds_btn" }, /* @__PURE__ */ import_react68.default.createElement(import_react_icons27.InfoIcon, null), /* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Stats for Nerds"))
|
13834
|
+
/* @__PURE__ */ import_react68.default.createElement(import_react_icons27.InfoIcon, null),
|
13835
|
+
/* @__PURE__ */ import_react68.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Stats for Nerds")
|
13836
|
+
))
|
13799
13837
|
)
|
13800
13838
|
), openModals.has(MODALS.BULK_ROLE_CHANGE) && /* @__PURE__ */ import_react68.default.createElement(BulkRoleChangeModal, { onOpenChange: (value) => updateState(MODALS.BULK_ROLE_CHANGE, value) }), openModals.has(MODALS.MUTE_ALL) && /* @__PURE__ */ import_react68.default.createElement(MuteAllModal, { onOpenChange: (value) => updateState(MODALS.MUTE_ALL, value) }), openModals.has(MODALS.START_RECORDING) && /* @__PURE__ */ import_react68.default.createElement(StartRecording_default, { open: true, onOpenChange: (value) => updateState(MODALS.START_RECORDING, value) }), openModals.has(MODALS.DEVICE_SETTINGS) && /* @__PURE__ */ import_react68.default.createElement(
|
13801
13839
|
SettingsModal_default,
|
@@ -13934,7 +13972,7 @@ var require_ua_parser = __commonJS({
|
|
13934
13972
|
}
|
13935
13973
|
};
|
13936
13974
|
var rgxMapper = function(ua, arrays) {
|
13937
|
-
var i = 0, j, k2, p, q2, matches,
|
13975
|
+
var i = 0, j, k2, p, q2, matches, match8;
|
13938
13976
|
while (i < arrays.length && !matches) {
|
13939
13977
|
var regex = arrays[i], props = arrays[i + 1];
|
13940
13978
|
j = k2 = 0;
|
@@ -13945,26 +13983,26 @@ var require_ua_parser = __commonJS({
|
|
13945
13983
|
matches = regex[j++].exec(ua);
|
13946
13984
|
if (!!matches) {
|
13947
13985
|
for (p = 0; p < props.length; p++) {
|
13948
|
-
|
13986
|
+
match8 = matches[++k2];
|
13949
13987
|
q2 = props[p];
|
13950
13988
|
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
13951
13989
|
if (q2.length === 2) {
|
13952
13990
|
if (typeof q2[1] == FUNC_TYPE) {
|
13953
|
-
this[q2[0]] = q2[1].call(this,
|
13991
|
+
this[q2[0]] = q2[1].call(this, match8);
|
13954
13992
|
} else {
|
13955
13993
|
this[q2[0]] = q2[1];
|
13956
13994
|
}
|
13957
13995
|
} else if (q2.length === 3) {
|
13958
13996
|
if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
|
13959
|
-
this[q2[0]] =
|
13997
|
+
this[q2[0]] = match8 ? q2[1].call(this, match8, q2[2]) : undefined2;
|
13960
13998
|
} else {
|
13961
|
-
this[q2[0]] =
|
13999
|
+
this[q2[0]] = match8 ? match8.replace(q2[1], q2[2]) : undefined2;
|
13962
14000
|
}
|
13963
14001
|
} else if (q2.length === 4) {
|
13964
|
-
this[q2[0]] =
|
14002
|
+
this[q2[0]] = match8 ? q2[3].call(this, match8.replace(q2[1], q2[2])) : undefined2;
|
13965
14003
|
}
|
13966
14004
|
} else {
|
13967
|
-
this[q2] =
|
14005
|
+
this[q2] = match8 ? match8 : undefined2;
|
13968
14006
|
}
|
13969
14007
|
}
|
13970
14008
|
}
|
@@ -15855,8 +15893,8 @@ var require_lodash2 = __commonJS({
|
|
15855
15893
|
|
15856
15894
|
// ../../node_modules/webrtc-adapter/src/js/utils.js
|
15857
15895
|
function extractVersion(uastring, expr, pos) {
|
15858
|
-
const
|
15859
|
-
return
|
15896
|
+
const match8 = uastring.match(expr);
|
15897
|
+
return match8 && match8.length >= pos && parseInt(match8[pos], 10);
|
15860
15898
|
}
|
15861
15899
|
function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
|
15862
15900
|
if (!window2.RTCPeerConnection) {
|
@@ -16148,7 +16186,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16148
16186
|
if (matches) {
|
16149
16187
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
16150
16188
|
devices = devices.filter((d2) => d2.kind === "videoinput");
|
16151
|
-
let dev = devices.find((d2) => matches.some((
|
16189
|
+
let dev = devices.find((d2) => matches.some((match8) => d2.label.toLowerCase().includes(match8)));
|
16152
16190
|
if (!dev && devices.length && matches.includes("back")) {
|
16153
16191
|
dev = devices[devices.length - 1];
|
16154
16192
|
}
|
@@ -18246,11 +18284,11 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18246
18284
|
});
|
18247
18285
|
};
|
18248
18286
|
const getRemoteFirefoxVersion = function(description) {
|
18249
|
-
const
|
18250
|
-
if (
|
18287
|
+
const match8 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
18288
|
+
if (match8 === null || match8.length < 2) {
|
18251
18289
|
return -1;
|
18252
18290
|
}
|
18253
|
-
const version = parseInt(
|
18291
|
+
const version = parseInt(match8[1], 10);
|
18254
18292
|
return version !== version ? -1 : version;
|
18255
18293
|
};
|
18256
18294
|
const getCanSendMaxMessageSize = function(remoteIsFirefox) {
|
@@ -18275,12 +18313,12 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18275
18313
|
if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
|
18276
18314
|
maxMessageSize = 65535;
|
18277
18315
|
}
|
18278
|
-
const
|
18316
|
+
const match8 = import_sdp.default.matchPrefix(
|
18279
18317
|
description.sdp,
|
18280
18318
|
"a=max-message-size:"
|
18281
18319
|
);
|
18282
|
-
if (
|
18283
|
-
maxMessageSize = parseInt(
|
18320
|
+
if (match8.length > 0) {
|
18321
|
+
maxMessageSize = parseInt(match8[0].substring(19), 10);
|
18284
18322
|
} else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
|
18285
18323
|
maxMessageSize = 2147483637;
|
18286
18324
|
}
|
@@ -19102,13 +19140,13 @@ var require_parser = __commonJS({
|
|
19102
19140
|
var toIntIfInt = function(v2) {
|
19103
19141
|
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
19104
19142
|
};
|
19105
|
-
var attachProperties = function(
|
19143
|
+
var attachProperties = function(match8, location, names, rawName) {
|
19106
19144
|
if (rawName && !names) {
|
19107
|
-
location[rawName] = toIntIfInt(
|
19145
|
+
location[rawName] = toIntIfInt(match8[1]);
|
19108
19146
|
} else {
|
19109
19147
|
for (var i = 0; i < names.length; i += 1) {
|
19110
|
-
if (
|
19111
|
-
location[names[i]] = toIntIfInt(
|
19148
|
+
if (match8[i + 1] != null) {
|
19149
|
+
location[names[i]] = toIntIfInt(match8[i + 1]);
|
19112
19150
|
}
|
19113
19151
|
}
|
19114
19152
|
}
|
@@ -19457,7 +19495,7 @@ var init_dist = __esm({
|
|
19457
19495
|
};
|
19458
19496
|
ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19459
19497
|
dr = ba((Xc, $a) => {
|
19460
|
-
$a.exports = { version: "0.11.8-alpha.
|
19498
|
+
$a.exports = { version: "0.11.8-alpha.6", 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"] };
|
19461
19499
|
});
|
19462
19500
|
Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
|
19463
19501
|
Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
|
@@ -20652,7 +20690,7 @@ var init_StreamActions = __esm({
|
|
20652
20690
|
setLiveTime(Date.now() - timeStamp.getTime());
|
20653
20691
|
}
|
20654
20692
|
}, 1e3);
|
20655
|
-
}, [hlsState == null ? void 0 : hlsState.running, hlsState == null ? void 0 : hlsState.variants]);
|
20693
|
+
}, [hlsState == null ? void 0 : hlsState.running, hlsState == null ? void 0 : hlsState.variants, screenType]);
|
20656
20694
|
(0, import_react72.useEffect)(() => {
|
20657
20695
|
if (hlsState == null ? void 0 : hlsState.running) {
|
20658
20696
|
startTimer();
|
@@ -21133,13 +21171,14 @@ var init_useUnreadPollQuizPresent = __esm({
|
|
21133
21171
|
});
|
21134
21172
|
|
21135
21173
|
// src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
|
21136
|
-
var import_react78, import_react_use11, import_react_sdk36, import_react_icons31, MODALS2, MwebOptions;
|
21174
|
+
var import_react78, import_react_use11, import_ts_pattern4, import_react_sdk36, import_react_icons31, MODALS2, MwebOptions;
|
21137
21175
|
var init_MwebOptions = __esm({
|
21138
21176
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx"() {
|
21139
21177
|
"use strict";
|
21140
21178
|
init_define_process_env();
|
21141
21179
|
import_react78 = __toESM(require("react"));
|
21142
21180
|
import_react_use11 = require("react-use");
|
21181
|
+
import_ts_pattern4 = require("ts-pattern");
|
21143
21182
|
import_react_sdk36 = require("@100mslive/react-sdk");
|
21144
21183
|
import_react_icons31 = require("@100mslive/react-icons");
|
21145
21184
|
init_src();
|
@@ -21352,7 +21391,7 @@ var init_MwebOptions = __esm({
|
|
21352
21391
|
})
|
21353
21392
|
},
|
21354
21393
|
isRecordingLoading ? /* @__PURE__ */ import_react78.default.createElement(Loading, null) : /* @__PURE__ */ import_react78.default.createElement(import_react_icons31.RecordIcon, null),
|
21355
|
-
/* @__PURE__ */ import_react78.default.createElement(ActionTile.Title, null, isBrowserRecordingOn
|
21394
|
+
/* @__PURE__ */ import_react78.default.createElement(ActionTile.Title, null, (0, import_ts_pattern4.match)({ isBrowserRecordingOn, isRecordingLoading }).with({ isBrowserRecordingOn: true, isRecordingLoading: false }, () => "Recording On").with({ isRecordingLoading: true }, () => "Starting Recording").with({ isRecordingLoading: false }, () => "Start Recording"))
|
21356
21395
|
) : null,
|
21357
21396
|
title || description ? /* @__PURE__ */ import_react78.default.createElement(
|
21358
21397
|
ActionTile.Root,
|
@@ -22279,25 +22318,29 @@ var init_RoleOptions = __esm({
|
|
22279
22318
|
init_useRoomLayoutScreen();
|
22280
22319
|
init_utils2();
|
22281
22320
|
dropdownItemCSS = { backgroundColor: "$surface_default", gap: "$4", p: "$8" };
|
22282
|
-
optionTextCSS = {
|
22321
|
+
optionTextCSS = {
|
22322
|
+
fontWeight: "$semiBold",
|
22323
|
+
color: "$on_surface_high",
|
22324
|
+
textTransform: "none",
|
22325
|
+
whiteSpace: "nowrap"
|
22326
|
+
};
|
22283
22327
|
MuteUnmuteOption = ({ roleName, peerList }) => {
|
22284
|
-
var _a8, _b7;
|
22285
22328
|
const vanillaStore = (0, import_react_sdk43.useHMSVanillaStore)();
|
22286
22329
|
const store = vanillaStore.getState();
|
22287
22330
|
const hmsActions = (0, import_react_sdk43.useHMSActions)();
|
22288
22331
|
const permissions = (0, import_react_sdk43.useHMSStore)(import_react_sdk43.selectPermissions);
|
22289
22332
|
const role = (0, import_react_sdk43.useHMSStore)((0, import_react_sdk43.selectRoleByRoleName)(roleName));
|
22290
|
-
let
|
22291
|
-
let
|
22333
|
+
let isVideoOnForSomePeers = false;
|
22334
|
+
let isAudioOnForSomePeers = false;
|
22292
22335
|
peerList.forEach((peer) => {
|
22293
|
-
var
|
22336
|
+
var _a8, _b7;
|
22294
22337
|
if (peer.isLocal) {
|
22295
22338
|
return;
|
22296
22339
|
}
|
22297
|
-
const isAudioOn = !!peer.audioTrack && ((
|
22298
|
-
const isVideoOn = !!peer.videoTrack && ((
|
22299
|
-
|
22300
|
-
|
22340
|
+
const isAudioOn = !!peer.audioTrack && ((_a8 = store.tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
|
22341
|
+
const isVideoOn = !!peer.videoTrack && ((_b7 = store.tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
|
22342
|
+
isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
|
22343
|
+
isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
|
22301
22344
|
});
|
22302
22345
|
const setTrackEnabled = (type, enabled = false) => __async(void 0, null, function* () {
|
22303
22346
|
try {
|
@@ -22306,7 +22349,10 @@ var init_RoleOptions = __esm({
|
|
22306
22349
|
console.error(e);
|
22307
22350
|
}
|
22308
22351
|
});
|
22309
|
-
|
22352
|
+
if (!role) {
|
22353
|
+
return null;
|
22354
|
+
}
|
22355
|
+
return /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, role.publishParams.allowed.includes("audio") && /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, isAudioOnForSomePeers && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio for All")) : null, !isAudioOnForSomePeers && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Audio for All")) : null), role.publishParams.allowed.includes("video") && /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, isVideoOnForSomePeers && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video for All")) : null, !isVideoOnForSomePeers && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Video for All")) : null));
|
22310
22356
|
};
|
22311
22357
|
RoleOptions = ({ roleName, peerList }) => {
|
22312
22358
|
const [openOptions, setOpenOptions] = (0, import_react92.useState)(false);
|
@@ -22316,8 +22362,10 @@ var init_RoleOptions = __esm({
|
|
22316
22362
|
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
22317
22363
|
const canMuteOrUnmute = (permissions == null ? void 0 : permissions.mute) || (permissions == null ? void 0 : permissions.unmute);
|
22318
22364
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
22365
|
+
const role = (0, import_react_sdk43.useHMSStore)((0, import_react_sdk43.selectRoleByRoleName)(roleName));
|
22319
22366
|
const canRemoveRoleFromRoom = (permissions == null ? void 0 : permissions.removeOthers) && (on_stage_role === roleName || (off_stage_roles == null ? void 0 : off_stage_roles.includes(roleName)));
|
22320
|
-
if (!(canMuteOrUnmute || canRemoveRoleFromStage || canRemoveRoleFromRoom) || peerList.length === 0
|
22367
|
+
if (!(canMuteOrUnmute || canRemoveRoleFromStage || canRemoveRoleFromRoom) || peerList.length === 0 || // if only local peer is present no need to show any options
|
22368
|
+
peerList.length === 1 && peerList[0].isLocal || !role) {
|
22321
22369
|
return null;
|
22322
22370
|
}
|
22323
22371
|
const removeAllFromStage = () => {
|
@@ -22362,7 +22410,7 @@ var init_RoleOptions = __esm({
|
|
22362
22410
|
Dropdown.Content,
|
22363
22411
|
{
|
22364
22412
|
onClick: (e) => e.stopPropagation(),
|
22365
|
-
css: { w: "max-content",
|
22413
|
+
css: { w: "max-content", bg: "$surface_default", py: 0 },
|
22366
22414
|
align: "end"
|
22367
22415
|
},
|
22368
22416
|
canRemoveRoleFromStage && /* @__PURE__ */ import_react92.default.createElement(
|
@@ -24396,12 +24444,13 @@ var init_LeaderboardSummary = __esm({
|
|
24396
24444
|
});
|
24397
24445
|
|
24398
24446
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
24399
|
-
var import_react117, import_react_sdk55, import_react_icons57, QuestionCard2, QuestionActions;
|
24447
|
+
var import_react117, import_ts_pattern5, import_react_sdk55, import_react_icons57, QuestionCard2, QuestionActions;
|
24400
24448
|
var init_QuestionCard = __esm({
|
24401
24449
|
"src/Prebuilt/components/Polls/Voting/QuestionCard.jsx"() {
|
24402
24450
|
"use strict";
|
24403
24451
|
init_define_process_env();
|
24404
24452
|
import_react117 = __toESM(require("react"));
|
24453
|
+
import_ts_pattern5 = require("ts-pattern");
|
24405
24454
|
import_react_sdk55 = require("@100mslive/react-sdk");
|
24406
24455
|
import_react_icons57 = require("@100mslive/react-icons");
|
24407
24456
|
init_src();
|
@@ -24482,15 +24531,22 @@ var init_QuestionCard = __esm({
|
|
24482
24531
|
{
|
24483
24532
|
variant: "caption",
|
24484
24533
|
css: {
|
24485
|
-
color: respondedToQuiz
|
24534
|
+
color: (0, import_ts_pattern5.match)({ respondedToQuiz, isLive, isCorrectAnswer }).when(
|
24535
|
+
({ respondedToQuiz: respondedToQuiz2, isLive: isLive2 }) => respondedToQuiz2 && !isLive2,
|
24536
|
+
({ isCorrectAnswer: isCorrectAnswer2 }) => isCorrectAnswer2 ? "$alert_success" : "$alert_error_default"
|
24537
|
+
).otherwise(() => "$on_surface_low"),
|
24486
24538
|
fontWeight: "$semiBold",
|
24487
24539
|
display: "flex",
|
24488
24540
|
alignItems: "center",
|
24489
24541
|
gap: "$4"
|
24490
24542
|
}
|
24491
24543
|
},
|
24492
|
-
|
24493
|
-
|
24544
|
+
(0, import_ts_pattern5.match)({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
|
24545
|
+
({ respondedToQuiz: respondedToQuiz2, pollEnded: pollEnded2 }) => respondedToQuiz2 && pollEnded2,
|
24546
|
+
({ isCorrectAnswer: isCorrectAnswer2 }) => {
|
24547
|
+
return isCorrectAnswer2 ? /* @__PURE__ */ import_react117.default.createElement(import_react_icons57.CheckCircleIcon, { height: 16, width: 16 }) : /* @__PURE__ */ import_react117.default.createElement(import_react_icons57.CrossCircleIcon, { height: 16, width: 16 });
|
24548
|
+
}
|
24549
|
+
).otherwise(() => null),
|
24494
24550
|
"QUESTION ",
|
24495
24551
|
index,
|
24496
24552
|
" OF ",
|
@@ -25254,13 +25310,13 @@ var init_usePinnedBy = __esm({
|
|
25254
25310
|
const pinnedMessages = (0, import_react_sdk61.useHMSStore)((0, import_react_sdk61.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
25255
25311
|
const [pinnedBy, setPinnedBy] = (0, import_react130.useState)("");
|
25256
25312
|
(0, import_react130.useEffect)(() => {
|
25257
|
-
let
|
25313
|
+
let match8 = "";
|
25258
25314
|
pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
|
25259
25315
|
if (pinnedMessage.id === messageId) {
|
25260
|
-
|
25316
|
+
match8 = pinnedMessage.pinnedBy;
|
25261
25317
|
}
|
25262
25318
|
});
|
25263
|
-
setPinnedBy(
|
25319
|
+
setPinnedBy(match8);
|
25264
25320
|
}, [messageId, pinnedMessages]);
|
25265
25321
|
return pinnedBy;
|
25266
25322
|
};
|
@@ -26146,7 +26202,7 @@ var init_ChatFooter = __esm({
|
|
26146
26202
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
26147
26203
|
setRoleSelector(defaultSelection);
|
26148
26204
|
} else {
|
26149
|
-
if (!(isMobile || isLandscapeHLSStream)
|
26205
|
+
if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
|
26150
26206
|
(_b8 = inputRef.current) == null ? void 0 : _b8.focus();
|
26151
26207
|
}
|
26152
26208
|
}
|
@@ -26848,13 +26904,14 @@ var init_ChatSettings = __esm({
|
|
26848
26904
|
});
|
26849
26905
|
|
26850
26906
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
26851
|
-
var import_react145, import_react_use24, import_react_sdk71, import_react_icons70, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
|
26907
|
+
var import_react145, import_react_use24, import_ts_pattern6, import_react_sdk71, import_react_icons70, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
|
26852
26908
|
var init_SidePaneTabs = __esm({
|
26853
26909
|
"src/Prebuilt/components/SidePaneTabs.tsx"() {
|
26854
26910
|
"use strict";
|
26855
26911
|
init_define_process_env();
|
26856
26912
|
import_react145 = __toESM(require("react"));
|
26857
26913
|
import_react_use24 = require("react-use");
|
26914
|
+
import_ts_pattern6 = require("ts-pattern");
|
26858
26915
|
import_react_sdk71 = require("@100mslive/react-sdk");
|
26859
26916
|
import_react_icons70 = require("@100mslive/react-icons");
|
26860
26917
|
init_Chat();
|
@@ -26868,12 +26925,15 @@ var init_SidePaneTabs = __esm({
|
|
26868
26925
|
init_utils2();
|
26869
26926
|
init_constants();
|
26870
26927
|
tabTriggerCSS = {
|
26871
|
-
color: "$
|
26928
|
+
color: "$on_surface_low",
|
26872
26929
|
p: "$4",
|
26873
26930
|
fontWeight: "$semiBold",
|
26874
26931
|
fontSize: "$sm",
|
26875
26932
|
w: "100%",
|
26876
|
-
justifyContent: "center"
|
26933
|
+
justifyContent: "center",
|
26934
|
+
'&[data-state="active"]': {
|
26935
|
+
color: "$on_surface_high"
|
26936
|
+
}
|
26877
26937
|
};
|
26878
26938
|
ParticipantCount2 = ({ count }) => {
|
26879
26939
|
return count < 1e3 ? /* @__PURE__ */ import_react145.default.createElement("span", null, "(", count, ")") : /* @__PURE__ */ import_react145.default.createElement(Tooltip, { title: count }, /* @__PURE__ */ import_react145.default.createElement("span", null, "(", getFormattedCount(count), ")"));
|
@@ -26897,13 +26957,13 @@ var init_SidePaneTabs = __esm({
|
|
26897
26957
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
26898
26958
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
26899
26959
|
(0, import_react145.useEffect)(() => {
|
26900
|
-
|
26960
|
+
(0, import_ts_pattern6.match)({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
26901
26961
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
26902
|
-
}
|
26962
|
+
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
26903
26963
|
setActiveTab(SIDE_PANE_OPTIONS.CHAT);
|
26904
|
-
}
|
26964
|
+
}).with({ showChat: false, showParticipants: false }, () => {
|
26905
26965
|
resetSidePane();
|
26906
|
-
}
|
26966
|
+
});
|
26907
26967
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
26908
26968
|
(0, import_react145.useEffect)(() => {
|
26909
26969
|
setActiveTab(active);
|
@@ -26935,74 +26995,29 @@ var init_SidePaneTabs = __esm({
|
|
26935
26995
|
transition: "margin 0.3s ease-in-out"
|
26936
26996
|
}
|
26937
26997
|
},
|
26938
|
-
isOverlayChat
|
26939
|
-
|
26940
|
-
|
26941
|
-
variant: "sm",
|
26942
|
-
css: {
|
26943
|
-
fontWeight: "$semiBold",
|
26944
|
-
p: "$4",
|
26945
|
-
c: "$on_surface_high",
|
26946
|
-
pr: "$12",
|
26947
|
-
"&:empty": { display: "none" }
|
26948
|
-
}
|
26949
|
-
},
|
26950
|
-
activeTab === SIDE_PANE_OPTIONS.CHAT ? screenType !== "hls_live_streaming" && chat_title : /* @__PURE__ */ import_react145.default.createElement("span", null, "Participants\xA0", /* @__PURE__ */ import_react145.default.createElement(ParticipantCount2, { count: peerCount }))
|
26951
|
-
), /* @__PURE__ */ import_react145.default.createElement(Flex, null, showChatSettings ? /* @__PURE__ */ import_react145.default.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ import_react145.default.createElement(
|
26952
|
-
IconButton,
|
26953
|
-
{
|
26954
|
-
css: {
|
26955
|
-
my: "$1",
|
26956
|
-
color: "$on_surface_medium",
|
26957
|
-
"&:hover": { color: "$on_surface_high" },
|
26958
|
-
"&:empty": { display: "none" }
|
26959
|
-
},
|
26960
|
-
onClick: (e) => {
|
26961
|
-
e.stopPropagation();
|
26962
|
-
if (activeTab === SIDE_PANE_OPTIONS.CHAT) {
|
26963
|
-
toggleChat();
|
26964
|
-
} else {
|
26965
|
-
toggleParticipants();
|
26966
|
-
}
|
26967
|
-
},
|
26968
|
-
"data-testid": "close_chat"
|
26969
|
-
},
|
26970
|
-
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ import_react145.default.createElement(import_react_icons70.CrossIcon, null)
|
26971
|
-
))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ import_react145.default.createElement(Chat, null) : /* @__PURE__ */ import_react145.default.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })) : /* @__PURE__ */ import_react145.default.createElement(
|
26972
|
-
Tabs.Root,
|
26973
|
-
{
|
26974
|
-
value: activeTab,
|
26975
|
-
onValueChange: setActiveTab,
|
26976
|
-
css: {
|
26977
|
-
flexDirection: "column",
|
26978
|
-
size: "100%"
|
26979
|
-
}
|
26980
|
-
},
|
26981
|
-
/* @__PURE__ */ import_react145.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react145.default.createElement(Tabs.List, { css: { flexGrow: 1, borderRadius: "$2", bg: "$surface_default" } }, /* @__PURE__ */ import_react145.default.createElement(
|
26982
|
-
Tabs.Trigger,
|
26983
|
-
{
|
26984
|
-
value: SIDE_PANE_OPTIONS.CHAT,
|
26985
|
-
onClick: toggleChat,
|
26986
|
-
css: __spreadProps(__spreadValues({}, tabTriggerCSS), {
|
26987
|
-
color: activeTab !== SIDE_PANE_OPTIONS.CHAT ? "$on_surface_low" : "$on_surface_high"
|
26988
|
-
})
|
26989
|
-
},
|
26990
|
-
chat_title
|
26991
|
-
), /* @__PURE__ */ import_react145.default.createElement(
|
26992
|
-
Tabs.Trigger,
|
26998
|
+
(0, import_ts_pattern6.match)({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ import_react145.default.createElement(Chat, null)).with({ hideTabs: true }, () => {
|
26999
|
+
return /* @__PURE__ */ import_react145.default.createElement(import_react145.default.Fragment, null, /* @__PURE__ */ import_react145.default.createElement(Flex, { justify: "between", css: { w: "100%", "&:empty": { display: "none" } } }, /* @__PURE__ */ import_react145.default.createElement(
|
27000
|
+
Text,
|
26993
27001
|
{
|
26994
|
-
|
26995
|
-
|
26996
|
-
|
26997
|
-
|
26998
|
-
|
27002
|
+
variant: "sm",
|
27003
|
+
css: {
|
27004
|
+
fontWeight: "$semiBold",
|
27005
|
+
p: "$4",
|
27006
|
+
c: "$on_surface_high",
|
27007
|
+
pr: "$12",
|
27008
|
+
"&:empty": { display: "none" }
|
27009
|
+
}
|
26999
27010
|
},
|
27000
|
-
"Participants\xA0",
|
27001
|
-
|
27002
|
-
)), showChatSettings ? /* @__PURE__ */ import_react145.default.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ import_react145.default.createElement(
|
27011
|
+
activeTab === SIDE_PANE_OPTIONS.CHAT ? screenType !== "hls_live_streaming" && chat_title : /* @__PURE__ */ import_react145.default.createElement("span", null, "Participants\xA0", /* @__PURE__ */ import_react145.default.createElement(ParticipantCount2, { count: peerCount }))
|
27012
|
+
), /* @__PURE__ */ import_react145.default.createElement(Flex, null, showChatSettings ? /* @__PURE__ */ import_react145.default.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ import_react145.default.createElement(
|
27003
27013
|
IconButton,
|
27004
27014
|
{
|
27005
|
-
css: {
|
27015
|
+
css: {
|
27016
|
+
my: "$1",
|
27017
|
+
color: "$on_surface_medium",
|
27018
|
+
"&:hover": { color: "$on_surface_high" },
|
27019
|
+
"&:empty": { display: "none" }
|
27020
|
+
},
|
27006
27021
|
onClick: (e) => {
|
27007
27022
|
e.stopPropagation();
|
27008
27023
|
if (activeTab === SIDE_PANE_OPTIONS.CHAT) {
|
@@ -27013,11 +27028,39 @@ var init_SidePaneTabs = __esm({
|
|
27013
27028
|
},
|
27014
27029
|
"data-testid": "close_chat"
|
27015
27030
|
},
|
27016
|
-
/* @__PURE__ */ import_react145.default.createElement(import_react_icons70.CrossIcon, null)
|
27017
|
-
)),
|
27018
|
-
|
27019
|
-
|
27020
|
-
|
27031
|
+
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ import_react145.default.createElement(import_react_icons70.CrossIcon, null)
|
27032
|
+
))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ import_react145.default.createElement(Chat, null) : /* @__PURE__ */ import_react145.default.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
|
27033
|
+
}).otherwise(() => {
|
27034
|
+
return /* @__PURE__ */ import_react145.default.createElement(
|
27035
|
+
Tabs.Root,
|
27036
|
+
{
|
27037
|
+
value: activeTab,
|
27038
|
+
onValueChange: setActiveTab,
|
27039
|
+
css: {
|
27040
|
+
flexDirection: "column",
|
27041
|
+
size: "100%"
|
27042
|
+
}
|
27043
|
+
},
|
27044
|
+
/* @__PURE__ */ import_react145.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react145.default.createElement(Tabs.List, { css: { flexGrow: 1, borderRadius: "$2", bg: "$surface_default" } }, /* @__PURE__ */ import_react145.default.createElement(Tabs.Trigger, { value: SIDE_PANE_OPTIONS.CHAT, onClick: toggleChat, css: tabTriggerCSS }, chat_title), /* @__PURE__ */ import_react145.default.createElement(Tabs.Trigger, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, onClick: toggleParticipants, css: tabTriggerCSS }, "Participants\xA0", /* @__PURE__ */ import_react145.default.createElement(ParticipantCount2, { count: peerCount }))), showChatSettings ? /* @__PURE__ */ import_react145.default.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ import_react145.default.createElement(
|
27045
|
+
IconButton,
|
27046
|
+
{
|
27047
|
+
css: { my: "$1", color: "$on_surface_medium", "&:hover": { color: "$on_surface_high" } },
|
27048
|
+
onClick: (e) => {
|
27049
|
+
e.stopPropagation();
|
27050
|
+
if (activeTab === SIDE_PANE_OPTIONS.CHAT) {
|
27051
|
+
toggleChat();
|
27052
|
+
} else {
|
27053
|
+
toggleParticipants();
|
27054
|
+
}
|
27055
|
+
},
|
27056
|
+
"data-testid": "close_chat"
|
27057
|
+
},
|
27058
|
+
/* @__PURE__ */ import_react145.default.createElement(import_react_icons70.CrossIcon, null)
|
27059
|
+
)),
|
27060
|
+
/* @__PURE__ */ import_react145.default.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ import_react145.default.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
|
27061
|
+
/* @__PURE__ */ import_react145.default.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ import_react145.default.createElement(Chat, null))
|
27062
|
+
);
|
27063
|
+
})
|
27021
27064
|
);
|
27022
27065
|
});
|
27023
27066
|
}
|
@@ -27291,7 +27334,7 @@ var init_TileMenuContent = __esm({
|
|
27291
27334
|
"data-testid": isVideoEnabled ? "mute_video_participant_btn" : "unmute_video_participant_btn"
|
27292
27335
|
},
|
27293
27336
|
isVideoEnabled ? /* @__PURE__ */ import_react147.default.createElement(import_react_icons72.VideoOnIcon, { height: 20, width: 20 }) : /* @__PURE__ */ import_react147.default.createElement(import_react_icons72.VideoOffIcon, { height: 20, width: 20 }),
|
27294
|
-
/* @__PURE__ */ import_react147.default.createElement("span", null, isVideoEnabled ? "Mute" : "Request Unmute")
|
27337
|
+
/* @__PURE__ */ import_react147.default.createElement("span", null, isVideoEnabled ? "Mute Video" : "Request to Unmute Video")
|
27295
27338
|
) : null, toggleAudio ? /* @__PURE__ */ import_react147.default.createElement(
|
27296
27339
|
StyledMenuTile.ItemButton,
|
27297
27340
|
{
|
@@ -27304,7 +27347,7 @@ var init_TileMenuContent = __esm({
|
|
27304
27347
|
"data-testid": isAudioEnabled ? "mute_audio_participant_btn" : "unmute_audio_participant_btn"
|
27305
27348
|
},
|
27306
27349
|
isAudioEnabled ? /* @__PURE__ */ import_react147.default.createElement(import_react_icons72.MicOnIcon, { height: 20, width: 20 }) : /* @__PURE__ */ import_react147.default.createElement(import_react_icons72.MicOffIcon, { height: 20, width: 20 }),
|
27307
|
-
/* @__PURE__ */ import_react147.default.createElement("span", null, isAudioEnabled ? "Mute" : "Request Unmute")
|
27350
|
+
/* @__PURE__ */ import_react147.default.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
|
27308
27351
|
) : null, audioTrackID ? /* @__PURE__ */ import_react147.default.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ import_react147.default.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ import_react147.default.createElement(import_react_icons72.SpeakerIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react147.default.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ import_react147.default.createElement(
|
27309
27352
|
Slider,
|
27310
27353
|
{
|
@@ -27980,13 +28023,14 @@ var init_VBPicker = __esm({
|
|
27980
28023
|
});
|
27981
28024
|
|
27982
28025
|
// src/Prebuilt/layouts/SidePane.tsx
|
27983
|
-
var import_react153, import_react_use28, import_react_sdk77, SidePane, SidePane_default;
|
28026
|
+
var import_react153, import_react_use28, import_ts_pattern7, import_react_sdk77, Wrapper3, SidePane, SidePane_default;
|
27984
28027
|
var init_SidePane = __esm({
|
27985
28028
|
"src/Prebuilt/layouts/SidePane.tsx"() {
|
27986
28029
|
"use strict";
|
27987
28030
|
init_define_process_env();
|
27988
28031
|
import_react153 = __toESM(require("react"));
|
27989
28032
|
import_react_use28 = require("react-use");
|
28033
|
+
import_ts_pattern7 = require("ts-pattern");
|
27990
28034
|
import_react_sdk77 = require("@100mslive/react-sdk");
|
27991
28035
|
init_Polls();
|
27992
28036
|
init_RoomDetailsPane();
|
@@ -28002,13 +28046,86 @@ var init_SidePane = __esm({
|
|
28002
28046
|
init_hooks();
|
28003
28047
|
init_utils();
|
28004
28048
|
init_constants();
|
28049
|
+
Wrapper3 = styled("div", {
|
28050
|
+
w: "$100",
|
28051
|
+
h: "100%",
|
28052
|
+
p: "$10",
|
28053
|
+
flex: "1 1 0",
|
28054
|
+
background: "$surface_dim",
|
28055
|
+
r: "$1",
|
28056
|
+
position: "relative",
|
28057
|
+
"@lg": {
|
28058
|
+
w: "100%",
|
28059
|
+
h: "100%",
|
28060
|
+
ml: 0,
|
28061
|
+
right: 0,
|
28062
|
+
position: "fixed",
|
28063
|
+
bottom: 0,
|
28064
|
+
borderRadius: 0,
|
28065
|
+
zIndex: 10
|
28066
|
+
},
|
28067
|
+
"@md": {
|
28068
|
+
p: "$6 $8",
|
28069
|
+
pb: "$12",
|
28070
|
+
borderTopLeftRadius: 0,
|
28071
|
+
borderTopRightRadius: 0,
|
28072
|
+
animation: `${translateAcross({ yFrom: "100%" })} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
28073
|
+
},
|
28074
|
+
variants: {
|
28075
|
+
landscapeStream: {
|
28076
|
+
true: {
|
28077
|
+
"@lg": {
|
28078
|
+
position: "unset !important",
|
28079
|
+
minHeight: "100%"
|
28080
|
+
}
|
28081
|
+
}
|
28082
|
+
},
|
28083
|
+
mobileStream: {
|
28084
|
+
true: {
|
28085
|
+
"@md": {
|
28086
|
+
position: "unset !important",
|
28087
|
+
background: "red"
|
28088
|
+
}
|
28089
|
+
}
|
28090
|
+
},
|
28091
|
+
overlayChat: {
|
28092
|
+
true: {
|
28093
|
+
height: "unset",
|
28094
|
+
maxHeight: 300,
|
28095
|
+
background: "linear-gradient(180deg, rgba(0, 0, 0, 0.00) 35.94%, rgba(0, 0, 0, 0.64) 100%)",
|
28096
|
+
"@md": {
|
28097
|
+
pb: "$20"
|
28098
|
+
}
|
28099
|
+
}
|
28100
|
+
}
|
28101
|
+
},
|
28102
|
+
compoundVariants: [
|
28103
|
+
{
|
28104
|
+
landscapeStream: true,
|
28105
|
+
overlayChat: true,
|
28106
|
+
css: {
|
28107
|
+
position: "unset",
|
28108
|
+
height: "100%",
|
28109
|
+
maxHeight: "unset"
|
28110
|
+
}
|
28111
|
+
},
|
28112
|
+
{
|
28113
|
+
mobileStream: true,
|
28114
|
+
overlayChat: true,
|
28115
|
+
css: {
|
28116
|
+
position: "unset",
|
28117
|
+
height: "100%",
|
28118
|
+
maxHeight: "unset"
|
28119
|
+
}
|
28120
|
+
}
|
28121
|
+
]
|
28122
|
+
});
|
28005
28123
|
SidePane = ({
|
28006
28124
|
tileProps,
|
28007
28125
|
hideControls = false
|
28008
28126
|
}) => {
|
28009
28127
|
var _a8, _b7, _c, _d, _e, _f;
|
28010
28128
|
const isMobile = (0, import_react_use28.useMedia)(config.media.md);
|
28011
|
-
const isLandscape = useIsLandscape();
|
28012
28129
|
const sidepane = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectAppData)(APP_DATA.sidePane));
|
28013
28130
|
const activeScreensharePeerId = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectAppData)(APP_DATA.activeScreensharePeerId));
|
28014
28131
|
const trackId = (_a8 = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
@@ -28019,27 +28136,11 @@ var init_SidePane = __esm({
|
|
28019
28136
|
const isMobileHLSStream = useMobileHLSStream();
|
28020
28137
|
const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
|
28021
28138
|
const resetSidePane = useSidepaneReset();
|
28022
|
-
let ViewComponent;
|
28023
|
-
if (sidepane === SIDE_PANE_OPTIONS.POLLS) {
|
28024
|
-
ViewComponent = /* @__PURE__ */ import_react153.default.createElement(Polls, null);
|
28025
|
-
}
|
28026
|
-
if (sidepane === SIDE_PANE_OPTIONS.PARTICIPANTS || sidepane === SIDE_PANE_OPTIONS.CHAT) {
|
28027
|
-
ViewComponent = /* @__PURE__ */ import_react153.default.createElement(SidePaneTabs, { hideControls, active: sidepane, hideTab: isMobileHLSStream || isLandscapeHLSStream });
|
28028
|
-
}
|
28029
|
-
if (sidepane === SIDE_PANE_OPTIONS.VB) {
|
28030
|
-
ViewComponent = /* @__PURE__ */ import_react153.default.createElement(VBPicker, { backgroundMedia });
|
28031
|
-
}
|
28032
|
-
if (sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS) {
|
28033
|
-
ViewComponent = /* @__PURE__ */ import_react153.default.createElement(RoomDetailsPane, null);
|
28034
|
-
}
|
28035
28139
|
(0, import_react153.useEffect)(() => {
|
28036
28140
|
return () => {
|
28037
28141
|
resetSidePane();
|
28038
28142
|
};
|
28039
28143
|
}, [resetSidePane]);
|
28040
|
-
if (!ViewComponent && (!trackId || layoutMode !== LayoutMode.GALLERY)) {
|
28041
|
-
return null;
|
28042
|
-
}
|
28043
28144
|
const tileLayout = {
|
28044
28145
|
hideParticipantNameOnTile: tileProps == null ? void 0 : tileProps.hide_participant_name_on_tile,
|
28045
28146
|
roundedVideoTile: tileProps == null ? void 0 : tileProps.rounded_video_tile,
|
@@ -28047,8 +28148,11 @@ var init_SidePane = __esm({
|
|
28047
28148
|
hideMetadataOnTile: tileProps == null ? void 0 : tileProps.hide_metadata_on_tile,
|
28048
28149
|
objectFit: tileProps == null ? void 0 : tileProps.video_object_fit
|
28049
28150
|
};
|
28050
|
-
const VB = sidepane === SIDE_PANE_OPTIONS.VB;
|
28051
28151
|
const mwebStreamingChat = isMobile && sidepane === SIDE_PANE_OPTIONS.CHAT && ((_f = elements == null ? void 0 : elements.chat) == null ? void 0 : _f.is_overlay);
|
28152
|
+
const commonProps = {
|
28153
|
+
landscapeStream: isLandscapeHLSStream,
|
28154
|
+
mobileStream: isMobileHLSStream
|
28155
|
+
};
|
28052
28156
|
return /* @__PURE__ */ import_react153.default.createElement(
|
28053
28157
|
Flex,
|
28054
28158
|
{
|
@@ -28056,11 +28160,14 @@ var init_SidePane = __esm({
|
|
28056
28160
|
justify: "center",
|
28057
28161
|
css: {
|
28058
28162
|
w: "$100",
|
28059
|
-
h:
|
28163
|
+
h: "100%",
|
28060
28164
|
flexShrink: 0,
|
28061
28165
|
gap: "$4",
|
28062
28166
|
position: "relative",
|
28063
|
-
"
|
28167
|
+
"&:empty": { display: "none" },
|
28168
|
+
"@ls": {
|
28169
|
+
w: isMobileHLSStream || isLandscapeHLSStream ? "340px" : "$100"
|
28170
|
+
}
|
28064
28171
|
}
|
28065
28172
|
},
|
28066
28173
|
trackId && layoutMode === LayoutMode.GALLERY && /* @__PURE__ */ import_react153.default.createElement(
|
@@ -28073,43 +28180,27 @@ var init_SidePane = __esm({
|
|
28073
28180
|
rootCSS: { p: 0, alignSelf: "start", flexShrink: 0 }
|
28074
28181
|
}, tileLayout)
|
28075
28182
|
),
|
28076
|
-
|
28077
|
-
|
28078
|
-
{
|
28183
|
+
(0, import_ts_pattern7.match)(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ import_react153.default.createElement(
|
28184
|
+
Wrapper3,
|
28185
|
+
__spreadValues({
|
28079
28186
|
css: {
|
28080
|
-
w: "$100",
|
28081
|
-
h: mwebStreamingChat || isLandscape ? "0" : "100%",
|
28082
|
-
p: VB ? "$10 $6 $10 $10" : "$10",
|
28083
|
-
flex: "1 1 0",
|
28084
|
-
minHeight: 0,
|
28085
|
-
maxHeight: mwebStreamingChat || isLandscape ? "300px" : "unset",
|
28086
|
-
background: mwebStreamingChat || isLandscape ? "linear-gradient(180deg, rgba(0, 0, 0, 0.00) 35.94%, rgba(0, 0, 0, 0.64) 100%)" : "$surface_dim",
|
28087
|
-
r: "$1",
|
28088
|
-
position: "relative",
|
28089
|
-
"@lg": {
|
28090
|
-
w: "100%",
|
28091
|
-
h: "100%",
|
28092
|
-
ml: 0,
|
28093
|
-
right: 0,
|
28094
|
-
position: isLandscapeHLSStream ? "" : "fixed",
|
28095
|
-
minHeight: isLandscapeHLSStream ? "100%" : "",
|
28096
|
-
bottom: 0,
|
28097
|
-
borderRadius: 0,
|
28098
|
-
zIndex: 10
|
28099
|
-
},
|
28100
28187
|
"@md": {
|
28101
|
-
|
28102
|
-
|
28103
|
-
pb: "$12",
|
28104
|
-
minHeight: isMobileHLSStream ? "64%" : "",
|
28105
|
-
borderTopLeftRadius: sidepane === SIDE_PANE_OPTIONS.POLLS ? "$2" : "0",
|
28106
|
-
borderTopRightRadius: sidepane === SIDE_PANE_OPTIONS.POLLS ? "$2" : "0",
|
28107
|
-
animation: `${translateAcross({ yFrom: "100%" })} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
28188
|
+
borderTopLeftRadius: "$2",
|
28189
|
+
borderTopRightRadius: "$2"
|
28108
28190
|
}
|
28109
28191
|
}
|
28110
|
-
},
|
28111
|
-
|
28112
|
-
)
|
28192
|
+
}, commonProps),
|
28193
|
+
/* @__PURE__ */ import_react153.default.createElement(Polls, null)
|
28194
|
+
)).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ import_react153.default.createElement(Wrapper3, __spreadValues({ css: { p: "$10 $6 $10 $10" } }, commonProps), /* @__PURE__ */ import_react153.default.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ import_react153.default.createElement(Wrapper3, __spreadProps(__spreadValues({}, commonProps), { overlayChat: mwebStreamingChat }), /* @__PURE__ */ import_react153.default.createElement(
|
28195
|
+
SidePaneTabs,
|
28196
|
+
{
|
28197
|
+
hideControls,
|
28198
|
+
active: sidepane,
|
28199
|
+
hideTab: isMobileHLSStream || isLandscapeHLSStream
|
28200
|
+
}
|
28201
|
+
))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ import_react153.default.createElement(Wrapper3, __spreadValues({}, commonProps), /* @__PURE__ */ import_react153.default.createElement(RoomDetailsPane, null))).otherwise(() => {
|
28202
|
+
return null;
|
28203
|
+
})
|
28113
28204
|
);
|
28114
28205
|
};
|
28115
28206
|
SidePane_default = SidePane;
|
@@ -30299,15 +30390,19 @@ var init_Controls = __esm({
|
|
30299
30390
|
});
|
30300
30391
|
|
30301
30392
|
// src/Prebuilt/components/HMSVideo/HMSVideo.jsx
|
30302
|
-
var import_react182, HMSVideo;
|
30393
|
+
var import_react182, import_react_use41, HMSVideo;
|
30303
30394
|
var init_HMSVideo = __esm({
|
30304
30395
|
"src/Prebuilt/components/HMSVideo/HMSVideo.jsx"() {
|
30305
30396
|
"use strict";
|
30306
30397
|
init_define_process_env();
|
30307
30398
|
import_react182 = __toESM(require("react"));
|
30399
|
+
import_react_use41 = require("react-use");
|
30308
30400
|
init_src();
|
30401
|
+
init_hooks();
|
30309
30402
|
HMSVideo = (0, import_react182.forwardRef)((_a8, videoRef) => {
|
30310
30403
|
var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
|
30404
|
+
const isLandscape = useIsLandscape();
|
30405
|
+
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
30311
30406
|
return /* @__PURE__ */ import_react182.default.createElement(
|
30312
30407
|
Flex,
|
30313
30408
|
__spreadValues({
|
@@ -30343,7 +30438,9 @@ var init_HMSVideo = __esm({
|
|
30343
30438
|
margin: "0 auto",
|
30344
30439
|
minHeight: "0",
|
30345
30440
|
objectFit: "contain",
|
30346
|
-
width: "inherit"
|
30441
|
+
width: "inherit",
|
30442
|
+
height: isLandscape || isMobile ? "100%" : "",
|
30443
|
+
position: isLandscape || isMobile ? "absolute" : ""
|
30347
30444
|
},
|
30348
30445
|
ref: videoRef,
|
30349
30446
|
playsInline: true
|
@@ -30372,17 +30469,17 @@ var init_PlayerContext = __esm({
|
|
30372
30469
|
}
|
30373
30470
|
});
|
30374
30471
|
|
30375
|
-
// src/Prebuilt/components/HMSVideo/
|
30376
|
-
var import_react184, import_react_icons86,
|
30377
|
-
var
|
30378
|
-
"src/Prebuilt/components/HMSVideo/
|
30472
|
+
// src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx
|
30473
|
+
var import_react184, import_react_icons86, PlayPauseButton;
|
30474
|
+
var init_PlayPauseButton = __esm({
|
30475
|
+
"src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx"() {
|
30379
30476
|
"use strict";
|
30380
30477
|
init_define_process_env();
|
30381
30478
|
import_react184 = __toESM(require("react"));
|
30382
30479
|
import_react_icons86 = require("@100mslive/react-icons");
|
30383
30480
|
init_src();
|
30384
30481
|
init_PlayerContext();
|
30385
|
-
|
30482
|
+
PlayPauseButton = ({
|
30386
30483
|
isPaused,
|
30387
30484
|
width = 20,
|
30388
30485
|
height = 20
|
@@ -30397,6 +30494,25 @@ var init_PlayButton = __esm({
|
|
30397
30494
|
}
|
30398
30495
|
});
|
30399
30496
|
|
30497
|
+
// src/Prebuilt/components/HMSVideo/SeekControls.tsx
|
30498
|
+
var import_react185, SeekControls;
|
30499
|
+
var init_SeekControls = __esm({
|
30500
|
+
"src/Prebuilt/components/HMSVideo/SeekControls.tsx"() {
|
30501
|
+
"use strict";
|
30502
|
+
init_define_process_env();
|
30503
|
+
import_react185 = __toESM(require("react"));
|
30504
|
+
init_src();
|
30505
|
+
SeekControls = ({
|
30506
|
+
title,
|
30507
|
+
onClick,
|
30508
|
+
children,
|
30509
|
+
css: css2
|
30510
|
+
}) => {
|
30511
|
+
return /* @__PURE__ */ import_react185.default.createElement(Tooltip, { title, side: "top" }, /* @__PURE__ */ import_react185.default.createElement(IconButton, { onClick, "data-testid": "backward_forward_arrow_btn", css: css2 }, children));
|
30512
|
+
};
|
30513
|
+
}
|
30514
|
+
});
|
30515
|
+
|
30400
30516
|
// src/Prebuilt/components/HMSVideo/utils.ts
|
30401
30517
|
function getPercentage(a2, b2) {
|
30402
30518
|
return a2 / b2 * 100;
|
@@ -30431,24 +30547,24 @@ var init_utils6 = __esm({
|
|
30431
30547
|
});
|
30432
30548
|
|
30433
30549
|
// src/Prebuilt/components/HMSVideo/VideoProgress.tsx
|
30434
|
-
var
|
30550
|
+
var import_react186, VideoProgress;
|
30435
30551
|
var init_VideoProgress = __esm({
|
30436
30552
|
"src/Prebuilt/components/HMSVideo/VideoProgress.tsx"() {
|
30437
30553
|
"use strict";
|
30438
30554
|
init_define_process_env();
|
30439
|
-
|
30555
|
+
import_react186 = __toESM(require("react"));
|
30440
30556
|
init_src();
|
30441
30557
|
init_PlayerContext();
|
30442
30558
|
init_utils6();
|
30443
|
-
VideoProgress = () => {
|
30559
|
+
VideoProgress = ({ isDvr = true }) => {
|
30444
30560
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
30445
|
-
const [videoProgress, setVideoProgress] = (0,
|
30446
|
-
const [bufferProgress, setBufferProgress] = (0,
|
30561
|
+
const [videoProgress, setVideoProgress] = (0, import_react186.useState)(0);
|
30562
|
+
const [bufferProgress, setBufferProgress] = (0, import_react186.useState)(0);
|
30447
30563
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
30448
30564
|
const onValueChange = (time) => {
|
30449
30565
|
hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(time);
|
30450
30566
|
};
|
30451
|
-
(0,
|
30567
|
+
(0, import_react186.useEffect)(() => {
|
30452
30568
|
if (!videoEl) {
|
30453
30569
|
return;
|
30454
30570
|
}
|
@@ -30481,7 +30597,7 @@ var init_VideoProgress = __esm({
|
|
30481
30597
|
if (!videoEl) {
|
30482
30598
|
return null;
|
30483
30599
|
}
|
30484
|
-
return /* @__PURE__ */
|
30600
|
+
return /* @__PURE__ */ import_react186.default.createElement(Flex, { align: "center", css: { cursor: "pointer", h: "$2", alignSelf: "stretch", pointerEvents: isDvr ? "" : "none" } }, /* @__PURE__ */ import_react186.default.createElement(
|
30485
30601
|
Slider,
|
30486
30602
|
{
|
30487
30603
|
id: "video-actual-rest",
|
@@ -30489,7 +30605,8 @@ var init_VideoProgress = __esm({
|
|
30489
30605
|
cursor: "pointer",
|
30490
30606
|
h: "$2",
|
30491
30607
|
zIndex: 1,
|
30492
|
-
transition: `all .2s ease .5s
|
30608
|
+
transition: `all .2s ease .5s`,
|
30609
|
+
pointerEvents: isDvr ? "" : "none"
|
30493
30610
|
},
|
30494
30611
|
min: 0,
|
30495
30612
|
max: 100,
|
@@ -30497,9 +30614,9 @@ var init_VideoProgress = __esm({
|
|
30497
30614
|
value: [videoProgress],
|
30498
30615
|
showTooltip: false,
|
30499
30616
|
onValueChange: onProgress,
|
30500
|
-
thumbStyles: { w: "$6", h: "$6" }
|
30617
|
+
thumbStyles: { w: "$6", h: "$6", display: isDvr ? "" : "none" }
|
30501
30618
|
}
|
30502
|
-
), /* @__PURE__ */
|
30619
|
+
), /* @__PURE__ */ import_react186.default.createElement(
|
30503
30620
|
Box,
|
30504
30621
|
{
|
30505
30622
|
id: "video-buffer",
|
@@ -30518,20 +30635,20 @@ var init_VideoProgress = __esm({
|
|
30518
30635
|
});
|
30519
30636
|
|
30520
30637
|
// src/Prebuilt/components/HMSVideo/VideoTime.tsx
|
30521
|
-
var
|
30638
|
+
var import_react187, import_hls_player2, VideoTime;
|
30522
30639
|
var init_VideoTime = __esm({
|
30523
30640
|
"src/Prebuilt/components/HMSVideo/VideoTime.tsx"() {
|
30524
30641
|
"use strict";
|
30525
30642
|
init_define_process_env();
|
30526
|
-
|
30643
|
+
import_react187 = __toESM(require("react"));
|
30527
30644
|
import_hls_player2 = require("@100mslive/hls-player");
|
30528
30645
|
init_Text2();
|
30529
30646
|
init_PlayerContext();
|
30530
30647
|
init_utils6();
|
30531
30648
|
VideoTime = () => {
|
30532
30649
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
30533
|
-
const [videoTime, setVideoTime] = (0,
|
30534
|
-
(0,
|
30650
|
+
const [videoTime, setVideoTime] = (0, import_react187.useState)("");
|
30651
|
+
(0, import_react187.useEffect)(() => {
|
30535
30652
|
const timeupdateHandler = (currentTime) => {
|
30536
30653
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
30537
30654
|
if (videoEl) {
|
@@ -30547,7 +30664,7 @@ var init_VideoTime = __esm({
|
|
30547
30664
|
hlsPlayer2 == null ? void 0 : hlsPlayer2.off(import_hls_player2.HMSHLSPlayerEvents.CURRENT_TIME, timeupdateHandler);
|
30548
30665
|
};
|
30549
30666
|
}, [hlsPlayer2]);
|
30550
|
-
return hlsPlayer2 ? /* @__PURE__ */
|
30667
|
+
return hlsPlayer2 ? /* @__PURE__ */ import_react187.default.createElement(
|
30551
30668
|
Text,
|
30552
30669
|
{
|
30553
30670
|
variant: "body1",
|
@@ -30567,20 +30684,21 @@ var init_VideoTime = __esm({
|
|
30567
30684
|
});
|
30568
30685
|
|
30569
30686
|
// src/Prebuilt/components/HMSVideo/VolumeControl.tsx
|
30570
|
-
var
|
30687
|
+
var import_react188, import_react_icons87, VolumeControl, VolumeIcon;
|
30571
30688
|
var init_VolumeControl = __esm({
|
30572
30689
|
"src/Prebuilt/components/HMSVideo/VolumeControl.tsx"() {
|
30573
30690
|
"use strict";
|
30574
30691
|
init_define_process_env();
|
30575
|
-
|
30692
|
+
import_react188 = __toESM(require("react"));
|
30576
30693
|
import_react_icons87 = require("@100mslive/react-icons");
|
30577
30694
|
init_src();
|
30578
30695
|
init_PlayerContext();
|
30579
30696
|
VolumeControl = () => {
|
30697
|
+
var _a8;
|
30580
30698
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
30581
|
-
const [volume, setVolume] = (0,
|
30582
|
-
const [showSlider, setShowSlider] = (0,
|
30583
|
-
return /* @__PURE__ */
|
30699
|
+
const [volume, setVolume] = (0, import_react188.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
|
30700
|
+
const [showSlider, setShowSlider] = (0, import_react188.useState)(false);
|
30701
|
+
return /* @__PURE__ */ import_react188.default.createElement(
|
30584
30702
|
Flex,
|
30585
30703
|
{
|
30586
30704
|
align: "center",
|
@@ -30594,7 +30712,7 @@ var init_VolumeControl = __esm({
|
|
30594
30712
|
setShowSlider(false);
|
30595
30713
|
}
|
30596
30714
|
},
|
30597
|
-
/* @__PURE__ */
|
30715
|
+
/* @__PURE__ */ import_react188.default.createElement(
|
30598
30716
|
VolumeIcon,
|
30599
30717
|
{
|
30600
30718
|
volume,
|
@@ -30609,7 +30727,7 @@ var init_VolumeControl = __esm({
|
|
30609
30727
|
}
|
30610
30728
|
}
|
30611
30729
|
),
|
30612
|
-
/* @__PURE__ */
|
30730
|
+
/* @__PURE__ */ import_react188.default.createElement(
|
30613
30731
|
Slider,
|
30614
30732
|
{
|
30615
30733
|
css: {
|
@@ -30637,9 +30755,9 @@ var init_VolumeControl = __esm({
|
|
30637
30755
|
};
|
30638
30756
|
VolumeIcon = ({ volume, onClick }) => {
|
30639
30757
|
if (volume === 0) {
|
30640
|
-
return /* @__PURE__ */
|
30758
|
+
return /* @__PURE__ */ import_react188.default.createElement(import_react_icons87.VolumeZeroIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
|
30641
30759
|
}
|
30642
|
-
return volume < 50 ? /* @__PURE__ */
|
30760
|
+
return volume < 50 ? /* @__PURE__ */ import_react188.default.createElement(import_react_icons87.VolumeOneIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick }) : /* @__PURE__ */ import_react188.default.createElement(import_react_icons87.VolumeTwoIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
|
30643
30761
|
};
|
30644
30762
|
}
|
30645
30763
|
});
|
@@ -30652,13 +30770,14 @@ var init_HMSVideo2 = __esm({
|
|
30652
30770
|
init_define_process_env();
|
30653
30771
|
init_Controls();
|
30654
30772
|
init_HMSVideo();
|
30655
|
-
|
30773
|
+
init_PlayPauseButton();
|
30774
|
+
init_SeekControls();
|
30656
30775
|
init_VideoProgress();
|
30657
30776
|
init_VideoTime();
|
30658
30777
|
init_VolumeControl();
|
30659
30778
|
HMSVideoPlayer = {
|
30660
30779
|
Root: HMSVideo,
|
30661
|
-
|
30780
|
+
PlayPauseButton,
|
30662
30781
|
Progress: VideoProgress,
|
30663
30782
|
Duration: VideoTime,
|
30664
30783
|
Volume: VolumeControl,
|
@@ -30666,22 +30785,23 @@ var init_HMSVideo2 = __esm({
|
|
30666
30785
|
Root: VideoControls,
|
30667
30786
|
Left: LeftControls,
|
30668
30787
|
Right: RightControls
|
30669
|
-
}
|
30788
|
+
},
|
30789
|
+
Seeker: SeekControls
|
30670
30790
|
};
|
30671
30791
|
}
|
30672
30792
|
});
|
30673
30793
|
|
30674
30794
|
// src/Prebuilt/components/HMSVideo/FullscreenButton.tsx
|
30675
|
-
var
|
30795
|
+
var import_react189, import_react_icons88, FullScreenButton2;
|
30676
30796
|
var init_FullscreenButton = __esm({
|
30677
30797
|
"src/Prebuilt/components/HMSVideo/FullscreenButton.tsx"() {
|
30678
30798
|
"use strict";
|
30679
30799
|
init_define_process_env();
|
30680
|
-
|
30800
|
+
import_react189 = __toESM(require("react"));
|
30681
30801
|
import_react_icons88 = require("@100mslive/react-icons");
|
30682
30802
|
init_src();
|
30683
30803
|
FullScreenButton2 = ({ isFullScreen, onToggle }) => {
|
30684
|
-
return /* @__PURE__ */
|
30804
|
+
return /* @__PURE__ */ import_react189.default.createElement(Tooltip, { title: `${isFullScreen ? "Exit" : "Go"} fullscreen`, side: "top" }, /* @__PURE__ */ import_react189.default.createElement(IconButton, { css: { margin: "0px" }, onClick: onToggle, key: "fullscreen_btn", "data-testid": "fullscreen_btn" }, /* @__PURE__ */ import_react189.default.createElement(Flex, null, isFullScreen ? /* @__PURE__ */ import_react189.default.createElement(import_react_icons88.ShrinkIcon, null) : /* @__PURE__ */ import_react189.default.createElement(import_react_icons88.ExpandIcon, null))));
|
30685
30805
|
};
|
30686
30806
|
}
|
30687
30807
|
});
|
@@ -30691,7 +30811,38 @@ function HLSAutoplayBlockedPrompt({
|
|
30691
30811
|
open,
|
30692
30812
|
unblockAutoPlay
|
30693
30813
|
}) {
|
30694
|
-
|
30814
|
+
const isLandscape = useIsLandscape();
|
30815
|
+
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
30816
|
+
if ((isMobile || isLandscape) && open) {
|
30817
|
+
return /* @__PURE__ */ import_react190.default.createElement(
|
30818
|
+
IconButton,
|
30819
|
+
{
|
30820
|
+
css: {
|
30821
|
+
border: "1px solid white",
|
30822
|
+
bg: "white",
|
30823
|
+
color: "#000",
|
30824
|
+
r: "$2"
|
30825
|
+
},
|
30826
|
+
onClick: () => __async(this, null, function* () {
|
30827
|
+
return yield unblockAutoPlay();
|
30828
|
+
})
|
30829
|
+
},
|
30830
|
+
/* @__PURE__ */ import_react190.default.createElement(import_react_icons89.VolumeTwoIcon, { width: "32", height: "32" }),
|
30831
|
+
/* @__PURE__ */ import_react190.default.createElement(
|
30832
|
+
Text,
|
30833
|
+
{
|
30834
|
+
variant: "body1",
|
30835
|
+
css: {
|
30836
|
+
fontWeight: "$semiBold",
|
30837
|
+
px: "$2",
|
30838
|
+
color: "#000"
|
30839
|
+
}
|
30840
|
+
},
|
30841
|
+
"Tap To Unmute"
|
30842
|
+
)
|
30843
|
+
);
|
30844
|
+
}
|
30845
|
+
return /* @__PURE__ */ import_react190.default.createElement(
|
30695
30846
|
Dialog.Root,
|
30696
30847
|
{
|
30697
30848
|
open,
|
@@ -30701,7 +30852,7 @@ function HLSAutoplayBlockedPrompt({
|
|
30701
30852
|
}
|
30702
30853
|
})
|
30703
30854
|
},
|
30704
|
-
/* @__PURE__ */
|
30855
|
+
/* @__PURE__ */ import_react190.default.createElement(DialogContent, { title: "Attention", closeable: false }, /* @__PURE__ */ import_react190.default.createElement(DialogRow, null, /* @__PURE__ */ import_react190.default.createElement(Text, { variant: "md" }, 'The browser wants us to get a confirmation for playing the HLS Stream. Please click "play stream" to proceed.')), /* @__PURE__ */ import_react190.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react190.default.createElement(
|
30705
30856
|
Button,
|
30706
30857
|
{
|
30707
30858
|
variant: "primary",
|
@@ -30713,29 +30864,32 @@ function HLSAutoplayBlockedPrompt({
|
|
30713
30864
|
)))
|
30714
30865
|
);
|
30715
30866
|
}
|
30716
|
-
var
|
30867
|
+
var import_react190, import_react_use42, import_react_icons89;
|
30717
30868
|
var init_HLSAutoplayBlockedPrompt = __esm({
|
30718
30869
|
"src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
|
30719
30870
|
"use strict";
|
30720
30871
|
init_define_process_env();
|
30721
|
-
|
30872
|
+
import_react190 = __toESM(require("react"));
|
30873
|
+
import_react_use42 = require("react-use");
|
30874
|
+
import_react_icons89 = require("@100mslive/react-icons");
|
30722
30875
|
init_src();
|
30723
30876
|
init_DialogContent2();
|
30877
|
+
init_hooks();
|
30724
30878
|
}
|
30725
30879
|
});
|
30726
30880
|
|
30727
30881
|
// src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx
|
30728
30882
|
function HLSCaptionSelector({ isEnabled }) {
|
30729
30883
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
30730
|
-
return /* @__PURE__ */
|
30884
|
+
return /* @__PURE__ */ import_react191.default.createElement(Tooltip, { title: "Subtitles/closed captions", side: "top" }, /* @__PURE__ */ import_react191.default.createElement(IconButton, { css: { p: "$2" }, onClick: () => hlsPlayer2 == null ? void 0 : hlsPlayer2.toggleCaption() }, isEnabled ? /* @__PURE__ */ import_react191.default.createElement(import_react_icons90.ClosedCaptionIcon, { width: "20", height: "20px" }) : /* @__PURE__ */ import_react191.default.createElement(import_react_icons90.OpenCaptionIcon, { width: "20", height: "20px" })));
|
30731
30885
|
}
|
30732
|
-
var
|
30886
|
+
var import_react191, import_react_icons90;
|
30733
30887
|
var init_HLSCaptionSelector = __esm({
|
30734
30888
|
"src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx"() {
|
30735
30889
|
"use strict";
|
30736
30890
|
init_define_process_env();
|
30737
|
-
|
30738
|
-
|
30891
|
+
import_react191 = __toESM(require("react"));
|
30892
|
+
import_react_icons90 = require("@100mslive/react-icons");
|
30739
30893
|
init_src();
|
30740
30894
|
init_PlayerContext();
|
30741
30895
|
}
|
@@ -30750,10 +30904,10 @@ function HLSQualitySelector({
|
|
30750
30904
|
selection,
|
30751
30905
|
isAuto
|
30752
30906
|
}) {
|
30753
|
-
const isMobile = (0,
|
30907
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
30754
30908
|
const isLandscape = useIsLandscape();
|
30755
30909
|
if (isMobile || isLandscape) {
|
30756
|
-
return /* @__PURE__ */
|
30910
|
+
return /* @__PURE__ */ import_react192.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react192.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "quality_selector" }, /* @__PURE__ */ import_react192.default.createElement(
|
30757
30911
|
Flex,
|
30758
30912
|
{
|
30759
30913
|
css: {
|
@@ -30763,8 +30917,8 @@ function HLSQualitySelector({
|
|
30763
30917
|
p: "$2"
|
30764
30918
|
}
|
30765
30919
|
},
|
30766
|
-
/* @__PURE__ */
|
30767
|
-
)), layers.length > 0 && /* @__PURE__ */
|
30920
|
+
/* @__PURE__ */ import_react192.default.createElement(import_react_icons91.SettingsIcon, null)
|
30921
|
+
)), layers.length > 0 && /* @__PURE__ */ import_react192.default.createElement(Sheet.Content, { css: { bg: "$surface_default", pb: "$1" }, onClick: () => onOpenChange(false) }, /* @__PURE__ */ import_react192.default.createElement(
|
30768
30922
|
Sheet.Title,
|
30769
30923
|
{
|
30770
30924
|
css: {
|
@@ -30781,9 +30935,9 @@ function HLSQualitySelector({
|
|
30781
30935
|
}
|
30782
30936
|
},
|
30783
30937
|
"Quality",
|
30784
|
-
/* @__PURE__ */
|
30938
|
+
/* @__PURE__ */ import_react192.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: () => onOpenChange(false) }, /* @__PURE__ */ import_react192.default.createElement(import_react_icons91.CrossIcon, null))
|
30785
30939
|
), layers.map((layer) => {
|
30786
|
-
return /* @__PURE__ */
|
30940
|
+
return /* @__PURE__ */ import_react192.default.createElement(
|
30787
30941
|
Flex,
|
30788
30942
|
{
|
30789
30943
|
align: "center",
|
@@ -30801,11 +30955,11 @@ function HLSQualitySelector({
|
|
30801
30955
|
key: layer.width,
|
30802
30956
|
onClick: () => onQualityChange(layer)
|
30803
30957
|
},
|
30804
|
-
/* @__PURE__ */
|
30805
|
-
/* @__PURE__ */
|
30806
|
-
!isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */
|
30958
|
+
/* @__PURE__ */ import_react192.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
|
30959
|
+
/* @__PURE__ */ import_react192.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
|
30960
|
+
!isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */ import_react192.default.createElement(import_react_icons91.CheckIcon, { width: "16px", height: "16px" })
|
30807
30961
|
);
|
30808
|
-
}), /* @__PURE__ */
|
30962
|
+
}), /* @__PURE__ */ import_react192.default.createElement(
|
30809
30963
|
Flex,
|
30810
30964
|
{
|
30811
30965
|
align: "center",
|
@@ -30823,11 +30977,11 @@ function HLSQualitySelector({
|
|
30823
30977
|
key: "auto",
|
30824
30978
|
onClick: () => onQualityChange({ height: "auto" })
|
30825
30979
|
},
|
30826
|
-
/* @__PURE__ */
|
30827
|
-
isAuto && /* @__PURE__ */
|
30980
|
+
/* @__PURE__ */ import_react192.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
|
30981
|
+
isAuto && /* @__PURE__ */ import_react192.default.createElement(import_react_icons91.CheckIcon, { width: "16px", height: "16px" })
|
30828
30982
|
)));
|
30829
30983
|
}
|
30830
|
-
return /* @__PURE__ */
|
30984
|
+
return /* @__PURE__ */ import_react192.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => onOpenChange(value) }, /* @__PURE__ */ import_react192.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "quality_selector" }, /* @__PURE__ */ import_react192.default.createElement(
|
30831
30985
|
Flex,
|
30832
30986
|
{
|
30833
30987
|
css: {
|
@@ -30837,7 +30991,7 @@ function HLSQualitySelector({
|
|
30837
30991
|
p: "$2"
|
30838
30992
|
}
|
30839
30993
|
},
|
30840
|
-
/* @__PURE__ */
|
30994
|
+
/* @__PURE__ */ import_react192.default.createElement(Tooltip, { title: "Select Quality", side: "top" }, /* @__PURE__ */ import_react192.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react192.default.createElement(
|
30841
30995
|
Box,
|
30842
30996
|
{
|
30843
30997
|
css: {
|
@@ -30848,8 +31002,8 @@ function HLSQualitySelector({
|
|
30848
31002
|
c: "$on_surface_high"
|
30849
31003
|
}
|
30850
31004
|
},
|
30851
|
-
/* @__PURE__ */
|
30852
|
-
), /* @__PURE__ */
|
31005
|
+
/* @__PURE__ */ import_react192.default.createElement(import_react_icons91.SettingsIcon, null)
|
31006
|
+
), /* @__PURE__ */ import_react192.default.createElement(
|
30853
31007
|
Text,
|
30854
31008
|
{
|
30855
31009
|
variant: {
|
@@ -30859,7 +31013,7 @@ function HLSQualitySelector({
|
|
30859
31013
|
},
|
30860
31014
|
css: { display: "flex", alignItems: "center", ml: "$2", c: "$on_surface_medium" }
|
30861
31015
|
},
|
30862
|
-
isAuto && /* @__PURE__ */
|
31016
|
+
isAuto && /* @__PURE__ */ import_react192.default.createElement(import_react192.default.Fragment, null, "Auto", /* @__PURE__ */ import_react192.default.createElement(
|
30863
31017
|
Box,
|
30864
31018
|
{
|
30865
31019
|
css: {
|
@@ -30874,7 +31028,7 @@ function HLSQualitySelector({
|
|
30874
31028
|
selection && Math.min(selection.width || 0, selection.height || 0),
|
30875
31029
|
"p"
|
30876
31030
|
)))
|
30877
|
-
)), layers.length > 0 && /* @__PURE__ */
|
31031
|
+
)), layers.length > 0 && /* @__PURE__ */ import_react192.default.createElement(
|
30878
31032
|
Dropdown.Content,
|
30879
31033
|
{
|
30880
31034
|
sideOffset: 5,
|
@@ -30890,7 +31044,7 @@ function HLSQualitySelector({
|
|
30890
31044
|
}
|
30891
31045
|
},
|
30892
31046
|
layers.map((layer) => {
|
30893
|
-
return /* @__PURE__ */
|
31047
|
+
return /* @__PURE__ */ import_react192.default.createElement(
|
30894
31048
|
Dropdown.Item,
|
30895
31049
|
{
|
30896
31050
|
onClick: () => onQualityChange(layer),
|
@@ -30905,12 +31059,12 @@ function HLSQualitySelector({
|
|
30905
31059
|
gap: "$2"
|
30906
31060
|
}
|
30907
31061
|
},
|
30908
|
-
/* @__PURE__ */
|
30909
|
-
/* @__PURE__ */
|
30910
|
-
!isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */
|
31062
|
+
/* @__PURE__ */ import_react192.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
|
31063
|
+
/* @__PURE__ */ import_react192.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
|
31064
|
+
!isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */ import_react192.default.createElement(import_react_icons91.CheckIcon, { width: "16px", height: "16px" })
|
30911
31065
|
);
|
30912
31066
|
}),
|
30913
|
-
/* @__PURE__ */
|
31067
|
+
/* @__PURE__ */ import_react192.default.createElement(
|
30914
31068
|
Dropdown.Item,
|
30915
31069
|
{
|
30916
31070
|
onClick: () => onQualityChange({ height: "auto" }),
|
@@ -30925,19 +31079,19 @@ function HLSQualitySelector({
|
|
30925
31079
|
gap: "$2"
|
30926
31080
|
}
|
30927
31081
|
},
|
30928
|
-
/* @__PURE__ */
|
30929
|
-
isAuto && /* @__PURE__ */
|
31082
|
+
/* @__PURE__ */ import_react192.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
|
31083
|
+
isAuto && /* @__PURE__ */ import_react192.default.createElement(import_react_icons91.CheckIcon, { width: "16px", height: "16px" })
|
30930
31084
|
)
|
30931
31085
|
));
|
30932
31086
|
}
|
30933
|
-
var
|
31087
|
+
var import_react192, import_react_use43, import_react_icons91, getQualityText, getBitrateText;
|
30934
31088
|
var init_HLSQualitySelector = __esm({
|
30935
31089
|
"src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
|
30936
31090
|
"use strict";
|
30937
31091
|
init_define_process_env();
|
30938
|
-
|
30939
|
-
|
30940
|
-
|
31092
|
+
import_react192 = __toESM(require("react"));
|
31093
|
+
import_react_use43 = require("react-use");
|
31094
|
+
import_react_icons91 = require("@100mslive/react-icons");
|
30941
31095
|
init_src();
|
30942
31096
|
init_Sheet2();
|
30943
31097
|
init_Theme();
|
@@ -30948,12 +31102,12 @@ var init_HLSQualitySelector = __esm({
|
|
30948
31102
|
});
|
30949
31103
|
|
30950
31104
|
// src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx
|
30951
|
-
var
|
31105
|
+
var import_react193, import_react_sdk96, HLSViewTitle;
|
30952
31106
|
var init_MwebHLSViewTitle = __esm({
|
30953
31107
|
"src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx"() {
|
30954
31108
|
"use strict";
|
30955
31109
|
init_define_process_env();
|
30956
|
-
|
31110
|
+
import_react193 = __toESM(require("react"));
|
30957
31111
|
import_react_sdk96 = require("@100mslive/react-sdk");
|
30958
31112
|
init_Layout();
|
30959
31113
|
init_Text2();
|
@@ -30964,10 +31118,10 @@ var init_MwebHLSViewTitle = __esm({
|
|
30964
31118
|
HLSViewTitle = () => {
|
30965
31119
|
const peerCount = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectPeerCount);
|
30966
31120
|
const hlsState = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectHLSState);
|
30967
|
-
const intervalRef = (0,
|
31121
|
+
const intervalRef = (0, import_react193.useRef)(null);
|
30968
31122
|
const { screenType } = useRoomLayoutConferencingScreen();
|
30969
|
-
const [liveTime, setLiveTime] = (0,
|
30970
|
-
const startTimer = (0,
|
31123
|
+
const [liveTime, setLiveTime] = (0, import_react193.useState)(0);
|
31124
|
+
const startTimer = (0, import_react193.useCallback)(() => {
|
30971
31125
|
intervalRef.current = setInterval(() => {
|
30972
31126
|
var _a8;
|
30973
31127
|
const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
|
@@ -30976,7 +31130,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
30976
31130
|
}
|
30977
31131
|
}, 6e4);
|
30978
31132
|
}, [hlsState == null ? void 0 : hlsState.running, hlsState == null ? void 0 : hlsState.variants, screenType]);
|
30979
|
-
(0,
|
31133
|
+
(0, import_react193.useEffect)(() => {
|
30980
31134
|
var _a8;
|
30981
31135
|
if (hlsState == null ? void 0 : hlsState.running) {
|
30982
31136
|
startTimer();
|
@@ -30994,7 +31148,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
30994
31148
|
}
|
30995
31149
|
};
|
30996
31150
|
}, [hlsState == null ? void 0 : hlsState.running, hlsState == null ? void 0 : hlsState.variants, screenType, startTimer]);
|
30997
|
-
return /* @__PURE__ */
|
31151
|
+
return /* @__PURE__ */ import_react193.default.createElement(
|
30998
31152
|
Flex,
|
30999
31153
|
{
|
31000
31154
|
gap: "4",
|
@@ -31008,8 +31162,8 @@ var init_MwebHLSViewTitle = __esm({
|
|
31008
31162
|
backgroundColor: "$surface_dim"
|
31009
31163
|
}
|
31010
31164
|
},
|
31011
|
-
/* @__PURE__ */
|
31012
|
-
/* @__PURE__ */
|
31165
|
+
/* @__PURE__ */ import_react193.default.createElement(Logo, null),
|
31166
|
+
/* @__PURE__ */ import_react193.default.createElement(Flex, { direction: "column" }, /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, "Tech Talk"), /* @__PURE__ */ import_react193.default.createElement(Flex, { gap: "1" }, /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" } }, getFormattedCount(peerCount) + " watching"), /* @__PURE__ */ import_react193.default.createElement(
|
31013
31167
|
Flex,
|
31014
31168
|
{
|
31015
31169
|
direction: "column",
|
@@ -31021,7 +31175,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
31021
31175
|
alignSelf: "center"
|
31022
31176
|
}
|
31023
31177
|
}
|
31024
|
-
), /* @__PURE__ */
|
31178
|
+
), /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" } }, "Started " + getTime(liveTime) + " ago")))
|
31025
31179
|
);
|
31026
31180
|
};
|
31027
31181
|
}
|
@@ -31032,17 +31186,17 @@ var HLSView_exports = {};
|
|
31032
31186
|
__export(HLSView_exports, {
|
31033
31187
|
default: () => HLSView_default
|
31034
31188
|
});
|
31035
|
-
var
|
31189
|
+
var import_react194, import_react_use44, import_hls_player3, import_screenfull3, import_react_sdk97, import_react_icons92, hlsPlayer, toastMap, HLSView, HLSView_default;
|
31036
31190
|
var init_HLSView = __esm({
|
31037
31191
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
31038
31192
|
"use strict";
|
31039
31193
|
init_define_process_env();
|
31040
|
-
|
31041
|
-
|
31194
|
+
import_react194 = __toESM(require("react"));
|
31195
|
+
import_react_use44 = require("react-use");
|
31042
31196
|
import_hls_player3 = require("@100mslive/hls-player");
|
31043
31197
|
import_screenfull3 = __toESM(require("screenfull"));
|
31044
31198
|
import_react_sdk97 = require("@100mslive/react-sdk");
|
31045
|
-
|
31199
|
+
import_react_icons92 = require("@100mslive/react-icons");
|
31046
31200
|
init_ChatToggle();
|
31047
31201
|
init_HlsStatsOverlay();
|
31048
31202
|
init_HMSVideo2();
|
@@ -31052,6 +31206,7 @@ var init_HLSView = __esm({
|
|
31052
31206
|
init_HLSQualitySelector();
|
31053
31207
|
init_MwebHLSViewTitle();
|
31054
31208
|
init_PlayerContext();
|
31209
|
+
init_LeaveRoom();
|
31055
31210
|
init_ToastManager();
|
31056
31211
|
init_Button2();
|
31057
31212
|
init_IconButton2();
|
@@ -31066,51 +31221,52 @@ var init_HLSView = __esm({
|
|
31066
31221
|
init_constants();
|
31067
31222
|
toastMap = {};
|
31068
31223
|
HLSView = () => {
|
31069
|
-
var _a8, _b7
|
31070
|
-
const videoRef = (0,
|
31071
|
-
const hlsViewRef = (0,
|
31224
|
+
var _a8, _b7;
|
31225
|
+
const videoRef = (0, import_react194.useRef)(null);
|
31226
|
+
const hlsViewRef = (0, import_react194.useRef)(null);
|
31072
31227
|
const hlsState = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectHLSState);
|
31073
31228
|
const enablHlsStats = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.hlsStats));
|
31074
31229
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
31075
31230
|
const notification = (0, import_react_sdk97.useHMSNotifications)(import_react_sdk97.HMSNotificationTypes.POLL_STOPPED);
|
31076
31231
|
const hmsActions = (0, import_react_sdk97.useHMSActions)();
|
31077
31232
|
const { themeType } = useTheme();
|
31078
|
-
const [streamEnded, setStreamEnded] = (0,
|
31079
|
-
let [hlsStatsState, setHlsStatsState] = (0,
|
31233
|
+
const [streamEnded, setStreamEnded] = (0, import_react194.useState)(false);
|
31234
|
+
let [hlsStatsState, setHlsStatsState] = (0, import_react194.useState)(null);
|
31080
31235
|
const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
|
31081
|
-
const [availableLayers, setAvailableLayers] = (0,
|
31082
|
-
const [isVideoLive, setIsVideoLive] = (0,
|
31083
|
-
const [isCaptionEnabled, setIsCaptionEnabled] = (0,
|
31084
|
-
const [hasCaptions, setHasCaptions] = (0,
|
31085
|
-
const [currentSelectedQuality, setCurrentSelectedQuality] = (0,
|
31086
|
-
const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0,
|
31087
|
-
const [
|
31088
|
-
const [
|
31089
|
-
const
|
31236
|
+
const [availableLayers, setAvailableLayers] = (0, import_react194.useState)([]);
|
31237
|
+
const [isVideoLive, setIsVideoLive] = (0, import_react194.useState)(true);
|
31238
|
+
const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react194.useState)(true);
|
31239
|
+
const [hasCaptions, setHasCaptions] = (0, import_react194.useState)(false);
|
31240
|
+
const [currentSelectedQuality, setCurrentSelectedQuality] = (0, import_react194.useState)(null);
|
31241
|
+
const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react194.useState)(false);
|
31242
|
+
const [isSeekEnabled, setIsSeekEnabled] = (0, import_react194.useState)(false);
|
31243
|
+
const [isPaused, setIsPaused] = (0, import_react194.useState)(false);
|
31244
|
+
const [show, toggle] = (0, import_react_use44.useToggle)(false);
|
31245
|
+
const lastHlsUrl = (0, import_react_use44.usePrevious)(hlsUrl);
|
31090
31246
|
const togglePollView = usePollViewToggle();
|
31091
31247
|
const vanillaStore = (0, import_react_sdk97.useHMSVanillaStore)();
|
31092
|
-
const [controlsVisible, setControlsVisible] = (0,
|
31093
|
-
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0,
|
31094
|
-
const [qualityDropDownOpen, setQualityDropDownOpen] = (0,
|
31095
|
-
const controlsRef = (0,
|
31096
|
-
const controlsTimerRef = (0,
|
31248
|
+
const [controlsVisible, setControlsVisible] = (0, import_react194.useState)(true);
|
31249
|
+
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react194.useState)(true);
|
31250
|
+
const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react194.useState)(false);
|
31251
|
+
const controlsRef = (0, import_react194.useRef)(null);
|
31252
|
+
const controlsTimerRef = (0, import_react194.useRef)();
|
31097
31253
|
const sidepane = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.sidePane));
|
31098
31254
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
31099
31255
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
31100
31256
|
const isFullScreenSupported = import_screenfull3.default.isEnabled;
|
31101
|
-
const isMobile = (0,
|
31257
|
+
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31102
31258
|
const isLandscape = useIsLandscape();
|
31103
|
-
const isFullScreen = (0,
|
31259
|
+
const isFullScreen = (0, import_react_use44.useFullscreen)(hlsViewRef, show, {
|
31104
31260
|
onClose: () => toggle(false)
|
31105
31261
|
});
|
31106
|
-
const [showLoader, setShowLoader] = (0,
|
31262
|
+
const [showLoader, setShowLoader] = (0, import_react194.useState)(false);
|
31107
31263
|
const isMwebHLSStream = screenType === "hls_live_streaming" && isMobile;
|
31108
|
-
(0,
|
31264
|
+
(0, import_react194.useEffect)(() => {
|
31109
31265
|
if (sidepane === "" && isMwebHLSStream && showChat) {
|
31110
31266
|
toggleChat();
|
31111
31267
|
}
|
31112
31268
|
}, [sidepane, isMwebHLSStream, toggleChat, showChat]);
|
31113
|
-
(0,
|
31269
|
+
(0, import_react194.useEffect)(() => {
|
31114
31270
|
const videoEl = videoRef.current;
|
31115
31271
|
const showLoader2 = () => setShowLoader(true);
|
31116
31272
|
const hideLoader = () => setShowLoader(false);
|
@@ -31121,12 +31277,12 @@ var init_HLSView = __esm({
|
|
31121
31277
|
videoEl == null ? void 0 : videoEl.removeEventListener("waiting", showLoader2);
|
31122
31278
|
};
|
31123
31279
|
}, []);
|
31124
|
-
(0,
|
31280
|
+
(0, import_react194.useEffect)(() => {
|
31125
31281
|
if (streamEnded && lastHlsUrl !== hlsUrl) {
|
31126
31282
|
setStreamEnded(false);
|
31127
31283
|
}
|
31128
31284
|
}, [hlsUrl, streamEnded, lastHlsUrl]);
|
31129
|
-
(0,
|
31285
|
+
(0, import_react194.useEffect)(() => {
|
31130
31286
|
if (!notification)
|
31131
31287
|
return;
|
31132
31288
|
const toastID = toastMap == null ? void 0 : toastMap[notification.data.id];
|
@@ -31135,7 +31291,7 @@ var init_HLSView = __esm({
|
|
31135
31291
|
delete toastMap[notification.data.id];
|
31136
31292
|
}
|
31137
31293
|
}, [notification]);
|
31138
|
-
(0,
|
31294
|
+
(0, import_react194.useEffect)(() => {
|
31139
31295
|
const videoElem = videoRef.current;
|
31140
31296
|
const setStreamEndedCallback = () => {
|
31141
31297
|
setStreamEnded(true);
|
@@ -31146,7 +31302,7 @@ var init_HLSView = __esm({
|
|
31146
31302
|
videoElem == null ? void 0 : videoElem.removeEventListener("ended", setStreamEndedCallback);
|
31147
31303
|
};
|
31148
31304
|
}, [hlsUrl]);
|
31149
|
-
const handleQuality = (0,
|
31305
|
+
const handleQuality = (0, import_react194.useCallback)(
|
31150
31306
|
(quality) => {
|
31151
31307
|
var _a9;
|
31152
31308
|
if (hlsPlayer) {
|
@@ -31157,7 +31313,7 @@ var init_HLSView = __esm({
|
|
31157
31313
|
[availableLayers]
|
31158
31314
|
//eslint-disable-line
|
31159
31315
|
);
|
31160
|
-
(0,
|
31316
|
+
(0, import_react194.useEffect)(() => {
|
31161
31317
|
let videoEl = videoRef.current;
|
31162
31318
|
const manifestLoadedHandler = ({ layers }) => {
|
31163
31319
|
setAvailableLayers(layers);
|
@@ -31184,7 +31340,7 @@ var init_HLSView = __esm({
|
|
31184
31340
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk97.selectPeerNameByID)(poll.startedBy)) || "Participant";
|
31185
31341
|
const toastID = ToastManager.addToast({
|
31186
31342
|
title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
|
31187
|
-
action: /* @__PURE__ */
|
31343
|
+
action: /* @__PURE__ */ import_react194.default.createElement(
|
31188
31344
|
Button,
|
31189
31345
|
{
|
31190
31346
|
onClick: () => togglePollView(pollId),
|
@@ -31252,7 +31408,7 @@ var init_HLSView = __esm({
|
|
31252
31408
|
};
|
31253
31409
|
}
|
31254
31410
|
}, [hlsUrl, togglePollView, vanillaStore]);
|
31255
|
-
(0,
|
31411
|
+
(0, import_react194.useEffect)(() => {
|
31256
31412
|
const onHLSStats = (state) => setHlsStatsState(state);
|
31257
31413
|
if (enablHlsStats) {
|
31258
31414
|
hlsPlayer == null ? void 0 : hlsPlayer.on(import_hls_player3.HMSHLSPlayerEvents.STATS, onHLSStats);
|
@@ -31274,46 +31430,61 @@ var init_HLSView = __esm({
|
|
31274
31430
|
const sfnOverlayClose = () => {
|
31275
31431
|
hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats);
|
31276
31432
|
};
|
31277
|
-
(0,
|
31433
|
+
(0, import_react194.useEffect)(() => {
|
31278
31434
|
if (controlsVisible && isFullScreen && !qualityDropDownOpen) {
|
31279
31435
|
if (controlsTimerRef.current) {
|
31280
31436
|
clearTimeout(controlsTimerRef.current);
|
31281
31437
|
}
|
31282
|
-
controlsTimerRef.current = setTimeout(() => {
|
31283
|
-
setControlsVisible(false);
|
31284
|
-
}, 5e3);
|
31285
31438
|
}
|
31286
31439
|
if (!isFullScreen && controlsTimerRef.current) {
|
31287
31440
|
clearTimeout(controlsTimerRef.current);
|
31288
31441
|
}
|
31442
|
+
controlsTimerRef.current = setTimeout(() => {
|
31443
|
+
setControlsVisible(false);
|
31444
|
+
}, 5e3);
|
31289
31445
|
return () => {
|
31290
31446
|
if (controlsTimerRef.current) {
|
31291
31447
|
clearTimeout(controlsTimerRef.current);
|
31292
31448
|
}
|
31293
31449
|
};
|
31294
31450
|
}, [controlsVisible, isFullScreen, qualityDropDownOpen]);
|
31295
|
-
const
|
31451
|
+
const onSeekTo = (0, import_react194.useCallback)((seek) => {
|
31452
|
+
var _a9;
|
31453
|
+
hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
|
31454
|
+
}, []);
|
31455
|
+
const onDoubleClickHandler = (0, import_react194.useCallback)(
|
31296
31456
|
(event) => {
|
31297
|
-
|
31298
|
-
if (event.type === "ontouchstart" && controlsVisible) {
|
31299
|
-
setControlsVisible(false);
|
31457
|
+
if (!(isMobile || isLandscape)) {
|
31300
31458
|
return;
|
31301
31459
|
}
|
31302
|
-
|
31303
|
-
|
31304
|
-
|
31305
|
-
|
31306
|
-
|
31307
|
-
|
31308
|
-
if (controlsTimerRef.current) {
|
31309
|
-
clearTimeout(controlsTimerRef.current);
|
31310
|
-
}
|
31460
|
+
const sidePercentage = event.screenX * 100 / event.target.clientWidth;
|
31461
|
+
setIsSeekEnabled(true);
|
31462
|
+
if (sidePercentage < 45) {
|
31463
|
+
onSeekTo(-10);
|
31464
|
+
} else {
|
31465
|
+
onSeekTo(10);
|
31311
31466
|
}
|
31467
|
+
setTimeout(() => {
|
31468
|
+
setIsSeekEnabled(false);
|
31469
|
+
}, 200);
|
31312
31470
|
},
|
31313
|
-
[
|
31471
|
+
[isLandscape, isMobile, onSeekTo]
|
31314
31472
|
);
|
31315
|
-
const
|
31473
|
+
const onClickHandler = (0, import_react194.useCallback)(() => {
|
31474
|
+
if (!(isMobile || isLandscape)) {
|
31475
|
+
return;
|
31476
|
+
}
|
31477
|
+
setControlsVisible((value) => !value);
|
31478
|
+
if (controlsTimerRef.current) {
|
31479
|
+
clearTimeout(controlsTimerRef.current);
|
31480
|
+
}
|
31481
|
+
}, [isLandscape, isMobile]);
|
31482
|
+
const onHoverHandler = (0, import_react194.useCallback)(
|
31316
31483
|
(event) => {
|
31484
|
+
event.preventDefault();
|
31485
|
+
if (isMobile || isLandscape) {
|
31486
|
+
return;
|
31487
|
+
}
|
31317
31488
|
if (event.type === "mouseenter" || qualityDropDownOpen) {
|
31318
31489
|
setControlsVisible(true);
|
31319
31490
|
return;
|
@@ -31327,9 +31498,9 @@ var init_HLSView = __esm({
|
|
31327
31498
|
}
|
31328
31499
|
}
|
31329
31500
|
},
|
31330
|
-
[controlsVisible, isFullScreen, qualityDropDownOpen]
|
31501
|
+
[controlsVisible, isFullScreen, isLandscape, isMobile, qualityDropDownOpen]
|
31331
31502
|
);
|
31332
|
-
return /* @__PURE__ */
|
31503
|
+
return /* @__PURE__ */ import_react194.default.createElement(
|
31333
31504
|
Flex,
|
31334
31505
|
{
|
31335
31506
|
key: "hls-viewer",
|
@@ -31337,11 +31508,12 @@ var init_HLSView = __esm({
|
|
31337
31508
|
ref: hlsViewRef,
|
31338
31509
|
direction: isMobile || isLandscape ? "column" : "row",
|
31339
31510
|
css: {
|
31340
|
-
w: sidepane !== "" && isLandscape ? "
|
31341
|
-
h: sidepane !== "" && isMobile ? "36%" : "100%"
|
31511
|
+
w: sidepane !== "" && isLandscape ? "" : "100%",
|
31512
|
+
h: sidepane !== "" && isMobile ? "36%" : "100%",
|
31513
|
+
flex: "1 1 0"
|
31342
31514
|
}
|
31343
31515
|
},
|
31344
|
-
hlsUrl && !streamEnded ? /* @__PURE__ */
|
31516
|
+
hlsUrl && !streamEnded ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(HMSPlayerContext.Provider, { value: { hlsPlayer } }, (hlsStatsState == null ? void 0 : hlsStatsState.url) && enablHlsStats && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react194.default.createElement(HlsStatsOverlay, { hlsStatsState, onClose: sfnOverlayClose }) : null, /* @__PURE__ */ import_react194.default.createElement(
|
31345
31517
|
Flex,
|
31346
31518
|
{
|
31347
31519
|
id: "hls-player-container",
|
@@ -31352,8 +31524,8 @@ var init_HLSView = __esm({
|
|
31352
31524
|
margin: "0 auto"
|
31353
31525
|
}
|
31354
31526
|
},
|
31355
|
-
/* @__PURE__ */
|
31356
|
-
showLoader && /* @__PURE__ */
|
31527
|
+
!(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }),
|
31528
|
+
showLoader && /* @__PURE__ */ import_react194.default.createElement(
|
31357
31529
|
Flex,
|
31358
31530
|
{
|
31359
31531
|
align: "center",
|
@@ -31362,56 +31534,68 @@ var init_HLSView = __esm({
|
|
31362
31534
|
position: "absolute"
|
31363
31535
|
}
|
31364
31536
|
},
|
31365
|
-
/* @__PURE__ */
|
31537
|
+
/* @__PURE__ */ import_react194.default.createElement(Loading, { width: 72, height: 72 })
|
31366
31538
|
),
|
31367
|
-
/* @__PURE__ */
|
31539
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31368
31540
|
HMSVideoPlayer.Root,
|
31369
31541
|
{
|
31370
31542
|
ref: videoRef,
|
31371
31543
|
onMouseEnter: onHoverHandler,
|
31372
31544
|
onMouseMove: onHoverHandler,
|
31373
31545
|
onMouseLeave: onHoverHandler,
|
31374
|
-
|
31375
|
-
|
31546
|
+
onClick: onClickHandler,
|
31547
|
+
onDoubleClick: (e) => {
|
31548
|
+
onDoubleClickHandler(e);
|
31549
|
+
}
|
31376
31550
|
},
|
31377
|
-
/* @__PURE__ */
|
31378
|
-
|
31551
|
+
/* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, isMobile || isLandscape ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, !showLoader && /* @__PURE__ */ import_react194.default.createElement(
|
31552
|
+
Flex,
|
31379
31553
|
{
|
31554
|
+
align: "center",
|
31555
|
+
justify: "center",
|
31380
31556
|
css: {
|
31381
|
-
|
31382
|
-
top: "40%",
|
31383
|
-
left: "50%",
|
31384
|
-
transform: "translateY(-40%) translateX(-50%)",
|
31385
|
-
padding: "$4",
|
31557
|
+
bg: "#00000066",
|
31386
31558
|
display: "inline-flex",
|
31387
|
-
|
31388
|
-
gap: "$1",
|
31389
|
-
bg: "rgba(0, 0, 0, 0.6)",
|
31559
|
+
gap: "$2",
|
31390
31560
|
zIndex: 1,
|
31561
|
+
size: "100%",
|
31391
31562
|
visibility: controlsVisible ? `` : `hidden`,
|
31392
31563
|
opacity: controlsVisible ? `1` : "0"
|
31393
31564
|
}
|
31394
31565
|
},
|
31395
|
-
|
31396
|
-
|
31566
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31567
|
+
HMSVideoPlayer.Seeker,
|
31397
31568
|
{
|
31398
|
-
|
31399
|
-
|
31400
|
-
|
31401
|
-
|
31569
|
+
title: "backward",
|
31570
|
+
css: {
|
31571
|
+
visibility: isSeekEnabled ? `` : `hidden`,
|
31572
|
+
opacity: isSeekEnabled ? `1` : "0"
|
31573
|
+
}
|
31402
31574
|
},
|
31403
|
-
/* @__PURE__ */
|
31404
|
-
)
|
31405
|
-
|
31575
|
+
/* @__PURE__ */ import_react194.default.createElement(import_react_icons92.BackwardArrowIcon, { width: 32, height: 32 })
|
31576
|
+
),
|
31577
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31578
|
+
Box,
|
31406
31579
|
{
|
31407
|
-
|
31408
|
-
|
31409
|
-
|
31410
|
-
|
31580
|
+
css: {
|
31581
|
+
bg: "rgba(0, 0, 0, 0.6)",
|
31582
|
+
r: "$round"
|
31583
|
+
}
|
31411
31584
|
},
|
31412
|
-
/* @__PURE__ */
|
31585
|
+
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.PlayPauseButton, { isPaused, width: 48, height: 48 })
|
31586
|
+
),
|
31587
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31588
|
+
HMSVideoPlayer.Seeker,
|
31589
|
+
{
|
31590
|
+
title: "forward",
|
31591
|
+
css: {
|
31592
|
+
visibility: isSeekEnabled ? `` : `hidden`,
|
31593
|
+
opacity: isSeekEnabled ? `1` : "0"
|
31594
|
+
}
|
31595
|
+
},
|
31596
|
+
/* @__PURE__ */ import_react194.default.createElement(import_react_icons92.ForwardArrowIcon, { width: 32, height: 32 })
|
31413
31597
|
)
|
31414
|
-
), /* @__PURE__ */
|
31598
|
+
), /* @__PURE__ */ import_react194.default.createElement(
|
31415
31599
|
Flex,
|
31416
31600
|
{
|
31417
31601
|
ref: controlsRef,
|
@@ -31424,18 +31608,20 @@ var init_HLSView = __esm({
|
|
31424
31608
|
left: "0",
|
31425
31609
|
width: "100%",
|
31426
31610
|
flexShrink: 0,
|
31611
|
+
zIndex: 1,
|
31427
31612
|
visibility: controlsVisible ? `` : `hidden`,
|
31428
31613
|
opacity: controlsVisible ? `1` : "0"
|
31429
31614
|
}
|
31430
31615
|
},
|
31431
|
-
/* @__PURE__ */
|
31616
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31432
31617
|
HMSVideoPlayer.Controls.Root,
|
31433
31618
|
{
|
31434
31619
|
css: {
|
31435
31620
|
p: "$4 $8"
|
31436
31621
|
}
|
31437
31622
|
},
|
31438
|
-
/* @__PURE__ */
|
31623
|
+
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Left, null, /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType })),
|
31624
|
+
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Right, null, isLandscape && /* @__PURE__ */ import_react194.default.createElement(ChatToggle, null), hasCaptions && !isHlsAutoplayBlocked && /* @__PURE__ */ import_react194.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !isHlsAutoplayBlocked ? /* @__PURE__ */ import_react194.default.createElement(
|
31439
31625
|
HLSQualitySelector,
|
31440
31626
|
{
|
31441
31627
|
layers: availableLayers,
|
@@ -31445,19 +31631,20 @@ var init_HLSView = __esm({
|
|
31445
31631
|
onQualityChange: handleQuality,
|
31446
31632
|
isAuto: isUserSelectedAuto
|
31447
31633
|
}
|
31448
|
-
) : null)
|
31634
|
+
) : null, /* @__PURE__ */ import_react194.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }))
|
31449
31635
|
)
|
31450
|
-
)) : null, /* @__PURE__ */
|
31636
|
+
)) : null, /* @__PURE__ */ import_react194.default.createElement(
|
31451
31637
|
Flex,
|
31452
31638
|
{
|
31453
31639
|
ref: controlsRef,
|
31454
|
-
direction: "column",
|
31640
|
+
direction: isMobile ? "columnReverse" : "column",
|
31455
31641
|
justify: "end",
|
31456
31642
|
align: "start",
|
31457
31643
|
css: {
|
31458
31644
|
position: "absolute",
|
31459
31645
|
bottom: "0",
|
31460
31646
|
left: "0",
|
31647
|
+
zIndex: 1,
|
31461
31648
|
background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
|
31462
31649
|
width: "100%",
|
31463
31650
|
pt: "$8",
|
@@ -31467,23 +31654,33 @@ var init_HLSView = __esm({
|
|
31467
31654
|
opacity: controlsVisible ? `1` : "0"
|
31468
31655
|
}
|
31469
31656
|
},
|
31470
|
-
|
31471
|
-
/* @__PURE__ */
|
31657
|
+
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Progress, { isDvr: ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR }),
|
31658
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31472
31659
|
HMSVideoPlayer.Controls.Root,
|
31473
31660
|
{
|
31474
31661
|
css: {
|
31475
31662
|
p: "$4 $8"
|
31476
31663
|
}
|
31477
31664
|
},
|
31478
|
-
/* @__PURE__ */
|
31479
|
-
HMSVideoPlayer.
|
31665
|
+
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(
|
31666
|
+
HMSVideoPlayer.Seeker,
|
31480
31667
|
{
|
31481
|
-
onClick: () =>
|
31482
|
-
|
31483
|
-
}
|
31484
|
-
|
31485
|
-
}
|
31486
|
-
|
31668
|
+
onClick: () => {
|
31669
|
+
onSeekTo(-10);
|
31670
|
+
},
|
31671
|
+
title: "backward"
|
31672
|
+
},
|
31673
|
+
/* @__PURE__ */ import_react194.default.createElement(import_react_icons92.BackwardArrowIcon, { width: 20, height: 20 })
|
31674
|
+
), /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.PlayPauseButton, { isPaused }), /* @__PURE__ */ import_react194.default.createElement(
|
31675
|
+
HMSVideoPlayer.Seeker,
|
31676
|
+
{
|
31677
|
+
onClick: () => {
|
31678
|
+
onSeekTo(10);
|
31679
|
+
},
|
31680
|
+
title: "forward"
|
31681
|
+
},
|
31682
|
+
/* @__PURE__ */ import_react194.default.createElement(import_react_icons92.ForwardArrowIcon, { width: 20, height: 20 })
|
31683
|
+
), !isVideoLive ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Duration, null) : null, /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react194.default.createElement(
|
31487
31684
|
IconButton,
|
31488
31685
|
{
|
31489
31686
|
css: { px: "$2" },
|
@@ -31494,7 +31691,7 @@ var init_HLSView = __esm({
|
|
31494
31691
|
key: "jump-to-live_btn",
|
31495
31692
|
"data-testid": "jump-to-live_btn"
|
31496
31693
|
},
|
31497
|
-
/* @__PURE__ */
|
31694
|
+
/* @__PURE__ */ import_react194.default.createElement(Tooltip, { title: isVideoLive ? "Live" : "Go to Live", side: "top" }, /* @__PURE__ */ import_react194.default.createElement(Flex, { justify: "center", gap: 2, align: "center" }, /* @__PURE__ */ import_react194.default.createElement(
|
31498
31695
|
Box,
|
31499
31696
|
{
|
31500
31697
|
css: {
|
@@ -31504,7 +31701,7 @@ var init_HLSView = __esm({
|
|
31504
31701
|
r: "$1"
|
31505
31702
|
}
|
31506
31703
|
}
|
31507
|
-
), /* @__PURE__ */
|
31704
|
+
), /* @__PURE__ */ import_react194.default.createElement(
|
31508
31705
|
Text,
|
31509
31706
|
{
|
31510
31707
|
variant: "$body1",
|
@@ -31515,8 +31712,8 @@ var init_HLSView = __esm({
|
|
31515
31712
|
},
|
31516
31713
|
isVideoLive ? "LIVE" : "GO LIVE"
|
31517
31714
|
)))
|
31518
|
-
), (isMobile || isLandscape) && !isVideoLive ? /* @__PURE__ */
|
31519
|
-
/* @__PURE__ */
|
31715
|
+
), (isMobile || isLandscape) && !isVideoLive ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Duration, null) : null),
|
31716
|
+
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react194.default.createElement(
|
31520
31717
|
HLSQualitySelector,
|
31521
31718
|
{
|
31522
31719
|
layers: availableLayers,
|
@@ -31526,12 +31723,11 @@ var init_HLSView = __esm({
|
|
31526
31723
|
onQualityChange: handleQuality,
|
31527
31724
|
isAuto: isUserSelectedAuto
|
31528
31725
|
}
|
31529
|
-
) : null, isFullScreenSupported ? /* @__PURE__ */
|
31530
|
-
)
|
31531
|
-
(isMobile || isLandscape) && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react193.default.createElement(HMSVideoPlayer.Progress, null) : null
|
31726
|
+
) : null, isFullScreenSupported ? /* @__PURE__ */ import_react194.default.createElement(FullScreenButton2, { isFullScreen, onToggle: toggle }) : null)
|
31727
|
+
)
|
31532
31728
|
))
|
31533
31729
|
)
|
31534
|
-
)), isMobile && !isFullScreen && /* @__PURE__ */
|
31730
|
+
)), isMobile && !isFullScreen && /* @__PURE__ */ import_react194.default.createElement(HLSViewTitle, null)) : /* @__PURE__ */ import_react194.default.createElement(Flex, { align: "center", justify: "center", direction: "column", css: { size: "100%", px: "$10" } }, /* @__PURE__ */ import_react194.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$4", top: "$4", zIndex: 1 } }, /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType })), /* @__PURE__ */ import_react194.default.createElement(Flex, { css: { c: "$on_surface_high", r: "$round", bg: "$surface_default", p: "$2" } }, streamEnded ? /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.ColoredHandIcon, { height: 56, width: 56 }) : /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.GoLiveIcon, { height: 56, width: 56 })), /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "h5", css: { c: "$on_surface_high", mt: "$10", mb: 0, textAlign: "center" } }, streamEnded ? "Stream has ended" : "Stream yet to start"), /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "md", css: { textAlign: "center", mt: "$4", c: "$on_surface_medium" } }, streamEnded ? "Have a nice day!" : "Sit back and relax"))
|
31535
31731
|
);
|
31536
31732
|
};
|
31537
31733
|
HLSView_default = HLSView;
|
@@ -31539,12 +31735,12 @@ var init_HLSView = __esm({
|
|
31539
31735
|
});
|
31540
31736
|
|
31541
31737
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
31542
|
-
var
|
31738
|
+
var import_react195, import_react_sdk98, HLSView2, VideoStreamingSection;
|
31543
31739
|
var init_VideoStreamingSection = __esm({
|
31544
31740
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
31545
31741
|
"use strict";
|
31546
31742
|
init_define_process_env();
|
31547
|
-
|
31743
|
+
import_react195 = __toESM(require("react"));
|
31548
31744
|
import_react_sdk98 = require("@100mslive/react-sdk");
|
31549
31745
|
init_FullPageProgress();
|
31550
31746
|
init_GridLayout();
|
@@ -31557,7 +31753,7 @@ var init_VideoStreamingSection = __esm({
|
|
31557
31753
|
init_useUISettings();
|
31558
31754
|
init_useCloseScreenshareWhiteboard();
|
31559
31755
|
init_hooks();
|
31560
|
-
HLSView2 =
|
31756
|
+
HLSView2 = import_react195.default.lazy(() => Promise.resolve().then(() => (init_HLSView(), HLSView_exports)));
|
31561
31757
|
VideoStreamingSection = ({
|
31562
31758
|
screenType,
|
31563
31759
|
elements,
|
@@ -31574,7 +31770,7 @@ var init_VideoStreamingSection = __esm({
|
|
31574
31770
|
const pdfAnnotatorActive = usePDFConfig();
|
31575
31771
|
const isMobileHLSStream = useMobileHLSStream();
|
31576
31772
|
useCloseScreenshareWhiteboard();
|
31577
|
-
(0,
|
31773
|
+
(0, import_react195.useEffect)(() => {
|
31578
31774
|
if (!isConnected) {
|
31579
31775
|
return;
|
31580
31776
|
}
|
@@ -31591,21 +31787,21 @@ var init_VideoStreamingSection = __esm({
|
|
31591
31787
|
}
|
31592
31788
|
let ViewComponent;
|
31593
31789
|
if (screenType === "hls_live_streaming") {
|
31594
|
-
ViewComponent = /* @__PURE__ */
|
31790
|
+
ViewComponent = /* @__PURE__ */ import_react195.default.createElement(HLSView2, null);
|
31595
31791
|
} else if (localPeerRole === waitingViewerRole) {
|
31596
|
-
ViewComponent = /* @__PURE__ */
|
31792
|
+
ViewComponent = /* @__PURE__ */ import_react195.default.createElement(WaitingView, null);
|
31597
31793
|
} else if (pdfAnnotatorActive) {
|
31598
|
-
ViewComponent = /* @__PURE__ */
|
31794
|
+
ViewComponent = /* @__PURE__ */ import_react195.default.createElement(PDFView, null);
|
31599
31795
|
} else if (urlToIframe) {
|
31600
|
-
ViewComponent = /* @__PURE__ */
|
31796
|
+
ViewComponent = /* @__PURE__ */ import_react195.default.createElement(EmbedView, null);
|
31601
31797
|
} else if (peerSharing) {
|
31602
|
-
ViewComponent = /* @__PURE__ */
|
31798
|
+
ViewComponent = /* @__PURE__ */ import_react195.default.createElement(GridLayout, __spreadValues({}, (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid));
|
31603
31799
|
} else if (isWhiteboardOpen) {
|
31604
|
-
ViewComponent = /* @__PURE__ */
|
31800
|
+
ViewComponent = /* @__PURE__ */ import_react195.default.createElement(WhiteboardView, null);
|
31605
31801
|
} else {
|
31606
|
-
ViewComponent = /* @__PURE__ */
|
31802
|
+
ViewComponent = /* @__PURE__ */ import_react195.default.createElement(GridLayout, __spreadValues({}, (_c = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _c.grid));
|
31607
31803
|
}
|
31608
|
-
return /* @__PURE__ */
|
31804
|
+
return /* @__PURE__ */ import_react195.default.createElement(import_react195.Suspense, { fallback: /* @__PURE__ */ import_react195.default.createElement(FullPageProgress_default, null) }, /* @__PURE__ */ import_react195.default.createElement(
|
31609
31805
|
Flex,
|
31610
31806
|
{
|
31611
31807
|
css: {
|
@@ -31616,17 +31812,18 @@ var init_VideoStreamingSection = __esm({
|
|
31616
31812
|
direction: isMobileHLSStream ? "column" : "row"
|
31617
31813
|
},
|
31618
31814
|
ViewComponent,
|
31619
|
-
/* @__PURE__ */
|
31815
|
+
/* @__PURE__ */ import_react195.default.createElement(
|
31620
31816
|
Box,
|
31621
31817
|
{
|
31622
31818
|
css: {
|
31623
|
-
|
31819
|
+
flex: isMobileHLSStream ? "1 1 0" : void 0,
|
31820
|
+
height: !isMobileHLSStream ? "100%" : void 0,
|
31624
31821
|
maxHeight: "100%",
|
31625
31822
|
"&:empty": { display: "none" },
|
31626
31823
|
overflowY: "clip"
|
31627
31824
|
}
|
31628
31825
|
},
|
31629
|
-
/* @__PURE__ */
|
31826
|
+
/* @__PURE__ */ import_react195.default.createElement(
|
31630
31827
|
SidePane_default,
|
31631
31828
|
{
|
31632
31829
|
screenType,
|
@@ -31641,14 +31838,14 @@ var init_VideoStreamingSection = __esm({
|
|
31641
31838
|
});
|
31642
31839
|
|
31643
31840
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
31644
|
-
var
|
31841
|
+
var import_react196, import_react_use45, import_react_icons93, RoomDetailsHeader;
|
31645
31842
|
var init_RoomDetailsHeader = __esm({
|
31646
31843
|
"src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
|
31647
31844
|
"use strict";
|
31648
31845
|
init_define_process_env();
|
31649
|
-
|
31650
|
-
|
31651
|
-
|
31846
|
+
import_react196 = __toESM(require("react"));
|
31847
|
+
import_react_use45 = require("react-use");
|
31848
|
+
import_react_icons93 = require("@100mslive/react-icons");
|
31652
31849
|
init_Layout();
|
31653
31850
|
init_Text2();
|
31654
31851
|
init_Theme();
|
@@ -31658,34 +31855,34 @@ var init_RoomDetailsHeader = __esm({
|
|
31658
31855
|
init_constants();
|
31659
31856
|
RoomDetailsHeader = () => {
|
31660
31857
|
const { title, description } = useRoomLayoutHeader();
|
31661
|
-
const isMobile = (0,
|
31858
|
+
const isMobile = (0, import_react_use45.useMedia)(config.media.md);
|
31662
31859
|
const clipLength = 30;
|
31663
31860
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31664
31861
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
31665
31862
|
if (!title && !description || isMobile && !title) {
|
31666
31863
|
return null;
|
31667
31864
|
}
|
31668
|
-
return /* @__PURE__ */
|
31865
|
+
return /* @__PURE__ */ import_react196.default.createElement(Flex, { direction: isMobile ? "row" : "column", css: { ml: "$8", alignItems: isMobile ? "center" : "start" } }, /* @__PURE__ */ import_react196.default.createElement(Text, { variant: "sm", css: { c: "$on_surface_high", fontWeight: "$semiBold" } }, title), !isMobile && /* @__PURE__ */ import_react196.default.createElement(Flex, { align: "end", css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react196.default.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium" } }, description.slice(0, clipLength)), description.length > clipLength ? /* @__PURE__ */ import_react196.default.createElement(
|
31669
31866
|
"span",
|
31670
31867
|
{
|
31671
31868
|
style: { fontWeight: "600", fontSize: "12px", cursor: "pointer", lineHeight: "1rem" },
|
31672
31869
|
onClick: toggleDetailsPane
|
31673
31870
|
},
|
31674
31871
|
"\xA0...more"
|
31675
|
-
) : null), isMobile && description ? /* @__PURE__ */
|
31872
|
+
) : null), isMobile && description ? /* @__PURE__ */ import_react196.default.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ import_react196.default.createElement(import_react_icons93.ChevronRightIcon, { height: 16, width: 16, onClick: toggleDetailsSheet })) : null);
|
31676
31873
|
};
|
31677
31874
|
}
|
31678
31875
|
});
|
31679
31876
|
|
31680
31877
|
// src/Prebuilt/components/Header/common.jsx
|
31681
|
-
var
|
31878
|
+
var import_react197, import_react_sdk99, import_react_icons94, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
|
31682
31879
|
var init_common2 = __esm({
|
31683
31880
|
"src/Prebuilt/components/Header/common.jsx"() {
|
31684
31881
|
"use strict";
|
31685
31882
|
init_define_process_env();
|
31686
|
-
|
31883
|
+
import_react197 = __toESM(require("react"));
|
31687
31884
|
import_react_sdk99 = require("@100mslive/react-sdk");
|
31688
|
-
|
31885
|
+
import_react_icons94 = require("@100mslive/react-icons");
|
31689
31886
|
init_Divider2();
|
31690
31887
|
init_Label2();
|
31691
31888
|
init_Layout();
|
@@ -31703,7 +31900,7 @@ var init_common2 = __esm({
|
|
31703
31900
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
31704
31901
|
return null;
|
31705
31902
|
}
|
31706
|
-
return /* @__PURE__ */
|
31903
|
+
return /* @__PURE__ */ import_react197.default.createElement(Box, null, /* @__PURE__ */ import_react197.default.createElement(
|
31707
31904
|
IconButton_default,
|
31708
31905
|
{
|
31709
31906
|
disabled: !isVideoOn,
|
@@ -31718,7 +31915,7 @@ var init_common2 = __esm({
|
|
31718
31915
|
}
|
31719
31916
|
})
|
31720
31917
|
},
|
31721
|
-
/* @__PURE__ */
|
31918
|
+
/* @__PURE__ */ import_react197.default.createElement(import_react_icons94.CameraFlipIcon, null)
|
31722
31919
|
));
|
31723
31920
|
};
|
31724
31921
|
AudioActions = () => {
|
@@ -31737,13 +31934,13 @@ var init_common2 = __esm({
|
|
31737
31934
|
if (!audioFiltered) {
|
31738
31935
|
return null;
|
31739
31936
|
}
|
31740
|
-
let AudioIcon = /* @__PURE__ */
|
31937
|
+
let AudioIcon = /* @__PURE__ */ import_react197.default.createElement(import_react_icons94.SpeakerIcon, null);
|
31741
31938
|
if (currentSelection && currentSelection.label.toLowerCase().includes("bluetooth")) {
|
31742
|
-
AudioIcon = /* @__PURE__ */
|
31939
|
+
AudioIcon = /* @__PURE__ */ import_react197.default.createElement(import_react_icons94.BluetoothIcon, null);
|
31743
31940
|
} else if (currentSelection && currentSelection.label.toLowerCase().includes("wired")) {
|
31744
|
-
AudioIcon = /* @__PURE__ */
|
31941
|
+
AudioIcon = /* @__PURE__ */ import_react197.default.createElement(import_react_icons94.HeadphonesIcon, null);
|
31745
31942
|
}
|
31746
|
-
return /* @__PURE__ */
|
31943
|
+
return /* @__PURE__ */ import_react197.default.createElement(
|
31747
31944
|
AudioSelectionSheet,
|
31748
31945
|
{
|
31749
31946
|
audioDevices: availableAudioDevices,
|
@@ -31762,19 +31959,19 @@ var init_common2 = __esm({
|
|
31762
31959
|
}
|
31763
31960
|
})
|
31764
31961
|
},
|
31765
|
-
/* @__PURE__ */
|
31962
|
+
/* @__PURE__ */ import_react197.default.createElement(
|
31766
31963
|
Box,
|
31767
31964
|
{
|
31768
31965
|
onClick: () => __async(void 0, null, function* () {
|
31769
31966
|
yield hmsActions.refreshDevices();
|
31770
31967
|
})
|
31771
31968
|
},
|
31772
|
-
/* @__PURE__ */
|
31969
|
+
/* @__PURE__ */ import_react197.default.createElement(IconButton_default, null, AudioIcon, " ")
|
31773
31970
|
)
|
31774
31971
|
);
|
31775
31972
|
};
|
31776
31973
|
AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {
|
31777
|
-
return /* @__PURE__ */
|
31974
|
+
return /* @__PURE__ */ import_react197.default.createElement(Sheet.Root, null, /* @__PURE__ */ import_react197.default.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ import_react197.default.createElement(Sheet.Content, null, /* @__PURE__ */ import_react197.default.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ import_react197.default.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ import_react197.default.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ import_react197.default.createElement(Sheet.Close, null, /* @__PURE__ */ import_react197.default.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ import_react197.default.createElement(import_react_icons94.CrossIcon, null))))), /* @__PURE__ */ import_react197.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react197.default.createElement(
|
31778
31975
|
Flex,
|
31779
31976
|
{
|
31780
31977
|
direction: "column",
|
@@ -31785,7 +31982,7 @@ var init_common2 = __esm({
|
|
31785
31982
|
}
|
31786
31983
|
},
|
31787
31984
|
audioDevices.map((audioDevice) => {
|
31788
|
-
return /* @__PURE__ */
|
31985
|
+
return /* @__PURE__ */ import_react197.default.createElement(
|
31789
31986
|
SelectWithLabel,
|
31790
31987
|
{
|
31791
31988
|
key: audioDevice.deviceId,
|
@@ -31798,8 +31995,8 @@ var init_common2 = __esm({
|
|
31798
31995
|
})
|
31799
31996
|
)));
|
31800
31997
|
};
|
31801
|
-
SelectWithLabel = ({ label, icon = /* @__PURE__ */
|
31802
|
-
return /* @__PURE__ */
|
31998
|
+
SelectWithLabel = ({ label, icon = /* @__PURE__ */ import_react197.default.createElement(import_react197.default.Fragment, null), checked, id, onChange }) => {
|
31999
|
+
return /* @__PURE__ */ import_react197.default.createElement(
|
31803
32000
|
Flex,
|
31804
32001
|
{
|
31805
32002
|
align: "center",
|
@@ -31811,7 +32008,7 @@ var init_common2 = __esm({
|
|
31811
32008
|
},
|
31812
32009
|
onClick: onChange
|
31813
32010
|
},
|
31814
|
-
/* @__PURE__ */
|
32011
|
+
/* @__PURE__ */ import_react197.default.createElement(
|
31815
32012
|
Label3,
|
31816
32013
|
{
|
31817
32014
|
htmlFor: id,
|
@@ -31829,20 +32026,20 @@ var init_common2 = __esm({
|
|
31829
32026
|
icon,
|
31830
32027
|
label
|
31831
32028
|
),
|
31832
|
-
checked && /* @__PURE__ */
|
32029
|
+
checked && /* @__PURE__ */ import_react197.default.createElement(import_react_icons94.CheckIcon, { width: 24, height: 24 })
|
31833
32030
|
);
|
31834
32031
|
};
|
31835
32032
|
}
|
31836
32033
|
});
|
31837
32034
|
|
31838
32035
|
// src/Prebuilt/components/Header/Header.tsx
|
31839
|
-
var
|
32036
|
+
var import_react198, import_react_use46, import_react_sdk100, Header2;
|
31840
32037
|
var init_Header = __esm({
|
31841
32038
|
"src/Prebuilt/components/Header/Header.tsx"() {
|
31842
32039
|
"use strict";
|
31843
32040
|
init_define_process_env();
|
31844
|
-
|
31845
|
-
|
32041
|
+
import_react198 = __toESM(require("react"));
|
32042
|
+
import_react_use46 = require("react-use");
|
31846
32043
|
import_react_sdk100 = require("@100mslive/react-sdk");
|
31847
32044
|
init_src();
|
31848
32045
|
init_HeaderComponents();
|
@@ -31851,11 +32048,11 @@ var init_Header = __esm({
|
|
31851
32048
|
init_common2();
|
31852
32049
|
Header2 = () => {
|
31853
32050
|
const roomState = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectRoomState);
|
31854
|
-
const isMobile = (0,
|
32051
|
+
const isMobile = (0, import_react_use46.useMedia)(config.media.md);
|
31855
32052
|
if (roomState !== import_react_sdk100.HMSRoomState.Connected) {
|
31856
|
-
return /* @__PURE__ */
|
32053
|
+
return /* @__PURE__ */ import_react198.default.createElement(import_react198.default.Fragment, null);
|
31857
32054
|
}
|
31858
|
-
return /* @__PURE__ */
|
32055
|
+
return /* @__PURE__ */ import_react198.default.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ import_react198.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ import_react198.default.createElement(Logo, null), /* @__PURE__ */ import_react198.default.createElement(RoomDetailsHeader, null), /* @__PURE__ */ import_react198.default.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ import_react198.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react198.default.createElement(LiveStatus, null), /* @__PURE__ */ import_react198.default.createElement(RecordingStatus, null), /* @__PURE__ */ import_react198.default.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ import_react198.default.createElement(
|
31859
32056
|
Flex,
|
31860
32057
|
{
|
31861
32058
|
align: "center",
|
@@ -31865,8 +32062,8 @@ var init_Header = __esm({
|
|
31865
32062
|
gap: "$4"
|
31866
32063
|
}
|
31867
32064
|
},
|
31868
|
-
/* @__PURE__ */
|
31869
|
-
isMobile ? /* @__PURE__ */
|
32065
|
+
/* @__PURE__ */ import_react198.default.createElement(StreamActions, null),
|
32066
|
+
isMobile ? /* @__PURE__ */ import_react198.default.createElement(import_react198.default.Fragment, null, /* @__PURE__ */ import_react198.default.createElement(CamaraFlipActions, null), /* @__PURE__ */ import_react198.default.createElement(AudioActions, null)) : null
|
31870
32067
|
));
|
31871
32068
|
};
|
31872
32069
|
}
|
@@ -31882,18 +32079,18 @@ var init_Header2 = __esm({
|
|
31882
32079
|
});
|
31883
32080
|
|
31884
32081
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
31885
|
-
var
|
32082
|
+
var import_react199, import_react_sdk101, PreviousRoleInMetadata;
|
31886
32083
|
var init_PreviousRoleInMetadata = __esm({
|
31887
32084
|
"src/Prebuilt/components/PreviousRoleInMetadata.tsx"() {
|
31888
32085
|
"use strict";
|
31889
32086
|
init_define_process_env();
|
31890
|
-
|
32087
|
+
import_react199 = require("react");
|
31891
32088
|
import_react_sdk101 = require("@100mslive/react-sdk");
|
31892
32089
|
init_useMetadata();
|
31893
32090
|
PreviousRoleInMetadata = () => {
|
31894
32091
|
const vanillaStore = (0, import_react_sdk101.useHMSVanillaStore)();
|
31895
32092
|
const { updateMetaData } = useMyMetadata();
|
31896
|
-
(0,
|
32093
|
+
(0, import_react199.useEffect)(() => {
|
31897
32094
|
let previousRole = vanillaStore.getState(import_react_sdk101.selectLocalPeerRoleName);
|
31898
32095
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
31899
32096
|
if (previousRole !== currentRole && currentRole) {
|
@@ -31909,16 +32106,15 @@ var init_PreviousRoleInMetadata = __esm({
|
|
31909
32106
|
});
|
31910
32107
|
|
31911
32108
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
31912
|
-
var
|
32109
|
+
var import_react200, import_uuid12, import_react_sdk102, ConferenceScreen;
|
31913
32110
|
var init_ConferenceScreen = __esm({
|
31914
32111
|
"src/Prebuilt/components/ConferenceScreen.tsx"() {
|
31915
32112
|
"use strict";
|
31916
32113
|
init_define_process_env();
|
31917
|
-
|
32114
|
+
import_react200 = __toESM(require("react"));
|
31918
32115
|
import_uuid12 = require("uuid");
|
31919
32116
|
import_react_sdk102 = require("@100mslive/react-sdk");
|
31920
32117
|
init_Footer3();
|
31921
|
-
init_LeaveRoom();
|
31922
32118
|
init_MoreSettings();
|
31923
32119
|
init_HLSFailureModal();
|
31924
32120
|
init_PIPComponent();
|
@@ -31943,28 +32139,28 @@ var init_ConferenceScreen = __esm({
|
|
31943
32139
|
const roomState = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectRoomState);
|
31944
32140
|
const isConnectedToRoom = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
|
31945
32141
|
const hmsActions = (0, import_react_sdk102.useHMSActions)();
|
31946
|
-
const [hideControls, setHideControls] = (0,
|
32142
|
+
const [hideControls, setHideControls] = (0, import_react200.useState)(false);
|
31947
32143
|
const dropdownList = (0, import_react_sdk102.useHMSStore)((0, import_react_sdk102.selectAppData)(APP_DATA.dropdownList));
|
31948
32144
|
const authTokenInAppData = useAuthToken();
|
31949
|
-
const headerRef = (0,
|
31950
|
-
const footerRef = (0,
|
32145
|
+
const headerRef = (0, import_react200.useRef)(null);
|
32146
|
+
const footerRef = (0, import_react200.useRef)(null);
|
31951
32147
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
31952
|
-
const dropdownListRef = (0,
|
32148
|
+
const dropdownListRef = (0, import_react200.useRef)();
|
31953
32149
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
31954
32150
|
const { toggleAudio, toggleVideo } = (0, import_react_sdk102.useAVToggle)();
|
31955
32151
|
const noAVPermissions = !(toggleAudio || toggleVideo);
|
31956
32152
|
const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
|
32153
|
+
const autoRoomJoined = (0, import_react200.useRef)(isPreviewScreenEnabled);
|
32154
|
+
const isMobileHLSStream = useMobileHLSStream();
|
32155
|
+
const isLandscapeHLSStream = useLandscapeHLSStream();
|
32156
|
+
const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
|
31957
32157
|
const toggleControls = () => {
|
31958
32158
|
var _a9;
|
31959
|
-
if (((_a9 = dropdownListRef.current) == null ? void 0 : _a9.length) === 0 && isMobileDevice) {
|
32159
|
+
if (((_a9 = dropdownListRef.current) == null ? void 0 : _a9.length) === 0 && isMobileDevice && !isMwebHLSStream) {
|
31960
32160
|
setHideControls((value) => !value);
|
31961
32161
|
}
|
31962
32162
|
};
|
31963
|
-
|
31964
|
-
const isMobileHLSStream = useMobileHLSStream();
|
31965
|
-
const isLandscapeHLSStream = useLandscapeHLSStream();
|
31966
|
-
const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
|
31967
|
-
(0, import_react199.useEffect)(() => {
|
32163
|
+
(0, import_react200.useEffect)(() => {
|
31968
32164
|
let timeout;
|
31969
32165
|
dropdownListRef.current = dropdownList || [];
|
31970
32166
|
if (dropdownListRef.current && dropdownListRef.current.length === 0) {
|
@@ -31979,7 +32175,7 @@ var init_ConferenceScreen = __esm({
|
|
31979
32175
|
clearTimeout(timeout);
|
31980
32176
|
};
|
31981
32177
|
}, [dropdownList, hideControls, isMobileDevice]);
|
31982
|
-
(0,
|
32178
|
+
(0, import_react200.useEffect)(() => {
|
31983
32179
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk102.HMSRoomState.Connecting && !autoRoomJoined.current) {
|
31984
32180
|
hmsActions.join({
|
31985
32181
|
userName: userName || (0, import_uuid12.v4)(),
|
@@ -31994,31 +32190,32 @@ var init_ConferenceScreen = __esm({
|
|
31994
32190
|
autoRoomJoined.current = true;
|
31995
32191
|
}
|
31996
32192
|
}, [authTokenInAppData, endpoints == null ? void 0 : endpoints.init, hmsActions, isConnectedToRoom, isPreviewScreenEnabled, roomState, userName]);
|
31997
|
-
(0,
|
32193
|
+
(0, import_react200.useEffect)(() => {
|
31998
32194
|
onJoinFunc == null ? void 0 : onJoinFunc();
|
31999
32195
|
return () => {
|
32000
32196
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
32001
32197
|
};
|
32002
32198
|
}, [onJoinFunc]);
|
32003
32199
|
if (!isConnectedToRoom && ![import_react_sdk102.HMSRoomState.Reconnecting, import_react_sdk102.HMSRoomState.Disconnected].includes(roomState)) {
|
32004
|
-
return /* @__PURE__ */
|
32200
|
+
return /* @__PURE__ */ import_react200.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk102.HMSRoomState.Connecting ? "Joining..." : "" });
|
32005
32201
|
}
|
32006
|
-
|
32202
|
+
const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
|
32203
|
+
return /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react200.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react200.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react200.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react200.default.createElement(
|
32007
32204
|
Box,
|
32008
32205
|
{
|
32009
32206
|
ref: headerRef,
|
32010
32207
|
css: {
|
32011
32208
|
h: "$18",
|
32012
32209
|
transition: "margin 0.3s ease-in-out",
|
32013
|
-
marginTop:
|
32210
|
+
marginTop: hideControlsForStreaming ? `-${(_b7 = headerRef.current) == null ? void 0 : _b7.clientHeight}px` : "none",
|
32014
32211
|
"@md": {
|
32015
32212
|
h: "$17"
|
32016
32213
|
}
|
32017
32214
|
},
|
32018
32215
|
"data-testid": "header"
|
32019
32216
|
},
|
32020
|
-
/* @__PURE__ */
|
32021
|
-
),
|
32217
|
+
/* @__PURE__ */ import_react200.default.createElement(Header2, null)
|
32218
|
+
), /* @__PURE__ */ import_react200.default.createElement(
|
32022
32219
|
Box,
|
32023
32220
|
{
|
32024
32221
|
css: {
|
@@ -32037,15 +32234,15 @@ var init_ConferenceScreen = __esm({
|
|
32037
32234
|
"data-testid": "conferencing",
|
32038
32235
|
onClick: toggleControls
|
32039
32236
|
},
|
32040
|
-
screenProps.elements ? /* @__PURE__ */
|
32237
|
+
screenProps.elements ? /* @__PURE__ */ import_react200.default.createElement(
|
32041
32238
|
VideoStreamingSection,
|
32042
32239
|
{
|
32043
32240
|
screenType: screenProps.screenType,
|
32044
32241
|
elements: screenProps.elements,
|
32045
|
-
hideControls
|
32242
|
+
hideControls: hideControlsForStreaming
|
32046
32243
|
}
|
32047
32244
|
) : null
|
32048
|
-
), !screenProps.hideSections.includes("footer") && screenProps.elements && !isMwebHLSStream && /* @__PURE__ */
|
32245
|
+
), !screenProps.hideSections.includes("footer") && screenProps.elements && !isMwebHLSStream && /* @__PURE__ */ import_react200.default.createElement(
|
32049
32246
|
Box,
|
32050
32247
|
{
|
32051
32248
|
ref: footerRef,
|
@@ -32054,7 +32251,7 @@ var init_ConferenceScreen = __esm({
|
|
32054
32251
|
maxHeight: "$24",
|
32055
32252
|
transition: "margin 0.3s ease-in-out",
|
32056
32253
|
bg: "$background_dim",
|
32057
|
-
marginBottom:
|
32254
|
+
marginBottom: hideControlsForStreaming ? `-${(_f = footerRef.current) == null ? void 0 : _f.clientHeight}px` : void 0,
|
32058
32255
|
"@md": {
|
32059
32256
|
maxHeight: "unset",
|
32060
32257
|
bg: screenProps.screenType === "hls_live_streaming" ? "transparent" : "$background_dim"
|
@@ -32062,8 +32259,8 @@ var init_ConferenceScreen = __esm({
|
|
32062
32259
|
},
|
32063
32260
|
"data-testid": "footer"
|
32064
32261
|
},
|
32065
|
-
/* @__PURE__ */
|
32066
|
-
), isMwebHLSStream && !showChat && /* @__PURE__ */
|
32262
|
+
/* @__PURE__ */ import_react200.default.createElement(Footer2, { elements: screenProps.elements, screenType: screenProps.screenType })
|
32263
|
+
), isMwebHLSStream && !showChat && /* @__PURE__ */ import_react200.default.createElement(
|
32067
32264
|
Flex,
|
32068
32265
|
{
|
32069
32266
|
css: {
|
@@ -32074,26 +32271,26 @@ var init_ConferenceScreen = __esm({
|
|
32074
32271
|
justify: "end",
|
32075
32272
|
gap: "1"
|
32076
32273
|
},
|
32077
|
-
noAVPermissions ? /* @__PURE__ */
|
32078
|
-
/* @__PURE__ */
|
32079
|
-
), /* @__PURE__ */
|
32274
|
+
noAVPermissions ? /* @__PURE__ */ import_react200.default.createElement(RaiseHand, null) : null,
|
32275
|
+
/* @__PURE__ */ import_react200.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType })
|
32276
|
+
), /* @__PURE__ */ import_react200.default.createElement(RoleChangeRequestModal, null), /* @__PURE__ */ import_react200.default.createElement(HLSFailureModal, null), /* @__PURE__ */ import_react200.default.createElement(ActivatedPIP, null), /* @__PURE__ */ import_react200.default.createElement(PreviousRoleInMetadata, null)));
|
32080
32277
|
};
|
32081
32278
|
}
|
32082
32279
|
});
|
32083
32280
|
|
32084
32281
|
// src/Prebuilt/components/ErrorBoundary.jsx
|
32085
|
-
var
|
32282
|
+
var import_react201, import_react_icons95, ErrorBoundary;
|
32086
32283
|
var init_ErrorBoundary = __esm({
|
32087
32284
|
"src/Prebuilt/components/ErrorBoundary.jsx"() {
|
32088
32285
|
"use strict";
|
32089
32286
|
init_define_process_env();
|
32090
|
-
|
32091
|
-
|
32287
|
+
import_react201 = __toESM(require("react"));
|
32288
|
+
import_react_icons95 = require("@100mslive/react-icons");
|
32092
32289
|
init_Button2();
|
32093
32290
|
init_Layout();
|
32094
32291
|
init_Text2();
|
32095
32292
|
init_Tooltip2();
|
32096
|
-
ErrorBoundary = class extends
|
32293
|
+
ErrorBoundary = class extends import_react201.Component {
|
32097
32294
|
constructor(props) {
|
32098
32295
|
super(props);
|
32099
32296
|
this.state = { error: null, errorInfo: null, isErrorCopied: false };
|
@@ -32107,7 +32304,7 @@ var init_ErrorBoundary = __esm({
|
|
32107
32304
|
}
|
32108
32305
|
render() {
|
32109
32306
|
if (this.state.errorInfo) {
|
32110
|
-
return /* @__PURE__ */
|
32307
|
+
return /* @__PURE__ */ import_react201.default.createElement(
|
32111
32308
|
Flex,
|
32112
32309
|
{
|
32113
32310
|
align: "center",
|
@@ -32120,7 +32317,7 @@ var init_ErrorBoundary = __esm({
|
|
32120
32317
|
backgroundColor: "$background_default"
|
32121
32318
|
}
|
32122
32319
|
},
|
32123
|
-
/* @__PURE__ */
|
32320
|
+
/* @__PURE__ */ import_react201.default.createElement(Box, { css: { position: "relative", overflow: "hidden", r: "$3", height: "100%", width: "100%" } }, /* @__PURE__ */ import_react201.default.createElement(
|
32124
32321
|
Flex,
|
32125
32322
|
{
|
32126
32323
|
direction: "column",
|
@@ -32131,8 +32328,8 @@ var init_ErrorBoundary = __esm({
|
|
32131
32328
|
left: 0
|
32132
32329
|
}
|
32133
32330
|
},
|
32134
|
-
/* @__PURE__ */
|
32135
|
-
/* @__PURE__ */
|
32331
|
+
/* @__PURE__ */ import_react201.default.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ import_react201.default.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ import_react201.default.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ import_react201.default.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ import_react201.default.createElement("a", { href: "https://discord.com/invite/kGdmszyzq2", target: "_blank", rel: "noreferrer" }, "Discord")),
|
32332
|
+
/* @__PURE__ */ import_react201.default.createElement(Flex, null, /* @__PURE__ */ import_react201.default.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ import_react201.default.createElement(
|
32136
32333
|
Button,
|
32137
32334
|
{
|
32138
32335
|
onClick: () => {
|
@@ -32142,7 +32339,7 @@ var init_ErrorBoundary = __esm({
|
|
32142
32339
|
"data-testid": "join_again_btn"
|
32143
32340
|
},
|
32144
32341
|
"Reload"
|
32145
|
-
)), /* @__PURE__ */
|
32342
|
+
)), /* @__PURE__ */ import_react201.default.createElement(Tooltip, { title: "Copy error details to clipboard" }, /* @__PURE__ */ import_react201.default.createElement(
|
32146
32343
|
Button,
|
32147
32344
|
{
|
32148
32345
|
onClick: () => {
|
@@ -32158,11 +32355,11 @@ var init_ErrorBoundary = __esm({
|
|
32158
32355
|
css: { mx: "$8" },
|
32159
32356
|
"data-testid": "join_again_btn"
|
32160
32357
|
},
|
32161
|
-
/* @__PURE__ */
|
32358
|
+
/* @__PURE__ */ import_react201.default.createElement(import_react_icons95.CopyIcon, null),
|
32162
32359
|
" ",
|
32163
32360
|
this.state.isErrorCopied ? "Copied" : "Copy Details"
|
32164
32361
|
))),
|
32165
|
-
/* @__PURE__ */
|
32362
|
+
/* @__PURE__ */ import_react201.default.createElement("details", { style: { whiteSpace: "pre-wrap", margin: "1.5rem" } }, /* @__PURE__ */ import_react201.default.createElement(Text, null, this.state.error && this.state.error.toString()), /* @__PURE__ */ import_react201.default.createElement("br", null), /* @__PURE__ */ import_react201.default.createElement(Text, null, JSON.stringify(this.state.errorInfo)))
|
32166
32363
|
))
|
32167
32364
|
);
|
32168
32365
|
}
|
@@ -32175,19 +32372,19 @@ var init_ErrorBoundary = __esm({
|
|
32175
32372
|
// src/Prebuilt/services/FeatureFlags.jsx
|
32176
32373
|
function FeatureFlagsInit() {
|
32177
32374
|
const roomId = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectRoomID);
|
32178
|
-
(0,
|
32375
|
+
(0, import_react202.useEffect)(() => {
|
32179
32376
|
if (roomId) {
|
32180
32377
|
FeatureFlags.init(roomId);
|
32181
32378
|
}
|
32182
32379
|
}, [roomId]);
|
32183
32380
|
return null;
|
32184
32381
|
}
|
32185
|
-
var
|
32382
|
+
var import_react202, import_react_sdk103, FeatureFlags;
|
32186
32383
|
var init_FeatureFlags = __esm({
|
32187
32384
|
"src/Prebuilt/services/FeatureFlags.jsx"() {
|
32188
32385
|
"use strict";
|
32189
32386
|
init_define_process_env();
|
32190
|
-
|
32387
|
+
import_react202 = require("react");
|
32191
32388
|
import_react_sdk103 = require("@100mslive/react-sdk");
|
32192
32389
|
FeatureFlags = class {
|
32193
32390
|
static init(roomId) {
|
@@ -32216,20 +32413,20 @@ var init_FeatureFlags = __esm({
|
|
32216
32413
|
});
|
32217
32414
|
|
32218
32415
|
// src/Prebuilt/components/init/Init.jsx
|
32219
|
-
var
|
32416
|
+
var import_react203, Init;
|
32220
32417
|
var init_Init = __esm({
|
32221
32418
|
"src/Prebuilt/components/init/Init.jsx"() {
|
32222
32419
|
"use strict";
|
32223
32420
|
init_define_process_env();
|
32224
|
-
|
32421
|
+
import_react203 = __toESM(require("react"));
|
32225
32422
|
init_src();
|
32226
32423
|
init_FeatureFlags();
|
32227
32424
|
Init = () => {
|
32228
32425
|
const { toggleTheme } = useTheme();
|
32229
|
-
(0,
|
32426
|
+
(0, import_react203.useEffect)(() => {
|
32230
32427
|
window.toggleUiTheme = toggleTheme;
|
32231
32428
|
}, [toggleTheme]);
|
32232
|
-
(0,
|
32429
|
+
(0, import_react203.useEffect)(() => {
|
32233
32430
|
function resetHeight() {
|
32234
32431
|
var _a8;
|
32235
32432
|
document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
|
@@ -32240,18 +32437,18 @@ var init_Init = __esm({
|
|
32240
32437
|
window.removeEventListener("resize", resetHeight);
|
32241
32438
|
};
|
32242
32439
|
}, []);
|
32243
|
-
return /* @__PURE__ */
|
32440
|
+
return /* @__PURE__ */ import_react203.default.createElement(FeatureFlagsInit, null);
|
32244
32441
|
};
|
32245
32442
|
}
|
32246
32443
|
});
|
32247
32444
|
|
32248
32445
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
32249
|
-
var
|
32446
|
+
var import_react204, import_react_sdk104, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
|
32250
32447
|
var init_KeyboardInputManager = __esm({
|
32251
32448
|
"src/Prebuilt/components/Input/KeyboardInputManager.js"() {
|
32252
32449
|
"use strict";
|
32253
32450
|
init_define_process_env();
|
32254
|
-
|
32451
|
+
import_react204 = require("react");
|
32255
32452
|
import_react_sdk104 = require("@100mslive/react-sdk");
|
32256
32453
|
init_constants();
|
32257
32454
|
isEvenListenersAttached = false;
|
@@ -32340,7 +32537,7 @@ var init_KeyboardInputManager = __esm({
|
|
32340
32537
|
KeyboardHandler = () => {
|
32341
32538
|
const store = (0, import_react_sdk104.useHMSVanillaStore)();
|
32342
32539
|
const actions = (0, import_react_sdk104.useHMSActions)();
|
32343
|
-
(0,
|
32540
|
+
(0, import_react204.useEffect)(() => {
|
32344
32541
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
32345
32542
|
keyboardManager.bindAllShortcuts();
|
32346
32543
|
return keyboardManager.unbindAllShortcuts;
|
@@ -32351,18 +32548,18 @@ var init_KeyboardInputManager = __esm({
|
|
32351
32548
|
});
|
32352
32549
|
|
32353
32550
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
32354
|
-
var
|
32551
|
+
var import_react205, useRedirectToLeave;
|
32355
32552
|
var init_useRedirectToLeave = __esm({
|
32356
32553
|
"src/Prebuilt/components/hooks/useRedirectToLeave.tsx"() {
|
32357
32554
|
"use strict";
|
32358
32555
|
init_define_process_env();
|
32359
|
-
|
32556
|
+
import_react205 = require("react");
|
32360
32557
|
init_AppContext();
|
32361
32558
|
init_PIPManager();
|
32362
32559
|
init_ToastManager();
|
32363
32560
|
useRedirectToLeave = () => {
|
32364
32561
|
const { onLeave } = useHMSPrebuiltContext();
|
32365
|
-
const redirect = (0,
|
32562
|
+
const redirect = (0, import_react205.useCallback)(
|
32366
32563
|
(timeout = 0) => {
|
32367
32564
|
setTimeout(() => {
|
32368
32565
|
PictureInPicture.stop().catch(() => console.error("stopping pip"));
|
@@ -32378,26 +32575,26 @@ var init_useRedirectToLeave = __esm({
|
|
32378
32575
|
});
|
32379
32576
|
|
32380
32577
|
// src/Prebuilt/AppStateContext.tsx
|
32381
|
-
var
|
32578
|
+
var import_react206, import_react_use47, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
|
32382
32579
|
var init_AppStateContext = __esm({
|
32383
32580
|
"src/Prebuilt/AppStateContext.tsx"() {
|
32384
32581
|
"use strict";
|
32385
32582
|
init_define_process_env();
|
32386
|
-
|
32387
|
-
|
32583
|
+
import_react206 = __toESM(require("react"));
|
32584
|
+
import_react_use47 = require("react-use");
|
32388
32585
|
import_react_sdk105 = require("@100mslive/react-sdk");
|
32389
32586
|
init_VBHandler();
|
32390
32587
|
init_roomLayoutProvider();
|
32391
32588
|
init_useRedirectToLeave();
|
32392
32589
|
init_useRoomLayoutScreen();
|
32393
|
-
AppStateContext =
|
32590
|
+
AppStateContext = import_react206.default.createContext({
|
32394
32591
|
rejoin: () => {
|
32395
32592
|
console.log("Rejoin");
|
32396
32593
|
}
|
32397
32594
|
});
|
32398
32595
|
AppStateContext.displayName = "AppStateContext";
|
32399
32596
|
useHMSAppStateContext = () => {
|
32400
|
-
const context = (0,
|
32597
|
+
const context = (0, import_react206.useContext)(AppStateContext);
|
32401
32598
|
if (!context) {
|
32402
32599
|
throw Error("Make sure AppStateContext.Provider is present at the top level of your application");
|
32403
32600
|
}
|
@@ -32405,16 +32602,16 @@ var init_AppStateContext = __esm({
|
|
32405
32602
|
};
|
32406
32603
|
useAppStateManager = () => {
|
32407
32604
|
const roomLayout = useRoomLayout();
|
32408
|
-
const [activeState, setActiveState] =
|
32605
|
+
const [activeState, setActiveState] = import_react206.default.useState();
|
32409
32606
|
const roomState = (0, import_react_sdk105.useHMSStore)(import_react_sdk105.selectRoomState);
|
32410
|
-
const prevRoomState = (0,
|
32607
|
+
const prevRoomState = (0, import_react_use47.usePreviousDistinct)(roomState);
|
32411
32608
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
32412
32609
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
32413
32610
|
const { redirectToLeave } = useRedirectToLeave();
|
32414
32611
|
const rejoin = () => {
|
32415
32612
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
32416
32613
|
};
|
32417
|
-
(0,
|
32614
|
+
(0, import_react206.useEffect)(() => {
|
32418
32615
|
if (!roomLayout) {
|
32419
32616
|
return;
|
32420
32617
|
}
|
@@ -32435,13 +32632,13 @@ var init_AppStateContext = __esm({
|
|
32435
32632
|
});
|
32436
32633
|
|
32437
32634
|
// src/Prebuilt/components/LeaveScreen.tsx
|
32438
|
-
var
|
32635
|
+
var import_react207, import_react_icons96, LeaveScreen;
|
32439
32636
|
var init_LeaveScreen = __esm({
|
32440
32637
|
"src/Prebuilt/components/LeaveScreen.tsx"() {
|
32441
32638
|
"use strict";
|
32442
32639
|
init_define_process_env();
|
32443
|
-
|
32444
|
-
|
32640
|
+
import_react207 = __toESM(require("react"));
|
32641
|
+
import_react_icons96 = require("@100mslive/react-icons");
|
32445
32642
|
init_ToastManager();
|
32446
32643
|
init_Button2();
|
32447
32644
|
init_Layout();
|
@@ -32453,7 +32650,7 @@ var init_LeaveScreen = __esm({
|
|
32453
32650
|
LeaveScreen = () => {
|
32454
32651
|
const { rejoin } = useHMSAppStateContext();
|
32455
32652
|
const [previewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW, defaultPreviewPreference);
|
32456
|
-
return /* @__PURE__ */
|
32653
|
+
return /* @__PURE__ */ import_react207.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react207.default.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ import_react207.default.createElement(Header2, null)), /* @__PURE__ */ import_react207.default.createElement(
|
32457
32654
|
Flex,
|
32458
32655
|
{
|
32459
32656
|
justify: "center",
|
@@ -32461,9 +32658,9 @@ var init_LeaveScreen = __esm({
|
|
32461
32658
|
align: "center",
|
32462
32659
|
css: { bg: "$background_dim", flex: "1 1 0", position: "relative" }
|
32463
32660
|
},
|
32464
|
-
/* @__PURE__ */
|
32465
|
-
/* @__PURE__ */
|
32466
|
-
/* @__PURE__ */
|
32661
|
+
/* @__PURE__ */ import_react207.default.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
|
32662
|
+
/* @__PURE__ */ import_react207.default.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the room"),
|
32663
|
+
/* @__PURE__ */ import_react207.default.createElement(
|
32467
32664
|
Text,
|
32468
32665
|
{
|
32469
32666
|
variant: "body1",
|
@@ -32475,10 +32672,10 @@ var init_LeaveScreen = __esm({
|
|
32475
32672
|
}
|
32476
32673
|
},
|
32477
32674
|
"Have a nice day",
|
32478
|
-
previewPreference.name && /* @__PURE__ */
|
32675
|
+
previewPreference.name && /* @__PURE__ */ import_react207.default.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
|
32479
32676
|
"!"
|
32480
32677
|
),
|
32481
|
-
/* @__PURE__ */
|
32678
|
+
/* @__PURE__ */ import_react207.default.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ import_react207.default.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ import_react207.default.createElement(
|
32482
32679
|
Button,
|
32483
32680
|
{
|
32484
32681
|
onClick: () => {
|
@@ -32487,8 +32684,8 @@ var init_LeaveScreen = __esm({
|
|
32487
32684
|
},
|
32488
32685
|
"data-testid": "join_again_btn"
|
32489
32686
|
},
|
32490
|
-
/* @__PURE__ */
|
32491
|
-
/* @__PURE__ */
|
32687
|
+
/* @__PURE__ */ import_react207.default.createElement(import_react_icons96.ExitIcon, null),
|
32688
|
+
/* @__PURE__ */ import_react207.default.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
|
32492
32689
|
))
|
32493
32690
|
));
|
32494
32691
|
};
|
@@ -32496,14 +32693,14 @@ var init_LeaveScreen = __esm({
|
|
32496
32693
|
});
|
32497
32694
|
|
32498
32695
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
32499
|
-
var
|
32696
|
+
var import_react208, import_react_use48, import_react_icons97, MwebLandscapePrompt;
|
32500
32697
|
var init_MwebLandscapePrompt = __esm({
|
32501
32698
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
|
32502
32699
|
"use strict";
|
32503
32700
|
init_define_process_env();
|
32504
|
-
|
32505
|
-
|
32506
|
-
|
32701
|
+
import_react208 = __toESM(require("react"));
|
32702
|
+
import_react_use48 = require("react-use");
|
32703
|
+
import_react_icons97 = require("@100mslive/react-icons");
|
32507
32704
|
init_Button2();
|
32508
32705
|
init_Layout();
|
32509
32706
|
init_Modal();
|
@@ -32512,10 +32709,10 @@ var init_MwebLandscapePrompt = __esm({
|
|
32512
32709
|
init_hooks();
|
32513
32710
|
init_utils2();
|
32514
32711
|
MwebLandscapePrompt = () => {
|
32515
|
-
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0,
|
32516
|
-
const isLandscape = (0,
|
32712
|
+
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react208.useState)(false);
|
32713
|
+
const isLandscape = (0, import_react_use48.useMedia)(config.media.ls);
|
32517
32714
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
32518
|
-
(0,
|
32715
|
+
(0, import_react208.useEffect)(() => {
|
32519
32716
|
var _a8;
|
32520
32717
|
if (!isMobileUserAgent) {
|
32521
32718
|
setShowMwebLandscapePrompt(false);
|
@@ -32539,7 +32736,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
32539
32736
|
if (isLandscapeHLSStream) {
|
32540
32737
|
return null;
|
32541
32738
|
}
|
32542
|
-
return /* @__PURE__ */
|
32739
|
+
return /* @__PURE__ */ import_react208.default.createElement(Dialog.Root, { open: showMwebLandscapePrompt, onOpenChange: setShowMwebLandscapePrompt }, /* @__PURE__ */ import_react208.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react208.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react208.default.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ import_react208.default.createElement(Box, null, /* @__PURE__ */ import_react208.default.createElement(
|
32543
32740
|
Flex,
|
32544
32741
|
{
|
32545
32742
|
css: {
|
@@ -32548,9 +32745,9 @@ var init_MwebLandscapePrompt = __esm({
|
|
32548
32745
|
alignItems: "center"
|
32549
32746
|
}
|
32550
32747
|
},
|
32551
|
-
/* @__PURE__ */
|
32552
|
-
/* @__PURE__ */
|
32553
|
-
), /* @__PURE__ */
|
32748
|
+
/* @__PURE__ */ import_react208.default.createElement(import_react_icons97.RefreshIcon, { style: { marginRight: "0.5rem" } }),
|
32749
|
+
/* @__PURE__ */ import_react208.default.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
|
32750
|
+
), /* @__PURE__ */ import_react208.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "We do not support landscape mode as of now, please use the app in portrait mode for the best experience."), /* @__PURE__ */ import_react208.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react208.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setShowMwebLandscapePrompt(false) }, "Continue anyway"))))));
|
32554
32751
|
};
|
32555
32752
|
}
|
32556
32753
|
});
|
@@ -32558,7 +32755,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
32558
32755
|
// src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
|
32559
32756
|
function AutoplayBlockedModal() {
|
32560
32757
|
const { error, resetError, unblockAudio } = (0, import_react_sdk106.useAutoplayError)();
|
32561
|
-
return /* @__PURE__ */
|
32758
|
+
return /* @__PURE__ */ import_react209.default.createElement(
|
32562
32759
|
Dialog.Root,
|
32563
32760
|
{
|
32564
32761
|
open: !!error,
|
@@ -32569,7 +32766,7 @@ function AutoplayBlockedModal() {
|
|
32569
32766
|
resetError();
|
32570
32767
|
}
|
32571
32768
|
},
|
32572
|
-
/* @__PURE__ */
|
32769
|
+
/* @__PURE__ */ import_react209.default.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ import_react209.default.createElement(DialogRow, null, /* @__PURE__ */ import_react209.default.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ import_react209.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react209.default.createElement(
|
32573
32770
|
Button,
|
32574
32771
|
{
|
32575
32772
|
variant: "primary",
|
@@ -32582,12 +32779,12 @@ function AutoplayBlockedModal() {
|
|
32582
32779
|
)))
|
32583
32780
|
);
|
32584
32781
|
}
|
32585
|
-
var
|
32782
|
+
var import_react209, import_react_sdk106;
|
32586
32783
|
var init_AutoplayBlockedModal = __esm({
|
32587
32784
|
"src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx"() {
|
32588
32785
|
"use strict";
|
32589
32786
|
init_define_process_env();
|
32590
|
-
|
32787
|
+
import_react209 = __toESM(require("react"));
|
32591
32788
|
import_react_sdk106 = require("@100mslive/react-sdk");
|
32592
32789
|
init_src();
|
32593
32790
|
init_DialogContent2();
|
@@ -32595,21 +32792,21 @@ var init_AutoplayBlockedModal = __esm({
|
|
32595
32792
|
});
|
32596
32793
|
|
32597
32794
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
32598
|
-
var
|
32795
|
+
var import_react210, import_uuid13, import_react_sdk107, import_react_icons98, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
|
32599
32796
|
var init_ChatNotifications = __esm({
|
32600
32797
|
"src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
|
32601
32798
|
"use strict";
|
32602
32799
|
init_define_process_env();
|
32603
|
-
|
32800
|
+
import_react210 = __toESM(require("react"));
|
32604
32801
|
import_uuid13 = require("uuid");
|
32605
32802
|
import_react_sdk107 = require("@100mslive/react-sdk");
|
32606
|
-
|
32803
|
+
import_react_icons98 = require("@100mslive/react-icons");
|
32607
32804
|
init_ToastManager();
|
32608
32805
|
NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
32609
32806
|
ChatNotifications = () => {
|
32610
32807
|
const chatState = (0, import_react_sdk107.useHMSStore)((0, import_react_sdk107.selectSessionStore)("chatState" /* CHAT_STATE */));
|
32611
32808
|
const localPeerId = (0, import_react_sdk107.useHMSStore)(import_react_sdk107.selectLocalPeerID);
|
32612
|
-
(0,
|
32809
|
+
(0, import_react210.useEffect)(() => {
|
32613
32810
|
var _a8, _b7;
|
32614
32811
|
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
32615
32812
|
return;
|
@@ -32620,38 +32817,38 @@ var init_ChatNotifications = __esm({
|
|
32620
32817
|
}
|
32621
32818
|
const notification = {
|
32622
32819
|
id: (0, import_uuid13.v4)(),
|
32623
|
-
icon: chatState.enabled ? /* @__PURE__ */
|
32820
|
+
icon: chatState.enabled ? /* @__PURE__ */ import_react210.default.createElement(import_react_icons98.ChatUnreadIcon, null) : /* @__PURE__ */ import_react210.default.createElement(import_react_icons98.ChatIcon, null),
|
32624
32821
|
title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
|
32625
32822
|
};
|
32626
32823
|
ToastManager.addToast(notification);
|
32627
32824
|
}, [chatState, localPeerId]);
|
32628
|
-
return /* @__PURE__ */
|
32825
|
+
return /* @__PURE__ */ import_react210.default.createElement(import_react210.default.Fragment, null);
|
32629
32826
|
};
|
32630
32827
|
}
|
32631
32828
|
});
|
32632
32829
|
|
32633
32830
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
32634
|
-
var
|
32831
|
+
var import_react211, import_react_sdk108, import_react_icons99, ChatAction, HandRaiseAction, ToastConfig;
|
32635
32832
|
var init_ToastConfig = __esm({
|
32636
32833
|
"src/Prebuilt/components/Toast/ToastConfig.jsx"() {
|
32637
32834
|
"use strict";
|
32638
32835
|
init_define_process_env();
|
32639
|
-
|
32836
|
+
import_react211 = __toESM(require("react"));
|
32640
32837
|
import_react_sdk108 = require("@100mslive/react-sdk");
|
32641
|
-
|
32838
|
+
import_react_icons99 = require("@100mslive/react-icons");
|
32642
32839
|
init_Button2();
|
32643
32840
|
init_roomLayoutProvider();
|
32644
32841
|
init_useSidepane();
|
32645
32842
|
init_constants();
|
32646
|
-
ChatAction =
|
32843
|
+
ChatAction = import_react211.default.forwardRef((_, ref) => {
|
32647
32844
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
32648
32845
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
32649
32846
|
if (isChatOpen) {
|
32650
32847
|
return null;
|
32651
32848
|
}
|
32652
|
-
return /* @__PURE__ */
|
32849
|
+
return /* @__PURE__ */ import_react211.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
|
32653
32850
|
});
|
32654
|
-
HandRaiseAction =
|
32851
|
+
HandRaiseAction = import_react211.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
32655
32852
|
var _a8, _b7, _c;
|
32656
32853
|
const hmsActions = (0, import_react_sdk108.useHMSActions)();
|
32657
32854
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
@@ -32664,7 +32861,7 @@ var init_ToastConfig = __esm({
|
|
32664
32861
|
off_stage_roles = [],
|
32665
32862
|
skip_preview_for_role_change = false
|
32666
32863
|
} = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
|
32667
|
-
const onClickHandler = (0,
|
32864
|
+
const onClickHandler = (0, import_react211.useCallback)(() => __async(void 0, null, function* () {
|
32668
32865
|
if (isSingleHandRaise) {
|
32669
32866
|
hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
32670
32867
|
if (skip_preview_for_role_change) {
|
@@ -32685,7 +32882,7 @@ var init_ToastConfig = __esm({
|
|
32685
32882
|
if (isSingleHandRaise && (!peer || !off_stage_roles.includes(peer.roleName))) {
|
32686
32883
|
return null;
|
32687
32884
|
}
|
32688
|
-
return /* @__PURE__ */
|
32885
|
+
return /* @__PURE__ */ import_react211.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
|
32689
32886
|
});
|
32690
32887
|
ToastConfig = {
|
32691
32888
|
PEER_LIST: {
|
@@ -32694,18 +32891,18 @@ var init_ToastConfig = __esm({
|
|
32694
32891
|
if (notification.data.length === 1) {
|
32695
32892
|
return {
|
32696
32893
|
title: `${(_a8 = notification.data[0]) == null ? void 0 : _a8.name} joined`,
|
32697
|
-
icon: /* @__PURE__ */
|
32894
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.PeopleAddIcon, null)
|
32698
32895
|
};
|
32699
32896
|
}
|
32700
32897
|
return {
|
32701
32898
|
title: `${(_b7 = notification.data[notification.data.length - 1]) == null ? void 0 : _b7.name} and ${notification.data.length - 1} others joined`,
|
32702
|
-
icon: /* @__PURE__ */
|
32899
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.PeopleAddIcon, null)
|
32703
32900
|
};
|
32704
32901
|
},
|
32705
32902
|
multiple: (notifications) => {
|
32706
32903
|
return {
|
32707
32904
|
title: `${notifications[0].data.name} and ${notifications.length - 1} others joined`,
|
32708
|
-
icon: /* @__PURE__ */
|
32905
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.PeopleAddIcon, null)
|
32709
32906
|
};
|
32710
32907
|
}
|
32711
32908
|
},
|
@@ -32714,13 +32911,13 @@ var init_ToastConfig = __esm({
|
|
32714
32911
|
var _a8;
|
32715
32912
|
return {
|
32716
32913
|
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
|
32717
|
-
icon: /* @__PURE__ */
|
32914
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.PeopleAddIcon, null)
|
32718
32915
|
};
|
32719
32916
|
},
|
32720
32917
|
multiple: function(notifications) {
|
32721
32918
|
return {
|
32722
32919
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
32723
|
-
icon: /* @__PURE__ */
|
32920
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.PeopleAddIcon, null)
|
32724
32921
|
};
|
32725
32922
|
}
|
32726
32923
|
},
|
@@ -32729,23 +32926,43 @@ var init_ToastConfig = __esm({
|
|
32729
32926
|
var _a8;
|
32730
32927
|
return {
|
32731
32928
|
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
|
32732
|
-
icon: /* @__PURE__ */
|
32929
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.PeopleRemoveIcon, null)
|
32733
32930
|
};
|
32734
32931
|
},
|
32735
32932
|
multiple: function(notifications) {
|
32736
32933
|
return {
|
32737
32934
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
32738
|
-
icon: /* @__PURE__ */
|
32935
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.PeopleRemoveIcon, null)
|
32739
32936
|
};
|
32740
32937
|
}
|
32741
32938
|
},
|
32742
32939
|
RAISE_HAND: {
|
32940
|
+
single: (notification) => {
|
32941
|
+
var _a8;
|
32942
|
+
return {
|
32943
|
+
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
|
32944
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.HandIcon, null)
|
32945
|
+
};
|
32946
|
+
},
|
32947
|
+
multiple: (notifications) => {
|
32948
|
+
var _a8;
|
32949
|
+
const count = new Set(notifications.map((notification) => {
|
32950
|
+
var _a9;
|
32951
|
+
return (_a9 = notification.data) == null ? void 0 : _a9.id;
|
32952
|
+
})).size;
|
32953
|
+
return {
|
32954
|
+
title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
|
32955
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.HandIcon, null)
|
32956
|
+
};
|
32957
|
+
}
|
32958
|
+
},
|
32959
|
+
RAISE_HAND_HLS: {
|
32743
32960
|
single: (notification) => {
|
32744
32961
|
var _a8, _b7;
|
32745
32962
|
return {
|
32746
32963
|
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
|
32747
|
-
icon: /* @__PURE__ */
|
32748
|
-
action: /* @__PURE__ */
|
32964
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.HandIcon, null),
|
32965
|
+
action: /* @__PURE__ */ import_react211.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
32749
32966
|
};
|
32750
32967
|
},
|
32751
32968
|
multiple: (notifications) => {
|
@@ -32756,8 +32973,8 @@ var init_ToastConfig = __esm({
|
|
32756
32973
|
})).size;
|
32757
32974
|
return {
|
32758
32975
|
title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
|
32759
|
-
icon: /* @__PURE__ */
|
32760
|
-
action: /* @__PURE__ */
|
32976
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.HandIcon, null),
|
32977
|
+
action: /* @__PURE__ */ import_react211.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
32761
32978
|
};
|
32762
32979
|
}
|
32763
32980
|
},
|
@@ -32766,15 +32983,15 @@ var init_ToastConfig = __esm({
|
|
32766
32983
|
var _a8;
|
32767
32984
|
return {
|
32768
32985
|
title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
|
32769
|
-
icon: /* @__PURE__ */
|
32770
|
-
action: /* @__PURE__ */
|
32986
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.ChatUnreadIcon, null),
|
32987
|
+
action: /* @__PURE__ */ import_react211.default.createElement(ChatAction, null)
|
32771
32988
|
};
|
32772
32989
|
},
|
32773
32990
|
multiple: (notifications) => {
|
32774
32991
|
return {
|
32775
32992
|
title: `${notifications.length} new messages`,
|
32776
|
-
icon: /* @__PURE__ */
|
32777
|
-
action: /* @__PURE__ */
|
32993
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.ChatUnreadIcon, null),
|
32994
|
+
action: /* @__PURE__ */ import_react211.default.createElement(ChatAction, null)
|
32778
32995
|
};
|
32779
32996
|
}
|
32780
32997
|
},
|
@@ -32782,7 +32999,7 @@ var init_ToastConfig = __esm({
|
|
32782
32999
|
single: () => {
|
32783
33000
|
return {
|
32784
33001
|
title: `You are now connected`,
|
32785
|
-
icon: /* @__PURE__ */
|
33002
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.ConnectivityIcon, null),
|
32786
33003
|
variant: "success",
|
32787
33004
|
duration: 3e3
|
32788
33005
|
};
|
@@ -32794,7 +33011,7 @@ var init_ToastConfig = __esm({
|
|
32794
33011
|
title: `You are offline for now. while we try to reconnect, please check
|
32795
33012
|
your internet connection. ${message}.
|
32796
33013
|
`,
|
32797
|
-
icon: /* @__PURE__ */
|
33014
|
+
icon: /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.PoorConnectivityIcon, null),
|
32798
33015
|
variant: "warning",
|
32799
33016
|
duration: 3e4
|
32800
33017
|
};
|
@@ -32814,6 +33031,7 @@ var init_ToastBatcher = __esm({
|
|
32814
33031
|
init_ToastManager();
|
32815
33032
|
ToastBatcher = {
|
32816
33033
|
toastsType: /* @__PURE__ */ new Map(),
|
33034
|
+
toastCache: {},
|
32817
33035
|
showToastInternal({ notification, duration, type }) {
|
32818
33036
|
let notificationType = type;
|
32819
33037
|
if (!type) {
|
@@ -32849,7 +33067,13 @@ var init_ToastBatcher = __esm({
|
|
32849
33067
|
},
|
32850
33068
|
showToast({ notification, duration = 3e3, type }) {
|
32851
33069
|
try {
|
32852
|
-
this.
|
33070
|
+
if (!this.toastCache[notification.id]) {
|
33071
|
+
this.showToastInternal({ notification, duration, type });
|
33072
|
+
}
|
33073
|
+
this.toastCache[notification.id] = true;
|
33074
|
+
if (Object.keys(this.toastCache).length > 100) {
|
33075
|
+
this.toastCache = {};
|
33076
|
+
}
|
32853
33077
|
} catch (err) {
|
32854
33078
|
console.debug("Notifications", err);
|
32855
33079
|
}
|
@@ -32867,12 +33091,12 @@ var init_ToastBatcher = __esm({
|
|
32867
33091
|
});
|
32868
33092
|
|
32869
33093
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
32870
|
-
var
|
33094
|
+
var import_react212, import_react_sdk109, HandRaisedNotifications;
|
32871
33095
|
var init_HandRaisedNotifications = __esm({
|
32872
33096
|
"src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
|
32873
33097
|
"use strict";
|
32874
33098
|
init_define_process_env();
|
32875
|
-
|
33099
|
+
import_react212 = require("react");
|
32876
33100
|
import_react_sdk109 = require("@100mslive/react-sdk");
|
32877
33101
|
init_ToastBatcher();
|
32878
33102
|
init_useRoomLayoutScreen();
|
@@ -32884,16 +33108,16 @@ var init_HandRaisedNotifications = __esm({
|
|
32884
33108
|
const vanillaStore = (0, import_react_sdk109.useHMSVanillaStore)();
|
32885
33109
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
32886
33110
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
32887
|
-
(0,
|
33111
|
+
(0, import_react212.useEffect)(() => {
|
32888
33112
|
if (!(notification == null ? void 0 : notification.data)) {
|
32889
33113
|
return;
|
32890
33114
|
}
|
32891
|
-
if (roomState !== import_react_sdk109.HMSRoomState.Connected || notification.data.isLocal || !
|
33115
|
+
if (roomState !== import_react_sdk109.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
|
32892
33116
|
return;
|
32893
33117
|
}
|
32894
33118
|
const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk109.selectHasPeerHandRaised)(notification.data.id));
|
32895
33119
|
if (hasPeerHandRaised) {
|
32896
|
-
ToastBatcher.showToast({ notification, type: "RAISE_HAND" });
|
33120
|
+
ToastBatcher.showToast({ notification, type: on_stage_exp ? "RAISE_HAND_HLS" : "RAISE_HAND" });
|
32897
33121
|
console.debug("Metadata updated", notification.data);
|
32898
33122
|
}
|
32899
33123
|
}, [isSubscribing, notification, on_stage_exp, roomState, vanillaStore]);
|
@@ -32903,20 +33127,20 @@ var init_HandRaisedNotifications = __esm({
|
|
32903
33127
|
});
|
32904
33128
|
|
32905
33129
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
32906
|
-
var
|
33130
|
+
var import_react213, import_react_sdk110, InitErrorModal;
|
32907
33131
|
var init_InitErrorModal = __esm({
|
32908
33132
|
"src/Prebuilt/components/Notifications/InitErrorModal.tsx"() {
|
32909
33133
|
"use strict";
|
32910
33134
|
init_define_process_env();
|
32911
|
-
|
33135
|
+
import_react213 = __toESM(require("react"));
|
32912
33136
|
import_react_sdk110 = require("@100mslive/react-sdk");
|
32913
33137
|
init_src();
|
32914
33138
|
init_DialogContent2();
|
32915
33139
|
InitErrorModal = () => {
|
32916
33140
|
const notification = (0, import_react_sdk110.useHMSNotifications)(import_react_sdk110.HMSNotificationTypes.ERROR);
|
32917
|
-
const [showModal, setShowModal] = (0,
|
32918
|
-
const [info, setInfo] = (0,
|
32919
|
-
(0,
|
33141
|
+
const [showModal, setShowModal] = (0, import_react213.useState)(false);
|
33142
|
+
const [info, setInfo] = (0, import_react213.useState)({ title: "Init Error", description: "" });
|
33143
|
+
(0, import_react213.useEffect)(() => {
|
32920
33144
|
const data3 = notification == null ? void 0 : notification.data;
|
32921
33145
|
if (!data3 || data3.action !== "INIT") {
|
32922
33146
|
return;
|
@@ -32936,18 +33160,18 @@ var init_InitErrorModal = __esm({
|
|
32936
33160
|
setInfo({ title, description });
|
32937
33161
|
setShowModal(true);
|
32938
33162
|
}, [notification]);
|
32939
|
-
return /* @__PURE__ */
|
33163
|
+
return /* @__PURE__ */ import_react213.default.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ import_react213.default.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ import_react213.default.createElement("br", null), "Current URL - ", window.location.href));
|
32940
33164
|
};
|
32941
33165
|
}
|
32942
33166
|
});
|
32943
33167
|
|
32944
33168
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
32945
|
-
var
|
33169
|
+
var import_react214, import_react_sdk111, notificationTypes, PeerNotifications;
|
32946
33170
|
var init_PeerNotifications = __esm({
|
32947
33171
|
"src/Prebuilt/components/Notifications/PeerNotifications.tsx"() {
|
32948
33172
|
"use strict";
|
32949
33173
|
init_define_process_env();
|
32950
|
-
|
33174
|
+
import_react214 = require("react");
|
32951
33175
|
import_react_sdk111 = require("@100mslive/react-sdk");
|
32952
33176
|
init_ToastBatcher();
|
32953
33177
|
init_useUISettings();
|
@@ -32962,7 +33186,7 @@ var init_PeerNotifications = __esm({
|
|
32962
33186
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
32963
33187
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
32964
33188
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
32965
|
-
(0,
|
33189
|
+
(0, import_react214.useEffect)(() => {
|
32966
33190
|
if (!(notification == null ? void 0 : notification.data)) {
|
32967
33191
|
return;
|
32968
33192
|
}
|
@@ -32990,7 +33214,7 @@ var init_PeerNotifications = __esm({
|
|
32990
33214
|
return;
|
32991
33215
|
}
|
32992
33216
|
ToastBatcher.showToast({ notification });
|
32993
|
-
}, [notification, isPeerJoinSubscribed, isPeerLeftSubscribed]);
|
33217
|
+
}, [notification, isPeerJoinSubscribed, isPeerLeftSubscribed, selectedPeer.id, setPeerSelector]);
|
32994
33218
|
return null;
|
32995
33219
|
};
|
32996
33220
|
}
|
@@ -33015,10 +33239,10 @@ var init_ios_perm_0 = __esm({
|
|
33015
33239
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
33016
33240
|
function PermissionErrorModal() {
|
33017
33241
|
const notification = (0, import_react_sdk112.useHMSNotifications)(import_react_sdk112.HMSNotificationTypes.ERROR);
|
33018
|
-
const [deviceType, setDeviceType] = (0,
|
33019
|
-
const [isSystemError, setIsSystemError] = (0,
|
33020
|
-
const isMobile = (0,
|
33021
|
-
(0,
|
33242
|
+
const [deviceType, setDeviceType] = (0, import_react215.useState)("");
|
33243
|
+
const [isSystemError, setIsSystemError] = (0, import_react215.useState)(false);
|
33244
|
+
const isMobile = (0, import_react_use49.useMedia)(config.media.md);
|
33245
|
+
(0, import_react215.useEffect)(() => {
|
33022
33246
|
var _a8, _b7, _c, _d, _e;
|
33023
33247
|
if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
|
33024
33248
|
return;
|
@@ -33039,7 +33263,7 @@ function PermissionErrorModal() {
|
|
33039
33263
|
}
|
33040
33264
|
setIsSystemError(notification.data.code === 3011);
|
33041
33265
|
}, [notification]);
|
33042
|
-
return deviceType ? /* @__PURE__ */
|
33266
|
+
return deviceType ? /* @__PURE__ */ import_react215.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react215.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react215.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react215.default.createElement(
|
33043
33267
|
Dialog.Content,
|
33044
33268
|
{
|
33045
33269
|
css: {
|
@@ -33049,15 +33273,15 @@ function PermissionErrorModal() {
|
|
33049
33273
|
zIndex: 23
|
33050
33274
|
}
|
33051
33275
|
},
|
33052
|
-
/* @__PURE__ */
|
33276
|
+
/* @__PURE__ */ import_react215.default.createElement(
|
33053
33277
|
Dialog.Title,
|
33054
33278
|
{
|
33055
33279
|
css: {
|
33056
33280
|
borderBottom: "1px solid $border_default"
|
33057
33281
|
}
|
33058
33282
|
},
|
33059
|
-
isMobile && isIOS ? /* @__PURE__ */
|
33060
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
33283
|
+
isMobile && isIOS ? /* @__PURE__ */ import_react215.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
33284
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react215.default.createElement(
|
33061
33285
|
"img",
|
33062
33286
|
{
|
33063
33287
|
src: android_perm_1_default,
|
@@ -33065,21 +33289,21 @@ function PermissionErrorModal() {
|
|
33065
33289
|
alt: "Android Permission flow "
|
33066
33290
|
}
|
33067
33291
|
) : null,
|
33068
|
-
/* @__PURE__ */
|
33292
|
+
/* @__PURE__ */ import_react215.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
33069
33293
|
),
|
33070
|
-
/* @__PURE__ */
|
33071
|
-
isMobile && isIOS ? /* @__PURE__ */
|
33072
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
33073
|
-
!isMobile ? /* @__PURE__ */
|
33294
|
+
/* @__PURE__ */ import_react215.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
|
33295
|
+
isMobile && isIOS ? /* @__PURE__ */ import_react215.default.createElement(import_react215.default.Fragment, null, /* @__PURE__ */ import_react215.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react215.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
33296
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react215.default.createElement(import_react215.default.Fragment, null, /* @__PURE__ */ import_react215.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react215.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
33297
|
+
!isMobile ? /* @__PURE__ */ import_react215.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react215.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
33074
33298
|
))) : null;
|
33075
33299
|
}
|
33076
|
-
var
|
33300
|
+
var import_react215, import_react_use49, import_react_sdk112;
|
33077
33301
|
var init_PermissionErrorModal = __esm({
|
33078
33302
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
33079
33303
|
"use strict";
|
33080
33304
|
init_define_process_env();
|
33081
|
-
|
33082
|
-
|
33305
|
+
import_react215 = __toESM(require("react"));
|
33306
|
+
import_react_use49 = require("react-use");
|
33083
33307
|
import_react_sdk112 = require("@100mslive/react-sdk");
|
33084
33308
|
init_src();
|
33085
33309
|
init_android_perm_1();
|
@@ -33089,12 +33313,12 @@ var init_PermissionErrorModal = __esm({
|
|
33089
33313
|
});
|
33090
33314
|
|
33091
33315
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
33092
|
-
var
|
33316
|
+
var import_react216, import_react_sdk113, notificationTypes2, notificationId, ReconnectNotifications;
|
33093
33317
|
var init_ReconnectNotifications = __esm({
|
33094
33318
|
"src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
|
33095
33319
|
"use strict";
|
33096
33320
|
init_define_process_env();
|
33097
|
-
|
33321
|
+
import_react216 = __toESM(require("react"));
|
33098
33322
|
import_react_sdk113 = require("@100mslive/react-sdk");
|
33099
33323
|
init_src();
|
33100
33324
|
init_ToastConfig();
|
@@ -33107,8 +33331,8 @@ var init_ReconnectNotifications = __esm({
|
|
33107
33331
|
notificationId = null;
|
33108
33332
|
ReconnectNotifications = () => {
|
33109
33333
|
const notification = (0, import_react_sdk113.useHMSNotifications)(notificationTypes2);
|
33110
|
-
const [open, setOpen] = (0,
|
33111
|
-
(0,
|
33334
|
+
const [open, setOpen] = (0, import_react216.useState)(false);
|
33335
|
+
(0, import_react216.useEffect)(() => {
|
33112
33336
|
var _a8, _b7;
|
33113
33337
|
if (!notification) {
|
33114
33338
|
return;
|
@@ -33127,7 +33351,7 @@ var init_ReconnectNotifications = __esm({
|
|
33127
33351
|
}, [notification]);
|
33128
33352
|
if (!open)
|
33129
33353
|
return null;
|
33130
|
-
return /* @__PURE__ */
|
33354
|
+
return /* @__PURE__ */ import_react216.default.createElement(Dialog.Root, { open, modal: true }, /* @__PURE__ */ import_react216.default.createElement(Dialog.Portal, { container: document.getElementById("conferencing") }, /* @__PURE__ */ import_react216.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react216.default.createElement(
|
33131
33355
|
Dialog.Content,
|
33132
33356
|
{
|
33133
33357
|
css: {
|
@@ -33141,31 +33365,31 @@ var init_ReconnectNotifications = __esm({
|
|
33141
33365
|
animation: "none !important"
|
33142
33366
|
}
|
33143
33367
|
},
|
33144
|
-
/* @__PURE__ */
|
33368
|
+
/* @__PURE__ */ import_react216.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react216.default.createElement("div", { style: { display: "inline", margin: "0.25rem" } }, /* @__PURE__ */ import_react216.default.createElement(Loading, { size: 16 })), /* @__PURE__ */ import_react216.default.createElement(Text, { css: { fontSize: "$space$8", color: "$on_surface_high" } }, "You lost your network connection. Trying to reconnect."))
|
33145
33369
|
)));
|
33146
33370
|
};
|
33147
33371
|
}
|
33148
33372
|
});
|
33149
33373
|
|
33150
33374
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
33151
|
-
var
|
33375
|
+
var import_react217, import_react_sdk114, import_react_icons100, TrackBulkUnmuteModal;
|
33152
33376
|
var init_TrackBulkUnmuteModal = __esm({
|
33153
33377
|
"src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
|
33154
33378
|
"use strict";
|
33155
33379
|
init_define_process_env();
|
33156
|
-
|
33380
|
+
import_react217 = __toESM(require("react"));
|
33157
33381
|
import_react_sdk114 = require("@100mslive/react-sdk");
|
33158
|
-
|
33382
|
+
import_react_icons100 = require("@100mslive/react-icons");
|
33159
33383
|
init_DialogContent2();
|
33160
33384
|
TrackBulkUnmuteModal = () => {
|
33161
33385
|
const hmsActions = (0, import_react_sdk114.useHMSActions)();
|
33162
|
-
const [muteNotification, setMuteNotification] = (0,
|
33386
|
+
const [muteNotification, setMuteNotification] = (0, import_react217.useState)(null);
|
33163
33387
|
const notification = (0, import_react_sdk114.useHMSNotifications)([
|
33164
33388
|
import_react_sdk114.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
33165
33389
|
import_react_sdk114.HMSNotificationTypes.ROOM_ENDED,
|
33166
33390
|
import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM
|
33167
33391
|
]);
|
33168
|
-
(0,
|
33392
|
+
(0, import_react217.useEffect)(() => {
|
33169
33393
|
switch (notification == null ? void 0 : notification.type) {
|
33170
33394
|
case import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
33171
33395
|
case import_react_sdk114.HMSNotificationTypes.ROOM_ENDED:
|
@@ -33185,7 +33409,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
33185
33409
|
}
|
33186
33410
|
const { requestedBy: peer, tracks, enabled } = muteNotification;
|
33187
33411
|
const types = new Set(tracks.map((track) => track.type));
|
33188
|
-
return /* @__PURE__ */
|
33412
|
+
return /* @__PURE__ */ import_react217.default.createElement(
|
33189
33413
|
RequestDialog,
|
33190
33414
|
{
|
33191
33415
|
title: "Unmute request",
|
@@ -33197,7 +33421,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
33197
33421
|
});
|
33198
33422
|
setMuteNotification(null);
|
33199
33423
|
},
|
33200
|
-
Icon:
|
33424
|
+
Icon: import_react_icons100.MicOnIcon
|
33201
33425
|
}
|
33202
33426
|
);
|
33203
33427
|
};
|
@@ -33205,12 +33429,12 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
33205
33429
|
});
|
33206
33430
|
|
33207
33431
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
33208
|
-
var
|
33432
|
+
var import_react218, import_react_sdk115, notificationTypes3, TrackNotifications;
|
33209
33433
|
var init_TrackNotifications = __esm({
|
33210
33434
|
"src/Prebuilt/components/Notifications/TrackNotifications.tsx"() {
|
33211
33435
|
"use strict";
|
33212
33436
|
init_define_process_env();
|
33213
|
-
|
33437
|
+
import_react218 = require("react");
|
33214
33438
|
import_react_sdk115 = require("@100mslive/react-sdk");
|
33215
33439
|
notificationTypes3 = [
|
33216
33440
|
import_react_sdk115.HMSNotificationTypes.TRACK_ADDED,
|
@@ -33220,7 +33444,7 @@ var init_TrackNotifications = __esm({
|
|
33220
33444
|
];
|
33221
33445
|
TrackNotifications = () => {
|
33222
33446
|
const notification = (0, import_react_sdk115.useHMSNotifications)(notificationTypes3);
|
33223
|
-
(0,
|
33447
|
+
(0, import_react218.useEffect)(() => {
|
33224
33448
|
if (notification) {
|
33225
33449
|
console.debug(`[${notification.type}]`, notification);
|
33226
33450
|
}
|
@@ -33231,14 +33455,14 @@ var init_TrackNotifications = __esm({
|
|
33231
33455
|
});
|
33232
33456
|
|
33233
33457
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
33234
|
-
var
|
33458
|
+
var import_react219, import_react_sdk116, import_react_icons101, TrackUnmuteModal;
|
33235
33459
|
var init_TrackUnmuteModal = __esm({
|
33236
33460
|
"src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
|
33237
33461
|
"use strict";
|
33238
33462
|
init_define_process_env();
|
33239
|
-
|
33463
|
+
import_react219 = __toESM(require("react"));
|
33240
33464
|
import_react_sdk116 = require("@100mslive/react-sdk");
|
33241
|
-
|
33465
|
+
import_react_icons101 = require("@100mslive/react-icons");
|
33242
33466
|
init_DialogContent2();
|
33243
33467
|
TrackUnmuteModal = () => {
|
33244
33468
|
const hmsActions = (0, import_react_sdk116.useHMSActions)();
|
@@ -33247,8 +33471,8 @@ var init_TrackUnmuteModal = __esm({
|
|
33247
33471
|
import_react_sdk116.HMSNotificationTypes.ROOM_ENDED,
|
33248
33472
|
import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM
|
33249
33473
|
]);
|
33250
|
-
const [muteNotification, setMuteNotification] = (0,
|
33251
|
-
(0,
|
33474
|
+
const [muteNotification, setMuteNotification] = (0, import_react219.useState)(null);
|
33475
|
+
(0, import_react219.useEffect)(() => {
|
33252
33476
|
switch (notification == null ? void 0 : notification.type) {
|
33253
33477
|
case import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
33254
33478
|
case import_react_sdk116.HMSNotificationTypes.ROOM_ENDED:
|
@@ -33267,7 +33491,7 @@ var init_TrackUnmuteModal = __esm({
|
|
33267
33491
|
return null;
|
33268
33492
|
}
|
33269
33493
|
const { requestedBy: peer, track, enabled } = muteNotification;
|
33270
|
-
return /* @__PURE__ */
|
33494
|
+
return /* @__PURE__ */ import_react219.default.createElement(
|
33271
33495
|
RequestDialog,
|
33272
33496
|
{
|
33273
33497
|
title: `Unmute your ${track.type}?`,
|
@@ -33277,7 +33501,7 @@ var init_TrackUnmuteModal = __esm({
|
|
33277
33501
|
hmsActions.setEnabledTrack(track.id, enabled);
|
33278
33502
|
setMuteNotification(null);
|
33279
33503
|
},
|
33280
|
-
Icon:
|
33504
|
+
Icon: import_react_icons101.MicOnIcon
|
33281
33505
|
}
|
33282
33506
|
);
|
33283
33507
|
};
|
@@ -33299,14 +33523,14 @@ function Notifications() {
|
|
33299
33523
|
const { showNotification } = (0, import_react_sdk117.useAwayNotifications)();
|
33300
33524
|
const amIScreenSharing = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectIsLocalScreenShared);
|
33301
33525
|
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
33302
|
-
const handleRoleChangeDenied = (0,
|
33526
|
+
const handleRoleChangeDenied = (0, import_react220.useCallback)((request) => {
|
33303
33527
|
ToastManager.addToast({
|
33304
33528
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
33305
33529
|
variant: "error"
|
33306
33530
|
});
|
33307
33531
|
}, []);
|
33308
33532
|
(0, import_react_sdk117.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
33309
|
-
(0,
|
33533
|
+
(0, import_react220.useEffect)(() => {
|
33310
33534
|
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
|
33311
33535
|
if (!notification || isNotificationDisabled) {
|
33312
33536
|
return;
|
@@ -33325,7 +33549,7 @@ function Notifications() {
|
|
33325
33549
|
ToastManager.addToast({
|
33326
33550
|
title: "The room is currently full, try joining later",
|
33327
33551
|
close: true,
|
33328
|
-
icon: /* @__PURE__ */
|
33552
|
+
icon: /* @__PURE__ */ import_react220.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react220.default.createElement(import_react_icons102.GroupIcon, null))
|
33329
33553
|
});
|
33330
33554
|
} else {
|
33331
33555
|
ToastManager.addToast({
|
@@ -33382,7 +33606,7 @@ function Notifications() {
|
|
33382
33606
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk117.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
33383
33607
|
const pollToastID = ToastManager.addToast({
|
33384
33608
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
33385
|
-
action: /* @__PURE__ */
|
33609
|
+
action: /* @__PURE__ */ import_react220.default.createElement(
|
33386
33610
|
Button,
|
33387
33611
|
{
|
33388
33612
|
onClick: () => togglePollView(notification.data.id),
|
@@ -33423,16 +33647,16 @@ function Notifications() {
|
|
33423
33647
|
if (isNotificationDisabled) {
|
33424
33648
|
return null;
|
33425
33649
|
}
|
33426
|
-
return /* @__PURE__ */
|
33650
|
+
return /* @__PURE__ */ import_react220.default.createElement(import_react220.default.Fragment, null, /* @__PURE__ */ import_react220.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react220.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react220.default.createElement(TrackNotifications, null), roomState === import_react_sdk117.HMSRoomState.Connected ? /* @__PURE__ */ import_react220.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react220.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react220.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react220.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react220.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react220.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react220.default.createElement(HandRaisedNotifications, null));
|
33427
33651
|
}
|
33428
|
-
var
|
33652
|
+
var import_react220, import_react_sdk117, import_react_icons102, pollToastKey;
|
33429
33653
|
var init_Notifications = __esm({
|
33430
33654
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
33431
33655
|
"use strict";
|
33432
33656
|
init_define_process_env();
|
33433
|
-
|
33657
|
+
import_react220 = __toESM(require("react"));
|
33434
33658
|
import_react_sdk117 = require("@100mslive/react-sdk");
|
33435
|
-
|
33659
|
+
import_react_icons102 = require("@100mslive/react-icons");
|
33436
33660
|
init_src();
|
33437
33661
|
init_roomLayoutProvider();
|
33438
33662
|
init_ToastManager();
|
@@ -33464,13 +33688,13 @@ var init_Notifications2 = __esm({
|
|
33464
33688
|
});
|
33465
33689
|
|
33466
33690
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
33467
|
-
var
|
33691
|
+
var import_react221, import_react_use50, PreviewScreen;
|
33468
33692
|
var init_PreviewScreen = __esm({
|
33469
33693
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
|
33470
33694
|
"use strict";
|
33471
33695
|
init_define_process_env();
|
33472
|
-
|
33473
|
-
|
33696
|
+
import_react221 = __toESM(require("react"));
|
33697
|
+
import_react_use50 = require("react-use");
|
33474
33698
|
init_src();
|
33475
33699
|
init_AppContext();
|
33476
33700
|
init_roomLayoutProvider();
|
@@ -33483,36 +33707,36 @@ var init_PreviewScreen = __esm({
|
|
33483
33707
|
var _a8, _b7, _c;
|
33484
33708
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
33485
33709
|
const skipPreview = !isPreviewScreenEnabled;
|
33486
|
-
const previewAsRole = (0,
|
33710
|
+
const previewAsRole = (0, import_react_use50.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
33487
33711
|
const { userName } = useHMSPrebuiltContext();
|
33488
33712
|
const initialName = userName || (skipPreview ? "Beam" : "");
|
33489
33713
|
const authToken = useAuthToken();
|
33490
33714
|
const roomLayout = useRoomLayout();
|
33491
33715
|
const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
33492
|
-
return /* @__PURE__ */
|
33716
|
+
return /* @__PURE__ */ import_react221.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react221.default.createElement(
|
33493
33717
|
Flex,
|
33494
33718
|
{
|
33495
33719
|
css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
|
33496
33720
|
justify: "center",
|
33497
33721
|
align: "center"
|
33498
33722
|
},
|
33499
|
-
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */
|
33723
|
+
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ import_react221.default.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ import_react221.default.createElement(FullPageProgress_default, null)
|
33500
33724
|
));
|
33501
33725
|
};
|
33502
33726
|
}
|
33503
33727
|
});
|
33504
33728
|
|
33505
33729
|
// src/Prebuilt/components/Toast/Toast.jsx
|
33506
|
-
var
|
33730
|
+
var import_react222, Toast2;
|
33507
33731
|
var init_Toast3 = __esm({
|
33508
33732
|
"src/Prebuilt/components/Toast/Toast.jsx"() {
|
33509
33733
|
"use strict";
|
33510
33734
|
init_define_process_env();
|
33511
|
-
|
33735
|
+
import_react222 = __toESM(require("react"));
|
33512
33736
|
init_Toast2();
|
33513
33737
|
Toast2 = (_a8) => {
|
33514
33738
|
var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
|
33515
|
-
return /* @__PURE__ */
|
33739
|
+
return /* @__PURE__ */ import_react222.default.createElement(
|
33516
33740
|
Toast.HMSToast,
|
33517
33741
|
__spreadValues({
|
33518
33742
|
title,
|
@@ -33529,12 +33753,12 @@ var init_Toast3 = __esm({
|
|
33529
33753
|
});
|
33530
33754
|
|
33531
33755
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
33532
|
-
var
|
33756
|
+
var import_react223, import_react_sdk118, ToastContainer;
|
33533
33757
|
var init_ToastContainer = __esm({
|
33534
33758
|
"src/Prebuilt/components/Toast/ToastContainer.jsx"() {
|
33535
33759
|
"use strict";
|
33536
33760
|
init_define_process_env();
|
33537
|
-
|
33761
|
+
import_react223 = __toESM(require("react"));
|
33538
33762
|
import_react_sdk118 = require("@100mslive/react-sdk");
|
33539
33763
|
init_Toast2();
|
33540
33764
|
init_Toast3();
|
@@ -33542,16 +33766,16 @@ var init_ToastContainer = __esm({
|
|
33542
33766
|
init_constants();
|
33543
33767
|
ToastContainer = () => {
|
33544
33768
|
const isConnected = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectIsConnectedToRoom);
|
33545
|
-
const [toasts, setToast] = (0,
|
33546
|
-
(0,
|
33769
|
+
const [toasts, setToast] = (0, import_react223.useState)([]);
|
33770
|
+
(0, import_react223.useEffect)(() => {
|
33547
33771
|
ToastManager.addListener(setToast);
|
33548
33772
|
return () => {
|
33549
33773
|
ToastManager.removeListener(setToast);
|
33550
33774
|
};
|
33551
33775
|
}, []);
|
33552
|
-
return /* @__PURE__ */
|
33553
|
-
return /* @__PURE__ */
|
33554
|
-
}), /* @__PURE__ */
|
33776
|
+
return /* @__PURE__ */ import_react223.default.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
|
33777
|
+
return /* @__PURE__ */ import_react223.default.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
|
33778
|
+
}), /* @__PURE__ */ import_react223.default.createElement(
|
33555
33779
|
Toast.Viewport,
|
33556
33780
|
{
|
33557
33781
|
css: __spreadValues({
|
@@ -33564,13 +33788,13 @@ var init_ToastContainer = __esm({
|
|
33564
33788
|
});
|
33565
33789
|
|
33566
33790
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
33567
|
-
var
|
33791
|
+
var import_react224, import_react_icons103, RoomDetailsSheet;
|
33568
33792
|
var init_RoomDetailsSheet = __esm({
|
33569
33793
|
"src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx"() {
|
33570
33794
|
"use strict";
|
33571
33795
|
init_define_process_env();
|
33572
|
-
|
33573
|
-
|
33796
|
+
import_react224 = __toESM(require("react"));
|
33797
|
+
import_react_icons103 = require("@100mslive/react-icons");
|
33574
33798
|
init_Layout();
|
33575
33799
|
init_Sheet2();
|
33576
33800
|
init_Text2();
|
@@ -33583,27 +33807,27 @@ var init_RoomDetailsSheet = __esm({
|
|
33583
33807
|
const { title, description, details } = useRoomLayoutHeader();
|
33584
33808
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
33585
33809
|
const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
|
33586
|
-
return /* @__PURE__ */
|
33810
|
+
return /* @__PURE__ */ import_react224.default.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ import_react224.default.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ import_react224.default.createElement(
|
33587
33811
|
Flex,
|
33588
33812
|
{
|
33589
33813
|
justify: "between",
|
33590
33814
|
align: "center",
|
33591
33815
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
33592
33816
|
},
|
33593
|
-
/* @__PURE__ */
|
33594
|
-
/* @__PURE__ */
|
33595
|
-
), /* @__PURE__ */
|
33817
|
+
/* @__PURE__ */ import_react224.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
33818
|
+
/* @__PURE__ */ import_react224.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react224.default.createElement(import_react_icons103.CrossIcon, null))
|
33819
|
+
), /* @__PURE__ */ import_react224.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ import_react224.default.createElement(Logo, null), /* @__PURE__ */ import_react224.default.createElement(Box, null, /* @__PURE__ */ import_react224.default.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ import_react224.default.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ import_react224.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
33596
33820
|
};
|
33597
33821
|
}
|
33598
33822
|
});
|
33599
33823
|
|
33600
33824
|
// src/Prebuilt/layouts/Sheet.tsx
|
33601
|
-
var
|
33825
|
+
var import_react225, import_react_sdk119, Sheet2;
|
33602
33826
|
var init_Sheet3 = __esm({
|
33603
33827
|
"src/Prebuilt/layouts/Sheet.tsx"() {
|
33604
33828
|
"use strict";
|
33605
33829
|
init_define_process_env();
|
33606
|
-
|
33830
|
+
import_react225 = __toESM(require("react"));
|
33607
33831
|
import_react_sdk119 = require("@100mslive/react-sdk");
|
33608
33832
|
init_RoomDetailsSheet();
|
33609
33833
|
init_Layout();
|
@@ -33612,9 +33836,9 @@ var init_Sheet3 = __esm({
|
|
33612
33836
|
const sheet = (0, import_react_sdk119.useHMSStore)((0, import_react_sdk119.selectAppData)(APP_DATA.sheet));
|
33613
33837
|
let ViewComponent;
|
33614
33838
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
33615
|
-
ViewComponent = /* @__PURE__ */
|
33839
|
+
ViewComponent = /* @__PURE__ */ import_react225.default.createElement(RoomDetailsSheet, null);
|
33616
33840
|
}
|
33617
|
-
return /* @__PURE__ */
|
33841
|
+
return /* @__PURE__ */ import_react225.default.createElement(Box, null, ViewComponent);
|
33618
33842
|
};
|
33619
33843
|
}
|
33620
33844
|
});
|
@@ -33623,10 +33847,10 @@ var init_Sheet3 = __esm({
|
|
33623
33847
|
function FlyingEmoji() {
|
33624
33848
|
const localPeerId = (0, import_react_sdk120.useHMSStore)(import_react_sdk120.selectLocalPeerID);
|
33625
33849
|
const vanillaStore = (0, import_react_sdk120.useHMSVanillaStore)();
|
33626
|
-
const [emojis, setEmojis] = (0,
|
33627
|
-
const isMobile = (0,
|
33628
|
-
const startingPoints = (0,
|
33629
|
-
const showFlyingEmoji = (0,
|
33850
|
+
const [emojis, setEmojis] = (0, import_react226.useState)([]);
|
33851
|
+
const isMobile = (0, import_react_use51.useMedia)(config.media.md);
|
33852
|
+
const startingPoints = (0, import_react226.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
33853
|
+
const showFlyingEmoji = (0, import_react226.useCallback)(
|
33630
33854
|
({ emojiId, senderId }) => {
|
33631
33855
|
if (!emojiId || !senderId || document.hidden) {
|
33632
33856
|
return;
|
@@ -33654,10 +33878,10 @@ function FlyingEmoji() {
|
|
33654
33878
|
type: EMOJI_REACTION_TYPE,
|
33655
33879
|
onEvent: showFlyingEmoji
|
33656
33880
|
});
|
33657
|
-
(0,
|
33881
|
+
(0, import_react226.useEffect)(() => {
|
33658
33882
|
window.showFlyingEmoji = showFlyingEmoji;
|
33659
33883
|
}, [showFlyingEmoji]);
|
33660
|
-
return /* @__PURE__ */
|
33884
|
+
return /* @__PURE__ */ import_react226.default.createElement(
|
33661
33885
|
Box,
|
33662
33886
|
{
|
33663
33887
|
css: {
|
@@ -33673,7 +33897,7 @@ function FlyingEmoji() {
|
|
33673
33897
|
}
|
33674
33898
|
},
|
33675
33899
|
emojis.map((emoji) => {
|
33676
|
-
return /* @__PURE__ */
|
33900
|
+
return /* @__PURE__ */ import_react226.default.createElement(
|
33677
33901
|
Flex,
|
33678
33902
|
{
|
33679
33903
|
key: emoji.id,
|
@@ -33689,8 +33913,8 @@ function FlyingEmoji() {
|
|
33689
33913
|
setEmojis(emojis.filter((item) => item.id !== emoji.id));
|
33690
33914
|
}
|
33691
33915
|
},
|
33692
|
-
/* @__PURE__ */
|
33693
|
-
/* @__PURE__ */
|
33916
|
+
/* @__PURE__ */ import_react226.default.createElement(Box, null, /* @__PURE__ */ import_react226.default.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
|
33917
|
+
/* @__PURE__ */ import_react226.default.createElement(
|
33694
33918
|
Box,
|
33695
33919
|
{
|
33696
33920
|
css: {
|
@@ -33700,7 +33924,7 @@ function FlyingEmoji() {
|
|
33700
33924
|
borderRadius: "$1"
|
33701
33925
|
}
|
33702
33926
|
},
|
33703
|
-
/* @__PURE__ */
|
33927
|
+
/* @__PURE__ */ import_react226.default.createElement(
|
33704
33928
|
Text,
|
33705
33929
|
{
|
33706
33930
|
css: {
|
@@ -33716,13 +33940,13 @@ function FlyingEmoji() {
|
|
33716
33940
|
})
|
33717
33941
|
);
|
33718
33942
|
}
|
33719
|
-
var
|
33943
|
+
var import_react226, import_react_use51, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
33720
33944
|
var init_FlyingEmoji = __esm({
|
33721
33945
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
33722
33946
|
"use strict";
|
33723
33947
|
init_define_process_env();
|
33724
|
-
|
33725
|
-
|
33948
|
+
import_react226 = __toESM(require("react"));
|
33949
|
+
import_react_use51 = require("react-use");
|
33726
33950
|
import_react_sdk120 = require("@100mslive/react-sdk");
|
33727
33951
|
init_Layout();
|
33728
33952
|
init_Text2();
|
@@ -33757,33 +33981,33 @@ var init_FlyingEmoji = __esm({
|
|
33757
33981
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
33758
33982
|
function RemoteStopScreenshare() {
|
33759
33983
|
const actions = (0, import_react_sdk121.useHMSActions)();
|
33760
|
-
const onRemoteStopScreenshare = (0,
|
33984
|
+
const onRemoteStopScreenshare = (0, import_react227.useCallback)(() => __async(this, null, function* () {
|
33761
33985
|
yield actions.setScreenShareEnabled(false);
|
33762
33986
|
}), [actions]);
|
33763
33987
|
(0, import_react_sdk121.useCustomEvent)({
|
33764
33988
|
type: REMOTE_STOP_SCREENSHARE_TYPE,
|
33765
33989
|
onEvent: onRemoteStopScreenshare
|
33766
33990
|
});
|
33767
|
-
return /* @__PURE__ */
|
33991
|
+
return /* @__PURE__ */ import_react227.default.createElement(import_react227.default.Fragment, null);
|
33768
33992
|
}
|
33769
|
-
var
|
33993
|
+
var import_react227, import_react_sdk121;
|
33770
33994
|
var init_RemoteStopScreenshare = __esm({
|
33771
33995
|
"src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
|
33772
33996
|
"use strict";
|
33773
33997
|
init_define_process_env();
|
33774
|
-
|
33998
|
+
import_react227 = __toESM(require("react"));
|
33775
33999
|
import_react_sdk121 = require("@100mslive/react-sdk");
|
33776
34000
|
init_constants();
|
33777
34001
|
}
|
33778
34002
|
});
|
33779
34003
|
|
33780
34004
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
33781
|
-
var
|
34005
|
+
var import_react228, import_react_sdk122, useAutoStartStreaming;
|
33782
34006
|
var init_useAutoStartStreaming = __esm({
|
33783
34007
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
|
33784
34008
|
"use strict";
|
33785
34009
|
init_define_process_env();
|
33786
|
-
|
34010
|
+
import_react228 = require("react");
|
33787
34011
|
import_react_sdk122 = require("@100mslive/react-sdk");
|
33788
34012
|
init_useUISettings();
|
33789
34013
|
init_hooks();
|
@@ -33795,8 +34019,8 @@ var init_useAutoStartStreaming = __esm({
|
|
33795
34019
|
const hmsActions = (0, import_react_sdk122.useHMSActions)();
|
33796
34020
|
const isConnected = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectIsConnectedToRoom);
|
33797
34021
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk122.useRecordingStreaming)();
|
33798
|
-
const streamStartedRef = (0,
|
33799
|
-
const startHLS = (0,
|
34022
|
+
const streamStartedRef = (0, import_react228.useRef)(false);
|
34023
|
+
const startHLS = (0, import_react228.useCallback)(() => __async(void 0, null, function* () {
|
33800
34024
|
try {
|
33801
34025
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
33802
34026
|
return;
|
@@ -33819,12 +34043,12 @@ var init_useAutoStartStreaming = __esm({
|
|
33819
34043
|
isHLSRecordingOn,
|
33820
34044
|
isBrowserRecordingOn
|
33821
34045
|
]);
|
33822
|
-
(0,
|
34046
|
+
(0, import_react228.useEffect)(() => {
|
33823
34047
|
if (!isHLSStarted && !isHLSRunning) {
|
33824
34048
|
streamStartedRef.current = false;
|
33825
34049
|
}
|
33826
34050
|
}, [isHLSStarted, isHLSRunning]);
|
33827
|
-
(0,
|
34051
|
+
(0, import_react228.useEffect)(() => {
|
33828
34052
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
33829
34053
|
return;
|
33830
34054
|
}
|
@@ -33842,14 +34066,14 @@ function AppRoutes({
|
|
33842
34066
|
const roomLayout = useRoomLayout();
|
33843
34067
|
const isNotificationsDisabled = useIsNotificationDisabled();
|
33844
34068
|
const { activeState, rejoin } = useAppStateManager();
|
33845
|
-
return /* @__PURE__ */
|
34069
|
+
return /* @__PURE__ */ import_react229.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react229.default.createElement(import_react229.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react229.default.createElement(AppData, null), /* @__PURE__ */ import_react229.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react229.default.createElement(Notifications, null), /* @__PURE__ */ import_react229.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react229.default.createElement(Sheet2, null), /* @__PURE__ */ import_react229.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react229.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react229.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react229.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react229.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react229.default.createElement(AppStates, { activeState })));
|
33846
34070
|
}
|
33847
|
-
var
|
34071
|
+
var import_react229, import_react_sdk123, HMSPrebuilt, AppStates, BackSwipe;
|
33848
34072
|
var init_App = __esm({
|
33849
34073
|
"src/Prebuilt/App.tsx"() {
|
33850
34074
|
"use strict";
|
33851
34075
|
init_define_process_env();
|
33852
|
-
|
34076
|
+
import_react229 = __toESM(require("react"));
|
33853
34077
|
import_react_sdk123 = require("@100mslive/react-sdk");
|
33854
34078
|
init_AppData();
|
33855
34079
|
init_AuthToken();
|
@@ -33877,7 +34101,7 @@ var init_App = __esm({
|
|
33877
34101
|
init_useRoomLayoutScreen();
|
33878
34102
|
init_FeatureFlags();
|
33879
34103
|
init_constants();
|
33880
|
-
HMSPrebuilt =
|
34104
|
+
HMSPrebuilt = import_react229.default.forwardRef(
|
33881
34105
|
({
|
33882
34106
|
roomCode = "",
|
33883
34107
|
authToken = "",
|
@@ -33891,9 +34115,9 @@ var init_App = __esm({
|
|
33891
34115
|
onJoin
|
33892
34116
|
}, ref) => {
|
33893
34117
|
var _a8, _b7, _c, _d;
|
33894
|
-
const reactiveStore = (0,
|
33895
|
-
const [hydrated, setHydrated] =
|
33896
|
-
(0,
|
34118
|
+
const reactiveStore = (0, import_react229.useRef)();
|
34119
|
+
const [hydrated, setHydrated] = import_react229.default.useState(false);
|
34120
|
+
(0, import_react229.useEffect)(() => {
|
33897
34121
|
setHydrated(true);
|
33898
34122
|
const hms = new import_react_sdk123.HMSReactiveStore();
|
33899
34123
|
const hmsStore = hms.getStore();
|
@@ -33908,13 +34132,13 @@ var init_App = __esm({
|
|
33908
34132
|
hmsNotifications
|
33909
34133
|
};
|
33910
34134
|
}, []);
|
33911
|
-
(0,
|
34135
|
+
(0, import_react229.useEffect)(() => {
|
33912
34136
|
if (!ref || !reactiveStore.current) {
|
33913
34137
|
return;
|
33914
34138
|
}
|
33915
34139
|
ref.current = __spreadValues({}, reactiveStore.current);
|
33916
34140
|
}, [ref]);
|
33917
|
-
(0,
|
34141
|
+
(0, import_react229.useEffect)(() => {
|
33918
34142
|
return () => {
|
33919
34143
|
var _a9;
|
33920
34144
|
VBHandler.reset();
|
@@ -33943,7 +34167,7 @@ var init_App = __esm({
|
|
33943
34167
|
return null;
|
33944
34168
|
}
|
33945
34169
|
globalStyles();
|
33946
|
-
return /* @__PURE__ */
|
34170
|
+
return /* @__PURE__ */ import_react229.default.createElement(ErrorBoundary, null, /* @__PURE__ */ import_react229.default.createElement(
|
33947
34171
|
HMSPrebuiltContext.Provider,
|
33948
34172
|
{
|
33949
34173
|
value: {
|
@@ -33960,7 +34184,7 @@ var init_App = __esm({
|
|
33960
34184
|
}
|
33961
34185
|
}
|
33962
34186
|
},
|
33963
|
-
/* @__PURE__ */
|
34187
|
+
/* @__PURE__ */ import_react229.default.createElement(
|
33964
34188
|
import_react_sdk123.HMSRoomProvider,
|
33965
34189
|
{
|
33966
34190
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
@@ -33969,7 +34193,7 @@ var init_App = __esm({
|
|
33969
34193
|
notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
|
33970
34194
|
stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats
|
33971
34195
|
},
|
33972
|
-
/* @__PURE__ */
|
34196
|
+
/* @__PURE__ */ import_react229.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react229.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
|
33973
34197
|
var _a9;
|
33974
34198
|
const layout = data3 == null ? void 0 : data3.layout;
|
33975
34199
|
const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
|
@@ -33978,7 +34202,7 @@ var init_App = __esm({
|
|
33978
34202
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
33979
34203
|
fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
|
33980
34204
|
}
|
33981
|
-
return /* @__PURE__ */
|
34205
|
+
return /* @__PURE__ */ import_react229.default.createElement(
|
33982
34206
|
HMSThemeProvider,
|
33983
34207
|
{
|
33984
34208
|
themeType: `${theme2.name}-${Date.now()}`,
|
@@ -33991,8 +34215,8 @@ var init_App = __esm({
|
|
33991
34215
|
}
|
33992
34216
|
}
|
33993
34217
|
},
|
33994
|
-
/* @__PURE__ */
|
33995
|
-
/* @__PURE__ */
|
34218
|
+
/* @__PURE__ */ import_react229.default.createElement(Init, null),
|
34219
|
+
/* @__PURE__ */ import_react229.default.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ import_react229.default.createElement(
|
33996
34220
|
Box,
|
33997
34221
|
{
|
33998
34222
|
className: DEFAULT_PORTAL_CONTAINER.slice(1),
|
@@ -34004,7 +34228,7 @@ var init_App = __esm({
|
|
34004
34228
|
position: "relative"
|
34005
34229
|
}
|
34006
34230
|
},
|
34007
|
-
/* @__PURE__ */
|
34231
|
+
/* @__PURE__ */ import_react229.default.createElement(
|
34008
34232
|
AppRoutes,
|
34009
34233
|
{
|
34010
34234
|
authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
|
@@ -34024,16 +34248,16 @@ var init_App = __esm({
|
|
34024
34248
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
34025
34249
|
useAutoStartStreaming();
|
34026
34250
|
if (activeState === "preview" /* PREVIEW */ && isPreviewScreenEnabled) {
|
34027
|
-
return /* @__PURE__ */
|
34251
|
+
return /* @__PURE__ */ import_react229.default.createElement(PreviewScreen, null);
|
34028
34252
|
} else if (activeState === "leave" /* LEAVE */ && isLeaveScreenEnabled) {
|
34029
|
-
return /* @__PURE__ */
|
34253
|
+
return /* @__PURE__ */ import_react229.default.createElement(LeaveScreen, null);
|
34030
34254
|
}
|
34031
|
-
return /* @__PURE__ */
|
34255
|
+
return /* @__PURE__ */ import_react229.default.createElement(ConferenceScreen, null);
|
34032
34256
|
};
|
34033
34257
|
BackSwipe = () => {
|
34034
34258
|
const isConnectedToRoom = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsConnectedToRoom);
|
34035
34259
|
const hmsActions = (0, import_react_sdk123.useHMSActions)();
|
34036
|
-
(0,
|
34260
|
+
(0, import_react229.useEffect)(() => {
|
34037
34261
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
34038
34262
|
if (isConnectedToRoom) {
|
34039
34263
|
yield hmsActions.leave();
|