@100mslive/roomkit-react 0.3.10-alpha.0 → 0.3.10-alpha.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-5GXP76IN.js → HLSView-73GDHCD4.js} +2 -2
- package/dist/{HLSView-FBGVUTA5.css → HLSView-NUX3NEDM.css} +16 -3
- package/dist/{HLSView-FBGVUTA5.css.map → HLSView-NUX3NEDM.css.map} +3 -3
- package/dist/Prebuilt/common/constants.d.ts +1 -0
- package/dist/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.d.ts +3 -0
- package/dist/Prebuilt/components/Chat/Chat.d.ts +1 -1
- package/dist/Prebuilt/components/RoleChangeModal.d.ts +5 -0
- package/dist/Prebuilt/components/TileMenu/TileMenuContent.d.ts +2 -1
- package/dist/{chunk-WSDBUVSZ.js → chunk-K7LIJG5P.js} +610 -563
- package/dist/chunk-K7LIJG5P.js.map +7 -0
- package/dist/index.cjs.css +15 -2
- package/dist/index.cjs.css.map +3 -3
- package/dist/index.cjs.js +1949 -1894
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +15 -2
- package/dist/index.css.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +136 -62
- package/dist/meta.esbuild.json +150 -76
- package/package.json +7 -7
- package/src/Modal/DialogContent.tsx +1 -1
- package/src/Prebuilt/common/constants.ts +2 -0
- package/src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx +22 -0
- package/src/Prebuilt/components/AudioVideoToggle.tsx +1 -1
- package/src/Prebuilt/components/Chat/Chat.tsx +3 -4
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +58 -37
- package/src/Prebuilt/components/RoleChangeModal.tsx +188 -0
- package/src/Prebuilt/components/TileMenu/TileMenu.tsx +5 -0
- package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +25 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +3 -0
- package/src/Prebuilt/layouts/SidePane.tsx +9 -9
- package/dist/chunk-WSDBUVSZ.js.map +0 -7
- package/src/Prebuilt/components/RoleChangeModal.jsx +0 -185
- /package/dist/{HLSView-5GXP76IN.js.map → HLSView-73GDHCD4.js.map} +0 -0
@@ -35,7 +35,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
35
35
|
var define_process_env_default;
|
36
36
|
var init_define_process_env = __esm({
|
37
37
|
"<define:process.env>"() {
|
38
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_532e6faf-c7c6-4545-9d9d-7122439f4ec4", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.0-alpha.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.2 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.10-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_532e6faf-c7c6-4545-9d9d-7122439f4ec4", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.2/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.10-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "586", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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.9/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240422.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.2/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19037", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.10-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "8894552093", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c705b5b8ce729747f28c7aff242057ac8178d338", 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: "52a95eb8a3d2485a1f1ea5beaede6932bb344edf88c49cb9b85c4605f744fcc8", 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--1714479356446-0.5451084088639873:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714479356248-0.16746250652187533:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714479331056-0.9592746691932619:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714479330871-0.95693666940456:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_d22e42ad-de0d-4a42-a18c-71e94525c82c", INVOCATION_ID: "b180c6b1294c4287b4db30af502a1753", 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: "525", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 309", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.10-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.10-alpha.0", 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", GITHUB_SHA: "c705b5b8ce729747f28c7aff242057ac8178d338", 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_532e6faf-c7c6-4545-9d9d-7122439f4ec4", 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_532e6faf-c7c6-4545-9d9d-7122439f4ec4", 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.172+1/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_532e6faf-c7c6-4545-9d9d-7122439f4ec4" };
|
38
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6ec7ab5b-c163-432e-af01-ccd461f3be0a", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.0-alpha.4", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.2 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.10-alpha.10", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6ec7ab5b-c163-432e-af01-ccd461f3be0a", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.2/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.10-alpha.10", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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: "589", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.9/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240422.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.2/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19662", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.10-alpha.10", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "9057645528", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "411c589a962176ca5623844f57487cedb1c9ae92", 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: "a39d1dc2f443b8fbc608bd6b881acfa852557bfccf1693e1ea18f73365ca9390", 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--1715577756062-0.7367795276722844:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1715577755867-0.25909681027646414:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1715577730706-0.34667018853100573:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1715577730527-0.9469160851449414:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_77f34dcc-7f64-4e8c-aae4-02a9ec30dad0", INVOCATION_ID: "ed00b821557645db89b45b5ee7a6f6c2", 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: "537", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 343", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.10-alpha.10", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.10-alpha.10", 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", GITHUB_SHA: "411c589a962176ca5623844f57487cedb1c9ae92", 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_6ec7ab5b-c163-432e-af01-ccd461f3be0a", 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_6ec7ab5b-c163-432e-af01-ccd461f3be0a", 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.172+1/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_6ec7ab5b-c163-432e-af01-ccd461f3be0a" };
|
39
39
|
}
|
40
40
|
});
|
41
41
|
|
@@ -10246,7 +10246,7 @@ var CustomDialogOverlay = styled(DialogPrimitive.Overlay, {
|
|
10246
10246
|
var StyledDialogPortal = styled(DialogPrimitive.Portal, {});
|
10247
10247
|
var CustomDialogContent = styled(DialogPrimitive.Content, {
|
10248
10248
|
color: "$on_surface_medium",
|
10249
|
-
backgroundColor: "$
|
10249
|
+
backgroundColor: "$surface_dim",
|
10250
10250
|
borderRadius: "8px",
|
10251
10251
|
position: "absolute",
|
10252
10252
|
top: "50%",
|
@@ -11853,14 +11853,14 @@ var Collapsible = {
|
|
11853
11853
|
|
11854
11854
|
// src/Prebuilt/App.tsx
|
11855
11855
|
init_define_process_env();
|
11856
|
-
import React179, { useEffect as
|
11856
|
+
import React179, { useEffect as useEffect71, useRef as useRef29 } from "react";
|
11857
11857
|
import { match as match15 } from "ts-pattern";
|
11858
11858
|
import {
|
11859
11859
|
HMSReactiveStore,
|
11860
11860
|
HMSRoomProvider,
|
11861
11861
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
11862
11862
|
useHMSActions as useHMSActions56,
|
11863
|
-
useHMSStore as
|
11863
|
+
useHMSStore as useHMSStore99
|
11864
11864
|
} from "@100mslive/react-sdk";
|
11865
11865
|
|
11866
11866
|
// src/Prebuilt/components/AppData/AppData.tsx
|
@@ -12830,21 +12830,21 @@ var AuthToken_default = AuthToken;
|
|
12830
12830
|
|
12831
12831
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
12832
12832
|
init_define_process_env();
|
12833
|
-
import React157, { useEffect as
|
12833
|
+
import React157, { useEffect as useEffect52, useRef as useRef27, useState as useState66 } from "react";
|
12834
12834
|
import { v4 as uuid3 } from "uuid";
|
12835
12835
|
import {
|
12836
12836
|
HMSRoomState as HMSRoomState7,
|
12837
|
-
selectAppData as
|
12837
|
+
selectAppData as selectAppData12,
|
12838
12838
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
12839
12839
|
selectRoomState as selectRoomState7,
|
12840
12840
|
useHMSActions as useHMSActions48,
|
12841
|
-
useHMSStore as
|
12841
|
+
useHMSStore as useHMSStore88
|
12842
12842
|
} from "@100mslive/react-sdk";
|
12843
12843
|
|
12844
12844
|
// src/Prebuilt/components/Footer/Footer.tsx
|
12845
12845
|
init_define_process_env();
|
12846
|
-
import React78, { useEffect as
|
12847
|
-
import { useMedia as
|
12846
|
+
import React78, { useEffect as useEffect21 } from "react";
|
12847
|
+
import { useMedia as useMedia11 } from "react-use";
|
12848
12848
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
12849
12849
|
|
12850
12850
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
@@ -13781,7 +13781,7 @@ var NoiseCancellation = () => {
|
|
13781
13781
|
if (!plugin.isSupported() || !room.isNoiseCancellationEnabled || !localPeerAudioTrackID) {
|
13782
13782
|
return null;
|
13783
13783
|
}
|
13784
|
-
return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(
|
13784
|
+
return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }), /* @__PURE__ */ React32.createElement(
|
13785
13785
|
Dropdown.Item,
|
13786
13786
|
{
|
13787
13787
|
css: {
|
@@ -13901,7 +13901,6 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
13901
13901
|
onClick: (deviceId) => updateDevice({ deviceId, deviceType: DeviceType2.audioOutput })
|
13902
13902
|
}
|
13903
13903
|
))),
|
13904
|
-
/* @__PURE__ */ React32.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }),
|
13905
13904
|
/* @__PURE__ */ React32.createElement(NoiseCancellation, null),
|
13906
13905
|
/* @__PURE__ */ React32.createElement(AudioSettings, { onClick: () => setShowSettings(true) })
|
13907
13906
|
) : null, toggleVideo ? /* @__PURE__ */ React32.createElement(
|
@@ -14619,7 +14618,7 @@ var LeaveRoom = ({
|
|
14619
14618
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
14620
14619
|
init_define_process_env();
|
14621
14620
|
import React60 from "react";
|
14622
|
-
import { useMedia as
|
14621
|
+
import { useMedia as useMedia9 } from "react-use";
|
14623
14622
|
|
14624
14623
|
// src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
|
14625
14624
|
init_define_process_env();
|
@@ -14627,7 +14626,7 @@ import React53, { Fragment as Fragment6, useState as useState23 } from "react";
|
|
14627
14626
|
import { HMSHLSPlayer } from "@100mslive/hls-player";
|
14628
14627
|
import { match as match4 } from "ts-pattern";
|
14629
14628
|
import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions16, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
|
14630
|
-
import { BrbIcon, CheckIcon as
|
14629
|
+
import { BrbIcon, CheckIcon as CheckIcon4, HamburgerMenuIcon, InfoIcon as InfoIcon2, PipIcon as PipIcon2, SettingsIcon as SettingsIcon3 } from "@100mslive/react-icons";
|
14631
14630
|
|
14632
14631
|
// src/Prebuilt/components/PIP/index.jsx
|
14633
14632
|
init_define_process_env();
|
@@ -15142,45 +15141,44 @@ var PIP = ({ content = null }) => {
|
|
15142
15141
|
return /* @__PURE__ */ React43.createElement(PIPComponent_default, { content });
|
15143
15142
|
};
|
15144
15143
|
|
15145
|
-
// src/Prebuilt/components/RoleChangeModal.
|
15144
|
+
// src/Prebuilt/components/RoleChangeModal.tsx
|
15146
15145
|
init_define_process_env();
|
15147
|
-
import React44, {
|
15148
|
-
import {
|
15149
|
-
import {
|
15150
|
-
|
15151
|
-
|
15152
|
-
{
|
15153
|
-
|
15154
|
-
|
15155
|
-
|
15156
|
-
|
15157
|
-
|
15158
|
-
|
15159
|
-
|
15160
|
-
|
15161
|
-
|
15162
|
-
|
15163
|
-
|
15164
|
-
|
15165
|
-
));
|
15166
|
-
|
15167
|
-
|
15168
|
-
|
15169
|
-
|
15170
|
-
|
15146
|
+
import React44, { useRef as useRef11, useState as useState16 } from "react";
|
15147
|
+
import { useMedia as useMedia6 } from "react-use";
|
15148
|
+
import { selectAvailableRoleNames as selectAvailableRoleNames3, selectPeerByID, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
|
15149
|
+
import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3, CrossIcon as CrossIcon7 } from "@100mslive/react-icons";
|
15150
|
+
var HighlightTerm = ({ value }) => {
|
15151
|
+
return value ? /* @__PURE__ */ React44.createElement(Tooltip, { side: "top", title: value }, /* @__PURE__ */ React44.createElement(
|
15152
|
+
Text,
|
15153
|
+
{
|
15154
|
+
variant: "body2",
|
15155
|
+
css: {
|
15156
|
+
color: "$on_surface_medium",
|
15157
|
+
fontWeight: "$semiBold"
|
15158
|
+
}
|
15159
|
+
},
|
15160
|
+
"'",
|
15161
|
+
value.slice(0, 100),
|
15162
|
+
value.length > 100 ? "..." : "",
|
15163
|
+
"'"
|
15164
|
+
)) : /* @__PURE__ */ React44.createElement(React44.Fragment, null);
|
15165
|
+
};
|
15166
|
+
var RoleChangeContent = ({
|
15167
|
+
peer,
|
15168
|
+
onOpenChange,
|
15169
|
+
isMobile = false
|
15170
|
+
}) => {
|
15171
|
+
const roles = useHMSStore15(selectAvailableRoleNames3).filter(
|
15172
|
+
(role) => role !== peer?.roleName && role !== "__internal_recorder"
|
15173
|
+
);
|
15174
|
+
const [selectedRole, setRole] = useState16(roles.filter((role) => role !== peer?.roleName)?.[0] || peer?.roleName);
|
15171
15175
|
const hmsActions = useHMSActions11();
|
15172
15176
|
const [open, setOpen] = useState16(false);
|
15173
|
-
const
|
15174
|
-
|
15175
|
-
const ref = useRef11();
|
15176
|
-
if (!peer) {
|
15177
|
-
return null;
|
15178
|
-
}
|
15179
|
-
const peerNameMaxWidth = 200;
|
15180
|
-
return /* @__PURE__ */ React44.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React44.createElement(Dialog.Title, { css: { p: 0 }, asChild: true }, /* @__PURE__ */ React44.createElement(Text, { as: "h6", variant: "h6" }, "Change Role")), /* @__PURE__ */ React44.createElement(Dialog.Description, { asChild: true }, /* @__PURE__ */ React44.createElement(
|
15177
|
+
const triggerRef = useRef11();
|
15178
|
+
return /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement(Flex, { align: "center", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React44.createElement(Text, { as: "h6", variant: "h6" }, "Switch Role"), isMobile && /* @__PURE__ */ React44.createElement(CrossIcon7, { onClick: () => onOpenChange(false) })), /* @__PURE__ */ React44.createElement(Box, null, /* @__PURE__ */ React44.createElement(
|
15181
15179
|
Text,
|
15182
15180
|
{
|
15183
|
-
variant: "
|
15181
|
+
variant: "sm",
|
15184
15182
|
css: {
|
15185
15183
|
mt: "$4",
|
15186
15184
|
mb: "$8",
|
@@ -15190,9 +15188,11 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
15190
15188
|
columnGap: "4px"
|
15191
15189
|
}
|
15192
15190
|
},
|
15193
|
-
"
|
15194
|
-
|
15195
|
-
"
|
15191
|
+
"Switch the role of",
|
15192
|
+
/* @__PURE__ */ React44.createElement(HighlightTerm, { value: peer.name }),
|
15193
|
+
"from ",
|
15194
|
+
/* @__PURE__ */ React44.createElement(HighlightTerm, { value: peer.roleName }),
|
15195
|
+
" to"
|
15196
15196
|
)), /* @__PURE__ */ React44.createElement(
|
15197
15197
|
Flex,
|
15198
15198
|
{
|
@@ -15214,63 +15214,66 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
15214
15214
|
/* @__PURE__ */ React44.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React44.createElement(
|
15215
15215
|
Dropdown.Trigger,
|
15216
15216
|
{
|
15217
|
+
ref: triggerRef,
|
15217
15218
|
"data-testid": "open_role_selection_dropdown",
|
15218
15219
|
asChild: true,
|
15219
15220
|
css: {
|
15220
|
-
|
15221
|
-
bg: "$surface_bright",
|
15221
|
+
bg: "$surface_default",
|
15222
15222
|
r: "$1",
|
15223
15223
|
p: "$6 $9"
|
15224
|
-
}
|
15225
|
-
ref
|
15224
|
+
}
|
15226
15225
|
},
|
15227
15226
|
/* @__PURE__ */ React44.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React44.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React44.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React44.createElement(ChevronDownIcon3, null))
|
15228
|
-
), /* @__PURE__ */ React44.createElement(Dropdown.
|
15229
|
-
Dropdown.
|
15227
|
+
), /* @__PURE__ */ React44.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => /* @__PURE__ */ React44.createElement(
|
15228
|
+
Dropdown.Item,
|
15230
15229
|
{
|
15231
|
-
|
15232
|
-
|
15233
|
-
|
15230
|
+
"data-testid": role,
|
15231
|
+
key: role,
|
15232
|
+
onSelect: () => setRole(role),
|
15233
|
+
css: { w: `${triggerRef.current?.clientWidth}px` }
|
15234
15234
|
},
|
15235
|
-
|
15236
|
-
|
15237
|
-
Dropdown.Item,
|
15238
|
-
{
|
15239
|
-
"data-testid": role,
|
15240
|
-
key: role,
|
15241
|
-
onSelect: () => setRole(role),
|
15242
|
-
css: {
|
15243
|
-
px: "$9",
|
15244
|
-
bg: role === selectedRole ? selectionBg : void 0
|
15245
|
-
}
|
15246
|
-
},
|
15247
|
-
role
|
15248
|
-
);
|
15249
|
-
})
|
15250
|
-
)))
|
15235
|
+
role
|
15236
|
+
))))
|
15251
15237
|
)
|
15252
|
-
),
|
15253
|
-
|
15238
|
+
), /* @__PURE__ */ React44.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, !isMobile && /* @__PURE__ */ React44.createElement(
|
15239
|
+
Button,
|
15254
15240
|
{
|
15255
|
-
|
15256
|
-
|
15257
|
-
|
15258
|
-
|
15241
|
+
variant: "standard",
|
15242
|
+
outlined: true,
|
15243
|
+
css: { width: "100%" },
|
15244
|
+
onClick: () => onOpenChange(false),
|
15245
|
+
"data-testid": "cancel_button"
|
15259
15246
|
},
|
15260
|
-
|
15261
|
-
)
|
15247
|
+
"Cancel"
|
15248
|
+
), /* @__PURE__ */ React44.createElement(
|
15262
15249
|
Button,
|
15263
15250
|
{
|
15264
15251
|
"data-testid": "change_button",
|
15265
15252
|
variant: "primary",
|
15266
15253
|
css: { width: "100%" },
|
15267
15254
|
onClick: async () => {
|
15268
|
-
|
15269
|
-
|
15255
|
+
if (selectedRole) {
|
15256
|
+
await hmsActions.changeRoleOfPeer(peer.id, selectedRole, true);
|
15257
|
+
onOpenChange(false);
|
15258
|
+
}
|
15270
15259
|
}
|
15271
15260
|
},
|
15272
|
-
"
|
15273
|
-
)))
|
15261
|
+
"Switch Role"
|
15262
|
+
)));
|
15263
|
+
};
|
15264
|
+
var RoleChangeModal = ({
|
15265
|
+
peerId,
|
15266
|
+
onOpenChange
|
15267
|
+
}) => {
|
15268
|
+
const peer = useHMSStore15(selectPeerByID(peerId));
|
15269
|
+
const isMobile = useMedia6(config.media.md);
|
15270
|
+
if (!peer) {
|
15271
|
+
return null;
|
15272
|
+
}
|
15273
|
+
if (isMobile) {
|
15274
|
+
return /* @__PURE__ */ React44.createElement(Sheet.Root, { open: true, onOpenChange, css: { borderRadius: "$0 $0 0 0" } }, /* @__PURE__ */ React44.createElement(Sheet.Content, { css: { p: "$10 $8", background: "$surface_dim", border: "1px solid $border_default" } }, /* @__PURE__ */ React44.createElement(RoleChangeContent, { peer, onOpenChange, isMobile: true })));
|
15275
|
+
}
|
15276
|
+
return /* @__PURE__ */ React44.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10", overflow: "visible" } }, /* @__PURE__ */ React44.createElement(RoleChangeContent, { peer, onOpenChange }))));
|
15274
15277
|
};
|
15275
15278
|
|
15276
15279
|
// src/Prebuilt/components/Settings/StartRecording.jsx
|
@@ -15287,7 +15290,7 @@ import { InfoIcon } from "@100mslive/react-icons";
|
|
15287
15290
|
// src/Prebuilt/primitives/DialogContent.jsx
|
15288
15291
|
init_define_process_env();
|
15289
15292
|
import React45, { useRef as useRef12 } from "react";
|
15290
|
-
import { CheckIcon as
|
15293
|
+
import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon8 } from "@100mslive/react-icons";
|
15291
15294
|
var DialogContent = ({ Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {}, ...props }) => {
|
15292
15295
|
return /* @__PURE__ */ React45.createElement(Dialog.Portal, null, /* @__PURE__ */ React45.createElement(Dialog.Overlay, null), /* @__PURE__ */ React45.createElement(Dialog.Content, { css: { width: "min(600px, 100%)", ...css2 }, ...props }, /* @__PURE__ */ React45.createElement(Dialog.Title, null, /* @__PURE__ */ React45.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React45.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ React45.createElement(Flex, { css: { mr: "$2", color: "$on_primary_high", ...flexCenter, ...iconCSS } }, /* @__PURE__ */ React45.createElement(Icon4, null)) : null, /* @__PURE__ */ React45.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React45.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React45.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React45.createElement(Box, null, children)));
|
15293
15296
|
};
|
@@ -15295,7 +15298,7 @@ var ErrorDialog = ({ open = true, onOpenChange, title, children, ...props }) =>
|
|
15295
15298
|
return /* @__PURE__ */ React45.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React45.createElement(
|
15296
15299
|
DialogContent,
|
15297
15300
|
{
|
15298
|
-
Icon:
|
15301
|
+
Icon: CrossIcon8,
|
15299
15302
|
title,
|
15300
15303
|
onInteractOutside: (e) => e.preventDefault(),
|
15301
15304
|
onEscapeKeyDown: (e) => e.preventDefault(),
|
@@ -15753,7 +15756,7 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
|
15753
15756
|
init_define_process_env();
|
15754
15757
|
import React49, { useCallback as useCallback11, useRef as useRef14, useState as useState20 } from "react";
|
15755
15758
|
import { useHMSActions as useHMSActions13 } from "@100mslive/react-sdk";
|
15756
|
-
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as
|
15759
|
+
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
|
15757
15760
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
15758
15761
|
const roles = useFilteredRoles();
|
15759
15762
|
const hmsActions = useHMSActions13();
|
@@ -15825,7 +15828,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
15825
15828
|
setErrorMessage("");
|
15826
15829
|
}
|
15827
15830
|
},
|
15828
|
-
/* @__PURE__ */ React49.createElement(Checkbox.Root, { css: { margin: "$2" }, checked: selectedBulkRole.includes(role) }, /* @__PURE__ */ React49.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React49.createElement(
|
15831
|
+
/* @__PURE__ */ React49.createElement(Checkbox.Root, { css: { margin: "$2" }, checked: selectedBulkRole.includes(role) }, /* @__PURE__ */ React49.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React49.createElement(CheckIcon3, { width: 16, height: 16 }))),
|
15829
15832
|
role
|
15830
15833
|
);
|
15831
15834
|
})
|
@@ -15926,7 +15929,7 @@ var FullScreenItem = () => {
|
|
15926
15929
|
init_define_process_env();
|
15927
15930
|
import React52, { useCallback as useCallback13, useState as useState22 } from "react";
|
15928
15931
|
import {
|
15929
|
-
selectAvailableRoleNames as
|
15932
|
+
selectAvailableRoleNames as selectAvailableRoleNames4,
|
15930
15933
|
useHMSActions as useHMSActions14,
|
15931
15934
|
useHMSStore as useHMSStore19
|
15932
15935
|
} from "@100mslive/react-sdk";
|
@@ -15994,7 +15997,7 @@ var MuteAllModal = ({
|
|
15994
15997
|
onOpenChange,
|
15995
15998
|
isMobile = false
|
15996
15999
|
}) => {
|
15997
|
-
const roles = useHMSStore19(
|
16000
|
+
const roles = useHMSStore19(selectAvailableRoleNames4);
|
15998
16001
|
const hmsActions = useHMSActions14();
|
15999
16002
|
const [enabled, setEnabled] = useState22(false);
|
16000
16003
|
const [trackType, setTrackType] = useState22();
|
@@ -16138,7 +16141,7 @@ var DesktopOptions = ({
|
|
16138
16141
|
}
|
16139
16142
|
}
|
16140
16143
|
},
|
16141
|
-
isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ React53.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ React53.createElement(BrbIcon, null), /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ React53.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ React53.createElement(
|
16144
|
+
isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ React53.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ React53.createElement(BrbIcon, null), /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ React53.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ React53.createElement(CheckIcon4, null) : null)) : null,
|
16142
16145
|
screenType !== "hls_live_streaming" ? /* @__PURE__ */ React53.createElement(Dropdown.Item, { css: { p: 0, "&:empty": { display: "none" } } }, /* @__PURE__ */ React53.createElement(
|
16143
16146
|
PIP,
|
16144
16147
|
{
|
@@ -16162,7 +16165,7 @@ var DesktopOptions = ({
|
|
16162
16165
|
checked: enablHlsStats,
|
16163
16166
|
onCheckedChange: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats)
|
16164
16167
|
},
|
16165
|
-
/* @__PURE__ */ React53.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React53.createElement(
|
16168
|
+
/* @__PURE__ */ React53.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React53.createElement(CheckIcon4, { width: 16, height: 16 }))
|
16166
16169
|
),
|
16167
16170
|
/* @__PURE__ */ React53.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`))
|
16168
16171
|
);
|
@@ -16210,7 +16213,7 @@ import {
|
|
16210
16213
|
import {
|
16211
16214
|
BrbIcon as BrbIcon2,
|
16212
16215
|
ClosedCaptionIcon as ClosedCaptionIcon2,
|
16213
|
-
CrossIcon as
|
16216
|
+
CrossIcon as CrossIcon11,
|
16214
16217
|
EmojiIcon as EmojiIcon2,
|
16215
16218
|
HamburgerMenuIcon as HamburgerMenuIcon2,
|
16216
16219
|
HandIcon as HandIcon2,
|
@@ -16228,7 +16231,7 @@ import {
|
|
16228
16231
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
16229
16232
|
init_define_process_env();
|
16230
16233
|
import React55, { useCallback as useCallback17, useEffect as useEffect16, useRef as useRef15, useState as useState25 } from "react";
|
16231
|
-
import { useMedia as
|
16234
|
+
import { useMedia as useMedia7 } from "react-use";
|
16232
16235
|
|
16233
16236
|
// ../hms-video-store/dist/index.js
|
16234
16237
|
init_define_process_env();
|
@@ -18449,7 +18452,7 @@ var Zi = (a2, e) => {
|
|
18449
18452
|
};
|
18450
18453
|
var _a = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18451
18454
|
var nr = _a((yc, Wa) => {
|
18452
|
-
Wa.exports = { version: "0.12.10-alpha.
|
18455
|
+
Wa.exports = { version: "0.12.10-alpha.10", 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"] };
|
18453
18456
|
});
|
18454
18457
|
var er = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(er || {});
|
18455
18458
|
var Na = ((e) => (e.CHAT = "chat", e))(Na || {});
|
@@ -19534,7 +19537,7 @@ import {
|
|
19534
19537
|
useHMSStore as useHMSStore25,
|
19535
19538
|
useRecordingStreaming as useRecordingStreaming6
|
19536
19539
|
} from "@100mslive/react-sdk";
|
19537
|
-
import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as
|
19540
|
+
import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as CrossIcon9, PauseCircleIcon, RecordIcon } from "@100mslive/react-icons";
|
19538
19541
|
|
19539
19542
|
// src/Prebuilt/components/Header/AdditionalRoomState.jsx
|
19540
19543
|
init_define_process_env();
|
@@ -19708,7 +19711,7 @@ var AdditionalRoomState = () => {
|
|
19708
19711
|
var LiveStatus = () => {
|
19709
19712
|
const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
|
19710
19713
|
const hlsState = useHMSStore25(selectHLSState4);
|
19711
|
-
const isMobile =
|
19714
|
+
const isMobile = useMedia7(config.media.md);
|
19712
19715
|
const intervalRef = useRef15(null);
|
19713
19716
|
const { screenType } = useRoomLayoutConferencingScreen();
|
19714
19717
|
const [liveTime, setLiveTime] = useState25(0);
|
@@ -19754,7 +19757,7 @@ var LiveStatus = () => {
|
|
19754
19757
|
var RecordingStatus = () => {
|
19755
19758
|
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
|
19756
19759
|
const permissions = useHMSStore25(selectPermissions7);
|
19757
|
-
const isMobile =
|
19760
|
+
const isMobile = useMedia7(config.media.md);
|
19758
19761
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
19759
19762
|
// so no need to show this as it duplicates
|
19760
19763
|
[permissions?.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
|
@@ -19862,7 +19865,7 @@ var StartRecording2 = () => {
|
|
19862
19865
|
};
|
19863
19866
|
var StreamActions = () => {
|
19864
19867
|
const isConnected = useHMSStore25(selectIsConnectedToRoom6);
|
19865
|
-
const isMobile =
|
19868
|
+
const isMobile = useMedia7(config.media.md);
|
19866
19869
|
const roomState = useHMSStore25(selectRoomState3);
|
19867
19870
|
return /* @__PURE__ */ React55.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React55.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React55.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React55.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React55.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React55.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React55.createElement(StartRecording2, null) : null);
|
19868
19871
|
};
|
@@ -19870,7 +19873,7 @@ var StopRecordingInSheet = ({
|
|
19870
19873
|
onStopRecording,
|
19871
19874
|
onClose
|
19872
19875
|
}) => {
|
19873
|
-
return /* @__PURE__ */ React55.createElement(Sheet.Root, { open: true }, /* @__PURE__ */ React55.createElement(Sheet.Content, null, /* @__PURE__ */ React55.createElement(Sheet.Title, { css: { p: "$10" } }, /* @__PURE__ */ React55.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%", c: "$alert_error_default" } }, /* @__PURE__ */ React55.createElement(Flex, { justify: "start", align: "center", gap: "3" }, /* @__PURE__ */ React55.createElement(AlertTriangleIcon5, null), /* @__PURE__ */ React55.createElement(Text, { variant: "h5", css: { c: "$alert_error_default" } }, "Stop Recording")), /* @__PURE__ */ React55.createElement(Sheet.Close, { css: { color: "white" }, onClick: onClose }, /* @__PURE__ */ React55.createElement(
|
19876
|
+
return /* @__PURE__ */ React55.createElement(Sheet.Root, { open: true }, /* @__PURE__ */ React55.createElement(Sheet.Content, null, /* @__PURE__ */ React55.createElement(Sheet.Title, { css: { p: "$10" } }, /* @__PURE__ */ React55.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%", c: "$alert_error_default" } }, /* @__PURE__ */ React55.createElement(Flex, { justify: "start", align: "center", gap: "3" }, /* @__PURE__ */ React55.createElement(AlertTriangleIcon5, null), /* @__PURE__ */ React55.createElement(Text, { variant: "h5", css: { c: "$alert_error_default" } }, "Stop Recording")), /* @__PURE__ */ React55.createElement(Sheet.Close, { css: { color: "white" }, onClick: onClose }, /* @__PURE__ */ React55.createElement(CrossIcon9, null)))), /* @__PURE__ */ React55.createElement(HorizontalDivider, null), /* @__PURE__ */ React55.createElement(Box, { as: "div", css: { p: "$10", overflowY: "scroll", maxHeight: "70vh" } }, /* @__PURE__ */ React55.createElement(Text, { variant: "caption", css: { c: "$on_surface_medium", pb: "$8" } }, "Are you sure you want to stop recording? You can\u2019t undo this action."), /* @__PURE__ */ React55.createElement(
|
19874
19877
|
Button,
|
19875
19878
|
{
|
19876
19879
|
variant: "danger",
|
@@ -19942,13 +19945,13 @@ var ActionTile = {
|
|
19942
19945
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
|
19943
19946
|
init_define_process_env();
|
19944
19947
|
import React58, { useState as useState26 } from "react";
|
19945
|
-
import { useMedia as
|
19948
|
+
import { useMedia as useMedia8 } from "react-use";
|
19946
19949
|
import { selectLocalPeerName, useHMSActions as useHMSActions20, useHMSStore as useHMSStore26 } from "@100mslive/react-sdk";
|
19947
19950
|
|
19948
19951
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
19949
19952
|
init_define_process_env();
|
19950
19953
|
import React57 from "react";
|
19951
|
-
import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as
|
19954
|
+
import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as CrossIcon10 } from "@100mslive/react-icons";
|
19952
19955
|
var ChangeNameContent = ({
|
19953
19956
|
changeName,
|
19954
19957
|
setCurrentName,
|
@@ -19986,7 +19989,7 @@ var ChangeNameContent = ({
|
|
19986
19989
|
css: { color: "inherit", ml: "auto", "&:hover": { color: "$on_surface_medium", cursor: "pointer" } },
|
19987
19990
|
onClick: onExit
|
19988
19991
|
},
|
19989
|
-
/* @__PURE__ */ React57.createElement(
|
19992
|
+
/* @__PURE__ */ React57.createElement(CrossIcon10, null)
|
19990
19993
|
)
|
19991
19994
|
),
|
19992
19995
|
/* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", pb: "$6", mb: "$8", "@md": { px: "$8", mt: "$4" } } }, "Your name will be visible to other participants in the session."),
|
@@ -20061,7 +20064,7 @@ var ChangeNameModal = ({
|
|
20061
20064
|
const hmsActions = useHMSActions20();
|
20062
20065
|
const localPeerName = useHMSStore26(selectLocalPeerName);
|
20063
20066
|
const [currentName, setCurrentName] = useState26(localPeerName);
|
20064
|
-
const isMobile =
|
20067
|
+
const isMobile = useMedia8(config.media.md);
|
20065
20068
|
const changeName = async () => {
|
20066
20069
|
const name = currentName?.trim() || "";
|
20067
20070
|
if (!name || name === localPeerName) {
|
@@ -20207,7 +20210,7 @@ var MwebOptions = ({
|
|
20207
20210
|
}
|
20208
20211
|
},
|
20209
20212
|
"Options",
|
20210
|
-
/* @__PURE__ */ React59.createElement(Sheet.Close, null, /* @__PURE__ */ React59.createElement(Box, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React59.createElement(
|
20213
|
+
/* @__PURE__ */ React59.createElement(Sheet.Close, null, /* @__PURE__ */ React59.createElement(Box, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React59.createElement(CrossIcon11, null)))
|
20211
20214
|
), /* @__PURE__ */ React59.createElement(
|
20212
20215
|
Box,
|
20213
20216
|
{
|
@@ -20396,7 +20399,7 @@ var MoreSettings = ({
|
|
20396
20399
|
elements,
|
20397
20400
|
screenType
|
20398
20401
|
}) => {
|
20399
|
-
const isMobile =
|
20402
|
+
const isMobile = useMedia9(config.media.md);
|
20400
20403
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
20401
20404
|
return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ React60.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ React60.createElement(DesktopOptions, { elements, screenType });
|
20402
20405
|
};
|
@@ -20968,9 +20971,10 @@ var ChatToggle = ({ onClick }) => {
|
|
20968
20971
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
20969
20972
|
init_define_process_env();
|
20970
20973
|
import React75, { Fragment as Fragment9, useCallback as useCallback19, useState as useState33 } from "react";
|
20971
|
-
import { useDebounce, useMedia as
|
20974
|
+
import { useDebounce, useMedia as useMedia10 } from "react-use";
|
20972
20975
|
import {
|
20973
20976
|
HMSPeerType as HMSPeerType2,
|
20977
|
+
selectAvailableRoleNames as selectAvailableRoleNames5,
|
20974
20978
|
selectHandRaisedPeers,
|
20975
20979
|
selectHasPeerHandRaised as selectHasPeerHandRaised2,
|
20976
20980
|
selectIsLargeRoom as selectIsLargeRoom2,
|
@@ -20978,16 +20982,17 @@ import {
|
|
20978
20982
|
selectLocalPeerID as selectLocalPeerID7,
|
20979
20983
|
selectPeerCount as selectPeerCount4,
|
20980
20984
|
selectPermissions as selectPermissions13,
|
20981
|
-
useHMSStore as
|
20985
|
+
useHMSStore as useHMSStore40
|
20982
20986
|
} from "@100mslive/react-sdk";
|
20983
20987
|
import {
|
20984
20988
|
AddIcon as AddIcon2,
|
20985
20989
|
CallIcon,
|
20986
20990
|
ChangeRoleIcon as ChangeRoleIcon2,
|
20987
|
-
CrossIcon as
|
20991
|
+
CrossIcon as CrossIcon13,
|
20988
20992
|
HandIcon as HandIcon4,
|
20989
20993
|
MicOffIcon as MicOffIcon4,
|
20990
20994
|
PeopleIcon as PeopleIcon2,
|
20995
|
+
PersonSettingsIcon,
|
20991
20996
|
SearchIcon,
|
20992
20997
|
VerticalMenuIcon as VerticalMenuIcon5
|
20993
20998
|
} from "@100mslive/react-icons";
|
@@ -21142,7 +21147,7 @@ import React74, { useEffect as useEffect18 } from "react";
|
|
21142
21147
|
import { useMeasure } from "react-use";
|
21143
21148
|
import { FixedSizeList } from "react-window";
|
21144
21149
|
import { selectIsLargeRoom, useHMSStore as useHMSStore37, usePaginatedParticipants } from "@100mslive/react-sdk";
|
21145
|
-
import { AddIcon, ChevronRightIcon, CrossIcon as
|
21150
|
+
import { AddIcon, ChevronRightIcon, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
|
21146
21151
|
|
21147
21152
|
// src/Prebuilt/components/Footer/RoleOptions.tsx
|
21148
21153
|
init_define_process_env();
|
@@ -21450,13 +21455,28 @@ var RoleAccordion = ({
|
|
21450
21455
|
},
|
21451
21456
|
/* @__PURE__ */ React74.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
21452
21457
|
/* @__PURE__ */ React74.createElement(ChevronRightIcon, null)
|
21453
|
-
) : null, isHandRaisedAccordion && canBringToStage && /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(HorizontalDivider, null), /* @__PURE__ */ React74.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React74.createElement(
|
21458
|
+
) : null, isHandRaisedAccordion && canBringToStage && /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(HorizontalDivider, null), /* @__PURE__ */ React74.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React74.createElement(CrossIcon12, null), " Lower all hands"), /* @__PURE__ */ React74.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React74.createElement(AddIcon, null), " ", bring_to_stage_label)))));
|
21459
|
+
};
|
21460
|
+
|
21461
|
+
// src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
|
21462
|
+
init_define_process_env();
|
21463
|
+
import { useEffect as useEffect19 } from "react";
|
21464
|
+
import { selectAppData as selectAppData6, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
|
21465
|
+
var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
21466
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
21467
|
+
const sidepane = useHMSStore38(selectAppData6(APP_DATA.sidePane));
|
21468
|
+
const resetSidePane = useSidepaneReset();
|
21469
|
+
useEffect19(() => {
|
21470
|
+
if (sidepane === sidepaneOption && !elements?.[layoutKey]) {
|
21471
|
+
resetSidePane();
|
21472
|
+
}
|
21473
|
+
}, [elements, elements?.[layoutKey], resetSidePane, sidepane, layoutKey, sidepaneOption]);
|
21454
21474
|
};
|
21455
21475
|
|
21456
21476
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
21457
21477
|
init_define_process_env();
|
21458
21478
|
import { useState as useState32 } from "react";
|
21459
|
-
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions26, useHMSStore as
|
21479
|
+
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions26, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
|
21460
21480
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
21461
21481
|
const hmsActions = useHMSActions26();
|
21462
21482
|
const { elements } = useRoomLayoutConferencingScreen();
|
@@ -21468,9 +21488,9 @@ var usePeerOnStageActions = ({ peerId, role }) => {
|
|
21468
21488
|
skip_preview_for_role_change = false
|
21469
21489
|
} = elements.on_stage_exp || {};
|
21470
21490
|
const isInStage = role === on_stage_role;
|
21471
|
-
const canChangeRole =
|
21491
|
+
const canChangeRole = useHMSStore39(selectPermissions12)?.changeRole;
|
21472
21492
|
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || off_stage_roles?.includes(role) && bring_to_stage_label);
|
21473
|
-
const prevRole =
|
21493
|
+
const prevRole = useHMSStore39(selectPeerMetadata3(peerId))?.prevRole;
|
21474
21494
|
const [open, setOpen] = useState32(false);
|
21475
21495
|
const lowerPeerHand = async () => {
|
21476
21496
|
await hmsActions.lowerRemotePeerHand(peerId);
|
@@ -21505,9 +21525,9 @@ var ParticipantList = ({
|
|
21505
21525
|
}) => {
|
21506
21526
|
const [filter, setFilter] = useState33();
|
21507
21527
|
const { participants, isConnected, peerCount } = useParticipants(filter);
|
21508
|
-
const isLargeRoom =
|
21528
|
+
const isLargeRoom = useHMSStore40(selectIsLargeRoom2);
|
21509
21529
|
const peersOrderedByRoles = {};
|
21510
|
-
const handRaisedPeers =
|
21530
|
+
const handRaisedPeers = useHMSStore40(selectHandRaisedPeers);
|
21511
21531
|
participants.forEach((participant) => {
|
21512
21532
|
if (participant.roleName) {
|
21513
21533
|
if (peersOrderedByRoles[participant.roleName] === void 0) {
|
@@ -21523,6 +21543,7 @@ var ParticipantList = ({
|
|
21523
21543
|
}
|
21524
21544
|
});
|
21525
21545
|
}
|
21546
|
+
useSidepaneResetOnLayoutUpdate("participant_list", SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21526
21547
|
const onSearch = useCallback19((value) => {
|
21527
21548
|
setFilter((filterValue) => {
|
21528
21549
|
if (!filterValue) {
|
@@ -21570,7 +21591,7 @@ var ParticipantList = ({
|
|
21570
21591
|
));
|
21571
21592
|
};
|
21572
21593
|
var ParticipantCount = () => {
|
21573
|
-
const peerCount =
|
21594
|
+
const peerCount = useHMSStore40(selectPeerCount4);
|
21574
21595
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21575
21596
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21576
21597
|
if (peerCount === 0) {
|
@@ -21602,7 +21623,7 @@ var Participant = ({
|
|
21602
21623
|
isHandRaisedAccordion,
|
21603
21624
|
style
|
21604
21625
|
}) => {
|
21605
|
-
const localPeerId =
|
21626
|
+
const localPeerId = useHMSStore40(selectLocalPeerID7);
|
21606
21627
|
return /* @__PURE__ */ React75.createElement(
|
21607
21628
|
Flex,
|
21608
21629
|
{
|
@@ -21700,13 +21721,13 @@ var ParticipantActions = React75.memo(
|
|
21700
21721
|
isLocal,
|
21701
21722
|
isHandRaisedAccordion
|
21702
21723
|
}) => {
|
21703
|
-
const isHandRaised =
|
21704
|
-
const canChangeRole =
|
21705
|
-
const canRemoveOthers =
|
21724
|
+
const isHandRaised = useHMSStore40(selectHasPeerHandRaised2(peerId));
|
21725
|
+
const canChangeRole = useHMSStore40(selectPermissions13)?.changeRole;
|
21726
|
+
const canRemoveOthers = useHMSStore40(selectPermissions13)?.removeOthers;
|
21706
21727
|
const { elements } = useRoomLayoutConferencingScreen();
|
21707
21728
|
const { on_stage_exp } = elements || {};
|
21708
21729
|
const shouldShowMoreActions = on_stage_exp && canChangeRole || canRemoveOthers;
|
21709
|
-
const isAudioMuted = !
|
21730
|
+
const isAudioMuted = !useHMSStore40(selectIsPeerAudioEnabled(peerId));
|
21710
21731
|
return /* @__PURE__ */ React75.createElement(
|
21711
21732
|
Flex,
|
21712
21733
|
{
|
@@ -21753,7 +21774,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
|
21753
21774
|
if (!shouldShowStageRoleChange) {
|
21754
21775
|
return null;
|
21755
21776
|
}
|
21756
|
-
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React75.createElement(
|
21777
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React75.createElement(CrossIcon13, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React75.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React75.createElement(AddIcon2, { height: 18, width: 18 })));
|
21757
21778
|
};
|
21758
21779
|
var ParticipantMoreActions = ({ peerId, role }) => {
|
21759
21780
|
const {
|
@@ -21765,7 +21786,10 @@ var ParticipantMoreActions = ({ peerId, role }) => {
|
|
21765
21786
|
isInStage,
|
21766
21787
|
shouldShowStageRoleChange
|
21767
21788
|
} = usePeerOnStageActions({ peerId, role });
|
21768
|
-
|
21789
|
+
const canChangeRole = !!useHMSStore40(selectPermissions13)?.changeRole;
|
21790
|
+
const [openRoleChangeModal, setOpenRoleChangeModal] = useState33(false);
|
21791
|
+
const roles = useHMSStore40(selectAvailableRoleNames5);
|
21792
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React75.createElement(
|
21769
21793
|
Dropdown.Trigger,
|
21770
21794
|
{
|
21771
21795
|
asChild: true,
|
@@ -21786,7 +21810,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
|
|
21786
21810
|
tabIndex: 0
|
21787
21811
|
},
|
21788
21812
|
/* @__PURE__ */ React75.createElement(Box, { css: { my: "auto" } }, /* @__PURE__ */ React75.createElement(VerticalMenuIcon5, null))
|
21789
|
-
), /* @__PURE__ */ React75.createElement(Dropdown.Portal, null, /* @__PURE__ */ React75.createElement(Dropdown.Content, { align: "end", sideOffset: 8, css: { w: "$64", bg: "$surface_default" } }, shouldShowStageRoleChange ? /* @__PURE__ */ React75.createElement(Dropdown.Item, { css: { bg: "$surface_default" }, onClick: () => handleStageAction() }, /* @__PURE__ */ React75.createElement(ChangeRoleIcon2, null), /* @__PURE__ */ React75.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold", c: "$on_surface_high" } }, isInStage ? remove_from_stage_label : bring_to_stage_label)) : null, /* @__PURE__ */ React75.createElement(RemoveParticipant, { peerId }))));
|
21813
|
+
), /* @__PURE__ */ React75.createElement(Dropdown.Portal, null, /* @__PURE__ */ React75.createElement(Dropdown.Content, { align: "end", sideOffset: 8, css: { w: "$64", bg: "$surface_default" } }, shouldShowStageRoleChange ? /* @__PURE__ */ React75.createElement(Dropdown.Item, { css: { bg: "$surface_default" }, onClick: () => handleStageAction() }, /* @__PURE__ */ React75.createElement(ChangeRoleIcon2, null), /* @__PURE__ */ React75.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold", c: "$on_surface_high" } }, isInStage ? remove_from_stage_label : bring_to_stage_label)) : null, canChangeRole && roles.length > 1 ? /* @__PURE__ */ React75.createElement(Dropdown.Item, { css: { bg: "$surface_default" }, onClick: () => setOpenRoleChangeModal(true) }, /* @__PURE__ */ React75.createElement(PersonSettingsIcon, null), /* @__PURE__ */ React75.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold", c: "$on_surface_high" } }, "Switch Role")) : null, /* @__PURE__ */ React75.createElement(RemoveParticipant, { peerId })))), openRoleChangeModal && /* @__PURE__ */ React75.createElement(RoleChangeModal, { peerId, onOpenChange: setOpenRoleChangeModal }));
|
21790
21814
|
};
|
21791
21815
|
var ParticipantSearch = ({
|
21792
21816
|
onSearch,
|
@@ -21794,7 +21818,7 @@ var ParticipantSearch = ({
|
|
21794
21818
|
inSidePane = false
|
21795
21819
|
}) => {
|
21796
21820
|
const [value, setValue] = React75.useState("");
|
21797
|
-
const isMobile =
|
21821
|
+
const isMobile = useMedia10(config.media.md);
|
21798
21822
|
useDebounce(
|
21799
21823
|
() => {
|
21800
21824
|
onSearch(value);
|
@@ -21838,13 +21862,13 @@ var ParticipantSearch = ({
|
|
21838
21862
|
|
21839
21863
|
// src/Prebuilt/components/Footer/PollsToggle.tsx
|
21840
21864
|
init_define_process_env();
|
21841
|
-
import React76, { useEffect as
|
21865
|
+
import React76, { useEffect as useEffect20 } from "react";
|
21842
21866
|
import { QuizActiveIcon as QuizActiveIcon2, QuizIcon as QuizIcon2 } from "@100mslive/react-icons";
|
21843
21867
|
var PollsToggle = () => {
|
21844
21868
|
const isPollsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.POLLS);
|
21845
21869
|
const togglePollView = usePollViewToggle();
|
21846
21870
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
21847
|
-
|
21871
|
+
useEffect20(() => {
|
21848
21872
|
if (unreadPollQuiz && isPollsOpen) {
|
21849
21873
|
setUnreadPollQuiz(false);
|
21850
21874
|
}
|
@@ -21866,11 +21890,11 @@ var PollsToggle = () => {
|
|
21866
21890
|
// src/Prebuilt/components/Footer/WhiteboardToggle.tsx
|
21867
21891
|
init_define_process_env();
|
21868
21892
|
import React77 from "react";
|
21869
|
-
import { selectPeerScreenSharing, useHMSStore as
|
21893
|
+
import { selectPeerScreenSharing, useHMSStore as useHMSStore41, useWhiteboard } from "@100mslive/react-sdk";
|
21870
21894
|
import { PencilDrawIcon } from "@100mslive/react-icons";
|
21871
21895
|
var WhiteboardToggle = () => {
|
21872
21896
|
const { toggle, open, isOwner } = useWhiteboard();
|
21873
|
-
const peerSharing =
|
21897
|
+
const peerSharing = useHMSStore41(selectPeerScreenSharing);
|
21874
21898
|
const disabled = !!peerSharing || open && !isOwner;
|
21875
21899
|
if (!toggle) {
|
21876
21900
|
return null;
|
@@ -21908,13 +21932,13 @@ var Footer2 = ({
|
|
21908
21932
|
screenType,
|
21909
21933
|
elements
|
21910
21934
|
}) => {
|
21911
|
-
const isMobile =
|
21935
|
+
const isMobile = useMedia11(config.media.md);
|
21912
21936
|
const isOverlayChat = !!elements?.chat?.is_overlay;
|
21913
21937
|
const openByDefault = elements?.chat?.initial_state === Chat_ChatState.CHAT_STATE_OPEN;
|
21914
21938
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21915
21939
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
21916
21940
|
const { showPolls } = useShowPolls();
|
21917
|
-
|
21941
|
+
useEffect21(() => {
|
21918
21942
|
if (!isChatOpen && openByDefault) {
|
21919
21943
|
toggleChat();
|
21920
21944
|
}
|
@@ -21967,9 +21991,9 @@ var Footer2 = ({
|
|
21967
21991
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
21968
21992
|
init_define_process_env();
|
21969
21993
|
import React79, { useCallback as useCallback20, useState as useState34 } from "react";
|
21970
|
-
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions27, useHMSStore as
|
21994
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions27, useHMSStore as useHMSStore42, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
21971
21995
|
function HLSFailureModal() {
|
21972
|
-
const hlsError =
|
21996
|
+
const hlsError = useHMSStore42(selectHLSState5).error || false;
|
21973
21997
|
const [openModal, setOpenModal] = useState34(!!hlsError);
|
21974
21998
|
const hmsActions = useHMSActions27();
|
21975
21999
|
const { isRTMPRunning } = useRecordingStreaming8();
|
@@ -22014,7 +22038,7 @@ function HLSFailureModal() {
|
|
22014
22038
|
|
22015
22039
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
22016
22040
|
init_define_process_env();
|
22017
|
-
import React134, { useEffect as
|
22041
|
+
import React134, { useEffect as useEffect36 } from "react";
|
22018
22042
|
import {
|
22019
22043
|
selectIsInPreview,
|
22020
22044
|
selectLocalPeerName as selectLocalPeerName4,
|
@@ -22022,22 +22046,22 @@ import {
|
|
22022
22046
|
selectRoleChangeRequest,
|
22023
22047
|
useCustomEvent as useCustomEvent3,
|
22024
22048
|
useHMSActions as useHMSActions44,
|
22025
|
-
useHMSStore as
|
22049
|
+
useHMSStore as useHMSStore73
|
22026
22050
|
} from "@100mslive/react-sdk";
|
22027
22051
|
|
22028
22052
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
22029
22053
|
init_define_process_env();
|
22030
|
-
import React132, { Fragment as Fragment12, useCallback as useCallback32, useEffect as
|
22031
|
-
import { useMeasure as useMeasure4, useMedia as
|
22054
|
+
import React132, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect35, useMemo as useMemo13, useState as useState56 } from "react";
|
22055
|
+
import { useMeasure as useMeasure4, useMedia as useMedia25 } from "react-use";
|
22032
22056
|
import {
|
22033
22057
|
HMSRoomState as HMSRoomState5,
|
22034
|
-
selectAppData as
|
22058
|
+
selectAppData as selectAppData9,
|
22035
22059
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
|
22036
22060
|
selectLocalPeer as selectLocalPeer7,
|
22037
22061
|
selectRoomState as selectRoomState5,
|
22038
22062
|
selectVideoTrackByID as selectVideoTrackByID5,
|
22039
22063
|
useAVToggle as useAVToggle3,
|
22040
|
-
useHMSStore as
|
22064
|
+
useHMSStore as useHMSStore72,
|
22041
22065
|
useParticipants as useParticipants2,
|
22042
22066
|
usePreviewJoin,
|
22043
22067
|
useRecordingStreaming as useRecordingStreaming11
|
@@ -22046,10 +22070,10 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
22046
22070
|
|
22047
22071
|
// src/Prebuilt/layouts/SidePane.tsx
|
22048
22072
|
init_define_process_env();
|
22049
|
-
import React128, { useEffect as
|
22050
|
-
import { useMedia as
|
22073
|
+
import React128, { useEffect as useEffect34 } from "react";
|
22074
|
+
import { useMedia as useMedia23 } from "react-use";
|
22051
22075
|
import { match as match11 } from "ts-pattern";
|
22052
|
-
import { selectAppData as
|
22076
|
+
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
|
22053
22077
|
|
22054
22078
|
// src/Prebuilt/components/Polls/Polls.tsx
|
22055
22079
|
init_define_process_env();
|
@@ -22057,21 +22081,21 @@ import React101 from "react";
|
|
22057
22081
|
|
22058
22082
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
22059
22083
|
init_define_process_env();
|
22060
|
-
import React82, { useEffect as
|
22084
|
+
import React82, { useEffect as useEffect22, useMemo as useMemo6, useRef as useRef17, useState as useState35 } from "react";
|
22061
22085
|
import {
|
22062
22086
|
selectLocalPeerRoleName,
|
22063
22087
|
selectPermissions as selectPermissions15,
|
22064
22088
|
selectPolls as selectPolls2,
|
22065
22089
|
useHMSActions as useHMSActions28,
|
22066
|
-
useHMSStore as
|
22090
|
+
useHMSStore as useHMSStore44
|
22067
22091
|
} from "@100mslive/react-sdk";
|
22068
22092
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
22069
22093
|
|
22070
22094
|
// src/Prebuilt/components/Streaming/Common.jsx
|
22071
22095
|
init_define_process_env();
|
22072
22096
|
import React80 from "react";
|
22073
|
-
import { selectPermissions as selectPermissions14, useHMSStore as
|
22074
|
-
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as
|
22097
|
+
import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
|
22098
|
+
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon14, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
|
22075
22099
|
var ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
22076
22100
|
return /* @__PURE__ */ React80.createElement(
|
22077
22101
|
Flex,
|
@@ -22102,7 +22126,7 @@ var ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
|
22102
22126
|
},
|
22103
22127
|
title
|
22104
22128
|
) : null, /* @__PURE__ */ React80.createElement(Text, { variant: "h6" }, content)),
|
22105
|
-
onClose ? /* @__PURE__ */ React80.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React80.createElement(
|
22129
|
+
onClose ? /* @__PURE__ */ React80.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React80.createElement(CrossIcon14, null)) : null
|
22106
22130
|
);
|
22107
22131
|
};
|
22108
22132
|
var Container3 = ({ children, rounded = false }) => {
|
@@ -22170,7 +22194,7 @@ var StatusIndicator = ({ status }) => {
|
|
22170
22194
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
22171
22195
|
var PollsQuizMenu = () => {
|
22172
22196
|
const togglePollView = usePollViewToggle();
|
22173
|
-
const permissions =
|
22197
|
+
const permissions = useHMSStore44(selectPermissions15);
|
22174
22198
|
return /* @__PURE__ */ React82.createElement(Container3, { rounded: true }, /* @__PURE__ */ React82.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ React82.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, permissions?.pollWrite && /* @__PURE__ */ React82.createElement(AddMenu, null), /* @__PURE__ */ React82.createElement(PrevMenu, null)));
|
22175
22199
|
};
|
22176
22200
|
function InteractionSelectionCard({
|
@@ -22212,14 +22236,14 @@ function InteractionSelectionCard({
|
|
22212
22236
|
var AddMenu = () => {
|
22213
22237
|
const actions = useHMSActions28();
|
22214
22238
|
const [title, setTitle] = useState35("");
|
22215
|
-
const localPeerRoleName =
|
22239
|
+
const localPeerRoleName = useHMSStore44(selectLocalPeerRoleName);
|
22216
22240
|
const [hideVoteCount, setHideVoteCount] = useState35(false);
|
22217
22241
|
const [error, setError] = useState35();
|
22218
22242
|
const [titleError, setTitleError] = useState35("");
|
22219
22243
|
const { setPollState } = usePollViewState();
|
22220
22244
|
const [interactionType, setInteractionType] = useState35("Poll" /* POLL */);
|
22221
22245
|
const inputRef = useRef17(null);
|
22222
|
-
|
22246
|
+
useEffect22(() => {
|
22223
22247
|
if (inputRef.current) {
|
22224
22248
|
inputRef.current.focus();
|
22225
22249
|
}
|
@@ -22294,13 +22318,13 @@ var AddMenu = () => {
|
|
22294
22318
|
};
|
22295
22319
|
var PrevMenu = () => {
|
22296
22320
|
const hmsActions = useHMSActions28();
|
22297
|
-
const polls =
|
22321
|
+
const polls = useHMSStore44(selectPolls2);
|
22298
22322
|
const sortedPolls = useMemo6(
|
22299
22323
|
() => polls?.sort((a2, b2) => (b2.createdAt?.getTime() || 0) - (a2.createdAt?.getTime() || 0))?.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0)),
|
22300
22324
|
[polls]
|
22301
22325
|
);
|
22302
|
-
const permissions =
|
22303
|
-
|
22326
|
+
const permissions = useHMSStore44(selectPermissions15);
|
22327
|
+
useEffect22(() => {
|
22304
22328
|
const updatePolls = async () => {
|
22305
22329
|
await hmsActions.interactivityCenter.getPolls();
|
22306
22330
|
};
|
@@ -22338,7 +22362,7 @@ var InteractionCard = ({ id, title, status }) => {
|
|
22338
22362
|
init_define_process_env();
|
22339
22363
|
import React92, { useMemo as useMemo8, useState as useState37 } from "react";
|
22340
22364
|
import { v4 as uuid2 } from "uuid";
|
22341
|
-
import { selectPollByID, useHMSActions as useHMSActions29, useHMSStore as
|
22365
|
+
import { selectPollByID, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
22342
22366
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
22343
22367
|
|
22344
22368
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
@@ -22349,7 +22373,7 @@ import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
|
|
22349
22373
|
// src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
|
22350
22374
|
init_define_process_env();
|
22351
22375
|
import React83 from "react";
|
22352
|
-
import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as
|
22376
|
+
import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
|
22353
22377
|
var DeleteQuestionModal = ({
|
22354
22378
|
open,
|
22355
22379
|
setOpen,
|
@@ -22376,7 +22400,7 @@ var DeleteQuestionModal = ({
|
|
22376
22400
|
},
|
22377
22401
|
onClick: () => setOpen(false)
|
22378
22402
|
},
|
22379
|
-
/* @__PURE__ */ React83.createElement(
|
22403
|
+
/* @__PURE__ */ React83.createElement(CrossIcon15, null)
|
22380
22404
|
)
|
22381
22405
|
), /* @__PURE__ */ React83.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "The question will be deleted. You can't undo this action."), /* @__PURE__ */ React83.createElement(Flex, { css: { w: "100%", mt: "$12", gap: "$md" } }, /* @__PURE__ */ React83.createElement(
|
22382
22406
|
Button,
|
@@ -22409,7 +22433,7 @@ var Line = () => /* @__PURE__ */ React84.createElement(Flex, { css: { w: "100%",
|
|
22409
22433
|
// src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx
|
22410
22434
|
init_define_process_env();
|
22411
22435
|
import React88 from "react";
|
22412
|
-
import { CheckCircleIcon, CheckIcon as
|
22436
|
+
import { CheckCircleIcon, CheckIcon as CheckIcon5 } from "@100mslive/react-icons";
|
22413
22437
|
|
22414
22438
|
// src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx
|
22415
22439
|
init_define_process_env();
|
@@ -22497,7 +22521,7 @@ var MultipleChoiceOptions = ({
|
|
22497
22521
|
flexShrink: 0
|
22498
22522
|
}
|
22499
22523
|
},
|
22500
|
-
/* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(
|
22524
|
+
/* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(CheckIcon5, { width: 16, height: 16 }))
|
22501
22525
|
) : null, isStopped && correctOptionIndexes?.includes(option.index) ? /* @__PURE__ */ React88.createElement(Flex, { align: "center", css: { color: "$on_surface_high" } }, /* @__PURE__ */ React88.createElement(CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ React88.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React88.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React88.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ React88.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ React88.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ React88.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && localPeerResponse?.options.includes(option.index) ? /* @__PURE__ */ React88.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
22502
22526
|
}));
|
22503
22527
|
};
|
@@ -22513,7 +22537,7 @@ var MultipleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionT
|
|
22513
22537
|
width: "$9"
|
22514
22538
|
}
|
22515
22539
|
},
|
22516
|
-
/* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(
|
22540
|
+
/* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(CheckIcon5, { width: 16, height: 16 }))
|
22517
22541
|
), /* @__PURE__ */ React88.createElement(
|
22518
22542
|
OptionInputWithDelete,
|
22519
22543
|
{
|
@@ -22875,7 +22899,7 @@ function CreateQuestions() {
|
|
22875
22899
|
const { isHLSRunning } = useRecordingStreaming9();
|
22876
22900
|
const togglePollView = usePollViewToggle();
|
22877
22901
|
const { pollInView: id, setPollView } = usePollViewState();
|
22878
|
-
const interaction =
|
22902
|
+
const interaction = useHMSStore45(selectPollByID(id));
|
22879
22903
|
const [questions, setQuestions] = useState37(
|
22880
22904
|
interaction.questions?.length ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
|
22881
22905
|
);
|
@@ -22970,8 +22994,8 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
|
|
22970
22994
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
22971
22995
|
init_define_process_env();
|
22972
22996
|
import React96, { useState as useState39 } from "react";
|
22973
|
-
import { selectPollByID as selectPollByID3, useHMSStore as
|
22974
|
-
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as
|
22997
|
+
import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
|
22998
|
+
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
|
22975
22999
|
|
22976
23000
|
// src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
|
22977
23001
|
init_define_process_env();
|
@@ -23034,7 +23058,7 @@ var LeaderboardEntry = ({
|
|
23034
23058
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
23035
23059
|
init_define_process_env();
|
23036
23060
|
import React95 from "react";
|
23037
|
-
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as
|
23061
|
+
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
|
23038
23062
|
|
23039
23063
|
// src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
|
23040
23064
|
init_define_process_env();
|
@@ -23055,15 +23079,15 @@ var StatisticBox = ({ title, value = 0 }) => {
|
|
23055
23079
|
|
23056
23080
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
23057
23081
|
init_define_process_env();
|
23058
|
-
import { useEffect as
|
23082
|
+
import { useEffect as useEffect23, useState as useState38 } from "react";
|
23059
23083
|
import {
|
23060
23084
|
selectPollByID as selectPollByID2,
|
23061
23085
|
useHMSActions as useHMSActions30,
|
23062
|
-
useHMSStore as
|
23086
|
+
useHMSStore as useHMSStore46
|
23063
23087
|
} from "@100mslive/react-sdk";
|
23064
23088
|
var useQuizSummary = (quizID) => {
|
23065
23089
|
const hmsActions = useHMSActions30();
|
23066
|
-
const quiz =
|
23090
|
+
const quiz = useHMSStore46(selectPollByID2(quizID));
|
23067
23091
|
const [quizLeaderboard, setQuizLeaderboard] = useState38();
|
23068
23092
|
const summary = quizLeaderboard?.summary || {
|
23069
23093
|
totalUsers: 0,
|
@@ -23073,7 +23097,7 @@ var useQuizSummary = (quizID) => {
|
|
23073
23097
|
correctUsers: 0
|
23074
23098
|
};
|
23075
23099
|
const [calculations, setCalculations] = useState38({ maxPossibleScore: 0, totalResponses: 0 });
|
23076
|
-
|
23100
|
+
useEffect23(() => {
|
23077
23101
|
const fetchLeaderboardData = async () => {
|
23078
23102
|
if (!quizLeaderboard && quiz && !quiz?.anonymous && quiz.state === "stopped") {
|
23079
23103
|
const leaderboardData = await hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
|
@@ -23098,7 +23122,7 @@ var useQuizSummary = (quizID) => {
|
|
23098
23122
|
|
23099
23123
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
23100
23124
|
var PeerParticipationSummary = ({ quiz }) => {
|
23101
|
-
const localPeerId =
|
23125
|
+
const localPeerId = useHMSStore47(selectLocalPeerID8);
|
23102
23126
|
const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
|
23103
23127
|
if (quiz.state !== "stopped") {
|
23104
23128
|
return /* @__PURE__ */ React95.createElement(React95.Fragment, null);
|
@@ -23135,7 +23159,7 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
23135
23159
|
|
23136
23160
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
23137
23161
|
var LeaderboardSummary = ({ pollID }) => {
|
23138
|
-
const quiz =
|
23162
|
+
const quiz = useHMSStore48(selectPollByID3(pollID));
|
23139
23163
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
23140
23164
|
const [viewAllEntries, setViewAllEntries] = useState39(false);
|
23141
23165
|
const { setPollView } = usePollViewState();
|
@@ -23156,7 +23180,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
23156
23180
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
|
23157
23181
|
onClick: toggleSidepane
|
23158
23182
|
},
|
23159
|
-
/* @__PURE__ */ React96.createElement(
|
23183
|
+
/* @__PURE__ */ React96.createElement(CrossIcon16, null)
|
23160
23184
|
)), !viewAllEntries ? /* @__PURE__ */ React96.createElement(PeerParticipationSummary, { quiz }) : null, /* @__PURE__ */ React96.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", mt: "$4" } }, "Leaderboard"), /* @__PURE__ */ React96.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, "Based on score and time taken to cast the correct answer"), /* @__PURE__ */ React96.createElement(
|
23161
23185
|
Box,
|
23162
23186
|
{
|
@@ -23213,9 +23237,9 @@ import {
|
|
23213
23237
|
selectPermissions as selectPermissions16,
|
23214
23238
|
selectPollByID as selectPollByID4,
|
23215
23239
|
useHMSActions as useHMSActions32,
|
23216
|
-
useHMSStore as
|
23240
|
+
useHMSStore as useHMSStore51
|
23217
23241
|
} from "@100mslive/react-sdk";
|
23218
|
-
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as
|
23242
|
+
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
|
23219
23243
|
|
23220
23244
|
// src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
|
23221
23245
|
init_define_process_env();
|
@@ -23225,7 +23249,7 @@ import React98 from "react";
|
|
23225
23249
|
init_define_process_env();
|
23226
23250
|
import React97, { useCallback as useCallback22, useMemo as useMemo9, useRef as useRef19, useState as useState40 } from "react";
|
23227
23251
|
import { match as match8 } from "ts-pattern";
|
23228
|
-
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions31, useHMSStore as
|
23252
|
+
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
|
23229
23253
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
23230
23254
|
var QuestionCard2 = ({
|
23231
23255
|
pollID,
|
@@ -23244,12 +23268,12 @@ var QuestionCard2 = ({
|
|
23244
23268
|
rolesThatCanViewResponses
|
23245
23269
|
}) => {
|
23246
23270
|
const actions = useHMSActions31();
|
23247
|
-
const localPeer =
|
23271
|
+
const localPeer = useHMSStore49(selectLocalPeer);
|
23248
23272
|
const localPeerResponse = responses?.find(
|
23249
23273
|
(response) => response.peer?.peerid === localPeer?.id || response.peer?.userid === localPeer?.customerUserId
|
23250
23274
|
);
|
23251
23275
|
const isLocalPeerCreator = localPeer?.id === startedBy;
|
23252
|
-
const localPeerRoleName =
|
23276
|
+
const localPeerRoleName = useHMSStore49(selectLocalPeerRoleName2);
|
23253
23277
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
23254
23278
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
23255
23279
|
const isLive = pollState === "started";
|
@@ -23435,9 +23459,9 @@ var StandardView = ({ poll }) => {
|
|
23435
23459
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
23436
23460
|
init_define_process_env();
|
23437
23461
|
import React99, { useState as useState41 } from "react";
|
23438
|
-
import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as
|
23462
|
+
import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23439
23463
|
var TimedView = ({ poll }) => {
|
23440
|
-
const localPeerId =
|
23464
|
+
const localPeerId = useHMSStore50(selectLocalPeerID9);
|
23441
23465
|
const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
|
23442
23466
|
const [currentIndex, setCurrentIndex] = useState41(lastAttemptedIndex);
|
23443
23467
|
const activeQuestion = poll.questions?.find((question) => question.index === currentIndex);
|
@@ -23472,9 +23496,9 @@ var TimedView = ({ poll }) => {
|
|
23472
23496
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
23473
23497
|
var Voting = ({ id, toggleVoting }) => {
|
23474
23498
|
const actions = useHMSActions32();
|
23475
|
-
const poll =
|
23476
|
-
const pollCreatorName =
|
23477
|
-
const permissions =
|
23499
|
+
const poll = useHMSStore51(selectPollByID4(id));
|
23500
|
+
const pollCreatorName = useHMSStore51(selectPeerNameByID(poll?.createdBy));
|
23501
|
+
const permissions = useHMSStore51(selectPermissions16);
|
23478
23502
|
const canEndActivity = !!permissions?.pollWrite;
|
23479
23503
|
const { setPollView } = usePollViewState();
|
23480
23504
|
const showSingleView = poll?.type === "quiz" && poll.state === "started";
|
@@ -23516,7 +23540,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
23516
23540
|
height: "fit-content"
|
23517
23541
|
}
|
23518
23542
|
},
|
23519
|
-
/* @__PURE__ */ React100.createElement(
|
23543
|
+
/* @__PURE__ */ React100.createElement(CrossIcon17, { onClick: toggleVoting })
|
23520
23544
|
)
|
23521
23545
|
), /* @__PURE__ */ React100.createElement(Flex, { direction: "column", css: { p: "$8 $10", flex: "1 1 0", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ React100.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, showSingleView ? /* @__PURE__ */ React100.createElement(TimedView, { poll }) : /* @__PURE__ */ React100.createElement(StandardView, { poll })), /* @__PURE__ */ React100.createElement(
|
23522
23546
|
Flex,
|
@@ -23557,15 +23581,15 @@ var Polls = () => {
|
|
23557
23581
|
// src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
|
23558
23582
|
init_define_process_env();
|
23559
23583
|
import React105 from "react";
|
23560
|
-
import { CrossIcon as
|
23584
|
+
import { CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
|
23561
23585
|
|
23562
23586
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
23563
23587
|
init_define_process_env();
|
23564
|
-
import React102, { useEffect as
|
23565
|
-
import { selectDominantSpeaker, useHMSStore as
|
23588
|
+
import React102, { useEffect as useEffect24, useState as useState42 } from "react";
|
23589
|
+
import { selectDominantSpeaker, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
|
23566
23590
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
23567
23591
|
var SpeakerTag = () => {
|
23568
|
-
const dominantSpeaker =
|
23592
|
+
const dominantSpeaker = useHMSStore52(selectDominantSpeaker);
|
23569
23593
|
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React102.createElement(
|
23570
23594
|
Flex,
|
23571
23595
|
{
|
@@ -23590,7 +23614,7 @@ var Logo = () => {
|
|
23590
23614
|
const roomLayout = useRoomLayout();
|
23591
23615
|
const logo = roomLayout?.logo?.url;
|
23592
23616
|
const [hideImage, setHideImage] = useState42(false);
|
23593
|
-
|
23617
|
+
useEffect24(() => {
|
23594
23618
|
if (hideImage) {
|
23595
23619
|
setHideImage(false);
|
23596
23620
|
}
|
@@ -23614,10 +23638,10 @@ import React104 from "react";
|
|
23614
23638
|
|
23615
23639
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
23616
23640
|
init_define_process_env();
|
23617
|
-
import React103, { useEffect as
|
23641
|
+
import React103, { useEffect as useEffect25, useState as useState43 } from "react";
|
23618
23642
|
var Duration = ({ timestamp }) => {
|
23619
23643
|
const [elapsedTime, setElapsedTime] = useState43(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23620
|
-
|
23644
|
+
useEffect25(() => {
|
23621
23645
|
const timerAdded = setInterval(() => {
|
23622
23646
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23623
23647
|
}, 1e3);
|
@@ -23653,30 +23677,30 @@ var ShowRoomDetailHeader = () => {
|
|
23653
23677
|
"&:hover": { opacity: "0.8" }
|
23654
23678
|
}
|
23655
23679
|
},
|
23656
|
-
/* @__PURE__ */ React105.createElement(
|
23680
|
+
/* @__PURE__ */ React105.createElement(CrossIcon18, null)
|
23657
23681
|
)), /* @__PURE__ */ React105.createElement(RoomDetailsRow, { details }));
|
23658
23682
|
};
|
23659
23683
|
|
23660
23684
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
23661
23685
|
init_define_process_env();
|
23662
|
-
import React120, { useEffect as
|
23663
|
-
import { useMedia as
|
23686
|
+
import React120, { useEffect as useEffect32, useState as useState52 } from "react";
|
23687
|
+
import { useMedia as useMedia19 } from "react-use";
|
23664
23688
|
import { match as match10 } from "ts-pattern";
|
23665
|
-
import { selectPeerCount as selectPeerCount5, useHMSStore as
|
23666
|
-
import { CrossIcon as
|
23689
|
+
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
|
23690
|
+
import { CrossIcon as CrossIcon22 } from "@100mslive/react-icons";
|
23667
23691
|
|
23668
23692
|
// src/Prebuilt/components/Chat/Chat.tsx
|
23669
23693
|
init_define_process_env();
|
23670
23694
|
import React117, { useCallback as useCallback30, useRef as useRef23 } from "react";
|
23671
|
-
import { useMedia as
|
23695
|
+
import { useMedia as useMedia18 } from "react-use";
|
23672
23696
|
import { match as match9 } from "ts-pattern";
|
23673
|
-
import { selectHMSMessagesCount, useHMSActions as useHMSActions40, useHMSStore as
|
23697
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions40, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
23674
23698
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
23675
23699
|
|
23676
23700
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
23677
23701
|
init_define_process_env();
|
23678
|
-
import React109, { Fragment as Fragment10, useCallback as useCallback26, useEffect as
|
23679
|
-
import { useMedia as
|
23702
|
+
import React109, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect27, useLayoutEffect, useMemo as useMemo10, useRef as useRef20, useState as useState46 } from "react";
|
23703
|
+
import { useMedia as useMedia13 } from "react-use";
|
23680
23704
|
import AutoSizer from "react-virtualized-auto-sizer";
|
23681
23705
|
import { VariableSizeList } from "react-window";
|
23682
23706
|
import {
|
@@ -23688,7 +23712,7 @@ import {
|
|
23688
23712
|
selectSessionStore as selectSessionStore5,
|
23689
23713
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
23690
23714
|
useHMSActions as useHMSActions36,
|
23691
|
-
useHMSStore as
|
23715
|
+
useHMSStore as useHMSStore56,
|
23692
23716
|
useHMSVanillaStore as useHMSVanillaStore9
|
23693
23717
|
} from "@100mslive/react-sdk";
|
23694
23718
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
@@ -23696,11 +23720,11 @@ import { SolidPinIcon } from "@100mslive/react-icons";
|
|
23696
23720
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
23697
23721
|
init_define_process_env();
|
23698
23722
|
import React107, { useCallback as useCallback25, useState as useState44 } from "react";
|
23699
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions35, useHMSStore as
|
23723
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
23700
23724
|
import {
|
23701
23725
|
CopyIcon as CopyIcon2,
|
23702
23726
|
CrossCircleIcon as CrossCircleIcon2,
|
23703
|
-
CrossIcon as
|
23727
|
+
CrossIcon as CrossIcon19,
|
23704
23728
|
EyeCloseIcon as EyeCloseIcon2,
|
23705
23729
|
PeopleRemoveIcon as PeopleRemoveIcon3,
|
23706
23730
|
PinIcon,
|
@@ -23724,10 +23748,10 @@ var MwebChatOption = ({
|
|
23724
23748
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
23725
23749
|
init_define_process_env();
|
23726
23750
|
import { useCallback as useCallback23 } from "react";
|
23727
|
-
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions33, useHMSStore as
|
23751
|
+
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions33, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
23728
23752
|
var useChatBlacklist = (sessionStoreKey) => {
|
23729
23753
|
const hmsActions = useHMSActions33();
|
23730
|
-
const blacklistedIDs =
|
23754
|
+
const blacklistedIDs = useHMSStore53(selectSessionStore2(sessionStoreKey));
|
23731
23755
|
const blacklistItem = useCallback23(
|
23732
23756
|
async (blacklistID) => {
|
23733
23757
|
await hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -23737,8 +23761,8 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
23737
23761
|
return { blacklistItem, blacklistedIDs };
|
23738
23762
|
};
|
23739
23763
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
23740
|
-
const localPeer =
|
23741
|
-
const blacklistedPeerIDs =
|
23764
|
+
const localPeer = useHMSStore53(selectLocalPeer2);
|
23765
|
+
const blacklistedPeerIDs = useHMSStore53(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
23742
23766
|
return blacklistedPeerIDs?.includes(local ? localPeer?.customerUserId : peerCustomerUserId);
|
23743
23767
|
};
|
23744
23768
|
|
@@ -23820,9 +23844,9 @@ var ChatActions = ({
|
|
23820
23844
|
const { roles_whitelist = [] } = elements?.chat || {};
|
23821
23845
|
const [open, setOpen] = useState44(false);
|
23822
23846
|
const actions = useHMSActions35();
|
23823
|
-
const canRemoveOthers =
|
23847
|
+
const canRemoveOthers = useHMSStore54(selectPermissions17)?.removeOthers;
|
23824
23848
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
23825
|
-
const localPeerName =
|
23849
|
+
const localPeerName = useHMSStore54(selectLocalPeerName2);
|
23826
23850
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
23827
23851
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
23828
23852
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -23932,7 +23956,7 @@ var ChatActions = ({
|
|
23932
23956
|
}
|
23933
23957
|
},
|
23934
23958
|
"Message options",
|
23935
|
-
/* @__PURE__ */ React107.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React107.createElement(
|
23959
|
+
/* @__PURE__ */ React107.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React107.createElement(CrossIcon19, null))
|
23936
23960
|
), Object.keys(options).map((optionKey) => {
|
23937
23961
|
const option = options[optionKey];
|
23938
23962
|
return option.show ? /* @__PURE__ */ React107.createElement(
|
@@ -24002,7 +24026,7 @@ var ChatActions = ({
|
|
24002
24026
|
// src/Prebuilt/components/Chat/EmptyChat.tsx
|
24003
24027
|
init_define_process_env();
|
24004
24028
|
import React108 from "react";
|
24005
|
-
import { useMedia as
|
24029
|
+
import { useMedia as useMedia12 } from "react-use";
|
24006
24030
|
|
24007
24031
|
// src/Prebuilt/images/empty-chat.svg
|
24008
24032
|
var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewBox="0 0 184 133" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M144.885 91.3998C145.318 91.023 145.861 90.7947 146.433 90.7483L146.446 90.7473L169.355 89.1614C169.702 89.1376 170.049 89.2101 170.358 89.3712C170.662 89.5305 170.918 89.7702 171.096 90.0642C171.098 90.0672 171.1 90.0703 171.102 90.0734L171.104 90.0766C171.281 90.3744 171.373 90.7154 171.369 91.062C171.365 91.4097 171.265 91.7496 171.08 92.044L158.85 111.504C158.539 111.986 158.081 112.356 157.544 112.56C157.007 112.764 156.419 112.791 155.866 112.636C155.313 112.482 154.823 112.155 154.469 111.703C154.115 111.25 153.915 110.697 153.898 110.123C153.898 110.109 153.898 110.094 153.898 110.08L153.996 100.307L145.347 95.7858C145.334 95.779 145.321 95.7721 145.308 95.7649C144.811 95.4785 144.417 95.0404 144.186 94.5146C143.955 93.9888 143.898 93.4029 144.024 92.8425C144.15 92.2821 144.451 91.7765 144.885 91.3998ZM167.441 91.0088L146.603 92.8952C146.49 92.9053 146.383 92.9508 146.298 93.0251C146.211 93.1005 146.151 93.2016 146.125 93.3137C146.1 93.4257 146.112 93.5429 146.158 93.6481C146.202 93.7484 146.276 93.8327 146.369 93.89L155.26 98.296L167.441 91.0088ZM156.32 100.171L168.547 92.8564L157.039 110.339C156.976 110.434 156.886 110.506 156.78 110.547C156.673 110.587 156.555 110.593 156.444 110.562C156.334 110.531 156.236 110.466 156.165 110.375C156.097 110.289 156.058 110.184 156.052 110.075L156.32 100.171Z" fill="%23444954"/>%0A<path d="M83.3248 35.4156C71.7182 47.1017 51.2098 75.5175 62.0292 95.6918C75.5536 120.91 140.453 79.2983 115.364 67.6657C90.2756 56.0331 65.8818 122.018 101.568 120.391C116.398 118.62 131.221 114.699 145.703 105.512" stroke="%23293042" stroke-width="2.25" stroke-dasharray="6 6"/>%0A<rect x="0.00256348" y="0.5" width="173.524" height="58.3398" rx="29.1699" fill="%23272A31"/>%0A<g opacity="0.4">%0A<rect x="24.7526" y="20.9312" width="111" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<g opacity="0.4">%0A<rect x="38.2526" y="34.4312" width="110.25" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<path d="M40.3918 71.5547L28.4246 55.0999L52.3589 55.0999L40.3918 71.5547Z" fill="%23272A31"/>%0A</svg>%0A';
|
@@ -24011,7 +24035,7 @@ var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewB
|
|
24011
24035
|
var EmptyChat = () => {
|
24012
24036
|
const { elements } = useRoomLayoutConferencingScreen();
|
24013
24037
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
24014
|
-
const isMobile =
|
24038
|
+
const isMobile = useMedia12(config.media.md);
|
24015
24039
|
const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
|
24016
24040
|
const isMobileHLSStream = useMobileHLSStream();
|
24017
24041
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -24043,12 +24067,12 @@ var EmptyChat = () => {
|
|
24043
24067
|
|
24044
24068
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
24045
24069
|
init_define_process_env();
|
24046
|
-
import { useEffect as
|
24047
|
-
import { selectSessionStore as selectSessionStore4, useHMSStore as
|
24070
|
+
import { useEffect as useEffect26, useState as useState45 } from "react";
|
24071
|
+
import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
24048
24072
|
var usePinnedBy = (messageId) => {
|
24049
|
-
const pinnedMessages =
|
24073
|
+
const pinnedMessages = useHMSStore55(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
24050
24074
|
const [pinnedBy, setPinnedBy] = useState45("");
|
24051
|
-
|
24075
|
+
useEffect26(() => {
|
24052
24076
|
let match16 = "";
|
24053
24077
|
pinnedMessages?.forEach((pinnedMessage) => {
|
24054
24078
|
if (pinnedMessage.id === messageId) {
|
@@ -24127,8 +24151,8 @@ var MessageType = ({
|
|
24127
24151
|
hasCurrentUserSent,
|
24128
24152
|
receiver
|
24129
24153
|
}) => {
|
24130
|
-
const peerName =
|
24131
|
-
const localPeerRoleName =
|
24154
|
+
const peerName = useHMSStore56(selectPeerNameByID3(receiver));
|
24155
|
+
const localPeerRoleName = useHMSStore56(selectLocalPeerRoleName3);
|
24132
24156
|
if (receiver) {
|
24133
24157
|
return /* @__PURE__ */ React109.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
24134
24158
|
}
|
@@ -24172,10 +24196,10 @@ var ChatMessage = React109.memo(
|
|
24172
24196
|
({ index, style = {}, message }) => {
|
24173
24197
|
const { elements } = useRoomLayoutConferencingScreen();
|
24174
24198
|
const rowRef = useRef20(null);
|
24175
|
-
const isMobile =
|
24199
|
+
const isMobile = useMedia13(config.media.md);
|
24176
24200
|
const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
|
24177
24201
|
const isOverlay = elements?.chat?.is_overlay && isMobile;
|
24178
|
-
const localPeerId =
|
24202
|
+
const localPeerId = useHMSStore56(selectLocalPeerID10);
|
24179
24203
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24180
24204
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24181
24205
|
const messageType = getMessageType({
|
@@ -24343,7 +24367,7 @@ var VirtualizedChatMessages = React109.forwardRef(({ messages, scrollToBottom },
|
|
24343
24367
|
const itemKey2 = useCallback26((index, data3) => {
|
24344
24368
|
return data3[index].id;
|
24345
24369
|
}, []);
|
24346
|
-
|
24370
|
+
useEffect27(() => {
|
24347
24371
|
requestAnimationFrame(() => scrollToBottom(1));
|
24348
24372
|
}, [scrollToBottom]);
|
24349
24373
|
return /* @__PURE__ */ React109.createElement(
|
@@ -24394,15 +24418,15 @@ var VirtualizedChatMessages = React109.forwardRef(({ messages, scrollToBottom },
|
|
24394
24418
|
});
|
24395
24419
|
var ChatBody = React109.forwardRef(
|
24396
24420
|
({ scrollToBottom }, listRef) => {
|
24397
|
-
const messages =
|
24398
|
-
const blacklistedMessageIDs =
|
24421
|
+
const messages = useHMSStore56(selectHMSMessages);
|
24422
|
+
const blacklistedMessageIDs = useHMSStore56(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
24399
24423
|
const filteredMessages = useMemo10(() => {
|
24400
24424
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
24401
24425
|
return messages?.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id)) || [];
|
24402
24426
|
}, [blacklistedMessageIDs, messages]);
|
24403
24427
|
const vanillaStore = useHMSVanillaStore9();
|
24404
24428
|
const rerenderOnFirstMount = useRef20(false);
|
24405
|
-
|
24429
|
+
useEffect27(() => {
|
24406
24430
|
const unsubscribe = vanillaStore.subscribe(() => {
|
24407
24431
|
if (!listRef.current) {
|
24408
24432
|
return;
|
@@ -24414,7 +24438,7 @@ var ChatBody = React109.forwardRef(
|
|
24414
24438
|
}, selectUnreadHMSMessagesCount2);
|
24415
24439
|
return unsubscribe;
|
24416
24440
|
}, [vanillaStore, listRef, scrollToBottom]);
|
24417
|
-
|
24441
|
+
useEffect27(() => {
|
24418
24442
|
if (filteredMessages.length > 0 && listRef?.current && !rerenderOnFirstMount.current) {
|
24419
24443
|
rerenderOnFirstMount.current = true;
|
24420
24444
|
listRef.current.resetAfterIndex(0);
|
@@ -24429,7 +24453,7 @@ var PinnedBy = ({
|
|
24429
24453
|
rowRef
|
24430
24454
|
}) => {
|
24431
24455
|
const pinnedBy = usePinnedBy(messageId);
|
24432
|
-
const localPeerName =
|
24456
|
+
const localPeerName = useHMSStore56(selectLocalPeerName3);
|
24433
24457
|
useLayoutEffect(() => {
|
24434
24458
|
if (rowRef?.current) {
|
24435
24459
|
if (pinnedBy) {
|
@@ -24448,32 +24472,32 @@ var PinnedBy = ({
|
|
24448
24472
|
|
24449
24473
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
24450
24474
|
init_define_process_env();
|
24451
|
-
import React112, { useCallback as useCallback28, useEffect as
|
24452
|
-
import { useMedia as
|
24475
|
+
import React112, { useCallback as useCallback28, useEffect as useEffect29, useRef as useRef22, useState as useState49 } from "react";
|
24476
|
+
import { useMedia as useMedia16 } from "react-use";
|
24453
24477
|
import data2 from "@emoji-mart/data";
|
24454
24478
|
import Picker from "@emoji-mart/react";
|
24455
|
-
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions38, useHMSStore as
|
24479
|
+
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions38, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
24456
24480
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24457
24481
|
|
24458
24482
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24459
24483
|
init_define_process_env();
|
24460
24484
|
import React111, { useState as useState48 } from "react";
|
24461
|
-
import { useMedia as
|
24462
|
-
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as
|
24485
|
+
import { useMedia as useMedia15 } from "react-use";
|
24486
|
+
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon20, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
|
24463
24487
|
|
24464
24488
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
24465
24489
|
init_define_process_env();
|
24466
24490
|
import React110, { useMemo as useMemo11, useState as useState47 } from "react";
|
24467
|
-
import { useMedia as
|
24491
|
+
import { useMedia as useMedia14 } from "react-use";
|
24468
24492
|
import {
|
24469
24493
|
HMSPeerType as HMSPeerType3,
|
24470
24494
|
selectMessagesUnreadCountByPeerID,
|
24471
24495
|
selectMessagesUnreadCountByRole,
|
24472
24496
|
selectRemotePeers as selectRemotePeers2,
|
24473
24497
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
|
24474
|
-
useHMSStore as
|
24498
|
+
useHMSStore as useHMSStore57
|
24475
24499
|
} from "@100mslive/react-sdk";
|
24476
|
-
import { CheckIcon as
|
24500
|
+
import { CheckIcon as CheckIcon6, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
|
24477
24501
|
var ChatDotIcon = () => {
|
24478
24502
|
return /* @__PURE__ */ React110.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
|
24479
24503
|
};
|
@@ -24484,7 +24508,7 @@ var SelectorItem = ({
|
|
24484
24508
|
unreadCount,
|
24485
24509
|
icon = void 0
|
24486
24510
|
}) => {
|
24487
|
-
const isMobile =
|
24511
|
+
const isMobile = useMedia14(config.media.md);
|
24488
24512
|
const Root28 = !isMobile ? Dropdown.Item : ({ children, ...rest }) => /* @__PURE__ */ React110.createElement(Flex, { ...rest, css: { p: "$6 $8", ...rest.css } }, children);
|
24489
24513
|
return /* @__PURE__ */ React110.createElement(
|
24490
24514
|
Root28,
|
@@ -24502,7 +24526,7 @@ var SelectorItem = ({
|
|
24502
24526
|
icon,
|
24503
24527
|
value
|
24504
24528
|
),
|
24505
|
-
/* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React110.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React110.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React110.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React110.createElement(
|
24529
|
+
/* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React110.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React110.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React110.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React110.createElement(CheckIcon6, { width: 16, height: 16 }))
|
24506
24530
|
);
|
24507
24531
|
};
|
24508
24532
|
var SelectorHeader = React110.memo(
|
@@ -24518,7 +24542,7 @@ var SelectorHeader = React110.memo(
|
|
24518
24542
|
}
|
24519
24543
|
);
|
24520
24544
|
var Everyone = React110.memo(({ active }) => {
|
24521
|
-
const unreadCount =
|
24545
|
+
const unreadCount = useHMSStore57(selectUnreadHMSMessagesCount3);
|
24522
24546
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24523
24547
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24524
24548
|
return /* @__PURE__ */ React110.createElement(
|
@@ -24536,7 +24560,7 @@ var Everyone = React110.memo(({ active }) => {
|
|
24536
24560
|
);
|
24537
24561
|
});
|
24538
24562
|
var RoleItem = React110.memo(({ role, active }) => {
|
24539
|
-
const unreadCount =
|
24563
|
+
const unreadCount = useHMSStore57(selectMessagesUnreadCountByRole(role));
|
24540
24564
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24541
24565
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24542
24566
|
return /* @__PURE__ */ React110.createElement(
|
@@ -24553,7 +24577,7 @@ var RoleItem = React110.memo(({ role, active }) => {
|
|
24553
24577
|
);
|
24554
24578
|
});
|
24555
24579
|
var PeerItem = ({ peerId, name, active }) => {
|
24556
|
-
const unreadCount =
|
24580
|
+
const unreadCount = useHMSStore57(selectMessagesUnreadCountByPeerID(peerId));
|
24557
24581
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24558
24582
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24559
24583
|
return /* @__PURE__ */ React110.createElement(
|
@@ -24611,7 +24635,7 @@ var VirtualizedSelectItemList = ({
|
|
24611
24635
|
};
|
24612
24636
|
var ChatSelector = ({ role, peerId }) => {
|
24613
24637
|
const { elements } = useRoomLayoutConferencingScreen();
|
24614
|
-
const peers =
|
24638
|
+
const peers = useHMSStore57(selectRemotePeers2);
|
24615
24639
|
const [search, setSearch] = useState47("");
|
24616
24640
|
const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
|
24617
24641
|
const isPublicChatEnabled = !!elements?.chat?.public_chat_enabled;
|
@@ -24630,7 +24654,7 @@ var ChatSelector = ({ role, peerId }) => {
|
|
24630
24654
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24631
24655
|
var ChatSelectorContainer = () => {
|
24632
24656
|
const [open, setOpen] = useState48(false);
|
24633
|
-
const isMobile =
|
24657
|
+
const isMobile = useMedia15(config.media.md);
|
24634
24658
|
const { elements } = useRoomLayoutConferencingScreen();
|
24635
24659
|
const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
|
24636
24660
|
const isPublicChatEnabled = !!elements?.chat?.public_chat_enabled;
|
@@ -24733,7 +24757,7 @@ var ChatSelectorContainer = () => {
|
|
24733
24757
|
}
|
24734
24758
|
},
|
24735
24759
|
/* @__PURE__ */ React111.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, "Chat with"),
|
24736
|
-
/* @__PURE__ */ React111.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React111.createElement(
|
24760
|
+
/* @__PURE__ */ React111.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React111.createElement(CrossIcon20, null))
|
24737
24761
|
), /* @__PURE__ */ React111.createElement(
|
24738
24762
|
Box,
|
24739
24763
|
{
|
@@ -24748,10 +24772,10 @@ var ChatSelectorContainer = () => {
|
|
24748
24772
|
// src/Prebuilt/components/AppData/useChatState.js
|
24749
24773
|
init_define_process_env();
|
24750
24774
|
import { useCallback as useCallback27 } from "react";
|
24751
|
-
import { selectAppData as
|
24775
|
+
import { selectAppData as selectAppData7, useHMSActions as useHMSActions37, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
24752
24776
|
var useChatDraftMessage = () => {
|
24753
24777
|
const hmsActions = useHMSActions37();
|
24754
|
-
let chatDraftMessage =
|
24778
|
+
let chatDraftMessage = useHMSStore58(selectAppData7(APP_DATA.chatDraft));
|
24755
24779
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
24756
24780
|
chatDraftMessage = "";
|
24757
24781
|
}
|
@@ -24766,10 +24790,10 @@ var useChatDraftMessage = () => {
|
|
24766
24790
|
|
24767
24791
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
24768
24792
|
init_define_process_env();
|
24769
|
-
import { useEffect as
|
24793
|
+
import { useEffect as useEffect28, useRef as useRef21 } from "react";
|
24770
24794
|
var useEmojiPickerStyles = (showing) => {
|
24771
24795
|
const ref = useRef21(null);
|
24772
|
-
|
24796
|
+
useEffect28(() => {
|
24773
24797
|
if (showing) {
|
24774
24798
|
setTimeout(() => {
|
24775
24799
|
const root = ref.current?.querySelector("em-emoji-picker")?.shadowRoot;
|
@@ -24845,10 +24869,10 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24845
24869
|
const hmsActions = useHMSActions38();
|
24846
24870
|
const inputRef = useRef22(null);
|
24847
24871
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
24848
|
-
const isMobile =
|
24872
|
+
const isMobile = useMedia16(config.media.md);
|
24849
24873
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
24850
24874
|
const message_placeholder = elements?.chat?.message_placeholder || "Send a message";
|
24851
|
-
const localPeer =
|
24875
|
+
const localPeer = useHMSStore59(selectLocalPeer3);
|
24852
24876
|
const isOverlayChat = elements?.chat?.is_overlay;
|
24853
24877
|
const canDisableChat = !!elements?.chat?.real_time_controls?.can_disable_chat;
|
24854
24878
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -24858,7 +24882,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24858
24882
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
24859
24883
|
const isMwebHLSStream = useMobileHLSStream();
|
24860
24884
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
24861
|
-
|
24885
|
+
useEffect29(() => {
|
24862
24886
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
24863
24887
|
setRoleSelector(defaultSelection);
|
24864
24888
|
} else {
|
@@ -24891,13 +24915,13 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24891
24915
|
});
|
24892
24916
|
}
|
24893
24917
|
}, [selectedRole, selectedPeer, hmsActions, onSend]);
|
24894
|
-
|
24918
|
+
useEffect29(() => {
|
24895
24919
|
const messageElement = inputRef.current;
|
24896
24920
|
if (messageElement) {
|
24897
24921
|
messageElement.value = draftMessage;
|
24898
24922
|
}
|
24899
24923
|
}, [draftMessage]);
|
24900
|
-
|
24924
|
+
useEffect29(() => {
|
24901
24925
|
const messageElement = inputRef.current;
|
24902
24926
|
return () => {
|
24903
24927
|
setDraftMessage(messageElement?.value || "");
|
@@ -25028,13 +25052,13 @@ var ChatFooter = ({ onSend, children }) => {
|
|
25028
25052
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
25029
25053
|
init_define_process_env();
|
25030
25054
|
import React113, { useCallback as useCallback29 } from "react";
|
25031
|
-
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions39, useHMSStore as
|
25055
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
25032
25056
|
var ChatPaused = () => {
|
25033
25057
|
const hmsActions = useHMSActions39();
|
25034
25058
|
const { elements } = useRoomLayoutConferencingScreen();
|
25035
25059
|
const can_disable_chat = !!elements?.chat?.real_time_controls?.can_disable_chat;
|
25036
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } =
|
25037
|
-
const localPeer =
|
25060
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
25061
|
+
const localPeer = useHMSStore60(selectLocalPeer4);
|
25038
25062
|
const unPauseChat = useCallback29(
|
25039
25063
|
async () => await hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
25040
25064
|
enabled: true,
|
@@ -25080,10 +25104,10 @@ var ChatBlocked = () => {
|
|
25080
25104
|
|
25081
25105
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
25082
25106
|
init_define_process_env();
|
25083
|
-
import React116, { useEffect as
|
25107
|
+
import React116, { useEffect as useEffect30, useState as useState50 } from "react";
|
25084
25108
|
import { useSwipeable } from "react-swipeable";
|
25085
|
-
import { useMedia as
|
25086
|
-
import { selectSessionStore as selectSessionStore7, useHMSStore as
|
25109
|
+
import { useMedia as useMedia17 } from "react-use";
|
25110
|
+
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
|
25087
25111
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
25088
25112
|
|
25089
25113
|
// src/Prebuilt/components/Chat/ArrowNavigation.tsx
|
@@ -25139,10 +25163,10 @@ var StickIndicator = ({ total, index }) => {
|
|
25139
25163
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
25140
25164
|
var PINNED_MESSAGE_LENGTH = 75;
|
25141
25165
|
var PinnedMessage = () => {
|
25142
|
-
const pinnedMessages =
|
25166
|
+
const pinnedMessages = useHMSStore61(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
25143
25167
|
const [pinnedMessageIndex, setPinnedMessageIndex] = useState50(0);
|
25144
25168
|
const { removePinnedMessage } = usePinnedMessages();
|
25145
|
-
const isMobile =
|
25169
|
+
const isMobile = useMedia17(config.media.md);
|
25146
25170
|
const { elements } = useRoomLayoutConferencingScreen();
|
25147
25171
|
const canUnpinMessage = !!elements?.chat?.allow_pinning_messages;
|
25148
25172
|
const [hideOverflow, setHideOverflow] = useState50(true);
|
@@ -25162,7 +25186,7 @@ var PinnedMessage = () => {
|
|
25162
25186
|
onSwipedUp: () => showNextPinnedMessage(),
|
25163
25187
|
onSwipedDown: () => showPreviousPinnedMessage()
|
25164
25188
|
});
|
25165
|
-
|
25189
|
+
useEffect30(() => {
|
25166
25190
|
const count = pinnedMessages?.length || 1;
|
25167
25191
|
if (pinnedMessageIndex >= count) {
|
25168
25192
|
setPinnedMessageIndex(count - 1);
|
@@ -25257,10 +25281,11 @@ var Chat = () => {
|
|
25257
25281
|
const listRef = useRef23(null);
|
25258
25282
|
const hmsActions = useHMSActions40();
|
25259
25283
|
const vanillaStore = useHMSVanillaStore10();
|
25260
|
-
const { enabled: isChatEnabled = true } =
|
25261
|
-
const isMobile =
|
25284
|
+
const { enabled: isChatEnabled = true } = useHMSStore62(Sm("chatState" /* CHAT_STATE */)) || {};
|
25285
|
+
const isMobile = useMedia18(config.media.md);
|
25262
25286
|
const isMobileHLSStream = useMobileHLSStream();
|
25263
25287
|
const isLandscapeStream = useLandscapeHLSStream();
|
25288
|
+
useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
|
25264
25289
|
const scrollToBottom = useCallback30(
|
25265
25290
|
(unreadCount = 0) => {
|
25266
25291
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
@@ -25274,9 +25299,6 @@ var Chat = () => {
|
|
25274
25299
|
},
|
25275
25300
|
[hmsActions, vanillaStore]
|
25276
25301
|
);
|
25277
|
-
if (!elements?.chat) {
|
25278
|
-
return null;
|
25279
|
-
}
|
25280
25302
|
const streaming = isMobileHLSStream || isLandscapeStream;
|
25281
25303
|
return /* @__PURE__ */ React117.createElement(
|
25282
25304
|
Flex,
|
@@ -25340,7 +25362,7 @@ var NewMessageIndicator = ({
|
|
25340
25362
|
scrollToBottom,
|
25341
25363
|
listRef
|
25342
25364
|
}) => {
|
25343
|
-
const unreadCount =
|
25365
|
+
const unreadCount = useHMSStore62(Bh);
|
25344
25366
|
if (!unreadCount || !listRef.current) {
|
25345
25367
|
return null;
|
25346
25368
|
}
|
@@ -25386,12 +25408,12 @@ var NewMessageIndicator = ({
|
|
25386
25408
|
|
25387
25409
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
25388
25410
|
init_define_process_env();
|
25389
|
-
import React118, { useEffect as
|
25411
|
+
import React118, { useEffect as useEffect31, useState as useState51 } from "react";
|
25390
25412
|
import { useInView } from "react-intersection-observer";
|
25391
25413
|
import { useMeasure as useMeasure2 } from "react-use";
|
25392
25414
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
25393
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as
|
25394
|
-
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as
|
25415
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore63, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
25416
|
+
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
|
25395
25417
|
var LoadMoreParticipants = ({
|
25396
25418
|
hasNext,
|
25397
25419
|
loadMore,
|
@@ -25399,7 +25421,7 @@ var LoadMoreParticipants = ({
|
|
25399
25421
|
}) => {
|
25400
25422
|
const { ref, inView } = useInView();
|
25401
25423
|
const [inProgress, setInProgress] = useState51(false);
|
25402
|
-
|
25424
|
+
useEffect31(() => {
|
25403
25425
|
if (hasNext && inView && !inProgress) {
|
25404
25426
|
setInProgress(true);
|
25405
25427
|
loadMore().catch(console.error).finally(() => setInProgress(false));
|
@@ -25431,11 +25453,11 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25431
25453
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
|
25432
25454
|
const [search, setSearch] = useState51("");
|
25433
25455
|
const filteredPeers = peers.filter((p) => p.name?.toLowerCase().includes(search?.toLowerCase()));
|
25434
|
-
const isConnected =
|
25456
|
+
const isConnected = useHMSStore63(selectIsConnectedToRoom8);
|
25435
25457
|
const [ref, { width }] = useMeasure2();
|
25436
25458
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
25437
25459
|
const resetSidePane = useSidepaneReset();
|
25438
|
-
|
25460
|
+
useEffect31(() => {
|
25439
25461
|
loadPeers();
|
25440
25462
|
}, []);
|
25441
25463
|
return /* @__PURE__ */ React118.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React118.createElement(Flex, { align: "center" }, /* @__PURE__ */ React118.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React118.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React118.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React118.createElement(
|
@@ -25447,7 +25469,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25447
25469
|
},
|
25448
25470
|
"data-testid": "close_sidepane"
|
25449
25471
|
},
|
25450
|
-
/* @__PURE__ */ React118.createElement(
|
25472
|
+
/* @__PURE__ */ React118.createElement(CrossIcon21, null)
|
25451
25473
|
)), /* @__PURE__ */ React118.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ React118.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ React118.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ React118.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ React118.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ React118.createElement(
|
25452
25474
|
VariableSizeList2,
|
25453
25475
|
{
|
@@ -25465,14 +25487,14 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25465
25487
|
// src/Prebuilt/components/ChatSettings.tsx
|
25466
25488
|
init_define_process_env();
|
25467
25489
|
import React119 from "react";
|
25468
|
-
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions41, useHMSStore as
|
25490
|
+
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions41, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
25469
25491
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
25470
25492
|
var ChatSettings = () => {
|
25471
25493
|
const hmsActions = useHMSActions41();
|
25472
|
-
const localPeer =
|
25494
|
+
const localPeer = useHMSStore64(selectLocalPeer5);
|
25473
25495
|
const { elements } = useRoomLayoutConferencingScreen();
|
25474
25496
|
const canPauseChat = !!elements?.chat?.real_time_controls?.can_disable_chat;
|
25475
|
-
const { enabled: isChatEnabled = true } =
|
25497
|
+
const { enabled: isChatEnabled = true } = useHMSStore64(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
25476
25498
|
const showPause = canPauseChat && isChatEnabled;
|
25477
25499
|
if (!showPause) {
|
25478
25500
|
return null;
|
@@ -25539,18 +25561,18 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25539
25561
|
const resetSidePane = useSidepaneReset();
|
25540
25562
|
const [activeTab, setActiveTab] = useState52(active);
|
25541
25563
|
const [activeRole, setActiveRole] = useState52("");
|
25542
|
-
const peerCount =
|
25564
|
+
const peerCount = useHMSStore65(selectPeerCount5);
|
25543
25565
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
25544
25566
|
const chat_title = elements?.chat?.chat_title || "Chat";
|
25545
25567
|
const showChat = !!elements?.chat;
|
25546
25568
|
const showParticipants = !!elements?.participant_list;
|
25547
25569
|
const hideTabs = !(showChat && showParticipants) || hideTab;
|
25548
|
-
const isMobile =
|
25570
|
+
const isMobile = useMedia19(config.media.md);
|
25549
25571
|
const isOverlayChat = !!elements?.chat?.is_overlay && isMobile;
|
25550
25572
|
const { off_stage_roles = [] } = elements?.on_stage_exp || {};
|
25551
25573
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
25552
25574
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
25553
|
-
|
25575
|
+
useEffect32(() => {
|
25554
25576
|
match10({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
25555
25577
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
25556
25578
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
@@ -25559,7 +25581,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25559
25581
|
resetSidePane();
|
25560
25582
|
});
|
25561
25583
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
25562
|
-
|
25584
|
+
useEffect32(() => {
|
25563
25585
|
setActiveTab(active);
|
25564
25586
|
}, [active]);
|
25565
25587
|
if (activeRole) {
|
@@ -25620,7 +25642,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25620
25642
|
},
|
25621
25643
|
"data-testid": "close_chat"
|
25622
25644
|
},
|
25623
|
-
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React120.createElement(
|
25645
|
+
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React120.createElement(CrossIcon22, null)
|
25624
25646
|
))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ React120.createElement(Chat, null) : /* @__PURE__ */ React120.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
|
25625
25647
|
}).otherwise(() => {
|
25626
25648
|
return /* @__PURE__ */ React120.createElement(
|
@@ -25647,7 +25669,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25647
25669
|
},
|
25648
25670
|
"data-testid": "close_chat"
|
25649
25671
|
},
|
25650
|
-
/* @__PURE__ */ React120.createElement(
|
25672
|
+
/* @__PURE__ */ React120.createElement(CrossIcon22, null)
|
25651
25673
|
)),
|
25652
25674
|
/* @__PURE__ */ React120.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ React120.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
|
25653
25675
|
/* @__PURE__ */ React120.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ React120.createElement(Chat, null))
|
@@ -25669,7 +25691,7 @@ import {
|
|
25669
25691
|
selectPeerNameByID as selectPeerNameByID4,
|
25670
25692
|
selectVideoTrackByID as selectVideoTrackByID3,
|
25671
25693
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
25672
|
-
useHMSStore as
|
25694
|
+
useHMSStore as useHMSStore69
|
25673
25695
|
} from "@100mslive/react-sdk";
|
25674
25696
|
import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
|
25675
25697
|
|
@@ -25681,7 +25703,7 @@ import {
|
|
25681
25703
|
selectPeerTypeByID as selectPeerTypeByID2,
|
25682
25704
|
selectScreenShareByPeerID,
|
25683
25705
|
selectSessionStore as selectSessionStore9,
|
25684
|
-
useHMSStore as
|
25706
|
+
useHMSStore as useHMSStore66
|
25685
25707
|
} from "@100mslive/react-sdk";
|
25686
25708
|
import { CallIcon as CallIcon2, PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
|
25687
25709
|
var TileConnection = ({
|
@@ -25691,9 +25713,9 @@ var TileConnection = ({
|
|
25691
25713
|
width,
|
25692
25714
|
pinned
|
25693
25715
|
}) => {
|
25694
|
-
const spotlighted =
|
25695
|
-
const isPeerScreenSharing = !!
|
25696
|
-
const peerType =
|
25716
|
+
const spotlighted = useHMSStore66(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
|
25717
|
+
const isPeerScreenSharing = !!useHMSStore66(selectScreenShareByPeerID(peerId));
|
25718
|
+
const peerType = useHMSStore66(selectPeerTypeByID2(peerId));
|
25697
25719
|
return /* @__PURE__ */ React121.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React121.createElement(React121.Fragment, null, name ? /* @__PURE__ */ React121.createElement(Flex, { align: "center" }, peerType === HMSPeerType4.SIP && /* @__PURE__ */ React121.createElement(IconWrapper, null, /* @__PURE__ */ React121.createElement(CallIcon2, { width: "15", height: "15" })), isPeerScreenSharing && /* @__PURE__ */ React121.createElement(IconWrapper, null, /* @__PURE__ */ React121.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React121.createElement(IconWrapper, null, /* @__PURE__ */ React121.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React121.createElement(IconWrapper, null, /* @__PURE__ */ React121.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React121.createElement(
|
25698
25720
|
Text,
|
25699
25721
|
{
|
@@ -25728,35 +25750,37 @@ var TileConnection_default = TileConnection;
|
|
25728
25750
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
25729
25751
|
init_define_process_env();
|
25730
25752
|
import React123, { useState as useState53 } from "react";
|
25731
|
-
import { useMedia as
|
25753
|
+
import { useMedia as useMedia21 } from "react-use";
|
25732
25754
|
import {
|
25733
25755
|
selectLocalPeerID as selectLocalPeerID11,
|
25734
25756
|
selectPeerByID as selectPeerByID2,
|
25735
25757
|
selectPermissions as selectPermissions19,
|
25736
25758
|
selectTrackByID as selectTrackByID3,
|
25737
25759
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
25738
|
-
useHMSStore as
|
25760
|
+
useHMSStore as useHMSStore68,
|
25739
25761
|
useRemoteAVToggle as useRemoteAVToggle2
|
25740
25762
|
} from "@100mslive/react-sdk";
|
25741
|
-
import { CrossIcon as
|
25763
|
+
import { CrossIcon as CrossIcon23, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
25742
25764
|
|
25743
25765
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
25744
25766
|
init_define_process_env();
|
25745
25767
|
import React122, { Fragment as Fragment11 } from "react";
|
25746
|
-
import { useMedia as
|
25768
|
+
import { useMedia as useMedia20 } from "react-use";
|
25747
25769
|
import {
|
25770
|
+
selectAvailableRoleNames as selectAvailableRoleNames6,
|
25748
25771
|
selectPermissions as selectPermissions18,
|
25749
25772
|
selectSessionStore as selectSessionStore10,
|
25750
25773
|
selectTrackByID as selectTrackByID2,
|
25751
25774
|
useCustomEvent as useCustomEvent2,
|
25752
25775
|
useHMSActions as useHMSActions42,
|
25753
|
-
useHMSStore as
|
25776
|
+
useHMSStore as useHMSStore67,
|
25754
25777
|
useRemoteAVToggle
|
25755
25778
|
} from "@100mslive/react-sdk";
|
25756
25779
|
import {
|
25757
25780
|
MicOffIcon as MicOffIcon5,
|
25758
25781
|
MicOnIcon as MicOnIcon4,
|
25759
25782
|
PencilIcon,
|
25783
|
+
PersonSettingsIcon as PersonSettingsIcon2,
|
25760
25784
|
PinIcon as PinIcon4,
|
25761
25785
|
RemoveUserIcon as RemoveUserIcon2,
|
25762
25786
|
ShareScreenIcon as ShareScreenIcon4,
|
@@ -25787,7 +25811,7 @@ var SpotlightActions = ({
|
|
25787
25811
|
}
|
25788
25812
|
}) => {
|
25789
25813
|
const hmsActions = useHMSActions42();
|
25790
|
-
const spotlightPeerId =
|
25814
|
+
const spotlightPeerId = useHMSStore67(selectSessionStore10("spotlight" /* SPOTLIGHT */));
|
25791
25815
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
25792
25816
|
const dragClassName = getDragClassName();
|
25793
25817
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -25834,7 +25858,7 @@ var MinimiseInset = () => {
|
|
25834
25858
|
return /* @__PURE__ */ React122.createElement(React122.Fragment, null, /* @__PURE__ */ React122.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ React122.createElement(ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ React122.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
|
25835
25859
|
};
|
25836
25860
|
var SimulcastLayers = ({ trackId }) => {
|
25837
|
-
const track =
|
25861
|
+
const track = useHMSStore67(selectTrackByID2(trackId));
|
25838
25862
|
const actions = useHMSActions42();
|
25839
25863
|
const bg = useDropdownSelection();
|
25840
25864
|
if (!track?.layerDefinitions?.length || track.degraded || !track.enabled) {
|
@@ -25915,12 +25939,18 @@ var TileMenuContent = ({
|
|
25915
25939
|
},
|
25916
25940
|
openNameChangeModal = () => {
|
25917
25941
|
return;
|
25942
|
+
},
|
25943
|
+
openRoleChangeModal = () => {
|
25944
|
+
return;
|
25918
25945
|
}
|
25919
25946
|
}) => {
|
25920
25947
|
const actions = useHMSActions42();
|
25921
25948
|
const dragClassName = getDragClassName();
|
25922
|
-
const
|
25949
|
+
const permissions = useHMSStore67(selectPermissions18);
|
25950
|
+
const canChangeRole = !!permissions?.changeRole;
|
25951
|
+
const removeOthers = !!permissions?.removeOthers;
|
25923
25952
|
const { userName } = useHMSPrebuiltContext();
|
25953
|
+
const roles = useHMSStore67(selectAvailableRoleNames6);
|
25924
25954
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
25925
25955
|
audioTrackID,
|
25926
25956
|
videoTrackID
|
@@ -25928,7 +25958,7 @@ var TileMenuContent = ({
|
|
25928
25958
|
const { sendEvent } = useCustomEvent2({
|
25929
25959
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
25930
25960
|
});
|
25931
|
-
const isMobile =
|
25961
|
+
const isMobile = useMedia20(config.media.md);
|
25932
25962
|
if (isLocal) {
|
25933
25963
|
return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React122.createElement(React122.Fragment, null, showPinAction && /* @__PURE__ */ React122.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React122.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React122.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React122.createElement(
|
25934
25964
|
StyledMenuTile.ItemButton,
|
@@ -25969,6 +25999,19 @@ var TileMenuContent = ({
|
|
25969
25999
|
},
|
25970
26000
|
isAudioEnabled ? /* @__PURE__ */ React122.createElement(MicOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React122.createElement(MicOffIcon5, { height: 20, width: 20 }),
|
25971
26001
|
/* @__PURE__ */ React122.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
|
26002
|
+
) : null, canChangeRole && roles.length > 1 ? /* @__PURE__ */ React122.createElement(
|
26003
|
+
StyledMenuTile.ItemButton,
|
26004
|
+
{
|
26005
|
+
className: dragClassName,
|
26006
|
+
css: spacingCSS,
|
26007
|
+
onClick: () => {
|
26008
|
+
openRoleChangeModal();
|
26009
|
+
closeSheetOnClick();
|
26010
|
+
},
|
26011
|
+
"data-testid": "change_role_btn"
|
26012
|
+
},
|
26013
|
+
/* @__PURE__ */ React122.createElement(PersonSettingsIcon2, { height: 20, width: 20 }),
|
26014
|
+
/* @__PURE__ */ React122.createElement("span", null, "Switch Role")
|
25972
26015
|
) : null, audioTrackID ? /* @__PURE__ */ React122.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: { ...spacingCSS, mb: "$0" } }, /* @__PURE__ */ React122.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React122.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React122.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React122.createElement(
|
25973
26016
|
Slider,
|
25974
26017
|
{
|
@@ -26017,24 +26060,26 @@ var TileMenu = ({
|
|
26017
26060
|
}) => {
|
26018
26061
|
const [open, setOpen] = useState53(false);
|
26019
26062
|
const { theme: theme2 } = useTheme();
|
26020
|
-
const localPeerID =
|
26063
|
+
const localPeerID = useHMSStore68(selectLocalPeerID11);
|
26021
26064
|
const isLocal = localPeerID === peerID;
|
26022
|
-
const { removeOthers } =
|
26065
|
+
const { removeOthers } = useHMSStore68(selectPermissions19) || {};
|
26023
26066
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
26024
26067
|
const showSpotlight = enableSpotlightingPeer;
|
26025
|
-
const isPrimaryVideoTrack =
|
26068
|
+
const isPrimaryVideoTrack = useHMSStore68(selectVideoTrackByPeerID2(peerID))?.id === videoTrackID;
|
26026
26069
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
26027
|
-
const track =
|
26070
|
+
const track = useHMSStore68(selectTrackByID3(videoTrackID));
|
26028
26071
|
const hideSimulcastLayers = !track?.layerDefinitions?.length || track.degraded || !track.enabled;
|
26029
|
-
const isMobile =
|
26030
|
-
const peer =
|
26072
|
+
const isMobile = useMedia21(config.media.md);
|
26073
|
+
const peer = useHMSStore68(selectPeerByID2(peerID));
|
26031
26074
|
const [showNameChangeModal, setShowNameChangeModal] = useState53(false);
|
26075
|
+
const [showRoleChangeModal, setShowRoleChangeModal] = useState53(false);
|
26032
26076
|
useDropdownList({ open, name: "TileMenu" });
|
26033
26077
|
const dragClassName = getDragClassName();
|
26034
26078
|
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
26035
26079
|
return null;
|
26036
26080
|
}
|
26037
26081
|
const openNameChangeModal = () => setShowNameChangeModal(true);
|
26082
|
+
const openRoleChangeModal = () => setShowRoleChangeModal(true);
|
26038
26083
|
const props = {
|
26039
26084
|
isLocal,
|
26040
26085
|
isScreenshare,
|
@@ -26045,7 +26090,8 @@ var TileMenu = ({
|
|
26045
26090
|
showSpotlight,
|
26046
26091
|
showPinAction,
|
26047
26092
|
canMinimise,
|
26048
|
-
openNameChangeModal
|
26093
|
+
openNameChangeModal,
|
26094
|
+
openRoleChangeModal
|
26049
26095
|
};
|
26050
26096
|
return /* @__PURE__ */ React123.createElement(React123.Fragment, null, /* @__PURE__ */ React123.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React123.createElement(
|
26051
26097
|
StyledMenuTile.Trigger,
|
@@ -26071,8 +26117,8 @@ var TileMenu = ({
|
|
26071
26117
|
}
|
26072
26118
|
},
|
26073
26119
|
/* @__PURE__ */ React123.createElement(Box, null, /* @__PURE__ */ React123.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer?.name, isLocal ? ` (You)` : null), peer?.roleName ? /* @__PURE__ */ React123.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
|
26074
|
-
/* @__PURE__ */ React123.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React123.createElement(
|
26075
|
-
), /* @__PURE__ */ React123.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React123.createElement(TileMenuContent, { ...props, closeSheetOnClick: () => setOpen(false) })))) : /* @__PURE__ */ React123.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React123.createElement(TileMenuContent, { ...props }))), showNameChangeModal && /* @__PURE__ */ React123.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }));
|
26120
|
+
/* @__PURE__ */ React123.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React123.createElement(CrossIcon23, null))
|
26121
|
+
), /* @__PURE__ */ React123.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React123.createElement(TileMenuContent, { ...props, closeSheetOnClick: () => setOpen(false) })))) : /* @__PURE__ */ React123.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React123.createElement(TileMenuContent, { ...props }))), showNameChangeModal && /* @__PURE__ */ React123.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }), showRoleChangeModal && /* @__PURE__ */ React123.createElement(RoleChangeModal, { peerId: peerID, onOpenChange: setShowRoleChangeModal }));
|
26076
26122
|
};
|
26077
26123
|
var TileMenu_default = TileMenu;
|
26078
26124
|
|
@@ -26104,9 +26150,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
|
26104
26150
|
|
26105
26151
|
// src/Prebuilt/components/VideoTile.tsx
|
26106
26152
|
var PeerMetadata = ({ peerId, size }) => {
|
26107
|
-
const metaData =
|
26153
|
+
const metaData = useHMSStore69(selectPeerMetadata4(peerId));
|
26108
26154
|
const isBRB = metaData?.isBRBOn || false;
|
26109
|
-
const isHandRaised =
|
26155
|
+
const isHandRaised = useHMSStore69(selectHasPeerHandRaised3(peerId));
|
26110
26156
|
return /* @__PURE__ */ React124.createElement(React124.Fragment, null, isHandRaised ? /* @__PURE__ */ React124.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React124.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React124.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React124.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
|
26111
26157
|
};
|
26112
26158
|
var Tile = ({
|
@@ -26126,14 +26172,14 @@ var Tile = ({
|
|
26126
26172
|
hideMetadataOnTile = false
|
26127
26173
|
}) => {
|
26128
26174
|
const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
|
26129
|
-
const track =
|
26130
|
-
const peerName =
|
26131
|
-
const audioTrack =
|
26132
|
-
const localPeerID =
|
26175
|
+
const track = useHMSStore69(trackSelector);
|
26176
|
+
const peerName = useHMSStore69(selectPeerNameByID4(peerId));
|
26177
|
+
const audioTrack = useHMSStore69(selectAudioTrackByPeerID2(peerId));
|
26178
|
+
const localPeerID = useHMSStore69(selectLocalPeerID12);
|
26133
26179
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
26134
26180
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26135
26181
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
26136
|
-
const isAudioMuted = !
|
26182
|
+
const isAudioMuted = !useHMSStore69(selectIsPeerAudioEnabled2(peerId));
|
26137
26183
|
const isVideoMuted = !track?.enabled;
|
26138
26184
|
const [isMouseHovered, setIsMouseHovered] = useState54(false);
|
26139
26185
|
const isVideoDegraded = track?.degraded;
|
@@ -26222,8 +26268,8 @@ var VideoTile_default = VideoTile;
|
|
26222
26268
|
|
26223
26269
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
26224
26270
|
init_define_process_env();
|
26225
|
-
import React127, { useEffect as
|
26226
|
-
import { useMedia as
|
26271
|
+
import React127, { useEffect as useEffect33, useState as useState55 } from "react";
|
26272
|
+
import { useMedia as useMedia22 } from "react-use";
|
26227
26273
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
26228
26274
|
import {
|
26229
26275
|
HMSRoomState as HMSRoomState4,
|
@@ -26234,9 +26280,9 @@ import {
|
|
26234
26280
|
selectRoomState as selectRoomState4,
|
26235
26281
|
selectVideoTrackByID as selectVideoTrackByID4,
|
26236
26282
|
useHMSActions as useHMSActions43,
|
26237
|
-
useHMSStore as
|
26283
|
+
useHMSStore as useHMSStore70
|
26238
26284
|
} from "@100mslive/react-sdk";
|
26239
|
-
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as
|
26285
|
+
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon24 } from "@100mslive/react-icons";
|
26240
26286
|
|
26241
26287
|
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
26242
26288
|
init_define_process_env();
|
@@ -26414,25 +26460,25 @@ var iconDims = { height: "40px", width: "40px" };
|
|
26414
26460
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
26415
26461
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26416
26462
|
const hmsActions = useHMSActions43();
|
26417
|
-
const localPeer =
|
26418
|
-
const role =
|
26419
|
-
const isVideoOn =
|
26463
|
+
const localPeer = useHMSStore70(selectLocalPeer6);
|
26464
|
+
const role = useHMSStore70(oi);
|
26465
|
+
const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
|
26420
26466
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26421
26467
|
const trackSelector = selectVideoTrackByID4(localPeer?.videoTrack);
|
26422
|
-
const track =
|
26468
|
+
const track = useHMSStore70(trackSelector);
|
26423
26469
|
const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
|
26424
|
-
const roomState =
|
26425
|
-
const isLargeRoom =
|
26426
|
-
const isEffectsEnabled =
|
26427
|
-
const effectsKey =
|
26428
|
-
const isMobile =
|
26470
|
+
const roomState = useHMSStore70(selectRoomState4);
|
26471
|
+
const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
|
26472
|
+
const isEffectsEnabled = useHMSStore70(Yh);
|
26473
|
+
const effectsKey = useHMSStore70(Xh);
|
26474
|
+
const isMobile = useMedia22(config.media.md);
|
26429
26475
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
26430
|
-
const isPluginAdded =
|
26431
|
-
const background =
|
26476
|
+
const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ""));
|
26477
|
+
const background = useHMSStore70(mm(APP_DATA.background));
|
26432
26478
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26433
26479
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26434
26480
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
26435
|
-
|
26481
|
+
useEffect33(() => {
|
26436
26482
|
if (!track?.id) {
|
26437
26483
|
return;
|
26438
26484
|
}
|
@@ -26478,19 +26524,20 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26478
26524
|
blurAmount,
|
26479
26525
|
setLoadingEffects
|
26480
26526
|
]);
|
26481
|
-
|
26527
|
+
useEffect33(() => {
|
26482
26528
|
if (!isVideoOn) {
|
26483
26529
|
toggleVB();
|
26484
26530
|
}
|
26485
26531
|
return () => setLoadingEffects(false);
|
26486
26532
|
}, [isVideoOn, setLoadingEffects, toggleVB]);
|
26533
|
+
useSidepaneResetOnLayoutUpdate("virtual_background", SIDE_PANE_OPTIONS.VB);
|
26487
26534
|
return /* @__PURE__ */ React127.createElement(Flex, { css: { pr: "$6", size: "100%" }, direction: "column" }, /* @__PURE__ */ React127.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", background: "$surface_dim", pb: "$4" } }, /* @__PURE__ */ React127.createElement(Text, { variant: "h6", css: { color: "$on_surface_high", display: "flex", alignItems: "center" } }, "Virtual Background ", isMobile && loadingEffects ? /* @__PURE__ */ React127.createElement(Loading, { size: 18, style: { marginLeft: "0.5rem" } }) : ""), /* @__PURE__ */ React127.createElement(
|
26488
26535
|
Box,
|
26489
26536
|
{
|
26490
26537
|
css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
|
26491
26538
|
onClick: toggleVB
|
26492
26539
|
},
|
26493
|
-
/* @__PURE__ */ React127.createElement(
|
26540
|
+
/* @__PURE__ */ React127.createElement(CrossIcon24, null)
|
26494
26541
|
)), showVideoTile ? /* @__PURE__ */ React127.createElement(
|
26495
26542
|
Video,
|
26496
26543
|
{
|
@@ -26669,22 +26716,16 @@ var SidePane = ({
|
|
26669
26716
|
tileProps,
|
26670
26717
|
hideControls = false
|
26671
26718
|
}) => {
|
26672
|
-
const isMobile =
|
26673
|
-
const sidepane =
|
26674
|
-
const activeScreensharePeerId =
|
26675
|
-
const trackId =
|
26719
|
+
const isMobile = useMedia23(config.media.md);
|
26720
|
+
const sidepane = useHMSStore71(selectAppData8(APP_DATA.sidePane));
|
26721
|
+
const activeScreensharePeerId = useHMSStore71(selectAppData8(APP_DATA.activeScreensharePeerId));
|
26722
|
+
const trackId = useHMSStore71(selectVideoTrackByPeerID4(activeScreensharePeerId))?.id;
|
26676
26723
|
const { elements } = useRoomLayoutConferencingScreen();
|
26677
26724
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
26678
26725
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
26679
26726
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
26680
26727
|
const isMobileHLSStream = useMobileHLSStream();
|
26681
26728
|
const backgroundMedia = preview_elements?.virtual_background?.background_media?.length ? preview_elements?.virtual_background?.background_media : elements?.virtual_background?.background_media || [];
|
26682
|
-
const resetSidePane = useSidepaneReset();
|
26683
|
-
useEffect33(() => {
|
26684
|
-
return () => {
|
26685
|
-
resetSidePane();
|
26686
|
-
};
|
26687
|
-
}, [resetSidePane]);
|
26688
26729
|
const tileLayout = {
|
26689
26730
|
hideParticipantNameOnTile: tileProps?.hide_participant_name_on_tile,
|
26690
26731
|
roundedVideoTile: tileProps?.rounded_video_tile,
|
@@ -26716,7 +26757,13 @@ var SidePane = ({
|
|
26716
26757
|
)).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ React128.createElement(Wrapper3, { css: { p: "$10 $6 $10 $10" }, ...commonProps }, /* @__PURE__ */ React128.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ React128.createElement(Wrapper3, { ...commonProps, overlayChat: mwebStreamingChat }, /* @__PURE__ */ React128.createElement(SidePaneTabs, { active: sidepane, hideTab: isMobileHLSStream || isLandscapeHLSStream }))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ React128.createElement(Wrapper3, { ...commonProps }, /* @__PURE__ */ React128.createElement(RoomDetailsPane, null))).otherwise(() => {
|
26717
26758
|
return null;
|
26718
26759
|
});
|
26719
|
-
|
26760
|
+
const resetSidePane = useSidepaneReset();
|
26761
|
+
useEffect34(() => {
|
26762
|
+
return () => {
|
26763
|
+
resetSidePane();
|
26764
|
+
};
|
26765
|
+
}, [resetSidePane]);
|
26766
|
+
if (!SidepaneComponent && !trackId) {
|
26720
26767
|
return null;
|
26721
26768
|
}
|
26722
26769
|
return /* @__PURE__ */ React128.createElement(
|
@@ -26794,7 +26841,7 @@ var FullPageProgress_default = FullPageProgress;
|
|
26794
26841
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
26795
26842
|
init_define_process_env();
|
26796
26843
|
import React131 from "react";
|
26797
|
-
import { useMedia as
|
26844
|
+
import { useMedia as useMedia24 } from "react-use";
|
26798
26845
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
|
26799
26846
|
import { useRecordingStreaming as useRecordingStreaming10 } from "@100mslive/react-sdk";
|
26800
26847
|
import { GoLiveIcon } from "@100mslive/react-icons";
|
@@ -26810,7 +26857,7 @@ var PreviewForm = ({
|
|
26810
26857
|
const formSubmit = (e) => {
|
26811
26858
|
e.preventDefault();
|
26812
26859
|
};
|
26813
|
-
const isMobile =
|
26860
|
+
const isMobile = useMedia24(config.media.md);
|
26814
26861
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
|
26815
26862
|
const layout = useRoomLayout();
|
26816
26863
|
const { join_form: joinForm = {} } = layout?.screens?.preview?.default?.elements || {};
|
@@ -26869,9 +26916,9 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
26869
26916
|
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
26870
26917
|
};
|
26871
26918
|
var useLocalTileAspectRatio = () => {
|
26872
|
-
const localPeer =
|
26873
|
-
const videoTrack =
|
26874
|
-
const isMobile =
|
26919
|
+
const localPeer = useHMSStore72(selectLocalPeer7);
|
26920
|
+
const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer?.videoTrack));
|
26921
|
+
const isMobile = useMedia25(config.media.md);
|
26875
26922
|
let aspectRatio = 0;
|
26876
26923
|
if (videoTrack?.width && videoTrack?.height) {
|
26877
26924
|
aspectRatio = videoTrack.width / videoTrack.height;
|
@@ -26896,7 +26943,7 @@ var PreviewJoin = ({
|
|
26896
26943
|
const [previewError, setPreviewError] = useState56(false);
|
26897
26944
|
const { endpoints } = useHMSPrebuiltContext();
|
26898
26945
|
const { peerCount } = useParticipants2();
|
26899
|
-
const loadingEffects =
|
26946
|
+
const loadingEffects = useHMSStore72(selectAppData9(APP_DATA.loadingEffects));
|
26900
26947
|
const { enableJoin, preview, join } = usePreviewJoin({
|
26901
26948
|
name,
|
26902
26949
|
token: authToken,
|
@@ -26914,7 +26961,7 @@ var PreviewJoin = ({
|
|
26914
26961
|
},
|
26915
26962
|
asRole
|
26916
26963
|
});
|
26917
|
-
const roomState =
|
26964
|
+
const roomState = useHMSStore72(selectRoomState5);
|
26918
26965
|
const savePreferenceAndJoin = useCallback32(() => {
|
26919
26966
|
setPreviewPreference({
|
26920
26967
|
name
|
@@ -26924,7 +26971,7 @@ var PreviewJoin = ({
|
|
26924
26971
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
26925
26972
|
const { preview_header: previewHeader = {}, virtual_background } = elements || {};
|
26926
26973
|
const aspectRatio = useLocalTileAspectRatio();
|
26927
|
-
|
26974
|
+
useEffect35(() => {
|
26928
26975
|
if (authToken) {
|
26929
26976
|
if (skipPreview) {
|
26930
26977
|
savePreferenceAndJoin();
|
@@ -26933,7 +26980,7 @@ var PreviewJoin = ({
|
|
26933
26980
|
}
|
26934
26981
|
}
|
26935
26982
|
}, [authToken, skipPreview]);
|
26936
|
-
|
26983
|
+
useEffect35(() => {
|
26937
26984
|
if (initialName) {
|
26938
26985
|
setName(initialName);
|
26939
26986
|
}
|
@@ -26980,12 +27027,12 @@ var Container4 = styled("div", {
|
|
26980
27027
|
px: "$10"
|
26981
27028
|
});
|
26982
27029
|
var PreviewTile = ({ name, error }) => {
|
26983
|
-
const localPeer =
|
27030
|
+
const localPeer = useHMSStore72(selectLocalPeer7);
|
26984
27031
|
const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
|
26985
|
-
const isVideoOn =
|
27032
|
+
const isVideoOn = useHMSStore72(selectIsLocalVideoEnabled7);
|
26986
27033
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26987
27034
|
const trackSelector = selectVideoTrackByID5(localPeer?.videoTrack);
|
26988
|
-
const track =
|
27035
|
+
const track = useHMSStore72(trackSelector);
|
26989
27036
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
26990
27037
|
const aspectRatio = useLocalTileAspectRatio();
|
26991
27038
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
|
@@ -27026,7 +27073,7 @@ var PreviewTile = ({ name, error }) => {
|
|
27026
27073
|
);
|
27027
27074
|
};
|
27028
27075
|
var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
27029
|
-
const isMobile =
|
27076
|
+
const isMobile = useMedia25(config.media.md);
|
27030
27077
|
return /* @__PURE__ */ React132.createElement(
|
27031
27078
|
Flex,
|
27032
27079
|
{
|
@@ -27049,7 +27096,7 @@ var PreviewJoin_default = PreviewJoin;
|
|
27049
27096
|
// src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
|
27050
27097
|
init_define_process_env();
|
27051
27098
|
import React133 from "react";
|
27052
|
-
import { useMedia as
|
27099
|
+
import { useMedia as useMedia26 } from "react-use";
|
27053
27100
|
var RequestPrompt = ({
|
27054
27101
|
open = true,
|
27055
27102
|
onOpenChange,
|
@@ -27059,7 +27106,7 @@ var RequestPrompt = ({
|
|
27059
27106
|
onAction,
|
27060
27107
|
disableActions = false
|
27061
27108
|
}) => {
|
27062
|
-
const isMobile =
|
27109
|
+
const isMobile = useMedia26(config.media.md);
|
27063
27110
|
if (isMobile) {
|
27064
27111
|
return /* @__PURE__ */ React133.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React133.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React133.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React133.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
|
27065
27112
|
}
|
@@ -27075,14 +27122,14 @@ var RequestActions = ({
|
|
27075
27122
|
var RoleChangeRequestModal = () => {
|
27076
27123
|
const hmsActions = useHMSActions44();
|
27077
27124
|
const { updateMetaData } = useMyMetadata();
|
27078
|
-
const isPreview =
|
27079
|
-
const currentRole =
|
27080
|
-
const roleChangeRequest =
|
27081
|
-
const name =
|
27125
|
+
const isPreview = useHMSStore73(selectIsInPreview);
|
27126
|
+
const currentRole = useHMSStore73(selectLocalPeerRoleName4);
|
27127
|
+
const roleChangeRequest = useHMSStore73(selectRoleChangeRequest);
|
27128
|
+
const name = useHMSStore73(selectLocalPeerName4);
|
27082
27129
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
27083
27130
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
27084
27131
|
const { virtual_background } = elements || {};
|
27085
|
-
|
27132
|
+
useEffect36(() => {
|
27086
27133
|
if (!roleChangeRequest?.role) {
|
27087
27134
|
return;
|
27088
27135
|
}
|
@@ -27145,40 +27192,40 @@ var RoleChangeRequestModal = () => {
|
|
27145
27192
|
|
27146
27193
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
27147
27194
|
init_define_process_env();
|
27148
|
-
import React153, { Suspense, useEffect as
|
27195
|
+
import React153, { Suspense, useEffect as useEffect50 } from "react";
|
27149
27196
|
import { match as match12 } from "ts-pattern";
|
27150
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions46, useHMSStore as
|
27197
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions46, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
|
27151
27198
|
|
27152
27199
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
27153
27200
|
init_define_process_env();
|
27154
|
-
import React148, { useEffect as
|
27201
|
+
import React148, { useEffect as useEffect45, useMemo as useMemo19, useState as useState64 } from "react";
|
27155
27202
|
import {
|
27156
27203
|
selectLocalPeerID as selectLocalPeerID14,
|
27157
27204
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
27158
27205
|
selectPeers as selectPeers3,
|
27159
27206
|
selectPeerScreenSharing as selectPeerScreenSharing2,
|
27160
27207
|
selectWhiteboard as selectWhiteboard2,
|
27161
|
-
useHMSStore as
|
27208
|
+
useHMSStore as useHMSStore81,
|
27162
27209
|
useHMSVanillaStore as useHMSVanillaStore12
|
27163
27210
|
} from "@100mslive/react-sdk";
|
27164
27211
|
|
27165
27212
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27166
27213
|
init_define_process_env();
|
27167
|
-
import React139, { useEffect as
|
27168
|
-
import { useMedia as
|
27169
|
-
import { selectLocalPeer as selectLocalPeer9, useHMSStore as
|
27214
|
+
import React139, { useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
|
27215
|
+
import { useMedia as useMedia29 } from "react-use";
|
27216
|
+
import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
27170
27217
|
|
27171
27218
|
// src/Prebuilt/components/InsetTile.tsx
|
27172
27219
|
init_define_process_env();
|
27173
|
-
import React136, { useEffect as
|
27220
|
+
import React136, { useEffect as useEffect37, useRef as useRef24 } from "react";
|
27174
27221
|
import Draggable from "react-draggable";
|
27175
|
-
import { useMedia as
|
27222
|
+
import { useMedia as useMedia27 } from "react-use";
|
27176
27223
|
import {
|
27177
27224
|
selectIsAllowedToPublish as selectIsAllowedToPublish2,
|
27178
27225
|
selectLocalPeer as selectLocalPeer8,
|
27179
27226
|
selectPeerByID as selectPeerByID3,
|
27180
27227
|
selectVideoTrackByID as selectVideoTrackByID6,
|
27181
|
-
useHMSStore as
|
27228
|
+
useHMSStore as useHMSStore74
|
27182
27229
|
} from "@100mslive/react-sdk";
|
27183
27230
|
import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
|
27184
27231
|
|
@@ -27216,13 +27263,13 @@ var insetMaxWidthPx = 240;
|
|
27216
27263
|
var defaultMobileAspectRatio = 9 / 16;
|
27217
27264
|
var desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
27218
27265
|
var InsetTile = ({ peerId }) => {
|
27219
|
-
const isMobile =
|
27220
|
-
const isLandscape =
|
27266
|
+
const isMobile = useMedia27(config.media.md);
|
27267
|
+
const isLandscape = useMedia27(config.media.ls);
|
27221
27268
|
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
|
27222
|
-
const peer =
|
27269
|
+
const peer = useHMSStore74(selector);
|
27223
27270
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
27224
|
-
const videoTrack =
|
27225
|
-
const isAllowedToPublish =
|
27271
|
+
const videoTrack = useHMSStore74(selectVideoTrackByID6(peer?.videoTrack));
|
27272
|
+
const isAllowedToPublish = useHMSStore74(selectIsAllowedToPublish2);
|
27226
27273
|
const videoTileProps = useVideoTileContext();
|
27227
27274
|
let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
|
27228
27275
|
if (videoTrack?.width && videoTrack?.height && !isMobile) {
|
@@ -27235,7 +27282,7 @@ var InsetTile = ({ peerId }) => {
|
|
27235
27282
|
height = width / aspectRatio;
|
27236
27283
|
}
|
27237
27284
|
const nodeRef = useRef24(null);
|
27238
|
-
|
27285
|
+
useEffect37(() => {
|
27239
27286
|
const node = nodeRef.current;
|
27240
27287
|
if (!node || !window.ResizeObserver) {
|
27241
27288
|
return;
|
@@ -27296,7 +27343,7 @@ var InsetTile = ({ peerId }) => {
|
|
27296
27343
|
|
27297
27344
|
// src/Prebuilt/components/Pagination.tsx
|
27298
27345
|
init_define_process_env();
|
27299
|
-
import React137, { useEffect as
|
27346
|
+
import React137, { useEffect as useEffect38 } from "react";
|
27300
27347
|
import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
|
27301
27348
|
var Pagination = ({
|
27302
27349
|
page,
|
@@ -27313,7 +27360,7 @@ var Pagination = ({
|
|
27313
27360
|
e.stopPropagation();
|
27314
27361
|
onPageChange(Math.max(page - 1, 0));
|
27315
27362
|
};
|
27316
|
-
|
27363
|
+
useEffect38(() => {
|
27317
27364
|
if (page >= numPages) {
|
27318
27365
|
onPageChange(Math.max(0, numPages - 1));
|
27319
27366
|
}
|
@@ -27377,8 +27424,8 @@ var Grid = React138.forwardRef(
|
|
27377
27424
|
|
27378
27425
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
27379
27426
|
init_define_process_env();
|
27380
|
-
import { useEffect as
|
27381
|
-
import { useMeasure as useMeasure5, useMedia as
|
27427
|
+
import { useEffect as useEffect39, useMemo as useMemo14, useState as useState57 } from "react";
|
27428
|
+
import { useMeasure as useMeasure5, useMedia as useMedia28 } from "react-use";
|
27382
27429
|
import {
|
27383
27430
|
getPeersWithTiles,
|
27384
27431
|
selectTracksMap as selectTracksMap4,
|
@@ -27414,9 +27461,9 @@ var useTileLayout = ({
|
|
27414
27461
|
}) => {
|
27415
27462
|
const vanillaStore = useHMSVanillaStore11();
|
27416
27463
|
const [ref, { width, height }] = useMeasure5();
|
27417
|
-
const isMobile =
|
27464
|
+
const isMobile = useMedia28(config.media.lg);
|
27418
27465
|
const [pagesWithTiles, setPagesWithTiles] = useState57([]);
|
27419
|
-
|
27466
|
+
useEffect39(() => {
|
27420
27467
|
if (width === 0 || height === 0) {
|
27421
27468
|
return;
|
27422
27469
|
}
|
@@ -27482,8 +27529,8 @@ var useTileLayout = ({
|
|
27482
27529
|
|
27483
27530
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27484
27531
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
27485
|
-
const localPeer =
|
27486
|
-
const isMobile =
|
27532
|
+
const localPeer = useHMSStore75(selectLocalPeer9);
|
27533
|
+
const isMobile = useMedia29(config.media.md);
|
27487
27534
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27488
27535
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
27489
27536
|
let pageList = usePagesWithTiles({
|
@@ -27507,7 +27554,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
27507
27554
|
});
|
27508
27555
|
const [page, setPage] = useState58(0);
|
27509
27556
|
const pageSize = pagesWithTiles[0]?.length || 0;
|
27510
|
-
|
27557
|
+
useEffect40(() => {
|
27511
27558
|
if (pageSize > 0) {
|
27512
27559
|
onPageSize?.(pageSize);
|
27513
27560
|
}
|
@@ -27527,15 +27574,15 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
27527
27574
|
|
27528
27575
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
27529
27576
|
init_define_process_env();
|
27530
|
-
import React142, { useEffect as
|
27531
|
-
import { useMedia as
|
27532
|
-
import { selectLocalPeer as selectLocalPeer10, useHMSStore as
|
27577
|
+
import React142, { useEffect as useEffect42, useState as useState60 } from "react";
|
27578
|
+
import { useMedia as useMedia31 } from "react-use";
|
27579
|
+
import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
27533
27580
|
|
27534
27581
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
27535
27582
|
init_define_process_env();
|
27536
|
-
import React141, { useEffect as
|
27537
|
-
import { useMedia as
|
27538
|
-
import { selectAppData as
|
27583
|
+
import React141, { useEffect as useEffect41, useRef as useRef25, useState as useState59 } from "react";
|
27584
|
+
import { useMedia as useMedia30 } from "react-use";
|
27585
|
+
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
|
27539
27586
|
|
27540
27587
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
27541
27588
|
init_define_process_env();
|
@@ -27618,13 +27665,13 @@ var ProminenceLayout = {
|
|
27618
27665
|
|
27619
27666
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
27620
27667
|
var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
27621
|
-
const isMobile =
|
27668
|
+
const isMobile = useMedia30(config.media.md);
|
27622
27669
|
const maxTileCount = isMobile ? 2 : 4;
|
27623
27670
|
const [page, setPage] = useState59(0);
|
27624
|
-
const pinnedTrackId =
|
27625
|
-
const spotlightPeerId =
|
27626
|
-
const activeScreensharePeerId =
|
27627
|
-
const pinnedPeer =
|
27671
|
+
const pinnedTrackId = useHMSStore76(selectAppData10(APP_DATA.pinnedTrackId));
|
27672
|
+
const spotlightPeerId = useHMSStore76(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
27673
|
+
const activeScreensharePeerId = useHMSStore76(selectAppData10(APP_DATA.activeScreensharePeerId));
|
27674
|
+
const pinnedPeer = useHMSStore76(selectTrackByID4(pinnedTrackId))?.peerId;
|
27628
27675
|
const pageChangedAfterPinning = useRef25(false);
|
27629
27676
|
const pagesWithTiles = usePagesWithTiles({
|
27630
27677
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
@@ -27646,17 +27693,17 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
27646
27693
|
maxTileCount
|
27647
27694
|
});
|
27648
27695
|
const pageSize = pagesWithTiles[0]?.length || 0;
|
27649
|
-
|
27696
|
+
useEffect41(() => {
|
27650
27697
|
if (peers.length > 0 && !pagesWithTiles[page]?.length) {
|
27651
27698
|
setPage(Math.max(0, page - 1));
|
27652
27699
|
}
|
27653
27700
|
}, [peers, page, pagesWithTiles]);
|
27654
|
-
|
27701
|
+
useEffect41(() => {
|
27655
27702
|
if (pageSize > 0) {
|
27656
27703
|
onPageSize?.(pageSize);
|
27657
27704
|
}
|
27658
27705
|
}, [pageSize, onPageSize]);
|
27659
|
-
|
27706
|
+
useEffect41(() => {
|
27660
27707
|
if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
|
27661
27708
|
setPage(0);
|
27662
27709
|
pageChangedAfterPinning.current = true;
|
@@ -27722,9 +27769,9 @@ function RoleProminence({
|
|
27722
27769
|
edgeToEdge
|
27723
27770
|
}) {
|
27724
27771
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
27725
|
-
const localPeer =
|
27772
|
+
const localPeer = useHMSStore77(selectLocalPeer10);
|
27726
27773
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
27727
|
-
const isMobile =
|
27774
|
+
const isMobile = useMedia31(config.media.md);
|
27728
27775
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27729
27776
|
maxTileCount = isMobile ? 4 : maxTileCount;
|
27730
27777
|
const pageList = usePagesWithTiles({
|
@@ -27737,7 +27784,7 @@ function RoleProminence({
|
|
27737
27784
|
});
|
27738
27785
|
const [page, setPage] = useState60(0);
|
27739
27786
|
const pageSize = pagesWithTiles[0]?.length || 0;
|
27740
|
-
|
27787
|
+
useEffect42(() => {
|
27741
27788
|
if (pageSize > 0) {
|
27742
27789
|
onPageSize?.(pageSize);
|
27743
27790
|
}
|
@@ -27765,28 +27812,28 @@ function RoleProminence({
|
|
27765
27812
|
|
27766
27813
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
27767
27814
|
init_define_process_env();
|
27768
|
-
import React146, { useEffect as
|
27769
|
-
import { useMedia as
|
27770
|
-
import { selectPeersScreenSharing, useHMSStore as
|
27815
|
+
import React146, { useEffect as useEffect43, useMemo as useMemo17, useState as useState63 } from "react";
|
27816
|
+
import { useMedia as useMedia33 } from "react-use";
|
27817
|
+
import { selectPeersScreenSharing, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
|
27771
27818
|
|
27772
27819
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
27773
27820
|
init_define_process_env();
|
27774
27821
|
import React145, { useRef as useRef26, useState as useState62 } from "react";
|
27775
|
-
import { useFullscreen as useFullscreen2, useMedia as
|
27822
|
+
import { useFullscreen as useFullscreen2, useMedia as useMedia32 } from "react-use";
|
27776
27823
|
import screenfull2 from "screenfull";
|
27777
27824
|
import {
|
27778
27825
|
selectLocalPeerID as selectLocalPeerID13,
|
27779
27826
|
selectPeerByID as selectPeerByID4,
|
27780
27827
|
selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
|
27781
27828
|
selectScreenShareByPeerID as selectScreenShareByPeerID2,
|
27782
|
-
useHMSStore as
|
27829
|
+
useHMSStore as useHMSStore78
|
27783
27830
|
} from "@100mslive/react-sdk";
|
27784
27831
|
import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
|
27785
27832
|
|
27786
27833
|
// src/Prebuilt/components/LayoutModeSelector.tsx
|
27787
27834
|
init_define_process_env();
|
27788
27835
|
import React143, { useCallback as useCallback33, useState as useState61 } from "react";
|
27789
|
-
import { CheckIcon as
|
27836
|
+
import { CheckIcon as CheckIcon7, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
|
27790
27837
|
var LayoutModeSelector = () => {
|
27791
27838
|
const [open, setOpen] = useState61(false);
|
27792
27839
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
@@ -27881,7 +27928,7 @@ var LayoutModeSelector = () => {
|
|
27881
27928
|
LayoutModeIconMapping[value]
|
27882
27929
|
),
|
27883
27930
|
/* @__PURE__ */ React143.createElement(Text, { variant: "caption", css: { lineHeight: "$sm" } }, value),
|
27884
|
-
value === layoutMode ? /* @__PURE__ */ React143.createElement(
|
27931
|
+
value === layoutMode ? /* @__PURE__ */ React143.createElement(CheckIcon7, { width: 20, height: 20, style: { marginLeft: "auto" } }) : null
|
27885
27932
|
);
|
27886
27933
|
})
|
27887
27934
|
));
|
@@ -27891,7 +27938,7 @@ var LayoutModeSelector = () => {
|
|
27891
27938
|
init_define_process_env();
|
27892
27939
|
import React144 from "react";
|
27893
27940
|
import { useHMSActions as useHMSActions45 } from "@100mslive/react-sdk";
|
27894
|
-
import { CrossIcon as
|
27941
|
+
import { CrossIcon as CrossIcon25, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
27895
27942
|
var ScreenshareDisplay = () => {
|
27896
27943
|
const hmsActions = useHMSActions45();
|
27897
27944
|
return /* @__PURE__ */ React144.createElement(
|
@@ -27918,7 +27965,7 @@ var ScreenshareDisplay = () => {
|
|
27918
27965
|
},
|
27919
27966
|
"data-testid": "stop_screen_share_btn"
|
27920
27967
|
},
|
27921
|
-
/* @__PURE__ */ React144.createElement(
|
27968
|
+
/* @__PURE__ */ React144.createElement(CrossIcon25, { width: 18, height: 18 }),
|
27922
27969
|
"\xA0 Stop screen share"
|
27923
27970
|
)
|
27924
27971
|
);
|
@@ -27934,13 +27981,13 @@ var labelStyles = {
|
|
27934
27981
|
flexShrink: 0
|
27935
27982
|
};
|
27936
27983
|
var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
27937
|
-
const isLocal =
|
27938
|
-
const track =
|
27984
|
+
const isLocal = useHMSStore78(selectLocalPeerID13) === peerId;
|
27985
|
+
const track = useHMSStore78(selectScreenShareByPeerID2(peerId));
|
27939
27986
|
const { theme: theme2 } = useTheme();
|
27940
|
-
const peer =
|
27987
|
+
const peer = useHMSStore78(selectPeerByID4(peerId));
|
27941
27988
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
27942
27989
|
const [isMouseHovered, setIsMouseHovered] = useState62(false);
|
27943
|
-
const isMobile =
|
27990
|
+
const isMobile = useMedia32(config.media.md);
|
27944
27991
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
27945
27992
|
const fullscreenRef = useRef26(null);
|
27946
27993
|
const [fullscreen, setFullscreen] = useState62(false);
|
@@ -27948,7 +27995,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
27948
27995
|
onClose: () => setFullscreen(false)
|
27949
27996
|
});
|
27950
27997
|
const isFullScreenSupported = screenfull2.isEnabled;
|
27951
|
-
const audioTrack =
|
27998
|
+
const audioTrack = useHMSStore78(selectScreenShareAudioByPeerID2(peer?.id));
|
27952
27999
|
if (isLocal && track?.displaySurface && !["browser", "window", "application"].includes(track.displaySurface)) {
|
27953
28000
|
return /* @__PURE__ */ React145.createElement(ScreenshareDisplay, null);
|
27954
28001
|
}
|
@@ -28026,12 +28073,12 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
28026
28073
|
|
28027
28074
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
28028
28075
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
28029
|
-
const peersSharing =
|
28076
|
+
const peersSharing = useHMSStore79(selectPeersScreenSharing);
|
28030
28077
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28031
28078
|
const [page, setPage] = useState63(0);
|
28032
28079
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28033
28080
|
const activeSharePeer = peersSharing[page];
|
28034
|
-
const isMobile =
|
28081
|
+
const isMobile = useMedia33(config.media.md);
|
28035
28082
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28036
28083
|
const secondaryPeers = useMemo17(() => {
|
28037
28084
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -28042,7 +28089,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28042
28089
|
}
|
28043
28090
|
return peers.filter((p) => p.id !== activeSharePeer?.id);
|
28044
28091
|
}, [activeSharePeer, peers, isMobile, layoutMode]);
|
28045
|
-
|
28092
|
+
useEffect43(() => {
|
28046
28093
|
if (isMobile) {
|
28047
28094
|
setLayoutMode(LayoutMode.GALLERY);
|
28048
28095
|
return;
|
@@ -28055,7 +28102,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28055
28102
|
setLayoutMode(LayoutMode.GALLERY);
|
28056
28103
|
};
|
28057
28104
|
}, [isMobile]);
|
28058
|
-
|
28105
|
+
useEffect43(() => {
|
28059
28106
|
setActiveScreenSharePeer(isMobile ? "" : activeSharePeer?.id);
|
28060
28107
|
return () => {
|
28061
28108
|
setActiveScreenSharePeer("");
|
@@ -28075,12 +28122,12 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28075
28122
|
|
28076
28123
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
28077
28124
|
init_define_process_env();
|
28078
|
-
import React147, { useEffect as
|
28079
|
-
import { useMedia as
|
28125
|
+
import React147, { useEffect as useEffect44, useMemo as useMemo18 } from "react";
|
28126
|
+
import { useMedia as useMedia34 } from "react-use";
|
28080
28127
|
import { Whiteboard } from "@100mslive/hms-whiteboard";
|
28081
|
-
import { selectPeerByCondition, selectWhiteboard, useHMSStore as
|
28128
|
+
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28082
28129
|
var WhiteboardEmbed = () => {
|
28083
|
-
const isMobile =
|
28130
|
+
const isMobile = useMedia34(config.media.md);
|
28084
28131
|
const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
|
28085
28132
|
return /* @__PURE__ */ React147.createElement(
|
28086
28133
|
Box,
|
@@ -28099,10 +28146,10 @@ var WhiteboardEmbed = () => {
|
|
28099
28146
|
);
|
28100
28147
|
};
|
28101
28148
|
var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
28102
|
-
const whiteboard =
|
28103
|
-
const whiteboardOwner =
|
28149
|
+
const whiteboard = useHMSStore80(selectWhiteboard);
|
28150
|
+
const whiteboardOwner = useHMSStore80(selectPeerByCondition((peer) => peer.customerUserId === whiteboard?.owner));
|
28104
28151
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28105
|
-
const isMobile =
|
28152
|
+
const isMobile = useMedia34(config.media.md);
|
28106
28153
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28107
28154
|
const secondaryPeers = useMemo18(() => {
|
28108
28155
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -28113,7 +28160,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28113
28160
|
}
|
28114
28161
|
return peers.filter((p) => p.id !== whiteboardOwner?.id);
|
28115
28162
|
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
28116
|
-
|
28163
|
+
useEffect44(() => {
|
28117
28164
|
if (isMobile) {
|
28118
28165
|
setLayoutMode(LayoutMode.GALLERY);
|
28119
28166
|
return;
|
@@ -28243,12 +28290,12 @@ var GridLayout = ({
|
|
28243
28290
|
edge_to_edge = false,
|
28244
28291
|
hide_metadata_on_tile = false
|
28245
28292
|
}) => {
|
28246
|
-
const peerSharing =
|
28247
|
-
const whiteboard =
|
28293
|
+
const peerSharing = useHMSStore81(selectPeerScreenSharing2);
|
28294
|
+
const whiteboard = useHMSStore81(selectWhiteboard2);
|
28248
28295
|
const pinnedTrack = usePinnedTrack();
|
28249
|
-
const peers =
|
28250
|
-
const localPeerRole =
|
28251
|
-
const localPeerID =
|
28296
|
+
const peers = useHMSStore81(selectPeers3);
|
28297
|
+
const localPeerRole = useHMSStore81(selectLocalPeerRoleName5);
|
28298
|
+
const localPeerID = useHMSStore81(selectLocalPeerID14);
|
28252
28299
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28253
28300
|
const isRoleProminence = prominentRoles.length && peers.some(
|
28254
28301
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
@@ -28289,7 +28336,7 @@ var GridLayout = ({
|
|
28289
28336
|
hideMetadataOnTile: hide_metadata_on_tile,
|
28290
28337
|
objectFit: video_object_fit
|
28291
28338
|
};
|
28292
|
-
|
28339
|
+
useEffect45(() => {
|
28293
28340
|
if (mainPage !== 0) {
|
28294
28341
|
return;
|
28295
28342
|
}
|
@@ -28346,20 +28393,20 @@ var GridLayout = ({
|
|
28346
28393
|
|
28347
28394
|
// src/Prebuilt/layouts/EmbedView.jsx
|
28348
28395
|
init_define_process_env();
|
28349
|
-
import React149, { useEffect as
|
28350
|
-
import { selectAppData as
|
28396
|
+
import React149, { useEffect as useEffect46, useMemo as useMemo20 } from "react";
|
28397
|
+
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore82 } from "@100mslive/react-sdk";
|
28351
28398
|
var EmbedView = () => {
|
28352
28399
|
return /* @__PURE__ */ React149.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React149.createElement(EmbedComponent, null));
|
28353
28400
|
};
|
28354
28401
|
var EmbedScreenShareView = ({ children }) => {
|
28355
|
-
const peers =
|
28356
|
-
const peerPresenting =
|
28402
|
+
const peers = useHMSStore82(selectPeers4);
|
28403
|
+
const peerPresenting = useHMSStore82(selectPeerScreenSharing3);
|
28357
28404
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28358
28405
|
const smallTilePeers = useMemo20(() => {
|
28359
28406
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== peerPresenting?.id);
|
28360
28407
|
return smallTilePeers2;
|
28361
28408
|
}, [peers, peerPresenting]);
|
28362
|
-
|
28409
|
+
useEffect46(() => {
|
28363
28410
|
setActiveScreenSharePeer(peerPresenting?.id);
|
28364
28411
|
return () => {
|
28365
28412
|
setActiveScreenSharePeer("");
|
@@ -28368,10 +28415,10 @@ var EmbedScreenShareView = ({ children }) => {
|
|
28368
28415
|
return /* @__PURE__ */ React149.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React149.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React149.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28369
28416
|
};
|
28370
28417
|
var EmbedComponent = () => {
|
28371
|
-
const embedConfig =
|
28418
|
+
const embedConfig = useHMSStore82(selectAppData11(APP_DATA.embedConfig));
|
28372
28419
|
const resetConfig = useResetEmbedConfig();
|
28373
28420
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
28374
|
-
|
28421
|
+
useEffect46(() => {
|
28375
28422
|
(async () => {
|
28376
28423
|
if (embedConfig && !isEmbedShareInProgress) {
|
28377
28424
|
try {
|
@@ -28419,18 +28466,18 @@ var EmbedComponent = () => {
|
|
28419
28466
|
|
28420
28467
|
// src/Prebuilt/layouts/PDFView.jsx
|
28421
28468
|
init_define_process_env();
|
28422
|
-
import React150, { useEffect as
|
28469
|
+
import React150, { useEffect as useEffect47 } from "react";
|
28423
28470
|
import { usePDFShare } from "@100mslive/react-sdk";
|
28424
28471
|
var PDFView = () => {
|
28425
28472
|
const pdfConfig = usePDFConfig();
|
28426
28473
|
const resetConfig = useResetPDFConfig();
|
28427
28474
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
28428
|
-
|
28475
|
+
useEffect47(() => {
|
28429
28476
|
return () => {
|
28430
28477
|
resetConfig();
|
28431
28478
|
};
|
28432
28479
|
}, []);
|
28433
|
-
|
28480
|
+
useEffect47(() => {
|
28434
28481
|
(async () => {
|
28435
28482
|
try {
|
28436
28483
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -28529,9 +28576,9 @@ var WaitingView = React151.memo(() => {
|
|
28529
28576
|
|
28530
28577
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
28531
28578
|
init_define_process_env();
|
28532
|
-
import React152, { useEffect as
|
28533
|
-
import { useMedia as
|
28534
|
-
import { selectPeerNameByID as selectPeerNameByID5, useHMSStore as
|
28579
|
+
import React152, { useEffect as useEffect48, useState as useState65 } from "react";
|
28580
|
+
import { useMedia as useMedia35 } from "react-use";
|
28581
|
+
import { selectPeerNameByID as selectPeerNameByID5, useHMSStore as useHMSStore83, useTranscript } from "@100mslive/react-sdk";
|
28535
28582
|
var SimpleQueue = class {
|
28536
28583
|
constructor(capacity = 3, MAX_STORAGE_TIME = 5e3) {
|
28537
28584
|
this.capacity = capacity;
|
@@ -28661,7 +28708,7 @@ var CaptionMaintainerQueue = class {
|
|
28661
28708
|
}
|
28662
28709
|
};
|
28663
28710
|
var TranscriptView = ({ peer_id, data: data3 }) => {
|
28664
|
-
const peerName =
|
28711
|
+
const peerName = useHMSStore83(selectPeerNameByID5(peer_id)) || "Participant";
|
28665
28712
|
data3 = data3.trim();
|
28666
28713
|
if (!data3)
|
28667
28714
|
return null;
|
@@ -28679,13 +28726,13 @@ var TranscriptView = ({ peer_id, data: data3 }) => {
|
|
28679
28726
|
};
|
28680
28727
|
var CaptionsViewer = () => {
|
28681
28728
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
28682
|
-
const isMobile =
|
28729
|
+
const isMobile = useMedia35(config.media.md);
|
28683
28730
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
28684
28731
|
const showCaptionAtTop = elements?.chat?.is_overlay && isChatOpen && isMobile;
|
28685
28732
|
const [captionQueue] = useState65(new CaptionMaintainerQueue());
|
28686
28733
|
const [currentData, setCurrentData] = useState65([]);
|
28687
28734
|
const isCaptionEnabled = useIsCaptionEnabled();
|
28688
|
-
|
28735
|
+
useEffect48(() => {
|
28689
28736
|
const timeInterval = setInterval(() => {
|
28690
28737
|
if (!captionQueue) {
|
28691
28738
|
return;
|
@@ -28739,12 +28786,12 @@ var CaptionsViewer = () => {
|
|
28739
28786
|
|
28740
28787
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
28741
28788
|
init_define_process_env();
|
28742
|
-
import { useEffect as
|
28743
|
-
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as
|
28789
|
+
import { useEffect as useEffect49 } from "react";
|
28790
|
+
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore84, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
28744
28791
|
var useCloseScreenshareWhiteboard = () => {
|
28745
|
-
const peerSharing =
|
28792
|
+
const peerSharing = useHMSStore84(selectPeerScreenSharing4);
|
28746
28793
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
28747
|
-
|
28794
|
+
useEffect49(() => {
|
28748
28795
|
if (isWhiteboardOwner && peerSharing) {
|
28749
28796
|
toggleWhiteboard?.();
|
28750
28797
|
}
|
@@ -28752,14 +28799,14 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28752
28799
|
};
|
28753
28800
|
|
28754
28801
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28755
|
-
var HLSView = React153.lazy(() => import("./HLSView-
|
28802
|
+
var HLSView = React153.lazy(() => import("./HLSView-73GDHCD4.js"));
|
28756
28803
|
var VideoStreamingSection = ({
|
28757
28804
|
screenType,
|
28758
28805
|
elements,
|
28759
28806
|
hideControls = false
|
28760
28807
|
}) => {
|
28761
|
-
const localPeerRole =
|
28762
|
-
const isConnected =
|
28808
|
+
const localPeerRole = useHMSStore85(selectLocalPeerRoleName6);
|
28809
|
+
const isConnected = useHMSStore85(selectIsConnectedToRoom9);
|
28763
28810
|
const hmsActions = useHMSActions46();
|
28764
28811
|
const waitingViewerRole = useWaitingViewerRole();
|
28765
28812
|
const urlToIframe = useUrlToEmbed();
|
@@ -28767,7 +28814,7 @@ var VideoStreamingSection = ({
|
|
28767
28814
|
const isMobileHLSStream = useMobileHLSStream();
|
28768
28815
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
28769
28816
|
useCloseScreenshareWhiteboard();
|
28770
|
-
|
28817
|
+
useEffect50(() => {
|
28771
28818
|
if (!isConnected) {
|
28772
28819
|
return;
|
28773
28820
|
}
|
@@ -28840,17 +28887,17 @@ init_define_process_env();
|
|
28840
28887
|
// src/Prebuilt/components/Header/Header.tsx
|
28841
28888
|
init_define_process_env();
|
28842
28889
|
import React156 from "react";
|
28843
|
-
import { useMedia as
|
28844
|
-
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as
|
28890
|
+
import { useMedia as useMedia37 } from "react-use";
|
28891
|
+
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
|
28845
28892
|
|
28846
28893
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
28847
28894
|
init_define_process_env();
|
28848
28895
|
import React154 from "react";
|
28849
|
-
import { useMedia as
|
28896
|
+
import { useMedia as useMedia36 } from "react-use";
|
28850
28897
|
import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
|
28851
28898
|
var RoomDetailsHeader = () => {
|
28852
28899
|
const { title, description } = useRoomLayoutHeader();
|
28853
|
-
const isMobile =
|
28900
|
+
const isMobile = useMedia36(config.media.md);
|
28854
28901
|
const clipLength = 30;
|
28855
28902
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
28856
28903
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -28877,13 +28924,13 @@ import {
|
|
28877
28924
|
selectVideoTrackByID as selectVideoTrackByID7,
|
28878
28925
|
useDevices as useDevices3,
|
28879
28926
|
useHMSActions as useHMSActions47,
|
28880
|
-
useHMSStore as
|
28927
|
+
useHMSStore as useHMSStore86
|
28881
28928
|
} from "@100mslive/react-sdk";
|
28882
28929
|
import {
|
28883
28930
|
BluetoothIcon,
|
28884
28931
|
CameraFlipIcon as CameraFlipIcon2,
|
28885
|
-
CheckIcon as
|
28886
|
-
CrossIcon as
|
28932
|
+
CheckIcon as CheckIcon8,
|
28933
|
+
CrossIcon as CrossIcon26,
|
28887
28934
|
HeadphonesIcon,
|
28888
28935
|
SpeakerIcon as SpeakerIcon4
|
28889
28936
|
} from "@100mslive/react-icons";
|
@@ -28891,9 +28938,9 @@ var CamaraFlipActions = () => {
|
|
28891
28938
|
const actions = useHMSActions47();
|
28892
28939
|
const { allDevices } = useDevices3();
|
28893
28940
|
const { videoInput } = allDevices;
|
28894
|
-
const isVideoOn =
|
28895
|
-
const videoTrackId =
|
28896
|
-
const localVideoTrack =
|
28941
|
+
const isVideoOn = useHMSStore86(selectIsLocalVideoEnabled8);
|
28942
|
+
const videoTrackId = useHMSStore86(selectLocalVideoTrackID3);
|
28943
|
+
const localVideoTrack = useHMSStore86(selectVideoTrackByID7(videoTrackId));
|
28897
28944
|
if (!videoInput || !videoInput?.length || !localVideoTrack?.facingMode) {
|
28898
28945
|
return null;
|
28899
28946
|
}
|
@@ -28968,7 +29015,7 @@ var AudioActions = () => {
|
|
28968
29015
|
);
|
28969
29016
|
};
|
28970
29017
|
var AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {
|
28971
|
-
return /* @__PURE__ */ React155.createElement(Sheet.Root, null, /* @__PURE__ */ React155.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React155.createElement(Sheet.Content, null, /* @__PURE__ */ React155.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React155.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React155.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ React155.createElement(Sheet.Close, null, /* @__PURE__ */ React155.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React155.createElement(
|
29018
|
+
return /* @__PURE__ */ React155.createElement(Sheet.Root, null, /* @__PURE__ */ React155.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React155.createElement(Sheet.Content, null, /* @__PURE__ */ React155.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React155.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React155.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ React155.createElement(Sheet.Close, null, /* @__PURE__ */ React155.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React155.createElement(CrossIcon26, null))))), /* @__PURE__ */ React155.createElement(HorizontalDivider, null), /* @__PURE__ */ React155.createElement(
|
28972
29019
|
Flex,
|
28973
29020
|
{
|
28974
29021
|
direction: "column",
|
@@ -29023,14 +29070,14 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React155.createElement(Re
|
|
29023
29070
|
icon,
|
29024
29071
|
label
|
29025
29072
|
),
|
29026
|
-
checked && /* @__PURE__ */ React155.createElement(
|
29073
|
+
checked && /* @__PURE__ */ React155.createElement(CheckIcon8, { width: 24, height: 24 })
|
29027
29074
|
);
|
29028
29075
|
};
|
29029
29076
|
|
29030
29077
|
// src/Prebuilt/components/Header/Header.tsx
|
29031
29078
|
var Header2 = () => {
|
29032
|
-
const roomState =
|
29033
|
-
const isMobile =
|
29079
|
+
const roomState = useHMSStore87(selectRoomState6);
|
29080
|
+
const isMobile = useMedia37(config.media.md);
|
29034
29081
|
if (roomState !== HMSRoomState6.Connected) {
|
29035
29082
|
return /* @__PURE__ */ React156.createElement(React156.Fragment, null);
|
29036
29083
|
}
|
@@ -29051,12 +29098,12 @@ var Header2 = () => {
|
|
29051
29098
|
|
29052
29099
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
29053
29100
|
init_define_process_env();
|
29054
|
-
import { useEffect as
|
29101
|
+
import { useEffect as useEffect51 } from "react";
|
29055
29102
|
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore13 } from "@100mslive/react-sdk";
|
29056
29103
|
var PreviousRoleInMetadata = () => {
|
29057
29104
|
const vanillaStore = useHMSVanillaStore13();
|
29058
29105
|
const { updateMetaData } = useMyMetadata();
|
29059
|
-
|
29106
|
+
useEffect51(() => {
|
29060
29107
|
let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
|
29061
29108
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
29062
29109
|
if (previousRole !== currentRole && currentRole) {
|
@@ -29074,11 +29121,11 @@ var ConferenceScreen = () => {
|
|
29074
29121
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
29075
29122
|
const screenProps = useRoomLayoutConferencingScreen();
|
29076
29123
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
29077
|
-
const roomState =
|
29078
|
-
const isConnectedToRoom =
|
29124
|
+
const roomState = useHMSStore88(selectRoomState7);
|
29125
|
+
const isConnectedToRoom = useHMSStore88(selectIsConnectedToRoom10);
|
29079
29126
|
const hmsActions = useHMSActions48();
|
29080
29127
|
const [hideControls, setHideControls] = useState66(false);
|
29081
|
-
const dropdownList =
|
29128
|
+
const dropdownList = useHMSStore88(selectAppData12(APP_DATA.dropdownList));
|
29082
29129
|
const authTokenInAppData = useAuthToken();
|
29083
29130
|
const headerRef = useRef27(null);
|
29084
29131
|
const footerRef = useRef27(null);
|
@@ -29095,7 +29142,7 @@ var ConferenceScreen = () => {
|
|
29095
29142
|
setHideControls((value) => !value);
|
29096
29143
|
}
|
29097
29144
|
};
|
29098
|
-
|
29145
|
+
useEffect52(() => {
|
29099
29146
|
let timeout;
|
29100
29147
|
dropdownListRef.current = dropdownList || [];
|
29101
29148
|
if (dropdownListRef.current && dropdownListRef.current.length === 0) {
|
@@ -29110,7 +29157,7 @@ var ConferenceScreen = () => {
|
|
29110
29157
|
clearTimeout(timeout);
|
29111
29158
|
};
|
29112
29159
|
}, [dropdownList, hideControls, isMobileDevice]);
|
29113
|
-
|
29160
|
+
useEffect52(() => {
|
29114
29161
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState7.Connecting && !autoRoomJoined.current) {
|
29115
29162
|
hmsActions.join({
|
29116
29163
|
userName: userName || uuid3(),
|
@@ -29125,7 +29172,7 @@ var ConferenceScreen = () => {
|
|
29125
29172
|
autoRoomJoined.current = true;
|
29126
29173
|
}
|
29127
29174
|
}, [authTokenInAppData, endpoints?.init, hmsActions, isConnectedToRoom, isPreviewScreenEnabled, roomState, userName]);
|
29128
|
-
|
29175
|
+
useEffect52(() => {
|
29129
29176
|
onJoinFunc?.();
|
29130
29177
|
return () => {
|
29131
29178
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
@@ -29306,12 +29353,12 @@ var ErrorBoundary = class extends Component {
|
|
29306
29353
|
|
29307
29354
|
// src/Prebuilt/components/init/Init.jsx
|
29308
29355
|
init_define_process_env();
|
29309
|
-
import React159, { useEffect as
|
29356
|
+
import React159, { useEffect as useEffect54 } from "react";
|
29310
29357
|
|
29311
29358
|
// src/Prebuilt/services/FeatureFlags.jsx
|
29312
29359
|
init_define_process_env();
|
29313
|
-
import { useEffect as
|
29314
|
-
import { selectRoomID, useHMSStore as
|
29360
|
+
import { useEffect as useEffect53 } from "react";
|
29361
|
+
import { selectRoomID, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
29315
29362
|
var FeatureFlags = class {
|
29316
29363
|
static enableTranscription = define_process_env_default.REACT_APP_ENABLE_TRANSCRIPTION === "true";
|
29317
29364
|
static enableStatsForNerds = define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true";
|
@@ -29336,8 +29383,8 @@ var FeatureFlags = class {
|
|
29336
29383
|
}
|
29337
29384
|
};
|
29338
29385
|
function FeatureFlagsInit() {
|
29339
|
-
const roomId =
|
29340
|
-
|
29386
|
+
const roomId = useHMSStore89(selectRoomID);
|
29387
|
+
useEffect53(() => {
|
29341
29388
|
if (roomId) {
|
29342
29389
|
FeatureFlags.init(roomId);
|
29343
29390
|
}
|
@@ -29348,10 +29395,10 @@ function FeatureFlagsInit() {
|
|
29348
29395
|
// src/Prebuilt/components/init/Init.jsx
|
29349
29396
|
var Init = () => {
|
29350
29397
|
const { toggleTheme } = useTheme();
|
29351
|
-
|
29398
|
+
useEffect54(() => {
|
29352
29399
|
window.toggleUiTheme = toggleTheme;
|
29353
29400
|
}, [toggleTheme]);
|
29354
|
-
|
29401
|
+
useEffect54(() => {
|
29355
29402
|
function resetHeight() {
|
29356
29403
|
document.body.style.height = `${window.visualViewport?.height || window.innerHeight}px`;
|
29357
29404
|
}
|
@@ -29366,9 +29413,9 @@ var Init = () => {
|
|
29366
29413
|
|
29367
29414
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
29368
29415
|
init_define_process_env();
|
29369
|
-
import { useEffect as
|
29416
|
+
import { useEffect as useEffect55 } from "react";
|
29370
29417
|
import {
|
29371
|
-
selectAppData as
|
29418
|
+
selectAppData as selectAppData13,
|
29372
29419
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
29373
29420
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
29374
29421
|
useHMSActions as useHMSActions49,
|
@@ -29391,12 +29438,12 @@ var KeyboardInputManager = class {
|
|
29391
29438
|
await this.#actions.setLocalVideoEnabled(!enabled);
|
29392
29439
|
};
|
29393
29440
|
#hideSidepane = () => {
|
29394
|
-
if (this.#store.getState(
|
29441
|
+
if (this.#store.getState(selectAppData13(APP_DATA.sidePane))) {
|
29395
29442
|
this.#actions.setAppData(APP_DATA.sidePane, "");
|
29396
29443
|
}
|
29397
29444
|
};
|
29398
29445
|
#toggleStatsForNerds = () => {
|
29399
|
-
const uiSettings = this.#store.getState(
|
29446
|
+
const uiSettings = this.#store.getState(selectAppData13(APP_DATA.uiSettings));
|
29400
29447
|
const statsEnabled = uiSettings.showStatsOnTiles;
|
29401
29448
|
this.#actions.setAppData(APP_DATA.uiSettings, {
|
29402
29449
|
...uiSettings,
|
@@ -29404,7 +29451,7 @@ var KeyboardInputManager = class {
|
|
29404
29451
|
});
|
29405
29452
|
};
|
29406
29453
|
#toggleHlsStats = () => {
|
29407
|
-
this.#actions.setAppData(APP_DATA.hlsStats, !this.#store.getState(
|
29454
|
+
this.#actions.setAppData(APP_DATA.hlsStats, !this.#store.getState(selectAppData13(APP_DATA.hlsStats)));
|
29408
29455
|
};
|
29409
29456
|
// eslint-disable-next-line complexity
|
29410
29457
|
#keyDownHandler = async (e) => {
|
@@ -29451,7 +29498,7 @@ var KeyboardInputManager = class {
|
|
29451
29498
|
var KeyboardHandler = () => {
|
29452
29499
|
const store = useHMSVanillaStore14();
|
29453
29500
|
const actions = useHMSActions49();
|
29454
|
-
|
29501
|
+
useEffect55(() => {
|
29455
29502
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
29456
29503
|
keyboardManager.bindAllShortcuts();
|
29457
29504
|
return keyboardManager.unbindAllShortcuts;
|
@@ -29466,10 +29513,10 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
|
|
29466
29513
|
|
29467
29514
|
// src/Prebuilt/AppStateContext.tsx
|
29468
29515
|
init_define_process_env();
|
29469
|
-
import React160, { useContext as useContext4, useEffect as
|
29516
|
+
import React160, { useContext as useContext4, useEffect as useEffect56 } from "react";
|
29470
29517
|
import { usePreviousDistinct } from "react-use";
|
29471
29518
|
import { match as match13, P as P4 } from "ts-pattern";
|
29472
|
-
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as
|
29519
|
+
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
|
29473
29520
|
|
29474
29521
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
29475
29522
|
init_define_process_env();
|
@@ -29506,7 +29553,7 @@ var useHMSAppStateContext = () => {
|
|
29506
29553
|
var useAppStateManager = () => {
|
29507
29554
|
const roomLayout = useRoomLayout();
|
29508
29555
|
const [activeState, setActiveState] = React160.useState();
|
29509
|
-
const roomState =
|
29556
|
+
const roomState = useHMSStore90(selectRoomState8);
|
29510
29557
|
const prevRoomState = usePreviousDistinct(roomState);
|
29511
29558
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
29512
29559
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -29514,7 +29561,7 @@ var useAppStateManager = () => {
|
|
29514
29561
|
const rejoin = () => {
|
29515
29562
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
29516
29563
|
};
|
29517
|
-
|
29564
|
+
useEffect56(() => {
|
29518
29565
|
if (!roomLayout) {
|
29519
29566
|
return;
|
29520
29567
|
}
|
@@ -29586,15 +29633,15 @@ var LeaveScreen = () => {
|
|
29586
29633
|
|
29587
29634
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
29588
29635
|
init_define_process_env();
|
29589
|
-
import React162, { useEffect as
|
29590
|
-
import { useMedia as
|
29636
|
+
import React162, { useEffect as useEffect57, useState as useState67 } from "react";
|
29637
|
+
import { useMedia as useMedia38 } from "react-use";
|
29591
29638
|
import { match as match14, P as P5 } from "ts-pattern";
|
29592
29639
|
import { RefreshIcon } from "@100mslive/react-icons";
|
29593
29640
|
var MwebLandscapePrompt = () => {
|
29594
29641
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState67(false);
|
29595
|
-
const isLandscape =
|
29642
|
+
const isLandscape = useMedia38(config.media.ls);
|
29596
29643
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
29597
|
-
|
29644
|
+
useEffect57(() => {
|
29598
29645
|
if (!isMobileUserAgent) {
|
29599
29646
|
setShowMwebLandscapePrompt(false);
|
29600
29647
|
return;
|
@@ -29638,7 +29685,7 @@ init_define_process_env();
|
|
29638
29685
|
|
29639
29686
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
29640
29687
|
init_define_process_env();
|
29641
|
-
import React171, { useCallback as useCallback36, useEffect as
|
29688
|
+
import React171, { useCallback as useCallback36, useEffect as useEffect67 } from "react";
|
29642
29689
|
import {
|
29643
29690
|
HMSNotificationTypes as HMSNotificationTypes10,
|
29644
29691
|
HMSRoomState as HMSRoomState10,
|
@@ -29649,7 +29696,7 @@ import {
|
|
29649
29696
|
useAwayNotifications as useAwayNotifications2,
|
29650
29697
|
useCustomEvent as useCustomEvent4,
|
29651
29698
|
useHMSNotifications as useHMSNotifications10,
|
29652
|
-
useHMSStore as
|
29699
|
+
useHMSStore as useHMSStore94,
|
29653
29700
|
useHMSVanillaStore as useHMSVanillaStore16
|
29654
29701
|
} from "@100mslive/react-sdk";
|
29655
29702
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
@@ -29687,15 +29734,15 @@ function AutoplayBlockedModal() {
|
|
29687
29734
|
|
29688
29735
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
29689
29736
|
init_define_process_env();
|
29690
|
-
import React164, { useEffect as
|
29737
|
+
import React164, { useEffect as useEffect58 } from "react";
|
29691
29738
|
import { v4 as uuid4 } from "uuid";
|
29692
|
-
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as
|
29739
|
+
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
|
29693
29740
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
29694
29741
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
29695
29742
|
var ChatNotifications = () => {
|
29696
|
-
const chatState =
|
29697
|
-
const localPeerId =
|
29698
|
-
|
29743
|
+
const chatState = useHMSStore91(selectSessionStore12("chatState" /* CHAT_STATE */));
|
29744
|
+
const localPeerId = useHMSStore91(selectLocalPeerID15);
|
29745
|
+
useEffect58(() => {
|
29699
29746
|
if (!chatState || chatState.updatedBy?.peerId === localPeerId) {
|
29700
29747
|
return;
|
29701
29748
|
}
|
@@ -29715,7 +29762,7 @@ var ChatNotifications = () => {
|
|
29715
29762
|
|
29716
29763
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
29717
29764
|
init_define_process_env();
|
29718
|
-
import { useEffect as
|
29765
|
+
import { useEffect as useEffect59 } from "react";
|
29719
29766
|
import {
|
29720
29767
|
HMSNotificationTypes as HMSNotificationTypes2,
|
29721
29768
|
HMSRoomState as HMSRoomState9,
|
@@ -29723,7 +29770,7 @@ import {
|
|
29723
29770
|
selectPeerByID as selectPeerByID6,
|
29724
29771
|
selectRoomState as selectRoomState9,
|
29725
29772
|
useHMSNotifications as useHMSNotifications2,
|
29726
|
-
useHMSStore as
|
29773
|
+
useHMSStore as useHMSStore93,
|
29727
29774
|
useHMSVanillaStore as useHMSVanillaStore15
|
29728
29775
|
} from "@100mslive/react-sdk";
|
29729
29776
|
|
@@ -29733,7 +29780,7 @@ init_define_process_env();
|
|
29733
29780
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
29734
29781
|
init_define_process_env();
|
29735
29782
|
import React165, { useCallback as useCallback35 } from "react";
|
29736
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions50, useHMSStore as
|
29783
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions50, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
|
29737
29784
|
import {
|
29738
29785
|
ChatUnreadIcon as ChatUnreadIcon2,
|
29739
29786
|
ConnectivityIcon,
|
@@ -29754,7 +29801,7 @@ var HandRaiseAction = React165.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
29754
29801
|
const hmsActions = useHMSActions50();
|
29755
29802
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29756
29803
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29757
|
-
const peer =
|
29804
|
+
const peer = useHMSStore92(selectPeerByID5(id));
|
29758
29805
|
const layout = useRoomLayout();
|
29759
29806
|
const {
|
29760
29807
|
bring_to_stage_label,
|
@@ -29951,11 +29998,11 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
29951
29998
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
29952
29999
|
var HandRaisedNotifications = () => {
|
29953
30000
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
29954
|
-
const roomState =
|
30001
|
+
const roomState = useHMSStore93(selectRoomState9);
|
29955
30002
|
const vanillaStore = useHMSVanillaStore15();
|
29956
30003
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
29957
30004
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
29958
|
-
|
30005
|
+
useEffect59(() => {
|
29959
30006
|
if (!notification?.data) {
|
29960
30007
|
return;
|
29961
30008
|
}
|
@@ -29975,13 +30022,13 @@ var HandRaisedNotifications = () => {
|
|
29975
30022
|
|
29976
30023
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
29977
30024
|
init_define_process_env();
|
29978
|
-
import React166, { useEffect as
|
30025
|
+
import React166, { useEffect as useEffect60, useState as useState68 } from "react";
|
29979
30026
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
29980
30027
|
var InitErrorModal = () => {
|
29981
30028
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
29982
30029
|
const [showModal, setShowModal] = useState68(false);
|
29983
30030
|
const [info, setInfo] = useState68({ title: "Init Error", description: "" });
|
29984
|
-
|
30031
|
+
useEffect60(() => {
|
29985
30032
|
const data3 = notification?.data;
|
29986
30033
|
if (!data3 || data3.action !== "INIT") {
|
29987
30034
|
return;
|
@@ -30006,7 +30053,7 @@ var InitErrorModal = () => {
|
|
30006
30053
|
|
30007
30054
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
30008
30055
|
init_define_process_env();
|
30009
|
-
import { useEffect as
|
30056
|
+
import { useEffect as useEffect61 } from "react";
|
30010
30057
|
import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
|
30011
30058
|
var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
|
30012
30059
|
var PeerNotifications = () => {
|
@@ -30014,7 +30061,7 @@ var PeerNotifications = () => {
|
|
30014
30061
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
30015
30062
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
30016
30063
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
30017
|
-
|
30064
|
+
useEffect61(() => {
|
30018
30065
|
if (!notification?.data) {
|
30019
30066
|
return;
|
30020
30067
|
}
|
@@ -30043,8 +30090,8 @@ var PeerNotifications = () => {
|
|
30043
30090
|
|
30044
30091
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
30045
30092
|
init_define_process_env();
|
30046
|
-
import React167, { useEffect as
|
30047
|
-
import { useMedia as
|
30093
|
+
import React167, { useEffect as useEffect62, useState as useState69 } from "react";
|
30094
|
+
import { useMedia as useMedia39 } from "react-use";
|
30048
30095
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
30049
30096
|
|
30050
30097
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -30058,8 +30105,8 @@ function PermissionErrorModal() {
|
|
30058
30105
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
30059
30106
|
const [deviceType, setDeviceType] = useState69("");
|
30060
30107
|
const [isSystemError, setIsSystemError] = useState69(false);
|
30061
|
-
const isMobile =
|
30062
|
-
|
30108
|
+
const isMobile = useMedia39(config.media.md);
|
30109
|
+
useEffect62(() => {
|
30063
30110
|
if (!notification || notification.data?.code !== 3001 && notification.data?.code !== 3011 || notification.data?.code === 3001 && notification.data?.message.includes("screen")) {
|
30064
30111
|
return;
|
30065
30112
|
}
|
@@ -30116,7 +30163,7 @@ function PermissionErrorModal() {
|
|
30116
30163
|
|
30117
30164
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
30118
30165
|
init_define_process_env();
|
30119
|
-
import React168, { useEffect as
|
30166
|
+
import React168, { useEffect as useEffect63, useState as useState70 } from "react";
|
30120
30167
|
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
30121
30168
|
var notificationTypes2 = [
|
30122
30169
|
HMSNotificationTypes6.RECONNECTED,
|
@@ -30127,7 +30174,7 @@ var notificationId = null;
|
|
30127
30174
|
var ReconnectNotifications = () => {
|
30128
30175
|
const notification = useHMSNotifications6(notificationTypes2);
|
30129
30176
|
const [open, setOpen] = useState70(false);
|
30130
|
-
|
30177
|
+
useEffect63(() => {
|
30131
30178
|
if (!notification) {
|
30132
30179
|
return;
|
30133
30180
|
}
|
@@ -30165,7 +30212,7 @@ var ReconnectNotifications = () => {
|
|
30165
30212
|
|
30166
30213
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
30167
30214
|
init_define_process_env();
|
30168
|
-
import React169, { useEffect as
|
30215
|
+
import React169, { useEffect as useEffect64, useState as useState71 } from "react";
|
30169
30216
|
import {
|
30170
30217
|
HMSNotificationTypes as HMSNotificationTypes7,
|
30171
30218
|
useHMSActions as useHMSActions51,
|
@@ -30180,7 +30227,7 @@ var TrackBulkUnmuteModal = () => {
|
|
30180
30227
|
HMSNotificationTypes7.ROOM_ENDED,
|
30181
30228
|
HMSNotificationTypes7.REMOVED_FROM_ROOM
|
30182
30229
|
]);
|
30183
|
-
|
30230
|
+
useEffect64(() => {
|
30184
30231
|
switch (notification?.type) {
|
30185
30232
|
case HMSNotificationTypes7.REMOVED_FROM_ROOM:
|
30186
30233
|
case HMSNotificationTypes7.ROOM_ENDED:
|
@@ -30219,7 +30266,7 @@ var TrackBulkUnmuteModal = () => {
|
|
30219
30266
|
|
30220
30267
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
30221
30268
|
init_define_process_env();
|
30222
|
-
import { useEffect as
|
30269
|
+
import { useEffect as useEffect65 } from "react";
|
30223
30270
|
import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
|
30224
30271
|
var notificationTypes3 = [
|
30225
30272
|
HMSNotificationTypes8.TRACK_ADDED,
|
@@ -30229,7 +30276,7 @@ var notificationTypes3 = [
|
|
30229
30276
|
];
|
30230
30277
|
var TrackNotifications = () => {
|
30231
30278
|
const notification = useHMSNotifications8(notificationTypes3);
|
30232
|
-
|
30279
|
+
useEffect65(() => {
|
30233
30280
|
if (notification) {
|
30234
30281
|
console.debug(`[${notification.type}]`, notification);
|
30235
30282
|
}
|
@@ -30239,7 +30286,7 @@ var TrackNotifications = () => {
|
|
30239
30286
|
|
30240
30287
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
30241
30288
|
init_define_process_env();
|
30242
|
-
import React170, { useEffect as
|
30289
|
+
import React170, { useEffect as useEffect66, useState as useState72 } from "react";
|
30243
30290
|
import {
|
30244
30291
|
HMSNotificationTypes as HMSNotificationTypes9,
|
30245
30292
|
useHMSActions as useHMSActions52,
|
@@ -30254,7 +30301,7 @@ var TrackUnmuteModal = () => {
|
|
30254
30301
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
30255
30302
|
]);
|
30256
30303
|
const [muteNotification, setMuteNotification] = useState72(null);
|
30257
|
-
|
30304
|
+
useEffect66(() => {
|
30258
30305
|
switch (notification?.type) {
|
30259
30306
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
30260
30307
|
case HMSNotificationTypes9.ROOM_ENDED:
|
@@ -30291,17 +30338,17 @@ var TrackUnmuteModal = () => {
|
|
30291
30338
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
30292
30339
|
var pollToastKey = {};
|
30293
30340
|
function Notifications() {
|
30294
|
-
const localPeerID =
|
30341
|
+
const localPeerID = useHMSStore94(selectLocalPeerID16);
|
30295
30342
|
const notification = useHMSNotifications10();
|
30296
30343
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
30297
|
-
const roomState =
|
30344
|
+
const roomState = useHMSStore94(selectRoomState10);
|
30298
30345
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
30299
30346
|
const isNotificationDisabled = useIsNotificationDisabled();
|
30300
30347
|
const screenProps = useRoomLayoutConferencingScreen();
|
30301
30348
|
const vanillaStore = useHMSVanillaStore16();
|
30302
30349
|
const togglePollView = usePollViewToggle();
|
30303
30350
|
const { showNotification } = useAwayNotifications2();
|
30304
|
-
const amIScreenSharing =
|
30351
|
+
const amIScreenSharing = useHMSStore94(selectIsLocalScreenShared2);
|
30305
30352
|
const logoURL = useRoomLayout()?.logo?.url;
|
30306
30353
|
const handleRoleChangeDenied = useCallback36((request) => {
|
30307
30354
|
ToastManager.addToast({
|
@@ -30310,7 +30357,7 @@ function Notifications() {
|
|
30310
30357
|
});
|
30311
30358
|
}, []);
|
30312
30359
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
30313
|
-
|
30360
|
+
useEffect67(() => {
|
30314
30361
|
if (!notification || isNotificationDisabled) {
|
30315
30362
|
return;
|
30316
30363
|
}
|
@@ -30455,8 +30502,8 @@ var PreviewScreen = () => {
|
|
30455
30502
|
|
30456
30503
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
30457
30504
|
init_define_process_env();
|
30458
|
-
import React174, { useEffect as
|
30459
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as
|
30505
|
+
import React174, { useEffect as useEffect68, useState as useState73 } from "react";
|
30506
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
|
30460
30507
|
|
30461
30508
|
// src/Prebuilt/components/Toast/Toast.jsx
|
30462
30509
|
init_define_process_env();
|
@@ -30479,9 +30526,9 @@ var Toast2 = ({ title, description, close = true, open, duration, onOpenChange,
|
|
30479
30526
|
|
30480
30527
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
30481
30528
|
var ToastContainer = () => {
|
30482
|
-
const isConnected =
|
30529
|
+
const isConnected = useHMSStore95(selectIsConnectedToRoom11);
|
30483
30530
|
const [toasts, setToast] = useState73([]);
|
30484
|
-
|
30531
|
+
useEffect68(() => {
|
30485
30532
|
ToastManager.addListener(setToast);
|
30486
30533
|
return () => {
|
30487
30534
|
ToastManager.removeListener(setToast);
|
@@ -30503,12 +30550,12 @@ var ToastContainer = () => {
|
|
30503
30550
|
// src/Prebuilt/layouts/Sheet.tsx
|
30504
30551
|
init_define_process_env();
|
30505
30552
|
import React176 from "react";
|
30506
|
-
import { selectAppData as
|
30553
|
+
import { selectAppData as selectAppData14, useHMSStore as useHMSStore96 } from "@100mslive/react-sdk";
|
30507
30554
|
|
30508
30555
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
30509
30556
|
init_define_process_env();
|
30510
30557
|
import React175 from "react";
|
30511
|
-
import { CrossIcon as
|
30558
|
+
import { CrossIcon as CrossIcon27 } from "@100mslive/react-icons";
|
30512
30559
|
var RoomDetailsSheet = () => {
|
30513
30560
|
const { title, description, details } = useRoomLayoutHeader();
|
30514
30561
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -30521,13 +30568,13 @@ var RoomDetailsSheet = () => {
|
|
30521
30568
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
30522
30569
|
},
|
30523
30570
|
/* @__PURE__ */ React175.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
30524
|
-
/* @__PURE__ */ React175.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React175.createElement(
|
30571
|
+
/* @__PURE__ */ React175.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React175.createElement(CrossIcon27, null))
|
30525
30572
|
), /* @__PURE__ */ React175.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React175.createElement(Logo, null), /* @__PURE__ */ React175.createElement(Box, null, /* @__PURE__ */ React175.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React175.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React175.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
30526
30573
|
};
|
30527
30574
|
|
30528
30575
|
// src/Prebuilt/layouts/Sheet.tsx
|
30529
30576
|
var Sheet2 = () => {
|
30530
|
-
const sheet =
|
30577
|
+
const sheet = useHMSStore96(selectAppData14(APP_DATA.sheet));
|
30531
30578
|
let ViewComponent;
|
30532
30579
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
30533
30580
|
ViewComponent = /* @__PURE__ */ React176.createElement(RoomDetailsSheet, null);
|
@@ -30537,15 +30584,15 @@ var Sheet2 = () => {
|
|
30537
30584
|
|
30538
30585
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
30539
30586
|
init_define_process_env();
|
30540
|
-
import React177, { useCallback as useCallback37, useEffect as
|
30541
|
-
import { useMedia as
|
30587
|
+
import React177, { useCallback as useCallback37, useEffect as useEffect69, useMemo as useMemo21, useState as useState74 } from "react";
|
30588
|
+
import { useMedia as useMedia40 } from "react-use";
|
30542
30589
|
import {
|
30543
30590
|
selectIsLargeRoom as selectIsLargeRoom4,
|
30544
30591
|
selectLocalPeerID as selectLocalPeerID17,
|
30545
30592
|
selectPeerNameByID as selectPeerNameByID7,
|
30546
30593
|
useCustomEvent as useCustomEvent5,
|
30547
30594
|
useHMSActions as useHMSActions53,
|
30548
|
-
useHMSStore as
|
30595
|
+
useHMSStore as useHMSStore97,
|
30549
30596
|
useHMSVanillaStore as useHMSVanillaStore17
|
30550
30597
|
} from "@100mslive/react-sdk";
|
30551
30598
|
var emojiCount = 1;
|
@@ -30572,12 +30619,12 @@ var getStartingPoints = (isMobile) => {
|
|
30572
30619
|
return arr;
|
30573
30620
|
};
|
30574
30621
|
function FlyingEmoji() {
|
30575
|
-
const localPeerId =
|
30622
|
+
const localPeerId = useHMSStore97(selectLocalPeerID17);
|
30576
30623
|
const vanillaStore = useHMSVanillaStore17();
|
30577
30624
|
const hmsActions = useHMSActions53();
|
30578
30625
|
const [emojis, setEmojis] = useState74([]);
|
30579
|
-
const isMobile =
|
30580
|
-
const isLargeRoom =
|
30626
|
+
const isMobile = useMedia40(config.media.md);
|
30627
|
+
const isLargeRoom = useHMSStore97(selectIsLargeRoom4);
|
30581
30628
|
const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
|
30582
30629
|
const showFlyingEmoji = useCallback37(
|
30583
30630
|
async ({ emojiId, senderId }) => {
|
@@ -30611,7 +30658,7 @@ function FlyingEmoji() {
|
|
30611
30658
|
type: EMOJI_REACTION_TYPE,
|
30612
30659
|
onEvent: showFlyingEmoji
|
30613
30660
|
});
|
30614
|
-
|
30661
|
+
useEffect69(() => {
|
30615
30662
|
window.showFlyingEmoji = showFlyingEmoji;
|
30616
30663
|
}, [showFlyingEmoji]);
|
30617
30664
|
return /* @__PURE__ */ React177.createElement(
|
@@ -30690,20 +30737,20 @@ function RemoteStopScreenshare() {
|
|
30690
30737
|
|
30691
30738
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
30692
30739
|
init_define_process_env();
|
30693
|
-
import { useCallback as useCallback39, useEffect as
|
30740
|
+
import { useCallback as useCallback39, useEffect as useEffect70, useRef as useRef28 } from "react";
|
30694
30741
|
import {
|
30695
30742
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
30696
30743
|
selectPermissions as selectPermissions20,
|
30697
30744
|
useHMSActions as useHMSActions55,
|
30698
|
-
useHMSStore as
|
30745
|
+
useHMSStore as useHMSStore98,
|
30699
30746
|
useRecordingStreaming as useRecordingStreaming12
|
30700
30747
|
} from "@100mslive/react-sdk";
|
30701
30748
|
var useAutoStartStreaming = () => {
|
30702
30749
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
30703
|
-
const permissions =
|
30750
|
+
const permissions = useHMSStore98(selectPermissions20);
|
30704
30751
|
const showStreamingUI = useShowStreamingUI();
|
30705
30752
|
const hmsActions = useHMSActions55();
|
30706
|
-
const isConnected =
|
30753
|
+
const isConnected = useHMSStore98(selectIsConnectedToRoom12);
|
30707
30754
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
30708
30755
|
const streamStartedRef = useRef28(false);
|
30709
30756
|
const startHLS = useCallback39(async () => {
|
@@ -30729,12 +30776,12 @@ var useAutoStartStreaming = () => {
|
|
30729
30776
|
isHLSRecordingOn,
|
30730
30777
|
isBrowserRecordingOn
|
30731
30778
|
]);
|
30732
|
-
|
30779
|
+
useEffect70(() => {
|
30733
30780
|
if (!isHLSStarted && !isHLSRunning) {
|
30734
30781
|
streamStartedRef.current = false;
|
30735
30782
|
}
|
30736
30783
|
}, [isHLSStarted, isHLSRunning]);
|
30737
|
-
|
30784
|
+
useEffect70(() => {
|
30738
30785
|
if (!isConnected || streamStartedRef.current || !permissions?.hlsStreaming) {
|
30739
30786
|
return;
|
30740
30787
|
}
|
@@ -30758,7 +30805,7 @@ var HMSPrebuilt = React179.forwardRef(
|
|
30758
30805
|
}, ref) => {
|
30759
30806
|
const reactiveStore = useRef29();
|
30760
30807
|
const [hydrated, setHydrated] = React179.useState(false);
|
30761
|
-
|
30808
|
+
useEffect71(() => {
|
30762
30809
|
setHydrated(true);
|
30763
30810
|
const hms = new HMSReactiveStore();
|
30764
30811
|
const hmsStore = hms.getStore();
|
@@ -30773,13 +30820,13 @@ var HMSPrebuilt = React179.forwardRef(
|
|
30773
30820
|
hmsNotifications
|
30774
30821
|
};
|
30775
30822
|
}, []);
|
30776
|
-
|
30823
|
+
useEffect71(() => {
|
30777
30824
|
if (!ref || !reactiveStore.current) {
|
30778
30825
|
return;
|
30779
30826
|
}
|
30780
30827
|
ref.current = { ...reactiveStore.current };
|
30781
30828
|
}, [ref]);
|
30782
|
-
|
30829
|
+
useEffect71(() => {
|
30783
30830
|
return () => {
|
30784
30831
|
VBHandler.reset();
|
30785
30832
|
reactiveStore?.current?.hmsActions.leave();
|
@@ -30889,9 +30936,9 @@ var AppStates = ({ activeState }) => {
|
|
30889
30936
|
return match15({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React179.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React179.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React179.createElement(ConferenceScreen, null));
|
30890
30937
|
};
|
30891
30938
|
var BackSwipe = () => {
|
30892
|
-
const isConnectedToRoom =
|
30939
|
+
const isConnectedToRoom = useHMSStore99(selectIsConnectedToRoom13);
|
30893
30940
|
const hmsActions = useHMSActions56();
|
30894
|
-
|
30941
|
+
useEffect71(() => {
|
30895
30942
|
const onRouteLeave = async () => {
|
30896
30943
|
if (isConnectedToRoom) {
|
30897
30944
|
await hmsActions.leave();
|
@@ -31062,4 +31109,4 @@ lodash/lodash.js:
|
|
31062
31109
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
31063
31110
|
*)
|
31064
31111
|
*/
|
31065
|
-
//# sourceMappingURL=chunk-
|
31112
|
+
//# sourceMappingURL=chunk-K7LIJG5P.js.map
|