@100mslive/roomkit-react 0.3.12 → 0.3.13-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-C2U74KCJ.js → HLSView-KYYL6BSY.js} +2 -2
- package/dist/{HLSView-ZPNPCOF2.css → HLSView-RVU2AEOU.css} +3 -3
- package/dist/{HLSView-ZPNPCOF2.css.map → HLSView-RVU2AEOU.css.map} +1 -1
- package/dist/Prebuilt/common/constants.d.ts +1 -0
- package/dist/Prebuilt/plugins/CaptionsViewer.d.ts +5 -1
- package/dist/{chunk-K7H5ZUXQ.js → chunk-ESKXLCLX.js} +291 -226
- package/dist/chunk-ESKXLCLX.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +258 -192
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +52 -32
- package/dist/meta.esbuild.json +62 -42
- package/package.json +8 -8
- package/src/Prebuilt/common/constants.ts +1 -0
- package/src/Prebuilt/components/AppData/AppData.tsx +9 -1
- package/src/Prebuilt/components/AppData/useUISettings.js +10 -0
- package/src/Prebuilt/components/AudioVideoToggle.tsx +27 -8
- package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +3 -0
- package/src/Prebuilt/components/Streaming/Common.jsx +5 -4
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +5 -7
- package/src/Prebuilt/plugins/CaptionsViewer.tsx +47 -25
- package/dist/chunk-K7H5ZUXQ.js.map +0 -7
- /package/dist/{HLSView-C2U74KCJ.js.map → HLSView-KYYL6BSY.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
109
109
|
var define_process_env_default;
|
110
110
|
var init_define_process_env = __esm({
|
111
111
|
"<define:process.env>"() {
|
112
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_49a91c9a-fb5c-46d7-b008-4d503026ad26", GIT_CLONE_PROTECTION_ACTIVE: "false", 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.2", 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.3 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.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_49a91c9a-fb5c-46d7-b008-4d503026ad26", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.12", 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.8", 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.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240526.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.3/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:19489", 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.12", 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: "9386918450", 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: "c1b1df2d10e69653f9edee4c00742b842bad96c7", 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: "b603e0172dc6d05403694173fa5911938d28cdf7132adb0b1c5c7a75faab348e", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1717601243943-0.5279902183164238:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1717601243750-0.09406696046617924:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1717601218508-0.6920677746271662:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1717601218329-0.5128781935683171:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f1970ab4-e204-4d96-9154-7af99783e6c7", INVOCATION_ID: "bb217afd31e74a639a2443a2f5f1cd6f", 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: "566", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 335", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.12", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.12", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "c1b1df2d10e69653f9edee4c00742b842bad96c7", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_49a91c9a-fb5c-46d7-b008-4d503026ad26", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_49a91c9a-fb5c-46d7-b008-4d503026ad26", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.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__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_49a91c9a-fb5c-46d7-b008-4d503026ad26" };
|
112
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_52a0c376-736e-43fa-8130-d8d1753534f4", 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.3-alpha.1", 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.3 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.13-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_52a0c376-736e-43fa-8130-d8d1753534f4", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.13-alpha.1", 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.9", 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.8", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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: "593", 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.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240609.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.4/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:3991", 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.13-alpha.1", 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: "true", GITHUB_RUN_ID: "9495709193", 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: "bb6605c7147547550e46be6a5108dae4efe81eb8", 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: "dc6805143ccee34fdc7ceb7e67477d8789779698388a7fceec4bb10949a7de21", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/WEB-1453", 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--1718264793550-0.40514503810584857:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718264793350-0.815323746911168:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718264767371-0.9220153593663762:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718264767189-0.09728910461807883:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_9a499a9b-b760-49ee-9935-4ec8d75d25a0", INVOCATION_ID: "db45fa9a51bf41d8a2f476c2c84b6703", 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: "571", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 74", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "WEB-1453", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "true", 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/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.13-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.13-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "false", 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: "bb6605c7147547550e46be6a5108dae4efe81eb8", 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/WEB-1453", GITHUB_ACTOR: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_52a0c376-736e-43fa-8130-d8d1753534f4", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", 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_52a0c376-736e-43fa-8130-d8d1753534f4", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.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__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_52a0c376-736e-43fa-8130-d8d1753534f4" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -399,7 +399,8 @@ var init_constants = __esm({
|
|
399
399
|
background: "background",
|
400
400
|
sheet: "sheet",
|
401
401
|
caption: "caption",
|
402
|
-
loadingEffects: "loadingEffects"
|
402
|
+
loadingEffects: "loadingEffects",
|
403
|
+
noiseCancellation: "noiseCancellation"
|
403
404
|
};
|
404
405
|
UI_SETTINGS = {
|
405
406
|
isAudioOnly: "isAudioOnly",
|
@@ -2790,11 +2791,11 @@ var init_formatBytes = __esm({
|
|
2790
2791
|
return "-";
|
2791
2792
|
}
|
2792
2793
|
const k = 1024;
|
2793
|
-
const
|
2794
|
+
const dm = decimals < 0 ? 0 : decimals;
|
2794
2795
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
2795
2796
|
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
2796
2797
|
i === 0 && i++;
|
2797
|
-
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(
|
2798
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;
|
2798
2799
|
};
|
2799
2800
|
}
|
2800
2801
|
});
|
@@ -3877,7 +3878,7 @@ var init_useUserPreferences = __esm({
|
|
3877
3878
|
});
|
3878
3879
|
|
3879
3880
|
// src/Prebuilt/components/AppData/useUISettings.js
|
3880
|
-
var import_react29, import_react_sdk7, useUISettings, useSetUiSettings, useAuthToken, useUrlToEmbed, usePDFConfig, useResetPDFConfig, useResetEmbedConfig, usePinnedTrack, useSubscribedNotifications, useIsNotificationDisabled, useSetSubscribedNotifications, useIsCaptionEnabled, useSetIsCaptionEnabled, useSubscribeChatSelector, useSetSubscribedChatSelector, useSetAppDataByKey, useSetAppData, useShowPolls, usePollViewState;
|
3881
|
+
var import_react29, import_react_sdk7, useUISettings, useSetUiSettings, useAuthToken, useUrlToEmbed, usePDFConfig, useResetPDFConfig, useResetEmbedConfig, usePinnedTrack, useSubscribedNotifications, useIsNotificationDisabled, useSetSubscribedNotifications, useIsCaptionEnabled, useSetIsCaptionEnabled, useSubscribeChatSelector, useSetSubscribedChatSelector, useSetAppDataByKey, useSetAppData, useShowPolls, usePollViewState, useIsNoiseCancellationEnabled, useSetNoiseCancellationEnabled;
|
3881
3882
|
var init_useUISettings = __esm({
|
3882
3883
|
"src/Prebuilt/components/AppData/useUISettings.js"() {
|
3883
3884
|
"use strict";
|
@@ -4023,6 +4024,14 @@ var init_useUISettings = __esm({
|
|
4023
4024
|
view: pollState == null ? void 0 : pollState.view
|
4024
4025
|
};
|
4025
4026
|
};
|
4027
|
+
useIsNoiseCancellationEnabled = () => {
|
4028
|
+
const IsNoiseCancellationEnabled = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppDataByPath)(APP_DATA.noiseCancellation));
|
4029
|
+
return IsNoiseCancellationEnabled;
|
4030
|
+
};
|
4031
|
+
useSetNoiseCancellationEnabled = () => {
|
4032
|
+
const [isNoiseCancellationEnabled, setNoiseCancellationEnabled] = useSetAppDataByKey(APP_DATA.noiseCancellation);
|
4033
|
+
return [isNoiseCancellationEnabled, setNoiseCancellationEnabled];
|
4034
|
+
};
|
4026
4035
|
}
|
4027
4036
|
});
|
4028
4037
|
|
@@ -10091,10 +10100,11 @@ var init_AppData = __esm({
|
|
10091
10100
|
[POLL_STATE.view]: ""
|
10092
10101
|
},
|
10093
10102
|
// by default on because of on demand now, for beam disabled
|
10094
|
-
[APP_DATA.caption]: false
|
10103
|
+
[APP_DATA.caption]: false,
|
10104
|
+
[APP_DATA.noiseCancellation]: false
|
10095
10105
|
};
|
10096
10106
|
AppData = import_react35.default.memo(() => {
|
10097
|
-
var _a8;
|
10107
|
+
var _a8, _b7;
|
10098
10108
|
const hmsActions = (0, import_react_sdk11.useHMSActions)();
|
10099
10109
|
const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
|
10100
10110
|
const appData = (0, import_react_sdk11.useHMSStore)(import_react_sdk11.selectFullAppData);
|
@@ -10102,6 +10112,13 @@ var init_AppData = __esm({
|
|
10102
10112
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
10103
10113
|
const { isLocalVideoEnabled } = (0, import_react_sdk11.useAVToggle)();
|
10104
10114
|
const sidepaneOpenedRef = (0, import_react35.useRef)(false);
|
10115
|
+
const [, setNoiseCancellationEnabled] = useSetNoiseCancellationEnabled();
|
10116
|
+
(0, import_react35.useEffect)(() => {
|
10117
|
+
var _a9;
|
10118
|
+
if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
|
10119
|
+
setNoiseCancellationEnabled(true);
|
10120
|
+
}
|
10121
|
+
}, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
|
10105
10122
|
const defaultMediaURL = (0, import_react35.useMemo)(() => {
|
10106
10123
|
var _a9;
|
10107
10124
|
const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
|
@@ -10111,7 +10128,7 @@ var init_AppData = __esm({
|
|
10111
10128
|
}
|
10112
10129
|
}
|
10113
10130
|
return "";
|
10114
|
-
}, [(
|
10131
|
+
}, [(_b7 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _b7.background_media]);
|
10115
10132
|
(0, import_react35.useEffect)(() => {
|
10116
10133
|
hmsActions.initAppData(__spreadValues(__spreadValues({}, initialAppData), appData));
|
10117
10134
|
hmsActions.setFrameworkInfo({
|
@@ -11285,6 +11302,7 @@ var init_AudioVideoToggle = __esm({
|
|
11285
11302
|
init_Tooltip2();
|
11286
11303
|
init_IconButton3();
|
11287
11304
|
init_useRoomLayoutScreen();
|
11305
|
+
init_useUISettings();
|
11288
11306
|
init_useAudioOutputTest();
|
11289
11307
|
init_constants();
|
11290
11308
|
Options = ({
|
@@ -11334,23 +11352,23 @@ var init_AudioVideoToggle = __esm({
|
|
11334
11352
|
plugin = new import_hms_noise_cancellation.HMSKrispPlugin();
|
11335
11353
|
NoiseCancellation = () => {
|
11336
11354
|
const localPeerAudioTrackID = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectLocalAudioTrackID);
|
11355
|
+
const [enabled, setEnabled] = useSetNoiseCancellationEnabled();
|
11337
11356
|
const isPluginAdded = (0, import_react_sdk14.useHMSStore)((0, import_react_sdk14.selectIsLocalAudioPluginPresent)(plugin.getName()));
|
11338
|
-
const [active, setActive] = (0, import_react45.useState)(isPluginAdded);
|
11339
11357
|
const [inProgress, setInProgress] = (0, import_react45.useState)(false);
|
11340
11358
|
const actions = (0, import_react_sdk14.useHMSActions)();
|
11341
11359
|
const room = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectRoom);
|
11342
11360
|
(0, import_react45.useEffect)(() => {
|
11343
11361
|
(() => __async(void 0, null, function* () {
|
11344
11362
|
setInProgress(true);
|
11345
|
-
if (
|
11363
|
+
if (enabled && !isPluginAdded) {
|
11346
11364
|
yield actions.addPluginToAudioTrack(plugin);
|
11347
11365
|
}
|
11348
|
-
if (!
|
11366
|
+
if (!enabled && isPluginAdded) {
|
11349
11367
|
yield actions.removePluginFromAudioTrack(plugin);
|
11350
11368
|
}
|
11351
11369
|
setInProgress(false);
|
11352
11370
|
}))();
|
11353
|
-
}, [actions,
|
11371
|
+
}, [actions, enabled, isPluginAdded]);
|
11354
11372
|
if (!plugin.isSupported() || !room.isNoiseCancellationEnabled || !localPeerAudioTrackID) {
|
11355
11373
|
return null;
|
11356
11374
|
}
|
@@ -11365,7 +11383,7 @@ var init_AudioVideoToggle = __esm({
|
|
11365
11383
|
},
|
11366
11384
|
onClick: (e) => {
|
11367
11385
|
e.preventDefault();
|
11368
|
-
|
11386
|
+
setEnabled(!enabled);
|
11369
11387
|
}
|
11370
11388
|
},
|
11371
11389
|
/* @__PURE__ */ import_react45.default.createElement(Text, { css: { display: "flex", alignItems: "center", gap: "$2", fontSize: "$xs", "& svg": { size: "$8" } } }, /* @__PURE__ */ import_react45.default.createElement(import_react_icons13.AudioLevelIcon, null), "Reduce Noise"),
|
@@ -11373,11 +11391,11 @@ var init_AudioVideoToggle = __esm({
|
|
11373
11391
|
Switch,
|
11374
11392
|
{
|
11375
11393
|
id: "noise_cancellation",
|
11376
|
-
checked:
|
11394
|
+
checked: enabled && isPluginAdded,
|
11377
11395
|
disabled: inProgress,
|
11378
11396
|
onClick: (e) => e.stopPropagation(),
|
11379
11397
|
onCheckedChange: (value) => {
|
11380
|
-
|
11398
|
+
setEnabled(value);
|
11381
11399
|
}
|
11382
11400
|
}
|
11383
11401
|
)
|
@@ -11443,6 +11461,23 @@ var init_AudioVideoToggle = __esm({
|
|
11443
11461
|
const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype && Number(audioOutput == null ? void 0 : audioOutput.length) > 0;
|
11444
11462
|
const { screenType } = useRoomLayoutConferencingScreen();
|
11445
11463
|
const [showSettings, setShowSettings] = (0, import_react45.useState)(false);
|
11464
|
+
const isPluginAdded = (0, import_react_sdk14.useHMSStore)((0, import_react_sdk14.selectIsLocalAudioPluginPresent)(plugin.getName()));
|
11465
|
+
const isNoiseCancellationEnabled = useIsNoiseCancellationEnabled();
|
11466
|
+
(0, import_react45.useEffect)(() => {
|
11467
|
+
(() => __async(void 0, null, function* () {
|
11468
|
+
if (isNoiseCancellationEnabled && !isPluginAdded) {
|
11469
|
+
yield actions.addPluginToAudioTrack(plugin);
|
11470
|
+
}
|
11471
|
+
if (isNoiseCancellationEnabled && isPluginAdded) {
|
11472
|
+
ToastManager.addToast({
|
11473
|
+
title: `Noise Reduction Enabled`,
|
11474
|
+
variant: "standard",
|
11475
|
+
duration: 2e3,
|
11476
|
+
icon: /* @__PURE__ */ import_react45.default.createElement(import_react_icons13.AudioLevelIcon, null)
|
11477
|
+
});
|
11478
|
+
}
|
11479
|
+
}))();
|
11480
|
+
}, [actions, isNoiseCancellationEnabled, isPluginAdded]);
|
11446
11481
|
if (!toggleAudio && !toggleVideo) {
|
11447
11482
|
return null;
|
11448
11483
|
}
|
@@ -13560,10 +13595,10 @@ var init_StatsForNerds = __esm({
|
|
13560
13595
|
if (bytes === 0)
|
13561
13596
|
return "0 " + unit;
|
13562
13597
|
const k = 1024;
|
13563
|
-
const
|
13598
|
+
const dm = decimals < 0 ? 0 : decimals;
|
13564
13599
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
13565
13600
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
13566
|
-
return parseFloat((bytes / Math.pow(k, i)).toFixed(
|
13601
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
|
13567
13602
|
};
|
13568
13603
|
}
|
13569
13604
|
});
|
@@ -13778,6 +13813,7 @@ var init_CaptionContent = __esm({
|
|
13778
13813
|
yield actions.stopTranscription({
|
13779
13814
|
mode: import_react_sdk27.HMSTranscriptionMode.CAPTION
|
13780
13815
|
});
|
13816
|
+
setIsCaptionEnabled(false);
|
13781
13817
|
const id2 = ToastManager.replaceToast(toastId, {
|
13782
13818
|
title: `Disabling Closed Caption for everyone.`,
|
13783
13819
|
variant: "standard",
|
@@ -13805,6 +13841,8 @@ var init_CaptionContent = __esm({
|
|
13805
13841
|
icon: /* @__PURE__ */ import_react65.default.createElement(import_react_icons26.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
13806
13842
|
});
|
13807
13843
|
setToastId(id);
|
13844
|
+
} finally {
|
13845
|
+
setIsCaptionEnabled(true);
|
13808
13846
|
}
|
13809
13847
|
onExit();
|
13810
13848
|
})
|
@@ -19838,13 +19876,13 @@ function Qt(a2, e = 300) {
|
|
19838
19876
|
function R(a2) {
|
19839
19877
|
return (e) => (t) => a2(t, e);
|
19840
19878
|
}
|
19841
|
-
function
|
19879
|
+
function Em(a2) {
|
19842
19880
|
return (e) => {
|
19843
19881
|
if (e.sessionStore)
|
19844
19882
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19845
19883
|
};
|
19846
19884
|
}
|
19847
|
-
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, _t, import_eventemitter24, import_uuid9, import_uuid10, _a7, Na, Oa, Wt, qr, jr, Kr, S,
|
19885
|
+
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, _t, import_eventemitter24, import_uuid9, import_uuid10, _a7, Na, Oa, Wt, qr, jr, Kr, S, M, er, Ba, cr, tr, Va, Jr, ir, Qr, Xr, Ga, d, he, N, Zr, Le, $a, Fn, es, ts, rs, ss, Ve, y, f, qa, m, ar, as, ne, os, cs, ds, H, v, lr, j, ur, pr, hr, Ss, gs, Ts, fs, vs, Ms, mr, ks, Sr, As, gr, Tr, bs, Hs, pt, Qe, U, go, Hh, Ch, W, ni, Us, _, Rr, To, He, wh, fo, ue, vo, Y, fe, _h, Nh, ie, J, Mo, Vs, Oh, xh, Hr, yo, Bh, Vh, Fh, Gh, Wh, $h, Kh, qh, gt, Po, jh, X, Gs, Jh, Qh, pe, zh, Ye, Eo, Ws, Yh, $s, Xh, Zh, em, tm, im, rm, sm, am, om, Ks, lm, ko, um, js, Cr, Js, Qs, zs, Ys, Xs, Zs, ea, ta, Tt, E, Lr, ft, ia, Ao, Io, $, Dr, Ro, bo, Ho, Co, Lo, Q, Pm, Am, Im, ci, ra, Rm, bm, Hm, Do, wo, Lm, sa, Dm, _o, wm, _m, Nm, Om, xm, Um, aa, oa, Vm, Fm, na, Gm, Wm, ca, $m, Km, qm, da, la, No, Oo, xo, jm, Jm, Qm, zm, Ym, ua, dS, Uo, lS, uS, pS, Vo, Fo, xr, Me, K, Fi, zi, cn, dn, ln, un, Ca, pn, La, Gr, Pe, hn, mn, Sn, gn, Tn, fn, vn, Mn, yn, Pn, Wr, En, kn, An, In, Rn, bn;
|
19848
19886
|
var init_dist = __esm({
|
19849
19887
|
"../hms-video-store/dist/index.js"() {
|
19850
19888
|
"use strict";
|
@@ -19887,7 +19925,7 @@ var init_dist = __esm({
|
|
19887
19925
|
jr.call(e, t) && Kr(a2, t, e[t]);
|
19888
19926
|
return a2;
|
19889
19927
|
};
|
19890
|
-
|
19928
|
+
M = (a2, e) => Na(a2, Oa(e));
|
19891
19929
|
er = (a2, e) => {
|
19892
19930
|
var t = {};
|
19893
19931
|
for (var i in a2)
|
@@ -19899,7 +19937,7 @@ var init_dist = __esm({
|
|
19899
19937
|
};
|
19900
19938
|
Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19901
19939
|
cr = Ba((Ic, Ja) => {
|
19902
|
-
Ja.exports = { version: "0.12.
|
19940
|
+
Ja.exports = { version: "0.12.13-alpha.1", 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"] };
|
19903
19941
|
});
|
19904
19942
|
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 || {});
|
19905
19943
|
Va = ((e) => (e.CHAT = "chat", e))(Va || {});
|
@@ -19982,7 +20020,7 @@ var init_dist = __esm({
|
|
19982
20020
|
rs = ((ts = (es = he.getBrowser()) == null ? void 0 : es.name) == null ? void 0 : ts.toLowerCase()) === "firefox";
|
19983
20021
|
ss = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ss || {});
|
19984
20022
|
Ve = Ka();
|
19985
|
-
|
20023
|
+
y = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
19986
20024
|
f = class a extends Error {
|
19987
20025
|
constructor(t, i, r, s, o, n = false) {
|
19988
20026
|
super(s);
|
@@ -20014,97 +20052,97 @@ var init_dist = __esm({
|
|
20014
20052
|
};
|
20015
20053
|
qa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
20016
20054
|
m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
20017
|
-
return new f(
|
20055
|
+
return new f(y.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
20018
20056
|
}, WebSocketConnectionLost(a2, e = "") {
|
20019
|
-
return new f(
|
20057
|
+
return new f(y.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
20020
20058
|
}, AbnormalClose(a2, e = "") {
|
20021
|
-
return new f(
|
20059
|
+
return new f(y.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
20022
20060
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
20023
20061
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
20024
20062
|
}, EndpointUnreachable(a2, e = "") {
|
20025
|
-
return new f(
|
20063
|
+
return new f(y.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
20026
20064
|
}, InvalidTokenFormat(a2, e = "") {
|
20027
|
-
return new f(
|
20065
|
+
return new f(y.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
20028
20066
|
}, InitConfigNotAvailable(a2, e = "") {
|
20029
|
-
return new f(
|
20067
|
+
return new f(y.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
20030
20068
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
20031
|
-
return new f(
|
20069
|
+
return new f(y.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
20032
20070
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
20033
|
-
return new f(
|
20071
|
+
return new f(y.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
20034
20072
|
}, DeviceNotAvailable(a2, e, t = "") {
|
20035
|
-
return new f(
|
20073
|
+
return new f(y.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
20036
20074
|
}, DeviceInUse(a2, e, t = "") {
|
20037
|
-
return new f(
|
20075
|
+
return new f(y.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
20038
20076
|
}, DeviceLostMidway(a2, e, t = "") {
|
20039
|
-
return new f(
|
20077
|
+
return new f(y.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
20040
20078
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
20041
|
-
return new f(
|
20079
|
+
return new f(y.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
20042
20080
|
}, InvalidVideoSettings(a2, e = "") {
|
20043
|
-
return new f(
|
20081
|
+
return new f(y.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
20044
20082
|
}, AutoplayBlocked(a2, e = "") {
|
20045
|
-
return new f(
|
20083
|
+
return new f(y.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
20046
20084
|
}, CodecChangeNotPermitted(a2, e = "") {
|
20047
|
-
return new f(
|
20085
|
+
return new f(y.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
20048
20086
|
}, OverConstrained(a2, e, t = "") {
|
20049
|
-
return new f(
|
20087
|
+
return new f(y.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
20050
20088
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
20051
|
-
return new f(
|
20089
|
+
return new f(y.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
20052
20090
|
}, SystemDeniedPermission(a2, e, t = "") {
|
20053
|
-
return new f(
|
20091
|
+
return new f(y.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
20054
20092
|
}, CurrentTabNotShared() {
|
20055
|
-
return new f(
|
20093
|
+
return new f(y.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");
|
20056
20094
|
}, AudioPlaybackError(a2) {
|
20057
|
-
return new f(
|
20095
|
+
return new f(y.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
20058
20096
|
}, SelectedDeviceMissing(a2) {
|
20059
|
-
return new f(
|
20097
|
+
return new f(y.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
20060
20098
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
20061
|
-
return new f(
|
20099
|
+
return new f(y.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
20062
20100
|
}, CreateAnswerFailed(a2, e = "") {
|
20063
|
-
return new f(
|
20101
|
+
return new f(y.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
20064
20102
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
20065
|
-
return new f(
|
20103
|
+
return new f(y.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
20066
20104
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
20067
|
-
return new f(
|
20105
|
+
return new f(y.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
20068
20106
|
}, ICEFailure(a2, e = "", t = false) {
|
20069
|
-
return new f(
|
20107
|
+
return new f(y.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
20070
20108
|
}, ICEDisconnected(a2, e = "") {
|
20071
|
-
return new f(
|
20109
|
+
return new f(y.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
20072
20110
|
}, StatsFailed(a2, e = "") {
|
20073
|
-
return new f(
|
20111
|
+
return new f(y.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
20074
20112
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
20075
20113
|
return new f(a2, "ServerErrors", e, t, t, qa.includes(e));
|
20076
20114
|
}, AlreadyJoined(a2, e = "") {
|
20077
|
-
return new f(
|
20115
|
+
return new f(y.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
20078
20116
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
20079
|
-
return new f(
|
20117
|
+
return new f(y.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
20080
20118
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
20081
|
-
return new f(
|
20119
|
+
return new f(y.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
20082
20120
|
}, Signalling(a2, e) {
|
20083
|
-
return new f(
|
20121
|
+
return new f(y.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
20084
20122
|
}, Unknown(a2, e) {
|
20085
|
-
return new f(
|
20123
|
+
return new f(y.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
20086
20124
|
}, NotReady(a2, e = "") {
|
20087
|
-
return new f(
|
20125
|
+
return new f(y.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
20088
20126
|
}, JsonParsingFailed(a2, e, t = "") {
|
20089
|
-
return new f(
|
20127
|
+
return new f(y.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
20090
20128
|
}, TrackMetadataMissing(a2, e = "") {
|
20091
|
-
return new f(
|
20129
|
+
return new f(y.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
20092
20130
|
}, RTCTrackMissing(a2, e = "") {
|
20093
|
-
return new f(
|
20131
|
+
return new f(y.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
20094
20132
|
}, PeerMetadataMissing(a2, e = "") {
|
20095
|
-
return new f(
|
20133
|
+
return new f(y.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
20096
20134
|
}, ValidationFailed(a2, e) {
|
20097
|
-
return new f(
|
20135
|
+
return new f(y.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
20098
20136
|
}, InvalidRole(a2, e) {
|
20099
|
-
return new f(
|
20137
|
+
return new f(y.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
20100
20138
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
20101
|
-
return new f(
|
20139
|
+
return new f(y.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
20102
20140
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
20103
|
-
return new f(
|
20141
|
+
return new f(y.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
20104
20142
|
}, MissingMediaDevices() {
|
20105
|
-
return new f(
|
20143
|
+
return new f(y.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
|
20106
20144
|
}, MissingRTCPeerConnection() {
|
20107
|
-
return new f(
|
20145
|
+
return new f(y.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
|
20108
20146
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
20109
20147
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
20110
20148
|
}, InitFailed(a2, e = "") {
|
@@ -20116,9 +20154,9 @@ var init_dist = __esm({
|
|
20116
20154
|
}, DeviceNotSupported(a2, e = "") {
|
20117
20155
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
20118
20156
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
20119
|
-
return new f(
|
20157
|
+
return new f(y.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
20120
20158
|
}, NoEntryPlaying(a2, e) {
|
20121
|
-
return new f(
|
20159
|
+
return new f(y.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
20122
20160
|
} } };
|
20123
20161
|
ar = class {
|
20124
20162
|
constructor() {
|
@@ -20185,93 +20223,99 @@ var init_dist = __esm({
|
|
20185
20223
|
};
|
20186
20224
|
cs = cr().version;
|
20187
20225
|
ds = (a2, e = ",") => Object.keys(a2).filter((t) => re(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
20188
|
-
|
20226
|
+
H = class {
|
20189
20227
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
20190
20228
|
this.metadata = { peer: {}, userAgent: ot() };
|
20191
20229
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = os();
|
20192
20230
|
}
|
20193
20231
|
toSignalParams() {
|
20194
|
-
return { name: this.name, info:
|
20232
|
+
return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
20195
20233
|
}
|
20196
20234
|
};
|
20197
|
-
|
20235
|
+
v = class {
|
20198
20236
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
20199
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(
|
20200
|
-
return new
|
20237
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
20238
|
+
return new H({ name: o, level: n, properties: l });
|
20201
20239
|
}
|
20202
20240
|
static disconnect(e, t) {
|
20203
20241
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
20204
|
-
return new
|
20242
|
+
return new H({ name: i, level: r, properties: s });
|
20205
20243
|
}
|
20206
20244
|
static preview(i) {
|
20207
20245
|
var r = i, { error: e } = r, t = er(r, ["error"]);
|
20208
20246
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
20209
|
-
return new
|
20247
|
+
return new H({ name: s, level: o, properties: n });
|
20210
20248
|
}
|
20211
20249
|
static join(i) {
|
20212
20250
|
var r = i, { error: e } = r, t = er(r, ["error"]);
|
20213
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
20214
|
-
return new
|
20251
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
20252
|
+
return new H({ name: s, level: o, properties: n });
|
20215
20253
|
}
|
20216
20254
|
static publish({ devices: e, settings: t, error: i }) {
|
20217
20255
|
let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
|
20218
|
-
return new
|
20256
|
+
return new H({ name: r, level: s, properties: o });
|
20219
20257
|
}
|
20220
20258
|
static hlsPlayerError(e) {
|
20221
|
-
return new
|
20259
|
+
return new H({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
|
20222
20260
|
}
|
20223
20261
|
static subscribeFail(e) {
|
20224
20262
|
let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
|
20225
|
-
return new
|
20263
|
+
return new H({ name: t, level: i, properties: r });
|
20226
20264
|
}
|
20227
20265
|
static leave() {
|
20228
|
-
return new
|
20266
|
+
return new H({ name: "leave", level: 1 });
|
20229
20267
|
}
|
20230
20268
|
static autoplayError() {
|
20231
|
-
return new
|
20269
|
+
return new H({ name: "autoplayError", level: 2 });
|
20232
20270
|
}
|
20233
20271
|
static audioPlaybackError(e) {
|
20234
|
-
return new
|
20272
|
+
return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
20235
20273
|
}
|
20236
20274
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
20237
20275
|
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
20238
|
-
return new
|
20276
|
+
return new H({ name: o, level: n, properties: l });
|
20239
20277
|
}
|
20240
20278
|
static performance(e) {
|
20241
20279
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
20242
|
-
return new
|
20280
|
+
return new H({ name: t, level: i, properties: r });
|
20243
20281
|
}
|
20244
20282
|
static rtcStats(e) {
|
20245
20283
|
let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
|
20246
|
-
return new
|
20284
|
+
return new H({ name: t, level: i, properties: r });
|
20247
20285
|
}
|
20248
20286
|
static rtcStatsFailed(e) {
|
20249
20287
|
let t = "rtc.stats.failed", i = 2;
|
20250
|
-
return new
|
20288
|
+
return new H({ name: t, level: i, properties: this.getErrorProperties(e) });
|
20251
20289
|
}
|
20252
20290
|
static degradationStats(e, t) {
|
20253
20291
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
20254
20292
|
if (!t && e.degradedAt instanceof Date) {
|
20255
20293
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
20256
|
-
s =
|
20294
|
+
s = M(S({}, s), { duration: n, restoredAt: o });
|
20257
20295
|
}
|
20258
|
-
return new
|
20296
|
+
return new H({ name: i, level: r, properties: s });
|
20259
20297
|
}
|
20260
20298
|
static audioDetectionFail(e, t) {
|
20261
20299
|
let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
|
20262
|
-
return new
|
20300
|
+
return new H({ name: s, level: r, properties: i });
|
20263
20301
|
}
|
20264
20302
|
static previewNetworkQuality(e) {
|
20265
|
-
return new
|
20303
|
+
return new H({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
|
20266
20304
|
}
|
20267
20305
|
static publishStats(e) {
|
20268
|
-
return new
|
20306
|
+
return new H({ name: "publisher.stats", level: 1, properties: e });
|
20269
20307
|
}
|
20270
20308
|
static subscribeStats(e) {
|
20271
|
-
return new
|
20309
|
+
return new H({ name: "subscriber.stats", level: 1, properties: e });
|
20272
20310
|
}
|
20273
20311
|
static getKrispUsage(e) {
|
20274
|
-
return new
|
20312
|
+
return new H({ name: "krisp.usage", level: 1, properties: { duration: e } });
|
20313
|
+
}
|
20314
|
+
static krispStart() {
|
20315
|
+
return new H({ name: "krisp.start", level: 1 });
|
20316
|
+
}
|
20317
|
+
static krispStop() {
|
20318
|
+
return new H({ name: "krisp.stop", level: 1 });
|
20275
20319
|
}
|
20276
20320
|
static eventNameFor(e, t) {
|
20277
20321
|
return `${e}.${t ? "success" : "failed"}`;
|
@@ -20284,7 +20328,7 @@ var init_dist = __esm({
|
|
20284
20328
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
20285
20329
|
}
|
20286
20330
|
};
|
20287
|
-
|
20331
|
+
v.KEY_REQUESTED_AT = "requested_at", v.KEY_RESPONDED_AT = "responded_at";
|
20288
20332
|
lr = class {
|
20289
20333
|
constructor() {
|
20290
20334
|
this.storage = new ne("hms-device-selection");
|
@@ -20395,8 +20439,8 @@ var init_dist = __esm({
|
|
20395
20439
|
Qe.makePeerId = () => (0, import_uuid7.v4)();
|
20396
20440
|
U = (a2) => a2.room;
|
20397
20441
|
go = (a2) => a2.errors;
|
20398
|
-
|
20399
|
-
|
20442
|
+
Hh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
|
20443
|
+
Ch = createSelector(U, (a2) => a2.id);
|
20400
20444
|
W = (a2) => a2.peers;
|
20401
20445
|
ni = (a2) => a2.messages.byID;
|
20402
20446
|
Us = (a2) => a2.messages.allIDs;
|
@@ -20404,14 +20448,14 @@ var init_dist = __esm({
|
|
20404
20448
|
Rr = (a2) => a2.appData;
|
20405
20449
|
To = (a2) => a2.speakers;
|
20406
20450
|
He = createSelector([U], (a2) => a2 && a2.isConnected);
|
20407
|
-
|
20451
|
+
wh = createSelector([He, U], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
20408
20452
|
fo = (a2) => a2.hideLocalPeer;
|
20409
20453
|
ue = createSelector([U, W, fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
20410
20454
|
vo = createSelector(_, (a2) => Object.values(a2));
|
20411
20455
|
Y = createSelector(U, W, (a2, e) => e[a2.localPeer]);
|
20412
20456
|
fe = createSelector(U, (a2) => a2.localPeer);
|
20413
|
-
|
20414
|
-
|
20457
|
+
_h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
|
20458
|
+
Nh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
|
20415
20459
|
ie = createSelector(Y, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
20416
20460
|
J = createSelector(Y, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
20417
20461
|
Mo = createSelector(Y, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
@@ -20419,8 +20463,8 @@ var init_dist = __esm({
|
|
20419
20463
|
let i = t ? [...t] : [];
|
20420
20464
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
20421
20465
|
});
|
20422
|
-
|
20423
|
-
|
20466
|
+
Oh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
|
20467
|
+
xh = createSelector(W, To, (a2, e) => {
|
20424
20468
|
let t = Object.entries(e).sort((i, r) => {
|
20425
20469
|
var n, l;
|
20426
20470
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -20447,15 +20491,15 @@ var init_dist = __esm({
|
|
20447
20491
|
}
|
20448
20492
|
return t;
|
20449
20493
|
});
|
20450
|
-
|
20451
|
-
|
20494
|
+
Bh = createSelector(yo, (a2) => !!a2);
|
20495
|
+
Vh = createSelector(W, _, (a2, e) => {
|
20452
20496
|
for (let t in a2) {
|
20453
20497
|
let i = a2[t], { audio: r, video: s } = Ce(e, i);
|
20454
20498
|
if (!s && r)
|
20455
20499
|
return i;
|
20456
20500
|
}
|
20457
20501
|
});
|
20458
|
-
|
20502
|
+
Fh = createSelector(W, _, (a2, e) => {
|
20459
20503
|
let t = [], i = [];
|
20460
20504
|
for (let r in a2) {
|
20461
20505
|
let s = a2[r], { video: o, audio: n } = Ce(e, s);
|
@@ -20463,23 +20507,23 @@ var init_dist = __esm({
|
|
20463
20507
|
}
|
20464
20508
|
return t.concat(i);
|
20465
20509
|
});
|
20466
|
-
|
20510
|
+
Gh = createSelector(W, _, (a2, e) => {
|
20467
20511
|
for (let t in e) {
|
20468
20512
|
let i = e[t];
|
20469
20513
|
if (st(i) && rt(i) && i.peerId)
|
20470
20514
|
return a2[i.peerId];
|
20471
20515
|
}
|
20472
20516
|
});
|
20473
|
-
|
20517
|
+
Wh = createSelector(W, _, (a2, e) => {
|
20474
20518
|
for (let t in e) {
|
20475
20519
|
let i = e[t];
|
20476
20520
|
if (qt(i) && i.peerId)
|
20477
20521
|
return a2[i.peerId];
|
20478
20522
|
}
|
20479
20523
|
});
|
20480
|
-
|
20481
|
-
|
20482
|
-
|
20524
|
+
$h = createSelector(vo, (a2) => a2.filter(zr));
|
20525
|
+
Kh = createSelector(Us, (a2) => a2.length);
|
20526
|
+
qh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
20483
20527
|
gt = createSelector(Us, ni, (a2, e) => {
|
20484
20528
|
let t = [];
|
20485
20529
|
return a2.forEach((i) => {
|
@@ -20490,37 +20534,37 @@ var init_dist = __esm({
|
|
20490
20534
|
var t;
|
20491
20535
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
20492
20536
|
}));
|
20493
|
-
|
20537
|
+
jh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
|
20494
20538
|
X = createSelector([U], (a2) => a2 && a2.roomState);
|
20495
20539
|
Gs = createSelector(X, (a2) => a2 === "Preview");
|
20496
|
-
|
20497
|
-
|
20540
|
+
Jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
|
20541
|
+
Qh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
20498
20542
|
pe = (a2) => a2.roles;
|
20499
|
-
|
20543
|
+
zh = createSelector([pe], (a2) => Object.keys(a2));
|
20500
20544
|
Ye = createSelector([Y, pe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
20501
20545
|
Eo = (a2) => {
|
20502
20546
|
var e;
|
20503
20547
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
20504
20548
|
};
|
20505
20549
|
Ws = createSelector([Eo, pe], (a2, e) => a2 ? e[a2] : null);
|
20506
|
-
|
20550
|
+
Yh = createSelector([Ye], (a2) => {
|
20507
20551
|
var e;
|
20508
20552
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
20509
20553
|
});
|
20510
20554
|
$s = createSelector(Ye, (a2) => a2 == null ? void 0 : a2.permissions);
|
20511
|
-
|
20512
|
-
|
20513
|
-
|
20514
|
-
|
20515
|
-
|
20516
|
-
|
20517
|
-
|
20518
|
-
|
20519
|
-
|
20555
|
+
Xh = createSelector(U, (a2) => a2.recording);
|
20556
|
+
Zh = createSelector(U, (a2) => a2.rtmp);
|
20557
|
+
em = createSelector(U, (a2) => a2.hls);
|
20558
|
+
tm = createSelector(U, (a2) => a2.transcriptions);
|
20559
|
+
im = createSelector(U, (a2) => a2.sessionId);
|
20560
|
+
rm = createSelector(U, (a2) => a2.startedAt);
|
20561
|
+
sm = createSelector(U, (a2) => !!a2.isLargeRoom);
|
20562
|
+
am = createSelector(U, (a2) => !!a2.isEffectsEnabled);
|
20563
|
+
om = createSelector(U, (a2) => a2.effectsKey);
|
20520
20564
|
Ks = (a2) => a2.polls;
|
20521
|
-
|
20565
|
+
lm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
|
20522
20566
|
ko = (a2) => a2.whiteboards;
|
20523
|
-
|
20567
|
+
um = createSelector(ko, (a2) => Object.values(a2)[0]);
|
20524
20568
|
js = (a2 = "audio") => (e) => e.playlist[a2].list;
|
20525
20569
|
Cr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
20526
20570
|
Js = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
@@ -20634,17 +20678,17 @@ var init_dist = __esm({
|
|
20634
20678
|
});
|
20635
20679
|
Lo = createSelector([Ks, Io], (a2, e) => e ? a2[e] : null);
|
20636
20680
|
Q = R($);
|
20637
|
-
|
20681
|
+
Pm = R(createSelector([Rr, Ao], (a2, e) => {
|
20638
20682
|
if (a2)
|
20639
20683
|
return e ? a2[e] : a2;
|
20640
20684
|
}));
|
20641
|
-
|
20642
|
-
|
20685
|
+
Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
|
20686
|
+
Im = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
|
20643
20687
|
ci = R(Dr);
|
20644
20688
|
ra = R(Ro);
|
20645
|
-
|
20646
|
-
|
20647
|
-
|
20689
|
+
Rm = R(bo);
|
20690
|
+
bm = R(Ho);
|
20691
|
+
Hm = R(Co);
|
20648
20692
|
Do = R((a2, e) => {
|
20649
20693
|
let t = $(a2, e);
|
20650
20694
|
if (t && t.videoTrack && t.videoTrack !== "")
|
@@ -20655,43 +20699,43 @@ var init_dist = __esm({
|
|
20655
20699
|
if (t && t.audioTrack && t.audioTrack !== "")
|
20656
20700
|
return a2.tracks[t.audioTrack];
|
20657
20701
|
});
|
20658
|
-
|
20702
|
+
Lm = R((a2, e) => {
|
20659
20703
|
let t = $(a2, e);
|
20660
20704
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
20661
20705
|
});
|
20662
20706
|
sa = (a2, e) => e ? a2.speakers[e] : null;
|
20663
|
-
|
20707
|
+
Dm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20664
20708
|
_o = (a2, e) => {
|
20665
20709
|
let t = wo(e)(a2);
|
20666
20710
|
return sa(a2, t == null ? void 0 : t.id);
|
20667
20711
|
};
|
20668
|
-
|
20669
|
-
|
20712
|
+
wm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20713
|
+
_m = R((a2, e) => {
|
20670
20714
|
if (e)
|
20671
20715
|
return a2.connectionQualities[e];
|
20672
20716
|
});
|
20673
|
-
|
20717
|
+
Nm = R((a2, e) => {
|
20674
20718
|
let t = $(a2, e);
|
20675
20719
|
if (t) {
|
20676
20720
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
|
20677
20721
|
return i ? a2.tracks[i] : void 0;
|
20678
20722
|
}
|
20679
20723
|
});
|
20680
|
-
|
20724
|
+
Om = R(createSelector(_, $, (a2, e) => {
|
20681
20725
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20682
20726
|
let r = a2[i];
|
20683
20727
|
return st(r) && rt(r);
|
20684
20728
|
});
|
20685
20729
|
return t ? a2[t] : void 0;
|
20686
20730
|
}));
|
20687
|
-
|
20731
|
+
xm = R(createSelector(_, $, (a2, e) => {
|
20688
20732
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20689
20733
|
let r = a2[i];
|
20690
20734
|
return st(r) && it(r);
|
20691
20735
|
});
|
20692
20736
|
return t ? a2[t] : void 0;
|
20693
20737
|
}));
|
20694
|
-
|
20738
|
+
Um = R(createSelector(_, $, (a2, e) => {
|
20695
20739
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20696
20740
|
let r = a2[i];
|
20697
20741
|
return qt(r) && it(r);
|
@@ -20700,11 +20744,11 @@ var init_dist = __esm({
|
|
20700
20744
|
}));
|
20701
20745
|
aa = R(createSelector(_, $, (a2, e) => Ce(a2, e)));
|
20702
20746
|
oa = (a2) => createSelector(aa(a2), (e) => e.audio);
|
20703
|
-
|
20747
|
+
Vm = R((a2, e) => {
|
20704
20748
|
let t = $(a2, e);
|
20705
20749
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
20706
20750
|
});
|
20707
|
-
|
20751
|
+
Fm = R((a2, e) => {
|
20708
20752
|
let t = $(a2, e);
|
20709
20753
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
20710
20754
|
});
|
@@ -20712,11 +20756,11 @@ var init_dist = __esm({
|
|
20712
20756
|
if (e && a2.tracks[e])
|
20713
20757
|
return a2.tracks[e].volume === 0;
|
20714
20758
|
});
|
20715
|
-
|
20759
|
+
Gm = R((a2, e) => {
|
20716
20760
|
let t = $(a2, e);
|
20717
20761
|
return na(t == null ? void 0 : t.audioTrack)(a2);
|
20718
20762
|
});
|
20719
|
-
|
20763
|
+
Wm = R((a2, e) => {
|
20720
20764
|
let t = oa(e)(a2);
|
20721
20765
|
return na(t == null ? void 0 : t.id)(a2);
|
20722
20766
|
});
|
@@ -20730,15 +20774,15 @@ var init_dist = __esm({
|
|
20730
20774
|
return t.volume;
|
20731
20775
|
}
|
20732
20776
|
});
|
20733
|
-
|
20777
|
+
$m = R((a2, e) => {
|
20734
20778
|
let t = $(a2, e);
|
20735
20779
|
return ca(t == null ? void 0 : t.audioTrack)(a2);
|
20736
20780
|
});
|
20737
|
-
|
20781
|
+
Km = R((a2, e) => {
|
20738
20782
|
let t = oa(e)(a2);
|
20739
20783
|
return ca(t == null ? void 0 : t.id)(a2);
|
20740
20784
|
});
|
20741
|
-
|
20785
|
+
qm = R((a2, e) => {
|
20742
20786
|
let t = Dr(a2, e);
|
20743
20787
|
if (t) {
|
20744
20788
|
if (t.type !== "video") {
|
@@ -20768,20 +20812,20 @@ var init_dist = __esm({
|
|
20768
20812
|
}));
|
20769
20813
|
Oo = createSelector([la, ia], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20770
20814
|
xo = createSelector([da, Lr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20771
|
-
|
20772
|
-
|
20773
|
-
|
20774
|
-
|
20775
|
-
|
20815
|
+
jm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
|
20816
|
+
Jm = R(da);
|
20817
|
+
Qm = R(la);
|
20818
|
+
zm = R(Oo);
|
20819
|
+
Ym = R(xo);
|
20776
20820
|
ua = R(Lo);
|
20777
|
-
|
20821
|
+
dS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
|
20778
20822
|
var r;
|
20779
20823
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
20780
20824
|
}));
|
20781
20825
|
Uo = (a2) => a2.roleChangeRequests[0] || null;
|
20782
|
-
|
20783
|
-
|
20784
|
-
|
20826
|
+
lS = createSelector([Uo, W, pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
20827
|
+
uS = createSelector([Ye], (a2) => at(a2));
|
20828
|
+
pS = createSelector([Ws], (a2) => at(a2));
|
20785
20829
|
Vo = createSelector([J, _], (a2, e) => {
|
20786
20830
|
let t = null;
|
20787
20831
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
@@ -23767,18 +23811,19 @@ var init_Common = __esm({
|
|
23767
23811
|
css: { w: "100%", py: "$8", px: "$10", cursor: "pointer", borderBottom: "1px solid $border_bright", mb: "$8" }
|
23768
23812
|
},
|
23769
23813
|
onBack ? /* @__PURE__ */ import_react105.default.createElement(
|
23770
|
-
|
23814
|
+
Flex,
|
23771
23815
|
{
|
23816
|
+
align: "center",
|
23772
23817
|
css: {
|
23773
|
-
|
23774
|
-
|
23818
|
+
mr: "$8",
|
23819
|
+
color: "$on_surface_high"
|
23775
23820
|
},
|
23776
23821
|
onClick: onBack,
|
23777
23822
|
"data-testid": "go_back"
|
23778
23823
|
},
|
23779
23824
|
/* @__PURE__ */ import_react105.default.createElement(import_react_icons48.ChevronLeftIcon, null)
|
23780
23825
|
) : null,
|
23781
|
-
/* @__PURE__ */ import_react105.default.createElement(Box, { css: { flex: "1 1 0" } }, title ? /* @__PURE__ */ import_react105.default.createElement(
|
23826
|
+
/* @__PURE__ */ import_react105.default.createElement(Box, { css: { flex: "1 1 0", display: "flex", alignItems: "center" } }, title ? /* @__PURE__ */ import_react105.default.createElement(
|
23782
23827
|
Text,
|
23783
23828
|
{
|
23784
23829
|
variant: "tiny",
|
@@ -27416,7 +27461,7 @@ var init_Chat = __esm({
|
|
27416
27461
|
const listRef = (0, import_react149.useRef)(null);
|
27417
27462
|
const hmsActions = (0, import_react_sdk73.useHMSActions)();
|
27418
27463
|
const vanillaStore = (0, import_react_sdk73.useHMSVanillaStore)();
|
27419
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(
|
27464
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(Em("chatState" /* CHAT_STATE */)) || {};
|
27420
27465
|
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
27421
27466
|
const isMobileHLSStream = useMobileHLSStream();
|
27422
27467
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27506,7 +27551,7 @@ var init_Chat = __esm({
|
|
27506
27551
|
scrollToBottom,
|
27507
27552
|
listRef
|
27508
27553
|
}) => {
|
27509
|
-
const unreadCount = (0, import_react_sdk73.useHMSStore)(
|
27554
|
+
const unreadCount = (0, import_react_sdk73.useHMSStore)(qh);
|
27510
27555
|
if (!unreadCount || !listRef.current) {
|
27511
27556
|
return null;
|
27512
27557
|
}
|
@@ -28721,12 +28766,12 @@ var init_VBPicker = __esm({
|
|
28721
28766
|
const [blurAmount, setBlurAmount] = (0, import_react159.useState)(VBHandler.getBlurAmount() || 0.5);
|
28722
28767
|
const roomState = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectRoomState);
|
28723
28768
|
const isLargeRoom = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectIsLargeRoom);
|
28724
|
-
const isEffectsEnabled = (0, import_react_sdk81.useHMSStore)(
|
28725
|
-
const effectsKey = (0, import_react_sdk81.useHMSStore)(
|
28769
|
+
const isEffectsEnabled = (0, import_react_sdk81.useHMSStore)(am);
|
28770
|
+
const effectsKey = (0, import_react_sdk81.useHMSStore)(om);
|
28726
28771
|
const isMobile = (0, import_react_use30.useMedia)(config.media.md);
|
28727
28772
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28728
28773
|
const isPluginAdded = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
28729
|
-
const background = (0, import_react_sdk81.useHMSStore)(
|
28774
|
+
const background = (0, import_react_sdk81.useHMSStore)(Pm(APP_DATA.background));
|
28730
28775
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
28731
28776
|
const inPreview = roomState === import_react_sdk81.HMSRoomState.Preview;
|
28732
28777
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -30653,9 +30698,9 @@ var init_ScreenshareLayout = __esm({
|
|
30653
30698
|
}
|
30654
30699
|
});
|
30655
30700
|
|
30656
|
-
// ../../../../../../../tmp/tmp-
|
30657
|
-
var
|
30658
|
-
"../../../../../../../tmp/tmp-
|
30701
|
+
// ../../../../../../../tmp/tmp-2790-bzZduXjbjmED/19010900b760/index.css
|
30702
|
+
var init_b760 = __esm({
|
30703
|
+
"../../../../../../../tmp/tmp-2790-bzZduXjbjmED/19010900b760/index.css"() {
|
30659
30704
|
}
|
30660
30705
|
});
|
30661
30706
|
|
@@ -30677,7 +30722,7 @@ var init_WhiteboardLayout = __esm({
|
|
30677
30722
|
init_ProminenceLayout();
|
30678
30723
|
init_useUISettings();
|
30679
30724
|
init_constants();
|
30680
|
-
|
30725
|
+
init_b760();
|
30681
30726
|
WhiteboardEmbed = () => {
|
30682
30727
|
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
30683
30728
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk93.useWhiteboard)(isMobile);
|
@@ -31125,12 +31170,13 @@ var init_PDFView = __esm({
|
|
31125
31170
|
});
|
31126
31171
|
|
31127
31172
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
31128
|
-
var import_react186, import_react_use43, import_react_sdk98, SimpleQueue, Queue, CaptionMaintainerQueue, TranscriptView, CaptionsViewer;
|
31173
|
+
var import_react186, import_react_draggable2, import_react_use43, import_react_sdk98, SimpleQueue, Queue, CaptionMaintainerQueue, TranscriptView, CaptionsViewer;
|
31129
31174
|
var init_CaptionsViewer = __esm({
|
31130
31175
|
"src/Prebuilt/plugins/CaptionsViewer.tsx"() {
|
31131
31176
|
"use strict";
|
31132
31177
|
init_define_process_env();
|
31133
31178
|
import_react186 = __toESM(require("react"));
|
31179
|
+
import_react_draggable2 = __toESM(require("react-draggable"));
|
31134
31180
|
import_react_use43 = require("react-use");
|
31135
31181
|
import_react_sdk98 = require("@100mslive/react-sdk");
|
31136
31182
|
init_Layout();
|
@@ -31148,6 +31194,9 @@ var init_CaptionsViewer = __esm({
|
|
31148
31194
|
}
|
31149
31195
|
enqueue(data3) {
|
31150
31196
|
var _a8;
|
31197
|
+
if (!data3.transcript.trim()) {
|
31198
|
+
return;
|
31199
|
+
}
|
31151
31200
|
if (this.size() === this.capacity && this.storage[this.size() - 1].final) {
|
31152
31201
|
this.dequeue(this.storage[this.size() - 1]);
|
31153
31202
|
}
|
@@ -31286,7 +31335,10 @@ var init_CaptionsViewer = __esm({
|
|
31286
31335
|
data3
|
31287
31336
|
);
|
31288
31337
|
};
|
31289
|
-
CaptionsViewer = (
|
31338
|
+
CaptionsViewer = ({
|
31339
|
+
defaultPosition,
|
31340
|
+
setDefaultPosition
|
31341
|
+
}) => {
|
31290
31342
|
var _a8;
|
31291
31343
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
31292
31344
|
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
@@ -31296,6 +31348,7 @@ var init_CaptionsViewer = __esm({
|
|
31296
31348
|
const [currentData, setCurrentData] = (0, import_react186.useState)([]);
|
31297
31349
|
const isCaptionEnabled = useIsCaptionEnabled();
|
31298
31350
|
const isTranscriptionEnabled = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectIsTranscriptionEnabled);
|
31351
|
+
const nodeRef = (0, import_react186.useRef)(null);
|
31299
31352
|
(0, import_react186.useEffect)(() => {
|
31300
31353
|
const timeInterval = setInterval(() => {
|
31301
31354
|
var _a9;
|
@@ -31323,29 +31376,41 @@ var init_CaptionsViewer = __esm({
|
|
31323
31376
|
return null;
|
31324
31377
|
}
|
31325
31378
|
return /* @__PURE__ */ import_react186.default.createElement(
|
31326
|
-
|
31379
|
+
import_react_draggable2.default,
|
31327
31380
|
{
|
31328
|
-
|
31329
|
-
|
31330
|
-
|
31331
|
-
|
31332
|
-
|
31333
|
-
left: isMobile ? 0 : "50%",
|
31334
|
-
transform: isMobile ? "" : "translateX(-50%)",
|
31335
|
-
background: "#000000A3",
|
31336
|
-
overflow: "clip",
|
31337
|
-
zIndex: 10,
|
31338
|
-
height: "fit-content",
|
31339
|
-
r: "$1",
|
31340
|
-
p: "$6",
|
31341
|
-
transition: "bottom 0.3s ease-in-out",
|
31342
|
-
"&:empty": { display: "none" }
|
31381
|
+
bounds: "parent",
|
31382
|
+
nodeRef,
|
31383
|
+
defaultPosition,
|
31384
|
+
onStop: (_2, data3) => {
|
31385
|
+
setDefaultPosition({ x: data3.lastX, y: data3.lastY });
|
31343
31386
|
}
|
31344
31387
|
},
|
31345
|
-
/* @__PURE__ */ import_react186.default.createElement(
|
31346
|
-
|
31347
|
-
|
31348
|
-
|
31388
|
+
/* @__PURE__ */ import_react186.default.createElement(
|
31389
|
+
Box,
|
31390
|
+
{
|
31391
|
+
ref: nodeRef,
|
31392
|
+
css: {
|
31393
|
+
position: "absolute",
|
31394
|
+
w: isMobile ? "100%" : "40%",
|
31395
|
+
bottom: showCaptionAtTop ? "" : "0",
|
31396
|
+
top: showCaptionAtTop ? "0" : "",
|
31397
|
+
left: isMobile ? 0 : "50%",
|
31398
|
+
transform: isMobile ? "" : "translateX(-50%)",
|
31399
|
+
background: "#000000A3",
|
31400
|
+
overflow: "clip",
|
31401
|
+
zIndex: 10,
|
31402
|
+
height: "fit-content",
|
31403
|
+
r: "$1",
|
31404
|
+
p: "$6",
|
31405
|
+
transition: "bottom 0.3s ease-in-out",
|
31406
|
+
"&:empty": { display: "none" }
|
31407
|
+
}
|
31408
|
+
},
|
31409
|
+
/* @__PURE__ */ import_react186.default.createElement(Flex, { direction: "column" }, dataToShow.map((data3, index) => {
|
31410
|
+
const key = Object.keys(data3)[0];
|
31411
|
+
return /* @__PURE__ */ import_react186.default.createElement(TranscriptView, { key: index, peer_id: key, data: data3[key] });
|
31412
|
+
}))
|
31413
|
+
)
|
31349
31414
|
);
|
31350
31415
|
};
|
31351
31416
|
}
|
@@ -33154,6 +33219,7 @@ var init_VideoStreamingSection = __esm({
|
|
33154
33219
|
const pdfAnnotatorActive = usePDFConfig();
|
33155
33220
|
const isMobileHLSStream = useMobileHLSStream();
|
33156
33221
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
33222
|
+
const [captionPosition, setCaptionPosition] = (0, import_react203.useState)({ x: -200, y: 0 });
|
33157
33223
|
useCloseScreenshareWhiteboard();
|
33158
33224
|
const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
|
33159
33225
|
(0, import_react203.useEffect)(() => {
|
@@ -33224,7 +33290,7 @@ var init_VideoStreamingSection = __esm({
|
|
33224
33290
|
var _a9;
|
33225
33291
|
return /* @__PURE__ */ import_react203.default.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
|
33226
33292
|
}),
|
33227
|
-
/* @__PURE__ */ import_react203.default.createElement(CaptionsViewer,
|
33293
|
+
/* @__PURE__ */ import_react203.default.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
|
33228
33294
|
/* @__PURE__ */ import_react203.default.createElement(
|
33229
33295
|
Box,
|
33230
33296
|
{
|