@100mslive/roomkit-react 0.3.3-alpha.1 → 0.3.3-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-GDOF4655.js → HLSView-BCIIVR2T.js} +331 -166
- package/dist/HLSView-BCIIVR2T.js.map +7 -0
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/Modal/Dialog.d.ts +1 -1
- package/dist/Prebuilt/IconButton.d.ts +2 -3
- package/dist/Prebuilt/components/Footer/ChatToggle.d.ts +3 -1
- package/dist/Prebuilt/components/HMSVideo/PlayPauseButton.d.ts +2 -2
- package/dist/Prebuilt/components/HMSVideo/PlayPauseSeekControls.d.ts +14 -0
- package/dist/Prebuilt/components/HMSVideo/{SeekControls.d.ts → SeekControl.d.ts} +2 -2
- package/dist/Prebuilt/components/HMSVideo/index.d.ts +15 -11
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +2 -2
- package/dist/Prebuilt/components/VideoLayouts/WhiteboardLayout.d.ts +3 -0
- package/dist/Sheet/Sheet.d.ts +1 -1
- package/dist/{chunk-ZDW56PPL.js → chunk-W47ZJGSD.js} +212 -165
- package/dist/chunk-W47ZJGSD.js.map +7 -0
- package/dist/index.cjs.js +923 -696
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +196 -112
- package/dist/meta.esbuild.json +210 -125
- package/package.json +6 -6
- package/src/IconButton/IconButton.tsx +2 -7
- package/src/Prebuilt/IconButton.tsx +6 -10
- package/src/Prebuilt/components/Footer/ChatToggle.tsx +2 -2
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +4 -1
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +5 -6
- package/src/Prebuilt/components/Footer/WhiteboardToggle.tsx +17 -3
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +1 -0
- package/src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx +2 -2
- package/src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx +158 -0
- package/src/Prebuilt/components/HMSVideo/{SeekControls.tsx → SeekControl.tsx} +2 -2
- package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +7 -3
- package/src/Prebuilt/components/HMSVideo/index.ts +5 -4
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx +7 -7
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +27 -4
- package/src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx +95 -0
- package/src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx +13 -5
- package/src/Prebuilt/layouts/HLSView.jsx +115 -78
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +1 -17
- package/dist/HLSView-GDOF4655.js.map +0 -7
- package/dist/Prebuilt/layouts/WhiteboardView.d.ts +0 -2
- package/dist/chunk-ZDW56PPL.js.map +0 -7
- package/src/Prebuilt/layouts/WhiteboardView.tsx +0 -69
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_b2dfce6c-1460-4d7f-9260-6a3b0805fa80", 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.22 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.10.3-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b2dfce6c-1460-4d7f-9260-6a3b0805fa80", 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.13.3-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", 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: "590", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240310.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.1/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:19554", 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.3.3-alpha.1", 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: "8338903597", 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: "8e27b80c474e3487828a60fce4aa1f444aa14577", 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: "2b4eb6b136e5c67e12006fe982ceadc0ea33b23198cb8487892ca00ba4e2cd5c", 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--1710832096589-0.6370797788370992:/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--1710832096394-0.31759327289111483:/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--1710832073832-0.31470723189659267:/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--1710832073647-0.23318157752573399:/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_bc8accc0-5dd2-44bf-aebb-4cc97b5738e1", INVOCATION_ID: "59e00abec76b4888b0bce75a92bf4b9a", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "482", 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 264", 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.10.3-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_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: "8e27b80c474e3487828a60fce4aa1f444aa14577", 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_b2dfce6c-1460-4d7f-9260-6a3b0805fa80", 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_b2dfce6c-1460-4d7f-9260-6a3b0805fa80", 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_b2dfce6c-1460-4d7f-9260-6a3b0805fa80" };
|
111
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e1af34ff-a562-4ece-98b8-62d8c089106d", 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.22 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.10.3-alpha.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_e1af34ff-a562-4ece-98b8-62d8c089106d", 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.13.3-alpha.3", 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.8", 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: "595", 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.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.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.1/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:19832", 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.3.3-alpha.3", 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: "8343246532", 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: "2f0dfb954601e7028cf0a4d9582a30be0fe726ca", 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: "dc383a02648df0438838bc7519ddf0466d732140d594ac7884f40b9ad676af22", 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--1710852557001-0.002215858080938826:/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--1710852556808-0.8108733321995873:/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--1710852534869-0.8214156190232955:/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--1710852534692-0.4998782271041631:/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_9b743310-ce74-40c4-985b-43804b3d6bc4", INVOCATION_ID: "9c159d16d0984bb1b5de7dbc6ec5d7a9", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "484", 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 410", 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.10.3-alpha.3", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.3", 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: "2f0dfb954601e7028cf0a4d9582a30be0fe726ca", 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_e1af34ff-a562-4ece-98b8-62d8c089106d", 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_e1af34ff-a562-4ece-98b8-62d8c089106d", 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_e1af34ff-a562-4ece-98b8-62d8c089106d" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -1176,20 +1176,15 @@ var init_IconButton = __esm({
|
|
1176
1176
|
},
|
1177
1177
|
"&[disabled]": {
|
1178
1178
|
opacity: 0.5,
|
1179
|
-
cursor: "not-allowed"
|
1179
|
+
cursor: "not-allowed",
|
1180
|
+
backgroundColor: "$secondary_dim",
|
1181
|
+
color: "$on_primary_high"
|
1180
1182
|
},
|
1181
1183
|
"&:focus": {
|
1182
1184
|
outline: "none"
|
1183
1185
|
},
|
1184
1186
|
variants: {
|
1185
1187
|
active: {
|
1186
|
-
false: {
|
1187
|
-
backgroundColor: "$secondary_dim",
|
1188
|
-
color: "$on_primary_high",
|
1189
|
-
"&:not([disabled]):hover": {
|
1190
|
-
backgroundColor: "$secondary_default"
|
1191
|
-
}
|
1192
|
-
},
|
1193
1188
|
true: {
|
1194
1189
|
"&:not([disabled]):hover": {
|
1195
1190
|
backgroundColor: "$on_surface_low"
|
@@ -10282,21 +10277,17 @@ var init_IconButton3 = __esm({
|
|
10282
10277
|
border: "1px solid $border_bright",
|
10283
10278
|
bg: "$background_dim",
|
10284
10279
|
r: "$1",
|
10280
|
+
"&[disabled]": {
|
10281
|
+
opacity: 0.5,
|
10282
|
+
cursor: "not-allowed",
|
10283
|
+
backgroundColor: "$secondary_dim",
|
10284
|
+
color: "$on_primary_high"
|
10285
|
+
},
|
10285
10286
|
variants: {
|
10286
10287
|
active: {
|
10287
10288
|
true: {
|
10288
10289
|
color: "$on_surface_high",
|
10289
10290
|
backgroundColor: "transparent"
|
10290
|
-
},
|
10291
|
-
false: {
|
10292
|
-
border: "1px solid transparent",
|
10293
|
-
color: "$on_primary_high"
|
10294
|
-
}
|
10295
|
-
},
|
10296
|
-
disabled: {
|
10297
|
-
true: {
|
10298
|
-
backgroundColor: "$surface_brighter",
|
10299
|
-
color: "$on_surface_low"
|
10300
10291
|
}
|
10301
10292
|
}
|
10302
10293
|
}
|
@@ -10336,9 +10327,9 @@ var init_IconButtonWithOptions = __esm({
|
|
10336
10327
|
p: "$4",
|
10337
10328
|
r: "$1",
|
10338
10329
|
bg: "transparent",
|
10339
|
-
borderTopRightRadius: 0,
|
10330
|
+
borderTopRightRadius: "0 !important",
|
10340
10331
|
borderColor: "$border_bright",
|
10341
|
-
borderBottomRightRadius: 0,
|
10332
|
+
borderBottomRightRadius: "0 !important",
|
10342
10333
|
position: "relative",
|
10343
10334
|
"&:not([disabled]):focus-visible": {
|
10344
10335
|
zIndex: 1
|
@@ -10351,8 +10342,8 @@ var init_IconButtonWithOptions = __esm({
|
|
10351
10342
|
variants: __spreadProps(__spreadValues({}, variants), {
|
10352
10343
|
hideOptions: {
|
10353
10344
|
true: {
|
10354
|
-
borderTopRightRadius: "$1",
|
10355
|
-
borderBottomRightRadius: "$1"
|
10345
|
+
borderTopRightRadius: "$1 !important",
|
10346
|
+
borderBottomRightRadius: "$1 !important"
|
10356
10347
|
}
|
10357
10348
|
}
|
10358
10349
|
})
|
@@ -10362,10 +10353,10 @@ var init_IconButtonWithOptions = __esm({
|
|
10362
10353
|
h: "$14",
|
10363
10354
|
p: "$4 $2",
|
10364
10355
|
r: "$1",
|
10365
|
-
borderTopLeftRadius: 0,
|
10356
|
+
borderTopLeftRadius: "0 !important",
|
10366
10357
|
borderColor: "$border_bright",
|
10367
|
-
borderBottomLeftRadius: 0,
|
10368
|
-
borderLeftWidth: 0,
|
10358
|
+
borderBottomLeftRadius: "0 !important",
|
10359
|
+
borderLeftWidth: "0 !important",
|
10369
10360
|
position: "relative",
|
10370
10361
|
"&:not([disabled]):focus-visible": {
|
10371
10362
|
zIndex: 1
|
@@ -19559,7 +19550,7 @@ var init_dist = __esm({
|
|
19559
19550
|
};
|
19560
19551
|
Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19561
19552
|
lr = Ia((ed, Ka) => {
|
19562
|
-
Ka.exports = { version: "0.12.3-alpha.
|
19553
|
+
Ka.exports = { version: "0.12.3-alpha.3", 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"] };
|
19563
19554
|
});
|
19564
19555
|
Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
|
19565
19556
|
Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
|
@@ -22222,7 +22213,7 @@ var init_ChatToggle = __esm({
|
|
22222
22213
|
init_IconButton3();
|
22223
22214
|
init_useSidepane();
|
22224
22215
|
init_constants();
|
22225
|
-
ChatToggle = () => {
|
22216
|
+
ChatToggle = ({ onClick }) => {
|
22226
22217
|
const countUnreadMessages = (0, import_react_sdk40.useHMSStore)(import_react_sdk40.selectUnreadHMSMessagesCount);
|
22227
22218
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
22228
22219
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
@@ -22233,7 +22224,7 @@ var init_ChatToggle = __esm({
|
|
22233
22224
|
position: "relative"
|
22234
22225
|
}
|
22235
22226
|
},
|
22236
|
-
/* @__PURE__ */ import_react89.default.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ import_react89.default.createElement(IconButton_default, { onClick: toggleChat, active: !isChatOpen, "data-testid": "chat_btn" }, /* @__PURE__ */ import_react89.default.createElement(import_react_icons38.ChatIcon, null))),
|
22227
|
+
/* @__PURE__ */ import_react89.default.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ import_react89.default.createElement(IconButton_default, { onClick: () => onClick ? onClick() : toggleChat(), active: !isChatOpen, "data-testid": "chat_btn" }, /* @__PURE__ */ import_react89.default.createElement(import_react_icons38.ChatIcon, null))),
|
22237
22228
|
countUnreadMessages > 0 && /* @__PURE__ */ import_react89.default.createElement(
|
22238
22229
|
Flex,
|
22239
22230
|
{
|
@@ -22754,7 +22745,7 @@ var init_RoleAccordion = __esm({
|
|
22754
22745
|
},
|
22755
22746
|
/* @__PURE__ */ import_react93.default.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
22756
22747
|
/* @__PURE__ */ import_react93.default.createElement(import_react_icons42.ChevronRightIcon, null)
|
22757
|
-
) : null, isHandRaisedAccordion && /* @__PURE__ */ import_react93.default.createElement(import_react93.default.Fragment, null, /* @__PURE__ */ import_react93.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react93.default.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ import_react93.default.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons42.CrossIcon, null), " Lower all hands"),
|
22748
|
+
) : null, isHandRaisedAccordion && canBringToStage && /* @__PURE__ */ import_react93.default.createElement(import_react93.default.Fragment, null, /* @__PURE__ */ import_react93.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react93.default.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ import_react93.default.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons42.CrossIcon, null), " Lower all hands"), /* @__PURE__ */ import_react93.default.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons42.AddIcon, null), " ", bring_to_stage_label)))));
|
22758
22749
|
};
|
22759
22750
|
}
|
22760
22751
|
});
|
@@ -23075,7 +23066,10 @@ var init_ParticipantList = __esm({
|
|
23075
23066
|
peerId,
|
23076
23067
|
role
|
23077
23068
|
});
|
23078
|
-
|
23069
|
+
if (!shouldShowStageRoleChange) {
|
23070
|
+
return null;
|
23071
|
+
}
|
23072
|
+
return /* @__PURE__ */ import_react95.default.createElement(import_react95.default.Fragment, null, /* @__PURE__ */ import_react95.default.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ import_react95.default.createElement(import_react_icons43.CrossIcon, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ import_react95.default.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ import_react95.default.createElement(import_react_icons43.AddIcon, { height: 18, width: 18 })));
|
23079
23073
|
};
|
23080
23074
|
ParticipantMoreActions = ({ peerId, role }) => {
|
23081
23075
|
const {
|
@@ -23212,25 +23206,38 @@ var init_WhiteboardToggle = __esm({
|
|
23212
23206
|
init_ToastManager();
|
23213
23207
|
WhiteboardToggle = () => {
|
23214
23208
|
const { toggle, open, isOwner } = (0, import_react_sdk48.useWhiteboard)();
|
23209
|
+
const { screenSharingPeerId, amIScreenSharing } = (0, import_react_sdk48.useScreenShare)();
|
23210
|
+
const remoteScreenShare = screenSharingPeerId && !amIScreenSharing;
|
23211
|
+
const disabled = remoteScreenShare || open && !isOwner;
|
23215
23212
|
if (!toggle) {
|
23216
23213
|
return null;
|
23217
23214
|
}
|
23218
|
-
return /* @__PURE__ */ import_react97.default.createElement(
|
23219
|
-
|
23215
|
+
return /* @__PURE__ */ import_react97.default.createElement(
|
23216
|
+
Tooltip,
|
23220
23217
|
{
|
23221
|
-
|
23222
|
-
|
23223
|
-
yield toggle();
|
23224
|
-
} catch (error) {
|
23225
|
-
ToastManager.addToast({ title: error.message, variant: "error" });
|
23226
|
-
}
|
23227
|
-
}),
|
23228
|
-
active: !open,
|
23229
|
-
disabled: open && !isOwner,
|
23230
|
-
"data-testid": "whiteboard_btn"
|
23218
|
+
key: "whiteboard",
|
23219
|
+
title: remoteScreenShare ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
|
23231
23220
|
},
|
23232
|
-
/* @__PURE__ */ import_react97.default.createElement(
|
23233
|
-
|
23221
|
+
/* @__PURE__ */ import_react97.default.createElement(
|
23222
|
+
IconButton_default,
|
23223
|
+
{
|
23224
|
+
onClick: () => __async(void 0, null, function* () {
|
23225
|
+
if (disabled) {
|
23226
|
+
return;
|
23227
|
+
}
|
23228
|
+
try {
|
23229
|
+
yield toggle();
|
23230
|
+
} catch (error) {
|
23231
|
+
ToastManager.addToast({ title: error.message, variant: "error" });
|
23232
|
+
}
|
23233
|
+
}),
|
23234
|
+
active: !open,
|
23235
|
+
disabled,
|
23236
|
+
"data-testid": "whiteboard_btn"
|
23237
|
+
},
|
23238
|
+
/* @__PURE__ */ import_react97.default.createElement(import_react_icons45.PencilDrawIcon, null)
|
23239
|
+
)
|
23240
|
+
);
|
23234
23241
|
};
|
23235
23242
|
}
|
23236
23243
|
});
|
@@ -30107,13 +30114,105 @@ var init_ScreenshareLayout = __esm({
|
|
30107
30114
|
}
|
30108
30115
|
});
|
30109
30116
|
|
30117
|
+
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
30118
|
+
var import_react176, import_react_use39, import_react_sdk91, WhiteboardEmbed, WhiteboardLayout;
|
30119
|
+
var init_WhiteboardLayout = __esm({
|
30120
|
+
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx"() {
|
30121
|
+
"use strict";
|
30122
|
+
init_define_process_env();
|
30123
|
+
import_react176 = __toESM(require("react"));
|
30124
|
+
import_react_use39 = require("react-use");
|
30125
|
+
import_react_sdk91 = require("@100mslive/react-sdk");
|
30126
|
+
init_Layout();
|
30127
|
+
init_Theme();
|
30128
|
+
init_InsetTile();
|
30129
|
+
init_SecondaryTiles();
|
30130
|
+
init_LayoutSettings();
|
30131
|
+
init_ProminenceLayout();
|
30132
|
+
init_useUISettings();
|
30133
|
+
init_constants();
|
30134
|
+
WhiteboardEmbed = () => {
|
30135
|
+
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
30136
|
+
const { iframeRef } = (0, import_react_sdk91.useWhiteboard)(isMobile);
|
30137
|
+
return /* @__PURE__ */ import_react176.default.createElement(
|
30138
|
+
Box,
|
30139
|
+
{
|
30140
|
+
css: {
|
30141
|
+
mx: "$8",
|
30142
|
+
flex: "3 1 0",
|
30143
|
+
"@lg": {
|
30144
|
+
flex: "2 1 0",
|
30145
|
+
display: "flex",
|
30146
|
+
alignItems: "center"
|
30147
|
+
}
|
30148
|
+
}
|
30149
|
+
},
|
30150
|
+
/* @__PURE__ */ import_react176.default.createElement(
|
30151
|
+
"iframe",
|
30152
|
+
{
|
30153
|
+
title: "Whiteboard View",
|
30154
|
+
ref: iframeRef,
|
30155
|
+
style: {
|
30156
|
+
width: "100%",
|
30157
|
+
height: "100%",
|
30158
|
+
border: 0,
|
30159
|
+
borderRadius: "0.75rem"
|
30160
|
+
},
|
30161
|
+
allow: "autoplay; clipboard-write;",
|
30162
|
+
referrerPolicy: "no-referrer"
|
30163
|
+
}
|
30164
|
+
)
|
30165
|
+
);
|
30166
|
+
};
|
30167
|
+
WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
30168
|
+
const whiteboard = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectWhiteboard);
|
30169
|
+
const whiteboardOwner = (0, import_react_sdk91.useHMSStore)((0, import_react_sdk91.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
30170
|
+
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
30171
|
+
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
30172
|
+
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
30173
|
+
const secondaryPeers = (0, import_react176.useMemo)(() => {
|
30174
|
+
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
30175
|
+
return [];
|
30176
|
+
}
|
30177
|
+
if (isMobile || layoutMode === LayoutMode.SIDEBAR) {
|
30178
|
+
return whiteboardOwner ? [whiteboardOwner, ...peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id))] : peers;
|
30179
|
+
}
|
30180
|
+
return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
|
30181
|
+
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
30182
|
+
(0, import_react176.useEffect)(() => {
|
30183
|
+
if (isMobile) {
|
30184
|
+
setLayoutMode(LayoutMode.GALLERY);
|
30185
|
+
return;
|
30186
|
+
}
|
30187
|
+
if (layoutMode === LayoutMode.SIDEBAR) {
|
30188
|
+
return;
|
30189
|
+
}
|
30190
|
+
setLayoutMode(LayoutMode.SIDEBAR);
|
30191
|
+
return () => {
|
30192
|
+
setLayoutMode(LayoutMode.GALLERY);
|
30193
|
+
};
|
30194
|
+
}, [isMobile]);
|
30195
|
+
return /* @__PURE__ */ import_react176.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react176.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react176.default.createElement(WhiteboardEmbed, null)), /* @__PURE__ */ import_react176.default.createElement(
|
30196
|
+
SecondaryTiles,
|
30197
|
+
{
|
30198
|
+
peers: secondaryPeers,
|
30199
|
+
onPageChange,
|
30200
|
+
onPageSize,
|
30201
|
+
edgeToEdge,
|
30202
|
+
hasSidebar
|
30203
|
+
}
|
30204
|
+
), layoutMode === LayoutMode.SPOTLIGHT && whiteboardOwner && /* @__PURE__ */ import_react176.default.createElement(InsetTile, { peerId: whiteboardOwner == null ? void 0 : whiteboardOwner.id }));
|
30205
|
+
};
|
30206
|
+
}
|
30207
|
+
});
|
30208
|
+
|
30110
30209
|
// src/Prebuilt/common/PeersSorter.ts
|
30111
|
-
var
|
30210
|
+
var import_react_sdk92, PeersSorter, PeersSorter_default;
|
30112
30211
|
var init_PeersSorter = __esm({
|
30113
30212
|
"src/Prebuilt/common/PeersSorter.ts"() {
|
30114
30213
|
"use strict";
|
30115
30214
|
init_define_process_env();
|
30116
|
-
|
30215
|
+
import_react_sdk92 = require("@100mslive/react-sdk");
|
30117
30216
|
PeersSorter = class {
|
30118
30217
|
constructor(store) {
|
30119
30218
|
this.storeUnsubscribe = void 0;
|
@@ -30135,7 +30234,7 @@ var init_PeersSorter = __esm({
|
|
30135
30234
|
}
|
30136
30235
|
});
|
30137
30236
|
if (!this.storeUnsubscribe) {
|
30138
|
-
this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange,
|
30237
|
+
this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk92.selectDominantSpeaker);
|
30139
30238
|
}
|
30140
30239
|
this.moveSpeakerToFront(this.speaker);
|
30141
30240
|
};
|
@@ -30209,16 +30308,17 @@ var init_PeersSorter = __esm({
|
|
30209
30308
|
});
|
30210
30309
|
|
30211
30310
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
30212
|
-
var
|
30311
|
+
var import_react177, import_react_sdk93, GridLayout;
|
30213
30312
|
var init_GridLayout = __esm({
|
30214
30313
|
"src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
|
30215
30314
|
"use strict";
|
30216
30315
|
init_define_process_env();
|
30217
|
-
|
30218
|
-
|
30316
|
+
import_react177 = __toESM(require("react"));
|
30317
|
+
import_react_sdk93 = require("@100mslive/react-sdk");
|
30219
30318
|
init_EqualProminence();
|
30220
30319
|
init_RoleProminence();
|
30221
30320
|
init_ScreenshareLayout();
|
30321
|
+
init_WhiteboardLayout();
|
30222
30322
|
init_useUISettings();
|
30223
30323
|
init_useVideoTileLayout();
|
30224
30324
|
init_PeersSorter();
|
@@ -30234,18 +30334,19 @@ var init_GridLayout = __esm({
|
|
30234
30334
|
edge_to_edge = false,
|
30235
30335
|
hide_metadata_on_tile = false
|
30236
30336
|
}) => {
|
30237
|
-
const peerSharing = (0,
|
30337
|
+
const peerSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeerScreenSharing);
|
30338
|
+
const whiteboard = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectWhiteboard);
|
30238
30339
|
const pinnedTrack = usePinnedTrack();
|
30239
|
-
const peers = (0,
|
30240
|
-
const localPeerRole = (0,
|
30241
|
-
const localPeerID = (0,
|
30340
|
+
const peers = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeers);
|
30341
|
+
const localPeerRole = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerRoleName);
|
30342
|
+
const localPeerID = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerID);
|
30242
30343
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30243
30344
|
const isRoleProminence = prominentRoles.length && peers.some(
|
30244
30345
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
30245
30346
|
) || pinnedTrack;
|
30246
|
-
const updatedPeers = (0,
|
30247
|
-
if (activeScreensharePeerId) {
|
30248
|
-
return peers.filter((peer) => peer.id !== activeScreensharePeerId);
|
30347
|
+
const updatedPeers = (0, import_react177.useMemo)(() => {
|
30348
|
+
if (activeScreensharePeerId || (whiteboard == null ? void 0 : whiteboard.open)) {
|
30349
|
+
return peers.filter((peer) => peer.id !== activeScreensharePeerId || peer.customerUserId !== (whiteboard == null ? void 0 : whiteboard.owner));
|
30249
30350
|
}
|
30250
30351
|
if (isInsetEnabled) {
|
30251
30352
|
const isLocalPeerPinned = localPeerID === (pinnedTrack == null ? void 0 : pinnedTrack.peerId);
|
@@ -30256,12 +30357,21 @@ var init_GridLayout = __esm({
|
|
30256
30357
|
}
|
30257
30358
|
}
|
30258
30359
|
return peers;
|
30259
|
-
}, [
|
30260
|
-
|
30261
|
-
|
30262
|
-
|
30263
|
-
|
30264
|
-
|
30360
|
+
}, [
|
30361
|
+
isInsetEnabled,
|
30362
|
+
whiteboard,
|
30363
|
+
activeScreensharePeerId,
|
30364
|
+
localPeerRole,
|
30365
|
+
localPeerID,
|
30366
|
+
prominentRoles,
|
30367
|
+
peers,
|
30368
|
+
pinnedTrack
|
30369
|
+
]);
|
30370
|
+
const vanillaStore = (0, import_react_sdk93.useHMSVanillaStore)();
|
30371
|
+
const [sortedPeers, setSortedPeers] = (0, import_react177.useState)(updatedPeers);
|
30372
|
+
const peersSorter = (0, import_react177.useMemo)(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
30373
|
+
const [pageSize, setPageSize] = (0, import_react177.useState)(0);
|
30374
|
+
const [mainPage, setMainPage] = (0, import_react177.useState)(0);
|
30265
30375
|
const tileLayout = {
|
30266
30376
|
enableSpotlightingPeer: enable_spotlighting_peer,
|
30267
30377
|
hideParticipantNameOnTile: hide_participant_name_on_tile,
|
@@ -30270,7 +30380,7 @@ var init_GridLayout = __esm({
|
|
30270
30380
|
hideMetadataOnTile: hide_metadata_on_tile,
|
30271
30381
|
objectFit: video_object_fit
|
30272
30382
|
};
|
30273
|
-
(0,
|
30383
|
+
(0, import_react177.useEffect)(() => {
|
30274
30384
|
if (mainPage !== 0) {
|
30275
30385
|
return;
|
30276
30386
|
}
|
@@ -30281,7 +30391,7 @@ var init_GridLayout = __esm({
|
|
30281
30391
|
peersSorter.onUpdate(setSortedPeers);
|
30282
30392
|
}, [mainPage, peersSorter, updatedPeers, pageSize]);
|
30283
30393
|
if (peerSharing) {
|
30284
|
-
return /* @__PURE__ */
|
30394
|
+
return /* @__PURE__ */ import_react177.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react177.default.createElement(
|
30285
30395
|
ScreenshareLayout,
|
30286
30396
|
{
|
30287
30397
|
peers: sortedPeers,
|
@@ -30290,8 +30400,18 @@ var init_GridLayout = __esm({
|
|
30290
30400
|
edgeToEdge: edge_to_edge
|
30291
30401
|
}
|
30292
30402
|
));
|
30403
|
+
} else if (whiteboard == null ? void 0 : whiteboard.open) {
|
30404
|
+
return /* @__PURE__ */ import_react177.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react177.default.createElement(
|
30405
|
+
WhiteboardLayout,
|
30406
|
+
{
|
30407
|
+
peers: sortedPeers,
|
30408
|
+
onPageSize: setPageSize,
|
30409
|
+
onPageChange: setMainPage,
|
30410
|
+
edgeToEdge: edge_to_edge
|
30411
|
+
}
|
30412
|
+
));
|
30293
30413
|
} else if (isRoleProminence) {
|
30294
|
-
return /* @__PURE__ */
|
30414
|
+
return /* @__PURE__ */ import_react177.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react177.default.createElement(
|
30295
30415
|
RoleProminence,
|
30296
30416
|
{
|
30297
30417
|
peers: sortedPeers,
|
@@ -30303,7 +30423,7 @@ var init_GridLayout = __esm({
|
|
30303
30423
|
}
|
30304
30424
|
));
|
30305
30425
|
}
|
30306
|
-
return /* @__PURE__ */
|
30426
|
+
return /* @__PURE__ */ import_react177.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react177.default.createElement(
|
30307
30427
|
EqualProminence,
|
30308
30428
|
{
|
30309
30429
|
peers: sortedPeers,
|
@@ -30318,13 +30438,13 @@ var init_GridLayout = __esm({
|
|
30318
30438
|
});
|
30319
30439
|
|
30320
30440
|
// src/Prebuilt/layouts/EmbedView.jsx
|
30321
|
-
var
|
30441
|
+
var import_react178, import_react_sdk94, EmbedView, EmbedScreenShareView, EmbedComponent;
|
30322
30442
|
var init_EmbedView = __esm({
|
30323
30443
|
"src/Prebuilt/layouts/EmbedView.jsx"() {
|
30324
30444
|
"use strict";
|
30325
30445
|
init_define_process_env();
|
30326
|
-
|
30327
|
-
|
30446
|
+
import_react178 = __toESM(require("react"));
|
30447
|
+
import_react_sdk94 = require("@100mslive/react-sdk");
|
30328
30448
|
init_SecondaryTiles();
|
30329
30449
|
init_ToastManager();
|
30330
30450
|
init_ProminenceLayout();
|
@@ -30332,29 +30452,29 @@ var init_EmbedView = __esm({
|
|
30332
30452
|
init_useUISettings();
|
30333
30453
|
init_constants();
|
30334
30454
|
EmbedView = () => {
|
30335
|
-
return /* @__PURE__ */
|
30455
|
+
return /* @__PURE__ */ import_react178.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react178.default.createElement(EmbedComponent, null));
|
30336
30456
|
};
|
30337
30457
|
EmbedScreenShareView = ({ children }) => {
|
30338
|
-
const peers = (0,
|
30339
|
-
const peerPresenting = (0,
|
30458
|
+
const peers = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeers);
|
30459
|
+
const peerPresenting = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeerScreenSharing);
|
30340
30460
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30341
|
-
const smallTilePeers = (0,
|
30461
|
+
const smallTilePeers = (0, import_react178.useMemo)(() => {
|
30342
30462
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
30343
30463
|
return smallTilePeers2;
|
30344
30464
|
}, [peers, peerPresenting]);
|
30345
|
-
(0,
|
30465
|
+
(0, import_react178.useEffect)(() => {
|
30346
30466
|
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
30347
30467
|
return () => {
|
30348
30468
|
setActiveScreenSharePeer("");
|
30349
30469
|
};
|
30350
30470
|
}, [peerPresenting == null ? void 0 : peerPresenting.id, setActiveScreenSharePeer]);
|
30351
|
-
return /* @__PURE__ */
|
30471
|
+
return /* @__PURE__ */ import_react178.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react178.default.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ import_react178.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
30352
30472
|
};
|
30353
30473
|
EmbedComponent = () => {
|
30354
|
-
const embedConfig = (0,
|
30474
|
+
const embedConfig = (0, import_react_sdk94.useHMSStore)((0, import_react_sdk94.selectAppData)(APP_DATA.embedConfig));
|
30355
30475
|
const resetConfig = useResetEmbedConfig();
|
30356
|
-
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0,
|
30357
|
-
(0,
|
30476
|
+
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk94.useEmbedShare)(resetConfig);
|
30477
|
+
(0, import_react178.useEffect)(() => {
|
30358
30478
|
(() => __async(void 0, null, function* () {
|
30359
30479
|
if (embedConfig && !isEmbedShareInProgress) {
|
30360
30480
|
try {
|
@@ -30369,7 +30489,7 @@ var init_EmbedView = __esm({
|
|
30369
30489
|
}
|
30370
30490
|
}))();
|
30371
30491
|
}, [isEmbedShareInProgress, embedConfig, startEmbedShare, resetConfig]);
|
30372
|
-
return /* @__PURE__ */
|
30492
|
+
return /* @__PURE__ */ import_react178.default.createElement(
|
30373
30493
|
Box,
|
30374
30494
|
{
|
30375
30495
|
css: {
|
@@ -30382,7 +30502,7 @@ var init_EmbedView = __esm({
|
|
30382
30502
|
}
|
30383
30503
|
}
|
30384
30504
|
},
|
30385
|
-
/* @__PURE__ */
|
30505
|
+
/* @__PURE__ */ import_react178.default.createElement(
|
30386
30506
|
"iframe",
|
30387
30507
|
{
|
30388
30508
|
title: "Embed View",
|
@@ -30403,13 +30523,13 @@ var init_EmbedView = __esm({
|
|
30403
30523
|
});
|
30404
30524
|
|
30405
30525
|
// src/Prebuilt/layouts/PDFView.jsx
|
30406
|
-
var
|
30526
|
+
var import_react179, import_react_sdk95, PDFView;
|
30407
30527
|
var init_PDFView = __esm({
|
30408
30528
|
"src/Prebuilt/layouts/PDFView.jsx"() {
|
30409
30529
|
"use strict";
|
30410
30530
|
init_define_process_env();
|
30411
|
-
|
30412
|
-
|
30531
|
+
import_react179 = __toESM(require("react"));
|
30532
|
+
import_react_sdk95 = require("@100mslive/react-sdk");
|
30413
30533
|
init_ToastManager();
|
30414
30534
|
init_Layout();
|
30415
30535
|
init_EmbedView();
|
@@ -30417,8 +30537,8 @@ var init_PDFView = __esm({
|
|
30417
30537
|
PDFView = () => {
|
30418
30538
|
const pdfConfig = usePDFConfig();
|
30419
30539
|
const resetConfig = useResetPDFConfig();
|
30420
|
-
const { iframeRef, startPDFShare, isPDFShareInProgress } = (0,
|
30421
|
-
(0,
|
30540
|
+
const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk95.usePDFShare)(resetConfig);
|
30541
|
+
(0, import_react179.useEffect)(() => {
|
30422
30542
|
(() => __async(void 0, null, function* () {
|
30423
30543
|
try {
|
30424
30544
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -30433,7 +30553,7 @@ var init_PDFView = __esm({
|
|
30433
30553
|
}
|
30434
30554
|
}))();
|
30435
30555
|
}, [isPDFShareInProgress, pdfConfig, resetConfig, startPDFShare]);
|
30436
|
-
return /* @__PURE__ */
|
30556
|
+
return /* @__PURE__ */ import_react179.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react179.default.createElement(
|
30437
30557
|
Box,
|
30438
30558
|
{
|
30439
30559
|
css: {
|
@@ -30446,7 +30566,7 @@ var init_PDFView = __esm({
|
|
30446
30566
|
}
|
30447
30567
|
}
|
30448
30568
|
},
|
30449
|
-
/* @__PURE__ */
|
30569
|
+
/* @__PURE__ */ import_react179.default.createElement(
|
30450
30570
|
"iframe",
|
30451
30571
|
{
|
30452
30572
|
title: "Embed View",
|
@@ -30467,17 +30587,17 @@ var init_PDFView = __esm({
|
|
30467
30587
|
});
|
30468
30588
|
|
30469
30589
|
// src/Prebuilt/layouts/WaitingView.jsx
|
30470
|
-
var
|
30590
|
+
var import_react180, import_react_icons84, WaitingView;
|
30471
30591
|
var init_WaitingView = __esm({
|
30472
30592
|
"src/Prebuilt/layouts/WaitingView.jsx"() {
|
30473
30593
|
"use strict";
|
30474
30594
|
init_define_process_env();
|
30475
|
-
|
30595
|
+
import_react180 = __toESM(require("react"));
|
30476
30596
|
import_react_icons84 = require("@100mslive/react-icons");
|
30477
30597
|
init_Layout();
|
30478
30598
|
init_Text2();
|
30479
|
-
WaitingView =
|
30480
|
-
return /* @__PURE__ */
|
30599
|
+
WaitingView = import_react180.default.memo(() => {
|
30600
|
+
return /* @__PURE__ */ import_react180.default.createElement(
|
30481
30601
|
Box,
|
30482
30602
|
{
|
30483
30603
|
css: {
|
@@ -30491,7 +30611,7 @@ var init_WaitingView = __esm({
|
|
30491
30611
|
},
|
30492
30612
|
"data-testid": "waiting_view"
|
30493
30613
|
},
|
30494
|
-
/* @__PURE__ */
|
30614
|
+
/* @__PURE__ */ import_react180.default.createElement(
|
30495
30615
|
Flex,
|
30496
30616
|
{
|
30497
30617
|
align: "center",
|
@@ -30505,8 +30625,8 @@ var init_WaitingView = __esm({
|
|
30505
30625
|
gap: "$8"
|
30506
30626
|
}
|
30507
30627
|
},
|
30508
|
-
/* @__PURE__ */
|
30509
|
-
/* @__PURE__ */
|
30628
|
+
/* @__PURE__ */ import_react180.default.createElement(import_react_icons84.ColoredTimeIcon, { width: "80px", height: "80px" }),
|
30629
|
+
/* @__PURE__ */ import_react180.default.createElement(
|
30510
30630
|
Flex,
|
30511
30631
|
{
|
30512
30632
|
direction: "column",
|
@@ -30516,8 +30636,8 @@ var init_WaitingView = __esm({
|
|
30516
30636
|
gap: "$4"
|
30517
30637
|
}
|
30518
30638
|
},
|
30519
|
-
/* @__PURE__ */
|
30520
|
-
/* @__PURE__ */
|
30639
|
+
/* @__PURE__ */ import_react180.default.createElement(Text, { color: "white", variant: "h6", css: { "@md": { fontSize: "$md" } } }, "Please wait"),
|
30640
|
+
/* @__PURE__ */ import_react180.default.createElement(Text, { color: "$on_surface_medium", css: { mt: "$4", "@md": { fontSize: "$sm" } } }, "Sit back and relax till others let you join.")
|
30521
30641
|
)
|
30522
30642
|
)
|
30523
30643
|
);
|
@@ -30525,73 +30645,6 @@ var init_WaitingView = __esm({
|
|
30525
30645
|
}
|
30526
30646
|
});
|
30527
30647
|
|
30528
|
-
// src/Prebuilt/layouts/WhiteboardView.tsx
|
30529
|
-
var import_react180, import_react_use39, import_react_sdk95, EmbedComponent2, WhiteboardView;
|
30530
|
-
var init_WhiteboardView = __esm({
|
30531
|
-
"src/Prebuilt/layouts/WhiteboardView.tsx"() {
|
30532
|
-
"use strict";
|
30533
|
-
init_define_process_env();
|
30534
|
-
import_react180 = __toESM(require("react"));
|
30535
|
-
import_react_use39 = require("react-use");
|
30536
|
-
import_react_sdk95 = require("@100mslive/react-sdk");
|
30537
|
-
init_SecondaryTiles();
|
30538
|
-
init_ProminenceLayout();
|
30539
|
-
init_src();
|
30540
|
-
init_Layout();
|
30541
|
-
init_useUISettings();
|
30542
|
-
init_constants();
|
30543
|
-
EmbedComponent2 = () => {
|
30544
|
-
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
30545
|
-
const { iframeRef } = (0, import_react_sdk95.useWhiteboard)(isMobile);
|
30546
|
-
return /* @__PURE__ */ import_react180.default.createElement(
|
30547
|
-
Box,
|
30548
|
-
{
|
30549
|
-
css: {
|
30550
|
-
mx: "$8",
|
30551
|
-
flex: "3 1 0",
|
30552
|
-
"@lg": {
|
30553
|
-
flex: "2 1 0",
|
30554
|
-
display: "flex",
|
30555
|
-
alignItems: "center"
|
30556
|
-
}
|
30557
|
-
}
|
30558
|
-
},
|
30559
|
-
/* @__PURE__ */ import_react180.default.createElement(
|
30560
|
-
"iframe",
|
30561
|
-
{
|
30562
|
-
title: "Whiteboard View",
|
30563
|
-
ref: iframeRef,
|
30564
|
-
style: {
|
30565
|
-
width: "100%",
|
30566
|
-
height: "100%",
|
30567
|
-
border: 0,
|
30568
|
-
borderRadius: "0.75rem"
|
30569
|
-
},
|
30570
|
-
allow: "autoplay; clipboard-write;",
|
30571
|
-
referrerPolicy: "no-referrer"
|
30572
|
-
}
|
30573
|
-
)
|
30574
|
-
);
|
30575
|
-
};
|
30576
|
-
WhiteboardView = () => {
|
30577
|
-
const peers = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectPeers);
|
30578
|
-
const whiteboard = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectWhiteboard);
|
30579
|
-
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30580
|
-
const smallTilePeers = (0, import_react180.useMemo)(() => {
|
30581
|
-
const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
|
30582
|
-
return smallTilePeers2;
|
30583
|
-
}, [peers, whiteboard == null ? void 0 : whiteboard.owner]);
|
30584
|
-
(0, import_react180.useEffect)(() => {
|
30585
|
-
setActiveScreenSharePeer((whiteboard == null ? void 0 : whiteboard.owner) || "");
|
30586
|
-
return () => {
|
30587
|
-
setActiveScreenSharePeer("");
|
30588
|
-
};
|
30589
|
-
}, [whiteboard == null ? void 0 : whiteboard.owner, setActiveScreenSharePeer]);
|
30590
|
-
return /* @__PURE__ */ import_react180.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react180.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react180.default.createElement(EmbedComponent2, null)), /* @__PURE__ */ import_react180.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
30591
|
-
};
|
30592
|
-
}
|
30593
|
-
});
|
30594
|
-
|
30595
30648
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
30596
30649
|
var import_react181, import_react_use40, import_react_sdk96, useCloseScreenshareWhiteboard;
|
30597
30650
|
var init_useCloseScreenshareWhiteboard = __esm({
|
@@ -30602,19 +30655,27 @@ var init_useCloseScreenshareWhiteboard = __esm({
|
|
30602
30655
|
import_react_use40 = require("react-use");
|
30603
30656
|
import_react_sdk96 = require("@100mslive/react-sdk");
|
30604
30657
|
useCloseScreenshareWhiteboard = () => {
|
30605
|
-
const { amIScreenSharing, toggleScreenShare } = (0, import_react_sdk96.useScreenShare)();
|
30658
|
+
const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = (0, import_react_sdk96.useScreenShare)();
|
30606
30659
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk96.useWhiteboard)();
|
30607
|
-
const prevScreenSharer = (0, import_react_use40.usePrevious)(
|
30660
|
+
const prevScreenSharer = (0, import_react_use40.usePrevious)(screenSharingPeerId);
|
30608
30661
|
const prevWhiteboardOwner = (0, import_react_use40.usePrevious)(isWhiteboardOwner);
|
30609
30662
|
(0, import_react181.useEffect)(() => {
|
30610
|
-
if (isWhiteboardOwner &&
|
30611
|
-
if (prevScreenSharer && !prevWhiteboardOwner) {
|
30663
|
+
if (isWhiteboardOwner && screenSharingPeerId) {
|
30664
|
+
if (prevScreenSharer && amIScreenSharing && !prevWhiteboardOwner) {
|
30612
30665
|
toggleScreenShare == null ? void 0 : toggleScreenShare();
|
30613
30666
|
} else if (prevWhiteboardOwner && !prevScreenSharer) {
|
30614
30667
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
30615
30668
|
}
|
30616
30669
|
}
|
30617
|
-
}, [
|
30670
|
+
}, [
|
30671
|
+
isWhiteboardOwner,
|
30672
|
+
screenSharingPeerId,
|
30673
|
+
amIScreenSharing,
|
30674
|
+
prevScreenSharer,
|
30675
|
+
prevWhiteboardOwner,
|
30676
|
+
toggleScreenShare,
|
30677
|
+
toggleWhiteboard
|
30678
|
+
]);
|
30618
30679
|
};
|
30619
30680
|
}
|
30620
30681
|
});
|
@@ -30756,6 +30817,7 @@ var init_HMSVideo = __esm({
|
|
30756
30817
|
size: "100%",
|
30757
30818
|
position: "relative",
|
30758
30819
|
justifyContent: "center",
|
30820
|
+
transition: "all 0.3s ease-in-out",
|
30759
30821
|
"@md": {
|
30760
30822
|
height: "auto",
|
30761
30823
|
"& video": {
|
@@ -30845,15 +30907,15 @@ var init_PlayPauseButton = __esm({
|
|
30845
30907
|
}
|
30846
30908
|
});
|
30847
30909
|
|
30848
|
-
// src/Prebuilt/components/HMSVideo/
|
30849
|
-
var import_react186,
|
30850
|
-
var
|
30851
|
-
"src/Prebuilt/components/HMSVideo/
|
30910
|
+
// src/Prebuilt/components/HMSVideo/SeekControl.tsx
|
30911
|
+
var import_react186, SeekControl;
|
30912
|
+
var init_SeekControl = __esm({
|
30913
|
+
"src/Prebuilt/components/HMSVideo/SeekControl.tsx"() {
|
30852
30914
|
"use strict";
|
30853
30915
|
init_define_process_env();
|
30854
30916
|
import_react186 = __toESM(require("react"));
|
30855
30917
|
init_src();
|
30856
|
-
|
30918
|
+
SeekControl = ({
|
30857
30919
|
title,
|
30858
30920
|
onClick,
|
30859
30921
|
children,
|
@@ -30864,6 +30926,151 @@ var init_SeekControls = __esm({
|
|
30864
30926
|
}
|
30865
30927
|
});
|
30866
30928
|
|
30929
|
+
// src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
|
30930
|
+
var import_react187, import_react_use41, import_react_icons87, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
|
30931
|
+
var init_PlayPauseSeekControls = __esm({
|
30932
|
+
"src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
|
30933
|
+
"use strict";
|
30934
|
+
init_define_process_env();
|
30935
|
+
import_react187 = __toESM(require("react"));
|
30936
|
+
import_react_use41 = require("react-use");
|
30937
|
+
import_react_icons87 = require("@100mslive/react-icons");
|
30938
|
+
init_Layout();
|
30939
|
+
init_Text2();
|
30940
|
+
init_Theme();
|
30941
|
+
init_PlayPauseButton();
|
30942
|
+
init_SeekControl();
|
30943
|
+
init_hooks();
|
30944
|
+
PlayPauseSeekControls = ({
|
30945
|
+
isPaused,
|
30946
|
+
onSeekTo
|
30947
|
+
}) => {
|
30948
|
+
return /* @__PURE__ */ import_react187.default.createElement(import_react187.default.Fragment, null, /* @__PURE__ */ import_react187.default.createElement(
|
30949
|
+
SeekControl,
|
30950
|
+
{
|
30951
|
+
onClick: (e) => {
|
30952
|
+
e.stopPropagation();
|
30953
|
+
onSeekTo(-10);
|
30954
|
+
},
|
30955
|
+
title: "backward"
|
30956
|
+
},
|
30957
|
+
/* @__PURE__ */ import_react187.default.createElement(import_react_icons87.BackwardArrowIcon, { width: 20, height: 20 })
|
30958
|
+
), /* @__PURE__ */ import_react187.default.createElement(PlayPauseButton, { isPaused }), /* @__PURE__ */ import_react187.default.createElement(
|
30959
|
+
SeekControl,
|
30960
|
+
{
|
30961
|
+
onClick: (e) => {
|
30962
|
+
e.stopPropagation();
|
30963
|
+
onSeekTo(10);
|
30964
|
+
},
|
30965
|
+
title: "forward"
|
30966
|
+
},
|
30967
|
+
/* @__PURE__ */ import_react187.default.createElement(import_react_icons87.ForwardArrowIcon, { width: 20, height: 20 })
|
30968
|
+
));
|
30969
|
+
};
|
30970
|
+
PlayPauseSeekOverlayControls = ({
|
30971
|
+
isPaused,
|
30972
|
+
showControls,
|
30973
|
+
hoverControlsVisible
|
30974
|
+
}) => {
|
30975
|
+
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
30976
|
+
const isLandscape = useIsLandscape();
|
30977
|
+
if (!isMobile && !isLandscape) {
|
30978
|
+
return /* @__PURE__ */ import_react187.default.createElement(import_react187.default.Fragment, null, /* @__PURE__ */ import_react187.default.createElement(
|
30979
|
+
Flex,
|
30980
|
+
{
|
30981
|
+
css: {
|
30982
|
+
bg: "rgba(0, 0, 0, 0.6)",
|
30983
|
+
r: "$round",
|
30984
|
+
size: "$24",
|
30985
|
+
visibility: hoverControlsVisible.seekBackward ? `` : `hidden`,
|
30986
|
+
opacity: hoverControlsVisible.seekBackward ? `1` : "0"
|
30987
|
+
},
|
30988
|
+
direction: "column",
|
30989
|
+
align: "center"
|
30990
|
+
},
|
30991
|
+
/* @__PURE__ */ import_react187.default.createElement(SeekControl, { title: "backward" }, /* @__PURE__ */ import_react187.default.createElement(import_react_icons87.BackwardArrowIcon, { width: 52, height: 52 })),
|
30992
|
+
/* @__PURE__ */ import_react187.default.createElement(Text, { variant: "body2", css: { fontWeight: "$regular" } }, "10 secs")
|
30993
|
+
), /* @__PURE__ */ import_react187.default.createElement(
|
30994
|
+
Box,
|
30995
|
+
{
|
30996
|
+
css: {
|
30997
|
+
bg: "rgba(0, 0, 0, 0.6)",
|
30998
|
+
r: "$round",
|
30999
|
+
visibility: hoverControlsVisible.pausePlay ? `` : `hidden`,
|
31000
|
+
opacity: hoverControlsVisible.pausePlay ? `1` : "0"
|
31001
|
+
}
|
31002
|
+
},
|
31003
|
+
/* @__PURE__ */ import_react187.default.createElement(PlayPauseButton, { isPaused, width: 48, height: 48 })
|
31004
|
+
), /* @__PURE__ */ import_react187.default.createElement(
|
31005
|
+
Flex,
|
31006
|
+
{
|
31007
|
+
css: {
|
31008
|
+
bg: "rgba(0, 0, 0, 0.6)",
|
31009
|
+
r: "$round",
|
31010
|
+
size: "$24",
|
31011
|
+
visibility: hoverControlsVisible.seekForward ? `` : `hidden`,
|
31012
|
+
opacity: hoverControlsVisible.seekForward ? `1` : "0"
|
31013
|
+
},
|
31014
|
+
direction: "column",
|
31015
|
+
align: "center"
|
31016
|
+
},
|
31017
|
+
/* @__PURE__ */ import_react187.default.createElement(SeekControl, { title: "forward" }, /* @__PURE__ */ import_react187.default.createElement(import_react_icons87.ForwardArrowIcon, { width: 52, height: 52 })),
|
31018
|
+
/* @__PURE__ */ import_react187.default.createElement(Text, { variant: "body2", css: { fontWeight: "$regular" } }, "10 secs")
|
31019
|
+
));
|
31020
|
+
}
|
31021
|
+
return /* @__PURE__ */ import_react187.default.createElement(
|
31022
|
+
Flex,
|
31023
|
+
{
|
31024
|
+
align: "center",
|
31025
|
+
justify: "center",
|
31026
|
+
css: {
|
31027
|
+
position: "absolute",
|
31028
|
+
bg: "#00000066",
|
31029
|
+
display: "inline-flex",
|
31030
|
+
gap: "$2",
|
31031
|
+
zIndex: 1,
|
31032
|
+
size: "100%",
|
31033
|
+
visibility: showControls ? `` : `hidden`,
|
31034
|
+
opacity: showControls ? `1` : "0"
|
31035
|
+
}
|
31036
|
+
},
|
31037
|
+
/* @__PURE__ */ import_react187.default.createElement(
|
31038
|
+
SeekControl,
|
31039
|
+
{
|
31040
|
+
title: "backward",
|
31041
|
+
css: {
|
31042
|
+
visibility: hoverControlsVisible.seekBackward ? `` : `hidden`,
|
31043
|
+
opacity: hoverControlsVisible.seekBackward ? `1` : "0"
|
31044
|
+
}
|
31045
|
+
},
|
31046
|
+
/* @__PURE__ */ import_react187.default.createElement(import_react_icons87.BackwardArrowIcon, { width: 32, height: 32 })
|
31047
|
+
),
|
31048
|
+
/* @__PURE__ */ import_react187.default.createElement(
|
31049
|
+
Box,
|
31050
|
+
{
|
31051
|
+
css: {
|
31052
|
+
bg: "rgba(0, 0, 0, 0.6)",
|
31053
|
+
r: "$round"
|
31054
|
+
}
|
31055
|
+
},
|
31056
|
+
/* @__PURE__ */ import_react187.default.createElement(PlayPauseButton, { isPaused, width: 48, height: 48 })
|
31057
|
+
),
|
31058
|
+
/* @__PURE__ */ import_react187.default.createElement(
|
31059
|
+
SeekControl,
|
31060
|
+
{
|
31061
|
+
title: "forward",
|
31062
|
+
css: {
|
31063
|
+
visibility: hoverControlsVisible.seekForward ? `` : `hidden`,
|
31064
|
+
opacity: hoverControlsVisible.seekForward ? `1` : "0"
|
31065
|
+
}
|
31066
|
+
},
|
31067
|
+
/* @__PURE__ */ import_react187.default.createElement(import_react_icons87.ForwardArrowIcon, { width: 32, height: 32 })
|
31068
|
+
)
|
31069
|
+
);
|
31070
|
+
};
|
31071
|
+
}
|
31072
|
+
});
|
31073
|
+
|
30867
31074
|
// src/Prebuilt/components/HMSVideo/utils.ts
|
30868
31075
|
function getPercentage(a2, b) {
|
30869
31076
|
return a2 / b * 100;
|
@@ -30891,12 +31098,12 @@ var init_utils6 = __esm({
|
|
30891
31098
|
});
|
30892
31099
|
|
30893
31100
|
// src/Prebuilt/components/HMSVideo/VideoProgress.tsx
|
30894
|
-
var
|
31101
|
+
var import_react188, VideoProgress;
|
30895
31102
|
var init_VideoProgress = __esm({
|
30896
31103
|
"src/Prebuilt/components/HMSVideo/VideoProgress.tsx"() {
|
30897
31104
|
"use strict";
|
30898
31105
|
init_define_process_env();
|
30899
|
-
|
31106
|
+
import_react188 = __toESM(require("react"));
|
30900
31107
|
init_src();
|
30901
31108
|
init_PlayerContext();
|
30902
31109
|
init_utils6();
|
@@ -30905,10 +31112,10 @@ var init_VideoProgress = __esm({
|
|
30905
31112
|
setSeekProgress
|
30906
31113
|
}) => {
|
30907
31114
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
30908
|
-
const [videoProgress, setVideoProgress] = (0,
|
30909
|
-
const [bufferProgress, setBufferProgress] = (0,
|
31115
|
+
const [videoProgress, setVideoProgress] = (0, import_react188.useState)(0);
|
31116
|
+
const [bufferProgress, setBufferProgress] = (0, import_react188.useState)(0);
|
30910
31117
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
30911
|
-
const setProgress = (0,
|
31118
|
+
const setProgress = (0, import_react188.useCallback)(() => {
|
30912
31119
|
var _a8, _b7;
|
30913
31120
|
if (!videoEl) {
|
30914
31121
|
return;
|
@@ -30919,16 +31126,20 @@ var init_VideoProgress = __esm({
|
|
30919
31126
|
if (videoEl.buffered.length > 0) {
|
30920
31127
|
bufferProgress2 = Math.floor(getPercentage((_b7 = videoEl.buffered) == null ? void 0 : _b7.end(0), duration));
|
30921
31128
|
}
|
30922
|
-
|
30923
|
-
|
31129
|
+
if (!isNaN(videoProgress2)) {
|
31130
|
+
setVideoProgress(videoProgress2);
|
31131
|
+
}
|
31132
|
+
if (!isNaN(bufferProgress2)) {
|
31133
|
+
setBufferProgress(bufferProgress2);
|
31134
|
+
}
|
30924
31135
|
}, [videoEl]);
|
30925
|
-
const timeupdateHandler = (0,
|
31136
|
+
const timeupdateHandler = (0, import_react188.useCallback)(() => {
|
30926
31137
|
if (!videoEl || seekProgress) {
|
30927
31138
|
return;
|
30928
31139
|
}
|
30929
31140
|
setProgress();
|
30930
31141
|
}, [seekProgress, setProgress, videoEl]);
|
30931
|
-
(0,
|
31142
|
+
(0, import_react188.useEffect)(() => {
|
30932
31143
|
if (!videoEl) {
|
30933
31144
|
return;
|
30934
31145
|
}
|
@@ -30936,7 +31147,7 @@ var init_VideoProgress = __esm({
|
|
30936
31147
|
return function cleanup() {
|
30937
31148
|
videoEl == null ? void 0 : videoEl.removeEventListener("timeupdate", timeupdateHandler);
|
30938
31149
|
};
|
30939
|
-
}, [timeupdateHandler, videoEl]);
|
31150
|
+
}, [setProgress, timeupdateHandler, videoEl]);
|
30940
31151
|
const onProgress = (progress) => {
|
30941
31152
|
var _a8;
|
30942
31153
|
const progress1 = Math.floor(getPercentage(progress[0], 100));
|
@@ -30952,7 +31163,7 @@ var init_VideoProgress = __esm({
|
|
30952
31163
|
if (!videoEl) {
|
30953
31164
|
return null;
|
30954
31165
|
}
|
30955
|
-
return /* @__PURE__ */
|
31166
|
+
return /* @__PURE__ */ import_react188.default.createElement(Flex, { align: "center", css: { cursor: "pointer", h: "$2", alignSelf: "stretch" } }, /* @__PURE__ */ import_react188.default.createElement(
|
30956
31167
|
Slider,
|
30957
31168
|
{
|
30958
31169
|
id: "video-actual-rest",
|
@@ -30972,7 +31183,7 @@ var init_VideoProgress = __esm({
|
|
30972
31183
|
onPointerUp: () => setSeekProgress(false),
|
30973
31184
|
thumbStyles: { w: "$6", h: "$6" }
|
30974
31185
|
}
|
30975
|
-
), /* @__PURE__ */
|
31186
|
+
), /* @__PURE__ */ import_react188.default.createElement(
|
30976
31187
|
Box,
|
30977
31188
|
{
|
30978
31189
|
id: "video-buffer",
|
@@ -30991,20 +31202,20 @@ var init_VideoProgress = __esm({
|
|
30991
31202
|
});
|
30992
31203
|
|
30993
31204
|
// src/Prebuilt/components/HMSVideo/VideoTime.tsx
|
30994
|
-
var
|
31205
|
+
var import_react189, import_hls_player2, VideoTime;
|
30995
31206
|
var init_VideoTime = __esm({
|
30996
31207
|
"src/Prebuilt/components/HMSVideo/VideoTime.tsx"() {
|
30997
31208
|
"use strict";
|
30998
31209
|
init_define_process_env();
|
30999
|
-
|
31210
|
+
import_react189 = __toESM(require("react"));
|
31000
31211
|
import_hls_player2 = require("@100mslive/hls-player");
|
31001
31212
|
init_Text2();
|
31002
31213
|
init_PlayerContext();
|
31003
31214
|
init_utils6();
|
31004
31215
|
VideoTime = () => {
|
31005
31216
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
31006
|
-
const [videoTime, setVideoTime] = (0,
|
31007
|
-
(0,
|
31217
|
+
const [videoTime, setVideoTime] = (0, import_react189.useState)("");
|
31218
|
+
(0, import_react189.useEffect)(() => {
|
31008
31219
|
const timeupdateHandler = (currentTime) => {
|
31009
31220
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
31010
31221
|
if (videoEl) {
|
@@ -31021,7 +31232,7 @@ var init_VideoTime = __esm({
|
|
31021
31232
|
hlsPlayer2 == null ? void 0 : hlsPlayer2.off(import_hls_player2.HMSHLSPlayerEvents.CURRENT_TIME, timeupdateHandler);
|
31022
31233
|
};
|
31023
31234
|
}, [hlsPlayer2]);
|
31024
|
-
return hlsPlayer2 ? /* @__PURE__ */
|
31235
|
+
return hlsPlayer2 ? /* @__PURE__ */ import_react189.default.createElement(
|
31025
31236
|
Text,
|
31026
31237
|
{
|
31027
31238
|
variant: "body1",
|
@@ -31041,21 +31252,21 @@ var init_VideoTime = __esm({
|
|
31041
31252
|
});
|
31042
31253
|
|
31043
31254
|
// src/Prebuilt/components/HMSVideo/VolumeControl.tsx
|
31044
|
-
var
|
31255
|
+
var import_react190, import_react_icons88, VolumeControl, VolumeIcon;
|
31045
31256
|
var init_VolumeControl = __esm({
|
31046
31257
|
"src/Prebuilt/components/HMSVideo/VolumeControl.tsx"() {
|
31047
31258
|
"use strict";
|
31048
31259
|
init_define_process_env();
|
31049
|
-
|
31050
|
-
|
31260
|
+
import_react190 = __toESM(require("react"));
|
31261
|
+
import_react_icons88 = require("@100mslive/react-icons");
|
31051
31262
|
init_src();
|
31052
31263
|
init_PlayerContext();
|
31053
31264
|
VolumeControl = () => {
|
31054
31265
|
var _a8;
|
31055
31266
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
31056
|
-
const [volume, setVolume] = (0,
|
31057
|
-
const [showSlider, setShowSlider] = (0,
|
31058
|
-
return /* @__PURE__ */
|
31267
|
+
const [volume, setVolume] = (0, import_react190.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
|
31268
|
+
const [showSlider, setShowSlider] = (0, import_react190.useState)(false);
|
31269
|
+
return /* @__PURE__ */ import_react190.default.createElement(
|
31059
31270
|
Flex,
|
31060
31271
|
{
|
31061
31272
|
align: "center",
|
@@ -31069,7 +31280,7 @@ var init_VolumeControl = __esm({
|
|
31069
31280
|
setShowSlider(false);
|
31070
31281
|
}
|
31071
31282
|
},
|
31072
|
-
/* @__PURE__ */
|
31283
|
+
/* @__PURE__ */ import_react190.default.createElement(
|
31073
31284
|
VolumeIcon,
|
31074
31285
|
{
|
31075
31286
|
volume,
|
@@ -31084,7 +31295,7 @@ var init_VolumeControl = __esm({
|
|
31084
31295
|
}
|
31085
31296
|
}
|
31086
31297
|
),
|
31087
|
-
/* @__PURE__ */
|
31298
|
+
/* @__PURE__ */ import_react190.default.createElement(
|
31088
31299
|
Slider,
|
31089
31300
|
{
|
31090
31301
|
css: {
|
@@ -31112,9 +31323,9 @@ var init_VolumeControl = __esm({
|
|
31112
31323
|
};
|
31113
31324
|
VolumeIcon = ({ volume, onClick }) => {
|
31114
31325
|
if (volume === 0) {
|
31115
|
-
return /* @__PURE__ */
|
31326
|
+
return /* @__PURE__ */ import_react190.default.createElement(import_react_icons88.VolumeZeroIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
|
31116
31327
|
}
|
31117
|
-
return volume < 50 ? /* @__PURE__ */
|
31328
|
+
return volume < 50 ? /* @__PURE__ */ import_react190.default.createElement(import_react_icons88.VolumeOneIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick }) : /* @__PURE__ */ import_react190.default.createElement(import_react_icons88.VolumeTwoIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
|
31118
31329
|
};
|
31119
31330
|
}
|
31120
31331
|
});
|
@@ -31127,14 +31338,12 @@ var init_HMSVideo2 = __esm({
|
|
31127
31338
|
init_define_process_env();
|
31128
31339
|
init_Controls();
|
31129
31340
|
init_HMSVideo();
|
31130
|
-
|
31131
|
-
init_SeekControls();
|
31341
|
+
init_PlayPauseSeekControls();
|
31132
31342
|
init_VideoProgress();
|
31133
31343
|
init_VideoTime();
|
31134
31344
|
init_VolumeControl();
|
31135
31345
|
HMSVideoPlayer = {
|
31136
31346
|
Root: HMSVideo,
|
31137
|
-
PlayPauseButton,
|
31138
31347
|
Progress: VideoProgress,
|
31139
31348
|
Duration: VideoTime,
|
31140
31349
|
Volume: VolumeControl,
|
@@ -31143,22 +31352,25 @@ var init_HMSVideo2 = __esm({
|
|
31143
31352
|
Left: LeftControls,
|
31144
31353
|
Right: RightControls
|
31145
31354
|
},
|
31146
|
-
|
31355
|
+
PlayPauseSeekControls: {
|
31356
|
+
Overlay: PlayPauseSeekOverlayControls,
|
31357
|
+
Button: PlayPauseSeekControls
|
31358
|
+
}
|
31147
31359
|
};
|
31148
31360
|
}
|
31149
31361
|
});
|
31150
31362
|
|
31151
31363
|
// src/Prebuilt/components/HMSVideo/FullscreenButton.tsx
|
31152
|
-
var
|
31364
|
+
var import_react191, import_react_icons89, FullScreenButton2;
|
31153
31365
|
var init_FullscreenButton = __esm({
|
31154
31366
|
"src/Prebuilt/components/HMSVideo/FullscreenButton.tsx"() {
|
31155
31367
|
"use strict";
|
31156
31368
|
init_define_process_env();
|
31157
|
-
|
31158
|
-
|
31369
|
+
import_react191 = __toESM(require("react"));
|
31370
|
+
import_react_icons89 = require("@100mslive/react-icons");
|
31159
31371
|
init_src();
|
31160
31372
|
FullScreenButton2 = ({ isFullScreen, onToggle }) => {
|
31161
|
-
return /* @__PURE__ */
|
31373
|
+
return /* @__PURE__ */ import_react191.default.createElement(Tooltip, { title: `${isFullScreen ? "Exit" : "Go"} fullscreen`, side: "top" }, /* @__PURE__ */ import_react191.default.createElement(IconButton, { css: { margin: "0px" }, onClick: onToggle, key: "fullscreen_btn", "data-testid": "fullscreen_btn" }, /* @__PURE__ */ import_react191.default.createElement(Flex, null, isFullScreen ? /* @__PURE__ */ import_react191.default.createElement(import_react_icons89.ShrinkIcon, null) : /* @__PURE__ */ import_react191.default.createElement(import_react_icons89.ExpandIcon, null))));
|
31162
31374
|
};
|
31163
31375
|
}
|
31164
31376
|
});
|
@@ -31169,9 +31381,9 @@ function HLSAutoplayBlockedPrompt({
|
|
31169
31381
|
unblockAutoPlay
|
31170
31382
|
}) {
|
31171
31383
|
const isLandscape = useIsLandscape();
|
31172
|
-
const isMobile = (0,
|
31384
|
+
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
31173
31385
|
if ((isMobile || isLandscape) && open) {
|
31174
|
-
return /* @__PURE__ */
|
31386
|
+
return /* @__PURE__ */ import_react192.default.createElement(
|
31175
31387
|
IconButton,
|
31176
31388
|
{
|
31177
31389
|
css: {
|
@@ -31184,8 +31396,8 @@ function HLSAutoplayBlockedPrompt({
|
|
31184
31396
|
return yield unblockAutoPlay();
|
31185
31397
|
})
|
31186
31398
|
},
|
31187
|
-
/* @__PURE__ */
|
31188
|
-
/* @__PURE__ */
|
31399
|
+
/* @__PURE__ */ import_react192.default.createElement(import_react_icons90.VolumeTwoIcon, { width: "32", height: "32" }),
|
31400
|
+
/* @__PURE__ */ import_react192.default.createElement(
|
31189
31401
|
Text,
|
31190
31402
|
{
|
31191
31403
|
variant: "body1",
|
@@ -31199,7 +31411,7 @@ function HLSAutoplayBlockedPrompt({
|
|
31199
31411
|
)
|
31200
31412
|
);
|
31201
31413
|
}
|
31202
|
-
return /* @__PURE__ */
|
31414
|
+
return /* @__PURE__ */ import_react192.default.createElement(
|
31203
31415
|
Dialog.Root,
|
31204
31416
|
{
|
31205
31417
|
open,
|
@@ -31209,7 +31421,7 @@ function HLSAutoplayBlockedPrompt({
|
|
31209
31421
|
}
|
31210
31422
|
})
|
31211
31423
|
},
|
31212
|
-
/* @__PURE__ */
|
31424
|
+
/* @__PURE__ */ import_react192.default.createElement(DialogContent, { title: "Attention", closeable: false }, /* @__PURE__ */ import_react192.default.createElement(DialogRow, null, /* @__PURE__ */ import_react192.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_react192.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react192.default.createElement(
|
31213
31425
|
Button,
|
31214
31426
|
{
|
31215
31427
|
variant: "primary",
|
@@ -31221,14 +31433,14 @@ function HLSAutoplayBlockedPrompt({
|
|
31221
31433
|
)))
|
31222
31434
|
);
|
31223
31435
|
}
|
31224
|
-
var
|
31436
|
+
var import_react192, import_react_use42, import_react_icons90;
|
31225
31437
|
var init_HLSAutoplayBlockedPrompt = __esm({
|
31226
31438
|
"src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
|
31227
31439
|
"use strict";
|
31228
31440
|
init_define_process_env();
|
31229
|
-
|
31230
|
-
|
31231
|
-
|
31441
|
+
import_react192 = __toESM(require("react"));
|
31442
|
+
import_react_use42 = require("react-use");
|
31443
|
+
import_react_icons90 = require("@100mslive/react-icons");
|
31232
31444
|
init_src();
|
31233
31445
|
init_DialogContent2();
|
31234
31446
|
init_hooks();
|
@@ -31238,15 +31450,15 @@ var init_HLSAutoplayBlockedPrompt = __esm({
|
|
31238
31450
|
// src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx
|
31239
31451
|
function HLSCaptionSelector({ isEnabled }) {
|
31240
31452
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
31241
|
-
return /* @__PURE__ */
|
31453
|
+
return /* @__PURE__ */ import_react193.default.createElement(Tooltip, { title: "Subtitles/closed captions", side: "top" }, /* @__PURE__ */ import_react193.default.createElement(IconButton, { css: { p: "$2" }, onClick: () => hlsPlayer2 == null ? void 0 : hlsPlayer2.toggleCaption() }, isEnabled ? /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.ClosedCaptionIcon, { width: "20", height: "20px" }) : /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.OpenCaptionIcon, { width: "20", height: "20px" })));
|
31242
31454
|
}
|
31243
|
-
var
|
31455
|
+
var import_react193, import_react_icons91;
|
31244
31456
|
var init_HLSCaptionSelector = __esm({
|
31245
31457
|
"src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx"() {
|
31246
31458
|
"use strict";
|
31247
31459
|
init_define_process_env();
|
31248
|
-
|
31249
|
-
|
31460
|
+
import_react193 = __toESM(require("react"));
|
31461
|
+
import_react_icons91 = require("@100mslive/react-icons");
|
31250
31462
|
init_src();
|
31251
31463
|
init_PlayerContext();
|
31252
31464
|
}
|
@@ -31262,13 +31474,13 @@ function HLSQualitySelector({
|
|
31262
31474
|
isAuto,
|
31263
31475
|
containerRef
|
31264
31476
|
}) {
|
31265
|
-
const isMobile = (0,
|
31477
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
31266
31478
|
const isLandscape = useIsLandscape();
|
31267
31479
|
if (layers.length === 0) {
|
31268
31480
|
return null;
|
31269
31481
|
}
|
31270
31482
|
if (isMobile || isLandscape) {
|
31271
|
-
return /* @__PURE__ */
|
31483
|
+
return /* @__PURE__ */ import_react194.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react194.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "quality_selector" }, /* @__PURE__ */ import_react194.default.createElement(
|
31272
31484
|
Flex,
|
31273
31485
|
{
|
31274
31486
|
css: {
|
@@ -31278,15 +31490,15 @@ function HLSQualitySelector({
|
|
31278
31490
|
p: "$2"
|
31279
31491
|
}
|
31280
31492
|
},
|
31281
|
-
/* @__PURE__ */
|
31282
|
-
)), /* @__PURE__ */
|
31493
|
+
/* @__PURE__ */ import_react194.default.createElement(import_react_icons92.SettingsIcon, null)
|
31494
|
+
)), /* @__PURE__ */ import_react194.default.createElement(
|
31283
31495
|
Sheet.Content,
|
31284
31496
|
{
|
31285
31497
|
container: containerRef,
|
31286
31498
|
css: { bg: "$surface_default", pb: "$1" },
|
31287
31499
|
onClick: () => onOpenChange(false)
|
31288
31500
|
},
|
31289
|
-
/* @__PURE__ */
|
31501
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31290
31502
|
Sheet.Title,
|
31291
31503
|
{
|
31292
31504
|
css: {
|
@@ -31303,10 +31515,10 @@ function HLSQualitySelector({
|
|
31303
31515
|
}
|
31304
31516
|
},
|
31305
31517
|
"Quality",
|
31306
|
-
/* @__PURE__ */
|
31518
|
+
/* @__PURE__ */ import_react194.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: () => onOpenChange(false) }, /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CrossIcon, null))
|
31307
31519
|
),
|
31308
31520
|
layers.map((layer) => {
|
31309
|
-
return /* @__PURE__ */
|
31521
|
+
return /* @__PURE__ */ import_react194.default.createElement(
|
31310
31522
|
Flex,
|
31311
31523
|
{
|
31312
31524
|
align: "center",
|
@@ -31324,12 +31536,12 @@ function HLSQualitySelector({
|
|
31324
31536
|
key: layer.width,
|
31325
31537
|
onClick: () => onQualityChange(layer)
|
31326
31538
|
},
|
31327
|
-
/* @__PURE__ */
|
31328
|
-
/* @__PURE__ */
|
31329
|
-
!isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */
|
31539
|
+
/* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
|
31540
|
+
/* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
|
31541
|
+
!isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CheckIcon, { width: "16px", height: "16px" })
|
31330
31542
|
);
|
31331
31543
|
}),
|
31332
|
-
/* @__PURE__ */
|
31544
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31333
31545
|
Flex,
|
31334
31546
|
{
|
31335
31547
|
align: "center",
|
@@ -31347,12 +31559,12 @@ function HLSQualitySelector({
|
|
31347
31559
|
key: "auto",
|
31348
31560
|
onClick: () => onQualityChange({ height: "auto" })
|
31349
31561
|
},
|
31350
|
-
/* @__PURE__ */
|
31351
|
-
isAuto && /* @__PURE__ */
|
31562
|
+
/* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
|
31563
|
+
isAuto && /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CheckIcon, { width: "16px", height: "16px" })
|
31352
31564
|
)
|
31353
31565
|
));
|
31354
31566
|
}
|
31355
|
-
return /* @__PURE__ */
|
31567
|
+
return /* @__PURE__ */ import_react194.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => onOpenChange(value), modal: false }, /* @__PURE__ */ import_react194.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "quality_selector" }, /* @__PURE__ */ import_react194.default.createElement(
|
31356
31568
|
Flex,
|
31357
31569
|
{
|
31358
31570
|
css: {
|
@@ -31362,7 +31574,7 @@ function HLSQualitySelector({
|
|
31362
31574
|
p: "$2"
|
31363
31575
|
}
|
31364
31576
|
},
|
31365
|
-
/* @__PURE__ */
|
31577
|
+
/* @__PURE__ */ import_react194.default.createElement(Tooltip, { title: "Select Quality", side: "top" }, /* @__PURE__ */ import_react194.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react194.default.createElement(
|
31366
31578
|
Box,
|
31367
31579
|
{
|
31368
31580
|
css: {
|
@@ -31373,8 +31585,8 @@ function HLSQualitySelector({
|
|
31373
31585
|
c: "$on_surface_high"
|
31374
31586
|
}
|
31375
31587
|
},
|
31376
|
-
/* @__PURE__ */
|
31377
|
-
), /* @__PURE__ */
|
31588
|
+
/* @__PURE__ */ import_react194.default.createElement(import_react_icons92.SettingsIcon, null)
|
31589
|
+
), /* @__PURE__ */ import_react194.default.createElement(
|
31378
31590
|
Text,
|
31379
31591
|
{
|
31380
31592
|
variant: {
|
@@ -31384,7 +31596,7 @@ function HLSQualitySelector({
|
|
31384
31596
|
},
|
31385
31597
|
css: { display: "flex", alignItems: "center", ml: "$2", c: "$on_surface_medium" }
|
31386
31598
|
},
|
31387
|
-
isAuto && /* @__PURE__ */
|
31599
|
+
isAuto && /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, "Auto", /* @__PURE__ */ import_react194.default.createElement(
|
31388
31600
|
Box,
|
31389
31601
|
{
|
31390
31602
|
css: {
|
@@ -31399,7 +31611,7 @@ function HLSQualitySelector({
|
|
31399
31611
|
selection && Math.min(selection.width || 0, selection.height || 0),
|
31400
31612
|
"p"
|
31401
31613
|
)))
|
31402
|
-
)), /* @__PURE__ */
|
31614
|
+
)), /* @__PURE__ */ import_react194.default.createElement(Dropdown.Portal, { container: containerRef }, /* @__PURE__ */ import_react194.default.createElement(
|
31403
31615
|
Dropdown.Content,
|
31404
31616
|
{
|
31405
31617
|
sideOffset: 5,
|
@@ -31415,7 +31627,7 @@ function HLSQualitySelector({
|
|
31415
31627
|
}
|
31416
31628
|
},
|
31417
31629
|
layers.map((layer) => {
|
31418
|
-
return /* @__PURE__ */
|
31630
|
+
return /* @__PURE__ */ import_react194.default.createElement(
|
31419
31631
|
Dropdown.Item,
|
31420
31632
|
{
|
31421
31633
|
onClick: () => onQualityChange(layer),
|
@@ -31430,12 +31642,12 @@ function HLSQualitySelector({
|
|
31430
31642
|
gap: "$2"
|
31431
31643
|
}
|
31432
31644
|
},
|
31433
|
-
/* @__PURE__ */
|
31434
|
-
/* @__PURE__ */
|
31435
|
-
!isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */
|
31645
|
+
/* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
|
31646
|
+
/* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
|
31647
|
+
!isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CheckIcon, { width: "16px", height: "16px" })
|
31436
31648
|
);
|
31437
31649
|
}),
|
31438
|
-
/* @__PURE__ */
|
31650
|
+
/* @__PURE__ */ import_react194.default.createElement(
|
31439
31651
|
Dropdown.Item,
|
31440
31652
|
{
|
31441
31653
|
onClick: () => onQualityChange({ height: "auto" }),
|
@@ -31450,19 +31662,19 @@ function HLSQualitySelector({
|
|
31450
31662
|
gap: "$2"
|
31451
31663
|
}
|
31452
31664
|
},
|
31453
|
-
/* @__PURE__ */
|
31454
|
-
isAuto && /* @__PURE__ */
|
31665
|
+
/* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
|
31666
|
+
isAuto && /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CheckIcon, { width: "16px", height: "16px" })
|
31455
31667
|
)
|
31456
31668
|
)));
|
31457
31669
|
}
|
31458
|
-
var
|
31670
|
+
var import_react194, import_react_use43, import_react_icons92, getQualityText, getBitrateText;
|
31459
31671
|
var init_HLSQualitySelector = __esm({
|
31460
31672
|
"src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
|
31461
31673
|
"use strict";
|
31462
31674
|
init_define_process_env();
|
31463
|
-
|
31464
|
-
|
31465
|
-
|
31675
|
+
import_react194 = __toESM(require("react"));
|
31676
|
+
import_react_use43 = require("react-use");
|
31677
|
+
import_react_icons92 = require("@100mslive/react-icons");
|
31466
31678
|
init_src();
|
31467
31679
|
init_Sheet2();
|
31468
31680
|
init_Theme();
|
@@ -31473,13 +31685,13 @@ var init_HLSQualitySelector = __esm({
|
|
31473
31685
|
});
|
31474
31686
|
|
31475
31687
|
// src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx
|
31476
|
-
var
|
31688
|
+
var import_react195, import_react_icons93, HLSViewTitle;
|
31477
31689
|
var init_MwebHLSViewTitle = __esm({
|
31478
31690
|
"src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx"() {
|
31479
31691
|
"use strict";
|
31480
31692
|
init_define_process_env();
|
31481
|
-
|
31482
|
-
|
31693
|
+
import_react195 = __toESM(require("react"));
|
31694
|
+
import_react_icons93 = require("@100mslive/react-icons");
|
31483
31695
|
init_Layout();
|
31484
31696
|
init_Text2();
|
31485
31697
|
init_HeaderComponents();
|
@@ -31492,7 +31704,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
31492
31704
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31493
31705
|
const isDetailSidepaneOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31494
31706
|
if (isDetailSidepaneOpen) {
|
31495
|
-
return /* @__PURE__ */
|
31707
|
+
return /* @__PURE__ */ import_react195.default.createElement(
|
31496
31708
|
Flex,
|
31497
31709
|
{
|
31498
31710
|
gap: "4",
|
@@ -31507,8 +31719,8 @@ var init_MwebHLSViewTitle = __esm({
|
|
31507
31719
|
backgroundColor: "$surface_dim"
|
31508
31720
|
}
|
31509
31721
|
},
|
31510
|
-
/* @__PURE__ */
|
31511
|
-
/* @__PURE__ */
|
31722
|
+
/* @__PURE__ */ import_react195.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, "About Session"),
|
31723
|
+
/* @__PURE__ */ import_react195.default.createElement(
|
31512
31724
|
Flex,
|
31513
31725
|
{
|
31514
31726
|
onClick: toggleDetailsPane,
|
@@ -31518,11 +31730,11 @@ var init_MwebHLSViewTitle = __esm({
|
|
31518
31730
|
"&:hover": { opacity: "0.8" }
|
31519
31731
|
}
|
31520
31732
|
},
|
31521
|
-
/* @__PURE__ */
|
31733
|
+
/* @__PURE__ */ import_react195.default.createElement(import_react_icons93.ChevronDownIcon, null)
|
31522
31734
|
)
|
31523
31735
|
);
|
31524
31736
|
}
|
31525
|
-
return /* @__PURE__ */
|
31737
|
+
return /* @__PURE__ */ import_react195.default.createElement(
|
31526
31738
|
Flex,
|
31527
31739
|
{
|
31528
31740
|
gap: "4",
|
@@ -31536,8 +31748,8 @@ var init_MwebHLSViewTitle = __esm({
|
|
31536
31748
|
backgroundColor: "$surface_dim"
|
31537
31749
|
}
|
31538
31750
|
},
|
31539
|
-
/* @__PURE__ */
|
31540
|
-
/* @__PURE__ */
|
31751
|
+
/* @__PURE__ */ import_react195.default.createElement(Logo, null),
|
31752
|
+
/* @__PURE__ */ import_react195.default.createElement(Flex, { direction: "column" }, title ? /* @__PURE__ */ import_react195.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, title) : null, /* @__PURE__ */ import_react195.default.createElement(Flex, null, /* @__PURE__ */ import_react195.default.createElement(RoomDetailsRow, { details }), description ? /* @__PURE__ */ import_react195.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" }, onClick: toggleDetailsPane }, "\xA0...more") : null))
|
31541
31753
|
);
|
31542
31754
|
};
|
31543
31755
|
}
|
@@ -31548,18 +31760,18 @@ var HLSView_exports = {};
|
|
31548
31760
|
__export(HLSView_exports, {
|
31549
31761
|
default: () => HLSView_default
|
31550
31762
|
});
|
31551
|
-
var
|
31763
|
+
var import_react196, import_react_use44, import_hls_player3, import_screenfull3, import_ts_pattern11, import_react_sdk97, import_react_icons94, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
|
31552
31764
|
var init_HLSView = __esm({
|
31553
31765
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
31554
31766
|
"use strict";
|
31555
31767
|
init_define_process_env();
|
31556
|
-
|
31557
|
-
|
31768
|
+
import_react196 = __toESM(require("react"));
|
31769
|
+
import_react_use44 = require("react-use");
|
31558
31770
|
import_hls_player3 = require("@100mslive/hls-player");
|
31559
31771
|
import_screenfull3 = __toESM(require("screenfull"));
|
31560
31772
|
import_ts_pattern11 = require("ts-pattern");
|
31561
31773
|
import_react_sdk97 = require("@100mslive/react-sdk");
|
31562
|
-
|
31774
|
+
import_react_icons94 = require("@100mslive/react-icons");
|
31563
31775
|
init_ChatToggle();
|
31564
31776
|
init_HlsStatsOverlay();
|
31565
31777
|
init_HMSVideo2();
|
@@ -31583,60 +31795,69 @@ var init_HLSView = __esm({
|
|
31583
31795
|
init_hooks();
|
31584
31796
|
init_constants();
|
31585
31797
|
toastMap = {};
|
31586
|
-
ToggleChat = () => {
|
31798
|
+
ToggleChat = ({ isFullScreen = false }) => {
|
31587
31799
|
const { elements } = useRoomLayoutConferencingScreen();
|
31588
31800
|
const sidepane = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.sidePane));
|
31589
31801
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
31590
31802
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
31591
|
-
const isMobile = (0,
|
31803
|
+
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31592
31804
|
const hmsActions = (0, import_react_sdk97.useHMSActions)();
|
31593
|
-
(0,
|
31594
|
-
(0, import_ts_pattern11.match)({ sidepane, isMobile, showChat }).with({
|
31805
|
+
(0, import_react196.useEffect)(() => {
|
31806
|
+
(0, import_ts_pattern11.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
|
31807
|
+
hmsActions.setAppData(APP_DATA.sidePane, "");
|
31808
|
+
}).with({ isMobile: true, showChat: true, sidepane: import_ts_pattern11.P.when((value) => !value) }, () => {
|
31595
31809
|
toggleChat();
|
31596
31810
|
}).with({ showChat: false, isMobile: true, sidepane: SIDE_PANE_OPTIONS.CHAT }, () => {
|
31597
31811
|
hmsActions.setAppData(APP_DATA.sidePane, "");
|
31598
31812
|
}).otherwise(() => {
|
31599
31813
|
});
|
31600
|
-
}, [sidepane, isMobile, toggleChat, showChat, hmsActions]);
|
31814
|
+
}, [sidepane, isMobile, toggleChat, showChat, hmsActions, isFullScreen]);
|
31601
31815
|
return null;
|
31602
31816
|
};
|
31603
31817
|
HLSView = () => {
|
31604
|
-
var _a8, _b7, _c, _d, _e, _f;
|
31605
|
-
const videoRef = (0,
|
31606
|
-
const hlsViewRef = (0,
|
31818
|
+
var _a8, _b7, _c, _d, _e, _f, _g;
|
31819
|
+
const videoRef = (0, import_react196.useRef)(null);
|
31820
|
+
const hlsViewRef = (0, import_react196.useRef)();
|
31821
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
31607
31822
|
const hlsState = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectHLSState);
|
31608
31823
|
const enablHlsStats = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.hlsStats));
|
31609
31824
|
const notification = (0, import_react_sdk97.useHMSNotifications)(import_react_sdk97.HMSNotificationTypes.POLL_STOPPED);
|
31610
31825
|
const hmsActions = (0, import_react_sdk97.useHMSActions)();
|
31611
31826
|
const { themeType } = useTheme();
|
31612
|
-
const [streamEnded, setStreamEnded] = (0,
|
31613
|
-
let [hlsStatsState, setHlsStatsState] = (0,
|
31827
|
+
const [streamEnded, setStreamEnded] = (0, import_react196.useState)(false);
|
31828
|
+
let [hlsStatsState, setHlsStatsState] = (0, import_react196.useState)(null);
|
31614
31829
|
const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
|
31615
|
-
const [availableLayers, setAvailableLayers] = (0,
|
31616
|
-
const [isVideoLive, setIsVideoLive] = (0,
|
31617
|
-
const [isCaptionEnabled, setIsCaptionEnabled] = (0,
|
31618
|
-
const [hasCaptions, setHasCaptions] = (0,
|
31619
|
-
const [currentSelectedQuality, setCurrentSelectedQuality] = (0,
|
31620
|
-
const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0,
|
31621
|
-
const [
|
31622
|
-
|
31623
|
-
|
31624
|
-
|
31830
|
+
const [availableLayers, setAvailableLayers] = (0, import_react196.useState)([]);
|
31831
|
+
const [isVideoLive, setIsVideoLive] = (0, import_react196.useState)(true);
|
31832
|
+
const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react196.useState)(true);
|
31833
|
+
const [hasCaptions, setHasCaptions] = (0, import_react196.useState)(false);
|
31834
|
+
const [currentSelectedQuality, setCurrentSelectedQuality] = (0, import_react196.useState)(null);
|
31835
|
+
const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react196.useState)(false);
|
31836
|
+
const [hoverControlsVisible, setHoverControlsVisible] = (0, import_react196.useState)({
|
31837
|
+
seekForward: false,
|
31838
|
+
pausePlay: false,
|
31839
|
+
seekBackward: false
|
31840
|
+
});
|
31841
|
+
const [isPaused, setIsPaused] = (0, import_react196.useState)(false);
|
31842
|
+
const [show, toggle] = (0, import_react_use44.useToggle)(false);
|
31843
|
+
const lastHlsUrl = (0, import_react_use44.usePrevious)(hlsUrl);
|
31625
31844
|
const vanillaStore = (0, import_react_sdk97.useHMSVanillaStore)();
|
31626
|
-
const [controlsVisible, setControlsVisible] = (0,
|
31627
|
-
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0,
|
31628
|
-
const [qualityDropDownOpen, setQualityDropDownOpen] = (0,
|
31629
|
-
const controlsRef = (0,
|
31630
|
-
const controlsTimerRef = (0,
|
31631
|
-
const [seekProgress, setSeekProgress] = (0,
|
31845
|
+
const [controlsVisible, setControlsVisible] = (0, import_react196.useState)(true);
|
31846
|
+
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react196.useState)(true);
|
31847
|
+
const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react196.useState)(false);
|
31848
|
+
const controlsRef = (0, import_react196.useRef)(null);
|
31849
|
+
const controlsTimerRef = (0, import_react196.useRef)();
|
31850
|
+
const [seekProgress, setSeekProgress] = (0, import_react196.useState)(false);
|
31632
31851
|
const isFullScreenSupported = import_screenfull3.default.isEnabled;
|
31633
|
-
const
|
31852
|
+
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
31853
|
+
const showChat = !!(elements == null ? void 0 : elements.chat);
|
31854
|
+
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31634
31855
|
const isLandscape = useIsLandscape();
|
31635
|
-
const isFullScreen = (0,
|
31856
|
+
const isFullScreen = (0, import_react_use44.useFullscreen)(hlsViewRef, show, {
|
31636
31857
|
onClose: () => toggle(false)
|
31637
31858
|
});
|
31638
|
-
const [showLoader, setShowLoader] = (0,
|
31639
|
-
(0,
|
31859
|
+
const [showLoader, setShowLoader] = (0, import_react196.useState)(false);
|
31860
|
+
(0, import_react196.useEffect)(() => {
|
31640
31861
|
const videoEl = videoRef.current;
|
31641
31862
|
const showLoader2 = () => setShowLoader(true);
|
31642
31863
|
const hideLoader = () => setShowLoader(false);
|
@@ -31647,12 +31868,12 @@ var init_HLSView = __esm({
|
|
31647
31868
|
videoEl == null ? void 0 : videoEl.removeEventListener("waiting", showLoader2);
|
31648
31869
|
};
|
31649
31870
|
}, []);
|
31650
|
-
(0,
|
31871
|
+
(0, import_react196.useEffect)(() => {
|
31651
31872
|
if (streamEnded && lastHlsUrl !== hlsUrl) {
|
31652
31873
|
setStreamEnded(false);
|
31653
31874
|
}
|
31654
31875
|
}, [hlsUrl, streamEnded, lastHlsUrl]);
|
31655
|
-
(0,
|
31876
|
+
(0, import_react196.useEffect)(() => {
|
31656
31877
|
if (!notification)
|
31657
31878
|
return;
|
31658
31879
|
const toastID = toastMap == null ? void 0 : toastMap[notification.data.id];
|
@@ -31661,7 +31882,7 @@ var init_HLSView = __esm({
|
|
31661
31882
|
delete toastMap[notification.data.id];
|
31662
31883
|
}
|
31663
31884
|
}, [notification]);
|
31664
|
-
(0,
|
31885
|
+
(0, import_react196.useEffect)(() => {
|
31665
31886
|
const videoElem = videoRef.current;
|
31666
31887
|
const setStreamEndedCallback = () => {
|
31667
31888
|
setStreamEnded(true);
|
@@ -31672,7 +31893,7 @@ var init_HLSView = __esm({
|
|
31672
31893
|
videoElem == null ? void 0 : videoElem.removeEventListener("ended", setStreamEndedCallback);
|
31673
31894
|
};
|
31674
31895
|
}, [hlsUrl]);
|
31675
|
-
const handleQuality = (0,
|
31896
|
+
const handleQuality = (0, import_react196.useCallback)(
|
31676
31897
|
(quality) => {
|
31677
31898
|
var _a9;
|
31678
31899
|
if (hlsPlayer) {
|
@@ -31683,7 +31904,7 @@ var init_HLSView = __esm({
|
|
31683
31904
|
[availableLayers]
|
31684
31905
|
//eslint-disable-line
|
31685
31906
|
);
|
31686
|
-
(0,
|
31907
|
+
(0, import_react196.useEffect)(() => {
|
31687
31908
|
let videoEl = videoRef.current;
|
31688
31909
|
const manifestLoadedHandler = ({ layers }) => {
|
31689
31910
|
setAvailableLayers(layers);
|
@@ -31711,7 +31932,7 @@ var init_HLSView = __esm({
|
|
31711
31932
|
if (!toastMap[pollId]) {
|
31712
31933
|
const toastID = ToastManager.addToast({
|
31713
31934
|
title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
|
31714
|
-
action: /* @__PURE__ */
|
31935
|
+
action: /* @__PURE__ */ import_react196.default.createElement(
|
31715
31936
|
Button,
|
31716
31937
|
{
|
31717
31938
|
onClick: () => {
|
@@ -31758,7 +31979,17 @@ var init_HLSView = __esm({
|
|
31758
31979
|
const handleNoLongerLive = ({ isLive }) => {
|
31759
31980
|
setIsVideoLive(isLive);
|
31760
31981
|
};
|
31761
|
-
const playbackEventHandler = (data3) =>
|
31982
|
+
const playbackEventHandler = (data3) => {
|
31983
|
+
setIsPaused(data3.state === import_hls_player3.HLSPlaybackState.paused);
|
31984
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
|
31985
|
+
pausePlay: true
|
31986
|
+
}));
|
31987
|
+
setTimeout(() => {
|
31988
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
|
31989
|
+
pausePlay: false
|
31990
|
+
}));
|
31991
|
+
}, 2e3);
|
31992
|
+
};
|
31762
31993
|
const captionEnabledEventHandler = (isCaptionEnabled2) => {
|
31763
31994
|
setIsCaptionEnabled(isCaptionEnabled2);
|
31764
31995
|
};
|
@@ -31786,7 +32017,7 @@ var init_HLSView = __esm({
|
|
31786
32017
|
};
|
31787
32018
|
}
|
31788
32019
|
}, [hlsUrl, vanillaStore, hmsActions]);
|
31789
|
-
(0,
|
32020
|
+
(0, import_react196.useEffect)(() => {
|
31790
32021
|
const onHLSStats = (state) => setHlsStatsState(state);
|
31791
32022
|
if (enablHlsStats) {
|
31792
32023
|
hlsPlayer == null ? void 0 : hlsPlayer.on(import_hls_player3.HMSHLSPlayerEvents.STATS, onHLSStats);
|
@@ -31808,7 +32039,7 @@ var init_HLSView = __esm({
|
|
31808
32039
|
const sfnOverlayClose = () => {
|
31809
32040
|
hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats);
|
31810
32041
|
};
|
31811
|
-
(0,
|
32042
|
+
(0, import_react196.useEffect)(() => {
|
31812
32043
|
if (controlsVisible && isFullScreen && !qualityDropDownOpen) {
|
31813
32044
|
if (controlsTimerRef.current) {
|
31814
32045
|
clearTimeout(controlsTimerRef.current);
|
@@ -31828,30 +32059,56 @@ var init_HLSView = __esm({
|
|
31828
32059
|
}
|
31829
32060
|
};
|
31830
32061
|
}, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
|
31831
|
-
const onSeekTo = (0,
|
31832
|
-
|
31833
|
-
|
31834
|
-
|
31835
|
-
|
32062
|
+
const onSeekTo = (0, import_react196.useCallback)(
|
32063
|
+
(seek) => {
|
32064
|
+
var _a9;
|
32065
|
+
(0, import_ts_pattern11.match)({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
|
32066
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
|
32067
|
+
setTimeout(() => {
|
32068
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
|
32069
|
+
seekBackward: false
|
32070
|
+
}));
|
32071
|
+
}, 1e3);
|
32072
|
+
}).with({ seek: 10, isMobile: false, isLandscape: false }, () => {
|
32073
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekForward: true }));
|
32074
|
+
setTimeout(() => {
|
32075
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
|
32076
|
+
seekForward: false
|
32077
|
+
}));
|
32078
|
+
}, 1e3);
|
32079
|
+
}).otherwise(() => null);
|
32080
|
+
hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
|
32081
|
+
},
|
32082
|
+
[hoverControlsVisible, isLandscape, isMobile]
|
32083
|
+
);
|
32084
|
+
const onDoubleClickHandler = (0, import_react196.useCallback)(
|
31836
32085
|
(event) => {
|
31837
32086
|
var _a9;
|
31838
32087
|
if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk97.HLSPlaylistType.DVR) {
|
31839
32088
|
return;
|
31840
32089
|
}
|
31841
32090
|
const sidePercentage = event.screenX * 100 / event.target.clientWidth;
|
31842
|
-
setIsSeekEnabled(true);
|
31843
32091
|
if (sidePercentage < 45) {
|
32092
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
|
32093
|
+
seekBackward: true
|
32094
|
+
}));
|
31844
32095
|
onSeekTo(-10);
|
31845
32096
|
} else {
|
32097
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
|
32098
|
+
seekForward: true
|
32099
|
+
}));
|
31846
32100
|
onSeekTo(10);
|
31847
32101
|
}
|
31848
32102
|
setTimeout(() => {
|
31849
|
-
|
31850
|
-
|
32103
|
+
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
|
32104
|
+
seekForward: false,
|
32105
|
+
seekBackward: false
|
32106
|
+
}));
|
32107
|
+
}, 1e3);
|
31851
32108
|
},
|
31852
|
-
[hlsState == null ? void 0 : hlsState.variants, isLandscape, isMobile, onSeekTo]
|
32109
|
+
[hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
|
31853
32110
|
);
|
31854
|
-
const onClickHandler = (0,
|
32111
|
+
const onClickHandler = (0, import_react196.useCallback)(() => __async(void 0, null, function* () {
|
31855
32112
|
var _a9;
|
31856
32113
|
(0, import_ts_pattern11.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk97.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
|
31857
32114
|
if (isPaused) {
|
@@ -31869,7 +32126,7 @@ var init_HLSView = __esm({
|
|
31869
32126
|
}
|
31870
32127
|
).otherwise(() => null);
|
31871
32128
|
}), [hlsState == null ? void 0 : hlsState.variants, isLandscape, isMobile, isPaused]);
|
31872
|
-
const onHoverHandler = (0,
|
32129
|
+
const onHoverHandler = (0, import_react196.useCallback)(
|
31873
32130
|
(event) => {
|
31874
32131
|
event.preventDefault();
|
31875
32132
|
if (isMobile || isLandscape) {
|
@@ -31892,7 +32149,7 @@ var init_HLSView = __esm({
|
|
31892
32149
|
);
|
31893
32150
|
const keyHandler = useKeyboardHandler(isPaused, hlsPlayer);
|
31894
32151
|
if (!hlsUrl || streamEnded) {
|
31895
|
-
return /* @__PURE__ */
|
32152
|
+
return /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, /* @__PURE__ */ import_react196.default.createElement(ToggleChat, null), hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react196.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })), /* @__PURE__ */ import_react196.default.createElement(
|
31896
32153
|
Flex,
|
31897
32154
|
{
|
31898
32155
|
key: "hls-viewer",
|
@@ -31904,10 +32161,10 @@ var init_HLSView = __esm({
|
|
31904
32161
|
flex: isLandscape ? "2 1 0" : "1 1 0"
|
31905
32162
|
}
|
31906
32163
|
},
|
31907
|
-
/* @__PURE__ */
|
32164
|
+
/* @__PURE__ */ import_react196.default.createElement(Flex, { align: "center", justify: "center", direction: "column", css: { size: "100%", px: "$10" } }, /* @__PURE__ */ import_react196.default.createElement(Flex, { css: { c: "$on_surface_high", r: "$round", bg: "$surface_default", p: "$2" } }, streamEnded ? /* @__PURE__ */ import_react196.default.createElement(import_react_icons94.ColoredHandIcon, { height: 56, width: 56 }) : /* @__PURE__ */ import_react196.default.createElement(import_react_icons94.GoLiveIcon, { height: 56, width: 56 })), /* @__PURE__ */ import_react196.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_react196.default.createElement(Text, { variant: "md", css: { textAlign: "center", mt: "$4", c: "$on_surface_medium" } }, streamEnded ? "Have a nice day!" : "Sit back and relax"))
|
31908
32165
|
));
|
31909
32166
|
}
|
31910
|
-
return /* @__PURE__ */
|
32167
|
+
return /* @__PURE__ */ import_react196.default.createElement(
|
31911
32168
|
Flex,
|
31912
32169
|
{
|
31913
32170
|
key: "hls-viewer",
|
@@ -31917,6 +32174,7 @@ var init_HLSView = __esm({
|
|
31917
32174
|
justify: "center",
|
31918
32175
|
css: {
|
31919
32176
|
flex: isLandscape ? "2 1 0" : "1 1 0",
|
32177
|
+
transition: "all 0.3s ease-in-out",
|
31920
32178
|
"&:fullscreen": {
|
31921
32179
|
"& video": {
|
31922
32180
|
height: "unset !important"
|
@@ -31924,8 +32182,8 @@ var init_HLSView = __esm({
|
|
31924
32182
|
}
|
31925
32183
|
}
|
31926
32184
|
},
|
31927
|
-
hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */
|
31928
|
-
/* @__PURE__ */
|
32185
|
+
hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react196.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })),
|
32186
|
+
/* @__PURE__ */ import_react196.default.createElement(HMSPlayerContext.Provider, { value: { hlsPlayer } }, (hlsStatsState == null ? void 0 : hlsStatsState.url) && enablHlsStats && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react196.default.createElement(HlsStatsOverlay, { hlsStatsState, onClose: sfnOverlayClose }) : null, /* @__PURE__ */ import_react196.default.createElement(
|
31929
32187
|
Flex,
|
31930
32188
|
{
|
31931
32189
|
id: "hls-player-container",
|
@@ -31947,8 +32205,8 @@ var init_HLSView = __esm({
|
|
31947
32205
|
}),
|
31948
32206
|
tabIndex: "0"
|
31949
32207
|
},
|
31950
|
-
!(isMobile || isLandscape) && /* @__PURE__ */
|
31951
|
-
showLoader && /* @__PURE__ */
|
32208
|
+
!(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }),
|
32209
|
+
showLoader && /* @__PURE__ */ import_react196.default.createElement(
|
31952
32210
|
Flex,
|
31953
32211
|
{
|
31954
32212
|
align: "center",
|
@@ -31957,9 +32215,9 @@ var init_HLSView = __esm({
|
|
31957
32215
|
position: "absolute"
|
31958
32216
|
}
|
31959
32217
|
},
|
31960
|
-
/* @__PURE__ */
|
32218
|
+
/* @__PURE__ */ import_react196.default.createElement(Loading, { width: 72, height: 72 })
|
31961
32219
|
),
|
31962
|
-
/* @__PURE__ */
|
32220
|
+
/* @__PURE__ */ import_react196.default.createElement(
|
31963
32221
|
HMSVideoPlayer.Root,
|
31964
32222
|
{
|
31965
32223
|
ref: videoRef,
|
@@ -31971,53 +32229,36 @@ var init_HLSView = __esm({
|
|
31971
32229
|
onDoubleClickHandler(e);
|
31972
32230
|
}
|
31973
32231
|
},
|
31974
|
-
/* @__PURE__ */
|
32232
|
+
/* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(
|
31975
32233
|
Flex,
|
31976
32234
|
{
|
31977
32235
|
align: "center",
|
31978
|
-
justify: "
|
32236
|
+
justify: "between",
|
31979
32237
|
css: {
|
31980
32238
|
position: "absolute",
|
31981
32239
|
bg: "#00000066",
|
31982
32240
|
display: "inline-flex",
|
31983
32241
|
gap: "$2",
|
31984
32242
|
zIndex: 1,
|
31985
|
-
size: "100%"
|
31986
|
-
visibility: controlsVisible ? `` : `hidden`,
|
31987
|
-
opacity: controlsVisible ? `1` : "0"
|
32243
|
+
size: "100%"
|
31988
32244
|
}
|
31989
32245
|
},
|
31990
|
-
!showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */
|
31991
|
-
HMSVideoPlayer.
|
31992
|
-
{
|
31993
|
-
title: "backward",
|
31994
|
-
css: {
|
31995
|
-
visibility: isSeekEnabled ? `` : `hidden`,
|
31996
|
-
opacity: isSeekEnabled ? `1` : "0"
|
31997
|
-
}
|
31998
|
-
},
|
31999
|
-
/* @__PURE__ */ import_react195.default.createElement(import_react_icons93.BackwardArrowIcon, { width: 32, height: 32 })
|
32000
|
-
), /* @__PURE__ */ import_react195.default.createElement(
|
32001
|
-
Box,
|
32246
|
+
!showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
|
32247
|
+
HMSVideoPlayer.PlayPauseSeekControls.Overlay,
|
32002
32248
|
{
|
32003
|
-
|
32004
|
-
|
32005
|
-
|
32006
|
-
|
32007
|
-
|
32008
|
-
|
32009
|
-
|
32010
|
-
|
32011
|
-
|
32012
|
-
|
32013
|
-
|
32014
|
-
|
32015
|
-
|
32016
|
-
}
|
32017
|
-
},
|
32018
|
-
/* @__PURE__ */ import_react195.default.createElement(import_react_icons93.ForwardArrowIcon, { width: 32, height: 32 })
|
32019
|
-
))
|
32020
|
-
), /* @__PURE__ */ import_react195.default.createElement(
|
32249
|
+
isPaused,
|
32250
|
+
showControls: controlsVisible,
|
32251
|
+
hoverControlsVisible
|
32252
|
+
}
|
32253
|
+
)
|
32254
|
+
), isMobile || isLandscape ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, !showLoader && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
|
32255
|
+
HMSVideoPlayer.PlayPauseSeekControls.Overlay,
|
32256
|
+
{
|
32257
|
+
isPaused,
|
32258
|
+
showControls: controlsVisible,
|
32259
|
+
hoverControlsVisible
|
32260
|
+
}
|
32261
|
+
), /* @__PURE__ */ import_react196.default.createElement(
|
32021
32262
|
Flex,
|
32022
32263
|
{
|
32023
32264
|
ref: controlsRef,
|
@@ -32035,14 +32276,24 @@ var init_HLSView = __esm({
|
|
32035
32276
|
opacity: controlsVisible ? `1` : "0"
|
32036
32277
|
}
|
32037
32278
|
},
|
32038
|
-
/* @__PURE__ */
|
32279
|
+
/* @__PURE__ */ import_react196.default.createElement(
|
32039
32280
|
HMSVideoPlayer.Controls.Root,
|
32040
32281
|
{
|
32041
32282
|
css: {
|
32042
32283
|
p: "$4 $8"
|
32043
32284
|
}
|
32044
32285
|
},
|
32045
|
-
/* @__PURE__ */
|
32286
|
+
/* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Right, null, (isLandscape || isMobile && isFullScreen) && showChat && /* @__PURE__ */ import_react196.default.createElement(
|
32287
|
+
ChatToggle,
|
32288
|
+
{
|
32289
|
+
onClick: () => {
|
32290
|
+
if (isFullScreen) {
|
32291
|
+
toggle();
|
32292
|
+
}
|
32293
|
+
toggleChat();
|
32294
|
+
}
|
32295
|
+
}
|
32296
|
+
), hasCaptions && !isHlsAutoplayBlocked && /* @__PURE__ */ import_react196.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), hlsViewRef.current && availableLayers.length > 0 && !isHlsAutoplayBlocked ? /* @__PURE__ */ import_react196.default.createElement(
|
32046
32297
|
HLSQualitySelector,
|
32047
32298
|
{
|
32048
32299
|
layers: availableLayers,
|
@@ -32053,9 +32304,9 @@ var init_HLSView = __esm({
|
|
32053
32304
|
isAuto: isUserSelectedAuto,
|
32054
32305
|
containerRef: hlsViewRef.current
|
32055
32306
|
}
|
32056
|
-
) : null, /* @__PURE__ */
|
32307
|
+
) : null, /* @__PURE__ */ import_react196.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }))
|
32057
32308
|
)
|
32058
|
-
)) : null, controlsVisible && /* @__PURE__ */
|
32309
|
+
)) : null, controlsVisible && /* @__PURE__ */ import_react196.default.createElement(
|
32059
32310
|
Flex,
|
32060
32311
|
{
|
32061
32312
|
ref: controlsRef,
|
@@ -32064,7 +32315,7 @@ var init_HLSView = __esm({
|
|
32064
32315
|
align: "start",
|
32065
32316
|
css: {
|
32066
32317
|
position: "absolute",
|
32067
|
-
bottom: isFullScreen && ((
|
32318
|
+
bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? "$8" : "0",
|
32068
32319
|
left: "0",
|
32069
32320
|
zIndex: 1,
|
32070
32321
|
background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
|
@@ -32074,44 +32325,27 @@ var init_HLSView = __esm({
|
|
32074
32325
|
transition: "visibility 0s 0.5s, opacity 0.5s linear"
|
32075
32326
|
}
|
32076
32327
|
},
|
32077
|
-
((
|
32078
|
-
/* @__PURE__ */
|
32328
|
+
((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
|
32329
|
+
/* @__PURE__ */ import_react196.default.createElement(
|
32079
32330
|
HMSVideoPlayer.Controls.Root,
|
32080
32331
|
{
|
32081
32332
|
css: {
|
32082
32333
|
p: "$4 $8"
|
32083
32334
|
}
|
32084
32335
|
},
|
32085
|
-
/* @__PURE__ */
|
32086
|
-
HMSVideoPlayer.Seeker,
|
32087
|
-
{
|
32088
|
-
onClick: () => {
|
32089
|
-
onSeekTo(-10);
|
32090
|
-
},
|
32091
|
-
title: "backward"
|
32092
|
-
},
|
32093
|
-
/* @__PURE__ */ import_react195.default.createElement(import_react_icons93.BackwardArrowIcon, { width: 20, height: 20 })
|
32094
|
-
), /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.PlayPauseButton, { isPaused }), /* @__PURE__ */ import_react195.default.createElement(
|
32095
|
-
HMSVideoPlayer.Seeker,
|
32096
|
-
{
|
32097
|
-
onClick: () => {
|
32098
|
-
onSeekTo(10);
|
32099
|
-
},
|
32100
|
-
title: "forward"
|
32101
|
-
},
|
32102
|
-
/* @__PURE__ */ import_react195.default.createElement(import_react_icons93.ForwardArrowIcon, { width: 20, height: 20 })
|
32103
|
-
), !isVideoLive ? /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react195.default.createElement(
|
32336
|
+
/* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.PlayPauseSeekControls.Button, { isPaused, onSeekTo }), !isVideoLive ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react196.default.createElement(
|
32104
32337
|
IconButton,
|
32105
32338
|
{
|
32106
32339
|
css: { px: "$2" },
|
32107
|
-
onClick: () => __async(void 0, null, function* () {
|
32340
|
+
onClick: (e) => __async(void 0, null, function* () {
|
32341
|
+
e.stopPropagation();
|
32108
32342
|
yield hlsPlayer == null ? void 0 : hlsPlayer.seekToLivePosition();
|
32109
32343
|
setIsVideoLive(true);
|
32110
32344
|
}),
|
32111
32345
|
key: "jump-to-live_btn",
|
32112
32346
|
"data-testid": "jump-to-live_btn"
|
32113
32347
|
},
|
32114
|
-
/* @__PURE__ */
|
32348
|
+
/* @__PURE__ */ import_react196.default.createElement(Tooltip, { title: isVideoLive ? "Live" : "Go to Live", side: "top" }, /* @__PURE__ */ import_react196.default.createElement(Flex, { justify: "center", gap: 2, align: "center" }, /* @__PURE__ */ import_react196.default.createElement(
|
32115
32349
|
Box,
|
32116
32350
|
{
|
32117
32351
|
css: {
|
@@ -32121,7 +32355,7 @@ var init_HLSView = __esm({
|
|
32121
32355
|
r: "$1"
|
32122
32356
|
}
|
32123
32357
|
}
|
32124
|
-
), /* @__PURE__ */
|
32358
|
+
), /* @__PURE__ */ import_react196.default.createElement(
|
32125
32359
|
Text,
|
32126
32360
|
{
|
32127
32361
|
variant: "$body1",
|
@@ -32132,8 +32366,8 @@ var init_HLSView = __esm({
|
|
32132
32366
|
},
|
32133
32367
|
isVideoLive ? "LIVE" : "GO LIVE"
|
32134
32368
|
)))
|
32135
|
-
), (isMobile || isLandscape) && !isVideoLive && ((
|
32136
|
-
/* @__PURE__ */
|
32369
|
+
), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null),
|
32370
|
+
/* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react196.default.createElement(
|
32137
32371
|
HLSQualitySelector,
|
32138
32372
|
{
|
32139
32373
|
layers: availableLayers,
|
@@ -32143,13 +32377,13 @@ var init_HLSView = __esm({
|
|
32143
32377
|
onQualityChange: handleQuality,
|
32144
32378
|
isAuto: isUserSelectedAuto
|
32145
32379
|
}
|
32146
|
-
) : null, isFullScreenSupported ? /* @__PURE__ */
|
32380
|
+
) : null, isFullScreenSupported ? /* @__PURE__ */ import_react196.default.createElement(FullScreenButton2, { isFullScreen, onToggle: toggle }) : null)
|
32147
32381
|
)
|
32148
32382
|
))
|
32149
32383
|
)
|
32150
32384
|
)),
|
32151
|
-
/* @__PURE__ */
|
32152
|
-
isMobile && !isFullScreen && /* @__PURE__ */
|
32385
|
+
/* @__PURE__ */ import_react196.default.createElement(ToggleChat, { isFullScreen }),
|
32386
|
+
isMobile && !isFullScreen && /* @__PURE__ */ import_react196.default.createElement(HLSViewTitle, null)
|
32153
32387
|
);
|
32154
32388
|
};
|
32155
32389
|
HLSView_default = HLSView;
|
@@ -32157,12 +32391,12 @@ var init_HLSView = __esm({
|
|
32157
32391
|
});
|
32158
32392
|
|
32159
32393
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
32160
|
-
var
|
32394
|
+
var import_react197, import_ts_pattern12, import_react_sdk98, HLSView2, VideoStreamingSection;
|
32161
32395
|
var init_VideoStreamingSection = __esm({
|
32162
32396
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
32163
32397
|
"use strict";
|
32164
32398
|
init_define_process_env();
|
32165
|
-
|
32399
|
+
import_react197 = __toESM(require("react"));
|
32166
32400
|
import_ts_pattern12 = require("ts-pattern");
|
32167
32401
|
import_react_sdk98 = require("@100mslive/react-sdk");
|
32168
32402
|
init_FullPageProgress();
|
@@ -32172,21 +32406,18 @@ var init_VideoStreamingSection = __esm({
|
|
32172
32406
|
init_PDFView();
|
32173
32407
|
init_SidePane();
|
32174
32408
|
init_WaitingView();
|
32175
|
-
init_WhiteboardView();
|
32176
32409
|
init_useUISettings();
|
32177
32410
|
init_useCloseScreenshareWhiteboard();
|
32178
32411
|
init_hooks();
|
32179
|
-
HLSView2 =
|
32412
|
+
HLSView2 = import_react197.default.lazy(() => Promise.resolve().then(() => (init_HLSView(), HLSView_exports)));
|
32180
32413
|
VideoStreamingSection = ({
|
32181
32414
|
screenType,
|
32182
32415
|
elements,
|
32183
32416
|
hideControls = false
|
32184
32417
|
}) => {
|
32185
|
-
var _a8, _b7
|
32418
|
+
var _a8, _b7;
|
32186
32419
|
const localPeerRole = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectLocalPeerRoleName);
|
32187
32420
|
const isConnected = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectIsConnectedToRoom);
|
32188
|
-
const peerSharing = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectPeerScreenSharing);
|
32189
|
-
const isWhiteboardOpen = (_a8 = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectWhiteboard)) == null ? void 0 : _a8.open;
|
32190
32421
|
const hmsActions = (0, import_react_sdk98.useHMSActions)();
|
32191
32422
|
const waitingViewerRole = useWaitingViewerRole();
|
32192
32423
|
const urlToIframe = useUrlToEmbed();
|
@@ -32194,7 +32425,7 @@ var init_VideoStreamingSection = __esm({
|
|
32194
32425
|
const isMobileHLSStream = useMobileHLSStream();
|
32195
32426
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
32196
32427
|
useCloseScreenshareWhiteboard();
|
32197
|
-
(0,
|
32428
|
+
(0, import_react197.useEffect)(() => {
|
32198
32429
|
if (!isConnected) {
|
32199
32430
|
return;
|
32200
32431
|
}
|
@@ -32211,21 +32442,17 @@ var init_VideoStreamingSection = __esm({
|
|
32211
32442
|
}
|
32212
32443
|
let ViewComponent;
|
32213
32444
|
if (screenType === "hls_live_streaming") {
|
32214
|
-
ViewComponent = /* @__PURE__ */
|
32445
|
+
ViewComponent = /* @__PURE__ */ import_react197.default.createElement(HLSView2, null);
|
32215
32446
|
} else if (localPeerRole === waitingViewerRole) {
|
32216
|
-
ViewComponent = /* @__PURE__ */
|
32447
|
+
ViewComponent = /* @__PURE__ */ import_react197.default.createElement(WaitingView, null);
|
32217
32448
|
} else if (pdfAnnotatorActive) {
|
32218
|
-
ViewComponent = /* @__PURE__ */
|
32449
|
+
ViewComponent = /* @__PURE__ */ import_react197.default.createElement(PDFView, null);
|
32219
32450
|
} else if (urlToIframe) {
|
32220
|
-
ViewComponent = /* @__PURE__ */
|
32221
|
-
} else if (peerSharing) {
|
32222
|
-
ViewComponent = /* @__PURE__ */ import_react196.default.createElement(GridLayout, __spreadValues({}, (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid));
|
32223
|
-
} else if (isWhiteboardOpen) {
|
32224
|
-
ViewComponent = /* @__PURE__ */ import_react196.default.createElement(WhiteboardView, null);
|
32451
|
+
ViewComponent = /* @__PURE__ */ import_react197.default.createElement(EmbedView, null);
|
32225
32452
|
} else {
|
32226
|
-
ViewComponent = /* @__PURE__ */
|
32453
|
+
ViewComponent = /* @__PURE__ */ import_react197.default.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
|
32227
32454
|
}
|
32228
|
-
return /* @__PURE__ */
|
32455
|
+
return /* @__PURE__ */ import_react197.default.createElement(import_react197.Suspense, { fallback: /* @__PURE__ */ import_react197.default.createElement(FullPageProgress_default, null) }, /* @__PURE__ */ import_react197.default.createElement(
|
32229
32456
|
Flex,
|
32230
32457
|
{
|
32231
32458
|
css: {
|
@@ -32236,7 +32463,7 @@ var init_VideoStreamingSection = __esm({
|
|
32236
32463
|
direction: (0, import_ts_pattern12.match)({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
|
32237
32464
|
},
|
32238
32465
|
ViewComponent,
|
32239
|
-
/* @__PURE__ */
|
32466
|
+
/* @__PURE__ */ import_react197.default.createElement(
|
32240
32467
|
Box,
|
32241
32468
|
{
|
32242
32469
|
css: {
|
@@ -32248,11 +32475,11 @@ var init_VideoStreamingSection = __esm({
|
|
32248
32475
|
overflowY: "clip"
|
32249
32476
|
}
|
32250
32477
|
},
|
32251
|
-
/* @__PURE__ */
|
32478
|
+
/* @__PURE__ */ import_react197.default.createElement(
|
32252
32479
|
SidePane_default,
|
32253
32480
|
{
|
32254
32481
|
screenType,
|
32255
|
-
tileProps: (
|
32482
|
+
tileProps: (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid,
|
32256
32483
|
hideControls
|
32257
32484
|
}
|
32258
32485
|
)
|
@@ -32263,14 +32490,14 @@ var init_VideoStreamingSection = __esm({
|
|
32263
32490
|
});
|
32264
32491
|
|
32265
32492
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
32266
|
-
var
|
32493
|
+
var import_react198, import_react_use45, import_react_icons95, RoomDetailsHeader;
|
32267
32494
|
var init_RoomDetailsHeader = __esm({
|
32268
32495
|
"src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
|
32269
32496
|
"use strict";
|
32270
32497
|
init_define_process_env();
|
32271
|
-
|
32272
|
-
|
32273
|
-
|
32498
|
+
import_react198 = __toESM(require("react"));
|
32499
|
+
import_react_use45 = require("react-use");
|
32500
|
+
import_react_icons95 = require("@100mslive/react-icons");
|
32274
32501
|
init_Layout();
|
32275
32502
|
init_Text2();
|
32276
32503
|
init_Theme();
|
@@ -32280,34 +32507,34 @@ var init_RoomDetailsHeader = __esm({
|
|
32280
32507
|
init_constants();
|
32281
32508
|
RoomDetailsHeader = () => {
|
32282
32509
|
const { title, description } = useRoomLayoutHeader();
|
32283
|
-
const isMobile = (0,
|
32510
|
+
const isMobile = (0, import_react_use45.useMedia)(config.media.md);
|
32284
32511
|
const clipLength = 30;
|
32285
32512
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
32286
32513
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
32287
32514
|
if (!title && !description || isMobile && !title) {
|
32288
32515
|
return null;
|
32289
32516
|
}
|
32290
|
-
return /* @__PURE__ */
|
32517
|
+
return /* @__PURE__ */ import_react198.default.createElement(Flex, { direction: isMobile ? "row" : "column", css: { ml: "$8", alignItems: isMobile ? "center" : "start" } }, /* @__PURE__ */ import_react198.default.createElement(Text, { variant: "sm", css: { c: "$on_surface_high", fontWeight: "$semiBold" } }, title), !isMobile && /* @__PURE__ */ import_react198.default.createElement(Flex, { align: "end", css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react198.default.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium" } }, description.slice(0, clipLength)), description.length > clipLength ? /* @__PURE__ */ import_react198.default.createElement(
|
32291
32518
|
"span",
|
32292
32519
|
{
|
32293
32520
|
style: { fontWeight: "600", fontSize: "12px", cursor: "pointer", lineHeight: "1rem" },
|
32294
32521
|
onClick: toggleDetailsPane
|
32295
32522
|
},
|
32296
32523
|
"\xA0...more"
|
32297
|
-
) : null), isMobile && description ? /* @__PURE__ */
|
32524
|
+
) : null), isMobile && description ? /* @__PURE__ */ import_react198.default.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ import_react198.default.createElement(import_react_icons95.ChevronRightIcon, { height: 16, width: 16, onClick: toggleDetailsSheet })) : null);
|
32298
32525
|
};
|
32299
32526
|
}
|
32300
32527
|
});
|
32301
32528
|
|
32302
32529
|
// src/Prebuilt/components/Header/common.jsx
|
32303
|
-
var
|
32530
|
+
var import_react199, import_react_sdk99, import_react_icons96, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
|
32304
32531
|
var init_common2 = __esm({
|
32305
32532
|
"src/Prebuilt/components/Header/common.jsx"() {
|
32306
32533
|
"use strict";
|
32307
32534
|
init_define_process_env();
|
32308
|
-
|
32535
|
+
import_react199 = __toESM(require("react"));
|
32309
32536
|
import_react_sdk99 = require("@100mslive/react-sdk");
|
32310
|
-
|
32537
|
+
import_react_icons96 = require("@100mslive/react-icons");
|
32311
32538
|
init_Divider2();
|
32312
32539
|
init_Label2();
|
32313
32540
|
init_Layout();
|
@@ -32325,7 +32552,7 @@ var init_common2 = __esm({
|
|
32325
32552
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
32326
32553
|
return null;
|
32327
32554
|
}
|
32328
|
-
return /* @__PURE__ */
|
32555
|
+
return /* @__PURE__ */ import_react199.default.createElement(Box, null, /* @__PURE__ */ import_react199.default.createElement(
|
32329
32556
|
IconButton_default,
|
32330
32557
|
{
|
32331
32558
|
disabled: !isVideoOn,
|
@@ -32340,7 +32567,7 @@ var init_common2 = __esm({
|
|
32340
32567
|
}
|
32341
32568
|
})
|
32342
32569
|
},
|
32343
|
-
/* @__PURE__ */
|
32570
|
+
/* @__PURE__ */ import_react199.default.createElement(import_react_icons96.CameraFlipIcon, null)
|
32344
32571
|
));
|
32345
32572
|
};
|
32346
32573
|
AudioActions = () => {
|
@@ -32359,13 +32586,13 @@ var init_common2 = __esm({
|
|
32359
32586
|
if (!audioFiltered) {
|
32360
32587
|
return null;
|
32361
32588
|
}
|
32362
|
-
let AudioIcon = /* @__PURE__ */
|
32589
|
+
let AudioIcon = /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.SpeakerIcon, null);
|
32363
32590
|
if (currentSelection && currentSelection.label.toLowerCase().includes("bluetooth")) {
|
32364
|
-
AudioIcon = /* @__PURE__ */
|
32591
|
+
AudioIcon = /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.BluetoothIcon, null);
|
32365
32592
|
} else if (currentSelection && currentSelection.label.toLowerCase().includes("wired")) {
|
32366
|
-
AudioIcon = /* @__PURE__ */
|
32593
|
+
AudioIcon = /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.HeadphonesIcon, null);
|
32367
32594
|
}
|
32368
|
-
return /* @__PURE__ */
|
32595
|
+
return /* @__PURE__ */ import_react199.default.createElement(
|
32369
32596
|
AudioSelectionSheet,
|
32370
32597
|
{
|
32371
32598
|
audioDevices: availableAudioDevices,
|
@@ -32384,19 +32611,19 @@ var init_common2 = __esm({
|
|
32384
32611
|
}
|
32385
32612
|
})
|
32386
32613
|
},
|
32387
|
-
/* @__PURE__ */
|
32614
|
+
/* @__PURE__ */ import_react199.default.createElement(
|
32388
32615
|
Box,
|
32389
32616
|
{
|
32390
32617
|
onClick: () => __async(void 0, null, function* () {
|
32391
32618
|
yield hmsActions.refreshDevices();
|
32392
32619
|
})
|
32393
32620
|
},
|
32394
|
-
/* @__PURE__ */
|
32621
|
+
/* @__PURE__ */ import_react199.default.createElement(IconButton_default, null, AudioIcon, " ")
|
32395
32622
|
)
|
32396
32623
|
);
|
32397
32624
|
};
|
32398
32625
|
AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {
|
32399
|
-
return /* @__PURE__ */
|
32626
|
+
return /* @__PURE__ */ import_react199.default.createElement(Sheet.Root, null, /* @__PURE__ */ import_react199.default.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ import_react199.default.createElement(Sheet.Content, null, /* @__PURE__ */ import_react199.default.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ import_react199.default.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ import_react199.default.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ import_react199.default.createElement(Sheet.Close, null, /* @__PURE__ */ import_react199.default.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.CrossIcon, null))))), /* @__PURE__ */ import_react199.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react199.default.createElement(
|
32400
32627
|
Flex,
|
32401
32628
|
{
|
32402
32629
|
direction: "column",
|
@@ -32407,7 +32634,7 @@ var init_common2 = __esm({
|
|
32407
32634
|
}
|
32408
32635
|
},
|
32409
32636
|
audioDevices.map((audioDevice) => {
|
32410
|
-
return /* @__PURE__ */
|
32637
|
+
return /* @__PURE__ */ import_react199.default.createElement(
|
32411
32638
|
SelectWithLabel,
|
32412
32639
|
{
|
32413
32640
|
key: audioDevice.deviceId,
|
@@ -32420,8 +32647,8 @@ var init_common2 = __esm({
|
|
32420
32647
|
})
|
32421
32648
|
)));
|
32422
32649
|
};
|
32423
|
-
SelectWithLabel = ({ label, icon = /* @__PURE__ */
|
32424
|
-
return /* @__PURE__ */
|
32650
|
+
SelectWithLabel = ({ label, icon = /* @__PURE__ */ import_react199.default.createElement(import_react199.default.Fragment, null), checked, id, onChange }) => {
|
32651
|
+
return /* @__PURE__ */ import_react199.default.createElement(
|
32425
32652
|
Flex,
|
32426
32653
|
{
|
32427
32654
|
align: "center",
|
@@ -32433,7 +32660,7 @@ var init_common2 = __esm({
|
|
32433
32660
|
},
|
32434
32661
|
onClick: onChange
|
32435
32662
|
},
|
32436
|
-
/* @__PURE__ */
|
32663
|
+
/* @__PURE__ */ import_react199.default.createElement(
|
32437
32664
|
Label3,
|
32438
32665
|
{
|
32439
32666
|
htmlFor: id,
|
@@ -32451,20 +32678,20 @@ var init_common2 = __esm({
|
|
32451
32678
|
icon,
|
32452
32679
|
label
|
32453
32680
|
),
|
32454
|
-
checked && /* @__PURE__ */
|
32681
|
+
checked && /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.CheckIcon, { width: 24, height: 24 })
|
32455
32682
|
);
|
32456
32683
|
};
|
32457
32684
|
}
|
32458
32685
|
});
|
32459
32686
|
|
32460
32687
|
// src/Prebuilt/components/Header/Header.tsx
|
32461
|
-
var
|
32688
|
+
var import_react200, import_react_use46, import_react_sdk100, Header2;
|
32462
32689
|
var init_Header = __esm({
|
32463
32690
|
"src/Prebuilt/components/Header/Header.tsx"() {
|
32464
32691
|
"use strict";
|
32465
32692
|
init_define_process_env();
|
32466
|
-
|
32467
|
-
|
32693
|
+
import_react200 = __toESM(require("react"));
|
32694
|
+
import_react_use46 = require("react-use");
|
32468
32695
|
import_react_sdk100 = require("@100mslive/react-sdk");
|
32469
32696
|
init_src();
|
32470
32697
|
init_HeaderComponents();
|
@@ -32473,11 +32700,11 @@ var init_Header = __esm({
|
|
32473
32700
|
init_common2();
|
32474
32701
|
Header2 = () => {
|
32475
32702
|
const roomState = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectRoomState);
|
32476
|
-
const isMobile = (0,
|
32703
|
+
const isMobile = (0, import_react_use46.useMedia)(config.media.md);
|
32477
32704
|
if (roomState !== import_react_sdk100.HMSRoomState.Connected) {
|
32478
|
-
return /* @__PURE__ */
|
32705
|
+
return /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null);
|
32479
32706
|
}
|
32480
|
-
return /* @__PURE__ */
|
32707
|
+
return /* @__PURE__ */ import_react200.default.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ import_react200.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ import_react200.default.createElement(Logo, null), /* @__PURE__ */ import_react200.default.createElement(RoomDetailsHeader, null), /* @__PURE__ */ import_react200.default.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ import_react200.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react200.default.createElement(LiveStatus, null), /* @__PURE__ */ import_react200.default.createElement(RecordingStatus, null), /* @__PURE__ */ import_react200.default.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ import_react200.default.createElement(
|
32481
32708
|
Flex,
|
32482
32709
|
{
|
32483
32710
|
align: "center",
|
@@ -32487,8 +32714,8 @@ var init_Header = __esm({
|
|
32487
32714
|
gap: "$4"
|
32488
32715
|
}
|
32489
32716
|
},
|
32490
|
-
/* @__PURE__ */
|
32491
|
-
isMobile ? /* @__PURE__ */
|
32717
|
+
/* @__PURE__ */ import_react200.default.createElement(StreamActions, null),
|
32718
|
+
isMobile ? /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null, /* @__PURE__ */ import_react200.default.createElement(CamaraFlipActions, null), /* @__PURE__ */ import_react200.default.createElement(AudioActions, null)) : null
|
32492
32719
|
));
|
32493
32720
|
};
|
32494
32721
|
}
|
@@ -32504,18 +32731,18 @@ var init_Header2 = __esm({
|
|
32504
32731
|
});
|
32505
32732
|
|
32506
32733
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
32507
|
-
var
|
32734
|
+
var import_react201, import_react_sdk101, PreviousRoleInMetadata;
|
32508
32735
|
var init_PreviousRoleInMetadata = __esm({
|
32509
32736
|
"src/Prebuilt/components/PreviousRoleInMetadata.tsx"() {
|
32510
32737
|
"use strict";
|
32511
32738
|
init_define_process_env();
|
32512
|
-
|
32739
|
+
import_react201 = require("react");
|
32513
32740
|
import_react_sdk101 = require("@100mslive/react-sdk");
|
32514
32741
|
init_useMetadata();
|
32515
32742
|
PreviousRoleInMetadata = () => {
|
32516
32743
|
const vanillaStore = (0, import_react_sdk101.useHMSVanillaStore)();
|
32517
32744
|
const { updateMetaData } = useMyMetadata();
|
32518
|
-
(0,
|
32745
|
+
(0, import_react201.useEffect)(() => {
|
32519
32746
|
let previousRole = vanillaStore.getState(import_react_sdk101.selectLocalPeerRoleName);
|
32520
32747
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
32521
32748
|
if (previousRole !== currentRole && currentRole) {
|
@@ -32531,12 +32758,12 @@ var init_PreviousRoleInMetadata = __esm({
|
|
32531
32758
|
});
|
32532
32759
|
|
32533
32760
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
32534
|
-
var
|
32761
|
+
var import_react202, import_uuid12, import_react_sdk102, ConferenceScreen;
|
32535
32762
|
var init_ConferenceScreen = __esm({
|
32536
32763
|
"src/Prebuilt/components/ConferenceScreen.tsx"() {
|
32537
32764
|
"use strict";
|
32538
32765
|
init_define_process_env();
|
32539
|
-
|
32766
|
+
import_react202 = __toESM(require("react"));
|
32540
32767
|
import_uuid12 = require("uuid");
|
32541
32768
|
import_react_sdk102 = require("@100mslive/react-sdk");
|
32542
32769
|
init_Footer3();
|
@@ -32565,16 +32792,16 @@ var init_ConferenceScreen = __esm({
|
|
32565
32792
|
const roomState = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectRoomState);
|
32566
32793
|
const isConnectedToRoom = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
|
32567
32794
|
const hmsActions = (0, import_react_sdk102.useHMSActions)();
|
32568
|
-
const [hideControls, setHideControls] = (0,
|
32795
|
+
const [hideControls, setHideControls] = (0, import_react202.useState)(false);
|
32569
32796
|
const dropdownList = (0, import_react_sdk102.useHMSStore)((0, import_react_sdk102.selectAppData)(APP_DATA.dropdownList));
|
32570
32797
|
const authTokenInAppData = useAuthToken();
|
32571
|
-
const headerRef = (0,
|
32572
|
-
const footerRef = (0,
|
32798
|
+
const headerRef = (0, import_react202.useRef)(null);
|
32799
|
+
const footerRef = (0, import_react202.useRef)(null);
|
32573
32800
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
32574
|
-
const dropdownListRef = (0,
|
32801
|
+
const dropdownListRef = (0, import_react202.useRef)();
|
32575
32802
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
32576
32803
|
const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
|
32577
|
-
const autoRoomJoined = (0,
|
32804
|
+
const autoRoomJoined = (0, import_react202.useRef)(isPreviewScreenEnabled);
|
32578
32805
|
const isMobileHLSStream = useMobileHLSStream();
|
32579
32806
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
32580
32807
|
const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
|
@@ -32584,7 +32811,7 @@ var init_ConferenceScreen = __esm({
|
|
32584
32811
|
setHideControls((value) => !value);
|
32585
32812
|
}
|
32586
32813
|
};
|
32587
|
-
(0,
|
32814
|
+
(0, import_react202.useEffect)(() => {
|
32588
32815
|
let timeout;
|
32589
32816
|
dropdownListRef.current = dropdownList || [];
|
32590
32817
|
if (dropdownListRef.current && dropdownListRef.current.length === 0) {
|
@@ -32599,7 +32826,7 @@ var init_ConferenceScreen = __esm({
|
|
32599
32826
|
clearTimeout(timeout);
|
32600
32827
|
};
|
32601
32828
|
}, [dropdownList, hideControls, isMobileDevice]);
|
32602
|
-
(0,
|
32829
|
+
(0, import_react202.useEffect)(() => {
|
32603
32830
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk102.HMSRoomState.Connecting && !autoRoomJoined.current) {
|
32604
32831
|
hmsActions.join({
|
32605
32832
|
userName: userName || (0, import_uuid12.v4)(),
|
@@ -32614,17 +32841,17 @@ var init_ConferenceScreen = __esm({
|
|
32614
32841
|
autoRoomJoined.current = true;
|
32615
32842
|
}
|
32616
32843
|
}, [authTokenInAppData, endpoints == null ? void 0 : endpoints.init, hmsActions, isConnectedToRoom, isPreviewScreenEnabled, roomState, userName]);
|
32617
|
-
(0,
|
32844
|
+
(0, import_react202.useEffect)(() => {
|
32618
32845
|
onJoinFunc == null ? void 0 : onJoinFunc();
|
32619
32846
|
return () => {
|
32620
32847
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
32621
32848
|
};
|
32622
32849
|
}, [onJoinFunc]);
|
32623
32850
|
if (!isConnectedToRoom && ![import_react_sdk102.HMSRoomState.Reconnecting, import_react_sdk102.HMSRoomState.Disconnected].includes(roomState)) {
|
32624
|
-
return /* @__PURE__ */
|
32851
|
+
return /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk102.HMSRoomState.Connecting ? "Joining..." : "" });
|
32625
32852
|
}
|
32626
32853
|
const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
|
32627
|
-
return /* @__PURE__ */
|
32854
|
+
return /* @__PURE__ */ import_react202.default.createElement(import_react202.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react202.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react202.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react202.default.createElement(
|
32628
32855
|
Box,
|
32629
32856
|
{
|
32630
32857
|
ref: headerRef,
|
@@ -32638,8 +32865,8 @@ var init_ConferenceScreen = __esm({
|
|
32638
32865
|
},
|
32639
32866
|
"data-testid": "header"
|
32640
32867
|
},
|
32641
|
-
/* @__PURE__ */
|
32642
|
-
), /* @__PURE__ */
|
32868
|
+
/* @__PURE__ */ import_react202.default.createElement(Header2, null)
|
32869
|
+
), /* @__PURE__ */ import_react202.default.createElement(
|
32643
32870
|
Box,
|
32644
32871
|
{
|
32645
32872
|
css: {
|
@@ -32658,7 +32885,7 @@ var init_ConferenceScreen = __esm({
|
|
32658
32885
|
"data-testid": "conferencing",
|
32659
32886
|
onClick: toggleControls
|
32660
32887
|
},
|
32661
|
-
screenProps.elements ? /* @__PURE__ */
|
32888
|
+
screenProps.elements ? /* @__PURE__ */ import_react202.default.createElement(
|
32662
32889
|
VideoStreamingSection,
|
32663
32890
|
{
|
32664
32891
|
screenType: screenProps.screenType,
|
@@ -32666,7 +32893,7 @@ var init_ConferenceScreen = __esm({
|
|
32666
32893
|
hideControls: hideControlsForStreaming
|
32667
32894
|
}
|
32668
32895
|
) : null
|
32669
|
-
), !screenProps.hideSections.includes("footer") && screenProps.elements && !isMwebHLSStream && /* @__PURE__ */
|
32896
|
+
), !screenProps.hideSections.includes("footer") && screenProps.elements && !isMwebHLSStream && /* @__PURE__ */ import_react202.default.createElement(
|
32670
32897
|
Box,
|
32671
32898
|
{
|
32672
32899
|
ref: footerRef,
|
@@ -32683,8 +32910,8 @@ var init_ConferenceScreen = __esm({
|
|
32683
32910
|
},
|
32684
32911
|
"data-testid": "footer"
|
32685
32912
|
},
|
32686
|
-
/* @__PURE__ */
|
32687
|
-
), isMwebHLSStream && !showChat && /* @__PURE__ */
|
32913
|
+
/* @__PURE__ */ import_react202.default.createElement(Footer2, { elements: screenProps.elements, screenType: screenProps.screenType })
|
32914
|
+
), isMwebHLSStream && !showChat && /* @__PURE__ */ import_react202.default.createElement(
|
32688
32915
|
Flex,
|
32689
32916
|
{
|
32690
32917
|
css: {
|
@@ -32696,9 +32923,9 @@ var init_ConferenceScreen = __esm({
|
|
32696
32923
|
justify: "end",
|
32697
32924
|
gap: "2"
|
32698
32925
|
},
|
32699
|
-
/* @__PURE__ */
|
32700
|
-
/* @__PURE__ */
|
32701
|
-
/* @__PURE__ */
|
32926
|
+
/* @__PURE__ */ import_react202.default.createElement(RaiseHand, null),
|
32927
|
+
/* @__PURE__ */ import_react202.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
|
32928
|
+
/* @__PURE__ */ import_react202.default.createElement(
|
32702
32929
|
Box,
|
32703
32930
|
{
|
32704
32931
|
css: {
|
@@ -32707,26 +32934,26 @@ var init_ConferenceScreen = __esm({
|
|
32707
32934
|
mb: "$4"
|
32708
32935
|
}
|
32709
32936
|
},
|
32710
|
-
/* @__PURE__ */
|
32937
|
+
/* @__PURE__ */ import_react202.default.createElement(EmojiReaction, null)
|
32711
32938
|
)
|
32712
|
-
), /* @__PURE__ */
|
32939
|
+
), /* @__PURE__ */ import_react202.default.createElement(RoleChangeRequestModal, null), /* @__PURE__ */ import_react202.default.createElement(HLSFailureModal, null), /* @__PURE__ */ import_react202.default.createElement(ActivatedPIP, null), /* @__PURE__ */ import_react202.default.createElement(PreviousRoleInMetadata, null)));
|
32713
32940
|
};
|
32714
32941
|
}
|
32715
32942
|
});
|
32716
32943
|
|
32717
32944
|
// src/Prebuilt/components/ErrorBoundary.jsx
|
32718
|
-
var
|
32945
|
+
var import_react203, import_react_icons97, ErrorBoundary;
|
32719
32946
|
var init_ErrorBoundary = __esm({
|
32720
32947
|
"src/Prebuilt/components/ErrorBoundary.jsx"() {
|
32721
32948
|
"use strict";
|
32722
32949
|
init_define_process_env();
|
32723
|
-
|
32724
|
-
|
32950
|
+
import_react203 = __toESM(require("react"));
|
32951
|
+
import_react_icons97 = require("@100mslive/react-icons");
|
32725
32952
|
init_Button2();
|
32726
32953
|
init_Layout();
|
32727
32954
|
init_Text2();
|
32728
32955
|
init_Tooltip2();
|
32729
|
-
ErrorBoundary = class extends
|
32956
|
+
ErrorBoundary = class extends import_react203.Component {
|
32730
32957
|
constructor(props) {
|
32731
32958
|
super(props);
|
32732
32959
|
this.state = { error: null, errorInfo: null, isErrorCopied: false };
|
@@ -32740,7 +32967,7 @@ var init_ErrorBoundary = __esm({
|
|
32740
32967
|
}
|
32741
32968
|
render() {
|
32742
32969
|
if (this.state.errorInfo) {
|
32743
|
-
return /* @__PURE__ */
|
32970
|
+
return /* @__PURE__ */ import_react203.default.createElement(
|
32744
32971
|
Flex,
|
32745
32972
|
{
|
32746
32973
|
align: "center",
|
@@ -32753,7 +32980,7 @@ var init_ErrorBoundary = __esm({
|
|
32753
32980
|
backgroundColor: "$background_default"
|
32754
32981
|
}
|
32755
32982
|
},
|
32756
|
-
/* @__PURE__ */
|
32983
|
+
/* @__PURE__ */ import_react203.default.createElement(Box, { css: { position: "relative", overflow: "hidden", r: "$3", height: "100%", width: "100%" } }, /* @__PURE__ */ import_react203.default.createElement(
|
32757
32984
|
Flex,
|
32758
32985
|
{
|
32759
32986
|
direction: "column",
|
@@ -32764,8 +32991,8 @@ var init_ErrorBoundary = __esm({
|
|
32764
32991
|
left: 0
|
32765
32992
|
}
|
32766
32993
|
},
|
32767
|
-
/* @__PURE__ */
|
32768
|
-
/* @__PURE__ */
|
32994
|
+
/* @__PURE__ */ import_react203.default.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ import_react203.default.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ import_react203.default.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ import_react203.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_react203.default.createElement("a", { href: "https://discord.com/invite/kGdmszyzq2", target: "_blank", rel: "noreferrer" }, "Discord")),
|
32995
|
+
/* @__PURE__ */ import_react203.default.createElement(Flex, null, /* @__PURE__ */ import_react203.default.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ import_react203.default.createElement(
|
32769
32996
|
Button,
|
32770
32997
|
{
|
32771
32998
|
onClick: () => {
|
@@ -32775,7 +33002,7 @@ var init_ErrorBoundary = __esm({
|
|
32775
33002
|
"data-testid": "join_again_btn"
|
32776
33003
|
},
|
32777
33004
|
"Reload"
|
32778
|
-
)), /* @__PURE__ */
|
33005
|
+
)), /* @__PURE__ */ import_react203.default.createElement(Tooltip, { title: "Copy error details to clipboard" }, /* @__PURE__ */ import_react203.default.createElement(
|
32779
33006
|
Button,
|
32780
33007
|
{
|
32781
33008
|
onClick: () => {
|
@@ -32791,11 +33018,11 @@ var init_ErrorBoundary = __esm({
|
|
32791
33018
|
css: { mx: "$8" },
|
32792
33019
|
"data-testid": "join_again_btn"
|
32793
33020
|
},
|
32794
|
-
/* @__PURE__ */
|
33021
|
+
/* @__PURE__ */ import_react203.default.createElement(import_react_icons97.CopyIcon, null),
|
32795
33022
|
" ",
|
32796
33023
|
this.state.isErrorCopied ? "Copied" : "Copy Details"
|
32797
33024
|
))),
|
32798
|
-
/* @__PURE__ */
|
33025
|
+
/* @__PURE__ */ import_react203.default.createElement("details", { style: { whiteSpace: "pre-wrap", margin: "1.5rem" } }, /* @__PURE__ */ import_react203.default.createElement(Text, null, this.state.error && this.state.error.toString()), /* @__PURE__ */ import_react203.default.createElement("br", null), /* @__PURE__ */ import_react203.default.createElement(Text, null, JSON.stringify(this.state.errorInfo)))
|
32799
33026
|
))
|
32800
33027
|
);
|
32801
33028
|
}
|
@@ -32808,19 +33035,19 @@ var init_ErrorBoundary = __esm({
|
|
32808
33035
|
// src/Prebuilt/services/FeatureFlags.jsx
|
32809
33036
|
function FeatureFlagsInit() {
|
32810
33037
|
const roomId = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectRoomID);
|
32811
|
-
(0,
|
33038
|
+
(0, import_react204.useEffect)(() => {
|
32812
33039
|
if (roomId) {
|
32813
33040
|
FeatureFlags.init(roomId);
|
32814
33041
|
}
|
32815
33042
|
}, [roomId]);
|
32816
33043
|
return null;
|
32817
33044
|
}
|
32818
|
-
var
|
33045
|
+
var import_react204, import_react_sdk103, FeatureFlags;
|
32819
33046
|
var init_FeatureFlags = __esm({
|
32820
33047
|
"src/Prebuilt/services/FeatureFlags.jsx"() {
|
32821
33048
|
"use strict";
|
32822
33049
|
init_define_process_env();
|
32823
|
-
|
33050
|
+
import_react204 = require("react");
|
32824
33051
|
import_react_sdk103 = require("@100mslive/react-sdk");
|
32825
33052
|
FeatureFlags = class {
|
32826
33053
|
static init(roomId) {
|
@@ -32849,20 +33076,20 @@ var init_FeatureFlags = __esm({
|
|
32849
33076
|
});
|
32850
33077
|
|
32851
33078
|
// src/Prebuilt/components/init/Init.jsx
|
32852
|
-
var
|
33079
|
+
var import_react205, Init;
|
32853
33080
|
var init_Init = __esm({
|
32854
33081
|
"src/Prebuilt/components/init/Init.jsx"() {
|
32855
33082
|
"use strict";
|
32856
33083
|
init_define_process_env();
|
32857
|
-
|
33084
|
+
import_react205 = __toESM(require("react"));
|
32858
33085
|
init_src();
|
32859
33086
|
init_FeatureFlags();
|
32860
33087
|
Init = () => {
|
32861
33088
|
const { toggleTheme } = useTheme();
|
32862
|
-
(0,
|
33089
|
+
(0, import_react205.useEffect)(() => {
|
32863
33090
|
window.toggleUiTheme = toggleTheme;
|
32864
33091
|
}, [toggleTheme]);
|
32865
|
-
(0,
|
33092
|
+
(0, import_react205.useEffect)(() => {
|
32866
33093
|
function resetHeight() {
|
32867
33094
|
var _a8;
|
32868
33095
|
document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
|
@@ -32873,18 +33100,18 @@ var init_Init = __esm({
|
|
32873
33100
|
window.removeEventListener("resize", resetHeight);
|
32874
33101
|
};
|
32875
33102
|
}, []);
|
32876
|
-
return /* @__PURE__ */
|
33103
|
+
return /* @__PURE__ */ import_react205.default.createElement(FeatureFlagsInit, null);
|
32877
33104
|
};
|
32878
33105
|
}
|
32879
33106
|
});
|
32880
33107
|
|
32881
33108
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
32882
|
-
var
|
33109
|
+
var import_react206, import_react_sdk104, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
|
32883
33110
|
var init_KeyboardInputManager = __esm({
|
32884
33111
|
"src/Prebuilt/components/Input/KeyboardInputManager.js"() {
|
32885
33112
|
"use strict";
|
32886
33113
|
init_define_process_env();
|
32887
|
-
|
33114
|
+
import_react206 = require("react");
|
32888
33115
|
import_react_sdk104 = require("@100mslive/react-sdk");
|
32889
33116
|
init_constants();
|
32890
33117
|
isEvenListenersAttached = false;
|
@@ -32973,7 +33200,7 @@ var init_KeyboardInputManager = __esm({
|
|
32973
33200
|
KeyboardHandler = () => {
|
32974
33201
|
const store = (0, import_react_sdk104.useHMSVanillaStore)();
|
32975
33202
|
const actions = (0, import_react_sdk104.useHMSActions)();
|
32976
|
-
(0,
|
33203
|
+
(0, import_react206.useEffect)(() => {
|
32977
33204
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
32978
33205
|
keyboardManager.bindAllShortcuts();
|
32979
33206
|
return keyboardManager.unbindAllShortcuts;
|
@@ -32984,18 +33211,18 @@ var init_KeyboardInputManager = __esm({
|
|
32984
33211
|
});
|
32985
33212
|
|
32986
33213
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
32987
|
-
var
|
33214
|
+
var import_react207, useRedirectToLeave;
|
32988
33215
|
var init_useRedirectToLeave = __esm({
|
32989
33216
|
"src/Prebuilt/components/hooks/useRedirectToLeave.tsx"() {
|
32990
33217
|
"use strict";
|
32991
33218
|
init_define_process_env();
|
32992
|
-
|
33219
|
+
import_react207 = require("react");
|
32993
33220
|
init_AppContext();
|
32994
33221
|
init_PIPManager();
|
32995
33222
|
init_ToastManager();
|
32996
33223
|
useRedirectToLeave = () => {
|
32997
33224
|
const { onLeave } = useHMSPrebuiltContext();
|
32998
|
-
const redirect = (0,
|
33225
|
+
const redirect = (0, import_react207.useCallback)(
|
32999
33226
|
(timeout = 0) => {
|
33000
33227
|
setTimeout(() => {
|
33001
33228
|
PictureInPicture.stop().catch(() => console.error("stopping pip"));
|
@@ -33011,26 +33238,26 @@ var init_useRedirectToLeave = __esm({
|
|
33011
33238
|
});
|
33012
33239
|
|
33013
33240
|
// src/Prebuilt/AppStateContext.tsx
|
33014
|
-
var
|
33241
|
+
var import_react208, import_react_use47, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
|
33015
33242
|
var init_AppStateContext = __esm({
|
33016
33243
|
"src/Prebuilt/AppStateContext.tsx"() {
|
33017
33244
|
"use strict";
|
33018
33245
|
init_define_process_env();
|
33019
|
-
|
33020
|
-
|
33246
|
+
import_react208 = __toESM(require("react"));
|
33247
|
+
import_react_use47 = require("react-use");
|
33021
33248
|
import_react_sdk105 = require("@100mslive/react-sdk");
|
33022
33249
|
init_VBHandler();
|
33023
33250
|
init_roomLayoutProvider();
|
33024
33251
|
init_useRedirectToLeave();
|
33025
33252
|
init_useRoomLayoutScreen();
|
33026
|
-
AppStateContext =
|
33253
|
+
AppStateContext = import_react208.default.createContext({
|
33027
33254
|
rejoin: () => {
|
33028
33255
|
console.log("Rejoin");
|
33029
33256
|
}
|
33030
33257
|
});
|
33031
33258
|
AppStateContext.displayName = "AppStateContext";
|
33032
33259
|
useHMSAppStateContext = () => {
|
33033
|
-
const context = (0,
|
33260
|
+
const context = (0, import_react208.useContext)(AppStateContext);
|
33034
33261
|
if (!context) {
|
33035
33262
|
throw Error("Make sure AppStateContext.Provider is present at the top level of your application");
|
33036
33263
|
}
|
@@ -33038,16 +33265,16 @@ var init_AppStateContext = __esm({
|
|
33038
33265
|
};
|
33039
33266
|
useAppStateManager = () => {
|
33040
33267
|
const roomLayout = useRoomLayout();
|
33041
|
-
const [activeState, setActiveState] =
|
33268
|
+
const [activeState, setActiveState] = import_react208.default.useState();
|
33042
33269
|
const roomState = (0, import_react_sdk105.useHMSStore)(import_react_sdk105.selectRoomState);
|
33043
|
-
const prevRoomState = (0,
|
33270
|
+
const prevRoomState = (0, import_react_use47.usePreviousDistinct)(roomState);
|
33044
33271
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
33045
33272
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
33046
33273
|
const { redirectToLeave } = useRedirectToLeave();
|
33047
33274
|
const rejoin = () => {
|
33048
33275
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
33049
33276
|
};
|
33050
|
-
(0,
|
33277
|
+
(0, import_react208.useEffect)(() => {
|
33051
33278
|
if (!roomLayout) {
|
33052
33279
|
return;
|
33053
33280
|
}
|
@@ -33068,13 +33295,13 @@ var init_AppStateContext = __esm({
|
|
33068
33295
|
});
|
33069
33296
|
|
33070
33297
|
// src/Prebuilt/components/LeaveScreen.tsx
|
33071
|
-
var
|
33298
|
+
var import_react209, import_react_icons98, LeaveScreen;
|
33072
33299
|
var init_LeaveScreen = __esm({
|
33073
33300
|
"src/Prebuilt/components/LeaveScreen.tsx"() {
|
33074
33301
|
"use strict";
|
33075
33302
|
init_define_process_env();
|
33076
|
-
|
33077
|
-
|
33303
|
+
import_react209 = __toESM(require("react"));
|
33304
|
+
import_react_icons98 = require("@100mslive/react-icons");
|
33078
33305
|
init_ToastManager();
|
33079
33306
|
init_Button2();
|
33080
33307
|
init_Layout();
|
@@ -33086,7 +33313,7 @@ var init_LeaveScreen = __esm({
|
|
33086
33313
|
LeaveScreen = () => {
|
33087
33314
|
const { rejoin } = useHMSAppStateContext();
|
33088
33315
|
const [previewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW, defaultPreviewPreference);
|
33089
|
-
return /* @__PURE__ */
|
33316
|
+
return /* @__PURE__ */ import_react209.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react209.default.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ import_react209.default.createElement(Header2, null)), /* @__PURE__ */ import_react209.default.createElement(
|
33090
33317
|
Flex,
|
33091
33318
|
{
|
33092
33319
|
justify: "center",
|
@@ -33094,9 +33321,9 @@ var init_LeaveScreen = __esm({
|
|
33094
33321
|
align: "center",
|
33095
33322
|
css: { bg: "$background_dim", flex: "1 1 0", position: "relative" }
|
33096
33323
|
},
|
33097
|
-
/* @__PURE__ */
|
33098
|
-
/* @__PURE__ */
|
33099
|
-
/* @__PURE__ */
|
33324
|
+
/* @__PURE__ */ import_react209.default.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
|
33325
|
+
/* @__PURE__ */ import_react209.default.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the room"),
|
33326
|
+
/* @__PURE__ */ import_react209.default.createElement(
|
33100
33327
|
Text,
|
33101
33328
|
{
|
33102
33329
|
variant: "body1",
|
@@ -33108,10 +33335,10 @@ var init_LeaveScreen = __esm({
|
|
33108
33335
|
}
|
33109
33336
|
},
|
33110
33337
|
"Have a nice day",
|
33111
|
-
previewPreference.name && /* @__PURE__ */
|
33338
|
+
previewPreference.name && /* @__PURE__ */ import_react209.default.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
|
33112
33339
|
"!"
|
33113
33340
|
),
|
33114
|
-
/* @__PURE__ */
|
33341
|
+
/* @__PURE__ */ import_react209.default.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ import_react209.default.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ import_react209.default.createElement(
|
33115
33342
|
Button,
|
33116
33343
|
{
|
33117
33344
|
onClick: () => {
|
@@ -33120,8 +33347,8 @@ var init_LeaveScreen = __esm({
|
|
33120
33347
|
},
|
33121
33348
|
"data-testid": "join_again_btn"
|
33122
33349
|
},
|
33123
|
-
/* @__PURE__ */
|
33124
|
-
/* @__PURE__ */
|
33350
|
+
/* @__PURE__ */ import_react209.default.createElement(import_react_icons98.ExitIcon, null),
|
33351
|
+
/* @__PURE__ */ import_react209.default.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
|
33125
33352
|
))
|
33126
33353
|
));
|
33127
33354
|
};
|
@@ -33129,15 +33356,15 @@ var init_LeaveScreen = __esm({
|
|
33129
33356
|
});
|
33130
33357
|
|
33131
33358
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
33132
|
-
var
|
33359
|
+
var import_react210, import_react_use48, import_ts_pattern13, import_react_icons99, MwebLandscapePrompt;
|
33133
33360
|
var init_MwebLandscapePrompt = __esm({
|
33134
33361
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
|
33135
33362
|
"use strict";
|
33136
33363
|
init_define_process_env();
|
33137
|
-
|
33138
|
-
|
33364
|
+
import_react210 = __toESM(require("react"));
|
33365
|
+
import_react_use48 = require("react-use");
|
33139
33366
|
import_ts_pattern13 = require("ts-pattern");
|
33140
|
-
|
33367
|
+
import_react_icons99 = require("@100mslive/react-icons");
|
33141
33368
|
init_Button2();
|
33142
33369
|
init_Layout();
|
33143
33370
|
init_Modal();
|
@@ -33146,10 +33373,10 @@ var init_MwebLandscapePrompt = __esm({
|
|
33146
33373
|
init_hooks();
|
33147
33374
|
init_utils2();
|
33148
33375
|
MwebLandscapePrompt = () => {
|
33149
|
-
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0,
|
33150
|
-
const isLandscape = (0,
|
33376
|
+
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react210.useState)(false);
|
33377
|
+
const isLandscape = (0, import_react_use48.useMedia)(config.media.ls);
|
33151
33378
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
33152
|
-
(0,
|
33379
|
+
(0, import_react210.useEffect)(() => {
|
33153
33380
|
var _a8;
|
33154
33381
|
if (!isMobileUserAgent) {
|
33155
33382
|
setShowMwebLandscapePrompt(false);
|
@@ -33175,7 +33402,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
33175
33402
|
if (isLandscapeHLSStream) {
|
33176
33403
|
return null;
|
33177
33404
|
}
|
33178
|
-
return /* @__PURE__ */
|
33405
|
+
return /* @__PURE__ */ import_react210.default.createElement(Dialog.Root, { open: showMwebLandscapePrompt, onOpenChange: setShowMwebLandscapePrompt }, /* @__PURE__ */ import_react210.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react210.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react210.default.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ import_react210.default.createElement(Box, null, /* @__PURE__ */ import_react210.default.createElement(
|
33179
33406
|
Flex,
|
33180
33407
|
{
|
33181
33408
|
css: {
|
@@ -33184,9 +33411,9 @@ var init_MwebLandscapePrompt = __esm({
|
|
33184
33411
|
alignItems: "center"
|
33185
33412
|
}
|
33186
33413
|
},
|
33187
|
-
/* @__PURE__ */
|
33188
|
-
/* @__PURE__ */
|
33189
|
-
), /* @__PURE__ */
|
33414
|
+
/* @__PURE__ */ import_react210.default.createElement(import_react_icons99.RefreshIcon, { style: { marginRight: "0.5rem" } }),
|
33415
|
+
/* @__PURE__ */ import_react210.default.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
|
33416
|
+
), /* @__PURE__ */ import_react210.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_react210.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react210.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setShowMwebLandscapePrompt(false) }, "Continue anyway"))))));
|
33190
33417
|
};
|
33191
33418
|
}
|
33192
33419
|
});
|
@@ -33194,7 +33421,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
33194
33421
|
// src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
|
33195
33422
|
function AutoplayBlockedModal() {
|
33196
33423
|
const { error, resetError, unblockAudio } = (0, import_react_sdk106.useAutoplayError)();
|
33197
|
-
return /* @__PURE__ */
|
33424
|
+
return /* @__PURE__ */ import_react211.default.createElement(
|
33198
33425
|
Dialog.Root,
|
33199
33426
|
{
|
33200
33427
|
open: !!error,
|
@@ -33205,7 +33432,7 @@ function AutoplayBlockedModal() {
|
|
33205
33432
|
resetError();
|
33206
33433
|
}
|
33207
33434
|
},
|
33208
|
-
/* @__PURE__ */
|
33435
|
+
/* @__PURE__ */ import_react211.default.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ import_react211.default.createElement(DialogRow, null, /* @__PURE__ */ import_react211.default.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ import_react211.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react211.default.createElement(
|
33209
33436
|
Button,
|
33210
33437
|
{
|
33211
33438
|
variant: "primary",
|
@@ -33218,12 +33445,12 @@ function AutoplayBlockedModal() {
|
|
33218
33445
|
)))
|
33219
33446
|
);
|
33220
33447
|
}
|
33221
|
-
var
|
33448
|
+
var import_react211, import_react_sdk106;
|
33222
33449
|
var init_AutoplayBlockedModal = __esm({
|
33223
33450
|
"src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx"() {
|
33224
33451
|
"use strict";
|
33225
33452
|
init_define_process_env();
|
33226
|
-
|
33453
|
+
import_react211 = __toESM(require("react"));
|
33227
33454
|
import_react_sdk106 = require("@100mslive/react-sdk");
|
33228
33455
|
init_src();
|
33229
33456
|
init_DialogContent2();
|
@@ -33231,21 +33458,21 @@ var init_AutoplayBlockedModal = __esm({
|
|
33231
33458
|
});
|
33232
33459
|
|
33233
33460
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
33234
|
-
var
|
33461
|
+
var import_react212, import_uuid13, import_react_sdk107, import_react_icons100, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
|
33235
33462
|
var init_ChatNotifications = __esm({
|
33236
33463
|
"src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
|
33237
33464
|
"use strict";
|
33238
33465
|
init_define_process_env();
|
33239
|
-
|
33466
|
+
import_react212 = __toESM(require("react"));
|
33240
33467
|
import_uuid13 = require("uuid");
|
33241
33468
|
import_react_sdk107 = require("@100mslive/react-sdk");
|
33242
|
-
|
33469
|
+
import_react_icons100 = require("@100mslive/react-icons");
|
33243
33470
|
init_ToastManager();
|
33244
33471
|
NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
33245
33472
|
ChatNotifications = () => {
|
33246
33473
|
const chatState = (0, import_react_sdk107.useHMSStore)((0, import_react_sdk107.selectSessionStore)("chatState" /* CHAT_STATE */));
|
33247
33474
|
const localPeerId = (0, import_react_sdk107.useHMSStore)(import_react_sdk107.selectLocalPeerID);
|
33248
|
-
(0,
|
33475
|
+
(0, import_react212.useEffect)(() => {
|
33249
33476
|
var _a8, _b7;
|
33250
33477
|
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
33251
33478
|
return;
|
@@ -33256,38 +33483,38 @@ var init_ChatNotifications = __esm({
|
|
33256
33483
|
}
|
33257
33484
|
const notification = {
|
33258
33485
|
id: (0, import_uuid13.v4)(),
|
33259
|
-
icon: chatState.enabled ? /* @__PURE__ */
|
33486
|
+
icon: chatState.enabled ? /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.ChatUnreadIcon, null) : /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.ChatIcon, null),
|
33260
33487
|
title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
|
33261
33488
|
};
|
33262
33489
|
ToastManager.addToast(notification);
|
33263
33490
|
}, [chatState, localPeerId]);
|
33264
|
-
return /* @__PURE__ */
|
33491
|
+
return /* @__PURE__ */ import_react212.default.createElement(import_react212.default.Fragment, null);
|
33265
33492
|
};
|
33266
33493
|
}
|
33267
33494
|
});
|
33268
33495
|
|
33269
33496
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
33270
|
-
var
|
33497
|
+
var import_react213, import_react_sdk108, import_react_icons101, ChatAction, HandRaiseAction, ToastConfig;
|
33271
33498
|
var init_ToastConfig = __esm({
|
33272
33499
|
"src/Prebuilt/components/Toast/ToastConfig.jsx"() {
|
33273
33500
|
"use strict";
|
33274
33501
|
init_define_process_env();
|
33275
|
-
|
33502
|
+
import_react213 = __toESM(require("react"));
|
33276
33503
|
import_react_sdk108 = require("@100mslive/react-sdk");
|
33277
|
-
|
33504
|
+
import_react_icons101 = require("@100mslive/react-icons");
|
33278
33505
|
init_Button2();
|
33279
33506
|
init_roomLayoutProvider();
|
33280
33507
|
init_useSidepane();
|
33281
33508
|
init_constants();
|
33282
|
-
ChatAction =
|
33509
|
+
ChatAction = import_react213.default.forwardRef((_2, ref) => {
|
33283
33510
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33284
33511
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
33285
33512
|
if (isChatOpen) {
|
33286
33513
|
return null;
|
33287
33514
|
}
|
33288
|
-
return /* @__PURE__ */
|
33515
|
+
return /* @__PURE__ */ import_react213.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
|
33289
33516
|
});
|
33290
|
-
HandRaiseAction =
|
33517
|
+
HandRaiseAction = import_react213.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
33291
33518
|
var _a8, _b7, _c;
|
33292
33519
|
const hmsActions = (0, import_react_sdk108.useHMSActions)();
|
33293
33520
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
@@ -33300,7 +33527,7 @@ var init_ToastConfig = __esm({
|
|
33300
33527
|
off_stage_roles = [],
|
33301
33528
|
skip_preview_for_role_change = false
|
33302
33529
|
} = ((_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) || {};
|
33303
|
-
const onClickHandler = (0,
|
33530
|
+
const onClickHandler = (0, import_react213.useCallback)(() => __async(void 0, null, function* () {
|
33304
33531
|
if (isSingleHandRaise) {
|
33305
33532
|
hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
33306
33533
|
if (skip_preview_for_role_change) {
|
@@ -33321,7 +33548,7 @@ var init_ToastConfig = __esm({
|
|
33321
33548
|
if (isSingleHandRaise && (!peer || !off_stage_roles.includes(peer.roleName))) {
|
33322
33549
|
return null;
|
33323
33550
|
}
|
33324
|
-
return /* @__PURE__ */
|
33551
|
+
return /* @__PURE__ */ import_react213.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
|
33325
33552
|
});
|
33326
33553
|
ToastConfig = {
|
33327
33554
|
PEER_LIST: {
|
@@ -33330,18 +33557,18 @@ var init_ToastConfig = __esm({
|
|
33330
33557
|
if (notification.data.length === 1) {
|
33331
33558
|
return {
|
33332
33559
|
title: `${(_a8 = notification.data[0]) == null ? void 0 : _a8.name} joined`,
|
33333
|
-
icon: /* @__PURE__ */
|
33560
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
|
33334
33561
|
};
|
33335
33562
|
}
|
33336
33563
|
return {
|
33337
33564
|
title: `${(_b7 = notification.data[notification.data.length - 1]) == null ? void 0 : _b7.name} and ${notification.data.length - 1} others joined`,
|
33338
|
-
icon: /* @__PURE__ */
|
33565
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
|
33339
33566
|
};
|
33340
33567
|
},
|
33341
33568
|
multiple: (notifications) => {
|
33342
33569
|
return {
|
33343
33570
|
title: `${notifications[0].data.name} and ${notifications.length - 1} others joined`,
|
33344
|
-
icon: /* @__PURE__ */
|
33571
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
|
33345
33572
|
};
|
33346
33573
|
}
|
33347
33574
|
},
|
@@ -33350,13 +33577,13 @@ var init_ToastConfig = __esm({
|
|
33350
33577
|
var _a8;
|
33351
33578
|
return {
|
33352
33579
|
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
|
33353
|
-
icon: /* @__PURE__ */
|
33580
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
|
33354
33581
|
};
|
33355
33582
|
},
|
33356
33583
|
multiple: function(notifications) {
|
33357
33584
|
return {
|
33358
33585
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
33359
|
-
icon: /* @__PURE__ */
|
33586
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
|
33360
33587
|
};
|
33361
33588
|
}
|
33362
33589
|
},
|
@@ -33365,13 +33592,13 @@ var init_ToastConfig = __esm({
|
|
33365
33592
|
var _a8;
|
33366
33593
|
return {
|
33367
33594
|
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
|
33368
|
-
icon: /* @__PURE__ */
|
33595
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleRemoveIcon, null)
|
33369
33596
|
};
|
33370
33597
|
},
|
33371
33598
|
multiple: function(notifications) {
|
33372
33599
|
return {
|
33373
33600
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
33374
|
-
icon: /* @__PURE__ */
|
33601
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleRemoveIcon, null)
|
33375
33602
|
};
|
33376
33603
|
}
|
33377
33604
|
},
|
@@ -33380,7 +33607,7 @@ var init_ToastConfig = __esm({
|
|
33380
33607
|
var _a8;
|
33381
33608
|
return {
|
33382
33609
|
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
|
33383
|
-
icon: /* @__PURE__ */
|
33610
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.HandIcon, null)
|
33384
33611
|
};
|
33385
33612
|
},
|
33386
33613
|
multiple: (notifications) => {
|
@@ -33391,7 +33618,7 @@ var init_ToastConfig = __esm({
|
|
33391
33618
|
})).size;
|
33392
33619
|
return {
|
33393
33620
|
title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
|
33394
|
-
icon: /* @__PURE__ */
|
33621
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.HandIcon, null)
|
33395
33622
|
};
|
33396
33623
|
}
|
33397
33624
|
},
|
@@ -33400,8 +33627,8 @@ var init_ToastConfig = __esm({
|
|
33400
33627
|
var _a8, _b7;
|
33401
33628
|
return {
|
33402
33629
|
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
|
33403
|
-
icon: /* @__PURE__ */
|
33404
|
-
action: /* @__PURE__ */
|
33630
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.HandIcon, null),
|
33631
|
+
action: /* @__PURE__ */ import_react213.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
33405
33632
|
};
|
33406
33633
|
},
|
33407
33634
|
multiple: (notifications) => {
|
@@ -33412,8 +33639,8 @@ var init_ToastConfig = __esm({
|
|
33412
33639
|
})).size;
|
33413
33640
|
return {
|
33414
33641
|
title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
|
33415
|
-
icon: /* @__PURE__ */
|
33416
|
-
action: /* @__PURE__ */
|
33642
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.HandIcon, null),
|
33643
|
+
action: /* @__PURE__ */ import_react213.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
33417
33644
|
};
|
33418
33645
|
}
|
33419
33646
|
},
|
@@ -33422,15 +33649,15 @@ var init_ToastConfig = __esm({
|
|
33422
33649
|
var _a8;
|
33423
33650
|
return {
|
33424
33651
|
title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
|
33425
|
-
icon: /* @__PURE__ */
|
33426
|
-
action: /* @__PURE__ */
|
33652
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.ChatUnreadIcon, null),
|
33653
|
+
action: /* @__PURE__ */ import_react213.default.createElement(ChatAction, null)
|
33427
33654
|
};
|
33428
33655
|
},
|
33429
33656
|
multiple: (notifications) => {
|
33430
33657
|
return {
|
33431
33658
|
title: `${notifications.length} new messages`,
|
33432
|
-
icon: /* @__PURE__ */
|
33433
|
-
action: /* @__PURE__ */
|
33659
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.ChatUnreadIcon, null),
|
33660
|
+
action: /* @__PURE__ */ import_react213.default.createElement(ChatAction, null)
|
33434
33661
|
};
|
33435
33662
|
}
|
33436
33663
|
},
|
@@ -33438,7 +33665,7 @@ var init_ToastConfig = __esm({
|
|
33438
33665
|
single: () => {
|
33439
33666
|
return {
|
33440
33667
|
title: `You are now connected`,
|
33441
|
-
icon: /* @__PURE__ */
|
33668
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.ConnectivityIcon, null),
|
33442
33669
|
variant: "success",
|
33443
33670
|
duration: 3e3
|
33444
33671
|
};
|
@@ -33450,7 +33677,7 @@ var init_ToastConfig = __esm({
|
|
33450
33677
|
title: `You are offline for now. while we try to reconnect, please check
|
33451
33678
|
your internet connection. ${message}.
|
33452
33679
|
`,
|
33453
|
-
icon: /* @__PURE__ */
|
33680
|
+
icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PoorConnectivityIcon, null),
|
33454
33681
|
variant: "warning",
|
33455
33682
|
duration: 3e4
|
33456
33683
|
};
|
@@ -33530,12 +33757,12 @@ var init_ToastBatcher = __esm({
|
|
33530
33757
|
});
|
33531
33758
|
|
33532
33759
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
33533
|
-
var
|
33760
|
+
var import_react214, import_react_sdk109, HandRaisedNotifications;
|
33534
33761
|
var init_HandRaisedNotifications = __esm({
|
33535
33762
|
"src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
|
33536
33763
|
"use strict";
|
33537
33764
|
init_define_process_env();
|
33538
|
-
|
33765
|
+
import_react214 = require("react");
|
33539
33766
|
import_react_sdk109 = require("@100mslive/react-sdk");
|
33540
33767
|
init_ToastBatcher();
|
33541
33768
|
init_useRoomLayoutScreen();
|
@@ -33547,7 +33774,7 @@ var init_HandRaisedNotifications = __esm({
|
|
33547
33774
|
const vanillaStore = (0, import_react_sdk109.useHMSVanillaStore)();
|
33548
33775
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
33549
33776
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
33550
|
-
(0,
|
33777
|
+
(0, import_react214.useEffect)(() => {
|
33551
33778
|
var _a8;
|
33552
33779
|
if (!(notification == null ? void 0 : notification.data)) {
|
33553
33780
|
return;
|
@@ -33569,20 +33796,20 @@ var init_HandRaisedNotifications = __esm({
|
|
33569
33796
|
});
|
33570
33797
|
|
33571
33798
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
33572
|
-
var
|
33799
|
+
var import_react215, import_react_sdk110, InitErrorModal;
|
33573
33800
|
var init_InitErrorModal = __esm({
|
33574
33801
|
"src/Prebuilt/components/Notifications/InitErrorModal.tsx"() {
|
33575
33802
|
"use strict";
|
33576
33803
|
init_define_process_env();
|
33577
|
-
|
33804
|
+
import_react215 = __toESM(require("react"));
|
33578
33805
|
import_react_sdk110 = require("@100mslive/react-sdk");
|
33579
33806
|
init_src();
|
33580
33807
|
init_DialogContent2();
|
33581
33808
|
InitErrorModal = () => {
|
33582
33809
|
const notification = (0, import_react_sdk110.useHMSNotifications)(import_react_sdk110.HMSNotificationTypes.ERROR);
|
33583
|
-
const [showModal, setShowModal] = (0,
|
33584
|
-
const [info, setInfo] = (0,
|
33585
|
-
(0,
|
33810
|
+
const [showModal, setShowModal] = (0, import_react215.useState)(false);
|
33811
|
+
const [info, setInfo] = (0, import_react215.useState)({ title: "Init Error", description: "" });
|
33812
|
+
(0, import_react215.useEffect)(() => {
|
33586
33813
|
const data3 = notification == null ? void 0 : notification.data;
|
33587
33814
|
if (!data3 || data3.action !== "INIT") {
|
33588
33815
|
return;
|
@@ -33602,18 +33829,18 @@ var init_InitErrorModal = __esm({
|
|
33602
33829
|
setInfo({ title, description });
|
33603
33830
|
setShowModal(true);
|
33604
33831
|
}, [notification]);
|
33605
|
-
return /* @__PURE__ */
|
33832
|
+
return /* @__PURE__ */ import_react215.default.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ import_react215.default.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ import_react215.default.createElement("br", null), "Current URL - ", window.location.href));
|
33606
33833
|
};
|
33607
33834
|
}
|
33608
33835
|
});
|
33609
33836
|
|
33610
33837
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
33611
|
-
var
|
33838
|
+
var import_react216, import_react_sdk111, notificationTypes, PeerNotifications;
|
33612
33839
|
var init_PeerNotifications = __esm({
|
33613
33840
|
"src/Prebuilt/components/Notifications/PeerNotifications.tsx"() {
|
33614
33841
|
"use strict";
|
33615
33842
|
init_define_process_env();
|
33616
|
-
|
33843
|
+
import_react216 = require("react");
|
33617
33844
|
import_react_sdk111 = require("@100mslive/react-sdk");
|
33618
33845
|
init_ToastBatcher();
|
33619
33846
|
init_useUISettings();
|
@@ -33628,7 +33855,7 @@ var init_PeerNotifications = __esm({
|
|
33628
33855
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
33629
33856
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
33630
33857
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
33631
|
-
(0,
|
33858
|
+
(0, import_react216.useEffect)(() => {
|
33632
33859
|
if (!(notification == null ? void 0 : notification.data)) {
|
33633
33860
|
return;
|
33634
33861
|
}
|
@@ -33681,10 +33908,10 @@ var init_ios_perm_0 = __esm({
|
|
33681
33908
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
33682
33909
|
function PermissionErrorModal() {
|
33683
33910
|
const notification = (0, import_react_sdk112.useHMSNotifications)(import_react_sdk112.HMSNotificationTypes.ERROR);
|
33684
|
-
const [deviceType, setDeviceType] = (0,
|
33685
|
-
const [isSystemError, setIsSystemError] = (0,
|
33686
|
-
const isMobile = (0,
|
33687
|
-
(0,
|
33911
|
+
const [deviceType, setDeviceType] = (0, import_react217.useState)("");
|
33912
|
+
const [isSystemError, setIsSystemError] = (0, import_react217.useState)(false);
|
33913
|
+
const isMobile = (0, import_react_use49.useMedia)(config.media.md);
|
33914
|
+
(0, import_react217.useEffect)(() => {
|
33688
33915
|
var _a8, _b7, _c, _d, _e;
|
33689
33916
|
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"))) {
|
33690
33917
|
return;
|
@@ -33705,7 +33932,7 @@ function PermissionErrorModal() {
|
|
33705
33932
|
}
|
33706
33933
|
setIsSystemError(notification.data.code === 3011);
|
33707
33934
|
}, [notification]);
|
33708
|
-
return deviceType ? /* @__PURE__ */
|
33935
|
+
return deviceType ? /* @__PURE__ */ import_react217.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react217.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react217.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react217.default.createElement(
|
33709
33936
|
Dialog.Content,
|
33710
33937
|
{
|
33711
33938
|
css: {
|
@@ -33715,15 +33942,15 @@ function PermissionErrorModal() {
|
|
33715
33942
|
zIndex: 23
|
33716
33943
|
}
|
33717
33944
|
},
|
33718
|
-
/* @__PURE__ */
|
33945
|
+
/* @__PURE__ */ import_react217.default.createElement(
|
33719
33946
|
Dialog.Title,
|
33720
33947
|
{
|
33721
33948
|
css: {
|
33722
33949
|
borderBottom: "1px solid $border_default"
|
33723
33950
|
}
|
33724
33951
|
},
|
33725
|
-
isMobile && isIOS ? /* @__PURE__ */
|
33726
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
33952
|
+
isMobile && isIOS ? /* @__PURE__ */ import_react217.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
33953
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react217.default.createElement(
|
33727
33954
|
"img",
|
33728
33955
|
{
|
33729
33956
|
src: android_perm_1_default,
|
@@ -33731,21 +33958,21 @@ function PermissionErrorModal() {
|
|
33731
33958
|
alt: "Android Permission flow "
|
33732
33959
|
}
|
33733
33960
|
) : null,
|
33734
|
-
/* @__PURE__ */
|
33961
|
+
/* @__PURE__ */ import_react217.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
33735
33962
|
),
|
33736
|
-
/* @__PURE__ */
|
33737
|
-
isMobile && isIOS ? /* @__PURE__ */
|
33738
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
33739
|
-
!isMobile ? /* @__PURE__ */
|
33963
|
+
/* @__PURE__ */ import_react217.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),
|
33964
|
+
isMobile && isIOS ? /* @__PURE__ */ import_react217.default.createElement(import_react217.default.Fragment, null, /* @__PURE__ */ import_react217.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
33965
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react217.default.createElement(import_react217.default.Fragment, null, /* @__PURE__ */ import_react217.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
33966
|
+
!isMobile ? /* @__PURE__ */ import_react217.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
33740
33967
|
))) : null;
|
33741
33968
|
}
|
33742
|
-
var
|
33969
|
+
var import_react217, import_react_use49, import_react_sdk112;
|
33743
33970
|
var init_PermissionErrorModal = __esm({
|
33744
33971
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
33745
33972
|
"use strict";
|
33746
33973
|
init_define_process_env();
|
33747
|
-
|
33748
|
-
|
33974
|
+
import_react217 = __toESM(require("react"));
|
33975
|
+
import_react_use49 = require("react-use");
|
33749
33976
|
import_react_sdk112 = require("@100mslive/react-sdk");
|
33750
33977
|
init_src();
|
33751
33978
|
init_android_perm_1();
|
@@ -33755,12 +33982,12 @@ var init_PermissionErrorModal = __esm({
|
|
33755
33982
|
});
|
33756
33983
|
|
33757
33984
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
33758
|
-
var
|
33985
|
+
var import_react218, import_react_sdk113, notificationTypes2, notificationId, ReconnectNotifications;
|
33759
33986
|
var init_ReconnectNotifications = __esm({
|
33760
33987
|
"src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
|
33761
33988
|
"use strict";
|
33762
33989
|
init_define_process_env();
|
33763
|
-
|
33990
|
+
import_react218 = __toESM(require("react"));
|
33764
33991
|
import_react_sdk113 = require("@100mslive/react-sdk");
|
33765
33992
|
init_src();
|
33766
33993
|
init_ToastConfig();
|
@@ -33773,8 +34000,8 @@ var init_ReconnectNotifications = __esm({
|
|
33773
34000
|
notificationId = null;
|
33774
34001
|
ReconnectNotifications = () => {
|
33775
34002
|
const notification = (0, import_react_sdk113.useHMSNotifications)(notificationTypes2);
|
33776
|
-
const [open, setOpen] = (0,
|
33777
|
-
(0,
|
34003
|
+
const [open, setOpen] = (0, import_react218.useState)(false);
|
34004
|
+
(0, import_react218.useEffect)(() => {
|
33778
34005
|
var _a8, _b7;
|
33779
34006
|
if (!notification) {
|
33780
34007
|
return;
|
@@ -33793,7 +34020,7 @@ var init_ReconnectNotifications = __esm({
|
|
33793
34020
|
}, [notification]);
|
33794
34021
|
if (!open)
|
33795
34022
|
return null;
|
33796
|
-
return /* @__PURE__ */
|
34023
|
+
return /* @__PURE__ */ import_react218.default.createElement(Dialog.Root, { open, modal: true }, /* @__PURE__ */ import_react218.default.createElement(Dialog.Portal, { container: document.getElementById("conferencing") }, /* @__PURE__ */ import_react218.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react218.default.createElement(
|
33797
34024
|
Dialog.Content,
|
33798
34025
|
{
|
33799
34026
|
css: {
|
@@ -33807,31 +34034,31 @@ var init_ReconnectNotifications = __esm({
|
|
33807
34034
|
animation: "none !important"
|
33808
34035
|
}
|
33809
34036
|
},
|
33810
|
-
/* @__PURE__ */
|
34037
|
+
/* @__PURE__ */ import_react218.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react218.default.createElement("div", { style: { display: "inline", margin: "0.25rem" } }, /* @__PURE__ */ import_react218.default.createElement(Loading, { size: 16 })), /* @__PURE__ */ import_react218.default.createElement(Text, { css: { fontSize: "$space$8", color: "$on_surface_high" } }, "You lost your network connection. Trying to reconnect."))
|
33811
34038
|
)));
|
33812
34039
|
};
|
33813
34040
|
}
|
33814
34041
|
});
|
33815
34042
|
|
33816
34043
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
33817
|
-
var
|
34044
|
+
var import_react219, import_react_sdk114, import_react_icons102, TrackBulkUnmuteModal;
|
33818
34045
|
var init_TrackBulkUnmuteModal = __esm({
|
33819
34046
|
"src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
|
33820
34047
|
"use strict";
|
33821
34048
|
init_define_process_env();
|
33822
|
-
|
34049
|
+
import_react219 = __toESM(require("react"));
|
33823
34050
|
import_react_sdk114 = require("@100mslive/react-sdk");
|
33824
|
-
|
34051
|
+
import_react_icons102 = require("@100mslive/react-icons");
|
33825
34052
|
init_DialogContent2();
|
33826
34053
|
TrackBulkUnmuteModal = () => {
|
33827
34054
|
const hmsActions = (0, import_react_sdk114.useHMSActions)();
|
33828
|
-
const [muteNotification, setMuteNotification] = (0,
|
34055
|
+
const [muteNotification, setMuteNotification] = (0, import_react219.useState)(null);
|
33829
34056
|
const notification = (0, import_react_sdk114.useHMSNotifications)([
|
33830
34057
|
import_react_sdk114.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
33831
34058
|
import_react_sdk114.HMSNotificationTypes.ROOM_ENDED,
|
33832
34059
|
import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM
|
33833
34060
|
]);
|
33834
|
-
(0,
|
34061
|
+
(0, import_react219.useEffect)(() => {
|
33835
34062
|
switch (notification == null ? void 0 : notification.type) {
|
33836
34063
|
case import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
33837
34064
|
case import_react_sdk114.HMSNotificationTypes.ROOM_ENDED:
|
@@ -33851,7 +34078,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
33851
34078
|
}
|
33852
34079
|
const { requestedBy: peer, tracks, enabled } = muteNotification;
|
33853
34080
|
const types = new Set(tracks.map((track) => track.type));
|
33854
|
-
return /* @__PURE__ */
|
34081
|
+
return /* @__PURE__ */ import_react219.default.createElement(
|
33855
34082
|
RequestDialog,
|
33856
34083
|
{
|
33857
34084
|
title: "Unmute request",
|
@@ -33863,7 +34090,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
33863
34090
|
});
|
33864
34091
|
setMuteNotification(null);
|
33865
34092
|
},
|
33866
|
-
Icon:
|
34093
|
+
Icon: import_react_icons102.MicOnIcon
|
33867
34094
|
}
|
33868
34095
|
);
|
33869
34096
|
};
|
@@ -33871,12 +34098,12 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
33871
34098
|
});
|
33872
34099
|
|
33873
34100
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
33874
|
-
var
|
34101
|
+
var import_react220, import_react_sdk115, notificationTypes3, TrackNotifications;
|
33875
34102
|
var init_TrackNotifications = __esm({
|
33876
34103
|
"src/Prebuilt/components/Notifications/TrackNotifications.tsx"() {
|
33877
34104
|
"use strict";
|
33878
34105
|
init_define_process_env();
|
33879
|
-
|
34106
|
+
import_react220 = require("react");
|
33880
34107
|
import_react_sdk115 = require("@100mslive/react-sdk");
|
33881
34108
|
notificationTypes3 = [
|
33882
34109
|
import_react_sdk115.HMSNotificationTypes.TRACK_ADDED,
|
@@ -33886,7 +34113,7 @@ var init_TrackNotifications = __esm({
|
|
33886
34113
|
];
|
33887
34114
|
TrackNotifications = () => {
|
33888
34115
|
const notification = (0, import_react_sdk115.useHMSNotifications)(notificationTypes3);
|
33889
|
-
(0,
|
34116
|
+
(0, import_react220.useEffect)(() => {
|
33890
34117
|
if (notification) {
|
33891
34118
|
console.debug(`[${notification.type}]`, notification);
|
33892
34119
|
}
|
@@ -33897,14 +34124,14 @@ var init_TrackNotifications = __esm({
|
|
33897
34124
|
});
|
33898
34125
|
|
33899
34126
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
33900
|
-
var
|
34127
|
+
var import_react221, import_react_sdk116, import_react_icons103, TrackUnmuteModal;
|
33901
34128
|
var init_TrackUnmuteModal = __esm({
|
33902
34129
|
"src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
|
33903
34130
|
"use strict";
|
33904
34131
|
init_define_process_env();
|
33905
|
-
|
34132
|
+
import_react221 = __toESM(require("react"));
|
33906
34133
|
import_react_sdk116 = require("@100mslive/react-sdk");
|
33907
|
-
|
34134
|
+
import_react_icons103 = require("@100mslive/react-icons");
|
33908
34135
|
init_DialogContent2();
|
33909
34136
|
TrackUnmuteModal = () => {
|
33910
34137
|
const hmsActions = (0, import_react_sdk116.useHMSActions)();
|
@@ -33913,8 +34140,8 @@ var init_TrackUnmuteModal = __esm({
|
|
33913
34140
|
import_react_sdk116.HMSNotificationTypes.ROOM_ENDED,
|
33914
34141
|
import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM
|
33915
34142
|
]);
|
33916
|
-
const [muteNotification, setMuteNotification] = (0,
|
33917
|
-
(0,
|
34143
|
+
const [muteNotification, setMuteNotification] = (0, import_react221.useState)(null);
|
34144
|
+
(0, import_react221.useEffect)(() => {
|
33918
34145
|
switch (notification == null ? void 0 : notification.type) {
|
33919
34146
|
case import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
33920
34147
|
case import_react_sdk116.HMSNotificationTypes.ROOM_ENDED:
|
@@ -33933,7 +34160,7 @@ var init_TrackUnmuteModal = __esm({
|
|
33933
34160
|
return null;
|
33934
34161
|
}
|
33935
34162
|
const { requestedBy: peer, track, enabled } = muteNotification;
|
33936
|
-
return /* @__PURE__ */
|
34163
|
+
return /* @__PURE__ */ import_react221.default.createElement(
|
33937
34164
|
RequestDialog,
|
33938
34165
|
{
|
33939
34166
|
title: `Unmute your ${track.type}?`,
|
@@ -33943,7 +34170,7 @@ var init_TrackUnmuteModal = __esm({
|
|
33943
34170
|
hmsActions.setEnabledTrack(track.id, enabled);
|
33944
34171
|
setMuteNotification(null);
|
33945
34172
|
},
|
33946
|
-
Icon:
|
34173
|
+
Icon: import_react_icons103.MicOnIcon
|
33947
34174
|
}
|
33948
34175
|
);
|
33949
34176
|
};
|
@@ -33965,14 +34192,14 @@ function Notifications() {
|
|
33965
34192
|
const { showNotification } = (0, import_react_sdk117.useAwayNotifications)();
|
33966
34193
|
const amIScreenSharing = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectIsLocalScreenShared);
|
33967
34194
|
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
33968
|
-
const handleRoleChangeDenied = (0,
|
34195
|
+
const handleRoleChangeDenied = (0, import_react222.useCallback)((request) => {
|
33969
34196
|
ToastManager.addToast({
|
33970
34197
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
33971
34198
|
variant: "error"
|
33972
34199
|
});
|
33973
34200
|
}, []);
|
33974
34201
|
(0, import_react_sdk117.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
33975
|
-
(0,
|
34202
|
+
(0, import_react222.useEffect)(() => {
|
33976
34203
|
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
|
33977
34204
|
if (!notification || isNotificationDisabled) {
|
33978
34205
|
return;
|
@@ -33991,7 +34218,7 @@ function Notifications() {
|
|
33991
34218
|
ToastManager.addToast({
|
33992
34219
|
title: "The room is currently full, try joining later",
|
33993
34220
|
close: true,
|
33994
|
-
icon: /* @__PURE__ */
|
34221
|
+
icon: /* @__PURE__ */ import_react222.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react222.default.createElement(import_react_icons104.GroupIcon, null))
|
33995
34222
|
});
|
33996
34223
|
} else {
|
33997
34224
|
ToastManager.addToast({
|
@@ -34048,7 +34275,7 @@ function Notifications() {
|
|
34048
34275
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk117.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
34049
34276
|
const pollToastID = ToastManager.addToast({
|
34050
34277
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
34051
|
-
action: /* @__PURE__ */
|
34278
|
+
action: /* @__PURE__ */ import_react222.default.createElement(
|
34052
34279
|
Button,
|
34053
34280
|
{
|
34054
34281
|
onClick: () => togglePollView(notification.data.id),
|
@@ -34089,16 +34316,16 @@ function Notifications() {
|
|
34089
34316
|
if (isNotificationDisabled) {
|
34090
34317
|
return null;
|
34091
34318
|
}
|
34092
|
-
return /* @__PURE__ */
|
34319
|
+
return /* @__PURE__ */ import_react222.default.createElement(import_react222.default.Fragment, null, /* @__PURE__ */ import_react222.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackNotifications, null), roomState === import_react_sdk117.HMSRoomState.Connected ? /* @__PURE__ */ import_react222.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react222.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react222.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react222.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react222.default.createElement(HandRaisedNotifications, null));
|
34093
34320
|
}
|
34094
|
-
var
|
34321
|
+
var import_react222, import_react_sdk117, import_react_icons104, pollToastKey;
|
34095
34322
|
var init_Notifications = __esm({
|
34096
34323
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
34097
34324
|
"use strict";
|
34098
34325
|
init_define_process_env();
|
34099
|
-
|
34326
|
+
import_react222 = __toESM(require("react"));
|
34100
34327
|
import_react_sdk117 = require("@100mslive/react-sdk");
|
34101
|
-
|
34328
|
+
import_react_icons104 = require("@100mslive/react-icons");
|
34102
34329
|
init_src();
|
34103
34330
|
init_roomLayoutProvider();
|
34104
34331
|
init_ToastManager();
|
@@ -34130,13 +34357,13 @@ var init_Notifications2 = __esm({
|
|
34130
34357
|
});
|
34131
34358
|
|
34132
34359
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
34133
|
-
var
|
34360
|
+
var import_react223, import_react_use50, PreviewScreen;
|
34134
34361
|
var init_PreviewScreen = __esm({
|
34135
34362
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
|
34136
34363
|
"use strict";
|
34137
34364
|
init_define_process_env();
|
34138
|
-
|
34139
|
-
|
34365
|
+
import_react223 = __toESM(require("react"));
|
34366
|
+
import_react_use50 = require("react-use");
|
34140
34367
|
init_src();
|
34141
34368
|
init_AppContext();
|
34142
34369
|
init_roomLayoutProvider();
|
@@ -34149,36 +34376,36 @@ var init_PreviewScreen = __esm({
|
|
34149
34376
|
var _a8, _b7, _c;
|
34150
34377
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
34151
34378
|
const skipPreview = !isPreviewScreenEnabled;
|
34152
|
-
const previewAsRole = (0,
|
34379
|
+
const previewAsRole = (0, import_react_use50.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
34153
34380
|
const { userName } = useHMSPrebuiltContext();
|
34154
34381
|
const initialName = userName || (skipPreview ? "Beam" : "");
|
34155
34382
|
const authToken = useAuthToken();
|
34156
34383
|
const roomLayout = useRoomLayout();
|
34157
34384
|
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) || {};
|
34158
|
-
return /* @__PURE__ */
|
34385
|
+
return /* @__PURE__ */ import_react223.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react223.default.createElement(
|
34159
34386
|
Flex,
|
34160
34387
|
{
|
34161
34388
|
css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
|
34162
34389
|
justify: "center",
|
34163
34390
|
align: "center"
|
34164
34391
|
},
|
34165
|
-
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */
|
34392
|
+
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ import_react223.default.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ import_react223.default.createElement(FullPageProgress_default, null)
|
34166
34393
|
));
|
34167
34394
|
};
|
34168
34395
|
}
|
34169
34396
|
});
|
34170
34397
|
|
34171
34398
|
// src/Prebuilt/components/Toast/Toast.jsx
|
34172
|
-
var
|
34399
|
+
var import_react224, Toast2;
|
34173
34400
|
var init_Toast3 = __esm({
|
34174
34401
|
"src/Prebuilt/components/Toast/Toast.jsx"() {
|
34175
34402
|
"use strict";
|
34176
34403
|
init_define_process_env();
|
34177
|
-
|
34404
|
+
import_react224 = __toESM(require("react"));
|
34178
34405
|
init_Toast2();
|
34179
34406
|
Toast2 = (_a8) => {
|
34180
34407
|
var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
|
34181
|
-
return /* @__PURE__ */
|
34408
|
+
return /* @__PURE__ */ import_react224.default.createElement(
|
34182
34409
|
Toast.HMSToast,
|
34183
34410
|
__spreadValues({
|
34184
34411
|
title,
|
@@ -34195,12 +34422,12 @@ var init_Toast3 = __esm({
|
|
34195
34422
|
});
|
34196
34423
|
|
34197
34424
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
34198
|
-
var
|
34425
|
+
var import_react225, import_react_sdk118, ToastContainer;
|
34199
34426
|
var init_ToastContainer = __esm({
|
34200
34427
|
"src/Prebuilt/components/Toast/ToastContainer.jsx"() {
|
34201
34428
|
"use strict";
|
34202
34429
|
init_define_process_env();
|
34203
|
-
|
34430
|
+
import_react225 = __toESM(require("react"));
|
34204
34431
|
import_react_sdk118 = require("@100mslive/react-sdk");
|
34205
34432
|
init_Toast2();
|
34206
34433
|
init_Toast3();
|
@@ -34208,16 +34435,16 @@ var init_ToastContainer = __esm({
|
|
34208
34435
|
init_constants();
|
34209
34436
|
ToastContainer = () => {
|
34210
34437
|
const isConnected = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectIsConnectedToRoom);
|
34211
|
-
const [toasts, setToast] = (0,
|
34212
|
-
(0,
|
34438
|
+
const [toasts, setToast] = (0, import_react225.useState)([]);
|
34439
|
+
(0, import_react225.useEffect)(() => {
|
34213
34440
|
ToastManager.addListener(setToast);
|
34214
34441
|
return () => {
|
34215
34442
|
ToastManager.removeListener(setToast);
|
34216
34443
|
};
|
34217
34444
|
}, []);
|
34218
|
-
return /* @__PURE__ */
|
34219
|
-
return /* @__PURE__ */
|
34220
|
-
}), /* @__PURE__ */
|
34445
|
+
return /* @__PURE__ */ import_react225.default.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
|
34446
|
+
return /* @__PURE__ */ import_react225.default.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
|
34447
|
+
}), /* @__PURE__ */ import_react225.default.createElement(
|
34221
34448
|
Toast.Viewport,
|
34222
34449
|
{
|
34223
34450
|
css: __spreadValues({
|
@@ -34230,13 +34457,13 @@ var init_ToastContainer = __esm({
|
|
34230
34457
|
});
|
34231
34458
|
|
34232
34459
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
34233
|
-
var
|
34460
|
+
var import_react226, import_react_icons105, RoomDetailsSheet;
|
34234
34461
|
var init_RoomDetailsSheet = __esm({
|
34235
34462
|
"src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx"() {
|
34236
34463
|
"use strict";
|
34237
34464
|
init_define_process_env();
|
34238
|
-
|
34239
|
-
|
34465
|
+
import_react226 = __toESM(require("react"));
|
34466
|
+
import_react_icons105 = require("@100mslive/react-icons");
|
34240
34467
|
init_Layout();
|
34241
34468
|
init_Sheet2();
|
34242
34469
|
init_Text2();
|
@@ -34249,27 +34476,27 @@ var init_RoomDetailsSheet = __esm({
|
|
34249
34476
|
const { title, description, details } = useRoomLayoutHeader();
|
34250
34477
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
34251
34478
|
const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
|
34252
|
-
return /* @__PURE__ */
|
34479
|
+
return /* @__PURE__ */ import_react226.default.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ import_react226.default.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ import_react226.default.createElement(
|
34253
34480
|
Flex,
|
34254
34481
|
{
|
34255
34482
|
justify: "between",
|
34256
34483
|
align: "center",
|
34257
34484
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
34258
34485
|
},
|
34259
|
-
/* @__PURE__ */
|
34260
|
-
/* @__PURE__ */
|
34261
|
-
), /* @__PURE__ */
|
34486
|
+
/* @__PURE__ */ import_react226.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
34487
|
+
/* @__PURE__ */ import_react226.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react226.default.createElement(import_react_icons105.CrossIcon, null))
|
34488
|
+
), /* @__PURE__ */ import_react226.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ import_react226.default.createElement(Logo, null), /* @__PURE__ */ import_react226.default.createElement(Box, null, /* @__PURE__ */ import_react226.default.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ import_react226.default.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ import_react226.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
34262
34489
|
};
|
34263
34490
|
}
|
34264
34491
|
});
|
34265
34492
|
|
34266
34493
|
// src/Prebuilt/layouts/Sheet.tsx
|
34267
|
-
var
|
34494
|
+
var import_react227, import_react_sdk119, Sheet2;
|
34268
34495
|
var init_Sheet3 = __esm({
|
34269
34496
|
"src/Prebuilt/layouts/Sheet.tsx"() {
|
34270
34497
|
"use strict";
|
34271
34498
|
init_define_process_env();
|
34272
|
-
|
34499
|
+
import_react227 = __toESM(require("react"));
|
34273
34500
|
import_react_sdk119 = require("@100mslive/react-sdk");
|
34274
34501
|
init_RoomDetailsSheet();
|
34275
34502
|
init_Layout();
|
@@ -34278,9 +34505,9 @@ var init_Sheet3 = __esm({
|
|
34278
34505
|
const sheet = (0, import_react_sdk119.useHMSStore)((0, import_react_sdk119.selectAppData)(APP_DATA.sheet));
|
34279
34506
|
let ViewComponent;
|
34280
34507
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
34281
|
-
ViewComponent = /* @__PURE__ */
|
34508
|
+
ViewComponent = /* @__PURE__ */ import_react227.default.createElement(RoomDetailsSheet, null);
|
34282
34509
|
}
|
34283
|
-
return /* @__PURE__ */
|
34510
|
+
return /* @__PURE__ */ import_react227.default.createElement(Box, null, ViewComponent);
|
34284
34511
|
};
|
34285
34512
|
}
|
34286
34513
|
});
|
@@ -34289,10 +34516,10 @@ var init_Sheet3 = __esm({
|
|
34289
34516
|
function FlyingEmoji() {
|
34290
34517
|
const localPeerId = (0, import_react_sdk120.useHMSStore)(import_react_sdk120.selectLocalPeerID);
|
34291
34518
|
const vanillaStore = (0, import_react_sdk120.useHMSVanillaStore)();
|
34292
|
-
const [emojis, setEmojis] = (0,
|
34293
|
-
const isMobile = (0,
|
34294
|
-
const startingPoints = (0,
|
34295
|
-
const showFlyingEmoji = (0,
|
34519
|
+
const [emojis, setEmojis] = (0, import_react228.useState)([]);
|
34520
|
+
const isMobile = (0, import_react_use51.useMedia)(config.media.md);
|
34521
|
+
const startingPoints = (0, import_react228.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
34522
|
+
const showFlyingEmoji = (0, import_react228.useCallback)(
|
34296
34523
|
({ emojiId, senderId }) => {
|
34297
34524
|
if (!emojiId || !senderId || document.hidden) {
|
34298
34525
|
return;
|
@@ -34320,10 +34547,10 @@ function FlyingEmoji() {
|
|
34320
34547
|
type: EMOJI_REACTION_TYPE,
|
34321
34548
|
onEvent: showFlyingEmoji
|
34322
34549
|
});
|
34323
|
-
(0,
|
34550
|
+
(0, import_react228.useEffect)(() => {
|
34324
34551
|
window.showFlyingEmoji = showFlyingEmoji;
|
34325
34552
|
}, [showFlyingEmoji]);
|
34326
|
-
return /* @__PURE__ */
|
34553
|
+
return /* @__PURE__ */ import_react228.default.createElement(
|
34327
34554
|
Box,
|
34328
34555
|
{
|
34329
34556
|
css: {
|
@@ -34339,7 +34566,7 @@ function FlyingEmoji() {
|
|
34339
34566
|
}
|
34340
34567
|
},
|
34341
34568
|
emojis.map((emoji) => {
|
34342
|
-
return /* @__PURE__ */
|
34569
|
+
return /* @__PURE__ */ import_react228.default.createElement(
|
34343
34570
|
Flex,
|
34344
34571
|
{
|
34345
34572
|
key: emoji.id,
|
@@ -34355,8 +34582,8 @@ function FlyingEmoji() {
|
|
34355
34582
|
setEmojis(emojis.filter((item) => item.id !== emoji.id));
|
34356
34583
|
}
|
34357
34584
|
},
|
34358
|
-
/* @__PURE__ */
|
34359
|
-
/* @__PURE__ */
|
34585
|
+
/* @__PURE__ */ import_react228.default.createElement(Box, null, /* @__PURE__ */ import_react228.default.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
|
34586
|
+
/* @__PURE__ */ import_react228.default.createElement(
|
34360
34587
|
Box,
|
34361
34588
|
{
|
34362
34589
|
css: {
|
@@ -34366,7 +34593,7 @@ function FlyingEmoji() {
|
|
34366
34593
|
borderRadius: "$1"
|
34367
34594
|
}
|
34368
34595
|
},
|
34369
|
-
/* @__PURE__ */
|
34596
|
+
/* @__PURE__ */ import_react228.default.createElement(
|
34370
34597
|
Text,
|
34371
34598
|
{
|
34372
34599
|
css: {
|
@@ -34382,13 +34609,13 @@ function FlyingEmoji() {
|
|
34382
34609
|
})
|
34383
34610
|
);
|
34384
34611
|
}
|
34385
|
-
var
|
34612
|
+
var import_react228, import_react_use51, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
34386
34613
|
var init_FlyingEmoji = __esm({
|
34387
34614
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
34388
34615
|
"use strict";
|
34389
34616
|
init_define_process_env();
|
34390
|
-
|
34391
|
-
|
34617
|
+
import_react228 = __toESM(require("react"));
|
34618
|
+
import_react_use51 = require("react-use");
|
34392
34619
|
import_react_sdk120 = require("@100mslive/react-sdk");
|
34393
34620
|
init_Layout();
|
34394
34621
|
init_Text2();
|
@@ -34423,33 +34650,33 @@ var init_FlyingEmoji = __esm({
|
|
34423
34650
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
34424
34651
|
function RemoteStopScreenshare() {
|
34425
34652
|
const actions = (0, import_react_sdk121.useHMSActions)();
|
34426
|
-
const onRemoteStopScreenshare = (0,
|
34653
|
+
const onRemoteStopScreenshare = (0, import_react229.useCallback)(() => __async(this, null, function* () {
|
34427
34654
|
yield actions.setScreenShareEnabled(false);
|
34428
34655
|
}), [actions]);
|
34429
34656
|
(0, import_react_sdk121.useCustomEvent)({
|
34430
34657
|
type: REMOTE_STOP_SCREENSHARE_TYPE,
|
34431
34658
|
onEvent: onRemoteStopScreenshare
|
34432
34659
|
});
|
34433
|
-
return /* @__PURE__ */
|
34660
|
+
return /* @__PURE__ */ import_react229.default.createElement(import_react229.default.Fragment, null);
|
34434
34661
|
}
|
34435
|
-
var
|
34662
|
+
var import_react229, import_react_sdk121;
|
34436
34663
|
var init_RemoteStopScreenshare = __esm({
|
34437
34664
|
"src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
|
34438
34665
|
"use strict";
|
34439
34666
|
init_define_process_env();
|
34440
|
-
|
34667
|
+
import_react229 = __toESM(require("react"));
|
34441
34668
|
import_react_sdk121 = require("@100mslive/react-sdk");
|
34442
34669
|
init_constants();
|
34443
34670
|
}
|
34444
34671
|
});
|
34445
34672
|
|
34446
34673
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
34447
|
-
var
|
34674
|
+
var import_react230, import_react_sdk122, useAutoStartStreaming;
|
34448
34675
|
var init_useAutoStartStreaming = __esm({
|
34449
34676
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
|
34450
34677
|
"use strict";
|
34451
34678
|
init_define_process_env();
|
34452
|
-
|
34679
|
+
import_react230 = require("react");
|
34453
34680
|
import_react_sdk122 = require("@100mslive/react-sdk");
|
34454
34681
|
init_useUISettings();
|
34455
34682
|
init_hooks();
|
@@ -34461,8 +34688,8 @@ var init_useAutoStartStreaming = __esm({
|
|
34461
34688
|
const hmsActions = (0, import_react_sdk122.useHMSActions)();
|
34462
34689
|
const isConnected = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectIsConnectedToRoom);
|
34463
34690
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk122.useRecordingStreaming)();
|
34464
|
-
const streamStartedRef = (0,
|
34465
|
-
const startHLS = (0,
|
34691
|
+
const streamStartedRef = (0, import_react230.useRef)(false);
|
34692
|
+
const startHLS = (0, import_react230.useCallback)(() => __async(void 0, null, function* () {
|
34466
34693
|
try {
|
34467
34694
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
34468
34695
|
return;
|
@@ -34485,12 +34712,12 @@ var init_useAutoStartStreaming = __esm({
|
|
34485
34712
|
isHLSRecordingOn,
|
34486
34713
|
isBrowserRecordingOn
|
34487
34714
|
]);
|
34488
|
-
(0,
|
34715
|
+
(0, import_react230.useEffect)(() => {
|
34489
34716
|
if (!isHLSStarted && !isHLSRunning) {
|
34490
34717
|
streamStartedRef.current = false;
|
34491
34718
|
}
|
34492
34719
|
}, [isHLSStarted, isHLSRunning]);
|
34493
|
-
(0,
|
34720
|
+
(0, import_react230.useEffect)(() => {
|
34494
34721
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
34495
34722
|
return;
|
34496
34723
|
}
|
@@ -34508,14 +34735,14 @@ function AppRoutes({
|
|
34508
34735
|
const roomLayout = useRoomLayout();
|
34509
34736
|
const isNotificationsDisabled = useIsNotificationDisabled();
|
34510
34737
|
const { activeState, rejoin } = useAppStateManager();
|
34511
|
-
return /* @__PURE__ */
|
34738
|
+
return /* @__PURE__ */ import_react231.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react231.default.createElement(import_react231.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react231.default.createElement(AppData, null), /* @__PURE__ */ import_react231.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react231.default.createElement(Notifications, null), /* @__PURE__ */ import_react231.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react231.default.createElement(Sheet2, null), /* @__PURE__ */ import_react231.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react231.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react231.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react231.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react231.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react231.default.createElement(AppStates, { activeState })));
|
34512
34739
|
}
|
34513
|
-
var
|
34740
|
+
var import_react231, import_react_sdk123, HMSPrebuilt, AppStates, BackSwipe;
|
34514
34741
|
var init_App = __esm({
|
34515
34742
|
"src/Prebuilt/App.tsx"() {
|
34516
34743
|
"use strict";
|
34517
34744
|
init_define_process_env();
|
34518
|
-
|
34745
|
+
import_react231 = __toESM(require("react"));
|
34519
34746
|
import_react_sdk123 = require("@100mslive/react-sdk");
|
34520
34747
|
init_AppData();
|
34521
34748
|
init_AuthToken();
|
@@ -34543,7 +34770,7 @@ var init_App = __esm({
|
|
34543
34770
|
init_useRoomLayoutScreen();
|
34544
34771
|
init_FeatureFlags();
|
34545
34772
|
init_constants();
|
34546
|
-
HMSPrebuilt =
|
34773
|
+
HMSPrebuilt = import_react231.default.forwardRef(
|
34547
34774
|
({
|
34548
34775
|
roomCode = "",
|
34549
34776
|
authToken = "",
|
@@ -34557,9 +34784,9 @@ var init_App = __esm({
|
|
34557
34784
|
onJoin
|
34558
34785
|
}, ref) => {
|
34559
34786
|
var _a8, _b7, _c, _d;
|
34560
|
-
const reactiveStore = (0,
|
34561
|
-
const [hydrated, setHydrated] =
|
34562
|
-
(0,
|
34787
|
+
const reactiveStore = (0, import_react231.useRef)();
|
34788
|
+
const [hydrated, setHydrated] = import_react231.default.useState(false);
|
34789
|
+
(0, import_react231.useEffect)(() => {
|
34563
34790
|
setHydrated(true);
|
34564
34791
|
const hms = new import_react_sdk123.HMSReactiveStore();
|
34565
34792
|
const hmsStore = hms.getStore();
|
@@ -34574,13 +34801,13 @@ var init_App = __esm({
|
|
34574
34801
|
hmsNotifications
|
34575
34802
|
};
|
34576
34803
|
}, []);
|
34577
|
-
(0,
|
34804
|
+
(0, import_react231.useEffect)(() => {
|
34578
34805
|
if (!ref || !reactiveStore.current) {
|
34579
34806
|
return;
|
34580
34807
|
}
|
34581
34808
|
ref.current = __spreadValues({}, reactiveStore.current);
|
34582
34809
|
}, [ref]);
|
34583
|
-
(0,
|
34810
|
+
(0, import_react231.useEffect)(() => {
|
34584
34811
|
return () => {
|
34585
34812
|
var _a9;
|
34586
34813
|
VBHandler.reset();
|
@@ -34609,7 +34836,7 @@ var init_App = __esm({
|
|
34609
34836
|
return null;
|
34610
34837
|
}
|
34611
34838
|
globalStyles();
|
34612
|
-
return /* @__PURE__ */
|
34839
|
+
return /* @__PURE__ */ import_react231.default.createElement(ErrorBoundary, null, /* @__PURE__ */ import_react231.default.createElement(
|
34613
34840
|
HMSPrebuiltContext.Provider,
|
34614
34841
|
{
|
34615
34842
|
value: {
|
@@ -34626,7 +34853,7 @@ var init_App = __esm({
|
|
34626
34853
|
}
|
34627
34854
|
}
|
34628
34855
|
},
|
34629
|
-
/* @__PURE__ */
|
34856
|
+
/* @__PURE__ */ import_react231.default.createElement(
|
34630
34857
|
import_react_sdk123.HMSRoomProvider,
|
34631
34858
|
{
|
34632
34859
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
@@ -34635,7 +34862,7 @@ var init_App = __esm({
|
|
34635
34862
|
notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
|
34636
34863
|
stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats
|
34637
34864
|
},
|
34638
|
-
/* @__PURE__ */
|
34865
|
+
/* @__PURE__ */ import_react231.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react231.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
|
34639
34866
|
var _a9;
|
34640
34867
|
const layout = data3 == null ? void 0 : data3.layout;
|
34641
34868
|
const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
|
@@ -34644,7 +34871,7 @@ var init_App = __esm({
|
|
34644
34871
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
34645
34872
|
fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
|
34646
34873
|
}
|
34647
|
-
return /* @__PURE__ */
|
34874
|
+
return /* @__PURE__ */ import_react231.default.createElement(
|
34648
34875
|
HMSThemeProvider,
|
34649
34876
|
{
|
34650
34877
|
themeType: `${theme2.name}-${Date.now()}`,
|
@@ -34657,8 +34884,8 @@ var init_App = __esm({
|
|
34657
34884
|
}
|
34658
34885
|
}
|
34659
34886
|
},
|
34660
|
-
/* @__PURE__ */
|
34661
|
-
/* @__PURE__ */
|
34887
|
+
/* @__PURE__ */ import_react231.default.createElement(Init, null),
|
34888
|
+
/* @__PURE__ */ import_react231.default.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ import_react231.default.createElement(
|
34662
34889
|
Box,
|
34663
34890
|
{
|
34664
34891
|
className: DEFAULT_PORTAL_CONTAINER.slice(1),
|
@@ -34670,7 +34897,7 @@ var init_App = __esm({
|
|
34670
34897
|
position: "relative"
|
34671
34898
|
}
|
34672
34899
|
},
|
34673
|
-
/* @__PURE__ */
|
34900
|
+
/* @__PURE__ */ import_react231.default.createElement(
|
34674
34901
|
AppRoutes,
|
34675
34902
|
{
|
34676
34903
|
authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
|
@@ -34690,16 +34917,16 @@ var init_App = __esm({
|
|
34690
34917
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
34691
34918
|
useAutoStartStreaming();
|
34692
34919
|
if (activeState === "preview" /* PREVIEW */ && isPreviewScreenEnabled) {
|
34693
|
-
return /* @__PURE__ */
|
34920
|
+
return /* @__PURE__ */ import_react231.default.createElement(PreviewScreen, null);
|
34694
34921
|
} else if (activeState === "leave" /* LEAVE */ && isLeaveScreenEnabled) {
|
34695
|
-
return /* @__PURE__ */
|
34922
|
+
return /* @__PURE__ */ import_react231.default.createElement(LeaveScreen, null);
|
34696
34923
|
}
|
34697
|
-
return /* @__PURE__ */
|
34924
|
+
return /* @__PURE__ */ import_react231.default.createElement(ConferenceScreen, null);
|
34698
34925
|
};
|
34699
34926
|
BackSwipe = () => {
|
34700
34927
|
const isConnectedToRoom = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsConnectedToRoom);
|
34701
34928
|
const hmsActions = (0, import_react_sdk123.useHMSActions)();
|
34702
|
-
(0,
|
34929
|
+
(0, import_react231.useEffect)(() => {
|
34703
34930
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
34704
34931
|
if (isConnectedToRoom) {
|
34705
34932
|
yield hmsActions.leave();
|