@100mslive/roomkit-react 0.3.19-alpha.1 → 0.3.19-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-6KUW45BA.js → HLSView-BRZ2FW7O.js} +2 -2
- package/dist/{HLSView-MI7WHLIB.css → HLSView-UXA322ED.css} +3 -3
- package/dist/{HLSView-MI7WHLIB.css.map → HLSView-UXA322ED.css.map} +1 -1
- package/dist/{chunk-NC3PKPDD.js → chunk-KR2DZJO5.js} +344 -341
- package/dist/chunk-KR2DZJO5.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +329 -328
- 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 +22 -22
- package/dist/meta.esbuild.json +32 -32
- package/package.json +7 -7
- package/src/Video/Video.tsx +1 -1
- package/dist/chunk-NC3PKPDD.js.map +0 -7
- /package/dist/{HLSView-6KUW45BA.js.map → HLSView-BRZ2FW7O.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -45,13 +45,13 @@ var __export = (target, all) => {
|
|
45
45
|
for (var name in all)
|
46
46
|
__defProp(target, name, { get: all[name], enumerable: true });
|
47
47
|
};
|
48
|
-
var __copyProps = (
|
48
|
+
var __copyProps = (to, from, except, desc) => {
|
49
49
|
if (from && typeof from === "object" || typeof from === "function") {
|
50
50
|
for (let key of __getOwnPropNames(from))
|
51
|
-
if (!__hasOwnProp.call(
|
52
|
-
__defProp(
|
51
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
52
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
53
53
|
}
|
54
|
-
return
|
54
|
+
return to;
|
55
55
|
};
|
56
56
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
57
57
|
// If the importer is in node compatibility mode or this is not an ESM
|
@@ -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_6cea5802-ce23-4c1e-97a2-70076471882b", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.9-alpha.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.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6cea5802-ce23-4c1e-97a2-70076471882b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.19-alpha.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.11", 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.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "592", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240811.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.6/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:1821", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.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: "false", GITHUB_RUN_ID: "10472637880", 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: "4e76816ac6791d45d6099d5ecf81b9b730bbb9db", 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: "6790174dc36e26c3b589aa85cb1ac4b030a9489d29e85bee676df9058a07e5f4", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1724160935532-0.7852344527720556:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724160935303-0.6284305740362575:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724160908813-0.14105343274938886:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724160908629-0.46815752240870667:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_05bd7fdb-bfbd-48f1-a2d1-f746c00dddb2", INVOCATION_ID: "297196c99e914941bba85b21184f9190", 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: "644", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 92", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.19-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "4e76816ac6791d45d6099d5ecf81b9b730bbb9db", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6cea5802-ce23-4c1e-97a2-70076471882b", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6cea5802-ce23-4c1e-97a2-70076471882b", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6cea5802-ce23-4c1e-97a2-70076471882b" };
|
112
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8e80bbea-1ccb-4925-b28b-fa461606c676", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.9-alpha.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.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8e80bbea-1ccb-4925-b28b-fa461606c676", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.19-alpha.2", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "601", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240825.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.6/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:17225", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.2", 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: "10592524676", 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: "88c8ac68235961d5352322c7be3efedad27f6d92", 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: "a2abe29da55815a39e288ff49ea5cd8828252bca80913f4baf1e0a3db3791b87", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1724831759242-0.1595028060328194:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831759048-0.21877242189553248:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831733657-0.21061851403670917:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831733475-0.416211556167259:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_67d6c53f-3cdd-439a-80c8-c2c4c7b862ae", INVOCATION_ID: "ef7e228817de496190ba8acc4bdd30f3", 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: "645", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 347", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.19-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.2", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "88c8ac68235961d5352322c7be3efedad27f6d92", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8e80bbea-1ccb-4925-b28b-fa461606c676", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_8e80bbea-1ccb-4925-b28b-fa461606c676", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8e80bbea-1ccb-4925-b28b-fa461606c676" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -2490,7 +2490,7 @@ var init_Video = __esm({
|
|
2490
2490
|
Video = (_a7) => {
|
2491
2491
|
var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
|
2492
2492
|
const { videoRef } = (0, import_react_sdk2.useVideo)({ trackId, attach });
|
2493
|
-
return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({
|
2493
|
+
return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
|
2494
2494
|
};
|
2495
2495
|
}
|
2496
2496
|
});
|
@@ -8165,7 +8165,7 @@ var require_lodash = __commonJS({
|
|
8165
8165
|
function eq(value, other) {
|
8166
8166
|
return value === other || value !== value && other !== other;
|
8167
8167
|
}
|
8168
|
-
var
|
8168
|
+
var gt = createRelationalOperation(baseGt);
|
8169
8169
|
var gte = createRelationalOperation(function(value, other) {
|
8170
8170
|
return value >= other;
|
8171
8171
|
});
|
@@ -8307,7 +8307,7 @@ var require_lodash = __commonJS({
|
|
8307
8307
|
function isWeakSet(value) {
|
8308
8308
|
return isObjectLike(value) && baseGetTag(value) == weakSetTag;
|
8309
8309
|
}
|
8310
|
-
var
|
8310
|
+
var lt2 = createRelationalOperation(baseLt);
|
8311
8311
|
var lte = createRelationalOperation(function(value, other) {
|
8312
8312
|
return value <= other;
|
8313
8313
|
});
|
@@ -8389,7 +8389,7 @@ var require_lodash = __commonJS({
|
|
8389
8389
|
var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
|
8390
8390
|
copyObject(source, keys(source), object, customizer2);
|
8391
8391
|
});
|
8392
|
-
var
|
8392
|
+
var at2 = flatRest(baseAt);
|
8393
8393
|
function create(prototype, properties) {
|
8394
8394
|
var result2 = baseCreate(prototype);
|
8395
8395
|
return properties == null ? result2 : baseAssign(result2, properties);
|
@@ -9123,7 +9123,7 @@ var require_lodash = __commonJS({
|
|
9123
9123
|
lodash.assignIn = assignIn;
|
9124
9124
|
lodash.assignInWith = assignInWith;
|
9125
9125
|
lodash.assignWith = assignWith;
|
9126
|
-
lodash.at =
|
9126
|
+
lodash.at = at2;
|
9127
9127
|
lodash.before = before;
|
9128
9128
|
lodash.bind = bind;
|
9129
9129
|
lodash.bindAll = bindAll;
|
@@ -9304,7 +9304,7 @@ var require_lodash = __commonJS({
|
|
9304
9304
|
lodash.forOwn = forOwn;
|
9305
9305
|
lodash.forOwnRight = forOwnRight;
|
9306
9306
|
lodash.get = get;
|
9307
|
-
lodash.gt =
|
9307
|
+
lodash.gt = gt;
|
9308
9308
|
lodash.gte = gte;
|
9309
9309
|
lodash.has = has;
|
9310
9310
|
lodash.hasIn = hasIn;
|
@@ -9357,7 +9357,7 @@ var require_lodash = __commonJS({
|
|
9357
9357
|
lodash.lastIndexOf = lastIndexOf;
|
9358
9358
|
lodash.lowerCase = lowerCase;
|
9359
9359
|
lodash.lowerFirst = lowerFirst;
|
9360
|
-
lodash.lt =
|
9360
|
+
lodash.lt = lt2;
|
9361
9361
|
lodash.lte = lte;
|
9362
9362
|
lodash.max = max;
|
9363
9363
|
lodash.maxBy = maxBy;
|
@@ -10545,8 +10545,8 @@ var init_PIPManager = __esm({
|
|
10545
10545
|
/**
|
10546
10546
|
* @private {boolean} on - whether pip is on/off
|
10547
10547
|
*/
|
10548
|
-
this.callListeners = (
|
10549
|
-
this.listeners.forEach((listener) => listener == null ? void 0 : listener(
|
10548
|
+
this.callListeners = (on2) => {
|
10549
|
+
this.listeners.forEach((listener) => listener == null ? void 0 : listener(on2));
|
10550
10550
|
};
|
10551
10551
|
this.reset();
|
10552
10552
|
}
|
@@ -18266,16 +18266,16 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
18266
18266
|
};
|
18267
18267
|
if (r.ideal !== void 0) {
|
18268
18268
|
cc.optional = cc.optional || [];
|
18269
|
-
let
|
18269
|
+
let oc2 = {};
|
18270
18270
|
if (typeof r.ideal === "number") {
|
18271
|
-
|
18272
|
-
cc.optional.push(
|
18273
|
-
|
18274
|
-
|
18275
|
-
cc.optional.push(
|
18271
|
+
oc2[oldname_("min", key)] = r.ideal;
|
18272
|
+
cc.optional.push(oc2);
|
18273
|
+
oc2 = {};
|
18274
|
+
oc2[oldname_("max", key)] = r.ideal;
|
18275
|
+
cc.optional.push(oc2);
|
18276
18276
|
} else {
|
18277
|
-
|
18278
|
-
cc.optional.push(
|
18277
|
+
oc2[oldname_("", key)] = r.ideal;
|
18278
|
+
cc.optional.push(oc2);
|
18279
18279
|
}
|
18280
18280
|
}
|
18281
18281
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
@@ -19837,12 +19837,12 @@ var require_sdp = __commonJS({
|
|
19837
19837
|
return parsed;
|
19838
19838
|
};
|
19839
19839
|
SDPUtils2.writeRtpMap = function(codec) {
|
19840
|
-
let
|
19840
|
+
let pt2 = codec.payloadType;
|
19841
19841
|
if (codec.preferredPayloadType !== void 0) {
|
19842
|
-
|
19842
|
+
pt2 = codec.preferredPayloadType;
|
19843
19843
|
}
|
19844
19844
|
const channels = codec.channels || codec.numChannels || 1;
|
19845
|
-
return "a=rtpmap:" +
|
19845
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
19846
19846
|
};
|
19847
19847
|
SDPUtils2.parseExtmap = function(line) {
|
19848
19848
|
const parts = line.substring(9).split(" ");
|
@@ -19868,9 +19868,9 @@ var require_sdp = __commonJS({
|
|
19868
19868
|
};
|
19869
19869
|
SDPUtils2.writeFmtp = function(codec) {
|
19870
19870
|
let line = "";
|
19871
|
-
let
|
19871
|
+
let pt2 = codec.payloadType;
|
19872
19872
|
if (codec.preferredPayloadType !== void 0) {
|
19873
|
-
|
19873
|
+
pt2 = codec.preferredPayloadType;
|
19874
19874
|
}
|
19875
19875
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
19876
19876
|
const params = [];
|
@@ -19881,7 +19881,7 @@ var require_sdp = __commonJS({
|
|
19881
19881
|
params.push(param);
|
19882
19882
|
}
|
19883
19883
|
});
|
19884
|
-
line += "a=fmtp:" +
|
19884
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
19885
19885
|
}
|
19886
19886
|
return line;
|
19887
19887
|
};
|
@@ -19894,13 +19894,13 @@ var require_sdp = __commonJS({
|
|
19894
19894
|
};
|
19895
19895
|
SDPUtils2.writeRtcpFb = function(codec) {
|
19896
19896
|
let lines = "";
|
19897
|
-
let
|
19897
|
+
let pt2 = codec.payloadType;
|
19898
19898
|
if (codec.preferredPayloadType !== void 0) {
|
19899
|
-
|
19899
|
+
pt2 = codec.preferredPayloadType;
|
19900
19900
|
}
|
19901
19901
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
19902
19902
|
codec.rtcpFeedback.forEach((fb) => {
|
19903
|
-
lines += "a=rtcp-fb:" +
|
19903
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
19904
19904
|
});
|
19905
19905
|
}
|
19906
19906
|
return lines;
|
@@ -20028,21 +20028,21 @@ var require_sdp = __commonJS({
|
|
20028
20028
|
const mline = lines[0].split(" ");
|
20029
20029
|
description.profile = mline[2];
|
20030
20030
|
for (let i = 3; i < mline.length; i++) {
|
20031
|
-
const
|
20031
|
+
const pt2 = mline[i];
|
20032
20032
|
const rtpmapline = SDPUtils2.matchPrefix(
|
20033
20033
|
mediaSection,
|
20034
|
-
"a=rtpmap:" +
|
20034
|
+
"a=rtpmap:" + pt2 + " "
|
20035
20035
|
)[0];
|
20036
20036
|
if (rtpmapline) {
|
20037
20037
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
20038
20038
|
const fmtps = SDPUtils2.matchPrefix(
|
20039
20039
|
mediaSection,
|
20040
|
-
"a=fmtp:" +
|
20040
|
+
"a=fmtp:" + pt2 + " "
|
20041
20041
|
);
|
20042
20042
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
20043
20043
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
20044
20044
|
mediaSection,
|
20045
|
-
"a=rtcp-fb:" +
|
20045
|
+
"a=rtcp-fb:" + pt2 + " "
|
20046
20046
|
).map(SDPUtils2.parseRtcpFb);
|
20047
20047
|
description.codecs.push(codec);
|
20048
20048
|
switch (codec.name.toUpperCase()) {
|
@@ -21507,42 +21507,42 @@ var require_lib = __commonJS({
|
|
21507
21507
|
});
|
21508
21508
|
|
21509
21509
|
// ../hms-video-store/dist/index.js
|
21510
|
-
function
|
21510
|
+
function Ue(a2, e) {
|
21511
21511
|
let t, i;
|
21512
21512
|
if (e)
|
21513
21513
|
for (let r of e.auxiliaryTracks) {
|
21514
21514
|
let s = a2[r];
|
21515
|
-
|
21515
|
+
so(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
|
21516
21516
|
}
|
21517
21517
|
return { video: t, audio: i };
|
21518
21518
|
}
|
21519
|
-
function
|
21519
|
+
function pt(a2) {
|
21520
21520
|
return a2 && a2.type === "audio";
|
21521
21521
|
}
|
21522
|
-
function
|
21522
|
+
function ht(a2) {
|
21523
21523
|
return a2 && a2.type === "video";
|
21524
21524
|
}
|
21525
|
-
function
|
21525
|
+
function so(a2) {
|
21526
21526
|
return a2 && a2.source === "screen";
|
21527
21527
|
}
|
21528
21528
|
function ri(a2) {
|
21529
21529
|
return a2 && a2.source === "audioplaylist";
|
21530
21530
|
}
|
21531
|
-
function
|
21531
|
+
function mt(a2) {
|
21532
21532
|
return a2 && a2.source === "videoplaylist";
|
21533
21533
|
}
|
21534
21534
|
function ds(a2) {
|
21535
21535
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21536
21536
|
}
|
21537
|
-
function
|
21537
|
+
function je(a2, e) {
|
21538
21538
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
21539
21539
|
}
|
21540
|
-
function
|
21540
|
+
function St(a2) {
|
21541
21541
|
var r;
|
21542
21542
|
let e = false, t = false, i = false;
|
21543
21543
|
return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
|
21544
21544
|
}
|
21545
|
-
function
|
21545
|
+
function co() {
|
21546
21546
|
if (B && window) {
|
21547
21547
|
let a2 = window.location.hostname;
|
21548
21548
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
@@ -21553,11 +21553,11 @@ function ne(a2) {
|
|
21553
21553
|
return a2 != null;
|
21554
21554
|
}
|
21555
21555
|
function vt(a2 = "prod", e) {
|
21556
|
-
let t = "web", i =
|
21557
|
-
if (
|
21558
|
-
return
|
21559
|
-
let r =
|
21560
|
-
return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`),
|
21556
|
+
let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21557
|
+
if (Be)
|
21558
|
+
return Is({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: bs, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21559
|
+
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
|
21560
|
+
return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), Is({ os: n, os_version: d, sdk: t, sdk_version: bs, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21561
21561
|
}
|
21562
21562
|
function Mr(a2) {
|
21563
21563
|
return a2.replace(/ /g, "_");
|
@@ -21575,13 +21575,13 @@ function oi(a2, e = 300) {
|
|
21575
21575
|
function A(a2) {
|
21576
21576
|
return (e) => (t) => a2(t, e);
|
21577
21577
|
}
|
21578
|
-
function
|
21578
|
+
function qm(a2) {
|
21579
21579
|
return (e) => {
|
21580
21580
|
if (e.sessionStore)
|
21581
21581
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
21582
21582
|
};
|
21583
21583
|
}
|
21584
|
-
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, qt, import_eventemitter24, import_uuid9, import_uuid10,
|
21584
|
+
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, qt, import_eventemitter24, import_uuid9, import_uuid10, Ya, Xa, Za, ei, as, os, ss, h, M, mr, io, vr, Sr, ro, ns, gr, cs, us, ao, l, he, B, ps, Be, no, oc, hs, ms, vs, Ss, gs, Ms, ys, Qe, P4, f, lo, S, fr, ks, me, Es, bs, Is, H, y, yr, J, kr, Er, Ir, Cs, Ls, ws, Ds, _s, Rr, Ns, Ar, Bs, Hr, Vs, Cr, Lr, Ws, $s, Pt, rt, V, Do, Yh, Xh, K, fi, Zs, O, Vr, _o, Oe, tm, No, fe, Oo, ie, Ee, im, rm, oe, z, xo, ta, sm, am, Gr, Uo, nm, cm, dm, lm, um, pm, hm, mm, At, Bo, Sm, re, ra, gm, Tm, ve, fm, at, Vo, sa, vm, aa, Mm, ym, km, Em, Pm, bm, Im, Rm, Am, Hm, oa, Dm, Fo, _m, ca, Wr, da, la, ua, pa, ha, ma, Sa, ga, Ht, b, $r, Ct, Ta, Go, Wo, q, Kr, $o, Ko, qo, jo, Jo, Y, Km, Jm, Qm, vi, fa, zm, Ym, Xm, Qo, zo, eS, va, tS, Yo, iS, rS, sS, aS, oS, nS, Ma, ya, dS, lS, ka, uS, pS, Ea, hS, mS, SS, Pa, ba, Xo, Zo, en, gS, TS, fS, vS, MS, Ia, wS, tn, DS, _S, NS, sn, an, cn, zr, be, j, ir, lt, Rn, An, Hn, Cn, Qa, Ln, za, ts, Re, wn, Dn, _n, Nn, On, xn, Un, Bn, Vn, Fn, is, Gn, Wn, $n, Kn, qn, jn;
|
21585
21585
|
var init_dist = __esm({
|
21586
21586
|
"../hms-video-store/dist/index.js"() {
|
21587
21587
|
"use strict";
|
@@ -21609,13 +21609,13 @@ var init_dist = __esm({
|
|
21609
21609
|
import_uuid9 = require("uuid");
|
21610
21610
|
import_uuid10 = require("uuid");
|
21611
21611
|
init_es();
|
21612
|
-
|
21613
|
-
|
21614
|
-
|
21612
|
+
Ya = Object.defineProperty;
|
21613
|
+
Xa = Object.defineProperties;
|
21614
|
+
Za = Object.getOwnPropertyDescriptors;
|
21615
21615
|
ei = Object.getOwnPropertySymbols;
|
21616
21616
|
as = Object.prototype.hasOwnProperty;
|
21617
21617
|
os = Object.prototype.propertyIsEnumerable;
|
21618
|
-
ss = (a2, e, t) => e in a2 ?
|
21618
|
+
ss = (a2, e, t) => e in a2 ? Ya(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21619
21619
|
h = (a2, e) => {
|
21620
21620
|
for (var t in e || (e = {}))
|
21621
21621
|
as.call(e, t) && ss(a2, t, e[t]);
|
@@ -21624,7 +21624,7 @@ var init_dist = __esm({
|
|
21624
21624
|
os.call(e, t) && ss(a2, t, e[t]);
|
21625
21625
|
return a2;
|
21626
21626
|
};
|
21627
|
-
M = (a2, e) =>
|
21627
|
+
M = (a2, e) => Xa(a2, Za(e));
|
21628
21628
|
mr = (a2, e) => {
|
21629
21629
|
var t = {};
|
21630
21630
|
for (var i in a2)
|
@@ -21634,17 +21634,17 @@ var init_dist = __esm({
|
|
21634
21634
|
e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
|
21635
21635
|
return t;
|
21636
21636
|
};
|
21637
|
-
|
21638
|
-
vr =
|
21639
|
-
|
21637
|
+
io = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21638
|
+
vr = io((wc, po) => {
|
21639
|
+
po.exports = { version: "0.12.19-alpha.2", 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"] };
|
21640
21640
|
});
|
21641
21641
|
Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
|
21642
|
-
|
21642
|
+
ro = ((e) => (e.CHAT = "chat", e))(ro || {});
|
21643
21643
|
ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
|
21644
21644
|
gr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(gr || {});
|
21645
21645
|
cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
|
21646
21646
|
us = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(us || {});
|
21647
|
-
|
21647
|
+
ao = typeof window != "undefined" && typeof window.expect != "undefined";
|
21648
21648
|
l = class {
|
21649
21649
|
static v(e, ...t) {
|
21650
21650
|
this.log(0, e, ...t);
|
@@ -21710,16 +21710,17 @@ var init_dist = __esm({
|
|
21710
21710
|
}
|
21711
21711
|
}
|
21712
21712
|
};
|
21713
|
-
l.level =
|
21714
|
-
|
21713
|
+
l.level = ao ? 7 : 0;
|
21714
|
+
he = new import_ua_parser_js.UAParser();
|
21715
21715
|
B = typeof window != "undefined";
|
21716
|
-
|
21717
|
-
|
21718
|
-
|
21719
|
-
|
21720
|
-
|
21721
|
-
|
21722
|
-
|
21716
|
+
Be = typeof window == "undefined" && !((ps = he.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
|
21717
|
+
no = () => !Be;
|
21718
|
+
oc = no();
|
21719
|
+
vs = ((ms = (hs = he.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "safari";
|
21720
|
+
Ms = ((gs = (Ss = he.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
|
21721
|
+
ys = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ys || {});
|
21722
|
+
Qe = co();
|
21723
|
+
P4 = { 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 } };
|
21723
21724
|
f = class a extends Error {
|
21724
21725
|
constructor(t, i, r, s, o, n = false) {
|
21725
21726
|
super(s);
|
@@ -21749,99 +21750,99 @@ var init_dist = __esm({
|
|
21749
21750
|
}`;
|
21750
21751
|
}
|
21751
21752
|
};
|
21752
|
-
|
21753
|
+
lo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21753
21754
|
S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21754
|
-
return new f(
|
21755
|
+
return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21755
21756
|
}, WebSocketConnectionLost(a2, e = "") {
|
21756
|
-
return new f(
|
21757
|
+
return new f(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21757
21758
|
}, AbnormalClose(a2, e = "") {
|
21758
|
-
return new f(
|
21759
|
+
return new f(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21759
21760
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21760
21761
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21761
21762
|
}, EndpointUnreachable(a2, e = "") {
|
21762
|
-
return new f(
|
21763
|
+
return new f(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21763
21764
|
}, InvalidTokenFormat(a2, e = "") {
|
21764
|
-
return new f(
|
21765
|
+
return new f(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21765
21766
|
}, InitConfigNotAvailable(a2, e = "") {
|
21766
|
-
return new f(
|
21767
|
+
return new f(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21767
21768
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21768
|
-
return new f(
|
21769
|
+
return new f(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21769
21770
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21770
|
-
return new f(
|
21771
|
+
return new f(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21771
21772
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21772
|
-
return new f(
|
21773
|
+
return new f(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21773
21774
|
}, DeviceInUse(a2, e, t = "") {
|
21774
|
-
return new f(
|
21775
|
+
return new f(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21775
21776
|
}, DeviceLostMidway(a2, e, t = "") {
|
21776
|
-
return new f(
|
21777
|
+
return new f(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21777
21778
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21778
|
-
return new f(
|
21779
|
+
return new f(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21779
21780
|
}, InvalidVideoSettings(a2, e = "") {
|
21780
|
-
return new f(
|
21781
|
+
return new f(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
21781
21782
|
}, AutoplayBlocked(a2, e = "") {
|
21782
|
-
return new f(
|
21783
|
+
return new f(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
21783
21784
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21784
|
-
return new f(
|
21785
|
+
return new f(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21785
21786
|
}, OverConstrained(a2, e, t = "") {
|
21786
|
-
return new f(
|
21787
|
+
return new f(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21787
21788
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21788
|
-
return new f(
|
21789
|
+
return new f(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21789
21790
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21790
|
-
return new f(
|
21791
|
+
return new f(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21791
21792
|
}, CurrentTabNotShared() {
|
21792
|
-
return new f(
|
21793
|
+
return new f(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
|
21793
21794
|
}, AudioPlaybackError(a2) {
|
21794
|
-
return new f(
|
21795
|
+
return new f(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21795
21796
|
}, SelectedDeviceMissing(a2) {
|
21796
|
-
return new f(
|
21797
|
+
return new f(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21797
21798
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21798
|
-
return new f(
|
21799
|
+
return new f(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21799
21800
|
}, CreateAnswerFailed(a2, e = "") {
|
21800
|
-
return new f(
|
21801
|
+
return new f(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21801
21802
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21802
|
-
return new f(
|
21803
|
+
return new f(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21803
21804
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21804
|
-
return new f(
|
21805
|
+
return new f(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21805
21806
|
}, ICEFailure(a2, e = "", t = false) {
|
21806
|
-
return new f(
|
21807
|
+
return new f(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21807
21808
|
}, ICEDisconnected(a2, e = "") {
|
21808
|
-
return new f(
|
21809
|
+
return new f(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21809
21810
|
}, StatsFailed(a2, e = "") {
|
21810
|
-
return new f(
|
21811
|
+
return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21811
21812
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21812
|
-
return new f(a2, "ServerErrors", e, t, t,
|
21813
|
+
return new f(a2, "ServerErrors", e, t, t, lo.includes(e));
|
21813
21814
|
}, AlreadyJoined(a2, e = "") {
|
21814
|
-
return new f(
|
21815
|
+
return new f(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21815
21816
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21816
|
-
return new f(
|
21817
|
+
return new f(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21817
21818
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21818
|
-
return new f(
|
21819
|
+
return new f(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21819
21820
|
}, Signalling(a2, e) {
|
21820
|
-
return new f(
|
21821
|
+
return new f(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21821
21822
|
}, Unknown(a2, e) {
|
21822
|
-
return new f(
|
21823
|
+
return new f(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21823
21824
|
}, NotReady(a2, e = "") {
|
21824
|
-
return new f(
|
21825
|
+
return new f(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21825
21826
|
}, JsonParsingFailed(a2, e, t = "") {
|
21826
|
-
return new f(
|
21827
|
+
return new f(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21827
21828
|
}, TrackMetadataMissing(a2, e = "") {
|
21828
|
-
return new f(
|
21829
|
+
return new f(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21829
21830
|
}, RTCTrackMissing(a2, e = "") {
|
21830
|
-
return new f(
|
21831
|
+
return new f(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21831
21832
|
}, PeerMetadataMissing(a2, e = "") {
|
21832
|
-
return new f(
|
21833
|
+
return new f(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21833
21834
|
}, ValidationFailed(a2, e) {
|
21834
|
-
return new f(
|
21835
|
+
return new f(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21835
21836
|
}, InvalidRole(a2, e) {
|
21836
|
-
return new f(
|
21837
|
+
return new f(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21837
21838
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21838
|
-
return new f(
|
21839
|
+
return new f(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21839
21840
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21840
|
-
return new f(
|
21841
|
+
return new f(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21841
21842
|
}, MissingMediaDevices() {
|
21842
|
-
return new f(
|
21843
|
+
return new f(P4.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);
|
21843
21844
|
}, MissingRTCPeerConnection() {
|
21844
|
-
return new f(
|
21845
|
+
return new f(P4.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);
|
21845
21846
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21846
21847
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21847
21848
|
}, InitFailed(a2, e = "") {
|
@@ -21853,9 +21854,9 @@ var init_dist = __esm({
|
|
21853
21854
|
}, DeviceNotSupported(a2, e = "") {
|
21854
21855
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21855
21856
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21856
|
-
return new f(
|
21857
|
+
return new f(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21857
21858
|
}, NoEntryPlaying(a2, e) {
|
21858
|
-
return new f(
|
21859
|
+
return new f(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21859
21860
|
} } };
|
21860
21861
|
fr = class {
|
21861
21862
|
constructor() {
|
@@ -21882,21 +21883,21 @@ var init_dist = __esm({
|
|
21882
21883
|
return this.valuesMap.size;
|
21883
21884
|
}
|
21884
21885
|
};
|
21885
|
-
|
21886
|
+
ks = () => {
|
21886
21887
|
try {
|
21887
21888
|
B && !localStorage && (window.localStorage = new fr());
|
21888
21889
|
} catch (a2) {
|
21889
21890
|
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
21890
21891
|
}
|
21891
21892
|
};
|
21892
|
-
|
21893
|
+
me = class {
|
21893
21894
|
constructor(e) {
|
21894
21895
|
this.key = e;
|
21895
21896
|
this.storage = null;
|
21896
21897
|
}
|
21897
21898
|
getStorage() {
|
21898
21899
|
try {
|
21899
|
-
return B && !this.storage && (
|
21900
|
+
return B && !this.storage && (ks(), this.storage = window.localStorage), this.storage;
|
21900
21901
|
} catch (e) {
|
21901
21902
|
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21902
21903
|
}
|
@@ -21916,19 +21917,19 @@ var init_dist = __esm({
|
|
21916
21917
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
21917
21918
|
}
|
21918
21919
|
};
|
21919
|
-
|
21920
|
-
let a2, e = new
|
21920
|
+
Es = () => {
|
21921
|
+
let a2, e = new me("hms-analytics-deviceId"), t = e.get();
|
21921
21922
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
21922
21923
|
};
|
21923
|
-
|
21924
|
-
|
21924
|
+
bs = vr().version;
|
21925
|
+
Is = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21925
21926
|
H = class {
|
21926
21927
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21927
21928
|
this.metadata = { peer: {}, userAgent: vt() };
|
21928
|
-
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 =
|
21929
|
+
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 = Es();
|
21929
21930
|
}
|
21930
21931
|
toSignalParams() {
|
21931
|
-
return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain:
|
21932
|
+
return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21932
21933
|
}
|
21933
21934
|
};
|
21934
21935
|
y = class {
|
@@ -22016,8 +22017,8 @@ var init_dist = __esm({
|
|
22016
22017
|
static krispStop() {
|
22017
22018
|
return new H({ name: "krisp.stop", level: 1 });
|
22018
22019
|
}
|
22019
|
-
static interruption(e, t, i) {
|
22020
|
-
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ type: t },
|
22020
|
+
static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
|
22021
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
|
22021
22022
|
}
|
22022
22023
|
static eventNameFor(e, t) {
|
22023
22024
|
return `${e}.${t ? "success" : "failed"}`;
|
@@ -22033,7 +22034,7 @@ var init_dist = __esm({
|
|
22033
22034
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
22034
22035
|
yr = class {
|
22035
22036
|
constructor() {
|
22036
|
-
this.storage = new
|
22037
|
+
this.storage = new me("hms-device-selection");
|
22037
22038
|
this.remember = false;
|
22038
22039
|
this.TAG = "[HMSDeviceStorage]";
|
22039
22040
|
}
|
@@ -22067,15 +22068,15 @@ var init_dist = __esm({
|
|
22067
22068
|
};
|
22068
22069
|
J = new yr();
|
22069
22070
|
kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
|
22070
|
-
|
22071
|
+
Er = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Er || {});
|
22071
22072
|
Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
|
22072
|
-
|
22073
|
-
|
22074
|
-
|
22075
|
-
|
22076
|
-
|
22073
|
+
Cs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Cs || {});
|
22074
|
+
Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
|
22075
|
+
ws = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(ws || {});
|
22076
|
+
Ds = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Ds || {});
|
22077
|
+
_s = ((e) => (e.CAPTION = "caption", e))(_s || {});
|
22077
22078
|
Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
|
22078
|
-
|
22079
|
+
Ns = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ns || {});
|
22079
22080
|
Ar = class {
|
22080
22081
|
constructor() {
|
22081
22082
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
@@ -22103,7 +22104,7 @@ var init_dist = __esm({
|
|
22103
22104
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
22104
22105
|
}
|
22105
22106
|
};
|
22106
|
-
|
22107
|
+
Bs = new Ar();
|
22107
22108
|
Hr = class {
|
22108
22109
|
constructor() {
|
22109
22110
|
this.TAG = "[HMSResizeObserverWrapper]";
|
@@ -22131,43 +22132,43 @@ var init_dist = __esm({
|
|
22131
22132
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
22132
22133
|
}
|
22133
22134
|
};
|
22134
|
-
|
22135
|
+
Vs = new Hr();
|
22135
22136
|
Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
|
22136
22137
|
Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
|
22137
|
-
|
22138
|
-
|
22139
|
-
|
22140
|
-
|
22138
|
+
Ws = "https://event.100ms.live/v2/client/report";
|
22139
|
+
$s = "https://event-nonprod.100ms.live/v2/client/report";
|
22140
|
+
Pt = Math.pow(2, 31) - 1;
|
22141
|
+
rt = class {
|
22141
22142
|
};
|
22142
|
-
|
22143
|
+
rt.makePeerId = () => (0, import_uuid7.v4)();
|
22143
22144
|
V = (a2) => a2.room;
|
22144
|
-
|
22145
|
-
|
22146
|
-
|
22145
|
+
Do = (a2) => a2.errors;
|
22146
|
+
Yh = createSelector(Do, (a2) => a2.length === 0 ? null : a2.at(-1));
|
22147
|
+
Xh = createSelector(V, (a2) => a2.id);
|
22147
22148
|
K = (a2) => a2.peers;
|
22148
22149
|
fi = (a2) => a2.messages.byID;
|
22149
|
-
|
22150
|
+
Zs = (a2) => a2.messages.allIDs;
|
22150
22151
|
O = (a2) => a2.tracks;
|
22151
22152
|
Vr = (a2) => a2.appData;
|
22152
|
-
|
22153
|
-
|
22154
|
-
|
22155
|
-
|
22156
|
-
|
22157
|
-
|
22153
|
+
_o = (a2) => a2.speakers;
|
22154
|
+
Oe = createSelector([V], (a2) => a2 && a2.isConnected);
|
22155
|
+
tm = createSelector([Oe, V], (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));
|
22156
|
+
No = (a2) => a2.hideLocalPeer;
|
22157
|
+
fe = createSelector([V, K, No], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
22158
|
+
Oo = createSelector(O, (a2) => Object.values(a2));
|
22158
22159
|
ie = createSelector(V, K, (a2, e) => e[a2.localPeer]);
|
22159
22160
|
Ee = createSelector(V, (a2) => a2.localPeer);
|
22160
|
-
|
22161
|
-
|
22161
|
+
im = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
|
22162
|
+
rm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
|
22162
22163
|
oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
22163
22164
|
z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
22164
|
-
|
22165
|
-
|
22165
|
+
xo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
22166
|
+
ta = createSelector([oe, z, xo], (a2, e, t) => {
|
22166
22167
|
let i = t ? [...t] : [];
|
22167
22168
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
22168
22169
|
});
|
22169
|
-
|
22170
|
-
|
22170
|
+
sm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
|
22171
|
+
am = createSelector(K, _o, (a2, e) => {
|
22171
22172
|
let t = Object.entries(e).sort((i, r) => {
|
22172
22173
|
var n, d;
|
22173
22174
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -22181,107 +22182,107 @@ var init_dist = __esm({
|
|
22181
22182
|
return null;
|
22182
22183
|
});
|
22183
22184
|
Gr = createSelector(ie, O, (a2, e) => {
|
22184
|
-
let { video: t, audio: i } =
|
22185
|
+
let { video: t, audio: i } = Ue(e, a2);
|
22185
22186
|
return !!(t || i);
|
22186
22187
|
});
|
22187
|
-
|
22188
|
+
Uo = createSelector(K, O, (a2, e) => {
|
22188
22189
|
let t;
|
22189
22190
|
for (let i in a2) {
|
22190
|
-
let r = a2[i], { video: s, audio: o } =
|
22191
|
+
let r = a2[i], { video: s, audio: o } = Ue(e, r);
|
22191
22192
|
if (s)
|
22192
22193
|
return r;
|
22193
22194
|
o && !t && (t = r);
|
22194
22195
|
}
|
22195
22196
|
return t;
|
22196
22197
|
});
|
22197
|
-
|
22198
|
-
|
22198
|
+
nm = createSelector(Uo, (a2) => !!a2);
|
22199
|
+
cm = createSelector(K, O, (a2, e) => {
|
22199
22200
|
for (let t in a2) {
|
22200
|
-
let i = a2[t], { audio: r, video: s } =
|
22201
|
+
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
22201
22202
|
if (!s && r)
|
22202
22203
|
return i;
|
22203
22204
|
}
|
22204
22205
|
});
|
22205
|
-
|
22206
|
+
dm = createSelector(K, O, (a2, e) => {
|
22206
22207
|
let t = [], i = [];
|
22207
22208
|
for (let r in a2) {
|
22208
|
-
let s = a2[r], { video: o, audio: n } =
|
22209
|
+
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
22209
22210
|
o ? t.push(s) : n && i.push(s);
|
22210
22211
|
}
|
22211
22212
|
return t.concat(i);
|
22212
22213
|
});
|
22213
|
-
|
22214
|
+
lm = createSelector(K, O, (a2, e) => {
|
22214
22215
|
for (let t in e) {
|
22215
22216
|
let i = e[t];
|
22216
|
-
if (
|
22217
|
+
if (mt(i) && ht(i) && i.peerId)
|
22217
22218
|
return a2[i.peerId];
|
22218
22219
|
}
|
22219
22220
|
});
|
22220
|
-
|
22221
|
+
um = createSelector(K, O, (a2, e) => {
|
22221
22222
|
for (let t in e) {
|
22222
22223
|
let i = e[t];
|
22223
22224
|
if (ri(i) && i.peerId)
|
22224
22225
|
return a2[i.peerId];
|
22225
22226
|
}
|
22226
22227
|
});
|
22227
|
-
|
22228
|
-
|
22229
|
-
|
22230
|
-
At = createSelector(
|
22228
|
+
pm = createSelector(Oo, (a2) => a2.filter(ds));
|
22229
|
+
hm = createSelector(Zs, (a2) => a2.length);
|
22230
|
+
mm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22231
|
+
At = createSelector(Zs, fi, (a2, e) => {
|
22231
22232
|
let t = [];
|
22232
22233
|
return a2.forEach((i) => {
|
22233
22234
|
t.push(e[i]);
|
22234
22235
|
}), t;
|
22235
22236
|
});
|
22236
|
-
|
22237
|
+
Bo = createSelector(At, (a2) => a2.filter((e) => {
|
22237
22238
|
var t;
|
22238
22239
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22239
22240
|
}));
|
22240
|
-
|
22241
|
+
Sm = createSelector(Bo, (a2) => a2.filter((e) => !e.read).length);
|
22241
22242
|
re = createSelector([V], (a2) => a2 && a2.roomState);
|
22242
|
-
|
22243
|
-
|
22244
|
-
|
22245
|
-
|
22246
|
-
|
22247
|
-
|
22248
|
-
|
22243
|
+
ra = createSelector(re, (a2) => a2 === "Preview");
|
22244
|
+
gm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
|
22245
|
+
Tm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22246
|
+
ve = (a2) => a2.roles;
|
22247
|
+
fm = createSelector([ve], (a2) => Object.keys(a2));
|
22248
|
+
at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22249
|
+
Vo = (a2) => {
|
22249
22250
|
var e;
|
22250
22251
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22251
22252
|
};
|
22252
|
-
|
22253
|
-
|
22253
|
+
sa = createSelector([Vo, ve], (a2, e) => a2 ? e[a2] : null);
|
22254
|
+
vm = createSelector([at], (a2) => {
|
22254
22255
|
var e;
|
22255
22256
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
22256
22257
|
});
|
22257
|
-
|
22258
|
-
|
22259
|
-
|
22260
|
-
|
22261
|
-
|
22262
|
-
|
22263
|
-
|
22264
|
-
|
22265
|
-
|
22266
|
-
|
22267
|
-
|
22268
|
-
|
22269
|
-
|
22270
|
-
|
22271
|
-
|
22272
|
-
|
22258
|
+
aa = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
|
22259
|
+
Mm = createSelector(V, (a2) => a2.recording);
|
22260
|
+
ym = createSelector(V, (a2) => a2.rtmp);
|
22261
|
+
km = createSelector(V, (a2) => a2.hls);
|
22262
|
+
Em = createSelector(V, (a2) => a2.transcriptions);
|
22263
|
+
Pm = createSelector(V, (a2) => a2.sessionId);
|
22264
|
+
bm = createSelector(V, (a2) => a2.startedAt);
|
22265
|
+
Im = createSelector(V, (a2) => !!a2.isLargeRoom);
|
22266
|
+
Rm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
|
22267
|
+
Am = createSelector(V, (a2) => !!a2.isVBEnabled);
|
22268
|
+
Hm = createSelector(V, (a2) => a2.effectsKey);
|
22269
|
+
oa = (a2) => a2.polls;
|
22270
|
+
Dm = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
|
22271
|
+
Fo = (a2) => a2.whiteboards;
|
22272
|
+
_m = createSelector(Fo, (a2) => Object.values(a2)[0]);
|
22273
|
+
ca = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22273
22274
|
Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22274
|
-
|
22275
|
-
|
22276
|
-
|
22277
|
-
|
22278
|
-
|
22279
|
-
|
22275
|
+
da = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22276
|
+
la = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22277
|
+
ua = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22278
|
+
pa = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22279
|
+
ha = (a2 = "audio") => createSelector(ca(a2), (e) => Object.values(e));
|
22280
|
+
ma = (a2 = "audio") => createSelector(ca(a2), Wr(a2), (e, t) => {
|
22280
22281
|
if (t.id)
|
22281
22282
|
return e[t.id];
|
22282
22283
|
});
|
22283
|
-
|
22284
|
-
|
22284
|
+
Sa = { selection: Wr("audio"), progress: da("audio"), currentTime: la("audio"), playbackRate: ua("audio"), volume: pa("audio"), list: ha("audio"), selectedItem: ma("audio") };
|
22285
|
+
ga = { selection: Wr("video"), progress: da("video"), currentTime: la("video"), playbackRate: ua("video"), volume: pa("video"), list: ha("video"), selectedItem: ma("video") };
|
22285
22286
|
Ht = "HMS-Store:";
|
22286
22287
|
b = class {
|
22287
22288
|
static v(e, ...t) {
|
@@ -22351,124 +22352,124 @@ var init_dist = __esm({
|
|
22351
22352
|
b.level = 0;
|
22352
22353
|
$r = (a2, e) => e;
|
22353
22354
|
Ct = (a2, e) => e;
|
22354
|
-
|
22355
|
-
|
22356
|
-
|
22355
|
+
Ta = (a2, e) => e;
|
22356
|
+
Go = (a2, e) => e;
|
22357
|
+
Wo = (a2, e) => e;
|
22357
22358
|
q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
|
22358
22359
|
Kr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
|
22359
|
-
|
22360
|
+
$o = createSelector([O, Ct], (a2, e) => {
|
22360
22361
|
if (!e)
|
22361
22362
|
return null;
|
22362
22363
|
let t = a2[e];
|
22363
22364
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
22364
22365
|
});
|
22365
|
-
|
22366
|
+
Ko = createSelector([O, Ct], (a2, e) => {
|
22366
22367
|
if (!e)
|
22367
22368
|
return null;
|
22368
22369
|
let t = a2[e];
|
22369
22370
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
22370
22371
|
});
|
22371
|
-
|
22372
|
+
qo = createSelector([O, Ct], (a2, e) => {
|
22372
22373
|
if (!e)
|
22373
22374
|
return null;
|
22374
22375
|
let t = a2[e];
|
22375
22376
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22376
22377
|
});
|
22377
|
-
|
22378
|
+
jo = createSelector([O, Ct], (a2, e) => {
|
22378
22379
|
if (!e)
|
22379
22380
|
return null;
|
22380
22381
|
let t = a2[e];
|
22381
22382
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22382
22383
|
});
|
22383
|
-
|
22384
|
+
Jo = createSelector([oa, Wo], (a2, e) => e ? a2[e] : null);
|
22384
22385
|
Y = A(q);
|
22385
|
-
|
22386
|
+
Km = A(createSelector([Vr, Go], (a2, e) => {
|
22386
22387
|
if (a2)
|
22387
22388
|
return e ? a2[e] : a2;
|
22388
22389
|
}));
|
22389
|
-
|
22390
|
-
|
22390
|
+
Jm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
|
22391
|
+
Qm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
|
22391
22392
|
vi = A(Kr);
|
22392
|
-
|
22393
|
-
|
22394
|
-
|
22395
|
-
|
22396
|
-
|
22393
|
+
fa = A($o);
|
22394
|
+
zm = A(Ko);
|
22395
|
+
Ym = A(qo);
|
22396
|
+
Xm = A(jo);
|
22397
|
+
Qo = A((a2, e) => {
|
22397
22398
|
let t = q(a2, e);
|
22398
22399
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22399
22400
|
return a2.tracks[t.videoTrack];
|
22400
22401
|
});
|
22401
|
-
|
22402
|
+
zo = A((a2, e) => {
|
22402
22403
|
let t = q(a2, e);
|
22403
22404
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22404
22405
|
return a2.tracks[t.audioTrack];
|
22405
22406
|
});
|
22406
|
-
|
22407
|
+
eS = A((a2, e) => {
|
22407
22408
|
let t = q(a2, e);
|
22408
22409
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22409
22410
|
});
|
22410
|
-
|
22411
|
-
|
22412
|
-
|
22413
|
-
let t =
|
22414
|
-
return
|
22415
|
-
};
|
22416
|
-
|
22417
|
-
|
22411
|
+
va = (a2, e) => e ? a2.speakers[e] : null;
|
22412
|
+
tS = A(createSelector(va, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22413
|
+
Yo = (a2, e) => {
|
22414
|
+
let t = zo(e)(a2);
|
22415
|
+
return va(a2, t == null ? void 0 : t.id);
|
22416
|
+
};
|
22417
|
+
iS = A(createSelector(Yo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22418
|
+
rS = A((a2, e) => {
|
22418
22419
|
if (e)
|
22419
22420
|
return a2.connectionQualities[e];
|
22420
22421
|
});
|
22421
|
-
|
22422
|
+
sS = A((a2, e) => {
|
22422
22423
|
let t = q(a2, e);
|
22423
22424
|
if (t) {
|
22424
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
22425
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
|
22425
22426
|
return i ? a2.tracks[i] : void 0;
|
22426
22427
|
}
|
22427
22428
|
});
|
22428
|
-
|
22429
|
+
aS = A(createSelector(O, q, (a2, e) => {
|
22429
22430
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22430
22431
|
let r = a2[i];
|
22431
|
-
return
|
22432
|
+
return mt(r) && ht(r);
|
22432
22433
|
});
|
22433
22434
|
return t ? a2[t] : void 0;
|
22434
22435
|
}));
|
22435
|
-
|
22436
|
+
oS = A(createSelector(O, q, (a2, e) => {
|
22436
22437
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22437
22438
|
let r = a2[i];
|
22438
|
-
return
|
22439
|
+
return mt(r) && pt(r);
|
22439
22440
|
});
|
22440
22441
|
return t ? a2[t] : void 0;
|
22441
22442
|
}));
|
22442
|
-
|
22443
|
+
nS = A(createSelector(O, q, (a2, e) => {
|
22443
22444
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22444
22445
|
let r = a2[i];
|
22445
|
-
return ri(r) &&
|
22446
|
+
return ri(r) && pt(r);
|
22446
22447
|
});
|
22447
22448
|
return t ? a2[t] : void 0;
|
22448
22449
|
}));
|
22449
|
-
|
22450
|
-
|
22451
|
-
|
22450
|
+
Ma = A(createSelector(O, q, (a2, e) => Ue(a2, e)));
|
22451
|
+
ya = (a2) => createSelector(Ma(a2), (e) => e.audio);
|
22452
|
+
dS = A((a2, e) => {
|
22452
22453
|
let t = q(a2, e);
|
22453
|
-
return
|
22454
|
+
return je(a2, t == null ? void 0 : t.audioTrack);
|
22454
22455
|
});
|
22455
|
-
|
22456
|
+
lS = A((a2, e) => {
|
22456
22457
|
let t = q(a2, e);
|
22457
|
-
return
|
22458
|
+
return je(a2, t == null ? void 0 : t.videoTrack);
|
22458
22459
|
});
|
22459
|
-
|
22460
|
+
ka = A((a2, e) => {
|
22460
22461
|
if (e && a2.tracks[e])
|
22461
22462
|
return a2.tracks[e].volume === 0;
|
22462
22463
|
});
|
22463
|
-
|
22464
|
+
uS = A((a2, e) => {
|
22464
22465
|
let t = q(a2, e);
|
22465
|
-
return
|
22466
|
+
return ka(t == null ? void 0 : t.audioTrack)(a2);
|
22466
22467
|
});
|
22467
|
-
|
22468
|
-
let t =
|
22469
|
-
return
|
22468
|
+
pS = A((a2, e) => {
|
22469
|
+
let t = ya(e)(a2);
|
22470
|
+
return ka(t == null ? void 0 : t.id)(a2);
|
22470
22471
|
});
|
22471
|
-
|
22472
|
+
Ea = A((a2, e) => {
|
22472
22473
|
let t = Kr(a2, e);
|
22473
22474
|
if (t) {
|
22474
22475
|
if (t.type !== "audio") {
|
@@ -22478,15 +22479,15 @@ var init_dist = __esm({
|
|
22478
22479
|
return t.volume;
|
22479
22480
|
}
|
22480
22481
|
});
|
22481
|
-
|
22482
|
+
hS = A((a2, e) => {
|
22482
22483
|
let t = q(a2, e);
|
22483
|
-
return
|
22484
|
+
return Ea(t == null ? void 0 : t.audioTrack)(a2);
|
22484
22485
|
});
|
22485
|
-
|
22486
|
-
let t =
|
22487
|
-
return
|
22486
|
+
mS = A((a2, e) => {
|
22487
|
+
let t = ya(e)(a2);
|
22488
|
+
return Ea(t == null ? void 0 : t.id)(a2);
|
22488
22489
|
});
|
22489
|
-
|
22490
|
+
SS = A((a2, e) => {
|
22490
22491
|
let t = Kr(a2, e);
|
22491
22492
|
if (t) {
|
22492
22493
|
if (t.type !== "video") {
|
@@ -22496,53 +22497,53 @@ var init_dist = __esm({
|
|
22496
22497
|
return t.layer;
|
22497
22498
|
}
|
22498
22499
|
});
|
22499
|
-
|
22500
|
+
Pa = createSelector([At, Ee, $r], (a2, e, t) => {
|
22500
22501
|
if (t)
|
22501
22502
|
return a2.filter((i) => {
|
22502
22503
|
var r;
|
22503
22504
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22504
22505
|
});
|
22505
22506
|
});
|
22506
|
-
|
22507
|
+
ba = createSelector([At, Ta], (a2, e) => {
|
22507
22508
|
if (e)
|
22508
22509
|
return a2.filter((t) => {
|
22509
22510
|
var i, r;
|
22510
22511
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22511
22512
|
});
|
22512
22513
|
});
|
22513
|
-
|
22514
|
+
Xo = createSelector(At, (a2) => a2.filter((e) => {
|
22514
22515
|
var t;
|
22515
22516
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22516
22517
|
}));
|
22517
|
-
|
22518
|
-
|
22519
|
-
|
22520
|
-
|
22521
|
-
|
22522
|
-
|
22523
|
-
|
22524
|
-
|
22525
|
-
|
22518
|
+
Zo = createSelector([ba, Ta], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22519
|
+
en = createSelector([Pa, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22520
|
+
gS = createSelector(Xo, (a2) => a2.filter((e) => !e.read).length);
|
22521
|
+
TS = A(Pa);
|
22522
|
+
fS = A(ba);
|
22523
|
+
vS = A(Zo);
|
22524
|
+
MS = A(en);
|
22525
|
+
Ia = A(Jo);
|
22526
|
+
wS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
|
22526
22527
|
var r;
|
22527
22528
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22528
22529
|
}));
|
22529
|
-
|
22530
|
-
|
22531
|
-
|
22532
|
-
|
22533
|
-
|
22530
|
+
tn = (a2) => a2.roleChangeRequests[0] || null;
|
22531
|
+
DS = createSelector([tn, K, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22532
|
+
_S = createSelector([at], (a2) => St(a2));
|
22533
|
+
NS = createSelector([sa], (a2) => St(a2));
|
22534
|
+
sn = createSelector([z, O], (a2, e) => {
|
22534
22535
|
let t = null;
|
22535
22536
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22536
22537
|
});
|
22537
|
-
|
22538
|
+
an = createSelector([oe, O], (a2, e) => {
|
22538
22539
|
let t = null;
|
22539
22540
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22540
22541
|
});
|
22541
|
-
|
22542
|
+
cn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(cn || {});
|
22542
22543
|
zr = class {
|
22543
22544
|
constructor() {
|
22544
22545
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22545
|
-
this.failedEvents = new
|
22546
|
+
this.failedEvents = new me("client-events");
|
22546
22547
|
this.isConnected = true;
|
22547
22548
|
this.env = null;
|
22548
22549
|
this.websocketURL = "";
|
@@ -22558,7 +22559,7 @@ var init_dist = __esm({
|
|
22558
22559
|
this.addEventToStorage(e);
|
22559
22560
|
return;
|
22560
22561
|
}
|
22561
|
-
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ?
|
22562
|
+
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Ws : $s;
|
22562
22563
|
fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
|
22563
22564
|
if (r.status === 401) {
|
22564
22565
|
this.removeFromStorage(e);
|
@@ -22584,66 +22585,66 @@ var init_dist = __esm({
|
|
22584
22585
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22585
22586
|
}
|
22586
22587
|
};
|
22587
|
-
|
22588
|
+
be = new zr();
|
22588
22589
|
j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
|
22589
22590
|
ir = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ir || {});
|
22590
|
-
|
22591
|
-
|
22592
|
-
|
22593
|
-
|
22594
|
-
|
22595
|
-
|
22596
|
-
|
22597
|
-
|
22591
|
+
lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
|
22592
|
+
Rn = (a2) => a2.localPeer.id;
|
22593
|
+
An = (a2) => a2.localPeer.audioTrack;
|
22594
|
+
Hn = (a2) => a2.localPeer.videoTrack;
|
22595
|
+
Cn = (a2, e) => e;
|
22596
|
+
Qa = (a2, e) => e;
|
22597
|
+
Ln = (a2) => a2.remoteTrackStats;
|
22598
|
+
za = (a2) => a2.peerStats;
|
22598
22599
|
ts = (a2) => a2.localTrackStats;
|
22599
|
-
|
22600
|
-
|
22600
|
+
Re = createSelector([za, Rn], (a2, e) => a2[e]);
|
22601
|
+
wn = createSelector(Re, (a2) => {
|
22601
22602
|
var e;
|
22602
22603
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22603
22604
|
});
|
22604
|
-
|
22605
|
+
Dn = createSelector(Re, (a2) => {
|
22605
22606
|
var e;
|
22606
22607
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22607
22608
|
});
|
22608
|
-
|
22609
|
+
_n = createSelector(Re, (a2) => {
|
22609
22610
|
var e;
|
22610
22611
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22611
22612
|
});
|
22612
|
-
|
22613
|
+
Nn = createSelector(Re, (a2) => {
|
22613
22614
|
var e;
|
22614
22615
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22615
22616
|
});
|
22616
|
-
|
22617
|
+
On = createSelector(Re, (a2) => {
|
22617
22618
|
var e;
|
22618
22619
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22619
22620
|
});
|
22620
|
-
|
22621
|
+
xn = createSelector(Re, (a2) => {
|
22621
22622
|
var e;
|
22622
22623
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22623
22624
|
});
|
22624
|
-
|
22625
|
+
Un = createSelector(Re, (a2) => {
|
22625
22626
|
var e;
|
22626
22627
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22627
22628
|
});
|
22628
|
-
|
22629
|
+
Bn = createSelector(Re, (a2) => {
|
22629
22630
|
var e;
|
22630
22631
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22631
22632
|
});
|
22632
|
-
|
22633
|
-
|
22634
|
-
is = createSelector([ts,
|
22635
|
-
|
22636
|
-
|
22637
|
-
|
22633
|
+
Vn = createSelector([za, Cn], (a2, e) => e ? a2[e] : void 0);
|
22634
|
+
Fn = createSelector([Ln, Qa], (a2, e) => e ? a2[e] : void 0);
|
22635
|
+
is = createSelector([ts, Qa], (a2, e) => e ? a2[e] : void 0);
|
22636
|
+
Gn = A(Vn);
|
22637
|
+
Wn = A(Fn);
|
22638
|
+
$n = createSelector([ts, An], (a2, e) => {
|
22638
22639
|
var t;
|
22639
22640
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22640
22641
|
});
|
22641
|
-
|
22642
|
-
|
22642
|
+
Kn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
|
22643
|
+
qn = createSelector([ts, Hn], (a2, e) => {
|
22643
22644
|
var t;
|
22644
22645
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22645
22646
|
});
|
22646
|
-
|
22647
|
+
jn = A(createSelector(is, (a2) => a2));
|
22647
22648
|
}
|
22648
22649
|
});
|
22649
22650
|
|
@@ -22768,7 +22769,7 @@ var init_StreamActions = __esm({
|
|
22768
22769
|
};
|
22769
22770
|
RecordingPauseStatus = () => {
|
22770
22771
|
const recording = (0, import_react_sdk40.useHMSStore)(import_react_sdk40.selectRecordingState);
|
22771
|
-
if (recording.hls && recording.hls.state ===
|
22772
|
+
if (recording.hls && recording.hls.state === Cs.PAUSED) {
|
22772
22773
|
return /* @__PURE__ */ import_react88.default.createElement(
|
22773
22774
|
Tooltip,
|
22774
22775
|
{
|
@@ -28166,7 +28167,7 @@ var init_Chat = __esm({
|
|
28166
28167
|
const listRef = (0, import_react153.useRef)(null);
|
28167
28168
|
const hmsActions = (0, import_react_sdk73.useHMSActions)();
|
28168
28169
|
const vanillaStore = (0, import_react_sdk73.useHMSVanillaStore)();
|
28169
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(
|
28170
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(qm("chatState" /* CHAT_STATE */)) || {};
|
28170
28171
|
const isMobile = (0, import_react_use26.useMedia)(config.media.md);
|
28171
28172
|
const isMobileHLSStream = useMobileHLSStream();
|
28172
28173
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -28256,7 +28257,7 @@ var init_Chat = __esm({
|
|
28256
28257
|
scrollToBottom,
|
28257
28258
|
listRef
|
28258
28259
|
}) => {
|
28259
|
-
const unreadCount = (0, import_react_sdk73.useHMSStore)(
|
28260
|
+
const unreadCount = (0, import_react_sdk73.useHMSStore)(mm);
|
28260
28261
|
if (!unreadCount || !listRef.current) {
|
28261
28262
|
return null;
|
28262
28263
|
}
|
@@ -29366,7 +29367,7 @@ var init_VBPicker = __esm({
|
|
29366
29367
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
29367
29368
|
const hmsActions = (0, import_react_sdk82.useHMSActions)();
|
29368
29369
|
const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
|
29369
|
-
const role = (0, import_react_sdk82.useHMSStore)(
|
29370
|
+
const role = (0, import_react_sdk82.useHMSStore)(at);
|
29370
29371
|
const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
|
29371
29372
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
29372
29373
|
const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -29375,12 +29376,12 @@ var init_VBPicker = __esm({
|
|
29375
29376
|
const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
|
29376
29377
|
const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
|
29377
29378
|
const [isBlurSupported, setIsBlurSupported] = (0, import_react163.useState)(false);
|
29378
|
-
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(
|
29379
|
-
const effectsKey = (0, import_react_sdk82.useHMSStore)(
|
29379
|
+
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Rm);
|
29380
|
+
const effectsKey = (0, import_react_sdk82.useHMSStore)(Hm);
|
29380
29381
|
const isMobile = (0, import_react_use32.useMedia)(config.media.md);
|
29381
29382
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
29382
29383
|
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
29383
|
-
const background = (0, import_react_sdk82.useHMSStore)(
|
29384
|
+
const background = (0, import_react_sdk82.useHMSStore)(Km(APP_DATA.background));
|
29384
29385
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
29385
29386
|
const inPreview = roomState === import_react_sdk82.HMSRoomState.Preview;
|
29386
29387
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -31308,9 +31309,9 @@ var init_ScreenshareLayout = __esm({
|
|
31308
31309
|
}
|
31309
31310
|
});
|
31310
31311
|
|
31311
|
-
// ../../../../../../../tmp/tmp-
|
31312
|
-
var
|
31313
|
-
"../../../../../../../tmp/tmp-
|
31312
|
+
// ../../../../../../../tmp/tmp-2790-UYZDfK0Vw0WG/19197fbfd7f1/index.css
|
31313
|
+
var init_fbfd7f1 = __esm({
|
31314
|
+
"../../../../../../../tmp/tmp-2790-UYZDfK0Vw0WG/19197fbfd7f1/index.css"() {
|
31314
31315
|
}
|
31315
31316
|
});
|
31316
31317
|
|
@@ -31332,7 +31333,7 @@ var init_WhiteboardLayout = __esm({
|
|
31332
31333
|
init_ProminenceLayout();
|
31333
31334
|
init_useUISettings();
|
31334
31335
|
init_constants();
|
31335
|
-
|
31336
|
+
init_fbfd7f1();
|
31336
31337
|
WhiteboardEmbed = () => {
|
31337
31338
|
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31338
31339
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
|
@@ -35608,7 +35609,7 @@ function Notifications() {
|
|
35608
35609
|
}, []);
|
35609
35610
|
(0, import_react_sdk121.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
35610
35611
|
(0, import_react231.useEffect)(() => {
|
35611
|
-
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
35612
|
+
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p, _q;
|
35612
35613
|
if (!notification || isNotificationDisabled) {
|
35613
35614
|
return;
|
35614
35615
|
}
|
@@ -35649,7 +35650,7 @@ function Notifications() {
|
|
35649
35650
|
});
|
35650
35651
|
break;
|
35651
35652
|
case import_react_sdk121.HMSNotificationTypes.ROLE_UPDATED: {
|
35652
|
-
if (((
|
35653
|
+
if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
35653
35654
|
ToastManager.addToast({
|
35654
35655
|
title: `You are now a ${notification.data.roleName}`
|
35655
35656
|
});
|
@@ -36863,25 +36864,25 @@ var require_object_assign = __commonJS({
|
|
36863
36864
|
}
|
36864
36865
|
module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
36865
36866
|
var from;
|
36866
|
-
var
|
36867
|
+
var to = toObject(target);
|
36867
36868
|
var symbols;
|
36868
36869
|
for (var s = 1; s < arguments.length; s++) {
|
36869
36870
|
from = Object(arguments[s]);
|
36870
36871
|
for (var key in from) {
|
36871
36872
|
if (hasOwnProperty.call(from, key)) {
|
36872
|
-
|
36873
|
+
to[key] = from[key];
|
36873
36874
|
}
|
36874
36875
|
}
|
36875
36876
|
if (getOwnPropertySymbols) {
|
36876
36877
|
symbols = getOwnPropertySymbols(from);
|
36877
36878
|
for (var i = 0; i < symbols.length; i++) {
|
36878
36879
|
if (propIsEnumerable.call(from, symbols[i])) {
|
36879
|
-
|
36880
|
+
to[symbols[i]] = from[symbols[i]];
|
36880
36881
|
}
|
36881
36882
|
}
|
36882
36883
|
}
|
36883
36884
|
}
|
36884
|
-
return
|
36885
|
+
return to;
|
36885
36886
|
};
|
36886
36887
|
}
|
36887
36888
|
});
|