@100mslive/roomkit-react 0.2.2-alpha.2 → 0.2.2-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-DJGDJPXM.js → HLSView-DPM6YJWZ.js} +19 -4
- package/dist/HLSView-DPM6YJWZ.js.map +7 -0
- package/dist/Prebuilt/components/Polls/Voting/LeaderboardEntry.d.ts +2 -1
- package/dist/Prebuilt/components/RoleChangeRequest/RequestPrompt.d.ts +2 -1
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
- package/dist/{chunk-ERKB3GGI.js → chunk-S5NNUR2M.js} +230 -194
- package/dist/{chunk-ERKB3GGI.js.map → chunk-S5NNUR2M.js.map} +3 -3
- package/dist/index.cjs.js +189 -135
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +46 -46
- package/dist/meta.esbuild.json +56 -56
- package/package.json +6 -6
- package/src/Button/Button.tsx +2 -2
- package/src/Prebuilt/components/Notifications/Notifications.tsx +14 -1
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +8 -1
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx +3 -4
- package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +17 -5
- package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +1 -0
- package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +5 -3
- package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +41 -83
- package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +0 -1
- package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +2 -3
- package/src/Prebuilt/components/Polls/Voting/Voting.tsx +7 -6
- package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -2
- package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +6 -4
- package/src/Prebuilt/components/Polls/common/StatusIndicator.tsx +1 -1
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -14
- package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +15 -5
- package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +3 -0
- package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +6 -1
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +11 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +16 -2
- package/src/Prebuilt/layouts/HLSView.jsx +16 -1
- package/src/Sheet/Sheet.tsx +1 -1
- package/dist/HLSView-DJGDJPXM.js.map +0 -7
- 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 = { 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", 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.2", 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.1", 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: "7b4796ac89befa19c7c293bcd14afde8df83b54a6c71695a3ab637f8f501900e", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.8tHoKq6Yge/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--1705557976625-0.5372400448387256:/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--1705557976174-0.6081129614274636:/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--1705557953375-0.8973695825271015:/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--1705557976625-0.5372400448387256/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.2", 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.2", 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.2", 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.2", 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" };
|
|
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.4", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.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: "2cac5cbb6f8b3a94641136a9fb8d9d96ac69e3cf6ddd3f3ae9754eeb6d618fbc", 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--1706079013181-0.1639248454412272:/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--1706079012682-0.5987315984824728:/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--1706078992416-0.16177324076315092:/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--1706079013181-0.1639248454412272/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.4", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.2-alpha.4", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--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.4", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.2.2-alpha.4", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__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
|
-
"$
|
|
916
|
-
"$
|
|
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:
|
|
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,
|
|
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
|
-
|
|
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.2-alpha.
|
|
18324
|
+
Va.exports = { version: "0.11.2-alpha.4", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", 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:
|
|
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(
|
|
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(
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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: "$
|
|
22075
|
+
color: "$on_primary_high"
|
|
22076
22076
|
}
|
|
22077
22077
|
},
|
|
22078
22078
|
isLive ? "LIVE" : "ENDED"
|
|
@@ -22138,7 +22138,6 @@ var init_PollsQuizMenu = __esm({
|
|
|
22138
22138
|
const actions = (0, import_react_sdk47.useHMSActions)();
|
|
22139
22139
|
const [title, setTitle] = (0, import_react98.useState)("");
|
|
22140
22140
|
const localPeerRoleName = (0, import_react_sdk47.useHMSStore)(import_react_sdk47.selectLocalPeerRoleName);
|
|
22141
|
-
const [anonymous, setAnonymous] = (0, import_react98.useState)(false);
|
|
22142
22141
|
const [hideVoteCount, setHideVoteCount] = (0, import_react98.useState)(false);
|
|
22143
22142
|
const [error, setError] = (0, import_react98.useState)();
|
|
22144
22143
|
const [titleError, setTitleError] = (0, import_react98.useState)("");
|
|
@@ -22196,7 +22195,7 @@ var init_PollsQuizMenu = __esm({
|
|
|
22196
22195
|
border: "1px solid $border_default"
|
|
22197
22196
|
}
|
|
22198
22197
|
}
|
|
22199
|
-
), /* @__PURE__ */ import_react98.default.createElement(Flex, { align: "center", css: { mt: "$10" } }, /* @__PURE__ */ import_react98.default.createElement(Switch, { onCheckedChange: (value) => setHideVoteCount(value), css: { mr: "$6" } }), /* @__PURE__ */ import_react98.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, "Hide Vote Count")), /* @__PURE__ */ import_react98.default.createElement(
|
|
22198
|
+
), /* @__PURE__ */ import_react98.default.createElement(Flex, { align: "center", css: { mt: "$10" } }, /* @__PURE__ */ import_react98.default.createElement(Switch, { onCheckedChange: (value) => setHideVoteCount(value), css: { mr: "$6" } }), /* @__PURE__ */ import_react98.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, "Hide Vote Count")), /* @__PURE__ */ import_react98.default.createElement(
|
|
22200
22199
|
Button,
|
|
22201
22200
|
{
|
|
22202
22201
|
variant: "primary",
|
|
@@ -22207,7 +22206,7 @@ var init_PollsQuizMenu = __esm({
|
|
|
22207
22206
|
yield actions.interactivityCenter.createPoll({
|
|
22208
22207
|
id,
|
|
22209
22208
|
title,
|
|
22210
|
-
anonymous,
|
|
22209
|
+
anonymous: false,
|
|
22211
22210
|
rolesThatCanViewResponses: hideVoteCount && localPeerRoleName ? [localPeerRoleName] : void 0,
|
|
22212
22211
|
type: interactionType.toLowerCase()
|
|
22213
22212
|
// duration: showTimerDropDown ? timer : undefined,
|
|
@@ -22413,7 +22412,6 @@ var init_MultipleChoiceOptions = __esm({
|
|
|
22413
22412
|
questionIndex,
|
|
22414
22413
|
options,
|
|
22415
22414
|
canRespond,
|
|
22416
|
-
response,
|
|
22417
22415
|
totalResponses,
|
|
22418
22416
|
selectedOptions,
|
|
22419
22417
|
setSelectedOptions,
|
|
@@ -22439,7 +22437,7 @@ var init_MultipleChoiceOptions = __esm({
|
|
|
22439
22437
|
{
|
|
22440
22438
|
id: `${questionIndex}-${option.index}`,
|
|
22441
22439
|
disabled: !canRespond,
|
|
22442
|
-
checked: (_a8 =
|
|
22440
|
+
checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
|
|
22443
22441
|
onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
|
|
22444
22442
|
css: {
|
|
22445
22443
|
cursor: canRespond ? "pointer" : "not-allowed"
|
|
@@ -22491,7 +22489,6 @@ var init_SingleChoiceOptions = __esm({
|
|
|
22491
22489
|
SingleChoiceOptions = ({
|
|
22492
22490
|
questionIndex,
|
|
22493
22491
|
options,
|
|
22494
|
-
response,
|
|
22495
22492
|
canRespond,
|
|
22496
22493
|
setAnswer,
|
|
22497
22494
|
totalResponses,
|
|
@@ -22499,9 +22496,10 @@ var init_SingleChoiceOptions = __esm({
|
|
|
22499
22496
|
correctOptionIndex,
|
|
22500
22497
|
isStopped,
|
|
22501
22498
|
isQuiz,
|
|
22502
|
-
localPeerResponse
|
|
22499
|
+
localPeerResponse,
|
|
22500
|
+
answer
|
|
22503
22501
|
}) => {
|
|
22504
|
-
return /* @__PURE__ */ import_react105.default.createElement(RadioGroup.Root, { value:
|
|
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) => {
|
|
22505
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(
|
|
22506
22504
|
RadioGroup.Item,
|
|
22507
22505
|
{
|
|
@@ -22535,7 +22533,7 @@ var init_SingleChoiceOptions = __esm({
|
|
|
22535
22533
|
}
|
|
22536
22534
|
}
|
|
22537
22535
|
)
|
|
22538
|
-
) : 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);
|
|
22539
22537
|
})));
|
|
22540
22538
|
};
|
|
22541
22539
|
SingleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
|
|
@@ -22999,7 +22997,8 @@ var init_LeaderboardEntry = __esm({
|
|
|
22999
22997
|
questionCount,
|
|
23000
22998
|
correctResponses,
|
|
23001
22999
|
userName,
|
|
23002
|
-
maxPossibleScore
|
|
23000
|
+
maxPossibleScore,
|
|
23001
|
+
duration
|
|
23003
23002
|
}) => {
|
|
23004
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(
|
|
23005
23004
|
Flex,
|
|
@@ -23017,7 +23016,7 @@ var init_LeaderboardEntry = __esm({
|
|
|
23017
23016
|
}
|
|
23018
23017
|
},
|
|
23019
23018
|
position
|
|
23020
|
-
), /* @__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 }),
|
|
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));
|
|
23021
23020
|
};
|
|
23022
23021
|
}
|
|
23023
23022
|
});
|
|
@@ -23126,15 +23125,17 @@ var init_PeerParticipationSummary = __esm({
|
|
|
23126
23125
|
title: "Correct Answers",
|
|
23127
23126
|
value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
|
|
23128
23127
|
},
|
|
23129
|
-
|
|
23128
|
+
// Time in ms
|
|
23129
|
+
{ title: "Avg. Time Taken", value: `${(summary.avgTime / 1e3).toFixed(3)}s` },
|
|
23130
23130
|
{
|
|
23131
23131
|
title: "Avg. Score",
|
|
23132
23132
|
value: Number.isInteger(summary.avgScore) ? summary.avgScore : summary.avgScore.toFixed(2)
|
|
23133
23133
|
}
|
|
23134
23134
|
] : [
|
|
23135
|
-
{ title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position)
|
|
23135
|
+
{ title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position) || "-" },
|
|
23136
23136
|
{ title: "Points", value: peerEntry == null ? void 0 : peerEntry.score },
|
|
23137
|
-
|
|
23137
|
+
// Time in ms
|
|
23138
|
+
{ title: "Time Taken", value: `${(((peerEntry == null ? void 0 : peerEntry.duration) || 0) / 1e3).toFixed(3)}s` },
|
|
23138
23139
|
{
|
|
23139
23140
|
title: "Correct Answers",
|
|
23140
23141
|
value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ? `${peerEntry == null ? void 0 : peerEntry.correctResponses}/${peerEntry.totalResponses}` : "-"
|
|
@@ -23211,7 +23212,8 @@ var init_LeaderboardSummary = __esm({
|
|
|
23211
23212
|
questionCount,
|
|
23212
23213
|
correctResponses: question.correctResponses,
|
|
23213
23214
|
userName: question.peer.username || "",
|
|
23214
|
-
maxPossibleScore
|
|
23215
|
+
maxPossibleScore,
|
|
23216
|
+
duration: question.duration
|
|
23215
23217
|
}
|
|
23216
23218
|
)),
|
|
23217
23219
|
((_b7 = quizLeaderboard == null ? void 0 : quizLeaderboard.entries) == null ? void 0 : _b7.length) > 5 && !viewAllEntries ? /* @__PURE__ */ import_react113.default.createElement(
|
|
@@ -23263,9 +23265,7 @@ var init_QuestionCard = __esm({
|
|
|
23263
23265
|
options = [],
|
|
23264
23266
|
answer,
|
|
23265
23267
|
setCurrentIndex,
|
|
23266
|
-
skippable = false,
|
|
23267
23268
|
responses = [],
|
|
23268
|
-
isTimed = false,
|
|
23269
23269
|
rolesThatCanViewResponses
|
|
23270
23270
|
}) => {
|
|
23271
23271
|
const actions = (0, import_react_sdk52.useHMSActions)();
|
|
@@ -23281,16 +23281,10 @@ var init_QuestionCard = __esm({
|
|
|
23281
23281
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
|
23282
23282
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
|
23283
23283
|
const isLive = pollState === "started";
|
|
23284
|
+
const pollEnded = pollState === "stopped";
|
|
23284
23285
|
const canRespond = isLive && !localPeerResponse;
|
|
23286
|
+
const startTime = (0, import_react114.useRef)(Date.now());
|
|
23285
23287
|
const isCorrectAnswer = checkCorrectAnswer(answer, localPeerResponse, type);
|
|
23286
|
-
const prev = index !== 1;
|
|
23287
|
-
const next = index !== totalQuestions && (skippable || localPeerResponse);
|
|
23288
|
-
const moveNext = (0, import_react114.useCallback)(() => {
|
|
23289
|
-
setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
|
|
23290
|
-
}, [setCurrentIndex, totalQuestions]);
|
|
23291
|
-
const movePrev = () => {
|
|
23292
|
-
setCurrentIndex((curr) => Math.max(1, curr - 1));
|
|
23293
|
-
};
|
|
23294
23288
|
const [singleOptionAnswer, setSingleOptionAnswer] = (0, import_react114.useState)();
|
|
23295
23289
|
const [multipleOptionAnswer, setMultipleOptionAnswer] = (0, import_react114.useState)(/* @__PURE__ */ new Set());
|
|
23296
23290
|
const [showOptions, setShowOptions] = (0, import_react114.useState)(true);
|
|
@@ -23310,19 +23304,25 @@ var init_QuestionCard = __esm({
|
|
|
23310
23304
|
{
|
|
23311
23305
|
questionIndex: index,
|
|
23312
23306
|
option: singleOptionAnswer,
|
|
23313
|
-
options: Array.from(multipleOptionAnswer)
|
|
23314
|
-
|
|
23315
|
-
]);
|
|
23316
|
-
}), [actions, index, pollID, isValidVote, singleOptionAnswer, multipleOptionAnswer]);
|
|
23317
|
-
const handleSkip = (0, import_react114.useCallback)(() => __async(void 0, null, function* () {
|
|
23318
|
-
yield actions.interactivityCenter.addResponsesToPoll(pollID, [
|
|
23319
|
-
{
|
|
23320
|
-
questionIndex: index,
|
|
23321
|
-
skipped: true
|
|
23307
|
+
options: Array.from(multipleOptionAnswer),
|
|
23308
|
+
duration: Date.now() - startTime.current
|
|
23322
23309
|
}
|
|
23323
23310
|
]);
|
|
23324
|
-
|
|
23325
|
-
|
|
23311
|
+
startTime.current = Date.now();
|
|
23312
|
+
if (isQuiz && index !== totalQuestions) {
|
|
23313
|
+
setSingleOptionAnswer(void 0);
|
|
23314
|
+
setMultipleOptionAnswer(/* @__PURE__ */ new Set());
|
|
23315
|
+
}
|
|
23316
|
+
}), [
|
|
23317
|
+
isValidVote,
|
|
23318
|
+
actions.interactivityCenter,
|
|
23319
|
+
pollID,
|
|
23320
|
+
index,
|
|
23321
|
+
singleOptionAnswer,
|
|
23322
|
+
multipleOptionAnswer,
|
|
23323
|
+
totalQuestions,
|
|
23324
|
+
isQuiz
|
|
23325
|
+
]);
|
|
23326
23326
|
return /* @__PURE__ */ import_react114.default.createElement(
|
|
23327
23327
|
Box,
|
|
23328
23328
|
{
|
|
@@ -23346,42 +23346,20 @@ var init_QuestionCard = __esm({
|
|
|
23346
23346
|
gap: "$4"
|
|
23347
23347
|
}
|
|
23348
23348
|
},
|
|
23349
|
-
respondedToQuiz && isCorrectAnswer ? /* @__PURE__ */ import_react114.default.createElement(import_react_icons57.CheckCircleIcon, { height: 20, width: 20 }) : null,
|
|
23350
|
-
respondedToQuiz && !isCorrectAnswer ? /* @__PURE__ */ import_react114.default.createElement(import_react_icons57.CrossCircleIcon, { height: 20, width: 20 }) : null,
|
|
23349
|
+
respondedToQuiz && isCorrectAnswer && pollEnded ? /* @__PURE__ */ import_react114.default.createElement(import_react_icons57.CheckCircleIcon, { height: 20, width: 20 }) : null,
|
|
23350
|
+
respondedToQuiz && !isCorrectAnswer && pollEnded ? /* @__PURE__ */ import_react114.default.createElement(import_react_icons57.CrossCircleIcon, { height: 20, width: 20 }) : null,
|
|
23351
23351
|
"QUESTION ",
|
|
23352
23352
|
index,
|
|
23353
23353
|
" OF ",
|
|
23354
23354
|
totalQuestions,
|
|
23355
23355
|
": ",
|
|
23356
23356
|
type.toUpperCase()
|
|
23357
|
-
),
|
|
23358
|
-
IconButton,
|
|
23359
|
-
{
|
|
23360
|
-
disabled: !prev,
|
|
23361
|
-
onClick: movePrev,
|
|
23362
|
-
css: prev ? { color: "$on_surface_high", cursor: "pointer" } : {
|
|
23363
|
-
color: "$on_surface_low",
|
|
23364
|
-
cursor: "not-allowed"
|
|
23365
|
-
}
|
|
23366
|
-
},
|
|
23367
|
-
/* @__PURE__ */ import_react114.default.createElement(import_react_icons57.ChevronLeftIcon, { height: 16, width: 16 })
|
|
23368
|
-
), /* @__PURE__ */ import_react114.default.createElement(
|
|
23369
|
-
IconButton,
|
|
23370
|
-
{
|
|
23371
|
-
disabled: !next,
|
|
23372
|
-
onClick: moveNext,
|
|
23373
|
-
css: next ? { color: "$on_surface_high", cursor: "pointer" } : {
|
|
23374
|
-
color: "$on_surface_low",
|
|
23375
|
-
cursor: "not-allowed"
|
|
23376
|
-
}
|
|
23377
|
-
},
|
|
23378
|
-
/* @__PURE__ */ import_react114.default.createElement(import_react_icons57.ChevronRightIcon, { height: 16, width: 16 })
|
|
23379
|
-
)) : null),
|
|
23357
|
+
)),
|
|
23380
23358
|
/* @__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(
|
|
23381
23359
|
Box,
|
|
23382
23360
|
{
|
|
23383
23361
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
|
|
23384
|
-
onClick: () => setShowOptions((
|
|
23362
|
+
onClick: () => setShowOptions((prev) => !prev)
|
|
23385
23363
|
},
|
|
23386
23364
|
/* @__PURE__ */ import_react114.default.createElement(
|
|
23387
23365
|
import_react_icons57.ChevronDownIcon,
|
|
@@ -23393,17 +23371,18 @@ var init_QuestionCard = __esm({
|
|
|
23393
23371
|
/* @__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(
|
|
23394
23372
|
SingleChoiceOptions,
|
|
23395
23373
|
{
|
|
23374
|
+
key: index,
|
|
23396
23375
|
questionIndex: index,
|
|
23397
23376
|
isQuiz,
|
|
23398
23377
|
canRespond,
|
|
23399
|
-
response: localPeerResponse,
|
|
23400
23378
|
correctOptionIndex: answer == null ? void 0 : answer.option,
|
|
23401
23379
|
options,
|
|
23402
23380
|
setAnswer: setSingleOptionAnswer,
|
|
23403
23381
|
totalResponses: result == null ? void 0 : result.totalResponses,
|
|
23404
23382
|
showVoteCount,
|
|
23405
23383
|
localPeerResponse,
|
|
23406
|
-
isStopped: pollState === "stopped"
|
|
23384
|
+
isStopped: pollState === "stopped",
|
|
23385
|
+
answer: singleOptionAnswer
|
|
23407
23386
|
}
|
|
23408
23387
|
) : null, type === "multiple-choice" /* MULTIPLE_CHOICE */ ? /* @__PURE__ */ import_react114.default.createElement(
|
|
23409
23388
|
MultipleChoiceOptions,
|
|
@@ -23411,7 +23390,6 @@ var init_QuestionCard = __esm({
|
|
|
23411
23390
|
questionIndex: index,
|
|
23412
23391
|
isQuiz,
|
|
23413
23392
|
canRespond,
|
|
23414
|
-
response: localPeerResponse,
|
|
23415
23393
|
correctOptionIndexes: answer == null ? void 0 : answer.options,
|
|
23416
23394
|
options,
|
|
23417
23395
|
selectedOptions: multipleOptionAnswer,
|
|
@@ -23425,17 +23403,29 @@ var init_QuestionCard = __esm({
|
|
|
23425
23403
|
QuestionActions,
|
|
23426
23404
|
{
|
|
23427
23405
|
isValidVote,
|
|
23428
|
-
skippable,
|
|
23429
|
-
onSkip: handleSkip,
|
|
23430
23406
|
onVote: handleVote,
|
|
23431
23407
|
response: localPeerResponse,
|
|
23432
|
-
isQuiz
|
|
23408
|
+
isQuiz,
|
|
23409
|
+
incrementIndex: () => {
|
|
23410
|
+
setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
|
|
23411
|
+
}
|
|
23433
23412
|
}
|
|
23434
23413
|
))
|
|
23435
23414
|
);
|
|
23436
23415
|
};
|
|
23437
|
-
QuestionActions = ({ isValidVote,
|
|
23438
|
-
return /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } },
|
|
23416
|
+
QuestionActions = ({ isValidVote, response, isQuiz, onVote, incrementIndex }) => {
|
|
23417
|
+
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(
|
|
23418
|
+
Button,
|
|
23419
|
+
{
|
|
23420
|
+
css: { p: "$xs $10", fontWeight: "$semiBold" },
|
|
23421
|
+
disabled: !isValidVote,
|
|
23422
|
+
onClick: () => {
|
|
23423
|
+
onVote();
|
|
23424
|
+
incrementIndex();
|
|
23425
|
+
}
|
|
23426
|
+
},
|
|
23427
|
+
isQuiz ? "Answer" : "Vote"
|
|
23428
|
+
));
|
|
23439
23429
|
};
|
|
23440
23430
|
}
|
|
23441
23431
|
});
|
|
@@ -23472,7 +23462,6 @@ var init_StandardVoting = __esm({
|
|
|
23472
23462
|
result: question.result,
|
|
23473
23463
|
totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
|
|
23474
23464
|
options: question.options,
|
|
23475
|
-
skippable: question.skippable,
|
|
23476
23465
|
responses: question.responses,
|
|
23477
23466
|
answer: question.answer,
|
|
23478
23467
|
setCurrentIndex: () => {
|
|
@@ -23514,12 +23503,10 @@ var init_TimedVoting = __esm({
|
|
|
23514
23503
|
result: activeQuestion == null ? void 0 : activeQuestion.result,
|
|
23515
23504
|
totalQuestions: ((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0,
|
|
23516
23505
|
options: activeQuestion.options,
|
|
23517
|
-
skippable: activeQuestion.skippable || false,
|
|
23518
23506
|
responses: activeQuestion.responses,
|
|
23519
23507
|
answer: activeQuestion.answer,
|
|
23520
23508
|
setCurrentIndex,
|
|
23521
|
-
rolesThatCanViewResponses: poll.rolesThatCanViewResponses
|
|
23522
|
-
isTimed: true
|
|
23509
|
+
rolesThatCanViewResponses: poll.rolesThatCanViewResponses
|
|
23523
23510
|
}
|
|
23524
23511
|
);
|
|
23525
23512
|
};
|
|
@@ -23546,13 +23533,14 @@ var init_Voting = __esm({
|
|
|
23546
23533
|
const actions = (0, import_react_sdk53.useHMSActions)();
|
|
23547
23534
|
const poll = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPollByID)(id));
|
|
23548
23535
|
const pollCreatorName = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
|
|
23549
|
-
const
|
|
23536
|
+
const permissions = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions);
|
|
23537
|
+
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
|
23550
23538
|
const { setPollView } = usePollViewState();
|
|
23539
|
+
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
|
23551
23540
|
if (!poll) {
|
|
23552
23541
|
return null;
|
|
23553
23542
|
}
|
|
23554
23543
|
const canViewLeaderboard = poll.type === "quiz" && poll.state === "stopped" && !poll.anonymous;
|
|
23555
|
-
const isTimed = (poll.duration || 0) > 0;
|
|
23556
23544
|
const isLive = poll.state === "started";
|
|
23557
23545
|
return /* @__PURE__ */ import_react117.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react117.default.createElement(
|
|
23558
23546
|
Flex,
|
|
@@ -23589,7 +23577,7 @@ var init_Voting = __esm({
|
|
|
23589
23577
|
},
|
|
23590
23578
|
/* @__PURE__ */ import_react117.default.createElement(import_react_icons58.CrossIcon, { onClick: toggleVoting })
|
|
23591
23579
|
)
|
|
23592
|
-
), /* @__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,
|
|
23580
|
+
), /* @__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(
|
|
23593
23581
|
Button,
|
|
23594
23582
|
{
|
|
23595
23583
|
variant: "danger",
|
|
@@ -26050,7 +26038,15 @@ var init_TileMenuContent = __esm({
|
|
|
26050
26038
|
},
|
|
26051
26039
|
isAudioEnabled ? /* @__PURE__ */ import_react141.default.createElement(import_react_icons71.MicOnIcon, { height: 20, width: 20 }) : /* @__PURE__ */ import_react141.default.createElement(import_react_icons71.MicOffIcon, { height: 20, width: 20 }),
|
|
26052
26040
|
/* @__PURE__ */ import_react141.default.createElement("span", null, isAudioEnabled ? "Mute" : "Request Unmute")
|
|
26053
|
-
) : null, audioTrackID ? /* @__PURE__ */ import_react141.default.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ import_react141.default.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ import_react141.default.createElement(import_react_icons71.SpeakerIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react141.default.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ import_react141.default.createElement(
|
|
26041
|
+
) : null, audioTrackID ? /* @__PURE__ */ import_react141.default.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ import_react141.default.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ import_react141.default.createElement(import_react_icons71.SpeakerIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react141.default.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ import_react141.default.createElement(
|
|
26042
|
+
Slider,
|
|
26043
|
+
{
|
|
26044
|
+
css: { my: "0.5rem" },
|
|
26045
|
+
step: 5,
|
|
26046
|
+
value: [typeof volume === "number" ? volume : 100],
|
|
26047
|
+
onValueChange: (e) => setVolume == null ? void 0 : setVolume(e[0])
|
|
26048
|
+
}
|
|
26049
|
+
)) : null, showPinAction && /* @__PURE__ */ import_react141.default.createElement(import_react141.default.Fragment, null, /* @__PURE__ */ import_react141.default.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ import_react141.default.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() })), isMobile ? null : /* @__PURE__ */ import_react141.default.createElement(SimulcastLayers, { trackId: videoTrackID }), removeOthers ? /* @__PURE__ */ import_react141.default.createElement(
|
|
26054
26050
|
StyledMenuTile.RemoveItem,
|
|
26055
26051
|
{
|
|
26056
26052
|
css: __spreadProps(__spreadValues({}, spacingCSS), { borderTop: "none" }),
|
|
@@ -26450,11 +26446,20 @@ var init_VBHandler = __esm({
|
|
|
26450
26446
|
}
|
|
26451
26447
|
};
|
|
26452
26448
|
this.getBackground = () => {
|
|
26453
|
-
var _a8, _b7
|
|
26449
|
+
var _a8, _b7;
|
|
26454
26450
|
if (this.effectsPlugin) {
|
|
26455
26451
|
return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
|
|
26456
26452
|
} else {
|
|
26457
|
-
|
|
26453
|
+
const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
|
|
26454
|
+
return (background == null ? void 0 : background.src) || background;
|
|
26455
|
+
}
|
|
26456
|
+
};
|
|
26457
|
+
this.getBlurAmount = () => {
|
|
26458
|
+
var _a8;
|
|
26459
|
+
if (this.effectsPlugin) {
|
|
26460
|
+
return this.effectsPlugin.getBlurAmount();
|
|
26461
|
+
} else {
|
|
26462
|
+
return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hms_virtual_background2.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
|
|
26458
26463
|
}
|
|
26459
26464
|
};
|
|
26460
26465
|
this.getVBObject = () => {
|
|
@@ -26563,6 +26568,7 @@ var init_VBPicker = __esm({
|
|
|
26563
26568
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
|
26564
26569
|
const trackSelector = (0, import_react_sdk71.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
|
|
26565
26570
|
const track = (0, import_react_sdk71.useHMSStore)(trackSelector);
|
|
26571
|
+
const [blurAmount, setBlurAmount] = (0, import_react146.useState)(VBHandler.getBlurAmount() || 0.5);
|
|
26566
26572
|
const roomState = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectRoomState);
|
|
26567
26573
|
const isLargeRoom = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectIsLargeRoom);
|
|
26568
26574
|
const isEffectsEnabled = (0, import_react_sdk71.useHMSStore)(Qn);
|
|
@@ -26645,7 +26651,7 @@ var init_VBPicker = __esm({
|
|
|
26645
26651
|
value: import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR,
|
|
26646
26652
|
onClick: () => __async(void 0, null, function* () {
|
|
26647
26653
|
var _a9;
|
|
26648
|
-
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(
|
|
26654
|
+
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
|
|
26649
26655
|
setActiveBackground(import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR);
|
|
26650
26656
|
})
|
|
26651
26657
|
}
|
|
@@ -26653,6 +26659,19 @@ var init_VBPicker = __esm({
|
|
|
26653
26659
|
activeBackground
|
|
26654
26660
|
}
|
|
26655
26661
|
),
|
|
26662
|
+
activeBackground === import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ import_react146.default.createElement(
|
|
26663
|
+
Slider,
|
|
26664
|
+
{
|
|
26665
|
+
value: [blurAmount],
|
|
26666
|
+
onValueChange: (e) => __async(void 0, null, function* () {
|
|
26667
|
+
setBlurAmount(e[0]);
|
|
26668
|
+
yield VBHandler.setBlur(e[0]);
|
|
26669
|
+
}),
|
|
26670
|
+
step: 0.1,
|
|
26671
|
+
min: 0.1,
|
|
26672
|
+
max: 1
|
|
26673
|
+
}
|
|
26674
|
+
) : null,
|
|
26656
26675
|
/* @__PURE__ */ import_react146.default.createElement(
|
|
26657
26676
|
VBCollection,
|
|
26658
26677
|
{
|
|
@@ -27111,20 +27130,7 @@ var init_PreviewJoin = __esm({
|
|
|
27111
27130
|
textColor: "#FFF",
|
|
27112
27131
|
icon: /* @__PURE__ */ import_react152.default.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
|
|
27113
27132
|
}
|
|
27114
|
-
) : null, /* @__PURE__ */ import_react152.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react152.default.createElement(
|
|
27115
|
-
Flex,
|
|
27116
|
-
{
|
|
27117
|
-
align: "center",
|
|
27118
|
-
justify: "center",
|
|
27119
|
-
css: {
|
|
27120
|
-
mt: "$14",
|
|
27121
|
-
"@md": { mt: 0 },
|
|
27122
|
-
"@sm": { width: "100%" },
|
|
27123
|
-
flexDirection: "column"
|
|
27124
|
-
}
|
|
27125
|
-
},
|
|
27126
|
-
/* @__PURE__ */ import_react152.default.createElement(PreviewTile, { name, error: previewError })
|
|
27127
|
-
) : 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(
|
|
27133
|
+
) : 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(
|
|
27128
27134
|
PreviewForm_default,
|
|
27129
27135
|
{
|
|
27130
27136
|
name,
|
|
@@ -27165,9 +27171,12 @@ var init_PreviewJoin = __esm({
|
|
|
27165
27171
|
bg: "$surface_default",
|
|
27166
27172
|
aspectRatio,
|
|
27167
27173
|
height: "min(360px, 70vh)",
|
|
27174
|
+
width: "auto",
|
|
27168
27175
|
maxWidth: "640px",
|
|
27169
27176
|
overflow: "clip",
|
|
27177
|
+
mt: "$14",
|
|
27170
27178
|
"@md": {
|
|
27179
|
+
mt: 0,
|
|
27171
27180
|
width: "min(220px, 70vw)",
|
|
27172
27181
|
maxWidth: "100%",
|
|
27173
27182
|
my: "$4"
|
|
@@ -27225,15 +27234,20 @@ var init_RequestPrompt = __esm({
|
|
|
27225
27234
|
title,
|
|
27226
27235
|
body,
|
|
27227
27236
|
actionText = "Accept",
|
|
27228
|
-
onAction
|
|
27237
|
+
onAction,
|
|
27238
|
+
disableActions = false
|
|
27229
27239
|
}) => {
|
|
27230
27240
|
const isMobile = (0, import_react_use29.useMedia)(config.media.md);
|
|
27231
27241
|
if (isMobile) {
|
|
27232
|
-
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 })));
|
|
27242
|
+
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 })));
|
|
27233
27243
|
}
|
|
27234
|
-
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 }))));
|
|
27244
|
+
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 }))));
|
|
27235
27245
|
};
|
|
27236
|
-
RequestActions = ({
|
|
27246
|
+
RequestActions = ({
|
|
27247
|
+
onAction,
|
|
27248
|
+
actionText,
|
|
27249
|
+
disabled = false
|
|
27250
|
+
}) => /* @__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)));
|
|
27237
27251
|
}
|
|
27238
27252
|
});
|
|
27239
27253
|
|
|
@@ -27254,6 +27268,7 @@ var init_RoleChangeRequestModal = __esm({
|
|
|
27254
27268
|
RoleChangeRequestModal = () => {
|
|
27255
27269
|
const hmsActions = (0, import_react_sdk76.useHMSActions)();
|
|
27256
27270
|
const { updateMetaData } = useMyMetadata();
|
|
27271
|
+
const isPreview = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectIsInPreview);
|
|
27257
27272
|
const currentRole = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerRoleName);
|
|
27258
27273
|
const roleChangeRequest = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectRoleChangeRequest);
|
|
27259
27274
|
const name = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerName);
|
|
@@ -27316,7 +27331,8 @@ var init_RoleChangeRequestModal = __esm({
|
|
|
27316
27331
|
yield updateMetaData({ prevRole: currentRole });
|
|
27317
27332
|
yield hmsActions.lowerLocalPeerHand();
|
|
27318
27333
|
}),
|
|
27319
|
-
actionText: "Accept"
|
|
27334
|
+
actionText: "Accept",
|
|
27335
|
+
disableActions: !isPreview
|
|
27320
27336
|
}
|
|
27321
27337
|
);
|
|
27322
27338
|
};
|
|
@@ -29282,7 +29298,7 @@ var HLSView_exports = {};
|
|
|
29282
29298
|
__export(HLSView_exports, {
|
|
29283
29299
|
default: () => HLSView_default
|
|
29284
29300
|
});
|
|
29285
|
-
var import_react184, import_react_use38, import_hls_player3, import_screenfull3, import_react_sdk90, import_react_icons88, hlsPlayer, HLSView, HLSView_default;
|
|
29301
|
+
var import_react184, import_react_use38, import_hls_player3, import_screenfull3, import_react_sdk90, import_react_icons88, hlsPlayer, toastMap, HLSView, HLSView_default;
|
|
29286
29302
|
var init_HLSView = __esm({
|
|
29287
29303
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
|
29288
29304
|
"use strict";
|
|
@@ -29309,12 +29325,14 @@ var init_HLSView = __esm({
|
|
|
29309
29325
|
init_Tooltip2();
|
|
29310
29326
|
init_useSidepane();
|
|
29311
29327
|
init_constants();
|
|
29328
|
+
toastMap = {};
|
|
29312
29329
|
HLSView = () => {
|
|
29313
29330
|
var _a8;
|
|
29314
29331
|
const videoRef = (0, import_react184.useRef)(null);
|
|
29315
29332
|
const hlsViewRef = (0, import_react184.useRef)(null);
|
|
29316
29333
|
const hlsState = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectHLSState);
|
|
29317
29334
|
const enablHlsStats = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectAppData)(APP_DATA.hlsStats));
|
|
29335
|
+
const notification = (0, import_react_sdk90.useHMSNotifications)(import_react_sdk90.HMSNotificationTypes.POLL_STOPPED);
|
|
29318
29336
|
const hmsActions = (0, import_react_sdk90.useHMSActions)();
|
|
29319
29337
|
const { themeType, theme: theme2 } = useTheme();
|
|
29320
29338
|
const [streamEnded, setStreamEnded] = (0, import_react184.useState)(false);
|
|
@@ -29358,6 +29376,15 @@ var init_HLSView = __esm({
|
|
|
29358
29376
|
setStreamEnded(false);
|
|
29359
29377
|
}
|
|
29360
29378
|
}, [hlsUrl, streamEnded, lastHlsUrl]);
|
|
29379
|
+
(0, import_react184.useEffect)(() => {
|
|
29380
|
+
if (!notification)
|
|
29381
|
+
return;
|
|
29382
|
+
const toastID = toastMap == null ? void 0 : toastMap[notification.data.id];
|
|
29383
|
+
if (toastID) {
|
|
29384
|
+
ToastManager.removeToast(toastMap[notification.data.id]);
|
|
29385
|
+
delete toastMap[notification.data.id];
|
|
29386
|
+
}
|
|
29387
|
+
}, [notification]);
|
|
29361
29388
|
(0, import_react184.useEffect)(() => {
|
|
29362
29389
|
const videoElem = videoRef.current;
|
|
29363
29390
|
const setStreamEndedCallback = () => {
|
|
@@ -29394,7 +29421,7 @@ var init_HLSView = __esm({
|
|
|
29394
29421
|
const pollId = parsedPayload.substr(parsedPayload.indexOf(":") + 1);
|
|
29395
29422
|
const poll = vanillaStore.getState((0, import_react_sdk90.selectPollByID)(pollId));
|
|
29396
29423
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk90.selectPeerNameByID)(poll.startedBy)) || "Participant";
|
|
29397
|
-
ToastManager.addToast({
|
|
29424
|
+
const toastID = ToastManager.addToast({
|
|
29398
29425
|
title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
|
|
29399
29426
|
action: /* @__PURE__ */ import_react184.default.createElement(
|
|
29400
29427
|
Button,
|
|
@@ -29409,8 +29436,10 @@ var init_HLSView = __esm({
|
|
|
29409
29436
|
}
|
|
29410
29437
|
},
|
|
29411
29438
|
poll.type === "quiz" ? "Answer" : "Vote"
|
|
29412
|
-
)
|
|
29439
|
+
),
|
|
29440
|
+
duration: Infinity
|
|
29413
29441
|
});
|
|
29442
|
+
toastMap[pollId] = toastID;
|
|
29414
29443
|
return;
|
|
29415
29444
|
}
|
|
29416
29445
|
switch (parsedPayload.type) {
|
|
@@ -31108,24 +31137,39 @@ function PermissionErrorModal() {
|
|
|
31108
31137
|
}
|
|
31109
31138
|
setIsSystemError(notification.data.code === 3011);
|
|
31110
31139
|
}, [notification]);
|
|
31111
|
-
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(
|
|
31112
|
-
Dialog.
|
|
31140
|
+
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(
|
|
31141
|
+
Dialog.Content,
|
|
31113
31142
|
{
|
|
31114
31143
|
css: {
|
|
31115
|
-
|
|
31144
|
+
w: "min(380px, 90%)",
|
|
31145
|
+
p: "$8",
|
|
31146
|
+
// overlay over Sheet.tsx
|
|
31147
|
+
zIndex: 23
|
|
31116
31148
|
}
|
|
31117
31149
|
},
|
|
31118
|
-
|
|
31119
|
-
|
|
31120
|
-
"img",
|
|
31150
|
+
/* @__PURE__ */ import_react204.default.createElement(
|
|
31151
|
+
Dialog.Title,
|
|
31121
31152
|
{
|
|
31122
|
-
|
|
31123
|
-
|
|
31124
|
-
|
|
31125
|
-
}
|
|
31126
|
-
|
|
31127
|
-
|
|
31128
|
-
|
|
31153
|
+
css: {
|
|
31154
|
+
borderBottom: "1px solid $border_default"
|
|
31155
|
+
}
|
|
31156
|
+
},
|
|
31157
|
+
isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
|
31158
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(
|
|
31159
|
+
"img",
|
|
31160
|
+
{
|
|
31161
|
+
src: android_perm_1_default,
|
|
31162
|
+
style: { maxWidth: "100%", maxHeight: "100%" },
|
|
31163
|
+
alt: "Android Permission flow "
|
|
31164
|
+
}
|
|
31165
|
+
) : null,
|
|
31166
|
+
/* @__PURE__ */ import_react204.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
|
31167
|
+
),
|
|
31168
|
+
/* @__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),
|
|
31169
|
+
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,
|
|
31170
|
+
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,
|
|
31171
|
+
!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
|
|
31172
|
+
))) : null;
|
|
31129
31173
|
}
|
|
31130
31174
|
var import_react204, import_react_use42, import_react_sdk105;
|
|
31131
31175
|
var init_PermissionErrorModal = __esm({
|
|
@@ -31441,7 +31485,7 @@ function Notifications() {
|
|
|
31441
31485
|
case import_react_sdk110.HMSNotificationTypes.POLL_STARTED:
|
|
31442
31486
|
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
|
31443
31487
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk110.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
|
31444
|
-
ToastManager.addToast({
|
|
31488
|
+
const pollToastID = ToastManager.addToast({
|
|
31445
31489
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
|
31446
31490
|
action: /* @__PURE__ */ import_react209.default.createElement(
|
|
31447
31491
|
Button,
|
|
@@ -31456,8 +31500,17 @@ function Notifications() {
|
|
|
31456
31500
|
}
|
|
31457
31501
|
},
|
|
31458
31502
|
notification.data.type === "quiz" ? "Answer" : "Vote"
|
|
31459
|
-
)
|
|
31503
|
+
),
|
|
31504
|
+
duration: Infinity
|
|
31460
31505
|
});
|
|
31506
|
+
pollToastKey[notification.data.id] = pollToastID;
|
|
31507
|
+
}
|
|
31508
|
+
break;
|
|
31509
|
+
case import_react_sdk110.HMSNotificationTypes.POLL_STOPPED:
|
|
31510
|
+
const pollID = notification == null ? void 0 : notification.data.id;
|
|
31511
|
+
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
|
31512
|
+
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
|
31513
|
+
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
|
31461
31514
|
}
|
|
31462
31515
|
break;
|
|
31463
31516
|
default:
|
|
@@ -31469,7 +31522,7 @@ function Notifications() {
|
|
|
31469
31522
|
}
|
|
31470
31523
|
return /* @__PURE__ */ import_react209.default.createElement(import_react209.default.Fragment, null, /* @__PURE__ */ import_react209.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react209.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react209.default.createElement(TrackNotifications, null), roomState === import_react_sdk110.HMSRoomState.Connected ? /* @__PURE__ */ import_react209.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react209.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react209.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react209.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react209.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react209.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react209.default.createElement(HandRaisedNotifications, null));
|
|
31471
31524
|
}
|
|
31472
|
-
var import_react209, import_react_sdk110, import_react_icons97;
|
|
31525
|
+
var import_react209, import_react_sdk110, import_react_icons97, pollToastKey;
|
|
31473
31526
|
var init_Notifications = __esm({
|
|
31474
31527
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
|
31475
31528
|
"use strict";
|
|
@@ -31496,6 +31549,7 @@ var init_Notifications = __esm({
|
|
|
31496
31549
|
init_useUISettings();
|
|
31497
31550
|
init_utils3();
|
|
31498
31551
|
init_constants();
|
|
31552
|
+
pollToastKey = {};
|
|
31499
31553
|
}
|
|
31500
31554
|
});
|
|
31501
31555
|
|