@100mslive/roomkit-react 0.3.3-alpha.2 → 0.3.3-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.d.ts +0 -1
- package/dist/Accordion/index.d.ts +0 -1
- package/dist/{HLSView-GI5NXBYN.js → HLSView-VUANLYLS.js} +2 -2
- package/dist/Prebuilt/components/RaiseHand.d.ts +1 -1
- package/dist/{chunk-KUFQ5ONV.js → chunk-5WTUTVRO.js} +381 -414
- package/dist/chunk-5WTUTVRO.js.map +7 -0
- package/dist/index.cjs.js +813 -849
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +63 -58
- package/dist/meta.esbuild.json +68 -63
- package/package.json +7 -7
- package/src/Accordion/Accordion.tsx +4 -4
- package/src/Prebuilt/components/Chat/ChatBody.tsx +0 -10
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +4 -2
- package/src/Prebuilt/components/ConferenceScreen.tsx +4 -1
- package/src/Prebuilt/components/Footer/Footer.tsx +4 -1
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +1 -4
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +6 -6
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +1 -0
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -1
- package/src/Prebuilt/components/PreviousRoleInMetadata.tsx +1 -0
- package/src/Prebuilt/components/RaiseHand.tsx +1 -7
- package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +1 -0
- package/src/Prebuilt/components/hooks/{useMetadata.tsx → useMetadata.jsx} +8 -2
- package/dist/Prebuilt/components/hooks/useMetadata.d.ts +0 -8
- package/dist/chunk-KUFQ5ONV.js.map +0 -7
- /package/dist/{HLSView-GI5NXBYN.js.map → HLSView-VUANLYLS.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -10,18 +10,18 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
10
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
11
11
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
12
12
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
13
|
-
var __spreadValues = (a2,
|
14
|
-
for (var prop in
|
15
|
-
if (__hasOwnProp.call(
|
16
|
-
__defNormalProp(a2, prop,
|
13
|
+
var __spreadValues = (a2, b2) => {
|
14
|
+
for (var prop in b2 || (b2 = {}))
|
15
|
+
if (__hasOwnProp.call(b2, prop))
|
16
|
+
__defNormalProp(a2, prop, b2[prop]);
|
17
17
|
if (__getOwnPropSymbols)
|
18
|
-
for (var prop of __getOwnPropSymbols(
|
19
|
-
if (__propIsEnum.call(
|
20
|
-
__defNormalProp(a2, prop,
|
18
|
+
for (var prop of __getOwnPropSymbols(b2)) {
|
19
|
+
if (__propIsEnum.call(b2, prop))
|
20
|
+
__defNormalProp(a2, prop, b2[prop]);
|
21
21
|
}
|
22
22
|
return a2;
|
23
23
|
};
|
24
|
-
var __spreadProps = (a2,
|
24
|
+
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
25
25
|
var __objRest = (source, exclude) => {
|
26
26
|
var target = {};
|
27
27
|
for (var prop in source)
|
@@ -44,13 +44,13 @@ var __export = (target, all) => {
|
|
44
44
|
for (var name in all)
|
45
45
|
__defProp(target, name, { get: all[name], enumerable: true });
|
46
46
|
};
|
47
|
-
var __copyProps = (
|
47
|
+
var __copyProps = (to2, from, except, desc) => {
|
48
48
|
if (from && typeof from === "object" || typeof from === "function") {
|
49
49
|
for (let key of __getOwnPropNames(from))
|
50
|
-
if (!__hasOwnProp.call(
|
51
|
-
__defProp(
|
50
|
+
if (!__hasOwnProp.call(to2, key) && key !== except)
|
51
|
+
__defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
52
52
|
}
|
53
|
-
return
|
53
|
+
return to2;
|
54
54
|
};
|
55
55
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
56
56
|
// If the importer is in node compatibility mode or this is not an ESM
|
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
|
|
108
108
|
var define_process_env_default;
|
109
109
|
var init_define_process_env = __esm({
|
110
110
|
"<define:process.env>"() {
|
111
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.2", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240310.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19847", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.2", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8339008099", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ada10fb3dc34984fd59f37f08629e8bd2a0f6c4c", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "c2142c3cc8bf8d6ed2ac27c56ab4a600b5c8eb8e9391d303a398693a6a4a21e8", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710832689540-0.1579875898379377:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710832689347-0.6191761134799965:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710832667592-0.18702594396511474:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710832667416-0.6771953480301691:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e14939ec-5f43-488a-8f80-7eb5d6b530d2", INVOCATION_ID: "26b5f425f34b46f2b1ca5d99eb8c8e31", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "483", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 442", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.2", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "ada10fb3dc34984fd59f37f08629e8bd2a0f6c4c", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d" };
|
111
|
+
define_process_env_default = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v18.17.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.4", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.87.0", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "b0f3689284995b999c8c5650146ced9afae1bbd19cf3308ede185a4a9b0ede50", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.kq3RNeovXJ/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680723-0.5894944620724656:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680330-0.621429415928052:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858665031-0.12795214732375126:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680723-0.5894944620724656/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.4", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.4", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.3.3-alpha.4", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.4", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-10419d9aa6.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -2658,7 +2658,7 @@ var init_AudioLevel = __esm({
|
|
2658
2658
|
init_Layout();
|
2659
2659
|
init_Theme();
|
2660
2660
|
init_audio_level();
|
2661
|
-
positionValues = new Array(101).fill(0).reduce((acc,
|
2661
|
+
positionValues = new Array(101).fill(0).reduce((acc, _, index) => {
|
2662
2662
|
acc[index] = Math.round(index / 100 * 4) / 4;
|
2663
2663
|
return acc;
|
2664
2664
|
}, {});
|
@@ -3331,8 +3331,8 @@ var init_Accordion = __esm({
|
|
3331
3331
|
AccordionRoot = StyledAccordion;
|
3332
3332
|
AccordionItem = StyledItem;
|
3333
3333
|
AccordionHeader = import_react23.default.forwardRef((_a8, forwardedRef) => {
|
3334
|
-
var _b7 = _a8, { children, iconStyles, css: css2
|
3335
|
-
return /* @__PURE__ */ import_react23.default.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ import_react23.default.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ import_react23.default.createElement(StyledChevron, { "
|
3334
|
+
var _b7 = _a8, { children, iconStyles, css: css2 } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css"]);
|
3335
|
+
return /* @__PURE__ */ import_react23.default.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ import_react23.default.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ import_react23.default.createElement(StyledChevron, { "aria-hidden": true, css: iconStyles })));
|
3336
3336
|
});
|
3337
3337
|
AccordionContent = import_react23.default.forwardRef(
|
3338
3338
|
(_a8, forwardedRef) => {
|
@@ -4743,7 +4743,7 @@ var require_lodash = __commonJS({
|
|
4743
4743
|
return string.match(reUnicodeWord) || [];
|
4744
4744
|
}
|
4745
4745
|
var runInContext = function runInContext2(context) {
|
4746
|
-
context = context == null ? root :
|
4746
|
+
context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
|
4747
4747
|
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
4748
4748
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
4749
4749
|
var coreJsData = context["__core-js_shared__"];
|
@@ -8090,7 +8090,7 @@ var require_lodash = __commonJS({
|
|
8090
8090
|
function eq(value, other) {
|
8091
8091
|
return value === other || value !== value && other !== other;
|
8092
8092
|
}
|
8093
|
-
var
|
8093
|
+
var gt2 = createRelationalOperation(baseGt);
|
8094
8094
|
var gte = createRelationalOperation(function(value, other) {
|
8095
8095
|
return value >= other;
|
8096
8096
|
});
|
@@ -9229,7 +9229,7 @@ var require_lodash = __commonJS({
|
|
9229
9229
|
lodash.forOwn = forOwn;
|
9230
9230
|
lodash.forOwnRight = forOwnRight;
|
9231
9231
|
lodash.get = get;
|
9232
|
-
lodash.gt =
|
9232
|
+
lodash.gt = gt2;
|
9233
9233
|
lodash.gte = gte;
|
9234
9234
|
lodash.has = has;
|
9235
9235
|
lodash.hasIn = hasIn;
|
@@ -9517,17 +9517,17 @@ var require_lodash = __commonJS({
|
|
9517
9517
|
}
|
9518
9518
|
return lodash;
|
9519
9519
|
};
|
9520
|
-
var
|
9520
|
+
var _ = runInContext();
|
9521
9521
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
9522
|
-
root._ =
|
9522
|
+
root._ = _;
|
9523
9523
|
define(function() {
|
9524
|
-
return
|
9524
|
+
return _;
|
9525
9525
|
});
|
9526
9526
|
} else if (freeModule) {
|
9527
|
-
(freeModule.exports =
|
9528
|
-
freeExports._ =
|
9527
|
+
(freeModule.exports = _)._ = _;
|
9528
|
+
freeExports._ = _;
|
9529
9529
|
} else {
|
9530
|
-
root._ =
|
9530
|
+
root._ = _;
|
9531
9531
|
}
|
9532
9532
|
}).call(exports);
|
9533
9533
|
}
|
@@ -9742,12 +9742,12 @@ var init_utils2 = __esm({
|
|
9742
9742
|
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
9743
9743
|
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
9744
9744
|
};
|
9745
|
-
compareArrays = (a2,
|
9746
|
-
if (a2.length !==
|
9745
|
+
compareArrays = (a2, b2) => {
|
9746
|
+
if (a2.length !== b2.length)
|
9747
9747
|
return false;
|
9748
9748
|
else {
|
9749
9749
|
for (var i = 0; i < a2.length; i++) {
|
9750
|
-
if (a2[i] !==
|
9750
|
+
if (a2[i] !== b2[i]) {
|
9751
9751
|
return false;
|
9752
9752
|
}
|
9753
9753
|
}
|
@@ -13728,10 +13728,10 @@ var init_MuteAllModal = __esm({
|
|
13728
13728
|
}
|
13729
13729
|
});
|
13730
13730
|
|
13731
|
-
// src/Prebuilt/components/hooks/useMetadata.
|
13731
|
+
// src/Prebuilt/components/hooks/useMetadata.jsx
|
13732
13732
|
var import_react67, import_react_sdk27, useMyMetadata;
|
13733
13733
|
var init_useMetadata = __esm({
|
13734
|
-
"src/Prebuilt/components/hooks/useMetadata.
|
13734
|
+
"src/Prebuilt/components/hooks/useMetadata.jsx"() {
|
13735
13735
|
"use strict";
|
13736
13736
|
init_define_process_env();
|
13737
13737
|
import_react67 = require("react");
|
@@ -13750,7 +13750,6 @@ var init_useMetadata = __esm({
|
|
13750
13750
|
} catch (error) {
|
13751
13751
|
console.error("failed to update metadata ", updatedFields);
|
13752
13752
|
}
|
13753
|
-
return false;
|
13754
13753
|
});
|
13755
13754
|
const toggleHandRaise = (0, import_react67.useCallback)(() => __async(void 0, null, function* () {
|
13756
13755
|
if (isHandRaised) {
|
@@ -13767,13 +13766,19 @@ var init_useMetadata = __esm({
|
|
13767
13766
|
yield hmsActions.lowerLocalPeerHand();
|
13768
13767
|
}
|
13769
13768
|
}), [metaData == null ? void 0 : metaData.isBRBOn]);
|
13769
|
+
const setPrevRole = (role) => __async(void 0, null, function* () {
|
13770
|
+
yield update({
|
13771
|
+
prevRole: role
|
13772
|
+
});
|
13773
|
+
});
|
13770
13774
|
return {
|
13771
13775
|
isHandRaised,
|
13772
13776
|
isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
|
13773
13777
|
metaData,
|
13774
13778
|
updateMetaData: update,
|
13775
13779
|
toggleHandRaise,
|
13776
|
-
toggleBRB
|
13780
|
+
toggleBRB,
|
13781
|
+
setPrevRole
|
13777
13782
|
};
|
13778
13783
|
};
|
13779
13784
|
}
|
@@ -13918,8 +13923,8 @@ var init_DesktopOptions = __esm({
|
|
13918
13923
|
});
|
13919
13924
|
|
13920
13925
|
// ../../node_modules/reselect/es/index.js
|
13921
|
-
function defaultEqualityCheck(a2,
|
13922
|
-
return a2 ===
|
13926
|
+
function defaultEqualityCheck(a2, b2) {
|
13927
|
+
return a2 === b2;
|
13923
13928
|
}
|
13924
13929
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
13925
13930
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -16172,7 +16177,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16172
16177
|
if (typeof c !== "object" || c.mandatory || c.optional) {
|
16173
16178
|
return c;
|
16174
16179
|
}
|
16175
|
-
const
|
16180
|
+
const cc = {};
|
16176
16181
|
Object.keys(c).forEach((key) => {
|
16177
16182
|
if (key === "require" || key === "advanced" || key === "mediaSource") {
|
16178
16183
|
return;
|
@@ -16188,35 +16193,35 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16188
16193
|
return name === "deviceId" ? "sourceId" : name;
|
16189
16194
|
};
|
16190
16195
|
if (r.ideal !== void 0) {
|
16191
|
-
|
16192
|
-
let
|
16196
|
+
cc.optional = cc.optional || [];
|
16197
|
+
let oc2 = {};
|
16193
16198
|
if (typeof r.ideal === "number") {
|
16194
|
-
|
16195
|
-
|
16196
|
-
|
16197
|
-
|
16198
|
-
|
16199
|
+
oc2[oldname_("min", key)] = r.ideal;
|
16200
|
+
cc.optional.push(oc2);
|
16201
|
+
oc2 = {};
|
16202
|
+
oc2[oldname_("max", key)] = r.ideal;
|
16203
|
+
cc.optional.push(oc2);
|
16199
16204
|
} else {
|
16200
|
-
|
16201
|
-
|
16205
|
+
oc2[oldname_("", key)] = r.ideal;
|
16206
|
+
cc.optional.push(oc2);
|
16202
16207
|
}
|
16203
16208
|
}
|
16204
16209
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
16205
|
-
|
16206
|
-
|
16210
|
+
cc.mandatory = cc.mandatory || {};
|
16211
|
+
cc.mandatory[oldname_("", key)] = r.exact;
|
16207
16212
|
} else {
|
16208
16213
|
["min", "max"].forEach((mix) => {
|
16209
16214
|
if (r[mix] !== void 0) {
|
16210
|
-
|
16211
|
-
|
16215
|
+
cc.mandatory = cc.mandatory || {};
|
16216
|
+
cc.mandatory[oldname_(mix, key)] = r[mix];
|
16212
16217
|
}
|
16213
16218
|
});
|
16214
16219
|
}
|
16215
16220
|
});
|
16216
16221
|
if (c.advanced) {
|
16217
|
-
|
16222
|
+
cc.optional = (cc.optional || []).concat(c.advanced);
|
16218
16223
|
}
|
16219
|
-
return
|
16224
|
+
return cc;
|
16220
16225
|
};
|
16221
16226
|
const shimConstraints_ = function(constraints, func) {
|
16222
16227
|
if (browserDetails.version >= 61) {
|
@@ -16224,9 +16229,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16224
16229
|
}
|
16225
16230
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16226
16231
|
if (constraints && typeof constraints.audio === "object") {
|
16227
|
-
const remap = function(obj, a2,
|
16228
|
-
if (a2 in obj && !(
|
16229
|
-
obj[
|
16232
|
+
const remap = function(obj, a2, b2) {
|
16233
|
+
if (a2 in obj && !(b2 in obj)) {
|
16234
|
+
obj[b2] = obj[a2];
|
16230
16235
|
delete obj[a2];
|
16231
16236
|
}
|
16232
16237
|
};
|
@@ -16986,9 +16991,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
16986
16991
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
16987
16992
|
};
|
16988
16993
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
16989
|
-
const remap = function(obj, a2,
|
16990
|
-
if (a2 in obj && !(
|
16991
|
-
obj[
|
16994
|
+
const remap = function(obj, a2, b2) {
|
16995
|
+
if (a2 in obj && !(b2 in obj)) {
|
16996
|
+
obj[b2] = obj[a2];
|
16992
16997
|
delete obj[a2];
|
16993
16998
|
}
|
16994
16999
|
};
|
@@ -17760,12 +17765,12 @@ var require_sdp = __commonJS({
|
|
17760
17765
|
return parsed;
|
17761
17766
|
};
|
17762
17767
|
SDPUtils2.writeRtpMap = function(codec) {
|
17763
|
-
let
|
17768
|
+
let pt2 = codec.payloadType;
|
17764
17769
|
if (codec.preferredPayloadType !== void 0) {
|
17765
|
-
|
17770
|
+
pt2 = codec.preferredPayloadType;
|
17766
17771
|
}
|
17767
17772
|
const channels = codec.channels || codec.numChannels || 1;
|
17768
|
-
return "a=rtpmap:" +
|
17773
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
17769
17774
|
};
|
17770
17775
|
SDPUtils2.parseExtmap = function(line) {
|
17771
17776
|
const parts = line.substring(9).split(" ");
|
@@ -17791,9 +17796,9 @@ var require_sdp = __commonJS({
|
|
17791
17796
|
};
|
17792
17797
|
SDPUtils2.writeFmtp = function(codec) {
|
17793
17798
|
let line = "";
|
17794
|
-
let
|
17799
|
+
let pt2 = codec.payloadType;
|
17795
17800
|
if (codec.preferredPayloadType !== void 0) {
|
17796
|
-
|
17801
|
+
pt2 = codec.preferredPayloadType;
|
17797
17802
|
}
|
17798
17803
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
17799
17804
|
const params = [];
|
@@ -17804,7 +17809,7 @@ var require_sdp = __commonJS({
|
|
17804
17809
|
params.push(param);
|
17805
17810
|
}
|
17806
17811
|
});
|
17807
|
-
line += "a=fmtp:" +
|
17812
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
17808
17813
|
}
|
17809
17814
|
return line;
|
17810
17815
|
};
|
@@ -17817,13 +17822,13 @@ var require_sdp = __commonJS({
|
|
17817
17822
|
};
|
17818
17823
|
SDPUtils2.writeRtcpFb = function(codec) {
|
17819
17824
|
let lines = "";
|
17820
|
-
let
|
17825
|
+
let pt2 = codec.payloadType;
|
17821
17826
|
if (codec.preferredPayloadType !== void 0) {
|
17822
|
-
|
17827
|
+
pt2 = codec.preferredPayloadType;
|
17823
17828
|
}
|
17824
17829
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
17825
17830
|
codec.rtcpFeedback.forEach((fb) => {
|
17826
|
-
lines += "a=rtcp-fb:" +
|
17831
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
17827
17832
|
});
|
17828
17833
|
}
|
17829
17834
|
return lines;
|
@@ -17951,21 +17956,21 @@ var require_sdp = __commonJS({
|
|
17951
17956
|
const mline = lines[0].split(" ");
|
17952
17957
|
description.profile = mline[2];
|
17953
17958
|
for (let i = 3; i < mline.length; i++) {
|
17954
|
-
const
|
17959
|
+
const pt2 = mline[i];
|
17955
17960
|
const rtpmapline = SDPUtils2.matchPrefix(
|
17956
17961
|
mediaSection,
|
17957
|
-
"a=rtpmap:" +
|
17962
|
+
"a=rtpmap:" + pt2 + " "
|
17958
17963
|
)[0];
|
17959
17964
|
if (rtpmapline) {
|
17960
17965
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
17961
17966
|
const fmtps = SDPUtils2.matchPrefix(
|
17962
17967
|
mediaSection,
|
17963
|
-
"a=fmtp:" +
|
17968
|
+
"a=fmtp:" + pt2 + " "
|
17964
17969
|
);
|
17965
17970
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
17966
17971
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
17967
17972
|
mediaSection,
|
17968
|
-
"a=rtcp-fb:" +
|
17973
|
+
"a=rtcp-fb:" + pt2 + " "
|
17969
17974
|
).map(SDPUtils2.parseRtcpFb);
|
17970
17975
|
description.codecs.push(codec);
|
17971
17976
|
switch (codec.name.toUpperCase()) {
|
@@ -19435,41 +19440,41 @@ function He(a2, e) {
|
|
19435
19440
|
if (e)
|
19436
19441
|
for (let r of e.auxiliaryTracks) {
|
19437
19442
|
let s = a2[r];
|
19438
|
-
|
19443
|
+
Ra(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
|
19439
19444
|
}
|
19440
19445
|
return { video: t, audio: i };
|
19441
19446
|
}
|
19442
|
-
function
|
19447
|
+
function tt(a2) {
|
19443
19448
|
return a2 && a2.type === "audio";
|
19444
19449
|
}
|
19445
|
-
function
|
19450
|
+
function it(a2) {
|
19446
19451
|
return a2 && a2.type === "video";
|
19447
19452
|
}
|
19448
|
-
function
|
19453
|
+
function Ra(a2) {
|
19449
19454
|
return a2 && a2.source === "screen";
|
19450
19455
|
}
|
19451
19456
|
function $t(a2) {
|
19452
19457
|
return a2 && a2.source === "audioplaylist";
|
19453
19458
|
}
|
19454
|
-
function
|
19459
|
+
function rt(a2) {
|
19455
19460
|
return a2 && a2.source === "videoplaylist";
|
19456
19461
|
}
|
19457
|
-
function
|
19462
|
+
function jr(a2) {
|
19458
19463
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
19459
19464
|
}
|
19460
19465
|
function Ue(a2, e) {
|
19461
19466
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
19462
19467
|
}
|
19463
|
-
function
|
19468
|
+
function st(a2) {
|
19464
19469
|
var r;
|
19465
19470
|
let e = false, t = false, i = false;
|
19466
19471
|
return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
|
19467
19472
|
}
|
19468
|
-
function
|
19473
|
+
function b(a2) {
|
19469
19474
|
return (e) => (t) => a2(t, e);
|
19470
19475
|
}
|
19471
|
-
function
|
19472
|
-
if (
|
19476
|
+
function Fa() {
|
19477
|
+
if (w && window) {
|
19473
19478
|
let a2 = window.location.hostname;
|
19474
19479
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
19475
19480
|
}
|
@@ -19478,12 +19483,12 @@ function Ga() {
|
|
19478
19483
|
function ie(a2) {
|
19479
19484
|
return a2 != null;
|
19480
19485
|
}
|
19481
|
-
function
|
19486
|
+
function ot(a2 = "prod", e) {
|
19482
19487
|
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
19483
19488
|
if (Ce)
|
19484
|
-
return
|
19489
|
+
return Ps({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ks, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
19485
19490
|
let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
|
19486
|
-
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`),
|
19491
|
+
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), Ps({ os: n, os_version: l, sdk: t, sdk_version: ks, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
19487
19492
|
}
|
19488
19493
|
function ur(a2) {
|
19489
19494
|
return a2.replace(/ /g, "_");
|
@@ -19498,13 +19503,13 @@ function Jt(a2, e = 300) {
|
|
19498
19503
|
}, e);
|
19499
19504
|
};
|
19500
19505
|
}
|
19501
|
-
function
|
19506
|
+
function im(a2) {
|
19502
19507
|
return (e) => {
|
19503
19508
|
if (e.sessionStore)
|
19504
19509
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19505
19510
|
};
|
19506
19511
|
}
|
19507
|
-
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Dt, import_eventemitter24, import_uuid9, import_uuid10, ka, Pa,
|
19512
|
+
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Dt, import_eventemitter24, import_uuid9, import_uuid10, ya, ka, Pa, Vt, $r, Wr, Gr, S, v, Xi, Aa, lr, Zi, Ia, Kr, er, qr, B, Ha, In, Rn, G, Wt, Qr, D, tr, Ca, ye, Ln, La, oe, Da, z, ue, Dn, wn, Z, K, wa, Yr, _n, Nn, rr, _a7, xn, Un, Bn, Vn, Fn, Gn, $n, Wn, at, Na, Kn, Y, Zr, qn, ne, jn, Kt, Oa, es, Jn, ts, Qn, zn, Yn, Xn, Zn, ec, tc, ic, is, oc, xa, nc, ss, sr, as, os, ns, cs, ds, ls, us, ps, hs, Ua, d, pe, w, ms, Ce, Va, Sc, Ss, gs, fs, Ve, M, f, Ga, m, nr, vs, ce, Ms, ks, Ps, R, y, pr, q, hr, mr, Hs, Cs, Ls, Sr, Ns, gr, Os, Tr, fr, Bs, Vs, pt, Qe, gt, k, Rr, Tt, js, po, ho, J, Hr, mo, So, go, To, fo, Q, tm, sm, oi, Js, am, om, nm, vo, Mo, dm, Qs, lm, yo, um, pm, hm, mm, Sm, gm, zs, Ys, fm, vm, Xs, Mm, ym, Zs, km, Pm, Em, ea, ta, ko, Po, Eo, bm, Am, Im, Rm, Hm, ia, Vm, bo, Fm, Gm, $m, Io, Ro, _r, Te, $, Bi, Ji, Jo, Qo, zo, Yo, va, Xo, Ma, Br, ve, Zo, en, tn, rn, sn, an, on, nn, cn, dn, Vr, ln, un, pn, hn, mn, Sn;
|
19508
19513
|
var init_dist = __esm({
|
19509
19514
|
"../hms-video-store/dist/index.js"() {
|
19510
19515
|
"use strict";
|
@@ -19532,68 +19537,68 @@ var init_dist = __esm({
|
|
19532
19537
|
import_uuid9 = require("uuid");
|
19533
19538
|
import_uuid10 = require("uuid");
|
19534
19539
|
init_es();
|
19535
|
-
|
19536
|
-
|
19537
|
-
|
19540
|
+
ya = Object.defineProperty;
|
19541
|
+
ka = Object.defineProperties;
|
19542
|
+
Pa = Object.getOwnPropertyDescriptors;
|
19538
19543
|
Vt = Object.getOwnPropertySymbols;
|
19539
|
-
|
19540
|
-
|
19541
|
-
|
19542
|
-
|
19544
|
+
$r = Object.prototype.hasOwnProperty;
|
19545
|
+
Wr = Object.prototype.propertyIsEnumerable;
|
19546
|
+
Gr = (a2, e, t) => e in a2 ? ya(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
19547
|
+
S = (a2, e) => {
|
19543
19548
|
for (var t in e || (e = {}))
|
19544
|
-
|
19549
|
+
$r.call(e, t) && Gr(a2, t, e[t]);
|
19545
19550
|
if (Vt)
|
19546
19551
|
for (var t of Vt(e))
|
19547
|
-
|
19552
|
+
Wr.call(e, t) && Gr(a2, t, e[t]);
|
19548
19553
|
return a2;
|
19549
19554
|
};
|
19550
|
-
v = (a2, e) =>
|
19555
|
+
v = (a2, e) => ka(a2, Pa(e));
|
19551
19556
|
Xi = (a2, e) => {
|
19552
19557
|
var t = {};
|
19553
19558
|
for (var i in a2)
|
19554
|
-
|
19559
|
+
$r.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
19555
19560
|
if (a2 != null && Vt)
|
19556
19561
|
for (var i of Vt(a2))
|
19557
|
-
e.indexOf(i) < 0 &&
|
19562
|
+
e.indexOf(i) < 0 && Wr.call(a2, i) && (t[i] = a2[i]);
|
19558
19563
|
return t;
|
19559
19564
|
};
|
19560
|
-
|
19561
|
-
lr =
|
19562
|
-
|
19565
|
+
Aa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19566
|
+
lr = Aa((Zc, Wa) => {
|
19567
|
+
Wa.exports = { version: "0.12.3-alpha.4", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
19563
19568
|
});
|
19564
19569
|
Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
|
19565
|
-
|
19566
|
-
|
19570
|
+
Ia = ((e) => (e.CHAT = "chat", e))(Ia || {});
|
19571
|
+
Kr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Kr || {});
|
19567
19572
|
er = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(er || {});
|
19568
|
-
|
19573
|
+
qr = ((t) => (t.audio = "audio", t.video = "video", t))(qr || {});
|
19569
19574
|
B = (a2) => a2.room;
|
19570
|
-
|
19571
|
-
|
19572
|
-
|
19575
|
+
Ha = (a2) => a2.errors;
|
19576
|
+
In = createSelector(Ha, (a2) => a2.length === 0 ? null : a2.at(-1));
|
19577
|
+
Rn = createSelector(B, (a2) => a2.id);
|
19573
19578
|
G = (a2) => a2.peers;
|
19574
19579
|
Wt = (a2) => a2.messages.byID;
|
19575
|
-
|
19576
|
-
|
19580
|
+
Qr = (a2) => a2.messages.allIDs;
|
19581
|
+
D = (a2) => a2.tracks;
|
19577
19582
|
tr = (a2) => a2.appData;
|
19578
|
-
|
19583
|
+
Ca = (a2) => a2.speakers;
|
19579
19584
|
ye = createSelector([B], (a2) => a2 && a2.isConnected);
|
19580
|
-
|
19581
|
-
|
19582
|
-
oe = createSelector([B, G,
|
19583
|
-
|
19585
|
+
Ln = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
19586
|
+
La = (a2) => a2.hideLocalPeer;
|
19587
|
+
oe = createSelector([B, G, La], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
19588
|
+
Da = createSelector(D, (a2) => Object.values(a2));
|
19584
19589
|
z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
|
19585
19590
|
ue = createSelector(B, (a2) => a2.localPeer);
|
19586
|
-
|
19587
|
-
|
19591
|
+
Dn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
|
19592
|
+
wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
|
19588
19593
|
Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
19589
19594
|
K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
19590
|
-
|
19591
|
-
|
19595
|
+
wa = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
19596
|
+
Yr = createSelector([Z, K, wa], (a2, e, t) => {
|
19592
19597
|
let i = t ? [...t] : [];
|
19593
19598
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
19594
19599
|
});
|
19595
|
-
|
19596
|
-
|
19600
|
+
_n = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
|
19601
|
+
Nn = createSelector(G, Ca, (a2, e) => {
|
19597
19602
|
let t = Object.entries(e).sort((i, r) => {
|
19598
19603
|
var n, l;
|
19599
19604
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -19606,11 +19611,11 @@ var init_dist = __esm({
|
|
19606
19611
|
}
|
19607
19612
|
return null;
|
19608
19613
|
});
|
19609
|
-
rr = createSelector(z,
|
19614
|
+
rr = createSelector(z, D, (a2, e) => {
|
19610
19615
|
let { video: t, audio: i } = He(e, a2);
|
19611
19616
|
return !!(t || i);
|
19612
19617
|
});
|
19613
|
-
|
19618
|
+
_a7 = createSelector(G, D, (a2, e) => {
|
19614
19619
|
let t;
|
19615
19620
|
for (let i in a2) {
|
19616
19621
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -19620,15 +19625,15 @@ var init_dist = __esm({
|
|
19620
19625
|
}
|
19621
19626
|
return t;
|
19622
19627
|
});
|
19623
|
-
|
19624
|
-
|
19628
|
+
xn = createSelector(_a7, (a2) => !!a2);
|
19629
|
+
Un = createSelector(G, D, (a2, e) => {
|
19625
19630
|
for (let t in a2) {
|
19626
19631
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
19627
19632
|
if (!s && r)
|
19628
19633
|
return i;
|
19629
19634
|
}
|
19630
19635
|
});
|
19631
|
-
|
19636
|
+
Bn = createSelector(G, D, (a2, e) => {
|
19632
19637
|
let t = [], i = [];
|
19633
19638
|
for (let r in a2) {
|
19634
19639
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -19636,77 +19641,77 @@ var init_dist = __esm({
|
|
19636
19641
|
}
|
19637
19642
|
return t.concat(i);
|
19638
19643
|
});
|
19639
|
-
|
19644
|
+
Vn = createSelector(G, D, (a2, e) => {
|
19640
19645
|
for (let t in e) {
|
19641
19646
|
let i = e[t];
|
19642
|
-
if (
|
19647
|
+
if (rt(i) && it(i) && i.peerId)
|
19643
19648
|
return a2[i.peerId];
|
19644
19649
|
}
|
19645
19650
|
});
|
19646
|
-
|
19651
|
+
Fn = createSelector(G, D, (a2, e) => {
|
19647
19652
|
for (let t in e) {
|
19648
19653
|
let i = e[t];
|
19649
19654
|
if ($t(i) && i.peerId)
|
19650
19655
|
return a2[i.peerId];
|
19651
19656
|
}
|
19652
19657
|
});
|
19653
|
-
|
19654
|
-
|
19655
|
-
|
19656
|
-
|
19658
|
+
Gn = createSelector(Da, (a2) => a2.filter(jr));
|
19659
|
+
$n = createSelector(Qr, (a2) => a2.length);
|
19660
|
+
Wn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
19661
|
+
at = createSelector(Qr, Wt, (a2, e) => {
|
19657
19662
|
let t = [];
|
19658
19663
|
return a2.forEach((i) => {
|
19659
19664
|
t.push(e[i]);
|
19660
19665
|
}), t;
|
19661
19666
|
});
|
19662
|
-
|
19667
|
+
Na = createSelector(at, (a2) => a2.filter((e) => {
|
19663
19668
|
var t;
|
19664
19669
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
19665
19670
|
}));
|
19666
|
-
|
19671
|
+
Kn = createSelector(Na, (a2) => a2.filter((e) => !e.read).length);
|
19667
19672
|
Y = createSelector([B], (a2) => a2 && a2.roomState);
|
19668
|
-
|
19669
|
-
|
19673
|
+
Zr = createSelector(Y, (a2) => a2 === "Preview");
|
19674
|
+
qn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
19670
19675
|
ne = (a2) => a2.roles;
|
19671
|
-
|
19676
|
+
jn = createSelector([ne], (a2) => Object.keys(a2));
|
19672
19677
|
Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
19673
|
-
|
19678
|
+
Oa = (a2) => {
|
19674
19679
|
var e;
|
19675
19680
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
19676
19681
|
};
|
19677
|
-
|
19678
|
-
|
19682
|
+
es = createSelector([Oa, ne], (a2, e) => a2 ? e[a2] : null);
|
19683
|
+
Jn = createSelector([Kt], (a2) => {
|
19679
19684
|
var e;
|
19680
19685
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
19681
19686
|
});
|
19682
|
-
|
19683
|
-
|
19684
|
-
|
19685
|
-
|
19686
|
-
|
19687
|
-
|
19688
|
-
|
19689
|
-
|
19690
|
-
|
19691
|
-
|
19692
|
-
|
19693
|
-
|
19694
|
-
|
19695
|
-
|
19687
|
+
ts = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
|
19688
|
+
Qn = createSelector(B, (a2) => a2.recording);
|
19689
|
+
zn = createSelector(B, (a2) => a2.rtmp);
|
19690
|
+
Yn = createSelector(B, (a2) => a2.hls);
|
19691
|
+
Xn = createSelector(B, (a2) => a2.sessionId);
|
19692
|
+
Zn = createSelector(B, (a2) => a2.startedAt);
|
19693
|
+
ec = createSelector(B, (a2) => !!a2.isLargeRoom);
|
19694
|
+
tc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
19695
|
+
ic = createSelector(B, (a2) => a2.effectsKey);
|
19696
|
+
is = (a2) => a2.polls;
|
19697
|
+
oc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
|
19698
|
+
xa = (a2) => a2.whiteboards;
|
19699
|
+
nc = createSelector(xa, (a2) => Object.values(a2)[0]);
|
19700
|
+
ss = (a2 = "audio") => (e) => e.playlist[a2].list;
|
19696
19701
|
sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
19697
|
-
|
19698
|
-
|
19699
|
-
|
19700
|
-
|
19701
|
-
|
19702
|
-
|
19702
|
+
as = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
19703
|
+
os = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
19704
|
+
ns = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
19705
|
+
cs = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
19706
|
+
ds = (a2 = "audio") => createSelector(ss(a2), (e) => Object.values(e));
|
19707
|
+
ls = (a2 = "audio") => createSelector(ss(a2), sr(a2), (e, t) => {
|
19703
19708
|
if (t.id)
|
19704
19709
|
return e[t.id];
|
19705
19710
|
});
|
19706
|
-
|
19707
|
-
|
19708
|
-
|
19709
|
-
|
19711
|
+
us = { selection: sr("audio"), progress: as("audio"), currentTime: os("audio"), playbackRate: ns("audio"), volume: cs("audio"), list: ds("audio"), selectedItem: ls("audio") };
|
19712
|
+
ps = { selection: sr("video"), progress: as("video"), currentTime: os("video"), playbackRate: ns("video"), volume: cs("video"), list: ds("video"), selectedItem: ls("video") };
|
19713
|
+
hs = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(hs || {});
|
19714
|
+
Ua = typeof window != "undefined" && typeof window.expect != "undefined";
|
19710
19715
|
d = class {
|
19711
19716
|
static v(e, ...t) {
|
19712
19717
|
this.log(0, e, ...t);
|
@@ -19772,14 +19777,14 @@ var init_dist = __esm({
|
|
19772
19777
|
}
|
19773
19778
|
}
|
19774
19779
|
};
|
19775
|
-
d.level =
|
19780
|
+
d.level = Ua ? 7 : 0;
|
19776
19781
|
pe = new import_ua_parser_js.UAParser();
|
19777
|
-
|
19778
|
-
Ce = typeof window == "undefined" && !((
|
19779
|
-
|
19780
|
-
|
19781
|
-
|
19782
|
-
Ve =
|
19782
|
+
w = typeof window != "undefined";
|
19783
|
+
Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
19784
|
+
Va = () => !Ce;
|
19785
|
+
Sc = Va();
|
19786
|
+
fs = ((gs = (Ss = pe.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
|
19787
|
+
Ve = Fa();
|
19783
19788
|
M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
19784
19789
|
f = class a extends Error {
|
19785
19790
|
constructor(t, i, r, s, o, n = false) {
|
@@ -19810,8 +19815,8 @@ var init_dist = __esm({
|
|
19810
19815
|
}`;
|
19811
19816
|
}
|
19812
19817
|
};
|
19813
|
-
|
19814
|
-
|
19818
|
+
Ga = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
19819
|
+
m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
19815
19820
|
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
19816
19821
|
}, WebSocketConnectionLost(a2, e = "") {
|
19817
19822
|
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
|
@@ -19870,7 +19875,7 @@ var init_dist = __esm({
|
|
19870
19875
|
}, StatsFailed(a2, e = "") {
|
19871
19876
|
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
19872
19877
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
19873
|
-
return new f(a2, "ServerErrors", e, t, t,
|
19878
|
+
return new f(a2, "ServerErrors", e, t, t, Ga.includes(e));
|
19874
19879
|
}, AlreadyJoined(a2, e = "") {
|
19875
19880
|
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
19876
19881
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
@@ -19943,11 +19948,11 @@ var init_dist = __esm({
|
|
19943
19948
|
return this.valuesMap.size;
|
19944
19949
|
}
|
19945
19950
|
};
|
19946
|
-
|
19951
|
+
vs = () => {
|
19947
19952
|
try {
|
19948
|
-
|
19953
|
+
w && !localStorage && (window.localStorage = new nr());
|
19949
19954
|
} catch (a2) {
|
19950
|
-
d.e("Error initialising localStorage",
|
19955
|
+
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
19951
19956
|
}
|
19952
19957
|
};
|
19953
19958
|
ce = class {
|
@@ -19957,9 +19962,9 @@ var init_dist = __esm({
|
|
19957
19962
|
}
|
19958
19963
|
getStorage() {
|
19959
19964
|
try {
|
19960
|
-
return
|
19965
|
+
return w && !this.storage && (vs(), this.storage = window.localStorage), this.storage;
|
19961
19966
|
} catch (e) {
|
19962
|
-
return d.e("Error initialising localStorage",
|
19967
|
+
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
19963
19968
|
}
|
19964
19969
|
}
|
19965
19970
|
get() {
|
@@ -19977,57 +19982,24 @@ var init_dist = __esm({
|
|
19977
19982
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
19978
19983
|
}
|
19979
19984
|
};
|
19980
|
-
|
19985
|
+
Ms = () => {
|
19981
19986
|
let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
|
19982
19987
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
19983
19988
|
};
|
19984
|
-
|
19985
|
-
|
19989
|
+
ks = lr().version;
|
19990
|
+
Ps = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
19986
19991
|
R = class {
|
19987
19992
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
19988
|
-
this.metadata = { peer: {}, userAgent:
|
19989
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id =
|
19993
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
19994
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = Ms();
|
19990
19995
|
}
|
19991
19996
|
toSignalParams() {
|
19992
|
-
return { name: this.name, info: v(
|
19997
|
+
return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
19993
19998
|
}
|
19994
19999
|
};
|
19995
|
-
pr = class {
|
19996
|
-
constructor() {
|
19997
|
-
this.pluginUsage = /* @__PURE__ */ new Map();
|
19998
|
-
this.pluginLastAddedAt = /* @__PURE__ */ new Map();
|
19999
|
-
this.getPluginUsage = (e, t) => {
|
20000
|
-
let i = `${t}-${e}`;
|
20001
|
-
if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
|
20002
|
-
let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
|
20003
|
-
this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
|
20004
|
-
}
|
20005
|
-
return this.pluginUsage.get(i);
|
20006
|
-
};
|
20007
|
-
this.updatePluginUsageData = (e, t) => {
|
20008
|
-
if (e.name === "transport.leave") {
|
20009
|
-
this.cleanup(t);
|
20010
|
-
return;
|
20011
|
-
}
|
20012
|
-
let i = e.properties.plugin_name, r = `${t}-${i}`;
|
20013
|
-
if (e.name === "mediaPlugin.added") {
|
20014
|
-
let s = e.properties.added_at;
|
20015
|
-
this.pluginLastAddedAt.set(r, s);
|
20016
|
-
} else if (e.name === "mediaPlugin.stats") {
|
20017
|
-
let s = e.properties.duration;
|
20018
|
-
s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
|
20019
|
-
}
|
20020
|
-
};
|
20021
|
-
this.cleanup = (e) => {
|
20022
|
-
for (let t of this.pluginUsage.keys())
|
20023
|
-
e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
|
20024
|
-
};
|
20025
|
-
}
|
20026
|
-
};
|
20027
|
-
Fe = new pr();
|
20028
20000
|
y = class {
|
20029
20001
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
20030
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(
|
20002
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
20031
20003
|
return new R({ name: o, level: n, properties: l });
|
20032
20004
|
}
|
20033
20005
|
static disconnect(e, t) {
|
@@ -20041,7 +20013,7 @@ var init_dist = __esm({
|
|
20041
20013
|
}
|
20042
20014
|
static join(i) {
|
20043
20015
|
var r = i, { error: e } = r, t = Xi(r, ["error"]);
|
20044
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(
|
20016
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
20045
20017
|
return new R({ name: s, level: o, properties: n });
|
20046
20018
|
}
|
20047
20019
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -20084,7 +20056,7 @@ var init_dist = __esm({
|
|
20084
20056
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
20085
20057
|
if (!t && e.degradedAt instanceof Date) {
|
20086
20058
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
20087
|
-
s = v(
|
20059
|
+
s = v(S({}, s), { duration: n, restoredAt: o });
|
20088
20060
|
}
|
20089
20061
|
return new R({ name: i, level: r, properties: s });
|
20090
20062
|
}
|
@@ -20102,8 +20074,7 @@ var init_dist = __esm({
|
|
20102
20074
|
return new R({ name: "subscriber.stats", level: 1, properties: e });
|
20103
20075
|
}
|
20104
20076
|
static getKrispUsage(e) {
|
20105
|
-
|
20106
|
-
return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
|
20077
|
+
return new R({ name: "krisp.usage", level: 1, properties: { duration: e } });
|
20107
20078
|
}
|
20108
20079
|
static transportLeave() {
|
20109
20080
|
return new R({ name: "transport.leave", level: 1, properties: {} });
|
@@ -20113,14 +20084,14 @@ var init_dist = __esm({
|
|
20113
20084
|
}
|
20114
20085
|
static getPropertiesWithError(e, t) {
|
20115
20086
|
let i = this.getErrorProperties(t);
|
20116
|
-
return e =
|
20087
|
+
return e = S(S({}, i), e), e;
|
20117
20088
|
}
|
20118
20089
|
static getErrorProperties(e) {
|
20119
20090
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
20120
20091
|
}
|
20121
20092
|
};
|
20122
20093
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
20123
|
-
|
20094
|
+
pr = class {
|
20124
20095
|
constructor() {
|
20125
20096
|
this.storage = new ce("hms-device-selection");
|
20126
20097
|
this.remember = false;
|
@@ -20154,13 +20125,13 @@ var init_dist = __esm({
|
|
20154
20125
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
20155
20126
|
}
|
20156
20127
|
};
|
20157
|
-
q = new
|
20158
|
-
|
20159
|
-
|
20160
|
-
|
20161
|
-
|
20162
|
-
|
20163
|
-
|
20128
|
+
q = new pr();
|
20129
|
+
hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
|
20130
|
+
mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
|
20131
|
+
Hs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Hs || {});
|
20132
|
+
Cs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Cs || {});
|
20133
|
+
Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
|
20134
|
+
Sr = class {
|
20164
20135
|
constructor() {
|
20165
20136
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
20166
20137
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20183,12 +20154,12 @@ var init_dist = __esm({
|
|
20183
20154
|
this.createObserver();
|
20184
20155
|
}
|
20185
20156
|
isSupported() {
|
20186
|
-
let e =
|
20157
|
+
let e = w && typeof window.IntersectionObserver != "undefined";
|
20187
20158
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
20188
20159
|
}
|
20189
20160
|
};
|
20190
|
-
|
20191
|
-
|
20161
|
+
Ns = new Sr();
|
20162
|
+
gr = class {
|
20192
20163
|
constructor() {
|
20193
20164
|
this.TAG = "[HMSResizeObserverWrapper]";
|
20194
20165
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20211,20 +20182,20 @@ var init_dist = __esm({
|
|
20211
20182
|
this.createObserver();
|
20212
20183
|
}
|
20213
20184
|
isSupported() {
|
20214
|
-
let e =
|
20185
|
+
let e = w && typeof window.ResizeObserver != "undefined";
|
20215
20186
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
20216
20187
|
}
|
20217
20188
|
};
|
20218
|
-
|
20219
|
-
|
20220
|
-
|
20221
|
-
|
20222
|
-
|
20223
|
-
|
20224
|
-
|
20225
|
-
};
|
20226
|
-
|
20227
|
-
|
20189
|
+
Os = new gr();
|
20190
|
+
Tr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Tr || {});
|
20191
|
+
fr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(fr || {});
|
20192
|
+
Bs = "https://event.100ms.live/v2/client/report";
|
20193
|
+
Vs = "https://event-nonprod.100ms.live/v2/client/report";
|
20194
|
+
pt = Math.pow(2, 31) - 1;
|
20195
|
+
Qe = class {
|
20196
|
+
};
|
20197
|
+
Qe.makePeerId = () => (0, import_uuid7.v4)();
|
20198
|
+
gt = "HMS-Store:";
|
20228
20199
|
k = class {
|
20229
20200
|
static v(e, ...t) {
|
20230
20201
|
this.log(0, e, ...t);
|
@@ -20254,23 +20225,23 @@ var init_dist = __esm({
|
|
20254
20225
|
if (!(this.level.valueOf() > e.valueOf()))
|
20255
20226
|
switch (e) {
|
20256
20227
|
case 0: {
|
20257
|
-
console.log(
|
20228
|
+
console.log(gt, ...t);
|
20258
20229
|
break;
|
20259
20230
|
}
|
20260
20231
|
case 1: {
|
20261
|
-
console.debug(
|
20232
|
+
console.debug(gt, ...t);
|
20262
20233
|
break;
|
20263
20234
|
}
|
20264
20235
|
case 2: {
|
20265
|
-
console.info(
|
20236
|
+
console.info(gt, ...t);
|
20266
20237
|
break;
|
20267
20238
|
}
|
20268
20239
|
case 3: {
|
20269
|
-
console.warn(
|
20240
|
+
console.warn(gt, ...t);
|
20270
20241
|
break;
|
20271
20242
|
}
|
20272
20243
|
case 6: {
|
20273
|
-
console.error(
|
20244
|
+
console.error(gt, ...t);
|
20274
20245
|
break;
|
20275
20246
|
}
|
20276
20247
|
case 4: {
|
@@ -20291,126 +20262,126 @@ var init_dist = __esm({
|
|
20291
20262
|
}
|
20292
20263
|
};
|
20293
20264
|
k.level = 0;
|
20294
|
-
|
20295
|
-
|
20296
|
-
|
20265
|
+
Rr = (a2, e) => e;
|
20266
|
+
Tt = (a2, e) => e;
|
20267
|
+
js = (a2, e) => e;
|
20268
|
+
po = (a2, e) => e;
|
20297
20269
|
ho = (a2, e) => e;
|
20298
|
-
|
20299
|
-
|
20300
|
-
|
20301
|
-
So = createSelector([w, ft], (a2, e) => {
|
20270
|
+
J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
|
20271
|
+
Hr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
|
20272
|
+
mo = createSelector([D, Tt], (a2, e) => {
|
20302
20273
|
if (!e)
|
20303
20274
|
return null;
|
20304
20275
|
let t = a2[e];
|
20305
20276
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
20306
20277
|
});
|
20307
|
-
|
20278
|
+
So = createSelector([D, Tt], (a2, e) => {
|
20308
20279
|
if (!e)
|
20309
20280
|
return null;
|
20310
20281
|
let t = a2[e];
|
20311
20282
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
20312
20283
|
});
|
20313
|
-
|
20284
|
+
go = createSelector([D, Tt], (a2, e) => {
|
20314
20285
|
if (!e)
|
20315
20286
|
return null;
|
20316
20287
|
let t = a2[e];
|
20317
20288
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20318
20289
|
});
|
20319
|
-
|
20290
|
+
To = createSelector([D, Tt], (a2, e) => {
|
20320
20291
|
if (!e)
|
20321
20292
|
return null;
|
20322
20293
|
let t = a2[e];
|
20323
20294
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20324
20295
|
});
|
20325
|
-
|
20326
|
-
Q =
|
20327
|
-
|
20296
|
+
fo = createSelector([is, ho], (a2, e) => e ? a2[e] : null);
|
20297
|
+
Q = b(J);
|
20298
|
+
tm = b(createSelector([tr, po], (a2, e) => {
|
20328
20299
|
if (a2)
|
20329
20300
|
return e ? a2[e] : a2;
|
20330
20301
|
}));
|
20331
|
-
|
20332
|
-
oi =
|
20333
|
-
|
20334
|
-
|
20335
|
-
|
20336
|
-
|
20337
|
-
|
20302
|
+
sm = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
20303
|
+
oi = b(Hr);
|
20304
|
+
Js = b(mo);
|
20305
|
+
am = b(So);
|
20306
|
+
om = b(go);
|
20307
|
+
nm = b(To);
|
20308
|
+
vo = b((a2, e) => {
|
20338
20309
|
let t = J(a2, e);
|
20339
20310
|
if (t && t.videoTrack && t.videoTrack !== "")
|
20340
20311
|
return a2.tracks[t.videoTrack];
|
20341
20312
|
});
|
20342
|
-
|
20313
|
+
Mo = b((a2, e) => {
|
20343
20314
|
let t = J(a2, e);
|
20344
20315
|
if (t && t.audioTrack && t.audioTrack !== "")
|
20345
20316
|
return a2.tracks[t.audioTrack];
|
20346
20317
|
});
|
20347
|
-
|
20318
|
+
dm = b((a2, e) => {
|
20348
20319
|
let t = J(a2, e);
|
20349
20320
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
20350
20321
|
});
|
20351
|
-
|
20352
|
-
|
20353
|
-
|
20354
|
-
let t =
|
20355
|
-
return
|
20356
|
-
};
|
20357
|
-
|
20358
|
-
|
20322
|
+
Qs = (a2, e) => e ? a2.speakers[e] : null;
|
20323
|
+
lm = b(createSelector(Qs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20324
|
+
yo = (a2, e) => {
|
20325
|
+
let t = Mo(e)(a2);
|
20326
|
+
return Qs(a2, t == null ? void 0 : t.id);
|
20327
|
+
};
|
20328
|
+
um = b(createSelector(yo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20329
|
+
pm = b((a2, e) => {
|
20359
20330
|
if (e)
|
20360
20331
|
return a2.connectionQualities[e];
|
20361
20332
|
});
|
20362
|
-
|
20333
|
+
hm = b((a2, e) => {
|
20363
20334
|
let t = J(a2, e);
|
20364
20335
|
if (t) {
|
20365
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
20336
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
|
20366
20337
|
return i ? a2.tracks[i] : void 0;
|
20367
20338
|
}
|
20368
20339
|
});
|
20369
|
-
|
20340
|
+
mm = b(createSelector(D, J, (a2, e) => {
|
20370
20341
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20371
20342
|
let r = a2[i];
|
20372
|
-
return
|
20343
|
+
return rt(r) && it(r);
|
20373
20344
|
});
|
20374
20345
|
return t ? a2[t] : void 0;
|
20375
20346
|
}));
|
20376
|
-
|
20347
|
+
Sm = b(createSelector(D, J, (a2, e) => {
|
20377
20348
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20378
20349
|
let r = a2[i];
|
20379
|
-
return
|
20350
|
+
return rt(r) && tt(r);
|
20380
20351
|
});
|
20381
20352
|
return t ? a2[t] : void 0;
|
20382
20353
|
}));
|
20383
|
-
|
20354
|
+
gm = b(createSelector(D, J, (a2, e) => {
|
20384
20355
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20385
20356
|
let r = a2[i];
|
20386
|
-
return $t(r) &&
|
20357
|
+
return $t(r) && tt(r);
|
20387
20358
|
});
|
20388
20359
|
return t ? a2[t] : void 0;
|
20389
20360
|
}));
|
20390
|
-
|
20391
|
-
|
20392
|
-
|
20361
|
+
zs = b(createSelector(D, J, (a2, e) => He(a2, e)));
|
20362
|
+
Ys = (a2) => createSelector(zs(a2), (e) => e.audio);
|
20363
|
+
fm = b((a2, e) => {
|
20393
20364
|
let t = J(a2, e);
|
20394
20365
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
20395
20366
|
});
|
20396
|
-
|
20367
|
+
vm = b((a2, e) => {
|
20397
20368
|
let t = J(a2, e);
|
20398
20369
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
20399
20370
|
});
|
20400
|
-
|
20371
|
+
Xs = b((a2, e) => {
|
20401
20372
|
if (e && a2.tracks[e])
|
20402
20373
|
return a2.tracks[e].volume === 0;
|
20403
20374
|
});
|
20404
|
-
|
20375
|
+
Mm = b((a2, e) => {
|
20405
20376
|
let t = J(a2, e);
|
20406
|
-
return
|
20377
|
+
return Xs(t == null ? void 0 : t.audioTrack)(a2);
|
20407
20378
|
});
|
20408
|
-
|
20409
|
-
let t =
|
20410
|
-
return
|
20379
|
+
ym = b((a2, e) => {
|
20380
|
+
let t = Ys(e)(a2);
|
20381
|
+
return Xs(t == null ? void 0 : t.id)(a2);
|
20411
20382
|
});
|
20412
|
-
|
20413
|
-
let t =
|
20383
|
+
Zs = b((a2, e) => {
|
20384
|
+
let t = Hr(a2, e);
|
20414
20385
|
if (t) {
|
20415
20386
|
if (t.type !== "audio") {
|
20416
20387
|
k.w("Please pass audio track here");
|
@@ -20419,16 +20390,16 @@ var init_dist = __esm({
|
|
20419
20390
|
return t.volume;
|
20420
20391
|
}
|
20421
20392
|
});
|
20422
|
-
|
20393
|
+
km = b((a2, e) => {
|
20423
20394
|
let t = J(a2, e);
|
20424
|
-
return
|
20395
|
+
return Zs(t == null ? void 0 : t.audioTrack)(a2);
|
20425
20396
|
});
|
20426
|
-
|
20427
|
-
let t =
|
20428
|
-
return
|
20397
|
+
Pm = b((a2, e) => {
|
20398
|
+
let t = Ys(e)(a2);
|
20399
|
+
return Zs(t == null ? void 0 : t.id)(a2);
|
20429
20400
|
});
|
20430
|
-
|
20431
|
-
let t =
|
20401
|
+
Em = b((a2, e) => {
|
20402
|
+
let t = Hr(a2, e);
|
20432
20403
|
if (t) {
|
20433
20404
|
if (t.type !== "video") {
|
20434
20405
|
k.w("Please pass video track here");
|
@@ -20437,49 +20408,49 @@ var init_dist = __esm({
|
|
20437
20408
|
return t.layer;
|
20438
20409
|
}
|
20439
20410
|
});
|
20440
|
-
|
20411
|
+
ea = createSelector([at, ue, Rr], (a2, e, t) => {
|
20441
20412
|
if (t)
|
20442
20413
|
return a2.filter((i) => {
|
20443
20414
|
var r;
|
20444
20415
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
20445
20416
|
});
|
20446
20417
|
});
|
20447
|
-
|
20418
|
+
ta = createSelector([at, js], (a2, e) => {
|
20448
20419
|
if (e)
|
20449
20420
|
return a2.filter((t) => {
|
20450
20421
|
var i, r;
|
20451
20422
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
20452
20423
|
});
|
20453
20424
|
});
|
20454
|
-
|
20425
|
+
ko = createSelector(at, (a2) => a2.filter((e) => {
|
20455
20426
|
var t;
|
20456
20427
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
20457
20428
|
}));
|
20458
|
-
|
20459
|
-
|
20460
|
-
|
20461
|
-
|
20462
|
-
|
20463
|
-
|
20464
|
-
|
20465
|
-
|
20466
|
-
|
20429
|
+
Po = createSelector([ta, js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20430
|
+
Eo = createSelector([ea, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20431
|
+
bm = createSelector(ko, (a2) => a2.filter((e) => !e.read).length);
|
20432
|
+
Am = b(ea);
|
20433
|
+
Im = b(ta);
|
20434
|
+
Rm = b(Po);
|
20435
|
+
Hm = b(Eo);
|
20436
|
+
ia = b(fo);
|
20437
|
+
Vm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
|
20467
20438
|
var r;
|
20468
20439
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
20469
20440
|
}));
|
20470
|
-
|
20471
|
-
|
20472
|
-
|
20473
|
-
|
20474
|
-
|
20441
|
+
bo = (a2) => a2.roleChangeRequests[0] || null;
|
20442
|
+
Fm = createSelector([bo, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
20443
|
+
Gm = createSelector([Kt], (a2) => st(a2));
|
20444
|
+
$m = createSelector([es], (a2) => st(a2));
|
20445
|
+
Io = createSelector([K, D], (a2, e) => {
|
20475
20446
|
let t = null;
|
20476
20447
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20477
20448
|
});
|
20478
|
-
|
20449
|
+
Ro = createSelector([Z, D], (a2, e) => {
|
20479
20450
|
let t = null;
|
20480
20451
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20481
20452
|
});
|
20482
|
-
|
20453
|
+
_r = class {
|
20483
20454
|
constructor() {
|
20484
20455
|
this.TAG = "[HTTPAnalyticsTransport]";
|
20485
20456
|
this.failedEvents = new ce("client-events");
|
@@ -20498,7 +20469,7 @@ var init_dist = __esm({
|
|
20498
20469
|
this.addEventToStorage(e);
|
20499
20470
|
return;
|
20500
20471
|
}
|
20501
|
-
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" ?
|
20472
|
+
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Bs : Vs;
|
20502
20473
|
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) => {
|
20503
20474
|
if (r.status === 401) {
|
20504
20475
|
this.removeFromStorage(e);
|
@@ -20524,66 +20495,66 @@ var init_dist = __esm({
|
|
20524
20495
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
20525
20496
|
}
|
20526
20497
|
};
|
20527
|
-
Te = new
|
20498
|
+
Te = new _r();
|
20528
20499
|
$ = ((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))($ || {});
|
20529
20500
|
Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
|
20530
20501
|
Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
|
20531
|
-
|
20532
|
-
|
20533
|
-
|
20534
|
-
|
20535
|
-
|
20536
|
-
|
20537
|
-
|
20538
|
-
|
20539
|
-
ve = createSelector([
|
20540
|
-
|
20502
|
+
Jo = (a2) => a2.localPeer.id;
|
20503
|
+
Qo = (a2) => a2.localPeer.audioTrack;
|
20504
|
+
zo = (a2) => a2.localPeer.videoTrack;
|
20505
|
+
Yo = (a2, e) => e;
|
20506
|
+
va = (a2, e) => e;
|
20507
|
+
Xo = (a2) => a2.remoteTrackStats;
|
20508
|
+
Ma = (a2) => a2.peerStats;
|
20509
|
+
Br = (a2) => a2.localTrackStats;
|
20510
|
+
ve = createSelector([Ma, Jo], (a2, e) => a2[e]);
|
20511
|
+
Zo = createSelector(ve, (a2) => {
|
20541
20512
|
var e;
|
20542
20513
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
20543
20514
|
});
|
20544
|
-
|
20515
|
+
en = createSelector(ve, (a2) => {
|
20545
20516
|
var e;
|
20546
20517
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
20547
20518
|
});
|
20548
|
-
|
20519
|
+
tn = createSelector(ve, (a2) => {
|
20549
20520
|
var e;
|
20550
20521
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
20551
20522
|
});
|
20552
|
-
|
20523
|
+
rn = createSelector(ve, (a2) => {
|
20553
20524
|
var e;
|
20554
20525
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
20555
20526
|
});
|
20556
|
-
|
20527
|
+
sn = createSelector(ve, (a2) => {
|
20557
20528
|
var e;
|
20558
20529
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
20559
20530
|
});
|
20560
|
-
|
20531
|
+
an = createSelector(ve, (a2) => {
|
20561
20532
|
var e;
|
20562
20533
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
20563
20534
|
});
|
20564
|
-
|
20535
|
+
on = createSelector(ve, (a2) => {
|
20565
20536
|
var e;
|
20566
20537
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
20567
20538
|
});
|
20568
|
-
|
20539
|
+
nn = createSelector(ve, (a2) => {
|
20569
20540
|
var e;
|
20570
20541
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
20571
20542
|
});
|
20572
|
-
|
20573
|
-
|
20574
|
-
|
20575
|
-
|
20576
|
-
|
20577
|
-
|
20543
|
+
cn = createSelector([Ma, Yo], (a2, e) => e ? a2[e] : void 0);
|
20544
|
+
dn = createSelector([Xo, va], (a2, e) => e ? a2[e] : void 0);
|
20545
|
+
Vr = createSelector([Br, va], (a2, e) => e ? a2[e] : void 0);
|
20546
|
+
ln = b(cn);
|
20547
|
+
un = b(dn);
|
20548
|
+
pn = createSelector([Br, Qo], (a2, e) => {
|
20578
20549
|
var t;
|
20579
20550
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20580
20551
|
});
|
20581
|
-
|
20582
|
-
|
20552
|
+
hn = b(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
|
20553
|
+
mn = createSelector([Br, zo], (a2, e) => {
|
20583
20554
|
var t;
|
20584
20555
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20585
20556
|
});
|
20586
|
-
|
20557
|
+
Sn = b(createSelector(Vr, (a2) => a2));
|
20587
20558
|
}
|
20588
20559
|
});
|
20589
20560
|
|
@@ -20862,7 +20833,7 @@ var init_StreamActions = __esm({
|
|
20862
20833
|
};
|
20863
20834
|
RecordingPauseStatus = () => {
|
20864
20835
|
const recording = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectRecordingState);
|
20865
|
-
if (recording.hls && recording.hls.state ===
|
20836
|
+
if (recording.hls && recording.hls.state === Hs.PAUSED) {
|
20866
20837
|
return /* @__PURE__ */ import_react72.default.createElement(
|
20867
20838
|
Tooltip,
|
20868
20839
|
{
|
@@ -21336,6 +21307,8 @@ var init_MwebOptions = __esm({
|
|
21336
21307
|
const peerCount = (0, import_react_sdk36.useHMSStore)(import_react_sdk36.selectPeerCount);
|
21337
21308
|
const emojiCardRef = (0, import_react78.useRef)(null);
|
21338
21309
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
21310
|
+
const { toggleAudio, toggleVideo } = (0, import_react_sdk36.useAVToggle)();
|
21311
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
21339
21312
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
21340
21313
|
const { title, description } = useRoomLayoutHeader();
|
21341
21314
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -21397,7 +21370,7 @@ var init_MwebOptions = __esm({
|
|
21397
21370
|
/* @__PURE__ */ import_react78.default.createElement(import_react_icons31.PeopleIcon, null),
|
21398
21371
|
/* @__PURE__ */ import_react78.default.createElement(ActionTile.Title, null, "Participants")
|
21399
21372
|
),
|
21400
|
-
|
21373
|
+
!noAVPermissions ? /* @__PURE__ */ import_react78.default.createElement(
|
21401
21374
|
ActionTile.Root,
|
21402
21375
|
{
|
21403
21376
|
active: isHandRaised,
|
@@ -21590,14 +21563,9 @@ var init_RaiseHand = __esm({
|
|
21590
21563
|
import_react_icons32 = require("@100mslive/react-icons");
|
21591
21564
|
init_Tooltip2();
|
21592
21565
|
init_IconButton3();
|
21593
|
-
init_useRoomLayoutScreen();
|
21594
21566
|
init_useMetadata();
|
21595
21567
|
RaiseHand = ({ css: css2 }) => {
|
21596
21568
|
const { isHandRaised, toggleHandRaise } = useMyMetadata();
|
21597
|
-
const { elements } = useRoomLayoutConferencingScreen();
|
21598
|
-
if (!elements.hand_raise) {
|
21599
|
-
return null;
|
21600
|
-
}
|
21601
21569
|
return /* @__PURE__ */ import_react80.default.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ import_react80.default.createElement(
|
21602
21570
|
IconButton_default,
|
21603
21571
|
{
|
@@ -22701,7 +22669,6 @@ var init_RoleAccordion = __esm({
|
|
22701
22669
|
return /* @__PURE__ */ import_react93.default.createElement(Accordion.Item, { value: roleName, css: { "&:hover .role_actions": { visibility: "visible" }, mb: "$8" }, ref }, /* @__PURE__ */ import_react93.default.createElement(
|
22702
22670
|
Accordion.Header,
|
22703
22671
|
{
|
22704
|
-
chevronID: `role_accordion_btn_${roleName}`,
|
22705
22672
|
iconStyles: { c: "$on_surface_high" },
|
22706
22673
|
css: {
|
22707
22674
|
textTransform: "capitalize",
|
@@ -22754,7 +22721,7 @@ var init_RoleAccordion = __esm({
|
|
22754
22721
|
},
|
22755
22722
|
/* @__PURE__ */ import_react93.default.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
22756
22723
|
/* @__PURE__ */ import_react93.default.createElement(import_react_icons42.ChevronRightIcon, null)
|
22757
|
-
) : null, isHandRaisedAccordion &&
|
22724
|
+
) : null, isHandRaisedAccordion && /* @__PURE__ */ import_react93.default.createElement(import_react93.default.Fragment, null, /* @__PURE__ */ import_react93.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react93.default.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ import_react93.default.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons42.CrossIcon, null), " Lower all hands"), canBringToStage && /* @__PURE__ */ import_react93.default.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons42.AddIcon, null), " ", bring_to_stage_label)))));
|
22758
22725
|
};
|
22759
22726
|
}
|
22760
22727
|
});
|
@@ -23075,10 +23042,7 @@ var init_ParticipantList = __esm({
|
|
23075
23042
|
peerId,
|
23076
23043
|
role
|
23077
23044
|
});
|
23078
|
-
|
23079
|
-
return null;
|
23080
|
-
}
|
23081
|
-
return /* @__PURE__ */ import_react95.default.createElement(import_react95.default.Fragment, null, /* @__PURE__ */ import_react95.default.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ import_react95.default.createElement(import_react_icons43.CrossIcon, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ import_react95.default.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ import_react95.default.createElement(import_react_icons43.AddIcon, { height: 18, width: 18 })));
|
23045
|
+
return /* @__PURE__ */ import_react95.default.createElement(import_react95.default.Fragment, null, /* @__PURE__ */ import_react95.default.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ import_react95.default.createElement(import_react_icons43.CrossIcon, { height: 18, width: 18 })), shouldShowStageRoleChange && !isInStage && /* @__PURE__ */ import_react95.default.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ import_react95.default.createElement(import_react_icons43.AddIcon, { height: 18, width: 18 })));
|
23082
23046
|
};
|
23083
23047
|
ParticipantMoreActions = ({ peerId, role }) => {
|
23084
23048
|
const {
|
@@ -23239,7 +23203,7 @@ var init_WhiteboardToggle = __esm({
|
|
23239
23203
|
});
|
23240
23204
|
|
23241
23205
|
// src/Prebuilt/components/Footer/Footer.tsx
|
23242
|
-
var import_react98, import_react_use15, import_chat, Footer2;
|
23206
|
+
var import_react98, import_react_use15, import_chat, import_react_sdk49, Footer2;
|
23243
23207
|
var init_Footer3 = __esm({
|
23244
23208
|
"src/Prebuilt/components/Footer/Footer.tsx"() {
|
23245
23209
|
"use strict";
|
@@ -23247,6 +23211,7 @@ var init_Footer3 = __esm({
|
|
23247
23211
|
import_react98 = __toESM(require("react"));
|
23248
23212
|
import_react_use15 = require("react-use");
|
23249
23213
|
import_chat = require("@100mslive/types-prebuilt/elements/chat");
|
23214
|
+
import_react_sdk49 = require("@100mslive/react-sdk");
|
23250
23215
|
init_src();
|
23251
23216
|
init_AudioVideoToggle();
|
23252
23217
|
init_EmojiReaction();
|
@@ -23270,6 +23235,8 @@ var init_Footer3 = __esm({
|
|
23270
23235
|
const isMobile = (0, import_react_use15.useMedia)(config.media.md);
|
23271
23236
|
const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
|
23272
23237
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
|
23238
|
+
const { toggleAudio, toggleVideo } = (0, import_react_sdk49.useAVToggle)();
|
23239
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
23273
23240
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
23274
23241
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
23275
23242
|
const { showPolls } = useShowPolls();
|
@@ -23317,7 +23284,7 @@ var init_Footer3 = __esm({
|
|
23317
23284
|
}
|
23318
23285
|
}
|
23319
23286
|
},
|
23320
|
-
isMobile ? /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react98.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react98.default.createElement(LeaveRoom, { screenType }))
|
23287
|
+
isMobile ? /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, noAVPermissions ? /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react98.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react98.default.createElement(LeaveRoom, { screenType }))
|
23321
23288
|
),
|
23322
23289
|
/* @__PURE__ */ import_react98.default.createElement(Footer.Right, null, /* @__PURE__ */ import_react98.default.createElement(WhiteboardToggle, null), showPolls && /* @__PURE__ */ import_react98.default.createElement(PollsToggle, null), !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ import_react98.default.createElement(ParticipantCount, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType }))
|
23323
23290
|
);
|
@@ -23327,10 +23294,10 @@ var init_Footer3 = __esm({
|
|
23327
23294
|
|
23328
23295
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
23329
23296
|
function HLSFailureModal() {
|
23330
|
-
const hlsError = (0,
|
23297
|
+
const hlsError = (0, import_react_sdk50.useHMSStore)(import_react_sdk50.selectHLSState).error || false;
|
23331
23298
|
const [openModal, setOpenModal] = (0, import_react99.useState)(!!hlsError);
|
23332
|
-
const hmsActions = (0,
|
23333
|
-
const { isRTMPRunning } = (0,
|
23299
|
+
const hmsActions = (0, import_react_sdk50.useHMSActions)();
|
23300
|
+
const { isRTMPRunning } = (0, import_react_sdk50.useRecordingStreaming)();
|
23334
23301
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
23335
23302
|
const startHLS = (0, import_react99.useCallback)(() => __async(this, null, function* () {
|
23336
23303
|
try {
|
@@ -23369,13 +23336,13 @@ function HLSFailureModal() {
|
|
23369
23336
|
), /* @__PURE__ */ import_react99.default.createElement(Text, { variant: "sm", css: { mb: "$10", color: "$on_surface_medium" } }, "Something went wrong and your live broadcast failed. Please try again."), /* @__PURE__ */ import_react99.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react99.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setOpenModal(false) }, "Dismiss"), /* @__PURE__ */ import_react99.default.createElement(Button, { css: { w: "100%" }, onClick: startHLS }, "Go Live"))))
|
23370
23337
|
) : null;
|
23371
23338
|
}
|
23372
|
-
var import_react99,
|
23339
|
+
var import_react99, import_react_sdk50;
|
23373
23340
|
var init_HLSFailureModal = __esm({
|
23374
23341
|
"src/Prebuilt/components/Notifications/HLSFailureModal.tsx"() {
|
23375
23342
|
"use strict";
|
23376
23343
|
init_define_process_env();
|
23377
23344
|
import_react99 = __toESM(require("react"));
|
23378
|
-
|
23345
|
+
import_react_sdk50 = require("@100mslive/react-sdk");
|
23379
23346
|
init_Button2();
|
23380
23347
|
init_Layout();
|
23381
23348
|
init_Modal();
|
@@ -23386,13 +23353,13 @@ var init_HLSFailureModal = __esm({
|
|
23386
23353
|
});
|
23387
23354
|
|
23388
23355
|
// src/Prebuilt/components/Streaming/Common.jsx
|
23389
|
-
var import_react100,
|
23356
|
+
var import_react100, import_react_sdk51, import_react_icons46, ContentHeader, Container3, ErrorText;
|
23390
23357
|
var init_Common = __esm({
|
23391
23358
|
"src/Prebuilt/components/Streaming/Common.jsx"() {
|
23392
23359
|
"use strict";
|
23393
23360
|
init_define_process_env();
|
23394
23361
|
import_react100 = __toESM(require("react"));
|
23395
|
-
|
23362
|
+
import_react_sdk51 = require("@100mslive/react-sdk");
|
23396
23363
|
import_react_icons46 = require("@100mslive/react-icons");
|
23397
23364
|
init_src();
|
23398
23365
|
ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
@@ -23536,13 +23503,13 @@ function InteractionSelectionCard({
|
|
23536
23503
|
/* @__PURE__ */ import_react102.default.createElement(Text, { variant: "sub1", css: { ml: "$md" } }, title)
|
23537
23504
|
);
|
23538
23505
|
}
|
23539
|
-
var import_react102,
|
23506
|
+
var import_react102, import_react_sdk52, import_react_icons47, PollsQuizMenu, AddMenu, PrevMenu, InteractionCard;
|
23540
23507
|
var init_PollsQuizMenu = __esm({
|
23541
23508
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx"() {
|
23542
23509
|
"use strict";
|
23543
23510
|
init_define_process_env();
|
23544
23511
|
import_react102 = __toESM(require("react"));
|
23545
|
-
|
23512
|
+
import_react_sdk52 = require("@100mslive/react-sdk");
|
23546
23513
|
import_react_icons47 = require("@100mslive/react-icons");
|
23547
23514
|
init_src();
|
23548
23515
|
init_Common();
|
@@ -23553,13 +23520,13 @@ var init_PollsQuizMenu = __esm({
|
|
23553
23520
|
init_constants();
|
23554
23521
|
PollsQuizMenu = () => {
|
23555
23522
|
const togglePollView = usePollViewToggle();
|
23556
|
-
const permissions = (0,
|
23523
|
+
const permissions = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPermissions);
|
23557
23524
|
return /* @__PURE__ */ import_react102.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react102.default.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ import_react102.default.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ import_react102.default.createElement(AddMenu, null), /* @__PURE__ */ import_react102.default.createElement(PrevMenu, null)));
|
23558
23525
|
};
|
23559
23526
|
AddMenu = () => {
|
23560
|
-
const actions = (0,
|
23527
|
+
const actions = (0, import_react_sdk52.useHMSActions)();
|
23561
23528
|
const [title, setTitle] = (0, import_react102.useState)("");
|
23562
|
-
const localPeerRoleName = (0,
|
23529
|
+
const localPeerRoleName = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectLocalPeerRoleName);
|
23563
23530
|
const [hideVoteCount, setHideVoteCount] = (0, import_react102.useState)(false);
|
23564
23531
|
const [error, setError] = (0, import_react102.useState)();
|
23565
23532
|
const [titleError, setTitleError] = (0, import_react102.useState)("");
|
@@ -23640,19 +23607,19 @@ var init_PollsQuizMenu = __esm({
|
|
23640
23607
|
), /* @__PURE__ */ import_react102.default.createElement(ErrorText, { error: error || titleError })));
|
23641
23608
|
};
|
23642
23609
|
PrevMenu = () => {
|
23643
|
-
const hmsActions = (0,
|
23644
|
-
const polls = (0,
|
23610
|
+
const hmsActions = (0, import_react_sdk52.useHMSActions)();
|
23611
|
+
const polls = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPolls);
|
23645
23612
|
const sortedPolls = (0, import_react102.useMemo)(
|
23646
23613
|
() => {
|
23647
23614
|
var _a8;
|
23648
|
-
return (_a8 = polls == null ? void 0 : polls.sort((a2,
|
23615
|
+
return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
|
23649
23616
|
var _a9, _b7;
|
23650
|
-
return (((_a9 =
|
23651
|
-
})) == null ? void 0 : _a8.sort((a2,
|
23617
|
+
return (((_a9 = b2.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
|
23618
|
+
})) == null ? void 0 : _a8.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
|
23652
23619
|
},
|
23653
23620
|
[polls]
|
23654
23621
|
);
|
23655
|
-
const permissions = (0,
|
23622
|
+
const permissions = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPermissions);
|
23656
23623
|
(0, import_react102.useEffect)(() => {
|
23657
23624
|
const updatePolls = () => __async(void 0, null, function* () {
|
23658
23625
|
yield hmsActions.interactivityCenter.getPolls();
|
@@ -24294,11 +24261,11 @@ var init_SavedQuestion = __esm({
|
|
24294
24261
|
// src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
|
24295
24262
|
function CreateQuestions() {
|
24296
24263
|
var _a8, _b7, _c, _d;
|
24297
|
-
const actions = (0,
|
24298
|
-
const { isHLSRunning } = (0,
|
24264
|
+
const actions = (0, import_react_sdk53.useHMSActions)();
|
24265
|
+
const { isHLSRunning } = (0, import_react_sdk53.useRecordingStreaming)();
|
24299
24266
|
const togglePollView = usePollViewToggle();
|
24300
24267
|
const { pollInView: id, setPollView } = usePollViewState();
|
24301
|
-
const interaction = (0,
|
24268
|
+
const interaction = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPollByID)(id));
|
24302
24269
|
const [questions, setQuestions] = (0, import_react112.useState)(
|
24303
24270
|
((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
|
24304
24271
|
);
|
@@ -24378,14 +24345,14 @@ function CreateQuestions() {
|
|
24378
24345
|
return launchPoll();
|
24379
24346
|
}) }, "Launch ", interaction == null ? void 0 : interaction.type))));
|
24380
24347
|
}
|
24381
|
-
var import_react112, import_uuid11,
|
24348
|
+
var import_react112, import_uuid11, import_react_sdk53, import_react_icons54, getEditableFormat, QuestionCard;
|
24382
24349
|
var init_CreateQuestions = __esm({
|
24383
24350
|
"src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx"() {
|
24384
24351
|
"use strict";
|
24385
24352
|
init_define_process_env();
|
24386
24353
|
import_react112 = __toESM(require("react"));
|
24387
24354
|
import_uuid11 = require("uuid");
|
24388
|
-
|
24355
|
+
import_react_sdk53 = require("@100mslive/react-sdk");
|
24389
24356
|
import_react_icons54 = require("@100mslive/react-icons");
|
24390
24357
|
init_src();
|
24391
24358
|
init_Common();
|
@@ -24513,16 +24480,16 @@ var init_StatisticBox = __esm({
|
|
24513
24480
|
});
|
24514
24481
|
|
24515
24482
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
24516
|
-
var import_react115,
|
24483
|
+
var import_react115, import_react_sdk54, useQuizSummary;
|
24517
24484
|
var init_useQuizSummary = __esm({
|
24518
24485
|
"src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx"() {
|
24519
24486
|
"use strict";
|
24520
24487
|
init_define_process_env();
|
24521
24488
|
import_react115 = require("react");
|
24522
|
-
|
24489
|
+
import_react_sdk54 = require("@100mslive/react-sdk");
|
24523
24490
|
useQuizSummary = (quizID) => {
|
24524
|
-
const hmsActions = (0,
|
24525
|
-
const quiz = (0,
|
24491
|
+
const hmsActions = (0, import_react_sdk54.useHMSActions)();
|
24492
|
+
const quiz = (0, import_react_sdk54.useHMSStore)((0, import_react_sdk54.selectPollByID)(quizID));
|
24526
24493
|
const [quizLeaderboard, setQuizLeaderboard] = (0, import_react115.useState)();
|
24527
24494
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
24528
24495
|
totalUsers: 0,
|
@@ -24560,20 +24527,20 @@ var init_useQuizSummary = __esm({
|
|
24560
24527
|
});
|
24561
24528
|
|
24562
24529
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
24563
|
-
var import_react116,
|
24530
|
+
var import_react116, import_react_sdk55, PeerParticipationSummary;
|
24564
24531
|
var init_PeerParticipationSummary = __esm({
|
24565
24532
|
"src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx"() {
|
24566
24533
|
"use strict";
|
24567
24534
|
init_define_process_env();
|
24568
24535
|
import_react116 = __toESM(require("react"));
|
24569
|
-
|
24536
|
+
import_react_sdk55 = require("@100mslive/react-sdk");
|
24570
24537
|
init_Layout();
|
24571
24538
|
init_Text2();
|
24572
24539
|
init_StatisticBox();
|
24573
24540
|
init_useQuizSummary();
|
24574
24541
|
init_utils4();
|
24575
24542
|
PeerParticipationSummary = ({ quiz }) => {
|
24576
|
-
const localPeerId = (0,
|
24543
|
+
const localPeerId = (0, import_react_sdk55.useHMSStore)(import_react_sdk55.selectLocalPeerID);
|
24577
24544
|
const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
|
24578
24545
|
if (quiz.state !== "stopped") {
|
24579
24546
|
return /* @__PURE__ */ import_react116.default.createElement(import_react116.default.Fragment, null);
|
@@ -24614,13 +24581,13 @@ var init_PeerParticipationSummary = __esm({
|
|
24614
24581
|
});
|
24615
24582
|
|
24616
24583
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
24617
|
-
var import_react117,
|
24584
|
+
var import_react117, import_react_sdk56, import_react_icons56, LeaderboardSummary;
|
24618
24585
|
var init_LeaderboardSummary = __esm({
|
24619
24586
|
"src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx"() {
|
24620
24587
|
"use strict";
|
24621
24588
|
init_define_process_env();
|
24622
24589
|
import_react117 = __toESM(require("react"));
|
24623
|
-
|
24590
|
+
import_react_sdk56 = require("@100mslive/react-sdk");
|
24624
24591
|
import_react_icons56 = require("@100mslive/react-icons");
|
24625
24592
|
init_Layout();
|
24626
24593
|
init_Loading2();
|
@@ -24634,7 +24601,7 @@ var init_LeaderboardSummary = __esm({
|
|
24634
24601
|
init_constants();
|
24635
24602
|
LeaderboardSummary = ({ pollID }) => {
|
24636
24603
|
var _a8, _b7;
|
24637
|
-
const quiz = (0,
|
24604
|
+
const quiz = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPollByID)(pollID));
|
24638
24605
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
24639
24606
|
const [viewAllEntries, setViewAllEntries] = (0, import_react117.useState)(false);
|
24640
24607
|
const { setPollView } = usePollViewState();
|
@@ -24707,14 +24674,14 @@ var init_LeaderboardSummary = __esm({
|
|
24707
24674
|
});
|
24708
24675
|
|
24709
24676
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
24710
|
-
var import_react118, import_ts_pattern7,
|
24677
|
+
var import_react118, import_ts_pattern7, import_react_sdk57, import_react_icons57, QuestionCard2, QuestionActions;
|
24711
24678
|
var init_QuestionCard = __esm({
|
24712
24679
|
"src/Prebuilt/components/Polls/Voting/QuestionCard.jsx"() {
|
24713
24680
|
"use strict";
|
24714
24681
|
init_define_process_env();
|
24715
24682
|
import_react118 = __toESM(require("react"));
|
24716
24683
|
import_ts_pattern7 = require("ts-pattern");
|
24717
|
-
|
24684
|
+
import_react_sdk57 = require("@100mslive/react-sdk");
|
24718
24685
|
import_react_icons57 = require("@100mslive/react-icons");
|
24719
24686
|
init_src();
|
24720
24687
|
init_utils2();
|
@@ -24736,8 +24703,8 @@ var init_QuestionCard = __esm({
|
|
24736
24703
|
responses = [],
|
24737
24704
|
rolesThatCanViewResponses
|
24738
24705
|
}) => {
|
24739
|
-
const actions = (0,
|
24740
|
-
const localPeer = (0,
|
24706
|
+
const actions = (0, import_react_sdk57.useHMSActions)();
|
24707
|
+
const localPeer = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeer);
|
24741
24708
|
const localPeerResponse = responses == null ? void 0 : responses.find(
|
24742
24709
|
(response) => {
|
24743
24710
|
var _a8, _b7;
|
@@ -24745,7 +24712,7 @@ var init_QuestionCard = __esm({
|
|
24745
24712
|
}
|
24746
24713
|
);
|
24747
24714
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
24748
|
-
const localPeerRoleName = (0,
|
24715
|
+
const localPeerRoleName = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeerRoleName);
|
24749
24716
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
24750
24717
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
24751
24718
|
const isLive = pollState === "started";
|
@@ -24945,18 +24912,18 @@ var init_StandardVoting = __esm({
|
|
24945
24912
|
});
|
24946
24913
|
|
24947
24914
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
24948
|
-
var import_react120,
|
24915
|
+
var import_react120, import_react_sdk58, TimedView;
|
24949
24916
|
var init_TimedVoting = __esm({
|
24950
24917
|
"src/Prebuilt/components/Polls/Voting/TimedVoting.tsx"() {
|
24951
24918
|
"use strict";
|
24952
24919
|
init_define_process_env();
|
24953
24920
|
import_react120 = __toESM(require("react"));
|
24954
|
-
|
24921
|
+
import_react_sdk58 = require("@100mslive/react-sdk");
|
24955
24922
|
init_QuestionCard();
|
24956
24923
|
init_utils2();
|
24957
24924
|
TimedView = ({ poll }) => {
|
24958
24925
|
var _a8, _b7, _c;
|
24959
|
-
const localPeerId = (0,
|
24926
|
+
const localPeerId = (0, import_react_sdk58.useHMSStore)(import_react_sdk58.selectLocalPeerID);
|
24960
24927
|
const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
|
24961
24928
|
const [currentIndex, setCurrentIndex] = (0, import_react120.useState)(lastAttemptedIndex);
|
24962
24929
|
const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
|
@@ -24992,13 +24959,13 @@ var init_TimedVoting = __esm({
|
|
24992
24959
|
});
|
24993
24960
|
|
24994
24961
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
24995
|
-
var import_react121,
|
24962
|
+
var import_react121, import_react_sdk59, import_react_icons58, Voting;
|
24996
24963
|
var init_Voting = __esm({
|
24997
24964
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx"() {
|
24998
24965
|
"use strict";
|
24999
24966
|
init_define_process_env();
|
25000
24967
|
import_react121 = __toESM(require("react"));
|
25001
|
-
|
24968
|
+
import_react_sdk59 = require("@100mslive/react-sdk");
|
25002
24969
|
import_react_icons58 = require("@100mslive/react-icons");
|
25003
24970
|
init_src();
|
25004
24971
|
init_Common();
|
@@ -25008,10 +24975,10 @@ var init_Voting = __esm({
|
|
25008
24975
|
init_StatusIndicator();
|
25009
24976
|
init_constants();
|
25010
24977
|
Voting = ({ id, toggleVoting }) => {
|
25011
|
-
const actions = (0,
|
25012
|
-
const poll = (0,
|
25013
|
-
const pollCreatorName = (0,
|
25014
|
-
const permissions = (0,
|
24978
|
+
const actions = (0, import_react_sdk59.useHMSActions)();
|
24979
|
+
const poll = (0, import_react_sdk59.useHMSStore)((0, import_react_sdk59.selectPollByID)(id));
|
24980
|
+
const pollCreatorName = (0, import_react_sdk59.useHMSStore)((0, import_react_sdk59.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
|
24981
|
+
const permissions = (0, import_react_sdk59.useHMSStore)(import_react_sdk59.selectPermissions);
|
25015
24982
|
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
25016
24983
|
const { setPollView } = usePollViewState();
|
25017
24984
|
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
@@ -25109,18 +25076,18 @@ var init_Polls = __esm({
|
|
25109
25076
|
});
|
25110
25077
|
|
25111
25078
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
25112
|
-
var import_react123,
|
25079
|
+
var import_react123, import_react_sdk60, import_react_icons59, SpeakerTag, LogoImg, Logo;
|
25113
25080
|
var init_HeaderComponents = __esm({
|
25114
25081
|
"src/Prebuilt/components/Header/HeaderComponents.jsx"() {
|
25115
25082
|
"use strict";
|
25116
25083
|
init_define_process_env();
|
25117
25084
|
import_react123 = __toESM(require("react"));
|
25118
|
-
|
25085
|
+
import_react_sdk60 = require("@100mslive/react-sdk");
|
25119
25086
|
import_react_icons59 = require("@100mslive/react-icons");
|
25120
25087
|
init_src();
|
25121
25088
|
init_roomLayoutProvider();
|
25122
25089
|
SpeakerTag = () => {
|
25123
|
-
const dominantSpeaker = (0,
|
25090
|
+
const dominantSpeaker = (0, import_react_sdk60.useHMSStore)(import_react_sdk60.selectDominantSpeaker);
|
25124
25091
|
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ import_react123.default.createElement(
|
25125
25092
|
Flex,
|
25126
25093
|
{
|
@@ -25269,17 +25236,17 @@ var init_MwebChatOption = __esm({
|
|
25269
25236
|
});
|
25270
25237
|
|
25271
25238
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
25272
|
-
var import_react128,
|
25239
|
+
var import_react128, import_react_sdk61, useChatBlacklist, useIsPeerBlacklisted;
|
25273
25240
|
var init_useChatBlacklist = __esm({
|
25274
25241
|
"src/Prebuilt/components/hooks/useChatBlacklist.ts"() {
|
25275
25242
|
"use strict";
|
25276
25243
|
init_define_process_env();
|
25277
25244
|
import_react128 = require("react");
|
25278
|
-
|
25245
|
+
import_react_sdk61 = require("@100mslive/react-sdk");
|
25279
25246
|
init_ToastManager();
|
25280
25247
|
useChatBlacklist = (sessionStoreKey) => {
|
25281
|
-
const hmsActions = (0,
|
25282
|
-
const blacklistedIDs = (0,
|
25248
|
+
const hmsActions = (0, import_react_sdk61.useHMSActions)();
|
25249
|
+
const blacklistedIDs = (0, import_react_sdk61.useHMSStore)((0, import_react_sdk61.selectSessionStore)(sessionStoreKey));
|
25283
25250
|
const blacklistItem = (0, import_react128.useCallback)(
|
25284
25251
|
(blacklistID) => __async(void 0, null, function* () {
|
25285
25252
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -25289,35 +25256,35 @@ var init_useChatBlacklist = __esm({
|
|
25289
25256
|
return { blacklistItem, blacklistedIDs };
|
25290
25257
|
};
|
25291
25258
|
useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
25292
|
-
const localPeer = (0,
|
25293
|
-
const blacklistedPeerIDs = (0,
|
25259
|
+
const localPeer = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectLocalPeer);
|
25260
|
+
const blacklistedPeerIDs = (0, import_react_sdk61.useHMSStore)((0, import_react_sdk61.selectSessionStore)("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
25294
25261
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
25295
25262
|
};
|
25296
25263
|
}
|
25297
25264
|
});
|
25298
25265
|
|
25299
25266
|
// src/Prebuilt/components/hooks/usePinnedMessages.ts
|
25300
|
-
var import_react129,
|
25267
|
+
var import_react129, import_react_sdk62, usePinnedMessages;
|
25301
25268
|
var init_usePinnedMessages = __esm({
|
25302
25269
|
"src/Prebuilt/components/hooks/usePinnedMessages.ts"() {
|
25303
25270
|
"use strict";
|
25304
25271
|
init_define_process_env();
|
25305
25272
|
import_react129 = require("react");
|
25306
|
-
|
25273
|
+
import_react_sdk62 = require("@100mslive/react-sdk");
|
25307
25274
|
init_ToastManager();
|
25308
25275
|
usePinnedMessages = () => {
|
25309
|
-
const hmsActions = (0,
|
25310
|
-
const vanillaStore = (0,
|
25276
|
+
const hmsActions = (0, import_react_sdk62.useHMSActions)();
|
25277
|
+
const vanillaStore = (0, import_react_sdk62.useHMSVanillaStore)();
|
25311
25278
|
const setPinnedMessages = (0, import_react129.useCallback)(
|
25312
25279
|
(message, pinnedBy) => __async(void 0, null, function* () {
|
25313
|
-
const peerName = vanillaStore.getState((0,
|
25280
|
+
const peerName = vanillaStore.getState((0, import_react_sdk62.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
|
25314
25281
|
const newPinnedMessage = { text: "", id: message.id, pinnedBy };
|
25315
25282
|
if (message && peerName) {
|
25316
25283
|
newPinnedMessage["text"] = `${peerName}: ${message.message}`;
|
25317
25284
|
} else if (message) {
|
25318
25285
|
newPinnedMessage["text"] = message.message;
|
25319
25286
|
}
|
25320
|
-
const pinnedMessages = vanillaStore.getState((0,
|
25287
|
+
const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
25321
25288
|
if (!(pinnedMessages == null ? void 0 : pinnedMessages.find((pinnedMessage) => pinnedMessage.id === newPinnedMessage.id))) {
|
25322
25289
|
yield hmsActions.sessionStore.set("pinnedMessages" /* PINNED_MESSAGES */, [...pinnedMessages, newPinnedMessage].slice(-3)).catch((err) => ToastManager.addToast({ title: err.description }));
|
25323
25290
|
}
|
@@ -25326,11 +25293,11 @@ var init_usePinnedMessages = __esm({
|
|
25326
25293
|
);
|
25327
25294
|
const removePinnedMessage = (0, import_react129.useCallback)(
|
25328
25295
|
(indexToRemove) => __async(void 0, null, function* () {
|
25329
|
-
const pinnedMessages = vanillaStore.getState((0,
|
25296
|
+
const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
25330
25297
|
if (pinnedMessages[indexToRemove]) {
|
25331
25298
|
yield hmsActions.sessionStore.set(
|
25332
25299
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
25333
|
-
pinnedMessages.filter((
|
25300
|
+
pinnedMessages.filter((_, index) => index !== indexToRemove)
|
25334
25301
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
25335
25302
|
}
|
25336
25303
|
}),
|
@@ -25338,7 +25305,7 @@ var init_usePinnedMessages = __esm({
|
|
25338
25305
|
);
|
25339
25306
|
const unpinBlacklistedMessages = (0, import_react129.useCallback)(
|
25340
25307
|
(blacklistedMessageIDSet) => __async(void 0, null, function* () {
|
25341
|
-
const pinnedMessages = vanillaStore.getState((0,
|
25308
|
+
const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
25342
25309
|
const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
|
25343
25310
|
(pinnedMessage) => !(blacklistedMessageIDSet == null ? void 0 : blacklistedMessageIDSet.has(pinnedMessage.id))
|
25344
25311
|
);
|
@@ -25352,13 +25319,13 @@ var init_usePinnedMessages = __esm({
|
|
25352
25319
|
});
|
25353
25320
|
|
25354
25321
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
25355
|
-
var import_react130,
|
25322
|
+
var import_react130, import_react_sdk63, import_react_icons61, iconStyle, tooltipBoxCSS, ChatActions;
|
25356
25323
|
var init_ChatActions = __esm({
|
25357
25324
|
"src/Prebuilt/components/Chat/ChatActions.tsx"() {
|
25358
25325
|
"use strict";
|
25359
25326
|
init_define_process_env();
|
25360
25327
|
import_react130 = __toESM(require("react"));
|
25361
|
-
|
25328
|
+
import_react_sdk63 = require("@100mslive/react-sdk");
|
25362
25329
|
import_react_icons61 = require("@100mslive/react-icons");
|
25363
25330
|
init_Dropdown2();
|
25364
25331
|
init_IconButton2();
|
@@ -25395,10 +25362,10 @@ var init_ChatActions = __esm({
|
|
25395
25362
|
const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
|
25396
25363
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
25397
25364
|
const [open, setOpen] = (0, import_react130.useState)(false);
|
25398
|
-
const actions = (0,
|
25399
|
-
const canRemoveOthers = (_b7 = (0,
|
25365
|
+
const actions = (0, import_react_sdk63.useHMSActions)();
|
25366
|
+
const canRemoveOthers = (_b7 = (0, import_react_sdk63.useHMSStore)(import_react_sdk63.selectPermissions)) == null ? void 0 : _b7.removeOthers;
|
25400
25367
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
25401
|
-
const localPeerName = (0,
|
25368
|
+
const localPeerName = (0, import_react_sdk63.useHMSStore)(import_react_sdk63.selectLocalPeerName);
|
25402
25369
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
25403
25370
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
25404
25371
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -25637,15 +25604,15 @@ var init_EmptyChat = __esm({
|
|
25637
25604
|
});
|
25638
25605
|
|
25639
25606
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
25640
|
-
var import_react132,
|
25607
|
+
var import_react132, import_react_sdk64, usePinnedBy;
|
25641
25608
|
var init_usePinnedBy = __esm({
|
25642
25609
|
"src/Prebuilt/components/hooks/usePinnedBy.tsx"() {
|
25643
25610
|
"use strict";
|
25644
25611
|
init_define_process_env();
|
25645
25612
|
import_react132 = require("react");
|
25646
|
-
|
25613
|
+
import_react_sdk64 = require("@100mslive/react-sdk");
|
25647
25614
|
usePinnedBy = (messageId) => {
|
25648
|
-
const pinnedMessages = (0,
|
25615
|
+
const pinnedMessages = (0, import_react_sdk64.useHMSStore)((0, import_react_sdk64.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
25649
25616
|
const [pinnedBy, setPinnedBy] = (0, import_react132.useState)("");
|
25650
25617
|
(0, import_react132.useEffect)(() => {
|
25651
25618
|
let match14 = "";
|
@@ -25666,7 +25633,7 @@ function getRowHeight(index) {
|
|
25666
25633
|
var _a8;
|
25667
25634
|
return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
|
25668
25635
|
}
|
25669
|
-
var import_react133, import_react_use17, import_react_virtualized_auto_sizer, import_react_window2,
|
25636
|
+
var import_react133, import_react_use17, import_react_virtualized_auto_sizer, import_react_window2, import_react_sdk65, import_react_icons62, formatTime2, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
|
25670
25637
|
var init_ChatBody = __esm({
|
25671
25638
|
"src/Prebuilt/components/Chat/ChatBody.tsx"() {
|
25672
25639
|
"use strict";
|
@@ -25675,7 +25642,7 @@ var init_ChatBody = __esm({
|
|
25675
25642
|
import_react_use17 = require("react-use");
|
25676
25643
|
import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
|
25677
25644
|
import_react_window2 = require("react-window");
|
25678
|
-
|
25645
|
+
import_react_sdk65 = require("@100mslive/react-sdk");
|
25679
25646
|
import_react_icons62 = require("@100mslive/react-icons");
|
25680
25647
|
init_Layout();
|
25681
25648
|
init_Text2();
|
@@ -25751,8 +25718,8 @@ var init_ChatBody = __esm({
|
|
25751
25718
|
hasCurrentUserSent,
|
25752
25719
|
receiver
|
25753
25720
|
}) => {
|
25754
|
-
const peerName = (0,
|
25755
|
-
const localPeerRoleName = (0,
|
25721
|
+
const peerName = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPeerNameByID)(receiver));
|
25722
|
+
const localPeerRoleName = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerRoleName);
|
25756
25723
|
if (receiver) {
|
25757
25724
|
return /* @__PURE__ */ import_react133.default.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
25758
25725
|
}
|
@@ -25800,7 +25767,7 @@ var init_ChatBody = __esm({
|
|
25800
25767
|
const isMobile = (0, import_react_use17.useMedia)(config.media.md);
|
25801
25768
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
25802
25769
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
25803
|
-
const localPeerId = (0,
|
25770
|
+
const localPeerId = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerID);
|
25804
25771
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
25805
25772
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
25806
25773
|
const messageType = getMessageType({
|
@@ -25964,7 +25931,7 @@ var init_ChatBody = __esm({
|
|
25964
25931
|
}
|
25965
25932
|
);
|
25966
25933
|
VirtualizedChatMessages = import_react133.default.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
25967
|
-
const hmsActions = (0,
|
25934
|
+
const hmsActions = (0, import_react_sdk65.useHMSActions)();
|
25968
25935
|
const itemKey2 = (0, import_react133.useCallback)((index, data3) => {
|
25969
25936
|
return data3[index].id;
|
25970
25937
|
}, []);
|
@@ -26019,14 +25986,13 @@ var init_ChatBody = __esm({
|
|
26019
25986
|
});
|
26020
25987
|
ChatBody = import_react133.default.forwardRef(
|
26021
25988
|
({ scrollToBottom }, listRef) => {
|
26022
|
-
const messages = (0,
|
26023
|
-
const blacklistedMessageIDs = (0,
|
25989
|
+
const messages = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectHMSMessages);
|
25990
|
+
const blacklistedMessageIDs = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectSessionStore)("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
26024
25991
|
const filteredMessages = (0, import_react133.useMemo)(() => {
|
26025
25992
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
26026
25993
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
26027
25994
|
}, [blacklistedMessageIDs, messages]);
|
26028
|
-
const vanillaStore = (0,
|
26029
|
-
const rerenderOnFirstMount = (0, import_react133.useRef)(false);
|
25995
|
+
const vanillaStore = (0, import_react_sdk65.useHMSVanillaStore)();
|
26030
25996
|
(0, import_react133.useEffect)(() => {
|
26031
25997
|
const unsubscribe = vanillaStore.subscribe(() => {
|
26032
25998
|
if (!listRef.current) {
|
@@ -26036,15 +26002,9 @@ var init_ChatBody = __esm({
|
|
26036
26002
|
if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
|
26037
26003
|
requestAnimationFrame(() => scrollToBottom(1));
|
26038
26004
|
}
|
26039
|
-
},
|
26005
|
+
}, import_react_sdk65.selectUnreadHMSMessagesCount);
|
26040
26006
|
return unsubscribe;
|
26041
26007
|
}, [vanillaStore, listRef, scrollToBottom]);
|
26042
|
-
(0, import_react133.useEffect)(() => {
|
26043
|
-
if (filteredMessages.length > 0 && (listRef == null ? void 0 : listRef.current) && !rerenderOnFirstMount.current) {
|
26044
|
-
rerenderOnFirstMount.current = true;
|
26045
|
-
listRef.current.resetAfterIndex(0);
|
26046
|
-
}
|
26047
|
-
}, [listRef, filteredMessages]);
|
26048
26008
|
return filteredMessages.length === 0 ? /* @__PURE__ */ import_react133.default.createElement(EmptyChat, null) : /* @__PURE__ */ import_react133.default.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
|
26049
26009
|
}
|
26050
26010
|
);
|
@@ -26054,7 +26014,7 @@ var init_ChatBody = __esm({
|
|
26054
26014
|
rowRef
|
26055
26015
|
}) => {
|
26056
26016
|
const pinnedBy = usePinnedBy(messageId);
|
26057
|
-
const localPeerName = (0,
|
26017
|
+
const localPeerName = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerName);
|
26058
26018
|
(0, import_react133.useLayoutEffect)(() => {
|
26059
26019
|
if (rowRef == null ? void 0 : rowRef.current) {
|
26060
26020
|
if (pinnedBy) {
|
@@ -26074,14 +26034,14 @@ var init_ChatBody = __esm({
|
|
26074
26034
|
});
|
26075
26035
|
|
26076
26036
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
26077
|
-
var import_react134, import_react_use18,
|
26037
|
+
var import_react134, import_react_use18, import_react_sdk66, import_react_icons63, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
|
26078
26038
|
var init_ChatSelector = __esm({
|
26079
26039
|
"src/Prebuilt/components/Chat/ChatSelector.tsx"() {
|
26080
26040
|
"use strict";
|
26081
26041
|
init_define_process_env();
|
26082
26042
|
import_react134 = __toESM(require("react"));
|
26083
26043
|
import_react_use18 = require("react-use");
|
26084
|
-
|
26044
|
+
import_react_sdk66 = require("@100mslive/react-sdk");
|
26085
26045
|
import_react_icons63 = require("@100mslive/react-icons");
|
26086
26046
|
init_src();
|
26087
26047
|
init_Theme();
|
@@ -26137,7 +26097,7 @@ var init_ChatSelector = __esm({
|
|
26137
26097
|
}
|
26138
26098
|
);
|
26139
26099
|
Everyone = import_react134.default.memo(({ active }) => {
|
26140
|
-
const unreadCount = (0,
|
26100
|
+
const unreadCount = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectUnreadHMSMessagesCount);
|
26141
26101
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
26142
26102
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
26143
26103
|
return /* @__PURE__ */ import_react134.default.createElement(
|
@@ -26155,7 +26115,7 @@ var init_ChatSelector = __esm({
|
|
26155
26115
|
);
|
26156
26116
|
});
|
26157
26117
|
RoleItem = import_react134.default.memo(({ role, active }) => {
|
26158
|
-
const unreadCount = (0,
|
26118
|
+
const unreadCount = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectMessagesUnreadCountByRole)(role));
|
26159
26119
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
26160
26120
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
26161
26121
|
return /* @__PURE__ */ import_react134.default.createElement(
|
@@ -26172,7 +26132,7 @@ var init_ChatSelector = __esm({
|
|
26172
26132
|
);
|
26173
26133
|
});
|
26174
26134
|
PeerItem = ({ peerId, name, active }) => {
|
26175
|
-
const unreadCount = (0,
|
26135
|
+
const unreadCount = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectMessagesUnreadCountByPeerID)(peerId));
|
26176
26136
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
26177
26137
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
26178
26138
|
return /* @__PURE__ */ import_react134.default.createElement(
|
@@ -26231,7 +26191,7 @@ var init_ChatSelector = __esm({
|
|
26231
26191
|
ChatSelector = ({ role, peerId }) => {
|
26232
26192
|
var _a8, _b7;
|
26233
26193
|
const { elements } = useRoomLayoutConferencingScreen();
|
26234
|
-
const peers = (0,
|
26194
|
+
const peers = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectRemotePeers);
|
26235
26195
|
const [search, setSearch] = (0, import_react134.useState)("");
|
26236
26196
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
26237
26197
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
@@ -26389,17 +26349,17 @@ var init_ChatSelectorContainer = __esm({
|
|
26389
26349
|
});
|
26390
26350
|
|
26391
26351
|
// src/Prebuilt/components/AppData/useChatState.js
|
26392
|
-
var import_react136,
|
26352
|
+
var import_react136, import_react_sdk67, useChatDraftMessage;
|
26393
26353
|
var init_useChatState = __esm({
|
26394
26354
|
"src/Prebuilt/components/AppData/useChatState.js"() {
|
26395
26355
|
"use strict";
|
26396
26356
|
init_define_process_env();
|
26397
26357
|
import_react136 = require("react");
|
26398
|
-
|
26358
|
+
import_react_sdk67 = require("@100mslive/react-sdk");
|
26399
26359
|
init_constants();
|
26400
26360
|
useChatDraftMessage = () => {
|
26401
|
-
const hmsActions = (0,
|
26402
|
-
let chatDraftMessage = (0,
|
26361
|
+
const hmsActions = (0, import_react_sdk67.useHMSActions)();
|
26362
|
+
let chatDraftMessage = (0, import_react_sdk67.useHMSStore)((0, import_react_sdk67.selectAppData)(APP_DATA.chatDraft));
|
26403
26363
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
26404
26364
|
chatDraftMessage = "";
|
26405
26365
|
}
|
@@ -26481,7 +26441,7 @@ function EmojiPicker({ onSelect }) {
|
|
26481
26441
|
)
|
26482
26442
|
)));
|
26483
26443
|
}
|
26484
|
-
var import_react138, import_react_use20, import_data, import_react139,
|
26444
|
+
var import_react138, import_react_use20, import_data, import_react139, import_react_sdk68, import_react_icons65, TextArea2, ChatFooter;
|
26485
26445
|
var init_ChatFooter = __esm({
|
26486
26446
|
"src/Prebuilt/components/Chat/ChatFooter.tsx"() {
|
26487
26447
|
"use strict";
|
@@ -26490,7 +26450,7 @@ var init_ChatFooter = __esm({
|
|
26490
26450
|
import_react_use20 = require("react-use");
|
26491
26451
|
import_data = __toESM(require("@emoji-mart/data"));
|
26492
26452
|
import_react139 = __toESM(require("@emoji-mart/react"));
|
26493
|
-
|
26453
|
+
import_react_sdk68 = require("@100mslive/react-sdk");
|
26494
26454
|
import_react_icons65 = require("@100mslive/react-icons");
|
26495
26455
|
init_src();
|
26496
26456
|
init_IconButton2();
|
@@ -26524,13 +26484,13 @@ var init_ChatFooter = __esm({
|
|
26524
26484
|
});
|
26525
26485
|
ChatFooter = ({ onSend, children }) => {
|
26526
26486
|
var _a8, _b7, _c, _d;
|
26527
|
-
const hmsActions = (0,
|
26487
|
+
const hmsActions = (0, import_react_sdk68.useHMSActions)();
|
26528
26488
|
const inputRef = (0, import_react138.useRef)(null);
|
26529
26489
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
26530
26490
|
const isMobile = (0, import_react_use20.useMedia)(config.media.md);
|
26531
26491
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
26532
26492
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
26533
|
-
const localPeer = (0,
|
26493
|
+
const localPeer = (0, import_react_sdk68.useHMSStore)(import_react_sdk68.selectLocalPeer);
|
26534
26494
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
26535
26495
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
26536
26496
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -26538,6 +26498,8 @@ var init_ChatFooter = __esm({
|
|
26538
26498
|
const defaultSelection = useDefaultChatSelection();
|
26539
26499
|
const selection = selectedPeer.name || selectedRole || defaultSelection;
|
26540
26500
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
26501
|
+
const { toggleAudio, toggleVideo } = (0, import_react_sdk68.useAVToggle)();
|
26502
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
26541
26503
|
const isMwebHLSStream = useMobileHLSStream();
|
26542
26504
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
26543
26505
|
(0, import_react138.useEffect)(() => {
|
@@ -26703,7 +26665,7 @@ var init_ChatFooter = __esm({
|
|
26703
26665
|
},
|
26704
26666
|
gap: "2"
|
26705
26667
|
},
|
26706
|
-
/* @__PURE__ */ import_react138.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
|
26668
|
+
noAVPermissions ? /* @__PURE__ */ import_react138.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
|
26707
26669
|
/* @__PURE__ */ import_react138.default.createElement(MoreSettings, { elements, screenType })
|
26708
26670
|
))));
|
26709
26671
|
};
|
@@ -26711,13 +26673,13 @@ var init_ChatFooter = __esm({
|
|
26711
26673
|
});
|
26712
26674
|
|
26713
26675
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
26714
|
-
var import_react140,
|
26676
|
+
var import_react140, import_react_sdk69, ChatPaused, ChatBlocked;
|
26715
26677
|
var init_ChatStates = __esm({
|
26716
26678
|
"src/Prebuilt/components/Chat/ChatStates.tsx"() {
|
26717
26679
|
"use strict";
|
26718
26680
|
init_define_process_env();
|
26719
26681
|
import_react140 = __toESM(require("react"));
|
26720
|
-
|
26682
|
+
import_react_sdk69 = require("@100mslive/react-sdk");
|
26721
26683
|
init_Button2();
|
26722
26684
|
init_Layout();
|
26723
26685
|
init_Text2();
|
@@ -26725,11 +26687,11 @@ var init_ChatStates = __esm({
|
|
26725
26687
|
init_useChatBlacklist();
|
26726
26688
|
ChatPaused = () => {
|
26727
26689
|
var _a8, _b7;
|
26728
|
-
const hmsActions = (0,
|
26690
|
+
const hmsActions = (0, import_react_sdk69.useHMSActions)();
|
26729
26691
|
const { elements } = useRoomLayoutConferencingScreen();
|
26730
26692
|
const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
26731
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0,
|
26732
|
-
const localPeer = (0,
|
26693
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk69.useHMSStore)((0, import_react_sdk69.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
26694
|
+
const localPeer = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectLocalPeer);
|
26733
26695
|
const unPauseChat = (0, import_react140.useCallback)(
|
26734
26696
|
() => __async(void 0, null, function* () {
|
26735
26697
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
@@ -26827,7 +26789,7 @@ var init_StickIndicator = __esm({
|
|
26827
26789
|
if (total < 2) {
|
26828
26790
|
return null;
|
26829
26791
|
}
|
26830
|
-
return /* @__PURE__ */ import_react142.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
26792
|
+
return /* @__PURE__ */ import_react142.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ import_react142.default.createElement(
|
26831
26793
|
Box,
|
26832
26794
|
{
|
26833
26795
|
css: {
|
@@ -26842,7 +26804,7 @@ var init_StickIndicator = __esm({
|
|
26842
26804
|
});
|
26843
26805
|
|
26844
26806
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
26845
|
-
var import_react143, import_react_swipeable, import_react_use21,
|
26807
|
+
var import_react143, import_react_swipeable, import_react_use21, import_react_sdk70, import_react_icons67, PINNED_MESSAGE_LENGTH, PinnedMessage;
|
26846
26808
|
var init_PinnedMessage = __esm({
|
26847
26809
|
"src/Prebuilt/components/Chat/PinnedMessage.tsx"() {
|
26848
26810
|
"use strict";
|
@@ -26850,7 +26812,7 @@ var init_PinnedMessage = __esm({
|
|
26850
26812
|
import_react143 = __toESM(require("react"));
|
26851
26813
|
import_react_swipeable = require("react-swipeable");
|
26852
26814
|
import_react_use21 = require("react-use");
|
26853
|
-
|
26815
|
+
import_react_sdk70 = require("@100mslive/react-sdk");
|
26854
26816
|
import_react_icons67 = require("@100mslive/react-icons");
|
26855
26817
|
init_Layout();
|
26856
26818
|
init_Text2();
|
@@ -26863,7 +26825,7 @@ var init_PinnedMessage = __esm({
|
|
26863
26825
|
PINNED_MESSAGE_LENGTH = 75;
|
26864
26826
|
PinnedMessage = () => {
|
26865
26827
|
var _a8, _b7, _c, _d;
|
26866
|
-
const pinnedMessages = (0,
|
26828
|
+
const pinnedMessages = (0, import_react_sdk70.useHMSStore)((0, import_react_sdk70.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
26867
26829
|
const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react143.useState)(0);
|
26868
26830
|
const { removePinnedMessage } = usePinnedMessages();
|
26869
26831
|
const isMobile = (0, import_react_use21.useMedia)(config.media.md);
|
@@ -26978,7 +26940,7 @@ var init_PinnedMessage = __esm({
|
|
26978
26940
|
});
|
26979
26941
|
|
26980
26942
|
// src/Prebuilt/components/Chat/Chat.tsx
|
26981
|
-
var import_react144, import_react_use22, import_ts_pattern8,
|
26943
|
+
var import_react144, import_react_use22, import_ts_pattern8, import_react_sdk71, import_react_icons68, Chat, NewMessageIndicator;
|
26982
26944
|
var init_Chat = __esm({
|
26983
26945
|
"src/Prebuilt/components/Chat/Chat.tsx"() {
|
26984
26946
|
"use strict";
|
@@ -26987,7 +26949,7 @@ var init_Chat = __esm({
|
|
26987
26949
|
import_react_use22 = require("react-use");
|
26988
26950
|
init_dist();
|
26989
26951
|
import_ts_pattern8 = require("ts-pattern");
|
26990
|
-
|
26952
|
+
import_react_sdk71 = require("@100mslive/react-sdk");
|
26991
26953
|
import_react_icons68 = require("@100mslive/react-icons");
|
26992
26954
|
init_Button2();
|
26993
26955
|
init_Layout();
|
@@ -27003,9 +26965,9 @@ var init_Chat = __esm({
|
|
27003
26965
|
var _a8, _b7;
|
27004
26966
|
const { elements } = useRoomLayoutConferencingScreen();
|
27005
26967
|
const listRef = (0, import_react144.useRef)(null);
|
27006
|
-
const hmsActions = (0,
|
27007
|
-
const vanillaStore = (0,
|
27008
|
-
const { enabled: isChatEnabled = true } = (0,
|
26968
|
+
const hmsActions = (0, import_react_sdk71.useHMSActions)();
|
26969
|
+
const vanillaStore = (0, import_react_sdk71.useHMSVanillaStore)();
|
26970
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk71.useHMSStore)(im("chatState" /* CHAT_STATE */)) || {};
|
27009
26971
|
const isMobile = (0, import_react_use22.useMedia)(config.media.md);
|
27010
26972
|
const isMobileHLSStream = useMobileHLSStream();
|
27011
26973
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27013,7 +26975,7 @@ var init_Chat = __esm({
|
|
27013
26975
|
(unreadCount = 0) => {
|
27014
26976
|
var _a9;
|
27015
26977
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
27016
|
-
const messagesCount = vanillaStore.getState(
|
26978
|
+
const messagesCount = vanillaStore.getState(import_react_sdk71.selectHMSMessagesCount);
|
27017
26979
|
(_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
|
27018
26980
|
requestAnimationFrame(() => {
|
27019
26981
|
var _a10;
|
@@ -27089,7 +27051,7 @@ var init_Chat = __esm({
|
|
27089
27051
|
scrollToBottom,
|
27090
27052
|
listRef
|
27091
27053
|
}) => {
|
27092
|
-
const unreadCount = (0,
|
27054
|
+
const unreadCount = (0, import_react_sdk71.useHMSStore)(Wn);
|
27093
27055
|
if (!unreadCount || !listRef.current) {
|
27094
27056
|
return null;
|
27095
27057
|
}
|
@@ -27136,7 +27098,7 @@ var init_Chat = __esm({
|
|
27136
27098
|
});
|
27137
27099
|
|
27138
27100
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
27139
|
-
var import_react145, import_react_intersection_observer, import_react_use23, import_react_window3,
|
27101
|
+
var import_react145, import_react_intersection_observer, import_react_use23, import_react_window3, import_react_sdk72, import_react_icons69, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
|
27140
27102
|
var init_PaginatedParticipants = __esm({
|
27141
27103
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx"() {
|
27142
27104
|
"use strict";
|
@@ -27145,7 +27107,7 @@ var init_PaginatedParticipants = __esm({
|
|
27145
27107
|
import_react_intersection_observer = require("react-intersection-observer");
|
27146
27108
|
import_react_use23 = require("react-use");
|
27147
27109
|
import_react_window3 = require("react-window");
|
27148
|
-
|
27110
|
+
import_react_sdk72 = require("@100mslive/react-sdk");
|
27149
27111
|
import_react_icons69 = require("@100mslive/react-icons");
|
27150
27112
|
init_IconButton2();
|
27151
27113
|
init_Layout();
|
@@ -27191,13 +27153,13 @@ var init_PaginatedParticipants = __esm({
|
|
27191
27153
|
}
|
27192
27154
|
);
|
27193
27155
|
PaginatedParticipants = ({ roleName, onBack }) => {
|
27194
|
-
const { peers, total, hasNext, loadPeers, loadMorePeers } = (0,
|
27156
|
+
const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk72.usePaginatedParticipants)({ role: roleName, limit: 20 });
|
27195
27157
|
const [search, setSearch] = (0, import_react145.useState)("");
|
27196
27158
|
const filteredPeers = peers.filter((p) => {
|
27197
27159
|
var _a8;
|
27198
27160
|
return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
27199
27161
|
});
|
27200
|
-
const isConnected = (0,
|
27162
|
+
const isConnected = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectIsConnectedToRoom);
|
27201
27163
|
const [ref, { width }] = (0, import_react_use23.useMeasure)();
|
27202
27164
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
27203
27165
|
const resetSidePane = useSidepaneReset();
|
@@ -27231,13 +27193,13 @@ var init_PaginatedParticipants = __esm({
|
|
27231
27193
|
});
|
27232
27194
|
|
27233
27195
|
// src/Prebuilt/components/ChatSettings.tsx
|
27234
|
-
var import_react146,
|
27196
|
+
var import_react146, import_react_sdk73, import_react_icons70, ChatSettings;
|
27235
27197
|
var init_ChatSettings = __esm({
|
27236
27198
|
"src/Prebuilt/components/ChatSettings.tsx"() {
|
27237
27199
|
"use strict";
|
27238
27200
|
init_define_process_env();
|
27239
27201
|
import_react146 = __toESM(require("react"));
|
27240
|
-
|
27202
|
+
import_react_sdk73 = require("@100mslive/react-sdk");
|
27241
27203
|
import_react_icons70 = require("@100mslive/react-icons");
|
27242
27204
|
init_Layout();
|
27243
27205
|
init_Popover();
|
@@ -27245,11 +27207,11 @@ var init_ChatSettings = __esm({
|
|
27245
27207
|
init_useRoomLayoutScreen();
|
27246
27208
|
ChatSettings = () => {
|
27247
27209
|
var _a8, _b7;
|
27248
|
-
const hmsActions = (0,
|
27249
|
-
const localPeer = (0,
|
27210
|
+
const hmsActions = (0, import_react_sdk73.useHMSActions)();
|
27211
|
+
const localPeer = (0, import_react_sdk73.useHMSStore)(import_react_sdk73.selectLocalPeer);
|
27250
27212
|
const { elements } = useRoomLayoutConferencingScreen();
|
27251
27213
|
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
27252
|
-
const { enabled: isChatEnabled = true } = (0,
|
27214
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
27253
27215
|
const showPause = canPauseChat && isChatEnabled;
|
27254
27216
|
if (!showPause) {
|
27255
27217
|
return null;
|
@@ -27298,7 +27260,7 @@ var init_ChatSettings = __esm({
|
|
27298
27260
|
});
|
27299
27261
|
|
27300
27262
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
27301
|
-
var import_react147, import_react_use24, import_ts_pattern9,
|
27263
|
+
var import_react147, import_react_use24, import_ts_pattern9, import_react_sdk74, import_react_icons71, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
|
27302
27264
|
var init_SidePaneTabs = __esm({
|
27303
27265
|
"src/Prebuilt/components/SidePaneTabs.tsx"() {
|
27304
27266
|
"use strict";
|
@@ -27306,7 +27268,7 @@ var init_SidePaneTabs = __esm({
|
|
27306
27268
|
import_react147 = __toESM(require("react"));
|
27307
27269
|
import_react_use24 = require("react-use");
|
27308
27270
|
import_ts_pattern9 = require("ts-pattern");
|
27309
|
-
|
27271
|
+
import_react_sdk74 = require("@100mslive/react-sdk");
|
27310
27272
|
import_react_icons71 = require("@100mslive/react-icons");
|
27311
27273
|
init_Chat();
|
27312
27274
|
init_PaginatedParticipants();
|
@@ -27339,7 +27301,7 @@ var init_SidePaneTabs = __esm({
|
|
27339
27301
|
const resetSidePane = useSidepaneReset();
|
27340
27302
|
const [activeTab, setActiveTab] = (0, import_react147.useState)(active);
|
27341
27303
|
const [activeRole, setActiveRole] = (0, import_react147.useState)("");
|
27342
|
-
const peerCount = (0,
|
27304
|
+
const peerCount = (0, import_react_sdk74.useHMSStore)(import_react_sdk74.selectPeerCount);
|
27343
27305
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27344
27306
|
const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
|
27345
27307
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
@@ -27459,13 +27421,13 @@ var init_SidePaneTabs = __esm({
|
|
27459
27421
|
});
|
27460
27422
|
|
27461
27423
|
// src/Prebuilt/components/Connection/TileConnection.tsx
|
27462
|
-
var import_react148,
|
27424
|
+
var import_react148, import_react_sdk75, import_react_icons72, TileConnection, IconWrapper, Wrapper2, TileConnection_default;
|
27463
27425
|
var init_TileConnection = __esm({
|
27464
27426
|
"src/Prebuilt/components/Connection/TileConnection.tsx"() {
|
27465
27427
|
"use strict";
|
27466
27428
|
init_define_process_env();
|
27467
27429
|
import_react148 = __toESM(require("react"));
|
27468
|
-
|
27430
|
+
import_react_sdk75 = require("@100mslive/react-sdk");
|
27469
27431
|
import_react_icons72 = require("@100mslive/react-icons");
|
27470
27432
|
init_src();
|
27471
27433
|
init_ConnectionIndicator();
|
@@ -27476,8 +27438,8 @@ var init_TileConnection = __esm({
|
|
27476
27438
|
width,
|
27477
27439
|
pinned
|
27478
27440
|
}) => {
|
27479
|
-
const spotlighted = (0,
|
27480
|
-
const isPeerScreenSharing = !!(0,
|
27441
|
+
const spotlighted = (0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectSessionStore)("spotlight" /* SPOTLIGHT */)) === peerId;
|
27442
|
+
const isPeerScreenSharing = !!(0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectScreenShareByPeerID)(peerId));
|
27481
27443
|
return /* @__PURE__ */ import_react148.default.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ import_react148.default.createElement(import_react148.default.Fragment, null, name ? /* @__PURE__ */ import_react148.default.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.ShareScreenIcon, { width: "15", height: "15" })), pinned && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.PinIcon, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ import_react148.default.createElement(
|
27482
27444
|
Text,
|
27483
27445
|
{
|
@@ -27523,14 +27485,14 @@ var init_utils5 = __esm({
|
|
27523
27485
|
});
|
27524
27486
|
|
27525
27487
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
27526
|
-
var import_react149, import_react_use25,
|
27488
|
+
var import_react149, import_react_use25, import_react_sdk76, import_react_icons73, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
|
27527
27489
|
var init_TileMenuContent = __esm({
|
27528
27490
|
"src/Prebuilt/components/TileMenu/TileMenuContent.tsx"() {
|
27529
27491
|
"use strict";
|
27530
27492
|
init_define_process_env();
|
27531
27493
|
import_react149 = __toESM(require("react"));
|
27532
27494
|
import_react_use25 = require("react-use");
|
27533
|
-
|
27495
|
+
import_react_sdk76 = require("@100mslive/react-sdk");
|
27534
27496
|
import_react_icons73 = require("@100mslive/react-icons");
|
27535
27497
|
init_Layout();
|
27536
27498
|
init_Slider2();
|
@@ -27555,8 +27517,8 @@ var init_TileMenuContent = __esm({
|
|
27555
27517
|
return;
|
27556
27518
|
}
|
27557
27519
|
}) => {
|
27558
|
-
const hmsActions = (0,
|
27559
|
-
const spotlightPeerId = (0,
|
27520
|
+
const hmsActions = (0, import_react_sdk76.useHMSActions)();
|
27521
|
+
const spotlightPeerId = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("spotlight" /* SPOTLIGHT */));
|
27560
27522
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
27561
27523
|
const dragClassName = getDragClassName();
|
27562
27524
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -27604,8 +27566,8 @@ var init_TileMenuContent = __esm({
|
|
27604
27566
|
};
|
27605
27567
|
SimulcastLayers = ({ trackId }) => {
|
27606
27568
|
var _a8;
|
27607
|
-
const track = (0,
|
27608
|
-
const actions = (0,
|
27569
|
+
const track = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectTrackByID)(trackId));
|
27570
|
+
const actions = (0, import_react_sdk76.useHMSActions)();
|
27609
27571
|
const bg = useDropdownSelection();
|
27610
27572
|
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
27611
27573
|
return null;
|
@@ -27688,15 +27650,15 @@ var init_TileMenuContent = __esm({
|
|
27688
27650
|
}
|
27689
27651
|
}) => {
|
27690
27652
|
var _a8;
|
27691
|
-
const actions = (0,
|
27653
|
+
const actions = (0, import_react_sdk76.useHMSActions)();
|
27692
27654
|
const dragClassName = getDragClassName();
|
27693
|
-
const removeOthers = (_a8 = (0,
|
27655
|
+
const removeOthers = (_a8 = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPermissions)) == null ? void 0 : _a8.removeOthers;
|
27694
27656
|
const { userName } = useHMSPrebuiltContext();
|
27695
|
-
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = (0,
|
27657
|
+
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = (0, import_react_sdk76.useRemoteAVToggle)(
|
27696
27658
|
audioTrackID,
|
27697
27659
|
videoTrackID
|
27698
27660
|
);
|
27699
|
-
const { sendEvent } = (0,
|
27661
|
+
const { sendEvent } = (0, import_react_sdk76.useCustomEvent)({
|
27700
27662
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
27701
27663
|
});
|
27702
27664
|
const isMobile = (0, import_react_use25.useMedia)(config.media.md);
|
@@ -27780,14 +27742,14 @@ var init_TileMenuContent = __esm({
|
|
27780
27742
|
});
|
27781
27743
|
|
27782
27744
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
27783
|
-
var import_react150, import_react_use26,
|
27745
|
+
var import_react150, import_react_use26, import_react_sdk77, import_react_icons74, TileMenu, TileMenu_default;
|
27784
27746
|
var init_TileMenu2 = __esm({
|
27785
27747
|
"src/Prebuilt/components/TileMenu/TileMenu.tsx"() {
|
27786
27748
|
"use strict";
|
27787
27749
|
init_define_process_env();
|
27788
27750
|
import_react150 = __toESM(require("react"));
|
27789
27751
|
import_react_use26 = require("react-use");
|
27790
|
-
|
27752
|
+
import_react_sdk77 = require("@100mslive/react-sdk");
|
27791
27753
|
import_react_icons74 = require("@100mslive/react-icons");
|
27792
27754
|
init_Layout();
|
27793
27755
|
init_Sheet2();
|
@@ -27810,17 +27772,17 @@ var init_TileMenu2 = __esm({
|
|
27810
27772
|
var _a8, _b7;
|
27811
27773
|
const [open, setOpen] = (0, import_react150.useState)(false);
|
27812
27774
|
const { theme: theme2 } = useTheme();
|
27813
|
-
const localPeerID = (0,
|
27775
|
+
const localPeerID = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectLocalPeerID);
|
27814
27776
|
const isLocal = localPeerID === peerID;
|
27815
|
-
const { removeOthers } = (0,
|
27816
|
-
const { setVolume, toggleAudio, toggleVideo } = (0,
|
27777
|
+
const { removeOthers } = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPermissions) || {};
|
27778
|
+
const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk77.useRemoteAVToggle)(audioTrackID, videoTrackID);
|
27817
27779
|
const showSpotlight = enableSpotlightingPeer;
|
27818
|
-
const isPrimaryVideoTrack = ((_a8 = (0,
|
27780
|
+
const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
27819
27781
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
27820
|
-
const track = (0,
|
27782
|
+
const track = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectTrackByID)(videoTrackID));
|
27821
27783
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
27822
27784
|
const isMobile = (0, import_react_use26.useMedia)(config.media.md);
|
27823
|
-
const peer = (0,
|
27785
|
+
const peer = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectPeerByID)(peerID));
|
27824
27786
|
const [showNameChangeModal, setShowNameChangeModal] = (0, import_react150.useState)(false);
|
27825
27787
|
useDropdownList({ open, name: "TileMenu" });
|
27826
27788
|
const dragClassName = getDragClassName();
|
@@ -27904,14 +27866,14 @@ var init_peerTileUtils = __esm({
|
|
27904
27866
|
});
|
27905
27867
|
|
27906
27868
|
// src/Prebuilt/components/VideoTile.tsx
|
27907
|
-
var import_react151, import_react_use27,
|
27869
|
+
var import_react151, import_react_use27, import_react_sdk78, import_react_icons75, PeerMetadata, Tile, VideoTile, VideoTile_default;
|
27908
27870
|
var init_VideoTile2 = __esm({
|
27909
27871
|
"src/Prebuilt/components/VideoTile.tsx"() {
|
27910
27872
|
"use strict";
|
27911
27873
|
init_define_process_env();
|
27912
27874
|
import_react151 = __toESM(require("react"));
|
27913
27875
|
import_react_use27 = require("react-use");
|
27914
|
-
|
27876
|
+
import_react_sdk78 = require("@100mslive/react-sdk");
|
27915
27877
|
import_react_icons75 = require("@100mslive/react-icons");
|
27916
27878
|
init_TileConnection();
|
27917
27879
|
init_TileMenu2();
|
@@ -27925,9 +27887,9 @@ var init_VideoTile2 = __esm({
|
|
27925
27887
|
init_utils2();
|
27926
27888
|
init_constants();
|
27927
27889
|
PeerMetadata = ({ peerId, size }) => {
|
27928
|
-
const metaData = (0,
|
27890
|
+
const metaData = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectPeerMetadata)(peerId));
|
27929
27891
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
27930
|
-
const isHandRaised = (0,
|
27892
|
+
const isHandRaised = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectHasPeerHandRaised)(peerId));
|
27931
27893
|
return /* @__PURE__ */ import_react151.default.createElement(import_react151.default.Fragment, null, isHandRaised ? /* @__PURE__ */ import_react151.default.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ import_react151.default.createElement(import_react_icons75.HandIcon, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ import_react151.default.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ import_react151.default.createElement(import_react_icons75.BrbTileIcon, { width: 22, height: 22 })) : null);
|
27932
27894
|
};
|
27933
27895
|
Tile = ({
|
@@ -27946,15 +27908,15 @@ var init_VideoTile2 = __esm({
|
|
27946
27908
|
hideAudioMuteOnTile = false,
|
27947
27909
|
hideMetadataOnTile = false
|
27948
27910
|
}) => {
|
27949
|
-
const trackSelector = trackId ? (0,
|
27950
|
-
const track = (0,
|
27951
|
-
const peerName = (0,
|
27952
|
-
const audioTrack = (0,
|
27953
|
-
const localPeerID = (0,
|
27911
|
+
const trackSelector = trackId ? (0, import_react_sdk78.selectVideoTrackByID)(trackId) : (0, import_react_sdk78.selectVideoTrackByPeerID)(peerId);
|
27912
|
+
const track = (0, import_react_sdk78.useHMSStore)(trackSelector);
|
27913
|
+
const peerName = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectPeerNameByID)(peerId));
|
27914
|
+
const audioTrack = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAudioTrackByPeerID)(peerId));
|
27915
|
+
const localPeerID = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectLocalPeerID);
|
27954
27916
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
27955
27917
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
27956
27918
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
27957
|
-
const isAudioMuted = !(0,
|
27919
|
+
const isAudioMuted = !(0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectIsPeerAudioEnabled)(peerId));
|
27958
27920
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
27959
27921
|
const [isMouseHovered, setIsMouseHovered] = (0, import_react151.useState)(false);
|
27960
27922
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
@@ -28247,7 +28209,7 @@ var init_constants4 = __esm({
|
|
28247
28209
|
});
|
28248
28210
|
|
28249
28211
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
28250
|
-
var import_react154, import_hms_virtual_background3,
|
28212
|
+
var import_react154, import_hms_virtual_background3, import_react_sdk79, import_react_icons76, iconDims, VBPicker;
|
28251
28213
|
var init_VBPicker = __esm({
|
28252
28214
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx"() {
|
28253
28215
|
"use strict";
|
@@ -28255,7 +28217,7 @@ var init_VBPicker = __esm({
|
|
28255
28217
|
import_react154 = __toESM(require("react"));
|
28256
28218
|
init_dist();
|
28257
28219
|
import_hms_virtual_background3 = require("@100mslive/hms-virtual-background");
|
28258
|
-
|
28220
|
+
import_react_sdk79 = require("@100mslive/react-sdk");
|
28259
28221
|
import_react_icons76 = require("@100mslive/react-icons");
|
28260
28222
|
init_src();
|
28261
28223
|
init_Text2();
|
@@ -28269,22 +28231,22 @@ var init_VBPicker = __esm({
|
|
28269
28231
|
VBPicker = ({ backgroundMedia = [] }) => {
|
28270
28232
|
var _a8;
|
28271
28233
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28272
|
-
const hmsActions = (0,
|
28273
|
-
const localPeer = (0,
|
28274
|
-
const role = (0,
|
28275
|
-
const isVideoOn = (0,
|
28234
|
+
const hmsActions = (0, import_react_sdk79.useHMSActions)();
|
28235
|
+
const localPeer = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectLocalPeer);
|
28236
|
+
const role = (0, import_react_sdk79.useHMSStore)(Kt);
|
28237
|
+
const isVideoOn = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectIsLocalVideoEnabled);
|
28276
28238
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
28277
|
-
const trackSelector = (0,
|
28278
|
-
const track = (0,
|
28239
|
+
const trackSelector = (0, import_react_sdk79.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
|
28240
|
+
const track = (0, import_react_sdk79.useHMSStore)(trackSelector);
|
28279
28241
|
const [blurAmount, setBlurAmount] = (0, import_react154.useState)(VBHandler.getBlurAmount() || 0.5);
|
28280
|
-
const roomState = (0,
|
28281
|
-
const isLargeRoom = (0,
|
28282
|
-
const isEffectsEnabled = (0,
|
28283
|
-
const effectsKey = (0,
|
28284
|
-
const isPluginAdded = (0,
|
28285
|
-
const background = (0,
|
28242
|
+
const roomState = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectRoomState);
|
28243
|
+
const isLargeRoom = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectIsLargeRoom);
|
28244
|
+
const isEffectsEnabled = (0, import_react_sdk79.useHMSStore)(tc);
|
28245
|
+
const effectsKey = (0, import_react_sdk79.useHMSStore)(ic);
|
28246
|
+
const isPluginAdded = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
28247
|
+
const background = (0, import_react_sdk79.useHMSStore)(tm(APP_DATA.background));
|
28286
28248
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
28287
|
-
const inPreview = roomState ===
|
28249
|
+
const inPreview = roomState === import_react_sdk79.HMSRoomState.Preview;
|
28288
28250
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
28289
28251
|
(0, import_react154.useEffect)(() => {
|
28290
28252
|
if (!(track == null ? void 0 : track.id)) {
|
@@ -28415,7 +28377,7 @@ var init_VBPicker = __esm({
|
|
28415
28377
|
});
|
28416
28378
|
|
28417
28379
|
// src/Prebuilt/layouts/SidePane.tsx
|
28418
|
-
var import_react155, import_react_use28, import_ts_pattern10,
|
28380
|
+
var import_react155, import_react_use28, import_ts_pattern10, import_react_sdk80, Wrapper3, SidePane, SidePane_default;
|
28419
28381
|
var init_SidePane = __esm({
|
28420
28382
|
"src/Prebuilt/layouts/SidePane.tsx"() {
|
28421
28383
|
"use strict";
|
@@ -28423,7 +28385,7 @@ var init_SidePane = __esm({
|
|
28423
28385
|
import_react155 = __toESM(require("react"));
|
28424
28386
|
import_react_use28 = require("react-use");
|
28425
28387
|
import_ts_pattern10 = require("ts-pattern");
|
28426
|
-
|
28388
|
+
import_react_sdk80 = require("@100mslive/react-sdk");
|
28427
28389
|
init_Polls();
|
28428
28390
|
init_RoomDetailsPane();
|
28429
28391
|
init_LayoutSettings();
|
@@ -28533,9 +28495,9 @@ var init_SidePane = __esm({
|
|
28533
28495
|
}) => {
|
28534
28496
|
var _a8, _b7, _c, _d, _e, _f, _g;
|
28535
28497
|
const isMobile = (0, import_react_use28.useMedia)(config.media.md);
|
28536
|
-
const sidepane = (0,
|
28537
|
-
const activeScreensharePeerId = (0,
|
28538
|
-
const trackId = (_a8 = (0,
|
28498
|
+
const sidepane = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectAppData)(APP_DATA.sidePane));
|
28499
|
+
const activeScreensharePeerId = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectAppData)(APP_DATA.activeScreensharePeerId));
|
28500
|
+
const trackId = (_a8 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
28539
28501
|
const { elements } = useRoomLayoutConferencingScreen();
|
28540
28502
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
28541
28503
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
@@ -28667,7 +28629,7 @@ var init_FullPageProgress = __esm({
|
|
28667
28629
|
});
|
28668
28630
|
|
28669
28631
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
28670
|
-
var import_react158, import_react_use29, import_join_form3,
|
28632
|
+
var import_react158, import_react_use29, import_join_form3, import_react_sdk81, import_react_icons77, PreviewForm, Form, PreviewForm_default;
|
28671
28633
|
var init_PreviewForm = __esm({
|
28672
28634
|
"src/Prebuilt/components/Preview/PreviewForm.tsx"() {
|
28673
28635
|
"use strict";
|
@@ -28675,7 +28637,7 @@ var init_PreviewForm = __esm({
|
|
28675
28637
|
import_react158 = __toESM(require("react"));
|
28676
28638
|
import_react_use29 = require("react-use");
|
28677
28639
|
import_join_form3 = require("@100mslive/types-prebuilt/elements/join_form");
|
28678
|
-
|
28640
|
+
import_react_sdk81 = require("@100mslive/react-sdk");
|
28679
28641
|
import_react_icons77 = require("@100mslive/react-icons");
|
28680
28642
|
init_src();
|
28681
28643
|
init_roomLayoutProvider();
|
@@ -28694,7 +28656,7 @@ var init_PreviewForm = __esm({
|
|
28694
28656
|
e.preventDefault();
|
28695
28657
|
};
|
28696
28658
|
const isMobile = (0, import_react_use29.useMedia)(config.media.md);
|
28697
|
-
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0,
|
28659
|
+
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk81.useRecordingStreaming)();
|
28698
28660
|
const layout = useRoomLayout();
|
28699
28661
|
const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
28700
28662
|
const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === import_join_form3.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
|
@@ -28746,14 +28708,14 @@ var init_PreviewForm = __esm({
|
|
28746
28708
|
});
|
28747
28709
|
|
28748
28710
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
28749
|
-
var import_react159, import_react_use30,
|
28711
|
+
var import_react159, import_react_use30, import_react_sdk82, import_react_icons78, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
|
28750
28712
|
var init_PreviewJoin = __esm({
|
28751
28713
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx"() {
|
28752
28714
|
"use strict";
|
28753
28715
|
init_define_process_env();
|
28754
28716
|
import_react159 = __toESM(require("react"));
|
28755
28717
|
import_react_use30 = require("react-use");
|
28756
|
-
|
28718
|
+
import_react_sdk82 = require("@100mslive/react-sdk");
|
28757
28719
|
import_react_icons78 = require("@100mslive/react-icons");
|
28758
28720
|
init_src();
|
28759
28721
|
init_AudioLevel2();
|
@@ -28781,8 +28743,8 @@ var init_PreviewJoin = __esm({
|
|
28781
28743
|
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
28782
28744
|
};
|
28783
28745
|
useLocalTileAspectRatio = () => {
|
28784
|
-
const localPeer = (0,
|
28785
|
-
const videoTrack = (0,
|
28746
|
+
const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
|
28747
|
+
const videoTrack = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
|
28786
28748
|
const isMobile = (0, import_react_use30.useMedia)(config.media.md);
|
28787
28749
|
let aspectRatio = 0;
|
28788
28750
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
@@ -28801,14 +28763,14 @@ var init_PreviewJoin = __esm({
|
|
28801
28763
|
UserPreferencesKeys.PREVIEW,
|
28802
28764
|
defaultPreviewPreference
|
28803
28765
|
);
|
28804
|
-
const { isStreamingOn } = (0,
|
28766
|
+
const { isStreamingOn } = (0, import_react_sdk82.useRecordingStreaming)();
|
28805
28767
|
const authToken = useAuthToken();
|
28806
28768
|
const [name, setName] = (0, import_react159.useState)(initialName || previewPreference.name);
|
28807
|
-
const { toggleAudio, toggleVideo } = (0,
|
28769
|
+
const { toggleAudio, toggleVideo } = (0, import_react_sdk82.useAVToggle)();
|
28808
28770
|
const [previewError, setPreviewError] = (0, import_react159.useState)(false);
|
28809
28771
|
const { endpoints } = useHMSPrebuiltContext();
|
28810
|
-
const { peerCount } = (0,
|
28811
|
-
const { enableJoin, preview, join } = (0,
|
28772
|
+
const { peerCount } = (0, import_react_sdk82.useParticipants)();
|
28773
|
+
const { enableJoin, preview, join } = (0, import_react_sdk82.usePreviewJoin)({
|
28812
28774
|
name,
|
28813
28775
|
token: authToken,
|
28814
28776
|
initEndpoint: endpoints == null ? void 0 : endpoints.init,
|
@@ -28818,14 +28780,14 @@ var init_PreviewJoin = __esm({
|
|
28818
28780
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
28819
28781
|
},
|
28820
28782
|
captureNetworkQualityInPreview: true,
|
28821
|
-
handleError: (
|
28783
|
+
handleError: (_, method) => {
|
28822
28784
|
if (method === "preview") {
|
28823
28785
|
setPreviewError(true);
|
28824
28786
|
}
|
28825
28787
|
},
|
28826
28788
|
asRole
|
28827
28789
|
});
|
28828
|
-
const roomState = (0,
|
28790
|
+
const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
|
28829
28791
|
const savePreferenceAndJoin = (0, import_react159.useCallback)(() => {
|
28830
28792
|
setPreviewPreference({
|
28831
28793
|
name
|
@@ -28849,7 +28811,7 @@ var init_PreviewJoin = __esm({
|
|
28849
28811
|
setName(initialName);
|
28850
28812
|
}
|
28851
28813
|
}, [initialName]);
|
28852
|
-
return roomState ===
|
28814
|
+
return roomState === import_react_sdk82.HMSRoomState.Preview ? /* @__PURE__ */ import_react159.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react159.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react159.default.createElement(Box, null), /* @__PURE__ */ import_react159.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ import_react159.default.createElement(Logo, null), /* @__PURE__ */ import_react159.default.createElement(
|
28853
28815
|
Text,
|
28854
28816
|
{
|
28855
28817
|
variant: "h4",
|
@@ -28891,12 +28853,12 @@ var init_PreviewJoin = __esm({
|
|
28891
28853
|
px: "$10"
|
28892
28854
|
}));
|
28893
28855
|
PreviewTile = ({ name, error }) => {
|
28894
|
-
const localPeer = (0,
|
28895
|
-
const { isLocalAudioEnabled, toggleAudio } = (0,
|
28896
|
-
const isVideoOn = (0,
|
28856
|
+
const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
|
28857
|
+
const { isLocalAudioEnabled, toggleAudio } = (0, import_react_sdk82.useAVToggle)();
|
28858
|
+
const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
|
28897
28859
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
28898
|
-
const trackSelector = (0,
|
28899
|
-
const track = (0,
|
28860
|
+
const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
|
28861
|
+
const track = (0, import_react_sdk82.useHMSStore)(trackSelector);
|
28900
28862
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
28901
28863
|
const aspectRatio = useLocalTileAspectRatio();
|
28902
28864
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use30.useMeasure)();
|
@@ -28993,13 +28955,13 @@ var init_RequestPrompt = __esm({
|
|
28993
28955
|
});
|
28994
28956
|
|
28995
28957
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
28996
|
-
var import_react161,
|
28958
|
+
var import_react161, import_react_sdk83, RoleChangeRequestModal;
|
28997
28959
|
var init_RoleChangeRequestModal = __esm({
|
28998
28960
|
"src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx"() {
|
28999
28961
|
"use strict";
|
29000
28962
|
init_define_process_env();
|
29001
28963
|
import_react161 = __toESM(require("react"));
|
29002
|
-
|
28964
|
+
import_react_sdk83 = require("@100mslive/react-sdk");
|
29003
28965
|
init_src();
|
29004
28966
|
init_PreviewJoin();
|
29005
28967
|
init_RequestPrompt();
|
@@ -29007,13 +28969,13 @@ var init_RoleChangeRequestModal = __esm({
|
|
29007
28969
|
init_useMetadata();
|
29008
28970
|
init_constants();
|
29009
28971
|
RoleChangeRequestModal = () => {
|
29010
|
-
const hmsActions = (0,
|
28972
|
+
const hmsActions = (0, import_react_sdk83.useHMSActions)();
|
29011
28973
|
const { updateMetaData } = useMyMetadata();
|
29012
|
-
const isPreview = (0,
|
29013
|
-
const currentRole = (0,
|
29014
|
-
const roleChangeRequest = (0,
|
29015
|
-
const name = (0,
|
29016
|
-
const { sendEvent } = (0,
|
28974
|
+
const isPreview = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectIsInPreview);
|
28975
|
+
const currentRole = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectLocalPeerRoleName);
|
28976
|
+
const roleChangeRequest = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectRoleChangeRequest);
|
28977
|
+
const name = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectLocalPeerName);
|
28978
|
+
const { sendEvent } = (0, import_react_sdk83.useCustomEvent)({ type: ROLE_CHANGE_DECLINED });
|
29017
28979
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
29018
28980
|
const { virtual_background } = elements || {};
|
29019
28981
|
(0, import_react161.useEffect)(() => {
|
@@ -29104,7 +29066,7 @@ var init_useVideoTileLayout = __esm({
|
|
29104
29066
|
});
|
29105
29067
|
|
29106
29068
|
// src/Prebuilt/components/InsetTile.tsx
|
29107
|
-
var import_react163, import_react_draggable, import_react_use32,
|
29069
|
+
var import_react163, import_react_draggable, import_react_use32, import_react_sdk84, import_react_icons79, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
|
29108
29070
|
var init_InsetTile = __esm({
|
29109
29071
|
"src/Prebuilt/components/InsetTile.tsx"() {
|
29110
29072
|
"use strict";
|
@@ -29112,7 +29074,7 @@ var init_InsetTile = __esm({
|
|
29112
29074
|
import_react163 = __toESM(require("react"));
|
29113
29075
|
import_react_draggable = __toESM(require("react-draggable"));
|
29114
29076
|
import_react_use32 = require("react-use");
|
29115
|
-
|
29077
|
+
import_react_sdk84 = require("@100mslive/react-sdk");
|
29116
29078
|
import_react_icons79 = require("@100mslive/react-icons");
|
29117
29079
|
init_Layout();
|
29118
29080
|
init_Text2();
|
@@ -29141,11 +29103,11 @@ var init_InsetTile = __esm({
|
|
29141
29103
|
InsetTile = ({ peerId }) => {
|
29142
29104
|
const isMobile = (0, import_react_use32.useMedia)(config.media.md);
|
29143
29105
|
const isLandscape = (0, import_react_use32.useMedia)(config.media.ls);
|
29144
|
-
const selector = peerId ? (0,
|
29145
|
-
const peer = (0,
|
29106
|
+
const selector = peerId ? (0, import_react_sdk84.selectPeerByID)(peerId) : import_react_sdk84.selectLocalPeer;
|
29107
|
+
const peer = (0, import_react_sdk84.useHMSStore)(selector);
|
29146
29108
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
29147
|
-
const videoTrack = (0,
|
29148
|
-
const isAllowedToPublish = (0,
|
29109
|
+
const videoTrack = (0, import_react_sdk84.useHMSStore)((0, import_react_sdk84.selectVideoTrackByID)(peer == null ? void 0 : peer.videoTrack));
|
29110
|
+
const isAllowedToPublish = (0, import_react_sdk84.useHMSStore)(import_react_sdk84.selectIsAllowedToPublish);
|
29149
29111
|
const videoTileProps = useVideoTileContext();
|
29150
29112
|
let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
|
29151
29113
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
|
@@ -29250,7 +29212,7 @@ var init_Pagination2 = __esm({
|
|
29250
29212
|
if (numPages <= 1) {
|
29251
29213
|
return null;
|
29252
29214
|
}
|
29253
|
-
return /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ import_react164.default.createElement(import_react_icons80.ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((
|
29215
|
+
return /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ import_react164.default.createElement(import_react_icons80.ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ import_react164.default.createElement(
|
29254
29216
|
StyledPagination.Dot,
|
29255
29217
|
{
|
29256
29218
|
key: i,
|
@@ -29316,21 +29278,21 @@ var init_Grid = __esm({
|
|
29316
29278
|
});
|
29317
29279
|
|
29318
29280
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
29319
|
-
var import_react166, import_react_use33,
|
29281
|
+
var import_react166, import_react_use33, import_react_sdk85, aspectRatioConfig, usePagesWithTiles, useTileLayout;
|
29320
29282
|
var init_useTileLayout = __esm({
|
29321
29283
|
"src/Prebuilt/components/hooks/useTileLayout.tsx"() {
|
29322
29284
|
"use strict";
|
29323
29285
|
init_define_process_env();
|
29324
29286
|
import_react166 = require("react");
|
29325
29287
|
import_react_use33 = require("react-use");
|
29326
|
-
|
29288
|
+
import_react_sdk85 = require("@100mslive/react-sdk");
|
29327
29289
|
init_Theme();
|
29328
29290
|
aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
|
29329
29291
|
usePagesWithTiles = ({ peers, maxTileCount }) => {
|
29330
|
-
const vanillaStore = (0,
|
29331
|
-
const tracksMap = vanillaStore.getState(
|
29292
|
+
const vanillaStore = (0, import_react_sdk85.useHMSVanillaStore)();
|
29293
|
+
const tracksMap = vanillaStore.getState(import_react_sdk85.selectTracksMap);
|
29332
29294
|
const peersWithTiles = (0, import_react166.useMemo)(
|
29333
|
-
() => (0,
|
29295
|
+
() => (0, import_react_sdk85.getPeersWithTiles)(peers, tracksMap, () => false),
|
29334
29296
|
[peers, tracksMap]
|
29335
29297
|
);
|
29336
29298
|
const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
|
@@ -29353,7 +29315,7 @@ var init_useTileLayout = __esm({
|
|
29353
29315
|
maxTileCount,
|
29354
29316
|
edgeToEdge = false
|
29355
29317
|
}) => {
|
29356
|
-
const vanillaStore = (0,
|
29318
|
+
const vanillaStore = (0, import_react_sdk85.useHMSVanillaStore)();
|
29357
29319
|
const [ref, { width, height }] = (0, import_react_use33.useMeasure)();
|
29358
29320
|
const isMobile = (0, import_react_use33.useMedia)(config.media.lg);
|
29359
29321
|
const [pagesWithTiles, setPagesWithTiles] = (0, import_react166.useState)([]);
|
@@ -29369,7 +29331,7 @@ var init_useTileLayout = __esm({
|
|
29369
29331
|
}
|
29370
29332
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
29371
29333
|
let index = 0;
|
29372
|
-
const matrix = new Array(maxRows).fill(null).map((
|
29334
|
+
const matrix = new Array(maxRows).fill(null).map((_, i) => {
|
29373
29335
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
29374
29336
|
const rowElements = [];
|
29375
29337
|
for (let j = 0; j < numCols; j++) {
|
@@ -29390,10 +29352,10 @@ var init_useTileLayout = __esm({
|
|
29390
29352
|
tileHeight = maxRowHeight;
|
29391
29353
|
} else {
|
29392
29354
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
29393
|
-
for (const
|
29394
|
-
if (
|
29395
|
-
if (tileHeight <
|
29396
|
-
tileHeight =
|
29355
|
+
for (const h of calcHeights) {
|
29356
|
+
if (h < maxRowHeight) {
|
29357
|
+
if (tileHeight < h) {
|
29358
|
+
tileHeight = h;
|
29397
29359
|
}
|
29398
29360
|
}
|
29399
29361
|
}
|
@@ -29426,7 +29388,7 @@ var init_useTileLayout = __esm({
|
|
29426
29388
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
29427
29389
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
29428
29390
|
var _a8;
|
29429
|
-
const localPeer = (0,
|
29391
|
+
const localPeer = (0, import_react_sdk86.useHMSStore)(import_react_sdk86.selectLocalPeer);
|
29430
29392
|
const isMobile = (0, import_react_use34.useMedia)(config.media.md);
|
29431
29393
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
29432
29394
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
@@ -29468,14 +29430,14 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29468
29430
|
}
|
29469
29431
|
), isInsetEnabled && pageList.length > 0 && pageList[0][0].peer.id !== (localPeer == null ? void 0 : localPeer.id) && /* @__PURE__ */ import_react167.default.createElement(InsetTile, null));
|
29470
29432
|
}
|
29471
|
-
var import_react167, import_react_use34,
|
29433
|
+
var import_react167, import_react_use34, import_react_sdk86;
|
29472
29434
|
var init_EqualProminence = __esm({
|
29473
29435
|
"src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
|
29474
29436
|
"use strict";
|
29475
29437
|
init_define_process_env();
|
29476
29438
|
import_react167 = __toESM(require("react"));
|
29477
29439
|
import_react_use34 = require("react-use");
|
29478
|
-
|
29440
|
+
import_react_sdk86 = require("@100mslive/react-sdk");
|
29479
29441
|
init_Layout();
|
29480
29442
|
init_Theme();
|
29481
29443
|
init_InsetTile();
|
@@ -29576,14 +29538,14 @@ var init_ProminenceLayout = __esm({
|
|
29576
29538
|
});
|
29577
29539
|
|
29578
29540
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
29579
|
-
var import_react169, import_react_use35,
|
29541
|
+
var import_react169, import_react_use35, import_react_sdk87, SecondaryTiles;
|
29580
29542
|
var init_SecondaryTiles = __esm({
|
29581
29543
|
"src/Prebuilt/components/SecondaryTiles.tsx"() {
|
29582
29544
|
"use strict";
|
29583
29545
|
init_define_process_env();
|
29584
29546
|
import_react169 = __toESM(require("react"));
|
29585
29547
|
import_react_use35 = require("react-use");
|
29586
|
-
|
29548
|
+
import_react_sdk87 = require("@100mslive/react-sdk");
|
29587
29549
|
init_ProminenceLayout();
|
29588
29550
|
init_Theme();
|
29589
29551
|
init_Pagination2();
|
@@ -29594,10 +29556,10 @@ var init_SecondaryTiles = __esm({
|
|
29594
29556
|
const isMobile = (0, import_react_use35.useMedia)(config.media.md);
|
29595
29557
|
const maxTileCount = isMobile ? 2 : 4;
|
29596
29558
|
const [page, setPage] = (0, import_react169.useState)(0);
|
29597
|
-
const pinnedTrackId = (0,
|
29598
|
-
const spotlightPeerId = (0,
|
29599
|
-
const activeScreensharePeerId = (0,
|
29600
|
-
const pinnedPeer = (_a8 = (0,
|
29559
|
+
const pinnedTrackId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectAppData)(APP_DATA.pinnedTrackId));
|
29560
|
+
const spotlightPeerId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectSessionStore)("spotlight" /* SPOTLIGHT */));
|
29561
|
+
const activeScreensharePeerId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectAppData)(APP_DATA.activeScreensharePeerId));
|
29562
|
+
const pinnedPeer = (_a8 = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
|
29601
29563
|
const pageChangedAfterPinning = (0, import_react169.useRef)(false);
|
29602
29564
|
const pagesWithTiles = usePagesWithTiles({
|
29603
29565
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
@@ -29700,7 +29662,7 @@ function RoleProminence({
|
|
29700
29662
|
}) {
|
29701
29663
|
var _a8;
|
29702
29664
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
29703
|
-
const localPeer = (0,
|
29665
|
+
const localPeer = (0, import_react_sdk88.useHMSStore)(import_react_sdk88.selectLocalPeer);
|
29704
29666
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
29705
29667
|
const isMobile = (0, import_react_use36.useMedia)(config.media.md);
|
29706
29668
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
@@ -29740,14 +29702,14 @@ function RoleProminence({
|
|
29740
29702
|
}
|
29741
29703
|
), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react171.default.createElement(InsetTile, null));
|
29742
29704
|
}
|
29743
|
-
var import_react171, import_react_use36,
|
29705
|
+
var import_react171, import_react_use36, import_react_sdk88;
|
29744
29706
|
var init_RoleProminence = __esm({
|
29745
29707
|
"src/Prebuilt/components/VideoLayouts/RoleProminence.tsx"() {
|
29746
29708
|
"use strict";
|
29747
29709
|
init_define_process_env();
|
29748
29710
|
import_react171 = __toESM(require("react"));
|
29749
29711
|
import_react_use36 = require("react-use");
|
29750
|
-
|
29712
|
+
import_react_sdk88 = require("@100mslive/react-sdk");
|
29751
29713
|
init_Theme();
|
29752
29714
|
init_InsetTile();
|
29753
29715
|
init_Pagination2();
|
@@ -29872,19 +29834,19 @@ var init_LayoutModeSelector = __esm({
|
|
29872
29834
|
});
|
29873
29835
|
|
29874
29836
|
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
29875
|
-
var import_react173,
|
29837
|
+
var import_react173, import_react_sdk89, import_react_icons82, ScreenshareDisplay;
|
29876
29838
|
var init_ScreenshareDisplay = __esm({
|
29877
29839
|
"src/Prebuilt/components/ScreenshareDisplay.tsx"() {
|
29878
29840
|
"use strict";
|
29879
29841
|
init_define_process_env();
|
29880
29842
|
import_react173 = __toESM(require("react"));
|
29881
|
-
|
29843
|
+
import_react_sdk89 = require("@100mslive/react-sdk");
|
29882
29844
|
import_react_icons82 = require("@100mslive/react-icons");
|
29883
29845
|
init_Button2();
|
29884
29846
|
init_Layout();
|
29885
29847
|
init_Text2();
|
29886
29848
|
ScreenshareDisplay = () => {
|
29887
|
-
const hmsActions = (0,
|
29849
|
+
const hmsActions = (0, import_react_sdk89.useHMSActions)();
|
29888
29850
|
return /* @__PURE__ */ import_react173.default.createElement(
|
29889
29851
|
Flex,
|
29890
29852
|
{
|
@@ -29918,7 +29880,7 @@ var init_ScreenshareDisplay = __esm({
|
|
29918
29880
|
});
|
29919
29881
|
|
29920
29882
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
29921
|
-
var import_react174, import_react_use37, import_screenfull2,
|
29883
|
+
var import_react174, import_react_use37, import_screenfull2, import_react_sdk90, import_react_icons83, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
|
29922
29884
|
var init_ScreenshareTile = __esm({
|
29923
29885
|
"src/Prebuilt/components/ScreenshareTile.tsx"() {
|
29924
29886
|
"use strict";
|
@@ -29926,7 +29888,7 @@ var init_ScreenshareTile = __esm({
|
|
29926
29888
|
import_react174 = __toESM(require("react"));
|
29927
29889
|
import_react_use37 = require("react-use");
|
29928
29890
|
import_screenfull2 = __toESM(require("screenfull"));
|
29929
|
-
|
29891
|
+
import_react_sdk90 = require("@100mslive/react-sdk");
|
29930
29892
|
import_react_icons83 = require("@100mslive/react-icons");
|
29931
29893
|
init_TileMenu2();
|
29932
29894
|
init_Layout();
|
@@ -29948,10 +29910,10 @@ var init_ScreenshareTile = __esm({
|
|
29948
29910
|
flexShrink: 0
|
29949
29911
|
};
|
29950
29912
|
Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
29951
|
-
const isLocal = (0,
|
29952
|
-
const track = (0,
|
29913
|
+
const isLocal = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeerID) === peerId;
|
29914
|
+
const track = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectScreenShareByPeerID)(peerId));
|
29953
29915
|
const { theme: theme2 } = useTheme();
|
29954
|
-
const peer = (0,
|
29916
|
+
const peer = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectPeerByID)(peerId));
|
29955
29917
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
29956
29918
|
const [isMouseHovered, setIsMouseHovered] = (0, import_react174.useState)(false);
|
29957
29919
|
const isMobile = (0, import_react_use37.useMedia)(config.media.md);
|
@@ -29962,7 +29924,7 @@ var init_ScreenshareTile = __esm({
|
|
29962
29924
|
onClose: () => setFullscreen(false)
|
29963
29925
|
});
|
29964
29926
|
const isFullScreenSupported = import_screenfull2.default.isEnabled;
|
29965
|
-
const audioTrack = (0,
|
29927
|
+
const audioTrack = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectScreenShareAudioByPeerID)(peer == null ? void 0 : peer.id));
|
29966
29928
|
if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
|
29967
29929
|
return /* @__PURE__ */ import_react174.default.createElement(ScreenshareDisplay, null);
|
29968
29930
|
}
|
@@ -30041,14 +30003,14 @@ var init_ScreenshareTile = __esm({
|
|
30041
30003
|
});
|
30042
30004
|
|
30043
30005
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
30044
|
-
var import_react175, import_react_use38,
|
30006
|
+
var import_react175, import_react_use38, import_react_sdk91, ScreenshareLayout;
|
30045
30007
|
var init_ScreenshareLayout = __esm({
|
30046
30008
|
"src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
|
30047
30009
|
"use strict";
|
30048
30010
|
init_define_process_env();
|
30049
30011
|
import_react175 = __toESM(require("react"));
|
30050
30012
|
import_react_use38 = require("react-use");
|
30051
|
-
|
30013
|
+
import_react_sdk91 = require("@100mslive/react-sdk");
|
30052
30014
|
init_Theme();
|
30053
30015
|
init_InsetTile();
|
30054
30016
|
init_Pagination2();
|
@@ -30060,7 +30022,7 @@ var init_ScreenshareLayout = __esm({
|
|
30060
30022
|
init_constants();
|
30061
30023
|
ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
30062
30024
|
var _a8;
|
30063
|
-
const peersSharing = (0,
|
30025
|
+
const peersSharing = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectPeersScreenSharing);
|
30064
30026
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30065
30027
|
const [page, setPage] = (0, import_react175.useState)(0);
|
30066
30028
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
@@ -30111,12 +30073,12 @@ var init_ScreenshareLayout = __esm({
|
|
30111
30073
|
});
|
30112
30074
|
|
30113
30075
|
// src/Prebuilt/common/PeersSorter.ts
|
30114
|
-
var
|
30076
|
+
var import_react_sdk92, PeersSorter, PeersSorter_default;
|
30115
30077
|
var init_PeersSorter = __esm({
|
30116
30078
|
"src/Prebuilt/common/PeersSorter.ts"() {
|
30117
30079
|
"use strict";
|
30118
30080
|
init_define_process_env();
|
30119
|
-
|
30081
|
+
import_react_sdk92 = require("@100mslive/react-sdk");
|
30120
30082
|
PeersSorter = class {
|
30121
30083
|
constructor(store) {
|
30122
30084
|
this.storeUnsubscribe = void 0;
|
@@ -30125,7 +30087,7 @@ var init_PeersSorter = __esm({
|
|
30125
30087
|
this.speaker = void 0;
|
30126
30088
|
this.tilesPerPage = tilesPerPage;
|
30127
30089
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
30128
|
-
this.peers.forEach((
|
30090
|
+
this.peers.forEach((_, key) => {
|
30129
30091
|
if (!peerIds.has(key)) {
|
30130
30092
|
this.peers.delete(key);
|
30131
30093
|
}
|
@@ -30138,7 +30100,7 @@ var init_PeersSorter = __esm({
|
|
30138
30100
|
}
|
30139
30101
|
});
|
30140
30102
|
if (!this.storeUnsubscribe) {
|
30141
|
-
this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange,
|
30103
|
+
this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk92.selectDominantSpeaker);
|
30142
30104
|
}
|
30143
30105
|
this.moveSpeakerToFront(this.speaker);
|
30144
30106
|
};
|
@@ -30212,13 +30174,13 @@ var init_PeersSorter = __esm({
|
|
30212
30174
|
});
|
30213
30175
|
|
30214
30176
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
30215
|
-
var import_react176,
|
30177
|
+
var import_react176, import_react_sdk93, GridLayout;
|
30216
30178
|
var init_GridLayout = __esm({
|
30217
30179
|
"src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
|
30218
30180
|
"use strict";
|
30219
30181
|
init_define_process_env();
|
30220
30182
|
import_react176 = __toESM(require("react"));
|
30221
|
-
|
30183
|
+
import_react_sdk93 = require("@100mslive/react-sdk");
|
30222
30184
|
init_EqualProminence();
|
30223
30185
|
init_RoleProminence();
|
30224
30186
|
init_ScreenshareLayout();
|
@@ -30237,11 +30199,11 @@ var init_GridLayout = __esm({
|
|
30237
30199
|
edge_to_edge = false,
|
30238
30200
|
hide_metadata_on_tile = false
|
30239
30201
|
}) => {
|
30240
|
-
const peerSharing = (0,
|
30202
|
+
const peerSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeerScreenSharing);
|
30241
30203
|
const pinnedTrack = usePinnedTrack();
|
30242
|
-
const peers = (0,
|
30243
|
-
const localPeerRole = (0,
|
30244
|
-
const localPeerID = (0,
|
30204
|
+
const peers = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeers);
|
30205
|
+
const localPeerRole = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerRoleName);
|
30206
|
+
const localPeerID = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerID);
|
30245
30207
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30246
30208
|
const isRoleProminence = prominentRoles.length && peers.some(
|
30247
30209
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
@@ -30260,7 +30222,7 @@ var init_GridLayout = __esm({
|
|
30260
30222
|
}
|
30261
30223
|
return peers;
|
30262
30224
|
}, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
|
30263
|
-
const vanillaStore = (0,
|
30225
|
+
const vanillaStore = (0, import_react_sdk93.useHMSVanillaStore)();
|
30264
30226
|
const [sortedPeers, setSortedPeers] = (0, import_react176.useState)(updatedPeers);
|
30265
30227
|
const peersSorter = (0, import_react176.useMemo)(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
30266
30228
|
const [pageSize, setPageSize] = (0, import_react176.useState)(0);
|
@@ -30321,13 +30283,13 @@ var init_GridLayout = __esm({
|
|
30321
30283
|
});
|
30322
30284
|
|
30323
30285
|
// src/Prebuilt/layouts/EmbedView.jsx
|
30324
|
-
var import_react177,
|
30286
|
+
var import_react177, import_react_sdk94, EmbedView, EmbedScreenShareView, EmbedComponent;
|
30325
30287
|
var init_EmbedView = __esm({
|
30326
30288
|
"src/Prebuilt/layouts/EmbedView.jsx"() {
|
30327
30289
|
"use strict";
|
30328
30290
|
init_define_process_env();
|
30329
30291
|
import_react177 = __toESM(require("react"));
|
30330
|
-
|
30292
|
+
import_react_sdk94 = require("@100mslive/react-sdk");
|
30331
30293
|
init_SecondaryTiles();
|
30332
30294
|
init_ToastManager();
|
30333
30295
|
init_ProminenceLayout();
|
@@ -30338,8 +30300,8 @@ var init_EmbedView = __esm({
|
|
30338
30300
|
return /* @__PURE__ */ import_react177.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react177.default.createElement(EmbedComponent, null));
|
30339
30301
|
};
|
30340
30302
|
EmbedScreenShareView = ({ children }) => {
|
30341
|
-
const peers = (0,
|
30342
|
-
const peerPresenting = (0,
|
30303
|
+
const peers = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeers);
|
30304
|
+
const peerPresenting = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeerScreenSharing);
|
30343
30305
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30344
30306
|
const smallTilePeers = (0, import_react177.useMemo)(() => {
|
30345
30307
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
@@ -30354,9 +30316,9 @@ var init_EmbedView = __esm({
|
|
30354
30316
|
return /* @__PURE__ */ import_react177.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react177.default.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ import_react177.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
30355
30317
|
};
|
30356
30318
|
EmbedComponent = () => {
|
30357
|
-
const embedConfig = (0,
|
30319
|
+
const embedConfig = (0, import_react_sdk94.useHMSStore)((0, import_react_sdk94.selectAppData)(APP_DATA.embedConfig));
|
30358
30320
|
const resetConfig = useResetEmbedConfig();
|
30359
|
-
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0,
|
30321
|
+
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk94.useEmbedShare)(resetConfig);
|
30360
30322
|
(0, import_react177.useEffect)(() => {
|
30361
30323
|
(() => __async(void 0, null, function* () {
|
30362
30324
|
if (embedConfig && !isEmbedShareInProgress) {
|
@@ -30406,13 +30368,13 @@ var init_EmbedView = __esm({
|
|
30406
30368
|
});
|
30407
30369
|
|
30408
30370
|
// src/Prebuilt/layouts/PDFView.jsx
|
30409
|
-
var import_react178,
|
30371
|
+
var import_react178, import_react_sdk95, PDFView;
|
30410
30372
|
var init_PDFView = __esm({
|
30411
30373
|
"src/Prebuilt/layouts/PDFView.jsx"() {
|
30412
30374
|
"use strict";
|
30413
30375
|
init_define_process_env();
|
30414
30376
|
import_react178 = __toESM(require("react"));
|
30415
|
-
|
30377
|
+
import_react_sdk95 = require("@100mslive/react-sdk");
|
30416
30378
|
init_ToastManager();
|
30417
30379
|
init_Layout();
|
30418
30380
|
init_EmbedView();
|
@@ -30420,7 +30382,7 @@ var init_PDFView = __esm({
|
|
30420
30382
|
PDFView = () => {
|
30421
30383
|
const pdfConfig = usePDFConfig();
|
30422
30384
|
const resetConfig = useResetPDFConfig();
|
30423
|
-
const { iframeRef, startPDFShare, isPDFShareInProgress } = (0,
|
30385
|
+
const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk95.usePDFShare)(resetConfig);
|
30424
30386
|
(0, import_react178.useEffect)(() => {
|
30425
30387
|
(() => __async(void 0, null, function* () {
|
30426
30388
|
try {
|
@@ -30529,14 +30491,14 @@ var init_WaitingView = __esm({
|
|
30529
30491
|
});
|
30530
30492
|
|
30531
30493
|
// src/Prebuilt/layouts/WhiteboardView.tsx
|
30532
|
-
var import_react180, import_react_use39,
|
30494
|
+
var import_react180, import_react_use39, import_react_sdk96, EmbedComponent2, WhiteboardView;
|
30533
30495
|
var init_WhiteboardView = __esm({
|
30534
30496
|
"src/Prebuilt/layouts/WhiteboardView.tsx"() {
|
30535
30497
|
"use strict";
|
30536
30498
|
init_define_process_env();
|
30537
30499
|
import_react180 = __toESM(require("react"));
|
30538
30500
|
import_react_use39 = require("react-use");
|
30539
|
-
|
30501
|
+
import_react_sdk96 = require("@100mslive/react-sdk");
|
30540
30502
|
init_SecondaryTiles();
|
30541
30503
|
init_ProminenceLayout();
|
30542
30504
|
init_src();
|
@@ -30545,7 +30507,7 @@ var init_WhiteboardView = __esm({
|
|
30545
30507
|
init_constants();
|
30546
30508
|
EmbedComponent2 = () => {
|
30547
30509
|
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
30548
|
-
const { iframeRef } = (0,
|
30510
|
+
const { iframeRef } = (0, import_react_sdk96.useWhiteboard)(isMobile);
|
30549
30511
|
return /* @__PURE__ */ import_react180.default.createElement(
|
30550
30512
|
Box,
|
30551
30513
|
{
|
@@ -30577,8 +30539,8 @@ var init_WhiteboardView = __esm({
|
|
30577
30539
|
);
|
30578
30540
|
};
|
30579
30541
|
WhiteboardView = () => {
|
30580
|
-
const peers = (0,
|
30581
|
-
const whiteboard = (0,
|
30542
|
+
const peers = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectPeers);
|
30543
|
+
const whiteboard = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectWhiteboard);
|
30582
30544
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
30583
30545
|
const smallTilePeers = (0, import_react180.useMemo)(() => {
|
30584
30546
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
|
@@ -30596,17 +30558,17 @@ var init_WhiteboardView = __esm({
|
|
30596
30558
|
});
|
30597
30559
|
|
30598
30560
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
30599
|
-
var import_react181, import_react_use40,
|
30561
|
+
var import_react181, import_react_use40, import_react_sdk97, useCloseScreenshareWhiteboard;
|
30600
30562
|
var init_useCloseScreenshareWhiteboard = __esm({
|
30601
30563
|
"src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx"() {
|
30602
30564
|
"use strict";
|
30603
30565
|
init_define_process_env();
|
30604
30566
|
import_react181 = require("react");
|
30605
30567
|
import_react_use40 = require("react-use");
|
30606
|
-
|
30568
|
+
import_react_sdk97 = require("@100mslive/react-sdk");
|
30607
30569
|
useCloseScreenshareWhiteboard = () => {
|
30608
|
-
const { amIScreenSharing, toggleScreenShare } = (0,
|
30609
|
-
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0,
|
30570
|
+
const { amIScreenSharing, toggleScreenShare } = (0, import_react_sdk97.useScreenShare)();
|
30571
|
+
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk97.useWhiteboard)();
|
30610
30572
|
const prevScreenSharer = (0, import_react_use40.usePrevious)(amIScreenSharing);
|
30611
30573
|
const prevWhiteboardOwner = (0, import_react_use40.usePrevious)(isWhiteboardOwner);
|
30612
30574
|
(0, import_react181.useEffect)(() => {
|
@@ -30868,8 +30830,8 @@ var init_SeekControls = __esm({
|
|
30868
30830
|
});
|
30869
30831
|
|
30870
30832
|
// src/Prebuilt/components/HMSVideo/utils.ts
|
30871
|
-
function getPercentage(a2,
|
30872
|
-
return a2 /
|
30833
|
+
function getPercentage(a2, b2) {
|
30834
|
+
return a2 / b2 * 100;
|
30873
30835
|
}
|
30874
30836
|
function getDurationFromSeconds2(timeInSeconds) {
|
30875
30837
|
let time = Math.floor(timeInSeconds);
|
@@ -31551,7 +31513,7 @@ var HLSView_exports = {};
|
|
31551
31513
|
__export(HLSView_exports, {
|
31552
31514
|
default: () => HLSView_default
|
31553
31515
|
});
|
31554
|
-
var import_react195, import_react_use43, import_hls_player3, import_screenfull3, import_ts_pattern11,
|
31516
|
+
var import_react195, import_react_use43, import_hls_player3, import_screenfull3, import_ts_pattern11, import_react_sdk98, import_react_icons93, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
|
31555
31517
|
var init_HLSView = __esm({
|
31556
31518
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
31557
31519
|
"use strict";
|
@@ -31561,7 +31523,7 @@ var init_HLSView = __esm({
|
|
31561
31523
|
import_hls_player3 = require("@100mslive/hls-player");
|
31562
31524
|
import_screenfull3 = __toESM(require("screenfull"));
|
31563
31525
|
import_ts_pattern11 = require("ts-pattern");
|
31564
|
-
|
31526
|
+
import_react_sdk98 = require("@100mslive/react-sdk");
|
31565
31527
|
import_react_icons93 = require("@100mslive/react-icons");
|
31566
31528
|
init_ChatToggle();
|
31567
31529
|
init_HlsStatsOverlay();
|
@@ -31588,11 +31550,11 @@ var init_HLSView = __esm({
|
|
31588
31550
|
toastMap = {};
|
31589
31551
|
ToggleChat = () => {
|
31590
31552
|
const { elements } = useRoomLayoutConferencingScreen();
|
31591
|
-
const sidepane = (0,
|
31553
|
+
const sidepane = (0, import_react_sdk98.useHMSStore)((0, import_react_sdk98.selectAppData)(APP_DATA.sidePane));
|
31592
31554
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
31593
31555
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
31594
31556
|
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
31595
|
-
const hmsActions = (0,
|
31557
|
+
const hmsActions = (0, import_react_sdk98.useHMSActions)();
|
31596
31558
|
(0, import_react195.useEffect)(() => {
|
31597
31559
|
(0, import_ts_pattern11.match)({ sidepane, isMobile, showChat }).with({ isMobile: true, showChat: true, sidepane: import_ts_pattern11.P.when((value) => !value) }, () => {
|
31598
31560
|
toggleChat();
|
@@ -31607,10 +31569,10 @@ var init_HLSView = __esm({
|
|
31607
31569
|
var _a8, _b7, _c, _d, _e, _f;
|
31608
31570
|
const videoRef = (0, import_react195.useRef)(null);
|
31609
31571
|
const hlsViewRef = (0, import_react195.useRef)();
|
31610
|
-
const hlsState = (0,
|
31611
|
-
const enablHlsStats = (0,
|
31612
|
-
const notification = (0,
|
31613
|
-
const hmsActions = (0,
|
31572
|
+
const hlsState = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectHLSState);
|
31573
|
+
const enablHlsStats = (0, import_react_sdk98.useHMSStore)((0, import_react_sdk98.selectAppData)(APP_DATA.hlsStats));
|
31574
|
+
const notification = (0, import_react_sdk98.useHMSNotifications)(import_react_sdk98.HMSNotificationTypes.POLL_STOPPED);
|
31575
|
+
const hmsActions = (0, import_react_sdk98.useHMSActions)();
|
31614
31576
|
const { themeType } = useTheme();
|
31615
31577
|
const [streamEnded, setStreamEnded] = (0, import_react195.useState)(false);
|
31616
31578
|
let [hlsStatsState, setHlsStatsState] = (0, import_react195.useState)(null);
|
@@ -31625,7 +31587,7 @@ var init_HLSView = __esm({
|
|
31625
31587
|
const [isPaused, setIsPaused] = (0, import_react195.useState)(false);
|
31626
31588
|
const [show, toggle] = (0, import_react_use43.useToggle)(false);
|
31627
31589
|
const lastHlsUrl = (0, import_react_use43.usePrevious)(hlsUrl);
|
31628
|
-
const vanillaStore = (0,
|
31590
|
+
const vanillaStore = (0, import_react_sdk98.useHMSVanillaStore)();
|
31629
31591
|
const [controlsVisible, setControlsVisible] = (0, import_react195.useState)(true);
|
31630
31592
|
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react195.useState)(true);
|
31631
31593
|
const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react195.useState)(false);
|
@@ -31709,8 +31671,8 @@ var init_HLSView = __esm({
|
|
31709
31671
|
const parsedPayload = parsePayload(payload);
|
31710
31672
|
if (parsedPayload.startsWith("poll:")) {
|
31711
31673
|
const pollId = parsedPayload.substr(parsedPayload.indexOf(":") + 1);
|
31712
|
-
const poll = vanillaStore.getState((0,
|
31713
|
-
const pollStartedBy = vanillaStore.getState((0,
|
31674
|
+
const poll = vanillaStore.getState((0, import_react_sdk98.selectPollByID)(pollId));
|
31675
|
+
const pollStartedBy = vanillaStore.getState((0, import_react_sdk98.selectPeerNameByID)(poll.startedBy)) || "Participant";
|
31714
31676
|
if (!toastMap[pollId]) {
|
31715
31677
|
const toastID = ToastManager.addToast({
|
31716
31678
|
title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
|
@@ -31838,7 +31800,7 @@ var init_HLSView = __esm({
|
|
31838
31800
|
const onDoubleClickHandler = (0, import_react195.useCallback)(
|
31839
31801
|
(event) => {
|
31840
31802
|
var _a9;
|
31841
|
-
if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !==
|
31803
|
+
if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
|
31842
31804
|
return;
|
31843
31805
|
}
|
31844
31806
|
const sidePercentage = event.screenX * 100 / event.target.clientWidth;
|
@@ -31856,7 +31818,7 @@ var init_HLSView = __esm({
|
|
31856
31818
|
);
|
31857
31819
|
const onClickHandler = (0, import_react195.useCallback)(() => __async(void 0, null, function* () {
|
31858
31820
|
var _a9;
|
31859
|
-
(0, import_ts_pattern11.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type:
|
31821
|
+
(0, import_ts_pattern11.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
|
31860
31822
|
if (isPaused) {
|
31861
31823
|
yield hlsPlayer == null ? void 0 : hlsPlayer.play();
|
31862
31824
|
} else {
|
@@ -31944,7 +31906,7 @@ var init_HLSView = __esm({
|
|
31944
31906
|
},
|
31945
31907
|
onKeyDown: (event) => __async(void 0, null, function* () {
|
31946
31908
|
var _a9;
|
31947
|
-
if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) ===
|
31909
|
+
if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
|
31948
31910
|
yield keyHandler(event);
|
31949
31911
|
}
|
31950
31912
|
}),
|
@@ -31990,7 +31952,7 @@ var init_HLSView = __esm({
|
|
31990
31952
|
opacity: controlsVisible ? `1` : "0"
|
31991
31953
|
}
|
31992
31954
|
},
|
31993
|
-
!showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) ===
|
31955
|
+
!showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR && /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, /* @__PURE__ */ import_react195.default.createElement(
|
31994
31956
|
HMSVideoPlayer.Seeker,
|
31995
31957
|
{
|
31996
31958
|
title: "backward",
|
@@ -32067,7 +32029,7 @@ var init_HLSView = __esm({
|
|
32067
32029
|
align: "start",
|
32068
32030
|
css: {
|
32069
32031
|
position: "absolute",
|
32070
|
-
bottom: isFullScreen && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) ===
|
32032
|
+
bottom: isFullScreen && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? "$8" : "0",
|
32071
32033
|
left: "0",
|
32072
32034
|
zIndex: 1,
|
32073
32035
|
background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
|
@@ -32077,7 +32039,7 @@ var init_HLSView = __esm({
|
|
32077
32039
|
transition: "visibility 0s 0.5s, opacity 0.5s linear"
|
32078
32040
|
}
|
32079
32041
|
},
|
32080
|
-
((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) ===
|
32042
|
+
((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
|
32081
32043
|
/* @__PURE__ */ import_react195.default.createElement(
|
32082
32044
|
HMSVideoPlayer.Controls.Root,
|
32083
32045
|
{
|
@@ -32085,7 +32047,7 @@ var init_HLSView = __esm({
|
|
32085
32047
|
p: "$4 $8"
|
32086
32048
|
}
|
32087
32049
|
},
|
32088
|
-
/* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) ===
|
32050
|
+
/* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, /* @__PURE__ */ import_react195.default.createElement(
|
32089
32051
|
HMSVideoPlayer.Seeker,
|
32090
32052
|
{
|
32091
32053
|
onClick: () => {
|
@@ -32135,7 +32097,7 @@ var init_HLSView = __esm({
|
|
32135
32097
|
},
|
32136
32098
|
isVideoLive ? "LIVE" : "GO LIVE"
|
32137
32099
|
)))
|
32138
|
-
), (isMobile || isLandscape) && !isVideoLive && ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) ===
|
32100
|
+
), (isMobile || isLandscape) && !isVideoLive && ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Duration, null) : null),
|
32139
32101
|
/* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react195.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react195.default.createElement(
|
32140
32102
|
HLSQualitySelector,
|
32141
32103
|
{
|
@@ -32160,14 +32122,14 @@ var init_HLSView = __esm({
|
|
32160
32122
|
});
|
32161
32123
|
|
32162
32124
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
32163
|
-
var import_react196, import_ts_pattern12,
|
32125
|
+
var import_react196, import_ts_pattern12, import_react_sdk99, HLSView2, VideoStreamingSection;
|
32164
32126
|
var init_VideoStreamingSection = __esm({
|
32165
32127
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
32166
32128
|
"use strict";
|
32167
32129
|
init_define_process_env();
|
32168
32130
|
import_react196 = __toESM(require("react"));
|
32169
32131
|
import_ts_pattern12 = require("ts-pattern");
|
32170
|
-
|
32132
|
+
import_react_sdk99 = require("@100mslive/react-sdk");
|
32171
32133
|
init_FullPageProgress();
|
32172
32134
|
init_GridLayout();
|
32173
32135
|
init_Layout();
|
@@ -32186,11 +32148,11 @@ var init_VideoStreamingSection = __esm({
|
|
32186
32148
|
hideControls = false
|
32187
32149
|
}) => {
|
32188
32150
|
var _a8, _b7, _c, _d;
|
32189
|
-
const localPeerRole = (0,
|
32190
|
-
const isConnected = (0,
|
32191
|
-
const peerSharing = (0,
|
32192
|
-
const isWhiteboardOpen = (_a8 = (0,
|
32193
|
-
const hmsActions = (0,
|
32151
|
+
const localPeerRole = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectLocalPeerRoleName);
|
32152
|
+
const isConnected = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectIsConnectedToRoom);
|
32153
|
+
const peerSharing = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectPeerScreenSharing);
|
32154
|
+
const isWhiteboardOpen = (_a8 = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectWhiteboard)) == null ? void 0 : _a8.open;
|
32155
|
+
const hmsActions = (0, import_react_sdk99.useHMSActions)();
|
32194
32156
|
const waitingViewerRole = useWaitingViewerRole();
|
32195
32157
|
const urlToIframe = useUrlToEmbed();
|
32196
32158
|
const pdfAnnotatorActive = usePDFConfig();
|
@@ -32303,13 +32265,13 @@ var init_RoomDetailsHeader = __esm({
|
|
32303
32265
|
});
|
32304
32266
|
|
32305
32267
|
// src/Prebuilt/components/Header/common.jsx
|
32306
|
-
var import_react198,
|
32268
|
+
var import_react198, import_react_sdk100, import_react_icons95, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
|
32307
32269
|
var init_common2 = __esm({
|
32308
32270
|
"src/Prebuilt/components/Header/common.jsx"() {
|
32309
32271
|
"use strict";
|
32310
32272
|
init_define_process_env();
|
32311
32273
|
import_react198 = __toESM(require("react"));
|
32312
|
-
|
32274
|
+
import_react_sdk100 = require("@100mslive/react-sdk");
|
32313
32275
|
import_react_icons95 = require("@100mslive/react-icons");
|
32314
32276
|
init_Divider2();
|
32315
32277
|
init_Label2();
|
@@ -32319,12 +32281,12 @@ var init_common2 = __esm({
|
|
32319
32281
|
init_IconButton3();
|
32320
32282
|
init_ToastManager();
|
32321
32283
|
CamaraFlipActions = () => {
|
32322
|
-
const actions = (0,
|
32323
|
-
const { allDevices } = (0,
|
32284
|
+
const actions = (0, import_react_sdk100.useHMSActions)();
|
32285
|
+
const { allDevices } = (0, import_react_sdk100.useDevices)();
|
32324
32286
|
const { videoInput } = allDevices;
|
32325
|
-
const isVideoOn = (0,
|
32326
|
-
const videoTrackId = (0,
|
32327
|
-
const localVideoTrack = (0,
|
32287
|
+
const isVideoOn = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectIsLocalVideoEnabled);
|
32288
|
+
const videoTrackId = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectLocalVideoTrackID);
|
32289
|
+
const localVideoTrack = (0, import_react_sdk100.useHMSStore)((0, import_react_sdk100.selectVideoTrackByID)(videoTrackId));
|
32328
32290
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
32329
32291
|
return null;
|
32330
32292
|
}
|
@@ -32347,7 +32309,7 @@ var init_common2 = __esm({
|
|
32347
32309
|
));
|
32348
32310
|
};
|
32349
32311
|
AudioActions = () => {
|
32350
|
-
const { allDevices, selectedDeviceIDs, updateDevice } = (0,
|
32312
|
+
const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk100.useDevices)();
|
32351
32313
|
const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype;
|
32352
32314
|
const { audioInput, audioOutput } = allDevices;
|
32353
32315
|
let availableAudioDevices = audioInput;
|
@@ -32356,7 +32318,7 @@ var init_common2 = __esm({
|
|
32356
32318
|
availableAudioDevices = audioOutput;
|
32357
32319
|
selectedAudio = selectedDeviceIDs.audioOutput;
|
32358
32320
|
}
|
32359
|
-
const hmsActions = (0,
|
32321
|
+
const hmsActions = (0, import_react_sdk100.useHMSActions)();
|
32360
32322
|
const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
|
32361
32323
|
const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
|
32362
32324
|
if (!audioFiltered) {
|
@@ -32377,7 +32339,7 @@ var init_common2 = __esm({
|
|
32377
32339
|
try {
|
32378
32340
|
yield updateDevice({
|
32379
32341
|
deviceId,
|
32380
|
-
deviceType: shouldShowAudioOutput ?
|
32342
|
+
deviceType: shouldShowAudioOutput ? import_react_sdk100.DeviceType.audioOutput : import_react_sdk100.DeviceType.audioInput
|
32381
32343
|
});
|
32382
32344
|
} catch (e) {
|
32383
32345
|
ToastManager.addToast({
|
@@ -32461,23 +32423,23 @@ var init_common2 = __esm({
|
|
32461
32423
|
});
|
32462
32424
|
|
32463
32425
|
// src/Prebuilt/components/Header/Header.tsx
|
32464
|
-
var import_react199, import_react_use45,
|
32426
|
+
var import_react199, import_react_use45, import_react_sdk101, Header2;
|
32465
32427
|
var init_Header = __esm({
|
32466
32428
|
"src/Prebuilt/components/Header/Header.tsx"() {
|
32467
32429
|
"use strict";
|
32468
32430
|
init_define_process_env();
|
32469
32431
|
import_react199 = __toESM(require("react"));
|
32470
32432
|
import_react_use45 = require("react-use");
|
32471
|
-
|
32433
|
+
import_react_sdk101 = require("@100mslive/react-sdk");
|
32472
32434
|
init_src();
|
32473
32435
|
init_HeaderComponents();
|
32474
32436
|
init_RoomDetailsHeader();
|
32475
32437
|
init_StreamActions();
|
32476
32438
|
init_common2();
|
32477
32439
|
Header2 = () => {
|
32478
|
-
const roomState = (0,
|
32440
|
+
const roomState = (0, import_react_sdk101.useHMSStore)(import_react_sdk101.selectRoomState);
|
32479
32441
|
const isMobile = (0, import_react_use45.useMedia)(config.media.md);
|
32480
|
-
if (roomState !==
|
32442
|
+
if (roomState !== import_react_sdk101.HMSRoomState.Connected) {
|
32481
32443
|
return /* @__PURE__ */ import_react199.default.createElement(import_react199.default.Fragment, null);
|
32482
32444
|
}
|
32483
32445
|
return /* @__PURE__ */ import_react199.default.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ import_react199.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ import_react199.default.createElement(Logo, null), /* @__PURE__ */ import_react199.default.createElement(RoomDetailsHeader, null), /* @__PURE__ */ import_react199.default.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ import_react199.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react199.default.createElement(LiveStatus, null), /* @__PURE__ */ import_react199.default.createElement(RecordingStatus, null), /* @__PURE__ */ import_react199.default.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ import_react199.default.createElement(
|
@@ -32507,25 +32469,25 @@ var init_Header2 = __esm({
|
|
32507
32469
|
});
|
32508
32470
|
|
32509
32471
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
32510
|
-
var import_react200,
|
32472
|
+
var import_react200, import_react_sdk102, PreviousRoleInMetadata;
|
32511
32473
|
var init_PreviousRoleInMetadata = __esm({
|
32512
32474
|
"src/Prebuilt/components/PreviousRoleInMetadata.tsx"() {
|
32513
32475
|
"use strict";
|
32514
32476
|
init_define_process_env();
|
32515
32477
|
import_react200 = require("react");
|
32516
|
-
|
32478
|
+
import_react_sdk102 = require("@100mslive/react-sdk");
|
32517
32479
|
init_useMetadata();
|
32518
32480
|
PreviousRoleInMetadata = () => {
|
32519
|
-
const vanillaStore = (0,
|
32481
|
+
const vanillaStore = (0, import_react_sdk102.useHMSVanillaStore)();
|
32520
32482
|
const { updateMetaData } = useMyMetadata();
|
32521
32483
|
(0, import_react200.useEffect)(() => {
|
32522
|
-
let previousRole = vanillaStore.getState(
|
32484
|
+
let previousRole = vanillaStore.getState(import_react_sdk102.selectLocalPeerRoleName);
|
32523
32485
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
32524
32486
|
if (previousRole !== currentRole && currentRole) {
|
32525
32487
|
updateMetaData({ prevRole: previousRole });
|
32526
32488
|
previousRole = currentRole;
|
32527
32489
|
}
|
32528
|
-
},
|
32490
|
+
}, import_react_sdk102.selectLocalPeerRoleName);
|
32529
32491
|
return unsubscribe;
|
32530
32492
|
}, [vanillaStore]);
|
32531
32493
|
return null;
|
@@ -32534,14 +32496,14 @@ var init_PreviousRoleInMetadata = __esm({
|
|
32534
32496
|
});
|
32535
32497
|
|
32536
32498
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
32537
|
-
var import_react201, import_uuid12,
|
32499
|
+
var import_react201, import_uuid12, import_react_sdk103, ConferenceScreen;
|
32538
32500
|
var init_ConferenceScreen = __esm({
|
32539
32501
|
"src/Prebuilt/components/ConferenceScreen.tsx"() {
|
32540
32502
|
"use strict";
|
32541
32503
|
init_define_process_env();
|
32542
32504
|
import_react201 = __toESM(require("react"));
|
32543
32505
|
import_uuid12 = require("uuid");
|
32544
|
-
|
32506
|
+
import_react_sdk103 = require("@100mslive/react-sdk");
|
32545
32507
|
init_Footer3();
|
32546
32508
|
init_MoreSettings();
|
32547
32509
|
init_HLSFailureModal();
|
@@ -32565,17 +32527,19 @@ var init_ConferenceScreen = __esm({
|
|
32565
32527
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
32566
32528
|
const screenProps = useRoomLayoutConferencingScreen();
|
32567
32529
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
32568
|
-
const roomState = (0,
|
32569
|
-
const isConnectedToRoom = (0,
|
32570
|
-
const hmsActions = (0,
|
32530
|
+
const roomState = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectRoomState);
|
32531
|
+
const isConnectedToRoom = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectIsConnectedToRoom);
|
32532
|
+
const hmsActions = (0, import_react_sdk103.useHMSActions)();
|
32571
32533
|
const [hideControls, setHideControls] = (0, import_react201.useState)(false);
|
32572
|
-
const dropdownList = (0,
|
32534
|
+
const dropdownList = (0, import_react_sdk103.useHMSStore)((0, import_react_sdk103.selectAppData)(APP_DATA.dropdownList));
|
32573
32535
|
const authTokenInAppData = useAuthToken();
|
32574
32536
|
const headerRef = (0, import_react201.useRef)(null);
|
32575
32537
|
const footerRef = (0, import_react201.useRef)(null);
|
32576
32538
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
32577
32539
|
const dropdownListRef = (0, import_react201.useRef)();
|
32578
32540
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
32541
|
+
const { toggleAudio, toggleVideo } = (0, import_react_sdk103.useAVToggle)();
|
32542
|
+
const noAVPermissions = !(toggleAudio || toggleVideo);
|
32579
32543
|
const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
|
32580
32544
|
const autoRoomJoined = (0, import_react201.useRef)(isPreviewScreenEnabled);
|
32581
32545
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -32603,7 +32567,7 @@ var init_ConferenceScreen = __esm({
|
|
32603
32567
|
};
|
32604
32568
|
}, [dropdownList, hideControls, isMobileDevice]);
|
32605
32569
|
(0, import_react201.useEffect)(() => {
|
32606
|
-
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !==
|
32570
|
+
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk103.HMSRoomState.Connecting && !autoRoomJoined.current) {
|
32607
32571
|
hmsActions.join({
|
32608
32572
|
userName: userName || (0, import_uuid12.v4)(),
|
32609
32573
|
authToken: authTokenInAppData,
|
@@ -32623,8 +32587,8 @@ var init_ConferenceScreen = __esm({
|
|
32623
32587
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
32624
32588
|
};
|
32625
32589
|
}, [onJoinFunc]);
|
32626
|
-
if (!isConnectedToRoom && ![
|
32627
|
-
return /* @__PURE__ */ import_react201.default.createElement(FullPageProgress_default, { text: roomState ===
|
32590
|
+
if (!isConnectedToRoom && ![import_react_sdk103.HMSRoomState.Reconnecting, import_react_sdk103.HMSRoomState.Disconnected].includes(roomState)) {
|
32591
|
+
return /* @__PURE__ */ import_react201.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk103.HMSRoomState.Connecting ? "Joining..." : "" });
|
32628
32592
|
}
|
32629
32593
|
const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
|
32630
32594
|
return /* @__PURE__ */ import_react201.default.createElement(import_react201.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react201.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react201.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react201.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react201.default.createElement(
|
@@ -32699,7 +32663,7 @@ var init_ConferenceScreen = __esm({
|
|
32699
32663
|
justify: "end",
|
32700
32664
|
gap: "2"
|
32701
32665
|
},
|
32702
|
-
/* @__PURE__ */ import_react201.default.createElement(RaiseHand, null),
|
32666
|
+
noAVPermissions ? /* @__PURE__ */ import_react201.default.createElement(RaiseHand, null) : null,
|
32703
32667
|
/* @__PURE__ */ import_react201.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
|
32704
32668
|
/* @__PURE__ */ import_react201.default.createElement(
|
32705
32669
|
Box,
|
@@ -32810,7 +32774,7 @@ var init_ErrorBoundary = __esm({
|
|
32810
32774
|
|
32811
32775
|
// src/Prebuilt/services/FeatureFlags.jsx
|
32812
32776
|
function FeatureFlagsInit() {
|
32813
|
-
const roomId = (0,
|
32777
|
+
const roomId = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomID);
|
32814
32778
|
(0, import_react203.useEffect)(() => {
|
32815
32779
|
if (roomId) {
|
32816
32780
|
FeatureFlags.init(roomId);
|
@@ -32818,13 +32782,13 @@ function FeatureFlagsInit() {
|
|
32818
32782
|
}, [roomId]);
|
32819
32783
|
return null;
|
32820
32784
|
}
|
32821
|
-
var import_react203,
|
32785
|
+
var import_react203, import_react_sdk104, FeatureFlags;
|
32822
32786
|
var init_FeatureFlags = __esm({
|
32823
32787
|
"src/Prebuilt/services/FeatureFlags.jsx"() {
|
32824
32788
|
"use strict";
|
32825
32789
|
init_define_process_env();
|
32826
32790
|
import_react203 = require("react");
|
32827
|
-
|
32791
|
+
import_react_sdk104 = require("@100mslive/react-sdk");
|
32828
32792
|
FeatureFlags = class {
|
32829
32793
|
static init(roomId) {
|
32830
32794
|
if (!window.HMS) {
|
@@ -32882,13 +32846,13 @@ var init_Init = __esm({
|
|
32882
32846
|
});
|
32883
32847
|
|
32884
32848
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
32885
|
-
var import_react205,
|
32849
|
+
var import_react205, import_react_sdk105, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
|
32886
32850
|
var init_KeyboardInputManager = __esm({
|
32887
32851
|
"src/Prebuilt/components/Input/KeyboardInputManager.js"() {
|
32888
32852
|
"use strict";
|
32889
32853
|
init_define_process_env();
|
32890
32854
|
import_react205 = require("react");
|
32891
|
-
|
32855
|
+
import_react_sdk105 = require("@100mslive/react-sdk");
|
32892
32856
|
init_constants();
|
32893
32857
|
isEvenListenersAttached = false;
|
32894
32858
|
KeyboardInputManager = class {
|
@@ -32896,27 +32860,27 @@ var init_KeyboardInputManager = __esm({
|
|
32896
32860
|
__privateAdd(this, _actions, void 0);
|
32897
32861
|
__privateAdd(this, _store, void 0);
|
32898
32862
|
__privateAdd(this, _toggleAudio, () => __async(this, null, function* () {
|
32899
|
-
const enabled = __privateGet(this, _store).getState(
|
32863
|
+
const enabled = __privateGet(this, _store).getState(import_react_sdk105.selectIsLocalAudioEnabled);
|
32900
32864
|
yield __privateGet(this, _actions).setLocalAudioEnabled(!enabled);
|
32901
32865
|
}));
|
32902
32866
|
__privateAdd(this, _toggleVideo, () => __async(this, null, function* () {
|
32903
|
-
const enabled = __privateGet(this, _store).getState(
|
32867
|
+
const enabled = __privateGet(this, _store).getState(import_react_sdk105.selectIsLocalVideoEnabled);
|
32904
32868
|
yield __privateGet(this, _actions).setLocalVideoEnabled(!enabled);
|
32905
32869
|
}));
|
32906
32870
|
__privateAdd(this, _hideSidepane, () => {
|
32907
|
-
if (__privateGet(this, _store).getState((0,
|
32871
|
+
if (__privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.sidePane))) {
|
32908
32872
|
__privateGet(this, _actions).setAppData(APP_DATA.sidePane, "");
|
32909
32873
|
}
|
32910
32874
|
});
|
32911
32875
|
__privateAdd(this, _toggleStatsForNerds, () => {
|
32912
|
-
const uiSettings = __privateGet(this, _store).getState((0,
|
32876
|
+
const uiSettings = __privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.uiSettings));
|
32913
32877
|
const statsEnabled = uiSettings.showStatsOnTiles;
|
32914
32878
|
__privateGet(this, _actions).setAppData(APP_DATA.uiSettings, __spreadProps(__spreadValues({}, uiSettings), {
|
32915
32879
|
showStatsOnTiles: !statsEnabled
|
32916
32880
|
}));
|
32917
32881
|
});
|
32918
32882
|
__privateAdd(this, _toggleHlsStats, () => {
|
32919
|
-
__privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState((0,
|
32883
|
+
__privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.hlsStats)));
|
32920
32884
|
});
|
32921
32885
|
// eslint-disable-next-line complexity
|
32922
32886
|
__privateAdd(this, _keyDownHandler, (e) => __async(this, null, function* () {
|
@@ -32974,8 +32938,8 @@ var init_KeyboardInputManager = __esm({
|
|
32974
32938
|
_bind = new WeakMap();
|
32975
32939
|
_unbind = new WeakMap();
|
32976
32940
|
KeyboardHandler = () => {
|
32977
|
-
const store = (0,
|
32978
|
-
const actions = (0,
|
32941
|
+
const store = (0, import_react_sdk105.useHMSVanillaStore)();
|
32942
|
+
const actions = (0, import_react_sdk105.useHMSActions)();
|
32979
32943
|
(0, import_react205.useEffect)(() => {
|
32980
32944
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
32981
32945
|
keyboardManager.bindAllShortcuts();
|
@@ -33014,14 +32978,14 @@ var init_useRedirectToLeave = __esm({
|
|
33014
32978
|
});
|
33015
32979
|
|
33016
32980
|
// src/Prebuilt/AppStateContext.tsx
|
33017
|
-
var import_react207, import_react_use46,
|
32981
|
+
var import_react207, import_react_use46, import_react_sdk106, AppStateContext, useHMSAppStateContext, useAppStateManager;
|
33018
32982
|
var init_AppStateContext = __esm({
|
33019
32983
|
"src/Prebuilt/AppStateContext.tsx"() {
|
33020
32984
|
"use strict";
|
33021
32985
|
init_define_process_env();
|
33022
32986
|
import_react207 = __toESM(require("react"));
|
33023
32987
|
import_react_use46 = require("react-use");
|
33024
|
-
|
32988
|
+
import_react_sdk106 = require("@100mslive/react-sdk");
|
33025
32989
|
init_VBHandler();
|
33026
32990
|
init_roomLayoutProvider();
|
33027
32991
|
init_useRedirectToLeave();
|
@@ -33042,7 +33006,7 @@ var init_AppStateContext = __esm({
|
|
33042
33006
|
useAppStateManager = () => {
|
33043
33007
|
const roomLayout = useRoomLayout();
|
33044
33008
|
const [activeState, setActiveState] = import_react207.default.useState();
|
33045
|
-
const roomState = (0,
|
33009
|
+
const roomState = (0, import_react_sdk106.useHMSStore)(import_react_sdk106.selectRoomState);
|
33046
33010
|
const prevRoomState = (0, import_react_use46.usePreviousDistinct)(roomState);
|
33047
33011
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
33048
33012
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -33054,14 +33018,14 @@ var init_AppStateContext = __esm({
|
|
33054
33018
|
if (!roomLayout) {
|
33055
33019
|
return;
|
33056
33020
|
}
|
33057
|
-
if (roomState ===
|
33021
|
+
if (roomState === import_react_sdk106.HMSRoomState.Connected) {
|
33058
33022
|
setActiveState("meeting" /* MEETING */);
|
33059
|
-
} else if (prevRoomState && [
|
33023
|
+
} else if (prevRoomState && [import_react_sdk106.HMSRoomState.Reconnecting, import_react_sdk106.HMSRoomState.Connected, import_react_sdk106.HMSRoomState.Connecting].includes(prevRoomState) && [import_react_sdk106.HMSRoomState.Disconnecting, import_react_sdk106.HMSRoomState.Disconnected].includes(roomState)) {
|
33060
33024
|
const goTo = isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */;
|
33061
33025
|
setActiveState(isLeaveScreenEnabled ? "leave" /* LEAVE */ : goTo);
|
33062
33026
|
VBHandler.reset();
|
33063
33027
|
redirectToLeave(1e3);
|
33064
|
-
} else if (!prevRoomState && roomState ===
|
33028
|
+
} else if (!prevRoomState && roomState === import_react_sdk106.HMSRoomState.Disconnected) {
|
33065
33029
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
33066
33030
|
}
|
33067
33031
|
}, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
|
@@ -33196,7 +33160,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
33196
33160
|
|
33197
33161
|
// src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
|
33198
33162
|
function AutoplayBlockedModal() {
|
33199
|
-
const { error, resetError, unblockAudio } = (0,
|
33163
|
+
const { error, resetError, unblockAudio } = (0, import_react_sdk107.useAutoplayError)();
|
33200
33164
|
return /* @__PURE__ */ import_react210.default.createElement(
|
33201
33165
|
Dialog.Root,
|
33202
33166
|
{
|
@@ -33221,33 +33185,33 @@ function AutoplayBlockedModal() {
|
|
33221
33185
|
)))
|
33222
33186
|
);
|
33223
33187
|
}
|
33224
|
-
var import_react210,
|
33188
|
+
var import_react210, import_react_sdk107;
|
33225
33189
|
var init_AutoplayBlockedModal = __esm({
|
33226
33190
|
"src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx"() {
|
33227
33191
|
"use strict";
|
33228
33192
|
init_define_process_env();
|
33229
33193
|
import_react210 = __toESM(require("react"));
|
33230
|
-
|
33194
|
+
import_react_sdk107 = require("@100mslive/react-sdk");
|
33231
33195
|
init_src();
|
33232
33196
|
init_DialogContent2();
|
33233
33197
|
}
|
33234
33198
|
});
|
33235
33199
|
|
33236
33200
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
33237
|
-
var import_react211, import_uuid13,
|
33201
|
+
var import_react211, import_uuid13, import_react_sdk108, import_react_icons99, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
|
33238
33202
|
var init_ChatNotifications = __esm({
|
33239
33203
|
"src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
|
33240
33204
|
"use strict";
|
33241
33205
|
init_define_process_env();
|
33242
33206
|
import_react211 = __toESM(require("react"));
|
33243
33207
|
import_uuid13 = require("uuid");
|
33244
|
-
|
33208
|
+
import_react_sdk108 = require("@100mslive/react-sdk");
|
33245
33209
|
import_react_icons99 = require("@100mslive/react-icons");
|
33246
33210
|
init_ToastManager();
|
33247
33211
|
NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
33248
33212
|
ChatNotifications = () => {
|
33249
|
-
const chatState = (0,
|
33250
|
-
const localPeerId = (0,
|
33213
|
+
const chatState = (0, import_react_sdk108.useHMSStore)((0, import_react_sdk108.selectSessionStore)("chatState" /* CHAT_STATE */));
|
33214
|
+
const localPeerId = (0, import_react_sdk108.useHMSStore)(import_react_sdk108.selectLocalPeerID);
|
33251
33215
|
(0, import_react211.useEffect)(() => {
|
33252
33216
|
var _a8, _b7;
|
33253
33217
|
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
@@ -33270,19 +33234,19 @@ var init_ChatNotifications = __esm({
|
|
33270
33234
|
});
|
33271
33235
|
|
33272
33236
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
33273
|
-
var import_react212,
|
33237
|
+
var import_react212, import_react_sdk109, import_react_icons100, ChatAction, HandRaiseAction, ToastConfig;
|
33274
33238
|
var init_ToastConfig = __esm({
|
33275
33239
|
"src/Prebuilt/components/Toast/ToastConfig.jsx"() {
|
33276
33240
|
"use strict";
|
33277
33241
|
init_define_process_env();
|
33278
33242
|
import_react212 = __toESM(require("react"));
|
33279
|
-
|
33243
|
+
import_react_sdk109 = require("@100mslive/react-sdk");
|
33280
33244
|
import_react_icons100 = require("@100mslive/react-icons");
|
33281
33245
|
init_Button2();
|
33282
33246
|
init_roomLayoutProvider();
|
33283
33247
|
init_useSidepane();
|
33284
33248
|
init_constants();
|
33285
|
-
ChatAction = import_react212.default.forwardRef((
|
33249
|
+
ChatAction = import_react212.default.forwardRef((_, ref) => {
|
33286
33250
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33287
33251
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
33288
33252
|
if (isChatOpen) {
|
@@ -33292,10 +33256,10 @@ var init_ToastConfig = __esm({
|
|
33292
33256
|
});
|
33293
33257
|
HandRaiseAction = import_react212.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
33294
33258
|
var _a8, _b7, _c;
|
33295
|
-
const hmsActions = (0,
|
33259
|
+
const hmsActions = (0, import_react_sdk109.useHMSActions)();
|
33296
33260
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
33297
33261
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
33298
|
-
const peer = (0,
|
33262
|
+
const peer = (0, import_react_sdk109.useHMSStore)((0, import_react_sdk109.selectPeerByID)(id));
|
33299
33263
|
const layout = useRoomLayout();
|
33300
33264
|
const {
|
33301
33265
|
bring_to_stage_label,
|
@@ -33533,21 +33497,21 @@ var init_ToastBatcher = __esm({
|
|
33533
33497
|
});
|
33534
33498
|
|
33535
33499
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
33536
|
-
var import_react213,
|
33500
|
+
var import_react213, import_react_sdk110, HandRaisedNotifications;
|
33537
33501
|
var init_HandRaisedNotifications = __esm({
|
33538
33502
|
"src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
|
33539
33503
|
"use strict";
|
33540
33504
|
init_define_process_env();
|
33541
33505
|
import_react213 = require("react");
|
33542
|
-
|
33506
|
+
import_react_sdk110 = require("@100mslive/react-sdk");
|
33543
33507
|
init_ToastBatcher();
|
33544
33508
|
init_useRoomLayoutScreen();
|
33545
33509
|
init_useUISettings();
|
33546
33510
|
init_constants();
|
33547
33511
|
HandRaisedNotifications = () => {
|
33548
|
-
const notification = (0,
|
33549
|
-
const roomState = (0,
|
33550
|
-
const vanillaStore = (0,
|
33512
|
+
const notification = (0, import_react_sdk110.useHMSNotifications)(import_react_sdk110.HMSNotificationTypes.HAND_RAISE_CHANGED);
|
33513
|
+
const roomState = (0, import_react_sdk110.useHMSStore)(import_react_sdk110.selectRoomState);
|
33514
|
+
const vanillaStore = (0, import_react_sdk110.useHMSVanillaStore)();
|
33551
33515
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
33552
33516
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
33553
33517
|
(0, import_react213.useEffect)(() => {
|
@@ -33555,11 +33519,11 @@ var init_HandRaisedNotifications = __esm({
|
|
33555
33519
|
if (!(notification == null ? void 0 : notification.data)) {
|
33556
33520
|
return;
|
33557
33521
|
}
|
33558
|
-
if (roomState !==
|
33522
|
+
if (roomState !== import_react_sdk110.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
|
33559
33523
|
return;
|
33560
33524
|
}
|
33561
|
-
const hasPeerHandRaised = vanillaStore.getState((0,
|
33562
|
-
const peer = vanillaStore.getState((0,
|
33525
|
+
const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk110.selectHasPeerHandRaised)(notification.data.id));
|
33526
|
+
const peer = vanillaStore.getState((0, import_react_sdk110.selectPeerByID)(notification.data.id));
|
33563
33527
|
if (hasPeerHandRaised) {
|
33564
33528
|
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));
|
33565
33529
|
ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
|
@@ -33572,17 +33536,17 @@ var init_HandRaisedNotifications = __esm({
|
|
33572
33536
|
});
|
33573
33537
|
|
33574
33538
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
33575
|
-
var import_react214,
|
33539
|
+
var import_react214, import_react_sdk111, InitErrorModal;
|
33576
33540
|
var init_InitErrorModal = __esm({
|
33577
33541
|
"src/Prebuilt/components/Notifications/InitErrorModal.tsx"() {
|
33578
33542
|
"use strict";
|
33579
33543
|
init_define_process_env();
|
33580
33544
|
import_react214 = __toESM(require("react"));
|
33581
|
-
|
33545
|
+
import_react_sdk111 = require("@100mslive/react-sdk");
|
33582
33546
|
init_src();
|
33583
33547
|
init_DialogContent2();
|
33584
33548
|
InitErrorModal = () => {
|
33585
|
-
const notification = (0,
|
33549
|
+
const notification = (0, import_react_sdk111.useHMSNotifications)(import_react_sdk111.HMSNotificationTypes.ERROR);
|
33586
33550
|
const [showModal, setShowModal] = (0, import_react214.useState)(false);
|
33587
33551
|
const [info, setInfo] = (0, import_react214.useState)({ title: "Init Error", description: "" });
|
33588
33552
|
(0, import_react214.useEffect)(() => {
|
@@ -33611,23 +33575,23 @@ var init_InitErrorModal = __esm({
|
|
33611
33575
|
});
|
33612
33576
|
|
33613
33577
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
33614
|
-
var import_react215,
|
33578
|
+
var import_react215, import_react_sdk112, notificationTypes, PeerNotifications;
|
33615
33579
|
var init_PeerNotifications = __esm({
|
33616
33580
|
"src/Prebuilt/components/Notifications/PeerNotifications.tsx"() {
|
33617
33581
|
"use strict";
|
33618
33582
|
init_define_process_env();
|
33619
33583
|
import_react215 = require("react");
|
33620
|
-
|
33584
|
+
import_react_sdk112 = require("@100mslive/react-sdk");
|
33621
33585
|
init_ToastBatcher();
|
33622
33586
|
init_useUISettings();
|
33623
33587
|
init_constants();
|
33624
33588
|
notificationTypes = [
|
33625
|
-
|
33626
|
-
|
33627
|
-
|
33589
|
+
import_react_sdk112.HMSNotificationTypes.PEER_LIST,
|
33590
|
+
import_react_sdk112.HMSNotificationTypes.PEER_JOINED,
|
33591
|
+
import_react_sdk112.HMSNotificationTypes.PEER_LEFT
|
33628
33592
|
];
|
33629
33593
|
PeerNotifications = () => {
|
33630
|
-
const notification = (0,
|
33594
|
+
const notification = (0, import_react_sdk112.useHMSNotifications)(notificationTypes);
|
33631
33595
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
33632
33596
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
33633
33597
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
@@ -33637,17 +33601,17 @@ var init_PeerNotifications = __esm({
|
|
33637
33601
|
}
|
33638
33602
|
console.debug(`[${notification.type}]`, notification);
|
33639
33603
|
switch (notification.type) {
|
33640
|
-
case
|
33604
|
+
case import_react_sdk112.HMSNotificationTypes.PEER_LIST:
|
33641
33605
|
if (!isPeerJoinSubscribed || notification.data.length === 0) {
|
33642
33606
|
return;
|
33643
33607
|
}
|
33644
33608
|
break;
|
33645
|
-
case
|
33609
|
+
case import_react_sdk112.HMSNotificationTypes.PEER_JOINED:
|
33646
33610
|
if (!isPeerJoinSubscribed) {
|
33647
33611
|
return;
|
33648
33612
|
}
|
33649
33613
|
break;
|
33650
|
-
case
|
33614
|
+
case import_react_sdk112.HMSNotificationTypes.PEER_LEFT:
|
33651
33615
|
if (selectedPeer.id === notification.data.id) {
|
33652
33616
|
setPeerSelector({});
|
33653
33617
|
}
|
@@ -33683,7 +33647,7 @@ var init_ios_perm_0 = __esm({
|
|
33683
33647
|
|
33684
33648
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
33685
33649
|
function PermissionErrorModal() {
|
33686
|
-
const notification = (0,
|
33650
|
+
const notification = (0, import_react_sdk113.useHMSNotifications)(import_react_sdk113.HMSNotificationTypes.ERROR);
|
33687
33651
|
const [deviceType, setDeviceType] = (0, import_react216.useState)("");
|
33688
33652
|
const [isSystemError, setIsSystemError] = (0, import_react216.useState)(false);
|
33689
33653
|
const isMobile = (0, import_react_use48.useMedia)(config.media.md);
|
@@ -33742,14 +33706,14 @@ function PermissionErrorModal() {
|
|
33742
33706
|
!isMobile ? /* @__PURE__ */ import_react216.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react216.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
33743
33707
|
))) : null;
|
33744
33708
|
}
|
33745
|
-
var import_react216, import_react_use48,
|
33709
|
+
var import_react216, import_react_use48, import_react_sdk113;
|
33746
33710
|
var init_PermissionErrorModal = __esm({
|
33747
33711
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
33748
33712
|
"use strict";
|
33749
33713
|
init_define_process_env();
|
33750
33714
|
import_react216 = __toESM(require("react"));
|
33751
33715
|
import_react_use48 = require("react-use");
|
33752
|
-
|
33716
|
+
import_react_sdk113 = require("@100mslive/react-sdk");
|
33753
33717
|
init_src();
|
33754
33718
|
init_android_perm_1();
|
33755
33719
|
init_ios_perm_0();
|
@@ -33758,36 +33722,36 @@ var init_PermissionErrorModal = __esm({
|
|
33758
33722
|
});
|
33759
33723
|
|
33760
33724
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
33761
|
-
var import_react217,
|
33725
|
+
var import_react217, import_react_sdk114, notificationTypes2, notificationId, ReconnectNotifications;
|
33762
33726
|
var init_ReconnectNotifications = __esm({
|
33763
33727
|
"src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
|
33764
33728
|
"use strict";
|
33765
33729
|
init_define_process_env();
|
33766
33730
|
import_react217 = __toESM(require("react"));
|
33767
|
-
|
33731
|
+
import_react_sdk114 = require("@100mslive/react-sdk");
|
33768
33732
|
init_src();
|
33769
33733
|
init_ToastConfig();
|
33770
33734
|
init_ToastManager();
|
33771
33735
|
notificationTypes2 = [
|
33772
|
-
|
33773
|
-
|
33774
|
-
|
33736
|
+
import_react_sdk114.HMSNotificationTypes.RECONNECTED,
|
33737
|
+
import_react_sdk114.HMSNotificationTypes.RECONNECTING,
|
33738
|
+
import_react_sdk114.HMSNotificationTypes.ERROR
|
33775
33739
|
];
|
33776
33740
|
notificationId = null;
|
33777
33741
|
ReconnectNotifications = () => {
|
33778
|
-
const notification = (0,
|
33742
|
+
const notification = (0, import_react_sdk114.useHMSNotifications)(notificationTypes2);
|
33779
33743
|
const [open, setOpen] = (0, import_react217.useState)(false);
|
33780
33744
|
(0, import_react217.useEffect)(() => {
|
33781
33745
|
var _a8, _b7;
|
33782
33746
|
if (!notification) {
|
33783
33747
|
return;
|
33784
33748
|
}
|
33785
|
-
if (notification.type ===
|
33749
|
+
if (notification.type === import_react_sdk114.HMSNotificationTypes.ERROR && ((_a8 = notification.data) == null ? void 0 : _a8.isTerminal)) {
|
33786
33750
|
setOpen(false);
|
33787
|
-
} else if (notification.type ===
|
33751
|
+
} else if (notification.type === import_react_sdk114.HMSNotificationTypes.RECONNECTED) {
|
33788
33752
|
notificationId = ToastManager.replaceToast(notificationId, ToastConfig.RECONNECTED.single());
|
33789
33753
|
setOpen(false);
|
33790
|
-
} else if (notification.type ===
|
33754
|
+
} else if (notification.type === import_react_sdk114.HMSNotificationTypes.RECONNECTING) {
|
33791
33755
|
notificationId = ToastManager.replaceToast(
|
33792
33756
|
notificationId,
|
33793
33757
|
ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
|
@@ -33817,30 +33781,30 @@ var init_ReconnectNotifications = __esm({
|
|
33817
33781
|
});
|
33818
33782
|
|
33819
33783
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
33820
|
-
var import_react218,
|
33784
|
+
var import_react218, import_react_sdk115, import_react_icons101, TrackBulkUnmuteModal;
|
33821
33785
|
var init_TrackBulkUnmuteModal = __esm({
|
33822
33786
|
"src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
|
33823
33787
|
"use strict";
|
33824
33788
|
init_define_process_env();
|
33825
33789
|
import_react218 = __toESM(require("react"));
|
33826
|
-
|
33790
|
+
import_react_sdk115 = require("@100mslive/react-sdk");
|
33827
33791
|
import_react_icons101 = require("@100mslive/react-icons");
|
33828
33792
|
init_DialogContent2();
|
33829
33793
|
TrackBulkUnmuteModal = () => {
|
33830
|
-
const hmsActions = (0,
|
33794
|
+
const hmsActions = (0, import_react_sdk115.useHMSActions)();
|
33831
33795
|
const [muteNotification, setMuteNotification] = (0, import_react218.useState)(null);
|
33832
|
-
const notification = (0,
|
33833
|
-
|
33834
|
-
|
33835
|
-
|
33796
|
+
const notification = (0, import_react_sdk115.useHMSNotifications)([
|
33797
|
+
import_react_sdk115.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
33798
|
+
import_react_sdk115.HMSNotificationTypes.ROOM_ENDED,
|
33799
|
+
import_react_sdk115.HMSNotificationTypes.REMOVED_FROM_ROOM
|
33836
33800
|
]);
|
33837
33801
|
(0, import_react218.useEffect)(() => {
|
33838
33802
|
switch (notification == null ? void 0 : notification.type) {
|
33839
|
-
case
|
33840
|
-
case
|
33803
|
+
case import_react_sdk115.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
33804
|
+
case import_react_sdk115.HMSNotificationTypes.ROOM_ENDED:
|
33841
33805
|
setMuteNotification(null);
|
33842
33806
|
break;
|
33843
|
-
case
|
33807
|
+
case import_react_sdk115.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST:
|
33844
33808
|
if (notification == null ? void 0 : notification.data.enabled) {
|
33845
33809
|
setMuteNotification(notification.data);
|
33846
33810
|
}
|
@@ -33874,21 +33838,21 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
33874
33838
|
});
|
33875
33839
|
|
33876
33840
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
33877
|
-
var import_react219,
|
33841
|
+
var import_react219, import_react_sdk116, notificationTypes3, TrackNotifications;
|
33878
33842
|
var init_TrackNotifications = __esm({
|
33879
33843
|
"src/Prebuilt/components/Notifications/TrackNotifications.tsx"() {
|
33880
33844
|
"use strict";
|
33881
33845
|
init_define_process_env();
|
33882
33846
|
import_react219 = require("react");
|
33883
|
-
|
33847
|
+
import_react_sdk116 = require("@100mslive/react-sdk");
|
33884
33848
|
notificationTypes3 = [
|
33885
|
-
|
33886
|
-
|
33887
|
-
|
33888
|
-
|
33849
|
+
import_react_sdk116.HMSNotificationTypes.TRACK_ADDED,
|
33850
|
+
import_react_sdk116.HMSNotificationTypes.TRACK_REMOVED,
|
33851
|
+
import_react_sdk116.HMSNotificationTypes.TRACK_MUTED,
|
33852
|
+
import_react_sdk116.HMSNotificationTypes.TRACK_UNMUTED
|
33889
33853
|
];
|
33890
33854
|
TrackNotifications = () => {
|
33891
|
-
const notification = (0,
|
33855
|
+
const notification = (0, import_react_sdk116.useHMSNotifications)(notificationTypes3);
|
33892
33856
|
(0, import_react219.useEffect)(() => {
|
33893
33857
|
if (notification) {
|
33894
33858
|
console.debug(`[${notification.type}]`, notification);
|
@@ -33900,30 +33864,30 @@ var init_TrackNotifications = __esm({
|
|
33900
33864
|
});
|
33901
33865
|
|
33902
33866
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
33903
|
-
var import_react220,
|
33867
|
+
var import_react220, import_react_sdk117, import_react_icons102, TrackUnmuteModal;
|
33904
33868
|
var init_TrackUnmuteModal = __esm({
|
33905
33869
|
"src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
|
33906
33870
|
"use strict";
|
33907
33871
|
init_define_process_env();
|
33908
33872
|
import_react220 = __toESM(require("react"));
|
33909
|
-
|
33873
|
+
import_react_sdk117 = require("@100mslive/react-sdk");
|
33910
33874
|
import_react_icons102 = require("@100mslive/react-icons");
|
33911
33875
|
init_DialogContent2();
|
33912
33876
|
TrackUnmuteModal = () => {
|
33913
|
-
const hmsActions = (0,
|
33914
|
-
const notification = (0,
|
33915
|
-
|
33916
|
-
|
33917
|
-
|
33877
|
+
const hmsActions = (0, import_react_sdk117.useHMSActions)();
|
33878
|
+
const notification = (0, import_react_sdk117.useHMSNotifications)([
|
33879
|
+
import_react_sdk117.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST,
|
33880
|
+
import_react_sdk117.HMSNotificationTypes.ROOM_ENDED,
|
33881
|
+
import_react_sdk117.HMSNotificationTypes.REMOVED_FROM_ROOM
|
33918
33882
|
]);
|
33919
33883
|
const [muteNotification, setMuteNotification] = (0, import_react220.useState)(null);
|
33920
33884
|
(0, import_react220.useEffect)(() => {
|
33921
33885
|
switch (notification == null ? void 0 : notification.type) {
|
33922
|
-
case
|
33923
|
-
case
|
33886
|
+
case import_react_sdk117.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
33887
|
+
case import_react_sdk117.HMSNotificationTypes.ROOM_ENDED:
|
33924
33888
|
setMuteNotification(null);
|
33925
33889
|
break;
|
33926
|
-
case
|
33890
|
+
case import_react_sdk117.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
33927
33891
|
if (notification == null ? void 0 : notification.data.enabled) {
|
33928
33892
|
setMuteNotification(notification.data);
|
33929
33893
|
}
|
@@ -33956,17 +33920,17 @@ var init_TrackUnmuteModal = __esm({
|
|
33956
33920
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
33957
33921
|
function Notifications() {
|
33958
33922
|
var _a8, _b7;
|
33959
|
-
const localPeerID = (0,
|
33960
|
-
const notification = (0,
|
33923
|
+
const localPeerID = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectLocalPeerID);
|
33924
|
+
const notification = (0, import_react_sdk118.useHMSNotifications)();
|
33961
33925
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
33962
|
-
const roomState = (0,
|
33926
|
+
const roomState = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectRoomState);
|
33963
33927
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
33964
33928
|
const isNotificationDisabled = useIsNotificationDisabled();
|
33965
33929
|
const screenProps = useRoomLayoutConferencingScreen();
|
33966
|
-
const vanillaStore = (0,
|
33930
|
+
const vanillaStore = (0, import_react_sdk118.useHMSVanillaStore)();
|
33967
33931
|
const togglePollView = usePollViewToggle();
|
33968
|
-
const { showNotification } = (0,
|
33969
|
-
const amIScreenSharing = (0,
|
33932
|
+
const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
|
33933
|
+
const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectIsLocalScreenShared);
|
33970
33934
|
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
33971
33935
|
const handleRoleChangeDenied = (0, import_react221.useCallback)((request) => {
|
33972
33936
|
ToastManager.addToast({
|
@@ -33974,17 +33938,17 @@ function Notifications() {
|
|
33974
33938
|
variant: "error"
|
33975
33939
|
});
|
33976
33940
|
}, []);
|
33977
|
-
(0,
|
33941
|
+
(0, import_react_sdk118.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
33978
33942
|
(0, import_react221.useEffect)(() => {
|
33979
|
-
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
33943
|
+
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
|
33980
33944
|
if (!notification || isNotificationDisabled) {
|
33981
33945
|
return;
|
33982
33946
|
}
|
33983
33947
|
switch (notification.type) {
|
33984
|
-
case
|
33948
|
+
case import_react_sdk118.HMSNotificationTypes.NAME_UPDATED:
|
33985
33949
|
console.log(notification.data.id + " changed their name to " + notification.data.name);
|
33986
33950
|
break;
|
33987
|
-
case
|
33951
|
+
case import_react_sdk118.HMSNotificationTypes.ERROR:
|
33988
33952
|
if (((_a9 = notification.data) == null ? void 0 : _a9.isTerminal) && ((_b8 = notification.data) == null ? void 0 : _b8.action) !== "INIT") {
|
33989
33953
|
if ([500, 6008].includes((_c = notification.data) == null ? void 0 : _c.code)) {
|
33990
33954
|
ToastManager.addToast({
|
@@ -34016,8 +33980,8 @@ function Notifications() {
|
|
34016
33980
|
title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
|
34017
33981
|
});
|
34018
33982
|
break;
|
34019
|
-
case
|
34020
|
-
if (((
|
33983
|
+
case import_react_sdk118.HMSNotificationTypes.ROLE_UPDATED: {
|
33984
|
+
if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
34021
33985
|
ToastManager.addToast({
|
34022
33986
|
title: `You are now a ${notification.data.roleName}`
|
34023
33987
|
});
|
@@ -34025,7 +33989,7 @@ function Notifications() {
|
|
34025
33989
|
}
|
34026
33990
|
break;
|
34027
33991
|
}
|
34028
|
-
case
|
33992
|
+
case import_react_sdk118.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
34029
33993
|
const track = (_o2 = notification.data) == null ? void 0 : _o2.track;
|
34030
33994
|
if (!notification.data.enabled) {
|
34031
33995
|
ToastManager.addToast({
|
@@ -34034,21 +33998,21 @@ function Notifications() {
|
|
34034
33998
|
});
|
34035
33999
|
}
|
34036
34000
|
break;
|
34037
|
-
case
|
34038
|
-
case
|
34001
|
+
case import_react_sdk118.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
34002
|
+
case import_react_sdk118.HMSNotificationTypes.ROOM_ENDED:
|
34039
34003
|
ToastManager.addToast({
|
34040
34004
|
title: `${notification.message}.
|
34041
34005
|
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
34042
34006
|
});
|
34043
34007
|
break;
|
34044
|
-
case
|
34008
|
+
case import_react_sdk118.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
|
34045
34009
|
ToastManager.addToast({
|
34046
34010
|
title: notification.message
|
34047
34011
|
});
|
34048
34012
|
break;
|
34049
|
-
case
|
34013
|
+
case import_react_sdk118.HMSNotificationTypes.POLL_STARTED:
|
34050
34014
|
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
34051
|
-
const pollStartedBy = vanillaStore.getState((0,
|
34015
|
+
const pollStartedBy = vanillaStore.getState((0, import_react_sdk118.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
34052
34016
|
const pollToastID = ToastManager.addToast({
|
34053
34017
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
34054
34018
|
action: /* @__PURE__ */ import_react221.default.createElement(
|
@@ -34070,14 +34034,14 @@ function Notifications() {
|
|
34070
34034
|
pollToastKey[notification.data.id] = pollToastID;
|
34071
34035
|
}
|
34072
34036
|
break;
|
34073
|
-
case
|
34037
|
+
case import_react_sdk118.HMSNotificationTypes.POLL_STOPPED:
|
34074
34038
|
const pollID = notification == null ? void 0 : notification.data.id;
|
34075
34039
|
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
34076
34040
|
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
34077
34041
|
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
34078
34042
|
}
|
34079
34043
|
break;
|
34080
|
-
case
|
34044
|
+
case import_react_sdk118.HMSNotificationTypes.NEW_MESSAGE:
|
34081
34045
|
if (amIScreenSharing) {
|
34082
34046
|
showNotification(`New message from ${notification.data.senderName}`, {
|
34083
34047
|
body: notification.data.message,
|
@@ -34092,15 +34056,15 @@ function Notifications() {
|
|
34092
34056
|
if (isNotificationDisabled) {
|
34093
34057
|
return null;
|
34094
34058
|
}
|
34095
|
-
return /* @__PURE__ */ import_react221.default.createElement(import_react221.default.Fragment, null, /* @__PURE__ */ import_react221.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react221.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react221.default.createElement(TrackNotifications, null), roomState ===
|
34059
|
+
return /* @__PURE__ */ import_react221.default.createElement(import_react221.default.Fragment, null, /* @__PURE__ */ import_react221.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react221.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react221.default.createElement(TrackNotifications, null), roomState === import_react_sdk118.HMSRoomState.Connected ? /* @__PURE__ */ import_react221.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react221.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react221.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react221.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react221.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react221.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react221.default.createElement(HandRaisedNotifications, null));
|
34096
34060
|
}
|
34097
|
-
var import_react221,
|
34061
|
+
var import_react221, import_react_sdk118, import_react_icons103, pollToastKey;
|
34098
34062
|
var init_Notifications = __esm({
|
34099
34063
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
34100
34064
|
"use strict";
|
34101
34065
|
init_define_process_env();
|
34102
34066
|
import_react221 = __toESM(require("react"));
|
34103
|
-
|
34067
|
+
import_react_sdk118 = require("@100mslive/react-sdk");
|
34104
34068
|
import_react_icons103 = require("@100mslive/react-icons");
|
34105
34069
|
init_src();
|
34106
34070
|
init_roomLayoutProvider();
|
@@ -34198,19 +34162,19 @@ var init_Toast3 = __esm({
|
|
34198
34162
|
});
|
34199
34163
|
|
34200
34164
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
34201
|
-
var import_react224,
|
34165
|
+
var import_react224, import_react_sdk119, ToastContainer;
|
34202
34166
|
var init_ToastContainer = __esm({
|
34203
34167
|
"src/Prebuilt/components/Toast/ToastContainer.jsx"() {
|
34204
34168
|
"use strict";
|
34205
34169
|
init_define_process_env();
|
34206
34170
|
import_react224 = __toESM(require("react"));
|
34207
|
-
|
34171
|
+
import_react_sdk119 = require("@100mslive/react-sdk");
|
34208
34172
|
init_Toast2();
|
34209
34173
|
init_Toast3();
|
34210
34174
|
init_ToastManager();
|
34211
34175
|
init_constants();
|
34212
34176
|
ToastContainer = () => {
|
34213
|
-
const isConnected = (0,
|
34177
|
+
const isConnected = (0, import_react_sdk119.useHMSStore)(import_react_sdk119.selectIsConnectedToRoom);
|
34214
34178
|
const [toasts, setToast] = (0, import_react224.useState)([]);
|
34215
34179
|
(0, import_react224.useEffect)(() => {
|
34216
34180
|
ToastManager.addListener(setToast);
|
@@ -34267,18 +34231,18 @@ var init_RoomDetailsSheet = __esm({
|
|
34267
34231
|
});
|
34268
34232
|
|
34269
34233
|
// src/Prebuilt/layouts/Sheet.tsx
|
34270
|
-
var import_react226,
|
34234
|
+
var import_react226, import_react_sdk120, Sheet2;
|
34271
34235
|
var init_Sheet3 = __esm({
|
34272
34236
|
"src/Prebuilt/layouts/Sheet.tsx"() {
|
34273
34237
|
"use strict";
|
34274
34238
|
init_define_process_env();
|
34275
34239
|
import_react226 = __toESM(require("react"));
|
34276
|
-
|
34240
|
+
import_react_sdk120 = require("@100mslive/react-sdk");
|
34277
34241
|
init_RoomDetailsSheet();
|
34278
34242
|
init_Layout();
|
34279
34243
|
init_constants();
|
34280
34244
|
Sheet2 = () => {
|
34281
|
-
const sheet = (0,
|
34245
|
+
const sheet = (0, import_react_sdk120.useHMSStore)((0, import_react_sdk120.selectAppData)(APP_DATA.sheet));
|
34282
34246
|
let ViewComponent;
|
34283
34247
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
34284
34248
|
ViewComponent = /* @__PURE__ */ import_react226.default.createElement(RoomDetailsSheet, null);
|
@@ -34290,8 +34254,8 @@ var init_Sheet3 = __esm({
|
|
34290
34254
|
|
34291
34255
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
34292
34256
|
function FlyingEmoji() {
|
34293
|
-
const localPeerId = (0,
|
34294
|
-
const vanillaStore = (0,
|
34257
|
+
const localPeerId = (0, import_react_sdk121.useHMSStore)(import_react_sdk121.selectLocalPeerID);
|
34258
|
+
const vanillaStore = (0, import_react_sdk121.useHMSVanillaStore)();
|
34295
34259
|
const [emojis, setEmojis] = (0, import_react227.useState)([]);
|
34296
34260
|
const isMobile = (0, import_react_use50.useMedia)(config.media.md);
|
34297
34261
|
const startingPoints = (0, import_react227.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
@@ -34300,7 +34264,7 @@ function FlyingEmoji() {
|
|
34300
34264
|
if (!emojiId || !senderId || document.hidden) {
|
34301
34265
|
return;
|
34302
34266
|
}
|
34303
|
-
const senderPeerName = vanillaStore.getState((0,
|
34267
|
+
const senderPeerName = vanillaStore.getState((0, import_react_sdk121.selectPeerNameByID)(senderId));
|
34304
34268
|
const nameToShow = localPeerId === senderId ? "You" : senderPeerName;
|
34305
34269
|
const startingPoint = startingPoints[emojiCount % startingPoints.length];
|
34306
34270
|
const id = emojiCount++;
|
@@ -34319,7 +34283,7 @@ function FlyingEmoji() {
|
|
34319
34283
|
},
|
34320
34284
|
[localPeerId, vanillaStore, startingPoints]
|
34321
34285
|
);
|
34322
|
-
(0,
|
34286
|
+
(0, import_react_sdk121.useCustomEvent)({
|
34323
34287
|
type: EMOJI_REACTION_TYPE,
|
34324
34288
|
onEvent: showFlyingEmoji
|
34325
34289
|
});
|
@@ -34385,14 +34349,14 @@ function FlyingEmoji() {
|
|
34385
34349
|
})
|
34386
34350
|
);
|
34387
34351
|
}
|
34388
|
-
var import_react227, import_react_use50,
|
34352
|
+
var import_react227, import_react_use50, import_react_sdk121, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
34389
34353
|
var init_FlyingEmoji = __esm({
|
34390
34354
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
34391
34355
|
"use strict";
|
34392
34356
|
init_define_process_env();
|
34393
34357
|
import_react227 = __toESM(require("react"));
|
34394
34358
|
import_react_use50 = require("react-use");
|
34395
|
-
|
34359
|
+
import_react_sdk121 = require("@100mslive/react-sdk");
|
34396
34360
|
init_Layout();
|
34397
34361
|
init_Text2();
|
34398
34362
|
init_Theme();
|
@@ -34425,45 +34389,45 @@ var init_FlyingEmoji = __esm({
|
|
34425
34389
|
|
34426
34390
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
34427
34391
|
function RemoteStopScreenshare() {
|
34428
|
-
const actions = (0,
|
34392
|
+
const actions = (0, import_react_sdk122.useHMSActions)();
|
34429
34393
|
const onRemoteStopScreenshare = (0, import_react228.useCallback)(() => __async(this, null, function* () {
|
34430
34394
|
yield actions.setScreenShareEnabled(false);
|
34431
34395
|
}), [actions]);
|
34432
|
-
(0,
|
34396
|
+
(0, import_react_sdk122.useCustomEvent)({
|
34433
34397
|
type: REMOTE_STOP_SCREENSHARE_TYPE,
|
34434
34398
|
onEvent: onRemoteStopScreenshare
|
34435
34399
|
});
|
34436
34400
|
return /* @__PURE__ */ import_react228.default.createElement(import_react228.default.Fragment, null);
|
34437
34401
|
}
|
34438
|
-
var import_react228,
|
34402
|
+
var import_react228, import_react_sdk122;
|
34439
34403
|
var init_RemoteStopScreenshare = __esm({
|
34440
34404
|
"src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
|
34441
34405
|
"use strict";
|
34442
34406
|
init_define_process_env();
|
34443
34407
|
import_react228 = __toESM(require("react"));
|
34444
|
-
|
34408
|
+
import_react_sdk122 = require("@100mslive/react-sdk");
|
34445
34409
|
init_constants();
|
34446
34410
|
}
|
34447
34411
|
});
|
34448
34412
|
|
34449
34413
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
34450
|
-
var import_react229,
|
34414
|
+
var import_react229, import_react_sdk123, useAutoStartStreaming;
|
34451
34415
|
var init_useAutoStartStreaming = __esm({
|
34452
34416
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
|
34453
34417
|
"use strict";
|
34454
34418
|
init_define_process_env();
|
34455
34419
|
import_react229 = require("react");
|
34456
|
-
|
34420
|
+
import_react_sdk123 = require("@100mslive/react-sdk");
|
34457
34421
|
init_useUISettings();
|
34458
34422
|
init_hooks();
|
34459
34423
|
init_constants();
|
34460
34424
|
useAutoStartStreaming = () => {
|
34461
34425
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
34462
|
-
const permissions = (0,
|
34426
|
+
const permissions = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectPermissions);
|
34463
34427
|
const showStreamingUI = useShowStreamingUI();
|
34464
|
-
const hmsActions = (0,
|
34465
|
-
const isConnected = (0,
|
34466
|
-
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0,
|
34428
|
+
const hmsActions = (0, import_react_sdk123.useHMSActions)();
|
34429
|
+
const isConnected = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsConnectedToRoom);
|
34430
|
+
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk123.useRecordingStreaming)();
|
34467
34431
|
const streamStartedRef = (0, import_react229.useRef)(false);
|
34468
34432
|
const startHLS = (0, import_react229.useCallback)(() => __async(void 0, null, function* () {
|
34469
34433
|
try {
|
@@ -34513,13 +34477,13 @@ function AppRoutes({
|
|
34513
34477
|
const { activeState, rejoin } = useAppStateManager();
|
34514
34478
|
return /* @__PURE__ */ import_react230.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react230.default.createElement(import_react230.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react230.default.createElement(AppData, null), /* @__PURE__ */ import_react230.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react230.default.createElement(Notifications, null), /* @__PURE__ */ import_react230.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react230.default.createElement(Sheet2, null), /* @__PURE__ */ import_react230.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react230.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react230.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react230.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react230.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react230.default.createElement(AppStates, { activeState })));
|
34515
34479
|
}
|
34516
|
-
var import_react230,
|
34480
|
+
var import_react230, import_react_sdk124, HMSPrebuilt, AppStates, BackSwipe;
|
34517
34481
|
var init_App = __esm({
|
34518
34482
|
"src/Prebuilt/App.tsx"() {
|
34519
34483
|
"use strict";
|
34520
34484
|
init_define_process_env();
|
34521
34485
|
import_react230 = __toESM(require("react"));
|
34522
|
-
|
34486
|
+
import_react_sdk124 = require("@100mslive/react-sdk");
|
34523
34487
|
init_AppData();
|
34524
34488
|
init_AuthToken();
|
34525
34489
|
init_ConferenceScreen();
|
@@ -34564,7 +34528,7 @@ var init_App = __esm({
|
|
34564
34528
|
const [hydrated, setHydrated] = import_react230.default.useState(false);
|
34565
34529
|
(0, import_react230.useEffect)(() => {
|
34566
34530
|
setHydrated(true);
|
34567
|
-
const hms = new
|
34531
|
+
const hms = new import_react_sdk124.HMSReactiveStore();
|
34568
34532
|
const hmsStore = hms.getStore();
|
34569
34533
|
const hmsActions = hms.getActions();
|
34570
34534
|
const hmsNotifications = hms.getNotifications();
|
@@ -34630,7 +34594,7 @@ var init_App = __esm({
|
|
34630
34594
|
}
|
34631
34595
|
},
|
34632
34596
|
/* @__PURE__ */ import_react230.default.createElement(
|
34633
|
-
|
34597
|
+
import_react_sdk124.HMSRoomProvider,
|
34634
34598
|
{
|
34635
34599
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
34636
34600
|
actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
|
@@ -34700,8 +34664,8 @@ var init_App = __esm({
|
|
34700
34664
|
return /* @__PURE__ */ import_react230.default.createElement(ConferenceScreen, null);
|
34701
34665
|
};
|
34702
34666
|
BackSwipe = () => {
|
34703
|
-
const isConnectedToRoom = (0,
|
34704
|
-
const hmsActions = (0,
|
34667
|
+
const isConnectedToRoom = (0, import_react_sdk124.useHMSStore)(import_react_sdk124.selectIsConnectedToRoom);
|
34668
|
+
const hmsActions = (0, import_react_sdk124.useHMSActions)();
|
34705
34669
|
(0, import_react230.useEffect)(() => {
|
34706
34670
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
34707
34671
|
if (isConnectedToRoom) {
|