@100mslive/roomkit-react 0.2.8-alpha.7 → 0.2.8-alpha.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-MYKM5AXS.js → HLSView-6KPQ2KD6.js} +176 -174
- package/dist/HLSView-6KPQ2KD6.js.map +7 -0
- package/dist/Prebuilt/components/HMSVideo/HLSQualitySelector.d.ts +3 -2
- package/dist/Prebuilt/components/HMSVideo/utils.d.ts +0 -1
- package/dist/Prebuilt/components/Leave/DesktopLeaveRoom.d.ts +2 -1
- package/dist/Prebuilt/components/Leave/LeaveRoom.d.ts +2 -1
- package/dist/Prebuilt/components/Leave/MwebLeaveRoom.d.ts +2 -1
- package/dist/Prebuilt/components/RaiseHand.d.ts +4 -1
- package/dist/Sheet/Sheet.d.ts +1 -0
- package/dist/{chunk-DRBTAFKN.js → chunk-JQCSGJIR.js} +720 -630
- package/dist/chunk-JQCSGJIR.js.map +7 -0
- package/dist/index.cjs.js +1231 -1135
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +254 -199
- package/dist/meta.esbuild.json +261 -204
- package/package.json +6 -6
- package/src/Button/Button.tsx +4 -4
- package/src/Fieldset/Fieldset.tsx +1 -1
- package/src/Input/PasswordInput.stories.tsx +1 -1
- package/src/Pagination/StyledPagination.stories.tsx +2 -2
- package/src/Prebuilt/IconButton.tsx +1 -1
- package/src/Prebuilt/components/Chat/Chat.tsx +41 -1
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +19 -15
- package/src/Prebuilt/components/EmojiReaction.jsx +32 -22
- package/src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx +85 -78
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +3 -4
- package/src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx +49 -56
- package/src/Prebuilt/components/HMSVideo/VideoTime.tsx +2 -1
- package/src/Prebuilt/components/HMSVideo/utils.ts +0 -8
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx +1 -1
- package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +50 -46
- package/src/Prebuilt/components/Leave/LeaveRoom.tsx +10 -5
- package/src/Prebuilt/components/Leave/MwebLeaveRoom.tsx +12 -6
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -2
- package/src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx +4 -1
- package/src/Prebuilt/components/Polls/Voting/Voting.tsx +3 -2
- package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +1 -1
- package/src/Prebuilt/components/Polls/common/utils.ts +2 -2
- package/src/Prebuilt/components/RaiseHand.tsx +8 -2
- package/src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx +41 -14
- package/src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx +2 -2
- package/src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx +1 -1
- package/src/Prebuilt/layouts/HLSView.jsx +27 -24
- package/src/Prebuilt/layouts/SidePane.tsx +1 -2
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +3 -2
- package/src/Prebuilt/primitives/DialogContent.jsx +1 -1
- package/src/Sheet/Sheet.tsx +3 -3
- package/dist/HLSView-MYKM5AXS.js.map +0 -7
- package/dist/chunk-DRBTAFKN.js.map +0 -7
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_185c518e-14fa-4a8e-bf76-523e6a97de22", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.8-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_185c518e-14fa-4a8e-bf76-523e6a97de22", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.8-alpha.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:20547", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.8-alpha.7", 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: "8081355382", 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: "48bc1b57113a4245b79055a80f4f1f5d3b8795aa", 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: "f6aeb3782206d0c2fca9cbf488ceb0a35487be7c645191f5cf0163a3eb01e719", 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--1709127809318-0.9086977243625547:/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--1709127809126-0.6095770090936108:/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--1709127787109-0.0814847064321016:/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--1709127786931-0.6972012578357483:/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_2ee04255-38bc-4c51-b269-6782657e4adf", INVOCATION_ID: "18dfc21d5d544d1b8eb77f790b149ed9", 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: "456", 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 141", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.8-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.7", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "48bc1b57113a4245b79055a80f4f1f5d3b8795aa", 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_185c518e-14fa-4a8e-bf76-523e6a97de22", 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_185c518e-14fa-4a8e-bf76-523e6a97de22", 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_185c518e-14fa-4a8e-bf76-523e6a97de22" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_823254f5-4732-4f6a-b145-e8ee8c580765", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.8-alpha.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_823254f5-4732-4f6a-b145-e8ee8c580765", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.8-alpha.8", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18399", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.8-alpha.8", 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: "8096644752", 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: "cddbc3f6a55bc8612229e7cfa865eb8946b564b2", 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: "c575132fce58c9c9522d988e6259e463636f8ea6fc6c9e954fd13a2f98e6f9d8", 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--1709212560278-0.2032246878266939:/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--1709212560077-0.09680736633681075:/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--1709212537346-0.3328263029647156:/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--1709212537148-0.6509977578033861:/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_21f0bbb0-418d-41e2-9dfa-8d77c2abd99c", INVOCATION_ID: "14a0ab590b55419eb88dcb5dc43a00ea", 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: "458", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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 462", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.8-alpha.8", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.8", 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: "cddbc3f6a55bc8612229e7cfa865eb8946b564b2", 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: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_823254f5-4732-4f6a-b145-e8ee8c580765", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_823254f5-4732-4f6a-b145-e8ee8c580765", 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_823254f5-4732-4f6a-b145-e8ee8c580765" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -2928,8 +2928,8 @@ var require_lodash = __commonJS({
|
|
2928
2928
|
return { "start": start, "end": end };
|
2929
2929
|
}
|
2930
2930
|
function getWrapDetails(source) {
|
2931
|
-
var
|
2932
|
-
return
|
2931
|
+
var match9 = source.match(reWrapDetails);
|
2932
|
+
return match9 ? match9[1].split(reSplitDetails) : [];
|
2933
2933
|
}
|
2934
2934
|
function hasPath(object, path, hasFunc) {
|
2935
2935
|
path = castPath(path, object);
|
@@ -3197,8 +3197,8 @@ var require_lodash = __commonJS({
|
|
3197
3197
|
if (string.charCodeAt(0) === 46) {
|
3198
3198
|
result2.push("");
|
3199
3199
|
}
|
3200
|
-
string.replace(rePropName, function(
|
3201
|
-
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number ||
|
3200
|
+
string.replace(rePropName, function(match9, number, quote, subString) {
|
3201
|
+
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match9);
|
3202
3202
|
});
|
3203
3203
|
return result2;
|
3204
3204
|
});
|
@@ -4764,7 +4764,7 @@ var require_lodash = __commonJS({
|
|
4764
4764
|
"g"
|
4765
4765
|
);
|
4766
4766
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
4767
|
-
string.replace(reDelimiters, function(
|
4767
|
+
string.replace(reDelimiters, function(match9, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
4768
4768
|
interpolateValue || (interpolateValue = esTemplateValue);
|
4769
4769
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
4770
4770
|
if (escapeValue) {
|
@@ -4778,8 +4778,8 @@ var require_lodash = __commonJS({
|
|
4778
4778
|
if (interpolateValue) {
|
4779
4779
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
4780
4780
|
}
|
4781
|
-
index = offset +
|
4782
|
-
return
|
4781
|
+
index = offset + match9.length;
|
4782
|
+
return match9;
|
4783
4783
|
});
|
4784
4784
|
source += "';\n";
|
4785
4785
|
var variable = hasOwnProperty.call(options, "variable") && options.variable;
|
@@ -4867,13 +4867,13 @@ var require_lodash = __commonJS({
|
|
4867
4867
|
}
|
4868
4868
|
if (isRegExp(separator)) {
|
4869
4869
|
if (string.slice(end).search(separator)) {
|
4870
|
-
var
|
4870
|
+
var match9, substring = result2;
|
4871
4871
|
if (!separator.global) {
|
4872
4872
|
separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
|
4873
4873
|
}
|
4874
4874
|
separator.lastIndex = 0;
|
4875
|
-
while (
|
4876
|
-
var newEnd =
|
4875
|
+
while (match9 = separator.exec(substring)) {
|
4876
|
+
var newEnd = match9.index;
|
4877
4877
|
}
|
4878
4878
|
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
4879
4879
|
}
|
@@ -5628,7 +5628,7 @@ var require_ua_parser = __commonJS({
|
|
5628
5628
|
}
|
5629
5629
|
};
|
5630
5630
|
var rgxMapper = function(ua, arrays) {
|
5631
|
-
var i = 0, j, k2, p, q2, matches,
|
5631
|
+
var i = 0, j, k2, p, q2, matches, match9;
|
5632
5632
|
while (i < arrays.length && !matches) {
|
5633
5633
|
var regex = arrays[i], props = arrays[i + 1];
|
5634
5634
|
j = k2 = 0;
|
@@ -5639,26 +5639,26 @@ var require_ua_parser = __commonJS({
|
|
5639
5639
|
matches = regex[j++].exec(ua);
|
5640
5640
|
if (!!matches) {
|
5641
5641
|
for (p = 0; p < props.length; p++) {
|
5642
|
-
|
5642
|
+
match9 = matches[++k2];
|
5643
5643
|
q2 = props[p];
|
5644
5644
|
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
5645
5645
|
if (q2.length === 2) {
|
5646
5646
|
if (typeof q2[1] == FUNC_TYPE) {
|
5647
|
-
this[q2[0]] = q2[1].call(this,
|
5647
|
+
this[q2[0]] = q2[1].call(this, match9);
|
5648
5648
|
} else {
|
5649
5649
|
this[q2[0]] = q2[1];
|
5650
5650
|
}
|
5651
5651
|
} else if (q2.length === 3) {
|
5652
5652
|
if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
|
5653
|
-
this[q2[0]] =
|
5653
|
+
this[q2[0]] = match9 ? q2[1].call(this, match9, q2[2]) : undefined2;
|
5654
5654
|
} else {
|
5655
|
-
this[q2[0]] =
|
5655
|
+
this[q2[0]] = match9 ? match9.replace(q2[1], q2[2]) : undefined2;
|
5656
5656
|
}
|
5657
5657
|
} else if (q2.length === 4) {
|
5658
|
-
this[q2[0]] =
|
5658
|
+
this[q2[0]] = match9 ? q2[3].call(this, match9.replace(q2[1], q2[2])) : undefined2;
|
5659
5659
|
}
|
5660
5660
|
} else {
|
5661
|
-
this[q2] =
|
5661
|
+
this[q2] = match9 ? match9 : undefined2;
|
5662
5662
|
}
|
5663
5663
|
}
|
5664
5664
|
}
|
@@ -8636,13 +8636,13 @@ var require_parser = __commonJS({
|
|
8636
8636
|
var toIntIfInt = function(v2) {
|
8637
8637
|
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
8638
8638
|
};
|
8639
|
-
var attachProperties = function(
|
8639
|
+
var attachProperties = function(match9, location, names, rawName) {
|
8640
8640
|
if (rawName && !names) {
|
8641
|
-
location[rawName] = toIntIfInt(
|
8641
|
+
location[rawName] = toIntIfInt(match9[1]);
|
8642
8642
|
} else {
|
8643
8643
|
for (var i = 0; i < names.length; i += 1) {
|
8644
|
-
if (
|
8645
|
-
location[names[i]] = toIntIfInt(
|
8644
|
+
if (match9[i + 1] != null) {
|
8645
|
+
location[names[i]] = toIntIfInt(match9[i + 1]);
|
8646
8646
|
}
|
8647
8647
|
}
|
8648
8648
|
}
|
@@ -9483,22 +9483,22 @@ var textEllipsis = (width) => ({
|
|
9483
9483
|
// src/Button/Button.tsx
|
9484
9484
|
var getOutlinedVariants = (base, hover, active, disabled, text, textDisabled) => {
|
9485
9485
|
return {
|
9486
|
-
bg: "
|
9486
|
+
bg: "transparent",
|
9487
9487
|
border: `solid $space$px $colors${base}`,
|
9488
9488
|
c: text,
|
9489
9489
|
"&[disabled]": {
|
9490
9490
|
c: textDisabled,
|
9491
|
-
bg: "
|
9491
|
+
bg: "transparent",
|
9492
9492
|
border: `solid $space$px $colors${disabled}`,
|
9493
9493
|
cursor: "not-allowed"
|
9494
9494
|
},
|
9495
9495
|
"&:not([disabled]):hover": {
|
9496
9496
|
border: `solid $space$px $colors${hover}`,
|
9497
|
-
bg: "
|
9497
|
+
bg: "transparent"
|
9498
9498
|
},
|
9499
9499
|
"&:not([disabled]):active": {
|
9500
9500
|
border: `solid $space$px $colors${active}`,
|
9501
|
-
bg: "
|
9501
|
+
bg: "transparent"
|
9502
9502
|
},
|
9503
9503
|
"&:not([disabled]):focus-visible": {
|
9504
9504
|
boxShadow: `0 0 0 3px $colors${base}`
|
@@ -11642,7 +11642,7 @@ var StyledFieldset = styled("fieldset", {
|
|
11642
11642
|
alignItems: "center",
|
11643
11643
|
justifyContent: "space-between",
|
11644
11644
|
border: "none",
|
11645
|
-
backgroundColor: "
|
11645
|
+
backgroundColor: "transparent"
|
11646
11646
|
});
|
11647
11647
|
var Fieldset = StyledFieldset;
|
11648
11648
|
|
@@ -12956,7 +12956,7 @@ var IconButton2 = styled(IconButton, {
|
|
12956
12956
|
active: {
|
12957
12957
|
true: {
|
12958
12958
|
color: "$on_surface_high",
|
12959
|
-
backgroundColor: "
|
12959
|
+
backgroundColor: "transparent"
|
12960
12960
|
},
|
12961
12961
|
false: {
|
12962
12962
|
border: "1px solid transparent",
|
@@ -12991,7 +12991,7 @@ var IconSection = styled(IconButton_default, {
|
|
12991
12991
|
h: "$14",
|
12992
12992
|
p: "$4",
|
12993
12993
|
r: "$1",
|
12994
|
-
bg: "
|
12994
|
+
bg: "transparent",
|
12995
12995
|
borderTopRightRadius: 0,
|
12996
12996
|
borderColor: "$border_bright",
|
12997
12997
|
borderBottomRightRadius: 0,
|
@@ -13186,8 +13186,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
13186
13186
|
});
|
13187
13187
|
var SheetContent = React27.forwardRef(
|
13188
13188
|
(_a8, forwardedRef) => {
|
13189
|
-
var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
|
13190
|
-
return /* @__PURE__ */ React27.createElement(Dialog.Portal,
|
13189
|
+
var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
|
13190
|
+
return /* @__PURE__ */ React27.createElement(Dialog.Portal, { container }, /* @__PURE__ */ React27.createElement(StyledOverlay, null), /* @__PURE__ */ React27.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
|
13191
13191
|
}
|
13192
13192
|
);
|
13193
13193
|
var SheetClose = Dialog.Close;
|
@@ -14020,16 +14020,16 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
14020
14020
|
|
14021
14021
|
// src/Prebuilt/components/EmojiReaction.jsx
|
14022
14022
|
init_define_process_env();
|
14023
|
-
import React34, {
|
14024
|
-
import { useMedia as
|
14023
|
+
import React34, { useState as useState12 } from "react";
|
14024
|
+
import { useMedia as useMedia5 } from "react-use";
|
14025
14025
|
import data from "@emoji-mart/data/sets/14/apple.json";
|
14026
14026
|
import { init } from "emoji-mart";
|
14027
14027
|
import {
|
14028
|
-
selectAvailableRoleNames,
|
14029
|
-
selectIsConnectedToRoom,
|
14028
|
+
selectAvailableRoleNames as selectAvailableRoleNames2,
|
14029
|
+
selectIsConnectedToRoom as selectIsConnectedToRoom2,
|
14030
14030
|
selectLocalPeerID,
|
14031
14031
|
useCustomEvent,
|
14032
|
-
useHMSStore as
|
14032
|
+
useHMSStore as useHMSStore10
|
14033
14033
|
} from "@100mslive/react-sdk";
|
14034
14034
|
import { EmojiIcon } from "@100mslive/react-icons";
|
14035
14035
|
|
@@ -14077,15 +14077,95 @@ var useDropdownList = ({ name, open }) => {
|
|
14077
14077
|
}, [open, name]);
|
14078
14078
|
};
|
14079
14079
|
|
14080
|
+
// src/Prebuilt/common/hooks.ts
|
14081
|
+
init_define_process_env();
|
14082
|
+
import { useEffect as useEffect12, useRef as useRef8, useState as useState11 } from "react";
|
14083
|
+
import { useMedia as useMedia4 } from "react-use";
|
14084
|
+
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
14085
|
+
import {
|
14086
|
+
parsedUserAgent as parsedUserAgent2,
|
14087
|
+
selectAvailableRoleNames,
|
14088
|
+
selectIsConnectedToRoom,
|
14089
|
+
selectPeerCount as selectPeerCount2,
|
14090
|
+
selectPeerMetadata,
|
14091
|
+
selectPeers,
|
14092
|
+
selectRemotePeers,
|
14093
|
+
useHMSStore as useHMSStore9,
|
14094
|
+
useHMSVanillaStore as useHMSVanillaStore4
|
14095
|
+
} from "@100mslive/react-sdk";
|
14096
|
+
var useFilteredRoles = () => {
|
14097
|
+
var _a8;
|
14098
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
14099
|
+
return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
|
14100
|
+
};
|
14101
|
+
var useDefaultChatSelection = () => {
|
14102
|
+
var _a8;
|
14103
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
14104
|
+
const roles = useFilteredRoles();
|
14105
|
+
if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
|
14106
|
+
return CHAT_SELECTOR.EVERYONE;
|
14107
|
+
}
|
14108
|
+
if (roles.length > 0) {
|
14109
|
+
return roles[0];
|
14110
|
+
}
|
14111
|
+
return "";
|
14112
|
+
};
|
14113
|
+
var useShowStreamingUI = () => {
|
14114
|
+
var _a8, _b7, _c;
|
14115
|
+
const layout = useRoomLayout();
|
14116
|
+
const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
14117
|
+
return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
|
14118
|
+
};
|
14119
|
+
var useParticipants = (params) => {
|
14120
|
+
var _a8;
|
14121
|
+
const isConnected = useHMSStore9(selectIsConnectedToRoom);
|
14122
|
+
const peerCount = useHMSStore9(selectPeerCount2);
|
14123
|
+
const availableRoles = useHMSStore9(selectAvailableRoleNames);
|
14124
|
+
let participantList = useHMSStore9(isConnected ? selectPeers : selectRemotePeers);
|
14125
|
+
const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
|
14126
|
+
const vanillaStore = useHMSVanillaStore4();
|
14127
|
+
if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
|
14128
|
+
participantList = participantList.filter((peer) => {
|
14129
|
+
return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
|
14130
|
+
});
|
14131
|
+
}
|
14132
|
+
if ((params == null ? void 0 : params.role) && availableRoles.includes(params.role)) {
|
14133
|
+
participantList = participantList.filter((peer) => peer.roleName === params.role);
|
14134
|
+
}
|
14135
|
+
if (params == null ? void 0 : params.search) {
|
14136
|
+
const search = params.search;
|
14137
|
+
participantList = participantList.filter((peer) => peer.name.toLowerCase().includes(search));
|
14138
|
+
}
|
14139
|
+
return { participants: participantList, isConnected, peerCount, rolesWithParticipants };
|
14140
|
+
};
|
14141
|
+
var useIsLandscape = () => {
|
14142
|
+
const isMobile = parsedUserAgent2.getDevice().type === "mobile";
|
14143
|
+
const isLandscape = useMedia4(config.media.ls);
|
14144
|
+
return isMobile && isLandscape;
|
14145
|
+
};
|
14146
|
+
var useLandscapeHLSStream = () => {
|
14147
|
+
const isLandscape = useIsLandscape();
|
14148
|
+
const { screenType } = useRoomLayoutConferencingScreen();
|
14149
|
+
return isLandscape && screenType === "hls_live_streaming";
|
14150
|
+
};
|
14151
|
+
var useMobileHLSStream = () => {
|
14152
|
+
const isMobile = useMedia4(config.media.md);
|
14153
|
+
const { screenType } = useRoomLayoutConferencingScreen();
|
14154
|
+
return isMobile && screenType === "hls_live_streaming";
|
14155
|
+
};
|
14156
|
+
|
14080
14157
|
// src/Prebuilt/components/EmojiReaction.jsx
|
14081
14158
|
init({ data });
|
14082
14159
|
var EmojiReaction = () => {
|
14083
|
-
const [open, setOpen] =
|
14084
|
-
const isConnected =
|
14160
|
+
const [open, setOpen] = useState12(false);
|
14161
|
+
const isConnected = useHMSStore10(selectIsConnectedToRoom2);
|
14085
14162
|
useDropdownList({ open, name: "EmojiReaction" });
|
14086
|
-
const roles =
|
14087
|
-
const localPeerId =
|
14088
|
-
const isMobile =
|
14163
|
+
const roles = useHMSStore10(selectAvailableRoleNames2);
|
14164
|
+
const localPeerId = useHMSStore10(selectLocalPeerID);
|
14165
|
+
const isMobile = useMedia5(config.media.md);
|
14166
|
+
const isLandscape = useMedia5(config.media.ls);
|
14167
|
+
const isMobileHLSStream = useMobileHLSStream();
|
14168
|
+
const isLandscapeStream = useLandscapeHLSStream();
|
14089
14169
|
const { sendEvent } = useCustomEvent({
|
14090
14170
|
type: EMOJI_REACTION_TYPE
|
14091
14171
|
});
|
@@ -14102,7 +14182,24 @@ var EmojiReaction = () => {
|
|
14102
14182
|
if (!isConnected) {
|
14103
14183
|
return null;
|
14104
14184
|
}
|
14105
|
-
|
14185
|
+
if ((isMobile || isLandscape) && !(isLandscapeStream || isMobileHLSStream)) {
|
14186
|
+
return /* @__PURE__ */ React34.createElement(EmojiCard, { sendReaction });
|
14187
|
+
}
|
14188
|
+
return /* @__PURE__ */ React34.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React34.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React34.createElement(
|
14189
|
+
IconButton_default,
|
14190
|
+
{
|
14191
|
+
css: isMobile || isLandscape ? { bg: "$surface_default", r: "$round", border: "1px solid $border_bright" } : {}
|
14192
|
+
},
|
14193
|
+
/* @__PURE__ */ React34.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React34.createElement(Box, null, /* @__PURE__ */ React34.createElement(EmojiIcon, null)))
|
14194
|
+
)), /* @__PURE__ */ React34.createElement(
|
14195
|
+
Dropdown.Content,
|
14196
|
+
{
|
14197
|
+
sideOffset: 5,
|
14198
|
+
align: isMobileHLSStream || isLandscapeStream ? "end" : "center",
|
14199
|
+
css: { p: "$8", bg: "$surface_default" }
|
14200
|
+
},
|
14201
|
+
/* @__PURE__ */ React34.createElement(EmojiCard, { sendReaction })
|
14202
|
+
));
|
14106
14203
|
};
|
14107
14204
|
|
14108
14205
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
@@ -14121,8 +14218,8 @@ import {
|
|
14121
14218
|
|
14122
14219
|
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
14123
14220
|
init_define_process_env();
|
14124
|
-
import React38, { Fragment as
|
14125
|
-
import { selectIsConnectedToRoom as
|
14221
|
+
import React38, { Fragment as Fragment4, useState as useState13 } from "react";
|
14222
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom3, selectPermissions as selectPermissions2, useHMSStore as useHMSStore11, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
|
14126
14223
|
import { ExitIcon, StopIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
|
14127
14224
|
|
14128
14225
|
// src/Prebuilt/components/Leave/EndSessionContent.tsx
|
@@ -14262,13 +14359,14 @@ var LeaveSessionContent = ({
|
|
14262
14359
|
var DesktopLeaveRoom = ({
|
14263
14360
|
leaveRoom,
|
14264
14361
|
screenType,
|
14265
|
-
endRoom
|
14362
|
+
endRoom,
|
14363
|
+
container
|
14266
14364
|
}) => {
|
14267
|
-
const [open, setOpen] =
|
14268
|
-
const [showLeaveRoomAlert, setShowLeaveRoomAlert] =
|
14269
|
-
const [showEndStreamAlert, setShowEndStreamAlert] =
|
14270
|
-
const isConnected =
|
14271
|
-
const permissions =
|
14365
|
+
const [open, setOpen] = useState13(false);
|
14366
|
+
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState13(false);
|
14367
|
+
const [showEndStreamAlert, setShowEndStreamAlert] = useState13(false);
|
14368
|
+
const isConnected = useHMSStore11(selectIsConnectedToRoom3);
|
14369
|
+
const permissions = useHMSStore11(selectPermissions2);
|
14272
14370
|
const { isStreamingOn } = useRecordingStreaming3();
|
14273
14371
|
const showStream = screenType !== "hls_live_streaming" && isStreamingOn && (permissions == null ? void 0 : permissions.hlsStreaming);
|
14274
14372
|
const showLeaveOptions = (permissions == null ? void 0 : permissions.hlsStreaming) && isStreamingOn || (permissions == null ? void 0 : permissions.endRoom);
|
@@ -14276,7 +14374,7 @@ var DesktopLeaveRoom = ({
|
|
14276
14374
|
if (!permissions || !isConnected) {
|
14277
14375
|
return null;
|
14278
14376
|
}
|
14279
|
-
return /* @__PURE__ */ React38.createElement(
|
14377
|
+
return /* @__PURE__ */ React38.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React38.createElement(Flex, null, /* @__PURE__ */ React38.createElement(
|
14280
14378
|
LeaveIconButton,
|
14281
14379
|
{
|
14282
14380
|
key: "LeaveRoom",
|
@@ -14299,7 +14397,7 @@ var DesktopLeaveRoom = ({
|
|
14299
14397
|
}
|
14300
14398
|
},
|
14301
14399
|
/* @__PURE__ */ React38.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React38.createElement(VerticalMenuIcon2, null))
|
14302
|
-
), /* @__PURE__ */ React38.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React38.createElement(
|
14400
|
+
), /* @__PURE__ */ React38.createElement(Dropdown.Portal, { container }, /* @__PURE__ */ React38.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React38.createElement(
|
14303
14401
|
Dropdown.Item,
|
14304
14402
|
{
|
14305
14403
|
css: {
|
@@ -14350,7 +14448,7 @@ var DesktopLeaveRoom = ({
|
|
14350
14448
|
css: { p: "$8 $4" }
|
14351
14449
|
}
|
14352
14450
|
)
|
14353
|
-
)))) : /* @__PURE__ */ React38.createElement(
|
14451
|
+
))))) : /* @__PURE__ */ React38.createElement(
|
14354
14452
|
LeaveIconButton,
|
14355
14453
|
{
|
14356
14454
|
onClick: () => {
|
@@ -14373,91 +14471,13 @@ var DesktopLeaveRoom = ({
|
|
14373
14471
|
|
14374
14472
|
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
14375
14473
|
init_define_process_env();
|
14376
|
-
import React39, { Fragment as
|
14474
|
+
import React39, { Fragment as Fragment5, useState as useState14 } from "react";
|
14377
14475
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom4, selectPermissions as selectPermissions3, useHMSStore as useHMSStore12, useRecordingStreaming as useRecordingStreaming4 } from "@100mslive/react-sdk";
|
14378
14476
|
import { CrossIcon as CrossIcon6, ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
|
14379
|
-
|
14380
|
-
// src/Prebuilt/common/hooks.ts
|
14381
|
-
init_define_process_env();
|
14382
|
-
import { useEffect as useEffect12, useRef as useRef8, useState as useState13 } from "react";
|
14383
|
-
import { useMedia as useMedia5 } from "react-use";
|
14384
|
-
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
14385
|
-
import {
|
14386
|
-
parsedUserAgent as parsedUserAgent2,
|
14387
|
-
selectAvailableRoleNames as selectAvailableRoleNames2,
|
14388
|
-
selectIsConnectedToRoom as selectIsConnectedToRoom3,
|
14389
|
-
selectPeerCount as selectPeerCount2,
|
14390
|
-
selectPeerMetadata,
|
14391
|
-
selectPeers,
|
14392
|
-
selectRemotePeers,
|
14393
|
-
useHMSStore as useHMSStore11,
|
14394
|
-
useHMSVanillaStore as useHMSVanillaStore4
|
14395
|
-
} from "@100mslive/react-sdk";
|
14396
|
-
var useFilteredRoles = () => {
|
14397
|
-
var _a8;
|
14398
|
-
const { elements } = useRoomLayoutConferencingScreen();
|
14399
|
-
return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
|
14400
|
-
};
|
14401
|
-
var useDefaultChatSelection = () => {
|
14402
|
-
var _a8;
|
14403
|
-
const { elements } = useRoomLayoutConferencingScreen();
|
14404
|
-
const roles = useFilteredRoles();
|
14405
|
-
if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
|
14406
|
-
return CHAT_SELECTOR.EVERYONE;
|
14407
|
-
}
|
14408
|
-
if (roles.length > 0) {
|
14409
|
-
return roles[0];
|
14410
|
-
}
|
14411
|
-
return "";
|
14412
|
-
};
|
14413
|
-
var useShowStreamingUI = () => {
|
14414
|
-
var _a8, _b7, _c;
|
14415
|
-
const layout = useRoomLayout();
|
14416
|
-
const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
14417
|
-
return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
|
14418
|
-
};
|
14419
|
-
var useParticipants = (params) => {
|
14420
|
-
var _a8;
|
14421
|
-
const isConnected = useHMSStore11(selectIsConnectedToRoom3);
|
14422
|
-
const peerCount = useHMSStore11(selectPeerCount2);
|
14423
|
-
const availableRoles = useHMSStore11(selectAvailableRoleNames2);
|
14424
|
-
let participantList = useHMSStore11(isConnected ? selectPeers : selectRemotePeers);
|
14425
|
-
const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
|
14426
|
-
const vanillaStore = useHMSVanillaStore4();
|
14427
|
-
if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
|
14428
|
-
participantList = participantList.filter((peer) => {
|
14429
|
-
return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
|
14430
|
-
});
|
14431
|
-
}
|
14432
|
-
if ((params == null ? void 0 : params.role) && availableRoles.includes(params.role)) {
|
14433
|
-
participantList = participantList.filter((peer) => peer.roleName === params.role);
|
14434
|
-
}
|
14435
|
-
if (params == null ? void 0 : params.search) {
|
14436
|
-
const search = params.search;
|
14437
|
-
participantList = participantList.filter((peer) => peer.name.toLowerCase().includes(search));
|
14438
|
-
}
|
14439
|
-
return { participants: participantList, isConnected, peerCount, rolesWithParticipants };
|
14440
|
-
};
|
14441
|
-
var useIsLandscape = () => {
|
14442
|
-
const isMobile = parsedUserAgent2.getDevice().type === "mobile";
|
14443
|
-
const isLandscape = useMedia5(config.media.ls);
|
14444
|
-
return isMobile && isLandscape;
|
14445
|
-
};
|
14446
|
-
var useLandscapeHLSStream = () => {
|
14447
|
-
const isLandscape = useIsLandscape();
|
14448
|
-
const { screenType } = useRoomLayoutConferencingScreen();
|
14449
|
-
return isLandscape && screenType === "hls_live_streaming";
|
14450
|
-
};
|
14451
|
-
var useMobileHLSStream = () => {
|
14452
|
-
const isMobile = useMedia5(config.media.md);
|
14453
|
-
const { screenType } = useRoomLayoutConferencingScreen();
|
14454
|
-
return isMobile && screenType === "hls_live_streaming";
|
14455
|
-
};
|
14456
|
-
|
14457
|
-
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
14458
14477
|
var MwebLeaveRoom = ({
|
14459
14478
|
leaveRoom,
|
14460
|
-
endRoom
|
14479
|
+
endRoom,
|
14480
|
+
container
|
14461
14481
|
}) => {
|
14462
14482
|
const [open, setOpen] = useState14(false);
|
14463
14483
|
const { screenType } = useRoomLayoutConferencingScreen();
|
@@ -14472,7 +14492,14 @@ var MwebLeaveRoom = ({
|
|
14472
14492
|
if (!permissions || !isConnected) {
|
14473
14493
|
return null;
|
14474
14494
|
}
|
14475
|
-
return /* @__PURE__ */ React39.createElement(
|
14495
|
+
return /* @__PURE__ */ React39.createElement(Fragment5, null, showLeaveOptions ? /* @__PURE__ */ React39.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React39.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React39.createElement(
|
14496
|
+
LeaveButton,
|
14497
|
+
{
|
14498
|
+
onClick: () => {
|
14499
|
+
setOpen((open2) => !open2);
|
14500
|
+
}
|
14501
|
+
}
|
14502
|
+
)), /* @__PURE__ */ React39.createElement(Sheet.Content, { container }, /* @__PURE__ */ React39.createElement(
|
14476
14503
|
LeaveCard,
|
14477
14504
|
{
|
14478
14505
|
title: showStream ? "Leave Stream" : "Leave Session",
|
@@ -14499,19 +14526,19 @@ var MwebLeaveRoom = ({
|
|
14499
14526
|
setShowEndStreamAlert(true);
|
14500
14527
|
}
|
14501
14528
|
}
|
14502
|
-
))) : /* @__PURE__ */ React39.createElement(LeaveButton, { onClick: () => setShowLeaveRoomAlert(true) }), /* @__PURE__ */ React39.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React39.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React39.createElement(
|
14529
|
+
))) : /* @__PURE__ */ React39.createElement(LeaveButton, { onClick: () => setShowLeaveRoomAlert(true) }), /* @__PURE__ */ React39.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React39.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" }, container }, /* @__PURE__ */ React39.createElement(
|
14503
14530
|
EndSessionContent,
|
14504
14531
|
{
|
14505
14532
|
setShowEndStreamAlert,
|
14506
14533
|
leaveRoom: isStreamingOn ? leaveRoom : endRoom,
|
14507
14534
|
isStreamingOn
|
14508
14535
|
}
|
14509
|
-
))), /* @__PURE__ */ React39.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React39.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React39.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
|
14536
|
+
))), /* @__PURE__ */ React39.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React39.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" }, container }, /* @__PURE__ */ React39.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
|
14510
14537
|
};
|
14511
14538
|
var LeaveButton = ({ onClick }) => {
|
14512
14539
|
const isMobileHLSStream = useMobileHLSStream();
|
14513
14540
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
14514
|
-
return isMobileHLSStream || isLandscapeHLSStream ? /* @__PURE__ */ React39.createElement(IconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick
|
14541
|
+
return isMobileHLSStream || isLandscapeHLSStream ? /* @__PURE__ */ React39.createElement(IconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick }, /* @__PURE__ */ React39.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React39.createElement(Box, null, /* @__PURE__ */ React39.createElement(CrossIcon6, null)))) : /* @__PURE__ */ React39.createElement(
|
14515
14542
|
LeaveIconButton,
|
14516
14543
|
{
|
14517
14544
|
key: "LeaveRoom",
|
@@ -14520,14 +14547,17 @@ var LeaveButton = ({ onClick }) => {
|
|
14520
14547
|
borderTopRightRadius: "$1",
|
14521
14548
|
borderBottomRightRadius: "$1"
|
14522
14549
|
},
|
14523
|
-
onClick
|
14550
|
+
onClick
|
14524
14551
|
},
|
14525
14552
|
/* @__PURE__ */ React39.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React39.createElement(Box, null, /* @__PURE__ */ React39.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
|
14526
14553
|
);
|
14527
14554
|
};
|
14528
14555
|
|
14529
14556
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
14530
|
-
var LeaveRoom = ({
|
14557
|
+
var LeaveRoom = ({
|
14558
|
+
screenType,
|
14559
|
+
container
|
14560
|
+
}) => {
|
14531
14561
|
const isConnected = useHMSStore13(selectIsConnectedToRoom5);
|
14532
14562
|
const permissions = useHMSStore13(selectPermissions4);
|
14533
14563
|
const isMobile = useMedia6(config.media.md);
|
@@ -14568,9 +14598,9 @@ var LeaveRoom = ({ screenType }) => {
|
|
14568
14598
|
return null;
|
14569
14599
|
}
|
14570
14600
|
if (isMobileHLSStream || isLandscapeHLSStream) {
|
14571
|
-
return /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom });
|
14601
|
+
return /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container });
|
14572
14602
|
}
|
14573
|
-
return isMobile ? /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom }) : /* @__PURE__ */ React40.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom });
|
14603
|
+
return isMobile ? /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container }) : /* @__PURE__ */ React40.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom, container });
|
14574
14604
|
};
|
14575
14605
|
|
14576
14606
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
@@ -14580,7 +14610,7 @@ import { useMedia as useMedia9 } from "react-use";
|
|
14580
14610
|
|
14581
14611
|
// src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
|
14582
14612
|
init_define_process_env();
|
14583
|
-
import React52, { Fragment as
|
14613
|
+
import React52, { Fragment as Fragment6, useState as useState23 } from "react";
|
14584
14614
|
import { HMSHLSPlayer } from "@100mslive/hls-player";
|
14585
14615
|
import { match as match3 } from "ts-pattern";
|
14586
14616
|
import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions15, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
|
@@ -15351,7 +15381,7 @@ var DialogInputFile = (_a8) => {
|
|
15351
15381
|
"&:hover": {
|
15352
15382
|
border: "none",
|
15353
15383
|
background: "none",
|
15354
|
-
bg: "
|
15384
|
+
bg: "transparent !important"
|
15355
15385
|
}
|
15356
15386
|
}
|
15357
15387
|
},
|
@@ -16119,7 +16149,7 @@ var DesktopOptions = ({
|
|
16119
16149
|
return copy;
|
16120
16150
|
});
|
16121
16151
|
};
|
16122
|
-
return /* @__PURE__ */ React52.createElement(
|
16152
|
+
return /* @__PURE__ */ React52.createElement(Fragment6, null, /* @__PURE__ */ React52.createElement(
|
16123
16153
|
Dropdown.Root,
|
16124
16154
|
{
|
16125
16155
|
open: openModals.has(MODALS.MORE_SETTINGS),
|
@@ -16326,8 +16356,8 @@ init_define_process_env();
|
|
16326
16356
|
var logDisabled_ = true;
|
16327
16357
|
var deprecationWarnings_ = true;
|
16328
16358
|
function extractVersion(uastring, expr, pos) {
|
16329
|
-
const
|
16330
|
-
return
|
16359
|
+
const match9 = uastring.match(expr);
|
16360
|
+
return match9 && match9.length >= pos && parseInt(match9[pos], 10);
|
16331
16361
|
}
|
16332
16362
|
function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
|
16333
16363
|
if (!window2.RTCPeerConnection) {
|
@@ -16629,7 +16659,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16629
16659
|
if (matches) {
|
16630
16660
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
16631
16661
|
devices = devices.filter((d2) => d2.kind === "videoinput");
|
16632
|
-
let dev = devices.find((d2) => matches.some((
|
16662
|
+
let dev = devices.find((d2) => matches.some((match9) => d2.label.toLowerCase().includes(match9)));
|
16633
16663
|
if (!dev && devices.length && matches.includes("back")) {
|
16634
16664
|
dev = devices[devices.length - 1];
|
16635
16665
|
}
|
@@ -18056,11 +18086,11 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18056
18086
|
});
|
18057
18087
|
};
|
18058
18088
|
const getRemoteFirefoxVersion = function(description) {
|
18059
|
-
const
|
18060
|
-
if (
|
18089
|
+
const match9 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
18090
|
+
if (match9 === null || match9.length < 2) {
|
18061
18091
|
return -1;
|
18062
18092
|
}
|
18063
|
-
const version = parseInt(
|
18093
|
+
const version = parseInt(match9[1], 10);
|
18064
18094
|
return version !== version ? -1 : version;
|
18065
18095
|
};
|
18066
18096
|
const getCanSendMaxMessageSize = function(remoteIsFirefox) {
|
@@ -18085,12 +18115,12 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18085
18115
|
if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
|
18086
18116
|
maxMessageSize = 65535;
|
18087
18117
|
}
|
18088
|
-
const
|
18118
|
+
const match9 = import_sdp.default.matchPrefix(
|
18089
18119
|
description.sdp,
|
18090
18120
|
"a=max-message-size:"
|
18091
18121
|
);
|
18092
|
-
if (
|
18093
|
-
maxMessageSize = parseInt(
|
18122
|
+
if (match9.length > 0) {
|
18123
|
+
maxMessageSize = parseInt(match9[0].substring(19), 10);
|
18094
18124
|
} else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
|
18095
18125
|
maxMessageSize = 2147483637;
|
18096
18126
|
}
|
@@ -18436,7 +18466,7 @@ var S = (a2, e) => {
|
|
18436
18466
|
$r.call(e, t) && Fr(a2, t, e[t]);
|
18437
18467
|
return a2;
|
18438
18468
|
};
|
18439
|
-
var
|
18469
|
+
var M = (a2, e) => ya(a2, ka(e));
|
18440
18470
|
var Yi = (a2, e) => {
|
18441
18471
|
var t = {};
|
18442
18472
|
for (var i in a2)
|
@@ -18448,7 +18478,7 @@ var Yi = (a2, e) => {
|
|
18448
18478
|
};
|
18449
18479
|
var ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18450
18480
|
var dr = ba((Xc, $a) => {
|
18451
|
-
$a.exports = { version: "0.11.8-alpha.
|
18481
|
+
$a.exports = { version: "0.11.8-alpha.8", 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"] };
|
18452
18482
|
});
|
18453
18483
|
var Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
|
18454
18484
|
var Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
|
@@ -18939,12 +18969,12 @@ var R = class {
|
|
18939
18969
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Wa(), this.device_id = vs();
|
18940
18970
|
}
|
18941
18971
|
toSignalParams() {
|
18942
|
-
return { name: this.name, info:
|
18972
|
+
return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Be }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
18943
18973
|
}
|
18944
18974
|
};
|
18945
|
-
var
|
18975
|
+
var y = class {
|
18946
18976
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
18947
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(
|
18977
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
18948
18978
|
return new R({ name: o, level: n, properties: l });
|
18949
18979
|
}
|
18950
18980
|
static disconnect(e, t) {
|
@@ -18958,7 +18988,7 @@ var M = class {
|
|
18958
18988
|
}
|
18959
18989
|
static join(i) {
|
18960
18990
|
var r = i, { error: e } = r, t = Yi(r, ["error"]);
|
18961
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
18991
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
18962
18992
|
return new R({ name: s, level: o, properties: n });
|
18963
18993
|
}
|
18964
18994
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -19001,7 +19031,7 @@ var M = class {
|
|
19001
19031
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
19002
19032
|
if (!t && e.degradedAt instanceof Date) {
|
19003
19033
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
19004
|
-
s =
|
19034
|
+
s = M(S({}, s), { duration: n, restoredAt: o });
|
19005
19035
|
}
|
19006
19036
|
return new R({ name: i, level: r, properties: s });
|
19007
19037
|
}
|
@@ -19029,7 +19059,7 @@ var M = class {
|
|
19029
19059
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
19030
19060
|
}
|
19031
19061
|
};
|
19032
|
-
|
19062
|
+
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
19033
19063
|
var ur = class {
|
19034
19064
|
constructor() {
|
19035
19065
|
this.storage = new ne("hms-device-selection");
|
@@ -20184,6 +20214,8 @@ var MwebOptions = ({
|
|
20184
20214
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
20185
20215
|
const { title, description } = useRoomLayoutHeader();
|
20186
20216
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
20217
|
+
const isMobileHLSStream = useMobileHLSStream();
|
20218
|
+
const isLandscapeHLSStream = useLandscapeHLSStream();
|
20187
20219
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
20188
20220
|
const updateState = (modalName, value) => {
|
20189
20221
|
setOpenModals((modals) => {
|
@@ -20197,7 +20229,7 @@ var MwebOptions = ({
|
|
20197
20229
|
});
|
20198
20230
|
};
|
20199
20231
|
useClickAway(emojiCardRef, () => setShowEmojiCard(false));
|
20200
|
-
return /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ React58.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ React58.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ React58.createElement(IconButton_default, { css: {
|
20232
|
+
return /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ React58.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ React58.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ React58.createElement(IconButton_default, { css: { bg: isMobileHLSStream || isLandscapeHLSStream ? "$surface_default" : "" } }, /* @__PURE__ */ React58.createElement(HamburgerMenuIcon2, null)))), /* @__PURE__ */ React58.createElement(Sheet.Content, { css: { bg: "$surface_dim", pb: "$14" } }, /* @__PURE__ */ React58.createElement(
|
20201
20233
|
Sheet.Title,
|
20202
20234
|
{
|
20203
20235
|
css: {
|
@@ -20252,7 +20284,7 @@ var MwebOptions = ({
|
|
20252
20284
|
isHandRaised ? /* @__PURE__ */ React58.createElement(HandRaiseSlashedIcon, null) : /* @__PURE__ */ React58.createElement(HandIcon2, null),
|
20253
20285
|
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
|
20254
20286
|
) : null,
|
20255
|
-
(elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React58.createElement(
|
20287
|
+
(elements == null ? void 0 : elements.emoji_reactions) && !(isLandscapeHLSStream || isMobileHLSStream) && /* @__PURE__ */ React58.createElement(
|
20256
20288
|
ActionTile.Root,
|
20257
20289
|
{
|
20258
20290
|
onClick: () => {
|
@@ -20412,22 +20444,31 @@ var MoreSettings = ({
|
|
20412
20444
|
init_define_process_env();
|
20413
20445
|
import React60 from "react";
|
20414
20446
|
import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
|
20415
|
-
var RaiseHand = () => {
|
20447
|
+
var RaiseHand = ({ css: css2 }) => {
|
20416
20448
|
const { isHandRaised, toggleHandRaise } = useMyMetadata();
|
20417
|
-
return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
|
20418
|
-
|
20419
|
-
|
20449
|
+
return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
|
20450
|
+
IconButton_default,
|
20451
|
+
{
|
20452
|
+
"data-testid": "hand_raise_btn",
|
20453
|
+
css: css2,
|
20454
|
+
active: !isHandRaised,
|
20455
|
+
onClick: () => __async(void 0, null, function* () {
|
20456
|
+
return yield toggleHandRaise();
|
20457
|
+
})
|
20458
|
+
},
|
20459
|
+
isHandRaised ? /* @__PURE__ */ React60.createElement(HandRaiseSlashedIcon2, null) : /* @__PURE__ */ React60.createElement(HandIcon3, null)
|
20460
|
+
));
|
20420
20461
|
};
|
20421
20462
|
|
20422
20463
|
// src/Prebuilt/components/ScreenShareToggle.jsx
|
20423
20464
|
init_define_process_env();
|
20424
|
-
import React67, { Fragment as
|
20465
|
+
import React67, { Fragment as Fragment8 } from "react";
|
20425
20466
|
import { selectIsAllowedToPublish, useAwayNotifications, useHMSStore as useHMSStore30, useScreenShare as useScreenShare3 } from "@100mslive/react-sdk";
|
20426
20467
|
import { ShareScreenIcon as ShareScreenIcon2 } from "@100mslive/react-icons";
|
20427
20468
|
|
20428
20469
|
// src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx
|
20429
20470
|
init_define_process_env();
|
20430
|
-
import React66, { Fragment as
|
20471
|
+
import React66, { Fragment as Fragment7, useState as useState30 } from "react";
|
20431
20472
|
import { useScreenShare as useScreenShare2 } from "@100mslive/react-sdk";
|
20432
20473
|
import { StarIcon, VerticalMenuIcon as VerticalMenuIcon3 } from "@100mslive/react-icons";
|
20433
20474
|
|
@@ -20610,7 +20651,7 @@ var UploadedFile = ({ pdfFile, setPDFFile, onOpenChange }) => {
|
|
20610
20651
|
w: "100%",
|
20611
20652
|
"&:focus": {
|
20612
20653
|
boxShadow: "0 0 0 1px $colors$primary_default",
|
20613
|
-
border: "1px solid
|
20654
|
+
border: "1px solid transparent"
|
20614
20655
|
},
|
20615
20656
|
mb: 0,
|
20616
20657
|
mt: "$6"
|
@@ -20688,7 +20729,7 @@ function ShareScreenOptions() {
|
|
20688
20729
|
});
|
20689
20730
|
};
|
20690
20731
|
const { toggleScreenShare } = useScreenShare2();
|
20691
|
-
return /* @__PURE__ */ React66.createElement(
|
20732
|
+
return /* @__PURE__ */ React66.createElement(Fragment7, null, /* @__PURE__ */ React66.createElement(
|
20692
20733
|
Dropdown.Root,
|
20693
20734
|
{
|
20694
20735
|
open: openModals.has(MODALS3.SHARE),
|
@@ -20717,7 +20758,7 @@ function ShareScreenOptions() {
|
|
20717
20758
|
pt: "$10",
|
20718
20759
|
pb: "$6",
|
20719
20760
|
"&:hover": {
|
20720
|
-
bg: "
|
20761
|
+
bg: "transparent",
|
20721
20762
|
cursor: "default"
|
20722
20763
|
}
|
20723
20764
|
}
|
@@ -20736,7 +20777,7 @@ function ShareScreenOptions() {
|
|
20736
20777
|
pt: "$6",
|
20737
20778
|
pb: "$10",
|
20738
20779
|
"&:hover": {
|
20739
|
-
bg: "
|
20780
|
+
bg: "transparent",
|
20740
20781
|
cursor: "default"
|
20741
20782
|
}
|
20742
20783
|
}
|
@@ -20890,7 +20931,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
20890
20931
|
if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
|
20891
20932
|
return null;
|
20892
20933
|
}
|
20893
|
-
return /* @__PURE__ */ React67.createElement(
|
20934
|
+
return /* @__PURE__ */ React67.createElement(Fragment8, null, /* @__PURE__ */ React67.createElement(Flex, { direction: "row", css: { "@md": { display: "none" } } }, /* @__PURE__ */ React67.createElement(
|
20894
20935
|
ScreenShareButton,
|
20895
20936
|
{
|
20896
20937
|
variant: "standard",
|
@@ -20962,7 +21003,7 @@ var ChatToggle = () => {
|
|
20962
21003
|
|
20963
21004
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
20964
21005
|
init_define_process_env();
|
20965
|
-
import React74, { Fragment as
|
21006
|
+
import React74, { Fragment as Fragment9, useCallback as useCallback18, useState as useState32 } from "react";
|
20966
21007
|
import { useDebounce, useMedia as useMedia10 } from "react-use";
|
20967
21008
|
import {
|
20968
21009
|
selectHandRaisedPeers,
|
@@ -21418,7 +21459,7 @@ var ParticipantList = ({
|
|
21418
21459
|
if (peerCount === 0) {
|
21419
21460
|
return null;
|
21420
21461
|
}
|
21421
|
-
return /* @__PURE__ */ React74.createElement(
|
21462
|
+
return /* @__PURE__ */ React74.createElement(Fragment9, null, /* @__PURE__ */ React74.createElement(
|
21422
21463
|
Flex,
|
21423
21464
|
{
|
21424
21465
|
direction: "column",
|
@@ -21890,7 +21931,7 @@ import {
|
|
21890
21931
|
|
21891
21932
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
21892
21933
|
init_define_process_env();
|
21893
|
-
import React131, { Fragment as
|
21934
|
+
import React131, { Fragment as Fragment12, useCallback as useCallback31, useEffect as useEffect34, useMemo as useMemo11, useState as useState55 } from "react";
|
21894
21935
|
import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
|
21895
21936
|
import {
|
21896
21937
|
HMSRoomState as HMSRoomState5,
|
@@ -21908,10 +21949,10 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
21908
21949
|
|
21909
21950
|
// src/Prebuilt/layouts/SidePane.tsx
|
21910
21951
|
init_define_process_env();
|
21911
|
-
import
|
21952
|
+
import React127, { useEffect as useEffect33 } from "react";
|
21912
21953
|
import { useMedia as useMedia22 } from "react-use";
|
21913
|
-
import { match as
|
21914
|
-
import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as
|
21954
|
+
import { match as match8 } from "ts-pattern";
|
21955
|
+
import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
|
21915
21956
|
|
21916
21957
|
// src/Prebuilt/components/Polls/Polls.tsx
|
21917
21958
|
init_define_process_env();
|
@@ -22301,7 +22342,7 @@ var OptionInputWithDelete = ({
|
|
22301
22342
|
key: index,
|
22302
22343
|
onChange: (event) => handleOptionTextChange(index, event.target.value)
|
22303
22344
|
}
|
22304
|
-
), /* @__PURE__ */ React84.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "
|
22345
|
+
), /* @__PURE__ */ React84.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "transparent", border: "none" } }, /* @__PURE__ */ React84.createElement(TrashIcon2, null)));
|
22305
22346
|
};
|
22306
22347
|
|
22307
22348
|
// src/Prebuilt/components/Polls/common/VoteCount.tsx
|
@@ -22840,7 +22881,7 @@ var getFormattedTime = (milliseconds, precise = true) => {
|
|
22840
22881
|
const totalSeconds = milliseconds / 1e3;
|
22841
22882
|
const hours = Math.floor(totalSeconds / 3600);
|
22842
22883
|
const minutes = Math.floor(totalSeconds % 3600 / 60);
|
22843
|
-
const seconds =
|
22884
|
+
const seconds = totalSeconds % 60;
|
22844
22885
|
let formattedTime = "";
|
22845
22886
|
if (hours) {
|
22846
22887
|
formattedTime += `${hours}h `;
|
@@ -22851,7 +22892,7 @@ var getFormattedTime = (milliseconds, precise = true) => {
|
|
22851
22892
|
if (!precise && (hours || minutes)) {
|
22852
22893
|
return formattedTime;
|
22853
22894
|
}
|
22854
|
-
formattedTime += `${seconds}s`;
|
22895
|
+
formattedTime += `${minutes >= 1 ? Math.floor(seconds) : seconds.toFixed(3)}s`;
|
22855
22896
|
return formattedTime;
|
22856
22897
|
};
|
22857
22898
|
|
@@ -23356,9 +23397,9 @@ var Voting = ({ id, toggleVoting }) => {
|
|
23356
23397
|
{
|
23357
23398
|
align: "center",
|
23358
23399
|
css: {
|
23359
|
-
gap: "$
|
23400
|
+
gap: "$4",
|
23360
23401
|
py: "$6",
|
23361
|
-
px: "$
|
23402
|
+
px: "$8",
|
23362
23403
|
my: "$4",
|
23363
23404
|
w: "100%",
|
23364
23405
|
color: "$on_surface_high",
|
@@ -23381,7 +23422,8 @@ var Voting = ({ id, toggleVoting }) => {
|
|
23381
23422
|
css: {
|
23382
23423
|
marginLeft: "auto",
|
23383
23424
|
cursor: "pointer",
|
23384
|
-
"&:hover": { opacity: "0.8" }
|
23425
|
+
"&:hover": { opacity: "0.8" },
|
23426
|
+
height: "fit-content"
|
23385
23427
|
}
|
23386
23428
|
},
|
23387
23429
|
/* @__PURE__ */ React99.createElement(CrossIcon14, { onClick: toggleVoting })
|
@@ -23424,19 +23466,69 @@ var Polls = () => {
|
|
23424
23466
|
|
23425
23467
|
// src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
|
23426
23468
|
init_define_process_env();
|
23427
|
-
import
|
23469
|
+
import React104 from "react";
|
23428
23470
|
import { CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
|
23429
23471
|
|
23472
|
+
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
23473
|
+
init_define_process_env();
|
23474
|
+
import React101, { useEffect as useEffect23, useState as useState41 } from "react";
|
23475
|
+
import { selectDominantSpeaker, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
|
23476
|
+
import { VolumeOneIcon } from "@100mslive/react-icons";
|
23477
|
+
var SpeakerTag = () => {
|
23478
|
+
const dominantSpeaker = useHMSStore48(selectDominantSpeaker);
|
23479
|
+
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React101.createElement(
|
23480
|
+
Flex,
|
23481
|
+
{
|
23482
|
+
align: "center",
|
23483
|
+
justify: "center",
|
23484
|
+
css: { flex: "1 1 0", color: "$on_surface_high", "@md": { display: "none" } }
|
23485
|
+
},
|
23486
|
+
/* @__PURE__ */ React101.createElement(VerticalDivider, { css: { ml: "$8" } }),
|
23487
|
+
/* @__PURE__ */ React101.createElement(VolumeOneIcon, null),
|
23488
|
+
/* @__PURE__ */ React101.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(200)), { ml: "$2" }), title: dominantSpeaker.name }, dominantSpeaker.name)
|
23489
|
+
);
|
23490
|
+
};
|
23491
|
+
var LogoImg = styled("img", {
|
23492
|
+
maxHeight: "$14",
|
23493
|
+
w: "auto",
|
23494
|
+
objectFit: "contain",
|
23495
|
+
"@md": {
|
23496
|
+
maxHeight: "$12"
|
23497
|
+
}
|
23498
|
+
});
|
23499
|
+
var Logo = () => {
|
23500
|
+
var _a8;
|
23501
|
+
const roomLayout = useRoomLayout();
|
23502
|
+
const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
|
23503
|
+
const [hideImage, setHideImage] = useState41(false);
|
23504
|
+
useEffect23(() => {
|
23505
|
+
if (hideImage) {
|
23506
|
+
setHideImage(false);
|
23507
|
+
}
|
23508
|
+
}, [logo]);
|
23509
|
+
return logo && !hideImage ? /* @__PURE__ */ React101.createElement(
|
23510
|
+
LogoImg,
|
23511
|
+
{
|
23512
|
+
src: logo,
|
23513
|
+
alt: "Brand Logo",
|
23514
|
+
onError: (e) => {
|
23515
|
+
e.target.onerror = null;
|
23516
|
+
setHideImage(true);
|
23517
|
+
}
|
23518
|
+
}
|
23519
|
+
) : null;
|
23520
|
+
};
|
23521
|
+
|
23430
23522
|
// src/Prebuilt/components/RoomDetails/RoomDetailsRow.tsx
|
23431
23523
|
init_define_process_env();
|
23432
|
-
import
|
23524
|
+
import React103 from "react";
|
23433
23525
|
|
23434
23526
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
23435
23527
|
init_define_process_env();
|
23436
|
-
import
|
23528
|
+
import React102, { useEffect as useEffect24, useState as useState42 } from "react";
|
23437
23529
|
var Duration = ({ timestamp }) => {
|
23438
|
-
const [elapsedTime, setElapsedTime] =
|
23439
|
-
|
23530
|
+
const [elapsedTime, setElapsedTime] = useState42(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23531
|
+
useEffect24(() => {
|
23440
23532
|
const timerAdded = setInterval(() => {
|
23441
23533
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23442
23534
|
}, 1e3);
|
@@ -23444,46 +23536,57 @@ var Duration = ({ timestamp }) => {
|
|
23444
23536
|
clearInterval(timerAdded);
|
23445
23537
|
};
|
23446
23538
|
}, [timestamp]);
|
23447
|
-
return /* @__PURE__ */
|
23539
|
+
return /* @__PURE__ */ React102.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React102.createElement(Text, { variant: "xs", css: { color: "inherit" } }, "Started ", elapsedTime, " ago"));
|
23448
23540
|
};
|
23449
23541
|
|
23450
23542
|
// src/Prebuilt/components/RoomDetails/RoomDetailsRow.tsx
|
23451
23543
|
var RoomDetailsRow = ({ details }) => {
|
23452
|
-
return /* @__PURE__ */
|
23544
|
+
return /* @__PURE__ */ React103.createElement(Flex, { align: "center", css: { w: "100%" } }, details.map((detail, index) => /* @__PURE__ */ React103.createElement(React103.Fragment, { key: detail.toString() }, index > 0 && /* @__PURE__ */ React103.createElement(Box, { css: { h: "$2", w: "$2", r: "$round", bg: "$on_surface_medium", m: "0 $2" } }), typeof detail !== "string" ? /* @__PURE__ */ React103.createElement(Duration, { timestamp: detail }) : /* @__PURE__ */ React103.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium" } }, detail))));
|
23453
23545
|
};
|
23454
23546
|
|
23455
23547
|
// src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
|
23456
23548
|
var RoomDetailsPane = () => {
|
23457
|
-
const {
|
23549
|
+
const { description } = useRoomLayoutHeader();
|
23550
|
+
const isMwebHLSStream = useMobileHLSStream();
|
23551
|
+
return /* @__PURE__ */ React104.createElement(Box, { css: { flex: "1 1 0" } }, isMwebHLSStream ? /* @__PURE__ */ React104.createElement(Flex, { direction: "row", align: "center", gap: "2" }, /* @__PURE__ */ React104.createElement(Logo, null), /* @__PURE__ */ React104.createElement(ShowRoomDetailHeader, null)) : /* @__PURE__ */ React104.createElement(ShowRoomDetailHeader, null), /* @__PURE__ */ React104.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React104.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold", display: isMwebHLSStream ? "none" : "" } }, "Description"), /* @__PURE__ */ React104.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium" } }, description)));
|
23552
|
+
};
|
23553
|
+
var ShowRoomDetailHeader = () => {
|
23554
|
+
const { title, details } = useRoomLayoutHeader();
|
23458
23555
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
23459
|
-
|
23556
|
+
const isMwebHLSStream = useMobileHLSStream();
|
23557
|
+
return /* @__PURE__ */ React104.createElement(Flex, { direction: "column" }, /* @__PURE__ */ React104.createElement(Flex, { justify: "between", align: "center", css: { w: "100%" } }, /* @__PURE__ */ React104.createElement(Text, { variant: "h6" }, title), !isMwebHLSStream && /* @__PURE__ */ React104.createElement(
|
23460
23558
|
Flex,
|
23461
23559
|
{
|
23462
23560
|
onClick: toggleDetailsPane,
|
23463
|
-
css: {
|
23561
|
+
css: {
|
23562
|
+
color: "$on_surface_high",
|
23563
|
+
cursor: "pointer",
|
23564
|
+
"&:hover": { opacity: "0.8" }
|
23565
|
+
}
|
23464
23566
|
},
|
23465
|
-
/* @__PURE__ */
|
23466
|
-
)), /* @__PURE__ */
|
23567
|
+
/* @__PURE__ */ React104.createElement(CrossIcon15, null)
|
23568
|
+
)), /* @__PURE__ */ React104.createElement(RoomDetailsRow, { details }));
|
23467
23569
|
};
|
23468
23570
|
|
23469
23571
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
23470
23572
|
init_define_process_env();
|
23471
|
-
import
|
23573
|
+
import React119, { useEffect as useEffect31, useState as useState51 } from "react";
|
23472
23574
|
import { useMedia as useMedia19 } from "react-use";
|
23473
|
-
import { match as
|
23474
|
-
import { selectPeerCount as selectPeerCount5, useHMSStore as
|
23575
|
+
import { match as match7 } from "ts-pattern";
|
23576
|
+
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
|
23475
23577
|
import { CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
|
23476
23578
|
|
23477
23579
|
// src/Prebuilt/components/Chat/Chat.tsx
|
23478
23580
|
init_define_process_env();
|
23479
|
-
import
|
23581
|
+
import React116, { useCallback as useCallback29, useRef as useRef21 } from "react";
|
23480
23582
|
import { useMedia as useMedia18 } from "react-use";
|
23481
|
-
import {
|
23583
|
+
import { match as match6 } from "ts-pattern";
|
23584
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
|
23482
23585
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
23483
23586
|
|
23484
23587
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
23485
23588
|
init_define_process_env();
|
23486
|
-
import
|
23589
|
+
import React108, { Fragment as Fragment10, useCallback as useCallback25, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState45 } from "react";
|
23487
23590
|
import { useMedia as useMedia13 } from "react-use";
|
23488
23591
|
import AutoSizer from "react-virtualized-auto-sizer";
|
23489
23592
|
import { VariableSizeList } from "react-window";
|
@@ -23496,15 +23599,15 @@ import {
|
|
23496
23599
|
selectSessionStore as selectSessionStore5,
|
23497
23600
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
23498
23601
|
useHMSActions as useHMSActions34,
|
23499
|
-
useHMSStore as
|
23602
|
+
useHMSStore as useHMSStore52,
|
23500
23603
|
useHMSVanillaStore as useHMSVanillaStore10
|
23501
23604
|
} from "@100mslive/react-sdk";
|
23502
23605
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
23503
23606
|
|
23504
23607
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
23505
23608
|
init_define_process_env();
|
23506
|
-
import
|
23507
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions15, useHMSActions as useHMSActions33, useHMSStore as
|
23609
|
+
import React106, { useCallback as useCallback24, useState as useState43 } from "react";
|
23610
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions15, useHMSActions as useHMSActions33, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23508
23611
|
import {
|
23509
23612
|
CopyIcon as CopyIcon2,
|
23510
23613
|
CrossCircleIcon as CrossCircleIcon2,
|
@@ -23519,23 +23622,23 @@ import {
|
|
23519
23622
|
|
23520
23623
|
// src/Prebuilt/components/Chat/MwebChatOption.tsx
|
23521
23624
|
init_define_process_env();
|
23522
|
-
import
|
23625
|
+
import React105 from "react";
|
23523
23626
|
var MwebChatOption = ({
|
23524
23627
|
icon,
|
23525
23628
|
text,
|
23526
23629
|
onClick,
|
23527
23630
|
color = "$on_surface_high"
|
23528
23631
|
}) => {
|
23529
|
-
return /* @__PURE__ */
|
23632
|
+
return /* @__PURE__ */ React105.createElement(Flex, { align: "center", css: { w: "100%", color, cursor: "pointer", gap: "$4", p: "$8" }, onClick }, icon, /* @__PURE__ */ React105.createElement(Text, { variant: "sm", css: { color, fontWeight: "$semiBold" } }, text));
|
23530
23633
|
};
|
23531
23634
|
|
23532
23635
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
23533
23636
|
init_define_process_env();
|
23534
23637
|
import { useCallback as useCallback22 } from "react";
|
23535
|
-
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as
|
23638
|
+
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
|
23536
23639
|
var useChatBlacklist = (sessionStoreKey) => {
|
23537
23640
|
const hmsActions = useHMSActions31();
|
23538
|
-
const blacklistedIDs =
|
23641
|
+
const blacklistedIDs = useHMSStore49(selectSessionStore2(sessionStoreKey));
|
23539
23642
|
const blacklistItem = useCallback22(
|
23540
23643
|
(blacklistID) => __async(void 0, null, function* () {
|
23541
23644
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -23545,8 +23648,8 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
23545
23648
|
return { blacklistItem, blacklistedIDs };
|
23546
23649
|
};
|
23547
23650
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
23548
|
-
const localPeer =
|
23549
|
-
const blacklistedPeerIDs =
|
23651
|
+
const localPeer = useHMSStore49(selectLocalPeer2);
|
23652
|
+
const blacklistedPeerIDs = useHMSStore49(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
23550
23653
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
23551
23654
|
};
|
23552
23655
|
|
@@ -23627,11 +23730,11 @@ var ChatActions = ({
|
|
23627
23730
|
const { elements } = useRoomLayoutConferencingScreen();
|
23628
23731
|
const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
|
23629
23732
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
23630
|
-
const [open, setOpen] =
|
23733
|
+
const [open, setOpen] = useState43(false);
|
23631
23734
|
const actions = useHMSActions33();
|
23632
|
-
const canRemoveOthers = (_b7 =
|
23735
|
+
const canRemoveOthers = (_b7 = useHMSStore50(selectPermissions15)) == null ? void 0 : _b7.removeOthers;
|
23633
23736
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
23634
|
-
const localPeerName =
|
23737
|
+
const localPeerName = useHMSStore50(selectLocalPeerName2);
|
23635
23738
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
23636
23739
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
23637
23740
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -23661,34 +23764,34 @@ var ChatActions = ({
|
|
23661
23764
|
reply: {
|
23662
23765
|
text: "Reply privately",
|
23663
23766
|
tooltipText: "Reply privately",
|
23664
|
-
icon: /* @__PURE__ */
|
23767
|
+
icon: /* @__PURE__ */ React106.createElement(ReplyIcon, { style: iconStyle }),
|
23665
23768
|
onClick: onReply,
|
23666
23769
|
show: showReply
|
23667
23770
|
},
|
23668
23771
|
replyGroup: {
|
23669
23772
|
text: "Reply to group",
|
23670
23773
|
tooltipText: "Reply to group",
|
23671
|
-
icon: /* @__PURE__ */
|
23774
|
+
icon: /* @__PURE__ */ React106.createElement(ReplyGroupIcon, { style: iconStyle }),
|
23672
23775
|
onClick: onReplyGroup,
|
23673
23776
|
show: !!message.senderRole && roles_whitelist.includes(message.senderRole)
|
23674
23777
|
},
|
23675
23778
|
pin: {
|
23676
23779
|
text: "Pin message",
|
23677
23780
|
tooltipText: "Pin",
|
23678
|
-
icon: /* @__PURE__ */
|
23781
|
+
icon: /* @__PURE__ */ React106.createElement(PinIcon, { style: iconStyle }),
|
23679
23782
|
onClick: () => setPinnedMessages(message, localPeerName || ""),
|
23680
23783
|
show: showPinAction
|
23681
23784
|
},
|
23682
23785
|
copy: {
|
23683
23786
|
text: "Copy text",
|
23684
23787
|
tooltipText: "Copy",
|
23685
|
-
icon: /* @__PURE__ */
|
23788
|
+
icon: /* @__PURE__ */ React106.createElement(CopyIcon2, { style: iconStyle }),
|
23686
23789
|
onClick: copyMessageContent,
|
23687
23790
|
show: true
|
23688
23791
|
},
|
23689
23792
|
hide: {
|
23690
23793
|
text: message.recipientPeer ? "Hide for both" : "Hide for everyone",
|
23691
|
-
icon: /* @__PURE__ */
|
23794
|
+
icon: /* @__PURE__ */ React106.createElement(EyeCloseIcon2, { style: iconStyle }),
|
23692
23795
|
onClick: () => __async(void 0, null, function* () {
|
23693
23796
|
blacklistMessage(message.id);
|
23694
23797
|
updatePinnedMessages(message.id);
|
@@ -23697,7 +23800,7 @@ var ChatActions = ({
|
|
23697
23800
|
},
|
23698
23801
|
block: {
|
23699
23802
|
text: "Block from chat",
|
23700
|
-
icon: /* @__PURE__ */
|
23803
|
+
icon: /* @__PURE__ */ React106.createElement(CrossCircleIcon2, { style: iconStyle }),
|
23701
23804
|
onClick: () => __async(void 0, null, function* () {
|
23702
23805
|
if (message.senderUserId) {
|
23703
23806
|
blacklistPeer(message.senderUserId);
|
@@ -23708,7 +23811,7 @@ var ChatActions = ({
|
|
23708
23811
|
},
|
23709
23812
|
remove: {
|
23710
23813
|
text: "Remove participant",
|
23711
|
-
icon: /* @__PURE__ */
|
23814
|
+
icon: /* @__PURE__ */ React106.createElement(PeopleRemoveIcon3, { style: iconStyle }),
|
23712
23815
|
color: "$alert_error_default",
|
23713
23816
|
show: !!canRemoveOthers && !sentByLocalPeer,
|
23714
23817
|
onClick: () => __async(void 0, null, function* () {
|
@@ -23724,7 +23827,7 @@ var ChatActions = ({
|
|
23724
23827
|
}
|
23725
23828
|
};
|
23726
23829
|
if (isMobile) {
|
23727
|
-
return /* @__PURE__ */
|
23830
|
+
return /* @__PURE__ */ React106.createElement(Sheet.Root, { open: openSheet, onOpenChange: setOpenSheet }, /* @__PURE__ */ React106.createElement(Sheet.Content, { css: { bg: "$surface_default", pb: "$14" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(
|
23728
23831
|
Sheet.Title,
|
23729
23832
|
{
|
23730
23833
|
css: {
|
@@ -23741,10 +23844,10 @@ var ChatActions = ({
|
|
23741
23844
|
}
|
23742
23845
|
},
|
23743
23846
|
"Message options",
|
23744
|
-
/* @__PURE__ */
|
23847
|
+
/* @__PURE__ */ React106.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(CrossIcon16, null))
|
23745
23848
|
), Object.keys(options).map((optionKey) => {
|
23746
23849
|
const option = options[optionKey];
|
23747
|
-
return option.show ? /* @__PURE__ */
|
23850
|
+
return option.show ? /* @__PURE__ */ React106.createElement(
|
23748
23851
|
MwebChatOption,
|
23749
23852
|
{
|
23750
23853
|
key: optionKey,
|
@@ -23756,7 +23859,7 @@ var ChatActions = ({
|
|
23756
23859
|
) : null;
|
23757
23860
|
})));
|
23758
23861
|
}
|
23759
|
-
return /* @__PURE__ */
|
23862
|
+
return /* @__PURE__ */ React106.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { "@md": { display: "none" } } }, /* @__PURE__ */ React106.createElement(
|
23760
23863
|
Flex,
|
23761
23864
|
{
|
23762
23865
|
className: "chat_actions",
|
@@ -23772,20 +23875,20 @@ var ChatActions = ({
|
|
23772
23875
|
"@md": { opacity: 1 }
|
23773
23876
|
}
|
23774
23877
|
},
|
23775
|
-
options.reply.show ? /* @__PURE__ */
|
23776
|
-
options.replyGroup.show ? /* @__PURE__ */
|
23777
|
-
options.pin.show ? /* @__PURE__ */
|
23778
|
-
options.copy.show ? /* @__PURE__ */
|
23779
|
-
options.block.show || options.hide.show || options.remove.show ? /* @__PURE__ */
|
23780
|
-
), /* @__PURE__ */
|
23878
|
+
options.reply.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.reply.tooltipText }, /* @__PURE__ */ React106.createElement(IconButton, { "data-testid": "reply_message_btn", onClick: options.reply.onClick }, options.reply.icon)) : null,
|
23879
|
+
options.replyGroup.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.replyGroup.tooltipText }, /* @__PURE__ */ React106.createElement(IconButton, { "data-testid": "reply_group_message_btn", onClick: options.replyGroup.onClick }, options.replyGroup.icon)) : null,
|
23880
|
+
options.pin.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.pin.tooltipText }, /* @__PURE__ */ React106.createElement(IconButton, { "data-testid": "pin_message_btn", onClick: options.pin.onClick }, options.pin.icon)) : null,
|
23881
|
+
options.copy.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.copy.tooltipText }, /* @__PURE__ */ React106.createElement(IconButton, { onClick: options.copy.onClick, "data-testid": "copy_message_btn" }, /* @__PURE__ */ React106.createElement(CopyIcon2, { style: iconStyle }))) : null,
|
23882
|
+
options.block.show || options.hide.show || options.remove.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: "More actions" }, /* @__PURE__ */ React106.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React106.createElement(IconButton, null, /* @__PURE__ */ React106.createElement(VerticalMenuIcon6, { style: iconStyle })))) : null
|
23883
|
+
), /* @__PURE__ */ React106.createElement(Dropdown.Portal, null, /* @__PURE__ */ React106.createElement(
|
23781
23884
|
Dropdown.Content,
|
23782
23885
|
{
|
23783
23886
|
sideOffset: 5,
|
23784
23887
|
align: "end",
|
23785
23888
|
css: { width: "$48", backgroundColor: "$surface_bright", py: "$0", border: "1px solid $border_bright" }
|
23786
23889
|
},
|
23787
|
-
options.hide.show ? /* @__PURE__ */
|
23788
|
-
options.block.show ? /* @__PURE__ */
|
23890
|
+
options.hide.show ? /* @__PURE__ */ React106.createElement(Dropdown.Item, { "data-testid": "hide_message_btn", onClick: options.hide.onClick }, options.hide.icon, /* @__PURE__ */ React106.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold" } }, options.hide.text)) : null,
|
23891
|
+
options.block.show ? /* @__PURE__ */ React106.createElement(
|
23789
23892
|
Dropdown.Item,
|
23790
23893
|
{
|
23791
23894
|
"data-testid": "block_peer_btn",
|
@@ -23793,9 +23896,9 @@ var ChatActions = ({
|
|
23793
23896
|
css: { color: options.block.color }
|
23794
23897
|
},
|
23795
23898
|
options.block.icon,
|
23796
|
-
/* @__PURE__ */
|
23899
|
+
/* @__PURE__ */ React106.createElement(Text, { variant: "sm", css: { ml: "$4", color: "inherit", fontWeight: "$semiBold" } }, options.block.text)
|
23797
23900
|
) : null,
|
23798
|
-
options.remove.show ? /* @__PURE__ */
|
23901
|
+
options.remove.show ? /* @__PURE__ */ React106.createElement(
|
23799
23902
|
Dropdown.Item,
|
23800
23903
|
{
|
23801
23904
|
"data-testid": "remove_peer_btn",
|
@@ -23803,14 +23906,14 @@ var ChatActions = ({
|
|
23803
23906
|
css: { color: options.remove.color }
|
23804
23907
|
},
|
23805
23908
|
options.remove.icon,
|
23806
|
-
/* @__PURE__ */
|
23909
|
+
/* @__PURE__ */ React106.createElement(Text, { variant: "sm", css: { ml: "$4", color: "inherit", fontWeight: "$semiBold" } }, options.remove.text)
|
23807
23910
|
) : null
|
23808
23911
|
)));
|
23809
23912
|
};
|
23810
23913
|
|
23811
23914
|
// src/Prebuilt/components/Chat/EmptyChat.tsx
|
23812
23915
|
init_define_process_env();
|
23813
|
-
import
|
23916
|
+
import React107 from "react";
|
23814
23917
|
import { useMedia as useMedia12 } from "react-use";
|
23815
23918
|
|
23816
23919
|
// src/Prebuilt/images/empty-chat.svg
|
@@ -23824,8 +23927,8 @@ var EmptyChat = () => {
|
|
23824
23927
|
const isMobile = useMedia12(config.media.md);
|
23825
23928
|
const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
|
23826
23929
|
if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay))
|
23827
|
-
return /* @__PURE__ */
|
23828
|
-
return /* @__PURE__ */
|
23930
|
+
return /* @__PURE__ */ React107.createElement(React107.Fragment, null);
|
23931
|
+
return /* @__PURE__ */ React107.createElement(
|
23829
23932
|
Flex,
|
23830
23933
|
{
|
23831
23934
|
css: {
|
@@ -23837,7 +23940,7 @@ var EmptyChat = () => {
|
|
23837
23940
|
align: "center",
|
23838
23941
|
justify: "center"
|
23839
23942
|
},
|
23840
|
-
/* @__PURE__ */
|
23943
|
+
/* @__PURE__ */ React107.createElement(Box, null, /* @__PURE__ */ React107.createElement(Box, { css: { m: "0 auto", mt: "$4", "@media (max-height: 575px)": { display: "none" } } }, /* @__PURE__ */ React107.createElement("img", { src: empty_chat_default, style: { display: "inline" }, alt: "Empty Chat", height: 132, width: 185 })), /* @__PURE__ */ React107.createElement(Text, { variant: "h5", css: { mt: "$8", c: "$on_surface_high" } }, canSendMessages ? "Start a conversation" : "No messages yet"), canSendMessages ? /* @__PURE__ */ React107.createElement(
|
23841
23944
|
Text,
|
23842
23945
|
{
|
23843
23946
|
variant: "sm",
|
@@ -23850,19 +23953,19 @@ var EmptyChat = () => {
|
|
23850
23953
|
|
23851
23954
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
23852
23955
|
init_define_process_env();
|
23853
|
-
import { useEffect as
|
23854
|
-
import { selectSessionStore as selectSessionStore4, useHMSStore as
|
23956
|
+
import { useEffect as useEffect25, useState as useState44 } from "react";
|
23957
|
+
import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
|
23855
23958
|
var usePinnedBy = (messageId) => {
|
23856
|
-
const pinnedMessages =
|
23857
|
-
const [pinnedBy, setPinnedBy] =
|
23858
|
-
|
23859
|
-
let
|
23959
|
+
const pinnedMessages = useHMSStore51(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
23960
|
+
const [pinnedBy, setPinnedBy] = useState44("");
|
23961
|
+
useEffect25(() => {
|
23962
|
+
let match9 = "";
|
23860
23963
|
pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
|
23861
23964
|
if (pinnedMessage.id === messageId) {
|
23862
|
-
|
23965
|
+
match9 = pinnedMessage.pinnedBy;
|
23863
23966
|
}
|
23864
23967
|
});
|
23865
|
-
setPinnedBy(
|
23968
|
+
setPinnedBy(match9);
|
23866
23969
|
}, [messageId, pinnedMessages]);
|
23867
23970
|
return pinnedBy;
|
23868
23971
|
};
|
@@ -23898,7 +24001,7 @@ var getMessageBackgroundColor = (messageType, selectedPeerID, selectedRole, isOv
|
|
23898
24001
|
return "";
|
23899
24002
|
};
|
23900
24003
|
var MessageTypeContainer = ({ left, right }) => {
|
23901
|
-
return /* @__PURE__ */
|
24004
|
+
return /* @__PURE__ */ React108.createElement(
|
23902
24005
|
Flex,
|
23903
24006
|
{
|
23904
24007
|
align: "center",
|
@@ -23908,7 +24011,7 @@ var MessageTypeContainer = ({ left, right }) => {
|
|
23908
24011
|
gap: "$space$2"
|
23909
24012
|
}
|
23910
24013
|
},
|
23911
|
-
left && /* @__PURE__ */
|
24014
|
+
left && /* @__PURE__ */ React108.createElement(
|
23912
24015
|
SenderName,
|
23913
24016
|
{
|
23914
24017
|
variant: "xs",
|
@@ -23917,7 +24020,7 @@ var MessageTypeContainer = ({ left, right }) => {
|
|
23917
24020
|
},
|
23918
24021
|
left
|
23919
24022
|
),
|
23920
|
-
right && /* @__PURE__ */
|
24023
|
+
right && /* @__PURE__ */ React108.createElement(
|
23921
24024
|
SenderName,
|
23922
24025
|
{
|
23923
24026
|
as: "span",
|
@@ -23936,13 +24039,13 @@ var MessageType = ({
|
|
23936
24039
|
hasCurrentUserSent,
|
23937
24040
|
receiver
|
23938
24041
|
}) => {
|
23939
|
-
const peerName =
|
23940
|
-
const localPeerRoleName =
|
24042
|
+
const peerName = useHMSStore52(selectPeerNameByID3(receiver));
|
24043
|
+
const localPeerRoleName = useHMSStore52(selectLocalPeerRoleName3);
|
23941
24044
|
if (receiver) {
|
23942
|
-
return /* @__PURE__ */
|
24045
|
+
return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
23943
24046
|
}
|
23944
24047
|
if (roles && roles.length) {
|
23945
|
-
return /* @__PURE__ */
|
24048
|
+
return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: `to ${hasCurrentUserSent ? roles[0] : localPeerRoleName}`, right: "(Group)" });
|
23946
24049
|
}
|
23947
24050
|
return null;
|
23948
24051
|
};
|
@@ -23956,10 +24059,10 @@ var Link2 = styled("a", {
|
|
23956
24059
|
});
|
23957
24060
|
var AnnotisedMessage = ({ message, length }) => {
|
23958
24061
|
if (!message) {
|
23959
|
-
return /* @__PURE__ */
|
24062
|
+
return /* @__PURE__ */ React108.createElement(Fragment10, null);
|
23960
24063
|
}
|
23961
|
-
return /* @__PURE__ */
|
23962
|
-
(part) => URL_REGEX.test(part) ? /* @__PURE__ */
|
24064
|
+
return /* @__PURE__ */ React108.createElement(Fragment10, null, message.trim().split(/(\s)/).map(
|
24065
|
+
(part) => URL_REGEX.test(part) ? /* @__PURE__ */ React108.createElement(Link2, { href: part, key: part, target: "_blank", rel: "noopener noreferrer" }, part.slice(0, length)) : part.slice(0, length)
|
23963
24066
|
));
|
23964
24067
|
};
|
23965
24068
|
var getMessageType = ({ roles, receiver }) => {
|
@@ -23977,7 +24080,7 @@ var SenderName = styled(Text, {
|
|
23977
24080
|
color: "$on_surface_high",
|
23978
24081
|
fontWeight: "$semiBold"
|
23979
24082
|
});
|
23980
|
-
var ChatMessage =
|
24083
|
+
var ChatMessage = React108.memo(
|
23981
24084
|
({ index, style = {}, message }) => {
|
23982
24085
|
var _a8, _b7, _c;
|
23983
24086
|
const { elements } = useRoomLayoutConferencingScreen();
|
@@ -23985,14 +24088,14 @@ var ChatMessage = React107.memo(
|
|
23985
24088
|
const isMobile = useMedia13(config.media.md);
|
23986
24089
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
23987
24090
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
23988
|
-
const localPeerId =
|
24091
|
+
const localPeerId = useHMSStore52(selectLocalPeerID10);
|
23989
24092
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
23990
24093
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
23991
24094
|
const messageType = getMessageType({
|
23992
24095
|
roles: message.recipientRoles,
|
23993
24096
|
receiver: message.recipientPeer
|
23994
24097
|
});
|
23995
|
-
const [openSheet, setOpenSheetBare] =
|
24098
|
+
const [openSheet, setOpenSheetBare] = useState45(false);
|
23996
24099
|
const showPinAction = !!((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.allow_pinning_messages);
|
23997
24100
|
const showReply = message.sender !== selectedPeer.id && message.sender !== localPeerId && isPrivateChatEnabled;
|
23998
24101
|
useLayoutEffect(() => {
|
@@ -24004,7 +24107,7 @@ var ChatMessage = React107.memo(
|
|
24004
24107
|
e == null ? void 0 : e.stopPropagation();
|
24005
24108
|
setOpenSheetBare(value);
|
24006
24109
|
};
|
24007
|
-
return /* @__PURE__ */
|
24110
|
+
return /* @__PURE__ */ React108.createElement(
|
24008
24111
|
Box,
|
24009
24112
|
{
|
24010
24113
|
css: {
|
@@ -24016,7 +24119,7 @@ var ChatMessage = React107.memo(
|
|
24016
24119
|
},
|
24017
24120
|
style
|
24018
24121
|
},
|
24019
|
-
/* @__PURE__ */
|
24122
|
+
/* @__PURE__ */ React108.createElement(
|
24020
24123
|
Flex,
|
24021
24124
|
{
|
24022
24125
|
ref: rowRef,
|
@@ -24043,8 +24146,8 @@ var ChatMessage = React107.memo(
|
|
24043
24146
|
}
|
24044
24147
|
}
|
24045
24148
|
},
|
24046
|
-
/* @__PURE__ */
|
24047
|
-
/* @__PURE__ */
|
24149
|
+
/* @__PURE__ */ React108.createElement(PinnedBy, { messageId: message.id, index, rowRef }),
|
24150
|
+
/* @__PURE__ */ React108.createElement(
|
24048
24151
|
Text,
|
24049
24152
|
{
|
24050
24153
|
css: {
|
@@ -24057,7 +24160,7 @@ var ChatMessage = React107.memo(
|
|
24057
24160
|
},
|
24058
24161
|
as: "div"
|
24059
24162
|
},
|
24060
|
-
/* @__PURE__ */
|
24163
|
+
/* @__PURE__ */ React108.createElement(Flex, { align: "baseline" }, message.senderName === "You" || !message.senderName ? /* @__PURE__ */ React108.createElement(
|
24061
24164
|
SenderName,
|
24062
24165
|
{
|
24063
24166
|
as: "span",
|
@@ -24065,7 +24168,7 @@ var ChatMessage = React107.memo(
|
|
24065
24168
|
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
24066
24169
|
},
|
24067
24170
|
message.senderName || "Anonymous"
|
24068
|
-
) : /* @__PURE__ */
|
24171
|
+
) : /* @__PURE__ */ React108.createElement(Tooltip, { title: message.senderName, side: "top", align: "start" }, /* @__PURE__ */ React108.createElement(
|
24069
24172
|
SenderName,
|
24070
24173
|
{
|
24071
24174
|
as: "span",
|
@@ -24073,7 +24176,7 @@ var ChatMessage = React107.memo(
|
|
24073
24176
|
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
24074
24177
|
},
|
24075
24178
|
message.sender === localPeerId ? `${message.senderName} (You)` : message.senderName
|
24076
|
-
)), /* @__PURE__ */
|
24179
|
+
)), /* @__PURE__ */ React108.createElement(
|
24077
24180
|
MessageType,
|
24078
24181
|
{
|
24079
24182
|
hasCurrentUserSent: message.sender === localPeerId,
|
@@ -24081,7 +24184,7 @@ var ChatMessage = React107.memo(
|
|
24081
24184
|
roles: message.recipientRoles
|
24082
24185
|
}
|
24083
24186
|
)),
|
24084
|
-
!isOverlay ? /* @__PURE__ */
|
24187
|
+
!isOverlay ? /* @__PURE__ */ React108.createElement(
|
24085
24188
|
Text,
|
24086
24189
|
{
|
24087
24190
|
as: "span",
|
@@ -24098,7 +24201,7 @@ var ChatMessage = React107.memo(
|
|
24098
24201
|
},
|
24099
24202
|
formatTime2(message.time)
|
24100
24203
|
) : null,
|
24101
|
-
/* @__PURE__ */
|
24204
|
+
/* @__PURE__ */ React108.createElement(
|
24102
24205
|
ChatActions,
|
24103
24206
|
{
|
24104
24207
|
showPinAction,
|
@@ -24121,7 +24224,7 @@ var ChatMessage = React107.memo(
|
|
24121
24224
|
}
|
24122
24225
|
)
|
24123
24226
|
),
|
24124
|
-
/* @__PURE__ */
|
24227
|
+
/* @__PURE__ */ React108.createElement(
|
24125
24228
|
Text,
|
24126
24229
|
{
|
24127
24230
|
variant: "sm",
|
@@ -24137,26 +24240,26 @@ var ChatMessage = React107.memo(
|
|
24137
24240
|
setOpenSheet(true, e);
|
24138
24241
|
}
|
24139
24242
|
},
|
24140
|
-
/* @__PURE__ */
|
24243
|
+
/* @__PURE__ */ React108.createElement(AnnotisedMessage, { message: message.message })
|
24141
24244
|
)
|
24142
24245
|
)
|
24143
24246
|
);
|
24144
24247
|
}
|
24145
24248
|
);
|
24146
|
-
var MessageWrapper =
|
24249
|
+
var MessageWrapper = React108.memo(
|
24147
24250
|
({ index, style, data: data3 }) => {
|
24148
|
-
return /* @__PURE__ */
|
24251
|
+
return /* @__PURE__ */ React108.createElement(ChatMessage, { style, index, key: data3[index].id, message: data3[index] });
|
24149
24252
|
}
|
24150
24253
|
);
|
24151
|
-
var VirtualizedChatMessages =
|
24254
|
+
var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
24152
24255
|
const hmsActions = useHMSActions34();
|
24153
24256
|
const itemKey2 = useCallback25((index, data3) => {
|
24154
24257
|
return data3[index].id;
|
24155
24258
|
}, []);
|
24156
|
-
|
24259
|
+
useEffect26(() => {
|
24157
24260
|
requestAnimationFrame(() => scrollToBottom(1));
|
24158
24261
|
}, [scrollToBottom]);
|
24159
|
-
return /* @__PURE__ */
|
24262
|
+
return /* @__PURE__ */ React108.createElement(
|
24160
24263
|
Box,
|
24161
24264
|
{
|
24162
24265
|
css: {
|
@@ -24164,14 +24267,14 @@ var VirtualizedChatMessages = React107.forwardRef(({ messages, scrollToBottom },
|
|
24164
24267
|
h: "100%"
|
24165
24268
|
}
|
24166
24269
|
},
|
24167
|
-
/* @__PURE__ */
|
24270
|
+
/* @__PURE__ */ React108.createElement(
|
24168
24271
|
AutoSizer,
|
24169
24272
|
{
|
24170
24273
|
style: {
|
24171
24274
|
width: "90%"
|
24172
24275
|
}
|
24173
24276
|
},
|
24174
|
-
({ height, width }) => /* @__PURE__ */
|
24277
|
+
({ height, width }) => /* @__PURE__ */ React108.createElement(
|
24175
24278
|
VariableSizeList,
|
24176
24279
|
{
|
24177
24280
|
ref: (node) => {
|
@@ -24202,16 +24305,16 @@ var VirtualizedChatMessages = React107.forwardRef(({ messages, scrollToBottom },
|
|
24202
24305
|
)
|
24203
24306
|
);
|
24204
24307
|
});
|
24205
|
-
var ChatBody =
|
24308
|
+
var ChatBody = React108.forwardRef(
|
24206
24309
|
({ scrollToBottom }, listRef) => {
|
24207
|
-
const messages =
|
24208
|
-
const blacklistedMessageIDs =
|
24310
|
+
const messages = useHMSStore52(selectHMSMessages);
|
24311
|
+
const blacklistedMessageIDs = useHMSStore52(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
24209
24312
|
const filteredMessages = useMemo8(() => {
|
24210
24313
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
24211
24314
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
24212
24315
|
}, [blacklistedMessageIDs, messages]);
|
24213
24316
|
const vanillaStore = useHMSVanillaStore10();
|
24214
|
-
|
24317
|
+
useEffect26(() => {
|
24215
24318
|
const unsubscribe = vanillaStore.subscribe(() => {
|
24216
24319
|
if (!listRef.current) {
|
24217
24320
|
return;
|
@@ -24223,7 +24326,7 @@ var ChatBody = React107.forwardRef(
|
|
24223
24326
|
}, selectUnreadHMSMessagesCount2);
|
24224
24327
|
return unsubscribe;
|
24225
24328
|
}, [vanillaStore, listRef, scrollToBottom]);
|
24226
|
-
return filteredMessages.length === 0 ? /* @__PURE__ */
|
24329
|
+
return filteredMessages.length === 0 ? /* @__PURE__ */ React108.createElement(EmptyChat, null) : /* @__PURE__ */ React108.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
|
24227
24330
|
}
|
24228
24331
|
);
|
24229
24332
|
var PinnedBy = ({
|
@@ -24232,7 +24335,7 @@ var PinnedBy = ({
|
|
24232
24335
|
rowRef
|
24233
24336
|
}) => {
|
24234
24337
|
const pinnedBy = usePinnedBy(messageId);
|
24235
|
-
const localPeerName =
|
24338
|
+
const localPeerName = useHMSStore52(selectLocalPeerName3);
|
24236
24339
|
useLayoutEffect(() => {
|
24237
24340
|
if (rowRef == null ? void 0 : rowRef.current) {
|
24238
24341
|
if (pinnedBy) {
|
@@ -24246,38 +24349,38 @@ var PinnedBy = ({
|
|
24246
24349
|
if (!pinnedBy) {
|
24247
24350
|
return null;
|
24248
24351
|
}
|
24249
|
-
return /* @__PURE__ */
|
24352
|
+
return /* @__PURE__ */ React108.createElement(Flex, { align: "center", css: { gap: "$2", mb: "$2", color: "$on_surface_low" } }, /* @__PURE__ */ React108.createElement(SolidPinIcon, { height: 12, width: 12 }), /* @__PURE__ */ React108.createElement(Text, { variant: "xs", css: { color: "inherit" } }, "Pinned by ", localPeerName === pinnedBy ? "you" : pinnedBy));
|
24250
24353
|
};
|
24251
24354
|
|
24252
24355
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
24253
24356
|
init_define_process_env();
|
24254
|
-
import
|
24357
|
+
import React111, { useCallback as useCallback27, useEffect as useEffect28, useRef as useRef20, useState as useState48 } from "react";
|
24255
24358
|
import { useMedia as useMedia16 } from "react-use";
|
24256
24359
|
import data2 from "@emoji-mart/data";
|
24257
24360
|
import Picker from "@emoji-mart/react";
|
24258
|
-
import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions36, useHMSStore as
|
24361
|
+
import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions36, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
24259
24362
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24260
24363
|
|
24261
24364
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24262
24365
|
init_define_process_env();
|
24263
|
-
import
|
24366
|
+
import React110, { useState as useState47 } from "react";
|
24264
24367
|
import { useMedia as useMedia15 } from "react-use";
|
24265
24368
|
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon17, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
|
24266
24369
|
|
24267
24370
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
24268
24371
|
init_define_process_env();
|
24269
|
-
import
|
24372
|
+
import React109, { useMemo as useMemo9, useState as useState46 } from "react";
|
24270
24373
|
import { useMedia as useMedia14 } from "react-use";
|
24271
24374
|
import {
|
24272
24375
|
selectMessagesUnreadCountByPeerID,
|
24273
24376
|
selectMessagesUnreadCountByRole,
|
24274
24377
|
selectRemotePeers as selectRemotePeers2,
|
24275
24378
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
|
24276
|
-
useHMSStore as
|
24379
|
+
useHMSStore as useHMSStore53
|
24277
24380
|
} from "@100mslive/react-sdk";
|
24278
24381
|
import { CheckIcon as CheckIcon7, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
|
24279
24382
|
var ChatDotIcon = () => {
|
24280
|
-
return /* @__PURE__ */
|
24383
|
+
return /* @__PURE__ */ React109.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
|
24281
24384
|
};
|
24282
24385
|
var SelectorItem = ({
|
24283
24386
|
value,
|
@@ -24289,16 +24392,16 @@ var SelectorItem = ({
|
|
24289
24392
|
const isMobile = useMedia14(config.media.md);
|
24290
24393
|
const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
|
24291
24394
|
var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
|
24292
|
-
return /* @__PURE__ */
|
24395
|
+
return /* @__PURE__ */ React109.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
|
24293
24396
|
};
|
24294
|
-
return /* @__PURE__ */
|
24397
|
+
return /* @__PURE__ */ React109.createElement(
|
24295
24398
|
Root28,
|
24296
24399
|
{
|
24297
24400
|
"data-testid": "chat_members",
|
24298
24401
|
css: { align: "center", px: "$10", py: "$4", bg: "$surface_default" },
|
24299
24402
|
onClick
|
24300
24403
|
},
|
24301
|
-
/* @__PURE__ */
|
24404
|
+
/* @__PURE__ */ React109.createElement(
|
24302
24405
|
Text,
|
24303
24406
|
{
|
24304
24407
|
variant: "sm",
|
@@ -24307,12 +24410,12 @@ var SelectorItem = ({
|
|
24307
24410
|
icon,
|
24308
24411
|
value
|
24309
24412
|
),
|
24310
|
-
/* @__PURE__ */
|
24413
|
+
/* @__PURE__ */ React109.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React109.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React109.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React109.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React109.createElement(CheckIcon7, { width: 16, height: 16 }))
|
24311
24414
|
);
|
24312
24415
|
};
|
24313
|
-
var SelectorHeader =
|
24416
|
+
var SelectorHeader = React109.memo(
|
24314
24417
|
({ isHorizontalDivider = true, children }) => {
|
24315
|
-
return /* @__PURE__ */
|
24418
|
+
return /* @__PURE__ */ React109.createElement(Box, { css: { flexShrink: 0 } }, isHorizontalDivider && /* @__PURE__ */ React109.createElement(HorizontalDivider, { space: 4 }), /* @__PURE__ */ React109.createElement(
|
24316
24419
|
Text,
|
24317
24420
|
{
|
24318
24421
|
variant: "overline",
|
@@ -24322,15 +24425,15 @@ var SelectorHeader = React108.memo(
|
|
24322
24425
|
));
|
24323
24426
|
}
|
24324
24427
|
);
|
24325
|
-
var Everyone =
|
24326
|
-
const unreadCount =
|
24428
|
+
var Everyone = React109.memo(({ active }) => {
|
24429
|
+
const unreadCount = useHMSStore53(selectUnreadHMSMessagesCount3);
|
24327
24430
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24328
24431
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24329
|
-
return /* @__PURE__ */
|
24432
|
+
return /* @__PURE__ */ React109.createElement(
|
24330
24433
|
SelectorItem,
|
24331
24434
|
{
|
24332
24435
|
value: "Everyone",
|
24333
|
-
icon: /* @__PURE__ */
|
24436
|
+
icon: /* @__PURE__ */ React109.createElement(PeopleIcon3, null),
|
24334
24437
|
active,
|
24335
24438
|
unreadCount,
|
24336
24439
|
onClick: () => {
|
@@ -24340,11 +24443,11 @@ var Everyone = React108.memo(({ active }) => {
|
|
24340
24443
|
}
|
24341
24444
|
);
|
24342
24445
|
});
|
24343
|
-
var RoleItem =
|
24344
|
-
const unreadCount =
|
24446
|
+
var RoleItem = React109.memo(({ role, active }) => {
|
24447
|
+
const unreadCount = useHMSStore53(selectMessagesUnreadCountByRole(role));
|
24345
24448
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24346
24449
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24347
|
-
return /* @__PURE__ */
|
24450
|
+
return /* @__PURE__ */ React109.createElement(
|
24348
24451
|
SelectorItem,
|
24349
24452
|
{
|
24350
24453
|
value: role,
|
@@ -24358,10 +24461,10 @@ var RoleItem = React108.memo(({ role, active }) => {
|
|
24358
24461
|
);
|
24359
24462
|
});
|
24360
24463
|
var PeerItem = ({ peerId, name, active }) => {
|
24361
|
-
const unreadCount =
|
24464
|
+
const unreadCount = useHMSStore53(selectMessagesUnreadCountByPeerID(peerId));
|
24362
24465
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24363
24466
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24364
|
-
return /* @__PURE__ */
|
24467
|
+
return /* @__PURE__ */ React109.createElement(
|
24365
24468
|
SelectorItem,
|
24366
24469
|
{
|
24367
24470
|
value: name,
|
@@ -24392,36 +24495,36 @@ var VirtualizedSelectItemList = ({
|
|
24392
24495
|
const listItems = useMemo9(() => {
|
24393
24496
|
let selectItems = [];
|
24394
24497
|
if (isPublicChatEnabled && !searchValue) {
|
24395
|
-
selectItems = [/* @__PURE__ */
|
24498
|
+
selectItems = [/* @__PURE__ */ React109.createElement(Everyone, { active: !selectedRole && !selectedPeerId })];
|
24396
24499
|
}
|
24397
24500
|
if (roles.length > 0 && !searchValue) {
|
24398
|
-
selectItems.push(/* @__PURE__ */
|
24501
|
+
selectItems.push(/* @__PURE__ */ React109.createElement(SelectorHeader, { isHorizontalDivider: isPublicChatEnabled }, "Roles"));
|
24399
24502
|
roles.forEach(
|
24400
|
-
(userRole) => selectItems.push(/* @__PURE__ */
|
24503
|
+
(userRole) => selectItems.push(/* @__PURE__ */ React109.createElement(RoleItem, { key: userRole, active: selectedRole === userRole, role: userRole }))
|
24401
24504
|
);
|
24402
24505
|
}
|
24403
24506
|
if (filteredPeers.length > 0) {
|
24404
24507
|
selectItems.push(
|
24405
|
-
/* @__PURE__ */
|
24508
|
+
/* @__PURE__ */ React109.createElement(SelectorHeader, { isHorizontalDivider: isPublicChatEnabled || roles.length > 0 }, "Participants")
|
24406
24509
|
);
|
24407
24510
|
}
|
24408
24511
|
filteredPeers.forEach(
|
24409
24512
|
(peer) => selectItems.push(
|
24410
|
-
/* @__PURE__ */
|
24513
|
+
/* @__PURE__ */ React109.createElement(PeerItem, { key: peer.id, name: peer.name, peerId: peer.id, active: peer.id === selectedPeerId })
|
24411
24514
|
)
|
24412
24515
|
);
|
24413
24516
|
return selectItems;
|
24414
24517
|
}, [isPublicChatEnabled, searchValue, selectedRole, selectedPeerId, roles, filteredPeers]);
|
24415
|
-
return /* @__PURE__ */
|
24518
|
+
return /* @__PURE__ */ React109.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ React109.createElement(Box, { key: index }, item)));
|
24416
24519
|
};
|
24417
24520
|
var ChatSelector = ({ role, peerId }) => {
|
24418
24521
|
var _a8, _b7;
|
24419
24522
|
const { elements } = useRoomLayoutConferencingScreen();
|
24420
|
-
const peers =
|
24421
|
-
const [search, setSearch] =
|
24523
|
+
const peers = useHMSStore53(selectRemotePeers2);
|
24524
|
+
const [search, setSearch] = useState46("");
|
24422
24525
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
24423
24526
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
24424
|
-
return /* @__PURE__ */
|
24527
|
+
return /* @__PURE__ */ React109.createElement(React109.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React109.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React109.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React109.createElement(
|
24425
24528
|
VirtualizedSelectItemList,
|
24426
24529
|
{
|
24427
24530
|
selectedRole: role,
|
@@ -24436,7 +24539,7 @@ var ChatSelector = ({ role, peerId }) => {
|
|
24436
24539
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24437
24540
|
var ChatSelectorContainer = () => {
|
24438
24541
|
var _a8, _b7;
|
24439
|
-
const [open, setOpen] =
|
24542
|
+
const [open, setOpen] = useState47(false);
|
24440
24543
|
const isMobile = useMedia15(config.media.md);
|
24441
24544
|
const { elements } = useRoomLayoutConferencingScreen();
|
24442
24545
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
@@ -24449,7 +24552,7 @@ var ChatSelectorContainer = () => {
|
|
24449
24552
|
if (!(isPrivateChatEnabled || isPublicChatEnabled || roles.length > 0) && !isPrivateChatEnabled && !selection) {
|
24450
24553
|
return null;
|
24451
24554
|
}
|
24452
|
-
return /* @__PURE__ */
|
24555
|
+
return /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { mb: "$8", flex: "1 1 0", pl: "$2" } }, /* @__PURE__ */ React110.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, selection ? "To" : "Choose Participant"), isMobile ? /* @__PURE__ */ React110.createElement(
|
24453
24556
|
Flex,
|
24454
24557
|
{
|
24455
24558
|
align: "center",
|
@@ -24460,7 +24563,7 @@ var ChatSelectorContainer = () => {
|
|
24460
24563
|
e.stopPropagation();
|
24461
24564
|
}
|
24462
24565
|
},
|
24463
|
-
/* @__PURE__ */
|
24566
|
+
/* @__PURE__ */ React110.createElement(
|
24464
24567
|
Text,
|
24465
24568
|
{
|
24466
24569
|
variant: "caption",
|
@@ -24473,11 +24576,11 @@ var ChatSelectorContainer = () => {
|
|
24473
24576
|
textTransform: selection !== selectedPeer.name ? "capitalize" : void 0
|
24474
24577
|
}
|
24475
24578
|
},
|
24476
|
-
selection === CHAT_SELECTOR.EVERYONE ? /* @__PURE__ */
|
24579
|
+
selection === CHAT_SELECTOR.EVERYONE ? /* @__PURE__ */ React110.createElement(GroupIcon, { width: 16, height: 16 }) : /* @__PURE__ */ React110.createElement(PersonIcon2, { width: 16, height: 16 }),
|
24477
24580
|
selection || "Search"
|
24478
24581
|
),
|
24479
|
-
selection && (open ? /* @__PURE__ */
|
24480
|
-
) : /* @__PURE__ */
|
24582
|
+
selection && (open ? /* @__PURE__ */ React110.createElement(ChevronUpIcon5, { width: 16, height: 16 }) : /* @__PURE__ */ React110.createElement(ChevronDownIcon6, { width: 16, height: 16 }))
|
24583
|
+
) : /* @__PURE__ */ React110.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React110.createElement(
|
24481
24584
|
Dropdown.Trigger,
|
24482
24585
|
{
|
24483
24586
|
asChild: true,
|
@@ -24490,7 +24593,7 @@ var ChatSelectorContainer = () => {
|
|
24490
24593
|
},
|
24491
24594
|
tabIndex: 0
|
24492
24595
|
},
|
24493
|
-
/* @__PURE__ */
|
24596
|
+
/* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { c: "$on_surface_medium" }, gap: "1" }, /* @__PURE__ */ React110.createElement(
|
24494
24597
|
Text,
|
24495
24598
|
{
|
24496
24599
|
variant: "caption",
|
@@ -24503,9 +24606,9 @@ var ChatSelectorContainer = () => {
|
|
24503
24606
|
textTransform: selection !== selectedPeer.name ? "capitalize" : void 0
|
24504
24607
|
}
|
24505
24608
|
},
|
24506
|
-
selection === CHAT_SELECTOR.EVERYONE ? /* @__PURE__ */
|
24609
|
+
selection === CHAT_SELECTOR.EVERYONE ? /* @__PURE__ */ React110.createElement(GroupIcon, { width: 16, height: 16 }) : /* @__PURE__ */ React110.createElement(PersonIcon2, { width: 16, height: 16 }),
|
24507
24610
|
selection || "Search"
|
24508
|
-
), selection && /* @__PURE__ */
|
24611
|
+
), selection && /* @__PURE__ */ React110.createElement(
|
24509
24612
|
ChevronDownIcon6,
|
24510
24613
|
{
|
24511
24614
|
style: { transform: open ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
|
@@ -24513,7 +24616,7 @@ var ChatSelectorContainer = () => {
|
|
24513
24616
|
height: 12
|
24514
24617
|
}
|
24515
24618
|
))
|
24516
|
-
), /* @__PURE__ */
|
24619
|
+
), /* @__PURE__ */ React110.createElement(
|
24517
24620
|
Dropdown.Content,
|
24518
24621
|
{
|
24519
24622
|
css: {
|
@@ -24525,8 +24628,8 @@ var ChatSelectorContainer = () => {
|
|
24525
24628
|
align: "start",
|
24526
24629
|
sideOffset: 8
|
24527
24630
|
},
|
24528
|
-
/* @__PURE__ */
|
24529
|
-
))), isMobile ? /* @__PURE__ */
|
24631
|
+
/* @__PURE__ */ React110.createElement(ChatSelector, { role: selectedRole, peerId: selectedPeer.id })
|
24632
|
+
))), isMobile ? /* @__PURE__ */ React110.createElement(Sheet.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React110.createElement(Sheet.Content, { css: { pt: "$8" } }, /* @__PURE__ */ React110.createElement(
|
24530
24633
|
Sheet.Title,
|
24531
24634
|
{
|
24532
24635
|
css: {
|
@@ -24539,26 +24642,26 @@ var ChatSelectorContainer = () => {
|
|
24539
24642
|
borderBottom: "1px solid $border_bright"
|
24540
24643
|
}
|
24541
24644
|
},
|
24542
|
-
/* @__PURE__ */
|
24543
|
-
/* @__PURE__ */
|
24544
|
-
), /* @__PURE__ */
|
24645
|
+
/* @__PURE__ */ React110.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, "Chat with"),
|
24646
|
+
/* @__PURE__ */ React110.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React110.createElement(CrossIcon17, null))
|
24647
|
+
), /* @__PURE__ */ React110.createElement(
|
24545
24648
|
Box,
|
24546
24649
|
{
|
24547
24650
|
onClick: () => {
|
24548
24651
|
setOpen(false);
|
24549
24652
|
}
|
24550
24653
|
},
|
24551
|
-
/* @__PURE__ */
|
24654
|
+
/* @__PURE__ */ React110.createElement(ChatSelector, { role: selectedRole, peerId: selectedPeer.id })
|
24552
24655
|
))) : null);
|
24553
24656
|
};
|
24554
24657
|
|
24555
24658
|
// src/Prebuilt/components/AppData/useChatState.js
|
24556
24659
|
init_define_process_env();
|
24557
24660
|
import { useCallback as useCallback26 } from "react";
|
24558
|
-
import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as
|
24661
|
+
import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
24559
24662
|
var useChatDraftMessage = () => {
|
24560
24663
|
const hmsActions = useHMSActions35();
|
24561
|
-
let chatDraftMessage =
|
24664
|
+
let chatDraftMessage = useHMSStore54(selectAppData5(APP_DATA.chatDraft));
|
24562
24665
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
24563
24666
|
chatDraftMessage = "";
|
24564
24667
|
}
|
@@ -24573,10 +24676,10 @@ var useChatDraftMessage = () => {
|
|
24573
24676
|
|
24574
24677
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
24575
24678
|
init_define_process_env();
|
24576
|
-
import { useEffect as
|
24679
|
+
import { useEffect as useEffect27, useRef as useRef19 } from "react";
|
24577
24680
|
var useEmojiPickerStyles = (showing) => {
|
24578
24681
|
const ref = useRef19(null);
|
24579
|
-
|
24682
|
+
useEffect27(() => {
|
24580
24683
|
if (showing) {
|
24581
24684
|
setTimeout(() => {
|
24582
24685
|
var _a8, _b7;
|
@@ -24624,9 +24727,9 @@ var TextArea2 = styled("textarea", {
|
|
24624
24727
|
}
|
24625
24728
|
});
|
24626
24729
|
function EmojiPicker({ onSelect }) {
|
24627
|
-
const [showEmoji, setShowEmoji] =
|
24730
|
+
const [showEmoji, setShowEmoji] = useState48(false);
|
24628
24731
|
const ref = useEmojiPickerStyles(showEmoji);
|
24629
|
-
return /* @__PURE__ */
|
24732
|
+
return /* @__PURE__ */ React111.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React111.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React111.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React111.createElement(EmojiIcon3, null))), /* @__PURE__ */ React111.createElement(Popover2.Portal, null, /* @__PURE__ */ React111.createElement(
|
24630
24733
|
Popover2.Content,
|
24631
24734
|
{
|
24632
24735
|
alignOffset: -40,
|
@@ -24636,7 +24739,7 @@ function EmojiPicker({ onSelect }) {
|
|
24636
24739
|
p: 0
|
24637
24740
|
}
|
24638
24741
|
},
|
24639
|
-
/* @__PURE__ */
|
24742
|
+
/* @__PURE__ */ React111.createElement(
|
24640
24743
|
Box,
|
24641
24744
|
{
|
24642
24745
|
css: {
|
@@ -24645,7 +24748,7 @@ function EmojiPicker({ onSelect }) {
|
|
24645
24748
|
},
|
24646
24749
|
ref
|
24647
24750
|
},
|
24648
|
-
/* @__PURE__ */
|
24751
|
+
/* @__PURE__ */ React111.createElement(Picker, { onEmojiSelect: onSelect, data: data2, previewPosition: "none", skinPosition: "search" })
|
24649
24752
|
)
|
24650
24753
|
)));
|
24651
24754
|
}
|
@@ -24657,7 +24760,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24657
24760
|
const isMobile = useMedia16(config.media.md);
|
24658
24761
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
24659
24762
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
24660
|
-
const localPeer =
|
24763
|
+
const localPeer = useHMSStore55(selectLocalPeer3);
|
24661
24764
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
24662
24765
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
24663
24766
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -24669,7 +24772,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24669
24772
|
const noAVPermissions = !(toggleAudio || toggleVideo);
|
24670
24773
|
const isMwebHLSStream = useMobileHLSStream();
|
24671
24774
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
24672
|
-
|
24775
|
+
useEffect28(() => {
|
24673
24776
|
var _a9, _b8;
|
24674
24777
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
24675
24778
|
setRoleSelector(defaultSelection);
|
@@ -24704,13 +24807,13 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24704
24807
|
});
|
24705
24808
|
}
|
24706
24809
|
}), [selectedRole, selectedPeer, hmsActions, onSend]);
|
24707
|
-
|
24810
|
+
useEffect28(() => {
|
24708
24811
|
const messageElement = inputRef.current;
|
24709
24812
|
if (messageElement) {
|
24710
24813
|
messageElement.value = draftMessage;
|
24711
24814
|
}
|
24712
24815
|
}, [draftMessage]);
|
24713
|
-
|
24816
|
+
useEffect28(() => {
|
24714
24817
|
const messageElement = inputRef.current;
|
24715
24818
|
return () => {
|
24716
24819
|
setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
|
@@ -24719,7 +24822,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24719
24822
|
if (isLocalPeerBlacklisted) {
|
24720
24823
|
return null;
|
24721
24824
|
}
|
24722
|
-
return /* @__PURE__ */
|
24825
|
+
return /* @__PURE__ */ React111.createElement(Box, { css: { position: "relative" } }, /* @__PURE__ */ React111.createElement(Flex, null, /* @__PURE__ */ React111.createElement(ChatSelectorContainer, null), canDisableChat && isMobile && isOverlayChat ? /* @__PURE__ */ React111.createElement(Flex, { align: "center", justify: "end", css: { mb: "$4" } }, /* @__PURE__ */ React111.createElement(Popover2.Root, null, /* @__PURE__ */ React111.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React111.createElement(IconButton, { css: { border: "1px solid $border_bright" } }, /* @__PURE__ */ React111.createElement(VerticalMenuIcon7, { height: "16", width: "16" }))), /* @__PURE__ */ React111.createElement(Popover2.Portal, null, /* @__PURE__ */ React111.createElement(
|
24723
24826
|
Popover2.Content,
|
24724
24827
|
{
|
24725
24828
|
align: "end",
|
@@ -24747,18 +24850,20 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24747
24850
|
"&:hover": { backgroundColor: "$surface_dim" }
|
24748
24851
|
}
|
24749
24852
|
},
|
24750
|
-
/* @__PURE__ */
|
24751
|
-
/* @__PURE__ */
|
24752
|
-
)))) : null), selection && /* @__PURE__ */
|
24853
|
+
/* @__PURE__ */ React111.createElement(PauseCircleIcon2, null),
|
24854
|
+
/* @__PURE__ */ React111.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
|
24855
|
+
)))) : null), selection && /* @__PURE__ */ React111.createElement(Flex, { align: "center", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React111.createElement(
|
24753
24856
|
Flex,
|
24754
24857
|
{
|
24755
24858
|
align: "center",
|
24756
24859
|
css: __spreadValues({
|
24757
24860
|
bg: isOverlayChat && isMobile ? "$surface_dim" : "$surface_default",
|
24861
|
+
minHeight: "$16",
|
24758
24862
|
maxHeight: "$24",
|
24759
24863
|
position: "relative",
|
24864
|
+
py: "$6",
|
24760
24865
|
pl: "$8",
|
24761
|
-
flexGrow:
|
24866
|
+
flexGrow: 1,
|
24762
24867
|
r: "$1",
|
24763
24868
|
"@md": {
|
24764
24869
|
minHeight: "unset",
|
@@ -24768,7 +24873,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24768
24873
|
}, isLandscapeHLSStream ? { minHeight: "$14", py: 0 } : {})
|
24769
24874
|
},
|
24770
24875
|
children,
|
24771
|
-
/* @__PURE__ */
|
24876
|
+
/* @__PURE__ */ React111.createElement(
|
24772
24877
|
TextArea2,
|
24773
24878
|
{
|
24774
24879
|
css: {
|
@@ -24797,7 +24902,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24797
24902
|
onCopy: (e) => e.stopPropagation()
|
24798
24903
|
}
|
24799
24904
|
),
|
24800
|
-
!isMobile && !isLandscapeHLSStream ? /* @__PURE__ */
|
24905
|
+
!isMobile && !isLandscapeHLSStream ? /* @__PURE__ */ React111.createElement(
|
24801
24906
|
EmojiPicker,
|
24802
24907
|
{
|
24803
24908
|
onSelect: (emoji) => {
|
@@ -24807,7 +24912,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24807
24912
|
}
|
24808
24913
|
}
|
24809
24914
|
) : null,
|
24810
|
-
/* @__PURE__ */
|
24915
|
+
/* @__PURE__ */ React111.createElement(
|
24811
24916
|
IconButton,
|
24812
24917
|
{
|
24813
24918
|
className: "send-msg",
|
@@ -24820,9 +24925,9 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24820
24925
|
},
|
24821
24926
|
"data-testid": "send_msg_btn"
|
24822
24927
|
},
|
24823
|
-
/* @__PURE__ */
|
24928
|
+
/* @__PURE__ */ React111.createElement(SendIcon, null)
|
24824
24929
|
)
|
24825
|
-
), (isMwebHLSStream || isLandscapeHLSStream) && /* @__PURE__ */
|
24930
|
+
), (isMwebHLSStream || isLandscapeHLSStream) && /* @__PURE__ */ React111.createElement(React111.Fragment, null, /* @__PURE__ */ React111.createElement(
|
24826
24931
|
Flex,
|
24827
24932
|
{
|
24828
24933
|
css: {
|
@@ -24830,22 +24935,22 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24830
24935
|
},
|
24831
24936
|
gap: "1"
|
24832
24937
|
},
|
24833
|
-
noAVPermissions ? /* @__PURE__ */
|
24834
|
-
/* @__PURE__ */
|
24835
|
-
)));
|
24938
|
+
noAVPermissions ? /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
|
24939
|
+
/* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
|
24940
|
+
))));
|
24836
24941
|
};
|
24837
24942
|
|
24838
24943
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
24839
24944
|
init_define_process_env();
|
24840
|
-
import
|
24841
|
-
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as
|
24945
|
+
import React112, { useCallback as useCallback28 } from "react";
|
24946
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
|
24842
24947
|
var ChatPaused = () => {
|
24843
24948
|
var _a8, _b7;
|
24844
24949
|
const hmsActions = useHMSActions37();
|
24845
24950
|
const { elements } = useRoomLayoutConferencingScreen();
|
24846
24951
|
const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
24847
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } =
|
24848
|
-
const localPeer =
|
24952
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore56(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
24953
|
+
const localPeer = useHMSStore56(selectLocalPeer4);
|
24849
24954
|
const unPauseChat = useCallback28(
|
24850
24955
|
() => __async(void 0, null, function* () {
|
24851
24956
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
@@ -24856,14 +24961,14 @@ var ChatPaused = () => {
|
|
24856
24961
|
}),
|
24857
24962
|
[hmsActions, localPeer]
|
24858
24963
|
);
|
24859
|
-
return isChatEnabled ? null : /* @__PURE__ */
|
24964
|
+
return isChatEnabled ? null : /* @__PURE__ */ React112.createElement(
|
24860
24965
|
Flex,
|
24861
24966
|
{
|
24862
24967
|
align: "center",
|
24863
24968
|
justify: "between",
|
24864
24969
|
css: { borderRadius: "$1", bg: "$surface_default", p: "$4 $4 $4 $8", w: "100%" }
|
24865
24970
|
},
|
24866
|
-
/* @__PURE__ */
|
24971
|
+
/* @__PURE__ */ React112.createElement(Box, null, /* @__PURE__ */ React112.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Chat paused"), /* @__PURE__ */ React112.createElement(
|
24867
24972
|
Text,
|
24868
24973
|
{
|
24869
24974
|
variant: "xs",
|
@@ -24872,7 +24977,7 @@ var ChatPaused = () => {
|
|
24872
24977
|
"Chat has been paused by ",
|
24873
24978
|
(chatStateUpdatedBy == null ? void 0 : chatStateUpdatedBy.peerId) === (localPeer == null ? void 0 : localPeer.id) ? "you" : chatStateUpdatedBy == null ? void 0 : chatStateUpdatedBy.userName
|
24874
24979
|
)),
|
24875
|
-
can_disable_chat ? /* @__PURE__ */
|
24980
|
+
can_disable_chat ? /* @__PURE__ */ React112.createElement(Button, { css: { fontWeight: "$semiBold", fontSize: "$sm", borderRadius: "$2" }, onClick: unPauseChat }, "Resume") : /* @__PURE__ */ React112.createElement(React112.Fragment, null)
|
24876
24981
|
);
|
24877
24982
|
};
|
24878
24983
|
var ChatBlocked = () => {
|
@@ -24880,28 +24985,28 @@ var ChatBlocked = () => {
|
|
24880
24985
|
if (!isLocalPeerBlacklisted) {
|
24881
24986
|
return null;
|
24882
24987
|
}
|
24883
|
-
return /* @__PURE__ */
|
24988
|
+
return /* @__PURE__ */ React112.createElement(
|
24884
24989
|
Flex,
|
24885
24990
|
{
|
24886
24991
|
align: "center",
|
24887
24992
|
justify: "between",
|
24888
24993
|
css: { borderRadius: "$1", bg: "$surface_default", p: "$4 $4 $4 $8", w: "100%" }
|
24889
24994
|
},
|
24890
|
-
/* @__PURE__ */
|
24995
|
+
/* @__PURE__ */ React112.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", textAlign: "center", w: "100%" } }, "You've been blocked from sending messages")
|
24891
24996
|
);
|
24892
24997
|
};
|
24893
24998
|
|
24894
24999
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
24895
25000
|
init_define_process_env();
|
24896
|
-
import
|
25001
|
+
import React115, { useEffect as useEffect29, useState as useState49 } from "react";
|
24897
25002
|
import { useSwipeable } from "react-swipeable";
|
24898
25003
|
import { useMedia as useMedia17 } from "react-use";
|
24899
|
-
import { selectSessionStore as selectSessionStore7, useHMSStore as
|
25004
|
+
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24900
25005
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
24901
25006
|
|
24902
25007
|
// src/Prebuilt/components/Chat/ArrowNavigation.tsx
|
24903
25008
|
init_define_process_env();
|
24904
|
-
import
|
25009
|
+
import React113 from "react";
|
24905
25010
|
import { ChevronDownIcon as ChevronDownIcon7, ChevronUpIcon as ChevronUpIcon6 } from "@100mslive/react-icons";
|
24906
25011
|
var ArrowNavigation = ({
|
24907
25012
|
total,
|
@@ -24912,32 +25017,32 @@ var ArrowNavigation = ({
|
|
24912
25017
|
if (total < 2) {
|
24913
25018
|
return null;
|
24914
25019
|
}
|
24915
|
-
return /* @__PURE__ */
|
25020
|
+
return /* @__PURE__ */ React113.createElement(Flex, { direction: "column", css: { gap: "$1" } }, /* @__PURE__ */ React113.createElement(
|
24916
25021
|
Flex,
|
24917
25022
|
{
|
24918
25023
|
onClick: showPrevious,
|
24919
25024
|
css: index === 0 ? { cursor: "not-allowed", color: "$on_surface_low" } : { cursor: "pointer", color: "$on_surface_medium" }
|
24920
25025
|
},
|
24921
|
-
/* @__PURE__ */
|
24922
|
-
), /* @__PURE__ */
|
25026
|
+
/* @__PURE__ */ React113.createElement(ChevronUpIcon6, { height: 20, width: 20 })
|
25027
|
+
), /* @__PURE__ */ React113.createElement(
|
24923
25028
|
Flex,
|
24924
25029
|
{
|
24925
25030
|
onClick: showNext,
|
24926
25031
|
css: index === total - 1 ? { cursor: "not-allowed", color: "$on_surface_low" } : { cursor: "pointer", color: "$on_surface_medium" }
|
24927
25032
|
},
|
24928
|
-
/* @__PURE__ */
|
25033
|
+
/* @__PURE__ */ React113.createElement(ChevronDownIcon7, { height: 20, width: 20 })
|
24929
25034
|
));
|
24930
25035
|
};
|
24931
25036
|
|
24932
25037
|
// src/Prebuilt/components/Chat/StickIndicator.tsx
|
24933
25038
|
init_define_process_env();
|
24934
|
-
import
|
25039
|
+
import React114 from "react";
|
24935
25040
|
var StickIndicator = ({ total, index }) => {
|
24936
25041
|
const sticksCount = Math.min(3, total);
|
24937
25042
|
if (total < 2) {
|
24938
25043
|
return null;
|
24939
25044
|
}
|
24940
|
-
return /* @__PURE__ */
|
25045
|
+
return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React114.createElement(
|
24941
25046
|
Box,
|
24942
25047
|
{
|
24943
25048
|
css: {
|
@@ -24953,13 +25058,13 @@ var StickIndicator = ({ total, index }) => {
|
|
24953
25058
|
var PINNED_MESSAGE_LENGTH = 75;
|
24954
25059
|
var PinnedMessage = () => {
|
24955
25060
|
var _a8, _b7, _c;
|
24956
|
-
const pinnedMessages =
|
24957
|
-
const [pinnedMessageIndex, setPinnedMessageIndex] =
|
25061
|
+
const pinnedMessages = useHMSStore57(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
25062
|
+
const [pinnedMessageIndex, setPinnedMessageIndex] = useState49(0);
|
24958
25063
|
const { removePinnedMessage } = usePinnedMessages();
|
24959
25064
|
const isMobile = useMedia17(config.media.md);
|
24960
25065
|
const { elements } = useRoomLayoutConferencingScreen();
|
24961
25066
|
const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
|
24962
|
-
const [hideOverflow, setHideOverflow] =
|
25067
|
+
const [hideOverflow, setHideOverflow] = useState49(true);
|
24963
25068
|
const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
|
24964
25069
|
const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
|
24965
25070
|
const showPreviousPinnedMessage = () => {
|
@@ -24976,7 +25081,7 @@ var PinnedMessage = () => {
|
|
24976
25081
|
onSwipedUp: () => showNextPinnedMessage(),
|
24977
25082
|
onSwipedDown: () => showPreviousPinnedMessage()
|
24978
25083
|
});
|
24979
|
-
|
25084
|
+
useEffect29(() => {
|
24980
25085
|
const count = (pinnedMessages == null ? void 0 : pinnedMessages.length) || 1;
|
24981
25086
|
if (pinnedMessageIndex >= count) {
|
24982
25087
|
setPinnedMessageIndex(count - 1);
|
@@ -24985,7 +25090,7 @@ var PinnedMessage = () => {
|
|
24985
25090
|
if (!pinnedMessages || pinnedMessages.length === 0) {
|
24986
25091
|
return null;
|
24987
25092
|
}
|
24988
|
-
return /* @__PURE__ */
|
25093
|
+
return /* @__PURE__ */ React115.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4" } }, !isMobile ? /* @__PURE__ */ React115.createElement(
|
24989
25094
|
ArrowNavigation,
|
24990
25095
|
{
|
24991
25096
|
index: pinnedMessageIndex,
|
@@ -24993,7 +25098,7 @@ var PinnedMessage = () => {
|
|
24993
25098
|
showPrevious: showPreviousPinnedMessage,
|
24994
25099
|
showNext: showNextPinnedMessage
|
24995
25100
|
}
|
24996
|
-
) : null, /* @__PURE__ */
|
25101
|
+
) : null, /* @__PURE__ */ React115.createElement(
|
24997
25102
|
Flex,
|
24998
25103
|
{
|
24999
25104
|
css: {
|
@@ -25009,8 +25114,8 @@ var PinnedMessage = () => {
|
|
25009
25114
|
align: "center",
|
25010
25115
|
justify: "between"
|
25011
25116
|
},
|
25012
|
-
isMobile ? /* @__PURE__ */
|
25013
|
-
/* @__PURE__ */
|
25117
|
+
isMobile ? /* @__PURE__ */ React115.createElement(StickIndicator, { index: pinnedMessageIndex, total: pinnedMessages.length }) : null,
|
25118
|
+
/* @__PURE__ */ React115.createElement(
|
25014
25119
|
Box,
|
25015
25120
|
{
|
25016
25121
|
css: {
|
@@ -25024,7 +25129,7 @@ var PinnedMessage = () => {
|
|
25024
25129
|
}
|
25025
25130
|
}
|
25026
25131
|
},
|
25027
|
-
/* @__PURE__ */
|
25132
|
+
/* @__PURE__ */ React115.createElement(
|
25028
25133
|
Text,
|
25029
25134
|
__spreadProps(__spreadValues({
|
25030
25135
|
variant: "sm",
|
@@ -25032,17 +25137,17 @@ var PinnedMessage = () => {
|
|
25032
25137
|
}, swipeHandlers), {
|
25033
25138
|
title: (_c = pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _c.text
|
25034
25139
|
}),
|
25035
|
-
/* @__PURE__ */
|
25140
|
+
/* @__PURE__ */ React115.createElement(
|
25036
25141
|
AnnotisedMessage,
|
25037
25142
|
{
|
25038
25143
|
message: currentPinnedMessage,
|
25039
25144
|
length: hideOverflow ? PINNED_MESSAGE_LENGTH : currentPinnedMessage.length
|
25040
25145
|
}
|
25041
25146
|
),
|
25042
|
-
canOverflow ? /* @__PURE__ */
|
25147
|
+
canOverflow ? /* @__PURE__ */ React115.createElement("span", { style: { cursor: "pointer" }, onClick: () => setHideOverflow((prev) => !prev) }, "\xA0", hideOverflow ? "... See more" : "Collapse") : null
|
25043
25148
|
)
|
25044
25149
|
),
|
25045
|
-
canUnpinMessage ? /* @__PURE__ */
|
25150
|
+
canUnpinMessage ? /* @__PURE__ */ React115.createElement(
|
25046
25151
|
Flex,
|
25047
25152
|
{
|
25048
25153
|
onClick: () => {
|
@@ -25058,8 +25163,8 @@ var PinnedMessage = () => {
|
|
25058
25163
|
},
|
25059
25164
|
title: "Unpin Message"
|
25060
25165
|
},
|
25061
|
-
/* @__PURE__ */
|
25062
|
-
/* @__PURE__ */
|
25166
|
+
/* @__PURE__ */ React115.createElement(UnpinIcon, { className: "show-on-hover", style: { display: "none" }, height: 20, width: 20 }),
|
25167
|
+
/* @__PURE__ */ React115.createElement(PinIcon2, { className: "hide-on-hover", style: { display: "block" }, height: 20, width: 20 })
|
25063
25168
|
) : null
|
25064
25169
|
));
|
25065
25170
|
};
|
@@ -25071,8 +25176,10 @@ var Chat = () => {
|
|
25071
25176
|
const listRef = useRef21(null);
|
25072
25177
|
const hmsActions = useHMSActions38();
|
25073
25178
|
const vanillaStore = useHMSVanillaStore11();
|
25074
|
-
const { enabled: isChatEnabled = true } =
|
25179
|
+
const { enabled: isChatEnabled = true } = useHMSStore58(tm("chatState" /* CHAT_STATE */)) || {};
|
25075
25180
|
const isMobile = useMedia18(config.media.md);
|
25181
|
+
const isMobileHLSStream = useMobileHLSStream();
|
25182
|
+
const isLandscapeStream = useLandscapeHLSStream();
|
25076
25183
|
const scrollToBottom = useCallback29(
|
25077
25184
|
(unreadCount = 0) => {
|
25078
25185
|
var _a9;
|
@@ -25088,7 +25195,7 @@ var Chat = () => {
|
|
25088
25195
|
},
|
25089
25196
|
[hmsActions, vanillaStore]
|
25090
25197
|
);
|
25091
|
-
return /* @__PURE__ */
|
25198
|
+
return /* @__PURE__ */ React116.createElement(
|
25092
25199
|
Flex,
|
25093
25200
|
{
|
25094
25201
|
direction: "column",
|
@@ -25098,19 +25205,46 @@ var Chat = () => {
|
|
25098
25205
|
gap: "$4"
|
25099
25206
|
}
|
25100
25207
|
},
|
25101
|
-
isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) ? null : /* @__PURE__ */
|
25102
|
-
/* @__PURE__ */
|
25103
|
-
/* @__PURE__ */
|
25104
|
-
/* @__PURE__ */
|
25105
|
-
isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) ? /* @__PURE__ */
|
25106
|
-
isChatEnabled ? /* @__PURE__ */
|
25208
|
+
isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) ? null : /* @__PURE__ */ React116.createElement(PinnedMessage, null),
|
25209
|
+
/* @__PURE__ */ React116.createElement(ChatBody, { ref: listRef, scrollToBottom }),
|
25210
|
+
/* @__PURE__ */ React116.createElement(ChatPaused, null),
|
25211
|
+
/* @__PURE__ */ React116.createElement(ChatBlocked, null),
|
25212
|
+
isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) ? /* @__PURE__ */ React116.createElement(PinnedMessage, null) : null,
|
25213
|
+
isChatEnabled ? /* @__PURE__ */ React116.createElement(ChatFooter, { onSend: scrollToBottom }, /* @__PURE__ */ React116.createElement(NewMessageIndicator, { scrollToBottom, listRef })) : null,
|
25214
|
+
(isMobileHLSStream || isLandscapeStream) && /* @__PURE__ */ React116.createElement(
|
25215
|
+
Box,
|
25216
|
+
{
|
25217
|
+
css: __spreadValues({
|
25218
|
+
position: "absolute"
|
25219
|
+
}, match6({ isLandscapeStream, isChatEnabled }).with(
|
25220
|
+
{
|
25221
|
+
isLandscapeStream: true,
|
25222
|
+
isChatEnabled: true
|
25223
|
+
},
|
25224
|
+
() => ({ bottom: "$19", right: "$10" })
|
25225
|
+
).with(
|
25226
|
+
{
|
25227
|
+
isLandscapeStream: true,
|
25228
|
+
isChatEnabled: false
|
25229
|
+
},
|
25230
|
+
() => ({ bottom: "$20", right: "$10" })
|
25231
|
+
).with(
|
25232
|
+
{
|
25233
|
+
isLandscapeStream: false,
|
25234
|
+
isChatEnabled: true
|
25235
|
+
},
|
25236
|
+
() => ({ bottom: "$19", right: "$8" })
|
25237
|
+
).otherwise(() => ({})))
|
25238
|
+
},
|
25239
|
+
/* @__PURE__ */ React116.createElement(EmojiReaction, null)
|
25240
|
+
)
|
25107
25241
|
);
|
25108
25242
|
};
|
25109
25243
|
var NewMessageIndicator = ({
|
25110
25244
|
scrollToBottom,
|
25111
25245
|
listRef
|
25112
25246
|
}) => {
|
25113
|
-
const unreadCount =
|
25247
|
+
const unreadCount = useHMSStore58($n);
|
25114
25248
|
if (!unreadCount || !listRef.current) {
|
25115
25249
|
return null;
|
25116
25250
|
}
|
@@ -25118,7 +25252,7 @@ var NewMessageIndicator = ({
|
|
25118
25252
|
if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
|
25119
25253
|
return null;
|
25120
25254
|
}
|
25121
|
-
return /* @__PURE__ */
|
25255
|
+
return /* @__PURE__ */ React116.createElement(
|
25122
25256
|
Flex,
|
25123
25257
|
{
|
25124
25258
|
justify: "center",
|
@@ -25129,7 +25263,7 @@ var NewMessageIndicator = ({
|
|
25129
25263
|
position: "absolute"
|
25130
25264
|
}
|
25131
25265
|
},
|
25132
|
-
/* @__PURE__ */
|
25266
|
+
/* @__PURE__ */ React116.createElement(
|
25133
25267
|
Button,
|
25134
25268
|
{
|
25135
25269
|
variant: "standard",
|
@@ -25149,18 +25283,18 @@ var NewMessageIndicator = ({
|
|
25149
25283
|
},
|
25150
25284
|
"New ",
|
25151
25285
|
unreadCount === 1 ? "message" : "messages",
|
25152
|
-
/* @__PURE__ */
|
25286
|
+
/* @__PURE__ */ React116.createElement(ChevronDownIcon8, { height: 16, width: 16 })
|
25153
25287
|
)
|
25154
25288
|
);
|
25155
25289
|
};
|
25156
25290
|
|
25157
25291
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
25158
25292
|
init_define_process_env();
|
25159
|
-
import
|
25293
|
+
import React117, { useEffect as useEffect30, useState as useState50 } from "react";
|
25160
25294
|
import { useInView } from "react-intersection-observer";
|
25161
25295
|
import { useMeasure as useMeasure2 } from "react-use";
|
25162
25296
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
25163
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as
|
25297
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore59, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
25164
25298
|
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
|
25165
25299
|
var LoadMoreParticipants = ({
|
25166
25300
|
hasNext,
|
@@ -25168,25 +25302,25 @@ var LoadMoreParticipants = ({
|
|
25168
25302
|
style
|
25169
25303
|
}) => {
|
25170
25304
|
const { ref, inView } = useInView();
|
25171
|
-
const [inProgress, setInProgress] =
|
25172
|
-
|
25305
|
+
const [inProgress, setInProgress] = useState50(false);
|
25306
|
+
useEffect30(() => {
|
25173
25307
|
if (hasNext && inView && !inProgress) {
|
25174
25308
|
setInProgress(true);
|
25175
25309
|
loadMore().catch(console.error).finally(() => setInProgress(false));
|
25176
25310
|
}
|
25177
25311
|
}, [hasNext, loadMore, inView, inProgress]);
|
25178
|
-
return /* @__PURE__ */
|
25312
|
+
return /* @__PURE__ */ React117.createElement(Flex, { ref, style, align: "center", justify: "center" }, inProgress ? /* @__PURE__ */ React117.createElement(Loading, { size: 16 }) : null);
|
25179
25313
|
};
|
25180
|
-
var VirtualizedParticipantItem2 =
|
25314
|
+
var VirtualizedParticipantItem2 = React117.memo(
|
25181
25315
|
({
|
25182
25316
|
index,
|
25183
25317
|
data: data3,
|
25184
25318
|
style
|
25185
25319
|
}) => {
|
25186
25320
|
if (!data3.peerList[index]) {
|
25187
|
-
return /* @__PURE__ */
|
25321
|
+
return /* @__PURE__ */ React117.createElement(LoadMoreParticipants, { hasNext: data3.hasNext, loadMore: data3.loadMorePeers, style });
|
25188
25322
|
}
|
25189
|
-
return /* @__PURE__ */
|
25323
|
+
return /* @__PURE__ */ React117.createElement(
|
25190
25324
|
Participant,
|
25191
25325
|
{
|
25192
25326
|
key: data3.peerList[index].id,
|
@@ -25199,19 +25333,19 @@ var VirtualizedParticipantItem2 = React116.memo(
|
|
25199
25333
|
);
|
25200
25334
|
var PaginatedParticipants = ({ roleName, onBack }) => {
|
25201
25335
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
|
25202
|
-
const [search, setSearch] =
|
25336
|
+
const [search, setSearch] = useState50("");
|
25203
25337
|
const filteredPeers = peers.filter((p) => {
|
25204
25338
|
var _a8;
|
25205
25339
|
return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
25206
25340
|
});
|
25207
|
-
const isConnected =
|
25341
|
+
const isConnected = useHMSStore59(selectIsConnectedToRoom8);
|
25208
25342
|
const [ref, { width }] = useMeasure2();
|
25209
25343
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
25210
25344
|
const resetSidePane = useSidepaneReset();
|
25211
|
-
|
25345
|
+
useEffect30(() => {
|
25212
25346
|
loadPeers();
|
25213
25347
|
}, []);
|
25214
|
-
return /* @__PURE__ */
|
25348
|
+
return /* @__PURE__ */ React117.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React117.createElement(Flex, { align: "center" }, /* @__PURE__ */ React117.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React117.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React117.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React117.createElement(
|
25215
25349
|
IconButton,
|
25216
25350
|
{
|
25217
25351
|
onClick: (e) => {
|
@@ -25220,8 +25354,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25220
25354
|
},
|
25221
25355
|
"data-testid": "close_sidepane"
|
25222
25356
|
},
|
25223
|
-
/* @__PURE__ */
|
25224
|
-
)), /* @__PURE__ */
|
25357
|
+
/* @__PURE__ */ React117.createElement(CrossIcon18, null)
|
25358
|
+
)), /* @__PURE__ */ React117.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ React117.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ React117.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ React117.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ React117.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ React117.createElement(
|
25225
25359
|
VariableSizeList2,
|
25226
25360
|
{
|
25227
25361
|
itemSize: (index) => index === filteredPeers.length + 1 ? 16 : ROW_HEIGHT,
|
@@ -25237,28 +25371,28 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25237
25371
|
|
25238
25372
|
// src/Prebuilt/components/ChatSettings.tsx
|
25239
25373
|
init_define_process_env();
|
25240
|
-
import
|
25241
|
-
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions39, useHMSStore as
|
25374
|
+
import React118 from "react";
|
25375
|
+
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
25242
25376
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
25243
25377
|
var ChatSettings = () => {
|
25244
25378
|
var _a8, _b7;
|
25245
25379
|
const hmsActions = useHMSActions39();
|
25246
|
-
const localPeer =
|
25380
|
+
const localPeer = useHMSStore60(selectLocalPeer5);
|
25247
25381
|
const { elements } = useRoomLayoutConferencingScreen();
|
25248
25382
|
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
25249
|
-
const { enabled: isChatEnabled = true } =
|
25383
|
+
const { enabled: isChatEnabled = true } = useHMSStore60(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
25250
25384
|
const showPause = canPauseChat && isChatEnabled;
|
25251
25385
|
if (!showPause) {
|
25252
25386
|
return null;
|
25253
25387
|
}
|
25254
|
-
return /* @__PURE__ */
|
25388
|
+
return /* @__PURE__ */ React118.createElement(Popover2.Root, null, /* @__PURE__ */ React118.createElement(Popover2.Trigger, { asChild: true, css: { px: "$4" } }, /* @__PURE__ */ React118.createElement(
|
25255
25389
|
Flex,
|
25256
25390
|
{
|
25257
25391
|
align: "center",
|
25258
25392
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high" }, cursor: "pointer" }
|
25259
25393
|
},
|
25260
|
-
/* @__PURE__ */
|
25261
|
-
)), /* @__PURE__ */
|
25394
|
+
/* @__PURE__ */ React118.createElement(SettingsIcon5, null)
|
25395
|
+
)), /* @__PURE__ */ React118.createElement(Popover2.Portal, null, /* @__PURE__ */ React118.createElement(
|
25262
25396
|
Popover2.Content,
|
25263
25397
|
{
|
25264
25398
|
align: "end",
|
@@ -25287,8 +25421,8 @@ var ChatSettings = () => {
|
|
25287
25421
|
"&:hover": { backgroundColor: "$surface_dim" }
|
25288
25422
|
}
|
25289
25423
|
},
|
25290
|
-
/* @__PURE__ */
|
25291
|
-
/* @__PURE__ */
|
25424
|
+
/* @__PURE__ */ React118.createElement(PauseCircleIcon3, null),
|
25425
|
+
/* @__PURE__ */ React118.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
|
25292
25426
|
)));
|
25293
25427
|
};
|
25294
25428
|
|
@@ -25305,16 +25439,16 @@ var tabTriggerCSS = {
|
|
25305
25439
|
}
|
25306
25440
|
};
|
25307
25441
|
var ParticipantCount2 = ({ count }) => {
|
25308
|
-
return count < 1e3 ? /* @__PURE__ */
|
25442
|
+
return count < 1e3 ? /* @__PURE__ */ React119.createElement("span", null, "(", count, ")") : /* @__PURE__ */ React119.createElement(Tooltip, { title: count }, /* @__PURE__ */ React119.createElement("span", null, "(", getFormattedCount(count), ")"));
|
25309
25443
|
};
|
25310
|
-
var SidePaneTabs =
|
25444
|
+
var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControls, hideTab = false }) => {
|
25311
25445
|
var _a8, _b7;
|
25312
25446
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
25313
25447
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
25314
25448
|
const resetSidePane = useSidepaneReset();
|
25315
|
-
const [activeTab, setActiveTab] =
|
25316
|
-
const [activeRole, setActiveRole] =
|
25317
|
-
const peerCount =
|
25449
|
+
const [activeTab, setActiveTab] = useState51(active);
|
25450
|
+
const [activeRole, setActiveRole] = useState51("");
|
25451
|
+
const peerCount = useHMSStore61(selectPeerCount5);
|
25318
25452
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
25319
25453
|
const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
|
25320
25454
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
@@ -25325,8 +25459,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25325
25459
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
25326
25460
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
25327
25461
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
25328
|
-
|
25329
|
-
|
25462
|
+
useEffect31(() => {
|
25463
|
+
match7({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
25330
25464
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
25331
25465
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
25332
25466
|
setActiveTab(SIDE_PANE_OPTIONS.CHAT);
|
@@ -25334,11 +25468,11 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25334
25468
|
resetSidePane();
|
25335
25469
|
});
|
25336
25470
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
25337
|
-
|
25471
|
+
useEffect31(() => {
|
25338
25472
|
setActiveTab(active);
|
25339
25473
|
}, [active]);
|
25340
25474
|
if (activeRole) {
|
25341
|
-
return /* @__PURE__ */
|
25475
|
+
return /* @__PURE__ */ React119.createElement(
|
25342
25476
|
Flex,
|
25343
25477
|
{
|
25344
25478
|
direction: "column",
|
@@ -25350,10 +25484,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25350
25484
|
position: "relative"
|
25351
25485
|
}
|
25352
25486
|
},
|
25353
|
-
/* @__PURE__ */
|
25487
|
+
/* @__PURE__ */ React119.createElement(Box, { css: { position: "absolute", left: 0, top: 0, size: "100%", zIndex: 21, bg: "$surface_dim" } }, /* @__PURE__ */ React119.createElement(PaginatedParticipants, { roleName: activeRole, onBack: () => setActiveRole("") }))
|
25354
25488
|
);
|
25355
25489
|
}
|
25356
|
-
return /* @__PURE__ */
|
25490
|
+
return /* @__PURE__ */ React119.createElement(
|
25357
25491
|
Flex,
|
25358
25492
|
{
|
25359
25493
|
direction: "column",
|
@@ -25364,8 +25498,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25364
25498
|
transition: "margin 0.3s ease-in-out"
|
25365
25499
|
}
|
25366
25500
|
},
|
25367
|
-
|
25368
|
-
return /* @__PURE__ */
|
25501
|
+
match7({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ React119.createElement(Chat, null)).with({ hideTabs: true }, () => {
|
25502
|
+
return /* @__PURE__ */ React119.createElement(React119.Fragment, null, /* @__PURE__ */ React119.createElement(Flex, { justify: "between", css: { w: "100%", "&:empty": { display: "none" } } }, /* @__PURE__ */ React119.createElement(
|
25369
25503
|
Text,
|
25370
25504
|
{
|
25371
25505
|
variant: "sm",
|
@@ -25377,8 +25511,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25377
25511
|
"&:empty": { display: "none" }
|
25378
25512
|
}
|
25379
25513
|
},
|
25380
|
-
activeTab === SIDE_PANE_OPTIONS.CHAT ? screenType !== "hls_live_streaming" && chat_title : /* @__PURE__ */
|
25381
|
-
), /* @__PURE__ */
|
25514
|
+
activeTab === SIDE_PANE_OPTIONS.CHAT ? screenType !== "hls_live_streaming" && chat_title : /* @__PURE__ */ React119.createElement("span", null, "Participants\xA0", /* @__PURE__ */ React119.createElement(ParticipantCount2, { count: peerCount }))
|
25515
|
+
), /* @__PURE__ */ React119.createElement(Flex, null, showChatSettings ? /* @__PURE__ */ React119.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ React119.createElement(
|
25382
25516
|
IconButton,
|
25383
25517
|
{
|
25384
25518
|
css: {
|
@@ -25397,10 +25531,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25397
25531
|
},
|
25398
25532
|
"data-testid": "close_chat"
|
25399
25533
|
},
|
25400
|
-
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */
|
25401
|
-
))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */
|
25534
|
+
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React119.createElement(CrossIcon19, null)
|
25535
|
+
))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ React119.createElement(Chat, null) : /* @__PURE__ */ React119.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
|
25402
25536
|
}).otherwise(() => {
|
25403
|
-
return /* @__PURE__ */
|
25537
|
+
return /* @__PURE__ */ React119.createElement(
|
25404
25538
|
Tabs.Root,
|
25405
25539
|
{
|
25406
25540
|
value: activeTab,
|
@@ -25410,7 +25544,7 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25410
25544
|
size: "100%"
|
25411
25545
|
}
|
25412
25546
|
},
|
25413
|
-
/* @__PURE__ */
|
25547
|
+
/* @__PURE__ */ React119.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React119.createElement(Tabs.List, { css: { flexGrow: 1, borderRadius: "$2", bg: "$surface_default" } }, /* @__PURE__ */ React119.createElement(Tabs.Trigger, { value: SIDE_PANE_OPTIONS.CHAT, onClick: toggleChat, css: tabTriggerCSS }, chat_title), /* @__PURE__ */ React119.createElement(Tabs.Trigger, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, onClick: toggleParticipants, css: tabTriggerCSS }, "Participants\xA0", /* @__PURE__ */ React119.createElement(ParticipantCount2, { count: peerCount }))), showChatSettings ? /* @__PURE__ */ React119.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ React119.createElement(
|
25414
25548
|
IconButton,
|
25415
25549
|
{
|
25416
25550
|
css: { my: "$1", color: "$on_surface_medium", "&:hover": { color: "$on_surface_high" } },
|
@@ -25424,10 +25558,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25424
25558
|
},
|
25425
25559
|
"data-testid": "close_chat"
|
25426
25560
|
},
|
25427
|
-
/* @__PURE__ */
|
25561
|
+
/* @__PURE__ */ React119.createElement(CrossIcon19, null)
|
25428
25562
|
)),
|
25429
|
-
/* @__PURE__ */
|
25430
|
-
/* @__PURE__ */
|
25563
|
+
/* @__PURE__ */ React119.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ React119.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
|
25564
|
+
/* @__PURE__ */ React119.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ React119.createElement(Chat, null))
|
25431
25565
|
);
|
25432
25566
|
})
|
25433
25567
|
);
|
@@ -25435,7 +25569,7 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25435
25569
|
|
25436
25570
|
// src/Prebuilt/components/VideoTile.tsx
|
25437
25571
|
init_define_process_env();
|
25438
|
-
import
|
25572
|
+
import React123, { useCallback as useCallback30, useMemo as useMemo10, useState as useState53 } from "react";
|
25439
25573
|
import { useMeasure as useMeasure3 } from "react-use";
|
25440
25574
|
import {
|
25441
25575
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
@@ -25446,14 +25580,14 @@ import {
|
|
25446
25580
|
selectPeerNameByID as selectPeerNameByID4,
|
25447
25581
|
selectVideoTrackByID as selectVideoTrackByID3,
|
25448
25582
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
25449
|
-
useHMSStore as
|
25583
|
+
useHMSStore as useHMSStore65
|
25450
25584
|
} from "@100mslive/react-sdk";
|
25451
25585
|
import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
|
25452
25586
|
|
25453
25587
|
// src/Prebuilt/components/Connection/TileConnection.tsx
|
25454
25588
|
init_define_process_env();
|
25455
|
-
import
|
25456
|
-
import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as
|
25589
|
+
import React120 from "react";
|
25590
|
+
import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as useHMSStore62 } from "@100mslive/react-sdk";
|
25457
25591
|
import { PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
|
25458
25592
|
var TileConnection = ({
|
25459
25593
|
name,
|
@@ -25462,9 +25596,9 @@ var TileConnection = ({
|
|
25462
25596
|
width,
|
25463
25597
|
pinned
|
25464
25598
|
}) => {
|
25465
|
-
const spotlighted =
|
25466
|
-
const isPeerScreenSharing = !!
|
25467
|
-
return /* @__PURE__ */
|
25599
|
+
const spotlighted = useHMSStore62(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
|
25600
|
+
const isPeerScreenSharing = !!useHMSStore62(selectScreenShareByPeerID(peerId));
|
25601
|
+
return /* @__PURE__ */ React120.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, name ? /* @__PURE__ */ React120.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React120.createElement(
|
25468
25602
|
Text,
|
25469
25603
|
{
|
25470
25604
|
css: __spreadValues({
|
@@ -25474,7 +25608,7 @@ var TileConnection = ({
|
|
25474
25608
|
variant: "xs"
|
25475
25609
|
},
|
25476
25610
|
name
|
25477
|
-
)) : null, /* @__PURE__ */
|
25611
|
+
)) : null, /* @__PURE__ */ React120.createElement(ConnectionIndicator, { isTile: true, peerId, hideBg: true })) : null);
|
25478
25612
|
};
|
25479
25613
|
var IconWrapper = styled("div", { c: "$on_surface_high", ml: "$3", mt: "$1", display: "flex" });
|
25480
25614
|
var Wrapper2 = styled("div", {
|
@@ -25496,7 +25630,7 @@ var TileConnection_default = TileConnection;
|
|
25496
25630
|
|
25497
25631
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
25498
25632
|
init_define_process_env();
|
25499
|
-
import
|
25633
|
+
import React122, { useState as useState52 } from "react";
|
25500
25634
|
import { useMedia as useMedia21 } from "react-use";
|
25501
25635
|
import {
|
25502
25636
|
selectLocalPeerID as selectLocalPeerID11,
|
@@ -25504,14 +25638,14 @@ import {
|
|
25504
25638
|
selectPermissions as selectPermissions17,
|
25505
25639
|
selectTrackByID as selectTrackByID3,
|
25506
25640
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
25507
|
-
useHMSStore as
|
25641
|
+
useHMSStore as useHMSStore64,
|
25508
25642
|
useRemoteAVToggle as useRemoteAVToggle2
|
25509
25643
|
} from "@100mslive/react-sdk";
|
25510
25644
|
import { CrossIcon as CrossIcon20, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
25511
25645
|
|
25512
25646
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
25513
25647
|
init_define_process_env();
|
25514
|
-
import
|
25648
|
+
import React121, { Fragment as Fragment11 } from "react";
|
25515
25649
|
import { useMedia as useMedia20 } from "react-use";
|
25516
25650
|
import {
|
25517
25651
|
selectPermissions as selectPermissions16,
|
@@ -25519,7 +25653,7 @@ import {
|
|
25519
25653
|
selectTrackByID as selectTrackByID2,
|
25520
25654
|
useCustomEvent as useCustomEvent2,
|
25521
25655
|
useHMSActions as useHMSActions40,
|
25522
|
-
useHMSStore as
|
25656
|
+
useHMSStore as useHMSStore63,
|
25523
25657
|
useRemoteAVToggle
|
25524
25658
|
} from "@100mslive/react-sdk";
|
25525
25659
|
import {
|
@@ -25556,11 +25690,11 @@ var SpotlightActions = ({
|
|
25556
25690
|
}
|
25557
25691
|
}) => {
|
25558
25692
|
const hmsActions = useHMSActions40();
|
25559
|
-
const spotlightPeerId =
|
25693
|
+
const spotlightPeerId = useHMSStore63(selectSessionStore10("spotlight" /* SPOTLIGHT */));
|
25560
25694
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
25561
25695
|
const dragClassName = getDragClassName();
|
25562
25696
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
25563
|
-
return /* @__PURE__ */
|
25697
|
+
return /* @__PURE__ */ React121.createElement(
|
25564
25698
|
StyledMenuTile.ItemButton,
|
25565
25699
|
{
|
25566
25700
|
className: dragClassName,
|
@@ -25574,8 +25708,8 @@ var SpotlightActions = ({
|
|
25574
25708
|
onSpotLightClick();
|
25575
25709
|
}
|
25576
25710
|
},
|
25577
|
-
/* @__PURE__ */
|
25578
|
-
/* @__PURE__ */
|
25711
|
+
/* @__PURE__ */ React121.createElement(StarIcon2, { height: 20, width: 20 }),
|
25712
|
+
/* @__PURE__ */ React121.createElement("span", null, isTileSpotlighted ? "Remove from Spotlight" : "Spotlight Tile for everyone")
|
25579
25713
|
);
|
25580
25714
|
};
|
25581
25715
|
var PinActions = ({ audioTrackID, videoTrackID }) => {
|
@@ -25586,25 +25720,25 @@ var PinActions = ({ audioTrackID, videoTrackID }) => {
|
|
25586
25720
|
videoTrackID,
|
25587
25721
|
audioTrackID
|
25588
25722
|
});
|
25589
|
-
return /* @__PURE__ */
|
25723
|
+
return /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(
|
25590
25724
|
StyledMenuTile.ItemButton,
|
25591
25725
|
{
|
25592
25726
|
className: dragClassName,
|
25593
25727
|
css: spacingCSS,
|
25594
25728
|
onClick: () => isTilePinned ? setPinnedTrackId() : setPinnedTrackId(videoTrackID || audioTrackID)
|
25595
25729
|
},
|
25596
|
-
/* @__PURE__ */
|
25597
|
-
/* @__PURE__ */
|
25730
|
+
/* @__PURE__ */ React121.createElement(PinIcon4, { height: 20, width: 20 }),
|
25731
|
+
/* @__PURE__ */ React121.createElement("span", null, isTilePinned ? "Unpin" : "Pin", " Tile for myself")
|
25598
25732
|
));
|
25599
25733
|
};
|
25600
25734
|
var MinimiseInset = () => {
|
25601
25735
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
25602
25736
|
const dragClassName = getDragClassName();
|
25603
|
-
return /* @__PURE__ */
|
25737
|
+
return /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ React121.createElement(ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ React121.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
|
25604
25738
|
};
|
25605
25739
|
var SimulcastLayers = ({ trackId }) => {
|
25606
25740
|
var _a8;
|
25607
|
-
const track =
|
25741
|
+
const track = useHMSStore63(selectTrackByID2(trackId));
|
25608
25742
|
const actions = useHMSActions40();
|
25609
25743
|
const bg = useDropdownSelection();
|
25610
25744
|
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
@@ -25612,8 +25746,8 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25612
25746
|
}
|
25613
25747
|
const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
|
25614
25748
|
const dragClassName = getDragClassName();
|
25615
|
-
return /* @__PURE__ */
|
25616
|
-
return /* @__PURE__ */
|
25749
|
+
return /* @__PURE__ */ React121.createElement(Fragment11, null, /* @__PURE__ */ React121.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: { color: "$on_surface_medium", cursor: "default" } }, "Select maximum resolution"), track.layerDefinitions.map((layer) => {
|
25750
|
+
return /* @__PURE__ */ React121.createElement(
|
25617
25751
|
StyledMenuTile.ItemButton,
|
25618
25752
|
{
|
25619
25753
|
className: dragClassName,
|
@@ -25629,7 +25763,7 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25629
25763
|
}
|
25630
25764
|
}
|
25631
25765
|
},
|
25632
|
-
/* @__PURE__ */
|
25766
|
+
/* @__PURE__ */ React121.createElement(
|
25633
25767
|
Text,
|
25634
25768
|
{
|
25635
25769
|
as: "span",
|
@@ -25642,7 +25776,7 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25642
25776
|
},
|
25643
25777
|
layer.layer
|
25644
25778
|
),
|
25645
|
-
/* @__PURE__ */
|
25779
|
+
/* @__PURE__ */ React121.createElement(
|
25646
25780
|
Text,
|
25647
25781
|
{
|
25648
25782
|
as: "span",
|
@@ -25656,7 +25790,7 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25656
25790
|
layer.resolution.height
|
25657
25791
|
)
|
25658
25792
|
);
|
25659
|
-
}), /* @__PURE__ */
|
25793
|
+
}), /* @__PURE__ */ React121.createElement(StyledMenuTile.ItemButton, { className: dragClassName }, /* @__PURE__ */ React121.createElement(Text, { as: "span", variant: "xs", css: { color: "$on_surface_medium" } }, "Currently streaming:", /* @__PURE__ */ React121.createElement(
|
25660
25794
|
Text,
|
25661
25795
|
{
|
25662
25796
|
as: "span",
|
@@ -25668,7 +25802,7 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25668
25802
|
ml: "$2"
|
25669
25803
|
}
|
25670
25804
|
},
|
25671
|
-
currentLayer ? /* @__PURE__ */
|
25805
|
+
currentLayer ? /* @__PURE__ */ React121.createElement(React121.Fragment, null, track.layer, " (", currentLayer.resolution.width, "x", currentLayer.resolution.height, ")") : "-"
|
25672
25806
|
))));
|
25673
25807
|
};
|
25674
25808
|
var TileMenuContent = ({
|
@@ -25690,7 +25824,7 @@ var TileMenuContent = ({
|
|
25690
25824
|
var _a8;
|
25691
25825
|
const actions = useHMSActions40();
|
25692
25826
|
const dragClassName = getDragClassName();
|
25693
|
-
const removeOthers = (_a8 =
|
25827
|
+
const removeOthers = (_a8 = useHMSStore63(selectPermissions16)) == null ? void 0 : _a8.removeOthers;
|
25694
25828
|
const { userName } = useHMSPrebuiltContext();
|
25695
25829
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
25696
25830
|
audioTrackID,
|
@@ -25701,7 +25835,7 @@ var TileMenuContent = ({
|
|
25701
25835
|
});
|
25702
25836
|
const isMobile = useMedia20(config.media.md);
|
25703
25837
|
if (isLocal) {
|
25704
|
-
return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */
|
25838
|
+
return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React121.createElement(React121.Fragment, null, showPinAction && /* @__PURE__ */ React121.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React121.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React121.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React121.createElement(
|
25705
25839
|
StyledMenuTile.ItemButton,
|
25706
25840
|
{
|
25707
25841
|
className: dragClassName,
|
@@ -25710,11 +25844,11 @@ var TileMenuContent = ({
|
|
25710
25844
|
closeSheetOnClick();
|
25711
25845
|
}
|
25712
25846
|
},
|
25713
|
-
/* @__PURE__ */
|
25714
|
-
/* @__PURE__ */
|
25847
|
+
/* @__PURE__ */ React121.createElement(PencilIcon, { height: 20, width: 20 }),
|
25848
|
+
/* @__PURE__ */ React121.createElement(Text, { variant: "sm", css: { "@md": { fontWeight: "$semiBold" }, c: "$on_surface_high" } }, "Change Name")
|
25715
25849
|
)) : null;
|
25716
25850
|
}
|
25717
|
-
return /* @__PURE__ */
|
25851
|
+
return /* @__PURE__ */ React121.createElement(React121.Fragment, null, toggleVideo ? /* @__PURE__ */ React121.createElement(
|
25718
25852
|
StyledMenuTile.ItemButton,
|
25719
25853
|
{
|
25720
25854
|
className: dragClassName,
|
@@ -25725,9 +25859,9 @@ var TileMenuContent = ({
|
|
25725
25859
|
},
|
25726
25860
|
"data-testid": isVideoEnabled ? "mute_video_participant_btn" : "unmute_video_participant_btn"
|
25727
25861
|
},
|
25728
|
-
isVideoEnabled ? /* @__PURE__ */
|
25729
|
-
/* @__PURE__ */
|
25730
|
-
) : null, toggleAudio ? /* @__PURE__ */
|
25862
|
+
isVideoEnabled ? /* @__PURE__ */ React121.createElement(VideoOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React121.createElement(VideoOffIcon3, { height: 20, width: 20 }),
|
25863
|
+
/* @__PURE__ */ React121.createElement("span", null, isVideoEnabled ? "Mute Video" : "Request to Unmute Video")
|
25864
|
+
) : null, toggleAudio ? /* @__PURE__ */ React121.createElement(
|
25731
25865
|
StyledMenuTile.ItemButton,
|
25732
25866
|
{
|
25733
25867
|
css: spacingCSS,
|
@@ -25738,9 +25872,9 @@ var TileMenuContent = ({
|
|
25738
25872
|
},
|
25739
25873
|
"data-testid": isAudioEnabled ? "mute_audio_participant_btn" : "unmute_audio_participant_btn"
|
25740
25874
|
},
|
25741
|
-
isAudioEnabled ? /* @__PURE__ */
|
25742
|
-
/* @__PURE__ */
|
25743
|
-
) : null, audioTrackID ? /* @__PURE__ */
|
25875
|
+
isAudioEnabled ? /* @__PURE__ */ React121.createElement(MicOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React121.createElement(MicOffIcon5, { height: 20, width: 20 }),
|
25876
|
+
/* @__PURE__ */ React121.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
|
25877
|
+
) : null, audioTrackID ? /* @__PURE__ */ React121.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ React121.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React121.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React121.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React121.createElement(
|
25744
25878
|
Slider,
|
25745
25879
|
{
|
25746
25880
|
css: { my: "0.5rem" },
|
@@ -25748,7 +25882,7 @@ var TileMenuContent = ({
|
|
25748
25882
|
value: [typeof volume === "number" ? volume : 100],
|
25749
25883
|
onValueChange: (e) => setVolume == null ? void 0 : setVolume(e[0])
|
25750
25884
|
}
|
25751
|
-
)) : null, showPinAction && /* @__PURE__ */
|
25885
|
+
)) : null, showPinAction && /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React121.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() })), isMobile ? null : /* @__PURE__ */ React121.createElement(SimulcastLayers, { trackId: videoTrackID }), removeOthers ? /* @__PURE__ */ React121.createElement(
|
25752
25886
|
StyledMenuTile.RemoveItem,
|
25753
25887
|
{
|
25754
25888
|
css: __spreadProps(__spreadValues({}, spacingCSS), { borderTop: "none" }),
|
@@ -25761,9 +25895,9 @@ var TileMenuContent = ({
|
|
25761
25895
|
}),
|
25762
25896
|
"data-testid": "remove_participant_btn"
|
25763
25897
|
},
|
25764
|
-
/* @__PURE__ */
|
25765
|
-
/* @__PURE__ */
|
25766
|
-
) : null, removeOthers && isScreenshare ? /* @__PURE__ */
|
25898
|
+
/* @__PURE__ */ React121.createElement(RemoveUserIcon2, { height: 20, width: 20 }),
|
25899
|
+
/* @__PURE__ */ React121.createElement("span", null, "Remove Participant")
|
25900
|
+
) : null, removeOthers && isScreenshare ? /* @__PURE__ */ React121.createElement(
|
25767
25901
|
StyledMenuTile.RemoveItem,
|
25768
25902
|
{
|
25769
25903
|
onClick: () => {
|
@@ -25772,8 +25906,8 @@ var TileMenuContent = ({
|
|
25772
25906
|
},
|
25773
25907
|
css: spacingCSS
|
25774
25908
|
},
|
25775
|
-
/* @__PURE__ */
|
25776
|
-
/* @__PURE__ */
|
25909
|
+
/* @__PURE__ */ React121.createElement(ShareScreenIcon4, { height: 20, width: 20 }),
|
25910
|
+
/* @__PURE__ */ React121.createElement("span", null, "Stop Screenshare")
|
25777
25911
|
) : null);
|
25778
25912
|
};
|
25779
25913
|
|
@@ -25787,20 +25921,20 @@ var TileMenu = ({
|
|
25787
25921
|
enableSpotlightingPeer = true
|
25788
25922
|
}) => {
|
25789
25923
|
var _a8, _b7;
|
25790
|
-
const [open, setOpen] =
|
25924
|
+
const [open, setOpen] = useState52(false);
|
25791
25925
|
const { theme: theme2 } = useTheme();
|
25792
|
-
const localPeerID =
|
25926
|
+
const localPeerID = useHMSStore64(selectLocalPeerID11);
|
25793
25927
|
const isLocal = localPeerID === peerID;
|
25794
|
-
const { removeOthers } =
|
25928
|
+
const { removeOthers } = useHMSStore64(selectPermissions17) || {};
|
25795
25929
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
25796
25930
|
const showSpotlight = enableSpotlightingPeer;
|
25797
|
-
const isPrimaryVideoTrack = ((_a8 =
|
25931
|
+
const isPrimaryVideoTrack = ((_a8 = useHMSStore64(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
25798
25932
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
25799
|
-
const track =
|
25933
|
+
const track = useHMSStore64(selectTrackByID3(videoTrackID));
|
25800
25934
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
25801
25935
|
const isMobile = useMedia21(config.media.md);
|
25802
|
-
const peer =
|
25803
|
-
const [showNameChangeModal, setShowNameChangeModal] =
|
25936
|
+
const peer = useHMSStore64(selectPeerByID2(peerID));
|
25937
|
+
const [showNameChangeModal, setShowNameChangeModal] = useState52(false);
|
25804
25938
|
useDropdownList({ open, name: "TileMenu" });
|
25805
25939
|
const dragClassName = getDragClassName();
|
25806
25940
|
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
@@ -25819,7 +25953,7 @@ var TileMenu = ({
|
|
25819
25953
|
canMinimise,
|
25820
25954
|
openNameChangeModal
|
25821
25955
|
};
|
25822
|
-
return /* @__PURE__ */
|
25956
|
+
return /* @__PURE__ */ React122.createElement(React122.Fragment, null, /* @__PURE__ */ React122.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React122.createElement(
|
25823
25957
|
StyledMenuTile.Trigger,
|
25824
25958
|
{
|
25825
25959
|
"data-testid": "participant_menu_btn",
|
@@ -25827,8 +25961,8 @@ var TileMenu = ({
|
|
25827
25961
|
onClick: (e) => e.stopPropagation(),
|
25828
25962
|
className: dragClassName
|
25829
25963
|
},
|
25830
|
-
/* @__PURE__ */
|
25831
|
-
), isMobile ? /* @__PURE__ */
|
25964
|
+
/* @__PURE__ */ React122.createElement(VerticalMenuIcon8, { width: 20, height: 20 })
|
25965
|
+
), isMobile ? /* @__PURE__ */ React122.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React122.createElement(Sheet.Content, { css: { bg: "$surface_dim", pt: "$8" } }, /* @__PURE__ */ React122.createElement(
|
25832
25966
|
Flex,
|
25833
25967
|
{
|
25834
25968
|
css: {
|
@@ -25842,9 +25976,9 @@ var TileMenu = ({
|
|
25842
25976
|
borderBottom: "1px solid $border_default"
|
25843
25977
|
}
|
25844
25978
|
},
|
25845
|
-
/* @__PURE__ */
|
25846
|
-
/* @__PURE__ */
|
25847
|
-
), /* @__PURE__ */
|
25979
|
+
/* @__PURE__ */ React122.createElement(Box, null, /* @__PURE__ */ React122.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal ? ` (You)` : null), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ React122.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
|
25980
|
+
/* @__PURE__ */ React122.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React122.createElement(CrossIcon20, null))
|
25981
|
+
), /* @__PURE__ */ React122.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React122.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ React122.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React122.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ React122.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }));
|
25848
25982
|
};
|
25849
25983
|
var TileMenu_default = TileMenu;
|
25850
25984
|
|
@@ -25876,10 +26010,10 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
|
25876
26010
|
|
25877
26011
|
// src/Prebuilt/components/VideoTile.tsx
|
25878
26012
|
var PeerMetadata = ({ peerId, size }) => {
|
25879
|
-
const metaData =
|
26013
|
+
const metaData = useHMSStore65(selectPeerMetadata4(peerId));
|
25880
26014
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
25881
|
-
const isHandRaised =
|
25882
|
-
return /* @__PURE__ */
|
26015
|
+
const isHandRaised = useHMSStore65(selectHasPeerHandRaised3(peerId));
|
26016
|
+
return /* @__PURE__ */ React123.createElement(React123.Fragment, null, isHandRaised ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React123.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React123.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
|
25883
26017
|
};
|
25884
26018
|
var Tile = ({
|
25885
26019
|
peerId = "",
|
@@ -25898,16 +26032,16 @@ var Tile = ({
|
|
25898
26032
|
hideMetadataOnTile = false
|
25899
26033
|
}) => {
|
25900
26034
|
const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
|
25901
|
-
const track =
|
25902
|
-
const peerName =
|
25903
|
-
const audioTrack =
|
25904
|
-
const localPeerID =
|
26035
|
+
const track = useHMSStore65(trackSelector);
|
26036
|
+
const peerName = useHMSStore65(selectPeerNameByID4(peerId));
|
26037
|
+
const audioTrack = useHMSStore65(selectAudioTrackByPeerID2(peerId));
|
26038
|
+
const localPeerID = useHMSStore65(selectLocalPeerID12);
|
25905
26039
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
25906
26040
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
25907
26041
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
25908
|
-
const isAudioMuted = !
|
26042
|
+
const isAudioMuted = !useHMSStore65(selectIsPeerAudioEnabled2(peerId));
|
25909
26043
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
25910
|
-
const [isMouseHovered, setIsMouseHovered] =
|
26044
|
+
const [isMouseHovered, setIsMouseHovered] = useState53(false);
|
25911
26045
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
25912
26046
|
const isLocal = localPeerID === peerId;
|
25913
26047
|
const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
|
@@ -25930,7 +26064,7 @@ var Tile = ({
|
|
25930
26064
|
() => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
|
25931
26065
|
[calculatedWidth, calculatedHeight]
|
25932
26066
|
);
|
25933
|
-
return /* @__PURE__ */
|
26067
|
+
return /* @__PURE__ */ React123.createElement(
|
25934
26068
|
StyledVideoTile.Root,
|
25935
26069
|
{
|
25936
26070
|
ref,
|
@@ -25940,7 +26074,7 @@ var Tile = ({
|
|
25940
26074
|
}, rootCSS),
|
25941
26075
|
"data-testid": `participant_tile_${peerName}`
|
25942
26076
|
},
|
25943
|
-
peerName !== void 0 ? /* @__PURE__ */
|
26077
|
+
peerName !== void 0 ? /* @__PURE__ */ React123.createElement(
|
25944
26078
|
StyledVideoTile.Container,
|
25945
26079
|
{
|
25946
26080
|
onMouseEnter: onHoverHandler,
|
@@ -25948,8 +26082,8 @@ var Tile = ({
|
|
25948
26082
|
noRadius: !roundedVideoTile,
|
25949
26083
|
css: containerCSS
|
25950
26084
|
},
|
25951
|
-
showStatsOnTiles && isTileBigEnoughToShowStats ? /* @__PURE__ */
|
25952
|
-
/* @__PURE__ */
|
26085
|
+
showStatsOnTiles && isTileBigEnoughToShowStats ? /* @__PURE__ */ React123.createElement(VideoTileStats, { audioTrackID: audioTrack == null ? void 0 : audioTrack.id, videoTrackID: track == null ? void 0 : track.id, peerID: peerId, isLocal }) : null,
|
26086
|
+
/* @__PURE__ */ React123.createElement(
|
25953
26087
|
Video,
|
25954
26088
|
{
|
25955
26089
|
trackId: track == null ? void 0 : track.id,
|
@@ -25964,8 +26098,8 @@ var Tile = ({
|
|
25964
26098
|
}
|
25965
26099
|
}
|
25966
26100
|
),
|
25967
|
-
calculatedWidth > 0 && calculatedHeight > 0 ? /* @__PURE__ */
|
25968
|
-
isMouseHovered || isDragabble && navigator.maxTouchPoints > 0 ? /* @__PURE__ */
|
26101
|
+
calculatedWidth > 0 && calculatedHeight > 0 ? /* @__PURE__ */ React123.createElement(React123.Fragment, null, isVideoMuted || !isLocal && isAudioOnly ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AvatarContainer, null, /* @__PURE__ */ React123.createElement(Avatar, { name: peerName || "", "data-testid": "participant_avatar_icon", size: avatarSize })) : null, !hideAudioMuteOnTile && isAudioMuted ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AudioIndicator, { "data-testid": "participant_audio_mute_icon", size: attribBoxSize }, /* @__PURE__ */ React123.createElement(MicOffIcon6, null)) : null, !hideAudioMuteOnTile && !isAudioMuted ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AudioIndicator, { size: attribBoxSize }, /* @__PURE__ */ React123.createElement(AudioLevel, { trackId: audioTrack == null ? void 0 : audioTrack.id, size: attribBoxSize })) : null, !hideMetadataOnTile && /* @__PURE__ */ React123.createElement(PeerMetadata, { peerId, size: attribBoxSize })) : null,
|
26102
|
+
isMouseHovered || isDragabble && navigator.maxTouchPoints > 0 ? /* @__PURE__ */ React123.createElement(
|
25969
26103
|
TileMenu_default,
|
25970
26104
|
{
|
25971
26105
|
peerID: peerId,
|
@@ -25975,7 +26109,7 @@ var Tile = ({
|
|
25975
26109
|
enableSpotlightingPeer
|
25976
26110
|
}
|
25977
26111
|
) : null,
|
25978
|
-
/* @__PURE__ */
|
26112
|
+
/* @__PURE__ */ React123.createElement(
|
25979
26113
|
TileConnection_default,
|
25980
26114
|
{
|
25981
26115
|
hideLabel: hideParticipantNameOnTile,
|
@@ -25988,12 +26122,12 @@ var Tile = ({
|
|
25988
26122
|
) : null
|
25989
26123
|
);
|
25990
26124
|
};
|
25991
|
-
var VideoTile =
|
26125
|
+
var VideoTile = React123.memo(Tile);
|
25992
26126
|
var VideoTile_default = VideoTile;
|
25993
26127
|
|
25994
26128
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
25995
26129
|
init_define_process_env();
|
25996
|
-
import
|
26130
|
+
import React126, { useEffect as useEffect32, useState as useState54 } from "react";
|
25997
26131
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
25998
26132
|
import {
|
25999
26133
|
HMSRoomState as HMSRoomState4,
|
@@ -26004,25 +26138,25 @@ import {
|
|
26004
26138
|
selectRoomState as selectRoomState4,
|
26005
26139
|
selectVideoTrackByID as selectVideoTrackByID4,
|
26006
26140
|
useHMSActions as useHMSActions41,
|
26007
|
-
useHMSStore as
|
26141
|
+
useHMSStore as useHMSStore66
|
26008
26142
|
} from "@100mslive/react-sdk";
|
26009
26143
|
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
|
26010
26144
|
|
26011
26145
|
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
26012
26146
|
init_define_process_env();
|
26013
|
-
import
|
26147
|
+
import React125 from "react";
|
26014
26148
|
import { HMSVirtualBackgroundTypes } from "@100mslive/hms-virtual-background";
|
26015
26149
|
|
26016
26150
|
// src/Prebuilt/components/VirtualBackground/VBOption.tsx
|
26017
26151
|
init_define_process_env();
|
26018
|
-
import
|
26152
|
+
import React124 from "react";
|
26019
26153
|
var Root25 = ({
|
26020
26154
|
onClick,
|
26021
26155
|
mediaURL,
|
26022
26156
|
isActive,
|
26023
26157
|
children,
|
26024
26158
|
testid = ""
|
26025
|
-
}) => /* @__PURE__ */
|
26159
|
+
}) => /* @__PURE__ */ React124.createElement(
|
26026
26160
|
Flex,
|
26027
26161
|
{
|
26028
26162
|
"data-testid": testid,
|
@@ -26043,10 +26177,10 @@ var Root25 = ({
|
|
26043
26177
|
children
|
26044
26178
|
);
|
26045
26179
|
var Title4 = ({ children }) => {
|
26046
|
-
return children ? /* @__PURE__ */
|
26180
|
+
return children ? /* @__PURE__ */ React124.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, children) : null;
|
26047
26181
|
};
|
26048
26182
|
var Icon3 = ({ children }) => {
|
26049
|
-
return children ? /* @__PURE__ */
|
26183
|
+
return children ? /* @__PURE__ */ React124.createElement(Box, { css: { color: "$on_surface_high" } }, children) : null;
|
26050
26184
|
};
|
26051
26185
|
var VBOption = {
|
26052
26186
|
Root: Root25,
|
@@ -26063,7 +26197,7 @@ var VBCollection = ({
|
|
26063
26197
|
if (options.length === 0) {
|
26064
26198
|
return null;
|
26065
26199
|
}
|
26066
|
-
return /* @__PURE__ */
|
26200
|
+
return /* @__PURE__ */ React125.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React125.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React125.createElement(Box, { css: { py: "$4", display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: "$8" } }, options.map((option, index) => /* @__PURE__ */ React125.createElement(
|
26067
26201
|
VBOption.Root,
|
26068
26202
|
__spreadProps(__spreadValues({
|
26069
26203
|
key: option.value,
|
@@ -26071,8 +26205,8 @@ var VBCollection = ({
|
|
26071
26205
|
}, option), {
|
26072
26206
|
isActive: activeBackground === option.value
|
26073
26207
|
}),
|
26074
|
-
/* @__PURE__ */
|
26075
|
-
/* @__PURE__ */
|
26208
|
+
/* @__PURE__ */ React125.createElement(VBOption.Icon, null, option == null ? void 0 : option.icon),
|
26209
|
+
/* @__PURE__ */ React125.createElement(VBOption.Title, null, option == null ? void 0 : option.title)
|
26076
26210
|
))));
|
26077
26211
|
};
|
26078
26212
|
|
@@ -26191,23 +26325,23 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26191
26325
|
var _a8;
|
26192
26326
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26193
26327
|
const hmsActions = useHMSActions41();
|
26194
|
-
const localPeer =
|
26195
|
-
const role =
|
26196
|
-
const isVideoOn =
|
26328
|
+
const localPeer = useHMSStore66(selectLocalPeer6);
|
26329
|
+
const role = useHMSStore66(Wt);
|
26330
|
+
const isVideoOn = useHMSStore66(selectIsLocalVideoEnabled5);
|
26197
26331
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26198
26332
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
26199
|
-
const track =
|
26200
|
-
const [blurAmount, setBlurAmount] =
|
26201
|
-
const roomState =
|
26202
|
-
const isLargeRoom =
|
26203
|
-
const isEffectsEnabled =
|
26204
|
-
const effectsKey =
|
26205
|
-
const isPluginAdded =
|
26206
|
-
const background =
|
26333
|
+
const track = useHMSStore66(trackSelector);
|
26334
|
+
const [blurAmount, setBlurAmount] = useState54(VBHandler.getBlurAmount() || 0.5);
|
26335
|
+
const roomState = useHMSStore66(selectRoomState4);
|
26336
|
+
const isLargeRoom = useHMSStore66(selectIsLargeRoom3);
|
26337
|
+
const isEffectsEnabled = useHMSStore66(ec);
|
26338
|
+
const effectsKey = useHMSStore66(tc);
|
26339
|
+
const isPluginAdded = useHMSStore66(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
26340
|
+
const background = useHMSStore66(em(APP_DATA.background));
|
26207
26341
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26208
26342
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26209
26343
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
26210
|
-
|
26344
|
+
useEffect32(() => {
|
26211
26345
|
if (!(track == null ? void 0 : track.id)) {
|
26212
26346
|
return;
|
26213
26347
|
}
|
@@ -26241,19 +26375,19 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26241
26375
|
handleDefaultBackground();
|
26242
26376
|
}
|
26243
26377
|
}, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey, track == null ? void 0 : track.id, background, blurAmount]);
|
26244
|
-
|
26378
|
+
useEffect32(() => {
|
26245
26379
|
if (!isVideoOn) {
|
26246
26380
|
toggleVB();
|
26247
26381
|
}
|
26248
26382
|
}, [isVideoOn, toggleVB]);
|
26249
|
-
return /* @__PURE__ */
|
26383
|
+
return /* @__PURE__ */ React126.createElement(Flex, { css: { pr: "$6", size: "100%" }, direction: "column" }, /* @__PURE__ */ React126.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", background: "$surface_dim", pb: "$4" } }, /* @__PURE__ */ React126.createElement(Text, { variant: "h6", css: { color: "$on_surface_high" } }, "Virtual Background"), /* @__PURE__ */ React126.createElement(
|
26250
26384
|
Box,
|
26251
26385
|
{
|
26252
26386
|
css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
|
26253
26387
|
onClick: toggleVB
|
26254
26388
|
},
|
26255
|
-
/* @__PURE__ */
|
26256
|
-
)), showVideoTile ? /* @__PURE__ */
|
26389
|
+
/* @__PURE__ */ React126.createElement(CrossIcon21, null)
|
26390
|
+
)), showVideoTile ? /* @__PURE__ */ React126.createElement(
|
26257
26391
|
Video,
|
26258
26392
|
{
|
26259
26393
|
mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo,
|
@@ -26261,7 +26395,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26261
26395
|
"data-testid": "preview_tile",
|
26262
26396
|
css: { width: "100%", height: "16rem" }
|
26263
26397
|
}
|
26264
|
-
) : null, /* @__PURE__ */
|
26398
|
+
) : null, /* @__PURE__ */ React126.createElement(
|
26265
26399
|
Box,
|
26266
26400
|
{
|
26267
26401
|
css: {
|
@@ -26272,14 +26406,14 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26272
26406
|
pr: "$10"
|
26273
26407
|
}
|
26274
26408
|
},
|
26275
|
-
/* @__PURE__ */
|
26409
|
+
/* @__PURE__ */ React126.createElement(
|
26276
26410
|
VBCollection,
|
26277
26411
|
{
|
26278
26412
|
title: "Effects",
|
26279
26413
|
options: [
|
26280
26414
|
{
|
26281
26415
|
title: "No effect",
|
26282
|
-
icon: /* @__PURE__ */
|
26416
|
+
icon: /* @__PURE__ */ React126.createElement(CrossCircleIcon3, { style: iconDims }),
|
26283
26417
|
value: HMSVirtualBackgroundTypes3.NONE,
|
26284
26418
|
onClick: () => __async(void 0, null, function* () {
|
26285
26419
|
yield VBHandler.removeEffects();
|
@@ -26288,7 +26422,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26288
26422
|
},
|
26289
26423
|
{
|
26290
26424
|
title: "Blur",
|
26291
|
-
icon: /* @__PURE__ */
|
26425
|
+
icon: /* @__PURE__ */ React126.createElement(BlurPersonHighIcon, { style: iconDims }),
|
26292
26426
|
value: HMSVirtualBackgroundTypes3.BLUR,
|
26293
26427
|
onClick: () => __async(void 0, null, function* () {
|
26294
26428
|
var _a9;
|
@@ -26300,7 +26434,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26300
26434
|
activeBackground: background
|
26301
26435
|
}
|
26302
26436
|
),
|
26303
|
-
/* @__PURE__ */
|
26437
|
+
/* @__PURE__ */ React126.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React126.createElement(Box, null, /* @__PURE__ */ React126.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React126.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React126.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React126.createElement(
|
26304
26438
|
Slider,
|
26305
26439
|
{
|
26306
26440
|
showTooltip: false,
|
@@ -26313,8 +26447,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26313
26447
|
min: 0.1,
|
26314
26448
|
max: 1
|
26315
26449
|
}
|
26316
|
-
), /* @__PURE__ */
|
26317
|
-
/* @__PURE__ */
|
26450
|
+
), /* @__PURE__ */ React126.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "High"))) : null),
|
26451
|
+
/* @__PURE__ */ React126.createElement(
|
26318
26452
|
VBCollection,
|
26319
26453
|
{
|
26320
26454
|
title: "Backgrounds",
|
@@ -26371,8 +26505,7 @@ var Wrapper3 = styled("div", {
|
|
26371
26505
|
mobileStream: {
|
26372
26506
|
true: {
|
26373
26507
|
"@md": {
|
26374
|
-
position: "unset
|
26375
|
-
background: "red"
|
26508
|
+
position: "unset"
|
26376
26509
|
}
|
26377
26510
|
}
|
26378
26511
|
},
|
@@ -26414,9 +26547,9 @@ var SidePane = ({
|
|
26414
26547
|
}) => {
|
26415
26548
|
var _a8, _b7, _c, _d, _e, _f;
|
26416
26549
|
const isMobile = useMedia22(config.media.md);
|
26417
|
-
const sidepane =
|
26418
|
-
const activeScreensharePeerId =
|
26419
|
-
const trackId = (_a8 =
|
26550
|
+
const sidepane = useHMSStore67(selectAppData6(APP_DATA.sidePane));
|
26551
|
+
const activeScreensharePeerId = useHMSStore67(selectAppData6(APP_DATA.activeScreensharePeerId));
|
26552
|
+
const trackId = (_a8 = useHMSStore67(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
26420
26553
|
const { elements } = useRoomLayoutConferencingScreen();
|
26421
26554
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
26422
26555
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
@@ -26424,7 +26557,7 @@ var SidePane = ({
|
|
26424
26557
|
const isMobileHLSStream = useMobileHLSStream();
|
26425
26558
|
const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
|
26426
26559
|
const resetSidePane = useSidepaneReset();
|
26427
|
-
|
26560
|
+
useEffect33(() => {
|
26428
26561
|
return () => {
|
26429
26562
|
resetSidePane();
|
26430
26563
|
};
|
@@ -26441,7 +26574,7 @@ var SidePane = ({
|
|
26441
26574
|
landscapeStream: isLandscapeHLSStream,
|
26442
26575
|
mobileStream: isMobileHLSStream
|
26443
26576
|
};
|
26444
|
-
return /* @__PURE__ */
|
26577
|
+
return /* @__PURE__ */ React127.createElement(
|
26445
26578
|
Flex,
|
26446
26579
|
{
|
26447
26580
|
direction: "column",
|
@@ -26458,7 +26591,7 @@ var SidePane = ({
|
|
26458
26591
|
}
|
26459
26592
|
}
|
26460
26593
|
},
|
26461
|
-
trackId && layoutMode === LayoutMode.GALLERY && /* @__PURE__ */
|
26594
|
+
trackId && layoutMode === LayoutMode.GALLERY && /* @__PURE__ */ React127.createElement(
|
26462
26595
|
VideoTile_default,
|
26463
26596
|
__spreadValues({
|
26464
26597
|
peerId: activeScreensharePeerId,
|
@@ -26468,7 +26601,7 @@ var SidePane = ({
|
|
26468
26601
|
rootCSS: { p: 0, alignSelf: "start", flexShrink: 0 }
|
26469
26602
|
}, tileLayout)
|
26470
26603
|
),
|
26471
|
-
|
26604
|
+
match8(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React127.createElement(
|
26472
26605
|
Wrapper3,
|
26473
26606
|
__spreadValues({
|
26474
26607
|
css: {
|
@@ -26478,15 +26611,15 @@ var SidePane = ({
|
|
26478
26611
|
}
|
26479
26612
|
}
|
26480
26613
|
}, commonProps),
|
26481
|
-
/* @__PURE__ */
|
26482
|
-
)).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */
|
26614
|
+
/* @__PURE__ */ React127.createElement(Polls, null)
|
26615
|
+
)).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ React127.createElement(Wrapper3, __spreadValues({ css: { p: "$10 $6 $10 $10" } }, commonProps), /* @__PURE__ */ React127.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ React127.createElement(Wrapper3, __spreadProps(__spreadValues({}, commonProps), { overlayChat: mwebStreamingChat }), /* @__PURE__ */ React127.createElement(
|
26483
26616
|
SidePaneTabs,
|
26484
26617
|
{
|
26485
26618
|
hideControls,
|
26486
26619
|
active: sidepane,
|
26487
26620
|
hideTab: isMobileHLSStream || isLandscapeHLSStream
|
26488
26621
|
}
|
26489
|
-
))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */
|
26622
|
+
))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ React127.createElement(Wrapper3, __spreadValues({}, commonProps), /* @__PURE__ */ React127.createElement(RoomDetailsPane, null))).otherwise(() => {
|
26490
26623
|
return null;
|
26491
26624
|
})
|
26492
26625
|
);
|
@@ -26495,9 +26628,9 @@ var SidePane_default = SidePane;
|
|
26495
26628
|
|
26496
26629
|
// src/Prebuilt/components/Chip.tsx
|
26497
26630
|
init_define_process_env();
|
26498
|
-
import
|
26631
|
+
import React128 from "react";
|
26499
26632
|
var Chip = ({
|
26500
|
-
icon = /* @__PURE__ */
|
26633
|
+
icon = /* @__PURE__ */ React128.createElement(React128.Fragment, null),
|
26501
26634
|
content = "",
|
26502
26635
|
backgroundColor = "$surface_default",
|
26503
26636
|
textColor = "$on_surface_high",
|
@@ -26508,7 +26641,7 @@ var Chip = ({
|
|
26508
26641
|
if (hideIfNoContent && !content) {
|
26509
26642
|
return null;
|
26510
26643
|
}
|
26511
|
-
return /* @__PURE__ */
|
26644
|
+
return /* @__PURE__ */ React128.createElement(
|
26512
26645
|
Flex,
|
26513
26646
|
{
|
26514
26647
|
align: "center",
|
@@ -26516,67 +26649,17 @@ var Chip = ({
|
|
26516
26649
|
onClick: () => onClick == null ? void 0 : onClick()
|
26517
26650
|
},
|
26518
26651
|
icon,
|
26519
|
-
/* @__PURE__ */
|
26652
|
+
/* @__PURE__ */ React128.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: textColor } }, content)
|
26520
26653
|
);
|
26521
26654
|
};
|
26522
26655
|
var Chip_default = Chip;
|
26523
26656
|
|
26524
26657
|
// src/Prebuilt/components/FullPageProgress.jsx
|
26525
26658
|
init_define_process_env();
|
26526
|
-
import
|
26527
|
-
var FullPageProgress = ({ loaderColor = "$primary_default", text = "", css: css2 = {} }) => /* @__PURE__ */
|
26659
|
+
import React129 from "react";
|
26660
|
+
var FullPageProgress = ({ loaderColor = "$primary_default", text = "", css: css2 = {} }) => /* @__PURE__ */ React129.createElement(Flex, { direction: "column", justify: "center", align: "center", css: __spreadValues({ size: "100%", color: loaderColor }, css2) }, /* @__PURE__ */ React129.createElement(Loading, { color: "currentColor", size: 100 }), text ? /* @__PURE__ */ React129.createElement(Text, { css: { mt: "$10", color: "$on_surface_high" } }, text) : null);
|
26528
26661
|
var FullPageProgress_default = FullPageProgress;
|
26529
26662
|
|
26530
|
-
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
26531
|
-
init_define_process_env();
|
26532
|
-
import React129, { useEffect as useEffect33, useState as useState54 } from "react";
|
26533
|
-
import { selectDominantSpeaker, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
|
26534
|
-
import { VolumeOneIcon } from "@100mslive/react-icons";
|
26535
|
-
var SpeakerTag = () => {
|
26536
|
-
const dominantSpeaker = useHMSStore67(selectDominantSpeaker);
|
26537
|
-
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React129.createElement(
|
26538
|
-
Flex,
|
26539
|
-
{
|
26540
|
-
align: "center",
|
26541
|
-
justify: "center",
|
26542
|
-
css: { flex: "1 1 0", color: "$on_surface_high", "@md": { display: "none" } }
|
26543
|
-
},
|
26544
|
-
/* @__PURE__ */ React129.createElement(VerticalDivider, { css: { ml: "$8" } }),
|
26545
|
-
/* @__PURE__ */ React129.createElement(VolumeOneIcon, null),
|
26546
|
-
/* @__PURE__ */ React129.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(200)), { ml: "$2" }), title: dominantSpeaker.name }, dominantSpeaker.name)
|
26547
|
-
);
|
26548
|
-
};
|
26549
|
-
var LogoImg = styled("img", {
|
26550
|
-
maxHeight: "$14",
|
26551
|
-
w: "auto",
|
26552
|
-
objectFit: "contain",
|
26553
|
-
"@md": {
|
26554
|
-
maxHeight: "$12"
|
26555
|
-
}
|
26556
|
-
});
|
26557
|
-
var Logo = () => {
|
26558
|
-
var _a8;
|
26559
|
-
const roomLayout = useRoomLayout();
|
26560
|
-
const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
|
26561
|
-
const [hideImage, setHideImage] = useState54(false);
|
26562
|
-
useEffect33(() => {
|
26563
|
-
if (hideImage) {
|
26564
|
-
setHideImage(false);
|
26565
|
-
}
|
26566
|
-
}, [logo]);
|
26567
|
-
return logo && !hideImage ? /* @__PURE__ */ React129.createElement(
|
26568
|
-
LogoImg,
|
26569
|
-
{
|
26570
|
-
src: logo,
|
26571
|
-
alt: "Brand Logo",
|
26572
|
-
onError: (e) => {
|
26573
|
-
e.target.onerror = null;
|
26574
|
-
setHideImage(true);
|
26575
|
-
}
|
26576
|
-
}
|
26577
|
-
) : null;
|
26578
|
-
};
|
26579
|
-
|
26580
26663
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
26581
26664
|
init_define_process_env();
|
26582
26665
|
import React130 from "react";
|
@@ -26828,7 +26911,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
|
26828
26911
|
};
|
26829
26912
|
var PreviewSettings = React131.memo(() => {
|
26830
26913
|
const [open, setOpen] = useState55(false);
|
26831
|
-
return /* @__PURE__ */ React131.createElement(
|
26914
|
+
return /* @__PURE__ */ React131.createElement(Fragment12, null, /* @__PURE__ */ React131.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React131.createElement(SettingsIcon6, null)), open && /* @__PURE__ */ React131.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
|
26832
26915
|
});
|
26833
26916
|
var PreviewJoin_default = PreviewJoin;
|
26834
26917
|
|
@@ -28298,7 +28381,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28298
28381
|
};
|
28299
28382
|
|
28300
28383
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28301
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28384
|
+
var HLSView = React151.lazy(() => import("./HLSView-6KPQ2KD6.js"));
|
28302
28385
|
var VideoStreamingSection = ({
|
28303
28386
|
screenType,
|
28304
28387
|
elements,
|
@@ -28314,6 +28397,7 @@ var VideoStreamingSection = ({
|
|
28314
28397
|
const urlToIframe = useUrlToEmbed();
|
28315
28398
|
const pdfAnnotatorActive = usePDFConfig();
|
28316
28399
|
const isMobileHLSStream = useMobileHLSStream();
|
28400
|
+
const isLandscapeHLSStream = useLandscapeHLSStream();
|
28317
28401
|
useCloseScreenshareWhiteboard();
|
28318
28402
|
useEffect48(() => {
|
28319
28403
|
if (!isConnected) {
|
@@ -28352,7 +28436,7 @@ var VideoStreamingSection = ({
|
|
28352
28436
|
css: {
|
28353
28437
|
size: "100%",
|
28354
28438
|
position: "relative",
|
28355
|
-
gap: "$4"
|
28439
|
+
gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
|
28356
28440
|
},
|
28357
28441
|
direction: isMobileHLSStream ? "column" : "row"
|
28358
28442
|
},
|
@@ -29259,6 +29343,7 @@ import {
|
|
29259
29343
|
HMSNotificationTypes as HMSNotificationTypes2,
|
29260
29344
|
HMSRoomState as HMSRoomState9,
|
29261
29345
|
selectHasPeerHandRaised as selectHasPeerHandRaised4,
|
29346
|
+
selectPeerByID as selectPeerByID6,
|
29262
29347
|
selectRoomState as selectRoomState9,
|
29263
29348
|
useHMSNotifications as useHMSNotifications2,
|
29264
29349
|
useHMSStore as useHMSStore87,
|
@@ -29527,6 +29612,7 @@ var HandRaisedNotifications = () => {
|
|
29527
29612
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
29528
29613
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
29529
29614
|
useEffect57(() => {
|
29615
|
+
var _a8;
|
29530
29616
|
if (!(notification == null ? void 0 : notification.data)) {
|
29531
29617
|
return;
|
29532
29618
|
}
|
@@ -29534,8 +29620,10 @@ var HandRaisedNotifications = () => {
|
|
29534
29620
|
return;
|
29535
29621
|
}
|
29536
29622
|
const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised4(notification.data.id));
|
29623
|
+
const peer = vanillaStore.getState(selectPeerByID6(notification.data.id));
|
29537
29624
|
if (hasPeerHandRaised) {
|
29538
|
-
|
29625
|
+
const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
|
29626
|
+
ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
|
29539
29627
|
console.debug("Metadata updated", notification.data);
|
29540
29628
|
}
|
29541
29629
|
}, [isSubscribing, notification, on_stage_exp, roomState, vanillaStore]);
|
@@ -30616,8 +30704,9 @@ export {
|
|
30616
30704
|
QRCode,
|
30617
30705
|
Link,
|
30618
30706
|
Collapsible,
|
30619
|
-
getFormattedCount,
|
30620
30707
|
useRoomLayoutConferencingScreen,
|
30708
|
+
useRoomLayoutHeader,
|
30709
|
+
useIsSidepaneTypeOpen,
|
30621
30710
|
useSidepaneToggle,
|
30622
30711
|
usePollViewToggle,
|
30623
30712
|
IconButton_default,
|
@@ -30629,6 +30718,7 @@ export {
|
|
30629
30718
|
DialogRow,
|
30630
30719
|
ChatToggle,
|
30631
30720
|
Logo,
|
30721
|
+
RoomDetailsRow,
|
30632
30722
|
HMSPrebuilt,
|
30633
30723
|
Progress,
|
30634
30724
|
TextArea
|
@@ -30645,4 +30735,4 @@ lodash/lodash.js:
|
|
30645
30735
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
30646
30736
|
*)
|
30647
30737
|
*/
|
30648
|
-
//# sourceMappingURL=chunk-
|
30738
|
+
//# sourceMappingURL=chunk-JQCSGJIR.js.map
|