@100mslive/roomkit-react 0.3.19-alpha.9 → 0.3.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-EYFJ7YDU.js → HLSView-GYB2QDIN.js} +2 -2
- package/dist/{HLSView-5SR3RWXG.css → HLSView-LNJLFWK4.css} +3 -3
- package/dist/{HLSView-5SR3RWXG.css.map → HLSView-LNJLFWK4.css.map} +1 -1
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
- package/dist/{chunk-3FZB2LJY.js → chunk-DIIFM6TW.js} +144 -126
- package/dist/chunk-DIIFM6TW.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +573 -562
- 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 +44 -63
- package/dist/meta.esbuild.json +56 -75
- package/package.json +7 -7
- package/src/Prebuilt/AppStateContext.tsx +8 -5
- package/src/Prebuilt/components/EndCallFeedback/Feedback.tsx +3 -2
- package/src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx +16 -6
- package/src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx +1 -1
- package/src/Prebuilt/components/InsetTile.tsx +1 -1
- package/src/Prebuilt/components/Leave/LeaveSessionContent.tsx +3 -1
- package/src/Prebuilt/components/PIP/PIPChat.tsx +11 -4
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +15 -3
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +21 -16
- package/dist/Prebuilt/components/VirtualBackground/util.d.ts +0 -1
- package/dist/chunk-3FZB2LJY.js.map +0 -7
- package/src/Prebuilt/components/VirtualBackground/util.tsx +0 -13
- /package/dist/{HLSView-EYFJ7YDU.js.map → HLSView-GYB2QDIN.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
109
109
|
var define_process_env_default;
|
110
110
|
var init_define_process_env = __esm({
|
111
111
|
"<define:process.env>"() {
|
112
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_63a49f9d-70e5-42b7-a91e-d180fa95ae5d", 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.9-alpha.9", 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.4 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.19-alpha.9", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_63a49f9d-70e5-42b7-a91e-d180fa95ae5d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.19-alpha.9", 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.12", 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.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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: "587", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240825.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.6/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:16128", 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.19-alpha.9", 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: "10680158293", 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: "06c3bff006916b7591f7132e14fcf78d45411c9a", 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: "78904341bffbb2d12d441357dbf28119a0f6663387a38ea65b61571adb7c2650", 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--1725355361866-0.09305460596310522:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725355361672-0.03276954834696921:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725355336380-0.4943275216505707:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725355336204-0.1740096099120545:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3ba275f8-098e-4398-bb31-88617572f59c", INVOCATION_ID: "77a79ebd795148e3a99b53fe82584cd1", 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: "652", 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_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 481", 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/27.0.12077973", 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.19-alpha.9", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.9", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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: "06c3bff006916b7591f7132e14fcf78d45411c9a", 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_63a49f9d-70e5-42b7-a91e-d180fa95ae5d", 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_63a49f9d-70e5-42b7-a91e-d180fa95ae5d", 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/27.0.12077973", 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_knip: "^5.11.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/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_63a49f9d-70e5-42b7-a91e-d180fa95ae5d" };
|
112
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3239d931-854f-451e-b2a1-00f943ca805c", 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.9", 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.4 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.19", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3239d931-854f-451e-b2a1-00f943ca805c", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.19", 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.12", 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.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240901.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.6/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:3006", 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.19", 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: "10775631112", 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: "b1bdfdb1965a14fd6b61e9bb8f9a9c48c556fd37", 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: "35d1ee9741adef39d80387e400edbf575b9a7703324c18f8da2bef3bc3d960a2", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", 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--1725893382741-0.6519746386750118:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725893382550-0.5635610781867195:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725893357442-0.015279308298105088:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725893357267-0.1435051772390752:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_8c8def3e-ea24-4030-925c-559498fb7454", INVOCATION_ID: "62be4ee69caf4730b4b25bc5bc6354c7", 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: "668", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 113", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", 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/27.0.12077973", 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.19", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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: "b1bdfdb1965a14fd6b61e9bb8f9a9c48c556fd37", 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/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3239d931-854f-451e-b2a1-00f943ca805c", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3239d931-854f-451e-b2a1-00f943ca805c", 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/27.0.12077973", 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_knip: "^5.11.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/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3239d931-854f-451e-b2a1-00f943ca805c" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -10296,12 +10296,14 @@ var init_AppContext = __esm({
|
|
10296
10296
|
});
|
10297
10297
|
|
10298
10298
|
// src/Prebuilt/components/VirtualBackground/VBHandler.tsx
|
10299
|
-
var import_hmsvbplugin, VBPlugin, VBHandler;
|
10299
|
+
var import_hmsvbplugin, import_react_sdk12, VBPlugin, VBHandler;
|
10300
10300
|
var init_VBHandler = __esm({
|
10301
10301
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx"() {
|
10302
10302
|
"use strict";
|
10303
10303
|
init_define_process_env();
|
10304
10304
|
import_hmsvbplugin = require("@100mslive/hms-virtual-background/hmsvbplugin");
|
10305
|
+
import_react_sdk12 = require("@100mslive/react-sdk");
|
10306
|
+
init_constants();
|
10305
10307
|
VBPlugin = class {
|
10306
10308
|
constructor() {
|
10307
10309
|
this.initialisePlugin = (effectsSDKKey, onInit) => __async(this, null, function* () {
|
@@ -10310,8 +10312,8 @@ var init_VBHandler = __esm({
|
|
10310
10312
|
}
|
10311
10313
|
if (effectsSDKKey) {
|
10312
10314
|
try {
|
10313
|
-
const
|
10314
|
-
this.effectsPlugin = new HMSEffectsPlugin(effectsSDKKey, onInit);
|
10315
|
+
const effects = yield import("@100mslive/hms-virtual-background/hmseffectsplugin");
|
10316
|
+
this.effectsPlugin = new effects.HMSEffectsPlugin(effectsSDKKey, onInit);
|
10315
10317
|
} catch (error) {
|
10316
10318
|
console.error("Failed to initialise HMSEffectsPlugin:", error, "Using HMSVBPlugin");
|
10317
10319
|
this.hmsPlugin = new import_hmsvbplugin.HMSVBPlugin(import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE, import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE);
|
@@ -10393,6 +10395,17 @@ var init_VBHandler = __esm({
|
|
10393
10395
|
this.effectsPlugin = void 0;
|
10394
10396
|
this.hmsPlugin = void 0;
|
10395
10397
|
};
|
10398
|
+
this.isEffectsSupported = () => {
|
10399
|
+
var _a7, _b7;
|
10400
|
+
if (!isSafari) {
|
10401
|
+
return true;
|
10402
|
+
}
|
10403
|
+
const browserVersion = ((_b7 = (_a7 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
|
10404
|
+
if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
|
10405
|
+
return false;
|
10406
|
+
}
|
10407
|
+
return true;
|
10408
|
+
};
|
10396
10409
|
}
|
10397
10410
|
};
|
10398
10411
|
VBHandler = new VBPlugin();
|
@@ -10897,7 +10910,7 @@ var init_useRedirectToLeave = __esm({
|
|
10897
10910
|
});
|
10898
10911
|
|
10899
10912
|
// src/Prebuilt/AppStateContext.tsx
|
10900
|
-
var import_react38, import_react_use4, import_ts_pattern2,
|
10913
|
+
var import_react38, import_react_use4, import_ts_pattern2, import_react_sdk13, AppStateContext, useHMSAppStateContext, useAppStateManager;
|
10901
10914
|
var init_AppStateContext = __esm({
|
10902
10915
|
"src/Prebuilt/AppStateContext.tsx"() {
|
10903
10916
|
"use strict";
|
@@ -10905,7 +10918,7 @@ var init_AppStateContext = __esm({
|
|
10905
10918
|
import_react38 = __toESM(require("react"));
|
10906
10919
|
import_react_use4 = require("react-use");
|
10907
10920
|
import_ts_pattern2 = require("ts-pattern");
|
10908
|
-
|
10921
|
+
import_react_sdk13 = require("@100mslive/react-sdk");
|
10909
10922
|
init_VBHandler();
|
10910
10923
|
init_roomLayoutProvider();
|
10911
10924
|
init_useRedirectToLeave();
|
@@ -10928,9 +10941,9 @@ var init_AppStateContext = __esm({
|
|
10928
10941
|
const roomLayout = useRoomLayout();
|
10929
10942
|
const setOriginalLayout = useSetOriginalLayout();
|
10930
10943
|
const [activeState, setActiveState] = import_react38.default.useState();
|
10931
|
-
const roomState = (0,
|
10944
|
+
const roomState = (0, import_react_sdk13.useHMSStore)(import_react_sdk13.selectRoomState);
|
10932
10945
|
const prevRoomState = (0, import_react_use4.usePreviousDistinct)(roomState);
|
10933
|
-
const hmsActions = (0,
|
10946
|
+
const hmsActions = (0, import_react_sdk13.useHMSActions)();
|
10934
10947
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
10935
10948
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
10936
10949
|
const { redirectToLeave } = useRedirectToLeave();
|
@@ -10943,21 +10956,24 @@ var init_AppStateContext = __esm({
|
|
10943
10956
|
if (!roomLayout) {
|
10944
10957
|
return;
|
10945
10958
|
}
|
10946
|
-
(0, import_ts_pattern2.match)([roomState, prevRoomState]).with([
|
10947
|
-
[
|
10948
|
-
[
|
10949
|
-
[
|
10950
|
-
[
|
10951
|
-
[
|
10952
|
-
[
|
10959
|
+
(0, import_ts_pattern2.match)([roomState, prevRoomState]).with([import_react_sdk13.HMSRoomState.Connected, import_ts_pattern2.P.any], () => setActiveState("meeting" /* MEETING */)).with(
|
10960
|
+
[import_react_sdk13.HMSRoomState.Disconnecting, import_react_sdk13.HMSRoomState.Connected],
|
10961
|
+
[import_react_sdk13.HMSRoomState.Disconnecting, import_react_sdk13.HMSRoomState.Connecting],
|
10962
|
+
[import_react_sdk13.HMSRoomState.Disconnecting, import_react_sdk13.HMSRoomState.Reconnecting],
|
10963
|
+
[import_react_sdk13.HMSRoomState.Disconnected, import_react_sdk13.HMSRoomState.Connected],
|
10964
|
+
[import_react_sdk13.HMSRoomState.Disconnected, import_react_sdk13.HMSRoomState.Connecting],
|
10965
|
+
[import_react_sdk13.HMSRoomState.Disconnected, import_react_sdk13.HMSRoomState.Reconnecting],
|
10953
10966
|
() => {
|
10954
|
-
setActiveState(
|
10955
|
-
(0, import_ts_pattern2.match)({ isLeaveScreenEnabled, isPreviewScreenEnabled
|
10956
|
-
|
10967
|
+
setActiveState((prevState) => {
|
10968
|
+
return (0, import_ts_pattern2.match)({ isLeaveScreenEnabled, isPreviewScreenEnabled, prevState }).when(
|
10969
|
+
({ isLeaveScreenEnabled: isLeaveScreenEnabled2, prevState: prevState2 }) => isLeaveScreenEnabled2 && prevState2 !== "leave" /* LEAVE */,
|
10970
|
+
() => "leave" /* LEAVE */
|
10971
|
+
).with({ isPreviewScreenEnabled: true }, () => "preview" /* PREVIEW */).otherwise(() => "meeting" /* MEETING */);
|
10972
|
+
});
|
10957
10973
|
VBHandler.reset();
|
10958
10974
|
redirectToLeave(1e3);
|
10959
10975
|
}
|
10960
|
-
).with([
|
10976
|
+
).with([import_react_sdk13.HMSRoomState.Disconnected, import_ts_pattern2.P.nullish], () => {
|
10961
10977
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
10962
10978
|
}).otherwise(() => {
|
10963
10979
|
});
|
@@ -10976,7 +10992,7 @@ var init_transaction_error = __esm({
|
|
10976
10992
|
});
|
10977
10993
|
|
10978
10994
|
// src/Prebuilt/components/AuthToken.tsx
|
10979
|
-
var import_react39, import_react_use5, import_ts_pattern3, import_uuid2,
|
10995
|
+
var import_react39, import_react_use5, import_ts_pattern3, import_uuid2, import_react_sdk14, AuthToken, convertError, AuthToken_default;
|
10980
10996
|
var init_AuthToken = __esm({
|
10981
10997
|
"src/Prebuilt/components/AuthToken.tsx"() {
|
10982
10998
|
"use strict";
|
@@ -10985,7 +11001,7 @@ var init_AuthToken = __esm({
|
|
10985
11001
|
import_react_use5 = require("react-use");
|
10986
11002
|
import_ts_pattern3 = require("ts-pattern");
|
10987
11003
|
import_uuid2 = require("uuid");
|
10988
|
-
|
11004
|
+
import_react_sdk14 = require("@100mslive/react-sdk");
|
10989
11005
|
init_Modal();
|
10990
11006
|
init_Text2();
|
10991
11007
|
init_AppContext();
|
@@ -10994,7 +11010,7 @@ var init_AuthToken = __esm({
|
|
10994
11010
|
init_useUserPreferences();
|
10995
11011
|
init_constants();
|
10996
11012
|
AuthToken = import_react39.default.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken, activeState }) => {
|
10997
|
-
const hmsActions = (0,
|
11013
|
+
const hmsActions = (0, import_react_sdk14.useHMSActions)();
|
10998
11014
|
const { roomCode, userId } = useHMSPrebuiltContext();
|
10999
11015
|
const [error, setError] = (0, import_react39.useState)({ title: "", body: "" });
|
11000
11016
|
const authToken = defaultAuthToken;
|
@@ -11555,14 +11571,14 @@ var init_useDropdownSelection = __esm({
|
|
11555
11571
|
});
|
11556
11572
|
|
11557
11573
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
11558
|
-
var import_react45, import_react_use6,
|
11574
|
+
var import_react45, import_react_use6, import_react_sdk15, import_react_icons10, Settings, DeviceSelector, TestAudio, DeviceSettings_default;
|
11559
11575
|
var init_DeviceSettings = __esm({
|
11560
11576
|
"src/Prebuilt/components/Settings/DeviceSettings.jsx"() {
|
11561
11577
|
"use strict";
|
11562
11578
|
init_define_process_env();
|
11563
11579
|
import_react45 = __toESM(require("react"));
|
11564
11580
|
import_react_use6 = require("react-use");
|
11565
|
-
|
11581
|
+
import_react_sdk15 = require("@100mslive/react-sdk");
|
11566
11582
|
import_react_icons10 = require("@100mslive/react-icons");
|
11567
11583
|
init_src();
|
11568
11584
|
init_Theme();
|
@@ -11574,15 +11590,15 @@ var init_DeviceSettings = __esm({
|
|
11574
11590
|
init_constants();
|
11575
11591
|
Settings = ({ setHide }) => {
|
11576
11592
|
var _a7;
|
11577
|
-
const { allDevices, selectedDeviceIDs, updateDevice } = (0,
|
11593
|
+
const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk15.useDevices)();
|
11578
11594
|
const { videoInput, audioInput, audioOutput } = allDevices;
|
11579
|
-
const videoTrackId = (0,
|
11580
|
-
const isVideoOn = (0,
|
11595
|
+
const videoTrackId = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectLocalVideoTrackID);
|
11596
|
+
const isVideoOn = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectIsLocalVideoEnabled);
|
11581
11597
|
const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype;
|
11582
11598
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
11583
|
-
const trackSelector = (0,
|
11584
|
-
const hmsActions = (0,
|
11585
|
-
const track = (0,
|
11599
|
+
const trackSelector = (0, import_react_sdk15.selectVideoTrackByID)(videoTrackId);
|
11600
|
+
const hmsActions = (0, import_react_sdk15.useHMSActions)();
|
11601
|
+
const track = (0, import_react_sdk15.useHMSStore)(trackSelector);
|
11586
11602
|
const isMobile = (0, import_react_use6.useMedia)(config.media.md);
|
11587
11603
|
(0, import_react45.useEffect)(() => {
|
11588
11604
|
if (isMobile) {
|
@@ -11614,7 +11630,7 @@ var init_DeviceSettings = __esm({
|
|
11614
11630
|
selection: selectedDeviceIDs.videoInput,
|
11615
11631
|
onChange: (deviceId) => updateDevice({
|
11616
11632
|
deviceId,
|
11617
|
-
deviceType:
|
11633
|
+
deviceType: import_react_sdk15.DeviceType.videoInput
|
11618
11634
|
})
|
11619
11635
|
}
|
11620
11636
|
)) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */ import_react45.default.createElement(
|
@@ -11626,7 +11642,7 @@ var init_DeviceSettings = __esm({
|
|
11626
11642
|
selection: selectedDeviceIDs.audioInput,
|
11627
11643
|
onChange: (deviceId) => updateDevice({
|
11628
11644
|
deviceId,
|
11629
|
-
deviceType:
|
11645
|
+
deviceType: import_react_sdk15.DeviceType.audioInput
|
11630
11646
|
})
|
11631
11647
|
}
|
11632
11648
|
) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */ import_react45.default.createElement(
|
@@ -11638,7 +11654,7 @@ var init_DeviceSettings = __esm({
|
|
11638
11654
|
selection: selectedDeviceIDs.audioOutput,
|
11639
11655
|
onChange: (deviceId) => updateDevice({
|
11640
11656
|
deviceId,
|
11641
|
-
deviceType:
|
11657
|
+
deviceType: import_react_sdk15.DeviceType.audioOutput
|
11642
11658
|
})
|
11643
11659
|
},
|
11644
11660
|
/* @__PURE__ */ import_react45.default.createElement(TestAudio, { id: selectedDeviceIDs.audioOutput })
|
@@ -12057,14 +12073,14 @@ var init_SettingsModal = __esm({
|
|
12057
12073
|
});
|
12058
12074
|
|
12059
12075
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
12060
|
-
var import_react48, import_hms_noise_cancellation,
|
12076
|
+
var import_react48, import_hms_noise_cancellation, import_react_sdk16, import_react_icons13, krispPlugin, Options, OptionLabel, useNoiseCancellationWithPlugin, NoiseCancellation, AudioOutputLabel, AudioSettings, AudioVideoToggle;
|
12061
12077
|
var init_AudioVideoToggle = __esm({
|
12062
12078
|
"src/Prebuilt/components/AudioVideoToggle.tsx"() {
|
12063
12079
|
"use strict";
|
12064
12080
|
init_define_process_env();
|
12065
12081
|
import_react48 = __toESM(require("react"));
|
12066
12082
|
import_hms_noise_cancellation = require("@100mslive/hms-noise-cancellation");
|
12067
|
-
|
12083
|
+
import_react_sdk16 = require("@100mslive/react-sdk");
|
12068
12084
|
import_react_icons13 = require("@100mslive/react-icons");
|
12069
12085
|
init_IconButtonWithOptions();
|
12070
12086
|
init_ActionTile();
|
@@ -12128,10 +12144,10 @@ var init_AudioVideoToggle = __esm({
|
|
12128
12144
|
};
|
12129
12145
|
useNoiseCancellationWithPlugin = () => {
|
12130
12146
|
var _a7;
|
12131
|
-
const actions = (0,
|
12147
|
+
const actions = (0, import_react_sdk16.useHMSActions)();
|
12132
12148
|
const [inProgress, setInProgress] = (0, import_react48.useState)(false);
|
12133
12149
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
12134
|
-
const isEnabledForRoom = (_a7 = (0,
|
12150
|
+
const isEnabledForRoom = (_a7 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
12135
12151
|
const setNoiseCancellationWithPlugin = (0, import_react48.useCallback)(
|
12136
12152
|
(enabled) => __async(void 0, null, function* () {
|
12137
12153
|
if (!isEnabledForRoom || inProgress) {
|
@@ -12161,11 +12177,11 @@ var init_AudioVideoToggle = __esm({
|
|
12161
12177
|
iconOnly,
|
12162
12178
|
setOpenOptionsSheet
|
12163
12179
|
}) => {
|
12164
|
-
const localPeerAudioTrackID = (0,
|
12180
|
+
const localPeerAudioTrackID = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectLocalAudioTrackID);
|
12165
12181
|
const isNoiseCancellationEnabled = useIsNoiseCancellationEnabled();
|
12166
12182
|
const { setNoiseCancellationWithPlugin, inProgress } = useNoiseCancellationWithPlugin();
|
12167
|
-
const room = (0,
|
12168
|
-
const isKrispPluginAdded = (0,
|
12183
|
+
const room = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom);
|
12184
|
+
const isKrispPluginAdded = (0, import_react_sdk16.useHMSStore)((0, import_react_sdk16.selectIsLocalAudioPluginPresent)(krispPlugin.getName()));
|
12169
12185
|
if (!krispPlugin.isSupported() || !room.isNoiseCancellationEnabled || !localPeerAudioTrackID) {
|
12170
12186
|
return null;
|
12171
12187
|
}
|
@@ -12277,7 +12293,7 @@ var init_AudioVideoToggle = __esm({
|
|
12277
12293
|
));
|
12278
12294
|
};
|
12279
12295
|
AudioVideoToggle = ({ hideOptions = false }) => {
|
12280
|
-
const { allDevices, selectedDeviceIDs, updateDevice } = (0,
|
12296
|
+
const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk16.useDevices)((error) => {
|
12281
12297
|
ToastManager.addToast({
|
12282
12298
|
title: error.message,
|
12283
12299
|
variant: "error",
|
@@ -12285,26 +12301,26 @@ var init_AudioVideoToggle = __esm({
|
|
12285
12301
|
});
|
12286
12302
|
});
|
12287
12303
|
const { videoInput, audioInput, audioOutput } = allDevices;
|
12288
|
-
const localPeer = (0,
|
12289
|
-
const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = (0,
|
12290
|
-
const actions = (0,
|
12291
|
-
const vanillaStore = (0,
|
12292
|
-
const videoTrackId = (0,
|
12293
|
-
const localVideoTrack = (0,
|
12294
|
-
const roomState = (0,
|
12304
|
+
const localPeer = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectLocalPeer);
|
12305
|
+
const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = (0, import_react_sdk16.useAVToggle)();
|
12306
|
+
const actions = (0, import_react_sdk16.useHMSActions)();
|
12307
|
+
const vanillaStore = (0, import_react_sdk16.useHMSVanillaStore)();
|
12308
|
+
const videoTrackId = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectLocalVideoTrackID);
|
12309
|
+
const localVideoTrack = (0, import_react_sdk16.useHMSStore)((0, import_react_sdk16.selectVideoTrackByID)(videoTrackId));
|
12310
|
+
const roomState = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoomState);
|
12295
12311
|
const hasAudioDevices = Number(audioInput == null ? void 0 : audioInput.length) > 0;
|
12296
12312
|
const hasVideoDevices = Number(videoInput == null ? void 0 : videoInput.length) > 0;
|
12297
12313
|
const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype && Number(audioOutput == null ? void 0 : audioOutput.length) > 0;
|
12298
12314
|
const { screenType } = useRoomLayoutConferencingScreen();
|
12299
12315
|
const [showSettings, setShowSettings] = (0, import_react48.useState)(false);
|
12300
|
-
const isKrispPluginAdded = (0,
|
12316
|
+
const isKrispPluginAdded = (0, import_react_sdk16.useHMSStore)((0, import_react_sdk16.selectIsLocalAudioPluginPresent)(krispPlugin.getName()));
|
12301
12317
|
const isNoiseCancellationEnabled = useIsNoiseCancellationEnabled();
|
12302
12318
|
const { setNoiseCancellationWithPlugin, inProgress } = useNoiseCancellationWithPlugin();
|
12303
12319
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
12304
12320
|
(0, import_react48.useEffect)(() => {
|
12305
12321
|
(() => __async(void 0, null, function* () {
|
12306
12322
|
var _a7;
|
12307
|
-
const isEnabledForRoom = (_a7 = vanillaStore.getState(
|
12323
|
+
const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
12308
12324
|
if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
|
12309
12325
|
try {
|
12310
12326
|
yield setNoiseCancellationWithPlugin(true);
|
@@ -12341,7 +12357,7 @@ var init_AudioVideoToggle = __esm({
|
|
12341
12357
|
{
|
12342
12358
|
options: audioInput,
|
12343
12359
|
selectedDeviceId: selectedDeviceIDs.audioInput,
|
12344
|
-
onClick: (deviceId) => updateDevice({ deviceId, deviceType:
|
12360
|
+
onClick: (deviceId) => updateDevice({ deviceId, deviceType: import_react_sdk16.DeviceType.audioInput })
|
12345
12361
|
}
|
12346
12362
|
)),
|
12347
12363
|
/* @__PURE__ */ import_react48.default.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }),
|
@@ -12350,7 +12366,7 @@ var init_AudioVideoToggle = __esm({
|
|
12350
12366
|
{
|
12351
12367
|
options: audioOutput,
|
12352
12368
|
selectedDeviceId: selectedDeviceIDs.audioOutput,
|
12353
|
-
onClick: (deviceId) => updateDevice({ deviceId, deviceType:
|
12369
|
+
onClick: (deviceId) => updateDevice({ deviceId, deviceType: import_react_sdk16.DeviceType.audioOutput })
|
12354
12370
|
}
|
12355
12371
|
))),
|
12356
12372
|
/* @__PURE__ */ import_react48.default.createElement(NoiseCancellation, null),
|
@@ -12373,10 +12389,10 @@ var init_AudioVideoToggle = __esm({
|
|
12373
12389
|
{
|
12374
12390
|
options: videoInput,
|
12375
12391
|
selectedDeviceId: selectedDeviceIDs.videoInput,
|
12376
|
-
onClick: (deviceId) => updateDevice({ deviceId, deviceType:
|
12392
|
+
onClick: (deviceId) => updateDevice({ deviceId, deviceType: import_react_sdk16.DeviceType.videoInput })
|
12377
12393
|
}
|
12378
12394
|
)
|
12379
|
-
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState ===
|
12395
|
+
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === import_react_sdk16.HMSRoomState.Preview && (isIOS || isAndroid) ? /* @__PURE__ */ import_react48.default.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ import_react48.default.createElement(
|
12380
12396
|
IconButton_default,
|
12381
12397
|
{
|
12382
12398
|
onClick: () => __async(void 0, null, function* () {
|
@@ -12397,19 +12413,19 @@ var init_AudioVideoToggle = __esm({
|
|
12397
12413
|
});
|
12398
12414
|
|
12399
12415
|
// src/Prebuilt/components/CaptionIcon.tsx
|
12400
|
-
var import_react49,
|
12416
|
+
var import_react49, import_react_sdk17, import_react_icons14, CaptionIcon;
|
12401
12417
|
var init_CaptionIcon = __esm({
|
12402
12418
|
"src/Prebuilt/components/CaptionIcon.tsx"() {
|
12403
12419
|
"use strict";
|
12404
12420
|
init_define_process_env();
|
12405
12421
|
import_react49 = __toESM(require("react"));
|
12406
|
-
|
12422
|
+
import_react_sdk17 = require("@100mslive/react-sdk");
|
12407
12423
|
import_react_icons14 = require("@100mslive/react-icons");
|
12408
12424
|
init_Tooltip2();
|
12409
12425
|
init_IconButton3();
|
12410
12426
|
init_useUISettings();
|
12411
12427
|
CaptionIcon = () => {
|
12412
|
-
const isCaptionPresent = (0,
|
12428
|
+
const isCaptionPresent = (0, import_react_sdk17.useHMSStore)(import_react_sdk17.selectIsTranscriptionEnabled);
|
12413
12429
|
const [isCaption, setIsCaption] = useSetIsCaptionEnabled();
|
12414
12430
|
const onClick = () => {
|
12415
12431
|
setIsCaption(!isCaption);
|
@@ -12497,11 +12513,11 @@ function getResolution(recordingResolution) {
|
|
12497
12513
|
return resolution;
|
12498
12514
|
}
|
12499
12515
|
function useWaitingRoomInfo() {
|
12500
|
-
const localPeerRole = (0,
|
12501
|
-
const { video, audio, screen } = (0,
|
12516
|
+
const localPeerRole = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectLocalPeerRole);
|
12517
|
+
const { video, audio, screen } = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectIsAllowedToPublish);
|
12502
12518
|
const isScreenShareAllowed = isScreenshareSupported();
|
12503
|
-
const roles = (0,
|
12504
|
-
const peersByRoles = (0,
|
12519
|
+
const roles = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectRolesMap);
|
12520
|
+
const peersByRoles = (0, import_react_sdk18.useHMSStore)((0, import_react_sdk18.selectPeersByRoles)((localPeerRole == null ? void 0 : localPeerRole.subscribeParams.subscribeToRoles) || []));
|
12505
12521
|
const isNotAllowedToPublish = !(video || audio || screen && isScreenShareAllowed);
|
12506
12522
|
const isScreenOnlyPublishParams = screen && !(video || audio);
|
12507
12523
|
const hasSubscribedRolePublishing = (0, import_react52.useMemo)(() => {
|
@@ -12519,7 +12535,7 @@ function useWaitingRoomInfo() {
|
|
12519
12535
|
hasSubscribedRolePublishing
|
12520
12536
|
};
|
12521
12537
|
}
|
12522
|
-
var import_react52, import_react_use8, import_join_form2,
|
12538
|
+
var import_react52, import_react_use8, import_join_form2, import_react_sdk18, useFilteredRoles, useDefaultChatSelection, useShowStreamingUI, useParticipants, useIsLandscape, useLandscapeHLSStream, useMobileHLSStream, useKeyboardHandler, useRecordingHandler;
|
12523
12539
|
var init_hooks = __esm({
|
12524
12540
|
"src/Prebuilt/common/hooks.ts"() {
|
12525
12541
|
"use strict";
|
@@ -12527,7 +12543,7 @@ var init_hooks = __esm({
|
|
12527
12543
|
import_react52 = require("react");
|
12528
12544
|
import_react_use8 = require("react-use");
|
12529
12545
|
import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
|
12530
|
-
|
12546
|
+
import_react_sdk18 = require("@100mslive/react-sdk");
|
12531
12547
|
init_ToastManager();
|
12532
12548
|
init_Theme();
|
12533
12549
|
init_roomLayoutProvider();
|
@@ -12560,15 +12576,15 @@ var init_hooks = __esm({
|
|
12560
12576
|
};
|
12561
12577
|
useParticipants = (params) => {
|
12562
12578
|
var _a7;
|
12563
|
-
const isConnected = (0,
|
12564
|
-
const peerCount = (0,
|
12565
|
-
const availableRoles = (0,
|
12566
|
-
let participantList = (0,
|
12579
|
+
const isConnected = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectIsConnectedToRoom);
|
12580
|
+
const peerCount = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectPeerCount);
|
12581
|
+
const availableRoles = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectAvailableRoleNames);
|
12582
|
+
let participantList = (0, import_react_sdk18.useHMSStore)(isConnected ? import_react_sdk18.selectPeers : import_react_sdk18.selectRemotePeers);
|
12567
12583
|
const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
|
12568
|
-
const vanillaStore = (0,
|
12584
|
+
const vanillaStore = (0, import_react_sdk18.useHMSVanillaStore)();
|
12569
12585
|
if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
|
12570
12586
|
participantList = participantList.filter((peer) => {
|
12571
|
-
return vanillaStore.getState((0,
|
12587
|
+
return vanillaStore.getState((0, import_react_sdk18.selectPeerMetadata)(peer.id)).isHandRaised;
|
12572
12588
|
});
|
12573
12589
|
}
|
12574
12590
|
if ((params == null ? void 0 : params.role) && availableRoles.includes(params.role)) {
|
@@ -12581,7 +12597,7 @@ var init_hooks = __esm({
|
|
12581
12597
|
return { participants: participantList, isConnected, peerCount, rolesWithParticipants };
|
12582
12598
|
};
|
12583
12599
|
useIsLandscape = () => {
|
12584
|
-
const isMobile =
|
12600
|
+
const isMobile = import_react_sdk18.parsedUserAgent.getDevice().type === "mobile";
|
12585
12601
|
const isLandscape = (0, import_react_use8.useMedia)(config.media.ls);
|
12586
12602
|
return isMobile && isLandscape;
|
12587
12603
|
};
|
@@ -12619,8 +12635,8 @@ var init_hooks = __esm({
|
|
12619
12635
|
return handleKeyEvent;
|
12620
12636
|
};
|
12621
12637
|
useRecordingHandler = () => {
|
12622
|
-
const hmsActions = (0,
|
12623
|
-
const recordingState = (0,
|
12638
|
+
const hmsActions = (0, import_react_sdk18.useHMSActions)();
|
12639
|
+
const recordingState = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectRecordingState);
|
12624
12640
|
const [isRecordingLoading, setIsRecordingLoading] = (0, import_react52.useState)(false);
|
12625
12641
|
const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
|
12626
12642
|
(0, import_react52.useEffect)(() => {
|
@@ -12666,7 +12682,7 @@ var init_hooks = __esm({
|
|
12666
12682
|
});
|
12667
12683
|
|
12668
12684
|
// src/Prebuilt/components/EmojiReaction.jsx
|
12669
|
-
var import_react53, import_react_use9, import_apple, import_emoji_mart,
|
12685
|
+
var import_react53, import_react_use9, import_apple, import_emoji_mart, import_react_sdk19, import_react_icons15, EmojiReaction;
|
12670
12686
|
var init_EmojiReaction = __esm({
|
12671
12687
|
"src/Prebuilt/components/EmojiReaction.jsx"() {
|
12672
12688
|
"use strict";
|
@@ -12675,7 +12691,7 @@ var init_EmojiReaction = __esm({
|
|
12675
12691
|
import_react_use9 = require("react-use");
|
12676
12692
|
import_apple = __toESM(require("@emoji-mart/data/sets/14/apple.json"));
|
12677
12693
|
import_emoji_mart = require("emoji-mart");
|
12678
|
-
|
12694
|
+
import_react_sdk19 = require("@100mslive/react-sdk");
|
12679
12695
|
import_react_icons15 = require("@100mslive/react-icons");
|
12680
12696
|
init_EmojiCard();
|
12681
12697
|
init_Dropdown2();
|
@@ -12690,16 +12706,16 @@ var init_EmojiReaction = __esm({
|
|
12690
12706
|
(0, import_emoji_mart.init)({ data: import_apple.default });
|
12691
12707
|
EmojiReaction = ({ showCard = false }) => {
|
12692
12708
|
const [open, setOpen] = (0, import_react53.useState)(false);
|
12693
|
-
const isConnected = (0,
|
12709
|
+
const isConnected = (0, import_react_sdk19.useHMSStore)(import_react_sdk19.selectIsConnectedToRoom);
|
12694
12710
|
const { elements } = useRoomLayoutConferencingScreen();
|
12695
12711
|
useDropdownList({ open, name: "EmojiReaction" });
|
12696
|
-
const roles = (0,
|
12697
|
-
const localPeerId = (0,
|
12712
|
+
const roles = (0, import_react_sdk19.useHMSStore)(import_react_sdk19.selectAvailableRoleNames);
|
12713
|
+
const localPeerId = (0, import_react_sdk19.useHMSStore)(import_react_sdk19.selectLocalPeerID);
|
12698
12714
|
const isMobile = (0, import_react_use9.useMedia)(config.media.md);
|
12699
12715
|
const isLandscape = (0, import_react_use9.useMedia)(config.media.ls);
|
12700
12716
|
const isMobileHLSStream = useMobileHLSStream();
|
12701
12717
|
const isLandscapeStream = useLandscapeHLSStream();
|
12702
|
-
const { sendEvent } = (0,
|
12718
|
+
const { sendEvent } = (0, import_react_sdk19.useCustomEvent)({
|
12703
12719
|
type: EMOJI_REACTION_TYPE
|
12704
12720
|
});
|
12705
12721
|
const sendReaction = (emojiId) => __async(void 0, null, function* () {
|
@@ -12893,7 +12909,7 @@ var init_LeaveSessionContent = __esm({
|
|
12893
12909
|
variant: "danger",
|
12894
12910
|
css: { w: "100%" },
|
12895
12911
|
onClick: () => __async(void 0, null, function* () {
|
12896
|
-
|
12912
|
+
yield leaveRoom();
|
12897
12913
|
}),
|
12898
12914
|
id: "leaveRoom",
|
12899
12915
|
"data-testid": "leave_room"
|
@@ -12905,13 +12921,13 @@ var init_LeaveSessionContent = __esm({
|
|
12905
12921
|
});
|
12906
12922
|
|
12907
12923
|
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
12908
|
-
var import_react57,
|
12924
|
+
var import_react57, import_react_sdk20, import_react_icons18, DesktopLeaveRoom;
|
12909
12925
|
var init_DesktopLeaveRoom = __esm({
|
12910
12926
|
"src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx"() {
|
12911
12927
|
"use strict";
|
12912
12928
|
init_define_process_env();
|
12913
12929
|
import_react57 = __toESM(require("react"));
|
12914
|
-
|
12930
|
+
import_react_sdk20 = require("@100mslive/react-sdk");
|
12915
12931
|
import_react_icons18 = require("@100mslive/react-icons");
|
12916
12932
|
init_Dropdown2();
|
12917
12933
|
init_Layout();
|
@@ -12931,9 +12947,9 @@ var init_DesktopLeaveRoom = __esm({
|
|
12931
12947
|
const [open, setOpen] = (0, import_react57.useState)(false);
|
12932
12948
|
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = (0, import_react57.useState)(false);
|
12933
12949
|
const [showEndStreamAlert, setShowEndStreamAlert] = (0, import_react57.useState)(false);
|
12934
|
-
const isConnected = (0,
|
12935
|
-
const permissions = (0,
|
12936
|
-
const { isStreamingOn } = (0,
|
12950
|
+
const isConnected = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectIsConnectedToRoom);
|
12951
|
+
const permissions = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectPermissions);
|
12952
|
+
const { isStreamingOn } = (0, import_react_sdk20.useRecordingStreaming)();
|
12937
12953
|
const showStream = screenType !== "hls_live_streaming" && isStreamingOn && (permissions == null ? void 0 : permissions.hlsStreaming);
|
12938
12954
|
const showLeaveOptions = (permissions == null ? void 0 : permissions.hlsStreaming) && isStreamingOn || (permissions == null ? void 0 : permissions.endRoom);
|
12939
12955
|
useDropdownList({ open: open || showEndStreamAlert || showLeaveRoomAlert, name: "LeaveRoom" });
|
@@ -13038,13 +13054,13 @@ var init_DesktopLeaveRoom = __esm({
|
|
13038
13054
|
});
|
13039
13055
|
|
13040
13056
|
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
13041
|
-
var import_react58,
|
13057
|
+
var import_react58, import_react_sdk21, import_react_icons19, MwebLeaveRoom, LeaveButton;
|
13042
13058
|
var init_MwebLeaveRoom = __esm({
|
13043
13059
|
"src/Prebuilt/components/Leave/MwebLeaveRoom.tsx"() {
|
13044
13060
|
"use strict";
|
13045
13061
|
init_define_process_env();
|
13046
13062
|
import_react58 = __toESM(require("react"));
|
13047
|
-
|
13063
|
+
import_react_sdk21 = require("@100mslive/react-sdk");
|
13048
13064
|
import_react_icons19 = require("@100mslive/react-icons");
|
13049
13065
|
init_IconButton2();
|
13050
13066
|
init_Layout();
|
@@ -13066,9 +13082,9 @@ var init_MwebLeaveRoom = __esm({
|
|
13066
13082
|
const { screenType } = useRoomLayoutConferencingScreen();
|
13067
13083
|
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = (0, import_react58.useState)(false);
|
13068
13084
|
const [showEndStreamAlert, setShowEndStreamAlert] = (0, import_react58.useState)(false);
|
13069
|
-
const isConnected = (0,
|
13070
|
-
const permissions = (0,
|
13071
|
-
const { isStreamingOn } = (0,
|
13085
|
+
const isConnected = (0, import_react_sdk21.useHMSStore)(import_react_sdk21.selectIsConnectedToRoom);
|
13086
|
+
const permissions = (0, import_react_sdk21.useHMSStore)(import_react_sdk21.selectPermissions);
|
13087
|
+
const { isStreamingOn } = (0, import_react_sdk21.useRecordingStreaming)();
|
13072
13088
|
const showStream = screenType !== "hls_live_streaming" && isStreamingOn && (permissions == null ? void 0 : permissions.hlsStreaming);
|
13073
13089
|
const showLeaveOptions = (permissions == null ? void 0 : permissions.hlsStreaming) && isStreamingOn || (permissions == null ? void 0 : permissions.endRoom);
|
13074
13090
|
useDropdownList({ open, name: "LeaveRoom" });
|
@@ -13139,14 +13155,14 @@ var init_MwebLeaveRoom = __esm({
|
|
13139
13155
|
});
|
13140
13156
|
|
13141
13157
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
13142
|
-
var import_react59, import_react_use10,
|
13158
|
+
var import_react59, import_react_use10, import_react_sdk22, LeaveRoom;
|
13143
13159
|
var init_LeaveRoom = __esm({
|
13144
13160
|
"src/Prebuilt/components/Leave/LeaveRoom.tsx"() {
|
13145
13161
|
"use strict";
|
13146
13162
|
init_define_process_env();
|
13147
13163
|
import_react59 = __toESM(require("react"));
|
13148
13164
|
import_react_use10 = require("react-use");
|
13149
|
-
|
13165
|
+
import_react_sdk22 = require("@100mslive/react-sdk");
|
13150
13166
|
init_Theme();
|
13151
13167
|
init_ToastManager();
|
13152
13168
|
init_DesktopLeaveRoom();
|
@@ -13156,19 +13172,19 @@ var init_LeaveRoom = __esm({
|
|
13156
13172
|
screenType,
|
13157
13173
|
container
|
13158
13174
|
}) => {
|
13159
|
-
const isConnected = (0,
|
13160
|
-
const permissions = (0,
|
13175
|
+
const isConnected = (0, import_react_sdk22.useHMSStore)(import_react_sdk22.selectIsConnectedToRoom);
|
13176
|
+
const permissions = (0, import_react_sdk22.useHMSStore)(import_react_sdk22.selectPermissions);
|
13161
13177
|
const isMobile = (0, import_react_use10.useMedia)(config.media.md);
|
13162
|
-
const rolesMap = (0,
|
13178
|
+
const rolesMap = (0, import_react_sdk22.useHMSStore)(import_react_sdk22.selectRolesMap);
|
13163
13179
|
const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
|
13164
13180
|
const roleObj = rolesMap[roleName];
|
13165
13181
|
return roleObj.permissions.hlsStreaming;
|
13166
13182
|
});
|
13167
|
-
const peersWithStreamingRights = (0,
|
13168
|
-
(0,
|
13183
|
+
const peersWithStreamingRights = (0, import_react_sdk22.useHMSStore)(
|
13184
|
+
(0, import_react_sdk22.selectPeersByCondition)((peer) => streamingPermissionRoles.includes(peer.roleName || ""))
|
13169
13185
|
);
|
13170
|
-
const hlsState = (0,
|
13171
|
-
const hmsActions = (0,
|
13186
|
+
const hlsState = (0, import_react_sdk22.useHMSStore)(import_react_sdk22.selectHLSState);
|
13187
|
+
const hmsActions = (0, import_react_sdk22.useHMSActions)();
|
13172
13188
|
const isMobileHLSStream = useMobileHLSStream();
|
13173
13189
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
13174
13190
|
const stopStream = () => __async(void 0, null, function* () {
|
@@ -13204,12 +13220,12 @@ var init_LeaveRoom = __esm({
|
|
13204
13220
|
});
|
13205
13221
|
|
13206
13222
|
// src/Prebuilt/components/PIP/SetupMediaSession.js
|
13207
|
-
var
|
13223
|
+
var import_react_sdk23, SetupMediaSession, MediaSession;
|
13208
13224
|
var init_SetupMediaSession = __esm({
|
13209
13225
|
"src/Prebuilt/components/PIP/SetupMediaSession.js"() {
|
13210
13226
|
"use strict";
|
13211
13227
|
init_define_process_env();
|
13212
|
-
|
13228
|
+
import_react_sdk23 = require("@100mslive/react-sdk");
|
13213
13229
|
SetupMediaSession = class {
|
13214
13230
|
constructor() {
|
13215
13231
|
__publicField(this, "setup", (actions, store) => {
|
@@ -13220,27 +13236,27 @@ var init_SetupMediaSession = __esm({
|
|
13220
13236
|
});
|
13221
13237
|
__publicField(this, "initState", () => {
|
13222
13238
|
var _a7, _b7, _c, _d;
|
13223
|
-
const isMicActive = this.store.getState(
|
13224
|
-
const isCamActive = this.store.getState(
|
13239
|
+
const isMicActive = this.store.getState(import_react_sdk23.selectIsLocalAudioEnabled);
|
13240
|
+
const isCamActive = this.store.getState(import_react_sdk23.selectIsLocalVideoEnabled);
|
13225
13241
|
(_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
|
13226
13242
|
(_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
|
13227
13243
|
this.store.subscribe((isMicActive2) => {
|
13228
13244
|
var _a8, _b8;
|
13229
13245
|
(_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
|
13230
|
-
},
|
13246
|
+
}, import_react_sdk23.selectIsLocalAudioEnabled);
|
13231
13247
|
this.store.subscribe((isCamActive2) => {
|
13232
13248
|
var _a8, _b8;
|
13233
13249
|
(_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
|
13234
|
-
},
|
13250
|
+
}, import_react_sdk23.selectIsLocalVideoEnabled);
|
13235
13251
|
});
|
13236
13252
|
__publicField(this, "toggleMic", () => __async(this, null, function* () {
|
13237
13253
|
console.log("toggle mic clicked in pip");
|
13238
|
-
const current = this.store.getState(
|
13254
|
+
const current = this.store.getState(import_react_sdk23.selectIsLocalAudioEnabled);
|
13239
13255
|
yield this.actions.setLocalAudioEnabled(!current);
|
13240
13256
|
}));
|
13241
13257
|
__publicField(this, "toggleCam", () => __async(this, null, function* () {
|
13242
13258
|
console.log("toggle cam clicked in pip");
|
13243
|
-
const current = this.store.getState(
|
13259
|
+
const current = this.store.getState(import_react_sdk23.selectIsLocalVideoEnabled);
|
13244
13260
|
yield this.actions.setLocalVideoEnabled(!current);
|
13245
13261
|
}));
|
13246
13262
|
__publicField(this, "leave", () => {
|
@@ -13265,13 +13281,13 @@ var init_SetupMediaSession = __esm({
|
|
13265
13281
|
});
|
13266
13282
|
|
13267
13283
|
// src/Prebuilt/components/PIP/PIPComponent.tsx
|
13268
|
-
var import_react60,
|
13284
|
+
var import_react60, import_react_sdk24, import_react_icons20, PIPComponent, ActivatedPIP, PIPComponent_default;
|
13269
13285
|
var init_PIPComponent = __esm({
|
13270
13286
|
"src/Prebuilt/components/PIP/PIPComponent.tsx"() {
|
13271
13287
|
"use strict";
|
13272
13288
|
init_define_process_env();
|
13273
13289
|
import_react60 = __toESM(require("react"));
|
13274
|
-
|
13290
|
+
import_react_sdk24 = require("@100mslive/react-sdk");
|
13275
13291
|
import_react_icons20 = require("@100mslive/react-icons");
|
13276
13292
|
init_src();
|
13277
13293
|
init_IconButton3();
|
@@ -13280,8 +13296,8 @@ var init_PIPComponent = __esm({
|
|
13280
13296
|
init_useUISettings();
|
13281
13297
|
PIPComponent = ({ content = null }) => {
|
13282
13298
|
const [isPipOn, setIsPipOn] = (0, import_react60.useState)(PictureInPicture.isOn());
|
13283
|
-
const hmsActions = (0,
|
13284
|
-
const store = (0,
|
13299
|
+
const hmsActions = (0, import_react_sdk24.useHMSActions)();
|
13300
|
+
const store = (0, import_react_sdk24.useHMSVanillaStore)();
|
13285
13301
|
const onPipToggle = (0, import_react60.useCallback)(() => {
|
13286
13302
|
if (!isPipOn) {
|
13287
13303
|
PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
|
@@ -13296,19 +13312,19 @@ var init_PIPComponent = __esm({
|
|
13296
13312
|
return /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, content ? /* @__PURE__ */ import_react60.default.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ import_react60.default.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ import_react60.default.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ import_react60.default.createElement(import_react_icons20.PipIcon, null))));
|
13297
13313
|
};
|
13298
13314
|
ActivatedPIP = () => {
|
13299
|
-
const store = (0,
|
13315
|
+
const store = (0, import_react_sdk24.useHMSVanillaStore)();
|
13300
13316
|
const pinnedTrack = usePinnedTrack();
|
13301
13317
|
(0, import_react60.useEffect)(() => {
|
13302
13318
|
function subscribeToStore() {
|
13303
13319
|
return store.subscribe((tracksMap) => {
|
13304
|
-
let pipPeers = store.getState(
|
13320
|
+
let pipPeers = store.getState(import_react_sdk24.selectPeers);
|
13305
13321
|
if (pinnedTrack) {
|
13306
13322
|
pipPeers = pipPeers.filter((peer) => pinnedTrack.peerId === peer.id);
|
13307
13323
|
}
|
13308
13324
|
PictureInPicture.updatePeersAndTracks(pipPeers, tracksMap).catch((err) => {
|
13309
13325
|
console.error("error in updating pip", err);
|
13310
13326
|
});
|
13311
|
-
},
|
13327
|
+
}, import_react_sdk24.selectTracksMap);
|
13312
13328
|
}
|
13313
13329
|
let unsubscribe = PictureInPicture.isOn() ? subscribeToStore() : void 0;
|
13314
13330
|
PictureInPicture.listenToStateChange((isOn) => {
|
@@ -13414,17 +13430,17 @@ var init_MwebChatOption = __esm({
|
|
13414
13430
|
});
|
13415
13431
|
|
13416
13432
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
13417
|
-
var import_react63,
|
13433
|
+
var import_react63, import_react_sdk25, useChatBlacklist, useIsPeerBlacklisted;
|
13418
13434
|
var init_useChatBlacklist = __esm({
|
13419
13435
|
"src/Prebuilt/components/hooks/useChatBlacklist.ts"() {
|
13420
13436
|
"use strict";
|
13421
13437
|
init_define_process_env();
|
13422
13438
|
import_react63 = require("react");
|
13423
|
-
|
13439
|
+
import_react_sdk25 = require("@100mslive/react-sdk");
|
13424
13440
|
init_ToastManager();
|
13425
13441
|
useChatBlacklist = (sessionStoreKey) => {
|
13426
|
-
const hmsActions = (0,
|
13427
|
-
const blacklistedIDs = (0,
|
13442
|
+
const hmsActions = (0, import_react_sdk25.useHMSActions)();
|
13443
|
+
const blacklistedIDs = (0, import_react_sdk25.useHMSStore)((0, import_react_sdk25.selectSessionStore)(sessionStoreKey));
|
13428
13444
|
const blacklistItem = (0, import_react63.useCallback)(
|
13429
13445
|
(blacklistID) => __async(void 0, null, function* () {
|
13430
13446
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -13434,35 +13450,35 @@ var init_useChatBlacklist = __esm({
|
|
13434
13450
|
return { blacklistItem, blacklistedIDs };
|
13435
13451
|
};
|
13436
13452
|
useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
13437
|
-
const localPeer = (0,
|
13438
|
-
const blacklistedPeerIDs = (0,
|
13453
|
+
const localPeer = (0, import_react_sdk25.useHMSStore)(import_react_sdk25.selectLocalPeer);
|
13454
|
+
const blacklistedPeerIDs = (0, import_react_sdk25.useHMSStore)((0, import_react_sdk25.selectSessionStore)("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
13439
13455
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
13440
13456
|
};
|
13441
13457
|
}
|
13442
13458
|
});
|
13443
13459
|
|
13444
13460
|
// src/Prebuilt/components/hooks/usePinnedMessages.ts
|
13445
|
-
var import_react64,
|
13461
|
+
var import_react64, import_react_sdk26, usePinnedMessages;
|
13446
13462
|
var init_usePinnedMessages = __esm({
|
13447
13463
|
"src/Prebuilt/components/hooks/usePinnedMessages.ts"() {
|
13448
13464
|
"use strict";
|
13449
13465
|
init_define_process_env();
|
13450
13466
|
import_react64 = require("react");
|
13451
|
-
|
13467
|
+
import_react_sdk26 = require("@100mslive/react-sdk");
|
13452
13468
|
init_ToastManager();
|
13453
13469
|
usePinnedMessages = () => {
|
13454
|
-
const hmsActions = (0,
|
13455
|
-
const vanillaStore = (0,
|
13470
|
+
const hmsActions = (0, import_react_sdk26.useHMSActions)();
|
13471
|
+
const vanillaStore = (0, import_react_sdk26.useHMSVanillaStore)();
|
13456
13472
|
const setPinnedMessages = (0, import_react64.useCallback)(
|
13457
13473
|
(message, pinnedBy) => __async(void 0, null, function* () {
|
13458
|
-
const peerName = vanillaStore.getState((0,
|
13474
|
+
const peerName = vanillaStore.getState((0, import_react_sdk26.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
|
13459
13475
|
const newPinnedMessage = { text: "", id: message.id, pinnedBy };
|
13460
13476
|
if (message && peerName) {
|
13461
13477
|
newPinnedMessage["text"] = `${peerName}: ${message.message}`;
|
13462
13478
|
} else if (message) {
|
13463
13479
|
newPinnedMessage["text"] = message.message;
|
13464
13480
|
}
|
13465
|
-
const pinnedMessages = vanillaStore.getState((0,
|
13481
|
+
const pinnedMessages = vanillaStore.getState((0, import_react_sdk26.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
13466
13482
|
if (!(pinnedMessages == null ? void 0 : pinnedMessages.find((pinnedMessage) => pinnedMessage.id === newPinnedMessage.id))) {
|
13467
13483
|
yield hmsActions.sessionStore.set("pinnedMessages" /* PINNED_MESSAGES */, [...pinnedMessages, newPinnedMessage].slice(-3)).catch((err) => ToastManager.addToast({ title: err.description }));
|
13468
13484
|
}
|
@@ -13471,7 +13487,7 @@ var init_usePinnedMessages = __esm({
|
|
13471
13487
|
);
|
13472
13488
|
const removePinnedMessage = (0, import_react64.useCallback)(
|
13473
13489
|
(indexToRemove) => __async(void 0, null, function* () {
|
13474
|
-
const pinnedMessages = vanillaStore.getState((0,
|
13490
|
+
const pinnedMessages = vanillaStore.getState((0, import_react_sdk26.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
13475
13491
|
if (pinnedMessages[indexToRemove]) {
|
13476
13492
|
yield hmsActions.sessionStore.set(
|
13477
13493
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
@@ -13483,7 +13499,7 @@ var init_usePinnedMessages = __esm({
|
|
13483
13499
|
);
|
13484
13500
|
const unpinBlacklistedMessages = (0, import_react64.useCallback)(
|
13485
13501
|
(blacklistedMessageIDSet) => __async(void 0, null, function* () {
|
13486
|
-
const pinnedMessages = vanillaStore.getState((0,
|
13502
|
+
const pinnedMessages = vanillaStore.getState((0, import_react_sdk26.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
13487
13503
|
const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
|
13488
13504
|
(pinnedMessage) => !(blacklistedMessageIDSet == null ? void 0 : blacklistedMessageIDSet.has(pinnedMessage.id))
|
13489
13505
|
);
|
@@ -13497,13 +13513,13 @@ var init_usePinnedMessages = __esm({
|
|
13497
13513
|
});
|
13498
13514
|
|
13499
13515
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
13500
|
-
var import_react65,
|
13516
|
+
var import_react65, import_react_sdk27, import_react_icons21, iconStyle, tooltipBoxCSS, ChatActions;
|
13501
13517
|
var init_ChatActions = __esm({
|
13502
13518
|
"src/Prebuilt/components/Chat/ChatActions.tsx"() {
|
13503
13519
|
"use strict";
|
13504
13520
|
init_define_process_env();
|
13505
13521
|
import_react65 = __toESM(require("react"));
|
13506
|
-
|
13522
|
+
import_react_sdk27 = require("@100mslive/react-sdk");
|
13507
13523
|
import_react_icons21 = require("@100mslive/react-icons");
|
13508
13524
|
init_Dropdown2();
|
13509
13525
|
init_IconButton2();
|
@@ -13540,10 +13556,10 @@ var init_ChatActions = __esm({
|
|
13540
13556
|
const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
|
13541
13557
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
13542
13558
|
const [open, setOpen] = (0, import_react65.useState)(false);
|
13543
|
-
const actions = (0,
|
13544
|
-
const canRemoveOthers = (_b7 = (0,
|
13559
|
+
const actions = (0, import_react_sdk27.useHMSActions)();
|
13560
|
+
const canRemoveOthers = (_b7 = (0, import_react_sdk27.useHMSStore)(import_react_sdk27.selectPermissions)) == null ? void 0 : _b7.removeOthers;
|
13545
13561
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
13546
|
-
const localPeerName = (0,
|
13562
|
+
const localPeerName = (0, import_react_sdk27.useHMSStore)(import_react_sdk27.selectLocalPeerName);
|
13547
13563
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
13548
13564
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
13549
13565
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -13782,15 +13798,15 @@ var init_EmptyChat = __esm({
|
|
13782
13798
|
});
|
13783
13799
|
|
13784
13800
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
13785
|
-
var import_react67,
|
13801
|
+
var import_react67, import_react_sdk28, usePinnedBy;
|
13786
13802
|
var init_usePinnedBy = __esm({
|
13787
13803
|
"src/Prebuilt/components/hooks/usePinnedBy.tsx"() {
|
13788
13804
|
"use strict";
|
13789
13805
|
init_define_process_env();
|
13790
13806
|
import_react67 = require("react");
|
13791
|
-
|
13807
|
+
import_react_sdk28 = require("@100mslive/react-sdk");
|
13792
13808
|
usePinnedBy = (messageId) => {
|
13793
|
-
const pinnedMessages = (0,
|
13809
|
+
const pinnedMessages = (0, import_react_sdk28.useHMSStore)((0, import_react_sdk28.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
13794
13810
|
const [pinnedBy, setPinnedBy] = (0, import_react67.useState)("");
|
13795
13811
|
(0, import_react67.useEffect)(() => {
|
13796
13812
|
let match18 = "";
|
@@ -13830,7 +13846,7 @@ function getRowHeight(index) {
|
|
13830
13846
|
var _a7;
|
13831
13847
|
return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
|
13832
13848
|
}
|
13833
|
-
var import_react68, import_react_use12, import_react_virtualized_auto_sizer, import_react_window,
|
13849
|
+
var import_react68, import_react_use12, import_react_virtualized_auto_sizer, import_react_window, import_react_sdk29, import_react_icons22, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
|
13834
13850
|
var init_ChatBody = __esm({
|
13835
13851
|
"src/Prebuilt/components/Chat/ChatBody.tsx"() {
|
13836
13852
|
"use strict";
|
@@ -13839,7 +13855,7 @@ var init_ChatBody = __esm({
|
|
13839
13855
|
import_react_use12 = require("react-use");
|
13840
13856
|
import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
|
13841
13857
|
import_react_window = require("react-window");
|
13842
|
-
|
13858
|
+
import_react_sdk29 = require("@100mslive/react-sdk");
|
13843
13859
|
import_react_icons22 = require("@100mslive/react-icons");
|
13844
13860
|
init_Layout();
|
13845
13861
|
init_Text2();
|
@@ -13914,8 +13930,8 @@ var init_ChatBody = __esm({
|
|
13914
13930
|
hasCurrentUserSent,
|
13915
13931
|
receiver
|
13916
13932
|
}) => {
|
13917
|
-
const peerName = (0,
|
13918
|
-
const localPeerRoleName = (0,
|
13933
|
+
const peerName = (0, import_react_sdk29.useHMSStore)((0, import_react_sdk29.selectPeerNameByID)(receiver));
|
13934
|
+
const localPeerRoleName = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectLocalPeerRoleName);
|
13919
13935
|
if (receiver) {
|
13920
13936
|
return /* @__PURE__ */ import_react68.default.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
13921
13937
|
}
|
@@ -13963,7 +13979,7 @@ var init_ChatBody = __esm({
|
|
13963
13979
|
const isMobile = (0, import_react_use12.useMedia)(config.media.md);
|
13964
13980
|
const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
|
13965
13981
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
13966
|
-
const localPeerId = (0,
|
13982
|
+
const localPeerId = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectLocalPeerID);
|
13967
13983
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
13968
13984
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
13969
13985
|
const messageType = getMessageType({
|
@@ -14140,7 +14156,7 @@ var init_ChatBody = __esm({
|
|
14140
14156
|
}
|
14141
14157
|
);
|
14142
14158
|
VirtualizedChatMessages = import_react68.default.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
14143
|
-
const hmsActions = (0,
|
14159
|
+
const hmsActions = (0, import_react_sdk29.useHMSActions)();
|
14144
14160
|
const itemKey2 = (0, import_react68.useCallback)((index, data3) => {
|
14145
14161
|
return data3[index].id;
|
14146
14162
|
}, []);
|
@@ -14195,13 +14211,13 @@ var init_ChatBody = __esm({
|
|
14195
14211
|
});
|
14196
14212
|
ChatBody = import_react68.default.forwardRef(
|
14197
14213
|
({ scrollToBottom }, listRef) => {
|
14198
|
-
const messages = (0,
|
14199
|
-
const blacklistedMessageIDs = (0,
|
14214
|
+
const messages = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectHMSMessages);
|
14215
|
+
const blacklistedMessageIDs = (0, import_react_sdk29.useHMSStore)((0, import_react_sdk29.selectSessionStore)("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
14200
14216
|
const filteredMessages = (0, import_react68.useMemo)(() => {
|
14201
14217
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
14202
14218
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
14203
14219
|
}, [blacklistedMessageIDs, messages]);
|
14204
|
-
const vanillaStore = (0,
|
14220
|
+
const vanillaStore = (0, import_react_sdk29.useHMSVanillaStore)();
|
14205
14221
|
const rerenderOnFirstMount = (0, import_react68.useRef)(false);
|
14206
14222
|
(0, import_react68.useEffect)(() => {
|
14207
14223
|
const unsubscribe = vanillaStore.subscribe(() => {
|
@@ -14212,7 +14228,7 @@ var init_ChatBody = __esm({
|
|
14212
14228
|
if (outerElement && outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
|
14213
14229
|
requestAnimationFrame(() => scrollToBottom(1));
|
14214
14230
|
}
|
14215
|
-
},
|
14231
|
+
}, import_react_sdk29.selectUnreadHMSMessagesCount);
|
14216
14232
|
return unsubscribe;
|
14217
14233
|
}, [vanillaStore, listRef, scrollToBottom]);
|
14218
14234
|
(0, import_react68.useEffect)(() => {
|
@@ -14230,7 +14246,7 @@ var init_ChatBody = __esm({
|
|
14230
14246
|
rowRef
|
14231
14247
|
}) => {
|
14232
14248
|
const pinnedBy = usePinnedBy(messageId);
|
14233
|
-
const localPeerName = (0,
|
14249
|
+
const localPeerName = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectLocalPeerName);
|
14234
14250
|
(0, import_react68.useLayoutEffect)(() => {
|
14235
14251
|
if (rowRef == null ? void 0 : rowRef.current) {
|
14236
14252
|
if (pinnedBy) {
|
@@ -14250,13 +14266,13 @@ var init_ChatBody = __esm({
|
|
14250
14266
|
});
|
14251
14267
|
|
14252
14268
|
// src/Prebuilt/components/PIP/PIPChat.tsx
|
14253
|
-
var import_react69,
|
14269
|
+
var import_react69, import_react_sdk30, import_react_icons23, PIPChat, MessageTitle;
|
14254
14270
|
var init_PIPChat = __esm({
|
14255
14271
|
"src/Prebuilt/components/PIP/PIPChat.tsx"() {
|
14256
14272
|
"use strict";
|
14257
14273
|
init_define_process_env();
|
14258
14274
|
import_react69 = __toESM(require("react"));
|
14259
|
-
|
14275
|
+
import_react_sdk30 = require("@100mslive/react-sdk");
|
14260
14276
|
import_react_icons23 = require("@100mslive/react-icons");
|
14261
14277
|
init_Layout();
|
14262
14278
|
init_Text2();
|
@@ -14268,10 +14284,10 @@ var init_PIPChat = __esm({
|
|
14268
14284
|
init_useChatBlacklist();
|
14269
14285
|
init_utils3();
|
14270
14286
|
PIPChat = () => {
|
14271
|
-
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
|
14272
|
-
const messages = (0,
|
14273
|
-
const localPeerID = (0,
|
14274
|
-
const count = (0,
|
14287
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
14288
|
+
const messages = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectHMSMessages);
|
14289
|
+
const localPeerID = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectLocalPeerID);
|
14290
|
+
const count = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectUnreadHMSMessagesCount);
|
14275
14291
|
const [unreadMessageCount, setUnreadMessageCount] = (0, import_react69.useState)(0);
|
14276
14292
|
const getSenderName = (0, import_react69.useCallback)(
|
14277
14293
|
(senderName, senderID) => {
|
@@ -14286,16 +14302,16 @@ var init_PIPChat = __esm({
|
|
14286
14302
|
}, 100);
|
14287
14303
|
return () => clearTimeout(timeoutId);
|
14288
14304
|
}, [count]);
|
14289
|
-
const blacklistedMessageIDs = (0,
|
14305
|
+
const blacklistedMessageIDs = (0, import_react_sdk30.useHMSStore)((0, import_react_sdk30.selectSessionStore)("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
14290
14306
|
const filteredMessages = (0, import_react69.useMemo)(() => {
|
14291
14307
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
14292
14308
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
14293
14309
|
}, [blacklistedMessageIDs, messages]);
|
14294
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0,
|
14310
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk30.useHMSStore)((0, import_react_sdk30.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
14295
14311
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
14296
14312
|
const { elements } = useRoomLayoutConferencingScreen();
|
14297
14313
|
const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
|
14298
|
-
const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length);
|
14314
|
+
const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
|
14299
14315
|
const getChatStatus = (0, import_react69.useCallback)(() => {
|
14300
14316
|
if (isLocalPeerBlacklisted)
|
14301
14317
|
return "You've been blocked from sending messages";
|
@@ -14355,7 +14371,7 @@ var init_PIPChat = __esm({
|
|
14355
14371
|
}
|
14356
14372
|
},
|
14357
14373
|
/* @__PURE__ */ import_react69.default.createElement(Text, { variant: "h5", css: { mt: "$8", c: "$on_surface_high" } }, canSendChatMessages ? "Start a conversation" : "No messages yet"),
|
14358
|
-
/* @__PURE__ */ import_react69.default.createElement(Text, { variant: "sm", style: { maxWidth: "80%", textAlign: "center", marginTop: "4px" } }, "There are no messages here yet. Start a conversation by sending a message.")
|
14374
|
+
canSendChatMessages ? /* @__PURE__ */ import_react69.default.createElement(Text, { variant: "sm", style: { maxWidth: "80%", textAlign: "center", marginTop: "4px" } }, "There are no messages here yet. Start a conversation by sending a message.") : ""
|
14359
14375
|
) : filteredMessages.map((message) => /* @__PURE__ */ import_react69.default.createElement(Box, { className: "pip-message", key: message.id, id: message.id, style: { padding: "8px 0.75rem" } }, /* @__PURE__ */ import_react69.default.createElement(Flex, { style: { width: "100%", alignItems: "center", justifyContent: "between" } }, /* @__PURE__ */ import_react69.default.createElement(
|
14360
14376
|
Text,
|
14361
14377
|
{
|
@@ -14414,10 +14430,10 @@ var init_PIPChat = __esm({
|
|
14414
14430
|
borderRadius: "4px",
|
14415
14431
|
padding: "0 2px"
|
14416
14432
|
},
|
14417
|
-
defaultValue: ((
|
14433
|
+
defaultValue: ((_f = elements.chat) == null ? void 0 : _f.public_chat_enabled) ? "Everyone" : (_h = (_g = elements.chat) == null ? void 0 : _g.roles_whitelist) == null ? void 0 : _h[0]
|
14418
14434
|
},
|
14419
|
-
(
|
14420
|
-
((
|
14435
|
+
(_j = (_i = elements.chat) == null ? void 0 : _i.roles_whitelist) == null ? void 0 : _j.map((role) => /* @__PURE__ */ import_react69.default.createElement("option", { key: role, value: role }, role)),
|
14436
|
+
((_k = elements.chat) == null ? void 0 : _k.public_chat_enabled) ? /* @__PURE__ */ import_react69.default.createElement("option", { value: "Everyone" }, "Everyone") : ""
|
14421
14437
|
))), /* @__PURE__ */ import_react69.default.createElement(
|
14422
14438
|
Flex,
|
14423
14439
|
{
|
@@ -14476,7 +14492,7 @@ var init_PIPChat = __esm({
|
|
14476
14492
|
recipientRoles,
|
14477
14493
|
localPeerID
|
14478
14494
|
}) => {
|
14479
|
-
const peerName = (0,
|
14495
|
+
const peerName = (0, import_react_sdk30.useHMSStore)((0, import_react_sdk30.selectPeerNameByID)(recipientPeer));
|
14480
14496
|
return /* @__PURE__ */ import_react69.default.createElement(import_react69.default.Fragment, null, recipientRoles ? /* @__PURE__ */ import_react69.default.createElement(Text, { as: "span", variant: "sub2", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "to ", recipientRoles, " (Group)") : null, recipientPeer ? /* @__PURE__ */ import_react69.default.createElement(Text, { as: "span", variant: "sub2", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "to ", recipientPeer === localPeerID ? "You" : peerName, " (DM)") : null);
|
14481
14497
|
};
|
14482
14498
|
}
|
@@ -14517,14 +14533,14 @@ var init_PIPWindow = __esm({
|
|
14517
14533
|
});
|
14518
14534
|
|
14519
14535
|
// src/Prebuilt/components/RoleChangeModal.tsx
|
14520
|
-
var import_react71, import_react_use13,
|
14536
|
+
var import_react71, import_react_use13, import_react_sdk31, import_react_icons25, HighlightTerm, RoleChangeContent, RoleChangeModal;
|
14521
14537
|
var init_RoleChangeModal = __esm({
|
14522
14538
|
"src/Prebuilt/components/RoleChangeModal.tsx"() {
|
14523
14539
|
"use strict";
|
14524
14540
|
init_define_process_env();
|
14525
14541
|
import_react71 = __toESM(require("react"));
|
14526
14542
|
import_react_use13 = require("react-use");
|
14527
|
-
|
14543
|
+
import_react_sdk31 = require("@100mslive/react-sdk");
|
14528
14544
|
import_react_icons25 = require("@100mslive/react-icons");
|
14529
14545
|
init_Button2();
|
14530
14546
|
init_Dropdown2();
|
@@ -14556,11 +14572,11 @@ var init_RoleChangeModal = __esm({
|
|
14556
14572
|
isMobile = false
|
14557
14573
|
}) => {
|
14558
14574
|
var _a7;
|
14559
|
-
const roles = (0,
|
14575
|
+
const roles = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectAvailableRoleNames).filter(
|
14560
14576
|
(role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
|
14561
14577
|
);
|
14562
14578
|
const [selectedRole, setRole] = (0, import_react71.useState)(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[0]) || (peer == null ? void 0 : peer.roleName));
|
14563
|
-
const hmsActions = (0,
|
14579
|
+
const hmsActions = (0, import_react_sdk31.useHMSActions)();
|
14564
14580
|
const [open, setOpen] = (0, import_react71.useState)(false);
|
14565
14581
|
const triggerRef = (0, import_react71.useRef)();
|
14566
14582
|
return /* @__PURE__ */ import_react71.default.createElement(import_react71.default.Fragment, null, /* @__PURE__ */ import_react71.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ import_react71.default.createElement(Text, { as: "h6", variant: "h6" }, "Switch Role"), isMobile && /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.CrossIcon, { onClick: () => onOpenChange(false) })), /* @__PURE__ */ import_react71.default.createElement(Box, null, /* @__PURE__ */ import_react71.default.createElement(
|
@@ -14656,7 +14672,7 @@ var init_RoleChangeModal = __esm({
|
|
14656
14672
|
peerId,
|
14657
14673
|
onOpenChange
|
14658
14674
|
}) => {
|
14659
|
-
const peer = (0,
|
14675
|
+
const peer = (0, import_react_sdk31.useHMSStore)((0, import_react_sdk31.selectPeerByID)(peerId));
|
14660
14676
|
const isMobile = (0, import_react_use13.useMedia)(config.media.md);
|
14661
14677
|
if (!peer) {
|
14662
14678
|
return null;
|
@@ -14916,13 +14932,13 @@ var init_ResolutionInput = __esm({
|
|
14916
14932
|
});
|
14917
14933
|
|
14918
14934
|
// src/Prebuilt/components/Settings/StartRecording.jsx
|
14919
|
-
var import_react74,
|
14935
|
+
var import_react74, import_react_sdk32, import_react_icons28, StartRecording, StartRecording_default;
|
14920
14936
|
var init_StartRecording = __esm({
|
14921
14937
|
"src/Prebuilt/components/Settings/StartRecording.jsx"() {
|
14922
14938
|
"use strict";
|
14923
14939
|
init_define_process_env();
|
14924
14940
|
import_react74 = __toESM(require("react"));
|
14925
|
-
|
14941
|
+
import_react_sdk32 = require("@100mslive/react-sdk");
|
14926
14942
|
import_react_icons28 = require("@100mslive/react-icons");
|
14927
14943
|
init_src();
|
14928
14944
|
init_ResolutionInput();
|
@@ -14930,11 +14946,11 @@ var init_StartRecording = __esm({
|
|
14930
14946
|
init_hooks();
|
14931
14947
|
init_constants();
|
14932
14948
|
StartRecording = ({ open, onOpenChange }) => {
|
14933
|
-
const permissions = (0,
|
14949
|
+
const permissions = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectPermissions);
|
14934
14950
|
const [resolution, setResolution] = (0, import_react74.useState)(RTMP_RECORD_DEFAULT_RESOLUTION);
|
14935
14951
|
const { startRecording, recordingStarted } = useRecordingHandler();
|
14936
|
-
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = (0,
|
14937
|
-
const hmsActions = (0,
|
14952
|
+
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = (0, import_react_sdk32.useRecordingStreaming)();
|
14953
|
+
const hmsActions = (0, import_react_sdk32.useHMSActions)();
|
14938
14954
|
if (!(permissions == null ? void 0 : permissions.browserRecording) || isHLSRunning) {
|
14939
14955
|
return null;
|
14940
14956
|
}
|
@@ -15001,14 +15017,14 @@ var init_StartRecording = __esm({
|
|
15001
15017
|
});
|
15002
15018
|
|
15003
15019
|
// src/Prebuilt/components/StatsForNerds.jsx
|
15004
|
-
var import_react75, import_ts_pattern4,
|
15020
|
+
var import_react75, import_ts_pattern4, import_react_sdk33, StatsForNerds, useTracksWithLabel, LocalPeerStats, TrackStats, StatsRow2;
|
15005
15021
|
var init_StatsForNerds = __esm({
|
15006
15022
|
"src/Prebuilt/components/StatsForNerds.jsx"() {
|
15007
15023
|
"use strict";
|
15008
15024
|
init_define_process_env();
|
15009
15025
|
import_react75 = __toESM(require("react"));
|
15010
15026
|
import_ts_pattern4 = require("ts-pattern");
|
15011
|
-
|
15027
|
+
import_react_sdk33 = require("@100mslive/react-sdk");
|
15012
15028
|
init_Divider2();
|
15013
15029
|
init_Dropdown2();
|
15014
15030
|
init_Label2();
|
@@ -15093,9 +15109,9 @@ var init_StatsForNerds = __esm({
|
|
15093
15109
|
)));
|
15094
15110
|
};
|
15095
15111
|
useTracksWithLabel = () => {
|
15096
|
-
const tracksMap = (0,
|
15097
|
-
const peersMap = (0,
|
15098
|
-
const localPeerID = (0,
|
15112
|
+
const tracksMap = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectTracksMap);
|
15113
|
+
const peersMap = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectPeersMap);
|
15114
|
+
const localPeerID = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectLocalPeerID);
|
15099
15115
|
const tracksWithLabels = (0, import_react75.useMemo)(
|
15100
15116
|
() => Object.values(tracksMap).reduce((res, track) => {
|
15101
15117
|
var _a7, _b7;
|
@@ -15127,7 +15143,7 @@ var init_StatsForNerds = __esm({
|
|
15127
15143
|
};
|
15128
15144
|
LocalPeerStats = () => {
|
15129
15145
|
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
|
15130
|
-
const stats = (0,
|
15146
|
+
const stats = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.localPeerStats);
|
15131
15147
|
if (!stats) {
|
15132
15148
|
return null;
|
15133
15149
|
}
|
@@ -15151,9 +15167,9 @@ var init_StatsForNerds = __esm({
|
|
15151
15167
|
{
|
15152
15168
|
layer: import_ts_pattern4.P.when((layer2) => !!layer2)
|
15153
15169
|
},
|
15154
|
-
() =>
|
15155
|
-
).with({ local: import_ts_pattern4.P.when((local2) => !!local2) }, () =>
|
15156
|
-
const stats = (0,
|
15170
|
+
() => import_react_sdk33.selectHMSStats.localVideoTrackStatsByLayer(layer)(trackID)
|
15171
|
+
).with({ local: import_ts_pattern4.P.when((local2) => !!local2) }, () => import_react_sdk33.selectHMSStats.localAudioTrackStatsByID(trackID)).otherwise(() => import_react_sdk33.selectHMSStats.trackStatsByID(trackID));
|
15172
|
+
const stats = (0, import_react_sdk33.useHMSStatsStore)(selector);
|
15157
15173
|
if (!stats) {
|
15158
15174
|
return null;
|
15159
15175
|
}
|
@@ -15188,13 +15204,13 @@ var init_StatsForNerds = __esm({
|
|
15188
15204
|
});
|
15189
15205
|
|
15190
15206
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
15191
|
-
var import_react76,
|
15207
|
+
var import_react76, import_react_sdk34, import_react_icons29, BulkRoleChangeModal;
|
15192
15208
|
var init_BulkRoleChangeModal = __esm({
|
15193
15209
|
"src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx"() {
|
15194
15210
|
"use strict";
|
15195
15211
|
init_define_process_env();
|
15196
15212
|
import_react76 = __toESM(require("react"));
|
15197
|
-
|
15213
|
+
import_react_sdk34 = require("@100mslive/react-sdk");
|
15198
15214
|
import_react_icons29 = require("@100mslive/react-icons");
|
15199
15215
|
init_src();
|
15200
15216
|
init_DialogContent2();
|
@@ -15203,7 +15219,7 @@ var init_BulkRoleChangeModal = __esm({
|
|
15203
15219
|
BulkRoleChangeModal = ({ onOpenChange }) => {
|
15204
15220
|
var _a7, _b7;
|
15205
15221
|
const roles = useFilteredRoles();
|
15206
|
-
const hmsActions = (0,
|
15222
|
+
const hmsActions = (0, import_react_sdk34.useHMSActions)();
|
15207
15223
|
const ref = (0, import_react76.useRef)(null);
|
15208
15224
|
const roleRef = (0, import_react76.useRef)(null);
|
15209
15225
|
const [selectedBulkRole, setBulkRole] = (0, import_react76.useState)([]);
|
@@ -15306,13 +15322,13 @@ var init_BulkRoleChangeModal = __esm({
|
|
15306
15322
|
});
|
15307
15323
|
|
15308
15324
|
// src/Prebuilt/components/MoreSettings/CaptionContent.tsx
|
15309
|
-
var import_react77,
|
15325
|
+
var import_react77, import_react_sdk35, import_react_icons30, CaptionContent;
|
15310
15326
|
var init_CaptionContent = __esm({
|
15311
15327
|
"src/Prebuilt/components/MoreSettings/CaptionContent.tsx"() {
|
15312
15328
|
"use strict";
|
15313
15329
|
init_define_process_env();
|
15314
15330
|
import_react77 = __toESM(require("react"));
|
15315
|
-
|
15331
|
+
import_react_sdk35 = require("@100mslive/react-sdk");
|
15316
15332
|
import_react_icons30 = require("@100mslive/react-icons");
|
15317
15333
|
init_Button2();
|
15318
15334
|
init_Layout();
|
@@ -15323,8 +15339,8 @@ var init_CaptionContent = __esm({
|
|
15323
15339
|
init_constants();
|
15324
15340
|
CaptionContent = ({ isMobile, onExit }) => {
|
15325
15341
|
const DURATION = 2e3;
|
15326
|
-
const actions = (0,
|
15327
|
-
const isTranscriptionEnabled = (0,
|
15342
|
+
const actions = (0, import_react_sdk35.useHMSActions)();
|
15343
|
+
const isTranscriptionEnabled = (0, import_react_sdk35.useHMSStore)(import_react_sdk35.selectIsTranscriptionEnabled);
|
15328
15344
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
15329
15345
|
const [isCaptionEnabled, setIsCaptionEnabled] = useSetIsCaptionEnabled();
|
15330
15346
|
return /* @__PURE__ */ import_react77.default.createElement(import_react77.default.Fragment, null, /* @__PURE__ */ import_react77.default.createElement(
|
@@ -15395,7 +15411,7 @@ var init_CaptionContent = __esm({
|
|
15395
15411
|
try {
|
15396
15412
|
if (isTranscriptionEnabled) {
|
15397
15413
|
yield actions.stopTranscription({
|
15398
|
-
mode:
|
15414
|
+
mode: import_react_sdk35.HMSTranscriptionMode.CAPTION
|
15399
15415
|
});
|
15400
15416
|
setIsCaptionEnabled(false);
|
15401
15417
|
const id2 = ToastManager.replaceToast(toastId, {
|
@@ -15409,7 +15425,7 @@ var init_CaptionContent = __esm({
|
|
15409
15425
|
return;
|
15410
15426
|
}
|
15411
15427
|
yield actions.startTranscription({
|
15412
|
-
mode:
|
15428
|
+
mode: import_react_sdk35.HMSTranscriptionMode.CAPTION
|
15413
15429
|
});
|
15414
15430
|
const id = ToastManager.replaceToast(toastId, {
|
15415
15431
|
title: `Enabling Closed Caption for everyone.`,
|
@@ -15548,13 +15564,13 @@ var init_FullScreenItem = __esm({
|
|
15548
15564
|
});
|
15549
15565
|
|
15550
15566
|
// src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
|
15551
|
-
var import_react81,
|
15567
|
+
var import_react81, import_react_sdk36, MuteAllContent;
|
15552
15568
|
var init_MuteAllContent = __esm({
|
15553
15569
|
"src/Prebuilt/components/MoreSettings/MuteAllContent.tsx"() {
|
15554
15570
|
"use strict";
|
15555
15571
|
init_define_process_env();
|
15556
15572
|
import_react81 = __toESM(require("react"));
|
15557
|
-
|
15573
|
+
import_react_sdk36 = require("@100mslive/react-sdk");
|
15558
15574
|
init_Button2();
|
15559
15575
|
init_Label2();
|
15560
15576
|
init_Layout();
|
@@ -15564,7 +15580,7 @@ var init_MuteAllContent = __esm({
|
|
15564
15580
|
init_constants3();
|
15565
15581
|
MuteAllContent = (props) => {
|
15566
15582
|
const roles = props.roles || [];
|
15567
|
-
const permissions = (0,
|
15583
|
+
const permissions = (0, import_react_sdk36.useHMSStore)(import_react_sdk36.selectPermissions);
|
15568
15584
|
return /* @__PURE__ */ import_react81.default.createElement(import_react81.default.Fragment, null, /* @__PURE__ */ import_react81.default.createElement(
|
15569
15585
|
DialogSelect,
|
15570
15586
|
{
|
@@ -15601,13 +15617,13 @@ var init_MuteAllContent = __esm({
|
|
15601
15617
|
});
|
15602
15618
|
|
15603
15619
|
// src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
|
15604
|
-
var import_react82,
|
15620
|
+
var import_react82, import_react_sdk37, import_react_icons32, MuteAllModal;
|
15605
15621
|
var init_MuteAllModal = __esm({
|
15606
15622
|
"src/Prebuilt/components/MoreSettings/MuteAllModal.tsx"() {
|
15607
15623
|
"use strict";
|
15608
15624
|
init_define_process_env();
|
15609
15625
|
import_react82 = __toESM(require("react"));
|
15610
|
-
|
15626
|
+
import_react_sdk37 = require("@100mslive/react-sdk");
|
15611
15627
|
import_react_icons32 = require("@100mslive/react-icons");
|
15612
15628
|
init_src();
|
15613
15629
|
init_Sheet2();
|
@@ -15617,8 +15633,8 @@ var init_MuteAllModal = __esm({
|
|
15617
15633
|
onOpenChange,
|
15618
15634
|
isMobile = false
|
15619
15635
|
}) => {
|
15620
|
-
const roles = (0,
|
15621
|
-
const hmsActions = (0,
|
15636
|
+
const roles = (0, import_react_sdk37.useHMSStore)(import_react_sdk37.selectAvailableRoleNames);
|
15637
|
+
const hmsActions = (0, import_react_sdk37.useHMSActions)();
|
15622
15638
|
const [enabled, setEnabled] = (0, import_react82.useState)(false);
|
15623
15639
|
const [trackType, setTrackType] = (0, import_react82.useState)();
|
15624
15640
|
const [selectedRole, setRole] = (0, import_react82.useState)();
|
@@ -15654,22 +15670,22 @@ var init_MuteAllModal = __esm({
|
|
15654
15670
|
});
|
15655
15671
|
|
15656
15672
|
// src/Prebuilt/components/hooks/useMetadata.tsx
|
15657
|
-
var import_react83,
|
15673
|
+
var import_react83, import_react_sdk38, useMyMetadata;
|
15658
15674
|
var init_useMetadata = __esm({
|
15659
15675
|
"src/Prebuilt/components/hooks/useMetadata.tsx"() {
|
15660
15676
|
"use strict";
|
15661
15677
|
init_define_process_env();
|
15662
15678
|
import_react83 = require("react");
|
15663
|
-
|
15679
|
+
import_react_sdk38 = require("@100mslive/react-sdk");
|
15664
15680
|
useMyMetadata = () => {
|
15665
|
-
const hmsActions = (0,
|
15666
|
-
const localPeerId = (0,
|
15667
|
-
const vanillaStore = (0,
|
15668
|
-
const metaData = (0,
|
15669
|
-
const isHandRaised = (0,
|
15681
|
+
const hmsActions = (0, import_react_sdk38.useHMSActions)();
|
15682
|
+
const localPeerId = (0, import_react_sdk38.useHMSStore)(import_react_sdk38.selectLocalPeerID);
|
15683
|
+
const vanillaStore = (0, import_react_sdk38.useHMSVanillaStore)();
|
15684
|
+
const metaData = (0, import_react_sdk38.useHMSStore)((0, import_react_sdk38.selectPeerMetadata)(localPeerId));
|
15685
|
+
const isHandRaised = (0, import_react_sdk38.useHMSStore)((0, import_react_sdk38.selectHasPeerHandRaised)(localPeerId));
|
15670
15686
|
const update = (updatedFields) => __async(void 0, null, function* () {
|
15671
15687
|
try {
|
15672
|
-
const currentMetadata = vanillaStore.getState((0,
|
15688
|
+
const currentMetadata = vanillaStore.getState((0, import_react_sdk38.selectPeerMetadata)(localPeerId));
|
15673
15689
|
yield hmsActions.changeMetadata(Object.assign(currentMetadata, updatedFields));
|
15674
15690
|
return true;
|
15675
15691
|
} catch (error) {
|
@@ -15735,17 +15751,17 @@ var init_usePIPWindow = __esm({
|
|
15735
15751
|
});
|
15736
15752
|
|
15737
15753
|
// src/Prebuilt/components/PIP/usePIPChat.tsx
|
15738
|
-
var import_react86,
|
15754
|
+
var import_react86, import_react_sdk39, usePIPChat;
|
15739
15755
|
var init_usePIPChat = __esm({
|
15740
15756
|
"src/Prebuilt/components/PIP/usePIPChat.tsx"() {
|
15741
15757
|
"use strict";
|
15742
15758
|
init_define_process_env();
|
15743
15759
|
import_react86 = require("react");
|
15744
|
-
|
15760
|
+
import_react_sdk39 = require("@100mslive/react-sdk");
|
15745
15761
|
init_Theme();
|
15746
15762
|
init_usePIPWindow();
|
15747
15763
|
usePIPChat = () => {
|
15748
|
-
const hmsActions = (0,
|
15764
|
+
const hmsActions = (0, import_react_sdk39.useHMSActions)();
|
15749
15765
|
const { isSupported, requestPipWindow, pipWindow, closePipWindow } = usePIPWindow();
|
15750
15766
|
(0, import_react86.useEffect)(() => {
|
15751
15767
|
if (document && pipWindow) {
|
@@ -15839,7 +15855,7 @@ var init_usePIPChat = __esm({
|
|
15839
15855
|
});
|
15840
15856
|
|
15841
15857
|
// src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
|
15842
|
-
var import_react87, import_hls_player, import_ts_pattern5,
|
15858
|
+
var import_react87, import_hls_player, import_ts_pattern5, import_react_sdk40, import_react_icons33, MODALS, DesktopOptions;
|
15843
15859
|
var init_DesktopOptions = __esm({
|
15844
15860
|
"src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx"() {
|
15845
15861
|
"use strict";
|
@@ -15847,7 +15863,7 @@ var init_DesktopOptions = __esm({
|
|
15847
15863
|
import_react87 = __toESM(require("react"));
|
15848
15864
|
import_hls_player = require("@100mslive/hls-player");
|
15849
15865
|
import_ts_pattern5 = require("ts-pattern");
|
15850
|
-
|
15866
|
+
import_react_sdk40 = require("@100mslive/react-sdk");
|
15851
15867
|
import_react_icons33 = require("@100mslive/react-icons");
|
15852
15868
|
init_src();
|
15853
15869
|
init_IconButton3();
|
@@ -15885,15 +15901,15 @@ var init_DesktopOptions = __esm({
|
|
15885
15901
|
elements,
|
15886
15902
|
screenType
|
15887
15903
|
}) => {
|
15888
|
-
const localPeerId = (0,
|
15889
|
-
const hmsActions = (0,
|
15890
|
-
const enablHlsStats = (0,
|
15904
|
+
const localPeerId = (0, import_react_sdk40.useHMSStore)(import_react_sdk40.selectLocalPeerID);
|
15905
|
+
const hmsActions = (0, import_react_sdk40.useHMSActions)();
|
15906
|
+
const enablHlsStats = (0, import_react_sdk40.useHMSStore)((0, import_react_sdk40.selectAppData)(APP_DATA.hlsStats));
|
15891
15907
|
const [openModals, setOpenModals] = (0, import_react87.useState)(/* @__PURE__ */ new Set());
|
15892
15908
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
15893
15909
|
const isPipOn = PictureInPicture.isOn();
|
15894
15910
|
const isBRBEnabled = !!(elements == null ? void 0 : elements.brb);
|
15895
|
-
const isTranscriptionAllowed = (0,
|
15896
|
-
const isTranscriptionEnabled = (0,
|
15911
|
+
const isTranscriptionAllowed = (0, import_react_sdk40.useHMSStore)((0, import_react_sdk40.selectIsTranscriptionAllowedByMode)(import_react_sdk40.HMSTranscriptionMode.CAPTION));
|
15912
|
+
const isTranscriptionEnabled = (0, import_react_sdk40.useHMSStore)(import_react_sdk40.selectIsTranscriptionEnabled);
|
15897
15913
|
const { isSupported, pipWindow, requestPipWindow } = usePIPChat();
|
15898
15914
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
15899
15915
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
@@ -21572,9 +21588,9 @@ function ne(a2) {
|
|
21572
21588
|
function vt(a2 = "prod", e) {
|
21573
21589
|
let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21574
21590
|
if (Be)
|
21575
|
-
return
|
21591
|
+
return Rs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Is, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21576
21592
|
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(`web_${r.name}`), d = r.version || "", u = kr(`${o.name}_${o.version}`), p = u;
|
21577
|
-
return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`),
|
21593
|
+
return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`), Rs({ os: n, os_version: d, sdk: t, sdk_version: Is, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21578
21594
|
}
|
21579
21595
|
function kr(a2) {
|
21580
21596
|
return a2.replace(/ /g, "_");
|
@@ -21589,7 +21605,7 @@ function ci(a2, e = 300) {
|
|
21589
21605
|
}, e);
|
21590
21606
|
};
|
21591
21607
|
}
|
21592
|
-
function
|
21608
|
+
function A(a2) {
|
21593
21609
|
return (e) => (t) => a2(t, e);
|
21594
21610
|
}
|
21595
21611
|
function jm(a2) {
|
@@ -21598,7 +21614,7 @@ function jm(a2) {
|
|
21598
21614
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
21599
21615
|
};
|
21600
21616
|
}
|
21601
|
-
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, jt, import_eventemitter24, import_uuid9, import_uuid10, Xa, Za, eo, ti, ns, cs, os, h, M, gr, ro, c, yr, Tr, so, ds, fr, ls, hs, oo, l, he, B, ms, Be, co, nc, Ss, gs, ys, Ts, fs, ks, Es, Qe, P4, f, uo, S, Mr, Ps, me, ai, Is,
|
21617
|
+
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, jt, import_eventemitter24, import_uuid9, import_uuid10, Xa, Za, eo, ti, ns, cs, os, h, M, gr, ro, c, yr, Tr, so, ds, fr, ls, hs, oo, l, he, B, ms, Be, co, nc, Ss, gs, ys, Ts, fs, ks, Es, Qe, P4, f, uo, S, Mr, Ps, me, ai, Is, Rs, H, y, Er, J, Pr, br, Ar, Ls, ws, Ds, _s, Ns, Hr, Os, Cr, Vs, Lr, Fs, wr, Dr, $s, Ks, Pt, rt, V, _o, Xh, Zh, K, Mi, ea, O, Gr, No, Oe, im, Oo, fe, xo, ie, Ee, rm, sm, oe, z, Uo, ia, am, om, $r, Bo, cm, dm, lm, um, pm, hm, mm, Sm, At, Vo, gm, re, sa, Tm, fm, ve, vm, at, Fo, aa, Mm, oa, ym, km, Em, Pm, bm, Im, Rm, Am, Hm, Cm, na, _m, Go, Nm, da, Kr, la, ua, pa, ha, ma, Sa, ga, Ta, Ht, b, qr, Ct, fa, Wo, $o, q, jr, Ko, qo, jo, Jo, Qo, Y, qm, Qm, zm, yi, va, Ym, Xm, Zm, zo, Yo, tS, Ma, iS, Xo, rS, sS, aS, oS, nS, cS, ya, ka, lS, uS, Ea, pS, hS, Pa, mS, SS, gS, ba, Ia, Zo, en, tn, TS, fS, vS, MS, yS, Ra, DS, rn, _S, NS, OS, an, on, dn, Xr, be, Vt, j, sr, lt, An, Hn, Cn, Ln, za, wn, Ya, rs, Re, Dn, _n, Nn, On, xn, Un, Bn, Vn, Fn, Gn, ss, Wn, $n, Kn, qn, jn, Jn;
|
21602
21618
|
var init_dist = __esm({
|
21603
21619
|
"../hms-video-store/dist/index.js"() {
|
21604
21620
|
"use strict";
|
@@ -21669,7 +21685,7 @@ var init_dist = __esm({
|
|
21669
21685
|
n((t = t.apply(a2, e)).next());
|
21670
21686
|
});
|
21671
21687
|
yr = ro((Dc, ho) => {
|
21672
|
-
ho.exports = { version: "0.12.19
|
21688
|
+
ho.exports = { version: "0.12.19", 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"] };
|
21673
21689
|
});
|
21674
21690
|
Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
|
21675
21691
|
so = ((e) => (e.CHAT = "chat", e))(so || {});
|
@@ -21749,7 +21765,7 @@ var init_dist = __esm({
|
|
21749
21765
|
Be = typeof window == "undefined" && !((ms = he.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
21750
21766
|
co = () => !Be;
|
21751
21767
|
nc = co();
|
21752
|
-
ys = (
|
21768
|
+
ys = (gs = (Ss = he.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase().includes("safari");
|
21753
21769
|
ks = ((fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase()) === "firefox";
|
21754
21770
|
Es = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Es || {});
|
21755
21771
|
Qe = lo();
|
@@ -21955,7 +21971,7 @@ var init_dist = __esm({
|
|
21955
21971
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
21956
21972
|
};
|
21957
21973
|
Is = yr().version;
|
21958
|
-
|
21974
|
+
Rs = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21959
21975
|
H = class {
|
21960
21976
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21961
21977
|
this.metadata = { peer: {}, userAgent: vt() };
|
@@ -22102,7 +22118,7 @@ var init_dist = __esm({
|
|
22102
22118
|
J = new Er();
|
22103
22119
|
Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
|
22104
22120
|
br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
|
22105
|
-
|
22121
|
+
Ar = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ar || {});
|
22106
22122
|
Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
|
22107
22123
|
ws = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(ws || {});
|
22108
22124
|
Ds = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Ds || {});
|
@@ -22261,13 +22277,13 @@ var init_dist = __esm({
|
|
22261
22277
|
hm = createSelector(xo, (a2) => a2.filter(us));
|
22262
22278
|
mm = createSelector(ea, (a2) => a2.length);
|
22263
22279
|
Sm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22264
|
-
|
22280
|
+
At = createSelector(ea, Mi, (a2, e) => {
|
22265
22281
|
let t = [];
|
22266
22282
|
return a2.forEach((i) => {
|
22267
22283
|
t.push(e[i]);
|
22268
22284
|
}), t;
|
22269
22285
|
});
|
22270
|
-
Vo = createSelector(
|
22286
|
+
Vo = createSelector(At, (a2) => a2.filter((e) => {
|
22271
22287
|
var t;
|
22272
22288
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22273
22289
|
}));
|
@@ -22295,8 +22311,8 @@ var init_dist = __esm({
|
|
22295
22311
|
Pm = createSelector(V, (a2) => a2.transcriptions);
|
22296
22312
|
bm = createSelector(V, (a2) => a2.sessionId);
|
22297
22313
|
Im = createSelector(V, (a2) => a2.startedAt);
|
22298
|
-
|
22299
|
-
|
22314
|
+
Rm = createSelector(V, (a2) => !!a2.isLargeRoom);
|
22315
|
+
Am = createSelector(V, (a2) => !!a2.isEffectsEnabled);
|
22300
22316
|
Hm = createSelector(V, (a2) => !!a2.isVBEnabled);
|
22301
22317
|
Cm = createSelector(V, (a2) => a2.effectsKey);
|
22302
22318
|
na = (a2) => a2.polls;
|
@@ -22415,94 +22431,94 @@ var init_dist = __esm({
|
|
22415
22431
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22416
22432
|
});
|
22417
22433
|
Qo = createSelector([na, $o], (a2, e) => e ? a2[e] : null);
|
22418
|
-
Y =
|
22419
|
-
qm =
|
22434
|
+
Y = A(q);
|
22435
|
+
qm = A(createSelector([Gr, Wo], (a2, e) => {
|
22420
22436
|
if (a2)
|
22421
22437
|
return e ? a2[e] : a2;
|
22422
22438
|
}));
|
22423
|
-
Qm =
|
22424
|
-
zm =
|
22425
|
-
yi =
|
22426
|
-
va =
|
22427
|
-
Ym =
|
22428
|
-
Xm =
|
22429
|
-
Zm =
|
22430
|
-
zo =
|
22439
|
+
Qm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
|
22440
|
+
zm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
|
22441
|
+
yi = A(jr);
|
22442
|
+
va = A(Ko);
|
22443
|
+
Ym = A(qo);
|
22444
|
+
Xm = A(jo);
|
22445
|
+
Zm = A(Jo);
|
22446
|
+
zo = A((a2, e) => {
|
22431
22447
|
let t = q(a2, e);
|
22432
22448
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22433
22449
|
return a2.tracks[t.videoTrack];
|
22434
22450
|
});
|
22435
|
-
Yo =
|
22451
|
+
Yo = A((a2, e) => {
|
22436
22452
|
let t = q(a2, e);
|
22437
22453
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22438
22454
|
return a2.tracks[t.audioTrack];
|
22439
22455
|
});
|
22440
|
-
tS =
|
22456
|
+
tS = A((a2, e) => {
|
22441
22457
|
let t = q(a2, e);
|
22442
22458
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22443
22459
|
});
|
22444
22460
|
Ma = (a2, e) => e ? a2.speakers[e] : null;
|
22445
|
-
iS =
|
22461
|
+
iS = A(createSelector(Ma, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22446
22462
|
Xo = (a2, e) => {
|
22447
22463
|
let t = Yo(e)(a2);
|
22448
22464
|
return Ma(a2, t == null ? void 0 : t.id);
|
22449
22465
|
};
|
22450
|
-
rS =
|
22451
|
-
sS =
|
22466
|
+
rS = A(createSelector(Xo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22467
|
+
sS = A((a2, e) => {
|
22452
22468
|
if (e)
|
22453
22469
|
return a2.connectionQualities[e];
|
22454
22470
|
});
|
22455
|
-
aS =
|
22471
|
+
aS = A((a2, e) => {
|
22456
22472
|
let t = q(a2, e);
|
22457
22473
|
if (t) {
|
22458
22474
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
|
22459
22475
|
return i ? a2.tracks[i] : void 0;
|
22460
22476
|
}
|
22461
22477
|
});
|
22462
|
-
oS =
|
22478
|
+
oS = A(createSelector(O, q, (a2, e) => {
|
22463
22479
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22464
22480
|
let r = a2[i];
|
22465
22481
|
return mt(r) && ht(r);
|
22466
22482
|
});
|
22467
22483
|
return t ? a2[t] : void 0;
|
22468
22484
|
}));
|
22469
|
-
nS =
|
22485
|
+
nS = A(createSelector(O, q, (a2, e) => {
|
22470
22486
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22471
22487
|
let r = a2[i];
|
22472
22488
|
return mt(r) && pt(r);
|
22473
22489
|
});
|
22474
22490
|
return t ? a2[t] : void 0;
|
22475
22491
|
}));
|
22476
|
-
cS =
|
22492
|
+
cS = A(createSelector(O, q, (a2, e) => {
|
22477
22493
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22478
22494
|
let r = a2[i];
|
22479
22495
|
return si(r) && pt(r);
|
22480
22496
|
});
|
22481
22497
|
return t ? a2[t] : void 0;
|
22482
22498
|
}));
|
22483
|
-
ya =
|
22499
|
+
ya = A(createSelector(O, q, (a2, e) => Ue(a2, e)));
|
22484
22500
|
ka = (a2) => createSelector(ya(a2), (e) => e.audio);
|
22485
|
-
lS =
|
22501
|
+
lS = A((a2, e) => {
|
22486
22502
|
let t = q(a2, e);
|
22487
22503
|
return je(a2, t == null ? void 0 : t.audioTrack);
|
22488
22504
|
});
|
22489
|
-
uS =
|
22505
|
+
uS = A((a2, e) => {
|
22490
22506
|
let t = q(a2, e);
|
22491
22507
|
return je(a2, t == null ? void 0 : t.videoTrack);
|
22492
22508
|
});
|
22493
|
-
Ea =
|
22509
|
+
Ea = A((a2, e) => {
|
22494
22510
|
if (e && a2.tracks[e])
|
22495
22511
|
return a2.tracks[e].volume === 0;
|
22496
22512
|
});
|
22497
|
-
pS =
|
22513
|
+
pS = A((a2, e) => {
|
22498
22514
|
let t = q(a2, e);
|
22499
22515
|
return Ea(t == null ? void 0 : t.audioTrack)(a2);
|
22500
22516
|
});
|
22501
|
-
hS =
|
22517
|
+
hS = A((a2, e) => {
|
22502
22518
|
let t = ka(e)(a2);
|
22503
22519
|
return Ea(t == null ? void 0 : t.id)(a2);
|
22504
22520
|
});
|
22505
|
-
Pa =
|
22521
|
+
Pa = A((a2, e) => {
|
22506
22522
|
let t = jr(a2, e);
|
22507
22523
|
if (t) {
|
22508
22524
|
if (t.type !== "audio") {
|
@@ -22512,15 +22528,15 @@ var init_dist = __esm({
|
|
22512
22528
|
return t.volume;
|
22513
22529
|
}
|
22514
22530
|
});
|
22515
|
-
mS =
|
22531
|
+
mS = A((a2, e) => {
|
22516
22532
|
let t = q(a2, e);
|
22517
22533
|
return Pa(t == null ? void 0 : t.audioTrack)(a2);
|
22518
22534
|
});
|
22519
|
-
SS =
|
22535
|
+
SS = A((a2, e) => {
|
22520
22536
|
let t = ka(e)(a2);
|
22521
22537
|
return Pa(t == null ? void 0 : t.id)(a2);
|
22522
22538
|
});
|
22523
|
-
gS =
|
22539
|
+
gS = A((a2, e) => {
|
22524
22540
|
let t = jr(a2, e);
|
22525
22541
|
if (t) {
|
22526
22542
|
if (t.type !== "video") {
|
@@ -22530,32 +22546,32 @@ var init_dist = __esm({
|
|
22530
22546
|
return t.layer;
|
22531
22547
|
}
|
22532
22548
|
});
|
22533
|
-
ba = createSelector([
|
22549
|
+
ba = createSelector([At, Ee, qr], (a2, e, t) => {
|
22534
22550
|
if (t)
|
22535
22551
|
return a2.filter((i) => {
|
22536
22552
|
var r;
|
22537
22553
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22538
22554
|
});
|
22539
22555
|
});
|
22540
|
-
Ia = createSelector([
|
22556
|
+
Ia = createSelector([At, fa], (a2, e) => {
|
22541
22557
|
if (e)
|
22542
22558
|
return a2.filter((t) => {
|
22543
22559
|
var i, r;
|
22544
22560
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22545
22561
|
});
|
22546
22562
|
});
|
22547
|
-
Zo = createSelector(
|
22563
|
+
Zo = createSelector(At, (a2) => a2.filter((e) => {
|
22548
22564
|
var t;
|
22549
22565
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22550
22566
|
}));
|
22551
22567
|
en = createSelector([Ia, fa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22552
22568
|
tn = createSelector([ba, qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22553
22569
|
TS = createSelector(Zo, (a2) => a2.filter((e) => !e.read).length);
|
22554
|
-
fS =
|
22555
|
-
vS =
|
22556
|
-
MS =
|
22557
|
-
yS =
|
22558
|
-
|
22570
|
+
fS = A(ba);
|
22571
|
+
vS = A(Ia);
|
22572
|
+
MS = A(en);
|
22573
|
+
yS = A(tn);
|
22574
|
+
Ra = A(Qo);
|
22559
22575
|
DS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
|
22560
22576
|
var r;
|
22561
22577
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
@@ -22649,7 +22665,7 @@ var init_dist = __esm({
|
|
22649
22665
|
j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
|
22650
22666
|
sr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(sr || {});
|
22651
22667
|
lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
|
22652
|
-
|
22668
|
+
An = (a2) => a2.localPeer.id;
|
22653
22669
|
Hn = (a2) => a2.localPeer.audioTrack;
|
22654
22670
|
Cn = (a2) => a2.localPeer.videoTrack;
|
22655
22671
|
Ln = (a2, e) => e;
|
@@ -22657,59 +22673,59 @@ var init_dist = __esm({
|
|
22657
22673
|
wn = (a2) => a2.remoteTrackStats;
|
22658
22674
|
Ya = (a2) => a2.peerStats;
|
22659
22675
|
rs = (a2) => a2.localTrackStats;
|
22660
|
-
|
22661
|
-
Dn = createSelector(
|
22676
|
+
Re = createSelector([Ya, An], (a2, e) => a2[e]);
|
22677
|
+
Dn = createSelector(Re, (a2) => {
|
22662
22678
|
var e;
|
22663
22679
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22664
22680
|
});
|
22665
|
-
_n = createSelector(
|
22681
|
+
_n = createSelector(Re, (a2) => {
|
22666
22682
|
var e;
|
22667
22683
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22668
22684
|
});
|
22669
|
-
Nn = createSelector(
|
22685
|
+
Nn = createSelector(Re, (a2) => {
|
22670
22686
|
var e;
|
22671
22687
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22672
22688
|
});
|
22673
|
-
On = createSelector(
|
22689
|
+
On = createSelector(Re, (a2) => {
|
22674
22690
|
var e;
|
22675
22691
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22676
22692
|
});
|
22677
|
-
xn = createSelector(
|
22693
|
+
xn = createSelector(Re, (a2) => {
|
22678
22694
|
var e;
|
22679
22695
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22680
22696
|
});
|
22681
|
-
Un = createSelector(
|
22697
|
+
Un = createSelector(Re, (a2) => {
|
22682
22698
|
var e;
|
22683
22699
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22684
22700
|
});
|
22685
|
-
Bn = createSelector(
|
22701
|
+
Bn = createSelector(Re, (a2) => {
|
22686
22702
|
var e;
|
22687
22703
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22688
22704
|
});
|
22689
|
-
Vn = createSelector(
|
22705
|
+
Vn = createSelector(Re, (a2) => {
|
22690
22706
|
var e;
|
22691
22707
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22692
22708
|
});
|
22693
22709
|
Fn = createSelector([Ya, Ln], (a2, e) => e ? a2[e] : void 0);
|
22694
22710
|
Gn = createSelector([wn, za], (a2, e) => e ? a2[e] : void 0);
|
22695
22711
|
ss = createSelector([rs, za], (a2, e) => e ? a2[e] : void 0);
|
22696
|
-
Wn =
|
22697
|
-
$n =
|
22712
|
+
Wn = A(Fn);
|
22713
|
+
$n = A(Gn);
|
22698
22714
|
Kn = createSelector([rs, Hn], (a2, e) => {
|
22699
22715
|
var t;
|
22700
22716
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22701
22717
|
});
|
22702
|
-
qn =
|
22718
|
+
qn = A(createSelector(ss, (a2) => a2 == null ? void 0 : a2[0]));
|
22703
22719
|
jn = createSelector([rs, Cn], (a2, e) => {
|
22704
22720
|
var t;
|
22705
22721
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22706
22722
|
});
|
22707
|
-
Jn =
|
22723
|
+
Jn = A(createSelector(ss, (a2) => a2));
|
22708
22724
|
}
|
22709
22725
|
});
|
22710
22726
|
|
22711
22727
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22712
|
-
var import_react88, import_react_use15,
|
22728
|
+
var import_react88, import_react_use15, import_react_sdk41, import_react_icons34, getRecordingText, LiveStatus, RecordingStatus, RecordingPauseStatus, StartRecording2, StreamActions, StopRecordingInSheet;
|
22713
22729
|
var init_StreamActions = __esm({
|
22714
22730
|
"src/Prebuilt/components/Header/StreamActions.tsx"() {
|
22715
22731
|
"use strict";
|
@@ -22717,7 +22733,7 @@ var init_StreamActions = __esm({
|
|
22717
22733
|
import_react88 = __toESM(require("react"));
|
22718
22734
|
import_react_use15 = require("react-use");
|
22719
22735
|
init_dist();
|
22720
|
-
|
22736
|
+
import_react_sdk41 = require("@100mslive/react-sdk");
|
22721
22737
|
import_react_icons34 = require("@100mslive/react-icons");
|
22722
22738
|
init_src();
|
22723
22739
|
init_Sheet2();
|
@@ -22747,8 +22763,8 @@ var init_StreamActions = __esm({
|
|
22747
22763
|
};
|
22748
22764
|
LiveStatus = () => {
|
22749
22765
|
var _a7;
|
22750
|
-
const { isHLSRunning, isRTMPRunning } = (0,
|
22751
|
-
const hlsState = (0,
|
22766
|
+
const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
|
22767
|
+
const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
|
22752
22768
|
const isMobile = (0, import_react_use15.useMedia)(config.media.md);
|
22753
22769
|
const intervalRef = (0, import_react88.useRef)(null);
|
22754
22770
|
const { screenType } = useRoomLayoutConferencingScreen();
|
@@ -22794,8 +22810,8 @@ var init_StreamActions = __esm({
|
|
22794
22810
|
);
|
22795
22811
|
};
|
22796
22812
|
RecordingStatus = () => {
|
22797
|
-
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = (0,
|
22798
|
-
const permissions = (0,
|
22813
|
+
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = (0, import_react_sdk41.useRecordingStreaming)();
|
22814
|
+
const permissions = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectPermissions);
|
22799
22815
|
const isMobile = (0, import_react_use15.useMedia)(config.media.md);
|
22800
22816
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
22801
22817
|
// so no need to show this as it duplicates
|
@@ -22828,7 +22844,7 @@ var init_StreamActions = __esm({
|
|
22828
22844
|
);
|
22829
22845
|
};
|
22830
22846
|
RecordingPauseStatus = () => {
|
22831
|
-
const recording = (0,
|
22847
|
+
const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
|
22832
22848
|
if (recording.hls && recording.hls.state === Ls.PAUSED) {
|
22833
22849
|
return /* @__PURE__ */ import_react88.default.createElement(
|
22834
22850
|
Tooltip,
|
@@ -22855,11 +22871,11 @@ var init_StreamActions = __esm({
|
|
22855
22871
|
return null;
|
22856
22872
|
};
|
22857
22873
|
StartRecording2 = () => {
|
22858
|
-
const permissions = (0,
|
22874
|
+
const permissions = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectPermissions);
|
22859
22875
|
const [open, setOpen] = (0, import_react88.useState)(false);
|
22860
22876
|
const { startRecording, recordingStarted } = useRecordingHandler();
|
22861
|
-
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = (0,
|
22862
|
-
const hmsActions = (0,
|
22877
|
+
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = (0, import_react_sdk41.useRecordingStreaming)();
|
22878
|
+
const hmsActions = (0, import_react_sdk41.useHMSActions)();
|
22863
22879
|
if (!(permissions == null ? void 0 : permissions.browserRecording) || isHLSRunning) {
|
22864
22880
|
return null;
|
22865
22881
|
}
|
@@ -22903,10 +22919,10 @@ var init_StreamActions = __esm({
|
|
22903
22919
|
);
|
22904
22920
|
};
|
22905
22921
|
StreamActions = () => {
|
22906
|
-
const isConnected = (0,
|
22922
|
+
const isConnected = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectIsConnectedToRoom);
|
22907
22923
|
const isMobile = (0, import_react_use15.useMedia)(config.media.md);
|
22908
|
-
const roomState = (0,
|
22909
|
-
return /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, !isMobile && /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react88.default.createElement(RecordingPauseStatus, null), /* @__PURE__ */ import_react88.default.createElement(RecordingStatus, null), roomState !==
|
22924
|
+
const roomState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRoomState);
|
22925
|
+
return /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, !isMobile && /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react88.default.createElement(RecordingPauseStatus, null), /* @__PURE__ */ import_react88.default.createElement(RecordingStatus, null), roomState !== import_react_sdk41.HMSRoomState.Preview ? /* @__PURE__ */ import_react88.default.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ import_react88.default.createElement(StartRecording2, null) : null);
|
22910
22926
|
};
|
22911
22927
|
StopRecordingInSheet = ({
|
22912
22928
|
onStopRecording,
|
@@ -23045,14 +23061,14 @@ var init_ChangeNameContent = __esm({
|
|
23045
23061
|
});
|
23046
23062
|
|
23047
23063
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
|
23048
|
-
var import_react90, import_react_use16,
|
23064
|
+
var import_react90, import_react_use16, import_react_sdk42, ChangeNameModal;
|
23049
23065
|
var init_ChangeNameModal = __esm({
|
23050
23066
|
"src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx"() {
|
23051
23067
|
"use strict";
|
23052
23068
|
init_define_process_env();
|
23053
23069
|
import_react90 = __toESM(require("react"));
|
23054
23070
|
import_react_use16 = require("react-use");
|
23055
|
-
|
23071
|
+
import_react_sdk42 = require("@100mslive/react-sdk");
|
23056
23072
|
init_src();
|
23057
23073
|
init_Sheet2();
|
23058
23074
|
init_ToastManager();
|
@@ -23063,8 +23079,8 @@ var init_ChangeNameModal = __esm({
|
|
23063
23079
|
openParentSheet = void 0
|
23064
23080
|
}) => {
|
23065
23081
|
const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
|
23066
|
-
const hmsActions = (0,
|
23067
|
-
const localPeerName = (0,
|
23082
|
+
const hmsActions = (0, import_react_sdk42.useHMSActions)();
|
23083
|
+
const localPeerName = (0, import_react_sdk42.useHMSStore)(import_react_sdk42.selectLocalPeerName);
|
23068
23084
|
const [currentName, setCurrentName] = (0, import_react90.useState)(localPeerName);
|
23069
23085
|
const isMobile = (0, import_react_use16.useMedia)(config.media.md);
|
23070
23086
|
const changeName = () => __async(void 0, null, function* () {
|
@@ -23105,25 +23121,25 @@ var init_ChangeNameModal = __esm({
|
|
23105
23121
|
});
|
23106
23122
|
|
23107
23123
|
// src/Prebuilt/components/AppData/useSheet.ts
|
23108
|
-
var import_react91,
|
23124
|
+
var import_react91, import_react_sdk43, useIsSheetTypeOpen, useSheetToggle;
|
23109
23125
|
var init_useSheet = __esm({
|
23110
23126
|
"src/Prebuilt/components/AppData/useSheet.ts"() {
|
23111
23127
|
"use strict";
|
23112
23128
|
init_define_process_env();
|
23113
23129
|
import_react91 = require("react");
|
23114
|
-
|
23130
|
+
import_react_sdk43 = require("@100mslive/react-sdk");
|
23115
23131
|
init_constants();
|
23116
23132
|
useIsSheetTypeOpen = (sheetType) => {
|
23117
23133
|
if (!sheetType) {
|
23118
23134
|
throw Error("Pass one of the sheet options");
|
23119
23135
|
}
|
23120
|
-
return (0,
|
23136
|
+
return (0, import_react_sdk43.useHMSStore)((0, import_react_sdk43.selectAppData)(APP_DATA.sheet)) === sheetType;
|
23121
23137
|
};
|
23122
23138
|
useSheetToggle = (sheetType) => {
|
23123
|
-
const hmsActions = (0,
|
23124
|
-
const vanillaStore = (0,
|
23139
|
+
const hmsActions = (0, import_react_sdk43.useHMSActions)();
|
23140
|
+
const vanillaStore = (0, import_react_sdk43.useHMSVanillaStore)();
|
23125
23141
|
const toggleSheet = (0, import_react91.useCallback)(() => {
|
23126
|
-
const isOpen = vanillaStore.getState((0,
|
23142
|
+
const isOpen = vanillaStore.getState((0, import_react_sdk43.selectAppData)(APP_DATA.sheet)) === sheetType;
|
23127
23143
|
hmsActions.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
|
23128
23144
|
}, [vanillaStore, hmsActions, sheetType]);
|
23129
23145
|
return toggleSheet;
|
@@ -23132,17 +23148,17 @@ var init_useSheet = __esm({
|
|
23132
23148
|
});
|
23133
23149
|
|
23134
23150
|
// src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx
|
23135
|
-
var import_react92,
|
23151
|
+
var import_react92, import_react_sdk44, useUnreadPollQuizPresent;
|
23136
23152
|
var init_useUnreadPollQuizPresent = __esm({
|
23137
23153
|
"src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx"() {
|
23138
23154
|
"use strict";
|
23139
23155
|
init_define_process_env();
|
23140
23156
|
import_react92 = require("react");
|
23141
23157
|
init_dist();
|
23142
|
-
|
23158
|
+
import_react_sdk44 = require("@100mslive/react-sdk");
|
23143
23159
|
useUnreadPollQuizPresent = () => {
|
23144
|
-
const localPeerID = (0,
|
23145
|
-
const notification = (0,
|
23160
|
+
const localPeerID = (0, import_react_sdk44.useHMSStore)(Ee);
|
23161
|
+
const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
|
23146
23162
|
const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
|
23147
23163
|
(0, import_react92.useEffect)(() => {
|
23148
23164
|
if (!notification) {
|
@@ -23156,7 +23172,7 @@ var init_useUnreadPollQuizPresent = __esm({
|
|
23156
23172
|
});
|
23157
23173
|
|
23158
23174
|
// src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
|
23159
|
-
var import_react93, import_react_use17, import_ts_pattern6,
|
23175
|
+
var import_react93, import_react_use17, import_ts_pattern6, import_react_sdk45, import_react_icons36, MODALS2, MwebOptions;
|
23160
23176
|
var init_MwebOptions = __esm({
|
23161
23177
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx"() {
|
23162
23178
|
"use strict";
|
@@ -23164,7 +23180,7 @@ var init_MwebOptions = __esm({
|
|
23164
23180
|
import_react93 = __toESM(require("react"));
|
23165
23181
|
import_react_use17 = require("react-use");
|
23166
23182
|
import_ts_pattern6 = require("ts-pattern");
|
23167
|
-
|
23183
|
+
import_react_sdk45 = require("@100mslive/react-sdk");
|
23168
23184
|
import_react_icons36 = require("@100mslive/react-icons");
|
23169
23185
|
init_src();
|
23170
23186
|
init_Sheet2();
|
@@ -23204,10 +23220,10 @@ var init_MwebOptions = __esm({
|
|
23204
23220
|
elements,
|
23205
23221
|
screenType
|
23206
23222
|
}) => {
|
23207
|
-
const hmsActions = (0,
|
23208
|
-
const permissions = (0,
|
23209
|
-
const isConnected = (0,
|
23210
|
-
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = (0,
|
23223
|
+
const hmsActions = (0, import_react_sdk45.useHMSActions)();
|
23224
|
+
const permissions = (0, import_react_sdk45.useHMSStore)(import_react_sdk45.selectPermissions);
|
23225
|
+
const isConnected = (0, import_react_sdk45.useHMSStore)(import_react_sdk45.selectIsConnectedToRoom);
|
23226
|
+
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = (0, import_react_sdk45.useRecordingStreaming)();
|
23211
23227
|
const [openModals, setOpenModals] = (0, import_react93.useState)(/* @__PURE__ */ new Set());
|
23212
23228
|
const [openOptionsSheet, setOpenOptionsSheet] = (0, import_react93.useState)(false);
|
23213
23229
|
const [openSettingsSheet, setOpenSettingsSheet] = (0, import_react93.useState)(false);
|
@@ -23216,7 +23232,7 @@ var init_MwebOptions = __esm({
|
|
23216
23232
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
23217
23233
|
const { showPolls } = useShowPolls();
|
23218
23234
|
const togglePollView = usePollViewToggle();
|
23219
|
-
const peerCount = (0,
|
23235
|
+
const peerCount = (0, import_react_sdk45.useHMSStore)(import_react_sdk45.selectPeerCount);
|
23220
23236
|
const emojiCardRef = (0, import_react93.useRef)(null);
|
23221
23237
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
23222
23238
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
@@ -23225,10 +23241,10 @@ var init_MwebOptions = __esm({
|
|
23225
23241
|
const isMobileHLSStream = useMobileHLSStream();
|
23226
23242
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
23227
23243
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
23228
|
-
const isLocalVideoEnabled = (0,
|
23244
|
+
const isLocalVideoEnabled = (0, import_react_sdk45.useHMSStore)(import_react_sdk45.selectIsLocalVideoEnabled);
|
23229
23245
|
const { startRecording, isRecordingLoading } = useRecordingHandler();
|
23230
|
-
const isTranscriptionAllowed = (0,
|
23231
|
-
const isTranscriptionEnabled = (0,
|
23246
|
+
const isTranscriptionAllowed = (0, import_react_sdk45.useHMSStore)((0, import_react_sdk45.selectIsTranscriptionAllowedByMode)(import_react_sdk45.HMSTranscriptionMode.CAPTION));
|
23247
|
+
const isTranscriptionEnabled = (0, import_react_sdk45.useHMSStore)(import_react_sdk45.selectIsTranscriptionEnabled);
|
23232
23248
|
const [isCaptionEnabled] = useSetIsCaptionEnabled();
|
23233
23249
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
23234
23250
|
const updateState = (modalName, value) => {
|
@@ -23806,7 +23822,7 @@ var init_pdfFileOptions = __esm({
|
|
23806
23822
|
// src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx
|
23807
23823
|
function ShareScreenOptions() {
|
23808
23824
|
const [openModals, setOpenModals] = (0, import_react101.useState)(/* @__PURE__ */ new Set());
|
23809
|
-
const { amIScreenSharing } = (0,
|
23825
|
+
const { amIScreenSharing } = (0, import_react_sdk46.useScreenShare)();
|
23810
23826
|
const updateState = (modalName, value) => {
|
23811
23827
|
setOpenModals((modals) => {
|
23812
23828
|
const copy = new Set(modals);
|
@@ -23818,7 +23834,7 @@ function ShareScreenOptions() {
|
|
23818
23834
|
return copy;
|
23819
23835
|
});
|
23820
23836
|
};
|
23821
|
-
const { toggleScreenShare } = (0,
|
23837
|
+
const { toggleScreenShare } = (0, import_react_sdk46.useScreenShare)();
|
23822
23838
|
return /* @__PURE__ */ import_react101.default.createElement(import_react101.Fragment, null, /* @__PURE__ */ import_react101.default.createElement(
|
23823
23839
|
Dropdown.Root,
|
23824
23840
|
{
|
@@ -24010,13 +24026,13 @@ function ShareScreenOptions() {
|
|
24010
24026
|
)
|
24011
24027
|
), openModals.has(MODALS3.PDF_SHARE) && /* @__PURE__ */ import_react101.default.createElement(PDFFileOptions, { onOpenChange: (value) => updateState(MODALS3.PDF_SHARE, value) }));
|
24012
24028
|
}
|
24013
|
-
var import_react101,
|
24029
|
+
var import_react101, import_react_sdk46, import_react_icons40, MODALS3;
|
24014
24030
|
var init_shareScreenOptions = __esm({
|
24015
24031
|
"src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx"() {
|
24016
24032
|
"use strict";
|
24017
24033
|
init_define_process_env();
|
24018
24034
|
import_react101 = __toESM(require("react"));
|
24019
|
-
|
24035
|
+
import_react_sdk46 = require("@100mslive/react-sdk");
|
24020
24036
|
import_react_icons40 = require("@100mslive/react-icons");
|
24021
24037
|
init_pdf_share();
|
24022
24038
|
init_screen_share();
|
@@ -24032,13 +24048,13 @@ var init_shareScreenOptions = __esm({
|
|
24032
24048
|
});
|
24033
24049
|
|
24034
24050
|
// src/Prebuilt/components/ScreenShareToggle.jsx
|
24035
|
-
var import_react102,
|
24051
|
+
var import_react102, import_react_sdk47, import_react_icons41, ScreenshareToggle;
|
24036
24052
|
var init_ScreenShareToggle = __esm({
|
24037
24053
|
"src/Prebuilt/components/ScreenShareToggle.jsx"() {
|
24038
24054
|
"use strict";
|
24039
24055
|
init_define_process_env();
|
24040
24056
|
import_react102 = __toESM(require("react"));
|
24041
|
-
|
24057
|
+
import_react_sdk47 = require("@100mslive/react-sdk");
|
24042
24058
|
import_react_icons41 = require("@100mslive/react-icons");
|
24043
24059
|
init_shareScreenOptions();
|
24044
24060
|
init_ToastManager();
|
@@ -24049,20 +24065,20 @@ var init_ScreenShareToggle = __esm({
|
|
24049
24065
|
init_utils2();
|
24050
24066
|
init_constants();
|
24051
24067
|
ScreenshareToggle = ({ css: css2 = {} }) => {
|
24052
|
-
const isAllowedToPublish = (0,
|
24068
|
+
const isAllowedToPublish = (0, import_react_sdk47.useHMSStore)(import_react_sdk47.selectIsAllowedToPublish);
|
24053
24069
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
24054
24070
|
const {
|
24055
24071
|
amIScreenSharing,
|
24056
24072
|
screenShareVideoTrackId: video,
|
24057
24073
|
toggleScreenShare
|
24058
|
-
} = (0,
|
24074
|
+
} = (0, import_react_sdk47.useScreenShare)((error) => {
|
24059
24075
|
ToastManager.addToast({
|
24060
24076
|
title: error.message,
|
24061
24077
|
variant: "error",
|
24062
24078
|
duration: 2e3
|
24063
24079
|
});
|
24064
24080
|
});
|
24065
|
-
const { requestPermission } = (0,
|
24081
|
+
const { requestPermission } = (0, import_react_sdk47.useAwayNotifications)();
|
24066
24082
|
const isVideoScreenshare = amIScreenSharing && !!video;
|
24067
24083
|
if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
|
24068
24084
|
return null;
|
@@ -24087,14 +24103,14 @@ var init_ScreenShareToggle = __esm({
|
|
24087
24103
|
});
|
24088
24104
|
|
24089
24105
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
24090
|
-
var import_react103, import_hmsvbplugin2,
|
24106
|
+
var import_react103, import_hmsvbplugin2, import_react_sdk48, import_react_icons42, VBToggle;
|
24091
24107
|
var init_VBToggle = __esm({
|
24092
24108
|
"src/Prebuilt/components/VirtualBackground/VBToggle.tsx"() {
|
24093
24109
|
"use strict";
|
24094
24110
|
init_define_process_env();
|
24095
24111
|
import_react103 = __toESM(require("react"));
|
24096
24112
|
import_hmsvbplugin2 = require("@100mslive/hms-virtual-background/hmsvbplugin");
|
24097
|
-
|
24113
|
+
import_react_sdk48 = require("@100mslive/react-sdk");
|
24098
24114
|
import_react_icons42 = require("@100mslive/react-icons");
|
24099
24115
|
init_Loading2();
|
24100
24116
|
init_Tooltip2();
|
@@ -24105,12 +24121,12 @@ var init_VBToggle = __esm({
|
|
24105
24121
|
VBToggle = () => {
|
24106
24122
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
24107
24123
|
const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
|
24108
|
-
const isVideoOn = (0,
|
24109
|
-
const isVBEnabled = (0,
|
24110
|
-
const isEffectsEnabled = (0,
|
24111
|
-
const loadingEffects = (0,
|
24112
|
-
const hmsActions = (0,
|
24113
|
-
const { toggleVideo } = (0,
|
24124
|
+
const isVideoOn = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectIsLocalVideoEnabled);
|
24125
|
+
const isVBEnabled = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectIsVBEnabled);
|
24126
|
+
const isEffectsEnabled = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectIsEffectsEnabled);
|
24127
|
+
const loadingEffects = (0, import_react_sdk48.useHMSStore)((0, import_react_sdk48.selectAppData)(APP_DATA.loadingEffects));
|
24128
|
+
const hmsActions = (0, import_react_sdk48.useHMSActions)();
|
24129
|
+
const { toggleVideo } = (0, import_react_sdk48.useAVToggle)();
|
24114
24130
|
(0, import_react103.useEffect)(() => {
|
24115
24131
|
var _a7;
|
24116
24132
|
if (!toggleVideo) {
|
@@ -24127,20 +24143,20 @@ var init_VBToggle = __esm({
|
|
24127
24143
|
});
|
24128
24144
|
|
24129
24145
|
// src/Prebuilt/components/Footer/ChatToggle.tsx
|
24130
|
-
var import_react104,
|
24146
|
+
var import_react104, import_react_sdk49, import_react_icons43, ChatToggle;
|
24131
24147
|
var init_ChatToggle = __esm({
|
24132
24148
|
"src/Prebuilt/components/Footer/ChatToggle.tsx"() {
|
24133
24149
|
"use strict";
|
24134
24150
|
init_define_process_env();
|
24135
24151
|
import_react104 = __toESM(require("react"));
|
24136
|
-
|
24152
|
+
import_react_sdk49 = require("@100mslive/react-sdk");
|
24137
24153
|
import_react_icons43 = require("@100mslive/react-icons");
|
24138
24154
|
init_src();
|
24139
24155
|
init_IconButton3();
|
24140
24156
|
init_useSidepane();
|
24141
24157
|
init_constants();
|
24142
24158
|
ChatToggle = ({ onClick }) => {
|
24143
|
-
const countUnreadMessages = (0,
|
24159
|
+
const countUnreadMessages = (0, import_react_sdk49.useHMSStore)(import_react_sdk49.selectUnreadHMSMessagesCount);
|
24144
24160
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
24145
24161
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
24146
24162
|
return /* @__PURE__ */ import_react104.default.createElement(
|
@@ -24215,13 +24231,13 @@ var init_connectionQualityUtils = __esm({
|
|
24215
24231
|
});
|
24216
24232
|
|
24217
24233
|
// src/Prebuilt/components/Connection/ConnectionIndicator.tsx
|
24218
|
-
var import_react105,
|
24234
|
+
var import_react105, import_react_sdk50, import_react_icons44, Wrapper, ConnectionIndicator;
|
24219
24235
|
var init_ConnectionIndicator = __esm({
|
24220
24236
|
"src/Prebuilt/components/Connection/ConnectionIndicator.tsx"() {
|
24221
24237
|
"use strict";
|
24222
24238
|
init_define_process_env();
|
24223
24239
|
import_react105 = __toESM(require("react"));
|
24224
|
-
|
24240
|
+
import_react_sdk50 = require("@100mslive/react-sdk");
|
24225
24241
|
import_react_icons44 = require("@100mslive/react-icons");
|
24226
24242
|
init_src();
|
24227
24243
|
init_connectionQualityUtils();
|
@@ -24247,11 +24263,11 @@ var init_ConnectionIndicator = __esm({
|
|
24247
24263
|
hideBg = false
|
24248
24264
|
}) => {
|
24249
24265
|
var _a7;
|
24250
|
-
const downlinkQuality = (_a7 = (0,
|
24251
|
-
const peerType = (0,
|
24266
|
+
const downlinkQuality = (_a7 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a7.downlinkQuality;
|
24267
|
+
const peerType = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectPeerTypeByID)(peerId));
|
24252
24268
|
const { theme: theme2 } = useTheme();
|
24253
24269
|
const defaultColor = theme2.colors.on_surface_low;
|
24254
|
-
if (downlinkQuality === -1 || downlinkQuality === void 0 || peerType ===
|
24270
|
+
if (downlinkQuality === -1 || downlinkQuality === void 0 || peerType === import_react_sdk50.HMSPeerType.SIP) {
|
24255
24271
|
return null;
|
24256
24272
|
}
|
24257
24273
|
if (downlinkQuality === 0) {
|
@@ -24309,22 +24325,22 @@ var init_ConnectionIndicator = __esm({
|
|
24309
24325
|
});
|
24310
24326
|
|
24311
24327
|
// src/Prebuilt/components/RemoveParticipant.tsx
|
24312
|
-
var import_react106,
|
24328
|
+
var import_react106, import_react_sdk51, import_react_icons45, RemoveParticipant;
|
24313
24329
|
var init_RemoveParticipant = __esm({
|
24314
24330
|
"src/Prebuilt/components/RemoveParticipant.tsx"() {
|
24315
24331
|
"use strict";
|
24316
24332
|
init_define_process_env();
|
24317
24333
|
import_react106 = __toESM(require("react"));
|
24318
|
-
|
24334
|
+
import_react_sdk51 = require("@100mslive/react-sdk");
|
24319
24335
|
import_react_icons45 = require("@100mslive/react-icons");
|
24320
24336
|
init_ToastManager();
|
24321
24337
|
init_Dropdown2();
|
24322
24338
|
init_Text2();
|
24323
24339
|
RemoveParticipant = ({ peerId }) => {
|
24324
24340
|
var _a7;
|
24325
|
-
const canRemoveOthers = (_a7 = (0,
|
24326
|
-
const localPeerId = (0,
|
24327
|
-
const actions = (0,
|
24341
|
+
const canRemoveOthers = (_a7 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a7.removeOthers;
|
24342
|
+
const localPeerId = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerID);
|
24343
|
+
const actions = (0, import_react_sdk51.useHMSActions)();
|
24328
24344
|
if (peerId === localPeerId || !canRemoveOthers) {
|
24329
24345
|
return null;
|
24330
24346
|
}
|
@@ -24349,14 +24365,14 @@ var init_RemoveParticipant = __esm({
|
|
24349
24365
|
});
|
24350
24366
|
|
24351
24367
|
// src/Prebuilt/components/Footer/RoleOptions.tsx
|
24352
|
-
var import_react107, import_ts_pattern7,
|
24368
|
+
var import_react107, import_ts_pattern7, import_react_sdk52, import_react_icons46, dropdownItemCSS, optionTextCSS, DropdownWrapper, RoleOptions;
|
24353
24369
|
var init_RoleOptions = __esm({
|
24354
24370
|
"src/Prebuilt/components/Footer/RoleOptions.tsx"() {
|
24355
24371
|
"use strict";
|
24356
24372
|
init_define_process_env();
|
24357
24373
|
import_react107 = __toESM(require("react"));
|
24358
24374
|
import_ts_pattern7 = require("ts-pattern");
|
24359
|
-
|
24375
|
+
import_react_sdk52 = require("@100mslive/react-sdk");
|
24360
24376
|
import_react_icons46 = require("@100mslive/react-icons");
|
24361
24377
|
init_Dropdown2();
|
24362
24378
|
init_Layout();
|
@@ -24407,13 +24423,13 @@ var init_RoleOptions = __esm({
|
|
24407
24423
|
));
|
24408
24424
|
};
|
24409
24425
|
RoleOptions = ({ roleName, peerList }) => {
|
24410
|
-
const permissions = (0,
|
24411
|
-
const hmsActions = (0,
|
24426
|
+
const permissions = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPermissions);
|
24427
|
+
const hmsActions = (0, import_react_sdk52.useHMSActions)();
|
24412
24428
|
const { elements } = useRoomLayoutConferencingScreen();
|
24413
24429
|
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
24414
24430
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
24415
|
-
const role = (0,
|
24416
|
-
const tracks = (0,
|
24431
|
+
const role = (0, import_react_sdk52.useHMSStore)((0, import_react_sdk52.selectRoleByRoleName)(roleName));
|
24432
|
+
const tracks = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectTracksMap);
|
24417
24433
|
if (!role) {
|
24418
24434
|
return null;
|
24419
24435
|
}
|
@@ -24490,17 +24506,17 @@ var init_RoleOptions = __esm({
|
|
24490
24506
|
});
|
24491
24507
|
|
24492
24508
|
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
24493
|
-
var import_ts_pattern8,
|
24509
|
+
var import_ts_pattern8, import_react_sdk53, useGroupOnStageActions;
|
24494
24510
|
var init_useGroupOnStageActions = __esm({
|
24495
24511
|
"src/Prebuilt/components/hooks/useGroupOnStageActions.tsx"() {
|
24496
24512
|
"use strict";
|
24497
24513
|
init_define_process_env();
|
24498
24514
|
import_ts_pattern8 = require("ts-pattern");
|
24499
|
-
|
24515
|
+
import_react_sdk53 = require("@100mslive/react-sdk");
|
24500
24516
|
init_useRoomLayoutScreen();
|
24501
24517
|
useGroupOnStageActions = ({ peers }) => {
|
24502
24518
|
var _a7;
|
24503
|
-
const hmsActions = (0,
|
24519
|
+
const hmsActions = (0, import_react_sdk53.useHMSActions)();
|
24504
24520
|
const { elements } = useRoomLayoutConferencingScreen();
|
24505
24521
|
const {
|
24506
24522
|
bring_to_stage_label,
|
@@ -24509,7 +24525,7 @@ var init_useGroupOnStageActions = __esm({
|
|
24509
24525
|
off_stage_roles = [],
|
24510
24526
|
skip_preview_for_role_change = false
|
24511
24527
|
} = elements.on_stage_exp || {};
|
24512
|
-
const canChangeRole = (_a7 = (0,
|
24528
|
+
const canChangeRole = (_a7 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a7.changeRole;
|
24513
24529
|
const offStageRolePeers = peers.filter(
|
24514
24530
|
(peer) => (0, import_ts_pattern8.match)({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
|
24515
24531
|
{
|
@@ -24551,7 +24567,7 @@ function itemKey(index, data3) {
|
|
24551
24567
|
var _a7;
|
24552
24568
|
return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
|
24553
24569
|
}
|
24554
|
-
var import_react108, import_react_use19, import_react_window2,
|
24570
|
+
var import_react108, import_react_use19, import_react_window2, import_react_sdk54, import_react_icons47, ROW_HEIGHT, ITER_TIMER, VirtualizedParticipantItem, RoleAccordion;
|
24555
24571
|
var init_RoleAccordion = __esm({
|
24556
24572
|
"src/Prebuilt/components/Footer/RoleAccordion.tsx"() {
|
24557
24573
|
"use strict";
|
@@ -24559,7 +24575,7 @@ var init_RoleAccordion = __esm({
|
|
24559
24575
|
import_react108 = __toESM(require("react"));
|
24560
24576
|
import_react_use19 = require("react-use");
|
24561
24577
|
import_react_window2 = require("react-window");
|
24562
|
-
|
24578
|
+
import_react_sdk54 = require("@100mslive/react-sdk");
|
24563
24579
|
import_react_icons47 = require("@100mslive/react-icons");
|
24564
24580
|
init_Accordion2();
|
24565
24581
|
init_Button2();
|
@@ -24596,8 +24612,8 @@ var init_RoleAccordion = __esm({
|
|
24596
24612
|
onActive
|
24597
24613
|
}) => {
|
24598
24614
|
const [ref, { width }] = (0, import_react_use19.useMeasure)();
|
24599
|
-
const isLargeRoom = (0,
|
24600
|
-
const { peers, total, loadPeers } = (0,
|
24615
|
+
const isLargeRoom = (0, import_react_sdk54.useHMSStore)(import_react_sdk54.selectIsLargeRoom);
|
24616
|
+
const { peers, total, loadPeers } = (0, import_react_sdk54.usePaginatedParticipants)({ role: roleName, limit: 10 });
|
24601
24617
|
const isOffStageRole = roleName && offStageRoles.includes(roleName);
|
24602
24618
|
let peersInAccordion = peerList;
|
24603
24619
|
if (isOffStageRole && isLargeRoom) {
|
@@ -24698,19 +24714,19 @@ var init_RoleAccordion = __esm({
|
|
24698
24714
|
});
|
24699
24715
|
|
24700
24716
|
// src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
|
24701
|
-
var import_react109,
|
24717
|
+
var import_react109, import_react_sdk55, useSidepaneResetOnLayoutUpdate;
|
24702
24718
|
var init_useSidepaneResetOnLayoutUpdate = __esm({
|
24703
24719
|
"src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx"() {
|
24704
24720
|
"use strict";
|
24705
24721
|
init_define_process_env();
|
24706
24722
|
import_react109 = require("react");
|
24707
|
-
|
24723
|
+
import_react_sdk55 = require("@100mslive/react-sdk");
|
24708
24724
|
init_useRoomLayoutScreen();
|
24709
24725
|
init_useSidepane();
|
24710
24726
|
init_constants();
|
24711
24727
|
useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
24712
24728
|
const { elements } = useRoomLayoutConferencingScreen();
|
24713
|
-
const sidepane = (0,
|
24729
|
+
const sidepane = (0, import_react_sdk55.useHMSStore)((0, import_react_sdk55.selectAppData)(APP_DATA.sidePane));
|
24714
24730
|
const resetSidePane = useSidepaneReset();
|
24715
24731
|
(0, import_react109.useEffect)(() => {
|
24716
24732
|
if (sidepane === sidepaneOption && !(elements == null ? void 0 : elements[layoutKey])) {
|
@@ -24722,17 +24738,17 @@ var init_useSidepaneResetOnLayoutUpdate = __esm({
|
|
24722
24738
|
});
|
24723
24739
|
|
24724
24740
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
24725
|
-
var import_react110,
|
24741
|
+
var import_react110, import_react_sdk56, usePeerOnStageActions;
|
24726
24742
|
var init_usePeerOnStageActions = __esm({
|
24727
24743
|
"src/Prebuilt/components/hooks/usePeerOnStageActions.tsx"() {
|
24728
24744
|
"use strict";
|
24729
24745
|
init_define_process_env();
|
24730
24746
|
import_react110 = require("react");
|
24731
|
-
|
24747
|
+
import_react_sdk56 = require("@100mslive/react-sdk");
|
24732
24748
|
init_useRoomLayoutScreen();
|
24733
24749
|
usePeerOnStageActions = ({ peerId, role }) => {
|
24734
24750
|
var _a7, _b7;
|
24735
|
-
const hmsActions = (0,
|
24751
|
+
const hmsActions = (0, import_react_sdk56.useHMSActions)();
|
24736
24752
|
const { elements } = useRoomLayoutConferencingScreen();
|
24737
24753
|
const {
|
24738
24754
|
bring_to_stage_label,
|
@@ -24742,9 +24758,9 @@ var init_usePeerOnStageActions = __esm({
|
|
24742
24758
|
skip_preview_for_role_change = false
|
24743
24759
|
} = elements.on_stage_exp || {};
|
24744
24760
|
const isInStage = role === on_stage_role;
|
24745
|
-
const canChangeRole = (_a7 = (0,
|
24761
|
+
const canChangeRole = (_a7 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a7.changeRole;
|
24746
24762
|
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
|
24747
|
-
const prevRole = (_b7 = (0,
|
24763
|
+
const prevRole = (_b7 = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPeerMetadata)(peerId))) == null ? void 0 : _b7.prevRole;
|
24748
24764
|
const [open, setOpen] = (0, import_react110.useState)(false);
|
24749
24765
|
const lowerPeerHand = () => __async(void 0, null, function* () {
|
24750
24766
|
yield hmsActions.lowerRemotePeerHand(peerId);
|
@@ -24775,14 +24791,14 @@ var init_usePeerOnStageActions = __esm({
|
|
24775
24791
|
});
|
24776
24792
|
|
24777
24793
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
24778
|
-
var import_react111, import_react_use20,
|
24794
|
+
var import_react111, import_react_use20, import_react_sdk57, import_react_icons48, ParticipantList, ParticipantCount, Participant, VirtualizedParticipants, ParticipantActions, quickActionStyle, HandRaisedAccordionParticipantActions, ParticipantMoreActions, ParticipantSearch;
|
24779
24795
|
var init_ParticipantList = __esm({
|
24780
24796
|
"src/Prebuilt/components/Footer/ParticipantList.tsx"() {
|
24781
24797
|
"use strict";
|
24782
24798
|
init_define_process_env();
|
24783
24799
|
import_react111 = __toESM(require("react"));
|
24784
24800
|
import_react_use20 = require("react-use");
|
24785
|
-
|
24801
|
+
import_react_sdk57 = require("@100mslive/react-sdk");
|
24786
24802
|
import_react_icons48 = require("@100mslive/react-icons");
|
24787
24803
|
init_src();
|
24788
24804
|
init_IconButton3();
|
@@ -24803,9 +24819,9 @@ var init_ParticipantList = __esm({
|
|
24803
24819
|
}) => {
|
24804
24820
|
const [filter, setFilter] = (0, import_react111.useState)();
|
24805
24821
|
const { participants, isConnected, peerCount } = useParticipants(filter);
|
24806
|
-
const isLargeRoom = (0,
|
24822
|
+
const isLargeRoom = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectIsLargeRoom);
|
24807
24823
|
const peersOrderedByRoles = {};
|
24808
|
-
const handRaisedPeers = (0,
|
24824
|
+
const handRaisedPeers = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectHandRaisedPeers);
|
24809
24825
|
participants.forEach((participant) => {
|
24810
24826
|
if (participant.roleName) {
|
24811
24827
|
if (peersOrderedByRoles[participant.roleName] === void 0) {
|
@@ -24869,7 +24885,7 @@ var init_ParticipantList = __esm({
|
|
24869
24885
|
));
|
24870
24886
|
};
|
24871
24887
|
ParticipantCount = () => {
|
24872
|
-
const peerCount = (0,
|
24888
|
+
const peerCount = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPeerCount);
|
24873
24889
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
24874
24890
|
const isPeerListOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
24875
24891
|
if (peerCount === 0) {
|
@@ -24901,7 +24917,7 @@ var init_ParticipantList = __esm({
|
|
24901
24917
|
isHandRaisedAccordion,
|
24902
24918
|
style
|
24903
24919
|
}) => {
|
24904
|
-
const localPeerId = (0,
|
24920
|
+
const localPeerId = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeerID);
|
24905
24921
|
return /* @__PURE__ */ import_react111.default.createElement(
|
24906
24922
|
Flex,
|
24907
24923
|
{
|
@@ -24998,13 +25014,13 @@ var init_ParticipantList = __esm({
|
|
24998
25014
|
isHandRaisedAccordion
|
24999
25015
|
}) => {
|
25000
25016
|
var _a7, _b7;
|
25001
|
-
const isHandRaised = (0,
|
25002
|
-
const canChangeRole = (_a7 = (0,
|
25003
|
-
const canRemoveOthers = (_b7 = (0,
|
25017
|
+
const isHandRaised = (0, import_react_sdk57.useHMSStore)((0, import_react_sdk57.selectHasPeerHandRaised)(peerId));
|
25018
|
+
const canChangeRole = (_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole;
|
25019
|
+
const canRemoveOthers = (_b7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _b7.removeOthers;
|
25004
25020
|
const { elements } = useRoomLayoutConferencingScreen();
|
25005
25021
|
const { on_stage_exp } = elements || {};
|
25006
25022
|
const shouldShowMoreActions = on_stage_exp && canChangeRole || canRemoveOthers;
|
25007
|
-
const isAudioMuted = !(0,
|
25023
|
+
const isAudioMuted = !(0, import_react_sdk57.useHMSStore)((0, import_react_sdk57.selectIsPeerAudioEnabled)(peerId));
|
25008
25024
|
return /* @__PURE__ */ import_react111.default.createElement(
|
25009
25025
|
Flex,
|
25010
25026
|
{
|
@@ -25014,7 +25030,7 @@ var init_ParticipantList = __esm({
|
|
25014
25030
|
gap: "$8"
|
25015
25031
|
}
|
25016
25032
|
},
|
25017
|
-
isHandRaisedAccordion ? /* @__PURE__ */ import_react111.default.createElement(HandRaisedAccordionParticipantActions, { peerId, role }) : /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(ConnectionIndicator, { peerId }), peerType ===
|
25033
|
+
isHandRaisedAccordion ? /* @__PURE__ */ import_react111.default.createElement(HandRaisedAccordionParticipantActions, { peerId, role }) : /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(ConnectionIndicator, { peerId }), peerType === import_react_sdk57.HMSPeerType.SIP && /* @__PURE__ */ import_react111.default.createElement(
|
25018
25034
|
Flex,
|
25019
25035
|
{
|
25020
25036
|
align: "center",
|
@@ -25064,9 +25080,9 @@ var init_ParticipantList = __esm({
|
|
25064
25080
|
isInStage,
|
25065
25081
|
shouldShowStageRoleChange
|
25066
25082
|
} = usePeerOnStageActions({ peerId, role });
|
25067
|
-
const canChangeRole = !!((_a7 = (0,
|
25083
|
+
const canChangeRole = !!((_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole);
|
25068
25084
|
const [openRoleChangeModal, setOpenRoleChangeModal] = (0, import_react111.useState)(false);
|
25069
|
-
const roles = (0,
|
25085
|
+
const roles = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectAvailableRoleNames);
|
25070
25086
|
return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ import_react111.default.createElement(
|
25071
25087
|
Dropdown.Trigger,
|
25072
25088
|
{
|
@@ -25179,20 +25195,20 @@ var init_PollsToggle = __esm({
|
|
25179
25195
|
});
|
25180
25196
|
|
25181
25197
|
// src/Prebuilt/components/Footer/WhiteboardToggle.tsx
|
25182
|
-
var import_react113,
|
25198
|
+
var import_react113, import_react_sdk58, import_react_icons50, WhiteboardToggle;
|
25183
25199
|
var init_WhiteboardToggle = __esm({
|
25184
25200
|
"src/Prebuilt/components/Footer/WhiteboardToggle.tsx"() {
|
25185
25201
|
"use strict";
|
25186
25202
|
init_define_process_env();
|
25187
25203
|
import_react113 = __toESM(require("react"));
|
25188
|
-
|
25204
|
+
import_react_sdk58 = require("@100mslive/react-sdk");
|
25189
25205
|
import_react_icons50 = require("@100mslive/react-icons");
|
25190
25206
|
init_src();
|
25191
25207
|
init_IconButton3();
|
25192
25208
|
init_ToastManager();
|
25193
25209
|
WhiteboardToggle = () => {
|
25194
|
-
const { toggle, open, isOwner } = (0,
|
25195
|
-
const peerSharing = (0,
|
25210
|
+
const { toggle, open, isOwner } = (0, import_react_sdk58.useWhiteboard)();
|
25211
|
+
const peerSharing = (0, import_react_sdk58.useHMSStore)(import_react_sdk58.selectPeerScreenSharing);
|
25196
25212
|
const disabled = !!peerSharing || open && !isOwner;
|
25197
25213
|
if (!toggle) {
|
25198
25214
|
return null;
|
@@ -25317,10 +25333,10 @@ var init_Footer3 = __esm({
|
|
25317
25333
|
|
25318
25334
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
25319
25335
|
function HLSFailureModal() {
|
25320
|
-
const hlsError = (0,
|
25336
|
+
const hlsError = (0, import_react_sdk59.useHMSStore)(import_react_sdk59.selectHLSState).error || false;
|
25321
25337
|
const [openModal, setOpenModal] = (0, import_react115.useState)(!!hlsError);
|
25322
|
-
const hmsActions = (0,
|
25323
|
-
const { isRTMPRunning } = (0,
|
25338
|
+
const hmsActions = (0, import_react_sdk59.useHMSActions)();
|
25339
|
+
const { isRTMPRunning } = (0, import_react_sdk59.useRecordingStreaming)();
|
25324
25340
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
25325
25341
|
const startHLS = (0, import_react115.useCallback)(() => __async(this, null, function* () {
|
25326
25342
|
try {
|
@@ -25359,13 +25375,13 @@ function HLSFailureModal() {
|
|
25359
25375
|
), /* @__PURE__ */ import_react115.default.createElement(Text, { variant: "sm", css: { mb: "$10", color: "$on_surface_medium" } }, "Something went wrong and your live broadcast failed. Please try again."), /* @__PURE__ */ import_react115.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react115.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setOpenModal(false) }, "Dismiss"), /* @__PURE__ */ import_react115.default.createElement(Button, { css: { w: "100%" }, onClick: startHLS }, "Go Live"))))
|
25360
25376
|
) : null;
|
25361
25377
|
}
|
25362
|
-
var import_react115,
|
25378
|
+
var import_react115, import_react_sdk59;
|
25363
25379
|
var init_HLSFailureModal = __esm({
|
25364
25380
|
"src/Prebuilt/components/Notifications/HLSFailureModal.tsx"() {
|
25365
25381
|
"use strict";
|
25366
25382
|
init_define_process_env();
|
25367
25383
|
import_react115 = __toESM(require("react"));
|
25368
|
-
|
25384
|
+
import_react_sdk59 = require("@100mslive/react-sdk");
|
25369
25385
|
init_Button2();
|
25370
25386
|
init_Layout();
|
25371
25387
|
init_Modal();
|
@@ -25376,13 +25392,13 @@ var init_HLSFailureModal = __esm({
|
|
25376
25392
|
});
|
25377
25393
|
|
25378
25394
|
// src/Prebuilt/components/Streaming/Common.jsx
|
25379
|
-
var import_react116,
|
25395
|
+
var import_react116, import_react_sdk60, import_react_icons51, ContentHeader, Container3, ErrorText;
|
25380
25396
|
var init_Common = __esm({
|
25381
25397
|
"src/Prebuilt/components/Streaming/Common.jsx"() {
|
25382
25398
|
"use strict";
|
25383
25399
|
init_define_process_env();
|
25384
25400
|
import_react116 = __toESM(require("react"));
|
25385
|
-
|
25401
|
+
import_react_sdk60 = require("@100mslive/react-sdk");
|
25386
25402
|
import_react_icons51 = require("@100mslive/react-icons");
|
25387
25403
|
init_src();
|
25388
25404
|
ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
@@ -25527,13 +25543,13 @@ function InteractionSelectionCard({
|
|
25527
25543
|
/* @__PURE__ */ import_react118.default.createElement(Text, { variant: "sub1", css: { ml: "$md" } }, title)
|
25528
25544
|
);
|
25529
25545
|
}
|
25530
|
-
var import_react118,
|
25546
|
+
var import_react118, import_react_sdk61, import_react_icons52, PollsQuizMenu, AddMenu, PrevMenu, InteractionCard;
|
25531
25547
|
var init_PollsQuizMenu = __esm({
|
25532
25548
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx"() {
|
25533
25549
|
"use strict";
|
25534
25550
|
init_define_process_env();
|
25535
25551
|
import_react118 = __toESM(require("react"));
|
25536
|
-
|
25552
|
+
import_react_sdk61 = require("@100mslive/react-sdk");
|
25537
25553
|
import_react_icons52 = require("@100mslive/react-icons");
|
25538
25554
|
init_src();
|
25539
25555
|
init_Common();
|
@@ -25544,13 +25560,13 @@ var init_PollsQuizMenu = __esm({
|
|
25544
25560
|
init_constants();
|
25545
25561
|
PollsQuizMenu = () => {
|
25546
25562
|
const togglePollView = usePollViewToggle();
|
25547
|
-
const permissions = (0,
|
25563
|
+
const permissions = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPermissions);
|
25548
25564
|
return /* @__PURE__ */ import_react118.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react118.default.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ import_react118.default.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ import_react118.default.createElement(AddMenu, null), /* @__PURE__ */ import_react118.default.createElement(PrevMenu, null)));
|
25549
25565
|
};
|
25550
25566
|
AddMenu = () => {
|
25551
|
-
const actions = (0,
|
25567
|
+
const actions = (0, import_react_sdk61.useHMSActions)();
|
25552
25568
|
const [title, setTitle] = (0, import_react118.useState)("");
|
25553
|
-
const localPeerRoleName = (0,
|
25569
|
+
const localPeerRoleName = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectLocalPeerRoleName);
|
25554
25570
|
const [hideVoteCount, setHideVoteCount] = (0, import_react118.useState)(false);
|
25555
25571
|
const [error, setError] = (0, import_react118.useState)();
|
25556
25572
|
const [titleError, setTitleError] = (0, import_react118.useState)("");
|
@@ -25631,8 +25647,8 @@ var init_PollsQuizMenu = __esm({
|
|
25631
25647
|
), /* @__PURE__ */ import_react118.default.createElement(ErrorText, { error: error || titleError })));
|
25632
25648
|
};
|
25633
25649
|
PrevMenu = () => {
|
25634
|
-
const hmsActions = (0,
|
25635
|
-
const polls = (0,
|
25650
|
+
const hmsActions = (0, import_react_sdk61.useHMSActions)();
|
25651
|
+
const polls = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPolls);
|
25636
25652
|
const sortedPolls = (0, import_react118.useMemo)(
|
25637
25653
|
() => {
|
25638
25654
|
var _a7;
|
@@ -25643,7 +25659,7 @@ var init_PollsQuizMenu = __esm({
|
|
25643
25659
|
},
|
25644
25660
|
[polls]
|
25645
25661
|
);
|
25646
|
-
const permissions = (0,
|
25662
|
+
const permissions = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPermissions);
|
25647
25663
|
(0, import_react118.useEffect)(() => {
|
25648
25664
|
const updatePolls = () => __async(void 0, null, function* () {
|
25649
25665
|
yield hmsActions.interactivityCenter.getPolls();
|
@@ -26285,11 +26301,11 @@ var init_SavedQuestion = __esm({
|
|
26285
26301
|
// src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
|
26286
26302
|
function CreateQuestions() {
|
26287
26303
|
var _a7, _b7, _c, _d;
|
26288
|
-
const actions = (0,
|
26289
|
-
const { isHLSRunning } = (0,
|
26304
|
+
const actions = (0, import_react_sdk62.useHMSActions)();
|
26305
|
+
const { isHLSRunning } = (0, import_react_sdk62.useRecordingStreaming)();
|
26290
26306
|
const togglePollView = usePollViewToggle();
|
26291
26307
|
const { pollInView: id, setPollView } = usePollViewState();
|
26292
|
-
const interaction = (0,
|
26308
|
+
const interaction = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectPollByID)(id));
|
26293
26309
|
const [questions, setQuestions] = (0, import_react128.useState)(
|
26294
26310
|
((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
|
26295
26311
|
);
|
@@ -26369,14 +26385,14 @@ function CreateQuestions() {
|
|
26369
26385
|
return launchPoll();
|
26370
26386
|
}) }, "Launch ", interaction == null ? void 0 : interaction.type))));
|
26371
26387
|
}
|
26372
|
-
var import_react128, import_uuid11,
|
26388
|
+
var import_react128, import_uuid11, import_react_sdk62, import_react_icons59, getEditableFormat, QuestionCard;
|
26373
26389
|
var init_CreateQuestions = __esm({
|
26374
26390
|
"src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx"() {
|
26375
26391
|
"use strict";
|
26376
26392
|
init_define_process_env();
|
26377
26393
|
import_react128 = __toESM(require("react"));
|
26378
26394
|
import_uuid11 = require("uuid");
|
26379
|
-
|
26395
|
+
import_react_sdk62 = require("@100mslive/react-sdk");
|
26380
26396
|
import_react_icons59 = require("@100mslive/react-icons");
|
26381
26397
|
init_src();
|
26382
26398
|
init_Common();
|
@@ -26504,16 +26520,16 @@ var init_StatisticBox = __esm({
|
|
26504
26520
|
});
|
26505
26521
|
|
26506
26522
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
26507
|
-
var import_react131,
|
26523
|
+
var import_react131, import_react_sdk63, useQuizSummary;
|
26508
26524
|
var init_useQuizSummary = __esm({
|
26509
26525
|
"src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx"() {
|
26510
26526
|
"use strict";
|
26511
26527
|
init_define_process_env();
|
26512
26528
|
import_react131 = require("react");
|
26513
|
-
|
26529
|
+
import_react_sdk63 = require("@100mslive/react-sdk");
|
26514
26530
|
useQuizSummary = (quizID) => {
|
26515
|
-
const hmsActions = (0,
|
26516
|
-
const quiz = (0,
|
26531
|
+
const hmsActions = (0, import_react_sdk63.useHMSActions)();
|
26532
|
+
const quiz = (0, import_react_sdk63.useHMSStore)((0, import_react_sdk63.selectPollByID)(quizID));
|
26517
26533
|
const [quizLeaderboard, setQuizLeaderboard] = (0, import_react131.useState)();
|
26518
26534
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
26519
26535
|
totalUsers: 0,
|
@@ -26551,20 +26567,20 @@ var init_useQuizSummary = __esm({
|
|
26551
26567
|
});
|
26552
26568
|
|
26553
26569
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
26554
|
-
var import_react132,
|
26570
|
+
var import_react132, import_react_sdk64, PeerParticipationSummary;
|
26555
26571
|
var init_PeerParticipationSummary = __esm({
|
26556
26572
|
"src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx"() {
|
26557
26573
|
"use strict";
|
26558
26574
|
init_define_process_env();
|
26559
26575
|
import_react132 = __toESM(require("react"));
|
26560
|
-
|
26576
|
+
import_react_sdk64 = require("@100mslive/react-sdk");
|
26561
26577
|
init_Layout();
|
26562
26578
|
init_Text2();
|
26563
26579
|
init_StatisticBox();
|
26564
26580
|
init_useQuizSummary();
|
26565
26581
|
init_utils5();
|
26566
26582
|
PeerParticipationSummary = ({ quiz }) => {
|
26567
|
-
const localPeerId = (0,
|
26583
|
+
const localPeerId = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectLocalPeerID);
|
26568
26584
|
const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
|
26569
26585
|
if (quiz.state !== "stopped") {
|
26570
26586
|
return /* @__PURE__ */ import_react132.default.createElement(import_react132.default.Fragment, null);
|
@@ -26605,13 +26621,13 @@ var init_PeerParticipationSummary = __esm({
|
|
26605
26621
|
});
|
26606
26622
|
|
26607
26623
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
26608
|
-
var import_react133,
|
26624
|
+
var import_react133, import_react_sdk65, import_react_icons61, LeaderboardSummary;
|
26609
26625
|
var init_LeaderboardSummary = __esm({
|
26610
26626
|
"src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx"() {
|
26611
26627
|
"use strict";
|
26612
26628
|
init_define_process_env();
|
26613
26629
|
import_react133 = __toESM(require("react"));
|
26614
|
-
|
26630
|
+
import_react_sdk65 = require("@100mslive/react-sdk");
|
26615
26631
|
import_react_icons61 = require("@100mslive/react-icons");
|
26616
26632
|
init_Layout();
|
26617
26633
|
init_Loading2();
|
@@ -26626,7 +26642,7 @@ var init_LeaderboardSummary = __esm({
|
|
26626
26642
|
init_constants();
|
26627
26643
|
LeaderboardSummary = ({ pollID }) => {
|
26628
26644
|
var _a7, _b7;
|
26629
|
-
const quiz = (0,
|
26645
|
+
const quiz = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPollByID)(pollID));
|
26630
26646
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
26631
26647
|
const [viewAllEntries, setViewAllEntries] = (0, import_react133.useState)(false);
|
26632
26648
|
const { setPollView } = usePollViewState();
|
@@ -26699,14 +26715,14 @@ var init_LeaderboardSummary = __esm({
|
|
26699
26715
|
});
|
26700
26716
|
|
26701
26717
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
26702
|
-
var import_react134, import_ts_pattern9,
|
26718
|
+
var import_react134, import_ts_pattern9, import_react_sdk66, import_react_icons62, QuestionCard2, QuestionActions;
|
26703
26719
|
var init_QuestionCard = __esm({
|
26704
26720
|
"src/Prebuilt/components/Polls/Voting/QuestionCard.jsx"() {
|
26705
26721
|
"use strict";
|
26706
26722
|
init_define_process_env();
|
26707
26723
|
import_react134 = __toESM(require("react"));
|
26708
26724
|
import_ts_pattern9 = require("ts-pattern");
|
26709
|
-
|
26725
|
+
import_react_sdk66 = require("@100mslive/react-sdk");
|
26710
26726
|
import_react_icons62 = require("@100mslive/react-icons");
|
26711
26727
|
init_src();
|
26712
26728
|
init_utils2();
|
@@ -26728,10 +26744,10 @@ var init_QuestionCard = __esm({
|
|
26728
26744
|
updateSavedResponses,
|
26729
26745
|
rolesThatCanViewResponses
|
26730
26746
|
}) => {
|
26731
|
-
const actions = (0,
|
26732
|
-
const localPeer = (0,
|
26747
|
+
const actions = (0, import_react_sdk66.useHMSActions)();
|
26748
|
+
const localPeer = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectLocalPeer);
|
26733
26749
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
26734
|
-
const localPeerRoleName = (0,
|
26750
|
+
const localPeerRoleName = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectLocalPeerRoleName);
|
26735
26751
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
26736
26752
|
const [localPeerChoice, setLocalPeerChoice] = (0, import_react134.useState)(localPeerResponse);
|
26737
26753
|
(0, import_react134.useEffect)(() => {
|
@@ -26978,13 +26994,13 @@ var init_TimedVoting = __esm({
|
|
26978
26994
|
});
|
26979
26995
|
|
26980
26996
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
26981
|
-
var import_react137,
|
26997
|
+
var import_react137, import_react_sdk67, import_react_icons63, Voting;
|
26982
26998
|
var init_Voting = __esm({
|
26983
26999
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx"() {
|
26984
27000
|
"use strict";
|
26985
27001
|
init_define_process_env();
|
26986
27002
|
import_react137 = __toESM(require("react"));
|
26987
|
-
|
27003
|
+
import_react_sdk67 = require("@100mslive/react-sdk");
|
26988
27004
|
import_react_icons63 = require("@100mslive/react-icons");
|
26989
27005
|
init_src();
|
26990
27006
|
init_Common();
|
@@ -26995,16 +27011,16 @@ var init_Voting = __esm({
|
|
26995
27011
|
init_StatusIndicator();
|
26996
27012
|
init_constants();
|
26997
27013
|
Voting = ({ id, toggleVoting }) => {
|
26998
|
-
const actions = (0,
|
26999
|
-
const poll = (0,
|
27000
|
-
const pollCreatorName = (0,
|
27001
|
-
const permissions = (0,
|
27014
|
+
const actions = (0, import_react_sdk67.useHMSActions)();
|
27015
|
+
const poll = (0, import_react_sdk67.useHMSStore)((0, import_react_sdk67.selectPollByID)(id));
|
27016
|
+
const pollCreatorName = (0, import_react_sdk67.useHMSStore)((0, import_react_sdk67.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
|
27017
|
+
const permissions = (0, import_react_sdk67.useHMSStore)(import_react_sdk67.selectPermissions);
|
27002
27018
|
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
27003
27019
|
const { setPollView } = usePollViewState();
|
27004
27020
|
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
27005
27021
|
const fetchedInitialResponses = (0, import_react137.useRef)(false);
|
27006
27022
|
const [savedResponses, setSavedResponses] = (0, import_react137.useState)({});
|
27007
|
-
const localPeer = (0,
|
27023
|
+
const localPeer = (0, import_react_sdk67.useHMSStore)(import_react_sdk67.selectLocalPeer);
|
27008
27024
|
const localPeerId = localPeer == null ? void 0 : localPeer.id;
|
27009
27025
|
const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
|
27010
27026
|
(0, import_react137.useEffect)(() => {
|
@@ -27129,18 +27145,18 @@ var init_Polls = __esm({
|
|
27129
27145
|
});
|
27130
27146
|
|
27131
27147
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
27132
|
-
var import_react139,
|
27148
|
+
var import_react139, import_react_sdk68, import_react_icons64, SpeakerTag, LogoImg, Logo;
|
27133
27149
|
var init_HeaderComponents = __esm({
|
27134
27150
|
"src/Prebuilt/components/Header/HeaderComponents.jsx"() {
|
27135
27151
|
"use strict";
|
27136
27152
|
init_define_process_env();
|
27137
27153
|
import_react139 = __toESM(require("react"));
|
27138
|
-
|
27154
|
+
import_react_sdk68 = require("@100mslive/react-sdk");
|
27139
27155
|
import_react_icons64 = require("@100mslive/react-icons");
|
27140
27156
|
init_src();
|
27141
27157
|
init_roomLayoutProvider();
|
27142
27158
|
SpeakerTag = () => {
|
27143
|
-
const dominantSpeaker = (0,
|
27159
|
+
const dominantSpeaker = (0, import_react_sdk68.useHMSStore)(import_react_sdk68.selectDominantSpeaker);
|
27144
27160
|
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ import_react139.default.createElement(
|
27145
27161
|
Flex,
|
27146
27162
|
{
|
@@ -27268,14 +27284,14 @@ var init_RoomDetailsPane = __esm({
|
|
27268
27284
|
});
|
27269
27285
|
|
27270
27286
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
27271
|
-
var import_react143, import_react_use22,
|
27287
|
+
var import_react143, import_react_use22, import_react_sdk69, import_react_icons66, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
|
27272
27288
|
var init_ChatSelector = __esm({
|
27273
27289
|
"src/Prebuilt/components/Chat/ChatSelector.tsx"() {
|
27274
27290
|
"use strict";
|
27275
27291
|
init_define_process_env();
|
27276
27292
|
import_react143 = __toESM(require("react"));
|
27277
27293
|
import_react_use22 = require("react-use");
|
27278
|
-
|
27294
|
+
import_react_sdk69 = require("@100mslive/react-sdk");
|
27279
27295
|
import_react_icons66 = require("@100mslive/react-icons");
|
27280
27296
|
init_src();
|
27281
27297
|
init_Theme();
|
@@ -27331,7 +27347,7 @@ var init_ChatSelector = __esm({
|
|
27331
27347
|
}
|
27332
27348
|
);
|
27333
27349
|
Everyone = import_react143.default.memo(({ active }) => {
|
27334
|
-
const unreadCount = (0,
|
27350
|
+
const unreadCount = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectUnreadHMSMessagesCount);
|
27335
27351
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
27336
27352
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
27337
27353
|
return /* @__PURE__ */ import_react143.default.createElement(
|
@@ -27349,7 +27365,7 @@ var init_ChatSelector = __esm({
|
|
27349
27365
|
);
|
27350
27366
|
});
|
27351
27367
|
RoleItem = import_react143.default.memo(({ role, active }) => {
|
27352
|
-
const unreadCount = (0,
|
27368
|
+
const unreadCount = (0, import_react_sdk69.useHMSStore)((0, import_react_sdk69.selectMessagesUnreadCountByRole)(role));
|
27353
27369
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
27354
27370
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
27355
27371
|
return /* @__PURE__ */ import_react143.default.createElement(
|
@@ -27366,7 +27382,7 @@ var init_ChatSelector = __esm({
|
|
27366
27382
|
);
|
27367
27383
|
});
|
27368
27384
|
PeerItem = ({ peerId, name, active }) => {
|
27369
|
-
const unreadCount = (0,
|
27385
|
+
const unreadCount = (0, import_react_sdk69.useHMSStore)((0, import_react_sdk69.selectMessagesUnreadCountByPeerID)(peerId));
|
27370
27386
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
27371
27387
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
27372
27388
|
return /* @__PURE__ */ import_react143.default.createElement(
|
@@ -27393,7 +27409,7 @@ var init_ChatSelector = __esm({
|
|
27393
27409
|
const filteredPeers = (0, import_react143.useMemo)(
|
27394
27410
|
() => peers.filter(
|
27395
27411
|
// search should be empty or search phrase should be included in name
|
27396
|
-
(peer) => (!searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())) && peer.type !==
|
27412
|
+
(peer) => (!searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())) && peer.type !== import_react_sdk69.HMSPeerType.SIP
|
27397
27413
|
),
|
27398
27414
|
[peers, searchValue]
|
27399
27415
|
);
|
@@ -27425,7 +27441,7 @@ var init_ChatSelector = __esm({
|
|
27425
27441
|
ChatSelector = ({ role, peerId }) => {
|
27426
27442
|
var _a7, _b7;
|
27427
27443
|
const { elements } = useRoomLayoutConferencingScreen();
|
27428
|
-
const peers = (0,
|
27444
|
+
const peers = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectRemotePeers);
|
27429
27445
|
const [search, setSearch] = (0, import_react143.useState)("");
|
27430
27446
|
const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
|
27431
27447
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
@@ -27583,17 +27599,17 @@ var init_ChatSelectorContainer = __esm({
|
|
27583
27599
|
});
|
27584
27600
|
|
27585
27601
|
// src/Prebuilt/components/AppData/useChatState.js
|
27586
|
-
var import_react145,
|
27602
|
+
var import_react145, import_react_sdk70, useChatDraftMessage;
|
27587
27603
|
var init_useChatState = __esm({
|
27588
27604
|
"src/Prebuilt/components/AppData/useChatState.js"() {
|
27589
27605
|
"use strict";
|
27590
27606
|
init_define_process_env();
|
27591
27607
|
import_react145 = require("react");
|
27592
|
-
|
27608
|
+
import_react_sdk70 = require("@100mslive/react-sdk");
|
27593
27609
|
init_constants();
|
27594
27610
|
useChatDraftMessage = () => {
|
27595
|
-
const hmsActions = (0,
|
27596
|
-
let chatDraftMessage = (0,
|
27611
|
+
const hmsActions = (0, import_react_sdk70.useHMSActions)();
|
27612
|
+
let chatDraftMessage = (0, import_react_sdk70.useHMSStore)((0, import_react_sdk70.selectAppData)(APP_DATA.chatDraft));
|
27597
27613
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
27598
27614
|
chatDraftMessage = "";
|
27599
27615
|
}
|
@@ -27675,7 +27691,7 @@ function EmojiPicker({ onSelect }) {
|
|
27675
27691
|
)
|
27676
27692
|
)));
|
27677
27693
|
}
|
27678
|
-
var import_react147, import_react_use24, import_data, import_react148,
|
27694
|
+
var import_react147, import_react_use24, import_data, import_react148, import_react_sdk71, import_react_icons68, TextArea2, ChatFooter;
|
27679
27695
|
var init_ChatFooter = __esm({
|
27680
27696
|
"src/Prebuilt/components/Chat/ChatFooter.tsx"() {
|
27681
27697
|
"use strict";
|
@@ -27684,7 +27700,7 @@ var init_ChatFooter = __esm({
|
|
27684
27700
|
import_react_use24 = require("react-use");
|
27685
27701
|
import_data = __toESM(require("@emoji-mart/data"));
|
27686
27702
|
import_react148 = __toESM(require("@emoji-mart/react"));
|
27687
|
-
|
27703
|
+
import_react_sdk71 = require("@100mslive/react-sdk");
|
27688
27704
|
import_react_icons68 = require("@100mslive/react-icons");
|
27689
27705
|
init_src();
|
27690
27706
|
init_IconButton2();
|
@@ -27719,13 +27735,13 @@ var init_ChatFooter = __esm({
|
|
27719
27735
|
});
|
27720
27736
|
ChatFooter = ({ onSend, children }) => {
|
27721
27737
|
var _a7, _b7, _c, _d, _e;
|
27722
|
-
const hmsActions = (0,
|
27738
|
+
const hmsActions = (0, import_react_sdk71.useHMSActions)();
|
27723
27739
|
const inputRef = (0, import_react147.useRef)(null);
|
27724
27740
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
27725
27741
|
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
27726
27742
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27727
27743
|
const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
|
27728
|
-
const localPeer = (0,
|
27744
|
+
const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
|
27729
27745
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
27730
27746
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
27731
27747
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -27928,13 +27944,13 @@ var init_ChatFooter = __esm({
|
|
27928
27944
|
});
|
27929
27945
|
|
27930
27946
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
27931
|
-
var import_react149,
|
27947
|
+
var import_react149, import_react_sdk72, ChatPaused, ChatBlocked;
|
27932
27948
|
var init_ChatStates = __esm({
|
27933
27949
|
"src/Prebuilt/components/Chat/ChatStates.tsx"() {
|
27934
27950
|
"use strict";
|
27935
27951
|
init_define_process_env();
|
27936
27952
|
import_react149 = __toESM(require("react"));
|
27937
|
-
|
27953
|
+
import_react_sdk72 = require("@100mslive/react-sdk");
|
27938
27954
|
init_Button2();
|
27939
27955
|
init_Layout();
|
27940
27956
|
init_Text2();
|
@@ -27942,11 +27958,11 @@ var init_ChatStates = __esm({
|
|
27942
27958
|
init_useChatBlacklist();
|
27943
27959
|
ChatPaused = () => {
|
27944
27960
|
var _a7, _b7;
|
27945
|
-
const hmsActions = (0,
|
27961
|
+
const hmsActions = (0, import_react_sdk72.useHMSActions)();
|
27946
27962
|
const { elements } = useRoomLayoutConferencingScreen();
|
27947
27963
|
const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
27948
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0,
|
27949
|
-
const localPeer = (0,
|
27964
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
27965
|
+
const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
|
27950
27966
|
const unPauseChat = (0, import_react149.useCallback)(
|
27951
27967
|
() => __async(void 0, null, function* () {
|
27952
27968
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
@@ -28059,7 +28075,7 @@ var init_StickIndicator = __esm({
|
|
28059
28075
|
});
|
28060
28076
|
|
28061
28077
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
28062
|
-
var import_react152, import_react_swipeable, import_react_use25,
|
28078
|
+
var import_react152, import_react_swipeable, import_react_use25, import_react_sdk73, import_react_icons70, PINNED_MESSAGE_LENGTH, PinnedMessage;
|
28063
28079
|
var init_PinnedMessage = __esm({
|
28064
28080
|
"src/Prebuilt/components/Chat/PinnedMessage.tsx"() {
|
28065
28081
|
"use strict";
|
@@ -28067,7 +28083,7 @@ var init_PinnedMessage = __esm({
|
|
28067
28083
|
import_react152 = __toESM(require("react"));
|
28068
28084
|
import_react_swipeable = require("react-swipeable");
|
28069
28085
|
import_react_use25 = require("react-use");
|
28070
|
-
|
28086
|
+
import_react_sdk73 = require("@100mslive/react-sdk");
|
28071
28087
|
import_react_icons70 = require("@100mslive/react-icons");
|
28072
28088
|
init_Layout();
|
28073
28089
|
init_Text2();
|
@@ -28080,7 +28096,7 @@ var init_PinnedMessage = __esm({
|
|
28080
28096
|
PINNED_MESSAGE_LENGTH = 75;
|
28081
28097
|
PinnedMessage = () => {
|
28082
28098
|
var _a7, _b7, _c, _d;
|
28083
|
-
const pinnedMessages = (0,
|
28099
|
+
const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
28084
28100
|
const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
|
28085
28101
|
const { removePinnedMessage } = usePinnedMessages();
|
28086
28102
|
const isMobile = (0, import_react_use25.useMedia)(config.media.md);
|
@@ -28195,7 +28211,7 @@ var init_PinnedMessage = __esm({
|
|
28195
28211
|
});
|
28196
28212
|
|
28197
28213
|
// src/Prebuilt/components/Chat/Chat.tsx
|
28198
|
-
var import_react153, import_react_use26, import_ts_pattern10,
|
28214
|
+
var import_react153, import_react_use26, import_ts_pattern10, import_react_sdk74, import_react_icons71, Chat, NewMessageIndicator;
|
28199
28215
|
var init_Chat = __esm({
|
28200
28216
|
"src/Prebuilt/components/Chat/Chat.tsx"() {
|
28201
28217
|
"use strict";
|
@@ -28204,7 +28220,7 @@ var init_Chat = __esm({
|
|
28204
28220
|
import_react_use26 = require("react-use");
|
28205
28221
|
init_dist();
|
28206
28222
|
import_ts_pattern10 = require("ts-pattern");
|
28207
|
-
|
28223
|
+
import_react_sdk74 = require("@100mslive/react-sdk");
|
28208
28224
|
import_react_icons71 = require("@100mslive/react-icons");
|
28209
28225
|
init_Button2();
|
28210
28226
|
init_Layout();
|
@@ -28225,9 +28241,9 @@ var init_Chat = __esm({
|
|
28225
28241
|
var _a7, _b7;
|
28226
28242
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
28227
28243
|
const listRef = (0, import_react153.useRef)(null);
|
28228
|
-
const hmsActions = (0,
|
28229
|
-
const vanillaStore = (0,
|
28230
|
-
const { enabled: isChatEnabled = true } = (0,
|
28244
|
+
const hmsActions = (0, import_react_sdk74.useHMSActions)();
|
28245
|
+
const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
|
28246
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(jm("chatState" /* CHAT_STATE */)) || {};
|
28231
28247
|
const isMobile = (0, import_react_use26.useMedia)(config.media.md);
|
28232
28248
|
const isMobileHLSStream = useMobileHLSStream();
|
28233
28249
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -28237,7 +28253,7 @@ var init_Chat = __esm({
|
|
28237
28253
|
(unreadCount = 0) => {
|
28238
28254
|
var _a8;
|
28239
28255
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
28240
|
-
const messagesCount = vanillaStore.getState(
|
28256
|
+
const messagesCount = vanillaStore.getState(import_react_sdk74.selectHMSMessagesCount);
|
28241
28257
|
(_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
|
28242
28258
|
requestAnimationFrame(() => {
|
28243
28259
|
var _a9;
|
@@ -28317,7 +28333,7 @@ var init_Chat = __esm({
|
|
28317
28333
|
scrollToBottom,
|
28318
28334
|
listRef
|
28319
28335
|
}) => {
|
28320
|
-
const unreadCount = (0,
|
28336
|
+
const unreadCount = (0, import_react_sdk74.useHMSStore)(Sm);
|
28321
28337
|
if (!unreadCount || !listRef.current) {
|
28322
28338
|
return null;
|
28323
28339
|
}
|
@@ -28364,7 +28380,7 @@ var init_Chat = __esm({
|
|
28364
28380
|
});
|
28365
28381
|
|
28366
28382
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
28367
|
-
var import_react154, import_react_intersection_observer, import_react_use27, import_react_window3,
|
28383
|
+
var import_react154, import_react_intersection_observer, import_react_use27, import_react_window3, import_react_sdk75, import_react_icons72, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
|
28368
28384
|
var init_PaginatedParticipants = __esm({
|
28369
28385
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx"() {
|
28370
28386
|
"use strict";
|
@@ -28373,7 +28389,7 @@ var init_PaginatedParticipants = __esm({
|
|
28373
28389
|
import_react_intersection_observer = require("react-intersection-observer");
|
28374
28390
|
import_react_use27 = require("react-use");
|
28375
28391
|
import_react_window3 = require("react-window");
|
28376
|
-
|
28392
|
+
import_react_sdk75 = require("@100mslive/react-sdk");
|
28377
28393
|
import_react_icons72 = require("@100mslive/react-icons");
|
28378
28394
|
init_IconButton2();
|
28379
28395
|
init_Layout();
|
@@ -28419,13 +28435,13 @@ var init_PaginatedParticipants = __esm({
|
|
28419
28435
|
}
|
28420
28436
|
);
|
28421
28437
|
PaginatedParticipants = ({ roleName, onBack }) => {
|
28422
|
-
const { peers, total, hasNext, loadPeers, loadMorePeers } = (0,
|
28438
|
+
const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk75.usePaginatedParticipants)({ role: roleName, limit: 20 });
|
28423
28439
|
const [search, setSearch] = (0, import_react154.useState)("");
|
28424
28440
|
const filteredPeers = peers.filter((p) => {
|
28425
28441
|
var _a7;
|
28426
28442
|
return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
28427
28443
|
});
|
28428
|
-
const isConnected = (0,
|
28444
|
+
const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
|
28429
28445
|
const [ref, { width }] = (0, import_react_use27.useMeasure)();
|
28430
28446
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
28431
28447
|
const resetSidePane = useSidepaneReset();
|
@@ -28459,13 +28475,13 @@ var init_PaginatedParticipants = __esm({
|
|
28459
28475
|
});
|
28460
28476
|
|
28461
28477
|
// src/Prebuilt/components/ChatSettings.tsx
|
28462
|
-
var import_react155,
|
28478
|
+
var import_react155, import_react_sdk76, import_react_icons73, ChatSettings;
|
28463
28479
|
var init_ChatSettings = __esm({
|
28464
28480
|
"src/Prebuilt/components/ChatSettings.tsx"() {
|
28465
28481
|
"use strict";
|
28466
28482
|
init_define_process_env();
|
28467
28483
|
import_react155 = __toESM(require("react"));
|
28468
|
-
|
28484
|
+
import_react_sdk76 = require("@100mslive/react-sdk");
|
28469
28485
|
import_react_icons73 = require("@100mslive/react-icons");
|
28470
28486
|
init_Layout();
|
28471
28487
|
init_Popover();
|
@@ -28473,11 +28489,11 @@ var init_ChatSettings = __esm({
|
|
28473
28489
|
init_useRoomLayoutScreen();
|
28474
28490
|
ChatSettings = () => {
|
28475
28491
|
var _a7, _b7;
|
28476
|
-
const hmsActions = (0,
|
28477
|
-
const localPeer = (0,
|
28492
|
+
const hmsActions = (0, import_react_sdk76.useHMSActions)();
|
28493
|
+
const localPeer = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeer);
|
28478
28494
|
const { elements } = useRoomLayoutConferencingScreen();
|
28479
28495
|
const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
28480
|
-
const { enabled: isChatEnabled = true } = (0,
|
28496
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
28481
28497
|
const showPause = canPauseChat && isChatEnabled;
|
28482
28498
|
if (!showPause) {
|
28483
28499
|
return null;
|
@@ -28526,7 +28542,7 @@ var init_ChatSettings = __esm({
|
|
28526
28542
|
});
|
28527
28543
|
|
28528
28544
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
28529
|
-
var import_react156, import_react_use28, import_ts_pattern11,
|
28545
|
+
var import_react156, import_react_use28, import_ts_pattern11, import_react_sdk77, import_react_icons74, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
|
28530
28546
|
var init_SidePaneTabs = __esm({
|
28531
28547
|
"src/Prebuilt/components/SidePaneTabs.tsx"() {
|
28532
28548
|
"use strict";
|
@@ -28534,7 +28550,7 @@ var init_SidePaneTabs = __esm({
|
|
28534
28550
|
import_react156 = __toESM(require("react"));
|
28535
28551
|
import_react_use28 = require("react-use");
|
28536
28552
|
import_ts_pattern11 = require("ts-pattern");
|
28537
|
-
|
28553
|
+
import_react_sdk77 = require("@100mslive/react-sdk");
|
28538
28554
|
import_react_icons74 = require("@100mslive/react-icons");
|
28539
28555
|
init_Chat();
|
28540
28556
|
init_PaginatedParticipants();
|
@@ -28567,7 +28583,7 @@ var init_SidePaneTabs = __esm({
|
|
28567
28583
|
const resetSidePane = useSidepaneReset();
|
28568
28584
|
const [activeTab, setActiveTab] = (0, import_react156.useState)(active);
|
28569
28585
|
const [activeRole, setActiveRole] = (0, import_react156.useState)("");
|
28570
|
-
const peerCount = (0,
|
28586
|
+
const peerCount = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeerCount);
|
28571
28587
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
28572
28588
|
const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
|
28573
28589
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
@@ -28687,13 +28703,13 @@ var init_SidePaneTabs = __esm({
|
|
28687
28703
|
});
|
28688
28704
|
|
28689
28705
|
// src/Prebuilt/components/Connection/TileConnection.tsx
|
28690
|
-
var import_react157,
|
28706
|
+
var import_react157, import_react_sdk78, import_react_icons75, TileConnection, IconWrapper, Wrapper2, TileConnection_default;
|
28691
28707
|
var init_TileConnection = __esm({
|
28692
28708
|
"src/Prebuilt/components/Connection/TileConnection.tsx"() {
|
28693
28709
|
"use strict";
|
28694
28710
|
init_define_process_env();
|
28695
28711
|
import_react157 = __toESM(require("react"));
|
28696
|
-
|
28712
|
+
import_react_sdk78 = require("@100mslive/react-sdk");
|
28697
28713
|
import_react_icons75 = require("@100mslive/react-icons");
|
28698
28714
|
init_src();
|
28699
28715
|
init_ConnectionIndicator();
|
@@ -28704,10 +28720,10 @@ var init_TileConnection = __esm({
|
|
28704
28720
|
width,
|
28705
28721
|
pinned
|
28706
28722
|
}) => {
|
28707
|
-
const spotlighted = (0,
|
28708
|
-
const isPeerScreenSharing = !!(0,
|
28709
|
-
const peerType = (0,
|
28710
|
-
return /* @__PURE__ */ import_react157.default.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ import_react157.default.createElement(import_react157.default.Fragment, null, name ? /* @__PURE__ */ import_react157.default.createElement(Flex, { align: "center" }, peerType ===
|
28723
|
+
const spotlighted = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectSessionStore)("spotlight" /* SPOTLIGHT */)) === peerId;
|
28724
|
+
const isPeerScreenSharing = !!(0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectScreenShareByPeerID)(peerId));
|
28725
|
+
const peerType = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectPeerTypeByID)(peerId));
|
28726
|
+
return /* @__PURE__ */ import_react157.default.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ import_react157.default.createElement(import_react157.default.Fragment, null, name ? /* @__PURE__ */ import_react157.default.createElement(Flex, { align: "center" }, peerType === import_react_sdk78.HMSPeerType.SIP && /* @__PURE__ */ import_react157.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react157.default.createElement(import_react_icons75.CallIcon, { width: "15", height: "15" })), isPeerScreenSharing && /* @__PURE__ */ import_react157.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react157.default.createElement(import_react_icons75.ShareScreenIcon, { width: "15", height: "15" })), pinned && /* @__PURE__ */ import_react157.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react157.default.createElement(import_react_icons75.PinIcon, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ import_react157.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react157.default.createElement(import_react_icons75.SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ import_react157.default.createElement(
|
28711
28727
|
Text,
|
28712
28728
|
{
|
28713
28729
|
css: __spreadValues({
|
@@ -28752,14 +28768,14 @@ var init_utils6 = __esm({
|
|
28752
28768
|
});
|
28753
28769
|
|
28754
28770
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
28755
|
-
var import_react158, import_react_use29,
|
28771
|
+
var import_react158, import_react_use29, import_react_sdk79, import_react_icons76, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
|
28756
28772
|
var init_TileMenuContent = __esm({
|
28757
28773
|
"src/Prebuilt/components/TileMenu/TileMenuContent.tsx"() {
|
28758
28774
|
"use strict";
|
28759
28775
|
init_define_process_env();
|
28760
28776
|
import_react158 = __toESM(require("react"));
|
28761
28777
|
import_react_use29 = require("react-use");
|
28762
|
-
|
28778
|
+
import_react_sdk79 = require("@100mslive/react-sdk");
|
28763
28779
|
import_react_icons76 = require("@100mslive/react-icons");
|
28764
28780
|
init_Layout();
|
28765
28781
|
init_Slider2();
|
@@ -28784,8 +28800,8 @@ var init_TileMenuContent = __esm({
|
|
28784
28800
|
return;
|
28785
28801
|
}
|
28786
28802
|
}) => {
|
28787
|
-
const hmsActions = (0,
|
28788
|
-
const spotlightPeerId = (0,
|
28803
|
+
const hmsActions = (0, import_react_sdk79.useHMSActions)();
|
28804
|
+
const spotlightPeerId = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectSessionStore)("spotlight" /* SPOTLIGHT */));
|
28789
28805
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
28790
28806
|
const dragClassName = getDragClassName();
|
28791
28807
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -28833,8 +28849,8 @@ var init_TileMenuContent = __esm({
|
|
28833
28849
|
};
|
28834
28850
|
SimulcastLayers = ({ trackId }) => {
|
28835
28851
|
var _a7;
|
28836
|
-
const track = (0,
|
28837
|
-
const actions = (0,
|
28852
|
+
const track = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectTrackByID)(trackId));
|
28853
|
+
const actions = (0, import_react_sdk79.useHMSActions)();
|
28838
28854
|
const bg = useDropdownSelection();
|
28839
28855
|
if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
|
28840
28856
|
return null;
|
@@ -28919,18 +28935,18 @@ var init_TileMenuContent = __esm({
|
|
28919
28935
|
return;
|
28920
28936
|
}
|
28921
28937
|
}) => {
|
28922
|
-
const actions = (0,
|
28938
|
+
const actions = (0, import_react_sdk79.useHMSActions)();
|
28923
28939
|
const dragClassName = getDragClassName();
|
28924
|
-
const permissions = (0,
|
28940
|
+
const permissions = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectPermissions);
|
28925
28941
|
const canChangeRole = !!(permissions == null ? void 0 : permissions.changeRole);
|
28926
28942
|
const removeOthers = !!(permissions == null ? void 0 : permissions.removeOthers);
|
28927
28943
|
const { userName } = useHMSPrebuiltContext();
|
28928
|
-
const roles = (0,
|
28929
|
-
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = (0,
|
28944
|
+
const roles = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectAvailableRoleNames);
|
28945
|
+
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = (0, import_react_sdk79.useRemoteAVToggle)(
|
28930
28946
|
audioTrackID,
|
28931
28947
|
videoTrackID
|
28932
28948
|
);
|
28933
|
-
const { sendEvent } = (0,
|
28949
|
+
const { sendEvent } = (0, import_react_sdk79.useCustomEvent)({
|
28934
28950
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
28935
28951
|
});
|
28936
28952
|
const isMobile = (0, import_react_use29.useMedia)(config.media.md);
|
@@ -29027,14 +29043,14 @@ var init_TileMenuContent = __esm({
|
|
29027
29043
|
});
|
29028
29044
|
|
29029
29045
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
29030
|
-
var import_react159, import_react_use30,
|
29046
|
+
var import_react159, import_react_use30, import_react_sdk80, import_react_icons77, TileMenu, TileMenu_default;
|
29031
29047
|
var init_TileMenu2 = __esm({
|
29032
29048
|
"src/Prebuilt/components/TileMenu/TileMenu.tsx"() {
|
29033
29049
|
"use strict";
|
29034
29050
|
init_define_process_env();
|
29035
29051
|
import_react159 = __toESM(require("react"));
|
29036
29052
|
import_react_use30 = require("react-use");
|
29037
|
-
|
29053
|
+
import_react_sdk80 = require("@100mslive/react-sdk");
|
29038
29054
|
import_react_icons77 = require("@100mslive/react-icons");
|
29039
29055
|
init_Layout();
|
29040
29056
|
init_Sheet2();
|
@@ -29058,17 +29074,17 @@ var init_TileMenu2 = __esm({
|
|
29058
29074
|
var _a7, _b7;
|
29059
29075
|
const [open, setOpen] = (0, import_react159.useState)(false);
|
29060
29076
|
const { theme: theme2 } = useTheme();
|
29061
|
-
const localPeerID = (0,
|
29077
|
+
const localPeerID = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerID);
|
29062
29078
|
const isLocal = localPeerID === peerID;
|
29063
|
-
const { removeOthers } = (0,
|
29064
|
-
const { setVolume, toggleAudio, toggleVideo } = (0,
|
29079
|
+
const { removeOthers } = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectPermissions) || {};
|
29080
|
+
const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk80.useRemoteAVToggle)(audioTrackID, videoTrackID);
|
29065
29081
|
const showSpotlight = enableSpotlightingPeer;
|
29066
|
-
const isPrimaryVideoTrack = ((_a7 = (0,
|
29082
|
+
const isPrimaryVideoTrack = ((_a7 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
|
29067
29083
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
29068
|
-
const track = (0,
|
29084
|
+
const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
|
29069
29085
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
29070
29086
|
const isMobile = (0, import_react_use30.useMedia)(config.media.md);
|
29071
|
-
const peer = (0,
|
29087
|
+
const peer = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectPeerByID)(peerID));
|
29072
29088
|
const [showNameChangeModal, setShowNameChangeModal] = (0, import_react159.useState)(false);
|
29073
29089
|
const [showRoleChangeModal, setShowRoleChangeModal] = (0, import_react159.useState)(false);
|
29074
29090
|
useDropdownList({ open, name: "TileMenu" });
|
@@ -29155,14 +29171,14 @@ var init_peerTileUtils = __esm({
|
|
29155
29171
|
});
|
29156
29172
|
|
29157
29173
|
// src/Prebuilt/components/VideoTile.tsx
|
29158
|
-
var import_react160, import_react_use31,
|
29174
|
+
var import_react160, import_react_use31, import_react_sdk81, import_react_icons78, PeerMetadata, Tile, VideoTile, VideoTile_default;
|
29159
29175
|
var init_VideoTile2 = __esm({
|
29160
29176
|
"src/Prebuilt/components/VideoTile.tsx"() {
|
29161
29177
|
"use strict";
|
29162
29178
|
init_define_process_env();
|
29163
29179
|
import_react160 = __toESM(require("react"));
|
29164
29180
|
import_react_use31 = require("react-use");
|
29165
|
-
|
29181
|
+
import_react_sdk81 = require("@100mslive/react-sdk");
|
29166
29182
|
import_react_icons78 = require("@100mslive/react-icons");
|
29167
29183
|
init_TileConnection();
|
29168
29184
|
init_TileMenu2();
|
@@ -29176,9 +29192,9 @@ var init_VideoTile2 = __esm({
|
|
29176
29192
|
init_utils2();
|
29177
29193
|
init_constants();
|
29178
29194
|
PeerMetadata = ({ peerId, size }) => {
|
29179
|
-
const metaData = (0,
|
29195
|
+
const metaData = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectPeerMetadata)(peerId));
|
29180
29196
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
29181
|
-
const isHandRaised = (0,
|
29197
|
+
const isHandRaised = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectHasPeerHandRaised)(peerId));
|
29182
29198
|
return /* @__PURE__ */ import_react160.default.createElement(import_react160.default.Fragment, null, isHandRaised ? /* @__PURE__ */ import_react160.default.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ import_react160.default.createElement(import_react_icons78.HandIcon, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ import_react160.default.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ import_react160.default.createElement(import_react_icons78.BrbTileIcon, { width: 22, height: 22 })) : null);
|
29183
29199
|
};
|
29184
29200
|
Tile = ({
|
@@ -29197,15 +29213,15 @@ var init_VideoTile2 = __esm({
|
|
29197
29213
|
hideAudioMuteOnTile = false,
|
29198
29214
|
hideMetadataOnTile = false
|
29199
29215
|
}) => {
|
29200
|
-
const trackSelector = trackId ? (0,
|
29201
|
-
const track = (0,
|
29202
|
-
const peerName = (0,
|
29203
|
-
const audioTrack = (0,
|
29204
|
-
const localPeerID = (0,
|
29216
|
+
const trackSelector = trackId ? (0, import_react_sdk81.selectVideoTrackByID)(trackId) : (0, import_react_sdk81.selectVideoTrackByPeerID)(peerId);
|
29217
|
+
const track = (0, import_react_sdk81.useHMSStore)(trackSelector);
|
29218
|
+
const peerName = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectPeerNameByID)(peerId));
|
29219
|
+
const audioTrack = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectAudioTrackByPeerID)(peerId));
|
29220
|
+
const localPeerID = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectLocalPeerID);
|
29205
29221
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
29206
29222
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
29207
29223
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
29208
|
-
const isAudioMuted = !(0,
|
29224
|
+
const isAudioMuted = !(0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectIsPeerAudioEnabled)(peerId));
|
29209
29225
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
29210
29226
|
const [isMouseHovered, setIsMouseHovered] = (0, import_react160.useState)(false);
|
29211
29227
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
@@ -29293,28 +29309,6 @@ var init_VideoTile2 = __esm({
|
|
29293
29309
|
}
|
29294
29310
|
});
|
29295
29311
|
|
29296
|
-
// src/Prebuilt/components/VirtualBackground/util.tsx
|
29297
|
-
var import_react_sdk81, doesBrowserSupportEffectsSDK;
|
29298
|
-
var init_util = __esm({
|
29299
|
-
"src/Prebuilt/components/VirtualBackground/util.tsx"() {
|
29300
|
-
"use strict";
|
29301
|
-
init_define_process_env();
|
29302
|
-
import_react_sdk81 = require("@100mslive/react-sdk");
|
29303
|
-
init_constants();
|
29304
|
-
doesBrowserSupportEffectsSDK = () => {
|
29305
|
-
var _a7, _b7;
|
29306
|
-
if (!isSafari) {
|
29307
|
-
return true;
|
29308
|
-
}
|
29309
|
-
const browserVersion = ((_b7 = (_a7 = import_react_sdk81.parsedUserAgent) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
|
29310
|
-
if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
|
29311
|
-
return false;
|
29312
|
-
}
|
29313
|
-
return true;
|
29314
|
-
};
|
29315
|
-
}
|
29316
|
-
});
|
29317
|
-
|
29318
29312
|
// src/Prebuilt/components/VirtualBackground/VBOption.tsx
|
29319
29313
|
var import_react161, Root25, Title4, Icon3, VBOption;
|
29320
29314
|
var init_VBOption = __esm({
|
@@ -29414,7 +29408,6 @@ var init_VBPicker = __esm({
|
|
29414
29408
|
import_react_icons79 = require("@100mslive/react-icons");
|
29415
29409
|
init_src();
|
29416
29410
|
init_Text2();
|
29417
|
-
init_util();
|
29418
29411
|
init_VBCollection();
|
29419
29412
|
init_VBHandler();
|
29420
29413
|
init_useSidepane();
|
@@ -29435,8 +29428,8 @@ var init_VBPicker = __esm({
|
|
29435
29428
|
const [blurAmount, setBlurAmount] = (0, import_react163.useState)(VBHandler.getBlurAmount() || 0.5);
|
29436
29429
|
const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
|
29437
29430
|
const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
|
29438
|
-
const
|
29439
|
-
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(
|
29431
|
+
const isEffectsSupported = VBHandler.isEffectsSupported();
|
29432
|
+
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Am);
|
29440
29433
|
const effectsKey = (0, import_react_sdk82.useHMSStore)(Cm);
|
29441
29434
|
const isMobile = (0, import_react_use32.useMedia)(config.media.md);
|
29442
29435
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
@@ -29447,12 +29440,21 @@ var init_VBPicker = __esm({
|
|
29447
29440
|
const inPreview = roomState === import_react_sdk82.HMSRoomState.Preview;
|
29448
29441
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
29449
29442
|
(0, import_react163.useEffect)(() => {
|
29443
|
+
const addHMSVBPlugin = () => __async(void 0, null, function* () {
|
29444
|
+
setLoadingEffects(false);
|
29445
|
+
if (!role) {
|
29446
|
+
return;
|
29447
|
+
}
|
29448
|
+
yield VBHandler.initialisePlugin();
|
29449
|
+
yield hmsActions.addPluginToVideoTrack(
|
29450
|
+
VBHandler.getVBObject(),
|
29451
|
+
Math.floor(role.publishParams.video.frameRate / 2)
|
29452
|
+
);
|
29453
|
+
});
|
29450
29454
|
const initializeVirtualBackground = () => __async(void 0, null, function* () {
|
29451
29455
|
if (!(track == null ? void 0 : track.id) || pluginLoadingRef.current || isPluginAdded) {
|
29452
29456
|
return;
|
29453
29457
|
}
|
29454
|
-
const isEffectsSupported = doesBrowserSupportEffectsSDK();
|
29455
|
-
setIsBlurSupported(isEffectsSupported);
|
29456
29458
|
try {
|
29457
29459
|
pluginLoadingRef.current = true;
|
29458
29460
|
if (isEffectsEnabled && isEffectsSupported && effectsKey) {
|
@@ -29460,17 +29462,14 @@ var init_VBPicker = __esm({
|
|
29460
29462
|
yield VBHandler.initialisePlugin(effectsKey, () => {
|
29461
29463
|
setLoadingEffects(false);
|
29462
29464
|
});
|
29463
|
-
|
29464
|
-
|
29465
|
-
|
29466
|
-
|
29467
|
-
|
29465
|
+
const vbInstance = VBHandler.getVBObject();
|
29466
|
+
if (vbInstance.getName() === "HMSEffects") {
|
29467
|
+
hmsActions.addPluginsToVideoStream([VBHandler.getVBObject()]);
|
29468
|
+
} else {
|
29469
|
+
yield addHMSVBPlugin();
|
29468
29470
|
}
|
29469
|
-
|
29470
|
-
yield
|
29471
|
-
VBHandler.getVBObject(),
|
29472
|
-
Math.floor(role.publishParams.video.frameRate / 2)
|
29473
|
-
);
|
29471
|
+
} else {
|
29472
|
+
yield addHMSVBPlugin();
|
29474
29473
|
}
|
29475
29474
|
const handleDefaultBackground = () => __async(void 0, null, function* () {
|
29476
29475
|
switch (background) {
|
@@ -29495,6 +29494,7 @@ var init_VBPicker = __esm({
|
|
29495
29494
|
role,
|
29496
29495
|
isPluginAdded,
|
29497
29496
|
isEffectsEnabled,
|
29497
|
+
isEffectsSupported,
|
29498
29498
|
effectsKey,
|
29499
29499
|
track == null ? void 0 : track.id,
|
29500
29500
|
background,
|
@@ -29558,7 +29558,7 @@ var init_VBPicker = __esm({
|
|
29558
29558
|
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
|
29559
29559
|
hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR);
|
29560
29560
|
}),
|
29561
|
-
supported:
|
29561
|
+
supported: isEffectsSupported && isEffectsEnabled
|
29562
29562
|
}
|
29563
29563
|
],
|
29564
29564
|
activeBackground: background
|
@@ -30444,7 +30444,7 @@ var init_InsetTile = __esm({
|
|
30444
30444
|
position: "absolute",
|
30445
30445
|
bottom: 0,
|
30446
30446
|
right: 0,
|
30447
|
-
zIndex:
|
30447
|
+
zIndex: 10,
|
30448
30448
|
boxShadow: "0 0 8px 0 rgba(0,0,0,0.3)",
|
30449
30449
|
r: "$2"
|
30450
30450
|
}, !minimised ? {
|
@@ -31366,9 +31366,9 @@ var init_ScreenshareLayout = __esm({
|
|
31366
31366
|
}
|
31367
31367
|
});
|
31368
31368
|
|
31369
|
-
// ../../../../../../../tmp/tmp-
|
31370
|
-
var
|
31371
|
-
"../../../../../../../tmp/tmp-
|
31369
|
+
// ../../../../../../../tmp/tmp-2799-gii2d1tovvOE/191d74313de0/index.css
|
31370
|
+
var init_d74313de0 = __esm({
|
31371
|
+
"../../../../../../../tmp/tmp-2799-gii2d1tovvOE/191d74313de0/index.css"() {
|
31372
31372
|
}
|
31373
31373
|
});
|
31374
31374
|
|
@@ -31390,7 +31390,7 @@ var init_WhiteboardLayout = __esm({
|
|
31390
31390
|
init_ProminenceLayout();
|
31391
31391
|
init_useUISettings();
|
31392
31392
|
init_constants();
|
31393
|
-
|
31393
|
+
init_d74313de0();
|
31394
31394
|
WhiteboardEmbed = () => {
|
31395
31395
|
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31396
31396
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
|
@@ -34765,7 +34765,7 @@ var init_FeedbackForm = __esm({
|
|
34765
34765
|
return /* @__PURE__ */ import_react217.default.createElement(Sheet.Root, { open: index !== FEEBACK_INDEX.INIT, onOpenChange }, /* @__PURE__ */ import_react217.default.createElement(
|
34766
34766
|
Sheet.Content,
|
34767
34767
|
{
|
34768
|
-
css: { bg: "$surface_dim", p: "$
|
34768
|
+
css: { bg: "$surface_dim", p: "$10", overflowY: "auto" },
|
34769
34769
|
onPointerDownOutside: avoidDefaultDomBehavior,
|
34770
34770
|
onInteractOutside: avoidDefaultDomBehavior
|
34771
34771
|
},
|
@@ -34789,6 +34789,7 @@ var init_FeedbackForm = __esm({
|
|
34789
34789
|
}) => {
|
34790
34790
|
const { feedback } = useRoomLayoutLeaveScreen();
|
34791
34791
|
const { endpoints } = useHMSPrebuiltContext();
|
34792
|
+
const isMobile = (0, import_react_use53.useMedia)(config.media.md);
|
34792
34793
|
const hmsActions = (0, import_react_sdk109.useHMSActions)();
|
34793
34794
|
const [comment, setComment] = (0, import_react217.useState)("");
|
34794
34795
|
const [selectedReasons, setSelectedReasons] = (0, import_react217.useState)(/* @__PURE__ */ new Set());
|
@@ -34812,7 +34813,7 @@ var init_FeedbackForm = __esm({
|
|
34812
34813
|
});
|
34813
34814
|
yield hmsActions.submitSessionFeedback(
|
34814
34815
|
{
|
34815
|
-
question: ratings[indexSelected].question
|
34816
|
+
question: `${feedback == null ? void 0 : feedback.title} | ${ratings[indexSelected].question || ""}`,
|
34816
34817
|
rating: ratings[indexSelected].value || 1,
|
34817
34818
|
min_rating: 1,
|
34818
34819
|
max_rating: ratings.length,
|
@@ -34864,7 +34865,7 @@ var init_FeedbackForm = __esm({
|
|
34864
34865
|
type: "submit",
|
34865
34866
|
icon: true,
|
34866
34867
|
css: {
|
34867
|
-
alignSelf: "end"
|
34868
|
+
alignSelf: isMobile ? "" : "end"
|
34868
34869
|
},
|
34869
34870
|
onClick: submitFeedback
|
34870
34871
|
},
|
@@ -34877,6 +34878,7 @@ var init_FeedbackForm = __esm({
|
|
34877
34878
|
ratings,
|
34878
34879
|
indexSelected = FEEBACK_INDEX.INIT
|
34879
34880
|
}) => {
|
34881
|
+
const isMobile = (0, import_react_use53.useMedia)(config.media.md);
|
34880
34882
|
const { feedback } = useRoomLayoutLeaveScreen();
|
34881
34883
|
return /* @__PURE__ */ import_react217.default.createElement(import_react217.default.Fragment, null, /* @__PURE__ */ import_react217.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react217.default.createElement(
|
34882
34884
|
Flex,
|
@@ -34889,7 +34891,7 @@ var init_FeedbackForm = __esm({
|
|
34889
34891
|
/* @__PURE__ */ import_react217.default.createElement(
|
34890
34892
|
Text,
|
34891
34893
|
{
|
34892
|
-
variant: "h5",
|
34894
|
+
variant: isMobile ? "h6" : "h5",
|
34893
34895
|
css: {
|
34894
34896
|
c: "$on_surface_high",
|
34895
34897
|
fontStyle: "normal"
|
@@ -34900,7 +34902,7 @@ var init_FeedbackForm = __esm({
|
|
34900
34902
|
/* @__PURE__ */ import_react217.default.createElement(
|
34901
34903
|
Text,
|
34902
34904
|
{
|
34903
|
-
variant: "body1",
|
34905
|
+
variant: isMobile ? "body2" : "body1",
|
34904
34906
|
css: {
|
34905
34907
|
c: "$on_surface_medium",
|
34906
34908
|
opacity: 0.9,
|
@@ -34912,9 +34914,13 @@ var init_FeedbackForm = __esm({
|
|
34912
34914
|
), indexSelected !== FEEBACK_INDEX.INIT ? /* @__PURE__ */ import_react217.default.createElement(import_react_icons102.CrossIcon, { width: "24px", height: "24px", color: "white", onClick: () => onEmojiClicked(FEEBACK_INDEX.INIT) }) : null), /* @__PURE__ */ import_react217.default.createElement(
|
34913
34915
|
Flex,
|
34914
34916
|
{
|
34917
|
+
justify: "between",
|
34915
34918
|
css: {
|
34916
34919
|
gap: "$17",
|
34917
|
-
c: "$on_surface_high"
|
34920
|
+
c: "$on_surface_high",
|
34921
|
+
"@md": {
|
34922
|
+
gap: "0"
|
34923
|
+
}
|
34918
34924
|
}
|
34919
34925
|
},
|
34920
34926
|
ratings.map((element, index) => {
|
@@ -34938,7 +34944,10 @@ var init_FeedbackForm = __esm({
|
|
34938
34944
|
fontSize: "$h4",
|
34939
34945
|
pb: "$1",
|
34940
34946
|
cursor: "pointer",
|
34941
|
-
opacity: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? 1 : 0.2
|
34947
|
+
opacity: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? 1 : 0.2,
|
34948
|
+
"@md": {
|
34949
|
+
fontSize: "$h5"
|
34950
|
+
}
|
34942
34951
|
}
|
34943
34952
|
},
|
34944
34953
|
element.emoji
|
@@ -34946,7 +34955,7 @@ var init_FeedbackForm = __esm({
|
|
34946
34955
|
/* @__PURE__ */ import_react217.default.createElement(
|
34947
34956
|
Text,
|
34948
34957
|
{
|
34949
|
-
variant: "body1",
|
34958
|
+
variant: isMobile ? "body2" : "body1",
|
34950
34959
|
css: {
|
34951
34960
|
c: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? "$on_surface_medium" : "$on_surface_low",
|
34952
34961
|
fontWeight: "$regular"
|
@@ -35035,6 +35044,7 @@ var init_FeedbackForm = __esm({
|
|
35035
35044
|
/* @__PURE__ */ import_react217.default.createElement(
|
35036
35045
|
Label3,
|
35037
35046
|
{
|
35047
|
+
htmlFor: `${option}-${index}`,
|
35038
35048
|
css: {
|
35039
35049
|
color: "$on_surface_high",
|
35040
35050
|
fontSize: "$sm",
|
@@ -35122,7 +35132,7 @@ var init_ThankyouView = __esm({
|
|
35122
35132
|
}
|
35123
35133
|
},
|
35124
35134
|
/* @__PURE__ */ import_react218.default.createElement(import_react_icons103.UserMusicIcon, { width: "64px", height: "64px" }),
|
35125
|
-
/* @__PURE__ */ import_react218.default.createElement(Flex, { direction: "column", align: isMobile ? "center" : "start" }, /* @__PURE__ */ import_react218.default.createElement(Text, { variant: "h5" }, "Thank you for your feedback
|
35135
|
+
/* @__PURE__ */ import_react218.default.createElement(Flex, { direction: "column", align: isMobile ? "center" : "start" }, /* @__PURE__ */ import_react218.default.createElement(Text, { variant: "h5" }, "Thank you for your feedback"), /* @__PURE__ */ import_react218.default.createElement(
|
35126
35136
|
Text,
|
35127
35137
|
{
|
35128
35138
|
variant: "body1",
|
@@ -35187,21 +35197,22 @@ var init_Feedback = __esm({
|
|
35187
35197
|
justify: "center",
|
35188
35198
|
css: {
|
35189
35199
|
pt: "$16",
|
35190
|
-
w: "528px"
|
35200
|
+
w: isMobile ? "100%" : "528px"
|
35191
35201
|
}
|
35192
35202
|
},
|
35193
35203
|
index === FEEBACK_INDEX.INIT ? /* @__PURE__ */ import_react219.default.createElement(
|
35194
35204
|
Flex,
|
35195
35205
|
{
|
35196
35206
|
css: {
|
35197
|
-
p: "$12",
|
35207
|
+
p: isMobile ? "$10" : "$12",
|
35198
35208
|
border: "1px solid $border_default",
|
35199
35209
|
bg: "$surface_dim",
|
35200
35210
|
borderRadius: !isMobile ? "$3" : "$3 $3 0 0",
|
35201
35211
|
gap: "$10",
|
35202
35212
|
"@md": {
|
35203
35213
|
position: "absolute",
|
35204
|
-
bottom: "0"
|
35214
|
+
bottom: "0",
|
35215
|
+
w: "100%"
|
35205
35216
|
}
|
35206
35217
|
},
|
35207
35218
|
direction: "column"
|
@@ -37137,7 +37148,7 @@ var require_react_is_production_min = __commonJS({
|
|
37137
37148
|
}
|
37138
37149
|
}
|
37139
37150
|
}
|
37140
|
-
function
|
37151
|
+
function A2(a2) {
|
37141
37152
|
return z2(a2) === m;
|
37142
37153
|
}
|
37143
37154
|
exports.AsyncMode = l2;
|
@@ -37154,9 +37165,9 @@ var require_react_is_production_min = __commonJS({
|
|
37154
37165
|
exports.StrictMode = f2;
|
37155
37166
|
exports.Suspense = p;
|
37156
37167
|
exports.isAsyncMode = function(a2) {
|
37157
|
-
return
|
37168
|
+
return A2(a2) || z2(a2) === l2;
|
37158
37169
|
};
|
37159
|
-
exports.isConcurrentMode =
|
37170
|
+
exports.isConcurrentMode = A2;
|
37160
37171
|
exports.isContextConsumer = function(a2) {
|
37161
37172
|
return z2(a2) === k;
|
37162
37173
|
};
|