@100mslive/roomkit-react 0.3.19-alpha.14 → 0.3.19-alpha.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-CZOXJTV5.css → HLSView-C2XG43BN.css} +19 -67
- package/dist/{HLSView-CZOXJTV5.css.map → HLSView-C2XG43BN.css.map} +2 -2
- package/dist/{HLSView-NMEMV6IQ.js → HLSView-XY7JC5H7.js} +43 -43
- package/dist/{HLSView-NMEMV6IQ.js.map → HLSView-XY7JC5H7.js.map} +1 -1
- package/dist/{chunk-ZDEVOXM2.js → chunk-5XRSIFEH.js} +288 -269
- package/dist/{chunk-ZDEVOXM2.js.map → chunk-5XRSIFEH.js.map} +3 -3
- package/dist/index.cjs.css +18 -66
- package/dist/index.cjs.css.map +2 -2
- package/dist/index.cjs.js +330 -304
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +18 -66
- package/dist/index.css.map +2 -2
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +110 -110
- package/dist/meta.esbuild.json +129 -129
- package/package.json +7 -7
package/dist/index.cjs.js
CHANGED
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
109
109
|
var define_process_env_default;
|
110
110
|
var init_define_process_env = __esm({
|
111
111
|
"<define:process.env>"() {
|
112
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a9231262-c43b-4702-9c0a-e69a900cad5d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.9-alpha.14", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.14", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a9231262-c43b-4702-9c0a-e69a900cad5d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.19-alpha.14", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "598", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240825.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.6/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:17098", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.14", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10701052357", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "99c54d70e77c7d9ccd39fcd222a3c964b39bbd47", 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: "932bff7c9ae0343ffe64dbcd08acc935488cb25b2d3159a3a2fcaf6dcfebf81e", 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--1725450741922-0.19475064438572476:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725450741729-0.8597293028625344:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725450716233-0.9968300638898722:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725450716056-0.4577313543264976:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_1fa375d2-b62a-42e6-a4c9-b093ae1aa7a4", INVOCATION_ID: "03457e51bfa44d3494d3172b765537a3", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "657", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 499", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.19-alpha.14", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.14", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "99c54d70e77c7d9ccd39fcd222a3c964b39bbd47", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_a9231262-c43b-4702-9c0a-e69a900cad5d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_a9231262-c43b-4702-9c0a-e69a900cad5d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a9231262-c43b-4702-9c0a-e69a900cad5d" };
|
112
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_704c76dc-d1bc-4bfe-b606-b58ce372e0a7", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.9-alpha.15", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.15", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_704c76dc-d1bc-4bfe-b606-b58ce372e0a7", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.19-alpha.15", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "590", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240901.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.6/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:17260", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.15", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10706174456", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f8aada15d72c41c25aa564f6e4fe08063cca12e3", 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: "90c5113019a6c4ce95a106b38424c59f2e630183014e7d5abb5167f382513446", 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--1725469229838-0.04690174942773506:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725469229640-0.12649183887692428:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725469203603-0.46289214698132386:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1725469203423-0.761676340735012:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_a4078fce-1fc4-401a-9a18-d5b60f9ebcc2", INVOCATION_ID: "4ae0dcaf70a64ed0ab40df55e48f21cd", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "658", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 270", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.19-alpha.15", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.15", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "f8aada15d72c41c25aa564f6e4fe08063cca12e3", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_704c76dc-d1bc-4bfe-b606-b58ce372e0a7", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_704c76dc-d1bc-4bfe-b606-b58ce372e0a7", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_704c76dc-d1bc-4bfe-b606-b58ce372e0a7" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -491,7 +491,7 @@ var init_stitches_config = __esm({
|
|
491
491
|
config
|
492
492
|
} = HmsStitches);
|
493
493
|
globalStyles = globalCss({
|
494
|
-
[
|
494
|
+
[`${DEFAULT_PORTAL_CONTAINER} *`]: {
|
495
495
|
fontFamily: "$sans",
|
496
496
|
boxSizing: "border-box"
|
497
497
|
},
|
@@ -530,7 +530,7 @@ var init_stitches_config = __esm({
|
|
530
530
|
throw new Error("Theme type is required");
|
531
531
|
}
|
532
532
|
const mergedTheme = (0, import_lodash.default)(baseConfig.theme, theme2 || {});
|
533
|
-
return createThemeBase(className ||
|
533
|
+
return createThemeBase(className || `${themeType}-theme`, mergedTheme);
|
534
534
|
};
|
535
535
|
}
|
536
536
|
});
|
@@ -652,7 +652,7 @@ var init_Flex = __esm({
|
|
652
652
|
return {
|
653
653
|
"& > * + *": {
|
654
654
|
marginRight: "0",
|
655
|
-
marginLeft:
|
655
|
+
marginLeft: `${0.25 * value}rem`
|
656
656
|
}
|
657
657
|
};
|
658
658
|
};
|
@@ -811,48 +811,48 @@ var init_Button = __esm({
|
|
811
811
|
getOutlinedVariants = (base, hover, active, disabled, text, textDisabled) => {
|
812
812
|
return {
|
813
813
|
bg: "transparent",
|
814
|
-
border:
|
814
|
+
border: `solid $space$px $colors${base}`,
|
815
815
|
c: text,
|
816
816
|
"&[disabled]": {
|
817
817
|
c: textDisabled,
|
818
818
|
bg: "transparent",
|
819
|
-
border:
|
819
|
+
border: `solid $space$px $colors${disabled}`,
|
820
820
|
cursor: "not-allowed"
|
821
821
|
},
|
822
822
|
"&:not([disabled]):hover": {
|
823
|
-
border:
|
823
|
+
border: `solid $space$px $colors${hover}`,
|
824
824
|
bg: "transparent"
|
825
825
|
},
|
826
826
|
"&:not([disabled]):active": {
|
827
|
-
border:
|
827
|
+
border: `solid $space$px $colors${active}`,
|
828
828
|
bg: "transparent"
|
829
829
|
},
|
830
830
|
"&:not([disabled]):focus-visible": {
|
831
|
-
boxShadow:
|
831
|
+
boxShadow: `0 0 0 3px $colors${base}`
|
832
832
|
}
|
833
833
|
};
|
834
834
|
};
|
835
835
|
getButtonVariants = (base, hover, active, disabled, text, textDisabled) => {
|
836
836
|
return {
|
837
837
|
bg: base,
|
838
|
-
border:
|
838
|
+
border: `1px solid ${base}`,
|
839
839
|
c: text,
|
840
840
|
"&[disabled]": {
|
841
841
|
c: textDisabled,
|
842
842
|
cursor: "not-allowed",
|
843
843
|
bg: disabled,
|
844
|
-
border:
|
844
|
+
border: `1px solid ${disabled}`
|
845
845
|
},
|
846
846
|
"&:not([disabled]):hover": {
|
847
847
|
bg: hover,
|
848
|
-
border:
|
848
|
+
border: `1px solid ${hover}`
|
849
849
|
},
|
850
850
|
"&:not([disabled]):active": {
|
851
851
|
bg: active,
|
852
|
-
border:
|
852
|
+
border: `1px solid ${active}`
|
853
853
|
},
|
854
854
|
"&:not([disabled]):focus-visible": {
|
855
|
-
boxShadow:
|
855
|
+
boxShadow: `0 0 0 3px ${base}`
|
856
856
|
}
|
857
857
|
};
|
858
858
|
};
|
@@ -1449,15 +1449,15 @@ var init_animations = __esm({
|
|
1449
1449
|
init_Theme();
|
1450
1450
|
slideDown = (controller) => keyframes({
|
1451
1451
|
from: { height: 0 },
|
1452
|
-
to: { height:
|
1452
|
+
to: { height: `var(${controller})` }
|
1453
1453
|
});
|
1454
1454
|
slideUp = (controller) => keyframes({
|
1455
|
-
from: { height:
|
1455
|
+
from: { height: `var(${controller})` },
|
1456
1456
|
to: { height: 0 }
|
1457
1457
|
});
|
1458
1458
|
translateAcross = ({ xFrom = "0", yFrom = "0", zFrom = "0", xTo = "0", yTo = "0", zTo = "0" }) => keyframes({
|
1459
|
-
from: { transform:
|
1460
|
-
to: { transform:
|
1459
|
+
from: { transform: `translate3d(${xFrom}, ${yFrom}, ${zFrom})` },
|
1460
|
+
to: { transform: `translate3d(${xTo}, ${yTo}, ${zTo}` }
|
1461
1461
|
});
|
1462
1462
|
dialogOpen = keyframes({
|
1463
1463
|
"0%": { opacity: 0, transform: "translate(-50%, -48%) scale(.90)" },
|
@@ -1468,11 +1468,11 @@ var init_animations = __esm({
|
|
1468
1468
|
"100%": { opacity: 0, transform: "translate(-50%, -48%) scale(.90)" }
|
1469
1469
|
});
|
1470
1470
|
slideUpAndFade = (start = "2px") => keyframes({
|
1471
|
-
"0%": { opacity: 0, transform:
|
1471
|
+
"0%": { opacity: 0, transform: `translateY(${start})` },
|
1472
1472
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
1473
1473
|
});
|
1474
1474
|
slideRightAndFade = (start = "-2px") => keyframes({
|
1475
|
-
"0%": { opacity: 0, transform:
|
1475
|
+
"0%": { opacity: 0, transform: `translateX(${start})` },
|
1476
1476
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
1477
1477
|
});
|
1478
1478
|
sheetSlideIn = keyframes({
|
@@ -1492,16 +1492,16 @@ var init_animations = __esm({
|
|
1492
1492
|
to: { opacity: "0" }
|
1493
1493
|
});
|
1494
1494
|
slideDownAndFade = (start = "-2px") => keyframes({
|
1495
|
-
"0%": { opacity: 0, transform:
|
1495
|
+
"0%": { opacity: 0, transform: `translateY(${start})` },
|
1496
1496
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
1497
1497
|
});
|
1498
1498
|
slideLeftAndFade = (start = "2px") => keyframes({
|
1499
|
-
"0%": { opacity: 0, transform:
|
1499
|
+
"0%": { opacity: 0, transform: `translateX(${start})` },
|
1500
1500
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
1501
1501
|
});
|
1502
1502
|
slideLeftAndFadeOut = (end = "-100%") => keyframes({
|
1503
|
-
"0%": { opacity: 1, transform:
|
1504
|
-
"100%": { opacity: 0, transform:
|
1503
|
+
"0%": { opacity: 1, transform: `translateX(0)` },
|
1504
|
+
"100%": { opacity: 0, transform: `translateX(${end})` }
|
1505
1505
|
});
|
1506
1506
|
popoverAnimation = {
|
1507
1507
|
"@media (prefers-reduced-motion: no-preference)": {
|
@@ -1533,7 +1533,7 @@ var init_animations = __esm({
|
|
1533
1533
|
transition: "transform 200ms ease-out"
|
1534
1534
|
},
|
1535
1535
|
'&[data-swipe="end"]': {
|
1536
|
-
animation:
|
1536
|
+
animation: `${slideLeftAndFadeOut()} 100ms ease-out forwards`
|
1537
1537
|
}
|
1538
1538
|
}
|
1539
1539
|
};
|
@@ -1734,7 +1734,7 @@ var init_Slider = __esm({
|
|
1734
1734
|
height: "$8",
|
1735
1735
|
backgroundColor: "$primary_default",
|
1736
1736
|
cursor: "pointer",
|
1737
|
-
boxShadow:
|
1737
|
+
boxShadow: `0 2px 10px $colors$surface_default`,
|
1738
1738
|
borderRadius: 10,
|
1739
1739
|
"&:hover": { backgroundColor: "$primary_default" },
|
1740
1740
|
"&:focus": { boxShadow: "none" }
|
@@ -1807,10 +1807,10 @@ var init_DialogContent = __esm({
|
|
1807
1807
|
padding: "$12",
|
1808
1808
|
"@allowMotion": {
|
1809
1809
|
'&[data-state="open"]': {
|
1810
|
-
animation:
|
1810
|
+
animation: `${dialogOpen} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
|
1811
1811
|
},
|
1812
1812
|
'&[data-state="closed"]': {
|
1813
|
-
animation:
|
1813
|
+
animation: `${dialogClose} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
|
1814
1814
|
}
|
1815
1815
|
},
|
1816
1816
|
"&:focus": { outline: "none" }
|
@@ -2623,7 +2623,7 @@ function useBorderAudioLevel(audioTrackId) {
|
|
2623
2623
|
const style = {
|
2624
2624
|
transition: "outline 0.4s ease-in-out"
|
2625
2625
|
};
|
2626
|
-
style["outline"] = level ?
|
2626
|
+
style["outline"] = level ? `${sigmoid(level) * 4}px solid ${color}` : "0px solid transparent";
|
2627
2627
|
return style;
|
2628
2628
|
},
|
2629
2629
|
[color]
|
@@ -2697,7 +2697,7 @@ var init_AudioLevel = __esm({
|
|
2697
2697
|
css: {
|
2698
2698
|
width: ".25em",
|
2699
2699
|
height: "1em",
|
2700
|
-
maskImage:
|
2700
|
+
maskImage: `url(${audio_level_default})`,
|
2701
2701
|
"-webkit-mask-repeat": "no-repeat",
|
2702
2702
|
backgroundColor: "$on_primary_high",
|
2703
2703
|
maskSize: "4em 1em"
|
@@ -2713,10 +2713,10 @@ var init_AudioLevel = __esm({
|
|
2713
2713
|
if (ref.current) {
|
2714
2714
|
let index = 0;
|
2715
2715
|
for (const child of ref.current.children) {
|
2716
|
-
const positionX =
|
2716
|
+
const positionX = `-${positionValues[audioLevel] * (index === 1 ? 2.5 : 1.25)}em`;
|
2717
2717
|
child.style["-webkit-mask-position-x"] = positionX;
|
2718
|
-
child.style["mask-position"] =
|
2719
|
-
child.style["animation"] = positionValues[audioLevel] > 0 ?
|
2718
|
+
child.style["mask-position"] = `${positionX} 0`;
|
2719
|
+
child.style["animation"] = positionValues[audioLevel] > 0 ? `${barAnimation} 0.6s steps(3,jump-none) 0s infinite` : "none";
|
2720
2720
|
index++;
|
2721
2721
|
}
|
2722
2722
|
}
|
@@ -2794,7 +2794,7 @@ var init_formatBytes = __esm({
|
|
2794
2794
|
init_define_process_env();
|
2795
2795
|
formatBytes = (bytes, unit = "B", decimals = 2) => {
|
2796
2796
|
if (bytes === 0) {
|
2797
|
-
return
|
2797
|
+
return `0 ${unit}`;
|
2798
2798
|
}
|
2799
2799
|
if (!bytes) {
|
2800
2800
|
return "-";
|
@@ -2804,7 +2804,7 @@ var init_formatBytes = __esm({
|
|
2804
2804
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
2805
2805
|
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
2806
2806
|
i === 0 && i++;
|
2807
|
-
return
|
2807
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
2808
2808
|
};
|
2809
2809
|
}
|
2810
2810
|
});
|
@@ -2930,7 +2930,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
2930
2930
|
return null;
|
2931
2931
|
}
|
2932
2932
|
const layer = stat.rid ? import_react_sdk6.simulcastMapping[stat.rid] : "";
|
2933
|
-
return /* @__PURE__ */ import_react22.default.createElement(import_react22.Fragment, { key:
|
2933
|
+
return /* @__PURE__ */ import_react22.default.createElement(import_react22.Fragment, { key: `${stat.id}${stat.rid}` }, layer && /* @__PURE__ */ import_react22.default.createElement(StatsRow, { label: layer.toUpperCase(), value: "" }), /* @__PURE__ */ import_react22.default.createElement(
|
2934
2934
|
StatsRow,
|
2935
2935
|
{
|
2936
2936
|
show: isNotNullishAndNot0(stat.frameWidth),
|
@@ -2949,7 +2949,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
2949
2949
|
{
|
2950
2950
|
show: isNotNullishAndNot0(stat.framesPerSecond),
|
2951
2951
|
label: "FPS",
|
2952
|
-
value:
|
2952
|
+
value: `${stat.framesPerSecond} ${isNotNullishAndNot0(stat.framesDropped) ? `(${stat.framesDropped} dropped)` : ""}`
|
2953
2953
|
}
|
2954
2954
|
), /* @__PURE__ */ import_react22.default.createElement(
|
2955
2955
|
StatsRow,
|
@@ -2978,7 +2978,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
2978
2978
|
{
|
2979
2979
|
show: isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.framesPerSecond),
|
2980
2980
|
label: "FPS",
|
2981
|
-
value:
|
2981
|
+
value: `${videoTrackStats == null ? void 0 : videoTrackStats.framesPerSecond} ${isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.framesDropped) ? `(${videoTrackStats == null ? void 0 : videoTrackStats.framesDropped} dropped)` : ""}`
|
2982
2982
|
}
|
2983
2983
|
), /* @__PURE__ */ import_react22.default.createElement(
|
2984
2984
|
StatsRow,
|
@@ -3041,13 +3041,13 @@ var init_Stats = __esm({
|
|
3041
3041
|
stats,
|
3042
3042
|
label
|
3043
3043
|
}) => {
|
3044
|
-
const packetsLostRate =
|
3044
|
+
const packetsLostRate = `${(stats == null ? void 0 : stats.packetsLostRate) ? stats.packetsLostRate.toFixed(2) : 0}/s`;
|
3045
3045
|
return /* @__PURE__ */ import_react22.default.createElement(
|
3046
3046
|
StatsRow,
|
3047
3047
|
{
|
3048
3048
|
show: isNotNullishAndNot0(stats == null ? void 0 : stats.packetsLost),
|
3049
3049
|
label,
|
3050
|
-
value:
|
3050
|
+
value: `${stats == null ? void 0 : stats.packetsLost}(${packetsLostRate})`
|
3051
3051
|
}
|
3052
3052
|
);
|
3053
3053
|
};
|
@@ -3218,9 +3218,9 @@ var init_Toast = __esm({
|
|
3218
3218
|
top: "-1px",
|
3219
3219
|
left: "-$4",
|
3220
3220
|
width: "$8",
|
3221
|
-
borderLeft:
|
3222
|
-
borderTop:
|
3223
|
-
borderBottom:
|
3221
|
+
borderLeft: `solid $space$px ${base}`,
|
3222
|
+
borderTop: `solid $space$px ${base}`,
|
3223
|
+
borderBottom: `solid $space$px ${base}`,
|
3224
3224
|
borderTopLeftRadius: "$3",
|
3225
3225
|
borderBottomLeftRadius: "$3",
|
3226
3226
|
bg: base,
|
@@ -3232,7 +3232,7 @@ var init_Toast = __esm({
|
|
3232
3232
|
"&:before": {
|
3233
3233
|
content: "none"
|
3234
3234
|
},
|
3235
|
-
border:
|
3235
|
+
border: `solid $space$px ${base}`
|
3236
3236
|
}
|
3237
3237
|
};
|
3238
3238
|
};
|
@@ -3316,7 +3316,7 @@ var init_Toast = __esm({
|
|
3316
3316
|
"action",
|
3317
3317
|
"inlineAction"
|
3318
3318
|
]);
|
3319
|
-
return /* @__PURE__ */ import_react23.default.createElement(import_react23.default.Fragment, null, /* @__PURE__ */ import_react23.default.createElement(ToastRoot, __spreadValues({}, props), /* @__PURE__ */ import_react23.default.createElement(ToastTitle, null, /* @__PURE__ */ import_react23.default.createElement(Flex, { align: "center", css: { gap: "$4", flex: "1 1 0", minWidth: 0 } }, icon ? /* @__PURE__ */ import_react23.default.createElement(Box, { css: { w: "$10", h: "$10", alignSelf: "start", mt: "$2" } }, icon) : null, /* @__PURE__ */ import_react23.default.createElement(Text, { variant: "sub1", css: { c: "inherit", wordBreak: "break-word" } }, title)), isClosable ? /* @__PURE__ */ import_react23.default.createElement(DefaultClose, null) : null, !isClosable && inlineAction && action ? /* @__PURE__ */ import_react23.default.createElement(ToastAction, { altText:
|
3319
|
+
return /* @__PURE__ */ import_react23.default.createElement(import_react23.default.Fragment, null, /* @__PURE__ */ import_react23.default.createElement(ToastRoot, __spreadValues({}, props), /* @__PURE__ */ import_react23.default.createElement(ToastTitle, null, /* @__PURE__ */ import_react23.default.createElement(Flex, { align: "center", css: { gap: "$4", flex: "1 1 0", minWidth: 0 } }, icon ? /* @__PURE__ */ import_react23.default.createElement(Box, { css: { w: "$10", h: "$10", alignSelf: "start", mt: "$2" } }, icon) : null, /* @__PURE__ */ import_react23.default.createElement(Text, { variant: "sub1", css: { c: "inherit", wordBreak: "break-word" } }, title)), isClosable ? /* @__PURE__ */ import_react23.default.createElement(DefaultClose, null) : null, !isClosable && inlineAction && action ? /* @__PURE__ */ import_react23.default.createElement(ToastAction, { altText: `${title}Action` }, action) : null), description ? /* @__PURE__ */ import_react23.default.createElement(ToastDescription, null, /* @__PURE__ */ import_react23.default.createElement(Text, { variant: "body1", css: { fontWeight: "$regular", c: "$on_surface_medium" } }, description)) : null, !inlineAction && action ? /* @__PURE__ */ import_react23.default.createElement(ToastAction, { altText: `${title}Action`, css: { mt: "$10" } }, action) : null));
|
3320
3320
|
};
|
3321
3321
|
Toast = {
|
3322
3322
|
Provider: ToastPrimitives.Provider,
|
@@ -3388,10 +3388,10 @@ var init_Accordion = __esm({
|
|
3388
3388
|
fontFamily: "$sans",
|
3389
3389
|
color: "$on_surface_medium",
|
3390
3390
|
'&[data-state="open"]': {
|
3391
|
-
animation:
|
3391
|
+
animation: `${slideDown("--radix-accordion-content-height")} 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards`
|
3392
3392
|
},
|
3393
3393
|
'&[data-state="closed"]': {
|
3394
|
-
animation:
|
3394
|
+
animation: `${slideUp("--radix-accordion-content-height")} 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards`
|
3395
3395
|
}
|
3396
3396
|
});
|
3397
3397
|
StyledChevron = styled(import_react_icons6.ChevronUpIcon, {
|
@@ -3777,10 +3777,10 @@ var init_Collapsible = __esm({
|
|
3777
3777
|
r: "$1",
|
3778
3778
|
overflowY: "auto",
|
3779
3779
|
'&[data-state="open"]': {
|
3780
|
-
animation:
|
3780
|
+
animation: `${slideDown("--radix-collapsible-content-height")} 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards`
|
3781
3781
|
},
|
3782
3782
|
'&[data-state="closed"]': {
|
3783
|
-
animation:
|
3783
|
+
animation: `${slideUp("--radix-collapsible-content-height")} 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards`
|
3784
3784
|
}
|
3785
3785
|
});
|
3786
3786
|
Collapsible = {
|
@@ -9734,7 +9734,7 @@ var init_useFetchRoomLayout = __esm({
|
|
9734
9734
|
try {
|
9735
9735
|
const resp = yield fetchWithRetry(endpoint || "https://api.100ms.live/v2/layouts/ui", {
|
9736
9736
|
headers: {
|
9737
|
-
Authorization:
|
9737
|
+
Authorization: `Bearer ${authToken}`
|
9738
9738
|
}
|
9739
9739
|
});
|
9740
9740
|
layoutResp.current = yield resp.json();
|
@@ -9835,8 +9835,8 @@ var init_utils2 = __esm({
|
|
9835
9835
|
const hours = Math.floor(timeInSeconds / 3600);
|
9836
9836
|
const minutes = Math.floor(timeInSeconds % 3600 / 60);
|
9837
9837
|
const seconds = timeInSeconds % 60;
|
9838
|
-
const hour = hours !== 0 ?
|
9839
|
-
return
|
9838
|
+
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
9839
|
+
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
9840
9840
|
};
|
9841
9841
|
compareArrays = (a2, b2) => {
|
9842
9842
|
if (a2.length !== b2.length)
|
@@ -9960,7 +9960,7 @@ function useRoomLayoutHeader() {
|
|
9960
9960
|
var _a8;
|
9961
9961
|
const details2 = [];
|
9962
9962
|
if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
|
9963
|
-
details2.push(
|
9963
|
+
details2.push(`${getFormattedCount(peerCount)} watching`);
|
9964
9964
|
details2.push(hlsState.variants[0]["startedAt"]);
|
9965
9965
|
} else if (sessionStartedAt) {
|
9966
9966
|
details2.push(sessionStartedAt);
|
@@ -10310,7 +10310,7 @@ var init_VBHandler = __esm({
|
|
10310
10310
|
}
|
10311
10311
|
if (effectsSDKKey) {
|
10312
10312
|
try {
|
10313
|
-
const effects = yield
|
10313
|
+
const effects = yield import("@100mslive/hms-virtual-background/hmseffectsplugin");
|
10314
10314
|
this.effectsPlugin = new effects.HMSEffectsPlugin(effectsSDKKey, onInit);
|
10315
10315
|
} catch (error) {
|
10316
10316
|
console.error("Failed to initialise HMSEffectsPlugin:", error, "Using HMSVBPlugin");
|
@@ -11068,7 +11068,7 @@ var init_AuthToken = __esm({
|
|
11068
11068
|
body: "We could not find a room code corresponding to this link."
|
11069
11069
|
})).with(["GET_TOKEN", 2003], () => ({
|
11070
11070
|
title: "Endpoint is not reachable",
|
11071
|
-
body:
|
11071
|
+
body: `Endpoint is not reachable. ${error.description}.`
|
11072
11072
|
})).otherwise(
|
11073
11073
|
() => {
|
11074
11074
|
var _a7;
|
@@ -11367,10 +11367,10 @@ var init_Sheet = __esm({
|
|
11367
11367
|
bottom: 0,
|
11368
11368
|
left: 0,
|
11369
11369
|
'&[data-state="open"]': {
|
11370
|
-
animation:
|
11370
|
+
animation: `${sheetFadeIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
11371
11371
|
},
|
11372
11372
|
'&[data-state="closed"]': {
|
11373
|
-
animation:
|
11373
|
+
animation: `${sheetFadeOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
11374
11374
|
}
|
11375
11375
|
});
|
11376
11376
|
StyledContent6 = styled(DialogPrimitive2.Content, {
|
@@ -11394,10 +11394,10 @@ var init_Sheet = __esm({
|
|
11394
11394
|
},
|
11395
11395
|
"@allowMotion": {
|
11396
11396
|
'&[data-state="open"]': {
|
11397
|
-
animation:
|
11397
|
+
animation: `${sheetSlideIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
11398
11398
|
},
|
11399
11399
|
'&[data-state="closed"]': {
|
11400
|
-
animation:
|
11400
|
+
animation: `${sheetSlideOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
11401
11401
|
}
|
11402
11402
|
},
|
11403
11403
|
"@ls": {
|
@@ -11476,7 +11476,7 @@ var init_DropdownTrigger = __esm({
|
|
11476
11476
|
Dropdown.Trigger,
|
11477
11477
|
{
|
11478
11478
|
asChild: true,
|
11479
|
-
"data-testid":
|
11479
|
+
"data-testid": `${title}_selector`,
|
11480
11480
|
css: __spreadValues({
|
11481
11481
|
border: "1px solid $border_bright",
|
11482
11482
|
bg: "$surface_bright",
|
@@ -12309,7 +12309,7 @@ var init_AudioVideoToggle = __esm({
|
|
12309
12309
|
try {
|
12310
12310
|
yield setNoiseCancellationWithPlugin(true);
|
12311
12311
|
ToastManager.addToast({
|
12312
|
-
title:
|
12312
|
+
title: `Noise Reduction Enabled`,
|
12313
12313
|
variant: "standard",
|
12314
12314
|
duration: 2e3,
|
12315
12315
|
icon: /* @__PURE__ */ import_react48.default.createElement(import_react_icons13.AudioLevelIcon, null)
|
@@ -12330,7 +12330,7 @@ var init_AudioVideoToggle = __esm({
|
|
12330
12330
|
hideOptions: hideOptions || !hasAudioDevices,
|
12331
12331
|
onDisabledClick: toggleAudio,
|
12332
12332
|
testid: "audio_toggle_btn",
|
12333
|
-
tooltipMessage:
|
12333
|
+
tooltipMessage: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)`,
|
12334
12334
|
icon: !isLocalAudioEnabled ? /* @__PURE__ */ import_react48.default.createElement(import_react_icons13.MicOffIcon, null) : /* @__PURE__ */ import_react48.default.createElement(import_react_icons13.MicOnIcon, null),
|
12335
12335
|
active: isLocalAudioEnabled,
|
12336
12336
|
onClick: toggleAudio,
|
@@ -12361,7 +12361,7 @@ var init_AudioVideoToggle = __esm({
|
|
12361
12361
|
disabled: !toggleVideo,
|
12362
12362
|
hideOptions: hideOptions || !hasVideoDevices,
|
12363
12363
|
onDisabledClick: toggleVideo,
|
12364
|
-
tooltipMessage:
|
12364
|
+
tooltipMessage: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)`,
|
12365
12365
|
testid: "video_toggle_btn",
|
12366
12366
|
icon: !isLocalVideoEnabled ? /* @__PURE__ */ import_react48.default.createElement(import_react_icons13.VideoOffIcon, null) : /* @__PURE__ */ import_react48.default.createElement(import_react_icons13.VideoOnIcon, null),
|
12367
12367
|
key: "toggleVideo",
|
@@ -12384,7 +12384,7 @@ var init_AudioVideoToggle = __esm({
|
|
12384
12384
|
yield actions.switchCamera();
|
12385
12385
|
} catch (e) {
|
12386
12386
|
ToastManager.addToast({
|
12387
|
-
title:
|
12387
|
+
title: `Error while flipping camera ${e.message || ""}`,
|
12388
12388
|
variant: "error"
|
12389
12389
|
});
|
12390
12390
|
}
|
@@ -12978,7 +12978,7 @@ var init_DesktopLeaveRoom = __esm({
|
|
12978
12978
|
LeaveCard,
|
12979
12979
|
{
|
12980
12980
|
title: showStream ? "Leave Stream" : "Leave Session",
|
12981
|
-
subtitle:
|
12981
|
+
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
12982
12982
|
bg: "",
|
12983
12983
|
titleColor: "$on_surface_high",
|
12984
12984
|
icon: /* @__PURE__ */ import_react57.default.createElement(import_react_icons18.ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
@@ -13003,7 +13003,7 @@ var init_DesktopLeaveRoom = __esm({
|
|
13003
13003
|
LeaveCard,
|
13004
13004
|
{
|
13005
13005
|
title: showStream ? "End Stream" : "End Session",
|
13006
|
-
subtitle:
|
13006
|
+
subtitle: `The ${showStream ? "stream" : "session"} will end for everyone. You can't undo this action.`,
|
13007
13007
|
bg: "",
|
13008
13008
|
titleColor: "$alert_error_brighter",
|
13009
13009
|
icon: /* @__PURE__ */ import_react57.default.createElement(import_react_icons18.StopIcon, { height: 24, width: 24 }),
|
@@ -13086,7 +13086,7 @@ var init_MwebLeaveRoom = __esm({
|
|
13086
13086
|
LeaveCard,
|
13087
13087
|
{
|
13088
13088
|
title: showStream ? "Leave Stream" : "Leave Session",
|
13089
|
-
subtitle:
|
13089
|
+
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
13090
13090
|
bg: "$surface_default",
|
13091
13091
|
titleColor: "$on_surface_high",
|
13092
13092
|
icon: /* @__PURE__ */ import_react58.default.createElement(import_react_icons19.ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
@@ -13099,7 +13099,7 @@ var init_MwebLeaveRoom = __esm({
|
|
13099
13099
|
LeaveCard,
|
13100
13100
|
{
|
13101
13101
|
title: showStream ? "End Stream" : "End Session",
|
13102
|
-
subtitle:
|
13102
|
+
subtitle: `The will end the ${showStream ? "stream" : "session"} for everyone. You can't undo this action.`,
|
13103
13103
|
bg: "$alert_error_dim",
|
13104
13104
|
titleColor: "$alert_error_brighter",
|
13105
13105
|
css: { color: "$alert_error_bright", "&:hover": { color: "$alert_error_brighter" } },
|
@@ -13293,7 +13293,7 @@ var init_PIPComponent = __esm({
|
|
13293
13293
|
if (!PictureInPicture.isSupported()) {
|
13294
13294
|
return null;
|
13295
13295
|
}
|
13296
|
-
return /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, content ? /* @__PURE__ */ import_react60.default.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ import_react60.default.createElement(Tooltip, { title:
|
13296
|
+
return /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, content ? /* @__PURE__ */ import_react60.default.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ import_react60.default.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ import_react60.default.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ import_react60.default.createElement(import_react_icons20.PipIcon, null))));
|
13297
13297
|
};
|
13298
13298
|
ActivatedPIP = () => {
|
13299
13299
|
const store = (0, import_react_sdk23.useHMSVanillaStore)();
|
@@ -13458,7 +13458,7 @@ var init_usePinnedMessages = __esm({
|
|
13458
13458
|
const peerName = vanillaStore.getState((0, import_react_sdk25.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
|
13459
13459
|
const newPinnedMessage = { text: "", id: message.id, pinnedBy };
|
13460
13460
|
if (message && peerName) {
|
13461
|
-
newPinnedMessage["text"] =
|
13461
|
+
newPinnedMessage["text"] = `${peerName}: ${message.message}`;
|
13462
13462
|
} else if (message) {
|
13463
13463
|
newPinnedMessage["text"] = message.message;
|
13464
13464
|
}
|
@@ -13819,7 +13819,7 @@ var init_utils3 = __esm({
|
|
13819
13819
|
const hours = date.getHours();
|
13820
13820
|
const minutes = date.getMinutes();
|
13821
13821
|
const suffix = hours > 11 ? "PM" : "AM";
|
13822
|
-
return
|
13822
|
+
return `${hours < 10 ? "0" : ""}${hours}:${minutes < 10 ? "0" : ""}${minutes} ${suffix}`;
|
13823
13823
|
};
|
13824
13824
|
CHAT_MESSAGE_LIMIT = 2e3;
|
13825
13825
|
}
|
@@ -13917,10 +13917,10 @@ var init_ChatBody = __esm({
|
|
13917
13917
|
const peerName = (0, import_react_sdk28.useHMSStore)((0, import_react_sdk28.selectPeerNameByID)(receiver));
|
13918
13918
|
const localPeerRoleName = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectLocalPeerRoleName);
|
13919
13919
|
if (receiver) {
|
13920
|
-
return /* @__PURE__ */ import_react68.default.createElement(MessageTypeContainer, { left: hasCurrentUserSent ?
|
13920
|
+
return /* @__PURE__ */ import_react68.default.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
13921
13921
|
}
|
13922
13922
|
if (roles && roles.length) {
|
13923
|
-
return /* @__PURE__ */ import_react68.default.createElement(MessageTypeContainer, { left:
|
13923
|
+
return /* @__PURE__ */ import_react68.default.createElement(MessageTypeContainer, { left: `to ${hasCurrentUserSent ? roles[0] : localPeerRoleName}`, right: "(Group)" });
|
13924
13924
|
}
|
13925
13925
|
return null;
|
13926
13926
|
};
|
@@ -14061,7 +14061,7 @@ var init_ChatBody = __esm({
|
|
14061
14061
|
variant: "sub2",
|
14062
14062
|
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
14063
14063
|
},
|
14064
|
-
message.sender === localPeerId ?
|
14064
|
+
message.sender === localPeerId ? `${message.senderName} (You)` : message.senderName
|
14065
14065
|
)),
|
14066
14066
|
/* @__PURE__ */ import_react68.default.createElement(
|
14067
14067
|
MessageType,
|
@@ -14300,7 +14300,7 @@ var init_PIPChat = __esm({
|
|
14300
14300
|
if (isLocalPeerBlacklisted)
|
14301
14301
|
return "You've been blocked from sending messages";
|
14302
14302
|
if (!isChatEnabled)
|
14303
|
-
return
|
14303
|
+
return `Chat has been paused by ${chatStateUpdatedBy.peerId === localPeerID ? "you" : chatStateUpdatedBy == null ? void 0 : chatStateUpdatedBy.userName}`;
|
14304
14304
|
return message_placeholder;
|
14305
14305
|
}, [
|
14306
14306
|
chatStateUpdatedBy.peerId,
|
@@ -14339,7 +14339,7 @@ var init_PIPChat = __esm({
|
|
14339
14339
|
css: { cursor: "pointer" },
|
14340
14340
|
style: { color: "white", background: "gray", padding: "4px", borderRadius: "4px" }
|
14341
14341
|
},
|
14342
|
-
unreadMessageCount === 1 ? "New message" :
|
14342
|
+
unreadMessageCount === 1 ? "New message" : `${unreadMessageCount} new messages`
|
14343
14343
|
)
|
14344
14344
|
) : "",
|
14345
14345
|
filteredMessages.length === 0 ? /* @__PURE__ */ import_react69.default.createElement(
|
@@ -14620,7 +14620,7 @@ var init_RoleChangeModal = __esm({
|
|
14620
14620
|
"data-testid": role,
|
14621
14621
|
key: role,
|
14622
14622
|
onSelect: () => setRole(role),
|
14623
|
-
css: { w:
|
14623
|
+
css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
|
14624
14624
|
},
|
14625
14625
|
role
|
14626
14626
|
);
|
@@ -14754,7 +14754,7 @@ var init_DialogContent2 = __esm({
|
|
14754
14754
|
};
|
14755
14755
|
DialogSelect = (_a7) => {
|
14756
14756
|
var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
|
14757
|
-
return /* @__PURE__ */ import_react72.default.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ import_react72.default.createElement(Label3, null, title), /* @__PURE__ */ import_react72.default.createElement(Select.Root, __spreadValues({ "data-testid":
|
14757
|
+
return /* @__PURE__ */ import_react72.default.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ import_react72.default.createElement(Label3, null, title), /* @__PURE__ */ import_react72.default.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ import_react72.default.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ import_react72.default.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
|
14758
14758
|
const id = keyField ? option[keyField] : option;
|
14759
14759
|
const label = labelField ? option[labelField] : option;
|
14760
14760
|
return /* @__PURE__ */ import_react72.default.createElement("option", { value: id, key: id }, label);
|
@@ -14884,7 +14884,7 @@ var init_ResolutionInput = __esm({
|
|
14884
14884
|
/* @__PURE__ */ import_react73.default.createElement(Flex, { justify: "between", gap: 2 }, /* @__PURE__ */ import_react73.default.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ import_react73.default.createElement(Text, { variant: "xs" }, "Width"), /* @__PURE__ */ import_react73.default.createElement(
|
14885
14885
|
Input,
|
14886
14886
|
{
|
14887
|
-
"data-testid":
|
14887
|
+
"data-testid": `${testId}_width`,
|
14888
14888
|
css: { width: "100%", mt: "$4" },
|
14889
14889
|
name: "resWidth",
|
14890
14890
|
value: resolution.width,
|
@@ -14898,7 +14898,7 @@ var init_ResolutionInput = __esm({
|
|
14898
14898
|
)), /* @__PURE__ */ import_react73.default.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ import_react73.default.createElement(Text, { variant: "xs" }, "Height"), /* @__PURE__ */ import_react73.default.createElement(
|
14899
14899
|
Input,
|
14900
14900
|
{
|
14901
|
-
"data-testid":
|
14901
|
+
"data-testid": `${testId}_height`,
|
14902
14902
|
css: { width: "100%", mt: "$4" },
|
14903
14903
|
name: "resHeight",
|
14904
14904
|
value: resolution.height,
|
@@ -15075,7 +15075,7 @@ var init_StatsForNerds = __esm({
|
|
15075
15075
|
return /* @__PURE__ */ import_react75.default.createElement(
|
15076
15076
|
Dropdown.Item,
|
15077
15077
|
{
|
15078
|
-
key:
|
15078
|
+
key: `${option.id}-${option.layer || ""}`,
|
15079
15079
|
onClick: () => {
|
15080
15080
|
setSelectedStat(option);
|
15081
15081
|
},
|
@@ -15108,7 +15108,7 @@ var init_StatsForNerds = __esm({
|
|
15108
15108
|
id: track.id,
|
15109
15109
|
layer,
|
15110
15110
|
local: true,
|
15111
|
-
label:
|
15111
|
+
label: `${peerName} ${track.source} ${track.type} - ${layer}`
|
15112
15112
|
};
|
15113
15113
|
})
|
15114
15114
|
);
|
@@ -15117,7 +15117,7 @@ var init_StatsForNerds = __esm({
|
|
15117
15117
|
res.push({
|
15118
15118
|
id: track.id,
|
15119
15119
|
local: isLocalTrack,
|
15120
|
-
label:
|
15120
|
+
label: `${peerName} ${track.source} ${track.type}`
|
15121
15121
|
});
|
15122
15122
|
return res;
|
15123
15123
|
}, []),
|
@@ -15141,7 +15141,7 @@ var init_StatsForNerds = __esm({
|
|
15141
15141
|
StatsRow2,
|
15142
15142
|
{
|
15143
15143
|
label: "Round Trip Time",
|
15144
|
-
value:
|
15144
|
+
value: `${(((((_h = stats.publish) == null ? void 0 : _h.currentRoundTripTime) || 0) + (((_i = stats.subscribe) == null ? void 0 : _i.currentRoundTripTime) || 0)) / 2).toFixed(3) * 1e3} ms`
|
15145
15145
|
}
|
15146
15146
|
));
|
15147
15147
|
};
|
@@ -15168,7 +15168,7 @@ var init_StatsForNerds = __esm({
|
|
15168
15168
|
StatsRow2,
|
15169
15169
|
{
|
15170
15170
|
label: "Round Trip Time",
|
15171
|
-
value: stats.roundTripTime ?
|
15171
|
+
value: stats.roundTripTime ? `${(stats.roundTripTime * 1e3).toFixed(3)} ms` : "-"
|
15172
15172
|
}
|
15173
15173
|
));
|
15174
15174
|
};
|
@@ -15399,7 +15399,7 @@ var init_CaptionContent = __esm({
|
|
15399
15399
|
});
|
15400
15400
|
setIsCaptionEnabled(false);
|
15401
15401
|
const id2 = ToastManager.replaceToast(toastId, {
|
15402
|
-
title:
|
15402
|
+
title: `Disabling Closed Caption for everyone.`,
|
15403
15403
|
variant: "standard",
|
15404
15404
|
duration: DURATION,
|
15405
15405
|
icon: /* @__PURE__ */ import_react77.default.createElement(Loading, { color: "currentColor" })
|
@@ -15412,7 +15412,7 @@ var init_CaptionContent = __esm({
|
|
15412
15412
|
mode: import_react_sdk34.HMSTranscriptionMode.CAPTION
|
15413
15413
|
});
|
15414
15414
|
const id = ToastManager.replaceToast(toastId, {
|
15415
|
-
title:
|
15415
|
+
title: `Enabling Closed Caption for everyone.`,
|
15416
15416
|
variant: "standard",
|
15417
15417
|
duration: DURATION,
|
15418
15418
|
icon: /* @__PURE__ */ import_react77.default.createElement(Loading, { color: "currentColor" })
|
@@ -15420,7 +15420,7 @@ var init_CaptionContent = __esm({
|
|
15420
15420
|
setToastId(id);
|
15421
15421
|
} catch (err) {
|
15422
15422
|
const id = ToastManager.replaceToast(toastId, {
|
15423
|
-
title:
|
15423
|
+
title: `Failed to ${isTranscriptionEnabled ? "disable" : "enable"} closed caption`,
|
15424
15424
|
variant: "error",
|
15425
15425
|
icon: /* @__PURE__ */ import_react77.default.createElement(import_react_icons30.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
15426
15426
|
});
|
@@ -15981,7 +15981,7 @@ var init_DesktopOptions = __esm({
|
|
15981
15981
|
},
|
15982
15982
|
/* @__PURE__ */ import_react87.default.createElement(Checkbox.Indicator, null, /* @__PURE__ */ import_react87.default.createElement(import_react_icons33.CheckIcon, { width: 16, height: 16 }))
|
15983
15983
|
),
|
15984
|
-
/* @__PURE__ */ import_react87.default.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react87.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ import_react87.default.createElement(Text, { variant: "sm", css: { ml: "$4" } },
|
15984
|
+
/* @__PURE__ */ import_react87.default.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react87.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ import_react87.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`))
|
15985
15985
|
);
|
15986
15986
|
}).otherwise(() => /* @__PURE__ */ import_react87.default.createElement(
|
15987
15987
|
Dropdown.Item,
|
@@ -19610,9 +19610,9 @@ function shimGetUserMedia3(window2) {
|
|
19610
19610
|
};
|
19611
19611
|
}
|
19612
19612
|
if (!navigator2.getUserMedia && navigator2.mediaDevices && navigator2.mediaDevices.getUserMedia) {
|
19613
|
-
navigator2.getUserMedia =
|
19613
|
+
navigator2.getUserMedia = function getUserMedia(constraints, cb, errcb) {
|
19614
19614
|
navigator2.mediaDevices.getUserMedia(constraints).then(cb, errcb);
|
19615
|
-
}
|
19615
|
+
}.bind(navigator2);
|
19616
19616
|
}
|
19617
19617
|
}
|
19618
19618
|
function shimConstraints(constraints) {
|
@@ -21573,12 +21573,8 @@ function vt(a2 = "prod", e) {
|
|
21573
21573
|
let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21574
21574
|
if (Be)
|
21575
21575
|
return As({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Is, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21576
|
-
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(
|
21577
|
-
|
21578
|
-
let m = kr("".concat(s.vendor, "_").concat(s.type));
|
21579
|
-
p = "".concat(m, "/").concat(u);
|
21580
|
-
}
|
21581
|
-
return As({ os: n, os_version: d, sdk: t, sdk_version: Is, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21576
|
+
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(`web_${r.name}`), d = r.version || "", u = kr(`${o.name}_${o.version}`), p = u;
|
21577
|
+
return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`), As({ os: n, os_version: d, sdk: t, sdk_version: Is, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21582
21578
|
}
|
21583
21579
|
function kr(a2) {
|
21584
21580
|
return a2.replace(/ /g, "_");
|
@@ -21673,7 +21669,7 @@ var init_dist = __esm({
|
|
21673
21669
|
n((t = t.apply(a2, e)).next());
|
21674
21670
|
});
|
21675
21671
|
yr = ro((Dc, ho) => {
|
21676
|
-
ho.exports = { version: "0.12.19-alpha.
|
21672
|
+
ho.exports = { version: "0.12.19-alpha.15", 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"] };
|
21677
21673
|
});
|
21678
21674
|
Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
|
21679
21675
|
so = ((e) => (e.CHAT = "chat", e))(so || {});
|
@@ -21776,34 +21772,42 @@ var init_dist = __esm({
|
|
21776
21772
|
}
|
21777
21773
|
toString() {
|
21778
21774
|
var t;
|
21779
|
-
return
|
21775
|
+
return `{
|
21776
|
+
code: ${this.code};
|
21777
|
+
name: ${this.name};
|
21778
|
+
action: ${this.action};
|
21779
|
+
message: ${this.message};
|
21780
|
+
description: ${this.description};
|
21781
|
+
isTerminal: ${this.isTerminal};
|
21782
|
+
nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
|
21783
|
+
}`;
|
21780
21784
|
}
|
21781
21785
|
};
|
21782
21786
|
uo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21783
21787
|
S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21784
|
-
return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2,
|
21788
|
+
return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21785
21789
|
}, WebSocketConnectionLost(a2, e = "") {
|
21786
21790
|
return new f(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21787
21791
|
}, AbnormalClose(a2, e = "") {
|
21788
21792
|
return new f(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21789
21793
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21790
|
-
return new f(a2, "ServerErrors", e,
|
21794
|
+
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21791
21795
|
}, EndpointUnreachable(a2, e = "") {
|
21792
|
-
return new f(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2,
|
21796
|
+
return new f(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21793
21797
|
}, InvalidTokenFormat(a2, e = "") {
|
21794
|
-
return new f(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2,
|
21798
|
+
return new f(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21795
21799
|
}, InitConfigNotAvailable(a2, e = "") {
|
21796
|
-
return new f(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2,
|
21800
|
+
return new f(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21797
21801
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21798
|
-
return new f(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2,
|
21802
|
+
return new f(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21799
21803
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21800
|
-
return new f(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2,
|
21804
|
+
return new f(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21801
21805
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21802
|
-
return new f(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2,
|
21806
|
+
return new f(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21803
21807
|
}, DeviceInUse(a2, e, t = "") {
|
21804
|
-
return new f(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2,
|
21808
|
+
return new f(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21805
21809
|
}, DeviceLostMidway(a2, e, t = "") {
|
21806
|
-
return new f(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2,
|
21810
|
+
return new f(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21807
21811
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21808
21812
|
return new f(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21809
21813
|
}, InvalidVideoSettings(a2, e = "") {
|
@@ -21813,31 +21817,31 @@ var init_dist = __esm({
|
|
21813
21817
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21814
21818
|
return new f(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21815
21819
|
}, OverConstrained(a2, e, t = "") {
|
21816
|
-
return new f(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2,
|
21820
|
+
return new f(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21817
21821
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21818
21822
|
return new f(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21819
21823
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21820
|
-
return new f(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2,
|
21824
|
+
return new f(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21821
21825
|
}, CurrentTabNotShared() {
|
21822
21826
|
return new f(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
|
21823
21827
|
}, AudioPlaybackError(a2) {
|
21824
21828
|
return new f(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21825
21829
|
}, SelectedDeviceMissing(a2) {
|
21826
|
-
return new f(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK",
|
21830
|
+
return new f(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21827
21831
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21828
|
-
return new f(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2,
|
21832
|
+
return new f(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21829
21833
|
}, CreateAnswerFailed(a2, e = "") {
|
21830
|
-
return new f(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2,
|
21834
|
+
return new f(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21831
21835
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21832
|
-
return new f(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2,
|
21836
|
+
return new f(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21833
21837
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21834
|
-
return new f(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2,
|
21838
|
+
return new f(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21835
21839
|
}, ICEFailure(a2, e = "", t = false) {
|
21836
|
-
return new f(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2,
|
21840
|
+
return new f(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21837
21841
|
}, ICEDisconnected(a2, e = "") {
|
21838
|
-
return new f(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2,
|
21842
|
+
return new f(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21839
21843
|
}, StatsFailed(a2, e = "") {
|
21840
|
-
return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2,
|
21844
|
+
return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21841
21845
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21842
21846
|
return new f(a2, "ServerErrors", e, t, t, uo.includes(e));
|
21843
21847
|
}, AlreadyJoined(a2, e = "") {
|
@@ -21847,13 +21851,13 @@ var init_dist = __esm({
|
|
21847
21851
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21848
21852
|
return new f(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21849
21853
|
}, Signalling(a2, e) {
|
21850
|
-
return new f(P4.GenericErrors.SIGNALLING, "Signalling", a2,
|
21854
|
+
return new f(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21851
21855
|
}, Unknown(a2, e) {
|
21852
|
-
return new f(P4.GenericErrors.UNKNOWN, "Unknown", a2,
|
21856
|
+
return new f(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21853
21857
|
}, NotReady(a2, e = "") {
|
21854
21858
|
return new f(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21855
21859
|
}, JsonParsingFailed(a2, e, t = "") {
|
21856
|
-
return new f(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2,
|
21860
|
+
return new f(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21857
21861
|
}, TrackMetadataMissing(a2, e = "") {
|
21858
21862
|
return new f(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21859
21863
|
}, RTCTrackMissing(a2, e = "") {
|
@@ -21951,7 +21955,7 @@ var init_dist = __esm({
|
|
21951
21955
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
21952
21956
|
};
|
21953
21957
|
Is = yr().version;
|
21954
|
-
As = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) =>
|
21958
|
+
As = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21955
21959
|
H = class {
|
21956
21960
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21957
21961
|
this.metadata = { peer: {}, userAgent: vt() };
|
@@ -22001,7 +22005,7 @@ var init_dist = __esm({
|
|
22001
22005
|
return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
22002
22006
|
}
|
22003
22007
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
22004
|
-
let o = this.eventNameFor(s ? "publish" :
|
22008
|
+
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
22005
22009
|
return new H({ name: o, level: n, properties: d });
|
22006
22010
|
}
|
22007
22011
|
static performance(e) {
|
@@ -22047,11 +22051,10 @@ var init_dist = __esm({
|
|
22047
22051
|
return new H({ name: "krisp.stop", level: 1 });
|
22048
22052
|
}
|
22049
22053
|
static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
|
22050
|
-
return new H({ name:
|
22054
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
|
22051
22055
|
}
|
22052
22056
|
static eventNameFor(e, t) {
|
22053
|
-
|
22054
|
-
return "".concat(e, ".").concat(i);
|
22057
|
+
return `${e}.${t ? "success" : "failed"}`;
|
22055
22058
|
}
|
22056
22059
|
static getPropertiesWithError(e, t) {
|
22057
22060
|
let i = this.getErrorProperties(t);
|
@@ -22079,7 +22082,7 @@ var init_dist = __esm({
|
|
22079
22082
|
return;
|
22080
22083
|
let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
|
22081
22084
|
if (!r) {
|
22082
|
-
l.w(this.TAG,
|
22085
|
+
l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
|
22083
22086
|
return;
|
22084
22087
|
}
|
22085
22088
|
let s = this.storage.get() || {};
|
@@ -22590,7 +22593,7 @@ var init_dist = __esm({
|
|
22590
22593
|
return;
|
22591
22594
|
}
|
22592
22595
|
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? $s : Ks;
|
22593
|
-
fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization:
|
22596
|
+
fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
|
22594
22597
|
if (r.status === 401) {
|
22595
22598
|
this.removeFromStorage(e);
|
22596
22599
|
return;
|
@@ -22625,10 +22628,10 @@ var init_dist = __esm({
|
|
22625
22628
|
}
|
22626
22629
|
static sendFeedback(s) {
|
22627
22630
|
return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
|
22628
|
-
l.d(this.TAG,
|
22631
|
+
l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
|
22629
22632
|
let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
|
22630
22633
|
try {
|
22631
|
-
let d = yield fetch(o, { headers: { Authorization:
|
22634
|
+
let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
|
22632
22635
|
try {
|
22633
22636
|
this.handleError(d);
|
22634
22637
|
return;
|
@@ -24077,7 +24080,7 @@ var init_ScreenShareToggle = __esm({
|
|
24077
24080
|
yield requestPermission();
|
24078
24081
|
})
|
24079
24082
|
},
|
24080
|
-
/* @__PURE__ */ import_react102.default.createElement(Tooltip, { title:
|
24083
|
+
/* @__PURE__ */ import_react102.default.createElement(Tooltip, { title: `${!isVideoScreenshare ? "Start" : "Stop"} screen sharing` }, /* @__PURE__ */ import_react102.default.createElement(Box, null, /* @__PURE__ */ import_react102.default.createElement(import_react_icons41.ShareScreenIcon, null)))
|
24081
24084
|
), /* @__PURE__ */ import_react102.default.createElement(ShareScreenOptions, null)));
|
24082
24085
|
};
|
24083
24086
|
}
|
@@ -24147,7 +24150,7 @@ var init_ChatToggle = __esm({
|
|
24147
24150
|
position: "relative"
|
24148
24151
|
}
|
24149
24152
|
},
|
24150
|
-
/* @__PURE__ */ import_react104.default.createElement(Tooltip, { key: "chat", title:
|
24153
|
+
/* @__PURE__ */ import_react104.default.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ import_react104.default.createElement(
|
24151
24154
|
IconButton_default,
|
24152
24155
|
{
|
24153
24156
|
onClick: () => onClick ? onClick() : toggleChat(),
|
@@ -24624,7 +24627,7 @@ var init_RoleAccordion = __esm({
|
|
24624
24627
|
return /* @__PURE__ */ import_react108.default.createElement(Accordion.Item, { value: roleName, css: { "&:hover .role_actions": { visibility: "visible" }, mb: "$8" }, ref }, /* @__PURE__ */ import_react108.default.createElement(
|
24625
24628
|
Accordion.Header,
|
24626
24629
|
{
|
24627
|
-
chevronID:
|
24630
|
+
chevronID: `role_accordion_btn_${roleName}`,
|
24628
24631
|
iconStyles: { c: "$on_surface_high" },
|
24629
24632
|
css: {
|
24630
24633
|
textTransform: "capitalize",
|
@@ -24648,7 +24651,7 @@ var init_RoleAccordion = __esm({
|
|
24648
24651
|
},
|
24649
24652
|
roleName,
|
24650
24653
|
" ",
|
24651
|
-
|
24654
|
+
`(${getFormattedCount(isLargeRoom && isOffStageRole ? total : peerList.length)})`
|
24652
24655
|
), /* @__PURE__ */ import_react108.default.createElement(RoleOptions, { roleName, peerList: peersInAccordion }))
|
24653
24656
|
), /* @__PURE__ */ import_react108.default.createElement(Accordion.Content, { contentStyles: { border: "1px solid $border_default", borderTop: "none" } }, /* @__PURE__ */ import_react108.default.createElement(
|
24654
24657
|
import_react_window2.FixedSizeList,
|
@@ -25159,7 +25162,7 @@ var init_PollsToggle = __esm({
|
|
25159
25162
|
setUnreadPollQuiz(false);
|
25160
25163
|
}
|
25161
25164
|
}, [isPollsOpen, unreadPollQuiz, setUnreadPollQuiz]);
|
25162
|
-
return /* @__PURE__ */ import_react112.default.createElement(Tooltip, { key: "polls", title:
|
25165
|
+
return /* @__PURE__ */ import_react112.default.createElement(Tooltip, { key: "polls", title: `${isPollsOpen ? "Close" : "Open"} polls and quizzes` }, /* @__PURE__ */ import_react112.default.createElement(
|
25163
25166
|
IconButton_default,
|
25164
25167
|
{
|
25165
25168
|
onClick: () => {
|
@@ -25198,7 +25201,7 @@ var init_WhiteboardToggle = __esm({
|
|
25198
25201
|
Tooltip,
|
25199
25202
|
{
|
25200
25203
|
key: "whiteboard",
|
25201
|
-
title: peerSharing ? "Cannot open whiteboard when viewing a shared screen" :
|
25204
|
+
title: peerSharing ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
|
25202
25205
|
},
|
25203
25206
|
/* @__PURE__ */ import_react113.default.createElement(
|
25204
25207
|
IconButton_default,
|
@@ -25428,7 +25431,7 @@ var init_Common = __esm({
|
|
25428
25431
|
left: 0,
|
25429
25432
|
bg: "$surface_dim",
|
25430
25433
|
transform: "translateX(10%)",
|
25431
|
-
animation:
|
25434
|
+
animation: `${slideLeftAndFade("10%")} 100ms ease-out forwards`,
|
25432
25435
|
display: "flex",
|
25433
25436
|
flexDirection: "column",
|
25434
25437
|
borderRadius: rounded ? "$2" : "0"
|
@@ -25592,7 +25595,7 @@ var init_PollsQuizMenu = __esm({
|
|
25592
25595
|
onClick: () => setInteractionType("Quiz" /* QUIZ */),
|
25593
25596
|
active: interactionType === "Quiz" /* QUIZ */
|
25594
25597
|
}
|
25595
|
-
)), /* @__PURE__ */ import_react118.default.createElement(Flex, { direction: "column", css: { mb: "$10" } }, /* @__PURE__ */ import_react118.default.createElement(Text, { variant: "body2", css: { mb: "$4" } },
|
25598
|
+
)), /* @__PURE__ */ import_react118.default.createElement(Flex, { direction: "column", css: { mb: "$10" } }, /* @__PURE__ */ import_react118.default.createElement(Text, { variant: "body2", css: { mb: "$4" } }, `Name this ${interactionType.toLowerCase()}`), /* @__PURE__ */ import_react118.default.createElement(
|
25596
25599
|
Input,
|
25597
25600
|
{
|
25598
25601
|
ref: inputRef,
|
@@ -25772,7 +25775,7 @@ var init_OptionInputWithDelete = __esm({
|
|
25772
25775
|
return /* @__PURE__ */ import_react121.default.createElement(import_react121.default.Fragment, null, /* @__PURE__ */ import_react121.default.createElement(
|
25773
25776
|
Input,
|
25774
25777
|
{
|
25775
|
-
placeholder:
|
25778
|
+
placeholder: `Option ${index + 1}`,
|
25776
25779
|
css: {
|
25777
25780
|
w: "100%",
|
25778
25781
|
backgroundColor: "$surface_bright",
|
@@ -25817,7 +25820,7 @@ var init_VoteProgress = __esm({
|
|
25817
25820
|
Progress.Content,
|
25818
25821
|
{
|
25819
25822
|
style: {
|
25820
|
-
transform:
|
25823
|
+
transform: `translateX(-${100 - progressValue}%)`
|
25821
25824
|
}
|
25822
25825
|
}
|
25823
25826
|
)) : null;
|
@@ -25861,10 +25864,10 @@ var init_MultipleChoiceOptions = __esm({
|
|
25861
25864
|
};
|
25862
25865
|
return /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
25863
25866
|
var _a7;
|
25864
|
-
return /* @__PURE__ */ import_react124.default.createElement(Flex, { align: "center", key:
|
25867
|
+
return /* @__PURE__ */ import_react124.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react124.default.createElement(
|
25865
25868
|
Checkbox.Root,
|
25866
25869
|
{
|
25867
|
-
id:
|
25870
|
+
id: `${questionIndex}-${option.index}`,
|
25868
25871
|
disabled: !canRespond,
|
25869
25872
|
checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
|
25870
25873
|
onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
|
@@ -25874,7 +25877,7 @@ var init_MultipleChoiceOptions = __esm({
|
|
25874
25877
|
}
|
25875
25878
|
},
|
25876
25879
|
/* @__PURE__ */ import_react124.default.createElement(Checkbox.Indicator, null, /* @__PURE__ */ import_react124.default.createElement(import_react_icons55.CheckIcon, { width: 16, height: 16 }))
|
25877
|
-
) : null, isStopped && (correctOptionIndexes == null ? void 0 : correctOptionIndexes.includes(option.index)) ? /* @__PURE__ */ import_react124.default.createElement(Flex, { align: "center", css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react124.default.createElement(import_react_icons55.CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react124.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react124.default.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ import_react124.default.createElement(Label3, { htmlFor:
|
25880
|
+
) : null, isStopped && (correctOptionIndexes == null ? void 0 : correctOptionIndexes.includes(option.index)) ? /* @__PURE__ */ import_react124.default.createElement(Flex, { align: "center", css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react124.default.createElement(import_react_icons55.CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react124.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react124.default.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ import_react124.default.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ import_react124.default.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ import_react124.default.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.options.includes(option.index)) ? /* @__PURE__ */ import_react124.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
25878
25881
|
}));
|
25879
25882
|
};
|
25880
25883
|
MultipleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
|
@@ -25929,7 +25932,7 @@ var init_SingleChoiceOptions = __esm({
|
|
25929
25932
|
localPeerResponse
|
25930
25933
|
}) => {
|
25931
25934
|
return /* @__PURE__ */ import_react125.default.createElement(RadioGroup.Root, { value: localPeerResponse == null ? void 0 : localPeerResponse.option, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ import_react125.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
25932
|
-
return /* @__PURE__ */ import_react125.default.createElement(Flex, { align: "center", key:
|
25935
|
+
return /* @__PURE__ */ import_react125.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react125.default.createElement(
|
25933
25936
|
RadioGroup.Item,
|
25934
25937
|
{
|
25935
25938
|
css: {
|
@@ -25951,7 +25954,7 @@ var init_SingleChoiceOptions = __esm({
|
|
25951
25954
|
},
|
25952
25955
|
disabled: !canRespond,
|
25953
25956
|
value: option.index,
|
25954
|
-
id:
|
25957
|
+
id: `${questionIndex}-${option.index}`
|
25955
25958
|
},
|
25956
25959
|
/* @__PURE__ */ import_react125.default.createElement(
|
25957
25960
|
RadioGroup.Indicator,
|
@@ -25964,13 +25967,13 @@ var init_SingleChoiceOptions = __esm({
|
|
25964
25967
|
}
|
25965
25968
|
}
|
25966
25969
|
)
|
25967
|
-
) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ import_react125.default.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react125.default.createElement(import_react_icons56.CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ import_react125.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react125.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react125.default.createElement(Text, { css: { display: "flex", flexGrow: "1", color: "$on_surface_high" } }, /* @__PURE__ */ import_react125.default.createElement(Label3, { style: { color: "inherit" }, htmlFor:
|
25970
|
+
) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ import_react125.default.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react125.default.createElement(import_react_icons56.CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ import_react125.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react125.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react125.default.createElement(Text, { css: { display: "flex", flexGrow: "1", color: "$on_surface_high" } }, /* @__PURE__ */ import_react125.default.createElement(Label3, { style: { color: "inherit" }, htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ import_react125.default.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ import_react125.default.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.option) === option.index ? /* @__PURE__ */ import_react125.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
25968
25971
|
})));
|
25969
25972
|
};
|
25970
25973
|
SingleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
|
25971
25974
|
const correctOptionIndex = options.findIndex((option) => option.isCorrectAnswer);
|
25972
25975
|
return /* @__PURE__ */ import_react125.default.createElement(RadioGroup.Root, { value: correctOptionIndex, onValueChange: selectAnswer }, /* @__PURE__ */ import_react125.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option, index) => {
|
25973
|
-
return /* @__PURE__ */ import_react125.default.createElement(Flex, { align: "center", key:
|
25976
|
+
return /* @__PURE__ */ import_react125.default.createElement(Flex, { align: "center", key: `option-${index}`, css: { w: "100%", gap: "$4" } }, isQuiz && /* @__PURE__ */ import_react125.default.createElement(
|
25974
25977
|
RadioGroup.Item,
|
25975
25978
|
{
|
25976
25979
|
css: {
|
@@ -26198,7 +26201,7 @@ var init_QuestionForm = __esm({
|
|
26198
26201
|
Tooltip,
|
26199
26202
|
{
|
26200
26203
|
disabled: isValid,
|
26201
|
-
title: options.length < 2 ? "At least two options must be added" :
|
26204
|
+
title: options.length < 2 ? "At least two options must be added" : `Please fill all the fields ${isQuiz ? "and mark the correct answer(s)" : ""} to continue`,
|
26202
26205
|
boxCss: { maxWidth: "$40" }
|
26203
26206
|
},
|
26204
26207
|
/* @__PURE__ */ import_react126.default.createElement(
|
@@ -26274,7 +26277,7 @@ var init_SavedQuestion = __esm({
|
|
26274
26277
|
}
|
26275
26278
|
return updatedAnswerArray;
|
26276
26279
|
}, [question == null ? void 0 : question.answer]);
|
26277
|
-
return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key:
|
26280
|
+
return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
|
26278
26281
|
};
|
26279
26282
|
}
|
26280
26283
|
});
|
@@ -26301,7 +26304,7 @@ function CreateQuestions() {
|
|
26301
26304
|
try {
|
26302
26305
|
yield actions.sendHLSTimedMetadata([
|
26303
26306
|
{
|
26304
|
-
payload:
|
26307
|
+
payload: `poll:${poll_id}`,
|
26305
26308
|
duration: 100
|
26306
26309
|
}
|
26307
26310
|
]);
|
@@ -26419,15 +26422,15 @@ var init_utils5 = __esm({
|
|
26419
26422
|
const seconds = totalSeconds % 60;
|
26420
26423
|
let formattedTime = "";
|
26421
26424
|
if (hours) {
|
26422
|
-
formattedTime +=
|
26425
|
+
formattedTime += `${hours}h `;
|
26423
26426
|
}
|
26424
26427
|
if (minutes || hours) {
|
26425
|
-
formattedTime +=
|
26428
|
+
formattedTime += `${minutes}m `;
|
26426
26429
|
}
|
26427
26430
|
if (!precise && (hours || minutes)) {
|
26428
26431
|
return formattedTime;
|
26429
26432
|
}
|
26430
|
-
formattedTime +=
|
26433
|
+
formattedTime += `${precise ? seconds.toFixed(3) : Math.floor(seconds)}s`;
|
26431
26434
|
return formattedTime;
|
26432
26435
|
};
|
26433
26436
|
}
|
@@ -26574,11 +26577,11 @@ var init_PeerParticipationSummary = __esm({
|
|
26574
26577
|
const boxes = isLocalPeerQuizCreator ? [
|
26575
26578
|
{
|
26576
26579
|
title: "Voted",
|
26577
|
-
value:
|
26580
|
+
value: `${summary.totalUsers ? (100 * summary.votedUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.votedUsers}/${summary.totalUsers})`
|
26578
26581
|
},
|
26579
26582
|
{
|
26580
26583
|
title: "Correct Answers",
|
26581
|
-
value:
|
26584
|
+
value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
|
26582
26585
|
},
|
26583
26586
|
// Time in ms
|
26584
26587
|
{ title: "Avg. Time Taken", value: getFormattedTime(summary.avgTime) },
|
@@ -26593,7 +26596,7 @@ var init_PeerParticipationSummary = __esm({
|
|
26593
26596
|
{ title: "Time Taken", value: getFormattedTime(peerEntry == null ? void 0 : peerEntry.duration) },
|
26594
26597
|
{
|
26595
26598
|
title: "Correct Answers",
|
26596
|
-
value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ?
|
26599
|
+
value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ? `${peerEntry == null ? void 0 : peerEntry.correctResponses}/${peerEntry.totalResponses}` : "-"
|
26597
26600
|
}
|
26598
26601
|
];
|
26599
26602
|
return /* @__PURE__ */ import_react132.default.createElement(Box, null, /* @__PURE__ */ import_react132.default.createElement(Text, { css: { fontWeight: "$semiBold", my: "$8" } }, "Participation Summary"), /* @__PURE__ */ import_react132.default.createElement(Box, { css: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "$4" } }, boxes.map((box) => /* @__PURE__ */ import_react132.default.createElement(StatisticBox, { key: box.title, title: box.title, value: box.value }))));
|
@@ -26785,7 +26788,7 @@ var init_QuestionCard = __esm({
|
|
26785
26788
|
borderRadius: "$1",
|
26786
26789
|
p: "$md",
|
26787
26790
|
mt: "$md",
|
26788
|
-
border: respondedToQuiz && !isLive ?
|
26791
|
+
border: respondedToQuiz && !isLive ? `1px solid ${isCorrectAnswer ? "$alert_success" : "$alert_error_default"}` : "none"
|
26789
26792
|
}
|
26790
26793
|
},
|
26791
26794
|
/* @__PURE__ */ import_react134.default.createElement(Flex, { align: "center", justify: "between" }, /* @__PURE__ */ import_react134.default.createElement(
|
@@ -26905,7 +26908,7 @@ var init_StandardVoting = __esm({
|
|
26905
26908
|
isQuiz,
|
26906
26909
|
startedBy: poll.startedBy,
|
26907
26910
|
pollState: poll.state,
|
26908
|
-
key:
|
26911
|
+
key: `${question.text}-${index}`,
|
26909
26912
|
index: question.index,
|
26910
26913
|
text: question.text,
|
26911
26914
|
type: question.type,
|
@@ -27312,7 +27315,7 @@ var init_ChatSelector = __esm({
|
|
27312
27315
|
icon,
|
27313
27316
|
value
|
27314
27317
|
),
|
27315
|
-
/* @__PURE__ */ import_react143.default.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ import_react143.default.createElement(Tooltip, { title:
|
27318
|
+
/* @__PURE__ */ import_react143.default.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ import_react143.default.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ import_react143.default.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ import_react143.default.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ import_react143.default.createElement(import_react_icons66.CheckIcon, { width: 16, height: 16 }))
|
27316
27319
|
);
|
27317
27320
|
};
|
27318
27321
|
SelectorHeader = import_react143.default.memo(
|
@@ -27620,7 +27623,22 @@ var init_useEmojiPickerStyles = __esm({
|
|
27620
27623
|
var _a7, _b7;
|
27621
27624
|
const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
|
27622
27625
|
const style = document.createElement("style");
|
27623
|
-
style.textContent =
|
27626
|
+
style.textContent = `
|
27627
|
+
#root {
|
27628
|
+
--em-rgb-color: var(--hms-ui-colors-on_surface_high);
|
27629
|
+
--em-rgb-input: var(--hms-ui-colors-on_primary_high);
|
27630
|
+
--em-color-border: var(--hms-ui-colors-surface_bright);
|
27631
|
+
--color-b: var(--hms-ui-colors-on_surface_high);
|
27632
|
+
--rgb-background: transparent;
|
27633
|
+
color: var(--hms-ui-colors-on_surface_high);
|
27634
|
+
font-family: var(--hms-ui-fonts-sans);
|
27635
|
+
}
|
27636
|
+
.sticky {
|
27637
|
+
top: 0.25rem;
|
27638
|
+
background-color: var(--hms-ui-colors-surface_bright);
|
27639
|
+
margin-top: 0.5rem;
|
27640
|
+
}
|
27641
|
+
`;
|
27624
27642
|
root == null ? void 0 : root.appendChild(style);
|
27625
27643
|
}, 0);
|
27626
27644
|
}
|
@@ -27730,15 +27748,15 @@ var init_ChatFooter = __esm({
|
|
27730
27748
|
}, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
|
27731
27749
|
const resetInputHeight = (0, import_react147.useCallback)(() => {
|
27732
27750
|
if (inputRef.current) {
|
27733
|
-
inputRef.current.style.height =
|
27751
|
+
inputRef.current.style.height = `${Math.max(
|
27734
27752
|
32,
|
27735
27753
|
inputRef.current.value ? Math.min(inputRef.current.scrollHeight, 24 * 4) : 0
|
27736
|
-
)
|
27754
|
+
)}px`;
|
27737
27755
|
}
|
27738
27756
|
}, []);
|
27739
27757
|
const updateInputHeight = (0, import_react147.useCallback)(() => {
|
27740
27758
|
if (inputRef.current) {
|
27741
|
-
inputRef.current.style.height =
|
27759
|
+
inputRef.current.style.height = `${Math.max(32, Math.min(inputRef.current.scrollHeight, 24 * 4))}px`;
|
27742
27760
|
}
|
27743
27761
|
}, []);
|
27744
27762
|
const sendMessage = (0, import_react147.useCallback)(() => __async(void 0, null, function* () {
|
@@ -27763,7 +27781,7 @@ var init_ChatFooter = __esm({
|
|
27763
27781
|
} catch (error) {
|
27764
27782
|
const err = error;
|
27765
27783
|
ToastManager.addToast({
|
27766
|
-
title: err.message.startsWith("Invalid peer") ?
|
27784
|
+
title: err.message.startsWith("Invalid peer") ? `${selectedPeer.name} is not in this room` : err.message
|
27767
27785
|
});
|
27768
27786
|
}
|
27769
27787
|
}), [selectedRole, selectedPeer, hmsActions, onSend]);
|
@@ -27873,7 +27891,7 @@ var init_ChatFooter = __esm({
|
|
27873
27891
|
{
|
27874
27892
|
onSelect: (emoji) => {
|
27875
27893
|
if (inputRef.current) {
|
27876
|
-
inputRef.current.value +=
|
27894
|
+
inputRef.current.value += ` ${emoji.native} `;
|
27877
27895
|
}
|
27878
27896
|
}
|
27879
27897
|
}
|
@@ -28424,7 +28442,7 @@ var init_PaginatedParticipants = __esm({
|
|
28424
28442
|
"data-testid": "close_sidepane"
|
28425
28443
|
},
|
28426
28444
|
/* @__PURE__ */ import_react154.default.createElement(import_react_icons72.CrossIcon, null)
|
28427
|
-
)), /* @__PURE__ */ import_react154.default.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder:
|
28445
|
+
)), /* @__PURE__ */ import_react154.default.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ import_react154.default.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ import_react154.default.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ import_react154.default.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ import_react154.default.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ import_react154.default.createElement(
|
28428
28446
|
import_react_window3.VariableSizeList,
|
28429
28447
|
{
|
28430
28448
|
itemSize: (index) => index === filteredPeers.length + 1 ? 16 : ROW_HEIGHT,
|
@@ -29077,7 +29095,7 @@ var init_TileMenu2 = __esm({
|
|
29077
29095
|
StyledMenuTile.Trigger,
|
29078
29096
|
{
|
29079
29097
|
"data-testid": "participant_menu_btn",
|
29080
|
-
css: { bg:
|
29098
|
+
css: { bg: `${theme2.colors.background_dim.value}A3`, p: "$2", w: "unset", h: "unset" },
|
29081
29099
|
onClick: (e) => e.stopPropagation(),
|
29082
29100
|
className: dragClassName
|
29083
29101
|
},
|
@@ -29096,7 +29114,7 @@ var init_TileMenu2 = __esm({
|
|
29096
29114
|
borderBottom: "1px solid $border_default"
|
29097
29115
|
}
|
29098
29116
|
},
|
29099
|
-
/* @__PURE__ */ import_react159.default.createElement(Box, null, /* @__PURE__ */ import_react159.default.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal ?
|
29117
|
+
/* @__PURE__ */ import_react159.default.createElement(Box, null, /* @__PURE__ */ import_react159.default.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal ? ` (You)` : null), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ import_react159.default.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
|
29100
29118
|
/* @__PURE__ */ import_react159.default.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ import_react159.default.createElement(import_react_icons77.CrossIcon, null))
|
29101
29119
|
), /* @__PURE__ */ import_react159.default.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ import_react159.default.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ import_react159.default.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ import_react159.default.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ import_react159.default.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }), showRoleChangeModal && /* @__PURE__ */ import_react159.default.createElement(RoleChangeModal, { peerId: peerID, onOpenChange: setShowRoleChangeModal }));
|
29102
29120
|
};
|
@@ -29113,11 +29131,11 @@ var init_peerTileUtils = __esm({
|
|
29113
29131
|
PEER_NAME_PLACEHOLDER = "peerName";
|
29114
29132
|
labelMap = /* @__PURE__ */ new Map([
|
29115
29133
|
[[true, "screen"].toString(), "Your Screen"],
|
29116
|
-
[[true, "regular"].toString(),
|
29117
|
-
[[false, "screen"].toString(),
|
29134
|
+
[[true, "regular"].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
29135
|
+
[[false, "screen"].toString(), `${PEER_NAME_PLACEHOLDER}'s Screen`],
|
29118
29136
|
[[false, "regular"].toString(), PEER_NAME_PLACEHOLDER],
|
29119
|
-
[[true, void 0].toString(),
|
29120
|
-
[[false, void 0].toString(),
|
29137
|
+
[[true, void 0].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
29138
|
+
[[false, void 0].toString(), `${PEER_NAME_PLACEHOLDER}`]
|
29121
29139
|
]);
|
29122
29140
|
getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
29123
29141
|
const isPeerPresent = peerName !== void 0;
|
@@ -29129,9 +29147,9 @@ var init_peerTileUtils = __esm({
|
|
29129
29147
|
if (label) {
|
29130
29148
|
label = label.replace(PEER_NAME_PLACEHOLDER, peerName);
|
29131
29149
|
} else {
|
29132
|
-
label =
|
29150
|
+
label = `${peerName} ${track.source}`;
|
29133
29151
|
}
|
29134
|
-
return
|
29152
|
+
return `${label}${isLocallyMuted ? " (Muted for you)" : ""}`;
|
29135
29153
|
};
|
29136
29154
|
}
|
29137
29155
|
});
|
@@ -29220,7 +29238,7 @@ var init_VideoTile2 = __esm({
|
|
29220
29238
|
width,
|
29221
29239
|
height
|
29222
29240
|
}, rootCSS),
|
29223
|
-
"data-testid":
|
29241
|
+
"data-testid": `participant_tile_${peerName}`
|
29224
29242
|
},
|
29225
29243
|
peerName !== void 0 ? /* @__PURE__ */ import_react160.default.createElement(
|
29226
29244
|
StyledVideoTile.Container,
|
@@ -29322,10 +29340,10 @@ var init_VBOption = __esm({
|
|
29322
29340
|
p: "$5",
|
29323
29341
|
borderRadius: "$1",
|
29324
29342
|
bg: "$surface_bright",
|
29325
|
-
border:
|
29343
|
+
border: `4px solid ${isActive ? "$primary_default" : "$surface_dim"}`,
|
29326
29344
|
cursor: "pointer",
|
29327
29345
|
"&:hover": { border: "4px solid $primary_dim" }
|
29328
|
-
}, mediaURL ? { height: "$20", backgroundImage:
|
29346
|
+
}, mediaURL ? { height: "$20", backgroundImage: `url("${mediaURL}")`, backgroundSize: "cover" } : {}),
|
29329
29347
|
onClick: () => __async(void 0, null, function* () {
|
29330
29348
|
yield onClick == null ? void 0 : onClick();
|
29331
29349
|
})
|
@@ -29370,7 +29388,7 @@ var init_VBCollection = __esm({
|
|
29370
29388
|
VBOption.Root,
|
29371
29389
|
__spreadProps(__spreadValues({
|
29372
29390
|
key: option.value,
|
29373
|
-
testid: option.value === import_hmsvbplugin3.HMSVirtualBackgroundTypes.IMAGE ?
|
29391
|
+
testid: option.value === import_hmsvbplugin3.HMSVirtualBackgroundTypes.IMAGE ? `virtual_bg_option-${index}` : option.value
|
29374
29392
|
}, option), {
|
29375
29393
|
isActive: activeBackground === option.value
|
29376
29394
|
}),
|
@@ -29634,7 +29652,7 @@ var init_SidePane = __esm({
|
|
29634
29652
|
},
|
29635
29653
|
"@md": {
|
29636
29654
|
p: "$6 $8",
|
29637
|
-
animation:
|
29655
|
+
animation: `${translateAcross({ yFrom: "100%" })} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
29638
29656
|
},
|
29639
29657
|
variants: {
|
29640
29658
|
landscapeStream: {
|
@@ -29965,7 +29983,7 @@ var init_PreviewJoin = __esm({
|
|
29965
29983
|
return "You are the first to join";
|
29966
29984
|
}
|
29967
29985
|
const formattedNum = getFormattedCount(peerCount);
|
29968
|
-
return
|
29986
|
+
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
29969
29987
|
};
|
29970
29988
|
useLocalTileAspectRatio = () => {
|
29971
29989
|
const localPeer = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectLocalPeer);
|
@@ -30053,7 +30071,7 @@ var init_PreviewJoin = __esm({
|
|
30053
30071
|
textColor: "#FFF",
|
30054
30072
|
icon: /* @__PURE__ */ import_react168.default.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
|
30055
30073
|
}
|
30056
|
-
) : null, /* @__PURE__ */ import_react168.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react168.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react168.default.createElement(Box, { css: { w: "100%", maxWidth:
|
30074
|
+
) : null, /* @__PURE__ */ import_react168.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react168.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react168.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 340}px` } }, /* @__PURE__ */ import_react168.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react168.default.createElement(
|
30057
30075
|
PreviewForm_default,
|
30058
30076
|
{
|
30059
30077
|
name,
|
@@ -30413,7 +30431,7 @@ var init_InsetTile = __esm({
|
|
30413
30431
|
const resizeObserver = new ResizeObserver((entries) => {
|
30414
30432
|
entries.forEach((entry) => {
|
30415
30433
|
if (entry.target === node.parentElement) {
|
30416
|
-
node.style.transform =
|
30434
|
+
node.style.transform = `translate(0,0)`;
|
30417
30435
|
}
|
30418
30436
|
});
|
30419
30437
|
});
|
@@ -30770,12 +30788,12 @@ var init_ProminenceLayout = __esm({
|
|
30770
30788
|
}
|
30771
30789
|
const gridStyles = hasSidebar ? {
|
30772
30790
|
gridTemplateColumns: "1fr",
|
30773
|
-
gridTemplateRows:
|
30791
|
+
gridTemplateRows: `repeat(${tiles.length}, minmax(0, 1fr))`,
|
30774
30792
|
maxHeight: "100%",
|
30775
30793
|
width: 240
|
30776
30794
|
} : {
|
30777
30795
|
gridTemplateRows: import_react178.default.Children.count(children) > 0 ? "136px auto" : "154px",
|
30778
|
-
gridTemplateColumns:
|
30796
|
+
gridTemplateColumns: `repeat(${tiles.length}, minmax(0, 1fr))`
|
30779
30797
|
};
|
30780
30798
|
return /* @__PURE__ */ import_react178.default.createElement(
|
30781
30799
|
Box,
|
@@ -30808,7 +30826,7 @@ var init_ProminenceLayout = __esm({
|
|
30808
30826
|
}, tileLayoutProps)
|
30809
30827
|
);
|
30810
30828
|
}),
|
30811
|
-
children && /* @__PURE__ */ import_react178.default.createElement(Box, { css: { gridColumn: hasSidebar ? 1 :
|
30829
|
+
children && /* @__PURE__ */ import_react178.default.createElement(Box, { css: { gridColumn: hasSidebar ? 1 : `1/span ${tiles.length}` } }, children)
|
30812
30830
|
);
|
30813
30831
|
};
|
30814
30832
|
ProminenceLayout = {
|
@@ -31247,7 +31265,7 @@ var init_ScreenshareTile = __esm({
|
|
31247
31265
|
isFullScreenSupported && isMouseHovered ? /* @__PURE__ */ import_react184.default.createElement(
|
31248
31266
|
StyledVideoTile.FullScreenButton,
|
31249
31267
|
{
|
31250
|
-
css: { bg:
|
31268
|
+
css: { bg: `${theme2.colors.background_dim.value}A3` },
|
31251
31269
|
onClick: () => setFullscreen(!fullscreen)
|
31252
31270
|
},
|
31253
31271
|
isFullscreen ? /* @__PURE__ */ import_react184.default.createElement(import_react_icons87.ShrinkIcon, null) : /* @__PURE__ */ import_react184.default.createElement(import_react_icons87.ExpandIcon, null)
|
@@ -31262,7 +31280,7 @@ var init_ScreenshareTile = __esm({
|
|
31262
31280
|
h: "$14",
|
31263
31281
|
right: isFullScreenSupported ? "$17" : "$2",
|
31264
31282
|
zIndex: 5,
|
31265
|
-
bg:
|
31283
|
+
bg: `${theme2.colors.background_dim.value}A3`
|
31266
31284
|
}
|
31267
31285
|
},
|
31268
31286
|
/* @__PURE__ */ import_react184.default.createElement(LayoutModeSelector, null)
|
@@ -31356,9 +31374,9 @@ var init_ScreenshareLayout = __esm({
|
|
31356
31374
|
}
|
31357
31375
|
});
|
31358
31376
|
|
31359
|
-
// ../../../../../../../tmp/tmp-
|
31360
|
-
var
|
31361
|
-
"../../../../../../../tmp/tmp-
|
31377
|
+
// ../../../../../../../tmp/tmp-2788-54Or9FQtFY2o/191bdfb05191/index.css
|
31378
|
+
var init_bdfb05191 = __esm({
|
31379
|
+
"../../../../../../../tmp/tmp-2788-54Or9FQtFY2o/191bdfb05191/index.css"() {
|
31362
31380
|
}
|
31363
31381
|
});
|
31364
31382
|
|
@@ -31380,7 +31398,7 @@ var init_WhiteboardLayout = __esm({
|
|
31380
31398
|
init_ProminenceLayout();
|
31381
31399
|
init_useUISettings();
|
31382
31400
|
init_constants();
|
31383
|
-
|
31401
|
+
init_bdfb05191();
|
31384
31402
|
WhiteboardEmbed = () => {
|
31385
31403
|
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31386
31404
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
|
@@ -31400,7 +31418,7 @@ var init_WhiteboardLayout = __esm({
|
|
31400
31418
|
}
|
31401
31419
|
}
|
31402
31420
|
},
|
31403
|
-
/* @__PURE__ */ import_react186.default.createElement(Box, { css: { size: "100%" } }, /* @__PURE__ */ import_react186.default.createElement(import_hms_whiteboard.Whiteboard, { token, endpoint:
|
31421
|
+
/* @__PURE__ */ import_react186.default.createElement(Box, { css: { size: "100%" } }, /* @__PURE__ */ import_react186.default.createElement(import_hms_whiteboard.Whiteboard, { token, endpoint: `https://${endpoint}`, zoomToContent }))
|
31404
31422
|
);
|
31405
31423
|
};
|
31406
31424
|
WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
@@ -31721,7 +31739,7 @@ var init_EmbedView = __esm({
|
|
31721
31739
|
} catch (err) {
|
31722
31740
|
resetConfig();
|
31723
31741
|
ToastManager.addToast({
|
31724
|
-
title:
|
31742
|
+
title: `Error while sharing embed url ${err.message || ""}`,
|
31725
31743
|
variant: "error"
|
31726
31744
|
});
|
31727
31745
|
}
|
@@ -31791,7 +31809,7 @@ var init_PDFView = __esm({
|
|
31791
31809
|
} catch (err) {
|
31792
31810
|
resetConfig();
|
31793
31811
|
ToastManager.addToast({
|
31794
|
-
title:
|
31812
|
+
title: `Error while sharing annotator ${err.message || ""}`,
|
31795
31813
|
variant: "error"
|
31796
31814
|
});
|
31797
31815
|
}
|
@@ -32125,10 +32143,10 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
|
|
32125
32143
|
},
|
32126
32144
|
"Stream url"
|
32127
32145
|
))),
|
32128
|
-
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "Video size" },
|
32146
|
+
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a7.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
|
32129
32147
|
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
|
32130
|
-
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "Connection speed" },
|
32131
|
-
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "Bitrate" },
|
32148
|
+
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
|
32149
|
+
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
|
32132
32150
|
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "distance from live" }, getDurationFromSeconds(hlsStatsState.distanceFromLive / 1e3)),
|
32133
32151
|
/* @__PURE__ */ import_react192.default.createElement(HlsStatsRow, { label: "Dropped frames" }, hlsStatsState == null ? void 0 : hlsStatsState.droppedFrames)
|
32134
32152
|
);
|
@@ -32139,12 +32157,12 @@ function getDurationFromSeconds(timeInSeconds) {
|
|
32139
32157
|
time = time - hours * 3600;
|
32140
32158
|
const minutes = Math.floor(time / 60);
|
32141
32159
|
const seconds = Math.floor(time - minutes * 60);
|
32142
|
-
const prefixedMinutes =
|
32143
|
-
const prefixedSeconds =
|
32144
|
-
let videoTimeStr =
|
32160
|
+
const prefixedMinutes = `${minutes < 10 ? "0" + minutes : minutes}`;
|
32161
|
+
const prefixedSeconds = `${seconds < 10 ? "0" + seconds : seconds}`;
|
32162
|
+
let videoTimeStr = `${prefixedMinutes}:${prefixedSeconds}`;
|
32145
32163
|
if (hours) {
|
32146
|
-
const prefixedHours =
|
32147
|
-
videoTimeStr =
|
32164
|
+
const prefixedHours = `${hours < 10 ? "0" + hours : hours}`;
|
32165
|
+
videoTimeStr = `${prefixedHours}:${prefixedMinutes}:${prefixedSeconds}`;
|
32148
32166
|
}
|
32149
32167
|
return videoTimeStr;
|
32150
32168
|
}
|
@@ -32399,8 +32417,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
32399
32417
|
bg: "rgba(0, 0, 0, 0.6)",
|
32400
32418
|
r: "$round",
|
32401
32419
|
size: "$24",
|
32402
|
-
visibility: hoverControlsVisible.seekBackward ?
|
32403
|
-
opacity: hoverControlsVisible.seekBackward ?
|
32420
|
+
visibility: hoverControlsVisible.seekBackward ? `` : `hidden`,
|
32421
|
+
opacity: hoverControlsVisible.seekBackward ? `1` : "0"
|
32404
32422
|
},
|
32405
32423
|
direction: "column",
|
32406
32424
|
align: "center"
|
@@ -32413,8 +32431,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
32413
32431
|
css: {
|
32414
32432
|
bg: "rgba(0, 0, 0, 0.6)",
|
32415
32433
|
r: "$round",
|
32416
|
-
visibility: hoverControlsVisible.pausePlay ?
|
32417
|
-
opacity: hoverControlsVisible.pausePlay ?
|
32434
|
+
visibility: hoverControlsVisible.pausePlay ? `` : `hidden`,
|
32435
|
+
opacity: hoverControlsVisible.pausePlay ? `1` : "0"
|
32418
32436
|
}
|
32419
32437
|
},
|
32420
32438
|
/* @__PURE__ */ import_react197.default.createElement(PlayPauseButton, { isPaused, width: 48, height: 48 })
|
@@ -32425,8 +32443,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
32425
32443
|
bg: "rgba(0, 0, 0, 0.6)",
|
32426
32444
|
r: "$round",
|
32427
32445
|
size: "$24",
|
32428
|
-
visibility: hoverControlsVisible.seekForward ?
|
32429
|
-
opacity: hoverControlsVisible.seekForward ?
|
32446
|
+
visibility: hoverControlsVisible.seekForward ? `` : `hidden`,
|
32447
|
+
opacity: hoverControlsVisible.seekForward ? `1` : "0"
|
32430
32448
|
},
|
32431
32449
|
direction: "column",
|
32432
32450
|
align: "center"
|
@@ -32447,8 +32465,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
32447
32465
|
gap: "$2",
|
32448
32466
|
zIndex: 1,
|
32449
32467
|
size: "100%",
|
32450
|
-
visibility: showControls ?
|
32451
|
-
opacity: showControls ?
|
32468
|
+
visibility: showControls ? `` : `hidden`,
|
32469
|
+
opacity: showControls ? `1` : "0"
|
32452
32470
|
}
|
32453
32471
|
},
|
32454
32472
|
/* @__PURE__ */ import_react197.default.createElement(
|
@@ -32456,8 +32474,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
32456
32474
|
{
|
32457
32475
|
title: "backward",
|
32458
32476
|
css: {
|
32459
|
-
visibility: hoverControlsVisible.seekBackward ?
|
32460
|
-
opacity: hoverControlsVisible.seekBackward ?
|
32477
|
+
visibility: hoverControlsVisible.seekBackward ? `` : `hidden`,
|
32478
|
+
opacity: hoverControlsVisible.seekBackward ? `1` : "0"
|
32461
32479
|
}
|
32462
32480
|
},
|
32463
32481
|
/* @__PURE__ */ import_react197.default.createElement(import_react_icons90.BackwardArrowIcon, { width: 32, height: 32 })
|
@@ -32477,8 +32495,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
32477
32495
|
{
|
32478
32496
|
title: "forward",
|
32479
32497
|
css: {
|
32480
|
-
visibility: hoverControlsVisible.seekForward ?
|
32481
|
-
opacity: hoverControlsVisible.seekForward ?
|
32498
|
+
visibility: hoverControlsVisible.seekForward ? `` : `hidden`,
|
32499
|
+
opacity: hoverControlsVisible.seekForward ? `1` : "0"
|
32482
32500
|
}
|
32483
32501
|
},
|
32484
32502
|
/* @__PURE__ */ import_react197.default.createElement(import_react_icons90.ForwardArrowIcon, { width: 32, height: 32 })
|
@@ -32498,12 +32516,12 @@ function getDurationFromSeconds2(timeInSeconds) {
|
|
32498
32516
|
time = time - hours * 3600;
|
32499
32517
|
const minutes = Math.floor(time / 60);
|
32500
32518
|
const seconds = Math.floor(time - minutes * 60);
|
32501
|
-
const prefixedMinutes =
|
32502
|
-
const prefixedSeconds =
|
32503
|
-
let videoTimeStr =
|
32519
|
+
const prefixedMinutes = `${minutes < 10 ? `0${minutes}` : minutes}`;
|
32520
|
+
const prefixedSeconds = `${seconds < 10 ? `0${seconds}` : seconds}`;
|
32521
|
+
let videoTimeStr = `${prefixedMinutes}:${prefixedSeconds}`;
|
32504
32522
|
if (hours) {
|
32505
|
-
const prefixedHours =
|
32506
|
-
videoTimeStr =
|
32523
|
+
const prefixedHours = `${hours < 10 ? `0${hours}` : hours}`;
|
32524
|
+
videoTimeStr = `${prefixedHours}:${prefixedMinutes}:${prefixedSeconds}`;
|
32507
32525
|
}
|
32508
32526
|
return videoTimeStr;
|
32509
32527
|
}
|
@@ -32598,7 +32616,7 @@ var init_VideoProgress = __esm({
|
|
32598
32616
|
cursor: "pointer",
|
32599
32617
|
h: "$2",
|
32600
32618
|
zIndex: 1,
|
32601
|
-
transition:
|
32619
|
+
transition: `all .2s ease .5s`
|
32602
32620
|
},
|
32603
32621
|
min: 0,
|
32604
32622
|
max: 100,
|
@@ -32616,10 +32634,10 @@ var init_VideoProgress = __esm({
|
|
32616
32634
|
id: "video-buffer",
|
32617
32635
|
css: {
|
32618
32636
|
h: "$2",
|
32619
|
-
width:
|
32637
|
+
width: `${bufferProgress - videoProgress}%`,
|
32620
32638
|
background: "$on_surface_high",
|
32621
32639
|
position: "absolute",
|
32622
|
-
left:
|
32640
|
+
left: `${videoProgress}%`,
|
32623
32641
|
opacity: "25%"
|
32624
32642
|
}
|
32625
32643
|
}
|
@@ -32741,7 +32759,7 @@ var init_VolumeControl = __esm({
|
|
32741
32759
|
"@xs": { w: "$14" },
|
32742
32760
|
opacity: showSlider ? "1" : "0",
|
32743
32761
|
display: showSlider ? "" : "none",
|
32744
|
-
transition:
|
32762
|
+
transition: `all .2s ease .5s`
|
32745
32763
|
},
|
32746
32764
|
min: 0,
|
32747
32765
|
max: 100,
|
@@ -32805,7 +32823,7 @@ var init_FullscreenButton = __esm({
|
|
32805
32823
|
import_react_icons92 = require("@100mslive/react-icons");
|
32806
32824
|
init_src();
|
32807
32825
|
FullScreenButton2 = ({ isFullScreen, onToggle }) => {
|
32808
|
-
return /* @__PURE__ */ import_react201.default.createElement(Tooltip, { title:
|
32826
|
+
return /* @__PURE__ */ import_react201.default.createElement(Tooltip, { title: `${isFullScreen ? "Exit" : "Go"} fullscreen`, side: "top" }, /* @__PURE__ */ import_react201.default.createElement(IconButton, { css: { margin: "0px" }, onClick: onToggle, key: "fullscreen_btn", "data-testid": "fullscreen_btn" }, /* @__PURE__ */ import_react201.default.createElement(Flex, null, isFullScreen ? /* @__PURE__ */ import_react201.default.createElement(import_react_icons92.ShrinkIcon, null) : /* @__PURE__ */ import_react201.default.createElement(import_react_icons92.ExpandIcon, null))));
|
32809
32827
|
};
|
32810
32828
|
}
|
32811
32829
|
});
|
@@ -33114,8 +33132,8 @@ var init_HLSQualitySelector = __esm({
|
|
33114
33132
|
init_Sheet2();
|
33115
33133
|
init_Theme();
|
33116
33134
|
init_hooks();
|
33117
|
-
getQualityText = (layer) =>
|
33118
|
-
getBitrateText = (layer) =>
|
33135
|
+
getQualityText = (layer) => `${Math.min(layer.height || 0, layer.width || 0)}p `;
|
33136
|
+
getBitrateText = (layer) => `(${(Number(layer.bitrate / 1e3) / 1e3).toFixed(2)} Mbps)`;
|
33119
33137
|
}
|
33120
33138
|
});
|
33121
33139
|
|
@@ -33367,7 +33385,7 @@ var init_HLSView = __esm({
|
|
33367
33385
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk101.selectPeerNameByID)(poll.startedBy)) || "Participant";
|
33368
33386
|
if (!toastMap[pollId]) {
|
33369
33387
|
const toastID = ToastManager.addToast({
|
33370
|
-
title:
|
33388
|
+
title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
|
33371
33389
|
action: /* @__PURE__ */ import_react206.default.createElement(
|
33372
33390
|
Button,
|
33373
33391
|
{
|
@@ -33400,7 +33418,7 @@ var init_HLSView = __esm({
|
|
33400
33418
|
break;
|
33401
33419
|
default: {
|
33402
33420
|
const toast = {
|
33403
|
-
title:
|
33421
|
+
title: `Payload from timed Metadata ${parsedPayload}`,
|
33404
33422
|
duration: duration || 3e3
|
33405
33423
|
};
|
33406
33424
|
console.debug("Added toast ", JSON.stringify(toast));
|
@@ -33410,7 +33428,7 @@ var init_HLSView = __esm({
|
|
33410
33428
|
}
|
33411
33429
|
};
|
33412
33430
|
const handleError = (data3) => {
|
33413
|
-
console.error("[HLSView] error in hls",
|
33431
|
+
console.error("[HLSView] error in hls", `${data3}`);
|
33414
33432
|
};
|
33415
33433
|
const handleNoLongerLive = ({ isLive }) => {
|
33416
33434
|
setIsVideoLive(isLive);
|
@@ -33589,7 +33607,7 @@ var init_HLSView = __esm({
|
|
33589
33607
|
Flex,
|
33590
33608
|
{
|
33591
33609
|
key: "hls-viewer",
|
33592
|
-
id:
|
33610
|
+
id: `hls-viewer-${themeType}`,
|
33593
33611
|
ref: hlsViewRef,
|
33594
33612
|
direction: isMobile || isLandscape ? "column" : "row",
|
33595
33613
|
justify: "center",
|
@@ -33618,7 +33636,7 @@ var init_HLSView = __esm({
|
|
33618
33636
|
Flex,
|
33619
33637
|
{
|
33620
33638
|
key: "hls-viewer",
|
33621
|
-
id:
|
33639
|
+
id: `hls-viewer-${themeType}`,
|
33622
33640
|
ref: hlsViewRef,
|
33623
33641
|
direction: isMobile || isLandscape ? "column" : "row",
|
33624
33642
|
justify: "center",
|
@@ -33686,7 +33704,7 @@ var init_HLSView = __esm({
|
|
33686
33704
|
justify: "between",
|
33687
33705
|
css: {
|
33688
33706
|
position: "absolute",
|
33689
|
-
bg:
|
33707
|
+
bg: `${hoverControlsVisible.pausePlay || hoverControlsVisible.seekBackward || hoverControlsVisible.seekForward ? "#00000066" : ""}`,
|
33690
33708
|
display: "inline-flex",
|
33691
33709
|
gap: "$2",
|
33692
33710
|
zIndex: 1,
|
@@ -33722,8 +33740,8 @@ var init_HLSView = __esm({
|
|
33722
33740
|
width: "100%",
|
33723
33741
|
flexShrink: 0,
|
33724
33742
|
zIndex: 1,
|
33725
|
-
visibility: controlsVisible ?
|
33726
|
-
opacity: controlsVisible ?
|
33743
|
+
visibility: controlsVisible ? `` : `hidden`,
|
33744
|
+
opacity: controlsVisible ? `1` : "0"
|
33727
33745
|
}
|
33728
33746
|
},
|
33729
33747
|
/* @__PURE__ */ import_react206.default.createElement(
|
@@ -33771,7 +33789,7 @@ var init_HLSView = __esm({
|
|
33771
33789
|
bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk101.HLSPlaylistType.DVR ? "$8" : "0",
|
33772
33790
|
left: "0",
|
33773
33791
|
zIndex: 1,
|
33774
|
-
background: isMobile || isLandscape ? "" :
|
33792
|
+
background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
|
33775
33793
|
width: "100%",
|
33776
33794
|
pt: "$8",
|
33777
33795
|
flexShrink: 0,
|
@@ -34053,7 +34071,7 @@ var init_common2 = __esm({
|
|
34053
34071
|
yield actions.switchCamera();
|
34054
34072
|
} catch (e) {
|
34055
34073
|
ToastManager.addToast({
|
34056
|
-
title:
|
34074
|
+
title: `Error while flipping camera ${e.message || ""}`,
|
34057
34075
|
variant: "error"
|
34058
34076
|
});
|
34059
34077
|
}
|
@@ -34099,7 +34117,7 @@ var init_common2 = __esm({
|
|
34099
34117
|
});
|
34100
34118
|
} catch (e) {
|
34101
34119
|
ToastManager.addToast({
|
34102
|
-
title:
|
34120
|
+
title: `Error while changing audio device ${e.message || ""}`,
|
34103
34121
|
variant: "error"
|
34104
34122
|
});
|
34105
34123
|
}
|
@@ -34362,7 +34380,7 @@ var init_ConferenceScreen = __esm({
|
|
34362
34380
|
css: {
|
34363
34381
|
h: "$18",
|
34364
34382
|
transition: "margin 0.3s ease-in-out",
|
34365
|
-
marginTop: hideControlsForStreaming ?
|
34383
|
+
marginTop: hideControlsForStreaming ? `-${(_b7 = headerRef.current) == null ? void 0 : _b7.clientHeight}px` : "none",
|
34366
34384
|
"@md": {
|
34367
34385
|
h: "$17"
|
34368
34386
|
}
|
@@ -34406,7 +34424,7 @@ var init_ConferenceScreen = __esm({
|
|
34406
34424
|
maxHeight: "$24",
|
34407
34425
|
transition: "margin 0.3s ease-in-out",
|
34408
34426
|
bg: "$background_dim",
|
34409
|
-
marginBottom: hideControlsForStreaming ?
|
34427
|
+
marginBottom: hideControlsForStreaming ? `-${(_f = footerRef.current) == null ? void 0 : _f.clientHeight}px` : void 0,
|
34410
34428
|
"@md": {
|
34411
34429
|
maxHeight: "unset",
|
34412
34430
|
bg: screenProps.screenType === "hls_live_streaming" ? "transparent" : "$background_dim"
|
@@ -34463,7 +34481,7 @@ var init_ErrorBoundary = __esm({
|
|
34463
34481
|
this.state = { error: null, errorInfo: null, isErrorCopied: false };
|
34464
34482
|
}
|
34465
34483
|
componentDidCatch(error, errorInfo) {
|
34466
|
-
console.error(
|
34484
|
+
console.error(`react error boundary - ${error.message}`, error, errorInfo);
|
34467
34485
|
this.setState({
|
34468
34486
|
error: error == null ? void 0 : error.message,
|
34469
34487
|
errorInfo
|
@@ -34596,7 +34614,7 @@ var init_Init = __esm({
|
|
34596
34614
|
(0, import_react215.useEffect)(() => {
|
34597
34615
|
function resetHeight() {
|
34598
34616
|
var _a7;
|
34599
|
-
document.body.style.height =
|
34617
|
+
document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
|
34600
34618
|
}
|
34601
34619
|
window.addEventListener("resize", resetHeight);
|
34602
34620
|
resetHeight();
|
@@ -34918,7 +34936,7 @@ var init_FeedbackForm = __esm({
|
|
34918
34936
|
gap: "$4"
|
34919
34937
|
},
|
34920
34938
|
onClick: () => onEmojiClicked(index),
|
34921
|
-
key:
|
34939
|
+
key: `${index}`
|
34922
34940
|
},
|
34923
34941
|
/* @__PURE__ */ import_react217.default.createElement(
|
34924
34942
|
Text,
|
@@ -35010,7 +35028,7 @@ var init_FeedbackForm = __esm({
|
|
35010
35028
|
/* @__PURE__ */ import_react217.default.createElement(
|
35011
35029
|
Checkbox.Root,
|
35012
35030
|
{
|
35013
|
-
id:
|
35031
|
+
id: `${option}-${index}`,
|
35014
35032
|
checked: selectedReasons.has(index),
|
35015
35033
|
onCheckedChange: (checked) => handleCheckedChange(checked, index),
|
35016
35034
|
css: {
|
@@ -35395,7 +35413,7 @@ var init_ChatNotifications = __esm({
|
|
35395
35413
|
const notification = {
|
35396
35414
|
id: (0, import_uuid13.v4)(),
|
35397
35415
|
icon: chatState.enabled ? /* @__PURE__ */ import_react223.default.createElement(import_react_icons106.ChatUnreadIcon, null) : /* @__PURE__ */ import_react223.default.createElement(import_react_icons106.ChatIcon, null),
|
35398
|
-
title:
|
35416
|
+
title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
|
35399
35417
|
};
|
35400
35418
|
ToastManager.addToast(notification);
|
35401
35419
|
}, [chatState, localPeerId]);
|
@@ -35466,13 +35484,13 @@ var init_ToastConfig = __esm({
|
|
35466
35484
|
single: function(notification) {
|
35467
35485
|
var _a7;
|
35468
35486
|
return {
|
35469
|
-
title:
|
35487
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
|
35470
35488
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.PeopleAddIcon, null)
|
35471
35489
|
};
|
35472
35490
|
},
|
35473
35491
|
multiple: function(notifications) {
|
35474
35492
|
return {
|
35475
|
-
title:
|
35493
|
+
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
35476
35494
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.PeopleAddIcon, null)
|
35477
35495
|
};
|
35478
35496
|
}
|
@@ -35481,13 +35499,13 @@ var init_ToastConfig = __esm({
|
|
35481
35499
|
single: function(notification) {
|
35482
35500
|
var _a7;
|
35483
35501
|
return {
|
35484
|
-
title:
|
35502
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
|
35485
35503
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.PeopleRemoveIcon, null)
|
35486
35504
|
};
|
35487
35505
|
},
|
35488
35506
|
multiple: function(notifications) {
|
35489
35507
|
return {
|
35490
|
-
title:
|
35508
|
+
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
35491
35509
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.PeopleRemoveIcon, null)
|
35492
35510
|
};
|
35493
35511
|
}
|
@@ -35496,7 +35514,7 @@ var init_ToastConfig = __esm({
|
|
35496
35514
|
single: (notification) => {
|
35497
35515
|
var _a7;
|
35498
35516
|
return {
|
35499
|
-
title:
|
35517
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
35500
35518
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.HandIcon, null)
|
35501
35519
|
};
|
35502
35520
|
},
|
@@ -35507,7 +35525,7 @@ var init_ToastConfig = __esm({
|
|
35507
35525
|
return (_a8 = notification.data) == null ? void 0 : _a8.id;
|
35508
35526
|
})).size;
|
35509
35527
|
return {
|
35510
|
-
title:
|
35528
|
+
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
35511
35529
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.HandIcon, null)
|
35512
35530
|
};
|
35513
35531
|
}
|
@@ -35516,7 +35534,7 @@ var init_ToastConfig = __esm({
|
|
35516
35534
|
single: (notification) => {
|
35517
35535
|
var _a7, _b7;
|
35518
35536
|
return {
|
35519
|
-
title:
|
35537
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
35520
35538
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.HandIcon, null),
|
35521
35539
|
action: /* @__PURE__ */ import_react224.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
35522
35540
|
};
|
@@ -35528,7 +35546,7 @@ var init_ToastConfig = __esm({
|
|
35528
35546
|
return (_a8 = notification.data) == null ? void 0 : _a8.id;
|
35529
35547
|
})).size;
|
35530
35548
|
return {
|
35531
|
-
title:
|
35549
|
+
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
35532
35550
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.HandIcon, null),
|
35533
35551
|
action: /* @__PURE__ */ import_react224.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
35534
35552
|
};
|
@@ -35538,14 +35556,14 @@ var init_ToastConfig = __esm({
|
|
35538
35556
|
single: (notification) => {
|
35539
35557
|
var _a7;
|
35540
35558
|
return {
|
35541
|
-
title:
|
35559
|
+
title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
|
35542
35560
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.ChatUnreadIcon, null),
|
35543
35561
|
action: /* @__PURE__ */ import_react224.default.createElement(ChatAction, null)
|
35544
35562
|
};
|
35545
35563
|
},
|
35546
35564
|
multiple: (notifications) => {
|
35547
35565
|
return {
|
35548
|
-
title:
|
35566
|
+
title: `${notifications.length} new messages`,
|
35549
35567
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.ChatUnreadIcon, null),
|
35550
35568
|
action: /* @__PURE__ */ import_react224.default.createElement(ChatAction, null)
|
35551
35569
|
};
|
@@ -35554,7 +35572,7 @@ var init_ToastConfig = __esm({
|
|
35554
35572
|
RECONNECTED: {
|
35555
35573
|
single: (online) => {
|
35556
35574
|
return {
|
35557
|
-
title:
|
35575
|
+
title: `You are now ${online ? "online" : "connected"}`,
|
35558
35576
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.ConnectivityIcon, null),
|
35559
35577
|
variant: "success",
|
35560
35578
|
duration: 3e3
|
@@ -35564,7 +35582,9 @@ var init_ToastConfig = __esm({
|
|
35564
35582
|
RECONNECTING: {
|
35565
35583
|
single: (message) => {
|
35566
35584
|
return {
|
35567
|
-
title:
|
35585
|
+
title: `You are offline for now. while we try to reconnect, please check
|
35586
|
+
your internet connection. ${message}.
|
35587
|
+
`,
|
35568
35588
|
icon: /* @__PURE__ */ import_react224.default.createElement(import_react_icons107.PoorConnectivityIcon, null),
|
35569
35589
|
variant: "warning",
|
35570
35590
|
duration: 3e4
|
@@ -35696,7 +35716,7 @@ var init_HandRaisedNotifications = __esm({
|
|
35696
35716
|
const peer = vanillaStore.getState((0, import_react_sdk113.selectPeerByID)(notification.data.id));
|
35697
35717
|
const handRaisedPeers = vanillaStore.getState(import_react_sdk113.selectHandRaisedPeers);
|
35698
35718
|
if (amIScreenSharing && hasPeerHandRaised) {
|
35699
|
-
const title =
|
35719
|
+
const title = `${peer == null ? void 0 : peer.name} ${handRaisedPeers.length > 1 ? `and ${handRaisedPeers.length - 1} others` : ""} raised hand`;
|
35700
35720
|
showNotification(title, { icon: logoURL });
|
35701
35721
|
}
|
35702
35722
|
},
|
@@ -35768,7 +35788,7 @@ var init_PeerNotifications = __esm({
|
|
35768
35788
|
if (!(notification == null ? void 0 : notification.data)) {
|
35769
35789
|
return;
|
35770
35790
|
}
|
35771
|
-
console.debug(
|
35791
|
+
console.debug(`[${notification.type}]`, notification);
|
35772
35792
|
switch (notification.type) {
|
35773
35793
|
case import_react_sdk115.HMSNotificationTypes.PEER_JOINED:
|
35774
35794
|
if (!isPeerJoinSubscribed) {
|
@@ -35877,7 +35897,7 @@ var init_PermissionErrorModal = __esm({
|
|
35877
35897
|
) : null,
|
35878
35898
|
/* @__PURE__ */ import_react228.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
35879
35899
|
),
|
35880
|
-
/* @__PURE__ */ import_react228.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ?
|
35900
|
+
/* @__PURE__ */ import_react228.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
|
35881
35901
|
isMobile && isIOS ? /* @__PURE__ */ import_react228.default.createElement(import_react228.default.Fragment, null, /* @__PURE__ */ import_react228.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react228.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
35882
35902
|
isMobile && isAndroid ? /* @__PURE__ */ import_react228.default.createElement(import_react228.default.Fragment, null, /* @__PURE__ */ import_react228.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react228.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
35883
35903
|
!isMobile ? /* @__PURE__ */ import_react228.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react228.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
@@ -35970,7 +35990,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
35970
35990
|
RequestDialog,
|
35971
35991
|
{
|
35972
35992
|
title: "Unmute request",
|
35973
|
-
body:
|
35993
|
+
body: `${peer == null ? void 0 : peer.name} is requesting you to unmute your ${Array.from(types).join(",")}`,
|
35974
35994
|
onOpenChange: (value) => !value && setMuteNotification(null),
|
35975
35995
|
onAction: () => {
|
35976
35996
|
tracks.forEach((track) => {
|
@@ -36003,7 +36023,7 @@ var init_TrackNotifications = __esm({
|
|
36003
36023
|
const notification = (0, import_react_sdk119.useHMSNotifications)(notificationTypes3);
|
36004
36024
|
(0, import_react231.useEffect)(() => {
|
36005
36025
|
if (notification) {
|
36006
|
-
console.debug(
|
36026
|
+
console.debug(`[${notification.type}]`, notification);
|
36007
36027
|
}
|
36008
36028
|
}, [notification]);
|
36009
36029
|
return null;
|
@@ -36051,9 +36071,9 @@ var init_TrackUnmuteModal = __esm({
|
|
36051
36071
|
return /* @__PURE__ */ import_react232.default.createElement(
|
36052
36072
|
RequestDialog,
|
36053
36073
|
{
|
36054
|
-
title:
|
36074
|
+
title: `Unmute your ${track.type}?`,
|
36055
36075
|
onOpenChange: (value) => !value && setMuteNotification(null),
|
36056
|
-
body:
|
36076
|
+
body: `${peer == null ? void 0 : peer.name}is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
|
36057
36077
|
onAction: () => {
|
36058
36078
|
hmsActions.setEnabledTrack(track.id, enabled);
|
36059
36079
|
setMuteNotification(null);
|
@@ -36085,7 +36105,7 @@ var init_TranscriptionNotifications = __esm({
|
|
36085
36105
|
if (!(notification == null ? void 0 : notification.data)) {
|
36086
36106
|
return;
|
36087
36107
|
}
|
36088
|
-
console.debug(
|
36108
|
+
console.debug(`[${notification.type}]`, notification);
|
36089
36109
|
const transcriptionStates = notification.data;
|
36090
36110
|
if (transcriptionStates.length > 0) {
|
36091
36111
|
let id = "";
|
@@ -36093,21 +36113,21 @@ var init_TranscriptionNotifications = __esm({
|
|
36093
36113
|
({ error }) => !!error,
|
36094
36114
|
() => {
|
36095
36115
|
id = ToastManager.replaceToast(toastId, {
|
36096
|
-
title:
|
36116
|
+
title: `Failed to enable Closed Caption`,
|
36097
36117
|
variant: "error",
|
36098
36118
|
icon: /* @__PURE__ */ import_react233.default.createElement(import_react_icons110.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
36099
36119
|
});
|
36100
36120
|
}
|
36101
36121
|
).with({ state: import_react_sdk121.HMSTranscriptionState.STARTED }, () => {
|
36102
36122
|
id = ToastManager.replaceToast(toastId, {
|
36103
|
-
title:
|
36123
|
+
title: `Closed Captioning enabled for everyone`,
|
36104
36124
|
variant: "standard",
|
36105
36125
|
duration: 2e3,
|
36106
36126
|
icon: /* @__PURE__ */ import_react233.default.createElement(import_react_icons110.ClosedCaptionIcon, { style: { marginRight: "0.5rem" } })
|
36107
36127
|
});
|
36108
36128
|
}).with({ state: import_react_sdk121.HMSTranscriptionState.STOPPED }, () => {
|
36109
36129
|
id = ToastManager.replaceToast(toastId, {
|
36110
|
-
title:
|
36130
|
+
title: `Closed Captioning disabled for everyone`,
|
36111
36131
|
variant: "standard",
|
36112
36132
|
duration: 2e3,
|
36113
36133
|
icon: /* @__PURE__ */ import_react233.default.createElement(import_react_icons110.OpenCaptionIcon, { style: { marginRight: "0.5rem" } })
|
@@ -36139,7 +36159,7 @@ function Notifications() {
|
|
36139
36159
|
const { pipWindow } = usePIPWindow();
|
36140
36160
|
const handleRoleChangeDenied = (0, import_react234.useCallback)((request) => {
|
36141
36161
|
ToastManager.addToast({
|
36142
|
-
title:
|
36162
|
+
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
36143
36163
|
variant: "error"
|
36144
36164
|
});
|
36145
36165
|
}, []);
|
@@ -36157,7 +36177,7 @@ function Notifications() {
|
|
36157
36177
|
if (((_a8 = notification.data) == null ? void 0 : _a8.isTerminal) && ((_b8 = notification.data) == null ? void 0 : _b8.action) !== "INIT") {
|
36158
36178
|
if ([500, 6008].includes((_c = notification.data) == null ? void 0 : _c.code)) {
|
36159
36179
|
ToastManager.addToast({
|
36160
|
-
title:
|
36180
|
+
title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
|
36161
36181
|
});
|
36162
36182
|
} else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
|
36163
36183
|
ToastManager.addToast({
|
@@ -36182,13 +36202,13 @@ function Notifications() {
|
|
36182
36202
|
if (!subscribedNotifications.ERROR)
|
36183
36203
|
return;
|
36184
36204
|
ToastManager.addToast({
|
36185
|
-
title:
|
36205
|
+
title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
|
36186
36206
|
});
|
36187
36207
|
break;
|
36188
36208
|
case import_react_sdk122.HMSNotificationTypes.ROLE_UPDATED: {
|
36189
36209
|
if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
36190
36210
|
ToastManager.addToast({
|
36191
|
-
title:
|
36211
|
+
title: `You are now a ${notification.data.roleName}`
|
36192
36212
|
});
|
36193
36213
|
updateRoomLayoutForRole == null ? void 0 : updateRoomLayoutForRole(notification.data.roleName);
|
36194
36214
|
}
|
@@ -36198,14 +36218,16 @@ function Notifications() {
|
|
36198
36218
|
const track = (_o2 = notification.data) == null ? void 0 : _o2.track;
|
36199
36219
|
if (!notification.data.enabled) {
|
36200
36220
|
ToastManager.addToast({
|
36201
|
-
title:
|
36221
|
+
title: `Your ${track.source} ${track.type} was muted by
|
36222
|
+
${(_p = notification.data.requestedBy) == null ? void 0 : _p.name}.`
|
36202
36223
|
});
|
36203
36224
|
}
|
36204
36225
|
break;
|
36205
36226
|
case import_react_sdk122.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
36206
36227
|
case import_react_sdk122.HMSNotificationTypes.ROOM_ENDED:
|
36207
36228
|
ToastManager.addToast({
|
36208
|
-
title:
|
36229
|
+
title: `${notification.message}.
|
36230
|
+
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
36209
36231
|
});
|
36210
36232
|
break;
|
36211
36233
|
case import_react_sdk122.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
|
@@ -36217,7 +36239,7 @@ function Notifications() {
|
|
36217
36239
|
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
36218
36240
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk122.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
36219
36241
|
const pollToastID = ToastManager.addToast({
|
36220
|
-
title:
|
36242
|
+
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
36221
36243
|
action: /* @__PURE__ */ import_react234.default.createElement(
|
36222
36244
|
Button,
|
36223
36245
|
{
|
@@ -36246,7 +36268,7 @@ function Notifications() {
|
|
36246
36268
|
break;
|
36247
36269
|
case import_react_sdk122.HMSNotificationTypes.NEW_MESSAGE:
|
36248
36270
|
if (amIScreenSharing && !((_q = notification.data) == null ? void 0 : _q.ignored) && !pipWindow) {
|
36249
|
-
showNotification(
|
36271
|
+
showNotification(`New message from ${notification.data.senderName}`, {
|
36250
36272
|
body: notification.data.message,
|
36251
36273
|
icon: logoURL
|
36252
36274
|
});
|
@@ -36532,7 +36554,7 @@ function FlyingEmoji() {
|
|
36532
36554
|
id,
|
36533
36555
|
emojiId,
|
36534
36556
|
senderName: nameToShow,
|
36535
|
-
startingPoint:
|
36557
|
+
startingPoint: `${startingPoint}%`,
|
36536
36558
|
wiggleType: Math.random() < 0.5 ? 0 : 1
|
36537
36559
|
}
|
36538
36560
|
];
|
@@ -36573,7 +36595,7 @@ function FlyingEmoji() {
|
|
36573
36595
|
alignItems: "center",
|
36574
36596
|
position: "absolute",
|
36575
36597
|
bottom: 0,
|
36576
|
-
animation:
|
36598
|
+
animation: `${flyAndFade()} 5s forwards, ${emoji.wiggleType === 0 ? wiggleLeftRight() : wiggleRightLeft()} 1s ease-in-out infinite alternate`
|
36577
36599
|
},
|
36578
36600
|
onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
|
36579
36601
|
},
|
@@ -36831,7 +36853,11 @@ var init_App = __esm({
|
|
36831
36853
|
screens
|
36832
36854
|
};
|
36833
36855
|
if (!roomCode && !authToken) {
|
36834
|
-
console.error(
|
36856
|
+
console.error(`
|
36857
|
+
HMSPrebuilt can be initialised by providing:
|
36858
|
+
either "roomCode" or "authToken".
|
36859
|
+
Please check if you are providing the above values for initialising prebuilt.
|
36860
|
+
`);
|
36835
36861
|
throw Error("Incorrect initializing params for HMSPrebuilt component");
|
36836
36862
|
}
|
36837
36863
|
if (!hydrated) {
|
@@ -36873,12 +36899,12 @@ var init_App = __esm({
|
|
36873
36899
|
const { typography: typography2 } = layout || {};
|
36874
36900
|
let fontFamily = ["sans-serif"];
|
36875
36901
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
36876
|
-
fontFamily = [
|
36902
|
+
fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
|
36877
36903
|
}
|
36878
36904
|
return /* @__PURE__ */ import_react244.default.createElement(
|
36879
36905
|
HMSThemeProvider,
|
36880
36906
|
{
|
36881
|
-
themeType:
|
36907
|
+
themeType: `${theme2.name}-${Date.now()}`,
|
36882
36908
|
theme: {
|
36883
36909
|
//@ts-ignore: Prebuilt theme to match stiches theme
|
36884
36910
|
colors: theme2.palette,
|
@@ -38193,7 +38219,7 @@ var init_AudioTest = __esm({
|
|
38193
38219
|
Progress.Content,
|
38194
38220
|
{
|
38195
38221
|
style: {
|
38196
|
-
transform:
|
38222
|
+
transform: `translateX(-${100 - audioLevel}%)`,
|
38197
38223
|
transition: "transform 0.3s"
|
38198
38224
|
}
|
38199
38225
|
}
|
@@ -38269,79 +38295,79 @@ var init_BrowserTest = __esm({
|
|
38269
38295
|
tizen: {
|
38270
38296
|
key: "tizen",
|
38271
38297
|
val: "Tizen",
|
38272
|
-
icon:
|
38298
|
+
icon: `${CMS_MEDIA_SERVER}cms/Tizen_b99350214e/Tizen_b99350214e.svg`
|
38273
38299
|
},
|
38274
38300
|
"mac os": {
|
38275
38301
|
key: "macos",
|
38276
38302
|
val: "Mac OS",
|
38277
|
-
icon:
|
38303
|
+
icon: `${CMS_MEDIA_SERVER}cms/mac_OS_804456afd8/mac_OS_804456afd8.png`
|
38278
38304
|
},
|
38279
38305
|
windows: {
|
38280
38306
|
key: "windows",
|
38281
38307
|
val: "Windows",
|
38282
|
-
icon:
|
38308
|
+
icon: `${CMS_MEDIA_SERVER}cms/Windows_fdfe6749b6/Windows_fdfe6749b6.svg`
|
38283
38309
|
},
|
38284
38310
|
linux: {
|
38285
38311
|
key: "linux",
|
38286
38312
|
val: "Linux",
|
38287
|
-
icon:
|
38313
|
+
icon: `${CMS_MEDIA_SERVER}cms/Linux_31f8353a2e/Linux_31f8353a2e.svg`
|
38288
38314
|
},
|
38289
38315
|
chromium: {
|
38290
38316
|
key: "chromium",
|
38291
38317
|
val: "Chromium",
|
38292
|
-
icon:
|
38318
|
+
icon: `${CMS_MEDIA_SERVER}cms/Chromium_3df17710bd/Chromium_3df17710bd.svg`
|
38293
38319
|
},
|
38294
38320
|
ubuntu: {
|
38295
38321
|
key: "ubuntu",
|
38296
38322
|
val: "Ubuntu",
|
38297
|
-
icon:
|
38323
|
+
icon: `${CMS_MEDIA_SERVER}cms/Ubuntu_966dd923c5/Ubuntu_966dd923c5.svg`
|
38298
38324
|
},
|
38299
38325
|
ios: {
|
38300
38326
|
key: "ios",
|
38301
38327
|
val: "iOS",
|
38302
|
-
icon:
|
38328
|
+
icon: `${CMS_MEDIA_SERVER}cms/i_OS_3cdc9d9b71/i_OS_3cdc9d9b71.svg`
|
38303
38329
|
},
|
38304
38330
|
android: {
|
38305
38331
|
key: "android",
|
38306
38332
|
val: "Android",
|
38307
|
-
icon:
|
38333
|
+
icon: `${CMS_MEDIA_SERVER}cms/Android_49dcfdc934/Android_49dcfdc934.svg`
|
38308
38334
|
}
|
38309
38335
|
};
|
38310
38336
|
browserTypeIconInfo = {
|
38311
38337
|
brave: {
|
38312
38338
|
key: "brave",
|
38313
38339
|
val: "Brave",
|
38314
|
-
icon:
|
38340
|
+
icon: `${CMS_MEDIA_SERVER}cms/Brave_7e66131f09/Brave_7e66131f09.svg`
|
38315
38341
|
},
|
38316
38342
|
chrome: {
|
38317
38343
|
key: "chrome",
|
38318
38344
|
val: "Chrome",
|
38319
|
-
icon:
|
38345
|
+
icon: `${CMS_MEDIA_SERVER}cms/Chrome_7bf77fbdd7/Chrome_7bf77fbdd7.svg`
|
38320
38346
|
},
|
38321
38347
|
firefox: {
|
38322
38348
|
key: "firefox",
|
38323
38349
|
val: "Firefox",
|
38324
|
-
icon:
|
38350
|
+
icon: `${CMS_MEDIA_SERVER}cms/Firefox_30f3976fb8/Firefox_30f3976fb8.svg`
|
38325
38351
|
},
|
38326
38352
|
safari: {
|
38327
38353
|
key: "safari",
|
38328
38354
|
val: "Safari",
|
38329
|
-
icon:
|
38355
|
+
icon: `${CMS_MEDIA_SERVER}cms/Safari_254e74ed94/Safari_254e74ed94.svg`
|
38330
38356
|
},
|
38331
38357
|
"mobile safari": {
|
38332
38358
|
key: "safari",
|
38333
38359
|
val: "Safari",
|
38334
|
-
icon:
|
38360
|
+
icon: `${CMS_MEDIA_SERVER}cms/Safari_254e74ed94/Safari_254e74ed94.svg`
|
38335
38361
|
},
|
38336
38362
|
edge: {
|
38337
38363
|
key: "edge",
|
38338
38364
|
val: "Edge",
|
38339
|
-
icon:
|
38365
|
+
icon: `${CMS_MEDIA_SERVER}cms/Edge_23add4a83f/Edge_23add4a83f.svg`
|
38340
38366
|
},
|
38341
38367
|
opera: {
|
38342
38368
|
key: "opera",
|
38343
38369
|
val: "Opera",
|
38344
|
-
icon:
|
38370
|
+
icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
|
38345
38371
|
}
|
38346
38372
|
};
|
38347
38373
|
CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ import_react249.default.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ import_react249.default.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ import_react249.default.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ import_react249.default.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ import_react249.default.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ import_react249.default.createElement(Text, null, value)));
|
@@ -38362,14 +38388,14 @@ var init_BrowserTest = __esm({
|
|
38362
38388
|
{
|
38363
38389
|
title: "Browser",
|
38364
38390
|
iconURL: import_react_sdk130.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = import_react_sdk130.parsedUserAgent.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
|
38365
|
-
value:
|
38391
|
+
value: `${import_react_sdk130.parsedUserAgent.getBrowser().name} ${import_react_sdk130.parsedUserAgent.getBrowser().version}`
|
38366
38392
|
}
|
38367
38393
|
), /* @__PURE__ */ import_react249.default.createElement(
|
38368
38394
|
CheckDetails,
|
38369
38395
|
{
|
38370
38396
|
title: "Operating system",
|
38371
38397
|
iconURL: import_react_sdk130.parsedUserAgent.getOS().name && ((_d = operatingSystemIconInfo[(_c = import_react_sdk130.parsedUserAgent.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
|
38372
|
-
value:
|
38398
|
+
value: `${import_react_sdk130.parsedUserAgent.getOS().name} ${import_react_sdk130.parsedUserAgent.getOS().version}`
|
38373
38399
|
}
|
38374
38400
|
)), /* @__PURE__ */ import_react249.default.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
|
38375
38401
|
};
|
@@ -38470,7 +38496,7 @@ var init_ConnectivityTest = __esm({
|
|
38470
38496
|
DetailedInfo,
|
38471
38497
|
{
|
38472
38498
|
title: "Connection Quality Score (CQS)",
|
38473
|
-
value:
|
38499
|
+
value: `${result.connectionQualityScore.toFixed(2)} (out of 5)`
|
38474
38500
|
}
|
38475
38501
|
) : null)
|
38476
38502
|
);
|
@@ -38486,10 +38512,10 @@ var init_ConnectivityTest = __esm({
|
|
38486
38512
|
), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: import_react_icons114.LinkIcon })));
|
38487
38513
|
};
|
38488
38514
|
AudioStats = ({ stats }) => {
|
38489
|
-
return /* @__PURE__ */ import_react250.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react250.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Round Trip Time", value:
|
38515
|
+
return /* @__PURE__ */ import_react250.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react250.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
38490
38516
|
};
|
38491
38517
|
VideoStats = ({ stats }) => {
|
38492
|
-
return /* @__PURE__ */ import_react250.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react250.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Round Trip Time", value:
|
38518
|
+
return /* @__PURE__ */ import_react250.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react250.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react250.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
38493
38519
|
};
|
38494
38520
|
Footer3 = ({
|
38495
38521
|
error,
|
@@ -38519,7 +38545,7 @@ var init_ConnectivityTest = __esm({
|
|
38519
38545
|
variant: "body2",
|
38520
38546
|
css: { c: "$on_primary_medium", mt: "$4" }
|
38521
38547
|
},
|
38522
|
-
|
38548
|
+
`${ConnectivityStateMessage[progress]}...`
|
38523
38549
|
));
|
38524
38550
|
}
|
38525
38551
|
return null;
|
@@ -38605,7 +38631,7 @@ var init_ConnectivityTest = __esm({
|
|
38605
38631
|
type: "application/json"
|
38606
38632
|
});
|
38607
38633
|
a2.href = URL.createObjectURL(file);
|
38608
|
-
a2.download =
|
38634
|
+
a2.download = `${fileName}.json`;
|
38609
38635
|
a2.click();
|
38610
38636
|
};
|
38611
38637
|
}
|