@100mslive/roomkit-react 0.2.1-alpha.0 → 0.2.1-alpha.1
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/LICENSE +21 -0
- package/dist/{HLSView-GKCGIZ5F.js → HLSView-QPKBRL74.js} +2 -2
- package/dist/Prebuilt/components/Polls/Voting/PeerParticipationSummary.d.ts +2 -2
- package/dist/Prebuilt/components/Polls/Voting/StatisticBox.d.ts +1 -1
- package/dist/Prebuilt/components/Polls/Voting/useQuizSummary.d.ts +7 -0
- package/dist/{chunk-FTOP3RHP.js → chunk-LRZEFY46.js} +370 -366
- package/dist/chunk-LRZEFY46.js.map +7 -0
- package/dist/index.cjs.js +1416 -1406
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +112 -58
- package/dist/meta.esbuild.json +125 -71
- package/package.json +7 -6
- package/src/Introduction/Integrating.stories.mdx +1 -1
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx +3 -3
- package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +7 -59
- package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +37 -14
- package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +1 -1
- package/src/Prebuilt/components/Polls/Voting/StatisticBox.tsx +16 -11
- package/src/Prebuilt/components/Polls/Voting/Voting.tsx +5 -7
- package/src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx +50 -0
- package/src/Prebuilt/layouts/WhiteboardView.tsx +4 -1
- package/dist/chunk-FTOP3RHP.js.map +0 -7
- /package/dist/{HLSView-GKCGIZ5F.js.map → HLSView-QPKBRL74.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_a4f93a1f-1d98-495a-98c8-0f6e6403d9f9", 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_webpack_cli: "^4.9.2", npm_package_devDependencies_webpack_bundle_analyzer: "^4.5.0", 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.0 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.9.1-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a4f93a1f-1d98-495a-98c8-0f6e6403d9f9", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/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.12.1-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.5", 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", 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_webpack_manifest_plugin: "^4.1.1", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", 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: "575", 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.12/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.5/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240107.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", 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_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:17700", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_scripts_app: "cd apps/100ms-web && yarn start", 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.2.1-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: "7537740304", 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_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: "37788eb004f63672aae22043c6ad6b2debaff74c", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "apps/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "6ce1787085583fb6cf0372909a361e891596089355bd31b1feb589a748471c8a", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/WEB-2557-border-fix", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_workspaces_2: "playwright/*", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", PATH: "/tmp/yarn--1705385705823-0.4943793670942145:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705385705521-0.8594408744126076:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705385660800-0.3816056696696646:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705385660494-0.274117397141719:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/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.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_0b8b7624-fb1e-44ef-8457-934ab09c0e74", INVOCATION_ID: "4d0d31d6ec1843a9af78f038d52025fc", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "411", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_webpack: "^5.76.0", 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 3", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "WEB-2557-border-fix", 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_webpack_dev_server: "^4.7.4", 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.9.1-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_NM: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.1-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_source: "src/index.ts", GITHUB_REF_PROTECTED: "false", 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: "37788eb004f63672aae22043c6ad6b2debaff74c", 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/WEB-2557-border-fix", GITHUB_ACTOR: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", npm_package_license: "MIT", 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_a4f93a1f-1d98-495a-98c8-0f6e6403d9f9", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_a4f93a1f-1d98-495a-98c8-0f6e6403d9f9", 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_scripts_app_custom: "cd apps/100ms-custom-app && 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_a4f93a1f-1d98-495a-98c8-0f6e6403d9f9" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_228610ec-ca0f-4a50-ae71-c5237cde2d9d", 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.0 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.9.1-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_228610ec-ca0f-4a50-ae71-c5237cde2d9d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/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.12.1-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", 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", 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.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", 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: "576", 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.12/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.5/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240116.3.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", 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_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:17691", 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.2.1-alpha.1", 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: "7551280157", 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_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: "8e59b80ba249933faedfafd0c9fef523a07dc74c", 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: "76ec50c97762fbb0763135d5940ee2a1ed87bf6be19adccfe5f2cd95d388ee3f", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", 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--1705467958103-0.10883706837497997:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467957818-0.6844147917774273:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467915541-0.34240564272992513:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467915265-0.1522992275885935:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/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.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e0540d66-5861-4107-8691-1fe3b5c8a942", INVOCATION_ID: "12e4d6727da14232907401e8c96d9ba6", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "412", GITHUB_TRIGGERING_ACTOR: "raviteja83", 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 2", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", 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.9.1-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_NM: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.1-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", 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: "8e59b80ba249933faedfafd0c9fef523a07dc74c", 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/main", GITHUB_ACTOR: "raviteja83", 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_228610ec-ca0f-4a50-ae71-c5237cde2d9d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", 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.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_228610ec-ca0f-4a50-ae71-c5237cde2d9d", 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_228610ec-ca0f-4a50-ae71-c5237cde2d9d" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -11190,7 +11190,7 @@ import {
|
|
11190
11190
|
HMSRoomProvider,
|
11191
11191
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
11192
11192
|
useHMSActions as useHMSActions52,
|
11193
|
-
useHMSStore as
|
11193
|
+
useHMSStore as useHMSStore85
|
11194
11194
|
} from "@100mslive/react-sdk";
|
11195
11195
|
|
11196
11196
|
// src/Prebuilt/components/AppData/AppData.tsx
|
@@ -11813,14 +11813,14 @@ var AuthToken_default = AuthToken;
|
|
11813
11813
|
|
11814
11814
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
11815
11815
|
init_define_process_env();
|
11816
|
-
import React150, { useEffect as useEffect47, useRef as useRef22, useState as
|
11816
|
+
import React150, { useEffect as useEffect47, useRef as useRef22, useState as useState61 } from "react";
|
11817
11817
|
import {
|
11818
11818
|
HMSRoomState as HMSRoomState7,
|
11819
11819
|
selectAppData as selectAppData7,
|
11820
11820
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
11821
11821
|
selectRoomState as selectRoomState7,
|
11822
11822
|
useHMSActions as useHMSActions45,
|
11823
|
-
useHMSStore as
|
11823
|
+
useHMSStore as useHMSStore75
|
11824
11824
|
} from "@100mslive/react-sdk";
|
11825
11825
|
|
11826
11826
|
// src/Prebuilt/components/Footer/Footer.tsx
|
@@ -11887,7 +11887,7 @@ var IconSection = styled(IconButton_default, {
|
|
11887
11887
|
p: "$4",
|
11888
11888
|
r: "$1",
|
11889
11889
|
borderTopRightRadius: 0,
|
11890
|
-
borderColor: "$
|
11890
|
+
borderColor: "$border_bright",
|
11891
11891
|
borderBottomRightRadius: 0,
|
11892
11892
|
position: "relative",
|
11893
11893
|
"&:not([disabled]):focus-visible": {
|
@@ -11902,10 +11902,10 @@ var IconSection = styled(IconButton_default, {
|
|
11902
11902
|
var OptionsSection = styled(IconButton_default, {
|
11903
11903
|
w: "unset",
|
11904
11904
|
h: "$14",
|
11905
|
-
p: "$4",
|
11905
|
+
p: "$4 $2",
|
11906
11906
|
r: "$1",
|
11907
11907
|
borderTopLeftRadius: 0,
|
11908
|
-
borderColor: "$
|
11908
|
+
borderColor: "$border_bright",
|
11909
11909
|
borderBottomLeftRadius: 0,
|
11910
11910
|
borderLeftWidth: 0,
|
11911
11911
|
position: "relative",
|
@@ -17274,7 +17274,7 @@ var Qi = (a2, e) => {
|
|
17274
17274
|
};
|
17275
17275
|
var ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
17276
17276
|
var nr = ya((jc, Va) => {
|
17277
|
-
Va.exports = { version: "0.11.1-alpha.
|
17277
|
+
Va.exports = { version: "0.11.1-alpha.1", license: "MIT", main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", 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/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"] };
|
17278
17278
|
});
|
17279
17279
|
var zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(zi || {});
|
17280
17280
|
var ka = ((e) => (e.CHAT = "chat", e))(ka || {});
|
@@ -18582,42 +18582,6 @@ var calculateAvatarAndAttribBoxSize = (calculatedWidth, calculatedHeight) => {
|
|
18582
18582
|
return [avatarSize, attribBoxSize];
|
18583
18583
|
};
|
18584
18584
|
var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
|
18585
|
-
var getPeerResponses = (questions, peerid, userid) => {
|
18586
|
-
return questions.map(
|
18587
|
-
(question) => {
|
18588
|
-
var _a8;
|
18589
|
-
return (_a8 = question.responses) == null ? void 0 : _a8.filter(
|
18590
|
-
(response) => {
|
18591
|
-
var _a9, _b7;
|
18592
|
-
return (response && ((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
|
18593
|
-
}
|
18594
|
-
);
|
18595
|
-
}
|
18596
|
-
);
|
18597
|
-
};
|
18598
|
-
var getPeerParticipationSummary = (poll, localPeerID, localCustomerUserID) => {
|
18599
|
-
let correctResponses = 0;
|
18600
|
-
let score = 0;
|
18601
|
-
const questions = poll.questions || [];
|
18602
|
-
const peerResponses = getPeerResponses(questions, localPeerID, localCustomerUserID);
|
18603
|
-
let totalResponses = peerResponses.length || 0;
|
18604
|
-
peerResponses.forEach((peerResponse) => {
|
18605
|
-
var _a8;
|
18606
|
-
if (!(peerResponse == null ? void 0 : peerResponse[0])) {
|
18607
|
-
return;
|
18608
|
-
}
|
18609
|
-
const isCorrect = checkCorrectAnswer(
|
18610
|
-
questions[peerResponse[0].questionIndex - 1].answer,
|
18611
|
-
peerResponse[0],
|
18612
|
-
questions[peerResponse[0].questionIndex - 1].type
|
18613
|
-
);
|
18614
|
-
if (isCorrect) {
|
18615
|
-
score += ((_a8 = questions[peerResponse[0].questionIndex - 1]) == null ? void 0 : _a8.weight) || 0;
|
18616
|
-
correctResponses++;
|
18617
|
-
}
|
18618
|
-
});
|
18619
|
-
return { totalResponses, correctResponses, score };
|
18620
|
-
};
|
18621
18585
|
|
18622
18586
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
18623
18587
|
var LiveStatus = () => {
|
@@ -20753,21 +20717,21 @@ import {
|
|
20753
20717
|
selectRoleChangeRequest,
|
20754
20718
|
useCustomEvent as useCustomEvent3,
|
20755
20719
|
useHMSActions as useHMSActions41,
|
20756
|
-
useHMSStore as
|
20720
|
+
useHMSStore as useHMSStore63
|
20757
20721
|
} from "@100mslive/react-sdk";
|
20758
20722
|
|
20759
20723
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
20760
20724
|
init_define_process_env();
|
20761
|
-
import React128, { Fragment as Fragment14, useCallback as useCallback30, useEffect as useEffect31, useMemo as useMemo10, useState as
|
20725
|
+
import React128, { Fragment as Fragment14, useCallback as useCallback30, useEffect as useEffect31, useMemo as useMemo10, useState as useState53 } from "react";
|
20762
20726
|
import { useMeasure as useMeasure4, useMedia as useMedia22 } from "react-use";
|
20763
20727
|
import {
|
20764
20728
|
HMSRoomState as HMSRoomState5,
|
20765
20729
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled6,
|
20766
|
-
selectLocalPeer as
|
20730
|
+
selectLocalPeer as selectLocalPeer7,
|
20767
20731
|
selectRoomState as selectRoomState5,
|
20768
20732
|
selectVideoTrackByID as selectVideoTrackByID5,
|
20769
20733
|
useAVToggle as useAVToggle4,
|
20770
|
-
useHMSStore as
|
20734
|
+
useHMSStore as useHMSStore62,
|
20771
20735
|
useParticipants as useParticipants2,
|
20772
20736
|
usePreviewJoin,
|
20773
20737
|
useRecordingStreaming as useRecordingStreaming10
|
@@ -20778,7 +20742,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon5 } from "@100ms
|
|
20778
20742
|
init_define_process_env();
|
20779
20743
|
import React123, { useEffect as useEffect29 } from "react";
|
20780
20744
|
import { useMedia as useMedia20 } from "react-use";
|
20781
|
-
import { selectAppData as selectAppData5, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as
|
20745
|
+
import { selectAppData as selectAppData5, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
20782
20746
|
|
20783
20747
|
// src/Prebuilt/components/Polls/Polls.tsx
|
20784
20748
|
init_define_process_env();
|
@@ -21684,12 +21648,8 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
|
|
21684
21648
|
|
21685
21649
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
21686
21650
|
init_define_process_env();
|
21687
|
-
import
|
21688
|
-
import {
|
21689
|
-
selectPollByID as selectPollByID2,
|
21690
|
-
useHMSActions as useHMSActions27,
|
21691
|
-
useHMSStore as useHMSStore38
|
21692
|
-
} from "@100mslive/react-sdk";
|
21651
|
+
import React95, { useState as useState37 } from "react";
|
21652
|
+
import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
|
21693
21653
|
import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
|
21694
21654
|
|
21695
21655
|
// src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
|
@@ -21724,74 +21684,134 @@ var LeaderboardEntry = ({
|
|
21724
21684
|
), /* @__PURE__ */ React92.createElement(Box, null, /* @__PURE__ */ React92.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, userName), /* @__PURE__ */ React92.createElement(Text, { variant: "sm", css: { mt: "$1" } }, score, " / ", maxPossibleScore, " points"))), /* @__PURE__ */ React92.createElement(Flex, { align: "center", css: { gap: "$4", color: "$on_surface_medium" } }, position === 1 ? /* @__PURE__ */ React92.createElement(TrophyFilledIcon, { height: 16, width: 16 }) : null, /* @__PURE__ */ React92.createElement(CheckCircleIcon4, { height: 16, width: 16 }), questionCount ? /* @__PURE__ */ React92.createElement(Text, { variant: "xs" }, correctResponses, " / ", questionCount) : null));
|
21725
21685
|
};
|
21726
21686
|
|
21687
|
+
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
21688
|
+
init_define_process_env();
|
21689
|
+
import React94 from "react";
|
21690
|
+
import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
|
21691
|
+
|
21727
21692
|
// src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
|
21728
21693
|
init_define_process_env();
|
21729
21694
|
import React93 from "react";
|
21730
|
-
var StatisticBox = ({ title, value = 0 }) =>
|
21731
|
-
|
21732
|
-
|
21733
|
-
|
21734
|
-
|
21735
|
-
|
21736
|
-
|
21737
|
-
|
21695
|
+
var StatisticBox = ({ title, value = 0 }) => {
|
21696
|
+
if (!value) {
|
21697
|
+
return /* @__PURE__ */ React93.createElement(React93.Fragment, null);
|
21698
|
+
}
|
21699
|
+
return /* @__PURE__ */ React93.createElement(Box, { css: { p: "$8", background: "$surface_default", borderRadius: "$1", w: "100%" } }, /* @__PURE__ */ React93.createElement(
|
21700
|
+
Text,
|
21701
|
+
{
|
21702
|
+
variant: "tiny",
|
21703
|
+
css: { textTransform: "uppercase", color: "$on_surface_medium", fontWeight: "$semiBold", my: "$4" }
|
21704
|
+
},
|
21705
|
+
title
|
21706
|
+
), /* @__PURE__ */ React93.createElement(Text, { css: { fontWeight: "$semiBold" } }, value));
|
21707
|
+
};
|
21738
21708
|
|
21739
|
-
// src/Prebuilt/components/Polls/Voting/
|
21740
|
-
|
21741
|
-
|
21709
|
+
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
21710
|
+
init_define_process_env();
|
21711
|
+
import { useEffect as useEffect20, useState as useState36 } from "react";
|
21712
|
+
import {
|
21713
|
+
selectPollByID as selectPollByID2,
|
21714
|
+
useHMSActions as useHMSActions27,
|
21715
|
+
useHMSStore as useHMSStore38
|
21716
|
+
} from "@100mslive/react-sdk";
|
21717
|
+
var useQuizSummary = (quizID) => {
|
21742
21718
|
const hmsActions = useHMSActions27();
|
21743
|
-
const quiz = useHMSStore38(selectPollByID2(
|
21719
|
+
const quiz = useHMSStore38(selectPollByID2(quizID));
|
21744
21720
|
const [quizLeaderboard, setQuizLeaderboard] = useState36();
|
21745
|
-
const [viewAllEntries, setViewAllEntries] = useState36(false);
|
21746
21721
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
21747
21722
|
totalUsers: 0,
|
21748
21723
|
votedUsers: 0,
|
21749
21724
|
avgScore: 0,
|
21750
21725
|
avgTime: 0,
|
21751
|
-
|
21726
|
+
correctUsers: 0
|
21752
21727
|
};
|
21753
|
-
const {
|
21754
|
-
const toggleSidepane = useSidepaneToggle();
|
21728
|
+
const [calculations, setCalculations] = useState36({ maxPossibleScore: 0, totalResponses: 0 });
|
21755
21729
|
useEffect20(() => {
|
21756
21730
|
const fetchLeaderboardData = () => __async(void 0, null, function* () {
|
21757
|
-
|
21731
|
+
var _a8;
|
21732
|
+
if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
|
21758
21733
|
const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
|
21734
|
+
const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
|
21735
|
+
var _a9;
|
21736
|
+
accumulator.maxPossibleScore += question.weight || 0;
|
21737
|
+
accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
|
21738
|
+
return accumulator;
|
21739
|
+
}, calculations)) || calculations;
|
21759
21740
|
setQuizLeaderboard(leaderboardData);
|
21741
|
+
setCalculations({ maxPossibleScore, totalResponses });
|
21760
21742
|
}
|
21761
21743
|
});
|
21762
21744
|
fetchLeaderboardData();
|
21763
|
-
}, [quiz, hmsActions.interactivityCenter, quizLeaderboard]);
|
21745
|
+
}, [quiz, hmsActions.interactivityCenter, quizLeaderboard, calculations]);
|
21746
|
+
return {
|
21747
|
+
quizLeaderboard,
|
21748
|
+
summary,
|
21749
|
+
maxPossibleScore: calculations.maxPossibleScore,
|
21750
|
+
totalResponses: calculations.totalResponses
|
21751
|
+
};
|
21752
|
+
};
|
21753
|
+
|
21754
|
+
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
21755
|
+
var PeerParticipationSummary = ({ quiz }) => {
|
21756
|
+
const localPeerId = useHMSStore39(selectLocalPeerID8);
|
21757
|
+
const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
|
21758
|
+
if (quiz.state !== "stopped") {
|
21759
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null);
|
21760
|
+
}
|
21761
|
+
const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
|
21762
|
+
const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
|
21763
|
+
var _a8;
|
21764
|
+
return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
|
21765
|
+
});
|
21766
|
+
const boxes = isLocalPeerQuizCreator ? [
|
21767
|
+
{
|
21768
|
+
title: "Voted",
|
21769
|
+
value: `${summary.totalUsers ? (100 * summary.votedUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.votedUsers}/${summary.totalUsers})`
|
21770
|
+
},
|
21771
|
+
{
|
21772
|
+
title: "Correct Answers",
|
21773
|
+
value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
|
21774
|
+
},
|
21775
|
+
{ title: "Avg. Time Taken", value: summary.avgTime },
|
21776
|
+
{ title: "Avg. Score", value: summary.avgScore }
|
21777
|
+
] : [
|
21778
|
+
{ title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position) ? `${peerEntry.position}/${summary.totalUsers}` : "-" },
|
21779
|
+
{ title: "Points", value: peerEntry == null ? void 0 : peerEntry.score },
|
21780
|
+
{ title: "Time Taken", value: peerEntry == null ? void 0 : peerEntry.duration },
|
21781
|
+
{
|
21782
|
+
title: "Correct Answers",
|
21783
|
+
value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ? `${peerEntry == null ? void 0 : peerEntry.correctResponses}/${peerEntry.totalResponses}` : "-"
|
21784
|
+
}
|
21785
|
+
];
|
21786
|
+
return /* @__PURE__ */ React94.createElement(Box, null, /* @__PURE__ */ React94.createElement(Text, { css: { fontWeight: "$semiBold", my: "$8" } }, "Participation Summary"), /* @__PURE__ */ React94.createElement(Box, { css: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "$4" } }, boxes.map((box) => /* @__PURE__ */ React94.createElement(StatisticBox, { key: box.title, title: box.title, value: box.value }))));
|
21787
|
+
};
|
21788
|
+
|
21789
|
+
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
21790
|
+
var LeaderboardSummary = ({ pollID }) => {
|
21791
|
+
var _a8, _b7;
|
21792
|
+
const quiz = useHMSStore40(selectPollByID3(pollID));
|
21793
|
+
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
21794
|
+
const [viewAllEntries, setViewAllEntries] = useState37(false);
|
21795
|
+
const { setPollView } = usePollViewState();
|
21796
|
+
const toggleSidepane = useSidepaneToggle();
|
21764
21797
|
if (!quiz || !quizLeaderboard)
|
21765
|
-
return /* @__PURE__ */
|
21766
|
-
const
|
21767
|
-
|
21768
|
-
var _a9;
|
21769
|
-
accumulator.maxPossibleScore += question.weight || 0;
|
21770
|
-
accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
|
21771
|
-
return accumulator;
|
21772
|
-
}, defaultCalculations)) || defaultCalculations;
|
21773
|
-
const questionCount = ((_b7 = quiz.questions) == null ? void 0 : _b7.length) || 0;
|
21774
|
-
return /* @__PURE__ */ React94.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React94.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ React94.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React94.createElement(
|
21798
|
+
return /* @__PURE__ */ React95.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ React95.createElement(Loading, null));
|
21799
|
+
const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
|
21800
|
+
return /* @__PURE__ */ React95.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React95.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ React95.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React95.createElement(
|
21775
21801
|
Flex,
|
21776
21802
|
{
|
21777
21803
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
|
21778
21804
|
onClick: () => setPollView(POLL_VIEWS.VOTE)
|
21779
21805
|
},
|
21780
|
-
/* @__PURE__ */
|
21781
|
-
), /* @__PURE__ */
|
21806
|
+
/* @__PURE__ */ React95.createElement(ChevronLeftIcon4, null)
|
21807
|
+
), /* @__PURE__ */ React95.createElement(Text, { variant: "lg", css: { fontWeight: "$semiBold" } }, quiz.title), /* @__PURE__ */ React95.createElement(StatusIndicator, { isLive: false })), /* @__PURE__ */ React95.createElement(
|
21782
21808
|
Flex,
|
21783
21809
|
{
|
21784
21810
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
|
21785
21811
|
onClick: toggleSidepane
|
21786
21812
|
},
|
21787
|
-
/* @__PURE__ */
|
21788
|
-
)), !viewAllEntries ? /* @__PURE__ */
|
21789
|
-
StatisticBox,
|
21790
|
-
{
|
21791
|
-
title: "Voted",
|
21792
|
-
value: `${(summary == null ? void 0 : summary.totalUsers) ? 100 * (summary == null ? void 0 : summary.votedUsers) / (summary == null ? void 0 : summary.totalUsers) : 0}%`
|
21793
|
-
}
|
21794
|
-
), /* @__PURE__ */ React94.createElement(StatisticBox, { title: "Correct Answers", value: `${summary == null ? void 0 : summary.correctAnswers}/${totalResponses}` })), /* @__PURE__ */ React94.createElement(Flex, { css: { w: "100%", gap: "$4", mt: "$4" } }, (summary == null ? void 0 : summary.avgTime) > 0 ? /* @__PURE__ */ React94.createElement(StatisticBox, { title: "Avg. Time", value: summary == null ? void 0 : summary.avgTime }) : null, /* @__PURE__ */ React94.createElement(StatisticBox, { title: "Avg. Score", value: summary == null ? void 0 : summary.avgScore })))) : null, /* @__PURE__ */ React94.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Leaderboard"), /* @__PURE__ */ React94.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, "Based on score and time taken to cast the correct answer"), /* @__PURE__ */ React94.createElement(
|
21813
|
+
/* @__PURE__ */ React95.createElement(CrossIcon12, null)
|
21814
|
+
)), !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(
|
21795
21815
|
Box,
|
21796
21816
|
{
|
21797
21817
|
css: {
|
@@ -21805,7 +21825,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
21805
21825
|
borderRadius: "$1"
|
21806
21826
|
}
|
21807
21827
|
},
|
21808
|
-
(quizLeaderboard == null ? void 0 : quizLeaderboard.entries) && quizLeaderboard.entries.slice(0, viewAllEntries ? void 0 : 5).map((question) => /* @__PURE__ */
|
21828
|
+
(quizLeaderboard == null ? void 0 : quizLeaderboard.entries) && quizLeaderboard.entries.slice(0, viewAllEntries ? void 0 : 5).map((question) => /* @__PURE__ */ React95.createElement(
|
21809
21829
|
LeaderboardEntry,
|
21810
21830
|
{
|
21811
21831
|
key: question.position,
|
@@ -21817,7 +21837,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
21817
21837
|
maxPossibleScore
|
21818
21838
|
}
|
21819
21839
|
)),
|
21820
|
-
((
|
21840
|
+
((_b7 = quizLeaderboard == null ? void 0 : quizLeaderboard.entries) == null ? void 0 : _b7.length) > 5 && !viewAllEntries ? /* @__PURE__ */ React95.createElement(
|
21821
21841
|
Flex,
|
21822
21842
|
{
|
21823
21843
|
align: "center",
|
@@ -21831,9 +21851,9 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
21831
21851
|
},
|
21832
21852
|
onClick: () => setViewAllEntries(true)
|
21833
21853
|
},
|
21834
|
-
/* @__PURE__ */
|
21854
|
+
/* @__PURE__ */ React95.createElement(Text, { variant: "sm" }, "View All"),
|
21835
21855
|
" ",
|
21836
|
-
/* @__PURE__ */
|
21856
|
+
/* @__PURE__ */ React95.createElement(ChevronRightIcon3, null)
|
21837
21857
|
) : null
|
21838
21858
|
));
|
21839
21859
|
};
|
@@ -21842,11 +21862,11 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
21842
21862
|
init_define_process_env();
|
21843
21863
|
import React99 from "react";
|
21844
21864
|
import {
|
21845
|
-
selectLocalPeerID as
|
21865
|
+
selectLocalPeerID as selectLocalPeerID9,
|
21846
21866
|
selectPeerNameByID,
|
21847
|
-
selectPollByID as
|
21867
|
+
selectPollByID as selectPollByID4,
|
21848
21868
|
useHMSActions as useHMSActions29,
|
21849
|
-
useHMSStore as
|
21869
|
+
useHMSStore as useHMSStore42
|
21850
21870
|
} from "@100mslive/react-sdk";
|
21851
21871
|
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon13 } from "@100mslive/react-icons";
|
21852
21872
|
|
@@ -21854,28 +21874,10 @@ import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon13 } from "@
|
|
21854
21874
|
init_define_process_env();
|
21855
21875
|
import React97 from "react";
|
21856
21876
|
|
21857
|
-
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
21858
|
-
init_define_process_env();
|
21859
|
-
import React95 from "react";
|
21860
|
-
import { selectLocalPeer, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
|
21861
|
-
var PeerParticipationSummary = ({ poll }) => {
|
21862
|
-
const localPeer = useHMSStore39(selectLocalPeer);
|
21863
|
-
const { totalResponses, correctResponses, score } = getPeerParticipationSummary(
|
21864
|
-
poll,
|
21865
|
-
localPeer == null ? void 0 : localPeer.id,
|
21866
|
-
localPeer == null ? void 0 : localPeer.customerUserId
|
21867
|
-
);
|
21868
|
-
const boxes = [
|
21869
|
-
{ title: "Points", value: score },
|
21870
|
-
{ title: "Correct Answers", value: `${correctResponses}/${totalResponses}` }
|
21871
|
-
];
|
21872
|
-
return /* @__PURE__ */ React95.createElement(Box, null, /* @__PURE__ */ React95.createElement(Text, { css: { fontWeight: "$semiBold", my: "$8" } }, "Participation Summary"), /* @__PURE__ */ React95.createElement(Box, { css: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "$4" } }, boxes.map((box) => /* @__PURE__ */ React95.createElement(StatisticBox, { key: box.title, title: box.title, value: box.value }))));
|
21873
|
-
};
|
21874
|
-
|
21875
21877
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
21876
21878
|
init_define_process_env();
|
21877
|
-
import React96, { useCallback as useCallback20, useMemo as useMemo6, useState as
|
21878
|
-
import { selectLocalPeer
|
21879
|
+
import React96, { useCallback as useCallback20, useMemo as useMemo6, useState as useState38 } from "react";
|
21880
|
+
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions28, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
|
21879
21881
|
import {
|
21880
21882
|
CheckCircleIcon as CheckCircleIcon5,
|
21881
21883
|
ChevronDownIcon as ChevronDownIcon5,
|
@@ -21902,7 +21904,7 @@ var QuestionCard2 = ({
|
|
21902
21904
|
rolesThatCanViewResponses
|
21903
21905
|
}) => {
|
21904
21906
|
const actions = useHMSActions28();
|
21905
|
-
const localPeer =
|
21907
|
+
const localPeer = useHMSStore41(selectLocalPeer);
|
21906
21908
|
const localPeerResponse = responses == null ? void 0 : responses.find(
|
21907
21909
|
(response) => {
|
21908
21910
|
var _a8, _b7;
|
@@ -21910,7 +21912,7 @@ var QuestionCard2 = ({
|
|
21910
21912
|
}
|
21911
21913
|
);
|
21912
21914
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
21913
|
-
const localPeerRoleName =
|
21915
|
+
const localPeerRoleName = useHMSStore41(selectLocalPeerRoleName2);
|
21914
21916
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
21915
21917
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
21916
21918
|
const isLive = pollState === "started";
|
@@ -21924,9 +21926,9 @@ var QuestionCard2 = ({
|
|
21924
21926
|
const movePrev = () => {
|
21925
21927
|
setCurrentIndex((curr) => Math.max(1, curr - 1));
|
21926
21928
|
};
|
21927
|
-
const [singleOptionAnswer, setSingleOptionAnswer] =
|
21928
|
-
const [multipleOptionAnswer, setMultipleOptionAnswer] =
|
21929
|
-
const [showOptions, setShowOptions] =
|
21929
|
+
const [singleOptionAnswer, setSingleOptionAnswer] = useState38();
|
21930
|
+
const [multipleOptionAnswer, setMultipleOptionAnswer] = useState38(/* @__PURE__ */ new Set());
|
21931
|
+
const [showOptions, setShowOptions] = useState38(true);
|
21930
21932
|
const respondedToQuiz = isQuiz && localPeerResponse && !localPeerResponse.skipped;
|
21931
21933
|
const isValidVote = useMemo6(() => {
|
21932
21934
|
if (type === "single-choice" /* SINGLE_CHOICE */) {
|
@@ -22079,7 +22081,7 @@ var StandardView = ({ poll }) => {
|
|
22079
22081
|
}
|
22080
22082
|
const isQuiz = poll.type === "quiz";
|
22081
22083
|
const isStopped = poll.state === "stopped";
|
22082
|
-
return /* @__PURE__ */ React97.createElement(React97.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React97.createElement(PeerParticipationSummary, { poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
|
22084
|
+
return /* @__PURE__ */ React97.createElement(React97.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React97.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
|
22083
22085
|
var _a9;
|
22084
22086
|
return /* @__PURE__ */ React97.createElement(
|
22085
22087
|
QuestionCard2,
|
@@ -22109,10 +22111,10 @@ var StandardView = ({ poll }) => {
|
|
22109
22111
|
|
22110
22112
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
22111
22113
|
init_define_process_env();
|
22112
|
-
import React98, { useState as
|
22114
|
+
import React98, { useState as useState39 } from "react";
|
22113
22115
|
var TimedView = ({ poll }) => {
|
22114
22116
|
var _a8, _b7;
|
22115
|
-
const [currentIndex, setCurrentIndex] =
|
22117
|
+
const [currentIndex, setCurrentIndex] = useState39(1);
|
22116
22118
|
const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
|
22117
22119
|
if (!activeQuestion) {
|
22118
22120
|
return null;
|
@@ -22143,9 +22145,9 @@ var TimedView = ({ poll }) => {
|
|
22143
22145
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
22144
22146
|
var Voting = ({ id, toggleVoting }) => {
|
22145
22147
|
const actions = useHMSActions29();
|
22146
|
-
const poll =
|
22147
|
-
const pollCreatorName =
|
22148
|
-
const isLocalPeerCreator =
|
22148
|
+
const poll = useHMSStore42(selectPollByID4(id));
|
22149
|
+
const pollCreatorName = useHMSStore42(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
|
22150
|
+
const isLocalPeerCreator = useHMSStore42(selectLocalPeerID9) === (poll == null ? void 0 : poll.createdBy);
|
22149
22151
|
const { setPollView } = usePollViewState();
|
22150
22152
|
if (!poll) {
|
22151
22153
|
return null;
|
@@ -22188,7 +22190,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
22188
22190
|
},
|
22189
22191
|
/* @__PURE__ */ React99.createElement(CrossIcon13, { onClick: toggleVoting })
|
22190
22192
|
)
|
22191
|
-
), /* @__PURE__ */ React99.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } },
|
22193
|
+
), /* @__PURE__ */ React99.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ React99.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, isTimed ? /* @__PURE__ */ React99.createElement(TimedView, { poll }) : /* @__PURE__ */ React99.createElement(StandardView, { poll }), poll.state === "started" && isLocalPeerCreator && /* @__PURE__ */ React99.createElement(
|
22192
22194
|
Button,
|
22193
22195
|
{
|
22194
22196
|
variant: "danger",
|
@@ -22226,42 +22228,42 @@ var Polls = () => {
|
|
22226
22228
|
|
22227
22229
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
22228
22230
|
init_define_process_env();
|
22229
|
-
import React115, { useEffect as useEffect27, useState as
|
22231
|
+
import React115, { useEffect as useEffect27, useState as useState48 } from "react";
|
22230
22232
|
import { useMedia as useMedia17 } from "react-use";
|
22231
|
-
import { selectPeerCount as selectPeerCount4, useHMSStore as
|
22233
|
+
import { selectPeerCount as selectPeerCount4, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
22232
22234
|
import { CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
|
22233
22235
|
|
22234
22236
|
// src/Prebuilt/components/Chat/Chat.tsx
|
22235
22237
|
init_define_process_env();
|
22236
22238
|
import React112, { useCallback as useCallback28, useRef as useRef19 } from "react";
|
22237
22239
|
import { useMedia as useMedia16 } from "react-use";
|
22238
|
-
import { selectHMSMessagesCount, useHMSActions as useHMSActions37, useHMSStore as
|
22240
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions37, useHMSStore as useHMSStore52, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
22239
22241
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
22240
22242
|
|
22241
22243
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
22242
22244
|
init_define_process_env();
|
22243
|
-
import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as useRef16, useState as
|
22245
|
+
import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as useRef16, useState as useState42 } from "react";
|
22244
22246
|
import { useMedia as useMedia11 } from "react-use";
|
22245
22247
|
import AutoSizer from "react-virtualized-auto-sizer";
|
22246
22248
|
import { VariableSizeList } from "react-window";
|
22247
22249
|
import {
|
22248
22250
|
selectHMSMessages,
|
22249
|
-
selectLocalPeerID as
|
22251
|
+
selectLocalPeerID as selectLocalPeerID10,
|
22250
22252
|
selectLocalPeerName as selectLocalPeerName3,
|
22251
22253
|
selectLocalPeerRoleName as selectLocalPeerRoleName3,
|
22252
22254
|
selectPeerNameByID as selectPeerNameByID3,
|
22253
22255
|
selectSessionStore as selectSessionStore5,
|
22254
22256
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
22255
22257
|
useHMSActions as useHMSActions33,
|
22256
|
-
useHMSStore as
|
22258
|
+
useHMSStore as useHMSStore46,
|
22257
22259
|
useHMSVanillaStore as useHMSVanillaStore9
|
22258
22260
|
} from "@100mslive/react-sdk";
|
22259
22261
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
22260
22262
|
|
22261
22263
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
22262
22264
|
init_define_process_env();
|
22263
|
-
import React102, { useCallback as useCallback23, useState as
|
22264
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions13, useHMSActions as useHMSActions32, useHMSStore as
|
22265
|
+
import React102, { useCallback as useCallback23, useState as useState40 } from "react";
|
22266
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions13, useHMSActions as useHMSActions32, useHMSStore as useHMSStore44 } from "@100mslive/react-sdk";
|
22265
22267
|
import {
|
22266
22268
|
CopyIcon as CopyIcon2,
|
22267
22269
|
CrossCircleIcon as CrossCircleIcon2,
|
@@ -22289,10 +22291,10 @@ var MwebChatOption = ({
|
|
22289
22291
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
22290
22292
|
init_define_process_env();
|
22291
22293
|
import { useCallback as useCallback21 } from "react";
|
22292
|
-
import { selectLocalPeer as
|
22294
|
+
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
|
22293
22295
|
var useChatBlacklist = (sessionStoreKey) => {
|
22294
22296
|
const hmsActions = useHMSActions30();
|
22295
|
-
const blacklistedIDs =
|
22297
|
+
const blacklistedIDs = useHMSStore43(selectSessionStore2(sessionStoreKey));
|
22296
22298
|
const blacklistItem = useCallback21(
|
22297
22299
|
(blacklistID) => __async(void 0, null, function* () {
|
22298
22300
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -22302,8 +22304,8 @@ var useChatBlacklist = (sessionStoreKey) => {
|
|
22302
22304
|
return { blacklistItem, blacklistedIDs };
|
22303
22305
|
};
|
22304
22306
|
var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
22305
|
-
const localPeer =
|
22306
|
-
const blacklistedPeerIDs =
|
22307
|
+
const localPeer = useHMSStore43(selectLocalPeer2);
|
22308
|
+
const blacklistedPeerIDs = useHMSStore43(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
|
22307
22309
|
return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
|
22308
22310
|
};
|
22309
22311
|
|
@@ -22384,11 +22386,11 @@ var ChatActions = ({
|
|
22384
22386
|
const { elements } = useRoomLayoutConferencingScreen();
|
22385
22387
|
const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
|
22386
22388
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
22387
|
-
const [open, setOpen] =
|
22389
|
+
const [open, setOpen] = useState40(false);
|
22388
22390
|
const actions = useHMSActions32();
|
22389
|
-
const canRemoveOthers = (_b7 =
|
22391
|
+
const canRemoveOthers = (_b7 = useHMSStore44(selectPermissions13)) == null ? void 0 : _b7.removeOthers;
|
22390
22392
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
22391
|
-
const localPeerName =
|
22393
|
+
const localPeerName = useHMSStore44(selectLocalPeerName2);
|
22392
22394
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
22393
22395
|
const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
|
22394
22396
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
@@ -22607,11 +22609,11 @@ var EmptyChat = () => {
|
|
22607
22609
|
|
22608
22610
|
// src/Prebuilt/components/hooks/usePinnedBy.tsx
|
22609
22611
|
init_define_process_env();
|
22610
|
-
import { useEffect as useEffect21, useState as
|
22611
|
-
import { selectSessionStore as selectSessionStore4, useHMSStore as
|
22612
|
+
import { useEffect as useEffect21, useState as useState41 } from "react";
|
22613
|
+
import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
|
22612
22614
|
var usePinnedBy = (messageId) => {
|
22613
|
-
const pinnedMessages =
|
22614
|
-
const [pinnedBy, setPinnedBy] =
|
22615
|
+
const pinnedMessages = useHMSStore45(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
22616
|
+
const [pinnedBy, setPinnedBy] = useState41("");
|
22615
22617
|
useEffect21(() => {
|
22616
22618
|
let match = "";
|
22617
22619
|
pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
|
@@ -22693,8 +22695,8 @@ var MessageType = ({
|
|
22693
22695
|
hasCurrentUserSent,
|
22694
22696
|
receiver
|
22695
22697
|
}) => {
|
22696
|
-
const peerName =
|
22697
|
-
const localPeerRoleName =
|
22698
|
+
const peerName = useHMSStore46(selectPeerNameByID3(receiver));
|
22699
|
+
const localPeerRoleName = useHMSStore46(selectLocalPeerRoleName3);
|
22698
22700
|
if (receiver) {
|
22699
22701
|
return /* @__PURE__ */ React104.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
|
22700
22702
|
}
|
@@ -22742,14 +22744,14 @@ var ChatMessage = React104.memo(
|
|
22742
22744
|
const isMobile = useMedia11(config.media.md);
|
22743
22745
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
22744
22746
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
22745
|
-
const localPeerId =
|
22747
|
+
const localPeerId = useHMSStore46(selectLocalPeerID10);
|
22746
22748
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
22747
22749
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
22748
22750
|
const messageType = getMessageType({
|
22749
22751
|
roles: message.recipientRoles,
|
22750
22752
|
receiver: message.recipientPeer
|
22751
22753
|
});
|
22752
|
-
const [openSheet, setOpenSheet] =
|
22754
|
+
const [openSheet, setOpenSheet] = useState42(false);
|
22753
22755
|
const showPinAction = !!((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.allow_pinning_messages);
|
22754
22756
|
const showReply = message.sender !== selectedPeer.id && message.sender !== localPeerId && isPrivateChatEnabled;
|
22755
22757
|
useLayoutEffect(() => {
|
@@ -22958,8 +22960,8 @@ var VirtualizedChatMessages = React104.forwardRef(({ messages, scrollToBottom },
|
|
22958
22960
|
});
|
22959
22961
|
var ChatBody = React104.forwardRef(
|
22960
22962
|
({ scrollToBottom }, listRef) => {
|
22961
|
-
const messages =
|
22962
|
-
const blacklistedMessageIDs =
|
22963
|
+
const messages = useHMSStore46(selectHMSMessages);
|
22964
|
+
const blacklistedMessageIDs = useHMSStore46(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
|
22963
22965
|
const filteredMessages = useMemo7(() => {
|
22964
22966
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
22965
22967
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
@@ -22989,7 +22991,7 @@ var PinnedBy = ({
|
|
22989
22991
|
rowRef
|
22990
22992
|
}) => {
|
22991
22993
|
const pinnedBy = usePinnedBy(messageId);
|
22992
|
-
const localPeerName =
|
22994
|
+
const localPeerName = useHMSStore46(selectLocalPeerName3);
|
22993
22995
|
useLayoutEffect(() => {
|
22994
22996
|
if (rowRef == null ? void 0 : rowRef.current) {
|
22995
22997
|
if (pinnedBy) {
|
@@ -23008,29 +23010,29 @@ var PinnedBy = ({
|
|
23008
23010
|
|
23009
23011
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
23010
23012
|
init_define_process_env();
|
23011
|
-
import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as useRef18, useState as
|
23013
|
+
import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as useRef18, useState as useState45 } from "react";
|
23012
23014
|
import { useMedia as useMedia14 } from "react-use";
|
23013
23015
|
import data2 from "@emoji-mart/data";
|
23014
23016
|
import Picker from "@emoji-mart/react";
|
23015
|
-
import { selectLocalPeer as
|
23017
|
+
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions35, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
|
23016
23018
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
23017
23019
|
|
23018
23020
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
23019
23021
|
init_define_process_env();
|
23020
|
-
import React106, { useState as
|
23022
|
+
import React106, { useState as useState44 } from "react";
|
23021
23023
|
import { useMedia as useMedia13 } from "react-use";
|
23022
23024
|
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon15, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
|
23023
23025
|
|
23024
23026
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
23025
23027
|
init_define_process_env();
|
23026
|
-
import React105, { useMemo as useMemo8, useState as
|
23028
|
+
import React105, { useMemo as useMemo8, useState as useState43 } from "react";
|
23027
23029
|
import { useMedia as useMedia12 } from "react-use";
|
23028
23030
|
import {
|
23029
23031
|
selectMessagesUnreadCountByPeerID,
|
23030
23032
|
selectMessagesUnreadCountByRole,
|
23031
23033
|
selectRemotePeers as selectRemotePeers2,
|
23032
23034
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
|
23033
|
-
useHMSStore as
|
23035
|
+
useHMSStore as useHMSStore47
|
23034
23036
|
} from "@100mslive/react-sdk";
|
23035
23037
|
import { CheckIcon as CheckIcon6, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
|
23036
23038
|
var ChatDotIcon = () => {
|
@@ -23080,7 +23082,7 @@ var SelectorHeader = React105.memo(
|
|
23080
23082
|
}
|
23081
23083
|
);
|
23082
23084
|
var Everyone = React105.memo(({ active }) => {
|
23083
|
-
const unreadCount =
|
23085
|
+
const unreadCount = useHMSStore47(selectUnreadHMSMessagesCount3);
|
23084
23086
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
23085
23087
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
23086
23088
|
return /* @__PURE__ */ React105.createElement(
|
@@ -23098,7 +23100,7 @@ var Everyone = React105.memo(({ active }) => {
|
|
23098
23100
|
);
|
23099
23101
|
});
|
23100
23102
|
var RoleItem = React105.memo(({ role, active }) => {
|
23101
|
-
const unreadCount =
|
23103
|
+
const unreadCount = useHMSStore47(selectMessagesUnreadCountByRole(role));
|
23102
23104
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
23103
23105
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
23104
23106
|
return /* @__PURE__ */ React105.createElement(
|
@@ -23115,7 +23117,7 @@ var RoleItem = React105.memo(({ role, active }) => {
|
|
23115
23117
|
);
|
23116
23118
|
});
|
23117
23119
|
var PeerItem = ({ peerId, name, active }) => {
|
23118
|
-
const unreadCount =
|
23120
|
+
const unreadCount = useHMSStore47(selectMessagesUnreadCountByPeerID(peerId));
|
23119
23121
|
const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
23120
23122
|
const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
23121
23123
|
return /* @__PURE__ */ React105.createElement(
|
@@ -23174,8 +23176,8 @@ var VirtualizedSelectItemList = ({
|
|
23174
23176
|
var ChatSelector = ({ role, peerId }) => {
|
23175
23177
|
var _a8, _b7;
|
23176
23178
|
const { elements } = useRoomLayoutConferencingScreen();
|
23177
|
-
const peers =
|
23178
|
-
const [search, setSearch] =
|
23179
|
+
const peers = useHMSStore47(selectRemotePeers2);
|
23180
|
+
const [search, setSearch] = useState43("");
|
23179
23181
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
23180
23182
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
23181
23183
|
return /* @__PURE__ */ React105.createElement(React105.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React105.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React105.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React105.createElement(
|
@@ -23193,7 +23195,7 @@ var ChatSelector = ({ role, peerId }) => {
|
|
23193
23195
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
23194
23196
|
var ChatSelectorContainer = () => {
|
23195
23197
|
var _a8, _b7;
|
23196
|
-
const [open, setOpen] =
|
23198
|
+
const [open, setOpen] = useState44(false);
|
23197
23199
|
const isMobile = useMedia13(config.media.md);
|
23198
23200
|
const { elements } = useRoomLayoutConferencingScreen();
|
23199
23201
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
@@ -23312,10 +23314,10 @@ var ChatSelectorContainer = () => {
|
|
23312
23314
|
// src/Prebuilt/components/AppData/useChatState.js
|
23313
23315
|
init_define_process_env();
|
23314
23316
|
import { useCallback as useCallback25 } from "react";
|
23315
|
-
import { selectAppData as selectAppData4, useHMSActions as useHMSActions34, useHMSStore as
|
23317
|
+
import { selectAppData as selectAppData4, useHMSActions as useHMSActions34, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
|
23316
23318
|
var useChatDraftMessage = () => {
|
23317
23319
|
const hmsActions = useHMSActions34();
|
23318
|
-
let chatDraftMessage =
|
23320
|
+
let chatDraftMessage = useHMSStore48(selectAppData4(APP_DATA.chatDraft));
|
23319
23321
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
23320
23322
|
chatDraftMessage = "";
|
23321
23323
|
}
|
@@ -23381,7 +23383,7 @@ var TextArea2 = styled("textarea", {
|
|
23381
23383
|
}
|
23382
23384
|
});
|
23383
23385
|
function EmojiPicker({ onSelect }) {
|
23384
|
-
const [showEmoji, setShowEmoji] =
|
23386
|
+
const [showEmoji, setShowEmoji] = useState45(false);
|
23385
23387
|
const ref = useEmojiPickerStyles(showEmoji);
|
23386
23388
|
return /* @__PURE__ */ React107.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React107.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React107.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React107.createElement(EmojiIcon3, null))), /* @__PURE__ */ React107.createElement(Popover2.Portal, null, /* @__PURE__ */ React107.createElement(
|
23387
23389
|
Popover2.Content,
|
@@ -23414,7 +23416,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
23414
23416
|
const isMobile = useMedia14(config.media.md);
|
23415
23417
|
const { elements } = useRoomLayoutConferencingScreen();
|
23416
23418
|
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
23417
|
-
const localPeer =
|
23419
|
+
const localPeer = useHMSStore49(selectLocalPeer3);
|
23418
23420
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
23419
23421
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
23420
23422
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
@@ -23581,14 +23583,14 @@ var ChatFooter = ({ onSend, children }) => {
|
|
23581
23583
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
23582
23584
|
init_define_process_env();
|
23583
23585
|
import React108, { useCallback as useCallback27 } from "react";
|
23584
|
-
import { selectLocalPeer as
|
23586
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions36, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23585
23587
|
var ChatPaused = () => {
|
23586
23588
|
var _a8, _b7;
|
23587
23589
|
const hmsActions = useHMSActions36();
|
23588
23590
|
const { elements } = useRoomLayoutConferencingScreen();
|
23589
23591
|
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);
|
23590
|
-
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } =
|
23591
|
-
const localPeer =
|
23592
|
+
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore50(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
23593
|
+
const localPeer = useHMSStore50(selectLocalPeer4);
|
23592
23594
|
const unPauseChat = useCallback27(
|
23593
23595
|
() => __async(void 0, null, function* () {
|
23594
23596
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
@@ -23636,10 +23638,10 @@ var ChatBlocked = () => {
|
|
23636
23638
|
|
23637
23639
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
23638
23640
|
init_define_process_env();
|
23639
|
-
import React111, { useEffect as useEffect25, useState as
|
23641
|
+
import React111, { useEffect as useEffect25, useState as useState46 } from "react";
|
23640
23642
|
import { useSwipeable } from "react-swipeable";
|
23641
23643
|
import { useMedia as useMedia15 } from "react-use";
|
23642
|
-
import { selectSessionStore as selectSessionStore7, useHMSStore as
|
23644
|
+
import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
|
23643
23645
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
23644
23646
|
|
23645
23647
|
// src/Prebuilt/components/Chat/ArrowNavigation.tsx
|
@@ -23696,13 +23698,13 @@ var StickIndicator = ({ total, index }) => {
|
|
23696
23698
|
var PINNED_MESSAGE_LENGTH = 75;
|
23697
23699
|
var PinnedMessage = () => {
|
23698
23700
|
var _a8, _b7, _c;
|
23699
|
-
const pinnedMessages =
|
23700
|
-
const [pinnedMessageIndex, setPinnedMessageIndex] =
|
23701
|
+
const pinnedMessages = useHMSStore51(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
23702
|
+
const [pinnedMessageIndex, setPinnedMessageIndex] = useState46(0);
|
23701
23703
|
const { removePinnedMessage } = usePinnedMessages();
|
23702
23704
|
const isMobile = useMedia15(config.media.md);
|
23703
23705
|
const { elements } = useRoomLayoutConferencingScreen();
|
23704
23706
|
const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
|
23705
|
-
const [hideOverflow, setHideOverflow] =
|
23707
|
+
const [hideOverflow, setHideOverflow] = useState46(true);
|
23706
23708
|
const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
|
23707
23709
|
const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
|
23708
23710
|
const showPreviousPinnedMessage = () => {
|
@@ -23816,7 +23818,7 @@ var Chat = () => {
|
|
23816
23818
|
const listRef = useRef19(null);
|
23817
23819
|
const hmsActions = useHMSActions37();
|
23818
23820
|
const vanillaStore = useHMSVanillaStore10();
|
23819
|
-
const { enabled: isChatEnabled = true } =
|
23821
|
+
const { enabled: isChatEnabled = true } = useHMSStore52(qh("chatState" /* CHAT_STATE */)) || {};
|
23820
23822
|
const isMobile = useMedia16(config.media.md);
|
23821
23823
|
const scrollToBottom = useCallback28(
|
23822
23824
|
(unreadCount = 0) => {
|
@@ -23854,7 +23856,7 @@ var NewMessageIndicator = ({
|
|
23854
23856
|
scrollToBottom,
|
23855
23857
|
listRef
|
23856
23858
|
}) => {
|
23857
|
-
const unreadCount =
|
23859
|
+
const unreadCount = useHMSStore52(Un);
|
23858
23860
|
if (!unreadCount || !listRef.current) {
|
23859
23861
|
return null;
|
23860
23862
|
}
|
@@ -23900,11 +23902,11 @@ var NewMessageIndicator = ({
|
|
23900
23902
|
|
23901
23903
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
23902
23904
|
init_define_process_env();
|
23903
|
-
import React113, { useEffect as useEffect26, useState as
|
23905
|
+
import React113, { useEffect as useEffect26, useState as useState47 } from "react";
|
23904
23906
|
import { useInView } from "react-intersection-observer";
|
23905
23907
|
import { useMeasure as useMeasure2 } from "react-use";
|
23906
23908
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
23907
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as
|
23909
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore53, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
23908
23910
|
import { ChevronLeftIcon as ChevronLeftIcon7, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
|
23909
23911
|
var LoadMoreParticipants = ({
|
23910
23912
|
hasNext,
|
@@ -23912,7 +23914,7 @@ var LoadMoreParticipants = ({
|
|
23912
23914
|
style
|
23913
23915
|
}) => {
|
23914
23916
|
const { ref, inView } = useInView();
|
23915
|
-
const [inProgress, setInProgress] =
|
23917
|
+
const [inProgress, setInProgress] = useState47(false);
|
23916
23918
|
useEffect26(() => {
|
23917
23919
|
if (hasNext && inView && !inProgress) {
|
23918
23920
|
setInProgress(true);
|
@@ -23943,12 +23945,12 @@ var VirtualizedParticipantItem2 = React113.memo(
|
|
23943
23945
|
);
|
23944
23946
|
var PaginatedParticipants = ({ roleName, onBack }) => {
|
23945
23947
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
|
23946
|
-
const [search, setSearch] =
|
23948
|
+
const [search, setSearch] = useState47("");
|
23947
23949
|
const filteredPeers = peers.filter((p) => {
|
23948
23950
|
var _a8;
|
23949
23951
|
return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
23950
23952
|
});
|
23951
|
-
const isConnected =
|
23953
|
+
const isConnected = useHMSStore53(selectIsConnectedToRoom8);
|
23952
23954
|
const [ref, { width }] = useMeasure2();
|
23953
23955
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
23954
23956
|
const resetSidePane = useSidepaneReset();
|
@@ -23982,15 +23984,15 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
23982
23984
|
// src/Prebuilt/components/ChatSettings.tsx
|
23983
23985
|
init_define_process_env();
|
23984
23986
|
import React114 from "react";
|
23985
|
-
import { selectLocalPeer as
|
23987
|
+
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions38, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
23986
23988
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon4 } from "@100mslive/react-icons";
|
23987
23989
|
var ChatSettings = () => {
|
23988
23990
|
var _a8, _b7;
|
23989
23991
|
const hmsActions = useHMSActions38();
|
23990
|
-
const localPeer =
|
23992
|
+
const localPeer = useHMSStore54(selectLocalPeer5);
|
23991
23993
|
const { elements } = useRoomLayoutConferencingScreen();
|
23992
23994
|
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
23993
|
-
const { enabled: isChatEnabled = true } =
|
23995
|
+
const { enabled: isChatEnabled = true } = useHMSStore54(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
|
23994
23996
|
const showPause = canPauseChat && isChatEnabled;
|
23995
23997
|
if (!showPause) {
|
23996
23998
|
return null;
|
@@ -24053,9 +24055,9 @@ var SidePaneTabs = React115.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
24053
24055
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
24054
24056
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
24055
24057
|
const resetSidePane = useSidepaneReset();
|
24056
|
-
const [activeTab, setActiveTab] =
|
24057
|
-
const [activeRole, setActiveRole] =
|
24058
|
-
const peerCount =
|
24058
|
+
const [activeTab, setActiveTab] = useState48(active);
|
24059
|
+
const [activeRole, setActiveRole] = useState48("");
|
24060
|
+
const peerCount = useHMSStore55(selectPeerCount4);
|
24059
24061
|
const { elements } = useRoomLayoutConferencingScreen();
|
24060
24062
|
const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
|
24061
24063
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
@@ -24175,19 +24177,19 @@ var SidePaneTabs = React115.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
|
|
24175
24177
|
|
24176
24178
|
// src/Prebuilt/components/VideoTile.jsx
|
24177
24179
|
init_define_process_env();
|
24178
|
-
import React119, { Fragment as Fragment13, useCallback as useCallback29, useMemo as useMemo9, useState as
|
24180
|
+
import React119, { Fragment as Fragment13, useCallback as useCallback29, useMemo as useMemo9, useState as useState50 } from "react";
|
24179
24181
|
import { useMeasure as useMeasure3 } from "react-use";
|
24180
24182
|
import {
|
24181
24183
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
24182
24184
|
selectHasPeerHandRaised as selectHasPeerHandRaised3,
|
24183
24185
|
selectIsPeerAudioEnabled as selectIsPeerAudioEnabled2,
|
24184
|
-
selectLocalPeerID as
|
24186
|
+
selectLocalPeerID as selectLocalPeerID12,
|
24185
24187
|
selectPeerMetadata as selectPeerMetadata4,
|
24186
24188
|
selectPeerNameByID as selectPeerNameByID4,
|
24187
24189
|
selectSessionStore as selectSessionStore10,
|
24188
24190
|
selectVideoTrackByID as selectVideoTrackByID3,
|
24189
24191
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
24190
|
-
useHMSStore as
|
24192
|
+
useHMSStore as useHMSStore58
|
24191
24193
|
} from "@100mslive/react-sdk";
|
24192
24194
|
import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
|
24193
24195
|
|
@@ -24234,15 +24236,15 @@ var TileConnection_default = TileConnection;
|
|
24234
24236
|
|
24235
24237
|
// src/Prebuilt/components/TileMenu/TileMenu.jsx
|
24236
24238
|
init_define_process_env();
|
24237
|
-
import React118, { useState as
|
24239
|
+
import React118, { useState as useState49 } from "react";
|
24238
24240
|
import { useMedia as useMedia19 } from "react-use";
|
24239
24241
|
import {
|
24240
|
-
selectLocalPeerID as
|
24242
|
+
selectLocalPeerID as selectLocalPeerID11,
|
24241
24243
|
selectPeerByID as selectPeerByID2,
|
24242
24244
|
selectPermissions as selectPermissions15,
|
24243
24245
|
selectTrackByID as selectTrackByID3,
|
24244
24246
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
24245
|
-
useHMSStore as
|
24247
|
+
useHMSStore as useHMSStore57,
|
24246
24248
|
useRemoteAVToggle as useRemoteAVToggle2
|
24247
24249
|
} from "@100mslive/react-sdk";
|
24248
24250
|
import { CrossIcon as CrossIcon18, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
|
@@ -24257,7 +24259,7 @@ import {
|
|
24257
24259
|
selectTrackByID as selectTrackByID2,
|
24258
24260
|
useCustomEvent as useCustomEvent2,
|
24259
24261
|
useHMSActions as useHMSActions39,
|
24260
|
-
useHMSStore as
|
24262
|
+
useHMSStore as useHMSStore56,
|
24261
24263
|
useRemoteAVToggle
|
24262
24264
|
} from "@100mslive/react-sdk";
|
24263
24265
|
import {
|
@@ -24294,7 +24296,7 @@ var SpotlightActions = ({
|
|
24294
24296
|
}
|
24295
24297
|
}) => {
|
24296
24298
|
const hmsActions = useHMSActions39();
|
24297
|
-
const spotlightPeerId =
|
24299
|
+
const spotlightPeerId = useHMSStore56(selectSessionStore9("spotlight" /* SPOTLIGHT */));
|
24298
24300
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
24299
24301
|
const dragClassName = getDragClassName();
|
24300
24302
|
const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
|
@@ -24342,7 +24344,7 @@ var MinimiseInset = () => {
|
|
24342
24344
|
};
|
24343
24345
|
var SimulcastLayers = ({ trackId }) => {
|
24344
24346
|
var _a8;
|
24345
|
-
const track =
|
24347
|
+
const track = useHMSStore56(selectTrackByID2(trackId));
|
24346
24348
|
const actions = useHMSActions39();
|
24347
24349
|
const bg = useDropdownSelection();
|
24348
24350
|
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
@@ -24428,7 +24430,7 @@ var TileMenuContent = ({
|
|
24428
24430
|
var _a8;
|
24429
24431
|
const actions = useHMSActions39();
|
24430
24432
|
const dragClassName = getDragClassName();
|
24431
|
-
const removeOthers = (_a8 =
|
24433
|
+
const removeOthers = (_a8 = useHMSStore56(selectPermissions14)) == null ? void 0 : _a8.removeOthers;
|
24432
24434
|
const { userName } = useHMSPrebuiltContext();
|
24433
24435
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
24434
24436
|
audioTrackID,
|
@@ -24514,20 +24516,20 @@ var TileMenu = ({
|
|
24514
24516
|
enableSpotlightingPeer = true
|
24515
24517
|
}) => {
|
24516
24518
|
var _a8, _b7;
|
24517
|
-
const [open, setOpen] =
|
24519
|
+
const [open, setOpen] = useState49(false);
|
24518
24520
|
const { theme: theme2 } = useTheme();
|
24519
|
-
const localPeerID =
|
24521
|
+
const localPeerID = useHMSStore57(selectLocalPeerID11);
|
24520
24522
|
const isLocal = localPeerID === peerID;
|
24521
|
-
const { removeOthers } =
|
24523
|
+
const { removeOthers } = useHMSStore57(selectPermissions15);
|
24522
24524
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
24523
24525
|
const showSpotlight = enableSpotlightingPeer;
|
24524
|
-
const isPrimaryVideoTrack = ((_a8 =
|
24526
|
+
const isPrimaryVideoTrack = ((_a8 = useHMSStore57(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
24525
24527
|
const showPinAction = audioTrackID || videoTrackID && isPrimaryVideoTrack;
|
24526
|
-
const track =
|
24528
|
+
const track = useHMSStore57(selectTrackByID3(videoTrackID));
|
24527
24529
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
24528
24530
|
const isMobile = useMedia19(config.media.md);
|
24529
|
-
const peer =
|
24530
|
-
const [showNameChangeModal, setShowNameChangeModal] =
|
24531
|
+
const peer = useHMSStore57(selectPeerByID2(peerID));
|
24532
|
+
const [showNameChangeModal, setShowNameChangeModal] = useState49(false);
|
24531
24533
|
useDropdownList({ open, name: "TileMenu" });
|
24532
24534
|
const dragClassName = getDragClassName();
|
24533
24535
|
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
@@ -24619,16 +24621,16 @@ var Tile = ({
|
|
24619
24621
|
hideMetadataOnTile = false
|
24620
24622
|
}) => {
|
24621
24623
|
const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
|
24622
|
-
const track =
|
24623
|
-
const peerName =
|
24624
|
-
const audioTrack =
|
24625
|
-
const localPeerID =
|
24624
|
+
const track = useHMSStore58(trackSelector);
|
24625
|
+
const peerName = useHMSStore58(selectPeerNameByID4(peerId));
|
24626
|
+
const audioTrack = useHMSStore58(selectAudioTrackByPeerID2(peerId));
|
24627
|
+
const localPeerID = useHMSStore58(selectLocalPeerID12);
|
24626
24628
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
24627
24629
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
24628
24630
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
24629
|
-
const isAudioMuted = !
|
24631
|
+
const isAudioMuted = !useHMSStore58(selectIsPeerAudioEnabled2(peerId));
|
24630
24632
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
24631
|
-
const [isMouseHovered, setIsMouseHovered] =
|
24633
|
+
const [isMouseHovered, setIsMouseHovered] = useState50(false);
|
24632
24634
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
24633
24635
|
const isLocal = localPeerID === peerId;
|
24634
24636
|
const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
|
@@ -24637,7 +24639,7 @@ var Tile = ({
|
|
24637
24639
|
videoTrackID: track == null ? void 0 : track.id,
|
24638
24640
|
audioTrackID: audioTrack == null ? void 0 : audioTrack.id
|
24639
24641
|
});
|
24640
|
-
const spotlighted =
|
24642
|
+
const spotlighted = useHMSStore58(selectSessionStore10("spotlight" /* SPOTLIGHT */)) === peerId;
|
24641
24643
|
const label = getVideoTileLabel({
|
24642
24644
|
peerName,
|
24643
24645
|
track,
|
@@ -24713,9 +24715,9 @@ var Tile = ({
|
|
24713
24715
|
);
|
24714
24716
|
};
|
24715
24717
|
var PeerMetadata = ({ peerId, size }) => {
|
24716
|
-
const metaData =
|
24718
|
+
const metaData = useHMSStore58(selectPeerMetadata4(peerId));
|
24717
24719
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
24718
|
-
const isHandRaised =
|
24720
|
+
const isHandRaised = useHMSStore58(selectHasPeerHandRaised3(peerId));
|
24719
24721
|
return /* @__PURE__ */ React119.createElement(Fragment13, null, isHandRaised ? /* @__PURE__ */ React119.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React119.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React119.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React119.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
|
24720
24722
|
};
|
24721
24723
|
var VideoTile = React119.memo(Tile);
|
@@ -24723,18 +24725,18 @@ var VideoTile_default = VideoTile;
|
|
24723
24725
|
|
24724
24726
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
24725
24727
|
init_define_process_env();
|
24726
|
-
import React122, { useEffect as useEffect28, useState as
|
24728
|
+
import React122, { useEffect as useEffect28, useState as useState51 } from "react";
|
24727
24729
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
24728
24730
|
import {
|
24729
24731
|
HMSRoomState as HMSRoomState4,
|
24730
24732
|
selectIsLargeRoom as selectIsLargeRoom3,
|
24731
24733
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
|
24732
24734
|
selectIsLocalVideoPluginPresent,
|
24733
|
-
selectLocalPeer as
|
24735
|
+
selectLocalPeer as selectLocalPeer6,
|
24734
24736
|
selectRoomState as selectRoomState4,
|
24735
24737
|
selectVideoTrackByID as selectVideoTrackByID4,
|
24736
24738
|
useHMSActions as useHMSActions40,
|
24737
|
-
useHMSStore as
|
24739
|
+
useHMSStore as useHMSStore59
|
24738
24740
|
} from "@100mslive/react-sdk";
|
24739
24741
|
import { BlurPersonHighIcon, CloseIcon, CrossCircleIcon as CrossCircleIcon3 } from "@100mslive/react-icons";
|
24740
24742
|
|
@@ -24903,18 +24905,18 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
24903
24905
|
var _a8, _b7;
|
24904
24906
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
24905
24907
|
const hmsActions = useHMSActions40();
|
24906
|
-
const localPeer =
|
24907
|
-
const role =
|
24908
|
-
const isVideoOn =
|
24908
|
+
const localPeer = useHMSStore59(selectLocalPeer6);
|
24909
|
+
const role = useHMSStore59(Ft);
|
24910
|
+
const isVideoOn = useHMSStore59(selectIsLocalVideoEnabled5);
|
24909
24911
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
24910
24912
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
24911
|
-
const track =
|
24912
|
-
const roomState =
|
24913
|
-
const isLargeRoom =
|
24914
|
-
const isEffectsEnabled =
|
24915
|
-
const effectsKey =
|
24916
|
-
const isPluginAdded =
|
24917
|
-
const [activeBackground, setActiveBackground] =
|
24913
|
+
const track = useHMSStore59(trackSelector);
|
24914
|
+
const roomState = useHMSStore59(selectRoomState4);
|
24915
|
+
const isLargeRoom = useHMSStore59(selectIsLargeRoom3);
|
24916
|
+
const isEffectsEnabled = useHMSStore59(Qn);
|
24917
|
+
const effectsKey = useHMSStore59(zn);
|
24918
|
+
const isPluginAdded = useHMSStore59(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
24919
|
+
const [activeBackground, setActiveBackground] = useState51(
|
24918
24920
|
((_b7 = VBHandler) == null ? void 0 : _b7.getBackground()) || HMSVirtualBackgroundTypes3.NONE
|
24919
24921
|
);
|
24920
24922
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
@@ -25025,9 +25027,9 @@ var SidePane = ({
|
|
25025
25027
|
}) => {
|
25026
25028
|
var _a8, _b7, _c, _d, _e, _f;
|
25027
25029
|
const isMobile = useMedia20(config.media.md);
|
25028
|
-
const sidepane =
|
25029
|
-
const activeScreensharePeerId =
|
25030
|
-
const trackId = (_a8 =
|
25030
|
+
const sidepane = useHMSStore60(selectAppData5(APP_DATA.sidePane));
|
25031
|
+
const activeScreensharePeerId = useHMSStore60(selectAppData5(APP_DATA.activeScreensharePeerId));
|
25032
|
+
const trackId = (_a8 = useHMSStore60(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
25031
25033
|
const { elements } = useRoomLayoutConferencingScreen();
|
25032
25034
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
25033
25035
|
const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
|
@@ -25157,11 +25159,11 @@ var FullPageProgress_default = FullPageProgress;
|
|
25157
25159
|
|
25158
25160
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
25159
25161
|
init_define_process_env();
|
25160
|
-
import React126, { useEffect as useEffect30, useState as
|
25161
|
-
import { selectDominantSpeaker, useHMSStore as
|
25162
|
+
import React126, { useEffect as useEffect30, useState as useState52 } from "react";
|
25163
|
+
import { selectDominantSpeaker, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
|
25162
25164
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
25163
25165
|
var SpeakerTag = () => {
|
25164
|
-
const dominantSpeaker =
|
25166
|
+
const dominantSpeaker = useHMSStore61(selectDominantSpeaker);
|
25165
25167
|
return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React126.createElement(
|
25166
25168
|
Flex,
|
25167
25169
|
{
|
@@ -25186,7 +25188,7 @@ var Logo = () => {
|
|
25186
25188
|
var _a8;
|
25187
25189
|
const roomLayout = useRoomLayout();
|
25188
25190
|
const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
|
25189
|
-
const [hideImage, setHideImage] =
|
25191
|
+
const [hideImage, setHideImage] = useState52(false);
|
25190
25192
|
useEffect30(() => {
|
25191
25193
|
if (hideImage) {
|
25192
25194
|
setHideImage(false);
|
@@ -25284,8 +25286,8 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
25284
25286
|
return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
|
25285
25287
|
};
|
25286
25288
|
var useLocalTileAspectRatio = () => {
|
25287
|
-
const localPeer =
|
25288
|
-
const videoTrack =
|
25289
|
+
const localPeer = useHMSStore62(selectLocalPeer7);
|
25290
|
+
const videoTrack = useHMSStore62(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
|
25289
25291
|
const isMobile = useMedia22(config.media.md);
|
25290
25292
|
let aspectRatio = 0;
|
25291
25293
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
@@ -25306,9 +25308,9 @@ var PreviewJoin = ({
|
|
25306
25308
|
);
|
25307
25309
|
const { isStreamingOn } = useRecordingStreaming10();
|
25308
25310
|
const authToken = useAuthToken();
|
25309
|
-
const [name, setName] =
|
25311
|
+
const [name, setName] = useState53(initialName || previewPreference.name);
|
25310
25312
|
const { toggleAudio, toggleVideo } = useAVToggle4();
|
25311
|
-
const [previewError, setPreviewError] =
|
25313
|
+
const [previewError, setPreviewError] = useState53(false);
|
25312
25314
|
const { endpoints } = useHMSPrebuiltContext();
|
25313
25315
|
const { peerCount } = useParticipants2();
|
25314
25316
|
const { enableJoin, preview, join } = usePreviewJoin({
|
@@ -25328,7 +25330,7 @@ var PreviewJoin = ({
|
|
25328
25330
|
},
|
25329
25331
|
asRole
|
25330
25332
|
});
|
25331
|
-
const roomState =
|
25333
|
+
const roomState = useHMSStore62(selectRoomState5);
|
25332
25334
|
const savePreferenceAndJoin = useCallback30(() => {
|
25333
25335
|
setPreviewPreference({
|
25334
25336
|
name
|
@@ -25407,12 +25409,12 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
25407
25409
|
px: "$10"
|
25408
25410
|
}));
|
25409
25411
|
var PreviewTile = ({ name, error }) => {
|
25410
|
-
const localPeer =
|
25412
|
+
const localPeer = useHMSStore62(selectLocalPeer7);
|
25411
25413
|
const { isLocalAudioEnabled, toggleAudio } = useAVToggle4();
|
25412
|
-
const isVideoOn =
|
25414
|
+
const isVideoOn = useHMSStore62(selectIsLocalVideoEnabled6);
|
25413
25415
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
25414
25416
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
25415
|
-
const track =
|
25417
|
+
const track = useHMSStore62(trackSelector);
|
25416
25418
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
25417
25419
|
const aspectRatio = useLocalTileAspectRatio();
|
25418
25420
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
|
@@ -25465,7 +25467,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
|
25465
25467
|
);
|
25466
25468
|
};
|
25467
25469
|
var PreviewSettings = React128.memo(() => {
|
25468
|
-
const [open, setOpen] =
|
25470
|
+
const [open, setOpen] = useState53(false);
|
25469
25471
|
return /* @__PURE__ */ React128.createElement(Fragment14, null, /* @__PURE__ */ React128.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React128.createElement(SettingsIcon5, null)), open && /* @__PURE__ */ React128.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
|
25470
25472
|
});
|
25471
25473
|
var PreviewJoin_default = PreviewJoin;
|
@@ -25494,9 +25496,9 @@ var RequestActions = ({ onAction, actionText }) => /* @__PURE__ */ React129.crea
|
|
25494
25496
|
var RoleChangeRequestModal = () => {
|
25495
25497
|
const hmsActions = useHMSActions41();
|
25496
25498
|
const { updateMetaData } = useMyMetadata();
|
25497
|
-
const currentRole =
|
25498
|
-
const roleChangeRequest =
|
25499
|
-
const name =
|
25499
|
+
const currentRole = useHMSStore63(selectLocalPeerRoleName4);
|
25500
|
+
const roleChangeRequest = useHMSStore63(selectRoleChangeRequest);
|
25501
|
+
const name = useHMSStore63(selectLocalPeerName4);
|
25500
25502
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
25501
25503
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
25502
25504
|
const { virtual_background } = elements || {};
|
@@ -25570,33 +25572,33 @@ import {
|
|
25570
25572
|
selectPeerScreenSharing as selectPeerScreenSharing3,
|
25571
25573
|
selectWhiteboard as selectWhiteboard2,
|
25572
25574
|
useHMSActions as useHMSActions43,
|
25573
|
-
useHMSStore as
|
25575
|
+
useHMSStore as useHMSStore72
|
25574
25576
|
} from "@100mslive/react-sdk";
|
25575
25577
|
|
25576
25578
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
25577
25579
|
init_define_process_env();
|
25578
|
-
import React142, { useEffect as useEffect40, useMemo as useMemo15, useState as
|
25580
|
+
import React142, { useEffect as useEffect40, useMemo as useMemo15, useState as useState60 } from "react";
|
25579
25581
|
import {
|
25580
|
-
selectLocalPeerID as
|
25582
|
+
selectLocalPeerID as selectLocalPeerID14,
|
25581
25583
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
25582
25584
|
selectPeers as selectPeers3,
|
25583
25585
|
selectPeerScreenSharing,
|
25584
|
-
useHMSStore as
|
25586
|
+
useHMSStore as useHMSStore69,
|
25585
25587
|
useHMSVanillaStore as useHMSVanillaStore12
|
25586
25588
|
} from "@100mslive/react-sdk";
|
25587
25589
|
|
25588
25590
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
25589
25591
|
init_define_process_env();
|
25590
|
-
import React135, { useEffect as useEffect36, useMemo as useMemo12, useState as
|
25592
|
+
import React135, { useEffect as useEffect36, useMemo as useMemo12, useState as useState55 } from "react";
|
25591
25593
|
import { useMedia as useMedia26 } from "react-use";
|
25592
|
-
import { selectLocalPeer as
|
25594
|
+
import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
|
25593
25595
|
|
25594
25596
|
// src/Prebuilt/components/InsetTile.tsx
|
25595
25597
|
init_define_process_env();
|
25596
25598
|
import React132, { useEffect as useEffect33, useRef as useRef20 } from "react";
|
25597
25599
|
import Draggable from "react-draggable";
|
25598
25600
|
import { useMedia as useMedia24 } from "react-use";
|
25599
|
-
import { selectIsAllowedToPublish as selectIsAllowedToPublish2, selectLocalPeer as
|
25601
|
+
import { selectIsAllowedToPublish as selectIsAllowedToPublish2, selectLocalPeer as selectLocalPeer8, selectVideoTrackByID as selectVideoTrackByID6, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
25600
25602
|
import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
|
25601
25603
|
|
25602
25604
|
// src/Prebuilt/components/hooks/useVideoTileLayout.ts
|
@@ -25635,10 +25637,10 @@ var desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
|
25635
25637
|
var InsetTile = () => {
|
25636
25638
|
const isMobile = useMedia24(config.media.md);
|
25637
25639
|
const isLandscape = useMedia24(config.media.ls);
|
25638
|
-
const localPeer =
|
25640
|
+
const localPeer = useHMSStore64(selectLocalPeer8);
|
25639
25641
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
25640
|
-
const videoTrack =
|
25641
|
-
const isAllowedToPublish =
|
25642
|
+
const videoTrack = useHMSStore64(selectVideoTrackByID6(localPeer == null ? void 0 : localPeer.videoTrack));
|
25643
|
+
const isAllowedToPublish = useHMSStore64(selectIsAllowedToPublish2);
|
25642
25644
|
const videoTileProps = useVideoTileContext();
|
25643
25645
|
let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
|
25644
25646
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
|
@@ -25792,7 +25794,7 @@ var Grid = React134.forwardRef(
|
|
25792
25794
|
|
25793
25795
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
25794
25796
|
init_define_process_env();
|
25795
|
-
import { useEffect as useEffect35, useMemo as useMemo11, useState as
|
25797
|
+
import { useEffect as useEffect35, useMemo as useMemo11, useState as useState54 } from "react";
|
25796
25798
|
import { useMeasure as useMeasure5, useMedia as useMedia25 } from "react-use";
|
25797
25799
|
import {
|
25798
25800
|
getPeersWithTiles,
|
@@ -25830,7 +25832,7 @@ var useTileLayout = ({
|
|
25830
25832
|
const vanillaStore = useHMSVanillaStore11();
|
25831
25833
|
const [ref, { width, height }] = useMeasure5();
|
25832
25834
|
const isMobile = useMedia25(config.media.lg);
|
25833
|
-
const [pagesWithTiles, setPagesWithTiles] =
|
25835
|
+
const [pagesWithTiles, setPagesWithTiles] = useState54([]);
|
25834
25836
|
useEffect35(() => {
|
25835
25837
|
if (width === 0 || height === 0) {
|
25836
25838
|
return;
|
@@ -25898,7 +25900,7 @@ var useTileLayout = ({
|
|
25898
25900
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
25899
25901
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
25900
25902
|
var _a8;
|
25901
|
-
const localPeer =
|
25903
|
+
const localPeer = useHMSStore65(selectLocalPeer9);
|
25902
25904
|
const isMobile = useMedia26(config.media.md);
|
25903
25905
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
25904
25906
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
@@ -25921,7 +25923,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
25921
25923
|
maxTileCount,
|
25922
25924
|
edgeToEdge
|
25923
25925
|
});
|
25924
|
-
const [page, setPage] =
|
25926
|
+
const [page, setPage] = useState55(0);
|
25925
25927
|
const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
|
25926
25928
|
useEffect36(() => {
|
25927
25929
|
if (pageSize > 0) {
|
@@ -25943,12 +25945,12 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
25943
25945
|
|
25944
25946
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
25945
25947
|
init_define_process_env();
|
25946
|
-
import React138, { useEffect as useEffect38, useState as
|
25947
|
-
import { selectLocalPeer as
|
25948
|
+
import React138, { useEffect as useEffect38, useState as useState57 } from "react";
|
25949
|
+
import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore66 } from "@100mslive/react-sdk";
|
25948
25950
|
|
25949
25951
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
25950
25952
|
init_define_process_env();
|
25951
|
-
import React137, { useEffect as useEffect37, useState as
|
25953
|
+
import React137, { useEffect as useEffect37, useState as useState56 } from "react";
|
25952
25954
|
import { useMedia as useMedia27 } from "react-use";
|
25953
25955
|
|
25954
25956
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
@@ -26021,7 +26023,7 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
26021
26023
|
const isMobile = useMedia27(config.media.md);
|
26022
26024
|
const maxTileCount = isMobile ? 2 : 4;
|
26023
26025
|
const pagesWithTiles = usePagesWithTiles({ peers, maxTileCount });
|
26024
|
-
const [page, setPage] =
|
26026
|
+
const [page, setPage] = useState56(0);
|
26025
26027
|
const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
|
26026
26028
|
useEffect37(() => {
|
26027
26029
|
if (pageSize > 0) {
|
@@ -26087,7 +26089,7 @@ function RoleProminence({
|
|
26087
26089
|
}) {
|
26088
26090
|
var _a8;
|
26089
26091
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
26090
|
-
const localPeer =
|
26092
|
+
const localPeer = useHMSStore66(selectLocalPeer10);
|
26091
26093
|
const maxTileCount = 4;
|
26092
26094
|
const pageList = usePagesWithTiles({
|
26093
26095
|
peers: prominentPeers,
|
@@ -26097,7 +26099,7 @@ function RoleProminence({
|
|
26097
26099
|
pageList,
|
26098
26100
|
maxTileCount
|
26099
26101
|
});
|
26100
|
-
const [page, setPage] =
|
26102
|
+
const [page, setPage] = useState57(0);
|
26101
26103
|
const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
|
26102
26104
|
useEffect38(() => {
|
26103
26105
|
if (pageSize > 0) {
|
@@ -26119,21 +26121,21 @@ function RoleProminence({
|
|
26119
26121
|
|
26120
26122
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
26121
26123
|
init_define_process_env();
|
26122
|
-
import React141, { useEffect as useEffect39, useMemo as useMemo14, useState as
|
26124
|
+
import React141, { useEffect as useEffect39, useMemo as useMemo14, useState as useState59 } from "react";
|
26123
26125
|
import { useMedia as useMedia28 } from "react-use";
|
26124
|
-
import { selectPeersScreenSharing, useHMSStore as
|
26126
|
+
import { selectPeersScreenSharing, useHMSStore as useHMSStore68 } from "@100mslive/react-sdk";
|
26125
26127
|
|
26126
26128
|
// src/Prebuilt/components/ScreenshareTile.jsx
|
26127
26129
|
init_define_process_env();
|
26128
|
-
import React140, { useRef as useRef21, useState as
|
26130
|
+
import React140, { useRef as useRef21, useState as useState58 } from "react";
|
26129
26131
|
import { useFullscreen as useFullscreen2 } from "react-use";
|
26130
26132
|
import screenfull2 from "screenfull";
|
26131
26133
|
import {
|
26132
|
-
selectLocalPeerID as
|
26134
|
+
selectLocalPeerID as selectLocalPeerID13,
|
26133
26135
|
selectPeerByID as selectPeerByID3,
|
26134
26136
|
selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
|
26135
26137
|
selectScreenShareByPeerID,
|
26136
|
-
useHMSStore as
|
26138
|
+
useHMSStore as useHMSStore67
|
26137
26139
|
} from "@100mslive/react-sdk";
|
26138
26140
|
import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
|
26139
26141
|
|
@@ -26184,19 +26186,19 @@ var labelStyles = {
|
|
26184
26186
|
flexShrink: 0
|
26185
26187
|
};
|
26186
26188
|
var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
26187
|
-
const isLocal =
|
26188
|
-
const track =
|
26189
|
-
const peer =
|
26189
|
+
const isLocal = useHMSStore67(selectLocalPeerID13) === peerId;
|
26190
|
+
const track = useHMSStore67(selectScreenShareByPeerID(peerId));
|
26191
|
+
const peer = useHMSStore67(selectPeerByID3(peerId));
|
26190
26192
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
26191
|
-
const [isMouseHovered, setIsMouseHovered] =
|
26193
|
+
const [isMouseHovered, setIsMouseHovered] = useState58(false);
|
26192
26194
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
26193
26195
|
const fullscreenRef = useRef21(null);
|
26194
|
-
const [fullscreen, setFullscreen] =
|
26196
|
+
const [fullscreen, setFullscreen] = useState58(false);
|
26195
26197
|
const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
|
26196
26198
|
onClose: () => setFullscreen(false)
|
26197
26199
|
});
|
26198
26200
|
const isFullScreenSupported = screenfull2.isEnabled;
|
26199
|
-
const audioTrack =
|
26201
|
+
const audioTrack = useHMSStore67(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
|
26200
26202
|
if (isLocal && !["browser", "window", "application"].includes(track == null ? void 0 : track.displaySurface)) {
|
26201
26203
|
return /* @__PURE__ */ React140.createElement(ScreenshareDisplay, null);
|
26202
26204
|
}
|
@@ -26250,9 +26252,9 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
26250
26252
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
26251
26253
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
26252
26254
|
var _a8;
|
26253
|
-
const peersSharing =
|
26255
|
+
const peersSharing = useHMSStore68(selectPeersScreenSharing);
|
26254
26256
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
26255
|
-
const [page, setPage] =
|
26257
|
+
const [page, setPage] = useState59(0);
|
26256
26258
|
const activeSharePeer = peersSharing[page];
|
26257
26259
|
const isMobile = useMedia28(config.media.md);
|
26258
26260
|
const secondaryPeers = useMemo14(() => {
|
@@ -26385,11 +26387,11 @@ var GridLayout = ({
|
|
26385
26387
|
edge_to_edge = false,
|
26386
26388
|
hide_metadata_on_tile = false
|
26387
26389
|
}) => {
|
26388
|
-
const peerSharing =
|
26390
|
+
const peerSharing = useHMSStore69(selectPeerScreenSharing);
|
26389
26391
|
const pinnedTrack = usePinnedTrack();
|
26390
|
-
const peers =
|
26391
|
-
const localPeerRole =
|
26392
|
-
const localPeerID =
|
26392
|
+
const peers = useHMSStore69(selectPeers3);
|
26393
|
+
const localPeerRole = useHMSStore69(selectLocalPeerRoleName5);
|
26394
|
+
const localPeerID = useHMSStore69(selectLocalPeerID14);
|
26393
26395
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
26394
26396
|
const isRoleProminence = prominentRoles.length && peers.some(
|
26395
26397
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
@@ -26409,10 +26411,10 @@ var GridLayout = ({
|
|
26409
26411
|
return peers;
|
26410
26412
|
}, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
|
26411
26413
|
const vanillaStore = useHMSVanillaStore12();
|
26412
|
-
const [sortedPeers, setSortedPeers] =
|
26414
|
+
const [sortedPeers, setSortedPeers] = useState60(updatedPeers);
|
26413
26415
|
const peersSorter = useMemo15(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
26414
|
-
const [pageSize, setPageSize] =
|
26415
|
-
const [mainPage, setMainPage] =
|
26416
|
+
const [pageSize, setPageSize] = useState60(0);
|
26417
|
+
const [mainPage, setMainPage] = useState60(0);
|
26416
26418
|
const tileLayout = {
|
26417
26419
|
enableSpotlightingPeer: enable_spotlighting_peer,
|
26418
26420
|
hideParticipantNameOnTile: hide_participant_name_on_tile,
|
@@ -26469,13 +26471,13 @@ var GridLayout = ({
|
|
26469
26471
|
// src/Prebuilt/layouts/EmbedView.jsx
|
26470
26472
|
init_define_process_env();
|
26471
26473
|
import React143, { useEffect as useEffect41, useMemo as useMemo16 } from "react";
|
26472
|
-
import { selectAppData as selectAppData6, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as
|
26474
|
+
import { selectAppData as selectAppData6, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
|
26473
26475
|
var EmbedView = () => {
|
26474
26476
|
return /* @__PURE__ */ React143.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React143.createElement(EmbedComponent, null));
|
26475
26477
|
};
|
26476
26478
|
var EmbedScreenShareView = ({ children }) => {
|
26477
|
-
const peers =
|
26478
|
-
const peerPresenting =
|
26479
|
+
const peers = useHMSStore70(selectPeers4);
|
26480
|
+
const peerPresenting = useHMSStore70(selectPeerScreenSharing2);
|
26479
26481
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
26480
26482
|
const smallTilePeers = useMemo16(() => {
|
26481
26483
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
@@ -26490,7 +26492,7 @@ var EmbedScreenShareView = ({ children }) => {
|
|
26490
26492
|
return /* @__PURE__ */ React143.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React143.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React143.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
26491
26493
|
};
|
26492
26494
|
var EmbedComponent = () => {
|
26493
|
-
const embedConfig =
|
26495
|
+
const embedConfig = useHMSStore70(selectAppData6(APP_DATA.embedConfig));
|
26494
26496
|
const resetConfig = useResetEmbedConfig();
|
26495
26497
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
26496
26498
|
useEffect41(() => {
|
@@ -26647,9 +26649,11 @@ var WaitingView = React145.memo(() => {
|
|
26647
26649
|
// src/Prebuilt/layouts/WhiteboardView.tsx
|
26648
26650
|
init_define_process_env();
|
26649
26651
|
import React146, { useEffect as useEffect43, useMemo as useMemo17 } from "react";
|
26650
|
-
import {
|
26652
|
+
import { useMedia as useMedia29 } from "react-use";
|
26653
|
+
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore71, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
26651
26654
|
var EmbedComponent2 = () => {
|
26652
|
-
const
|
26655
|
+
const isMobile = useMedia29(config.media.md);
|
26656
|
+
const { iframeRef } = useWhiteboard2(isMobile);
|
26653
26657
|
return /* @__PURE__ */ React146.createElement(
|
26654
26658
|
Box,
|
26655
26659
|
{
|
@@ -26681,8 +26685,8 @@ var EmbedComponent2 = () => {
|
|
26681
26685
|
);
|
26682
26686
|
};
|
26683
26687
|
var WhiteboardView = () => {
|
26684
|
-
const peers =
|
26685
|
-
const whiteboard =
|
26688
|
+
const peers = useHMSStore71(selectPeers5);
|
26689
|
+
const whiteboard = useHMSStore71(selectWhiteboard);
|
26686
26690
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
26687
26691
|
const smallTilePeers = useMemo17(() => {
|
26688
26692
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
|
@@ -26719,17 +26723,17 @@ var useCloseScreenshareWhiteboard = () => {
|
|
26719
26723
|
};
|
26720
26724
|
|
26721
26725
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
26722
|
-
var HLSView = React147.lazy(() => import("./HLSView-
|
26726
|
+
var HLSView = React147.lazy(() => import("./HLSView-QPKBRL74.js"));
|
26723
26727
|
var VideoStreamingSection = ({
|
26724
26728
|
screenType,
|
26725
26729
|
elements,
|
26726
26730
|
hideControls = false
|
26727
26731
|
}) => {
|
26728
26732
|
var _a8, _b7, _c, _d;
|
26729
|
-
const localPeerRole =
|
26730
|
-
const isConnected =
|
26731
|
-
const peerSharing =
|
26732
|
-
const isWhiteboardOpen = (_a8 =
|
26733
|
+
const localPeerRole = useHMSStore72(selectLocalPeerRoleName6);
|
26734
|
+
const isConnected = useHMSStore72(selectIsConnectedToRoom9);
|
26735
|
+
const peerSharing = useHMSStore72(selectPeerScreenSharing3);
|
26736
|
+
const isWhiteboardOpen = (_a8 = useHMSStore72(selectWhiteboard2)) == null ? void 0 : _a8.open;
|
26733
26737
|
const hmsActions = useHMSActions43();
|
26734
26738
|
const waitingViewerRole = useWaitingViewerRole();
|
26735
26739
|
const urlToIframe = useUrlToEmbed();
|
@@ -26793,8 +26797,8 @@ init_define_process_env();
|
|
26793
26797
|
// src/Prebuilt/components/Header/Header.tsx
|
26794
26798
|
init_define_process_env();
|
26795
26799
|
import React149 from "react";
|
26796
|
-
import { useMedia as
|
26797
|
-
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as
|
26800
|
+
import { useMedia as useMedia30 } from "react-use";
|
26801
|
+
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
|
26798
26802
|
|
26799
26803
|
// src/Prebuilt/components/Header/common.jsx
|
26800
26804
|
init_define_process_env();
|
@@ -26806,7 +26810,7 @@ import {
|
|
26806
26810
|
selectVideoTrackByID as selectVideoTrackByID7,
|
26807
26811
|
useDevices as useDevices3,
|
26808
26812
|
useHMSActions as useHMSActions44,
|
26809
|
-
useHMSStore as
|
26813
|
+
useHMSStore as useHMSStore73
|
26810
26814
|
} from "@100mslive/react-sdk";
|
26811
26815
|
import {
|
26812
26816
|
BluetoothIcon,
|
@@ -26820,9 +26824,9 @@ var CamaraFlipActions = () => {
|
|
26820
26824
|
const actions = useHMSActions44();
|
26821
26825
|
const { allDevices } = useDevices3();
|
26822
26826
|
const { videoInput } = allDevices;
|
26823
|
-
const isVideoOn =
|
26824
|
-
const videoTrackId =
|
26825
|
-
const localVideoTrack =
|
26827
|
+
const isVideoOn = useHMSStore73(selectIsLocalVideoEnabled7);
|
26828
|
+
const videoTrackId = useHMSStore73(selectLocalVideoTrackID3);
|
26829
|
+
const localVideoTrack = useHMSStore73(selectVideoTrackByID7(videoTrackId));
|
26826
26830
|
if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
|
26827
26831
|
return null;
|
26828
26832
|
}
|
@@ -26958,8 +26962,8 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React148.createElement(Re
|
|
26958
26962
|
|
26959
26963
|
// src/Prebuilt/components/Header/Header.tsx
|
26960
26964
|
var Header2 = () => {
|
26961
|
-
const roomState =
|
26962
|
-
const isMobile =
|
26965
|
+
const roomState = useHMSStore74(selectRoomState6);
|
26966
|
+
const isMobile = useMedia30(config.media.md);
|
26963
26967
|
if (roomState !== HMSRoomState6.Connected) {
|
26964
26968
|
return /* @__PURE__ */ React149.createElement(React149.Fragment, null);
|
26965
26969
|
}
|
@@ -27004,11 +27008,11 @@ var ConferenceScreen = () => {
|
|
27004
27008
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
27005
27009
|
const screenProps = useRoomLayoutConferencingScreen();
|
27006
27010
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
27007
|
-
const roomState =
|
27008
|
-
const isConnectedToRoom =
|
27011
|
+
const roomState = useHMSStore75(selectRoomState7);
|
27012
|
+
const isConnectedToRoom = useHMSStore75(selectIsConnectedToRoom10);
|
27009
27013
|
const hmsActions = useHMSActions45();
|
27010
|
-
const [hideControls, setHideControls] =
|
27011
|
-
const dropdownList =
|
27014
|
+
const [hideControls, setHideControls] = useState61(false);
|
27015
|
+
const dropdownList = useHMSStore75(selectAppData7(APP_DATA.dropdownList));
|
27012
27016
|
const authTokenInAppData = useAuthToken();
|
27013
27017
|
const headerRef = useRef22(null);
|
27014
27018
|
const footerRef = useRef22(null);
|
@@ -27212,7 +27216,7 @@ import React152, { useEffect as useEffect49 } from "react";
|
|
27212
27216
|
// src/Prebuilt/services/FeatureFlags.jsx
|
27213
27217
|
init_define_process_env();
|
27214
27218
|
import { useEffect as useEffect48 } from "react";
|
27215
|
-
import { selectRoomID, useHMSStore as
|
27219
|
+
import { selectRoomID, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
|
27216
27220
|
var FeatureFlags = class {
|
27217
27221
|
static init(roomId) {
|
27218
27222
|
if (!window.HMS) {
|
@@ -27237,7 +27241,7 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
|
|
27237
27241
|
__publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
|
27238
27242
|
__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);
|
27239
27243
|
function FeatureFlagsInit() {
|
27240
|
-
const roomId =
|
27244
|
+
const roomId = useHMSStore76(selectRoomID);
|
27241
27245
|
useEffect48(() => {
|
27242
27246
|
if (roomId) {
|
27243
27247
|
FeatureFlags.init(roomId);
|
@@ -27380,7 +27384,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
|
|
27380
27384
|
init_define_process_env();
|
27381
27385
|
import React153, { useContext as useContext4, useEffect as useEffect51 } from "react";
|
27382
27386
|
import { usePreviousDistinct } from "react-use";
|
27383
|
-
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as
|
27387
|
+
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
27384
27388
|
|
27385
27389
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
27386
27390
|
init_define_process_env();
|
@@ -27417,7 +27421,7 @@ var useHMSAppStateContext = () => {
|
|
27417
27421
|
var useAppStateManager = () => {
|
27418
27422
|
const roomLayout = useRoomLayout();
|
27419
27423
|
const [activeState, setActiveState] = React153.useState();
|
27420
|
-
const roomState =
|
27424
|
+
const roomState = useHMSStore77(selectRoomState8);
|
27421
27425
|
const prevRoomState = usePreviousDistinct(roomState);
|
27422
27426
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
27423
27427
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -27489,12 +27493,12 @@ var LeaveScreen = () => {
|
|
27489
27493
|
|
27490
27494
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
27491
27495
|
init_define_process_env();
|
27492
|
-
import React155, { useEffect as useEffect52, useState as
|
27493
|
-
import { useMedia as
|
27496
|
+
import React155, { useEffect as useEffect52, useState as useState62 } from "react";
|
27497
|
+
import { useMedia as useMedia31 } from "react-use";
|
27494
27498
|
import { RefreshIcon } from "@100mslive/react-icons";
|
27495
27499
|
var MwebLandscapePrompt = () => {
|
27496
|
-
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] =
|
27497
|
-
const isLandscape =
|
27500
|
+
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState62(false);
|
27501
|
+
const isLandscape = useMedia31(config.media.ls);
|
27498
27502
|
useEffect52(() => {
|
27499
27503
|
var _a8;
|
27500
27504
|
if (!isMobileUserAgent) {
|
@@ -27539,12 +27543,12 @@ import React164, { useCallback as useCallback33, useEffect as useEffect62 } from
|
|
27539
27543
|
import {
|
27540
27544
|
HMSNotificationTypes as HMSNotificationTypes10,
|
27541
27545
|
HMSRoomState as HMSRoomState10,
|
27542
|
-
selectLocalPeerID as
|
27546
|
+
selectLocalPeerID as selectLocalPeerID16,
|
27543
27547
|
selectPeerNameByID as selectPeerNameByID5,
|
27544
27548
|
selectRoomState as selectRoomState10,
|
27545
27549
|
useCustomEvent as useCustomEvent4,
|
27546
27550
|
useHMSNotifications as useHMSNotifications10,
|
27547
|
-
useHMSStore as
|
27551
|
+
useHMSStore as useHMSStore81,
|
27548
27552
|
useHMSVanillaStore as useHMSVanillaStore16
|
27549
27553
|
} from "@100mslive/react-sdk";
|
27550
27554
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
@@ -27555,7 +27559,7 @@ init_define_process_env();
|
|
27555
27559
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
27556
27560
|
init_define_process_env();
|
27557
27561
|
import React156, { useCallback as useCallback32 } from "react";
|
27558
|
-
import { selectPeerByID as selectPeerByID4, useHMSActions as useHMSActions47, useHMSStore as
|
27562
|
+
import { selectPeerByID as selectPeerByID4, useHMSActions as useHMSActions47, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
|
27559
27563
|
import {
|
27560
27564
|
ChatUnreadIcon,
|
27561
27565
|
ConnectivityIcon,
|
@@ -27577,7 +27581,7 @@ var HandRaiseAction = React156.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
27577
27581
|
const hmsActions = useHMSActions47();
|
27578
27582
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
27579
27583
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
27580
|
-
const peer =
|
27584
|
+
const peer = useHMSStore78(selectPeerByID4(id));
|
27581
27585
|
const layout = useRoomLayout();
|
27582
27586
|
const {
|
27583
27587
|
bring_to_stage_label,
|
@@ -27811,12 +27815,12 @@ function AutoplayBlockedModal() {
|
|
27811
27815
|
init_define_process_env();
|
27812
27816
|
import React158, { useEffect as useEffect53 } from "react";
|
27813
27817
|
import { v4 as uuid3 } from "uuid";
|
27814
|
-
import { selectLocalPeerID as
|
27818
|
+
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore11, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
|
27815
27819
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon as ChatUnreadIcon2 } from "@100mslive/react-icons";
|
27816
27820
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
27817
27821
|
var ChatNotifications = () => {
|
27818
|
-
const chatState =
|
27819
|
-
const localPeerId =
|
27822
|
+
const chatState = useHMSStore79(selectSessionStore11("chatState" /* CHAT_STATE */));
|
27823
|
+
const localPeerId = useHMSStore79(selectLocalPeerID15);
|
27820
27824
|
useEffect53(() => {
|
27821
27825
|
var _a8, _b7;
|
27822
27826
|
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
@@ -27845,12 +27849,12 @@ import {
|
|
27845
27849
|
selectHasPeerHandRaised as selectHasPeerHandRaised4,
|
27846
27850
|
selectRoomState as selectRoomState9,
|
27847
27851
|
useHMSNotifications as useHMSNotifications2,
|
27848
|
-
useHMSStore as
|
27852
|
+
useHMSStore as useHMSStore80,
|
27849
27853
|
useHMSVanillaStore as useHMSVanillaStore15
|
27850
27854
|
} from "@100mslive/react-sdk";
|
27851
27855
|
var HandRaisedNotifications = () => {
|
27852
27856
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
27853
|
-
const roomState =
|
27857
|
+
const roomState = useHMSStore80(selectRoomState9);
|
27854
27858
|
const vanillaStore = useHMSVanillaStore15();
|
27855
27859
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
27856
27860
|
useEffect54(() => {
|
@@ -27870,12 +27874,12 @@ var HandRaisedNotifications = () => {
|
|
27870
27874
|
|
27871
27875
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
27872
27876
|
init_define_process_env();
|
27873
|
-
import React159, { useEffect as useEffect55, useState as
|
27877
|
+
import React159, { useEffect as useEffect55, useState as useState63 } from "react";
|
27874
27878
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
27875
27879
|
var InitErrorModal = () => {
|
27876
27880
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
27877
|
-
const [showModal, setShowModal] =
|
27878
|
-
const [info, setInfo] =
|
27881
|
+
const [showModal, setShowModal] = useState63(false);
|
27882
|
+
const [info, setInfo] = useState63({ title: "Init Error", description: "" });
|
27879
27883
|
useEffect55(() => {
|
27880
27884
|
const data3 = notification == null ? void 0 : notification.data;
|
27881
27885
|
if (!data3 || data3.action !== "INIT") {
|
@@ -27947,8 +27951,8 @@ var PeerNotifications = () => {
|
|
27947
27951
|
|
27948
27952
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
27949
27953
|
init_define_process_env();
|
27950
|
-
import React160, { useEffect as useEffect57, useState as
|
27951
|
-
import { useMedia as
|
27954
|
+
import React160, { useEffect as useEffect57, useState as useState64 } from "react";
|
27955
|
+
import { useMedia as useMedia32 } from "react-use";
|
27952
27956
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
27953
27957
|
|
27954
27958
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -27960,9 +27964,9 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
|
|
27960
27964
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
27961
27965
|
function PermissionErrorModal() {
|
27962
27966
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
27963
|
-
const [deviceType, setDeviceType] =
|
27964
|
-
const [isSystemError, setIsSystemError] =
|
27965
|
-
const isMobile =
|
27967
|
+
const [deviceType, setDeviceType] = useState64("");
|
27968
|
+
const [isSystemError, setIsSystemError] = useState64(false);
|
27969
|
+
const isMobile = useMedia32(config.media.md);
|
27966
27970
|
useEffect57(() => {
|
27967
27971
|
var _a8, _b7, _c, _d, _e;
|
27968
27972
|
if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
|
@@ -28006,7 +28010,7 @@ function PermissionErrorModal() {
|
|
28006
28010
|
|
28007
28011
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
28008
28012
|
init_define_process_env();
|
28009
|
-
import React161, { useEffect as useEffect58, useState as
|
28013
|
+
import React161, { useEffect as useEffect58, useState as useState65 } from "react";
|
28010
28014
|
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
28011
28015
|
var notificationTypes2 = [
|
28012
28016
|
HMSNotificationTypes6.RECONNECTED,
|
@@ -28016,7 +28020,7 @@ var notificationTypes2 = [
|
|
28016
28020
|
var notificationId = null;
|
28017
28021
|
var ReconnectNotifications = () => {
|
28018
28022
|
const notification = useHMSNotifications6(notificationTypes2);
|
28019
|
-
const [open, setOpen] =
|
28023
|
+
const [open, setOpen] = useState65(false);
|
28020
28024
|
useEffect58(() => {
|
28021
28025
|
var _a8, _b7;
|
28022
28026
|
if (!notification) {
|
@@ -28056,7 +28060,7 @@ var ReconnectNotifications = () => {
|
|
28056
28060
|
|
28057
28061
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
28058
28062
|
init_define_process_env();
|
28059
|
-
import React162, { useEffect as useEffect59, useState as
|
28063
|
+
import React162, { useEffect as useEffect59, useState as useState66 } from "react";
|
28060
28064
|
import {
|
28061
28065
|
HMSNotificationTypes as HMSNotificationTypes7,
|
28062
28066
|
useHMSActions as useHMSActions48,
|
@@ -28065,7 +28069,7 @@ import {
|
|
28065
28069
|
import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
|
28066
28070
|
var TrackBulkUnmuteModal = () => {
|
28067
28071
|
const hmsActions = useHMSActions48();
|
28068
|
-
const [muteNotification, setMuteNotification] =
|
28072
|
+
const [muteNotification, setMuteNotification] = useState66(null);
|
28069
28073
|
const notification = useHMSNotifications7([
|
28070
28074
|
HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
28071
28075
|
HMSNotificationTypes7.ROOM_ENDED,
|
@@ -28129,7 +28133,7 @@ var TrackNotifications = () => {
|
|
28129
28133
|
|
28130
28134
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
28131
28135
|
init_define_process_env();
|
28132
|
-
import React163, { useEffect as useEffect61, useState as
|
28136
|
+
import React163, { useEffect as useEffect61, useState as useState67 } from "react";
|
28133
28137
|
import {
|
28134
28138
|
HMSNotificationTypes as HMSNotificationTypes9,
|
28135
28139
|
useHMSActions as useHMSActions49,
|
@@ -28143,7 +28147,7 @@ var TrackUnmuteModal = () => {
|
|
28143
28147
|
HMSNotificationTypes9.ROOM_ENDED,
|
28144
28148
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
28145
28149
|
]);
|
28146
|
-
const [muteNotification, setMuteNotification] =
|
28150
|
+
const [muteNotification, setMuteNotification] = useState67(null);
|
28147
28151
|
useEffect61(() => {
|
28148
28152
|
switch (notification == null ? void 0 : notification.type) {
|
28149
28153
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
@@ -28180,10 +28184,10 @@ var TrackUnmuteModal = () => {
|
|
28180
28184
|
|
28181
28185
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
28182
28186
|
function Notifications() {
|
28183
|
-
const localPeerID =
|
28187
|
+
const localPeerID = useHMSStore81(selectLocalPeerID16);
|
28184
28188
|
const notification = useHMSNotifications10();
|
28185
28189
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
28186
|
-
const roomState =
|
28190
|
+
const roomState = useHMSStore81(selectRoomState10);
|
28187
28191
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
28188
28192
|
const isNotificationDisabled = useIsNotificationDisabled();
|
28189
28193
|
const screenProps = useRoomLayoutConferencingScreen();
|
@@ -28338,8 +28342,8 @@ var PreviewScreen = () => {
|
|
28338
28342
|
|
28339
28343
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
28340
28344
|
init_define_process_env();
|
28341
|
-
import React167, { useEffect as useEffect63, useState as
|
28342
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as
|
28345
|
+
import React167, { useEffect as useEffect63, useState as useState68 } from "react";
|
28346
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore82 } from "@100mslive/react-sdk";
|
28343
28347
|
|
28344
28348
|
// src/Prebuilt/components/Toast/Toast.jsx
|
28345
28349
|
init_define_process_env();
|
@@ -28362,8 +28366,8 @@ var Toast2 = (_a8) => {
|
|
28362
28366
|
|
28363
28367
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
28364
28368
|
var ToastContainer = () => {
|
28365
|
-
const isConnected =
|
28366
|
-
const [toasts, setToast] =
|
28369
|
+
const isConnected = useHMSStore82(selectIsConnectedToRoom11);
|
28370
|
+
const [toasts, setToast] = useState68([]);
|
28367
28371
|
useEffect63(() => {
|
28368
28372
|
ToastManager.addListener(setToast);
|
28369
28373
|
return () => {
|
@@ -28384,13 +28388,13 @@ var ToastContainer = () => {
|
|
28384
28388
|
|
28385
28389
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
28386
28390
|
init_define_process_env();
|
28387
|
-
import React168, { useCallback as useCallback34, useEffect as useEffect64, useMemo as useMemo18, useState as
|
28388
|
-
import { useMedia as
|
28391
|
+
import React168, { useCallback as useCallback34, useEffect as useEffect64, useMemo as useMemo18, useState as useState69 } from "react";
|
28392
|
+
import { useMedia as useMedia33 } from "react-use";
|
28389
28393
|
import {
|
28390
|
-
selectLocalPeerID as
|
28394
|
+
selectLocalPeerID as selectLocalPeerID17,
|
28391
28395
|
selectPeerNameByID as selectPeerNameByID6,
|
28392
28396
|
useCustomEvent as useCustomEvent5,
|
28393
|
-
useHMSStore as
|
28397
|
+
useHMSStore as useHMSStore83,
|
28394
28398
|
useHMSVanillaStore as useHMSVanillaStore17
|
28395
28399
|
} from "@100mslive/react-sdk";
|
28396
28400
|
var emojiCount = 1;
|
@@ -28417,10 +28421,10 @@ var getStartingPoints = (isMobile) => {
|
|
28417
28421
|
return arr;
|
28418
28422
|
};
|
28419
28423
|
function FlyingEmoji() {
|
28420
|
-
const localPeerId =
|
28424
|
+
const localPeerId = useHMSStore83(selectLocalPeerID17);
|
28421
28425
|
const vanillaStore = useHMSVanillaStore17();
|
28422
|
-
const [emojis, setEmojis] =
|
28423
|
-
const isMobile =
|
28426
|
+
const [emojis, setEmojis] = useState69([]);
|
28427
|
+
const isMobile = useMedia33(config.media.md);
|
28424
28428
|
const startingPoints = useMemo18(() => getStartingPoints(isMobile), [isMobile]);
|
28425
28429
|
const showFlyingEmoji = useCallback34(
|
28426
28430
|
({ emojiId, senderId }) => {
|
@@ -28536,15 +28540,15 @@ import {
|
|
28536
28540
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
28537
28541
|
selectPermissions as selectPermissions16,
|
28538
28542
|
useHMSActions as useHMSActions51,
|
28539
|
-
useHMSStore as
|
28543
|
+
useHMSStore as useHMSStore84,
|
28540
28544
|
useRecordingStreaming as useRecordingStreaming11
|
28541
28545
|
} from "@100mslive/react-sdk";
|
28542
28546
|
var useAutoStartStreaming = () => {
|
28543
28547
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
28544
|
-
const permissions =
|
28548
|
+
const permissions = useHMSStore84(selectPermissions16);
|
28545
28549
|
const showStreamingUI = useShowStreamingUI();
|
28546
28550
|
const hmsActions = useHMSActions51();
|
28547
|
-
const isConnected =
|
28551
|
+
const isConnected = useHMSStore84(selectIsConnectedToRoom12);
|
28548
28552
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming11();
|
28549
28553
|
const streamStartedRef = useRef23(false);
|
28550
28554
|
const startHLS = useCallback36(() => __async(void 0, null, function* () {
|
@@ -28740,7 +28744,7 @@ var AppStates = ({ activeState }) => {
|
|
28740
28744
|
return /* @__PURE__ */ React170.createElement(ConferenceScreen, null);
|
28741
28745
|
};
|
28742
28746
|
var BackSwipe = () => {
|
28743
|
-
const isConnectedToRoom =
|
28747
|
+
const isConnectedToRoom = useHMSStore85(selectIsConnectedToRoom13);
|
28744
28748
|
const hmsActions = useHMSActions52();
|
28745
28749
|
useEffect66(() => {
|
28746
28750
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
@@ -28903,4 +28907,4 @@ lodash/lodash.js:
|
|
28903
28907
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
28904
28908
|
*)
|
28905
28909
|
*/
|
28906
|
-
//# sourceMappingURL=chunk-
|
28910
|
+
//# sourceMappingURL=chunk-LRZEFY46.js.map
|