@100mslive/roomkit-react 0.3.3-alpha.2 → 0.3.3-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +0 -1
- package/dist/Accordion/index.d.ts +0 -1
- package/dist/{HLSView-GI5NXBYN.js → HLSView-VUANLYLS.js} +2 -2
- package/dist/Prebuilt/components/RaiseHand.d.ts +1 -1
- package/dist/{chunk-KUFQ5ONV.js → chunk-5WTUTVRO.js} +381 -414
- package/dist/chunk-5WTUTVRO.js.map +7 -0
- package/dist/index.cjs.js +813 -849
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +63 -58
- package/dist/meta.esbuild.json +68 -63
- package/package.json +7 -7
- package/src/Accordion/Accordion.tsx +4 -4
- package/src/Prebuilt/components/Chat/ChatBody.tsx +0 -10
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +4 -2
- package/src/Prebuilt/components/ConferenceScreen.tsx +4 -1
- package/src/Prebuilt/components/Footer/Footer.tsx +4 -1
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +1 -4
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +6 -6
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +1 -0
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -1
- package/src/Prebuilt/components/PreviousRoleInMetadata.tsx +1 -0
- package/src/Prebuilt/components/RaiseHand.tsx +1 -7
- package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +1 -0
- package/src/Prebuilt/components/hooks/{useMetadata.tsx → useMetadata.jsx} +8 -2
- package/dist/Prebuilt/components/hooks/useMetadata.d.ts +0 -8
- package/dist/chunk-KUFQ5ONV.js.map +0 -7
- /package/dist/{HLSView-GI5NXBYN.js.map → HLSView-VUANLYLS.js.map} +0 -0
@@ -9,18 +9,18 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
9
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
10
10
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
11
11
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
12
|
-
var __spreadValues = (a2,
|
13
|
-
for (var prop in
|
14
|
-
if (__hasOwnProp.call(
|
15
|
-
__defNormalProp(a2, prop,
|
12
|
+
var __spreadValues = (a2, b2) => {
|
13
|
+
for (var prop in b2 || (b2 = {}))
|
14
|
+
if (__hasOwnProp.call(b2, prop))
|
15
|
+
__defNormalProp(a2, prop, b2[prop]);
|
16
16
|
if (__getOwnPropSymbols)
|
17
|
-
for (var prop of __getOwnPropSymbols(
|
18
|
-
if (__propIsEnum.call(
|
19
|
-
__defNormalProp(a2, prop,
|
17
|
+
for (var prop of __getOwnPropSymbols(b2)) {
|
18
|
+
if (__propIsEnum.call(b2, prop))
|
19
|
+
__defNormalProp(a2, prop, b2[prop]);
|
20
20
|
}
|
21
21
|
return a2;
|
22
22
|
};
|
23
|
-
var __spreadProps = (a2,
|
23
|
+
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
24
24
|
var __objRest = (source, exclude) => {
|
25
25
|
var target = {};
|
26
26
|
for (var prop in source)
|
@@ -43,13 +43,13 @@ var __export = (target, all) => {
|
|
43
43
|
for (var name in all)
|
44
44
|
__defProp(target, name, { get: all[name], enumerable: true });
|
45
45
|
};
|
46
|
-
var __copyProps = (
|
46
|
+
var __copyProps = (to2, from, except, desc) => {
|
47
47
|
if (from && typeof from === "object" || typeof from === "function") {
|
48
48
|
for (let key of __getOwnPropNames(from))
|
49
|
-
if (!__hasOwnProp.call(
|
50
|
-
__defProp(
|
49
|
+
if (!__hasOwnProp.call(to2, key) && key !== except)
|
50
|
+
__defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
51
51
|
}
|
52
|
-
return
|
52
|
+
return to2;
|
53
53
|
};
|
54
54
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
55
55
|
// If the importer is in node compatibility mode or this is not an ESM
|
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", 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.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", 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.2", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240310.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19847", 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.2", 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: "8339008099", 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: "ada10fb3dc34984fd59f37f08629e8bd2a0f6c4c", 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: "c2142c3cc8bf8d6ed2ac27c56ab4a600b5c8eb8e9391d303a398693a6a4a21e8", 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--1710832689540-0.1579875898379377:/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--1710832689347-0.6191761134799965:/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--1710832667592-0.18702594396511474:/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--1710832667416-0.6771953480301691:/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_e14939ec-5f43-488a-8f80-7eb5d6b530d2", INVOCATION_ID: "26b5f425f34b46f2b1ca5d99eb8c8e31", 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: "483", 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 442", 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.2", 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.2", 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: "ada10fb3dc34984fd59f37f08629e8bd2a0f6c4c", 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_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", 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_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", 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_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d" };
|
109
|
+
define_process_env_default = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v18.17.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.4", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.87.0", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", 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_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "b0f3689284995b999c8c5650146ced9afae1bbd19cf3308ede185a4a9b0ede50", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.kq3RNeovXJ/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680723-0.5894944620724656:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680330-0.621429415928052:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858665031-0.12795214732375126:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680723-0.5894944620724656/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.4", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.4", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.3.3-alpha.4", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.4", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-10419d9aa6.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -801,7 +801,7 @@ var require_lodash = __commonJS({
|
|
801
801
|
return string.match(reUnicodeWord) || [];
|
802
802
|
}
|
803
803
|
var runInContext = function runInContext2(context) {
|
804
|
-
context = context == null ? root :
|
804
|
+
context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
|
805
805
|
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;
|
806
806
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
807
807
|
var coreJsData = context["__core-js_shared__"];
|
@@ -4148,7 +4148,7 @@ var require_lodash = __commonJS({
|
|
4148
4148
|
function eq(value, other) {
|
4149
4149
|
return value === other || value !== value && other !== other;
|
4150
4150
|
}
|
4151
|
-
var
|
4151
|
+
var gt2 = createRelationalOperation(baseGt);
|
4152
4152
|
var gte = createRelationalOperation(function(value, other) {
|
4153
4153
|
return value >= other;
|
4154
4154
|
});
|
@@ -5287,7 +5287,7 @@ var require_lodash = __commonJS({
|
|
5287
5287
|
lodash.forOwn = forOwn;
|
5288
5288
|
lodash.forOwnRight = forOwnRight;
|
5289
5289
|
lodash.get = get;
|
5290
|
-
lodash.gt =
|
5290
|
+
lodash.gt = gt2;
|
5291
5291
|
lodash.gte = gte;
|
5292
5292
|
lodash.has = has;
|
5293
5293
|
lodash.hasIn = hasIn;
|
@@ -5575,17 +5575,17 @@ var require_lodash = __commonJS({
|
|
5575
5575
|
}
|
5576
5576
|
return lodash;
|
5577
5577
|
};
|
5578
|
-
var
|
5578
|
+
var _ = runInContext();
|
5579
5579
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
5580
|
-
root._ =
|
5580
|
+
root._ = _;
|
5581
5581
|
define(function() {
|
5582
|
-
return
|
5582
|
+
return _;
|
5583
5583
|
});
|
5584
5584
|
} else if (freeModule) {
|
5585
|
-
(freeModule.exports =
|
5586
|
-
freeExports._ =
|
5585
|
+
(freeModule.exports = _)._ = _;
|
5586
|
+
freeExports._ = _;
|
5587
5587
|
} else {
|
5588
|
-
root._ =
|
5588
|
+
root._ = _;
|
5589
5589
|
}
|
5590
5590
|
}).call(exports);
|
5591
5591
|
}
|
@@ -7670,12 +7670,12 @@ var require_sdp = __commonJS({
|
|
7670
7670
|
return parsed;
|
7671
7671
|
};
|
7672
7672
|
SDPUtils2.writeRtpMap = function(codec) {
|
7673
|
-
let
|
7673
|
+
let pt2 = codec.payloadType;
|
7674
7674
|
if (codec.preferredPayloadType !== void 0) {
|
7675
|
-
|
7675
|
+
pt2 = codec.preferredPayloadType;
|
7676
7676
|
}
|
7677
7677
|
const channels = codec.channels || codec.numChannels || 1;
|
7678
|
-
return "a=rtpmap:" +
|
7678
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
7679
7679
|
};
|
7680
7680
|
SDPUtils2.parseExtmap = function(line) {
|
7681
7681
|
const parts = line.substring(9).split(" ");
|
@@ -7701,9 +7701,9 @@ var require_sdp = __commonJS({
|
|
7701
7701
|
};
|
7702
7702
|
SDPUtils2.writeFmtp = function(codec) {
|
7703
7703
|
let line = "";
|
7704
|
-
let
|
7704
|
+
let pt2 = codec.payloadType;
|
7705
7705
|
if (codec.preferredPayloadType !== void 0) {
|
7706
|
-
|
7706
|
+
pt2 = codec.preferredPayloadType;
|
7707
7707
|
}
|
7708
7708
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
7709
7709
|
const params = [];
|
@@ -7714,7 +7714,7 @@ var require_sdp = __commonJS({
|
|
7714
7714
|
params.push(param);
|
7715
7715
|
}
|
7716
7716
|
});
|
7717
|
-
line += "a=fmtp:" +
|
7717
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
7718
7718
|
}
|
7719
7719
|
return line;
|
7720
7720
|
};
|
@@ -7727,13 +7727,13 @@ var require_sdp = __commonJS({
|
|
7727
7727
|
};
|
7728
7728
|
SDPUtils2.writeRtcpFb = function(codec) {
|
7729
7729
|
let lines = "";
|
7730
|
-
let
|
7730
|
+
let pt2 = codec.payloadType;
|
7731
7731
|
if (codec.preferredPayloadType !== void 0) {
|
7732
|
-
|
7732
|
+
pt2 = codec.preferredPayloadType;
|
7733
7733
|
}
|
7734
7734
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
7735
7735
|
codec.rtcpFeedback.forEach((fb) => {
|
7736
|
-
lines += "a=rtcp-fb:" +
|
7736
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
7737
7737
|
});
|
7738
7738
|
}
|
7739
7739
|
return lines;
|
@@ -7861,21 +7861,21 @@ var require_sdp = __commonJS({
|
|
7861
7861
|
const mline = lines[0].split(" ");
|
7862
7862
|
description.profile = mline[2];
|
7863
7863
|
for (let i = 3; i < mline.length; i++) {
|
7864
|
-
const
|
7864
|
+
const pt2 = mline[i];
|
7865
7865
|
const rtpmapline = SDPUtils2.matchPrefix(
|
7866
7866
|
mediaSection,
|
7867
|
-
"a=rtpmap:" +
|
7867
|
+
"a=rtpmap:" + pt2 + " "
|
7868
7868
|
)[0];
|
7869
7869
|
if (rtpmapline) {
|
7870
7870
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
7871
7871
|
const fmtps = SDPUtils2.matchPrefix(
|
7872
7872
|
mediaSection,
|
7873
|
-
"a=fmtp:" +
|
7873
|
+
"a=fmtp:" + pt2 + " "
|
7874
7874
|
);
|
7875
7875
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
7876
7876
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
7877
7877
|
mediaSection,
|
7878
|
-
"a=rtcp-fb:" +
|
7878
|
+
"a=rtcp-fb:" + pt2 + " "
|
7879
7879
|
).map(SDPUtils2.parseRtcpFb);
|
7880
7880
|
description.codecs.push(codec);
|
7881
7881
|
switch (codec.name.toUpperCase()) {
|
@@ -11056,7 +11056,7 @@ import { selectTrackAudioByID, useHMSVanillaStore } from "@100mslive/react-sdk";
|
|
11056
11056
|
var audio_level_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABABAMAAAAHc7SNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAtUExURQAAAP///////////////////////////////////////////////////////6FIq5sAAAAOdFJOUwA/QJqbnJ2euLnc3d7+2IFKrQAAAa9JREFUaN7dmcFRxDAMRXNgW4AbV24ZSkgrlAAFUAqlpITtgT0QnB22BnY3iWXHSlYz5H/NoJNO8bP8JTlyVW1k923/MveYdnc623PuUe3jsux37tEDcN24eFR7HJb9TD2qvQ/LfqUexR7a41Xx7bDsMfWo2j+NlnpU7TsBiOKdAOqoeCcAUTwFYFK8pn0GgFLttWVxAEq1pwJo1Z4KoFV7KoBW7YEAT0uK729pfxuAZcX/3Fr2TwAx05cVDwWIu11RPBQg7lZ0XlR7JIDsdkXxCIDp5GXf2v0GBxBP3pTfAIB48qb83h7AWtlhANbKDgOwVnYYgLWywwCsn/u/AO5HMIqwcwOovdNwLESNG8BQioNfKa52YwBsakC04/MF9C1Rw4HdjhU1SCyKqOCvZCGLhXgMgKgGiUWRI9hr+aSG+bU8sP4LyliIxwW4xOI1j8pKZlB/Tjt794ANpKzdAzOgaOzdAzKiCVpmkACWM4MEIFVCyQzfQWXnPao9eA+rG+dxfXB8L1jNB4pN+bCfd4re59Gqoz9alflQ+zzb7ZROwTWlUziEIO8UZCs7hc1+AbiVW6XSE8knAAAAAElFTkSuQmCC";
|
11057
11057
|
|
11058
11058
|
// src/AudioLevel/AudioLevel.tsx
|
11059
|
-
var positionValues = new Array(101).fill(0).reduce((acc,
|
11059
|
+
var positionValues = new Array(101).fill(0).reduce((acc, _, index) => {
|
11060
11060
|
acc[index] = Math.round(index / 100 * 4) / 4;
|
11061
11061
|
return acc;
|
11062
11062
|
}, {});
|
@@ -11617,8 +11617,8 @@ var StyledChevron = styled(ChevronUpIcon, {
|
|
11617
11617
|
var AccordionRoot = StyledAccordion;
|
11618
11618
|
var AccordionItem = StyledItem;
|
11619
11619
|
var AccordionHeader = React17.forwardRef((_a8, forwardedRef) => {
|
11620
|
-
var _b7 = _a8, { children, iconStyles, css: css2
|
11621
|
-
return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "
|
11620
|
+
var _b7 = _a8, { children, iconStyles, css: css2 } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css"]);
|
11621
|
+
return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "aria-hidden": true, css: iconStyles })));
|
11622
11622
|
});
|
11623
11623
|
var AccordionContent = React17.forwardRef(
|
11624
11624
|
(_a8, forwardedRef) => {
|
@@ -12423,12 +12423,12 @@ var formatTime = (timeInSeconds) => {
|
|
12423
12423
|
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
12424
12424
|
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
12425
12425
|
};
|
12426
|
-
var compareArrays = (a2,
|
12427
|
-
if (a2.length !==
|
12426
|
+
var compareArrays = (a2, b2) => {
|
12427
|
+
if (a2.length !== b2.length)
|
12428
12428
|
return false;
|
12429
12429
|
else {
|
12430
12430
|
for (var i = 0; i < a2.length; i++) {
|
12431
|
-
if (a2[i] !==
|
12431
|
+
if (a2[i] !== b2[i]) {
|
12432
12432
|
return false;
|
12433
12433
|
}
|
12434
12434
|
}
|
@@ -12897,6 +12897,7 @@ import {
|
|
12897
12897
|
selectAppData as selectAppData9,
|
12898
12898
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
12899
12899
|
selectRoomState as selectRoomState7,
|
12900
|
+
useAVToggle as useAVToggle7,
|
12900
12901
|
useHMSActions as useHMSActions47,
|
12901
12902
|
useHMSStore as useHMSStore84
|
12902
12903
|
} from "@100mslive/react-sdk";
|
@@ -12906,6 +12907,7 @@ init_define_process_env();
|
|
12906
12907
|
import React77, { useEffect as useEffect20 } from "react";
|
12907
12908
|
import { useMedia as useMedia11 } from "react-use";
|
12908
12909
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
12910
|
+
import { useAVToggle as useAVToggle4 } from "@100mslive/react-sdk";
|
12909
12911
|
|
12910
12912
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
12911
12913
|
init_define_process_env();
|
@@ -16077,7 +16079,7 @@ var MuteAllModal = ({
|
|
16077
16079
|
return /* @__PURE__ */ React51.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React51.createElement(DialogContent, { title: "Mute/Unmute Remote Tracks", Icon: MicOffIcon2 }, /* @__PURE__ */ React51.createElement(MuteAllContent, __spreadValues({}, props))));
|
16078
16080
|
};
|
16079
16081
|
|
16080
|
-
// src/Prebuilt/components/hooks/useMetadata.
|
16082
|
+
// src/Prebuilt/components/hooks/useMetadata.jsx
|
16081
16083
|
init_define_process_env();
|
16082
16084
|
import { useCallback as useCallback14 } from "react";
|
16083
16085
|
import {
|
@@ -16102,7 +16104,6 @@ var useMyMetadata = () => {
|
|
16102
16104
|
} catch (error) {
|
16103
16105
|
console.error("failed to update metadata ", updatedFields);
|
16104
16106
|
}
|
16105
|
-
return false;
|
16106
16107
|
});
|
16107
16108
|
const toggleHandRaise = useCallback14(() => __async(void 0, null, function* () {
|
16108
16109
|
if (isHandRaised) {
|
@@ -16119,13 +16120,19 @@ var useMyMetadata = () => {
|
|
16119
16120
|
yield hmsActions.lowerLocalPeerHand();
|
16120
16121
|
}
|
16121
16122
|
}), [metaData == null ? void 0 : metaData.isBRBOn]);
|
16123
|
+
const setPrevRole = (role) => __async(void 0, null, function* () {
|
16124
|
+
yield update({
|
16125
|
+
prevRole: role
|
16126
|
+
});
|
16127
|
+
});
|
16122
16128
|
return {
|
16123
16129
|
isHandRaised,
|
16124
16130
|
isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
|
16125
16131
|
metaData,
|
16126
16132
|
updateMetaData: update,
|
16127
16133
|
toggleHandRaise,
|
16128
|
-
toggleBRB
|
16134
|
+
toggleBRB,
|
16135
|
+
setPrevRole
|
16129
16136
|
};
|
16130
16137
|
};
|
16131
16138
|
|
@@ -16250,6 +16257,7 @@ import {
|
|
16250
16257
|
selectIsConnectedToRoom as selectIsConnectedToRoom7,
|
16251
16258
|
selectPeerCount as selectPeerCount3,
|
16252
16259
|
selectPermissions as selectPermissions8,
|
16260
|
+
useAVToggle as useAVToggle3,
|
16253
16261
|
useHMSActions as useHMSActions21,
|
16254
16262
|
useHMSStore as useHMSStore29,
|
16255
16263
|
useRecordingStreaming as useRecordingStreaming7
|
@@ -16279,8 +16287,8 @@ init_define_process_env();
|
|
16279
16287
|
|
16280
16288
|
// ../../node_modules/reselect/es/index.js
|
16281
16289
|
init_define_process_env();
|
16282
|
-
function defaultEqualityCheck(a2,
|
16283
|
-
return a2 ===
|
16290
|
+
function defaultEqualityCheck(a2, b2) {
|
16291
|
+
return a2 === b2;
|
16284
16292
|
}
|
16285
16293
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
16286
16294
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -16357,8 +16365,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
16357
16365
|
// ../hms-video-store/dist/index.js
|
16358
16366
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
16359
16367
|
var import_lodash3 = __toESM(require_lodash2());
|
16360
|
-
import { v4 as
|
16361
|
-
import { v4 as
|
16368
|
+
import { v4 as Ka } from "uuid";
|
16369
|
+
import { v4 as $a } from "uuid";
|
16362
16370
|
|
16363
16371
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
16364
16372
|
init_define_process_env();
|
@@ -16596,7 +16604,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16596
16604
|
if (typeof c !== "object" || c.mandatory || c.optional) {
|
16597
16605
|
return c;
|
16598
16606
|
}
|
16599
|
-
const
|
16607
|
+
const cc = {};
|
16600
16608
|
Object.keys(c).forEach((key) => {
|
16601
16609
|
if (key === "require" || key === "advanced" || key === "mediaSource") {
|
16602
16610
|
return;
|
@@ -16612,35 +16620,35 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16612
16620
|
return name === "deviceId" ? "sourceId" : name;
|
16613
16621
|
};
|
16614
16622
|
if (r.ideal !== void 0) {
|
16615
|
-
|
16616
|
-
let
|
16623
|
+
cc.optional = cc.optional || [];
|
16624
|
+
let oc2 = {};
|
16617
16625
|
if (typeof r.ideal === "number") {
|
16618
|
-
|
16619
|
-
|
16620
|
-
|
16621
|
-
|
16622
|
-
|
16626
|
+
oc2[oldname_("min", key)] = r.ideal;
|
16627
|
+
cc.optional.push(oc2);
|
16628
|
+
oc2 = {};
|
16629
|
+
oc2[oldname_("max", key)] = r.ideal;
|
16630
|
+
cc.optional.push(oc2);
|
16623
16631
|
} else {
|
16624
|
-
|
16625
|
-
|
16632
|
+
oc2[oldname_("", key)] = r.ideal;
|
16633
|
+
cc.optional.push(oc2);
|
16626
16634
|
}
|
16627
16635
|
}
|
16628
16636
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
16629
|
-
|
16630
|
-
|
16637
|
+
cc.mandatory = cc.mandatory || {};
|
16638
|
+
cc.mandatory[oldname_("", key)] = r.exact;
|
16631
16639
|
} else {
|
16632
16640
|
["min", "max"].forEach((mix) => {
|
16633
16641
|
if (r[mix] !== void 0) {
|
16634
|
-
|
16635
|
-
|
16642
|
+
cc.mandatory = cc.mandatory || {};
|
16643
|
+
cc.mandatory[oldname_(mix, key)] = r[mix];
|
16636
16644
|
}
|
16637
16645
|
});
|
16638
16646
|
}
|
16639
16647
|
});
|
16640
16648
|
if (c.advanced) {
|
16641
|
-
|
16649
|
+
cc.optional = (cc.optional || []).concat(c.advanced);
|
16642
16650
|
}
|
16643
|
-
return
|
16651
|
+
return cc;
|
16644
16652
|
};
|
16645
16653
|
const shimConstraints_ = function(constraints, func) {
|
16646
16654
|
if (browserDetails.version >= 61) {
|
@@ -16648,9 +16656,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16648
16656
|
}
|
16649
16657
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16650
16658
|
if (constraints && typeof constraints.audio === "object") {
|
16651
|
-
const remap = function(obj, a2,
|
16652
|
-
if (a2 in obj && !(
|
16653
|
-
obj[
|
16659
|
+
const remap = function(obj, a2, b2) {
|
16660
|
+
if (a2 in obj && !(b2 in obj)) {
|
16661
|
+
obj[b2] = obj[a2];
|
16654
16662
|
delete obj[a2];
|
16655
16663
|
}
|
16656
16664
|
};
|
@@ -17392,9 +17400,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
17392
17400
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
17393
17401
|
};
|
17394
17402
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
17395
|
-
const remap = function(obj, a2,
|
17396
|
-
if (a2 in obj && !(
|
17397
|
-
obj[
|
17403
|
+
const remap = function(obj, a2, b2) {
|
17404
|
+
if (a2 in obj && !(b2 in obj)) {
|
17405
|
+
obj[b2] = obj[a2];
|
17398
17406
|
delete obj[a2];
|
17399
17407
|
}
|
17400
17408
|
};
|
@@ -18455,114 +18463,114 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
18455
18463
|
|
18456
18464
|
// ../hms-video-store/dist/index.js
|
18457
18465
|
var import_lodash4 = __toESM(require_lodash2());
|
18458
|
-
import { v4 as
|
18459
|
-
import { v4 as
|
18460
|
-
import { v4 as
|
18461
|
-
import { EventEmitter2 as
|
18466
|
+
import { v4 as to } from "uuid";
|
18467
|
+
import { v4 as ao } from "uuid";
|
18468
|
+
import { v4 as lo } from "uuid";
|
18469
|
+
import { EventEmitter2 as uo } from "eventemitter2";
|
18462
18470
|
var Dt = __toESM(require_lib());
|
18463
|
-
import { EventEmitter2 as
|
18464
|
-
import { v4 as
|
18465
|
-
import { EventEmitter2 as
|
18466
|
-
import
|
18467
|
-
import { v4 as
|
18468
|
-
import { v4 as
|
18469
|
-
var
|
18470
|
-
var
|
18471
|
-
var
|
18471
|
+
import { EventEmitter2 as Ho } from "eventemitter2";
|
18472
|
+
import { v4 as Do } from "uuid";
|
18473
|
+
import { EventEmitter2 as wo } from "eventemitter2";
|
18474
|
+
import _o from "eventemitter2";
|
18475
|
+
import { v4 as No } from "uuid";
|
18476
|
+
import { v4 as Uo } from "uuid";
|
18477
|
+
var ya = Object.defineProperty;
|
18478
|
+
var ka = Object.defineProperties;
|
18479
|
+
var Pa = Object.getOwnPropertyDescriptors;
|
18472
18480
|
var Vt = Object.getOwnPropertySymbols;
|
18473
|
-
var
|
18474
|
-
var
|
18475
|
-
var
|
18476
|
-
var
|
18481
|
+
var $r = Object.prototype.hasOwnProperty;
|
18482
|
+
var Wr = Object.prototype.propertyIsEnumerable;
|
18483
|
+
var Gr = (a2, e, t) => e in a2 ? ya(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
18484
|
+
var S = (a2, e) => {
|
18477
18485
|
for (var t in e || (e = {}))
|
18478
|
-
|
18486
|
+
$r.call(e, t) && Gr(a2, t, e[t]);
|
18479
18487
|
if (Vt)
|
18480
18488
|
for (var t of Vt(e))
|
18481
|
-
|
18489
|
+
Wr.call(e, t) && Gr(a2, t, e[t]);
|
18482
18490
|
return a2;
|
18483
18491
|
};
|
18484
|
-
var v = (a2, e) =>
|
18492
|
+
var v = (a2, e) => ka(a2, Pa(e));
|
18485
18493
|
var Xi = (a2, e) => {
|
18486
18494
|
var t = {};
|
18487
18495
|
for (var i in a2)
|
18488
|
-
|
18496
|
+
$r.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
18489
18497
|
if (a2 != null && Vt)
|
18490
18498
|
for (var i of Vt(a2))
|
18491
|
-
e.indexOf(i) < 0 &&
|
18499
|
+
e.indexOf(i) < 0 && Wr.call(a2, i) && (t[i] = a2[i]);
|
18492
18500
|
return t;
|
18493
18501
|
};
|
18494
|
-
var
|
18495
|
-
var lr =
|
18496
|
-
|
18502
|
+
var Aa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18503
|
+
var lr = Aa((Zc, Wa) => {
|
18504
|
+
Wa.exports = { version: "0.12.3-alpha.4", 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"] };
|
18497
18505
|
});
|
18498
18506
|
var 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 || {});
|
18499
|
-
var
|
18500
|
-
var
|
18507
|
+
var Ia = ((e) => (e.CHAT = "chat", e))(Ia || {});
|
18508
|
+
var Kr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Kr || {});
|
18501
18509
|
var 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 || {});
|
18502
|
-
var
|
18510
|
+
var qr = ((t) => (t.audio = "audio", t.video = "video", t))(qr || {});
|
18503
18511
|
function He(a2, e) {
|
18504
18512
|
let t, i;
|
18505
18513
|
if (e)
|
18506
18514
|
for (let r of e.auxiliaryTracks) {
|
18507
18515
|
let s = a2[r];
|
18508
|
-
|
18516
|
+
Ra(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
|
18509
18517
|
}
|
18510
18518
|
return { video: t, audio: i };
|
18511
18519
|
}
|
18512
|
-
function
|
18520
|
+
function tt(a2) {
|
18513
18521
|
return a2 && a2.type === "audio";
|
18514
18522
|
}
|
18515
|
-
function
|
18523
|
+
function it(a2) {
|
18516
18524
|
return a2 && a2.type === "video";
|
18517
18525
|
}
|
18518
|
-
function
|
18526
|
+
function Ra(a2) {
|
18519
18527
|
return a2 && a2.source === "screen";
|
18520
18528
|
}
|
18521
18529
|
function $t(a2) {
|
18522
18530
|
return a2 && a2.source === "audioplaylist";
|
18523
18531
|
}
|
18524
|
-
function
|
18532
|
+
function rt(a2) {
|
18525
18533
|
return a2 && a2.source === "videoplaylist";
|
18526
18534
|
}
|
18527
|
-
function
|
18535
|
+
function jr(a2) {
|
18528
18536
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
18529
18537
|
}
|
18530
18538
|
function Ue(a2, e) {
|
18531
18539
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
18532
18540
|
}
|
18533
|
-
function
|
18541
|
+
function st(a2) {
|
18534
18542
|
var r;
|
18535
18543
|
let e = false, t = false, i = false;
|
18536
18544
|
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 };
|
18537
18545
|
}
|
18538
18546
|
var B = (a2) => a2.room;
|
18539
|
-
var
|
18540
|
-
var
|
18541
|
-
var
|
18547
|
+
var Ha = (a2) => a2.errors;
|
18548
|
+
var In = createSelector(Ha, (a2) => a2.length === 0 ? null : a2.at(-1));
|
18549
|
+
var Rn = createSelector(B, (a2) => a2.id);
|
18542
18550
|
var G = (a2) => a2.peers;
|
18543
18551
|
var Wt = (a2) => a2.messages.byID;
|
18544
|
-
var
|
18545
|
-
var
|
18552
|
+
var Qr = (a2) => a2.messages.allIDs;
|
18553
|
+
var D = (a2) => a2.tracks;
|
18546
18554
|
var tr = (a2) => a2.appData;
|
18547
|
-
var
|
18555
|
+
var Ca = (a2) => a2.speakers;
|
18548
18556
|
var ye = createSelector([B], (a2) => a2 && a2.isConnected);
|
18549
|
-
var
|
18550
|
-
var
|
18551
|
-
var oe = createSelector([B, G,
|
18552
|
-
var
|
18557
|
+
var Ln = 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));
|
18558
|
+
var La = (a2) => a2.hideLocalPeer;
|
18559
|
+
var oe = createSelector([B, G, La], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
18560
|
+
var Da = createSelector(D, (a2) => Object.values(a2));
|
18553
18561
|
var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
|
18554
18562
|
var ue = createSelector(B, (a2) => a2.localPeer);
|
18555
|
-
var
|
18556
|
-
var
|
18563
|
+
var Dn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
|
18564
|
+
var wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
|
18557
18565
|
var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
18558
18566
|
var K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
18559
|
-
var
|
18560
|
-
var
|
18567
|
+
var wa = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
18568
|
+
var Yr = createSelector([Z, K, wa], (a2, e, t) => {
|
18561
18569
|
let i = t ? [...t] : [];
|
18562
18570
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
18563
18571
|
});
|
18564
|
-
var
|
18565
|
-
var
|
18572
|
+
var _n = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
|
18573
|
+
var Nn = createSelector(G, Ca, (a2, e) => {
|
18566
18574
|
let t = Object.entries(e).sort((i, r) => {
|
18567
18575
|
var n, l;
|
18568
18576
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -18575,11 +18583,11 @@ var On = createSelector(G, La, (a2, e) => {
|
|
18575
18583
|
}
|
18576
18584
|
return null;
|
18577
18585
|
});
|
18578
|
-
var rr = createSelector(z,
|
18586
|
+
var rr = createSelector(z, D, (a2, e) => {
|
18579
18587
|
let { video: t, audio: i } = He(e, a2);
|
18580
18588
|
return !!(t || i);
|
18581
18589
|
});
|
18582
|
-
var
|
18590
|
+
var _a7 = createSelector(G, D, (a2, e) => {
|
18583
18591
|
let t;
|
18584
18592
|
for (let i in a2) {
|
18585
18593
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -18589,15 +18597,15 @@ var Na = createSelector(G, w, (a2, e) => {
|
|
18589
18597
|
}
|
18590
18598
|
return t;
|
18591
18599
|
});
|
18592
|
-
var
|
18593
|
-
var
|
18600
|
+
var xn = createSelector(_a7, (a2) => !!a2);
|
18601
|
+
var Un = createSelector(G, D, (a2, e) => {
|
18594
18602
|
for (let t in a2) {
|
18595
18603
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
18596
18604
|
if (!s && r)
|
18597
18605
|
return i;
|
18598
18606
|
}
|
18599
18607
|
});
|
18600
|
-
var
|
18608
|
+
var Bn = createSelector(G, D, (a2, e) => {
|
18601
18609
|
let t = [], i = [];
|
18602
18610
|
for (let r in a2) {
|
18603
18611
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -18605,80 +18613,80 @@ var Vn = createSelector(G, w, (a2, e) => {
|
|
18605
18613
|
}
|
18606
18614
|
return t.concat(i);
|
18607
18615
|
});
|
18608
|
-
var
|
18616
|
+
var Vn = createSelector(G, D, (a2, e) => {
|
18609
18617
|
for (let t in e) {
|
18610
18618
|
let i = e[t];
|
18611
|
-
if (
|
18619
|
+
if (rt(i) && it(i) && i.peerId)
|
18612
18620
|
return a2[i.peerId];
|
18613
18621
|
}
|
18614
18622
|
});
|
18615
|
-
var
|
18623
|
+
var Fn = createSelector(G, D, (a2, e) => {
|
18616
18624
|
for (let t in e) {
|
18617
18625
|
let i = e[t];
|
18618
18626
|
if ($t(i) && i.peerId)
|
18619
18627
|
return a2[i.peerId];
|
18620
18628
|
}
|
18621
18629
|
});
|
18622
|
-
var
|
18623
|
-
var
|
18624
|
-
var
|
18625
|
-
var
|
18630
|
+
var Gn = createSelector(Da, (a2) => a2.filter(jr));
|
18631
|
+
var $n = createSelector(Qr, (a2) => a2.length);
|
18632
|
+
var Wn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
18633
|
+
var at = createSelector(Qr, Wt, (a2, e) => {
|
18626
18634
|
let t = [];
|
18627
18635
|
return a2.forEach((i) => {
|
18628
18636
|
t.push(e[i]);
|
18629
18637
|
}), t;
|
18630
18638
|
});
|
18631
|
-
var
|
18639
|
+
var Na = createSelector(at, (a2) => a2.filter((e) => {
|
18632
18640
|
var t;
|
18633
18641
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
18634
18642
|
}));
|
18635
|
-
var
|
18643
|
+
var Kn = createSelector(Na, (a2) => a2.filter((e) => !e.read).length);
|
18636
18644
|
var Y = createSelector([B], (a2) => a2 && a2.roomState);
|
18637
|
-
var
|
18638
|
-
var
|
18645
|
+
var Zr = createSelector(Y, (a2) => a2 === "Preview");
|
18646
|
+
var qn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
18639
18647
|
var ne = (a2) => a2.roles;
|
18640
|
-
var
|
18648
|
+
var jn = createSelector([ne], (a2) => Object.keys(a2));
|
18641
18649
|
var Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
18642
|
-
var
|
18650
|
+
var Oa = (a2) => {
|
18643
18651
|
var e;
|
18644
18652
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
18645
18653
|
};
|
18646
|
-
var
|
18647
|
-
var
|
18654
|
+
var es = createSelector([Oa, ne], (a2, e) => a2 ? e[a2] : null);
|
18655
|
+
var Jn = createSelector([Kt], (a2) => {
|
18648
18656
|
var e;
|
18649
18657
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
18650
18658
|
});
|
18651
|
-
var
|
18652
|
-
var
|
18653
|
-
var
|
18654
|
-
var
|
18655
|
-
var
|
18656
|
-
var
|
18657
|
-
var
|
18658
|
-
var
|
18659
|
-
var
|
18660
|
-
var
|
18661
|
-
var
|
18662
|
-
var
|
18663
|
-
var
|
18664
|
-
var
|
18659
|
+
var ts = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
|
18660
|
+
var Qn = createSelector(B, (a2) => a2.recording);
|
18661
|
+
var zn = createSelector(B, (a2) => a2.rtmp);
|
18662
|
+
var Yn = createSelector(B, (a2) => a2.hls);
|
18663
|
+
var Xn = createSelector(B, (a2) => a2.sessionId);
|
18664
|
+
var Zn = createSelector(B, (a2) => a2.startedAt);
|
18665
|
+
var ec = createSelector(B, (a2) => !!a2.isLargeRoom);
|
18666
|
+
var tc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
18667
|
+
var ic = createSelector(B, (a2) => a2.effectsKey);
|
18668
|
+
var is = (a2) => a2.polls;
|
18669
|
+
var oc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
|
18670
|
+
var xa = (a2) => a2.whiteboards;
|
18671
|
+
var nc = createSelector(xa, (a2) => Object.values(a2)[0]);
|
18672
|
+
var ss = (a2 = "audio") => (e) => e.playlist[a2].list;
|
18665
18673
|
var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
18666
|
-
var
|
18667
|
-
var
|
18668
|
-
var
|
18669
|
-
var
|
18670
|
-
var
|
18671
|
-
var
|
18674
|
+
var as = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
18675
|
+
var os = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
18676
|
+
var ns = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
18677
|
+
var cs = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
18678
|
+
var ds = (a2 = "audio") => createSelector(ss(a2), (e) => Object.values(e));
|
18679
|
+
var ls = (a2 = "audio") => createSelector(ss(a2), sr(a2), (e, t) => {
|
18672
18680
|
if (t.id)
|
18673
18681
|
return e[t.id];
|
18674
18682
|
});
|
18675
|
-
var
|
18676
|
-
var
|
18677
|
-
function
|
18683
|
+
var us = { selection: sr("audio"), progress: as("audio"), currentTime: os("audio"), playbackRate: ns("audio"), volume: cs("audio"), list: ds("audio"), selectedItem: ls("audio") };
|
18684
|
+
var ps = { selection: sr("video"), progress: as("video"), currentTime: os("video"), playbackRate: ns("video"), volume: cs("video"), list: ds("video"), selectedItem: ls("video") };
|
18685
|
+
function b(a2) {
|
18678
18686
|
return (e) => (t) => a2(t, e);
|
18679
18687
|
}
|
18680
|
-
var
|
18681
|
-
var
|
18688
|
+
var 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 || {});
|
18689
|
+
var Ua = typeof window != "undefined" && typeof window.expect != "undefined";
|
18682
18690
|
var d = class {
|
18683
18691
|
static v(e, ...t) {
|
18684
18692
|
this.log(0, e, ...t);
|
@@ -18744,24 +18752,24 @@ var d = class {
|
|
18744
18752
|
}
|
18745
18753
|
}
|
18746
18754
|
};
|
18747
|
-
d.level =
|
18755
|
+
d.level = Ua ? 7 : 0;
|
18748
18756
|
var pe = new import_ua_parser_js.UAParser();
|
18749
|
-
var
|
18757
|
+
var w = typeof window != "undefined";
|
18758
|
+
var ms;
|
18759
|
+
var Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
18760
|
+
var Va = () => !Ce;
|
18761
|
+
var Sc = Va();
|
18750
18762
|
var Ss;
|
18751
|
-
var Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
|
18752
|
-
var Fa = () => !Ce;
|
18753
|
-
var gc = Fa();
|
18754
18763
|
var gs;
|
18755
|
-
var
|
18756
|
-
|
18757
|
-
|
18758
|
-
if (_ && window) {
|
18764
|
+
var fs = ((gs = (Ss = pe.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
|
18765
|
+
function Fa() {
|
18766
|
+
if (w && window) {
|
18759
18767
|
let a2 = window.location.hostname;
|
18760
18768
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
18761
18769
|
}
|
18762
18770
|
return "CUSTOM";
|
18763
18771
|
}
|
18764
|
-
var Ve =
|
18772
|
+
var Ve = Fa();
|
18765
18773
|
var 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 } };
|
18766
18774
|
var f = class a extends Error {
|
18767
18775
|
constructor(t, i, r, s, o, n = false) {
|
@@ -18792,8 +18800,8 @@ var f = class a extends Error {
|
|
18792
18800
|
}`;
|
18793
18801
|
}
|
18794
18802
|
};
|
18795
|
-
var
|
18796
|
-
var
|
18803
|
+
var Ga = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
18804
|
+
var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
18797
18805
|
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
18798
18806
|
}, WebSocketConnectionLost(a2, e = "") {
|
18799
18807
|
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
|
@@ -18852,7 +18860,7 @@ var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
18852
18860
|
}, StatsFailed(a2, e = "") {
|
18853
18861
|
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
18854
18862
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
18855
|
-
return new f(a2, "ServerErrors", e, t, t,
|
18863
|
+
return new f(a2, "ServerErrors", e, t, t, Ga.includes(e));
|
18856
18864
|
}, AlreadyJoined(a2, e = "") {
|
18857
18865
|
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
18858
18866
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
@@ -18925,11 +18933,11 @@ var nr = class {
|
|
18925
18933
|
return this.valuesMap.size;
|
18926
18934
|
}
|
18927
18935
|
};
|
18928
|
-
var
|
18936
|
+
var vs = () => {
|
18929
18937
|
try {
|
18930
|
-
|
18938
|
+
w && !localStorage && (window.localStorage = new nr());
|
18931
18939
|
} catch (a2) {
|
18932
|
-
d.e("Error initialising localStorage",
|
18940
|
+
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
18933
18941
|
}
|
18934
18942
|
};
|
18935
18943
|
var ce = class {
|
@@ -18939,9 +18947,9 @@ var ce = class {
|
|
18939
18947
|
}
|
18940
18948
|
getStorage() {
|
18941
18949
|
try {
|
18942
|
-
return
|
18950
|
+
return w && !this.storage && (vs(), this.storage = window.localStorage), this.storage;
|
18943
18951
|
} catch (e) {
|
18944
|
-
return d.e("Error initialising localStorage",
|
18952
|
+
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
18945
18953
|
}
|
18946
18954
|
}
|
18947
18955
|
get() {
|
@@ -18959,70 +18967,37 @@ var ce = class {
|
|
18959
18967
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
18960
18968
|
}
|
18961
18969
|
};
|
18962
|
-
var
|
18970
|
+
var Ms = () => {
|
18963
18971
|
let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
|
18964
|
-
return t ? a2 = t : (a2 =
|
18972
|
+
return t ? a2 = t : (a2 = $a(), e.set(a2)), a2;
|
18965
18973
|
};
|
18966
18974
|
function ie(a2) {
|
18967
18975
|
return a2 != null;
|
18968
18976
|
}
|
18969
|
-
var
|
18970
|
-
function
|
18977
|
+
var ks = lr().version;
|
18978
|
+
function ot(a2 = "prod", e) {
|
18971
18979
|
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
18972
18980
|
if (Ce)
|
18973
|
-
return
|
18981
|
+
return Ps({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ks, 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 });
|
18974
18982
|
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;
|
18975
|
-
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`),
|
18983
|
+
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), Ps({ os: n, os_version: l, sdk: t, sdk_version: ks, 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 });
|
18976
18984
|
}
|
18977
18985
|
function ur(a2) {
|
18978
18986
|
return a2.replace(/ /g, "_");
|
18979
18987
|
}
|
18980
|
-
var
|
18988
|
+
var Ps = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
18981
18989
|
var R = class {
|
18982
18990
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
18983
|
-
this.metadata = { peer: {}, userAgent:
|
18984
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
18991
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
18992
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Ka(), this.device_id = Ms();
|
18985
18993
|
}
|
18986
18994
|
toSignalParams() {
|
18987
|
-
return { name: this.name, info: v(
|
18988
|
-
}
|
18989
|
-
};
|
18990
|
-
var pr = class {
|
18991
|
-
constructor() {
|
18992
|
-
this.pluginUsage = /* @__PURE__ */ new Map();
|
18993
|
-
this.pluginLastAddedAt = /* @__PURE__ */ new Map();
|
18994
|
-
this.getPluginUsage = (e, t) => {
|
18995
|
-
let i = `${t}-${e}`;
|
18996
|
-
if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
|
18997
|
-
let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
|
18998
|
-
this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
|
18999
|
-
}
|
19000
|
-
return this.pluginUsage.get(i);
|
19001
|
-
};
|
19002
|
-
this.updatePluginUsageData = (e, t) => {
|
19003
|
-
if (e.name === "transport.leave") {
|
19004
|
-
this.cleanup(t);
|
19005
|
-
return;
|
19006
|
-
}
|
19007
|
-
let i = e.properties.plugin_name, r = `${t}-${i}`;
|
19008
|
-
if (e.name === "mediaPlugin.added") {
|
19009
|
-
let s = e.properties.added_at;
|
19010
|
-
this.pluginLastAddedAt.set(r, s);
|
19011
|
-
} else if (e.name === "mediaPlugin.stats") {
|
19012
|
-
let s = e.properties.duration;
|
19013
|
-
s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
|
19014
|
-
}
|
19015
|
-
};
|
19016
|
-
this.cleanup = (e) => {
|
19017
|
-
for (let t of this.pluginUsage.keys())
|
19018
|
-
e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
|
19019
|
-
};
|
18995
|
+
return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
19020
18996
|
}
|
19021
18997
|
};
|
19022
|
-
var Fe = new pr();
|
19023
18998
|
var y = class {
|
19024
18999
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
19025
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(
|
19000
|
+
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);
|
19026
19001
|
return new R({ name: o, level: n, properties: l });
|
19027
19002
|
}
|
19028
19003
|
static disconnect(e, t) {
|
@@ -19036,7 +19011,7 @@ var y = class {
|
|
19036
19011
|
}
|
19037
19012
|
static join(i) {
|
19038
19013
|
var r = i, { error: e } = r, t = Xi(r, ["error"]);
|
19039
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(
|
19014
|
+
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);
|
19040
19015
|
return new R({ name: s, level: o, properties: n });
|
19041
19016
|
}
|
19042
19017
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -19079,7 +19054,7 @@ var y = class {
|
|
19079
19054
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
19080
19055
|
if (!t && e.degradedAt instanceof Date) {
|
19081
19056
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
19082
|
-
s = v(
|
19057
|
+
s = v(S({}, s), { duration: n, restoredAt: o });
|
19083
19058
|
}
|
19084
19059
|
return new R({ name: i, level: r, properties: s });
|
19085
19060
|
}
|
@@ -19097,8 +19072,7 @@ var y = class {
|
|
19097
19072
|
return new R({ name: "subscriber.stats", level: 1, properties: e });
|
19098
19073
|
}
|
19099
19074
|
static getKrispUsage(e) {
|
19100
|
-
|
19101
|
-
return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
|
19075
|
+
return new R({ name: "krisp.usage", level: 1, properties: { duration: e } });
|
19102
19076
|
}
|
19103
19077
|
static transportLeave() {
|
19104
19078
|
return new R({ name: "transport.leave", level: 1, properties: {} });
|
@@ -19108,14 +19082,14 @@ var y = class {
|
|
19108
19082
|
}
|
19109
19083
|
static getPropertiesWithError(e, t) {
|
19110
19084
|
let i = this.getErrorProperties(t);
|
19111
|
-
return e =
|
19085
|
+
return e = S(S({}, i), e), e;
|
19112
19086
|
}
|
19113
19087
|
static getErrorProperties(e) {
|
19114
19088
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
19115
19089
|
}
|
19116
19090
|
};
|
19117
19091
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
19118
|
-
var
|
19092
|
+
var pr = class {
|
19119
19093
|
constructor() {
|
19120
19094
|
this.storage = new ce("hms-device-selection");
|
19121
19095
|
this.remember = false;
|
@@ -19149,9 +19123,9 @@ var hr = class {
|
|
19149
19123
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
19150
19124
|
}
|
19151
19125
|
};
|
19152
|
-
var q = new
|
19153
|
-
var
|
19154
|
-
var
|
19126
|
+
var q = new pr();
|
19127
|
+
var hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
|
19128
|
+
var mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
|
19155
19129
|
function Jt(a2, e = 300) {
|
19156
19130
|
let t;
|
19157
19131
|
return function(...i) {
|
@@ -19162,10 +19136,10 @@ function Jt(a2, e = 300) {
|
|
19162
19136
|
}, e);
|
19163
19137
|
};
|
19164
19138
|
}
|
19165
|
-
var
|
19166
|
-
var
|
19167
|
-
var
|
19168
|
-
var
|
19139
|
+
var Hs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Hs || {});
|
19140
|
+
var Cs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Cs || {});
|
19141
|
+
var Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
|
19142
|
+
var Sr = class {
|
19169
19143
|
constructor() {
|
19170
19144
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
19171
19145
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19188,12 +19162,12 @@ var gr = class {
|
|
19188
19162
|
this.createObserver();
|
19189
19163
|
}
|
19190
19164
|
isSupported() {
|
19191
|
-
let e =
|
19165
|
+
let e = w && typeof window.IntersectionObserver != "undefined";
|
19192
19166
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
19193
19167
|
}
|
19194
19168
|
};
|
19195
|
-
var
|
19196
|
-
var
|
19169
|
+
var Ns = new Sr();
|
19170
|
+
var gr = class {
|
19197
19171
|
constructor() {
|
19198
19172
|
this.TAG = "[HMSResizeObserverWrapper]";
|
19199
19173
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19216,20 +19190,20 @@ var Tr = class {
|
|
19216
19190
|
this.createObserver();
|
19217
19191
|
}
|
19218
19192
|
isSupported() {
|
19219
|
-
let e =
|
19193
|
+
let e = w && typeof window.ResizeObserver != "undefined";
|
19220
19194
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
19221
19195
|
}
|
19222
19196
|
};
|
19223
|
-
var
|
19224
|
-
var
|
19225
|
-
var
|
19226
|
-
var
|
19227
|
-
var
|
19228
|
-
var
|
19229
|
-
var
|
19230
|
-
};
|
19231
|
-
|
19232
|
-
var
|
19197
|
+
var Os = new gr();
|
19198
|
+
var Tr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Tr || {});
|
19199
|
+
var fr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(fr || {});
|
19200
|
+
var Bs = "https://event.100ms.live/v2/client/report";
|
19201
|
+
var Vs = "https://event-nonprod.100ms.live/v2/client/report";
|
19202
|
+
var pt = Math.pow(2, 31) - 1;
|
19203
|
+
var Qe = class {
|
19204
|
+
};
|
19205
|
+
Qe.makePeerId = () => lo();
|
19206
|
+
var gt = "HMS-Store:";
|
19233
19207
|
var k = class {
|
19234
19208
|
static v(e, ...t) {
|
19235
19209
|
this.log(0, e, ...t);
|
@@ -19259,23 +19233,23 @@ var k = class {
|
|
19259
19233
|
if (!(this.level.valueOf() > e.valueOf()))
|
19260
19234
|
switch (e) {
|
19261
19235
|
case 0: {
|
19262
|
-
console.log(
|
19236
|
+
console.log(gt, ...t);
|
19263
19237
|
break;
|
19264
19238
|
}
|
19265
19239
|
case 1: {
|
19266
|
-
console.debug(
|
19240
|
+
console.debug(gt, ...t);
|
19267
19241
|
break;
|
19268
19242
|
}
|
19269
19243
|
case 2: {
|
19270
|
-
console.info(
|
19244
|
+
console.info(gt, ...t);
|
19271
19245
|
break;
|
19272
19246
|
}
|
19273
19247
|
case 3: {
|
19274
|
-
console.warn(
|
19248
|
+
console.warn(gt, ...t);
|
19275
19249
|
break;
|
19276
19250
|
}
|
19277
19251
|
case 6: {
|
19278
|
-
console.error(
|
19252
|
+
console.error(gt, ...t);
|
19279
19253
|
break;
|
19280
19254
|
}
|
19281
19255
|
case 4: {
|
@@ -19296,132 +19270,132 @@ var k = class {
|
|
19296
19270
|
}
|
19297
19271
|
};
|
19298
19272
|
k.level = 0;
|
19299
|
-
var
|
19300
|
-
var
|
19301
|
-
var
|
19273
|
+
var Rr = (a2, e) => e;
|
19274
|
+
var Tt = (a2, e) => e;
|
19275
|
+
var js = (a2, e) => e;
|
19276
|
+
var po = (a2, e) => e;
|
19302
19277
|
var ho = (a2, e) => e;
|
19303
|
-
var
|
19304
|
-
var
|
19305
|
-
var
|
19306
|
-
var So = createSelector([w, ft], (a2, e) => {
|
19278
|
+
var J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
|
19279
|
+
var Hr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
|
19280
|
+
var mo = createSelector([D, Tt], (a2, e) => {
|
19307
19281
|
if (!e)
|
19308
19282
|
return null;
|
19309
19283
|
let t = a2[e];
|
19310
19284
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
19311
19285
|
});
|
19312
|
-
var
|
19286
|
+
var So = createSelector([D, Tt], (a2, e) => {
|
19313
19287
|
if (!e)
|
19314
19288
|
return null;
|
19315
19289
|
let t = a2[e];
|
19316
19290
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
19317
19291
|
});
|
19318
|
-
var
|
19292
|
+
var go = createSelector([D, Tt], (a2, e) => {
|
19319
19293
|
if (!e)
|
19320
19294
|
return null;
|
19321
19295
|
let t = a2[e];
|
19322
19296
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19323
19297
|
});
|
19324
|
-
var
|
19298
|
+
var To = createSelector([D, Tt], (a2, e) => {
|
19325
19299
|
if (!e)
|
19326
19300
|
return null;
|
19327
19301
|
let t = a2[e];
|
19328
19302
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19329
19303
|
});
|
19330
|
-
var
|
19331
|
-
var Q =
|
19332
|
-
var
|
19304
|
+
var fo = createSelector([is, ho], (a2, e) => e ? a2[e] : null);
|
19305
|
+
var Q = b(J);
|
19306
|
+
var tm = b(createSelector([tr, po], (a2, e) => {
|
19333
19307
|
if (a2)
|
19334
19308
|
return e ? a2[e] : a2;
|
19335
19309
|
}));
|
19336
|
-
function
|
19310
|
+
function im(a2) {
|
19337
19311
|
return (e) => {
|
19338
19312
|
if (e.sessionStore)
|
19339
19313
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19340
19314
|
};
|
19341
19315
|
}
|
19342
|
-
var
|
19343
|
-
var oi =
|
19344
|
-
var
|
19345
|
-
var
|
19346
|
-
var
|
19347
|
-
var
|
19348
|
-
var
|
19316
|
+
var sm = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
19317
|
+
var oi = b(Hr);
|
19318
|
+
var Js = b(mo);
|
19319
|
+
var am = b(So);
|
19320
|
+
var om = b(go);
|
19321
|
+
var nm = b(To);
|
19322
|
+
var vo = b((a2, e) => {
|
19349
19323
|
let t = J(a2, e);
|
19350
19324
|
if (t && t.videoTrack && t.videoTrack !== "")
|
19351
19325
|
return a2.tracks[t.videoTrack];
|
19352
19326
|
});
|
19353
|
-
var
|
19327
|
+
var Mo = b((a2, e) => {
|
19354
19328
|
let t = J(a2, e);
|
19355
19329
|
if (t && t.audioTrack && t.audioTrack !== "")
|
19356
19330
|
return a2.tracks[t.audioTrack];
|
19357
19331
|
});
|
19358
|
-
var
|
19332
|
+
var dm = b((a2, e) => {
|
19359
19333
|
let t = J(a2, e);
|
19360
19334
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
19361
19335
|
});
|
19362
|
-
var
|
19363
|
-
var
|
19364
|
-
var
|
19365
|
-
let t =
|
19366
|
-
return
|
19367
|
-
};
|
19368
|
-
var
|
19369
|
-
var
|
19336
|
+
var Qs = (a2, e) => e ? a2.speakers[e] : null;
|
19337
|
+
var lm = b(createSelector(Qs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19338
|
+
var yo = (a2, e) => {
|
19339
|
+
let t = Mo(e)(a2);
|
19340
|
+
return Qs(a2, t == null ? void 0 : t.id);
|
19341
|
+
};
|
19342
|
+
var um = b(createSelector(yo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19343
|
+
var pm = b((a2, e) => {
|
19370
19344
|
if (e)
|
19371
19345
|
return a2.connectionQualities[e];
|
19372
19346
|
});
|
19373
|
-
var
|
19347
|
+
var hm = b((a2, e) => {
|
19374
19348
|
let t = J(a2, e);
|
19375
19349
|
if (t) {
|
19376
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
19350
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
|
19377
19351
|
return i ? a2.tracks[i] : void 0;
|
19378
19352
|
}
|
19379
19353
|
});
|
19380
|
-
var
|
19354
|
+
var mm = b(createSelector(D, J, (a2, e) => {
|
19381
19355
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19382
19356
|
let r = a2[i];
|
19383
|
-
return
|
19357
|
+
return rt(r) && it(r);
|
19384
19358
|
});
|
19385
19359
|
return t ? a2[t] : void 0;
|
19386
19360
|
}));
|
19387
|
-
var
|
19361
|
+
var Sm = b(createSelector(D, J, (a2, e) => {
|
19388
19362
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19389
19363
|
let r = a2[i];
|
19390
|
-
return
|
19364
|
+
return rt(r) && tt(r);
|
19391
19365
|
});
|
19392
19366
|
return t ? a2[t] : void 0;
|
19393
19367
|
}));
|
19394
|
-
var
|
19368
|
+
var gm = b(createSelector(D, J, (a2, e) => {
|
19395
19369
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19396
19370
|
let r = a2[i];
|
19397
|
-
return $t(r) &&
|
19371
|
+
return $t(r) && tt(r);
|
19398
19372
|
});
|
19399
19373
|
return t ? a2[t] : void 0;
|
19400
19374
|
}));
|
19401
|
-
var
|
19402
|
-
var
|
19403
|
-
var
|
19375
|
+
var zs = b(createSelector(D, J, (a2, e) => He(a2, e)));
|
19376
|
+
var Ys = (a2) => createSelector(zs(a2), (e) => e.audio);
|
19377
|
+
var fm = b((a2, e) => {
|
19404
19378
|
let t = J(a2, e);
|
19405
19379
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
19406
19380
|
});
|
19407
|
-
var
|
19381
|
+
var vm = b((a2, e) => {
|
19408
19382
|
let t = J(a2, e);
|
19409
19383
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
19410
19384
|
});
|
19411
|
-
var
|
19385
|
+
var Xs = b((a2, e) => {
|
19412
19386
|
if (e && a2.tracks[e])
|
19413
19387
|
return a2.tracks[e].volume === 0;
|
19414
19388
|
});
|
19415
|
-
var
|
19389
|
+
var Mm = b((a2, e) => {
|
19416
19390
|
let t = J(a2, e);
|
19417
|
-
return
|
19391
|
+
return Xs(t == null ? void 0 : t.audioTrack)(a2);
|
19418
19392
|
});
|
19419
|
-
var
|
19420
|
-
let t =
|
19421
|
-
return
|
19393
|
+
var ym = b((a2, e) => {
|
19394
|
+
let t = Ys(e)(a2);
|
19395
|
+
return Xs(t == null ? void 0 : t.id)(a2);
|
19422
19396
|
});
|
19423
|
-
var
|
19424
|
-
let t =
|
19397
|
+
var Zs = b((a2, e) => {
|
19398
|
+
let t = Hr(a2, e);
|
19425
19399
|
if (t) {
|
19426
19400
|
if (t.type !== "audio") {
|
19427
19401
|
k.w("Please pass audio track here");
|
@@ -19430,16 +19404,16 @@ var ea = A((a2, e) => {
|
|
19430
19404
|
return t.volume;
|
19431
19405
|
}
|
19432
19406
|
});
|
19433
|
-
var
|
19407
|
+
var km = b((a2, e) => {
|
19434
19408
|
let t = J(a2, e);
|
19435
|
-
return
|
19409
|
+
return Zs(t == null ? void 0 : t.audioTrack)(a2);
|
19436
19410
|
});
|
19437
|
-
var
|
19438
|
-
let t =
|
19439
|
-
return
|
19411
|
+
var Pm = b((a2, e) => {
|
19412
|
+
let t = Ys(e)(a2);
|
19413
|
+
return Zs(t == null ? void 0 : t.id)(a2);
|
19440
19414
|
});
|
19441
|
-
var
|
19442
|
-
let t =
|
19415
|
+
var Em = b((a2, e) => {
|
19416
|
+
let t = Hr(a2, e);
|
19443
19417
|
if (t) {
|
19444
19418
|
if (t.type !== "video") {
|
19445
19419
|
k.w("Please pass video track here");
|
@@ -19448,49 +19422,49 @@ var Hm = A((a2, e) => {
|
|
19448
19422
|
return t.layer;
|
19449
19423
|
}
|
19450
19424
|
});
|
19451
|
-
var
|
19425
|
+
var ea = createSelector([at, ue, Rr], (a2, e, t) => {
|
19452
19426
|
if (t)
|
19453
19427
|
return a2.filter((i) => {
|
19454
19428
|
var r;
|
19455
19429
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
19456
19430
|
});
|
19457
19431
|
});
|
19458
|
-
var
|
19432
|
+
var ta = createSelector([at, js], (a2, e) => {
|
19459
19433
|
if (e)
|
19460
19434
|
return a2.filter((t) => {
|
19461
19435
|
var i, r;
|
19462
19436
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
19463
19437
|
});
|
19464
19438
|
});
|
19465
|
-
var
|
19439
|
+
var ko = createSelector(at, (a2) => a2.filter((e) => {
|
19466
19440
|
var t;
|
19467
19441
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
19468
19442
|
}));
|
19469
|
-
var
|
19470
|
-
var
|
19471
|
-
var
|
19472
|
-
var
|
19473
|
-
var
|
19474
|
-
var
|
19475
|
-
var
|
19476
|
-
var
|
19477
|
-
var
|
19443
|
+
var Po = createSelector([ta, js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19444
|
+
var Eo = createSelector([ea, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19445
|
+
var bm = createSelector(ko, (a2) => a2.filter((e) => !e.read).length);
|
19446
|
+
var Am = b(ea);
|
19447
|
+
var Im = b(ta);
|
19448
|
+
var Rm = b(Po);
|
19449
|
+
var Hm = b(Eo);
|
19450
|
+
var ia = b(fo);
|
19451
|
+
var Vm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
|
19478
19452
|
var r;
|
19479
19453
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
19480
19454
|
}));
|
19481
|
-
var
|
19482
|
-
var
|
19483
|
-
var
|
19484
|
-
var
|
19485
|
-
var
|
19455
|
+
var bo = (a2) => a2.roleChangeRequests[0] || null;
|
19456
|
+
var Fm = createSelector([bo, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
19457
|
+
var Gm = createSelector([Kt], (a2) => st(a2));
|
19458
|
+
var $m = createSelector([es], (a2) => st(a2));
|
19459
|
+
var Io = createSelector([K, D], (a2, e) => {
|
19486
19460
|
let t = null;
|
19487
19461
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19488
19462
|
});
|
19489
|
-
var
|
19463
|
+
var Ro = createSelector([Z, D], (a2, e) => {
|
19490
19464
|
let t = null;
|
19491
19465
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19492
19466
|
});
|
19493
|
-
var
|
19467
|
+
var _r = class {
|
19494
19468
|
constructor() {
|
19495
19469
|
this.TAG = "[HTTPAnalyticsTransport]";
|
19496
19470
|
this.failedEvents = new ce("client-events");
|
@@ -19509,7 +19483,7 @@ var Nr = class {
|
|
19509
19483
|
this.addEventToStorage(e);
|
19510
19484
|
return;
|
19511
19485
|
}
|
19512
|
-
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" ?
|
19486
|
+
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" ? Bs : Vs;
|
19513
19487
|
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) => {
|
19514
19488
|
if (r.status === 401) {
|
19515
19489
|
this.removeFromStorage(e);
|
@@ -19535,66 +19509,66 @@ var Nr = class {
|
|
19535
19509
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
19536
19510
|
}
|
19537
19511
|
};
|
19538
|
-
var Te = new
|
19512
|
+
var Te = new _r();
|
19539
19513
|
var $ = ((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))($ || {});
|
19540
19514
|
var 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 || {});
|
19541
19515
|
var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
|
19542
|
-
var
|
19543
|
-
var
|
19544
|
-
var
|
19545
|
-
var
|
19546
|
-
var
|
19547
|
-
var
|
19548
|
-
var
|
19549
|
-
var
|
19550
|
-
var ve = createSelector([
|
19551
|
-
var
|
19516
|
+
var Jo = (a2) => a2.localPeer.id;
|
19517
|
+
var Qo = (a2) => a2.localPeer.audioTrack;
|
19518
|
+
var zo = (a2) => a2.localPeer.videoTrack;
|
19519
|
+
var Yo = (a2, e) => e;
|
19520
|
+
var va = (a2, e) => e;
|
19521
|
+
var Xo = (a2) => a2.remoteTrackStats;
|
19522
|
+
var Ma = (a2) => a2.peerStats;
|
19523
|
+
var Br = (a2) => a2.localTrackStats;
|
19524
|
+
var ve = createSelector([Ma, Jo], (a2, e) => a2[e]);
|
19525
|
+
var Zo = createSelector(ve, (a2) => {
|
19552
19526
|
var e;
|
19553
19527
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
19554
19528
|
});
|
19555
|
-
var
|
19529
|
+
var en = createSelector(ve, (a2) => {
|
19556
19530
|
var e;
|
19557
19531
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
19558
19532
|
});
|
19559
|
-
var
|
19533
|
+
var tn = createSelector(ve, (a2) => {
|
19560
19534
|
var e;
|
19561
19535
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
19562
19536
|
});
|
19563
|
-
var
|
19537
|
+
var rn = createSelector(ve, (a2) => {
|
19564
19538
|
var e;
|
19565
19539
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
19566
19540
|
});
|
19567
|
-
var
|
19541
|
+
var sn = createSelector(ve, (a2) => {
|
19568
19542
|
var e;
|
19569
19543
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
19570
19544
|
});
|
19571
|
-
var
|
19545
|
+
var an = createSelector(ve, (a2) => {
|
19572
19546
|
var e;
|
19573
19547
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
19574
19548
|
});
|
19575
|
-
var
|
19549
|
+
var on = createSelector(ve, (a2) => {
|
19576
19550
|
var e;
|
19577
19551
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
19578
19552
|
});
|
19579
|
-
var
|
19553
|
+
var nn = createSelector(ve, (a2) => {
|
19580
19554
|
var e;
|
19581
19555
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
19582
19556
|
});
|
19583
|
-
var
|
19584
|
-
var
|
19585
|
-
var
|
19586
|
-
var
|
19587
|
-
var
|
19588
|
-
var
|
19557
|
+
var cn = createSelector([Ma, Yo], (a2, e) => e ? a2[e] : void 0);
|
19558
|
+
var dn = createSelector([Xo, va], (a2, e) => e ? a2[e] : void 0);
|
19559
|
+
var Vr = createSelector([Br, va], (a2, e) => e ? a2[e] : void 0);
|
19560
|
+
var ln = b(cn);
|
19561
|
+
var un = b(dn);
|
19562
|
+
var pn = createSelector([Br, Qo], (a2, e) => {
|
19589
19563
|
var t;
|
19590
19564
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19591
19565
|
});
|
19592
|
-
var
|
19593
|
-
var
|
19566
|
+
var hn = b(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
|
19567
|
+
var mn = createSelector([Br, zo], (a2, e) => {
|
19594
19568
|
var t;
|
19595
19569
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19596
19570
|
});
|
19597
|
-
var
|
19571
|
+
var Sn = b(createSelector(Vr, (a2) => a2));
|
19598
19572
|
|
19599
19573
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
19600
19574
|
import {
|
@@ -19864,7 +19838,7 @@ var RecordingStatus = () => {
|
|
19864
19838
|
};
|
19865
19839
|
var RecordingPauseStatus = () => {
|
19866
19840
|
const recording = useHMSStore25(selectRecordingState);
|
19867
|
-
if (recording.hls && recording.hls.state ===
|
19841
|
+
if (recording.hls && recording.hls.state === Hs.PAUSED) {
|
19868
19842
|
return /* @__PURE__ */ React54.createElement(
|
19869
19843
|
Tooltip,
|
19870
19844
|
{
|
@@ -20264,6 +20238,8 @@ var MwebOptions = ({
|
|
20264
20238
|
const peerCount = useHMSStore29(selectPeerCount3);
|
20265
20239
|
const emojiCardRef = useRef14(null);
|
20266
20240
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
20241
|
+
const { toggleAudio, toggleVideo } = useAVToggle3();
|
20242
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
20267
20243
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
20268
20244
|
const { title, description } = useRoomLayoutHeader();
|
20269
20245
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -20325,7 +20301,7 @@ var MwebOptions = ({
|
|
20325
20301
|
/* @__PURE__ */ React58.createElement(PeopleIcon, null),
|
20326
20302
|
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, "Participants")
|
20327
20303
|
),
|
20328
|
-
|
20304
|
+
!noAVPermissions ? /* @__PURE__ */ React58.createElement(
|
20329
20305
|
ActionTile.Root,
|
20330
20306
|
{
|
20331
20307
|
active: isHandRaised,
|
@@ -20499,10 +20475,6 @@ import React60 from "react";
|
|
20499
20475
|
import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
|
20500
20476
|
var RaiseHand = ({ css: css2 }) => {
|
20501
20477
|
const { isHandRaised, toggleHandRaise } = useMyMetadata();
|
20502
|
-
const { elements } = useRoomLayoutConferencingScreen();
|
20503
|
-
if (!elements.hand_raise) {
|
20504
|
-
return null;
|
20505
|
-
}
|
20506
20478
|
return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
|
20507
20479
|
IconButton_default,
|
20508
20480
|
{
|
@@ -21492,7 +21464,6 @@ var RoleAccordion = ({
|
|
21492
21464
|
return /* @__PURE__ */ React73.createElement(Accordion.Item, { value: roleName, css: { "&:hover .role_actions": { visibility: "visible" }, mb: "$8" }, ref }, /* @__PURE__ */ React73.createElement(
|
21493
21465
|
Accordion.Header,
|
21494
21466
|
{
|
21495
|
-
chevronID: `role_accordion_btn_${roleName}`,
|
21496
21467
|
iconStyles: { c: "$on_surface_high" },
|
21497
21468
|
css: {
|
21498
21469
|
textTransform: "capitalize",
|
@@ -21545,7 +21516,7 @@ var RoleAccordion = ({
|
|
21545
21516
|
},
|
21546
21517
|
/* @__PURE__ */ React73.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
21547
21518
|
/* @__PURE__ */ React73.createElement(ChevronRightIcon, null)
|
21548
|
-
) : null, isHandRaisedAccordion &&
|
21519
|
+
) : null, isHandRaisedAccordion && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(HorizontalDivider, null), /* @__PURE__ */ React73.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React73.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(CrossIcon11, null), " Lower all hands"), canBringToStage && /* @__PURE__ */ React73.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(AddIcon, null), " ", bring_to_stage_label)))));
|
21549
21520
|
};
|
21550
21521
|
|
21551
21522
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
@@ -21837,10 +21808,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
|
21837
21808
|
peerId,
|
21838
21809
|
role
|
21839
21810
|
});
|
21840
|
-
|
21841
|
-
return null;
|
21842
|
-
}
|
21843
|
-
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React74.createElement(CrossIcon12, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React74.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React74.createElement(AddIcon2, { height: 18, width: 18 })));
|
21811
|
+
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React74.createElement(CrossIcon12, { height: 18, width: 18 })), shouldShowStageRoleChange && !isInStage && /* @__PURE__ */ React74.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React74.createElement(AddIcon2, { height: 18, width: 18 })));
|
21844
21812
|
};
|
21845
21813
|
var ParticipantMoreActions = ({ peerId, role }) => {
|
21846
21814
|
const {
|
@@ -21987,6 +21955,8 @@ var Footer2 = ({
|
|
21987
21955
|
const isMobile = useMedia11(config.media.md);
|
21988
21956
|
const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
|
21989
21957
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
|
21958
|
+
const { toggleAudio, toggleVideo } = useAVToggle4();
|
21959
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
21990
21960
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21991
21961
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
21992
21962
|
const { showPolls } = useShowPolls();
|
@@ -22034,7 +22004,7 @@ var Footer2 = ({
|
|
22034
22004
|
}
|
22035
22005
|
}
|
22036
22006
|
},
|
22037
|
-
isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
|
22007
|
+
isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, noAVPermissions ? /* @__PURE__ */ React77.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
|
22038
22008
|
),
|
22039
22009
|
/* @__PURE__ */ React77.createElement(Footer.Right, null, /* @__PURE__ */ React77.createElement(WhiteboardToggle, null), showPolls && /* @__PURE__ */ React77.createElement(PollsToggle, null), !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ React77.createElement(ParticipantCount, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType }))
|
22040
22010
|
);
|
@@ -22111,7 +22081,7 @@ import {
|
|
22111
22081
|
selectLocalPeer as selectLocalPeer7,
|
22112
22082
|
selectRoomState as selectRoomState5,
|
22113
22083
|
selectVideoTrackByID as selectVideoTrackByID5,
|
22114
|
-
useAVToggle as
|
22084
|
+
useAVToggle as useAVToggle6,
|
22115
22085
|
useHMSStore as useHMSStore70,
|
22116
22086
|
useParticipants as useParticipants2,
|
22117
22087
|
usePreviewJoin,
|
@@ -22373,10 +22343,10 @@ var PrevMenu = () => {
|
|
22373
22343
|
const sortedPolls = useMemo5(
|
22374
22344
|
() => {
|
22375
22345
|
var _a8;
|
22376
|
-
return (_a8 = polls == null ? void 0 : polls.sort((a2,
|
22346
|
+
return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
|
22377
22347
|
var _a9, _b7;
|
22378
|
-
return (((_a9 =
|
22379
|
-
})) == null ? void 0 : _a8.sort((a2,
|
22348
|
+
return (((_a9 = b2.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
|
22349
|
+
})) == null ? void 0 : _a8.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
|
22380
22350
|
},
|
22381
22351
|
[polls]
|
22382
22352
|
);
|
@@ -23878,7 +23848,7 @@ var usePinnedMessages = () => {
|
|
23878
23848
|
if (pinnedMessages[indexToRemove]) {
|
23879
23849
|
yield hmsActions.sessionStore.set(
|
23880
23850
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
23881
|
-
pinnedMessages.filter((
|
23851
|
+
pinnedMessages.filter((_, index) => index !== indexToRemove)
|
23882
23852
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
23883
23853
|
}
|
23884
23854
|
}),
|
@@ -24508,7 +24478,6 @@ var ChatBody = React108.forwardRef(
|
|
24508
24478
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
24509
24479
|
}, [blacklistedMessageIDs, messages]);
|
24510
24480
|
const vanillaStore = useHMSVanillaStore9();
|
24511
|
-
const rerenderOnFirstMount = useRef18(false);
|
24512
24481
|
useEffect26(() => {
|
24513
24482
|
const unsubscribe = vanillaStore.subscribe(() => {
|
24514
24483
|
if (!listRef.current) {
|
@@ -24521,12 +24490,6 @@ var ChatBody = React108.forwardRef(
|
|
24521
24490
|
}, selectUnreadHMSMessagesCount2);
|
24522
24491
|
return unsubscribe;
|
24523
24492
|
}, [vanillaStore, listRef, scrollToBottom]);
|
24524
|
-
useEffect26(() => {
|
24525
|
-
if (filteredMessages.length > 0 && (listRef == null ? void 0 : listRef.current) && !rerenderOnFirstMount.current) {
|
24526
|
-
rerenderOnFirstMount.current = true;
|
24527
|
-
listRef.current.resetAfterIndex(0);
|
24528
|
-
}
|
24529
|
-
}, [listRef, filteredMessages]);
|
24530
24493
|
return filteredMessages.length === 0 ? /* @__PURE__ */ React108.createElement(EmptyChat, null) : /* @__PURE__ */ React108.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
|
24531
24494
|
}
|
24532
24495
|
);
|
@@ -24559,7 +24522,7 @@ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRe
|
|
24559
24522
|
import { useMedia as useMedia16 } from "react-use";
|
24560
24523
|
import data2 from "@emoji-mart/data";
|
24561
24524
|
import Picker from "@emoji-mart/react";
|
24562
|
-
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24525
|
+
import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24563
24526
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24564
24527
|
|
24565
24528
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -24969,6 +24932,8 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24969
24932
|
const defaultSelection = useDefaultChatSelection();
|
24970
24933
|
const selection = selectedPeer.name || selectedRole || defaultSelection;
|
24971
24934
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
24935
|
+
const { toggleAudio, toggleVideo } = useAVToggle5();
|
24936
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
24972
24937
|
const isMwebHLSStream = useMobileHLSStream();
|
24973
24938
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
24974
24939
|
useEffect28(() => {
|
@@ -25134,7 +25099,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
25134
25099
|
},
|
25135
25100
|
gap: "2"
|
25136
25101
|
},
|
25137
|
-
/* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
|
25102
|
+
noAVPermissions ? /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
|
25138
25103
|
/* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
|
25139
25104
|
))));
|
25140
25105
|
};
|
@@ -25241,7 +25206,7 @@ var StickIndicator = ({ total, index }) => {
|
|
25241
25206
|
if (total < 2) {
|
25242
25207
|
return null;
|
25243
25208
|
}
|
25244
|
-
return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
25209
|
+
return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React114.createElement(
|
25245
25210
|
Box,
|
25246
25211
|
{
|
25247
25212
|
css: {
|
@@ -25376,7 +25341,7 @@ var Chat = () => {
|
|
25376
25341
|
const listRef = useRef21(null);
|
25377
25342
|
const hmsActions = useHMSActions39();
|
25378
25343
|
const vanillaStore = useHMSVanillaStore10();
|
25379
|
-
const { enabled: isChatEnabled = true } = useHMSStore60(
|
25344
|
+
const { enabled: isChatEnabled = true } = useHMSStore60(im("chatState" /* CHAT_STATE */)) || {};
|
25380
25345
|
const isMobile = useMedia18(config.media.md);
|
25381
25346
|
const isMobileHLSStream = useMobileHLSStream();
|
25382
25347
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -25460,7 +25425,7 @@ var NewMessageIndicator = ({
|
|
25460
25425
|
scrollToBottom,
|
25461
25426
|
listRef
|
25462
25427
|
}) => {
|
25463
|
-
const unreadCount = useHMSStore60(
|
25428
|
+
const unreadCount = useHMSStore60(Wn);
|
25464
25429
|
if (!unreadCount || !listRef.current) {
|
25465
25430
|
return null;
|
25466
25431
|
}
|
@@ -26548,10 +26513,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26548
26513
|
const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
|
26549
26514
|
const roomState = useHMSStore68(selectRoomState4);
|
26550
26515
|
const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
|
26551
|
-
const isEffectsEnabled = useHMSStore68(
|
26552
|
-
const effectsKey = useHMSStore68(
|
26516
|
+
const isEffectsEnabled = useHMSStore68(tc);
|
26517
|
+
const effectsKey = useHMSStore68(ic);
|
26553
26518
|
const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
26554
|
-
const background = useHMSStore68(
|
26519
|
+
const background = useHMSStore68(tm(APP_DATA.background));
|
26555
26520
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26556
26521
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26557
26522
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -26993,7 +26958,7 @@ var PreviewJoin = ({
|
|
26993
26958
|
const { isStreamingOn } = useRecordingStreaming11();
|
26994
26959
|
const authToken = useAuthToken();
|
26995
26960
|
const [name, setName] = useState56(initialName || previewPreference.name);
|
26996
|
-
const { toggleAudio, toggleVideo } =
|
26961
|
+
const { toggleAudio, toggleVideo } = useAVToggle6();
|
26997
26962
|
const [previewError, setPreviewError] = useState56(false);
|
26998
26963
|
const { endpoints } = useHMSPrebuiltContext();
|
26999
26964
|
const { peerCount } = useParticipants2();
|
@@ -27007,7 +26972,7 @@ var PreviewJoin = ({
|
|
27007
26972
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
27008
26973
|
},
|
27009
26974
|
captureNetworkQualityInPreview: true,
|
27010
|
-
handleError: (
|
26975
|
+
handleError: (_, method) => {
|
27011
26976
|
if (method === "preview") {
|
27012
26977
|
setPreviewError(true);
|
27013
26978
|
}
|
@@ -27081,7 +27046,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
27081
27046
|
}));
|
27082
27047
|
var PreviewTile = ({ name, error }) => {
|
27083
27048
|
const localPeer = useHMSStore70(selectLocalPeer7);
|
27084
|
-
const { isLocalAudioEnabled, toggleAudio } =
|
27049
|
+
const { isLocalAudioEnabled, toggleAudio } = useAVToggle6();
|
27085
27050
|
const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
|
27086
27051
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
27087
27052
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -27427,7 +27392,7 @@ var Pagination = ({
|
|
27427
27392
|
if (numPages <= 1) {
|
27428
27393
|
return null;
|
27429
27394
|
}
|
27430
|
-
return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((
|
27395
|
+
return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ React136.createElement(
|
27431
27396
|
StyledPagination.Dot,
|
27432
27397
|
{
|
27433
27398
|
key: i,
|
@@ -27534,7 +27499,7 @@ var useTileLayout = ({
|
|
27534
27499
|
}
|
27535
27500
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
27536
27501
|
let index = 0;
|
27537
|
-
const matrix = new Array(maxRows).fill(null).map((
|
27502
|
+
const matrix = new Array(maxRows).fill(null).map((_, i) => {
|
27538
27503
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
27539
27504
|
const rowElements = [];
|
27540
27505
|
for (let j = 0; j < numCols; j++) {
|
@@ -27555,10 +27520,10 @@ var useTileLayout = ({
|
|
27555
27520
|
tileHeight = maxRowHeight;
|
27556
27521
|
} else {
|
27557
27522
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
27558
|
-
for (const
|
27559
|
-
if (
|
27560
|
-
if (tileHeight <
|
27561
|
-
tileHeight =
|
27523
|
+
for (const h of calcHeights) {
|
27524
|
+
if (h < maxRowHeight) {
|
27525
|
+
if (tileHeight < h) {
|
27526
|
+
tileHeight = h;
|
27562
27527
|
}
|
27563
27528
|
}
|
27564
27529
|
}
|
@@ -28183,7 +28148,7 @@ var PeersSorter = class {
|
|
28183
28148
|
this.speaker = void 0;
|
28184
28149
|
this.tilesPerPage = tilesPerPage;
|
28185
28150
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
28186
|
-
this.peers.forEach((
|
28151
|
+
this.peers.forEach((_, key) => {
|
28187
28152
|
if (!peerIds.has(key)) {
|
28188
28153
|
this.peers.delete(key);
|
28189
28154
|
}
|
@@ -28615,7 +28580,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28615
28580
|
};
|
28616
28581
|
|
28617
28582
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28618
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28583
|
+
var HLSView = React151.lazy(() => import("./HLSView-VUANLYLS.js"));
|
28619
28584
|
var VideoStreamingSection = ({
|
28620
28585
|
screenType,
|
28621
28586
|
elements,
|
@@ -28951,6 +28916,8 @@ var ConferenceScreen = () => {
|
|
28951
28916
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
28952
28917
|
const dropdownListRef = useRef25();
|
28953
28918
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
28919
|
+
const { toggleAudio, toggleVideo } = useAVToggle7();
|
28920
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
28954
28921
|
const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
|
28955
28922
|
const autoRoomJoined = useRef25(isPreviewScreenEnabled);
|
28956
28923
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -29074,7 +29041,7 @@ var ConferenceScreen = () => {
|
|
29074
29041
|
justify: "end",
|
29075
29042
|
gap: "2"
|
29076
29043
|
},
|
29077
|
-
/* @__PURE__ */ React155.createElement(RaiseHand, null),
|
29044
|
+
noAVPermissions ? /* @__PURE__ */ React155.createElement(RaiseHand, null) : null,
|
29078
29045
|
/* @__PURE__ */ React155.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
|
29079
29046
|
/* @__PURE__ */ React155.createElement(
|
29080
29047
|
Box,
|
@@ -29613,7 +29580,7 @@ import {
|
|
29613
29580
|
PeopleRemoveIcon as PeopleRemoveIcon4,
|
29614
29581
|
PoorConnectivityIcon as PoorConnectivityIcon2
|
29615
29582
|
} from "@100mslive/react-icons";
|
29616
|
-
var ChatAction = React163.forwardRef((
|
29583
|
+
var ChatAction = React163.forwardRef((_, ref) => {
|
29617
29584
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
29618
29585
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
29619
29586
|
if (isChatOpen) {
|
@@ -30228,7 +30195,7 @@ function Notifications() {
|
|
30228
30195
|
}, []);
|
30229
30196
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
30230
30197
|
useEffect65(() => {
|
30231
|
-
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
30198
|
+
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
|
30232
30199
|
if (!notification || isNotificationDisabled) {
|
30233
30200
|
return;
|
30234
30201
|
}
|
@@ -30269,7 +30236,7 @@ function Notifications() {
|
|
30269
30236
|
});
|
30270
30237
|
break;
|
30271
30238
|
case HMSNotificationTypes10.ROLE_UPDATED: {
|
30272
|
-
if (((
|
30239
|
+
if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
30273
30240
|
ToastManager.addToast({
|
30274
30241
|
title: `You are now a ${notification.data.roleName}`
|
30275
30242
|
});
|
@@ -30985,4 +30952,4 @@ lodash/lodash.js:
|
|
30985
30952
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
30986
30953
|
*)
|
30987
30954
|
*/
|
30988
|
-
//# sourceMappingURL=chunk-
|
30955
|
+
//# sourceMappingURL=chunk-5WTUTVRO.js.map
|