@100mslive/roomkit-react 0.3.2-alpha.5 → 0.3.3-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-K27OIEUG.js → HLSView-NVF25XHT.js} +2 -2
- package/dist/{chunk-7E3MCGCA.js → chunk-2V7F62FX.js} +538 -479
- package/dist/chunk-2V7F62FX.js.map +7 -0
- package/dist/index.cjs.js +493 -434
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +35 -35
- package/dist/meta.esbuild.json +42 -42
- package/package.json +6 -6
- package/src/Prebuilt/common/utils.js +1 -1
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +1 -1
- package/src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx +6 -6
- package/src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx +14 -2
- package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +3 -2
- package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +1 -0
- package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +3 -1
- package/src/Stats/Stats.tsx +1 -1
- package/dist/chunk-7E3MCGCA.js.map +0 -7
- /package/dist/{HLSView-K27OIEUG.js.map → HLSView-NVF25XHT.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -10,18 +10,18 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
10
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
11
11
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
12
12
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
13
|
-
var __spreadValues = (a2,
|
14
|
-
for (var prop in
|
15
|
-
if (__hasOwnProp.call(
|
16
|
-
__defNormalProp(a2, prop,
|
13
|
+
var __spreadValues = (a2, b) => {
|
14
|
+
for (var prop in b || (b = {}))
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
16
|
+
__defNormalProp(a2, prop, b[prop]);
|
17
17
|
if (__getOwnPropSymbols)
|
18
|
-
for (var prop of __getOwnPropSymbols(
|
19
|
-
if (__propIsEnum.call(
|
20
|
-
__defNormalProp(a2, prop,
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
19
|
+
if (__propIsEnum.call(b, prop))
|
20
|
+
__defNormalProp(a2, prop, b[prop]);
|
21
21
|
}
|
22
22
|
return a2;
|
23
23
|
};
|
24
|
-
var __spreadProps = (a2,
|
24
|
+
var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
|
25
25
|
var __objRest = (source, exclude) => {
|
26
26
|
var target = {};
|
27
27
|
for (var prop in source)
|
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
|
|
108
108
|
var define_process_env_default;
|
109
109
|
var init_define_process_env = __esm({
|
110
110
|
"<define:process.env>"() {
|
111
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8d2be4ed-5f26-40d6-8620-d644ae09fd5f", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.2-alpha.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8d2be4ed-5f26-40d6-8620-d644ae09fd5f", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.2-alpha.5", 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.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "603", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240304.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.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:18664", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.2-alpha.5", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8249148669", 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: "2331cbec359bb2e8009b32df6ad7225ce60de037", 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: "c0b1fdd8dcffafa20de67cb0092eae395bd7fdffea3ebe948423ecd8a1ffacbb", 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--1710248107264-0.022677594855476713:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710248107066-0.23781342381926507:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710248084793-0.5221065111483765:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710248084613-0.959046334836305:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_747e01a7-8093-4152-96b2-5c5dafe85089", INVOCATION_ID: "f8a6e4c4db99427c8ac7def81c50fbfe", 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: "479", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 328", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.2-alpha.5", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.2-alpha.5", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "2331cbec359bb2e8009b32df6ad7225ce60de037", 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_8d2be4ed-5f26-40d6-8620-d644ae09fd5f", 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_8d2be4ed-5f26-40d6-8620-d644ae09fd5f", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8d2be4ed-5f26-40d6-8620-d644ae09fd5f" };
|
111
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c141a2c0-32b5-4eb1-9121-895143e951e6", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c141a2c0-32b5-4eb1-9121-895143e951e6", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.3-alpha.0", 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.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240310.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.1/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.0-alpha.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:20031", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8295361424", 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: "23e3bf90410ae16869b67438ac403cba6027db98", 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: "febdcd611bd2e7b71c95773975a838963da6d830e4eb4ca2aaad2680a9697a39", 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--1710501539063-0.8992863326107012:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710501538840-0.4644413486761725:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710501517171-0.06504511434237248:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710501516997-0.10551021203929101:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_66b9242f-a1e3-45f9-b76e-814147f38a5f", INVOCATION_ID: "62606dcd62ad4362bca459c2f50d146f", 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: "481", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 55", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "23e3bf90410ae16869b67438ac403cba6027db98", 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_c141a2c0-32b5-4eb1-9121-895143e951e6", 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_c141a2c0-32b5-4eb1-9121-895143e951e6", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c141a2c0-32b5-4eb1-9121-895143e951e6" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -2658,7 +2658,7 @@ var init_AudioLevel = __esm({
|
|
2658
2658
|
init_Layout();
|
2659
2659
|
init_Theme();
|
2660
2660
|
init_audio_level();
|
2661
|
-
positionValues = new Array(101).fill(0).reduce((acc,
|
2661
|
+
positionValues = new Array(101).fill(0).reduce((acc, _2, index) => {
|
2662
2662
|
acc[index] = Math.round(index / 100 * 4) / 4;
|
2663
2663
|
return acc;
|
2664
2664
|
}, {});
|
@@ -2939,7 +2939,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
2939
2939
|
label: "Bitrate(A)",
|
2940
2940
|
value: formatBytes(audioTrackStats == null ? void 0 : audioTrackStats.bitrate, "b/s")
|
2941
2941
|
}
|
2942
|
-
), /* @__PURE__ */ import_react21.default.createElement(StatsRow, { show: isNotNullish(downlinkScore), label: "
|
2942
|
+
), /* @__PURE__ */ import_react21.default.createElement(StatsRow, { show: isNotNullish(downlinkScore), label: "CQS", value: downlinkScore }), /* @__PURE__ */ import_react21.default.createElement(StatsRow, { show: isNotNullish(videoTrackStats == null ? void 0 : videoTrackStats.codec), label: "Codec(V)", value: videoTrackStats == null ? void 0 : videoTrackStats.codec }), /* @__PURE__ */ import_react21.default.createElement(StatsRow, { show: isNotNullish(audioTrackStats == null ? void 0 : audioTrackStats.codec), label: "Codec(A)", value: audioTrackStats == null ? void 0 : audioTrackStats.codec }), /* @__PURE__ */ import_react21.default.createElement(PacketLostAndJitter, { audioTrackStats, videoTrackStats }))));
|
2943
2943
|
}
|
2944
2944
|
function isNotNullishAndNot0(value) {
|
2945
2945
|
return isNotNullish(value) && value !== 0;
|
@@ -4743,7 +4743,7 @@ var require_lodash = __commonJS({
|
|
4743
4743
|
return string.match(reUnicodeWord) || [];
|
4744
4744
|
}
|
4745
4745
|
var runInContext = function runInContext2(context) {
|
4746
|
-
context = context == null ? root :
|
4746
|
+
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
4747
4747
|
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
4748
4748
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
4749
4749
|
var coreJsData = context["__core-js_shared__"];
|
@@ -8090,7 +8090,7 @@ var require_lodash = __commonJS({
|
|
8090
8090
|
function eq(value, other) {
|
8091
8091
|
return value === other || value !== value && other !== other;
|
8092
8092
|
}
|
8093
|
-
var
|
8093
|
+
var gt = createRelationalOperation(baseGt);
|
8094
8094
|
var gte = createRelationalOperation(function(value, other) {
|
8095
8095
|
return value >= other;
|
8096
8096
|
});
|
@@ -9229,7 +9229,7 @@ var require_lodash = __commonJS({
|
|
9229
9229
|
lodash.forOwn = forOwn;
|
9230
9230
|
lodash.forOwnRight = forOwnRight;
|
9231
9231
|
lodash.get = get;
|
9232
|
-
lodash.gt =
|
9232
|
+
lodash.gt = gt;
|
9233
9233
|
lodash.gte = gte;
|
9234
9234
|
lodash.has = has;
|
9235
9235
|
lodash.hasIn = hasIn;
|
@@ -9517,17 +9517,17 @@ var require_lodash = __commonJS({
|
|
9517
9517
|
}
|
9518
9518
|
return lodash;
|
9519
9519
|
};
|
9520
|
-
var
|
9520
|
+
var _2 = runInContext();
|
9521
9521
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
9522
|
-
root._ =
|
9522
|
+
root._ = _2;
|
9523
9523
|
define(function() {
|
9524
|
-
return
|
9524
|
+
return _2;
|
9525
9525
|
});
|
9526
9526
|
} else if (freeModule) {
|
9527
|
-
(freeModule.exports =
|
9528
|
-
freeExports._ =
|
9527
|
+
(freeModule.exports = _2)._ = _2;
|
9528
|
+
freeExports._ = _2;
|
9529
9529
|
} else {
|
9530
|
-
root._ =
|
9530
|
+
root._ = _2;
|
9531
9531
|
}
|
9532
9532
|
}).call(exports);
|
9533
9533
|
}
|
@@ -9742,12 +9742,12 @@ var init_utils2 = __esm({
|
|
9742
9742
|
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
9743
9743
|
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
9744
9744
|
};
|
9745
|
-
compareArrays = (a2,
|
9746
|
-
if (a2.length !==
|
9745
|
+
compareArrays = (a2, b) => {
|
9746
|
+
if (a2.length !== b.length)
|
9747
9747
|
return false;
|
9748
9748
|
else {
|
9749
9749
|
for (var i = 0; i < a2.length; i++) {
|
9750
|
-
if (a2[i] !==
|
9750
|
+
if (a2[i] !== b[i]) {
|
9751
9751
|
return false;
|
9752
9752
|
}
|
9753
9753
|
}
|
@@ -9761,7 +9761,7 @@ var init_utils2 = __esm({
|
|
9761
9761
|
return (answer == null ? void 0 : answer.options) && (localPeerResponse == null ? void 0 : localPeerResponse.options) && compareArrays(answer == null ? void 0 : answer.options, localPeerResponse == null ? void 0 : localPeerResponse.options);
|
9762
9762
|
}
|
9763
9763
|
};
|
9764
|
-
isValidTextInput = (text, minLength = 1, maxLength =
|
9764
|
+
isValidTextInput = (text, minLength = 1, maxLength = 1024) => {
|
9765
9765
|
return text && text.length >= minLength && text.length <= maxLength;
|
9766
9766
|
};
|
9767
9767
|
calculateAvatarAndAttribBoxSize = (calculatedWidth, calculatedHeight) => {
|
@@ -13923,8 +13923,8 @@ var init_DesktopOptions = __esm({
|
|
13923
13923
|
});
|
13924
13924
|
|
13925
13925
|
// ../../node_modules/reselect/es/index.js
|
13926
|
-
function defaultEqualityCheck(a2,
|
13927
|
-
return a2 ===
|
13926
|
+
function defaultEqualityCheck(a2, b) {
|
13927
|
+
return a2 === b;
|
13928
13928
|
}
|
13929
13929
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
13930
13930
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -16177,7 +16177,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16177
16177
|
if (typeof c !== "object" || c.mandatory || c.optional) {
|
16178
16178
|
return c;
|
16179
16179
|
}
|
16180
|
-
const
|
16180
|
+
const cc2 = {};
|
16181
16181
|
Object.keys(c).forEach((key) => {
|
16182
16182
|
if (key === "require" || key === "advanced" || key === "mediaSource") {
|
16183
16183
|
return;
|
@@ -16193,35 +16193,35 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16193
16193
|
return name === "deviceId" ? "sourceId" : name;
|
16194
16194
|
};
|
16195
16195
|
if (r.ideal !== void 0) {
|
16196
|
-
|
16197
|
-
let
|
16196
|
+
cc2.optional = cc2.optional || [];
|
16197
|
+
let oc = {};
|
16198
16198
|
if (typeof r.ideal === "number") {
|
16199
|
-
|
16200
|
-
|
16201
|
-
|
16202
|
-
|
16203
|
-
|
16199
|
+
oc[oldname_("min", key)] = r.ideal;
|
16200
|
+
cc2.optional.push(oc);
|
16201
|
+
oc = {};
|
16202
|
+
oc[oldname_("max", key)] = r.ideal;
|
16203
|
+
cc2.optional.push(oc);
|
16204
16204
|
} else {
|
16205
|
-
|
16206
|
-
|
16205
|
+
oc[oldname_("", key)] = r.ideal;
|
16206
|
+
cc2.optional.push(oc);
|
16207
16207
|
}
|
16208
16208
|
}
|
16209
16209
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
16210
|
-
|
16211
|
-
|
16210
|
+
cc2.mandatory = cc2.mandatory || {};
|
16211
|
+
cc2.mandatory[oldname_("", key)] = r.exact;
|
16212
16212
|
} else {
|
16213
16213
|
["min", "max"].forEach((mix) => {
|
16214
16214
|
if (r[mix] !== void 0) {
|
16215
|
-
|
16216
|
-
|
16215
|
+
cc2.mandatory = cc2.mandatory || {};
|
16216
|
+
cc2.mandatory[oldname_(mix, key)] = r[mix];
|
16217
16217
|
}
|
16218
16218
|
});
|
16219
16219
|
}
|
16220
16220
|
});
|
16221
16221
|
if (c.advanced) {
|
16222
|
-
|
16222
|
+
cc2.optional = (cc2.optional || []).concat(c.advanced);
|
16223
16223
|
}
|
16224
|
-
return
|
16224
|
+
return cc2;
|
16225
16225
|
};
|
16226
16226
|
const shimConstraints_ = function(constraints, func) {
|
16227
16227
|
if (browserDetails.version >= 61) {
|
@@ -16229,9 +16229,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16229
16229
|
}
|
16230
16230
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16231
16231
|
if (constraints && typeof constraints.audio === "object") {
|
16232
|
-
const remap = function(obj, a2,
|
16233
|
-
if (a2 in obj && !(
|
16234
|
-
obj[
|
16232
|
+
const remap = function(obj, a2, b) {
|
16233
|
+
if (a2 in obj && !(b in obj)) {
|
16234
|
+
obj[b] = obj[a2];
|
16235
16235
|
delete obj[a2];
|
16236
16236
|
}
|
16237
16237
|
};
|
@@ -16991,9 +16991,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
16991
16991
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
16992
16992
|
};
|
16993
16993
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
16994
|
-
const remap = function(obj, a2,
|
16995
|
-
if (a2 in obj && !(
|
16996
|
-
obj[
|
16994
|
+
const remap = function(obj, a2, b) {
|
16995
|
+
if (a2 in obj && !(b in obj)) {
|
16996
|
+
obj[b] = obj[a2];
|
16997
16997
|
delete obj[a2];
|
16998
16998
|
}
|
16999
16999
|
};
|
@@ -17765,12 +17765,12 @@ var require_sdp = __commonJS({
|
|
17765
17765
|
return parsed;
|
17766
17766
|
};
|
17767
17767
|
SDPUtils2.writeRtpMap = function(codec) {
|
17768
|
-
let
|
17768
|
+
let pt = codec.payloadType;
|
17769
17769
|
if (codec.preferredPayloadType !== void 0) {
|
17770
|
-
|
17770
|
+
pt = codec.preferredPayloadType;
|
17771
17771
|
}
|
17772
17772
|
const channels = codec.channels || codec.numChannels || 1;
|
17773
|
-
return "a=rtpmap:" +
|
17773
|
+
return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
17774
17774
|
};
|
17775
17775
|
SDPUtils2.parseExtmap = function(line) {
|
17776
17776
|
const parts = line.substring(9).split(" ");
|
@@ -17796,9 +17796,9 @@ var require_sdp = __commonJS({
|
|
17796
17796
|
};
|
17797
17797
|
SDPUtils2.writeFmtp = function(codec) {
|
17798
17798
|
let line = "";
|
17799
|
-
let
|
17799
|
+
let pt = codec.payloadType;
|
17800
17800
|
if (codec.preferredPayloadType !== void 0) {
|
17801
|
-
|
17801
|
+
pt = codec.preferredPayloadType;
|
17802
17802
|
}
|
17803
17803
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
17804
17804
|
const params = [];
|
@@ -17809,7 +17809,7 @@ var require_sdp = __commonJS({
|
|
17809
17809
|
params.push(param);
|
17810
17810
|
}
|
17811
17811
|
});
|
17812
|
-
line += "a=fmtp:" +
|
17812
|
+
line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
|
17813
17813
|
}
|
17814
17814
|
return line;
|
17815
17815
|
};
|
@@ -17822,13 +17822,13 @@ var require_sdp = __commonJS({
|
|
17822
17822
|
};
|
17823
17823
|
SDPUtils2.writeRtcpFb = function(codec) {
|
17824
17824
|
let lines = "";
|
17825
|
-
let
|
17825
|
+
let pt = codec.payloadType;
|
17826
17826
|
if (codec.preferredPayloadType !== void 0) {
|
17827
|
-
|
17827
|
+
pt = codec.preferredPayloadType;
|
17828
17828
|
}
|
17829
17829
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
17830
17830
|
codec.rtcpFeedback.forEach((fb) => {
|
17831
|
-
lines += "a=rtcp-fb:" +
|
17831
|
+
lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
17832
17832
|
});
|
17833
17833
|
}
|
17834
17834
|
return lines;
|
@@ -17956,21 +17956,21 @@ var require_sdp = __commonJS({
|
|
17956
17956
|
const mline = lines[0].split(" ");
|
17957
17957
|
description.profile = mline[2];
|
17958
17958
|
for (let i = 3; i < mline.length; i++) {
|
17959
|
-
const
|
17959
|
+
const pt = mline[i];
|
17960
17960
|
const rtpmapline = SDPUtils2.matchPrefix(
|
17961
17961
|
mediaSection,
|
17962
|
-
"a=rtpmap:" +
|
17962
|
+
"a=rtpmap:" + pt + " "
|
17963
17963
|
)[0];
|
17964
17964
|
if (rtpmapline) {
|
17965
17965
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
17966
17966
|
const fmtps = SDPUtils2.matchPrefix(
|
17967
17967
|
mediaSection,
|
17968
|
-
"a=fmtp:" +
|
17968
|
+
"a=fmtp:" + pt + " "
|
17969
17969
|
);
|
17970
17970
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
17971
17971
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
17972
17972
|
mediaSection,
|
17973
|
-
"a=rtcp-fb:" +
|
17973
|
+
"a=rtcp-fb:" + pt + " "
|
17974
17974
|
).map(SDPUtils2.parseRtcpFb);
|
17975
17975
|
description.codecs.push(codec);
|
17976
17976
|
switch (codec.name.toUpperCase()) {
|
@@ -19440,41 +19440,41 @@ function He(a2, e) {
|
|
19440
19440
|
if (e)
|
19441
19441
|
for (let r of e.auxiliaryTracks) {
|
19442
19442
|
let s = a2[r];
|
19443
|
-
|
19443
|
+
Ha(s) && (i = it(s) ? s : i, t = rt(s) ? s : t);
|
19444
19444
|
}
|
19445
19445
|
return { video: t, audio: i };
|
19446
19446
|
}
|
19447
|
-
function
|
19447
|
+
function it(a2) {
|
19448
19448
|
return a2 && a2.type === "audio";
|
19449
19449
|
}
|
19450
|
-
function
|
19450
|
+
function rt(a2) {
|
19451
19451
|
return a2 && a2.type === "video";
|
19452
19452
|
}
|
19453
|
-
function
|
19453
|
+
function Ha(a2) {
|
19454
19454
|
return a2 && a2.source === "screen";
|
19455
19455
|
}
|
19456
|
-
function
|
19456
|
+
function $t(a2) {
|
19457
19457
|
return a2 && a2.source === "audioplaylist";
|
19458
19458
|
}
|
19459
|
-
function
|
19459
|
+
function st(a2) {
|
19460
19460
|
return a2 && a2.source === "videoplaylist";
|
19461
19461
|
}
|
19462
|
-
function
|
19462
|
+
function Jr(a2) {
|
19463
19463
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
19464
19464
|
}
|
19465
19465
|
function Ue(a2, e) {
|
19466
19466
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
19467
19467
|
}
|
19468
|
-
function
|
19468
|
+
function at(a2) {
|
19469
19469
|
var r;
|
19470
19470
|
let e = false, t = false, i = false;
|
19471
19471
|
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 };
|
19472
19472
|
}
|
19473
|
-
function
|
19473
|
+
function A(a2) {
|
19474
19474
|
return (e) => (t) => a2(t, e);
|
19475
19475
|
}
|
19476
|
-
function
|
19477
|
-
if (
|
19476
|
+
function Ga() {
|
19477
|
+
if (_ && window) {
|
19478
19478
|
let a2 = window.location.hostname;
|
19479
19479
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
19480
19480
|
}
|
@@ -19483,17 +19483,17 @@ function Ba() {
|
|
19483
19483
|
function ie(a2) {
|
19484
19484
|
return a2 != null;
|
19485
19485
|
}
|
19486
|
-
function
|
19487
|
-
let t = "web", i =
|
19486
|
+
function nt(a2 = "prod", e) {
|
19487
|
+
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
19488
19488
|
if (Ce)
|
19489
|
-
return
|
19490
|
-
let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n =
|
19491
|
-
return s.type && (p = `${
|
19489
|
+
return Es({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ps, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
19490
|
+
let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
|
19491
|
+
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), Es({ os: n, os_version: l, sdk: t, sdk_version: Ps, device_model: p, env: i, domain: Ve, 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 });
|
19492
19492
|
}
|
19493
|
-
function
|
19493
|
+
function ur(a2) {
|
19494
19494
|
return a2.replace(/ /g, "_");
|
19495
19495
|
}
|
19496
|
-
function
|
19496
|
+
function Jt(a2, e = 300) {
|
19497
19497
|
let t;
|
19498
19498
|
return function(...i) {
|
19499
19499
|
clearTimeout(t), t = void 0;
|
@@ -19503,13 +19503,13 @@ function jt(a2, e = 300) {
|
|
19503
19503
|
}, e);
|
19504
19504
|
};
|
19505
19505
|
}
|
19506
|
-
function
|
19506
|
+
function nm(a2) {
|
19507
19507
|
return (e) => {
|
19508
19508
|
if (e.sessionStore)
|
19509
19509
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19510
19510
|
};
|
19511
19511
|
}
|
19512
|
-
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23,
|
19512
|
+
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Dt, import_eventemitter24, import_uuid9, import_uuid10, ka, Pa, Ea, Vt, Wr, Kr, $r, m, v, Xi, Ia, lr, Zi, Ra, qr, er, jr, B, Ca, Rn, Hn, G, Wt, zr, w, tr, La, ye, Dn, Da, oe, wa, z, ue, wn, _n, Z, K, _a7, Xr, Nn, On, rr, Na, Un, Bn, Vn, Fn, Gn, $n, Wn, Kn, ot, Oa, qn, Y, es, jn, ne, Jn, Kt, xa, ts, Qn, is, zn, Yn, Xn, Zn, ec, tc, ic, rc, rs, nc, Ua, cc, as, sr, os, ns, cs, ds, ls, us, ps, hs, ms, Ba, d, pe, _, Ss, Ce, Fa, gc, gs, Ts, vs, Ve, M, f, $a, h, nr, Ms, ce, ys, Ps, Es, R, pr, Fe, y, hr, q, mr, Sr, Cs, Ls, Ds, gr, Os, Tr, xs, fr, vr, Vs, Fs, ht, ze, Tt, k, Hr, ft, Js, ho, mo, J, Cr, So, go, To, fo, vo, Q, om, dm, oi, Qs, lm, um, pm, Mo, yo, mm, zs, Sm, ko, gm, Tm, fm, vm, Mm, ym, Ys, Xs, Pm, Em, Zs, bm, Am, ea, Im, Rm, Hm, ta, ia, Po, Eo, bo, Cm, Lm, Dm, wm, _m, ra, Km, Ao, qm, jm, Jm, Ro, Ho, Nr, Te, $, Bi, Ji, Qo, zo, Yo, Xo, Ma, Zo, ya, Vr, ve, en, tn, rn, sn, an, on, nn, cn, dn, ln, Fr, un, pn, hn, mn, Sn, gn;
|
19513
19513
|
var init_dist = __esm({
|
19514
19514
|
"../hms-video-store/dist/index.js"() {
|
19515
19515
|
"use strict";
|
@@ -19532,73 +19532,73 @@ var init_dist = __esm({
|
|
19532
19532
|
import_eventemitter22 = require("eventemitter2");
|
19533
19533
|
import_uuid8 = require("uuid");
|
19534
19534
|
import_eventemitter23 = require("eventemitter2");
|
19535
|
-
|
19535
|
+
Dt = __toESM(require_lib());
|
19536
19536
|
import_eventemitter24 = __toESM(require("eventemitter2"));
|
19537
19537
|
import_uuid9 = require("uuid");
|
19538
19538
|
import_uuid10 = require("uuid");
|
19539
19539
|
init_es();
|
19540
|
-
|
19541
|
-
|
19542
|
-
|
19540
|
+
ka = Object.defineProperty;
|
19541
|
+
Pa = Object.defineProperties;
|
19542
|
+
Ea = Object.getOwnPropertyDescriptors;
|
19543
19543
|
Vt = Object.getOwnPropertySymbols;
|
19544
|
-
|
19545
|
-
|
19546
|
-
|
19547
|
-
|
19544
|
+
Wr = Object.prototype.hasOwnProperty;
|
19545
|
+
Kr = Object.prototype.propertyIsEnumerable;
|
19546
|
+
$r = (a2, e, t) => e in a2 ? ka(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
19547
|
+
m = (a2, e) => {
|
19548
19548
|
for (var t in e || (e = {}))
|
19549
|
-
|
19549
|
+
Wr.call(e, t) && $r(a2, t, e[t]);
|
19550
19550
|
if (Vt)
|
19551
19551
|
for (var t of Vt(e))
|
19552
|
-
|
19552
|
+
Kr.call(e, t) && $r(a2, t, e[t]);
|
19553
19553
|
return a2;
|
19554
19554
|
};
|
19555
|
-
|
19556
|
-
|
19555
|
+
v = (a2, e) => Pa(a2, Ea(e));
|
19556
|
+
Xi = (a2, e) => {
|
19557
19557
|
var t = {};
|
19558
19558
|
for (var i in a2)
|
19559
|
-
|
19559
|
+
Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
19560
19560
|
if (a2 != null && Vt)
|
19561
19561
|
for (var i of Vt(a2))
|
19562
|
-
e.indexOf(i) < 0 &&
|
19562
|
+
e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
|
19563
19563
|
return t;
|
19564
19564
|
};
|
19565
|
-
|
19566
|
-
|
19567
|
-
|
19565
|
+
Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19566
|
+
lr = Ia((ed, Ka) => {
|
19567
|
+
Ka.exports = { version: "0.12.3-alpha.0", 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"] };
|
19568
19568
|
});
|
19569
|
-
|
19570
|
-
|
19571
|
-
|
19572
|
-
|
19573
|
-
|
19574
|
-
|
19575
|
-
|
19576
|
-
|
19577
|
-
|
19569
|
+
Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
|
19570
|
+
Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
|
19571
|
+
qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
|
19572
|
+
er = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(er || {});
|
19573
|
+
jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
|
19574
|
+
B = (a2) => a2.room;
|
19575
|
+
Ca = (a2) => a2.errors;
|
19576
|
+
Rn = createSelector(Ca, (a2) => a2.length === 0 ? null : a2.at(-1));
|
19577
|
+
Hn = createSelector(B, (a2) => a2.id);
|
19578
19578
|
G = (a2) => a2.peers;
|
19579
|
-
|
19580
|
-
|
19581
|
-
|
19582
|
-
|
19583
|
-
|
19584
|
-
ye = createSelector([
|
19585
|
-
|
19586
|
-
|
19587
|
-
|
19588
|
-
|
19589
|
-
z = createSelector(
|
19590
|
-
ue = createSelector(
|
19591
|
-
|
19592
|
-
|
19579
|
+
Wt = (a2) => a2.messages.byID;
|
19580
|
+
zr = (a2) => a2.messages.allIDs;
|
19581
|
+
w = (a2) => a2.tracks;
|
19582
|
+
tr = (a2) => a2.appData;
|
19583
|
+
La = (a2) => a2.speakers;
|
19584
|
+
ye = createSelector([B], (a2) => a2 && a2.isConnected);
|
19585
|
+
Dn = createSelector([ye, B], (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));
|
19586
|
+
Da = (a2) => a2.hideLocalPeer;
|
19587
|
+
oe = createSelector([B, G, Da], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
19588
|
+
wa = createSelector(w, (a2) => Object.values(a2));
|
19589
|
+
z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
|
19590
|
+
ue = createSelector(B, (a2) => a2.localPeer);
|
19591
|
+
wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
|
19592
|
+
_n = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
|
19593
19593
|
Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
19594
19594
|
K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
19595
|
-
|
19596
|
-
|
19595
|
+
_a7 = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
19596
|
+
Xr = createSelector([Z, K, _a7], (a2, e, t) => {
|
19597
19597
|
let i = t ? [...t] : [];
|
19598
19598
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
19599
19599
|
});
|
19600
|
-
|
19601
|
-
|
19600
|
+
Nn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
|
19601
|
+
On = createSelector(G, La, (a2, e) => {
|
19602
19602
|
let t = Object.entries(e).sort((i, r) => {
|
19603
19603
|
var n, l;
|
19604
19604
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -19611,11 +19611,11 @@ var init_dist = __esm({
|
|
19611
19611
|
}
|
19612
19612
|
return null;
|
19613
19613
|
});
|
19614
|
-
|
19614
|
+
rr = createSelector(z, w, (a2, e) => {
|
19615
19615
|
let { video: t, audio: i } = He(e, a2);
|
19616
19616
|
return !!(t || i);
|
19617
19617
|
});
|
19618
|
-
|
19618
|
+
Na = createSelector(G, w, (a2, e) => {
|
19619
19619
|
let t;
|
19620
19620
|
for (let i in a2) {
|
19621
19621
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -19625,15 +19625,15 @@ var init_dist = __esm({
|
|
19625
19625
|
}
|
19626
19626
|
return t;
|
19627
19627
|
});
|
19628
|
-
|
19629
|
-
|
19628
|
+
Un = createSelector(Na, (a2) => !!a2);
|
19629
|
+
Bn = createSelector(G, w, (a2, e) => {
|
19630
19630
|
for (let t in a2) {
|
19631
19631
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
19632
19632
|
if (!s && r)
|
19633
19633
|
return i;
|
19634
19634
|
}
|
19635
19635
|
});
|
19636
|
-
|
19636
|
+
Vn = createSelector(G, w, (a2, e) => {
|
19637
19637
|
let t = [], i = [];
|
19638
19638
|
for (let r in a2) {
|
19639
19639
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -19641,77 +19641,77 @@ var init_dist = __esm({
|
|
19641
19641
|
}
|
19642
19642
|
return t.concat(i);
|
19643
19643
|
});
|
19644
|
-
|
19644
|
+
Fn = createSelector(G, w, (a2, e) => {
|
19645
19645
|
for (let t in e) {
|
19646
19646
|
let i = e[t];
|
19647
|
-
if (
|
19647
|
+
if (st(i) && rt(i) && i.peerId)
|
19648
19648
|
return a2[i.peerId];
|
19649
19649
|
}
|
19650
19650
|
});
|
19651
|
-
|
19651
|
+
Gn = createSelector(G, w, (a2, e) => {
|
19652
19652
|
for (let t in e) {
|
19653
19653
|
let i = e[t];
|
19654
|
-
if (
|
19654
|
+
if ($t(i) && i.peerId)
|
19655
19655
|
return a2[i.peerId];
|
19656
19656
|
}
|
19657
19657
|
});
|
19658
|
-
|
19659
|
-
|
19660
|
-
|
19661
|
-
|
19658
|
+
$n = createSelector(wa, (a2) => a2.filter(Jr));
|
19659
|
+
Wn = createSelector(zr, (a2) => a2.length);
|
19660
|
+
Kn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
19661
|
+
ot = createSelector(zr, Wt, (a2, e) => {
|
19662
19662
|
let t = [];
|
19663
19663
|
return a2.forEach((i) => {
|
19664
19664
|
t.push(e[i]);
|
19665
19665
|
}), t;
|
19666
19666
|
});
|
19667
|
-
|
19667
|
+
Oa = createSelector(ot, (a2) => a2.filter((e) => {
|
19668
19668
|
var t;
|
19669
19669
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
19670
19670
|
}));
|
19671
|
-
|
19672
|
-
Y = createSelector([
|
19673
|
-
|
19674
|
-
|
19675
|
-
|
19676
|
-
|
19677
|
-
|
19678
|
-
|
19671
|
+
qn = createSelector(Oa, (a2) => a2.filter((e) => !e.read).length);
|
19672
|
+
Y = createSelector([B], (a2) => a2 && a2.roomState);
|
19673
|
+
es = createSelector(Y, (a2) => a2 === "Preview");
|
19674
|
+
jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
19675
|
+
ne = (a2) => a2.roles;
|
19676
|
+
Jn = createSelector([ne], (a2) => Object.keys(a2));
|
19677
|
+
Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
19678
|
+
xa = (a2) => {
|
19679
19679
|
var e;
|
19680
19680
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
19681
19681
|
};
|
19682
|
-
|
19683
|
-
|
19682
|
+
ts = createSelector([xa, ne], (a2, e) => a2 ? e[a2] : null);
|
19683
|
+
Qn = createSelector([Kt], (a2) => {
|
19684
19684
|
var e;
|
19685
19685
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
19686
19686
|
});
|
19687
|
-
|
19688
|
-
|
19689
|
-
|
19690
|
-
|
19691
|
-
|
19692
|
-
|
19693
|
-
|
19694
|
-
|
19695
|
-
|
19696
|
-
|
19697
|
-
|
19698
|
-
|
19699
|
-
|
19700
|
-
|
19701
|
-
|
19702
|
-
|
19703
|
-
|
19704
|
-
|
19705
|
-
|
19706
|
-
|
19707
|
-
|
19687
|
+
is = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
|
19688
|
+
zn = createSelector(B, (a2) => a2.recording);
|
19689
|
+
Yn = createSelector(B, (a2) => a2.rtmp);
|
19690
|
+
Xn = createSelector(B, (a2) => a2.hls);
|
19691
|
+
Zn = createSelector(B, (a2) => a2.sessionId);
|
19692
|
+
ec = createSelector(B, (a2) => a2.startedAt);
|
19693
|
+
tc = createSelector(B, (a2) => !!a2.isLargeRoom);
|
19694
|
+
ic = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
19695
|
+
rc = createSelector(B, (a2) => a2.effectsKey);
|
19696
|
+
rs = (a2) => a2.polls;
|
19697
|
+
nc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
|
19698
|
+
Ua = (a2) => a2.whiteboards;
|
19699
|
+
cc = createSelector(Ua, (a2) => Object.values(a2)[0]);
|
19700
|
+
as = (a2 = "audio") => (e) => e.playlist[a2].list;
|
19701
|
+
sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
19702
|
+
os = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
19703
|
+
ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
19704
|
+
cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
19705
|
+
ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
19706
|
+
ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
|
19707
|
+
us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
|
19708
19708
|
if (t.id)
|
19709
19709
|
return e[t.id];
|
19710
19710
|
});
|
19711
|
-
|
19712
|
-
|
19713
|
-
|
19714
|
-
|
19711
|
+
ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
|
19712
|
+
hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
|
19713
|
+
ms = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(ms || {});
|
19714
|
+
Ba = typeof window != "undefined" && typeof window.expect != "undefined";
|
19715
19715
|
d = class {
|
19716
19716
|
static v(e, ...t) {
|
19717
19717
|
this.log(0, e, ...t);
|
@@ -19777,15 +19777,15 @@ var init_dist = __esm({
|
|
19777
19777
|
}
|
19778
19778
|
}
|
19779
19779
|
};
|
19780
|
-
d.level =
|
19780
|
+
d.level = Ba ? 7 : 0;
|
19781
19781
|
pe = new import_ua_parser_js.UAParser();
|
19782
|
-
|
19783
|
-
Ce = typeof window == "undefined" && !((
|
19784
|
-
|
19785
|
-
|
19786
|
-
|
19787
|
-
|
19788
|
-
|
19782
|
+
_ = typeof window != "undefined";
|
19783
|
+
Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
|
19784
|
+
Fa = () => !Ce;
|
19785
|
+
gc = Fa();
|
19786
|
+
vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
|
19787
|
+
Ve = Ga();
|
19788
|
+
M = { 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 } };
|
19789
19789
|
f = class a extends Error {
|
19790
19790
|
constructor(t, i, r, s, o, n = false) {
|
19791
19791
|
super(s);
|
@@ -19815,99 +19815,99 @@ var init_dist = __esm({
|
|
19815
19815
|
}`;
|
19816
19816
|
}
|
19817
19817
|
};
|
19818
|
-
|
19818
|
+
$a = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
19819
19819
|
h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
19820
|
-
return new f(
|
19820
|
+
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
19821
19821
|
}, WebSocketConnectionLost(a2, e = "") {
|
19822
|
-
return new f(
|
19822
|
+
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
|
19823
19823
|
}, AbnormalClose(a2, e = "") {
|
19824
|
-
return new f(
|
19824
|
+
return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
19825
19825
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
19826
19826
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
19827
19827
|
}, EndpointUnreachable(a2, e = "") {
|
19828
|
-
return new f(
|
19828
|
+
return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
19829
19829
|
}, InvalidTokenFormat(a2, e = "") {
|
19830
|
-
return new f(
|
19830
|
+
return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
19831
19831
|
}, InitConfigNotAvailable(a2, e = "") {
|
19832
|
-
return new f(
|
19832
|
+
return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
19833
19833
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
19834
|
-
return new f(
|
19834
|
+
return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
19835
19835
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
19836
|
-
return new f(
|
19836
|
+
return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
19837
19837
|
}, DeviceNotAvailable(a2, e, t = "") {
|
19838
|
-
return new f(
|
19838
|
+
return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
19839
19839
|
}, DeviceInUse(a2, e, t = "") {
|
19840
|
-
return new f(
|
19840
|
+
return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
19841
19841
|
}, DeviceLostMidway(a2, e, t = "") {
|
19842
|
-
return new f(
|
19842
|
+
return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
19843
19843
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
19844
|
-
return new f(
|
19844
|
+
return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
19845
19845
|
}, InvalidVideoSettings(a2, e = "") {
|
19846
|
-
return new f(
|
19846
|
+
return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
19847
19847
|
}, AutoplayBlocked(a2, e = "") {
|
19848
|
-
return new f(
|
19848
|
+
return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
19849
19849
|
}, CodecChangeNotPermitted(a2, e = "") {
|
19850
|
-
return new f(
|
19850
|
+
return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
19851
19851
|
}, OverConstrained(a2, e, t = "") {
|
19852
|
-
return new f(
|
19852
|
+
return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
19853
19853
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
19854
|
-
return new f(
|
19854
|
+
return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
19855
19855
|
}, SystemDeniedPermission(a2, e, t = "") {
|
19856
|
-
return new f(
|
19856
|
+
return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
19857
19857
|
}, CurrentTabNotShared() {
|
19858
|
-
return new f(
|
19858
|
+
return new f(M.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");
|
19859
19859
|
}, AudioPlaybackError(a2) {
|
19860
|
-
return new f(
|
19860
|
+
return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
19861
19861
|
}, SelectedDeviceMissing(a2) {
|
19862
|
-
return new f(
|
19862
|
+
return new f(M.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
19863
19863
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
19864
|
-
return new f(
|
19864
|
+
return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
19865
19865
|
}, CreateAnswerFailed(a2, e = "") {
|
19866
|
-
return new f(
|
19866
|
+
return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
19867
19867
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
19868
|
-
return new f(
|
19868
|
+
return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
19869
19869
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
19870
|
-
return new f(
|
19870
|
+
return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
19871
19871
|
}, ICEFailure(a2, e = "", t = false) {
|
19872
|
-
return new f(
|
19872
|
+
return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
19873
19873
|
}, ICEDisconnected(a2, e = "") {
|
19874
|
-
return new f(
|
19874
|
+
return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
19875
19875
|
}, StatsFailed(a2, e = "") {
|
19876
|
-
return new f(
|
19876
|
+
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
19877
19877
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
19878
|
-
return new f(a2, "ServerErrors", e, t, t,
|
19878
|
+
return new f(a2, "ServerErrors", e, t, t, $a.includes(e));
|
19879
19879
|
}, AlreadyJoined(a2, e = "") {
|
19880
|
-
return new f(
|
19880
|
+
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
19881
19881
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
19882
|
-
return new f(
|
19882
|
+
return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
19883
19883
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
19884
|
-
return new f(
|
19884
|
+
return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
19885
19885
|
}, Signalling(a2, e) {
|
19886
|
-
return new f(
|
19886
|
+
return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
19887
19887
|
}, Unknown(a2, e) {
|
19888
|
-
return new f(
|
19888
|
+
return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
19889
19889
|
}, NotReady(a2, e = "") {
|
19890
|
-
return new f(
|
19890
|
+
return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
19891
19891
|
}, JsonParsingFailed(a2, e, t = "") {
|
19892
|
-
return new f(
|
19892
|
+
return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
19893
19893
|
}, TrackMetadataMissing(a2, e = "") {
|
19894
|
-
return new f(
|
19894
|
+
return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
19895
19895
|
}, RTCTrackMissing(a2, e = "") {
|
19896
|
-
return new f(
|
19896
|
+
return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
19897
19897
|
}, PeerMetadataMissing(a2, e = "") {
|
19898
|
-
return new f(
|
19898
|
+
return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
19899
19899
|
}, ValidationFailed(a2, e) {
|
19900
|
-
return new f(
|
19900
|
+
return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
19901
19901
|
}, InvalidRole(a2, e) {
|
19902
|
-
return new f(
|
19902
|
+
return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
19903
19903
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
19904
|
-
return new f(
|
19904
|
+
return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
19905
19905
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
19906
|
-
return new f(
|
19906
|
+
return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
19907
19907
|
}, MissingMediaDevices() {
|
19908
|
-
return new f(
|
19908
|
+
return new f(M.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);
|
19909
19909
|
}, MissingRTCPeerConnection() {
|
19910
|
-
return new f(
|
19910
|
+
return new f(M.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);
|
19911
19911
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
19912
19912
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
19913
19913
|
}, InitFailed(a2, e = "") {
|
@@ -19919,11 +19919,11 @@ var init_dist = __esm({
|
|
19919
19919
|
}, DeviceNotSupported(a2, e = "") {
|
19920
19920
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
19921
19921
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
19922
|
-
return new f(
|
19922
|
+
return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
19923
19923
|
}, NoEntryPlaying(a2, e) {
|
19924
|
-
return new f(
|
19924
|
+
return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
19925
19925
|
} } };
|
19926
|
-
|
19926
|
+
nr = class {
|
19927
19927
|
constructor() {
|
19928
19928
|
this.valuesMap = /* @__PURE__ */ new Map();
|
19929
19929
|
}
|
@@ -19948,21 +19948,21 @@ var init_dist = __esm({
|
|
19948
19948
|
return this.valuesMap.size;
|
19949
19949
|
}
|
19950
19950
|
};
|
19951
|
-
|
19951
|
+
Ms = () => {
|
19952
19952
|
try {
|
19953
|
-
|
19953
|
+
_ && !localStorage && (window.localStorage = new nr());
|
19954
19954
|
} catch (a2) {
|
19955
19955
|
d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied());
|
19956
19956
|
}
|
19957
19957
|
};
|
19958
|
-
|
19958
|
+
ce = class {
|
19959
19959
|
constructor(e) {
|
19960
19960
|
this.key = e;
|
19961
19961
|
this.storage = null;
|
19962
19962
|
}
|
19963
19963
|
getStorage() {
|
19964
19964
|
try {
|
19965
|
-
return
|
19965
|
+
return _ && !this.storage && (Ms(), this.storage = window.localStorage), this.storage;
|
19966
19966
|
} catch (e) {
|
19967
19967
|
return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
|
19968
19968
|
}
|
@@ -19982,112 +19982,152 @@ var init_dist = __esm({
|
|
19982
19982
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
19983
19983
|
}
|
19984
19984
|
};
|
19985
|
-
|
19986
|
-
let a2, e = new
|
19985
|
+
ys = () => {
|
19986
|
+
let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
|
19987
19987
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
19988
19988
|
};
|
19989
|
-
|
19990
|
-
|
19991
|
-
|
19989
|
+
Ps = lr().version;
|
19990
|
+
Es = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
19991
|
+
R = class {
|
19992
19992
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
19993
|
-
this.metadata = { peer: {}, userAgent:
|
19994
|
-
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 =
|
19993
|
+
this.metadata = { peer: {}, userAgent: nt() };
|
19994
|
+
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 = ys();
|
19995
19995
|
}
|
19996
19996
|
toSignalParams() {
|
19997
|
-
return { name: this.name, info:
|
19997
|
+
return { name: this.name, info: v(m({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
19998
19998
|
}
|
19999
19999
|
};
|
20000
|
+
pr = class {
|
20001
|
+
constructor() {
|
20002
|
+
this.pluginUsage = /* @__PURE__ */ new Map();
|
20003
|
+
this.pluginLastAddedAt = /* @__PURE__ */ new Map();
|
20004
|
+
this.getPluginUsage = (e, t) => {
|
20005
|
+
let i = `${t}-${e}`;
|
20006
|
+
if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
|
20007
|
+
let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
|
20008
|
+
this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
|
20009
|
+
}
|
20010
|
+
return this.pluginUsage.get(i);
|
20011
|
+
};
|
20012
|
+
this.updatePluginUsageData = (e, t) => {
|
20013
|
+
if (e.name === "transport.leave") {
|
20014
|
+
this.cleanup(t);
|
20015
|
+
return;
|
20016
|
+
}
|
20017
|
+
let i = e.properties.plugin_name, r = `${t}-${i}`;
|
20018
|
+
if (e.name === "mediaPlugin.added") {
|
20019
|
+
let s = e.properties.added_at;
|
20020
|
+
this.pluginLastAddedAt.set(r, s);
|
20021
|
+
} else if (e.name === "mediaPlugin.stats") {
|
20022
|
+
let s = e.properties.duration;
|
20023
|
+
s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
|
20024
|
+
}
|
20025
|
+
};
|
20026
|
+
this.cleanup = (e) => {
|
20027
|
+
for (let t of this.pluginUsage.keys())
|
20028
|
+
e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
|
20029
|
+
};
|
20030
|
+
}
|
20031
|
+
};
|
20032
|
+
Fe = new pr();
|
20000
20033
|
y = class {
|
20001
20034
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
20002
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(
|
20003
|
-
return new
|
20035
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
20036
|
+
return new R({ name: o, level: n, properties: l });
|
20004
20037
|
}
|
20005
20038
|
static disconnect(e, t) {
|
20006
20039
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
20007
|
-
return new
|
20040
|
+
return new R({ name: i, level: r, properties: s });
|
20008
20041
|
}
|
20009
20042
|
static preview(i) {
|
20010
|
-
var r = i, { error: e } = r, t =
|
20043
|
+
var r = i, { error: e } = r, t = Xi(r, ["error"]);
|
20011
20044
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
20012
|
-
return new
|
20045
|
+
return new R({ name: s, level: o, properties: n });
|
20013
20046
|
}
|
20014
20047
|
static join(i) {
|
20015
|
-
var r = i, { error: e } = r, t =
|
20016
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
20017
|
-
return new
|
20048
|
+
var r = i, { error: e } = r, t = Xi(r, ["error"]);
|
20049
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
20050
|
+
return new R({ name: s, level: o, properties: n });
|
20018
20051
|
}
|
20019
20052
|
static publish({ devices: e, settings: t, error: i }) {
|
20020
20053
|
let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
|
20021
|
-
return new
|
20054
|
+
return new R({ name: r, level: s, properties: o });
|
20022
20055
|
}
|
20023
20056
|
static hlsPlayerError(e) {
|
20024
|
-
return new
|
20057
|
+
return new R({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
|
20025
20058
|
}
|
20026
20059
|
static subscribeFail(e) {
|
20027
20060
|
let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
|
20028
|
-
return new
|
20061
|
+
return new R({ name: t, level: i, properties: r });
|
20029
20062
|
}
|
20030
20063
|
static leave() {
|
20031
|
-
return new
|
20064
|
+
return new R({ name: "leave", level: 1 });
|
20032
20065
|
}
|
20033
20066
|
static autoplayError() {
|
20034
|
-
return new
|
20067
|
+
return new R({ name: "autoplayError", level: 2 });
|
20035
20068
|
}
|
20036
20069
|
static audioPlaybackError(e) {
|
20037
|
-
return new
|
20070
|
+
return new R({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
20038
20071
|
}
|
20039
20072
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
20040
20073
|
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
20041
|
-
return new
|
20074
|
+
return new R({ name: o, level: n, properties: l });
|
20042
20075
|
}
|
20043
20076
|
static performance(e) {
|
20044
20077
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
20045
|
-
return new
|
20078
|
+
return new R({ name: t, level: i, properties: r });
|
20046
20079
|
}
|
20047
20080
|
static rtcStats(e) {
|
20048
20081
|
let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
|
20049
|
-
return new
|
20082
|
+
return new R({ name: t, level: i, properties: r });
|
20050
20083
|
}
|
20051
20084
|
static rtcStatsFailed(e) {
|
20052
20085
|
let t = "rtc.stats.failed", i = 2;
|
20053
|
-
return new
|
20086
|
+
return new R({ name: t, level: i, properties: this.getErrorProperties(e) });
|
20054
20087
|
}
|
20055
20088
|
static degradationStats(e, t) {
|
20056
20089
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
20057
20090
|
if (!t && e.degradedAt instanceof Date) {
|
20058
20091
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
20059
|
-
s =
|
20092
|
+
s = v(m({}, s), { duration: n, restoredAt: o });
|
20060
20093
|
}
|
20061
|
-
return new
|
20094
|
+
return new R({ name: i, level: r, properties: s });
|
20062
20095
|
}
|
20063
20096
|
static audioDetectionFail(e, t) {
|
20064
20097
|
let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
|
20065
|
-
return new
|
20098
|
+
return new R({ name: s, level: r, properties: i });
|
20066
20099
|
}
|
20067
20100
|
static previewNetworkQuality(e) {
|
20068
|
-
return new
|
20101
|
+
return new R({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
|
20069
20102
|
}
|
20070
20103
|
static publishStats(e) {
|
20071
|
-
return new
|
20104
|
+
return new R({ name: "publisher.stats", level: 1, properties: e });
|
20072
20105
|
}
|
20073
20106
|
static subscribeStats(e) {
|
20074
|
-
return new
|
20107
|
+
return new R({ name: "subscriber.stats", level: 1, properties: e });
|
20108
|
+
}
|
20109
|
+
static getKrispUsage(e) {
|
20110
|
+
let t = Fe.getPluginUsage("HMSKrispPlugin", e);
|
20111
|
+
return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
|
20112
|
+
}
|
20113
|
+
static transportLeave() {
|
20114
|
+
return new R({ name: "transport.leave", level: 1, properties: {} });
|
20075
20115
|
}
|
20076
20116
|
static eventNameFor(e, t) {
|
20077
20117
|
return `${e}.${t ? "success" : "failed"}`;
|
20078
20118
|
}
|
20079
20119
|
static getPropertiesWithError(e, t) {
|
20080
20120
|
let i = this.getErrorProperties(t);
|
20081
|
-
return e =
|
20121
|
+
return e = m(m({}, i), e), e;
|
20082
20122
|
}
|
20083
20123
|
static getErrorProperties(e) {
|
20084
20124
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
20085
20125
|
}
|
20086
20126
|
};
|
20087
20127
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
20088
|
-
|
20128
|
+
hr = class {
|
20089
20129
|
constructor() {
|
20090
|
-
this.storage = new
|
20130
|
+
this.storage = new ce("hms-device-selection");
|
20091
20131
|
this.remember = false;
|
20092
20132
|
this.TAG = "[HMSDeviceStorage]";
|
20093
20133
|
}
|
@@ -20119,13 +20159,13 @@ var init_dist = __esm({
|
|
20119
20159
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
20120
20160
|
}
|
20121
20161
|
};
|
20122
|
-
q = new
|
20123
|
-
|
20124
|
-
|
20125
|
-
|
20126
|
-
|
20127
|
-
|
20128
|
-
|
20162
|
+
q = new hr();
|
20163
|
+
mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
|
20164
|
+
Sr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Sr || {});
|
20165
|
+
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 || {});
|
20166
|
+
Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
|
20167
|
+
Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
|
20168
|
+
gr = class {
|
20129
20169
|
constructor() {
|
20130
20170
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
20131
20171
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20148,12 +20188,12 @@ var init_dist = __esm({
|
|
20148
20188
|
this.createObserver();
|
20149
20189
|
}
|
20150
20190
|
isSupported() {
|
20151
|
-
let e =
|
20191
|
+
let e = _ && typeof window.IntersectionObserver != "undefined";
|
20152
20192
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
20153
20193
|
}
|
20154
20194
|
};
|
20155
|
-
|
20156
|
-
|
20195
|
+
Os = new gr();
|
20196
|
+
Tr = class {
|
20157
20197
|
constructor() {
|
20158
20198
|
this.TAG = "[HMSResizeObserverWrapper]";
|
20159
20199
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20166,7 +20206,7 @@ var init_dist = __esm({
|
|
20166
20206
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
20167
20207
|
};
|
20168
20208
|
this.createObserver = () => {
|
20169
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
20209
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Jt(this.handleResize, 300)));
|
20170
20210
|
};
|
20171
20211
|
this.handleResize = (e) => {
|
20172
20212
|
var t;
|
@@ -20176,20 +20216,20 @@ var init_dist = __esm({
|
|
20176
20216
|
this.createObserver();
|
20177
20217
|
}
|
20178
20218
|
isSupported() {
|
20179
|
-
let e =
|
20219
|
+
let e = _ && typeof window.ResizeObserver != "undefined";
|
20180
20220
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
20181
20221
|
}
|
20182
20222
|
};
|
20183
|
-
|
20184
|
-
|
20185
|
-
|
20186
|
-
|
20187
|
-
|
20188
|
-
|
20189
|
-
|
20223
|
+
xs = new Tr();
|
20224
|
+
fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
|
20225
|
+
vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
|
20226
|
+
Vs = "https://event.100ms.live/v2/client/report";
|
20227
|
+
Fs = "https://event-nonprod.100ms.live/v2/client/report";
|
20228
|
+
ht = Math.pow(2, 31) - 1;
|
20229
|
+
ze = class {
|
20190
20230
|
};
|
20191
|
-
|
20192
|
-
|
20231
|
+
ze.makePeerId = () => (0, import_uuid7.v4)();
|
20232
|
+
Tt = "HMS-Store:";
|
20193
20233
|
k = class {
|
20194
20234
|
static v(e, ...t) {
|
20195
20235
|
this.log(0, e, ...t);
|
@@ -20219,23 +20259,23 @@ var init_dist = __esm({
|
|
20219
20259
|
if (!(this.level.valueOf() > e.valueOf()))
|
20220
20260
|
switch (e) {
|
20221
20261
|
case 0: {
|
20222
|
-
console.log(
|
20262
|
+
console.log(Tt, ...t);
|
20223
20263
|
break;
|
20224
20264
|
}
|
20225
20265
|
case 1: {
|
20226
|
-
console.debug(
|
20266
|
+
console.debug(Tt, ...t);
|
20227
20267
|
break;
|
20228
20268
|
}
|
20229
20269
|
case 2: {
|
20230
|
-
console.info(
|
20270
|
+
console.info(Tt, ...t);
|
20231
20271
|
break;
|
20232
20272
|
}
|
20233
20273
|
case 3: {
|
20234
|
-
console.warn(
|
20274
|
+
console.warn(Tt, ...t);
|
20235
20275
|
break;
|
20236
20276
|
}
|
20237
20277
|
case 6: {
|
20238
|
-
console.error(
|
20278
|
+
console.error(Tt, ...t);
|
20239
20279
|
break;
|
20240
20280
|
}
|
20241
20281
|
case 4: {
|
@@ -20256,126 +20296,126 @@ var init_dist = __esm({
|
|
20256
20296
|
}
|
20257
20297
|
};
|
20258
20298
|
k.level = 0;
|
20259
|
-
|
20260
|
-
|
20261
|
-
|
20262
|
-
|
20263
|
-
|
20264
|
-
J = createSelector([G,
|
20265
|
-
|
20266
|
-
|
20299
|
+
Hr = (a2, e) => e;
|
20300
|
+
ft = (a2, e) => e;
|
20301
|
+
Js = (a2, e) => e;
|
20302
|
+
ho = (a2, e) => e;
|
20303
|
+
mo = (a2, e) => e;
|
20304
|
+
J = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
|
20305
|
+
Cr = createSelector([w, ft], (a2, e) => e ? a2[e] : null);
|
20306
|
+
So = createSelector([w, ft], (a2, e) => {
|
20267
20307
|
if (!e)
|
20268
20308
|
return null;
|
20269
20309
|
let t = a2[e];
|
20270
20310
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
20271
20311
|
});
|
20272
|
-
|
20312
|
+
go = createSelector([w, ft], (a2, e) => {
|
20273
20313
|
if (!e)
|
20274
20314
|
return null;
|
20275
20315
|
let t = a2[e];
|
20276
20316
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
20277
20317
|
});
|
20278
|
-
|
20318
|
+
To = createSelector([w, ft], (a2, e) => {
|
20279
20319
|
if (!e)
|
20280
20320
|
return null;
|
20281
20321
|
let t = a2[e];
|
20282
20322
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20283
20323
|
});
|
20284
|
-
|
20324
|
+
fo = createSelector([w, ft], (a2, e) => {
|
20285
20325
|
if (!e)
|
20286
20326
|
return null;
|
20287
20327
|
let t = a2[e];
|
20288
20328
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20289
20329
|
});
|
20290
|
-
|
20291
|
-
Q =
|
20292
|
-
|
20330
|
+
vo = createSelector([rs, mo], (a2, e) => e ? a2[e] : null);
|
20331
|
+
Q = A(J);
|
20332
|
+
om = A(createSelector([tr, ho], (a2, e) => {
|
20293
20333
|
if (a2)
|
20294
20334
|
return e ? a2[e] : a2;
|
20295
20335
|
}));
|
20296
|
-
|
20297
|
-
|
20298
|
-
|
20299
|
-
|
20300
|
-
|
20301
|
-
|
20302
|
-
|
20336
|
+
dm = A(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
20337
|
+
oi = A(Cr);
|
20338
|
+
Qs = A(So);
|
20339
|
+
lm = A(go);
|
20340
|
+
um = A(To);
|
20341
|
+
pm = A(fo);
|
20342
|
+
Mo = A((a2, e) => {
|
20303
20343
|
let t = J(a2, e);
|
20304
20344
|
if (t && t.videoTrack && t.videoTrack !== "")
|
20305
20345
|
return a2.tracks[t.videoTrack];
|
20306
20346
|
});
|
20307
|
-
|
20347
|
+
yo = A((a2, e) => {
|
20308
20348
|
let t = J(a2, e);
|
20309
20349
|
if (t && t.audioTrack && t.audioTrack !== "")
|
20310
20350
|
return a2.tracks[t.audioTrack];
|
20311
20351
|
});
|
20312
|
-
|
20352
|
+
mm = A((a2, e) => {
|
20313
20353
|
let t = J(a2, e);
|
20314
20354
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
20315
20355
|
});
|
20316
|
-
|
20317
|
-
|
20318
|
-
|
20319
|
-
let t =
|
20320
|
-
return
|
20321
|
-
};
|
20322
|
-
|
20323
|
-
|
20356
|
+
zs = (a2, e) => e ? a2.speakers[e] : null;
|
20357
|
+
Sm = A(createSelector(zs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20358
|
+
ko = (a2, e) => {
|
20359
|
+
let t = yo(e)(a2);
|
20360
|
+
return zs(a2, t == null ? void 0 : t.id);
|
20361
|
+
};
|
20362
|
+
gm = A(createSelector(ko, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20363
|
+
Tm = A((a2, e) => {
|
20324
20364
|
if (e)
|
20325
20365
|
return a2.connectionQualities[e];
|
20326
20366
|
});
|
20327
|
-
|
20367
|
+
fm = A((a2, e) => {
|
20328
20368
|
let t = J(a2, e);
|
20329
20369
|
if (t) {
|
20330
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
20370
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
|
20331
20371
|
return i ? a2.tracks[i] : void 0;
|
20332
20372
|
}
|
20333
20373
|
});
|
20334
|
-
|
20374
|
+
vm = A(createSelector(w, J, (a2, e) => {
|
20335
20375
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20336
20376
|
let r = a2[i];
|
20337
|
-
return
|
20377
|
+
return st(r) && rt(r);
|
20338
20378
|
});
|
20339
20379
|
return t ? a2[t] : void 0;
|
20340
20380
|
}));
|
20341
|
-
|
20381
|
+
Mm = A(createSelector(w, J, (a2, e) => {
|
20342
20382
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20343
20383
|
let r = a2[i];
|
20344
|
-
return
|
20384
|
+
return st(r) && it(r);
|
20345
20385
|
});
|
20346
20386
|
return t ? a2[t] : void 0;
|
20347
20387
|
}));
|
20348
|
-
|
20388
|
+
ym = A(createSelector(w, J, (a2, e) => {
|
20349
20389
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20350
20390
|
let r = a2[i];
|
20351
|
-
return
|
20391
|
+
return $t(r) && it(r);
|
20352
20392
|
});
|
20353
20393
|
return t ? a2[t] : void 0;
|
20354
20394
|
}));
|
20355
|
-
|
20356
|
-
|
20357
|
-
|
20395
|
+
Ys = A(createSelector(w, J, (a2, e) => He(a2, e)));
|
20396
|
+
Xs = (a2) => createSelector(Ys(a2), (e) => e.audio);
|
20397
|
+
Pm = A((a2, e) => {
|
20358
20398
|
let t = J(a2, e);
|
20359
20399
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
20360
20400
|
});
|
20361
|
-
|
20401
|
+
Em = A((a2, e) => {
|
20362
20402
|
let t = J(a2, e);
|
20363
20403
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
20364
20404
|
});
|
20365
|
-
|
20405
|
+
Zs = A((a2, e) => {
|
20366
20406
|
if (e && a2.tracks[e])
|
20367
20407
|
return a2.tracks[e].volume === 0;
|
20368
20408
|
});
|
20369
|
-
|
20409
|
+
bm = A((a2, e) => {
|
20370
20410
|
let t = J(a2, e);
|
20371
|
-
return
|
20411
|
+
return Zs(t == null ? void 0 : t.audioTrack)(a2);
|
20372
20412
|
});
|
20373
|
-
|
20374
|
-
let t =
|
20375
|
-
return
|
20413
|
+
Am = A((a2, e) => {
|
20414
|
+
let t = Xs(e)(a2);
|
20415
|
+
return Zs(t == null ? void 0 : t.id)(a2);
|
20376
20416
|
});
|
20377
|
-
|
20378
|
-
let t =
|
20417
|
+
ea = A((a2, e) => {
|
20418
|
+
let t = Cr(a2, e);
|
20379
20419
|
if (t) {
|
20380
20420
|
if (t.type !== "audio") {
|
20381
20421
|
k.w("Please pass audio track here");
|
@@ -20384,16 +20424,16 @@ var init_dist = __esm({
|
|
20384
20424
|
return t.volume;
|
20385
20425
|
}
|
20386
20426
|
});
|
20387
|
-
|
20427
|
+
Im = A((a2, e) => {
|
20388
20428
|
let t = J(a2, e);
|
20389
|
-
return
|
20429
|
+
return ea(t == null ? void 0 : t.audioTrack)(a2);
|
20390
20430
|
});
|
20391
|
-
|
20392
|
-
let t =
|
20393
|
-
return
|
20431
|
+
Rm = A((a2, e) => {
|
20432
|
+
let t = Xs(e)(a2);
|
20433
|
+
return ea(t == null ? void 0 : t.id)(a2);
|
20394
20434
|
});
|
20395
|
-
|
20396
|
-
let t =
|
20435
|
+
Hm = A((a2, e) => {
|
20436
|
+
let t = Cr(a2, e);
|
20397
20437
|
if (t) {
|
20398
20438
|
if (t.type !== "video") {
|
20399
20439
|
k.w("Please pass video track here");
|
@@ -20402,52 +20442,52 @@ var init_dist = __esm({
|
|
20402
20442
|
return t.layer;
|
20403
20443
|
}
|
20404
20444
|
});
|
20405
|
-
|
20445
|
+
ta = createSelector([ot, ue, Hr], (a2, e, t) => {
|
20406
20446
|
if (t)
|
20407
20447
|
return a2.filter((i) => {
|
20408
20448
|
var r;
|
20409
20449
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
20410
20450
|
});
|
20411
20451
|
});
|
20412
|
-
|
20452
|
+
ia = createSelector([ot, Js], (a2, e) => {
|
20413
20453
|
if (e)
|
20414
20454
|
return a2.filter((t) => {
|
20415
20455
|
var i, r;
|
20416
20456
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
20417
20457
|
});
|
20418
20458
|
});
|
20419
|
-
|
20459
|
+
Po = createSelector(ot, (a2) => a2.filter((e) => {
|
20420
20460
|
var t;
|
20421
20461
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
20422
20462
|
}));
|
20423
|
-
|
20424
|
-
|
20425
|
-
|
20426
|
-
|
20427
|
-
|
20428
|
-
|
20429
|
-
|
20430
|
-
|
20431
|
-
|
20463
|
+
Eo = createSelector([ia, Js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20464
|
+
bo = createSelector([ta, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20465
|
+
Cm = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
|
20466
|
+
Lm = A(ta);
|
20467
|
+
Dm = A(ia);
|
20468
|
+
wm = A(Eo);
|
20469
|
+
_m = A(bo);
|
20470
|
+
ra = A(vo);
|
20471
|
+
Km = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
|
20432
20472
|
var r;
|
20433
20473
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
20434
20474
|
}));
|
20435
|
-
|
20436
|
-
|
20437
|
-
|
20438
|
-
|
20439
|
-
|
20475
|
+
Ao = (a2) => a2.roleChangeRequests[0] || null;
|
20476
|
+
qm = createSelector([Ao, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
20477
|
+
jm = createSelector([Kt], (a2) => at(a2));
|
20478
|
+
Jm = createSelector([ts], (a2) => at(a2));
|
20479
|
+
Ro = createSelector([K, w], (a2, e) => {
|
20440
20480
|
let t = null;
|
20441
20481
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20442
20482
|
});
|
20443
|
-
|
20483
|
+
Ho = createSelector([Z, w], (a2, e) => {
|
20444
20484
|
let t = null;
|
20445
20485
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20446
20486
|
});
|
20447
|
-
|
20487
|
+
Nr = class {
|
20448
20488
|
constructor() {
|
20449
20489
|
this.TAG = "[HTTPAnalyticsTransport]";
|
20450
|
-
this.failedEvents = new
|
20490
|
+
this.failedEvents = new ce("client-events");
|
20451
20491
|
this.isConnected = true;
|
20452
20492
|
this.env = null;
|
20453
20493
|
this.websocketURL = "";
|
@@ -20463,7 +20503,7 @@ var init_dist = __esm({
|
|
20463
20503
|
this.addEventToStorage(e);
|
20464
20504
|
return;
|
20465
20505
|
}
|
20466
|
-
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" ?
|
20506
|
+
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" ? Vs : Fs;
|
20467
20507
|
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) => {
|
20468
20508
|
if (r.status === 401) {
|
20469
20509
|
this.removeFromStorage(e);
|
@@ -20489,66 +20529,66 @@ var init_dist = __esm({
|
|
20489
20529
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
20490
20530
|
}
|
20491
20531
|
};
|
20492
|
-
Te = new
|
20532
|
+
Te = new Nr();
|
20493
20533
|
$ = ((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))($ || {});
|
20494
|
-
|
20495
|
-
|
20496
|
-
|
20497
|
-
|
20498
|
-
|
20499
|
-
|
20500
|
-
|
20501
|
-
|
20502
|
-
|
20503
|
-
|
20504
|
-
ve = createSelector([
|
20505
|
-
|
20534
|
+
Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
|
20535
|
+
Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
|
20536
|
+
Qo = (a2) => a2.localPeer.id;
|
20537
|
+
zo = (a2) => a2.localPeer.audioTrack;
|
20538
|
+
Yo = (a2) => a2.localPeer.videoTrack;
|
20539
|
+
Xo = (a2, e) => e;
|
20540
|
+
Ma = (a2, e) => e;
|
20541
|
+
Zo = (a2) => a2.remoteTrackStats;
|
20542
|
+
ya = (a2) => a2.peerStats;
|
20543
|
+
Vr = (a2) => a2.localTrackStats;
|
20544
|
+
ve = createSelector([ya, Qo], (a2, e) => a2[e]);
|
20545
|
+
en = createSelector(ve, (a2) => {
|
20506
20546
|
var e;
|
20507
20547
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
20508
20548
|
});
|
20509
|
-
|
20549
|
+
tn = createSelector(ve, (a2) => {
|
20510
20550
|
var e;
|
20511
20551
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
20512
20552
|
});
|
20513
|
-
|
20553
|
+
rn = createSelector(ve, (a2) => {
|
20514
20554
|
var e;
|
20515
20555
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
20516
20556
|
});
|
20517
|
-
|
20557
|
+
sn = createSelector(ve, (a2) => {
|
20518
20558
|
var e;
|
20519
20559
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
20520
20560
|
});
|
20521
|
-
|
20561
|
+
an = createSelector(ve, (a2) => {
|
20522
20562
|
var e;
|
20523
20563
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
20524
20564
|
});
|
20525
|
-
|
20565
|
+
on = createSelector(ve, (a2) => {
|
20526
20566
|
var e;
|
20527
20567
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
20528
20568
|
});
|
20529
|
-
|
20569
|
+
nn = createSelector(ve, (a2) => {
|
20530
20570
|
var e;
|
20531
20571
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
20532
20572
|
});
|
20533
|
-
|
20573
|
+
cn = createSelector(ve, (a2) => {
|
20534
20574
|
var e;
|
20535
20575
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
20536
20576
|
});
|
20537
|
-
|
20538
|
-
|
20539
|
-
|
20540
|
-
|
20541
|
-
|
20542
|
-
|
20577
|
+
dn = createSelector([ya, Xo], (a2, e) => e ? a2[e] : void 0);
|
20578
|
+
ln = createSelector([Zo, Ma], (a2, e) => e ? a2[e] : void 0);
|
20579
|
+
Fr = createSelector([Vr, Ma], (a2, e) => e ? a2[e] : void 0);
|
20580
|
+
un = A(dn);
|
20581
|
+
pn = A(ln);
|
20582
|
+
hn = createSelector([Vr, zo], (a2, e) => {
|
20543
20583
|
var t;
|
20544
20584
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20545
20585
|
});
|
20546
|
-
|
20547
|
-
|
20586
|
+
mn = A(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
|
20587
|
+
Sn = createSelector([Vr, Yo], (a2, e) => {
|
20548
20588
|
var t;
|
20549
20589
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20550
20590
|
});
|
20551
|
-
|
20591
|
+
gn = A(createSelector(Fr, (a2) => a2));
|
20552
20592
|
}
|
20553
20593
|
});
|
20554
20594
|
|
@@ -20827,7 +20867,7 @@ var init_StreamActions = __esm({
|
|
20827
20867
|
};
|
20828
20868
|
RecordingPauseStatus = () => {
|
20829
20869
|
const recording = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectRecordingState);
|
20830
|
-
if (recording.hls && recording.hls.state ===
|
20870
|
+
if (recording.hls && recording.hls.state === Cs.PAUSED) {
|
20831
20871
|
return /* @__PURE__ */ import_react72.default.createElement(
|
20832
20872
|
Tooltip,
|
20833
20873
|
{
|
@@ -22715,7 +22755,7 @@ var init_RoleAccordion = __esm({
|
|
22715
22755
|
},
|
22716
22756
|
/* @__PURE__ */ import_react93.default.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
22717
22757
|
/* @__PURE__ */ import_react93.default.createElement(import_react_icons42.ChevronRightIcon, null)
|
22718
|
-
) : null, isHandRaisedAccordion && /* @__PURE__ */ import_react93.default.createElement(import_react93.default.Fragment, null, /* @__PURE__ */ import_react93.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react93.default.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ import_react93.default.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons42.CrossIcon, null), " Lower
|
22758
|
+
) : null, isHandRaisedAccordion && /* @__PURE__ */ import_react93.default.createElement(import_react93.default.Fragment, null, /* @__PURE__ */ import_react93.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react93.default.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ import_react93.default.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons42.CrossIcon, null), " Lower all hands"), canBringToStage && /* @__PURE__ */ import_react93.default.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons42.AddIcon, null), " ", bring_to_stage_label)))));
|
22719
22759
|
};
|
22720
22760
|
}
|
22721
22761
|
});
|
@@ -23606,10 +23646,10 @@ var init_PollsQuizMenu = __esm({
|
|
23606
23646
|
const sortedPolls = (0, import_react102.useMemo)(
|
23607
23647
|
() => {
|
23608
23648
|
var _a8;
|
23609
|
-
return (_a8 = polls == null ? void 0 : polls.sort((a2,
|
23649
|
+
return (_a8 = polls == null ? void 0 : polls.sort((a2, b) => {
|
23610
23650
|
var _a9, _b7;
|
23611
|
-
return (((_a9 =
|
23612
|
-
})) == null ? void 0 : _a8.sort((a2,
|
23651
|
+
return (((_a9 = b.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
|
23652
|
+
})) == null ? void 0 : _a8.sort((a2, b) => (b.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
|
23613
23653
|
},
|
23614
23654
|
[polls]
|
23615
23655
|
);
|
@@ -23753,7 +23793,8 @@ var init_OptionInputWithDelete = __esm({
|
|
23753
23793
|
},
|
23754
23794
|
value: (option == null ? void 0 : option.text) || "",
|
23755
23795
|
key: index,
|
23756
|
-
onChange: (event) => handleOptionTextChange(index, event.target.value.trimStart())
|
23796
|
+
onChange: (event) => handleOptionTextChange(index, event.target.value.trimStart()),
|
23797
|
+
maxLength: 250
|
23757
23798
|
}
|
23758
23799
|
), /* @__PURE__ */ import_react105.default.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "transparent", border: "none" } }, /* @__PURE__ */ import_react105.default.createElement(import_react_icons49.TrashIcon, null)));
|
23759
23800
|
};
|
@@ -23833,7 +23874,7 @@ var init_MultipleChoiceOptions = __esm({
|
|
23833
23874
|
};
|
23834
23875
|
return /* @__PURE__ */ import_react108.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
23835
23876
|
var _a8;
|
23836
|
-
return /* @__PURE__ */ import_react108.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$
|
23877
|
+
return /* @__PURE__ */ import_react108.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react108.default.createElement(
|
23837
23878
|
Checkbox.Root,
|
23838
23879
|
{
|
23839
23880
|
id: `${questionIndex}-${option.index}`,
|
@@ -23841,11 +23882,12 @@ var init_MultipleChoiceOptions = __esm({
|
|
23841
23882
|
checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
|
23842
23883
|
onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
|
23843
23884
|
css: {
|
23844
|
-
cursor: canRespond ? "pointer" : "not-allowed"
|
23885
|
+
cursor: canRespond ? "pointer" : "not-allowed",
|
23886
|
+
flexShrink: 0
|
23845
23887
|
}
|
23846
23888
|
},
|
23847
23889
|
/* @__PURE__ */ import_react108.default.createElement(Checkbox.Indicator, null, /* @__PURE__ */ import_react108.default.createElement(import_react_icons50.CheckIcon, { width: 16, height: 16 }))
|
23848
|
-
) : null, isStopped && (correctOptionIndexes == null ? void 0 : correctOptionIndexes.includes(option.index)) ? /* @__PURE__ */ import_react108.default.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react108.default.createElement(import_react_icons50.CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ import_react108.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react108.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react108.default.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ import_react108.default.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ import_react108.default.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ import_react108.default.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.options.includes(option.index)) ? /* @__PURE__ */ import_react108.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
23890
|
+
) : null, isStopped && (correctOptionIndexes == null ? void 0 : correctOptionIndexes.includes(option.index)) ? /* @__PURE__ */ import_react108.default.createElement(Flex, { align: "center", css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react108.default.createElement(import_react_icons50.CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ import_react108.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react108.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react108.default.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ import_react108.default.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ import_react108.default.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ import_react108.default.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.options.includes(option.index)) ? /* @__PURE__ */ import_react108.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
23849
23891
|
}));
|
23850
23892
|
};
|
23851
23893
|
MultipleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
|
@@ -23900,7 +23942,7 @@ var init_SingleChoiceOptions = __esm({
|
|
23900
23942
|
localPeerResponse
|
23901
23943
|
}) => {
|
23902
23944
|
return /* @__PURE__ */ import_react109.default.createElement(RadioGroup.Root, { value: localPeerResponse == null ? void 0 : localPeerResponse.option, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ import_react109.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
23903
|
-
return /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "
|
23945
|
+
return /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react109.default.createElement(
|
23904
23946
|
RadioGroup.Item,
|
23905
23947
|
{
|
23906
23948
|
css: {
|
@@ -23910,6 +23952,8 @@ var init_SingleChoiceOptions = __esm({
|
|
23910
23952
|
border: "2px solid",
|
23911
23953
|
borderColor: "$on_surface_high",
|
23912
23954
|
display: "flex",
|
23955
|
+
flexShrink: 0,
|
23956
|
+
pt: "$1",
|
23913
23957
|
justifyContent: "center",
|
23914
23958
|
alignItems: "center",
|
23915
23959
|
cursor: canRespond ? "pointer" : "not-allowed",
|
@@ -24231,7 +24275,19 @@ var init_SavedQuestion = __esm({
|
|
24231
24275
|
convertToDraft
|
24232
24276
|
}) => {
|
24233
24277
|
var _a8;
|
24234
|
-
|
24278
|
+
const answerArray = (0, import_react111.useMemo)(() => {
|
24279
|
+
var _a9;
|
24280
|
+
const updatedAnswerArray = [];
|
24281
|
+
const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
|
24282
|
+
if (option) {
|
24283
|
+
updatedAnswerArray.push(option);
|
24284
|
+
}
|
24285
|
+
if (options) {
|
24286
|
+
updatedAnswerArray.push(...options);
|
24287
|
+
}
|
24288
|
+
return updatedAnswerArray;
|
24289
|
+
}, [question == null ? void 0 : question.answer]);
|
24290
|
+
return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react111.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ import_react111.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react111.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react111.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons53.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react111.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react111.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
|
24235
24291
|
};
|
24236
24292
|
}
|
24237
24293
|
});
|
@@ -24290,8 +24346,11 @@ function CreateQuestions() {
|
|
24290
24346
|
yield actions.interactivityCenter.addQuestionsToPoll(id, validQuestions);
|
24291
24347
|
}),
|
24292
24348
|
isQuiz,
|
24293
|
-
removeQuestion: (questionID) =>
|
24294
|
-
|
24349
|
+
removeQuestion: (questionID) => __async(this, null, function* () {
|
24350
|
+
const updatedQuestions = questions.filter((questionFromSet) => questionID !== (questionFromSet == null ? void 0 : questionFromSet.draftID));
|
24351
|
+
setQuestions(updatedQuestions);
|
24352
|
+
const validQuestions = updatedQuestions.filter((question2) => isValidQuestion(question2));
|
24353
|
+
yield actions.interactivityCenter.addQuestionsToPoll(id, validQuestions);
|
24295
24354
|
}),
|
24296
24355
|
convertToDraft: (questionID) => setQuestions((prev) => {
|
24297
24356
|
const copyOfQuestions = [...prev];
|
@@ -25272,7 +25331,7 @@ var init_usePinnedMessages = __esm({
|
|
25272
25331
|
if (pinnedMessages[indexToRemove]) {
|
25273
25332
|
yield hmsActions.sessionStore.set(
|
25274
25333
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
25275
|
-
pinnedMessages.filter((
|
25334
|
+
pinnedMessages.filter((_2, index) => index !== indexToRemove)
|
25276
25335
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
25277
25336
|
}
|
25278
25337
|
}),
|
@@ -26764,7 +26823,7 @@ var init_StickIndicator = __esm({
|
|
26764
26823
|
if (total < 2) {
|
26765
26824
|
return null;
|
26766
26825
|
}
|
26767
|
-
return /* @__PURE__ */ import_react142.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
26826
|
+
return /* @__PURE__ */ import_react142.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ import_react142.default.createElement(
|
26768
26827
|
Box,
|
26769
26828
|
{
|
26770
26829
|
css: {
|
@@ -26942,7 +27001,7 @@ var init_Chat = __esm({
|
|
26942
27001
|
const listRef = (0, import_react144.useRef)(null);
|
26943
27002
|
const hmsActions = (0, import_react_sdk71.useHMSActions)();
|
26944
27003
|
const vanillaStore = (0, import_react_sdk71.useHMSVanillaStore)();
|
26945
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk71.useHMSStore)(
|
27004
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk71.useHMSStore)(nm("chatState" /* CHAT_STATE */)) || {};
|
26946
27005
|
const isMobile = (0, import_react_use22.useMedia)(config.media.md);
|
26947
27006
|
const isMobileHLSStream = useMobileHLSStream();
|
26948
27007
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27026,7 +27085,7 @@ var init_Chat = __esm({
|
|
27026
27085
|
scrollToBottom,
|
27027
27086
|
listRef
|
27028
27087
|
}) => {
|
27029
|
-
const unreadCount = (0, import_react_sdk71.useHMSStore)(
|
27088
|
+
const unreadCount = (0, import_react_sdk71.useHMSStore)(Kn);
|
27030
27089
|
if (!unreadCount || !listRef.current) {
|
27031
27090
|
return null;
|
27032
27091
|
}
|
@@ -28208,7 +28267,7 @@ var init_VBPicker = __esm({
|
|
28208
28267
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28209
28268
|
const hmsActions = (0, import_react_sdk79.useHMSActions)();
|
28210
28269
|
const localPeer = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectLocalPeer);
|
28211
|
-
const role = (0, import_react_sdk79.useHMSStore)(
|
28270
|
+
const role = (0, import_react_sdk79.useHMSStore)(Kt);
|
28212
28271
|
const isVideoOn = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectIsLocalVideoEnabled);
|
28213
28272
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
28214
28273
|
const trackSelector = (0, import_react_sdk79.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -28216,10 +28275,10 @@ var init_VBPicker = __esm({
|
|
28216
28275
|
const [blurAmount, setBlurAmount] = (0, import_react154.useState)(VBHandler.getBlurAmount() || 0.5);
|
28217
28276
|
const roomState = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectRoomState);
|
28218
28277
|
const isLargeRoom = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectIsLargeRoom);
|
28219
|
-
const isEffectsEnabled = (0, import_react_sdk79.useHMSStore)(
|
28220
|
-
const effectsKey = (0, import_react_sdk79.useHMSStore)(
|
28278
|
+
const isEffectsEnabled = (0, import_react_sdk79.useHMSStore)(ic);
|
28279
|
+
const effectsKey = (0, import_react_sdk79.useHMSStore)(rc);
|
28221
28280
|
const isPluginAdded = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
28222
|
-
const background = (0, import_react_sdk79.useHMSStore)(
|
28281
|
+
const background = (0, import_react_sdk79.useHMSStore)(om(APP_DATA.background));
|
28223
28282
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
28224
28283
|
const inPreview = roomState === import_react_sdk79.HMSRoomState.Preview;
|
28225
28284
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -28755,7 +28814,7 @@ var init_PreviewJoin = __esm({
|
|
28755
28814
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
28756
28815
|
},
|
28757
28816
|
captureNetworkQualityInPreview: true,
|
28758
|
-
handleError: (
|
28817
|
+
handleError: (_2, method) => {
|
28759
28818
|
if (method === "preview") {
|
28760
28819
|
setPreviewError(true);
|
28761
28820
|
}
|
@@ -29187,7 +29246,7 @@ var init_Pagination2 = __esm({
|
|
29187
29246
|
if (numPages <= 1) {
|
29188
29247
|
return null;
|
29189
29248
|
}
|
29190
|
-
return /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ import_react164.default.createElement(import_react_icons80.ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((
|
29249
|
+
return /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ import_react164.default.createElement(import_react_icons80.ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_2, i) => /* @__PURE__ */ import_react164.default.createElement(
|
29191
29250
|
StyledPagination.Dot,
|
29192
29251
|
{
|
29193
29252
|
key: i,
|
@@ -29306,7 +29365,7 @@ var init_useTileLayout = __esm({
|
|
29306
29365
|
}
|
29307
29366
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
29308
29367
|
let index = 0;
|
29309
|
-
const matrix = new Array(maxRows).fill(null).map((
|
29368
|
+
const matrix = new Array(maxRows).fill(null).map((_2, i) => {
|
29310
29369
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
29311
29370
|
const rowElements = [];
|
29312
29371
|
for (let j = 0; j < numCols; j++) {
|
@@ -30062,7 +30121,7 @@ var init_PeersSorter = __esm({
|
|
30062
30121
|
this.speaker = void 0;
|
30063
30122
|
this.tilesPerPage = tilesPerPage;
|
30064
30123
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
30065
|
-
this.peers.forEach((
|
30124
|
+
this.peers.forEach((_2, key) => {
|
30066
30125
|
if (!peerIds.has(key)) {
|
30067
30126
|
this.peers.delete(key);
|
30068
30127
|
}
|
@@ -30805,8 +30864,8 @@ var init_SeekControls = __esm({
|
|
30805
30864
|
});
|
30806
30865
|
|
30807
30866
|
// src/Prebuilt/components/HMSVideo/utils.ts
|
30808
|
-
function getPercentage(a2,
|
30809
|
-
return a2 /
|
30867
|
+
function getPercentage(a2, b) {
|
30868
|
+
return a2 / b * 100;
|
30810
30869
|
}
|
30811
30870
|
function getDurationFromSeconds2(timeInSeconds) {
|
30812
30871
|
let time = Math.floor(timeInSeconds);
|
@@ -33221,7 +33280,7 @@ var init_ToastConfig = __esm({
|
|
33221
33280
|
init_roomLayoutProvider();
|
33222
33281
|
init_useSidepane();
|
33223
33282
|
init_constants();
|
33224
|
-
ChatAction = import_react212.default.forwardRef((
|
33283
|
+
ChatAction = import_react212.default.forwardRef((_2, ref) => {
|
33225
33284
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33226
33285
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
33227
33286
|
if (isChatOpen) {
|
@@ -33915,7 +33974,7 @@ function Notifications() {
|
|
33915
33974
|
}, []);
|
33916
33975
|
(0, import_react_sdk118.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
33917
33976
|
(0, import_react221.useEffect)(() => {
|
33918
|
-
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
33977
|
+
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
|
33919
33978
|
if (!notification || isNotificationDisabled) {
|
33920
33979
|
return;
|
33921
33980
|
}
|
@@ -33956,7 +34015,7 @@ function Notifications() {
|
|
33956
34015
|
});
|
33957
34016
|
break;
|
33958
34017
|
case import_react_sdk118.HMSNotificationTypes.ROLE_UPDATED: {
|
33959
|
-
if (((
|
34018
|
+
if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
33960
34019
|
ToastManager.addToast({
|
33961
34020
|
title: `You are now a ${notification.data.roleName}`
|
33962
34021
|
});
|