@100mslive/roomkit-react 0.2.6-alpha.2 → 0.2.6-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-U3DKJBM7.js → HLSView-H6Q2FEMZ.js} +3 -3
- package/dist/{HLSView-U3DKJBM7.js.map → HLSView-H6Q2FEMZ.js.map} +2 -2
- package/dist/Prebuilt/common/constants.d.ts +0 -1
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -1
- package/dist/{chunk-DO5NCPPI.js → chunk-HRUQKLGN.js} +532 -515
- package/dist/chunk-HRUQKLGN.js.map +7 -0
- package/dist/index.cjs.js +4294 -4275
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +176 -156
- package/dist/meta.esbuild.json +187 -167
- package/package.json +6 -6
- package/src/Prebuilt/App.tsx +7 -8
- package/src/Prebuilt/common/constants.ts +1 -1
- package/src/Prebuilt/components/AppData/AppData.tsx +23 -1
- package/src/Prebuilt/components/Header/HeaderComponents.jsx +1 -1
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +4 -5
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +1 -2
- package/src/Prebuilt/components/ScreenshareTile.tsx +1 -1
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +2 -2
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +29 -12
- package/src/Prebuilt/layouts/HLSView.jsx +1 -2
- package/dist/chunk-DO5NCPPI.js.map +0 -7
- package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +0 -112
- package/src/Prebuilt/plugins/VirtualBackground/vbutils.js +0 -66
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_98ac6855-afa6-481b-90cb-fed1fe1ef94c", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.6-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_98ac6855-afa6-481b-90cb-fed1fe1ef94c", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.6-alpha.2", 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.6", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", 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: "590", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240212.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_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:18899", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.6-alpha.2", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "7888657406", 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_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: "21fe3fa3f76f115ecedc9ffb68a5a43a7d760bef", 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: "5d104c59fdfaee46aa0c91b4ad095ec9aeaeb7f546bb7d8a6be4ff798e76d8d2", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1707837452211-0.743528143796671:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1707837452015-0.9406369317948942:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1707837430066-0.17901544159115135:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1707837429882-0.657619027416386:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7efc6daa-fae3-4b7c-9f26-0e7151201d03", INVOCATION_ID: "f030d15134a9499fa0d58489255c20d1", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "432", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 323", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.6-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.6-alpha.2", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "21fe3fa3f76f115ecedc9ffb68a5a43a7d760bef", 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: "KaustubhKumar05", 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_98ac6855-afa6-481b-90cb-fed1fe1ef94c", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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.1-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_98ac6855-afa6-481b-90cb-fed1fe1ef94c", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_98ac6855-afa6-481b-90cb-fed1fe1ef94c" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_050642c8-df6d-4312-9b8b-4a7f345b603b", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.6-alpha.4", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_050642c8-df6d-4312-9b8b-4a7f345b603b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.6-alpha.4", 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.6", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240212.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_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:17266", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.6-alpha.4", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "7914626716", 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_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: "9e13e59f926c73e5f32c7537a8ab4e292b8d2806", 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: "1447645b13c68ed5f84219e0c2aa377a4708b46185b5ff7d270a7090903d15e1", 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--1707993713346-0.2946660279829507:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1707993713151-0.14968832077388905:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1707993691098-0.5711053740109668:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1707993690918-0.5132801375582854:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_84f1725e-57e1-4e5d-ae00-65aa9a8e131f", INVOCATION_ID: "b5c865e57e4449d3a74757b2c2eabe80", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "434", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 345", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.6-alpha.4", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.6-alpha.4", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "9e13e59f926c73e5f32c7537a8ab4e292b8d2806", 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: "KaustubhKumar05", 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_050642c8-df6d-4312-9b8b-4a7f345b603b", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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.1-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_050642c8-df6d-4312-9b8b-4a7f345b603b", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_050642c8-df6d-4312-9b8b-4a7f345b603b" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -9157,8 +9157,7 @@ var APP_DATA = {
|
|
9157
9157
|
activeScreensharePeerId: "activeScreensharePeerId",
|
9158
9158
|
disableNotifications: "disableNotifications",
|
9159
9159
|
pollState: "pollState",
|
9160
|
-
background: "background"
|
9161
|
-
backgroundType: "backgroundType"
|
9160
|
+
background: "background"
|
9162
9161
|
};
|
9163
9162
|
var UI_SETTINGS = {
|
9164
9163
|
isAudioOnly: "isAudioOnly",
|
@@ -11907,13 +11906,15 @@ import {
|
|
11907
11906
|
|
11908
11907
|
// src/Prebuilt/components/AppData/AppData.tsx
|
11909
11908
|
init_define_process_env();
|
11910
|
-
import
|
11909
|
+
import React23, { useEffect as useEffect5 } from "react";
|
11910
|
+
import { useMedia } from "react-use";
|
11911
11911
|
import {
|
11912
11912
|
HMSRoomState,
|
11913
11913
|
selectFullAppData,
|
11914
11914
|
selectHLSState,
|
11915
11915
|
selectRoomState,
|
11916
11916
|
selectRTMPState,
|
11917
|
+
useAVToggle,
|
11917
11918
|
useHMSActions as useHMSActions4,
|
11918
11919
|
useHMSStore as useHMSStore5,
|
11919
11920
|
useRecordingStreaming
|
@@ -12217,9 +12218,220 @@ var LayoutSettings = () => {
|
|
12217
12218
|
));
|
12218
12219
|
};
|
12219
12220
|
|
12221
|
+
// src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts
|
12222
|
+
init_define_process_env();
|
12223
|
+
|
12224
|
+
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
12225
|
+
init_define_process_env();
|
12226
|
+
var import_lodash2 = __toESM(require_lodash());
|
12227
|
+
import React22 from "react";
|
12228
|
+
|
12229
|
+
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
12230
|
+
init_define_process_env();
|
12231
|
+
import { useCallback as useCallback5, useEffect as useEffect4, useRef as useRef5, useState as useState5 } from "react";
|
12232
|
+
|
12233
|
+
// src/Prebuilt/provider/roomLayoutProvider/constants/index.ts
|
12234
|
+
init_define_process_env();
|
12235
|
+
import { JoinForm_JoinBtnType } from "@100mslive/types-prebuilt/elements/join_form";
|
12236
|
+
var defaultLayout = {
|
12237
|
+
id: "",
|
12238
|
+
role_id: "",
|
12239
|
+
template_id: "",
|
12240
|
+
app_id: "",
|
12241
|
+
typography: {
|
12242
|
+
font_family: "Inter"
|
12243
|
+
},
|
12244
|
+
themes: [],
|
12245
|
+
options: {},
|
12246
|
+
screens: {
|
12247
|
+
preview: {
|
12248
|
+
default: {
|
12249
|
+
elements: {
|
12250
|
+
preview_header: {
|
12251
|
+
title: "Get Started",
|
12252
|
+
sub_title: "Setup your audio and video before joining"
|
12253
|
+
},
|
12254
|
+
join_form: {
|
12255
|
+
join_btn_type: JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_ONLY,
|
12256
|
+
join_btn_label: "Join Now",
|
12257
|
+
go_live_btn_label: "Go Live"
|
12258
|
+
}
|
12259
|
+
}
|
12260
|
+
}
|
12261
|
+
},
|
12262
|
+
conferencing: {
|
12263
|
+
default: {
|
12264
|
+
elements: {
|
12265
|
+
chat: {
|
12266
|
+
public_chat_enabled: true,
|
12267
|
+
private_chat_enabled: true,
|
12268
|
+
chat_title: "Chat",
|
12269
|
+
allow_pinning_messages: true,
|
12270
|
+
message_placeholder: "Send a message...",
|
12271
|
+
roles_whitelist: [],
|
12272
|
+
real_time_controls: {
|
12273
|
+
can_disable_chat: true,
|
12274
|
+
can_block_user: true,
|
12275
|
+
can_hide_message: true
|
12276
|
+
}
|
12277
|
+
},
|
12278
|
+
participant_list: {},
|
12279
|
+
video_tile_layout: {
|
12280
|
+
grid: {
|
12281
|
+
enable_local_tile_inset: true,
|
12282
|
+
prominent_roles: [],
|
12283
|
+
enable_spotlighting_peer: true
|
12284
|
+
}
|
12285
|
+
},
|
12286
|
+
emoji_reactions: {}
|
12287
|
+
}
|
12288
|
+
}
|
12289
|
+
},
|
12290
|
+
leave: {}
|
12291
|
+
}
|
12292
|
+
};
|
12293
|
+
|
12294
|
+
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
12295
|
+
var fetchWithRetry = (..._0) => __async(void 0, [..._0], function* (url = "", options = {}) {
|
12296
|
+
const MAX_RETRIES = 4;
|
12297
|
+
let error = Error("something went wrong");
|
12298
|
+
for (let i = 0; i < MAX_RETRIES; i++) {
|
12299
|
+
try {
|
12300
|
+
return yield fetch(url, options);
|
12301
|
+
} catch (err) {
|
12302
|
+
error = err;
|
12303
|
+
}
|
12304
|
+
}
|
12305
|
+
console.error("Fetch failed after max retries", { url, options });
|
12306
|
+
throw error;
|
12307
|
+
});
|
12308
|
+
var useFetchRoomLayout = ({
|
12309
|
+
endpoint = "",
|
12310
|
+
authToken = ""
|
12311
|
+
}) => {
|
12312
|
+
const [layout, setLayout] = useState5(void 0);
|
12313
|
+
const layoutResp = useRef5();
|
12314
|
+
const isFetchInProgress = useRef5(false);
|
12315
|
+
const updateRoomLayoutForRole = useCallback5((role) => {
|
12316
|
+
var _a8;
|
12317
|
+
if (!layoutResp.current) {
|
12318
|
+
return;
|
12319
|
+
}
|
12320
|
+
const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
|
12321
|
+
if (layout2) {
|
12322
|
+
setLayout(layout2);
|
12323
|
+
}
|
12324
|
+
}, []);
|
12325
|
+
useEffect4(() => {
|
12326
|
+
(() => __async(void 0, null, function* () {
|
12327
|
+
var _a8, _b7;
|
12328
|
+
if (isFetchInProgress.current || !authToken) {
|
12329
|
+
return;
|
12330
|
+
}
|
12331
|
+
isFetchInProgress.current = true;
|
12332
|
+
try {
|
12333
|
+
const resp = yield fetchWithRetry(endpoint || "https://api.100ms.live/v2/layouts/ui", {
|
12334
|
+
headers: {
|
12335
|
+
Authorization: `Bearer ${authToken}`
|
12336
|
+
}
|
12337
|
+
});
|
12338
|
+
layoutResp.current = yield resp.json();
|
12339
|
+
} catch (e) {
|
12340
|
+
console.error("[Room Layout API]: Failed to fetch / process room layout. Resorting to default layout.", e);
|
12341
|
+
layoutResp.current = {
|
12342
|
+
data: [defaultLayout]
|
12343
|
+
};
|
12344
|
+
}
|
12345
|
+
let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
|
12346
|
+
if (!layoutForRole) {
|
12347
|
+
console.error(
|
12348
|
+
"[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
|
12349
|
+
);
|
12350
|
+
layoutForRole = defaultLayout;
|
12351
|
+
}
|
12352
|
+
const layout2 = layoutForRole;
|
12353
|
+
setLayout(layout2);
|
12354
|
+
isFetchInProgress.current = false;
|
12355
|
+
}))();
|
12356
|
+
}, [authToken, endpoint]);
|
12357
|
+
return { layout, updateRoomLayoutForRole };
|
12358
|
+
};
|
12359
|
+
|
12360
|
+
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
12361
|
+
var RoomLayoutContext = React22.createContext(void 0);
|
12362
|
+
function customizer(objValue, srcValue) {
|
12363
|
+
if ((0, import_lodash2.isArray)(objValue) || (0, import_lodash2.isArray)(srcValue)) {
|
12364
|
+
return srcValue;
|
12365
|
+
}
|
12366
|
+
return void 0;
|
12367
|
+
}
|
12368
|
+
var RoomLayoutProvider = ({
|
12369
|
+
children,
|
12370
|
+
roomLayoutEndpoint,
|
12371
|
+
overrideLayout
|
12372
|
+
}) => {
|
12373
|
+
const authToken = useAuthToken();
|
12374
|
+
const { layout, updateRoomLayoutForRole } = useFetchRoomLayout({ authToken, endpoint: roomLayoutEndpoint });
|
12375
|
+
const mergedLayout = authToken && layout ? (0, import_lodash2.mergeWith)(layout, overrideLayout, customizer) : layout;
|
12376
|
+
return /* @__PURE__ */ React22.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole } }, children);
|
12377
|
+
};
|
12378
|
+
var useRoomLayout = () => {
|
12379
|
+
var _a8;
|
12380
|
+
return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
|
12381
|
+
};
|
12382
|
+
var useUpdateRoomLayout = () => {
|
12383
|
+
var _a8;
|
12384
|
+
return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
|
12385
|
+
};
|
12386
|
+
|
12387
|
+
// src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts
|
12388
|
+
function useRoomLayoutScreen({
|
12389
|
+
screen
|
12390
|
+
}) {
|
12391
|
+
var _a8;
|
12392
|
+
const roomLayout = useRoomLayout();
|
12393
|
+
const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
|
12394
|
+
return screenProps;
|
12395
|
+
}
|
12396
|
+
function useRoomLayoutPreviewScreen() {
|
12397
|
+
var _a8;
|
12398
|
+
const screenProps = useRoomLayoutScreen({ screen: "preview" });
|
12399
|
+
const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
|
12400
|
+
let elements;
|
12401
|
+
let screenType;
|
12402
|
+
if (isPreviewScreenEnabled) {
|
12403
|
+
screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
|
12404
|
+
elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
12405
|
+
}
|
12406
|
+
return {
|
12407
|
+
isPreviewScreenEnabled,
|
12408
|
+
elements,
|
12409
|
+
screenType
|
12410
|
+
};
|
12411
|
+
}
|
12412
|
+
function useRoomLayoutConferencingScreen() {
|
12413
|
+
var _a8, _b7;
|
12414
|
+
const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
|
12415
|
+
const screenType = Object.keys(screenProps)[0];
|
12416
|
+
const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
12417
|
+
const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
|
12418
|
+
return {
|
12419
|
+
hideSections,
|
12420
|
+
elements,
|
12421
|
+
screenType
|
12422
|
+
};
|
12423
|
+
}
|
12424
|
+
function useRoomLayoutLeaveScreen() {
|
12425
|
+
const screenProps = useRoomLayoutScreen({ screen: "leave" });
|
12426
|
+
const isLeaveScreenEnabled = !!screenProps;
|
12427
|
+
return {
|
12428
|
+
isLeaveScreenEnabled
|
12429
|
+
};
|
12430
|
+
}
|
12431
|
+
|
12220
12432
|
// src/Prebuilt/components/AppData/useSidepane.js
|
12221
12433
|
init_define_process_env();
|
12222
|
-
import { useCallback as
|
12434
|
+
import { useCallback as useCallback6 } from "react";
|
12223
12435
|
import { selectAppData as selectAppData2, useHMSActions as useHMSActions3, useHMSStore as useHMSStore4, useHMSVanillaStore as useHMSVanillaStore3 } from "@100mslive/react-sdk";
|
12224
12436
|
var useIsSidepaneTypeOpen = (sidepaneType) => {
|
12225
12437
|
if (!sidepaneType) {
|
@@ -12234,7 +12446,7 @@ var useSidepaneState = () => {
|
|
12234
12446
|
var useSidepaneToggle = (sidepaneType) => {
|
12235
12447
|
const hmsActions = useHMSActions3();
|
12236
12448
|
const vanillaStore = useHMSVanillaStore3();
|
12237
|
-
const toggleSidepane =
|
12449
|
+
const toggleSidepane = useCallback6(() => {
|
12238
12450
|
const isOpen = vanillaStore.getState(selectAppData2(APP_DATA.sidePane)) === sidepaneType;
|
12239
12451
|
hmsActions.setAppData(APP_DATA.sidePane, !isOpen ? sidepaneType : "");
|
12240
12452
|
}, [vanillaStore, hmsActions, sidepaneType]);
|
@@ -12244,7 +12456,7 @@ var usePollViewToggle = () => {
|
|
12244
12456
|
const hmsActions = useHMSActions3();
|
12245
12457
|
const { view, setPollState } = usePollViewState();
|
12246
12458
|
const isOpen = useSidepaneState() === SIDE_PANE_OPTIONS.POLLS;
|
12247
|
-
const togglePollView =
|
12459
|
+
const togglePollView = useCallback6(
|
12248
12460
|
(id) => {
|
12249
12461
|
id = typeof id === "string" ? id : void 0;
|
12250
12462
|
const newView = id ? POLL_VIEWS.VOTE : isOpen && view ? null : POLL_VIEWS.CREATE_POLL_QUIZ;
|
@@ -12260,7 +12472,7 @@ var usePollViewToggle = () => {
|
|
12260
12472
|
};
|
12261
12473
|
var useSidepaneReset = () => {
|
12262
12474
|
const hmsActions = useHMSActions3();
|
12263
|
-
const resetSidepane =
|
12475
|
+
const resetSidepane = useCallback6(() => {
|
12264
12476
|
hmsActions.setAppData(APP_DATA.sidePane, "");
|
12265
12477
|
hmsActions.setAppData(APP_DATA.pollInView, "");
|
12266
12478
|
}, [hmsActions]);
|
@@ -12302,25 +12514,29 @@ var initialAppData = {
|
|
12302
12514
|
[APP_DATA.activeScreensharePeerId]: "",
|
12303
12515
|
[APP_DATA.disableNotifications]: false,
|
12304
12516
|
[APP_DATA.background]: "none",
|
12305
|
-
[APP_DATA.backgroundType]: "none",
|
12306
12517
|
[APP_DATA.pollState]: {
|
12307
12518
|
[POLL_STATE.pollInView]: "",
|
12308
12519
|
[POLL_STATE.view]: ""
|
12309
12520
|
}
|
12310
12521
|
};
|
12311
|
-
var AppData =
|
12522
|
+
var AppData = React23.memo(() => {
|
12523
|
+
var _a8;
|
12312
12524
|
const hmsActions = useHMSActions4();
|
12313
12525
|
const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
|
12314
12526
|
const appData = useHMSStore5(selectFullAppData);
|
12315
|
-
|
12527
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
12528
|
+
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
12529
|
+
const isMobile = useMedia(config.media.md);
|
12530
|
+
const { isLocalVideoEnabled } = useAVToggle();
|
12531
|
+
useEffect5(() => {
|
12316
12532
|
hmsActions.initAppData(__spreadValues(__spreadValues({}, initialAppData), appData));
|
12317
12533
|
hmsActions.setFrameworkInfo({
|
12318
12534
|
type: "react-web",
|
12319
12535
|
isPrebuilt: true,
|
12320
|
-
version:
|
12536
|
+
version: React23.version
|
12321
12537
|
});
|
12322
12538
|
}, [hmsActions]);
|
12323
|
-
|
12539
|
+
useEffect5(() => {
|
12324
12540
|
const uiSettings = preferences || {};
|
12325
12541
|
const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
|
12326
12542
|
[UI_SETTINGS.isAudioOnly]: void 0,
|
@@ -12328,13 +12544,28 @@ var AppData = React22.memo(() => {
|
|
12328
12544
|
});
|
12329
12545
|
hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
|
12330
12546
|
}, [preferences, hmsActions]);
|
12331
|
-
|
12547
|
+
useEffect5(() => {
|
12332
12548
|
if (!preferences.subscribedNotifications) {
|
12333
12549
|
return;
|
12334
12550
|
}
|
12335
12551
|
hmsActions.setAppData(APP_DATA.subscribedNotifications, preferences.subscribedNotifications, true);
|
12336
12552
|
}, [preferences.subscribedNotifications, hmsActions]);
|
12337
|
-
|
12553
|
+
useEffect5(() => {
|
12554
|
+
var _a9, _b7;
|
12555
|
+
let defaultMediaURL;
|
12556
|
+
(_b7 = (_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) == null ? void 0 : _b7.forEach((media) => {
|
12557
|
+
if (media.default && media.url) {
|
12558
|
+
defaultMediaURL = media.url;
|
12559
|
+
}
|
12560
|
+
});
|
12561
|
+
if (defaultMediaURL) {
|
12562
|
+
hmsActions.setAppData(APP_DATA.background, defaultMediaURL);
|
12563
|
+
if (isLocalVideoEnabled && !isMobile) {
|
12564
|
+
toggleVB();
|
12565
|
+
}
|
12566
|
+
}
|
12567
|
+
}, [hmsActions, (_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media, toggleVB, isLocalVideoEnabled, isMobile]);
|
12568
|
+
return /* @__PURE__ */ React23.createElement(ResetStreamingStart, null);
|
12338
12569
|
});
|
12339
12570
|
var ResetStreamingStart = () => {
|
12340
12571
|
const { isHLSRunning, isRTMPRunning, isBrowserRecordingOn } = useRecordingStreaming();
|
@@ -12346,19 +12577,19 @@ var ResetStreamingStart = () => {
|
|
12346
12577
|
const [rtmpStarted, setRTMPStarted] = useSetAppDataByKey(APP_DATA.rtmpStarted);
|
12347
12578
|
const toggleStreaming = useSidepaneToggle(SIDE_PANE_OPTIONS.STREAMING);
|
12348
12579
|
const isStreamingOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.STREAMING);
|
12349
|
-
|
12580
|
+
useEffect5(() => {
|
12350
12581
|
if (isBrowserRecordingOn && recordingStarted) {
|
12351
12582
|
setRecordingStarted(false);
|
12352
12583
|
}
|
12353
12584
|
}, [isBrowserRecordingOn, recordingStarted, setRecordingStarted]);
|
12354
|
-
|
12585
|
+
useEffect5(() => {
|
12355
12586
|
if (roomState === HMSRoomState.Disconnected) {
|
12356
12587
|
setHLSStarted(false);
|
12357
12588
|
setRecordingStarted(false);
|
12358
12589
|
setRTMPStarted(false);
|
12359
12590
|
}
|
12360
12591
|
}, [roomState, setHLSStarted, setRTMPStarted, setRecordingStarted]);
|
12361
|
-
|
12592
|
+
useEffect5(() => {
|
12362
12593
|
if (isHLSRunning || hlsError) {
|
12363
12594
|
if (hlsStarted) {
|
12364
12595
|
setHLSStarted(false);
|
@@ -12368,7 +12599,7 @@ var ResetStreamingStart = () => {
|
|
12368
12599
|
}
|
12369
12600
|
}
|
12370
12601
|
}, [isHLSRunning, hlsStarted, setHLSStarted, hlsError, isStreamingOpen, toggleStreaming]);
|
12371
|
-
|
12602
|
+
useEffect5(() => {
|
12372
12603
|
if (isRTMPRunning || rtmpError || isBrowserRecordingOn) {
|
12373
12604
|
if (rtmpStarted) {
|
12374
12605
|
setRTMPStarted(false);
|
@@ -12383,15 +12614,15 @@ var ResetStreamingStart = () => {
|
|
12383
12614
|
|
12384
12615
|
// src/Prebuilt/components/AuthToken.jsx
|
12385
12616
|
init_define_process_env();
|
12386
|
-
import
|
12617
|
+
import React25, { useEffect as useEffect6, useState as useState6 } from "react";
|
12387
12618
|
import { useSessionStorage } from "react-use";
|
12388
12619
|
import { v4 as uuid } from "uuid";
|
12389
12620
|
import { useHMSActions as useHMSActions5 } from "@100mslive/react-sdk";
|
12390
12621
|
|
12391
12622
|
// src/Prebuilt/AppContext.tsx
|
12392
12623
|
init_define_process_env();
|
12393
|
-
import
|
12394
|
-
var HMSPrebuiltContext =
|
12624
|
+
import React24, { useContext as useContext2 } from "react";
|
12625
|
+
var HMSPrebuiltContext = React24.createContext({
|
12395
12626
|
roomCode: "",
|
12396
12627
|
userName: "",
|
12397
12628
|
userId: "",
|
@@ -12413,14 +12644,14 @@ var useHMSPrebuiltContext = () => {
|
|
12413
12644
|
var transaction_error_default = 'data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M70 68.3333V26.6667C70 24.825 68.5083 23.3333 66.6667 23.3333H13.3333C11.4917 23.3333 10 24.825 10 26.6667V68.3333C10 70.175 11.4917 71.6667 13.3333 71.6667H66.6667C68.5083 71.6667 70 70.175 70 68.3333Z" fill="%23272A31"/>%0A<path d="M20 31.6667H60C61.8417 31.6667 63.3333 33.1583 63.3333 35C63.3333 36.8417 61.8417 38.3333 60 38.3333H20C18.1583 38.3333 16.6667 36.8417 16.6667 35C16.6667 33.1583 18.1583 31.6667 20 31.6667Z" fill="%238F9099"/>%0A<path d="M58.3333 36.6667V10C58.3333 9.08 57.5867 8.33334 56.6667 8.33334H55C55 9.25334 54.2533 10 53.3333 10C52.4133 10 51.6667 9.25334 51.6667 8.33334H48.3333C48.3333 9.25334 47.5867 10 46.6667 10C45.7467 10 45 9.25334 45 8.33334H41.6667C41.6667 9.25334 40.92 10 40 10C39.08 10 38.3333 9.25334 38.3333 8.33334H35C35 9.25334 34.2533 10 33.3333 10C32.4133 10 31.6667 9.25334 31.6667 8.33334H28.3333C28.3333 9.25334 27.5867 10 26.6667 10C25.7467 10 25 9.25334 25 8.33334H23.3333C22.4133 8.33334 21.6667 9.08 21.6667 10V36.6667H58.3333Z" fill="%23C74E5B"/>%0A<path d="M21.6667 43.3333H58.3333C60.175 43.3333 61.6667 44.825 61.6667 46.6667V50C61.6667 51.8417 60.175 53.3333 58.3333 53.3333H21.6667C19.825 53.3333 18.3333 51.8417 18.3333 50V46.6667C18.3333 44.825 19.825 43.3333 21.6667 43.3333Z" fill="%23C5C6D0"/>%0A<path d="M60 66.6667H55C54.08 66.6667 53.3333 65.92 53.3333 65V60C53.3333 59.08 54.08 58.3333 55 58.3333H60C60.92 58.3333 61.6667 59.08 61.6667 60V65C61.6667 65.92 60.92 66.6667 60 66.6667Z" fill="%23C5C6D0"/>%0A<path d="M25 66.6667H20C19.08 66.6667 18.3333 65.92 18.3333 65V60C18.3333 59.08 19.08 58.3333 20 58.3333H25C25.92 58.3333 26.6667 59.08 26.6667 60V65C26.6667 65.92 25.92 66.6667 25 66.6667ZM36.6667 66.6667H31.6667C30.7467 66.6667 30 65.92 30 65V60C30 59.08 30.7467 58.3333 31.6667 58.3333H36.6667C37.5867 58.3333 38.3333 59.08 38.3333 60V65C38.3333 65.92 37.5867 66.6667 36.6667 66.6667ZM48.3333 66.6667H43.3333C42.4133 66.6667 41.6667 65.92 41.6667 65V60C41.6667 59.08 42.4133 58.3333 43.3333 58.3333H48.3333C49.2533 58.3333 50 59.08 50 60V65C50 65.92 49.2533 66.6667 48.3333 66.6667Z" fill="%23C5C6D0"/>%0A<path d="M58.3333 35H21.6667V38.3333H58.3333V35Z" fill="%23C74E5B"/>%0A<path opacity="0.05" d="M45.3033 32.315C44.6383 32.315 44.01 32.0567 43.5367 31.585L40 28.0467L36.465 31.5817C35.9917 32.0533 35.365 32.3133 34.6967 32.3133C34.0283 32.3133 33.4 32.0533 32.9267 31.58L31.75 30.4033C31.2783 29.9333 31.0183 29.3033 31.0183 28.6333C31.0183 27.9667 31.2783 27.3383 31.75 26.8667L35.2867 23.3333L31.7517 19.7983C31.28 19.3283 31.02 18.7 31.02 18.0317C31.02 17.3617 31.28 16.7333 31.7517 16.2617L32.93 15.0833C33.4017 14.6117 34.0283 14.3517 34.6983 14.3517C35.3633 14.3517 35.9917 14.61 36.465 15.0817L40 18.62L43.535 15.0833C44.0083 14.6117 44.635 14.3517 45.3033 14.3517C45.9683 14.3517 46.5967 14.61 47.07 15.0817L48.25 16.2617C48.7217 16.7317 48.9817 17.3617 48.9817 18.0317C48.9817 18.6983 48.7217 19.3267 48.25 19.7983L44.7117 23.3333L48.2483 26.87C49.2217 27.84 49.2233 29.425 48.2517 30.4017L47.07 31.5833C46.5983 32.055 45.9717 32.315 45.3033 32.315Z" fill="black"/>%0A<path opacity="0.07" d="M45.3033 31.4817C44.8583 31.4817 44.44 31.3083 44.125 30.995L40 26.8683L35.875 30.9933C35.56 31.3083 35.1417 31.48 34.6967 31.48C34.25 31.48 33.8317 31.3067 33.5183 30.9917L32.34 29.8133C32.025 29.4983 31.8517 29.08 31.8517 28.6333C31.8517 28.1883 32.025 27.77 32.34 27.455L36.465 23.3333L32.34 19.2083C32.0267 18.895 31.8517 18.4767 31.8517 18.0317C31.8517 17.585 32.025 17.1667 32.34 16.8517L33.5183 15.6733C33.8317 15.36 34.25 15.1867 34.6967 15.1867C35.1417 15.1867 35.56 15.36 35.875 15.6733L40 19.7983L44.125 15.6717C44.44 15.3567 44.8583 15.185 45.3033 15.185C45.7483 15.185 46.1667 15.3583 46.4817 15.6717L47.66 16.8517C47.975 17.1667 48.1483 17.585 48.1483 18.0317C48.1483 18.4767 47.975 18.895 47.66 19.21L43.5333 23.3333L47.66 27.46C48.31 28.1067 48.31 29.1633 47.6617 29.815L46.4817 30.995C46.1667 31.3083 45.7483 31.4817 45.3033 31.4817Z" fill="black"/>%0A<path d="M42.3567 23.3333L47.0717 18.6183C47.3967 18.2933 47.3967 17.765 47.0717 17.44L45.8933 16.2617C45.5667 15.9367 45.04 15.9367 44.715 16.2617L40 20.9767L35.2867 16.2633C34.9617 15.9383 34.4333 15.9383 34.1083 16.2633L32.93 17.4417C32.605 17.7667 32.605 18.295 32.93 18.62L37.6433 23.3333L32.93 28.0467C32.605 28.3717 32.605 28.9 32.93 29.225L34.1083 30.4033C34.4333 30.7283 34.9617 30.7283 35.2867 30.4033L40 25.69L44.715 30.405C45.04 30.73 45.5683 30.73 45.8933 30.405L47.0717 29.2267C47.3967 28.9 47.3967 28.3733 47.0717 28.0483L42.3567 23.3333Z" fill="%23FFEDEC"/>%0A</svg>%0A';
|
12414
12645
|
|
12415
12646
|
// src/Prebuilt/components/AuthToken.jsx
|
12416
|
-
var AuthToken =
|
12647
|
+
var AuthToken = React25.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken }) => {
|
12417
12648
|
const hmsActions = useHMSActions5();
|
12418
12649
|
const { roomCode, userId } = useHMSPrebuiltContext();
|
12419
|
-
const [error, setError] =
|
12650
|
+
const [error, setError] = useState6({ title: "", body: "" });
|
12420
12651
|
let authToken = defaultAuthToken;
|
12421
12652
|
const [, setAuthTokenInAppData] = useSetAppDataByKey(APP_DATA.authToken);
|
12422
12653
|
const [savedUserId, setSavedUserId] = useSessionStorage(UserPreferencesKeys.USER_ID);
|
12423
|
-
|
12654
|
+
useEffect6(() => {
|
12424
12655
|
if (authToken) {
|
12425
12656
|
setAuthTokenInAppData(authToken);
|
12426
12657
|
return;
|
@@ -12444,7 +12675,7 @@ var AuthToken = React24.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken })
|
|
12444
12675
|
setSavedUserId
|
12445
12676
|
]);
|
12446
12677
|
if (error.title) {
|
12447
|
-
return /* @__PURE__ */
|
12678
|
+
return /* @__PURE__ */ React25.createElement(Dialog.Root, { open: true }, /* @__PURE__ */ React25.createElement(
|
12448
12679
|
Dialog.Content,
|
12449
12680
|
{
|
12450
12681
|
css: {
|
@@ -12456,9 +12687,9 @@ var AuthToken = React24.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken })
|
|
12456
12687
|
alignItems: "center"
|
12457
12688
|
}
|
12458
12689
|
},
|
12459
|
-
/* @__PURE__ */
|
12460
|
-
/* @__PURE__ */
|
12461
|
-
/* @__PURE__ */
|
12690
|
+
/* @__PURE__ */ React25.createElement("img", { src: transaction_error_default, height: 80, width: 80 }),
|
12691
|
+
/* @__PURE__ */ React25.createElement(Text, { variant: "h4", css: { textAlign: "center", mb: "$4", mt: "$10" } }, error.title),
|
12692
|
+
/* @__PURE__ */ React25.createElement(Text, { css: { c: "$on_surface_medium", textAlign: "center" } }, error.body)
|
12462
12693
|
));
|
12463
12694
|
}
|
12464
12695
|
return null;
|
@@ -12520,20 +12751,20 @@ import {
|
|
12520
12751
|
// src/Prebuilt/components/Footer/Footer.tsx
|
12521
12752
|
init_define_process_env();
|
12522
12753
|
import React77, { useEffect as useEffect18 } from "react";
|
12523
|
-
import { useMedia as
|
12754
|
+
import { useMedia as useMedia10 } from "react-use";
|
12524
12755
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
12525
|
-
import { useAVToggle as
|
12756
|
+
import { useAVToggle as useAVToggle4 } from "@100mslive/react-sdk";
|
12526
12757
|
|
12527
12758
|
// src/Prebuilt/components/AudioVideoToggle.jsx
|
12528
12759
|
init_define_process_env();
|
12529
|
-
import
|
12760
|
+
import React27, { Fragment as Fragment2 } from "react";
|
12530
12761
|
import {
|
12531
12762
|
DeviceType,
|
12532
12763
|
HMSRoomState as HMSRoomState2,
|
12533
12764
|
selectLocalVideoTrackID,
|
12534
12765
|
selectRoomState as selectRoomState2,
|
12535
12766
|
selectVideoTrackByID,
|
12536
|
-
useAVToggle,
|
12767
|
+
useAVToggle as useAVToggle2,
|
12537
12768
|
useDevices,
|
12538
12769
|
useHMSActions as useHMSActions6,
|
12539
12770
|
useHMSStore as useHMSStore6
|
@@ -12542,7 +12773,7 @@ import { CameraFlipIcon, MicOffIcon, MicOnIcon, VideoOffIcon, VideoOnIcon } from
|
|
12542
12773
|
|
12543
12774
|
// src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx
|
12544
12775
|
init_define_process_env();
|
12545
|
-
import
|
12776
|
+
import React26 from "react";
|
12546
12777
|
import { VerticalMenuIcon } from "@100mslive/react-icons";
|
12547
12778
|
|
12548
12779
|
// src/Prebuilt/IconButton.tsx
|
@@ -12625,7 +12856,7 @@ var IconButtonWithOptions = ({
|
|
12625
12856
|
}) => {
|
12626
12857
|
const bgCss = { backgroundColor: disabled ? "$surface_brighter" : active ? "$transparent" : "$secondary_dim" };
|
12627
12858
|
const iconCss = { color: disabled ? "$on_surface_low" : active ? "$on_surface_high" : "$on_primary_high" };
|
12628
|
-
return /* @__PURE__ */
|
12859
|
+
return /* @__PURE__ */ React26.createElement(Flex, null, /* @__PURE__ */ React26.createElement(IconSection, { css: bgCss, onClick }, /* @__PURE__ */ React26.createElement(Tooltip, { disabled: !tooltipMessage, title: tooltipMessage }, /* @__PURE__ */ React26.createElement(Flex, { align: "center", justify: "center", css: iconCss }, icon))), /* @__PURE__ */ React26.createElement(Dropdown.Root, null, /* @__PURE__ */ React26.createElement(
|
12629
12860
|
Dropdown.Trigger,
|
12630
12861
|
{
|
12631
12862
|
asChild: true,
|
@@ -12636,8 +12867,8 @@ var IconButtonWithOptions = ({
|
|
12636
12867
|
}
|
12637
12868
|
}
|
12638
12869
|
},
|
12639
|
-
/* @__PURE__ */
|
12640
|
-
), /* @__PURE__ */
|
12870
|
+
/* @__PURE__ */ React26.createElement(OptionsSection, { css: bgCss }, /* @__PURE__ */ React26.createElement(Tooltip, { title: "View Options" }, /* @__PURE__ */ React26.createElement(Box, { css: iconCss }, /* @__PURE__ */ React26.createElement(VerticalMenuIcon, null))))
|
12871
|
+
), /* @__PURE__ */ React26.createElement(
|
12641
12872
|
Dropdown.Content,
|
12642
12873
|
{
|
12643
12874
|
sideOffset: 5,
|
@@ -12649,7 +12880,7 @@ var IconButtonWithOptions = ({
|
|
12649
12880
|
border: "none"
|
12650
12881
|
}
|
12651
12882
|
},
|
12652
|
-
options.map((option, index) => /* @__PURE__ */
|
12883
|
+
options.map((option, index) => /* @__PURE__ */ React26.createElement(
|
12653
12884
|
Dropdown.Item,
|
12654
12885
|
{
|
12655
12886
|
key: option.title,
|
@@ -12720,7 +12951,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12720
12951
|
const { videoInput, audioInput } = allDevices;
|
12721
12952
|
const formattedVideoInputList = videoInput == null ? void 0 : videoInput.map((videoInput2) => ({
|
12722
12953
|
active: selectedDeviceIDs.videoInput === videoInput2.deviceId,
|
12723
|
-
content: /* @__PURE__ */
|
12954
|
+
content: /* @__PURE__ */ React27.createElement(
|
12724
12955
|
Text,
|
12725
12956
|
{
|
12726
12957
|
variant: "sm",
|
@@ -12736,7 +12967,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12736
12967
|
}));
|
12737
12968
|
const formattedAudioInputList = audioInput == null ? void 0 : audioInput.map((audioInput2) => ({
|
12738
12969
|
active: selectedDeviceIDs.audioInput === audioInput2.deviceId,
|
12739
|
-
content: /* @__PURE__ */
|
12970
|
+
content: /* @__PURE__ */ React27.createElement(
|
12740
12971
|
Text,
|
12741
12972
|
{
|
12742
12973
|
variant: "sm",
|
@@ -12750,14 +12981,14 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12750
12981
|
),
|
12751
12982
|
title: audioInput2.label
|
12752
12983
|
}));
|
12753
|
-
const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } =
|
12984
|
+
const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle2();
|
12754
12985
|
const actions = useHMSActions6();
|
12755
12986
|
const videoTrackId = useHMSStore6(selectLocalVideoTrackID);
|
12756
12987
|
const localVideoTrack = useHMSStore6(selectVideoTrackByID(videoTrackId));
|
12757
12988
|
const roomState = useHMSStore6(selectRoomState2);
|
12758
12989
|
const hasAudioDevices = (audioInput == null ? void 0 : audioInput.length) > 0;
|
12759
12990
|
const hasVideoDevices = (videoInput == null ? void 0 : videoInput.length) > 0;
|
12760
|
-
return /* @__PURE__ */
|
12991
|
+
return /* @__PURE__ */ React27.createElement(Fragment2, null, toggleAudio ? hideOptions || !hasAudioDevices ? /* @__PURE__ */ React27.createElement(Tooltip, { title: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)` }, /* @__PURE__ */ React27.createElement(
|
12761
12992
|
IconButton_default,
|
12762
12993
|
{
|
12763
12994
|
active: isLocalAudioEnabled,
|
@@ -12767,20 +12998,20 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12767
12998
|
"data-testid": "audio_btn",
|
12768
12999
|
className: "__cancel-drag-event"
|
12769
13000
|
},
|
12770
|
-
!isLocalAudioEnabled ? /* @__PURE__ */
|
12771
|
-
)) : /* @__PURE__ */
|
13001
|
+
!isLocalAudioEnabled ? /* @__PURE__ */ React27.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React27.createElement(MicOnIcon, { "data-testid": "audio_on_btn" })
|
13002
|
+
)) : /* @__PURE__ */ React27.createElement(
|
12772
13003
|
IconButtonWithOptions,
|
12773
13004
|
{
|
12774
13005
|
options: formattedAudioInputList,
|
12775
13006
|
disabled: !toggleAudio,
|
12776
13007
|
onDisabledClick: toggleAudio,
|
12777
13008
|
tooltipMessage: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)`,
|
12778
|
-
icon: !isLocalAudioEnabled ? /* @__PURE__ */
|
13009
|
+
icon: !isLocalAudioEnabled ? /* @__PURE__ */ React27.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React27.createElement(MicOnIcon, { "data-testid": "audio_on_btn" }),
|
12779
13010
|
active: isLocalAudioEnabled,
|
12780
13011
|
onClick: toggleAudio,
|
12781
13012
|
key: "toggleAudio"
|
12782
13013
|
}
|
12783
|
-
) : null, toggleVideo ? hideOptions || !hasVideoDevices ? /* @__PURE__ */
|
13014
|
+
) : null, toggleVideo ? hideOptions || !hasVideoDevices ? /* @__PURE__ */ React27.createElement(Tooltip, { title: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)` }, /* @__PURE__ */ React27.createElement(
|
12784
13015
|
IconButton_default,
|
12785
13016
|
{
|
12786
13017
|
key: "toggleVideo",
|
@@ -12790,20 +13021,20 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12790
13021
|
"data-testid": "video_btn",
|
12791
13022
|
className: "__cancel-drag-event"
|
12792
13023
|
},
|
12793
|
-
!isLocalVideoEnabled ? /* @__PURE__ */
|
12794
|
-
)) : /* @__PURE__ */
|
13024
|
+
!isLocalVideoEnabled ? /* @__PURE__ */ React27.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React27.createElement(VideoOnIcon, { "data-testid": "video_on_btn" })
|
13025
|
+
)) : /* @__PURE__ */ React27.createElement(
|
12795
13026
|
IconButtonWithOptions,
|
12796
13027
|
{
|
12797
13028
|
disabled: !toggleVideo,
|
12798
13029
|
onDisabledClick: toggleVideo,
|
12799
13030
|
options: formattedVideoInputList,
|
12800
13031
|
tooltipMessage: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)`,
|
12801
|
-
icon: !isLocalVideoEnabled ? /* @__PURE__ */
|
13032
|
+
icon: !isLocalVideoEnabled ? /* @__PURE__ */ React27.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React27.createElement(VideoOnIcon, { "data-testid": "video_on_btn" }),
|
12802
13033
|
key: "toggleVideo",
|
12803
13034
|
active: isLocalVideoEnabled,
|
12804
13035
|
onClick: toggleVideo
|
12805
13036
|
}
|
12806
|
-
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */
|
13037
|
+
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */ React27.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ React27.createElement(
|
12807
13038
|
IconButton_default,
|
12808
13039
|
{
|
12809
13040
|
onClick: () => __async(void 0, null, function* () {
|
@@ -12817,14 +13048,14 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12817
13048
|
}
|
12818
13049
|
})
|
12819
13050
|
},
|
12820
|
-
/* @__PURE__ */
|
13051
|
+
/* @__PURE__ */ React27.createElement(CameraFlipIcon, null)
|
12821
13052
|
)) : null);
|
12822
13053
|
};
|
12823
13054
|
|
12824
13055
|
// src/Prebuilt/components/EmojiReaction.jsx
|
12825
13056
|
init_define_process_env();
|
12826
|
-
import
|
12827
|
-
import { useMedia } from "react-use";
|
13057
|
+
import React29, { Fragment as Fragment3, useState as useState7 } from "react";
|
13058
|
+
import { useMedia as useMedia2 } from "react-use";
|
12828
13059
|
import data from "@emoji-mart/data/sets/14/apple.json";
|
12829
13060
|
import { init } from "emoji-mart";
|
12830
13061
|
import {
|
@@ -12838,13 +13069,13 @@ import { EmojiIcon } from "@100mslive/react-icons";
|
|
12838
13069
|
|
12839
13070
|
// src/Prebuilt/components/Footer/EmojiCard.jsx
|
12840
13071
|
init_define_process_env();
|
12841
|
-
import
|
13072
|
+
import React28 from "react";
|
12842
13073
|
var emojiReactionList = [
|
12843
13074
|
[{ emojiId: "+1" }, { emojiId: "-1" }, { emojiId: "wave" }, { emojiId: "clap" }, { emojiId: "fire" }],
|
12844
13075
|
[{ emojiId: "tada" }, { emojiId: "heart_eyes" }, { emojiId: "joy" }, { emojiId: "open_mouth" }, { emojiId: "sob" }]
|
12845
13076
|
];
|
12846
13077
|
var EmojiCard = ({ sendReaction }) => {
|
12847
|
-
return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */
|
13078
|
+
return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */ React28.createElement(Flex, { key: index, justify: "between", css: { mb: "$8" } }, emojiLine.map((emoji) => /* @__PURE__ */ React28.createElement(EmojiContainer, { key: emoji.emojiId, onClick: () => sendReaction(emoji.emojiId) }, /* @__PURE__ */ React28.createElement("em-emoji", { id: emoji.emojiId, size: "100%", set: "apple" })))));
|
12848
13079
|
};
|
12849
13080
|
var EmojiContainer = styled("span", {
|
12850
13081
|
position: "relative",
|
@@ -12861,10 +13092,10 @@ var EmojiContainer = styled("span", {
|
|
12861
13092
|
|
12862
13093
|
// src/Prebuilt/components/hooks/useDropdownList.ts
|
12863
13094
|
init_define_process_env();
|
12864
|
-
import { useEffect as
|
13095
|
+
import { useEffect as useEffect7 } from "react";
|
12865
13096
|
var useDropdownList = ({ name, open }) => {
|
12866
13097
|
const [dropdownList = [], setDropdownList] = useSetAppDataByKey(APP_DATA.dropdownList);
|
12867
|
-
|
13098
|
+
useEffect7(() => {
|
12868
13099
|
if (open) {
|
12869
13100
|
if (!dropdownList.includes(name)) {
|
12870
13101
|
setDropdownList([...dropdownList, name]);
|
@@ -12883,12 +13114,12 @@ var useDropdownList = ({ name, open }) => {
|
|
12883
13114
|
// src/Prebuilt/components/EmojiReaction.jsx
|
12884
13115
|
init({ data });
|
12885
13116
|
var EmojiReaction = () => {
|
12886
|
-
const [open, setOpen] =
|
13117
|
+
const [open, setOpen] = useState7(false);
|
12887
13118
|
const isConnected = useHMSStore7(selectIsConnectedToRoom);
|
12888
13119
|
useDropdownList({ open, name: "EmojiReaction" });
|
12889
13120
|
const roles = useHMSStore7(selectAvailableRoleNames);
|
12890
13121
|
const localPeerId = useHMSStore7(selectLocalPeerID);
|
12891
|
-
const isMobile =
|
13122
|
+
const isMobile = useMedia2(config.media.md);
|
12892
13123
|
const { sendEvent } = useCustomEvent({
|
12893
13124
|
type: EMOJI_REACTION_TYPE
|
12894
13125
|
});
|
@@ -12905,13 +13136,13 @@ var EmojiReaction = () => {
|
|
12905
13136
|
if (!isConnected) {
|
12906
13137
|
return null;
|
12907
13138
|
}
|
12908
|
-
return isMobile ? /* @__PURE__ */
|
13139
|
+
return isMobile ? /* @__PURE__ */ React29.createElement(EmojiCard, { sendReaction }) : /* @__PURE__ */ React29.createElement(Fragment3, null, /* @__PURE__ */ React29.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React29.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React29.createElement(IconButton_default, null, /* @__PURE__ */ React29.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React29.createElement(Box, null, /* @__PURE__ */ React29.createElement(EmojiIcon, null))))), /* @__PURE__ */ React29.createElement(Dropdown.Content, { sideOffset: 5, align: "center", css: { p: "$8", bg: "$surface_default" } }, /* @__PURE__ */ React29.createElement(EmojiCard, { sendReaction }))));
|
12909
13140
|
};
|
12910
13141
|
|
12911
13142
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
12912
13143
|
init_define_process_env();
|
12913
|
-
import
|
12914
|
-
import { useMedia as
|
13144
|
+
import React36 from "react";
|
13145
|
+
import { useMedia as useMedia3 } from "react-use";
|
12915
13146
|
import {
|
12916
13147
|
selectHLSState as selectHLSState2,
|
12917
13148
|
selectIsConnectedToRoom as selectIsConnectedToRoom4,
|
@@ -12924,13 +13155,13 @@ import {
|
|
12924
13155
|
|
12925
13156
|
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
12926
13157
|
init_define_process_env();
|
12927
|
-
import
|
13158
|
+
import React33, { Fragment as Fragment4, useState as useState8 } from "react";
|
12928
13159
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom2, selectPermissions as selectPermissions2, useHMSStore as useHMSStore8, useRecordingStreaming as useRecordingStreaming2 } from "@100mslive/react-sdk";
|
12929
13160
|
import { ExitIcon, StopIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
|
12930
13161
|
|
12931
13162
|
// src/Prebuilt/components/Leave/EndSessionContent.tsx
|
12932
13163
|
init_define_process_env();
|
12933
|
-
import
|
13164
|
+
import React30 from "react";
|
12934
13165
|
import { AlertTriangleIcon, CrossIcon as CrossIcon3 } from "@100mslive/react-icons";
|
12935
13166
|
var EndSessionContent = ({
|
12936
13167
|
setShowEndStreamAlert,
|
@@ -12938,7 +13169,7 @@ var EndSessionContent = ({
|
|
12938
13169
|
isModal = false,
|
12939
13170
|
isStreamingOn = false
|
12940
13171
|
}) => {
|
12941
|
-
return /* @__PURE__ */
|
13172
|
+
return /* @__PURE__ */ React30.createElement(Box, null, /* @__PURE__ */ React30.createElement(
|
12942
13173
|
Flex,
|
12943
13174
|
{
|
12944
13175
|
css: {
|
@@ -12947,10 +13178,10 @@ var EndSessionContent = ({
|
|
12947
13178
|
alignItems: "center"
|
12948
13179
|
}
|
12949
13180
|
},
|
12950
|
-
/* @__PURE__ */
|
12951
|
-
/* @__PURE__ */
|
12952
|
-
isModal ? null : /* @__PURE__ */
|
12953
|
-
), /* @__PURE__ */
|
13181
|
+
/* @__PURE__ */ React30.createElement(AlertTriangleIcon, { style: { marginRight: "0.5rem" } }),
|
13182
|
+
/* @__PURE__ */ React30.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "End ", isStreamingOn ? "Stream" : "Session"),
|
13183
|
+
isModal ? null : /* @__PURE__ */ React30.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowEndStreamAlert(false) }, /* @__PURE__ */ React30.createElement(CrossIcon3, null))
|
13184
|
+
), /* @__PURE__ */ React30.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "The ", isStreamingOn ? "stream" : "session", " will end for everyone. You can't undo this action."), /* @__PURE__ */ React30.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React30.createElement(
|
12954
13185
|
Button,
|
12955
13186
|
{
|
12956
13187
|
outlined: true,
|
@@ -12959,7 +13190,7 @@ var EndSessionContent = ({
|
|
12959
13190
|
onClick: () => setShowEndStreamAlert(false)
|
12960
13191
|
},
|
12961
13192
|
"Cancel"
|
12962
|
-
), /* @__PURE__ */
|
13193
|
+
), /* @__PURE__ */ React30.createElement(
|
12963
13194
|
Button,
|
12964
13195
|
{
|
12965
13196
|
variant: "danger",
|
@@ -13003,7 +13234,7 @@ var MenuTriggerButton = styled(LeaveIconButton, {
|
|
13003
13234
|
|
13004
13235
|
// src/Prebuilt/components/Leave/LeaveCard.tsx
|
13005
13236
|
init_define_process_env();
|
13006
|
-
import
|
13237
|
+
import React31 from "react";
|
13007
13238
|
var LeaveCard = ({
|
13008
13239
|
icon,
|
13009
13240
|
title,
|
@@ -13013,19 +13244,19 @@ var LeaveCard = ({
|
|
13013
13244
|
titleColor,
|
13014
13245
|
css: css2 = {}
|
13015
13246
|
}) => {
|
13016
|
-
return /* @__PURE__ */
|
13247
|
+
return /* @__PURE__ */ React31.createElement(Flex, { css: __spreadValues({ p: "$10", flexGrow: 1, gap: "$8", bg }, css2), onClick }, /* @__PURE__ */ React31.createElement(Box, { css: { color: titleColor } }, icon), /* @__PURE__ */ React31.createElement(Box, { css: { gap: "$2" } }, /* @__PURE__ */ React31.createElement(Text, { variant: "lg", css: { color: titleColor } }, title), /* @__PURE__ */ React31.createElement(Text, { variant: "sm", css: { c: "inherit" } }, subtitle)));
|
13017
13248
|
};
|
13018
13249
|
|
13019
13250
|
// src/Prebuilt/components/Leave/LeaveSessionContent.tsx
|
13020
13251
|
init_define_process_env();
|
13021
|
-
import
|
13252
|
+
import React32 from "react";
|
13022
13253
|
import { AlertTriangleIcon as AlertTriangleIcon2, CrossIcon as CrossIcon4 } from "@100mslive/react-icons";
|
13023
13254
|
var LeaveSessionContent = ({
|
13024
13255
|
setShowLeaveRoomAlert,
|
13025
13256
|
leaveRoom,
|
13026
13257
|
isModal = false
|
13027
13258
|
}) => {
|
13028
|
-
return /* @__PURE__ */
|
13259
|
+
return /* @__PURE__ */ React32.createElement(Box, null, /* @__PURE__ */ React32.createElement(
|
13029
13260
|
Flex,
|
13030
13261
|
{
|
13031
13262
|
css: {
|
@@ -13034,10 +13265,10 @@ var LeaveSessionContent = ({
|
|
13034
13265
|
alignItems: "center"
|
13035
13266
|
}
|
13036
13267
|
},
|
13037
|
-
/* @__PURE__ */
|
13038
|
-
/* @__PURE__ */
|
13039
|
-
isModal ? null : /* @__PURE__ */
|
13040
|
-
), /* @__PURE__ */
|
13268
|
+
/* @__PURE__ */ React32.createElement(AlertTriangleIcon2, { style: { marginRight: "0.5rem" } }),
|
13269
|
+
/* @__PURE__ */ React32.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "Leave"),
|
13270
|
+
isModal ? null : /* @__PURE__ */ React32.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowLeaveRoomAlert(false) }, /* @__PURE__ */ React32.createElement(CrossIcon4, null))
|
13271
|
+
), /* @__PURE__ */ React32.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", mb: "$8", mt: "$4" } }, "Others will continue after you leave. You can join the session again."), /* @__PURE__ */ React32.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React32.createElement(
|
13041
13272
|
Button,
|
13042
13273
|
{
|
13043
13274
|
outlined: true,
|
@@ -13046,7 +13277,7 @@ var LeaveSessionContent = ({
|
|
13046
13277
|
onClick: () => setShowLeaveRoomAlert(false)
|
13047
13278
|
},
|
13048
13279
|
"Cancel"
|
13049
|
-
), /* @__PURE__ */
|
13280
|
+
), /* @__PURE__ */ React32.createElement(
|
13050
13281
|
Button,
|
13051
13282
|
{
|
13052
13283
|
variant: "danger",
|
@@ -13067,9 +13298,9 @@ var DesktopLeaveRoom = ({
|
|
13067
13298
|
screenType,
|
13068
13299
|
endRoom
|
13069
13300
|
}) => {
|
13070
|
-
const [open, setOpen] =
|
13071
|
-
const [showLeaveRoomAlert, setShowLeaveRoomAlert] =
|
13072
|
-
const [showEndStreamAlert, setShowEndStreamAlert] =
|
13301
|
+
const [open, setOpen] = useState8(false);
|
13302
|
+
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState8(false);
|
13303
|
+
const [showEndStreamAlert, setShowEndStreamAlert] = useState8(false);
|
13073
13304
|
const isConnected = useHMSStore8(selectIsConnectedToRoom2);
|
13074
13305
|
const permissions = useHMSStore8(selectPermissions2);
|
13075
13306
|
const { isStreamingOn } = useRecordingStreaming2();
|
@@ -13079,7 +13310,7 @@ var DesktopLeaveRoom = ({
|
|
13079
13310
|
if (!permissions || !isConnected) {
|
13080
13311
|
return null;
|
13081
13312
|
}
|
13082
|
-
return /* @__PURE__ */
|
13313
|
+
return /* @__PURE__ */ React33.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React33.createElement(Flex, null, /* @__PURE__ */ React33.createElement(
|
13083
13314
|
LeaveIconButton,
|
13084
13315
|
{
|
13085
13316
|
key: "LeaveRoom",
|
@@ -13090,8 +13321,8 @@ var DesktopLeaveRoom = ({
|
|
13090
13321
|
},
|
13091
13322
|
onClick: () => setShowLeaveRoomAlert(true)
|
13092
13323
|
},
|
13093
|
-
/* @__PURE__ */
|
13094
|
-
), /* @__PURE__ */
|
13324
|
+
/* @__PURE__ */ React33.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React33.createElement(Box, null, /* @__PURE__ */ React33.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
13325
|
+
), /* @__PURE__ */ React33.createElement(Dropdown.Root, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React33.createElement(
|
13095
13326
|
Dropdown.Trigger,
|
13096
13327
|
{
|
13097
13328
|
asChild: true,
|
@@ -13101,8 +13332,8 @@ var DesktopLeaveRoom = ({
|
|
13101
13332
|
}
|
13102
13333
|
}
|
13103
13334
|
},
|
13104
|
-
/* @__PURE__ */
|
13105
|
-
), /* @__PURE__ */
|
13335
|
+
/* @__PURE__ */ React33.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React33.createElement(VerticalMenuIcon2, null))
|
13336
|
+
), /* @__PURE__ */ React33.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React33.createElement(
|
13106
13337
|
Dropdown.Item,
|
13107
13338
|
{
|
13108
13339
|
css: {
|
@@ -13113,21 +13344,21 @@ var DesktopLeaveRoom = ({
|
|
13113
13344
|
},
|
13114
13345
|
"data-testid": "just_leave_btn"
|
13115
13346
|
},
|
13116
|
-
/* @__PURE__ */
|
13347
|
+
/* @__PURE__ */ React33.createElement(
|
13117
13348
|
LeaveCard,
|
13118
13349
|
{
|
13119
13350
|
title: showStream ? "Leave Stream" : "Leave Session",
|
13120
13351
|
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
13121
13352
|
bg: "",
|
13122
13353
|
titleColor: "$on_surface_high",
|
13123
|
-
icon: /* @__PURE__ */
|
13354
|
+
icon: /* @__PURE__ */ React33.createElement(ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
13124
13355
|
onClick: () => __async(void 0, null, function* () {
|
13125
13356
|
return yield leaveRoom();
|
13126
13357
|
}),
|
13127
13358
|
css: { p: "$8 $4" }
|
13128
13359
|
}
|
13129
13360
|
)
|
13130
|
-
), /* @__PURE__ */
|
13361
|
+
), /* @__PURE__ */ React33.createElement(
|
13131
13362
|
Dropdown.Item,
|
13132
13363
|
{
|
13133
13364
|
css: {
|
@@ -13138,14 +13369,14 @@ var DesktopLeaveRoom = ({
|
|
13138
13369
|
},
|
13139
13370
|
"data-testid": "end_room_btn"
|
13140
13371
|
},
|
13141
|
-
/* @__PURE__ */
|
13372
|
+
/* @__PURE__ */ React33.createElement(
|
13142
13373
|
LeaveCard,
|
13143
13374
|
{
|
13144
13375
|
title: showStream ? "End Stream" : "End Session",
|
13145
13376
|
subtitle: `The ${showStream ? "stream" : "session"} will end for everyone. You can't undo this action.`,
|
13146
13377
|
bg: "",
|
13147
13378
|
titleColor: "$alert_error_brighter",
|
13148
|
-
icon: /* @__PURE__ */
|
13379
|
+
icon: /* @__PURE__ */ React33.createElement(StopIcon, { height: 24, width: 24 }),
|
13149
13380
|
onClick: () => {
|
13150
13381
|
setOpen(false);
|
13151
13382
|
setShowEndStreamAlert(true);
|
@@ -13153,7 +13384,7 @@ var DesktopLeaveRoom = ({
|
|
13153
13384
|
css: { p: "$8 $4" }
|
13154
13385
|
}
|
13155
13386
|
)
|
13156
|
-
)))) : /* @__PURE__ */
|
13387
|
+
)))) : /* @__PURE__ */ React33.createElement(
|
13157
13388
|
LeaveIconButton,
|
13158
13389
|
{
|
13159
13390
|
onClick: () => {
|
@@ -13162,8 +13393,8 @@ var DesktopLeaveRoom = ({
|
|
13162
13393
|
key: "LeaveRoom",
|
13163
13394
|
"data-testid": "leave_room_btn"
|
13164
13395
|
},
|
13165
|
-
/* @__PURE__ */
|
13166
|
-
), /* @__PURE__ */
|
13396
|
+
/* @__PURE__ */ React33.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React33.createElement(Box, null, /* @__PURE__ */ React33.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
13397
|
+
), /* @__PURE__ */ React33.createElement(Dialog.Root, { open: showEndStreamAlert, modal: false }, /* @__PURE__ */ React33.createElement(Dialog.Portal, null, /* @__PURE__ */ React33.createElement(Dialog.Overlay, null), /* @__PURE__ */ React33.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React33.createElement(
|
13167
13398
|
EndSessionContent,
|
13168
13399
|
{
|
13169
13400
|
setShowEndStreamAlert,
|
@@ -13171,12 +13402,12 @@ var DesktopLeaveRoom = ({
|
|
13171
13402
|
isStreamingOn,
|
13172
13403
|
isModal: true
|
13173
13404
|
}
|
13174
|
-
)))), /* @__PURE__ */
|
13405
|
+
)))), /* @__PURE__ */ React33.createElement(Dialog.Root, { open: showLeaveRoomAlert, modal: false }, /* @__PURE__ */ React33.createElement(Dialog.Portal, null, /* @__PURE__ */ React33.createElement(Dialog.Overlay, null), /* @__PURE__ */ React33.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React33.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom, isModal: true })))));
|
13175
13406
|
};
|
13176
13407
|
|
13177
13408
|
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
13178
13409
|
init_define_process_env();
|
13179
|
-
import
|
13410
|
+
import React35, { Fragment as Fragment5, useState as useState9 } from "react";
|
13180
13411
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom3, selectPermissions as selectPermissions3, useHMSStore as useHMSStore9, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
|
13181
13412
|
import { ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
|
13182
13413
|
|
@@ -13185,7 +13416,7 @@ init_define_process_env();
|
|
13185
13416
|
|
13186
13417
|
// src/Sheet/Sheet.tsx
|
13187
13418
|
init_define_process_env();
|
13188
|
-
import
|
13419
|
+
import React34 from "react";
|
13189
13420
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
13190
13421
|
var SheetRoot = styled(DialogPrimitive2.Root, {
|
13191
13422
|
minHeight: "240px",
|
@@ -13259,10 +13490,10 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
13259
13490
|
side: "bottom"
|
13260
13491
|
}
|
13261
13492
|
});
|
13262
|
-
var SheetContent =
|
13493
|
+
var SheetContent = React34.forwardRef(
|
13263
13494
|
(_a8, forwardedRef) => {
|
13264
13495
|
var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
|
13265
|
-
return /* @__PURE__ */
|
13496
|
+
return /* @__PURE__ */ React34.createElement(Dialog.Portal, null, /* @__PURE__ */ React34.createElement(StyledOverlay, null), /* @__PURE__ */ React34.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
|
13266
13497
|
}
|
13267
13498
|
);
|
13268
13499
|
var SheetClose = Dialog.Close;
|
@@ -13287,9 +13518,9 @@ var MwebLeaveRoom = ({
|
|
13287
13518
|
screenType,
|
13288
13519
|
endRoom
|
13289
13520
|
}) => {
|
13290
|
-
const [open, setOpen] =
|
13291
|
-
const [showLeaveRoomAlert, setShowLeaveRoomAlert] =
|
13292
|
-
const [showEndStreamAlert, setShowEndStreamAlert] =
|
13521
|
+
const [open, setOpen] = useState9(false);
|
13522
|
+
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState9(false);
|
13523
|
+
const [showEndStreamAlert, setShowEndStreamAlert] = useState9(false);
|
13293
13524
|
const isConnected = useHMSStore9(selectIsConnectedToRoom3);
|
13294
13525
|
const permissions = useHMSStore9(selectPermissions3);
|
13295
13526
|
const { isStreamingOn } = useRecordingStreaming3();
|
@@ -13299,7 +13530,7 @@ var MwebLeaveRoom = ({
|
|
13299
13530
|
if (!permissions || !isConnected) {
|
13300
13531
|
return null;
|
13301
13532
|
}
|
13302
|
-
return /* @__PURE__ */
|
13533
|
+
return /* @__PURE__ */ React35.createElement(Fragment5, null, showLeaveOptions ? /* @__PURE__ */ React35.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React35.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React35.createElement(
|
13303
13534
|
LeaveIconButton,
|
13304
13535
|
{
|
13305
13536
|
key: "LeaveRoom",
|
@@ -13309,21 +13540,21 @@ var MwebLeaveRoom = ({
|
|
13309
13540
|
borderBottomRightRadius: "$1"
|
13310
13541
|
}
|
13311
13542
|
},
|
13312
|
-
/* @__PURE__ */
|
13313
|
-
)), /* @__PURE__ */
|
13543
|
+
/* @__PURE__ */ React35.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React35.createElement(Box, null, /* @__PURE__ */ React35.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
|
13544
|
+
)), /* @__PURE__ */ React35.createElement(Sheet.Content, null, /* @__PURE__ */ React35.createElement(
|
13314
13545
|
LeaveCard,
|
13315
13546
|
{
|
13316
13547
|
title: showStream ? "Leave Stream" : "Leave Session",
|
13317
13548
|
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
13318
13549
|
bg: "$surface_default",
|
13319
13550
|
titleColor: "$on_surface_high",
|
13320
|
-
icon: /* @__PURE__ */
|
13551
|
+
icon: /* @__PURE__ */ React35.createElement(ExitIcon2, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
13321
13552
|
onClick: () => __async(void 0, null, function* () {
|
13322
13553
|
return yield leaveRoom();
|
13323
13554
|
}),
|
13324
13555
|
css: { pt: 0, mt: "$10", color: "$on_surface_low", "&:hover": { color: "$on_surface_high" } }
|
13325
13556
|
}
|
13326
|
-
), /* @__PURE__ */
|
13557
|
+
), /* @__PURE__ */ React35.createElement(
|
13327
13558
|
LeaveCard,
|
13328
13559
|
{
|
13329
13560
|
title: showStream ? "End Stream" : "End Session",
|
@@ -13331,27 +13562,27 @@ var MwebLeaveRoom = ({
|
|
13331
13562
|
bg: "$alert_error_dim",
|
13332
13563
|
titleColor: "$alert_error_brighter",
|
13333
13564
|
css: { color: "$alert_error_bright", "&:hover": { color: "$alert_error_brighter" } },
|
13334
|
-
icon: /* @__PURE__ */
|
13565
|
+
icon: /* @__PURE__ */ React35.createElement(StopIcon2, { height: 24, width: 24 }),
|
13335
13566
|
onClick: () => {
|
13336
13567
|
setOpen(false);
|
13337
13568
|
setShowEndStreamAlert(true);
|
13338
13569
|
}
|
13339
13570
|
}
|
13340
|
-
))) : /* @__PURE__ */
|
13571
|
+
))) : /* @__PURE__ */ React35.createElement(LeaveIconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick: () => setShowLeaveRoomAlert(true) }, /* @__PURE__ */ React35.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React35.createElement(Box, null, /* @__PURE__ */ React35.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))), /* @__PURE__ */ React35.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React35.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React35.createElement(
|
13341
13572
|
EndSessionContent,
|
13342
13573
|
{
|
13343
13574
|
setShowEndStreamAlert,
|
13344
13575
|
leaveRoom: isStreamingOn ? leaveRoom : endRoom,
|
13345
13576
|
isStreamingOn
|
13346
13577
|
}
|
13347
|
-
))), /* @__PURE__ */
|
13578
|
+
))), /* @__PURE__ */ React35.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React35.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React35.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
|
13348
13579
|
};
|
13349
13580
|
|
13350
13581
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
13351
13582
|
var LeaveRoom = ({ screenType }) => {
|
13352
13583
|
const isConnected = useHMSStore10(selectIsConnectedToRoom4);
|
13353
13584
|
const permissions = useHMSStore10(selectPermissions4);
|
13354
|
-
const isMobile =
|
13585
|
+
const isMobile = useMedia3(config.media.md);
|
13355
13586
|
const rolesMap = useHMSStore10(selectRolesMap);
|
13356
13587
|
const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
|
13357
13588
|
const roleObj = rolesMap[roleName];
|
@@ -13386,13 +13617,13 @@ var LeaveRoom = ({ screenType }) => {
|
|
13386
13617
|
if (!permissions || !isConnected) {
|
13387
13618
|
return null;
|
13388
13619
|
}
|
13389
|
-
return isMobile ? /* @__PURE__ */
|
13620
|
+
return isMobile ? /* @__PURE__ */ React36.createElement(MwebLeaveRoom, { leaveRoom, screenType, endRoom }) : /* @__PURE__ */ React36.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom });
|
13390
13621
|
};
|
13391
13622
|
|
13392
13623
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
13393
13624
|
init_define_process_env();
|
13394
13625
|
import React59 from "react";
|
13395
|
-
import { useMedia as
|
13626
|
+
import { useMedia as useMedia8 } from "react-use";
|
13396
13627
|
|
13397
13628
|
// src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
|
13398
13629
|
init_define_process_env();
|
@@ -13403,11 +13634,11 @@ import { BrbIcon, CheckIcon as CheckIcon4, HamburgerMenuIcon, InfoIcon as InfoIc
|
|
13403
13634
|
|
13404
13635
|
// src/Prebuilt/components/PIP/index.jsx
|
13405
13636
|
init_define_process_env();
|
13406
|
-
import
|
13637
|
+
import React38 from "react";
|
13407
13638
|
|
13408
13639
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
13409
13640
|
init_define_process_env();
|
13410
|
-
import
|
13641
|
+
import React37, { useCallback as useCallback7, useEffect as useEffect8, useState as useState10 } from "react";
|
13411
13642
|
import { selectPeers, selectTracksMap, useHMSActions as useHMSActions8, useHMSStore as useHMSStore11, useHMSVanillaStore as useHMSVanillaStore4 } from "@100mslive/react-sdk";
|
13412
13643
|
import { PipIcon } from "@100mslive/react-icons";
|
13413
13644
|
|
@@ -13854,300 +14085,89 @@ var SetupMediaSession = class {
|
|
13854
14085
|
try {
|
13855
14086
|
navigator.mediaSession.setActionHandler("togglemicrophone", this.toggleMic);
|
13856
14087
|
navigator.mediaSession.setActionHandler("togglecamera", this.toggleCam);
|
13857
|
-
navigator.mediaSession.setActionHandler("hangup", this.leave);
|
13858
|
-
} catch (err) {
|
13859
|
-
console.error("error in setting media session handlers", err);
|
13860
|
-
}
|
13861
|
-
}
|
13862
|
-
});
|
13863
|
-
}
|
13864
|
-
};
|
13865
|
-
var MediaSession = new SetupMediaSession();
|
13866
|
-
|
13867
|
-
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
13868
|
-
var PIPComponent = ({ content = null }) => {
|
13869
|
-
const [isPipOn, setIsPipOn] = useState9(PictureInPicture.isOn());
|
13870
|
-
const hmsActions = useHMSActions8();
|
13871
|
-
const store = useHMSVanillaStore4();
|
13872
|
-
const onPipToggle = useCallback6(() => {
|
13873
|
-
if (!isPipOn) {
|
13874
|
-
PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
|
13875
|
-
MediaSession.setup(hmsActions, store);
|
13876
|
-
} else {
|
13877
|
-
PictureInPicture.stop().catch((err) => console.error("error in stopping pip", err));
|
13878
|
-
}
|
13879
|
-
}, [hmsActions, isPipOn, store]);
|
13880
|
-
if (!PictureInPicture.isSupported()) {
|
13881
|
-
return null;
|
13882
|
-
}
|
13883
|
-
return /* @__PURE__ */ React36.createElement(React36.Fragment, null, content ? /* @__PURE__ */ React36.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React36.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React36.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React36.createElement(PipIcon, null))));
|
13884
|
-
};
|
13885
|
-
var ActivatedPIP = () => {
|
13886
|
-
const tracksMap = useHMSStore11(selectTracksMap);
|
13887
|
-
const storePeers = useHMSStore11(selectPeers);
|
13888
|
-
const pinnedTrack = usePinnedTrack();
|
13889
|
-
useEffect7(() => {
|
13890
|
-
function updatePIP() {
|
13891
|
-
if (!PictureInPicture.isOn()) {
|
13892
|
-
return;
|
13893
|
-
}
|
13894
|
-
let pipPeers = storePeers;
|
13895
|
-
if (pinnedTrack) {
|
13896
|
-
pipPeers = storePeers.filter((peer) => pinnedTrack.peerId === peer.id);
|
13897
|
-
}
|
13898
|
-
PictureInPicture.updatePeersAndTracks(pipPeers, tracksMap).catch((err) => {
|
13899
|
-
console.error("error in updating pip", err);
|
13900
|
-
});
|
13901
|
-
}
|
13902
|
-
PictureInPicture.listenToStateChange(updatePIP);
|
13903
|
-
updatePIP();
|
13904
|
-
}, [storePeers, tracksMap, pinnedTrack]);
|
13905
|
-
return /* @__PURE__ */ React36.createElement(React36.Fragment, null);
|
13906
|
-
};
|
13907
|
-
var PIPComponent_default = PIPComponent;
|
13908
|
-
|
13909
|
-
// src/Prebuilt/components/PIP/index.jsx
|
13910
|
-
var PIP = ({ content = null }) => {
|
13911
|
-
return /* @__PURE__ */ React37.createElement(PIPComponent_default, { content });
|
13912
|
-
};
|
13913
|
-
|
13914
|
-
// src/Prebuilt/components/RoleChangeModal.jsx
|
13915
|
-
init_define_process_env();
|
13916
|
-
import React39, { forwardRef, useRef as useRef7, useState as useState12 } from "react";
|
13917
|
-
import { selectPeerByID, useHMSActions as useHMSActions9, useHMSStore as useHMSStore13 } from "@100mslive/react-sdk";
|
13918
|
-
import { CheckIcon, ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon as ChevronUpIcon2 } from "@100mslive/react-icons";
|
13919
|
-
|
13920
|
-
// src/Prebuilt/components/hooks/useDropdownSelection.jsx
|
13921
|
-
init_define_process_env();
|
13922
|
-
var useDropdownSelection = () => {
|
13923
|
-
return "$surface_bright";
|
13924
|
-
};
|
13925
|
-
|
13926
|
-
// src/Prebuilt/common/hooks.ts
|
13927
|
-
init_define_process_env();
|
13928
|
-
import { useEffect as useEffect9, useRef as useRef6, useState as useState11 } from "react";
|
13929
|
-
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
13930
|
-
import {
|
13931
|
-
selectAvailableRoleNames as selectAvailableRoleNames2,
|
13932
|
-
selectIsConnectedToRoom as selectIsConnectedToRoom5,
|
13933
|
-
selectPeerCount,
|
13934
|
-
selectPeerMetadata,
|
13935
|
-
selectPeers as selectPeers2,
|
13936
|
-
selectRemotePeers,
|
13937
|
-
useHMSStore as useHMSStore12,
|
13938
|
-
useHMSVanillaStore as useHMSVanillaStore5
|
13939
|
-
} from "@100mslive/react-sdk";
|
13940
|
-
|
13941
|
-
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
13942
|
-
init_define_process_env();
|
13943
|
-
var import_lodash2 = __toESM(require_lodash());
|
13944
|
-
import React38 from "react";
|
13945
|
-
|
13946
|
-
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
13947
|
-
init_define_process_env();
|
13948
|
-
import { useCallback as useCallback7, useEffect as useEffect8, useRef as useRef5, useState as useState10 } from "react";
|
13949
|
-
|
13950
|
-
// src/Prebuilt/provider/roomLayoutProvider/constants/index.ts
|
13951
|
-
init_define_process_env();
|
13952
|
-
import { JoinForm_JoinBtnType } from "@100mslive/types-prebuilt/elements/join_form";
|
13953
|
-
var defaultLayout = {
|
13954
|
-
id: "",
|
13955
|
-
role_id: "",
|
13956
|
-
template_id: "",
|
13957
|
-
app_id: "",
|
13958
|
-
typography: {
|
13959
|
-
font_family: "Inter"
|
13960
|
-
},
|
13961
|
-
themes: [],
|
13962
|
-
options: {},
|
13963
|
-
screens: {
|
13964
|
-
preview: {
|
13965
|
-
default: {
|
13966
|
-
elements: {
|
13967
|
-
preview_header: {
|
13968
|
-
title: "Get Started",
|
13969
|
-
sub_title: "Setup your audio and video before joining"
|
13970
|
-
},
|
13971
|
-
join_form: {
|
13972
|
-
join_btn_type: JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_ONLY,
|
13973
|
-
join_btn_label: "Join Now",
|
13974
|
-
go_live_btn_label: "Go Live"
|
13975
|
-
}
|
13976
|
-
}
|
13977
|
-
}
|
13978
|
-
},
|
13979
|
-
conferencing: {
|
13980
|
-
default: {
|
13981
|
-
elements: {
|
13982
|
-
chat: {
|
13983
|
-
public_chat_enabled: true,
|
13984
|
-
private_chat_enabled: true,
|
13985
|
-
chat_title: "Chat",
|
13986
|
-
allow_pinning_messages: true,
|
13987
|
-
message_placeholder: "Send a message...",
|
13988
|
-
roles_whitelist: [],
|
13989
|
-
real_time_controls: {
|
13990
|
-
can_disable_chat: true,
|
13991
|
-
can_block_user: true,
|
13992
|
-
can_hide_message: true
|
13993
|
-
}
|
13994
|
-
},
|
13995
|
-
participant_list: {},
|
13996
|
-
video_tile_layout: {
|
13997
|
-
grid: {
|
13998
|
-
enable_local_tile_inset: true,
|
13999
|
-
prominent_roles: [],
|
14000
|
-
enable_spotlighting_peer: true
|
14001
|
-
}
|
14002
|
-
},
|
14003
|
-
emoji_reactions: {}
|
14004
|
-
}
|
14005
|
-
}
|
14006
|
-
},
|
14007
|
-
leave: {}
|
14008
|
-
}
|
14009
|
-
};
|
14010
|
-
|
14011
|
-
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
14012
|
-
var fetchWithRetry = (..._0) => __async(void 0, [..._0], function* (url = "", options = {}) {
|
14013
|
-
const MAX_RETRIES = 4;
|
14014
|
-
let error = Error("something went wrong");
|
14015
|
-
for (let i = 0; i < MAX_RETRIES; i++) {
|
14016
|
-
try {
|
14017
|
-
return yield fetch(url, options);
|
14018
|
-
} catch (err) {
|
14019
|
-
error = err;
|
14020
|
-
}
|
14021
|
-
}
|
14022
|
-
console.error("Fetch failed after max retries", { url, options });
|
14023
|
-
throw error;
|
14024
|
-
});
|
14025
|
-
var useFetchRoomLayout = ({
|
14026
|
-
endpoint = "",
|
14027
|
-
authToken = ""
|
14028
|
-
}) => {
|
14029
|
-
const [layout, setLayout] = useState10(void 0);
|
14030
|
-
const layoutResp = useRef5();
|
14031
|
-
const isFetchInProgress = useRef5(false);
|
14032
|
-
const updateRoomLayoutForRole = useCallback7((role) => {
|
14033
|
-
var _a8;
|
14034
|
-
if (!layoutResp.current) {
|
14035
|
-
return;
|
14036
|
-
}
|
14037
|
-
const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
|
14038
|
-
if (layout2) {
|
14039
|
-
setLayout(layout2);
|
14040
|
-
}
|
14041
|
-
}, []);
|
14042
|
-
useEffect8(() => {
|
14043
|
-
(() => __async(void 0, null, function* () {
|
14044
|
-
var _a8, _b7;
|
14045
|
-
if (isFetchInProgress.current || !authToken) {
|
14046
|
-
return;
|
14047
|
-
}
|
14048
|
-
isFetchInProgress.current = true;
|
14049
|
-
try {
|
14050
|
-
const resp = yield fetchWithRetry(endpoint || "https://api.100ms.live/v2/layouts/ui", {
|
14051
|
-
headers: {
|
14052
|
-
Authorization: `Bearer ${authToken}`
|
14053
|
-
}
|
14054
|
-
});
|
14055
|
-
layoutResp.current = yield resp.json();
|
14056
|
-
} catch (e) {
|
14057
|
-
console.error("[Room Layout API]: Failed to fetch / process room layout. Resorting to default layout.", e);
|
14058
|
-
layoutResp.current = {
|
14059
|
-
data: [defaultLayout]
|
14060
|
-
};
|
14061
|
-
}
|
14062
|
-
let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
|
14063
|
-
if (!layoutForRole) {
|
14064
|
-
console.error(
|
14065
|
-
"[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
|
14066
|
-
);
|
14067
|
-
layoutForRole = defaultLayout;
|
14068
|
-
}
|
14069
|
-
const layout2 = layoutForRole;
|
14070
|
-
setLayout(layout2);
|
14071
|
-
isFetchInProgress.current = false;
|
14072
|
-
}))();
|
14073
|
-
}, [authToken, endpoint]);
|
14074
|
-
return { layout, updateRoomLayoutForRole };
|
14088
|
+
navigator.mediaSession.setActionHandler("hangup", this.leave);
|
14089
|
+
} catch (err) {
|
14090
|
+
console.error("error in setting media session handlers", err);
|
14091
|
+
}
|
14092
|
+
}
|
14093
|
+
});
|
14094
|
+
}
|
14075
14095
|
};
|
14096
|
+
var MediaSession = new SetupMediaSession();
|
14076
14097
|
|
14077
|
-
// src/Prebuilt/
|
14078
|
-
var
|
14079
|
-
|
14080
|
-
|
14081
|
-
|
14098
|
+
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
14099
|
+
var PIPComponent = ({ content = null }) => {
|
14100
|
+
const [isPipOn, setIsPipOn] = useState10(PictureInPicture.isOn());
|
14101
|
+
const hmsActions = useHMSActions8();
|
14102
|
+
const store = useHMSVanillaStore4();
|
14103
|
+
const onPipToggle = useCallback7(() => {
|
14104
|
+
if (!isPipOn) {
|
14105
|
+
PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
|
14106
|
+
MediaSession.setup(hmsActions, store);
|
14107
|
+
} else {
|
14108
|
+
PictureInPicture.stop().catch((err) => console.error("error in stopping pip", err));
|
14109
|
+
}
|
14110
|
+
}, [hmsActions, isPipOn, store]);
|
14111
|
+
if (!PictureInPicture.isSupported()) {
|
14112
|
+
return null;
|
14082
14113
|
}
|
14083
|
-
return
|
14084
|
-
}
|
14085
|
-
var RoomLayoutProvider = ({
|
14086
|
-
children,
|
14087
|
-
roomLayoutEndpoint,
|
14088
|
-
overrideLayout
|
14089
|
-
}) => {
|
14090
|
-
const authToken = useAuthToken();
|
14091
|
-
const { layout, updateRoomLayoutForRole } = useFetchRoomLayout({ authToken, endpoint: roomLayoutEndpoint });
|
14092
|
-
const mergedLayout = authToken && layout ? (0, import_lodash2.mergeWith)(layout, overrideLayout, customizer) : layout;
|
14093
|
-
return /* @__PURE__ */ React38.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole } }, children);
|
14114
|
+
return /* @__PURE__ */ React37.createElement(React37.Fragment, null, content ? /* @__PURE__ */ React37.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React37.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React37.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React37.createElement(PipIcon, null))));
|
14094
14115
|
};
|
14095
|
-
var
|
14096
|
-
|
14097
|
-
|
14116
|
+
var ActivatedPIP = () => {
|
14117
|
+
const tracksMap = useHMSStore11(selectTracksMap);
|
14118
|
+
const storePeers = useHMSStore11(selectPeers);
|
14119
|
+
const pinnedTrack = usePinnedTrack();
|
14120
|
+
useEffect8(() => {
|
14121
|
+
function updatePIP() {
|
14122
|
+
if (!PictureInPicture.isOn()) {
|
14123
|
+
return;
|
14124
|
+
}
|
14125
|
+
let pipPeers = storePeers;
|
14126
|
+
if (pinnedTrack) {
|
14127
|
+
pipPeers = storePeers.filter((peer) => pinnedTrack.peerId === peer.id);
|
14128
|
+
}
|
14129
|
+
PictureInPicture.updatePeersAndTracks(pipPeers, tracksMap).catch((err) => {
|
14130
|
+
console.error("error in updating pip", err);
|
14131
|
+
});
|
14132
|
+
}
|
14133
|
+
PictureInPicture.listenToStateChange(updatePIP);
|
14134
|
+
updatePIP();
|
14135
|
+
}, [storePeers, tracksMap, pinnedTrack]);
|
14136
|
+
return /* @__PURE__ */ React37.createElement(React37.Fragment, null);
|
14098
14137
|
};
|
14099
|
-
var
|
14100
|
-
|
14101
|
-
|
14138
|
+
var PIPComponent_default = PIPComponent;
|
14139
|
+
|
14140
|
+
// src/Prebuilt/components/PIP/index.jsx
|
14141
|
+
var PIP = ({ content = null }) => {
|
14142
|
+
return /* @__PURE__ */ React38.createElement(PIPComponent_default, { content });
|
14102
14143
|
};
|
14103
14144
|
|
14104
|
-
// src/Prebuilt/
|
14145
|
+
// src/Prebuilt/components/RoleChangeModal.jsx
|
14105
14146
|
init_define_process_env();
|
14106
|
-
|
14107
|
-
|
14108
|
-
}
|
14109
|
-
|
14110
|
-
|
14111
|
-
|
14112
|
-
|
14113
|
-
|
14114
|
-
|
14115
|
-
var _a8;
|
14116
|
-
const screenProps = useRoomLayoutScreen({ screen: "preview" });
|
14117
|
-
const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
|
14118
|
-
let elements;
|
14119
|
-
let screenType;
|
14120
|
-
if (isPreviewScreenEnabled) {
|
14121
|
-
screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
|
14122
|
-
elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
14123
|
-
}
|
14124
|
-
return {
|
14125
|
-
isPreviewScreenEnabled,
|
14126
|
-
elements,
|
14127
|
-
screenType
|
14128
|
-
};
|
14129
|
-
}
|
14130
|
-
function useRoomLayoutConferencingScreen() {
|
14131
|
-
var _a8, _b7;
|
14132
|
-
const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
|
14133
|
-
const screenType = Object.keys(screenProps)[0];
|
14134
|
-
const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
14135
|
-
const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
|
14136
|
-
return {
|
14137
|
-
hideSections,
|
14138
|
-
elements,
|
14139
|
-
screenType
|
14140
|
-
};
|
14141
|
-
}
|
14142
|
-
function useRoomLayoutLeaveScreen() {
|
14143
|
-
const screenProps = useRoomLayoutScreen({ screen: "leave" });
|
14144
|
-
const isLeaveScreenEnabled = !!screenProps;
|
14145
|
-
return {
|
14146
|
-
isLeaveScreenEnabled
|
14147
|
-
};
|
14148
|
-
}
|
14147
|
+
import React39, { forwardRef, useRef as useRef7, useState as useState12 } from "react";
|
14148
|
+
import { selectPeerByID, useHMSActions as useHMSActions9, useHMSStore as useHMSStore13 } from "@100mslive/react-sdk";
|
14149
|
+
import { CheckIcon, ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon as ChevronUpIcon2 } from "@100mslive/react-icons";
|
14150
|
+
|
14151
|
+
// src/Prebuilt/components/hooks/useDropdownSelection.jsx
|
14152
|
+
init_define_process_env();
|
14153
|
+
var useDropdownSelection = () => {
|
14154
|
+
return "$surface_bright";
|
14155
|
+
};
|
14149
14156
|
|
14150
14157
|
// src/Prebuilt/common/hooks.ts
|
14158
|
+
init_define_process_env();
|
14159
|
+
import { useEffect as useEffect9, useRef as useRef6, useState as useState11 } from "react";
|
14160
|
+
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
14161
|
+
import {
|
14162
|
+
selectAvailableRoleNames as selectAvailableRoleNames2,
|
14163
|
+
selectIsConnectedToRoom as selectIsConnectedToRoom5,
|
14164
|
+
selectPeerCount,
|
14165
|
+
selectPeerMetadata,
|
14166
|
+
selectPeers as selectPeers2,
|
14167
|
+
selectRemotePeers,
|
14168
|
+
useHMSStore as useHMSStore12,
|
14169
|
+
useHMSVanillaStore as useHMSVanillaStore5
|
14170
|
+
} from "@100mslive/react-sdk";
|
14151
14171
|
var useFilteredRoles = () => {
|
14152
14172
|
var _a8;
|
14153
14173
|
const { elements } = useRoomLayoutConferencingScreen();
|
@@ -14326,13 +14346,13 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
14326
14346
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
14327
14347
|
init_define_process_env();
|
14328
14348
|
import React43, { useCallback as useCallback8, useEffect as useEffect11, useState as useState14 } from "react";
|
14329
|
-
import { useMedia as
|
14349
|
+
import { useMedia as useMedia5 } from "react-use";
|
14330
14350
|
import { ChevronLeftIcon, CrossIcon as CrossIcon5, GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
|
14331
14351
|
|
14332
14352
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
14333
14353
|
init_define_process_env();
|
14334
14354
|
import React41, { Fragment as Fragment6, useEffect as useEffect10, useRef as useRef8, useState as useState13 } from "react";
|
14335
|
-
import { useMedia as
|
14355
|
+
import { useMedia as useMedia4 } from "react-use";
|
14336
14356
|
import {
|
14337
14357
|
DeviceType as DeviceType2,
|
14338
14358
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled3,
|
@@ -14403,7 +14423,7 @@ var Settings = ({ setHide }) => {
|
|
14403
14423
|
const trackSelector = selectVideoTrackByID2(videoTrackId);
|
14404
14424
|
const hmsActions = useHMSActions10();
|
14405
14425
|
const track = useHMSStore14(trackSelector);
|
14406
|
-
const isMobile =
|
14426
|
+
const isMobile = useMedia4(config.media.md);
|
14407
14427
|
useEffect10(() => {
|
14408
14428
|
if (isMobile) {
|
14409
14429
|
hmsActions.refreshDevices();
|
@@ -14645,7 +14665,7 @@ var settingsList = [
|
|
14645
14665
|
];
|
14646
14666
|
var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React43.createElement(React43.Fragment, null) }) => {
|
14647
14667
|
const mediaQueryLg = config.media.md;
|
14648
|
-
const isMobile =
|
14668
|
+
const isMobile = useMedia5(mediaQueryLg);
|
14649
14669
|
const [showSetting, setShowSetting] = useState14(
|
14650
14670
|
() => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
|
14651
14671
|
);
|
@@ -15784,7 +15804,7 @@ import {
|
|
15784
15804
|
selectIsConnectedToRoom as selectIsConnectedToRoom7,
|
15785
15805
|
selectPeerCount as selectPeerCount2,
|
15786
15806
|
selectPermissions as selectPermissions7,
|
15787
|
-
useAVToggle as
|
15807
|
+
useAVToggle as useAVToggle3,
|
15788
15808
|
useHMSActions as useHMSActions20,
|
15789
15809
|
useHMSStore as useHMSStore25,
|
15790
15810
|
useRecordingStreaming as useRecordingStreaming6
|
@@ -15800,14 +15820,13 @@ import {
|
|
15800
15820
|
QuizActiveIcon,
|
15801
15821
|
QuizIcon,
|
15802
15822
|
RecordIcon as RecordIcon2,
|
15803
|
-
SettingsIcon as SettingsIcon3
|
15804
|
-
VirtualBackgroundIcon
|
15823
|
+
SettingsIcon as SettingsIcon3
|
15805
15824
|
} from "@100mslive/react-icons";
|
15806
15825
|
|
15807
15826
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
15808
15827
|
init_define_process_env();
|
15809
15828
|
import React54, { useCallback as useCallback16, useEffect as useEffect14, useRef as useRef12, useState as useState23 } from "react";
|
15810
|
-
import { useMedia as
|
15829
|
+
import { useMedia as useMedia6 } from "react-use";
|
15811
15830
|
|
15812
15831
|
// ../hms-video-store/dist/index.js
|
15813
15832
|
init_define_process_env();
|
@@ -18028,7 +18047,7 @@ var Qi = (a2, e) => {
|
|
18028
18047
|
};
|
18029
18048
|
var ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18030
18049
|
var nr = ya((Qc, Va) => {
|
18031
|
-
Va.exports = { version: "0.11.6-alpha.
|
18050
|
+
Va.exports = { version: "0.11.6-alpha.4", 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"] };
|
18032
18051
|
});
|
18033
18052
|
var zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(zi || {});
|
18034
18053
|
var Pa = ((e) => (e.CHAT = "chat", e))(Pa || {});
|
@@ -19364,7 +19383,7 @@ var LiveStatus = () => {
|
|
19364
19383
|
var _a8;
|
19365
19384
|
const { isHLSRunning, isRTMPRunning } = useRecordingStreaming5();
|
19366
19385
|
const hlsState = useHMSStore22(selectHLSState3);
|
19367
|
-
const isMobile =
|
19386
|
+
const isMobile = useMedia6(config.media.md);
|
19368
19387
|
const intervalRef = useRef12(null);
|
19369
19388
|
const { screenType } = useRoomLayoutConferencingScreen();
|
19370
19389
|
const [liveTime, setLiveTime] = useState23(0);
|
@@ -19411,7 +19430,7 @@ var LiveStatus = () => {
|
|
19411
19430
|
var RecordingStatus = () => {
|
19412
19431
|
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming5();
|
19413
19432
|
const permissions = useHMSStore22(selectPermissions6);
|
19414
|
-
const isMobile =
|
19433
|
+
const isMobile = useMedia6(config.media.md);
|
19415
19434
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
19416
19435
|
// so no need to show this as it duplicates
|
19417
19436
|
[permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
|
@@ -19538,7 +19557,7 @@ var StartRecording2 = () => {
|
|
19538
19557
|
};
|
19539
19558
|
var StreamActions = () => {
|
19540
19559
|
const isConnected = useHMSStore22(selectIsConnectedToRoom6);
|
19541
|
-
const isMobile =
|
19560
|
+
const isMobile = useMedia6(config.media.md);
|
19542
19561
|
const roomState = useHMSStore22(selectRoomState3);
|
19543
19562
|
return /* @__PURE__ */ React54.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React54.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React54.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React54.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React54.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React54.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React54.createElement(StartRecording2, null) : null);
|
19544
19563
|
};
|
@@ -19620,7 +19639,7 @@ var ActionTile = {
|
|
19620
19639
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
|
19621
19640
|
init_define_process_env();
|
19622
19641
|
import React57, { useState as useState24 } from "react";
|
19623
|
-
import { useMedia as
|
19642
|
+
import { useMedia as useMedia7 } from "react-use";
|
19624
19643
|
import { selectLocalPeerName, useHMSActions as useHMSActions19, useHMSStore as useHMSStore23 } from "@100mslive/react-sdk";
|
19625
19644
|
|
19626
19645
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
@@ -19739,7 +19758,7 @@ var ChangeNameModal = ({
|
|
19739
19758
|
const hmsActions = useHMSActions19();
|
19740
19759
|
const localPeerName = useHMSStore23(selectLocalPeerName);
|
19741
19760
|
const [currentName, setCurrentName] = useState24(localPeerName);
|
19742
|
-
const isMobile =
|
19761
|
+
const isMobile = useMedia7(config.media.md);
|
19743
19762
|
const changeName = () => __async(void 0, null, function* () {
|
19744
19763
|
const name = (currentName == null ? void 0 : currentName.trim()) || "";
|
19745
19764
|
if (!name || name === localPeerName) {
|
@@ -19824,10 +19843,9 @@ var MwebOptions = ({
|
|
19824
19843
|
const peerCount = useHMSStore25(selectPeerCount2);
|
19825
19844
|
const emojiCardRef = useRef13(null);
|
19826
19845
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
19827
|
-
const { toggleAudio, toggleVideo
|
19846
|
+
const { toggleAudio, toggleVideo } = useAVToggle3();
|
19828
19847
|
const noAVPermissions = !(toggleAudio || toggleVideo);
|
19829
19848
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
19830
|
-
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
19831
19849
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
19832
19850
|
const updateState = (modalName, value) => {
|
19833
19851
|
setOpenModals((modals) => {
|
@@ -19896,17 +19914,6 @@ var MwebOptions = ({
|
|
19896
19914
|
isHandRaised ? /* @__PURE__ */ React58.createElement(HandRaiseSlashedIcon, null) : /* @__PURE__ */ React58.createElement(HandIcon2, null),
|
19897
19915
|
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
|
19898
19916
|
) : null,
|
19899
|
-
isLocalVideoEnabled && !!(elements == null ? void 0 : elements.virtual_background) ? /* @__PURE__ */ React58.createElement(
|
19900
|
-
ActionTile.Root,
|
19901
|
-
{
|
19902
|
-
onClick: () => {
|
19903
|
-
toggleVB();
|
19904
|
-
setOpenOptionsSheet(false);
|
19905
|
-
}
|
19906
|
-
},
|
19907
|
-
/* @__PURE__ */ React58.createElement(VirtualBackgroundIcon, null),
|
19908
|
-
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, "Virtual Background")
|
19909
|
-
) : null,
|
19910
19917
|
(elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React58.createElement(
|
19911
19918
|
ActionTile.Root,
|
19912
19919
|
{
|
@@ -20047,7 +20054,7 @@ var MoreSettings = ({
|
|
20047
20054
|
elements,
|
20048
20055
|
screenType
|
20049
20056
|
}) => {
|
20050
|
-
const isMobile =
|
20057
|
+
const isMobile = useMedia8(config.media.md);
|
20051
20058
|
return isMobile ? /* @__PURE__ */ React59.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ React59.createElement(DesktopOptions, { elements, screenType });
|
20052
20059
|
};
|
20053
20060
|
|
@@ -20552,7 +20559,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
20552
20559
|
init_define_process_env();
|
20553
20560
|
import React68 from "react";
|
20554
20561
|
import { selectIsEffectsEnabled, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4, useHMSStore as useHMSStore27 } from "@100mslive/react-sdk";
|
20555
|
-
import { VirtualBackgroundIcon
|
20562
|
+
import { VirtualBackgroundIcon } from "@100mslive/react-icons";
|
20556
20563
|
var VBToggle = () => {
|
20557
20564
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
20558
20565
|
const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
|
@@ -20561,7 +20568,7 @@ var VBToggle = () => {
|
|
20561
20568
|
if (!isVideoOn || !isEffectsEnabled && isSafari) {
|
20562
20569
|
return null;
|
20563
20570
|
}
|
20564
|
-
return /* @__PURE__ */ React68.createElement(Tooltip, { side: "top", disabled: isVBOpen, title: "Configure Virtual Background" }, /* @__PURE__ */ React68.createElement(IconButton_default, { active: !isVBOpen, onClick: toggleVB, "data-testid": "virtual_bg_btn" }, /* @__PURE__ */ React68.createElement(
|
20571
|
+
return /* @__PURE__ */ React68.createElement(Tooltip, { side: "top", disabled: isVBOpen, title: "Configure Virtual Background" }, /* @__PURE__ */ React68.createElement(IconButton_default, { active: !isVBOpen, onClick: toggleVB, "data-testid": "virtual_bg_btn" }, /* @__PURE__ */ React68.createElement(VirtualBackgroundIcon, null)));
|
20565
20572
|
};
|
20566
20573
|
|
20567
20574
|
// src/Prebuilt/components/Footer/ChatToggle.tsx
|
@@ -20604,7 +20611,7 @@ var ChatToggle = () => {
|
|
20604
20611
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
20605
20612
|
init_define_process_env();
|
20606
20613
|
import React74, { Fragment as Fragment10, useCallback as useCallback17, useState as useState30 } from "react";
|
20607
|
-
import { useDebounce, useMedia as
|
20614
|
+
import { useDebounce, useMedia as useMedia9 } from "react-use";
|
20608
20615
|
import {
|
20609
20616
|
selectHandRaisedPeers,
|
20610
20617
|
selectHasPeerHandRaised as selectHasPeerHandRaised2,
|
@@ -21289,7 +21296,7 @@ var ParticipantSearch = ({
|
|
21289
21296
|
inSidePane = false
|
21290
21297
|
}) => {
|
21291
21298
|
const [value, setValue] = React74.useState("");
|
21292
|
-
const isMobile =
|
21299
|
+
const isMobile = useMedia9(config.media.md);
|
21293
21300
|
useDebounce(
|
21294
21301
|
() => {
|
21295
21302
|
onSearch(value);
|
@@ -21392,10 +21399,10 @@ var Footer2 = ({
|
|
21392
21399
|
elements
|
21393
21400
|
}) => {
|
21394
21401
|
var _a8, _b7;
|
21395
|
-
const isMobile =
|
21402
|
+
const isMobile = useMedia10(config.media.md);
|
21396
21403
|
const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
|
21397
21404
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
|
21398
|
-
const { toggleAudio, toggleVideo } =
|
21405
|
+
const { toggleAudio, toggleVideo } = useAVToggle4();
|
21399
21406
|
const noAVPermissions = !(toggleAudio || toggleVideo);
|
21400
21407
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21401
21408
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
@@ -21514,14 +21521,14 @@ import {
|
|
21514
21521
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
21515
21522
|
init_define_process_env();
|
21516
21523
|
import React128, { Fragment as Fragment13, useCallback as useCallback30, useEffect as useEffect31, useMemo as useMemo10, useState as useState52 } from "react";
|
21517
|
-
import { useMeasure as useMeasure4, useMedia as
|
21524
|
+
import { useMeasure as useMeasure4, useMedia as useMedia23 } from "react-use";
|
21518
21525
|
import {
|
21519
21526
|
HMSRoomState as HMSRoomState5,
|
21520
21527
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled6,
|
21521
21528
|
selectLocalPeer as selectLocalPeer7,
|
21522
21529
|
selectRoomState as selectRoomState5,
|
21523
21530
|
selectVideoTrackByID as selectVideoTrackByID5,
|
21524
|
-
useAVToggle as
|
21531
|
+
useAVToggle as useAVToggle5,
|
21525
21532
|
useHMSStore as useHMSStore64,
|
21526
21533
|
useParticipants as useParticipants2,
|
21527
21534
|
usePreviewJoin,
|
@@ -21532,7 +21539,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon5 } from "@100ms
|
|
21532
21539
|
// src/Prebuilt/layouts/SidePane.tsx
|
21533
21540
|
init_define_process_env();
|
21534
21541
|
import React123, { useEffect as useEffect29 } from "react";
|
21535
|
-
import { useMedia as
|
21542
|
+
import { useMedia as useMedia21 } from "react-use";
|
21536
21543
|
import { selectAppData as selectAppData5, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore62 } from "@100mslive/react-sdk";
|
21537
21544
|
|
21538
21545
|
// src/Prebuilt/components/Polls/Polls.tsx
|
@@ -23023,21 +23030,21 @@ var Polls = () => {
|
|
23023
23030
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
23024
23031
|
init_define_process_env();
|
23025
23032
|
import React115, { useEffect as useEffect27, useState as useState47 } from "react";
|
23026
|
-
import { useMedia as
|
23033
|
+
import { useMedia as useMedia18 } from "react-use";
|
23027
23034
|
import { selectPeerCount as selectPeerCount4, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
|
23028
23035
|
import { CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
|
23029
23036
|
|
23030
23037
|
// src/Prebuilt/components/Chat/Chat.tsx
|
23031
23038
|
init_define_process_env();
|
23032
23039
|
import React112, { useCallback as useCallback28, useRef as useRef20 } from "react";
|
23033
|
-
import { useMedia as
|
23040
|
+
import { useMedia as useMedia17 } from "react-use";
|
23034
23041
|
import { selectHMSMessagesCount, useHMSActions as useHMSActions37, useHMSStore as useHMSStore53, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
23035
23042
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
23036
23043
|
|
23037
23044
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
23038
23045
|
init_define_process_env();
|
23039
23046
|
import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as useRef17, useState as useState41 } from "react";
|
23040
|
-
import { useMedia as
|
23047
|
+
import { useMedia as useMedia12 } from "react-use";
|
23041
23048
|
import AutoSizer from "react-virtualized-auto-sizer";
|
23042
23049
|
import { VariableSizeList } from "react-window";
|
23043
23050
|
import {
|
@@ -23364,7 +23371,7 @@ var ChatActions = ({
|
|
23364
23371
|
// src/Prebuilt/components/Chat/EmptyChat.tsx
|
23365
23372
|
init_define_process_env();
|
23366
23373
|
import React103 from "react";
|
23367
|
-
import { useMedia as
|
23374
|
+
import { useMedia as useMedia11 } from "react-use";
|
23368
23375
|
|
23369
23376
|
// src/Prebuilt/images/empty-chat.svg
|
23370
23377
|
var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewBox="0 0 184 133" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M144.885 91.3998C145.318 91.023 145.861 90.7947 146.433 90.7483L146.446 90.7473L169.355 89.1614C169.702 89.1376 170.049 89.2101 170.358 89.3712C170.662 89.5305 170.918 89.7702 171.096 90.0642C171.098 90.0672 171.1 90.0703 171.102 90.0734L171.104 90.0766C171.281 90.3744 171.373 90.7154 171.369 91.062C171.365 91.4097 171.265 91.7496 171.08 92.044L158.85 111.504C158.539 111.986 158.081 112.356 157.544 112.56C157.007 112.764 156.419 112.791 155.866 112.636C155.313 112.482 154.823 112.155 154.469 111.703C154.115 111.25 153.915 110.697 153.898 110.123C153.898 110.109 153.898 110.094 153.898 110.08L153.996 100.307L145.347 95.7858C145.334 95.779 145.321 95.7721 145.308 95.7649C144.811 95.4785 144.417 95.0404 144.186 94.5146C143.955 93.9888 143.898 93.4029 144.024 92.8425C144.15 92.2821 144.451 91.7765 144.885 91.3998ZM167.441 91.0088L146.603 92.8952C146.49 92.9053 146.383 92.9508 146.298 93.0251C146.211 93.1005 146.151 93.2016 146.125 93.3137C146.1 93.4257 146.112 93.5429 146.158 93.6481C146.202 93.7484 146.276 93.8327 146.369 93.89L155.26 98.296L167.441 91.0088ZM156.32 100.171L168.547 92.8564L157.039 110.339C156.976 110.434 156.886 110.506 156.78 110.547C156.673 110.587 156.555 110.593 156.444 110.562C156.334 110.531 156.236 110.466 156.165 110.375C156.097 110.289 156.058 110.184 156.052 110.075L156.32 100.171Z" fill="%23444954"/>%0A<path d="M83.3248 35.4156C71.7182 47.1017 51.2098 75.5175 62.0292 95.6918C75.5536 120.91 140.453 79.2983 115.364 67.6657C90.2756 56.0331 65.8818 122.018 101.568 120.391C116.398 118.62 131.221 114.699 145.703 105.512" stroke="%23293042" stroke-width="2.25" stroke-dasharray="6 6"/>%0A<rect x="0.00256348" y="0.5" width="173.524" height="58.3398" rx="29.1699" fill="%23272A31"/>%0A<g opacity="0.4">%0A<rect x="24.7526" y="20.9312" width="111" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<g opacity="0.4">%0A<rect x="38.2526" y="34.4312" width="110.25" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<path d="M40.3918 71.5547L28.4246 55.0999L52.3589 55.0999L40.3918 71.5547Z" fill="%23272A31"/>%0A</svg>%0A';
|
@@ -23374,7 +23381,7 @@ var EmptyChat = () => {
|
|
23374
23381
|
var _a8;
|
23375
23382
|
const { elements } = useRoomLayoutConferencingScreen();
|
23376
23383
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
23377
|
-
const isMobile =
|
23384
|
+
const isMobile = useMedia11(config.media.md);
|
23378
23385
|
const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
|
23379
23386
|
if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay))
|
23380
23387
|
return /* @__PURE__ */ React103.createElement(React103.Fragment, null);
|
@@ -23535,7 +23542,7 @@ var ChatMessage = React104.memo(
|
|
23535
23542
|
var _a8, _b7, _c;
|
23536
23543
|
const { elements } = useRoomLayoutConferencingScreen();
|
23537
23544
|
const rowRef = useRef17(null);
|
23538
|
-
const isMobile =
|
23545
|
+
const isMobile = useMedia12(config.media.md);
|
23539
23546
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
23540
23547
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
23541
23548
|
const localPeerId = useHMSStore47(selectLocalPeerID10);
|
@@ -23805,7 +23812,7 @@ var PinnedBy = ({
|
|
23805
23812
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
23806
23813
|
init_define_process_env();
|
23807
23814
|
import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as useRef19, useState as useState44 } from "react";
|
23808
|
-
import { useMedia as
|
23815
|
+
import { useMedia as useMedia15 } from "react-use";
|
23809
23816
|
import data2 from "@emoji-mart/data";
|
23810
23817
|
import Picker from "@emoji-mart/react";
|
23811
23818
|
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions35, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
@@ -23814,13 +23821,13 @@ import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon,
|
|
23814
23821
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
23815
23822
|
init_define_process_env();
|
23816
23823
|
import React106, { useState as useState43 } from "react";
|
23817
|
-
import { useMedia as
|
23824
|
+
import { useMedia as useMedia14 } from "react-use";
|
23818
23825
|
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon15, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
|
23819
23826
|
|
23820
23827
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
23821
23828
|
init_define_process_env();
|
23822
23829
|
import React105, { useMemo as useMemo8, useState as useState42 } from "react";
|
23823
|
-
import { useMedia as
|
23830
|
+
import { useMedia as useMedia13 } from "react-use";
|
23824
23831
|
import {
|
23825
23832
|
selectMessagesUnreadCountByPeerID,
|
23826
23833
|
selectMessagesUnreadCountByRole,
|
@@ -23839,7 +23846,7 @@ var SelectorItem = ({
|
|
23839
23846
|
unreadCount,
|
23840
23847
|
icon = void 0
|
23841
23848
|
}) => {
|
23842
|
-
const isMobile =
|
23849
|
+
const isMobile = useMedia13(config.media.md);
|
23843
23850
|
const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
|
23844
23851
|
var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
|
23845
23852
|
return /* @__PURE__ */ React105.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
|
@@ -23990,7 +23997,7 @@ var ChatSelector = ({ role, peerId }) => {
|
|
23990
23997
|
var ChatSelectorContainer = () => {
|
23991
23998
|
var _a8, _b7;
|
23992
23999
|
const [open, setOpen] = useState43(false);
|
23993
|
-
const isMobile =
|
24000
|
+
const isMobile = useMedia14(config.media.md);
|
23994
24001
|
const { elements } = useRoomLayoutConferencingScreen();
|
23995
24002
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
23996
24003
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
@@ -24207,7 +24214,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24207
24214
|
const hmsActions = useHMSActions35();
|
24208
24215
|
const inputRef = useRef19(null);
|
24209
24216
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
24210
|
-
const isMobile =
|
24217
|
+
const isMobile = useMedia15(config.media.md);
|
24211
24218
|
const { elements } = useRoomLayoutConferencingScreen();
|
24212
24219
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
24213
24220
|
const localPeer = useHMSStore50(selectLocalPeer3);
|
@@ -24434,7 +24441,7 @@ var ChatBlocked = () => {
|
|
24434
24441
|
init_define_process_env();
|
24435
24442
|
import React111, { useEffect as useEffect25, useState as useState45 } from "react";
|
24436
24443
|
import { useSwipeable } from "react-swipeable";
|
24437
|
-
import { useMedia as
|
24444
|
+
import { useMedia as useMedia16 } from "react-use";
|
24438
24445
|
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
|
24439
24446
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
24440
24447
|
|
@@ -24495,7 +24502,7 @@ var PinnedMessage = () => {
|
|
24495
24502
|
const pinnedMessages = useHMSStore52(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
24496
24503
|
const [pinnedMessageIndex, setPinnedMessageIndex] = useState45(0);
|
24497
24504
|
const { removePinnedMessage } = usePinnedMessages();
|
24498
|
-
const isMobile =
|
24505
|
+
const isMobile = useMedia16(config.media.md);
|
24499
24506
|
const { elements } = useRoomLayoutConferencingScreen();
|
24500
24507
|
const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
|
24501
24508
|
const [hideOverflow, setHideOverflow] = useState45(true);
|
@@ -24613,7 +24620,7 @@ var Chat = () => {
|
|
24613
24620
|
const hmsActions = useHMSActions37();
|
24614
24621
|
const vanillaStore = useHMSVanillaStore10();
|
24615
24622
|
const { enabled: isChatEnabled = true } = useHMSStore53(Yh("chatState" /* CHAT_STATE */)) || {};
|
24616
|
-
const isMobile =
|
24623
|
+
const isMobile = useMedia17(config.media.md);
|
24617
24624
|
const scrollToBottom = useCallback28(
|
24618
24625
|
(unreadCount = 0) => {
|
24619
24626
|
var _a9;
|
@@ -24858,7 +24865,7 @@ var SidePaneTabs = React115.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
24858
24865
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
24859
24866
|
const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
|
24860
24867
|
const hideTabs = !(showChat && showParticipants);
|
24861
|
-
const isMobile =
|
24868
|
+
const isMobile = useMedia18(config.media.md);
|
24862
24869
|
const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
24863
24870
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
24864
24871
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
@@ -25033,7 +25040,7 @@ var TileConnection_default = TileConnection;
|
|
25033
25040
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
25034
25041
|
init_define_process_env();
|
25035
25042
|
import React118, { useState as useState48 } from "react";
|
25036
|
-
import { useMedia as
|
25043
|
+
import { useMedia as useMedia20 } from "react-use";
|
25037
25044
|
import {
|
25038
25045
|
selectLocalPeerID as selectLocalPeerID11,
|
25039
25046
|
selectPeerByID as selectPeerByID2,
|
@@ -25048,7 +25055,7 @@ import { CrossIcon as CrossIcon18, VerticalMenuIcon as VerticalMenuIcon8 } from
|
|
25048
25055
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
25049
25056
|
init_define_process_env();
|
25050
25057
|
import React117, { Fragment as Fragment12 } from "react";
|
25051
|
-
import { useMedia as
|
25058
|
+
import { useMedia as useMedia19 } from "react-use";
|
25052
25059
|
import {
|
25053
25060
|
selectPermissions as selectPermissions15,
|
25054
25061
|
selectSessionStore as selectSessionStore10,
|
@@ -25235,7 +25242,7 @@ var TileMenuContent = ({
|
|
25235
25242
|
const { sendEvent } = useCustomEvent2({
|
25236
25243
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
25237
25244
|
});
|
25238
|
-
const isMobile =
|
25245
|
+
const isMobile = useMedia19(config.media.md);
|
25239
25246
|
if (isLocal) {
|
25240
25247
|
return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React117.createElement(React117.Fragment, null, showPinAction && /* @__PURE__ */ React117.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React117.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React117.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React117.createElement(
|
25241
25248
|
StyledMenuTile.ItemButton,
|
@@ -25334,7 +25341,7 @@ var TileMenu = ({
|
|
25334
25341
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
25335
25342
|
const track = useHMSStore59(selectTrackByID3(videoTrackID));
|
25336
25343
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
25337
|
-
const isMobile =
|
25344
|
+
const isMobile = useMedia20(config.media.md);
|
25338
25345
|
const peer = useHMSStore59(selectPeerByID2(peerID));
|
25339
25346
|
const [showNameChangeModal, setShowNameChangeModal] = useState48(false);
|
25340
25347
|
useDropdownList({ open, name: "TileMenu" });
|
@@ -25679,11 +25686,11 @@ var VBPlugin = class {
|
|
25679
25686
|
}
|
25680
25687
|
}
|
25681
25688
|
});
|
25682
|
-
this.setPreset = (preset) => {
|
25689
|
+
this.setPreset = (preset) => __async(this, null, function* () {
|
25683
25690
|
if (this.effectsPlugin) {
|
25684
|
-
this.effectsPlugin.setPreset(preset);
|
25691
|
+
yield this.effectsPlugin.setPreset(preset);
|
25685
25692
|
}
|
25686
|
-
};
|
25693
|
+
});
|
25687
25694
|
this.getPreset = () => {
|
25688
25695
|
var _a8;
|
25689
25696
|
return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
|
@@ -25724,7 +25731,7 @@ var defaultMedia2 = [
|
|
25724
25731
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
25725
25732
|
var iconDims = { height: "40px", width: "40px" };
|
25726
25733
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
25727
|
-
var _a8
|
25734
|
+
var _a8;
|
25728
25735
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
25729
25736
|
const hmsActions = useHMSActions40();
|
25730
25737
|
const localPeer = useHMSStore61(selectLocalPeer6);
|
@@ -25739,9 +25746,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25739
25746
|
const isEffectsEnabled = useHMSStore61(Yn);
|
25740
25747
|
const effectsKey = useHMSStore61(Xn);
|
25741
25748
|
const isPluginAdded = useHMSStore61(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
25742
|
-
const
|
25743
|
-
((_b7 = VBHandler) == null ? void 0 : _b7.getBackground()) || HMSVirtualBackgroundTypes3.NONE
|
25744
|
-
);
|
25749
|
+
const background = useHMSStore61(zh(APP_DATA.background));
|
25745
25750
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
25746
25751
|
const inPreview = roomState === HMSRoomState4.Preview;
|
25747
25752
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -25763,8 +25768,22 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25763
25768
|
hmsActions.addPluginToVideoTrack(vbObject, Math.floor(role.publishParams.video.frameRate / 2));
|
25764
25769
|
}
|
25765
25770
|
}
|
25771
|
+
const handleDefaultBackground = () => __async(void 0, null, function* () {
|
25772
|
+
switch (background) {
|
25773
|
+
case HMSVirtualBackgroundTypes3.NONE: {
|
25774
|
+
break;
|
25775
|
+
}
|
25776
|
+
case HMSVirtualBackgroundTypes3.BLUR: {
|
25777
|
+
yield VBHandler.setBlur(blurAmount);
|
25778
|
+
break;
|
25779
|
+
}
|
25780
|
+
default:
|
25781
|
+
yield VBHandler.setBackground(background);
|
25782
|
+
}
|
25783
|
+
});
|
25784
|
+
handleDefaultBackground();
|
25766
25785
|
}
|
25767
|
-
}, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey, track == null ? void 0 : track.id]);
|
25786
|
+
}, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey, track == null ? void 0 : track.id, background, blurAmount]);
|
25768
25787
|
useEffect28(() => {
|
25769
25788
|
if (!isVideoOn) {
|
25770
25789
|
toggleVB();
|
@@ -25807,7 +25826,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25807
25826
|
value: HMSVirtualBackgroundTypes3.NONE,
|
25808
25827
|
onClick: () => __async(void 0, null, function* () {
|
25809
25828
|
yield VBHandler.removeEffects();
|
25810
|
-
|
25829
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.NONE);
|
25811
25830
|
})
|
25812
25831
|
},
|
25813
25832
|
{
|
@@ -25817,14 +25836,14 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25817
25836
|
onClick: () => __async(void 0, null, function* () {
|
25818
25837
|
var _a9;
|
25819
25838
|
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
|
25820
|
-
|
25839
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.BLUR);
|
25821
25840
|
})
|
25822
25841
|
}
|
25823
25842
|
],
|
25824
|
-
activeBackground
|
25843
|
+
activeBackground: background
|
25825
25844
|
}
|
25826
25845
|
),
|
25827
|
-
/* @__PURE__ */ React122.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } },
|
25846
|
+
/* @__PURE__ */ React122.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React122.createElement(Box, null, /* @__PURE__ */ React122.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React122.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React122.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React122.createElement(
|
25828
25847
|
Slider,
|
25829
25848
|
{
|
25830
25849
|
showTooltip: false,
|
@@ -25848,10 +25867,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25848
25867
|
onClick: () => __async(void 0, null, function* () {
|
25849
25868
|
var _a9;
|
25850
25869
|
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
|
25851
|
-
|
25870
|
+
hmsActions.setAppData(APP_DATA.background, mediaURL);
|
25852
25871
|
})
|
25853
25872
|
})),
|
25854
|
-
activeBackground
|
25873
|
+
activeBackground: background
|
25855
25874
|
}
|
25856
25875
|
)
|
25857
25876
|
));
|
@@ -25863,7 +25882,7 @@ var SidePane = ({
|
|
25863
25882
|
hideControls = false
|
25864
25883
|
}) => {
|
25865
25884
|
var _a8, _b7, _c, _d, _e, _f;
|
25866
|
-
const isMobile =
|
25885
|
+
const isMobile = useMedia21(config.media.md);
|
25867
25886
|
const sidepane = useHMSStore62(selectAppData5(APP_DATA.sidePane));
|
25868
25887
|
const activeScreensharePeerId = useHMSStore62(selectAppData5(APP_DATA.activeScreensharePeerId));
|
25869
25888
|
const trackId = (_a8 = useHMSStore62(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
@@ -26007,7 +26026,7 @@ var SpeakerTag = () => {
|
|
26007
26026
|
{
|
26008
26027
|
align: "center",
|
26009
26028
|
justify: "center",
|
26010
|
-
css: { flex: "1 1 0", color: "$
|
26029
|
+
css: { flex: "1 1 0", color: "$on_surface_high", "@md": { display: "none" } }
|
26011
26030
|
},
|
26012
26031
|
/* @__PURE__ */ React126.createElement(VerticalDivider, { css: { ml: "$8" } }),
|
26013
26032
|
/* @__PURE__ */ React126.createElement(VolumeOneIcon, null),
|
@@ -26048,7 +26067,7 @@ var Logo = () => {
|
|
26048
26067
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
26049
26068
|
init_define_process_env();
|
26050
26069
|
import React127 from "react";
|
26051
|
-
import { useMedia as
|
26070
|
+
import { useMedia as useMedia22 } from "react-use";
|
26052
26071
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
|
26053
26072
|
import { useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
26054
26073
|
import { GoLiveIcon } from "@100mslive/react-icons";
|
@@ -26065,7 +26084,7 @@ var PreviewForm = ({
|
|
26065
26084
|
const formSubmit = (e) => {
|
26066
26085
|
e.preventDefault();
|
26067
26086
|
};
|
26068
|
-
const isMobile =
|
26087
|
+
const isMobile = useMedia22(config.media.md);
|
26069
26088
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming9();
|
26070
26089
|
const layout = useRoomLayout();
|
26071
26090
|
const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
@@ -26126,7 +26145,7 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
26126
26145
|
var useLocalTileAspectRatio = () => {
|
26127
26146
|
const localPeer = useHMSStore64(selectLocalPeer7);
|
26128
26147
|
const videoTrack = useHMSStore64(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
|
26129
|
-
const isMobile =
|
26148
|
+
const isMobile = useMedia23(config.media.md);
|
26130
26149
|
let aspectRatio = 0;
|
26131
26150
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
26132
26151
|
aspectRatio = videoTrack.width / videoTrack.height;
|
@@ -26147,7 +26166,7 @@ var PreviewJoin = ({
|
|
26147
26166
|
const { isStreamingOn } = useRecordingStreaming10();
|
26148
26167
|
const authToken = useAuthToken();
|
26149
26168
|
const [name, setName] = useState52(initialName || previewPreference.name);
|
26150
|
-
const { toggleAudio, toggleVideo } =
|
26169
|
+
const { toggleAudio, toggleVideo } = useAVToggle5();
|
26151
26170
|
const [previewError, setPreviewError] = useState52(false);
|
26152
26171
|
const { endpoints } = useHMSPrebuiltContext();
|
26153
26172
|
const { peerCount } = useParticipants2();
|
@@ -26235,7 +26254,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
26235
26254
|
}));
|
26236
26255
|
var PreviewTile = ({ name, error }) => {
|
26237
26256
|
const localPeer = useHMSStore64(selectLocalPeer7);
|
26238
|
-
const { isLocalAudioEnabled, toggleAudio } =
|
26257
|
+
const { isLocalAudioEnabled, toggleAudio } = useAVToggle5();
|
26239
26258
|
const isVideoOn = useHMSStore64(selectIsLocalVideoEnabled6);
|
26240
26259
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26241
26260
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -26280,7 +26299,7 @@ var PreviewTile = ({ name, error }) => {
|
|
26280
26299
|
);
|
26281
26300
|
};
|
26282
26301
|
var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
26283
|
-
const isMobile =
|
26302
|
+
const isMobile = useMedia23(config.media.md);
|
26284
26303
|
return /* @__PURE__ */ React128.createElement(
|
26285
26304
|
Flex,
|
26286
26305
|
{
|
@@ -26290,7 +26309,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
|
26290
26309
|
mt: "$8"
|
26291
26310
|
}
|
26292
26311
|
},
|
26293
|
-
/* @__PURE__ */ React128.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React128.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ React128.createElement(VBToggle, null) : null),
|
26312
|
+
/* @__PURE__ */ React128.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React128.createElement(AudioVideoToggle, null), vbEnabled && !isMobile ? /* @__PURE__ */ React128.createElement(VBToggle, null) : null),
|
26294
26313
|
!hideSettings ? /* @__PURE__ */ React128.createElement(PreviewSettings, null) : null
|
26295
26314
|
);
|
26296
26315
|
};
|
@@ -26303,7 +26322,7 @@ var PreviewJoin_default = PreviewJoin;
|
|
26303
26322
|
// src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
|
26304
26323
|
init_define_process_env();
|
26305
26324
|
import React129 from "react";
|
26306
|
-
import { useMedia as
|
26325
|
+
import { useMedia as useMedia24 } from "react-use";
|
26307
26326
|
var RequestPrompt = ({
|
26308
26327
|
open = true,
|
26309
26328
|
onOpenChange,
|
@@ -26313,7 +26332,7 @@ var RequestPrompt = ({
|
|
26313
26332
|
onAction,
|
26314
26333
|
disableActions = false
|
26315
26334
|
}) => {
|
26316
|
-
const isMobile =
|
26335
|
+
const isMobile = useMedia24(config.media.md);
|
26317
26336
|
if (isMobile) {
|
26318
26337
|
return /* @__PURE__ */ React129.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React129.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React129.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React129.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
|
26319
26338
|
}
|
@@ -26425,14 +26444,14 @@ import {
|
|
26425
26444
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
26426
26445
|
init_define_process_env();
|
26427
26446
|
import React135, { useEffect as useEffect36, useMemo as useMemo12, useState as useState54 } from "react";
|
26428
|
-
import { useMedia as
|
26447
|
+
import { useMedia as useMedia27 } from "react-use";
|
26429
26448
|
import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
|
26430
26449
|
|
26431
26450
|
// src/Prebuilt/components/InsetTile.tsx
|
26432
26451
|
init_define_process_env();
|
26433
26452
|
import React132, { useEffect as useEffect33, useRef as useRef21 } from "react";
|
26434
26453
|
import Draggable from "react-draggable";
|
26435
|
-
import { useMedia as
|
26454
|
+
import { useMedia as useMedia25 } from "react-use";
|
26436
26455
|
import {
|
26437
26456
|
selectIsAllowedToPublish as selectIsAllowedToPublish2,
|
26438
26457
|
selectLocalPeer as selectLocalPeer8,
|
@@ -26476,8 +26495,8 @@ var insetMaxWidthPx = 240;
|
|
26476
26495
|
var defaultMobileAspectRatio = 9 / 16;
|
26477
26496
|
var desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
26478
26497
|
var InsetTile = ({ peerId }) => {
|
26479
|
-
const isMobile =
|
26480
|
-
const isLandscape =
|
26498
|
+
const isMobile = useMedia25(config.media.md);
|
26499
|
+
const isLandscape = useMedia25(config.media.ls);
|
26481
26500
|
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
|
26482
26501
|
const peer = useHMSStore66(selector);
|
26483
26502
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
@@ -26637,7 +26656,7 @@ var Grid = React134.forwardRef(
|
|
26637
26656
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
26638
26657
|
init_define_process_env();
|
26639
26658
|
import { useEffect as useEffect35, useMemo as useMemo11, useState as useState53 } from "react";
|
26640
|
-
import { useMeasure as useMeasure5, useMedia as
|
26659
|
+
import { useMeasure as useMeasure5, useMedia as useMedia26 } from "react-use";
|
26641
26660
|
import {
|
26642
26661
|
getPeersWithTiles,
|
26643
26662
|
selectTracksMap as selectTracksMap3,
|
@@ -26673,7 +26692,7 @@ var useTileLayout = ({
|
|
26673
26692
|
}) => {
|
26674
26693
|
const vanillaStore = useHMSVanillaStore11();
|
26675
26694
|
const [ref, { width, height }] = useMeasure5();
|
26676
|
-
const isMobile =
|
26695
|
+
const isMobile = useMedia26(config.media.lg);
|
26677
26696
|
const [pagesWithTiles, setPagesWithTiles] = useState53([]);
|
26678
26697
|
useEffect35(() => {
|
26679
26698
|
if (width === 0 || height === 0) {
|
@@ -26743,7 +26762,7 @@ var useTileLayout = ({
|
|
26743
26762
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
26744
26763
|
var _a8;
|
26745
26764
|
const localPeer = useHMSStore67(selectLocalPeer9);
|
26746
|
-
const isMobile =
|
26765
|
+
const isMobile = useMedia27(config.media.md);
|
26747
26766
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
26748
26767
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
26749
26768
|
let pageList = usePagesWithTiles({
|
@@ -26793,7 +26812,7 @@ import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore69 } fr
|
|
26793
26812
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
26794
26813
|
init_define_process_env();
|
26795
26814
|
import React137, { useEffect as useEffect37, useRef as useRef22, useState as useState55 } from "react";
|
26796
|
-
import { useMedia as
|
26815
|
+
import { useMedia as useMedia28 } from "react-use";
|
26797
26816
|
import { selectAppData as selectAppData6, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore68 } from "@100mslive/react-sdk";
|
26798
26817
|
|
26799
26818
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
@@ -26876,7 +26895,7 @@ var ProminenceLayout = {
|
|
26876
26895
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
26877
26896
|
var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
26878
26897
|
var _a8, _b7;
|
26879
|
-
const isMobile =
|
26898
|
+
const isMobile = useMedia28(config.media.md);
|
26880
26899
|
const maxTileCount = isMobile ? 2 : 4;
|
26881
26900
|
const [page, setPage] = useState55(0);
|
26882
26901
|
const pinnedTrackId = useHMSStore68(selectAppData6(APP_DATA.pinnedTrackId));
|
@@ -27018,13 +27037,13 @@ function RoleProminence({
|
|
27018
27037
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
27019
27038
|
init_define_process_env();
|
27020
27039
|
import React142, { useEffect as useEffect39, useMemo as useMemo14, useState as useState59 } from "react";
|
27021
|
-
import { useMedia as
|
27040
|
+
import { useMedia as useMedia30 } from "react-use";
|
27022
27041
|
import { selectPeersScreenSharing, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
|
27023
27042
|
|
27024
27043
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
27025
27044
|
init_define_process_env();
|
27026
27045
|
import React141, { useRef as useRef23, useState as useState58 } from "react";
|
27027
|
-
import { useFullscreen as useFullscreen2, useMedia as
|
27046
|
+
import { useFullscreen as useFullscreen2, useMedia as useMedia29 } from "react-use";
|
27028
27047
|
import screenfull2 from "screenfull";
|
27029
27048
|
import {
|
27030
27049
|
selectLocalPeerID as selectLocalPeerID13,
|
@@ -27185,7 +27204,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
27185
27204
|
const peer = useHMSStore70(selectPeerByID4(peerId));
|
27186
27205
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
27187
27206
|
const [isMouseHovered, setIsMouseHovered] = useState58(false);
|
27188
|
-
const isMobile =
|
27207
|
+
const isMobile = useMedia29(config.media.md);
|
27189
27208
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
27190
27209
|
const fullscreenRef = useRef23(null);
|
27191
27210
|
const [fullscreen, setFullscreen] = useState58(false);
|
@@ -27236,7 +27255,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
27236
27255
|
},
|
27237
27256
|
isFullscreen ? /* @__PURE__ */ React141.createElement(ShrinkIcon2, null) : /* @__PURE__ */ React141.createElement(ExpandIcon3, null)
|
27238
27257
|
) : null,
|
27239
|
-
!isMobile && isMouseHovered && /* @__PURE__ */ React141.createElement(
|
27258
|
+
!isMobile && isMouseHovered && !isFullscreen && /* @__PURE__ */ React141.createElement(
|
27240
27259
|
Box,
|
27241
27260
|
{
|
27242
27261
|
css: {
|
@@ -27277,7 +27296,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
27277
27296
|
const [page, setPage] = useState59(0);
|
27278
27297
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
27279
27298
|
const activeSharePeer = peersSharing[page];
|
27280
|
-
const isMobile =
|
27299
|
+
const isMobile = useMedia30(config.media.md);
|
27281
27300
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
27282
27301
|
const secondaryPeers = useMemo14(() => {
|
27283
27302
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -27688,10 +27707,10 @@ var WaitingView = React146.memo(() => {
|
|
27688
27707
|
// src/Prebuilt/layouts/WhiteboardView.tsx
|
27689
27708
|
init_define_process_env();
|
27690
27709
|
import React147, { useEffect as useEffect43, useMemo as useMemo17 } from "react";
|
27691
|
-
import { useMedia as
|
27710
|
+
import { useMedia as useMedia31 } from "react-use";
|
27692
27711
|
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore74, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
27693
27712
|
var EmbedComponent2 = () => {
|
27694
|
-
const isMobile =
|
27713
|
+
const isMobile = useMedia31(config.media.md);
|
27695
27714
|
const { iframeRef } = useWhiteboard2(isMobile);
|
27696
27715
|
return /* @__PURE__ */ React147.createElement(
|
27697
27716
|
Box,
|
@@ -27762,7 +27781,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
27762
27781
|
};
|
27763
27782
|
|
27764
27783
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
27765
|
-
var HLSView = React148.lazy(() => import("./HLSView-
|
27784
|
+
var HLSView = React148.lazy(() => import("./HLSView-H6Q2FEMZ.js"));
|
27766
27785
|
var VideoStreamingSection = ({
|
27767
27786
|
screenType,
|
27768
27787
|
elements,
|
@@ -27836,7 +27855,7 @@ init_define_process_env();
|
|
27836
27855
|
// src/Prebuilt/components/Header/Header.tsx
|
27837
27856
|
init_define_process_env();
|
27838
27857
|
import React150 from "react";
|
27839
|
-
import { useMedia as
|
27858
|
+
import { useMedia as useMedia32 } from "react-use";
|
27840
27859
|
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
27841
27860
|
|
27842
27861
|
// src/Prebuilt/components/Header/common.jsx
|
@@ -28002,7 +28021,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React149.createElement(Re
|
|
28002
28021
|
// src/Prebuilt/components/Header/Header.tsx
|
28003
28022
|
var Header2 = () => {
|
28004
28023
|
const roomState = useHMSStore77(selectRoomState6);
|
28005
|
-
const isMobile =
|
28024
|
+
const isMobile = useMedia32(config.media.md);
|
28006
28025
|
if (roomState !== HMSRoomState6.Connected) {
|
28007
28026
|
return /* @__PURE__ */ React150.createElement(React150.Fragment, null);
|
28008
28027
|
}
|
@@ -28533,11 +28552,11 @@ var LeaveScreen = () => {
|
|
28533
28552
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
28534
28553
|
init_define_process_env();
|
28535
28554
|
import React156, { useEffect as useEffect52, useState as useState62 } from "react";
|
28536
|
-
import { useMedia as
|
28555
|
+
import { useMedia as useMedia33 } from "react-use";
|
28537
28556
|
import { RefreshIcon } from "@100mslive/react-icons";
|
28538
28557
|
var MwebLandscapePrompt = () => {
|
28539
28558
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState62(false);
|
28540
|
-
const isLandscape =
|
28559
|
+
const isLandscape = useMedia33(config.media.ls);
|
28541
28560
|
useEffect52(() => {
|
28542
28561
|
var _a8;
|
28543
28562
|
if (!isMobileUserAgent) {
|
@@ -28991,7 +29010,7 @@ var PeerNotifications = () => {
|
|
28991
29010
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
28992
29011
|
init_define_process_env();
|
28993
29012
|
import React161, { useEffect as useEffect57, useState as useState64 } from "react";
|
28994
|
-
import { useMedia as
|
29013
|
+
import { useMedia as useMedia34 } from "react-use";
|
28995
29014
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
28996
29015
|
|
28997
29016
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -29005,7 +29024,7 @@ function PermissionErrorModal() {
|
|
29005
29024
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
29006
29025
|
const [deviceType, setDeviceType] = useState64("");
|
29007
29026
|
const [isSystemError, setIsSystemError] = useState64(false);
|
29008
|
-
const isMobile =
|
29027
|
+
const isMobile = useMedia34(config.media.md);
|
29009
29028
|
useEffect57(() => {
|
29010
29029
|
var _a8, _b7, _c, _d, _e;
|
29011
29030
|
if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
|
@@ -29453,7 +29472,7 @@ var ToastContainer = () => {
|
|
29453
29472
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
29454
29473
|
init_define_process_env();
|
29455
29474
|
import React169, { useCallback as useCallback34, useEffect as useEffect64, useMemo as useMemo18, useState as useState69 } from "react";
|
29456
|
-
import { useMedia as
|
29475
|
+
import { useMedia as useMedia35 } from "react-use";
|
29457
29476
|
import {
|
29458
29477
|
selectLocalPeerID as selectLocalPeerID17,
|
29459
29478
|
selectPeerNameByID as selectPeerNameByID6,
|
@@ -29488,7 +29507,7 @@ function FlyingEmoji() {
|
|
29488
29507
|
const localPeerId = useHMSStore86(selectLocalPeerID17);
|
29489
29508
|
const vanillaStore = useHMSVanillaStore17();
|
29490
29509
|
const [emojis, setEmojis] = useState69([]);
|
29491
|
-
const isMobile =
|
29510
|
+
const isMobile = useMedia35(config.media.md);
|
29492
29511
|
const startingPoints = useMemo18(() => getStartingPoints(isMobile), [isMobile]);
|
29493
29512
|
const showFlyingEmoji = useCallback34(
|
29494
29513
|
({ emojiId, senderId }) => {
|
@@ -29689,14 +29708,13 @@ var HMSPrebuilt = React171.forwardRef(
|
|
29689
29708
|
}
|
29690
29709
|
ref.current = __spreadValues({}, reactiveStore.current);
|
29691
29710
|
}, [ref]);
|
29692
|
-
useEffect66(
|
29693
|
-
|
29711
|
+
useEffect66(() => {
|
29712
|
+
return () => {
|
29694
29713
|
var _a9;
|
29695
29714
|
VBHandler.reset();
|
29696
29715
|
(_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
|
29697
|
-
}
|
29698
|
-
|
29699
|
-
);
|
29716
|
+
};
|
29717
|
+
}, []);
|
29700
29718
|
const endpointsObj = endpoints;
|
29701
29719
|
const tokenByRoomCodeEndpoint = (endpointsObj == null ? void 0 : endpointsObj.tokenByRoomCode) || "";
|
29702
29720
|
const initEndpoint = (endpointsObj == null ? void 0 : endpointsObj.init) || "";
|
@@ -29767,7 +29785,6 @@ var HMSPrebuilt = React171.forwardRef(
|
|
29767
29785
|
}
|
29768
29786
|
}
|
29769
29787
|
},
|
29770
|
-
/* @__PURE__ */ React171.createElement(AppData, null),
|
29771
29788
|
/* @__PURE__ */ React171.createElement(Init, null),
|
29772
29789
|
/* @__PURE__ */ React171.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React171.createElement(
|
29773
29790
|
Box,
|
@@ -29830,7 +29847,7 @@ function AppRoutes({
|
|
29830
29847
|
const roomLayout = useRoomLayout();
|
29831
29848
|
const isNotificationsDisabled = useIsNotificationDisabled();
|
29832
29849
|
const { activeState, rejoin } = useAppStateManager();
|
29833
|
-
return /* @__PURE__ */ React171.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React171.createElement(React171.Fragment, null, /* @__PURE__ */ React171.createElement(ToastContainer, null), /* @__PURE__ */ React171.createElement(Notifications, null), /* @__PURE__ */ React171.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React171.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React171.createElement(FlyingEmoji, null), /* @__PURE__ */ React171.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React171.createElement(KeyboardHandler, null), /* @__PURE__ */ React171.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React171.createElement(AppStates, { activeState })));
|
29850
|
+
return /* @__PURE__ */ React171.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React171.createElement(React171.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React171.createElement(AppData, null), /* @__PURE__ */ React171.createElement(ToastContainer, null), /* @__PURE__ */ React171.createElement(Notifications, null), /* @__PURE__ */ React171.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React171.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React171.createElement(FlyingEmoji, null), /* @__PURE__ */ React171.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React171.createElement(KeyboardHandler, null), /* @__PURE__ */ React171.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React171.createElement(AppStates, { activeState })));
|
29834
29851
|
}
|
29835
29852
|
|
29836
29853
|
// src/Progress/index.tsx
|
@@ -29971,4 +29988,4 @@ lodash/lodash.js:
|
|
29971
29988
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
29972
29989
|
*)
|
29973
29990
|
*/
|
29974
|
-
//# sourceMappingURL=chunk-
|
29991
|
+
//# sourceMappingURL=chunk-HRUQKLGN.js.map
|