@100mslive/roomkit-react 0.2.6-alpha.3 → 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-7QXLQ4KD.js → HLSView-H6Q2FEMZ.js} +3 -3
- package/dist/{HLSView-7QXLQ4KD.js.map → HLSView-H6Q2FEMZ.js.map} +2 -2
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -1
- package/dist/{chunk-ZJU5GUBY.js → chunk-HRUQKLGN.js} +102 -109
- package/dist/chunk-HRUQKLGN.js.map +7 -0
- package/dist/index.cjs.js +160 -166
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +30 -15
- package/dist/meta.esbuild.json +43 -28
- package/package.json +6 -6
- package/src/Prebuilt/components/AppData/AppData.tsx +9 -2
- 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 -1
- package/src/Prebuilt/components/ScreenshareTile.tsx +1 -1
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +2 -2
- package/src/Prebuilt/layouts/HLSView.jsx +1 -2
- package/dist/chunk-ZJU5GUBY.js.map +0 -7
package/dist/index.cjs.js
CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
|
|
108
108
|
var define_process_env_default;
|
109
109
|
var init_define_process_env = __esm({
|
110
110
|
"<define:process.env>"() {
|
111
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b45e290a-2d91-471b-9cef-374efcd3c5aa", 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.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b45e290a-2d91-471b-9cef-374efcd3c5aa", 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.3", 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:19503", 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.3", 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: "7897125030", 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: "e1e1ecc82a980ca298ecb36c81c35ab7500b06b4", 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: "f3f0abee6b9721ff06a24126511e80713371f9e33ef00a466da9e4d005901c0a", 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--1707890553873-0.45213674335187837:/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--1707890553679-0.5145403068446215:/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--1707890531884-0.24454757746692657:/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--1707890531706-0.26349008949685615:/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_c4375215-07c9-47a0-b9c9-73a402851d81", INVOCATION_ID: "308080f47c9b474892b5d6e7311e07d9", 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: "433", 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 466", 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.3", 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.3", 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: "e1e1ecc82a980ca298ecb36c81c35ab7500b06b4", 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_b45e290a-2d91-471b-9cef-374efcd3c5aa", 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_b45e290a-2d91-471b-9cef-374efcd3c5aa", 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_b45e290a-2d91-471b-9cef-374efcd3c5aa" };
|
111
|
+
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" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -9818,13 +9818,15 @@ var init_useSidepane = __esm({
|
|
9818
9818
|
});
|
9819
9819
|
|
9820
9820
|
// src/Prebuilt/components/AppData/AppData.tsx
|
9821
|
-
var import_react33, import_react_sdk9, initialAppData, AppData, ResetStreamingStart;
|
9821
|
+
var import_react33, import_react_use2, import_react_sdk9, initialAppData, AppData, ResetStreamingStart;
|
9822
9822
|
var init_AppData = __esm({
|
9823
9823
|
"src/Prebuilt/components/AppData/AppData.tsx"() {
|
9824
9824
|
"use strict";
|
9825
9825
|
init_define_process_env();
|
9826
9826
|
import_react33 = __toESM(require("react"));
|
9827
|
+
import_react_use2 = require("react-use");
|
9827
9828
|
import_react_sdk9 = require("@100mslive/react-sdk");
|
9829
|
+
init_Theme();
|
9828
9830
|
init_LayoutSettings();
|
9829
9831
|
init_useRoomLayoutScreen();
|
9830
9832
|
init_useUserPreferences();
|
@@ -9877,6 +9879,8 @@ var init_AppData = __esm({
|
|
9877
9879
|
const appData = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectFullAppData);
|
9878
9880
|
const { elements } = useRoomLayoutConferencingScreen();
|
9879
9881
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
9882
|
+
const isMobile = (0, import_react_use2.useMedia)(config.media.md);
|
9883
|
+
const { isLocalVideoEnabled } = (0, import_react_sdk9.useAVToggle)();
|
9880
9884
|
(0, import_react33.useEffect)(() => {
|
9881
9885
|
hmsActions.initAppData(__spreadValues(__spreadValues({}, initialAppData), appData));
|
9882
9886
|
hmsActions.setFrameworkInfo({
|
@@ -9909,9 +9913,11 @@ var init_AppData = __esm({
|
|
9909
9913
|
});
|
9910
9914
|
if (defaultMediaURL) {
|
9911
9915
|
hmsActions.setAppData(APP_DATA.background, defaultMediaURL);
|
9912
|
-
|
9916
|
+
if (isLocalVideoEnabled && !isMobile) {
|
9917
|
+
toggleVB();
|
9918
|
+
}
|
9913
9919
|
}
|
9914
|
-
}, [hmsActions, (_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media, toggleVB]);
|
9920
|
+
}, [hmsActions, (_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media, toggleVB, isLocalVideoEnabled, isMobile]);
|
9915
9921
|
return /* @__PURE__ */ import_react33.default.createElement(ResetStreamingStart, null);
|
9916
9922
|
});
|
9917
9923
|
ResetStreamingStart = () => {
|
@@ -9998,13 +10004,13 @@ var init_transaction_error = __esm({
|
|
9998
10004
|
});
|
9999
10005
|
|
10000
10006
|
// src/Prebuilt/components/AuthToken.jsx
|
10001
|
-
var import_react35,
|
10007
|
+
var import_react35, import_react_use3, import_uuid, import_react_sdk10, AuthToken, convertError, AuthToken_default;
|
10002
10008
|
var init_AuthToken = __esm({
|
10003
10009
|
"src/Prebuilt/components/AuthToken.jsx"() {
|
10004
10010
|
"use strict";
|
10005
10011
|
init_define_process_env();
|
10006
10012
|
import_react35 = __toESM(require("react"));
|
10007
|
-
|
10013
|
+
import_react_use3 = require("react-use");
|
10008
10014
|
import_uuid = require("uuid");
|
10009
10015
|
import_react_sdk10 = require("@100mslive/react-sdk");
|
10010
10016
|
init_Modal();
|
@@ -10020,7 +10026,7 @@ var init_AuthToken = __esm({
|
|
10020
10026
|
const [error, setError] = (0, import_react35.useState)({ title: "", body: "" });
|
10021
10027
|
let authToken = defaultAuthToken;
|
10022
10028
|
const [, setAuthTokenInAppData] = useSetAppDataByKey(APP_DATA.authToken);
|
10023
|
-
const [savedUserId, setSavedUserId] = (0,
|
10029
|
+
const [savedUserId, setSavedUserId] = (0, import_react_use3.useSessionStorage)(UserPreferencesKeys.USER_ID);
|
10024
10030
|
(0, import_react35.useEffect)(() => {
|
10025
10031
|
if (authToken) {
|
10026
10032
|
setAuthTokenInAppData(authToken);
|
@@ -10488,13 +10494,13 @@ var init_useDropdownList = __esm({
|
|
10488
10494
|
});
|
10489
10495
|
|
10490
10496
|
// src/Prebuilt/components/EmojiReaction.jsx
|
10491
|
-
var import_react40,
|
10497
|
+
var import_react40, import_react_use4, import_apple, import_emoji_mart, import_react_sdk12, import_react_icons10, EmojiReaction;
|
10492
10498
|
var init_EmojiReaction = __esm({
|
10493
10499
|
"src/Prebuilt/components/EmojiReaction.jsx"() {
|
10494
10500
|
"use strict";
|
10495
10501
|
init_define_process_env();
|
10496
10502
|
import_react40 = __toESM(require("react"));
|
10497
|
-
|
10503
|
+
import_react_use4 = require("react-use");
|
10498
10504
|
import_apple = __toESM(require("@emoji-mart/data/sets/14/apple.json"));
|
10499
10505
|
import_emoji_mart = require("emoji-mart");
|
10500
10506
|
import_react_sdk12 = require("@100mslive/react-sdk");
|
@@ -10514,7 +10520,7 @@ var init_EmojiReaction = __esm({
|
|
10514
10520
|
useDropdownList({ open, name: "EmojiReaction" });
|
10515
10521
|
const roles = (0, import_react_sdk12.useHMSStore)(import_react_sdk12.selectAvailableRoleNames);
|
10516
10522
|
const localPeerId = (0, import_react_sdk12.useHMSStore)(import_react_sdk12.selectLocalPeerID);
|
10517
|
-
const isMobile = (0,
|
10523
|
+
const isMobile = (0, import_react_use4.useMedia)(config.media.md);
|
10518
10524
|
const { sendEvent } = (0, import_react_sdk12.useCustomEvent)({
|
10519
10525
|
type: EMOJI_REACTION_TYPE
|
10520
10526
|
});
|
@@ -11036,13 +11042,13 @@ var init_MwebLeaveRoom = __esm({
|
|
11036
11042
|
});
|
11037
11043
|
|
11038
11044
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
11039
|
-
var import_react47,
|
11045
|
+
var import_react47, import_react_use5, import_react_sdk15, LeaveRoom;
|
11040
11046
|
var init_LeaveRoom = __esm({
|
11041
11047
|
"src/Prebuilt/components/Leave/LeaveRoom.tsx"() {
|
11042
11048
|
"use strict";
|
11043
11049
|
init_define_process_env();
|
11044
11050
|
import_react47 = __toESM(require("react"));
|
11045
|
-
|
11051
|
+
import_react_use5 = require("react-use");
|
11046
11052
|
import_react_sdk15 = require("@100mslive/react-sdk");
|
11047
11053
|
init_Theme();
|
11048
11054
|
init_ToastManager();
|
@@ -11051,7 +11057,7 @@ var init_LeaveRoom = __esm({
|
|
11051
11057
|
LeaveRoom = ({ screenType }) => {
|
11052
11058
|
const isConnected = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectIsConnectedToRoom);
|
11053
11059
|
const permissions = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectPermissions);
|
11054
|
-
const isMobile = (0,
|
11060
|
+
const isMobile = (0, import_react_use5.useMedia)(config.media.md);
|
11055
11061
|
const rolesMap = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectRolesMap);
|
11056
11062
|
const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
|
11057
11063
|
const roleObj = rolesMap[roleName];
|
@@ -11908,13 +11914,13 @@ var init_DropdownTrigger = __esm({
|
|
11908
11914
|
});
|
11909
11915
|
|
11910
11916
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
11911
|
-
var import_react53,
|
11917
|
+
var import_react53, import_react_use6, import_react_sdk20, import_react_icons18, Settings, DeviceSelector, TEST_AUDIO_URL, TestAudio, DeviceSettings_default;
|
11912
11918
|
var init_DeviceSettings = __esm({
|
11913
11919
|
"src/Prebuilt/components/Settings/DeviceSettings.jsx"() {
|
11914
11920
|
"use strict";
|
11915
11921
|
init_define_process_env();
|
11916
11922
|
import_react53 = __toESM(require("react"));
|
11917
|
-
|
11923
|
+
import_react_use6 = require("react-use");
|
11918
11924
|
import_react_sdk20 = require("@100mslive/react-sdk");
|
11919
11925
|
import_react_icons18 = require("@100mslive/react-icons");
|
11920
11926
|
init_src();
|
@@ -11935,7 +11941,7 @@ var init_DeviceSettings = __esm({
|
|
11935
11941
|
const trackSelector = (0, import_react_sdk20.selectVideoTrackByID)(videoTrackId);
|
11936
11942
|
const hmsActions = (0, import_react_sdk20.useHMSActions)();
|
11937
11943
|
const track = (0, import_react_sdk20.useHMSStore)(trackSelector);
|
11938
|
-
const isMobile = (0,
|
11944
|
+
const isMobile = (0, import_react_use6.useMedia)(config.media.md);
|
11939
11945
|
(0, import_react53.useEffect)(() => {
|
11940
11946
|
if (isMobile) {
|
11941
11947
|
hmsActions.refreshDevices();
|
@@ -12168,13 +12174,13 @@ var init_NotificationSettings = __esm({
|
|
12168
12174
|
});
|
12169
12175
|
|
12170
12176
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
12171
|
-
var import_react55,
|
12177
|
+
var import_react55, import_react_use7, import_react_icons20, settingsList, SettingsModal, MobileSettingModal, DesktopSettingModal, SettingsContentHeader, SettingsModal_default;
|
12172
12178
|
var init_SettingsModal = __esm({
|
12173
12179
|
"src/Prebuilt/components/Settings/SettingsModal.jsx"() {
|
12174
12180
|
"use strict";
|
12175
12181
|
init_define_process_env();
|
12176
12182
|
import_react55 = __toESM(require("react"));
|
12177
|
-
|
12183
|
+
import_react_use7 = require("react-use");
|
12178
12184
|
import_react_icons20 = require("@100mslive/react-icons");
|
12179
12185
|
init_Divider2();
|
12180
12186
|
init_IconButton2();
|
@@ -12210,7 +12216,7 @@ var init_SettingsModal = __esm({
|
|
12210
12216
|
];
|
12211
12217
|
SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ import_react55.default.createElement(import_react55.default.Fragment, null) }) => {
|
12212
12218
|
const mediaQueryLg = config.media.md;
|
12213
|
-
const isMobile = (0,
|
12219
|
+
const isMobile = (0, import_react_use7.useMedia)(mediaQueryLg);
|
12214
12220
|
const [showSetting, setShowSetting] = (0, import_react55.useState)(
|
12215
12221
|
() => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
|
12216
12222
|
);
|
@@ -19095,7 +19101,7 @@ var init_dist = __esm({
|
|
19095
19101
|
};
|
19096
19102
|
ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19097
19103
|
nr = ya((Qc, Va) => {
|
19098
|
-
Va.exports = { version: "0.11.6-alpha.
|
19104
|
+
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"] };
|
19099
19105
|
});
|
19100
19106
|
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 || {});
|
19101
19107
|
Pa = ((e) => (e.CHAT = "chat", e))(Pa || {});
|
@@ -20347,13 +20353,13 @@ var init_utils3 = __esm({
|
|
20347
20353
|
});
|
20348
20354
|
|
20349
20355
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
20350
|
-
var import_react70,
|
20356
|
+
var import_react70, import_react_use8, import_react_sdk30, import_react_icons29, LiveStatus, RecordingStatus, RecordingPauseStatus, StartRecording2, StreamActions, StopRecordingInSheet;
|
20351
20357
|
var init_StreamActions = __esm({
|
20352
20358
|
"src/Prebuilt/components/Header/StreamActions.tsx"() {
|
20353
20359
|
"use strict";
|
20354
20360
|
init_define_process_env();
|
20355
20361
|
import_react70 = __toESM(require("react"));
|
20356
|
-
|
20362
|
+
import_react_use8 = require("react-use");
|
20357
20363
|
init_dist();
|
20358
20364
|
import_react_sdk30 = require("@100mslive/react-sdk");
|
20359
20365
|
import_react_icons29 = require("@100mslive/react-icons");
|
@@ -20369,7 +20375,7 @@ var init_StreamActions = __esm({
|
|
20369
20375
|
var _a8;
|
20370
20376
|
const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk30.useRecordingStreaming)();
|
20371
20377
|
const hlsState = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectHLSState);
|
20372
|
-
const isMobile = (0,
|
20378
|
+
const isMobile = (0, import_react_use8.useMedia)(config.media.md);
|
20373
20379
|
const intervalRef = (0, import_react70.useRef)(null);
|
20374
20380
|
const { screenType } = useRoomLayoutConferencingScreen();
|
20375
20381
|
const [liveTime, setLiveTime] = (0, import_react70.useState)(0);
|
@@ -20416,7 +20422,7 @@ var init_StreamActions = __esm({
|
|
20416
20422
|
RecordingStatus = () => {
|
20417
20423
|
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = (0, import_react_sdk30.useRecordingStreaming)();
|
20418
20424
|
const permissions = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectPermissions);
|
20419
|
-
const isMobile = (0,
|
20425
|
+
const isMobile = (0, import_react_use8.useMedia)(config.media.md);
|
20420
20426
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
20421
20427
|
// so no need to show this as it duplicates
|
20422
20428
|
[permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
|
@@ -20543,7 +20549,7 @@ var init_StreamActions = __esm({
|
|
20543
20549
|
};
|
20544
20550
|
StreamActions = () => {
|
20545
20551
|
const isConnected = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectIsConnectedToRoom);
|
20546
|
-
const isMobile = (0,
|
20552
|
+
const isMobile = (0, import_react_use8.useMedia)(config.media.md);
|
20547
20553
|
const roomState = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectRoomState);
|
20548
20554
|
return /* @__PURE__ */ import_react70.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react70.default.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ import_react70.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react70.default.createElement(RecordingPauseStatus, null), /* @__PURE__ */ import_react70.default.createElement(RecordingStatus, null), roomState !== import_react_sdk30.HMSRoomState.Preview ? /* @__PURE__ */ import_react70.default.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ import_react70.default.createElement(StartRecording2, null) : null);
|
20549
20555
|
};
|
@@ -20751,13 +20757,13 @@ var init_ChangeNameContent = __esm({
|
|
20751
20757
|
});
|
20752
20758
|
|
20753
20759
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
|
20754
|
-
var import_react73,
|
20760
|
+
var import_react73, import_react_use9, import_react_sdk31, ChangeNameModal;
|
20755
20761
|
var init_ChangeNameModal = __esm({
|
20756
20762
|
"src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx"() {
|
20757
20763
|
"use strict";
|
20758
20764
|
init_define_process_env();
|
20759
20765
|
import_react73 = __toESM(require("react"));
|
20760
|
-
|
20766
|
+
import_react_use9 = require("react-use");
|
20761
20767
|
import_react_sdk31 = require("@100mslive/react-sdk");
|
20762
20768
|
init_src();
|
20763
20769
|
init_Sheet2();
|
@@ -20772,7 +20778,7 @@ var init_ChangeNameModal = __esm({
|
|
20772
20778
|
const hmsActions = (0, import_react_sdk31.useHMSActions)();
|
20773
20779
|
const localPeerName = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectLocalPeerName);
|
20774
20780
|
const [currentName, setCurrentName] = (0, import_react73.useState)(localPeerName);
|
20775
|
-
const isMobile = (0,
|
20781
|
+
const isMobile = (0, import_react_use9.useMedia)(config.media.md);
|
20776
20782
|
const changeName = () => __async(void 0, null, function* () {
|
20777
20783
|
const name = (currentName == null ? void 0 : currentName.trim()) || "";
|
20778
20784
|
if (!name || name === localPeerName) {
|
@@ -20835,13 +20841,13 @@ var init_useUnreadPollQuizPresent = __esm({
|
|
20835
20841
|
});
|
20836
20842
|
|
20837
20843
|
// src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
|
20838
|
-
var import_react75,
|
20844
|
+
var import_react75, import_react_use10, import_react_sdk33, import_react_icons31, MODALS2, MwebOptions;
|
20839
20845
|
var init_MwebOptions = __esm({
|
20840
20846
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx"() {
|
20841
20847
|
"use strict";
|
20842
20848
|
init_define_process_env();
|
20843
20849
|
import_react75 = __toESM(require("react"));
|
20844
|
-
|
20850
|
+
import_react_use10 = require("react-use");
|
20845
20851
|
import_react_sdk33 = require("@100mslive/react-sdk");
|
20846
20852
|
import_react_icons31 = require("@100mslive/react-icons");
|
20847
20853
|
init_src();
|
@@ -20892,10 +20898,9 @@ var init_MwebOptions = __esm({
|
|
20892
20898
|
const peerCount = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectPeerCount);
|
20893
20899
|
const emojiCardRef = (0, import_react75.useRef)(null);
|
20894
20900
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
20895
|
-
const { toggleAudio, toggleVideo
|
20901
|
+
const { toggleAudio, toggleVideo } = (0, import_react_sdk33.useAVToggle)();
|
20896
20902
|
const noAVPermissions = !(toggleAudio || toggleVideo);
|
20897
20903
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
20898
|
-
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
20899
20904
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
20900
20905
|
const updateState = (modalName, value) => {
|
20901
20906
|
setOpenModals((modals) => {
|
@@ -20908,7 +20913,7 @@ var init_MwebOptions = __esm({
|
|
20908
20913
|
return copy;
|
20909
20914
|
});
|
20910
20915
|
};
|
20911
|
-
(0,
|
20916
|
+
(0, import_react_use10.useClickAway)(emojiCardRef, () => setShowEmojiCard(false));
|
20912
20917
|
return /* @__PURE__ */ import_react75.default.createElement(import_react75.default.Fragment, null, /* @__PURE__ */ import_react75.default.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ import_react75.default.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ import_react75.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ import_react75.default.createElement(IconButton_default, null, /* @__PURE__ */ import_react75.default.createElement(import_react_icons31.HamburgerMenuIcon, null)))), /* @__PURE__ */ import_react75.default.createElement(Sheet.Content, { css: { bg: "$surface_dim", pb: "$14" } }, /* @__PURE__ */ import_react75.default.createElement(
|
20913
20918
|
Sheet.Title,
|
20914
20919
|
{
|
@@ -20964,17 +20969,6 @@ var init_MwebOptions = __esm({
|
|
20964
20969
|
isHandRaised ? /* @__PURE__ */ import_react75.default.createElement(import_react_icons31.HandRaiseSlashedIcon, null) : /* @__PURE__ */ import_react75.default.createElement(import_react_icons31.HandIcon, null),
|
20965
20970
|
/* @__PURE__ */ import_react75.default.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
|
20966
20971
|
) : null,
|
20967
|
-
isLocalVideoEnabled && !!(elements == null ? void 0 : elements.virtual_background) ? /* @__PURE__ */ import_react75.default.createElement(
|
20968
|
-
ActionTile.Root,
|
20969
|
-
{
|
20970
|
-
onClick: () => {
|
20971
|
-
toggleVB();
|
20972
|
-
setOpenOptionsSheet(false);
|
20973
|
-
}
|
20974
|
-
},
|
20975
|
-
/* @__PURE__ */ import_react75.default.createElement(import_react_icons31.VirtualBackgroundIcon, null),
|
20976
|
-
/* @__PURE__ */ import_react75.default.createElement(ActionTile.Title, null, "Virtual Background")
|
20977
|
-
) : null,
|
20978
20972
|
(elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react75.default.createElement(
|
20979
20973
|
ActionTile.Root,
|
20980
20974
|
{
|
@@ -21113,13 +21107,13 @@ var init_MwebOptions = __esm({
|
|
21113
21107
|
});
|
21114
21108
|
|
21115
21109
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
21116
|
-
var import_react76,
|
21110
|
+
var import_react76, import_react_use11, MoreSettings;
|
21117
21111
|
var init_MoreSettings = __esm({
|
21118
21112
|
"src/Prebuilt/components/MoreSettings/MoreSettings.tsx"() {
|
21119
21113
|
"use strict";
|
21120
21114
|
init_define_process_env();
|
21121
21115
|
import_react76 = __toESM(require("react"));
|
21122
|
-
|
21116
|
+
import_react_use11 = require("react-use");
|
21123
21117
|
init_DesktopOptions();
|
21124
21118
|
init_MwebOptions();
|
21125
21119
|
init_src();
|
@@ -21127,7 +21121,7 @@ var init_MoreSettings = __esm({
|
|
21127
21121
|
elements,
|
21128
21122
|
screenType
|
21129
21123
|
}) => {
|
21130
|
-
const isMobile = (0,
|
21124
|
+
const isMobile = (0, import_react_use11.useMedia)(config.media.md);
|
21131
21125
|
return isMobile ? /* @__PURE__ */ import_react76.default.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ import_react76.default.createElement(DesktopOptions, { elements, screenType });
|
21132
21126
|
};
|
21133
21127
|
}
|
@@ -22086,13 +22080,13 @@ function itemKey(index, data3) {
|
|
22086
22080
|
var _a8;
|
22087
22081
|
return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
|
22088
22082
|
}
|
22089
|
-
var import_react90,
|
22083
|
+
var import_react90, import_react_use12, import_react_window, import_react_sdk41, import_react_icons42, ROW_HEIGHT, ITER_TIMER, VirtualizedParticipantItem, RoleAccordion;
|
22090
22084
|
var init_RoleAccordion = __esm({
|
22091
22085
|
"src/Prebuilt/components/Footer/RoleAccordion.tsx"() {
|
22092
22086
|
"use strict";
|
22093
22087
|
init_define_process_env();
|
22094
22088
|
import_react90 = __toESM(require("react"));
|
22095
|
-
|
22089
|
+
import_react_use12 = require("react-use");
|
22096
22090
|
import_react_window = require("react-window");
|
22097
22091
|
import_react_sdk41 = require("@100mslive/react-sdk");
|
22098
22092
|
import_react_icons42 = require("@100mslive/react-icons");
|
@@ -22126,7 +22120,7 @@ var init_RoleAccordion = __esm({
|
|
22126
22120
|
offStageRoles,
|
22127
22121
|
onActive
|
22128
22122
|
}) => {
|
22129
|
-
const [ref, { width }] = (0,
|
22123
|
+
const [ref, { width }] = (0, import_react_use12.useMeasure)();
|
22130
22124
|
const isLargeRoom = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectIsLargeRoom);
|
22131
22125
|
const { peers, total, loadPeers } = (0, import_react_sdk41.usePaginatedParticipants)({ role: roleName, limit: 10 });
|
22132
22126
|
const isOffStageRole = roleName && offStageRoles.includes(roleName);
|
@@ -22213,13 +22207,13 @@ var init_RoleAccordion = __esm({
|
|
22213
22207
|
});
|
22214
22208
|
|
22215
22209
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
22216
|
-
var import_react91,
|
22210
|
+
var import_react91, import_react_use13, import_react_sdk42, import_react_icons43, ParticipantList, ParticipantCount, Participant, VirtualizedParticipants, ParticipantActions, ParticipantMoreActions, ParticipantSearch;
|
22217
22211
|
var init_ParticipantList = __esm({
|
22218
22212
|
"src/Prebuilt/components/Footer/ParticipantList.tsx"() {
|
22219
22213
|
"use strict";
|
22220
22214
|
init_define_process_env();
|
22221
22215
|
import_react91 = __toESM(require("react"));
|
22222
|
-
|
22216
|
+
import_react_use13 = require("react-use");
|
22223
22217
|
import_react_sdk42 = require("@100mslive/react-sdk");
|
22224
22218
|
import_react_icons43 = require("@100mslive/react-icons");
|
22225
22219
|
init_src();
|
@@ -22516,8 +22510,8 @@ var init_ParticipantList = __esm({
|
|
22516
22510
|
inSidePane = false
|
22517
22511
|
}) => {
|
22518
22512
|
const [value, setValue] = import_react91.default.useState("");
|
22519
|
-
const isMobile = (0,
|
22520
|
-
(0,
|
22513
|
+
const isMobile = (0, import_react_use13.useMedia)(config.media.md);
|
22514
|
+
(0, import_react_use13.useDebounce)(
|
22521
22515
|
() => {
|
22522
22516
|
onSearch(value);
|
22523
22517
|
},
|
@@ -22636,13 +22630,13 @@ var init_WhiteboardToggle = __esm({
|
|
22636
22630
|
});
|
22637
22631
|
|
22638
22632
|
// src/Prebuilt/components/Footer/Footer.tsx
|
22639
|
-
var import_react94,
|
22633
|
+
var import_react94, import_react_use14, import_chat, import_react_sdk44, Footer2;
|
22640
22634
|
var init_Footer3 = __esm({
|
22641
22635
|
"src/Prebuilt/components/Footer/Footer.tsx"() {
|
22642
22636
|
"use strict";
|
22643
22637
|
init_define_process_env();
|
22644
22638
|
import_react94 = __toESM(require("react"));
|
22645
|
-
|
22639
|
+
import_react_use14 = require("react-use");
|
22646
22640
|
import_chat = require("@100mslive/types-prebuilt/elements/chat");
|
22647
22641
|
import_react_sdk44 = require("@100mslive/react-sdk");
|
22648
22642
|
init_src();
|
@@ -22665,7 +22659,7 @@ var init_Footer3 = __esm({
|
|
22665
22659
|
elements
|
22666
22660
|
}) => {
|
22667
22661
|
var _a8, _b7;
|
22668
|
-
const isMobile = (0,
|
22662
|
+
const isMobile = (0, import_react_use14.useMedia)(config.media.md);
|
22669
22663
|
const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
|
22670
22664
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
|
22671
22665
|
const { toggleAudio, toggleVideo } = (0, import_react_sdk44.useAVToggle)();
|
@@ -24802,13 +24796,13 @@ var init_empty_chat = __esm({
|
|
24802
24796
|
});
|
24803
24797
|
|
24804
24798
|
// src/Prebuilt/components/Chat/EmptyChat.tsx
|
24805
|
-
var import_react123,
|
24799
|
+
var import_react123, import_react_use15, EmptyChat;
|
24806
24800
|
var init_EmptyChat = __esm({
|
24807
24801
|
"src/Prebuilt/components/Chat/EmptyChat.tsx"() {
|
24808
24802
|
"use strict";
|
24809
24803
|
init_define_process_env();
|
24810
24804
|
import_react123 = __toESM(require("react"));
|
24811
|
-
|
24805
|
+
import_react_use15 = require("react-use");
|
24812
24806
|
init_Layout();
|
24813
24807
|
init_Text2();
|
24814
24808
|
init_Theme();
|
@@ -24819,7 +24813,7 @@ var init_EmptyChat = __esm({
|
|
24819
24813
|
var _a8;
|
24820
24814
|
const { elements } = useRoomLayoutConferencingScreen();
|
24821
24815
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
24822
|
-
const isMobile = (0,
|
24816
|
+
const isMobile = (0, import_react_use15.useMedia)(config.media.md);
|
24823
24817
|
const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
|
24824
24818
|
if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay))
|
24825
24819
|
return /* @__PURE__ */ import_react123.default.createElement(import_react123.default.Fragment, null);
|
@@ -24878,13 +24872,13 @@ function getRowHeight(index) {
|
|
24878
24872
|
var _a8;
|
24879
24873
|
return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
|
24880
24874
|
}
|
24881
|
-
var import_react125,
|
24875
|
+
var import_react125, import_react_use16, import_react_virtualized_auto_sizer, import_react_window2, import_react_sdk59, import_react_icons60, formatTime2, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
|
24882
24876
|
var init_ChatBody = __esm({
|
24883
24877
|
"src/Prebuilt/components/Chat/ChatBody.tsx"() {
|
24884
24878
|
"use strict";
|
24885
24879
|
init_define_process_env();
|
24886
24880
|
import_react125 = __toESM(require("react"));
|
24887
|
-
|
24881
|
+
import_react_use16 = require("react-use");
|
24888
24882
|
import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
|
24889
24883
|
import_react_window2 = require("react-window");
|
24890
24884
|
import_react_sdk59 = require("@100mslive/react-sdk");
|
@@ -25009,7 +25003,7 @@ var init_ChatBody = __esm({
|
|
25009
25003
|
var _a8, _b7, _c;
|
25010
25004
|
const { elements } = useRoomLayoutConferencingScreen();
|
25011
25005
|
const rowRef = (0, import_react125.useRef)(null);
|
25012
|
-
const isMobile = (0,
|
25006
|
+
const isMobile = (0, import_react_use16.useMedia)(config.media.md);
|
25013
25007
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
25014
25008
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
25015
25009
|
const localPeerId = (0, import_react_sdk59.useHMSStore)(import_react_sdk59.selectLocalPeerID);
|
@@ -25279,13 +25273,13 @@ var init_ChatBody = __esm({
|
|
25279
25273
|
});
|
25280
25274
|
|
25281
25275
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
25282
|
-
var import_react126,
|
25276
|
+
var import_react126, import_react_use17, import_react_sdk60, import_react_icons61, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
|
25283
25277
|
var init_ChatSelector = __esm({
|
25284
25278
|
"src/Prebuilt/components/Chat/ChatSelector.tsx"() {
|
25285
25279
|
"use strict";
|
25286
25280
|
init_define_process_env();
|
25287
25281
|
import_react126 = __toESM(require("react"));
|
25288
|
-
|
25282
|
+
import_react_use17 = require("react-use");
|
25289
25283
|
import_react_sdk60 = require("@100mslive/react-sdk");
|
25290
25284
|
import_react_icons61 = require("@100mslive/react-icons");
|
25291
25285
|
init_src();
|
@@ -25305,7 +25299,7 @@ var init_ChatSelector = __esm({
|
|
25305
25299
|
unreadCount,
|
25306
25300
|
icon = void 0
|
25307
25301
|
}) => {
|
25308
|
-
const isMobile = (0,
|
25302
|
+
const isMobile = (0, import_react_use17.useMedia)(config.media.md);
|
25309
25303
|
const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
|
25310
25304
|
var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
|
25311
25305
|
return /* @__PURE__ */ import_react126.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
|
@@ -25455,13 +25449,13 @@ var init_ChatSelector = __esm({
|
|
25455
25449
|
});
|
25456
25450
|
|
25457
25451
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
25458
|
-
var import_react127,
|
25452
|
+
var import_react127, import_react_use18, import_react_icons62, ChatSelectorContainer;
|
25459
25453
|
var init_ChatSelectorContainer = __esm({
|
25460
25454
|
"src/Prebuilt/components/Chat/ChatSelectorContainer.tsx"() {
|
25461
25455
|
"use strict";
|
25462
25456
|
init_define_process_env();
|
25463
25457
|
import_react127 = __toESM(require("react"));
|
25464
|
-
|
25458
|
+
import_react_use18 = require("react-use");
|
25465
25459
|
import_react_icons62 = require("@100mslive/react-icons");
|
25466
25460
|
init_Dropdown2();
|
25467
25461
|
init_Layout();
|
@@ -25476,7 +25470,7 @@ var init_ChatSelectorContainer = __esm({
|
|
25476
25470
|
ChatSelectorContainer = () => {
|
25477
25471
|
var _a8, _b7;
|
25478
25472
|
const [open, setOpen] = (0, import_react127.useState)(false);
|
25479
|
-
const isMobile = (0,
|
25473
|
+
const isMobile = (0, import_react_use18.useMedia)(config.media.md);
|
25480
25474
|
const { elements } = useRoomLayoutConferencingScreen();
|
25481
25475
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
25482
25476
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
@@ -25686,13 +25680,13 @@ function EmojiPicker({ onSelect }) {
|
|
25686
25680
|
)
|
25687
25681
|
)));
|
25688
25682
|
}
|
25689
|
-
var import_react130,
|
25683
|
+
var import_react130, import_react_use19, import_data, import_react131, import_react_sdk62, import_react_icons63, TextArea2, ChatFooter;
|
25690
25684
|
var init_ChatFooter = __esm({
|
25691
25685
|
"src/Prebuilt/components/Chat/ChatFooter.tsx"() {
|
25692
25686
|
"use strict";
|
25693
25687
|
init_define_process_env();
|
25694
25688
|
import_react130 = __toESM(require("react"));
|
25695
|
-
|
25689
|
+
import_react_use19 = require("react-use");
|
25696
25690
|
import_data = __toESM(require("@emoji-mart/data"));
|
25697
25691
|
import_react131 = __toESM(require("@emoji-mart/react"));
|
25698
25692
|
import_react_sdk62 = require("@100mslive/react-sdk");
|
@@ -25730,7 +25724,7 @@ var init_ChatFooter = __esm({
|
|
25730
25724
|
const hmsActions = (0, import_react_sdk62.useHMSActions)();
|
25731
25725
|
const inputRef = (0, import_react130.useRef)(null);
|
25732
25726
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
25733
|
-
const isMobile = (0,
|
25727
|
+
const isMobile = (0, import_react_use19.useMedia)(config.media.md);
|
25734
25728
|
const { elements } = useRoomLayoutConferencingScreen();
|
25735
25729
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
25736
25730
|
const localPeer = (0, import_react_sdk62.useHMSStore)(import_react_sdk62.selectLocalPeer);
|
@@ -26031,14 +26025,14 @@ var init_StickIndicator = __esm({
|
|
26031
26025
|
});
|
26032
26026
|
|
26033
26027
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
26034
|
-
var import_react135, import_react_swipeable,
|
26028
|
+
var import_react135, import_react_swipeable, import_react_use20, import_react_sdk64, import_react_icons65, PINNED_MESSAGE_LENGTH, PinnedMessage;
|
26035
26029
|
var init_PinnedMessage = __esm({
|
26036
26030
|
"src/Prebuilt/components/Chat/PinnedMessage.tsx"() {
|
26037
26031
|
"use strict";
|
26038
26032
|
init_define_process_env();
|
26039
26033
|
import_react135 = __toESM(require("react"));
|
26040
26034
|
import_react_swipeable = require("react-swipeable");
|
26041
|
-
|
26035
|
+
import_react_use20 = require("react-use");
|
26042
26036
|
import_react_sdk64 = require("@100mslive/react-sdk");
|
26043
26037
|
import_react_icons65 = require("@100mslive/react-icons");
|
26044
26038
|
init_Layout();
|
@@ -26055,7 +26049,7 @@ var init_PinnedMessage = __esm({
|
|
26055
26049
|
const pinnedMessages = (0, import_react_sdk64.useHMSStore)((0, import_react_sdk64.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
26056
26050
|
const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react135.useState)(0);
|
26057
26051
|
const { removePinnedMessage } = usePinnedMessages();
|
26058
|
-
const isMobile = (0,
|
26052
|
+
const isMobile = (0, import_react_use20.useMedia)(config.media.md);
|
26059
26053
|
const { elements } = useRoomLayoutConferencingScreen();
|
26060
26054
|
const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
|
26061
26055
|
const [hideOverflow, setHideOverflow] = (0, import_react135.useState)(true);
|
@@ -26168,13 +26162,13 @@ var init_PinnedMessage = __esm({
|
|
26168
26162
|
});
|
26169
26163
|
|
26170
26164
|
// src/Prebuilt/components/Chat/Chat.tsx
|
26171
|
-
var import_react136,
|
26165
|
+
var import_react136, import_react_use21, import_react_sdk65, import_react_icons66, Chat, NewMessageIndicator;
|
26172
26166
|
var init_Chat = __esm({
|
26173
26167
|
"src/Prebuilt/components/Chat/Chat.tsx"() {
|
26174
26168
|
"use strict";
|
26175
26169
|
init_define_process_env();
|
26176
26170
|
import_react136 = __toESM(require("react"));
|
26177
|
-
|
26171
|
+
import_react_use21 = require("react-use");
|
26178
26172
|
init_dist();
|
26179
26173
|
import_react_sdk65 = require("@100mslive/react-sdk");
|
26180
26174
|
import_react_icons66 = require("@100mslive/react-icons");
|
@@ -26193,7 +26187,7 @@ var init_Chat = __esm({
|
|
26193
26187
|
const hmsActions = (0, import_react_sdk65.useHMSActions)();
|
26194
26188
|
const vanillaStore = (0, import_react_sdk65.useHMSVanillaStore)();
|
26195
26189
|
const { enabled: isChatEnabled = true } = (0, import_react_sdk65.useHMSStore)(Yh("chatState" /* CHAT_STATE */)) || {};
|
26196
|
-
const isMobile = (0,
|
26190
|
+
const isMobile = (0, import_react_use21.useMedia)(config.media.md);
|
26197
26191
|
const scrollToBottom = (0, import_react136.useCallback)(
|
26198
26192
|
(unreadCount = 0) => {
|
26199
26193
|
var _a9;
|
@@ -26278,14 +26272,14 @@ var init_Chat = __esm({
|
|
26278
26272
|
});
|
26279
26273
|
|
26280
26274
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
26281
|
-
var import_react137, import_react_intersection_observer,
|
26275
|
+
var import_react137, import_react_intersection_observer, import_react_use22, import_react_window3, import_react_sdk66, import_react_icons67, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
|
26282
26276
|
var init_PaginatedParticipants = __esm({
|
26283
26277
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx"() {
|
26284
26278
|
"use strict";
|
26285
26279
|
init_define_process_env();
|
26286
26280
|
import_react137 = __toESM(require("react"));
|
26287
26281
|
import_react_intersection_observer = require("react-intersection-observer");
|
26288
|
-
|
26282
|
+
import_react_use22 = require("react-use");
|
26289
26283
|
import_react_window3 = require("react-window");
|
26290
26284
|
import_react_sdk66 = require("@100mslive/react-sdk");
|
26291
26285
|
import_react_icons67 = require("@100mslive/react-icons");
|
@@ -26340,7 +26334,7 @@ var init_PaginatedParticipants = __esm({
|
|
26340
26334
|
return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
26341
26335
|
});
|
26342
26336
|
const isConnected = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectIsConnectedToRoom);
|
26343
|
-
const [ref, { width }] = (0,
|
26337
|
+
const [ref, { width }] = (0, import_react_use22.useMeasure)();
|
26344
26338
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
26345
26339
|
const resetSidePane = useSidepaneReset();
|
26346
26340
|
(0, import_react137.useEffect)(() => {
|
@@ -26440,13 +26434,13 @@ var init_ChatSettings = __esm({
|
|
26440
26434
|
});
|
26441
26435
|
|
26442
26436
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
26443
|
-
var import_react139,
|
26437
|
+
var import_react139, import_react_use23, import_react_sdk68, import_react_icons69, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
|
26444
26438
|
var init_SidePaneTabs = __esm({
|
26445
26439
|
"src/Prebuilt/components/SidePaneTabs.tsx"() {
|
26446
26440
|
"use strict";
|
26447
26441
|
init_define_process_env();
|
26448
26442
|
import_react139 = __toESM(require("react"));
|
26449
|
-
|
26443
|
+
import_react_use23 = require("react-use");
|
26450
26444
|
import_react_sdk68 = require("@100mslive/react-sdk");
|
26451
26445
|
import_react_icons69 = require("@100mslive/react-icons");
|
26452
26446
|
init_Chat();
|
@@ -26483,7 +26477,7 @@ var init_SidePaneTabs = __esm({
|
|
26483
26477
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
26484
26478
|
const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
|
26485
26479
|
const hideTabs = !(showChat && showParticipants);
|
26486
|
-
const isMobile = (0,
|
26480
|
+
const isMobile = (0, import_react_use23.useMedia)(config.media.md);
|
26487
26481
|
const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
26488
26482
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
26489
26483
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
@@ -26661,13 +26655,13 @@ var init_utils5 = __esm({
|
|
26661
26655
|
});
|
26662
26656
|
|
26663
26657
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
26664
|
-
var import_react141,
|
26658
|
+
var import_react141, import_react_use24, import_react_sdk70, import_react_icons71, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
|
26665
26659
|
var init_TileMenuContent = __esm({
|
26666
26660
|
"src/Prebuilt/components/TileMenu/TileMenuContent.tsx"() {
|
26667
26661
|
"use strict";
|
26668
26662
|
init_define_process_env();
|
26669
26663
|
import_react141 = __toESM(require("react"));
|
26670
|
-
|
26664
|
+
import_react_use24 = require("react-use");
|
26671
26665
|
import_react_sdk70 = require("@100mslive/react-sdk");
|
26672
26666
|
import_react_icons71 = require("@100mslive/react-icons");
|
26673
26667
|
init_Layout();
|
@@ -26837,7 +26831,7 @@ var init_TileMenuContent = __esm({
|
|
26837
26831
|
const { sendEvent } = (0, import_react_sdk70.useCustomEvent)({
|
26838
26832
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
26839
26833
|
});
|
26840
|
-
const isMobile = (0,
|
26834
|
+
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
26841
26835
|
if (isLocal) {
|
26842
26836
|
return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ import_react141.default.createElement(import_react141.default.Fragment, null, showPinAction && /* @__PURE__ */ import_react141.default.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ import_react141.default.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ import_react141.default.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ import_react141.default.createElement(
|
26843
26837
|
StyledMenuTile.ItemButton,
|
@@ -26918,13 +26912,13 @@ var init_TileMenuContent = __esm({
|
|
26918
26912
|
});
|
26919
26913
|
|
26920
26914
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
26921
|
-
var import_react142,
|
26915
|
+
var import_react142, import_react_use25, import_react_sdk71, import_react_icons72, TileMenu, TileMenu_default;
|
26922
26916
|
var init_TileMenu2 = __esm({
|
26923
26917
|
"src/Prebuilt/components/TileMenu/TileMenu.tsx"() {
|
26924
26918
|
"use strict";
|
26925
26919
|
init_define_process_env();
|
26926
26920
|
import_react142 = __toESM(require("react"));
|
26927
|
-
|
26921
|
+
import_react_use25 = require("react-use");
|
26928
26922
|
import_react_sdk71 = require("@100mslive/react-sdk");
|
26929
26923
|
import_react_icons72 = require("@100mslive/react-icons");
|
26930
26924
|
init_Layout();
|
@@ -26957,7 +26951,7 @@ var init_TileMenu2 = __esm({
|
|
26957
26951
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
26958
26952
|
const track = (0, import_react_sdk71.useHMSStore)((0, import_react_sdk71.selectTrackByID)(videoTrackID));
|
26959
26953
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
26960
|
-
const isMobile = (0,
|
26954
|
+
const isMobile = (0, import_react_use25.useMedia)(config.media.md);
|
26961
26955
|
const peer = (0, import_react_sdk71.useHMSStore)((0, import_react_sdk71.selectPeerByID)(peerID));
|
26962
26956
|
const [showNameChangeModal, setShowNameChangeModal] = (0, import_react142.useState)(false);
|
26963
26957
|
useDropdownList({ open, name: "TileMenu" });
|
@@ -27042,13 +27036,13 @@ var init_peerTileUtils = __esm({
|
|
27042
27036
|
});
|
27043
27037
|
|
27044
27038
|
// src/Prebuilt/components/VideoTile.tsx
|
27045
|
-
var import_react143,
|
27039
|
+
var import_react143, import_react_use26, import_react_sdk72, import_react_icons73, PeerMetadata, Tile, VideoTile, VideoTile_default;
|
27046
27040
|
var init_VideoTile2 = __esm({
|
27047
27041
|
"src/Prebuilt/components/VideoTile.tsx"() {
|
27048
27042
|
"use strict";
|
27049
27043
|
init_define_process_env();
|
27050
27044
|
import_react143 = __toESM(require("react"));
|
27051
|
-
|
27045
|
+
import_react_use26 = require("react-use");
|
27052
27046
|
import_react_sdk72 = require("@100mslive/react-sdk");
|
27053
27047
|
import_react_icons73 = require("@100mslive/react-icons");
|
27054
27048
|
init_TileConnection();
|
@@ -27111,7 +27105,7 @@ var init_VideoTile2 = __esm({
|
|
27111
27105
|
const onHoverHandler = (0, import_react143.useCallback)((event) => {
|
27112
27106
|
setIsMouseHovered(event.type === "mouseenter");
|
27113
27107
|
}, []);
|
27114
|
-
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0,
|
27108
|
+
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use26.useMeasure)();
|
27115
27109
|
const isTileBigEnoughToShowStats = calculatedHeight >= 180 && calculatedWidth >= 180;
|
27116
27110
|
const [avatarSize, attribBoxSize] = (0, import_react143.useMemo)(
|
27117
27111
|
() => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
|
@@ -27334,11 +27328,11 @@ var init_VBHandler = __esm({
|
|
27334
27328
|
}
|
27335
27329
|
}
|
27336
27330
|
});
|
27337
|
-
this.setPreset = (preset) => {
|
27331
|
+
this.setPreset = (preset) => __async(this, null, function* () {
|
27338
27332
|
if (this.effectsPlugin) {
|
27339
|
-
this.effectsPlugin.setPreset(preset);
|
27333
|
+
yield this.effectsPlugin.setPreset(preset);
|
27340
27334
|
}
|
27341
|
-
};
|
27335
|
+
});
|
27342
27336
|
this.getPreset = () => {
|
27343
27337
|
var _a8;
|
27344
27338
|
return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
|
@@ -27553,13 +27547,13 @@ var init_VBPicker = __esm({
|
|
27553
27547
|
});
|
27554
27548
|
|
27555
27549
|
// src/Prebuilt/layouts/SidePane.tsx
|
27556
|
-
var import_react147,
|
27550
|
+
var import_react147, import_react_use27, import_react_sdk74, SidePane, SidePane_default;
|
27557
27551
|
var init_SidePane = __esm({
|
27558
27552
|
"src/Prebuilt/layouts/SidePane.tsx"() {
|
27559
27553
|
"use strict";
|
27560
27554
|
init_define_process_env();
|
27561
27555
|
import_react147 = __toESM(require("react"));
|
27562
|
-
|
27556
|
+
import_react_use27 = require("react-use");
|
27563
27557
|
import_react_sdk74 = require("@100mslive/react-sdk");
|
27564
27558
|
init_Polls();
|
27565
27559
|
init_LayoutSettings();
|
@@ -27578,7 +27572,7 @@ var init_SidePane = __esm({
|
|
27578
27572
|
hideControls = false
|
27579
27573
|
}) => {
|
27580
27574
|
var _a8, _b7, _c, _d, _e, _f;
|
27581
|
-
const isMobile = (0,
|
27575
|
+
const isMobile = (0, import_react_use27.useMedia)(config.media.md);
|
27582
27576
|
const sidepane = (0, import_react_sdk74.useHMSStore)((0, import_react_sdk74.selectAppData)(APP_DATA.sidePane));
|
27583
27577
|
const activeScreensharePeerId = (0, import_react_sdk74.useHMSStore)((0, import_react_sdk74.selectAppData)(APP_DATA.activeScreensharePeerId));
|
27584
27578
|
const trackId = (_a8 = (0, import_react_sdk74.useHMSStore)((0, import_react_sdk74.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
@@ -27747,7 +27741,7 @@ var init_HeaderComponents = __esm({
|
|
27747
27741
|
{
|
27748
27742
|
align: "center",
|
27749
27743
|
justify: "center",
|
27750
|
-
css: { flex: "1 1 0", color: "$
|
27744
|
+
css: { flex: "1 1 0", color: "$on_surface_high", "@md": { display: "none" } }
|
27751
27745
|
},
|
27752
27746
|
/* @__PURE__ */ import_react150.default.createElement(VerticalDivider, { css: { ml: "$8" } }),
|
27753
27747
|
/* @__PURE__ */ import_react150.default.createElement(import_react_icons75.VolumeOneIcon, null),
|
@@ -27788,13 +27782,13 @@ var init_HeaderComponents = __esm({
|
|
27788
27782
|
});
|
27789
27783
|
|
27790
27784
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
27791
|
-
var import_react151,
|
27785
|
+
var import_react151, import_react_use28, import_join_form3, import_react_sdk76, import_react_icons76, PreviewForm, Form, PreviewForm_default;
|
27792
27786
|
var init_PreviewForm = __esm({
|
27793
27787
|
"src/Prebuilt/components/Preview/PreviewForm.tsx"() {
|
27794
27788
|
"use strict";
|
27795
27789
|
init_define_process_env();
|
27796
27790
|
import_react151 = __toESM(require("react"));
|
27797
|
-
|
27791
|
+
import_react_use28 = require("react-use");
|
27798
27792
|
import_join_form3 = require("@100mslive/types-prebuilt/elements/join_form");
|
27799
27793
|
import_react_sdk76 = require("@100mslive/react-sdk");
|
27800
27794
|
import_react_icons76 = require("@100mslive/react-icons");
|
@@ -27814,7 +27808,7 @@ var init_PreviewForm = __esm({
|
|
27814
27808
|
const formSubmit = (e) => {
|
27815
27809
|
e.preventDefault();
|
27816
27810
|
};
|
27817
|
-
const isMobile = (0,
|
27811
|
+
const isMobile = (0, import_react_use28.useMedia)(config.media.md);
|
27818
27812
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk76.useRecordingStreaming)();
|
27819
27813
|
const layout = useRoomLayout();
|
27820
27814
|
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) || {};
|
@@ -27867,13 +27861,13 @@ var init_PreviewForm = __esm({
|
|
27867
27861
|
});
|
27868
27862
|
|
27869
27863
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
27870
|
-
var import_react152,
|
27864
|
+
var import_react152, import_react_use29, import_react_sdk77, import_react_icons77, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
|
27871
27865
|
var init_PreviewJoin = __esm({
|
27872
27866
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx"() {
|
27873
27867
|
"use strict";
|
27874
27868
|
init_define_process_env();
|
27875
27869
|
import_react152 = __toESM(require("react"));
|
27876
|
-
|
27870
|
+
import_react_use29 = require("react-use");
|
27877
27871
|
import_react_sdk77 = require("@100mslive/react-sdk");
|
27878
27872
|
import_react_icons77 = require("@100mslive/react-icons");
|
27879
27873
|
init_src();
|
@@ -27904,7 +27898,7 @@ var init_PreviewJoin = __esm({
|
|
27904
27898
|
useLocalTileAspectRatio = () => {
|
27905
27899
|
const localPeer = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectLocalPeer);
|
27906
27900
|
const videoTrack = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
|
27907
|
-
const isMobile = (0,
|
27901
|
+
const isMobile = (0, import_react_use29.useMedia)(config.media.md);
|
27908
27902
|
let aspectRatio = 0;
|
27909
27903
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
27910
27904
|
aspectRatio = videoTrack.width / videoTrack.height;
|
@@ -28020,7 +28014,7 @@ var init_PreviewJoin = __esm({
|
|
28020
28014
|
const track = (0, import_react_sdk77.useHMSStore)(trackSelector);
|
28021
28015
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
28022
28016
|
const aspectRatio = useLocalTileAspectRatio();
|
28023
|
-
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0,
|
28017
|
+
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use29.useMeasure)();
|
28024
28018
|
const [avatarSize, attribBoxSize] = (0, import_react152.useMemo)(
|
28025
28019
|
() => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
|
28026
28020
|
[calculatedWidth, calculatedHeight]
|
@@ -28058,7 +28052,7 @@ var init_PreviewJoin = __esm({
|
|
28058
28052
|
);
|
28059
28053
|
};
|
28060
28054
|
PreviewControls = ({ hideSettings, vbEnabled }) => {
|
28061
|
-
const isMobile = (0,
|
28055
|
+
const isMobile = (0, import_react_use29.useMedia)(config.media.md);
|
28062
28056
|
return /* @__PURE__ */ import_react152.default.createElement(
|
28063
28057
|
Flex,
|
28064
28058
|
{
|
@@ -28068,7 +28062,7 @@ var init_PreviewJoin = __esm({
|
|
28068
28062
|
mt: "$8"
|
28069
28063
|
}
|
28070
28064
|
},
|
28071
|
-
/* @__PURE__ */ import_react152.default.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ import_react152.default.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ import_react152.default.createElement(VBToggle, null) : null),
|
28065
|
+
/* @__PURE__ */ import_react152.default.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ import_react152.default.createElement(AudioVideoToggle, null), vbEnabled && !isMobile ? /* @__PURE__ */ import_react152.default.createElement(VBToggle, null) : null),
|
28072
28066
|
!hideSettings ? /* @__PURE__ */ import_react152.default.createElement(PreviewSettings, null) : null
|
28073
28067
|
);
|
28074
28068
|
};
|
@@ -28081,13 +28075,13 @@ var init_PreviewJoin = __esm({
|
|
28081
28075
|
});
|
28082
28076
|
|
28083
28077
|
// src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
|
28084
|
-
var import_react153,
|
28078
|
+
var import_react153, import_react_use30, RequestPrompt, RequestActions;
|
28085
28079
|
var init_RequestPrompt = __esm({
|
28086
28080
|
"src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx"() {
|
28087
28081
|
"use strict";
|
28088
28082
|
init_define_process_env();
|
28089
28083
|
import_react153 = __toESM(require("react"));
|
28090
|
-
|
28084
|
+
import_react_use30 = require("react-use");
|
28091
28085
|
init_src();
|
28092
28086
|
init_Sheet2();
|
28093
28087
|
RequestPrompt = ({
|
@@ -28099,7 +28093,7 @@ var init_RequestPrompt = __esm({
|
|
28099
28093
|
onAction,
|
28100
28094
|
disableActions = false
|
28101
28095
|
}) => {
|
28102
|
-
const isMobile = (0,
|
28096
|
+
const isMobile = (0, import_react_use30.useMedia)(config.media.md);
|
28103
28097
|
if (isMobile) {
|
28104
28098
|
return /* @__PURE__ */ import_react153.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
|
28105
28099
|
}
|
@@ -28225,14 +28219,14 @@ var init_useVideoTileLayout = __esm({
|
|
28225
28219
|
});
|
28226
28220
|
|
28227
28221
|
// src/Prebuilt/components/InsetTile.tsx
|
28228
|
-
var import_react156, import_react_draggable,
|
28222
|
+
var import_react156, import_react_draggable, import_react_use31, import_react_sdk79, import_react_icons78, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
|
28229
28223
|
var init_InsetTile = __esm({
|
28230
28224
|
"src/Prebuilt/components/InsetTile.tsx"() {
|
28231
28225
|
"use strict";
|
28232
28226
|
init_define_process_env();
|
28233
28227
|
import_react156 = __toESM(require("react"));
|
28234
28228
|
import_react_draggable = __toESM(require("react-draggable"));
|
28235
|
-
|
28229
|
+
import_react_use31 = require("react-use");
|
28236
28230
|
import_react_sdk79 = require("@100mslive/react-sdk");
|
28237
28231
|
import_react_icons78 = require("@100mslive/react-icons");
|
28238
28232
|
init_Layout();
|
@@ -28260,8 +28254,8 @@ var init_InsetTile = __esm({
|
|
28260
28254
|
defaultMobileAspectRatio = 9 / 16;
|
28261
28255
|
desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
28262
28256
|
InsetTile = ({ peerId }) => {
|
28263
|
-
const isMobile = (0,
|
28264
|
-
const isLandscape = (0,
|
28257
|
+
const isMobile = (0, import_react_use31.useMedia)(config.media.md);
|
28258
|
+
const isLandscape = (0, import_react_use31.useMedia)(config.media.ls);
|
28265
28259
|
const selector = peerId ? (0, import_react_sdk79.selectPeerByID)(peerId) : import_react_sdk79.selectLocalPeer;
|
28266
28260
|
const peer = (0, import_react_sdk79.useHMSStore)(selector);
|
28267
28261
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
@@ -28437,13 +28431,13 @@ var init_Grid = __esm({
|
|
28437
28431
|
});
|
28438
28432
|
|
28439
28433
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
28440
|
-
var import_react159,
|
28434
|
+
var import_react159, import_react_use32, import_react_sdk80, aspectRatioConfig, usePagesWithTiles, useTileLayout;
|
28441
28435
|
var init_useTileLayout = __esm({
|
28442
28436
|
"src/Prebuilt/components/hooks/useTileLayout.tsx"() {
|
28443
28437
|
"use strict";
|
28444
28438
|
init_define_process_env();
|
28445
28439
|
import_react159 = require("react");
|
28446
|
-
|
28440
|
+
import_react_use32 = require("react-use");
|
28447
28441
|
import_react_sdk80 = require("@100mslive/react-sdk");
|
28448
28442
|
init_Theme();
|
28449
28443
|
aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
|
@@ -28475,8 +28469,8 @@ var init_useTileLayout = __esm({
|
|
28475
28469
|
edgeToEdge = false
|
28476
28470
|
}) => {
|
28477
28471
|
const vanillaStore = (0, import_react_sdk80.useHMSVanillaStore)();
|
28478
|
-
const [ref, { width, height }] = (0,
|
28479
|
-
const isMobile = (0,
|
28472
|
+
const [ref, { width, height }] = (0, import_react_use32.useMeasure)();
|
28473
|
+
const isMobile = (0, import_react_use32.useMedia)(config.media.lg);
|
28480
28474
|
const [pagesWithTiles, setPagesWithTiles] = (0, import_react159.useState)([]);
|
28481
28475
|
(0, import_react159.useEffect)(() => {
|
28482
28476
|
if (width === 0 || height === 0) {
|
@@ -28548,7 +28542,7 @@ var init_useTileLayout = __esm({
|
|
28548
28542
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
28549
28543
|
var _a8;
|
28550
28544
|
const localPeer = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectLocalPeer);
|
28551
|
-
const isMobile = (0,
|
28545
|
+
const isMobile = (0, import_react_use33.useMedia)(config.media.md);
|
28552
28546
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
28553
28547
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
28554
28548
|
let pageList = usePagesWithTiles({
|
@@ -28589,13 +28583,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
28589
28583
|
}
|
28590
28584
|
), isInsetEnabled && pageList.length > 0 && pageList[0][0].peer.id !== (localPeer == null ? void 0 : localPeer.id) && /* @__PURE__ */ import_react160.default.createElement(InsetTile, null));
|
28591
28585
|
}
|
28592
|
-
var import_react160,
|
28586
|
+
var import_react160, import_react_use33, import_react_sdk81;
|
28593
28587
|
var init_EqualProminence = __esm({
|
28594
28588
|
"src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
|
28595
28589
|
"use strict";
|
28596
28590
|
init_define_process_env();
|
28597
28591
|
import_react160 = __toESM(require("react"));
|
28598
|
-
|
28592
|
+
import_react_use33 = require("react-use");
|
28599
28593
|
import_react_sdk81 = require("@100mslive/react-sdk");
|
28600
28594
|
init_Layout();
|
28601
28595
|
init_Theme();
|
@@ -28695,13 +28689,13 @@ var init_ProminenceLayout = __esm({
|
|
28695
28689
|
});
|
28696
28690
|
|
28697
28691
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
28698
|
-
var import_react162,
|
28692
|
+
var import_react162, import_react_use34, import_react_sdk82, SecondaryTiles;
|
28699
28693
|
var init_SecondaryTiles = __esm({
|
28700
28694
|
"src/Prebuilt/components/SecondaryTiles.tsx"() {
|
28701
28695
|
"use strict";
|
28702
28696
|
init_define_process_env();
|
28703
28697
|
import_react162 = __toESM(require("react"));
|
28704
|
-
|
28698
|
+
import_react_use34 = require("react-use");
|
28705
28699
|
import_react_sdk82 = require("@100mslive/react-sdk");
|
28706
28700
|
init_ProminenceLayout();
|
28707
28701
|
init_Theme();
|
@@ -28710,7 +28704,7 @@ var init_SecondaryTiles = __esm({
|
|
28710
28704
|
init_constants();
|
28711
28705
|
SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
28712
28706
|
var _a8, _b7;
|
28713
|
-
const isMobile = (0,
|
28707
|
+
const isMobile = (0, import_react_use34.useMedia)(config.media.md);
|
28714
28708
|
const maxTileCount = isMobile ? 2 : 4;
|
28715
28709
|
const [page, setPage] = (0, import_react162.useState)(0);
|
28716
28710
|
const pinnedTrackId = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectAppData)(APP_DATA.pinnedTrackId));
|
@@ -29033,13 +29027,13 @@ var init_ScreenshareDisplay = __esm({
|
|
29033
29027
|
});
|
29034
29028
|
|
29035
29029
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
29036
|
-
var import_react167,
|
29030
|
+
var import_react167, import_react_use35, import_screenfull2, import_react_sdk85, import_react_icons82, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
|
29037
29031
|
var init_ScreenshareTile = __esm({
|
29038
29032
|
"src/Prebuilt/components/ScreenshareTile.tsx"() {
|
29039
29033
|
"use strict";
|
29040
29034
|
init_define_process_env();
|
29041
29035
|
import_react167 = __toESM(require("react"));
|
29042
|
-
|
29036
|
+
import_react_use35 = require("react-use");
|
29043
29037
|
import_screenfull2 = __toESM(require("screenfull"));
|
29044
29038
|
import_react_sdk85 = require("@100mslive/react-sdk");
|
29045
29039
|
import_react_icons82 = require("@100mslive/react-icons");
|
@@ -29069,11 +29063,11 @@ var init_ScreenshareTile = __esm({
|
|
29069
29063
|
const peer = (0, import_react_sdk85.useHMSStore)((0, import_react_sdk85.selectPeerByID)(peerId));
|
29070
29064
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
29071
29065
|
const [isMouseHovered, setIsMouseHovered] = (0, import_react167.useState)(false);
|
29072
|
-
const isMobile = (0,
|
29066
|
+
const isMobile = (0, import_react_use35.useMedia)(config.media.md);
|
29073
29067
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
29074
29068
|
const fullscreenRef = (0, import_react167.useRef)(null);
|
29075
29069
|
const [fullscreen, setFullscreen] = (0, import_react167.useState)(false);
|
29076
|
-
const isFullscreen = (0,
|
29070
|
+
const isFullscreen = (0, import_react_use35.useFullscreen)(fullscreenRef, fullscreen, {
|
29077
29071
|
onClose: () => setFullscreen(false)
|
29078
29072
|
});
|
29079
29073
|
const isFullScreenSupported = import_screenfull2.default.isEnabled;
|
@@ -29120,7 +29114,7 @@ var init_ScreenshareTile = __esm({
|
|
29120
29114
|
},
|
29121
29115
|
isFullscreen ? /* @__PURE__ */ import_react167.default.createElement(import_react_icons82.ShrinkIcon, null) : /* @__PURE__ */ import_react167.default.createElement(import_react_icons82.ExpandIcon, null)
|
29122
29116
|
) : null,
|
29123
|
-
!isMobile && isMouseHovered && /* @__PURE__ */ import_react167.default.createElement(
|
29117
|
+
!isMobile && isMouseHovered && !isFullscreen && /* @__PURE__ */ import_react167.default.createElement(
|
29124
29118
|
Box,
|
29125
29119
|
{
|
29126
29120
|
css: {
|
@@ -29156,13 +29150,13 @@ var init_ScreenshareTile = __esm({
|
|
29156
29150
|
});
|
29157
29151
|
|
29158
29152
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
29159
|
-
var import_react168,
|
29153
|
+
var import_react168, import_react_use36, import_react_sdk86, ScreenshareLayout;
|
29160
29154
|
var init_ScreenshareLayout = __esm({
|
29161
29155
|
"src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
|
29162
29156
|
"use strict";
|
29163
29157
|
init_define_process_env();
|
29164
29158
|
import_react168 = __toESM(require("react"));
|
29165
|
-
|
29159
|
+
import_react_use36 = require("react-use");
|
29166
29160
|
import_react_sdk86 = require("@100mslive/react-sdk");
|
29167
29161
|
init_Theme();
|
29168
29162
|
init_InsetTile();
|
@@ -29180,7 +29174,7 @@ var init_ScreenshareLayout = __esm({
|
|
29180
29174
|
const [page, setPage] = (0, import_react168.useState)(0);
|
29181
29175
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
29182
29176
|
const activeSharePeer = peersSharing[page];
|
29183
|
-
const isMobile = (0,
|
29177
|
+
const isMobile = (0, import_react_use36.useMedia)(config.media.md);
|
29184
29178
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
29185
29179
|
const secondaryPeers = (0, import_react168.useMemo)(() => {
|
29186
29180
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -29643,13 +29637,13 @@ var init_WaitingView = __esm({
|
|
29643
29637
|
});
|
29644
29638
|
|
29645
29639
|
// src/Prebuilt/layouts/WhiteboardView.tsx
|
29646
|
-
var import_react173,
|
29640
|
+
var import_react173, import_react_use37, import_react_sdk91, EmbedComponent2, WhiteboardView;
|
29647
29641
|
var init_WhiteboardView = __esm({
|
29648
29642
|
"src/Prebuilt/layouts/WhiteboardView.tsx"() {
|
29649
29643
|
"use strict";
|
29650
29644
|
init_define_process_env();
|
29651
29645
|
import_react173 = __toESM(require("react"));
|
29652
|
-
|
29646
|
+
import_react_use37 = require("react-use");
|
29653
29647
|
import_react_sdk91 = require("@100mslive/react-sdk");
|
29654
29648
|
init_SecondaryTiles();
|
29655
29649
|
init_ProminenceLayout();
|
@@ -29658,7 +29652,7 @@ var init_WhiteboardView = __esm({
|
|
29658
29652
|
init_useUISettings();
|
29659
29653
|
init_constants();
|
29660
29654
|
EmbedComponent2 = () => {
|
29661
|
-
const isMobile = (0,
|
29655
|
+
const isMobile = (0, import_react_use37.useMedia)(config.media.md);
|
29662
29656
|
const { iframeRef } = (0, import_react_sdk91.useWhiteboard)(isMobile);
|
29663
29657
|
return /* @__PURE__ */ import_react173.default.createElement(
|
29664
29658
|
Box,
|
@@ -29710,19 +29704,19 @@ var init_WhiteboardView = __esm({
|
|
29710
29704
|
});
|
29711
29705
|
|
29712
29706
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
29713
|
-
var import_react174,
|
29707
|
+
var import_react174, import_react_use38, import_react_sdk92, useCloseScreenshareWhiteboard;
|
29714
29708
|
var init_useCloseScreenshareWhiteboard = __esm({
|
29715
29709
|
"src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx"() {
|
29716
29710
|
"use strict";
|
29717
29711
|
init_define_process_env();
|
29718
29712
|
import_react174 = require("react");
|
29719
|
-
|
29713
|
+
import_react_use38 = require("react-use");
|
29720
29714
|
import_react_sdk92 = require("@100mslive/react-sdk");
|
29721
29715
|
useCloseScreenshareWhiteboard = () => {
|
29722
29716
|
const { amIScreenSharing, toggleScreenShare } = (0, import_react_sdk92.useScreenShare)();
|
29723
29717
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk92.useWhiteboard)();
|
29724
|
-
const prevScreenSharer = (0,
|
29725
|
-
const prevWhiteboardOwner = (0,
|
29718
|
+
const prevScreenSharer = (0, import_react_use38.usePrevious)(amIScreenSharing);
|
29719
|
+
const prevWhiteboardOwner = (0, import_react_use38.usePrevious)(isWhiteboardOwner);
|
29726
29720
|
(0, import_react174.useEffect)(() => {
|
29727
29721
|
if (isWhiteboardOwner && amIScreenSharing) {
|
29728
29722
|
if (prevScreenSharer && !prevWhiteboardOwner) {
|
@@ -30379,13 +30373,13 @@ var HLSView_exports = {};
|
|
30379
30373
|
__export(HLSView_exports, {
|
30380
30374
|
default: () => HLSView_default
|
30381
30375
|
});
|
30382
|
-
var import_react185,
|
30376
|
+
var import_react185, import_react_use39, import_hls_player3, import_screenfull3, import_react_sdk93, import_react_icons89, hlsPlayer, toastMap, HLSView, HLSView_default;
|
30383
30377
|
var init_HLSView = __esm({
|
30384
30378
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
30385
30379
|
"use strict";
|
30386
30380
|
init_define_process_env();
|
30387
30381
|
import_react185 = __toESM(require("react"));
|
30388
|
-
|
30382
|
+
import_react_use39 = require("react-use");
|
30389
30383
|
import_hls_player3 = require("@100mslive/hls-player");
|
30390
30384
|
import_screenfull3 = __toESM(require("screenfull"));
|
30391
30385
|
import_react_sdk93 = require("@100mslive/react-sdk");
|
@@ -30428,16 +30422,16 @@ var init_HLSView = __esm({
|
|
30428
30422
|
const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react185.useState)(false);
|
30429
30423
|
const [isPaused, setIsPaused] = (0, import_react185.useState)(false);
|
30430
30424
|
const isFullScreenSupported = import_screenfull3.default.isEnabled;
|
30431
|
-
const [show, toggle] = (0,
|
30425
|
+
const [show, toggle] = (0, import_react_use39.useToggle)(false);
|
30432
30426
|
const [controlsVisible, setControlsVisible] = (0, import_react185.useState)(true);
|
30433
30427
|
const controlsRef = (0, import_react185.useRef)();
|
30434
30428
|
const controlsTimerRef = (0, import_react185.useRef)();
|
30435
30429
|
const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react185.useState)(false);
|
30436
|
-
const lastHlsUrl = (0,
|
30430
|
+
const lastHlsUrl = (0, import_react_use39.usePrevious)(hlsUrl);
|
30437
30431
|
const togglePollView = usePollViewToggle();
|
30438
30432
|
const vanillaStore = (0, import_react_sdk93.useHMSVanillaStore)();
|
30439
|
-
const isMobile = (0,
|
30440
|
-
const isFullScreen = (0,
|
30433
|
+
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
30434
|
+
const isFullScreen = (0, import_react_use39.useFullscreen)(hlsViewRef, show, {
|
30441
30435
|
onClose: () => toggle(false)
|
30442
30436
|
});
|
30443
30437
|
const [showLoader, setShowLoader] = (0, import_react185.useState)(false);
|
@@ -30658,7 +30652,7 @@ var init_HLSView = __esm({
|
|
30658
30652
|
align: "center",
|
30659
30653
|
justify: "center",
|
30660
30654
|
css: {
|
30661
|
-
width:
|
30655
|
+
width: "100%",
|
30662
30656
|
margin: "0 auto",
|
30663
30657
|
height: "100%"
|
30664
30658
|
}
|
@@ -31056,13 +31050,13 @@ var init_common2 = __esm({
|
|
31056
31050
|
});
|
31057
31051
|
|
31058
31052
|
// src/Prebuilt/components/Header/Header.tsx
|
31059
|
-
var import_react188,
|
31053
|
+
var import_react188, import_react_use40, import_react_sdk96, Header2;
|
31060
31054
|
var init_Header = __esm({
|
31061
31055
|
"src/Prebuilt/components/Header/Header.tsx"() {
|
31062
31056
|
"use strict";
|
31063
31057
|
init_define_process_env();
|
31064
31058
|
import_react188 = __toESM(require("react"));
|
31065
|
-
|
31059
|
+
import_react_use40 = require("react-use");
|
31066
31060
|
import_react_sdk96 = require("@100mslive/react-sdk");
|
31067
31061
|
init_src();
|
31068
31062
|
init_HeaderComponents();
|
@@ -31070,7 +31064,7 @@ var init_Header = __esm({
|
|
31070
31064
|
init_common2();
|
31071
31065
|
Header2 = () => {
|
31072
31066
|
const roomState = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectRoomState);
|
31073
|
-
const isMobile = (0,
|
31067
|
+
const isMobile = (0, import_react_use40.useMedia)(config.media.md);
|
31074
31068
|
if (roomState !== import_react_sdk96.HMSRoomState.Connected) {
|
31075
31069
|
return /* @__PURE__ */ import_react188.default.createElement(import_react188.default.Fragment, null);
|
31076
31070
|
}
|
@@ -31574,13 +31568,13 @@ var init_useRedirectToLeave = __esm({
|
|
31574
31568
|
});
|
31575
31569
|
|
31576
31570
|
// src/Prebuilt/AppStateContext.tsx
|
31577
|
-
var import_react196,
|
31571
|
+
var import_react196, import_react_use41, import_react_sdk101, AppStateContext, useHMSAppStateContext, useAppStateManager;
|
31578
31572
|
var init_AppStateContext = __esm({
|
31579
31573
|
"src/Prebuilt/AppStateContext.tsx"() {
|
31580
31574
|
"use strict";
|
31581
31575
|
init_define_process_env();
|
31582
31576
|
import_react196 = __toESM(require("react"));
|
31583
|
-
|
31577
|
+
import_react_use41 = require("react-use");
|
31584
31578
|
import_react_sdk101 = require("@100mslive/react-sdk");
|
31585
31579
|
init_VBHandler();
|
31586
31580
|
init_roomLayoutProvider();
|
@@ -31603,7 +31597,7 @@ var init_AppStateContext = __esm({
|
|
31603
31597
|
const roomLayout = useRoomLayout();
|
31604
31598
|
const [activeState, setActiveState] = import_react196.default.useState();
|
31605
31599
|
const roomState = (0, import_react_sdk101.useHMSStore)(import_react_sdk101.selectRoomState);
|
31606
|
-
const prevRoomState = (0,
|
31600
|
+
const prevRoomState = (0, import_react_use41.usePreviousDistinct)(roomState);
|
31607
31601
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
31608
31602
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
31609
31603
|
const { redirectToLeave } = useRedirectToLeave();
|
@@ -31692,13 +31686,13 @@ var init_LeaveScreen = __esm({
|
|
31692
31686
|
});
|
31693
31687
|
|
31694
31688
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
31695
|
-
var import_react198,
|
31689
|
+
var import_react198, import_react_use42, import_react_icons93, MwebLandscapePrompt;
|
31696
31690
|
var init_MwebLandscapePrompt = __esm({
|
31697
31691
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
|
31698
31692
|
"use strict";
|
31699
31693
|
init_define_process_env();
|
31700
31694
|
import_react198 = __toESM(require("react"));
|
31701
|
-
|
31695
|
+
import_react_use42 = require("react-use");
|
31702
31696
|
import_react_icons93 = require("@100mslive/react-icons");
|
31703
31697
|
init_Button2();
|
31704
31698
|
init_Layout();
|
@@ -31708,7 +31702,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
31708
31702
|
init_utils3();
|
31709
31703
|
MwebLandscapePrompt = () => {
|
31710
31704
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react198.useState)(false);
|
31711
|
-
const isLandscape = (0,
|
31705
|
+
const isLandscape = (0, import_react_use42.useMedia)(config.media.ls);
|
31712
31706
|
(0, import_react198.useEffect)(() => {
|
31713
31707
|
var _a8;
|
31714
31708
|
if (!isMobileUserAgent) {
|
@@ -32204,7 +32198,7 @@ function PermissionErrorModal() {
|
|
32204
32198
|
const notification = (0, import_react_sdk108.useHMSNotifications)(import_react_sdk108.HMSNotificationTypes.ERROR);
|
32205
32199
|
const [deviceType, setDeviceType] = (0, import_react205.useState)("");
|
32206
32200
|
const [isSystemError, setIsSystemError] = (0, import_react205.useState)(false);
|
32207
|
-
const isMobile = (0,
|
32201
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
32208
32202
|
(0, import_react205.useEffect)(() => {
|
32209
32203
|
var _a8, _b7, _c, _d, _e;
|
32210
32204
|
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"))) {
|
@@ -32260,13 +32254,13 @@ function PermissionErrorModal() {
|
|
32260
32254
|
!isMobile ? /* @__PURE__ */ import_react205.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react205.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
32261
32255
|
))) : null;
|
32262
32256
|
}
|
32263
|
-
var import_react205,
|
32257
|
+
var import_react205, import_react_use43, import_react_sdk108;
|
32264
32258
|
var init_PermissionErrorModal = __esm({
|
32265
32259
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
32266
32260
|
"use strict";
|
32267
32261
|
init_define_process_env();
|
32268
32262
|
import_react205 = __toESM(require("react"));
|
32269
|
-
|
32263
|
+
import_react_use43 = require("react-use");
|
32270
32264
|
import_react_sdk108 = require("@100mslive/react-sdk");
|
32271
32265
|
init_src();
|
32272
32266
|
init_android_perm_1();
|
@@ -32652,13 +32646,13 @@ var init_Notifications2 = __esm({
|
|
32652
32646
|
});
|
32653
32647
|
|
32654
32648
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
32655
|
-
var import_react211,
|
32649
|
+
var import_react211, import_react_use44, PreviewScreen;
|
32656
32650
|
var init_PreviewScreen = __esm({
|
32657
32651
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
|
32658
32652
|
"use strict";
|
32659
32653
|
init_define_process_env();
|
32660
32654
|
import_react211 = __toESM(require("react"));
|
32661
|
-
|
32655
|
+
import_react_use44 = require("react-use");
|
32662
32656
|
init_src();
|
32663
32657
|
init_AppContext();
|
32664
32658
|
init_roomLayoutProvider();
|
@@ -32671,7 +32665,7 @@ var init_PreviewScreen = __esm({
|
|
32671
32665
|
var _a8, _b7, _c;
|
32672
32666
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
32673
32667
|
const skipPreview = !isPreviewScreenEnabled;
|
32674
|
-
const previewAsRole = (0,
|
32668
|
+
const previewAsRole = (0, import_react_use44.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
32675
32669
|
const { userName } = useHMSPrebuiltContext();
|
32676
32670
|
const initialName = userName || (skipPreview ? "Beam" : "");
|
32677
32671
|
const authToken = useAuthToken();
|
@@ -32756,7 +32750,7 @@ function FlyingEmoji() {
|
|
32756
32750
|
const localPeerId = (0, import_react_sdk115.useHMSStore)(import_react_sdk115.selectLocalPeerID);
|
32757
32751
|
const vanillaStore = (0, import_react_sdk115.useHMSVanillaStore)();
|
32758
32752
|
const [emojis, setEmojis] = (0, import_react214.useState)([]);
|
32759
|
-
const isMobile = (0,
|
32753
|
+
const isMobile = (0, import_react_use45.useMedia)(config.media.md);
|
32760
32754
|
const startingPoints = (0, import_react214.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
32761
32755
|
const showFlyingEmoji = (0, import_react214.useCallback)(
|
32762
32756
|
({ emojiId, senderId }) => {
|
@@ -32848,13 +32842,13 @@ function FlyingEmoji() {
|
|
32848
32842
|
})
|
32849
32843
|
);
|
32850
32844
|
}
|
32851
|
-
var import_react214,
|
32845
|
+
var import_react214, import_react_use45, import_react_sdk115, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
32852
32846
|
var init_FlyingEmoji = __esm({
|
32853
32847
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
32854
32848
|
"use strict";
|
32855
32849
|
init_define_process_env();
|
32856
32850
|
import_react214 = __toESM(require("react"));
|
32857
|
-
|
32851
|
+
import_react_use45 = require("react-use");
|
32858
32852
|
import_react_sdk115 = require("@100mslive/react-sdk");
|
32859
32853
|
init_Layout();
|
32860
32854
|
init_Text2();
|