@100mslive/roomkit-react 0.2.2-alpha.2 → 0.2.2-alpha.3
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-ZG7ZVFEM.js} +19 -4
- package/dist/HLSView-ZG7ZVFEM.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-O7BEFUE4.js} +226 -191
- package/dist/{chunk-ERKB3GGI.js.map → chunk-O7BEFUE4.js.map} +3 -3
- package/dist/index.cjs.js +185 -132
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +45 -45
- package/dist/meta.esbuild.json +55 -55
- 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 +4 -2
- package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +38 -81
- 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", 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.3", 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: "01e34a9d446f82cf364a6c18618a143f494f7a931c21ebdc9c2eaa8626e8825f", 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--1706012308082-0.6869927814610712:/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--1706012307604-0.5431037108427657:/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--1706012284974-0.8120977781744145:/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--1706012308082-0.6869927814610712/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.3", 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.3", 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.3", 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.3", 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.3", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", 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,7 +23125,8 @@ 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)
|
|
@@ -23134,7 +23134,8 @@ var init_PeerParticipationSummary = __esm({
|
|
|
23134
23134
|
] : [
|
|
23135
23135
|
{ title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position) ? `${peerEntry.position}/${summary.totalUsers}` : "-" },
|
|
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)();
|
|
@@ -23282,15 +23282,8 @@ var init_QuestionCard = __esm({
|
|
|
23282
23282
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
|
23283
23283
|
const isLive = pollState === "started";
|
|
23284
23284
|
const canRespond = isLive && !localPeerResponse;
|
|
23285
|
+
const startTime = (0, import_react114.useRef)(Date.now());
|
|
23285
23286
|
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
23287
|
const [singleOptionAnswer, setSingleOptionAnswer] = (0, import_react114.useState)();
|
|
23295
23288
|
const [multipleOptionAnswer, setMultipleOptionAnswer] = (0, import_react114.useState)(/* @__PURE__ */ new Set());
|
|
23296
23289
|
const [showOptions, setShowOptions] = (0, import_react114.useState)(true);
|
|
@@ -23310,19 +23303,25 @@ var init_QuestionCard = __esm({
|
|
|
23310
23303
|
{
|
|
23311
23304
|
questionIndex: index,
|
|
23312
23305
|
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
|
|
23306
|
+
options: Array.from(multipleOptionAnswer),
|
|
23307
|
+
duration: Date.now() - startTime.current
|
|
23322
23308
|
}
|
|
23323
23309
|
]);
|
|
23324
|
-
|
|
23325
|
-
|
|
23310
|
+
startTime.current = Date.now();
|
|
23311
|
+
if (isQuiz && index !== totalQuestions) {
|
|
23312
|
+
setSingleOptionAnswer(void 0);
|
|
23313
|
+
setMultipleOptionAnswer(/* @__PURE__ */ new Set());
|
|
23314
|
+
}
|
|
23315
|
+
}), [
|
|
23316
|
+
isValidVote,
|
|
23317
|
+
actions.interactivityCenter,
|
|
23318
|
+
pollID,
|
|
23319
|
+
index,
|
|
23320
|
+
singleOptionAnswer,
|
|
23321
|
+
multipleOptionAnswer,
|
|
23322
|
+
totalQuestions,
|
|
23323
|
+
isQuiz
|
|
23324
|
+
]);
|
|
23326
23325
|
return /* @__PURE__ */ import_react114.default.createElement(
|
|
23327
23326
|
Box,
|
|
23328
23327
|
{
|
|
@@ -23354,34 +23353,12 @@ var init_QuestionCard = __esm({
|
|
|
23354
23353
|
totalQuestions,
|
|
23355
23354
|
": ",
|
|
23356
23355
|
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),
|
|
23356
|
+
)),
|
|
23380
23357
|
/* @__PURE__ */ import_react114.default.createElement(Flex, { justify: "between", css: { my: "$md" } }, /* @__PURE__ */ import_react114.default.createElement(Text, { css: { color: "$on_surface_high" } }, text), /* @__PURE__ */ import_react114.default.createElement(
|
|
23381
23358
|
Box,
|
|
23382
23359
|
{
|
|
23383
23360
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
|
|
23384
|
-
onClick: () => setShowOptions((
|
|
23361
|
+
onClick: () => setShowOptions((prev) => !prev)
|
|
23385
23362
|
},
|
|
23386
23363
|
/* @__PURE__ */ import_react114.default.createElement(
|
|
23387
23364
|
import_react_icons57.ChevronDownIcon,
|
|
@@ -23393,17 +23370,18 @@ var init_QuestionCard = __esm({
|
|
|
23393
23370
|
/* @__PURE__ */ import_react114.default.createElement(Box, { css: { maxHeight: showOptions ? "$80" : "0", transition: "max-height 0.3s ease", overflowY: "hidden" } }, type === "single-choice" /* SINGLE_CHOICE */ ? /* @__PURE__ */ import_react114.default.createElement(
|
|
23394
23371
|
SingleChoiceOptions,
|
|
23395
23372
|
{
|
|
23373
|
+
key: index,
|
|
23396
23374
|
questionIndex: index,
|
|
23397
23375
|
isQuiz,
|
|
23398
23376
|
canRespond,
|
|
23399
|
-
response: localPeerResponse,
|
|
23400
23377
|
correctOptionIndex: answer == null ? void 0 : answer.option,
|
|
23401
23378
|
options,
|
|
23402
23379
|
setAnswer: setSingleOptionAnswer,
|
|
23403
23380
|
totalResponses: result == null ? void 0 : result.totalResponses,
|
|
23404
23381
|
showVoteCount,
|
|
23405
23382
|
localPeerResponse,
|
|
23406
|
-
isStopped: pollState === "stopped"
|
|
23383
|
+
isStopped: pollState === "stopped",
|
|
23384
|
+
answer: singleOptionAnswer
|
|
23407
23385
|
}
|
|
23408
23386
|
) : null, type === "multiple-choice" /* MULTIPLE_CHOICE */ ? /* @__PURE__ */ import_react114.default.createElement(
|
|
23409
23387
|
MultipleChoiceOptions,
|
|
@@ -23411,7 +23389,6 @@ var init_QuestionCard = __esm({
|
|
|
23411
23389
|
questionIndex: index,
|
|
23412
23390
|
isQuiz,
|
|
23413
23391
|
canRespond,
|
|
23414
|
-
response: localPeerResponse,
|
|
23415
23392
|
correctOptionIndexes: answer == null ? void 0 : answer.options,
|
|
23416
23393
|
options,
|
|
23417
23394
|
selectedOptions: multipleOptionAnswer,
|
|
@@ -23425,17 +23402,29 @@ var init_QuestionCard = __esm({
|
|
|
23425
23402
|
QuestionActions,
|
|
23426
23403
|
{
|
|
23427
23404
|
isValidVote,
|
|
23428
|
-
skippable,
|
|
23429
|
-
onSkip: handleSkip,
|
|
23430
23405
|
onVote: handleVote,
|
|
23431
23406
|
response: localPeerResponse,
|
|
23432
|
-
isQuiz
|
|
23407
|
+
isQuiz,
|
|
23408
|
+
incrementIndex: () => {
|
|
23409
|
+
setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
|
|
23410
|
+
}
|
|
23433
23411
|
}
|
|
23434
23412
|
))
|
|
23435
23413
|
);
|
|
23436
23414
|
};
|
|
23437
|
-
QuestionActions = ({ isValidVote,
|
|
23438
|
-
return /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } },
|
|
23415
|
+
QuestionActions = ({ isValidVote, response, isQuiz, onVote, incrementIndex }) => {
|
|
23416
|
+
return /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, response ? /* @__PURE__ */ import_react114.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ import_react114.default.createElement(
|
|
23417
|
+
Button,
|
|
23418
|
+
{
|
|
23419
|
+
css: { p: "$xs $10", fontWeight: "$semiBold" },
|
|
23420
|
+
disabled: !isValidVote,
|
|
23421
|
+
onClick: () => {
|
|
23422
|
+
onVote();
|
|
23423
|
+
incrementIndex();
|
|
23424
|
+
}
|
|
23425
|
+
},
|
|
23426
|
+
isQuiz ? "Answer" : "Vote"
|
|
23427
|
+
));
|
|
23439
23428
|
};
|
|
23440
23429
|
}
|
|
23441
23430
|
});
|
|
@@ -23472,7 +23461,6 @@ var init_StandardVoting = __esm({
|
|
|
23472
23461
|
result: question.result,
|
|
23473
23462
|
totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
|
|
23474
23463
|
options: question.options,
|
|
23475
|
-
skippable: question.skippable,
|
|
23476
23464
|
responses: question.responses,
|
|
23477
23465
|
answer: question.answer,
|
|
23478
23466
|
setCurrentIndex: () => {
|
|
@@ -23514,12 +23502,10 @@ var init_TimedVoting = __esm({
|
|
|
23514
23502
|
result: activeQuestion == null ? void 0 : activeQuestion.result,
|
|
23515
23503
|
totalQuestions: ((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0,
|
|
23516
23504
|
options: activeQuestion.options,
|
|
23517
|
-
skippable: activeQuestion.skippable || false,
|
|
23518
23505
|
responses: activeQuestion.responses,
|
|
23519
23506
|
answer: activeQuestion.answer,
|
|
23520
23507
|
setCurrentIndex,
|
|
23521
|
-
rolesThatCanViewResponses: poll.rolesThatCanViewResponses
|
|
23522
|
-
isTimed: true
|
|
23508
|
+
rolesThatCanViewResponses: poll.rolesThatCanViewResponses
|
|
23523
23509
|
}
|
|
23524
23510
|
);
|
|
23525
23511
|
};
|
|
@@ -23546,13 +23532,14 @@ var init_Voting = __esm({
|
|
|
23546
23532
|
const actions = (0, import_react_sdk53.useHMSActions)();
|
|
23547
23533
|
const poll = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPollByID)(id));
|
|
23548
23534
|
const pollCreatorName = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
|
|
23549
|
-
const
|
|
23535
|
+
const permissions = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions);
|
|
23536
|
+
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
|
23550
23537
|
const { setPollView } = usePollViewState();
|
|
23538
|
+
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
|
23551
23539
|
if (!poll) {
|
|
23552
23540
|
return null;
|
|
23553
23541
|
}
|
|
23554
23542
|
const canViewLeaderboard = poll.type === "quiz" && poll.state === "stopped" && !poll.anonymous;
|
|
23555
|
-
const isTimed = (poll.duration || 0) > 0;
|
|
23556
23543
|
const isLive = poll.state === "started";
|
|
23557
23544
|
return /* @__PURE__ */ import_react117.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react117.default.createElement(
|
|
23558
23545
|
Flex,
|
|
@@ -23589,7 +23576,7 @@ var init_Voting = __esm({
|
|
|
23589
23576
|
},
|
|
23590
23577
|
/* @__PURE__ */ import_react117.default.createElement(import_react_icons58.CrossIcon, { onClick: toggleVoting })
|
|
23591
23578
|
)
|
|
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,
|
|
23579
|
+
), /* @__PURE__ */ import_react117.default.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ import_react117.default.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, showSingleView ? /* @__PURE__ */ import_react117.default.createElement(TimedView, { poll }) : /* @__PURE__ */ import_react117.default.createElement(StandardView, { poll }), poll.state === "started" && canEndActivity && /* @__PURE__ */ import_react117.default.createElement(
|
|
23593
23580
|
Button,
|
|
23594
23581
|
{
|
|
23595
23582
|
variant: "danger",
|
|
@@ -26050,7 +26037,15 @@ var init_TileMenuContent = __esm({
|
|
|
26050
26037
|
},
|
|
26051
26038
|
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
26039
|
/* @__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(
|
|
26040
|
+
) : 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
|
+
Slider,
|
|
26042
|
+
{
|
|
26043
|
+
css: { my: "0.5rem" },
|
|
26044
|
+
step: 5,
|
|
26045
|
+
value: [typeof volume === "number" ? volume : 100],
|
|
26046
|
+
onValueChange: (e) => setVolume == null ? void 0 : setVolume(e[0])
|
|
26047
|
+
}
|
|
26048
|
+
)) : 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
26049
|
StyledMenuTile.RemoveItem,
|
|
26055
26050
|
{
|
|
26056
26051
|
css: __spreadProps(__spreadValues({}, spacingCSS), { borderTop: "none" }),
|
|
@@ -26450,11 +26445,20 @@ var init_VBHandler = __esm({
|
|
|
26450
26445
|
}
|
|
26451
26446
|
};
|
|
26452
26447
|
this.getBackground = () => {
|
|
26453
|
-
var _a8, _b7
|
|
26448
|
+
var _a8, _b7;
|
|
26454
26449
|
if (this.effectsPlugin) {
|
|
26455
26450
|
return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
|
|
26456
26451
|
} else {
|
|
26457
|
-
|
|
26452
|
+
const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
|
|
26453
|
+
return (background == null ? void 0 : background.src) || background;
|
|
26454
|
+
}
|
|
26455
|
+
};
|
|
26456
|
+
this.getBlurAmount = () => {
|
|
26457
|
+
var _a8;
|
|
26458
|
+
if (this.effectsPlugin) {
|
|
26459
|
+
return this.effectsPlugin.getBlurAmount();
|
|
26460
|
+
} else {
|
|
26461
|
+
return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hms_virtual_background2.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
|
|
26458
26462
|
}
|
|
26459
26463
|
};
|
|
26460
26464
|
this.getVBObject = () => {
|
|
@@ -26563,6 +26567,7 @@ var init_VBPicker = __esm({
|
|
|
26563
26567
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
|
26564
26568
|
const trackSelector = (0, import_react_sdk71.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
|
|
26565
26569
|
const track = (0, import_react_sdk71.useHMSStore)(trackSelector);
|
|
26570
|
+
const [blurAmount, setBlurAmount] = (0, import_react146.useState)(VBHandler.getBlurAmount() || 0.5);
|
|
26566
26571
|
const roomState = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectRoomState);
|
|
26567
26572
|
const isLargeRoom = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectIsLargeRoom);
|
|
26568
26573
|
const isEffectsEnabled = (0, import_react_sdk71.useHMSStore)(Qn);
|
|
@@ -26645,7 +26650,7 @@ var init_VBPicker = __esm({
|
|
|
26645
26650
|
value: import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR,
|
|
26646
26651
|
onClick: () => __async(void 0, null, function* () {
|
|
26647
26652
|
var _a9;
|
|
26648
|
-
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(
|
|
26653
|
+
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
|
|
26649
26654
|
setActiveBackground(import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR);
|
|
26650
26655
|
})
|
|
26651
26656
|
}
|
|
@@ -26653,6 +26658,19 @@ var init_VBPicker = __esm({
|
|
|
26653
26658
|
activeBackground
|
|
26654
26659
|
}
|
|
26655
26660
|
),
|
|
26661
|
+
activeBackground === import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ import_react146.default.createElement(
|
|
26662
|
+
Slider,
|
|
26663
|
+
{
|
|
26664
|
+
value: [blurAmount],
|
|
26665
|
+
onValueChange: (e) => __async(void 0, null, function* () {
|
|
26666
|
+
setBlurAmount(e[0]);
|
|
26667
|
+
yield VBHandler.setBlur(e[0]);
|
|
26668
|
+
}),
|
|
26669
|
+
step: 0.1,
|
|
26670
|
+
min: 0.1,
|
|
26671
|
+
max: 1
|
|
26672
|
+
}
|
|
26673
|
+
) : null,
|
|
26656
26674
|
/* @__PURE__ */ import_react146.default.createElement(
|
|
26657
26675
|
VBCollection,
|
|
26658
26676
|
{
|
|
@@ -27111,20 +27129,7 @@ var init_PreviewJoin = __esm({
|
|
|
27111
27129
|
textColor: "#FFF",
|
|
27112
27130
|
icon: /* @__PURE__ */ import_react152.default.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
|
|
27113
27131
|
}
|
|
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(
|
|
27132
|
+
) : 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
27133
|
PreviewForm_default,
|
|
27129
27134
|
{
|
|
27130
27135
|
name,
|
|
@@ -27165,9 +27170,12 @@ var init_PreviewJoin = __esm({
|
|
|
27165
27170
|
bg: "$surface_default",
|
|
27166
27171
|
aspectRatio,
|
|
27167
27172
|
height: "min(360px, 70vh)",
|
|
27173
|
+
width: "auto",
|
|
27168
27174
|
maxWidth: "640px",
|
|
27169
27175
|
overflow: "clip",
|
|
27176
|
+
mt: "$14",
|
|
27170
27177
|
"@md": {
|
|
27178
|
+
mt: 0,
|
|
27171
27179
|
width: "min(220px, 70vw)",
|
|
27172
27180
|
maxWidth: "100%",
|
|
27173
27181
|
my: "$4"
|
|
@@ -27225,15 +27233,20 @@ var init_RequestPrompt = __esm({
|
|
|
27225
27233
|
title,
|
|
27226
27234
|
body,
|
|
27227
27235
|
actionText = "Accept",
|
|
27228
|
-
onAction
|
|
27236
|
+
onAction,
|
|
27237
|
+
disableActions = false
|
|
27229
27238
|
}) => {
|
|
27230
27239
|
const isMobile = (0, import_react_use29.useMedia)(config.media.md);
|
|
27231
27240
|
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 })));
|
|
27241
|
+
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
27242
|
}
|
|
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 }))));
|
|
27243
|
+
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
27244
|
};
|
|
27236
|
-
RequestActions = ({
|
|
27245
|
+
RequestActions = ({
|
|
27246
|
+
onAction,
|
|
27247
|
+
actionText,
|
|
27248
|
+
disabled = false
|
|
27249
|
+
}) => /* @__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
27250
|
}
|
|
27238
27251
|
});
|
|
27239
27252
|
|
|
@@ -27254,6 +27267,7 @@ var init_RoleChangeRequestModal = __esm({
|
|
|
27254
27267
|
RoleChangeRequestModal = () => {
|
|
27255
27268
|
const hmsActions = (0, import_react_sdk76.useHMSActions)();
|
|
27256
27269
|
const { updateMetaData } = useMyMetadata();
|
|
27270
|
+
const isPreview = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectIsInPreview);
|
|
27257
27271
|
const currentRole = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerRoleName);
|
|
27258
27272
|
const roleChangeRequest = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectRoleChangeRequest);
|
|
27259
27273
|
const name = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerName);
|
|
@@ -27316,7 +27330,8 @@ var init_RoleChangeRequestModal = __esm({
|
|
|
27316
27330
|
yield updateMetaData({ prevRole: currentRole });
|
|
27317
27331
|
yield hmsActions.lowerLocalPeerHand();
|
|
27318
27332
|
}),
|
|
27319
|
-
actionText: "Accept"
|
|
27333
|
+
actionText: "Accept",
|
|
27334
|
+
disableActions: !isPreview
|
|
27320
27335
|
}
|
|
27321
27336
|
);
|
|
27322
27337
|
};
|
|
@@ -29282,7 +29297,7 @@ var HLSView_exports = {};
|
|
|
29282
29297
|
__export(HLSView_exports, {
|
|
29283
29298
|
default: () => HLSView_default
|
|
29284
29299
|
});
|
|
29285
|
-
var import_react184, import_react_use38, import_hls_player3, import_screenfull3, import_react_sdk90, import_react_icons88, hlsPlayer, HLSView, HLSView_default;
|
|
29300
|
+
var import_react184, import_react_use38, import_hls_player3, import_screenfull3, import_react_sdk90, import_react_icons88, hlsPlayer, toastMap, HLSView, HLSView_default;
|
|
29286
29301
|
var init_HLSView = __esm({
|
|
29287
29302
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
|
29288
29303
|
"use strict";
|
|
@@ -29309,12 +29324,14 @@ var init_HLSView = __esm({
|
|
|
29309
29324
|
init_Tooltip2();
|
|
29310
29325
|
init_useSidepane();
|
|
29311
29326
|
init_constants();
|
|
29327
|
+
toastMap = {};
|
|
29312
29328
|
HLSView = () => {
|
|
29313
29329
|
var _a8;
|
|
29314
29330
|
const videoRef = (0, import_react184.useRef)(null);
|
|
29315
29331
|
const hlsViewRef = (0, import_react184.useRef)(null);
|
|
29316
29332
|
const hlsState = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectHLSState);
|
|
29317
29333
|
const enablHlsStats = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectAppData)(APP_DATA.hlsStats));
|
|
29334
|
+
const notification = (0, import_react_sdk90.useHMSNotifications)(import_react_sdk90.HMSNotificationTypes.POLL_STOPPED);
|
|
29318
29335
|
const hmsActions = (0, import_react_sdk90.useHMSActions)();
|
|
29319
29336
|
const { themeType, theme: theme2 } = useTheme();
|
|
29320
29337
|
const [streamEnded, setStreamEnded] = (0, import_react184.useState)(false);
|
|
@@ -29358,6 +29375,15 @@ var init_HLSView = __esm({
|
|
|
29358
29375
|
setStreamEnded(false);
|
|
29359
29376
|
}
|
|
29360
29377
|
}, [hlsUrl, streamEnded, lastHlsUrl]);
|
|
29378
|
+
(0, import_react184.useEffect)(() => {
|
|
29379
|
+
if (!notification)
|
|
29380
|
+
return;
|
|
29381
|
+
const toastID = toastMap == null ? void 0 : toastMap[notification.data.id];
|
|
29382
|
+
if (toastID) {
|
|
29383
|
+
ToastManager.removeToast(toastMap[notification.data.id]);
|
|
29384
|
+
delete toastMap[notification.data.id];
|
|
29385
|
+
}
|
|
29386
|
+
}, [notification]);
|
|
29361
29387
|
(0, import_react184.useEffect)(() => {
|
|
29362
29388
|
const videoElem = videoRef.current;
|
|
29363
29389
|
const setStreamEndedCallback = () => {
|
|
@@ -29394,7 +29420,7 @@ var init_HLSView = __esm({
|
|
|
29394
29420
|
const pollId = parsedPayload.substr(parsedPayload.indexOf(":") + 1);
|
|
29395
29421
|
const poll = vanillaStore.getState((0, import_react_sdk90.selectPollByID)(pollId));
|
|
29396
29422
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk90.selectPeerNameByID)(poll.startedBy)) || "Participant";
|
|
29397
|
-
ToastManager.addToast({
|
|
29423
|
+
const toastID = ToastManager.addToast({
|
|
29398
29424
|
title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
|
|
29399
29425
|
action: /* @__PURE__ */ import_react184.default.createElement(
|
|
29400
29426
|
Button,
|
|
@@ -29409,8 +29435,10 @@ var init_HLSView = __esm({
|
|
|
29409
29435
|
}
|
|
29410
29436
|
},
|
|
29411
29437
|
poll.type === "quiz" ? "Answer" : "Vote"
|
|
29412
|
-
)
|
|
29438
|
+
),
|
|
29439
|
+
duration: Infinity
|
|
29413
29440
|
});
|
|
29441
|
+
toastMap[pollId] = toastID;
|
|
29414
29442
|
return;
|
|
29415
29443
|
}
|
|
29416
29444
|
switch (parsedPayload.type) {
|
|
@@ -31108,24 +31136,39 @@ function PermissionErrorModal() {
|
|
|
31108
31136
|
}
|
|
31109
31137
|
setIsSystemError(notification.data.code === 3011);
|
|
31110
31138
|
}, [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.
|
|
31139
|
+
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(
|
|
31140
|
+
Dialog.Content,
|
|
31113
31141
|
{
|
|
31114
31142
|
css: {
|
|
31115
|
-
|
|
31143
|
+
w: "min(380px, 90%)",
|
|
31144
|
+
p: "$8",
|
|
31145
|
+
// overlay over Sheet.tsx
|
|
31146
|
+
zIndex: 23
|
|
31116
31147
|
}
|
|
31117
31148
|
},
|
|
31118
|
-
|
|
31119
|
-
|
|
31120
|
-
"img",
|
|
31149
|
+
/* @__PURE__ */ import_react204.default.createElement(
|
|
31150
|
+
Dialog.Title,
|
|
31121
31151
|
{
|
|
31122
|
-
|
|
31123
|
-
|
|
31124
|
-
|
|
31125
|
-
}
|
|
31126
|
-
|
|
31127
|
-
|
|
31128
|
-
|
|
31152
|
+
css: {
|
|
31153
|
+
borderBottom: "1px solid $border_default"
|
|
31154
|
+
}
|
|
31155
|
+
},
|
|
31156
|
+
isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
|
31157
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(
|
|
31158
|
+
"img",
|
|
31159
|
+
{
|
|
31160
|
+
src: android_perm_1_default,
|
|
31161
|
+
style: { maxWidth: "100%", maxHeight: "100%" },
|
|
31162
|
+
alt: "Android Permission flow "
|
|
31163
|
+
}
|
|
31164
|
+
) : null,
|
|
31165
|
+
/* @__PURE__ */ import_react204.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
|
31166
|
+
),
|
|
31167
|
+
/* @__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),
|
|
31168
|
+
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,
|
|
31169
|
+
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,
|
|
31170
|
+
!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
|
|
31171
|
+
))) : null;
|
|
31129
31172
|
}
|
|
31130
31173
|
var import_react204, import_react_use42, import_react_sdk105;
|
|
31131
31174
|
var init_PermissionErrorModal = __esm({
|
|
@@ -31441,7 +31484,7 @@ function Notifications() {
|
|
|
31441
31484
|
case import_react_sdk110.HMSNotificationTypes.POLL_STARTED:
|
|
31442
31485
|
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
|
31443
31486
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk110.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
|
31444
|
-
ToastManager.addToast({
|
|
31487
|
+
const pollToastID = ToastManager.addToast({
|
|
31445
31488
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
|
31446
31489
|
action: /* @__PURE__ */ import_react209.default.createElement(
|
|
31447
31490
|
Button,
|
|
@@ -31456,8 +31499,17 @@ function Notifications() {
|
|
|
31456
31499
|
}
|
|
31457
31500
|
},
|
|
31458
31501
|
notification.data.type === "quiz" ? "Answer" : "Vote"
|
|
31459
|
-
)
|
|
31502
|
+
),
|
|
31503
|
+
duration: Infinity
|
|
31460
31504
|
});
|
|
31505
|
+
pollToastKey[notification.data.id] = pollToastID;
|
|
31506
|
+
}
|
|
31507
|
+
break;
|
|
31508
|
+
case import_react_sdk110.HMSNotificationTypes.POLL_STOPPED:
|
|
31509
|
+
const pollID = notification == null ? void 0 : notification.data.id;
|
|
31510
|
+
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
|
31511
|
+
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
|
31512
|
+
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
|
31461
31513
|
}
|
|
31462
31514
|
break;
|
|
31463
31515
|
default:
|
|
@@ -31469,7 +31521,7 @@ function Notifications() {
|
|
|
31469
31521
|
}
|
|
31470
31522
|
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
31523
|
}
|
|
31472
|
-
var import_react209, import_react_sdk110, import_react_icons97;
|
|
31524
|
+
var import_react209, import_react_sdk110, import_react_icons97, pollToastKey;
|
|
31473
31525
|
var init_Notifications = __esm({
|
|
31474
31526
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
|
31475
31527
|
"use strict";
|
|
@@ -31496,6 +31548,7 @@ var init_Notifications = __esm({
|
|
|
31496
31548
|
init_useUISettings();
|
|
31497
31549
|
init_utils3();
|
|
31498
31550
|
init_constants();
|
|
31551
|
+
pollToastKey = {};
|
|
31499
31552
|
}
|
|
31500
31553
|
});
|
|
31501
31554
|
|