@100mslive/roomkit-react 0.2.8-alpha.6 → 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-53PDKIS2.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-2ZFAT7KY.js → chunk-JQCSGJIR.js} +742 -639
- package/dist/chunk-JQCSGJIR.js.map +7 -0
- package/dist/index.cjs.js +1253 -1144
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +256 -201
- package/dist/meta.esbuild.json +263 -206
- 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/AppData/useSidepane.js +22 -10
- 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 +7 -3
- 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-53PDKIS2.js.map +0 -7
- package/dist/chunk-2ZFAT7KY.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_1eeeb889-e810-4357-8dae-7696cc9131eb", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.8-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_1eeeb889-e810-4357-8dae-7696cc9131eb", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.8-alpha.6", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "598", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240218.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18106", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.8-alpha.6", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8078816063", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "666634daeed360298e28b87d08d82b96639e0f70", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "c21e1c32024c6a68076244eb1a6fae30faf932b84fb76927426b95760a88de21", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1709115828483-0.45227821066223206:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709115828286-0.07337047120319218:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709115805575-0.3880739035407834:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709115805396-0.062155291177570016:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_11d09d9f-3cf1-4f7e-bd5c-b105b3bb09bf", INVOCATION_ID: "5981f37fe33b4681a285f819e990e118", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "455", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 269", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.8-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "666634daeed360298e28b87d08d82b96639e0f70", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_1eeeb889-e810-4357-8dae-7696cc9131eb", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_1eeeb889-e810-4357-8dae-7696cc9131eb", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_1eeeb889-e810-4357-8dae-7696cc9131eb" };
|
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
|
|
@@ -12587,23 +12587,36 @@ var usePollViewToggle = () => {
|
|
12587
12587
|
const isOpen = useSidepaneState() === SIDE_PANE_OPTIONS.POLLS;
|
12588
12588
|
const togglePollView = useCallback6(
|
12589
12589
|
(id) => {
|
12590
|
-
|
12590
|
+
match({ id, isOpen, view }).with(
|
12591
12591
|
{
|
12592
12592
|
id: P.string
|
12593
12593
|
},
|
12594
|
-
() =>
|
12594
|
+
() => {
|
12595
|
+
setPollState({
|
12596
|
+
[POLL_STATE.pollInView]: id,
|
12597
|
+
[POLL_STATE.view]: POLL_VIEWS.VOTE
|
12598
|
+
});
|
12599
|
+
hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
|
12600
|
+
}
|
12595
12601
|
).with(
|
12596
12602
|
{
|
12597
12603
|
isOpen: true,
|
12598
12604
|
view: P.when((view2) => !!view2)
|
12599
12605
|
},
|
12600
|
-
() =>
|
12601
|
-
|
12602
|
-
|
12603
|
-
|
12604
|
-
|
12606
|
+
() => {
|
12607
|
+
setPollState({
|
12608
|
+
[POLL_STATE.pollInView]: void 0,
|
12609
|
+
[POLL_STATE.view]: null
|
12610
|
+
});
|
12611
|
+
hmsActions.setAppData(APP_DATA.sidePane, "");
|
12612
|
+
}
|
12613
|
+
).otherwise(() => {
|
12614
|
+
setPollState({
|
12615
|
+
[POLL_STATE.pollInView]: void 0,
|
12616
|
+
[POLL_STATE.view]: POLL_VIEWS.CREATE_POLL_QUIZ
|
12617
|
+
});
|
12618
|
+
hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
|
12605
12619
|
});
|
12606
|
-
hmsActions.setAppData(APP_DATA.sidePane, newView ? SIDE_PANE_OPTIONS.POLLS : "");
|
12607
12620
|
},
|
12608
12621
|
[hmsActions, view, setPollState, isOpen]
|
12609
12622
|
);
|
@@ -12943,7 +12956,7 @@ var IconButton2 = styled(IconButton, {
|
|
12943
12956
|
active: {
|
12944
12957
|
true: {
|
12945
12958
|
color: "$on_surface_high",
|
12946
|
-
backgroundColor: "
|
12959
|
+
backgroundColor: "transparent"
|
12947
12960
|
},
|
12948
12961
|
false: {
|
12949
12962
|
border: "1px solid transparent",
|
@@ -12978,7 +12991,7 @@ var IconSection = styled(IconButton_default, {
|
|
12978
12991
|
h: "$14",
|
12979
12992
|
p: "$4",
|
12980
12993
|
r: "$1",
|
12981
|
-
bg: "
|
12994
|
+
bg: "transparent",
|
12982
12995
|
borderTopRightRadius: 0,
|
12983
12996
|
borderColor: "$border_bright",
|
12984
12997
|
borderBottomRightRadius: 0,
|
@@ -13173,8 +13186,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
13173
13186
|
});
|
13174
13187
|
var SheetContent = React27.forwardRef(
|
13175
13188
|
(_a8, forwardedRef) => {
|
13176
|
-
var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
|
13177
|
-
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));
|
13178
13191
|
}
|
13179
13192
|
);
|
13180
13193
|
var SheetClose = Dialog.Close;
|
@@ -14007,16 +14020,16 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
14007
14020
|
|
14008
14021
|
// src/Prebuilt/components/EmojiReaction.jsx
|
14009
14022
|
init_define_process_env();
|
14010
|
-
import React34, {
|
14011
|
-
import { useMedia as
|
14023
|
+
import React34, { useState as useState12 } from "react";
|
14024
|
+
import { useMedia as useMedia5 } from "react-use";
|
14012
14025
|
import data from "@emoji-mart/data/sets/14/apple.json";
|
14013
14026
|
import { init } from "emoji-mart";
|
14014
14027
|
import {
|
14015
|
-
selectAvailableRoleNames,
|
14016
|
-
selectIsConnectedToRoom,
|
14028
|
+
selectAvailableRoleNames as selectAvailableRoleNames2,
|
14029
|
+
selectIsConnectedToRoom as selectIsConnectedToRoom2,
|
14017
14030
|
selectLocalPeerID,
|
14018
14031
|
useCustomEvent,
|
14019
|
-
useHMSStore as
|
14032
|
+
useHMSStore as useHMSStore10
|
14020
14033
|
} from "@100mslive/react-sdk";
|
14021
14034
|
import { EmojiIcon } from "@100mslive/react-icons";
|
14022
14035
|
|
@@ -14064,15 +14077,95 @@ var useDropdownList = ({ name, open }) => {
|
|
14064
14077
|
}, [open, name]);
|
14065
14078
|
};
|
14066
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
|
+
|
14067
14157
|
// src/Prebuilt/components/EmojiReaction.jsx
|
14068
14158
|
init({ data });
|
14069
14159
|
var EmojiReaction = () => {
|
14070
|
-
const [open, setOpen] =
|
14071
|
-
const isConnected =
|
14160
|
+
const [open, setOpen] = useState12(false);
|
14161
|
+
const isConnected = useHMSStore10(selectIsConnectedToRoom2);
|
14072
14162
|
useDropdownList({ open, name: "EmojiReaction" });
|
14073
|
-
const roles =
|
14074
|
-
const localPeerId =
|
14075
|
-
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();
|
14076
14169
|
const { sendEvent } = useCustomEvent({
|
14077
14170
|
type: EMOJI_REACTION_TYPE
|
14078
14171
|
});
|
@@ -14089,7 +14182,24 @@ var EmojiReaction = () => {
|
|
14089
14182
|
if (!isConnected) {
|
14090
14183
|
return null;
|
14091
14184
|
}
|
14092
|
-
|
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
|
+
));
|
14093
14203
|
};
|
14094
14204
|
|
14095
14205
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
@@ -14108,8 +14218,8 @@ import {
|
|
14108
14218
|
|
14109
14219
|
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
14110
14220
|
init_define_process_env();
|
14111
|
-
import React38, { Fragment as
|
14112
|
-
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";
|
14113
14223
|
import { ExitIcon, StopIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
|
14114
14224
|
|
14115
14225
|
// src/Prebuilt/components/Leave/EndSessionContent.tsx
|
@@ -14249,13 +14359,14 @@ var LeaveSessionContent = ({
|
|
14249
14359
|
var DesktopLeaveRoom = ({
|
14250
14360
|
leaveRoom,
|
14251
14361
|
screenType,
|
14252
|
-
endRoom
|
14362
|
+
endRoom,
|
14363
|
+
container
|
14253
14364
|
}) => {
|
14254
|
-
const [open, setOpen] =
|
14255
|
-
const [showLeaveRoomAlert, setShowLeaveRoomAlert] =
|
14256
|
-
const [showEndStreamAlert, setShowEndStreamAlert] =
|
14257
|
-
const isConnected =
|
14258
|
-
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);
|
14259
14370
|
const { isStreamingOn } = useRecordingStreaming3();
|
14260
14371
|
const showStream = screenType !== "hls_live_streaming" && isStreamingOn && (permissions == null ? void 0 : permissions.hlsStreaming);
|
14261
14372
|
const showLeaveOptions = (permissions == null ? void 0 : permissions.hlsStreaming) && isStreamingOn || (permissions == null ? void 0 : permissions.endRoom);
|
@@ -14263,7 +14374,7 @@ var DesktopLeaveRoom = ({
|
|
14263
14374
|
if (!permissions || !isConnected) {
|
14264
14375
|
return null;
|
14265
14376
|
}
|
14266
|
-
return /* @__PURE__ */ React38.createElement(
|
14377
|
+
return /* @__PURE__ */ React38.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React38.createElement(Flex, null, /* @__PURE__ */ React38.createElement(
|
14267
14378
|
LeaveIconButton,
|
14268
14379
|
{
|
14269
14380
|
key: "LeaveRoom",
|
@@ -14286,7 +14397,7 @@ var DesktopLeaveRoom = ({
|
|
14286
14397
|
}
|
14287
14398
|
},
|
14288
14399
|
/* @__PURE__ */ React38.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React38.createElement(VerticalMenuIcon2, null))
|
14289
|
-
), /* @__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(
|
14290
14401
|
Dropdown.Item,
|
14291
14402
|
{
|
14292
14403
|
css: {
|
@@ -14337,7 +14448,7 @@ var DesktopLeaveRoom = ({
|
|
14337
14448
|
css: { p: "$8 $4" }
|
14338
14449
|
}
|
14339
14450
|
)
|
14340
|
-
)))) : /* @__PURE__ */ React38.createElement(
|
14451
|
+
))))) : /* @__PURE__ */ React38.createElement(
|
14341
14452
|
LeaveIconButton,
|
14342
14453
|
{
|
14343
14454
|
onClick: () => {
|
@@ -14360,91 +14471,13 @@ var DesktopLeaveRoom = ({
|
|
14360
14471
|
|
14361
14472
|
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
14362
14473
|
init_define_process_env();
|
14363
|
-
import React39, { Fragment as
|
14474
|
+
import React39, { Fragment as Fragment5, useState as useState14 } from "react";
|
14364
14475
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom4, selectPermissions as selectPermissions3, useHMSStore as useHMSStore12, useRecordingStreaming as useRecordingStreaming4 } from "@100mslive/react-sdk";
|
14365
14476
|
import { CrossIcon as CrossIcon6, ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
|
14366
|
-
|
14367
|
-
// src/Prebuilt/common/hooks.ts
|
14368
|
-
init_define_process_env();
|
14369
|
-
import { useEffect as useEffect12, useRef as useRef8, useState as useState13 } from "react";
|
14370
|
-
import { useMedia as useMedia5 } from "react-use";
|
14371
|
-
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
14372
|
-
import {
|
14373
|
-
parsedUserAgent as parsedUserAgent2,
|
14374
|
-
selectAvailableRoleNames as selectAvailableRoleNames2,
|
14375
|
-
selectIsConnectedToRoom as selectIsConnectedToRoom3,
|
14376
|
-
selectPeerCount as selectPeerCount2,
|
14377
|
-
selectPeerMetadata,
|
14378
|
-
selectPeers,
|
14379
|
-
selectRemotePeers,
|
14380
|
-
useHMSStore as useHMSStore11,
|
14381
|
-
useHMSVanillaStore as useHMSVanillaStore4
|
14382
|
-
} from "@100mslive/react-sdk";
|
14383
|
-
var useFilteredRoles = () => {
|
14384
|
-
var _a8;
|
14385
|
-
const { elements } = useRoomLayoutConferencingScreen();
|
14386
|
-
return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
|
14387
|
-
};
|
14388
|
-
var useDefaultChatSelection = () => {
|
14389
|
-
var _a8;
|
14390
|
-
const { elements } = useRoomLayoutConferencingScreen();
|
14391
|
-
const roles = useFilteredRoles();
|
14392
|
-
if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
|
14393
|
-
return CHAT_SELECTOR.EVERYONE;
|
14394
|
-
}
|
14395
|
-
if (roles.length > 0) {
|
14396
|
-
return roles[0];
|
14397
|
-
}
|
14398
|
-
return "";
|
14399
|
-
};
|
14400
|
-
var useShowStreamingUI = () => {
|
14401
|
-
var _a8, _b7, _c;
|
14402
|
-
const layout = useRoomLayout();
|
14403
|
-
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) || {};
|
14404
|
-
return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
|
14405
|
-
};
|
14406
|
-
var useParticipants = (params) => {
|
14407
|
-
var _a8;
|
14408
|
-
const isConnected = useHMSStore11(selectIsConnectedToRoom3);
|
14409
|
-
const peerCount = useHMSStore11(selectPeerCount2);
|
14410
|
-
const availableRoles = useHMSStore11(selectAvailableRoleNames2);
|
14411
|
-
let participantList = useHMSStore11(isConnected ? selectPeers : selectRemotePeers);
|
14412
|
-
const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
|
14413
|
-
const vanillaStore = useHMSVanillaStore4();
|
14414
|
-
if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
|
14415
|
-
participantList = participantList.filter((peer) => {
|
14416
|
-
return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
|
14417
|
-
});
|
14418
|
-
}
|
14419
|
-
if ((params == null ? void 0 : params.role) && availableRoles.includes(params.role)) {
|
14420
|
-
participantList = participantList.filter((peer) => peer.roleName === params.role);
|
14421
|
-
}
|
14422
|
-
if (params == null ? void 0 : params.search) {
|
14423
|
-
const search = params.search;
|
14424
|
-
participantList = participantList.filter((peer) => peer.name.toLowerCase().includes(search));
|
14425
|
-
}
|
14426
|
-
return { participants: participantList, isConnected, peerCount, rolesWithParticipants };
|
14427
|
-
};
|
14428
|
-
var useIsLandscape = () => {
|
14429
|
-
const isMobile = parsedUserAgent2.getDevice().type === "mobile";
|
14430
|
-
const isLandscape = useMedia5(config.media.ls);
|
14431
|
-
return isMobile && isLandscape;
|
14432
|
-
};
|
14433
|
-
var useLandscapeHLSStream = () => {
|
14434
|
-
const isLandscape = useIsLandscape();
|
14435
|
-
const { screenType } = useRoomLayoutConferencingScreen();
|
14436
|
-
return isLandscape && screenType === "hls_live_streaming";
|
14437
|
-
};
|
14438
|
-
var useMobileHLSStream = () => {
|
14439
|
-
const isMobile = useMedia5(config.media.md);
|
14440
|
-
const { screenType } = useRoomLayoutConferencingScreen();
|
14441
|
-
return isMobile && screenType === "hls_live_streaming";
|
14442
|
-
};
|
14443
|
-
|
14444
|
-
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
14445
14477
|
var MwebLeaveRoom = ({
|
14446
14478
|
leaveRoom,
|
14447
|
-
endRoom
|
14479
|
+
endRoom,
|
14480
|
+
container
|
14448
14481
|
}) => {
|
14449
14482
|
const [open, setOpen] = useState14(false);
|
14450
14483
|
const { screenType } = useRoomLayoutConferencingScreen();
|
@@ -14459,7 +14492,14 @@ var MwebLeaveRoom = ({
|
|
14459
14492
|
if (!permissions || !isConnected) {
|
14460
14493
|
return null;
|
14461
14494
|
}
|
14462
|
-
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(
|
14463
14503
|
LeaveCard,
|
14464
14504
|
{
|
14465
14505
|
title: showStream ? "Leave Stream" : "Leave Session",
|
@@ -14486,19 +14526,19 @@ var MwebLeaveRoom = ({
|
|
14486
14526
|
setShowEndStreamAlert(true);
|
14487
14527
|
}
|
14488
14528
|
}
|
14489
|
-
))) : /* @__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(
|
14490
14530
|
EndSessionContent,
|
14491
14531
|
{
|
14492
14532
|
setShowEndStreamAlert,
|
14493
14533
|
leaveRoom: isStreamingOn ? leaveRoom : endRoom,
|
14494
14534
|
isStreamingOn
|
14495
14535
|
}
|
14496
|
-
))), /* @__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 }))));
|
14497
14537
|
};
|
14498
14538
|
var LeaveButton = ({ onClick }) => {
|
14499
14539
|
const isMobileHLSStream = useMobileHLSStream();
|
14500
14540
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
14501
|
-
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(
|
14502
14542
|
LeaveIconButton,
|
14503
14543
|
{
|
14504
14544
|
key: "LeaveRoom",
|
@@ -14507,14 +14547,17 @@ var LeaveButton = ({ onClick }) => {
|
|
14507
14547
|
borderTopRightRadius: "$1",
|
14508
14548
|
borderBottomRightRadius: "$1"
|
14509
14549
|
},
|
14510
|
-
onClick
|
14550
|
+
onClick
|
14511
14551
|
},
|
14512
14552
|
/* @__PURE__ */ React39.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React39.createElement(Box, null, /* @__PURE__ */ React39.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
|
14513
14553
|
);
|
14514
14554
|
};
|
14515
14555
|
|
14516
14556
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
14517
|
-
var LeaveRoom = ({
|
14557
|
+
var LeaveRoom = ({
|
14558
|
+
screenType,
|
14559
|
+
container
|
14560
|
+
}) => {
|
14518
14561
|
const isConnected = useHMSStore13(selectIsConnectedToRoom5);
|
14519
14562
|
const permissions = useHMSStore13(selectPermissions4);
|
14520
14563
|
const isMobile = useMedia6(config.media.md);
|
@@ -14555,9 +14598,9 @@ var LeaveRoom = ({ screenType }) => {
|
|
14555
14598
|
return null;
|
14556
14599
|
}
|
14557
14600
|
if (isMobileHLSStream || isLandscapeHLSStream) {
|
14558
|
-
return /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom });
|
14601
|
+
return /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container });
|
14559
14602
|
}
|
14560
|
-
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 });
|
14561
14604
|
};
|
14562
14605
|
|
14563
14606
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
@@ -14567,7 +14610,7 @@ import { useMedia as useMedia9 } from "react-use";
|
|
14567
14610
|
|
14568
14611
|
// src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
|
14569
14612
|
init_define_process_env();
|
14570
|
-
import React52, { Fragment as
|
14613
|
+
import React52, { Fragment as Fragment6, useState as useState23 } from "react";
|
14571
14614
|
import { HMSHLSPlayer } from "@100mslive/hls-player";
|
14572
14615
|
import { match as match3 } from "ts-pattern";
|
14573
14616
|
import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions15, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
|
@@ -15338,7 +15381,7 @@ var DialogInputFile = (_a8) => {
|
|
15338
15381
|
"&:hover": {
|
15339
15382
|
border: "none",
|
15340
15383
|
background: "none",
|
15341
|
-
bg: "
|
15384
|
+
bg: "transparent !important"
|
15342
15385
|
}
|
15343
15386
|
}
|
15344
15387
|
},
|
@@ -16106,7 +16149,7 @@ var DesktopOptions = ({
|
|
16106
16149
|
return copy;
|
16107
16150
|
});
|
16108
16151
|
};
|
16109
|
-
return /* @__PURE__ */ React52.createElement(
|
16152
|
+
return /* @__PURE__ */ React52.createElement(Fragment6, null, /* @__PURE__ */ React52.createElement(
|
16110
16153
|
Dropdown.Root,
|
16111
16154
|
{
|
16112
16155
|
open: openModals.has(MODALS.MORE_SETTINGS),
|
@@ -16313,8 +16356,8 @@ init_define_process_env();
|
|
16313
16356
|
var logDisabled_ = true;
|
16314
16357
|
var deprecationWarnings_ = true;
|
16315
16358
|
function extractVersion(uastring, expr, pos) {
|
16316
|
-
const
|
16317
|
-
return
|
16359
|
+
const match9 = uastring.match(expr);
|
16360
|
+
return match9 && match9.length >= pos && parseInt(match9[pos], 10);
|
16318
16361
|
}
|
16319
16362
|
function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
|
16320
16363
|
if (!window2.RTCPeerConnection) {
|
@@ -16616,7 +16659,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16616
16659
|
if (matches) {
|
16617
16660
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
16618
16661
|
devices = devices.filter((d2) => d2.kind === "videoinput");
|
16619
|
-
let dev = devices.find((d2) => matches.some((
|
16662
|
+
let dev = devices.find((d2) => matches.some((match9) => d2.label.toLowerCase().includes(match9)));
|
16620
16663
|
if (!dev && devices.length && matches.includes("back")) {
|
16621
16664
|
dev = devices[devices.length - 1];
|
16622
16665
|
}
|
@@ -18043,11 +18086,11 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18043
18086
|
});
|
18044
18087
|
};
|
18045
18088
|
const getRemoteFirefoxVersion = function(description) {
|
18046
|
-
const
|
18047
|
-
if (
|
18089
|
+
const match9 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
18090
|
+
if (match9 === null || match9.length < 2) {
|
18048
18091
|
return -1;
|
18049
18092
|
}
|
18050
|
-
const version = parseInt(
|
18093
|
+
const version = parseInt(match9[1], 10);
|
18051
18094
|
return version !== version ? -1 : version;
|
18052
18095
|
};
|
18053
18096
|
const getCanSendMaxMessageSize = function(remoteIsFirefox) {
|
@@ -18072,12 +18115,12 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18072
18115
|
if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
|
18073
18116
|
maxMessageSize = 65535;
|
18074
18117
|
}
|
18075
|
-
const
|
18118
|
+
const match9 = import_sdp.default.matchPrefix(
|
18076
18119
|
description.sdp,
|
18077
18120
|
"a=max-message-size:"
|
18078
18121
|
);
|
18079
|
-
if (
|
18080
|
-
maxMessageSize = parseInt(
|
18122
|
+
if (match9.length > 0) {
|
18123
|
+
maxMessageSize = parseInt(match9[0].substring(19), 10);
|
18081
18124
|
} else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
|
18082
18125
|
maxMessageSize = 2147483637;
|
18083
18126
|
}
|
@@ -18423,7 +18466,7 @@ var S = (a2, e) => {
|
|
18423
18466
|
$r.call(e, t) && Fr(a2, t, e[t]);
|
18424
18467
|
return a2;
|
18425
18468
|
};
|
18426
|
-
var
|
18469
|
+
var M = (a2, e) => ya(a2, ka(e));
|
18427
18470
|
var Yi = (a2, e) => {
|
18428
18471
|
var t = {};
|
18429
18472
|
for (var i in a2)
|
@@ -18435,7 +18478,7 @@ var Yi = (a2, e) => {
|
|
18435
18478
|
};
|
18436
18479
|
var ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18437
18480
|
var dr = ba((Xc, $a) => {
|
18438
|
-
$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"] };
|
18439
18482
|
});
|
18440
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 || {});
|
18441
18484
|
var Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
|
@@ -18926,12 +18969,12 @@ var R = class {
|
|
18926
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();
|
18927
18970
|
}
|
18928
18971
|
toSignalParams() {
|
18929
|
-
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() };
|
18930
18973
|
}
|
18931
18974
|
};
|
18932
|
-
var
|
18975
|
+
var y = class {
|
18933
18976
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
18934
|
-
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);
|
18935
18978
|
return new R({ name: o, level: n, properties: l });
|
18936
18979
|
}
|
18937
18980
|
static disconnect(e, t) {
|
@@ -18945,7 +18988,7 @@ var M = class {
|
|
18945
18988
|
}
|
18946
18989
|
static join(i) {
|
18947
18990
|
var r = i, { error: e } = r, t = Yi(r, ["error"]);
|
18948
|
-
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);
|
18949
18992
|
return new R({ name: s, level: o, properties: n });
|
18950
18993
|
}
|
18951
18994
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -18988,7 +19031,7 @@ var M = class {
|
|
18988
19031
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
18989
19032
|
if (!t && e.degradedAt instanceof Date) {
|
18990
19033
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
18991
|
-
s =
|
19034
|
+
s = M(S({}, s), { duration: n, restoredAt: o });
|
18992
19035
|
}
|
18993
19036
|
return new R({ name: i, level: r, properties: s });
|
18994
19037
|
}
|
@@ -19016,7 +19059,7 @@ var M = class {
|
|
19016
19059
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
19017
19060
|
}
|
19018
19061
|
};
|
19019
|
-
|
19062
|
+
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
19020
19063
|
var ur = class {
|
19021
19064
|
constructor() {
|
19022
19065
|
this.storage = new ne("hms-device-selection");
|
@@ -20171,6 +20214,8 @@ var MwebOptions = ({
|
|
20171
20214
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
20172
20215
|
const { title, description } = useRoomLayoutHeader();
|
20173
20216
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
20217
|
+
const isMobileHLSStream = useMobileHLSStream();
|
20218
|
+
const isLandscapeHLSStream = useLandscapeHLSStream();
|
20174
20219
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
20175
20220
|
const updateState = (modalName, value) => {
|
20176
20221
|
setOpenModals((modals) => {
|
@@ -20184,7 +20229,7 @@ var MwebOptions = ({
|
|
20184
20229
|
});
|
20185
20230
|
};
|
20186
20231
|
useClickAway(emojiCardRef, () => setShowEmojiCard(false));
|
20187
|
-
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(
|
20188
20233
|
Sheet.Title,
|
20189
20234
|
{
|
20190
20235
|
css: {
|
@@ -20239,7 +20284,7 @@ var MwebOptions = ({
|
|
20239
20284
|
isHandRaised ? /* @__PURE__ */ React58.createElement(HandRaiseSlashedIcon, null) : /* @__PURE__ */ React58.createElement(HandIcon2, null),
|
20240
20285
|
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
|
20241
20286
|
) : null,
|
20242
|
-
(elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React58.createElement(
|
20287
|
+
(elements == null ? void 0 : elements.emoji_reactions) && !(isLandscapeHLSStream || isMobileHLSStream) && /* @__PURE__ */ React58.createElement(
|
20243
20288
|
ActionTile.Root,
|
20244
20289
|
{
|
20245
20290
|
onClick: () => {
|
@@ -20326,7 +20371,7 @@ var MwebOptions = ({
|
|
20326
20371
|
})
|
20327
20372
|
},
|
20328
20373
|
isRecordingLoading ? /* @__PURE__ */ React58.createElement(Loading, null) : /* @__PURE__ */ React58.createElement(RecordIcon2, null),
|
20329
|
-
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, match4({ isBrowserRecordingOn, isRecordingLoading }).with({ isBrowserRecordingOn: true, isRecordingLoading: false }, () => "Recording On").with({ isRecordingLoading: true }, () => "Starting Recording").with({ isRecordingLoading: false }, () => "Start Recording"))
|
20374
|
+
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, match4({ isBrowserRecordingOn, isRecordingLoading }).with({ isBrowserRecordingOn: true, isRecordingLoading: false }, () => "Recording On").with({ isRecordingLoading: true }, () => "Starting Recording").with({ isRecordingLoading: false }, () => "Start Recording").otherwise(() => null))
|
20330
20375
|
) : null,
|
20331
20376
|
title || description ? /* @__PURE__ */ React58.createElement(
|
20332
20377
|
ActionTile.Root,
|
@@ -20399,22 +20444,31 @@ var MoreSettings = ({
|
|
20399
20444
|
init_define_process_env();
|
20400
20445
|
import React60 from "react";
|
20401
20446
|
import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
|
20402
|
-
var RaiseHand = () => {
|
20447
|
+
var RaiseHand = ({ css: css2 }) => {
|
20403
20448
|
const { isHandRaised, toggleHandRaise } = useMyMetadata();
|
20404
|
-
return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
|
20405
|
-
|
20406
|
-
|
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
|
+
));
|
20407
20461
|
};
|
20408
20462
|
|
20409
20463
|
// src/Prebuilt/components/ScreenShareToggle.jsx
|
20410
20464
|
init_define_process_env();
|
20411
|
-
import React67, { Fragment as
|
20465
|
+
import React67, { Fragment as Fragment8 } from "react";
|
20412
20466
|
import { selectIsAllowedToPublish, useAwayNotifications, useHMSStore as useHMSStore30, useScreenShare as useScreenShare3 } from "@100mslive/react-sdk";
|
20413
20467
|
import { ShareScreenIcon as ShareScreenIcon2 } from "@100mslive/react-icons";
|
20414
20468
|
|
20415
20469
|
// src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx
|
20416
20470
|
init_define_process_env();
|
20417
|
-
import React66, { Fragment as
|
20471
|
+
import React66, { Fragment as Fragment7, useState as useState30 } from "react";
|
20418
20472
|
import { useScreenShare as useScreenShare2 } from "@100mslive/react-sdk";
|
20419
20473
|
import { StarIcon, VerticalMenuIcon as VerticalMenuIcon3 } from "@100mslive/react-icons";
|
20420
20474
|
|
@@ -20597,7 +20651,7 @@ var UploadedFile = ({ pdfFile, setPDFFile, onOpenChange }) => {
|
|
20597
20651
|
w: "100%",
|
20598
20652
|
"&:focus": {
|
20599
20653
|
boxShadow: "0 0 0 1px $colors$primary_default",
|
20600
|
-
border: "1px solid
|
20654
|
+
border: "1px solid transparent"
|
20601
20655
|
},
|
20602
20656
|
mb: 0,
|
20603
20657
|
mt: "$6"
|
@@ -20675,7 +20729,7 @@ function ShareScreenOptions() {
|
|
20675
20729
|
});
|
20676
20730
|
};
|
20677
20731
|
const { toggleScreenShare } = useScreenShare2();
|
20678
|
-
return /* @__PURE__ */ React66.createElement(
|
20732
|
+
return /* @__PURE__ */ React66.createElement(Fragment7, null, /* @__PURE__ */ React66.createElement(
|
20679
20733
|
Dropdown.Root,
|
20680
20734
|
{
|
20681
20735
|
open: openModals.has(MODALS3.SHARE),
|
@@ -20704,7 +20758,7 @@ function ShareScreenOptions() {
|
|
20704
20758
|
pt: "$10",
|
20705
20759
|
pb: "$6",
|
20706
20760
|
"&:hover": {
|
20707
|
-
bg: "
|
20761
|
+
bg: "transparent",
|
20708
20762
|
cursor: "default"
|
20709
20763
|
}
|
20710
20764
|
}
|
@@ -20723,7 +20777,7 @@ function ShareScreenOptions() {
|
|
20723
20777
|
pt: "$6",
|
20724
20778
|
pb: "$10",
|
20725
20779
|
"&:hover": {
|
20726
|
-
bg: "
|
20780
|
+
bg: "transparent",
|
20727
20781
|
cursor: "default"
|
20728
20782
|
}
|
20729
20783
|
}
|
@@ -20877,7 +20931,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
20877
20931
|
if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
|
20878
20932
|
return null;
|
20879
20933
|
}
|
20880
|
-
return /* @__PURE__ */ React67.createElement(
|
20934
|
+
return /* @__PURE__ */ React67.createElement(Fragment8, null, /* @__PURE__ */ React67.createElement(Flex, { direction: "row", css: { "@md": { display: "none" } } }, /* @__PURE__ */ React67.createElement(
|
20881
20935
|
ScreenShareButton,
|
20882
20936
|
{
|
20883
20937
|
variant: "standard",
|
@@ -20949,7 +21003,7 @@ var ChatToggle = () => {
|
|
20949
21003
|
|
20950
21004
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
20951
21005
|
init_define_process_env();
|
20952
|
-
import React74, { Fragment as
|
21006
|
+
import React74, { Fragment as Fragment9, useCallback as useCallback18, useState as useState32 } from "react";
|
20953
21007
|
import { useDebounce, useMedia as useMedia10 } from "react-use";
|
20954
21008
|
import {
|
20955
21009
|
selectHandRaisedPeers,
|
@@ -21405,7 +21459,7 @@ var ParticipantList = ({
|
|
21405
21459
|
if (peerCount === 0) {
|
21406
21460
|
return null;
|
21407
21461
|
}
|
21408
|
-
return /* @__PURE__ */ React74.createElement(
|
21462
|
+
return /* @__PURE__ */ React74.createElement(Fragment9, null, /* @__PURE__ */ React74.createElement(
|
21409
21463
|
Flex,
|
21410
21464
|
{
|
21411
21465
|
direction: "column",
|
@@ -21877,7 +21931,7 @@ import {
|
|
21877
21931
|
|
21878
21932
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
21879
21933
|
init_define_process_env();
|
21880
|
-
import React131, { Fragment as
|
21934
|
+
import React131, { Fragment as Fragment12, useCallback as useCallback31, useEffect as useEffect34, useMemo as useMemo11, useState as useState55 } from "react";
|
21881
21935
|
import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
|
21882
21936
|
import {
|
21883
21937
|
HMSRoomState as HMSRoomState5,
|
@@ -21895,10 +21949,10 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
21895
21949
|
|
21896
21950
|
// src/Prebuilt/layouts/SidePane.tsx
|
21897
21951
|
init_define_process_env();
|
21898
|
-
import
|
21952
|
+
import React127, { useEffect as useEffect33 } from "react";
|
21899
21953
|
import { useMedia as useMedia22 } from "react-use";
|
21900
|
-
import { match as
|
21901
|
-
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";
|
21902
21956
|
|
21903
21957
|
// src/Prebuilt/components/Polls/Polls.tsx
|
21904
21958
|
init_define_process_env();
|
@@ -22288,7 +22342,7 @@ var OptionInputWithDelete = ({
|
|
22288
22342
|
key: index,
|
22289
22343
|
onChange: (event) => handleOptionTextChange(index, event.target.value)
|
22290
22344
|
}
|
22291
|
-
), /* @__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)));
|
22292
22346
|
};
|
22293
22347
|
|
22294
22348
|
// src/Prebuilt/components/Polls/common/VoteCount.tsx
|
@@ -22827,7 +22881,7 @@ var getFormattedTime = (milliseconds, precise = true) => {
|
|
22827
22881
|
const totalSeconds = milliseconds / 1e3;
|
22828
22882
|
const hours = Math.floor(totalSeconds / 3600);
|
22829
22883
|
const minutes = Math.floor(totalSeconds % 3600 / 60);
|
22830
|
-
const seconds =
|
22884
|
+
const seconds = totalSeconds % 60;
|
22831
22885
|
let formattedTime = "";
|
22832
22886
|
if (hours) {
|
22833
22887
|
formattedTime += `${hours}h `;
|
@@ -22838,7 +22892,7 @@ var getFormattedTime = (milliseconds, precise = true) => {
|
|
22838
22892
|
if (!precise && (hours || minutes)) {
|
22839
22893
|
return formattedTime;
|
22840
22894
|
}
|
22841
|
-
formattedTime += `${seconds}s`;
|
22895
|
+
formattedTime += `${minutes >= 1 ? Math.floor(seconds) : seconds.toFixed(3)}s`;
|
22842
22896
|
return formattedTime;
|
22843
22897
|
};
|
22844
22898
|
|
@@ -23343,9 +23397,9 @@ var Voting = ({ id, toggleVoting }) => {
|
|
23343
23397
|
{
|
23344
23398
|
align: "center",
|
23345
23399
|
css: {
|
23346
|
-
gap: "$
|
23400
|
+
gap: "$4",
|
23347
23401
|
py: "$6",
|
23348
|
-
px: "$
|
23402
|
+
px: "$8",
|
23349
23403
|
my: "$4",
|
23350
23404
|
w: "100%",
|
23351
23405
|
color: "$on_surface_high",
|
@@ -23368,7 +23422,8 @@ var Voting = ({ id, toggleVoting }) => {
|
|
23368
23422
|
css: {
|
23369
23423
|
marginLeft: "auto",
|
23370
23424
|
cursor: "pointer",
|
23371
|
-
"&:hover": { opacity: "0.8" }
|
23425
|
+
"&:hover": { opacity: "0.8" },
|
23426
|
+
height: "fit-content"
|
23372
23427
|
}
|
23373
23428
|
},
|
23374
23429
|
/* @__PURE__ */ React99.createElement(CrossIcon14, { onClick: toggleVoting })
|
@@ -23411,19 +23466,69 @@ var Polls = () => {
|
|
23411
23466
|
|
23412
23467
|
// src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
|
23413
23468
|
init_define_process_env();
|
23414
|
-
import
|
23469
|
+
import React104 from "react";
|
23415
23470
|
import { CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
|
23416
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
|
+
|
23417
23522
|
// src/Prebuilt/components/RoomDetails/RoomDetailsRow.tsx
|
23418
23523
|
init_define_process_env();
|
23419
|
-
import
|
23524
|
+
import React103 from "react";
|
23420
23525
|
|
23421
23526
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
23422
23527
|
init_define_process_env();
|
23423
|
-
import
|
23528
|
+
import React102, { useEffect as useEffect24, useState as useState42 } from "react";
|
23424
23529
|
var Duration = ({ timestamp }) => {
|
23425
|
-
const [elapsedTime, setElapsedTime] =
|
23426
|
-
|
23530
|
+
const [elapsedTime, setElapsedTime] = useState42(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23531
|
+
useEffect24(() => {
|
23427
23532
|
const timerAdded = setInterval(() => {
|
23428
23533
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23429
23534
|
}, 1e3);
|
@@ -23431,46 +23536,57 @@ var Duration = ({ timestamp }) => {
|
|
23431
23536
|
clearInterval(timerAdded);
|
23432
23537
|
};
|
23433
23538
|
}, [timestamp]);
|
23434
|
-
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"));
|
23435
23540
|
};
|
23436
23541
|
|
23437
23542
|
// src/Prebuilt/components/RoomDetails/RoomDetailsRow.tsx
|
23438
23543
|
var RoomDetailsRow = ({ details }) => {
|
23439
|
-
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))));
|
23440
23545
|
};
|
23441
23546
|
|
23442
23547
|
// src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
|
23443
23548
|
var RoomDetailsPane = () => {
|
23444
|
-
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();
|
23445
23555
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
23446
|
-
|
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(
|
23447
23558
|
Flex,
|
23448
23559
|
{
|
23449
23560
|
onClick: toggleDetailsPane,
|
23450
|
-
css: {
|
23561
|
+
css: {
|
23562
|
+
color: "$on_surface_high",
|
23563
|
+
cursor: "pointer",
|
23564
|
+
"&:hover": { opacity: "0.8" }
|
23565
|
+
}
|
23451
23566
|
},
|
23452
|
-
/* @__PURE__ */
|
23453
|
-
)), /* @__PURE__ */
|
23567
|
+
/* @__PURE__ */ React104.createElement(CrossIcon15, null)
|
23568
|
+
)), /* @__PURE__ */ React104.createElement(RoomDetailsRow, { details }));
|
23454
23569
|
};
|
23455
23570
|
|
23456
23571
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
23457
23572
|
init_define_process_env();
|
23458
|
-
import
|
23573
|
+
import React119, { useEffect as useEffect31, useState as useState51 } from "react";
|
23459
23574
|
import { useMedia as useMedia19 } from "react-use";
|
23460
|
-
import { match as
|
23461
|
-
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";
|
23462
23577
|
import { CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
|
23463
23578
|
|
23464
23579
|
// src/Prebuilt/components/Chat/Chat.tsx
|
23465
23580
|
init_define_process_env();
|
23466
|
-
import
|
23581
|
+
import React116, { useCallback as useCallback29, useRef as useRef21 } from "react";
|
23467
23582
|
import { useMedia as useMedia18 } from "react-use";
|
23468
|
-
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";
|
23469
23585
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
23470
23586
|
|
23471
23587
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
23472
23588
|
init_define_process_env();
|
23473
|
-
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";
|
23474
23590
|
import { useMedia as useMedia13 } from "react-use";
|
23475
23591
|
import AutoSizer from "react-virtualized-auto-sizer";
|
23476
23592
|
import { VariableSizeList } from "react-window";
|
@@ -23483,15 +23599,15 @@ import {
|
|
23483
23599
|
selectSessionStore as selectSessionStore5,
|
23484
23600
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
23485
23601
|
useHMSActions as useHMSActions34,
|
23486
|
-
useHMSStore as
|
23602
|
+
useHMSStore as useHMSStore52,
|
23487
23603
|
useHMSVanillaStore as useHMSVanillaStore10
|
23488
23604
|
} from "@100mslive/react-sdk";
|
23489
23605
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
23490
23606
|
|
23491
23607
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
23492
23608
|
init_define_process_env();
|
23493
|
-
import
|
23494
|
-
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";
|
23495
23611
|
import {
|
23496
23612
|
CopyIcon as CopyIcon2,
|
23497
23613
|
CrossCircleIcon as CrossCircleIcon2,
|
@@ -23506,23 +23622,23 @@ import {
|
|
23506
23622
|
|
23507
23623
|
// src/Prebuilt/components/Chat/MwebChatOption.tsx
|
23508
23624
|
init_define_process_env();
|
23509
|
-
import
|
23625
|
+
import React105 from "react";
|
23510
23626
|
var MwebChatOption = ({
|
23511
23627
|
icon,
|
23512
23628
|
text,
|
23513
23629
|
onClick,
|
23514
23630
|
color = "$on_surface_high"
|
23515
23631
|
}) => {
|
23516
|
-
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));
|
23517
23633
|
};
|
23518
23634
|
|
23519
23635
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
23520
23636
|
init_define_process_env();
|
23521
23637
|
import { useCallback as useCallback22 } from "react";
|
23522
|
-
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";
|
23523
23639
|
var useChatBlacklist = (sessionStoreKey) => {
|
23524
23640
|
const hmsActions = useHMSActions31();
|
23525
|
-
const blacklistedIDs =
|
23641
|
+
const blacklistedIDs = useHMSStore49(selectSessionStore2(sessionStoreKey));
|
23526
23642
|
const blacklistItem = useCallback22(
|
23527
23643
|
(blacklistID) => __async(void 0, null, function* () {
|
23528
23644
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -23532,8 +23648,8 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
23532
23648
|
return { blacklistItem, blacklistedIDs };
|
23533
23649
|
};
|
23534
23650
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
23535
|
-
const localPeer =
|
23536
|
-
const blacklistedPeerIDs =
|
23651
|
+
const localPeer = useHMSStore49(selectLocalPeer2);
|
23652
|
+
const blacklistedPeerIDs = useHMSStore49(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
23537
23653
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
23538
23654
|
};
|
23539
23655
|
|
@@ -23614,11 +23730,11 @@ var ChatActions = ({
|
|
23614
23730
|
const { elements } = useRoomLayoutConferencingScreen();
|
23615
23731
|
const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
|
23616
23732
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
23617
|
-
const [open, setOpen] =
|
23733
|
+
const [open, setOpen] = useState43(false);
|
23618
23734
|
const actions = useHMSActions33();
|
23619
|
-
const canRemoveOthers = (_b7 =
|
23735
|
+
const canRemoveOthers = (_b7 = useHMSStore50(selectPermissions15)) == null ? void 0 : _b7.removeOthers;
|
23620
23736
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
23621
|
-
const localPeerName =
|
23737
|
+
const localPeerName = useHMSStore50(selectLocalPeerName2);
|
23622
23738
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
23623
23739
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
23624
23740
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -23648,34 +23764,34 @@ var ChatActions = ({
|
|
23648
23764
|
reply: {
|
23649
23765
|
text: "Reply privately",
|
23650
23766
|
tooltipText: "Reply privately",
|
23651
|
-
icon: /* @__PURE__ */
|
23767
|
+
icon: /* @__PURE__ */ React106.createElement(ReplyIcon, { style: iconStyle }),
|
23652
23768
|
onClick: onReply,
|
23653
23769
|
show: showReply
|
23654
23770
|
},
|
23655
23771
|
replyGroup: {
|
23656
23772
|
text: "Reply to group",
|
23657
23773
|
tooltipText: "Reply to group",
|
23658
|
-
icon: /* @__PURE__ */
|
23774
|
+
icon: /* @__PURE__ */ React106.createElement(ReplyGroupIcon, { style: iconStyle }),
|
23659
23775
|
onClick: onReplyGroup,
|
23660
23776
|
show: !!message.senderRole && roles_whitelist.includes(message.senderRole)
|
23661
23777
|
},
|
23662
23778
|
pin: {
|
23663
23779
|
text: "Pin message",
|
23664
23780
|
tooltipText: "Pin",
|
23665
|
-
icon: /* @__PURE__ */
|
23781
|
+
icon: /* @__PURE__ */ React106.createElement(PinIcon, { style: iconStyle }),
|
23666
23782
|
onClick: () => setPinnedMessages(message, localPeerName || ""),
|
23667
23783
|
show: showPinAction
|
23668
23784
|
},
|
23669
23785
|
copy: {
|
23670
23786
|
text: "Copy text",
|
23671
23787
|
tooltipText: "Copy",
|
23672
|
-
icon: /* @__PURE__ */
|
23788
|
+
icon: /* @__PURE__ */ React106.createElement(CopyIcon2, { style: iconStyle }),
|
23673
23789
|
onClick: copyMessageContent,
|
23674
23790
|
show: true
|
23675
23791
|
},
|
23676
23792
|
hide: {
|
23677
23793
|
text: message.recipientPeer ? "Hide for both" : "Hide for everyone",
|
23678
|
-
icon: /* @__PURE__ */
|
23794
|
+
icon: /* @__PURE__ */ React106.createElement(EyeCloseIcon2, { style: iconStyle }),
|
23679
23795
|
onClick: () => __async(void 0, null, function* () {
|
23680
23796
|
blacklistMessage(message.id);
|
23681
23797
|
updatePinnedMessages(message.id);
|
@@ -23684,7 +23800,7 @@ var ChatActions = ({
|
|
23684
23800
|
},
|
23685
23801
|
block: {
|
23686
23802
|
text: "Block from chat",
|
23687
|
-
icon: /* @__PURE__ */
|
23803
|
+
icon: /* @__PURE__ */ React106.createElement(CrossCircleIcon2, { style: iconStyle }),
|
23688
23804
|
onClick: () => __async(void 0, null, function* () {
|
23689
23805
|
if (message.senderUserId) {
|
23690
23806
|
blacklistPeer(message.senderUserId);
|
@@ -23695,7 +23811,7 @@ var ChatActions = ({
|
|
23695
23811
|
},
|
23696
23812
|
remove: {
|
23697
23813
|
text: "Remove participant",
|
23698
|
-
icon: /* @__PURE__ */
|
23814
|
+
icon: /* @__PURE__ */ React106.createElement(PeopleRemoveIcon3, { style: iconStyle }),
|
23699
23815
|
color: "$alert_error_default",
|
23700
23816
|
show: !!canRemoveOthers && !sentByLocalPeer,
|
23701
23817
|
onClick: () => __async(void 0, null, function* () {
|
@@ -23711,7 +23827,7 @@ var ChatActions = ({
|
|
23711
23827
|
}
|
23712
23828
|
};
|
23713
23829
|
if (isMobile) {
|
23714
|
-
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(
|
23715
23831
|
Sheet.Title,
|
23716
23832
|
{
|
23717
23833
|
css: {
|
@@ -23728,10 +23844,10 @@ var ChatActions = ({
|
|
23728
23844
|
}
|
23729
23845
|
},
|
23730
23846
|
"Message options",
|
23731
|
-
/* @__PURE__ */
|
23847
|
+
/* @__PURE__ */ React106.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(CrossIcon16, null))
|
23732
23848
|
), Object.keys(options).map((optionKey) => {
|
23733
23849
|
const option = options[optionKey];
|
23734
|
-
return option.show ? /* @__PURE__ */
|
23850
|
+
return option.show ? /* @__PURE__ */ React106.createElement(
|
23735
23851
|
MwebChatOption,
|
23736
23852
|
{
|
23737
23853
|
key: optionKey,
|
@@ -23743,7 +23859,7 @@ var ChatActions = ({
|
|
23743
23859
|
) : null;
|
23744
23860
|
})));
|
23745
23861
|
}
|
23746
|
-
return /* @__PURE__ */
|
23862
|
+
return /* @__PURE__ */ React106.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { "@md": { display: "none" } } }, /* @__PURE__ */ React106.createElement(
|
23747
23863
|
Flex,
|
23748
23864
|
{
|
23749
23865
|
className: "chat_actions",
|
@@ -23759,20 +23875,20 @@ var ChatActions = ({
|
|
23759
23875
|
"@md": { opacity: 1 }
|
23760
23876
|
}
|
23761
23877
|
},
|
23762
|
-
options.reply.show ? /* @__PURE__ */
|
23763
|
-
options.replyGroup.show ? /* @__PURE__ */
|
23764
|
-
options.pin.show ? /* @__PURE__ */
|
23765
|
-
options.copy.show ? /* @__PURE__ */
|
23766
|
-
options.block.show || options.hide.show || options.remove.show ? /* @__PURE__ */
|
23767
|
-
), /* @__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(
|
23768
23884
|
Dropdown.Content,
|
23769
23885
|
{
|
23770
23886
|
sideOffset: 5,
|
23771
23887
|
align: "end",
|
23772
23888
|
css: { width: "$48", backgroundColor: "$surface_bright", py: "$0", border: "1px solid $border_bright" }
|
23773
23889
|
},
|
23774
|
-
options.hide.show ? /* @__PURE__ */
|
23775
|
-
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(
|
23776
23892
|
Dropdown.Item,
|
23777
23893
|
{
|
23778
23894
|
"data-testid": "block_peer_btn",
|
@@ -23780,9 +23896,9 @@ var ChatActions = ({
|
|
23780
23896
|
css: { color: options.block.color }
|
23781
23897
|
},
|
23782
23898
|
options.block.icon,
|
23783
|
-
/* @__PURE__ */
|
23899
|
+
/* @__PURE__ */ React106.createElement(Text, { variant: "sm", css: { ml: "$4", color: "inherit", fontWeight: "$semiBold" } }, options.block.text)
|
23784
23900
|
) : null,
|
23785
|
-
options.remove.show ? /* @__PURE__ */
|
23901
|
+
options.remove.show ? /* @__PURE__ */ React106.createElement(
|
23786
23902
|
Dropdown.Item,
|
23787
23903
|
{
|
23788
23904
|
"data-testid": "remove_peer_btn",
|
@@ -23790,14 +23906,14 @@ var ChatActions = ({
|
|
23790
23906
|
css: { color: options.remove.color }
|
23791
23907
|
},
|
23792
23908
|
options.remove.icon,
|
23793
|
-
/* @__PURE__ */
|
23909
|
+
/* @__PURE__ */ React106.createElement(Text, { variant: "sm", css: { ml: "$4", color: "inherit", fontWeight: "$semiBold" } }, options.remove.text)
|
23794
23910
|
) : null
|
23795
23911
|
)));
|
23796
23912
|
};
|
23797
23913
|
|
23798
23914
|
// src/Prebuilt/components/Chat/EmptyChat.tsx
|
23799
23915
|
init_define_process_env();
|
23800
|
-
import
|
23916
|
+
import React107 from "react";
|
23801
23917
|
import { useMedia as useMedia12 } from "react-use";
|
23802
23918
|
|
23803
23919
|
// src/Prebuilt/images/empty-chat.svg
|
@@ -23811,8 +23927,8 @@ var EmptyChat = () => {
|
|
23811
23927
|
const isMobile = useMedia12(config.media.md);
|
23812
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;
|
23813
23929
|
if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay))
|
23814
|
-
return /* @__PURE__ */
|
23815
|
-
return /* @__PURE__ */
|
23930
|
+
return /* @__PURE__ */ React107.createElement(React107.Fragment, null);
|
23931
|
+
return /* @__PURE__ */ React107.createElement(
|
23816
23932
|
Flex,
|
23817
23933
|
{
|
23818
23934
|
css: {
|
@@ -23824,7 +23940,7 @@ var EmptyChat = () => {
|
|
23824
23940
|
align: "center",
|
23825
23941
|
justify: "center"
|
23826
23942
|
},
|
23827
|
-
/* @__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(
|
23828
23944
|
Text,
|
23829
23945
|
{
|
23830
23946
|
variant: "sm",
|
@@ -23837,19 +23953,19 @@ var EmptyChat = () => {
|
|
23837
23953
|
|
23838
23954
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
23839
23955
|
init_define_process_env();
|
23840
|
-
import { useEffect as
|
23841
|
-
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";
|
23842
23958
|
var usePinnedBy = (messageId) => {
|
23843
|
-
const pinnedMessages =
|
23844
|
-
const [pinnedBy, setPinnedBy] =
|
23845
|
-
|
23846
|
-
let
|
23959
|
+
const pinnedMessages = useHMSStore51(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
23960
|
+
const [pinnedBy, setPinnedBy] = useState44("");
|
23961
|
+
useEffect25(() => {
|
23962
|
+
let match9 = "";
|
23847
23963
|
pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
|
23848
23964
|
if (pinnedMessage.id === messageId) {
|
23849
|
-
|
23965
|
+
match9 = pinnedMessage.pinnedBy;
|
23850
23966
|
}
|
23851
23967
|
});
|
23852
|
-
setPinnedBy(
|
23968
|
+
setPinnedBy(match9);
|
23853
23969
|
}, [messageId, pinnedMessages]);
|
23854
23970
|
return pinnedBy;
|
23855
23971
|
};
|
@@ -23885,7 +24001,7 @@ var getMessageBackgroundColor = (messageType, selectedPeerID, selectedRole, isOv
|
|
23885
24001
|
return "";
|
23886
24002
|
};
|
23887
24003
|
var MessageTypeContainer = ({ left, right }) => {
|
23888
|
-
return /* @__PURE__ */
|
24004
|
+
return /* @__PURE__ */ React108.createElement(
|
23889
24005
|
Flex,
|
23890
24006
|
{
|
23891
24007
|
align: "center",
|
@@ -23895,7 +24011,7 @@ var MessageTypeContainer = ({ left, right }) => {
|
|
23895
24011
|
gap: "$space$2"
|
23896
24012
|
}
|
23897
24013
|
},
|
23898
|
-
left && /* @__PURE__ */
|
24014
|
+
left && /* @__PURE__ */ React108.createElement(
|
23899
24015
|
SenderName,
|
23900
24016
|
{
|
23901
24017
|
variant: "xs",
|
@@ -23904,7 +24020,7 @@ var MessageTypeContainer = ({ left, right }) => {
|
|
23904
24020
|
},
|
23905
24021
|
left
|
23906
24022
|
),
|
23907
|
-
right && /* @__PURE__ */
|
24023
|
+
right && /* @__PURE__ */ React108.createElement(
|
23908
24024
|
SenderName,
|
23909
24025
|
{
|
23910
24026
|
as: "span",
|
@@ -23923,13 +24039,13 @@ var MessageType = ({
|
|
23923
24039
|
hasCurrentUserSent,
|
23924
24040
|
receiver
|
23925
24041
|
}) => {
|
23926
|
-
const peerName =
|
23927
|
-
const localPeerRoleName =
|
24042
|
+
const peerName = useHMSStore52(selectPeerNameByID3(receiver));
|
24043
|
+
const localPeerRoleName = useHMSStore52(selectLocalPeerRoleName3);
|
23928
24044
|
if (receiver) {
|
23929
|
-
return /* @__PURE__ */
|
24045
|
+
return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
23930
24046
|
}
|
23931
24047
|
if (roles && roles.length) {
|
23932
|
-
return /* @__PURE__ */
|
24048
|
+
return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: `to ${hasCurrentUserSent ? roles[0] : localPeerRoleName}`, right: "(Group)" });
|
23933
24049
|
}
|
23934
24050
|
return null;
|
23935
24051
|
};
|
@@ -23943,10 +24059,10 @@ var Link2 = styled("a", {
|
|
23943
24059
|
});
|
23944
24060
|
var AnnotisedMessage = ({ message, length }) => {
|
23945
24061
|
if (!message) {
|
23946
|
-
return /* @__PURE__ */
|
24062
|
+
return /* @__PURE__ */ React108.createElement(Fragment10, null);
|
23947
24063
|
}
|
23948
|
-
return /* @__PURE__ */
|
23949
|
-
(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)
|
23950
24066
|
));
|
23951
24067
|
};
|
23952
24068
|
var getMessageType = ({ roles, receiver }) => {
|
@@ -23964,7 +24080,7 @@ var SenderName = styled(Text, {
|
|
23964
24080
|
color: "$on_surface_high",
|
23965
24081
|
fontWeight: "$semiBold"
|
23966
24082
|
});
|
23967
|
-
var ChatMessage =
|
24083
|
+
var ChatMessage = React108.memo(
|
23968
24084
|
({ index, style = {}, message }) => {
|
23969
24085
|
var _a8, _b7, _c;
|
23970
24086
|
const { elements } = useRoomLayoutConferencingScreen();
|
@@ -23972,14 +24088,14 @@ var ChatMessage = React107.memo(
|
|
23972
24088
|
const isMobile = useMedia13(config.media.md);
|
23973
24089
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
23974
24090
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
23975
|
-
const localPeerId =
|
24091
|
+
const localPeerId = useHMSStore52(selectLocalPeerID10);
|
23976
24092
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
23977
24093
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
23978
24094
|
const messageType = getMessageType({
|
23979
24095
|
roles: message.recipientRoles,
|
23980
24096
|
receiver: message.recipientPeer
|
23981
24097
|
});
|
23982
|
-
const [openSheet, setOpenSheetBare] =
|
24098
|
+
const [openSheet, setOpenSheetBare] = useState45(false);
|
23983
24099
|
const showPinAction = !!((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.allow_pinning_messages);
|
23984
24100
|
const showReply = message.sender !== selectedPeer.id && message.sender !== localPeerId && isPrivateChatEnabled;
|
23985
24101
|
useLayoutEffect(() => {
|
@@ -23991,7 +24107,7 @@ var ChatMessage = React107.memo(
|
|
23991
24107
|
e == null ? void 0 : e.stopPropagation();
|
23992
24108
|
setOpenSheetBare(value);
|
23993
24109
|
};
|
23994
|
-
return /* @__PURE__ */
|
24110
|
+
return /* @__PURE__ */ React108.createElement(
|
23995
24111
|
Box,
|
23996
24112
|
{
|
23997
24113
|
css: {
|
@@ -24003,7 +24119,7 @@ var ChatMessage = React107.memo(
|
|
24003
24119
|
},
|
24004
24120
|
style
|
24005
24121
|
},
|
24006
|
-
/* @__PURE__ */
|
24122
|
+
/* @__PURE__ */ React108.createElement(
|
24007
24123
|
Flex,
|
24008
24124
|
{
|
24009
24125
|
ref: rowRef,
|
@@ -24030,8 +24146,8 @@ var ChatMessage = React107.memo(
|
|
24030
24146
|
}
|
24031
24147
|
}
|
24032
24148
|
},
|
24033
|
-
/* @__PURE__ */
|
24034
|
-
/* @__PURE__ */
|
24149
|
+
/* @__PURE__ */ React108.createElement(PinnedBy, { messageId: message.id, index, rowRef }),
|
24150
|
+
/* @__PURE__ */ React108.createElement(
|
24035
24151
|
Text,
|
24036
24152
|
{
|
24037
24153
|
css: {
|
@@ -24044,7 +24160,7 @@ var ChatMessage = React107.memo(
|
|
24044
24160
|
},
|
24045
24161
|
as: "div"
|
24046
24162
|
},
|
24047
|
-
/* @__PURE__ */
|
24163
|
+
/* @__PURE__ */ React108.createElement(Flex, { align: "baseline" }, message.senderName === "You" || !message.senderName ? /* @__PURE__ */ React108.createElement(
|
24048
24164
|
SenderName,
|
24049
24165
|
{
|
24050
24166
|
as: "span",
|
@@ -24052,7 +24168,7 @@ var ChatMessage = React107.memo(
|
|
24052
24168
|
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
24053
24169
|
},
|
24054
24170
|
message.senderName || "Anonymous"
|
24055
|
-
) : /* @__PURE__ */
|
24171
|
+
) : /* @__PURE__ */ React108.createElement(Tooltip, { title: message.senderName, side: "top", align: "start" }, /* @__PURE__ */ React108.createElement(
|
24056
24172
|
SenderName,
|
24057
24173
|
{
|
24058
24174
|
as: "span",
|
@@ -24060,7 +24176,7 @@ var ChatMessage = React107.memo(
|
|
24060
24176
|
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
24061
24177
|
},
|
24062
24178
|
message.sender === localPeerId ? `${message.senderName} (You)` : message.senderName
|
24063
|
-
)), /* @__PURE__ */
|
24179
|
+
)), /* @__PURE__ */ React108.createElement(
|
24064
24180
|
MessageType,
|
24065
24181
|
{
|
24066
24182
|
hasCurrentUserSent: message.sender === localPeerId,
|
@@ -24068,7 +24184,7 @@ var ChatMessage = React107.memo(
|
|
24068
24184
|
roles: message.recipientRoles
|
24069
24185
|
}
|
24070
24186
|
)),
|
24071
|
-
!isOverlay ? /* @__PURE__ */
|
24187
|
+
!isOverlay ? /* @__PURE__ */ React108.createElement(
|
24072
24188
|
Text,
|
24073
24189
|
{
|
24074
24190
|
as: "span",
|
@@ -24085,7 +24201,7 @@ var ChatMessage = React107.memo(
|
|
24085
24201
|
},
|
24086
24202
|
formatTime2(message.time)
|
24087
24203
|
) : null,
|
24088
|
-
/* @__PURE__ */
|
24204
|
+
/* @__PURE__ */ React108.createElement(
|
24089
24205
|
ChatActions,
|
24090
24206
|
{
|
24091
24207
|
showPinAction,
|
@@ -24108,7 +24224,7 @@ var ChatMessage = React107.memo(
|
|
24108
24224
|
}
|
24109
24225
|
)
|
24110
24226
|
),
|
24111
|
-
/* @__PURE__ */
|
24227
|
+
/* @__PURE__ */ React108.createElement(
|
24112
24228
|
Text,
|
24113
24229
|
{
|
24114
24230
|
variant: "sm",
|
@@ -24124,26 +24240,26 @@ var ChatMessage = React107.memo(
|
|
24124
24240
|
setOpenSheet(true, e);
|
24125
24241
|
}
|
24126
24242
|
},
|
24127
|
-
/* @__PURE__ */
|
24243
|
+
/* @__PURE__ */ React108.createElement(AnnotisedMessage, { message: message.message })
|
24128
24244
|
)
|
24129
24245
|
)
|
24130
24246
|
);
|
24131
24247
|
}
|
24132
24248
|
);
|
24133
|
-
var MessageWrapper =
|
24249
|
+
var MessageWrapper = React108.memo(
|
24134
24250
|
({ index, style, data: data3 }) => {
|
24135
|
-
return /* @__PURE__ */
|
24251
|
+
return /* @__PURE__ */ React108.createElement(ChatMessage, { style, index, key: data3[index].id, message: data3[index] });
|
24136
24252
|
}
|
24137
24253
|
);
|
24138
|
-
var VirtualizedChatMessages =
|
24254
|
+
var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
24139
24255
|
const hmsActions = useHMSActions34();
|
24140
24256
|
const itemKey2 = useCallback25((index, data3) => {
|
24141
24257
|
return data3[index].id;
|
24142
24258
|
}, []);
|
24143
|
-
|
24259
|
+
useEffect26(() => {
|
24144
24260
|
requestAnimationFrame(() => scrollToBottom(1));
|
24145
24261
|
}, [scrollToBottom]);
|
24146
|
-
return /* @__PURE__ */
|
24262
|
+
return /* @__PURE__ */ React108.createElement(
|
24147
24263
|
Box,
|
24148
24264
|
{
|
24149
24265
|
css: {
|
@@ -24151,14 +24267,14 @@ var VirtualizedChatMessages = React107.forwardRef(({ messages, scrollToBottom },
|
|
24151
24267
|
h: "100%"
|
24152
24268
|
}
|
24153
24269
|
},
|
24154
|
-
/* @__PURE__ */
|
24270
|
+
/* @__PURE__ */ React108.createElement(
|
24155
24271
|
AutoSizer,
|
24156
24272
|
{
|
24157
24273
|
style: {
|
24158
24274
|
width: "90%"
|
24159
24275
|
}
|
24160
24276
|
},
|
24161
|
-
({ height, width }) => /* @__PURE__ */
|
24277
|
+
({ height, width }) => /* @__PURE__ */ React108.createElement(
|
24162
24278
|
VariableSizeList,
|
24163
24279
|
{
|
24164
24280
|
ref: (node) => {
|
@@ -24189,16 +24305,16 @@ var VirtualizedChatMessages = React107.forwardRef(({ messages, scrollToBottom },
|
|
24189
24305
|
)
|
24190
24306
|
);
|
24191
24307
|
});
|
24192
|
-
var ChatBody =
|
24308
|
+
var ChatBody = React108.forwardRef(
|
24193
24309
|
({ scrollToBottom }, listRef) => {
|
24194
|
-
const messages =
|
24195
|
-
const blacklistedMessageIDs =
|
24310
|
+
const messages = useHMSStore52(selectHMSMessages);
|
24311
|
+
const blacklistedMessageIDs = useHMSStore52(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
24196
24312
|
const filteredMessages = useMemo8(() => {
|
24197
24313
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
24198
24314
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
24199
24315
|
}, [blacklistedMessageIDs, messages]);
|
24200
24316
|
const vanillaStore = useHMSVanillaStore10();
|
24201
|
-
|
24317
|
+
useEffect26(() => {
|
24202
24318
|
const unsubscribe = vanillaStore.subscribe(() => {
|
24203
24319
|
if (!listRef.current) {
|
24204
24320
|
return;
|
@@ -24210,7 +24326,7 @@ var ChatBody = React107.forwardRef(
|
|
24210
24326
|
}, selectUnreadHMSMessagesCount2);
|
24211
24327
|
return unsubscribe;
|
24212
24328
|
}, [vanillaStore, listRef, scrollToBottom]);
|
24213
|
-
return filteredMessages.length === 0 ? /* @__PURE__ */
|
24329
|
+
return filteredMessages.length === 0 ? /* @__PURE__ */ React108.createElement(EmptyChat, null) : /* @__PURE__ */ React108.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
|
24214
24330
|
}
|
24215
24331
|
);
|
24216
24332
|
var PinnedBy = ({
|
@@ -24219,7 +24335,7 @@ var PinnedBy = ({
|
|
24219
24335
|
rowRef
|
24220
24336
|
}) => {
|
24221
24337
|
const pinnedBy = usePinnedBy(messageId);
|
24222
|
-
const localPeerName =
|
24338
|
+
const localPeerName = useHMSStore52(selectLocalPeerName3);
|
24223
24339
|
useLayoutEffect(() => {
|
24224
24340
|
if (rowRef == null ? void 0 : rowRef.current) {
|
24225
24341
|
if (pinnedBy) {
|
@@ -24233,38 +24349,38 @@ var PinnedBy = ({
|
|
24233
24349
|
if (!pinnedBy) {
|
24234
24350
|
return null;
|
24235
24351
|
}
|
24236
|
-
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));
|
24237
24353
|
};
|
24238
24354
|
|
24239
24355
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
24240
24356
|
init_define_process_env();
|
24241
|
-
import
|
24357
|
+
import React111, { useCallback as useCallback27, useEffect as useEffect28, useRef as useRef20, useState as useState48 } from "react";
|
24242
24358
|
import { useMedia as useMedia16 } from "react-use";
|
24243
24359
|
import data2 from "@emoji-mart/data";
|
24244
24360
|
import Picker from "@emoji-mart/react";
|
24245
|
-
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";
|
24246
24362
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24247
24363
|
|
24248
24364
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24249
24365
|
init_define_process_env();
|
24250
|
-
import
|
24366
|
+
import React110, { useState as useState47 } from "react";
|
24251
24367
|
import { useMedia as useMedia15 } from "react-use";
|
24252
24368
|
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon17, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
|
24253
24369
|
|
24254
24370
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
24255
24371
|
init_define_process_env();
|
24256
|
-
import
|
24372
|
+
import React109, { useMemo as useMemo9, useState as useState46 } from "react";
|
24257
24373
|
import { useMedia as useMedia14 } from "react-use";
|
24258
24374
|
import {
|
24259
24375
|
selectMessagesUnreadCountByPeerID,
|
24260
24376
|
selectMessagesUnreadCountByRole,
|
24261
24377
|
selectRemotePeers as selectRemotePeers2,
|
24262
24378
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
|
24263
|
-
useHMSStore as
|
24379
|
+
useHMSStore as useHMSStore53
|
24264
24380
|
} from "@100mslive/react-sdk";
|
24265
24381
|
import { CheckIcon as CheckIcon7, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
|
24266
24382
|
var ChatDotIcon = () => {
|
24267
|
-
return /* @__PURE__ */
|
24383
|
+
return /* @__PURE__ */ React109.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
|
24268
24384
|
};
|
24269
24385
|
var SelectorItem = ({
|
24270
24386
|
value,
|
@@ -24276,16 +24392,16 @@ var SelectorItem = ({
|
|
24276
24392
|
const isMobile = useMedia14(config.media.md);
|
24277
24393
|
const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
|
24278
24394
|
var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
|
24279
|
-
return /* @__PURE__ */
|
24395
|
+
return /* @__PURE__ */ React109.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
|
24280
24396
|
};
|
24281
|
-
return /* @__PURE__ */
|
24397
|
+
return /* @__PURE__ */ React109.createElement(
|
24282
24398
|
Root28,
|
24283
24399
|
{
|
24284
24400
|
"data-testid": "chat_members",
|
24285
24401
|
css: { align: "center", px: "$10", py: "$4", bg: "$surface_default" },
|
24286
24402
|
onClick
|
24287
24403
|
},
|
24288
|
-
/* @__PURE__ */
|
24404
|
+
/* @__PURE__ */ React109.createElement(
|
24289
24405
|
Text,
|
24290
24406
|
{
|
24291
24407
|
variant: "sm",
|
@@ -24294,12 +24410,12 @@ var SelectorItem = ({
|
|
24294
24410
|
icon,
|
24295
24411
|
value
|
24296
24412
|
),
|
24297
|
-
/* @__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 }))
|
24298
24414
|
);
|
24299
24415
|
};
|
24300
|
-
var SelectorHeader =
|
24416
|
+
var SelectorHeader = React109.memo(
|
24301
24417
|
({ isHorizontalDivider = true, children }) => {
|
24302
|
-
return /* @__PURE__ */
|
24418
|
+
return /* @__PURE__ */ React109.createElement(Box, { css: { flexShrink: 0 } }, isHorizontalDivider && /* @__PURE__ */ React109.createElement(HorizontalDivider, { space: 4 }), /* @__PURE__ */ React109.createElement(
|
24303
24419
|
Text,
|
24304
24420
|
{
|
24305
24421
|
variant: "overline",
|
@@ -24309,15 +24425,15 @@ var SelectorHeader = React108.memo(
|
|
24309
24425
|
));
|
24310
24426
|
}
|
24311
24427
|
);
|
24312
|
-
var Everyone =
|
24313
|
-
const unreadCount =
|
24428
|
+
var Everyone = React109.memo(({ active }) => {
|
24429
|
+
const unreadCount = useHMSStore53(selectUnreadHMSMessagesCount3);
|
24314
24430
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24315
24431
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24316
|
-
return /* @__PURE__ */
|
24432
|
+
return /* @__PURE__ */ React109.createElement(
|
24317
24433
|
SelectorItem,
|
24318
24434
|
{
|
24319
24435
|
value: "Everyone",
|
24320
|
-
icon: /* @__PURE__ */
|
24436
|
+
icon: /* @__PURE__ */ React109.createElement(PeopleIcon3, null),
|
24321
24437
|
active,
|
24322
24438
|
unreadCount,
|
24323
24439
|
onClick: () => {
|
@@ -24327,11 +24443,11 @@ var Everyone = React108.memo(({ active }) => {
|
|
24327
24443
|
}
|
24328
24444
|
);
|
24329
24445
|
});
|
24330
|
-
var RoleItem =
|
24331
|
-
const unreadCount =
|
24446
|
+
var RoleItem = React109.memo(({ role, active }) => {
|
24447
|
+
const unreadCount = useHMSStore53(selectMessagesUnreadCountByRole(role));
|
24332
24448
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24333
24449
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24334
|
-
return /* @__PURE__ */
|
24450
|
+
return /* @__PURE__ */ React109.createElement(
|
24335
24451
|
SelectorItem,
|
24336
24452
|
{
|
24337
24453
|
value: role,
|
@@ -24345,10 +24461,10 @@ var RoleItem = React108.memo(({ role, active }) => {
|
|
24345
24461
|
);
|
24346
24462
|
});
|
24347
24463
|
var PeerItem = ({ peerId, name, active }) => {
|
24348
|
-
const unreadCount =
|
24464
|
+
const unreadCount = useHMSStore53(selectMessagesUnreadCountByPeerID(peerId));
|
24349
24465
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24350
24466
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24351
|
-
return /* @__PURE__ */
|
24467
|
+
return /* @__PURE__ */ React109.createElement(
|
24352
24468
|
SelectorItem,
|
24353
24469
|
{
|
24354
24470
|
value: name,
|
@@ -24379,36 +24495,36 @@ var VirtualizedSelectItemList = ({
|
|
24379
24495
|
const listItems = useMemo9(() => {
|
24380
24496
|
let selectItems = [];
|
24381
24497
|
if (isPublicChatEnabled && !searchValue) {
|
24382
|
-
selectItems = [/* @__PURE__ */
|
24498
|
+
selectItems = [/* @__PURE__ */ React109.createElement(Everyone, { active: !selectedRole && !selectedPeerId })];
|
24383
24499
|
}
|
24384
24500
|
if (roles.length > 0 && !searchValue) {
|
24385
|
-
selectItems.push(/* @__PURE__ */
|
24501
|
+
selectItems.push(/* @__PURE__ */ React109.createElement(SelectorHeader, { isHorizontalDivider: isPublicChatEnabled }, "Roles"));
|
24386
24502
|
roles.forEach(
|
24387
|
-
(userRole) => selectItems.push(/* @__PURE__ */
|
24503
|
+
(userRole) => selectItems.push(/* @__PURE__ */ React109.createElement(RoleItem, { key: userRole, active: selectedRole === userRole, role: userRole }))
|
24388
24504
|
);
|
24389
24505
|
}
|
24390
24506
|
if (filteredPeers.length > 0) {
|
24391
24507
|
selectItems.push(
|
24392
|
-
/* @__PURE__ */
|
24508
|
+
/* @__PURE__ */ React109.createElement(SelectorHeader, { isHorizontalDivider: isPublicChatEnabled || roles.length > 0 }, "Participants")
|
24393
24509
|
);
|
24394
24510
|
}
|
24395
24511
|
filteredPeers.forEach(
|
24396
24512
|
(peer) => selectItems.push(
|
24397
|
-
/* @__PURE__ */
|
24513
|
+
/* @__PURE__ */ React109.createElement(PeerItem, { key: peer.id, name: peer.name, peerId: peer.id, active: peer.id === selectedPeerId })
|
24398
24514
|
)
|
24399
24515
|
);
|
24400
24516
|
return selectItems;
|
24401
24517
|
}, [isPublicChatEnabled, searchValue, selectedRole, selectedPeerId, roles, filteredPeers]);
|
24402
|
-
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)));
|
24403
24519
|
};
|
24404
24520
|
var ChatSelector = ({ role, peerId }) => {
|
24405
24521
|
var _a8, _b7;
|
24406
24522
|
const { elements } = useRoomLayoutConferencingScreen();
|
24407
|
-
const peers =
|
24408
|
-
const [search, setSearch] =
|
24523
|
+
const peers = useHMSStore53(selectRemotePeers2);
|
24524
|
+
const [search, setSearch] = useState46("");
|
24409
24525
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
24410
24526
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
24411
|
-
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(
|
24412
24528
|
VirtualizedSelectItemList,
|
24413
24529
|
{
|
24414
24530
|
selectedRole: role,
|
@@ -24423,7 +24539,7 @@ var ChatSelector = ({ role, peerId }) => {
|
|
24423
24539
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24424
24540
|
var ChatSelectorContainer = () => {
|
24425
24541
|
var _a8, _b7;
|
24426
|
-
const [open, setOpen] =
|
24542
|
+
const [open, setOpen] = useState47(false);
|
24427
24543
|
const isMobile = useMedia15(config.media.md);
|
24428
24544
|
const { elements } = useRoomLayoutConferencingScreen();
|
24429
24545
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
@@ -24436,7 +24552,7 @@ var ChatSelectorContainer = () => {
|
|
24436
24552
|
if (!(isPrivateChatEnabled || isPublicChatEnabled || roles.length > 0) && !isPrivateChatEnabled && !selection) {
|
24437
24553
|
return null;
|
24438
24554
|
}
|
24439
|
-
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(
|
24440
24556
|
Flex,
|
24441
24557
|
{
|
24442
24558
|
align: "center",
|
@@ -24447,7 +24563,7 @@ var ChatSelectorContainer = () => {
|
|
24447
24563
|
e.stopPropagation();
|
24448
24564
|
}
|
24449
24565
|
},
|
24450
|
-
/* @__PURE__ */
|
24566
|
+
/* @__PURE__ */ React110.createElement(
|
24451
24567
|
Text,
|
24452
24568
|
{
|
24453
24569
|
variant: "caption",
|
@@ -24460,11 +24576,11 @@ var ChatSelectorContainer = () => {
|
|
24460
24576
|
textTransform: selection !== selectedPeer.name ? "capitalize" : void 0
|
24461
24577
|
}
|
24462
24578
|
},
|
24463
|
-
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 }),
|
24464
24580
|
selection || "Search"
|
24465
24581
|
),
|
24466
|
-
selection && (open ? /* @__PURE__ */
|
24467
|
-
) : /* @__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(
|
24468
24584
|
Dropdown.Trigger,
|
24469
24585
|
{
|
24470
24586
|
asChild: true,
|
@@ -24477,7 +24593,7 @@ var ChatSelectorContainer = () => {
|
|
24477
24593
|
},
|
24478
24594
|
tabIndex: 0
|
24479
24595
|
},
|
24480
|
-
/* @__PURE__ */
|
24596
|
+
/* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { c: "$on_surface_medium" }, gap: "1" }, /* @__PURE__ */ React110.createElement(
|
24481
24597
|
Text,
|
24482
24598
|
{
|
24483
24599
|
variant: "caption",
|
@@ -24490,9 +24606,9 @@ var ChatSelectorContainer = () => {
|
|
24490
24606
|
textTransform: selection !== selectedPeer.name ? "capitalize" : void 0
|
24491
24607
|
}
|
24492
24608
|
},
|
24493
|
-
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 }),
|
24494
24610
|
selection || "Search"
|
24495
|
-
), selection && /* @__PURE__ */
|
24611
|
+
), selection && /* @__PURE__ */ React110.createElement(
|
24496
24612
|
ChevronDownIcon6,
|
24497
24613
|
{
|
24498
24614
|
style: { transform: open ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
|
@@ -24500,7 +24616,7 @@ var ChatSelectorContainer = () => {
|
|
24500
24616
|
height: 12
|
24501
24617
|
}
|
24502
24618
|
))
|
24503
|
-
), /* @__PURE__ */
|
24619
|
+
), /* @__PURE__ */ React110.createElement(
|
24504
24620
|
Dropdown.Content,
|
24505
24621
|
{
|
24506
24622
|
css: {
|
@@ -24512,8 +24628,8 @@ var ChatSelectorContainer = () => {
|
|
24512
24628
|
align: "start",
|
24513
24629
|
sideOffset: 8
|
24514
24630
|
},
|
24515
|
-
/* @__PURE__ */
|
24516
|
-
))), 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(
|
24517
24633
|
Sheet.Title,
|
24518
24634
|
{
|
24519
24635
|
css: {
|
@@ -24526,26 +24642,26 @@ var ChatSelectorContainer = () => {
|
|
24526
24642
|
borderBottom: "1px solid $border_bright"
|
24527
24643
|
}
|
24528
24644
|
},
|
24529
|
-
/* @__PURE__ */
|
24530
|
-
/* @__PURE__ */
|
24531
|
-
), /* @__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(
|
24532
24648
|
Box,
|
24533
24649
|
{
|
24534
24650
|
onClick: () => {
|
24535
24651
|
setOpen(false);
|
24536
24652
|
}
|
24537
24653
|
},
|
24538
|
-
/* @__PURE__ */
|
24654
|
+
/* @__PURE__ */ React110.createElement(ChatSelector, { role: selectedRole, peerId: selectedPeer.id })
|
24539
24655
|
))) : null);
|
24540
24656
|
};
|
24541
24657
|
|
24542
24658
|
// src/Prebuilt/components/AppData/useChatState.js
|
24543
24659
|
init_define_process_env();
|
24544
24660
|
import { useCallback as useCallback26 } from "react";
|
24545
|
-
import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as
|
24661
|
+
import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
24546
24662
|
var useChatDraftMessage = () => {
|
24547
24663
|
const hmsActions = useHMSActions35();
|
24548
|
-
let chatDraftMessage =
|
24664
|
+
let chatDraftMessage = useHMSStore54(selectAppData5(APP_DATA.chatDraft));
|
24549
24665
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
24550
24666
|
chatDraftMessage = "";
|
24551
24667
|
}
|
@@ -24560,10 +24676,10 @@ var useChatDraftMessage = () => {
|
|
24560
24676
|
|
24561
24677
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
24562
24678
|
init_define_process_env();
|
24563
|
-
import { useEffect as
|
24679
|
+
import { useEffect as useEffect27, useRef as useRef19 } from "react";
|
24564
24680
|
var useEmojiPickerStyles = (showing) => {
|
24565
24681
|
const ref = useRef19(null);
|
24566
|
-
|
24682
|
+
useEffect27(() => {
|
24567
24683
|
if (showing) {
|
24568
24684
|
setTimeout(() => {
|
24569
24685
|
var _a8, _b7;
|
@@ -24611,9 +24727,9 @@ var TextArea2 = styled("textarea", {
|
|
24611
24727
|
}
|
24612
24728
|
});
|
24613
24729
|
function EmojiPicker({ onSelect }) {
|
24614
|
-
const [showEmoji, setShowEmoji] =
|
24730
|
+
const [showEmoji, setShowEmoji] = useState48(false);
|
24615
24731
|
const ref = useEmojiPickerStyles(showEmoji);
|
24616
|
-
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(
|
24617
24733
|
Popover2.Content,
|
24618
24734
|
{
|
24619
24735
|
alignOffset: -40,
|
@@ -24623,7 +24739,7 @@ function EmojiPicker({ onSelect }) {
|
|
24623
24739
|
p: 0
|
24624
24740
|
}
|
24625
24741
|
},
|
24626
|
-
/* @__PURE__ */
|
24742
|
+
/* @__PURE__ */ React111.createElement(
|
24627
24743
|
Box,
|
24628
24744
|
{
|
24629
24745
|
css: {
|
@@ -24632,7 +24748,7 @@ function EmojiPicker({ onSelect }) {
|
|
24632
24748
|
},
|
24633
24749
|
ref
|
24634
24750
|
},
|
24635
|
-
/* @__PURE__ */
|
24751
|
+
/* @__PURE__ */ React111.createElement(Picker, { onEmojiSelect: onSelect, data: data2, previewPosition: "none", skinPosition: "search" })
|
24636
24752
|
)
|
24637
24753
|
)));
|
24638
24754
|
}
|
@@ -24644,7 +24760,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24644
24760
|
const isMobile = useMedia16(config.media.md);
|
24645
24761
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
24646
24762
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
24647
|
-
const localPeer =
|
24763
|
+
const localPeer = useHMSStore55(selectLocalPeer3);
|
24648
24764
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
24649
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);
|
24650
24766
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -24656,7 +24772,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24656
24772
|
const noAVPermissions = !(toggleAudio || toggleVideo);
|
24657
24773
|
const isMwebHLSStream = useMobileHLSStream();
|
24658
24774
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
24659
|
-
|
24775
|
+
useEffect28(() => {
|
24660
24776
|
var _a9, _b8;
|
24661
24777
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
24662
24778
|
setRoleSelector(defaultSelection);
|
@@ -24691,13 +24807,13 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24691
24807
|
});
|
24692
24808
|
}
|
24693
24809
|
}), [selectedRole, selectedPeer, hmsActions, onSend]);
|
24694
|
-
|
24810
|
+
useEffect28(() => {
|
24695
24811
|
const messageElement = inputRef.current;
|
24696
24812
|
if (messageElement) {
|
24697
24813
|
messageElement.value = draftMessage;
|
24698
24814
|
}
|
24699
24815
|
}, [draftMessage]);
|
24700
|
-
|
24816
|
+
useEffect28(() => {
|
24701
24817
|
const messageElement = inputRef.current;
|
24702
24818
|
return () => {
|
24703
24819
|
setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
|
@@ -24706,7 +24822,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24706
24822
|
if (isLocalPeerBlacklisted) {
|
24707
24823
|
return null;
|
24708
24824
|
}
|
24709
|
-
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(
|
24710
24826
|
Popover2.Content,
|
24711
24827
|
{
|
24712
24828
|
align: "end",
|
@@ -24734,18 +24850,20 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24734
24850
|
"&:hover": { backgroundColor: "$surface_dim" }
|
24735
24851
|
}
|
24736
24852
|
},
|
24737
|
-
/* @__PURE__ */
|
24738
|
-
/* @__PURE__ */
|
24739
|
-
)))) : 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(
|
24740
24856
|
Flex,
|
24741
24857
|
{
|
24742
24858
|
align: "center",
|
24743
24859
|
css: __spreadValues({
|
24744
24860
|
bg: isOverlayChat && isMobile ? "$surface_dim" : "$surface_default",
|
24861
|
+
minHeight: "$16",
|
24745
24862
|
maxHeight: "$24",
|
24746
24863
|
position: "relative",
|
24864
|
+
py: "$6",
|
24747
24865
|
pl: "$8",
|
24748
|
-
flexGrow:
|
24866
|
+
flexGrow: 1,
|
24749
24867
|
r: "$1",
|
24750
24868
|
"@md": {
|
24751
24869
|
minHeight: "unset",
|
@@ -24755,7 +24873,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24755
24873
|
}, isLandscapeHLSStream ? { minHeight: "$14", py: 0 } : {})
|
24756
24874
|
},
|
24757
24875
|
children,
|
24758
|
-
/* @__PURE__ */
|
24876
|
+
/* @__PURE__ */ React111.createElement(
|
24759
24877
|
TextArea2,
|
24760
24878
|
{
|
24761
24879
|
css: {
|
@@ -24784,7 +24902,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24784
24902
|
onCopy: (e) => e.stopPropagation()
|
24785
24903
|
}
|
24786
24904
|
),
|
24787
|
-
!isMobile && !isLandscapeHLSStream ? /* @__PURE__ */
|
24905
|
+
!isMobile && !isLandscapeHLSStream ? /* @__PURE__ */ React111.createElement(
|
24788
24906
|
EmojiPicker,
|
24789
24907
|
{
|
24790
24908
|
onSelect: (emoji) => {
|
@@ -24794,7 +24912,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24794
24912
|
}
|
24795
24913
|
}
|
24796
24914
|
) : null,
|
24797
|
-
/* @__PURE__ */
|
24915
|
+
/* @__PURE__ */ React111.createElement(
|
24798
24916
|
IconButton,
|
24799
24917
|
{
|
24800
24918
|
className: "send-msg",
|
@@ -24807,9 +24925,9 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24807
24925
|
},
|
24808
24926
|
"data-testid": "send_msg_btn"
|
24809
24927
|
},
|
24810
|
-
/* @__PURE__ */
|
24928
|
+
/* @__PURE__ */ React111.createElement(SendIcon, null)
|
24811
24929
|
)
|
24812
|
-
), (isMwebHLSStream || isLandscapeHLSStream) && /* @__PURE__ */
|
24930
|
+
), (isMwebHLSStream || isLandscapeHLSStream) && /* @__PURE__ */ React111.createElement(React111.Fragment, null, /* @__PURE__ */ React111.createElement(
|
24813
24931
|
Flex,
|
24814
24932
|
{
|
24815
24933
|
css: {
|
@@ -24817,22 +24935,22 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24817
24935
|
},
|
24818
24936
|
gap: "1"
|
24819
24937
|
},
|
24820
|
-
noAVPermissions ? /* @__PURE__ */
|
24821
|
-
/* @__PURE__ */
|
24822
|
-
)));
|
24938
|
+
noAVPermissions ? /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
|
24939
|
+
/* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
|
24940
|
+
))));
|
24823
24941
|
};
|
24824
24942
|
|
24825
24943
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
24826
24944
|
init_define_process_env();
|
24827
|
-
import
|
24828
|
-
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";
|
24829
24947
|
var ChatPaused = () => {
|
24830
24948
|
var _a8, _b7;
|
24831
24949
|
const hmsActions = useHMSActions37();
|
24832
24950
|
const { elements } = useRoomLayoutConferencingScreen();
|
24833
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);
|
24834
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } =
|
24835
|
-
const localPeer =
|
24952
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore56(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
24953
|
+
const localPeer = useHMSStore56(selectLocalPeer4);
|
24836
24954
|
const unPauseChat = useCallback28(
|
24837
24955
|
() => __async(void 0, null, function* () {
|
24838
24956
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
@@ -24843,14 +24961,14 @@ var ChatPaused = () => {
|
|
24843
24961
|
}),
|
24844
24962
|
[hmsActions, localPeer]
|
24845
24963
|
);
|
24846
|
-
return isChatEnabled ? null : /* @__PURE__ */
|
24964
|
+
return isChatEnabled ? null : /* @__PURE__ */ React112.createElement(
|
24847
24965
|
Flex,
|
24848
24966
|
{
|
24849
24967
|
align: "center",
|
24850
24968
|
justify: "between",
|
24851
24969
|
css: { borderRadius: "$1", bg: "$surface_default", p: "$4 $4 $4 $8", w: "100%" }
|
24852
24970
|
},
|
24853
|
-
/* @__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(
|
24854
24972
|
Text,
|
24855
24973
|
{
|
24856
24974
|
variant: "xs",
|
@@ -24859,7 +24977,7 @@ var ChatPaused = () => {
|
|
24859
24977
|
"Chat has been paused by ",
|
24860
24978
|
(chatStateUpdatedBy == null ? void 0 : chatStateUpdatedBy.peerId) === (localPeer == null ? void 0 : localPeer.id) ? "you" : chatStateUpdatedBy == null ? void 0 : chatStateUpdatedBy.userName
|
24861
24979
|
)),
|
24862
|
-
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)
|
24863
24981
|
);
|
24864
24982
|
};
|
24865
24983
|
var ChatBlocked = () => {
|
@@ -24867,28 +24985,28 @@ var ChatBlocked = () => {
|
|
24867
24985
|
if (!isLocalPeerBlacklisted) {
|
24868
24986
|
return null;
|
24869
24987
|
}
|
24870
|
-
return /* @__PURE__ */
|
24988
|
+
return /* @__PURE__ */ React112.createElement(
|
24871
24989
|
Flex,
|
24872
24990
|
{
|
24873
24991
|
align: "center",
|
24874
24992
|
justify: "between",
|
24875
24993
|
css: { borderRadius: "$1", bg: "$surface_default", p: "$4 $4 $4 $8", w: "100%" }
|
24876
24994
|
},
|
24877
|
-
/* @__PURE__ */
|
24995
|
+
/* @__PURE__ */ React112.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", textAlign: "center", w: "100%" } }, "You've been blocked from sending messages")
|
24878
24996
|
);
|
24879
24997
|
};
|
24880
24998
|
|
24881
24999
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
24882
25000
|
init_define_process_env();
|
24883
|
-
import
|
25001
|
+
import React115, { useEffect as useEffect29, useState as useState49 } from "react";
|
24884
25002
|
import { useSwipeable } from "react-swipeable";
|
24885
25003
|
import { useMedia as useMedia17 } from "react-use";
|
24886
|
-
import { selectSessionStore as selectSessionStore7, useHMSStore as
|
25004
|
+
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24887
25005
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
24888
25006
|
|
24889
25007
|
// src/Prebuilt/components/Chat/ArrowNavigation.tsx
|
24890
25008
|
init_define_process_env();
|
24891
|
-
import
|
25009
|
+
import React113 from "react";
|
24892
25010
|
import { ChevronDownIcon as ChevronDownIcon7, ChevronUpIcon as ChevronUpIcon6 } from "@100mslive/react-icons";
|
24893
25011
|
var ArrowNavigation = ({
|
24894
25012
|
total,
|
@@ -24899,32 +25017,32 @@ var ArrowNavigation = ({
|
|
24899
25017
|
if (total < 2) {
|
24900
25018
|
return null;
|
24901
25019
|
}
|
24902
|
-
return /* @__PURE__ */
|
25020
|
+
return /* @__PURE__ */ React113.createElement(Flex, { direction: "column", css: { gap: "$1" } }, /* @__PURE__ */ React113.createElement(
|
24903
25021
|
Flex,
|
24904
25022
|
{
|
24905
25023
|
onClick: showPrevious,
|
24906
25024
|
css: index === 0 ? { cursor: "not-allowed", color: "$on_surface_low" } : { cursor: "pointer", color: "$on_surface_medium" }
|
24907
25025
|
},
|
24908
|
-
/* @__PURE__ */
|
24909
|
-
), /* @__PURE__ */
|
25026
|
+
/* @__PURE__ */ React113.createElement(ChevronUpIcon6, { height: 20, width: 20 })
|
25027
|
+
), /* @__PURE__ */ React113.createElement(
|
24910
25028
|
Flex,
|
24911
25029
|
{
|
24912
25030
|
onClick: showNext,
|
24913
25031
|
css: index === total - 1 ? { cursor: "not-allowed", color: "$on_surface_low" } : { cursor: "pointer", color: "$on_surface_medium" }
|
24914
25032
|
},
|
24915
|
-
/* @__PURE__ */
|
25033
|
+
/* @__PURE__ */ React113.createElement(ChevronDownIcon7, { height: 20, width: 20 })
|
24916
25034
|
));
|
24917
25035
|
};
|
24918
25036
|
|
24919
25037
|
// src/Prebuilt/components/Chat/StickIndicator.tsx
|
24920
25038
|
init_define_process_env();
|
24921
|
-
import
|
25039
|
+
import React114 from "react";
|
24922
25040
|
var StickIndicator = ({ total, index }) => {
|
24923
25041
|
const sticksCount = Math.min(3, total);
|
24924
25042
|
if (total < 2) {
|
24925
25043
|
return null;
|
24926
25044
|
}
|
24927
|
-
return /* @__PURE__ */
|
25045
|
+
return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React114.createElement(
|
24928
25046
|
Box,
|
24929
25047
|
{
|
24930
25048
|
css: {
|
@@ -24940,13 +25058,13 @@ var StickIndicator = ({ total, index }) => {
|
|
24940
25058
|
var PINNED_MESSAGE_LENGTH = 75;
|
24941
25059
|
var PinnedMessage = () => {
|
24942
25060
|
var _a8, _b7, _c;
|
24943
|
-
const pinnedMessages =
|
24944
|
-
const [pinnedMessageIndex, setPinnedMessageIndex] =
|
25061
|
+
const pinnedMessages = useHMSStore57(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
25062
|
+
const [pinnedMessageIndex, setPinnedMessageIndex] = useState49(0);
|
24945
25063
|
const { removePinnedMessage } = usePinnedMessages();
|
24946
25064
|
const isMobile = useMedia17(config.media.md);
|
24947
25065
|
const { elements } = useRoomLayoutConferencingScreen();
|
24948
25066
|
const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
|
24949
|
-
const [hideOverflow, setHideOverflow] =
|
25067
|
+
const [hideOverflow, setHideOverflow] = useState49(true);
|
24950
25068
|
const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
|
24951
25069
|
const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
|
24952
25070
|
const showPreviousPinnedMessage = () => {
|
@@ -24963,7 +25081,7 @@ var PinnedMessage = () => {
|
|
24963
25081
|
onSwipedUp: () => showNextPinnedMessage(),
|
24964
25082
|
onSwipedDown: () => showPreviousPinnedMessage()
|
24965
25083
|
});
|
24966
|
-
|
25084
|
+
useEffect29(() => {
|
24967
25085
|
const count = (pinnedMessages == null ? void 0 : pinnedMessages.length) || 1;
|
24968
25086
|
if (pinnedMessageIndex >= count) {
|
24969
25087
|
setPinnedMessageIndex(count - 1);
|
@@ -24972,7 +25090,7 @@ var PinnedMessage = () => {
|
|
24972
25090
|
if (!pinnedMessages || pinnedMessages.length === 0) {
|
24973
25091
|
return null;
|
24974
25092
|
}
|
24975
|
-
return /* @__PURE__ */
|
25093
|
+
return /* @__PURE__ */ React115.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4" } }, !isMobile ? /* @__PURE__ */ React115.createElement(
|
24976
25094
|
ArrowNavigation,
|
24977
25095
|
{
|
24978
25096
|
index: pinnedMessageIndex,
|
@@ -24980,7 +25098,7 @@ var PinnedMessage = () => {
|
|
24980
25098
|
showPrevious: showPreviousPinnedMessage,
|
24981
25099
|
showNext: showNextPinnedMessage
|
24982
25100
|
}
|
24983
|
-
) : null, /* @__PURE__ */
|
25101
|
+
) : null, /* @__PURE__ */ React115.createElement(
|
24984
25102
|
Flex,
|
24985
25103
|
{
|
24986
25104
|
css: {
|
@@ -24996,8 +25114,8 @@ var PinnedMessage = () => {
|
|
24996
25114
|
align: "center",
|
24997
25115
|
justify: "between"
|
24998
25116
|
},
|
24999
|
-
isMobile ? /* @__PURE__ */
|
25000
|
-
/* @__PURE__ */
|
25117
|
+
isMobile ? /* @__PURE__ */ React115.createElement(StickIndicator, { index: pinnedMessageIndex, total: pinnedMessages.length }) : null,
|
25118
|
+
/* @__PURE__ */ React115.createElement(
|
25001
25119
|
Box,
|
25002
25120
|
{
|
25003
25121
|
css: {
|
@@ -25011,7 +25129,7 @@ var PinnedMessage = () => {
|
|
25011
25129
|
}
|
25012
25130
|
}
|
25013
25131
|
},
|
25014
|
-
/* @__PURE__ */
|
25132
|
+
/* @__PURE__ */ React115.createElement(
|
25015
25133
|
Text,
|
25016
25134
|
__spreadProps(__spreadValues({
|
25017
25135
|
variant: "sm",
|
@@ -25019,17 +25137,17 @@ var PinnedMessage = () => {
|
|
25019
25137
|
}, swipeHandlers), {
|
25020
25138
|
title: (_c = pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _c.text
|
25021
25139
|
}),
|
25022
|
-
/* @__PURE__ */
|
25140
|
+
/* @__PURE__ */ React115.createElement(
|
25023
25141
|
AnnotisedMessage,
|
25024
25142
|
{
|
25025
25143
|
message: currentPinnedMessage,
|
25026
25144
|
length: hideOverflow ? PINNED_MESSAGE_LENGTH : currentPinnedMessage.length
|
25027
25145
|
}
|
25028
25146
|
),
|
25029
|
-
canOverflow ? /* @__PURE__ */
|
25147
|
+
canOverflow ? /* @__PURE__ */ React115.createElement("span", { style: { cursor: "pointer" }, onClick: () => setHideOverflow((prev) => !prev) }, "\xA0", hideOverflow ? "... See more" : "Collapse") : null
|
25030
25148
|
)
|
25031
25149
|
),
|
25032
|
-
canUnpinMessage ? /* @__PURE__ */
|
25150
|
+
canUnpinMessage ? /* @__PURE__ */ React115.createElement(
|
25033
25151
|
Flex,
|
25034
25152
|
{
|
25035
25153
|
onClick: () => {
|
@@ -25045,8 +25163,8 @@ var PinnedMessage = () => {
|
|
25045
25163
|
},
|
25046
25164
|
title: "Unpin Message"
|
25047
25165
|
},
|
25048
|
-
/* @__PURE__ */
|
25049
|
-
/* @__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 })
|
25050
25168
|
) : null
|
25051
25169
|
));
|
25052
25170
|
};
|
@@ -25058,8 +25176,10 @@ var Chat = () => {
|
|
25058
25176
|
const listRef = useRef21(null);
|
25059
25177
|
const hmsActions = useHMSActions38();
|
25060
25178
|
const vanillaStore = useHMSVanillaStore11();
|
25061
|
-
const { enabled: isChatEnabled = true } =
|
25179
|
+
const { enabled: isChatEnabled = true } = useHMSStore58(tm("chatState" /* CHAT_STATE */)) || {};
|
25062
25180
|
const isMobile = useMedia18(config.media.md);
|
25181
|
+
const isMobileHLSStream = useMobileHLSStream();
|
25182
|
+
const isLandscapeStream = useLandscapeHLSStream();
|
25063
25183
|
const scrollToBottom = useCallback29(
|
25064
25184
|
(unreadCount = 0) => {
|
25065
25185
|
var _a9;
|
@@ -25075,7 +25195,7 @@ var Chat = () => {
|
|
25075
25195
|
},
|
25076
25196
|
[hmsActions, vanillaStore]
|
25077
25197
|
);
|
25078
|
-
return /* @__PURE__ */
|
25198
|
+
return /* @__PURE__ */ React116.createElement(
|
25079
25199
|
Flex,
|
25080
25200
|
{
|
25081
25201
|
direction: "column",
|
@@ -25085,19 +25205,46 @@ var Chat = () => {
|
|
25085
25205
|
gap: "$4"
|
25086
25206
|
}
|
25087
25207
|
},
|
25088
|
-
isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) ? null : /* @__PURE__ */
|
25089
|
-
/* @__PURE__ */
|
25090
|
-
/* @__PURE__ */
|
25091
|
-
/* @__PURE__ */
|
25092
|
-
isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) ? /* @__PURE__ */
|
25093
|
-
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
|
+
)
|
25094
25241
|
);
|
25095
25242
|
};
|
25096
25243
|
var NewMessageIndicator = ({
|
25097
25244
|
scrollToBottom,
|
25098
25245
|
listRef
|
25099
25246
|
}) => {
|
25100
|
-
const unreadCount =
|
25247
|
+
const unreadCount = useHMSStore58($n);
|
25101
25248
|
if (!unreadCount || !listRef.current) {
|
25102
25249
|
return null;
|
25103
25250
|
}
|
@@ -25105,7 +25252,7 @@ var NewMessageIndicator = ({
|
|
25105
25252
|
if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
|
25106
25253
|
return null;
|
25107
25254
|
}
|
25108
|
-
return /* @__PURE__ */
|
25255
|
+
return /* @__PURE__ */ React116.createElement(
|
25109
25256
|
Flex,
|
25110
25257
|
{
|
25111
25258
|
justify: "center",
|
@@ -25116,7 +25263,7 @@ var NewMessageIndicator = ({
|
|
25116
25263
|
position: "absolute"
|
25117
25264
|
}
|
25118
25265
|
},
|
25119
|
-
/* @__PURE__ */
|
25266
|
+
/* @__PURE__ */ React116.createElement(
|
25120
25267
|
Button,
|
25121
25268
|
{
|
25122
25269
|
variant: "standard",
|
@@ -25136,18 +25283,18 @@ var NewMessageIndicator = ({
|
|
25136
25283
|
},
|
25137
25284
|
"New ",
|
25138
25285
|
unreadCount === 1 ? "message" : "messages",
|
25139
|
-
/* @__PURE__ */
|
25286
|
+
/* @__PURE__ */ React116.createElement(ChevronDownIcon8, { height: 16, width: 16 })
|
25140
25287
|
)
|
25141
25288
|
);
|
25142
25289
|
};
|
25143
25290
|
|
25144
25291
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
25145
25292
|
init_define_process_env();
|
25146
|
-
import
|
25293
|
+
import React117, { useEffect as useEffect30, useState as useState50 } from "react";
|
25147
25294
|
import { useInView } from "react-intersection-observer";
|
25148
25295
|
import { useMeasure as useMeasure2 } from "react-use";
|
25149
25296
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
25150
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as
|
25297
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore59, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
25151
25298
|
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
|
25152
25299
|
var LoadMoreParticipants = ({
|
25153
25300
|
hasNext,
|
@@ -25155,25 +25302,25 @@ var LoadMoreParticipants = ({
|
|
25155
25302
|
style
|
25156
25303
|
}) => {
|
25157
25304
|
const { ref, inView } = useInView();
|
25158
|
-
const [inProgress, setInProgress] =
|
25159
|
-
|
25305
|
+
const [inProgress, setInProgress] = useState50(false);
|
25306
|
+
useEffect30(() => {
|
25160
25307
|
if (hasNext && inView && !inProgress) {
|
25161
25308
|
setInProgress(true);
|
25162
25309
|
loadMore().catch(console.error).finally(() => setInProgress(false));
|
25163
25310
|
}
|
25164
25311
|
}, [hasNext, loadMore, inView, inProgress]);
|
25165
|
-
return /* @__PURE__ */
|
25312
|
+
return /* @__PURE__ */ React117.createElement(Flex, { ref, style, align: "center", justify: "center" }, inProgress ? /* @__PURE__ */ React117.createElement(Loading, { size: 16 }) : null);
|
25166
25313
|
};
|
25167
|
-
var VirtualizedParticipantItem2 =
|
25314
|
+
var VirtualizedParticipantItem2 = React117.memo(
|
25168
25315
|
({
|
25169
25316
|
index,
|
25170
25317
|
data: data3,
|
25171
25318
|
style
|
25172
25319
|
}) => {
|
25173
25320
|
if (!data3.peerList[index]) {
|
25174
|
-
return /* @__PURE__ */
|
25321
|
+
return /* @__PURE__ */ React117.createElement(LoadMoreParticipants, { hasNext: data3.hasNext, loadMore: data3.loadMorePeers, style });
|
25175
25322
|
}
|
25176
|
-
return /* @__PURE__ */
|
25323
|
+
return /* @__PURE__ */ React117.createElement(
|
25177
25324
|
Participant,
|
25178
25325
|
{
|
25179
25326
|
key: data3.peerList[index].id,
|
@@ -25186,19 +25333,19 @@ var VirtualizedParticipantItem2 = React116.memo(
|
|
25186
25333
|
);
|
25187
25334
|
var PaginatedParticipants = ({ roleName, onBack }) => {
|
25188
25335
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
|
25189
|
-
const [search, setSearch] =
|
25336
|
+
const [search, setSearch] = useState50("");
|
25190
25337
|
const filteredPeers = peers.filter((p) => {
|
25191
25338
|
var _a8;
|
25192
25339
|
return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
25193
25340
|
});
|
25194
|
-
const isConnected =
|
25341
|
+
const isConnected = useHMSStore59(selectIsConnectedToRoom8);
|
25195
25342
|
const [ref, { width }] = useMeasure2();
|
25196
25343
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
25197
25344
|
const resetSidePane = useSidepaneReset();
|
25198
|
-
|
25345
|
+
useEffect30(() => {
|
25199
25346
|
loadPeers();
|
25200
25347
|
}, []);
|
25201
|
-
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(
|
25202
25349
|
IconButton,
|
25203
25350
|
{
|
25204
25351
|
onClick: (e) => {
|
@@ -25207,8 +25354,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25207
25354
|
},
|
25208
25355
|
"data-testid": "close_sidepane"
|
25209
25356
|
},
|
25210
|
-
/* @__PURE__ */
|
25211
|
-
)), /* @__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(
|
25212
25359
|
VariableSizeList2,
|
25213
25360
|
{
|
25214
25361
|
itemSize: (index) => index === filteredPeers.length + 1 ? 16 : ROW_HEIGHT,
|
@@ -25224,28 +25371,28 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25224
25371
|
|
25225
25372
|
// src/Prebuilt/components/ChatSettings.tsx
|
25226
25373
|
init_define_process_env();
|
25227
|
-
import
|
25228
|
-
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";
|
25229
25376
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
25230
25377
|
var ChatSettings = () => {
|
25231
25378
|
var _a8, _b7;
|
25232
25379
|
const hmsActions = useHMSActions39();
|
25233
|
-
const localPeer =
|
25380
|
+
const localPeer = useHMSStore60(selectLocalPeer5);
|
25234
25381
|
const { elements } = useRoomLayoutConferencingScreen();
|
25235
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);
|
25236
|
-
const { enabled: isChatEnabled = true } =
|
25383
|
+
const { enabled: isChatEnabled = true } = useHMSStore60(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
25237
25384
|
const showPause = canPauseChat && isChatEnabled;
|
25238
25385
|
if (!showPause) {
|
25239
25386
|
return null;
|
25240
25387
|
}
|
25241
|
-
return /* @__PURE__ */
|
25388
|
+
return /* @__PURE__ */ React118.createElement(Popover2.Root, null, /* @__PURE__ */ React118.createElement(Popover2.Trigger, { asChild: true, css: { px: "$4" } }, /* @__PURE__ */ React118.createElement(
|
25242
25389
|
Flex,
|
25243
25390
|
{
|
25244
25391
|
align: "center",
|
25245
25392
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high" }, cursor: "pointer" }
|
25246
25393
|
},
|
25247
|
-
/* @__PURE__ */
|
25248
|
-
)), /* @__PURE__ */
|
25394
|
+
/* @__PURE__ */ React118.createElement(SettingsIcon5, null)
|
25395
|
+
)), /* @__PURE__ */ React118.createElement(Popover2.Portal, null, /* @__PURE__ */ React118.createElement(
|
25249
25396
|
Popover2.Content,
|
25250
25397
|
{
|
25251
25398
|
align: "end",
|
@@ -25274,8 +25421,8 @@ var ChatSettings = () => {
|
|
25274
25421
|
"&:hover": { backgroundColor: "$surface_dim" }
|
25275
25422
|
}
|
25276
25423
|
},
|
25277
|
-
/* @__PURE__ */
|
25278
|
-
/* @__PURE__ */
|
25424
|
+
/* @__PURE__ */ React118.createElement(PauseCircleIcon3, null),
|
25425
|
+
/* @__PURE__ */ React118.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
|
25279
25426
|
)));
|
25280
25427
|
};
|
25281
25428
|
|
@@ -25292,16 +25439,16 @@ var tabTriggerCSS = {
|
|
25292
25439
|
}
|
25293
25440
|
};
|
25294
25441
|
var ParticipantCount2 = ({ count }) => {
|
25295
|
-
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), ")"));
|
25296
25443
|
};
|
25297
|
-
var SidePaneTabs =
|
25444
|
+
var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControls, hideTab = false }) => {
|
25298
25445
|
var _a8, _b7;
|
25299
25446
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
25300
25447
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
25301
25448
|
const resetSidePane = useSidepaneReset();
|
25302
|
-
const [activeTab, setActiveTab] =
|
25303
|
-
const [activeRole, setActiveRole] =
|
25304
|
-
const peerCount =
|
25449
|
+
const [activeTab, setActiveTab] = useState51(active);
|
25450
|
+
const [activeRole, setActiveRole] = useState51("");
|
25451
|
+
const peerCount = useHMSStore61(selectPeerCount5);
|
25305
25452
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
25306
25453
|
const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
|
25307
25454
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
@@ -25312,8 +25459,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25312
25459
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
25313
25460
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
25314
25461
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
25315
|
-
|
25316
|
-
|
25462
|
+
useEffect31(() => {
|
25463
|
+
match7({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
25317
25464
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
25318
25465
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
25319
25466
|
setActiveTab(SIDE_PANE_OPTIONS.CHAT);
|
@@ -25321,11 +25468,11 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25321
25468
|
resetSidePane();
|
25322
25469
|
});
|
25323
25470
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
25324
|
-
|
25471
|
+
useEffect31(() => {
|
25325
25472
|
setActiveTab(active);
|
25326
25473
|
}, [active]);
|
25327
25474
|
if (activeRole) {
|
25328
|
-
return /* @__PURE__ */
|
25475
|
+
return /* @__PURE__ */ React119.createElement(
|
25329
25476
|
Flex,
|
25330
25477
|
{
|
25331
25478
|
direction: "column",
|
@@ -25337,10 +25484,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25337
25484
|
position: "relative"
|
25338
25485
|
}
|
25339
25486
|
},
|
25340
|
-
/* @__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("") }))
|
25341
25488
|
);
|
25342
25489
|
}
|
25343
|
-
return /* @__PURE__ */
|
25490
|
+
return /* @__PURE__ */ React119.createElement(
|
25344
25491
|
Flex,
|
25345
25492
|
{
|
25346
25493
|
direction: "column",
|
@@ -25351,8 +25498,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25351
25498
|
transition: "margin 0.3s ease-in-out"
|
25352
25499
|
}
|
25353
25500
|
},
|
25354
|
-
|
25355
|
-
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(
|
25356
25503
|
Text,
|
25357
25504
|
{
|
25358
25505
|
variant: "sm",
|
@@ -25364,8 +25511,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25364
25511
|
"&:empty": { display: "none" }
|
25365
25512
|
}
|
25366
25513
|
},
|
25367
|
-
activeTab === SIDE_PANE_OPTIONS.CHAT ? screenType !== "hls_live_streaming" && chat_title : /* @__PURE__ */
|
25368
|
-
), /* @__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(
|
25369
25516
|
IconButton,
|
25370
25517
|
{
|
25371
25518
|
css: {
|
@@ -25384,10 +25531,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25384
25531
|
},
|
25385
25532
|
"data-testid": "close_chat"
|
25386
25533
|
},
|
25387
|
-
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */
|
25388
|
-
))), 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 }));
|
25389
25536
|
}).otherwise(() => {
|
25390
|
-
return /* @__PURE__ */
|
25537
|
+
return /* @__PURE__ */ React119.createElement(
|
25391
25538
|
Tabs.Root,
|
25392
25539
|
{
|
25393
25540
|
value: activeTab,
|
@@ -25397,7 +25544,7 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25397
25544
|
size: "100%"
|
25398
25545
|
}
|
25399
25546
|
},
|
25400
|
-
/* @__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(
|
25401
25548
|
IconButton,
|
25402
25549
|
{
|
25403
25550
|
css: { my: "$1", color: "$on_surface_medium", "&:hover": { color: "$on_surface_high" } },
|
@@ -25411,10 +25558,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25411
25558
|
},
|
25412
25559
|
"data-testid": "close_chat"
|
25413
25560
|
},
|
25414
|
-
/* @__PURE__ */
|
25561
|
+
/* @__PURE__ */ React119.createElement(CrossIcon19, null)
|
25415
25562
|
)),
|
25416
|
-
/* @__PURE__ */
|
25417
|
-
/* @__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))
|
25418
25565
|
);
|
25419
25566
|
})
|
25420
25567
|
);
|
@@ -25422,7 +25569,7 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
25422
25569
|
|
25423
25570
|
// src/Prebuilt/components/VideoTile.tsx
|
25424
25571
|
init_define_process_env();
|
25425
|
-
import
|
25572
|
+
import React123, { useCallback as useCallback30, useMemo as useMemo10, useState as useState53 } from "react";
|
25426
25573
|
import { useMeasure as useMeasure3 } from "react-use";
|
25427
25574
|
import {
|
25428
25575
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
@@ -25433,14 +25580,14 @@ import {
|
|
25433
25580
|
selectPeerNameByID as selectPeerNameByID4,
|
25434
25581
|
selectVideoTrackByID as selectVideoTrackByID3,
|
25435
25582
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
25436
|
-
useHMSStore as
|
25583
|
+
useHMSStore as useHMSStore65
|
25437
25584
|
} from "@100mslive/react-sdk";
|
25438
25585
|
import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
|
25439
25586
|
|
25440
25587
|
// src/Prebuilt/components/Connection/TileConnection.tsx
|
25441
25588
|
init_define_process_env();
|
25442
|
-
import
|
25443
|
-
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";
|
25444
25591
|
import { PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
|
25445
25592
|
var TileConnection = ({
|
25446
25593
|
name,
|
@@ -25449,9 +25596,9 @@ var TileConnection = ({
|
|
25449
25596
|
width,
|
25450
25597
|
pinned
|
25451
25598
|
}) => {
|
25452
|
-
const spotlighted =
|
25453
|
-
const isPeerScreenSharing = !!
|
25454
|
-
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(
|
25455
25602
|
Text,
|
25456
25603
|
{
|
25457
25604
|
css: __spreadValues({
|
@@ -25461,7 +25608,7 @@ var TileConnection = ({
|
|
25461
25608
|
variant: "xs"
|
25462
25609
|
},
|
25463
25610
|
name
|
25464
|
-
)) : null, /* @__PURE__ */
|
25611
|
+
)) : null, /* @__PURE__ */ React120.createElement(ConnectionIndicator, { isTile: true, peerId, hideBg: true })) : null);
|
25465
25612
|
};
|
25466
25613
|
var IconWrapper = styled("div", { c: "$on_surface_high", ml: "$3", mt: "$1", display: "flex" });
|
25467
25614
|
var Wrapper2 = styled("div", {
|
@@ -25483,7 +25630,7 @@ var TileConnection_default = TileConnection;
|
|
25483
25630
|
|
25484
25631
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
25485
25632
|
init_define_process_env();
|
25486
|
-
import
|
25633
|
+
import React122, { useState as useState52 } from "react";
|
25487
25634
|
import { useMedia as useMedia21 } from "react-use";
|
25488
25635
|
import {
|
25489
25636
|
selectLocalPeerID as selectLocalPeerID11,
|
@@ -25491,14 +25638,14 @@ import {
|
|
25491
25638
|
selectPermissions as selectPermissions17,
|
25492
25639
|
selectTrackByID as selectTrackByID3,
|
25493
25640
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
25494
|
-
useHMSStore as
|
25641
|
+
useHMSStore as useHMSStore64,
|
25495
25642
|
useRemoteAVToggle as useRemoteAVToggle2
|
25496
25643
|
} from "@100mslive/react-sdk";
|
25497
25644
|
import { CrossIcon as CrossIcon20, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
25498
25645
|
|
25499
25646
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
25500
25647
|
init_define_process_env();
|
25501
|
-
import
|
25648
|
+
import React121, { Fragment as Fragment11 } from "react";
|
25502
25649
|
import { useMedia as useMedia20 } from "react-use";
|
25503
25650
|
import {
|
25504
25651
|
selectPermissions as selectPermissions16,
|
@@ -25506,7 +25653,7 @@ import {
|
|
25506
25653
|
selectTrackByID as selectTrackByID2,
|
25507
25654
|
useCustomEvent as useCustomEvent2,
|
25508
25655
|
useHMSActions as useHMSActions40,
|
25509
|
-
useHMSStore as
|
25656
|
+
useHMSStore as useHMSStore63,
|
25510
25657
|
useRemoteAVToggle
|
25511
25658
|
} from "@100mslive/react-sdk";
|
25512
25659
|
import {
|
@@ -25543,11 +25690,11 @@ var SpotlightActions = ({
|
|
25543
25690
|
}
|
25544
25691
|
}) => {
|
25545
25692
|
const hmsActions = useHMSActions40();
|
25546
|
-
const spotlightPeerId =
|
25693
|
+
const spotlightPeerId = useHMSStore63(selectSessionStore10("spotlight" /* SPOTLIGHT */));
|
25547
25694
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
25548
25695
|
const dragClassName = getDragClassName();
|
25549
25696
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
25550
|
-
return /* @__PURE__ */
|
25697
|
+
return /* @__PURE__ */ React121.createElement(
|
25551
25698
|
StyledMenuTile.ItemButton,
|
25552
25699
|
{
|
25553
25700
|
className: dragClassName,
|
@@ -25561,8 +25708,8 @@ var SpotlightActions = ({
|
|
25561
25708
|
onSpotLightClick();
|
25562
25709
|
}
|
25563
25710
|
},
|
25564
|
-
/* @__PURE__ */
|
25565
|
-
/* @__PURE__ */
|
25711
|
+
/* @__PURE__ */ React121.createElement(StarIcon2, { height: 20, width: 20 }),
|
25712
|
+
/* @__PURE__ */ React121.createElement("span", null, isTileSpotlighted ? "Remove from Spotlight" : "Spotlight Tile for everyone")
|
25566
25713
|
);
|
25567
25714
|
};
|
25568
25715
|
var PinActions = ({ audioTrackID, videoTrackID }) => {
|
@@ -25573,25 +25720,25 @@ var PinActions = ({ audioTrackID, videoTrackID }) => {
|
|
25573
25720
|
videoTrackID,
|
25574
25721
|
audioTrackID
|
25575
25722
|
});
|
25576
|
-
return /* @__PURE__ */
|
25723
|
+
return /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(
|
25577
25724
|
StyledMenuTile.ItemButton,
|
25578
25725
|
{
|
25579
25726
|
className: dragClassName,
|
25580
25727
|
css: spacingCSS,
|
25581
25728
|
onClick: () => isTilePinned ? setPinnedTrackId() : setPinnedTrackId(videoTrackID || audioTrackID)
|
25582
25729
|
},
|
25583
|
-
/* @__PURE__ */
|
25584
|
-
/* @__PURE__ */
|
25730
|
+
/* @__PURE__ */ React121.createElement(PinIcon4, { height: 20, width: 20 }),
|
25731
|
+
/* @__PURE__ */ React121.createElement("span", null, isTilePinned ? "Unpin" : "Pin", " Tile for myself")
|
25585
25732
|
));
|
25586
25733
|
};
|
25587
25734
|
var MinimiseInset = () => {
|
25588
25735
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
25589
25736
|
const dragClassName = getDragClassName();
|
25590
|
-
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")));
|
25591
25738
|
};
|
25592
25739
|
var SimulcastLayers = ({ trackId }) => {
|
25593
25740
|
var _a8;
|
25594
|
-
const track =
|
25741
|
+
const track = useHMSStore63(selectTrackByID2(trackId));
|
25595
25742
|
const actions = useHMSActions40();
|
25596
25743
|
const bg = useDropdownSelection();
|
25597
25744
|
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
@@ -25599,8 +25746,8 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25599
25746
|
}
|
25600
25747
|
const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
|
25601
25748
|
const dragClassName = getDragClassName();
|
25602
|
-
return /* @__PURE__ */
|
25603
|
-
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(
|
25604
25751
|
StyledMenuTile.ItemButton,
|
25605
25752
|
{
|
25606
25753
|
className: dragClassName,
|
@@ -25616,7 +25763,7 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25616
25763
|
}
|
25617
25764
|
}
|
25618
25765
|
},
|
25619
|
-
/* @__PURE__ */
|
25766
|
+
/* @__PURE__ */ React121.createElement(
|
25620
25767
|
Text,
|
25621
25768
|
{
|
25622
25769
|
as: "span",
|
@@ -25629,7 +25776,7 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25629
25776
|
},
|
25630
25777
|
layer.layer
|
25631
25778
|
),
|
25632
|
-
/* @__PURE__ */
|
25779
|
+
/* @__PURE__ */ React121.createElement(
|
25633
25780
|
Text,
|
25634
25781
|
{
|
25635
25782
|
as: "span",
|
@@ -25643,7 +25790,7 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25643
25790
|
layer.resolution.height
|
25644
25791
|
)
|
25645
25792
|
);
|
25646
|
-
}), /* @__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(
|
25647
25794
|
Text,
|
25648
25795
|
{
|
25649
25796
|
as: "span",
|
@@ -25655,7 +25802,7 @@ var SimulcastLayers = ({ trackId }) => {
|
|
25655
25802
|
ml: "$2"
|
25656
25803
|
}
|
25657
25804
|
},
|
25658
|
-
currentLayer ? /* @__PURE__ */
|
25805
|
+
currentLayer ? /* @__PURE__ */ React121.createElement(React121.Fragment, null, track.layer, " (", currentLayer.resolution.width, "x", currentLayer.resolution.height, ")") : "-"
|
25659
25806
|
))));
|
25660
25807
|
};
|
25661
25808
|
var TileMenuContent = ({
|
@@ -25677,7 +25824,7 @@ var TileMenuContent = ({
|
|
25677
25824
|
var _a8;
|
25678
25825
|
const actions = useHMSActions40();
|
25679
25826
|
const dragClassName = getDragClassName();
|
25680
|
-
const removeOthers = (_a8 =
|
25827
|
+
const removeOthers = (_a8 = useHMSStore63(selectPermissions16)) == null ? void 0 : _a8.removeOthers;
|
25681
25828
|
const { userName } = useHMSPrebuiltContext();
|
25682
25829
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
25683
25830
|
audioTrackID,
|
@@ -25688,7 +25835,7 @@ var TileMenuContent = ({
|
|
25688
25835
|
});
|
25689
25836
|
const isMobile = useMedia20(config.media.md);
|
25690
25837
|
if (isLocal) {
|
25691
|
-
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(
|
25692
25839
|
StyledMenuTile.ItemButton,
|
25693
25840
|
{
|
25694
25841
|
className: dragClassName,
|
@@ -25697,11 +25844,11 @@ var TileMenuContent = ({
|
|
25697
25844
|
closeSheetOnClick();
|
25698
25845
|
}
|
25699
25846
|
},
|
25700
|
-
/* @__PURE__ */
|
25701
|
-
/* @__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")
|
25702
25849
|
)) : null;
|
25703
25850
|
}
|
25704
|
-
return /* @__PURE__ */
|
25851
|
+
return /* @__PURE__ */ React121.createElement(React121.Fragment, null, toggleVideo ? /* @__PURE__ */ React121.createElement(
|
25705
25852
|
StyledMenuTile.ItemButton,
|
25706
25853
|
{
|
25707
25854
|
className: dragClassName,
|
@@ -25712,9 +25859,9 @@ var TileMenuContent = ({
|
|
25712
25859
|
},
|
25713
25860
|
"data-testid": isVideoEnabled ? "mute_video_participant_btn" : "unmute_video_participant_btn"
|
25714
25861
|
},
|
25715
|
-
isVideoEnabled ? /* @__PURE__ */
|
25716
|
-
/* @__PURE__ */
|
25717
|
-
) : 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(
|
25718
25865
|
StyledMenuTile.ItemButton,
|
25719
25866
|
{
|
25720
25867
|
css: spacingCSS,
|
@@ -25725,9 +25872,9 @@ var TileMenuContent = ({
|
|
25725
25872
|
},
|
25726
25873
|
"data-testid": isAudioEnabled ? "mute_audio_participant_btn" : "unmute_audio_participant_btn"
|
25727
25874
|
},
|
25728
|
-
isAudioEnabled ? /* @__PURE__ */
|
25729
|
-
/* @__PURE__ */
|
25730
|
-
) : 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(
|
25731
25878
|
Slider,
|
25732
25879
|
{
|
25733
25880
|
css: { my: "0.5rem" },
|
@@ -25735,7 +25882,7 @@ var TileMenuContent = ({
|
|
25735
25882
|
value: [typeof volume === "number" ? volume : 100],
|
25736
25883
|
onValueChange: (e) => setVolume == null ? void 0 : setVolume(e[0])
|
25737
25884
|
}
|
25738
|
-
)) : 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(
|
25739
25886
|
StyledMenuTile.RemoveItem,
|
25740
25887
|
{
|
25741
25888
|
css: __spreadProps(__spreadValues({}, spacingCSS), { borderTop: "none" }),
|
@@ -25748,9 +25895,9 @@ var TileMenuContent = ({
|
|
25748
25895
|
}),
|
25749
25896
|
"data-testid": "remove_participant_btn"
|
25750
25897
|
},
|
25751
|
-
/* @__PURE__ */
|
25752
|
-
/* @__PURE__ */
|
25753
|
-
) : 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(
|
25754
25901
|
StyledMenuTile.RemoveItem,
|
25755
25902
|
{
|
25756
25903
|
onClick: () => {
|
@@ -25759,8 +25906,8 @@ var TileMenuContent = ({
|
|
25759
25906
|
},
|
25760
25907
|
css: spacingCSS
|
25761
25908
|
},
|
25762
|
-
/* @__PURE__ */
|
25763
|
-
/* @__PURE__ */
|
25909
|
+
/* @__PURE__ */ React121.createElement(ShareScreenIcon4, { height: 20, width: 20 }),
|
25910
|
+
/* @__PURE__ */ React121.createElement("span", null, "Stop Screenshare")
|
25764
25911
|
) : null);
|
25765
25912
|
};
|
25766
25913
|
|
@@ -25774,20 +25921,20 @@ var TileMenu = ({
|
|
25774
25921
|
enableSpotlightingPeer = true
|
25775
25922
|
}) => {
|
25776
25923
|
var _a8, _b7;
|
25777
|
-
const [open, setOpen] =
|
25924
|
+
const [open, setOpen] = useState52(false);
|
25778
25925
|
const { theme: theme2 } = useTheme();
|
25779
|
-
const localPeerID =
|
25926
|
+
const localPeerID = useHMSStore64(selectLocalPeerID11);
|
25780
25927
|
const isLocal = localPeerID === peerID;
|
25781
|
-
const { removeOthers } =
|
25928
|
+
const { removeOthers } = useHMSStore64(selectPermissions17) || {};
|
25782
25929
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
25783
25930
|
const showSpotlight = enableSpotlightingPeer;
|
25784
|
-
const isPrimaryVideoTrack = ((_a8 =
|
25931
|
+
const isPrimaryVideoTrack = ((_a8 = useHMSStore64(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
25785
25932
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
25786
|
-
const track =
|
25933
|
+
const track = useHMSStore64(selectTrackByID3(videoTrackID));
|
25787
25934
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
25788
25935
|
const isMobile = useMedia21(config.media.md);
|
25789
|
-
const peer =
|
25790
|
-
const [showNameChangeModal, setShowNameChangeModal] =
|
25936
|
+
const peer = useHMSStore64(selectPeerByID2(peerID));
|
25937
|
+
const [showNameChangeModal, setShowNameChangeModal] = useState52(false);
|
25791
25938
|
useDropdownList({ open, name: "TileMenu" });
|
25792
25939
|
const dragClassName = getDragClassName();
|
25793
25940
|
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
@@ -25806,7 +25953,7 @@ var TileMenu = ({
|
|
25806
25953
|
canMinimise,
|
25807
25954
|
openNameChangeModal
|
25808
25955
|
};
|
25809
|
-
return /* @__PURE__ */
|
25956
|
+
return /* @__PURE__ */ React122.createElement(React122.Fragment, null, /* @__PURE__ */ React122.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React122.createElement(
|
25810
25957
|
StyledMenuTile.Trigger,
|
25811
25958
|
{
|
25812
25959
|
"data-testid": "participant_menu_btn",
|
@@ -25814,8 +25961,8 @@ var TileMenu = ({
|
|
25814
25961
|
onClick: (e) => e.stopPropagation(),
|
25815
25962
|
className: dragClassName
|
25816
25963
|
},
|
25817
|
-
/* @__PURE__ */
|
25818
|
-
), 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(
|
25819
25966
|
Flex,
|
25820
25967
|
{
|
25821
25968
|
css: {
|
@@ -25829,9 +25976,9 @@ var TileMenu = ({
|
|
25829
25976
|
borderBottom: "1px solid $border_default"
|
25830
25977
|
}
|
25831
25978
|
},
|
25832
|
-
/* @__PURE__ */
|
25833
|
-
/* @__PURE__ */
|
25834
|
-
), /* @__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 }));
|
25835
25982
|
};
|
25836
25983
|
var TileMenu_default = TileMenu;
|
25837
25984
|
|
@@ -25863,10 +26010,10 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
|
25863
26010
|
|
25864
26011
|
// src/Prebuilt/components/VideoTile.tsx
|
25865
26012
|
var PeerMetadata = ({ peerId, size }) => {
|
25866
|
-
const metaData =
|
26013
|
+
const metaData = useHMSStore65(selectPeerMetadata4(peerId));
|
25867
26014
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
25868
|
-
const isHandRaised =
|
25869
|
-
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);
|
25870
26017
|
};
|
25871
26018
|
var Tile = ({
|
25872
26019
|
peerId = "",
|
@@ -25885,16 +26032,16 @@ var Tile = ({
|
|
25885
26032
|
hideMetadataOnTile = false
|
25886
26033
|
}) => {
|
25887
26034
|
const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
|
25888
|
-
const track =
|
25889
|
-
const peerName =
|
25890
|
-
const audioTrack =
|
25891
|
-
const localPeerID =
|
26035
|
+
const track = useHMSStore65(trackSelector);
|
26036
|
+
const peerName = useHMSStore65(selectPeerNameByID4(peerId));
|
26037
|
+
const audioTrack = useHMSStore65(selectAudioTrackByPeerID2(peerId));
|
26038
|
+
const localPeerID = useHMSStore65(selectLocalPeerID12);
|
25892
26039
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
25893
26040
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
25894
26041
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
25895
|
-
const isAudioMuted = !
|
26042
|
+
const isAudioMuted = !useHMSStore65(selectIsPeerAudioEnabled2(peerId));
|
25896
26043
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
25897
|
-
const [isMouseHovered, setIsMouseHovered] =
|
26044
|
+
const [isMouseHovered, setIsMouseHovered] = useState53(false);
|
25898
26045
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
25899
26046
|
const isLocal = localPeerID === peerId;
|
25900
26047
|
const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
|
@@ -25917,7 +26064,7 @@ var Tile = ({
|
|
25917
26064
|
() => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
|
25918
26065
|
[calculatedWidth, calculatedHeight]
|
25919
26066
|
);
|
25920
|
-
return /* @__PURE__ */
|
26067
|
+
return /* @__PURE__ */ React123.createElement(
|
25921
26068
|
StyledVideoTile.Root,
|
25922
26069
|
{
|
25923
26070
|
ref,
|
@@ -25927,7 +26074,7 @@ var Tile = ({
|
|
25927
26074
|
}, rootCSS),
|
25928
26075
|
"data-testid": `participant_tile_${peerName}`
|
25929
26076
|
},
|
25930
|
-
peerName !== void 0 ? /* @__PURE__ */
|
26077
|
+
peerName !== void 0 ? /* @__PURE__ */ React123.createElement(
|
25931
26078
|
StyledVideoTile.Container,
|
25932
26079
|
{
|
25933
26080
|
onMouseEnter: onHoverHandler,
|
@@ -25935,8 +26082,8 @@ var Tile = ({
|
|
25935
26082
|
noRadius: !roundedVideoTile,
|
25936
26083
|
css: containerCSS
|
25937
26084
|
},
|
25938
|
-
showStatsOnTiles && isTileBigEnoughToShowStats ? /* @__PURE__ */
|
25939
|
-
/* @__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(
|
25940
26087
|
Video,
|
25941
26088
|
{
|
25942
26089
|
trackId: track == null ? void 0 : track.id,
|
@@ -25951,8 +26098,8 @@ var Tile = ({
|
|
25951
26098
|
}
|
25952
26099
|
}
|
25953
26100
|
),
|
25954
|
-
calculatedWidth > 0 && calculatedHeight > 0 ? /* @__PURE__ */
|
25955
|
-
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(
|
25956
26103
|
TileMenu_default,
|
25957
26104
|
{
|
25958
26105
|
peerID: peerId,
|
@@ -25962,7 +26109,7 @@ var Tile = ({
|
|
25962
26109
|
enableSpotlightingPeer
|
25963
26110
|
}
|
25964
26111
|
) : null,
|
25965
|
-
/* @__PURE__ */
|
26112
|
+
/* @__PURE__ */ React123.createElement(
|
25966
26113
|
TileConnection_default,
|
25967
26114
|
{
|
25968
26115
|
hideLabel: hideParticipantNameOnTile,
|
@@ -25975,12 +26122,12 @@ var Tile = ({
|
|
25975
26122
|
) : null
|
25976
26123
|
);
|
25977
26124
|
};
|
25978
|
-
var VideoTile =
|
26125
|
+
var VideoTile = React123.memo(Tile);
|
25979
26126
|
var VideoTile_default = VideoTile;
|
25980
26127
|
|
25981
26128
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
25982
26129
|
init_define_process_env();
|
25983
|
-
import
|
26130
|
+
import React126, { useEffect as useEffect32, useState as useState54 } from "react";
|
25984
26131
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
25985
26132
|
import {
|
25986
26133
|
HMSRoomState as HMSRoomState4,
|
@@ -25991,25 +26138,25 @@ import {
|
|
25991
26138
|
selectRoomState as selectRoomState4,
|
25992
26139
|
selectVideoTrackByID as selectVideoTrackByID4,
|
25993
26140
|
useHMSActions as useHMSActions41,
|
25994
|
-
useHMSStore as
|
26141
|
+
useHMSStore as useHMSStore66
|
25995
26142
|
} from "@100mslive/react-sdk";
|
25996
26143
|
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
|
25997
26144
|
|
25998
26145
|
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
25999
26146
|
init_define_process_env();
|
26000
|
-
import
|
26147
|
+
import React125 from "react";
|
26001
26148
|
import { HMSVirtualBackgroundTypes } from "@100mslive/hms-virtual-background";
|
26002
26149
|
|
26003
26150
|
// src/Prebuilt/components/VirtualBackground/VBOption.tsx
|
26004
26151
|
init_define_process_env();
|
26005
|
-
import
|
26152
|
+
import React124 from "react";
|
26006
26153
|
var Root25 = ({
|
26007
26154
|
onClick,
|
26008
26155
|
mediaURL,
|
26009
26156
|
isActive,
|
26010
26157
|
children,
|
26011
26158
|
testid = ""
|
26012
|
-
}) => /* @__PURE__ */
|
26159
|
+
}) => /* @__PURE__ */ React124.createElement(
|
26013
26160
|
Flex,
|
26014
26161
|
{
|
26015
26162
|
"data-testid": testid,
|
@@ -26030,10 +26177,10 @@ var Root25 = ({
|
|
26030
26177
|
children
|
26031
26178
|
);
|
26032
26179
|
var Title4 = ({ children }) => {
|
26033
|
-
return children ? /* @__PURE__ */
|
26180
|
+
return children ? /* @__PURE__ */ React124.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, children) : null;
|
26034
26181
|
};
|
26035
26182
|
var Icon3 = ({ children }) => {
|
26036
|
-
return children ? /* @__PURE__ */
|
26183
|
+
return children ? /* @__PURE__ */ React124.createElement(Box, { css: { color: "$on_surface_high" } }, children) : null;
|
26037
26184
|
};
|
26038
26185
|
var VBOption = {
|
26039
26186
|
Root: Root25,
|
@@ -26050,7 +26197,7 @@ var VBCollection = ({
|
|
26050
26197
|
if (options.length === 0) {
|
26051
26198
|
return null;
|
26052
26199
|
}
|
26053
|
-
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(
|
26054
26201
|
VBOption.Root,
|
26055
26202
|
__spreadProps(__spreadValues({
|
26056
26203
|
key: option.value,
|
@@ -26058,8 +26205,8 @@ var VBCollection = ({
|
|
26058
26205
|
}, option), {
|
26059
26206
|
isActive: activeBackground === option.value
|
26060
26207
|
}),
|
26061
|
-
/* @__PURE__ */
|
26062
|
-
/* @__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)
|
26063
26210
|
))));
|
26064
26211
|
};
|
26065
26212
|
|
@@ -26178,23 +26325,23 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26178
26325
|
var _a8;
|
26179
26326
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26180
26327
|
const hmsActions = useHMSActions41();
|
26181
|
-
const localPeer =
|
26182
|
-
const role =
|
26183
|
-
const isVideoOn =
|
26328
|
+
const localPeer = useHMSStore66(selectLocalPeer6);
|
26329
|
+
const role = useHMSStore66(Wt);
|
26330
|
+
const isVideoOn = useHMSStore66(selectIsLocalVideoEnabled5);
|
26184
26331
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26185
26332
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
26186
|
-
const track =
|
26187
|
-
const [blurAmount, setBlurAmount] =
|
26188
|
-
const roomState =
|
26189
|
-
const isLargeRoom =
|
26190
|
-
const isEffectsEnabled =
|
26191
|
-
const effectsKey =
|
26192
|
-
const isPluginAdded =
|
26193
|
-
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));
|
26194
26341
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26195
26342
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26196
26343
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
26197
|
-
|
26344
|
+
useEffect32(() => {
|
26198
26345
|
if (!(track == null ? void 0 : track.id)) {
|
26199
26346
|
return;
|
26200
26347
|
}
|
@@ -26228,19 +26375,19 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26228
26375
|
handleDefaultBackground();
|
26229
26376
|
}
|
26230
26377
|
}, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey, track == null ? void 0 : track.id, background, blurAmount]);
|
26231
|
-
|
26378
|
+
useEffect32(() => {
|
26232
26379
|
if (!isVideoOn) {
|
26233
26380
|
toggleVB();
|
26234
26381
|
}
|
26235
26382
|
}, [isVideoOn, toggleVB]);
|
26236
|
-
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(
|
26237
26384
|
Box,
|
26238
26385
|
{
|
26239
26386
|
css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
|
26240
26387
|
onClick: toggleVB
|
26241
26388
|
},
|
26242
|
-
/* @__PURE__ */
|
26243
|
-
)), showVideoTile ? /* @__PURE__ */
|
26389
|
+
/* @__PURE__ */ React126.createElement(CrossIcon21, null)
|
26390
|
+
)), showVideoTile ? /* @__PURE__ */ React126.createElement(
|
26244
26391
|
Video,
|
26245
26392
|
{
|
26246
26393
|
mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo,
|
@@ -26248,7 +26395,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26248
26395
|
"data-testid": "preview_tile",
|
26249
26396
|
css: { width: "100%", height: "16rem" }
|
26250
26397
|
}
|
26251
|
-
) : null, /* @__PURE__ */
|
26398
|
+
) : null, /* @__PURE__ */ React126.createElement(
|
26252
26399
|
Box,
|
26253
26400
|
{
|
26254
26401
|
css: {
|
@@ -26259,14 +26406,14 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26259
26406
|
pr: "$10"
|
26260
26407
|
}
|
26261
26408
|
},
|
26262
|
-
/* @__PURE__ */
|
26409
|
+
/* @__PURE__ */ React126.createElement(
|
26263
26410
|
VBCollection,
|
26264
26411
|
{
|
26265
26412
|
title: "Effects",
|
26266
26413
|
options: [
|
26267
26414
|
{
|
26268
26415
|
title: "No effect",
|
26269
|
-
icon: /* @__PURE__ */
|
26416
|
+
icon: /* @__PURE__ */ React126.createElement(CrossCircleIcon3, { style: iconDims }),
|
26270
26417
|
value: HMSVirtualBackgroundTypes3.NONE,
|
26271
26418
|
onClick: () => __async(void 0, null, function* () {
|
26272
26419
|
yield VBHandler.removeEffects();
|
@@ -26275,7 +26422,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26275
26422
|
},
|
26276
26423
|
{
|
26277
26424
|
title: "Blur",
|
26278
|
-
icon: /* @__PURE__ */
|
26425
|
+
icon: /* @__PURE__ */ React126.createElement(BlurPersonHighIcon, { style: iconDims }),
|
26279
26426
|
value: HMSVirtualBackgroundTypes3.BLUR,
|
26280
26427
|
onClick: () => __async(void 0, null, function* () {
|
26281
26428
|
var _a9;
|
@@ -26287,7 +26434,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26287
26434
|
activeBackground: background
|
26288
26435
|
}
|
26289
26436
|
),
|
26290
|
-
/* @__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(
|
26291
26438
|
Slider,
|
26292
26439
|
{
|
26293
26440
|
showTooltip: false,
|
@@ -26300,8 +26447,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26300
26447
|
min: 0.1,
|
26301
26448
|
max: 1
|
26302
26449
|
}
|
26303
|
-
), /* @__PURE__ */
|
26304
|
-
/* @__PURE__ */
|
26450
|
+
), /* @__PURE__ */ React126.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "High"))) : null),
|
26451
|
+
/* @__PURE__ */ React126.createElement(
|
26305
26452
|
VBCollection,
|
26306
26453
|
{
|
26307
26454
|
title: "Backgrounds",
|
@@ -26358,8 +26505,7 @@ var Wrapper3 = styled("div", {
|
|
26358
26505
|
mobileStream: {
|
26359
26506
|
true: {
|
26360
26507
|
"@md": {
|
26361
|
-
position: "unset
|
26362
|
-
background: "red"
|
26508
|
+
position: "unset"
|
26363
26509
|
}
|
26364
26510
|
}
|
26365
26511
|
},
|
@@ -26401,9 +26547,9 @@ var SidePane = ({
|
|
26401
26547
|
}) => {
|
26402
26548
|
var _a8, _b7, _c, _d, _e, _f;
|
26403
26549
|
const isMobile = useMedia22(config.media.md);
|
26404
|
-
const sidepane =
|
26405
|
-
const activeScreensharePeerId =
|
26406
|
-
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;
|
26407
26553
|
const { elements } = useRoomLayoutConferencingScreen();
|
26408
26554
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
26409
26555
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
@@ -26411,7 +26557,7 @@ var SidePane = ({
|
|
26411
26557
|
const isMobileHLSStream = useMobileHLSStream();
|
26412
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) || [];
|
26413
26559
|
const resetSidePane = useSidepaneReset();
|
26414
|
-
|
26560
|
+
useEffect33(() => {
|
26415
26561
|
return () => {
|
26416
26562
|
resetSidePane();
|
26417
26563
|
};
|
@@ -26428,7 +26574,7 @@ var SidePane = ({
|
|
26428
26574
|
landscapeStream: isLandscapeHLSStream,
|
26429
26575
|
mobileStream: isMobileHLSStream
|
26430
26576
|
};
|
26431
|
-
return /* @__PURE__ */
|
26577
|
+
return /* @__PURE__ */ React127.createElement(
|
26432
26578
|
Flex,
|
26433
26579
|
{
|
26434
26580
|
direction: "column",
|
@@ -26445,7 +26591,7 @@ var SidePane = ({
|
|
26445
26591
|
}
|
26446
26592
|
}
|
26447
26593
|
},
|
26448
|
-
trackId && layoutMode === LayoutMode.GALLERY && /* @__PURE__ */
|
26594
|
+
trackId && layoutMode === LayoutMode.GALLERY && /* @__PURE__ */ React127.createElement(
|
26449
26595
|
VideoTile_default,
|
26450
26596
|
__spreadValues({
|
26451
26597
|
peerId: activeScreensharePeerId,
|
@@ -26455,7 +26601,7 @@ var SidePane = ({
|
|
26455
26601
|
rootCSS: { p: 0, alignSelf: "start", flexShrink: 0 }
|
26456
26602
|
}, tileLayout)
|
26457
26603
|
),
|
26458
|
-
|
26604
|
+
match8(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React127.createElement(
|
26459
26605
|
Wrapper3,
|
26460
26606
|
__spreadValues({
|
26461
26607
|
css: {
|
@@ -26465,15 +26611,15 @@ var SidePane = ({
|
|
26465
26611
|
}
|
26466
26612
|
}
|
26467
26613
|
}, commonProps),
|
26468
|
-
/* @__PURE__ */
|
26469
|
-
)).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(
|
26470
26616
|
SidePaneTabs,
|
26471
26617
|
{
|
26472
26618
|
hideControls,
|
26473
26619
|
active: sidepane,
|
26474
26620
|
hideTab: isMobileHLSStream || isLandscapeHLSStream
|
26475
26621
|
}
|
26476
|
-
))).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(() => {
|
26477
26623
|
return null;
|
26478
26624
|
})
|
26479
26625
|
);
|
@@ -26482,9 +26628,9 @@ var SidePane_default = SidePane;
|
|
26482
26628
|
|
26483
26629
|
// src/Prebuilt/components/Chip.tsx
|
26484
26630
|
init_define_process_env();
|
26485
|
-
import
|
26631
|
+
import React128 from "react";
|
26486
26632
|
var Chip = ({
|
26487
|
-
icon = /* @__PURE__ */
|
26633
|
+
icon = /* @__PURE__ */ React128.createElement(React128.Fragment, null),
|
26488
26634
|
content = "",
|
26489
26635
|
backgroundColor = "$surface_default",
|
26490
26636
|
textColor = "$on_surface_high",
|
@@ -26495,7 +26641,7 @@ var Chip = ({
|
|
26495
26641
|
if (hideIfNoContent && !content) {
|
26496
26642
|
return null;
|
26497
26643
|
}
|
26498
|
-
return /* @__PURE__ */
|
26644
|
+
return /* @__PURE__ */ React128.createElement(
|
26499
26645
|
Flex,
|
26500
26646
|
{
|
26501
26647
|
align: "center",
|
@@ -26503,67 +26649,17 @@ var Chip = ({
|
|
26503
26649
|
onClick: () => onClick == null ? void 0 : onClick()
|
26504
26650
|
},
|
26505
26651
|
icon,
|
26506
|
-
/* @__PURE__ */
|
26652
|
+
/* @__PURE__ */ React128.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: textColor } }, content)
|
26507
26653
|
);
|
26508
26654
|
};
|
26509
26655
|
var Chip_default = Chip;
|
26510
26656
|
|
26511
26657
|
// src/Prebuilt/components/FullPageProgress.jsx
|
26512
26658
|
init_define_process_env();
|
26513
|
-
import
|
26514
|
-
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);
|
26515
26661
|
var FullPageProgress_default = FullPageProgress;
|
26516
26662
|
|
26517
|
-
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
26518
|
-
init_define_process_env();
|
26519
|
-
import React129, { useEffect as useEffect33, useState as useState54 } from "react";
|
26520
|
-
import { selectDominantSpeaker, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
|
26521
|
-
import { VolumeOneIcon } from "@100mslive/react-icons";
|
26522
|
-
var SpeakerTag = () => {
|
26523
|
-
const dominantSpeaker = useHMSStore67(selectDominantSpeaker);
|
26524
|
-
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React129.createElement(
|
26525
|
-
Flex,
|
26526
|
-
{
|
26527
|
-
align: "center",
|
26528
|
-
justify: "center",
|
26529
|
-
css: { flex: "1 1 0", color: "$on_surface_high", "@md": { display: "none" } }
|
26530
|
-
},
|
26531
|
-
/* @__PURE__ */ React129.createElement(VerticalDivider, { css: { ml: "$8" } }),
|
26532
|
-
/* @__PURE__ */ React129.createElement(VolumeOneIcon, null),
|
26533
|
-
/* @__PURE__ */ React129.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(200)), { ml: "$2" }), title: dominantSpeaker.name }, dominantSpeaker.name)
|
26534
|
-
);
|
26535
|
-
};
|
26536
|
-
var LogoImg = styled("img", {
|
26537
|
-
maxHeight: "$14",
|
26538
|
-
w: "auto",
|
26539
|
-
objectFit: "contain",
|
26540
|
-
"@md": {
|
26541
|
-
maxHeight: "$12"
|
26542
|
-
}
|
26543
|
-
});
|
26544
|
-
var Logo = () => {
|
26545
|
-
var _a8;
|
26546
|
-
const roomLayout = useRoomLayout();
|
26547
|
-
const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
|
26548
|
-
const [hideImage, setHideImage] = useState54(false);
|
26549
|
-
useEffect33(() => {
|
26550
|
-
if (hideImage) {
|
26551
|
-
setHideImage(false);
|
26552
|
-
}
|
26553
|
-
}, [logo]);
|
26554
|
-
return logo && !hideImage ? /* @__PURE__ */ React129.createElement(
|
26555
|
-
LogoImg,
|
26556
|
-
{
|
26557
|
-
src: logo,
|
26558
|
-
alt: "Brand Logo",
|
26559
|
-
onError: (e) => {
|
26560
|
-
e.target.onerror = null;
|
26561
|
-
setHideImage(true);
|
26562
|
-
}
|
26563
|
-
}
|
26564
|
-
) : null;
|
26565
|
-
};
|
26566
|
-
|
26567
26663
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
26568
26664
|
init_define_process_env();
|
26569
26665
|
import React130 from "react";
|
@@ -26815,7 +26911,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
|
26815
26911
|
};
|
26816
26912
|
var PreviewSettings = React131.memo(() => {
|
26817
26913
|
const [open, setOpen] = useState55(false);
|
26818
|
-
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 }));
|
26819
26915
|
});
|
26820
26916
|
var PreviewJoin_default = PreviewJoin;
|
26821
26917
|
|
@@ -28285,7 +28381,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28285
28381
|
};
|
28286
28382
|
|
28287
28383
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28288
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28384
|
+
var HLSView = React151.lazy(() => import("./HLSView-6KPQ2KD6.js"));
|
28289
28385
|
var VideoStreamingSection = ({
|
28290
28386
|
screenType,
|
28291
28387
|
elements,
|
@@ -28301,6 +28397,7 @@ var VideoStreamingSection = ({
|
|
28301
28397
|
const urlToIframe = useUrlToEmbed();
|
28302
28398
|
const pdfAnnotatorActive = usePDFConfig();
|
28303
28399
|
const isMobileHLSStream = useMobileHLSStream();
|
28400
|
+
const isLandscapeHLSStream = useLandscapeHLSStream();
|
28304
28401
|
useCloseScreenshareWhiteboard();
|
28305
28402
|
useEffect48(() => {
|
28306
28403
|
if (!isConnected) {
|
@@ -28339,7 +28436,7 @@ var VideoStreamingSection = ({
|
|
28339
28436
|
css: {
|
28340
28437
|
size: "100%",
|
28341
28438
|
position: "relative",
|
28342
|
-
gap: "$4"
|
28439
|
+
gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
|
28343
28440
|
},
|
28344
28441
|
direction: isMobileHLSStream ? "column" : "row"
|
28345
28442
|
},
|
@@ -29246,6 +29343,7 @@ import {
|
|
29246
29343
|
HMSNotificationTypes as HMSNotificationTypes2,
|
29247
29344
|
HMSRoomState as HMSRoomState9,
|
29248
29345
|
selectHasPeerHandRaised as selectHasPeerHandRaised4,
|
29346
|
+
selectPeerByID as selectPeerByID6,
|
29249
29347
|
selectRoomState as selectRoomState9,
|
29250
29348
|
useHMSNotifications as useHMSNotifications2,
|
29251
29349
|
useHMSStore as useHMSStore87,
|
@@ -29514,6 +29612,7 @@ var HandRaisedNotifications = () => {
|
|
29514
29612
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
29515
29613
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
29516
29614
|
useEffect57(() => {
|
29615
|
+
var _a8;
|
29517
29616
|
if (!(notification == null ? void 0 : notification.data)) {
|
29518
29617
|
return;
|
29519
29618
|
}
|
@@ -29521,8 +29620,10 @@ var HandRaisedNotifications = () => {
|
|
29521
29620
|
return;
|
29522
29621
|
}
|
29523
29622
|
const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised4(notification.data.id));
|
29623
|
+
const peer = vanillaStore.getState(selectPeerByID6(notification.data.id));
|
29524
29624
|
if (hasPeerHandRaised) {
|
29525
|
-
|
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" });
|
29526
29627
|
console.debug("Metadata updated", notification.data);
|
29527
29628
|
}
|
29528
29629
|
}, [isSubscribing, notification, on_stage_exp, roomState, vanillaStore]);
|
@@ -30603,8 +30704,9 @@ export {
|
|
30603
30704
|
QRCode,
|
30604
30705
|
Link,
|
30605
30706
|
Collapsible,
|
30606
|
-
getFormattedCount,
|
30607
30707
|
useRoomLayoutConferencingScreen,
|
30708
|
+
useRoomLayoutHeader,
|
30709
|
+
useIsSidepaneTypeOpen,
|
30608
30710
|
useSidepaneToggle,
|
30609
30711
|
usePollViewToggle,
|
30610
30712
|
IconButton_default,
|
@@ -30616,6 +30718,7 @@ export {
|
|
30616
30718
|
DialogRow,
|
30617
30719
|
ChatToggle,
|
30618
30720
|
Logo,
|
30721
|
+
RoomDetailsRow,
|
30619
30722
|
HMSPrebuilt,
|
30620
30723
|
Progress,
|
30621
30724
|
TextArea
|
@@ -30632,4 +30735,4 @@ lodash/lodash.js:
|
|
30632
30735
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
30633
30736
|
*)
|
30634
30737
|
*/
|
30635
|
-
//# sourceMappingURL=chunk-
|
30738
|
+
//# sourceMappingURL=chunk-JQCSGJIR.js.map
|