@100mslive/roomkit-react 0.3.19-alpha.13 → 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-2P3T74U7.css → HLSView-C2XG43BN.css} +19 -67
- package/dist/{HLSView-2P3T74U7.css.map → HLSView-C2XG43BN.css.map} +2 -2
- package/dist/{HLSView-4XDMVIWT.js → HLSView-XY7JC5H7.js} +43 -43
- package/dist/{HLSView-4XDMVIWT.js.map → HLSView-XY7JC5H7.js.map} +1 -1
- package/dist/{chunk-7Y75TGU3.js → chunk-5XRSIFEH.js} +289 -270
- package/dist/chunk-5XRSIFEH.js.map +7 -0
- package/dist/index.cjs.css +18 -66
- package/dist/index.cjs.css.map +2 -2
- package/dist/index.cjs.js +331 -305
- 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/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +2 -2
- package/dist/chunk-7Y75TGU3.js.map +0 -7
@@ -22,13 +22,6 @@ var __spreadValues = (a2, b2) => {
|
|
22
22
|
return a2;
|
23
23
|
};
|
24
24
|
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
25
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
26
|
-
get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2]
|
27
|
-
}) : x)(function(x) {
|
28
|
-
if (typeof require !== "undefined")
|
29
|
-
return require.apply(this, arguments);
|
30
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
31
|
-
});
|
32
25
|
var __objRest = (source, exclude) => {
|
33
26
|
var target = {};
|
34
27
|
for (var prop in source)
|
@@ -44,7 +37,7 @@ var __objRest = (source, exclude) => {
|
|
44
37
|
var __esm = (fn2, res) => function __init() {
|
45
38
|
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
46
39
|
};
|
47
|
-
var __commonJS = (cb, mod) => function
|
40
|
+
var __commonJS = (cb, mod) => function __require() {
|
48
41
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
49
42
|
};
|
50
43
|
var __export = (target, all) => {
|
@@ -114,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
114
107
|
var define_process_env_default;
|
115
108
|
var init_define_process_env = __esm({
|
116
109
|
"<define:process.env>"() {
|
117
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c692e357-a2ee-4fa9-89fe-75c12dbd35d1", 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.13", 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.13", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c692e357-a2ee-4fa9-89fe-75c12dbd35d1", 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.13", 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: "597", 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:19779", 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.13", 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: "10699906014", 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: "b1b838678870a5de5aec4c96716a3198564cab4c", 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: "f7f6df55ed4fa4f258718fb6b77a2cf85125ebdb4ba50944f3f2deceda56a33a", 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--1725445952969-0.6835811413148949:/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--1725445952735-0.32669633687202193:/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--1725445927181-0.17542358054021268:/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--1725445927002-0.31932040796688477:/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_03e2b894-e0b3-40d6-8a1f-80340722ed32", INVOCATION_ID: "225c170387b641aa8d35c089260195ec", 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: "656", 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 51", 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.13", 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.13", 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: "b1b838678870a5de5aec4c96716a3198564cab4c", 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_c692e357-a2ee-4fa9-89fe-75c12dbd35d1", 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_c692e357-a2ee-4fa9-89fe-75c12dbd35d1", 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_c692e357-a2ee-4fa9-89fe-75c12dbd35d1" };
|
110
|
+
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" };
|
118
111
|
}
|
119
112
|
});
|
120
113
|
|
@@ -10209,7 +10202,7 @@ var {
|
|
10209
10202
|
config
|
10210
10203
|
} = HmsStitches;
|
10211
10204
|
var globalStyles = globalCss({
|
10212
|
-
[
|
10205
|
+
[`${DEFAULT_PORTAL_CONTAINER} *`]: {
|
10213
10206
|
fontFamily: "$sans",
|
10214
10207
|
boxSizing: "border-box"
|
10215
10208
|
},
|
@@ -10248,7 +10241,7 @@ var createTheme = ({
|
|
10248
10241
|
throw new Error("Theme type is required");
|
10249
10242
|
}
|
10250
10243
|
const mergedTheme = merge(baseConfig.theme, theme2 || {});
|
10251
|
-
return createThemeBase(className ||
|
10244
|
+
return createThemeBase(className || `${themeType}-theme`, mergedTheme);
|
10252
10245
|
};
|
10253
10246
|
|
10254
10247
|
// src/Theme/ThemeProvider.tsx
|
@@ -10340,7 +10333,7 @@ var gapStyles = (value) => {
|
|
10340
10333
|
return {
|
10341
10334
|
"& > * + *": {
|
10342
10335
|
marginRight: "0",
|
10343
|
-
marginLeft:
|
10336
|
+
marginLeft: `${0.25 * value}rem`
|
10344
10337
|
}
|
10345
10338
|
};
|
10346
10339
|
};
|
@@ -10452,48 +10445,48 @@ var textEllipsis = (width) => ({
|
|
10452
10445
|
var getOutlinedVariants = (base, hover, active, disabled, text, textDisabled) => {
|
10453
10446
|
return {
|
10454
10447
|
bg: "transparent",
|
10455
|
-
border:
|
10448
|
+
border: `solid $space$px $colors${base}`,
|
10456
10449
|
c: text,
|
10457
10450
|
"&[disabled]": {
|
10458
10451
|
c: textDisabled,
|
10459
10452
|
bg: "transparent",
|
10460
|
-
border:
|
10453
|
+
border: `solid $space$px $colors${disabled}`,
|
10461
10454
|
cursor: "not-allowed"
|
10462
10455
|
},
|
10463
10456
|
"&:not([disabled]):hover": {
|
10464
|
-
border:
|
10457
|
+
border: `solid $space$px $colors${hover}`,
|
10465
10458
|
bg: "transparent"
|
10466
10459
|
},
|
10467
10460
|
"&:not([disabled]):active": {
|
10468
|
-
border:
|
10461
|
+
border: `solid $space$px $colors${active}`,
|
10469
10462
|
bg: "transparent"
|
10470
10463
|
},
|
10471
10464
|
"&:not([disabled]):focus-visible": {
|
10472
|
-
boxShadow:
|
10465
|
+
boxShadow: `0 0 0 3px $colors${base}`
|
10473
10466
|
}
|
10474
10467
|
};
|
10475
10468
|
};
|
10476
10469
|
var getButtonVariants = (base, hover, active, disabled, text, textDisabled) => {
|
10477
10470
|
return {
|
10478
10471
|
bg: base,
|
10479
|
-
border:
|
10472
|
+
border: `1px solid ${base}`,
|
10480
10473
|
c: text,
|
10481
10474
|
"&[disabled]": {
|
10482
10475
|
c: textDisabled,
|
10483
10476
|
cursor: "not-allowed",
|
10484
10477
|
bg: disabled,
|
10485
|
-
border:
|
10478
|
+
border: `1px solid ${disabled}`
|
10486
10479
|
},
|
10487
10480
|
"&:not([disabled]):hover": {
|
10488
10481
|
bg: hover,
|
10489
|
-
border:
|
10482
|
+
border: `1px solid ${hover}`
|
10490
10483
|
},
|
10491
10484
|
"&:not([disabled]):active": {
|
10492
10485
|
bg: active,
|
10493
|
-
border:
|
10486
|
+
border: `1px solid ${active}`
|
10494
10487
|
},
|
10495
10488
|
"&:not([disabled]):focus-visible": {
|
10496
|
-
boxShadow:
|
10489
|
+
boxShadow: `0 0 0 3px ${base}`
|
10497
10490
|
}
|
10498
10491
|
};
|
10499
10492
|
};
|
@@ -11010,15 +11003,15 @@ import * as BaseTooltip from "@radix-ui/react-tooltip";
|
|
11010
11003
|
init_define_process_env();
|
11011
11004
|
var slideDown = (controller) => keyframes({
|
11012
11005
|
from: { height: 0 },
|
11013
|
-
to: { height:
|
11006
|
+
to: { height: `var(${controller})` }
|
11014
11007
|
});
|
11015
11008
|
var slideUp = (controller) => keyframes({
|
11016
|
-
from: { height:
|
11009
|
+
from: { height: `var(${controller})` },
|
11017
11010
|
to: { height: 0 }
|
11018
11011
|
});
|
11019
11012
|
var translateAcross = ({ xFrom = "0", yFrom = "0", zFrom = "0", xTo = "0", yTo = "0", zTo = "0" }) => keyframes({
|
11020
|
-
from: { transform:
|
11021
|
-
to: { transform:
|
11013
|
+
from: { transform: `translate3d(${xFrom}, ${yFrom}, ${zFrom})` },
|
11014
|
+
to: { transform: `translate3d(${xTo}, ${yTo}, ${zTo}` }
|
11022
11015
|
});
|
11023
11016
|
var dialogOpen = keyframes({
|
11024
11017
|
"0%": { opacity: 0, transform: "translate(-50%, -48%) scale(.90)" },
|
@@ -11029,11 +11022,11 @@ var dialogClose = keyframes({
|
|
11029
11022
|
"100%": { opacity: 0, transform: "translate(-50%, -48%) scale(.90)" }
|
11030
11023
|
});
|
11031
11024
|
var slideUpAndFade = (start = "2px") => keyframes({
|
11032
|
-
"0%": { opacity: 0, transform:
|
11025
|
+
"0%": { opacity: 0, transform: `translateY(${start})` },
|
11033
11026
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
11034
11027
|
});
|
11035
11028
|
var slideRightAndFade = (start = "-2px") => keyframes({
|
11036
|
-
"0%": { opacity: 0, transform:
|
11029
|
+
"0%": { opacity: 0, transform: `translateX(${start})` },
|
11037
11030
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
11038
11031
|
});
|
11039
11032
|
var sheetSlideIn = keyframes({
|
@@ -11053,16 +11046,16 @@ var sheetFadeOut = keyframes({
|
|
11053
11046
|
to: { opacity: "0" }
|
11054
11047
|
});
|
11055
11048
|
var slideDownAndFade = (start = "-2px") => keyframes({
|
11056
|
-
"0%": { opacity: 0, transform:
|
11049
|
+
"0%": { opacity: 0, transform: `translateY(${start})` },
|
11057
11050
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
11058
11051
|
});
|
11059
11052
|
var slideLeftAndFade = (start = "2px") => keyframes({
|
11060
|
-
"0%": { opacity: 0, transform:
|
11053
|
+
"0%": { opacity: 0, transform: `translateX(${start})` },
|
11061
11054
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
11062
11055
|
});
|
11063
11056
|
var slideLeftAndFadeOut = (end = "-100%") => keyframes({
|
11064
|
-
"0%": { opacity: 1, transform:
|
11065
|
-
"100%": { opacity: 0, transform:
|
11057
|
+
"0%": { opacity: 1, transform: `translateX(0)` },
|
11058
|
+
"100%": { opacity: 0, transform: `translateX(${end})` }
|
11066
11059
|
});
|
11067
11060
|
var popoverAnimation = {
|
11068
11061
|
"@media (prefers-reduced-motion: no-preference)": {
|
@@ -11094,7 +11087,7 @@ var toastAnimation = {
|
|
11094
11087
|
transition: "transform 200ms ease-out"
|
11095
11088
|
},
|
11096
11089
|
'&[data-swipe="end"]': {
|
11097
|
-
animation:
|
11090
|
+
animation: `${slideLeftAndFadeOut()} 100ms ease-out forwards`
|
11098
11091
|
}
|
11099
11092
|
}
|
11100
11093
|
};
|
@@ -11247,7 +11240,7 @@ var Thumb3 = styled(BaseSlider.Thumb, {
|
|
11247
11240
|
height: "$8",
|
11248
11241
|
backgroundColor: "$primary_default",
|
11249
11242
|
cursor: "pointer",
|
11250
|
-
boxShadow:
|
11243
|
+
boxShadow: `0 2px 10px $colors$surface_default`,
|
11251
11244
|
borderRadius: 10,
|
11252
11245
|
"&:hover": { backgroundColor: "$primary_default" },
|
11253
11246
|
"&:focus": { boxShadow: "none" }
|
@@ -11311,10 +11304,10 @@ var CustomDialogContent = styled(DialogPrimitive.Content, {
|
|
11311
11304
|
padding: "$12",
|
11312
11305
|
"@allowMotion": {
|
11313
11306
|
'&[data-state="open"]': {
|
11314
|
-
animation:
|
11307
|
+
animation: `${dialogOpen} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
|
11315
11308
|
},
|
11316
11309
|
'&[data-state="closed"]': {
|
11317
|
-
animation:
|
11310
|
+
animation: `${dialogClose} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
|
11318
11311
|
}
|
11319
11312
|
},
|
11320
11313
|
"&:focus": { outline: "none" }
|
@@ -12004,7 +11997,7 @@ function useBorderAudioLevel(audioTrackId) {
|
|
12004
11997
|
const style = {
|
12005
11998
|
transition: "outline 0.4s ease-in-out"
|
12006
11999
|
};
|
12007
|
-
style["outline"] = level ?
|
12000
|
+
style["outline"] = level ? `${sigmoid(level) * 4}px solid ${color}` : "0px solid transparent";
|
12008
12001
|
return style;
|
12009
12002
|
},
|
12010
12003
|
[color]
|
@@ -12058,7 +12051,7 @@ var AudioBar = () => {
|
|
12058
12051
|
css: {
|
12059
12052
|
width: ".25em",
|
12060
12053
|
height: "1em",
|
12061
|
-
maskImage:
|
12054
|
+
maskImage: `url(${audio_level_default})`,
|
12062
12055
|
"-webkit-mask-repeat": "no-repeat",
|
12063
12056
|
backgroundColor: "$on_primary_high",
|
12064
12057
|
maskSize: "4em 1em"
|
@@ -12074,10 +12067,10 @@ var AudioLevel = ({ trackId, size }) => {
|
|
12074
12067
|
if (ref.current) {
|
12075
12068
|
let index = 0;
|
12076
12069
|
for (const child of ref.current.children) {
|
12077
|
-
const positionX =
|
12070
|
+
const positionX = `-${positionValues[audioLevel] * (index === 1 ? 2.5 : 1.25)}em`;
|
12078
12071
|
child.style["-webkit-mask-position-x"] = positionX;
|
12079
|
-
child.style["mask-position"] =
|
12080
|
-
child.style["animation"] = positionValues[audioLevel] > 0 ?
|
12072
|
+
child.style["mask-position"] = `${positionX} 0`;
|
12073
|
+
child.style["animation"] = positionValues[audioLevel] > 0 ? `${barAnimation} 0.6s steps(3,jump-none) 0s infinite` : "none";
|
12081
12074
|
index++;
|
12082
12075
|
}
|
12083
12076
|
}
|
@@ -12145,7 +12138,7 @@ import {
|
|
12145
12138
|
init_define_process_env();
|
12146
12139
|
var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
12147
12140
|
if (bytes === 0) {
|
12148
|
-
return
|
12141
|
+
return `0 ${unit}`;
|
12149
12142
|
}
|
12150
12143
|
if (!bytes) {
|
12151
12144
|
return "-";
|
@@ -12155,7 +12148,7 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
12155
12148
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
12156
12149
|
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
12157
12150
|
i === 0 && i++;
|
12158
|
-
return
|
12151
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
12159
12152
|
};
|
12160
12153
|
|
12161
12154
|
// src/Stats/StyledStats.tsx
|
@@ -12266,7 +12259,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
12266
12259
|
return null;
|
12267
12260
|
}
|
12268
12261
|
const layer = stat.rid ? simulcastMapping[stat.rid] : "";
|
12269
|
-
return /* @__PURE__ */ React15.createElement(Fragment, { key:
|
12262
|
+
return /* @__PURE__ */ React15.createElement(Fragment, { key: `${stat.id}${stat.rid}` }, layer && /* @__PURE__ */ React15.createElement(StatsRow, { label: layer.toUpperCase(), value: "" }), /* @__PURE__ */ React15.createElement(
|
12270
12263
|
StatsRow,
|
12271
12264
|
{
|
12272
12265
|
show: isNotNullishAndNot0(stat.frameWidth),
|
@@ -12285,7 +12278,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
12285
12278
|
{
|
12286
12279
|
show: isNotNullishAndNot0(stat.framesPerSecond),
|
12287
12280
|
label: "FPS",
|
12288
|
-
value:
|
12281
|
+
value: `${stat.framesPerSecond} ${isNotNullishAndNot0(stat.framesDropped) ? `(${stat.framesDropped} dropped)` : ""}`
|
12289
12282
|
}
|
12290
12283
|
), /* @__PURE__ */ React15.createElement(
|
12291
12284
|
StatsRow,
|
@@ -12314,7 +12307,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
12314
12307
|
{
|
12315
12308
|
show: isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.framesPerSecond),
|
12316
12309
|
label: "FPS",
|
12317
|
-
value:
|
12310
|
+
value: `${videoTrackStats == null ? void 0 : videoTrackStats.framesPerSecond} ${isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.framesDropped) ? `(${videoTrackStats == null ? void 0 : videoTrackStats.framesDropped} dropped)` : ""}`
|
12318
12311
|
}
|
12319
12312
|
), /* @__PURE__ */ React15.createElement(
|
12320
12313
|
StatsRow,
|
@@ -12360,13 +12353,13 @@ var TrackPacketsLostRow = ({
|
|
12360
12353
|
stats,
|
12361
12354
|
label
|
12362
12355
|
}) => {
|
12363
|
-
const packetsLostRate =
|
12356
|
+
const packetsLostRate = `${(stats == null ? void 0 : stats.packetsLostRate) ? stats.packetsLostRate.toFixed(2) : 0}/s`;
|
12364
12357
|
return /* @__PURE__ */ React15.createElement(
|
12365
12358
|
StatsRow,
|
12366
12359
|
{
|
12367
12360
|
show: isNotNullishAndNot0(stats == null ? void 0 : stats.packetsLost),
|
12368
12361
|
label,
|
12369
|
-
value:
|
12362
|
+
value: `${stats == null ? void 0 : stats.packetsLost}(${packetsLostRate})`
|
12370
12363
|
}
|
12371
12364
|
);
|
12372
12365
|
};
|
@@ -12474,9 +12467,9 @@ var getToastVariant = (base) => {
|
|
12474
12467
|
top: "-1px",
|
12475
12468
|
left: "-$4",
|
12476
12469
|
width: "$8",
|
12477
|
-
borderLeft:
|
12478
|
-
borderTop:
|
12479
|
-
borderBottom:
|
12470
|
+
borderLeft: `solid $space$px ${base}`,
|
12471
|
+
borderTop: `solid $space$px ${base}`,
|
12472
|
+
borderBottom: `solid $space$px ${base}`,
|
12480
12473
|
borderTopLeftRadius: "$3",
|
12481
12474
|
borderBottomLeftRadius: "$3",
|
12482
12475
|
bg: base,
|
@@ -12488,7 +12481,7 @@ var getToastVariant = (base) => {
|
|
12488
12481
|
"&:before": {
|
12489
12482
|
content: "none"
|
12490
12483
|
},
|
12491
|
-
border:
|
12484
|
+
border: `solid $space$px ${base}`
|
12492
12485
|
}
|
12493
12486
|
};
|
12494
12487
|
};
|
@@ -12572,7 +12565,7 @@ var HMSToast = (_a7) => {
|
|
12572
12565
|
"action",
|
12573
12566
|
"inlineAction"
|
12574
12567
|
]);
|
12575
|
-
return /* @__PURE__ */ React16.createElement(React16.Fragment, null, /* @__PURE__ */ React16.createElement(ToastRoot, __spreadValues({}, props), /* @__PURE__ */ React16.createElement(ToastTitle, null, /* @__PURE__ */ React16.createElement(Flex, { align: "center", css: { gap: "$4", flex: "1 1 0", minWidth: 0 } }, icon ? /* @__PURE__ */ React16.createElement(Box, { css: { w: "$10", h: "$10", alignSelf: "start", mt: "$2" } }, icon) : null, /* @__PURE__ */ React16.createElement(Text, { variant: "sub1", css: { c: "inherit", wordBreak: "break-word" } }, title)), isClosable ? /* @__PURE__ */ React16.createElement(DefaultClose, null) : null, !isClosable && inlineAction && action ? /* @__PURE__ */ React16.createElement(ToastAction, { altText:
|
12568
|
+
return /* @__PURE__ */ React16.createElement(React16.Fragment, null, /* @__PURE__ */ React16.createElement(ToastRoot, __spreadValues({}, props), /* @__PURE__ */ React16.createElement(ToastTitle, null, /* @__PURE__ */ React16.createElement(Flex, { align: "center", css: { gap: "$4", flex: "1 1 0", minWidth: 0 } }, icon ? /* @__PURE__ */ React16.createElement(Box, { css: { w: "$10", h: "$10", alignSelf: "start", mt: "$2" } }, icon) : null, /* @__PURE__ */ React16.createElement(Text, { variant: "sub1", css: { c: "inherit", wordBreak: "break-word" } }, title)), isClosable ? /* @__PURE__ */ React16.createElement(DefaultClose, null) : null, !isClosable && inlineAction && action ? /* @__PURE__ */ React16.createElement(ToastAction, { altText: `${title}Action` }, action) : null), description ? /* @__PURE__ */ React16.createElement(ToastDescription, null, /* @__PURE__ */ React16.createElement(Text, { variant: "body1", css: { fontWeight: "$regular", c: "$on_surface_medium" } }, description)) : null, !inlineAction && action ? /* @__PURE__ */ React16.createElement(ToastAction, { altText: `${title}Action`, css: { mt: "$10" } }, action) : null));
|
12576
12569
|
};
|
12577
12570
|
var Toast = {
|
12578
12571
|
Provider: ToastPrimitives.Provider,
|
@@ -12629,10 +12622,10 @@ var StyledContent3 = styled(BaseAccordion.Content, {
|
|
12629
12622
|
fontFamily: "$sans",
|
12630
12623
|
color: "$on_surface_medium",
|
12631
12624
|
'&[data-state="open"]': {
|
12632
|
-
animation:
|
12625
|
+
animation: `${slideDown("--radix-accordion-content-height")} 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards`
|
12633
12626
|
},
|
12634
12627
|
'&[data-state="closed"]': {
|
12635
|
-
animation:
|
12628
|
+
animation: `${slideUp("--radix-accordion-content-height")} 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards`
|
12636
12629
|
}
|
12637
12630
|
});
|
12638
12631
|
var StyledChevron = styled(ChevronUpIcon, {
|
@@ -12913,10 +12906,10 @@ var CollapsibleContent = styled(Content9, {
|
|
12913
12906
|
r: "$1",
|
12914
12907
|
overflowY: "auto",
|
12915
12908
|
'&[data-state="open"]': {
|
12916
|
-
animation:
|
12909
|
+
animation: `${slideDown("--radix-collapsible-content-height")} 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards`
|
12917
12910
|
},
|
12918
12911
|
'&[data-state="closed"]': {
|
12919
|
-
animation:
|
12912
|
+
animation: `${slideUp("--radix-collapsible-content-height")} 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards`
|
12920
12913
|
}
|
12921
12914
|
});
|
12922
12915
|
var Collapsible = {
|
@@ -13388,7 +13381,7 @@ var useFetchRoomLayout = ({
|
|
13388
13381
|
try {
|
13389
13382
|
const resp = yield fetchWithRetry(endpoint || "https://api.100ms.live/v2/layouts/ui", {
|
13390
13383
|
headers: {
|
13391
|
-
Authorization:
|
13384
|
+
Authorization: `Bearer ${authToken}`
|
13392
13385
|
}
|
13393
13386
|
});
|
13394
13387
|
layoutResp.current = yield resp.json();
|
@@ -13472,8 +13465,8 @@ var formatTime = (timeInSeconds) => {
|
|
13472
13465
|
const hours = Math.floor(timeInSeconds / 3600);
|
13473
13466
|
const minutes = Math.floor(timeInSeconds % 3600 / 60);
|
13474
13467
|
const seconds = timeInSeconds % 60;
|
13475
|
-
const hour = hours !== 0 ?
|
13476
|
-
return
|
13468
|
+
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
13469
|
+
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
13477
13470
|
};
|
13478
13471
|
var compareArrays = (a2, b2) => {
|
13479
13472
|
if (a2.length !== b2.length)
|
@@ -13595,7 +13588,7 @@ function useRoomLayoutHeader() {
|
|
13595
13588
|
var _a8;
|
13596
13589
|
const details2 = [];
|
13597
13590
|
if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
|
13598
|
-
details2.push(
|
13591
|
+
details2.push(`${getFormattedCount(peerCount)} watching`);
|
13599
13592
|
details2.push(hlsState.variants[0]["startedAt"]);
|
13600
13593
|
} else if (sessionStartedAt) {
|
13601
13594
|
details2.push(sessionStartedAt);
|
@@ -13906,8 +13899,8 @@ var VBPlugin = class {
|
|
13906
13899
|
}
|
13907
13900
|
if (effectsSDKKey) {
|
13908
13901
|
try {
|
13909
|
-
const
|
13910
|
-
this.effectsPlugin = new HMSEffectsPlugin(effectsSDKKey, onInit);
|
13902
|
+
const effects = yield import("@100mslive/hms-virtual-background/hmseffectsplugin");
|
13903
|
+
this.effectsPlugin = new effects.HMSEffectsPlugin(effectsSDKKey, onInit);
|
13911
13904
|
} catch (error) {
|
13912
13905
|
console.error("Failed to initialise HMSEffectsPlugin:", error, "Using HMSVBPlugin");
|
13913
13906
|
this.hmsPlugin = new HMSVBPlugin(HMSVirtualBackgroundTypes.NONE, HMSVirtualBackgroundTypes.NONE);
|
@@ -14601,7 +14594,7 @@ var convertError = (error) => {
|
|
14601
14594
|
body: "We could not find a room code corresponding to this link."
|
14602
14595
|
})).with(["GET_TOKEN", 2003], () => ({
|
14603
14596
|
title: "Endpoint is not reachable",
|
14604
|
-
body:
|
14597
|
+
body: `Endpoint is not reachable. ${error.description}.`
|
14605
14598
|
})).otherwise(
|
14606
14599
|
() => {
|
14607
14600
|
var _a7;
|
@@ -14926,10 +14919,10 @@ var StyledOverlay = styled(Dialog.Overlay, {
|
|
14926
14919
|
bottom: 0,
|
14927
14920
|
left: 0,
|
14928
14921
|
'&[data-state="open"]': {
|
14929
|
-
animation:
|
14922
|
+
animation: `${sheetFadeIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
14930
14923
|
},
|
14931
14924
|
'&[data-state="closed"]': {
|
14932
|
-
animation:
|
14925
|
+
animation: `${sheetFadeOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
14933
14926
|
}
|
14934
14927
|
});
|
14935
14928
|
var StyledContent6 = styled(DialogPrimitive2.Content, {
|
@@ -14953,10 +14946,10 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
14953
14946
|
},
|
14954
14947
|
"@allowMotion": {
|
14955
14948
|
'&[data-state="open"]': {
|
14956
|
-
animation:
|
14949
|
+
animation: `${sheetSlideIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
14957
14950
|
},
|
14958
14951
|
'&[data-state="closed"]': {
|
14959
|
-
animation:
|
14952
|
+
animation: `${sheetSlideOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
14960
14953
|
}
|
14961
14954
|
},
|
14962
14955
|
"@ls": {
|
@@ -15034,7 +15027,7 @@ var DialogDropdownTrigger = React30.forwardRef(({ title, css: css2, open, icon,
|
|
15034
15027
|
Dropdown.Trigger,
|
15035
15028
|
{
|
15036
15029
|
asChild: true,
|
15037
|
-
"data-testid":
|
15030
|
+
"data-testid": `${title}_selector`,
|
15038
15031
|
css: __spreadValues({
|
15039
15032
|
border: "1px solid $border_bright",
|
15040
15033
|
bg: "$surface_bright",
|
@@ -15777,7 +15770,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
15777
15770
|
try {
|
15778
15771
|
yield setNoiseCancellationWithPlugin(true);
|
15779
15772
|
ToastManager.addToast({
|
15780
|
-
title:
|
15773
|
+
title: `Noise Reduction Enabled`,
|
15781
15774
|
variant: "standard",
|
15782
15775
|
duration: 2e3,
|
15783
15776
|
icon: /* @__PURE__ */ React34.createElement(AudioLevelIcon, null)
|
@@ -15798,7 +15791,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
15798
15791
|
hideOptions: hideOptions || !hasAudioDevices,
|
15799
15792
|
onDisabledClick: toggleAudio,
|
15800
15793
|
testid: "audio_toggle_btn",
|
15801
|
-
tooltipMessage:
|
15794
|
+
tooltipMessage: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)`,
|
15802
15795
|
icon: !isLocalAudioEnabled ? /* @__PURE__ */ React34.createElement(MicOffIcon, null) : /* @__PURE__ */ React34.createElement(MicOnIcon2, null),
|
15803
15796
|
active: isLocalAudioEnabled,
|
15804
15797
|
onClick: toggleAudio,
|
@@ -15829,7 +15822,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
15829
15822
|
disabled: !toggleVideo,
|
15830
15823
|
hideOptions: hideOptions || !hasVideoDevices,
|
15831
15824
|
onDisabledClick: toggleVideo,
|
15832
|
-
tooltipMessage:
|
15825
|
+
tooltipMessage: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)`,
|
15833
15826
|
testid: "video_toggle_btn",
|
15834
15827
|
icon: !isLocalVideoEnabled ? /* @__PURE__ */ React34.createElement(VideoOffIcon, null) : /* @__PURE__ */ React34.createElement(VideoOnIcon2, null),
|
15835
15828
|
key: "toggleVideo",
|
@@ -15852,7 +15845,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
15852
15845
|
yield actions.switchCamera();
|
15853
15846
|
} catch (e) {
|
15854
15847
|
ToastManager.addToast({
|
15855
|
-
title:
|
15848
|
+
title: `Error while flipping camera ${e.message || ""}`,
|
15856
15849
|
variant: "error"
|
15857
15850
|
});
|
15858
15851
|
}
|
@@ -16383,7 +16376,7 @@ var DesktopLeaveRoom = ({
|
|
16383
16376
|
LeaveCard,
|
16384
16377
|
{
|
16385
16378
|
title: showStream ? "Leave Stream" : "Leave Session",
|
16386
|
-
subtitle:
|
16379
|
+
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
16387
16380
|
bg: "",
|
16388
16381
|
titleColor: "$on_surface_high",
|
16389
16382
|
icon: /* @__PURE__ */ React41.createElement(ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
@@ -16408,7 +16401,7 @@ var DesktopLeaveRoom = ({
|
|
16408
16401
|
LeaveCard,
|
16409
16402
|
{
|
16410
16403
|
title: showStream ? "End Stream" : "End Session",
|
16411
|
-
subtitle:
|
16404
|
+
subtitle: `The ${showStream ? "stream" : "session"} will end for everyone. You can't undo this action.`,
|
16412
16405
|
bg: "",
|
16413
16406
|
titleColor: "$alert_error_brighter",
|
16414
16407
|
icon: /* @__PURE__ */ React41.createElement(StopIcon, { height: 24, width: 24 }),
|
@@ -16474,7 +16467,7 @@ var MwebLeaveRoom = ({
|
|
16474
16467
|
LeaveCard,
|
16475
16468
|
{
|
16476
16469
|
title: showStream ? "Leave Stream" : "Leave Session",
|
16477
|
-
subtitle:
|
16470
|
+
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
16478
16471
|
bg: "$surface_default",
|
16479
16472
|
titleColor: "$on_surface_high",
|
16480
16473
|
icon: /* @__PURE__ */ React42.createElement(ExitIcon2, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
@@ -16487,7 +16480,7 @@ var MwebLeaveRoom = ({
|
|
16487
16480
|
LeaveCard,
|
16488
16481
|
{
|
16489
16482
|
title: showStream ? "End Stream" : "End Session",
|
16490
|
-
subtitle:
|
16483
|
+
subtitle: `The will end the ${showStream ? "stream" : "session"} for everyone. You can't undo this action.`,
|
16491
16484
|
bg: "$alert_error_dim",
|
16492
16485
|
titleColor: "$alert_error_brighter",
|
16493
16486
|
css: { color: "$alert_error_bright", "&:hover": { color: "$alert_error_brighter" } },
|
@@ -16684,7 +16677,7 @@ var PIPComponent = ({ content = null }) => {
|
|
16684
16677
|
if (!PictureInPicture.isSupported()) {
|
16685
16678
|
return null;
|
16686
16679
|
}
|
16687
|
-
return /* @__PURE__ */ React44.createElement(React44.Fragment, null, content ? /* @__PURE__ */ React44.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React44.createElement(Tooltip, { title:
|
16680
|
+
return /* @__PURE__ */ React44.createElement(React44.Fragment, null, content ? /* @__PURE__ */ React44.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React44.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React44.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React44.createElement(PipIcon, null))));
|
16688
16681
|
};
|
16689
16682
|
var ActivatedPIP = () => {
|
16690
16683
|
const store = useHMSVanillaStore6();
|
@@ -16859,7 +16852,7 @@ var usePinnedMessages = () => {
|
|
16859
16852
|
const peerName = vanillaStore.getState(selectPeerNameByID(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
|
16860
16853
|
const newPinnedMessage = { text: "", id: message.id, pinnedBy };
|
16861
16854
|
if (message && peerName) {
|
16862
|
-
newPinnedMessage["text"] =
|
16855
|
+
newPinnedMessage["text"] = `${peerName}: ${message.message}`;
|
16863
16856
|
} else if (message) {
|
16864
16857
|
newPinnedMessage["text"] = message.message;
|
16865
16858
|
}
|
@@ -17171,7 +17164,7 @@ var formatTime2 = (date) => {
|
|
17171
17164
|
const hours = date.getHours();
|
17172
17165
|
const minutes = date.getMinutes();
|
17173
17166
|
const suffix = hours > 11 ? "PM" : "AM";
|
17174
|
-
return
|
17167
|
+
return `${hours < 10 ? "0" : ""}${hours}:${minutes < 10 ? "0" : ""}${minutes} ${suffix}`;
|
17175
17168
|
};
|
17176
17169
|
var CHAT_MESSAGE_LIMIT = 2e3;
|
17177
17170
|
|
@@ -17245,10 +17238,10 @@ var MessageType = ({
|
|
17245
17238
|
const peerName = useHMSStore19(selectPeerNameByID2(receiver));
|
17246
17239
|
const localPeerRoleName = useHMSStore19(selectLocalPeerRoleName);
|
17247
17240
|
if (receiver) {
|
17248
|
-
return /* @__PURE__ */ React49.createElement(MessageTypeContainer, { left: hasCurrentUserSent ?
|
17241
|
+
return /* @__PURE__ */ React49.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
17249
17242
|
}
|
17250
17243
|
if (roles && roles.length) {
|
17251
|
-
return /* @__PURE__ */ React49.createElement(MessageTypeContainer, { left:
|
17244
|
+
return /* @__PURE__ */ React49.createElement(MessageTypeContainer, { left: `to ${hasCurrentUserSent ? roles[0] : localPeerRoleName}`, right: "(Group)" });
|
17252
17245
|
}
|
17253
17246
|
return null;
|
17254
17247
|
};
|
@@ -17389,7 +17382,7 @@ var ChatMessage = React49.memo(
|
|
17389
17382
|
variant: "sub2",
|
17390
17383
|
css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
|
17391
17384
|
},
|
17392
|
-
message.sender === localPeerId ?
|
17385
|
+
message.sender === localPeerId ? `${message.senderName} (You)` : message.senderName
|
17393
17386
|
)),
|
17394
17387
|
/* @__PURE__ */ React49.createElement(
|
17395
17388
|
MessageType,
|
@@ -17609,7 +17602,7 @@ var PIPChat = () => {
|
|
17609
17602
|
if (isLocalPeerBlacklisted)
|
17610
17603
|
return "You've been blocked from sending messages";
|
17611
17604
|
if (!isChatEnabled)
|
17612
|
-
return
|
17605
|
+
return `Chat has been paused by ${chatStateUpdatedBy.peerId === localPeerID ? "you" : chatStateUpdatedBy == null ? void 0 : chatStateUpdatedBy.userName}`;
|
17613
17606
|
return message_placeholder;
|
17614
17607
|
}, [
|
17615
17608
|
chatStateUpdatedBy.peerId,
|
@@ -17648,7 +17641,7 @@ var PIPChat = () => {
|
|
17648
17641
|
css: { cursor: "pointer" },
|
17649
17642
|
style: { color: "white", background: "gray", padding: "4px", borderRadius: "4px" }
|
17650
17643
|
},
|
17651
|
-
unreadMessageCount === 1 ? "New message" :
|
17644
|
+
unreadMessageCount === 1 ? "New message" : `${unreadMessageCount} new messages`
|
17652
17645
|
)
|
17653
17646
|
) : "",
|
17654
17647
|
filteredMessages.length === 0 ? /* @__PURE__ */ React50.createElement(
|
@@ -17901,7 +17894,7 @@ var RoleChangeContent = ({
|
|
17901
17894
|
"data-testid": role,
|
17902
17895
|
key: role,
|
17903
17896
|
onSelect: () => setRole(role),
|
17904
|
-
css: { w:
|
17897
|
+
css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
|
17905
17898
|
},
|
17906
17899
|
role
|
17907
17900
|
);
|
@@ -18030,7 +18023,7 @@ var DialogCol = (_a7) => {
|
|
18030
18023
|
};
|
18031
18024
|
var DialogSelect = (_a7) => {
|
18032
18025
|
var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
|
18033
|
-
return /* @__PURE__ */ React53.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React53.createElement(Label3, null, title), /* @__PURE__ */ React53.createElement(Select.Root, __spreadValues({ "data-testid":
|
18026
|
+
return /* @__PURE__ */ React53.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React53.createElement(Label3, null, title), /* @__PURE__ */ React53.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React53.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React53.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
|
18034
18027
|
const id = keyField ? option[keyField] : option;
|
18035
18028
|
const label = labelField ? option[labelField] : option;
|
18036
18029
|
return /* @__PURE__ */ React53.createElement("option", { value: id, key: id }, label);
|
@@ -18148,7 +18141,7 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
|
|
18148
18141
|
/* @__PURE__ */ React54.createElement(Flex, { justify: "between", gap: 2 }, /* @__PURE__ */ React54.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ React54.createElement(Text, { variant: "xs" }, "Width"), /* @__PURE__ */ React54.createElement(
|
18149
18142
|
Input,
|
18150
18143
|
{
|
18151
|
-
"data-testid":
|
18144
|
+
"data-testid": `${testId}_width`,
|
18152
18145
|
css: { width: "100%", mt: "$4" },
|
18153
18146
|
name: "resWidth",
|
18154
18147
|
value: resolution.width,
|
@@ -18162,7 +18155,7 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
|
|
18162
18155
|
)), /* @__PURE__ */ React54.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ React54.createElement(Text, { variant: "xs" }, "Height"), /* @__PURE__ */ React54.createElement(
|
18163
18156
|
Input,
|
18164
18157
|
{
|
18165
|
-
"data-testid":
|
18158
|
+
"data-testid": `${testId}_height`,
|
18166
18159
|
css: { width: "100%", mt: "$4" },
|
18167
18160
|
name: "resHeight",
|
18168
18161
|
value: resolution.height,
|
@@ -18313,7 +18306,7 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
18313
18306
|
return /* @__PURE__ */ React56.createElement(
|
18314
18307
|
Dropdown.Item,
|
18315
18308
|
{
|
18316
|
-
key:
|
18309
|
+
key: `${option.id}-${option.layer || ""}`,
|
18317
18310
|
onClick: () => {
|
18318
18311
|
setSelectedStat(option);
|
18319
18312
|
},
|
@@ -18346,7 +18339,7 @@ var useTracksWithLabel = () => {
|
|
18346
18339
|
id: track.id,
|
18347
18340
|
layer,
|
18348
18341
|
local: true,
|
18349
|
-
label:
|
18342
|
+
label: `${peerName} ${track.source} ${track.type} - ${layer}`
|
18350
18343
|
};
|
18351
18344
|
})
|
18352
18345
|
);
|
@@ -18355,7 +18348,7 @@ var useTracksWithLabel = () => {
|
|
18355
18348
|
res.push({
|
18356
18349
|
id: track.id,
|
18357
18350
|
local: isLocalTrack,
|
18358
|
-
label:
|
18351
|
+
label: `${peerName} ${track.source} ${track.type}`
|
18359
18352
|
});
|
18360
18353
|
return res;
|
18361
18354
|
}, []),
|
@@ -18379,7 +18372,7 @@ var LocalPeerStats = () => {
|
|
18379
18372
|
StatsRow2,
|
18380
18373
|
{
|
18381
18374
|
label: "Round Trip Time",
|
18382
|
-
value:
|
18375
|
+
value: `${(((((_h = stats.publish) == null ? void 0 : _h.currentRoundTripTime) || 0) + (((_i = stats.subscribe) == null ? void 0 : _i.currentRoundTripTime) || 0)) / 2).toFixed(3) * 1e3} ms`
|
18383
18376
|
}
|
18384
18377
|
));
|
18385
18378
|
};
|
@@ -18406,7 +18399,7 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
18406
18399
|
StatsRow2,
|
18407
18400
|
{
|
18408
18401
|
label: "Round Trip Time",
|
18409
|
-
value: stats.roundTripTime ?
|
18402
|
+
value: stats.roundTripTime ? `${(stats.roundTripTime * 1e3).toFixed(3)} ms` : "-"
|
18410
18403
|
}
|
18411
18404
|
));
|
18412
18405
|
};
|
@@ -18619,7 +18612,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
18619
18612
|
});
|
18620
18613
|
setIsCaptionEnabled(false);
|
18621
18614
|
const id2 = ToastManager.replaceToast(toastId, {
|
18622
|
-
title:
|
18615
|
+
title: `Disabling Closed Caption for everyone.`,
|
18623
18616
|
variant: "standard",
|
18624
18617
|
duration: DURATION,
|
18625
18618
|
icon: /* @__PURE__ */ React58.createElement(Loading, { color: "currentColor" })
|
@@ -18632,7 +18625,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
18632
18625
|
mode: HMSTranscriptionMode.CAPTION
|
18633
18626
|
});
|
18634
18627
|
const id = ToastManager.replaceToast(toastId, {
|
18635
|
-
title:
|
18628
|
+
title: `Enabling Closed Caption for everyone.`,
|
18636
18629
|
variant: "standard",
|
18637
18630
|
duration: DURATION,
|
18638
18631
|
icon: /* @__PURE__ */ React58.createElement(Loading, { color: "currentColor" })
|
@@ -18640,7 +18633,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
18640
18633
|
setToastId(id);
|
18641
18634
|
} catch (err) {
|
18642
18635
|
const id = ToastManager.replaceToast(toastId, {
|
18643
|
-
title:
|
18636
|
+
title: `Failed to ${isTranscriptionEnabled ? "disable" : "enable"} closed caption`,
|
18644
18637
|
variant: "error",
|
18645
18638
|
icon: /* @__PURE__ */ React58.createElement(AlertTriangleIcon5, { style: { marginRight: "0.5rem" } })
|
18646
18639
|
});
|
@@ -19110,7 +19103,7 @@ var DesktopOptions = ({
|
|
19110
19103
|
},
|
19111
19104
|
/* @__PURE__ */ React63.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React63.createElement(CheckIcon4, { width: 16, height: 16 }))
|
19112
19105
|
),
|
19113
|
-
/* @__PURE__ */ React63.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React63.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ React63.createElement(Text, { variant: "sm", css: { ml: "$4" } },
|
19106
|
+
/* @__PURE__ */ React63.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React63.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ React63.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`))
|
19114
19107
|
);
|
19115
19108
|
}).otherwise(() => /* @__PURE__ */ React63.createElement(
|
19116
19109
|
Dropdown.Item,
|
@@ -20791,9 +20784,9 @@ function shimGetUserMedia3(window2) {
|
|
20791
20784
|
};
|
20792
20785
|
}
|
20793
20786
|
if (!navigator2.getUserMedia && navigator2.mediaDevices && navigator2.mediaDevices.getUserMedia) {
|
20794
|
-
navigator2.getUserMedia =
|
20787
|
+
navigator2.getUserMedia = function getUserMedia(constraints, cb, errcb) {
|
20795
20788
|
navigator2.mediaDevices.getUserMedia(constraints).then(cb, errcb);
|
20796
|
-
}
|
20789
|
+
}.bind(navigator2);
|
20797
20790
|
}
|
20798
20791
|
}
|
20799
20792
|
function shimConstraints(constraints) {
|
@@ -21413,7 +21406,7 @@ var c = (a2, e, t) => new Promise((i, r) => {
|
|
21413
21406
|
n((t = t.apply(a2, e)).next());
|
21414
21407
|
});
|
21415
21408
|
var yr = ro((Dc, ho) => {
|
21416
|
-
ho.exports = { version: "0.12.19-alpha.
|
21409
|
+
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"] };
|
21417
21410
|
});
|
21418
21411
|
var 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 || {});
|
21419
21412
|
var so = ((e) => (e.CHAT = "chat", e))(so || {});
|
@@ -21563,34 +21556,42 @@ var f = class a extends Error {
|
|
21563
21556
|
}
|
21564
21557
|
toString() {
|
21565
21558
|
var t;
|
21566
|
-
return
|
21559
|
+
return `{
|
21560
|
+
code: ${this.code};
|
21561
|
+
name: ${this.name};
|
21562
|
+
action: ${this.action};
|
21563
|
+
message: ${this.message};
|
21564
|
+
description: ${this.description};
|
21565
|
+
isTerminal: ${this.isTerminal};
|
21566
|
+
nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
|
21567
|
+
}`;
|
21567
21568
|
}
|
21568
21569
|
};
|
21569
21570
|
var uo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21570
21571
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21571
|
-
return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2,
|
21572
|
+
return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21572
21573
|
}, WebSocketConnectionLost(a2, e = "") {
|
21573
21574
|
return new f(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21574
21575
|
}, AbnormalClose(a2, e = "") {
|
21575
21576
|
return new f(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21576
21577
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21577
|
-
return new f(a2, "ServerErrors", e,
|
21578
|
+
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21578
21579
|
}, EndpointUnreachable(a2, e = "") {
|
21579
|
-
return new f(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2,
|
21580
|
+
return new f(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21580
21581
|
}, InvalidTokenFormat(a2, e = "") {
|
21581
|
-
return new f(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2,
|
21582
|
+
return new f(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21582
21583
|
}, InitConfigNotAvailable(a2, e = "") {
|
21583
|
-
return new f(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2,
|
21584
|
+
return new f(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21584
21585
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21585
|
-
return new f(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2,
|
21586
|
+
return new f(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21586
21587
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21587
|
-
return new f(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2,
|
21588
|
+
return new f(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21588
21589
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21589
|
-
return new f(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2,
|
21590
|
+
return new f(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21590
21591
|
}, DeviceInUse(a2, e, t = "") {
|
21591
|
-
return new f(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2,
|
21592
|
+
return new f(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21592
21593
|
}, DeviceLostMidway(a2, e, t = "") {
|
21593
|
-
return new f(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2,
|
21594
|
+
return new f(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21594
21595
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21595
21596
|
return new f(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21596
21597
|
}, InvalidVideoSettings(a2, e = "") {
|
@@ -21600,31 +21601,31 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
21600
21601
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21601
21602
|
return new f(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21602
21603
|
}, OverConstrained(a2, e, t = "") {
|
21603
|
-
return new f(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2,
|
21604
|
+
return new f(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21604
21605
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21605
21606
|
return new f(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21606
21607
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21607
|
-
return new f(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2,
|
21608
|
+
return new f(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21608
21609
|
}, CurrentTabNotShared() {
|
21609
21610
|
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");
|
21610
21611
|
}, AudioPlaybackError(a2) {
|
21611
21612
|
return new f(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21612
21613
|
}, SelectedDeviceMissing(a2) {
|
21613
|
-
return new f(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK",
|
21614
|
+
return new f(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21614
21615
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21615
|
-
return new f(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2,
|
21616
|
+
return new f(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21616
21617
|
}, CreateAnswerFailed(a2, e = "") {
|
21617
|
-
return new f(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2,
|
21618
|
+
return new f(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21618
21619
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21619
|
-
return new f(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2,
|
21620
|
+
return new f(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21620
21621
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21621
|
-
return new f(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2,
|
21622
|
+
return new f(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21622
21623
|
}, ICEFailure(a2, e = "", t = false) {
|
21623
|
-
return new f(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2,
|
21624
|
+
return new f(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21624
21625
|
}, ICEDisconnected(a2, e = "") {
|
21625
|
-
return new f(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2,
|
21626
|
+
return new f(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21626
21627
|
}, StatsFailed(a2, e = "") {
|
21627
|
-
return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2,
|
21628
|
+
return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21628
21629
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21629
21630
|
return new f(a2, "ServerErrors", e, t, t, uo.includes(e));
|
21630
21631
|
}, AlreadyJoined(a2, e = "") {
|
@@ -21634,13 +21635,13 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
21634
21635
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21635
21636
|
return new f(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21636
21637
|
}, Signalling(a2, e) {
|
21637
|
-
return new f(P4.GenericErrors.SIGNALLING, "Signalling", a2,
|
21638
|
+
return new f(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21638
21639
|
}, Unknown(a2, e) {
|
21639
|
-
return new f(P4.GenericErrors.UNKNOWN, "Unknown", a2,
|
21640
|
+
return new f(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21640
21641
|
}, NotReady(a2, e = "") {
|
21641
21642
|
return new f(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21642
21643
|
}, JsonParsingFailed(a2, e, t = "") {
|
21643
|
-
return new f(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2,
|
21644
|
+
return new f(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21644
21645
|
}, TrackMetadataMissing(a2, e = "") {
|
21645
21646
|
return new f(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21646
21647
|
}, RTCTrackMissing(a2, e = "") {
|
@@ -21745,17 +21746,13 @@ function vt(a2 = "prod", e) {
|
|
21745
21746
|
let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21746
21747
|
if (Be)
|
21747
21748
|
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 });
|
21748
|
-
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(
|
21749
|
-
|
21750
|
-
let m = kr("".concat(s.vendor, "_").concat(s.type));
|
21751
|
-
p = "".concat(m, "/").concat(u);
|
21752
|
-
}
|
21753
|
-
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 });
|
21749
|
+
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;
|
21750
|
+
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 });
|
21754
21751
|
}
|
21755
21752
|
function kr(a2) {
|
21756
21753
|
return a2.replace(/ /g, "_");
|
21757
21754
|
}
|
21758
|
-
var As = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) =>
|
21755
|
+
var As = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21759
21756
|
var H = class {
|
21760
21757
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21761
21758
|
this.metadata = { peer: {}, userAgent: vt() };
|
@@ -21805,7 +21802,7 @@ var y = class {
|
|
21805
21802
|
return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
21806
21803
|
}
|
21807
21804
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
21808
|
-
let o = this.eventNameFor(s ? "publish" :
|
21805
|
+
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);
|
21809
21806
|
return new H({ name: o, level: n, properties: d });
|
21810
21807
|
}
|
21811
21808
|
static performance(e) {
|
@@ -21851,11 +21848,10 @@ var y = class {
|
|
21851
21848
|
return new H({ name: "krisp.stop", level: 1 });
|
21852
21849
|
}
|
21853
21850
|
static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
|
21854
|
-
return new H({ name:
|
21851
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
|
21855
21852
|
}
|
21856
21853
|
static eventNameFor(e, t) {
|
21857
|
-
|
21858
|
-
return "".concat(e, ".").concat(i);
|
21854
|
+
return `${e}.${t ? "success" : "failed"}`;
|
21859
21855
|
}
|
21860
21856
|
static getPropertiesWithError(e, t) {
|
21861
21857
|
let i = this.getErrorProperties(t);
|
@@ -21883,7 +21879,7 @@ var Er = class {
|
|
21883
21879
|
return;
|
21884
21880
|
let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
|
21885
21881
|
if (!r) {
|
21886
|
-
l.w(this.TAG,
|
21882
|
+
l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
|
21887
21883
|
return;
|
21888
21884
|
}
|
21889
21885
|
let s = this.storage.get() || {};
|
@@ -22413,7 +22409,7 @@ var Xr = class {
|
|
22413
22409
|
return;
|
22414
22410
|
}
|
22415
22411
|
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;
|
22416
|
-
fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization:
|
22412
|
+
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) => {
|
22417
22413
|
if (r.status === 401) {
|
22418
22414
|
this.removeFromStorage(e);
|
22419
22415
|
return;
|
@@ -22448,10 +22444,10 @@ var Vt = class {
|
|
22448
22444
|
}
|
22449
22445
|
static sendFeedback(s) {
|
22450
22446
|
return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
|
22451
|
-
l.d(this.TAG,
|
22447
|
+
l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
|
22452
22448
|
let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
|
22453
22449
|
try {
|
22454
|
-
let d = yield fetch(o, { headers: { Authorization:
|
22450
|
+
let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
|
22455
22451
|
try {
|
22456
22452
|
this.handleError(d);
|
22457
22453
|
return;
|
@@ -23722,7 +23718,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
23722
23718
|
yield requestPermission();
|
23723
23719
|
})
|
23724
23720
|
},
|
23725
|
-
/* @__PURE__ */ React76.createElement(Tooltip, { title:
|
23721
|
+
/* @__PURE__ */ React76.createElement(Tooltip, { title: `${!isVideoScreenshare ? "Start" : "Stop"} screen sharing` }, /* @__PURE__ */ React76.createElement(Box, null, /* @__PURE__ */ React76.createElement(ShareScreenIcon, null)))
|
23726
23722
|
), /* @__PURE__ */ React76.createElement(ShareScreenOptions, null)));
|
23727
23723
|
};
|
23728
23724
|
|
@@ -23778,7 +23774,7 @@ var ChatToggle = ({ onClick }) => {
|
|
23778
23774
|
position: "relative"
|
23779
23775
|
}
|
23780
23776
|
},
|
23781
|
-
/* @__PURE__ */ React78.createElement(Tooltip, { key: "chat", title:
|
23777
|
+
/* @__PURE__ */ React78.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ React78.createElement(
|
23782
23778
|
IconButton_default,
|
23783
23779
|
{
|
23784
23780
|
onClick: () => onClick ? onClick() : toggleChat(),
|
@@ -24246,7 +24242,7 @@ var RoleAccordion = ({
|
|
24246
24242
|
return /* @__PURE__ */ React82.createElement(Accordion.Item, { value: roleName, css: { "&:hover .role_actions": { visibility: "visible" }, mb: "$8" }, ref }, /* @__PURE__ */ React82.createElement(
|
24247
24243
|
Accordion.Header,
|
24248
24244
|
{
|
24249
|
-
chevronID:
|
24245
|
+
chevronID: `role_accordion_btn_${roleName}`,
|
24250
24246
|
iconStyles: { c: "$on_surface_high" },
|
24251
24247
|
css: {
|
24252
24248
|
textTransform: "capitalize",
|
@@ -24270,7 +24266,7 @@ var RoleAccordion = ({
|
|
24270
24266
|
},
|
24271
24267
|
roleName,
|
24272
24268
|
" ",
|
24273
|
-
|
24269
|
+
`(${getFormattedCount(isLargeRoom && isOffStageRole ? total : peerList.length)})`
|
24274
24270
|
), /* @__PURE__ */ React82.createElement(RoleOptions, { roleName, peerList: peersInAccordion }))
|
24275
24271
|
), /* @__PURE__ */ React82.createElement(Accordion.Content, { contentStyles: { border: "1px solid $border_default", borderTop: "none" } }, /* @__PURE__ */ React82.createElement(
|
24276
24272
|
FixedSizeList,
|
@@ -24730,7 +24726,7 @@ var PollsToggle = () => {
|
|
24730
24726
|
setUnreadPollQuiz(false);
|
24731
24727
|
}
|
24732
24728
|
}, [isPollsOpen, unreadPollQuiz, setUnreadPollQuiz]);
|
24733
|
-
return /* @__PURE__ */ React84.createElement(Tooltip, { key: "polls", title:
|
24729
|
+
return /* @__PURE__ */ React84.createElement(Tooltip, { key: "polls", title: `${isPollsOpen ? "Close" : "Open"} polls and quizzes` }, /* @__PURE__ */ React84.createElement(
|
24734
24730
|
IconButton_default,
|
24735
24731
|
{
|
24736
24732
|
onClick: () => {
|
@@ -24760,7 +24756,7 @@ var WhiteboardToggle = () => {
|
|
24760
24756
|
Tooltip,
|
24761
24757
|
{
|
24762
24758
|
key: "whiteboard",
|
24763
|
-
title: peerSharing ? "Cannot open whiteboard when viewing a shared screen" :
|
24759
|
+
title: peerSharing ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
|
24764
24760
|
},
|
24765
24761
|
/* @__PURE__ */ React85.createElement(
|
24766
24762
|
IconButton_default,
|
@@ -25002,7 +24998,7 @@ var Container3 = ({ children, rounded = false }) => {
|
|
25002
24998
|
left: 0,
|
25003
24999
|
bg: "$surface_dim",
|
25004
25000
|
transform: "translateX(10%)",
|
25005
|
-
animation:
|
25001
|
+
animation: `${slideLeftAndFade("10%")} 100ms ease-out forwards`,
|
25006
25002
|
display: "flex",
|
25007
25003
|
flexDirection: "column",
|
25008
25004
|
borderRadius: rounded ? "$2" : "0"
|
@@ -25142,7 +25138,7 @@ var AddMenu = () => {
|
|
25142
25138
|
onClick: () => setInteractionType("Quiz" /* QUIZ */),
|
25143
25139
|
active: interactionType === "Quiz" /* QUIZ */
|
25144
25140
|
}
|
25145
|
-
)), /* @__PURE__ */ React90.createElement(Flex, { direction: "column", css: { mb: "$10" } }, /* @__PURE__ */ React90.createElement(Text, { variant: "body2", css: { mb: "$4" } },
|
25141
|
+
)), /* @__PURE__ */ React90.createElement(Flex, { direction: "column", css: { mb: "$10" } }, /* @__PURE__ */ React90.createElement(Text, { variant: "body2", css: { mb: "$4" } }, `Name this ${interactionType.toLowerCase()}`), /* @__PURE__ */ React90.createElement(
|
25146
25142
|
Input,
|
25147
25143
|
{
|
25148
25144
|
ref: inputRef,
|
@@ -25314,7 +25310,7 @@ var OptionInputWithDelete = ({
|
|
25314
25310
|
return /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(
|
25315
25311
|
Input,
|
25316
25312
|
{
|
25317
|
-
placeholder:
|
25313
|
+
placeholder: `Option ${index + 1}`,
|
25318
25314
|
css: {
|
25319
25315
|
w: "100%",
|
25320
25316
|
backgroundColor: "$surface_bright",
|
@@ -25345,7 +25341,7 @@ var VoteProgress = ({ option, totalResponses }) => {
|
|
25345
25341
|
Progress.Content,
|
25346
25342
|
{
|
25347
25343
|
style: {
|
25348
|
-
transform:
|
25344
|
+
transform: `translateX(-${100 - progressValue}%)`
|
25349
25345
|
}
|
25350
25346
|
}
|
25351
25347
|
)) : null;
|
@@ -25376,10 +25372,10 @@ var MultipleChoiceOptions = ({
|
|
25376
25372
|
};
|
25377
25373
|
return /* @__PURE__ */ React96.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
25378
25374
|
var _a7;
|
25379
|
-
return /* @__PURE__ */ React96.createElement(Flex, { align: "center", key:
|
25375
|
+
return /* @__PURE__ */ React96.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React96.createElement(
|
25380
25376
|
Checkbox.Root,
|
25381
25377
|
{
|
25382
|
-
id:
|
25378
|
+
id: `${questionIndex}-${option.index}`,
|
25383
25379
|
disabled: !canRespond,
|
25384
25380
|
checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
|
25385
25381
|
onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
|
@@ -25389,7 +25385,7 @@ var MultipleChoiceOptions = ({
|
|
25389
25385
|
}
|
25390
25386
|
},
|
25391
25387
|
/* @__PURE__ */ React96.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React96.createElement(CheckIcon5, { width: 16, height: 16 }))
|
25392
|
-
) : null, isStopped && (correctOptionIndexes == null ? void 0 : correctOptionIndexes.includes(option.index)) ? /* @__PURE__ */ React96.createElement(Flex, { align: "center", css: { color: "$on_surface_high" } }, /* @__PURE__ */ React96.createElement(CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ React96.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React96.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React96.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ React96.createElement(Label3, { htmlFor:
|
25388
|
+
) : null, isStopped && (correctOptionIndexes == null ? void 0 : correctOptionIndexes.includes(option.index)) ? /* @__PURE__ */ React96.createElement(Flex, { align: "center", css: { color: "$on_surface_high" } }, /* @__PURE__ */ React96.createElement(CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ React96.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React96.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React96.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ React96.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ React96.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ React96.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.options.includes(option.index)) ? /* @__PURE__ */ React96.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
25393
25389
|
}));
|
25394
25390
|
};
|
25395
25391
|
var MultipleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
|
@@ -25434,7 +25430,7 @@ var SingleChoiceOptions = ({
|
|
25434
25430
|
localPeerResponse
|
25435
25431
|
}) => {
|
25436
25432
|
return /* @__PURE__ */ React97.createElement(RadioGroup.Root, { value: localPeerResponse == null ? void 0 : localPeerResponse.option, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ React97.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
25437
|
-
return /* @__PURE__ */ React97.createElement(Flex, { align: "center", key:
|
25433
|
+
return /* @__PURE__ */ React97.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React97.createElement(
|
25438
25434
|
RadioGroup.Item,
|
25439
25435
|
{
|
25440
25436
|
css: {
|
@@ -25456,7 +25452,7 @@ var SingleChoiceOptions = ({
|
|
25456
25452
|
},
|
25457
25453
|
disabled: !canRespond,
|
25458
25454
|
value: option.index,
|
25459
|
-
id:
|
25455
|
+
id: `${questionIndex}-${option.index}`
|
25460
25456
|
},
|
25461
25457
|
/* @__PURE__ */ React97.createElement(
|
25462
25458
|
RadioGroup.Indicator,
|
@@ -25469,13 +25465,13 @@ var SingleChoiceOptions = ({
|
|
25469
25465
|
}
|
25470
25466
|
}
|
25471
25467
|
)
|
25472
|
-
) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ React97.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React97.createElement(CheckCircleIcon2, { height: 20, width: 20 })) : null, /* @__PURE__ */ React97.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React97.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React97.createElement(Text, { css: { display: "flex", flexGrow: "1", color: "$on_surface_high" } }, /* @__PURE__ */ React97.createElement(Label3, { style: { color: "inherit" }, htmlFor:
|
25468
|
+
) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ React97.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React97.createElement(CheckCircleIcon2, { height: 20, width: 20 })) : null, /* @__PURE__ */ React97.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React97.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React97.createElement(Text, { css: { display: "flex", flexGrow: "1", color: "$on_surface_high" } }, /* @__PURE__ */ React97.createElement(Label3, { style: { color: "inherit" }, htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ React97.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ React97.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.option) === option.index ? /* @__PURE__ */ React97.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
25473
25469
|
})));
|
25474
25470
|
};
|
25475
25471
|
var SingleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
|
25476
25472
|
const correctOptionIndex = options.findIndex((option) => option.isCorrectAnswer);
|
25477
25473
|
return /* @__PURE__ */ React97.createElement(RadioGroup.Root, { value: correctOptionIndex, onValueChange: selectAnswer }, /* @__PURE__ */ React97.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option, index) => {
|
25478
|
-
return /* @__PURE__ */ React97.createElement(Flex, { align: "center", key:
|
25474
|
+
return /* @__PURE__ */ React97.createElement(Flex, { align: "center", key: `option-${index}`, css: { w: "100%", gap: "$4" } }, isQuiz && /* @__PURE__ */ React97.createElement(
|
25479
25475
|
RadioGroup.Item,
|
25480
25476
|
{
|
25481
25477
|
css: {
|
@@ -25685,7 +25681,7 @@ var QuestionForm = ({
|
|
25685
25681
|
Tooltip,
|
25686
25682
|
{
|
25687
25683
|
disabled: isValid,
|
25688
|
-
title: options.length < 2 ? "At least two options must be added" :
|
25684
|
+
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`,
|
25689
25685
|
boxCss: { maxWidth: "$40" }
|
25690
25686
|
},
|
25691
25687
|
/* @__PURE__ */ React98.createElement(
|
@@ -25753,7 +25749,7 @@ var SavedQuestion = ({
|
|
25753
25749
|
}
|
25754
25750
|
return updatedAnswerArray;
|
25755
25751
|
}, [question == null ? void 0 : question.answer]);
|
25756
|
-
return /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ React99.createElement(Flex, { key:
|
25752
|
+
return /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ React99.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ React99.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React99.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React99.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React99.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React99.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
|
25757
25753
|
};
|
25758
25754
|
|
25759
25755
|
// src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
|
@@ -25784,7 +25780,7 @@ function CreateQuestions() {
|
|
25784
25780
|
try {
|
25785
25781
|
yield actions.sendHLSTimedMetadata([
|
25786
25782
|
{
|
25787
|
-
payload:
|
25783
|
+
payload: `poll:${poll_id}`,
|
25788
25784
|
duration: 100
|
25789
25785
|
}
|
25790
25786
|
]);
|
@@ -25885,15 +25881,15 @@ var getFormattedTime = (milliseconds, precise = true) => {
|
|
25885
25881
|
const seconds = totalSeconds % 60;
|
25886
25882
|
let formattedTime = "";
|
25887
25883
|
if (hours) {
|
25888
|
-
formattedTime +=
|
25884
|
+
formattedTime += `${hours}h `;
|
25889
25885
|
}
|
25890
25886
|
if (minutes || hours) {
|
25891
|
-
formattedTime +=
|
25887
|
+
formattedTime += `${minutes}m `;
|
25892
25888
|
}
|
25893
25889
|
if (!precise && (hours || minutes)) {
|
25894
25890
|
return formattedTime;
|
25895
25891
|
}
|
25896
|
-
formattedTime +=
|
25892
|
+
formattedTime += `${precise ? seconds.toFixed(3) : Math.floor(seconds)}s`;
|
25897
25893
|
return formattedTime;
|
25898
25894
|
};
|
25899
25895
|
|
@@ -26009,11 +26005,11 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
26009
26005
|
const boxes = isLocalPeerQuizCreator ? [
|
26010
26006
|
{
|
26011
26007
|
title: "Voted",
|
26012
|
-
value:
|
26008
|
+
value: `${summary.totalUsers ? (100 * summary.votedUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.votedUsers}/${summary.totalUsers})`
|
26013
26009
|
},
|
26014
26010
|
{
|
26015
26011
|
title: "Correct Answers",
|
26016
|
-
value:
|
26012
|
+
value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
|
26017
26013
|
},
|
26018
26014
|
// Time in ms
|
26019
26015
|
{ title: "Avg. Time Taken", value: getFormattedTime(summary.avgTime) },
|
@@ -26028,7 +26024,7 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
26028
26024
|
{ title: "Time Taken", value: getFormattedTime(peerEntry == null ? void 0 : peerEntry.duration) },
|
26029
26025
|
{
|
26030
26026
|
title: "Correct Answers",
|
26031
|
-
value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ?
|
26027
|
+
value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ? `${peerEntry == null ? void 0 : peerEntry.correctResponses}/${peerEntry.totalResponses}` : "-"
|
26032
26028
|
}
|
26033
26029
|
];
|
26034
26030
|
return /* @__PURE__ */ React103.createElement(Box, null, /* @__PURE__ */ React103.createElement(Text, { css: { fontWeight: "$semiBold", my: "$8" } }, "Participation Summary"), /* @__PURE__ */ React103.createElement(Box, { css: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "$4" } }, boxes.map((box) => /* @__PURE__ */ React103.createElement(StatisticBox, { key: box.title, title: box.title, value: box.value }))));
|
@@ -26206,7 +26202,7 @@ var QuestionCard2 = ({
|
|
26206
26202
|
borderRadius: "$1",
|
26207
26203
|
p: "$md",
|
26208
26204
|
mt: "$md",
|
26209
|
-
border: respondedToQuiz && !isLive ?
|
26205
|
+
border: respondedToQuiz && !isLive ? `1px solid ${isCorrectAnswer ? "$alert_success" : "$alert_error_default"}` : "none"
|
26210
26206
|
}
|
26211
26207
|
},
|
26212
26208
|
/* @__PURE__ */ React105.createElement(Flex, { align: "center", justify: "between" }, /* @__PURE__ */ React105.createElement(
|
@@ -26316,7 +26312,7 @@ var StandardView = ({
|
|
26316
26312
|
isQuiz,
|
26317
26313
|
startedBy: poll.startedBy,
|
26318
26314
|
pollState: poll.state,
|
26319
|
-
key:
|
26315
|
+
key: `${question.text}-${index}`,
|
26320
26316
|
index: question.index,
|
26321
26317
|
text: question.text,
|
26322
26318
|
type: question.type,
|
@@ -26671,7 +26667,7 @@ var SelectorItem = ({
|
|
26671
26667
|
icon,
|
26672
26668
|
value
|
26673
26669
|
),
|
26674
|
-
/* @__PURE__ */ React114.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React114.createElement(Tooltip, { title:
|
26670
|
+
/* @__PURE__ */ React114.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React114.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React114.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React114.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React114.createElement(CheckIcon6, { width: 16, height: 16 }))
|
26675
26671
|
);
|
26676
26672
|
};
|
26677
26673
|
var SelectorHeader = React114.memo(
|
@@ -26946,7 +26942,22 @@ var useEmojiPickerStyles = (showing) => {
|
|
26946
26942
|
var _a7, _b7;
|
26947
26943
|
const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
|
26948
26944
|
const style = document.createElement("style");
|
26949
|
-
style.textContent =
|
26945
|
+
style.textContent = `
|
26946
|
+
#root {
|
26947
|
+
--em-rgb-color: var(--hms-ui-colors-on_surface_high);
|
26948
|
+
--em-rgb-input: var(--hms-ui-colors-on_primary_high);
|
26949
|
+
--em-color-border: var(--hms-ui-colors-surface_bright);
|
26950
|
+
--color-b: var(--hms-ui-colors-on_surface_high);
|
26951
|
+
--rgb-background: transparent;
|
26952
|
+
color: var(--hms-ui-colors-on_surface_high);
|
26953
|
+
font-family: var(--hms-ui-fonts-sans);
|
26954
|
+
}
|
26955
|
+
.sticky {
|
26956
|
+
top: 0.25rem;
|
26957
|
+
background-color: var(--hms-ui-colors-surface_bright);
|
26958
|
+
margin-top: 0.5rem;
|
26959
|
+
}
|
26960
|
+
`;
|
26950
26961
|
root == null ? void 0 : root.appendChild(style);
|
26951
26962
|
}, 0);
|
26952
26963
|
}
|
@@ -27029,15 +27040,15 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27029
27040
|
}, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
|
27030
27041
|
const resetInputHeight = useCallback29(() => {
|
27031
27042
|
if (inputRef.current) {
|
27032
|
-
inputRef.current.style.height =
|
27043
|
+
inputRef.current.style.height = `${Math.max(
|
27033
27044
|
32,
|
27034
27045
|
inputRef.current.value ? Math.min(inputRef.current.scrollHeight, 24 * 4) : 0
|
27035
|
-
)
|
27046
|
+
)}px`;
|
27036
27047
|
}
|
27037
27048
|
}, []);
|
27038
27049
|
const updateInputHeight = useCallback29(() => {
|
27039
27050
|
if (inputRef.current) {
|
27040
|
-
inputRef.current.style.height =
|
27051
|
+
inputRef.current.style.height = `${Math.max(32, Math.min(inputRef.current.scrollHeight, 24 * 4))}px`;
|
27041
27052
|
}
|
27042
27053
|
}, []);
|
27043
27054
|
const sendMessage = useCallback29(() => __async(void 0, null, function* () {
|
@@ -27062,7 +27073,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27062
27073
|
} catch (error) {
|
27063
27074
|
const err = error;
|
27064
27075
|
ToastManager.addToast({
|
27065
|
-
title: err.message.startsWith("Invalid peer") ?
|
27076
|
+
title: err.message.startsWith("Invalid peer") ? `${selectedPeer.name} is not in this room` : err.message
|
27066
27077
|
});
|
27067
27078
|
}
|
27068
27079
|
}), [selectedRole, selectedPeer, hmsActions, onSend]);
|
@@ -27172,7 +27183,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27172
27183
|
{
|
27173
27184
|
onSelect: (emoji) => {
|
27174
27185
|
if (inputRef.current) {
|
27175
|
-
inputRef.current.value +=
|
27186
|
+
inputRef.current.value += ` ${emoji.native} `;
|
27176
27187
|
}
|
27177
27188
|
}
|
27178
27189
|
}
|
@@ -27644,7 +27655,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
27644
27655
|
"data-testid": "close_sidepane"
|
27645
27656
|
},
|
27646
27657
|
/* @__PURE__ */ React122.createElement(CrossIcon22, null)
|
27647
|
-
)), /* @__PURE__ */ React122.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder:
|
27658
|
+
)), /* @__PURE__ */ React122.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ React122.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ React122.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ React122.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ React122.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ React122.createElement(
|
27648
27659
|
VariableSizeList2,
|
27649
27660
|
{
|
27650
27661
|
itemSize: (index) => index === filteredPeers.length + 1 ? 16 : ROW_HEIGHT,
|
@@ -28274,7 +28285,7 @@ var TileMenu = ({
|
|
28274
28285
|
StyledMenuTile.Trigger,
|
28275
28286
|
{
|
28276
28287
|
"data-testid": "participant_menu_btn",
|
28277
|
-
css: { bg:
|
28288
|
+
css: { bg: `${theme2.colors.background_dim.value}A3`, p: "$2", w: "unset", h: "unset" },
|
28278
28289
|
onClick: (e) => e.stopPropagation(),
|
28279
28290
|
className: dragClassName
|
28280
28291
|
},
|
@@ -28293,7 +28304,7 @@ var TileMenu = ({
|
|
28293
28304
|
borderBottom: "1px solid $border_default"
|
28294
28305
|
}
|
28295
28306
|
},
|
28296
|
-
/* @__PURE__ */ React127.createElement(Box, null, /* @__PURE__ */ React127.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal ?
|
28307
|
+
/* @__PURE__ */ React127.createElement(Box, null, /* @__PURE__ */ React127.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__ */ React127.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
|
28297
28308
|
/* @__PURE__ */ React127.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React127.createElement(CrossIcon24, null))
|
28298
28309
|
), /* @__PURE__ */ React127.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React127.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ React127.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React127.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ React127.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }), showRoleChangeModal && /* @__PURE__ */ React127.createElement(RoleChangeModal, { peerId: peerID, onOpenChange: setShowRoleChangeModal }));
|
28299
28310
|
};
|
@@ -28304,11 +28315,11 @@ init_define_process_env();
|
|
28304
28315
|
var PEER_NAME_PLACEHOLDER = "peerName";
|
28305
28316
|
var labelMap = /* @__PURE__ */ new Map([
|
28306
28317
|
[[true, "screen"].toString(), "Your Screen"],
|
28307
|
-
[[true, "regular"].toString(),
|
28308
|
-
[[false, "screen"].toString(),
|
28318
|
+
[[true, "regular"].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
28319
|
+
[[false, "screen"].toString(), `${PEER_NAME_PLACEHOLDER}'s Screen`],
|
28309
28320
|
[[false, "regular"].toString(), PEER_NAME_PLACEHOLDER],
|
28310
|
-
[[true, void 0].toString(),
|
28311
|
-
[[false, void 0].toString(),
|
28321
|
+
[[true, void 0].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
|
28322
|
+
[[false, void 0].toString(), `${PEER_NAME_PLACEHOLDER}`]
|
28312
28323
|
]);
|
28313
28324
|
var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
28314
28325
|
const isPeerPresent = peerName !== void 0;
|
@@ -28320,9 +28331,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
|
28320
28331
|
if (label) {
|
28321
28332
|
label = label.replace(PEER_NAME_PLACEHOLDER, peerName);
|
28322
28333
|
} else {
|
28323
|
-
label =
|
28334
|
+
label = `${peerName} ${track.source}`;
|
28324
28335
|
}
|
28325
|
-
return
|
28336
|
+
return `${label}${isLocallyMuted ? " (Muted for you)" : ""}`;
|
28326
28337
|
};
|
28327
28338
|
|
28328
28339
|
// src/Prebuilt/components/VideoTile.tsx
|
@@ -28389,7 +28400,7 @@ var Tile = ({
|
|
28389
28400
|
width,
|
28390
28401
|
height
|
28391
28402
|
}, rootCSS),
|
28392
|
-
"data-testid":
|
28403
|
+
"data-testid": `participant_tile_${peerName}`
|
28393
28404
|
},
|
28394
28405
|
peerName !== void 0 ? /* @__PURE__ */ React128.createElement(
|
28395
28406
|
StyledVideoTile.Container,
|
@@ -28499,10 +28510,10 @@ var Root25 = ({
|
|
28499
28510
|
p: "$5",
|
28500
28511
|
borderRadius: "$1",
|
28501
28512
|
bg: "$surface_bright",
|
28502
|
-
border:
|
28513
|
+
border: `4px solid ${isActive ? "$primary_default" : "$surface_dim"}`,
|
28503
28514
|
cursor: "pointer",
|
28504
28515
|
"&:hover": { border: "4px solid $primary_dim" }
|
28505
|
-
}, mediaURL ? { height: "$20", backgroundImage:
|
28516
|
+
}, mediaURL ? { height: "$20", backgroundImage: `url("${mediaURL}")`, backgroundSize: "cover" } : {}),
|
28506
28517
|
onClick: () => __async(void 0, null, function* () {
|
28507
28518
|
yield onClick == null ? void 0 : onClick();
|
28508
28519
|
})
|
@@ -28535,7 +28546,7 @@ var VBCollection = ({
|
|
28535
28546
|
VBOption.Root,
|
28536
28547
|
__spreadProps(__spreadValues({
|
28537
28548
|
key: option.value,
|
28538
|
-
testid: option.value === HMSVirtualBackgroundTypes3.IMAGE ?
|
28549
|
+
testid: option.value === HMSVirtualBackgroundTypes3.IMAGE ? `virtual_bg_option-${index}` : option.value
|
28539
28550
|
}, option), {
|
28540
28551
|
isActive: activeBackground === option.value
|
28541
28552
|
}),
|
@@ -28752,7 +28763,7 @@ var Wrapper3 = styled("div", {
|
|
28752
28763
|
},
|
28753
28764
|
"@md": {
|
28754
28765
|
p: "$6 $8",
|
28755
|
-
animation:
|
28766
|
+
animation: `${translateAcross({ yFrom: "100%" })} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
28756
28767
|
},
|
28757
28768
|
variants: {
|
28758
28769
|
landscapeStream: {
|
@@ -29028,7 +29039,7 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
29028
29039
|
return "You are the first to join";
|
29029
29040
|
}
|
29030
29041
|
const formattedNum = getFormattedCount(peerCount);
|
29031
|
-
return
|
29042
|
+
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
29032
29043
|
};
|
29033
29044
|
var useLocalTileAspectRatio = () => {
|
29034
29045
|
const localPeer = useHMSStore71(selectLocalPeer9);
|
@@ -29116,7 +29127,7 @@ var PreviewJoin = ({
|
|
29116
29127
|
textColor: "#FFF",
|
29117
29128
|
icon: /* @__PURE__ */ React136.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
|
29118
29129
|
}
|
29119
|
-
) : null, /* @__PURE__ */ React136.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React136.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React136.createElement(Box, { css: { w: "100%", maxWidth:
|
29130
|
+
) : null, /* @__PURE__ */ React136.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React136.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React136.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 340}px` } }, /* @__PURE__ */ React136.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ React136.createElement(
|
29120
29131
|
PreviewForm_default,
|
29121
29132
|
{
|
29122
29133
|
name,
|
@@ -29465,7 +29476,7 @@ var InsetTile = ({ peerId }) => {
|
|
29465
29476
|
const resizeObserver = new ResizeObserver((entries) => {
|
29466
29477
|
entries.forEach((entry) => {
|
29467
29478
|
if (entry.target === node.parentElement) {
|
29468
|
-
node.style.transform =
|
29479
|
+
node.style.transform = `translate(0,0)`;
|
29469
29480
|
}
|
29470
29481
|
});
|
29471
29482
|
});
|
@@ -29787,12 +29798,12 @@ var SecondarySection = ({
|
|
29787
29798
|
}
|
29788
29799
|
const gridStyles = hasSidebar ? {
|
29789
29800
|
gridTemplateColumns: "1fr",
|
29790
|
-
gridTemplateRows:
|
29801
|
+
gridTemplateRows: `repeat(${tiles.length}, minmax(0, 1fr))`,
|
29791
29802
|
maxHeight: "100%",
|
29792
29803
|
width: 240
|
29793
29804
|
} : {
|
29794
29805
|
gridTemplateRows: React145.Children.count(children) > 0 ? "136px auto" : "154px",
|
29795
|
-
gridTemplateColumns:
|
29806
|
+
gridTemplateColumns: `repeat(${tiles.length}, minmax(0, 1fr))`
|
29796
29807
|
};
|
29797
29808
|
return /* @__PURE__ */ React145.createElement(
|
29798
29809
|
Box,
|
@@ -29825,7 +29836,7 @@ var SecondarySection = ({
|
|
29825
29836
|
}, tileLayoutProps)
|
29826
29837
|
);
|
29827
29838
|
}),
|
29828
|
-
children && /* @__PURE__ */ React145.createElement(Box, { css: { gridColumn: hasSidebar ? 1 :
|
29839
|
+
children && /* @__PURE__ */ React145.createElement(Box, { css: { gridColumn: hasSidebar ? 1 : `1/span ${tiles.length}` } }, children)
|
29829
29840
|
);
|
29830
29841
|
};
|
29831
29842
|
var ProminenceLayout = {
|
@@ -30198,7 +30209,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
30198
30209
|
isFullScreenSupported && isMouseHovered ? /* @__PURE__ */ React150.createElement(
|
30199
30210
|
StyledVideoTile.FullScreenButton,
|
30200
30211
|
{
|
30201
|
-
css: { bg:
|
30212
|
+
css: { bg: `${theme2.colors.background_dim.value}A3` },
|
30202
30213
|
onClick: () => setFullscreen(!fullscreen)
|
30203
30214
|
},
|
30204
30215
|
isFullscreen ? /* @__PURE__ */ React150.createElement(ShrinkIcon2, null) : /* @__PURE__ */ React150.createElement(ExpandIcon3, null)
|
@@ -30213,7 +30224,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
30213
30224
|
h: "$14",
|
30214
30225
|
right: isFullScreenSupported ? "$17" : "$2",
|
30215
30226
|
zIndex: 5,
|
30216
|
-
bg:
|
30227
|
+
bg: `${theme2.colors.background_dim.value}A3`
|
30217
30228
|
}
|
30218
30229
|
},
|
30219
30230
|
/* @__PURE__ */ React150.createElement(LayoutModeSelector, null)
|
@@ -30311,7 +30322,7 @@ var WhiteboardEmbed = () => {
|
|
30311
30322
|
}
|
30312
30323
|
}
|
30313
30324
|
},
|
30314
|
-
/* @__PURE__ */ React152.createElement(Box, { css: { size: "100%" } }, /* @__PURE__ */ React152.createElement(Whiteboard, { token, endpoint:
|
30325
|
+
/* @__PURE__ */ React152.createElement(Box, { css: { size: "100%" } }, /* @__PURE__ */ React152.createElement(Whiteboard, { token, endpoint: `https://${endpoint}`, zoomToContent }))
|
30315
30326
|
);
|
30316
30327
|
};
|
30317
30328
|
var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
@@ -30597,7 +30608,7 @@ var EmbedComponent = () => {
|
|
30597
30608
|
} catch (err) {
|
30598
30609
|
resetConfig();
|
30599
30610
|
ToastManager.addToast({
|
30600
|
-
title:
|
30611
|
+
title: `Error while sharing embed url ${err.message || ""}`,
|
30601
30612
|
variant: "error"
|
30602
30613
|
});
|
30603
30614
|
}
|
@@ -30657,7 +30668,7 @@ var PDFView = () => {
|
|
30657
30668
|
} catch (err) {
|
30658
30669
|
resetConfig();
|
30659
30670
|
ToastManager.addToast({
|
30660
|
-
title:
|
30671
|
+
title: `Error while sharing annotator ${err.message || ""}`,
|
30661
30672
|
variant: "error"
|
30662
30673
|
});
|
30663
30674
|
}
|
@@ -30948,7 +30959,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30948
30959
|
};
|
30949
30960
|
|
30950
30961
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30951
|
-
var HLSView = React157.lazy(() =>
|
30962
|
+
var HLSView = React157.lazy(() => import("./HLSView-XY7JC5H7.js"));
|
30952
30963
|
var VideoStreamingSection = ({
|
30953
30964
|
screenType,
|
30954
30965
|
elements,
|
@@ -31133,7 +31144,7 @@ var CamaraFlipActions = () => {
|
|
31133
31144
|
yield actions.switchCamera();
|
31134
31145
|
} catch (e) {
|
31135
31146
|
ToastManager.addToast({
|
31136
|
-
title:
|
31147
|
+
title: `Error while flipping camera ${e.message || ""}`,
|
31137
31148
|
variant: "error"
|
31138
31149
|
});
|
31139
31150
|
}
|
@@ -31179,7 +31190,7 @@ var AudioActions = () => {
|
|
31179
31190
|
});
|
31180
31191
|
} catch (e) {
|
31181
31192
|
ToastManager.addToast({
|
31182
|
-
title:
|
31193
|
+
title: `Error while changing audio device ${e.message || ""}`,
|
31183
31194
|
variant: "error"
|
31184
31195
|
});
|
31185
31196
|
}
|
@@ -31383,7 +31394,7 @@ var ConferenceScreen = () => {
|
|
31383
31394
|
css: {
|
31384
31395
|
h: "$18",
|
31385
31396
|
transition: "margin 0.3s ease-in-out",
|
31386
|
-
marginTop: hideControlsForStreaming ?
|
31397
|
+
marginTop: hideControlsForStreaming ? `-${(_b7 = headerRef.current) == null ? void 0 : _b7.clientHeight}px` : "none",
|
31387
31398
|
"@md": {
|
31388
31399
|
h: "$17"
|
31389
31400
|
}
|
@@ -31427,7 +31438,7 @@ var ConferenceScreen = () => {
|
|
31427
31438
|
maxHeight: "$24",
|
31428
31439
|
transition: "margin 0.3s ease-in-out",
|
31429
31440
|
bg: "$background_dim",
|
31430
|
-
marginBottom: hideControlsForStreaming ?
|
31441
|
+
marginBottom: hideControlsForStreaming ? `-${(_f = footerRef.current) == null ? void 0 : _f.clientHeight}px` : void 0,
|
31431
31442
|
"@md": {
|
31432
31443
|
maxHeight: "unset",
|
31433
31444
|
bg: screenProps.screenType === "hls_live_streaming" ? "transparent" : "$background_dim"
|
@@ -31474,7 +31485,7 @@ var ErrorBoundary = class extends Component {
|
|
31474
31485
|
this.state = { error: null, errorInfo: null, isErrorCopied: false };
|
31475
31486
|
}
|
31476
31487
|
componentDidCatch(error, errorInfo) {
|
31477
|
-
console.error(
|
31488
|
+
console.error(`react error boundary - ${error.message}`, error, errorInfo);
|
31478
31489
|
this.setState({
|
31479
31490
|
error: error == null ? void 0 : error.message,
|
31480
31491
|
errorInfo
|
@@ -31595,7 +31606,7 @@ var Init = () => {
|
|
31595
31606
|
useEffect62(() => {
|
31596
31607
|
function resetHeight() {
|
31597
31608
|
var _a7;
|
31598
|
-
document.body.style.height =
|
31609
|
+
document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
|
31599
31610
|
}
|
31600
31611
|
window.addEventListener("resize", resetHeight);
|
31601
31612
|
resetHeight();
|
@@ -31910,7 +31921,7 @@ var FeedbackHeader = ({
|
|
31910
31921
|
gap: "$4"
|
31911
31922
|
},
|
31912
31923
|
onClick: () => onEmojiClicked(index),
|
31913
|
-
key:
|
31924
|
+
key: `${index}`
|
31914
31925
|
},
|
31915
31926
|
/* @__PURE__ */ React164.createElement(
|
31916
31927
|
Text,
|
@@ -32002,7 +32013,7 @@ var FeedbackForm = ({
|
|
32002
32013
|
/* @__PURE__ */ React164.createElement(
|
32003
32014
|
Checkbox.Root,
|
32004
32015
|
{
|
32005
|
-
id:
|
32016
|
+
id: `${option}-${index}`,
|
32006
32017
|
checked: selectedReasons.has(index),
|
32007
32018
|
onCheckedChange: (checked) => handleCheckedChange(checked, index),
|
32008
32019
|
css: {
|
@@ -32339,7 +32350,7 @@ var ChatNotifications = () => {
|
|
32339
32350
|
const notification = {
|
32340
32351
|
id: uuid4(),
|
32341
32352
|
icon: chatState.enabled ? /* @__PURE__ */ React170.createElement(ChatUnreadIcon, null) : /* @__PURE__ */ React170.createElement(ChatIcon2, null),
|
32342
|
-
title:
|
32353
|
+
title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
|
32343
32354
|
};
|
32344
32355
|
ToastManager.addToast(notification);
|
32345
32356
|
}, [chatState, localPeerId]);
|
@@ -32428,13 +32439,13 @@ var ToastConfig = {
|
|
32428
32439
|
single: function(notification) {
|
32429
32440
|
var _a7;
|
32430
32441
|
return {
|
32431
|
-
title:
|
32442
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
|
32432
32443
|
icon: /* @__PURE__ */ React171.createElement(PeopleAddIcon4, null)
|
32433
32444
|
};
|
32434
32445
|
},
|
32435
32446
|
multiple: function(notifications) {
|
32436
32447
|
return {
|
32437
|
-
title:
|
32448
|
+
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
32438
32449
|
icon: /* @__PURE__ */ React171.createElement(PeopleAddIcon4, null)
|
32439
32450
|
};
|
32440
32451
|
}
|
@@ -32443,13 +32454,13 @@ var ToastConfig = {
|
|
32443
32454
|
single: function(notification) {
|
32444
32455
|
var _a7;
|
32445
32456
|
return {
|
32446
|
-
title:
|
32457
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
|
32447
32458
|
icon: /* @__PURE__ */ React171.createElement(PeopleRemoveIcon4, null)
|
32448
32459
|
};
|
32449
32460
|
},
|
32450
32461
|
multiple: function(notifications) {
|
32451
32462
|
return {
|
32452
|
-
title:
|
32463
|
+
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
32453
32464
|
icon: /* @__PURE__ */ React171.createElement(PeopleRemoveIcon4, null)
|
32454
32465
|
};
|
32455
32466
|
}
|
@@ -32458,7 +32469,7 @@ var ToastConfig = {
|
|
32458
32469
|
single: (notification) => {
|
32459
32470
|
var _a7;
|
32460
32471
|
return {
|
32461
|
-
title:
|
32472
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
32462
32473
|
icon: /* @__PURE__ */ React171.createElement(HandIcon6, null)
|
32463
32474
|
};
|
32464
32475
|
},
|
@@ -32469,7 +32480,7 @@ var ToastConfig = {
|
|
32469
32480
|
return (_a8 = notification.data) == null ? void 0 : _a8.id;
|
32470
32481
|
})).size;
|
32471
32482
|
return {
|
32472
|
-
title:
|
32483
|
+
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
32473
32484
|
icon: /* @__PURE__ */ React171.createElement(HandIcon6, null)
|
32474
32485
|
};
|
32475
32486
|
}
|
@@ -32478,7 +32489,7 @@ var ToastConfig = {
|
|
32478
32489
|
single: (notification) => {
|
32479
32490
|
var _a7, _b7;
|
32480
32491
|
return {
|
32481
|
-
title:
|
32492
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
32482
32493
|
icon: /* @__PURE__ */ React171.createElement(HandIcon6, null),
|
32483
32494
|
action: /* @__PURE__ */ React171.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
32484
32495
|
};
|
@@ -32490,7 +32501,7 @@ var ToastConfig = {
|
|
32490
32501
|
return (_a8 = notification.data) == null ? void 0 : _a8.id;
|
32491
32502
|
})).size;
|
32492
32503
|
return {
|
32493
|
-
title:
|
32504
|
+
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
32494
32505
|
icon: /* @__PURE__ */ React171.createElement(HandIcon6, null),
|
32495
32506
|
action: /* @__PURE__ */ React171.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
32496
32507
|
};
|
@@ -32500,14 +32511,14 @@ var ToastConfig = {
|
|
32500
32511
|
single: (notification) => {
|
32501
32512
|
var _a7;
|
32502
32513
|
return {
|
32503
|
-
title:
|
32514
|
+
title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
|
32504
32515
|
icon: /* @__PURE__ */ React171.createElement(ChatUnreadIcon2, null),
|
32505
32516
|
action: /* @__PURE__ */ React171.createElement(ChatAction, null)
|
32506
32517
|
};
|
32507
32518
|
},
|
32508
32519
|
multiple: (notifications) => {
|
32509
32520
|
return {
|
32510
|
-
title:
|
32521
|
+
title: `${notifications.length} new messages`,
|
32511
32522
|
icon: /* @__PURE__ */ React171.createElement(ChatUnreadIcon2, null),
|
32512
32523
|
action: /* @__PURE__ */ React171.createElement(ChatAction, null)
|
32513
32524
|
};
|
@@ -32516,7 +32527,7 @@ var ToastConfig = {
|
|
32516
32527
|
RECONNECTED: {
|
32517
32528
|
single: (online) => {
|
32518
32529
|
return {
|
32519
|
-
title:
|
32530
|
+
title: `You are now ${online ? "online" : "connected"}`,
|
32520
32531
|
icon: /* @__PURE__ */ React171.createElement(ConnectivityIcon, null),
|
32521
32532
|
variant: "success",
|
32522
32533
|
duration: 3e3
|
@@ -32526,7 +32537,9 @@ var ToastConfig = {
|
|
32526
32537
|
RECONNECTING: {
|
32527
32538
|
single: (message) => {
|
32528
32539
|
return {
|
32529
|
-
title:
|
32540
|
+
title: `You are offline for now. while we try to reconnect, please check
|
32541
|
+
your internet connection. ${message}.
|
32542
|
+
`,
|
32530
32543
|
icon: /* @__PURE__ */ React171.createElement(PoorConnectivityIcon2, null),
|
32531
32544
|
variant: "warning",
|
32532
32545
|
duration: 3e4
|
@@ -32634,7 +32647,7 @@ var HandRaisedNotifications = () => {
|
|
32634
32647
|
const peer = vanillaStore.getState(selectPeerByID6(notification.data.id));
|
32635
32648
|
const handRaisedPeers = vanillaStore.getState(selectHandRaisedPeers2);
|
32636
32649
|
if (amIScreenSharing && hasPeerHandRaised) {
|
32637
|
-
const title =
|
32650
|
+
const title = `${peer == null ? void 0 : peer.name} ${handRaisedPeers.length > 1 ? `and ${handRaisedPeers.length - 1} others` : ""} raised hand`;
|
32638
32651
|
showNotification(title, { icon: logoURL });
|
32639
32652
|
}
|
32640
32653
|
},
|
@@ -32689,7 +32702,7 @@ var PeerNotifications = () => {
|
|
32689
32702
|
if (!(notification == null ? void 0 : notification.data)) {
|
32690
32703
|
return;
|
32691
32704
|
}
|
32692
|
-
console.debug(
|
32705
|
+
console.debug(`[${notification.type}]`, notification);
|
32693
32706
|
switch (notification.type) {
|
32694
32707
|
case HMSNotificationTypes4.PEER_JOINED:
|
32695
32708
|
if (!isPeerJoinSubscribed) {
|
@@ -32780,7 +32793,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32780
32793
|
) : null,
|
32781
32794
|
/* @__PURE__ */ React173.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
32782
32795
|
),
|
32783
|
-
/* @__PURE__ */ React173.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 ?
|
32796
|
+
/* @__PURE__ */ React173.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),
|
32784
32797
|
isMobile && isIOS ? /* @__PURE__ */ React173.createElement(React173.Fragment, null, /* @__PURE__ */ React173.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
32785
32798
|
isMobile && isAndroid ? /* @__PURE__ */ React173.createElement(React173.Fragment, null, /* @__PURE__ */ React173.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
32786
32799
|
!isMobile ? /* @__PURE__ */ React173.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
@@ -32862,7 +32875,7 @@ var TrackBulkUnmuteModal = () => {
|
|
32862
32875
|
RequestDialog,
|
32863
32876
|
{
|
32864
32877
|
title: "Unmute request",
|
32865
|
-
body:
|
32878
|
+
body: `${peer == null ? void 0 : peer.name} is requesting you to unmute your ${Array.from(types).join(",")}`,
|
32866
32879
|
onOpenChange: (value) => !value && setMuteNotification(null),
|
32867
32880
|
onAction: () => {
|
32868
32881
|
tracks.forEach((track) => {
|
@@ -32889,7 +32902,7 @@ var TrackNotifications = () => {
|
|
32889
32902
|
const notification = useHMSNotifications8(notificationTypes3);
|
32890
32903
|
useEffect72(() => {
|
32891
32904
|
if (notification) {
|
32892
|
-
console.debug(
|
32905
|
+
console.debug(`[${notification.type}]`, notification);
|
32893
32906
|
}
|
32894
32907
|
}, [notification]);
|
32895
32908
|
return null;
|
@@ -32934,9 +32947,9 @@ var TrackUnmuteModal = () => {
|
|
32934
32947
|
return /* @__PURE__ */ React175.createElement(
|
32935
32948
|
RequestDialog,
|
32936
32949
|
{
|
32937
|
-
title:
|
32950
|
+
title: `Unmute your ${track.type}?`,
|
32938
32951
|
onOpenChange: (value) => !value && setMuteNotification(null),
|
32939
|
-
body:
|
32952
|
+
body: `${peer == null ? void 0 : peer.name}is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
|
32940
32953
|
onAction: () => {
|
32941
32954
|
hmsActions.setEnabledTrack(track.id, enabled);
|
32942
32955
|
setMuteNotification(null);
|
@@ -32959,7 +32972,7 @@ var TranscriptionNotifications = () => {
|
|
32959
32972
|
if (!(notification == null ? void 0 : notification.data)) {
|
32960
32973
|
return;
|
32961
32974
|
}
|
32962
|
-
console.debug(
|
32975
|
+
console.debug(`[${notification.type}]`, notification);
|
32963
32976
|
const transcriptionStates = notification.data;
|
32964
32977
|
if (transcriptionStates.length > 0) {
|
32965
32978
|
let id = "";
|
@@ -32967,21 +32980,21 @@ var TranscriptionNotifications = () => {
|
|
32967
32980
|
({ error }) => !!error,
|
32968
32981
|
() => {
|
32969
32982
|
id = ToastManager.replaceToast(toastId, {
|
32970
|
-
title:
|
32983
|
+
title: `Failed to enable Closed Caption`,
|
32971
32984
|
variant: "error",
|
32972
32985
|
icon: /* @__PURE__ */ React176.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
|
32973
32986
|
});
|
32974
32987
|
}
|
32975
32988
|
).with({ state: HMSTranscriptionState.STARTED }, () => {
|
32976
32989
|
id = ToastManager.replaceToast(toastId, {
|
32977
|
-
title:
|
32990
|
+
title: `Closed Captioning enabled for everyone`,
|
32978
32991
|
variant: "standard",
|
32979
32992
|
duration: 2e3,
|
32980
32993
|
icon: /* @__PURE__ */ React176.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
|
32981
32994
|
});
|
32982
32995
|
}).with({ state: HMSTranscriptionState.STOPPED }, () => {
|
32983
32996
|
id = ToastManager.replaceToast(toastId, {
|
32984
|
-
title:
|
32997
|
+
title: `Closed Captioning disabled for everyone`,
|
32985
32998
|
variant: "standard",
|
32986
32999
|
duration: 2e3,
|
32987
33000
|
icon: /* @__PURE__ */ React176.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
|
@@ -33012,7 +33025,7 @@ function Notifications() {
|
|
33012
33025
|
const { pipWindow } = usePIPWindow();
|
33013
33026
|
const handleRoleChangeDenied = useCallback36((request) => {
|
33014
33027
|
ToastManager.addToast({
|
33015
|
-
title:
|
33028
|
+
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
33016
33029
|
variant: "error"
|
33017
33030
|
});
|
33018
33031
|
}, []);
|
@@ -33030,7 +33043,7 @@ function Notifications() {
|
|
33030
33043
|
if (((_a8 = notification.data) == null ? void 0 : _a8.isTerminal) && ((_b8 = notification.data) == null ? void 0 : _b8.action) !== "INIT") {
|
33031
33044
|
if ([500, 6008].includes((_c = notification.data) == null ? void 0 : _c.code)) {
|
33032
33045
|
ToastManager.addToast({
|
33033
|
-
title:
|
33046
|
+
title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
|
33034
33047
|
});
|
33035
33048
|
} else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
|
33036
33049
|
ToastManager.addToast({
|
@@ -33055,13 +33068,13 @@ function Notifications() {
|
|
33055
33068
|
if (!subscribedNotifications.ERROR)
|
33056
33069
|
return;
|
33057
33070
|
ToastManager.addToast({
|
33058
|
-
title:
|
33071
|
+
title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
|
33059
33072
|
});
|
33060
33073
|
break;
|
33061
33074
|
case HMSNotificationTypes11.ROLE_UPDATED: {
|
33062
33075
|
if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
33063
33076
|
ToastManager.addToast({
|
33064
|
-
title:
|
33077
|
+
title: `You are now a ${notification.data.roleName}`
|
33065
33078
|
});
|
33066
33079
|
updateRoomLayoutForRole == null ? void 0 : updateRoomLayoutForRole(notification.data.roleName);
|
33067
33080
|
}
|
@@ -33071,14 +33084,16 @@ function Notifications() {
|
|
33071
33084
|
const track = (_o2 = notification.data) == null ? void 0 : _o2.track;
|
33072
33085
|
if (!notification.data.enabled) {
|
33073
33086
|
ToastManager.addToast({
|
33074
|
-
title:
|
33087
|
+
title: `Your ${track.source} ${track.type} was muted by
|
33088
|
+
${(_p = notification.data.requestedBy) == null ? void 0 : _p.name}.`
|
33075
33089
|
});
|
33076
33090
|
}
|
33077
33091
|
break;
|
33078
33092
|
case HMSNotificationTypes11.REMOVED_FROM_ROOM:
|
33079
33093
|
case HMSNotificationTypes11.ROOM_ENDED:
|
33080
33094
|
ToastManager.addToast({
|
33081
|
-
title:
|
33095
|
+
title: `${notification.message}.
|
33096
|
+
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
33082
33097
|
});
|
33083
33098
|
break;
|
33084
33099
|
case HMSNotificationTypes11.DEVICE_CHANGE_UPDATE:
|
@@ -33090,7 +33105,7 @@ function Notifications() {
|
|
33090
33105
|
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
33091
33106
|
const pollStartedBy = vanillaStore.getState(selectPeerNameByID7(notification.data.startedBy)) || "Participant";
|
33092
33107
|
const pollToastID = ToastManager.addToast({
|
33093
|
-
title:
|
33108
|
+
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
33094
33109
|
action: /* @__PURE__ */ React177.createElement(
|
33095
33110
|
Button,
|
33096
33111
|
{
|
@@ -33119,7 +33134,7 @@ function Notifications() {
|
|
33119
33134
|
break;
|
33120
33135
|
case HMSNotificationTypes11.NEW_MESSAGE:
|
33121
33136
|
if (amIScreenSharing && !((_q = notification.data) == null ? void 0 : _q.ignored) && !pipWindow) {
|
33122
|
-
showNotification(
|
33137
|
+
showNotification(`New message from ${notification.data.senderName}`, {
|
33123
33138
|
body: notification.data.message,
|
33124
33139
|
icon: logoURL
|
33125
33140
|
});
|
@@ -33344,7 +33359,7 @@ function FlyingEmoji() {
|
|
33344
33359
|
id,
|
33345
33360
|
emojiId,
|
33346
33361
|
senderName: nameToShow,
|
33347
|
-
startingPoint:
|
33362
|
+
startingPoint: `${startingPoint}%`,
|
33348
33363
|
wiggleType: Math.random() < 0.5 ? 0 : 1
|
33349
33364
|
}
|
33350
33365
|
];
|
@@ -33385,7 +33400,7 @@ function FlyingEmoji() {
|
|
33385
33400
|
alignItems: "center",
|
33386
33401
|
position: "absolute",
|
33387
33402
|
bottom: 0,
|
33388
|
-
animation:
|
33403
|
+
animation: `${flyAndFade()} 5s forwards, ${emoji.wiggleType === 0 ? wiggleLeftRight() : wiggleRightLeft()} 1s ease-in-out infinite alternate`
|
33389
33404
|
},
|
33390
33405
|
onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
|
33391
33406
|
},
|
@@ -33545,7 +33560,11 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33545
33560
|
screens
|
33546
33561
|
};
|
33547
33562
|
if (!roomCode && !authToken) {
|
33548
|
-
console.error(
|
33563
|
+
console.error(`
|
33564
|
+
HMSPrebuilt can be initialised by providing:
|
33565
|
+
either "roomCode" or "authToken".
|
33566
|
+
Please check if you are providing the above values for initialising prebuilt.
|
33567
|
+
`);
|
33549
33568
|
throw Error("Incorrect initializing params for HMSPrebuilt component");
|
33550
33569
|
}
|
33551
33570
|
if (!hydrated) {
|
@@ -33587,12 +33606,12 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33587
33606
|
const { typography: typography2 } = layout || {};
|
33588
33607
|
let fontFamily = ["sans-serif"];
|
33589
33608
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
33590
|
-
fontFamily = [
|
33609
|
+
fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
|
33591
33610
|
}
|
33592
33611
|
return /* @__PURE__ */ React186.createElement(
|
33593
33612
|
HMSThemeProvider,
|
33594
33613
|
{
|
33595
|
-
themeType:
|
33614
|
+
themeType: `${theme2.name}-${Date.now()}`,
|
33596
33615
|
theme: {
|
33597
33616
|
//@ts-ignore: Prebuilt theme to match stiches theme
|
33598
33617
|
colors: theme2.palette,
|
@@ -33936,7 +33955,7 @@ var MicTest = ({ setError }) => {
|
|
33936
33955
|
Progress.Content,
|
33937
33956
|
{
|
33938
33957
|
style: {
|
33939
|
-
transform:
|
33958
|
+
transform: `translateX(-${100 - audioLevel}%)`,
|
33940
33959
|
transition: "transform 0.3s"
|
33941
33960
|
}
|
33942
33961
|
}
|
@@ -34002,79 +34021,79 @@ var operatingSystemIconInfo = {
|
|
34002
34021
|
tizen: {
|
34003
34022
|
key: "tizen",
|
34004
34023
|
val: "Tizen",
|
34005
|
-
icon:
|
34024
|
+
icon: `${CMS_MEDIA_SERVER}cms/Tizen_b99350214e/Tizen_b99350214e.svg`
|
34006
34025
|
},
|
34007
34026
|
"mac os": {
|
34008
34027
|
key: "macos",
|
34009
34028
|
val: "Mac OS",
|
34010
|
-
icon:
|
34029
|
+
icon: `${CMS_MEDIA_SERVER}cms/mac_OS_804456afd8/mac_OS_804456afd8.png`
|
34011
34030
|
},
|
34012
34031
|
windows: {
|
34013
34032
|
key: "windows",
|
34014
34033
|
val: "Windows",
|
34015
|
-
icon:
|
34034
|
+
icon: `${CMS_MEDIA_SERVER}cms/Windows_fdfe6749b6/Windows_fdfe6749b6.svg`
|
34016
34035
|
},
|
34017
34036
|
linux: {
|
34018
34037
|
key: "linux",
|
34019
34038
|
val: "Linux",
|
34020
|
-
icon:
|
34039
|
+
icon: `${CMS_MEDIA_SERVER}cms/Linux_31f8353a2e/Linux_31f8353a2e.svg`
|
34021
34040
|
},
|
34022
34041
|
chromium: {
|
34023
34042
|
key: "chromium",
|
34024
34043
|
val: "Chromium",
|
34025
|
-
icon:
|
34044
|
+
icon: `${CMS_MEDIA_SERVER}cms/Chromium_3df17710bd/Chromium_3df17710bd.svg`
|
34026
34045
|
},
|
34027
34046
|
ubuntu: {
|
34028
34047
|
key: "ubuntu",
|
34029
34048
|
val: "Ubuntu",
|
34030
|
-
icon:
|
34049
|
+
icon: `${CMS_MEDIA_SERVER}cms/Ubuntu_966dd923c5/Ubuntu_966dd923c5.svg`
|
34031
34050
|
},
|
34032
34051
|
ios: {
|
34033
34052
|
key: "ios",
|
34034
34053
|
val: "iOS",
|
34035
|
-
icon:
|
34054
|
+
icon: `${CMS_MEDIA_SERVER}cms/i_OS_3cdc9d9b71/i_OS_3cdc9d9b71.svg`
|
34036
34055
|
},
|
34037
34056
|
android: {
|
34038
34057
|
key: "android",
|
34039
34058
|
val: "Android",
|
34040
|
-
icon:
|
34059
|
+
icon: `${CMS_MEDIA_SERVER}cms/Android_49dcfdc934/Android_49dcfdc934.svg`
|
34041
34060
|
}
|
34042
34061
|
};
|
34043
34062
|
var browserTypeIconInfo = {
|
34044
34063
|
brave: {
|
34045
34064
|
key: "brave",
|
34046
34065
|
val: "Brave",
|
34047
|
-
icon:
|
34066
|
+
icon: `${CMS_MEDIA_SERVER}cms/Brave_7e66131f09/Brave_7e66131f09.svg`
|
34048
34067
|
},
|
34049
34068
|
chrome: {
|
34050
34069
|
key: "chrome",
|
34051
34070
|
val: "Chrome",
|
34052
|
-
icon:
|
34071
|
+
icon: `${CMS_MEDIA_SERVER}cms/Chrome_7bf77fbdd7/Chrome_7bf77fbdd7.svg`
|
34053
34072
|
},
|
34054
34073
|
firefox: {
|
34055
34074
|
key: "firefox",
|
34056
34075
|
val: "Firefox",
|
34057
|
-
icon:
|
34076
|
+
icon: `${CMS_MEDIA_SERVER}cms/Firefox_30f3976fb8/Firefox_30f3976fb8.svg`
|
34058
34077
|
},
|
34059
34078
|
safari: {
|
34060
34079
|
key: "safari",
|
34061
34080
|
val: "Safari",
|
34062
|
-
icon:
|
34081
|
+
icon: `${CMS_MEDIA_SERVER}cms/Safari_254e74ed94/Safari_254e74ed94.svg`
|
34063
34082
|
},
|
34064
34083
|
"mobile safari": {
|
34065
34084
|
key: "safari",
|
34066
34085
|
val: "Safari",
|
34067
|
-
icon:
|
34086
|
+
icon: `${CMS_MEDIA_SERVER}cms/Safari_254e74ed94/Safari_254e74ed94.svg`
|
34068
34087
|
},
|
34069
34088
|
edge: {
|
34070
34089
|
key: "edge",
|
34071
34090
|
val: "Edge",
|
34072
|
-
icon:
|
34091
|
+
icon: `${CMS_MEDIA_SERVER}cms/Edge_23add4a83f/Edge_23add4a83f.svg`
|
34073
34092
|
},
|
34074
34093
|
opera: {
|
34075
34094
|
key: "opera",
|
34076
34095
|
val: "Opera",
|
34077
|
-
icon:
|
34096
|
+
icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
|
34078
34097
|
}
|
34079
34098
|
};
|
34080
34099
|
var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React191.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React191.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React191.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React191.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React191.createElement(Text, null, value)));
|
@@ -34095,14 +34114,14 @@ var BrowserTest = () => {
|
|
34095
34114
|
{
|
34096
34115
|
title: "Browser",
|
34097
34116
|
iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
|
34098
|
-
value:
|
34117
|
+
value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
|
34099
34118
|
}
|
34100
34119
|
), /* @__PURE__ */ React191.createElement(
|
34101
34120
|
CheckDetails,
|
34102
34121
|
{
|
34103
34122
|
title: "Operating system",
|
34104
34123
|
iconURL: parsedUserAgent4.getOS().name && ((_d = operatingSystemIconInfo[(_c = parsedUserAgent4.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
|
34105
|
-
value:
|
34124
|
+
value: `${parsedUserAgent4.getOS().name} ${parsedUserAgent4.getOS().version}`
|
34106
34125
|
}
|
34107
34126
|
)), /* @__PURE__ */ React191.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
|
34108
34127
|
};
|
@@ -34190,7 +34209,7 @@ var MediaServerResult = ({ result }) => {
|
|
34190
34209
|
DetailedInfo,
|
34191
34210
|
{
|
34192
34211
|
title: "Connection Quality Score (CQS)",
|
34193
|
-
value:
|
34212
|
+
value: `${result.connectionQualityScore.toFixed(2)} (out of 5)`
|
34194
34213
|
}
|
34195
34214
|
) : null)
|
34196
34215
|
);
|
@@ -34206,10 +34225,10 @@ var SignallingResult = ({ result }) => {
|
|
34206
34225
|
), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
|
34207
34226
|
};
|
34208
34227
|
var AudioStats = ({ stats }) => {
|
34209
|
-
return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Round Trip Time", value:
|
34228
|
+
return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
34210
34229
|
};
|
34211
34230
|
var VideoStats = ({ stats }) => {
|
34212
|
-
return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Round Trip Time", value:
|
34231
|
+
return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
34213
34232
|
};
|
34214
34233
|
var Footer3 = ({
|
34215
34234
|
error,
|
@@ -34239,7 +34258,7 @@ var ConnectivityTestReport = ({
|
|
34239
34258
|
variant: "body2",
|
34240
34259
|
css: { c: "$on_primary_medium", mt: "$4" }
|
34241
34260
|
},
|
34242
|
-
|
34261
|
+
`${ConnectivityStateMessage[progress]}...`
|
34243
34262
|
));
|
34244
34263
|
}
|
34245
34264
|
return null;
|
@@ -34325,7 +34344,7 @@ var downloadJson = (obj, fileName) => {
|
|
34325
34344
|
type: "application/json"
|
34326
34345
|
});
|
34327
34346
|
a2.href = URL.createObjectURL(file);
|
34328
|
-
a2.download =
|
34347
|
+
a2.download = `${fileName}.json`;
|
34329
34348
|
a2.click();
|
34330
34349
|
};
|
34331
34350
|
|
@@ -34625,4 +34644,4 @@ object-assign/index.js:
|
|
34625
34644
|
@license MIT
|
34626
34645
|
*)
|
34627
34646
|
*/
|
34628
|
-
//# sourceMappingURL=chunk-
|
34647
|
+
//# sourceMappingURL=chunk-5XRSIFEH.js.map
|