@100mslive/roomkit-react 0.3.10-alpha.0 → 0.3.10-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-5GXP76IN.js → HLSView-524T6OTY.js} +2 -2
- package/dist/{HLSView-FBGVUTA5.css → HLSView-VL3DXGRO.css} +3 -3
- package/dist/{HLSView-FBGVUTA5.css.map → HLSView-VL3DXGRO.css.map} +1 -1
- 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-IOHV3H2B.js} +602 -561
- package/dist/chunk-IOHV3H2B.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +1943 -1892
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +130 -56
- package/dist/meta.esbuild.json +141 -67
- 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 +56 -37
- package/src/Prebuilt/components/RoleChangeModal.tsx +187 -0
- package/src/Prebuilt/components/TileMenu/TileMenu.tsx +5 -0
- package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +23 -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-524T6OTY.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_889c1af2-ef06-4e3c-b30b-cd22c58d0f1a", 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.2", 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.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_889c1af2-ef06-4e3c-b30b-cd22c58d0f1a", 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.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.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: "598", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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:19827", 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.1", 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: "8906386743", 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: "6d26007639e3d5088d8f47681590b58698e934f4", 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: "dadcf7287bbc6c8b32246789c544bd74a3a77d757b818bdc6ec8f182f68bbf9a", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1714546022030-0.4916634802771065:/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--1714546021829-0.7256890651626318:/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--1714545996719-0.4574281656043575:/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--1714545996521-0.46871058278086974:/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_bc0e1bf5-aad3-4ce4-802f-c0b17f7a26de", INVOCATION_ID: "7f50068761cf4e47b28cf2f9ce087429", 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: "526", 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 451", 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.1", 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.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "6d26007639e3d5088d8f47681590b58698e934f4", 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_889c1af2-ef06-4e3c-b30b-cd22c58d0f1a", 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_889c1af2-ef06-4e3c-b30b-cd22c58d0f1a", 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_889c1af2-ef06-4e3c-b30b-cd22c58d0f1a" };
|
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,42 +15141,39 @@ 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((role) => role !== peer?.roleName);
|
15172
|
+
const [selectedRole, setRole] = useState16(roles.filter((role) => role !== peer?.roleName)?.[0] || peer?.roleName);
|
15171
15173
|
const hmsActions = useHMSActions11();
|
15172
15174
|
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(
|
15175
|
+
const triggerRef = useRef11();
|
15176
|
+
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
15177
|
Text,
|
15182
15178
|
{
|
15183
15179
|
variant: "body2",
|
@@ -15190,9 +15186,10 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
15190
15186
|
columnGap: "4px"
|
15191
15187
|
}
|
15192
15188
|
},
|
15193
|
-
"
|
15194
|
-
|
15195
|
-
"
|
15189
|
+
"Switch the role of",
|
15190
|
+
/* @__PURE__ */ React44.createElement(HighlightTerm, { value: peer.name }),
|
15191
|
+
"from ",
|
15192
|
+
/* @__PURE__ */ React44.createElement(HighlightTerm, { value: peer.roleName })
|
15196
15193
|
)), /* @__PURE__ */ React44.createElement(
|
15197
15194
|
Flex,
|
15198
15195
|
{
|
@@ -15214,63 +15211,67 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
15214
15211
|
/* @__PURE__ */ React44.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React44.createElement(
|
15215
15212
|
Dropdown.Trigger,
|
15216
15213
|
{
|
15214
|
+
ref: triggerRef,
|
15217
15215
|
"data-testid": "open_role_selection_dropdown",
|
15218
15216
|
asChild: true,
|
15219
15217
|
css: {
|
15220
15218
|
border: "1px solid $border_bright",
|
15221
|
-
bg: "$
|
15219
|
+
bg: "$surface_default",
|
15222
15220
|
r: "$1",
|
15223
15221
|
p: "$6 $9"
|
15224
|
-
}
|
15225
|
-
ref
|
15222
|
+
}
|
15226
15223
|
},
|
15227
15224
|
/* @__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.
|
15225
|
+
), /* @__PURE__ */ React44.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => /* @__PURE__ */ React44.createElement(
|
15226
|
+
Dropdown.Item,
|
15230
15227
|
{
|
15231
|
-
|
15232
|
-
|
15233
|
-
|
15228
|
+
"data-testid": role,
|
15229
|
+
key: role,
|
15230
|
+
onSelect: () => setRole(role),
|
15231
|
+
css: { w: `${triggerRef.current?.clientWidth}px` }
|
15234
15232
|
},
|
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
|
-
)))
|
15233
|
+
role
|
15234
|
+
))))
|
15251
15235
|
)
|
15252
|
-
),
|
15253
|
-
|
15236
|
+
), /* @__PURE__ */ React44.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, !isMobile && /* @__PURE__ */ React44.createElement(
|
15237
|
+
Button,
|
15254
15238
|
{
|
15255
|
-
|
15256
|
-
|
15257
|
-
|
15258
|
-
|
15239
|
+
variant: "standard",
|
15240
|
+
outlined: true,
|
15241
|
+
css: { width: "100%" },
|
15242
|
+
onClick: () => onOpenChange(false),
|
15243
|
+
"data-testid": "cancel_button"
|
15259
15244
|
},
|
15260
|
-
|
15261
|
-
)
|
15245
|
+
"Cancel"
|
15246
|
+
), /* @__PURE__ */ React44.createElement(
|
15262
15247
|
Button,
|
15263
15248
|
{
|
15264
15249
|
"data-testid": "change_button",
|
15265
15250
|
variant: "primary",
|
15266
15251
|
css: { width: "100%" },
|
15267
15252
|
onClick: async () => {
|
15268
|
-
|
15269
|
-
|
15253
|
+
if (selectedRole) {
|
15254
|
+
await hmsActions.changeRoleOfPeer(peer.id, selectedRole, true);
|
15255
|
+
onOpenChange(false);
|
15256
|
+
}
|
15270
15257
|
}
|
15271
15258
|
},
|
15272
|
-
"
|
15273
|
-
)))
|
15259
|
+
"Switch Role"
|
15260
|
+
)));
|
15261
|
+
};
|
15262
|
+
var RoleChangeModal = ({
|
15263
|
+
peerId,
|
15264
|
+
onOpenChange
|
15265
|
+
}) => {
|
15266
|
+
const peer = useHMSStore15(selectPeerByID(peerId));
|
15267
|
+
const isMobile = useMedia6(config.media.md);
|
15268
|
+
if (!peer) {
|
15269
|
+
return null;
|
15270
|
+
}
|
15271
|
+
if (isMobile) {
|
15272
|
+
return /* @__PURE__ */ React44.createElement(Sheet.Root, { open: true, onOpenChange }, /* @__PURE__ */ React44.createElement(Sheet.Content, { css: { p: "$12 $8", background: "$surface_dim" } }, /* @__PURE__ */ React44.createElement(RoleChangeContent, { peer, onOpenChange, isMobile: true })));
|
15273
|
+
}
|
15274
|
+
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(RoleChangeContent, { peer, onOpenChange }))));
|
15274
15275
|
};
|
15275
15276
|
|
15276
15277
|
// src/Prebuilt/components/Settings/StartRecording.jsx
|
@@ -15287,7 +15288,7 @@ import { InfoIcon } from "@100mslive/react-icons";
|
|
15287
15288
|
// src/Prebuilt/primitives/DialogContent.jsx
|
15288
15289
|
init_define_process_env();
|
15289
15290
|
import React45, { useRef as useRef12 } from "react";
|
15290
|
-
import { CheckIcon as
|
15291
|
+
import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon8 } from "@100mslive/react-icons";
|
15291
15292
|
var DialogContent = ({ Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {}, ...props }) => {
|
15292
15293
|
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
15294
|
};
|
@@ -15295,7 +15296,7 @@ var ErrorDialog = ({ open = true, onOpenChange, title, children, ...props }) =>
|
|
15295
15296
|
return /* @__PURE__ */ React45.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React45.createElement(
|
15296
15297
|
DialogContent,
|
15297
15298
|
{
|
15298
|
-
Icon:
|
15299
|
+
Icon: CrossIcon8,
|
15299
15300
|
title,
|
15300
15301
|
onInteractOutside: (e) => e.preventDefault(),
|
15301
15302
|
onEscapeKeyDown: (e) => e.preventDefault(),
|
@@ -15753,7 +15754,7 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
|
15753
15754
|
init_define_process_env();
|
15754
15755
|
import React49, { useCallback as useCallback11, useRef as useRef14, useState as useState20 } from "react";
|
15755
15756
|
import { useHMSActions as useHMSActions13 } from "@100mslive/react-sdk";
|
15756
|
-
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as
|
15757
|
+
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
|
15757
15758
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
15758
15759
|
const roles = useFilteredRoles();
|
15759
15760
|
const hmsActions = useHMSActions13();
|
@@ -15825,7 +15826,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
15825
15826
|
setErrorMessage("");
|
15826
15827
|
}
|
15827
15828
|
},
|
15828
|
-
/* @__PURE__ */ React49.createElement(Checkbox.Root, { css: { margin: "$2" }, checked: selectedBulkRole.includes(role) }, /* @__PURE__ */ React49.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React49.createElement(
|
15829
|
+
/* @__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
15830
|
role
|
15830
15831
|
);
|
15831
15832
|
})
|
@@ -15926,7 +15927,7 @@ var FullScreenItem = () => {
|
|
15926
15927
|
init_define_process_env();
|
15927
15928
|
import React52, { useCallback as useCallback13, useState as useState22 } from "react";
|
15928
15929
|
import {
|
15929
|
-
selectAvailableRoleNames as
|
15930
|
+
selectAvailableRoleNames as selectAvailableRoleNames4,
|
15930
15931
|
useHMSActions as useHMSActions14,
|
15931
15932
|
useHMSStore as useHMSStore19
|
15932
15933
|
} from "@100mslive/react-sdk";
|
@@ -15994,7 +15995,7 @@ var MuteAllModal = ({
|
|
15994
15995
|
onOpenChange,
|
15995
15996
|
isMobile = false
|
15996
15997
|
}) => {
|
15997
|
-
const roles = useHMSStore19(
|
15998
|
+
const roles = useHMSStore19(selectAvailableRoleNames4);
|
15998
15999
|
const hmsActions = useHMSActions14();
|
15999
16000
|
const [enabled, setEnabled] = useState22(false);
|
16000
16001
|
const [trackType, setTrackType] = useState22();
|
@@ -16138,7 +16139,7 @@ var DesktopOptions = ({
|
|
16138
16139
|
}
|
16139
16140
|
}
|
16140
16141
|
},
|
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(
|
16142
|
+
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
16143
|
screenType !== "hls_live_streaming" ? /* @__PURE__ */ React53.createElement(Dropdown.Item, { css: { p: 0, "&:empty": { display: "none" } } }, /* @__PURE__ */ React53.createElement(
|
16143
16144
|
PIP,
|
16144
16145
|
{
|
@@ -16162,7 +16163,7 @@ var DesktopOptions = ({
|
|
16162
16163
|
checked: enablHlsStats,
|
16163
16164
|
onCheckedChange: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats)
|
16164
16165
|
},
|
16165
|
-
/* @__PURE__ */ React53.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React53.createElement(
|
16166
|
+
/* @__PURE__ */ React53.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React53.createElement(CheckIcon4, { width: 16, height: 16 }))
|
16166
16167
|
),
|
16167
16168
|
/* @__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
16169
|
);
|
@@ -16210,7 +16211,7 @@ import {
|
|
16210
16211
|
import {
|
16211
16212
|
BrbIcon as BrbIcon2,
|
16212
16213
|
ClosedCaptionIcon as ClosedCaptionIcon2,
|
16213
|
-
CrossIcon as
|
16214
|
+
CrossIcon as CrossIcon11,
|
16214
16215
|
EmojiIcon as EmojiIcon2,
|
16215
16216
|
HamburgerMenuIcon as HamburgerMenuIcon2,
|
16216
16217
|
HandIcon as HandIcon2,
|
@@ -16228,7 +16229,7 @@ import {
|
|
16228
16229
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
16229
16230
|
init_define_process_env();
|
16230
16231
|
import React55, { useCallback as useCallback17, useEffect as useEffect16, useRef as useRef15, useState as useState25 } from "react";
|
16231
|
-
import { useMedia as
|
16232
|
+
import { useMedia as useMedia7 } from "react-use";
|
16232
16233
|
|
16233
16234
|
// ../hms-video-store/dist/index.js
|
16234
16235
|
init_define_process_env();
|
@@ -18449,7 +18450,7 @@ var Zi = (a2, e) => {
|
|
18449
18450
|
};
|
18450
18451
|
var _a = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18451
18452
|
var nr = _a((yc, Wa) => {
|
18452
|
-
Wa.exports = { version: "0.12.10-alpha.
|
18453
|
+
Wa.exports = { version: "0.12.10-alpha.1", 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
18454
|
});
|
18454
18455
|
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
18456
|
var Na = ((e) => (e.CHAT = "chat", e))(Na || {});
|
@@ -19534,7 +19535,7 @@ import {
|
|
19534
19535
|
useHMSStore as useHMSStore25,
|
19535
19536
|
useRecordingStreaming as useRecordingStreaming6
|
19536
19537
|
} from "@100mslive/react-sdk";
|
19537
|
-
import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as
|
19538
|
+
import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as CrossIcon9, PauseCircleIcon, RecordIcon } from "@100mslive/react-icons";
|
19538
19539
|
|
19539
19540
|
// src/Prebuilt/components/Header/AdditionalRoomState.jsx
|
19540
19541
|
init_define_process_env();
|
@@ -19708,7 +19709,7 @@ var AdditionalRoomState = () => {
|
|
19708
19709
|
var LiveStatus = () => {
|
19709
19710
|
const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
|
19710
19711
|
const hlsState = useHMSStore25(selectHLSState4);
|
19711
|
-
const isMobile =
|
19712
|
+
const isMobile = useMedia7(config.media.md);
|
19712
19713
|
const intervalRef = useRef15(null);
|
19713
19714
|
const { screenType } = useRoomLayoutConferencingScreen();
|
19714
19715
|
const [liveTime, setLiveTime] = useState25(0);
|
@@ -19754,7 +19755,7 @@ var LiveStatus = () => {
|
|
19754
19755
|
var RecordingStatus = () => {
|
19755
19756
|
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
|
19756
19757
|
const permissions = useHMSStore25(selectPermissions7);
|
19757
|
-
const isMobile =
|
19758
|
+
const isMobile = useMedia7(config.media.md);
|
19758
19759
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
19759
19760
|
// so no need to show this as it duplicates
|
19760
19761
|
[permissions?.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
|
@@ -19862,7 +19863,7 @@ var StartRecording2 = () => {
|
|
19862
19863
|
};
|
19863
19864
|
var StreamActions = () => {
|
19864
19865
|
const isConnected = useHMSStore25(selectIsConnectedToRoom6);
|
19865
|
-
const isMobile =
|
19866
|
+
const isMobile = useMedia7(config.media.md);
|
19866
19867
|
const roomState = useHMSStore25(selectRoomState3);
|
19867
19868
|
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
19869
|
};
|
@@ -19870,7 +19871,7 @@ var StopRecordingInSheet = ({
|
|
19870
19871
|
onStopRecording,
|
19871
19872
|
onClose
|
19872
19873
|
}) => {
|
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(
|
19874
|
+
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
19875
|
Button,
|
19875
19876
|
{
|
19876
19877
|
variant: "danger",
|
@@ -19942,13 +19943,13 @@ var ActionTile = {
|
|
19942
19943
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
|
19943
19944
|
init_define_process_env();
|
19944
19945
|
import React58, { useState as useState26 } from "react";
|
19945
|
-
import { useMedia as
|
19946
|
+
import { useMedia as useMedia8 } from "react-use";
|
19946
19947
|
import { selectLocalPeerName, useHMSActions as useHMSActions20, useHMSStore as useHMSStore26 } from "@100mslive/react-sdk";
|
19947
19948
|
|
19948
19949
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
19949
19950
|
init_define_process_env();
|
19950
19951
|
import React57 from "react";
|
19951
|
-
import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as
|
19952
|
+
import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as CrossIcon10 } from "@100mslive/react-icons";
|
19952
19953
|
var ChangeNameContent = ({
|
19953
19954
|
changeName,
|
19954
19955
|
setCurrentName,
|
@@ -19986,7 +19987,7 @@ var ChangeNameContent = ({
|
|
19986
19987
|
css: { color: "inherit", ml: "auto", "&:hover": { color: "$on_surface_medium", cursor: "pointer" } },
|
19987
19988
|
onClick: onExit
|
19988
19989
|
},
|
19989
|
-
/* @__PURE__ */ React57.createElement(
|
19990
|
+
/* @__PURE__ */ React57.createElement(CrossIcon10, null)
|
19990
19991
|
)
|
19991
19992
|
),
|
19992
19993
|
/* @__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 +20062,7 @@ var ChangeNameModal = ({
|
|
20061
20062
|
const hmsActions = useHMSActions20();
|
20062
20063
|
const localPeerName = useHMSStore26(selectLocalPeerName);
|
20063
20064
|
const [currentName, setCurrentName] = useState26(localPeerName);
|
20064
|
-
const isMobile =
|
20065
|
+
const isMobile = useMedia8(config.media.md);
|
20065
20066
|
const changeName = async () => {
|
20066
20067
|
const name = currentName?.trim() || "";
|
20067
20068
|
if (!name || name === localPeerName) {
|
@@ -20207,7 +20208,7 @@ var MwebOptions = ({
|
|
20207
20208
|
}
|
20208
20209
|
},
|
20209
20210
|
"Options",
|
20210
|
-
/* @__PURE__ */ React59.createElement(Sheet.Close, null, /* @__PURE__ */ React59.createElement(Box, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React59.createElement(
|
20211
|
+
/* @__PURE__ */ React59.createElement(Sheet.Close, null, /* @__PURE__ */ React59.createElement(Box, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React59.createElement(CrossIcon11, null)))
|
20211
20212
|
), /* @__PURE__ */ React59.createElement(
|
20212
20213
|
Box,
|
20213
20214
|
{
|
@@ -20396,7 +20397,7 @@ var MoreSettings = ({
|
|
20396
20397
|
elements,
|
20397
20398
|
screenType
|
20398
20399
|
}) => {
|
20399
|
-
const isMobile =
|
20400
|
+
const isMobile = useMedia9(config.media.md);
|
20400
20401
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
20401
20402
|
return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ React60.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ React60.createElement(DesktopOptions, { elements, screenType });
|
20402
20403
|
};
|
@@ -20968,7 +20969,7 @@ var ChatToggle = ({ onClick }) => {
|
|
20968
20969
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
20969
20970
|
init_define_process_env();
|
20970
20971
|
import React75, { Fragment as Fragment9, useCallback as useCallback19, useState as useState33 } from "react";
|
20971
|
-
import { useDebounce, useMedia as
|
20972
|
+
import { useDebounce, useMedia as useMedia10 } from "react-use";
|
20972
20973
|
import {
|
20973
20974
|
HMSPeerType as HMSPeerType2,
|
20974
20975
|
selectHandRaisedPeers,
|
@@ -20978,16 +20979,17 @@ import {
|
|
20978
20979
|
selectLocalPeerID as selectLocalPeerID7,
|
20979
20980
|
selectPeerCount as selectPeerCount4,
|
20980
20981
|
selectPermissions as selectPermissions13,
|
20981
|
-
useHMSStore as
|
20982
|
+
useHMSStore as useHMSStore40
|
20982
20983
|
} from "@100mslive/react-sdk";
|
20983
20984
|
import {
|
20984
20985
|
AddIcon as AddIcon2,
|
20985
20986
|
CallIcon,
|
20986
20987
|
ChangeRoleIcon as ChangeRoleIcon2,
|
20987
|
-
CrossIcon as
|
20988
|
+
CrossIcon as CrossIcon13,
|
20988
20989
|
HandIcon as HandIcon4,
|
20989
20990
|
MicOffIcon as MicOffIcon4,
|
20990
20991
|
PeopleIcon as PeopleIcon2,
|
20992
|
+
PersonSettingsIcon,
|
20991
20993
|
SearchIcon,
|
20992
20994
|
VerticalMenuIcon as VerticalMenuIcon5
|
20993
20995
|
} from "@100mslive/react-icons";
|
@@ -21142,7 +21144,7 @@ import React74, { useEffect as useEffect18 } from "react";
|
|
21142
21144
|
import { useMeasure } from "react-use";
|
21143
21145
|
import { FixedSizeList } from "react-window";
|
21144
21146
|
import { selectIsLargeRoom, useHMSStore as useHMSStore37, usePaginatedParticipants } from "@100mslive/react-sdk";
|
21145
|
-
import { AddIcon, ChevronRightIcon, CrossIcon as
|
21147
|
+
import { AddIcon, ChevronRightIcon, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
|
21146
21148
|
|
21147
21149
|
// src/Prebuilt/components/Footer/RoleOptions.tsx
|
21148
21150
|
init_define_process_env();
|
@@ -21450,13 +21452,28 @@ var RoleAccordion = ({
|
|
21450
21452
|
},
|
21451
21453
|
/* @__PURE__ */ React74.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
21452
21454
|
/* @__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(
|
21455
|
+
) : 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)))));
|
21456
|
+
};
|
21457
|
+
|
21458
|
+
// src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
|
21459
|
+
init_define_process_env();
|
21460
|
+
import { useEffect as useEffect19 } from "react";
|
21461
|
+
import { selectAppData as selectAppData6, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
|
21462
|
+
var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
21463
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
21464
|
+
const sidepane = useHMSStore38(selectAppData6(APP_DATA.sidePane));
|
21465
|
+
const resetSidePane = useSidepaneReset();
|
21466
|
+
useEffect19(() => {
|
21467
|
+
if (sidepane === sidepaneOption && !elements?.[layoutKey]) {
|
21468
|
+
resetSidePane();
|
21469
|
+
}
|
21470
|
+
}, [elements, elements?.[layoutKey], resetSidePane, sidepane, layoutKey, sidepaneOption]);
|
21454
21471
|
};
|
21455
21472
|
|
21456
21473
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
21457
21474
|
init_define_process_env();
|
21458
21475
|
import { useState as useState32 } from "react";
|
21459
|
-
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions26, useHMSStore as
|
21476
|
+
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions26, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
|
21460
21477
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
21461
21478
|
const hmsActions = useHMSActions26();
|
21462
21479
|
const { elements } = useRoomLayoutConferencingScreen();
|
@@ -21468,9 +21485,9 @@ var usePeerOnStageActions = ({ peerId, role }) => {
|
|
21468
21485
|
skip_preview_for_role_change = false
|
21469
21486
|
} = elements.on_stage_exp || {};
|
21470
21487
|
const isInStage = role === on_stage_role;
|
21471
|
-
const canChangeRole =
|
21488
|
+
const canChangeRole = useHMSStore39(selectPermissions12)?.changeRole;
|
21472
21489
|
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || off_stage_roles?.includes(role) && bring_to_stage_label);
|
21473
|
-
const prevRole =
|
21490
|
+
const prevRole = useHMSStore39(selectPeerMetadata3(peerId))?.prevRole;
|
21474
21491
|
const [open, setOpen] = useState32(false);
|
21475
21492
|
const lowerPeerHand = async () => {
|
21476
21493
|
await hmsActions.lowerRemotePeerHand(peerId);
|
@@ -21505,9 +21522,9 @@ var ParticipantList = ({
|
|
21505
21522
|
}) => {
|
21506
21523
|
const [filter, setFilter] = useState33();
|
21507
21524
|
const { participants, isConnected, peerCount } = useParticipants(filter);
|
21508
|
-
const isLargeRoom =
|
21525
|
+
const isLargeRoom = useHMSStore40(selectIsLargeRoom2);
|
21509
21526
|
const peersOrderedByRoles = {};
|
21510
|
-
const handRaisedPeers =
|
21527
|
+
const handRaisedPeers = useHMSStore40(selectHandRaisedPeers);
|
21511
21528
|
participants.forEach((participant) => {
|
21512
21529
|
if (participant.roleName) {
|
21513
21530
|
if (peersOrderedByRoles[participant.roleName] === void 0) {
|
@@ -21523,6 +21540,7 @@ var ParticipantList = ({
|
|
21523
21540
|
}
|
21524
21541
|
});
|
21525
21542
|
}
|
21543
|
+
useSidepaneResetOnLayoutUpdate("participant_list", SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21526
21544
|
const onSearch = useCallback19((value) => {
|
21527
21545
|
setFilter((filterValue) => {
|
21528
21546
|
if (!filterValue) {
|
@@ -21570,7 +21588,7 @@ var ParticipantList = ({
|
|
21570
21588
|
));
|
21571
21589
|
};
|
21572
21590
|
var ParticipantCount = () => {
|
21573
|
-
const peerCount =
|
21591
|
+
const peerCount = useHMSStore40(selectPeerCount4);
|
21574
21592
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21575
21593
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21576
21594
|
if (peerCount === 0) {
|
@@ -21602,7 +21620,7 @@ var Participant = ({
|
|
21602
21620
|
isHandRaisedAccordion,
|
21603
21621
|
style
|
21604
21622
|
}) => {
|
21605
|
-
const localPeerId =
|
21623
|
+
const localPeerId = useHMSStore40(selectLocalPeerID7);
|
21606
21624
|
return /* @__PURE__ */ React75.createElement(
|
21607
21625
|
Flex,
|
21608
21626
|
{
|
@@ -21700,13 +21718,13 @@ var ParticipantActions = React75.memo(
|
|
21700
21718
|
isLocal,
|
21701
21719
|
isHandRaisedAccordion
|
21702
21720
|
}) => {
|
21703
|
-
const isHandRaised =
|
21704
|
-
const canChangeRole =
|
21705
|
-
const canRemoveOthers =
|
21721
|
+
const isHandRaised = useHMSStore40(selectHasPeerHandRaised2(peerId));
|
21722
|
+
const canChangeRole = useHMSStore40(selectPermissions13)?.changeRole;
|
21723
|
+
const canRemoveOthers = useHMSStore40(selectPermissions13)?.removeOthers;
|
21706
21724
|
const { elements } = useRoomLayoutConferencingScreen();
|
21707
21725
|
const { on_stage_exp } = elements || {};
|
21708
21726
|
const shouldShowMoreActions = on_stage_exp && canChangeRole || canRemoveOthers;
|
21709
|
-
const isAudioMuted = !
|
21727
|
+
const isAudioMuted = !useHMSStore40(selectIsPeerAudioEnabled(peerId));
|
21710
21728
|
return /* @__PURE__ */ React75.createElement(
|
21711
21729
|
Flex,
|
21712
21730
|
{
|
@@ -21753,7 +21771,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
|
21753
21771
|
if (!shouldShowStageRoleChange) {
|
21754
21772
|
return null;
|
21755
21773
|
}
|
21756
|
-
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React75.createElement(
|
21774
|
+
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
21775
|
};
|
21758
21776
|
var ParticipantMoreActions = ({ peerId, role }) => {
|
21759
21777
|
const {
|
@@ -21765,7 +21783,9 @@ var ParticipantMoreActions = ({ peerId, role }) => {
|
|
21765
21783
|
isInStage,
|
21766
21784
|
shouldShowStageRoleChange
|
21767
21785
|
} = usePeerOnStageActions({ peerId, role });
|
21768
|
-
|
21786
|
+
const canChangeRole = !!useHMSStore40(selectPermissions13)?.changeRole;
|
21787
|
+
const [openRoleChangeModal, setOpenRoleChangeModal] = useState33(false);
|
21788
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React75.createElement(
|
21769
21789
|
Dropdown.Trigger,
|
21770
21790
|
{
|
21771
21791
|
asChild: true,
|
@@ -21786,7 +21806,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
|
|
21786
21806
|
tabIndex: 0
|
21787
21807
|
},
|
21788
21808
|
/* @__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 }))));
|
21809
|
+
), /* @__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 ? /* @__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
21810
|
};
|
21791
21811
|
var ParticipantSearch = ({
|
21792
21812
|
onSearch,
|
@@ -21794,7 +21814,7 @@ var ParticipantSearch = ({
|
|
21794
21814
|
inSidePane = false
|
21795
21815
|
}) => {
|
21796
21816
|
const [value, setValue] = React75.useState("");
|
21797
|
-
const isMobile =
|
21817
|
+
const isMobile = useMedia10(config.media.md);
|
21798
21818
|
useDebounce(
|
21799
21819
|
() => {
|
21800
21820
|
onSearch(value);
|
@@ -21838,13 +21858,13 @@ var ParticipantSearch = ({
|
|
21838
21858
|
|
21839
21859
|
// src/Prebuilt/components/Footer/PollsToggle.tsx
|
21840
21860
|
init_define_process_env();
|
21841
|
-
import React76, { useEffect as
|
21861
|
+
import React76, { useEffect as useEffect20 } from "react";
|
21842
21862
|
import { QuizActiveIcon as QuizActiveIcon2, QuizIcon as QuizIcon2 } from "@100mslive/react-icons";
|
21843
21863
|
var PollsToggle = () => {
|
21844
21864
|
const isPollsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.POLLS);
|
21845
21865
|
const togglePollView = usePollViewToggle();
|
21846
21866
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
21847
|
-
|
21867
|
+
useEffect20(() => {
|
21848
21868
|
if (unreadPollQuiz && isPollsOpen) {
|
21849
21869
|
setUnreadPollQuiz(false);
|
21850
21870
|
}
|
@@ -21866,11 +21886,11 @@ var PollsToggle = () => {
|
|
21866
21886
|
// src/Prebuilt/components/Footer/WhiteboardToggle.tsx
|
21867
21887
|
init_define_process_env();
|
21868
21888
|
import React77 from "react";
|
21869
|
-
import { selectPeerScreenSharing, useHMSStore as
|
21889
|
+
import { selectPeerScreenSharing, useHMSStore as useHMSStore41, useWhiteboard } from "@100mslive/react-sdk";
|
21870
21890
|
import { PencilDrawIcon } from "@100mslive/react-icons";
|
21871
21891
|
var WhiteboardToggle = () => {
|
21872
21892
|
const { toggle, open, isOwner } = useWhiteboard();
|
21873
|
-
const peerSharing =
|
21893
|
+
const peerSharing = useHMSStore41(selectPeerScreenSharing);
|
21874
21894
|
const disabled = !!peerSharing || open && !isOwner;
|
21875
21895
|
if (!toggle) {
|
21876
21896
|
return null;
|
@@ -21908,13 +21928,13 @@ var Footer2 = ({
|
|
21908
21928
|
screenType,
|
21909
21929
|
elements
|
21910
21930
|
}) => {
|
21911
|
-
const isMobile =
|
21931
|
+
const isMobile = useMedia11(config.media.md);
|
21912
21932
|
const isOverlayChat = !!elements?.chat?.is_overlay;
|
21913
21933
|
const openByDefault = elements?.chat?.initial_state === Chat_ChatState.CHAT_STATE_OPEN;
|
21914
21934
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21915
21935
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
21916
21936
|
const { showPolls } = useShowPolls();
|
21917
|
-
|
21937
|
+
useEffect21(() => {
|
21918
21938
|
if (!isChatOpen && openByDefault) {
|
21919
21939
|
toggleChat();
|
21920
21940
|
}
|
@@ -21967,9 +21987,9 @@ var Footer2 = ({
|
|
21967
21987
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
21968
21988
|
init_define_process_env();
|
21969
21989
|
import React79, { useCallback as useCallback20, useState as useState34 } from "react";
|
21970
|
-
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions27, useHMSStore as
|
21990
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions27, useHMSStore as useHMSStore42, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
21971
21991
|
function HLSFailureModal() {
|
21972
|
-
const hlsError =
|
21992
|
+
const hlsError = useHMSStore42(selectHLSState5).error || false;
|
21973
21993
|
const [openModal, setOpenModal] = useState34(!!hlsError);
|
21974
21994
|
const hmsActions = useHMSActions27();
|
21975
21995
|
const { isRTMPRunning } = useRecordingStreaming8();
|
@@ -22014,7 +22034,7 @@ function HLSFailureModal() {
|
|
22014
22034
|
|
22015
22035
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
22016
22036
|
init_define_process_env();
|
22017
|
-
import React134, { useEffect as
|
22037
|
+
import React134, { useEffect as useEffect36 } from "react";
|
22018
22038
|
import {
|
22019
22039
|
selectIsInPreview,
|
22020
22040
|
selectLocalPeerName as selectLocalPeerName4,
|
@@ -22022,22 +22042,22 @@ import {
|
|
22022
22042
|
selectRoleChangeRequest,
|
22023
22043
|
useCustomEvent as useCustomEvent3,
|
22024
22044
|
useHMSActions as useHMSActions44,
|
22025
|
-
useHMSStore as
|
22045
|
+
useHMSStore as useHMSStore73
|
22026
22046
|
} from "@100mslive/react-sdk";
|
22027
22047
|
|
22028
22048
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
22029
22049
|
init_define_process_env();
|
22030
|
-
import React132, { Fragment as Fragment12, useCallback as useCallback32, useEffect as
|
22031
|
-
import { useMeasure as useMeasure4, useMedia as
|
22050
|
+
import React132, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect35, useMemo as useMemo13, useState as useState56 } from "react";
|
22051
|
+
import { useMeasure as useMeasure4, useMedia as useMedia25 } from "react-use";
|
22032
22052
|
import {
|
22033
22053
|
HMSRoomState as HMSRoomState5,
|
22034
|
-
selectAppData as
|
22054
|
+
selectAppData as selectAppData9,
|
22035
22055
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
|
22036
22056
|
selectLocalPeer as selectLocalPeer7,
|
22037
22057
|
selectRoomState as selectRoomState5,
|
22038
22058
|
selectVideoTrackByID as selectVideoTrackByID5,
|
22039
22059
|
useAVToggle as useAVToggle3,
|
22040
|
-
useHMSStore as
|
22060
|
+
useHMSStore as useHMSStore72,
|
22041
22061
|
useParticipants as useParticipants2,
|
22042
22062
|
usePreviewJoin,
|
22043
22063
|
useRecordingStreaming as useRecordingStreaming11
|
@@ -22046,10 +22066,10 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
22046
22066
|
|
22047
22067
|
// src/Prebuilt/layouts/SidePane.tsx
|
22048
22068
|
init_define_process_env();
|
22049
|
-
import React128, { useEffect as
|
22050
|
-
import { useMedia as
|
22069
|
+
import React128, { useEffect as useEffect34 } from "react";
|
22070
|
+
import { useMedia as useMedia23 } from "react-use";
|
22051
22071
|
import { match as match11 } from "ts-pattern";
|
22052
|
-
import { selectAppData as
|
22072
|
+
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
|
22053
22073
|
|
22054
22074
|
// src/Prebuilt/components/Polls/Polls.tsx
|
22055
22075
|
init_define_process_env();
|
@@ -22057,21 +22077,21 @@ import React101 from "react";
|
|
22057
22077
|
|
22058
22078
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
22059
22079
|
init_define_process_env();
|
22060
|
-
import React82, { useEffect as
|
22080
|
+
import React82, { useEffect as useEffect22, useMemo as useMemo6, useRef as useRef17, useState as useState35 } from "react";
|
22061
22081
|
import {
|
22062
22082
|
selectLocalPeerRoleName,
|
22063
22083
|
selectPermissions as selectPermissions15,
|
22064
22084
|
selectPolls as selectPolls2,
|
22065
22085
|
useHMSActions as useHMSActions28,
|
22066
|
-
useHMSStore as
|
22086
|
+
useHMSStore as useHMSStore44
|
22067
22087
|
} from "@100mslive/react-sdk";
|
22068
22088
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
22069
22089
|
|
22070
22090
|
// src/Prebuilt/components/Streaming/Common.jsx
|
22071
22091
|
init_define_process_env();
|
22072
22092
|
import React80 from "react";
|
22073
|
-
import { selectPermissions as selectPermissions14, useHMSStore as
|
22074
|
-
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as
|
22093
|
+
import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
|
22094
|
+
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon14, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
|
22075
22095
|
var ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
22076
22096
|
return /* @__PURE__ */ React80.createElement(
|
22077
22097
|
Flex,
|
@@ -22102,7 +22122,7 @@ var ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
|
22102
22122
|
},
|
22103
22123
|
title
|
22104
22124
|
) : 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(
|
22125
|
+
onClose ? /* @__PURE__ */ React80.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React80.createElement(CrossIcon14, null)) : null
|
22106
22126
|
);
|
22107
22127
|
};
|
22108
22128
|
var Container3 = ({ children, rounded = false }) => {
|
@@ -22170,7 +22190,7 @@ var StatusIndicator = ({ status }) => {
|
|
22170
22190
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
22171
22191
|
var PollsQuizMenu = () => {
|
22172
22192
|
const togglePollView = usePollViewToggle();
|
22173
|
-
const permissions =
|
22193
|
+
const permissions = useHMSStore44(selectPermissions15);
|
22174
22194
|
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
22195
|
};
|
22176
22196
|
function InteractionSelectionCard({
|
@@ -22212,14 +22232,14 @@ function InteractionSelectionCard({
|
|
22212
22232
|
var AddMenu = () => {
|
22213
22233
|
const actions = useHMSActions28();
|
22214
22234
|
const [title, setTitle] = useState35("");
|
22215
|
-
const localPeerRoleName =
|
22235
|
+
const localPeerRoleName = useHMSStore44(selectLocalPeerRoleName);
|
22216
22236
|
const [hideVoteCount, setHideVoteCount] = useState35(false);
|
22217
22237
|
const [error, setError] = useState35();
|
22218
22238
|
const [titleError, setTitleError] = useState35("");
|
22219
22239
|
const { setPollState } = usePollViewState();
|
22220
22240
|
const [interactionType, setInteractionType] = useState35("Poll" /* POLL */);
|
22221
22241
|
const inputRef = useRef17(null);
|
22222
|
-
|
22242
|
+
useEffect22(() => {
|
22223
22243
|
if (inputRef.current) {
|
22224
22244
|
inputRef.current.focus();
|
22225
22245
|
}
|
@@ -22294,13 +22314,13 @@ var AddMenu = () => {
|
|
22294
22314
|
};
|
22295
22315
|
var PrevMenu = () => {
|
22296
22316
|
const hmsActions = useHMSActions28();
|
22297
|
-
const polls =
|
22317
|
+
const polls = useHMSStore44(selectPolls2);
|
22298
22318
|
const sortedPolls = useMemo6(
|
22299
22319
|
() => 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
22320
|
[polls]
|
22301
22321
|
);
|
22302
|
-
const permissions =
|
22303
|
-
|
22322
|
+
const permissions = useHMSStore44(selectPermissions15);
|
22323
|
+
useEffect22(() => {
|
22304
22324
|
const updatePolls = async () => {
|
22305
22325
|
await hmsActions.interactivityCenter.getPolls();
|
22306
22326
|
};
|
@@ -22338,7 +22358,7 @@ var InteractionCard = ({ id, title, status }) => {
|
|
22338
22358
|
init_define_process_env();
|
22339
22359
|
import React92, { useMemo as useMemo8, useState as useState37 } from "react";
|
22340
22360
|
import { v4 as uuid2 } from "uuid";
|
22341
|
-
import { selectPollByID, useHMSActions as useHMSActions29, useHMSStore as
|
22361
|
+
import { selectPollByID, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
22342
22362
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
22343
22363
|
|
22344
22364
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
@@ -22349,7 +22369,7 @@ import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
|
|
22349
22369
|
// src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
|
22350
22370
|
init_define_process_env();
|
22351
22371
|
import React83 from "react";
|
22352
|
-
import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as
|
22372
|
+
import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
|
22353
22373
|
var DeleteQuestionModal = ({
|
22354
22374
|
open,
|
22355
22375
|
setOpen,
|
@@ -22376,7 +22396,7 @@ var DeleteQuestionModal = ({
|
|
22376
22396
|
},
|
22377
22397
|
onClick: () => setOpen(false)
|
22378
22398
|
},
|
22379
|
-
/* @__PURE__ */ React83.createElement(
|
22399
|
+
/* @__PURE__ */ React83.createElement(CrossIcon15, null)
|
22380
22400
|
)
|
22381
22401
|
), /* @__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
22402
|
Button,
|
@@ -22409,7 +22429,7 @@ var Line = () => /* @__PURE__ */ React84.createElement(Flex, { css: { w: "100%",
|
|
22409
22429
|
// src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx
|
22410
22430
|
init_define_process_env();
|
22411
22431
|
import React88 from "react";
|
22412
|
-
import { CheckCircleIcon, CheckIcon as
|
22432
|
+
import { CheckCircleIcon, CheckIcon as CheckIcon5 } from "@100mslive/react-icons";
|
22413
22433
|
|
22414
22434
|
// src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx
|
22415
22435
|
init_define_process_env();
|
@@ -22497,7 +22517,7 @@ var MultipleChoiceOptions = ({
|
|
22497
22517
|
flexShrink: 0
|
22498
22518
|
}
|
22499
22519
|
},
|
22500
|
-
/* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(
|
22520
|
+
/* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(CheckIcon5, { width: 16, height: 16 }))
|
22501
22521
|
) : 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
22522
|
}));
|
22503
22523
|
};
|
@@ -22513,7 +22533,7 @@ var MultipleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionT
|
|
22513
22533
|
width: "$9"
|
22514
22534
|
}
|
22515
22535
|
},
|
22516
|
-
/* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(
|
22536
|
+
/* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(CheckIcon5, { width: 16, height: 16 }))
|
22517
22537
|
), /* @__PURE__ */ React88.createElement(
|
22518
22538
|
OptionInputWithDelete,
|
22519
22539
|
{
|
@@ -22875,7 +22895,7 @@ function CreateQuestions() {
|
|
22875
22895
|
const { isHLSRunning } = useRecordingStreaming9();
|
22876
22896
|
const togglePollView = usePollViewToggle();
|
22877
22897
|
const { pollInView: id, setPollView } = usePollViewState();
|
22878
|
-
const interaction =
|
22898
|
+
const interaction = useHMSStore45(selectPollByID(id));
|
22879
22899
|
const [questions, setQuestions] = useState37(
|
22880
22900
|
interaction.questions?.length ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
|
22881
22901
|
);
|
@@ -22970,8 +22990,8 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
|
|
22970
22990
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
22971
22991
|
init_define_process_env();
|
22972
22992
|
import React96, { useState as useState39 } from "react";
|
22973
|
-
import { selectPollByID as selectPollByID3, useHMSStore as
|
22974
|
-
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as
|
22993
|
+
import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
|
22994
|
+
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
|
22975
22995
|
|
22976
22996
|
// src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
|
22977
22997
|
init_define_process_env();
|
@@ -23034,7 +23054,7 @@ var LeaderboardEntry = ({
|
|
23034
23054
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
23035
23055
|
init_define_process_env();
|
23036
23056
|
import React95 from "react";
|
23037
|
-
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as
|
23057
|
+
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
|
23038
23058
|
|
23039
23059
|
// src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
|
23040
23060
|
init_define_process_env();
|
@@ -23055,15 +23075,15 @@ var StatisticBox = ({ title, value = 0 }) => {
|
|
23055
23075
|
|
23056
23076
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
23057
23077
|
init_define_process_env();
|
23058
|
-
import { useEffect as
|
23078
|
+
import { useEffect as useEffect23, useState as useState38 } from "react";
|
23059
23079
|
import {
|
23060
23080
|
selectPollByID as selectPollByID2,
|
23061
23081
|
useHMSActions as useHMSActions30,
|
23062
|
-
useHMSStore as
|
23082
|
+
useHMSStore as useHMSStore46
|
23063
23083
|
} from "@100mslive/react-sdk";
|
23064
23084
|
var useQuizSummary = (quizID) => {
|
23065
23085
|
const hmsActions = useHMSActions30();
|
23066
|
-
const quiz =
|
23086
|
+
const quiz = useHMSStore46(selectPollByID2(quizID));
|
23067
23087
|
const [quizLeaderboard, setQuizLeaderboard] = useState38();
|
23068
23088
|
const summary = quizLeaderboard?.summary || {
|
23069
23089
|
totalUsers: 0,
|
@@ -23073,7 +23093,7 @@ var useQuizSummary = (quizID) => {
|
|
23073
23093
|
correctUsers: 0
|
23074
23094
|
};
|
23075
23095
|
const [calculations, setCalculations] = useState38({ maxPossibleScore: 0, totalResponses: 0 });
|
23076
|
-
|
23096
|
+
useEffect23(() => {
|
23077
23097
|
const fetchLeaderboardData = async () => {
|
23078
23098
|
if (!quizLeaderboard && quiz && !quiz?.anonymous && quiz.state === "stopped") {
|
23079
23099
|
const leaderboardData = await hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
|
@@ -23098,7 +23118,7 @@ var useQuizSummary = (quizID) => {
|
|
23098
23118
|
|
23099
23119
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
23100
23120
|
var PeerParticipationSummary = ({ quiz }) => {
|
23101
|
-
const localPeerId =
|
23121
|
+
const localPeerId = useHMSStore47(selectLocalPeerID8);
|
23102
23122
|
const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
|
23103
23123
|
if (quiz.state !== "stopped") {
|
23104
23124
|
return /* @__PURE__ */ React95.createElement(React95.Fragment, null);
|
@@ -23135,7 +23155,7 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
23135
23155
|
|
23136
23156
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
23137
23157
|
var LeaderboardSummary = ({ pollID }) => {
|
23138
|
-
const quiz =
|
23158
|
+
const quiz = useHMSStore48(selectPollByID3(pollID));
|
23139
23159
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
23140
23160
|
const [viewAllEntries, setViewAllEntries] = useState39(false);
|
23141
23161
|
const { setPollView } = usePollViewState();
|
@@ -23156,7 +23176,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
23156
23176
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
|
23157
23177
|
onClick: toggleSidepane
|
23158
23178
|
},
|
23159
|
-
/* @__PURE__ */ React96.createElement(
|
23179
|
+
/* @__PURE__ */ React96.createElement(CrossIcon16, null)
|
23160
23180
|
)), !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
23181
|
Box,
|
23162
23182
|
{
|
@@ -23213,9 +23233,9 @@ import {
|
|
23213
23233
|
selectPermissions as selectPermissions16,
|
23214
23234
|
selectPollByID as selectPollByID4,
|
23215
23235
|
useHMSActions as useHMSActions32,
|
23216
|
-
useHMSStore as
|
23236
|
+
useHMSStore as useHMSStore51
|
23217
23237
|
} from "@100mslive/react-sdk";
|
23218
|
-
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as
|
23238
|
+
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
|
23219
23239
|
|
23220
23240
|
// src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
|
23221
23241
|
init_define_process_env();
|
@@ -23225,7 +23245,7 @@ import React98 from "react";
|
|
23225
23245
|
init_define_process_env();
|
23226
23246
|
import React97, { useCallback as useCallback22, useMemo as useMemo9, useRef as useRef19, useState as useState40 } from "react";
|
23227
23247
|
import { match as match8 } from "ts-pattern";
|
23228
|
-
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions31, useHMSStore as
|
23248
|
+
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
|
23229
23249
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
23230
23250
|
var QuestionCard2 = ({
|
23231
23251
|
pollID,
|
@@ -23244,12 +23264,12 @@ var QuestionCard2 = ({
|
|
23244
23264
|
rolesThatCanViewResponses
|
23245
23265
|
}) => {
|
23246
23266
|
const actions = useHMSActions31();
|
23247
|
-
const localPeer =
|
23267
|
+
const localPeer = useHMSStore49(selectLocalPeer);
|
23248
23268
|
const localPeerResponse = responses?.find(
|
23249
23269
|
(response) => response.peer?.peerid === localPeer?.id || response.peer?.userid === localPeer?.customerUserId
|
23250
23270
|
);
|
23251
23271
|
const isLocalPeerCreator = localPeer?.id === startedBy;
|
23252
|
-
const localPeerRoleName =
|
23272
|
+
const localPeerRoleName = useHMSStore49(selectLocalPeerRoleName2);
|
23253
23273
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
23254
23274
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
23255
23275
|
const isLive = pollState === "started";
|
@@ -23435,9 +23455,9 @@ var StandardView = ({ poll }) => {
|
|
23435
23455
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
23436
23456
|
init_define_process_env();
|
23437
23457
|
import React99, { useState as useState41 } from "react";
|
23438
|
-
import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as
|
23458
|
+
import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23439
23459
|
var TimedView = ({ poll }) => {
|
23440
|
-
const localPeerId =
|
23460
|
+
const localPeerId = useHMSStore50(selectLocalPeerID9);
|
23441
23461
|
const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
|
23442
23462
|
const [currentIndex, setCurrentIndex] = useState41(lastAttemptedIndex);
|
23443
23463
|
const activeQuestion = poll.questions?.find((question) => question.index === currentIndex);
|
@@ -23472,9 +23492,9 @@ var TimedView = ({ poll }) => {
|
|
23472
23492
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
23473
23493
|
var Voting = ({ id, toggleVoting }) => {
|
23474
23494
|
const actions = useHMSActions32();
|
23475
|
-
const poll =
|
23476
|
-
const pollCreatorName =
|
23477
|
-
const permissions =
|
23495
|
+
const poll = useHMSStore51(selectPollByID4(id));
|
23496
|
+
const pollCreatorName = useHMSStore51(selectPeerNameByID(poll?.createdBy));
|
23497
|
+
const permissions = useHMSStore51(selectPermissions16);
|
23478
23498
|
const canEndActivity = !!permissions?.pollWrite;
|
23479
23499
|
const { setPollView } = usePollViewState();
|
23480
23500
|
const showSingleView = poll?.type === "quiz" && poll.state === "started";
|
@@ -23516,7 +23536,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
23516
23536
|
height: "fit-content"
|
23517
23537
|
}
|
23518
23538
|
},
|
23519
|
-
/* @__PURE__ */ React100.createElement(
|
23539
|
+
/* @__PURE__ */ React100.createElement(CrossIcon17, { onClick: toggleVoting })
|
23520
23540
|
)
|
23521
23541
|
), /* @__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
23542
|
Flex,
|
@@ -23557,15 +23577,15 @@ var Polls = () => {
|
|
23557
23577
|
// src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
|
23558
23578
|
init_define_process_env();
|
23559
23579
|
import React105 from "react";
|
23560
|
-
import { CrossIcon as
|
23580
|
+
import { CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
|
23561
23581
|
|
23562
23582
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
23563
23583
|
init_define_process_env();
|
23564
|
-
import React102, { useEffect as
|
23565
|
-
import { selectDominantSpeaker, useHMSStore as
|
23584
|
+
import React102, { useEffect as useEffect24, useState as useState42 } from "react";
|
23585
|
+
import { selectDominantSpeaker, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
|
23566
23586
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
23567
23587
|
var SpeakerTag = () => {
|
23568
|
-
const dominantSpeaker =
|
23588
|
+
const dominantSpeaker = useHMSStore52(selectDominantSpeaker);
|
23569
23589
|
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React102.createElement(
|
23570
23590
|
Flex,
|
23571
23591
|
{
|
@@ -23590,7 +23610,7 @@ var Logo = () => {
|
|
23590
23610
|
const roomLayout = useRoomLayout();
|
23591
23611
|
const logo = roomLayout?.logo?.url;
|
23592
23612
|
const [hideImage, setHideImage] = useState42(false);
|
23593
|
-
|
23613
|
+
useEffect24(() => {
|
23594
23614
|
if (hideImage) {
|
23595
23615
|
setHideImage(false);
|
23596
23616
|
}
|
@@ -23614,10 +23634,10 @@ import React104 from "react";
|
|
23614
23634
|
|
23615
23635
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
23616
23636
|
init_define_process_env();
|
23617
|
-
import React103, { useEffect as
|
23637
|
+
import React103, { useEffect as useEffect25, useState as useState43 } from "react";
|
23618
23638
|
var Duration = ({ timestamp }) => {
|
23619
23639
|
const [elapsedTime, setElapsedTime] = useState43(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23620
|
-
|
23640
|
+
useEffect25(() => {
|
23621
23641
|
const timerAdded = setInterval(() => {
|
23622
23642
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23623
23643
|
}, 1e3);
|
@@ -23653,30 +23673,30 @@ var ShowRoomDetailHeader = () => {
|
|
23653
23673
|
"&:hover": { opacity: "0.8" }
|
23654
23674
|
}
|
23655
23675
|
},
|
23656
|
-
/* @__PURE__ */ React105.createElement(
|
23676
|
+
/* @__PURE__ */ React105.createElement(CrossIcon18, null)
|
23657
23677
|
)), /* @__PURE__ */ React105.createElement(RoomDetailsRow, { details }));
|
23658
23678
|
};
|
23659
23679
|
|
23660
23680
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
23661
23681
|
init_define_process_env();
|
23662
|
-
import React120, { useEffect as
|
23663
|
-
import { useMedia as
|
23682
|
+
import React120, { useEffect as useEffect32, useState as useState52 } from "react";
|
23683
|
+
import { useMedia as useMedia19 } from "react-use";
|
23664
23684
|
import { match as match10 } from "ts-pattern";
|
23665
|
-
import { selectPeerCount as selectPeerCount5, useHMSStore as
|
23666
|
-
import { CrossIcon as
|
23685
|
+
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
|
23686
|
+
import { CrossIcon as CrossIcon22 } from "@100mslive/react-icons";
|
23667
23687
|
|
23668
23688
|
// src/Prebuilt/components/Chat/Chat.tsx
|
23669
23689
|
init_define_process_env();
|
23670
23690
|
import React117, { useCallback as useCallback30, useRef as useRef23 } from "react";
|
23671
|
-
import { useMedia as
|
23691
|
+
import { useMedia as useMedia18 } from "react-use";
|
23672
23692
|
import { match as match9 } from "ts-pattern";
|
23673
|
-
import { selectHMSMessagesCount, useHMSActions as useHMSActions40, useHMSStore as
|
23693
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions40, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
23674
23694
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
23675
23695
|
|
23676
23696
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
23677
23697
|
init_define_process_env();
|
23678
|
-
import React109, { Fragment as Fragment10, useCallback as useCallback26, useEffect as
|
23679
|
-
import { useMedia as
|
23698
|
+
import React109, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect27, useLayoutEffect, useMemo as useMemo10, useRef as useRef20, useState as useState46 } from "react";
|
23699
|
+
import { useMedia as useMedia13 } from "react-use";
|
23680
23700
|
import AutoSizer from "react-virtualized-auto-sizer";
|
23681
23701
|
import { VariableSizeList } from "react-window";
|
23682
23702
|
import {
|
@@ -23688,7 +23708,7 @@ import {
|
|
23688
23708
|
selectSessionStore as selectSessionStore5,
|
23689
23709
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
23690
23710
|
useHMSActions as useHMSActions36,
|
23691
|
-
useHMSStore as
|
23711
|
+
useHMSStore as useHMSStore56,
|
23692
23712
|
useHMSVanillaStore as useHMSVanillaStore9
|
23693
23713
|
} from "@100mslive/react-sdk";
|
23694
23714
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
@@ -23696,11 +23716,11 @@ import { SolidPinIcon } from "@100mslive/react-icons";
|
|
23696
23716
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
23697
23717
|
init_define_process_env();
|
23698
23718
|
import React107, { useCallback as useCallback25, useState as useState44 } from "react";
|
23699
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions35, useHMSStore as
|
23719
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
23700
23720
|
import {
|
23701
23721
|
CopyIcon as CopyIcon2,
|
23702
23722
|
CrossCircleIcon as CrossCircleIcon2,
|
23703
|
-
CrossIcon as
|
23723
|
+
CrossIcon as CrossIcon19,
|
23704
23724
|
EyeCloseIcon as EyeCloseIcon2,
|
23705
23725
|
PeopleRemoveIcon as PeopleRemoveIcon3,
|
23706
23726
|
PinIcon,
|
@@ -23724,10 +23744,10 @@ var MwebChatOption = ({
|
|
23724
23744
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
23725
23745
|
init_define_process_env();
|
23726
23746
|
import { useCallback as useCallback23 } from "react";
|
23727
|
-
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions33, useHMSStore as
|
23747
|
+
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions33, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
23728
23748
|
var useChatBlacklist = (sessionStoreKey) => {
|
23729
23749
|
const hmsActions = useHMSActions33();
|
23730
|
-
const blacklistedIDs =
|
23750
|
+
const blacklistedIDs = useHMSStore53(selectSessionStore2(sessionStoreKey));
|
23731
23751
|
const blacklistItem = useCallback23(
|
23732
23752
|
async (blacklistID) => {
|
23733
23753
|
await hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -23737,8 +23757,8 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
23737
23757
|
return { blacklistItem, blacklistedIDs };
|
23738
23758
|
};
|
23739
23759
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
23740
|
-
const localPeer =
|
23741
|
-
const blacklistedPeerIDs =
|
23760
|
+
const localPeer = useHMSStore53(selectLocalPeer2);
|
23761
|
+
const blacklistedPeerIDs = useHMSStore53(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
23742
23762
|
return blacklistedPeerIDs?.includes(local ? localPeer?.customerUserId : peerCustomerUserId);
|
23743
23763
|
};
|
23744
23764
|
|
@@ -23820,9 +23840,9 @@ var ChatActions = ({
|
|
23820
23840
|
const { roles_whitelist = [] } = elements?.chat || {};
|
23821
23841
|
const [open, setOpen] = useState44(false);
|
23822
23842
|
const actions = useHMSActions35();
|
23823
|
-
const canRemoveOthers =
|
23843
|
+
const canRemoveOthers = useHMSStore54(selectPermissions17)?.removeOthers;
|
23824
23844
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
23825
|
-
const localPeerName =
|
23845
|
+
const localPeerName = useHMSStore54(selectLocalPeerName2);
|
23826
23846
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
23827
23847
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
23828
23848
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -23932,7 +23952,7 @@ var ChatActions = ({
|
|
23932
23952
|
}
|
23933
23953
|
},
|
23934
23954
|
"Message options",
|
23935
|
-
/* @__PURE__ */ React107.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React107.createElement(
|
23955
|
+
/* @__PURE__ */ React107.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React107.createElement(CrossIcon19, null))
|
23936
23956
|
), Object.keys(options).map((optionKey) => {
|
23937
23957
|
const option = options[optionKey];
|
23938
23958
|
return option.show ? /* @__PURE__ */ React107.createElement(
|
@@ -24002,7 +24022,7 @@ var ChatActions = ({
|
|
24002
24022
|
// src/Prebuilt/components/Chat/EmptyChat.tsx
|
24003
24023
|
init_define_process_env();
|
24004
24024
|
import React108 from "react";
|
24005
|
-
import { useMedia as
|
24025
|
+
import { useMedia as useMedia12 } from "react-use";
|
24006
24026
|
|
24007
24027
|
// src/Prebuilt/images/empty-chat.svg
|
24008
24028
|
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 +24031,7 @@ var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewB
|
|
24011
24031
|
var EmptyChat = () => {
|
24012
24032
|
const { elements } = useRoomLayoutConferencingScreen();
|
24013
24033
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
24014
|
-
const isMobile =
|
24034
|
+
const isMobile = useMedia12(config.media.md);
|
24015
24035
|
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
24036
|
const isMobileHLSStream = useMobileHLSStream();
|
24017
24037
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -24043,12 +24063,12 @@ var EmptyChat = () => {
|
|
24043
24063
|
|
24044
24064
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
24045
24065
|
init_define_process_env();
|
24046
|
-
import { useEffect as
|
24047
|
-
import { selectSessionStore as selectSessionStore4, useHMSStore as
|
24066
|
+
import { useEffect as useEffect26, useState as useState45 } from "react";
|
24067
|
+
import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
24048
24068
|
var usePinnedBy = (messageId) => {
|
24049
|
-
const pinnedMessages =
|
24069
|
+
const pinnedMessages = useHMSStore55(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
24050
24070
|
const [pinnedBy, setPinnedBy] = useState45("");
|
24051
|
-
|
24071
|
+
useEffect26(() => {
|
24052
24072
|
let match16 = "";
|
24053
24073
|
pinnedMessages?.forEach((pinnedMessage) => {
|
24054
24074
|
if (pinnedMessage.id === messageId) {
|
@@ -24127,8 +24147,8 @@ var MessageType = ({
|
|
24127
24147
|
hasCurrentUserSent,
|
24128
24148
|
receiver
|
24129
24149
|
}) => {
|
24130
|
-
const peerName =
|
24131
|
-
const localPeerRoleName =
|
24150
|
+
const peerName = useHMSStore56(selectPeerNameByID3(receiver));
|
24151
|
+
const localPeerRoleName = useHMSStore56(selectLocalPeerRoleName3);
|
24132
24152
|
if (receiver) {
|
24133
24153
|
return /* @__PURE__ */ React109.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
24134
24154
|
}
|
@@ -24172,10 +24192,10 @@ var ChatMessage = React109.memo(
|
|
24172
24192
|
({ index, style = {}, message }) => {
|
24173
24193
|
const { elements } = useRoomLayoutConferencingScreen();
|
24174
24194
|
const rowRef = useRef20(null);
|
24175
|
-
const isMobile =
|
24195
|
+
const isMobile = useMedia13(config.media.md);
|
24176
24196
|
const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
|
24177
24197
|
const isOverlay = elements?.chat?.is_overlay && isMobile;
|
24178
|
-
const localPeerId =
|
24198
|
+
const localPeerId = useHMSStore56(selectLocalPeerID10);
|
24179
24199
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24180
24200
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24181
24201
|
const messageType = getMessageType({
|
@@ -24343,7 +24363,7 @@ var VirtualizedChatMessages = React109.forwardRef(({ messages, scrollToBottom },
|
|
24343
24363
|
const itemKey2 = useCallback26((index, data3) => {
|
24344
24364
|
return data3[index].id;
|
24345
24365
|
}, []);
|
24346
|
-
|
24366
|
+
useEffect27(() => {
|
24347
24367
|
requestAnimationFrame(() => scrollToBottom(1));
|
24348
24368
|
}, [scrollToBottom]);
|
24349
24369
|
return /* @__PURE__ */ React109.createElement(
|
@@ -24394,15 +24414,15 @@ var VirtualizedChatMessages = React109.forwardRef(({ messages, scrollToBottom },
|
|
24394
24414
|
});
|
24395
24415
|
var ChatBody = React109.forwardRef(
|
24396
24416
|
({ scrollToBottom }, listRef) => {
|
24397
|
-
const messages =
|
24398
|
-
const blacklistedMessageIDs =
|
24417
|
+
const messages = useHMSStore56(selectHMSMessages);
|
24418
|
+
const blacklistedMessageIDs = useHMSStore56(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
24399
24419
|
const filteredMessages = useMemo10(() => {
|
24400
24420
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
24401
24421
|
return messages?.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id)) || [];
|
24402
24422
|
}, [blacklistedMessageIDs, messages]);
|
24403
24423
|
const vanillaStore = useHMSVanillaStore9();
|
24404
24424
|
const rerenderOnFirstMount = useRef20(false);
|
24405
|
-
|
24425
|
+
useEffect27(() => {
|
24406
24426
|
const unsubscribe = vanillaStore.subscribe(() => {
|
24407
24427
|
if (!listRef.current) {
|
24408
24428
|
return;
|
@@ -24414,7 +24434,7 @@ var ChatBody = React109.forwardRef(
|
|
24414
24434
|
}, selectUnreadHMSMessagesCount2);
|
24415
24435
|
return unsubscribe;
|
24416
24436
|
}, [vanillaStore, listRef, scrollToBottom]);
|
24417
|
-
|
24437
|
+
useEffect27(() => {
|
24418
24438
|
if (filteredMessages.length > 0 && listRef?.current && !rerenderOnFirstMount.current) {
|
24419
24439
|
rerenderOnFirstMount.current = true;
|
24420
24440
|
listRef.current.resetAfterIndex(0);
|
@@ -24429,7 +24449,7 @@ var PinnedBy = ({
|
|
24429
24449
|
rowRef
|
24430
24450
|
}) => {
|
24431
24451
|
const pinnedBy = usePinnedBy(messageId);
|
24432
|
-
const localPeerName =
|
24452
|
+
const localPeerName = useHMSStore56(selectLocalPeerName3);
|
24433
24453
|
useLayoutEffect(() => {
|
24434
24454
|
if (rowRef?.current) {
|
24435
24455
|
if (pinnedBy) {
|
@@ -24448,32 +24468,32 @@ var PinnedBy = ({
|
|
24448
24468
|
|
24449
24469
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
24450
24470
|
init_define_process_env();
|
24451
|
-
import React112, { useCallback as useCallback28, useEffect as
|
24452
|
-
import { useMedia as
|
24471
|
+
import React112, { useCallback as useCallback28, useEffect as useEffect29, useRef as useRef22, useState as useState49 } from "react";
|
24472
|
+
import { useMedia as useMedia16 } from "react-use";
|
24453
24473
|
import data2 from "@emoji-mart/data";
|
24454
24474
|
import Picker from "@emoji-mart/react";
|
24455
|
-
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions38, useHMSStore as
|
24475
|
+
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions38, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
24456
24476
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24457
24477
|
|
24458
24478
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24459
24479
|
init_define_process_env();
|
24460
24480
|
import React111, { useState as useState48 } from "react";
|
24461
|
-
import { useMedia as
|
24462
|
-
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as
|
24481
|
+
import { useMedia as useMedia15 } from "react-use";
|
24482
|
+
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon20, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
|
24463
24483
|
|
24464
24484
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
24465
24485
|
init_define_process_env();
|
24466
24486
|
import React110, { useMemo as useMemo11, useState as useState47 } from "react";
|
24467
|
-
import { useMedia as
|
24487
|
+
import { useMedia as useMedia14 } from "react-use";
|
24468
24488
|
import {
|
24469
24489
|
HMSPeerType as HMSPeerType3,
|
24470
24490
|
selectMessagesUnreadCountByPeerID,
|
24471
24491
|
selectMessagesUnreadCountByRole,
|
24472
24492
|
selectRemotePeers as selectRemotePeers2,
|
24473
24493
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
|
24474
|
-
useHMSStore as
|
24494
|
+
useHMSStore as useHMSStore57
|
24475
24495
|
} from "@100mslive/react-sdk";
|
24476
|
-
import { CheckIcon as
|
24496
|
+
import { CheckIcon as CheckIcon6, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
|
24477
24497
|
var ChatDotIcon = () => {
|
24478
24498
|
return /* @__PURE__ */ React110.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
|
24479
24499
|
};
|
@@ -24484,7 +24504,7 @@ var SelectorItem = ({
|
|
24484
24504
|
unreadCount,
|
24485
24505
|
icon = void 0
|
24486
24506
|
}) => {
|
24487
|
-
const isMobile =
|
24507
|
+
const isMobile = useMedia14(config.media.md);
|
24488
24508
|
const Root28 = !isMobile ? Dropdown.Item : ({ children, ...rest }) => /* @__PURE__ */ React110.createElement(Flex, { ...rest, css: { p: "$6 $8", ...rest.css } }, children);
|
24489
24509
|
return /* @__PURE__ */ React110.createElement(
|
24490
24510
|
Root28,
|
@@ -24502,7 +24522,7 @@ var SelectorItem = ({
|
|
24502
24522
|
icon,
|
24503
24523
|
value
|
24504
24524
|
),
|
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(
|
24525
|
+
/* @__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
24526
|
);
|
24507
24527
|
};
|
24508
24528
|
var SelectorHeader = React110.memo(
|
@@ -24518,7 +24538,7 @@ var SelectorHeader = React110.memo(
|
|
24518
24538
|
}
|
24519
24539
|
);
|
24520
24540
|
var Everyone = React110.memo(({ active }) => {
|
24521
|
-
const unreadCount =
|
24541
|
+
const unreadCount = useHMSStore57(selectUnreadHMSMessagesCount3);
|
24522
24542
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24523
24543
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24524
24544
|
return /* @__PURE__ */ React110.createElement(
|
@@ -24536,7 +24556,7 @@ var Everyone = React110.memo(({ active }) => {
|
|
24536
24556
|
);
|
24537
24557
|
});
|
24538
24558
|
var RoleItem = React110.memo(({ role, active }) => {
|
24539
|
-
const unreadCount =
|
24559
|
+
const unreadCount = useHMSStore57(selectMessagesUnreadCountByRole(role));
|
24540
24560
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24541
24561
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24542
24562
|
return /* @__PURE__ */ React110.createElement(
|
@@ -24553,7 +24573,7 @@ var RoleItem = React110.memo(({ role, active }) => {
|
|
24553
24573
|
);
|
24554
24574
|
});
|
24555
24575
|
var PeerItem = ({ peerId, name, active }) => {
|
24556
|
-
const unreadCount =
|
24576
|
+
const unreadCount = useHMSStore57(selectMessagesUnreadCountByPeerID(peerId));
|
24557
24577
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24558
24578
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24559
24579
|
return /* @__PURE__ */ React110.createElement(
|
@@ -24611,7 +24631,7 @@ var VirtualizedSelectItemList = ({
|
|
24611
24631
|
};
|
24612
24632
|
var ChatSelector = ({ role, peerId }) => {
|
24613
24633
|
const { elements } = useRoomLayoutConferencingScreen();
|
24614
|
-
const peers =
|
24634
|
+
const peers = useHMSStore57(selectRemotePeers2);
|
24615
24635
|
const [search, setSearch] = useState47("");
|
24616
24636
|
const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
|
24617
24637
|
const isPublicChatEnabled = !!elements?.chat?.public_chat_enabled;
|
@@ -24630,7 +24650,7 @@ var ChatSelector = ({ role, peerId }) => {
|
|
24630
24650
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24631
24651
|
var ChatSelectorContainer = () => {
|
24632
24652
|
const [open, setOpen] = useState48(false);
|
24633
|
-
const isMobile =
|
24653
|
+
const isMobile = useMedia15(config.media.md);
|
24634
24654
|
const { elements } = useRoomLayoutConferencingScreen();
|
24635
24655
|
const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
|
24636
24656
|
const isPublicChatEnabled = !!elements?.chat?.public_chat_enabled;
|
@@ -24733,7 +24753,7 @@ var ChatSelectorContainer = () => {
|
|
24733
24753
|
}
|
24734
24754
|
},
|
24735
24755
|
/* @__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(
|
24756
|
+
/* @__PURE__ */ React111.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React111.createElement(CrossIcon20, null))
|
24737
24757
|
), /* @__PURE__ */ React111.createElement(
|
24738
24758
|
Box,
|
24739
24759
|
{
|
@@ -24748,10 +24768,10 @@ var ChatSelectorContainer = () => {
|
|
24748
24768
|
// src/Prebuilt/components/AppData/useChatState.js
|
24749
24769
|
init_define_process_env();
|
24750
24770
|
import { useCallback as useCallback27 } from "react";
|
24751
|
-
import { selectAppData as
|
24771
|
+
import { selectAppData as selectAppData7, useHMSActions as useHMSActions37, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
24752
24772
|
var useChatDraftMessage = () => {
|
24753
24773
|
const hmsActions = useHMSActions37();
|
24754
|
-
let chatDraftMessage =
|
24774
|
+
let chatDraftMessage = useHMSStore58(selectAppData7(APP_DATA.chatDraft));
|
24755
24775
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
24756
24776
|
chatDraftMessage = "";
|
24757
24777
|
}
|
@@ -24766,10 +24786,10 @@ var useChatDraftMessage = () => {
|
|
24766
24786
|
|
24767
24787
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
24768
24788
|
init_define_process_env();
|
24769
|
-
import { useEffect as
|
24789
|
+
import { useEffect as useEffect28, useRef as useRef21 } from "react";
|
24770
24790
|
var useEmojiPickerStyles = (showing) => {
|
24771
24791
|
const ref = useRef21(null);
|
24772
|
-
|
24792
|
+
useEffect28(() => {
|
24773
24793
|
if (showing) {
|
24774
24794
|
setTimeout(() => {
|
24775
24795
|
const root = ref.current?.querySelector("em-emoji-picker")?.shadowRoot;
|
@@ -24845,10 +24865,10 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24845
24865
|
const hmsActions = useHMSActions38();
|
24846
24866
|
const inputRef = useRef22(null);
|
24847
24867
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
24848
|
-
const isMobile =
|
24868
|
+
const isMobile = useMedia16(config.media.md);
|
24849
24869
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
24850
24870
|
const message_placeholder = elements?.chat?.message_placeholder || "Send a message";
|
24851
|
-
const localPeer =
|
24871
|
+
const localPeer = useHMSStore59(selectLocalPeer3);
|
24852
24872
|
const isOverlayChat = elements?.chat?.is_overlay;
|
24853
24873
|
const canDisableChat = !!elements?.chat?.real_time_controls?.can_disable_chat;
|
24854
24874
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -24858,7 +24878,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24858
24878
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
24859
24879
|
const isMwebHLSStream = useMobileHLSStream();
|
24860
24880
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
24861
|
-
|
24881
|
+
useEffect29(() => {
|
24862
24882
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
24863
24883
|
setRoleSelector(defaultSelection);
|
24864
24884
|
} else {
|
@@ -24891,13 +24911,13 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24891
24911
|
});
|
24892
24912
|
}
|
24893
24913
|
}, [selectedRole, selectedPeer, hmsActions, onSend]);
|
24894
|
-
|
24914
|
+
useEffect29(() => {
|
24895
24915
|
const messageElement = inputRef.current;
|
24896
24916
|
if (messageElement) {
|
24897
24917
|
messageElement.value = draftMessage;
|
24898
24918
|
}
|
24899
24919
|
}, [draftMessage]);
|
24900
|
-
|
24920
|
+
useEffect29(() => {
|
24901
24921
|
const messageElement = inputRef.current;
|
24902
24922
|
return () => {
|
24903
24923
|
setDraftMessage(messageElement?.value || "");
|
@@ -25028,13 +25048,13 @@ var ChatFooter = ({ onSend, children }) => {
|
|
25028
25048
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
25029
25049
|
init_define_process_env();
|
25030
25050
|
import React113, { useCallback as useCallback29 } from "react";
|
25031
|
-
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions39, useHMSStore as
|
25051
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
25032
25052
|
var ChatPaused = () => {
|
25033
25053
|
const hmsActions = useHMSActions39();
|
25034
25054
|
const { elements } = useRoomLayoutConferencingScreen();
|
25035
25055
|
const can_disable_chat = !!elements?.chat?.real_time_controls?.can_disable_chat;
|
25036
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } =
|
25037
|
-
const localPeer =
|
25056
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
25057
|
+
const localPeer = useHMSStore60(selectLocalPeer4);
|
25038
25058
|
const unPauseChat = useCallback29(
|
25039
25059
|
async () => await hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
25040
25060
|
enabled: true,
|
@@ -25080,10 +25100,10 @@ var ChatBlocked = () => {
|
|
25080
25100
|
|
25081
25101
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
25082
25102
|
init_define_process_env();
|
25083
|
-
import React116, { useEffect as
|
25103
|
+
import React116, { useEffect as useEffect30, useState as useState50 } from "react";
|
25084
25104
|
import { useSwipeable } from "react-swipeable";
|
25085
|
-
import { useMedia as
|
25086
|
-
import { selectSessionStore as selectSessionStore7, useHMSStore as
|
25105
|
+
import { useMedia as useMedia17 } from "react-use";
|
25106
|
+
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
|
25087
25107
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
25088
25108
|
|
25089
25109
|
// src/Prebuilt/components/Chat/ArrowNavigation.tsx
|
@@ -25139,10 +25159,10 @@ var StickIndicator = ({ total, index }) => {
|
|
25139
25159
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
25140
25160
|
var PINNED_MESSAGE_LENGTH = 75;
|
25141
25161
|
var PinnedMessage = () => {
|
25142
|
-
const pinnedMessages =
|
25162
|
+
const pinnedMessages = useHMSStore61(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
25143
25163
|
const [pinnedMessageIndex, setPinnedMessageIndex] = useState50(0);
|
25144
25164
|
const { removePinnedMessage } = usePinnedMessages();
|
25145
|
-
const isMobile =
|
25165
|
+
const isMobile = useMedia17(config.media.md);
|
25146
25166
|
const { elements } = useRoomLayoutConferencingScreen();
|
25147
25167
|
const canUnpinMessage = !!elements?.chat?.allow_pinning_messages;
|
25148
25168
|
const [hideOverflow, setHideOverflow] = useState50(true);
|
@@ -25162,7 +25182,7 @@ var PinnedMessage = () => {
|
|
25162
25182
|
onSwipedUp: () => showNextPinnedMessage(),
|
25163
25183
|
onSwipedDown: () => showPreviousPinnedMessage()
|
25164
25184
|
});
|
25165
|
-
|
25185
|
+
useEffect30(() => {
|
25166
25186
|
const count = pinnedMessages?.length || 1;
|
25167
25187
|
if (pinnedMessageIndex >= count) {
|
25168
25188
|
setPinnedMessageIndex(count - 1);
|
@@ -25257,10 +25277,11 @@ var Chat = () => {
|
|
25257
25277
|
const listRef = useRef23(null);
|
25258
25278
|
const hmsActions = useHMSActions40();
|
25259
25279
|
const vanillaStore = useHMSVanillaStore10();
|
25260
|
-
const { enabled: isChatEnabled = true } =
|
25261
|
-
const isMobile =
|
25280
|
+
const { enabled: isChatEnabled = true } = useHMSStore62(Sm("chatState" /* CHAT_STATE */)) || {};
|
25281
|
+
const isMobile = useMedia18(config.media.md);
|
25262
25282
|
const isMobileHLSStream = useMobileHLSStream();
|
25263
25283
|
const isLandscapeStream = useLandscapeHLSStream();
|
25284
|
+
useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
|
25264
25285
|
const scrollToBottom = useCallback30(
|
25265
25286
|
(unreadCount = 0) => {
|
25266
25287
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
@@ -25274,9 +25295,6 @@ var Chat = () => {
|
|
25274
25295
|
},
|
25275
25296
|
[hmsActions, vanillaStore]
|
25276
25297
|
);
|
25277
|
-
if (!elements?.chat) {
|
25278
|
-
return null;
|
25279
|
-
}
|
25280
25298
|
const streaming = isMobileHLSStream || isLandscapeStream;
|
25281
25299
|
return /* @__PURE__ */ React117.createElement(
|
25282
25300
|
Flex,
|
@@ -25340,7 +25358,7 @@ var NewMessageIndicator = ({
|
|
25340
25358
|
scrollToBottom,
|
25341
25359
|
listRef
|
25342
25360
|
}) => {
|
25343
|
-
const unreadCount =
|
25361
|
+
const unreadCount = useHMSStore62(Bh);
|
25344
25362
|
if (!unreadCount || !listRef.current) {
|
25345
25363
|
return null;
|
25346
25364
|
}
|
@@ -25386,12 +25404,12 @@ var NewMessageIndicator = ({
|
|
25386
25404
|
|
25387
25405
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
25388
25406
|
init_define_process_env();
|
25389
|
-
import React118, { useEffect as
|
25407
|
+
import React118, { useEffect as useEffect31, useState as useState51 } from "react";
|
25390
25408
|
import { useInView } from "react-intersection-observer";
|
25391
25409
|
import { useMeasure as useMeasure2 } from "react-use";
|
25392
25410
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
25393
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as
|
25394
|
-
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as
|
25411
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore63, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
25412
|
+
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
|
25395
25413
|
var LoadMoreParticipants = ({
|
25396
25414
|
hasNext,
|
25397
25415
|
loadMore,
|
@@ -25399,7 +25417,7 @@ var LoadMoreParticipants = ({
|
|
25399
25417
|
}) => {
|
25400
25418
|
const { ref, inView } = useInView();
|
25401
25419
|
const [inProgress, setInProgress] = useState51(false);
|
25402
|
-
|
25420
|
+
useEffect31(() => {
|
25403
25421
|
if (hasNext && inView && !inProgress) {
|
25404
25422
|
setInProgress(true);
|
25405
25423
|
loadMore().catch(console.error).finally(() => setInProgress(false));
|
@@ -25431,11 +25449,11 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25431
25449
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
|
25432
25450
|
const [search, setSearch] = useState51("");
|
25433
25451
|
const filteredPeers = peers.filter((p) => p.name?.toLowerCase().includes(search?.toLowerCase()));
|
25434
|
-
const isConnected =
|
25452
|
+
const isConnected = useHMSStore63(selectIsConnectedToRoom8);
|
25435
25453
|
const [ref, { width }] = useMeasure2();
|
25436
25454
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
25437
25455
|
const resetSidePane = useSidepaneReset();
|
25438
|
-
|
25456
|
+
useEffect31(() => {
|
25439
25457
|
loadPeers();
|
25440
25458
|
}, []);
|
25441
25459
|
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 +25465,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25447
25465
|
},
|
25448
25466
|
"data-testid": "close_sidepane"
|
25449
25467
|
},
|
25450
|
-
/* @__PURE__ */ React118.createElement(
|
25468
|
+
/* @__PURE__ */ React118.createElement(CrossIcon21, null)
|
25451
25469
|
)), /* @__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
25470
|
VariableSizeList2,
|
25453
25471
|
{
|
@@ -25465,14 +25483,14 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25465
25483
|
// src/Prebuilt/components/ChatSettings.tsx
|
25466
25484
|
init_define_process_env();
|
25467
25485
|
import React119 from "react";
|
25468
|
-
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions41, useHMSStore as
|
25486
|
+
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions41, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
25469
25487
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
25470
25488
|
var ChatSettings = () => {
|
25471
25489
|
const hmsActions = useHMSActions41();
|
25472
|
-
const localPeer =
|
25490
|
+
const localPeer = useHMSStore64(selectLocalPeer5);
|
25473
25491
|
const { elements } = useRoomLayoutConferencingScreen();
|
25474
25492
|
const canPauseChat = !!elements?.chat?.real_time_controls?.can_disable_chat;
|
25475
|
-
const { enabled: isChatEnabled = true } =
|
25493
|
+
const { enabled: isChatEnabled = true } = useHMSStore64(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
25476
25494
|
const showPause = canPauseChat && isChatEnabled;
|
25477
25495
|
if (!showPause) {
|
25478
25496
|
return null;
|
@@ -25539,18 +25557,18 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25539
25557
|
const resetSidePane = useSidepaneReset();
|
25540
25558
|
const [activeTab, setActiveTab] = useState52(active);
|
25541
25559
|
const [activeRole, setActiveRole] = useState52("");
|
25542
|
-
const peerCount =
|
25560
|
+
const peerCount = useHMSStore65(selectPeerCount5);
|
25543
25561
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
25544
25562
|
const chat_title = elements?.chat?.chat_title || "Chat";
|
25545
25563
|
const showChat = !!elements?.chat;
|
25546
25564
|
const showParticipants = !!elements?.participant_list;
|
25547
25565
|
const hideTabs = !(showChat && showParticipants) || hideTab;
|
25548
|
-
const isMobile =
|
25566
|
+
const isMobile = useMedia19(config.media.md);
|
25549
25567
|
const isOverlayChat = !!elements?.chat?.is_overlay && isMobile;
|
25550
25568
|
const { off_stage_roles = [] } = elements?.on_stage_exp || {};
|
25551
25569
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
25552
25570
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
25553
|
-
|
25571
|
+
useEffect32(() => {
|
25554
25572
|
match10({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
25555
25573
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
25556
25574
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
@@ -25559,7 +25577,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25559
25577
|
resetSidePane();
|
25560
25578
|
});
|
25561
25579
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
25562
|
-
|
25580
|
+
useEffect32(() => {
|
25563
25581
|
setActiveTab(active);
|
25564
25582
|
}, [active]);
|
25565
25583
|
if (activeRole) {
|
@@ -25620,7 +25638,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25620
25638
|
},
|
25621
25639
|
"data-testid": "close_chat"
|
25622
25640
|
},
|
25623
|
-
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React120.createElement(
|
25641
|
+
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React120.createElement(CrossIcon22, null)
|
25624
25642
|
))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ React120.createElement(Chat, null) : /* @__PURE__ */ React120.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
|
25625
25643
|
}).otherwise(() => {
|
25626
25644
|
return /* @__PURE__ */ React120.createElement(
|
@@ -25647,7 +25665,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25647
25665
|
},
|
25648
25666
|
"data-testid": "close_chat"
|
25649
25667
|
},
|
25650
|
-
/* @__PURE__ */ React120.createElement(
|
25668
|
+
/* @__PURE__ */ React120.createElement(CrossIcon22, null)
|
25651
25669
|
)),
|
25652
25670
|
/* @__PURE__ */ React120.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ React120.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
|
25653
25671
|
/* @__PURE__ */ React120.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ React120.createElement(Chat, null))
|
@@ -25669,7 +25687,7 @@ import {
|
|
25669
25687
|
selectPeerNameByID as selectPeerNameByID4,
|
25670
25688
|
selectVideoTrackByID as selectVideoTrackByID3,
|
25671
25689
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
25672
|
-
useHMSStore as
|
25690
|
+
useHMSStore as useHMSStore69
|
25673
25691
|
} from "@100mslive/react-sdk";
|
25674
25692
|
import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
|
25675
25693
|
|
@@ -25681,7 +25699,7 @@ import {
|
|
25681
25699
|
selectPeerTypeByID as selectPeerTypeByID2,
|
25682
25700
|
selectScreenShareByPeerID,
|
25683
25701
|
selectSessionStore as selectSessionStore9,
|
25684
|
-
useHMSStore as
|
25702
|
+
useHMSStore as useHMSStore66
|
25685
25703
|
} from "@100mslive/react-sdk";
|
25686
25704
|
import { CallIcon as CallIcon2, PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
|
25687
25705
|
var TileConnection = ({
|
@@ -25691,9 +25709,9 @@ var TileConnection = ({
|
|
25691
25709
|
width,
|
25692
25710
|
pinned
|
25693
25711
|
}) => {
|
25694
|
-
const spotlighted =
|
25695
|
-
const isPeerScreenSharing = !!
|
25696
|
-
const peerType =
|
25712
|
+
const spotlighted = useHMSStore66(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
|
25713
|
+
const isPeerScreenSharing = !!useHMSStore66(selectScreenShareByPeerID(peerId));
|
25714
|
+
const peerType = useHMSStore66(selectPeerTypeByID2(peerId));
|
25697
25715
|
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
25716
|
Text,
|
25699
25717
|
{
|
@@ -25728,35 +25746,36 @@ var TileConnection_default = TileConnection;
|
|
25728
25746
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
25729
25747
|
init_define_process_env();
|
25730
25748
|
import React123, { useState as useState53 } from "react";
|
25731
|
-
import { useMedia as
|
25749
|
+
import { useMedia as useMedia21 } from "react-use";
|
25732
25750
|
import {
|
25733
25751
|
selectLocalPeerID as selectLocalPeerID11,
|
25734
25752
|
selectPeerByID as selectPeerByID2,
|
25735
25753
|
selectPermissions as selectPermissions19,
|
25736
25754
|
selectTrackByID as selectTrackByID3,
|
25737
25755
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
25738
|
-
useHMSStore as
|
25756
|
+
useHMSStore as useHMSStore68,
|
25739
25757
|
useRemoteAVToggle as useRemoteAVToggle2
|
25740
25758
|
} from "@100mslive/react-sdk";
|
25741
|
-
import { CrossIcon as
|
25759
|
+
import { CrossIcon as CrossIcon23, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
25742
25760
|
|
25743
25761
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
25744
25762
|
init_define_process_env();
|
25745
25763
|
import React122, { Fragment as Fragment11 } from "react";
|
25746
|
-
import { useMedia as
|
25764
|
+
import { useMedia as useMedia20 } from "react-use";
|
25747
25765
|
import {
|
25748
25766
|
selectPermissions as selectPermissions18,
|
25749
25767
|
selectSessionStore as selectSessionStore10,
|
25750
25768
|
selectTrackByID as selectTrackByID2,
|
25751
25769
|
useCustomEvent as useCustomEvent2,
|
25752
25770
|
useHMSActions as useHMSActions42,
|
25753
|
-
useHMSStore as
|
25771
|
+
useHMSStore as useHMSStore67,
|
25754
25772
|
useRemoteAVToggle
|
25755
25773
|
} from "@100mslive/react-sdk";
|
25756
25774
|
import {
|
25757
25775
|
MicOffIcon as MicOffIcon5,
|
25758
25776
|
MicOnIcon as MicOnIcon4,
|
25759
25777
|
PencilIcon,
|
25778
|
+
PersonSettingsIcon as PersonSettingsIcon2,
|
25760
25779
|
PinIcon as PinIcon4,
|
25761
25780
|
RemoveUserIcon as RemoveUserIcon2,
|
25762
25781
|
ShareScreenIcon as ShareScreenIcon4,
|
@@ -25787,7 +25806,7 @@ var SpotlightActions = ({
|
|
25787
25806
|
}
|
25788
25807
|
}) => {
|
25789
25808
|
const hmsActions = useHMSActions42();
|
25790
|
-
const spotlightPeerId =
|
25809
|
+
const spotlightPeerId = useHMSStore67(selectSessionStore10("spotlight" /* SPOTLIGHT */));
|
25791
25810
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
25792
25811
|
const dragClassName = getDragClassName();
|
25793
25812
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -25834,7 +25853,7 @@ var MinimiseInset = () => {
|
|
25834
25853
|
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
25854
|
};
|
25836
25855
|
var SimulcastLayers = ({ trackId }) => {
|
25837
|
-
const track =
|
25856
|
+
const track = useHMSStore67(selectTrackByID2(trackId));
|
25838
25857
|
const actions = useHMSActions42();
|
25839
25858
|
const bg = useDropdownSelection();
|
25840
25859
|
if (!track?.layerDefinitions?.length || track.degraded || !track.enabled) {
|
@@ -25915,11 +25934,16 @@ var TileMenuContent = ({
|
|
25915
25934
|
},
|
25916
25935
|
openNameChangeModal = () => {
|
25917
25936
|
return;
|
25937
|
+
},
|
25938
|
+
openRoleChangeModal = () => {
|
25939
|
+
return;
|
25918
25940
|
}
|
25919
25941
|
}) => {
|
25920
25942
|
const actions = useHMSActions42();
|
25921
25943
|
const dragClassName = getDragClassName();
|
25922
|
-
const
|
25944
|
+
const permissions = useHMSStore67(selectPermissions18);
|
25945
|
+
const canChangeRole = !!permissions?.changeRole;
|
25946
|
+
const removeOthers = !!permissions?.removeOthers;
|
25923
25947
|
const { userName } = useHMSPrebuiltContext();
|
25924
25948
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
25925
25949
|
audioTrackID,
|
@@ -25928,7 +25952,7 @@ var TileMenuContent = ({
|
|
25928
25952
|
const { sendEvent } = useCustomEvent2({
|
25929
25953
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
25930
25954
|
});
|
25931
|
-
const isMobile =
|
25955
|
+
const isMobile = useMedia20(config.media.md);
|
25932
25956
|
if (isLocal) {
|
25933
25957
|
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
25958
|
StyledMenuTile.ItemButton,
|
@@ -25969,6 +25993,19 @@ var TileMenuContent = ({
|
|
25969
25993
|
},
|
25970
25994
|
isAudioEnabled ? /* @__PURE__ */ React122.createElement(MicOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React122.createElement(MicOffIcon5, { height: 20, width: 20 }),
|
25971
25995
|
/* @__PURE__ */ React122.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
|
25996
|
+
) : null, canChangeRole ? /* @__PURE__ */ React122.createElement(
|
25997
|
+
StyledMenuTile.ItemButton,
|
25998
|
+
{
|
25999
|
+
className: dragClassName,
|
26000
|
+
css: spacingCSS,
|
26001
|
+
onClick: () => {
|
26002
|
+
openRoleChangeModal();
|
26003
|
+
closeSheetOnClick();
|
26004
|
+
},
|
26005
|
+
"data-testid": "change_role_btn"
|
26006
|
+
},
|
26007
|
+
/* @__PURE__ */ React122.createElement(PersonSettingsIcon2, { height: 20, width: 20 }),
|
26008
|
+
/* @__PURE__ */ React122.createElement("span", null, "Switch Role")
|
25972
26009
|
) : 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
26010
|
Slider,
|
25974
26011
|
{
|
@@ -26017,24 +26054,26 @@ var TileMenu = ({
|
|
26017
26054
|
}) => {
|
26018
26055
|
const [open, setOpen] = useState53(false);
|
26019
26056
|
const { theme: theme2 } = useTheme();
|
26020
|
-
const localPeerID =
|
26057
|
+
const localPeerID = useHMSStore68(selectLocalPeerID11);
|
26021
26058
|
const isLocal = localPeerID === peerID;
|
26022
|
-
const { removeOthers } =
|
26059
|
+
const { removeOthers } = useHMSStore68(selectPermissions19) || {};
|
26023
26060
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
26024
26061
|
const showSpotlight = enableSpotlightingPeer;
|
26025
|
-
const isPrimaryVideoTrack =
|
26062
|
+
const isPrimaryVideoTrack = useHMSStore68(selectVideoTrackByPeerID2(peerID))?.id === videoTrackID;
|
26026
26063
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
26027
|
-
const track =
|
26064
|
+
const track = useHMSStore68(selectTrackByID3(videoTrackID));
|
26028
26065
|
const hideSimulcastLayers = !track?.layerDefinitions?.length || track.degraded || !track.enabled;
|
26029
|
-
const isMobile =
|
26030
|
-
const peer =
|
26066
|
+
const isMobile = useMedia21(config.media.md);
|
26067
|
+
const peer = useHMSStore68(selectPeerByID2(peerID));
|
26031
26068
|
const [showNameChangeModal, setShowNameChangeModal] = useState53(false);
|
26069
|
+
const [showRoleChangeModal, setShowRoleChangeModal] = useState53(false);
|
26032
26070
|
useDropdownList({ open, name: "TileMenu" });
|
26033
26071
|
const dragClassName = getDragClassName();
|
26034
26072
|
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
26035
26073
|
return null;
|
26036
26074
|
}
|
26037
26075
|
const openNameChangeModal = () => setShowNameChangeModal(true);
|
26076
|
+
const openRoleChangeModal = () => setShowRoleChangeModal(true);
|
26038
26077
|
const props = {
|
26039
26078
|
isLocal,
|
26040
26079
|
isScreenshare,
|
@@ -26045,7 +26084,8 @@ var TileMenu = ({
|
|
26045
26084
|
showSpotlight,
|
26046
26085
|
showPinAction,
|
26047
26086
|
canMinimise,
|
26048
|
-
openNameChangeModal
|
26087
|
+
openNameChangeModal,
|
26088
|
+
openRoleChangeModal
|
26049
26089
|
};
|
26050
26090
|
return /* @__PURE__ */ React123.createElement(React123.Fragment, null, /* @__PURE__ */ React123.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React123.createElement(
|
26051
26091
|
StyledMenuTile.Trigger,
|
@@ -26071,8 +26111,8 @@ var TileMenu = ({
|
|
26071
26111
|
}
|
26072
26112
|
},
|
26073
26113
|
/* @__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 }));
|
26114
|
+
/* @__PURE__ */ React123.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React123.createElement(CrossIcon23, null))
|
26115
|
+
), /* @__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
26116
|
};
|
26077
26117
|
var TileMenu_default = TileMenu;
|
26078
26118
|
|
@@ -26104,9 +26144,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
|
26104
26144
|
|
26105
26145
|
// src/Prebuilt/components/VideoTile.tsx
|
26106
26146
|
var PeerMetadata = ({ peerId, size }) => {
|
26107
|
-
const metaData =
|
26147
|
+
const metaData = useHMSStore69(selectPeerMetadata4(peerId));
|
26108
26148
|
const isBRB = metaData?.isBRBOn || false;
|
26109
|
-
const isHandRaised =
|
26149
|
+
const isHandRaised = useHMSStore69(selectHasPeerHandRaised3(peerId));
|
26110
26150
|
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
26151
|
};
|
26112
26152
|
var Tile = ({
|
@@ -26126,14 +26166,14 @@ var Tile = ({
|
|
26126
26166
|
hideMetadataOnTile = false
|
26127
26167
|
}) => {
|
26128
26168
|
const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
|
26129
|
-
const track =
|
26130
|
-
const peerName =
|
26131
|
-
const audioTrack =
|
26132
|
-
const localPeerID =
|
26169
|
+
const track = useHMSStore69(trackSelector);
|
26170
|
+
const peerName = useHMSStore69(selectPeerNameByID4(peerId));
|
26171
|
+
const audioTrack = useHMSStore69(selectAudioTrackByPeerID2(peerId));
|
26172
|
+
const localPeerID = useHMSStore69(selectLocalPeerID12);
|
26133
26173
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
26134
26174
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26135
26175
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
26136
|
-
const isAudioMuted = !
|
26176
|
+
const isAudioMuted = !useHMSStore69(selectIsPeerAudioEnabled2(peerId));
|
26137
26177
|
const isVideoMuted = !track?.enabled;
|
26138
26178
|
const [isMouseHovered, setIsMouseHovered] = useState54(false);
|
26139
26179
|
const isVideoDegraded = track?.degraded;
|
@@ -26222,8 +26262,8 @@ var VideoTile_default = VideoTile;
|
|
26222
26262
|
|
26223
26263
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
26224
26264
|
init_define_process_env();
|
26225
|
-
import React127, { useEffect as
|
26226
|
-
import { useMedia as
|
26265
|
+
import React127, { useEffect as useEffect33, useState as useState55 } from "react";
|
26266
|
+
import { useMedia as useMedia22 } from "react-use";
|
26227
26267
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
26228
26268
|
import {
|
26229
26269
|
HMSRoomState as HMSRoomState4,
|
@@ -26234,9 +26274,9 @@ import {
|
|
26234
26274
|
selectRoomState as selectRoomState4,
|
26235
26275
|
selectVideoTrackByID as selectVideoTrackByID4,
|
26236
26276
|
useHMSActions as useHMSActions43,
|
26237
|
-
useHMSStore as
|
26277
|
+
useHMSStore as useHMSStore70
|
26238
26278
|
} from "@100mslive/react-sdk";
|
26239
|
-
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as
|
26279
|
+
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon24 } from "@100mslive/react-icons";
|
26240
26280
|
|
26241
26281
|
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
26242
26282
|
init_define_process_env();
|
@@ -26414,25 +26454,25 @@ var iconDims = { height: "40px", width: "40px" };
|
|
26414
26454
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
26415
26455
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26416
26456
|
const hmsActions = useHMSActions43();
|
26417
|
-
const localPeer =
|
26418
|
-
const role =
|
26419
|
-
const isVideoOn =
|
26457
|
+
const localPeer = useHMSStore70(selectLocalPeer6);
|
26458
|
+
const role = useHMSStore70(oi);
|
26459
|
+
const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
|
26420
26460
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26421
26461
|
const trackSelector = selectVideoTrackByID4(localPeer?.videoTrack);
|
26422
|
-
const track =
|
26462
|
+
const track = useHMSStore70(trackSelector);
|
26423
26463
|
const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
|
26424
|
-
const roomState =
|
26425
|
-
const isLargeRoom =
|
26426
|
-
const isEffectsEnabled =
|
26427
|
-
const effectsKey =
|
26428
|
-
const isMobile =
|
26464
|
+
const roomState = useHMSStore70(selectRoomState4);
|
26465
|
+
const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
|
26466
|
+
const isEffectsEnabled = useHMSStore70(Yh);
|
26467
|
+
const effectsKey = useHMSStore70(Xh);
|
26468
|
+
const isMobile = useMedia22(config.media.md);
|
26429
26469
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
26430
|
-
const isPluginAdded =
|
26431
|
-
const background =
|
26470
|
+
const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ""));
|
26471
|
+
const background = useHMSStore70(mm(APP_DATA.background));
|
26432
26472
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26433
26473
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26434
26474
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
26435
|
-
|
26475
|
+
useEffect33(() => {
|
26436
26476
|
if (!track?.id) {
|
26437
26477
|
return;
|
26438
26478
|
}
|
@@ -26478,19 +26518,20 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26478
26518
|
blurAmount,
|
26479
26519
|
setLoadingEffects
|
26480
26520
|
]);
|
26481
|
-
|
26521
|
+
useEffect33(() => {
|
26482
26522
|
if (!isVideoOn) {
|
26483
26523
|
toggleVB();
|
26484
26524
|
}
|
26485
26525
|
return () => setLoadingEffects(false);
|
26486
26526
|
}, [isVideoOn, setLoadingEffects, toggleVB]);
|
26527
|
+
useSidepaneResetOnLayoutUpdate("virtual_background", SIDE_PANE_OPTIONS.VB);
|
26487
26528
|
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
26529
|
Box,
|
26489
26530
|
{
|
26490
26531
|
css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
|
26491
26532
|
onClick: toggleVB
|
26492
26533
|
},
|
26493
|
-
/* @__PURE__ */ React127.createElement(
|
26534
|
+
/* @__PURE__ */ React127.createElement(CrossIcon24, null)
|
26494
26535
|
)), showVideoTile ? /* @__PURE__ */ React127.createElement(
|
26495
26536
|
Video,
|
26496
26537
|
{
|
@@ -26669,22 +26710,16 @@ var SidePane = ({
|
|
26669
26710
|
tileProps,
|
26670
26711
|
hideControls = false
|
26671
26712
|
}) => {
|
26672
|
-
const isMobile =
|
26673
|
-
const sidepane =
|
26674
|
-
const activeScreensharePeerId =
|
26675
|
-
const trackId =
|
26713
|
+
const isMobile = useMedia23(config.media.md);
|
26714
|
+
const sidepane = useHMSStore71(selectAppData8(APP_DATA.sidePane));
|
26715
|
+
const activeScreensharePeerId = useHMSStore71(selectAppData8(APP_DATA.activeScreensharePeerId));
|
26716
|
+
const trackId = useHMSStore71(selectVideoTrackByPeerID4(activeScreensharePeerId))?.id;
|
26676
26717
|
const { elements } = useRoomLayoutConferencingScreen();
|
26677
26718
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
26678
26719
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
26679
26720
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
26680
26721
|
const isMobileHLSStream = useMobileHLSStream();
|
26681
26722
|
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
26723
|
const tileLayout = {
|
26689
26724
|
hideParticipantNameOnTile: tileProps?.hide_participant_name_on_tile,
|
26690
26725
|
roundedVideoTile: tileProps?.rounded_video_tile,
|
@@ -26716,7 +26751,13 @@ var SidePane = ({
|
|
26716
26751
|
)).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
26752
|
return null;
|
26718
26753
|
});
|
26719
|
-
|
26754
|
+
const resetSidePane = useSidepaneReset();
|
26755
|
+
useEffect34(() => {
|
26756
|
+
return () => {
|
26757
|
+
resetSidePane();
|
26758
|
+
};
|
26759
|
+
}, [resetSidePane]);
|
26760
|
+
if (!SidepaneComponent && !trackId) {
|
26720
26761
|
return null;
|
26721
26762
|
}
|
26722
26763
|
return /* @__PURE__ */ React128.createElement(
|
@@ -26794,7 +26835,7 @@ var FullPageProgress_default = FullPageProgress;
|
|
26794
26835
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
26795
26836
|
init_define_process_env();
|
26796
26837
|
import React131 from "react";
|
26797
|
-
import { useMedia as
|
26838
|
+
import { useMedia as useMedia24 } from "react-use";
|
26798
26839
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
|
26799
26840
|
import { useRecordingStreaming as useRecordingStreaming10 } from "@100mslive/react-sdk";
|
26800
26841
|
import { GoLiveIcon } from "@100mslive/react-icons";
|
@@ -26810,7 +26851,7 @@ var PreviewForm = ({
|
|
26810
26851
|
const formSubmit = (e) => {
|
26811
26852
|
e.preventDefault();
|
26812
26853
|
};
|
26813
|
-
const isMobile =
|
26854
|
+
const isMobile = useMedia24(config.media.md);
|
26814
26855
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
|
26815
26856
|
const layout = useRoomLayout();
|
26816
26857
|
const { join_form: joinForm = {} } = layout?.screens?.preview?.default?.elements || {};
|
@@ -26869,9 +26910,9 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
26869
26910
|
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
26870
26911
|
};
|
26871
26912
|
var useLocalTileAspectRatio = () => {
|
26872
|
-
const localPeer =
|
26873
|
-
const videoTrack =
|
26874
|
-
const isMobile =
|
26913
|
+
const localPeer = useHMSStore72(selectLocalPeer7);
|
26914
|
+
const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer?.videoTrack));
|
26915
|
+
const isMobile = useMedia25(config.media.md);
|
26875
26916
|
let aspectRatio = 0;
|
26876
26917
|
if (videoTrack?.width && videoTrack?.height) {
|
26877
26918
|
aspectRatio = videoTrack.width / videoTrack.height;
|
@@ -26896,7 +26937,7 @@ var PreviewJoin = ({
|
|
26896
26937
|
const [previewError, setPreviewError] = useState56(false);
|
26897
26938
|
const { endpoints } = useHMSPrebuiltContext();
|
26898
26939
|
const { peerCount } = useParticipants2();
|
26899
|
-
const loadingEffects =
|
26940
|
+
const loadingEffects = useHMSStore72(selectAppData9(APP_DATA.loadingEffects));
|
26900
26941
|
const { enableJoin, preview, join } = usePreviewJoin({
|
26901
26942
|
name,
|
26902
26943
|
token: authToken,
|
@@ -26914,7 +26955,7 @@ var PreviewJoin = ({
|
|
26914
26955
|
},
|
26915
26956
|
asRole
|
26916
26957
|
});
|
26917
|
-
const roomState =
|
26958
|
+
const roomState = useHMSStore72(selectRoomState5);
|
26918
26959
|
const savePreferenceAndJoin = useCallback32(() => {
|
26919
26960
|
setPreviewPreference({
|
26920
26961
|
name
|
@@ -26924,7 +26965,7 @@ var PreviewJoin = ({
|
|
26924
26965
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
26925
26966
|
const { preview_header: previewHeader = {}, virtual_background } = elements || {};
|
26926
26967
|
const aspectRatio = useLocalTileAspectRatio();
|
26927
|
-
|
26968
|
+
useEffect35(() => {
|
26928
26969
|
if (authToken) {
|
26929
26970
|
if (skipPreview) {
|
26930
26971
|
savePreferenceAndJoin();
|
@@ -26933,7 +26974,7 @@ var PreviewJoin = ({
|
|
26933
26974
|
}
|
26934
26975
|
}
|
26935
26976
|
}, [authToken, skipPreview]);
|
26936
|
-
|
26977
|
+
useEffect35(() => {
|
26937
26978
|
if (initialName) {
|
26938
26979
|
setName(initialName);
|
26939
26980
|
}
|
@@ -26980,12 +27021,12 @@ var Container4 = styled("div", {
|
|
26980
27021
|
px: "$10"
|
26981
27022
|
});
|
26982
27023
|
var PreviewTile = ({ name, error }) => {
|
26983
|
-
const localPeer =
|
27024
|
+
const localPeer = useHMSStore72(selectLocalPeer7);
|
26984
27025
|
const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
|
26985
|
-
const isVideoOn =
|
27026
|
+
const isVideoOn = useHMSStore72(selectIsLocalVideoEnabled7);
|
26986
27027
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26987
27028
|
const trackSelector = selectVideoTrackByID5(localPeer?.videoTrack);
|
26988
|
-
const track =
|
27029
|
+
const track = useHMSStore72(trackSelector);
|
26989
27030
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
26990
27031
|
const aspectRatio = useLocalTileAspectRatio();
|
26991
27032
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
|
@@ -27026,7 +27067,7 @@ var PreviewTile = ({ name, error }) => {
|
|
27026
27067
|
);
|
27027
27068
|
};
|
27028
27069
|
var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
27029
|
-
const isMobile =
|
27070
|
+
const isMobile = useMedia25(config.media.md);
|
27030
27071
|
return /* @__PURE__ */ React132.createElement(
|
27031
27072
|
Flex,
|
27032
27073
|
{
|
@@ -27049,7 +27090,7 @@ var PreviewJoin_default = PreviewJoin;
|
|
27049
27090
|
// src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
|
27050
27091
|
init_define_process_env();
|
27051
27092
|
import React133 from "react";
|
27052
|
-
import { useMedia as
|
27093
|
+
import { useMedia as useMedia26 } from "react-use";
|
27053
27094
|
var RequestPrompt = ({
|
27054
27095
|
open = true,
|
27055
27096
|
onOpenChange,
|
@@ -27059,7 +27100,7 @@ var RequestPrompt = ({
|
|
27059
27100
|
onAction,
|
27060
27101
|
disableActions = false
|
27061
27102
|
}) => {
|
27062
|
-
const isMobile =
|
27103
|
+
const isMobile = useMedia26(config.media.md);
|
27063
27104
|
if (isMobile) {
|
27064
27105
|
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
27106
|
}
|
@@ -27075,14 +27116,14 @@ var RequestActions = ({
|
|
27075
27116
|
var RoleChangeRequestModal = () => {
|
27076
27117
|
const hmsActions = useHMSActions44();
|
27077
27118
|
const { updateMetaData } = useMyMetadata();
|
27078
|
-
const isPreview =
|
27079
|
-
const currentRole =
|
27080
|
-
const roleChangeRequest =
|
27081
|
-
const name =
|
27119
|
+
const isPreview = useHMSStore73(selectIsInPreview);
|
27120
|
+
const currentRole = useHMSStore73(selectLocalPeerRoleName4);
|
27121
|
+
const roleChangeRequest = useHMSStore73(selectRoleChangeRequest);
|
27122
|
+
const name = useHMSStore73(selectLocalPeerName4);
|
27082
27123
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
27083
27124
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
27084
27125
|
const { virtual_background } = elements || {};
|
27085
|
-
|
27126
|
+
useEffect36(() => {
|
27086
27127
|
if (!roleChangeRequest?.role) {
|
27087
27128
|
return;
|
27088
27129
|
}
|
@@ -27145,40 +27186,40 @@ var RoleChangeRequestModal = () => {
|
|
27145
27186
|
|
27146
27187
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
27147
27188
|
init_define_process_env();
|
27148
|
-
import React153, { Suspense, useEffect as
|
27189
|
+
import React153, { Suspense, useEffect as useEffect50 } from "react";
|
27149
27190
|
import { match as match12 } from "ts-pattern";
|
27150
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions46, useHMSStore as
|
27191
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions46, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
|
27151
27192
|
|
27152
27193
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
27153
27194
|
init_define_process_env();
|
27154
|
-
import React148, { useEffect as
|
27195
|
+
import React148, { useEffect as useEffect45, useMemo as useMemo19, useState as useState64 } from "react";
|
27155
27196
|
import {
|
27156
27197
|
selectLocalPeerID as selectLocalPeerID14,
|
27157
27198
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
27158
27199
|
selectPeers as selectPeers3,
|
27159
27200
|
selectPeerScreenSharing as selectPeerScreenSharing2,
|
27160
27201
|
selectWhiteboard as selectWhiteboard2,
|
27161
|
-
useHMSStore as
|
27202
|
+
useHMSStore as useHMSStore81,
|
27162
27203
|
useHMSVanillaStore as useHMSVanillaStore12
|
27163
27204
|
} from "@100mslive/react-sdk";
|
27164
27205
|
|
27165
27206
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27166
27207
|
init_define_process_env();
|
27167
|
-
import React139, { useEffect as
|
27168
|
-
import { useMedia as
|
27169
|
-
import { selectLocalPeer as selectLocalPeer9, useHMSStore as
|
27208
|
+
import React139, { useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
|
27209
|
+
import { useMedia as useMedia29 } from "react-use";
|
27210
|
+
import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
27170
27211
|
|
27171
27212
|
// src/Prebuilt/components/InsetTile.tsx
|
27172
27213
|
init_define_process_env();
|
27173
|
-
import React136, { useEffect as
|
27214
|
+
import React136, { useEffect as useEffect37, useRef as useRef24 } from "react";
|
27174
27215
|
import Draggable from "react-draggable";
|
27175
|
-
import { useMedia as
|
27216
|
+
import { useMedia as useMedia27 } from "react-use";
|
27176
27217
|
import {
|
27177
27218
|
selectIsAllowedToPublish as selectIsAllowedToPublish2,
|
27178
27219
|
selectLocalPeer as selectLocalPeer8,
|
27179
27220
|
selectPeerByID as selectPeerByID3,
|
27180
27221
|
selectVideoTrackByID as selectVideoTrackByID6,
|
27181
|
-
useHMSStore as
|
27222
|
+
useHMSStore as useHMSStore74
|
27182
27223
|
} from "@100mslive/react-sdk";
|
27183
27224
|
import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
|
27184
27225
|
|
@@ -27216,13 +27257,13 @@ var insetMaxWidthPx = 240;
|
|
27216
27257
|
var defaultMobileAspectRatio = 9 / 16;
|
27217
27258
|
var desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
27218
27259
|
var InsetTile = ({ peerId }) => {
|
27219
|
-
const isMobile =
|
27220
|
-
const isLandscape =
|
27260
|
+
const isMobile = useMedia27(config.media.md);
|
27261
|
+
const isLandscape = useMedia27(config.media.ls);
|
27221
27262
|
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
|
27222
|
-
const peer =
|
27263
|
+
const peer = useHMSStore74(selector);
|
27223
27264
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
27224
|
-
const videoTrack =
|
27225
|
-
const isAllowedToPublish =
|
27265
|
+
const videoTrack = useHMSStore74(selectVideoTrackByID6(peer?.videoTrack));
|
27266
|
+
const isAllowedToPublish = useHMSStore74(selectIsAllowedToPublish2);
|
27226
27267
|
const videoTileProps = useVideoTileContext();
|
27227
27268
|
let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
|
27228
27269
|
if (videoTrack?.width && videoTrack?.height && !isMobile) {
|
@@ -27235,7 +27276,7 @@ var InsetTile = ({ peerId }) => {
|
|
27235
27276
|
height = width / aspectRatio;
|
27236
27277
|
}
|
27237
27278
|
const nodeRef = useRef24(null);
|
27238
|
-
|
27279
|
+
useEffect37(() => {
|
27239
27280
|
const node = nodeRef.current;
|
27240
27281
|
if (!node || !window.ResizeObserver) {
|
27241
27282
|
return;
|
@@ -27296,7 +27337,7 @@ var InsetTile = ({ peerId }) => {
|
|
27296
27337
|
|
27297
27338
|
// src/Prebuilt/components/Pagination.tsx
|
27298
27339
|
init_define_process_env();
|
27299
|
-
import React137, { useEffect as
|
27340
|
+
import React137, { useEffect as useEffect38 } from "react";
|
27300
27341
|
import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
|
27301
27342
|
var Pagination = ({
|
27302
27343
|
page,
|
@@ -27313,7 +27354,7 @@ var Pagination = ({
|
|
27313
27354
|
e.stopPropagation();
|
27314
27355
|
onPageChange(Math.max(page - 1, 0));
|
27315
27356
|
};
|
27316
|
-
|
27357
|
+
useEffect38(() => {
|
27317
27358
|
if (page >= numPages) {
|
27318
27359
|
onPageChange(Math.max(0, numPages - 1));
|
27319
27360
|
}
|
@@ -27377,8 +27418,8 @@ var Grid = React138.forwardRef(
|
|
27377
27418
|
|
27378
27419
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
27379
27420
|
init_define_process_env();
|
27380
|
-
import { useEffect as
|
27381
|
-
import { useMeasure as useMeasure5, useMedia as
|
27421
|
+
import { useEffect as useEffect39, useMemo as useMemo14, useState as useState57 } from "react";
|
27422
|
+
import { useMeasure as useMeasure5, useMedia as useMedia28 } from "react-use";
|
27382
27423
|
import {
|
27383
27424
|
getPeersWithTiles,
|
27384
27425
|
selectTracksMap as selectTracksMap4,
|
@@ -27414,9 +27455,9 @@ var useTileLayout = ({
|
|
27414
27455
|
}) => {
|
27415
27456
|
const vanillaStore = useHMSVanillaStore11();
|
27416
27457
|
const [ref, { width, height }] = useMeasure5();
|
27417
|
-
const isMobile =
|
27458
|
+
const isMobile = useMedia28(config.media.lg);
|
27418
27459
|
const [pagesWithTiles, setPagesWithTiles] = useState57([]);
|
27419
|
-
|
27460
|
+
useEffect39(() => {
|
27420
27461
|
if (width === 0 || height === 0) {
|
27421
27462
|
return;
|
27422
27463
|
}
|
@@ -27482,8 +27523,8 @@ var useTileLayout = ({
|
|
27482
27523
|
|
27483
27524
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27484
27525
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
27485
|
-
const localPeer =
|
27486
|
-
const isMobile =
|
27526
|
+
const localPeer = useHMSStore75(selectLocalPeer9);
|
27527
|
+
const isMobile = useMedia29(config.media.md);
|
27487
27528
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27488
27529
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
27489
27530
|
let pageList = usePagesWithTiles({
|
@@ -27507,7 +27548,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
27507
27548
|
});
|
27508
27549
|
const [page, setPage] = useState58(0);
|
27509
27550
|
const pageSize = pagesWithTiles[0]?.length || 0;
|
27510
|
-
|
27551
|
+
useEffect40(() => {
|
27511
27552
|
if (pageSize > 0) {
|
27512
27553
|
onPageSize?.(pageSize);
|
27513
27554
|
}
|
@@ -27527,15 +27568,15 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
27527
27568
|
|
27528
27569
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
27529
27570
|
init_define_process_env();
|
27530
|
-
import React142, { useEffect as
|
27531
|
-
import { useMedia as
|
27532
|
-
import { selectLocalPeer as selectLocalPeer10, useHMSStore as
|
27571
|
+
import React142, { useEffect as useEffect42, useState as useState60 } from "react";
|
27572
|
+
import { useMedia as useMedia31 } from "react-use";
|
27573
|
+
import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
27533
27574
|
|
27534
27575
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
27535
27576
|
init_define_process_env();
|
27536
|
-
import React141, { useEffect as
|
27537
|
-
import { useMedia as
|
27538
|
-
import { selectAppData as
|
27577
|
+
import React141, { useEffect as useEffect41, useRef as useRef25, useState as useState59 } from "react";
|
27578
|
+
import { useMedia as useMedia30 } from "react-use";
|
27579
|
+
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
|
27539
27580
|
|
27540
27581
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
27541
27582
|
init_define_process_env();
|
@@ -27618,13 +27659,13 @@ var ProminenceLayout = {
|
|
27618
27659
|
|
27619
27660
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
27620
27661
|
var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
27621
|
-
const isMobile =
|
27662
|
+
const isMobile = useMedia30(config.media.md);
|
27622
27663
|
const maxTileCount = isMobile ? 2 : 4;
|
27623
27664
|
const [page, setPage] = useState59(0);
|
27624
|
-
const pinnedTrackId =
|
27625
|
-
const spotlightPeerId =
|
27626
|
-
const activeScreensharePeerId =
|
27627
|
-
const pinnedPeer =
|
27665
|
+
const pinnedTrackId = useHMSStore76(selectAppData10(APP_DATA.pinnedTrackId));
|
27666
|
+
const spotlightPeerId = useHMSStore76(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
27667
|
+
const activeScreensharePeerId = useHMSStore76(selectAppData10(APP_DATA.activeScreensharePeerId));
|
27668
|
+
const pinnedPeer = useHMSStore76(selectTrackByID4(pinnedTrackId))?.peerId;
|
27628
27669
|
const pageChangedAfterPinning = useRef25(false);
|
27629
27670
|
const pagesWithTiles = usePagesWithTiles({
|
27630
27671
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
@@ -27646,17 +27687,17 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
27646
27687
|
maxTileCount
|
27647
27688
|
});
|
27648
27689
|
const pageSize = pagesWithTiles[0]?.length || 0;
|
27649
|
-
|
27690
|
+
useEffect41(() => {
|
27650
27691
|
if (peers.length > 0 && !pagesWithTiles[page]?.length) {
|
27651
27692
|
setPage(Math.max(0, page - 1));
|
27652
27693
|
}
|
27653
27694
|
}, [peers, page, pagesWithTiles]);
|
27654
|
-
|
27695
|
+
useEffect41(() => {
|
27655
27696
|
if (pageSize > 0) {
|
27656
27697
|
onPageSize?.(pageSize);
|
27657
27698
|
}
|
27658
27699
|
}, [pageSize, onPageSize]);
|
27659
|
-
|
27700
|
+
useEffect41(() => {
|
27660
27701
|
if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
|
27661
27702
|
setPage(0);
|
27662
27703
|
pageChangedAfterPinning.current = true;
|
@@ -27722,9 +27763,9 @@ function RoleProminence({
|
|
27722
27763
|
edgeToEdge
|
27723
27764
|
}) {
|
27724
27765
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
27725
|
-
const localPeer =
|
27766
|
+
const localPeer = useHMSStore77(selectLocalPeer10);
|
27726
27767
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
27727
|
-
const isMobile =
|
27768
|
+
const isMobile = useMedia31(config.media.md);
|
27728
27769
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27729
27770
|
maxTileCount = isMobile ? 4 : maxTileCount;
|
27730
27771
|
const pageList = usePagesWithTiles({
|
@@ -27737,7 +27778,7 @@ function RoleProminence({
|
|
27737
27778
|
});
|
27738
27779
|
const [page, setPage] = useState60(0);
|
27739
27780
|
const pageSize = pagesWithTiles[0]?.length || 0;
|
27740
|
-
|
27781
|
+
useEffect42(() => {
|
27741
27782
|
if (pageSize > 0) {
|
27742
27783
|
onPageSize?.(pageSize);
|
27743
27784
|
}
|
@@ -27765,28 +27806,28 @@ function RoleProminence({
|
|
27765
27806
|
|
27766
27807
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
27767
27808
|
init_define_process_env();
|
27768
|
-
import React146, { useEffect as
|
27769
|
-
import { useMedia as
|
27770
|
-
import { selectPeersScreenSharing, useHMSStore as
|
27809
|
+
import React146, { useEffect as useEffect43, useMemo as useMemo17, useState as useState63 } from "react";
|
27810
|
+
import { useMedia as useMedia33 } from "react-use";
|
27811
|
+
import { selectPeersScreenSharing, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
|
27771
27812
|
|
27772
27813
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
27773
27814
|
init_define_process_env();
|
27774
27815
|
import React145, { useRef as useRef26, useState as useState62 } from "react";
|
27775
|
-
import { useFullscreen as useFullscreen2, useMedia as
|
27816
|
+
import { useFullscreen as useFullscreen2, useMedia as useMedia32 } from "react-use";
|
27776
27817
|
import screenfull2 from "screenfull";
|
27777
27818
|
import {
|
27778
27819
|
selectLocalPeerID as selectLocalPeerID13,
|
27779
27820
|
selectPeerByID as selectPeerByID4,
|
27780
27821
|
selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
|
27781
27822
|
selectScreenShareByPeerID as selectScreenShareByPeerID2,
|
27782
|
-
useHMSStore as
|
27823
|
+
useHMSStore as useHMSStore78
|
27783
27824
|
} from "@100mslive/react-sdk";
|
27784
27825
|
import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
|
27785
27826
|
|
27786
27827
|
// src/Prebuilt/components/LayoutModeSelector.tsx
|
27787
27828
|
init_define_process_env();
|
27788
27829
|
import React143, { useCallback as useCallback33, useState as useState61 } from "react";
|
27789
|
-
import { CheckIcon as
|
27830
|
+
import { CheckIcon as CheckIcon7, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
|
27790
27831
|
var LayoutModeSelector = () => {
|
27791
27832
|
const [open, setOpen] = useState61(false);
|
27792
27833
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
@@ -27881,7 +27922,7 @@ var LayoutModeSelector = () => {
|
|
27881
27922
|
LayoutModeIconMapping[value]
|
27882
27923
|
),
|
27883
27924
|
/* @__PURE__ */ React143.createElement(Text, { variant: "caption", css: { lineHeight: "$sm" } }, value),
|
27884
|
-
value === layoutMode ? /* @__PURE__ */ React143.createElement(
|
27925
|
+
value === layoutMode ? /* @__PURE__ */ React143.createElement(CheckIcon7, { width: 20, height: 20, style: { marginLeft: "auto" } }) : null
|
27885
27926
|
);
|
27886
27927
|
})
|
27887
27928
|
));
|
@@ -27891,7 +27932,7 @@ var LayoutModeSelector = () => {
|
|
27891
27932
|
init_define_process_env();
|
27892
27933
|
import React144 from "react";
|
27893
27934
|
import { useHMSActions as useHMSActions45 } from "@100mslive/react-sdk";
|
27894
|
-
import { CrossIcon as
|
27935
|
+
import { CrossIcon as CrossIcon25, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
27895
27936
|
var ScreenshareDisplay = () => {
|
27896
27937
|
const hmsActions = useHMSActions45();
|
27897
27938
|
return /* @__PURE__ */ React144.createElement(
|
@@ -27918,7 +27959,7 @@ var ScreenshareDisplay = () => {
|
|
27918
27959
|
},
|
27919
27960
|
"data-testid": "stop_screen_share_btn"
|
27920
27961
|
},
|
27921
|
-
/* @__PURE__ */ React144.createElement(
|
27962
|
+
/* @__PURE__ */ React144.createElement(CrossIcon25, { width: 18, height: 18 }),
|
27922
27963
|
"\xA0 Stop screen share"
|
27923
27964
|
)
|
27924
27965
|
);
|
@@ -27934,13 +27975,13 @@ var labelStyles = {
|
|
27934
27975
|
flexShrink: 0
|
27935
27976
|
};
|
27936
27977
|
var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
27937
|
-
const isLocal =
|
27938
|
-
const track =
|
27978
|
+
const isLocal = useHMSStore78(selectLocalPeerID13) === peerId;
|
27979
|
+
const track = useHMSStore78(selectScreenShareByPeerID2(peerId));
|
27939
27980
|
const { theme: theme2 } = useTheme();
|
27940
|
-
const peer =
|
27981
|
+
const peer = useHMSStore78(selectPeerByID4(peerId));
|
27941
27982
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
27942
27983
|
const [isMouseHovered, setIsMouseHovered] = useState62(false);
|
27943
|
-
const isMobile =
|
27984
|
+
const isMobile = useMedia32(config.media.md);
|
27944
27985
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
27945
27986
|
const fullscreenRef = useRef26(null);
|
27946
27987
|
const [fullscreen, setFullscreen] = useState62(false);
|
@@ -27948,7 +27989,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
27948
27989
|
onClose: () => setFullscreen(false)
|
27949
27990
|
});
|
27950
27991
|
const isFullScreenSupported = screenfull2.isEnabled;
|
27951
|
-
const audioTrack =
|
27992
|
+
const audioTrack = useHMSStore78(selectScreenShareAudioByPeerID2(peer?.id));
|
27952
27993
|
if (isLocal && track?.displaySurface && !["browser", "window", "application"].includes(track.displaySurface)) {
|
27953
27994
|
return /* @__PURE__ */ React145.createElement(ScreenshareDisplay, null);
|
27954
27995
|
}
|
@@ -28026,12 +28067,12 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
28026
28067
|
|
28027
28068
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
28028
28069
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
28029
|
-
const peersSharing =
|
28070
|
+
const peersSharing = useHMSStore79(selectPeersScreenSharing);
|
28030
28071
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28031
28072
|
const [page, setPage] = useState63(0);
|
28032
28073
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28033
28074
|
const activeSharePeer = peersSharing[page];
|
28034
|
-
const isMobile =
|
28075
|
+
const isMobile = useMedia33(config.media.md);
|
28035
28076
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28036
28077
|
const secondaryPeers = useMemo17(() => {
|
28037
28078
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -28042,7 +28083,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28042
28083
|
}
|
28043
28084
|
return peers.filter((p) => p.id !== activeSharePeer?.id);
|
28044
28085
|
}, [activeSharePeer, peers, isMobile, layoutMode]);
|
28045
|
-
|
28086
|
+
useEffect43(() => {
|
28046
28087
|
if (isMobile) {
|
28047
28088
|
setLayoutMode(LayoutMode.GALLERY);
|
28048
28089
|
return;
|
@@ -28055,7 +28096,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28055
28096
|
setLayoutMode(LayoutMode.GALLERY);
|
28056
28097
|
};
|
28057
28098
|
}, [isMobile]);
|
28058
|
-
|
28099
|
+
useEffect43(() => {
|
28059
28100
|
setActiveScreenSharePeer(isMobile ? "" : activeSharePeer?.id);
|
28060
28101
|
return () => {
|
28061
28102
|
setActiveScreenSharePeer("");
|
@@ -28075,12 +28116,12 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28075
28116
|
|
28076
28117
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
28077
28118
|
init_define_process_env();
|
28078
|
-
import React147, { useEffect as
|
28079
|
-
import { useMedia as
|
28119
|
+
import React147, { useEffect as useEffect44, useMemo as useMemo18 } from "react";
|
28120
|
+
import { useMedia as useMedia34 } from "react-use";
|
28080
28121
|
import { Whiteboard } from "@100mslive/hms-whiteboard";
|
28081
|
-
import { selectPeerByCondition, selectWhiteboard, useHMSStore as
|
28122
|
+
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28082
28123
|
var WhiteboardEmbed = () => {
|
28083
|
-
const isMobile =
|
28124
|
+
const isMobile = useMedia34(config.media.md);
|
28084
28125
|
const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
|
28085
28126
|
return /* @__PURE__ */ React147.createElement(
|
28086
28127
|
Box,
|
@@ -28099,10 +28140,10 @@ var WhiteboardEmbed = () => {
|
|
28099
28140
|
);
|
28100
28141
|
};
|
28101
28142
|
var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
28102
|
-
const whiteboard =
|
28103
|
-
const whiteboardOwner =
|
28143
|
+
const whiteboard = useHMSStore80(selectWhiteboard);
|
28144
|
+
const whiteboardOwner = useHMSStore80(selectPeerByCondition((peer) => peer.customerUserId === whiteboard?.owner));
|
28104
28145
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28105
|
-
const isMobile =
|
28146
|
+
const isMobile = useMedia34(config.media.md);
|
28106
28147
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28107
28148
|
const secondaryPeers = useMemo18(() => {
|
28108
28149
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -28113,7 +28154,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28113
28154
|
}
|
28114
28155
|
return peers.filter((p) => p.id !== whiteboardOwner?.id);
|
28115
28156
|
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
28116
|
-
|
28157
|
+
useEffect44(() => {
|
28117
28158
|
if (isMobile) {
|
28118
28159
|
setLayoutMode(LayoutMode.GALLERY);
|
28119
28160
|
return;
|
@@ -28243,12 +28284,12 @@ var GridLayout = ({
|
|
28243
28284
|
edge_to_edge = false,
|
28244
28285
|
hide_metadata_on_tile = false
|
28245
28286
|
}) => {
|
28246
|
-
const peerSharing =
|
28247
|
-
const whiteboard =
|
28287
|
+
const peerSharing = useHMSStore81(selectPeerScreenSharing2);
|
28288
|
+
const whiteboard = useHMSStore81(selectWhiteboard2);
|
28248
28289
|
const pinnedTrack = usePinnedTrack();
|
28249
|
-
const peers =
|
28250
|
-
const localPeerRole =
|
28251
|
-
const localPeerID =
|
28290
|
+
const peers = useHMSStore81(selectPeers3);
|
28291
|
+
const localPeerRole = useHMSStore81(selectLocalPeerRoleName5);
|
28292
|
+
const localPeerID = useHMSStore81(selectLocalPeerID14);
|
28252
28293
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28253
28294
|
const isRoleProminence = prominentRoles.length && peers.some(
|
28254
28295
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
@@ -28289,7 +28330,7 @@ var GridLayout = ({
|
|
28289
28330
|
hideMetadataOnTile: hide_metadata_on_tile,
|
28290
28331
|
objectFit: video_object_fit
|
28291
28332
|
};
|
28292
|
-
|
28333
|
+
useEffect45(() => {
|
28293
28334
|
if (mainPage !== 0) {
|
28294
28335
|
return;
|
28295
28336
|
}
|
@@ -28346,20 +28387,20 @@ var GridLayout = ({
|
|
28346
28387
|
|
28347
28388
|
// src/Prebuilt/layouts/EmbedView.jsx
|
28348
28389
|
init_define_process_env();
|
28349
|
-
import React149, { useEffect as
|
28350
|
-
import { selectAppData as
|
28390
|
+
import React149, { useEffect as useEffect46, useMemo as useMemo20 } from "react";
|
28391
|
+
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore82 } from "@100mslive/react-sdk";
|
28351
28392
|
var EmbedView = () => {
|
28352
28393
|
return /* @__PURE__ */ React149.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React149.createElement(EmbedComponent, null));
|
28353
28394
|
};
|
28354
28395
|
var EmbedScreenShareView = ({ children }) => {
|
28355
|
-
const peers =
|
28356
|
-
const peerPresenting =
|
28396
|
+
const peers = useHMSStore82(selectPeers4);
|
28397
|
+
const peerPresenting = useHMSStore82(selectPeerScreenSharing3);
|
28357
28398
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28358
28399
|
const smallTilePeers = useMemo20(() => {
|
28359
28400
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== peerPresenting?.id);
|
28360
28401
|
return smallTilePeers2;
|
28361
28402
|
}, [peers, peerPresenting]);
|
28362
|
-
|
28403
|
+
useEffect46(() => {
|
28363
28404
|
setActiveScreenSharePeer(peerPresenting?.id);
|
28364
28405
|
return () => {
|
28365
28406
|
setActiveScreenSharePeer("");
|
@@ -28368,10 +28409,10 @@ var EmbedScreenShareView = ({ children }) => {
|
|
28368
28409
|
return /* @__PURE__ */ React149.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React149.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React149.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28369
28410
|
};
|
28370
28411
|
var EmbedComponent = () => {
|
28371
|
-
const embedConfig =
|
28412
|
+
const embedConfig = useHMSStore82(selectAppData11(APP_DATA.embedConfig));
|
28372
28413
|
const resetConfig = useResetEmbedConfig();
|
28373
28414
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
28374
|
-
|
28415
|
+
useEffect46(() => {
|
28375
28416
|
(async () => {
|
28376
28417
|
if (embedConfig && !isEmbedShareInProgress) {
|
28377
28418
|
try {
|
@@ -28419,18 +28460,18 @@ var EmbedComponent = () => {
|
|
28419
28460
|
|
28420
28461
|
// src/Prebuilt/layouts/PDFView.jsx
|
28421
28462
|
init_define_process_env();
|
28422
|
-
import React150, { useEffect as
|
28463
|
+
import React150, { useEffect as useEffect47 } from "react";
|
28423
28464
|
import { usePDFShare } from "@100mslive/react-sdk";
|
28424
28465
|
var PDFView = () => {
|
28425
28466
|
const pdfConfig = usePDFConfig();
|
28426
28467
|
const resetConfig = useResetPDFConfig();
|
28427
28468
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
28428
|
-
|
28469
|
+
useEffect47(() => {
|
28429
28470
|
return () => {
|
28430
28471
|
resetConfig();
|
28431
28472
|
};
|
28432
28473
|
}, []);
|
28433
|
-
|
28474
|
+
useEffect47(() => {
|
28434
28475
|
(async () => {
|
28435
28476
|
try {
|
28436
28477
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -28529,9 +28570,9 @@ var WaitingView = React151.memo(() => {
|
|
28529
28570
|
|
28530
28571
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
28531
28572
|
init_define_process_env();
|
28532
|
-
import React152, { useEffect as
|
28533
|
-
import { useMedia as
|
28534
|
-
import { selectPeerNameByID as selectPeerNameByID5, useHMSStore as
|
28573
|
+
import React152, { useEffect as useEffect48, useState as useState65 } from "react";
|
28574
|
+
import { useMedia as useMedia35 } from "react-use";
|
28575
|
+
import { selectPeerNameByID as selectPeerNameByID5, useHMSStore as useHMSStore83, useTranscript } from "@100mslive/react-sdk";
|
28535
28576
|
var SimpleQueue = class {
|
28536
28577
|
constructor(capacity = 3, MAX_STORAGE_TIME = 5e3) {
|
28537
28578
|
this.capacity = capacity;
|
@@ -28661,7 +28702,7 @@ var CaptionMaintainerQueue = class {
|
|
28661
28702
|
}
|
28662
28703
|
};
|
28663
28704
|
var TranscriptView = ({ peer_id, data: data3 }) => {
|
28664
|
-
const peerName =
|
28705
|
+
const peerName = useHMSStore83(selectPeerNameByID5(peer_id)) || "Participant";
|
28665
28706
|
data3 = data3.trim();
|
28666
28707
|
if (!data3)
|
28667
28708
|
return null;
|
@@ -28679,13 +28720,13 @@ var TranscriptView = ({ peer_id, data: data3 }) => {
|
|
28679
28720
|
};
|
28680
28721
|
var CaptionsViewer = () => {
|
28681
28722
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
28682
|
-
const isMobile =
|
28723
|
+
const isMobile = useMedia35(config.media.md);
|
28683
28724
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
28684
28725
|
const showCaptionAtTop = elements?.chat?.is_overlay && isChatOpen && isMobile;
|
28685
28726
|
const [captionQueue] = useState65(new CaptionMaintainerQueue());
|
28686
28727
|
const [currentData, setCurrentData] = useState65([]);
|
28687
28728
|
const isCaptionEnabled = useIsCaptionEnabled();
|
28688
|
-
|
28729
|
+
useEffect48(() => {
|
28689
28730
|
const timeInterval = setInterval(() => {
|
28690
28731
|
if (!captionQueue) {
|
28691
28732
|
return;
|
@@ -28739,12 +28780,12 @@ var CaptionsViewer = () => {
|
|
28739
28780
|
|
28740
28781
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
28741
28782
|
init_define_process_env();
|
28742
|
-
import { useEffect as
|
28743
|
-
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as
|
28783
|
+
import { useEffect as useEffect49 } from "react";
|
28784
|
+
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore84, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
28744
28785
|
var useCloseScreenshareWhiteboard = () => {
|
28745
|
-
const peerSharing =
|
28786
|
+
const peerSharing = useHMSStore84(selectPeerScreenSharing4);
|
28746
28787
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
28747
|
-
|
28788
|
+
useEffect49(() => {
|
28748
28789
|
if (isWhiteboardOwner && peerSharing) {
|
28749
28790
|
toggleWhiteboard?.();
|
28750
28791
|
}
|
@@ -28752,14 +28793,14 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28752
28793
|
};
|
28753
28794
|
|
28754
28795
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28755
|
-
var HLSView = React153.lazy(() => import("./HLSView-
|
28796
|
+
var HLSView = React153.lazy(() => import("./HLSView-524T6OTY.js"));
|
28756
28797
|
var VideoStreamingSection = ({
|
28757
28798
|
screenType,
|
28758
28799
|
elements,
|
28759
28800
|
hideControls = false
|
28760
28801
|
}) => {
|
28761
|
-
const localPeerRole =
|
28762
|
-
const isConnected =
|
28802
|
+
const localPeerRole = useHMSStore85(selectLocalPeerRoleName6);
|
28803
|
+
const isConnected = useHMSStore85(selectIsConnectedToRoom9);
|
28763
28804
|
const hmsActions = useHMSActions46();
|
28764
28805
|
const waitingViewerRole = useWaitingViewerRole();
|
28765
28806
|
const urlToIframe = useUrlToEmbed();
|
@@ -28767,7 +28808,7 @@ var VideoStreamingSection = ({
|
|
28767
28808
|
const isMobileHLSStream = useMobileHLSStream();
|
28768
28809
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
28769
28810
|
useCloseScreenshareWhiteboard();
|
28770
|
-
|
28811
|
+
useEffect50(() => {
|
28771
28812
|
if (!isConnected) {
|
28772
28813
|
return;
|
28773
28814
|
}
|
@@ -28840,17 +28881,17 @@ init_define_process_env();
|
|
28840
28881
|
// src/Prebuilt/components/Header/Header.tsx
|
28841
28882
|
init_define_process_env();
|
28842
28883
|
import React156 from "react";
|
28843
|
-
import { useMedia as
|
28844
|
-
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as
|
28884
|
+
import { useMedia as useMedia37 } from "react-use";
|
28885
|
+
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
|
28845
28886
|
|
28846
28887
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
28847
28888
|
init_define_process_env();
|
28848
28889
|
import React154 from "react";
|
28849
|
-
import { useMedia as
|
28890
|
+
import { useMedia as useMedia36 } from "react-use";
|
28850
28891
|
import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
|
28851
28892
|
var RoomDetailsHeader = () => {
|
28852
28893
|
const { title, description } = useRoomLayoutHeader();
|
28853
|
-
const isMobile =
|
28894
|
+
const isMobile = useMedia36(config.media.md);
|
28854
28895
|
const clipLength = 30;
|
28855
28896
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
28856
28897
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -28877,13 +28918,13 @@ import {
|
|
28877
28918
|
selectVideoTrackByID as selectVideoTrackByID7,
|
28878
28919
|
useDevices as useDevices3,
|
28879
28920
|
useHMSActions as useHMSActions47,
|
28880
|
-
useHMSStore as
|
28921
|
+
useHMSStore as useHMSStore86
|
28881
28922
|
} from "@100mslive/react-sdk";
|
28882
28923
|
import {
|
28883
28924
|
BluetoothIcon,
|
28884
28925
|
CameraFlipIcon as CameraFlipIcon2,
|
28885
|
-
CheckIcon as
|
28886
|
-
CrossIcon as
|
28926
|
+
CheckIcon as CheckIcon8,
|
28927
|
+
CrossIcon as CrossIcon26,
|
28887
28928
|
HeadphonesIcon,
|
28888
28929
|
SpeakerIcon as SpeakerIcon4
|
28889
28930
|
} from "@100mslive/react-icons";
|
@@ -28891,9 +28932,9 @@ var CamaraFlipActions = () => {
|
|
28891
28932
|
const actions = useHMSActions47();
|
28892
28933
|
const { allDevices } = useDevices3();
|
28893
28934
|
const { videoInput } = allDevices;
|
28894
|
-
const isVideoOn =
|
28895
|
-
const videoTrackId =
|
28896
|
-
const localVideoTrack =
|
28935
|
+
const isVideoOn = useHMSStore86(selectIsLocalVideoEnabled8);
|
28936
|
+
const videoTrackId = useHMSStore86(selectLocalVideoTrackID3);
|
28937
|
+
const localVideoTrack = useHMSStore86(selectVideoTrackByID7(videoTrackId));
|
28897
28938
|
if (!videoInput || !videoInput?.length || !localVideoTrack?.facingMode) {
|
28898
28939
|
return null;
|
28899
28940
|
}
|
@@ -28968,7 +29009,7 @@ var AudioActions = () => {
|
|
28968
29009
|
);
|
28969
29010
|
};
|
28970
29011
|
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(
|
29012
|
+
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
29013
|
Flex,
|
28973
29014
|
{
|
28974
29015
|
direction: "column",
|
@@ -29023,14 +29064,14 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React155.createElement(Re
|
|
29023
29064
|
icon,
|
29024
29065
|
label
|
29025
29066
|
),
|
29026
|
-
checked && /* @__PURE__ */ React155.createElement(
|
29067
|
+
checked && /* @__PURE__ */ React155.createElement(CheckIcon8, { width: 24, height: 24 })
|
29027
29068
|
);
|
29028
29069
|
};
|
29029
29070
|
|
29030
29071
|
// src/Prebuilt/components/Header/Header.tsx
|
29031
29072
|
var Header2 = () => {
|
29032
|
-
const roomState =
|
29033
|
-
const isMobile =
|
29073
|
+
const roomState = useHMSStore87(selectRoomState6);
|
29074
|
+
const isMobile = useMedia37(config.media.md);
|
29034
29075
|
if (roomState !== HMSRoomState6.Connected) {
|
29035
29076
|
return /* @__PURE__ */ React156.createElement(React156.Fragment, null);
|
29036
29077
|
}
|
@@ -29051,12 +29092,12 @@ var Header2 = () => {
|
|
29051
29092
|
|
29052
29093
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
29053
29094
|
init_define_process_env();
|
29054
|
-
import { useEffect as
|
29095
|
+
import { useEffect as useEffect51 } from "react";
|
29055
29096
|
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore13 } from "@100mslive/react-sdk";
|
29056
29097
|
var PreviousRoleInMetadata = () => {
|
29057
29098
|
const vanillaStore = useHMSVanillaStore13();
|
29058
29099
|
const { updateMetaData } = useMyMetadata();
|
29059
|
-
|
29100
|
+
useEffect51(() => {
|
29060
29101
|
let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
|
29061
29102
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
29062
29103
|
if (previousRole !== currentRole && currentRole) {
|
@@ -29074,11 +29115,11 @@ var ConferenceScreen = () => {
|
|
29074
29115
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
29075
29116
|
const screenProps = useRoomLayoutConferencingScreen();
|
29076
29117
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
29077
|
-
const roomState =
|
29078
|
-
const isConnectedToRoom =
|
29118
|
+
const roomState = useHMSStore88(selectRoomState7);
|
29119
|
+
const isConnectedToRoom = useHMSStore88(selectIsConnectedToRoom10);
|
29079
29120
|
const hmsActions = useHMSActions48();
|
29080
29121
|
const [hideControls, setHideControls] = useState66(false);
|
29081
|
-
const dropdownList =
|
29122
|
+
const dropdownList = useHMSStore88(selectAppData12(APP_DATA.dropdownList));
|
29082
29123
|
const authTokenInAppData = useAuthToken();
|
29083
29124
|
const headerRef = useRef27(null);
|
29084
29125
|
const footerRef = useRef27(null);
|
@@ -29095,7 +29136,7 @@ var ConferenceScreen = () => {
|
|
29095
29136
|
setHideControls((value) => !value);
|
29096
29137
|
}
|
29097
29138
|
};
|
29098
|
-
|
29139
|
+
useEffect52(() => {
|
29099
29140
|
let timeout;
|
29100
29141
|
dropdownListRef.current = dropdownList || [];
|
29101
29142
|
if (dropdownListRef.current && dropdownListRef.current.length === 0) {
|
@@ -29110,7 +29151,7 @@ var ConferenceScreen = () => {
|
|
29110
29151
|
clearTimeout(timeout);
|
29111
29152
|
};
|
29112
29153
|
}, [dropdownList, hideControls, isMobileDevice]);
|
29113
|
-
|
29154
|
+
useEffect52(() => {
|
29114
29155
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState7.Connecting && !autoRoomJoined.current) {
|
29115
29156
|
hmsActions.join({
|
29116
29157
|
userName: userName || uuid3(),
|
@@ -29125,7 +29166,7 @@ var ConferenceScreen = () => {
|
|
29125
29166
|
autoRoomJoined.current = true;
|
29126
29167
|
}
|
29127
29168
|
}, [authTokenInAppData, endpoints?.init, hmsActions, isConnectedToRoom, isPreviewScreenEnabled, roomState, userName]);
|
29128
|
-
|
29169
|
+
useEffect52(() => {
|
29129
29170
|
onJoinFunc?.();
|
29130
29171
|
return () => {
|
29131
29172
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
@@ -29306,12 +29347,12 @@ var ErrorBoundary = class extends Component {
|
|
29306
29347
|
|
29307
29348
|
// src/Prebuilt/components/init/Init.jsx
|
29308
29349
|
init_define_process_env();
|
29309
|
-
import React159, { useEffect as
|
29350
|
+
import React159, { useEffect as useEffect54 } from "react";
|
29310
29351
|
|
29311
29352
|
// src/Prebuilt/services/FeatureFlags.jsx
|
29312
29353
|
init_define_process_env();
|
29313
|
-
import { useEffect as
|
29314
|
-
import { selectRoomID, useHMSStore as
|
29354
|
+
import { useEffect as useEffect53 } from "react";
|
29355
|
+
import { selectRoomID, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
29315
29356
|
var FeatureFlags = class {
|
29316
29357
|
static enableTranscription = define_process_env_default.REACT_APP_ENABLE_TRANSCRIPTION === "true";
|
29317
29358
|
static enableStatsForNerds = define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true";
|
@@ -29336,8 +29377,8 @@ var FeatureFlags = class {
|
|
29336
29377
|
}
|
29337
29378
|
};
|
29338
29379
|
function FeatureFlagsInit() {
|
29339
|
-
const roomId =
|
29340
|
-
|
29380
|
+
const roomId = useHMSStore89(selectRoomID);
|
29381
|
+
useEffect53(() => {
|
29341
29382
|
if (roomId) {
|
29342
29383
|
FeatureFlags.init(roomId);
|
29343
29384
|
}
|
@@ -29348,10 +29389,10 @@ function FeatureFlagsInit() {
|
|
29348
29389
|
// src/Prebuilt/components/init/Init.jsx
|
29349
29390
|
var Init = () => {
|
29350
29391
|
const { toggleTheme } = useTheme();
|
29351
|
-
|
29392
|
+
useEffect54(() => {
|
29352
29393
|
window.toggleUiTheme = toggleTheme;
|
29353
29394
|
}, [toggleTheme]);
|
29354
|
-
|
29395
|
+
useEffect54(() => {
|
29355
29396
|
function resetHeight() {
|
29356
29397
|
document.body.style.height = `${window.visualViewport?.height || window.innerHeight}px`;
|
29357
29398
|
}
|
@@ -29366,9 +29407,9 @@ var Init = () => {
|
|
29366
29407
|
|
29367
29408
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
29368
29409
|
init_define_process_env();
|
29369
|
-
import { useEffect as
|
29410
|
+
import { useEffect as useEffect55 } from "react";
|
29370
29411
|
import {
|
29371
|
-
selectAppData as
|
29412
|
+
selectAppData as selectAppData13,
|
29372
29413
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
29373
29414
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
29374
29415
|
useHMSActions as useHMSActions49,
|
@@ -29391,12 +29432,12 @@ var KeyboardInputManager = class {
|
|
29391
29432
|
await this.#actions.setLocalVideoEnabled(!enabled);
|
29392
29433
|
};
|
29393
29434
|
#hideSidepane = () => {
|
29394
|
-
if (this.#store.getState(
|
29435
|
+
if (this.#store.getState(selectAppData13(APP_DATA.sidePane))) {
|
29395
29436
|
this.#actions.setAppData(APP_DATA.sidePane, "");
|
29396
29437
|
}
|
29397
29438
|
};
|
29398
29439
|
#toggleStatsForNerds = () => {
|
29399
|
-
const uiSettings = this.#store.getState(
|
29440
|
+
const uiSettings = this.#store.getState(selectAppData13(APP_DATA.uiSettings));
|
29400
29441
|
const statsEnabled = uiSettings.showStatsOnTiles;
|
29401
29442
|
this.#actions.setAppData(APP_DATA.uiSettings, {
|
29402
29443
|
...uiSettings,
|
@@ -29404,7 +29445,7 @@ var KeyboardInputManager = class {
|
|
29404
29445
|
});
|
29405
29446
|
};
|
29406
29447
|
#toggleHlsStats = () => {
|
29407
|
-
this.#actions.setAppData(APP_DATA.hlsStats, !this.#store.getState(
|
29448
|
+
this.#actions.setAppData(APP_DATA.hlsStats, !this.#store.getState(selectAppData13(APP_DATA.hlsStats)));
|
29408
29449
|
};
|
29409
29450
|
// eslint-disable-next-line complexity
|
29410
29451
|
#keyDownHandler = async (e) => {
|
@@ -29451,7 +29492,7 @@ var KeyboardInputManager = class {
|
|
29451
29492
|
var KeyboardHandler = () => {
|
29452
29493
|
const store = useHMSVanillaStore14();
|
29453
29494
|
const actions = useHMSActions49();
|
29454
|
-
|
29495
|
+
useEffect55(() => {
|
29455
29496
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
29456
29497
|
keyboardManager.bindAllShortcuts();
|
29457
29498
|
return keyboardManager.unbindAllShortcuts;
|
@@ -29466,10 +29507,10 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
|
|
29466
29507
|
|
29467
29508
|
// src/Prebuilt/AppStateContext.tsx
|
29468
29509
|
init_define_process_env();
|
29469
|
-
import React160, { useContext as useContext4, useEffect as
|
29510
|
+
import React160, { useContext as useContext4, useEffect as useEffect56 } from "react";
|
29470
29511
|
import { usePreviousDistinct } from "react-use";
|
29471
29512
|
import { match as match13, P as P4 } from "ts-pattern";
|
29472
|
-
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as
|
29513
|
+
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
|
29473
29514
|
|
29474
29515
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
29475
29516
|
init_define_process_env();
|
@@ -29506,7 +29547,7 @@ var useHMSAppStateContext = () => {
|
|
29506
29547
|
var useAppStateManager = () => {
|
29507
29548
|
const roomLayout = useRoomLayout();
|
29508
29549
|
const [activeState, setActiveState] = React160.useState();
|
29509
|
-
const roomState =
|
29550
|
+
const roomState = useHMSStore90(selectRoomState8);
|
29510
29551
|
const prevRoomState = usePreviousDistinct(roomState);
|
29511
29552
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
29512
29553
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -29514,7 +29555,7 @@ var useAppStateManager = () => {
|
|
29514
29555
|
const rejoin = () => {
|
29515
29556
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
29516
29557
|
};
|
29517
|
-
|
29558
|
+
useEffect56(() => {
|
29518
29559
|
if (!roomLayout) {
|
29519
29560
|
return;
|
29520
29561
|
}
|
@@ -29586,15 +29627,15 @@ var LeaveScreen = () => {
|
|
29586
29627
|
|
29587
29628
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
29588
29629
|
init_define_process_env();
|
29589
|
-
import React162, { useEffect as
|
29590
|
-
import { useMedia as
|
29630
|
+
import React162, { useEffect as useEffect57, useState as useState67 } from "react";
|
29631
|
+
import { useMedia as useMedia38 } from "react-use";
|
29591
29632
|
import { match as match14, P as P5 } from "ts-pattern";
|
29592
29633
|
import { RefreshIcon } from "@100mslive/react-icons";
|
29593
29634
|
var MwebLandscapePrompt = () => {
|
29594
29635
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState67(false);
|
29595
|
-
const isLandscape =
|
29636
|
+
const isLandscape = useMedia38(config.media.ls);
|
29596
29637
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
29597
|
-
|
29638
|
+
useEffect57(() => {
|
29598
29639
|
if (!isMobileUserAgent) {
|
29599
29640
|
setShowMwebLandscapePrompt(false);
|
29600
29641
|
return;
|
@@ -29638,7 +29679,7 @@ init_define_process_env();
|
|
29638
29679
|
|
29639
29680
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
29640
29681
|
init_define_process_env();
|
29641
|
-
import React171, { useCallback as useCallback36, useEffect as
|
29682
|
+
import React171, { useCallback as useCallback36, useEffect as useEffect67 } from "react";
|
29642
29683
|
import {
|
29643
29684
|
HMSNotificationTypes as HMSNotificationTypes10,
|
29644
29685
|
HMSRoomState as HMSRoomState10,
|
@@ -29649,7 +29690,7 @@ import {
|
|
29649
29690
|
useAwayNotifications as useAwayNotifications2,
|
29650
29691
|
useCustomEvent as useCustomEvent4,
|
29651
29692
|
useHMSNotifications as useHMSNotifications10,
|
29652
|
-
useHMSStore as
|
29693
|
+
useHMSStore as useHMSStore94,
|
29653
29694
|
useHMSVanillaStore as useHMSVanillaStore16
|
29654
29695
|
} from "@100mslive/react-sdk";
|
29655
29696
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
@@ -29687,15 +29728,15 @@ function AutoplayBlockedModal() {
|
|
29687
29728
|
|
29688
29729
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
29689
29730
|
init_define_process_env();
|
29690
|
-
import React164, { useEffect as
|
29731
|
+
import React164, { useEffect as useEffect58 } from "react";
|
29691
29732
|
import { v4 as uuid4 } from "uuid";
|
29692
|
-
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as
|
29733
|
+
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
|
29693
29734
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
29694
29735
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
29695
29736
|
var ChatNotifications = () => {
|
29696
|
-
const chatState =
|
29697
|
-
const localPeerId =
|
29698
|
-
|
29737
|
+
const chatState = useHMSStore91(selectSessionStore12("chatState" /* CHAT_STATE */));
|
29738
|
+
const localPeerId = useHMSStore91(selectLocalPeerID15);
|
29739
|
+
useEffect58(() => {
|
29699
29740
|
if (!chatState || chatState.updatedBy?.peerId === localPeerId) {
|
29700
29741
|
return;
|
29701
29742
|
}
|
@@ -29715,7 +29756,7 @@ var ChatNotifications = () => {
|
|
29715
29756
|
|
29716
29757
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
29717
29758
|
init_define_process_env();
|
29718
|
-
import { useEffect as
|
29759
|
+
import { useEffect as useEffect59 } from "react";
|
29719
29760
|
import {
|
29720
29761
|
HMSNotificationTypes as HMSNotificationTypes2,
|
29721
29762
|
HMSRoomState as HMSRoomState9,
|
@@ -29723,7 +29764,7 @@ import {
|
|
29723
29764
|
selectPeerByID as selectPeerByID6,
|
29724
29765
|
selectRoomState as selectRoomState9,
|
29725
29766
|
useHMSNotifications as useHMSNotifications2,
|
29726
|
-
useHMSStore as
|
29767
|
+
useHMSStore as useHMSStore93,
|
29727
29768
|
useHMSVanillaStore as useHMSVanillaStore15
|
29728
29769
|
} from "@100mslive/react-sdk";
|
29729
29770
|
|
@@ -29733,7 +29774,7 @@ init_define_process_env();
|
|
29733
29774
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
29734
29775
|
init_define_process_env();
|
29735
29776
|
import React165, { useCallback as useCallback35 } from "react";
|
29736
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions50, useHMSStore as
|
29777
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions50, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
|
29737
29778
|
import {
|
29738
29779
|
ChatUnreadIcon as ChatUnreadIcon2,
|
29739
29780
|
ConnectivityIcon,
|
@@ -29754,7 +29795,7 @@ var HandRaiseAction = React165.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
29754
29795
|
const hmsActions = useHMSActions50();
|
29755
29796
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29756
29797
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29757
|
-
const peer =
|
29798
|
+
const peer = useHMSStore92(selectPeerByID5(id));
|
29758
29799
|
const layout = useRoomLayout();
|
29759
29800
|
const {
|
29760
29801
|
bring_to_stage_label,
|
@@ -29951,11 +29992,11 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
29951
29992
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
29952
29993
|
var HandRaisedNotifications = () => {
|
29953
29994
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
29954
|
-
const roomState =
|
29995
|
+
const roomState = useHMSStore93(selectRoomState9);
|
29955
29996
|
const vanillaStore = useHMSVanillaStore15();
|
29956
29997
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
29957
29998
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
29958
|
-
|
29999
|
+
useEffect59(() => {
|
29959
30000
|
if (!notification?.data) {
|
29960
30001
|
return;
|
29961
30002
|
}
|
@@ -29975,13 +30016,13 @@ var HandRaisedNotifications = () => {
|
|
29975
30016
|
|
29976
30017
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
29977
30018
|
init_define_process_env();
|
29978
|
-
import React166, { useEffect as
|
30019
|
+
import React166, { useEffect as useEffect60, useState as useState68 } from "react";
|
29979
30020
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
29980
30021
|
var InitErrorModal = () => {
|
29981
30022
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
29982
30023
|
const [showModal, setShowModal] = useState68(false);
|
29983
30024
|
const [info, setInfo] = useState68({ title: "Init Error", description: "" });
|
29984
|
-
|
30025
|
+
useEffect60(() => {
|
29985
30026
|
const data3 = notification?.data;
|
29986
30027
|
if (!data3 || data3.action !== "INIT") {
|
29987
30028
|
return;
|
@@ -30006,7 +30047,7 @@ var InitErrorModal = () => {
|
|
30006
30047
|
|
30007
30048
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
30008
30049
|
init_define_process_env();
|
30009
|
-
import { useEffect as
|
30050
|
+
import { useEffect as useEffect61 } from "react";
|
30010
30051
|
import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
|
30011
30052
|
var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
|
30012
30053
|
var PeerNotifications = () => {
|
@@ -30014,7 +30055,7 @@ var PeerNotifications = () => {
|
|
30014
30055
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
30015
30056
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
30016
30057
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
30017
|
-
|
30058
|
+
useEffect61(() => {
|
30018
30059
|
if (!notification?.data) {
|
30019
30060
|
return;
|
30020
30061
|
}
|
@@ -30043,8 +30084,8 @@ var PeerNotifications = () => {
|
|
30043
30084
|
|
30044
30085
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
30045
30086
|
init_define_process_env();
|
30046
|
-
import React167, { useEffect as
|
30047
|
-
import { useMedia as
|
30087
|
+
import React167, { useEffect as useEffect62, useState as useState69 } from "react";
|
30088
|
+
import { useMedia as useMedia39 } from "react-use";
|
30048
30089
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
30049
30090
|
|
30050
30091
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -30058,8 +30099,8 @@ function PermissionErrorModal() {
|
|
30058
30099
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
30059
30100
|
const [deviceType, setDeviceType] = useState69("");
|
30060
30101
|
const [isSystemError, setIsSystemError] = useState69(false);
|
30061
|
-
const isMobile =
|
30062
|
-
|
30102
|
+
const isMobile = useMedia39(config.media.md);
|
30103
|
+
useEffect62(() => {
|
30063
30104
|
if (!notification || notification.data?.code !== 3001 && notification.data?.code !== 3011 || notification.data?.code === 3001 && notification.data?.message.includes("screen")) {
|
30064
30105
|
return;
|
30065
30106
|
}
|
@@ -30116,7 +30157,7 @@ function PermissionErrorModal() {
|
|
30116
30157
|
|
30117
30158
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
30118
30159
|
init_define_process_env();
|
30119
|
-
import React168, { useEffect as
|
30160
|
+
import React168, { useEffect as useEffect63, useState as useState70 } from "react";
|
30120
30161
|
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
30121
30162
|
var notificationTypes2 = [
|
30122
30163
|
HMSNotificationTypes6.RECONNECTED,
|
@@ -30127,7 +30168,7 @@ var notificationId = null;
|
|
30127
30168
|
var ReconnectNotifications = () => {
|
30128
30169
|
const notification = useHMSNotifications6(notificationTypes2);
|
30129
30170
|
const [open, setOpen] = useState70(false);
|
30130
|
-
|
30171
|
+
useEffect63(() => {
|
30131
30172
|
if (!notification) {
|
30132
30173
|
return;
|
30133
30174
|
}
|
@@ -30165,7 +30206,7 @@ var ReconnectNotifications = () => {
|
|
30165
30206
|
|
30166
30207
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
30167
30208
|
init_define_process_env();
|
30168
|
-
import React169, { useEffect as
|
30209
|
+
import React169, { useEffect as useEffect64, useState as useState71 } from "react";
|
30169
30210
|
import {
|
30170
30211
|
HMSNotificationTypes as HMSNotificationTypes7,
|
30171
30212
|
useHMSActions as useHMSActions51,
|
@@ -30180,7 +30221,7 @@ var TrackBulkUnmuteModal = () => {
|
|
30180
30221
|
HMSNotificationTypes7.ROOM_ENDED,
|
30181
30222
|
HMSNotificationTypes7.REMOVED_FROM_ROOM
|
30182
30223
|
]);
|
30183
|
-
|
30224
|
+
useEffect64(() => {
|
30184
30225
|
switch (notification?.type) {
|
30185
30226
|
case HMSNotificationTypes7.REMOVED_FROM_ROOM:
|
30186
30227
|
case HMSNotificationTypes7.ROOM_ENDED:
|
@@ -30219,7 +30260,7 @@ var TrackBulkUnmuteModal = () => {
|
|
30219
30260
|
|
30220
30261
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
30221
30262
|
init_define_process_env();
|
30222
|
-
import { useEffect as
|
30263
|
+
import { useEffect as useEffect65 } from "react";
|
30223
30264
|
import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
|
30224
30265
|
var notificationTypes3 = [
|
30225
30266
|
HMSNotificationTypes8.TRACK_ADDED,
|
@@ -30229,7 +30270,7 @@ var notificationTypes3 = [
|
|
30229
30270
|
];
|
30230
30271
|
var TrackNotifications = () => {
|
30231
30272
|
const notification = useHMSNotifications8(notificationTypes3);
|
30232
|
-
|
30273
|
+
useEffect65(() => {
|
30233
30274
|
if (notification) {
|
30234
30275
|
console.debug(`[${notification.type}]`, notification);
|
30235
30276
|
}
|
@@ -30239,7 +30280,7 @@ var TrackNotifications = () => {
|
|
30239
30280
|
|
30240
30281
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
30241
30282
|
init_define_process_env();
|
30242
|
-
import React170, { useEffect as
|
30283
|
+
import React170, { useEffect as useEffect66, useState as useState72 } from "react";
|
30243
30284
|
import {
|
30244
30285
|
HMSNotificationTypes as HMSNotificationTypes9,
|
30245
30286
|
useHMSActions as useHMSActions52,
|
@@ -30254,7 +30295,7 @@ var TrackUnmuteModal = () => {
|
|
30254
30295
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
30255
30296
|
]);
|
30256
30297
|
const [muteNotification, setMuteNotification] = useState72(null);
|
30257
|
-
|
30298
|
+
useEffect66(() => {
|
30258
30299
|
switch (notification?.type) {
|
30259
30300
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
30260
30301
|
case HMSNotificationTypes9.ROOM_ENDED:
|
@@ -30291,17 +30332,17 @@ var TrackUnmuteModal = () => {
|
|
30291
30332
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
30292
30333
|
var pollToastKey = {};
|
30293
30334
|
function Notifications() {
|
30294
|
-
const localPeerID =
|
30335
|
+
const localPeerID = useHMSStore94(selectLocalPeerID16);
|
30295
30336
|
const notification = useHMSNotifications10();
|
30296
30337
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
30297
|
-
const roomState =
|
30338
|
+
const roomState = useHMSStore94(selectRoomState10);
|
30298
30339
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
30299
30340
|
const isNotificationDisabled = useIsNotificationDisabled();
|
30300
30341
|
const screenProps = useRoomLayoutConferencingScreen();
|
30301
30342
|
const vanillaStore = useHMSVanillaStore16();
|
30302
30343
|
const togglePollView = usePollViewToggle();
|
30303
30344
|
const { showNotification } = useAwayNotifications2();
|
30304
|
-
const amIScreenSharing =
|
30345
|
+
const amIScreenSharing = useHMSStore94(selectIsLocalScreenShared2);
|
30305
30346
|
const logoURL = useRoomLayout()?.logo?.url;
|
30306
30347
|
const handleRoleChangeDenied = useCallback36((request) => {
|
30307
30348
|
ToastManager.addToast({
|
@@ -30310,7 +30351,7 @@ function Notifications() {
|
|
30310
30351
|
});
|
30311
30352
|
}, []);
|
30312
30353
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
30313
|
-
|
30354
|
+
useEffect67(() => {
|
30314
30355
|
if (!notification || isNotificationDisabled) {
|
30315
30356
|
return;
|
30316
30357
|
}
|
@@ -30455,8 +30496,8 @@ var PreviewScreen = () => {
|
|
30455
30496
|
|
30456
30497
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
30457
30498
|
init_define_process_env();
|
30458
|
-
import React174, { useEffect as
|
30459
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as
|
30499
|
+
import React174, { useEffect as useEffect68, useState as useState73 } from "react";
|
30500
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
|
30460
30501
|
|
30461
30502
|
// src/Prebuilt/components/Toast/Toast.jsx
|
30462
30503
|
init_define_process_env();
|
@@ -30479,9 +30520,9 @@ var Toast2 = ({ title, description, close = true, open, duration, onOpenChange,
|
|
30479
30520
|
|
30480
30521
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
30481
30522
|
var ToastContainer = () => {
|
30482
|
-
const isConnected =
|
30523
|
+
const isConnected = useHMSStore95(selectIsConnectedToRoom11);
|
30483
30524
|
const [toasts, setToast] = useState73([]);
|
30484
|
-
|
30525
|
+
useEffect68(() => {
|
30485
30526
|
ToastManager.addListener(setToast);
|
30486
30527
|
return () => {
|
30487
30528
|
ToastManager.removeListener(setToast);
|
@@ -30503,12 +30544,12 @@ var ToastContainer = () => {
|
|
30503
30544
|
// src/Prebuilt/layouts/Sheet.tsx
|
30504
30545
|
init_define_process_env();
|
30505
30546
|
import React176 from "react";
|
30506
|
-
import { selectAppData as
|
30547
|
+
import { selectAppData as selectAppData14, useHMSStore as useHMSStore96 } from "@100mslive/react-sdk";
|
30507
30548
|
|
30508
30549
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
30509
30550
|
init_define_process_env();
|
30510
30551
|
import React175 from "react";
|
30511
|
-
import { CrossIcon as
|
30552
|
+
import { CrossIcon as CrossIcon27 } from "@100mslive/react-icons";
|
30512
30553
|
var RoomDetailsSheet = () => {
|
30513
30554
|
const { title, description, details } = useRoomLayoutHeader();
|
30514
30555
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -30521,13 +30562,13 @@ var RoomDetailsSheet = () => {
|
|
30521
30562
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
30522
30563
|
},
|
30523
30564
|
/* @__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(
|
30565
|
+
/* @__PURE__ */ React175.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React175.createElement(CrossIcon27, null))
|
30525
30566
|
), /* @__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
30567
|
};
|
30527
30568
|
|
30528
30569
|
// src/Prebuilt/layouts/Sheet.tsx
|
30529
30570
|
var Sheet2 = () => {
|
30530
|
-
const sheet =
|
30571
|
+
const sheet = useHMSStore96(selectAppData14(APP_DATA.sheet));
|
30531
30572
|
let ViewComponent;
|
30532
30573
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
30533
30574
|
ViewComponent = /* @__PURE__ */ React176.createElement(RoomDetailsSheet, null);
|
@@ -30537,15 +30578,15 @@ var Sheet2 = () => {
|
|
30537
30578
|
|
30538
30579
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
30539
30580
|
init_define_process_env();
|
30540
|
-
import React177, { useCallback as useCallback37, useEffect as
|
30541
|
-
import { useMedia as
|
30581
|
+
import React177, { useCallback as useCallback37, useEffect as useEffect69, useMemo as useMemo21, useState as useState74 } from "react";
|
30582
|
+
import { useMedia as useMedia40 } from "react-use";
|
30542
30583
|
import {
|
30543
30584
|
selectIsLargeRoom as selectIsLargeRoom4,
|
30544
30585
|
selectLocalPeerID as selectLocalPeerID17,
|
30545
30586
|
selectPeerNameByID as selectPeerNameByID7,
|
30546
30587
|
useCustomEvent as useCustomEvent5,
|
30547
30588
|
useHMSActions as useHMSActions53,
|
30548
|
-
useHMSStore as
|
30589
|
+
useHMSStore as useHMSStore97,
|
30549
30590
|
useHMSVanillaStore as useHMSVanillaStore17
|
30550
30591
|
} from "@100mslive/react-sdk";
|
30551
30592
|
var emojiCount = 1;
|
@@ -30572,12 +30613,12 @@ var getStartingPoints = (isMobile) => {
|
|
30572
30613
|
return arr;
|
30573
30614
|
};
|
30574
30615
|
function FlyingEmoji() {
|
30575
|
-
const localPeerId =
|
30616
|
+
const localPeerId = useHMSStore97(selectLocalPeerID17);
|
30576
30617
|
const vanillaStore = useHMSVanillaStore17();
|
30577
30618
|
const hmsActions = useHMSActions53();
|
30578
30619
|
const [emojis, setEmojis] = useState74([]);
|
30579
|
-
const isMobile =
|
30580
|
-
const isLargeRoom =
|
30620
|
+
const isMobile = useMedia40(config.media.md);
|
30621
|
+
const isLargeRoom = useHMSStore97(selectIsLargeRoom4);
|
30581
30622
|
const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
|
30582
30623
|
const showFlyingEmoji = useCallback37(
|
30583
30624
|
async ({ emojiId, senderId }) => {
|
@@ -30611,7 +30652,7 @@ function FlyingEmoji() {
|
|
30611
30652
|
type: EMOJI_REACTION_TYPE,
|
30612
30653
|
onEvent: showFlyingEmoji
|
30613
30654
|
});
|
30614
|
-
|
30655
|
+
useEffect69(() => {
|
30615
30656
|
window.showFlyingEmoji = showFlyingEmoji;
|
30616
30657
|
}, [showFlyingEmoji]);
|
30617
30658
|
return /* @__PURE__ */ React177.createElement(
|
@@ -30690,20 +30731,20 @@ function RemoteStopScreenshare() {
|
|
30690
30731
|
|
30691
30732
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
30692
30733
|
init_define_process_env();
|
30693
|
-
import { useCallback as useCallback39, useEffect as
|
30734
|
+
import { useCallback as useCallback39, useEffect as useEffect70, useRef as useRef28 } from "react";
|
30694
30735
|
import {
|
30695
30736
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
30696
30737
|
selectPermissions as selectPermissions20,
|
30697
30738
|
useHMSActions as useHMSActions55,
|
30698
|
-
useHMSStore as
|
30739
|
+
useHMSStore as useHMSStore98,
|
30699
30740
|
useRecordingStreaming as useRecordingStreaming12
|
30700
30741
|
} from "@100mslive/react-sdk";
|
30701
30742
|
var useAutoStartStreaming = () => {
|
30702
30743
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
30703
|
-
const permissions =
|
30744
|
+
const permissions = useHMSStore98(selectPermissions20);
|
30704
30745
|
const showStreamingUI = useShowStreamingUI();
|
30705
30746
|
const hmsActions = useHMSActions55();
|
30706
|
-
const isConnected =
|
30747
|
+
const isConnected = useHMSStore98(selectIsConnectedToRoom12);
|
30707
30748
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
30708
30749
|
const streamStartedRef = useRef28(false);
|
30709
30750
|
const startHLS = useCallback39(async () => {
|
@@ -30729,12 +30770,12 @@ var useAutoStartStreaming = () => {
|
|
30729
30770
|
isHLSRecordingOn,
|
30730
30771
|
isBrowserRecordingOn
|
30731
30772
|
]);
|
30732
|
-
|
30773
|
+
useEffect70(() => {
|
30733
30774
|
if (!isHLSStarted && !isHLSRunning) {
|
30734
30775
|
streamStartedRef.current = false;
|
30735
30776
|
}
|
30736
30777
|
}, [isHLSStarted, isHLSRunning]);
|
30737
|
-
|
30778
|
+
useEffect70(() => {
|
30738
30779
|
if (!isConnected || streamStartedRef.current || !permissions?.hlsStreaming) {
|
30739
30780
|
return;
|
30740
30781
|
}
|
@@ -30758,7 +30799,7 @@ var HMSPrebuilt = React179.forwardRef(
|
|
30758
30799
|
}, ref) => {
|
30759
30800
|
const reactiveStore = useRef29();
|
30760
30801
|
const [hydrated, setHydrated] = React179.useState(false);
|
30761
|
-
|
30802
|
+
useEffect71(() => {
|
30762
30803
|
setHydrated(true);
|
30763
30804
|
const hms = new HMSReactiveStore();
|
30764
30805
|
const hmsStore = hms.getStore();
|
@@ -30773,13 +30814,13 @@ var HMSPrebuilt = React179.forwardRef(
|
|
30773
30814
|
hmsNotifications
|
30774
30815
|
};
|
30775
30816
|
}, []);
|
30776
|
-
|
30817
|
+
useEffect71(() => {
|
30777
30818
|
if (!ref || !reactiveStore.current) {
|
30778
30819
|
return;
|
30779
30820
|
}
|
30780
30821
|
ref.current = { ...reactiveStore.current };
|
30781
30822
|
}, [ref]);
|
30782
|
-
|
30823
|
+
useEffect71(() => {
|
30783
30824
|
return () => {
|
30784
30825
|
VBHandler.reset();
|
30785
30826
|
reactiveStore?.current?.hmsActions.leave();
|
@@ -30889,9 +30930,9 @@ var AppStates = ({ activeState }) => {
|
|
30889
30930
|
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
30931
|
};
|
30891
30932
|
var BackSwipe = () => {
|
30892
|
-
const isConnectedToRoom =
|
30933
|
+
const isConnectedToRoom = useHMSStore99(selectIsConnectedToRoom13);
|
30893
30934
|
const hmsActions = useHMSActions56();
|
30894
|
-
|
30935
|
+
useEffect71(() => {
|
30895
30936
|
const onRouteLeave = async () => {
|
30896
30937
|
if (isConnectedToRoom) {
|
30897
30938
|
await hmsActions.leave();
|
@@ -31062,4 +31103,4 @@ lodash/lodash.js:
|
|
31062
31103
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
31063
31104
|
*)
|
31064
31105
|
*/
|
31065
|
-
//# sourceMappingURL=chunk-
|
31106
|
+
//# sourceMappingURL=chunk-IOHV3H2B.js.map
|