@100mslive/roomkit-react 0.3.14-alpha.11 → 0.3.14-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-72D4HXOZ.js → HLSView-6X6A7QVC.js} +2 -2
- package/dist/{HLSView-X4TA7M5M.css → HLSView-J7FHXBEW.css} +3 -3
- package/dist/{HLSView-X4TA7M5M.css.map → HLSView-J7FHXBEW.css.map} +1 -1
- package/dist/{chunk-OZVDS5TG.js → chunk-2VGMEGOM.js} +460 -511
- package/dist/{chunk-OZVDS5TG.js.map → chunk-2VGMEGOM.js.map} +4 -4
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +2220 -2265
- 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 +21 -65
- package/dist/meta.esbuild.json +33 -77
- package/package.json +8 -7
- package/src/Prebuilt/components/Chat/ChatBody.tsx +23 -8
- package/src/Prebuilt/components/Header/AdditionalRoomState.jsx +4 -66
- package/dist/Prebuilt/components/HMSVideo/PlayButton.d.ts +0 -6
- package/dist/Prebuilt/components/Polls/common/VoterList.d.ts +0 -4
- package/src/Prebuilt/common/roles.js +0 -4
- package/src/Prebuilt/components/AppData/useAppConfig.js +0 -7
- package/src/Prebuilt/components/HMSVideo/PlayButton.tsx +0 -27
- package/src/Prebuilt/components/Header/AmbientMusic.jsx +0 -88
- package/src/Prebuilt/components/Image.jsx +0 -7
- package/src/Prebuilt/components/MetaActions.jsx +0 -37
- package/src/Prebuilt/components/Playlist/Playlist.jsx +0 -124
- package/src/Prebuilt/components/Playlist/PlaylistControls.jsx +0 -172
- package/src/Prebuilt/components/Playlist/PlaylistItem.jsx +0 -51
- package/src/Prebuilt/components/Playlist/VideoPlayer.jsx +0 -95
- package/src/Prebuilt/components/Polls/CreatePollQuiz/Timer.jsx +0 -71
- package/src/Prebuilt/components/Polls/common/VoterList.tsx +0 -22
- package/src/Prebuilt/components/ScreenshareHintModal.jsx +0 -37
- /package/dist/{HLSView-72D4HXOZ.js.map → HLSView-6X6A7QVC.js.map} +0 -0
|
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
107
107
|
var define_process_env_default;
|
|
108
108
|
var init_define_process_env = __esm({
|
|
109
109
|
"<define:process.env>"() {
|
|
110
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_16192327-a2a2-40a7-abb2-79c0094cbaf1", 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.4-alpha.11", 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.3 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.14-alpha.11", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_16192327-a2a2-40a7-abb2-79c0094cbaf1", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.14-alpha.11", 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.9", 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.8", 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: "585", 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.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240616.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.4/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:20504", 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.14-alpha.11", 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: "9660740752", 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: "f1a483cba1ff7bfacde92aaf3a37a04cb665c7ad", 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: "15219ee8bd39b3822f16a80359565dbe79360d5853b967a8f8d28e09fd15a149", 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--1719311146504-0.9538199475215898:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719311146307-0.8075643836992763:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719311120930-0.8492030328752149:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719311120753-0.1875659140674153:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_56b91b7f-c832-4233-8d0f-f25d3bda4804", INVOCATION_ID: "7bfb809c340d4529aedcda2660d67a9f", 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: "588", 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 340", 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.14-alpha.11", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.14-alpha.11", 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: "f1a483cba1ff7bfacde92aaf3a37a04cb665c7ad", 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_16192327-a2a2-40a7-abb2-79c0094cbaf1", 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_16192327-a2a2-40a7-abb2-79c0094cbaf1", 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.181+6/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_16192327-a2a2-40a7-abb2-79c0094cbaf1" };
|
|
110
|
+
define_process_env_default = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v22.2.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.9", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v22.2.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.10.14-alpha.12", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.90.2", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", 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_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "fb2767de693eee1ebe611b05fb9de6436dcbc2c723eb883cf116a0d09318faf6", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.TpNfPnCgJB/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1719768335966-0.10018641156318586:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1719768335605-0.8755989503364847:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1719768314180-0.8197881601991994:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v22.2.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build","--no-private"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1719768335966-0.10018641156318586/node", LaunchInstanceID: "BBF3A6A0-FA1B-4B89-8B27-EEE2D23C0E7B", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_exports___index_css: "./dist/index.css", npm_package_dependencies__100mslive_react_sdk: "0.10.14-alpha.12", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.4-alpha.12", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.14-alpha.12", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.3.14-alpha.12", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.3.14-alpha.12", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-10419d9aa6.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v22.2.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v22.2.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_devDependencies_knip: "^5.11.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", SECURITYSESSIONID: "186a3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v22.2.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
|
|
@@ -12917,8 +12917,8 @@ import {
|
|
|
12917
12917
|
HMSReactiveStore,
|
|
12918
12918
|
HMSRoomProvider,
|
|
12919
12919
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
|
12920
|
-
useHMSActions as
|
|
12921
|
-
useHMSStore as
|
|
12920
|
+
useHMSActions as useHMSActions56,
|
|
12921
|
+
useHMSStore as useHMSStore97
|
|
12922
12922
|
} from "@100mslive/react-sdk";
|
|
12923
12923
|
|
|
12924
12924
|
// src/Prebuilt/components/AppData/AppData.tsx
|
|
@@ -13929,8 +13929,8 @@ import {
|
|
|
13929
13929
|
selectAppData as selectAppData12,
|
|
13930
13930
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
|
13931
13931
|
selectRoomState as selectRoomState7,
|
|
13932
|
-
useHMSActions as
|
|
13933
|
-
useHMSStore as
|
|
13932
|
+
useHMSActions as useHMSActions48,
|
|
13933
|
+
useHMSStore as useHMSStore86
|
|
13934
13934
|
} from "@100mslive/react-sdk";
|
|
13935
13935
|
|
|
13936
13936
|
// src/Prebuilt/components/Footer/Footer.tsx
|
|
@@ -17666,8 +17666,8 @@ import {
|
|
|
17666
17666
|
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled4,
|
|
17667
17667
|
selectPeerCount as selectPeerCount3,
|
|
17668
17668
|
selectPermissions as selectPermissions8,
|
|
17669
|
-
useHMSActions as
|
|
17670
|
-
useHMSStore as
|
|
17669
|
+
useHMSActions as useHMSActions22,
|
|
17670
|
+
useHMSStore as useHMSStore29,
|
|
17671
17671
|
useRecordingStreaming as useRecordingStreaming7
|
|
17672
17672
|
} from "@100mslive/react-sdk";
|
|
17673
17673
|
import {
|
|
@@ -17690,7 +17690,7 @@ import {
|
|
|
17690
17690
|
|
|
17691
17691
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
|
17692
17692
|
init_define_process_env();
|
|
17693
|
-
import React58, { useCallback as
|
|
17693
|
+
import React58, { useCallback as useCallback16, useEffect as useEffect16, useRef as useRef15, useState as useState25 } from "react";
|
|
17694
17694
|
import { useMedia as useMedia8 } from "react-use";
|
|
17695
17695
|
|
|
17696
17696
|
// ../hms-video-store/dist/index.js
|
|
@@ -20380,7 +20380,7 @@ var c2 = (a11, e, t2) => new Promise((i2, r2) => {
|
|
|
20380
20380
|
n2((t2 = t2.apply(a11, e)).next());
|
|
20381
20381
|
});
|
|
20382
20382
|
var Mr = Xa((Fc, no) => {
|
|
20383
|
-
no.exports = { version: "0.12.14-alpha.
|
|
20383
|
+
no.exports = { version: "0.12.14-alpha.12", 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"] };
|
|
20384
20384
|
});
|
|
20385
20385
|
var Sr = ((n2) => (n2.Disconnected = "Disconnected", n2.Preview = "Preview", n2.Connecting = "Connecting", n2.Connected = "Connected", n2.Reconnecting = "Reconnecting", n2.Disconnecting = "Disconnecting", n2.Failed = "Failed", n2))(Sr || {});
|
|
20386
20386
|
var ei = () => ({ room: { id: "", isConnected: false, name: "", peers: [], localPeer: "", roomState: "Disconnected", recording: { browser: { running: false }, server: { running: false }, hls: { running: false } }, rtmp: { running: false }, hls: { running: false, variants: [] }, sessionId: "" }, peers: {}, tracks: {}, playlist: { audio: { list: {}, selection: { id: "", hasPrevious: false, hasNext: false }, progress: 0, volume: 0, currentTime: 0, playbackRate: 1 }, video: { list: {}, selection: { id: "", hasPrevious: false, hasNext: false }, progress: 0, volume: 0, currentTime: 0, playbackRate: 1 } }, messages: { byID: {}, allIDs: [] }, speakers: {}, connectionQualities: {}, settings: { audioInputDeviceId: "", audioOutputDeviceId: "", videoInputDeviceId: "" }, devices: { audioInput: [], audioOutput: [], videoInput: [] }, roles: {}, roleChangeRequests: [], errors: [], sessionStore: {}, templateAppData: {}, polls: {}, whiteboards: {}, hideLocalPeer: false });
|
|
@@ -25584,9 +25584,9 @@ var Li = class {
|
|
|
25584
25584
|
}
|
|
25585
25585
|
onJoin(e) {
|
|
25586
25586
|
let t2 = this.sdk.getPlaylistManager();
|
|
25587
|
-
this.audioPlaylist = new Lt(t2, "audio", this.syncPlaylistState.bind(this), this.store), this.videoPlaylist = new Lt(t2, "video", this.syncRoomState.bind(this), this.store), this.syncRoomState("joinSync"), this.setState((i2) => {
|
|
25587
|
+
this.audioPlaylist = new Lt(t2, "audio", this.syncPlaylistState.bind(this), this.store), this.videoPlaylist = new Lt(t2, "video", this.syncRoomState.bind(this), this.store), this.syncRoomState("joinSync"), console.log("on join called in actions"), this.setState((i2) => {
|
|
25588
25588
|
var r2;
|
|
25589
|
-
Object.assign(i2.room, _2.convertRoom(e, (r2 = this.sdk.getLocalPeer()) == null ? void 0 : r2.peerId)), i2.room.isConnected = true, i2.room.roomState = "Connected";
|
|
25589
|
+
Object.assign(i2.room, _2.convertRoom(e, (r2 = this.sdk.getLocalPeer()) == null ? void 0 : r2.peerId)), i2.room.isConnected = true, console.log("isconnected set to true"), i2.room.roomState = "Connected";
|
|
25590
25590
|
}, "joined"), t2.onProgress(this.setProgress), t2.onNewTrackStart((i2) => {
|
|
25591
25591
|
this.syncPlaylistState(`${i2.type}PlaylistUpdate`);
|
|
25592
25592
|
}), t2.onPlaylistEnded((i2) => {
|
|
@@ -29477,12 +29477,12 @@ var hr = class {
|
|
|
29477
29477
|
this.notificationManager || (this.notificationManager = new Xi(this.store, this.eventBus, this.transport, this.listener, this.audioListener));
|
|
29478
29478
|
}
|
|
29479
29479
|
initStoreAndManagers(e) {
|
|
29480
|
-
var t2
|
|
29481
|
-
if (this.listener = e, this.errorListener = e, this.deviceChangeListener = e,
|
|
29482
|
-
(
|
|
29480
|
+
var t2;
|
|
29481
|
+
if (this.listener = e, this.errorListener = e, this.deviceChangeListener = e, this.sdkState.isInitialised) {
|
|
29482
|
+
(t2 = this.notificationManager) == null || t2.setListener(this.listener), this.audioSinkManager.setListener(this.listener), this.interactivityCenter.setListener(this.listener);
|
|
29483
29483
|
return;
|
|
29484
29484
|
}
|
|
29485
|
-
this.sdkState.isInitialised = true, this.store = new Nt(), this.eventBus = new Ut(), this.pluginUsageTracker = new Oi(this.eventBus), this.wakeLockManager = new _i(), this.networkTestManager = new wi(this.eventBus, this.listener), this.playlistManager = new bt(this, this.eventBus), this.deviceManager = new xt(this.store, this.eventBus), this.audioSinkManager = new Ot(this.store, this.deviceManager, this.eventBus), this.audioOutput = new xi(this.deviceManager, this.audioSinkManager), this.audioSinkManager.setListener(this.listener), this.eventBus.autoplayError.subscribe(this.handleAutoplayError), this.localTrackManager = new ve(this.store, this.observer, this.deviceManager, this.eventBus, this.analyticsTimer), this.analyticsEventsService = new Ni(this.store), this.transport = new zt(this.observer, this.deviceManager, this.store, this.eventBus, this.analyticsEventsService, this.analyticsTimer, this.pluginUsageTracker), "onInitSuccess" in e && this.transport.setConnectivityListener(e), this.sessionStore = new Zi(this.transport), this.interactivityCenter = new Vt(this.transport, this.store, this.listener), this.eventBus.analytics.subscribe(this.sendAnalyticsEvent), this.eventBus.deviceChange.subscribe(this.handleDeviceChange), this.eventBus.audioPluginFailed.subscribe(this.handleAudioPluginError);
|
|
29485
|
+
this.sdkState.isInitialised = true, this.store = new Nt(), this.store.setErrorListener(this.errorListener), this.eventBus = new Ut(), this.pluginUsageTracker = new Oi(this.eventBus), this.wakeLockManager = new _i(), this.networkTestManager = new wi(this.eventBus, this.listener), this.playlistManager = new bt(this, this.eventBus), this.deviceManager = new xt(this.store, this.eventBus), this.audioSinkManager = new Ot(this.store, this.deviceManager, this.eventBus), this.audioOutput = new xi(this.deviceManager, this.audioSinkManager), this.audioSinkManager.setListener(this.listener), this.eventBus.autoplayError.subscribe(this.handleAutoplayError), this.localTrackManager = new ve(this.store, this.observer, this.deviceManager, this.eventBus, this.analyticsTimer), this.analyticsEventsService = new Ni(this.store), this.transport = new zt(this.observer, this.deviceManager, this.store, this.eventBus, this.analyticsEventsService, this.analyticsTimer, this.pluginUsageTracker), "onInitSuccess" in e && this.transport.setConnectivityListener(e), this.sessionStore = new Zi(this.transport), this.interactivityCenter = new Vt(this.transport, this.store, this.listener), this.eventBus.analytics.subscribe(this.sendAnalyticsEvent), this.eventBus.deviceChange.subscribe(this.handleDeviceChange), this.eventBus.audioPluginFailed.subscribe(this.handleAudioPluginError);
|
|
29486
29486
|
}
|
|
29487
29487
|
validateJoined(e) {
|
|
29488
29488
|
if (!this.localPeer)
|
|
@@ -30080,7 +30080,7 @@ var hr = class {
|
|
|
30080
30080
|
return;
|
|
30081
30081
|
}
|
|
30082
30082
|
if (t2.joinedAt = /* @__PURE__ */ new Date(), e && (e.joinedAt = t2.joinedAt), e != null && e.role) {
|
|
30083
|
-
this.analyticsTimer.end("join_time"), (i2 = this.listener) == null || i2.onJoin(t2);
|
|
30083
|
+
this.analyticsTimer.end("join_time"), console.log("on join called from sdk"), (i2 = this.listener) == null || i2.onJoin(t2);
|
|
30084
30084
|
return;
|
|
30085
30085
|
}
|
|
30086
30086
|
return new Promise((r2, s2) => {
|
|
@@ -30364,8 +30364,8 @@ import {
|
|
|
30364
30364
|
selectPermissions as selectPermissions7,
|
|
30365
30365
|
selectRecordingState as selectRecordingState2,
|
|
30366
30366
|
selectRoomState as selectRoomState3,
|
|
30367
|
-
useHMSActions as
|
|
30368
|
-
useHMSStore as
|
|
30367
|
+
useHMSActions as useHMSActions19,
|
|
30368
|
+
useHMSStore as useHMSStore25,
|
|
30369
30369
|
useRecordingStreaming as useRecordingStreaming6
|
|
30370
30370
|
} from "@100mslive/react-sdk";
|
|
30371
30371
|
import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon10, PauseCircleIcon, RecordIcon } from "@100mslive/react-icons";
|
|
@@ -30373,63 +30373,23 @@ import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon10, Paus
|
|
|
30373
30373
|
// src/Prebuilt/components/Header/AdditionalRoomState.jsx
|
|
30374
30374
|
init_define_process_env();
|
|
30375
30375
|
import React57, { useState as useState24 } from "react";
|
|
30376
|
-
import { selectLocalPeerID as selectLocalPeerID5,
|
|
30377
|
-
import {
|
|
30378
|
-
AudioPlayerIcon,
|
|
30379
|
-
ChevronDownIcon as ChevronDownIcon4,
|
|
30380
|
-
ChevronUpIcon as ChevronUpIcon4,
|
|
30381
|
-
MusicIcon,
|
|
30382
|
-
ShareScreenIcon,
|
|
30383
|
-
VideoPlayerIcon
|
|
30384
|
-
} from "@100mslive/react-icons";
|
|
30385
|
-
|
|
30386
|
-
// src/Prebuilt/components/hooks/usePlaylistMusic.js
|
|
30387
|
-
init_define_process_env();
|
|
30388
|
-
import { useCallback as useCallback15 } from "react";
|
|
30389
|
-
import {
|
|
30390
|
-
selectAudioPlaylist,
|
|
30391
|
-
selectAudioPlaylistTrackByPeerID,
|
|
30392
|
-
selectPeerSharingAudioPlaylist,
|
|
30393
|
-
useHMSActions as useHMSActions18,
|
|
30394
|
-
useHMSStore as useHMSStore23
|
|
30395
|
-
} from "@100mslive/react-sdk";
|
|
30396
|
-
var usePlaylistMusic = () => {
|
|
30397
|
-
const peer = useHMSStore23(selectPeerSharingAudioPlaylist);
|
|
30398
|
-
const track = useHMSStore23(selectAudioPlaylistTrackByPeerID(peer == null ? void 0 : peer.id));
|
|
30399
|
-
const selection = useHMSStore23(selectAudioPlaylist.selectedItem);
|
|
30400
|
-
const hmsActions2 = useHMSActions18();
|
|
30401
|
-
const play = useCallback15(
|
|
30402
|
-
(selectedId) => __async(void 0, null, function* () {
|
|
30403
|
-
yield hmsActions2.audioPlaylist.play(selectedId);
|
|
30404
|
-
}),
|
|
30405
|
-
[hmsActions2]
|
|
30406
|
-
);
|
|
30407
|
-
const pause = useCallback15(() => {
|
|
30408
|
-
hmsActions2.audioPlaylist.pause();
|
|
30409
|
-
}, [hmsActions2]);
|
|
30410
|
-
const setVolume = useCallback15(
|
|
30411
|
-
(value) => {
|
|
30412
|
-
hmsActions2.setVolume(value, track == null ? void 0 : track.id);
|
|
30413
|
-
},
|
|
30414
|
-
[hmsActions2, track]
|
|
30415
|
-
);
|
|
30416
|
-
return { selection, peer, track, play, pause, setVolume };
|
|
30417
|
-
};
|
|
30376
|
+
import { selectLocalPeerID as selectLocalPeerID5, useHMSStore as useHMSStore24, useScreenShare } from "@100mslive/react-sdk";
|
|
30377
|
+
import { ChevronDownIcon as ChevronDownIcon4, ChevronUpIcon as ChevronUpIcon4, MusicIcon, ShareScreenIcon, VideoPlayerIcon } from "@100mslive/react-icons";
|
|
30418
30378
|
|
|
30419
30379
|
// src/Prebuilt/components/hooks/useScreenshareAudio.js
|
|
30420
30380
|
init_define_process_env();
|
|
30421
|
-
import { useCallback as
|
|
30381
|
+
import { useCallback as useCallback15 } from "react";
|
|
30422
30382
|
import {
|
|
30423
30383
|
selectPeerSharingAudio,
|
|
30424
30384
|
selectScreenShareAudioByPeerID,
|
|
30425
|
-
useHMSActions as
|
|
30426
|
-
useHMSStore as
|
|
30385
|
+
useHMSActions as useHMSActions18,
|
|
30386
|
+
useHMSStore as useHMSStore23
|
|
30427
30387
|
} from "@100mslive/react-sdk";
|
|
30428
30388
|
var useScreenshareAudio = () => {
|
|
30429
|
-
const hmsActions2 =
|
|
30430
|
-
const peer =
|
|
30431
|
-
const track =
|
|
30432
|
-
const handleMute =
|
|
30389
|
+
const hmsActions2 = useHMSActions18();
|
|
30390
|
+
const peer = useHMSStore23(selectPeerSharingAudio);
|
|
30391
|
+
const track = useHMSStore23(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
|
|
30392
|
+
const handleMute = useCallback15(() => {
|
|
30433
30393
|
if (!peer.isLocal) {
|
|
30434
30394
|
hmsActions2.setVolume(!track.volume ? 100 : 0, track.id);
|
|
30435
30395
|
} else {
|
|
@@ -30461,28 +30421,20 @@ var getRecordingText = ({ isBrowserRecordingOn, isServerRecordingOn, isHLSRecord
|
|
|
30461
30421
|
return title.join(delimiter);
|
|
30462
30422
|
};
|
|
30463
30423
|
var AdditionalRoomState = () => {
|
|
30464
|
-
var _a8, _b7
|
|
30465
|
-
const playlist = usePlaylistMusic();
|
|
30424
|
+
var _a8, _b7;
|
|
30466
30425
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
|
30467
30426
|
const screenshareAudio = useScreenshareAudio();
|
|
30468
30427
|
const [open, setOpen] = useState24(false);
|
|
30469
|
-
const isPlaylistInactive = [
|
|
30470
|
-
!playlist.peer || !playlist.track,
|
|
30471
|
-
!((_a8 = playlist.peer) == null ? void 0 : _a8.isLocal) && !((_b7 = playlist.track) == null ? void 0 : _b7.enabled),
|
|
30472
|
-
((_c = playlist.peer) == null ? void 0 : _c.isLocal) && !playlist.selection
|
|
30473
|
-
].some(Boolean);
|
|
30474
30428
|
const isAudioshareInactive = [
|
|
30475
30429
|
!screenshareAudio.peer || !screenshareAudio.track,
|
|
30476
|
-
!((
|
|
30430
|
+
!((_a8 = screenshareAudio.peer) == null ? void 0 : _a8.isLocal) && !((_b7 = screenshareAudio.track) == null ? void 0 : _b7.enabled)
|
|
30477
30431
|
].some(Boolean);
|
|
30478
|
-
const
|
|
30479
|
-
const localPeerID = useHMSStore25(selectLocalPeerID5);
|
|
30480
|
-
const isVideoPlayListPlaying = !!(peerSharingPlaylist == null ? void 0 : peerSharingPlaylist.id);
|
|
30432
|
+
const localPeerID = useHMSStore24(selectLocalPeerID5);
|
|
30481
30433
|
const { screenSharingPeerName, screenSharingPeerId, screenShareVideoTrackId } = useScreenShare();
|
|
30482
30434
|
const isVideoScreenSharingOn = !!screenShareVideoTrackId;
|
|
30483
30435
|
const shouldShowScreenShareState = isAudioOnly && isVideoScreenSharingOn;
|
|
30484
|
-
const shouldShowVideoState = isAudioOnly
|
|
30485
|
-
if (
|
|
30436
|
+
const shouldShowVideoState = isAudioOnly;
|
|
30437
|
+
if (isAudioshareInactive && !shouldShowScreenShareState && !shouldShowVideoState) {
|
|
30486
30438
|
return null;
|
|
30487
30439
|
}
|
|
30488
30440
|
return /* @__PURE__ */ React57.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React57.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React57.createElement(
|
|
@@ -30501,31 +30453,8 @@ var AdditionalRoomState = () => {
|
|
|
30501
30453
|
!isAudioshareInactive && /* @__PURE__ */ React57.createElement(Tooltip, { title: "Screenshare Audio" }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React57.createElement(MusicIcon, { width: 24, height: 24 }))),
|
|
30502
30454
|
shouldShowScreenShareState && /* @__PURE__ */ React57.createElement(Tooltip, { title: "Screenshare" }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React57.createElement(ShareScreenIcon, { width: 24, height: 24 }))),
|
|
30503
30455
|
shouldShowVideoState && /* @__PURE__ */ React57.createElement(Tooltip, { title: "video playlist" }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React57.createElement(VideoPlayerIcon, { width: 24, height: 24 }))),
|
|
30504
|
-
!isPlaylistInactive && /* @__PURE__ */ React57.createElement(Tooltip, { title: "Playlist Music" }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React57.createElement(AudioPlayerIcon, { width: 24, height: 24 }))),
|
|
30505
30456
|
/* @__PURE__ */ React57.createElement(Box, { css: { "@lg": { display: "none" }, color: "$on_surface_low" } }, open ? /* @__PURE__ */ React57.createElement(ChevronUpIcon4, null) : /* @__PURE__ */ React57.createElement(ChevronDownIcon4, null))
|
|
30506
|
-
)), /* @__PURE__ */ React57.createElement(Dropdown.Content, { sideOffset: 5, align: "end", css: { w: "$60" } }, !
|
|
30507
|
-
Text,
|
|
30508
|
-
{
|
|
30509
|
-
variant: "sm",
|
|
30510
|
-
css: { color: "$alert_error_default", cursor: "pointer", ml: "$2" },
|
|
30511
|
-
onClick: (e) => {
|
|
30512
|
-
e.preventDefault();
|
|
30513
|
-
playlist.selection.playing ? playlist.pause() : playlist.play(playlist.selection.id);
|
|
30514
|
-
}
|
|
30515
|
-
},
|
|
30516
|
-
playlist.selection.playing ? "Pause" : "Play"
|
|
30517
|
-
) : /* @__PURE__ */ React57.createElement(
|
|
30518
|
-
Text,
|
|
30519
|
-
{
|
|
30520
|
-
variant: "sm",
|
|
30521
|
-
css: { color: "$alert_error_default", ml: "$2", cursor: "pointer" },
|
|
30522
|
-
onClick: (e) => {
|
|
30523
|
-
e.preventDefault();
|
|
30524
|
-
playlist.setVolume(!playlist.track.volume ? 100 : 0);
|
|
30525
|
-
}
|
|
30526
|
-
},
|
|
30527
|
-
playlist.track.volume === 0 ? "Unmute" : "Mute"
|
|
30528
|
-
)), !isAudioshareInactive && /* @__PURE__ */ React57.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React57.createElement(MusicIcon, { width: 24, height: 24 }), /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Music is playing"), /* @__PURE__ */ React57.createElement(
|
|
30457
|
+
)), /* @__PURE__ */ React57.createElement(Dropdown.Content, { sideOffset: 5, align: "end", css: { w: "$60" } }, !isAudioshareInactive && /* @__PURE__ */ React57.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React57.createElement(MusicIcon, { width: 24, height: 24 }), /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Music is playing"), /* @__PURE__ */ React57.createElement(
|
|
30529
30458
|
Text,
|
|
30530
30459
|
{
|
|
30531
30460
|
variant: "sm",
|
|
@@ -30536,19 +30465,19 @@ var AdditionalRoomState = () => {
|
|
|
30536
30465
|
}
|
|
30537
30466
|
},
|
|
30538
30467
|
screenshareAudio.muted ? "Unmute" : "Mute"
|
|
30539
|
-
)), shouldShowScreenShareState && /* @__PURE__ */ React57.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React57.createElement(ShareScreenIcon, { width: 24, height: 24 }), /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, `Shared by: ${screenSharingPeerId === localPeerID ? "You" : screenSharingPeerName}`))
|
|
30468
|
+
)), shouldShowScreenShareState && /* @__PURE__ */ React57.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React57.createElement(ShareScreenIcon, { width: 24, height: 24 }), /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, `Shared by: ${screenSharingPeerId === localPeerID ? "You" : screenSharingPeerName}`))));
|
|
30540
30469
|
};
|
|
30541
30470
|
|
|
30542
30471
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
|
30543
30472
|
var LiveStatus = () => {
|
|
30544
30473
|
var _a8;
|
|
30545
30474
|
const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
|
|
30546
|
-
const hlsState =
|
|
30475
|
+
const hlsState = useHMSStore25(selectHLSState4);
|
|
30547
30476
|
const isMobile = useMedia8(config.media.md);
|
|
30548
30477
|
const intervalRef = useRef15(null);
|
|
30549
30478
|
const { screenType } = useRoomLayoutConferencingScreen();
|
|
30550
30479
|
const [liveTime, setLiveTime] = useState25(0);
|
|
30551
|
-
const startTimer =
|
|
30480
|
+
const startTimer = useCallback16(() => {
|
|
30552
30481
|
intervalRef.current = setInterval(() => {
|
|
30553
30482
|
var _a9;
|
|
30554
30483
|
const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
|
|
@@ -30590,7 +30519,7 @@ var LiveStatus = () => {
|
|
|
30590
30519
|
};
|
|
30591
30520
|
var RecordingStatus = () => {
|
|
30592
30521
|
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
|
|
30593
|
-
const permissions =
|
|
30522
|
+
const permissions = useHMSStore25(selectPermissions7);
|
|
30594
30523
|
const isMobile = useMedia8(config.media.md);
|
|
30595
30524
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
|
30596
30525
|
// so no need to show this as it duplicates
|
|
@@ -30623,7 +30552,7 @@ var RecordingStatus = () => {
|
|
|
30623
30552
|
);
|
|
30624
30553
|
};
|
|
30625
30554
|
var RecordingPauseStatus = () => {
|
|
30626
|
-
const recording =
|
|
30555
|
+
const recording = useHMSStore25(selectRecordingState2);
|
|
30627
30556
|
if (recording.hls && recording.hls.state === bs.PAUSED) {
|
|
30628
30557
|
return /* @__PURE__ */ React58.createElement(
|
|
30629
30558
|
Tooltip,
|
|
@@ -30650,11 +30579,11 @@ var RecordingPauseStatus = () => {
|
|
|
30650
30579
|
return null;
|
|
30651
30580
|
};
|
|
30652
30581
|
var StartRecording2 = () => {
|
|
30653
|
-
const permissions =
|
|
30582
|
+
const permissions = useHMSStore25(selectPermissions7);
|
|
30654
30583
|
const [open, setOpen] = useState25(false);
|
|
30655
30584
|
const { startRecording, recordingStarted } = useRecordingHandler();
|
|
30656
30585
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming6();
|
|
30657
|
-
const hmsActions2 =
|
|
30586
|
+
const hmsActions2 = useHMSActions19();
|
|
30658
30587
|
if (!(permissions == null ? void 0 : permissions.browserRecording) || isHLSRunning) {
|
|
30659
30588
|
return null;
|
|
30660
30589
|
}
|
|
@@ -30698,9 +30627,9 @@ var StartRecording2 = () => {
|
|
|
30698
30627
|
);
|
|
30699
30628
|
};
|
|
30700
30629
|
var StreamActions = () => {
|
|
30701
|
-
const isConnected =
|
|
30630
|
+
const isConnected = useHMSStore25(selectIsConnectedToRoom6);
|
|
30702
30631
|
const isMobile = useMedia8(config.media.md);
|
|
30703
|
-
const roomState =
|
|
30632
|
+
const roomState = useHMSStore25(selectRoomState3);
|
|
30704
30633
|
return /* @__PURE__ */ React58.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React58.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React58.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React58.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React58.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React58.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React58.createElement(StartRecording2, null) : null);
|
|
30705
30634
|
};
|
|
30706
30635
|
var StopRecordingInSheet = ({
|
|
@@ -30724,7 +30653,7 @@ var StopRecordingInSheet = ({
|
|
|
30724
30653
|
init_define_process_env();
|
|
30725
30654
|
import React60, { useState as useState26 } from "react";
|
|
30726
30655
|
import { useMedia as useMedia9 } from "react-use";
|
|
30727
|
-
import { selectLocalPeerName, useHMSActions as
|
|
30656
|
+
import { selectLocalPeerName, useHMSActions as useHMSActions20, useHMSStore as useHMSStore26 } from "@100mslive/react-sdk";
|
|
30728
30657
|
|
|
30729
30658
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
|
30730
30659
|
init_define_process_env();
|
|
@@ -30839,8 +30768,8 @@ var ChangeNameModal = ({
|
|
|
30839
30768
|
openParentSheet = void 0
|
|
30840
30769
|
}) => {
|
|
30841
30770
|
const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
|
|
30842
|
-
const hmsActions2 =
|
|
30843
|
-
const localPeerName =
|
|
30771
|
+
const hmsActions2 = useHMSActions20();
|
|
30772
|
+
const localPeerName = useHMSStore26(selectLocalPeerName);
|
|
30844
30773
|
const [currentName, setCurrentName] = useState26(localPeerName);
|
|
30845
30774
|
const isMobile = useMedia9(config.media.md);
|
|
30846
30775
|
const changeName = () => __async(void 0, null, function* () {
|
|
@@ -30880,18 +30809,18 @@ var ChangeNameModal = ({
|
|
|
30880
30809
|
|
|
30881
30810
|
// src/Prebuilt/components/AppData/useSheet.ts
|
|
30882
30811
|
init_define_process_env();
|
|
30883
|
-
import { useCallback as
|
|
30884
|
-
import { selectAppData as selectAppData4, useHMSActions as
|
|
30812
|
+
import { useCallback as useCallback17 } from "react";
|
|
30813
|
+
import { selectAppData as selectAppData4, useHMSActions as useHMSActions21, useHMSStore as useHMSStore27, useHMSVanillaStore as useHMSVanillaStore7 } from "@100mslive/react-sdk";
|
|
30885
30814
|
var useIsSheetTypeOpen = (sheetType) => {
|
|
30886
30815
|
if (!sheetType) {
|
|
30887
30816
|
throw Error("Pass one of the sheet options");
|
|
30888
30817
|
}
|
|
30889
|
-
return
|
|
30818
|
+
return useHMSStore27(selectAppData4(APP_DATA.sheet)) === sheetType;
|
|
30890
30819
|
};
|
|
30891
30820
|
var useSheetToggle = (sheetType) => {
|
|
30892
|
-
const hmsActions2 =
|
|
30821
|
+
const hmsActions2 = useHMSActions21();
|
|
30893
30822
|
const vanillaStore = useHMSVanillaStore7();
|
|
30894
|
-
const toggleSheet =
|
|
30823
|
+
const toggleSheet = useCallback17(() => {
|
|
30895
30824
|
const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
|
|
30896
30825
|
hmsActions2.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
|
|
30897
30826
|
}, [vanillaStore, hmsActions2, sheetType]);
|
|
@@ -30901,9 +30830,9 @@ var useSheetToggle = (sheetType) => {
|
|
|
30901
30830
|
// src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx
|
|
30902
30831
|
init_define_process_env();
|
|
30903
30832
|
import { useEffect as useEffect17, useState as useState27 } from "react";
|
|
30904
|
-
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as
|
|
30833
|
+
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore28 } from "@100mslive/react-sdk";
|
|
30905
30834
|
var useUnreadPollQuizPresent = () => {
|
|
30906
|
-
const localPeerID =
|
|
30835
|
+
const localPeerID = useHMSStore28(ye);
|
|
30907
30836
|
const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
|
|
30908
30837
|
const [unreadPollQuiz, setUnreadPollQuiz] = useState27(false);
|
|
30909
30838
|
useEffect17(() => {
|
|
@@ -30932,9 +30861,9 @@ var MwebOptions = ({
|
|
|
30932
30861
|
elements,
|
|
30933
30862
|
screenType
|
|
30934
30863
|
}) => {
|
|
30935
|
-
const hmsActions2 =
|
|
30936
|
-
const permissions =
|
|
30937
|
-
const isConnected =
|
|
30864
|
+
const hmsActions2 = useHMSActions22();
|
|
30865
|
+
const permissions = useHMSStore29(selectPermissions8);
|
|
30866
|
+
const isConnected = useHMSStore29(selectIsConnectedToRoom7);
|
|
30938
30867
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming7();
|
|
30939
30868
|
const [openModals, setOpenModals] = useState28(/* @__PURE__ */ new Set());
|
|
30940
30869
|
const [openOptionsSheet, setOpenOptionsSheet] = useState28(false);
|
|
@@ -30944,7 +30873,7 @@ var MwebOptions = ({
|
|
|
30944
30873
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
30945
30874
|
const { showPolls } = useShowPolls();
|
|
30946
30875
|
const togglePollView = usePollViewToggle();
|
|
30947
|
-
const peerCount =
|
|
30876
|
+
const peerCount = useHMSStore29(selectPeerCount3);
|
|
30948
30877
|
const emojiCardRef = useRef16(null);
|
|
30949
30878
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
|
30950
30879
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
|
@@ -30953,10 +30882,10 @@ var MwebOptions = ({
|
|
|
30953
30882
|
const isMobileHLSStream = useMobileHLSStream();
|
|
30954
30883
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
30955
30884
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
|
30956
|
-
const isLocalVideoEnabled =
|
|
30885
|
+
const isLocalVideoEnabled = useHMSStore29(selectIsLocalVideoEnabled4);
|
|
30957
30886
|
const { startRecording, isRecordingLoading } = useRecordingHandler();
|
|
30958
|
-
const isTranscriptionAllowed =
|
|
30959
|
-
const isTranscriptionEnabled =
|
|
30887
|
+
const isTranscriptionAllowed = useHMSStore29(selectIsTranscriptionAllowedByMode2(HMSTranscriptionMode3.CAPTION));
|
|
30888
|
+
const isTranscriptionEnabled = useHMSStore29(selectIsTranscriptionEnabled4);
|
|
30960
30889
|
const [isCaptionEnabled] = useSetIsCaptionEnabled();
|
|
30961
30890
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
|
30962
30891
|
const updateState = (modalName, value) => {
|
|
@@ -31212,7 +31141,7 @@ var RaiseHand = ({ css: css2 }) => {
|
|
|
31212
31141
|
// src/Prebuilt/components/ScreenShareToggle.jsx
|
|
31213
31142
|
init_define_process_env();
|
|
31214
31143
|
import React70, { Fragment as Fragment8 } from "react";
|
|
31215
|
-
import { selectIsAllowedToPublish as selectIsAllowedToPublish2, useAwayNotifications, useHMSStore as
|
|
31144
|
+
import { selectIsAllowedToPublish as selectIsAllowedToPublish2, useAwayNotifications, useHMSStore as useHMSStore30, useScreenShare as useScreenShare3 } from "@100mslive/react-sdk";
|
|
31216
31145
|
import { ShareScreenIcon as ShareScreenIcon2 } from "@100mslive/react-icons";
|
|
31217
31146
|
|
|
31218
31147
|
// src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx
|
|
@@ -31672,7 +31601,7 @@ function ShareScreenOptions() {
|
|
|
31672
31601
|
|
|
31673
31602
|
// src/Prebuilt/components/ScreenShareToggle.jsx
|
|
31674
31603
|
var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
31675
|
-
const isAllowedToPublish =
|
|
31604
|
+
const isAllowedToPublish = useHMSStore30(selectIsAllowedToPublish2);
|
|
31676
31605
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
|
31677
31606
|
const { amIScreenSharing, screenShareVideoTrackId: video, toggleScreenShare } = useScreenShare3();
|
|
31678
31607
|
const { requestPermission } = useAwayNotifications();
|
|
@@ -31700,14 +31629,14 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
|
31700
31629
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
|
31701
31630
|
init_define_process_env();
|
|
31702
31631
|
import React71 from "react";
|
|
31703
|
-
import { selectAppData as selectAppData5, selectIsEffectsEnabled, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5, useHMSStore as
|
|
31632
|
+
import { selectAppData as selectAppData5, selectIsEffectsEnabled, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5, useHMSStore as useHMSStore31 } from "@100mslive/react-sdk";
|
|
31704
31633
|
import { VirtualBackgroundIcon as VirtualBackgroundIcon2 } from "@100mslive/react-icons";
|
|
31705
31634
|
var VBToggle = () => {
|
|
31706
31635
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
|
31707
31636
|
const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
|
|
31708
|
-
const isVideoOn =
|
|
31709
|
-
const isEffectsEnabled =
|
|
31710
|
-
const loadingEffects =
|
|
31637
|
+
const isVideoOn = useHMSStore31(selectIsLocalVideoEnabled5);
|
|
31638
|
+
const isEffectsEnabled = useHMSStore31(selectIsEffectsEnabled);
|
|
31639
|
+
const loadingEffects = useHMSStore31(selectAppData5(APP_DATA.loadingEffects));
|
|
31711
31640
|
if (!isVideoOn || !isEffectsEnabled && isSafari) {
|
|
31712
31641
|
return null;
|
|
31713
31642
|
}
|
|
@@ -31717,10 +31646,10 @@ var VBToggle = () => {
|
|
|
31717
31646
|
// src/Prebuilt/components/Footer/ChatToggle.tsx
|
|
31718
31647
|
init_define_process_env();
|
|
31719
31648
|
import React72 from "react";
|
|
31720
|
-
import { selectUnreadHMSMessagesCount, useHMSStore as
|
|
31649
|
+
import { selectUnreadHMSMessagesCount, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
|
|
31721
31650
|
import { ChatIcon } from "@100mslive/react-icons";
|
|
31722
31651
|
var ChatToggle = ({ onClick }) => {
|
|
31723
|
-
const countUnreadMessages =
|
|
31652
|
+
const countUnreadMessages = useHMSStore32(selectUnreadHMSMessagesCount);
|
|
31724
31653
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
31725
31654
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
|
31726
31655
|
return /* @__PURE__ */ React72.createElement(
|
|
@@ -31761,7 +31690,7 @@ var ChatToggle = ({ onClick }) => {
|
|
|
31761
31690
|
|
|
31762
31691
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
|
31763
31692
|
init_define_process_env();
|
|
31764
|
-
import React77, { Fragment as Fragment9, useCallback as
|
|
31693
|
+
import React77, { Fragment as Fragment9, useCallback as useCallback18, useState as useState33 } from "react";
|
|
31765
31694
|
import { useDebounce, useMedia as useMedia11 } from "react-use";
|
|
31766
31695
|
import {
|
|
31767
31696
|
HMSPeerType as HMSPeerType2,
|
|
@@ -31773,7 +31702,7 @@ import {
|
|
|
31773
31702
|
selectLocalPeerID as selectLocalPeerID7,
|
|
31774
31703
|
selectPeerCount as selectPeerCount4,
|
|
31775
31704
|
selectPermissions as selectPermissions13,
|
|
31776
|
-
useHMSStore as
|
|
31705
|
+
useHMSStore as useHMSStore40
|
|
31777
31706
|
} from "@100mslive/react-sdk";
|
|
31778
31707
|
import {
|
|
31779
31708
|
AddIcon as AddIcon2,
|
|
@@ -31791,7 +31720,7 @@ import {
|
|
|
31791
31720
|
// src/Prebuilt/components/Connection/ConnectionIndicator.tsx
|
|
31792
31721
|
init_define_process_env();
|
|
31793
31722
|
import React73 from "react";
|
|
31794
|
-
import { HMSPeerType, selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, selectPeerTypeByID, useHMSStore as
|
|
31723
|
+
import { HMSPeerType, selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, selectPeerTypeByID, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
|
|
31795
31724
|
import { PoorConnectivityIcon } from "@100mslive/react-icons";
|
|
31796
31725
|
|
|
31797
31726
|
// src/Prebuilt/components/Connection/connectionQualityUtils.js
|
|
@@ -31844,8 +31773,8 @@ var ConnectionIndicator = ({
|
|
|
31844
31773
|
hideBg = false
|
|
31845
31774
|
}) => {
|
|
31846
31775
|
var _a8;
|
|
31847
|
-
const downlinkQuality = (_a8 =
|
|
31848
|
-
const peerType =
|
|
31776
|
+
const downlinkQuality = (_a8 = useHMSStore33(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a8.downlinkQuality;
|
|
31777
|
+
const peerType = useHMSStore33(selectPeerTypeByID(peerId));
|
|
31849
31778
|
const { theme: theme2 } = useTheme();
|
|
31850
31779
|
const defaultColor = theme2.colors.on_surface_low;
|
|
31851
31780
|
if (downlinkQuality === -1 || downlinkQuality === void 0 || peerType === HMSPeerType.SIP) {
|
|
@@ -31906,13 +31835,13 @@ var ConnectionIndicator = ({
|
|
|
31906
31835
|
// src/Prebuilt/components/RemoveParticipant.tsx
|
|
31907
31836
|
init_define_process_env();
|
|
31908
31837
|
import React74 from "react";
|
|
31909
|
-
import { selectLocalPeerID as selectLocalPeerID6, selectPermissions as selectPermissions9, useHMSActions as
|
|
31838
|
+
import { selectLocalPeerID as selectLocalPeerID6, selectPermissions as selectPermissions9, useHMSActions as useHMSActions23, useHMSStore as useHMSStore34 } from "@100mslive/react-sdk";
|
|
31910
31839
|
import { PeopleRemoveIcon as PeopleRemoveIcon2 } from "@100mslive/react-icons";
|
|
31911
31840
|
var RemoveParticipant = ({ peerId }) => {
|
|
31912
31841
|
var _a8;
|
|
31913
|
-
const canRemoveOthers = (_a8 =
|
|
31914
|
-
const localPeerId =
|
|
31915
|
-
const actions =
|
|
31842
|
+
const canRemoveOthers = (_a8 = useHMSStore34(selectPermissions9)) == null ? void 0 : _a8.removeOthers;
|
|
31843
|
+
const localPeerId = useHMSStore34(selectLocalPeerID6);
|
|
31844
|
+
const actions = useHMSActions23();
|
|
31916
31845
|
if (peerId === localPeerId || !canRemoveOthers) {
|
|
31917
31846
|
return null;
|
|
31918
31847
|
}
|
|
@@ -31939,7 +31868,7 @@ init_define_process_env();
|
|
|
31939
31868
|
import React76, { useEffect as useEffect18 } from "react";
|
|
31940
31869
|
import { useMeasure } from "react-use";
|
|
31941
31870
|
import { FixedSizeList } from "react-window";
|
|
31942
|
-
import { selectIsLargeRoom, useHMSStore as
|
|
31871
|
+
import { selectIsLargeRoom, useHMSStore as useHMSStore37, usePaginatedParticipants } from "@100mslive/react-sdk";
|
|
31943
31872
|
import { AddIcon, ChevronRightIcon, CrossIcon as CrossIcon13 } from "@100mslive/react-icons";
|
|
31944
31873
|
|
|
31945
31874
|
// src/Prebuilt/components/Footer/RoleOptions.tsx
|
|
@@ -31950,8 +31879,8 @@ import {
|
|
|
31950
31879
|
selectPermissions as selectPermissions10,
|
|
31951
31880
|
selectRoleByRoleName,
|
|
31952
31881
|
selectTracksMap as selectTracksMap3,
|
|
31953
|
-
useHMSActions as
|
|
31954
|
-
useHMSStore as
|
|
31882
|
+
useHMSActions as useHMSActions24,
|
|
31883
|
+
useHMSStore as useHMSStore35
|
|
31955
31884
|
} from "@100mslive/react-sdk";
|
|
31956
31885
|
import {
|
|
31957
31886
|
MicOffIcon as MicOffIcon3,
|
|
@@ -32006,13 +31935,13 @@ var DropdownWrapper = ({ children }) => {
|
|
|
32006
31935
|
));
|
|
32007
31936
|
};
|
|
32008
31937
|
var RoleOptions = ({ roleName, peerList }) => {
|
|
32009
|
-
const permissions =
|
|
32010
|
-
const hmsActions2 =
|
|
31938
|
+
const permissions = useHMSStore35(selectPermissions10);
|
|
31939
|
+
const hmsActions2 = useHMSActions24();
|
|
32011
31940
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
32012
31941
|
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
|
32013
31942
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
|
32014
|
-
const role =
|
|
32015
|
-
const tracks =
|
|
31943
|
+
const role = useHMSStore35(selectRoleByRoleName(roleName));
|
|
31944
|
+
const tracks = useHMSStore35(selectTracksMap3);
|
|
32016
31945
|
if (!role) {
|
|
32017
31946
|
return null;
|
|
32018
31947
|
}
|
|
@@ -32089,10 +32018,10 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
|
32089
32018
|
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
|
32090
32019
|
init_define_process_env();
|
|
32091
32020
|
import { match as match7, P as P4 } from "ts-pattern";
|
|
32092
|
-
import { selectPermissions as selectPermissions11, useHMSActions as
|
|
32021
|
+
import { selectPermissions as selectPermissions11, useHMSActions as useHMSActions25, useHMSStore as useHMSStore36 } from "@100mslive/react-sdk";
|
|
32093
32022
|
var useGroupOnStageActions = ({ peers }) => {
|
|
32094
32023
|
var _a8;
|
|
32095
|
-
const hmsActions2 =
|
|
32024
|
+
const hmsActions2 = useHMSActions25();
|
|
32096
32025
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
32097
32026
|
const {
|
|
32098
32027
|
bring_to_stage_label,
|
|
@@ -32101,7 +32030,7 @@ var useGroupOnStageActions = ({ peers }) => {
|
|
|
32101
32030
|
off_stage_roles = [],
|
|
32102
32031
|
skip_preview_for_role_change = false
|
|
32103
32032
|
} = elements.on_stage_exp || {};
|
|
32104
|
-
const canChangeRole = (_a8 =
|
|
32033
|
+
const canChangeRole = (_a8 = useHMSStore36(selectPermissions11)) == null ? void 0 : _a8.changeRole;
|
|
32105
32034
|
const offStageRolePeers = peers.filter(
|
|
32106
32035
|
(peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
|
|
32107
32036
|
{
|
|
@@ -32167,7 +32096,7 @@ var RoleAccordion = ({
|
|
|
32167
32096
|
onActive
|
|
32168
32097
|
}) => {
|
|
32169
32098
|
const [ref, { width }] = useMeasure();
|
|
32170
|
-
const isLargeRoom =
|
|
32099
|
+
const isLargeRoom = useHMSStore37(selectIsLargeRoom);
|
|
32171
32100
|
const { peers, total, loadPeers } = usePaginatedParticipants({ role: roleName, limit: 10 });
|
|
32172
32101
|
const isOffStageRole = roleName && offStageRoles.includes(roleName);
|
|
32173
32102
|
let peersInAccordion = peerList;
|
|
@@ -32257,10 +32186,10 @@ var RoleAccordion = ({
|
|
|
32257
32186
|
// src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
|
|
32258
32187
|
init_define_process_env();
|
|
32259
32188
|
import { useEffect as useEffect19 } from "react";
|
|
32260
|
-
import { selectAppData as selectAppData6, useHMSStore as
|
|
32189
|
+
import { selectAppData as selectAppData6, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
|
|
32261
32190
|
var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
|
32262
32191
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
32263
|
-
const sidepane =
|
|
32192
|
+
const sidepane = useHMSStore38(selectAppData6(APP_DATA.sidePane));
|
|
32264
32193
|
const resetSidePane = useSidepaneReset();
|
|
32265
32194
|
useEffect19(() => {
|
|
32266
32195
|
if (sidepane === sidepaneOption && !(elements == null ? void 0 : elements[layoutKey])) {
|
|
@@ -32272,10 +32201,10 @@ var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
|
|
32272
32201
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
|
32273
32202
|
init_define_process_env();
|
|
32274
32203
|
import { useState as useState32 } from "react";
|
|
32275
|
-
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as
|
|
32204
|
+
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions26, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
|
|
32276
32205
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
|
32277
32206
|
var _a8, _b7;
|
|
32278
|
-
const hmsActions2 =
|
|
32207
|
+
const hmsActions2 = useHMSActions26();
|
|
32279
32208
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
32280
32209
|
const {
|
|
32281
32210
|
bring_to_stage_label,
|
|
@@ -32285,9 +32214,9 @@ var usePeerOnStageActions = ({ peerId, role }) => {
|
|
|
32285
32214
|
skip_preview_for_role_change = false
|
|
32286
32215
|
} = elements.on_stage_exp || {};
|
|
32287
32216
|
const isInStage = role === on_stage_role;
|
|
32288
|
-
const canChangeRole = (_a8 =
|
|
32217
|
+
const canChangeRole = (_a8 = useHMSStore39(selectPermissions12)) == null ? void 0 : _a8.changeRole;
|
|
32289
32218
|
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
|
|
32290
|
-
const prevRole = (_b7 =
|
|
32219
|
+
const prevRole = (_b7 = useHMSStore39(selectPeerMetadata3(peerId))) == null ? void 0 : _b7.prevRole;
|
|
32291
32220
|
const [open, setOpen] = useState32(false);
|
|
32292
32221
|
const lowerPeerHand = () => __async(void 0, null, function* () {
|
|
32293
32222
|
yield hmsActions2.lowerRemotePeerHand(peerId);
|
|
@@ -32322,9 +32251,9 @@ var ParticipantList = ({
|
|
|
32322
32251
|
}) => {
|
|
32323
32252
|
const [filter, setFilter] = useState33();
|
|
32324
32253
|
const { participants, isConnected, peerCount } = useParticipants(filter);
|
|
32325
|
-
const isLargeRoom =
|
|
32254
|
+
const isLargeRoom = useHMSStore40(selectIsLargeRoom2);
|
|
32326
32255
|
const peersOrderedByRoles = {};
|
|
32327
|
-
const handRaisedPeers =
|
|
32256
|
+
const handRaisedPeers = useHMSStore40(selectHandRaisedPeers);
|
|
32328
32257
|
participants.forEach((participant) => {
|
|
32329
32258
|
if (participant.roleName) {
|
|
32330
32259
|
if (peersOrderedByRoles[participant.roleName] === void 0) {
|
|
@@ -32341,7 +32270,7 @@ var ParticipantList = ({
|
|
|
32341
32270
|
});
|
|
32342
32271
|
}
|
|
32343
32272
|
useSidepaneResetOnLayoutUpdate("participant_list", SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
32344
|
-
const onSearch =
|
|
32273
|
+
const onSearch = useCallback18((value) => {
|
|
32345
32274
|
setFilter((filterValue) => {
|
|
32346
32275
|
if (!filterValue) {
|
|
32347
32276
|
filterValue = {};
|
|
@@ -32388,7 +32317,7 @@ var ParticipantList = ({
|
|
|
32388
32317
|
));
|
|
32389
32318
|
};
|
|
32390
32319
|
var ParticipantCount = () => {
|
|
32391
|
-
const peerCount =
|
|
32320
|
+
const peerCount = useHMSStore40(selectPeerCount4);
|
|
32392
32321
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
32393
32322
|
const isPeerListOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
32394
32323
|
if (peerCount === 0) {
|
|
@@ -32420,7 +32349,7 @@ var Participant = ({
|
|
|
32420
32349
|
isHandRaisedAccordion,
|
|
32421
32350
|
style
|
|
32422
32351
|
}) => {
|
|
32423
|
-
const localPeerId =
|
|
32352
|
+
const localPeerId = useHMSStore40(selectLocalPeerID7);
|
|
32424
32353
|
return /* @__PURE__ */ React77.createElement(
|
|
32425
32354
|
Flex,
|
|
32426
32355
|
{
|
|
@@ -32519,13 +32448,13 @@ var ParticipantActions = React77.memo(
|
|
|
32519
32448
|
isHandRaisedAccordion
|
|
32520
32449
|
}) => {
|
|
32521
32450
|
var _a8, _b7;
|
|
32522
|
-
const isHandRaised =
|
|
32523
|
-
const canChangeRole = (_a8 =
|
|
32524
|
-
const canRemoveOthers = (_b7 =
|
|
32451
|
+
const isHandRaised = useHMSStore40(selectHasPeerHandRaised2(peerId));
|
|
32452
|
+
const canChangeRole = (_a8 = useHMSStore40(selectPermissions13)) == null ? void 0 : _a8.changeRole;
|
|
32453
|
+
const canRemoveOthers = (_b7 = useHMSStore40(selectPermissions13)) == null ? void 0 : _b7.removeOthers;
|
|
32525
32454
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
32526
32455
|
const { on_stage_exp } = elements || {};
|
|
32527
32456
|
const shouldShowMoreActions = on_stage_exp && canChangeRole || canRemoveOthers;
|
|
32528
|
-
const isAudioMuted = !
|
|
32457
|
+
const isAudioMuted = !useHMSStore40(selectIsPeerAudioEnabled(peerId));
|
|
32529
32458
|
return /* @__PURE__ */ React77.createElement(
|
|
32530
32459
|
Flex,
|
|
32531
32460
|
{
|
|
@@ -32585,9 +32514,9 @@ var ParticipantMoreActions = ({ peerId, role }) => {
|
|
|
32585
32514
|
isInStage,
|
|
32586
32515
|
shouldShowStageRoleChange
|
|
32587
32516
|
} = usePeerOnStageActions({ peerId, role });
|
|
32588
|
-
const canChangeRole = !!((_a8 =
|
|
32517
|
+
const canChangeRole = !!((_a8 = useHMSStore40(selectPermissions13)) == null ? void 0 : _a8.changeRole);
|
|
32589
32518
|
const [openRoleChangeModal, setOpenRoleChangeModal] = useState33(false);
|
|
32590
|
-
const roles =
|
|
32519
|
+
const roles = useHMSStore40(selectAvailableRoleNames5);
|
|
32591
32520
|
return /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React77.createElement(
|
|
32592
32521
|
Dropdown.Trigger,
|
|
32593
32522
|
{
|
|
@@ -32689,11 +32618,11 @@ var PollsToggle = () => {
|
|
|
32689
32618
|
// src/Prebuilt/components/Footer/WhiteboardToggle.tsx
|
|
32690
32619
|
init_define_process_env();
|
|
32691
32620
|
import React79 from "react";
|
|
32692
|
-
import { selectPeerScreenSharing, useHMSStore as
|
|
32621
|
+
import { selectPeerScreenSharing, useHMSStore as useHMSStore41, useWhiteboard } from "@100mslive/react-sdk";
|
|
32693
32622
|
import { PencilDrawIcon } from "@100mslive/react-icons";
|
|
32694
32623
|
var WhiteboardToggle = () => {
|
|
32695
32624
|
const { toggle, open, isOwner } = useWhiteboard();
|
|
32696
|
-
const peerSharing =
|
|
32625
|
+
const peerSharing = useHMSStore41(selectPeerScreenSharing);
|
|
32697
32626
|
const disabled = !!peerSharing || open && !isOwner;
|
|
32698
32627
|
if (!toggle) {
|
|
32699
32628
|
return null;
|
|
@@ -32790,15 +32719,15 @@ var Footer2 = ({
|
|
|
32790
32719
|
|
|
32791
32720
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
|
32792
32721
|
init_define_process_env();
|
|
32793
|
-
import React81, { useCallback as
|
|
32794
|
-
import { selectHLSState as selectHLSState5, useHMSActions as
|
|
32722
|
+
import React81, { useCallback as useCallback19, useState as useState34 } from "react";
|
|
32723
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions27, useHMSStore as useHMSStore42, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
|
32795
32724
|
function HLSFailureModal() {
|
|
32796
|
-
const hlsError =
|
|
32725
|
+
const hlsError = useHMSStore42(selectHLSState5).error || false;
|
|
32797
32726
|
const [openModal, setOpenModal] = useState34(!!hlsError);
|
|
32798
|
-
const hmsActions2 =
|
|
32727
|
+
const hmsActions2 = useHMSActions27();
|
|
32799
32728
|
const { isRTMPRunning } = useRecordingStreaming8();
|
|
32800
32729
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
|
32801
|
-
const startHLS =
|
|
32730
|
+
const startHLS = useCallback19(() => __async(this, null, function* () {
|
|
32802
32731
|
try {
|
|
32803
32732
|
if (isHLSStarted || isRTMPRunning) {
|
|
32804
32733
|
return;
|
|
@@ -32845,13 +32774,13 @@ import {
|
|
|
32845
32774
|
selectLocalPeerRoleName as selectLocalPeerRoleName4,
|
|
32846
32775
|
selectRoleChangeRequest,
|
|
32847
32776
|
useCustomEvent as useCustomEvent3,
|
|
32848
|
-
useHMSActions as
|
|
32849
|
-
useHMSStore as
|
|
32777
|
+
useHMSActions as useHMSActions44,
|
|
32778
|
+
useHMSStore as useHMSStore72
|
|
32850
32779
|
} from "@100mslive/react-sdk";
|
|
32851
32780
|
|
|
32852
32781
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
|
32853
32782
|
init_define_process_env();
|
|
32854
|
-
import React134, { Fragment as Fragment12, useCallback as
|
|
32783
|
+
import React134, { Fragment as Fragment12, useCallback as useCallback31, useEffect as useEffect38, useMemo as useMemo14, useState as useState57 } from "react";
|
|
32855
32784
|
import { useMeasure as useMeasure4, useMedia as useMedia26 } from "react-use";
|
|
32856
32785
|
import {
|
|
32857
32786
|
HMSRoomState as HMSRoomState5,
|
|
@@ -32861,7 +32790,7 @@ import {
|
|
|
32861
32790
|
selectRoomState as selectRoomState5,
|
|
32862
32791
|
selectVideoTrackByID as selectVideoTrackByID5,
|
|
32863
32792
|
useAVToggle as useAVToggle3,
|
|
32864
|
-
useHMSStore as
|
|
32793
|
+
useHMSStore as useHMSStore71,
|
|
32865
32794
|
useParticipants as useParticipants2,
|
|
32866
32795
|
usePreviewJoin,
|
|
32867
32796
|
useRecordingStreaming as useRecordingStreaming11
|
|
@@ -32873,7 +32802,7 @@ init_define_process_env();
|
|
|
32873
32802
|
import React130, { useEffect as useEffect37 } from "react";
|
|
32874
32803
|
import { useMedia as useMedia24 } from "react-use";
|
|
32875
32804
|
import { match as match11 } from "ts-pattern";
|
|
32876
|
-
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as
|
|
32805
|
+
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
|
|
32877
32806
|
|
|
32878
32807
|
// src/Prebuilt/components/Polls/Polls.tsx
|
|
32879
32808
|
init_define_process_env();
|
|
@@ -32886,15 +32815,15 @@ import {
|
|
|
32886
32815
|
selectLocalPeerRoleName,
|
|
32887
32816
|
selectPermissions as selectPermissions15,
|
|
32888
32817
|
selectPolls as selectPolls2,
|
|
32889
|
-
useHMSActions as
|
|
32890
|
-
useHMSStore as
|
|
32818
|
+
useHMSActions as useHMSActions28,
|
|
32819
|
+
useHMSStore as useHMSStore44
|
|
32891
32820
|
} from "@100mslive/react-sdk";
|
|
32892
32821
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
|
32893
32822
|
|
|
32894
32823
|
// src/Prebuilt/components/Streaming/Common.jsx
|
|
32895
32824
|
init_define_process_env();
|
|
32896
32825
|
import React82 from "react";
|
|
32897
|
-
import { selectPermissions as selectPermissions14, useHMSStore as
|
|
32826
|
+
import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
|
|
32898
32827
|
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon15, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
|
|
32899
32828
|
var ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
|
32900
32829
|
return /* @__PURE__ */ React82.createElement(
|
|
@@ -32995,7 +32924,7 @@ var StatusIndicator = ({ status }) => {
|
|
|
32995
32924
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
|
32996
32925
|
var PollsQuizMenu = () => {
|
|
32997
32926
|
const togglePollView = usePollViewToggle();
|
|
32998
|
-
const permissions =
|
|
32927
|
+
const permissions = useHMSStore44(selectPermissions15);
|
|
32999
32928
|
return /* @__PURE__ */ React84.createElement(Container3, { rounded: true }, /* @__PURE__ */ React84.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ React84.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ React84.createElement(AddMenu, null), /* @__PURE__ */ React84.createElement(PrevMenu, null)));
|
|
33000
32929
|
};
|
|
33001
32930
|
function InteractionSelectionCard({
|
|
@@ -33035,9 +32964,9 @@ function InteractionSelectionCard({
|
|
|
33035
32964
|
);
|
|
33036
32965
|
}
|
|
33037
32966
|
var AddMenu = () => {
|
|
33038
|
-
const actions =
|
|
32967
|
+
const actions = useHMSActions28();
|
|
33039
32968
|
const [title, setTitle] = useState35("");
|
|
33040
|
-
const localPeerRoleName =
|
|
32969
|
+
const localPeerRoleName = useHMSStore44(selectLocalPeerRoleName);
|
|
33041
32970
|
const [hideVoteCount, setHideVoteCount] = useState35(false);
|
|
33042
32971
|
const [error, setError] = useState35();
|
|
33043
32972
|
const [titleError, setTitleError] = useState35("");
|
|
@@ -33118,8 +33047,8 @@ var AddMenu = () => {
|
|
|
33118
33047
|
), /* @__PURE__ */ React84.createElement(ErrorText, { error: error || titleError })));
|
|
33119
33048
|
};
|
|
33120
33049
|
var PrevMenu = () => {
|
|
33121
|
-
const hmsActions2 =
|
|
33122
|
-
const polls =
|
|
33050
|
+
const hmsActions2 = useHMSActions28();
|
|
33051
|
+
const polls = useHMSStore44(selectPolls2);
|
|
33123
33052
|
const sortedPolls = useMemo7(
|
|
33124
33053
|
() => {
|
|
33125
33054
|
var _a8;
|
|
@@ -33130,7 +33059,7 @@ var PrevMenu = () => {
|
|
|
33130
33059
|
},
|
|
33131
33060
|
[polls]
|
|
33132
33061
|
);
|
|
33133
|
-
const permissions =
|
|
33062
|
+
const permissions = useHMSStore44(selectPermissions15);
|
|
33134
33063
|
useEffect22(() => {
|
|
33135
33064
|
const updatePolls = () => __async(void 0, null, function* () {
|
|
33136
33065
|
yield hmsActions2.interactivityCenter.getPolls();
|
|
@@ -33168,12 +33097,12 @@ var InteractionCard = ({ id, title, status }) => {
|
|
|
33168
33097
|
init_define_process_env();
|
|
33169
33098
|
import React94, { useMemo as useMemo9, useState as useState37 } from "react";
|
|
33170
33099
|
import { v4 as uuid2 } from "uuid";
|
|
33171
|
-
import { selectPollByID, useHMSActions as
|
|
33100
|
+
import { selectPollByID, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
|
33172
33101
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
|
33173
33102
|
|
|
33174
33103
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
|
33175
33104
|
init_define_process_env();
|
|
33176
|
-
import React92, { useCallback as
|
|
33105
|
+
import React92, { useCallback as useCallback20, useRef as useRef18, useState as useState36 } from "react";
|
|
33177
33106
|
import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
|
|
33178
33107
|
|
|
33179
33108
|
// src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
|
|
@@ -33487,13 +33416,13 @@ var QuestionForm = ({
|
|
|
33487
33416
|
weight,
|
|
33488
33417
|
isQuiz
|
|
33489
33418
|
});
|
|
33490
|
-
const handleOptionTextChange =
|
|
33419
|
+
const handleOptionTextChange = useCallback20(
|
|
33491
33420
|
(index2, text2) => {
|
|
33492
33421
|
setOptions((options2) => [...options2.slice(0, index2), __spreadProps(__spreadValues({}, options2[index2]), { text: text2 }), ...options2.slice(index2 + 1)]);
|
|
33493
33422
|
},
|
|
33494
33423
|
[setOptions]
|
|
33495
33424
|
);
|
|
33496
|
-
const removeOption =
|
|
33425
|
+
const removeOption = useCallback20(
|
|
33497
33426
|
(index2) => setOptions((options2) => {
|
|
33498
33427
|
const newOptions = [...options2];
|
|
33499
33428
|
newOptions.splice(index2, 1);
|
|
@@ -33501,7 +33430,7 @@ var QuestionForm = ({
|
|
|
33501
33430
|
}),
|
|
33502
33431
|
[setOptions]
|
|
33503
33432
|
);
|
|
33504
|
-
const selectSingleChoiceAnswer =
|
|
33433
|
+
const selectSingleChoiceAnswer = useCallback20(
|
|
33505
33434
|
(answerIndex) => {
|
|
33506
33435
|
if (!isQuiz) {
|
|
33507
33436
|
return;
|
|
@@ -33514,7 +33443,7 @@ var QuestionForm = ({
|
|
|
33514
33443
|
},
|
|
33515
33444
|
[setOptions, isQuiz]
|
|
33516
33445
|
);
|
|
33517
|
-
const selectMultipleChoiceAnswer =
|
|
33446
|
+
const selectMultipleChoiceAnswer = useCallback20(
|
|
33518
33447
|
(checked, index2) => {
|
|
33519
33448
|
if (!isQuiz) {
|
|
33520
33449
|
return;
|
|
@@ -33705,11 +33634,11 @@ var getEditableFormat = (questions) => {
|
|
|
33705
33634
|
};
|
|
33706
33635
|
function CreateQuestions() {
|
|
33707
33636
|
var _a8, _b7, _c, _d;
|
|
33708
|
-
const actions =
|
|
33637
|
+
const actions = useHMSActions29();
|
|
33709
33638
|
const { isHLSRunning } = useRecordingStreaming9();
|
|
33710
33639
|
const togglePollView = usePollViewToggle();
|
|
33711
33640
|
const { pollInView: id, setPollView } = usePollViewState();
|
|
33712
|
-
const interaction =
|
|
33641
|
+
const interaction = useHMSStore45(selectPollByID(id));
|
|
33713
33642
|
const [questions, setQuestions] = useState37(
|
|
33714
33643
|
((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
|
|
33715
33644
|
);
|
|
@@ -33806,7 +33735,7 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
|
|
|
33806
33735
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
|
33807
33736
|
init_define_process_env();
|
|
33808
33737
|
import React98, { useState as useState39 } from "react";
|
|
33809
|
-
import { selectPollByID as selectPollByID3, useHMSStore as
|
|
33738
|
+
import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
|
|
33810
33739
|
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
|
|
33811
33740
|
|
|
33812
33741
|
// src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
|
|
@@ -33870,7 +33799,7 @@ var LeaderboardEntry = ({
|
|
|
33870
33799
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
|
33871
33800
|
init_define_process_env();
|
|
33872
33801
|
import React97 from "react";
|
|
33873
|
-
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as
|
|
33802
|
+
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
|
|
33874
33803
|
|
|
33875
33804
|
// src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
|
|
33876
33805
|
init_define_process_env();
|
|
@@ -33894,12 +33823,12 @@ init_define_process_env();
|
|
|
33894
33823
|
import { useEffect as useEffect23, useState as useState38 } from "react";
|
|
33895
33824
|
import {
|
|
33896
33825
|
selectPollByID as selectPollByID2,
|
|
33897
|
-
useHMSActions as
|
|
33898
|
-
useHMSStore as
|
|
33826
|
+
useHMSActions as useHMSActions30,
|
|
33827
|
+
useHMSStore as useHMSStore46
|
|
33899
33828
|
} from "@100mslive/react-sdk";
|
|
33900
33829
|
var useQuizSummary = (quizID) => {
|
|
33901
|
-
const hmsActions2 =
|
|
33902
|
-
const quiz =
|
|
33830
|
+
const hmsActions2 = useHMSActions30();
|
|
33831
|
+
const quiz = useHMSStore46(selectPollByID2(quizID));
|
|
33903
33832
|
const [quizLeaderboard, setQuizLeaderboard] = useState38();
|
|
33904
33833
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
|
33905
33834
|
totalUsers: 0,
|
|
@@ -33936,7 +33865,7 @@ var useQuizSummary = (quizID) => {
|
|
|
33936
33865
|
|
|
33937
33866
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
|
33938
33867
|
var PeerParticipationSummary = ({ quiz }) => {
|
|
33939
|
-
const localPeerId =
|
|
33868
|
+
const localPeerId = useHMSStore47(selectLocalPeerID8);
|
|
33940
33869
|
const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
|
|
33941
33870
|
if (quiz.state !== "stopped") {
|
|
33942
33871
|
return /* @__PURE__ */ React97.createElement(React97.Fragment, null);
|
|
@@ -33977,7 +33906,7 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
|
33977
33906
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
|
33978
33907
|
var LeaderboardSummary = ({ pollID }) => {
|
|
33979
33908
|
var _a8, _b7;
|
|
33980
|
-
const quiz =
|
|
33909
|
+
const quiz = useHMSStore48(selectPollByID3(pollID));
|
|
33981
33910
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
|
33982
33911
|
const [viewAllEntries, setViewAllEntries] = useState39(false);
|
|
33983
33912
|
const { setPollView } = usePollViewState();
|
|
@@ -34055,8 +33984,8 @@ import {
|
|
|
34055
33984
|
selectPeerNameByID,
|
|
34056
33985
|
selectPermissions as selectPermissions16,
|
|
34057
33986
|
selectPollByID as selectPollByID4,
|
|
34058
|
-
useHMSActions as
|
|
34059
|
-
useHMSStore as
|
|
33987
|
+
useHMSActions as useHMSActions32,
|
|
33988
|
+
useHMSStore as useHMSStore50
|
|
34060
33989
|
} from "@100mslive/react-sdk";
|
|
34061
33990
|
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
|
|
34062
33991
|
|
|
@@ -34066,9 +33995,9 @@ import React100 from "react";
|
|
|
34066
33995
|
|
|
34067
33996
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
|
34068
33997
|
init_define_process_env();
|
|
34069
|
-
import React99, { useCallback as
|
|
33998
|
+
import React99, { useCallback as useCallback21, useEffect as useEffect24, useMemo as useMemo10, useRef as useRef19, useState as useState40 } from "react";
|
|
34070
33999
|
import { match as match8 } from "ts-pattern";
|
|
34071
|
-
import { selectLocalPeer as selectLocalPeer2, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as
|
|
34000
|
+
import { selectLocalPeer as selectLocalPeer2, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
|
|
34072
34001
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
|
34073
34002
|
var QuestionCard2 = ({
|
|
34074
34003
|
pollID,
|
|
@@ -34086,10 +34015,10 @@ var QuestionCard2 = ({
|
|
|
34086
34015
|
updateSavedResponses,
|
|
34087
34016
|
rolesThatCanViewResponses
|
|
34088
34017
|
}) => {
|
|
34089
|
-
const actions =
|
|
34090
|
-
const localPeer =
|
|
34018
|
+
const actions = useHMSActions31();
|
|
34019
|
+
const localPeer = useHMSStore49(selectLocalPeer2);
|
|
34091
34020
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
|
34092
|
-
const localPeerRoleName =
|
|
34021
|
+
const localPeerRoleName = useHMSStore49(selectLocalPeerRoleName2);
|
|
34093
34022
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
|
34094
34023
|
const [localPeerChoice, setLocalPeerChoice] = useState40(localPeerResponse);
|
|
34095
34024
|
useEffect24(() => {
|
|
@@ -34112,7 +34041,7 @@ var QuestionCard2 = ({
|
|
|
34112
34041
|
return multipleOptionAnswer.size > 0;
|
|
34113
34042
|
}
|
|
34114
34043
|
}, [singleOptionAnswer, multipleOptionAnswer, type]);
|
|
34115
|
-
const handleVote =
|
|
34044
|
+
const handleVote = useCallback21(() => __async(void 0, null, function* () {
|
|
34116
34045
|
if (!isValidVote) {
|
|
34117
34046
|
return;
|
|
34118
34047
|
}
|
|
@@ -34317,16 +34246,16 @@ var TimedView = ({
|
|
|
34317
34246
|
|
|
34318
34247
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
|
34319
34248
|
var Voting = ({ id, toggleVoting }) => {
|
|
34320
|
-
const actions =
|
|
34321
|
-
const poll =
|
|
34322
|
-
const pollCreatorName =
|
|
34323
|
-
const permissions =
|
|
34249
|
+
const actions = useHMSActions32();
|
|
34250
|
+
const poll = useHMSStore50(selectPollByID4(id));
|
|
34251
|
+
const pollCreatorName = useHMSStore50(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
|
|
34252
|
+
const permissions = useHMSStore50(selectPermissions16);
|
|
34324
34253
|
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
|
34325
34254
|
const { setPollView } = usePollViewState();
|
|
34326
34255
|
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
|
34327
34256
|
const fetchedInitialResponses = useRef20(false);
|
|
34328
34257
|
const [savedResponses, setSavedResponses] = useState42({});
|
|
34329
|
-
const localPeer =
|
|
34258
|
+
const localPeer = useHMSStore50(selectLocalPeer3);
|
|
34330
34259
|
const localPeerId = localPeer == null ? void 0 : localPeer.id;
|
|
34331
34260
|
const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
|
|
34332
34261
|
useEffect26(() => {
|
|
@@ -34441,10 +34370,10 @@ import { CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
|
|
|
34441
34370
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
|
34442
34371
|
init_define_process_env();
|
|
34443
34372
|
import React104, { useEffect as useEffect27, useState as useState43 } from "react";
|
|
34444
|
-
import { selectDominantSpeaker, useHMSStore as
|
|
34373
|
+
import { selectDominantSpeaker, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
|
|
34445
34374
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
|
34446
34375
|
var SpeakerTag = () => {
|
|
34447
|
-
const dominantSpeaker =
|
|
34376
|
+
const dominantSpeaker = useHMSStore51(selectDominantSpeaker);
|
|
34448
34377
|
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React104.createElement(
|
|
34449
34378
|
Flex,
|
|
34450
34379
|
{
|
|
@@ -34542,20 +34471,20 @@ init_define_process_env();
|
|
|
34542
34471
|
import React122, { useEffect as useEffect35, useState as useState53 } from "react";
|
|
34543
34472
|
import { useMedia as useMedia20 } from "react-use";
|
|
34544
34473
|
import { match as match10 } from "ts-pattern";
|
|
34545
|
-
import { selectPeerCount as selectPeerCount5, useHMSStore as
|
|
34474
|
+
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
|
34546
34475
|
import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
|
|
34547
34476
|
|
|
34548
34477
|
// src/Prebuilt/components/Chat/Chat.tsx
|
|
34549
34478
|
init_define_process_env();
|
|
34550
|
-
import React119, { useCallback as
|
|
34479
|
+
import React119, { useCallback as useCallback29, useRef as useRef24 } from "react";
|
|
34551
34480
|
import { useMedia as useMedia19 } from "react-use";
|
|
34552
34481
|
import { match as match9 } from "ts-pattern";
|
|
34553
|
-
import { selectHMSMessagesCount, useHMSActions as
|
|
34482
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions40, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
|
34554
34483
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
|
34555
34484
|
|
|
34556
34485
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
|
34557
34486
|
init_define_process_env();
|
|
34558
|
-
import React111, { Fragment as Fragment10, useCallback as
|
|
34487
|
+
import React111, { Fragment as Fragment10, useCallback as useCallback25, useEffect as useEffect30, useLayoutEffect, useMemo as useMemo11, useRef as useRef21, useState as useState47 } from "react";
|
|
34559
34488
|
import { useMedia as useMedia14 } from "react-use";
|
|
34560
34489
|
import AutoSizer from "react-virtualized-auto-sizer";
|
|
34561
34490
|
import { VariableSizeList } from "react-window";
|
|
@@ -34567,16 +34496,16 @@ import {
|
|
|
34567
34496
|
selectPeerNameByID as selectPeerNameByID3,
|
|
34568
34497
|
selectSessionStore as selectSessionStore5,
|
|
34569
34498
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
|
34570
|
-
useHMSActions as
|
|
34571
|
-
useHMSStore as
|
|
34499
|
+
useHMSActions as useHMSActions36,
|
|
34500
|
+
useHMSStore as useHMSStore55,
|
|
34572
34501
|
useHMSVanillaStore as useHMSVanillaStore9
|
|
34573
34502
|
} from "@100mslive/react-sdk";
|
|
34574
34503
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
|
34575
34504
|
|
|
34576
34505
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
|
34577
34506
|
init_define_process_env();
|
|
34578
|
-
import React109, { useCallback as
|
|
34579
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as
|
|
34507
|
+
import React109, { useCallback as useCallback24, useState as useState45 } from "react";
|
|
34508
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions35, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
|
34580
34509
|
import {
|
|
34581
34510
|
CopyIcon as CopyIcon2,
|
|
34582
34511
|
CrossCircleIcon as CrossCircleIcon2,
|
|
@@ -34603,12 +34532,12 @@ var MwebChatOption = ({
|
|
|
34603
34532
|
|
|
34604
34533
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
|
34605
34534
|
init_define_process_env();
|
|
34606
|
-
import { useCallback as
|
|
34607
|
-
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore2, useHMSActions as
|
|
34535
|
+
import { useCallback as useCallback22 } from "react";
|
|
34536
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions33, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
|
|
34608
34537
|
var useChatBlacklist = (sessionStoreKey) => {
|
|
34609
|
-
const hmsActions2 =
|
|
34610
|
-
const blacklistedIDs =
|
|
34611
|
-
const blacklistItem =
|
|
34538
|
+
const hmsActions2 = useHMSActions33();
|
|
34539
|
+
const blacklistedIDs = useHMSStore52(selectSessionStore2(sessionStoreKey));
|
|
34540
|
+
const blacklistItem = useCallback22(
|
|
34612
34541
|
(blacklistID) => __async(void 0, null, function* () {
|
|
34613
34542
|
yield hmsActions2.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
|
34614
34543
|
}),
|
|
@@ -34617,24 +34546,24 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
|
34617
34546
|
return { blacklistItem, blacklistedIDs };
|
|
34618
34547
|
};
|
|
34619
34548
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
|
34620
|
-
const localPeer =
|
|
34621
|
-
const blacklistedPeerIDs =
|
|
34549
|
+
const localPeer = useHMSStore52(selectLocalPeer4);
|
|
34550
|
+
const blacklistedPeerIDs = useHMSStore52(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
|
34622
34551
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
|
34623
34552
|
};
|
|
34624
34553
|
|
|
34625
34554
|
// src/Prebuilt/components/hooks/usePinnedMessages.ts
|
|
34626
34555
|
init_define_process_env();
|
|
34627
|
-
import { useCallback as
|
|
34556
|
+
import { useCallback as useCallback23 } from "react";
|
|
34628
34557
|
import {
|
|
34629
34558
|
selectPeerNameByID as selectPeerNameByID2,
|
|
34630
34559
|
selectSessionStore as selectSessionStore3,
|
|
34631
|
-
useHMSActions as
|
|
34560
|
+
useHMSActions as useHMSActions34,
|
|
34632
34561
|
useHMSVanillaStore as useHMSVanillaStore8
|
|
34633
34562
|
} from "@100mslive/react-sdk";
|
|
34634
34563
|
var usePinnedMessages = () => {
|
|
34635
|
-
const hmsActions2 =
|
|
34564
|
+
const hmsActions2 = useHMSActions34();
|
|
34636
34565
|
const vanillaStore = useHMSVanillaStore8();
|
|
34637
|
-
const setPinnedMessages =
|
|
34566
|
+
const setPinnedMessages = useCallback23(
|
|
34638
34567
|
(message, pinnedBy) => __async(void 0, null, function* () {
|
|
34639
34568
|
const peerName = vanillaStore.getState(selectPeerNameByID2(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
|
|
34640
34569
|
const newPinnedMessage = { text: "", id: message.id, pinnedBy };
|
|
@@ -34650,7 +34579,7 @@ var usePinnedMessages = () => {
|
|
|
34650
34579
|
}),
|
|
34651
34580
|
[hmsActions2, vanillaStore]
|
|
34652
34581
|
);
|
|
34653
|
-
const removePinnedMessage =
|
|
34582
|
+
const removePinnedMessage = useCallback23(
|
|
34654
34583
|
(indexToRemove) => __async(void 0, null, function* () {
|
|
34655
34584
|
const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
|
34656
34585
|
if (pinnedMessages[indexToRemove]) {
|
|
@@ -34662,7 +34591,7 @@ var usePinnedMessages = () => {
|
|
|
34662
34591
|
}),
|
|
34663
34592
|
[hmsActions2, vanillaStore]
|
|
34664
34593
|
);
|
|
34665
|
-
const unpinBlacklistedMessages =
|
|
34594
|
+
const unpinBlacklistedMessages = useCallback23(
|
|
34666
34595
|
(blacklistedMessageIDSet) => __async(void 0, null, function* () {
|
|
34667
34596
|
const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
|
34668
34597
|
const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
|
|
@@ -34700,23 +34629,23 @@ var ChatActions = ({
|
|
|
34700
34629
|
const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
|
|
34701
34630
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
|
34702
34631
|
const [open, setOpen] = useState45(false);
|
|
34703
|
-
const actions =
|
|
34704
|
-
const canRemoveOthers = (_b7 =
|
|
34632
|
+
const actions = useHMSActions35();
|
|
34633
|
+
const canRemoveOthers = (_b7 = useHMSStore53(selectPermissions17)) == null ? void 0 : _b7.removeOthers;
|
|
34705
34634
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
|
34706
|
-
const localPeerName =
|
|
34635
|
+
const localPeerName = useHMSStore53(selectLocalPeerName2);
|
|
34707
34636
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
|
34708
34637
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
|
34709
34638
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
|
34710
34639
|
);
|
|
34711
34640
|
const isSenderBlocked = useIsPeerBlacklisted({ peerCustomerUserId: message.senderUserId });
|
|
34712
|
-
const updatePinnedMessages =
|
|
34641
|
+
const updatePinnedMessages = useCallback24(
|
|
34713
34642
|
(messageID = "") => {
|
|
34714
34643
|
const blacklistedMessageIDSet = /* @__PURE__ */ new Set([...blacklistedMessageIDs || [], messageID]);
|
|
34715
34644
|
unpinBlacklistedMessages(blacklistedMessageIDSet);
|
|
34716
34645
|
},
|
|
34717
34646
|
[blacklistedMessageIDs, unpinBlacklistedMessages]
|
|
34718
34647
|
);
|
|
34719
|
-
const copyMessageContent =
|
|
34648
|
+
const copyMessageContent = useCallback24(() => {
|
|
34720
34649
|
try {
|
|
34721
34650
|
navigator == null ? void 0 : navigator.clipboard.writeText(message.message);
|
|
34722
34651
|
ToastManager.addToast({
|
|
@@ -34926,9 +34855,9 @@ var EmptyChat = () => {
|
|
|
34926
34855
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
|
34927
34856
|
init_define_process_env();
|
|
34928
34857
|
import { useEffect as useEffect29, useState as useState46 } from "react";
|
|
34929
|
-
import { selectSessionStore as selectSessionStore4, useHMSStore as
|
|
34858
|
+
import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
|
34930
34859
|
var usePinnedBy = (messageId) => {
|
|
34931
|
-
const pinnedMessages =
|
|
34860
|
+
const pinnedMessages = useHMSStore54(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
|
34932
34861
|
const [pinnedBy, setPinnedBy] = useState46("");
|
|
34933
34862
|
useEffect29(() => {
|
|
34934
34863
|
let match17 = "";
|
|
@@ -34980,26 +34909,33 @@ var MessageTypeContainer = ({ left, right }) => {
|
|
|
34980
34909
|
css: {
|
|
34981
34910
|
ml: "$2",
|
|
34982
34911
|
mr: "$4",
|
|
34983
|
-
gap: "$space$2"
|
|
34912
|
+
gap: "$space$2",
|
|
34913
|
+
flexWrap: "nowrap"
|
|
34984
34914
|
}
|
|
34985
34915
|
},
|
|
34986
34916
|
left && /* @__PURE__ */ React111.createElement(
|
|
34987
|
-
|
|
34917
|
+
Text,
|
|
34988
34918
|
{
|
|
34989
34919
|
variant: "xs",
|
|
34990
34920
|
as: "span",
|
|
34991
|
-
css: {
|
|
34921
|
+
css: {
|
|
34922
|
+
color: "$on_surface_medium",
|
|
34923
|
+
textTransform: "capitalize",
|
|
34924
|
+
fontWeight: "$regular",
|
|
34925
|
+
whiteSpace: "nowrap"
|
|
34926
|
+
}
|
|
34992
34927
|
},
|
|
34993
34928
|
left
|
|
34994
34929
|
),
|
|
34995
34930
|
right && /* @__PURE__ */ React111.createElement(
|
|
34996
|
-
|
|
34931
|
+
Text,
|
|
34997
34932
|
{
|
|
34998
34933
|
as: "span",
|
|
34999
34934
|
variant: "overline",
|
|
35000
34935
|
css: {
|
|
35001
34936
|
color: "$on_surface_medium",
|
|
35002
|
-
fontWeight: "$regular"
|
|
34937
|
+
fontWeight: "$regular",
|
|
34938
|
+
whiteSpace: "nowrap"
|
|
35003
34939
|
}
|
|
35004
34940
|
},
|
|
35005
34941
|
right
|
|
@@ -35011,8 +34947,8 @@ var MessageType = ({
|
|
|
35011
34947
|
hasCurrentUserSent,
|
|
35012
34948
|
receiver
|
|
35013
34949
|
}) => {
|
|
35014
|
-
const peerName =
|
|
35015
|
-
const localPeerRoleName =
|
|
34950
|
+
const peerName = useHMSStore55(selectPeerNameByID3(receiver));
|
|
34951
|
+
const localPeerRoleName = useHMSStore55(selectLocalPeerRoleName3);
|
|
35016
34952
|
if (receiver) {
|
|
35017
34953
|
return /* @__PURE__ */ React111.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
|
35018
34954
|
}
|
|
@@ -35047,7 +34983,7 @@ var SenderName = styled(Text, {
|
|
|
35047
34983
|
overflow: "hidden",
|
|
35048
34984
|
textOverflow: "ellipsis",
|
|
35049
34985
|
whiteSpace: "nowrap",
|
|
35050
|
-
|
|
34986
|
+
width: "100%",
|
|
35051
34987
|
minWidth: 0,
|
|
35052
34988
|
color: "$on_surface_high",
|
|
35053
34989
|
fontWeight: "$semiBold"
|
|
@@ -35060,7 +34996,7 @@ var ChatMessage = React111.memo(
|
|
|
35060
34996
|
const isMobile = useMedia14(config.media.md);
|
|
35061
34997
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
|
35062
34998
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
|
35063
|
-
const localPeerId =
|
|
34999
|
+
const localPeerId = useHMSStore55(selectLocalPeerID9);
|
|
35064
35000
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
|
35065
35001
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
|
35066
35002
|
const messageType = getMessageType({
|
|
@@ -35132,30 +35068,43 @@ var ChatMessage = React111.memo(
|
|
|
35132
35068
|
},
|
|
35133
35069
|
as: "div"
|
|
35134
35070
|
},
|
|
35135
|
-
/* @__PURE__ */ React111.createElement(
|
|
35136
|
-
|
|
35137
|
-
{
|
|
35138
|
-
as: "span",
|
|
35139
|
-
variant: "sub2",
|
|
35140
|
-
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
|
35141
|
-
},
|
|
35142
|
-
message.senderName || "Anonymous"
|
|
35143
|
-
) : /* @__PURE__ */ React111.createElement(Tooltip, { title: message.senderName, side: "top", align: "start" }, /* @__PURE__ */ React111.createElement(
|
|
35144
|
-
SenderName,
|
|
35071
|
+
/* @__PURE__ */ React111.createElement(
|
|
35072
|
+
Flex,
|
|
35145
35073
|
{
|
|
35146
|
-
|
|
35147
|
-
|
|
35148
|
-
|
|
35074
|
+
align: "baseline",
|
|
35075
|
+
css: {
|
|
35076
|
+
flexWrap: "nowrap",
|
|
35077
|
+
maxWidth: "calc(100% - 10ch)",
|
|
35078
|
+
textOverflow: "ellipsis",
|
|
35079
|
+
whiteSpace: "nowrap"
|
|
35080
|
+
}
|
|
35149
35081
|
},
|
|
35150
|
-
message.
|
|
35151
|
-
|
|
35152
|
-
|
|
35153
|
-
|
|
35154
|
-
|
|
35155
|
-
|
|
35156
|
-
|
|
35157
|
-
|
|
35158
|
-
|
|
35082
|
+
message.senderName === "You" || !message.senderName ? /* @__PURE__ */ React111.createElement(
|
|
35083
|
+
SenderName,
|
|
35084
|
+
{
|
|
35085
|
+
as: "span",
|
|
35086
|
+
variant: "sub2",
|
|
35087
|
+
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
|
35088
|
+
},
|
|
35089
|
+
message.senderName || "Anonymous"
|
|
35090
|
+
) : /* @__PURE__ */ React111.createElement(Tooltip, { title: message.senderName, side: "top", align: "start", boxCss: { zIndex: 50 } }, /* @__PURE__ */ React111.createElement(
|
|
35091
|
+
SenderName,
|
|
35092
|
+
{
|
|
35093
|
+
as: "span",
|
|
35094
|
+
variant: "sub2",
|
|
35095
|
+
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
|
35096
|
+
},
|
|
35097
|
+
message.sender === localPeerId ? `${message.senderName} (You)` : message.senderName
|
|
35098
|
+
)),
|
|
35099
|
+
/* @__PURE__ */ React111.createElement(
|
|
35100
|
+
MessageType,
|
|
35101
|
+
{
|
|
35102
|
+
hasCurrentUserSent: message.sender === localPeerId,
|
|
35103
|
+
receiver: message.recipientPeer,
|
|
35104
|
+
roles: message.recipientRoles
|
|
35105
|
+
}
|
|
35106
|
+
)
|
|
35107
|
+
),
|
|
35159
35108
|
!isOverlay ? /* @__PURE__ */ React111.createElement(
|
|
35160
35109
|
Text,
|
|
35161
35110
|
{
|
|
@@ -35224,8 +35173,8 @@ var MessageWrapper = React111.memo(
|
|
|
35224
35173
|
}
|
|
35225
35174
|
);
|
|
35226
35175
|
var VirtualizedChatMessages = React111.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
|
35227
|
-
const hmsActions2 =
|
|
35228
|
-
const itemKey2 =
|
|
35176
|
+
const hmsActions2 = useHMSActions36();
|
|
35177
|
+
const itemKey2 = useCallback25((index, data3) => {
|
|
35229
35178
|
return data3[index].id;
|
|
35230
35179
|
}, []);
|
|
35231
35180
|
useEffect30(() => {
|
|
@@ -35279,8 +35228,8 @@ var VirtualizedChatMessages = React111.forwardRef(({ messages, scrollToBottom },
|
|
|
35279
35228
|
});
|
|
35280
35229
|
var ChatBody = React111.forwardRef(
|
|
35281
35230
|
({ scrollToBottom }, listRef) => {
|
|
35282
|
-
const messages =
|
|
35283
|
-
const blacklistedMessageIDs =
|
|
35231
|
+
const messages = useHMSStore55(selectHMSMessages);
|
|
35232
|
+
const blacklistedMessageIDs = useHMSStore55(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
|
35284
35233
|
const filteredMessages = useMemo11(() => {
|
|
35285
35234
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
|
35286
35235
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
|
@@ -35314,7 +35263,7 @@ var PinnedBy = ({
|
|
|
35314
35263
|
rowRef
|
|
35315
35264
|
}) => {
|
|
35316
35265
|
const pinnedBy = usePinnedBy(messageId);
|
|
35317
|
-
const localPeerName =
|
|
35266
|
+
const localPeerName = useHMSStore55(selectLocalPeerName3);
|
|
35318
35267
|
useLayoutEffect(() => {
|
|
35319
35268
|
if (rowRef == null ? void 0 : rowRef.current) {
|
|
35320
35269
|
if (pinnedBy) {
|
|
@@ -35333,11 +35282,11 @@ var PinnedBy = ({
|
|
|
35333
35282
|
|
|
35334
35283
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
|
35335
35284
|
init_define_process_env();
|
|
35336
|
-
import React114, { useCallback as
|
|
35285
|
+
import React114, { useCallback as useCallback27, useEffect as useEffect32, useRef as useRef23, useState as useState50 } from "react";
|
|
35337
35286
|
import { useMedia as useMedia17 } from "react-use";
|
|
35338
35287
|
import data2 from "@emoji-mart/data";
|
|
35339
35288
|
import Picker from "@emoji-mart/react";
|
|
35340
|
-
import { selectLocalPeer as selectLocalPeer5, useHMSActions as
|
|
35289
|
+
import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
|
35341
35290
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
|
35342
35291
|
|
|
35343
35292
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
|
@@ -35356,7 +35305,7 @@ import {
|
|
|
35356
35305
|
selectMessagesUnreadCountByRole,
|
|
35357
35306
|
selectRemotePeers as selectRemotePeers2,
|
|
35358
35307
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
|
|
35359
|
-
useHMSStore as
|
|
35308
|
+
useHMSStore as useHMSStore56
|
|
35360
35309
|
} from "@100mslive/react-sdk";
|
|
35361
35310
|
import { CheckIcon as CheckIcon6, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
|
|
35362
35311
|
var ChatDotIcon = () => {
|
|
@@ -35406,7 +35355,7 @@ var SelectorHeader = React112.memo(
|
|
|
35406
35355
|
}
|
|
35407
35356
|
);
|
|
35408
35357
|
var Everyone = React112.memo(({ active }) => {
|
|
35409
|
-
const unreadCount =
|
|
35358
|
+
const unreadCount = useHMSStore56(selectUnreadHMSMessagesCount3);
|
|
35410
35359
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
|
35411
35360
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
|
35412
35361
|
return /* @__PURE__ */ React112.createElement(
|
|
@@ -35424,7 +35373,7 @@ var Everyone = React112.memo(({ active }) => {
|
|
|
35424
35373
|
);
|
|
35425
35374
|
});
|
|
35426
35375
|
var RoleItem = React112.memo(({ role, active }) => {
|
|
35427
|
-
const unreadCount =
|
|
35376
|
+
const unreadCount = useHMSStore56(selectMessagesUnreadCountByRole(role));
|
|
35428
35377
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
|
35429
35378
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
|
35430
35379
|
return /* @__PURE__ */ React112.createElement(
|
|
@@ -35441,7 +35390,7 @@ var RoleItem = React112.memo(({ role, active }) => {
|
|
|
35441
35390
|
);
|
|
35442
35391
|
});
|
|
35443
35392
|
var PeerItem = ({ peerId, name, active }) => {
|
|
35444
|
-
const unreadCount =
|
|
35393
|
+
const unreadCount = useHMSStore56(selectMessagesUnreadCountByPeerID(peerId));
|
|
35445
35394
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
|
35446
35395
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
|
35447
35396
|
return /* @__PURE__ */ React112.createElement(
|
|
@@ -35500,7 +35449,7 @@ var VirtualizedSelectItemList = ({
|
|
|
35500
35449
|
var ChatSelector = ({ role, peerId }) => {
|
|
35501
35450
|
var _a8, _b7;
|
|
35502
35451
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
35503
|
-
const peers =
|
|
35452
|
+
const peers = useHMSStore56(selectRemotePeers2);
|
|
35504
35453
|
const [search, setSearch] = useState48("");
|
|
35505
35454
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
|
35506
35455
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
|
@@ -35637,15 +35586,15 @@ var ChatSelectorContainer = () => {
|
|
|
35637
35586
|
|
|
35638
35587
|
// src/Prebuilt/components/AppData/useChatState.js
|
|
35639
35588
|
init_define_process_env();
|
|
35640
|
-
import { useCallback as
|
|
35641
|
-
import { selectAppData as selectAppData7, useHMSActions as
|
|
35589
|
+
import { useCallback as useCallback26 } from "react";
|
|
35590
|
+
import { selectAppData as selectAppData7, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
|
35642
35591
|
var useChatDraftMessage = () => {
|
|
35643
|
-
const hmsActions2 =
|
|
35644
|
-
let chatDraftMessage =
|
|
35592
|
+
const hmsActions2 = useHMSActions37();
|
|
35593
|
+
let chatDraftMessage = useHMSStore57(selectAppData7(APP_DATA.chatDraft));
|
|
35645
35594
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
|
35646
35595
|
chatDraftMessage = "";
|
|
35647
35596
|
}
|
|
35648
|
-
const setDraftMessage =
|
|
35597
|
+
const setDraftMessage = useCallback26(
|
|
35649
35598
|
(message) => {
|
|
35650
35599
|
hmsActions2.setAppData(APP_DATA.chatDraft, message, true);
|
|
35651
35600
|
},
|
|
@@ -35735,13 +35684,13 @@ function EmojiPicker({ onSelect }) {
|
|
|
35735
35684
|
}
|
|
35736
35685
|
var ChatFooter = ({ onSend, children }) => {
|
|
35737
35686
|
var _a8, _b7, _c, _d, _e2;
|
|
35738
|
-
const hmsActions2 =
|
|
35687
|
+
const hmsActions2 = useHMSActions38();
|
|
35739
35688
|
const inputRef = useRef23(null);
|
|
35740
35689
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
|
35741
35690
|
const isMobile = useMedia17(config.media.md);
|
|
35742
35691
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
35743
35692
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
|
35744
|
-
const localPeer =
|
|
35693
|
+
const localPeer = useHMSStore58(selectLocalPeer5);
|
|
35745
35694
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
|
35746
35695
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
|
35747
35696
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
|
@@ -35762,7 +35711,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
35762
35711
|
}
|
|
35763
35712
|
}
|
|
35764
35713
|
}, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
|
|
35765
|
-
const resetInputHeight =
|
|
35714
|
+
const resetInputHeight = useCallback27(() => {
|
|
35766
35715
|
if (inputRef.current) {
|
|
35767
35716
|
inputRef.current.style.height = `${Math.max(
|
|
35768
35717
|
32,
|
|
@@ -35770,12 +35719,12 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
35770
35719
|
)}px`;
|
|
35771
35720
|
}
|
|
35772
35721
|
}, []);
|
|
35773
|
-
const updateInputHeight =
|
|
35722
|
+
const updateInputHeight = useCallback27(() => {
|
|
35774
35723
|
if (inputRef.current) {
|
|
35775
35724
|
inputRef.current.style.height = `${Math.max(32, Math.min(inputRef.current.scrollHeight, 24 * 4))}px`;
|
|
35776
35725
|
}
|
|
35777
35726
|
}, []);
|
|
35778
|
-
const sendMessage =
|
|
35727
|
+
const sendMessage = useCallback27(() => __async(void 0, null, function* () {
|
|
35779
35728
|
var _a9;
|
|
35780
35729
|
const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
|
|
35781
35730
|
if (!message || !message.trim().length) {
|
|
@@ -35943,16 +35892,16 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
35943
35892
|
|
|
35944
35893
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
|
35945
35894
|
init_define_process_env();
|
|
35946
|
-
import React115, { useCallback as
|
|
35947
|
-
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore6, useHMSActions as
|
|
35895
|
+
import React115, { useCallback as useCallback28 } from "react";
|
|
35896
|
+
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
|
35948
35897
|
var ChatPaused = () => {
|
|
35949
35898
|
var _a8, _b7;
|
|
35950
|
-
const hmsActions2 =
|
|
35899
|
+
const hmsActions2 = useHMSActions39();
|
|
35951
35900
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
35952
35901
|
const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
|
35953
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } =
|
|
35954
|
-
const localPeer =
|
|
35955
|
-
const unPauseChat =
|
|
35902
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
|
35903
|
+
const localPeer = useHMSStore59(selectLocalPeer6);
|
|
35904
|
+
const unPauseChat = useCallback28(
|
|
35956
35905
|
() => __async(void 0, null, function* () {
|
|
35957
35906
|
return yield hmsActions2.sessionStore.set("chatState" /* CHAT_STATE */, {
|
|
35958
35907
|
enabled: true,
|
|
@@ -36002,7 +35951,7 @@ init_define_process_env();
|
|
|
36002
35951
|
import React118, { useEffect as useEffect33, useState as useState51 } from "react";
|
|
36003
35952
|
import { useSwipeable } from "react-swipeable";
|
|
36004
35953
|
import { useMedia as useMedia18 } from "react-use";
|
|
36005
|
-
import { selectSessionStore as selectSessionStore7, useHMSStore as
|
|
35954
|
+
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
|
36006
35955
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
|
36007
35956
|
|
|
36008
35957
|
// src/Prebuilt/components/Chat/ArrowNavigation.tsx
|
|
@@ -36059,7 +36008,7 @@ var StickIndicator = ({ total, index }) => {
|
|
|
36059
36008
|
var PINNED_MESSAGE_LENGTH = 75;
|
|
36060
36009
|
var PinnedMessage = () => {
|
|
36061
36010
|
var _a8, _b7, _c, _d;
|
|
36062
|
-
const pinnedMessages =
|
|
36011
|
+
const pinnedMessages = useHMSStore60(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
|
36063
36012
|
const [pinnedMessageIndex, setPinnedMessageIndex] = useState51(0);
|
|
36064
36013
|
const { removePinnedMessage } = usePinnedMessages();
|
|
36065
36014
|
const isMobile = useMedia18(config.media.md);
|
|
@@ -36176,15 +36125,15 @@ var Chat = () => {
|
|
|
36176
36125
|
var _a8, _b7;
|
|
36177
36126
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
36178
36127
|
const listRef = useRef24(null);
|
|
36179
|
-
const hmsActions2 =
|
|
36128
|
+
const hmsActions2 = useHMSActions40();
|
|
36180
36129
|
const vanillaStore = useHMSVanillaStore10();
|
|
36181
|
-
const { enabled: isChatEnabled = true } =
|
|
36130
|
+
const { enabled: isChatEnabled = true } = useHMSStore61(Bm("chatState" /* CHAT_STATE */)) || {};
|
|
36182
36131
|
const isMobile = useMedia19(config.media.md);
|
|
36183
36132
|
const isMobileHLSStream = useMobileHLSStream();
|
|
36184
36133
|
const isLandscapeStream = useLandscapeHLSStream();
|
|
36185
36134
|
useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
|
|
36186
36135
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
|
36187
|
-
const scrollToBottom =
|
|
36136
|
+
const scrollToBottom = useCallback29(
|
|
36188
36137
|
(unreadCount = 0) => {
|
|
36189
36138
|
var _a9;
|
|
36190
36139
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
|
@@ -36268,7 +36217,7 @@ var NewMessageIndicator = ({
|
|
|
36268
36217
|
scrollToBottom,
|
|
36269
36218
|
listRef
|
|
36270
36219
|
}) => {
|
|
36271
|
-
const unreadCount =
|
|
36220
|
+
const unreadCount = useHMSStore61(cm);
|
|
36272
36221
|
if (!unreadCount || !listRef.current) {
|
|
36273
36222
|
return null;
|
|
36274
36223
|
}
|
|
@@ -36318,7 +36267,7 @@ import React120, { useEffect as useEffect34, useState as useState52 } from "reac
|
|
|
36318
36267
|
import { useInView } from "react-intersection-observer";
|
|
36319
36268
|
import { useMeasure as useMeasure2 } from "react-use";
|
|
36320
36269
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
|
36321
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as
|
|
36270
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore62, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
|
36322
36271
|
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon22 } from "@100mslive/react-icons";
|
|
36323
36272
|
var LoadMoreParticipants = ({
|
|
36324
36273
|
hasNext,
|
|
@@ -36362,7 +36311,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
|
36362
36311
|
var _a8;
|
|
36363
36312
|
return (_a8 = p2.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
|
36364
36313
|
});
|
|
36365
|
-
const isConnected =
|
|
36314
|
+
const isConnected = useHMSStore62(selectIsConnectedToRoom8);
|
|
36366
36315
|
const [ref, { width }] = useMeasure2();
|
|
36367
36316
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
|
36368
36317
|
const resetSidePane = useSidepaneReset();
|
|
@@ -36396,15 +36345,15 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
|
36396
36345
|
// src/Prebuilt/components/ChatSettings.tsx
|
|
36397
36346
|
init_define_process_env();
|
|
36398
36347
|
import React121 from "react";
|
|
36399
|
-
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore8, useHMSActions as
|
|
36348
|
+
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions41, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
|
|
36400
36349
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
|
36401
36350
|
var ChatSettings = () => {
|
|
36402
36351
|
var _a8, _b7;
|
|
36403
|
-
const hmsActions2 =
|
|
36404
|
-
const localPeer =
|
|
36352
|
+
const hmsActions2 = useHMSActions41();
|
|
36353
|
+
const localPeer = useHMSStore63(selectLocalPeer7);
|
|
36405
36354
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
36406
36355
|
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
|
36407
|
-
const { enabled: isChatEnabled = true } =
|
|
36356
|
+
const { enabled: isChatEnabled = true } = useHMSStore63(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
|
36408
36357
|
const showPause = canPauseChat && isChatEnabled;
|
|
36409
36358
|
if (!showPause) {
|
|
36410
36359
|
return null;
|
|
@@ -36472,7 +36421,7 @@ var SidePaneTabs = React122.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
|
36472
36421
|
const resetSidePane = useSidepaneReset();
|
|
36473
36422
|
const [activeTab, setActiveTab] = useState53(active);
|
|
36474
36423
|
const [activeRole, setActiveRole] = useState53("");
|
|
36475
|
-
const peerCount =
|
|
36424
|
+
const peerCount = useHMSStore64(selectPeerCount5);
|
|
36476
36425
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
36477
36426
|
const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
|
|
36478
36427
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
|
@@ -36591,7 +36540,7 @@ var SidePaneTabs = React122.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
|
36591
36540
|
|
|
36592
36541
|
// src/Prebuilt/components/VideoTile.tsx
|
|
36593
36542
|
init_define_process_env();
|
|
36594
|
-
import React126, { useCallback as
|
|
36543
|
+
import React126, { useCallback as useCallback30, useMemo as useMemo13, useState as useState55 } from "react";
|
|
36595
36544
|
import { useMeasure as useMeasure3 } from "react-use";
|
|
36596
36545
|
import {
|
|
36597
36546
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
|
@@ -36602,7 +36551,7 @@ import {
|
|
|
36602
36551
|
selectPeerNameByID as selectPeerNameByID4,
|
|
36603
36552
|
selectVideoTrackByID as selectVideoTrackByID3,
|
|
36604
36553
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
|
36605
|
-
useHMSStore as
|
|
36554
|
+
useHMSStore as useHMSStore68
|
|
36606
36555
|
} from "@100mslive/react-sdk";
|
|
36607
36556
|
import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
|
|
36608
36557
|
|
|
@@ -36614,7 +36563,7 @@ import {
|
|
|
36614
36563
|
selectPeerTypeByID as selectPeerTypeByID2,
|
|
36615
36564
|
selectScreenShareByPeerID,
|
|
36616
36565
|
selectSessionStore as selectSessionStore9,
|
|
36617
|
-
useHMSStore as
|
|
36566
|
+
useHMSStore as useHMSStore65
|
|
36618
36567
|
} from "@100mslive/react-sdk";
|
|
36619
36568
|
import { CallIcon as CallIcon2, PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
|
|
36620
36569
|
var TileConnection = ({
|
|
@@ -36624,9 +36573,9 @@ var TileConnection = ({
|
|
|
36624
36573
|
width,
|
|
36625
36574
|
pinned
|
|
36626
36575
|
}) => {
|
|
36627
|
-
const spotlighted =
|
|
36628
|
-
const isPeerScreenSharing = !!
|
|
36629
|
-
const peerType =
|
|
36576
|
+
const spotlighted = useHMSStore65(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
|
|
36577
|
+
const isPeerScreenSharing = !!useHMSStore65(selectScreenShareByPeerID(peerId));
|
|
36578
|
+
const peerType = useHMSStore65(selectPeerTypeByID2(peerId));
|
|
36630
36579
|
return /* @__PURE__ */ React123.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React123.createElement(React123.Fragment, null, name ? /* @__PURE__ */ React123.createElement(Flex, { align: "center" }, peerType === HMSPeerType4.SIP && /* @__PURE__ */ React123.createElement(IconWrapper, null, /* @__PURE__ */ React123.createElement(CallIcon2, { width: "15", height: "15" })), isPeerScreenSharing && /* @__PURE__ */ React123.createElement(IconWrapper, null, /* @__PURE__ */ React123.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React123.createElement(IconWrapper, null, /* @__PURE__ */ React123.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React123.createElement(IconWrapper, null, /* @__PURE__ */ React123.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React123.createElement(
|
|
36631
36580
|
Text,
|
|
36632
36581
|
{
|
|
@@ -36667,7 +36616,7 @@ import {
|
|
|
36667
36616
|
selectPermissions as selectPermissions19,
|
|
36668
36617
|
selectTrackByID as selectTrackByID3,
|
|
36669
36618
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
|
36670
|
-
useHMSStore as
|
|
36619
|
+
useHMSStore as useHMSStore67,
|
|
36671
36620
|
useRemoteAVToggle as useRemoteAVToggle2
|
|
36672
36621
|
} from "@100mslive/react-sdk";
|
|
36673
36622
|
import { CrossIcon as CrossIcon24, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
|
@@ -36682,8 +36631,8 @@ import {
|
|
|
36682
36631
|
selectSessionStore as selectSessionStore10,
|
|
36683
36632
|
selectTrackByID as selectTrackByID2,
|
|
36684
36633
|
useCustomEvent as useCustomEvent2,
|
|
36685
|
-
useHMSActions as
|
|
36686
|
-
useHMSStore as
|
|
36634
|
+
useHMSActions as useHMSActions42,
|
|
36635
|
+
useHMSStore as useHMSStore66,
|
|
36687
36636
|
useRemoteAVToggle
|
|
36688
36637
|
} from "@100mslive/react-sdk";
|
|
36689
36638
|
import {
|
|
@@ -36720,8 +36669,8 @@ var SpotlightActions = ({
|
|
|
36720
36669
|
return;
|
|
36721
36670
|
}
|
|
36722
36671
|
}) => {
|
|
36723
|
-
const hmsActions2 =
|
|
36724
|
-
const spotlightPeerId =
|
|
36672
|
+
const hmsActions2 = useHMSActions42();
|
|
36673
|
+
const spotlightPeerId = useHMSStore66(selectSessionStore10("spotlight" /* SPOTLIGHT */));
|
|
36725
36674
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
|
36726
36675
|
const dragClassName = getDragClassName();
|
|
36727
36676
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions2.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
|
@@ -36769,8 +36718,8 @@ var MinimiseInset = () => {
|
|
|
36769
36718
|
};
|
|
36770
36719
|
var SimulcastLayers = ({ trackId }) => {
|
|
36771
36720
|
var _a8;
|
|
36772
|
-
const track =
|
|
36773
|
-
const actions =
|
|
36721
|
+
const track = useHMSStore66(selectTrackByID2(trackId));
|
|
36722
|
+
const actions = useHMSActions42();
|
|
36774
36723
|
const bg = useDropdownSelection();
|
|
36775
36724
|
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
|
36776
36725
|
return null;
|
|
@@ -36855,13 +36804,13 @@ var TileMenuContent = ({
|
|
|
36855
36804
|
return;
|
|
36856
36805
|
}
|
|
36857
36806
|
}) => {
|
|
36858
|
-
const actions =
|
|
36807
|
+
const actions = useHMSActions42();
|
|
36859
36808
|
const dragClassName = getDragClassName();
|
|
36860
|
-
const permissions =
|
|
36809
|
+
const permissions = useHMSStore66(selectPermissions18);
|
|
36861
36810
|
const canChangeRole = !!(permissions == null ? void 0 : permissions.changeRole);
|
|
36862
36811
|
const removeOthers = !!(permissions == null ? void 0 : permissions.removeOthers);
|
|
36863
36812
|
const { userName } = useHMSPrebuiltContext();
|
|
36864
|
-
const roles =
|
|
36813
|
+
const roles = useHMSStore66(selectAvailableRoleNames6);
|
|
36865
36814
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
|
36866
36815
|
audioTrackID,
|
|
36867
36816
|
videoTrackID
|
|
@@ -36972,17 +36921,17 @@ var TileMenu = ({
|
|
|
36972
36921
|
var _a8, _b7;
|
|
36973
36922
|
const [open, setOpen] = useState54(false);
|
|
36974
36923
|
const { theme: theme2 } = useTheme();
|
|
36975
|
-
const localPeerID =
|
|
36924
|
+
const localPeerID = useHMSStore67(selectLocalPeerID10);
|
|
36976
36925
|
const isLocal = localPeerID === peerID;
|
|
36977
|
-
const { removeOthers } =
|
|
36926
|
+
const { removeOthers } = useHMSStore67(selectPermissions19) || {};
|
|
36978
36927
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
|
36979
36928
|
const showSpotlight = enableSpotlightingPeer;
|
|
36980
|
-
const isPrimaryVideoTrack = ((_a8 =
|
|
36929
|
+
const isPrimaryVideoTrack = ((_a8 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
|
36981
36930
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
|
36982
|
-
const track =
|
|
36931
|
+
const track = useHMSStore67(selectTrackByID3(videoTrackID));
|
|
36983
36932
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
|
36984
36933
|
const isMobile = useMedia22(config.media.md);
|
|
36985
|
-
const peer =
|
|
36934
|
+
const peer = useHMSStore67(selectPeerByID2(peerID));
|
|
36986
36935
|
const [showNameChangeModal, setShowNameChangeModal] = useState54(false);
|
|
36987
36936
|
const [showRoleChangeModal, setShowRoleChangeModal] = useState54(false);
|
|
36988
36937
|
useDropdownList({ open, name: "TileMenu" });
|
|
@@ -37062,9 +37011,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
|
|
37062
37011
|
|
|
37063
37012
|
// src/Prebuilt/components/VideoTile.tsx
|
|
37064
37013
|
var PeerMetadata = ({ peerId, size }) => {
|
|
37065
|
-
const metaData =
|
|
37014
|
+
const metaData = useHMSStore68(selectPeerMetadata4(peerId));
|
|
37066
37015
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
|
37067
|
-
const isHandRaised =
|
|
37016
|
+
const isHandRaised = useHMSStore68(selectHasPeerHandRaised3(peerId));
|
|
37068
37017
|
return /* @__PURE__ */ React126.createElement(React126.Fragment, null, isHandRaised ? /* @__PURE__ */ React126.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React126.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React126.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React126.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
|
|
37069
37018
|
};
|
|
37070
37019
|
var Tile = ({
|
|
@@ -37084,14 +37033,14 @@ var Tile = ({
|
|
|
37084
37033
|
hideMetadataOnTile = false
|
|
37085
37034
|
}) => {
|
|
37086
37035
|
const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
|
|
37087
|
-
const track =
|
|
37088
|
-
const peerName =
|
|
37089
|
-
const audioTrack =
|
|
37090
|
-
const localPeerID =
|
|
37036
|
+
const track = useHMSStore68(trackSelector);
|
|
37037
|
+
const peerName = useHMSStore68(selectPeerNameByID4(peerId));
|
|
37038
|
+
const audioTrack = useHMSStore68(selectAudioTrackByPeerID2(peerId));
|
|
37039
|
+
const localPeerID = useHMSStore68(selectLocalPeerID11);
|
|
37091
37040
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
|
37092
37041
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
|
37093
37042
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
|
37094
|
-
const isAudioMuted = !
|
|
37043
|
+
const isAudioMuted = !useHMSStore68(selectIsPeerAudioEnabled2(peerId));
|
|
37095
37044
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
|
37096
37045
|
const [isMouseHovered, setIsMouseHovered] = useState55(false);
|
|
37097
37046
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
|
@@ -37107,7 +37056,7 @@ var Tile = ({
|
|
|
37107
37056
|
track,
|
|
37108
37057
|
isLocal
|
|
37109
37058
|
});
|
|
37110
|
-
const onHoverHandler =
|
|
37059
|
+
const onHoverHandler = useCallback30((event) => {
|
|
37111
37060
|
setIsMouseHovered(event.type === "mouseenter");
|
|
37112
37061
|
}, []);
|
|
37113
37062
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
|
|
@@ -37190,8 +37139,8 @@ import {
|
|
|
37190
37139
|
selectLocalPeer as selectLocalPeer8,
|
|
37191
37140
|
selectRoomState as selectRoomState4,
|
|
37192
37141
|
selectVideoTrackByID as selectVideoTrackByID4,
|
|
37193
|
-
useHMSActions as
|
|
37194
|
-
useHMSStore as
|
|
37142
|
+
useHMSActions as useHMSActions43,
|
|
37143
|
+
useHMSStore as useHMSStore69
|
|
37195
37144
|
} from "@100mslive/react-sdk";
|
|
37196
37145
|
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon25 } from "@100mslive/react-icons";
|
|
37197
37146
|
|
|
@@ -37377,22 +37326,22 @@ var iconDims = { height: "40px", width: "40px" };
|
|
|
37377
37326
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
|
37378
37327
|
var _a8;
|
|
37379
37328
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
|
37380
|
-
const hmsActions2 =
|
|
37381
|
-
const localPeer =
|
|
37382
|
-
const role =
|
|
37383
|
-
const isVideoOn =
|
|
37329
|
+
const hmsActions2 = useHMSActions43();
|
|
37330
|
+
const localPeer = useHMSStore69(selectLocalPeer8);
|
|
37331
|
+
const role = useHMSStore69(at);
|
|
37332
|
+
const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
|
|
37384
37333
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
|
37385
37334
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
|
37386
|
-
const track =
|
|
37335
|
+
const track = useHMSStore69(trackSelector);
|
|
37387
37336
|
const [blurAmount, setBlurAmount] = useState56(VBHandler.getBlurAmount() || 0.5);
|
|
37388
|
-
const roomState =
|
|
37389
|
-
const isLargeRoom =
|
|
37390
|
-
const isEffectsEnabled =
|
|
37391
|
-
const effectsKey =
|
|
37337
|
+
const roomState = useHMSStore69(selectRoomState4);
|
|
37338
|
+
const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
|
|
37339
|
+
const isEffectsEnabled = useHMSStore69(ym);
|
|
37340
|
+
const effectsKey = useHMSStore69(km);
|
|
37392
37341
|
const isMobile = useMedia23(config.media.md);
|
|
37393
37342
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
|
37394
|
-
const isPluginAdded =
|
|
37395
|
-
const background =
|
|
37343
|
+
const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
|
37344
|
+
const background = useHMSStore69(Um(APP_DATA.background));
|
|
37396
37345
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
|
37397
37346
|
const inPreview = roomState === HMSRoomState4.Preview;
|
|
37398
37347
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
|
@@ -37638,9 +37587,9 @@ var SidePane = ({
|
|
|
37638
37587
|
}) => {
|
|
37639
37588
|
var _a8, _b7, _c, _d, _e2, _f, _g;
|
|
37640
37589
|
const isMobile = useMedia24(config.media.md);
|
|
37641
|
-
const sidepane =
|
|
37642
|
-
const activeScreensharePeerId =
|
|
37643
|
-
const trackId = (_a8 =
|
|
37590
|
+
const sidepane = useHMSStore70(selectAppData8(APP_DATA.sidePane));
|
|
37591
|
+
const activeScreensharePeerId = useHMSStore70(selectAppData8(APP_DATA.activeScreensharePeerId));
|
|
37592
|
+
const trackId = (_a8 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
|
37644
37593
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
37645
37594
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
|
37646
37595
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
|
@@ -37836,8 +37785,8 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
|
37836
37785
|
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
|
37837
37786
|
};
|
|
37838
37787
|
var useLocalTileAspectRatio = () => {
|
|
37839
|
-
const localPeer =
|
|
37840
|
-
const videoTrack =
|
|
37788
|
+
const localPeer = useHMSStore71(selectLocalPeer9);
|
|
37789
|
+
const videoTrack = useHMSStore71(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
|
|
37841
37790
|
const isMobile = useMedia26(config.media.md);
|
|
37842
37791
|
let aspectRatio = 0;
|
|
37843
37792
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
|
@@ -37863,7 +37812,7 @@ var PreviewJoin = ({
|
|
|
37863
37812
|
const [previewError, setPreviewError] = useState57(false);
|
|
37864
37813
|
const { endpoints } = useHMSPrebuiltContext();
|
|
37865
37814
|
const { peerCount } = useParticipants2();
|
|
37866
|
-
const loadingEffects =
|
|
37815
|
+
const loadingEffects = useHMSStore71(selectAppData9(APP_DATA.loadingEffects));
|
|
37867
37816
|
const { enableJoin, preview, join } = usePreviewJoin({
|
|
37868
37817
|
name,
|
|
37869
37818
|
token: authToken,
|
|
@@ -37881,8 +37830,8 @@ var PreviewJoin = ({
|
|
|
37881
37830
|
},
|
|
37882
37831
|
asRole
|
|
37883
37832
|
});
|
|
37884
|
-
const roomState =
|
|
37885
|
-
const savePreferenceAndJoin =
|
|
37833
|
+
const roomState = useHMSStore71(selectRoomState5);
|
|
37834
|
+
const savePreferenceAndJoin = useCallback31(() => {
|
|
37886
37835
|
setPreviewPreference({
|
|
37887
37836
|
name
|
|
37888
37837
|
});
|
|
@@ -37947,12 +37896,12 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
|
37947
37896
|
px: "$10"
|
|
37948
37897
|
}));
|
|
37949
37898
|
var PreviewTile = ({ name, error }) => {
|
|
37950
|
-
const localPeer =
|
|
37899
|
+
const localPeer = useHMSStore71(selectLocalPeer9);
|
|
37951
37900
|
const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
|
|
37952
|
-
const isVideoOn =
|
|
37901
|
+
const isVideoOn = useHMSStore71(selectIsLocalVideoEnabled7);
|
|
37953
37902
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
|
37954
37903
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
|
37955
|
-
const track =
|
|
37904
|
+
const track = useHMSStore71(trackSelector);
|
|
37956
37905
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
|
37957
37906
|
const aspectRatio = useLocalTileAspectRatio();
|
|
37958
37907
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
|
|
@@ -38040,12 +37989,12 @@ var RequestActions = ({
|
|
|
38040
37989
|
|
|
38041
37990
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
|
38042
37991
|
var RoleChangeRequestModal = () => {
|
|
38043
|
-
const hmsActions2 =
|
|
37992
|
+
const hmsActions2 = useHMSActions44();
|
|
38044
37993
|
const { updateMetaData } = useMyMetadata();
|
|
38045
|
-
const isPreview =
|
|
38046
|
-
const currentRole =
|
|
38047
|
-
const roleChangeRequest =
|
|
38048
|
-
const name =
|
|
37994
|
+
const isPreview = useHMSStore72(selectIsInPreview);
|
|
37995
|
+
const currentRole = useHMSStore72(selectLocalPeerRoleName4);
|
|
37996
|
+
const roleChangeRequest = useHMSStore72(selectRoleChangeRequest);
|
|
37997
|
+
const name = useHMSStore72(selectLocalPeerName4);
|
|
38049
37998
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
|
38050
37999
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
|
38051
38000
|
const { virtual_background } = elements || {};
|
|
@@ -38120,8 +38069,8 @@ import {
|
|
|
38120
38069
|
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
|
38121
38070
|
selectIsLocalScreenShared as selectIsLocalScreenShared2,
|
|
38122
38071
|
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
|
38123
|
-
useHMSActions as
|
|
38124
|
-
useHMSStore as
|
|
38072
|
+
useHMSActions as useHMSActions46,
|
|
38073
|
+
useHMSStore as useHMSStore83
|
|
38125
38074
|
} from "@100mslive/react-sdk";
|
|
38126
38075
|
import { PeopleAddIcon as PeopleAddIcon3, ShareScreenIcon as ShareScreenIcon6 } from "@100mslive/react-icons";
|
|
38127
38076
|
|
|
@@ -38134,7 +38083,7 @@ import {
|
|
|
38134
38083
|
selectPeers as selectPeers3,
|
|
38135
38084
|
selectPeerScreenSharing as selectPeerScreenSharing2,
|
|
38136
38085
|
selectWhiteboard as selectWhiteboard2,
|
|
38137
|
-
useHMSStore as
|
|
38086
|
+
useHMSStore as useHMSStore79,
|
|
38138
38087
|
useHMSVanillaStore as useHMSVanillaStore12
|
|
38139
38088
|
} from "@100mslive/react-sdk";
|
|
38140
38089
|
|
|
@@ -38210,7 +38159,7 @@ import {
|
|
|
38210
38159
|
selectLocalPeer as selectLocalPeer10,
|
|
38211
38160
|
selectPeerByID as selectPeerByID3,
|
|
38212
38161
|
selectVideoTrackByID as selectVideoTrackByID6,
|
|
38213
|
-
useHMSStore as
|
|
38162
|
+
useHMSStore as useHMSStore73
|
|
38214
38163
|
} from "@100mslive/react-sdk";
|
|
38215
38164
|
import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
|
|
38216
38165
|
|
|
@@ -38251,10 +38200,10 @@ var InsetTile = ({ peerId }) => {
|
|
|
38251
38200
|
const isMobile = useMedia28(config.media.md);
|
|
38252
38201
|
const isLandscape = useMedia28(config.media.ls);
|
|
38253
38202
|
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer10;
|
|
38254
|
-
const peer =
|
|
38203
|
+
const peer = useHMSStore73(selector);
|
|
38255
38204
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
|
38256
|
-
const videoTrack =
|
|
38257
|
-
const isAllowedToPublish =
|
|
38205
|
+
const videoTrack = useHMSStore73(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
|
|
38206
|
+
const isAllowedToPublish = useHMSStore73(selectIsAllowedToPublish3);
|
|
38258
38207
|
const videoTileProps = useVideoTileContext();
|
|
38259
38208
|
let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
|
|
38260
38209
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
|
|
@@ -38557,13 +38506,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
|
38557
38506
|
init_define_process_env();
|
|
38558
38507
|
import React145, { useEffect as useEffect45, useState as useState61 } from "react";
|
|
38559
38508
|
import { useMedia as useMedia32 } from "react-use";
|
|
38560
|
-
import { selectLocalPeer as selectLocalPeer11, useHMSStore as
|
|
38509
|
+
import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
|
38561
38510
|
|
|
38562
38511
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
|
38563
38512
|
init_define_process_env();
|
|
38564
38513
|
import React144, { useEffect as useEffect44, useRef as useRef26, useState as useState60 } from "react";
|
|
38565
38514
|
import { useMedia as useMedia31 } from "react-use";
|
|
38566
|
-
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as
|
|
38515
|
+
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
|
|
38567
38516
|
|
|
38568
38517
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
|
38569
38518
|
init_define_process_env();
|
|
@@ -38650,10 +38599,10 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
|
38650
38599
|
const isMobile = useMedia31(config.media.md);
|
|
38651
38600
|
const maxTileCount = isMobile ? 2 : 4;
|
|
38652
38601
|
const [page, setPage] = useState60(0);
|
|
38653
|
-
const pinnedTrackId =
|
|
38654
|
-
const spotlightPeerId =
|
|
38655
|
-
const activeScreensharePeerId =
|
|
38656
|
-
const pinnedPeer = (_a8 =
|
|
38602
|
+
const pinnedTrackId = useHMSStore74(selectAppData10(APP_DATA.pinnedTrackId));
|
|
38603
|
+
const spotlightPeerId = useHMSStore74(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
|
38604
|
+
const activeScreensharePeerId = useHMSStore74(selectAppData10(APP_DATA.activeScreensharePeerId));
|
|
38605
|
+
const pinnedPeer = (_a8 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
|
|
38657
38606
|
const pageChangedAfterPinning = useRef26(false);
|
|
38658
38607
|
const pagesWithTiles = usePagesWithTiles({
|
|
38659
38608
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
|
@@ -38753,7 +38702,7 @@ function RoleProminence({
|
|
|
38753
38702
|
}) {
|
|
38754
38703
|
var _a8;
|
|
38755
38704
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
|
38756
|
-
const localPeer =
|
|
38705
|
+
const localPeer = useHMSStore75(selectLocalPeer11);
|
|
38757
38706
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
|
38758
38707
|
const isMobile = useMedia32(config.media.md);
|
|
38759
38708
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
|
@@ -38798,7 +38747,7 @@ function RoleProminence({
|
|
|
38798
38747
|
init_define_process_env();
|
|
38799
38748
|
import React149, { useEffect as useEffect46, useMemo as useMemo17, useState as useState64 } from "react";
|
|
38800
38749
|
import { useMedia as useMedia34 } from "react-use";
|
|
38801
|
-
import { selectPeersScreenSharing, useHMSStore as
|
|
38750
|
+
import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
|
38802
38751
|
|
|
38803
38752
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
|
38804
38753
|
init_define_process_env();
|
|
@@ -38810,18 +38759,18 @@ import {
|
|
|
38810
38759
|
selectPeerByID as selectPeerByID4,
|
|
38811
38760
|
selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
|
|
38812
38761
|
selectScreenShareByPeerID as selectScreenShareByPeerID2,
|
|
38813
|
-
useHMSStore as
|
|
38762
|
+
useHMSStore as useHMSStore76
|
|
38814
38763
|
} from "@100mslive/react-sdk";
|
|
38815
38764
|
import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
|
|
38816
38765
|
|
|
38817
38766
|
// src/Prebuilt/components/LayoutModeSelector.tsx
|
|
38818
38767
|
init_define_process_env();
|
|
38819
|
-
import React146, { useCallback as
|
|
38768
|
+
import React146, { useCallback as useCallback32, useState as useState62 } from "react";
|
|
38820
38769
|
import { CheckIcon as CheckIcon7, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
|
|
38821
38770
|
var LayoutModeSelector = () => {
|
|
38822
38771
|
const [open, setOpen] = useState62(false);
|
|
38823
38772
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
|
38824
|
-
const updateLayoutMode =
|
|
38773
|
+
const updateLayoutMode = useCallback32(
|
|
38825
38774
|
(value) => {
|
|
38826
38775
|
setLayoutMode(value);
|
|
38827
38776
|
setOpen(false);
|
|
@@ -38921,10 +38870,10 @@ var LayoutModeSelector = () => {
|
|
|
38921
38870
|
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
|
38922
38871
|
init_define_process_env();
|
|
38923
38872
|
import React147 from "react";
|
|
38924
|
-
import { useHMSActions as
|
|
38873
|
+
import { useHMSActions as useHMSActions45 } from "@100mslive/react-sdk";
|
|
38925
38874
|
import { CrossIcon as CrossIcon26, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
|
38926
38875
|
var ScreenshareDisplay = () => {
|
|
38927
|
-
const hmsActions2 =
|
|
38876
|
+
const hmsActions2 = useHMSActions45();
|
|
38928
38877
|
return /* @__PURE__ */ React147.createElement(
|
|
38929
38878
|
Flex,
|
|
38930
38879
|
{
|
|
@@ -38965,10 +38914,10 @@ var labelStyles = {
|
|
|
38965
38914
|
flexShrink: 0
|
|
38966
38915
|
};
|
|
38967
38916
|
var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
38968
|
-
const isLocal =
|
|
38969
|
-
const track =
|
|
38917
|
+
const isLocal = useHMSStore76(selectLocalPeerID12) === peerId;
|
|
38918
|
+
const track = useHMSStore76(selectScreenShareByPeerID2(peerId));
|
|
38970
38919
|
const { theme: theme2 } = useTheme();
|
|
38971
|
-
const peer =
|
|
38920
|
+
const peer = useHMSStore76(selectPeerByID4(peerId));
|
|
38972
38921
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
|
38973
38922
|
const [isMouseHovered, setIsMouseHovered] = useState63(false);
|
|
38974
38923
|
const isMobile = useMedia33(config.media.md);
|
|
@@ -38979,7 +38928,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
|
38979
38928
|
onClose: () => setFullscreen(false)
|
|
38980
38929
|
});
|
|
38981
38930
|
const isFullScreenSupported = screenfull2.isEnabled;
|
|
38982
|
-
const audioTrack =
|
|
38931
|
+
const audioTrack = useHMSStore76(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
|
|
38983
38932
|
if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
|
|
38984
38933
|
return /* @__PURE__ */ React148.createElement(ScreenshareDisplay, null);
|
|
38985
38934
|
}
|
|
@@ -39058,7 +39007,7 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
|
39058
39007
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
|
39059
39008
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
39060
39009
|
var _a8;
|
|
39061
|
-
const peersSharing =
|
|
39010
|
+
const peersSharing = useHMSStore77(selectPeersScreenSharing);
|
|
39062
39011
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
|
39063
39012
|
const [page, setPage] = useState64(0);
|
|
39064
39013
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
|
@@ -39110,7 +39059,7 @@ init_define_process_env();
|
|
|
39110
39059
|
import React150, { useEffect as useEffect47, useMemo as useMemo18 } from "react";
|
|
39111
39060
|
import { useMedia as useMedia35 } from "react-use";
|
|
39112
39061
|
import { Whiteboard } from "@100mslive/hms-whiteboard";
|
|
39113
|
-
import { selectPeerByCondition, selectWhiteboard, useHMSStore as
|
|
39062
|
+
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
|
39114
39063
|
var WhiteboardEmbed = () => {
|
|
39115
39064
|
const isMobile = useMedia35(config.media.md);
|
|
39116
39065
|
const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
|
|
@@ -39131,8 +39080,8 @@ var WhiteboardEmbed = () => {
|
|
|
39131
39080
|
);
|
|
39132
39081
|
};
|
|
39133
39082
|
var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
39134
|
-
const whiteboard =
|
|
39135
|
-
const whiteboardOwner =
|
|
39083
|
+
const whiteboard = useHMSStore78(selectWhiteboard);
|
|
39084
|
+
const whiteboardOwner = useHMSStore78(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
|
39136
39085
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
|
39137
39086
|
const isMobile = useMedia35(config.media.md);
|
|
39138
39087
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
|
@@ -39277,12 +39226,12 @@ var GridLayout = ({
|
|
|
39277
39226
|
edge_to_edge = false,
|
|
39278
39227
|
hide_metadata_on_tile = false
|
|
39279
39228
|
}) => {
|
|
39280
|
-
const peerSharing =
|
|
39281
|
-
const whiteboard =
|
|
39229
|
+
const peerSharing = useHMSStore79(selectPeerScreenSharing2);
|
|
39230
|
+
const whiteboard = useHMSStore79(selectWhiteboard2);
|
|
39282
39231
|
const pinnedTrack = usePinnedTrack();
|
|
39283
|
-
const peers =
|
|
39284
|
-
const localPeerRole =
|
|
39285
|
-
const localPeerID =
|
|
39232
|
+
const peers = useHMSStore79(selectPeers3);
|
|
39233
|
+
const localPeerRole = useHMSStore79(selectLocalPeerRoleName5);
|
|
39234
|
+
const localPeerID = useHMSStore79(selectLocalPeerID13);
|
|
39286
39235
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
|
39287
39236
|
const isRoleProminence = prominentRoles.length && peers.some(
|
|
39288
39237
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
|
@@ -39381,13 +39330,13 @@ var GridLayout = ({
|
|
|
39381
39330
|
// src/Prebuilt/layouts/EmbedView.jsx
|
|
39382
39331
|
init_define_process_env();
|
|
39383
39332
|
import React152, { useEffect as useEffect49, useMemo as useMemo20 } from "react";
|
|
39384
|
-
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as
|
|
39333
|
+
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
|
|
39385
39334
|
var EmbedView = () => {
|
|
39386
39335
|
return /* @__PURE__ */ React152.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React152.createElement(EmbedComponent, null));
|
|
39387
39336
|
};
|
|
39388
39337
|
var EmbedScreenShareView = ({ children }) => {
|
|
39389
|
-
const peers =
|
|
39390
|
-
const peerPresenting =
|
|
39338
|
+
const peers = useHMSStore80(selectPeers4);
|
|
39339
|
+
const peerPresenting = useHMSStore80(selectPeerScreenSharing3);
|
|
39391
39340
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
|
39392
39341
|
const smallTilePeers = useMemo20(() => {
|
|
39393
39342
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
|
@@ -39402,7 +39351,7 @@ var EmbedScreenShareView = ({ children }) => {
|
|
|
39402
39351
|
return /* @__PURE__ */ React152.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React152.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React152.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
|
39403
39352
|
};
|
|
39404
39353
|
var EmbedComponent = () => {
|
|
39405
|
-
const embedConfig =
|
|
39354
|
+
const embedConfig = useHMSStore80(selectAppData11(APP_DATA.embedConfig));
|
|
39406
39355
|
const resetConfig = useResetEmbedConfig();
|
|
39407
39356
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
|
39408
39357
|
useEffect49(() => {
|
|
@@ -39518,7 +39467,7 @@ import { useMedia as useMedia36 } from "react-use";
|
|
|
39518
39467
|
import {
|
|
39519
39468
|
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
|
|
39520
39469
|
selectPeerNameByID as selectPeerNameByID5,
|
|
39521
|
-
useHMSStore as
|
|
39470
|
+
useHMSStore as useHMSStore81,
|
|
39522
39471
|
useTranscript
|
|
39523
39472
|
} from "@100mslive/react-sdk";
|
|
39524
39473
|
var SimpleQueue = class {
|
|
@@ -39654,7 +39603,7 @@ var CaptionMaintainerQueue = class {
|
|
|
39654
39603
|
}
|
|
39655
39604
|
};
|
|
39656
39605
|
var TranscriptView = ({ peer_id, data: data3 }) => {
|
|
39657
|
-
const peerName =
|
|
39606
|
+
const peerName = useHMSStore81(selectPeerNameByID5(peer_id)) || "Participant";
|
|
39658
39607
|
data3 = data3.trim();
|
|
39659
39608
|
if (!data3)
|
|
39660
39609
|
return null;
|
|
@@ -39682,7 +39631,7 @@ var CaptionsViewer = ({
|
|
|
39682
39631
|
const [captionQueue] = useState66(new CaptionMaintainerQueue());
|
|
39683
39632
|
const [currentData, setCurrentData] = useState66([]);
|
|
39684
39633
|
const isCaptionEnabled = useIsCaptionEnabled();
|
|
39685
|
-
const isTranscriptionEnabled =
|
|
39634
|
+
const isTranscriptionEnabled = useHMSStore81(selectIsTranscriptionEnabled5);
|
|
39686
39635
|
const nodeRef = useRef28(null);
|
|
39687
39636
|
useEffect51(() => {
|
|
39688
39637
|
const timeInterval = setInterval(() => {
|
|
@@ -39752,9 +39701,9 @@ var CaptionsViewer = ({
|
|
|
39752
39701
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
|
39753
39702
|
init_define_process_env();
|
|
39754
39703
|
import { useEffect as useEffect52 } from "react";
|
|
39755
|
-
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as
|
|
39704
|
+
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore82, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
|
39756
39705
|
var useCloseScreenshareWhiteboard = () => {
|
|
39757
|
-
const peerSharing =
|
|
39706
|
+
const peerSharing = useHMSStore82(selectPeerScreenSharing4);
|
|
39758
39707
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
|
39759
39708
|
useEffect52(() => {
|
|
39760
39709
|
if (isWhiteboardOwner && peerSharing) {
|
|
@@ -39764,17 +39713,17 @@ var useCloseScreenshareWhiteboard = () => {
|
|
|
39764
39713
|
};
|
|
39765
39714
|
|
|
39766
39715
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
|
39767
|
-
var HLSView = React155.lazy(() => import("./HLSView-
|
|
39716
|
+
var HLSView = React155.lazy(() => import("./HLSView-6X6A7QVC.js"));
|
|
39768
39717
|
var VideoStreamingSection = ({
|
|
39769
39718
|
screenType,
|
|
39770
39719
|
elements,
|
|
39771
39720
|
hideControls = false
|
|
39772
39721
|
}) => {
|
|
39773
39722
|
var _a8;
|
|
39774
|
-
const localPeerRoleName =
|
|
39775
|
-
const isConnected =
|
|
39776
|
-
const isSharingScreen =
|
|
39777
|
-
const hmsActions2 =
|
|
39723
|
+
const localPeerRoleName = useHMSStore83(selectLocalPeerRoleName6);
|
|
39724
|
+
const isConnected = useHMSStore83(selectIsConnectedToRoom9);
|
|
39725
|
+
const isSharingScreen = useHMSStore83(selectIsLocalScreenShared2);
|
|
39726
|
+
const hmsActions2 = useHMSActions46();
|
|
39778
39727
|
const urlToIframe = useUrlToEmbed();
|
|
39779
39728
|
const pdfAnnotatorActive = usePDFConfig();
|
|
39780
39729
|
const isMobileHLSStream = useMobileHLSStream();
|
|
@@ -39883,7 +39832,7 @@ init_define_process_env();
|
|
|
39883
39832
|
init_define_process_env();
|
|
39884
39833
|
import React158 from "react";
|
|
39885
39834
|
import { useMedia as useMedia39 } from "react-use";
|
|
39886
|
-
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as
|
|
39835
|
+
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
|
|
39887
39836
|
|
|
39888
39837
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
|
39889
39838
|
init_define_process_env();
|
|
@@ -39918,8 +39867,8 @@ import {
|
|
|
39918
39867
|
selectLocalVideoTrackID as selectLocalVideoTrackID3,
|
|
39919
39868
|
selectVideoTrackByID as selectVideoTrackByID7,
|
|
39920
39869
|
useDevices as useDevices3,
|
|
39921
|
-
useHMSActions as
|
|
39922
|
-
useHMSStore as
|
|
39870
|
+
useHMSActions as useHMSActions47,
|
|
39871
|
+
useHMSStore as useHMSStore84
|
|
39923
39872
|
} from "@100mslive/react-sdk";
|
|
39924
39873
|
import {
|
|
39925
39874
|
BluetoothIcon,
|
|
@@ -39931,12 +39880,12 @@ import {
|
|
|
39931
39880
|
TelePhoneIcon
|
|
39932
39881
|
} from "@100mslive/react-icons";
|
|
39933
39882
|
var CamaraFlipActions = () => {
|
|
39934
|
-
const actions =
|
|
39883
|
+
const actions = useHMSActions47();
|
|
39935
39884
|
const { allDevices } = useDevices3();
|
|
39936
39885
|
const { videoInput } = allDevices;
|
|
39937
|
-
const isVideoOn =
|
|
39938
|
-
const videoTrackId =
|
|
39939
|
-
const localVideoTrack =
|
|
39886
|
+
const isVideoOn = useHMSStore84(selectIsLocalVideoEnabled8);
|
|
39887
|
+
const videoTrackId = useHMSStore84(selectLocalVideoTrackID3);
|
|
39888
|
+
const localVideoTrack = useHMSStore84(selectVideoTrackByID7(videoTrackId));
|
|
39940
39889
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
|
39941
39890
|
return null;
|
|
39942
39891
|
}
|
|
@@ -39968,7 +39917,7 @@ var AudioActions = () => {
|
|
|
39968
39917
|
availableAudioDevices = audioOutput;
|
|
39969
39918
|
selectedAudio = selectedDeviceIDs.audioOutput;
|
|
39970
39919
|
}
|
|
39971
|
-
const hmsActions2 =
|
|
39920
|
+
const hmsActions2 = useHMSActions47();
|
|
39972
39921
|
const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
|
|
39973
39922
|
const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
|
|
39974
39923
|
if (!audioFiltered) {
|
|
@@ -40074,7 +40023,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React157.createElement(Re
|
|
|
40074
40023
|
|
|
40075
40024
|
// src/Prebuilt/components/Header/Header.tsx
|
|
40076
40025
|
var Header2 = () => {
|
|
40077
|
-
const roomState =
|
|
40026
|
+
const roomState = useHMSStore85(selectRoomState6);
|
|
40078
40027
|
const isMobile = useMedia39(config.media.md);
|
|
40079
40028
|
if (roomState !== HMSRoomState6.Connected) {
|
|
40080
40029
|
return /* @__PURE__ */ React158.createElement(React158.Fragment, null);
|
|
@@ -40120,11 +40069,11 @@ var ConferenceScreen = () => {
|
|
|
40120
40069
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
|
40121
40070
|
const screenProps = useRoomLayoutConferencingScreen();
|
|
40122
40071
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
|
40123
|
-
const roomState =
|
|
40124
|
-
const isConnectedToRoom =
|
|
40125
|
-
const hmsActions2 =
|
|
40072
|
+
const roomState = useHMSStore86(selectRoomState7);
|
|
40073
|
+
const isConnectedToRoom = useHMSStore86(selectIsConnectedToRoom10);
|
|
40074
|
+
const hmsActions2 = useHMSActions48();
|
|
40126
40075
|
const [hideControls, setHideControls] = useState68(false);
|
|
40127
|
-
const dropdownList =
|
|
40076
|
+
const dropdownList = useHMSStore86(selectAppData12(APP_DATA.dropdownList));
|
|
40128
40077
|
const authTokenInAppData = useAuthToken();
|
|
40129
40078
|
const headerRef = useRef29(null);
|
|
40130
40079
|
const footerRef = useRef29(null);
|
|
@@ -40358,7 +40307,7 @@ import React161, { useEffect as useEffect57 } from "react";
|
|
|
40358
40307
|
// src/Prebuilt/services/FeatureFlags.jsx
|
|
40359
40308
|
init_define_process_env();
|
|
40360
40309
|
import { useEffect as useEffect56 } from "react";
|
|
40361
|
-
import { selectRoomID, useHMSStore as
|
|
40310
|
+
import { selectRoomID, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
|
|
40362
40311
|
var FeatureFlags = class {
|
|
40363
40312
|
static init(roomId) {
|
|
40364
40313
|
if (!window.HMS) {
|
|
@@ -40383,7 +40332,7 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
|
|
|
40383
40332
|
__publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
|
|
40384
40333
|
__publicField(FeatureFlags, "enableWhiteboard", define_process_env_default.REACT_APP_ENABLE_WHITEBOARD && define_process_env_default.REACT_APP_PUSHER_APP_KEY && define_process_env_default.REACT_APP_PUSHER_AUTHENDPOINT);
|
|
40385
40334
|
function FeatureFlagsInit() {
|
|
40386
|
-
const roomId =
|
|
40335
|
+
const roomId = useHMSStore87(selectRoomID);
|
|
40387
40336
|
useEffect56(() => {
|
|
40388
40337
|
if (roomId) {
|
|
40389
40338
|
FeatureFlags.init(roomId);
|
|
@@ -40419,7 +40368,7 @@ import {
|
|
|
40419
40368
|
selectAppData as selectAppData13,
|
|
40420
40369
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
|
40421
40370
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
|
40422
|
-
useHMSActions as
|
|
40371
|
+
useHMSActions as useHMSActions49,
|
|
40423
40372
|
useHMSVanillaStore as useHMSVanillaStore14
|
|
40424
40373
|
} from "@100mslive/react-sdk";
|
|
40425
40374
|
var isEvenListenersAttached = false;
|
|
@@ -40508,7 +40457,7 @@ _bind = new WeakMap();
|
|
|
40508
40457
|
_unbind = new WeakMap();
|
|
40509
40458
|
var KeyboardHandler = () => {
|
|
40510
40459
|
const store = useHMSVanillaStore14();
|
|
40511
|
-
const actions =
|
|
40460
|
+
const actions = useHMSActions49();
|
|
40512
40461
|
useEffect58(() => {
|
|
40513
40462
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
|
40514
40463
|
keyboardManager.bindAllShortcuts();
|
|
@@ -40527,14 +40476,14 @@ init_define_process_env();
|
|
|
40527
40476
|
import React162, { useContext as useContext4, useEffect as useEffect59 } from "react";
|
|
40528
40477
|
import { usePreviousDistinct } from "react-use";
|
|
40529
40478
|
import { match as match13, P as P5 } from "ts-pattern";
|
|
40530
|
-
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as
|
|
40479
|
+
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
|
|
40531
40480
|
|
|
40532
40481
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
|
40533
40482
|
init_define_process_env();
|
|
40534
|
-
import { useCallback as
|
|
40483
|
+
import { useCallback as useCallback33 } from "react";
|
|
40535
40484
|
var useRedirectToLeave = () => {
|
|
40536
40485
|
const { onLeave } = useHMSPrebuiltContext();
|
|
40537
|
-
const redirect =
|
|
40486
|
+
const redirect = useCallback33(
|
|
40538
40487
|
(timeout = 0) => {
|
|
40539
40488
|
setTimeout(() => {
|
|
40540
40489
|
PictureInPicture.stop().catch(() => console.error("stopping pip"));
|
|
@@ -40564,7 +40513,7 @@ var useHMSAppStateContext = () => {
|
|
|
40564
40513
|
var useAppStateManager = () => {
|
|
40565
40514
|
const roomLayout = useRoomLayout();
|
|
40566
40515
|
const [activeState, setActiveState] = React162.useState();
|
|
40567
|
-
const roomState =
|
|
40516
|
+
const roomState = useHMSStore88(selectRoomState8);
|
|
40568
40517
|
const prevRoomState = usePreviousDistinct(roomState);
|
|
40569
40518
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
|
40570
40519
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
|
@@ -40697,7 +40646,7 @@ init_define_process_env();
|
|
|
40697
40646
|
|
|
40698
40647
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
|
40699
40648
|
init_define_process_env();
|
|
40700
|
-
import React174, { useCallback as
|
|
40649
|
+
import React174, { useCallback as useCallback35, useEffect as useEffect71 } from "react";
|
|
40701
40650
|
import {
|
|
40702
40651
|
HMSNotificationTypes as HMSNotificationTypes11,
|
|
40703
40652
|
HMSRoomState as HMSRoomState10,
|
|
@@ -40708,7 +40657,7 @@ import {
|
|
|
40708
40657
|
useAwayNotifications as useAwayNotifications2,
|
|
40709
40658
|
useCustomEvent as useCustomEvent4,
|
|
40710
40659
|
useHMSNotifications as useHMSNotifications11,
|
|
40711
|
-
useHMSStore as
|
|
40660
|
+
useHMSStore as useHMSStore92,
|
|
40712
40661
|
useHMSVanillaStore as useHMSVanillaStore16
|
|
40713
40662
|
} from "@100mslive/react-sdk";
|
|
40714
40663
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
|
@@ -40748,12 +40697,12 @@ function AutoplayBlockedModal() {
|
|
|
40748
40697
|
init_define_process_env();
|
|
40749
40698
|
import React166, { useEffect as useEffect61 } from "react";
|
|
40750
40699
|
import { v4 as uuid4 } from "uuid";
|
|
40751
|
-
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore12, useHMSStore as
|
|
40700
|
+
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
|
40752
40701
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
|
40753
40702
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
|
40754
40703
|
var ChatNotifications = () => {
|
|
40755
|
-
const chatState =
|
|
40756
|
-
const localPeerId =
|
|
40704
|
+
const chatState = useHMSStore89(selectSessionStore12("chatState" /* CHAT_STATE */));
|
|
40705
|
+
const localPeerId = useHMSStore89(selectLocalPeerID14);
|
|
40757
40706
|
useEffect61(() => {
|
|
40758
40707
|
var _a8, _b7;
|
|
40759
40708
|
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
|
@@ -40783,7 +40732,7 @@ import {
|
|
|
40783
40732
|
selectPeerByID as selectPeerByID6,
|
|
40784
40733
|
selectRoomState as selectRoomState9,
|
|
40785
40734
|
useHMSNotifications as useHMSNotifications2,
|
|
40786
|
-
useHMSStore as
|
|
40735
|
+
useHMSStore as useHMSStore91,
|
|
40787
40736
|
useHMSVanillaStore as useHMSVanillaStore15
|
|
40788
40737
|
} from "@100mslive/react-sdk";
|
|
40789
40738
|
|
|
@@ -40792,8 +40741,8 @@ init_define_process_env();
|
|
|
40792
40741
|
|
|
40793
40742
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
|
40794
40743
|
init_define_process_env();
|
|
40795
|
-
import React167, { useCallback as
|
|
40796
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as
|
|
40744
|
+
import React167, { useCallback as useCallback34 } from "react";
|
|
40745
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions50, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
|
|
40797
40746
|
import {
|
|
40798
40747
|
ChatUnreadIcon as ChatUnreadIcon2,
|
|
40799
40748
|
ConnectivityIcon,
|
|
@@ -40812,10 +40761,10 @@ var ChatAction = React167.forwardRef((_3, ref) => {
|
|
|
40812
40761
|
});
|
|
40813
40762
|
var HandRaiseAction = React167.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
|
40814
40763
|
var _a8, _b7, _c;
|
|
40815
|
-
const hmsActions2 =
|
|
40764
|
+
const hmsActions2 = useHMSActions50();
|
|
40816
40765
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
40817
40766
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
40818
|
-
const peer =
|
|
40767
|
+
const peer = useHMSStore90(selectPeerByID5(id));
|
|
40819
40768
|
const layout = useRoomLayout();
|
|
40820
40769
|
const {
|
|
40821
40770
|
bring_to_stage_label,
|
|
@@ -40823,7 +40772,7 @@ var HandRaiseAction = React167.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
|
40823
40772
|
off_stage_roles = [],
|
|
40824
40773
|
skip_preview_for_role_change = false
|
|
40825
40774
|
} = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
|
|
40826
|
-
const onClickHandler =
|
|
40775
|
+
const onClickHandler = useCallback34(() => __async(void 0, null, function* () {
|
|
40827
40776
|
if (isSingleHandRaise) {
|
|
40828
40777
|
hmsActions2.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
|
40829
40778
|
if (skip_preview_for_role_change) {
|
|
@@ -41023,7 +40972,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
|
41023
40972
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
|
41024
40973
|
var HandRaisedNotifications = () => {
|
|
41025
40974
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
|
41026
|
-
const roomState =
|
|
40975
|
+
const roomState = useHMSStore91(selectRoomState9);
|
|
41027
40976
|
const vanillaStore = useHMSVanillaStore15();
|
|
41028
40977
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
|
41029
40978
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
|
@@ -41244,12 +41193,12 @@ init_define_process_env();
|
|
|
41244
41193
|
import React171, { useEffect as useEffect67, useState as useState73 } from "react";
|
|
41245
41194
|
import {
|
|
41246
41195
|
HMSNotificationTypes as HMSNotificationTypes7,
|
|
41247
|
-
useHMSActions as
|
|
41196
|
+
useHMSActions as useHMSActions51,
|
|
41248
41197
|
useHMSNotifications as useHMSNotifications7
|
|
41249
41198
|
} from "@100mslive/react-sdk";
|
|
41250
41199
|
import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
|
|
41251
41200
|
var TrackBulkUnmuteModal = () => {
|
|
41252
|
-
const hmsActions2 =
|
|
41201
|
+
const hmsActions2 = useHMSActions51();
|
|
41253
41202
|
const [muteNotification, setMuteNotification] = useState73(null);
|
|
41254
41203
|
const notification = useHMSNotifications7([
|
|
41255
41204
|
HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
|
@@ -41318,12 +41267,12 @@ init_define_process_env();
|
|
|
41318
41267
|
import React172, { useEffect as useEffect69, useState as useState74 } from "react";
|
|
41319
41268
|
import {
|
|
41320
41269
|
HMSNotificationTypes as HMSNotificationTypes9,
|
|
41321
|
-
useHMSActions as
|
|
41270
|
+
useHMSActions as useHMSActions52,
|
|
41322
41271
|
useHMSNotifications as useHMSNotifications9
|
|
41323
41272
|
} from "@100mslive/react-sdk";
|
|
41324
41273
|
import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
|
|
41325
41274
|
var TrackUnmuteModal = () => {
|
|
41326
|
-
const hmsActions2 =
|
|
41275
|
+
const hmsActions2 = useHMSActions52();
|
|
41327
41276
|
const notification = useHMSNotifications9([
|
|
41328
41277
|
HMSNotificationTypes9.CHANGE_TRACK_STATE_REQUEST,
|
|
41329
41278
|
HMSNotificationTypes9.ROOM_ENDED,
|
|
@@ -41415,19 +41364,19 @@ var TranscriptionNotifications = () => {
|
|
|
41415
41364
|
var pollToastKey = {};
|
|
41416
41365
|
function Notifications() {
|
|
41417
41366
|
var _a8, _b7;
|
|
41418
|
-
const localPeerID =
|
|
41367
|
+
const localPeerID = useHMSStore92(selectLocalPeerID15);
|
|
41419
41368
|
const notification = useHMSNotifications11();
|
|
41420
41369
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
|
41421
|
-
const roomState =
|
|
41370
|
+
const roomState = useHMSStore92(selectRoomState10);
|
|
41422
41371
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
|
41423
41372
|
const isNotificationDisabled = useIsNotificationDisabled();
|
|
41424
41373
|
const screenProps = useRoomLayoutConferencingScreen();
|
|
41425
41374
|
const vanillaStore = useHMSVanillaStore16();
|
|
41426
41375
|
const togglePollView = usePollViewToggle();
|
|
41427
41376
|
const { showNotification } = useAwayNotifications2();
|
|
41428
|
-
const amIScreenSharing =
|
|
41377
|
+
const amIScreenSharing = useHMSStore92(selectIsLocalScreenShared3);
|
|
41429
41378
|
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
|
41430
|
-
const handleRoleChangeDenied =
|
|
41379
|
+
const handleRoleChangeDenied = useCallback35((request) => {
|
|
41431
41380
|
ToastManager.addToast({
|
|
41432
41381
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
|
41433
41382
|
variant: "error"
|
|
@@ -41582,7 +41531,7 @@ var PreviewScreen = () => {
|
|
|
41582
41531
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
|
41583
41532
|
init_define_process_env();
|
|
41584
41533
|
import React177, { useEffect as useEffect72, useState as useState75 } from "react";
|
|
41585
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as
|
|
41534
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore93 } from "@100mslive/react-sdk";
|
|
41586
41535
|
|
|
41587
41536
|
// src/Prebuilt/components/Toast/Toast.jsx
|
|
41588
41537
|
init_define_process_env();
|
|
@@ -41605,7 +41554,7 @@ var Toast2 = (_a8) => {
|
|
|
41605
41554
|
|
|
41606
41555
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
|
41607
41556
|
var ToastContainer = () => {
|
|
41608
|
-
const isConnected =
|
|
41557
|
+
const isConnected = useHMSStore93(selectIsConnectedToRoom11);
|
|
41609
41558
|
const [toasts, setToast] = useState75([]);
|
|
41610
41559
|
useEffect72(() => {
|
|
41611
41560
|
ToastManager.addListener(setToast);
|
|
@@ -41628,7 +41577,7 @@ var ToastContainer = () => {
|
|
|
41628
41577
|
// src/Prebuilt/layouts/Sheet.tsx
|
|
41629
41578
|
init_define_process_env();
|
|
41630
41579
|
import React179 from "react";
|
|
41631
|
-
import { selectAppData as selectAppData14, useHMSStore as
|
|
41580
|
+
import { selectAppData as selectAppData14, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
|
|
41632
41581
|
|
|
41633
41582
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
|
41634
41583
|
init_define_process_env();
|
|
@@ -41652,7 +41601,7 @@ var RoomDetailsSheet = () => {
|
|
|
41652
41601
|
|
|
41653
41602
|
// src/Prebuilt/layouts/Sheet.tsx
|
|
41654
41603
|
var Sheet2 = () => {
|
|
41655
|
-
const sheet =
|
|
41604
|
+
const sheet = useHMSStore94(selectAppData14(APP_DATA.sheet));
|
|
41656
41605
|
let ViewComponent;
|
|
41657
41606
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
|
41658
41607
|
ViewComponent = /* @__PURE__ */ React179.createElement(RoomDetailsSheet, null);
|
|
@@ -41662,15 +41611,15 @@ var Sheet2 = () => {
|
|
|
41662
41611
|
|
|
41663
41612
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
|
41664
41613
|
init_define_process_env();
|
|
41665
|
-
import React180, { useCallback as
|
|
41614
|
+
import React180, { useCallback as useCallback36, useEffect as useEffect73, useMemo as useMemo21, useState as useState76 } from "react";
|
|
41666
41615
|
import { useMedia as useMedia42 } from "react-use";
|
|
41667
41616
|
import {
|
|
41668
41617
|
selectIsLargeRoom as selectIsLargeRoom4,
|
|
41669
41618
|
selectLocalPeerID as selectLocalPeerID16,
|
|
41670
41619
|
selectPeerNameByID as selectPeerNameByID7,
|
|
41671
41620
|
useCustomEvent as useCustomEvent5,
|
|
41672
|
-
useHMSActions as
|
|
41673
|
-
useHMSStore as
|
|
41621
|
+
useHMSActions as useHMSActions53,
|
|
41622
|
+
useHMSStore as useHMSStore95,
|
|
41674
41623
|
useHMSVanillaStore as useHMSVanillaStore17
|
|
41675
41624
|
} from "@100mslive/react-sdk";
|
|
41676
41625
|
var emojiCount = 1;
|
|
@@ -41697,14 +41646,14 @@ var getStartingPoints = (isMobile) => {
|
|
|
41697
41646
|
return arr;
|
|
41698
41647
|
};
|
|
41699
41648
|
function FlyingEmoji() {
|
|
41700
|
-
const localPeerId =
|
|
41649
|
+
const localPeerId = useHMSStore95(selectLocalPeerID16);
|
|
41701
41650
|
const vanillaStore = useHMSVanillaStore17();
|
|
41702
|
-
const hmsActions2 =
|
|
41651
|
+
const hmsActions2 = useHMSActions53();
|
|
41703
41652
|
const [emojis, setEmojis] = useState76([]);
|
|
41704
41653
|
const isMobile = useMedia42(config.media.md);
|
|
41705
|
-
const isLargeRoom =
|
|
41654
|
+
const isLargeRoom = useHMSStore95(selectIsLargeRoom4);
|
|
41706
41655
|
const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
|
|
41707
|
-
const showFlyingEmoji =
|
|
41656
|
+
const showFlyingEmoji = useCallback36(
|
|
41708
41657
|
(_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
|
|
41709
41658
|
if (!emojiId || !senderId || document.hidden) {
|
|
41710
41659
|
return;
|
|
@@ -41799,11 +41748,11 @@ function FlyingEmoji() {
|
|
|
41799
41748
|
|
|
41800
41749
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
|
41801
41750
|
init_define_process_env();
|
|
41802
|
-
import React181, { useCallback as
|
|
41803
|
-
import { useCustomEvent as useCustomEvent6, useHMSActions as
|
|
41751
|
+
import React181, { useCallback as useCallback37 } from "react";
|
|
41752
|
+
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions54 } from "@100mslive/react-sdk";
|
|
41804
41753
|
function RemoteStopScreenshare() {
|
|
41805
|
-
const actions =
|
|
41806
|
-
const onRemoteStopScreenshare =
|
|
41754
|
+
const actions = useHMSActions54();
|
|
41755
|
+
const onRemoteStopScreenshare = useCallback37(() => __async(this, null, function* () {
|
|
41807
41756
|
yield actions.setScreenShareEnabled(false);
|
|
41808
41757
|
}), [actions]);
|
|
41809
41758
|
useCustomEvent6({
|
|
@@ -41815,23 +41764,23 @@ function RemoteStopScreenshare() {
|
|
|
41815
41764
|
|
|
41816
41765
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
|
41817
41766
|
init_define_process_env();
|
|
41818
|
-
import { useCallback as
|
|
41767
|
+
import { useCallback as useCallback38, useEffect as useEffect74, useRef as useRef30 } from "react";
|
|
41819
41768
|
import {
|
|
41820
41769
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
|
41821
41770
|
selectPermissions as selectPermissions20,
|
|
41822
|
-
useHMSActions as
|
|
41823
|
-
useHMSStore as
|
|
41771
|
+
useHMSActions as useHMSActions55,
|
|
41772
|
+
useHMSStore as useHMSStore96,
|
|
41824
41773
|
useRecordingStreaming as useRecordingStreaming12
|
|
41825
41774
|
} from "@100mslive/react-sdk";
|
|
41826
41775
|
var useAutoStartStreaming = () => {
|
|
41827
41776
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
|
41828
|
-
const permissions =
|
|
41777
|
+
const permissions = useHMSStore96(selectPermissions20);
|
|
41829
41778
|
const showStreamingUI = useShowStreamingUI();
|
|
41830
|
-
const hmsActions2 =
|
|
41831
|
-
const isConnected =
|
|
41779
|
+
const hmsActions2 = useHMSActions55();
|
|
41780
|
+
const isConnected = useHMSStore96(selectIsConnectedToRoom12);
|
|
41832
41781
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
|
41833
41782
|
const streamStartedRef = useRef30(false);
|
|
41834
|
-
const startHLS =
|
|
41783
|
+
const startHLS = useCallback38(() => __async(void 0, null, function* () {
|
|
41835
41784
|
try {
|
|
41836
41785
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
|
41837
41786
|
return;
|
|
@@ -42019,8 +41968,8 @@ var AppStates = ({ activeState }) => {
|
|
|
42019
41968
|
return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React182.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React182.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React182.createElement(ConferenceScreen, null));
|
|
42020
41969
|
};
|
|
42021
41970
|
var BackSwipe = () => {
|
|
42022
|
-
const isConnectedToRoom =
|
|
42023
|
-
const hmsActions2 =
|
|
41971
|
+
const isConnectedToRoom = useHMSStore97(selectIsConnectedToRoom13);
|
|
41972
|
+
const hmsActions2 = useHMSActions56();
|
|
42024
41973
|
useEffect75(() => {
|
|
42025
41974
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
|
42026
41975
|
if (isConnectedToRoom) {
|
|
@@ -42186,8 +42135,8 @@ import {
|
|
|
42186
42135
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
|
42187
42136
|
selectLocalMediaSettings,
|
|
42188
42137
|
selectTrackAudioByID as selectTrackAudioByID2,
|
|
42189
|
-
useHMSActions as
|
|
42190
|
-
useHMSStore as
|
|
42138
|
+
useHMSActions as useHMSActions57,
|
|
42139
|
+
useHMSStore as useHMSStore98
|
|
42191
42140
|
} from "@100mslive/react-sdk";
|
|
42192
42141
|
import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
|
|
42193
42142
|
|
|
@@ -42262,12 +42211,12 @@ DeviceSelector2.propTypes = {
|
|
|
42262
42211
|
var SelectContainer = ({ children }) => /* @__PURE__ */ React185.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
|
|
42263
42212
|
var MicTest = ({ setError }) => {
|
|
42264
42213
|
var _a8, _b7;
|
|
42265
|
-
const devices =
|
|
42214
|
+
const devices = useHMSStore98(selectDevices);
|
|
42266
42215
|
const [isRecording, setIsRecording] = useState78(false);
|
|
42267
42216
|
const [selectedMic, setSelectedMic] = useState78(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
|
|
42268
|
-
const trackID =
|
|
42269
|
-
const audioLevel =
|
|
42270
|
-
const { audioOutputDeviceId } =
|
|
42217
|
+
const trackID = useHMSStore98(selectLocalAudioTrackID2);
|
|
42218
|
+
const audioLevel = useHMSStore98(selectTrackAudioByID2(trackID));
|
|
42219
|
+
const { audioOutputDeviceId } = useHMSStore98(selectLocalMediaSettings);
|
|
42271
42220
|
const { playing, setPlaying, audioRef } = useAudioOutputTest({
|
|
42272
42221
|
deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
|
|
42273
42222
|
});
|
|
@@ -42341,9 +42290,9 @@ var MicTest = ({ setError }) => {
|
|
|
42341
42290
|
};
|
|
42342
42291
|
var SpeakerTest = () => {
|
|
42343
42292
|
var _a8;
|
|
42344
|
-
const actions =
|
|
42345
|
-
const devices =
|
|
42346
|
-
const { audioOutputDeviceId } =
|
|
42293
|
+
const actions = useHMSActions57();
|
|
42294
|
+
const devices = useHMSStore98(selectDevices);
|
|
42295
|
+
const { audioOutputDeviceId } = useHMSStore98(selectLocalMediaSettings);
|
|
42347
42296
|
if (devices.audioOutput.length === 0) {
|
|
42348
42297
|
return /* @__PURE__ */ React185.createElement(React185.Fragment, null);
|
|
42349
42298
|
}
|
|
@@ -42698,14 +42647,14 @@ import {
|
|
|
42698
42647
|
selectDevices as selectDevices2,
|
|
42699
42648
|
selectLocalMediaSettings as selectLocalMediaSettings2,
|
|
42700
42649
|
selectLocalVideoTrackID as selectLocalVideoTrackID4,
|
|
42701
|
-
useHMSStore as
|
|
42650
|
+
useHMSStore as useHMSStore99
|
|
42702
42651
|
} from "@100mslive/react-sdk";
|
|
42703
42652
|
import { VideoOnIcon as VideoOnIcon5 } from "@100mslive/react-icons";
|
|
42704
42653
|
var VideoTest = () => {
|
|
42705
|
-
const allDevices =
|
|
42654
|
+
const allDevices = useHMSStore99(selectDevices2);
|
|
42706
42655
|
const { videoInput } = allDevices;
|
|
42707
|
-
const trackID =
|
|
42708
|
-
const sdkSelectedDevices =
|
|
42656
|
+
const trackID = useHMSStore99(selectLocalVideoTrackID4);
|
|
42657
|
+
const sdkSelectedDevices = useHMSStore99(selectLocalMediaSettings2);
|
|
42709
42658
|
const [error, setError] = useState81();
|
|
42710
42659
|
useEffect78(() => {
|
|
42711
42660
|
hmsDiagnostics.startCameraCheck().catch((err) => setError(err));
|
|
@@ -42937,4 +42886,4 @@ object-assign/index.js:
|
|
|
42937
42886
|
@license MIT
|
|
42938
42887
|
*)
|
|
42939
42888
|
*/
|
|
42940
|
-
//# sourceMappingURL=chunk-
|
|
42889
|
+
//# sourceMappingURL=chunk-2VGMEGOM.js.map
|