@100mslive/roomkit-react 0.3.22-alpha.0 → 0.3.22-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +134 -322
- package/dist/Accordion/index.d.ts +134 -322
- package/dist/Avatar/Avatar.d.ts +47 -141
- package/dist/Button/Button.d.ts +47 -141
- package/dist/Checkbox/Checkbox.d.ts +134 -322
- package/dist/Collapsible/Collapsible.d.ts +201 -483
- package/dist/Divider/Divider.d.ts +134 -322
- package/dist/Dropdown/Dropdown.d.ts +804 -1932
- package/dist/Fieldset/Fieldset.d.ts +47 -141
- package/dist/Footer/Footer.d.ts +536 -1288
- package/dist/{HLSView-EPPGI6XI.js → HLSView-LCFZPBH3.js} +2 -2
- package/dist/{HLSView-JYFTZVCM.css → HLSView-Z2JID2W7.css} +3 -3
- package/dist/{HLSView-JYFTZVCM.css.map → HLSView-Z2JID2W7.css.map} +1 -1
- package/dist/IconButton/IconButton.d.ts +47 -141
- package/dist/Input/Input.d.ts +362 -926
- package/dist/Label/Label.d.ts +47 -141
- package/dist/Layout/Box.d.ts +47 -141
- package/dist/Layout/Flex.d.ts +47 -141
- package/dist/Link/Link.d.ts +47 -141
- package/dist/Modal/Dialog.d.ts +329 -987
- package/dist/Modal/DialogContent.d.ts +469 -1127
- package/dist/Pagination/StyledPagination.d.ts +268 -644
- package/dist/Popover/index.d.ts +201 -483
- package/dist/Prebuilt/IconButton.d.ts +134 -322
- package/dist/Prebuilt/components/Chat/ChatBody.d.ts +134 -322
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +335 -805
- package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/DeviceInUseError.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +1 -0
- package/dist/Prebuilt/components/Settings/common.d.ts +134 -322
- package/dist/Progress/index.d.ts +134 -322
- package/dist/RadioGroup/RadioGroup.d.ts +201 -483
- package/dist/ReactSelect/ReactSelect.d.ts +670 -1610
- package/dist/Select/Select.d.ts +201 -483
- package/dist/Sheet/Sheet.d.ts +329 -987
- package/dist/Slider/Slider.d.ts +47 -141
- package/dist/Stats/StyledStats.d.ts +402 -966
- package/dist/Switch/Switch.d.ts +47 -141
- package/dist/Tabs/Tabs.d.ts +268 -644
- package/dist/Text/Text.d.ts +47 -141
- package/dist/TextArea/TextArea.d.ts +47 -141
- package/dist/Theme/base.config.d.ts +26 -78
- package/dist/Theme/stitches.config.d.ts +1046 -1493
- package/dist/TileMenu/StyledMenuTile.d.ts +469 -1127
- package/dist/Toast/Toast.d.ts +382 -946
- package/dist/Video/Video.d.ts +47 -141
- package/dist/VideoList/StyledVideoList.d.ts +201 -483
- package/dist/VideoTile/StyledVideoTile.d.ts +670 -1610
- package/dist/{chunk-ZAX5VT7V.js → chunk-CRGZUJSX.js} +1000 -875
- package/dist/chunk-CRGZUJSX.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +1038 -861
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +348 -78
- package/dist/meta.esbuild.json +355 -85
- package/package.json +8 -8
- package/src/Avatar/Avatar.tsx +1 -1
- package/src/Popover/Popover.stories.tsx +1 -1
- package/src/Prebuilt/components/Header/common.jsx +6 -5
- package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +18 -0
- package/src/Prebuilt/components/Notifications/DeviceInUseError.tsx +79 -0
- package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +56 -0
- package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +24 -0
- package/src/Prebuilt/components/Notifications/Notifications.tsx +13 -159
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +23 -2
- package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +71 -0
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +1 -5
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +7 -5
- package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +23 -1
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +13 -5
- package/src/Prebuilt/components/StatsForNerds.jsx +32 -3
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +6 -0
- package/dist/chunk-ZAX5VT7V.js.map +0 -7
- /package/dist/{HLSView-EPPGI6XI.js.map → HLSView-LCFZPBH3.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -35,8 +35,8 @@ var __objRest = (source, exclude) => {
|
|
35
35
|
}
|
36
36
|
return target;
|
37
37
|
};
|
38
|
-
var __esm = (
|
39
|
-
return
|
38
|
+
var __esm = (fn2, res) => function __init() {
|
39
|
+
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
40
40
|
};
|
41
41
|
var __commonJS = (cb, mod) => function __require() {
|
42
42
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
109
109
|
var define_process_env_default;
|
110
110
|
var init_define_process_env = __esm({
|
111
111
|
"<define:process.env>"() {
|
112
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c02a3a78-e2bb-4bd9-b834-9432f8b041d5", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.12-alpha.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.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.22-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c02a3a78-e2bb-4bd9-b834-9432f8b041d5", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.22-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "602", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240922.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.7/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:5181", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.22-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "11161946270", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d6442187dcb9cfd7be47e4fa96fce78f4ac4f50b", 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: "984a9662bce0b6e4f412ecbafb731bc4513e592b3ab60e1e8644fc41b18c4830", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1727958518919-0.7551438833659676:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1727958518724-0.07247593050370194:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1727958492513-0.8315064134755685:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1727958492334-0.7202336770826401:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_eb3c5730-d7b7-4bc6-92a1-5ef3a3c761e4", INVOCATION_ID: "cc78594b821949b7bde659fc2b8cd86f", 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: "679", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 229", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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.22-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.22-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "d6442187dcb9cfd7be47e4fa96fce78f4ac4f50b", 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_c02a3a78-e2bb-4bd9-b834-9432f8b041d5", 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_c02a3a78-e2bb-4bd9-b834-9432f8b041d5", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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.189/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c02a3a78-e2bb-4bd9-b834-9432f8b041d5" };
|
112
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a9c70ff3-f16a-47b9-9b03-b52441ea220c", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.12-alpha.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.22-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a9c70ff3-f16a-47b9-9b03-b52441ea220c", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.22-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", 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.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "606", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240922.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.7/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:5180", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.22-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "11235501774", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "12d0289650b160b7c4b97cbd4336877a2e4baf4b", 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: "9110e4fe6915cd6679edd932c2537036a0610f45e156fc00175f7bc93ff78267", 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--1728390912351-0.08027343911474705:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1728390912151-0.18328717066424227:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1728390884999-0.7555727542198543:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1728390884821-0.9928523647375207:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c53b30f2-e1fd-4f6f-a8a5-ed29ff26f5e1", INVOCATION_ID: "2f3eee32d9c04b56a4328805455663f3", 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: "680", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 345", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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.22-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.22-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "12d0289650b160b7c4b97cbd4336877a2e4baf4b", 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_a9c70ff3-f16a-47b9-9b03-b52441ea220c", 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_a9c70ff3-f16a-47b9-9b03-b52441ea220c", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a9c70ff3-f16a-47b9-9b03-b52441ea220c" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -1272,7 +1272,7 @@ var init_Avatar = __esm({
|
|
1272
1272
|
StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
|
1273
1273
|
color: "$colors$on_primary_high",
|
1274
1274
|
fontFamily: "$sans",
|
1275
|
-
aspectRatio: 1,
|
1275
|
+
aspectRatio: "1",
|
1276
1276
|
fontWeight: 600,
|
1277
1277
|
fontSize: "$space$9",
|
1278
1278
|
variants: {
|
@@ -2800,11 +2800,11 @@ var init_formatBytes = __esm({
|
|
2800
2800
|
return "-";
|
2801
2801
|
}
|
2802
2802
|
const k = 1024;
|
2803
|
-
const
|
2803
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
2804
2804
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
2805
2805
|
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
2806
2806
|
i === 0 && i++;
|
2807
|
-
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(
|
2807
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
2808
2808
|
};
|
2809
2809
|
}
|
2810
2810
|
});
|
@@ -6311,8 +6311,8 @@ var require_lodash = __commonJS({
|
|
6311
6311
|
function createBind(func, bitmask, thisArg) {
|
6312
6312
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
6313
6313
|
function wrapper() {
|
6314
|
-
var
|
6315
|
-
return
|
6314
|
+
var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
|
6315
|
+
return fn2.apply(isBind ? thisArg : this, arguments);
|
6316
6316
|
}
|
6317
6317
|
return wrapper;
|
6318
6318
|
}
|
@@ -6378,8 +6378,8 @@ var require_lodash = __commonJS({
|
|
6378
6378
|
arity - length
|
6379
6379
|
);
|
6380
6380
|
}
|
6381
|
-
var
|
6382
|
-
return apply(
|
6381
|
+
var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
|
6382
|
+
return apply(fn2, this, args);
|
6383
6383
|
}
|
6384
6384
|
return wrapper;
|
6385
6385
|
}
|
@@ -6467,7 +6467,7 @@ var require_lodash = __commonJS({
|
|
6467
6467
|
arity - length
|
6468
6468
|
);
|
6469
6469
|
}
|
6470
|
-
var thisBinding = isBind ? thisArg : this,
|
6470
|
+
var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
|
6471
6471
|
length = args.length;
|
6472
6472
|
if (argPos) {
|
6473
6473
|
args = reorder(args, argPos);
|
@@ -6478,9 +6478,9 @@ var require_lodash = __commonJS({
|
|
6478
6478
|
args.length = ary2;
|
6479
6479
|
}
|
6480
6480
|
if (this && this !== root && this instanceof wrapper) {
|
6481
|
-
|
6481
|
+
fn2 = Ctor || createCtor(fn2);
|
6482
6482
|
}
|
6483
|
-
return
|
6483
|
+
return fn2.apply(thisBinding, args);
|
6484
6484
|
}
|
6485
6485
|
return wrapper;
|
6486
6486
|
}
|
@@ -6537,14 +6537,14 @@ var require_lodash = __commonJS({
|
|
6537
6537
|
function createPartial(func, bitmask, thisArg, partials) {
|
6538
6538
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
6539
6539
|
function wrapper() {
|
6540
|
-
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength),
|
6540
|
+
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
|
6541
6541
|
while (++leftIndex < leftLength) {
|
6542
6542
|
args[leftIndex] = partials[leftIndex];
|
6543
6543
|
}
|
6544
6544
|
while (argsLength--) {
|
6545
6545
|
args[leftIndex++] = arguments[++argsIndex];
|
6546
6546
|
}
|
6547
|
-
return apply(
|
6547
|
+
return apply(fn2, isBind ? thisArg : this, args);
|
6548
6548
|
}
|
6549
6549
|
return wrapper;
|
6550
6550
|
}
|
@@ -15025,7 +15025,7 @@ var init_StartRecording = __esm({
|
|
15025
15025
|
});
|
15026
15026
|
|
15027
15027
|
// src/Prebuilt/components/StatsForNerds.jsx
|
15028
|
-
var import_react75, import_ts_pattern4, import_react_sdk33, StatsForNerds, useTracksWithLabel, LocalPeerStats, TrackStats, StatsRow2;
|
15028
|
+
var import_react75, import_ts_pattern4, import_react_sdk33, StatsForNerds, useTracksWithLabel, LocalPeerStats, TrackStats, DebugInfo, StatsRow2;
|
15029
15029
|
var init_StatsForNerds = __esm({
|
15030
15030
|
"src/Prebuilt/components/StatsForNerds.jsx"() {
|
15031
15031
|
"use strict";
|
@@ -15033,6 +15033,7 @@ var init_StatsForNerds = __esm({
|
|
15033
15033
|
import_react75 = __toESM(require("react"));
|
15034
15034
|
import_ts_pattern4 = require("ts-pattern");
|
15035
15035
|
import_react_sdk33 = require("@100mslive/react-sdk");
|
15036
|
+
init_Accordion2();
|
15036
15037
|
init_Divider2();
|
15037
15038
|
init_Dropdown2();
|
15038
15039
|
init_Label2();
|
@@ -15052,6 +15053,8 @@ var init_StatsForNerds = __esm({
|
|
15052
15053
|
() => [{ id: "local-peer", label: "Local Peer Stats" }, ...tracksWithLabels],
|
15053
15054
|
[tracksWithLabels]
|
15054
15055
|
);
|
15056
|
+
const hmsActions = (0, import_react_sdk33.useHMSActions)();
|
15057
|
+
const details = hmsActions.getDebugInfo();
|
15055
15058
|
const [selectedStat, setSelectedStat] = (0, import_react75.useState)(statsOptions[0]);
|
15056
15059
|
const [showStatsOnTiles, setShowStatsOnTiles] = useSetUiSettings(UI_SETTINGS.showStatsOnTiles);
|
15057
15060
|
const [open, setOpen] = (0, import_react75.useState)(false);
|
@@ -15067,7 +15070,7 @@ var init_StatsForNerds = __esm({
|
|
15067
15070
|
{
|
15068
15071
|
css: {
|
15069
15072
|
width: "min(500px, 95%)",
|
15070
|
-
|
15073
|
+
height: "min(656px, 90%)",
|
15071
15074
|
overflowY: "auto"
|
15072
15075
|
}
|
15073
15076
|
},
|
@@ -15113,7 +15116,8 @@ var init_StatsForNerds = __esm({
|
|
15113
15116
|
);
|
15114
15117
|
}))))
|
15115
15118
|
),
|
15116
|
-
selectedStat.id === "local-peer" ? /* @__PURE__ */ import_react75.default.createElement(LocalPeerStats, null) : /* @__PURE__ */ import_react75.default.createElement(TrackStats, { trackID: selectedStat.id, layer: selectedStat.layer, local: selectedStat.local })
|
15119
|
+
selectedStat.id === "local-peer" ? /* @__PURE__ */ import_react75.default.createElement(LocalPeerStats, null) : /* @__PURE__ */ import_react75.default.createElement(TrackStats, { trackID: selectedStat.id, layer: selectedStat.layer, local: selectedStat.local }),
|
15120
|
+
/* @__PURE__ */ import_react75.default.createElement(Flex, { justify: "start", gap: 4, css: { m: "$10 0", w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(DebugInfo, { details }))
|
15117
15121
|
)));
|
15118
15122
|
};
|
15119
15123
|
useTracksWithLabel = () => {
|
@@ -15196,7 +15200,11 @@ var init_StatsForNerds = __esm({
|
|
15196
15200
|
}
|
15197
15201
|
));
|
15198
15202
|
};
|
15199
|
-
|
15203
|
+
DebugInfo = ({ details }) => {
|
15204
|
+
var _a7;
|
15205
|
+
return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
|
15206
|
+
};
|
15207
|
+
StatsRow2 = import_react75.default.memo(({ label, value, css: css2 }) => /* @__PURE__ */ import_react75.default.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ import_react75.default.createElement(
|
15200
15208
|
Text,
|
15201
15209
|
{
|
15202
15210
|
variant: "overline",
|
@@ -16153,7 +16161,7 @@ var require_ua_parser = __commonJS({
|
|
16153
16161
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
16154
16162
|
}
|
16155
16163
|
};
|
16156
|
-
var rgxMapper = function(
|
16164
|
+
var rgxMapper = function(ua, arrays) {
|
16157
16165
|
var i = 0, j2, k, p, q, matches, match18;
|
16158
16166
|
while (i < arrays.length && !matches) {
|
16159
16167
|
var regex = arrays[i], props = arrays[i + 1];
|
@@ -16162,7 +16170,7 @@ var require_ua_parser = __commonJS({
|
|
16162
16170
|
if (!regex[j2]) {
|
16163
16171
|
break;
|
16164
16172
|
}
|
16165
|
-
matches = regex[j2++].exec(
|
16173
|
+
matches = regex[j2++].exec(ua);
|
16166
16174
|
if (!!matches) {
|
16167
16175
|
for (p = 0; p < props.length; p++) {
|
16168
16176
|
match18 = matches[++k];
|
@@ -17251,16 +17259,16 @@ var require_ua_parser = __commonJS({
|
|
17251
17259
|
[NAME, VERSION]
|
17252
17260
|
]
|
17253
17261
|
};
|
17254
|
-
var UAParser = function(
|
17255
|
-
if (typeof
|
17256
|
-
extensions =
|
17257
|
-
|
17262
|
+
var UAParser = function(ua, extensions) {
|
17263
|
+
if (typeof ua === OBJ_TYPE) {
|
17264
|
+
extensions = ua;
|
17265
|
+
ua = undefined2;
|
17258
17266
|
}
|
17259
17267
|
if (!(this instanceof UAParser)) {
|
17260
|
-
return new UAParser(
|
17268
|
+
return new UAParser(ua, extensions).getResult();
|
17261
17269
|
}
|
17262
17270
|
var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
|
17263
|
-
var _ua =
|
17271
|
+
var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
|
17264
17272
|
var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
|
17265
17273
|
var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
|
17266
17274
|
var _isSelfNav = _navigator && _navigator.userAgent == _ua;
|
@@ -17326,8 +17334,8 @@ var require_ua_parser = __commonJS({
|
|
17326
17334
|
this.getUA = function() {
|
17327
17335
|
return _ua;
|
17328
17336
|
};
|
17329
|
-
this.setUA = function(
|
17330
|
-
_ua = typeof
|
17337
|
+
this.setUA = function(ua2) {
|
17338
|
+
_ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
|
17331
17339
|
return this;
|
17332
17340
|
};
|
17333
17341
|
this.setUA(_ua);
|
@@ -17359,8 +17367,8 @@ var require_ua_parser = __commonJS({
|
|
17359
17367
|
$.ua.get = function() {
|
17360
17368
|
return parser.getUA();
|
17361
17369
|
};
|
17362
|
-
$.ua.set = function(
|
17363
|
-
parser.setUA(
|
17370
|
+
$.ua.set = function(ua) {
|
17371
|
+
parser.setUA(ua);
|
17364
17372
|
var result = parser.getResult();
|
17365
17373
|
for (var prop in result) {
|
17366
17374
|
$.ua[prop] = result[prop];
|
@@ -18511,11 +18519,11 @@ function shimOnTrack(window2) {
|
|
18511
18519
|
get() {
|
18512
18520
|
return this._ontrack;
|
18513
18521
|
},
|
18514
|
-
set(
|
18522
|
+
set(f) {
|
18515
18523
|
if (this._ontrack) {
|
18516
18524
|
this.removeEventListener("track", this._ontrack);
|
18517
18525
|
}
|
18518
|
-
this.addEventListener("track", this._ontrack =
|
18526
|
+
this.addEventListener("track", this._ontrack = f);
|
18519
18527
|
},
|
18520
18528
|
enumerable: true,
|
18521
18529
|
configurable: true
|
@@ -19523,12 +19531,12 @@ function shimRemoteStreamsAPI(window2) {
|
|
19523
19531
|
get() {
|
19524
19532
|
return this._onaddstream;
|
19525
19533
|
},
|
19526
|
-
set(
|
19534
|
+
set(f) {
|
19527
19535
|
if (this._onaddstream) {
|
19528
19536
|
this.removeEventListener("addstream", this._onaddstream);
|
19529
19537
|
this.removeEventListener("track", this._onaddstreampoly);
|
19530
19538
|
}
|
19531
|
-
this.addEventListener("addstream", this._onaddstream =
|
19539
|
+
this.addEventListener("addstream", this._onaddstream = f);
|
19532
19540
|
this.addEventListener("track", this._onaddstreampoly = (e) => {
|
19533
19541
|
e.streams.forEach((stream) => {
|
19534
19542
|
if (!this._remoteStreams) {
|
@@ -20548,15 +20556,15 @@ function shimSendThrowTypeError(window2) {
|
|
20548
20556
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
20549
20557
|
return;
|
20550
20558
|
}
|
20551
|
-
function wrapDcSend(
|
20552
|
-
const origDataChannelSend =
|
20553
|
-
|
20559
|
+
function wrapDcSend(dc, pc) {
|
20560
|
+
const origDataChannelSend = dc.send;
|
20561
|
+
dc.send = function send() {
|
20554
20562
|
const data3 = arguments[0];
|
20555
20563
|
const length = data3.length || data3.size || data3.byteLength;
|
20556
|
-
if (
|
20564
|
+
if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
|
20557
20565
|
throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
|
20558
20566
|
}
|
20559
|
-
return origDataChannelSend.apply(
|
20567
|
+
return origDataChannelSend.apply(dc, arguments);
|
20560
20568
|
};
|
20561
20569
|
}
|
20562
20570
|
const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
|
@@ -21319,8 +21327,8 @@ var require_grammar = __commonJS({
|
|
21319
21327
|
var require_parser = __commonJS({
|
21320
21328
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
21321
21329
|
init_define_process_env();
|
21322
|
-
var toIntIfInt = function(
|
21323
|
-
return String(Number(
|
21330
|
+
var toIntIfInt = function(v2) {
|
21331
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
21324
21332
|
};
|
21325
21333
|
var attachProperties = function(match18, location, names, rawName) {
|
21326
21334
|
if (rawName && !names) {
|
@@ -21553,7 +21561,7 @@ function Ue(a2, e) {
|
|
21553
21561
|
if (e)
|
21554
21562
|
for (let r of e.auxiliaryTracks) {
|
21555
21563
|
let s = a2[r];
|
21556
|
-
|
21564
|
+
co(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
|
21557
21565
|
}
|
21558
21566
|
return { video: t, audio: i };
|
21559
21567
|
}
|
@@ -21563,7 +21571,7 @@ function pt(a2) {
|
|
21563
21571
|
function ht(a2) {
|
21564
21572
|
return a2 && a2.type === "video";
|
21565
21573
|
}
|
21566
|
-
function
|
21574
|
+
function co(a2) {
|
21567
21575
|
return a2 && a2.source === "screen";
|
21568
21576
|
}
|
21569
21577
|
function si(a2) {
|
@@ -21572,7 +21580,7 @@ function si(a2) {
|
|
21572
21580
|
function mt(a2) {
|
21573
21581
|
return a2 && a2.source === "videoplaylist";
|
21574
21582
|
}
|
21575
|
-
function
|
21583
|
+
function hs(a2) {
|
21576
21584
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21577
21585
|
}
|
21578
21586
|
function je(a2, e) {
|
@@ -21583,7 +21591,7 @@ function St(a2) {
|
|
21583
21591
|
let e = false, t = false, i = false;
|
21584
21592
|
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 };
|
21585
21593
|
}
|
21586
|
-
function
|
21594
|
+
function ho() {
|
21587
21595
|
if (B && window) {
|
21588
21596
|
let a2 = window.location.hostname;
|
21589
21597
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
@@ -21596,9 +21604,9 @@ function ce(a2) {
|
|
21596
21604
|
function vt(a2 = "prod", e) {
|
21597
21605
|
let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21598
21606
|
if (Be)
|
21599
|
-
return
|
21607
|
+
return Cs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Hs, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21600
21608
|
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(`web_${r.name}`), d = r.version || "", u = kr(`${o.name}_${o.version}`), p = u;
|
21601
|
-
return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`),
|
21609
|
+
return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`), Cs({ os: n, os_version: d, sdk: t, sdk_version: Hs, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21602
21610
|
}
|
21603
21611
|
function kr(a2) {
|
21604
21612
|
return a2.replace(/ /g, "_");
|
@@ -21616,13 +21624,13 @@ function ci(a2, e = 300) {
|
|
21616
21624
|
function R(a2) {
|
21617
21625
|
return (e) => (t) => a2(t, e);
|
21618
21626
|
}
|
21619
|
-
function
|
21627
|
+
function Xm(a2) {
|
21620
21628
|
return (e) => {
|
21621
21629
|
if (e.sessionStore)
|
21622
21630
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
21623
21631
|
};
|
21624
21632
|
}
|
21625
|
-
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, jt, import_eventemitter24, import_uuid9, import_uuid10,
|
21633
|
+
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, jt, import_eventemitter24, import_uuid9, import_uuid10, to, io, ro, ti, ds, ls, cs, m, y, gr, oo, c, yr, Tr, no, us, fr, ps, Ss, lo, l, he, B, gs, Be, po, uc, Ts, fs, Es, vs, Ms, Ps, bs, Qe, P4, v, mo, S, Mr, As, me, ai, Hs, Cs, C, E, Er, Y, Pr, br, Rr, Cr, _s, Ns, Os, xs, Us, Lr, Bs, wr, Ws, Dr, $s, _r, Nr, js, Js, Pt, rt, V, xo, rm, sm, j, Mi, ra, O, $r, Uo, Oe, nm, Bo, fe, Vo, ie, Ee, cm, dm, ne, X, Fo, aa, lm, um, qr, Go, hm, mm, Sm, gm, Tm, fm, vm, Mm, Rt, Wo, ym, re, na, km, Em, ve, Pm, at, $o, ca, bm, da, Am, Im, Rm, Hm, Cm, Lm, wm, Dm, _m, Nm, la, Bm, Ko, Vm, pa, jr, ha, ma, Sa, ga, Ta, fa, va, Ma, Ht, b, Jr, Ct, ya, qo, jo, J, Qr, Jo, Qo, zo, Yo, Xo, Z, Ym, eS, tS, yi, ka, iS, rS, sS, Zo, en, oS, Ea, nS, tn, cS, dS, lS, uS, pS, hS, Pa, ba, SS, gS, Aa, TS, fS, Ia, vS, MS, yS, Ra, Ha, rn, sn, an, kS, ES, PS, bS, AS, Ca, US, on, BS, VS, FS, cn, dn, pn, es, be, Vt, ts, Q, sr, lt, wn, Dn, _n, Nn, Za, On, eo, as, Ie, xn, Un, Bn, Vn, Fn, Gn, Wn, $n, Kn, qn, os, jn, Jn, Qn, zn, Yn, Xn;
|
21626
21634
|
var init_dist = __esm({
|
21627
21635
|
"../hms-video-store/dist/index.js"() {
|
21628
21636
|
"use strict";
|
@@ -21650,32 +21658,32 @@ var init_dist = __esm({
|
|
21650
21658
|
import_uuid9 = require("uuid");
|
21651
21659
|
import_uuid10 = require("uuid");
|
21652
21660
|
init_es();
|
21653
|
-
|
21654
|
-
|
21655
|
-
|
21661
|
+
to = Object.defineProperty;
|
21662
|
+
io = Object.defineProperties;
|
21663
|
+
ro = Object.getOwnPropertyDescriptors;
|
21656
21664
|
ti = Object.getOwnPropertySymbols;
|
21657
|
-
|
21658
|
-
|
21659
|
-
|
21665
|
+
ds = Object.prototype.hasOwnProperty;
|
21666
|
+
ls = Object.prototype.propertyIsEnumerable;
|
21667
|
+
cs = (a2, e, t) => e in a2 ? to(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21660
21668
|
m = (a2, e) => {
|
21661
21669
|
for (var t in e || (e = {}))
|
21662
|
-
|
21670
|
+
ds.call(e, t) && cs(a2, t, e[t]);
|
21663
21671
|
if (ti)
|
21664
21672
|
for (var t of ti(e))
|
21665
|
-
|
21673
|
+
ls.call(e, t) && cs(a2, t, e[t]);
|
21666
21674
|
return a2;
|
21667
21675
|
};
|
21668
|
-
y = (a2, e) =>
|
21676
|
+
y = (a2, e) => io(a2, ro(e));
|
21669
21677
|
gr = (a2, e) => {
|
21670
21678
|
var t = {};
|
21671
21679
|
for (var i in a2)
|
21672
|
-
|
21680
|
+
ds.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
21673
21681
|
if (a2 != null && ti)
|
21674
21682
|
for (var i of ti(a2))
|
21675
|
-
e.indexOf(i) < 0 &&
|
21683
|
+
e.indexOf(i) < 0 && ls.call(a2, i) && (t[i] = a2[i]);
|
21676
21684
|
return t;
|
21677
21685
|
};
|
21678
|
-
|
21686
|
+
oo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21679
21687
|
c = (a2, e, t) => new Promise((i, r) => {
|
21680
21688
|
var s = (d) => {
|
21681
21689
|
try {
|
@@ -21692,16 +21700,16 @@ var init_dist = __esm({
|
|
21692
21700
|
}, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
|
21693
21701
|
n((t = t.apply(a2, e)).next());
|
21694
21702
|
});
|
21695
|
-
yr =
|
21696
|
-
|
21703
|
+
yr = oo((xc, go) => {
|
21704
|
+
go.exports = { version: "0.12.22-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
21697
21705
|
});
|
21698
21706
|
Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
|
21699
|
-
|
21700
|
-
|
21707
|
+
no = ((e) => (e.CHAT = "chat", e))(no || {});
|
21708
|
+
us = ((t) => (t.INFO = "info", t.ERROR = "error", t))(us || {});
|
21701
21709
|
fr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(fr || {});
|
21702
|
-
|
21703
|
-
|
21704
|
-
|
21710
|
+
ps = ((t) => (t.audio = "audio", t.video = "video", t))(ps || {});
|
21711
|
+
Ss = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(Ss || {});
|
21712
|
+
lo = typeof window != "undefined" && typeof window.expect != "undefined";
|
21705
21713
|
l = class {
|
21706
21714
|
static v(e, ...t) {
|
21707
21715
|
this.log(0, e, ...t);
|
@@ -21767,18 +21775,18 @@ var init_dist = __esm({
|
|
21767
21775
|
}
|
21768
21776
|
}
|
21769
21777
|
};
|
21770
|
-
l.level =
|
21778
|
+
l.level = lo ? 7 : 0;
|
21771
21779
|
he = new import_ua_parser_js.UAParser();
|
21772
21780
|
B = typeof window != "undefined";
|
21773
|
-
Be = typeof window == "undefined" && !((
|
21774
|
-
|
21775
|
-
|
21776
|
-
|
21777
|
-
|
21778
|
-
|
21779
|
-
Qe =
|
21780
|
-
P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
21781
|
-
|
21781
|
+
Be = typeof window == "undefined" && !((gs = he.getBrowser().name) != null && gs.toLowerCase().includes("electron"));
|
21782
|
+
po = () => !Be;
|
21783
|
+
uc = po();
|
21784
|
+
Es = (fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase().includes("safari");
|
21785
|
+
Ps = ((Ms = (vs = he.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase()) === "firefox";
|
21786
|
+
bs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(bs || {});
|
21787
|
+
Qe = ho();
|
21788
|
+
P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, 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 } };
|
21789
|
+
v = class a extends Error {
|
21782
21790
|
constructor(t, i, r, s, o, n = false) {
|
21783
21791
|
super(s);
|
21784
21792
|
this.code = t;
|
@@ -21807,113 +21815,115 @@ var init_dist = __esm({
|
|
21807
21815
|
}`;
|
21808
21816
|
}
|
21809
21817
|
};
|
21810
|
-
|
21818
|
+
mo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21811
21819
|
S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21812
|
-
return new
|
21820
|
+
return new v(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21813
21821
|
}, WebSocketConnectionLost(a2, e = "") {
|
21814
|
-
return new
|
21822
|
+
return new v(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21815
21823
|
}, AbnormalClose(a2, e = "") {
|
21816
|
-
return new
|
21824
|
+
return new v(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21817
21825
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21818
|
-
return new
|
21826
|
+
return new v(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21819
21827
|
}, EndpointUnreachable(a2, e = "") {
|
21820
|
-
return new
|
21828
|
+
return new v(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21821
21829
|
}, InvalidTokenFormat(a2, e = "") {
|
21822
|
-
return new
|
21830
|
+
return new v(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21823
21831
|
}, InitConfigNotAvailable(a2, e = "") {
|
21824
|
-
return new
|
21832
|
+
return new v(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21825
21833
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21826
|
-
return new
|
21834
|
+
return new v(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21827
21835
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21828
|
-
return new
|
21836
|
+
return new v(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21829
21837
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21830
|
-
return new
|
21838
|
+
return new v(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21831
21839
|
}, DeviceInUse(a2, e, t = "") {
|
21832
|
-
return new
|
21840
|
+
return new v(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21833
21841
|
}, DeviceLostMidway(a2, e, t = "") {
|
21834
|
-
return new
|
21842
|
+
return new v(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21835
21843
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21836
|
-
return new
|
21844
|
+
return new v(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21837
21845
|
}, InvalidVideoSettings(a2, e = "") {
|
21838
|
-
return new
|
21846
|
+
return new v(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
21839
21847
|
}, AutoplayBlocked(a2, e = "") {
|
21840
|
-
return new
|
21848
|
+
return new v(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
21841
21849
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21842
|
-
return new
|
21850
|
+
return new v(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21843
21851
|
}, OverConstrained(a2, e, t = "") {
|
21844
|
-
return new
|
21852
|
+
return new v(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21845
21853
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21846
|
-
return new
|
21854
|
+
return new v(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21847
21855
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21848
|
-
return new
|
21856
|
+
return new v(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21849
21857
|
}, CurrentTabNotShared() {
|
21850
|
-
return new
|
21858
|
+
return new v(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
|
21851
21859
|
}, AudioPlaybackError(a2) {
|
21852
|
-
return new
|
21860
|
+
return new v(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21853
21861
|
}, SelectedDeviceMissing(a2) {
|
21854
|
-
return new
|
21862
|
+
return new v(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21863
|
+
}, NoDataInTrack(a2) {
|
21864
|
+
return new v(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call");
|
21855
21865
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21856
|
-
return new
|
21866
|
+
return new v(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21857
21867
|
}, CreateAnswerFailed(a2, e = "") {
|
21858
|
-
return new
|
21868
|
+
return new v(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21859
21869
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21860
|
-
return new
|
21870
|
+
return new v(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21861
21871
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21862
|
-
return new
|
21872
|
+
return new v(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21863
21873
|
}, ICEFailure(a2, e = "", t = false) {
|
21864
|
-
return new
|
21874
|
+
return new v(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21865
21875
|
}, ICEDisconnected(a2, e = "") {
|
21866
|
-
return new
|
21876
|
+
return new v(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21867
21877
|
}, StatsFailed(a2, e = "") {
|
21868
|
-
return new
|
21878
|
+
return new v(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21869
21879
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21870
|
-
return new
|
21880
|
+
return new v(a2, "ServerErrors", e, t, t, mo.includes(e));
|
21871
21881
|
}, AlreadyJoined(a2, e = "") {
|
21872
|
-
return new
|
21882
|
+
return new v(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21873
21883
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21874
|
-
return new
|
21884
|
+
return new v(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21875
21885
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21876
|
-
return new
|
21886
|
+
return new v(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21877
21887
|
}, Signalling(a2, e) {
|
21878
|
-
return new
|
21888
|
+
return new v(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21879
21889
|
}, Unknown(a2, e) {
|
21880
|
-
return new
|
21890
|
+
return new v(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21881
21891
|
}, NotReady(a2, e = "") {
|
21882
|
-
return new
|
21892
|
+
return new v(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21883
21893
|
}, JsonParsingFailed(a2, e, t = "") {
|
21884
|
-
return new
|
21894
|
+
return new v(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21885
21895
|
}, TrackMetadataMissing(a2, e = "") {
|
21886
|
-
return new
|
21896
|
+
return new v(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21887
21897
|
}, RTCTrackMissing(a2, e = "") {
|
21888
|
-
return new
|
21898
|
+
return new v(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21889
21899
|
}, PeerMetadataMissing(a2, e = "") {
|
21890
|
-
return new
|
21900
|
+
return new v(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21891
21901
|
}, ValidationFailed(a2, e) {
|
21892
|
-
return new
|
21902
|
+
return new v(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21893
21903
|
}, InvalidRole(a2, e) {
|
21894
|
-
return new
|
21904
|
+
return new v(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21895
21905
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21896
|
-
return new
|
21906
|
+
return new v(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21897
21907
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21898
|
-
return new
|
21908
|
+
return new v(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21899
21909
|
}, MissingMediaDevices() {
|
21900
|
-
return new
|
21910
|
+
return new v(P4.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
|
21901
21911
|
}, MissingRTCPeerConnection() {
|
21902
|
-
return new
|
21912
|
+
return new v(P4.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
|
21903
21913
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21904
|
-
return new
|
21914
|
+
return new v(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21905
21915
|
}, InitFailed(a2, e = "") {
|
21906
|
-
return new
|
21916
|
+
return new v(7002, "InitFailed", a2, "Plugin init failed", e);
|
21907
21917
|
}, ProcessingFailed(a2, e = "") {
|
21908
|
-
return new
|
21918
|
+
return new v(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
|
21909
21919
|
}, AddAlreadyInProgress(a2, e = "") {
|
21910
|
-
return new
|
21920
|
+
return new v(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
|
21911
21921
|
}, DeviceNotSupported(a2, e = "") {
|
21912
|
-
return new
|
21922
|
+
return new v(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21913
21923
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21914
|
-
return new
|
21924
|
+
return new v(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21915
21925
|
}, NoEntryPlaying(a2, e) {
|
21916
|
-
return new
|
21926
|
+
return new v(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21917
21927
|
} } };
|
21918
21928
|
Mr = class {
|
21919
21929
|
constructor() {
|
@@ -21940,7 +21950,7 @@ var init_dist = __esm({
|
|
21940
21950
|
return this.valuesMap.size;
|
21941
21951
|
}
|
21942
21952
|
};
|
21943
|
-
|
21953
|
+
As = () => {
|
21944
21954
|
try {
|
21945
21955
|
B && !localStorage && (window.localStorage = new Mr());
|
21946
21956
|
} catch (a2) {
|
@@ -21954,7 +21964,7 @@ var init_dist = __esm({
|
|
21954
21964
|
}
|
21955
21965
|
getStorage() {
|
21956
21966
|
try {
|
21957
|
-
return B && !this.storage && (
|
21967
|
+
return B && !this.storage && (As(), this.storage = window.localStorage), this.storage;
|
21958
21968
|
} catch (e) {
|
21959
21969
|
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21960
21970
|
}
|
@@ -21978,8 +21988,8 @@ var init_dist = __esm({
|
|
21978
21988
|
let a2, e = new me("hms-analytics-deviceId"), t = e.get();
|
21979
21989
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
21980
21990
|
};
|
21981
|
-
|
21982
|
-
|
21991
|
+
Hs = yr().version;
|
21992
|
+
Cs = (a2, e = ",") => Object.keys(a2).filter((t) => ce(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21983
21993
|
C = class {
|
21984
21994
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21985
21995
|
this.metadata = { peer: {}, userAgent: vt() };
|
@@ -22028,6 +22038,9 @@ var init_dist = __esm({
|
|
22028
22038
|
static audioPlaybackError(e) {
|
22029
22039
|
return new C({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
22030
22040
|
}
|
22041
|
+
static audioRecovered(e) {
|
22042
|
+
return new C({ name: "audioRecovered", level: 0, properties: { message: e } });
|
22043
|
+
}
|
22031
22044
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
22032
22045
|
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
22033
22046
|
return new C({ name: o, level: n, properties: d });
|
@@ -22085,7 +22098,7 @@ var init_dist = __esm({
|
|
22085
22098
|
return e = m(m({}, i), e), e;
|
22086
22099
|
}
|
22087
22100
|
static getErrorProperties(e) {
|
22088
|
-
return e ? e instanceof
|
22101
|
+
return e ? e instanceof v ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
22089
22102
|
}
|
22090
22103
|
};
|
22091
22104
|
E.KEY_REQUESTED_AT = "requested_at", E.KEY_RESPONDED_AT = "responded_at";
|
@@ -22126,15 +22139,16 @@ var init_dist = __esm({
|
|
22126
22139
|
Y = new Er();
|
22127
22140
|
Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
|
22128
22141
|
br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
|
22129
|
-
|
22130
|
-
|
22131
|
-
|
22132
|
-
|
22133
|
-
|
22134
|
-
|
22135
|
-
|
22136
|
-
|
22137
|
-
|
22142
|
+
Rr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Rr || {});
|
22143
|
+
Cr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Cr || {});
|
22144
|
+
_s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
|
22145
|
+
Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
|
22146
|
+
Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
|
22147
|
+
xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
|
22148
|
+
Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
|
22149
|
+
Lr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Lr || {});
|
22150
|
+
Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
|
22151
|
+
wr = class {
|
22138
22152
|
constructor() {
|
22139
22153
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
22140
22154
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -22161,8 +22175,8 @@ var init_dist = __esm({
|
|
22161
22175
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
22162
22176
|
}
|
22163
22177
|
};
|
22164
|
-
|
22165
|
-
|
22178
|
+
Ws = new wr();
|
22179
|
+
Dr = class {
|
22166
22180
|
constructor() {
|
22167
22181
|
this.TAG = "[HMSResizeObserverWrapper]";
|
22168
22182
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -22189,43 +22203,43 @@ var init_dist = __esm({
|
|
22189
22203
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
22190
22204
|
}
|
22191
22205
|
};
|
22192
|
-
|
22193
|
-
|
22194
|
-
|
22195
|
-
|
22196
|
-
|
22206
|
+
$s = new Dr();
|
22207
|
+
_r = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(_r || {});
|
22208
|
+
Nr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Nr || {});
|
22209
|
+
js = "https://event.100ms.live/v2/client/report";
|
22210
|
+
Js = "https://event-nonprod.100ms.live/v2/client/report";
|
22197
22211
|
Pt = Math.pow(2, 31) - 1;
|
22198
22212
|
rt = class {
|
22199
22213
|
};
|
22200
22214
|
rt.makePeerId = () => (0, import_uuid7.v4)();
|
22201
22215
|
V = (a2) => a2.room;
|
22202
|
-
|
22203
|
-
|
22204
|
-
|
22216
|
+
xo = (a2) => a2.errors;
|
22217
|
+
rm = createSelector(xo, (a2) => a2.length === 0 ? null : a2.at(-1));
|
22218
|
+
sm = createSelector(V, (a2) => a2.id);
|
22205
22219
|
j = (a2) => a2.peers;
|
22206
22220
|
Mi = (a2) => a2.messages.byID;
|
22207
|
-
|
22221
|
+
ra = (a2) => a2.messages.allIDs;
|
22208
22222
|
O = (a2) => a2.tracks;
|
22209
|
-
|
22210
|
-
|
22223
|
+
$r = (a2) => a2.appData;
|
22224
|
+
Uo = (a2) => a2.speakers;
|
22211
22225
|
Oe = createSelector([V], (a2) => a2 && a2.isConnected);
|
22212
|
-
|
22213
|
-
|
22214
|
-
fe = createSelector([V, j,
|
22215
|
-
|
22226
|
+
nm = createSelector([Oe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
22227
|
+
Bo = (a2) => a2.hideLocalPeer;
|
22228
|
+
fe = createSelector([V, j, Bo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
22229
|
+
Vo = createSelector(O, (a2) => Object.values(a2));
|
22216
22230
|
ie = createSelector(V, j, (a2, e) => e[a2.localPeer]);
|
22217
22231
|
Ee = createSelector(V, (a2) => a2.localPeer);
|
22218
|
-
|
22219
|
-
|
22232
|
+
cm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
|
22233
|
+
dm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
|
22220
22234
|
ne = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
22221
22235
|
X = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
22222
|
-
|
22223
|
-
|
22236
|
+
Fo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
22237
|
+
aa = createSelector([ne, X, Fo], (a2, e, t) => {
|
22224
22238
|
let i = t ? [...t] : [];
|
22225
22239
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
22226
22240
|
});
|
22227
|
-
|
22228
|
-
|
22241
|
+
lm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
|
22242
|
+
um = createSelector(j, Uo, (a2, e) => {
|
22229
22243
|
let t = Object.entries(e).sort((i, r) => {
|
22230
22244
|
var n, d;
|
22231
22245
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -22238,11 +22252,11 @@ var init_dist = __esm({
|
|
22238
22252
|
}
|
22239
22253
|
return null;
|
22240
22254
|
});
|
22241
|
-
|
22255
|
+
qr = createSelector(ie, O, (a2, e) => {
|
22242
22256
|
let { video: t, audio: i } = Ue(e, a2);
|
22243
22257
|
return !!(t || i);
|
22244
22258
|
});
|
22245
|
-
|
22259
|
+
Go = createSelector(j, O, (a2, e) => {
|
22246
22260
|
let t;
|
22247
22261
|
for (let i in a2) {
|
22248
22262
|
let r = a2[i], { video: s, audio: o } = Ue(e, r);
|
@@ -22252,15 +22266,15 @@ var init_dist = __esm({
|
|
22252
22266
|
}
|
22253
22267
|
return t;
|
22254
22268
|
});
|
22255
|
-
|
22256
|
-
|
22269
|
+
hm = createSelector(Go, (a2) => !!a2);
|
22270
|
+
mm = createSelector(j, O, (a2, e) => {
|
22257
22271
|
for (let t in a2) {
|
22258
22272
|
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
22259
22273
|
if (!s && r)
|
22260
22274
|
return i;
|
22261
22275
|
}
|
22262
22276
|
});
|
22263
|
-
|
22277
|
+
Sm = createSelector(j, O, (a2, e) => {
|
22264
22278
|
let t = [], i = [];
|
22265
22279
|
for (let r in a2) {
|
22266
22280
|
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
@@ -22268,78 +22282,78 @@ var init_dist = __esm({
|
|
22268
22282
|
}
|
22269
22283
|
return t.concat(i);
|
22270
22284
|
});
|
22271
|
-
|
22285
|
+
gm = createSelector(j, O, (a2, e) => {
|
22272
22286
|
for (let t in e) {
|
22273
22287
|
let i = e[t];
|
22274
22288
|
if (mt(i) && ht(i) && i.peerId)
|
22275
22289
|
return a2[i.peerId];
|
22276
22290
|
}
|
22277
22291
|
});
|
22278
|
-
|
22292
|
+
Tm = createSelector(j, O, (a2, e) => {
|
22279
22293
|
for (let t in e) {
|
22280
22294
|
let i = e[t];
|
22281
22295
|
if (si(i) && i.peerId)
|
22282
22296
|
return a2[i.peerId];
|
22283
22297
|
}
|
22284
22298
|
});
|
22285
|
-
|
22286
|
-
|
22287
|
-
|
22288
|
-
Rt = createSelector(
|
22299
|
+
fm = createSelector(Vo, (a2) => a2.filter(hs));
|
22300
|
+
vm = createSelector(ra, (a2) => a2.length);
|
22301
|
+
Mm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22302
|
+
Rt = createSelector(ra, Mi, (a2, e) => {
|
22289
22303
|
let t = [];
|
22290
22304
|
return a2.forEach((i) => {
|
22291
22305
|
t.push(e[i]);
|
22292
22306
|
}), t;
|
22293
22307
|
});
|
22294
|
-
|
22308
|
+
Wo = createSelector(Rt, (a2) => a2.filter((e) => {
|
22295
22309
|
var t;
|
22296
22310
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22297
22311
|
}));
|
22298
|
-
|
22312
|
+
ym = createSelector(Wo, (a2) => a2.filter((e) => !e.read).length);
|
22299
22313
|
re = createSelector([V], (a2) => a2 && a2.roomState);
|
22300
|
-
|
22301
|
-
|
22302
|
-
|
22314
|
+
na = createSelector(re, (a2) => a2 === "Preview");
|
22315
|
+
km = createSelector(V, (a2) => a2.roomState !== "Disconnected");
|
22316
|
+
Em = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22303
22317
|
ve = (a2) => a2.roles;
|
22304
|
-
|
22318
|
+
Pm = createSelector([ve], (a2) => Object.keys(a2));
|
22305
22319
|
at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22306
|
-
|
22320
|
+
$o = (a2) => {
|
22307
22321
|
var e;
|
22308
22322
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22309
22323
|
};
|
22310
|
-
|
22311
|
-
|
22324
|
+
ca = createSelector([$o, ve], (a2, e) => a2 ? e[a2] : null);
|
22325
|
+
bm = createSelector([at], (a2) => {
|
22312
22326
|
var e;
|
22313
22327
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
22314
22328
|
});
|
22315
|
-
|
22316
|
-
|
22317
|
-
|
22318
|
-
|
22319
|
-
|
22320
|
-
|
22321
|
-
|
22322
|
-
|
22323
|
-
|
22324
|
-
|
22325
|
-
|
22326
|
-
|
22327
|
-
|
22328
|
-
|
22329
|
-
|
22330
|
-
|
22331
|
-
|
22332
|
-
|
22333
|
-
|
22334
|
-
|
22335
|
-
|
22336
|
-
|
22337
|
-
|
22329
|
+
da = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
|
22330
|
+
Am = createSelector(V, (a2) => a2.recording);
|
22331
|
+
Im = createSelector(V, (a2) => a2.rtmp);
|
22332
|
+
Rm = createSelector(V, (a2) => a2.hls);
|
22333
|
+
Hm = createSelector(V, (a2) => a2.transcriptions);
|
22334
|
+
Cm = createSelector(V, (a2) => a2.sessionId);
|
22335
|
+
Lm = createSelector(V, (a2) => a2.startedAt);
|
22336
|
+
wm = createSelector(V, (a2) => !!a2.isLargeRoom);
|
22337
|
+
Dm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
|
22338
|
+
_m = createSelector(V, (a2) => !!a2.isVBEnabled);
|
22339
|
+
Nm = createSelector(V, (a2) => a2.effectsKey);
|
22340
|
+
la = (a2) => a2.polls;
|
22341
|
+
Bm = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
|
22342
|
+
Ko = (a2) => a2.whiteboards;
|
22343
|
+
Vm = createSelector(Ko, (a2) => Object.values(a2)[0]);
|
22344
|
+
pa = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22345
|
+
jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22346
|
+
ha = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22347
|
+
ma = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22348
|
+
Sa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22349
|
+
ga = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22350
|
+
Ta = (a2 = "audio") => createSelector(pa(a2), (e) => Object.values(e));
|
22351
|
+
fa = (a2 = "audio") => createSelector(pa(a2), jr(a2), (e, t) => {
|
22338
22352
|
if (t.id)
|
22339
22353
|
return e[t.id];
|
22340
22354
|
});
|
22341
|
-
|
22342
|
-
|
22355
|
+
va = { selection: jr("audio"), progress: ha("audio"), currentTime: ma("audio"), playbackRate: Sa("audio"), volume: ga("audio"), list: Ta("audio"), selectedItem: fa("audio") };
|
22356
|
+
Ma = { selection: jr("video"), progress: ha("video"), currentTime: ma("video"), playbackRate: Sa("video"), volume: ga("video"), list: Ta("video"), selectedItem: fa("video") };
|
22343
22357
|
Ht = "HMS-Store:";
|
22344
22358
|
b = class {
|
22345
22359
|
static v(e, ...t) {
|
@@ -22407,127 +22421,127 @@ var init_dist = __esm({
|
|
22407
22421
|
}
|
22408
22422
|
};
|
22409
22423
|
b.level = 0;
|
22410
|
-
|
22424
|
+
Jr = (a2, e) => e;
|
22411
22425
|
Ct = (a2, e) => e;
|
22412
|
-
|
22413
|
-
|
22414
|
-
|
22415
|
-
J = createSelector([j,
|
22416
|
-
|
22417
|
-
|
22426
|
+
ya = (a2, e) => e;
|
22427
|
+
qo = (a2, e) => e;
|
22428
|
+
jo = (a2, e) => e;
|
22429
|
+
J = createSelector([j, Jr], (a2, e) => e ? a2[e] : null);
|
22430
|
+
Qr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
|
22431
|
+
Jo = createSelector([O, Ct], (a2, e) => {
|
22418
22432
|
if (!e)
|
22419
22433
|
return null;
|
22420
22434
|
let t = a2[e];
|
22421
22435
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
22422
22436
|
});
|
22423
|
-
|
22437
|
+
Qo = createSelector([O, Ct], (a2, e) => {
|
22424
22438
|
if (!e)
|
22425
22439
|
return null;
|
22426
22440
|
let t = a2[e];
|
22427
22441
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
22428
22442
|
});
|
22429
|
-
|
22443
|
+
zo = createSelector([O, Ct], (a2, e) => {
|
22430
22444
|
if (!e)
|
22431
22445
|
return null;
|
22432
22446
|
let t = a2[e];
|
22433
22447
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22434
22448
|
});
|
22435
|
-
|
22449
|
+
Yo = createSelector([O, Ct], (a2, e) => {
|
22436
22450
|
if (!e)
|
22437
22451
|
return null;
|
22438
22452
|
let t = a2[e];
|
22439
22453
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22440
22454
|
});
|
22441
|
-
|
22455
|
+
Xo = createSelector([la, jo], (a2, e) => e ? a2[e] : null);
|
22442
22456
|
Z = R(J);
|
22443
|
-
|
22457
|
+
Ym = R(createSelector([$r, qo], (a2, e) => {
|
22444
22458
|
if (a2)
|
22445
22459
|
return e ? a2[e] : a2;
|
22446
22460
|
}));
|
22447
|
-
|
22448
|
-
|
22449
|
-
yi = R(
|
22450
|
-
|
22451
|
-
|
22452
|
-
|
22453
|
-
|
22454
|
-
|
22461
|
+
eS = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
22462
|
+
tS = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.type));
|
22463
|
+
yi = R(Qr);
|
22464
|
+
ka = R(Jo);
|
22465
|
+
iS = R(Qo);
|
22466
|
+
rS = R(zo);
|
22467
|
+
sS = R(Yo);
|
22468
|
+
Zo = R((a2, e) => {
|
22455
22469
|
let t = J(a2, e);
|
22456
22470
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22457
22471
|
return a2.tracks[t.videoTrack];
|
22458
22472
|
});
|
22459
|
-
|
22473
|
+
en = R((a2, e) => {
|
22460
22474
|
let t = J(a2, e);
|
22461
22475
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22462
22476
|
return a2.tracks[t.audioTrack];
|
22463
22477
|
});
|
22464
|
-
|
22478
|
+
oS = R((a2, e) => {
|
22465
22479
|
let t = J(a2, e);
|
22466
22480
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22467
22481
|
});
|
22468
|
-
|
22469
|
-
|
22470
|
-
|
22471
|
-
let t =
|
22472
|
-
return
|
22473
|
-
};
|
22474
|
-
|
22475
|
-
|
22482
|
+
Ea = (a2, e) => e ? a2.speakers[e] : null;
|
22483
|
+
nS = R(createSelector(Ea, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22484
|
+
tn = (a2, e) => {
|
22485
|
+
let t = en(e)(a2);
|
22486
|
+
return Ea(a2, t == null ? void 0 : t.id);
|
22487
|
+
};
|
22488
|
+
cS = R(createSelector(tn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22489
|
+
dS = R((a2, e) => {
|
22476
22490
|
if (e)
|
22477
22491
|
return a2.connectionQualities[e];
|
22478
22492
|
});
|
22479
|
-
|
22493
|
+
lS = R((a2, e) => {
|
22480
22494
|
let t = J(a2, e);
|
22481
22495
|
if (t) {
|
22482
22496
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
|
22483
22497
|
return i ? a2.tracks[i] : void 0;
|
22484
22498
|
}
|
22485
22499
|
});
|
22486
|
-
|
22500
|
+
uS = R(createSelector(O, J, (a2, e) => {
|
22487
22501
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22488
22502
|
let r = a2[i];
|
22489
22503
|
return mt(r) && ht(r);
|
22490
22504
|
});
|
22491
22505
|
return t ? a2[t] : void 0;
|
22492
22506
|
}));
|
22493
|
-
|
22507
|
+
pS = R(createSelector(O, J, (a2, e) => {
|
22494
22508
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22495
22509
|
let r = a2[i];
|
22496
22510
|
return mt(r) && pt(r);
|
22497
22511
|
});
|
22498
22512
|
return t ? a2[t] : void 0;
|
22499
22513
|
}));
|
22500
|
-
|
22514
|
+
hS = R(createSelector(O, J, (a2, e) => {
|
22501
22515
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22502
22516
|
let r = a2[i];
|
22503
22517
|
return si(r) && pt(r);
|
22504
22518
|
});
|
22505
22519
|
return t ? a2[t] : void 0;
|
22506
22520
|
}));
|
22507
|
-
|
22508
|
-
|
22509
|
-
|
22521
|
+
Pa = R(createSelector(O, J, (a2, e) => Ue(a2, e)));
|
22522
|
+
ba = (a2) => createSelector(Pa(a2), (e) => e.audio);
|
22523
|
+
SS = R((a2, e) => {
|
22510
22524
|
let t = J(a2, e);
|
22511
22525
|
return je(a2, t == null ? void 0 : t.audioTrack);
|
22512
22526
|
});
|
22513
|
-
|
22527
|
+
gS = R((a2, e) => {
|
22514
22528
|
let t = J(a2, e);
|
22515
22529
|
return je(a2, t == null ? void 0 : t.videoTrack);
|
22516
22530
|
});
|
22517
|
-
|
22531
|
+
Aa = R((a2, e) => {
|
22518
22532
|
if (e && a2.tracks[e])
|
22519
22533
|
return a2.tracks[e].volume === 0;
|
22520
22534
|
});
|
22521
|
-
|
22535
|
+
TS = R((a2, e) => {
|
22522
22536
|
let t = J(a2, e);
|
22523
|
-
return
|
22537
|
+
return Aa(t == null ? void 0 : t.audioTrack)(a2);
|
22524
22538
|
});
|
22525
|
-
|
22526
|
-
let t =
|
22527
|
-
return
|
22539
|
+
fS = R((a2, e) => {
|
22540
|
+
let t = ba(e)(a2);
|
22541
|
+
return Aa(t == null ? void 0 : t.id)(a2);
|
22528
22542
|
});
|
22529
|
-
|
22530
|
-
let t =
|
22543
|
+
Ia = R((a2, e) => {
|
22544
|
+
let t = Qr(a2, e);
|
22531
22545
|
if (t) {
|
22532
22546
|
if (t.type !== "audio") {
|
22533
22547
|
b.w("Please pass audio track here");
|
@@ -22536,16 +22550,16 @@ var init_dist = __esm({
|
|
22536
22550
|
return t.volume;
|
22537
22551
|
}
|
22538
22552
|
});
|
22539
|
-
|
22553
|
+
vS = R((a2, e) => {
|
22540
22554
|
let t = J(a2, e);
|
22541
|
-
return
|
22555
|
+
return Ia(t == null ? void 0 : t.audioTrack)(a2);
|
22542
22556
|
});
|
22543
|
-
|
22544
|
-
let t =
|
22545
|
-
return
|
22557
|
+
MS = R((a2, e) => {
|
22558
|
+
let t = ba(e)(a2);
|
22559
|
+
return Ia(t == null ? void 0 : t.id)(a2);
|
22546
22560
|
});
|
22547
|
-
|
22548
|
-
let t =
|
22561
|
+
yS = R((a2, e) => {
|
22562
|
+
let t = Qr(a2, e);
|
22549
22563
|
if (t) {
|
22550
22564
|
if (t.type !== "video") {
|
22551
22565
|
b.w("Please pass video track here");
|
@@ -22554,50 +22568,50 @@ var init_dist = __esm({
|
|
22554
22568
|
return t.layer;
|
22555
22569
|
}
|
22556
22570
|
});
|
22557
|
-
|
22571
|
+
Ra = createSelector([Rt, Ee, Jr], (a2, e, t) => {
|
22558
22572
|
if (t)
|
22559
22573
|
return a2.filter((i) => {
|
22560
22574
|
var r;
|
22561
22575
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22562
22576
|
});
|
22563
22577
|
});
|
22564
|
-
|
22578
|
+
Ha = createSelector([Rt, ya], (a2, e) => {
|
22565
22579
|
if (e)
|
22566
22580
|
return a2.filter((t) => {
|
22567
22581
|
var i, r;
|
22568
22582
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22569
22583
|
});
|
22570
22584
|
});
|
22571
|
-
|
22585
|
+
rn = createSelector(Rt, (a2) => a2.filter((e) => {
|
22572
22586
|
var t;
|
22573
22587
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22574
22588
|
}));
|
22575
|
-
|
22576
|
-
|
22577
|
-
|
22578
|
-
|
22579
|
-
|
22580
|
-
|
22581
|
-
|
22582
|
-
|
22583
|
-
|
22589
|
+
sn = createSelector([Ha, ya], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22590
|
+
an = createSelector([Ra, Jr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22591
|
+
kS = createSelector(rn, (a2) => a2.filter((e) => !e.read).length);
|
22592
|
+
ES = R(Ra);
|
22593
|
+
PS = R(Ha);
|
22594
|
+
bS = R(sn);
|
22595
|
+
AS = R(an);
|
22596
|
+
Ca = R(Xo);
|
22597
|
+
US = createSelector([j, O], (a2, e) => Object.values(a2).map((i) => {
|
22584
22598
|
var r;
|
22585
22599
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22586
22600
|
}));
|
22587
|
-
|
22588
|
-
|
22589
|
-
|
22590
|
-
|
22591
|
-
|
22601
|
+
on = (a2) => a2.roleChangeRequests[0] || null;
|
22602
|
+
BS = createSelector([on, j, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22603
|
+
VS = createSelector([at], (a2) => St(a2));
|
22604
|
+
FS = createSelector([ca], (a2) => St(a2));
|
22605
|
+
cn = createSelector([X, O], (a2, e) => {
|
22592
22606
|
let t = null;
|
22593
22607
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22594
22608
|
});
|
22595
|
-
|
22609
|
+
dn = createSelector([ne, O], (a2, e) => {
|
22596
22610
|
let t = null;
|
22597
22611
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22598
22612
|
});
|
22599
|
-
|
22600
|
-
|
22613
|
+
pn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(pn || {});
|
22614
|
+
es = class {
|
22601
22615
|
constructor() {
|
22602
22616
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22603
22617
|
this.failedEvents = new me("client-events");
|
@@ -22616,7 +22630,7 @@ var init_dist = __esm({
|
|
22616
22630
|
this.addEventToStorage(e);
|
22617
22631
|
return;
|
22618
22632
|
}
|
22619
|
-
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" ?
|
22633
|
+
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" ? js : Js;
|
22620
22634
|
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) => {
|
22621
22635
|
if (r.status === 401) {
|
22622
22636
|
this.removeFromStorage(e);
|
@@ -22642,7 +22656,7 @@ var init_dist = __esm({
|
|
22642
22656
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22643
22657
|
}
|
22644
22658
|
};
|
22645
|
-
be = new
|
22659
|
+
be = new es();
|
22646
22660
|
Vt = class {
|
22647
22661
|
static handleError(e) {
|
22648
22662
|
if (e.status === 404)
|
@@ -22660,7 +22674,7 @@ var init_dist = __esm({
|
|
22660
22674
|
this.handleError(d);
|
22661
22675
|
return;
|
22662
22676
|
} catch (u) {
|
22663
|
-
throw l.e(this.TAG, "error", u.message, d.status), u instanceof
|
22677
|
+
throw l.e(this.TAG, "error", u.message, d.status), u instanceof v ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
|
22664
22678
|
}
|
22665
22679
|
} catch (d) {
|
22666
22680
|
let u = d;
|
@@ -22670,65 +22684,66 @@ var init_dist = __esm({
|
|
22670
22684
|
}
|
22671
22685
|
};
|
22672
22686
|
Vt.TAG = "[FeedbackService]";
|
22687
|
+
ts = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(ts || {});
|
22673
22688
|
Q = ((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))(Q || {});
|
22674
22689
|
sr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(sr || {});
|
22675
22690
|
lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
|
22676
|
-
|
22677
|
-
|
22678
|
-
|
22679
|
-
|
22680
|
-
|
22681
|
-
|
22682
|
-
|
22683
|
-
|
22684
|
-
|
22685
|
-
|
22691
|
+
wn = (a2) => a2.localPeer.id;
|
22692
|
+
Dn = (a2) => a2.localPeer.audioTrack;
|
22693
|
+
_n = (a2) => a2.localPeer.videoTrack;
|
22694
|
+
Nn = (a2, e) => e;
|
22695
|
+
Za = (a2, e) => e;
|
22696
|
+
On = (a2) => a2.remoteTrackStats;
|
22697
|
+
eo = (a2) => a2.peerStats;
|
22698
|
+
as = (a2) => a2.localTrackStats;
|
22699
|
+
Ie = createSelector([eo, wn], (a2, e) => a2[e]);
|
22700
|
+
xn = createSelector(Ie, (a2) => {
|
22686
22701
|
var e;
|
22687
22702
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22688
22703
|
});
|
22689
|
-
|
22704
|
+
Un = createSelector(Ie, (a2) => {
|
22690
22705
|
var e;
|
22691
22706
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22692
22707
|
});
|
22693
|
-
|
22708
|
+
Bn = createSelector(Ie, (a2) => {
|
22694
22709
|
var e;
|
22695
22710
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22696
22711
|
});
|
22697
|
-
|
22712
|
+
Vn = createSelector(Ie, (a2) => {
|
22698
22713
|
var e;
|
22699
22714
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22700
22715
|
});
|
22701
|
-
|
22716
|
+
Fn = createSelector(Ie, (a2) => {
|
22702
22717
|
var e;
|
22703
22718
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22704
22719
|
});
|
22705
|
-
|
22720
|
+
Gn = createSelector(Ie, (a2) => {
|
22706
22721
|
var e;
|
22707
22722
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22708
22723
|
});
|
22709
|
-
|
22724
|
+
Wn = createSelector(Ie, (a2) => {
|
22710
22725
|
var e;
|
22711
22726
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22712
22727
|
});
|
22713
|
-
|
22728
|
+
$n = createSelector(Ie, (a2) => {
|
22714
22729
|
var e;
|
22715
22730
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22716
22731
|
});
|
22717
|
-
|
22718
|
-
|
22719
|
-
|
22720
|
-
|
22721
|
-
|
22722
|
-
|
22732
|
+
Kn = createSelector([eo, Nn], (a2, e) => e ? a2[e] : void 0);
|
22733
|
+
qn = createSelector([On, Za], (a2, e) => e ? a2[e] : void 0);
|
22734
|
+
os = createSelector([as, Za], (a2, e) => e ? a2[e] : void 0);
|
22735
|
+
jn = R(Kn);
|
22736
|
+
Jn = R(qn);
|
22737
|
+
Qn = createSelector([as, Dn], (a2, e) => {
|
22723
22738
|
var t;
|
22724
22739
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22725
22740
|
});
|
22726
|
-
|
22727
|
-
|
22741
|
+
zn = R(createSelector(os, (a2) => a2 == null ? void 0 : a2[0]));
|
22742
|
+
Yn = createSelector([as, _n], (a2, e) => {
|
22728
22743
|
var t;
|
22729
22744
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22730
22745
|
});
|
22731
|
-
|
22746
|
+
Xn = R(createSelector(os, (a2) => a2));
|
22732
22747
|
}
|
22733
22748
|
});
|
22734
22749
|
|
@@ -22853,7 +22868,7 @@ var init_StreamActions = __esm({
|
|
22853
22868
|
};
|
22854
22869
|
RecordingPauseStatus = () => {
|
22855
22870
|
const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
|
22856
|
-
if (recording.hls && recording.hls.state ===
|
22871
|
+
if (recording.hls && recording.hls.state === _s.PAUSED) {
|
22857
22872
|
return /* @__PURE__ */ import_react88.default.createElement(
|
22858
22873
|
Tooltip,
|
22859
22874
|
{
|
@@ -28261,7 +28276,7 @@ var init_Chat = __esm({
|
|
28261
28276
|
const listRef = (0, import_react153.useRef)(null);
|
28262
28277
|
const hmsActions = (0, import_react_sdk74.useHMSActions)();
|
28263
28278
|
const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
|
28264
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(
|
28279
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(Xm("chatState" /* CHAT_STATE */)) || {};
|
28265
28280
|
const isMobile = (0, import_react_use26.useMedia)(config.media.md);
|
28266
28281
|
const isMobileHLSStream = useMobileHLSStream();
|
28267
28282
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -28351,7 +28366,7 @@ var init_Chat = __esm({
|
|
28351
28366
|
scrollToBottom,
|
28352
28367
|
listRef
|
28353
28368
|
}) => {
|
28354
|
-
const unreadCount = (0, import_react_sdk74.useHMSStore)(
|
28369
|
+
const unreadCount = (0, import_react_sdk74.useHMSStore)(Mm);
|
28355
28370
|
if (!unreadCount || !listRef.current) {
|
28356
28371
|
return null;
|
28357
28372
|
}
|
@@ -29362,7 +29377,9 @@ var init_VBOption = __esm({
|
|
29362
29377
|
bg: "$surface_bright",
|
29363
29378
|
border: `4px solid ${isActive ? "$primary_default" : "$surface_dim"}`,
|
29364
29379
|
cursor: "pointer",
|
29365
|
-
"
|
29380
|
+
"@media (hover:hover)": {
|
29381
|
+
"&:hover": { border: "4px solid $primary_dim" }
|
29382
|
+
}
|
29366
29383
|
}, mediaURL ? { height: "$20", backgroundImage: `url("${mediaURL}")`, backgroundSize: "cover" } : {}),
|
29367
29384
|
onClick: () => __async(void 0, null, function* () {
|
29368
29385
|
yield onClick == null ? void 0 : onClick();
|
@@ -29455,12 +29472,12 @@ var init_VBPicker = __esm({
|
|
29455
29472
|
const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
|
29456
29473
|
const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
|
29457
29474
|
const isEffectsSupported = VBHandler.isEffectsSupported();
|
29458
|
-
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(
|
29459
|
-
const effectsKey = (0, import_react_sdk82.useHMSStore)(
|
29475
|
+
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Dm);
|
29476
|
+
const effectsKey = (0, import_react_sdk82.useHMSStore)(Nm);
|
29460
29477
|
const isMobile = (0, import_react_use32.useMedia)(config.media.md);
|
29461
29478
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
29462
29479
|
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
29463
|
-
const background = (0, import_react_sdk82.useHMSStore)(
|
29480
|
+
const background = (0, import_react_sdk82.useHMSStore)(Ym(APP_DATA.background));
|
29464
29481
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
29465
29482
|
const pluginLoadingRef = (0, import_react163.useRef)(false);
|
29466
29483
|
const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
|
@@ -29573,6 +29590,9 @@ var init_VBPicker = __esm({
|
|
29573
29590
|
onClick: () => __async(void 0, null, function* () {
|
29574
29591
|
yield VBHandler.removeEffects();
|
29575
29592
|
hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.NONE);
|
29593
|
+
if (isMobile) {
|
29594
|
+
toggleVB();
|
29595
|
+
}
|
29576
29596
|
}),
|
29577
29597
|
supported: true
|
29578
29598
|
},
|
@@ -29616,6 +29636,9 @@ var init_VBPicker = __esm({
|
|
29616
29636
|
var _a8;
|
29617
29637
|
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
|
29618
29638
|
hmsActions.setAppData(APP_DATA.background, mediaURL);
|
29639
|
+
if (isMobile) {
|
29640
|
+
toggleVB();
|
29641
|
+
}
|
29619
29642
|
}),
|
29620
29643
|
supported: true
|
29621
29644
|
})),
|
@@ -30837,9 +30860,9 @@ var init_ProminenceLayout = __esm({
|
|
30837
30860
|
rootCSS: __spreadProps(__spreadValues({
|
30838
30861
|
padding: 0,
|
30839
30862
|
maxWidth: 240,
|
30840
|
-
aspectRatio: 16 / 9
|
30863
|
+
aspectRatio: "16 / 9"
|
30841
30864
|
}, hasSidebar ? { w: "100%" } : { h: "100%" }), {
|
30842
|
-
"@md": { aspectRatio: 1 }
|
30865
|
+
"@md": { aspectRatio: "1" }
|
30843
30866
|
}),
|
30844
30867
|
objectFit: "contain"
|
30845
30868
|
}, tileLayoutProps)
|
@@ -31394,9 +31417,9 @@ var init_ScreenshareLayout = __esm({
|
|
31394
31417
|
}
|
31395
31418
|
});
|
31396
31419
|
|
31397
|
-
// ../../../../../../../tmp/tmp-
|
31398
|
-
var
|
31399
|
-
"../../../../../../../tmp/tmp-
|
31420
|
+
// ../../../../../../../tmp/tmp-2839-nTiwFdRGP7P7/1926c205b3e0/index.css
|
31421
|
+
var init_c205b3e0 = __esm({
|
31422
|
+
"../../../../../../../tmp/tmp-2839-nTiwFdRGP7P7/1926c205b3e0/index.css"() {
|
31400
31423
|
}
|
31401
31424
|
});
|
31402
31425
|
|
@@ -31418,7 +31441,7 @@ var init_WhiteboardLayout = __esm({
|
|
31418
31441
|
init_ProminenceLayout();
|
31419
31442
|
init_useUISettings();
|
31420
31443
|
init_constants();
|
31421
|
-
|
31444
|
+
init_c205b3e0();
|
31422
31445
|
WhiteboardEmbed = () => {
|
31423
31446
|
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31424
31447
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
|
@@ -34132,13 +34155,13 @@ var init_common2 = __esm({
|
|
34132
34155
|
if (!audioFiltered) {
|
34133
34156
|
return null;
|
34134
34157
|
}
|
34135
|
-
const deviceCategory = (0, import_react_sdk103.getAudioDeviceCategory)(currentSelection.label);
|
34158
|
+
const deviceCategory = (0, import_react_sdk103.getAudioDeviceCategory)(currentSelection == null ? void 0 : currentSelection.label);
|
34136
34159
|
let AudioIcon = /* @__PURE__ */ import_react209.default.createElement(import_react_icons100.SpeakerIcon, null);
|
34137
|
-
if (deviceCategory ===
|
34160
|
+
if (deviceCategory === import_react_sdk103.HMSAudioDeviceCategory.BLUETOOTH) {
|
34138
34161
|
AudioIcon = /* @__PURE__ */ import_react209.default.createElement(import_react_icons100.BluetoothIcon, null);
|
34139
|
-
} else if (deviceCategory ===
|
34162
|
+
} else if (deviceCategory === import_react_sdk103.HMSAudioDeviceCategory.WIRED) {
|
34140
34163
|
AudioIcon = /* @__PURE__ */ import_react209.default.createElement(import_react_icons100.HeadphonesIcon, null);
|
34141
|
-
} else if (deviceCategory ===
|
34164
|
+
} else if (deviceCategory === import_react_sdk103.HMSAudioDeviceCategory.EARPIECE) {
|
34142
34165
|
AudioIcon = /* @__PURE__ */ import_react209.default.createElement(import_react_icons100.TelePhoneIcon, null);
|
34143
34166
|
}
|
34144
34167
|
return /* @__PURE__ */ import_react209.default.createElement(
|
@@ -34167,7 +34190,7 @@ var init_common2 = __esm({
|
|
34167
34190
|
yield hmsActions.refreshDevices();
|
34168
34191
|
})
|
34169
34192
|
},
|
34170
|
-
/* @__PURE__ */ import_react209.default.createElement(IconButton_default, null, AudioIcon
|
34193
|
+
/* @__PURE__ */ import_react209.default.createElement(IconButton_default, null, AudioIcon)
|
34171
34194
|
)
|
34172
34195
|
);
|
34173
34196
|
};
|
@@ -35470,33 +35493,174 @@ var init_ChatNotifications = __esm({
|
|
35470
35493
|
}
|
35471
35494
|
});
|
35472
35495
|
|
35496
|
+
// src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx
|
35497
|
+
var import_react224, import_react_sdk112, DeviceChangeNotifications;
|
35498
|
+
var init_DeviceChangeNotifications = __esm({
|
35499
|
+
"src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx"() {
|
35500
|
+
"use strict";
|
35501
|
+
init_define_process_env();
|
35502
|
+
import_react224 = require("react");
|
35503
|
+
import_react_sdk112 = require("@100mslive/react-sdk");
|
35504
|
+
init_ToastManager();
|
35505
|
+
DeviceChangeNotifications = () => {
|
35506
|
+
const notification = (0, import_react_sdk112.useHMSNotifications)(import_react_sdk112.HMSNotificationTypes.DEVICE_CHANGE_UPDATE);
|
35507
|
+
(0, import_react224.useEffect)(() => {
|
35508
|
+
if (notification) {
|
35509
|
+
ToastManager.addToast({
|
35510
|
+
title: notification.message
|
35511
|
+
});
|
35512
|
+
}
|
35513
|
+
}, [notification]);
|
35514
|
+
return null;
|
35515
|
+
};
|
35516
|
+
}
|
35517
|
+
});
|
35518
|
+
|
35519
|
+
// src/Prebuilt/components/Notifications/DeviceInUseError.tsx
|
35520
|
+
function DeviceInUseError() {
|
35521
|
+
const notification = (0, import_react_sdk113.useHMSNotifications)(import_react_sdk113.HMSNotificationTypes.ERROR);
|
35522
|
+
const [showDeviceInUseModal, setShowDeviceInUseModal] = (0, import_react225.useState)(false);
|
35523
|
+
const [deviceType, setDeviceType] = (0, import_react225.useState)("");
|
35524
|
+
(0, import_react225.useEffect)(() => {
|
35525
|
+
const error = notification == null ? void 0 : notification.data;
|
35526
|
+
if (!error || error.code !== 3003) {
|
35527
|
+
return;
|
35528
|
+
}
|
35529
|
+
const errorMessage = error == null ? void 0 : error.message;
|
35530
|
+
ToastManager.addToast({
|
35531
|
+
title: `Error: ${errorMessage} - ${error == null ? void 0 : error.description}`,
|
35532
|
+
action: /* @__PURE__ */ import_react225.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "max-content" }, onClick: () => setShowDeviceInUseModal(true) }, "Help")
|
35533
|
+
});
|
35534
|
+
const hasAudio = errorMessage.includes("audio");
|
35535
|
+
const hasVideo = errorMessage.includes("video");
|
35536
|
+
const hasScreen = errorMessage.includes("screen");
|
35537
|
+
if (hasAudio && hasVideo) {
|
35538
|
+
setDeviceType("camera and microphone");
|
35539
|
+
} else if (hasAudio) {
|
35540
|
+
setDeviceType("microphone");
|
35541
|
+
} else if (hasVideo) {
|
35542
|
+
setDeviceType("camera");
|
35543
|
+
} else if (hasScreen) {
|
35544
|
+
setDeviceType("screen");
|
35545
|
+
}
|
35546
|
+
}, [notification]);
|
35547
|
+
return /* @__PURE__ */ import_react225.default.createElement(
|
35548
|
+
Dialog.Root,
|
35549
|
+
{
|
35550
|
+
open: showDeviceInUseModal,
|
35551
|
+
onOpenChange: () => {
|
35552
|
+
setShowDeviceInUseModal(false);
|
35553
|
+
}
|
35554
|
+
},
|
35555
|
+
/* @__PURE__ */ import_react225.default.createElement(DialogContent, { title: "Device Access Error" }, /* @__PURE__ */ import_react225.default.createElement(DialogRow, null, /* @__PURE__ */ import_react225.default.createElement(Text, { variant: "body2" }, "We weren't able to access your ", deviceType, " since it's either in use by another application or is not configured properly. Please follow the following instructions to resolve this issue.")), /* @__PURE__ */ import_react225.default.createElement("ol", null, /* @__PURE__ */ import_react225.default.createElement(
|
35556
|
+
Instruction,
|
35557
|
+
{
|
35558
|
+
description: `Please check if the ${deviceType} device(s) are in use by another browser or application and close it.`
|
35559
|
+
}
|
35560
|
+
), /* @__PURE__ */ import_react225.default.createElement(
|
35561
|
+
Instruction,
|
35562
|
+
{
|
35563
|
+
description: `Go to Browser Settings > Privacy and security > Site settings > ${deviceType} and check if your preferred device is selected as default.`
|
35564
|
+
}
|
35565
|
+
), /* @__PURE__ */ import_react225.default.createElement(Instruction, { description: "Try restarting the browser." }), /* @__PURE__ */ import_react225.default.createElement(Instruction, { description: "Try disconnecting and reconnecting the external device if your intention is to use one." })))
|
35566
|
+
);
|
35567
|
+
}
|
35568
|
+
var import_react225, import_react_sdk113, Instruction;
|
35569
|
+
var init_DeviceInUseError = __esm({
|
35570
|
+
"src/Prebuilt/components/Notifications/DeviceInUseError.tsx"() {
|
35571
|
+
"use strict";
|
35572
|
+
init_define_process_env();
|
35573
|
+
import_react225 = __toESM(require("react"));
|
35574
|
+
import_react_sdk113 = require("@100mslive/react-sdk");
|
35575
|
+
init_src();
|
35576
|
+
init_DialogContent2();
|
35577
|
+
init_ToastManager();
|
35578
|
+
Instruction = ({ description }) => /* @__PURE__ */ import_react225.default.createElement("li", null, /* @__PURE__ */ import_react225.default.createElement(DialogRow, { css: { ml: "$4" } }, /* @__PURE__ */ import_react225.default.createElement(Text, { variant: "body2" }, description)));
|
35579
|
+
}
|
35580
|
+
});
|
35581
|
+
|
35582
|
+
// src/Prebuilt/components/Notifications/ErrorNotifications.tsx
|
35583
|
+
var import_react226, import_react_sdk114, import_react_icons107, ErrorNotifications;
|
35584
|
+
var init_ErrorNotifications = __esm({
|
35585
|
+
"src/Prebuilt/components/Notifications/ErrorNotifications.tsx"() {
|
35586
|
+
"use strict";
|
35587
|
+
init_define_process_env();
|
35588
|
+
import_react226 = __toESM(require("react"));
|
35589
|
+
import_react_sdk114 = require("@100mslive/react-sdk");
|
35590
|
+
import_react_icons107 = require("@100mslive/react-icons");
|
35591
|
+
init_Layout();
|
35592
|
+
init_ToastManager();
|
35593
|
+
init_useUISettings();
|
35594
|
+
ErrorNotifications = () => {
|
35595
|
+
const notification = (0, import_react_sdk114.useHMSNotifications)(import_react_sdk114.HMSNotificationTypes.ERROR);
|
35596
|
+
const subscribedNotifications = useSubscribedNotifications() || {};
|
35597
|
+
(0, import_react226.useEffect)(() => {
|
35598
|
+
if (!notification || !notification.data)
|
35599
|
+
return;
|
35600
|
+
const { isTerminal, action, code, message, description } = notification.data;
|
35601
|
+
if (isTerminal && action !== "INIT") {
|
35602
|
+
if ([500, 6008].includes(code)) {
|
35603
|
+
ToastManager.addToast({
|
35604
|
+
title: `Error: ${message}`
|
35605
|
+
});
|
35606
|
+
} else if (message === "role limit reached") {
|
35607
|
+
ToastManager.addToast({
|
35608
|
+
title: "The room is currently full, try joining later",
|
35609
|
+
close: true,
|
35610
|
+
icon: /* @__PURE__ */ import_react226.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react226.default.createElement(import_react_icons107.GroupIcon, null))
|
35611
|
+
});
|
35612
|
+
} else {
|
35613
|
+
ToastManager.addToast({
|
35614
|
+
title: message || "We couldn\u2019t reconnect you. When you\u2019re back online, try joining the room.",
|
35615
|
+
close: false
|
35616
|
+
});
|
35617
|
+
}
|
35618
|
+
return;
|
35619
|
+
}
|
35620
|
+
if ([3008, 3001, 3011].includes(code)) {
|
35621
|
+
return;
|
35622
|
+
}
|
35623
|
+
if (action === "INIT") {
|
35624
|
+
return;
|
35625
|
+
}
|
35626
|
+
if (!subscribedNotifications.ERROR)
|
35627
|
+
return;
|
35628
|
+
ToastManager.addToast({
|
35629
|
+
title: `Error: ${message} - ${description}`
|
35630
|
+
});
|
35631
|
+
}, [notification, subscribedNotifications.ERROR]);
|
35632
|
+
return null;
|
35633
|
+
};
|
35634
|
+
}
|
35635
|
+
});
|
35636
|
+
|
35473
35637
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
35474
|
-
var
|
35638
|
+
var import_react227, import_react_sdk115, import_react_icons108, ChatAction, HandRaiseAction, ToastConfig;
|
35475
35639
|
var init_ToastConfig = __esm({
|
35476
35640
|
"src/Prebuilt/components/Toast/ToastConfig.jsx"() {
|
35477
35641
|
"use strict";
|
35478
35642
|
init_define_process_env();
|
35479
|
-
|
35480
|
-
|
35481
|
-
|
35643
|
+
import_react227 = __toESM(require("react"));
|
35644
|
+
import_react_sdk115 = require("@100mslive/react-sdk");
|
35645
|
+
import_react_icons108 = require("@100mslive/react-icons");
|
35482
35646
|
init_Button2();
|
35483
35647
|
init_roomLayoutProvider();
|
35484
35648
|
init_useSidepane();
|
35485
35649
|
init_constants();
|
35486
|
-
ChatAction =
|
35650
|
+
ChatAction = import_react227.default.forwardRef((_, ref) => {
|
35487
35651
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
35488
35652
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
35489
35653
|
if (isChatOpen) {
|
35490
35654
|
return null;
|
35491
35655
|
}
|
35492
|
-
return /* @__PURE__ */
|
35656
|
+
return /* @__PURE__ */ import_react227.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
|
35493
35657
|
});
|
35494
|
-
HandRaiseAction =
|
35658
|
+
HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
35495
35659
|
var _a7, _b7, _c;
|
35496
|
-
const hmsActions = (0,
|
35660
|
+
const hmsActions = (0, import_react_sdk115.useHMSActions)();
|
35497
35661
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
35498
35662
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
35499
|
-
const peer = (0,
|
35663
|
+
const peer = (0, import_react_sdk115.useHMSStore)((0, import_react_sdk115.selectPeerByID)(id));
|
35500
35664
|
const layout = useRoomLayout();
|
35501
35665
|
const {
|
35502
35666
|
bring_to_stage_label,
|
@@ -35504,7 +35668,7 @@ var init_ToastConfig = __esm({
|
|
35504
35668
|
off_stage_roles = [],
|
35505
35669
|
skip_preview_for_role_change = false
|
35506
35670
|
} = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
|
35507
|
-
const onClickHandler = (0,
|
35671
|
+
const onClickHandler = (0, import_react227.useCallback)(() => __async(void 0, null, function* () {
|
35508
35672
|
if (isSingleHandRaise) {
|
35509
35673
|
hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
35510
35674
|
if (skip_preview_for_role_change) {
|
@@ -35525,7 +35689,7 @@ var init_ToastConfig = __esm({
|
|
35525
35689
|
if (isSingleHandRaise && (!peer || !off_stage_roles.includes(peer.roleName))) {
|
35526
35690
|
return null;
|
35527
35691
|
}
|
35528
|
-
return /* @__PURE__ */
|
35692
|
+
return /* @__PURE__ */ import_react227.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
|
35529
35693
|
});
|
35530
35694
|
ToastConfig = {
|
35531
35695
|
PEER_JOINED: {
|
@@ -35533,13 +35697,13 @@ var init_ToastConfig = __esm({
|
|
35533
35697
|
var _a7;
|
35534
35698
|
return {
|
35535
35699
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
|
35536
|
-
icon: /* @__PURE__ */
|
35700
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleAddIcon, null)
|
35537
35701
|
};
|
35538
35702
|
},
|
35539
35703
|
multiple: function(notifications) {
|
35540
35704
|
return {
|
35541
35705
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
35542
|
-
icon: /* @__PURE__ */
|
35706
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleAddIcon, null)
|
35543
35707
|
};
|
35544
35708
|
}
|
35545
35709
|
},
|
@@ -35548,13 +35712,13 @@ var init_ToastConfig = __esm({
|
|
35548
35712
|
var _a7;
|
35549
35713
|
return {
|
35550
35714
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
|
35551
|
-
icon: /* @__PURE__ */
|
35715
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleRemoveIcon, null)
|
35552
35716
|
};
|
35553
35717
|
},
|
35554
35718
|
multiple: function(notifications) {
|
35555
35719
|
return {
|
35556
35720
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
35557
|
-
icon: /* @__PURE__ */
|
35721
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleRemoveIcon, null)
|
35558
35722
|
};
|
35559
35723
|
}
|
35560
35724
|
},
|
@@ -35563,7 +35727,7 @@ var init_ToastConfig = __esm({
|
|
35563
35727
|
var _a7;
|
35564
35728
|
return {
|
35565
35729
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
35566
|
-
icon: /* @__PURE__ */
|
35730
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
|
35567
35731
|
};
|
35568
35732
|
},
|
35569
35733
|
multiple: (notifications) => {
|
@@ -35574,7 +35738,7 @@ var init_ToastConfig = __esm({
|
|
35574
35738
|
})).size;
|
35575
35739
|
return {
|
35576
35740
|
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
35577
|
-
icon: /* @__PURE__ */
|
35741
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
|
35578
35742
|
};
|
35579
35743
|
}
|
35580
35744
|
},
|
@@ -35583,8 +35747,8 @@ var init_ToastConfig = __esm({
|
|
35583
35747
|
var _a7, _b7;
|
35584
35748
|
return {
|
35585
35749
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
35586
|
-
icon: /* @__PURE__ */
|
35587
|
-
action: /* @__PURE__ */
|
35750
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
|
35751
|
+
action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
35588
35752
|
};
|
35589
35753
|
},
|
35590
35754
|
multiple: (notifications) => {
|
@@ -35595,8 +35759,8 @@ var init_ToastConfig = __esm({
|
|
35595
35759
|
})).size;
|
35596
35760
|
return {
|
35597
35761
|
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
35598
|
-
icon: /* @__PURE__ */
|
35599
|
-
action: /* @__PURE__ */
|
35762
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
|
35763
|
+
action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
35600
35764
|
};
|
35601
35765
|
}
|
35602
35766
|
},
|
@@ -35605,15 +35769,15 @@ var init_ToastConfig = __esm({
|
|
35605
35769
|
var _a7;
|
35606
35770
|
return {
|
35607
35771
|
title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
|
35608
|
-
icon: /* @__PURE__ */
|
35609
|
-
action: /* @__PURE__ */
|
35772
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ChatUnreadIcon, null),
|
35773
|
+
action: /* @__PURE__ */ import_react227.default.createElement(ChatAction, null)
|
35610
35774
|
};
|
35611
35775
|
},
|
35612
35776
|
multiple: (notifications) => {
|
35613
35777
|
return {
|
35614
35778
|
title: `${notifications.length} new messages`,
|
35615
|
-
icon: /* @__PURE__ */
|
35616
|
-
action: /* @__PURE__ */
|
35779
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ChatUnreadIcon, null),
|
35780
|
+
action: /* @__PURE__ */ import_react227.default.createElement(ChatAction, null)
|
35617
35781
|
};
|
35618
35782
|
}
|
35619
35783
|
},
|
@@ -35621,7 +35785,7 @@ var init_ToastConfig = __esm({
|
|
35621
35785
|
single: (online) => {
|
35622
35786
|
return {
|
35623
35787
|
title: `You are now ${online ? "online" : "connected"}`,
|
35624
|
-
icon: /* @__PURE__ */
|
35788
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ConnectivityIcon, null),
|
35625
35789
|
variant: "success",
|
35626
35790
|
duration: 3e3
|
35627
35791
|
};
|
@@ -35633,7 +35797,7 @@ var init_ToastConfig = __esm({
|
|
35633
35797
|
title: `You are offline for now. while we try to reconnect, please check
|
35634
35798
|
your internet connection. ${message}.
|
35635
35799
|
`,
|
35636
|
-
icon: /* @__PURE__ */
|
35800
|
+
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PoorConnectivityIcon, null),
|
35637
35801
|
variant: "warning",
|
35638
35802
|
duration: 3e4
|
35639
35803
|
};
|
@@ -35713,14 +35877,14 @@ var init_ToastBatcher = __esm({
|
|
35713
35877
|
});
|
35714
35878
|
|
35715
35879
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
35716
|
-
var
|
35880
|
+
var import_react228, import_react_use57, import_react_sdk116, HandRaisedNotifications;
|
35717
35881
|
var init_HandRaisedNotifications = __esm({
|
35718
35882
|
"src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
|
35719
35883
|
"use strict";
|
35720
35884
|
init_define_process_env();
|
35721
|
-
|
35885
|
+
import_react228 = require("react");
|
35722
35886
|
import_react_use57 = require("react-use");
|
35723
|
-
|
35887
|
+
import_react_sdk116 = require("@100mslive/react-sdk");
|
35724
35888
|
init_roomLayoutProvider();
|
35725
35889
|
init_ToastBatcher();
|
35726
35890
|
init_useRoomLayoutScreen();
|
@@ -35728,24 +35892,24 @@ var init_HandRaisedNotifications = __esm({
|
|
35728
35892
|
init_constants();
|
35729
35893
|
HandRaisedNotifications = () => {
|
35730
35894
|
var _a7, _b7;
|
35731
|
-
const notification = (0,
|
35732
|
-
const roomState = (0,
|
35733
|
-
const vanillaStore = (0,
|
35895
|
+
const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.HAND_RAISE_CHANGED);
|
35896
|
+
const roomState = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectRoomState);
|
35897
|
+
const vanillaStore = (0, import_react_sdk116.useHMSVanillaStore)();
|
35734
35898
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
35735
35899
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
35736
|
-
const amIScreenSharing = (0,
|
35737
|
-
const { showNotification } = (0,
|
35900
|
+
const amIScreenSharing = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectIsLocalScreenShared);
|
35901
|
+
const { showNotification } = (0, import_react_sdk116.useAwayNotifications)();
|
35738
35902
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
35739
|
-
(0,
|
35903
|
+
(0, import_react228.useEffect)(() => {
|
35740
35904
|
var _a8;
|
35741
35905
|
if (!(notification == null ? void 0 : notification.data)) {
|
35742
35906
|
return;
|
35743
35907
|
}
|
35744
|
-
if (roomState !==
|
35908
|
+
if (roomState !== import_react_sdk116.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
|
35745
35909
|
return;
|
35746
35910
|
}
|
35747
|
-
const hasPeerHandRaised = vanillaStore.getState((0,
|
35748
|
-
const peer = vanillaStore.getState((0,
|
35911
|
+
const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk116.selectHasPeerHandRaised)(notification.data.id));
|
35912
|
+
const peer = vanillaStore.getState((0, import_react_sdk116.selectPeerByID)(notification.data.id));
|
35749
35913
|
if (hasPeerHandRaised) {
|
35750
35914
|
const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
|
35751
35915
|
ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
|
@@ -35757,12 +35921,12 @@ var init_HandRaisedNotifications = __esm({
|
|
35757
35921
|
if (!(notification == null ? void 0 : notification.data)) {
|
35758
35922
|
return;
|
35759
35923
|
}
|
35760
|
-
if (roomState !==
|
35924
|
+
if (roomState !== import_react_sdk116.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
|
35761
35925
|
return;
|
35762
35926
|
}
|
35763
|
-
const hasPeerHandRaised = vanillaStore.getState((0,
|
35764
|
-
const peer = vanillaStore.getState((0,
|
35765
|
-
const handRaisedPeers = vanillaStore.getState(
|
35927
|
+
const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk116.selectHasPeerHandRaised)(notification.data.id));
|
35928
|
+
const peer = vanillaStore.getState((0, import_react_sdk116.selectPeerByID)(notification.data.id));
|
35929
|
+
const handRaisedPeers = vanillaStore.getState(import_react_sdk116.selectHandRaisedPeers);
|
35766
35930
|
if (amIScreenSharing && hasPeerHandRaised) {
|
35767
35931
|
const title = `${peer == null ? void 0 : peer.name} ${handRaisedPeers.length > 1 ? `and ${handRaisedPeers.length - 1} others` : ""} raised hand`;
|
35768
35932
|
showNotification(title, { icon: logoURL });
|
@@ -35777,20 +35941,20 @@ var init_HandRaisedNotifications = __esm({
|
|
35777
35941
|
});
|
35778
35942
|
|
35779
35943
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
35780
|
-
var
|
35944
|
+
var import_react229, import_react_sdk117, InitErrorModal;
|
35781
35945
|
var init_InitErrorModal = __esm({
|
35782
35946
|
"src/Prebuilt/components/Notifications/InitErrorModal.tsx"() {
|
35783
35947
|
"use strict";
|
35784
35948
|
init_define_process_env();
|
35785
|
-
|
35786
|
-
|
35949
|
+
import_react229 = __toESM(require("react"));
|
35950
|
+
import_react_sdk117 = require("@100mslive/react-sdk");
|
35787
35951
|
init_src();
|
35788
35952
|
init_DialogContent2();
|
35789
35953
|
InitErrorModal = () => {
|
35790
|
-
const notification = (0,
|
35791
|
-
const [showModal, setShowModal] = (0,
|
35792
|
-
const [info, setInfo] = (0,
|
35793
|
-
(0,
|
35954
|
+
const notification = (0, import_react_sdk117.useHMSNotifications)(import_react_sdk117.HMSNotificationTypes.ERROR);
|
35955
|
+
const [showModal, setShowModal] = (0, import_react229.useState)(false);
|
35956
|
+
const [info, setInfo] = (0, import_react229.useState)({ title: "Init Error", description: "" });
|
35957
|
+
(0, import_react229.useEffect)(() => {
|
35794
35958
|
const data3 = notification == null ? void 0 : notification.data;
|
35795
35959
|
if (!data3 || data3.action !== "INIT") {
|
35796
35960
|
return;
|
@@ -35810,40 +35974,81 @@ var init_InitErrorModal = __esm({
|
|
35810
35974
|
setInfo({ title, description });
|
35811
35975
|
setShowModal(true);
|
35812
35976
|
}, [notification]);
|
35813
|
-
return /* @__PURE__ */
|
35977
|
+
return /* @__PURE__ */ import_react229.default.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ import_react229.default.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ import_react229.default.createElement("br", null), "Current URL - ", window.location.href));
|
35978
|
+
};
|
35979
|
+
}
|
35980
|
+
});
|
35981
|
+
|
35982
|
+
// src/Prebuilt/components/Notifications/MessageNotifications.tsx
|
35983
|
+
var import_react230, import_react_sdk118, MessageNotifications;
|
35984
|
+
var init_MessageNotifications = __esm({
|
35985
|
+
"src/Prebuilt/components/Notifications/MessageNotifications.tsx"() {
|
35986
|
+
"use strict";
|
35987
|
+
init_define_process_env();
|
35988
|
+
import_react230 = require("react");
|
35989
|
+
init_dist();
|
35990
|
+
import_react_sdk118 = require("@100mslive/react-sdk");
|
35991
|
+
init_roomLayoutProvider();
|
35992
|
+
init_usePIPWindow();
|
35993
|
+
MessageNotifications = () => {
|
35994
|
+
var _a7, _b7;
|
35995
|
+
const notification = (0, import_react_sdk118.useHMSNotifications)(fr.NEW_MESSAGE);
|
35996
|
+
const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(qr);
|
35997
|
+
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
35998
|
+
const { pipWindow } = usePIPWindow();
|
35999
|
+
const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
|
36000
|
+
(0, import_react230.useEffect)(() => {
|
36001
|
+
var _a8;
|
36002
|
+
if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
|
36003
|
+
showNotification(`New message from ${notification.data.senderName}`, {
|
36004
|
+
body: notification.data.message,
|
36005
|
+
icon: logoURL
|
36006
|
+
});
|
36007
|
+
}
|
36008
|
+
}, [notification]);
|
36009
|
+
return null;
|
35814
36010
|
};
|
35815
36011
|
}
|
35816
36012
|
});
|
35817
36013
|
|
35818
36014
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
35819
|
-
var
|
36015
|
+
var import_react231, import_react_sdk119, notificationTypes, PeerNotifications;
|
35820
36016
|
var init_PeerNotifications = __esm({
|
35821
36017
|
"src/Prebuilt/components/Notifications/PeerNotifications.tsx"() {
|
35822
36018
|
"use strict";
|
35823
36019
|
init_define_process_env();
|
35824
|
-
|
35825
|
-
|
36020
|
+
import_react231 = require("react");
|
36021
|
+
import_react_sdk119 = require("@100mslive/react-sdk");
|
36022
|
+
init_roomLayoutProvider();
|
35826
36023
|
init_ToastBatcher();
|
36024
|
+
init_ToastManager();
|
35827
36025
|
init_useUISettings();
|
35828
36026
|
init_constants();
|
35829
|
-
notificationTypes = [
|
36027
|
+
notificationTypes = [
|
36028
|
+
import_react_sdk119.HMSNotificationTypes.PEER_JOINED,
|
36029
|
+
import_react_sdk119.HMSNotificationTypes.PEER_LEFT,
|
36030
|
+
import_react_sdk119.HMSNotificationTypes.NAME_UPDATED,
|
36031
|
+
import_react_sdk119.HMSNotificationTypes.ROLE_UPDATED
|
36032
|
+
];
|
35830
36033
|
PeerNotifications = () => {
|
35831
|
-
const notification = (0,
|
36034
|
+
const notification = (0, import_react_sdk119.useHMSNotifications)(notificationTypes);
|
35832
36035
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
35833
36036
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
35834
36037
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
35835
|
-
|
36038
|
+
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
36039
|
+
(0, import_react231.useEffect)(() => {
|
36040
|
+
var _a7, _b7;
|
35836
36041
|
if (!(notification == null ? void 0 : notification.data)) {
|
35837
36042
|
return;
|
35838
36043
|
}
|
35839
36044
|
console.debug(`[${notification.type}]`, notification);
|
35840
36045
|
switch (notification.type) {
|
35841
|
-
case
|
36046
|
+
case import_react_sdk119.HMSNotificationTypes.PEER_JOINED:
|
35842
36047
|
if (!isPeerJoinSubscribed) {
|
35843
36048
|
return;
|
35844
36049
|
}
|
35845
36050
|
break;
|
35846
|
-
case
|
36051
|
+
case import_react_sdk119.HMSNotificationTypes.PEER_LEFT:
|
35847
36052
|
if (selectedPeer.id === notification.data.id) {
|
35848
36053
|
setPeerSelector({});
|
35849
36054
|
}
|
@@ -35851,11 +36056,23 @@ var init_PeerNotifications = __esm({
|
|
35851
36056
|
return;
|
35852
36057
|
}
|
35853
36058
|
break;
|
36059
|
+
case import_react_sdk119.HMSNotificationTypes.NAME_UPDATED:
|
36060
|
+
console.log(notification.data.id + " changed their name to " + notification.data.name);
|
36061
|
+
return;
|
36062
|
+
case import_react_sdk119.HMSNotificationTypes.ROLE_UPDATED: {
|
36063
|
+
if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
|
36064
|
+
ToastManager.addToast({
|
36065
|
+
title: `You are now a ${notification.data.roleName}`
|
36066
|
+
});
|
36067
|
+
updateRoomLayoutForRole == null ? void 0 : updateRoomLayoutForRole(notification.data.roleName);
|
36068
|
+
}
|
36069
|
+
return;
|
36070
|
+
}
|
35854
36071
|
default:
|
35855
36072
|
return;
|
35856
36073
|
}
|
35857
36074
|
ToastBatcher.showToast({ notification });
|
35858
|
-
}, [notification
|
36075
|
+
}, [notification]);
|
35859
36076
|
return null;
|
35860
36077
|
};
|
35861
36078
|
}
|
@@ -35879,26 +36096,26 @@ var init_ios_perm_0 = __esm({
|
|
35879
36096
|
|
35880
36097
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
35881
36098
|
function PermissionErrorNotificationModal() {
|
35882
|
-
const notification = (0,
|
35883
|
-
return /* @__PURE__ */
|
36099
|
+
const notification = (0, import_react_sdk120.useHMSNotifications)(import_react_sdk120.HMSNotificationTypes.ERROR);
|
36100
|
+
return /* @__PURE__ */ import_react232.default.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
|
35884
36101
|
}
|
35885
|
-
var
|
36102
|
+
var import_react232, import_react_use58, import_react_sdk120, PermissionErrorModal;
|
35886
36103
|
var init_PermissionErrorModal = __esm({
|
35887
36104
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
35888
36105
|
"use strict";
|
35889
36106
|
init_define_process_env();
|
35890
|
-
|
36107
|
+
import_react232 = __toESM(require("react"));
|
35891
36108
|
import_react_use58 = require("react-use");
|
35892
|
-
|
36109
|
+
import_react_sdk120 = require("@100mslive/react-sdk");
|
35893
36110
|
init_src();
|
35894
36111
|
init_android_perm_1();
|
35895
36112
|
init_ios_perm_0();
|
35896
36113
|
init_constants();
|
35897
36114
|
PermissionErrorModal = ({ error }) => {
|
35898
|
-
const [deviceType, setDeviceType] = (0,
|
35899
|
-
const [isSystemError, setIsSystemError] = (0,
|
36115
|
+
const [deviceType, setDeviceType] = (0, import_react232.useState)("");
|
36116
|
+
const [isSystemError, setIsSystemError] = (0, import_react232.useState)(false);
|
35900
36117
|
const isMobile = (0, import_react_use58.useMedia)(config.media.md);
|
35901
|
-
(0,
|
36118
|
+
(0, import_react232.useEffect)(() => {
|
35902
36119
|
if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
|
35903
36120
|
return;
|
35904
36121
|
}
|
@@ -35917,7 +36134,7 @@ var init_PermissionErrorModal = __esm({
|
|
35917
36134
|
}
|
35918
36135
|
setIsSystemError(error.code === 3011);
|
35919
36136
|
}, [error]);
|
35920
|
-
return deviceType ? /* @__PURE__ */
|
36137
|
+
return deviceType ? /* @__PURE__ */ import_react232.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react232.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react232.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react232.default.createElement(
|
35921
36138
|
Dialog.Content,
|
35922
36139
|
{
|
35923
36140
|
css: {
|
@@ -35927,15 +36144,15 @@ var init_PermissionErrorModal = __esm({
|
|
35927
36144
|
zIndex: 23
|
35928
36145
|
}
|
35929
36146
|
},
|
35930
|
-
/* @__PURE__ */
|
36147
|
+
/* @__PURE__ */ import_react232.default.createElement(
|
35931
36148
|
Dialog.Title,
|
35932
36149
|
{
|
35933
36150
|
css: {
|
35934
36151
|
borderBottom: "1px solid $border_default"
|
35935
36152
|
}
|
35936
36153
|
},
|
35937
|
-
isMobile && isIOS ? /* @__PURE__ */
|
35938
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
36154
|
+
isMobile && isIOS ? /* @__PURE__ */ import_react232.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
36155
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react232.default.createElement(
|
35939
36156
|
"img",
|
35940
36157
|
{
|
35941
36158
|
src: android_perm_1_default,
|
@@ -35943,47 +36160,107 @@ var init_PermissionErrorModal = __esm({
|
|
35943
36160
|
alt: "Android Permission flow "
|
35944
36161
|
}
|
35945
36162
|
) : null,
|
35946
|
-
/* @__PURE__ */
|
36163
|
+
/* @__PURE__ */ import_react232.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
35947
36164
|
),
|
35948
|
-
/* @__PURE__ */
|
35949
|
-
isMobile && isIOS ? /* @__PURE__ */
|
35950
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
35951
|
-
!isMobile ? /* @__PURE__ */
|
36165
|
+
/* @__PURE__ */ import_react232.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
|
36166
|
+
isMobile && isIOS ? /* @__PURE__ */ import_react232.default.createElement(import_react232.default.Fragment, null, /* @__PURE__ */ import_react232.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react232.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
36167
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react232.default.createElement(import_react232.default.Fragment, null, /* @__PURE__ */ import_react232.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react232.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
36168
|
+
!isMobile ? /* @__PURE__ */ import_react232.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react232.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
35952
36169
|
))) : null;
|
35953
36170
|
};
|
35954
36171
|
}
|
35955
36172
|
});
|
35956
36173
|
|
36174
|
+
// src/Prebuilt/components/Notifications/PollNotificationModal.tsx
|
36175
|
+
var import_react233, import_react_sdk121, notificationTypes2, pollToastKey, PollNotificationModal;
|
36176
|
+
var init_PollNotificationModal = __esm({
|
36177
|
+
"src/Prebuilt/components/Notifications/PollNotificationModal.tsx"() {
|
36178
|
+
"use strict";
|
36179
|
+
init_define_process_env();
|
36180
|
+
import_react233 = __toESM(require("react"));
|
36181
|
+
import_react_sdk121 = require("@100mslive/react-sdk");
|
36182
|
+
init_Button2();
|
36183
|
+
init_ToastManager();
|
36184
|
+
init_useRoomLayoutScreen();
|
36185
|
+
init_useSidepane();
|
36186
|
+
notificationTypes2 = [import_react_sdk121.HMSNotificationTypes.POLL_STARTED, import_react_sdk121.HMSNotificationTypes.POLL_STOPPED];
|
36187
|
+
pollToastKey = {};
|
36188
|
+
PollNotificationModal = () => {
|
36189
|
+
const togglePollView = usePollViewToggle();
|
36190
|
+
const localPeerID = (0, import_react_sdk121.useHMSStore)(import_react_sdk121.selectLocalPeerID);
|
36191
|
+
const vanillaStore = (0, import_react_sdk121.useHMSVanillaStore)();
|
36192
|
+
const screenProps = useRoomLayoutConferencingScreen();
|
36193
|
+
const notification = (0, import_react_sdk121.useHMSNotifications)(notificationTypes2);
|
36194
|
+
(0, import_react233.useEffect)(() => {
|
36195
|
+
switch (notification == null ? void 0 : notification.type) {
|
36196
|
+
case import_react_sdk121.HMSNotificationTypes.POLL_STARTED:
|
36197
|
+
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
36198
|
+
const pollStartedBy = vanillaStore.getState((0, import_react_sdk121.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
36199
|
+
const pollToastID = ToastManager.addToast({
|
36200
|
+
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
36201
|
+
action: /* @__PURE__ */ import_react233.default.createElement(
|
36202
|
+
Button,
|
36203
|
+
{
|
36204
|
+
onClick: () => togglePollView(notification.data.id),
|
36205
|
+
variant: "standard",
|
36206
|
+
css: {
|
36207
|
+
backgroundColor: "$surface_bright",
|
36208
|
+
fontWeight: "$semiBold",
|
36209
|
+
color: "$on_surface_high",
|
36210
|
+
p: "$xs $md"
|
36211
|
+
}
|
36212
|
+
},
|
36213
|
+
notification.data.type === "quiz" ? "Answer" : "Vote"
|
36214
|
+
),
|
36215
|
+
duration: Infinity
|
36216
|
+
});
|
36217
|
+
pollToastKey[notification.data.id] = pollToastID;
|
36218
|
+
}
|
36219
|
+
break;
|
36220
|
+
case import_react_sdk121.HMSNotificationTypes.POLL_STOPPED:
|
36221
|
+
{
|
36222
|
+
const pollID = notification == null ? void 0 : notification.data.id;
|
36223
|
+
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
36224
|
+
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
36225
|
+
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
36226
|
+
}
|
36227
|
+
}
|
36228
|
+
break;
|
36229
|
+
default:
|
36230
|
+
break;
|
36231
|
+
}
|
36232
|
+
}, [notification]);
|
36233
|
+
return null;
|
36234
|
+
};
|
36235
|
+
}
|
36236
|
+
});
|
36237
|
+
|
35957
36238
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
35958
|
-
var
|
36239
|
+
var import_react234, import_react_sdk122, notificationTypes3, notificationId, ReconnectNotifications;
|
35959
36240
|
var init_ReconnectNotifications = __esm({
|
35960
36241
|
"src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
|
35961
36242
|
"use strict";
|
35962
36243
|
init_define_process_env();
|
35963
|
-
|
35964
|
-
|
36244
|
+
import_react234 = require("react");
|
36245
|
+
import_react_sdk122 = require("@100mslive/react-sdk");
|
35965
36246
|
init_ToastConfig();
|
35966
36247
|
init_ToastManager();
|
35967
|
-
|
35968
|
-
import_react_sdk117.HMSNotificationTypes.RECONNECTED,
|
35969
|
-
import_react_sdk117.HMSNotificationTypes.RECONNECTING,
|
35970
|
-
import_react_sdk117.HMSNotificationTypes.ERROR
|
35971
|
-
];
|
36248
|
+
notificationTypes3 = [import_react_sdk122.HMSNotificationTypes.RECONNECTED, import_react_sdk122.HMSNotificationTypes.RECONNECTING];
|
35972
36249
|
notificationId = null;
|
35973
36250
|
ReconnectNotifications = () => {
|
35974
|
-
const notification = (0,
|
35975
|
-
const prevErrorCode = (0,
|
35976
|
-
(0,
|
36251
|
+
const notification = (0, import_react_sdk122.useHMSNotifications)(notificationTypes3);
|
36252
|
+
const prevErrorCode = (0, import_react234.useRef)(0);
|
36253
|
+
(0, import_react234.useEffect)(() => {
|
35977
36254
|
var _a7, _b7;
|
35978
36255
|
if (!notification) {
|
35979
36256
|
return;
|
35980
36257
|
}
|
35981
|
-
if (notification.type ===
|
36258
|
+
if (notification.type === import_react_sdk122.HMSNotificationTypes.RECONNECTED) {
|
35982
36259
|
notificationId = ToastManager.replaceToast(
|
35983
36260
|
notificationId,
|
35984
36261
|
ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
|
35985
36262
|
);
|
35986
|
-
} else if (notification.type ===
|
36263
|
+
} else if (notification.type === import_react_sdk122.HMSNotificationTypes.RECONNECTING) {
|
35987
36264
|
prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
|
35988
36265
|
notificationId = ToastManager.replaceToast(
|
35989
36266
|
notificationId,
|
@@ -35997,30 +36274,31 @@ var init_ReconnectNotifications = __esm({
|
|
35997
36274
|
});
|
35998
36275
|
|
35999
36276
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
36000
|
-
var
|
36277
|
+
var import_react235, import_react_sdk123, import_react_icons109, notificationTypes4, TrackBulkUnmuteModal;
|
36001
36278
|
var init_TrackBulkUnmuteModal = __esm({
|
36002
36279
|
"src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
|
36003
36280
|
"use strict";
|
36004
36281
|
init_define_process_env();
|
36005
|
-
|
36006
|
-
|
36007
|
-
|
36282
|
+
import_react235 = __toESM(require("react"));
|
36283
|
+
import_react_sdk123 = require("@100mslive/react-sdk");
|
36284
|
+
import_react_icons109 = require("@100mslive/react-icons");
|
36008
36285
|
init_DialogContent2();
|
36286
|
+
notificationTypes4 = [
|
36287
|
+
import_react_sdk123.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
36288
|
+
import_react_sdk123.HMSNotificationTypes.ROOM_ENDED,
|
36289
|
+
import_react_sdk123.HMSNotificationTypes.REMOVED_FROM_ROOM
|
36290
|
+
];
|
36009
36291
|
TrackBulkUnmuteModal = () => {
|
36010
|
-
const hmsActions = (0,
|
36011
|
-
const [muteNotification, setMuteNotification] = (0,
|
36012
|
-
const notification = (0,
|
36013
|
-
|
36014
|
-
import_react_sdk118.HMSNotificationTypes.ROOM_ENDED,
|
36015
|
-
import_react_sdk118.HMSNotificationTypes.REMOVED_FROM_ROOM
|
36016
|
-
]);
|
36017
|
-
(0, import_react230.useEffect)(() => {
|
36292
|
+
const hmsActions = (0, import_react_sdk123.useHMSActions)();
|
36293
|
+
const [muteNotification, setMuteNotification] = (0, import_react235.useState)(null);
|
36294
|
+
const notification = (0, import_react_sdk123.useHMSNotifications)(notificationTypes4);
|
36295
|
+
(0, import_react235.useEffect)(() => {
|
36018
36296
|
switch (notification == null ? void 0 : notification.type) {
|
36019
|
-
case
|
36020
|
-
case
|
36297
|
+
case import_react_sdk123.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
36298
|
+
case import_react_sdk123.HMSNotificationTypes.ROOM_ENDED:
|
36021
36299
|
setMuteNotification(null);
|
36022
36300
|
break;
|
36023
|
-
case
|
36301
|
+
case import_react_sdk123.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST:
|
36024
36302
|
if (notification == null ? void 0 : notification.data.enabled) {
|
36025
36303
|
setMuteNotification(notification.data);
|
36026
36304
|
}
|
@@ -36034,7 +36312,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
36034
36312
|
}
|
36035
36313
|
const { requestedBy: peer, tracks, enabled } = muteNotification;
|
36036
36314
|
const types = new Set(tracks.map((track) => track.type));
|
36037
|
-
return /* @__PURE__ */
|
36315
|
+
return /* @__PURE__ */ import_react235.default.createElement(
|
36038
36316
|
RequestDialog,
|
36039
36317
|
{
|
36040
36318
|
title: "Unmute request",
|
@@ -36046,7 +36324,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
36046
36324
|
});
|
36047
36325
|
setMuteNotification(null);
|
36048
36326
|
},
|
36049
|
-
Icon:
|
36327
|
+
Icon: import_react_icons109.MicOnIcon
|
36050
36328
|
}
|
36051
36329
|
);
|
36052
36330
|
};
|
@@ -36054,24 +36332,45 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
36054
36332
|
});
|
36055
36333
|
|
36056
36334
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
36057
|
-
var
|
36335
|
+
var import_react236, import_react_sdk124, notificationTypes5, TrackNotifications;
|
36058
36336
|
var init_TrackNotifications = __esm({
|
36059
36337
|
"src/Prebuilt/components/Notifications/TrackNotifications.tsx"() {
|
36060
36338
|
"use strict";
|
36061
36339
|
init_define_process_env();
|
36062
|
-
|
36063
|
-
|
36064
|
-
|
36065
|
-
|
36066
|
-
|
36067
|
-
|
36068
|
-
|
36340
|
+
import_react236 = require("react");
|
36341
|
+
import_react_sdk124 = require("@100mslive/react-sdk");
|
36342
|
+
init_ToastManager();
|
36343
|
+
notificationTypes5 = [
|
36344
|
+
import_react_sdk124.HMSNotificationTypes.TRACK_ADDED,
|
36345
|
+
import_react_sdk124.HMSNotificationTypes.TRACK_REMOVED,
|
36346
|
+
import_react_sdk124.HMSNotificationTypes.TRACK_MUTED,
|
36347
|
+
import_react_sdk124.HMSNotificationTypes.TRACK_UNMUTED,
|
36348
|
+
import_react_sdk124.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST
|
36069
36349
|
];
|
36070
36350
|
TrackNotifications = () => {
|
36071
|
-
const notification = (0,
|
36072
|
-
(0,
|
36351
|
+
const notification = (0, import_react_sdk124.useHMSNotifications)(notificationTypes5);
|
36352
|
+
(0, import_react236.useEffect)(() => {
|
36353
|
+
var _a7, _b7;
|
36073
36354
|
if (notification) {
|
36074
|
-
|
36355
|
+
switch (notification.type) {
|
36356
|
+
case import_react_sdk124.HMSNotificationTypes.TRACK_ADDED:
|
36357
|
+
case import_react_sdk124.HMSNotificationTypes.TRACK_REMOVED:
|
36358
|
+
case import_react_sdk124.HMSNotificationTypes.TRACK_MUTED:
|
36359
|
+
case import_react_sdk124.HMSNotificationTypes.TRACK_UNMUTED:
|
36360
|
+
console.debug(`[${notification.type}]`, notification);
|
36361
|
+
break;
|
36362
|
+
case import_react_sdk124.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
36363
|
+
{
|
36364
|
+
const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
|
36365
|
+
if (!notification.data.enabled) {
|
36366
|
+
ToastManager.addToast({
|
36367
|
+
title: `Your ${track.source} ${track.type} was muted by
|
36368
|
+
${(_b7 = notification.data.requestedBy) == null ? void 0 : _b7.name}.`
|
36369
|
+
});
|
36370
|
+
}
|
36371
|
+
}
|
36372
|
+
break;
|
36373
|
+
}
|
36075
36374
|
}
|
36076
36375
|
}, [notification]);
|
36077
36376
|
return null;
|
@@ -36080,30 +36379,36 @@ var init_TrackNotifications = __esm({
|
|
36080
36379
|
});
|
36081
36380
|
|
36082
36381
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
36083
|
-
var
|
36382
|
+
var import_react237, import_react_sdk125, import_react_icons110, notificationTypes6, TrackUnmuteModal;
|
36084
36383
|
var init_TrackUnmuteModal = __esm({
|
36085
36384
|
"src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
|
36086
36385
|
"use strict";
|
36087
36386
|
init_define_process_env();
|
36088
|
-
|
36089
|
-
|
36090
|
-
|
36387
|
+
import_react237 = __toESM(require("react"));
|
36388
|
+
import_react_sdk125 = require("@100mslive/react-sdk");
|
36389
|
+
import_react_icons110 = require("@100mslive/react-icons");
|
36091
36390
|
init_DialogContent2();
|
36391
|
+
init_ToastManager();
|
36392
|
+
notificationTypes6 = [
|
36393
|
+
import_react_sdk125.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST,
|
36394
|
+
import_react_sdk125.HMSNotificationTypes.ROOM_ENDED,
|
36395
|
+
import_react_sdk125.HMSNotificationTypes.REMOVED_FROM_ROOM
|
36396
|
+
];
|
36092
36397
|
TrackUnmuteModal = () => {
|
36093
|
-
const hmsActions = (0,
|
36094
|
-
const notification = (0,
|
36095
|
-
|
36096
|
-
|
36097
|
-
import_react_sdk120.HMSNotificationTypes.REMOVED_FROM_ROOM
|
36098
|
-
]);
|
36099
|
-
const [muteNotification, setMuteNotification] = (0, import_react232.useState)(null);
|
36100
|
-
(0, import_react232.useEffect)(() => {
|
36398
|
+
const hmsActions = (0, import_react_sdk125.useHMSActions)();
|
36399
|
+
const notification = (0, import_react_sdk125.useHMSNotifications)(notificationTypes6);
|
36400
|
+
const [muteNotification, setMuteNotification] = (0, import_react237.useState)(null);
|
36401
|
+
(0, import_react237.useEffect)(() => {
|
36101
36402
|
switch (notification == null ? void 0 : notification.type) {
|
36102
|
-
case
|
36103
|
-
case
|
36403
|
+
case import_react_sdk125.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
36404
|
+
case import_react_sdk125.HMSNotificationTypes.ROOM_ENDED:
|
36405
|
+
ToastManager.addToast({
|
36406
|
+
title: `${notification.message}.
|
36407
|
+
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
36408
|
+
});
|
36104
36409
|
setMuteNotification(null);
|
36105
36410
|
break;
|
36106
|
-
case
|
36411
|
+
case import_react_sdk125.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
36107
36412
|
if (notification == null ? void 0 : notification.data.enabled) {
|
36108
36413
|
setMuteNotification(notification.data);
|
36109
36414
|
}
|
@@ -36116,7 +36421,7 @@ var init_TrackUnmuteModal = __esm({
|
|
36116
36421
|
return null;
|
36117
36422
|
}
|
36118
36423
|
const { requestedBy: peer, track, enabled } = muteNotification;
|
36119
|
-
return /* @__PURE__ */
|
36424
|
+
return /* @__PURE__ */ import_react237.default.createElement(
|
36120
36425
|
RequestDialog,
|
36121
36426
|
{
|
36122
36427
|
title: `Unmute your ${track.type}?`,
|
@@ -36126,7 +36431,7 @@ var init_TrackUnmuteModal = __esm({
|
|
36126
36431
|
hmsActions.setEnabledTrack(track.id, enabled);
|
36127
36432
|
setMuteNotification(null);
|
36128
36433
|
},
|
36129
|
-
Icon:
|
36434
|
+
Icon: import_react_icons110.MicOnIcon
|
36130
36435
|
}
|
36131
36436
|
);
|
36132
36437
|
};
|
@@ -36134,22 +36439,22 @@ var init_TrackUnmuteModal = __esm({
|
|
36134
36439
|
});
|
36135
36440
|
|
36136
36441
|
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
36137
|
-
var
|
36442
|
+
var import_react238, import_ts_pattern16, import_react_sdk126, import_react_icons111, TranscriptionNotifications;
|
36138
36443
|
var init_TranscriptionNotifications = __esm({
|
36139
36444
|
"src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx"() {
|
36140
36445
|
"use strict";
|
36141
36446
|
init_define_process_env();
|
36142
|
-
|
36447
|
+
import_react238 = __toESM(require("react"));
|
36143
36448
|
import_ts_pattern16 = require("ts-pattern");
|
36144
|
-
|
36145
|
-
|
36449
|
+
import_react_sdk126 = require("@100mslive/react-sdk");
|
36450
|
+
import_react_icons111 = require("@100mslive/react-icons");
|
36146
36451
|
init_ToastManager();
|
36147
36452
|
init_useUISettings();
|
36148
36453
|
init_constants();
|
36149
36454
|
TranscriptionNotifications = () => {
|
36150
|
-
const notification = (0,
|
36455
|
+
const notification = (0, import_react_sdk126.useHMSNotifications)(import_react_sdk126.HMSNotificationTypes.TRANSCRIPTION_STATE_UPDATED);
|
36151
36456
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
36152
|
-
(0,
|
36457
|
+
(0, import_react238.useEffect)(() => {
|
36153
36458
|
if (!(notification == null ? void 0 : notification.data)) {
|
36154
36459
|
return;
|
36155
36460
|
}
|
@@ -36163,22 +36468,22 @@ var init_TranscriptionNotifications = __esm({
|
|
36163
36468
|
id = ToastManager.replaceToast(toastId, {
|
36164
36469
|
title: `Failed to enable Closed Caption`,
|
36165
36470
|
variant: "error",
|
36166
|
-
icon: /* @__PURE__ */
|
36471
|
+
icon: /* @__PURE__ */ import_react238.default.createElement(import_react_icons111.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
36167
36472
|
});
|
36168
36473
|
}
|
36169
|
-
).with({ state:
|
36474
|
+
).with({ state: import_react_sdk126.HMSTranscriptionState.STARTED }, () => {
|
36170
36475
|
id = ToastManager.replaceToast(toastId, {
|
36171
36476
|
title: `Closed Captioning enabled for everyone`,
|
36172
36477
|
variant: "standard",
|
36173
36478
|
duration: 2e3,
|
36174
|
-
icon: /* @__PURE__ */
|
36479
|
+
icon: /* @__PURE__ */ import_react238.default.createElement(import_react_icons111.ClosedCaptionIcon, { style: { marginRight: "0.5rem" } })
|
36175
36480
|
});
|
36176
|
-
}).with({ state:
|
36481
|
+
}).with({ state: import_react_sdk126.HMSTranscriptionState.STOPPED }, () => {
|
36177
36482
|
id = ToastManager.replaceToast(toastId, {
|
36178
36483
|
title: `Closed Captioning disabled for everyone`,
|
36179
36484
|
variant: "standard",
|
36180
36485
|
duration: 2e3,
|
36181
|
-
icon: /* @__PURE__ */
|
36486
|
+
icon: /* @__PURE__ */ import_react238.default.createElement(import_react_icons111.OpenCaptionIcon, { style: { marginRight: "0.5rem" } })
|
36182
36487
|
});
|
36183
36488
|
}).otherwise(() => null);
|
36184
36489
|
setToastId(id);
|
@@ -36191,174 +36496,46 @@ var init_TranscriptionNotifications = __esm({
|
|
36191
36496
|
|
36192
36497
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
36193
36498
|
function Notifications() {
|
36194
|
-
|
36195
|
-
const localPeerID = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectLocalPeerID);
|
36196
|
-
const notification = (0, import_react_sdk122.useHMSNotifications)();
|
36197
|
-
const subscribedNotifications = useSubscribedNotifications() || {};
|
36198
|
-
const roomState = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectRoomState);
|
36199
|
-
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
36499
|
+
const roomState = (0, import_react_sdk127.useHMSStore)(import_react_sdk127.selectRoomState);
|
36200
36500
|
const isNotificationDisabled = useIsNotificationDisabled();
|
36201
|
-
const
|
36202
|
-
const vanillaStore = (0, import_react_sdk122.useHMSVanillaStore)();
|
36203
|
-
const togglePollView = usePollViewToggle();
|
36204
|
-
const { showNotification } = (0, import_react_sdk122.useAwayNotifications)();
|
36205
|
-
const amIScreenSharing = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectIsLocalScreenShared);
|
36206
|
-
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
36207
|
-
const { pipWindow } = usePIPWindow();
|
36208
|
-
const handleRoleChangeDenied = (0, import_react234.useCallback)((request) => {
|
36501
|
+
const handleRoleChangeDenied = (0, import_react239.useCallback)((request) => {
|
36209
36502
|
ToastManager.addToast({
|
36210
36503
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
36211
36504
|
variant: "error"
|
36212
36505
|
});
|
36213
36506
|
}, []);
|
36214
|
-
(0,
|
36215
|
-
(0, import_react234.useEffect)(() => {
|
36216
|
-
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
|
36217
|
-
if (!notification || isNotificationDisabled) {
|
36218
|
-
return;
|
36219
|
-
}
|
36220
|
-
switch (notification.type) {
|
36221
|
-
case import_react_sdk122.HMSNotificationTypes.NAME_UPDATED:
|
36222
|
-
console.log(notification.data.id + " changed their name to " + notification.data.name);
|
36223
|
-
break;
|
36224
|
-
case import_react_sdk122.HMSNotificationTypes.ERROR:
|
36225
|
-
if (((_a8 = notification.data) == null ? void 0 : _a8.isTerminal) && ((_b8 = notification.data) == null ? void 0 : _b8.action) !== "INIT") {
|
36226
|
-
if ([500, 6008].includes((_c = notification.data) == null ? void 0 : _c.code)) {
|
36227
|
-
ToastManager.addToast({
|
36228
|
-
title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
|
36229
|
-
});
|
36230
|
-
} else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
|
36231
|
-
ToastManager.addToast({
|
36232
|
-
title: "The room is currently full, try joining later",
|
36233
|
-
close: true,
|
36234
|
-
icon: /* @__PURE__ */ import_react234.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react234.default.createElement(import_react_icons111.GroupIcon, null))
|
36235
|
-
});
|
36236
|
-
} else {
|
36237
|
-
ToastManager.addToast({
|
36238
|
-
title: ((_f = notification.data) == null ? void 0 : _f.message) || "We couldn\u2019t reconnect you. When you\u2019re back online, try joining the room.",
|
36239
|
-
close: false
|
36240
|
-
});
|
36241
|
-
}
|
36242
|
-
return;
|
36243
|
-
}
|
36244
|
-
if (((_g = notification.data) == null ? void 0 : _g.code) === 3008 || ((_h = notification.data) == null ? void 0 : _h.code) === 3001 || ((_i = notification.data) == null ? void 0 : _i.code) === 3011) {
|
36245
|
-
return;
|
36246
|
-
}
|
36247
|
-
if (((_j = notification.data) == null ? void 0 : _j.action) === "INIT") {
|
36248
|
-
return;
|
36249
|
-
}
|
36250
|
-
if (!subscribedNotifications.ERROR)
|
36251
|
-
return;
|
36252
|
-
ToastManager.addToast({
|
36253
|
-
title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
|
36254
|
-
});
|
36255
|
-
break;
|
36256
|
-
case import_react_sdk122.HMSNotificationTypes.ROLE_UPDATED: {
|
36257
|
-
if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
36258
|
-
ToastManager.addToast({
|
36259
|
-
title: `You are now a ${notification.data.roleName}`
|
36260
|
-
});
|
36261
|
-
updateRoomLayoutForRole == null ? void 0 : updateRoomLayoutForRole(notification.data.roleName);
|
36262
|
-
}
|
36263
|
-
break;
|
36264
|
-
}
|
36265
|
-
case import_react_sdk122.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
36266
|
-
const track = (_o2 = notification.data) == null ? void 0 : _o2.track;
|
36267
|
-
if (!notification.data.enabled) {
|
36268
|
-
ToastManager.addToast({
|
36269
|
-
title: `Your ${track.source} ${track.type} was muted by
|
36270
|
-
${(_p = notification.data.requestedBy) == null ? void 0 : _p.name}.`
|
36271
|
-
});
|
36272
|
-
}
|
36273
|
-
break;
|
36274
|
-
case import_react_sdk122.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
36275
|
-
case import_react_sdk122.HMSNotificationTypes.ROOM_ENDED:
|
36276
|
-
ToastManager.addToast({
|
36277
|
-
title: `${notification.message}.
|
36278
|
-
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
36279
|
-
});
|
36280
|
-
break;
|
36281
|
-
case import_react_sdk122.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
|
36282
|
-
ToastManager.addToast({
|
36283
|
-
title: notification.message
|
36284
|
-
});
|
36285
|
-
break;
|
36286
|
-
case import_react_sdk122.HMSNotificationTypes.POLL_STARTED:
|
36287
|
-
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
36288
|
-
const pollStartedBy = vanillaStore.getState((0, import_react_sdk122.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
36289
|
-
const pollToastID = ToastManager.addToast({
|
36290
|
-
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
36291
|
-
action: /* @__PURE__ */ import_react234.default.createElement(
|
36292
|
-
Button,
|
36293
|
-
{
|
36294
|
-
onClick: () => togglePollView(notification.data.id),
|
36295
|
-
variant: "standard",
|
36296
|
-
css: {
|
36297
|
-
backgroundColor: "$surface_bright",
|
36298
|
-
fontWeight: "$semiBold",
|
36299
|
-
color: "$on_surface_high",
|
36300
|
-
p: "$xs $md"
|
36301
|
-
}
|
36302
|
-
},
|
36303
|
-
notification.data.type === "quiz" ? "Answer" : "Vote"
|
36304
|
-
),
|
36305
|
-
duration: Infinity
|
36306
|
-
});
|
36307
|
-
pollToastKey[notification.data.id] = pollToastID;
|
36308
|
-
}
|
36309
|
-
break;
|
36310
|
-
case import_react_sdk122.HMSNotificationTypes.POLL_STOPPED:
|
36311
|
-
const pollID = notification == null ? void 0 : notification.data.id;
|
36312
|
-
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
36313
|
-
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
36314
|
-
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
36315
|
-
}
|
36316
|
-
break;
|
36317
|
-
case import_react_sdk122.HMSNotificationTypes.NEW_MESSAGE:
|
36318
|
-
if (amIScreenSharing && !((_q = notification.data) == null ? void 0 : _q.ignored) && !pipWindow) {
|
36319
|
-
showNotification(`New message from ${notification.data.senderName}`, {
|
36320
|
-
body: notification.data.message,
|
36321
|
-
icon: logoURL
|
36322
|
-
});
|
36323
|
-
}
|
36324
|
-
break;
|
36325
|
-
default:
|
36326
|
-
break;
|
36327
|
-
}
|
36328
|
-
}, [notification, subscribedNotifications.ERROR, subscribedNotifications.METADATA_UPDATED]);
|
36507
|
+
(0, import_react_sdk127.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
36329
36508
|
if (isNotificationDisabled) {
|
36330
36509
|
return null;
|
36331
36510
|
}
|
36332
|
-
return /* @__PURE__ */
|
36511
|
+
return /* @__PURE__ */ import_react239.default.createElement(import_react239.default.Fragment, null, /* @__PURE__ */ import_react239.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react239.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react239.default.createElement(TrackNotifications, null), roomState === import_react_sdk127.HMSRoomState.Connected ? /* @__PURE__ */ import_react239.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react239.default.createElement(PollNotificationModal, null), /* @__PURE__ */ import_react239.default.createElement(MessageNotifications, null), /* @__PURE__ */ import_react239.default.createElement(DeviceChangeNotifications, null), /* @__PURE__ */ import_react239.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react239.default.createElement(ErrorNotifications, null), /* @__PURE__ */ import_react239.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react239.default.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ import_react239.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react239.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react239.default.createElement(HandRaisedNotifications, null), /* @__PURE__ */ import_react239.default.createElement(TranscriptionNotifications, null), /* @__PURE__ */ import_react239.default.createElement(DeviceInUseError, null));
|
36333
36512
|
}
|
36334
|
-
var
|
36513
|
+
var import_react239, import_react_sdk127;
|
36335
36514
|
var init_Notifications = __esm({
|
36336
36515
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
36337
36516
|
"use strict";
|
36338
36517
|
init_define_process_env();
|
36339
|
-
|
36340
|
-
|
36341
|
-
import_react_icons111 = require("@100mslive/react-icons");
|
36342
|
-
init_src();
|
36343
|
-
init_roomLayoutProvider();
|
36518
|
+
import_react239 = __toESM(require("react"));
|
36519
|
+
import_react_sdk127 = require("@100mslive/react-sdk");
|
36344
36520
|
init_ToastManager();
|
36345
36521
|
init_AutoplayBlockedModal();
|
36346
36522
|
init_ChatNotifications();
|
36523
|
+
init_DeviceChangeNotifications();
|
36524
|
+
init_DeviceInUseError();
|
36525
|
+
init_ErrorNotifications();
|
36347
36526
|
init_HandRaisedNotifications();
|
36348
36527
|
init_InitErrorModal();
|
36528
|
+
init_MessageNotifications();
|
36349
36529
|
init_PeerNotifications();
|
36350
36530
|
init_PermissionErrorModal();
|
36531
|
+
init_PollNotificationModal();
|
36351
36532
|
init_ReconnectNotifications();
|
36352
36533
|
init_TrackBulkUnmuteModal();
|
36353
36534
|
init_TrackNotifications();
|
36354
36535
|
init_TrackUnmuteModal();
|
36355
36536
|
init_TranscriptionNotifications();
|
36356
|
-
init_useRoomLayoutScreen();
|
36357
|
-
init_useSidepane();
|
36358
36537
|
init_useUISettings();
|
36359
|
-
init_usePIPWindow();
|
36360
36538
|
init_constants();
|
36361
|
-
pollToastKey = {};
|
36362
36539
|
}
|
36363
36540
|
});
|
36364
36541
|
|
@@ -36372,23 +36549,23 @@ var init_Notifications2 = __esm({
|
|
36372
36549
|
});
|
36373
36550
|
|
36374
36551
|
// src/Prebuilt/components/PIP/PIPProvider.tsx
|
36375
|
-
var
|
36552
|
+
var import_react240, PIPProvider;
|
36376
36553
|
var init_PIPProvider = __esm({
|
36377
36554
|
"src/Prebuilt/components/PIP/PIPProvider.tsx"() {
|
36378
36555
|
"use strict";
|
36379
36556
|
init_define_process_env();
|
36380
|
-
|
36557
|
+
import_react240 = __toESM(require("react"));
|
36381
36558
|
init_context();
|
36382
36559
|
PIPProvider = ({ children }) => {
|
36383
36560
|
const isSupported = "documentPictureInPicture" in window;
|
36384
|
-
const [pipWindow, setPipWindow] = (0,
|
36385
|
-
const closePipWindow = (0,
|
36561
|
+
const [pipWindow, setPipWindow] = (0, import_react240.useState)(null);
|
36562
|
+
const closePipWindow = (0, import_react240.useCallback)(() => {
|
36386
36563
|
if (pipWindow != null) {
|
36387
36564
|
pipWindow.close();
|
36388
36565
|
setPipWindow(null);
|
36389
36566
|
}
|
36390
36567
|
}, [pipWindow]);
|
36391
|
-
const requestPipWindow = (0,
|
36568
|
+
const requestPipWindow = (0, import_react240.useCallback)(
|
36392
36569
|
(width, height) => __async(void 0, null, function* () {
|
36393
36570
|
if (pipWindow != null) {
|
36394
36571
|
return;
|
@@ -36404,7 +36581,7 @@ var init_PIPProvider = __esm({
|
|
36404
36581
|
}),
|
36405
36582
|
[pipWindow]
|
36406
36583
|
);
|
36407
|
-
const value = (0,
|
36584
|
+
const value = (0, import_react240.useMemo)(() => {
|
36408
36585
|
return {
|
36409
36586
|
isSupported,
|
36410
36587
|
pipWindow,
|
@@ -36412,18 +36589,18 @@ var init_PIPProvider = __esm({
|
|
36412
36589
|
closePipWindow
|
36413
36590
|
};
|
36414
36591
|
}, [closePipWindow, isSupported, pipWindow, requestPipWindow]);
|
36415
|
-
return /* @__PURE__ */
|
36592
|
+
return /* @__PURE__ */ import_react240.default.createElement(PIPContext.Provider, { value }, children);
|
36416
36593
|
};
|
36417
36594
|
}
|
36418
36595
|
});
|
36419
36596
|
|
36420
36597
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
36421
|
-
var
|
36598
|
+
var import_react241, import_react_use59, PreviewScreen;
|
36422
36599
|
var init_PreviewScreen = __esm({
|
36423
36600
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
|
36424
36601
|
"use strict";
|
36425
36602
|
init_define_process_env();
|
36426
|
-
|
36603
|
+
import_react241 = __toESM(require("react"));
|
36427
36604
|
import_react_use59 = require("react-use");
|
36428
36605
|
init_src();
|
36429
36606
|
init_AppContext();
|
@@ -36443,30 +36620,30 @@ var init_PreviewScreen = __esm({
|
|
36443
36620
|
const authToken = useAuthToken();
|
36444
36621
|
const roomLayout = useRoomLayout();
|
36445
36622
|
const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
36446
|
-
return /* @__PURE__ */
|
36623
|
+
return /* @__PURE__ */ import_react241.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react241.default.createElement(
|
36447
36624
|
Flex,
|
36448
36625
|
{
|
36449
36626
|
css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
|
36450
36627
|
justify: "center",
|
36451
36628
|
align: "center"
|
36452
36629
|
},
|
36453
|
-
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */
|
36630
|
+
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ import_react241.default.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ import_react241.default.createElement(FullPageProgress_default, null)
|
36454
36631
|
));
|
36455
36632
|
};
|
36456
36633
|
}
|
36457
36634
|
});
|
36458
36635
|
|
36459
36636
|
// src/Prebuilt/components/Toast/Toast.jsx
|
36460
|
-
var
|
36637
|
+
var import_react242, Toast2;
|
36461
36638
|
var init_Toast3 = __esm({
|
36462
36639
|
"src/Prebuilt/components/Toast/Toast.jsx"() {
|
36463
36640
|
"use strict";
|
36464
36641
|
init_define_process_env();
|
36465
|
-
|
36642
|
+
import_react242 = __toESM(require("react"));
|
36466
36643
|
init_Toast2();
|
36467
36644
|
Toast2 = (_a7) => {
|
36468
36645
|
var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
|
36469
|
-
return /* @__PURE__ */
|
36646
|
+
return /* @__PURE__ */ import_react242.default.createElement(
|
36470
36647
|
Toast.HMSToast,
|
36471
36648
|
__spreadValues({
|
36472
36649
|
title,
|
@@ -36483,29 +36660,29 @@ var init_Toast3 = __esm({
|
|
36483
36660
|
});
|
36484
36661
|
|
36485
36662
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
36486
|
-
var
|
36663
|
+
var import_react243, import_react_sdk128, ToastContainer;
|
36487
36664
|
var init_ToastContainer = __esm({
|
36488
36665
|
"src/Prebuilt/components/Toast/ToastContainer.jsx"() {
|
36489
36666
|
"use strict";
|
36490
36667
|
init_define_process_env();
|
36491
|
-
|
36492
|
-
|
36668
|
+
import_react243 = __toESM(require("react"));
|
36669
|
+
import_react_sdk128 = require("@100mslive/react-sdk");
|
36493
36670
|
init_Toast2();
|
36494
36671
|
init_Toast3();
|
36495
36672
|
init_ToastManager();
|
36496
36673
|
init_constants();
|
36497
36674
|
ToastContainer = () => {
|
36498
|
-
const isConnected = (0,
|
36499
|
-
const [toasts, setToast] = (0,
|
36500
|
-
(0,
|
36675
|
+
const isConnected = (0, import_react_sdk128.useHMSStore)(import_react_sdk128.selectIsConnectedToRoom);
|
36676
|
+
const [toasts, setToast] = (0, import_react243.useState)([]);
|
36677
|
+
(0, import_react243.useEffect)(() => {
|
36501
36678
|
ToastManager.addListener(setToast);
|
36502
36679
|
return () => {
|
36503
36680
|
ToastManager.removeListener(setToast);
|
36504
36681
|
};
|
36505
36682
|
}, []);
|
36506
|
-
return /* @__PURE__ */
|
36507
|
-
return /* @__PURE__ */
|
36508
|
-
}), /* @__PURE__ */
|
36683
|
+
return /* @__PURE__ */ import_react243.default.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
|
36684
|
+
return /* @__PURE__ */ import_react243.default.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
|
36685
|
+
}), /* @__PURE__ */ import_react243.default.createElement(
|
36509
36686
|
Toast.Viewport,
|
36510
36687
|
{
|
36511
36688
|
css: __spreadValues({
|
@@ -36518,12 +36695,12 @@ var init_ToastContainer = __esm({
|
|
36518
36695
|
});
|
36519
36696
|
|
36520
36697
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
36521
|
-
var
|
36698
|
+
var import_react244, import_react_icons112, RoomDetailsSheet;
|
36522
36699
|
var init_RoomDetailsSheet = __esm({
|
36523
36700
|
"src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx"() {
|
36524
36701
|
"use strict";
|
36525
36702
|
init_define_process_env();
|
36526
|
-
|
36703
|
+
import_react244 = __toESM(require("react"));
|
36527
36704
|
import_react_icons112 = require("@100mslive/react-icons");
|
36528
36705
|
init_Layout();
|
36529
36706
|
init_Sheet2();
|
@@ -36537,57 +36714,57 @@ var init_RoomDetailsSheet = __esm({
|
|
36537
36714
|
const { title, description, details } = useRoomLayoutHeader();
|
36538
36715
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
36539
36716
|
const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
|
36540
|
-
return /* @__PURE__ */
|
36717
|
+
return /* @__PURE__ */ import_react244.default.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ import_react244.default.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ import_react244.default.createElement(
|
36541
36718
|
Flex,
|
36542
36719
|
{
|
36543
36720
|
justify: "between",
|
36544
36721
|
align: "center",
|
36545
36722
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
36546
36723
|
},
|
36547
|
-
/* @__PURE__ */
|
36548
|
-
/* @__PURE__ */
|
36549
|
-
), /* @__PURE__ */
|
36724
|
+
/* @__PURE__ */ import_react244.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
36725
|
+
/* @__PURE__ */ import_react244.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react244.default.createElement(import_react_icons112.CrossIcon, null))
|
36726
|
+
), /* @__PURE__ */ import_react244.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ import_react244.default.createElement(Logo, null), /* @__PURE__ */ import_react244.default.createElement(Box, null, /* @__PURE__ */ import_react244.default.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ import_react244.default.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ import_react244.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
36550
36727
|
};
|
36551
36728
|
}
|
36552
36729
|
});
|
36553
36730
|
|
36554
36731
|
// src/Prebuilt/layouts/Sheet.tsx
|
36555
|
-
var
|
36732
|
+
var import_react245, import_react_sdk129, Sheet2;
|
36556
36733
|
var init_Sheet3 = __esm({
|
36557
36734
|
"src/Prebuilt/layouts/Sheet.tsx"() {
|
36558
36735
|
"use strict";
|
36559
36736
|
init_define_process_env();
|
36560
|
-
|
36561
|
-
|
36737
|
+
import_react245 = __toESM(require("react"));
|
36738
|
+
import_react_sdk129 = require("@100mslive/react-sdk");
|
36562
36739
|
init_RoomDetailsSheet();
|
36563
36740
|
init_Layout();
|
36564
36741
|
init_constants();
|
36565
36742
|
Sheet2 = () => {
|
36566
|
-
const sheet = (0,
|
36743
|
+
const sheet = (0, import_react_sdk129.useHMSStore)((0, import_react_sdk129.selectAppData)(APP_DATA.sheet));
|
36567
36744
|
let ViewComponent;
|
36568
36745
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
36569
|
-
ViewComponent = /* @__PURE__ */
|
36746
|
+
ViewComponent = /* @__PURE__ */ import_react245.default.createElement(RoomDetailsSheet, null);
|
36570
36747
|
}
|
36571
|
-
return /* @__PURE__ */
|
36748
|
+
return /* @__PURE__ */ import_react245.default.createElement(Box, null, ViewComponent);
|
36572
36749
|
};
|
36573
36750
|
}
|
36574
36751
|
});
|
36575
36752
|
|
36576
36753
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
36577
36754
|
function FlyingEmoji() {
|
36578
|
-
const localPeerId = (0,
|
36579
|
-
const vanillaStore = (0,
|
36580
|
-
const hmsActions = (0,
|
36581
|
-
const [emojis, setEmojis] = (0,
|
36755
|
+
const localPeerId = (0, import_react_sdk130.useHMSStore)(import_react_sdk130.selectLocalPeerID);
|
36756
|
+
const vanillaStore = (0, import_react_sdk130.useHMSVanillaStore)();
|
36757
|
+
const hmsActions = (0, import_react_sdk130.useHMSActions)();
|
36758
|
+
const [emojis, setEmojis] = (0, import_react246.useState)([]);
|
36582
36759
|
const isMobile = (0, import_react_use60.useMedia)(config.media.md);
|
36583
|
-
const isLargeRoom = (0,
|
36584
|
-
const startingPoints = (0,
|
36585
|
-
const showFlyingEmoji = (0,
|
36760
|
+
const isLargeRoom = (0, import_react_sdk130.useHMSStore)(import_react_sdk130.selectIsLargeRoom);
|
36761
|
+
const startingPoints = (0, import_react246.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
36762
|
+
const showFlyingEmoji = (0, import_react246.useCallback)(
|
36586
36763
|
(_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
|
36587
36764
|
if (!emojiId || !senderId || document.hidden) {
|
36588
36765
|
return;
|
36589
36766
|
}
|
36590
|
-
let senderPeerName = vanillaStore.getState((0,
|
36767
|
+
let senderPeerName = vanillaStore.getState((0, import_react_sdk130.selectPeerNameByID)(senderId));
|
36591
36768
|
if (!senderPeerName && isLargeRoom) {
|
36592
36769
|
const sender = yield hmsActions.getPeer(senderId);
|
36593
36770
|
senderPeerName = sender == null ? void 0 : sender.name;
|
@@ -36610,14 +36787,14 @@ function FlyingEmoji() {
|
|
36610
36787
|
}),
|
36611
36788
|
[vanillaStore, isLargeRoom, localPeerId, startingPoints, hmsActions]
|
36612
36789
|
);
|
36613
|
-
(0,
|
36790
|
+
(0, import_react_sdk130.useCustomEvent)({
|
36614
36791
|
type: EMOJI_REACTION_TYPE,
|
36615
36792
|
onEvent: showFlyingEmoji
|
36616
36793
|
});
|
36617
|
-
(0,
|
36794
|
+
(0, import_react246.useEffect)(() => {
|
36618
36795
|
window.showFlyingEmoji = showFlyingEmoji;
|
36619
36796
|
}, [showFlyingEmoji]);
|
36620
|
-
return /* @__PURE__ */
|
36797
|
+
return /* @__PURE__ */ import_react246.default.createElement(
|
36621
36798
|
Box,
|
36622
36799
|
{
|
36623
36800
|
css: {
|
@@ -36633,7 +36810,7 @@ function FlyingEmoji() {
|
|
36633
36810
|
}
|
36634
36811
|
},
|
36635
36812
|
emojis.map((emoji) => {
|
36636
|
-
return /* @__PURE__ */
|
36813
|
+
return /* @__PURE__ */ import_react246.default.createElement(
|
36637
36814
|
Flex,
|
36638
36815
|
{
|
36639
36816
|
key: emoji.id,
|
@@ -36647,8 +36824,8 @@ function FlyingEmoji() {
|
|
36647
36824
|
},
|
36648
36825
|
onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
|
36649
36826
|
},
|
36650
|
-
/* @__PURE__ */
|
36651
|
-
emoji.senderName ? /* @__PURE__ */
|
36827
|
+
/* @__PURE__ */ import_react246.default.createElement(Box, null, /* @__PURE__ */ import_react246.default.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
|
36828
|
+
emoji.senderName ? /* @__PURE__ */ import_react246.default.createElement(
|
36652
36829
|
Box,
|
36653
36830
|
{
|
36654
36831
|
css: {
|
@@ -36658,7 +36835,7 @@ function FlyingEmoji() {
|
|
36658
36835
|
borderRadius: "$1"
|
36659
36836
|
}
|
36660
36837
|
},
|
36661
|
-
/* @__PURE__ */
|
36838
|
+
/* @__PURE__ */ import_react246.default.createElement(
|
36662
36839
|
Text,
|
36663
36840
|
{
|
36664
36841
|
css: {
|
@@ -36674,14 +36851,14 @@ function FlyingEmoji() {
|
|
36674
36851
|
})
|
36675
36852
|
);
|
36676
36853
|
}
|
36677
|
-
var
|
36854
|
+
var import_react246, import_react_use60, import_react_sdk130, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
36678
36855
|
var init_FlyingEmoji = __esm({
|
36679
36856
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
36680
36857
|
"use strict";
|
36681
36858
|
init_define_process_env();
|
36682
|
-
|
36859
|
+
import_react246 = __toESM(require("react"));
|
36683
36860
|
import_react_use60 = require("react-use");
|
36684
|
-
|
36861
|
+
import_react_sdk130 = require("@100mslive/react-sdk");
|
36685
36862
|
init_Layout();
|
36686
36863
|
init_Text2();
|
36687
36864
|
init_Theme();
|
@@ -36714,47 +36891,47 @@ var init_FlyingEmoji = __esm({
|
|
36714
36891
|
|
36715
36892
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
36716
36893
|
function RemoteStopScreenshare() {
|
36717
|
-
const actions = (0,
|
36718
|
-
const onRemoteStopScreenshare = (0,
|
36894
|
+
const actions = (0, import_react_sdk131.useHMSActions)();
|
36895
|
+
const onRemoteStopScreenshare = (0, import_react247.useCallback)(() => __async(this, null, function* () {
|
36719
36896
|
yield actions.setScreenShareEnabled(false);
|
36720
36897
|
}), [actions]);
|
36721
|
-
(0,
|
36898
|
+
(0, import_react_sdk131.useCustomEvent)({
|
36722
36899
|
type: REMOTE_STOP_SCREENSHARE_TYPE,
|
36723
36900
|
onEvent: onRemoteStopScreenshare
|
36724
36901
|
});
|
36725
|
-
return /* @__PURE__ */
|
36902
|
+
return /* @__PURE__ */ import_react247.default.createElement(import_react247.default.Fragment, null);
|
36726
36903
|
}
|
36727
|
-
var
|
36904
|
+
var import_react247, import_react_sdk131;
|
36728
36905
|
var init_RemoteStopScreenshare = __esm({
|
36729
36906
|
"src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
|
36730
36907
|
"use strict";
|
36731
36908
|
init_define_process_env();
|
36732
|
-
|
36733
|
-
|
36909
|
+
import_react247 = __toESM(require("react"));
|
36910
|
+
import_react_sdk131 = require("@100mslive/react-sdk");
|
36734
36911
|
init_constants();
|
36735
36912
|
}
|
36736
36913
|
});
|
36737
36914
|
|
36738
36915
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
36739
|
-
var
|
36916
|
+
var import_react248, import_react_sdk132, useAutoStartStreaming;
|
36740
36917
|
var init_useAutoStartStreaming = __esm({
|
36741
36918
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
|
36742
36919
|
"use strict";
|
36743
36920
|
init_define_process_env();
|
36744
|
-
|
36745
|
-
|
36921
|
+
import_react248 = require("react");
|
36922
|
+
import_react_sdk132 = require("@100mslive/react-sdk");
|
36746
36923
|
init_useUISettings();
|
36747
36924
|
init_hooks();
|
36748
36925
|
init_constants();
|
36749
36926
|
useAutoStartStreaming = () => {
|
36750
36927
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
36751
|
-
const permissions = (0,
|
36928
|
+
const permissions = (0, import_react_sdk132.useHMSStore)(import_react_sdk132.selectPermissions);
|
36752
36929
|
const showStreamingUI = useShowStreamingUI();
|
36753
|
-
const hmsActions = (0,
|
36754
|
-
const isConnected = (0,
|
36755
|
-
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0,
|
36756
|
-
const streamStartedRef = (0,
|
36757
|
-
const startHLS = (0,
|
36930
|
+
const hmsActions = (0, import_react_sdk132.useHMSActions)();
|
36931
|
+
const isConnected = (0, import_react_sdk132.useHMSStore)(import_react_sdk132.selectIsConnectedToRoom);
|
36932
|
+
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk132.useRecordingStreaming)();
|
36933
|
+
const streamStartedRef = (0, import_react248.useRef)(false);
|
36934
|
+
const startHLS = (0, import_react248.useCallback)(() => __async(void 0, null, function* () {
|
36758
36935
|
try {
|
36759
36936
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
36760
36937
|
return;
|
@@ -36777,12 +36954,12 @@ var init_useAutoStartStreaming = __esm({
|
|
36777
36954
|
isHLSRecordingOn,
|
36778
36955
|
isBrowserRecordingOn
|
36779
36956
|
]);
|
36780
|
-
(0,
|
36957
|
+
(0, import_react248.useEffect)(() => {
|
36781
36958
|
if (!isHLSStarted && !isHLSRunning) {
|
36782
36959
|
streamStartedRef.current = false;
|
36783
36960
|
}
|
36784
36961
|
}, [isHLSStarted, isHLSRunning]);
|
36785
|
-
(0,
|
36962
|
+
(0, import_react248.useEffect)(() => {
|
36786
36963
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
36787
36964
|
return;
|
36788
36965
|
}
|
@@ -36800,23 +36977,23 @@ function AppRoutes({
|
|
36800
36977
|
const roomLayout = useRoomLayout();
|
36801
36978
|
const isNotificationsDisabled = useIsNotificationDisabled();
|
36802
36979
|
const { activeState, rejoin } = useAppStateManager();
|
36803
|
-
return /* @__PURE__ */
|
36980
|
+
return /* @__PURE__ */ import_react249.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react249.default.createElement(import_react249.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react249.default.createElement(AppData, null), /* @__PURE__ */ import_react249.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react249.default.createElement(Notifications, null), /* @__PURE__ */ import_react249.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react249.default.createElement(Sheet2, null), /* @__PURE__ */ import_react249.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react249.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react249.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react249.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react249.default.createElement(
|
36804
36981
|
AuthToken_default,
|
36805
36982
|
{
|
36806
36983
|
authTokenByRoomCodeEndpoint,
|
36807
36984
|
defaultAuthToken,
|
36808
36985
|
activeState
|
36809
36986
|
}
|
36810
|
-
), roomLayout && activeState && /* @__PURE__ */
|
36987
|
+
), roomLayout && activeState && /* @__PURE__ */ import_react249.default.createElement(AppStates, { activeState })));
|
36811
36988
|
}
|
36812
|
-
var
|
36989
|
+
var import_react249, import_ts_pattern17, import_react_sdk133, HMSPrebuilt, AppStates, BackSwipe;
|
36813
36990
|
var init_App = __esm({
|
36814
36991
|
"src/Prebuilt/App.tsx"() {
|
36815
36992
|
"use strict";
|
36816
36993
|
init_define_process_env();
|
36817
|
-
|
36994
|
+
import_react249 = __toESM(require("react"));
|
36818
36995
|
import_ts_pattern17 = require("ts-pattern");
|
36819
|
-
|
36996
|
+
import_react_sdk133 = require("@100mslive/react-sdk");
|
36820
36997
|
init_AppData();
|
36821
36998
|
init_AuthToken();
|
36822
36999
|
init_ConferenceScreen();
|
@@ -36844,7 +37021,7 @@ var init_App = __esm({
|
|
36844
37021
|
init_useRoomLayoutScreen();
|
36845
37022
|
init_FeatureFlags();
|
36846
37023
|
init_constants();
|
36847
|
-
HMSPrebuilt =
|
37024
|
+
HMSPrebuilt = import_react249.default.forwardRef(
|
36848
37025
|
({
|
36849
37026
|
roomCode = "",
|
36850
37027
|
authToken = "",
|
@@ -36859,11 +37036,11 @@ var init_App = __esm({
|
|
36859
37036
|
onJoin
|
36860
37037
|
}, ref) => {
|
36861
37038
|
var _a7, _b7, _c, _d;
|
36862
|
-
const reactiveStore = (0,
|
36863
|
-
const [hydrated, setHydrated] =
|
36864
|
-
(0,
|
37039
|
+
const reactiveStore = (0, import_react249.useRef)();
|
37040
|
+
const [hydrated, setHydrated] = import_react249.default.useState(false);
|
37041
|
+
(0, import_react249.useEffect)(() => {
|
36865
37042
|
setHydrated(true);
|
36866
|
-
const hms = new
|
37043
|
+
const hms = new import_react_sdk133.HMSReactiveStore();
|
36867
37044
|
const hmsStore = hms.getStore();
|
36868
37045
|
const hmsActions = hms.getActions();
|
36869
37046
|
const hmsNotifications = hms.getNotifications();
|
@@ -36876,13 +37053,13 @@ var init_App = __esm({
|
|
36876
37053
|
hmsNotifications
|
36877
37054
|
};
|
36878
37055
|
}, []);
|
36879
|
-
(0,
|
37056
|
+
(0, import_react249.useEffect)(() => {
|
36880
37057
|
if (!ref || !reactiveStore.current) {
|
36881
37058
|
return;
|
36882
37059
|
}
|
36883
37060
|
ref.current = __spreadValues({}, reactiveStore.current);
|
36884
37061
|
}, [ref]);
|
36885
|
-
(0,
|
37062
|
+
(0, import_react249.useEffect)(() => {
|
36886
37063
|
return () => {
|
36887
37064
|
var _a8;
|
36888
37065
|
VBHandler.reset();
|
@@ -36912,7 +37089,7 @@ var init_App = __esm({
|
|
36912
37089
|
return null;
|
36913
37090
|
}
|
36914
37091
|
globalStyles();
|
36915
|
-
return /* @__PURE__ */
|
37092
|
+
return /* @__PURE__ */ import_react249.default.createElement(ErrorBoundary, null, /* @__PURE__ */ import_react249.default.createElement(
|
36916
37093
|
HMSPrebuiltContext.Provider,
|
36917
37094
|
{
|
36918
37095
|
value: {
|
@@ -36930,8 +37107,8 @@ var init_App = __esm({
|
|
36930
37107
|
}
|
36931
37108
|
}
|
36932
37109
|
},
|
36933
|
-
/* @__PURE__ */
|
36934
|
-
|
37110
|
+
/* @__PURE__ */ import_react249.default.createElement(
|
37111
|
+
import_react_sdk133.HMSRoomProvider,
|
36935
37112
|
{
|
36936
37113
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
36937
37114
|
actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
|
@@ -36940,7 +37117,7 @@ var init_App = __esm({
|
|
36940
37117
|
stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
|
36941
37118
|
leaveOnUnload
|
36942
37119
|
},
|
36943
|
-
/* @__PURE__ */
|
37120
|
+
/* @__PURE__ */ import_react249.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react249.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
|
36944
37121
|
var _a8;
|
36945
37122
|
const layout = data3 == null ? void 0 : data3.layout;
|
36946
37123
|
const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
|
@@ -36949,7 +37126,7 @@ var init_App = __esm({
|
|
36949
37126
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
36950
37127
|
fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
|
36951
37128
|
}
|
36952
|
-
return /* @__PURE__ */
|
37129
|
+
return /* @__PURE__ */ import_react249.default.createElement(
|
36953
37130
|
HMSThemeProvider,
|
36954
37131
|
{
|
36955
37132
|
themeType: `${theme2.name}-${Date.now()}`,
|
@@ -36962,7 +37139,7 @@ var init_App = __esm({
|
|
36962
37139
|
}
|
36963
37140
|
}
|
36964
37141
|
},
|
36965
|
-
/* @__PURE__ */
|
37142
|
+
/* @__PURE__ */ import_react249.default.createElement(PIPProvider, null, /* @__PURE__ */ import_react249.default.createElement(Init, null), /* @__PURE__ */ import_react249.default.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ import_react249.default.createElement(
|
36966
37143
|
Box,
|
36967
37144
|
{
|
36968
37145
|
className: DEFAULT_PORTAL_CONTAINER.slice(1),
|
@@ -36974,7 +37151,7 @@ var init_App = __esm({
|
|
36974
37151
|
position: "relative"
|
36975
37152
|
}
|
36976
37153
|
},
|
36977
|
-
/* @__PURE__ */
|
37154
|
+
/* @__PURE__ */ import_react249.default.createElement(
|
36978
37155
|
AppRoutes,
|
36979
37156
|
{
|
36980
37157
|
authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
|
@@ -36993,12 +37170,12 @@ var init_App = __esm({
|
|
36993
37170
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
36994
37171
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
36995
37172
|
useAutoStartStreaming();
|
36996
|
-
return (0, import_ts_pattern17.match)({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */
|
37173
|
+
return (0, import_ts_pattern17.match)({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ import_react249.default.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ import_react249.default.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ import_react249.default.createElement(ConferenceScreen, null));
|
36997
37174
|
};
|
36998
37175
|
BackSwipe = () => {
|
36999
|
-
const isConnectedToRoom = (0,
|
37000
|
-
const hmsActions = (0,
|
37001
|
-
(0,
|
37176
|
+
const isConnectedToRoom = (0, import_react_sdk133.useHMSStore)(import_react_sdk133.selectIsConnectedToRoom);
|
37177
|
+
const hmsActions = (0, import_react_sdk133.useHMSActions)();
|
37178
|
+
(0, import_react249.useEffect)(() => {
|
37002
37179
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
37003
37180
|
if (isConnectedToRoom) {
|
37004
37181
|
yield hmsActions.leave();
|
@@ -37047,12 +37224,12 @@ var init_Progress = __esm({
|
|
37047
37224
|
});
|
37048
37225
|
|
37049
37226
|
// src/Diagnostics/DiagnosticsContext.ts
|
37050
|
-
var
|
37227
|
+
var import_react250, DiagnosticsStep, initialSteps, DiagnosticsContext, useDiagnostics;
|
37051
37228
|
var init_DiagnosticsContext = __esm({
|
37052
37229
|
"src/Diagnostics/DiagnosticsContext.ts"() {
|
37053
37230
|
"use strict";
|
37054
37231
|
init_define_process_env();
|
37055
|
-
|
37232
|
+
import_react250 = __toESM(require("react"));
|
37056
37233
|
DiagnosticsStep = /* @__PURE__ */ ((DiagnosticsStep2) => {
|
37057
37234
|
DiagnosticsStep2[DiagnosticsStep2["BROWSER"] = 0] = "BROWSER";
|
37058
37235
|
DiagnosticsStep2[DiagnosticsStep2["VIDEO"] = 1] = "VIDEO";
|
@@ -37066,7 +37243,7 @@ var init_DiagnosticsContext = __esm({
|
|
37066
37243
|
[2 /* AUDIO */]: { name: "Test Audio" },
|
37067
37244
|
[3 /* CONNECTIVITY */]: { name: "Connection Quality" }
|
37068
37245
|
};
|
37069
|
-
DiagnosticsContext =
|
37246
|
+
DiagnosticsContext = import_react250.default.createContext({
|
37070
37247
|
activeStepIndex: 0,
|
37071
37248
|
setActiveStep: () => {
|
37072
37249
|
return;
|
@@ -37077,7 +37254,7 @@ var init_DiagnosticsContext = __esm({
|
|
37077
37254
|
}
|
37078
37255
|
});
|
37079
37256
|
useDiagnostics = () => {
|
37080
|
-
const context = (0,
|
37257
|
+
const context = (0, import_react250.useContext)(DiagnosticsContext);
|
37081
37258
|
const activeStep = context.steps[context.activeStepIndex];
|
37082
37259
|
return __spreadProps(__spreadValues({}, context), { activeStep });
|
37083
37260
|
};
|
@@ -37085,18 +37262,18 @@ var init_DiagnosticsContext = __esm({
|
|
37085
37262
|
});
|
37086
37263
|
|
37087
37264
|
// src/Diagnostics/components.tsx
|
37088
|
-
var
|
37265
|
+
var import_react251, TestContainer, TestFooter;
|
37089
37266
|
var init_components = __esm({
|
37090
37267
|
"src/Diagnostics/components.tsx"() {
|
37091
37268
|
"use strict";
|
37092
37269
|
init_define_process_env();
|
37093
|
-
|
37270
|
+
import_react251 = __toESM(require("react"));
|
37094
37271
|
init_Button2();
|
37095
37272
|
init_Layout();
|
37096
37273
|
init_Text2();
|
37097
37274
|
init_DiagnosticsContext();
|
37098
37275
|
TestContainer = ({ css: css2, children }) => {
|
37099
|
-
return /* @__PURE__ */
|
37276
|
+
return /* @__PURE__ */ import_react251.default.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
|
37100
37277
|
};
|
37101
37278
|
TestFooter = ({
|
37102
37279
|
error,
|
@@ -37114,7 +37291,7 @@ var init_components = __esm({
|
|
37114
37291
|
}
|
37115
37292
|
setActiveStep((step) => step + 1);
|
37116
37293
|
};
|
37117
|
-
return /* @__PURE__ */
|
37294
|
+
return /* @__PURE__ */ import_react251.default.createElement(
|
37118
37295
|
Flex,
|
37119
37296
|
{
|
37120
37297
|
css: {
|
@@ -37132,8 +37309,8 @@ var init_components = __esm({
|
|
37132
37309
|
"@lg": { flexDirection: "column", gap: "$8" }
|
37133
37310
|
}
|
37134
37311
|
},
|
37135
|
-
/* @__PURE__ */
|
37136
|
-
children ? children : /* @__PURE__ */
|
37312
|
+
/* @__PURE__ */ import_react251.default.createElement(Box, null, error && /* @__PURE__ */ import_react251.default.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
|
37313
|
+
children ? children : /* @__PURE__ */ import_react251.default.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ import_react251.default.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ import_react251.default.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ import_react251.default.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ import_react251.default.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
|
37137
37314
|
);
|
37138
37315
|
};
|
37139
37316
|
}
|
@@ -37148,7 +37325,7 @@ var require_react_is_production_min = __commonJS({
|
|
37148
37325
|
var c2 = b2 ? Symbol.for("react.element") : 60103;
|
37149
37326
|
var d = b2 ? Symbol.for("react.portal") : 60106;
|
37150
37327
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
37151
|
-
var
|
37328
|
+
var f = b2 ? Symbol.for("react.strict_mode") : 60108;
|
37152
37329
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
37153
37330
|
var h = b2 ? Symbol.for("react.provider") : 60109;
|
37154
37331
|
var k = b2 ? Symbol.for("react.context") : 60110;
|
@@ -37159,7 +37336,7 @@ var require_react_is_production_min = __commonJS({
|
|
37159
37336
|
var q = b2 ? Symbol.for("react.suspense_list") : 60120;
|
37160
37337
|
var r = b2 ? Symbol.for("react.memo") : 60115;
|
37161
37338
|
var t = b2 ? Symbol.for("react.lazy") : 60116;
|
37162
|
-
var
|
37339
|
+
var v2 = b2 ? Symbol.for("react.block") : 60121;
|
37163
37340
|
var w = b2 ? Symbol.for("react.fundamental") : 60117;
|
37164
37341
|
var x = b2 ? Symbol.for("react.responder") : 60118;
|
37165
37342
|
var y2 = b2 ? Symbol.for("react.scope") : 60119;
|
@@ -37173,7 +37350,7 @@ var require_react_is_production_min = __commonJS({
|
|
37173
37350
|
case m2:
|
37174
37351
|
case e:
|
37175
37352
|
case g:
|
37176
|
-
case
|
37353
|
+
case f:
|
37177
37354
|
case p:
|
37178
37355
|
return a2;
|
37179
37356
|
default:
|
@@ -37207,7 +37384,7 @@ var require_react_is_production_min = __commonJS({
|
|
37207
37384
|
exports.Memo = r;
|
37208
37385
|
exports.Portal = d;
|
37209
37386
|
exports.Profiler = g;
|
37210
|
-
exports.StrictMode =
|
37387
|
+
exports.StrictMode = f;
|
37211
37388
|
exports.Suspense = p;
|
37212
37389
|
exports.isAsyncMode = function(a2) {
|
37213
37390
|
return A(a2) || z(a2) === l2;
|
@@ -37241,13 +37418,13 @@ var require_react_is_production_min = __commonJS({
|
|
37241
37418
|
return z(a2) === g;
|
37242
37419
|
};
|
37243
37420
|
exports.isStrictMode = function(a2) {
|
37244
|
-
return z(a2) ===
|
37421
|
+
return z(a2) === f;
|
37245
37422
|
};
|
37246
37423
|
exports.isSuspense = function(a2) {
|
37247
37424
|
return z(a2) === p;
|
37248
37425
|
};
|
37249
37426
|
exports.isValidElementType = function(a2) {
|
37250
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 ===
|
37427
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v2);
|
37251
37428
|
};
|
37252
37429
|
exports.typeOf = z;
|
37253
37430
|
}
|
@@ -38096,12 +38273,12 @@ var require_prop_types = __commonJS({
|
|
38096
38273
|
});
|
38097
38274
|
|
38098
38275
|
// src/Diagnostics/DeviceSelector.jsx
|
38099
|
-
var
|
38276
|
+
var import_react252, import_prop_types, DeviceSelector2;
|
38100
38277
|
var init_DeviceSelector = __esm({
|
38101
38278
|
"src/Diagnostics/DeviceSelector.jsx"() {
|
38102
38279
|
"use strict";
|
38103
38280
|
init_define_process_env();
|
38104
|
-
|
38281
|
+
import_react252 = __toESM(require("react"));
|
38105
38282
|
import_prop_types = __toESM(require_prop_types());
|
38106
38283
|
init_Dropdown2();
|
38107
38284
|
init_Layout();
|
@@ -38109,9 +38286,9 @@ var init_DeviceSelector = __esm({
|
|
38109
38286
|
init_Text2();
|
38110
38287
|
DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
|
38111
38288
|
var _a7, _b7;
|
38112
|
-
const [open, setOpen] = (0,
|
38113
|
-
const ref = (0,
|
38114
|
-
return /* @__PURE__ */
|
38289
|
+
const [open, setOpen] = (0, import_react252.useState)(false);
|
38290
|
+
const ref = (0, import_react252.useRef)(null);
|
38291
|
+
return /* @__PURE__ */ import_react252.default.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ import_react252.default.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ import_react252.default.createElement(
|
38115
38292
|
Flex,
|
38116
38293
|
{
|
38117
38294
|
align: "center",
|
@@ -38123,7 +38300,7 @@ var init_DeviceSelector = __esm({
|
|
38123
38300
|
}
|
38124
38301
|
}
|
38125
38302
|
},
|
38126
|
-
/* @__PURE__ */
|
38303
|
+
/* @__PURE__ */ import_react252.default.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ import_react252.default.createElement(
|
38127
38304
|
DialogDropdownTrigger,
|
38128
38305
|
{
|
38129
38306
|
ref,
|
@@ -38131,7 +38308,7 @@ var init_DeviceSelector = __esm({
|
|
38131
38308
|
title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
|
38132
38309
|
open
|
38133
38310
|
}
|
38134
|
-
), /* @__PURE__ */
|
38311
|
+
), /* @__PURE__ */ import_react252.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react252.default.createElement(
|
38135
38312
|
Dropdown.Content,
|
38136
38313
|
{
|
38137
38314
|
align: "start",
|
@@ -38145,7 +38322,7 @@ var init_DeviceSelector = __esm({
|
|
38145
38322
|
}
|
38146
38323
|
},
|
38147
38324
|
devices.map((device) => {
|
38148
|
-
return /* @__PURE__ */
|
38325
|
+
return /* @__PURE__ */ import_react252.default.createElement(
|
38149
38326
|
Dropdown.Item,
|
38150
38327
|
{
|
38151
38328
|
key: device.label,
|
@@ -38173,13 +38350,13 @@ var init_DeviceSelector = __esm({
|
|
38173
38350
|
});
|
38174
38351
|
|
38175
38352
|
// src/Diagnostics/AudioTest.tsx
|
38176
|
-
var
|
38353
|
+
var import_react253, import_react_sdk134, import_react_icons113, SelectContainer, MicTest, SpeakerTest, AudioTest;
|
38177
38354
|
var init_AudioTest = __esm({
|
38178
38355
|
"src/Diagnostics/AudioTest.tsx"() {
|
38179
38356
|
"use strict";
|
38180
38357
|
init_define_process_env();
|
38181
|
-
|
38182
|
-
|
38358
|
+
import_react253 = __toESM(require("react"));
|
38359
|
+
import_react_sdk134 = require("@100mslive/react-sdk");
|
38183
38360
|
import_react_icons113 = require("@100mslive/react-icons");
|
38184
38361
|
init_PermissionErrorModal();
|
38185
38362
|
init_components();
|
@@ -38191,33 +38368,33 @@ var init_AudioTest = __esm({
|
|
38191
38368
|
init_DiagnosticsContext();
|
38192
38369
|
init_useAudioOutputTest();
|
38193
38370
|
init_constants();
|
38194
|
-
SelectContainer = ({ children }) => /* @__PURE__ */
|
38371
|
+
SelectContainer = ({ children }) => /* @__PURE__ */ import_react253.default.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
|
38195
38372
|
MicTest = ({ setError }) => {
|
38196
38373
|
var _a7, _b7;
|
38197
38374
|
const { hmsDiagnostics } = useDiagnostics();
|
38198
|
-
const devices = (0,
|
38199
|
-
const [isRecording, setIsRecording] = (0,
|
38200
|
-
const [selectedMic, setSelectedMic] = (0,
|
38201
|
-
const trackID = (0,
|
38202
|
-
const audioLevel = (0,
|
38203
|
-
const { audioOutputDeviceId } = (0,
|
38375
|
+
const devices = (0, import_react_sdk134.useHMSStore)(import_react_sdk134.selectDevices);
|
38376
|
+
const [isRecording, setIsRecording] = (0, import_react253.useState)(false);
|
38377
|
+
const [selectedMic, setSelectedMic] = (0, import_react253.useState)(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
|
38378
|
+
const trackID = (0, import_react_sdk134.useHMSStore)(import_react_sdk134.selectLocalAudioTrackID);
|
38379
|
+
const audioLevel = (0, import_react_sdk134.useHMSStore)((0, import_react_sdk134.selectTrackAudioByID)(trackID));
|
38380
|
+
const { audioOutputDeviceId } = (0, import_react_sdk134.useHMSStore)(import_react_sdk134.selectLocalMediaSettings);
|
38204
38381
|
const { playing, setPlaying, audioRef } = useAudioOutputTest({
|
38205
38382
|
deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
|
38206
38383
|
});
|
38207
|
-
return /* @__PURE__ */
|
38384
|
+
return /* @__PURE__ */ import_react253.default.createElement(SelectContainer, null, /* @__PURE__ */ import_react253.default.createElement(
|
38208
38385
|
DeviceSelector2,
|
38209
38386
|
{
|
38210
38387
|
title: "Microphone (Input)",
|
38211
38388
|
devices: devices.audioInput,
|
38212
38389
|
selection: selectedMic,
|
38213
|
-
icon: /* @__PURE__ */
|
38390
|
+
icon: /* @__PURE__ */ import_react253.default.createElement(import_react_icons113.MicOnIcon, null),
|
38214
38391
|
onChange: (deviceId) => {
|
38215
38392
|
setError(void 0);
|
38216
38393
|
setSelectedMic(deviceId);
|
38217
38394
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopMicCheck();
|
38218
38395
|
}
|
38219
38396
|
}
|
38220
|
-
), /* @__PURE__ */
|
38397
|
+
), /* @__PURE__ */ import_react253.default.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ import_react253.default.createElement(
|
38221
38398
|
Button,
|
38222
38399
|
{
|
38223
38400
|
variant: "standard",
|
@@ -38237,9 +38414,9 @@ var init_AudioTest = __esm({
|
|
38237
38414
|
},
|
38238
38415
|
disabled: devices.audioInput.length === 0 || playing
|
38239
38416
|
},
|
38240
|
-
isRecording ? /* @__PURE__ */
|
38417
|
+
isRecording ? /* @__PURE__ */ import_react253.default.createElement(import_react_icons113.StopIcon, null) : /* @__PURE__ */ import_react253.default.createElement(import_react_icons113.MicOnIcon, null),
|
38241
38418
|
isRecording ? "Stop Recording" : "Record"
|
38242
|
-
), /* @__PURE__ */
|
38419
|
+
), /* @__PURE__ */ import_react253.default.createElement(
|
38243
38420
|
Button,
|
38244
38421
|
{
|
38245
38422
|
icon: true,
|
@@ -38253,9 +38430,9 @@ var init_AudioTest = __esm({
|
|
38253
38430
|
},
|
38254
38431
|
disabled: playing || (hmsDiagnostics == null ? void 0 : hmsDiagnostics.getRecordedAudio()) === TEST_AUDIO_URL
|
38255
38432
|
},
|
38256
|
-
/* @__PURE__ */
|
38433
|
+
/* @__PURE__ */ import_react253.default.createElement(import_react_icons113.SpeakerIcon, null),
|
38257
38434
|
playing ? "Playing..." : "Playback"
|
38258
|
-
), /* @__PURE__ */
|
38435
|
+
), /* @__PURE__ */ import_react253.default.createElement(
|
38259
38436
|
"audio",
|
38260
38437
|
{
|
38261
38438
|
ref: audioRef,
|
@@ -38263,7 +38440,7 @@ var init_AudioTest = __esm({
|
|
38263
38440
|
onPlay: () => setPlaying(true),
|
38264
38441
|
style: { display: "none" }
|
38265
38442
|
}
|
38266
|
-
)), /* @__PURE__ */
|
38443
|
+
)), /* @__PURE__ */ import_react253.default.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ import_react253.default.createElement(Text, null, /* @__PURE__ */ import_react253.default.createElement(import_react_icons113.MicOnIcon, null)), /* @__PURE__ */ import_react253.default.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ import_react253.default.createElement(
|
38267
38444
|
Progress.Content,
|
38268
38445
|
{
|
38269
38446
|
style: {
|
@@ -38275,19 +38452,19 @@ var init_AudioTest = __esm({
|
|
38275
38452
|
};
|
38276
38453
|
SpeakerTest = () => {
|
38277
38454
|
var _a7;
|
38278
|
-
const actions = (0,
|
38279
|
-
const devices = (0,
|
38280
|
-
const { audioOutputDeviceId } = (0,
|
38455
|
+
const actions = (0, import_react_sdk134.useHMSActions)();
|
38456
|
+
const devices = (0, import_react_sdk134.useHMSStore)(import_react_sdk134.selectDevices);
|
38457
|
+
const { audioOutputDeviceId } = (0, import_react_sdk134.useHMSStore)(import_react_sdk134.selectLocalMediaSettings);
|
38281
38458
|
if (devices.audioOutput.length === 0) {
|
38282
|
-
return /* @__PURE__ */
|
38459
|
+
return /* @__PURE__ */ import_react253.default.createElement(import_react253.default.Fragment, null);
|
38283
38460
|
}
|
38284
|
-
return /* @__PURE__ */
|
38461
|
+
return /* @__PURE__ */ import_react253.default.createElement(SelectContainer, null, /* @__PURE__ */ import_react253.default.createElement(
|
38285
38462
|
DeviceSelector2,
|
38286
38463
|
{
|
38287
38464
|
title: "Speaker (Output)",
|
38288
38465
|
devices: devices.audioOutput,
|
38289
38466
|
selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
|
38290
|
-
icon: /* @__PURE__ */
|
38467
|
+
icon: /* @__PURE__ */ import_react253.default.createElement(import_react_icons113.SpeakerIcon, null),
|
38291
38468
|
onChange: (deviceId) => {
|
38292
38469
|
actions.setAudioOutputDevice(deviceId);
|
38293
38470
|
}
|
@@ -38296,18 +38473,18 @@ var init_AudioTest = __esm({
|
|
38296
38473
|
};
|
38297
38474
|
AudioTest = () => {
|
38298
38475
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
38299
|
-
const [error, setErrorAlone] = (0,
|
38300
|
-
const setError = (0,
|
38476
|
+
const [error, setErrorAlone] = (0, import_react253.useState)();
|
38477
|
+
const setError = (0, import_react253.useCallback)(
|
38301
38478
|
(err) => {
|
38302
38479
|
updateStep(2 /* AUDIO */, { hasFailed: !!err });
|
38303
38480
|
setErrorAlone(err);
|
38304
38481
|
},
|
38305
38482
|
[updateStep, setErrorAlone]
|
38306
38483
|
);
|
38307
|
-
(0,
|
38484
|
+
(0, import_react253.useEffect)(() => {
|
38308
38485
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
|
38309
38486
|
}, [hmsDiagnostics, setError]);
|
38310
|
-
return /* @__PURE__ */
|
38487
|
+
return /* @__PURE__ */ import_react253.default.createElement(import_react253.default.Fragment, null, /* @__PURE__ */ import_react253.default.createElement(TestContainer, null, /* @__PURE__ */ import_react253.default.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ import_react253.default.createElement(
|
38311
38488
|
Flex,
|
38312
38489
|
{
|
38313
38490
|
css: {
|
@@ -38319,21 +38496,21 @@ var init_AudioTest = __esm({
|
|
38319
38496
|
}
|
38320
38497
|
}
|
38321
38498
|
},
|
38322
|
-
/* @__PURE__ */
|
38323
|
-
/* @__PURE__ */
|
38324
|
-
)), /* @__PURE__ */
|
38499
|
+
/* @__PURE__ */ import_react253.default.createElement(MicTest, { setError }),
|
38500
|
+
/* @__PURE__ */ import_react253.default.createElement(SpeakerTest, null)
|
38501
|
+
)), /* @__PURE__ */ import_react253.default.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ import_react253.default.createElement(PermissionErrorModal, { error }));
|
38325
38502
|
};
|
38326
38503
|
}
|
38327
38504
|
});
|
38328
38505
|
|
38329
38506
|
// src/Diagnostics/BrowserTest.tsx
|
38330
|
-
var
|
38507
|
+
var import_react254, import_react_sdk135, CMS_MEDIA_SERVER, operatingSystemIconInfo, browserTypeIconInfo, CheckDetails, BrowserTest;
|
38331
38508
|
var init_BrowserTest = __esm({
|
38332
38509
|
"src/Diagnostics/BrowserTest.tsx"() {
|
38333
38510
|
"use strict";
|
38334
38511
|
init_define_process_env();
|
38335
|
-
|
38336
|
-
|
38512
|
+
import_react254 = __toESM(require("react"));
|
38513
|
+
import_react_sdk135 = require("@100mslive/react-sdk");
|
38337
38514
|
init_components();
|
38338
38515
|
init_Layout();
|
38339
38516
|
init_Text2();
|
@@ -38418,12 +38595,12 @@ var init_BrowserTest = __esm({
|
|
38418
38595
|
icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
|
38419
38596
|
}
|
38420
38597
|
};
|
38421
|
-
CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */
|
38598
|
+
CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ import_react254.default.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ import_react254.default.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ import_react254.default.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ import_react254.default.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ import_react254.default.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ import_react254.default.createElement(Text, null, value)));
|
38422
38599
|
BrowserTest = () => {
|
38423
38600
|
var _a7, _b7, _c, _d;
|
38424
38601
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
38425
|
-
const [error, setError] = (0,
|
38426
|
-
(0,
|
38602
|
+
const [error, setError] = (0, import_react254.useState)();
|
38603
|
+
(0, import_react254.useEffect)(() => {
|
38427
38604
|
try {
|
38428
38605
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
|
38429
38606
|
} catch (err) {
|
@@ -38431,33 +38608,33 @@ var init_BrowserTest = __esm({
|
|
38431
38608
|
setError(err);
|
38432
38609
|
}
|
38433
38610
|
}, [hmsDiagnostics, updateStep]);
|
38434
|
-
return /* @__PURE__ */
|
38611
|
+
return /* @__PURE__ */ import_react254.default.createElement(import_react254.default.Fragment, null, /* @__PURE__ */ import_react254.default.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ import_react254.default.createElement(
|
38435
38612
|
CheckDetails,
|
38436
38613
|
{
|
38437
38614
|
title: "Browser",
|
38438
|
-
iconURL:
|
38439
|
-
value: `${
|
38615
|
+
iconURL: import_react_sdk135.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = import_react_sdk135.parsedUserAgent.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
|
38616
|
+
value: `${import_react_sdk135.parsedUserAgent.getBrowser().name} ${import_react_sdk135.parsedUserAgent.getBrowser().version}`
|
38440
38617
|
}
|
38441
|
-
), /* @__PURE__ */
|
38618
|
+
), /* @__PURE__ */ import_react254.default.createElement(
|
38442
38619
|
CheckDetails,
|
38443
38620
|
{
|
38444
38621
|
title: "Operating system",
|
38445
|
-
iconURL:
|
38446
|
-
value: `${
|
38622
|
+
iconURL: import_react_sdk135.parsedUserAgent.getOS().name && ((_d = operatingSystemIconInfo[(_c = import_react_sdk135.parsedUserAgent.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
|
38623
|
+
value: `${import_react_sdk135.parsedUserAgent.getOS().name} ${import_react_sdk135.parsedUserAgent.getOS().version}`
|
38447
38624
|
}
|
38448
|
-
)), /* @__PURE__ */
|
38625
|
+
)), /* @__PURE__ */ import_react254.default.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
|
38449
38626
|
};
|
38450
38627
|
}
|
38451
38628
|
});
|
38452
38629
|
|
38453
38630
|
// src/Diagnostics/ConnectivityTest.tsx
|
38454
|
-
var
|
38631
|
+
var import_react255, import_react_sdk136, import_react_icons114, Regions, ConnectivityStateMessage, ConnectivityTestStepResult, DetailedInfo, MediaServerResult, SignallingResult, AudioStats, VideoStats, Footer3, ConnectivityTestReport, RegionSelector, ConnectivityTest, downloadJson;
|
38455
38632
|
var init_ConnectivityTest = __esm({
|
38456
38633
|
"src/Diagnostics/ConnectivityTest.tsx"() {
|
38457
38634
|
"use strict";
|
38458
38635
|
init_define_process_env();
|
38459
|
-
|
38460
|
-
|
38636
|
+
import_react255 = __toESM(require("react"));
|
38637
|
+
import_react_sdk136 = require("@100mslive/react-sdk");
|
38461
38638
|
import_react_icons114 = require("@100mslive/react-icons");
|
38462
38639
|
init_components();
|
38463
38640
|
init_Button2();
|
@@ -38472,13 +38649,13 @@ var init_ConnectivityTest = __esm({
|
|
38472
38649
|
us: "United States"
|
38473
38650
|
};
|
38474
38651
|
ConnectivityStateMessage = {
|
38475
|
-
[
|
38476
|
-
[
|
38477
|
-
[
|
38478
|
-
[
|
38479
|
-
[
|
38480
|
-
[
|
38481
|
-
[
|
38652
|
+
[import_react_sdk136.ConnectivityState.STARTING]: "Fetching Init",
|
38653
|
+
[import_react_sdk136.ConnectivityState.INIT_FETCHED]: "Connecting to signal server",
|
38654
|
+
[import_react_sdk136.ConnectivityState.SIGNAL_CONNECTED]: "Establishing ICE connection",
|
38655
|
+
[import_react_sdk136.ConnectivityState.ICE_ESTABLISHED]: "Capturing Media",
|
38656
|
+
[import_react_sdk136.ConnectivityState.MEDIA_CAPTURED]: "Publishing Media",
|
38657
|
+
[import_react_sdk136.ConnectivityState.MEDIA_PUBLISHED]: "Finishing Up",
|
38658
|
+
[import_react_sdk136.ConnectivityState.COMPLETED]: "Completed"
|
38482
38659
|
};
|
38483
38660
|
ConnectivityTestStepResult = ({
|
38484
38661
|
title,
|
@@ -38486,8 +38663,8 @@ var init_ConnectivityTest = __esm({
|
|
38486
38663
|
success,
|
38487
38664
|
children
|
38488
38665
|
}) => {
|
38489
|
-
const [hideDetails, setHideDetails] = (0,
|
38490
|
-
return /* @__PURE__ */
|
38666
|
+
const [hideDetails, setHideDetails] = (0, import_react255.useState)(true);
|
38667
|
+
return /* @__PURE__ */ import_react255.default.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ import_react255.default.createElement(Flex, null, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ import_react255.default.createElement(import_react_icons114.CheckCircleIcon, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ import_react255.default.createElement(Flex, null, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ import_react255.default.createElement(import_react_icons114.CrossCircleIcon, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ import_react255.default.createElement(
|
38491
38668
|
Flex,
|
38492
38669
|
{
|
38493
38670
|
onClick: () => setHideDetails(!hideDetails),
|
@@ -38497,8 +38674,8 @@ var init_ConnectivityTest = __esm({
|
|
38497
38674
|
color: "$primary_bright"
|
38498
38675
|
}
|
38499
38676
|
},
|
38500
|
-
hideDetails ? /* @__PURE__ */
|
38501
|
-
/* @__PURE__ */
|
38677
|
+
hideDetails ? /* @__PURE__ */ import_react255.default.createElement(import_react_icons114.EyeOpenIcon, null) : /* @__PURE__ */ import_react255.default.createElement(import_react_icons114.EyeCloseIcon, null),
|
38678
|
+
/* @__PURE__ */ import_react255.default.createElement(
|
38502
38679
|
Text,
|
38503
38680
|
{
|
38504
38681
|
variant: "caption",
|
@@ -38509,38 +38686,38 @@ var init_ConnectivityTest = __esm({
|
|
38509
38686
|
hideDetails ? "View" : "Hide",
|
38510
38687
|
" detailed information"
|
38511
38688
|
)
|
38512
|
-
), !hideDetails ? /* @__PURE__ */
|
38689
|
+
), !hideDetails ? /* @__PURE__ */ import_react255.default.createElement(Box, null, children) : null);
|
38513
38690
|
};
|
38514
38691
|
DetailedInfo = ({
|
38515
38692
|
title,
|
38516
38693
|
value,
|
38517
38694
|
Icon: Icon4
|
38518
38695
|
}) => {
|
38519
|
-
return /* @__PURE__ */
|
38696
|
+
return /* @__PURE__ */ import_react255.default.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ import_react255.default.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ import_react255.default.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ import_react255.default.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "caption" }, value)));
|
38520
38697
|
};
|
38521
38698
|
MediaServerResult = ({ result }) => {
|
38522
38699
|
var _a7, _b7, _c, _d;
|
38523
|
-
return /* @__PURE__ */
|
38700
|
+
return /* @__PURE__ */ import_react255.default.createElement(
|
38524
38701
|
ConnectivityTestStepResult,
|
38525
38702
|
{
|
38526
38703
|
title: "Media server connection test",
|
38527
38704
|
success: (result == null ? void 0 : result.isPublishICEConnected) && result.isSubscribeICEConnected
|
38528
38705
|
},
|
38529
|
-
/* @__PURE__ */
|
38706
|
+
/* @__PURE__ */ import_react255.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react255.default.createElement(
|
38530
38707
|
DetailedInfo,
|
38531
38708
|
{
|
38532
38709
|
title: "Media Captured",
|
38533
38710
|
value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
|
38534
38711
|
Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
|
38535
38712
|
}
|
38536
|
-
), /* @__PURE__ */
|
38713
|
+
), /* @__PURE__ */ import_react255.default.createElement(
|
38537
38714
|
DetailedInfo,
|
38538
38715
|
{
|
38539
38716
|
title: "Media Published",
|
38540
38717
|
value: ((_c = result == null ? void 0 : result.stats) == null ? void 0 : _c.audio.bitrateSent) ? "Yes" : "No",
|
38541
38718
|
Icon: ((_d = result == null ? void 0 : result.stats) == null ? void 0 : _d.audio.bytesSent) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
|
38542
38719
|
}
|
38543
|
-
), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */
|
38720
|
+
), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ import_react255.default.createElement(
|
38544
38721
|
DetailedInfo,
|
38545
38722
|
{
|
38546
38723
|
title: "Connection Quality Score (CQS)",
|
@@ -38550,27 +38727,27 @@ var init_ConnectivityTest = __esm({
|
|
38550
38727
|
);
|
38551
38728
|
};
|
38552
38729
|
SignallingResult = ({ result }) => {
|
38553
|
-
return /* @__PURE__ */
|
38730
|
+
return /* @__PURE__ */ import_react255.default.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ import_react255.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react255.default.createElement(
|
38554
38731
|
DetailedInfo,
|
38555
38732
|
{
|
38556
38733
|
title: "Signalling Gateway",
|
38557
38734
|
value: (result == null ? void 0 : result.isConnected) ? "Reachable" : "Unreachable",
|
38558
38735
|
Icon: (result == null ? void 0 : result.isConnected) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
|
38559
38736
|
}
|
38560
|
-
), /* @__PURE__ */
|
38737
|
+
), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: import_react_icons114.LinkIcon })));
|
38561
38738
|
};
|
38562
38739
|
AudioStats = ({ stats }) => {
|
38563
|
-
return /* @__PURE__ */
|
38740
|
+
return /* @__PURE__ */ import_react255.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react255.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
38564
38741
|
};
|
38565
38742
|
VideoStats = ({ stats }) => {
|
38566
|
-
return /* @__PURE__ */
|
38743
|
+
return /* @__PURE__ */ import_react255.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react255.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react255.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
38567
38744
|
};
|
38568
38745
|
Footer3 = ({
|
38569
38746
|
error,
|
38570
38747
|
result,
|
38571
38748
|
restart
|
38572
38749
|
}) => {
|
38573
|
-
return /* @__PURE__ */
|
38750
|
+
return /* @__PURE__ */ import_react255.default.createElement(TestFooter, { error }, /* @__PURE__ */ import_react255.default.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ import_react255.default.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ import_react255.default.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
|
38574
38751
|
};
|
38575
38752
|
ConnectivityTestReport = ({
|
38576
38753
|
error,
|
@@ -38580,14 +38757,14 @@ var init_ConnectivityTest = __esm({
|
|
38580
38757
|
}) => {
|
38581
38758
|
var _a7, _b7, _c, _d;
|
38582
38759
|
if (error) {
|
38583
|
-
return /* @__PURE__ */
|
38760
|
+
return /* @__PURE__ */ import_react255.default.createElement(import_react255.default.Fragment, null, /* @__PURE__ */ import_react255.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ import_react255.default.createElement(import_react_icons114.CrossCircleIcon, null)), /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ import_react255.default.createElement(Footer3, { restart: startTest, error }));
|
38584
38761
|
}
|
38585
38762
|
if (result) {
|
38586
38763
|
console.log(result);
|
38587
|
-
return /* @__PURE__ */
|
38764
|
+
return /* @__PURE__ */ import_react255.default.createElement(import_react255.default.Fragment, null, /* @__PURE__ */ import_react255.default.createElement(TestContainer, null, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react255.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react255.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react255.default.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react255.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react255.default.createElement(Footer3, { result, restart: startTest, error }));
|
38588
38765
|
}
|
38589
38766
|
if (progress !== void 0) {
|
38590
|
-
return /* @__PURE__ */
|
38767
|
+
return /* @__PURE__ */ import_react255.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ import_react255.default.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ import_react255.default.createElement(
|
38591
38768
|
Text,
|
38592
38769
|
{
|
38593
38770
|
variant: "body2",
|
@@ -38603,7 +38780,7 @@ var init_ConnectivityTest = __esm({
|
|
38603
38780
|
setRegion,
|
38604
38781
|
startTest
|
38605
38782
|
}) => {
|
38606
|
-
return /* @__PURE__ */
|
38783
|
+
return /* @__PURE__ */ import_react255.default.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ import_react255.default.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ import_react255.default.createElement(
|
38607
38784
|
Flex,
|
38608
38785
|
{
|
38609
38786
|
justify: "between",
|
@@ -38615,7 +38792,7 @@ var init_ConnectivityTest = __esm({
|
|
38615
38792
|
}
|
38616
38793
|
}
|
38617
38794
|
},
|
38618
|
-
/* @__PURE__ */
|
38795
|
+
/* @__PURE__ */ import_react255.default.createElement(
|
38619
38796
|
Flex,
|
38620
38797
|
{
|
38621
38798
|
css: {
|
@@ -38625,7 +38802,7 @@ var init_ConnectivityTest = __esm({
|
|
38625
38802
|
}
|
38626
38803
|
}
|
38627
38804
|
},
|
38628
|
-
Object.entries(Regions).map(([key, value]) => /* @__PURE__ */
|
38805
|
+
Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ import_react255.default.createElement(
|
38629
38806
|
Button,
|
38630
38807
|
{
|
38631
38808
|
key,
|
@@ -38637,15 +38814,15 @@ var init_ConnectivityTest = __esm({
|
|
38637
38814
|
value
|
38638
38815
|
))
|
38639
38816
|
),
|
38640
|
-
/* @__PURE__ */
|
38817
|
+
/* @__PURE__ */ import_react255.default.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ import_react255.default.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
|
38641
38818
|
));
|
38642
38819
|
};
|
38643
38820
|
ConnectivityTest = () => {
|
38644
38821
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
38645
|
-
const [region, setRegion] = (0,
|
38646
|
-
const [error, setError] = (0,
|
38647
|
-
const [progress, setProgress] = (0,
|
38648
|
-
const [result, setResult] = (0,
|
38822
|
+
const [region, setRegion] = (0, import_react255.useState)(Object.keys(Regions)[0]);
|
38823
|
+
const [error, setError] = (0, import_react255.useState)();
|
38824
|
+
const [progress, setProgress] = (0, import_react255.useState)();
|
38825
|
+
const [result, setResult] = (0, import_react255.useState)();
|
38649
38826
|
const startTest = () => {
|
38650
38827
|
updateStep(3 /* CONNECTIVITY */, { hasFailed: false, isCompleted: false });
|
38651
38828
|
setError(void 0);
|
@@ -38664,14 +38841,14 @@ var init_ConnectivityTest = __esm({
|
|
38664
38841
|
setError(error2);
|
38665
38842
|
});
|
38666
38843
|
};
|
38667
|
-
return /* @__PURE__ */
|
38844
|
+
return /* @__PURE__ */ import_react255.default.createElement(import_react255.default.Fragment, null, /* @__PURE__ */ import_react255.default.createElement(
|
38668
38845
|
RegionSelector,
|
38669
38846
|
{
|
38670
38847
|
region,
|
38671
38848
|
setRegion,
|
38672
|
-
startTest: progress === void 0 || progress ===
|
38849
|
+
startTest: progress === void 0 || progress === import_react_sdk136.ConnectivityState.COMPLETED ? startTest : void 0
|
38673
38850
|
}
|
38674
|
-
), /* @__PURE__ */
|
38851
|
+
), /* @__PURE__ */ import_react255.default.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
|
38675
38852
|
};
|
38676
38853
|
downloadJson = (obj, fileName) => {
|
38677
38854
|
const a2 = document.createElement("a");
|
@@ -38686,13 +38863,13 @@ var init_ConnectivityTest = __esm({
|
|
38686
38863
|
});
|
38687
38864
|
|
38688
38865
|
// src/Diagnostics/VideoTest.tsx
|
38689
|
-
var
|
38866
|
+
var import_react256, import_react_sdk137, import_react_icons115, VideoTest;
|
38690
38867
|
var init_VideoTest = __esm({
|
38691
38868
|
"src/Diagnostics/VideoTest.tsx"() {
|
38692
38869
|
"use strict";
|
38693
38870
|
init_define_process_env();
|
38694
|
-
|
38695
|
-
|
38871
|
+
import_react256 = __toESM(require("react"));
|
38872
|
+
import_react_sdk137 = require("@100mslive/react-sdk");
|
38696
38873
|
import_react_icons115 = require("@100mslive/react-icons");
|
38697
38874
|
init_PermissionErrorModal();
|
38698
38875
|
init_components();
|
@@ -38704,18 +38881,18 @@ var init_VideoTest = __esm({
|
|
38704
38881
|
init_DiagnosticsContext();
|
38705
38882
|
VideoTest = () => {
|
38706
38883
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
38707
|
-
const allDevices = (0,
|
38884
|
+
const allDevices = (0, import_react_sdk137.useHMSStore)(import_react_sdk137.selectDevices);
|
38708
38885
|
const { videoInput } = allDevices;
|
38709
|
-
const trackID = (0,
|
38710
|
-
const sdkSelectedDevices = (0,
|
38711
|
-
const [error, setError] = (0,
|
38712
|
-
(0,
|
38886
|
+
const trackID = (0, import_react_sdk137.useHMSStore)(import_react_sdk137.selectLocalVideoTrackID);
|
38887
|
+
const sdkSelectedDevices = (0, import_react_sdk137.useHMSStore)(import_react_sdk137.selectLocalMediaSettings);
|
38888
|
+
const [error, setError] = (0, import_react256.useState)();
|
38889
|
+
(0, import_react256.useEffect)(() => {
|
38713
38890
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
|
38714
38891
|
updateStep(1 /* VIDEO */, { hasFailed: true });
|
38715
38892
|
setError(err);
|
38716
38893
|
});
|
38717
38894
|
}, [hmsDiagnostics, updateStep]);
|
38718
|
-
return /* @__PURE__ */
|
38895
|
+
return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ import_react256.default.createElement(
|
38719
38896
|
StyledVideoTile.Container,
|
38720
38897
|
{
|
38721
38898
|
css: {
|
@@ -38725,32 +38902,32 @@ var init_VideoTest = __esm({
|
|
38725
38902
|
"@lg": { mr: 0, mb: "$10", aspectRatio: "1/1" }
|
38726
38903
|
}
|
38727
38904
|
},
|
38728
|
-
/* @__PURE__ */
|
38729
|
-
), /* @__PURE__ */
|
38905
|
+
/* @__PURE__ */ import_react256.default.createElement(Video, { mirror: true, trackId: trackID })
|
38906
|
+
), /* @__PURE__ */ import_react256.default.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium", mb: "$10" } }, "Move in front of your camera to make sure it's working. If you don't see your video, try changing the selected camera. If the camera isn't part of your computer, check your settings to make sure your system recognizes it."), /* @__PURE__ */ import_react256.default.createElement(
|
38730
38907
|
DeviceSelector2,
|
38731
38908
|
{
|
38732
38909
|
title: "Video",
|
38733
38910
|
devices: videoInput || [],
|
38734
|
-
icon: /* @__PURE__ */
|
38911
|
+
icon: /* @__PURE__ */ import_react256.default.createElement(import_react_icons115.VideoOnIcon, null),
|
38735
38912
|
selection: sdkSelectedDevices.videoInputDeviceId,
|
38736
38913
|
onChange: (deviceId) => __async(void 0, null, function* () {
|
38737
38914
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopCameraCheck();
|
38738
38915
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck(deviceId);
|
38739
38916
|
})
|
38740
38917
|
}
|
38741
|
-
))), /* @__PURE__ */
|
38918
|
+
))), /* @__PURE__ */ import_react256.default.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ import_react256.default.createElement(PermissionErrorModal, { error }));
|
38742
38919
|
};
|
38743
38920
|
}
|
38744
38921
|
});
|
38745
38922
|
|
38746
38923
|
// src/Diagnostics/Diagnostics.tsx
|
38747
|
-
var
|
38924
|
+
var import_react257, import_react_sdk138, import_react_icons116, DiagnosticsStepIcon, Container5, DiagnosticsStepTest, DiagnosticsStepHeader, DiagnosticsStepContainer, DiagnosticsStepsList, DiagnosticsProvider, Diagnostics;
|
38748
38925
|
var init_Diagnostics = __esm({
|
38749
38926
|
"src/Diagnostics/Diagnostics.tsx"() {
|
38750
38927
|
"use strict";
|
38751
38928
|
init_define_process_env();
|
38752
|
-
|
38753
|
-
|
38929
|
+
import_react257 = __toESM(require("react"));
|
38930
|
+
import_react_sdk138 = require("@100mslive/react-sdk");
|
38754
38931
|
import_react_icons116 = require("@100mslive/react-icons");
|
38755
38932
|
init_Layout();
|
38756
38933
|
init_Text2();
|
@@ -38761,12 +38938,12 @@ var init_Diagnostics = __esm({
|
|
38761
38938
|
init_DiagnosticsContext();
|
38762
38939
|
init_VideoTest();
|
38763
38940
|
DiagnosticsStepIcon = {
|
38764
|
-
[1 /* VIDEO */]: /* @__PURE__ */
|
38765
|
-
[2 /* AUDIO */]: /* @__PURE__ */
|
38766
|
-
[0 /* BROWSER */]: /* @__PURE__ */
|
38767
|
-
[3 /* CONNECTIVITY */]: /* @__PURE__ */
|
38941
|
+
[1 /* VIDEO */]: /* @__PURE__ */ import_react257.default.createElement(import_react_icons116.VideoOnIcon, { width: "2rem", height: "2rem" }),
|
38942
|
+
[2 /* AUDIO */]: /* @__PURE__ */ import_react257.default.createElement(import_react_icons116.MicOnIcon, { width: "2rem", height: "2rem" }),
|
38943
|
+
[0 /* BROWSER */]: /* @__PURE__ */ import_react257.default.createElement(import_react_icons116.GlobeIcon, { width: "2rem", height: "2rem" }),
|
38944
|
+
[3 /* CONNECTIVITY */]: /* @__PURE__ */ import_react257.default.createElement(import_react_icons116.ConnectivityIcon, { width: "2rem", height: "2rem" })
|
38768
38945
|
};
|
38769
|
-
Container5 = ({ children }) => /* @__PURE__ */
|
38946
|
+
Container5 = ({ children }) => /* @__PURE__ */ import_react257.default.createElement(
|
38770
38947
|
Box,
|
38771
38948
|
{
|
38772
38949
|
css: {
|
@@ -38806,7 +38983,7 @@ var init_Diagnostics = __esm({
|
|
38806
38983
|
);
|
38807
38984
|
DiagnosticsStepTest = () => {
|
38808
38985
|
const { activeStepIndex } = useDiagnostics();
|
38809
|
-
let TestComponent = () => /* @__PURE__ */
|
38986
|
+
let TestComponent = () => /* @__PURE__ */ import_react257.default.createElement(import_react257.default.Fragment, null);
|
38810
38987
|
if (activeStepIndex === 2 /* AUDIO */) {
|
38811
38988
|
TestComponent = AudioTest;
|
38812
38989
|
} else if (activeStepIndex === 1 /* VIDEO */) {
|
@@ -38816,47 +38993,47 @@ var init_Diagnostics = __esm({
|
|
38816
38993
|
} else if (activeStepIndex === 3 /* CONNECTIVITY */) {
|
38817
38994
|
TestComponent = ConnectivityTest;
|
38818
38995
|
}
|
38819
|
-
return /* @__PURE__ */
|
38996
|
+
return /* @__PURE__ */ import_react257.default.createElement(TestComponent, { key: activeStepIndex });
|
38820
38997
|
};
|
38821
38998
|
DiagnosticsStepHeader = () => {
|
38822
38999
|
const { activeStepIndex, activeStep } = useDiagnostics();
|
38823
|
-
return /* @__PURE__ */
|
39000
|
+
return /* @__PURE__ */ import_react257.default.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ import_react257.default.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ import_react257.default.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
|
38824
39001
|
};
|
38825
39002
|
DiagnosticsStepContainer = () => {
|
38826
|
-
return /* @__PURE__ */
|
39003
|
+
return /* @__PURE__ */ import_react257.default.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ import_react257.default.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ import_react257.default.createElement(DiagnosticsStepTest, null));
|
38827
39004
|
};
|
38828
39005
|
DiagnosticsStepsList = () => {
|
38829
39006
|
const { activeStepIndex, activeStep, steps } = useDiagnostics();
|
38830
|
-
return /* @__PURE__ */
|
39007
|
+
return /* @__PURE__ */ import_react257.default.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
|
38831
39008
|
const keyIndex = Number(key);
|
38832
39009
|
const step = steps[keyIndex];
|
38833
39010
|
const isStepCompleted = activeStepIndex > keyIndex || activeStep.isCompleted;
|
38834
39011
|
let color = "$on_primary_low";
|
38835
|
-
let icon = /* @__PURE__ */
|
39012
|
+
let icon = /* @__PURE__ */ import_react257.default.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
|
38836
39013
|
if (activeStepIndex === keyIndex) {
|
38837
39014
|
color = "$on_primary_high";
|
38838
|
-
icon = /* @__PURE__ */
|
39015
|
+
icon = /* @__PURE__ */ import_react257.default.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
|
38839
39016
|
}
|
38840
39017
|
if (isStepCompleted) {
|
38841
39018
|
color = "$primary_bright";
|
38842
|
-
icon = /* @__PURE__ */
|
39019
|
+
icon = /* @__PURE__ */ import_react257.default.createElement(import_react_icons116.CheckCircleIcon, { width: "1rem", height: "1rem" });
|
38843
39020
|
}
|
38844
39021
|
if (step.hasFailed) {
|
38845
39022
|
color = "$alert_error_default";
|
38846
|
-
icon = /* @__PURE__ */
|
39023
|
+
icon = /* @__PURE__ */ import_react257.default.createElement(import_react_icons116.CrossCircleIcon, { width: "1rem", height: "1rem" });
|
38847
39024
|
}
|
38848
|
-
return /* @__PURE__ */
|
39025
|
+
return /* @__PURE__ */ import_react257.default.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ import_react257.default.createElement(Text, { css: { c: color } }, step.name));
|
38849
39026
|
}));
|
38850
39027
|
};
|
38851
39028
|
DiagnosticsProvider = () => {
|
38852
|
-
const actions = (0,
|
38853
|
-
const [activeStep, setActiveStep] = (0,
|
38854
|
-
const [steps, setSteps] = (0,
|
38855
|
-
const diagnosticsRef = (0,
|
38856
|
-
const updateStep = (0,
|
39029
|
+
const actions = (0, import_react_sdk138.useHMSActions)();
|
39030
|
+
const [activeStep, setActiveStep] = (0, import_react257.useState)(0);
|
39031
|
+
const [steps, setSteps] = (0, import_react257.useState)(initialSteps);
|
39032
|
+
const diagnosticsRef = (0, import_react257.useRef)(actions.initDiagnostics());
|
39033
|
+
const updateStep = (0, import_react257.useCallback)((step, value) => {
|
38857
39034
|
setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
|
38858
39035
|
}, []);
|
38859
|
-
return /* @__PURE__ */
|
39036
|
+
return /* @__PURE__ */ import_react257.default.createElement(
|
38860
39037
|
DiagnosticsContext.Provider,
|
38861
39038
|
{
|
38862
39039
|
value: {
|
@@ -38867,11 +39044,11 @@ var init_Diagnostics = __esm({
|
|
38867
39044
|
updateStep
|
38868
39045
|
}
|
38869
39046
|
},
|
38870
|
-
/* @__PURE__ */
|
39047
|
+
/* @__PURE__ */ import_react257.default.createElement(Container5, null, /* @__PURE__ */ import_react257.default.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ import_react257.default.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ import_react257.default.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ import_react257.default.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ import_react257.default.createElement(DiagnosticsStepContainer, null)))
|
38871
39048
|
);
|
38872
39049
|
};
|
38873
39050
|
Diagnostics = () => {
|
38874
|
-
return /* @__PURE__ */
|
39051
|
+
return /* @__PURE__ */ import_react257.default.createElement(import_react_sdk138.HMSRoomProvider, null, /* @__PURE__ */ import_react257.default.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ import_react257.default.createElement(DiagnosticsProvider, null)));
|
38875
39052
|
};
|
38876
39053
|
}
|
38877
39054
|
});
|