@100mslive/roomkit-react 0.2.6-alpha.1 → 0.2.6-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-Z7XVENMR.js → HLSView-7QXLQ4KD.js} +2 -2
- package/dist/Prebuilt/common/constants.d.ts +0 -1
- package/dist/{chunk-6ELWJ7YI.js → chunk-ZJU5GUBY.js} +381 -365
- package/dist/chunk-ZJU5GUBY.js.map +7 -0
- package/dist/index.cjs.js +6875 -6859
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +156 -151
- package/dist/meta.esbuild.json +161 -156
- package/package.json +6 -6
- package/src/Prebuilt/App.tsx +7 -8
- package/src/Prebuilt/common/constants.ts +1 -1
- package/src/Prebuilt/components/AppData/AppData.tsx +16 -1
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +15 -25
- package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +1 -1
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +0 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +29 -12
- package/dist/chunk-6ELWJ7YI.js.map +0 -7
- package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +0 -112
- package/src/Prebuilt/plugins/VirtualBackground/vbutils.js +0 -66
- /package/dist/{HLSView-Z7XVENMR.js.map → HLSView-7QXLQ4KD.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_dbeeb6c7-ceb6-4419-ae7b-5757d957ed75", 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.6-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_dbeeb6c7-ceb6-4419-ae7b-5757d957ed75", 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.6-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.6", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.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: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.13/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.6/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240204.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:19513", 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.6-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: "7882602949", 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: "d85daadafe177c535fb1203a0e377042b5502a3e", 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: "d5edb499b1135f66ce54aaccec685c5175242c53210aeee68a746f9c0b4f0e76", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1707805733092-0.24345145816318015:/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--1707805732895-0.8552586615025095:/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--1707805710413-0.666588674537012:/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--1707805710233-0.7120424077431966:/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_43348aaa-7bd4-4b24-9dcf-73b61740393f", INVOCATION_ID: "c3b125dd6a0741939305ab23c08d9bdf", 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", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "431", 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_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 370", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.6-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.6-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_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "d85daadafe177c535fb1203a0e377042b5502a3e", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "KaustubhKumar05", 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_dbeeb6c7-ceb6-4419-ae7b-5757d957ed75", 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.11.1-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_dbeeb6c7-ceb6-4419-ae7b-5757d957ed75", 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_dbeeb6c7-ceb6-4419-ae7b-5757d957ed75" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b45e290a-2d91-471b-9cef-374efcd3c5aa", 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.6-alpha.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b45e290a-2d91-471b-9cef-374efcd3c5aa", 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.6-alpha.3", 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.6", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.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: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240212.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_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:19503", 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.6-alpha.3", 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: "7897125030", 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: "e1e1ecc82a980ca298ecb36c81c35ab7500b06b4", 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: "f3f0abee6b9721ff06a24126511e80713371f9e33ef00a466da9e4d005901c0a", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1707890553873-0.45213674335187837:/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--1707890553679-0.5145403068446215:/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--1707890531884-0.24454757746692657:/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--1707890531706-0.26349008949685615:/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_c4375215-07c9-47a0-b9c9-73a402851d81", INVOCATION_ID: "308080f47c9b474892b5d6e7311e07d9", 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", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "433", 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_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 466", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.6-alpha.3", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.6-alpha.3", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "e1e1ecc82a980ca298ecb36c81c35ab7500b06b4", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "KaustubhKumar05", 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_b45e290a-2d91-471b-9cef-374efcd3c5aa", 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.11.1-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b45e290a-2d91-471b-9cef-374efcd3c5aa", 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_b45e290a-2d91-471b-9cef-374efcd3c5aa" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -9157,8 +9157,7 @@ var APP_DATA = {
|
|
9157
9157
|
activeScreensharePeerId: "activeScreensharePeerId",
|
9158
9158
|
disableNotifications: "disableNotifications",
|
9159
9159
|
pollState: "pollState",
|
9160
|
-
background: "background"
|
9161
|
-
backgroundType: "backgroundType"
|
9160
|
+
background: "background"
|
9162
9161
|
};
|
9163
9162
|
var UI_SETTINGS = {
|
9164
9163
|
isAudioOnly: "isAudioOnly",
|
@@ -11907,7 +11906,7 @@ import {
|
|
11907
11906
|
|
11908
11907
|
// src/Prebuilt/components/AppData/AppData.tsx
|
11909
11908
|
init_define_process_env();
|
11910
|
-
import
|
11909
|
+
import React23, { useEffect as useEffect5 } from "react";
|
11911
11910
|
import {
|
11912
11911
|
HMSRoomState,
|
11913
11912
|
selectFullAppData,
|
@@ -12217,9 +12216,220 @@ var LayoutSettings = () => {
|
|
12217
12216
|
));
|
12218
12217
|
};
|
12219
12218
|
|
12219
|
+
// src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts
|
12220
|
+
init_define_process_env();
|
12221
|
+
|
12222
|
+
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
12223
|
+
init_define_process_env();
|
12224
|
+
var import_lodash2 = __toESM(require_lodash());
|
12225
|
+
import React22 from "react";
|
12226
|
+
|
12227
|
+
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
12228
|
+
init_define_process_env();
|
12229
|
+
import { useCallback as useCallback5, useEffect as useEffect4, useRef as useRef5, useState as useState5 } from "react";
|
12230
|
+
|
12231
|
+
// src/Prebuilt/provider/roomLayoutProvider/constants/index.ts
|
12232
|
+
init_define_process_env();
|
12233
|
+
import { JoinForm_JoinBtnType } from "@100mslive/types-prebuilt/elements/join_form";
|
12234
|
+
var defaultLayout = {
|
12235
|
+
id: "",
|
12236
|
+
role_id: "",
|
12237
|
+
template_id: "",
|
12238
|
+
app_id: "",
|
12239
|
+
typography: {
|
12240
|
+
font_family: "Inter"
|
12241
|
+
},
|
12242
|
+
themes: [],
|
12243
|
+
options: {},
|
12244
|
+
screens: {
|
12245
|
+
preview: {
|
12246
|
+
default: {
|
12247
|
+
elements: {
|
12248
|
+
preview_header: {
|
12249
|
+
title: "Get Started",
|
12250
|
+
sub_title: "Setup your audio and video before joining"
|
12251
|
+
},
|
12252
|
+
join_form: {
|
12253
|
+
join_btn_type: JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_ONLY,
|
12254
|
+
join_btn_label: "Join Now",
|
12255
|
+
go_live_btn_label: "Go Live"
|
12256
|
+
}
|
12257
|
+
}
|
12258
|
+
}
|
12259
|
+
},
|
12260
|
+
conferencing: {
|
12261
|
+
default: {
|
12262
|
+
elements: {
|
12263
|
+
chat: {
|
12264
|
+
public_chat_enabled: true,
|
12265
|
+
private_chat_enabled: true,
|
12266
|
+
chat_title: "Chat",
|
12267
|
+
allow_pinning_messages: true,
|
12268
|
+
message_placeholder: "Send a message...",
|
12269
|
+
roles_whitelist: [],
|
12270
|
+
real_time_controls: {
|
12271
|
+
can_disable_chat: true,
|
12272
|
+
can_block_user: true,
|
12273
|
+
can_hide_message: true
|
12274
|
+
}
|
12275
|
+
},
|
12276
|
+
participant_list: {},
|
12277
|
+
video_tile_layout: {
|
12278
|
+
grid: {
|
12279
|
+
enable_local_tile_inset: true,
|
12280
|
+
prominent_roles: [],
|
12281
|
+
enable_spotlighting_peer: true
|
12282
|
+
}
|
12283
|
+
},
|
12284
|
+
emoji_reactions: {}
|
12285
|
+
}
|
12286
|
+
}
|
12287
|
+
},
|
12288
|
+
leave: {}
|
12289
|
+
}
|
12290
|
+
};
|
12291
|
+
|
12292
|
+
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
12293
|
+
var fetchWithRetry = (..._0) => __async(void 0, [..._0], function* (url = "", options = {}) {
|
12294
|
+
const MAX_RETRIES = 4;
|
12295
|
+
let error = Error("something went wrong");
|
12296
|
+
for (let i = 0; i < MAX_RETRIES; i++) {
|
12297
|
+
try {
|
12298
|
+
return yield fetch(url, options);
|
12299
|
+
} catch (err) {
|
12300
|
+
error = err;
|
12301
|
+
}
|
12302
|
+
}
|
12303
|
+
console.error("Fetch failed after max retries", { url, options });
|
12304
|
+
throw error;
|
12305
|
+
});
|
12306
|
+
var useFetchRoomLayout = ({
|
12307
|
+
endpoint = "",
|
12308
|
+
authToken = ""
|
12309
|
+
}) => {
|
12310
|
+
const [layout, setLayout] = useState5(void 0);
|
12311
|
+
const layoutResp = useRef5();
|
12312
|
+
const isFetchInProgress = useRef5(false);
|
12313
|
+
const updateRoomLayoutForRole = useCallback5((role) => {
|
12314
|
+
var _a8;
|
12315
|
+
if (!layoutResp.current) {
|
12316
|
+
return;
|
12317
|
+
}
|
12318
|
+
const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
|
12319
|
+
if (layout2) {
|
12320
|
+
setLayout(layout2);
|
12321
|
+
}
|
12322
|
+
}, []);
|
12323
|
+
useEffect4(() => {
|
12324
|
+
(() => __async(void 0, null, function* () {
|
12325
|
+
var _a8, _b7;
|
12326
|
+
if (isFetchInProgress.current || !authToken) {
|
12327
|
+
return;
|
12328
|
+
}
|
12329
|
+
isFetchInProgress.current = true;
|
12330
|
+
try {
|
12331
|
+
const resp = yield fetchWithRetry(endpoint || "https://api.100ms.live/v2/layouts/ui", {
|
12332
|
+
headers: {
|
12333
|
+
Authorization: `Bearer ${authToken}`
|
12334
|
+
}
|
12335
|
+
});
|
12336
|
+
layoutResp.current = yield resp.json();
|
12337
|
+
} catch (e) {
|
12338
|
+
console.error("[Room Layout API]: Failed to fetch / process room layout. Resorting to default layout.", e);
|
12339
|
+
layoutResp.current = {
|
12340
|
+
data: [defaultLayout]
|
12341
|
+
};
|
12342
|
+
}
|
12343
|
+
let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
|
12344
|
+
if (!layoutForRole) {
|
12345
|
+
console.error(
|
12346
|
+
"[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
|
12347
|
+
);
|
12348
|
+
layoutForRole = defaultLayout;
|
12349
|
+
}
|
12350
|
+
const layout2 = layoutForRole;
|
12351
|
+
setLayout(layout2);
|
12352
|
+
isFetchInProgress.current = false;
|
12353
|
+
}))();
|
12354
|
+
}, [authToken, endpoint]);
|
12355
|
+
return { layout, updateRoomLayoutForRole };
|
12356
|
+
};
|
12357
|
+
|
12358
|
+
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
12359
|
+
var RoomLayoutContext = React22.createContext(void 0);
|
12360
|
+
function customizer(objValue, srcValue) {
|
12361
|
+
if ((0, import_lodash2.isArray)(objValue) || (0, import_lodash2.isArray)(srcValue)) {
|
12362
|
+
return srcValue;
|
12363
|
+
}
|
12364
|
+
return void 0;
|
12365
|
+
}
|
12366
|
+
var RoomLayoutProvider = ({
|
12367
|
+
children,
|
12368
|
+
roomLayoutEndpoint,
|
12369
|
+
overrideLayout
|
12370
|
+
}) => {
|
12371
|
+
const authToken = useAuthToken();
|
12372
|
+
const { layout, updateRoomLayoutForRole } = useFetchRoomLayout({ authToken, endpoint: roomLayoutEndpoint });
|
12373
|
+
const mergedLayout = authToken && layout ? (0, import_lodash2.mergeWith)(layout, overrideLayout, customizer) : layout;
|
12374
|
+
return /* @__PURE__ */ React22.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole } }, children);
|
12375
|
+
};
|
12376
|
+
var useRoomLayout = () => {
|
12377
|
+
var _a8;
|
12378
|
+
return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
|
12379
|
+
};
|
12380
|
+
var useUpdateRoomLayout = () => {
|
12381
|
+
var _a8;
|
12382
|
+
return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
|
12383
|
+
};
|
12384
|
+
|
12385
|
+
// src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts
|
12386
|
+
function useRoomLayoutScreen({
|
12387
|
+
screen
|
12388
|
+
}) {
|
12389
|
+
var _a8;
|
12390
|
+
const roomLayout = useRoomLayout();
|
12391
|
+
const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
|
12392
|
+
return screenProps;
|
12393
|
+
}
|
12394
|
+
function useRoomLayoutPreviewScreen() {
|
12395
|
+
var _a8;
|
12396
|
+
const screenProps = useRoomLayoutScreen({ screen: "preview" });
|
12397
|
+
const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
|
12398
|
+
let elements;
|
12399
|
+
let screenType;
|
12400
|
+
if (isPreviewScreenEnabled) {
|
12401
|
+
screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
|
12402
|
+
elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
12403
|
+
}
|
12404
|
+
return {
|
12405
|
+
isPreviewScreenEnabled,
|
12406
|
+
elements,
|
12407
|
+
screenType
|
12408
|
+
};
|
12409
|
+
}
|
12410
|
+
function useRoomLayoutConferencingScreen() {
|
12411
|
+
var _a8, _b7;
|
12412
|
+
const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
|
12413
|
+
const screenType = Object.keys(screenProps)[0];
|
12414
|
+
const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
12415
|
+
const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
|
12416
|
+
return {
|
12417
|
+
hideSections,
|
12418
|
+
elements,
|
12419
|
+
screenType
|
12420
|
+
};
|
12421
|
+
}
|
12422
|
+
function useRoomLayoutLeaveScreen() {
|
12423
|
+
const screenProps = useRoomLayoutScreen({ screen: "leave" });
|
12424
|
+
const isLeaveScreenEnabled = !!screenProps;
|
12425
|
+
return {
|
12426
|
+
isLeaveScreenEnabled
|
12427
|
+
};
|
12428
|
+
}
|
12429
|
+
|
12220
12430
|
// src/Prebuilt/components/AppData/useSidepane.js
|
12221
12431
|
init_define_process_env();
|
12222
|
-
import { useCallback as
|
12432
|
+
import { useCallback as useCallback6 } from "react";
|
12223
12433
|
import { selectAppData as selectAppData2, useHMSActions as useHMSActions3, useHMSStore as useHMSStore4, useHMSVanillaStore as useHMSVanillaStore3 } from "@100mslive/react-sdk";
|
12224
12434
|
var useIsSidepaneTypeOpen = (sidepaneType) => {
|
12225
12435
|
if (!sidepaneType) {
|
@@ -12234,7 +12444,7 @@ var useSidepaneState = () => {
|
|
12234
12444
|
var useSidepaneToggle = (sidepaneType) => {
|
12235
12445
|
const hmsActions = useHMSActions3();
|
12236
12446
|
const vanillaStore = useHMSVanillaStore3();
|
12237
|
-
const toggleSidepane =
|
12447
|
+
const toggleSidepane = useCallback6(() => {
|
12238
12448
|
const isOpen = vanillaStore.getState(selectAppData2(APP_DATA.sidePane)) === sidepaneType;
|
12239
12449
|
hmsActions.setAppData(APP_DATA.sidePane, !isOpen ? sidepaneType : "");
|
12240
12450
|
}, [vanillaStore, hmsActions, sidepaneType]);
|
@@ -12244,7 +12454,7 @@ var usePollViewToggle = () => {
|
|
12244
12454
|
const hmsActions = useHMSActions3();
|
12245
12455
|
const { view, setPollState } = usePollViewState();
|
12246
12456
|
const isOpen = useSidepaneState() === SIDE_PANE_OPTIONS.POLLS;
|
12247
|
-
const togglePollView =
|
12457
|
+
const togglePollView = useCallback6(
|
12248
12458
|
(id) => {
|
12249
12459
|
id = typeof id === "string" ? id : void 0;
|
12250
12460
|
const newView = id ? POLL_VIEWS.VOTE : isOpen && view ? null : POLL_VIEWS.CREATE_POLL_QUIZ;
|
@@ -12260,7 +12470,7 @@ var usePollViewToggle = () => {
|
|
12260
12470
|
};
|
12261
12471
|
var useSidepaneReset = () => {
|
12262
12472
|
const hmsActions = useHMSActions3();
|
12263
|
-
const resetSidepane =
|
12473
|
+
const resetSidepane = useCallback6(() => {
|
12264
12474
|
hmsActions.setAppData(APP_DATA.sidePane, "");
|
12265
12475
|
hmsActions.setAppData(APP_DATA.pollInView, "");
|
12266
12476
|
}, [hmsActions]);
|
@@ -12302,25 +12512,27 @@ var initialAppData = {
|
|
12302
12512
|
[APP_DATA.activeScreensharePeerId]: "",
|
12303
12513
|
[APP_DATA.disableNotifications]: false,
|
12304
12514
|
[APP_DATA.background]: "none",
|
12305
|
-
[APP_DATA.backgroundType]: "none",
|
12306
12515
|
[APP_DATA.pollState]: {
|
12307
12516
|
[POLL_STATE.pollInView]: "",
|
12308
12517
|
[POLL_STATE.view]: ""
|
12309
12518
|
}
|
12310
12519
|
};
|
12311
|
-
var AppData =
|
12520
|
+
var AppData = React23.memo(() => {
|
12521
|
+
var _a8;
|
12312
12522
|
const hmsActions = useHMSActions4();
|
12313
12523
|
const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
|
12314
12524
|
const appData = useHMSStore5(selectFullAppData);
|
12315
|
-
|
12525
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
12526
|
+
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
12527
|
+
useEffect5(() => {
|
12316
12528
|
hmsActions.initAppData(__spreadValues(__spreadValues({}, initialAppData), appData));
|
12317
12529
|
hmsActions.setFrameworkInfo({
|
12318
12530
|
type: "react-web",
|
12319
12531
|
isPrebuilt: true,
|
12320
|
-
version:
|
12532
|
+
version: React23.version
|
12321
12533
|
});
|
12322
12534
|
}, [hmsActions]);
|
12323
|
-
|
12535
|
+
useEffect5(() => {
|
12324
12536
|
const uiSettings = preferences || {};
|
12325
12537
|
const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
|
12326
12538
|
[UI_SETTINGS.isAudioOnly]: void 0,
|
@@ -12328,13 +12540,26 @@ var AppData = React22.memo(() => {
|
|
12328
12540
|
});
|
12329
12541
|
hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
|
12330
12542
|
}, [preferences, hmsActions]);
|
12331
|
-
|
12543
|
+
useEffect5(() => {
|
12332
12544
|
if (!preferences.subscribedNotifications) {
|
12333
12545
|
return;
|
12334
12546
|
}
|
12335
12547
|
hmsActions.setAppData(APP_DATA.subscribedNotifications, preferences.subscribedNotifications, true);
|
12336
12548
|
}, [preferences.subscribedNotifications, hmsActions]);
|
12337
|
-
|
12549
|
+
useEffect5(() => {
|
12550
|
+
var _a9, _b7;
|
12551
|
+
let defaultMediaURL;
|
12552
|
+
(_b7 = (_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) == null ? void 0 : _b7.forEach((media) => {
|
12553
|
+
if (media.default && media.url) {
|
12554
|
+
defaultMediaURL = media.url;
|
12555
|
+
}
|
12556
|
+
});
|
12557
|
+
if (defaultMediaURL) {
|
12558
|
+
hmsActions.setAppData(APP_DATA.background, defaultMediaURL);
|
12559
|
+
toggleVB();
|
12560
|
+
}
|
12561
|
+
}, [hmsActions, (_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media, toggleVB]);
|
12562
|
+
return /* @__PURE__ */ React23.createElement(ResetStreamingStart, null);
|
12338
12563
|
});
|
12339
12564
|
var ResetStreamingStart = () => {
|
12340
12565
|
const { isHLSRunning, isRTMPRunning, isBrowserRecordingOn } = useRecordingStreaming();
|
@@ -12346,19 +12571,19 @@ var ResetStreamingStart = () => {
|
|
12346
12571
|
const [rtmpStarted, setRTMPStarted] = useSetAppDataByKey(APP_DATA.rtmpStarted);
|
12347
12572
|
const toggleStreaming = useSidepaneToggle(SIDE_PANE_OPTIONS.STREAMING);
|
12348
12573
|
const isStreamingOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.STREAMING);
|
12349
|
-
|
12574
|
+
useEffect5(() => {
|
12350
12575
|
if (isBrowserRecordingOn && recordingStarted) {
|
12351
12576
|
setRecordingStarted(false);
|
12352
12577
|
}
|
12353
12578
|
}, [isBrowserRecordingOn, recordingStarted, setRecordingStarted]);
|
12354
|
-
|
12579
|
+
useEffect5(() => {
|
12355
12580
|
if (roomState === HMSRoomState.Disconnected) {
|
12356
12581
|
setHLSStarted(false);
|
12357
12582
|
setRecordingStarted(false);
|
12358
12583
|
setRTMPStarted(false);
|
12359
12584
|
}
|
12360
12585
|
}, [roomState, setHLSStarted, setRTMPStarted, setRecordingStarted]);
|
12361
|
-
|
12586
|
+
useEffect5(() => {
|
12362
12587
|
if (isHLSRunning || hlsError) {
|
12363
12588
|
if (hlsStarted) {
|
12364
12589
|
setHLSStarted(false);
|
@@ -12368,7 +12593,7 @@ var ResetStreamingStart = () => {
|
|
12368
12593
|
}
|
12369
12594
|
}
|
12370
12595
|
}, [isHLSRunning, hlsStarted, setHLSStarted, hlsError, isStreamingOpen, toggleStreaming]);
|
12371
|
-
|
12596
|
+
useEffect5(() => {
|
12372
12597
|
if (isRTMPRunning || rtmpError || isBrowserRecordingOn) {
|
12373
12598
|
if (rtmpStarted) {
|
12374
12599
|
setRTMPStarted(false);
|
@@ -12383,15 +12608,15 @@ var ResetStreamingStart = () => {
|
|
12383
12608
|
|
12384
12609
|
// src/Prebuilt/components/AuthToken.jsx
|
12385
12610
|
init_define_process_env();
|
12386
|
-
import
|
12611
|
+
import React25, { useEffect as useEffect6, useState as useState6 } from "react";
|
12387
12612
|
import { useSessionStorage } from "react-use";
|
12388
12613
|
import { v4 as uuid } from "uuid";
|
12389
12614
|
import { useHMSActions as useHMSActions5 } from "@100mslive/react-sdk";
|
12390
12615
|
|
12391
12616
|
// src/Prebuilt/AppContext.tsx
|
12392
12617
|
init_define_process_env();
|
12393
|
-
import
|
12394
|
-
var HMSPrebuiltContext =
|
12618
|
+
import React24, { useContext as useContext2 } from "react";
|
12619
|
+
var HMSPrebuiltContext = React24.createContext({
|
12395
12620
|
roomCode: "",
|
12396
12621
|
userName: "",
|
12397
12622
|
userId: "",
|
@@ -12413,14 +12638,14 @@ var useHMSPrebuiltContext = () => {
|
|
12413
12638
|
var transaction_error_default = 'data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M70 68.3333V26.6667C70 24.825 68.5083 23.3333 66.6667 23.3333H13.3333C11.4917 23.3333 10 24.825 10 26.6667V68.3333C10 70.175 11.4917 71.6667 13.3333 71.6667H66.6667C68.5083 71.6667 70 70.175 70 68.3333Z" fill="%23272A31"/>%0A<path d="M20 31.6667H60C61.8417 31.6667 63.3333 33.1583 63.3333 35C63.3333 36.8417 61.8417 38.3333 60 38.3333H20C18.1583 38.3333 16.6667 36.8417 16.6667 35C16.6667 33.1583 18.1583 31.6667 20 31.6667Z" fill="%238F9099"/>%0A<path d="M58.3333 36.6667V10C58.3333 9.08 57.5867 8.33334 56.6667 8.33334H55C55 9.25334 54.2533 10 53.3333 10C52.4133 10 51.6667 9.25334 51.6667 8.33334H48.3333C48.3333 9.25334 47.5867 10 46.6667 10C45.7467 10 45 9.25334 45 8.33334H41.6667C41.6667 9.25334 40.92 10 40 10C39.08 10 38.3333 9.25334 38.3333 8.33334H35C35 9.25334 34.2533 10 33.3333 10C32.4133 10 31.6667 9.25334 31.6667 8.33334H28.3333C28.3333 9.25334 27.5867 10 26.6667 10C25.7467 10 25 9.25334 25 8.33334H23.3333C22.4133 8.33334 21.6667 9.08 21.6667 10V36.6667H58.3333Z" fill="%23C74E5B"/>%0A<path d="M21.6667 43.3333H58.3333C60.175 43.3333 61.6667 44.825 61.6667 46.6667V50C61.6667 51.8417 60.175 53.3333 58.3333 53.3333H21.6667C19.825 53.3333 18.3333 51.8417 18.3333 50V46.6667C18.3333 44.825 19.825 43.3333 21.6667 43.3333Z" fill="%23C5C6D0"/>%0A<path d="M60 66.6667H55C54.08 66.6667 53.3333 65.92 53.3333 65V60C53.3333 59.08 54.08 58.3333 55 58.3333H60C60.92 58.3333 61.6667 59.08 61.6667 60V65C61.6667 65.92 60.92 66.6667 60 66.6667Z" fill="%23C5C6D0"/>%0A<path d="M25 66.6667H20C19.08 66.6667 18.3333 65.92 18.3333 65V60C18.3333 59.08 19.08 58.3333 20 58.3333H25C25.92 58.3333 26.6667 59.08 26.6667 60V65C26.6667 65.92 25.92 66.6667 25 66.6667ZM36.6667 66.6667H31.6667C30.7467 66.6667 30 65.92 30 65V60C30 59.08 30.7467 58.3333 31.6667 58.3333H36.6667C37.5867 58.3333 38.3333 59.08 38.3333 60V65C38.3333 65.92 37.5867 66.6667 36.6667 66.6667ZM48.3333 66.6667H43.3333C42.4133 66.6667 41.6667 65.92 41.6667 65V60C41.6667 59.08 42.4133 58.3333 43.3333 58.3333H48.3333C49.2533 58.3333 50 59.08 50 60V65C50 65.92 49.2533 66.6667 48.3333 66.6667Z" fill="%23C5C6D0"/>%0A<path d="M58.3333 35H21.6667V38.3333H58.3333V35Z" fill="%23C74E5B"/>%0A<path opacity="0.05" d="M45.3033 32.315C44.6383 32.315 44.01 32.0567 43.5367 31.585L40 28.0467L36.465 31.5817C35.9917 32.0533 35.365 32.3133 34.6967 32.3133C34.0283 32.3133 33.4 32.0533 32.9267 31.58L31.75 30.4033C31.2783 29.9333 31.0183 29.3033 31.0183 28.6333C31.0183 27.9667 31.2783 27.3383 31.75 26.8667L35.2867 23.3333L31.7517 19.7983C31.28 19.3283 31.02 18.7 31.02 18.0317C31.02 17.3617 31.28 16.7333 31.7517 16.2617L32.93 15.0833C33.4017 14.6117 34.0283 14.3517 34.6983 14.3517C35.3633 14.3517 35.9917 14.61 36.465 15.0817L40 18.62L43.535 15.0833C44.0083 14.6117 44.635 14.3517 45.3033 14.3517C45.9683 14.3517 46.5967 14.61 47.07 15.0817L48.25 16.2617C48.7217 16.7317 48.9817 17.3617 48.9817 18.0317C48.9817 18.6983 48.7217 19.3267 48.25 19.7983L44.7117 23.3333L48.2483 26.87C49.2217 27.84 49.2233 29.425 48.2517 30.4017L47.07 31.5833C46.5983 32.055 45.9717 32.315 45.3033 32.315Z" fill="black"/>%0A<path opacity="0.07" d="M45.3033 31.4817C44.8583 31.4817 44.44 31.3083 44.125 30.995L40 26.8683L35.875 30.9933C35.56 31.3083 35.1417 31.48 34.6967 31.48C34.25 31.48 33.8317 31.3067 33.5183 30.9917L32.34 29.8133C32.025 29.4983 31.8517 29.08 31.8517 28.6333C31.8517 28.1883 32.025 27.77 32.34 27.455L36.465 23.3333L32.34 19.2083C32.0267 18.895 31.8517 18.4767 31.8517 18.0317C31.8517 17.585 32.025 17.1667 32.34 16.8517L33.5183 15.6733C33.8317 15.36 34.25 15.1867 34.6967 15.1867C35.1417 15.1867 35.56 15.36 35.875 15.6733L40 19.7983L44.125 15.6717C44.44 15.3567 44.8583 15.185 45.3033 15.185C45.7483 15.185 46.1667 15.3583 46.4817 15.6717L47.66 16.8517C47.975 17.1667 48.1483 17.585 48.1483 18.0317C48.1483 18.4767 47.975 18.895 47.66 19.21L43.5333 23.3333L47.66 27.46C48.31 28.1067 48.31 29.1633 47.6617 29.815L46.4817 30.995C46.1667 31.3083 45.7483 31.4817 45.3033 31.4817Z" fill="black"/>%0A<path d="M42.3567 23.3333L47.0717 18.6183C47.3967 18.2933 47.3967 17.765 47.0717 17.44L45.8933 16.2617C45.5667 15.9367 45.04 15.9367 44.715 16.2617L40 20.9767L35.2867 16.2633C34.9617 15.9383 34.4333 15.9383 34.1083 16.2633L32.93 17.4417C32.605 17.7667 32.605 18.295 32.93 18.62L37.6433 23.3333L32.93 28.0467C32.605 28.3717 32.605 28.9 32.93 29.225L34.1083 30.4033C34.4333 30.7283 34.9617 30.7283 35.2867 30.4033L40 25.69L44.715 30.405C45.04 30.73 45.5683 30.73 45.8933 30.405L47.0717 29.2267C47.3967 28.9 47.3967 28.3733 47.0717 28.0483L42.3567 23.3333Z" fill="%23FFEDEC"/>%0A</svg>%0A';
|
12414
12639
|
|
12415
12640
|
// src/Prebuilt/components/AuthToken.jsx
|
12416
|
-
var AuthToken =
|
12641
|
+
var AuthToken = React25.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken }) => {
|
12417
12642
|
const hmsActions = useHMSActions5();
|
12418
12643
|
const { roomCode, userId } = useHMSPrebuiltContext();
|
12419
|
-
const [error, setError] =
|
12644
|
+
const [error, setError] = useState6({ title: "", body: "" });
|
12420
12645
|
let authToken = defaultAuthToken;
|
12421
12646
|
const [, setAuthTokenInAppData] = useSetAppDataByKey(APP_DATA.authToken);
|
12422
12647
|
const [savedUserId, setSavedUserId] = useSessionStorage(UserPreferencesKeys.USER_ID);
|
12423
|
-
|
12648
|
+
useEffect6(() => {
|
12424
12649
|
if (authToken) {
|
12425
12650
|
setAuthTokenInAppData(authToken);
|
12426
12651
|
return;
|
@@ -12444,7 +12669,7 @@ var AuthToken = React24.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken })
|
|
12444
12669
|
setSavedUserId
|
12445
12670
|
]);
|
12446
12671
|
if (error.title) {
|
12447
|
-
return /* @__PURE__ */
|
12672
|
+
return /* @__PURE__ */ React25.createElement(Dialog.Root, { open: true }, /* @__PURE__ */ React25.createElement(
|
12448
12673
|
Dialog.Content,
|
12449
12674
|
{
|
12450
12675
|
css: {
|
@@ -12456,9 +12681,9 @@ var AuthToken = React24.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken })
|
|
12456
12681
|
alignItems: "center"
|
12457
12682
|
}
|
12458
12683
|
},
|
12459
|
-
/* @__PURE__ */
|
12460
|
-
/* @__PURE__ */
|
12461
|
-
/* @__PURE__ */
|
12684
|
+
/* @__PURE__ */ React25.createElement("img", { src: transaction_error_default, height: 80, width: 80 }),
|
12685
|
+
/* @__PURE__ */ React25.createElement(Text, { variant: "h4", css: { textAlign: "center", mb: "$4", mt: "$10" } }, error.title),
|
12686
|
+
/* @__PURE__ */ React25.createElement(Text, { css: { c: "$on_surface_medium", textAlign: "center" } }, error.body)
|
12462
12687
|
));
|
12463
12688
|
}
|
12464
12689
|
return null;
|
@@ -12526,7 +12751,7 @@ import { useAVToggle as useAVToggle3 } from "@100mslive/react-sdk";
|
|
12526
12751
|
|
12527
12752
|
// src/Prebuilt/components/AudioVideoToggle.jsx
|
12528
12753
|
init_define_process_env();
|
12529
|
-
import
|
12754
|
+
import React27, { Fragment as Fragment2 } from "react";
|
12530
12755
|
import {
|
12531
12756
|
DeviceType,
|
12532
12757
|
HMSRoomState as HMSRoomState2,
|
@@ -12542,7 +12767,7 @@ import { CameraFlipIcon, MicOffIcon, MicOnIcon, VideoOffIcon, VideoOnIcon } from
|
|
12542
12767
|
|
12543
12768
|
// src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx
|
12544
12769
|
init_define_process_env();
|
12545
|
-
import
|
12770
|
+
import React26 from "react";
|
12546
12771
|
import { VerticalMenuIcon } from "@100mslive/react-icons";
|
12547
12772
|
|
12548
12773
|
// src/Prebuilt/IconButton.tsx
|
@@ -12625,7 +12850,7 @@ var IconButtonWithOptions = ({
|
|
12625
12850
|
}) => {
|
12626
12851
|
const bgCss = { backgroundColor: disabled ? "$surface_brighter" : active ? "$transparent" : "$secondary_dim" };
|
12627
12852
|
const iconCss = { color: disabled ? "$on_surface_low" : active ? "$on_surface_high" : "$on_primary_high" };
|
12628
|
-
return /* @__PURE__ */
|
12853
|
+
return /* @__PURE__ */ React26.createElement(Flex, null, /* @__PURE__ */ React26.createElement(IconSection, { css: bgCss, onClick }, /* @__PURE__ */ React26.createElement(Tooltip, { disabled: !tooltipMessage, title: tooltipMessage }, /* @__PURE__ */ React26.createElement(Flex, { align: "center", justify: "center", css: iconCss }, icon))), /* @__PURE__ */ React26.createElement(Dropdown.Root, null, /* @__PURE__ */ React26.createElement(
|
12629
12854
|
Dropdown.Trigger,
|
12630
12855
|
{
|
12631
12856
|
asChild: true,
|
@@ -12636,8 +12861,8 @@ var IconButtonWithOptions = ({
|
|
12636
12861
|
}
|
12637
12862
|
}
|
12638
12863
|
},
|
12639
|
-
/* @__PURE__ */
|
12640
|
-
), /* @__PURE__ */
|
12864
|
+
/* @__PURE__ */ React26.createElement(OptionsSection, { css: bgCss }, /* @__PURE__ */ React26.createElement(Tooltip, { title: "View Options" }, /* @__PURE__ */ React26.createElement(Box, { css: iconCss }, /* @__PURE__ */ React26.createElement(VerticalMenuIcon, null))))
|
12865
|
+
), /* @__PURE__ */ React26.createElement(
|
12641
12866
|
Dropdown.Content,
|
12642
12867
|
{
|
12643
12868
|
sideOffset: 5,
|
@@ -12649,7 +12874,7 @@ var IconButtonWithOptions = ({
|
|
12649
12874
|
border: "none"
|
12650
12875
|
}
|
12651
12876
|
},
|
12652
|
-
options.map((option, index) => /* @__PURE__ */
|
12877
|
+
options.map((option, index) => /* @__PURE__ */ React26.createElement(
|
12653
12878
|
Dropdown.Item,
|
12654
12879
|
{
|
12655
12880
|
key: option.title,
|
@@ -12720,7 +12945,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12720
12945
|
const { videoInput, audioInput } = allDevices;
|
12721
12946
|
const formattedVideoInputList = videoInput == null ? void 0 : videoInput.map((videoInput2) => ({
|
12722
12947
|
active: selectedDeviceIDs.videoInput === videoInput2.deviceId,
|
12723
|
-
content: /* @__PURE__ */
|
12948
|
+
content: /* @__PURE__ */ React27.createElement(
|
12724
12949
|
Text,
|
12725
12950
|
{
|
12726
12951
|
variant: "sm",
|
@@ -12736,7 +12961,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12736
12961
|
}));
|
12737
12962
|
const formattedAudioInputList = audioInput == null ? void 0 : audioInput.map((audioInput2) => ({
|
12738
12963
|
active: selectedDeviceIDs.audioInput === audioInput2.deviceId,
|
12739
|
-
content: /* @__PURE__ */
|
12964
|
+
content: /* @__PURE__ */ React27.createElement(
|
12740
12965
|
Text,
|
12741
12966
|
{
|
12742
12967
|
variant: "sm",
|
@@ -12757,7 +12982,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12757
12982
|
const roomState = useHMSStore6(selectRoomState2);
|
12758
12983
|
const hasAudioDevices = (audioInput == null ? void 0 : audioInput.length) > 0;
|
12759
12984
|
const hasVideoDevices = (videoInput == null ? void 0 : videoInput.length) > 0;
|
12760
|
-
return /* @__PURE__ */
|
12985
|
+
return /* @__PURE__ */ React27.createElement(Fragment2, null, toggleAudio ? hideOptions || !hasAudioDevices ? /* @__PURE__ */ React27.createElement(Tooltip, { title: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)` }, /* @__PURE__ */ React27.createElement(
|
12761
12986
|
IconButton_default,
|
12762
12987
|
{
|
12763
12988
|
active: isLocalAudioEnabled,
|
@@ -12767,20 +12992,20 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12767
12992
|
"data-testid": "audio_btn",
|
12768
12993
|
className: "__cancel-drag-event"
|
12769
12994
|
},
|
12770
|
-
!isLocalAudioEnabled ? /* @__PURE__ */
|
12771
|
-
)) : /* @__PURE__ */
|
12995
|
+
!isLocalAudioEnabled ? /* @__PURE__ */ React27.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React27.createElement(MicOnIcon, { "data-testid": "audio_on_btn" })
|
12996
|
+
)) : /* @__PURE__ */ React27.createElement(
|
12772
12997
|
IconButtonWithOptions,
|
12773
12998
|
{
|
12774
12999
|
options: formattedAudioInputList,
|
12775
13000
|
disabled: !toggleAudio,
|
12776
13001
|
onDisabledClick: toggleAudio,
|
12777
13002
|
tooltipMessage: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)`,
|
12778
|
-
icon: !isLocalAudioEnabled ? /* @__PURE__ */
|
13003
|
+
icon: !isLocalAudioEnabled ? /* @__PURE__ */ React27.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React27.createElement(MicOnIcon, { "data-testid": "audio_on_btn" }),
|
12779
13004
|
active: isLocalAudioEnabled,
|
12780
13005
|
onClick: toggleAudio,
|
12781
13006
|
key: "toggleAudio"
|
12782
13007
|
}
|
12783
|
-
) : null, toggleVideo ? hideOptions || !hasVideoDevices ? /* @__PURE__ */
|
13008
|
+
) : null, toggleVideo ? hideOptions || !hasVideoDevices ? /* @__PURE__ */ React27.createElement(Tooltip, { title: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)` }, /* @__PURE__ */ React27.createElement(
|
12784
13009
|
IconButton_default,
|
12785
13010
|
{
|
12786
13011
|
key: "toggleVideo",
|
@@ -12790,20 +13015,20 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12790
13015
|
"data-testid": "video_btn",
|
12791
13016
|
className: "__cancel-drag-event"
|
12792
13017
|
},
|
12793
|
-
!isLocalVideoEnabled ? /* @__PURE__ */
|
12794
|
-
)) : /* @__PURE__ */
|
13018
|
+
!isLocalVideoEnabled ? /* @__PURE__ */ React27.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React27.createElement(VideoOnIcon, { "data-testid": "video_on_btn" })
|
13019
|
+
)) : /* @__PURE__ */ React27.createElement(
|
12795
13020
|
IconButtonWithOptions,
|
12796
13021
|
{
|
12797
13022
|
disabled: !toggleVideo,
|
12798
13023
|
onDisabledClick: toggleVideo,
|
12799
13024
|
options: formattedVideoInputList,
|
12800
13025
|
tooltipMessage: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)`,
|
12801
|
-
icon: !isLocalVideoEnabled ? /* @__PURE__ */
|
13026
|
+
icon: !isLocalVideoEnabled ? /* @__PURE__ */ React27.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React27.createElement(VideoOnIcon, { "data-testid": "video_on_btn" }),
|
12802
13027
|
key: "toggleVideo",
|
12803
13028
|
active: isLocalVideoEnabled,
|
12804
13029
|
onClick: toggleVideo
|
12805
13030
|
}
|
12806
|
-
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */
|
13031
|
+
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */ React27.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ React27.createElement(
|
12807
13032
|
IconButton_default,
|
12808
13033
|
{
|
12809
13034
|
onClick: () => __async(void 0, null, function* () {
|
@@ -12817,13 +13042,13 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12817
13042
|
}
|
12818
13043
|
})
|
12819
13044
|
},
|
12820
|
-
/* @__PURE__ */
|
13045
|
+
/* @__PURE__ */ React27.createElement(CameraFlipIcon, null)
|
12821
13046
|
)) : null);
|
12822
13047
|
};
|
12823
13048
|
|
12824
13049
|
// src/Prebuilt/components/EmojiReaction.jsx
|
12825
13050
|
init_define_process_env();
|
12826
|
-
import
|
13051
|
+
import React29, { Fragment as Fragment3, useState as useState7 } from "react";
|
12827
13052
|
import { useMedia } from "react-use";
|
12828
13053
|
import data from "@emoji-mart/data/sets/14/apple.json";
|
12829
13054
|
import { init } from "emoji-mart";
|
@@ -12838,13 +13063,13 @@ import { EmojiIcon } from "@100mslive/react-icons";
|
|
12838
13063
|
|
12839
13064
|
// src/Prebuilt/components/Footer/EmojiCard.jsx
|
12840
13065
|
init_define_process_env();
|
12841
|
-
import
|
13066
|
+
import React28 from "react";
|
12842
13067
|
var emojiReactionList = [
|
12843
13068
|
[{ emojiId: "+1" }, { emojiId: "-1" }, { emojiId: "wave" }, { emojiId: "clap" }, { emojiId: "fire" }],
|
12844
13069
|
[{ emojiId: "tada" }, { emojiId: "heart_eyes" }, { emojiId: "joy" }, { emojiId: "open_mouth" }, { emojiId: "sob" }]
|
12845
13070
|
];
|
12846
13071
|
var EmojiCard = ({ sendReaction }) => {
|
12847
|
-
return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */
|
13072
|
+
return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */ React28.createElement(Flex, { key: index, justify: "between", css: { mb: "$8" } }, emojiLine.map((emoji) => /* @__PURE__ */ React28.createElement(EmojiContainer, { key: emoji.emojiId, onClick: () => sendReaction(emoji.emojiId) }, /* @__PURE__ */ React28.createElement("em-emoji", { id: emoji.emojiId, size: "100%", set: "apple" })))));
|
12848
13073
|
};
|
12849
13074
|
var EmojiContainer = styled("span", {
|
12850
13075
|
position: "relative",
|
@@ -12861,10 +13086,10 @@ var EmojiContainer = styled("span", {
|
|
12861
13086
|
|
12862
13087
|
// src/Prebuilt/components/hooks/useDropdownList.ts
|
12863
13088
|
init_define_process_env();
|
12864
|
-
import { useEffect as
|
13089
|
+
import { useEffect as useEffect7 } from "react";
|
12865
13090
|
var useDropdownList = ({ name, open }) => {
|
12866
13091
|
const [dropdownList = [], setDropdownList] = useSetAppDataByKey(APP_DATA.dropdownList);
|
12867
|
-
|
13092
|
+
useEffect7(() => {
|
12868
13093
|
if (open) {
|
12869
13094
|
if (!dropdownList.includes(name)) {
|
12870
13095
|
setDropdownList([...dropdownList, name]);
|
@@ -12883,7 +13108,7 @@ var useDropdownList = ({ name, open }) => {
|
|
12883
13108
|
// src/Prebuilt/components/EmojiReaction.jsx
|
12884
13109
|
init({ data });
|
12885
13110
|
var EmojiReaction = () => {
|
12886
|
-
const [open, setOpen] =
|
13111
|
+
const [open, setOpen] = useState7(false);
|
12887
13112
|
const isConnected = useHMSStore7(selectIsConnectedToRoom);
|
12888
13113
|
useDropdownList({ open, name: "EmojiReaction" });
|
12889
13114
|
const roles = useHMSStore7(selectAvailableRoleNames);
|
@@ -12905,12 +13130,12 @@ var EmojiReaction = () => {
|
|
12905
13130
|
if (!isConnected) {
|
12906
13131
|
return null;
|
12907
13132
|
}
|
12908
|
-
return isMobile ? /* @__PURE__ */
|
13133
|
+
return isMobile ? /* @__PURE__ */ React29.createElement(EmojiCard, { sendReaction }) : /* @__PURE__ */ React29.createElement(Fragment3, null, /* @__PURE__ */ React29.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React29.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React29.createElement(IconButton_default, null, /* @__PURE__ */ React29.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React29.createElement(Box, null, /* @__PURE__ */ React29.createElement(EmojiIcon, null))))), /* @__PURE__ */ React29.createElement(Dropdown.Content, { sideOffset: 5, align: "center", css: { p: "$8", bg: "$surface_default" } }, /* @__PURE__ */ React29.createElement(EmojiCard, { sendReaction }))));
|
12909
13134
|
};
|
12910
13135
|
|
12911
13136
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
12912
13137
|
init_define_process_env();
|
12913
|
-
import
|
13138
|
+
import React36 from "react";
|
12914
13139
|
import { useMedia as useMedia2 } from "react-use";
|
12915
13140
|
import {
|
12916
13141
|
selectHLSState as selectHLSState2,
|
@@ -12924,13 +13149,13 @@ import {
|
|
12924
13149
|
|
12925
13150
|
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
12926
13151
|
init_define_process_env();
|
12927
|
-
import
|
13152
|
+
import React33, { Fragment as Fragment4, useState as useState8 } from "react";
|
12928
13153
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom2, selectPermissions as selectPermissions2, useHMSStore as useHMSStore8, useRecordingStreaming as useRecordingStreaming2 } from "@100mslive/react-sdk";
|
12929
13154
|
import { ExitIcon, StopIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
|
12930
13155
|
|
12931
13156
|
// src/Prebuilt/components/Leave/EndSessionContent.tsx
|
12932
13157
|
init_define_process_env();
|
12933
|
-
import
|
13158
|
+
import React30 from "react";
|
12934
13159
|
import { AlertTriangleIcon, CrossIcon as CrossIcon3 } from "@100mslive/react-icons";
|
12935
13160
|
var EndSessionContent = ({
|
12936
13161
|
setShowEndStreamAlert,
|
@@ -12938,7 +13163,7 @@ var EndSessionContent = ({
|
|
12938
13163
|
isModal = false,
|
12939
13164
|
isStreamingOn = false
|
12940
13165
|
}) => {
|
12941
|
-
return /* @__PURE__ */
|
13166
|
+
return /* @__PURE__ */ React30.createElement(Box, null, /* @__PURE__ */ React30.createElement(
|
12942
13167
|
Flex,
|
12943
13168
|
{
|
12944
13169
|
css: {
|
@@ -12947,10 +13172,10 @@ var EndSessionContent = ({
|
|
12947
13172
|
alignItems: "center"
|
12948
13173
|
}
|
12949
13174
|
},
|
12950
|
-
/* @__PURE__ */
|
12951
|
-
/* @__PURE__ */
|
12952
|
-
isModal ? null : /* @__PURE__ */
|
12953
|
-
), /* @__PURE__ */
|
13175
|
+
/* @__PURE__ */ React30.createElement(AlertTriangleIcon, { style: { marginRight: "0.5rem" } }),
|
13176
|
+
/* @__PURE__ */ React30.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "End ", isStreamingOn ? "Stream" : "Session"),
|
13177
|
+
isModal ? null : /* @__PURE__ */ React30.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowEndStreamAlert(false) }, /* @__PURE__ */ React30.createElement(CrossIcon3, null))
|
13178
|
+
), /* @__PURE__ */ React30.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "The ", isStreamingOn ? "stream" : "session", " will end for everyone. You can't undo this action."), /* @__PURE__ */ React30.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React30.createElement(
|
12954
13179
|
Button,
|
12955
13180
|
{
|
12956
13181
|
outlined: true,
|
@@ -12959,7 +13184,7 @@ var EndSessionContent = ({
|
|
12959
13184
|
onClick: () => setShowEndStreamAlert(false)
|
12960
13185
|
},
|
12961
13186
|
"Cancel"
|
12962
|
-
), /* @__PURE__ */
|
13187
|
+
), /* @__PURE__ */ React30.createElement(
|
12963
13188
|
Button,
|
12964
13189
|
{
|
12965
13190
|
variant: "danger",
|
@@ -13003,7 +13228,7 @@ var MenuTriggerButton = styled(LeaveIconButton, {
|
|
13003
13228
|
|
13004
13229
|
// src/Prebuilt/components/Leave/LeaveCard.tsx
|
13005
13230
|
init_define_process_env();
|
13006
|
-
import
|
13231
|
+
import React31 from "react";
|
13007
13232
|
var LeaveCard = ({
|
13008
13233
|
icon,
|
13009
13234
|
title,
|
@@ -13013,19 +13238,19 @@ var LeaveCard = ({
|
|
13013
13238
|
titleColor,
|
13014
13239
|
css: css2 = {}
|
13015
13240
|
}) => {
|
13016
|
-
return /* @__PURE__ */
|
13241
|
+
return /* @__PURE__ */ React31.createElement(Flex, { css: __spreadValues({ p: "$10", flexGrow: 1, gap: "$8", bg }, css2), onClick }, /* @__PURE__ */ React31.createElement(Box, { css: { color: titleColor } }, icon), /* @__PURE__ */ React31.createElement(Box, { css: { gap: "$2" } }, /* @__PURE__ */ React31.createElement(Text, { variant: "lg", css: { color: titleColor } }, title), /* @__PURE__ */ React31.createElement(Text, { variant: "sm", css: { c: "inherit" } }, subtitle)));
|
13017
13242
|
};
|
13018
13243
|
|
13019
13244
|
// src/Prebuilt/components/Leave/LeaveSessionContent.tsx
|
13020
13245
|
init_define_process_env();
|
13021
|
-
import
|
13246
|
+
import React32 from "react";
|
13022
13247
|
import { AlertTriangleIcon as AlertTriangleIcon2, CrossIcon as CrossIcon4 } from "@100mslive/react-icons";
|
13023
13248
|
var LeaveSessionContent = ({
|
13024
13249
|
setShowLeaveRoomAlert,
|
13025
13250
|
leaveRoom,
|
13026
13251
|
isModal = false
|
13027
13252
|
}) => {
|
13028
|
-
return /* @__PURE__ */
|
13253
|
+
return /* @__PURE__ */ React32.createElement(Box, null, /* @__PURE__ */ React32.createElement(
|
13029
13254
|
Flex,
|
13030
13255
|
{
|
13031
13256
|
css: {
|
@@ -13034,10 +13259,10 @@ var LeaveSessionContent = ({
|
|
13034
13259
|
alignItems: "center"
|
13035
13260
|
}
|
13036
13261
|
},
|
13037
|
-
/* @__PURE__ */
|
13038
|
-
/* @__PURE__ */
|
13039
|
-
isModal ? null : /* @__PURE__ */
|
13040
|
-
), /* @__PURE__ */
|
13262
|
+
/* @__PURE__ */ React32.createElement(AlertTriangleIcon2, { style: { marginRight: "0.5rem" } }),
|
13263
|
+
/* @__PURE__ */ React32.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "Leave"),
|
13264
|
+
isModal ? null : /* @__PURE__ */ React32.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowLeaveRoomAlert(false) }, /* @__PURE__ */ React32.createElement(CrossIcon4, null))
|
13265
|
+
), /* @__PURE__ */ React32.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", mb: "$8", mt: "$4" } }, "Others will continue after you leave. You can join the session again."), /* @__PURE__ */ React32.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React32.createElement(
|
13041
13266
|
Button,
|
13042
13267
|
{
|
13043
13268
|
outlined: true,
|
@@ -13046,7 +13271,7 @@ var LeaveSessionContent = ({
|
|
13046
13271
|
onClick: () => setShowLeaveRoomAlert(false)
|
13047
13272
|
},
|
13048
13273
|
"Cancel"
|
13049
|
-
), /* @__PURE__ */
|
13274
|
+
), /* @__PURE__ */ React32.createElement(
|
13050
13275
|
Button,
|
13051
13276
|
{
|
13052
13277
|
variant: "danger",
|
@@ -13067,9 +13292,9 @@ var DesktopLeaveRoom = ({
|
|
13067
13292
|
screenType,
|
13068
13293
|
endRoom
|
13069
13294
|
}) => {
|
13070
|
-
const [open, setOpen] =
|
13071
|
-
const [showLeaveRoomAlert, setShowLeaveRoomAlert] =
|
13072
|
-
const [showEndStreamAlert, setShowEndStreamAlert] =
|
13295
|
+
const [open, setOpen] = useState8(false);
|
13296
|
+
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState8(false);
|
13297
|
+
const [showEndStreamAlert, setShowEndStreamAlert] = useState8(false);
|
13073
13298
|
const isConnected = useHMSStore8(selectIsConnectedToRoom2);
|
13074
13299
|
const permissions = useHMSStore8(selectPermissions2);
|
13075
13300
|
const { isStreamingOn } = useRecordingStreaming2();
|
@@ -13079,7 +13304,7 @@ var DesktopLeaveRoom = ({
|
|
13079
13304
|
if (!permissions || !isConnected) {
|
13080
13305
|
return null;
|
13081
13306
|
}
|
13082
|
-
return /* @__PURE__ */
|
13307
|
+
return /* @__PURE__ */ React33.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React33.createElement(Flex, null, /* @__PURE__ */ React33.createElement(
|
13083
13308
|
LeaveIconButton,
|
13084
13309
|
{
|
13085
13310
|
key: "LeaveRoom",
|
@@ -13090,8 +13315,8 @@ var DesktopLeaveRoom = ({
|
|
13090
13315
|
},
|
13091
13316
|
onClick: () => setShowLeaveRoomAlert(true)
|
13092
13317
|
},
|
13093
|
-
/* @__PURE__ */
|
13094
|
-
), /* @__PURE__ */
|
13318
|
+
/* @__PURE__ */ React33.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React33.createElement(Box, null, /* @__PURE__ */ React33.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
13319
|
+
), /* @__PURE__ */ React33.createElement(Dropdown.Root, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React33.createElement(
|
13095
13320
|
Dropdown.Trigger,
|
13096
13321
|
{
|
13097
13322
|
asChild: true,
|
@@ -13101,8 +13326,8 @@ var DesktopLeaveRoom = ({
|
|
13101
13326
|
}
|
13102
13327
|
}
|
13103
13328
|
},
|
13104
|
-
/* @__PURE__ */
|
13105
|
-
), /* @__PURE__ */
|
13329
|
+
/* @__PURE__ */ React33.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React33.createElement(VerticalMenuIcon2, null))
|
13330
|
+
), /* @__PURE__ */ React33.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React33.createElement(
|
13106
13331
|
Dropdown.Item,
|
13107
13332
|
{
|
13108
13333
|
css: {
|
@@ -13113,21 +13338,21 @@ var DesktopLeaveRoom = ({
|
|
13113
13338
|
},
|
13114
13339
|
"data-testid": "just_leave_btn"
|
13115
13340
|
},
|
13116
|
-
/* @__PURE__ */
|
13341
|
+
/* @__PURE__ */ React33.createElement(
|
13117
13342
|
LeaveCard,
|
13118
13343
|
{
|
13119
13344
|
title: showStream ? "Leave Stream" : "Leave Session",
|
13120
13345
|
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
13121
13346
|
bg: "",
|
13122
13347
|
titleColor: "$on_surface_high",
|
13123
|
-
icon: /* @__PURE__ */
|
13348
|
+
icon: /* @__PURE__ */ React33.createElement(ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
13124
13349
|
onClick: () => __async(void 0, null, function* () {
|
13125
13350
|
return yield leaveRoom();
|
13126
13351
|
}),
|
13127
13352
|
css: { p: "$8 $4" }
|
13128
13353
|
}
|
13129
13354
|
)
|
13130
|
-
), /* @__PURE__ */
|
13355
|
+
), /* @__PURE__ */ React33.createElement(
|
13131
13356
|
Dropdown.Item,
|
13132
13357
|
{
|
13133
13358
|
css: {
|
@@ -13138,14 +13363,14 @@ var DesktopLeaveRoom = ({
|
|
13138
13363
|
},
|
13139
13364
|
"data-testid": "end_room_btn"
|
13140
13365
|
},
|
13141
|
-
/* @__PURE__ */
|
13366
|
+
/* @__PURE__ */ React33.createElement(
|
13142
13367
|
LeaveCard,
|
13143
13368
|
{
|
13144
13369
|
title: showStream ? "End Stream" : "End Session",
|
13145
13370
|
subtitle: `The ${showStream ? "stream" : "session"} will end for everyone. You can't undo this action.`,
|
13146
13371
|
bg: "",
|
13147
13372
|
titleColor: "$alert_error_brighter",
|
13148
|
-
icon: /* @__PURE__ */
|
13373
|
+
icon: /* @__PURE__ */ React33.createElement(StopIcon, { height: 24, width: 24 }),
|
13149
13374
|
onClick: () => {
|
13150
13375
|
setOpen(false);
|
13151
13376
|
setShowEndStreamAlert(true);
|
@@ -13153,7 +13378,7 @@ var DesktopLeaveRoom = ({
|
|
13153
13378
|
css: { p: "$8 $4" }
|
13154
13379
|
}
|
13155
13380
|
)
|
13156
|
-
)))) : /* @__PURE__ */
|
13381
|
+
)))) : /* @__PURE__ */ React33.createElement(
|
13157
13382
|
LeaveIconButton,
|
13158
13383
|
{
|
13159
13384
|
onClick: () => {
|
@@ -13162,8 +13387,8 @@ var DesktopLeaveRoom = ({
|
|
13162
13387
|
key: "LeaveRoom",
|
13163
13388
|
"data-testid": "leave_room_btn"
|
13164
13389
|
},
|
13165
|
-
/* @__PURE__ */
|
13166
|
-
), /* @__PURE__ */
|
13390
|
+
/* @__PURE__ */ React33.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React33.createElement(Box, null, /* @__PURE__ */ React33.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
13391
|
+
), /* @__PURE__ */ React33.createElement(Dialog.Root, { open: showEndStreamAlert, modal: false }, /* @__PURE__ */ React33.createElement(Dialog.Portal, null, /* @__PURE__ */ React33.createElement(Dialog.Overlay, null), /* @__PURE__ */ React33.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React33.createElement(
|
13167
13392
|
EndSessionContent,
|
13168
13393
|
{
|
13169
13394
|
setShowEndStreamAlert,
|
@@ -13171,12 +13396,12 @@ var DesktopLeaveRoom = ({
|
|
13171
13396
|
isStreamingOn,
|
13172
13397
|
isModal: true
|
13173
13398
|
}
|
13174
|
-
)))), /* @__PURE__ */
|
13399
|
+
)))), /* @__PURE__ */ React33.createElement(Dialog.Root, { open: showLeaveRoomAlert, modal: false }, /* @__PURE__ */ React33.createElement(Dialog.Portal, null, /* @__PURE__ */ React33.createElement(Dialog.Overlay, null), /* @__PURE__ */ React33.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React33.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom, isModal: true })))));
|
13175
13400
|
};
|
13176
13401
|
|
13177
13402
|
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
13178
13403
|
init_define_process_env();
|
13179
|
-
import
|
13404
|
+
import React35, { Fragment as Fragment5, useState as useState9 } from "react";
|
13180
13405
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom3, selectPermissions as selectPermissions3, useHMSStore as useHMSStore9, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
|
13181
13406
|
import { ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
|
13182
13407
|
|
@@ -13185,7 +13410,7 @@ init_define_process_env();
|
|
13185
13410
|
|
13186
13411
|
// src/Sheet/Sheet.tsx
|
13187
13412
|
init_define_process_env();
|
13188
|
-
import
|
13413
|
+
import React34 from "react";
|
13189
13414
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
13190
13415
|
var SheetRoot = styled(DialogPrimitive2.Root, {
|
13191
13416
|
minHeight: "240px",
|
@@ -13259,10 +13484,10 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
13259
13484
|
side: "bottom"
|
13260
13485
|
}
|
13261
13486
|
});
|
13262
|
-
var SheetContent =
|
13487
|
+
var SheetContent = React34.forwardRef(
|
13263
13488
|
(_a8, forwardedRef) => {
|
13264
13489
|
var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
|
13265
|
-
return /* @__PURE__ */
|
13490
|
+
return /* @__PURE__ */ React34.createElement(Dialog.Portal, null, /* @__PURE__ */ React34.createElement(StyledOverlay, null), /* @__PURE__ */ React34.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
|
13266
13491
|
}
|
13267
13492
|
);
|
13268
13493
|
var SheetClose = Dialog.Close;
|
@@ -13287,9 +13512,9 @@ var MwebLeaveRoom = ({
|
|
13287
13512
|
screenType,
|
13288
13513
|
endRoom
|
13289
13514
|
}) => {
|
13290
|
-
const [open, setOpen] =
|
13291
|
-
const [showLeaveRoomAlert, setShowLeaveRoomAlert] =
|
13292
|
-
const [showEndStreamAlert, setShowEndStreamAlert] =
|
13515
|
+
const [open, setOpen] = useState9(false);
|
13516
|
+
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState9(false);
|
13517
|
+
const [showEndStreamAlert, setShowEndStreamAlert] = useState9(false);
|
13293
13518
|
const isConnected = useHMSStore9(selectIsConnectedToRoom3);
|
13294
13519
|
const permissions = useHMSStore9(selectPermissions3);
|
13295
13520
|
const { isStreamingOn } = useRecordingStreaming3();
|
@@ -13299,7 +13524,7 @@ var MwebLeaveRoom = ({
|
|
13299
13524
|
if (!permissions || !isConnected) {
|
13300
13525
|
return null;
|
13301
13526
|
}
|
13302
|
-
return /* @__PURE__ */
|
13527
|
+
return /* @__PURE__ */ React35.createElement(Fragment5, null, showLeaveOptions ? /* @__PURE__ */ React35.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React35.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React35.createElement(
|
13303
13528
|
LeaveIconButton,
|
13304
13529
|
{
|
13305
13530
|
key: "LeaveRoom",
|
@@ -13309,21 +13534,21 @@ var MwebLeaveRoom = ({
|
|
13309
13534
|
borderBottomRightRadius: "$1"
|
13310
13535
|
}
|
13311
13536
|
},
|
13312
|
-
/* @__PURE__ */
|
13313
|
-
)), /* @__PURE__ */
|
13537
|
+
/* @__PURE__ */ React35.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React35.createElement(Box, null, /* @__PURE__ */ React35.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
|
13538
|
+
)), /* @__PURE__ */ React35.createElement(Sheet.Content, null, /* @__PURE__ */ React35.createElement(
|
13314
13539
|
LeaveCard,
|
13315
13540
|
{
|
13316
13541
|
title: showStream ? "Leave Stream" : "Leave Session",
|
13317
13542
|
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
13318
13543
|
bg: "$surface_default",
|
13319
13544
|
titleColor: "$on_surface_high",
|
13320
|
-
icon: /* @__PURE__ */
|
13545
|
+
icon: /* @__PURE__ */ React35.createElement(ExitIcon2, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
13321
13546
|
onClick: () => __async(void 0, null, function* () {
|
13322
13547
|
return yield leaveRoom();
|
13323
13548
|
}),
|
13324
13549
|
css: { pt: 0, mt: "$10", color: "$on_surface_low", "&:hover": { color: "$on_surface_high" } }
|
13325
13550
|
}
|
13326
|
-
), /* @__PURE__ */
|
13551
|
+
), /* @__PURE__ */ React35.createElement(
|
13327
13552
|
LeaveCard,
|
13328
13553
|
{
|
13329
13554
|
title: showStream ? "End Stream" : "End Session",
|
@@ -13331,20 +13556,20 @@ var MwebLeaveRoom = ({
|
|
13331
13556
|
bg: "$alert_error_dim",
|
13332
13557
|
titleColor: "$alert_error_brighter",
|
13333
13558
|
css: { color: "$alert_error_bright", "&:hover": { color: "$alert_error_brighter" } },
|
13334
|
-
icon: /* @__PURE__ */
|
13559
|
+
icon: /* @__PURE__ */ React35.createElement(StopIcon2, { height: 24, width: 24 }),
|
13335
13560
|
onClick: () => {
|
13336
13561
|
setOpen(false);
|
13337
13562
|
setShowEndStreamAlert(true);
|
13338
13563
|
}
|
13339
13564
|
}
|
13340
|
-
))) : /* @__PURE__ */
|
13565
|
+
))) : /* @__PURE__ */ React35.createElement(LeaveIconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick: () => setShowLeaveRoomAlert(true) }, /* @__PURE__ */ React35.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React35.createElement(Box, null, /* @__PURE__ */ React35.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))), /* @__PURE__ */ React35.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React35.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React35.createElement(
|
13341
13566
|
EndSessionContent,
|
13342
13567
|
{
|
13343
13568
|
setShowEndStreamAlert,
|
13344
13569
|
leaveRoom: isStreamingOn ? leaveRoom : endRoom,
|
13345
13570
|
isStreamingOn
|
13346
13571
|
}
|
13347
|
-
))), /* @__PURE__ */
|
13572
|
+
))), /* @__PURE__ */ React35.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React35.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React35.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
|
13348
13573
|
};
|
13349
13574
|
|
13350
13575
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
@@ -13386,7 +13611,7 @@ var LeaveRoom = ({ screenType }) => {
|
|
13386
13611
|
if (!permissions || !isConnected) {
|
13387
13612
|
return null;
|
13388
13613
|
}
|
13389
|
-
return isMobile ? /* @__PURE__ */
|
13614
|
+
return isMobile ? /* @__PURE__ */ React36.createElement(MwebLeaveRoom, { leaveRoom, screenType, endRoom }) : /* @__PURE__ */ React36.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom });
|
13390
13615
|
};
|
13391
13616
|
|
13392
13617
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
@@ -13403,11 +13628,11 @@ import { BrbIcon, CheckIcon as CheckIcon4, HamburgerMenuIcon, InfoIcon as InfoIc
|
|
13403
13628
|
|
13404
13629
|
// src/Prebuilt/components/PIP/index.jsx
|
13405
13630
|
init_define_process_env();
|
13406
|
-
import
|
13631
|
+
import React38 from "react";
|
13407
13632
|
|
13408
13633
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
13409
13634
|
init_define_process_env();
|
13410
|
-
import
|
13635
|
+
import React37, { useCallback as useCallback7, useEffect as useEffect8, useState as useState10 } from "react";
|
13411
13636
|
import { selectPeers, selectTracksMap, useHMSActions as useHMSActions8, useHMSStore as useHMSStore11, useHMSVanillaStore as useHMSVanillaStore4 } from "@100mslive/react-sdk";
|
13412
13637
|
import { PipIcon } from "@100mslive/react-icons";
|
13413
13638
|
|
@@ -13866,10 +14091,10 @@ var MediaSession = new SetupMediaSession();
|
|
13866
14091
|
|
13867
14092
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
13868
14093
|
var PIPComponent = ({ content = null }) => {
|
13869
|
-
const [isPipOn, setIsPipOn] =
|
14094
|
+
const [isPipOn, setIsPipOn] = useState10(PictureInPicture.isOn());
|
13870
14095
|
const hmsActions = useHMSActions8();
|
13871
14096
|
const store = useHMSVanillaStore4();
|
13872
|
-
const onPipToggle =
|
14097
|
+
const onPipToggle = useCallback7(() => {
|
13873
14098
|
if (!isPipOn) {
|
13874
14099
|
PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
|
13875
14100
|
MediaSession.setup(hmsActions, store);
|
@@ -13880,13 +14105,13 @@ var PIPComponent = ({ content = null }) => {
|
|
13880
14105
|
if (!PictureInPicture.isSupported()) {
|
13881
14106
|
return null;
|
13882
14107
|
}
|
13883
|
-
return /* @__PURE__ */
|
14108
|
+
return /* @__PURE__ */ React37.createElement(React37.Fragment, null, content ? /* @__PURE__ */ React37.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React37.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React37.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React37.createElement(PipIcon, null))));
|
13884
14109
|
};
|
13885
14110
|
var ActivatedPIP = () => {
|
13886
14111
|
const tracksMap = useHMSStore11(selectTracksMap);
|
13887
14112
|
const storePeers = useHMSStore11(selectPeers);
|
13888
14113
|
const pinnedTrack = usePinnedTrack();
|
13889
|
-
|
14114
|
+
useEffect8(() => {
|
13890
14115
|
function updatePIP() {
|
13891
14116
|
if (!PictureInPicture.isOn()) {
|
13892
14117
|
return;
|
@@ -13902,13 +14127,13 @@ var ActivatedPIP = () => {
|
|
13902
14127
|
PictureInPicture.listenToStateChange(updatePIP);
|
13903
14128
|
updatePIP();
|
13904
14129
|
}, [storePeers, tracksMap, pinnedTrack]);
|
13905
|
-
return /* @__PURE__ */
|
14130
|
+
return /* @__PURE__ */ React37.createElement(React37.Fragment, null);
|
13906
14131
|
};
|
13907
14132
|
var PIPComponent_default = PIPComponent;
|
13908
14133
|
|
13909
14134
|
// src/Prebuilt/components/PIP/index.jsx
|
13910
14135
|
var PIP = ({ content = null }) => {
|
13911
|
-
return /* @__PURE__ */
|
14136
|
+
return /* @__PURE__ */ React38.createElement(PIPComponent_default, { content });
|
13912
14137
|
};
|
13913
14138
|
|
13914
14139
|
// src/Prebuilt/components/RoleChangeModal.jsx
|
@@ -13937,217 +14162,6 @@ import {
|
|
13937
14162
|
useHMSStore as useHMSStore12,
|
13938
14163
|
useHMSVanillaStore as useHMSVanillaStore5
|
13939
14164
|
} from "@100mslive/react-sdk";
|
13940
|
-
|
13941
|
-
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
13942
|
-
init_define_process_env();
|
13943
|
-
var import_lodash2 = __toESM(require_lodash());
|
13944
|
-
import React38 from "react";
|
13945
|
-
|
13946
|
-
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
13947
|
-
init_define_process_env();
|
13948
|
-
import { useCallback as useCallback7, useEffect as useEffect8, useRef as useRef5, useState as useState10 } from "react";
|
13949
|
-
|
13950
|
-
// src/Prebuilt/provider/roomLayoutProvider/constants/index.ts
|
13951
|
-
init_define_process_env();
|
13952
|
-
import { JoinForm_JoinBtnType } from "@100mslive/types-prebuilt/elements/join_form";
|
13953
|
-
var defaultLayout = {
|
13954
|
-
id: "",
|
13955
|
-
role_id: "",
|
13956
|
-
template_id: "",
|
13957
|
-
app_id: "",
|
13958
|
-
typography: {
|
13959
|
-
font_family: "Inter"
|
13960
|
-
},
|
13961
|
-
themes: [],
|
13962
|
-
options: {},
|
13963
|
-
screens: {
|
13964
|
-
preview: {
|
13965
|
-
default: {
|
13966
|
-
elements: {
|
13967
|
-
preview_header: {
|
13968
|
-
title: "Get Started",
|
13969
|
-
sub_title: "Setup your audio and video before joining"
|
13970
|
-
},
|
13971
|
-
join_form: {
|
13972
|
-
join_btn_type: JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_ONLY,
|
13973
|
-
join_btn_label: "Join Now",
|
13974
|
-
go_live_btn_label: "Go Live"
|
13975
|
-
}
|
13976
|
-
}
|
13977
|
-
}
|
13978
|
-
},
|
13979
|
-
conferencing: {
|
13980
|
-
default: {
|
13981
|
-
elements: {
|
13982
|
-
chat: {
|
13983
|
-
public_chat_enabled: true,
|
13984
|
-
private_chat_enabled: true,
|
13985
|
-
chat_title: "Chat",
|
13986
|
-
allow_pinning_messages: true,
|
13987
|
-
message_placeholder: "Send a message...",
|
13988
|
-
roles_whitelist: [],
|
13989
|
-
real_time_controls: {
|
13990
|
-
can_disable_chat: true,
|
13991
|
-
can_block_user: true,
|
13992
|
-
can_hide_message: true
|
13993
|
-
}
|
13994
|
-
},
|
13995
|
-
participant_list: {},
|
13996
|
-
video_tile_layout: {
|
13997
|
-
grid: {
|
13998
|
-
enable_local_tile_inset: true,
|
13999
|
-
prominent_roles: [],
|
14000
|
-
enable_spotlighting_peer: true
|
14001
|
-
}
|
14002
|
-
},
|
14003
|
-
emoji_reactions: {}
|
14004
|
-
}
|
14005
|
-
}
|
14006
|
-
},
|
14007
|
-
leave: {}
|
14008
|
-
}
|
14009
|
-
};
|
14010
|
-
|
14011
|
-
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
14012
|
-
var fetchWithRetry = (..._0) => __async(void 0, [..._0], function* (url = "", options = {}) {
|
14013
|
-
const MAX_RETRIES = 4;
|
14014
|
-
let error = Error("something went wrong");
|
14015
|
-
for (let i = 0; i < MAX_RETRIES; i++) {
|
14016
|
-
try {
|
14017
|
-
return yield fetch(url, options);
|
14018
|
-
} catch (err) {
|
14019
|
-
error = err;
|
14020
|
-
}
|
14021
|
-
}
|
14022
|
-
console.error("Fetch failed after max retries", { url, options });
|
14023
|
-
throw error;
|
14024
|
-
});
|
14025
|
-
var useFetchRoomLayout = ({
|
14026
|
-
endpoint = "",
|
14027
|
-
authToken = ""
|
14028
|
-
}) => {
|
14029
|
-
const [layout, setLayout] = useState10(void 0);
|
14030
|
-
const layoutResp = useRef5();
|
14031
|
-
const isFetchInProgress = useRef5(false);
|
14032
|
-
const updateRoomLayoutForRole = useCallback7((role) => {
|
14033
|
-
var _a8;
|
14034
|
-
if (!layoutResp.current) {
|
14035
|
-
return;
|
14036
|
-
}
|
14037
|
-
const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
|
14038
|
-
if (layout2) {
|
14039
|
-
setLayout(layout2);
|
14040
|
-
}
|
14041
|
-
}, []);
|
14042
|
-
useEffect8(() => {
|
14043
|
-
(() => __async(void 0, null, function* () {
|
14044
|
-
var _a8, _b7;
|
14045
|
-
if (isFetchInProgress.current || !authToken) {
|
14046
|
-
return;
|
14047
|
-
}
|
14048
|
-
isFetchInProgress.current = true;
|
14049
|
-
try {
|
14050
|
-
const resp = yield fetchWithRetry(endpoint || "https://api.100ms.live/v2/layouts/ui", {
|
14051
|
-
headers: {
|
14052
|
-
Authorization: `Bearer ${authToken}`
|
14053
|
-
}
|
14054
|
-
});
|
14055
|
-
layoutResp.current = yield resp.json();
|
14056
|
-
} catch (e) {
|
14057
|
-
console.error("[Room Layout API]: Failed to fetch / process room layout. Resorting to default layout.", e);
|
14058
|
-
layoutResp.current = {
|
14059
|
-
data: [defaultLayout]
|
14060
|
-
};
|
14061
|
-
}
|
14062
|
-
let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
|
14063
|
-
if (!layoutForRole) {
|
14064
|
-
console.error(
|
14065
|
-
"[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
|
14066
|
-
);
|
14067
|
-
layoutForRole = defaultLayout;
|
14068
|
-
}
|
14069
|
-
const layout2 = layoutForRole;
|
14070
|
-
setLayout(layout2);
|
14071
|
-
isFetchInProgress.current = false;
|
14072
|
-
}))();
|
14073
|
-
}, [authToken, endpoint]);
|
14074
|
-
return { layout, updateRoomLayoutForRole };
|
14075
|
-
};
|
14076
|
-
|
14077
|
-
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
14078
|
-
var RoomLayoutContext = React38.createContext(void 0);
|
14079
|
-
function customizer(objValue, srcValue) {
|
14080
|
-
if ((0, import_lodash2.isArray)(objValue) || (0, import_lodash2.isArray)(srcValue)) {
|
14081
|
-
return srcValue;
|
14082
|
-
}
|
14083
|
-
return void 0;
|
14084
|
-
}
|
14085
|
-
var RoomLayoutProvider = ({
|
14086
|
-
children,
|
14087
|
-
roomLayoutEndpoint,
|
14088
|
-
overrideLayout
|
14089
|
-
}) => {
|
14090
|
-
const authToken = useAuthToken();
|
14091
|
-
const { layout, updateRoomLayoutForRole } = useFetchRoomLayout({ authToken, endpoint: roomLayoutEndpoint });
|
14092
|
-
const mergedLayout = authToken && layout ? (0, import_lodash2.mergeWith)(layout, overrideLayout, customizer) : layout;
|
14093
|
-
return /* @__PURE__ */ React38.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole } }, children);
|
14094
|
-
};
|
14095
|
-
var useRoomLayout = () => {
|
14096
|
-
var _a8;
|
14097
|
-
return (_a8 = React38.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
|
14098
|
-
};
|
14099
|
-
var useUpdateRoomLayout = () => {
|
14100
|
-
var _a8;
|
14101
|
-
return (_a8 = React38.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
|
14102
|
-
};
|
14103
|
-
|
14104
|
-
// src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts
|
14105
|
-
init_define_process_env();
|
14106
|
-
function useRoomLayoutScreen({
|
14107
|
-
screen
|
14108
|
-
}) {
|
14109
|
-
var _a8;
|
14110
|
-
const roomLayout = useRoomLayout();
|
14111
|
-
const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
|
14112
|
-
return screenProps;
|
14113
|
-
}
|
14114
|
-
function useRoomLayoutPreviewScreen() {
|
14115
|
-
var _a8;
|
14116
|
-
const screenProps = useRoomLayoutScreen({ screen: "preview" });
|
14117
|
-
const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
|
14118
|
-
let elements;
|
14119
|
-
let screenType;
|
14120
|
-
if (isPreviewScreenEnabled) {
|
14121
|
-
screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
|
14122
|
-
elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
14123
|
-
}
|
14124
|
-
return {
|
14125
|
-
isPreviewScreenEnabled,
|
14126
|
-
elements,
|
14127
|
-
screenType
|
14128
|
-
};
|
14129
|
-
}
|
14130
|
-
function useRoomLayoutConferencingScreen() {
|
14131
|
-
var _a8, _b7;
|
14132
|
-
const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
|
14133
|
-
const screenType = Object.keys(screenProps)[0];
|
14134
|
-
const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
14135
|
-
const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
|
14136
|
-
return {
|
14137
|
-
hideSections,
|
14138
|
-
elements,
|
14139
|
-
screenType
|
14140
|
-
};
|
14141
|
-
}
|
14142
|
-
function useRoomLayoutLeaveScreen() {
|
14143
|
-
const screenProps = useRoomLayoutScreen({ screen: "leave" });
|
14144
|
-
const isLeaveScreenEnabled = !!screenProps;
|
14145
|
-
return {
|
14146
|
-
isLeaveScreenEnabled
|
14147
|
-
};
|
14148
|
-
}
|
14149
|
-
|
14150
|
-
// src/Prebuilt/common/hooks.ts
|
14151
14165
|
var useFilteredRoles = () => {
|
14152
14166
|
var _a8;
|
14153
14167
|
const { elements } = useRoomLayoutConferencingScreen();
|
@@ -18028,7 +18042,7 @@ var Qi = (a2, e) => {
|
|
18028
18042
|
};
|
18029
18043
|
var ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18030
18044
|
var nr = ya((Qc, Va) => {
|
18031
|
-
Va.exports = { version: "0.11.6-alpha.
|
18045
|
+
Va.exports = { version: "0.11.6-alpha.3", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
18032
18046
|
});
|
18033
18047
|
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 || {});
|
18034
18048
|
var Pa = ((e) => (e.CHAT = "chat", e))(Pa || {});
|
@@ -21545,6 +21559,7 @@ import React81, { useEffect as useEffect19, useMemo as useMemo4, useRef as useRe
|
|
21545
21559
|
import {
|
21546
21560
|
selectLocalPeerRoleName,
|
21547
21561
|
selectPermissions as selectPermissions12,
|
21562
|
+
selectPolls as selectPolls2,
|
21548
21563
|
useHMSActions as useHMSActions25,
|
21549
21564
|
useHMSStore as useHMSStore36
|
21550
21565
|
} from "@100mslive/react-sdk";
|
@@ -21740,7 +21755,7 @@ var AddMenu = () => {
|
|
21740
21755
|
onClick: () => setInteractionType("Quiz" /* QUIZ */),
|
21741
21756
|
active: interactionType === "Quiz" /* QUIZ */
|
21742
21757
|
}
|
21743
|
-
)), /* @__PURE__ */ React81.createElement(Flex, { direction: "column" }, /* @__PURE__ */ React81.createElement(Text, { variant: "body2", css: { mb: "$4" } }, `Name this ${interactionType.toLowerCase()}`), /* @__PURE__ */ React81.createElement(
|
21758
|
+
)), /* @__PURE__ */ React81.createElement(Flex, { direction: "column", css: { mb: "$10" } }, /* @__PURE__ */ React81.createElement(Text, { variant: "body2", css: { mb: "$4" } }, `Name this ${interactionType.toLowerCase()}`), /* @__PURE__ */ React81.createElement(
|
21744
21759
|
Input,
|
21745
21760
|
{
|
21746
21761
|
ref: inputRef,
|
@@ -21777,33 +21792,24 @@ var AddMenu = () => {
|
|
21777
21792
|
};
|
21778
21793
|
var PrevMenu = () => {
|
21779
21794
|
const hmsActions = useHMSActions25();
|
21780
|
-
const
|
21795
|
+
const polls = useHMSStore36(selectPolls2);
|
21796
|
+
const permissions = useHMSStore36(selectPermissions12);
|
21781
21797
|
useEffect19(() => {
|
21782
|
-
const listPolls = () => __async(void 0, null, function* () {
|
21783
|
-
var _a8;
|
21784
|
-
const polls2 = yield hmsActions.interactivityCenter.getPolls();
|
21785
|
-
const sortedPolls = yield (_a8 = polls2 == null ? void 0 : polls2.sort((a2, b) => {
|
21786
|
-
var _a9, _b7;
|
21787
|
-
return (((_a9 = b.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
|
21788
|
-
})) == null ? void 0 : _a8.sort((a2, b) => (b.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
|
21789
|
-
return sortedPolls;
|
21790
|
-
});
|
21791
21798
|
const updatePolls = () => __async(void 0, null, function* () {
|
21792
|
-
|
21793
|
-
setPolls(sortedPolls);
|
21799
|
+
yield hmsActions.interactivityCenter.getPolls();
|
21794
21800
|
});
|
21795
21801
|
updatePolls();
|
21796
21802
|
}, [hmsActions.interactivityCenter]);
|
21797
21803
|
return (polls == null ? void 0 : polls.length) ? /* @__PURE__ */ React81.createElement(
|
21798
21804
|
Flex,
|
21799
21805
|
{
|
21800
|
-
|
21801
|
-
|
21802
|
-
|
21803
|
-
|
21804
|
-
}
|
21806
|
+
direction: "column",
|
21807
|
+
css: __spreadValues({
|
21808
|
+
width: "100%"
|
21809
|
+
}, (permissions == null ? void 0 : permissions.pollWrite) ? { borderTop: "$space$px solid $border_bright", paddingTop: "$10" } : {})
|
21805
21810
|
},
|
21806
|
-
/* @__PURE__ */ React81.createElement(
|
21811
|
+
/* @__PURE__ */ React81.createElement(Text, { variant: "h6", css: { c: "$on_surface_high" } }, "Previous Polls and Quizzes"),
|
21812
|
+
/* @__PURE__ */ React81.createElement(Flex, { direction: "column", css: { gap: "$10", mt: "$8" } }, polls == null ? void 0 : polls.map((poll) => /* @__PURE__ */ React81.createElement(InteractionCard, { key: poll.id, id: poll.id, title: poll.title, status: poll.state })))
|
21807
21813
|
) : null;
|
21808
21814
|
};
|
21809
21815
|
var InteractionCard = ({ id, title, status }) => {
|
@@ -22496,7 +22502,7 @@ var LeaderboardEntry = ({
|
|
22496
22502
|
}
|
22497
22503
|
},
|
22498
22504
|
position
|
22499
|
-
), /* @__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, questionCount ? /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(CheckCircleIcon4, { height: 16, width: 16 }), /* @__PURE__ */ React92.createElement(Text, { variant: "xs" }, correctResponses, "/", questionCount)) : null, duration ? /* @__PURE__ */ React92.createElement(Flex, { align: "center", css: { gap: "$2", color: "$on_surface_medium" } }, /* @__PURE__ */ React92.createElement(ClockIcon, { height: 16, width: 16 }), /* @__PURE__ */ React92.createElement(Text, { variant: "xs" }, getFormattedTime(duration))) : null));
|
22505
|
+
), /* @__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 && score ? /* @__PURE__ */ React92.createElement(TrophyFilledIcon, { height: 16, width: 16 }) : null, questionCount ? /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(CheckCircleIcon4, { height: 16, width: 16 }), /* @__PURE__ */ React92.createElement(Text, { variant: "xs" }, correctResponses, "/", questionCount)) : null, duration ? /* @__PURE__ */ React92.createElement(Flex, { align: "center", css: { gap: "$2", color: "$on_surface_medium" } }, /* @__PURE__ */ React92.createElement(ClockIcon, { height: 16, width: 16 }), /* @__PURE__ */ React92.createElement(Text, { variant: "xs" }, getFormattedTime(duration))) : null));
|
22500
22506
|
};
|
22501
22507
|
|
22502
22508
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
@@ -25732,7 +25738,7 @@ var defaultMedia2 = [
|
|
25732
25738
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
25733
25739
|
var iconDims = { height: "40px", width: "40px" };
|
25734
25740
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
25735
|
-
var _a8
|
25741
|
+
var _a8;
|
25736
25742
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
25737
25743
|
const hmsActions = useHMSActions40();
|
25738
25744
|
const localPeer = useHMSStore61(selectLocalPeer6);
|
@@ -25747,9 +25753,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25747
25753
|
const isEffectsEnabled = useHMSStore61(Yn);
|
25748
25754
|
const effectsKey = useHMSStore61(Xn);
|
25749
25755
|
const isPluginAdded = useHMSStore61(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
25750
|
-
const
|
25751
|
-
((_b7 = VBHandler) == null ? void 0 : _b7.getBackground()) || HMSVirtualBackgroundTypes3.NONE
|
25752
|
-
);
|
25756
|
+
const background = useHMSStore61(zh(APP_DATA.background));
|
25753
25757
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
25754
25758
|
const inPreview = roomState === HMSRoomState4.Preview;
|
25755
25759
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -25771,8 +25775,22 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25771
25775
|
hmsActions.addPluginToVideoTrack(vbObject, Math.floor(role.publishParams.video.frameRate / 2));
|
25772
25776
|
}
|
25773
25777
|
}
|
25778
|
+
const handleDefaultBackground = () => __async(void 0, null, function* () {
|
25779
|
+
switch (background) {
|
25780
|
+
case HMSVirtualBackgroundTypes3.NONE: {
|
25781
|
+
break;
|
25782
|
+
}
|
25783
|
+
case HMSVirtualBackgroundTypes3.BLUR: {
|
25784
|
+
yield VBHandler.setBlur(blurAmount);
|
25785
|
+
break;
|
25786
|
+
}
|
25787
|
+
default:
|
25788
|
+
yield VBHandler.setBackground(background);
|
25789
|
+
}
|
25790
|
+
});
|
25791
|
+
handleDefaultBackground();
|
25774
25792
|
}
|
25775
|
-
}, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey, track == null ? void 0 : track.id]);
|
25793
|
+
}, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey, track == null ? void 0 : track.id, background, blurAmount]);
|
25776
25794
|
useEffect28(() => {
|
25777
25795
|
if (!isVideoOn) {
|
25778
25796
|
toggleVB();
|
@@ -25815,7 +25833,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25815
25833
|
value: HMSVirtualBackgroundTypes3.NONE,
|
25816
25834
|
onClick: () => __async(void 0, null, function* () {
|
25817
25835
|
yield VBHandler.removeEffects();
|
25818
|
-
|
25836
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.NONE);
|
25819
25837
|
})
|
25820
25838
|
},
|
25821
25839
|
{
|
@@ -25825,14 +25843,14 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25825
25843
|
onClick: () => __async(void 0, null, function* () {
|
25826
25844
|
var _a9;
|
25827
25845
|
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
|
25828
|
-
|
25846
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.BLUR);
|
25829
25847
|
})
|
25830
25848
|
}
|
25831
25849
|
],
|
25832
|
-
activeBackground
|
25850
|
+
activeBackground: background
|
25833
25851
|
}
|
25834
25852
|
),
|
25835
|
-
/* @__PURE__ */ React122.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } },
|
25853
|
+
/* @__PURE__ */ React122.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React122.createElement(Box, null, /* @__PURE__ */ React122.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React122.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React122.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React122.createElement(
|
25836
25854
|
Slider,
|
25837
25855
|
{
|
25838
25856
|
showTooltip: false,
|
@@ -25856,10 +25874,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25856
25874
|
onClick: () => __async(void 0, null, function* () {
|
25857
25875
|
var _a9;
|
25858
25876
|
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
|
25859
|
-
|
25877
|
+
hmsActions.setAppData(APP_DATA.background, mediaURL);
|
25860
25878
|
})
|
25861
25879
|
})),
|
25862
|
-
activeBackground
|
25880
|
+
activeBackground: background
|
25863
25881
|
}
|
25864
25882
|
)
|
25865
25883
|
));
|
@@ -27770,7 +27788,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
27770
27788
|
};
|
27771
27789
|
|
27772
27790
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
27773
|
-
var HLSView = React148.lazy(() => import("./HLSView-
|
27791
|
+
var HLSView = React148.lazy(() => import("./HLSView-7QXLQ4KD.js"));
|
27774
27792
|
var VideoStreamingSection = ({
|
27775
27793
|
screenType,
|
27776
27794
|
elements,
|
@@ -29697,14 +29715,13 @@ var HMSPrebuilt = React171.forwardRef(
|
|
29697
29715
|
}
|
29698
29716
|
ref.current = __spreadValues({}, reactiveStore.current);
|
29699
29717
|
}, [ref]);
|
29700
|
-
useEffect66(
|
29701
|
-
|
29718
|
+
useEffect66(() => {
|
29719
|
+
return () => {
|
29702
29720
|
var _a9;
|
29703
29721
|
VBHandler.reset();
|
29704
29722
|
(_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
|
29705
|
-
}
|
29706
|
-
|
29707
|
-
);
|
29723
|
+
};
|
29724
|
+
}, []);
|
29708
29725
|
const endpointsObj = endpoints;
|
29709
29726
|
const tokenByRoomCodeEndpoint = (endpointsObj == null ? void 0 : endpointsObj.tokenByRoomCode) || "";
|
29710
29727
|
const initEndpoint = (endpointsObj == null ? void 0 : endpointsObj.init) || "";
|
@@ -29775,7 +29792,6 @@ var HMSPrebuilt = React171.forwardRef(
|
|
29775
29792
|
}
|
29776
29793
|
}
|
29777
29794
|
},
|
29778
|
-
/* @__PURE__ */ React171.createElement(AppData, null),
|
29779
29795
|
/* @__PURE__ */ React171.createElement(Init, null),
|
29780
29796
|
/* @__PURE__ */ React171.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React171.createElement(
|
29781
29797
|
Box,
|
@@ -29838,7 +29854,7 @@ function AppRoutes({
|
|
29838
29854
|
const roomLayout = useRoomLayout();
|
29839
29855
|
const isNotificationsDisabled = useIsNotificationDisabled();
|
29840
29856
|
const { activeState, rejoin } = useAppStateManager();
|
29841
|
-
return /* @__PURE__ */ React171.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React171.createElement(React171.Fragment, null, /* @__PURE__ */ React171.createElement(ToastContainer, null), /* @__PURE__ */ React171.createElement(Notifications, null), /* @__PURE__ */ React171.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React171.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React171.createElement(FlyingEmoji, null), /* @__PURE__ */ React171.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React171.createElement(KeyboardHandler, null), /* @__PURE__ */ React171.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React171.createElement(AppStates, { activeState })));
|
29857
|
+
return /* @__PURE__ */ React171.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React171.createElement(React171.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React171.createElement(AppData, null), /* @__PURE__ */ React171.createElement(ToastContainer, null), /* @__PURE__ */ React171.createElement(Notifications, null), /* @__PURE__ */ React171.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React171.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React171.createElement(FlyingEmoji, null), /* @__PURE__ */ React171.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React171.createElement(KeyboardHandler, null), /* @__PURE__ */ React171.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React171.createElement(AppStates, { activeState })));
|
29842
29858
|
}
|
29843
29859
|
|
29844
29860
|
// src/Progress/index.tsx
|
@@ -29979,4 +29995,4 @@ lodash/lodash.js:
|
|
29979
29995
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
29980
29996
|
*)
|
29981
29997
|
*/
|
29982
|
-
//# sourceMappingURL=chunk-
|
29998
|
+
//# sourceMappingURL=chunk-ZJU5GUBY.js.map
|