@100mslive/roomkit-react 0.2.1 → 0.2.2-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/{HLSView-U7FQ2YLK.js → HLSView-2DSOSSTP.js} +19 -4
  2. package/dist/HLSView-2DSOSSTP.js.map +7 -0
  3. package/dist/Prebuilt/components/Polls/Voting/LeaderboardEntry.d.ts +2 -1
  4. package/dist/Prebuilt/components/RoleChangeRequest/RequestPrompt.d.ts +2 -1
  5. package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
  6. package/dist/{chunk-GNQAOG73.js → chunk-XXVJPGLN.js} +203 -185
  7. package/dist/{chunk-GNQAOG73.js.map → chunk-XXVJPGLN.js.map} +3 -3
  8. package/dist/index.cjs.js +161 -125
  9. package/dist/index.cjs.js.map +3 -3
  10. package/dist/index.js +1 -1
  11. package/dist/meta.cjs.json +41 -41
  12. package/dist/meta.esbuild.json +51 -51
  13. package/package.json +6 -6
  14. package/src/Button/Button.tsx +2 -2
  15. package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +8 -1
  16. package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +17 -5
  17. package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +1 -0
  18. package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +4 -2
  19. package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +38 -81
  20. package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +0 -1
  21. package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +2 -3
  22. package/src/Prebuilt/components/Polls/Voting/Voting.tsx +7 -6
  23. package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -2
  24. package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +6 -4
  25. package/src/Prebuilt/components/Polls/common/StatusIndicator.tsx +1 -1
  26. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -14
  27. package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +15 -5
  28. package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +3 -0
  29. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +11 -1
  30. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +16 -2
  31. package/src/Prebuilt/layouts/HLSView.jsx +16 -1
  32. package/src/Sheet/Sheet.tsx +1 -1
  33. package/dist/HLSView-U7FQ2YLK.js.map +0 -7
  34. package/src/Prebuilt/images/first_person.png +0 -0
package/dist/index.cjs.js CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
108
108
  var define_process_env_default;
109
109
  var init_define_process_env = __esm({
110
110
  "<define:process.env>"() {
111
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", 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.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "587", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.12/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.5/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240116.3.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18220", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.1", 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: "7581386761", 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: "d059b6f9ea6851f26271332df4cf83c9a4f3d567", 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: "563fa88ae30f556184862c3ef699a9d8b58e6a1cf7ef09a45333c2a07bd3dc27", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1705653583868-0.30605188987079:/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--1705653583674-0.13111361219514506:/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--1705653561343-0.18765335287556817:/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--1705653561165-0.44274391677102254:/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_b56e162d-8a5e-4ec3-b372-3cd8b0948b9b", INVOCATION_ID: "d9e6c2c528bc459ea085ea3128591820", 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: "413", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 2", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.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: "d059b6f9ea6851f26271332df4cf83c9a4f3d567", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", 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_5bb1b49a-a892-4389-be0a-e6c1ac4d9278" };
111
+ define_process_env_default = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v18.17.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks/examples", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.9.2-alpha.1", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.85.2", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "5ae2b03f99bf4f7347dfd5bab16cb044171630b20401470f0d812433897e1e66", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.5lUeYdLBIu/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1706003783370-0.9091307619001878:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1706003782937-0.9887605197130553:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1706003761639-0.43454174562021053:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build","--no-private"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1706003783370-0.9091307619001878/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.9.2-alpha.1", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.2-alpha.1", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.2.2-alpha.1", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.2.2-alpha.1", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-4dbfa2fdda.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
112
112
  }
113
113
  });
114
114
 
@@ -912,8 +912,8 @@ var init_Button = __esm({
912
912
  "$secondary_bright",
913
913
  "$secondary_dim",
914
914
  "$secondary_disabled",
915
- "$on_surface_high",
916
- "$on_surface_low"
915
+ "$on_secondary_high",
916
+ "$on_secondary_low"
917
917
  ),
918
918
  danger: getButtonVariants(
919
919
  "$alert_error_default",
@@ -5138,7 +5138,7 @@ var init_Sheet = __esm({
5138
5138
  borderTopRightRadius: "$3",
5139
5139
  boxShadow: "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)",
5140
5140
  position: "fixed",
5141
- zIndex: 1001,
5141
+ zIndex: 22,
5142
5142
  top: 0,
5143
5143
  right: 0,
5144
5144
  left: 0,
@@ -18268,7 +18268,7 @@ function qh(a2) {
18268
18268
  return a2 ? e.sessionStore[a2] : e.sessionStore;
18269
18269
  };
18270
18270
  }
18271
- var import_ua_parser_js, import_uuid3, import_uuid4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Ht, import_eventemitter24, import_uuid9, import_uuid10, ga, Ta, fa, Ot, Fr, Gr, Br, m, y, Qi, ya, nr, zi, ka, $r, Yi, Wr, U, Ea, yn, kn, G, Bt, jr, w, Xi, Aa, ye, An, ba, ae, Ra, Q, ue, bn, Rn, Z, K, Ha, Qr, Hn, In, er, Ia, Ln, wn, Dn, _n, Nn, On, xn, Un, rt, Ca, Vn, z, Yr, Bn, oe, Fn, Ft, La, Xr, Gn, Zr, $n, Wn, Kn, qn, jn, Jn, Qn, zn, es, ec, wa, tc, is, tr, rs, ss, as, os, ns, cs, ds, ls, us, Da, d, pe, N, ps, Ie, Na, dc, hs, ms, gs, Ue, v, T, xa, h, sr, Ts, ne, fs, Ms, ys, H, M, dr, q, lr, ur, As, bs, pr, Cs, hr, Ls, mr, Sr, _s, Ns, qe, ht, k, Ar, mt, Gs, ao, oo, j, br, no, co, lo, uo, po, J, Kh, Jh, si, $s, Qh, zh, Yh, ho, mo, Zh, Ws, em, So, tm, im, rm, sm, am, om, Ks, qs, cm, dm, js, lm, um, Js, pm, hm, mm, Qs, zs, go, To, fo, Sm, gm, Tm, fm, vm, Ys, Cm, vo, Lm, wm, Dm, yo, ko, Lr, fe, $, xi, Ki, Go, $o, Wo, Ko, ma, qo, Sa, xr, Me, jo, Jo, Qo, zo, Yo, Xo, Zo, en, tn, rn, Ur, sn, an, on, nn, cn, dn;
18271
+ var import_ua_parser_js, import_uuid3, import_uuid4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Ht, import_eventemitter24, import_uuid9, import_uuid10, ga, Ta, fa, Ot, Fr, Gr, Br, m, k, Qi, ya, nr, zi, ka, $r, Yi, Wr, U, Ea, yn, kn, G, Bt, jr, w, Xi, Aa, ye, An, ba, ae, Ra, Q, ue, bn, Rn, Z, K, Ha, Qr, Hn, In, er, Ia, Ln, wn, Dn, _n, Nn, On, xn, Un, rt, Ca, Vn, z, Yr, Bn, oe, Fn, Ft, La, Xr, Gn, Zr, $n, Wn, Kn, qn, jn, Jn, Qn, zn, es, ec, wa, tc, is, tr, rs, ss, as, os, ns, cs, ds, ls, us, Da, d, pe, N, ps, Ie, Na, dc, hs, ms, gs, Ue, v, T, xa, h, sr, Ts, ne, fs, Ms, ys, H, M, dr, q, lr, ur, As, bs, pr, Cs, hr, Ls, mr, Sr, _s, Ns, qe, ht, y, Ar, mt, Gs, ao, oo, j, br, no, co, lo, uo, po, J, Kh, Jh, si, $s, Qh, zh, Yh, ho, mo, Zh, Ws, em, So, tm, im, rm, sm, am, om, Ks, qs, cm, dm, js, lm, um, Js, pm, hm, mm, Qs, zs, go, To, fo, Sm, gm, Tm, fm, vm, Ys, Cm, vo, Lm, wm, Dm, yo, ko, Lr, fe, $, xi, Ki, Go, $o, Wo, Ko, ma, qo, Sa, xr, Me, jo, Jo, Qo, zo, Yo, Xo, Zo, en, tn, rn, Ur, sn, an, on, nn, cn, dn;
18272
18272
  var init_dist = __esm({
18273
18273
  "../hms-video-store/dist/index.js"() {
18274
18274
  "use strict";
@@ -18309,7 +18309,7 @@ var init_dist = __esm({
18309
18309
  Gr.call(e, t) && Br(a2, t, e[t]);
18310
18310
  return a2;
18311
18311
  };
18312
- y = (a2, e) => Ta(a2, fa(e));
18312
+ k = (a2, e) => Ta(a2, fa(e));
18313
18313
  Qi = (a2, e) => {
18314
18314
  var t = {};
18315
18315
  for (var i in a2)
@@ -18321,7 +18321,7 @@ var init_dist = __esm({
18321
18321
  };
18322
18322
  ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18323
18323
  nr = ya((jc, Va) => {
18324
- Va.exports = { version: "0.11.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18324
+ Va.exports = { version: "0.11.2-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18325
18325
  });
18326
18326
  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 || {});
18327
18327
  ka = ((e) => (e.CHAT = "chat", e))(ka || {});
@@ -18751,12 +18751,12 @@ var init_dist = __esm({
18751
18751
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = fs();
18752
18752
  }
18753
18753
  toSignalParams() {
18754
- return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: Ue }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18754
+ return { name: this.name, info: k(m({}, this.properties), { timestamp: this.timestamp, domain: Ue }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18755
18755
  }
18756
18756
  };
18757
18757
  M = class {
18758
18758
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
18759
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(y(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
18759
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(k(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
18760
18760
  return new H({ name: o, level: n, properties: l });
18761
18761
  }
18762
18762
  static disconnect(e, t) {
@@ -18770,7 +18770,7 @@ var init_dist = __esm({
18770
18770
  }
18771
18771
  static join(i) {
18772
18772
  var r = i, { error: e } = r, t = Qi(r, ["error"]);
18773
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
18773
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(k(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
18774
18774
  return new H({ name: s, level: o, properties: n });
18775
18775
  }
18776
18776
  static publish({ devices: e, settings: t, error: i }) {
@@ -18813,7 +18813,7 @@ var init_dist = __esm({
18813
18813
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
18814
18814
  if (!t && e.degradedAt instanceof Date) {
18815
18815
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
18816
- s = y(m({}, s), { duration: n, restoredAt: o });
18816
+ s = k(m({}, s), { duration: n, restoredAt: o });
18817
18817
  }
18818
18818
  return new H({ name: i, level: r, properties: s });
18819
18819
  }
@@ -18945,7 +18945,7 @@ var init_dist = __esm({
18945
18945
  };
18946
18946
  qe.makePeerId = () => (0, import_uuid7.v4)();
18947
18947
  ht = "HMS-Store:";
18948
- k = class {
18948
+ y = class {
18949
18949
  static v(e, ...t) {
18950
18950
  this.log(0, e, ...t);
18951
18951
  }
@@ -19010,7 +19010,7 @@ var init_dist = __esm({
19010
19010
  }
19011
19011
  }
19012
19012
  };
19013
- k.level = 0;
19013
+ y.level = 0;
19014
19014
  Ar = (a2, e) => e;
19015
19015
  mt = (a2, e) => e;
19016
19016
  Gs = (a2, e) => e;
@@ -19133,7 +19133,7 @@ var init_dist = __esm({
19133
19133
  let t = br(a2, e);
19134
19134
  if (t) {
19135
19135
  if (t.type !== "audio") {
19136
- k.w("Please pass audio track here");
19136
+ y.w("Please pass audio track here");
19137
19137
  return;
19138
19138
  }
19139
19139
  return t.volume;
@@ -19151,7 +19151,7 @@ var init_dist = __esm({
19151
19151
  let t = br(a2, e);
19152
19152
  if (t) {
19153
19153
  if (t.type !== "video") {
19154
- k.w("Please pass video track here");
19154
+ y.w("Please pass video track here");
19155
19155
  return;
19156
19156
  }
19157
19157
  return t.layer;
@@ -22072,7 +22072,7 @@ var init_StatusIndicator = __esm({
22072
22072
  variant: "caption",
22073
22073
  css: {
22074
22074
  fontWeight: "$semiBold",
22075
- color: "$on_surface_high"
22075
+ color: "$on_primary_high"
22076
22076
  }
22077
22077
  },
22078
22078
  isLive ? "LIVE" : "ENDED"
@@ -22412,7 +22412,6 @@ var init_MultipleChoiceOptions = __esm({
22412
22412
  questionIndex,
22413
22413
  options,
22414
22414
  canRespond,
22415
- response,
22416
22415
  totalResponses,
22417
22416
  selectedOptions,
22418
22417
  setSelectedOptions,
@@ -22438,7 +22437,7 @@ var init_MultipleChoiceOptions = __esm({
22438
22437
  {
22439
22438
  id: `${questionIndex}-${option.index}`,
22440
22439
  disabled: !canRespond,
22441
- checked: (_a8 = response == null ? void 0 : response.options) == null ? void 0 : _a8.includes(option.index),
22440
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
22442
22441
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
22443
22442
  css: {
22444
22443
  cursor: canRespond ? "pointer" : "not-allowed"
@@ -22490,7 +22489,6 @@ var init_SingleChoiceOptions = __esm({
22490
22489
  SingleChoiceOptions = ({
22491
22490
  questionIndex,
22492
22491
  options,
22493
- response,
22494
22492
  canRespond,
22495
22493
  setAnswer,
22496
22494
  totalResponses,
@@ -22498,9 +22496,10 @@ var init_SingleChoiceOptions = __esm({
22498
22496
  correctOptionIndex,
22499
22497
  isStopped,
22500
22498
  isQuiz,
22501
- localPeerResponse
22499
+ localPeerResponse,
22500
+ answer
22502
22501
  }) => {
22503
- return /* @__PURE__ */ import_react105.default.createElement(RadioGroup.Root, { value: response == null ? void 0 : response.option, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ import_react105.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
22502
+ return /* @__PURE__ */ import_react105.default.createElement(RadioGroup.Root, { value: answer || null, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ import_react105.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
22504
22503
  return /* @__PURE__ */ import_react105.default.createElement(Flex, { align: "start", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$5" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react105.default.createElement(
22505
22504
  RadioGroup.Item,
22506
22505
  {
@@ -22534,7 +22533,7 @@ var init_SingleChoiceOptions = __esm({
22534
22533
  }
22535
22534
  }
22536
22535
  )
22537
- ) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ import_react105.default.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react105.default.createElement(import_react_icons51.CheckCircleIcon, null)) : null, /* @__PURE__ */ import_react105.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react105.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react105.default.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ import_react105.default.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ import_react105.default.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ import_react105.default.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.option) === option.index ? /* @__PURE__ */ import_react105.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
22536
+ ) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ import_react105.default.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react105.default.createElement(import_react_icons51.CheckCircleIcon, null)) : null, /* @__PURE__ */ import_react105.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react105.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react105.default.createElement(Text, { css: { display: "flex", flexGrow: "1", color: "$on_surface_high" } }, /* @__PURE__ */ import_react105.default.createElement(Label3, { style: { color: "inherit" }, htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ import_react105.default.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ import_react105.default.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.option) === option.index ? /* @__PURE__ */ import_react105.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
22538
22537
  })));
22539
22538
  };
22540
22539
  SingleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
@@ -22998,7 +22997,8 @@ var init_LeaderboardEntry = __esm({
22998
22997
  questionCount,
22999
22998
  correctResponses,
23000
22999
  userName,
23001
- maxPossibleScore
23000
+ maxPossibleScore,
23001
+ duration
23002
23002
  }) => {
23003
23003
  return /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", justify: "between", css: { my: "$4" } }, /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", css: { gap: "$6" } }, /* @__PURE__ */ import_react109.default.createElement(
23004
23004
  Flex,
@@ -23016,7 +23016,7 @@ var init_LeaderboardEntry = __esm({
23016
23016
  }
23017
23017
  },
23018
23018
  position
23019
- ), /* @__PURE__ */ import_react109.default.createElement(Box, null, /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, userName), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "sm", css: { mt: "$1" } }, score, " / ", maxPossibleScore, " points"))), /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", css: { gap: "$4", color: "$on_surface_medium" } }, position === 1 ? /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.TrophyFilledIcon, { height: 16, width: 16 }) : null, /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.CheckCircleIcon, { height: 16, width: 16 }), questionCount ? /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "xs" }, correctResponses, " / ", questionCount) : null));
23019
+ ), /* @__PURE__ */ import_react109.default.createElement(Box, null, /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, userName), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "sm", css: { mt: "$1" } }, score, " / ", maxPossibleScore, " points"))), /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", css: { gap: "$4", color: "$on_surface_medium" } }, position === 1 ? /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.TrophyFilledIcon, { height: 16, width: 16 }) : null, questionCount ? /* @__PURE__ */ import_react109.default.createElement(import_react109.default.Fragment, null, /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.CheckCircleIcon, { height: 16, width: 16 }), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "xs" }, correctResponses, "/", questionCount)) : null, duration ? /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", css: { gap: "$2", color: "$on_surface_medium" } }, /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.ClockIcon, { height: 16, width: 16 }), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "xs" }, (duration / 1e3).toFixed(3), "s")) : null));
23020
23020
  };
23021
23021
  }
23022
23022
  });
@@ -23125,7 +23125,8 @@ var init_PeerParticipationSummary = __esm({
23125
23125
  title: "Correct Answers",
23126
23126
  value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
23127
23127
  },
23128
- { title: "Avg. Time Taken", value: summary.avgTime },
23128
+ // Time in ms
23129
+ { title: "Avg. Time Taken", value: `${(summary.avgTime / 1e3).toFixed(3)}s` },
23129
23130
  {
23130
23131
  title: "Avg. Score",
23131
23132
  value: Number.isInteger(summary.avgScore) ? summary.avgScore : summary.avgScore.toFixed(2)
@@ -23133,7 +23134,8 @@ var init_PeerParticipationSummary = __esm({
23133
23134
  ] : [
23134
23135
  { title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position) ? `${peerEntry.position}/${summary.totalUsers}` : "-" },
23135
23136
  { title: "Points", value: peerEntry == null ? void 0 : peerEntry.score },
23136
- { title: "Time Taken", value: peerEntry == null ? void 0 : peerEntry.duration },
23137
+ // Time in ms
23138
+ { title: "Time Taken", value: `${(((peerEntry == null ? void 0 : peerEntry.duration) || 0) / 1e3).toFixed(3)}s` },
23137
23139
  {
23138
23140
  title: "Correct Answers",
23139
23141
  value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ? `${peerEntry == null ? void 0 : peerEntry.correctResponses}/${peerEntry.totalResponses}` : "-"
@@ -23210,7 +23212,8 @@ var init_LeaderboardSummary = __esm({
23210
23212
  questionCount,
23211
23213
  correctResponses: question.correctResponses,
23212
23214
  userName: question.peer.username || "",
23213
- maxPossibleScore
23215
+ maxPossibleScore,
23216
+ duration: question.duration
23214
23217
  }
23215
23218
  )),
23216
23219
  ((_b7 = quizLeaderboard == null ? void 0 : quizLeaderboard.entries) == null ? void 0 : _b7.length) > 5 && !viewAllEntries ? /* @__PURE__ */ import_react113.default.createElement(
@@ -23262,9 +23265,7 @@ var init_QuestionCard = __esm({
23262
23265
  options = [],
23263
23266
  answer,
23264
23267
  setCurrentIndex,
23265
- skippable = false,
23266
23268
  responses = [],
23267
- isTimed = false,
23268
23269
  rolesThatCanViewResponses
23269
23270
  }) => {
23270
23271
  const actions = (0, import_react_sdk52.useHMSActions)();
@@ -23281,15 +23282,8 @@ var init_QuestionCard = __esm({
23281
23282
  const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
23282
23283
  const isLive = pollState === "started";
23283
23284
  const canRespond = isLive && !localPeerResponse;
23285
+ const startTime = (0, import_react114.useRef)(Date.now());
23284
23286
  const isCorrectAnswer = checkCorrectAnswer(answer, localPeerResponse, type);
23285
- const prev = index !== 1;
23286
- const next = index !== totalQuestions && (skippable || localPeerResponse);
23287
- const moveNext = (0, import_react114.useCallback)(() => {
23288
- setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
23289
- }, [setCurrentIndex, totalQuestions]);
23290
- const movePrev = () => {
23291
- setCurrentIndex((curr) => Math.max(1, curr - 1));
23292
- };
23293
23287
  const [singleOptionAnswer, setSingleOptionAnswer] = (0, import_react114.useState)();
23294
23288
  const [multipleOptionAnswer, setMultipleOptionAnswer] = (0, import_react114.useState)(/* @__PURE__ */ new Set());
23295
23289
  const [showOptions, setShowOptions] = (0, import_react114.useState)(true);
@@ -23309,19 +23303,25 @@ var init_QuestionCard = __esm({
23309
23303
  {
23310
23304
  questionIndex: index,
23311
23305
  option: singleOptionAnswer,
23312
- options: Array.from(multipleOptionAnswer)
23313
- }
23314
- ]);
23315
- }), [actions, index, pollID, isValidVote, singleOptionAnswer, multipleOptionAnswer]);
23316
- const handleSkip = (0, import_react114.useCallback)(() => __async(void 0, null, function* () {
23317
- yield actions.interactivityCenter.addResponsesToPoll(pollID, [
23318
- {
23319
- questionIndex: index,
23320
- skipped: true
23306
+ options: Array.from(multipleOptionAnswer),
23307
+ duration: Date.now() - startTime.current
23321
23308
  }
23322
23309
  ]);
23323
- moveNext();
23324
- }), [actions, index, pollID, moveNext]);
23310
+ startTime.current = Date.now();
23311
+ if (isQuiz && index !== totalQuestions) {
23312
+ setSingleOptionAnswer(void 0);
23313
+ setMultipleOptionAnswer(/* @__PURE__ */ new Set());
23314
+ }
23315
+ }), [
23316
+ isValidVote,
23317
+ actions.interactivityCenter,
23318
+ pollID,
23319
+ index,
23320
+ singleOptionAnswer,
23321
+ multipleOptionAnswer,
23322
+ totalQuestions,
23323
+ isQuiz
23324
+ ]);
23325
23325
  return /* @__PURE__ */ import_react114.default.createElement(
23326
23326
  Box,
23327
23327
  {
@@ -23353,34 +23353,12 @@ var init_QuestionCard = __esm({
23353
23353
  totalQuestions,
23354
23354
  ": ",
23355
23355
  type.toUpperCase()
23356
- ), isTimed ? /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react114.default.createElement(
23357
- IconButton,
23358
- {
23359
- disabled: !prev,
23360
- onClick: movePrev,
23361
- css: prev ? { color: "$on_surface_high", cursor: "pointer" } : {
23362
- color: "$on_surface_low",
23363
- cursor: "not-allowed"
23364
- }
23365
- },
23366
- /* @__PURE__ */ import_react114.default.createElement(import_react_icons57.ChevronLeftIcon, { height: 16, width: 16 })
23367
- ), /* @__PURE__ */ import_react114.default.createElement(
23368
- IconButton,
23369
- {
23370
- disabled: !next,
23371
- onClick: moveNext,
23372
- css: next ? { color: "$on_surface_high", cursor: "pointer" } : {
23373
- color: "$on_surface_low",
23374
- cursor: "not-allowed"
23375
- }
23376
- },
23377
- /* @__PURE__ */ import_react114.default.createElement(import_react_icons57.ChevronRightIcon, { height: 16, width: 16 })
23378
- )) : null),
23356
+ )),
23379
23357
  /* @__PURE__ */ import_react114.default.createElement(Flex, { justify: "between", css: { my: "$md" } }, /* @__PURE__ */ import_react114.default.createElement(Text, { css: { color: "$on_surface_high" } }, text), /* @__PURE__ */ import_react114.default.createElement(
23380
23358
  Box,
23381
23359
  {
23382
23360
  css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
23383
- onClick: () => setShowOptions((prev2) => !prev2)
23361
+ onClick: () => setShowOptions((prev) => !prev)
23384
23362
  },
23385
23363
  /* @__PURE__ */ import_react114.default.createElement(
23386
23364
  import_react_icons57.ChevronDownIcon,
@@ -23392,17 +23370,18 @@ var init_QuestionCard = __esm({
23392
23370
  /* @__PURE__ */ import_react114.default.createElement(Box, { css: { maxHeight: showOptions ? "$80" : "0", transition: "max-height 0.3s ease", overflowY: "hidden" } }, type === "single-choice" /* SINGLE_CHOICE */ ? /* @__PURE__ */ import_react114.default.createElement(
23393
23371
  SingleChoiceOptions,
23394
23372
  {
23373
+ key: index,
23395
23374
  questionIndex: index,
23396
23375
  isQuiz,
23397
23376
  canRespond,
23398
- response: localPeerResponse,
23399
23377
  correctOptionIndex: answer == null ? void 0 : answer.option,
23400
23378
  options,
23401
23379
  setAnswer: setSingleOptionAnswer,
23402
23380
  totalResponses: result == null ? void 0 : result.totalResponses,
23403
23381
  showVoteCount,
23404
23382
  localPeerResponse,
23405
- isStopped: pollState === "stopped"
23383
+ isStopped: pollState === "stopped",
23384
+ answer: singleOptionAnswer
23406
23385
  }
23407
23386
  ) : null, type === "multiple-choice" /* MULTIPLE_CHOICE */ ? /* @__PURE__ */ import_react114.default.createElement(
23408
23387
  MultipleChoiceOptions,
@@ -23410,7 +23389,6 @@ var init_QuestionCard = __esm({
23410
23389
  questionIndex: index,
23411
23390
  isQuiz,
23412
23391
  canRespond,
23413
- response: localPeerResponse,
23414
23392
  correctOptionIndexes: answer == null ? void 0 : answer.options,
23415
23393
  options,
23416
23394
  selectedOptions: multipleOptionAnswer,
@@ -23424,17 +23402,29 @@ var init_QuestionCard = __esm({
23424
23402
  QuestionActions,
23425
23403
  {
23426
23404
  isValidVote,
23427
- skippable,
23428
- onSkip: handleSkip,
23429
23405
  onVote: handleVote,
23430
23406
  response: localPeerResponse,
23431
- isQuiz
23407
+ isQuiz,
23408
+ incrementIndex: () => {
23409
+ setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
23410
+ }
23432
23411
  }
23433
23412
  ))
23434
23413
  );
23435
23414
  };
23436
- QuestionActions = ({ isValidVote, skippable, response, isQuiz, onVote, onSkip }) => {
23437
- return /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, skippable && !response ? /* @__PURE__ */ import_react114.default.createElement(Button, { variant: "standard", onClick: onSkip, css: { p: "$xs $10", fontWeight: "$semiBold" } }, "Skip") : null, response ? /* @__PURE__ */ import_react114.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ import_react114.default.createElement(Button, { css: { p: "$xs $10", fontWeight: "$semiBold" }, disabled: !isValidVote, onClick: onVote }, isQuiz ? "Answer" : "Vote"));
23415
+ QuestionActions = ({ isValidVote, response, isQuiz, onVote, incrementIndex }) => {
23416
+ return /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, response ? /* @__PURE__ */ import_react114.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ import_react114.default.createElement(
23417
+ Button,
23418
+ {
23419
+ css: { p: "$xs $10", fontWeight: "$semiBold" },
23420
+ disabled: !isValidVote,
23421
+ onClick: () => {
23422
+ onVote();
23423
+ incrementIndex();
23424
+ }
23425
+ },
23426
+ isQuiz ? "Answer" : "Vote"
23427
+ ));
23438
23428
  };
23439
23429
  }
23440
23430
  });
@@ -23471,7 +23461,6 @@ var init_StandardVoting = __esm({
23471
23461
  result: question.result,
23472
23462
  totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
23473
23463
  options: question.options,
23474
- skippable: question.skippable,
23475
23464
  responses: question.responses,
23476
23465
  answer: question.answer,
23477
23466
  setCurrentIndex: () => {
@@ -23513,12 +23502,10 @@ var init_TimedVoting = __esm({
23513
23502
  result: activeQuestion == null ? void 0 : activeQuestion.result,
23514
23503
  totalQuestions: ((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0,
23515
23504
  options: activeQuestion.options,
23516
- skippable: activeQuestion.skippable || false,
23517
23505
  responses: activeQuestion.responses,
23518
23506
  answer: activeQuestion.answer,
23519
23507
  setCurrentIndex,
23520
- rolesThatCanViewResponses: poll.rolesThatCanViewResponses,
23521
- isTimed: true
23508
+ rolesThatCanViewResponses: poll.rolesThatCanViewResponses
23522
23509
  }
23523
23510
  );
23524
23511
  };
@@ -23545,13 +23532,14 @@ var init_Voting = __esm({
23545
23532
  const actions = (0, import_react_sdk53.useHMSActions)();
23546
23533
  const poll = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPollByID)(id));
23547
23534
  const pollCreatorName = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
23548
- const isLocalPeerCreator = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectLocalPeerID) === (poll == null ? void 0 : poll.createdBy);
23535
+ const permissions = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions);
23536
+ const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
23549
23537
  const { setPollView } = usePollViewState();
23538
+ const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
23550
23539
  if (!poll) {
23551
23540
  return null;
23552
23541
  }
23553
23542
  const canViewLeaderboard = poll.type === "quiz" && poll.state === "stopped" && !poll.anonymous;
23554
- const isTimed = (poll.duration || 0) > 0;
23555
23543
  const isLive = poll.state === "started";
23556
23544
  return /* @__PURE__ */ import_react117.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react117.default.createElement(
23557
23545
  Flex,
@@ -23588,7 +23576,7 @@ var init_Voting = __esm({
23588
23576
  },
23589
23577
  /* @__PURE__ */ import_react117.default.createElement(import_react_icons58.CrossIcon, { onClick: toggleVoting })
23590
23578
  )
23591
- ), /* @__PURE__ */ import_react117.default.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ import_react117.default.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, isTimed ? /* @__PURE__ */ import_react117.default.createElement(TimedView, { poll }) : /* @__PURE__ */ import_react117.default.createElement(StandardView, { poll }), poll.state === "started" && isLocalPeerCreator && /* @__PURE__ */ import_react117.default.createElement(
23579
+ ), /* @__PURE__ */ import_react117.default.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ import_react117.default.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, showSingleView ? /* @__PURE__ */ import_react117.default.createElement(TimedView, { poll }) : /* @__PURE__ */ import_react117.default.createElement(StandardView, { poll }), poll.state === "started" && canEndActivity && /* @__PURE__ */ import_react117.default.createElement(
23592
23580
  Button,
23593
23581
  {
23594
23582
  variant: "danger",
@@ -26449,11 +26437,20 @@ var init_VBHandler = __esm({
26449
26437
  }
26450
26438
  };
26451
26439
  this.getBackground = () => {
26452
- var _a8, _b7, _c, _d;
26440
+ var _a8, _b7;
26453
26441
  if (this.effectsPlugin) {
26454
26442
  return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
26455
26443
  } else {
26456
- return ((_c = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.background) == null ? void 0 : _c.src) || ((_d = this.hmsPlugin) == null ? void 0 : _d.background);
26444
+ const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
26445
+ return (background == null ? void 0 : background.src) || background;
26446
+ }
26447
+ };
26448
+ this.getBlurAmount = () => {
26449
+ var _a8;
26450
+ if (this.effectsPlugin) {
26451
+ return this.effectsPlugin.getBlurAmount();
26452
+ } else {
26453
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hms_virtual_background2.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
26457
26454
  }
26458
26455
  };
26459
26456
  this.getVBObject = () => {
@@ -26562,6 +26559,7 @@ var init_VBPicker = __esm({
26562
26559
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26563
26560
  const trackSelector = (0, import_react_sdk71.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
26564
26561
  const track = (0, import_react_sdk71.useHMSStore)(trackSelector);
26562
+ const [blurAmount, setBlurAmount] = (0, import_react146.useState)(VBHandler.getBlurAmount() || 0.5);
26565
26563
  const roomState = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectRoomState);
26566
26564
  const isLargeRoom = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectIsLargeRoom);
26567
26565
  const isEffectsEnabled = (0, import_react_sdk71.useHMSStore)(Qn);
@@ -26644,7 +26642,7 @@ var init_VBPicker = __esm({
26644
26642
  value: import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR,
26645
26643
  onClick: () => __async(void 0, null, function* () {
26646
26644
  var _a9;
26647
- yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(0.5);
26645
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
26648
26646
  setActiveBackground(import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR);
26649
26647
  })
26650
26648
  }
@@ -26652,6 +26650,19 @@ var init_VBPicker = __esm({
26652
26650
  activeBackground
26653
26651
  }
26654
26652
  ),
26653
+ activeBackground === import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ import_react146.default.createElement(
26654
+ Slider,
26655
+ {
26656
+ value: [blurAmount],
26657
+ onValueChange: (e) => __async(void 0, null, function* () {
26658
+ setBlurAmount(e[0]);
26659
+ yield VBHandler.setBlur(e[0]);
26660
+ }),
26661
+ step: 0.1,
26662
+ min: 0.1,
26663
+ max: 1
26664
+ }
26665
+ ) : null,
26655
26666
  /* @__PURE__ */ import_react146.default.createElement(
26656
26667
  VBCollection,
26657
26668
  {
@@ -27110,20 +27121,7 @@ var init_PreviewJoin = __esm({
27110
27121
  textColor: "#FFF",
27111
27122
  icon: /* @__PURE__ */ import_react152.default.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
27112
27123
  }
27113
- ) : null, /* @__PURE__ */ import_react152.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react152.default.createElement(
27114
- Flex,
27115
- {
27116
- align: "center",
27117
- justify: "center",
27118
- css: {
27119
- mt: "$14",
27120
- "@md": { mt: 0 },
27121
- "@sm": { width: "100%" },
27122
- flexDirection: "column"
27123
- }
27124
- },
27125
- /* @__PURE__ */ import_react152.default.createElement(PreviewTile, { name, error: previewError })
27126
- ) : null, /* @__PURE__ */ import_react152.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ import_react152.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react152.default.createElement(
27124
+ ) : null, /* @__PURE__ */ import_react152.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react152.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react152.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ import_react152.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react152.default.createElement(
27127
27125
  PreviewForm_default,
27128
27126
  {
27129
27127
  name,
@@ -27164,9 +27162,12 @@ var init_PreviewJoin = __esm({
27164
27162
  bg: "$surface_default",
27165
27163
  aspectRatio,
27166
27164
  height: "min(360px, 70vh)",
27165
+ width: "auto",
27167
27166
  maxWidth: "640px",
27168
27167
  overflow: "clip",
27168
+ mt: "$14",
27169
27169
  "@md": {
27170
+ mt: 0,
27170
27171
  width: "min(220px, 70vw)",
27171
27172
  maxWidth: "100%",
27172
27173
  my: "$4"
@@ -27224,15 +27225,20 @@ var init_RequestPrompt = __esm({
27224
27225
  title,
27225
27226
  body,
27226
27227
  actionText = "Accept",
27227
- onAction
27228
+ onAction,
27229
+ disableActions = false
27228
27230
  }) => {
27229
27231
  const isMobile = (0, import_react_use29.useMedia)(config.media.md);
27230
27232
  if (isMobile) {
27231
- return /* @__PURE__ */ import_react153.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction })));
27233
+ return /* @__PURE__ */ import_react153.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
27232
27234
  }
27233
- return /* @__PURE__ */ import_react153.default.createElement(Dialog.Root, { open, modal: false, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react153.default.createElement(Dialog.Content, { css: { p: "$10" }, onInteractOutside: (e) => e.preventDefault() }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md", justifyContent: "center" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { variant: "h6" }, title)), /* @__PURE__ */ import_react153.default.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction }))));
27235
+ return /* @__PURE__ */ import_react153.default.createElement(Dialog.Root, { open, modal: false, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react153.default.createElement(Dialog.Content, { css: { p: "$10" }, onInteractOutside: (e) => e.preventDefault() }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md", justifyContent: "center" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { variant: "h6" }, title)), /* @__PURE__ */ import_react153.default.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction, disabled: disableActions }))));
27234
27236
  };
27235
- RequestActions = ({ onAction, actionText }) => /* @__PURE__ */ import_react153.default.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md", "@md": { mt: "$8", px: "$8" } } }, /* @__PURE__ */ import_react153.default.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ import_react153.default.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" } }, "Decline"))), /* @__PURE__ */ import_react153.default.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ import_react153.default.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction }, actionText)));
27237
+ RequestActions = ({
27238
+ onAction,
27239
+ actionText,
27240
+ disabled = false
27241
+ }) => /* @__PURE__ */ import_react153.default.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md", "@md": { mt: "$8", px: "$8" } } }, /* @__PURE__ */ import_react153.default.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ import_react153.default.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" }, disabled }, "Decline"))), /* @__PURE__ */ import_react153.default.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ import_react153.default.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction, disabled }, actionText)));
27236
27242
  }
27237
27243
  });
27238
27244
 
@@ -27253,6 +27259,7 @@ var init_RoleChangeRequestModal = __esm({
27253
27259
  RoleChangeRequestModal = () => {
27254
27260
  const hmsActions = (0, import_react_sdk76.useHMSActions)();
27255
27261
  const { updateMetaData } = useMyMetadata();
27262
+ const isPreview = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectIsInPreview);
27256
27263
  const currentRole = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerRoleName);
27257
27264
  const roleChangeRequest = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectRoleChangeRequest);
27258
27265
  const name = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerName);
@@ -27315,7 +27322,8 @@ var init_RoleChangeRequestModal = __esm({
27315
27322
  yield updateMetaData({ prevRole: currentRole });
27316
27323
  yield hmsActions.lowerLocalPeerHand();
27317
27324
  }),
27318
- actionText: "Accept"
27325
+ actionText: "Accept",
27326
+ disableActions: !isPreview
27319
27327
  }
27320
27328
  );
27321
27329
  };
@@ -29281,7 +29289,7 @@ var HLSView_exports = {};
29281
29289
  __export(HLSView_exports, {
29282
29290
  default: () => HLSView_default
29283
29291
  });
29284
- var import_react184, import_react_use38, import_hls_player3, import_screenfull3, import_react_sdk90, import_react_icons88, hlsPlayer, HLSView, HLSView_default;
29292
+ var import_react184, import_react_use38, import_hls_player3, import_screenfull3, import_react_sdk90, import_react_icons88, hlsPlayer, toastMap, HLSView, HLSView_default;
29285
29293
  var init_HLSView = __esm({
29286
29294
  "src/Prebuilt/layouts/HLSView.jsx"() {
29287
29295
  "use strict";
@@ -29308,12 +29316,14 @@ var init_HLSView = __esm({
29308
29316
  init_Tooltip2();
29309
29317
  init_useSidepane();
29310
29318
  init_constants();
29319
+ toastMap = {};
29311
29320
  HLSView = () => {
29312
29321
  var _a8;
29313
29322
  const videoRef = (0, import_react184.useRef)(null);
29314
29323
  const hlsViewRef = (0, import_react184.useRef)(null);
29315
29324
  const hlsState = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectHLSState);
29316
29325
  const enablHlsStats = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectAppData)(APP_DATA.hlsStats));
29326
+ const notification = (0, import_react_sdk90.useHMSNotifications)(import_react_sdk90.HMSNotificationTypes.POLL_STOPPED);
29317
29327
  const hmsActions = (0, import_react_sdk90.useHMSActions)();
29318
29328
  const { themeType, theme: theme2 } = useTheme();
29319
29329
  const [streamEnded, setStreamEnded] = (0, import_react184.useState)(false);
@@ -29357,6 +29367,15 @@ var init_HLSView = __esm({
29357
29367
  setStreamEnded(false);
29358
29368
  }
29359
29369
  }, [hlsUrl, streamEnded, lastHlsUrl]);
29370
+ (0, import_react184.useEffect)(() => {
29371
+ if (!notification)
29372
+ return;
29373
+ const toastID = toastMap == null ? void 0 : toastMap[notification.data.id];
29374
+ if (toastID) {
29375
+ ToastManager.removeToast(toastMap[notification.data.id]);
29376
+ delete toastMap[notification.data.id];
29377
+ }
29378
+ }, [notification]);
29360
29379
  (0, import_react184.useEffect)(() => {
29361
29380
  const videoElem = videoRef.current;
29362
29381
  const setStreamEndedCallback = () => {
@@ -29393,7 +29412,7 @@ var init_HLSView = __esm({
29393
29412
  const pollId = parsedPayload.substr(parsedPayload.indexOf(":") + 1);
29394
29413
  const poll = vanillaStore.getState((0, import_react_sdk90.selectPollByID)(pollId));
29395
29414
  const pollStartedBy = vanillaStore.getState((0, import_react_sdk90.selectPeerNameByID)(poll.startedBy)) || "Participant";
29396
- ToastManager.addToast({
29415
+ const toastID = ToastManager.addToast({
29397
29416
  title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
29398
29417
  action: /* @__PURE__ */ import_react184.default.createElement(
29399
29418
  Button,
@@ -29408,8 +29427,10 @@ var init_HLSView = __esm({
29408
29427
  }
29409
29428
  },
29410
29429
  poll.type === "quiz" ? "Answer" : "Vote"
29411
- )
29430
+ ),
29431
+ duration: Infinity
29412
29432
  });
29433
+ toastMap[pollId] = toastID;
29413
29434
  return;
29414
29435
  }
29415
29436
  switch (parsedPayload.type) {
@@ -31107,24 +31128,39 @@ function PermissionErrorModal() {
31107
31128
  }
31108
31129
  setIsSystemError(notification.data.code === 3011);
31109
31130
  }, [notification]);
31110
- return deviceType ? /* @__PURE__ */ import_react204.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react204.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react204.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react204.default.createElement(Dialog.Content, { css: { w: "min(380px, 90%)", p: "$8" } }, /* @__PURE__ */ import_react204.default.createElement(
31111
- Dialog.Title,
31131
+ return deviceType ? /* @__PURE__ */ import_react204.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react204.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react204.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react204.default.createElement(
31132
+ Dialog.Content,
31112
31133
  {
31113
31134
  css: {
31114
- borderBottom: "1px solid $border_default"
31135
+ w: "min(380px, 90%)",
31136
+ p: "$8",
31137
+ // overlay over Sheet.tsx
31138
+ zIndex: 23
31115
31139
  }
31116
31140
  },
31117
- isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
31118
- isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(
31119
- "img",
31141
+ /* @__PURE__ */ import_react204.default.createElement(
31142
+ Dialog.Title,
31120
31143
  {
31121
- src: android_perm_1_default,
31122
- style: { maxWidth: "100%", maxHeight: "100%" },
31123
- alt: "Android Permission flow "
31124
- }
31125
- ) : null,
31126
- /* @__PURE__ */ import_react204.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
31127
- ), /* @__PURE__ */ import_react204.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null), isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement(import_react204.default.Fragment, null, /* @__PURE__ */ import_react204.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(import_react204.default.Fragment, null, /* @__PURE__ */ import_react204.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, !isMobile ? /* @__PURE__ */ import_react204.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null))) : null;
31144
+ css: {
31145
+ borderBottom: "1px solid $border_default"
31146
+ }
31147
+ },
31148
+ isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
31149
+ isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(
31150
+ "img",
31151
+ {
31152
+ src: android_perm_1_default,
31153
+ style: { maxWidth: "100%", maxHeight: "100%" },
31154
+ alt: "Android Permission flow "
31155
+ }
31156
+ ) : null,
31157
+ /* @__PURE__ */ import_react204.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
31158
+ ),
31159
+ /* @__PURE__ */ import_react204.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
31160
+ isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement(import_react204.default.Fragment, null, /* @__PURE__ */ import_react204.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
31161
+ isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(import_react204.default.Fragment, null, /* @__PURE__ */ import_react204.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
31162
+ !isMobile ? /* @__PURE__ */ import_react204.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
31163
+ ))) : null;
31128
31164
  }
31129
31165
  var import_react204, import_react_use42, import_react_sdk105;
31130
31166
  var init_PermissionErrorModal = __esm({