@100mslive/roomkit-react 0.3.3-alpha.5 → 0.3.3-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-W72TK3BE.js → HLSView-UJVFWWXD.js} +2 -2
- package/dist/{chunk-HTFCZ4D6.js → chunk-D73DSBZU.js} +340 -377
- package/dist/{chunk-HTFCZ4D6.js.map → chunk-D73DSBZU.js.map} +4 -4
- package/dist/index.cjs.js +327 -364
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +23 -23
- package/dist/meta.esbuild.json +29 -29
- package/package.json +7 -7
- /package/dist/{HLSView-W72TK3BE.js.map → HLSView-UJVFWWXD.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, b2) => {
|
14
|
+
for (var prop in b2 || (b2 = {}))
|
15
|
+
if (__hasOwnProp.call(b2, prop))
|
16
|
+
__defNormalProp(a2, prop, b2[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(b2)) {
|
19
|
+
if (__propIsEnum.call(b2, prop))
|
20
|
+
__defNormalProp(a2, prop, b2[prop]);
|
21
21
|
}
|
22
22
|
return a2;
|
23
23
|
};
|
24
|
-
var __spreadProps = (a2,
|
24
|
+
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
25
25
|
var __objRest = (source, exclude) => {
|
26
26
|
var target = {};
|
27
27
|
for (var prop in source)
|
@@ -44,13 +44,13 @@ var __export = (target, all) => {
|
|
44
44
|
for (var name in all)
|
45
45
|
__defProp(target, name, { get: all[name], enumerable: true });
|
46
46
|
};
|
47
|
-
var __copyProps = (
|
47
|
+
var __copyProps = (to, from, except, desc) => {
|
48
48
|
if (from && typeof from === "object" || typeof from === "function") {
|
49
49
|
for (let key of __getOwnPropNames(from))
|
50
|
-
if (!__hasOwnProp.call(
|
51
|
-
__defProp(
|
50
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
51
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
52
52
|
}
|
53
|
-
return
|
53
|
+
return to;
|
54
54
|
};
|
55
55
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
56
56
|
// If the importer is in node compatibility mode or this is not an ESM
|
@@ -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_d1851b75-ded9-411c-8b39-0cc99e52e88e", 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.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_d1851b75-ded9-411c-8b39-0cc99e52e88e", 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.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.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.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: "594", 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: "20240317.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:19840", 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.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: "8359425530", 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: "3496c48ec04f96f057590bfec0bb8182011a0b02", 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: "0c4e67d72e7d88c99856fdea969aa038f48122782b4c0fc552af7a5194061e66", 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--1710940063175-0.49561585595909774:/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--1710940062978-0.7197615174263523:/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--1710940040538-0.7382228335634688:/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--1710940040357-0.7458450753432382:/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_d39a5906-941b-4c2d-9239-7d62fbd8b4c5", INVOCATION_ID: "67e126525aec44e1b45f7bf6bdeb6a00", 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: "486", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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 100", 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.5", 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.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: "3496c48ec04f96f057590bfec0bb8182011a0b02", 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: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d1851b75-ded9-411c-8b39-0cc99e52e88e", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d1851b75-ded9-411c-8b39-0cc99e52e88e", 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_d1851b75-ded9-411c-8b39-0cc99e52e88e" };
|
111
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_982bccf4-4a1d-4bbc-a221-8df3c0a06073", 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.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_982bccf4-4a1d-4bbc-a221-8df3c0a06073", 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.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.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: "596", 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: "20240317.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.5", 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:18303", 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.7", 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: "8370062100", 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: "cc984a3923cf9dc6fee242eb9623eba3be5a4a99", 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: "0fe496c7fcffac636bbdcdda640112924f50d36dfc6f256fa30b9a22068c0a8e", 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--1710998331677-0.3398687830452809:/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--1710998331480-0.20783780522037532:/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--1710998309881-0.4873148825741791:/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--1710998309703-0.9607485933227449:/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_2a93d5c7-c2c0-4a02-bfa3-96891b012ecf", INVOCATION_ID: "31720a793c77488283603c8927940eb5", 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: "489", 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 194", 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.7", 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.7", 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: "cc984a3923cf9dc6fee242eb9623eba3be5a4a99", 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_982bccf4-4a1d-4bbc-a221-8df3c0a06073", 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_982bccf4-4a1d-4bbc-a221-8df3c0a06073", 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_982bccf4-4a1d-4bbc-a221-8df3c0a06073" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -2653,7 +2653,7 @@ var init_AudioLevel = __esm({
|
|
2653
2653
|
init_Layout();
|
2654
2654
|
init_Theme();
|
2655
2655
|
init_audio_level();
|
2656
|
-
positionValues = new Array(101).fill(0).reduce((acc,
|
2656
|
+
positionValues = new Array(101).fill(0).reduce((acc, _, index) => {
|
2657
2657
|
acc[index] = Math.round(index / 100 * 4) / 4;
|
2658
2658
|
return acc;
|
2659
2659
|
}, {});
|
@@ -4738,7 +4738,7 @@ var require_lodash = __commonJS({
|
|
4738
4738
|
return string.match(reUnicodeWord) || [];
|
4739
4739
|
}
|
4740
4740
|
var runInContext = function runInContext2(context) {
|
4741
|
-
context = context == null ? root :
|
4741
|
+
context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
|
4742
4742
|
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;
|
4743
4743
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
4744
4744
|
var coreJsData = context["__core-js_shared__"];
|
@@ -8085,7 +8085,7 @@ var require_lodash = __commonJS({
|
|
8085
8085
|
function eq(value, other) {
|
8086
8086
|
return value === other || value !== value && other !== other;
|
8087
8087
|
}
|
8088
|
-
var
|
8088
|
+
var gt2 = createRelationalOperation(baseGt);
|
8089
8089
|
var gte = createRelationalOperation(function(value, other) {
|
8090
8090
|
return value >= other;
|
8091
8091
|
});
|
@@ -9224,7 +9224,7 @@ var require_lodash = __commonJS({
|
|
9224
9224
|
lodash.forOwn = forOwn;
|
9225
9225
|
lodash.forOwnRight = forOwnRight;
|
9226
9226
|
lodash.get = get;
|
9227
|
-
lodash.gt =
|
9227
|
+
lodash.gt = gt2;
|
9228
9228
|
lodash.gte = gte;
|
9229
9229
|
lodash.has = has;
|
9230
9230
|
lodash.hasIn = hasIn;
|
@@ -9512,17 +9512,17 @@ var require_lodash = __commonJS({
|
|
9512
9512
|
}
|
9513
9513
|
return lodash;
|
9514
9514
|
};
|
9515
|
-
var
|
9515
|
+
var _ = runInContext();
|
9516
9516
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
9517
|
-
root._ =
|
9517
|
+
root._ = _;
|
9518
9518
|
define(function() {
|
9519
|
-
return
|
9519
|
+
return _;
|
9520
9520
|
});
|
9521
9521
|
} else if (freeModule) {
|
9522
|
-
(freeModule.exports =
|
9523
|
-
freeExports._ =
|
9522
|
+
(freeModule.exports = _)._ = _;
|
9523
|
+
freeExports._ = _;
|
9524
9524
|
} else {
|
9525
|
-
root._ =
|
9525
|
+
root._ = _;
|
9526
9526
|
}
|
9527
9527
|
}).call(exports);
|
9528
9528
|
}
|
@@ -9737,12 +9737,12 @@ var init_utils2 = __esm({
|
|
9737
9737
|
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
9738
9738
|
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
9739
9739
|
};
|
9740
|
-
compareArrays = (a2,
|
9741
|
-
if (a2.length !==
|
9740
|
+
compareArrays = (a2, b2) => {
|
9741
|
+
if (a2.length !== b2.length)
|
9742
9742
|
return false;
|
9743
9743
|
else {
|
9744
9744
|
for (var i = 0; i < a2.length; i++) {
|
9745
|
-
if (a2[i] !==
|
9745
|
+
if (a2[i] !== b2[i]) {
|
9746
9746
|
return false;
|
9747
9747
|
}
|
9748
9748
|
}
|
@@ -13909,8 +13909,8 @@ var init_DesktopOptions = __esm({
|
|
13909
13909
|
});
|
13910
13910
|
|
13911
13911
|
// ../../node_modules/reselect/es/index.js
|
13912
|
-
function defaultEqualityCheck(a2,
|
13913
|
-
return a2 ===
|
13912
|
+
function defaultEqualityCheck(a2, b2) {
|
13913
|
+
return a2 === b2;
|
13914
13914
|
}
|
13915
13915
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
13916
13916
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -16215,9 +16215,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16215
16215
|
}
|
16216
16216
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16217
16217
|
if (constraints && typeof constraints.audio === "object") {
|
16218
|
-
const remap = function(obj, a2,
|
16219
|
-
if (a2 in obj && !(
|
16220
|
-
obj[
|
16218
|
+
const remap = function(obj, a2, b2) {
|
16219
|
+
if (a2 in obj && !(b2 in obj)) {
|
16220
|
+
obj[b2] = obj[a2];
|
16221
16221
|
delete obj[a2];
|
16222
16222
|
}
|
16223
16223
|
};
|
@@ -16977,9 +16977,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
16977
16977
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
16978
16978
|
};
|
16979
16979
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
16980
|
-
const remap = function(obj, a2,
|
16981
|
-
if (a2 in obj && !(
|
16982
|
-
obj[
|
16980
|
+
const remap = function(obj, a2, b2) {
|
16981
|
+
if (a2 in obj && !(b2 in obj)) {
|
16982
|
+
obj[b2] = obj[a2];
|
16983
16983
|
delete obj[a2];
|
16984
16984
|
}
|
16985
16985
|
};
|
@@ -17751,12 +17751,12 @@ var require_sdp = __commonJS({
|
|
17751
17751
|
return parsed;
|
17752
17752
|
};
|
17753
17753
|
SDPUtils2.writeRtpMap = function(codec) {
|
17754
|
-
let
|
17754
|
+
let pt2 = codec.payloadType;
|
17755
17755
|
if (codec.preferredPayloadType !== void 0) {
|
17756
|
-
|
17756
|
+
pt2 = codec.preferredPayloadType;
|
17757
17757
|
}
|
17758
17758
|
const channels = codec.channels || codec.numChannels || 1;
|
17759
|
-
return "a=rtpmap:" +
|
17759
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
17760
17760
|
};
|
17761
17761
|
SDPUtils2.parseExtmap = function(line) {
|
17762
17762
|
const parts = line.substring(9).split(" ");
|
@@ -17782,9 +17782,9 @@ var require_sdp = __commonJS({
|
|
17782
17782
|
};
|
17783
17783
|
SDPUtils2.writeFmtp = function(codec) {
|
17784
17784
|
let line = "";
|
17785
|
-
let
|
17785
|
+
let pt2 = codec.payloadType;
|
17786
17786
|
if (codec.preferredPayloadType !== void 0) {
|
17787
|
-
|
17787
|
+
pt2 = codec.preferredPayloadType;
|
17788
17788
|
}
|
17789
17789
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
17790
17790
|
const params = [];
|
@@ -17795,7 +17795,7 @@ var require_sdp = __commonJS({
|
|
17795
17795
|
params.push(param);
|
17796
17796
|
}
|
17797
17797
|
});
|
17798
|
-
line += "a=fmtp:" +
|
17798
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
17799
17799
|
}
|
17800
17800
|
return line;
|
17801
17801
|
};
|
@@ -17808,13 +17808,13 @@ var require_sdp = __commonJS({
|
|
17808
17808
|
};
|
17809
17809
|
SDPUtils2.writeRtcpFb = function(codec) {
|
17810
17810
|
let lines = "";
|
17811
|
-
let
|
17811
|
+
let pt2 = codec.payloadType;
|
17812
17812
|
if (codec.preferredPayloadType !== void 0) {
|
17813
|
-
|
17813
|
+
pt2 = codec.preferredPayloadType;
|
17814
17814
|
}
|
17815
17815
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
17816
17816
|
codec.rtcpFeedback.forEach((fb) => {
|
17817
|
-
lines += "a=rtcp-fb:" +
|
17817
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
17818
17818
|
});
|
17819
17819
|
}
|
17820
17820
|
return lines;
|
@@ -17942,21 +17942,21 @@ var require_sdp = __commonJS({
|
|
17942
17942
|
const mline = lines[0].split(" ");
|
17943
17943
|
description.profile = mline[2];
|
17944
17944
|
for (let i = 3; i < mline.length; i++) {
|
17945
|
-
const
|
17945
|
+
const pt2 = mline[i];
|
17946
17946
|
const rtpmapline = SDPUtils2.matchPrefix(
|
17947
17947
|
mediaSection,
|
17948
|
-
"a=rtpmap:" +
|
17948
|
+
"a=rtpmap:" + pt2 + " "
|
17949
17949
|
)[0];
|
17950
17950
|
if (rtpmapline) {
|
17951
17951
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
17952
17952
|
const fmtps = SDPUtils2.matchPrefix(
|
17953
17953
|
mediaSection,
|
17954
|
-
"a=fmtp:" +
|
17954
|
+
"a=fmtp:" + pt2 + " "
|
17955
17955
|
);
|
17956
17956
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
17957
17957
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
17958
17958
|
mediaSection,
|
17959
|
-
"a=rtcp-fb:" +
|
17959
|
+
"a=rtcp-fb:" + pt2 + " "
|
17960
17960
|
).map(SDPUtils2.parseRtcpFb);
|
17961
17961
|
description.codecs.push(codec);
|
17962
17962
|
switch (codec.name.toUpperCase()) {
|
@@ -18421,15 +18421,15 @@ function shimSendThrowTypeError(window2) {
|
|
18421
18421
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
18422
18422
|
return;
|
18423
18423
|
}
|
18424
|
-
function wrapDcSend(
|
18425
|
-
const origDataChannelSend =
|
18426
|
-
|
18424
|
+
function wrapDcSend(dc, pc) {
|
18425
|
+
const origDataChannelSend = dc.send;
|
18426
|
+
dc.send = function send() {
|
18427
18427
|
const data3 = arguments[0];
|
18428
18428
|
const length = data3.length || data3.size || data3.byteLength;
|
18429
|
-
if (
|
18429
|
+
if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
|
18430
18430
|
throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
|
18431
18431
|
}
|
18432
|
-
return origDataChannelSend.apply(
|
18432
|
+
return origDataChannelSend.apply(dc, arguments);
|
18433
18433
|
};
|
18434
18434
|
}
|
18435
18435
|
const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
|
@@ -19426,41 +19426,41 @@ function He(a2, e) {
|
|
19426
19426
|
if (e)
|
19427
19427
|
for (let r of e.auxiliaryTracks) {
|
19428
19428
|
let s = a2[r];
|
19429
|
-
|
19429
|
+
Ha(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
|
19430
19430
|
}
|
19431
19431
|
return { video: t, audio: i };
|
19432
19432
|
}
|
19433
|
-
function
|
19433
|
+
function tt(a2) {
|
19434
19434
|
return a2 && a2.type === "audio";
|
19435
19435
|
}
|
19436
|
-
function
|
19436
|
+
function it(a2) {
|
19437
19437
|
return a2 && a2.type === "video";
|
19438
19438
|
}
|
19439
|
-
function
|
19439
|
+
function Ha(a2) {
|
19440
19440
|
return a2 && a2.source === "screen";
|
19441
19441
|
}
|
19442
19442
|
function $t(a2) {
|
19443
19443
|
return a2 && a2.source === "audioplaylist";
|
19444
19444
|
}
|
19445
|
-
function
|
19445
|
+
function rt(a2) {
|
19446
19446
|
return a2 && a2.source === "videoplaylist";
|
19447
19447
|
}
|
19448
|
-
function
|
19448
|
+
function jr(a2) {
|
19449
19449
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
19450
19450
|
}
|
19451
19451
|
function Ue(a2, e) {
|
19452
19452
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
19453
19453
|
}
|
19454
|
-
function
|
19454
|
+
function st(a2) {
|
19455
19455
|
var r;
|
19456
19456
|
let e = false, t = false, i = false;
|
19457
19457
|
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 };
|
19458
19458
|
}
|
19459
|
-
function
|
19459
|
+
function b(a2) {
|
19460
19460
|
return (e) => (t) => a2(t, e);
|
19461
19461
|
}
|
19462
|
-
function
|
19463
|
-
if (
|
19462
|
+
function Ga() {
|
19463
|
+
if (w && window) {
|
19464
19464
|
let a2 = window.location.hostname;
|
19465
19465
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
19466
19466
|
}
|
@@ -19469,12 +19469,12 @@ function $a() {
|
|
19469
19469
|
function ie(a2) {
|
19470
19470
|
return a2 != null;
|
19471
19471
|
}
|
19472
|
-
function
|
19472
|
+
function ot(a2 = "prod", e) {
|
19473
19473
|
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
19474
19474
|
if (Ce)
|
19475
|
-
return
|
19475
|
+
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 });
|
19476
19476
|
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;
|
19477
|
-
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`),
|
19477
|
+
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 });
|
19478
19478
|
}
|
19479
19479
|
function ur(a2) {
|
19480
19480
|
return a2.replace(/ /g, "_");
|
@@ -19489,13 +19489,13 @@ function Jt(a2, e = 300) {
|
|
19489
19489
|
}, e);
|
19490
19490
|
};
|
19491
19491
|
}
|
19492
|
-
function
|
19492
|
+
function sm(a2) {
|
19493
19493
|
return (e) => {
|
19494
19494
|
if (e.sessionStore)
|
19495
19495
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19496
19496
|
};
|
19497
19497
|
}
|
19498
|
-
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, Pa, Ea,
|
19498
|
+
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, $r, Wr, Gr, S, v, Xi, Ia, lr, Zi, Ra, Kr, er, qr, B, Ca, Rn, Hn, G, Wt, Qr, D, tr, La, ye, Dn, Da, oe, wa, z, ue, wn, _n, Z, K, _a7, Yr, Nn, On, rr, Na, Un, Bn, Vn, Fn, Gn, $n, Wn, Kn, at, Oa, qn, Y, Zr, jn, ne, Jn, Kt, xa, es, Qn, ts, zn, Yn, Xn, Zn, ec, tc, ic, rc, is, nc, Ua, cc, ss, sr, as, os, ns, cs, ds, ls, us, ps, hs, Ba, d, pe, w, ms, Ce, Fa, gc, Ss, gs, fs, vs, Ve, M, f, $a, m, nr, Ms, ce, ys, Ps, Es, R, y, pr, q, hr, mr, Cs, Ls, Ds, Sr, Os, gr, xs, Tr, fr, Vs, Fs, pt, Qe, gt, k, Rr, Tt, Js, ho, mo, J, Hr, So, go, To, fo, vo, Q, rm, om, oi, Qs, nm, cm, dm, Mo, yo, um, zs, pm, ko, hm, mm, Sm, gm, Tm, fm, Ys, Xs, Mm, ym, Zs, km, Pm, ea, Em, bm, Am, ta, ia, Po, Eo, bo, Im, Rm, Hm, Cm, Lm, ra, Gm, Ao, $m, Wm, Km, Ro, Ho, _r, Te, $, Bi, Ji, Qo, zo, Yo, Xo, Ma, Zo, ya, Br, ve, en, tn, rn, sn, an, on, nn, cn, dn, ln, Vr, un, pn, hn, mn, Sn, gn;
|
19499
19499
|
var init_dist = __esm({
|
19500
19500
|
"../hms-video-store/dist/index.js"() {
|
19501
19501
|
"use strict";
|
@@ -19523,68 +19523,68 @@ var init_dist = __esm({
|
|
19523
19523
|
import_uuid9 = require("uuid");
|
19524
19524
|
import_uuid10 = require("uuid");
|
19525
19525
|
init_es();
|
19526
|
-
|
19527
|
-
|
19528
|
-
|
19526
|
+
ka = Object.defineProperty;
|
19527
|
+
Pa = Object.defineProperties;
|
19528
|
+
Ea = Object.getOwnPropertyDescriptors;
|
19529
19529
|
Vt = Object.getOwnPropertySymbols;
|
19530
|
-
|
19531
|
-
|
19532
|
-
|
19533
|
-
|
19530
|
+
$r = Object.prototype.hasOwnProperty;
|
19531
|
+
Wr = Object.prototype.propertyIsEnumerable;
|
19532
|
+
Gr = (a2, e, t) => e in a2 ? ka(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
19533
|
+
S = (a2, e) => {
|
19534
19534
|
for (var t in e || (e = {}))
|
19535
|
-
|
19535
|
+
$r.call(e, t) && Gr(a2, t, e[t]);
|
19536
19536
|
if (Vt)
|
19537
19537
|
for (var t of Vt(e))
|
19538
|
-
|
19538
|
+
Wr.call(e, t) && Gr(a2, t, e[t]);
|
19539
19539
|
return a2;
|
19540
19540
|
};
|
19541
|
-
v = (a2, e) =>
|
19541
|
+
v = (a2, e) => Pa(a2, Ea(e));
|
19542
19542
|
Xi = (a2, e) => {
|
19543
19543
|
var t = {};
|
19544
19544
|
for (var i in a2)
|
19545
|
-
|
19545
|
+
$r.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
19546
19546
|
if (a2 != null && Vt)
|
19547
19547
|
for (var i of Vt(a2))
|
19548
|
-
e.indexOf(i) < 0 &&
|
19548
|
+
e.indexOf(i) < 0 && Wr.call(a2, i) && (t[i] = a2[i]);
|
19549
19549
|
return t;
|
19550
19550
|
};
|
19551
|
-
|
19552
|
-
lr =
|
19553
|
-
|
19551
|
+
Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19552
|
+
lr = Ia((td, Ka) => {
|
19553
|
+
Ka.exports = { version: "0.12.3-alpha.7", 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"] };
|
19554
19554
|
});
|
19555
19555
|
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 || {});
|
19556
|
-
|
19557
|
-
|
19556
|
+
Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
|
19557
|
+
Kr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Kr || {});
|
19558
19558
|
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 || {});
|
19559
|
-
|
19559
|
+
qr = ((t) => (t.audio = "audio", t.video = "video", t))(qr || {});
|
19560
19560
|
B = (a2) => a2.room;
|
19561
|
-
|
19562
|
-
|
19563
|
-
|
19561
|
+
Ca = (a2) => a2.errors;
|
19562
|
+
Rn = createSelector(Ca, (a2) => a2.length === 0 ? null : a2.at(-1));
|
19563
|
+
Hn = createSelector(B, (a2) => a2.id);
|
19564
19564
|
G = (a2) => a2.peers;
|
19565
19565
|
Wt = (a2) => a2.messages.byID;
|
19566
|
-
|
19567
|
-
|
19566
|
+
Qr = (a2) => a2.messages.allIDs;
|
19567
|
+
D = (a2) => a2.tracks;
|
19568
19568
|
tr = (a2) => a2.appData;
|
19569
|
-
|
19569
|
+
La = (a2) => a2.speakers;
|
19570
19570
|
ye = createSelector([B], (a2) => a2 && a2.isConnected);
|
19571
|
-
|
19572
|
-
|
19573
|
-
oe = createSelector([B, G,
|
19574
|
-
|
19571
|
+
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));
|
19572
|
+
Da = (a2) => a2.hideLocalPeer;
|
19573
|
+
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]));
|
19574
|
+
wa = createSelector(D, (a2) => Object.values(a2));
|
19575
19575
|
z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
|
19576
19576
|
ue = createSelector(B, (a2) => a2.localPeer);
|
19577
|
-
|
19578
|
-
|
19577
|
+
wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
|
19578
|
+
_n = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
|
19579
19579
|
Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
19580
19580
|
K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
19581
|
-
|
19582
|
-
|
19581
|
+
_a7 = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
19582
|
+
Yr = createSelector([Z, K, _a7], (a2, e, t) => {
|
19583
19583
|
let i = t ? [...t] : [];
|
19584
19584
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
19585
19585
|
});
|
19586
|
-
|
19587
|
-
|
19586
|
+
Nn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
|
19587
|
+
On = createSelector(G, La, (a2, e) => {
|
19588
19588
|
let t = Object.entries(e).sort((i, r) => {
|
19589
19589
|
var n, l;
|
19590
19590
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -19597,11 +19597,11 @@ var init_dist = __esm({
|
|
19597
19597
|
}
|
19598
19598
|
return null;
|
19599
19599
|
});
|
19600
|
-
rr = createSelector(z,
|
19600
|
+
rr = createSelector(z, D, (a2, e) => {
|
19601
19601
|
let { video: t, audio: i } = He(e, a2);
|
19602
19602
|
return !!(t || i);
|
19603
19603
|
});
|
19604
|
-
|
19604
|
+
Na = createSelector(G, D, (a2, e) => {
|
19605
19605
|
let t;
|
19606
19606
|
for (let i in a2) {
|
19607
19607
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -19611,15 +19611,15 @@ var init_dist = __esm({
|
|
19611
19611
|
}
|
19612
19612
|
return t;
|
19613
19613
|
});
|
19614
|
-
|
19615
|
-
|
19614
|
+
Un = createSelector(Na, (a2) => !!a2);
|
19615
|
+
Bn = createSelector(G, D, (a2, e) => {
|
19616
19616
|
for (let t in a2) {
|
19617
19617
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
19618
19618
|
if (!s && r)
|
19619
19619
|
return i;
|
19620
19620
|
}
|
19621
19621
|
});
|
19622
|
-
|
19622
|
+
Vn = createSelector(G, D, (a2, e) => {
|
19623
19623
|
let t = [], i = [];
|
19624
19624
|
for (let r in a2) {
|
19625
19625
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -19627,77 +19627,77 @@ var init_dist = __esm({
|
|
19627
19627
|
}
|
19628
19628
|
return t.concat(i);
|
19629
19629
|
});
|
19630
|
-
|
19630
|
+
Fn = createSelector(G, D, (a2, e) => {
|
19631
19631
|
for (let t in e) {
|
19632
19632
|
let i = e[t];
|
19633
|
-
if (
|
19633
|
+
if (rt(i) && it(i) && i.peerId)
|
19634
19634
|
return a2[i.peerId];
|
19635
19635
|
}
|
19636
19636
|
});
|
19637
|
-
|
19637
|
+
Gn = createSelector(G, D, (a2, e) => {
|
19638
19638
|
for (let t in e) {
|
19639
19639
|
let i = e[t];
|
19640
19640
|
if ($t(i) && i.peerId)
|
19641
19641
|
return a2[i.peerId];
|
19642
19642
|
}
|
19643
19643
|
});
|
19644
|
-
|
19645
|
-
|
19646
|
-
|
19647
|
-
|
19644
|
+
$n = createSelector(wa, (a2) => a2.filter(jr));
|
19645
|
+
Wn = createSelector(Qr, (a2) => a2.length);
|
19646
|
+
Kn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
19647
|
+
at = createSelector(Qr, Wt, (a2, e) => {
|
19648
19648
|
let t = [];
|
19649
19649
|
return a2.forEach((i) => {
|
19650
19650
|
t.push(e[i]);
|
19651
19651
|
}), t;
|
19652
19652
|
});
|
19653
|
-
|
19653
|
+
Oa = createSelector(at, (a2) => a2.filter((e) => {
|
19654
19654
|
var t;
|
19655
19655
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
19656
19656
|
}));
|
19657
|
-
|
19657
|
+
qn = createSelector(Oa, (a2) => a2.filter((e) => !e.read).length);
|
19658
19658
|
Y = createSelector([B], (a2) => a2 && a2.roomState);
|
19659
|
-
|
19660
|
-
|
19659
|
+
Zr = createSelector(Y, (a2) => a2 === "Preview");
|
19660
|
+
jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
19661
19661
|
ne = (a2) => a2.roles;
|
19662
|
-
|
19662
|
+
Jn = createSelector([ne], (a2) => Object.keys(a2));
|
19663
19663
|
Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
19664
|
-
|
19664
|
+
xa = (a2) => {
|
19665
19665
|
var e;
|
19666
19666
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
19667
19667
|
};
|
19668
|
-
|
19669
|
-
|
19668
|
+
es = createSelector([xa, ne], (a2, e) => a2 ? e[a2] : null);
|
19669
|
+
Qn = createSelector([Kt], (a2) => {
|
19670
19670
|
var e;
|
19671
19671
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
19672
19672
|
});
|
19673
|
-
|
19674
|
-
|
19675
|
-
|
19676
|
-
|
19677
|
-
|
19678
|
-
|
19679
|
-
|
19680
|
-
|
19681
|
-
|
19682
|
-
|
19683
|
-
|
19684
|
-
|
19685
|
-
|
19686
|
-
|
19673
|
+
ts = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
|
19674
|
+
zn = createSelector(B, (a2) => a2.recording);
|
19675
|
+
Yn = createSelector(B, (a2) => a2.rtmp);
|
19676
|
+
Xn = createSelector(B, (a2) => a2.hls);
|
19677
|
+
Zn = createSelector(B, (a2) => a2.sessionId);
|
19678
|
+
ec = createSelector(B, (a2) => a2.startedAt);
|
19679
|
+
tc = createSelector(B, (a2) => !!a2.isLargeRoom);
|
19680
|
+
ic = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
19681
|
+
rc = createSelector(B, (a2) => a2.effectsKey);
|
19682
|
+
is = (a2) => a2.polls;
|
19683
|
+
nc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
|
19684
|
+
Ua = (a2) => a2.whiteboards;
|
19685
|
+
cc = createSelector(Ua, (a2) => Object.values(a2)[0]);
|
19686
|
+
ss = (a2 = "audio") => (e) => e.playlist[a2].list;
|
19687
19687
|
sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
19688
|
-
|
19689
|
-
|
19690
|
-
|
19691
|
-
|
19692
|
-
|
19693
|
-
|
19688
|
+
as = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
19689
|
+
os = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
19690
|
+
ns = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
19691
|
+
cs = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
19692
|
+
ds = (a2 = "audio") => createSelector(ss(a2), (e) => Object.values(e));
|
19693
|
+
ls = (a2 = "audio") => createSelector(ss(a2), sr(a2), (e, t) => {
|
19694
19694
|
if (t.id)
|
19695
19695
|
return e[t.id];
|
19696
19696
|
});
|
19697
|
-
|
19698
|
-
|
19699
|
-
|
19700
|
-
|
19697
|
+
us = { selection: sr("audio"), progress: as("audio"), currentTime: os("audio"), playbackRate: ns("audio"), volume: cs("audio"), list: ds("audio"), selectedItem: ls("audio") };
|
19698
|
+
ps = { selection: sr("video"), progress: as("video"), currentTime: os("video"), playbackRate: ns("video"), volume: cs("video"), list: ds("video"), selectedItem: ls("video") };
|
19699
|
+
hs = ((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))(hs || {});
|
19700
|
+
Ba = typeof window != "undefined" && typeof window.expect != "undefined";
|
19701
19701
|
d = class {
|
19702
19702
|
static v(e, ...t) {
|
19703
19703
|
this.log(0, e, ...t);
|
@@ -19763,15 +19763,15 @@ var init_dist = __esm({
|
|
19763
19763
|
}
|
19764
19764
|
}
|
19765
19765
|
};
|
19766
|
-
d.level =
|
19766
|
+
d.level = Ba ? 7 : 0;
|
19767
19767
|
pe = new import_ua_parser_js.UAParser();
|
19768
|
-
|
19769
|
-
Ce = typeof window == "undefined" && !((
|
19770
|
-
|
19771
|
-
|
19772
|
-
|
19773
|
-
|
19774
|
-
Ve =
|
19768
|
+
w = typeof window != "undefined";
|
19769
|
+
Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
19770
|
+
Fa = () => !Ce;
|
19771
|
+
gc = Fa();
|
19772
|
+
fs = ((gs = (Ss = pe.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
|
19773
|
+
vs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(vs || {});
|
19774
|
+
Ve = Ga();
|
19775
19775
|
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 } };
|
19776
19776
|
f = class a extends Error {
|
19777
19777
|
constructor(t, i, r, s, o, n = false) {
|
@@ -19802,8 +19802,8 @@ var init_dist = __esm({
|
|
19802
19802
|
}`;
|
19803
19803
|
}
|
19804
19804
|
};
|
19805
|
-
|
19806
|
-
|
19805
|
+
$a = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
19806
|
+
m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
19807
19807
|
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
19808
19808
|
}, WebSocketConnectionLost(a2, e = "") {
|
19809
19809
|
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
|
@@ -19862,7 +19862,7 @@ var init_dist = __esm({
|
|
19862
19862
|
}, StatsFailed(a2, e = "") {
|
19863
19863
|
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
19864
19864
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
19865
|
-
return new f(a2, "ServerErrors", e, t, t,
|
19865
|
+
return new f(a2, "ServerErrors", e, t, t, $a.includes(e));
|
19866
19866
|
}, AlreadyJoined(a2, e = "") {
|
19867
19867
|
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
19868
19868
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
@@ -19935,11 +19935,11 @@ var init_dist = __esm({
|
|
19935
19935
|
return this.valuesMap.size;
|
19936
19936
|
}
|
19937
19937
|
};
|
19938
|
-
|
19938
|
+
Ms = () => {
|
19939
19939
|
try {
|
19940
|
-
|
19940
|
+
w && !localStorage && (window.localStorage = new nr());
|
19941
19941
|
} catch (a2) {
|
19942
|
-
d.e("Error initialising localStorage",
|
19942
|
+
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
19943
19943
|
}
|
19944
19944
|
};
|
19945
19945
|
ce = class {
|
@@ -19949,9 +19949,9 @@ var init_dist = __esm({
|
|
19949
19949
|
}
|
19950
19950
|
getStorage() {
|
19951
19951
|
try {
|
19952
|
-
return
|
19952
|
+
return w && !this.storage && (Ms(), this.storage = window.localStorage), this.storage;
|
19953
19953
|
} catch (e) {
|
19954
|
-
return d.e("Error initialising localStorage",
|
19954
|
+
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
19955
19955
|
}
|
19956
19956
|
}
|
19957
19957
|
get() {
|
@@ -19969,57 +19969,24 @@ var init_dist = __esm({
|
|
19969
19969
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
19970
19970
|
}
|
19971
19971
|
};
|
19972
|
-
|
19972
|
+
ys = () => {
|
19973
19973
|
let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
|
19974
19974
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
19975
19975
|
};
|
19976
|
-
|
19977
|
-
|
19976
|
+
Ps = lr().version;
|
19977
|
+
Es = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
19978
19978
|
R = class {
|
19979
19979
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
19980
|
-
this.metadata = { peer: {}, userAgent:
|
19981
|
-
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 =
|
19980
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
19981
|
+
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();
|
19982
19982
|
}
|
19983
19983
|
toSignalParams() {
|
19984
|
-
return { name: this.name, info: v(
|
19985
|
-
}
|
19986
|
-
};
|
19987
|
-
pr = class {
|
19988
|
-
constructor() {
|
19989
|
-
this.pluginUsage = /* @__PURE__ */ new Map();
|
19990
|
-
this.pluginLastAddedAt = /* @__PURE__ */ new Map();
|
19991
|
-
this.getPluginUsage = (e, t) => {
|
19992
|
-
let i = `${t}-${e}`;
|
19993
|
-
if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
|
19994
|
-
let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
|
19995
|
-
this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
|
19996
|
-
}
|
19997
|
-
return this.pluginUsage.get(i);
|
19998
|
-
};
|
19999
|
-
this.updatePluginUsageData = (e, t) => {
|
20000
|
-
if (e.name === "transport.leave") {
|
20001
|
-
this.cleanup(t);
|
20002
|
-
return;
|
20003
|
-
}
|
20004
|
-
let i = e.properties.plugin_name, r = `${t}-${i}`;
|
20005
|
-
if (e.name === "mediaPlugin.added") {
|
20006
|
-
let s = e.properties.added_at;
|
20007
|
-
this.pluginLastAddedAt.set(r, s);
|
20008
|
-
} else if (e.name === "mediaPlugin.stats") {
|
20009
|
-
let s = e.properties.duration;
|
20010
|
-
s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
|
20011
|
-
}
|
20012
|
-
};
|
20013
|
-
this.cleanup = (e) => {
|
20014
|
-
for (let t of this.pluginUsage.keys())
|
20015
|
-
e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
|
20016
|
-
};
|
19984
|
+
return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
20017
19985
|
}
|
20018
19986
|
};
|
20019
|
-
Fe = new pr();
|
20020
19987
|
y = class {
|
20021
19988
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
20022
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(
|
19989
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
20023
19990
|
return new R({ name: o, level: n, properties: l });
|
20024
19991
|
}
|
20025
19992
|
static disconnect(e, t) {
|
@@ -20033,7 +20000,7 @@ var init_dist = __esm({
|
|
20033
20000
|
}
|
20034
20001
|
static join(i) {
|
20035
20002
|
var r = i, { error: e } = r, t = Xi(r, ["error"]);
|
20036
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(
|
20003
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
20037
20004
|
return new R({ name: s, level: o, properties: n });
|
20038
20005
|
}
|
20039
20006
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -20076,7 +20043,7 @@ var init_dist = __esm({
|
|
20076
20043
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
20077
20044
|
if (!t && e.degradedAt instanceof Date) {
|
20078
20045
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
20079
|
-
s = v(
|
20046
|
+
s = v(S({}, s), { duration: n, restoredAt: o });
|
20080
20047
|
}
|
20081
20048
|
return new R({ name: i, level: r, properties: s });
|
20082
20049
|
}
|
@@ -20094,25 +20061,21 @@ var init_dist = __esm({
|
|
20094
20061
|
return new R({ name: "subscriber.stats", level: 1, properties: e });
|
20095
20062
|
}
|
20096
20063
|
static getKrispUsage(e) {
|
20097
|
-
|
20098
|
-
return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
|
20099
|
-
}
|
20100
|
-
static transportLeave() {
|
20101
|
-
return new R({ name: "transport.leave", level: 1, properties: {} });
|
20064
|
+
return new R({ name: "krisp.usage", level: 1, properties: { duration: e } });
|
20102
20065
|
}
|
20103
20066
|
static eventNameFor(e, t) {
|
20104
20067
|
return `${e}.${t ? "success" : "failed"}`;
|
20105
20068
|
}
|
20106
20069
|
static getPropertiesWithError(e, t) {
|
20107
20070
|
let i = this.getErrorProperties(t);
|
20108
|
-
return e =
|
20071
|
+
return e = S(S({}, i), e), e;
|
20109
20072
|
}
|
20110
20073
|
static getErrorProperties(e) {
|
20111
20074
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
20112
20075
|
}
|
20113
20076
|
};
|
20114
20077
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
20115
|
-
|
20078
|
+
pr = class {
|
20116
20079
|
constructor() {
|
20117
20080
|
this.storage = new ce("hms-device-selection");
|
20118
20081
|
this.remember = false;
|
@@ -20146,13 +20109,13 @@ var init_dist = __esm({
|
|
20146
20109
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
20147
20110
|
}
|
20148
20111
|
};
|
20149
|
-
q = new
|
20150
|
-
|
20151
|
-
|
20152
|
-
|
20153
|
-
|
20154
|
-
|
20155
|
-
|
20112
|
+
q = new pr();
|
20113
|
+
hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
|
20114
|
+
mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
|
20115
|
+
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 || {});
|
20116
|
+
Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
|
20117
|
+
Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
|
20118
|
+
Sr = class {
|
20156
20119
|
constructor() {
|
20157
20120
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
20158
20121
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20175,12 +20138,12 @@ var init_dist = __esm({
|
|
20175
20138
|
this.createObserver();
|
20176
20139
|
}
|
20177
20140
|
isSupported() {
|
20178
|
-
let e =
|
20141
|
+
let e = w && typeof window.IntersectionObserver != "undefined";
|
20179
20142
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
20180
20143
|
}
|
20181
20144
|
};
|
20182
|
-
|
20183
|
-
|
20145
|
+
Os = new Sr();
|
20146
|
+
gr = class {
|
20184
20147
|
constructor() {
|
20185
20148
|
this.TAG = "[HMSResizeObserverWrapper]";
|
20186
20149
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20203,20 +20166,20 @@ var init_dist = __esm({
|
|
20203
20166
|
this.createObserver();
|
20204
20167
|
}
|
20205
20168
|
isSupported() {
|
20206
|
-
let e =
|
20169
|
+
let e = w && typeof window.ResizeObserver != "undefined";
|
20207
20170
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
20208
20171
|
}
|
20209
20172
|
};
|
20210
|
-
|
20211
|
-
|
20212
|
-
|
20213
|
-
|
20214
|
-
|
20215
|
-
|
20216
|
-
|
20217
|
-
};
|
20218
|
-
|
20219
|
-
|
20173
|
+
xs = new gr();
|
20174
|
+
Tr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Tr || {});
|
20175
|
+
fr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(fr || {});
|
20176
|
+
Vs = "https://event.100ms.live/v2/client/report";
|
20177
|
+
Fs = "https://event-nonprod.100ms.live/v2/client/report";
|
20178
|
+
pt = Math.pow(2, 31) - 1;
|
20179
|
+
Qe = class {
|
20180
|
+
};
|
20181
|
+
Qe.makePeerId = () => (0, import_uuid7.v4)();
|
20182
|
+
gt = "HMS-Store:";
|
20220
20183
|
k = class {
|
20221
20184
|
static v(e, ...t) {
|
20222
20185
|
this.log(0, e, ...t);
|
@@ -20246,23 +20209,23 @@ var init_dist = __esm({
|
|
20246
20209
|
if (!(this.level.valueOf() > e.valueOf()))
|
20247
20210
|
switch (e) {
|
20248
20211
|
case 0: {
|
20249
|
-
console.log(
|
20212
|
+
console.log(gt, ...t);
|
20250
20213
|
break;
|
20251
20214
|
}
|
20252
20215
|
case 1: {
|
20253
|
-
console.debug(
|
20216
|
+
console.debug(gt, ...t);
|
20254
20217
|
break;
|
20255
20218
|
}
|
20256
20219
|
case 2: {
|
20257
|
-
console.info(
|
20220
|
+
console.info(gt, ...t);
|
20258
20221
|
break;
|
20259
20222
|
}
|
20260
20223
|
case 3: {
|
20261
|
-
console.warn(
|
20224
|
+
console.warn(gt, ...t);
|
20262
20225
|
break;
|
20263
20226
|
}
|
20264
20227
|
case 6: {
|
20265
|
-
console.error(
|
20228
|
+
console.error(gt, ...t);
|
20266
20229
|
break;
|
20267
20230
|
}
|
20268
20231
|
case 4: {
|
@@ -20283,126 +20246,126 @@ var init_dist = __esm({
|
|
20283
20246
|
}
|
20284
20247
|
};
|
20285
20248
|
k.level = 0;
|
20286
|
-
|
20287
|
-
|
20288
|
-
|
20249
|
+
Rr = (a2, e) => e;
|
20250
|
+
Tt = (a2, e) => e;
|
20251
|
+
Js = (a2, e) => e;
|
20252
|
+
ho = (a2, e) => e;
|
20289
20253
|
mo = (a2, e) => e;
|
20290
|
-
|
20291
|
-
|
20292
|
-
|
20293
|
-
go = createSelector([w, ft], (a2, e) => {
|
20254
|
+
J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
|
20255
|
+
Hr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
|
20256
|
+
So = createSelector([D, Tt], (a2, e) => {
|
20294
20257
|
if (!e)
|
20295
20258
|
return null;
|
20296
20259
|
let t = a2[e];
|
20297
20260
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
20298
20261
|
});
|
20299
|
-
|
20262
|
+
go = createSelector([D, Tt], (a2, e) => {
|
20300
20263
|
if (!e)
|
20301
20264
|
return null;
|
20302
20265
|
let t = a2[e];
|
20303
20266
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
20304
20267
|
});
|
20305
|
-
|
20268
|
+
To = createSelector([D, Tt], (a2, e) => {
|
20306
20269
|
if (!e)
|
20307
20270
|
return null;
|
20308
20271
|
let t = a2[e];
|
20309
20272
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20310
20273
|
});
|
20311
|
-
|
20274
|
+
fo = createSelector([D, Tt], (a2, e) => {
|
20312
20275
|
if (!e)
|
20313
20276
|
return null;
|
20314
20277
|
let t = a2[e];
|
20315
20278
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20316
20279
|
});
|
20317
|
-
|
20318
|
-
Q =
|
20319
|
-
|
20280
|
+
vo = createSelector([is, mo], (a2, e) => e ? a2[e] : null);
|
20281
|
+
Q = b(J);
|
20282
|
+
rm = b(createSelector([tr, ho], (a2, e) => {
|
20320
20283
|
if (a2)
|
20321
20284
|
return e ? a2[e] : a2;
|
20322
20285
|
}));
|
20323
|
-
|
20324
|
-
oi =
|
20325
|
-
|
20326
|
-
|
20327
|
-
|
20328
|
-
|
20329
|
-
|
20286
|
+
om = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
20287
|
+
oi = b(Hr);
|
20288
|
+
Qs = b(So);
|
20289
|
+
nm = b(go);
|
20290
|
+
cm = b(To);
|
20291
|
+
dm = b(fo);
|
20292
|
+
Mo = b((a2, e) => {
|
20330
20293
|
let t = J(a2, e);
|
20331
20294
|
if (t && t.videoTrack && t.videoTrack !== "")
|
20332
20295
|
return a2.tracks[t.videoTrack];
|
20333
20296
|
});
|
20334
|
-
|
20297
|
+
yo = b((a2, e) => {
|
20335
20298
|
let t = J(a2, e);
|
20336
20299
|
if (t && t.audioTrack && t.audioTrack !== "")
|
20337
20300
|
return a2.tracks[t.audioTrack];
|
20338
20301
|
});
|
20339
|
-
|
20302
|
+
um = b((a2, e) => {
|
20340
20303
|
let t = J(a2, e);
|
20341
20304
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
20342
20305
|
});
|
20343
|
-
|
20344
|
-
|
20345
|
-
|
20346
|
-
let t =
|
20347
|
-
return
|
20348
|
-
};
|
20349
|
-
|
20350
|
-
|
20306
|
+
zs = (a2, e) => e ? a2.speakers[e] : null;
|
20307
|
+
pm = b(createSelector(zs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20308
|
+
ko = (a2, e) => {
|
20309
|
+
let t = yo(e)(a2);
|
20310
|
+
return zs(a2, t == null ? void 0 : t.id);
|
20311
|
+
};
|
20312
|
+
hm = b(createSelector(ko, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20313
|
+
mm = b((a2, e) => {
|
20351
20314
|
if (e)
|
20352
20315
|
return a2.connectionQualities[e];
|
20353
20316
|
});
|
20354
|
-
|
20317
|
+
Sm = b((a2, e) => {
|
20355
20318
|
let t = J(a2, e);
|
20356
20319
|
if (t) {
|
20357
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
20320
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
|
20358
20321
|
return i ? a2.tracks[i] : void 0;
|
20359
20322
|
}
|
20360
20323
|
});
|
20361
|
-
|
20324
|
+
gm = b(createSelector(D, J, (a2, e) => {
|
20362
20325
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20363
20326
|
let r = a2[i];
|
20364
|
-
return
|
20327
|
+
return rt(r) && it(r);
|
20365
20328
|
});
|
20366
20329
|
return t ? a2[t] : void 0;
|
20367
20330
|
}));
|
20368
|
-
|
20331
|
+
Tm = b(createSelector(D, J, (a2, e) => {
|
20369
20332
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20370
20333
|
let r = a2[i];
|
20371
|
-
return
|
20334
|
+
return rt(r) && tt(r);
|
20372
20335
|
});
|
20373
20336
|
return t ? a2[t] : void 0;
|
20374
20337
|
}));
|
20375
|
-
|
20338
|
+
fm = b(createSelector(D, J, (a2, e) => {
|
20376
20339
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20377
20340
|
let r = a2[i];
|
20378
|
-
return $t(r) &&
|
20341
|
+
return $t(r) && tt(r);
|
20379
20342
|
});
|
20380
20343
|
return t ? a2[t] : void 0;
|
20381
20344
|
}));
|
20382
|
-
|
20383
|
-
|
20384
|
-
|
20345
|
+
Ys = b(createSelector(D, J, (a2, e) => He(a2, e)));
|
20346
|
+
Xs = (a2) => createSelector(Ys(a2), (e) => e.audio);
|
20347
|
+
Mm = b((a2, e) => {
|
20385
20348
|
let t = J(a2, e);
|
20386
20349
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
20387
20350
|
});
|
20388
|
-
|
20351
|
+
ym = b((a2, e) => {
|
20389
20352
|
let t = J(a2, e);
|
20390
20353
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
20391
20354
|
});
|
20392
|
-
|
20355
|
+
Zs = b((a2, e) => {
|
20393
20356
|
if (e && a2.tracks[e])
|
20394
20357
|
return a2.tracks[e].volume === 0;
|
20395
20358
|
});
|
20396
|
-
|
20359
|
+
km = b((a2, e) => {
|
20397
20360
|
let t = J(a2, e);
|
20398
|
-
return
|
20361
|
+
return Zs(t == null ? void 0 : t.audioTrack)(a2);
|
20399
20362
|
});
|
20400
|
-
|
20401
|
-
let t =
|
20402
|
-
return
|
20363
|
+
Pm = b((a2, e) => {
|
20364
|
+
let t = Xs(e)(a2);
|
20365
|
+
return Zs(t == null ? void 0 : t.id)(a2);
|
20403
20366
|
});
|
20404
|
-
|
20405
|
-
let t =
|
20367
|
+
ea = b((a2, e) => {
|
20368
|
+
let t = Hr(a2, e);
|
20406
20369
|
if (t) {
|
20407
20370
|
if (t.type !== "audio") {
|
20408
20371
|
k.w("Please pass audio track here");
|
@@ -20411,16 +20374,16 @@ var init_dist = __esm({
|
|
20411
20374
|
return t.volume;
|
20412
20375
|
}
|
20413
20376
|
});
|
20414
|
-
|
20377
|
+
Em = b((a2, e) => {
|
20415
20378
|
let t = J(a2, e);
|
20416
|
-
return
|
20379
|
+
return ea(t == null ? void 0 : t.audioTrack)(a2);
|
20417
20380
|
});
|
20418
|
-
|
20419
|
-
let t =
|
20420
|
-
return
|
20381
|
+
bm = b((a2, e) => {
|
20382
|
+
let t = Xs(e)(a2);
|
20383
|
+
return ea(t == null ? void 0 : t.id)(a2);
|
20421
20384
|
});
|
20422
|
-
|
20423
|
-
let t =
|
20385
|
+
Am = b((a2, e) => {
|
20386
|
+
let t = Hr(a2, e);
|
20424
20387
|
if (t) {
|
20425
20388
|
if (t.type !== "video") {
|
20426
20389
|
k.w("Please pass video track here");
|
@@ -20429,49 +20392,49 @@ var init_dist = __esm({
|
|
20429
20392
|
return t.layer;
|
20430
20393
|
}
|
20431
20394
|
});
|
20432
|
-
|
20395
|
+
ta = createSelector([at, ue, Rr], (a2, e, t) => {
|
20433
20396
|
if (t)
|
20434
20397
|
return a2.filter((i) => {
|
20435
20398
|
var r;
|
20436
20399
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
20437
20400
|
});
|
20438
20401
|
});
|
20439
|
-
|
20402
|
+
ia = createSelector([at, Js], (a2, e) => {
|
20440
20403
|
if (e)
|
20441
20404
|
return a2.filter((t) => {
|
20442
20405
|
var i, r;
|
20443
20406
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
20444
20407
|
});
|
20445
20408
|
});
|
20446
|
-
|
20409
|
+
Po = createSelector(at, (a2) => a2.filter((e) => {
|
20447
20410
|
var t;
|
20448
20411
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
20449
20412
|
}));
|
20450
|
-
|
20451
|
-
|
20452
|
-
|
20453
|
-
|
20454
|
-
|
20455
|
-
|
20456
|
-
|
20457
|
-
|
20458
|
-
|
20413
|
+
Eo = createSelector([ia, Js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20414
|
+
bo = createSelector([ta, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20415
|
+
Im = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
|
20416
|
+
Rm = b(ta);
|
20417
|
+
Hm = b(ia);
|
20418
|
+
Cm = b(Eo);
|
20419
|
+
Lm = b(bo);
|
20420
|
+
ra = b(vo);
|
20421
|
+
Gm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
|
20459
20422
|
var r;
|
20460
20423
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
20461
20424
|
}));
|
20462
|
-
|
20463
|
-
|
20464
|
-
|
20465
|
-
|
20466
|
-
|
20425
|
+
Ao = (a2) => a2.roleChangeRequests[0] || null;
|
20426
|
+
$m = createSelector([Ao, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
20427
|
+
Wm = createSelector([Kt], (a2) => st(a2));
|
20428
|
+
Km = createSelector([es], (a2) => st(a2));
|
20429
|
+
Ro = createSelector([K, D], (a2, e) => {
|
20467
20430
|
let t = null;
|
20468
20431
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20469
20432
|
});
|
20470
|
-
|
20433
|
+
Ho = createSelector([Z, D], (a2, e) => {
|
20471
20434
|
let t = null;
|
20472
20435
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20473
20436
|
});
|
20474
|
-
|
20437
|
+
_r = class {
|
20475
20438
|
constructor() {
|
20476
20439
|
this.TAG = "[HTTPAnalyticsTransport]";
|
20477
20440
|
this.failedEvents = new ce("client-events");
|
@@ -20490,7 +20453,7 @@ var init_dist = __esm({
|
|
20490
20453
|
this.addEventToStorage(e);
|
20491
20454
|
return;
|
20492
20455
|
}
|
20493
|
-
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" ?
|
20456
|
+
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;
|
20494
20457
|
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) => {
|
20495
20458
|
if (r.status === 401) {
|
20496
20459
|
this.removeFromStorage(e);
|
@@ -20516,66 +20479,66 @@ var init_dist = __esm({
|
|
20516
20479
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
20517
20480
|
}
|
20518
20481
|
};
|
20519
|
-
Te = new
|
20482
|
+
Te = new _r();
|
20520
20483
|
$ = ((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))($ || {});
|
20521
20484
|
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 || {});
|
20522
20485
|
Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
|
20523
|
-
|
20524
|
-
|
20525
|
-
|
20526
|
-
|
20527
|
-
|
20528
|
-
|
20529
|
-
|
20530
|
-
|
20531
|
-
ve = createSelector([
|
20532
|
-
|
20486
|
+
Qo = (a2) => a2.localPeer.id;
|
20487
|
+
zo = (a2) => a2.localPeer.audioTrack;
|
20488
|
+
Yo = (a2) => a2.localPeer.videoTrack;
|
20489
|
+
Xo = (a2, e) => e;
|
20490
|
+
Ma = (a2, e) => e;
|
20491
|
+
Zo = (a2) => a2.remoteTrackStats;
|
20492
|
+
ya = (a2) => a2.peerStats;
|
20493
|
+
Br = (a2) => a2.localTrackStats;
|
20494
|
+
ve = createSelector([ya, Qo], (a2, e) => a2[e]);
|
20495
|
+
en = createSelector(ve, (a2) => {
|
20533
20496
|
var e;
|
20534
20497
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
20535
20498
|
});
|
20536
|
-
|
20499
|
+
tn = createSelector(ve, (a2) => {
|
20537
20500
|
var e;
|
20538
20501
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
20539
20502
|
});
|
20540
|
-
|
20503
|
+
rn = createSelector(ve, (a2) => {
|
20541
20504
|
var e;
|
20542
20505
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
20543
20506
|
});
|
20544
|
-
|
20507
|
+
sn = createSelector(ve, (a2) => {
|
20545
20508
|
var e;
|
20546
20509
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
20547
20510
|
});
|
20548
|
-
|
20511
|
+
an = createSelector(ve, (a2) => {
|
20549
20512
|
var e;
|
20550
20513
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
20551
20514
|
});
|
20552
|
-
|
20515
|
+
on = createSelector(ve, (a2) => {
|
20553
20516
|
var e;
|
20554
20517
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
20555
20518
|
});
|
20556
|
-
|
20519
|
+
nn = createSelector(ve, (a2) => {
|
20557
20520
|
var e;
|
20558
20521
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
20559
20522
|
});
|
20560
|
-
|
20523
|
+
cn = createSelector(ve, (a2) => {
|
20561
20524
|
var e;
|
20562
20525
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
20563
20526
|
});
|
20564
|
-
|
20565
|
-
|
20566
|
-
|
20567
|
-
|
20568
|
-
|
20569
|
-
|
20527
|
+
dn = createSelector([ya, Xo], (a2, e) => e ? a2[e] : void 0);
|
20528
|
+
ln = createSelector([Zo, Ma], (a2, e) => e ? a2[e] : void 0);
|
20529
|
+
Vr = createSelector([Br, Ma], (a2, e) => e ? a2[e] : void 0);
|
20530
|
+
un = b(dn);
|
20531
|
+
pn = b(ln);
|
20532
|
+
hn = createSelector([Br, zo], (a2, e) => {
|
20570
20533
|
var t;
|
20571
20534
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20572
20535
|
});
|
20573
|
-
|
20574
|
-
|
20536
|
+
mn = b(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
|
20537
|
+
Sn = createSelector([Br, Yo], (a2, e) => {
|
20575
20538
|
var t;
|
20576
20539
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20577
20540
|
});
|
20578
|
-
|
20541
|
+
gn = b(createSelector(Vr, (a2) => a2));
|
20579
20542
|
}
|
20580
20543
|
});
|
20581
20544
|
|
@@ -20854,7 +20817,7 @@ var init_StreamActions = __esm({
|
|
20854
20817
|
};
|
20855
20818
|
RecordingPauseStatus = () => {
|
20856
20819
|
const recording = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectRecordingState);
|
20857
|
-
if (recording.hls && recording.hls.state ===
|
20820
|
+
if (recording.hls && recording.hls.state === Cs.PAUSED) {
|
20858
20821
|
return /* @__PURE__ */ import_react72.default.createElement(
|
20859
20822
|
Tooltip,
|
20860
20823
|
{
|
@@ -23650,10 +23613,10 @@ var init_PollsQuizMenu = __esm({
|
|
23650
23613
|
const sortedPolls = (0, import_react102.useMemo)(
|
23651
23614
|
() => {
|
23652
23615
|
var _a8;
|
23653
|
-
return (_a8 = polls == null ? void 0 : polls.sort((a2,
|
23616
|
+
return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
|
23654
23617
|
var _a9, _b7;
|
23655
|
-
return (((_a9 =
|
23656
|
-
})) == null ? void 0 : _a8.sort((a2,
|
23618
|
+
return (((_a9 = b2.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
|
23619
|
+
})) == null ? void 0 : _a8.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
|
23657
23620
|
},
|
23658
23621
|
[polls]
|
23659
23622
|
);
|
@@ -25335,7 +25298,7 @@ var init_usePinnedMessages = __esm({
|
|
25335
25298
|
if (pinnedMessages[indexToRemove]) {
|
25336
25299
|
yield hmsActions.sessionStore.set(
|
25337
25300
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
25338
|
-
pinnedMessages.filter((
|
25301
|
+
pinnedMessages.filter((_, index) => index !== indexToRemove)
|
25339
25302
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
25340
25303
|
}
|
25341
25304
|
}),
|
@@ -26832,7 +26795,7 @@ var init_StickIndicator = __esm({
|
|
26832
26795
|
if (total < 2) {
|
26833
26796
|
return null;
|
26834
26797
|
}
|
26835
|
-
return /* @__PURE__ */ import_react142.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
26798
|
+
return /* @__PURE__ */ import_react142.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ import_react142.default.createElement(
|
26836
26799
|
Box,
|
26837
26800
|
{
|
26838
26801
|
css: {
|
@@ -27010,7 +26973,7 @@ var init_Chat = __esm({
|
|
27010
26973
|
const listRef = (0, import_react144.useRef)(null);
|
27011
26974
|
const hmsActions = (0, import_react_sdk70.useHMSActions)();
|
27012
26975
|
const vanillaStore = (0, import_react_sdk70.useHMSVanillaStore)();
|
27013
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk70.useHMSStore)(
|
26976
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk70.useHMSStore)(sm("chatState" /* CHAT_STATE */)) || {};
|
27014
26977
|
const isMobile = (0, import_react_use22.useMedia)(config.media.md);
|
27015
26978
|
const isMobileHLSStream = useMobileHLSStream();
|
27016
26979
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27094,7 +27057,7 @@ var init_Chat = __esm({
|
|
27094
27057
|
scrollToBottom,
|
27095
27058
|
listRef
|
27096
27059
|
}) => {
|
27097
|
-
const unreadCount = (0, import_react_sdk70.useHMSStore)(
|
27060
|
+
const unreadCount = (0, import_react_sdk70.useHMSStore)(Kn);
|
27098
27061
|
if (!unreadCount || !listRef.current) {
|
27099
27062
|
return null;
|
27100
27063
|
}
|
@@ -28284,10 +28247,10 @@ var init_VBPicker = __esm({
|
|
28284
28247
|
const [blurAmount, setBlurAmount] = (0, import_react154.useState)(VBHandler.getBlurAmount() || 0.5);
|
28285
28248
|
const roomState = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectRoomState);
|
28286
28249
|
const isLargeRoom = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectIsLargeRoom);
|
28287
|
-
const isEffectsEnabled = (0, import_react_sdk78.useHMSStore)(
|
28288
|
-
const effectsKey = (0, import_react_sdk78.useHMSStore)(
|
28250
|
+
const isEffectsEnabled = (0, import_react_sdk78.useHMSStore)(ic);
|
28251
|
+
const effectsKey = (0, import_react_sdk78.useHMSStore)(rc);
|
28289
28252
|
const isPluginAdded = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
28290
|
-
const background = (0, import_react_sdk78.useHMSStore)(
|
28253
|
+
const background = (0, import_react_sdk78.useHMSStore)(rm(APP_DATA.background));
|
28291
28254
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
28292
28255
|
const inPreview = roomState === import_react_sdk78.HMSRoomState.Preview;
|
28293
28256
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -28823,7 +28786,7 @@ var init_PreviewJoin = __esm({
|
|
28823
28786
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
28824
28787
|
},
|
28825
28788
|
captureNetworkQualityInPreview: true,
|
28826
|
-
handleError: (
|
28789
|
+
handleError: (_, method) => {
|
28827
28790
|
if (method === "preview") {
|
28828
28791
|
setPreviewError(true);
|
28829
28792
|
}
|
@@ -29255,7 +29218,7 @@ var init_Pagination2 = __esm({
|
|
29255
29218
|
if (numPages <= 1) {
|
29256
29219
|
return null;
|
29257
29220
|
}
|
29258
|
-
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((
|
29221
|
+
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((_, i) => /* @__PURE__ */ import_react164.default.createElement(
|
29259
29222
|
StyledPagination.Dot,
|
29260
29223
|
{
|
29261
29224
|
key: i,
|
@@ -29374,7 +29337,7 @@ var init_useTileLayout = __esm({
|
|
29374
29337
|
}
|
29375
29338
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
29376
29339
|
let index = 0;
|
29377
|
-
const matrix = new Array(maxRows).fill(null).map((
|
29340
|
+
const matrix = new Array(maxRows).fill(null).map((_, i) => {
|
29378
29341
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
29379
29342
|
const rowElements = [];
|
29380
29343
|
for (let j = 0; j < numCols; j++) {
|
@@ -29395,10 +29358,10 @@ var init_useTileLayout = __esm({
|
|
29395
29358
|
tileHeight = maxRowHeight;
|
29396
29359
|
} else {
|
29397
29360
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
29398
|
-
for (const
|
29399
|
-
if (
|
29400
|
-
if (tileHeight <
|
29401
|
-
tileHeight =
|
29361
|
+
for (const h of calcHeights) {
|
29362
|
+
if (h < maxRowHeight) {
|
29363
|
+
if (tileHeight < h) {
|
29364
|
+
tileHeight = h;
|
29402
29365
|
}
|
29403
29366
|
}
|
29404
29367
|
}
|
@@ -30222,7 +30185,7 @@ var init_PeersSorter = __esm({
|
|
30222
30185
|
this.speaker = void 0;
|
30223
30186
|
this.tilesPerPage = tilesPerPage;
|
30224
30187
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
30225
|
-
this.peers.forEach((
|
30188
|
+
this.peers.forEach((_, key) => {
|
30226
30189
|
if (!peerIds.has(key)) {
|
30227
30190
|
this.peers.delete(key);
|
30228
30191
|
}
|
@@ -31073,8 +31036,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
31073
31036
|
});
|
31074
31037
|
|
31075
31038
|
// src/Prebuilt/components/HMSVideo/utils.ts
|
31076
|
-
function getPercentage(a2,
|
31077
|
-
return a2 /
|
31039
|
+
function getPercentage(a2, b2) {
|
31040
|
+
return a2 / b2 * 100;
|
31078
31041
|
}
|
31079
31042
|
function getDurationFromSeconds2(timeInSeconds) {
|
31080
31043
|
let time = Math.floor(timeInSeconds);
|
@@ -33507,7 +33470,7 @@ var init_ToastConfig = __esm({
|
|
33507
33470
|
init_roomLayoutProvider();
|
33508
33471
|
init_useSidepane();
|
33509
33472
|
init_constants();
|
33510
|
-
ChatAction = import_react213.default.forwardRef((
|
33473
|
+
ChatAction = import_react213.default.forwardRef((_, ref) => {
|
33511
33474
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33512
33475
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
33513
33476
|
if (isChatOpen) {
|
@@ -34201,7 +34164,7 @@ function Notifications() {
|
|
34201
34164
|
}, []);
|
34202
34165
|
(0, import_react_sdk117.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
34203
34166
|
(0, import_react222.useEffect)(() => {
|
34204
|
-
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
34167
|
+
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
|
34205
34168
|
if (!notification || isNotificationDisabled) {
|
34206
34169
|
return;
|
34207
34170
|
}
|
@@ -34242,7 +34205,7 @@ function Notifications() {
|
|
34242
34205
|
});
|
34243
34206
|
break;
|
34244
34207
|
case import_react_sdk117.HMSNotificationTypes.ROLE_UPDATED: {
|
34245
|
-
if (((
|
34208
|
+
if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
34246
34209
|
ToastManager.addToast({
|
34247
34210
|
title: `You are now a ${notification.data.roleName}`
|
34248
34211
|
});
|