@100mslive/roomkit-react 0.3.2-alpha.0 → 0.3.2-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-C5XHK2VY.js → HLSView-SF6SAQ5J.js} +2 -2
- package/dist/Prebuilt/components/Footer/ParticipantList.d.ts +2 -1
- package/dist/Prebuilt/components/Footer/RoleAccordion.d.ts +1 -0
- package/dist/Prebuilt/components/hooks/useGroupOnStageActions.d.ts +10 -0
- package/dist/Prebuilt/components/hooks/usePeerOnStageActions.d.ts +14 -0
- package/dist/{chunk-E7AEJ446.js → chunk-OYWNLHYU.js} +607 -490
- package/dist/chunk-OYWNLHYU.js.map +7 -0
- package/dist/index.cjs.js +1968 -1839
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +323 -210
- package/dist/meta.esbuild.json +136 -23
- package/package.json +7 -6
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +90 -66
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +20 -1
- package/src/Prebuilt/components/MwebLandscapePrompt.tsx +1 -1
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +0 -1
- package/src/Prebuilt/components/hooks/useGroupOnStageActions.tsx +54 -0
- package/src/Prebuilt/components/hooks/usePeerOnStageActions.tsx +49 -0
- package/src/Prebuilt/layouts/SidePane.tsx +0 -1
- package/dist/chunk-E7AEJ446.js.map +0 -7
- /package/dist/{HLSView-C5XHK2VY.js.map → HLSView-SF6SAQ5J.js.map} +0 -0
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4b037299-3b0b-44cd-9821-371209724b26", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.2-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4b037299-3b0b-44cd-9821-371209724b26", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.2-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "603", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240304.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:17250", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.2-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8188029671", 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: "bb718372bf21a6c1945c644902cc208c0fca4a32", 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: "572533de504462440f808949fd809bf30bfb4a9894dcda25f9e970cd35a0c770", 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--1709814295078-0.513546591118083:/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--1709814294880-0.16899459668660377:/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--1709814272578-0.5600659867162328:/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--1709814272398-0.3103307104447173:/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_9c21e862-086e-4f02-a6a0-8905ea9b7b78", INVOCATION_ID: "c90df66756bd4790aea5cffc0b29916a", 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: "474", 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 24", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.2-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.2-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "bb718372bf21a6c1945c644902cc208c0fca4a32", 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_4b037299-3b0b-44cd-9821-371209724b26", 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_4b037299-3b0b-44cd-9821-371209724b26", 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_4b037299-3b0b-44cd-9821-371209724b26" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_12fe43a7-da7e-4adb-89a7-9d9359e88c4b", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.2-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_12fe43a7-da7e-4adb-89a7-9d9359e88c4b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.2-alpha.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.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240304.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18716", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.2-alpha.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: "8230919324", 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: "8689984dfac962416e160878c8a5821c88cdc8dd", 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: "d615d909b4fcb6abbb1f13077191948646c5331a006b4af086885f8bfef42ce4", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710151475160-0.6335721460602881:/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--1710151474963-0.49605264219753575:/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--1710151453230-0.0854734951363545:/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--1710151453045-0.14764167053299349:/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_09e638cf-2bf7-4c60-9523-498dce2fce43", INVOCATION_ID: "9683c93c0e0c418fb7a527abbd9646ea", 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: "476", 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 428", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.2-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.2-alpha.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: "8689984dfac962416e160878c8a5821c88cdc8dd", 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_12fe43a7-da7e-4adb-89a7-9d9359e88c4b", 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_12fe43a7-da7e-4adb-89a7-9d9359e88c4b", 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_12fe43a7-da7e-4adb-89a7-9d9359e88c4b" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -2928,8 +2928,8 @@ var require_lodash = __commonJS({
|
|
2928
2928
|
return { "start": start, "end": end };
|
2929
2929
|
}
|
2930
2930
|
function getWrapDetails(source) {
|
2931
|
-
var
|
2932
|
-
return
|
2931
|
+
var match13 = source.match(reWrapDetails);
|
2932
|
+
return match13 ? match13[1].split(reSplitDetails) : [];
|
2933
2933
|
}
|
2934
2934
|
function hasPath(object, path, hasFunc) {
|
2935
2935
|
path = castPath(path, object);
|
@@ -3197,8 +3197,8 @@ var require_lodash = __commonJS({
|
|
3197
3197
|
if (string.charCodeAt(0) === 46) {
|
3198
3198
|
result2.push("");
|
3199
3199
|
}
|
3200
|
-
string.replace(rePropName, function(
|
3201
|
-
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number ||
|
3200
|
+
string.replace(rePropName, function(match13, number, quote, subString) {
|
3201
|
+
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match13);
|
3202
3202
|
});
|
3203
3203
|
return result2;
|
3204
3204
|
});
|
@@ -4764,7 +4764,7 @@ var require_lodash = __commonJS({
|
|
4764
4764
|
"g"
|
4765
4765
|
);
|
4766
4766
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
4767
|
-
string.replace(reDelimiters, function(
|
4767
|
+
string.replace(reDelimiters, function(match13, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
4768
4768
|
interpolateValue || (interpolateValue = esTemplateValue);
|
4769
4769
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
4770
4770
|
if (escapeValue) {
|
@@ -4778,8 +4778,8 @@ var require_lodash = __commonJS({
|
|
4778
4778
|
if (interpolateValue) {
|
4779
4779
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
4780
4780
|
}
|
4781
|
-
index = offset +
|
4782
|
-
return
|
4781
|
+
index = offset + match13.length;
|
4782
|
+
return match13;
|
4783
4783
|
});
|
4784
4784
|
source += "';\n";
|
4785
4785
|
var variable = hasOwnProperty.call(options, "variable") && options.variable;
|
@@ -4867,13 +4867,13 @@ var require_lodash = __commonJS({
|
|
4867
4867
|
}
|
4868
4868
|
if (isRegExp(separator)) {
|
4869
4869
|
if (string.slice(end).search(separator)) {
|
4870
|
-
var
|
4870
|
+
var match13, substring = result2;
|
4871
4871
|
if (!separator.global) {
|
4872
4872
|
separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
|
4873
4873
|
}
|
4874
4874
|
separator.lastIndex = 0;
|
4875
|
-
while (
|
4876
|
-
var newEnd =
|
4875
|
+
while (match13 = separator.exec(substring)) {
|
4876
|
+
var newEnd = match13.index;
|
4877
4877
|
}
|
4878
4878
|
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
4879
4879
|
}
|
@@ -5628,7 +5628,7 @@ var require_ua_parser = __commonJS({
|
|
5628
5628
|
}
|
5629
5629
|
};
|
5630
5630
|
var rgxMapper = function(ua, arrays) {
|
5631
|
-
var i = 0, j, k2, p, q2, matches,
|
5631
|
+
var i = 0, j, k2, p, q2, matches, match13;
|
5632
5632
|
while (i < arrays.length && !matches) {
|
5633
5633
|
var regex = arrays[i], props = arrays[i + 1];
|
5634
5634
|
j = k2 = 0;
|
@@ -5639,26 +5639,26 @@ var require_ua_parser = __commonJS({
|
|
5639
5639
|
matches = regex[j++].exec(ua);
|
5640
5640
|
if (!!matches) {
|
5641
5641
|
for (p = 0; p < props.length; p++) {
|
5642
|
-
|
5642
|
+
match13 = matches[++k2];
|
5643
5643
|
q2 = props[p];
|
5644
5644
|
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
5645
5645
|
if (q2.length === 2) {
|
5646
5646
|
if (typeof q2[1] == FUNC_TYPE) {
|
5647
|
-
this[q2[0]] = q2[1].call(this,
|
5647
|
+
this[q2[0]] = q2[1].call(this, match13);
|
5648
5648
|
} else {
|
5649
5649
|
this[q2[0]] = q2[1];
|
5650
5650
|
}
|
5651
5651
|
} else if (q2.length === 3) {
|
5652
5652
|
if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
|
5653
|
-
this[q2[0]] =
|
5653
|
+
this[q2[0]] = match13 ? q2[1].call(this, match13, q2[2]) : undefined2;
|
5654
5654
|
} else {
|
5655
|
-
this[q2[0]] =
|
5655
|
+
this[q2[0]] = match13 ? match13.replace(q2[1], q2[2]) : undefined2;
|
5656
5656
|
}
|
5657
5657
|
} else if (q2.length === 4) {
|
5658
|
-
this[q2[0]] =
|
5658
|
+
this[q2[0]] = match13 ? q2[3].call(this, match13.replace(q2[1], q2[2])) : undefined2;
|
5659
5659
|
}
|
5660
5660
|
} else {
|
5661
|
-
this[q2] =
|
5661
|
+
this[q2] = match13 ? match13 : undefined2;
|
5662
5662
|
}
|
5663
5663
|
}
|
5664
5664
|
}
|
@@ -8636,13 +8636,13 @@ var require_parser = __commonJS({
|
|
8636
8636
|
var toIntIfInt = function(v2) {
|
8637
8637
|
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
8638
8638
|
};
|
8639
|
-
var attachProperties = function(
|
8639
|
+
var attachProperties = function(match13, location, names, rawName) {
|
8640
8640
|
if (rawName && !names) {
|
8641
|
-
location[rawName] = toIntIfInt(
|
8641
|
+
location[rawName] = toIntIfInt(match13[1]);
|
8642
8642
|
} else {
|
8643
8643
|
for (var i = 0; i < names.length; i += 1) {
|
8644
|
-
if (
|
8645
|
-
location[names[i]] = toIntIfInt(
|
8644
|
+
if (match13[i + 1] != null) {
|
8645
|
+
location[names[i]] = toIntIfInt(match13[i + 1]);
|
8646
8646
|
}
|
8647
8647
|
}
|
8648
8648
|
}
|
@@ -11906,8 +11906,8 @@ import {
|
|
11906
11906
|
HMSReactiveStore,
|
11907
11907
|
HMSRoomProvider,
|
11908
11908
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
11909
|
-
useHMSActions as
|
11910
|
-
useHMSStore as
|
11909
|
+
useHMSActions as useHMSActions54,
|
11910
|
+
useHMSStore as useHMSStore95
|
11911
11911
|
} from "@100mslive/react-sdk";
|
11912
11912
|
|
11913
11913
|
// src/Prebuilt/components/AppData/AppData.tsx
|
@@ -12237,7 +12237,7 @@ import {
|
|
12237
12237
|
|
12238
12238
|
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
12239
12239
|
init_define_process_env();
|
12240
|
-
var import_lodash2 = __toESM(require_lodash());
|
12240
|
+
var import_lodash2 = __toESM(require_lodash(), 1);
|
12241
12241
|
import React22 from "react";
|
12242
12242
|
|
12243
12243
|
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
@@ -12890,7 +12890,7 @@ var AuthToken_default = AuthToken;
|
|
12890
12890
|
|
12891
12891
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
12892
12892
|
init_define_process_env();
|
12893
|
-
import React155, { useEffect as useEffect50, useRef as useRef25, useState as
|
12893
|
+
import React155, { useEffect as useEffect50, useRef as useRef25, useState as useState65 } from "react";
|
12894
12894
|
import { v4 as uuid3 } from "uuid";
|
12895
12895
|
import {
|
12896
12896
|
HMSRoomState as HMSRoomState7,
|
@@ -12898,8 +12898,8 @@ import {
|
|
12898
12898
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
12899
12899
|
selectRoomState as selectRoomState7,
|
12900
12900
|
useAVToggle as useAVToggle7,
|
12901
|
-
useHMSActions as
|
12902
|
-
useHMSStore as
|
12901
|
+
useHMSActions as useHMSActions47,
|
12902
|
+
useHMSStore as useHMSStore84
|
12903
12903
|
} from "@100mslive/react-sdk";
|
12904
12904
|
|
12905
12905
|
// src/Prebuilt/components/Footer/Footer.tsx
|
@@ -16363,8 +16363,8 @@ function createSelectorCreator(memoize) {
|
|
16363
16363
|
var createSelector = createSelectorCreator(defaultMemoize);
|
16364
16364
|
|
16365
16365
|
// ../hms-video-store/dist/index.js
|
16366
|
-
var import_ua_parser_js = __toESM(require_ua_parser());
|
16367
|
-
var import_lodash3 = __toESM(require_lodash2());
|
16366
|
+
var import_ua_parser_js = __toESM(require_ua_parser(), 1);
|
16367
|
+
var import_lodash3 = __toESM(require_lodash2(), 1);
|
16368
16368
|
import { v4 as Wa } from "uuid";
|
16369
16369
|
import { v4 as Ga } from "uuid";
|
16370
16370
|
|
@@ -16379,8 +16379,8 @@ init_define_process_env();
|
|
16379
16379
|
var logDisabled_ = true;
|
16380
16380
|
var deprecationWarnings_ = true;
|
16381
16381
|
function extractVersion(uastring, expr, pos) {
|
16382
|
-
const
|
16383
|
-
return
|
16382
|
+
const match13 = uastring.match(expr);
|
16383
|
+
return match13 && match13.length >= pos && parseInt(match13[pos], 10);
|
16384
16384
|
}
|
16385
16385
|
function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
|
16386
16386
|
if (!window2.RTCPeerConnection) {
|
@@ -16682,7 +16682,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16682
16682
|
if (matches) {
|
16683
16683
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
16684
16684
|
devices = devices.filter((d2) => d2.kind === "videoinput");
|
16685
|
-
let dev = devices.find((d2) => matches.some((
|
16685
|
+
let dev = devices.find((d2) => matches.some((match13) => d2.label.toLowerCase().includes(match13)));
|
16686
16686
|
if (!dev && devices.length && matches.includes("back")) {
|
16687
16687
|
dev = devices[devices.length - 1];
|
16688
16688
|
}
|
@@ -18109,11 +18109,11 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18109
18109
|
});
|
18110
18110
|
};
|
18111
18111
|
const getRemoteFirefoxVersion = function(description) {
|
18112
|
-
const
|
18113
|
-
if (
|
18112
|
+
const match13 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
18113
|
+
if (match13 === null || match13.length < 2) {
|
18114
18114
|
return -1;
|
18115
18115
|
}
|
18116
|
-
const version = parseInt(
|
18116
|
+
const version = parseInt(match13[1], 10);
|
18117
18117
|
return version !== version ? -1 : version;
|
18118
18118
|
};
|
18119
18119
|
const getCanSendMaxMessageSize = function(remoteIsFirefox) {
|
@@ -18138,12 +18138,12 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18138
18138
|
if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
|
18139
18139
|
maxMessageSize = 65535;
|
18140
18140
|
}
|
18141
|
-
const
|
18141
|
+
const match13 = import_sdp.default.matchPrefix(
|
18142
18142
|
description.sdp,
|
18143
18143
|
"a=max-message-size:"
|
18144
18144
|
);
|
18145
|
-
if (
|
18146
|
-
maxMessageSize = parseInt(
|
18145
|
+
if (match13.length > 0) {
|
18146
|
+
maxMessageSize = parseInt(match13[0].substring(19), 10);
|
18147
18147
|
} else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
|
18148
18148
|
maxMessageSize = 2147483637;
|
18149
18149
|
}
|
@@ -18462,12 +18462,12 @@ function adapterFactory({ window: window2 } = {}, options = {
|
|
18462
18462
|
var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 : window });
|
18463
18463
|
|
18464
18464
|
// ../hms-video-store/dist/index.js
|
18465
|
-
var import_lodash4 = __toESM(require_lodash2());
|
18465
|
+
var import_lodash4 = __toESM(require_lodash2(), 1);
|
18466
18466
|
import { v4 as eo } from "uuid";
|
18467
18467
|
import { v4 as so } from "uuid";
|
18468
18468
|
import { v4 as co } from "uuid";
|
18469
18469
|
import { EventEmitter2 as lo } from "eventemitter2";
|
18470
|
-
var Lt = __toESM(require_lib());
|
18470
|
+
var Lt = __toESM(require_lib(), 1);
|
18471
18471
|
import { EventEmitter2 as Io } from "eventemitter2";
|
18472
18472
|
import { v4 as Lo } from "uuid";
|
18473
18473
|
import { EventEmitter2 as Do } from "eventemitter2";
|
@@ -18501,7 +18501,7 @@ var Yi = (a2, e) => {
|
|
18501
18501
|
};
|
18502
18502
|
var ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18503
18503
|
var dr = ba((Xc, $a) => {
|
18504
|
-
$a.exports = { version: "0.12.2-alpha.
|
18504
|
+
$a.exports = { version: "0.12.2-alpha.2", 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", type: "module", 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"] };
|
18505
18505
|
});
|
18506
18506
|
var Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
|
18507
18507
|
var Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
|
@@ -21026,7 +21026,7 @@ var ChatToggle = () => {
|
|
21026
21026
|
|
21027
21027
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
21028
21028
|
init_define_process_env();
|
21029
|
-
import React74, { Fragment as Fragment9, useCallback as useCallback19, useState as
|
21029
|
+
import React74, { Fragment as Fragment9, useCallback as useCallback19, useState as useState33 } from "react";
|
21030
21030
|
import { useDebounce, useMedia as useMedia10 } from "react-use";
|
21031
21031
|
import {
|
21032
21032
|
selectHandRaisedPeers,
|
@@ -21035,12 +21035,19 @@ import {
|
|
21035
21035
|
selectIsPeerAudioEnabled,
|
21036
21036
|
selectLocalPeerID as selectLocalPeerID7,
|
21037
21037
|
selectPeerCount as selectPeerCount4,
|
21038
|
-
|
21039
|
-
|
21040
|
-
useHMSActions as useHMSActions24,
|
21041
|
-
useHMSStore as useHMSStore37
|
21038
|
+
selectPermissions as selectPermissions13,
|
21039
|
+
useHMSStore as useHMSStore39
|
21042
21040
|
} from "@100mslive/react-sdk";
|
21043
|
-
import {
|
21041
|
+
import {
|
21042
|
+
AddIcon,
|
21043
|
+
ChangeRoleIcon as ChangeRoleIcon2,
|
21044
|
+
CrossIcon as CrossIcon11,
|
21045
|
+
HandIcon as HandIcon4,
|
21046
|
+
MicOffIcon as MicOffIcon4,
|
21047
|
+
PeopleIcon as PeopleIcon2,
|
21048
|
+
SearchIcon,
|
21049
|
+
VerticalMenuIcon as VerticalMenuIcon5
|
21050
|
+
} from "@100mslive/react-icons";
|
21044
21051
|
|
21045
21052
|
// src/Prebuilt/components/Connection/ConnectionIndicator.tsx
|
21046
21053
|
init_define_process_env();
|
@@ -21192,7 +21199,7 @@ init_define_process_env();
|
|
21192
21199
|
import React73, { useEffect as useEffect18 } from "react";
|
21193
21200
|
import { useMeasure } from "react-use";
|
21194
21201
|
import { FixedSizeList } from "react-window";
|
21195
|
-
import { selectIsLargeRoom, useHMSStore as
|
21202
|
+
import { selectIsLargeRoom, useHMSStore as useHMSStore37, usePaginatedParticipants } from "@100mslive/react-sdk";
|
21196
21203
|
import { ChevronRightIcon } from "@100mslive/react-icons";
|
21197
21204
|
|
21198
21205
|
// src/Prebuilt/components/Footer/RoleOptions.tsx
|
@@ -21339,6 +21346,56 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
21339
21346
|
) : null);
|
21340
21347
|
};
|
21341
21348
|
|
21349
|
+
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
21350
|
+
init_define_process_env();
|
21351
|
+
import { match as match6, P as P3 } from "ts-pattern";
|
21352
|
+
import { selectPermissions as selectPermissions11, useHMSActions as useHMSActions24, useHMSStore as useHMSStore36 } from "@100mslive/react-sdk";
|
21353
|
+
var useGroupOnStageActions = ({ peers }) => {
|
21354
|
+
var _a8;
|
21355
|
+
const hmsActions = useHMSActions24();
|
21356
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
21357
|
+
const {
|
21358
|
+
bring_to_stage_label,
|
21359
|
+
remove_from_stage_label,
|
21360
|
+
on_stage_role,
|
21361
|
+
off_stage_roles = [],
|
21362
|
+
skip_preview_for_role_change = false
|
21363
|
+
} = elements.on_stage_exp || {};
|
21364
|
+
const canChangeRole = (_a8 = useHMSStore36(selectPermissions11)) == null ? void 0 : _a8.changeRole;
|
21365
|
+
const offStageRolePeers = peers.filter(
|
21366
|
+
(peer) => match6({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
|
21367
|
+
{
|
21368
|
+
on_stage_role: P3.when((role) => !!role),
|
21369
|
+
bring_to_stage_label: P3.when((label) => !!label),
|
21370
|
+
roleName: P3.when((role) => !!role && off_stage_roles.includes(role))
|
21371
|
+
},
|
21372
|
+
() => true
|
21373
|
+
).otherwise(() => false)
|
21374
|
+
);
|
21375
|
+
const lowerAllHands = () => __async(void 0, null, function* () {
|
21376
|
+
return Promise.all(peers.map((peer) => hmsActions.lowerRemotePeerHand(peer.id)));
|
21377
|
+
});
|
21378
|
+
const bringAllToStage = () => {
|
21379
|
+
if (!canChangeRole || !on_stage_role) {
|
21380
|
+
return;
|
21381
|
+
}
|
21382
|
+
return Promise.all(
|
21383
|
+
offStageRolePeers.map((peer) => {
|
21384
|
+
return hmsActions.changeRoleOfPeer(peer.id, on_stage_role, skip_preview_for_role_change).then(() => {
|
21385
|
+
return skip_preview_for_role_change ? hmsActions.lowerRemotePeerHand(peer.id) : null;
|
21386
|
+
});
|
21387
|
+
})
|
21388
|
+
);
|
21389
|
+
};
|
21390
|
+
return {
|
21391
|
+
lowerAllHands,
|
21392
|
+
bringAllToStage,
|
21393
|
+
canBringToStage: canChangeRole && offStageRolePeers.length > 0,
|
21394
|
+
bring_to_stage_label,
|
21395
|
+
remove_from_stage_label
|
21396
|
+
};
|
21397
|
+
};
|
21398
|
+
|
21342
21399
|
// src/Prebuilt/components/Footer/RoleAccordion.tsx
|
21343
21400
|
var ROW_HEIGHT = 50;
|
21344
21401
|
var ITER_TIMER = 5e3;
|
@@ -21353,6 +21410,7 @@ var VirtualizedParticipantItem = React73.memo(
|
|
21353
21410
|
{
|
21354
21411
|
key: data3.peerList[index].id,
|
21355
21412
|
peer: data3.peerList[index],
|
21413
|
+
isHandRaisedAccordion: data3.isHandRaisedAccordion,
|
21356
21414
|
isConnected: data3.isConnected,
|
21357
21415
|
style
|
21358
21416
|
}
|
@@ -21369,7 +21427,7 @@ var RoleAccordion = ({
|
|
21369
21427
|
onActive
|
21370
21428
|
}) => {
|
21371
21429
|
const [ref, { width }] = useMeasure();
|
21372
|
-
const isLargeRoom =
|
21430
|
+
const isLargeRoom = useHMSStore37(selectIsLargeRoom);
|
21373
21431
|
const { peers, total, loadPeers } = usePaginatedParticipants({ role: roleName, limit: 10 });
|
21374
21432
|
const isOffStageRole = roleName && offStageRoles.includes(roleName);
|
21375
21433
|
let peersInAccordion = peerList;
|
@@ -21379,6 +21437,9 @@ var RoleAccordion = ({
|
|
21379
21437
|
peersInAccordion = peersInAccordion.filter((peer) => peer.name.toLowerCase().includes(filter.search || ""));
|
21380
21438
|
}
|
21381
21439
|
}
|
21440
|
+
const { bringAllToStage, bring_to_stage_label, canBringToStage, lowerAllHands } = useGroupOnStageActions({
|
21441
|
+
peers: peersInAccordion
|
21442
|
+
});
|
21382
21443
|
useEffect18(() => {
|
21383
21444
|
if (!isOffStageRole || !isLargeRoom) {
|
21384
21445
|
return;
|
@@ -21426,7 +21487,7 @@ var RoleAccordion = ({
|
|
21426
21487
|
FixedSizeList,
|
21427
21488
|
{
|
21428
21489
|
itemSize: ROW_HEIGHT,
|
21429
|
-
itemData: { peerList: peersInAccordion, isConnected },
|
21490
|
+
itemData: { peerList: peersInAccordion, isConnected, isHandRaisedAccordion },
|
21430
21491
|
itemKey,
|
21431
21492
|
itemCount: peersInAccordion.length,
|
21432
21493
|
width,
|
@@ -21449,7 +21510,53 @@ var RoleAccordion = ({
|
|
21449
21510
|
},
|
21450
21511
|
/* @__PURE__ */ React73.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
21451
21512
|
/* @__PURE__ */ React73.createElement(ChevronRightIcon, null)
|
21452
|
-
) : null));
|
21513
|
+
) : null, isHandRaisedAccordion && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(HorizontalDivider, null), /* @__PURE__ */ React73.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React73.createElement(Button, { variant: "standard", onClick: () => lowerAllHands() }, "Lower All Hands"), canBringToStage && /* @__PURE__ */ React73.createElement(Button, { onClick: () => bringAllToStage() }, bring_to_stage_label)))));
|
21514
|
+
};
|
21515
|
+
|
21516
|
+
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
21517
|
+
init_define_process_env();
|
21518
|
+
import { useState as useState32 } from "react";
|
21519
|
+
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions25, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
|
21520
|
+
var usePeerOnStageActions = ({ peerId, role }) => {
|
21521
|
+
var _a8, _b7;
|
21522
|
+
const hmsActions = useHMSActions25();
|
21523
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
21524
|
+
const {
|
21525
|
+
bring_to_stage_label,
|
21526
|
+
remove_from_stage_label,
|
21527
|
+
on_stage_role,
|
21528
|
+
off_stage_roles = [],
|
21529
|
+
skip_preview_for_role_change = false
|
21530
|
+
} = elements.on_stage_exp || {};
|
21531
|
+
const isInStage = role === on_stage_role;
|
21532
|
+
const canChangeRole = (_a8 = useHMSStore38(selectPermissions12)) == null ? void 0 : _a8.changeRole;
|
21533
|
+
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
|
21534
|
+
const prevRole = (_b7 = useHMSStore38(selectPeerMetadata3(peerId))) == null ? void 0 : _b7.prevRole;
|
21535
|
+
const [open, setOpen] = useState32(false);
|
21536
|
+
const lowerPeerHand = () => __async(void 0, null, function* () {
|
21537
|
+
yield hmsActions.lowerRemotePeerHand(peerId);
|
21538
|
+
});
|
21539
|
+
const handleStageAction = () => __async(void 0, null, function* () {
|
21540
|
+
if (isInStage) {
|
21541
|
+
prevRole && hmsActions.changeRoleOfPeer(peerId, prevRole, true);
|
21542
|
+
} else if (on_stage_role) {
|
21543
|
+
yield hmsActions.changeRoleOfPeer(peerId, on_stage_role, skip_preview_for_role_change);
|
21544
|
+
if (skip_preview_for_role_change) {
|
21545
|
+
yield lowerPeerHand();
|
21546
|
+
}
|
21547
|
+
}
|
21548
|
+
setOpen(false);
|
21549
|
+
});
|
21550
|
+
return {
|
21551
|
+
open,
|
21552
|
+
setOpen,
|
21553
|
+
lowerPeerHand,
|
21554
|
+
handleStageAction,
|
21555
|
+
shouldShowStageRoleChange,
|
21556
|
+
isInStage,
|
21557
|
+
bring_to_stage_label,
|
21558
|
+
remove_from_stage_label
|
21559
|
+
};
|
21453
21560
|
};
|
21454
21561
|
|
21455
21562
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
@@ -21457,11 +21564,11 @@ var ParticipantList = ({
|
|
21457
21564
|
offStageRoles = [],
|
21458
21565
|
onActive
|
21459
21566
|
}) => {
|
21460
|
-
const [filter, setFilter] =
|
21567
|
+
const [filter, setFilter] = useState33();
|
21461
21568
|
const { participants, isConnected, peerCount } = useParticipants(filter);
|
21462
|
-
const isLargeRoom =
|
21569
|
+
const isLargeRoom = useHMSStore39(selectIsLargeRoom2);
|
21463
21570
|
const peersOrderedByRoles = {};
|
21464
|
-
const handRaisedPeers =
|
21571
|
+
const handRaisedPeers = useHMSStore39(selectHandRaisedPeers);
|
21465
21572
|
participants.forEach((participant) => {
|
21466
21573
|
if (participant.roleName) {
|
21467
21574
|
if (peersOrderedByRoles[participant.roleName] === void 0) {
|
@@ -21524,7 +21631,7 @@ var ParticipantList = ({
|
|
21524
21631
|
));
|
21525
21632
|
};
|
21526
21633
|
var ParticipantCount = () => {
|
21527
|
-
const peerCount =
|
21634
|
+
const peerCount = useHMSStore39(selectPeerCount4);
|
21528
21635
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21529
21636
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
21530
21637
|
if (peerCount === 0) {
|
@@ -21553,9 +21660,10 @@ var ParticipantCount = () => {
|
|
21553
21660
|
var Participant = ({
|
21554
21661
|
peer,
|
21555
21662
|
isConnected,
|
21663
|
+
isHandRaisedAccordion,
|
21556
21664
|
style
|
21557
21665
|
}) => {
|
21558
|
-
const localPeerId =
|
21666
|
+
const localPeerId = useHMSStore39(selectLocalPeerID7);
|
21559
21667
|
return /* @__PURE__ */ React74.createElement(
|
21560
21668
|
Flex,
|
21561
21669
|
{
|
@@ -21582,7 +21690,15 @@ var Participant = ({
|
|
21582
21690
|
" ",
|
21583
21691
|
localPeerId === peer.id ? "(You)" : ""
|
21584
21692
|
),
|
21585
|
-
isConnected && peer.roleName ? /* @__PURE__ */ React74.createElement(
|
21693
|
+
isConnected && peer.roleName ? /* @__PURE__ */ React74.createElement(
|
21694
|
+
ParticipantActions,
|
21695
|
+
{
|
21696
|
+
peerId: peer.id,
|
21697
|
+
isLocal: peer.id === localPeerId,
|
21698
|
+
role: peer.roleName,
|
21699
|
+
isHandRaisedAccordion
|
21700
|
+
}
|
21701
|
+
) : null
|
21586
21702
|
);
|
21587
21703
|
};
|
21588
21704
|
var VirtualizedParticipants = ({
|
@@ -21637,15 +21753,20 @@ var VirtualizedParticipants = ({
|
|
21637
21753
|
);
|
21638
21754
|
};
|
21639
21755
|
var ParticipantActions = React74.memo(
|
21640
|
-
({
|
21756
|
+
({
|
21757
|
+
peerId,
|
21758
|
+
role,
|
21759
|
+
isLocal,
|
21760
|
+
isHandRaisedAccordion
|
21761
|
+
}) => {
|
21641
21762
|
var _a8, _b7;
|
21642
|
-
const isHandRaised =
|
21643
|
-
const canChangeRole = (_a8 =
|
21644
|
-
const canRemoveOthers = (_b7 =
|
21763
|
+
const isHandRaised = useHMSStore39(selectHasPeerHandRaised2(peerId));
|
21764
|
+
const canChangeRole = (_a8 = useHMSStore39(selectPermissions13)) == null ? void 0 : _a8.changeRole;
|
21765
|
+
const canRemoveOthers = (_b7 = useHMSStore39(selectPermissions13)) == null ? void 0 : _b7.removeOthers;
|
21645
21766
|
const { elements } = useRoomLayoutConferencingScreen();
|
21646
21767
|
const { on_stage_exp } = elements || {};
|
21647
21768
|
const shouldShowMoreActions = on_stage_exp && canChangeRole || canRemoveOthers;
|
21648
|
-
const isAudioMuted = !
|
21769
|
+
const isAudioMuted = !useHMSStore39(selectIsPeerAudioEnabled(peerId));
|
21649
21770
|
return /* @__PURE__ */ React74.createElement(
|
21650
21771
|
Flex,
|
21651
21772
|
{
|
@@ -21655,8 +21776,7 @@ var ParticipantActions = React74.memo(
|
|
21655
21776
|
gap: "$8"
|
21656
21777
|
}
|
21657
21778
|
},
|
21658
|
-
/* @__PURE__ */ React74.createElement(ConnectionIndicator, { peerId }),
|
21659
|
-
isHandRaised && /* @__PURE__ */ React74.createElement(
|
21779
|
+
isHandRaisedAccordion ? /* @__PURE__ */ React74.createElement(HandRaisedAccordionParticipantActions, { peerId, role }) : /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(ConnectionIndicator, { peerId }), isHandRaised && /* @__PURE__ */ React74.createElement(
|
21660
21780
|
Flex,
|
21661
21781
|
{
|
21662
21782
|
align: "center",
|
@@ -21664,8 +21784,7 @@ var ParticipantActions = React74.memo(
|
|
21664
21784
|
css: { p: "$1", c: "$on_surface_high", bg: "$surface_bright", borderRadius: "$round" }
|
21665
21785
|
},
|
21666
21786
|
/* @__PURE__ */ React74.createElement(HandIcon4, { height: 19, width: 19 })
|
21667
|
-
),
|
21668
|
-
isAudioMuted ? /* @__PURE__ */ React74.createElement(
|
21787
|
+
), isAudioMuted ? /* @__PURE__ */ React74.createElement(
|
21669
21788
|
Flex,
|
21670
21789
|
{
|
21671
21790
|
align: "center",
|
@@ -21673,41 +21792,41 @@ var ParticipantActions = React74.memo(
|
|
21673
21792
|
css: { p: "$2", c: "$on_surface_high", bg: "$surface_bright", borderRadius: "$round" }
|
21674
21793
|
},
|
21675
21794
|
/* @__PURE__ */ React74.createElement(MicOffIcon4, { height: 19, width: 19 })
|
21676
|
-
) : null,
|
21677
|
-
shouldShowMoreActions && !isLocal ? /* @__PURE__ */ React74.createElement(ParticipantMoreActions, { peerId, role, elements, canChangeRole: !!canChangeRole }) : null
|
21795
|
+
) : null, shouldShowMoreActions && !isLocal ? /* @__PURE__ */ React74.createElement(ParticipantMoreActions, { peerId, role }) : null)
|
21678
21796
|
);
|
21679
21797
|
}
|
21680
21798
|
);
|
21681
|
-
var
|
21682
|
-
|
21683
|
-
|
21684
|
-
|
21685
|
-
|
21686
|
-
|
21687
|
-
|
21688
|
-
|
21799
|
+
var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
21800
|
+
const { handleStageAction, lowerPeerHand, shouldShowStageRoleChange, isInStage } = usePeerOnStageActions({
|
21801
|
+
peerId,
|
21802
|
+
role
|
21803
|
+
});
|
21804
|
+
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(
|
21805
|
+
IconButton,
|
21806
|
+
{
|
21807
|
+
css: { p: "$1", c: "$on_surface_high", bg: "$surface_bright", borderRadius: "$round" },
|
21808
|
+
onClick: () => lowerPeerHand()
|
21809
|
+
},
|
21810
|
+
/* @__PURE__ */ React74.createElement(CrossIcon11, { height: 19, width: 19 })
|
21811
|
+
), shouldShowStageRoleChange && !isInStage && /* @__PURE__ */ React74.createElement(
|
21812
|
+
IconButton,
|
21813
|
+
{
|
21814
|
+
css: { p: "$1", c: "$on_surface_high", bg: "$primary_default", borderRadius: "$round" },
|
21815
|
+
onClick: () => handleStageAction()
|
21816
|
+
},
|
21817
|
+
/* @__PURE__ */ React74.createElement(AddIcon, { height: 19, width: 19 })
|
21818
|
+
));
|
21819
|
+
};
|
21820
|
+
var ParticipantMoreActions = ({ peerId, role }) => {
|
21689
21821
|
const {
|
21822
|
+
open,
|
21823
|
+
setOpen,
|
21690
21824
|
bring_to_stage_label,
|
21691
21825
|
remove_from_stage_label,
|
21692
|
-
|
21693
|
-
|
21694
|
-
|
21695
|
-
} =
|
21696
|
-
const isInStage = role === on_stage_role;
|
21697
|
-
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
|
21698
|
-
const prevRole = (_a8 = useHMSStore37(selectPeerMetadata3(peerId))) == null ? void 0 : _a8.prevRole;
|
21699
|
-
const [open, setOpen] = useState32(false);
|
21700
|
-
const handleStageAction = () => __async(void 0, null, function* () {
|
21701
|
-
if (isInStage) {
|
21702
|
-
prevRole && hmsActions.changeRoleOfPeer(peerId, prevRole, true);
|
21703
|
-
} else if (on_stage_role) {
|
21704
|
-
yield hmsActions.changeRoleOfPeer(peerId, on_stage_role, skip_preview_for_role_change);
|
21705
|
-
if (skip_preview_for_role_change) {
|
21706
|
-
yield hmsActions.lowerRemotePeerHand(peerId);
|
21707
|
-
}
|
21708
|
-
}
|
21709
|
-
setOpen(false);
|
21710
|
-
});
|
21826
|
+
handleStageAction,
|
21827
|
+
isInStage,
|
21828
|
+
shouldShowStageRoleChange
|
21829
|
+
} = usePeerOnStageActions({ peerId, role });
|
21711
21830
|
return /* @__PURE__ */ React74.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React74.createElement(
|
21712
21831
|
Dropdown.Trigger,
|
21713
21832
|
{
|
@@ -21900,12 +22019,12 @@ var Footer2 = ({
|
|
21900
22019
|
|
21901
22020
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
21902
22021
|
init_define_process_env();
|
21903
|
-
import React78, { useCallback as useCallback20, useState as
|
21904
|
-
import { selectHLSState as selectHLSState5, useHMSActions as
|
22022
|
+
import React78, { useCallback as useCallback20, useState as useState34 } from "react";
|
22023
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions26, useHMSStore as useHMSStore40, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
21905
22024
|
function HLSFailureModal() {
|
21906
|
-
const hlsError =
|
21907
|
-
const [openModal, setOpenModal] =
|
21908
|
-
const hmsActions =
|
22025
|
+
const hlsError = useHMSStore40(selectHLSState5).error || false;
|
22026
|
+
const [openModal, setOpenModal] = useState34(!!hlsError);
|
22027
|
+
const hmsActions = useHMSActions26();
|
21909
22028
|
const { isRTMPRunning } = useRecordingStreaming8();
|
21910
22029
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
21911
22030
|
const startHLS = useCallback20(() => __async(this, null, function* () {
|
@@ -21955,13 +22074,13 @@ import {
|
|
21955
22074
|
selectLocalPeerRoleName as selectLocalPeerRoleName4,
|
21956
22075
|
selectRoleChangeRequest,
|
21957
22076
|
useCustomEvent as useCustomEvent3,
|
21958
|
-
useHMSActions as
|
21959
|
-
useHMSStore as
|
22077
|
+
useHMSActions as useHMSActions43,
|
22078
|
+
useHMSStore as useHMSStore71
|
21960
22079
|
} from "@100mslive/react-sdk";
|
21961
22080
|
|
21962
22081
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
21963
22082
|
init_define_process_env();
|
21964
|
-
import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo11, useState as
|
22083
|
+
import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo11, useState as useState56 } from "react";
|
21965
22084
|
import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
|
21966
22085
|
import {
|
21967
22086
|
HMSRoomState as HMSRoomState5,
|
@@ -21970,7 +22089,7 @@ import {
|
|
21970
22089
|
selectRoomState as selectRoomState5,
|
21971
22090
|
selectVideoTrackByID as selectVideoTrackByID5,
|
21972
22091
|
useAVToggle as useAVToggle6,
|
21973
|
-
useHMSStore as
|
22092
|
+
useHMSStore as useHMSStore70,
|
21974
22093
|
useParticipants as useParticipants2,
|
21975
22094
|
usePreviewJoin,
|
21976
22095
|
useRecordingStreaming as useRecordingStreaming11
|
@@ -21981,8 +22100,8 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
21981
22100
|
init_define_process_env();
|
21982
22101
|
import React127, { useEffect as useEffect33 } from "react";
|
21983
22102
|
import { useMedia as useMedia22 } from "react-use";
|
21984
|
-
import { match as
|
21985
|
-
import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as
|
22103
|
+
import { match as match10 } from "ts-pattern";
|
22104
|
+
import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore69 } from "@100mslive/react-sdk";
|
21986
22105
|
|
21987
22106
|
// src/Prebuilt/components/Polls/Polls.tsx
|
21988
22107
|
init_define_process_env();
|
@@ -21990,21 +22109,21 @@ import React100 from "react";
|
|
21990
22109
|
|
21991
22110
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
21992
22111
|
init_define_process_env();
|
21993
|
-
import React81, { useEffect as useEffect21, useMemo as useMemo5, useRef as useRef15, useState as
|
22112
|
+
import React81, { useEffect as useEffect21, useMemo as useMemo5, useRef as useRef15, useState as useState35 } from "react";
|
21994
22113
|
import {
|
21995
22114
|
selectLocalPeerRoleName,
|
21996
|
-
selectPermissions as
|
22115
|
+
selectPermissions as selectPermissions15,
|
21997
22116
|
selectPolls as selectPolls2,
|
21998
|
-
useHMSActions as
|
21999
|
-
useHMSStore as
|
22117
|
+
useHMSActions as useHMSActions27,
|
22118
|
+
useHMSStore as useHMSStore42
|
22000
22119
|
} from "@100mslive/react-sdk";
|
22001
22120
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
22002
22121
|
|
22003
22122
|
// src/Prebuilt/components/Streaming/Common.jsx
|
22004
22123
|
init_define_process_env();
|
22005
22124
|
import React79 from "react";
|
22006
|
-
import { selectPermissions as
|
22007
|
-
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as
|
22125
|
+
import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
|
22126
|
+
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon12, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
|
22008
22127
|
var ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
22009
22128
|
return /* @__PURE__ */ React79.createElement(
|
22010
22129
|
Flex,
|
@@ -22035,7 +22154,7 @@ var ContentHeader = ({ onBack, onClose, title = "", content }) => {
|
|
22035
22154
|
},
|
22036
22155
|
title
|
22037
22156
|
) : null, /* @__PURE__ */ React79.createElement(Text, { variant: "h6" }, content)),
|
22038
|
-
onClose ? /* @__PURE__ */ React79.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React79.createElement(
|
22157
|
+
onClose ? /* @__PURE__ */ React79.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React79.createElement(CrossIcon12, null)) : null
|
22039
22158
|
);
|
22040
22159
|
};
|
22041
22160
|
var Container3 = ({ children, rounded = false }) => {
|
@@ -22103,7 +22222,7 @@ var StatusIndicator = ({ status }) => {
|
|
22103
22222
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
22104
22223
|
var PollsQuizMenu = () => {
|
22105
22224
|
const togglePollView = usePollViewToggle();
|
22106
|
-
const permissions =
|
22225
|
+
const permissions = useHMSStore42(selectPermissions15);
|
22107
22226
|
return /* @__PURE__ */ React81.createElement(Container3, { rounded: true }, /* @__PURE__ */ React81.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ React81.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ React81.createElement(AddMenu, null), /* @__PURE__ */ React81.createElement(PrevMenu, null)));
|
22108
22227
|
};
|
22109
22228
|
function InteractionSelectionCard({
|
@@ -22143,14 +22262,14 @@ function InteractionSelectionCard({
|
|
22143
22262
|
);
|
22144
22263
|
}
|
22145
22264
|
var AddMenu = () => {
|
22146
|
-
const actions =
|
22147
|
-
const [title, setTitle] =
|
22148
|
-
const localPeerRoleName =
|
22149
|
-
const [hideVoteCount, setHideVoteCount] =
|
22150
|
-
const [error, setError] =
|
22151
|
-
const [titleError, setTitleError] =
|
22265
|
+
const actions = useHMSActions27();
|
22266
|
+
const [title, setTitle] = useState35("");
|
22267
|
+
const localPeerRoleName = useHMSStore42(selectLocalPeerRoleName);
|
22268
|
+
const [hideVoteCount, setHideVoteCount] = useState35(false);
|
22269
|
+
const [error, setError] = useState35();
|
22270
|
+
const [titleError, setTitleError] = useState35("");
|
22152
22271
|
const { setPollState } = usePollViewState();
|
22153
|
-
const [interactionType, setInteractionType] =
|
22272
|
+
const [interactionType, setInteractionType] = useState35("Poll" /* POLL */);
|
22154
22273
|
const inputRef = useRef15(null);
|
22155
22274
|
useEffect21(() => {
|
22156
22275
|
if (inputRef.current) {
|
@@ -22226,8 +22345,8 @@ var AddMenu = () => {
|
|
22226
22345
|
), /* @__PURE__ */ React81.createElement(ErrorText, { error: error || titleError })));
|
22227
22346
|
};
|
22228
22347
|
var PrevMenu = () => {
|
22229
|
-
const hmsActions =
|
22230
|
-
const polls =
|
22348
|
+
const hmsActions = useHMSActions27();
|
22349
|
+
const polls = useHMSStore42(selectPolls2);
|
22231
22350
|
const sortedPolls = useMemo5(
|
22232
22351
|
() => {
|
22233
22352
|
var _a8;
|
@@ -22238,7 +22357,7 @@ var PrevMenu = () => {
|
|
22238
22357
|
},
|
22239
22358
|
[polls]
|
22240
22359
|
);
|
22241
|
-
const permissions =
|
22360
|
+
const permissions = useHMSStore42(selectPermissions15);
|
22242
22361
|
useEffect21(() => {
|
22243
22362
|
const updatePolls = () => __async(void 0, null, function* () {
|
22244
22363
|
yield hmsActions.interactivityCenter.getPolls();
|
@@ -22274,20 +22393,20 @@ var InteractionCard = ({ id, title, status }) => {
|
|
22274
22393
|
|
22275
22394
|
// src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
|
22276
22395
|
init_define_process_env();
|
22277
|
-
import React91, { useMemo as useMemo6, useState as
|
22396
|
+
import React91, { useMemo as useMemo6, useState as useState37 } from "react";
|
22278
22397
|
import { v4 as uuid2 } from "uuid";
|
22279
|
-
import { selectPollByID, useHMSActions as
|
22398
|
+
import { selectPollByID, useHMSActions as useHMSActions28, useHMSStore as useHMSStore43, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
22280
22399
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
22281
22400
|
|
22282
22401
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
22283
22402
|
init_define_process_env();
|
22284
|
-
import React89, { useCallback as useCallback21, useRef as useRef16, useState as
|
22403
|
+
import React89, { useCallback as useCallback21, useRef as useRef16, useState as useState36 } from "react";
|
22285
22404
|
import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
|
22286
22405
|
|
22287
22406
|
// src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
|
22288
22407
|
init_define_process_env();
|
22289
22408
|
import React82 from "react";
|
22290
|
-
import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as
|
22409
|
+
import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon13 } from "@100mslive/react-icons";
|
22291
22410
|
var DeleteQuestionModal = ({
|
22292
22411
|
open,
|
22293
22412
|
setOpen,
|
@@ -22314,7 +22433,7 @@ var DeleteQuestionModal = ({
|
|
22314
22433
|
},
|
22315
22434
|
onClick: () => setOpen(false)
|
22316
22435
|
},
|
22317
|
-
/* @__PURE__ */ React82.createElement(
|
22436
|
+
/* @__PURE__ */ React82.createElement(CrossIcon13, null)
|
22318
22437
|
)
|
22319
22438
|
), /* @__PURE__ */ React82.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "The question will be deleted. You can't undo this action."), /* @__PURE__ */ React82.createElement(Flex, { css: { w: "100%", mt: "$12", gap: "$md" } }, /* @__PURE__ */ React82.createElement(
|
22320
22439
|
Button,
|
@@ -22573,12 +22692,12 @@ var QuestionForm = ({
|
|
22573
22692
|
var _a8;
|
22574
22693
|
const ref = useRef16(null);
|
22575
22694
|
const selectionBg = useDropdownSelection();
|
22576
|
-
const [openDelete, setOpenDelete] =
|
22577
|
-
const [open, setOpen] =
|
22578
|
-
const [type, setType] =
|
22579
|
-
const [text, setText] =
|
22580
|
-
const [weight, setWeight] =
|
22581
|
-
const [options, setOptions] =
|
22695
|
+
const [openDelete, setOpenDelete] = useState36(false);
|
22696
|
+
const [open, setOpen] = useState36(false);
|
22697
|
+
const [type, setType] = useState36(question.type || "single-choice" /* SINGLE_CHOICE */);
|
22698
|
+
const [text, setText] = useState36(question.text);
|
22699
|
+
const [weight, setWeight] = useState36(isQuiz ? 10 : 1);
|
22700
|
+
const [options, setOptions] = useState36(
|
22582
22701
|
(question == null ? void 0 : question.options) || [
|
22583
22702
|
{ text: "", isCorrectAnswer: false },
|
22584
22703
|
{ text: "", isCorrectAnswer: false }
|
@@ -22797,12 +22916,12 @@ var getEditableFormat = (questions) => {
|
|
22797
22916
|
};
|
22798
22917
|
function CreateQuestions() {
|
22799
22918
|
var _a8, _b7, _c, _d;
|
22800
|
-
const actions =
|
22919
|
+
const actions = useHMSActions28();
|
22801
22920
|
const { isHLSRunning } = useRecordingStreaming9();
|
22802
22921
|
const togglePollView = usePollViewToggle();
|
22803
22922
|
const { pollInView: id, setPollView } = usePollViewState();
|
22804
|
-
const interaction =
|
22805
|
-
const [questions, setQuestions] =
|
22923
|
+
const interaction = useHMSStore43(selectPollByID(id));
|
22924
|
+
const [questions, setQuestions] = useState37(
|
22806
22925
|
((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
|
22807
22926
|
);
|
22808
22927
|
const isValidPoll = useMemo6(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
|
@@ -22894,9 +23013,9 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
|
|
22894
23013
|
|
22895
23014
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
22896
23015
|
init_define_process_env();
|
22897
|
-
import React95, { useState as
|
22898
|
-
import { selectPollByID as selectPollByID3, useHMSStore as
|
22899
|
-
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as
|
23016
|
+
import React95, { useState as useState39 } from "react";
|
23017
|
+
import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore46 } from "@100mslive/react-sdk";
|
23018
|
+
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon14 } from "@100mslive/react-icons";
|
22900
23019
|
|
22901
23020
|
// src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
|
22902
23021
|
init_define_process_env();
|
@@ -22959,7 +23078,7 @@ var LeaderboardEntry = ({
|
|
22959
23078
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
22960
23079
|
init_define_process_env();
|
22961
23080
|
import React94 from "react";
|
22962
|
-
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as
|
23081
|
+
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
|
22963
23082
|
|
22964
23083
|
// src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
|
22965
23084
|
init_define_process_env();
|
@@ -22980,16 +23099,16 @@ var StatisticBox = ({ title, value = 0 }) => {
|
|
22980
23099
|
|
22981
23100
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
22982
23101
|
init_define_process_env();
|
22983
|
-
import { useEffect as useEffect22, useState as
|
23102
|
+
import { useEffect as useEffect22, useState as useState38 } from "react";
|
22984
23103
|
import {
|
22985
23104
|
selectPollByID as selectPollByID2,
|
22986
|
-
useHMSActions as
|
22987
|
-
useHMSStore as
|
23105
|
+
useHMSActions as useHMSActions29,
|
23106
|
+
useHMSStore as useHMSStore44
|
22988
23107
|
} from "@100mslive/react-sdk";
|
22989
23108
|
var useQuizSummary = (quizID) => {
|
22990
|
-
const hmsActions =
|
22991
|
-
const quiz =
|
22992
|
-
const [quizLeaderboard, setQuizLeaderboard] =
|
23109
|
+
const hmsActions = useHMSActions29();
|
23110
|
+
const quiz = useHMSStore44(selectPollByID2(quizID));
|
23111
|
+
const [quizLeaderboard, setQuizLeaderboard] = useState38();
|
22993
23112
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
22994
23113
|
totalUsers: 0,
|
22995
23114
|
votedUsers: 0,
|
@@ -22997,7 +23116,7 @@ var useQuizSummary = (quizID) => {
|
|
22997
23116
|
avgTime: 0,
|
22998
23117
|
correctUsers: 0
|
22999
23118
|
};
|
23000
|
-
const [calculations, setCalculations] =
|
23119
|
+
const [calculations, setCalculations] = useState38({ maxPossibleScore: 0, totalResponses: 0 });
|
23001
23120
|
useEffect22(() => {
|
23002
23121
|
const fetchLeaderboardData = () => __async(void 0, null, function* () {
|
23003
23122
|
var _a8;
|
@@ -23025,7 +23144,7 @@ var useQuizSummary = (quizID) => {
|
|
23025
23144
|
|
23026
23145
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
23027
23146
|
var PeerParticipationSummary = ({ quiz }) => {
|
23028
|
-
const localPeerId =
|
23147
|
+
const localPeerId = useHMSStore45(selectLocalPeerID8);
|
23029
23148
|
const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
|
23030
23149
|
if (quiz.state !== "stopped") {
|
23031
23150
|
return /* @__PURE__ */ React94.createElement(React94.Fragment, null);
|
@@ -23066,9 +23185,9 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
23066
23185
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
23067
23186
|
var LeaderboardSummary = ({ pollID }) => {
|
23068
23187
|
var _a8, _b7;
|
23069
|
-
const quiz =
|
23188
|
+
const quiz = useHMSStore46(selectPollByID3(pollID));
|
23070
23189
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
23071
|
-
const [viewAllEntries, setViewAllEntries] =
|
23190
|
+
const [viewAllEntries, setViewAllEntries] = useState39(false);
|
23072
23191
|
const { setPollView } = usePollViewState();
|
23073
23192
|
const toggleSidepane = useSidepaneToggle();
|
23074
23193
|
if (!quiz || !quizLeaderboard)
|
@@ -23087,7 +23206,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
23087
23206
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
|
23088
23207
|
onClick: toggleSidepane
|
23089
23208
|
},
|
23090
|
-
/* @__PURE__ */ React95.createElement(
|
23209
|
+
/* @__PURE__ */ React95.createElement(CrossIcon14, null)
|
23091
23210
|
)), !viewAllEntries ? /* @__PURE__ */ React95.createElement(PeerParticipationSummary, { quiz }) : null, /* @__PURE__ */ React95.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", mt: "$4" } }, "Leaderboard"), /* @__PURE__ */ React95.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, "Based on score and time taken to cast the correct answer"), /* @__PURE__ */ React95.createElement(
|
23092
23211
|
Box,
|
23093
23212
|
{
|
@@ -23141,12 +23260,12 @@ init_define_process_env();
|
|
23141
23260
|
import React99 from "react";
|
23142
23261
|
import {
|
23143
23262
|
selectPeerNameByID,
|
23144
|
-
selectPermissions as
|
23263
|
+
selectPermissions as selectPermissions16,
|
23145
23264
|
selectPollByID as selectPollByID4,
|
23146
|
-
useHMSActions as
|
23147
|
-
useHMSStore as
|
23265
|
+
useHMSActions as useHMSActions31,
|
23266
|
+
useHMSStore as useHMSStore49
|
23148
23267
|
} from "@100mslive/react-sdk";
|
23149
|
-
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as
|
23268
|
+
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
|
23150
23269
|
|
23151
23270
|
// src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
|
23152
23271
|
init_define_process_env();
|
@@ -23154,9 +23273,9 @@ import React97 from "react";
|
|
23154
23273
|
|
23155
23274
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
23156
23275
|
init_define_process_env();
|
23157
|
-
import React96, { useCallback as useCallback22, useMemo as useMemo7, useRef as useRef17, useState as
|
23158
|
-
import { match as
|
23159
|
-
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as
|
23276
|
+
import React96, { useCallback as useCallback22, useMemo as useMemo7, useRef as useRef17, useState as useState40 } from "react";
|
23277
|
+
import { match as match7 } from "ts-pattern";
|
23278
|
+
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
|
23160
23279
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
23161
23280
|
var QuestionCard2 = ({
|
23162
23281
|
pollID,
|
@@ -23174,8 +23293,8 @@ var QuestionCard2 = ({
|
|
23174
23293
|
responses = [],
|
23175
23294
|
rolesThatCanViewResponses
|
23176
23295
|
}) => {
|
23177
|
-
const actions =
|
23178
|
-
const localPeer =
|
23296
|
+
const actions = useHMSActions30();
|
23297
|
+
const localPeer = useHMSStore47(selectLocalPeer);
|
23179
23298
|
const localPeerResponse = responses == null ? void 0 : responses.find(
|
23180
23299
|
(response) => {
|
23181
23300
|
var _a8, _b7;
|
@@ -23183,7 +23302,7 @@ var QuestionCard2 = ({
|
|
23183
23302
|
}
|
23184
23303
|
);
|
23185
23304
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
23186
|
-
const localPeerRoleName =
|
23305
|
+
const localPeerRoleName = useHMSStore47(selectLocalPeerRoleName2);
|
23187
23306
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
23188
23307
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
23189
23308
|
const isLive = pollState === "started";
|
@@ -23191,9 +23310,9 @@ var QuestionCard2 = ({
|
|
23191
23310
|
const canRespond = isLive && !localPeerResponse;
|
23192
23311
|
const startTime = useRef17(Date.now());
|
23193
23312
|
const isCorrectAnswer = checkCorrectAnswer(answer, localPeerResponse, type);
|
23194
|
-
const [singleOptionAnswer, setSingleOptionAnswer] =
|
23195
|
-
const [multipleOptionAnswer, setMultipleOptionAnswer] =
|
23196
|
-
const [showOptions, setShowOptions] =
|
23313
|
+
const [singleOptionAnswer, setSingleOptionAnswer] = useState40();
|
23314
|
+
const [multipleOptionAnswer, setMultipleOptionAnswer] = useState40(/* @__PURE__ */ new Set());
|
23315
|
+
const [showOptions, setShowOptions] = useState40(true);
|
23197
23316
|
const respondedToQuiz = isQuiz && localPeerResponse && !localPeerResponse.skipped;
|
23198
23317
|
const isValidVote = useMemo7(() => {
|
23199
23318
|
if (type === "single-choice" /* SINGLE_CHOICE */) {
|
@@ -23232,7 +23351,7 @@ var QuestionCard2 = ({
|
|
23232
23351
|
{
|
23233
23352
|
variant: "caption",
|
23234
23353
|
css: {
|
23235
|
-
color:
|
23354
|
+
color: match7({ respondedToQuiz, isLive, isCorrectAnswer }).when(
|
23236
23355
|
({ respondedToQuiz: respondedToQuiz2, isLive: isLive2 }) => respondedToQuiz2 && !isLive2,
|
23237
23356
|
({ isCorrectAnswer: isCorrectAnswer2 }) => isCorrectAnswer2 ? "$alert_success" : "$alert_error_default"
|
23238
23357
|
).otherwise(() => "$on_surface_low"),
|
@@ -23242,7 +23361,7 @@ var QuestionCard2 = ({
|
|
23242
23361
|
gap: "$4"
|
23243
23362
|
}
|
23244
23363
|
},
|
23245
|
-
|
23364
|
+
match7({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
|
23246
23365
|
({ respondedToQuiz: respondedToQuiz2, pollEnded: pollEnded2 }) => respondedToQuiz2 && pollEnded2,
|
23247
23366
|
({ isCorrectAnswer: isCorrectAnswer2 }) => {
|
23248
23367
|
return isCorrectAnswer2 ? /* @__PURE__ */ React96.createElement(CheckCircleIcon5, { height: 16, width: 16 }) : /* @__PURE__ */ React96.createElement(CrossCircleIcon, { height: 16, width: 16 });
|
@@ -23372,13 +23491,13 @@ var StandardView = ({ poll }) => {
|
|
23372
23491
|
|
23373
23492
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
23374
23493
|
init_define_process_env();
|
23375
|
-
import React98, { useState as
|
23376
|
-
import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as
|
23494
|
+
import React98, { useState as useState41 } from "react";
|
23495
|
+
import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
|
23377
23496
|
var TimedView = ({ poll }) => {
|
23378
23497
|
var _a8, _b7, _c;
|
23379
|
-
const localPeerId =
|
23498
|
+
const localPeerId = useHMSStore48(selectLocalPeerID9);
|
23380
23499
|
const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
|
23381
|
-
const [currentIndex, setCurrentIndex] =
|
23500
|
+
const [currentIndex, setCurrentIndex] = useState41(lastAttemptedIndex);
|
23382
23501
|
const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
|
23383
23502
|
const attemptedAll = ((_b7 = poll.questions) == null ? void 0 : _b7.length) === lastAttemptedIndex - 1;
|
23384
23503
|
if (!activeQuestion && !attemptedAll || !((_c = poll.questions) == null ? void 0 : _c.length)) {
|
@@ -23411,10 +23530,10 @@ var TimedView = ({ poll }) => {
|
|
23411
23530
|
|
23412
23531
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
23413
23532
|
var Voting = ({ id, toggleVoting }) => {
|
23414
|
-
const actions =
|
23415
|
-
const poll =
|
23416
|
-
const pollCreatorName =
|
23417
|
-
const permissions =
|
23533
|
+
const actions = useHMSActions31();
|
23534
|
+
const poll = useHMSStore49(selectPollByID4(id));
|
23535
|
+
const pollCreatorName = useHMSStore49(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
|
23536
|
+
const permissions = useHMSStore49(selectPermissions16);
|
23418
23537
|
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
23419
23538
|
const { setPollView } = usePollViewState();
|
23420
23539
|
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
@@ -23456,7 +23575,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
23456
23575
|
height: "fit-content"
|
23457
23576
|
}
|
23458
23577
|
},
|
23459
|
-
/* @__PURE__ */ React99.createElement(
|
23578
|
+
/* @__PURE__ */ React99.createElement(CrossIcon15, { onClick: toggleVoting })
|
23460
23579
|
)
|
23461
23580
|
), /* @__PURE__ */ React99.createElement(Flex, { direction: "column", css: { p: "$8 $10", flex: "1 1 0", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ React99.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, showSingleView ? /* @__PURE__ */ React99.createElement(TimedView, { poll }) : /* @__PURE__ */ React99.createElement(StandardView, { poll })), /* @__PURE__ */ React99.createElement(
|
23462
23581
|
Flex,
|
@@ -23497,15 +23616,15 @@ var Polls = () => {
|
|
23497
23616
|
// src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
|
23498
23617
|
init_define_process_env();
|
23499
23618
|
import React104 from "react";
|
23500
|
-
import { CrossIcon as
|
23619
|
+
import { CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
|
23501
23620
|
|
23502
23621
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
23503
23622
|
init_define_process_env();
|
23504
|
-
import React101, { useEffect as useEffect23, useState as
|
23505
|
-
import { selectDominantSpeaker, useHMSStore as
|
23623
|
+
import React101, { useEffect as useEffect23, useState as useState42 } from "react";
|
23624
|
+
import { selectDominantSpeaker, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23506
23625
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
23507
23626
|
var SpeakerTag = () => {
|
23508
|
-
const dominantSpeaker =
|
23627
|
+
const dominantSpeaker = useHMSStore50(selectDominantSpeaker);
|
23509
23628
|
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React101.createElement(
|
23510
23629
|
Flex,
|
23511
23630
|
{
|
@@ -23530,7 +23649,7 @@ var Logo = () => {
|
|
23530
23649
|
var _a8;
|
23531
23650
|
const roomLayout = useRoomLayout();
|
23532
23651
|
const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
|
23533
|
-
const [hideImage, setHideImage] =
|
23652
|
+
const [hideImage, setHideImage] = useState42(false);
|
23534
23653
|
useEffect23(() => {
|
23535
23654
|
if (hideImage) {
|
23536
23655
|
setHideImage(false);
|
@@ -23555,9 +23674,9 @@ import React103 from "react";
|
|
23555
23674
|
|
23556
23675
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
23557
23676
|
init_define_process_env();
|
23558
|
-
import React102, { useEffect as useEffect24, useState as
|
23677
|
+
import React102, { useEffect as useEffect24, useState as useState43 } from "react";
|
23559
23678
|
var Duration = ({ timestamp }) => {
|
23560
|
-
const [elapsedTime, setElapsedTime] =
|
23679
|
+
const [elapsedTime, setElapsedTime] = useState43(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
23561
23680
|
useEffect24(() => {
|
23562
23681
|
const timerAdded = setInterval(() => {
|
23563
23682
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
@@ -23594,29 +23713,29 @@ var ShowRoomDetailHeader = () => {
|
|
23594
23713
|
"&:hover": { opacity: "0.8" }
|
23595
23714
|
}
|
23596
23715
|
},
|
23597
|
-
/* @__PURE__ */ React104.createElement(
|
23716
|
+
/* @__PURE__ */ React104.createElement(CrossIcon16, null)
|
23598
23717
|
)), /* @__PURE__ */ React104.createElement(RoomDetailsRow, { details }));
|
23599
23718
|
};
|
23600
23719
|
|
23601
23720
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
23602
23721
|
init_define_process_env();
|
23603
|
-
import React119, { useEffect as useEffect31, useState as
|
23722
|
+
import React119, { useEffect as useEffect31, useState as useState52 } from "react";
|
23604
23723
|
import { useMedia as useMedia19 } from "react-use";
|
23605
|
-
import { match as
|
23606
|
-
import { selectPeerCount as selectPeerCount5, useHMSStore as
|
23607
|
-
import { CrossIcon as
|
23724
|
+
import { match as match9 } from "ts-pattern";
|
23725
|
+
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
|
23726
|
+
import { CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
|
23608
23727
|
|
23609
23728
|
// src/Prebuilt/components/Chat/Chat.tsx
|
23610
23729
|
init_define_process_env();
|
23611
23730
|
import React116, { useCallback as useCallback30, useRef as useRef21 } from "react";
|
23612
23731
|
import { useMedia as useMedia18 } from "react-use";
|
23613
|
-
import { match as
|
23614
|
-
import { selectHMSMessagesCount, useHMSActions as
|
23732
|
+
import { match as match8 } from "ts-pattern";
|
23733
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
23615
23734
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
23616
23735
|
|
23617
23736
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
23618
23737
|
init_define_process_env();
|
23619
|
-
import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as
|
23738
|
+
import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState46 } from "react";
|
23620
23739
|
import { useMedia as useMedia13 } from "react-use";
|
23621
23740
|
import AutoSizer from "react-virtualized-auto-sizer";
|
23622
23741
|
import { VariableSizeList } from "react-window";
|
@@ -23628,20 +23747,20 @@ import {
|
|
23628
23747
|
selectPeerNameByID as selectPeerNameByID3,
|
23629
23748
|
selectSessionStore as selectSessionStore5,
|
23630
23749
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
23631
|
-
useHMSActions as
|
23632
|
-
useHMSStore as
|
23750
|
+
useHMSActions as useHMSActions35,
|
23751
|
+
useHMSStore as useHMSStore54,
|
23633
23752
|
useHMSVanillaStore as useHMSVanillaStore9
|
23634
23753
|
} from "@100mslive/react-sdk";
|
23635
23754
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
23636
23755
|
|
23637
23756
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
23638
23757
|
init_define_process_env();
|
23639
|
-
import React106, { useCallback as useCallback25, useState as
|
23640
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as
|
23758
|
+
import React106, { useCallback as useCallback25, useState as useState44 } from "react";
|
23759
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions34, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
|
23641
23760
|
import {
|
23642
23761
|
CopyIcon as CopyIcon2,
|
23643
23762
|
CrossCircleIcon as CrossCircleIcon2,
|
23644
|
-
CrossIcon as
|
23763
|
+
CrossIcon as CrossIcon17,
|
23645
23764
|
EyeCloseIcon as EyeCloseIcon2,
|
23646
23765
|
PeopleRemoveIcon as PeopleRemoveIcon3,
|
23647
23766
|
PinIcon,
|
@@ -23665,10 +23784,10 @@ var MwebChatOption = ({
|
|
23665
23784
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
23666
23785
|
init_define_process_env();
|
23667
23786
|
import { useCallback as useCallback23 } from "react";
|
23668
|
-
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as
|
23787
|
+
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions32, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
|
23669
23788
|
var useChatBlacklist = (sessionStoreKey) => {
|
23670
|
-
const hmsActions =
|
23671
|
-
const blacklistedIDs =
|
23789
|
+
const hmsActions = useHMSActions32();
|
23790
|
+
const blacklistedIDs = useHMSStore51(selectSessionStore2(sessionStoreKey));
|
23672
23791
|
const blacklistItem = useCallback23(
|
23673
23792
|
(blacklistID) => __async(void 0, null, function* () {
|
23674
23793
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -23678,8 +23797,8 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
23678
23797
|
return { blacklistItem, blacklistedIDs };
|
23679
23798
|
};
|
23680
23799
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
23681
|
-
const localPeer =
|
23682
|
-
const blacklistedPeerIDs =
|
23800
|
+
const localPeer = useHMSStore51(selectLocalPeer2);
|
23801
|
+
const blacklistedPeerIDs = useHMSStore51(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
23683
23802
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
23684
23803
|
};
|
23685
23804
|
|
@@ -23689,11 +23808,11 @@ import { useCallback as useCallback24 } from "react";
|
|
23689
23808
|
import {
|
23690
23809
|
selectPeerNameByID as selectPeerNameByID2,
|
23691
23810
|
selectSessionStore as selectSessionStore3,
|
23692
|
-
useHMSActions as
|
23811
|
+
useHMSActions as useHMSActions33,
|
23693
23812
|
useHMSVanillaStore as useHMSVanillaStore8
|
23694
23813
|
} from "@100mslive/react-sdk";
|
23695
23814
|
var usePinnedMessages = () => {
|
23696
|
-
const hmsActions =
|
23815
|
+
const hmsActions = useHMSActions33();
|
23697
23816
|
const vanillaStore = useHMSVanillaStore8();
|
23698
23817
|
const setPinnedMessages = useCallback24(
|
23699
23818
|
(message, pinnedBy) => __async(void 0, null, function* () {
|
@@ -23760,11 +23879,11 @@ var ChatActions = ({
|
|
23760
23879
|
const { elements } = useRoomLayoutConferencingScreen();
|
23761
23880
|
const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
|
23762
23881
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
23763
|
-
const [open, setOpen] =
|
23764
|
-
const actions =
|
23765
|
-
const canRemoveOthers = (_b7 =
|
23882
|
+
const [open, setOpen] = useState44(false);
|
23883
|
+
const actions = useHMSActions34();
|
23884
|
+
const canRemoveOthers = (_b7 = useHMSStore52(selectPermissions17)) == null ? void 0 : _b7.removeOthers;
|
23766
23885
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
23767
|
-
const localPeerName =
|
23886
|
+
const localPeerName = useHMSStore52(selectLocalPeerName2);
|
23768
23887
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
23769
23888
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
23770
23889
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -23874,7 +23993,7 @@ var ChatActions = ({
|
|
23874
23993
|
}
|
23875
23994
|
},
|
23876
23995
|
"Message options",
|
23877
|
-
/* @__PURE__ */ React106.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(
|
23996
|
+
/* @__PURE__ */ React106.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(CrossIcon17, null))
|
23878
23997
|
), Object.keys(options).map((optionKey) => {
|
23879
23998
|
const option = options[optionKey];
|
23880
23999
|
return option.show ? /* @__PURE__ */ React106.createElement(
|
@@ -23986,19 +24105,19 @@ var EmptyChat = () => {
|
|
23986
24105
|
|
23987
24106
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
23988
24107
|
init_define_process_env();
|
23989
|
-
import { useEffect as useEffect25, useState as
|
23990
|
-
import { selectSessionStore as selectSessionStore4, useHMSStore as
|
24108
|
+
import { useEffect as useEffect25, useState as useState45 } from "react";
|
24109
|
+
import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
23991
24110
|
var usePinnedBy = (messageId) => {
|
23992
|
-
const pinnedMessages =
|
23993
|
-
const [pinnedBy, setPinnedBy] =
|
24111
|
+
const pinnedMessages = useHMSStore53(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
24112
|
+
const [pinnedBy, setPinnedBy] = useState45("");
|
23994
24113
|
useEffect25(() => {
|
23995
|
-
let
|
24114
|
+
let match13 = "";
|
23996
24115
|
pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
|
23997
24116
|
if (pinnedMessage.id === messageId) {
|
23998
|
-
|
24117
|
+
match13 = pinnedMessage.pinnedBy;
|
23999
24118
|
}
|
24000
24119
|
});
|
24001
|
-
setPinnedBy(
|
24120
|
+
setPinnedBy(match13);
|
24002
24121
|
}, [messageId, pinnedMessages]);
|
24003
24122
|
return pinnedBy;
|
24004
24123
|
};
|
@@ -24072,8 +24191,8 @@ var MessageType = ({
|
|
24072
24191
|
hasCurrentUserSent,
|
24073
24192
|
receiver
|
24074
24193
|
}) => {
|
24075
|
-
const peerName =
|
24076
|
-
const localPeerRoleName =
|
24194
|
+
const peerName = useHMSStore54(selectPeerNameByID3(receiver));
|
24195
|
+
const localPeerRoleName = useHMSStore54(selectLocalPeerRoleName3);
|
24077
24196
|
if (receiver) {
|
24078
24197
|
return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
24079
24198
|
}
|
@@ -24121,14 +24240,14 @@ var ChatMessage = React108.memo(
|
|
24121
24240
|
const isMobile = useMedia13(config.media.md);
|
24122
24241
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
24123
24242
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
24124
|
-
const localPeerId =
|
24243
|
+
const localPeerId = useHMSStore54(selectLocalPeerID10);
|
24125
24244
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24126
24245
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24127
24246
|
const messageType = getMessageType({
|
24128
24247
|
roles: message.recipientRoles,
|
24129
24248
|
receiver: message.recipientPeer
|
24130
24249
|
});
|
24131
|
-
const [openSheet, setOpenSheetBare] =
|
24250
|
+
const [openSheet, setOpenSheetBare] = useState46(false);
|
24132
24251
|
const showPinAction = !!((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.allow_pinning_messages);
|
24133
24252
|
const showReply = message.sender !== selectedPeer.id && message.sender !== localPeerId && isPrivateChatEnabled;
|
24134
24253
|
useLayoutEffect(() => {
|
@@ -24285,7 +24404,7 @@ var MessageWrapper = React108.memo(
|
|
24285
24404
|
}
|
24286
24405
|
);
|
24287
24406
|
var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
24288
|
-
const hmsActions =
|
24407
|
+
const hmsActions = useHMSActions35();
|
24289
24408
|
const itemKey2 = useCallback26((index, data3) => {
|
24290
24409
|
return data3[index].id;
|
24291
24410
|
}, []);
|
@@ -24340,8 +24459,8 @@ var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom },
|
|
24340
24459
|
});
|
24341
24460
|
var ChatBody = React108.forwardRef(
|
24342
24461
|
({ scrollToBottom }, listRef) => {
|
24343
|
-
const messages =
|
24344
|
-
const blacklistedMessageIDs =
|
24462
|
+
const messages = useHMSStore54(selectHMSMessages);
|
24463
|
+
const blacklistedMessageIDs = useHMSStore54(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
24345
24464
|
const filteredMessages = useMemo8(() => {
|
24346
24465
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
24347
24466
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
@@ -24368,7 +24487,7 @@ var PinnedBy = ({
|
|
24368
24487
|
rowRef
|
24369
24488
|
}) => {
|
24370
24489
|
const pinnedBy = usePinnedBy(messageId);
|
24371
|
-
const localPeerName =
|
24490
|
+
const localPeerName = useHMSStore54(selectLocalPeerName3);
|
24372
24491
|
useLayoutEffect(() => {
|
24373
24492
|
if (rowRef == null ? void 0 : rowRef.current) {
|
24374
24493
|
if (pinnedBy) {
|
@@ -24387,29 +24506,29 @@ var PinnedBy = ({
|
|
24387
24506
|
|
24388
24507
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
24389
24508
|
init_define_process_env();
|
24390
|
-
import React111, { useCallback as useCallback28, useEffect as useEffect28, useRef as useRef20, useState as
|
24509
|
+
import React111, { useCallback as useCallback28, useEffect as useEffect28, useRef as useRef20, useState as useState49 } from "react";
|
24391
24510
|
import { useMedia as useMedia16 } from "react-use";
|
24392
24511
|
import data2 from "@emoji-mart/data";
|
24393
24512
|
import Picker from "@emoji-mart/react";
|
24394
|
-
import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as
|
24513
|
+
import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24395
24514
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24396
24515
|
|
24397
24516
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24398
24517
|
init_define_process_env();
|
24399
|
-
import React110, { useState as
|
24518
|
+
import React110, { useState as useState48 } from "react";
|
24400
24519
|
import { useMedia as useMedia15 } from "react-use";
|
24401
|
-
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as
|
24520
|
+
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon18, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
|
24402
24521
|
|
24403
24522
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
24404
24523
|
init_define_process_env();
|
24405
|
-
import React109, { useMemo as useMemo9, useState as
|
24524
|
+
import React109, { useMemo as useMemo9, useState as useState47 } from "react";
|
24406
24525
|
import { useMedia as useMedia14 } from "react-use";
|
24407
24526
|
import {
|
24408
24527
|
selectMessagesUnreadCountByPeerID,
|
24409
24528
|
selectMessagesUnreadCountByRole,
|
24410
24529
|
selectRemotePeers as selectRemotePeers2,
|
24411
24530
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
|
24412
|
-
useHMSStore as
|
24531
|
+
useHMSStore as useHMSStore55
|
24413
24532
|
} from "@100mslive/react-sdk";
|
24414
24533
|
import { CheckIcon as CheckIcon7, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
|
24415
24534
|
var ChatDotIcon = () => {
|
@@ -24459,7 +24578,7 @@ var SelectorHeader = React109.memo(
|
|
24459
24578
|
}
|
24460
24579
|
);
|
24461
24580
|
var Everyone = React109.memo(({ active }) => {
|
24462
|
-
const unreadCount =
|
24581
|
+
const unreadCount = useHMSStore55(selectUnreadHMSMessagesCount3);
|
24463
24582
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24464
24583
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24465
24584
|
return /* @__PURE__ */ React109.createElement(
|
@@ -24477,7 +24596,7 @@ var Everyone = React109.memo(({ active }) => {
|
|
24477
24596
|
);
|
24478
24597
|
});
|
24479
24598
|
var RoleItem = React109.memo(({ role, active }) => {
|
24480
|
-
const unreadCount =
|
24599
|
+
const unreadCount = useHMSStore55(selectMessagesUnreadCountByRole(role));
|
24481
24600
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24482
24601
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24483
24602
|
return /* @__PURE__ */ React109.createElement(
|
@@ -24494,7 +24613,7 @@ var RoleItem = React109.memo(({ role, active }) => {
|
|
24494
24613
|
);
|
24495
24614
|
});
|
24496
24615
|
var PeerItem = ({ peerId, name, active }) => {
|
24497
|
-
const unreadCount =
|
24616
|
+
const unreadCount = useHMSStore55(selectMessagesUnreadCountByPeerID(peerId));
|
24498
24617
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
24499
24618
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
24500
24619
|
return /* @__PURE__ */ React109.createElement(
|
@@ -24553,8 +24672,8 @@ var VirtualizedSelectItemList = ({
|
|
24553
24672
|
var ChatSelector = ({ role, peerId }) => {
|
24554
24673
|
var _a8, _b7;
|
24555
24674
|
const { elements } = useRoomLayoutConferencingScreen();
|
24556
|
-
const peers =
|
24557
|
-
const [search, setSearch] =
|
24675
|
+
const peers = useHMSStore55(selectRemotePeers2);
|
24676
|
+
const [search, setSearch] = useState47("");
|
24558
24677
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
24559
24678
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
24560
24679
|
return /* @__PURE__ */ React109.createElement(React109.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React109.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React109.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React109.createElement(
|
@@ -24572,7 +24691,7 @@ var ChatSelector = ({ role, peerId }) => {
|
|
24572
24691
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
24573
24692
|
var ChatSelectorContainer = () => {
|
24574
24693
|
var _a8, _b7;
|
24575
|
-
const [open, setOpen] =
|
24694
|
+
const [open, setOpen] = useState48(false);
|
24576
24695
|
const isMobile = useMedia15(config.media.md);
|
24577
24696
|
const { elements } = useRoomLayoutConferencingScreen();
|
24578
24697
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
@@ -24676,7 +24795,7 @@ var ChatSelectorContainer = () => {
|
|
24676
24795
|
}
|
24677
24796
|
},
|
24678
24797
|
/* @__PURE__ */ React110.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, "Chat with"),
|
24679
|
-
/* @__PURE__ */ React110.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React110.createElement(
|
24798
|
+
/* @__PURE__ */ React110.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React110.createElement(CrossIcon18, null))
|
24680
24799
|
), /* @__PURE__ */ React110.createElement(
|
24681
24800
|
Box,
|
24682
24801
|
{
|
@@ -24691,10 +24810,10 @@ var ChatSelectorContainer = () => {
|
|
24691
24810
|
// src/Prebuilt/components/AppData/useChatState.js
|
24692
24811
|
init_define_process_env();
|
24693
24812
|
import { useCallback as useCallback27 } from "react";
|
24694
|
-
import { selectAppData as selectAppData5, useHMSActions as
|
24813
|
+
import { selectAppData as selectAppData5, useHMSActions as useHMSActions36, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
|
24695
24814
|
var useChatDraftMessage = () => {
|
24696
|
-
const hmsActions =
|
24697
|
-
let chatDraftMessage =
|
24815
|
+
const hmsActions = useHMSActions36();
|
24816
|
+
let chatDraftMessage = useHMSStore56(selectAppData5(APP_DATA.chatDraft));
|
24698
24817
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
24699
24818
|
chatDraftMessage = "";
|
24700
24819
|
}
|
@@ -24760,7 +24879,7 @@ var TextArea2 = styled("textarea", {
|
|
24760
24879
|
}
|
24761
24880
|
});
|
24762
24881
|
function EmojiPicker({ onSelect }) {
|
24763
|
-
const [showEmoji, setShowEmoji] =
|
24882
|
+
const [showEmoji, setShowEmoji] = useState49(false);
|
24764
24883
|
const ref = useEmojiPickerStyles(showEmoji);
|
24765
24884
|
return /* @__PURE__ */ React111.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React111.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React111.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React111.createElement(EmojiIcon3, null))), /* @__PURE__ */ React111.createElement(Popover2.Portal, null, /* @__PURE__ */ React111.createElement(
|
24766
24885
|
Popover2.Content,
|
@@ -24787,13 +24906,13 @@ function EmojiPicker({ onSelect }) {
|
|
24787
24906
|
}
|
24788
24907
|
var ChatFooter = ({ onSend, children }) => {
|
24789
24908
|
var _a8, _b7, _c, _d;
|
24790
|
-
const hmsActions =
|
24909
|
+
const hmsActions = useHMSActions37();
|
24791
24910
|
const inputRef = useRef20(null);
|
24792
24911
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
24793
24912
|
const isMobile = useMedia16(config.media.md);
|
24794
24913
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
24795
24914
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
24796
|
-
const localPeer =
|
24915
|
+
const localPeer = useHMSStore57(selectLocalPeer3);
|
24797
24916
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
24798
24917
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
24799
24918
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -24976,14 +25095,14 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24976
25095
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
24977
25096
|
init_define_process_env();
|
24978
25097
|
import React112, { useCallback as useCallback29 } from "react";
|
24979
|
-
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as
|
25098
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
24980
25099
|
var ChatPaused = () => {
|
24981
25100
|
var _a8, _b7;
|
24982
|
-
const hmsActions =
|
25101
|
+
const hmsActions = useHMSActions38();
|
24983
25102
|
const { elements } = useRoomLayoutConferencingScreen();
|
24984
25103
|
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);
|
24985
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } =
|
24986
|
-
const localPeer =
|
25104
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore58(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
25105
|
+
const localPeer = useHMSStore58(selectLocalPeer4);
|
24987
25106
|
const unPauseChat = useCallback29(
|
24988
25107
|
() => __async(void 0, null, function* () {
|
24989
25108
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
@@ -25031,10 +25150,10 @@ var ChatBlocked = () => {
|
|
25031
25150
|
|
25032
25151
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
25033
25152
|
init_define_process_env();
|
25034
|
-
import React115, { useEffect as useEffect29, useState as
|
25153
|
+
import React115, { useEffect as useEffect29, useState as useState50 } from "react";
|
25035
25154
|
import { useSwipeable } from "react-swipeable";
|
25036
25155
|
import { useMedia as useMedia17 } from "react-use";
|
25037
|
-
import { selectSessionStore as selectSessionStore7, useHMSStore as
|
25156
|
+
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
25038
25157
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
25039
25158
|
|
25040
25159
|
// src/Prebuilt/components/Chat/ArrowNavigation.tsx
|
@@ -25091,13 +25210,13 @@ var StickIndicator = ({ total, index }) => {
|
|
25091
25210
|
var PINNED_MESSAGE_LENGTH = 75;
|
25092
25211
|
var PinnedMessage = () => {
|
25093
25212
|
var _a8, _b7, _c, _d;
|
25094
|
-
const pinnedMessages =
|
25095
|
-
const [pinnedMessageIndex, setPinnedMessageIndex] =
|
25213
|
+
const pinnedMessages = useHMSStore59(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
25214
|
+
const [pinnedMessageIndex, setPinnedMessageIndex] = useState50(0);
|
25096
25215
|
const { removePinnedMessage } = usePinnedMessages();
|
25097
25216
|
const isMobile = useMedia17(config.media.md);
|
25098
25217
|
const { elements } = useRoomLayoutConferencingScreen();
|
25099
25218
|
const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
|
25100
|
-
const [hideOverflow, setHideOverflow] =
|
25219
|
+
const [hideOverflow, setHideOverflow] = useState50(true);
|
25101
25220
|
const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
|
25102
25221
|
const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
|
25103
25222
|
const showPreviousPinnedMessage = () => {
|
@@ -25208,9 +25327,9 @@ var Chat = () => {
|
|
25208
25327
|
var _a8, _b7;
|
25209
25328
|
const { elements } = useRoomLayoutConferencingScreen();
|
25210
25329
|
const listRef = useRef21(null);
|
25211
|
-
const hmsActions =
|
25330
|
+
const hmsActions = useHMSActions39();
|
25212
25331
|
const vanillaStore = useHMSVanillaStore10();
|
25213
|
-
const { enabled: isChatEnabled = true } =
|
25332
|
+
const { enabled: isChatEnabled = true } = useHMSStore60(tm("chatState" /* CHAT_STATE */)) || {};
|
25214
25333
|
const isMobile = useMedia18(config.media.md);
|
25215
25334
|
const isMobileHLSStream = useMobileHLSStream();
|
25216
25335
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -25254,7 +25373,7 @@ var Chat = () => {
|
|
25254
25373
|
{
|
25255
25374
|
css: __spreadValues({
|
25256
25375
|
position: "absolute"
|
25257
|
-
},
|
25376
|
+
}, match8({ isLandscapeStream, isMobileHLSStream, isChatEnabled }).with(
|
25258
25377
|
{
|
25259
25378
|
isLandscapeStream: true,
|
25260
25379
|
isChatEnabled: true
|
@@ -25294,7 +25413,7 @@ var NewMessageIndicator = ({
|
|
25294
25413
|
scrollToBottom,
|
25295
25414
|
listRef
|
25296
25415
|
}) => {
|
25297
|
-
const unreadCount =
|
25416
|
+
const unreadCount = useHMSStore60($n);
|
25298
25417
|
if (!unreadCount || !listRef.current) {
|
25299
25418
|
return null;
|
25300
25419
|
}
|
@@ -25340,19 +25459,19 @@ var NewMessageIndicator = ({
|
|
25340
25459
|
|
25341
25460
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
25342
25461
|
init_define_process_env();
|
25343
|
-
import React117, { useEffect as useEffect30, useState as
|
25462
|
+
import React117, { useEffect as useEffect30, useState as useState51 } from "react";
|
25344
25463
|
import { useInView } from "react-intersection-observer";
|
25345
25464
|
import { useMeasure as useMeasure2 } from "react-use";
|
25346
25465
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
25347
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as
|
25348
|
-
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as
|
25466
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore61, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
25467
|
+
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
|
25349
25468
|
var LoadMoreParticipants = ({
|
25350
25469
|
hasNext,
|
25351
25470
|
loadMore,
|
25352
25471
|
style
|
25353
25472
|
}) => {
|
25354
25473
|
const { ref, inView } = useInView();
|
25355
|
-
const [inProgress, setInProgress] =
|
25474
|
+
const [inProgress, setInProgress] = useState51(false);
|
25356
25475
|
useEffect30(() => {
|
25357
25476
|
if (hasNext && inView && !inProgress) {
|
25358
25477
|
setInProgress(true);
|
@@ -25383,12 +25502,12 @@ var VirtualizedParticipantItem2 = React117.memo(
|
|
25383
25502
|
);
|
25384
25503
|
var PaginatedParticipants = ({ roleName, onBack }) => {
|
25385
25504
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
|
25386
|
-
const [search, setSearch] =
|
25505
|
+
const [search, setSearch] = useState51("");
|
25387
25506
|
const filteredPeers = peers.filter((p) => {
|
25388
25507
|
var _a8;
|
25389
25508
|
return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
25390
25509
|
});
|
25391
|
-
const isConnected =
|
25510
|
+
const isConnected = useHMSStore61(selectIsConnectedToRoom8);
|
25392
25511
|
const [ref, { width }] = useMeasure2();
|
25393
25512
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
25394
25513
|
const resetSidePane = useSidepaneReset();
|
@@ -25404,7 +25523,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25404
25523
|
},
|
25405
25524
|
"data-testid": "close_sidepane"
|
25406
25525
|
},
|
25407
|
-
/* @__PURE__ */ React117.createElement(
|
25526
|
+
/* @__PURE__ */ React117.createElement(CrossIcon19, null)
|
25408
25527
|
)), /* @__PURE__ */ React117.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ React117.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ React117.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ React117.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ React117.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ React117.createElement(
|
25409
25528
|
VariableSizeList2,
|
25410
25529
|
{
|
@@ -25422,15 +25541,15 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25422
25541
|
// src/Prebuilt/components/ChatSettings.tsx
|
25423
25542
|
init_define_process_env();
|
25424
25543
|
import React118 from "react";
|
25425
|
-
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as
|
25544
|
+
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions40, useHMSStore as useHMSStore62 } from "@100mslive/react-sdk";
|
25426
25545
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
25427
25546
|
var ChatSettings = () => {
|
25428
25547
|
var _a8, _b7;
|
25429
|
-
const hmsActions =
|
25430
|
-
const localPeer =
|
25548
|
+
const hmsActions = useHMSActions40();
|
25549
|
+
const localPeer = useHMSStore62(selectLocalPeer5);
|
25431
25550
|
const { elements } = useRoomLayoutConferencingScreen();
|
25432
25551
|
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
25433
|
-
const { enabled: isChatEnabled = true } =
|
25552
|
+
const { enabled: isChatEnabled = true } = useHMSStore62(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
25434
25553
|
const showPause = canPauseChat && isChatEnabled;
|
25435
25554
|
if (!showPause) {
|
25436
25555
|
return null;
|
@@ -25496,9 +25615,9 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25496
25615
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
25497
25616
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
25498
25617
|
const resetSidePane = useSidepaneReset();
|
25499
|
-
const [activeTab, setActiveTab] =
|
25500
|
-
const [activeRole, setActiveRole] =
|
25501
|
-
const peerCount =
|
25618
|
+
const [activeTab, setActiveTab] = useState52(active);
|
25619
|
+
const [activeRole, setActiveRole] = useState52("");
|
25620
|
+
const peerCount = useHMSStore63(selectPeerCount5);
|
25502
25621
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
25503
25622
|
const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
|
25504
25623
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
@@ -25510,7 +25629,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25510
25629
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
25511
25630
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
25512
25631
|
useEffect31(() => {
|
25513
|
-
|
25632
|
+
match9({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
25514
25633
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
25515
25634
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
25516
25635
|
setActiveTab(SIDE_PANE_OPTIONS.CHAT);
|
@@ -25546,7 +25665,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25546
25665
|
transition: "margin 0.3s ease-in-out"
|
25547
25666
|
}
|
25548
25667
|
},
|
25549
|
-
|
25668
|
+
match9({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ React119.createElement(Chat, null)).with({ hideTabs: true }, () => {
|
25550
25669
|
return /* @__PURE__ */ React119.createElement(React119.Fragment, null, /* @__PURE__ */ React119.createElement(Flex, { justify: "between", css: { w: "100%", "&:empty": { display: "none" } } }, /* @__PURE__ */ React119.createElement(
|
25551
25670
|
Text,
|
25552
25671
|
{
|
@@ -25579,7 +25698,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25579
25698
|
},
|
25580
25699
|
"data-testid": "close_chat"
|
25581
25700
|
},
|
25582
|
-
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React119.createElement(
|
25701
|
+
screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React119.createElement(CrossIcon20, null)
|
25583
25702
|
))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ React119.createElement(Chat, null) : /* @__PURE__ */ React119.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
|
25584
25703
|
}).otherwise(() => {
|
25585
25704
|
return /* @__PURE__ */ React119.createElement(
|
@@ -25606,7 +25725,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25606
25725
|
},
|
25607
25726
|
"data-testid": "close_chat"
|
25608
25727
|
},
|
25609
|
-
/* @__PURE__ */ React119.createElement(
|
25728
|
+
/* @__PURE__ */ React119.createElement(CrossIcon20, null)
|
25610
25729
|
)),
|
25611
25730
|
/* @__PURE__ */ React119.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ React119.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
|
25612
25731
|
/* @__PURE__ */ React119.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ React119.createElement(Chat, null))
|
@@ -25617,7 +25736,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25617
25736
|
|
25618
25737
|
// src/Prebuilt/components/VideoTile.tsx
|
25619
25738
|
init_define_process_env();
|
25620
|
-
import React123, { useCallback as useCallback31, useMemo as useMemo10, useState as
|
25739
|
+
import React123, { useCallback as useCallback31, useMemo as useMemo10, useState as useState54 } from "react";
|
25621
25740
|
import { useMeasure as useMeasure3 } from "react-use";
|
25622
25741
|
import {
|
25623
25742
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
@@ -25628,14 +25747,14 @@ import {
|
|
25628
25747
|
selectPeerNameByID as selectPeerNameByID4,
|
25629
25748
|
selectVideoTrackByID as selectVideoTrackByID3,
|
25630
25749
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
25631
|
-
useHMSStore as
|
25750
|
+
useHMSStore as useHMSStore67
|
25632
25751
|
} from "@100mslive/react-sdk";
|
25633
25752
|
import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
|
25634
25753
|
|
25635
25754
|
// src/Prebuilt/components/Connection/TileConnection.tsx
|
25636
25755
|
init_define_process_env();
|
25637
25756
|
import React120 from "react";
|
25638
|
-
import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as
|
25757
|
+
import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
25639
25758
|
import { PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
|
25640
25759
|
var TileConnection = ({
|
25641
25760
|
name,
|
@@ -25644,8 +25763,8 @@ var TileConnection = ({
|
|
25644
25763
|
width,
|
25645
25764
|
pinned
|
25646
25765
|
}) => {
|
25647
|
-
const spotlighted =
|
25648
|
-
const isPeerScreenSharing = !!
|
25766
|
+
const spotlighted = useHMSStore64(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
|
25767
|
+
const isPeerScreenSharing = !!useHMSStore64(selectScreenShareByPeerID(peerId));
|
25649
25768
|
return /* @__PURE__ */ React120.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, name ? /* @__PURE__ */ React120.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React120.createElement(
|
25650
25769
|
Text,
|
25651
25770
|
{
|
@@ -25678,30 +25797,30 @@ var TileConnection_default = TileConnection;
|
|
25678
25797
|
|
25679
25798
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
25680
25799
|
init_define_process_env();
|
25681
|
-
import React122, { useState as
|
25800
|
+
import React122, { useState as useState53 } from "react";
|
25682
25801
|
import { useMedia as useMedia21 } from "react-use";
|
25683
25802
|
import {
|
25684
25803
|
selectLocalPeerID as selectLocalPeerID11,
|
25685
25804
|
selectPeerByID as selectPeerByID2,
|
25686
|
-
selectPermissions as
|
25805
|
+
selectPermissions as selectPermissions19,
|
25687
25806
|
selectTrackByID as selectTrackByID3,
|
25688
25807
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
25689
|
-
useHMSStore as
|
25808
|
+
useHMSStore as useHMSStore66,
|
25690
25809
|
useRemoteAVToggle as useRemoteAVToggle2
|
25691
25810
|
} from "@100mslive/react-sdk";
|
25692
|
-
import { CrossIcon as
|
25811
|
+
import { CrossIcon as CrossIcon21, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
25693
25812
|
|
25694
25813
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
25695
25814
|
init_define_process_env();
|
25696
25815
|
import React121, { Fragment as Fragment11 } from "react";
|
25697
25816
|
import { useMedia as useMedia20 } from "react-use";
|
25698
25817
|
import {
|
25699
|
-
selectPermissions as
|
25818
|
+
selectPermissions as selectPermissions18,
|
25700
25819
|
selectSessionStore as selectSessionStore10,
|
25701
25820
|
selectTrackByID as selectTrackByID2,
|
25702
25821
|
useCustomEvent as useCustomEvent2,
|
25703
|
-
useHMSActions as
|
25704
|
-
useHMSStore as
|
25822
|
+
useHMSActions as useHMSActions41,
|
25823
|
+
useHMSStore as useHMSStore65,
|
25705
25824
|
useRemoteAVToggle
|
25706
25825
|
} from "@100mslive/react-sdk";
|
25707
25826
|
import {
|
@@ -25737,8 +25856,8 @@ var SpotlightActions = ({
|
|
25737
25856
|
return;
|
25738
25857
|
}
|
25739
25858
|
}) => {
|
25740
|
-
const hmsActions =
|
25741
|
-
const spotlightPeerId =
|
25859
|
+
const hmsActions = useHMSActions41();
|
25860
|
+
const spotlightPeerId = useHMSStore65(selectSessionStore10("spotlight" /* SPOTLIGHT */));
|
25742
25861
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
25743
25862
|
const dragClassName = getDragClassName();
|
25744
25863
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -25786,8 +25905,8 @@ var MinimiseInset = () => {
|
|
25786
25905
|
};
|
25787
25906
|
var SimulcastLayers = ({ trackId }) => {
|
25788
25907
|
var _a8;
|
25789
|
-
const track =
|
25790
|
-
const actions =
|
25908
|
+
const track = useHMSStore65(selectTrackByID2(trackId));
|
25909
|
+
const actions = useHMSActions41();
|
25791
25910
|
const bg = useDropdownSelection();
|
25792
25911
|
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
25793
25912
|
return null;
|
@@ -25870,9 +25989,9 @@ var TileMenuContent = ({
|
|
25870
25989
|
}
|
25871
25990
|
}) => {
|
25872
25991
|
var _a8;
|
25873
|
-
const actions =
|
25992
|
+
const actions = useHMSActions41();
|
25874
25993
|
const dragClassName = getDragClassName();
|
25875
|
-
const removeOthers = (_a8 =
|
25994
|
+
const removeOthers = (_a8 = useHMSStore65(selectPermissions18)) == null ? void 0 : _a8.removeOthers;
|
25876
25995
|
const { userName } = useHMSPrebuiltContext();
|
25877
25996
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
25878
25997
|
audioTrackID,
|
@@ -25969,20 +26088,20 @@ var TileMenu = ({
|
|
25969
26088
|
enableSpotlightingPeer = true
|
25970
26089
|
}) => {
|
25971
26090
|
var _a8, _b7;
|
25972
|
-
const [open, setOpen] =
|
26091
|
+
const [open, setOpen] = useState53(false);
|
25973
26092
|
const { theme: theme2 } = useTheme();
|
25974
|
-
const localPeerID =
|
26093
|
+
const localPeerID = useHMSStore66(selectLocalPeerID11);
|
25975
26094
|
const isLocal = localPeerID === peerID;
|
25976
|
-
const { removeOthers } =
|
26095
|
+
const { removeOthers } = useHMSStore66(selectPermissions19) || {};
|
25977
26096
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
25978
26097
|
const showSpotlight = enableSpotlightingPeer;
|
25979
|
-
const isPrimaryVideoTrack = ((_a8 =
|
26098
|
+
const isPrimaryVideoTrack = ((_a8 = useHMSStore66(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
25980
26099
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
25981
|
-
const track =
|
26100
|
+
const track = useHMSStore66(selectTrackByID3(videoTrackID));
|
25982
26101
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
25983
26102
|
const isMobile = useMedia21(config.media.md);
|
25984
|
-
const peer =
|
25985
|
-
const [showNameChangeModal, setShowNameChangeModal] =
|
26103
|
+
const peer = useHMSStore66(selectPeerByID2(peerID));
|
26104
|
+
const [showNameChangeModal, setShowNameChangeModal] = useState53(false);
|
25986
26105
|
useDropdownList({ open, name: "TileMenu" });
|
25987
26106
|
const dragClassName = getDragClassName();
|
25988
26107
|
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
@@ -26025,7 +26144,7 @@ var TileMenu = ({
|
|
26025
26144
|
}
|
26026
26145
|
},
|
26027
26146
|
/* @__PURE__ */ React122.createElement(Box, null, /* @__PURE__ */ React122.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal ? ` (You)` : null), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ React122.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
|
26028
|
-
/* @__PURE__ */ React122.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React122.createElement(
|
26147
|
+
/* @__PURE__ */ React122.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React122.createElement(CrossIcon21, null))
|
26029
26148
|
), /* @__PURE__ */ React122.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React122.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ React122.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React122.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ React122.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }));
|
26030
26149
|
};
|
26031
26150
|
var TileMenu_default = TileMenu;
|
@@ -26058,9 +26177,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
|
|
26058
26177
|
|
26059
26178
|
// src/Prebuilt/components/VideoTile.tsx
|
26060
26179
|
var PeerMetadata = ({ peerId, size }) => {
|
26061
|
-
const metaData =
|
26180
|
+
const metaData = useHMSStore67(selectPeerMetadata4(peerId));
|
26062
26181
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
26063
|
-
const isHandRaised =
|
26182
|
+
const isHandRaised = useHMSStore67(selectHasPeerHandRaised3(peerId));
|
26064
26183
|
return /* @__PURE__ */ React123.createElement(React123.Fragment, null, isHandRaised ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React123.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React123.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
|
26065
26184
|
};
|
26066
26185
|
var Tile = ({
|
@@ -26080,16 +26199,16 @@ var Tile = ({
|
|
26080
26199
|
hideMetadataOnTile = false
|
26081
26200
|
}) => {
|
26082
26201
|
const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
|
26083
|
-
const track =
|
26084
|
-
const peerName =
|
26085
|
-
const audioTrack =
|
26086
|
-
const localPeerID =
|
26202
|
+
const track = useHMSStore67(trackSelector);
|
26203
|
+
const peerName = useHMSStore67(selectPeerNameByID4(peerId));
|
26204
|
+
const audioTrack = useHMSStore67(selectAudioTrackByPeerID2(peerId));
|
26205
|
+
const localPeerID = useHMSStore67(selectLocalPeerID12);
|
26087
26206
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
26088
26207
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26089
26208
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
26090
|
-
const isAudioMuted = !
|
26209
|
+
const isAudioMuted = !useHMSStore67(selectIsPeerAudioEnabled2(peerId));
|
26091
26210
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
26092
|
-
const [isMouseHovered, setIsMouseHovered] =
|
26211
|
+
const [isMouseHovered, setIsMouseHovered] = useState54(false);
|
26093
26212
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
26094
26213
|
const isLocal = localPeerID === peerId;
|
26095
26214
|
const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
|
@@ -26175,7 +26294,7 @@ var VideoTile_default = VideoTile;
|
|
26175
26294
|
|
26176
26295
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
26177
26296
|
init_define_process_env();
|
26178
|
-
import React126, { useEffect as useEffect32, useState as
|
26297
|
+
import React126, { useEffect as useEffect32, useState as useState55 } from "react";
|
26179
26298
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
26180
26299
|
import {
|
26181
26300
|
HMSRoomState as HMSRoomState4,
|
@@ -26185,10 +26304,10 @@ import {
|
|
26185
26304
|
selectLocalPeer as selectLocalPeer6,
|
26186
26305
|
selectRoomState as selectRoomState4,
|
26187
26306
|
selectVideoTrackByID as selectVideoTrackByID4,
|
26188
|
-
useHMSActions as
|
26189
|
-
useHMSStore as
|
26307
|
+
useHMSActions as useHMSActions42,
|
26308
|
+
useHMSStore as useHMSStore68
|
26190
26309
|
} from "@100mslive/react-sdk";
|
26191
|
-
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as
|
26310
|
+
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon22 } from "@100mslive/react-icons";
|
26192
26311
|
|
26193
26312
|
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
26194
26313
|
init_define_process_env();
|
@@ -26372,20 +26491,20 @@ var iconDims = { height: "40px", width: "40px" };
|
|
26372
26491
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
26373
26492
|
var _a8;
|
26374
26493
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26375
|
-
const hmsActions =
|
26376
|
-
const localPeer =
|
26377
|
-
const role =
|
26378
|
-
const isVideoOn =
|
26494
|
+
const hmsActions = useHMSActions42();
|
26495
|
+
const localPeer = useHMSStore68(selectLocalPeer6);
|
26496
|
+
const role = useHMSStore68(Wt);
|
26497
|
+
const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled5);
|
26379
26498
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26380
26499
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
26381
|
-
const track =
|
26382
|
-
const [blurAmount, setBlurAmount] =
|
26383
|
-
const roomState =
|
26384
|
-
const isLargeRoom =
|
26385
|
-
const isEffectsEnabled =
|
26386
|
-
const effectsKey =
|
26387
|
-
const isPluginAdded =
|
26388
|
-
const background =
|
26500
|
+
const track = useHMSStore68(trackSelector);
|
26501
|
+
const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
|
26502
|
+
const roomState = useHMSStore68(selectRoomState4);
|
26503
|
+
const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
|
26504
|
+
const isEffectsEnabled = useHMSStore68(ec);
|
26505
|
+
const effectsKey = useHMSStore68(tc);
|
26506
|
+
const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
26507
|
+
const background = useHMSStore68(em(APP_DATA.background));
|
26389
26508
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26390
26509
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26391
26510
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -26434,7 +26553,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26434
26553
|
css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
|
26435
26554
|
onClick: toggleVB
|
26436
26555
|
},
|
26437
|
-
/* @__PURE__ */ React126.createElement(
|
26556
|
+
/* @__PURE__ */ React126.createElement(CrossIcon22, null)
|
26438
26557
|
)), showVideoTile ? /* @__PURE__ */ React126.createElement(
|
26439
26558
|
Video,
|
26440
26559
|
{
|
@@ -26611,9 +26730,9 @@ var SidePane = ({
|
|
26611
26730
|
}) => {
|
26612
26731
|
var _a8, _b7, _c, _d, _e, _f, _g;
|
26613
26732
|
const isMobile = useMedia22(config.media.md);
|
26614
|
-
const sidepane =
|
26615
|
-
const activeScreensharePeerId =
|
26616
|
-
const trackId = (_a8 =
|
26733
|
+
const sidepane = useHMSStore69(selectAppData6(APP_DATA.sidePane));
|
26734
|
+
const activeScreensharePeerId = useHMSStore69(selectAppData6(APP_DATA.activeScreensharePeerId));
|
26735
|
+
const trackId = (_a8 = useHMSStore69(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
26617
26736
|
const { elements } = useRoomLayoutConferencingScreen();
|
26618
26737
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
26619
26738
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
@@ -26641,7 +26760,7 @@ var SidePane = ({
|
|
26641
26760
|
overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
|
26642
26761
|
roomDescription: isMobile && sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS
|
26643
26762
|
};
|
26644
|
-
const SidepaneComponent =
|
26763
|
+
const SidepaneComponent = match10(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React127.createElement(
|
26645
26764
|
Wrapper3,
|
26646
26765
|
__spreadValues({
|
26647
26766
|
css: {
|
@@ -26656,7 +26775,6 @@ var SidePane = ({
|
|
26656
26775
|
return null;
|
26657
26776
|
});
|
26658
26777
|
if (!trackId && !SidepaneComponent) {
|
26659
|
-
console.log("sidepane not rendered", { trackId, SidepaneComponent });
|
26660
26778
|
return null;
|
26661
26779
|
}
|
26662
26780
|
return /* @__PURE__ */ React127.createElement(
|
@@ -26665,7 +26783,7 @@ var SidePane = ({
|
|
26665
26783
|
direction: "column",
|
26666
26784
|
justify: "center",
|
26667
26785
|
css: {
|
26668
|
-
w:
|
26786
|
+
w: match10({ isMobileHLSStream, isLandscapeHLSStream }).with({ isLandscapeHLSStream: true }, () => "340px").with({ isMobileHLSStream: true }, () => "100%").otherwise(() => "$100"),
|
26669
26787
|
h: "100%",
|
26670
26788
|
flexShrink: 0,
|
26671
26789
|
gap: "$4",
|
@@ -26805,8 +26923,8 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
26805
26923
|
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
26806
26924
|
};
|
26807
26925
|
var useLocalTileAspectRatio = () => {
|
26808
|
-
const localPeer =
|
26809
|
-
const videoTrack =
|
26926
|
+
const localPeer = useHMSStore70(selectLocalPeer7);
|
26927
|
+
const videoTrack = useHMSStore70(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
|
26810
26928
|
const isMobile = useMedia24(config.media.md);
|
26811
26929
|
let aspectRatio = 0;
|
26812
26930
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
@@ -26827,9 +26945,9 @@ var PreviewJoin = ({
|
|
26827
26945
|
);
|
26828
26946
|
const { isStreamingOn } = useRecordingStreaming11();
|
26829
26947
|
const authToken = useAuthToken();
|
26830
|
-
const [name, setName] =
|
26948
|
+
const [name, setName] = useState56(initialName || previewPreference.name);
|
26831
26949
|
const { toggleAudio, toggleVideo } = useAVToggle6();
|
26832
|
-
const [previewError, setPreviewError] =
|
26950
|
+
const [previewError, setPreviewError] = useState56(false);
|
26833
26951
|
const { endpoints } = useHMSPrebuiltContext();
|
26834
26952
|
const { peerCount } = useParticipants2();
|
26835
26953
|
const { enableJoin, preview, join } = usePreviewJoin({
|
@@ -26849,7 +26967,7 @@ var PreviewJoin = ({
|
|
26849
26967
|
},
|
26850
26968
|
asRole
|
26851
26969
|
});
|
26852
|
-
const roomState =
|
26970
|
+
const roomState = useHMSStore70(selectRoomState5);
|
26853
26971
|
const savePreferenceAndJoin = useCallback32(() => {
|
26854
26972
|
setPreviewPreference({
|
26855
26973
|
name
|
@@ -26915,12 +27033,12 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
26915
27033
|
px: "$10"
|
26916
27034
|
}));
|
26917
27035
|
var PreviewTile = ({ name, error }) => {
|
26918
|
-
const localPeer =
|
27036
|
+
const localPeer = useHMSStore70(selectLocalPeer7);
|
26919
27037
|
const { isLocalAudioEnabled, toggleAudio } = useAVToggle6();
|
26920
|
-
const isVideoOn =
|
27038
|
+
const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
|
26921
27039
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26922
27040
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
26923
|
-
const track =
|
27041
|
+
const track = useHMSStore70(trackSelector);
|
26924
27042
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
26925
27043
|
const aspectRatio = useLocalTileAspectRatio();
|
26926
27044
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
|
@@ -26976,7 +27094,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
|
26976
27094
|
);
|
26977
27095
|
};
|
26978
27096
|
var PreviewSettings = React131.memo(() => {
|
26979
|
-
const [open, setOpen] =
|
27097
|
+
const [open, setOpen] = useState56(false);
|
26980
27098
|
return /* @__PURE__ */ React131.createElement(Fragment12, null, /* @__PURE__ */ React131.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React131.createElement(SettingsIcon6, null)), open && /* @__PURE__ */ React131.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
|
26981
27099
|
});
|
26982
27100
|
var PreviewJoin_default = PreviewJoin;
|
@@ -27008,12 +27126,12 @@ var RequestActions = ({
|
|
27008
27126
|
|
27009
27127
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
27010
27128
|
var RoleChangeRequestModal = () => {
|
27011
|
-
const hmsActions =
|
27129
|
+
const hmsActions = useHMSActions43();
|
27012
27130
|
const { updateMetaData } = useMyMetadata();
|
27013
|
-
const isPreview =
|
27014
|
-
const currentRole =
|
27015
|
-
const roleChangeRequest =
|
27016
|
-
const name =
|
27131
|
+
const isPreview = useHMSStore71(selectIsInPreview);
|
27132
|
+
const currentRole = useHMSStore71(selectLocalPeerRoleName4);
|
27133
|
+
const roleChangeRequest = useHMSStore71(selectRoleChangeRequest);
|
27134
|
+
const name = useHMSStore71(selectLocalPeerName4);
|
27017
27135
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
27018
27136
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
27019
27137
|
const { virtual_background } = elements || {};
|
@@ -27082,33 +27200,33 @@ var RoleChangeRequestModal = () => {
|
|
27082
27200
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
27083
27201
|
init_define_process_env();
|
27084
27202
|
import React151, { Suspense, useEffect as useEffect48 } from "react";
|
27085
|
-
import { match as
|
27203
|
+
import { match as match11 } from "ts-pattern";
|
27086
27204
|
import {
|
27087
27205
|
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
27088
27206
|
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
27089
27207
|
selectPeerScreenSharing as selectPeerScreenSharing3,
|
27090
27208
|
selectWhiteboard as selectWhiteboard2,
|
27091
|
-
useHMSActions as
|
27092
|
-
useHMSStore as
|
27209
|
+
useHMSActions as useHMSActions45,
|
27210
|
+
useHMSStore as useHMSStore81
|
27093
27211
|
} from "@100mslive/react-sdk";
|
27094
27212
|
|
27095
27213
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
27096
27214
|
init_define_process_env();
|
27097
|
-
import React146, { useEffect as useEffect43, useMemo as useMemo16, useState as
|
27215
|
+
import React146, { useEffect as useEffect43, useMemo as useMemo16, useState as useState64 } from "react";
|
27098
27216
|
import {
|
27099
27217
|
selectLocalPeerID as selectLocalPeerID14,
|
27100
27218
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
27101
27219
|
selectPeers as selectPeers3,
|
27102
27220
|
selectPeerScreenSharing,
|
27103
|
-
useHMSStore as
|
27221
|
+
useHMSStore as useHMSStore78,
|
27104
27222
|
useHMSVanillaStore as useHMSVanillaStore12
|
27105
27223
|
} from "@100mslive/react-sdk";
|
27106
27224
|
|
27107
27225
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27108
27226
|
init_define_process_env();
|
27109
|
-
import React138, { useEffect as useEffect39, useMemo as useMemo13, useState as
|
27227
|
+
import React138, { useEffect as useEffect39, useMemo as useMemo13, useState as useState58 } from "react";
|
27110
27228
|
import { useMedia as useMedia28 } from "react-use";
|
27111
|
-
import { selectLocalPeer as selectLocalPeer9, useHMSStore as
|
27229
|
+
import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore73 } from "@100mslive/react-sdk";
|
27112
27230
|
|
27113
27231
|
// src/Prebuilt/components/InsetTile.tsx
|
27114
27232
|
init_define_process_env();
|
@@ -27120,7 +27238,7 @@ import {
|
|
27120
27238
|
selectLocalPeer as selectLocalPeer8,
|
27121
27239
|
selectPeerByID as selectPeerByID3,
|
27122
27240
|
selectVideoTrackByID as selectVideoTrackByID6,
|
27123
|
-
useHMSStore as
|
27241
|
+
useHMSStore as useHMSStore72
|
27124
27242
|
} from "@100mslive/react-sdk";
|
27125
27243
|
import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
|
27126
27244
|
|
@@ -27161,10 +27279,10 @@ var InsetTile = ({ peerId }) => {
|
|
27161
27279
|
const isMobile = useMedia26(config.media.md);
|
27162
27280
|
const isLandscape = useMedia26(config.media.ls);
|
27163
27281
|
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
|
27164
|
-
const peer =
|
27282
|
+
const peer = useHMSStore72(selector);
|
27165
27283
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
27166
|
-
const videoTrack =
|
27167
|
-
const isAllowedToPublish =
|
27284
|
+
const videoTrack = useHMSStore72(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
|
27285
|
+
const isAllowedToPublish = useHMSStore72(selectIsAllowedToPublish2);
|
27168
27286
|
const videoTileProps = useVideoTileContext();
|
27169
27287
|
let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
|
27170
27288
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
|
@@ -27318,7 +27436,7 @@ var Grid = React137.forwardRef(
|
|
27318
27436
|
|
27319
27437
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
27320
27438
|
init_define_process_env();
|
27321
|
-
import { useEffect as useEffect38, useMemo as useMemo12, useState as
|
27439
|
+
import { useEffect as useEffect38, useMemo as useMemo12, useState as useState57 } from "react";
|
27322
27440
|
import { useMeasure as useMeasure5, useMedia as useMedia27 } from "react-use";
|
27323
27441
|
import {
|
27324
27442
|
getPeersWithTiles,
|
@@ -27356,7 +27474,7 @@ var useTileLayout = ({
|
|
27356
27474
|
const vanillaStore = useHMSVanillaStore11();
|
27357
27475
|
const [ref, { width, height }] = useMeasure5();
|
27358
27476
|
const isMobile = useMedia27(config.media.lg);
|
27359
|
-
const [pagesWithTiles, setPagesWithTiles] =
|
27477
|
+
const [pagesWithTiles, setPagesWithTiles] = useState57([]);
|
27360
27478
|
useEffect38(() => {
|
27361
27479
|
if (width === 0 || height === 0) {
|
27362
27480
|
return;
|
@@ -27424,7 +27542,7 @@ var useTileLayout = ({
|
|
27424
27542
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27425
27543
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
27426
27544
|
var _a8;
|
27427
|
-
const localPeer =
|
27545
|
+
const localPeer = useHMSStore73(selectLocalPeer9);
|
27428
27546
|
const isMobile = useMedia28(config.media.md);
|
27429
27547
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27430
27548
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
@@ -27447,7 +27565,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
27447
27565
|
maxTileCount,
|
27448
27566
|
edgeToEdge
|
27449
27567
|
});
|
27450
|
-
const [page, setPage] =
|
27568
|
+
const [page, setPage] = useState58(0);
|
27451
27569
|
const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
|
27452
27570
|
useEffect39(() => {
|
27453
27571
|
if (pageSize > 0) {
|
@@ -27469,15 +27587,15 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
27469
27587
|
|
27470
27588
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
27471
27589
|
init_define_process_env();
|
27472
|
-
import React141, { useEffect as useEffect41, useState as
|
27590
|
+
import React141, { useEffect as useEffect41, useState as useState60 } from "react";
|
27473
27591
|
import { useMedia as useMedia30 } from "react-use";
|
27474
|
-
import { selectLocalPeer as selectLocalPeer10, useHMSStore as
|
27592
|
+
import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
27475
27593
|
|
27476
27594
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
27477
27595
|
init_define_process_env();
|
27478
|
-
import React140, { useEffect as useEffect40, useRef as useRef23, useState as
|
27596
|
+
import React140, { useEffect as useEffect40, useRef as useRef23, useState as useState59 } from "react";
|
27479
27597
|
import { useMedia as useMedia29 } from "react-use";
|
27480
|
-
import { selectAppData as selectAppData7, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as
|
27598
|
+
import { selectAppData as selectAppData7, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
|
27481
27599
|
|
27482
27600
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
27483
27601
|
init_define_process_env();
|
@@ -27506,7 +27624,6 @@ var SecondarySection = ({
|
|
27506
27624
|
hasSidebar
|
27507
27625
|
}) => {
|
27508
27626
|
const tileLayoutProps = useVideoTileContext();
|
27509
|
-
console.log("secondary section", { tilesLength: tiles == null ? void 0 : tiles.length });
|
27510
27627
|
if (!(tiles == null ? void 0 : tiles.length)) {
|
27511
27628
|
return null;
|
27512
27629
|
}
|
@@ -27564,11 +27681,11 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
27564
27681
|
var _a8, _b7;
|
27565
27682
|
const isMobile = useMedia29(config.media.md);
|
27566
27683
|
const maxTileCount = isMobile ? 2 : 4;
|
27567
|
-
const [page, setPage] =
|
27568
|
-
const pinnedTrackId =
|
27569
|
-
const spotlightPeerId =
|
27570
|
-
const activeScreensharePeerId =
|
27571
|
-
const pinnedPeer = (_a8 =
|
27684
|
+
const [page, setPage] = useState59(0);
|
27685
|
+
const pinnedTrackId = useHMSStore74(selectAppData7(APP_DATA.pinnedTrackId));
|
27686
|
+
const spotlightPeerId = useHMSStore74(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
27687
|
+
const activeScreensharePeerId = useHMSStore74(selectAppData7(APP_DATA.activeScreensharePeerId));
|
27688
|
+
const pinnedPeer = (_a8 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
|
27572
27689
|
const pageChangedAfterPinning = useRef23(false);
|
27573
27690
|
const pagesWithTiles = usePagesWithTiles({
|
27574
27691
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
@@ -27662,7 +27779,7 @@ function RoleProminence({
|
|
27662
27779
|
}) {
|
27663
27780
|
var _a8;
|
27664
27781
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
27665
|
-
const localPeer =
|
27782
|
+
const localPeer = useHMSStore75(selectLocalPeer10);
|
27666
27783
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
27667
27784
|
const isMobile = useMedia30(config.media.md);
|
27668
27785
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
@@ -27675,7 +27792,7 @@ function RoleProminence({
|
|
27675
27792
|
pageList,
|
27676
27793
|
maxTileCount
|
27677
27794
|
});
|
27678
|
-
const [page, setPage] =
|
27795
|
+
const [page, setPage] = useState60(0);
|
27679
27796
|
const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
|
27680
27797
|
useEffect41(() => {
|
27681
27798
|
if (pageSize > 0) {
|
@@ -27705,13 +27822,13 @@ function RoleProminence({
|
|
27705
27822
|
|
27706
27823
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
27707
27824
|
init_define_process_env();
|
27708
|
-
import React145, { useEffect as useEffect42, useMemo as useMemo15, useState as
|
27825
|
+
import React145, { useEffect as useEffect42, useMemo as useMemo15, useState as useState63 } from "react";
|
27709
27826
|
import { useMedia as useMedia32 } from "react-use";
|
27710
|
-
import { selectPeersScreenSharing, useHMSStore as
|
27827
|
+
import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
27711
27828
|
|
27712
27829
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
27713
27830
|
init_define_process_env();
|
27714
|
-
import React144, { useRef as useRef24, useState as
|
27831
|
+
import React144, { useRef as useRef24, useState as useState62 } from "react";
|
27715
27832
|
import { useFullscreen as useFullscreen2, useMedia as useMedia31 } from "react-use";
|
27716
27833
|
import screenfull2 from "screenfull";
|
27717
27834
|
import {
|
@@ -27719,16 +27836,16 @@ import {
|
|
27719
27836
|
selectPeerByID as selectPeerByID4,
|
27720
27837
|
selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
|
27721
27838
|
selectScreenShareByPeerID as selectScreenShareByPeerID2,
|
27722
|
-
useHMSStore as
|
27839
|
+
useHMSStore as useHMSStore76
|
27723
27840
|
} from "@100mslive/react-sdk";
|
27724
27841
|
import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
|
27725
27842
|
|
27726
27843
|
// src/Prebuilt/components/LayoutModeSelector.tsx
|
27727
27844
|
init_define_process_env();
|
27728
|
-
import React142, { useState as
|
27845
|
+
import React142, { useState as useState61 } from "react";
|
27729
27846
|
import { CheckIcon as CheckIcon8, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
|
27730
27847
|
var LayoutModeSelector = () => {
|
27731
|
-
const [open, setOpen] =
|
27848
|
+
const [open, setOpen] = useState61(false);
|
27732
27849
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
27733
27850
|
return /* @__PURE__ */ React142.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React142.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React142.createElement(
|
27734
27851
|
Flex,
|
@@ -27823,10 +27940,10 @@ var LayoutModeSelector = () => {
|
|
27823
27940
|
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
27824
27941
|
init_define_process_env();
|
27825
27942
|
import React143 from "react";
|
27826
|
-
import { useHMSActions as
|
27827
|
-
import { CrossIcon as
|
27943
|
+
import { useHMSActions as useHMSActions44 } from "@100mslive/react-sdk";
|
27944
|
+
import { CrossIcon as CrossIcon23, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
27828
27945
|
var ScreenshareDisplay = () => {
|
27829
|
-
const hmsActions =
|
27946
|
+
const hmsActions = useHMSActions44();
|
27830
27947
|
return /* @__PURE__ */ React143.createElement(
|
27831
27948
|
Flex,
|
27832
27949
|
{
|
@@ -27851,7 +27968,7 @@ var ScreenshareDisplay = () => {
|
|
27851
27968
|
}),
|
27852
27969
|
"data-testid": "stop_screen_share_btn"
|
27853
27970
|
},
|
27854
|
-
/* @__PURE__ */ React143.createElement(
|
27971
|
+
/* @__PURE__ */ React143.createElement(CrossIcon23, { width: 18, height: 18 }),
|
27855
27972
|
"\xA0 Stop screen share"
|
27856
27973
|
)
|
27857
27974
|
);
|
@@ -27867,21 +27984,21 @@ var labelStyles = {
|
|
27867
27984
|
flexShrink: 0
|
27868
27985
|
};
|
27869
27986
|
var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
27870
|
-
const isLocal =
|
27871
|
-
const track =
|
27987
|
+
const isLocal = useHMSStore76(selectLocalPeerID13) === peerId;
|
27988
|
+
const track = useHMSStore76(selectScreenShareByPeerID2(peerId));
|
27872
27989
|
const { theme: theme2 } = useTheme();
|
27873
|
-
const peer =
|
27990
|
+
const peer = useHMSStore76(selectPeerByID4(peerId));
|
27874
27991
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
27875
|
-
const [isMouseHovered, setIsMouseHovered] =
|
27992
|
+
const [isMouseHovered, setIsMouseHovered] = useState62(false);
|
27876
27993
|
const isMobile = useMedia31(config.media.md);
|
27877
27994
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
27878
27995
|
const fullscreenRef = useRef24(null);
|
27879
|
-
const [fullscreen, setFullscreen] =
|
27996
|
+
const [fullscreen, setFullscreen] = useState62(false);
|
27880
27997
|
const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
|
27881
27998
|
onClose: () => setFullscreen(false)
|
27882
27999
|
});
|
27883
28000
|
const isFullScreenSupported = screenfull2.isEnabled;
|
27884
|
-
const audioTrack =
|
28001
|
+
const audioTrack = useHMSStore76(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
|
27885
28002
|
if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
|
27886
28003
|
return /* @__PURE__ */ React144.createElement(ScreenshareDisplay, null);
|
27887
28004
|
}
|
@@ -27960,9 +28077,9 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
27960
28077
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
27961
28078
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
27962
28079
|
var _a8;
|
27963
|
-
const peersSharing =
|
28080
|
+
const peersSharing = useHMSStore77(selectPeersScreenSharing);
|
27964
28081
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
27965
|
-
const [page, setPage] =
|
28082
|
+
const [page, setPage] = useState63(0);
|
27966
28083
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
27967
28084
|
const activeSharePeer = peersSharing[page];
|
27968
28085
|
const isMobile = useMedia32(config.media.md);
|
@@ -28115,11 +28232,11 @@ var GridLayout = ({
|
|
28115
28232
|
edge_to_edge = false,
|
28116
28233
|
hide_metadata_on_tile = false
|
28117
28234
|
}) => {
|
28118
|
-
const peerSharing =
|
28235
|
+
const peerSharing = useHMSStore78(selectPeerScreenSharing);
|
28119
28236
|
const pinnedTrack = usePinnedTrack();
|
28120
|
-
const peers =
|
28121
|
-
const localPeerRole =
|
28122
|
-
const localPeerID =
|
28237
|
+
const peers = useHMSStore78(selectPeers3);
|
28238
|
+
const localPeerRole = useHMSStore78(selectLocalPeerRoleName5);
|
28239
|
+
const localPeerID = useHMSStore78(selectLocalPeerID14);
|
28123
28240
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28124
28241
|
const isRoleProminence = prominentRoles.length && peers.some(
|
28125
28242
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
@@ -28139,10 +28256,10 @@ var GridLayout = ({
|
|
28139
28256
|
return peers;
|
28140
28257
|
}, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
|
28141
28258
|
const vanillaStore = useHMSVanillaStore12();
|
28142
|
-
const [sortedPeers, setSortedPeers] =
|
28259
|
+
const [sortedPeers, setSortedPeers] = useState64(updatedPeers);
|
28143
28260
|
const peersSorter = useMemo16(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
28144
|
-
const [pageSize, setPageSize] =
|
28145
|
-
const [mainPage, setMainPage] =
|
28261
|
+
const [pageSize, setPageSize] = useState64(0);
|
28262
|
+
const [mainPage, setMainPage] = useState64(0);
|
28146
28263
|
const tileLayout = {
|
28147
28264
|
enableSpotlightingPeer: enable_spotlighting_peer,
|
28148
28265
|
hideParticipantNameOnTile: hide_participant_name_on_tile,
|
@@ -28199,13 +28316,13 @@ var GridLayout = ({
|
|
28199
28316
|
// src/Prebuilt/layouts/EmbedView.jsx
|
28200
28317
|
init_define_process_env();
|
28201
28318
|
import React147, { useEffect as useEffect44, useMemo as useMemo17 } from "react";
|
28202
|
-
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as
|
28319
|
+
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
|
28203
28320
|
var EmbedView = () => {
|
28204
28321
|
return /* @__PURE__ */ React147.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React147.createElement(EmbedComponent, null));
|
28205
28322
|
};
|
28206
28323
|
var EmbedScreenShareView = ({ children }) => {
|
28207
|
-
const peers =
|
28208
|
-
const peerPresenting =
|
28324
|
+
const peers = useHMSStore79(selectPeers4);
|
28325
|
+
const peerPresenting = useHMSStore79(selectPeerScreenSharing2);
|
28209
28326
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28210
28327
|
const smallTilePeers = useMemo17(() => {
|
28211
28328
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
@@ -28220,7 +28337,7 @@ var EmbedScreenShareView = ({ children }) => {
|
|
28220
28337
|
return /* @__PURE__ */ React147.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React147.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React147.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28221
28338
|
};
|
28222
28339
|
var EmbedComponent = () => {
|
28223
|
-
const embedConfig =
|
28340
|
+
const embedConfig = useHMSStore79(selectAppData8(APP_DATA.embedConfig));
|
28224
28341
|
const resetConfig = useResetEmbedConfig();
|
28225
28342
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
28226
28343
|
useEffect44(() => {
|
@@ -28378,7 +28495,7 @@ var WaitingView = React149.memo(() => {
|
|
28378
28495
|
init_define_process_env();
|
28379
28496
|
import React150, { useEffect as useEffect46, useMemo as useMemo18 } from "react";
|
28380
28497
|
import { useMedia as useMedia33 } from "react-use";
|
28381
|
-
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as
|
28498
|
+
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28382
28499
|
var EmbedComponent2 = () => {
|
28383
28500
|
const isMobile = useMedia33(config.media.md);
|
28384
28501
|
const { iframeRef } = useWhiteboard2(isMobile);
|
@@ -28413,8 +28530,8 @@ var EmbedComponent2 = () => {
|
|
28413
28530
|
);
|
28414
28531
|
};
|
28415
28532
|
var WhiteboardView = () => {
|
28416
|
-
const peers =
|
28417
|
-
const whiteboard =
|
28533
|
+
const peers = useHMSStore80(selectPeers5);
|
28534
|
+
const whiteboard = useHMSStore80(selectWhiteboard);
|
28418
28535
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28419
28536
|
const smallTilePeers = useMemo18(() => {
|
28420
28537
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
|
@@ -28451,18 +28568,18 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28451
28568
|
};
|
28452
28569
|
|
28453
28570
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28454
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28571
|
+
var HLSView = React151.lazy(() => import("./HLSView-SF6SAQ5J.js"));
|
28455
28572
|
var VideoStreamingSection = ({
|
28456
28573
|
screenType,
|
28457
28574
|
elements,
|
28458
28575
|
hideControls = false
|
28459
28576
|
}) => {
|
28460
28577
|
var _a8, _b7, _c, _d;
|
28461
|
-
const localPeerRole =
|
28462
|
-
const isConnected =
|
28463
|
-
const peerSharing =
|
28464
|
-
const isWhiteboardOpen = (_a8 =
|
28465
|
-
const hmsActions =
|
28578
|
+
const localPeerRole = useHMSStore81(selectLocalPeerRoleName6);
|
28579
|
+
const isConnected = useHMSStore81(selectIsConnectedToRoom9);
|
28580
|
+
const peerSharing = useHMSStore81(selectPeerScreenSharing3);
|
28581
|
+
const isWhiteboardOpen = (_a8 = useHMSStore81(selectWhiteboard2)) == null ? void 0 : _a8.open;
|
28582
|
+
const hmsActions = useHMSActions45();
|
28466
28583
|
const waitingViewerRole = useWaitingViewerRole();
|
28467
28584
|
const urlToIframe = useUrlToEmbed();
|
28468
28585
|
const pdfAnnotatorActive = usePDFConfig();
|
@@ -28508,14 +28625,14 @@ var VideoStreamingSection = ({
|
|
28508
28625
|
position: "relative",
|
28509
28626
|
gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
|
28510
28627
|
},
|
28511
|
-
direction:
|
28628
|
+
direction: match11({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
|
28512
28629
|
},
|
28513
28630
|
ViewComponent,
|
28514
28631
|
/* @__PURE__ */ React151.createElement(
|
28515
28632
|
Box,
|
28516
28633
|
{
|
28517
28634
|
css: {
|
28518
|
-
flex:
|
28635
|
+
flex: match11({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "1 1 0").with({ isMobileHLSStream: true }, () => "2 1 0").otherwise(() => void 0),
|
28519
28636
|
position: "relative",
|
28520
28637
|
height: !isMobileHLSStream ? "100%" : void 0,
|
28521
28638
|
maxHeight: "100%",
|
@@ -28542,7 +28659,7 @@ init_define_process_env();
|
|
28542
28659
|
init_define_process_env();
|
28543
28660
|
import React154 from "react";
|
28544
28661
|
import { useMedia as useMedia35 } from "react-use";
|
28545
|
-
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as
|
28662
|
+
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore83 } from "@100mslive/react-sdk";
|
28546
28663
|
|
28547
28664
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
28548
28665
|
init_define_process_env();
|
@@ -28577,24 +28694,24 @@ import {
|
|
28577
28694
|
selectLocalVideoTrackID as selectLocalVideoTrackID3,
|
28578
28695
|
selectVideoTrackByID as selectVideoTrackByID7,
|
28579
28696
|
useDevices as useDevices3,
|
28580
|
-
useHMSActions as
|
28581
|
-
useHMSStore as
|
28697
|
+
useHMSActions as useHMSActions46,
|
28698
|
+
useHMSStore as useHMSStore82
|
28582
28699
|
} from "@100mslive/react-sdk";
|
28583
28700
|
import {
|
28584
28701
|
BluetoothIcon,
|
28585
28702
|
CameraFlipIcon as CameraFlipIcon2,
|
28586
28703
|
CheckIcon as CheckIcon9,
|
28587
|
-
CrossIcon as
|
28704
|
+
CrossIcon as CrossIcon24,
|
28588
28705
|
HeadphonesIcon,
|
28589
28706
|
SpeakerIcon as SpeakerIcon4
|
28590
28707
|
} from "@100mslive/react-icons";
|
28591
28708
|
var CamaraFlipActions = () => {
|
28592
|
-
const actions =
|
28709
|
+
const actions = useHMSActions46();
|
28593
28710
|
const { allDevices } = useDevices3();
|
28594
28711
|
const { videoInput } = allDevices;
|
28595
|
-
const isVideoOn =
|
28596
|
-
const videoTrackId =
|
28597
|
-
const localVideoTrack =
|
28712
|
+
const isVideoOn = useHMSStore82(selectIsLocalVideoEnabled7);
|
28713
|
+
const videoTrackId = useHMSStore82(selectLocalVideoTrackID3);
|
28714
|
+
const localVideoTrack = useHMSStore82(selectVideoTrackByID7(videoTrackId));
|
28598
28715
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
28599
28716
|
return null;
|
28600
28717
|
}
|
@@ -28626,7 +28743,7 @@ var AudioActions = () => {
|
|
28626
28743
|
availableAudioDevices = audioOutput;
|
28627
28744
|
selectedAudio = selectedDeviceIDs.audioOutput;
|
28628
28745
|
}
|
28629
|
-
const hmsActions =
|
28746
|
+
const hmsActions = useHMSActions46();
|
28630
28747
|
const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
|
28631
28748
|
const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
|
28632
28749
|
if (!audioFiltered) {
|
@@ -28669,7 +28786,7 @@ var AudioActions = () => {
|
|
28669
28786
|
);
|
28670
28787
|
};
|
28671
28788
|
var AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {
|
28672
|
-
return /* @__PURE__ */ React153.createElement(Sheet.Root, null, /* @__PURE__ */ React153.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React153.createElement(Sheet.Content, null, /* @__PURE__ */ React153.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React153.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React153.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ React153.createElement(Sheet.Close, null, /* @__PURE__ */ React153.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React153.createElement(
|
28789
|
+
return /* @__PURE__ */ React153.createElement(Sheet.Root, null, /* @__PURE__ */ React153.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React153.createElement(Sheet.Content, null, /* @__PURE__ */ React153.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React153.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React153.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ React153.createElement(Sheet.Close, null, /* @__PURE__ */ React153.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React153.createElement(CrossIcon24, null))))), /* @__PURE__ */ React153.createElement(HorizontalDivider, null), /* @__PURE__ */ React153.createElement(
|
28673
28790
|
Flex,
|
28674
28791
|
{
|
28675
28792
|
direction: "column",
|
@@ -28730,7 +28847,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React153.createElement(Re
|
|
28730
28847
|
|
28731
28848
|
// src/Prebuilt/components/Header/Header.tsx
|
28732
28849
|
var Header2 = () => {
|
28733
|
-
const roomState =
|
28850
|
+
const roomState = useHMSStore83(selectRoomState6);
|
28734
28851
|
const isMobile = useMedia35(config.media.md);
|
28735
28852
|
if (roomState !== HMSRoomState6.Connected) {
|
28736
28853
|
return /* @__PURE__ */ React154.createElement(React154.Fragment, null);
|
@@ -28776,11 +28893,11 @@ var ConferenceScreen = () => {
|
|
28776
28893
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
28777
28894
|
const screenProps = useRoomLayoutConferencingScreen();
|
28778
28895
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
28779
|
-
const roomState =
|
28780
|
-
const isConnectedToRoom =
|
28781
|
-
const hmsActions =
|
28782
|
-
const [hideControls, setHideControls] =
|
28783
|
-
const dropdownList =
|
28896
|
+
const roomState = useHMSStore84(selectRoomState7);
|
28897
|
+
const isConnectedToRoom = useHMSStore84(selectIsConnectedToRoom10);
|
28898
|
+
const hmsActions = useHMSActions47();
|
28899
|
+
const [hideControls, setHideControls] = useState65(false);
|
28900
|
+
const dropdownList = useHMSStore84(selectAppData9(APP_DATA.dropdownList));
|
28784
28901
|
const authTokenInAppData = useAuthToken();
|
28785
28902
|
const headerRef = useRef25(null);
|
28786
28903
|
const footerRef = useRef25(null);
|
@@ -29016,7 +29133,7 @@ import React157, { useEffect as useEffect52 } from "react";
|
|
29016
29133
|
// src/Prebuilt/services/FeatureFlags.jsx
|
29017
29134
|
init_define_process_env();
|
29018
29135
|
import { useEffect as useEffect51 } from "react";
|
29019
|
-
import { selectRoomID, useHMSStore as
|
29136
|
+
import { selectRoomID, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
|
29020
29137
|
var FeatureFlags = class {
|
29021
29138
|
static init(roomId) {
|
29022
29139
|
if (!window.HMS) {
|
@@ -29041,7 +29158,7 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
|
|
29041
29158
|
__publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
|
29042
29159
|
__publicField(FeatureFlags, "enableWhiteboard", define_process_env_default.REACT_APP_ENABLE_WHITEBOARD && define_process_env_default.REACT_APP_PUSHER_APP_KEY && define_process_env_default.REACT_APP_PUSHER_AUTHENDPOINT);
|
29043
29160
|
function FeatureFlagsInit() {
|
29044
|
-
const roomId =
|
29161
|
+
const roomId = useHMSStore85(selectRoomID);
|
29045
29162
|
useEffect51(() => {
|
29046
29163
|
if (roomId) {
|
29047
29164
|
FeatureFlags.init(roomId);
|
@@ -29077,7 +29194,7 @@ import {
|
|
29077
29194
|
selectAppData as selectAppData10,
|
29078
29195
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
29079
29196
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled8,
|
29080
|
-
useHMSActions as
|
29197
|
+
useHMSActions as useHMSActions48,
|
29081
29198
|
useHMSVanillaStore as useHMSVanillaStore14
|
29082
29199
|
} from "@100mslive/react-sdk";
|
29083
29200
|
var isEvenListenersAttached = false;
|
@@ -29166,7 +29283,7 @@ _bind = new WeakMap();
|
|
29166
29283
|
_unbind = new WeakMap();
|
29167
29284
|
var KeyboardHandler = () => {
|
29168
29285
|
const store = useHMSVanillaStore14();
|
29169
|
-
const actions =
|
29286
|
+
const actions = useHMSActions48();
|
29170
29287
|
useEffect53(() => {
|
29171
29288
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
29172
29289
|
keyboardManager.bindAllShortcuts();
|
@@ -29184,7 +29301,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
|
|
29184
29301
|
init_define_process_env();
|
29185
29302
|
import React158, { useContext as useContext4, useEffect as useEffect54 } from "react";
|
29186
29303
|
import { usePreviousDistinct } from "react-use";
|
29187
|
-
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as
|
29304
|
+
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
|
29188
29305
|
|
29189
29306
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
29190
29307
|
init_define_process_env();
|
@@ -29221,7 +29338,7 @@ var useHMSAppStateContext = () => {
|
|
29221
29338
|
var useAppStateManager = () => {
|
29222
29339
|
const roomLayout = useRoomLayout();
|
29223
29340
|
const [activeState, setActiveState] = React158.useState();
|
29224
|
-
const roomState =
|
29341
|
+
const roomState = useHMSStore86(selectRoomState8);
|
29225
29342
|
const prevRoomState = usePreviousDistinct(roomState);
|
29226
29343
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
29227
29344
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -29293,12 +29410,12 @@ var LeaveScreen = () => {
|
|
29293
29410
|
|
29294
29411
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
29295
29412
|
init_define_process_env();
|
29296
|
-
import React160, { useEffect as useEffect55, useState as
|
29413
|
+
import React160, { useEffect as useEffect55, useState as useState66 } from "react";
|
29297
29414
|
import { useMedia as useMedia36 } from "react-use";
|
29298
|
-
import { match as
|
29415
|
+
import { match as match12, P as P4 } from "ts-pattern";
|
29299
29416
|
import { RefreshIcon } from "@100mslive/react-icons";
|
29300
29417
|
var MwebLandscapePrompt = () => {
|
29301
|
-
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] =
|
29418
|
+
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState66(false);
|
29302
29419
|
const isLandscape = useMedia36(config.media.ls);
|
29303
29420
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
29304
29421
|
useEffect55(() => {
|
@@ -29315,7 +29432,7 @@ var MwebLandscapePrompt = () => {
|
|
29315
29432
|
const angle = window.screen.orientation.angle;
|
29316
29433
|
const type = window.screen.orientation.type || "";
|
29317
29434
|
setShowMwebLandscapePrompt(
|
29318
|
-
|
29435
|
+
match12({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P4.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
|
29319
29436
|
);
|
29320
29437
|
};
|
29321
29438
|
handleRotation();
|
@@ -29357,7 +29474,7 @@ import {
|
|
29357
29474
|
useAwayNotifications as useAwayNotifications2,
|
29358
29475
|
useCustomEvent as useCustomEvent4,
|
29359
29476
|
useHMSNotifications as useHMSNotifications10,
|
29360
|
-
useHMSStore as
|
29477
|
+
useHMSStore as useHMSStore90,
|
29361
29478
|
useHMSVanillaStore as useHMSVanillaStore16
|
29362
29479
|
} from "@100mslive/react-sdk";
|
29363
29480
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
@@ -29397,12 +29514,12 @@ function AutoplayBlockedModal() {
|
|
29397
29514
|
init_define_process_env();
|
29398
29515
|
import React162, { useEffect as useEffect56 } from "react";
|
29399
29516
|
import { v4 as uuid4 } from "uuid";
|
29400
|
-
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as
|
29517
|
+
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
|
29401
29518
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
29402
29519
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
29403
29520
|
var ChatNotifications = () => {
|
29404
|
-
const chatState =
|
29405
|
-
const localPeerId =
|
29521
|
+
const chatState = useHMSStore87(selectSessionStore12("chatState" /* CHAT_STATE */));
|
29522
|
+
const localPeerId = useHMSStore87(selectLocalPeerID15);
|
29406
29523
|
useEffect56(() => {
|
29407
29524
|
var _a8, _b7;
|
29408
29525
|
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
@@ -29432,7 +29549,7 @@ import {
|
|
29432
29549
|
selectPeerByID as selectPeerByID6,
|
29433
29550
|
selectRoomState as selectRoomState9,
|
29434
29551
|
useHMSNotifications as useHMSNotifications2,
|
29435
|
-
useHMSStore as
|
29552
|
+
useHMSStore as useHMSStore89,
|
29436
29553
|
useHMSVanillaStore as useHMSVanillaStore15
|
29437
29554
|
} from "@100mslive/react-sdk";
|
29438
29555
|
|
@@ -29442,7 +29559,7 @@ init_define_process_env();
|
|
29442
29559
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
29443
29560
|
init_define_process_env();
|
29444
29561
|
import React163, { useCallback as useCallback34 } from "react";
|
29445
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as
|
29562
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions49, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
|
29446
29563
|
import {
|
29447
29564
|
ChatUnreadIcon as ChatUnreadIcon2,
|
29448
29565
|
ConnectivityIcon,
|
@@ -29461,10 +29578,10 @@ var ChatAction = React163.forwardRef((_, ref) => {
|
|
29461
29578
|
});
|
29462
29579
|
var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
29463
29580
|
var _a8, _b7, _c;
|
29464
|
-
const hmsActions =
|
29581
|
+
const hmsActions = useHMSActions49();
|
29465
29582
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29466
29583
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29467
|
-
const peer =
|
29584
|
+
const peer = useHMSStore88(selectPeerByID5(id));
|
29468
29585
|
const layout = useRoomLayout();
|
29469
29586
|
const {
|
29470
29587
|
bring_to_stage_label,
|
@@ -29693,7 +29810,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
29693
29810
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
29694
29811
|
var HandRaisedNotifications = () => {
|
29695
29812
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
29696
|
-
const roomState =
|
29813
|
+
const roomState = useHMSStore89(selectRoomState9);
|
29697
29814
|
const vanillaStore = useHMSVanillaStore15();
|
29698
29815
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
29699
29816
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
@@ -29718,12 +29835,12 @@ var HandRaisedNotifications = () => {
|
|
29718
29835
|
|
29719
29836
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
29720
29837
|
init_define_process_env();
|
29721
|
-
import React164, { useEffect as useEffect58, useState as
|
29838
|
+
import React164, { useEffect as useEffect58, useState as useState67 } from "react";
|
29722
29839
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
29723
29840
|
var InitErrorModal = () => {
|
29724
29841
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
29725
|
-
const [showModal, setShowModal] =
|
29726
|
-
const [info, setInfo] =
|
29842
|
+
const [showModal, setShowModal] = useState67(false);
|
29843
|
+
const [info, setInfo] = useState67({ title: "Init Error", description: "" });
|
29727
29844
|
useEffect58(() => {
|
29728
29845
|
const data3 = notification == null ? void 0 : notification.data;
|
29729
29846
|
if (!data3 || data3.action !== "INIT") {
|
@@ -29795,7 +29912,7 @@ var PeerNotifications = () => {
|
|
29795
29912
|
|
29796
29913
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
29797
29914
|
init_define_process_env();
|
29798
|
-
import React165, { useEffect as useEffect60, useState as
|
29915
|
+
import React165, { useEffect as useEffect60, useState as useState68 } from "react";
|
29799
29916
|
import { useMedia as useMedia37 } from "react-use";
|
29800
29917
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
29801
29918
|
|
@@ -29808,8 +29925,8 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
|
|
29808
29925
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
29809
29926
|
function PermissionErrorModal() {
|
29810
29927
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
29811
|
-
const [deviceType, setDeviceType] =
|
29812
|
-
const [isSystemError, setIsSystemError] =
|
29928
|
+
const [deviceType, setDeviceType] = useState68("");
|
29929
|
+
const [isSystemError, setIsSystemError] = useState68(false);
|
29813
29930
|
const isMobile = useMedia37(config.media.md);
|
29814
29931
|
useEffect60(() => {
|
29815
29932
|
var _a8, _b7, _c, _d, _e;
|
@@ -29869,7 +29986,7 @@ function PermissionErrorModal() {
|
|
29869
29986
|
|
29870
29987
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
29871
29988
|
init_define_process_env();
|
29872
|
-
import React166, { useEffect as useEffect61, useState as
|
29989
|
+
import React166, { useEffect as useEffect61, useState as useState69 } from "react";
|
29873
29990
|
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
29874
29991
|
var notificationTypes2 = [
|
29875
29992
|
HMSNotificationTypes6.RECONNECTED,
|
@@ -29879,7 +29996,7 @@ var notificationTypes2 = [
|
|
29879
29996
|
var notificationId = null;
|
29880
29997
|
var ReconnectNotifications = () => {
|
29881
29998
|
const notification = useHMSNotifications6(notificationTypes2);
|
29882
|
-
const [open, setOpen] =
|
29999
|
+
const [open, setOpen] = useState69(false);
|
29883
30000
|
useEffect61(() => {
|
29884
30001
|
var _a8, _b7;
|
29885
30002
|
if (!notification) {
|
@@ -29919,16 +30036,16 @@ var ReconnectNotifications = () => {
|
|
29919
30036
|
|
29920
30037
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
29921
30038
|
init_define_process_env();
|
29922
|
-
import React167, { useEffect as useEffect62, useState as
|
30039
|
+
import React167, { useEffect as useEffect62, useState as useState70 } from "react";
|
29923
30040
|
import {
|
29924
30041
|
HMSNotificationTypes as HMSNotificationTypes7,
|
29925
|
-
useHMSActions as
|
30042
|
+
useHMSActions as useHMSActions50,
|
29926
30043
|
useHMSNotifications as useHMSNotifications7
|
29927
30044
|
} from "@100mslive/react-sdk";
|
29928
30045
|
import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
|
29929
30046
|
var TrackBulkUnmuteModal = () => {
|
29930
|
-
const hmsActions =
|
29931
|
-
const [muteNotification, setMuteNotification] =
|
30047
|
+
const hmsActions = useHMSActions50();
|
30048
|
+
const [muteNotification, setMuteNotification] = useState70(null);
|
29932
30049
|
const notification = useHMSNotifications7([
|
29933
30050
|
HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
29934
30051
|
HMSNotificationTypes7.ROOM_ENDED,
|
@@ -29993,21 +30110,21 @@ var TrackNotifications = () => {
|
|
29993
30110
|
|
29994
30111
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
29995
30112
|
init_define_process_env();
|
29996
|
-
import React168, { useEffect as useEffect64, useState as
|
30113
|
+
import React168, { useEffect as useEffect64, useState as useState71 } from "react";
|
29997
30114
|
import {
|
29998
30115
|
HMSNotificationTypes as HMSNotificationTypes9,
|
29999
|
-
useHMSActions as
|
30116
|
+
useHMSActions as useHMSActions51,
|
30000
30117
|
useHMSNotifications as useHMSNotifications9
|
30001
30118
|
} from "@100mslive/react-sdk";
|
30002
30119
|
import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
|
30003
30120
|
var TrackUnmuteModal = () => {
|
30004
|
-
const hmsActions =
|
30121
|
+
const hmsActions = useHMSActions51();
|
30005
30122
|
const notification = useHMSNotifications9([
|
30006
30123
|
HMSNotificationTypes9.CHANGE_TRACK_STATE_REQUEST,
|
30007
30124
|
HMSNotificationTypes9.ROOM_ENDED,
|
30008
30125
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
30009
30126
|
]);
|
30010
|
-
const [muteNotification, setMuteNotification] =
|
30127
|
+
const [muteNotification, setMuteNotification] = useState71(null);
|
30011
30128
|
useEffect64(() => {
|
30012
30129
|
switch (notification == null ? void 0 : notification.type) {
|
30013
30130
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
@@ -30046,17 +30163,17 @@ var TrackUnmuteModal = () => {
|
|
30046
30163
|
var pollToastKey = {};
|
30047
30164
|
function Notifications() {
|
30048
30165
|
var _a8, _b7;
|
30049
|
-
const localPeerID =
|
30166
|
+
const localPeerID = useHMSStore90(selectLocalPeerID16);
|
30050
30167
|
const notification = useHMSNotifications10();
|
30051
30168
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
30052
|
-
const roomState =
|
30169
|
+
const roomState = useHMSStore90(selectRoomState10);
|
30053
30170
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
30054
30171
|
const isNotificationDisabled = useIsNotificationDisabled();
|
30055
30172
|
const screenProps = useRoomLayoutConferencingScreen();
|
30056
30173
|
const vanillaStore = useHMSVanillaStore16();
|
30057
30174
|
const togglePollView = usePollViewToggle();
|
30058
30175
|
const { showNotification } = useAwayNotifications2();
|
30059
|
-
const amIScreenSharing =
|
30176
|
+
const amIScreenSharing = useHMSStore90(selectIsLocalScreenShared2);
|
30060
30177
|
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
30061
30178
|
const handleRoleChangeDenied = useCallback35((request) => {
|
30062
30179
|
ToastManager.addToast({
|
@@ -30212,8 +30329,8 @@ var PreviewScreen = () => {
|
|
30212
30329
|
|
30213
30330
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
30214
30331
|
init_define_process_env();
|
30215
|
-
import React172, { useEffect as useEffect66, useState as
|
30216
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as
|
30332
|
+
import React172, { useEffect as useEffect66, useState as useState72 } from "react";
|
30333
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
|
30217
30334
|
|
30218
30335
|
// src/Prebuilt/components/Toast/Toast.jsx
|
30219
30336
|
init_define_process_env();
|
@@ -30236,8 +30353,8 @@ var Toast2 = (_a8) => {
|
|
30236
30353
|
|
30237
30354
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
30238
30355
|
var ToastContainer = () => {
|
30239
|
-
const isConnected =
|
30240
|
-
const [toasts, setToast] =
|
30356
|
+
const isConnected = useHMSStore91(selectIsConnectedToRoom11);
|
30357
|
+
const [toasts, setToast] = useState72([]);
|
30241
30358
|
useEffect66(() => {
|
30242
30359
|
ToastManager.addListener(setToast);
|
30243
30360
|
return () => {
|
@@ -30259,12 +30376,12 @@ var ToastContainer = () => {
|
|
30259
30376
|
// src/Prebuilt/layouts/Sheet.tsx
|
30260
30377
|
init_define_process_env();
|
30261
30378
|
import React174 from "react";
|
30262
|
-
import { selectAppData as selectAppData11, useHMSStore as
|
30379
|
+
import { selectAppData as selectAppData11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
|
30263
30380
|
|
30264
30381
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
30265
30382
|
init_define_process_env();
|
30266
30383
|
import React173 from "react";
|
30267
|
-
import { CrossIcon as
|
30384
|
+
import { CrossIcon as CrossIcon25 } from "@100mslive/react-icons";
|
30268
30385
|
var RoomDetailsSheet = () => {
|
30269
30386
|
const { title, description, details } = useRoomLayoutHeader();
|
30270
30387
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -30277,13 +30394,13 @@ var RoomDetailsSheet = () => {
|
|
30277
30394
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
30278
30395
|
},
|
30279
30396
|
/* @__PURE__ */ React173.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
30280
|
-
/* @__PURE__ */ React173.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React173.createElement(
|
30397
|
+
/* @__PURE__ */ React173.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React173.createElement(CrossIcon25, null))
|
30281
30398
|
), /* @__PURE__ */ React173.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React173.createElement(Logo, null), /* @__PURE__ */ React173.createElement(Box, null, /* @__PURE__ */ React173.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React173.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React173.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
30282
30399
|
};
|
30283
30400
|
|
30284
30401
|
// src/Prebuilt/layouts/Sheet.tsx
|
30285
30402
|
var Sheet2 = () => {
|
30286
|
-
const sheet =
|
30403
|
+
const sheet = useHMSStore92(selectAppData11(APP_DATA.sheet));
|
30287
30404
|
let ViewComponent;
|
30288
30405
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
30289
30406
|
ViewComponent = /* @__PURE__ */ React174.createElement(RoomDetailsSheet, null);
|
@@ -30293,13 +30410,13 @@ var Sheet2 = () => {
|
|
30293
30410
|
|
30294
30411
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
30295
30412
|
init_define_process_env();
|
30296
|
-
import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo19, useState as
|
30413
|
+
import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo19, useState as useState73 } from "react";
|
30297
30414
|
import { useMedia as useMedia38 } from "react-use";
|
30298
30415
|
import {
|
30299
30416
|
selectLocalPeerID as selectLocalPeerID17,
|
30300
30417
|
selectPeerNameByID as selectPeerNameByID6,
|
30301
30418
|
useCustomEvent as useCustomEvent5,
|
30302
|
-
useHMSStore as
|
30419
|
+
useHMSStore as useHMSStore93,
|
30303
30420
|
useHMSVanillaStore as useHMSVanillaStore17
|
30304
30421
|
} from "@100mslive/react-sdk";
|
30305
30422
|
var emojiCount = 1;
|
@@ -30326,9 +30443,9 @@ var getStartingPoints = (isMobile) => {
|
|
30326
30443
|
return arr;
|
30327
30444
|
};
|
30328
30445
|
function FlyingEmoji() {
|
30329
|
-
const localPeerId =
|
30446
|
+
const localPeerId = useHMSStore93(selectLocalPeerID17);
|
30330
30447
|
const vanillaStore = useHMSVanillaStore17();
|
30331
|
-
const [emojis, setEmojis] =
|
30448
|
+
const [emojis, setEmojis] = useState73([]);
|
30332
30449
|
const isMobile = useMedia38(config.media.md);
|
30333
30450
|
const startingPoints = useMemo19(() => getStartingPoints(isMobile), [isMobile]);
|
30334
30451
|
const showFlyingEmoji = useCallback36(
|
@@ -30425,9 +30542,9 @@ function FlyingEmoji() {
|
|
30425
30542
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
30426
30543
|
init_define_process_env();
|
30427
30544
|
import React176, { useCallback as useCallback37 } from "react";
|
30428
|
-
import { useCustomEvent as useCustomEvent6, useHMSActions as
|
30545
|
+
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions52 } from "@100mslive/react-sdk";
|
30429
30546
|
function RemoteStopScreenshare() {
|
30430
|
-
const actions =
|
30547
|
+
const actions = useHMSActions52();
|
30431
30548
|
const onRemoteStopScreenshare = useCallback37(() => __async(this, null, function* () {
|
30432
30549
|
yield actions.setScreenShareEnabled(false);
|
30433
30550
|
}), [actions]);
|
@@ -30443,17 +30560,17 @@ init_define_process_env();
|
|
30443
30560
|
import { useCallback as useCallback38, useEffect as useEffect68, useRef as useRef26 } from "react";
|
30444
30561
|
import {
|
30445
30562
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
30446
|
-
selectPermissions as
|
30447
|
-
useHMSActions as
|
30448
|
-
useHMSStore as
|
30563
|
+
selectPermissions as selectPermissions20,
|
30564
|
+
useHMSActions as useHMSActions53,
|
30565
|
+
useHMSStore as useHMSStore94,
|
30449
30566
|
useRecordingStreaming as useRecordingStreaming12
|
30450
30567
|
} from "@100mslive/react-sdk";
|
30451
30568
|
var useAutoStartStreaming = () => {
|
30452
30569
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
30453
|
-
const permissions =
|
30570
|
+
const permissions = useHMSStore94(selectPermissions20);
|
30454
30571
|
const showStreamingUI = useShowStreamingUI();
|
30455
|
-
const hmsActions =
|
30456
|
-
const isConnected =
|
30572
|
+
const hmsActions = useHMSActions53();
|
30573
|
+
const isConnected = useHMSStore94(selectIsConnectedToRoom12);
|
30457
30574
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
30458
30575
|
const streamStartedRef = useRef26(false);
|
30459
30576
|
const startHLS = useCallback38(() => __async(void 0, null, function* () {
|
@@ -30647,8 +30764,8 @@ var AppStates = ({ activeState }) => {
|
|
30647
30764
|
return /* @__PURE__ */ React177.createElement(ConferenceScreen, null);
|
30648
30765
|
};
|
30649
30766
|
var BackSwipe = () => {
|
30650
|
-
const isConnectedToRoom =
|
30651
|
-
const hmsActions =
|
30767
|
+
const isConnectedToRoom = useHMSStore95(selectIsConnectedToRoom13);
|
30768
|
+
const hmsActions = useHMSActions54();
|
30652
30769
|
useEffect69(() => {
|
30653
30770
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
30654
30771
|
if (isConnectedToRoom) {
|
@@ -30823,4 +30940,4 @@ lodash/lodash.js:
|
|
30823
30940
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
30824
30941
|
*)
|
30825
30942
|
*/
|
30826
|
-
//# sourceMappingURL=chunk-
|
30943
|
+
//# sourceMappingURL=chunk-OYWNLHYU.js.map
|