@100mslive/roomkit-react 0.2.1 → 0.2.2-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-U7FQ2YLK.js → HLSView-4TLGLPKO.js} +19 -4
- package/dist/HLSView-4TLGLPKO.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-GNQAOG73.js → chunk-ARSLHHAZ.js} +176 -159
- package/dist/{chunk-GNQAOG73.js.map → chunk-ARSLHHAZ.js.map} +3 -3
- package/dist/index.cjs.js +159 -124
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +41 -41
- package/dist/meta.esbuild.json +50 -50
- package/package.json +6 -6
- package/src/Button/Button.tsx +2 -2
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +8 -1
- 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 +3 -3
- 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/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-U7FQ2YLK.js.map +0 -7
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "587", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.12/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.5/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240116.3.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18220", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "7581386761", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d059b6f9ea6851f26271332df4cf83c9a4f3d567", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "563fa88ae30f556184862c3ef699a9d8b58e6a1cf7ef09a45333c2a07bd3dc27", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1705653583868-0.30605188987079:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705653583674-0.13111361219514506:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705653561343-0.18765335287556817:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705653561165-0.44274391677102254:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b56e162d-8a5e-4ec3-b372-3cd8b0948b9b", INVOCATION_ID: "d9e6c2c528bc459ea085ea3128591820", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "413", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 2", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "d059b6f9ea6851f26271332df4cf83c9a4f3d567", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5bb1b49a-a892-4389-be0a-e6c1ac4d9278" };
|
109
|
+
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/scripts", 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.0", 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: "8d7ba53451278864a4cd1c54a4294a9720fede2924e96082fbed986180ee8a8c", 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--1705913498356-0.43708507478229097:/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--1705913497811-0.379639415023473:/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--1705913475111-0.1370974562629641:/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--1705913498356-0.43708507478229097/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.0", 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.0", 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.0", 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.0", 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" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -8888,8 +8888,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
|
|
8888
8888
|
"$secondary_bright",
|
8889
8889
|
"$secondary_dim",
|
8890
8890
|
"$secondary_disabled",
|
8891
|
-
"$
|
8892
|
-
"$
|
8891
|
+
"$on_secondary_high",
|
8892
|
+
"$on_secondary_low"
|
8893
8893
|
),
|
8894
8894
|
danger: getButtonVariants(
|
8895
8895
|
"$alert_error_default",
|
@@ -11185,7 +11185,7 @@ var Collapsible = {
|
|
11185
11185
|
|
11186
11186
|
// src/Prebuilt/App.tsx
|
11187
11187
|
init_define_process_env();
|
11188
|
-
import React170, { useEffect as useEffect66, useRef as
|
11188
|
+
import React170, { useEffect as useEffect66, useRef as useRef25 } from "react";
|
11189
11189
|
import {
|
11190
11190
|
HMSReactiveStore,
|
11191
11191
|
HMSRoomProvider,
|
@@ -11814,7 +11814,7 @@ var AuthToken_default = AuthToken;
|
|
11814
11814
|
|
11815
11815
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
11816
11816
|
init_define_process_env();
|
11817
|
-
import React150, { useEffect as useEffect47, useRef as
|
11817
|
+
import React150, { useEffect as useEffect47, useRef as useRef23, useState as useState61 } from "react";
|
11818
11818
|
import {
|
11819
11819
|
HMSRoomState as HMSRoomState7,
|
11820
11820
|
selectAppData as selectAppData7,
|
@@ -12521,7 +12521,7 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
12521
12521
|
borderTopRightRadius: "$3",
|
12522
12522
|
boxShadow: "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)",
|
12523
12523
|
position: "fixed",
|
12524
|
-
zIndex:
|
12524
|
+
zIndex: 22,
|
12525
12525
|
top: 0,
|
12526
12526
|
right: 0,
|
12527
12527
|
left: 0,
|
@@ -17263,7 +17263,7 @@ var m = (a2, e) => {
|
|
17263
17263
|
Gr.call(e, t) && Br(a2, t, e[t]);
|
17264
17264
|
return a2;
|
17265
17265
|
};
|
17266
|
-
var
|
17266
|
+
var k = (a2, e) => Ta(a2, fa(e));
|
17267
17267
|
var Qi = (a2, e) => {
|
17268
17268
|
var t = {};
|
17269
17269
|
for (var i in a2)
|
@@ -17275,7 +17275,7 @@ var Qi = (a2, e) => {
|
|
17275
17275
|
};
|
17276
17276
|
var ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
17277
17277
|
var nr = ya((jc, Va) => {
|
17278
|
-
Va.exports = { version: "0.11.
|
17278
|
+
Va.exports = { version: "0.11.2-alpha.0", 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"] };
|
17279
17279
|
});
|
17280
17280
|
var zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(zi || {});
|
17281
17281
|
var ka = ((e) => (e.CHAT = "chat", e))(ka || {});
|
@@ -17766,12 +17766,12 @@ var H = class {
|
|
17766
17766
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Ba(), this.device_id = fs();
|
17767
17767
|
}
|
17768
17768
|
toSignalParams() {
|
17769
|
-
return { name: this.name, info:
|
17769
|
+
return { name: this.name, info: k(m({}, this.properties), { timestamp: this.timestamp, domain: Ue }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
17770
17770
|
}
|
17771
17771
|
};
|
17772
17772
|
var M = class {
|
17773
17773
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
17774
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(
|
17774
|
+
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);
|
17775
17775
|
return new H({ name: o, level: n, properties: l });
|
17776
17776
|
}
|
17777
17777
|
static disconnect(e, t) {
|
@@ -17785,7 +17785,7 @@ var M = class {
|
|
17785
17785
|
}
|
17786
17786
|
static join(i) {
|
17787
17787
|
var r = i, { error: e } = r, t = Qi(r, ["error"]);
|
17788
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
17788
|
+
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);
|
17789
17789
|
return new H({ name: s, level: o, properties: n });
|
17790
17790
|
}
|
17791
17791
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -17828,7 +17828,7 @@ var M = class {
|
|
17828
17828
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
17829
17829
|
if (!t && e.degradedAt instanceof Date) {
|
17830
17830
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
17831
|
-
s =
|
17831
|
+
s = k(m({}, s), { duration: n, restoredAt: o });
|
17832
17832
|
}
|
17833
17833
|
return new H({ name: i, level: r, properties: s });
|
17834
17834
|
}
|
@@ -17970,7 +17970,7 @@ var qe = class {
|
|
17970
17970
|
};
|
17971
17971
|
qe.makePeerId = () => ro();
|
17972
17972
|
var ht = "HMS-Store:";
|
17973
|
-
var
|
17973
|
+
var y = class {
|
17974
17974
|
static v(e, ...t) {
|
17975
17975
|
this.log(0, e, ...t);
|
17976
17976
|
}
|
@@ -18035,7 +18035,7 @@ var k = class {
|
|
18035
18035
|
}
|
18036
18036
|
}
|
18037
18037
|
};
|
18038
|
-
|
18038
|
+
y.level = 0;
|
18039
18039
|
var Ar = (a2, e) => e;
|
18040
18040
|
var mt = (a2, e) => e;
|
18041
18041
|
var Gs = (a2, e) => e;
|
@@ -18164,7 +18164,7 @@ var Js = A((a2, e) => {
|
|
18164
18164
|
let t = br(a2, e);
|
18165
18165
|
if (t) {
|
18166
18166
|
if (t.type !== "audio") {
|
18167
|
-
|
18167
|
+
y.w("Please pass audio track here");
|
18168
18168
|
return;
|
18169
18169
|
}
|
18170
18170
|
return t.volume;
|
@@ -18182,7 +18182,7 @@ var mm = A((a2, e) => {
|
|
18182
18182
|
let t = br(a2, e);
|
18183
18183
|
if (t) {
|
18184
18184
|
if (t.type !== "video") {
|
18185
|
-
|
18185
|
+
y.w("Please pass video track here");
|
18186
18186
|
return;
|
18187
18187
|
}
|
18188
18188
|
return t.layer;
|
@@ -20713,6 +20713,7 @@ function HLSFailureModal() {
|
|
20713
20713
|
init_define_process_env();
|
20714
20714
|
import React130, { useEffect as useEffect32 } from "react";
|
20715
20715
|
import {
|
20716
|
+
selectIsInPreview,
|
20716
20717
|
selectLocalPeerName as selectLocalPeerName4,
|
20717
20718
|
selectLocalPeerRoleName as selectLocalPeerRoleName4,
|
20718
20719
|
selectRoleChangeRequest,
|
@@ -20846,7 +20847,7 @@ var StatusIndicator = ({ isLive }) => {
|
|
20846
20847
|
variant: "caption",
|
20847
20848
|
css: {
|
20848
20849
|
fontWeight: "$semiBold",
|
20849
|
-
color: "$
|
20850
|
+
color: "$on_primary_high"
|
20850
20851
|
}
|
20851
20852
|
},
|
20852
20853
|
isLive ? "LIVE" : "ENDED"
|
@@ -21134,7 +21135,6 @@ var MultipleChoiceOptions = ({
|
|
21134
21135
|
questionIndex,
|
21135
21136
|
options,
|
21136
21137
|
canRespond,
|
21137
|
-
response,
|
21138
21138
|
totalResponses,
|
21139
21139
|
selectedOptions,
|
21140
21140
|
setSelectedOptions,
|
@@ -21160,7 +21160,7 @@ var MultipleChoiceOptions = ({
|
|
21160
21160
|
{
|
21161
21161
|
id: `${questionIndex}-${option.index}`,
|
21162
21162
|
disabled: !canRespond,
|
21163
|
-
checked: (_a8 =
|
21163
|
+
checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
|
21164
21164
|
onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
|
21165
21165
|
css: {
|
21166
21166
|
cursor: canRespond ? "pointer" : "not-allowed"
|
@@ -21202,7 +21202,6 @@ import { CheckCircleIcon as CheckCircleIcon2 } from "@100mslive/react-icons";
|
|
21202
21202
|
var SingleChoiceOptions = ({
|
21203
21203
|
questionIndex,
|
21204
21204
|
options,
|
21205
|
-
response,
|
21206
21205
|
canRespond,
|
21207
21206
|
setAnswer,
|
21208
21207
|
totalResponses,
|
@@ -21210,9 +21209,10 @@ var SingleChoiceOptions = ({
|
|
21210
21209
|
correctOptionIndex,
|
21211
21210
|
isStopped,
|
21212
21211
|
isQuiz,
|
21213
|
-
localPeerResponse
|
21212
|
+
localPeerResponse,
|
21213
|
+
answer
|
21214
21214
|
}) => {
|
21215
|
-
return /* @__PURE__ */ React88.createElement(RadioGroup.Root, { value:
|
21215
|
+
return /* @__PURE__ */ React88.createElement(RadioGroup.Root, { value: answer || null, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ React88.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
21216
21216
|
return /* @__PURE__ */ React88.createElement(Flex, { align: "start", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$5" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React88.createElement(
|
21217
21217
|
RadioGroup.Item,
|
21218
21218
|
{
|
@@ -21246,7 +21246,7 @@ var SingleChoiceOptions = ({
|
|
21246
21246
|
}
|
21247
21247
|
}
|
21248
21248
|
)
|
21249
|
-
) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ React88.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React88.createElement(CheckCircleIcon2, null)) : null, /* @__PURE__ */ React88.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React88.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React88.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ React88.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ React88.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ React88.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.option) === option.index ? /* @__PURE__ */ React88.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
21249
|
+
) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ React88.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React88.createElement(CheckCircleIcon2, null)) : null, /* @__PURE__ */ React88.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React88.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React88.createElement(Text, { css: { display: "flex", flexGrow: "1", color: "$on_surface_high" } }, /* @__PURE__ */ React88.createElement(Label3, { style: { color: "inherit" }, htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ React88.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ React88.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.option) === option.index ? /* @__PURE__ */ React88.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
|
21250
21250
|
})));
|
21251
21251
|
};
|
21252
21252
|
var SingleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
|
@@ -21654,7 +21654,7 @@ import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIc
|
|
21654
21654
|
// src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
|
21655
21655
|
init_define_process_env();
|
21656
21656
|
import React92 from "react";
|
21657
|
-
import { CheckCircleIcon as CheckCircleIcon4, TrophyFilledIcon } from "@100mslive/react-icons";
|
21657
|
+
import { CheckCircleIcon as CheckCircleIcon4, ClockIcon, TrophyFilledIcon } from "@100mslive/react-icons";
|
21658
21658
|
var positionColorMap = { 1: "#D69516", 2: "#3E3E3E", 3: "#583B0F" };
|
21659
21659
|
var LeaderboardEntry = ({
|
21660
21660
|
position,
|
@@ -21662,7 +21662,8 @@ var LeaderboardEntry = ({
|
|
21662
21662
|
questionCount,
|
21663
21663
|
correctResponses,
|
21664
21664
|
userName,
|
21665
|
-
maxPossibleScore
|
21665
|
+
maxPossibleScore,
|
21666
|
+
duration
|
21666
21667
|
}) => {
|
21667
21668
|
return /* @__PURE__ */ React92.createElement(Flex, { align: "center", justify: "between", css: { my: "$4" } }, /* @__PURE__ */ React92.createElement(Flex, { align: "center", css: { gap: "$6" } }, /* @__PURE__ */ React92.createElement(
|
21668
21669
|
Flex,
|
@@ -21680,7 +21681,7 @@ var LeaderboardEntry = ({
|
|
21680
21681
|
}
|
21681
21682
|
},
|
21682
21683
|
position
|
21683
|
-
), /* @__PURE__ */ React92.createElement(Box, null, /* @__PURE__ */ React92.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, userName), /* @__PURE__ */ React92.createElement(Text, { variant: "sm", css: { mt: "$1" } }, score, " / ", maxPossibleScore, " points"))), /* @__PURE__ */ React92.createElement(Flex, { align: "center", css: { gap: "$4", color: "$on_surface_medium" } }, position === 1 ? /* @__PURE__ */ React92.createElement(TrophyFilledIcon, { height: 16, width: 16 }) : null, /* @__PURE__ */ React92.createElement(CheckCircleIcon4, { height: 16, width: 16 }),
|
21684
|
+
), /* @__PURE__ */ React92.createElement(Box, null, /* @__PURE__ */ React92.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, userName), /* @__PURE__ */ React92.createElement(Text, { variant: "sm", css: { mt: "$1" } }, score, " / ", maxPossibleScore, " points"))), /* @__PURE__ */ React92.createElement(Flex, { align: "center", css: { gap: "$4", color: "$on_surface_medium" } }, position === 1 ? /* @__PURE__ */ React92.createElement(TrophyFilledIcon, { height: 16, width: 16 }) : null, questionCount ? /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(CheckCircleIcon4, { height: 16, width: 16 }), /* @__PURE__ */ React92.createElement(Text, { variant: "xs" }, correctResponses, "/", questionCount)) : null, duration ? /* @__PURE__ */ React92.createElement(Flex, { align: "center", css: { gap: "$2", color: "$on_surface_medium" } }, /* @__PURE__ */ React92.createElement(ClockIcon, { height: 16, width: 16 }), /* @__PURE__ */ React92.createElement(Text, { variant: "xs" }, (duration / 1e3).toFixed(3), "s")) : null));
|
21684
21685
|
};
|
21685
21686
|
|
21686
21687
|
// src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
|
@@ -21771,7 +21772,8 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
21771
21772
|
title: "Correct Answers",
|
21772
21773
|
value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
|
21773
21774
|
},
|
21774
|
-
|
21775
|
+
// Time in ms
|
21776
|
+
{ title: "Avg. Time Taken", value: `${(summary.avgTime / 1e3).toFixed(3)}s` },
|
21775
21777
|
{
|
21776
21778
|
title: "Avg. Score",
|
21777
21779
|
value: Number.isInteger(summary.avgScore) ? summary.avgScore : summary.avgScore.toFixed(2)
|
@@ -21779,7 +21781,8 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
21779
21781
|
] : [
|
21780
21782
|
{ title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position) ? `${peerEntry.position}/${summary.totalUsers}` : "-" },
|
21781
21783
|
{ title: "Points", value: peerEntry == null ? void 0 : peerEntry.score },
|
21782
|
-
|
21784
|
+
// Time in ms
|
21785
|
+
{ title: "Time Taken", value: `${(((peerEntry == null ? void 0 : peerEntry.duration) || 0) / 1e3).toFixed(3)}s` },
|
21783
21786
|
{
|
21784
21787
|
title: "Correct Answers",
|
21785
21788
|
value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ? `${peerEntry == null ? void 0 : peerEntry.correctResponses}/${peerEntry.totalResponses}` : "-"
|
@@ -21836,7 +21839,8 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
21836
21839
|
questionCount,
|
21837
21840
|
correctResponses: question.correctResponses,
|
21838
21841
|
userName: question.peer.username || "",
|
21839
|
-
maxPossibleScore
|
21842
|
+
maxPossibleScore,
|
21843
|
+
duration: question.duration
|
21840
21844
|
}
|
21841
21845
|
)),
|
21842
21846
|
((_b7 = quizLeaderboard == null ? void 0 : quizLeaderboard.entries) == null ? void 0 : _b7.length) > 5 && !viewAllEntries ? /* @__PURE__ */ React95.createElement(
|
@@ -21870,7 +21874,7 @@ import {
|
|
21870
21874
|
useHMSActions as useHMSActions29,
|
21871
21875
|
useHMSStore as useHMSStore42
|
21872
21876
|
} from "@100mslive/react-sdk";
|
21873
|
-
import { ChevronLeftIcon as
|
21877
|
+
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon13 } from "@100mslive/react-icons";
|
21874
21878
|
|
21875
21879
|
// src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
|
21876
21880
|
init_define_process_env();
|
@@ -21878,15 +21882,9 @@ import React97 from "react";
|
|
21878
21882
|
|
21879
21883
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
21880
21884
|
init_define_process_env();
|
21881
|
-
import React96, { useCallback as useCallback20, useMemo as useMemo6, useState as useState38 } from "react";
|
21885
|
+
import React96, { useCallback as useCallback20, useMemo as useMemo6, useRef as useRef16, useState as useState38 } from "react";
|
21882
21886
|
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions28, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
|
21883
|
-
import {
|
21884
|
-
CheckCircleIcon as CheckCircleIcon5,
|
21885
|
-
ChevronDownIcon as ChevronDownIcon5,
|
21886
|
-
ChevronLeftIcon as ChevronLeftIcon5,
|
21887
|
-
ChevronRightIcon as ChevronRightIcon4,
|
21888
|
-
CrossCircleIcon
|
21889
|
-
} from "@100mslive/react-icons";
|
21887
|
+
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
21890
21888
|
var QuestionCard2 = ({
|
21891
21889
|
pollID,
|
21892
21890
|
isQuiz,
|
@@ -21900,9 +21898,7 @@ var QuestionCard2 = ({
|
|
21900
21898
|
options = [],
|
21901
21899
|
answer,
|
21902
21900
|
setCurrentIndex,
|
21903
|
-
skippable = false,
|
21904
21901
|
responses = [],
|
21905
|
-
isTimed = false,
|
21906
21902
|
rolesThatCanViewResponses
|
21907
21903
|
}) => {
|
21908
21904
|
const actions = useHMSActions28();
|
@@ -21919,15 +21915,8 @@ var QuestionCard2 = ({
|
|
21919
21915
|
const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
21920
21916
|
const isLive = pollState === "started";
|
21921
21917
|
const canRespond = isLive && !localPeerResponse;
|
21918
|
+
const startTime = useRef16(Date.now());
|
21922
21919
|
const isCorrectAnswer = checkCorrectAnswer(answer, localPeerResponse, type);
|
21923
|
-
const prev = index !== 1;
|
21924
|
-
const next = index !== totalQuestions && (skippable || localPeerResponse);
|
21925
|
-
const moveNext = useCallback20(() => {
|
21926
|
-
setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
|
21927
|
-
}, [setCurrentIndex, totalQuestions]);
|
21928
|
-
const movePrev = () => {
|
21929
|
-
setCurrentIndex((curr) => Math.max(1, curr - 1));
|
21930
|
-
};
|
21931
21920
|
const [singleOptionAnswer, setSingleOptionAnswer] = useState38();
|
21932
21921
|
const [multipleOptionAnswer, setMultipleOptionAnswer] = useState38(/* @__PURE__ */ new Set());
|
21933
21922
|
const [showOptions, setShowOptions] = useState38(true);
|
@@ -21947,19 +21936,25 @@ var QuestionCard2 = ({
|
|
21947
21936
|
{
|
21948
21937
|
questionIndex: index,
|
21949
21938
|
option: singleOptionAnswer,
|
21950
|
-
options: Array.from(multipleOptionAnswer)
|
21951
|
-
|
21952
|
-
]);
|
21953
|
-
}), [actions, index, pollID, isValidVote, singleOptionAnswer, multipleOptionAnswer]);
|
21954
|
-
const handleSkip = useCallback20(() => __async(void 0, null, function* () {
|
21955
|
-
yield actions.interactivityCenter.addResponsesToPoll(pollID, [
|
21956
|
-
{
|
21957
|
-
questionIndex: index,
|
21958
|
-
skipped: true
|
21939
|
+
options: Array.from(multipleOptionAnswer),
|
21940
|
+
duration: Date.now() - startTime.current
|
21959
21941
|
}
|
21960
21942
|
]);
|
21961
|
-
|
21962
|
-
|
21943
|
+
startTime.current = Date.now();
|
21944
|
+
if (isQuiz && index !== totalQuestions) {
|
21945
|
+
setSingleOptionAnswer(void 0);
|
21946
|
+
setMultipleOptionAnswer(/* @__PURE__ */ new Set());
|
21947
|
+
}
|
21948
|
+
}), [
|
21949
|
+
isValidVote,
|
21950
|
+
actions.interactivityCenter,
|
21951
|
+
pollID,
|
21952
|
+
index,
|
21953
|
+
singleOptionAnswer,
|
21954
|
+
multipleOptionAnswer,
|
21955
|
+
totalQuestions,
|
21956
|
+
isQuiz
|
21957
|
+
]);
|
21963
21958
|
return /* @__PURE__ */ React96.createElement(
|
21964
21959
|
Box,
|
21965
21960
|
{
|
@@ -21991,34 +21986,12 @@ var QuestionCard2 = ({
|
|
21991
21986
|
totalQuestions,
|
21992
21987
|
": ",
|
21993
21988
|
type.toUpperCase()
|
21994
|
-
),
|
21995
|
-
IconButton,
|
21996
|
-
{
|
21997
|
-
disabled: !prev,
|
21998
|
-
onClick: movePrev,
|
21999
|
-
css: prev ? { color: "$on_surface_high", cursor: "pointer" } : {
|
22000
|
-
color: "$on_surface_low",
|
22001
|
-
cursor: "not-allowed"
|
22002
|
-
}
|
22003
|
-
},
|
22004
|
-
/* @__PURE__ */ React96.createElement(ChevronLeftIcon5, { height: 16, width: 16 })
|
22005
|
-
), /* @__PURE__ */ React96.createElement(
|
22006
|
-
IconButton,
|
22007
|
-
{
|
22008
|
-
disabled: !next,
|
22009
|
-
onClick: moveNext,
|
22010
|
-
css: next ? { color: "$on_surface_high", cursor: "pointer" } : {
|
22011
|
-
color: "$on_surface_low",
|
22012
|
-
cursor: "not-allowed"
|
22013
|
-
}
|
22014
|
-
},
|
22015
|
-
/* @__PURE__ */ React96.createElement(ChevronRightIcon4, { height: 16, width: 16 })
|
22016
|
-
)) : null),
|
21989
|
+
)),
|
22017
21990
|
/* @__PURE__ */ React96.createElement(Flex, { justify: "between", css: { my: "$md" } }, /* @__PURE__ */ React96.createElement(Text, { css: { color: "$on_surface_high" } }, text), /* @__PURE__ */ React96.createElement(
|
22018
21991
|
Box,
|
22019
21992
|
{
|
22020
21993
|
css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
|
22021
|
-
onClick: () => setShowOptions((
|
21994
|
+
onClick: () => setShowOptions((prev) => !prev)
|
22022
21995
|
},
|
22023
21996
|
/* @__PURE__ */ React96.createElement(
|
22024
21997
|
ChevronDownIcon5,
|
@@ -22030,17 +22003,18 @@ var QuestionCard2 = ({
|
|
22030
22003
|
/* @__PURE__ */ React96.createElement(Box, { css: { maxHeight: showOptions ? "$80" : "0", transition: "max-height 0.3s ease", overflowY: "hidden" } }, type === "single-choice" /* SINGLE_CHOICE */ ? /* @__PURE__ */ React96.createElement(
|
22031
22004
|
SingleChoiceOptions,
|
22032
22005
|
{
|
22006
|
+
key: index,
|
22033
22007
|
questionIndex: index,
|
22034
22008
|
isQuiz,
|
22035
22009
|
canRespond,
|
22036
|
-
response: localPeerResponse,
|
22037
22010
|
correctOptionIndex: answer == null ? void 0 : answer.option,
|
22038
22011
|
options,
|
22039
22012
|
setAnswer: setSingleOptionAnswer,
|
22040
22013
|
totalResponses: result == null ? void 0 : result.totalResponses,
|
22041
22014
|
showVoteCount,
|
22042
22015
|
localPeerResponse,
|
22043
|
-
isStopped: pollState === "stopped"
|
22016
|
+
isStopped: pollState === "stopped",
|
22017
|
+
answer: singleOptionAnswer
|
22044
22018
|
}
|
22045
22019
|
) : null, type === "multiple-choice" /* MULTIPLE_CHOICE */ ? /* @__PURE__ */ React96.createElement(
|
22046
22020
|
MultipleChoiceOptions,
|
@@ -22048,7 +22022,6 @@ var QuestionCard2 = ({
|
|
22048
22022
|
questionIndex: index,
|
22049
22023
|
isQuiz,
|
22050
22024
|
canRespond,
|
22051
|
-
response: localPeerResponse,
|
22052
22025
|
correctOptionIndexes: answer == null ? void 0 : answer.options,
|
22053
22026
|
options,
|
22054
22027
|
selectedOptions: multipleOptionAnswer,
|
@@ -22062,17 +22035,29 @@ var QuestionCard2 = ({
|
|
22062
22035
|
QuestionActions,
|
22063
22036
|
{
|
22064
22037
|
isValidVote,
|
22065
|
-
skippable,
|
22066
|
-
onSkip: handleSkip,
|
22067
22038
|
onVote: handleVote,
|
22068
22039
|
response: localPeerResponse,
|
22069
|
-
isQuiz
|
22040
|
+
isQuiz,
|
22041
|
+
incrementIndex: () => {
|
22042
|
+
setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
|
22043
|
+
}
|
22070
22044
|
}
|
22071
22045
|
))
|
22072
22046
|
);
|
22073
22047
|
};
|
22074
|
-
var QuestionActions = ({ isValidVote,
|
22075
|
-
return /* @__PURE__ */ React96.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } },
|
22048
|
+
var QuestionActions = ({ isValidVote, response, isQuiz, onVote, incrementIndex }) => {
|
22049
|
+
return /* @__PURE__ */ React96.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, response ? /* @__PURE__ */ React96.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ React96.createElement(
|
22050
|
+
Button,
|
22051
|
+
{
|
22052
|
+
css: { p: "$xs $10", fontWeight: "$semiBold" },
|
22053
|
+
disabled: !isValidVote,
|
22054
|
+
onClick: () => {
|
22055
|
+
onVote();
|
22056
|
+
incrementIndex();
|
22057
|
+
}
|
22058
|
+
},
|
22059
|
+
isQuiz ? "Answer" : "Vote"
|
22060
|
+
));
|
22076
22061
|
};
|
22077
22062
|
|
22078
22063
|
// src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
|
@@ -22099,7 +22084,6 @@ var StandardView = ({ poll }) => {
|
|
22099
22084
|
result: question.result,
|
22100
22085
|
totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
|
22101
22086
|
options: question.options,
|
22102
|
-
skippable: question.skippable,
|
22103
22087
|
responses: question.responses,
|
22104
22088
|
answer: question.answer,
|
22105
22089
|
setCurrentIndex: () => {
|
@@ -22134,12 +22118,10 @@ var TimedView = ({ poll }) => {
|
|
22134
22118
|
result: activeQuestion == null ? void 0 : activeQuestion.result,
|
22135
22119
|
totalQuestions: ((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0,
|
22136
22120
|
options: activeQuestion.options,
|
22137
|
-
skippable: activeQuestion.skippable || false,
|
22138
22121
|
responses: activeQuestion.responses,
|
22139
22122
|
answer: activeQuestion.answer,
|
22140
22123
|
setCurrentIndex,
|
22141
|
-
rolesThatCanViewResponses: poll.rolesThatCanViewResponses
|
22142
|
-
isTimed: true
|
22124
|
+
rolesThatCanViewResponses: poll.rolesThatCanViewResponses
|
22143
22125
|
}
|
22144
22126
|
);
|
22145
22127
|
};
|
@@ -22151,11 +22133,11 @@ var Voting = ({ id, toggleVoting }) => {
|
|
22151
22133
|
const pollCreatorName = useHMSStore42(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
|
22152
22134
|
const isLocalPeerCreator = useHMSStore42(selectLocalPeerID9) === (poll == null ? void 0 : poll.createdBy);
|
22153
22135
|
const { setPollView } = usePollViewState();
|
22136
|
+
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
22154
22137
|
if (!poll) {
|
22155
22138
|
return null;
|
22156
22139
|
}
|
22157
22140
|
const canViewLeaderboard = poll.type === "quiz" && poll.state === "stopped" && !poll.anonymous;
|
22158
|
-
const isTimed = (poll.duration || 0) > 0;
|
22159
22141
|
const isLive = poll.state === "started";
|
22160
22142
|
return /* @__PURE__ */ React99.createElement(Container3, { rounded: true }, /* @__PURE__ */ React99.createElement(
|
22161
22143
|
Flex,
|
@@ -22177,7 +22159,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
22177
22159
|
onClick: () => setPollView(POLL_VIEWS.CREATE_POLL_QUIZ),
|
22178
22160
|
css: { cursor: "pointer", c: "$on_surface_medium", "&:hover": { color: "$on_surface_high" } }
|
22179
22161
|
},
|
22180
|
-
/* @__PURE__ */ React99.createElement(
|
22162
|
+
/* @__PURE__ */ React99.createElement(ChevronLeftIcon5, null)
|
22181
22163
|
),
|
22182
22164
|
/* @__PURE__ */ React99.createElement(Text, { variant: "h6" }, poll.title),
|
22183
22165
|
/* @__PURE__ */ React99.createElement(StatusIndicator, { isLive }),
|
@@ -22192,7 +22174,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
22192
22174
|
},
|
22193
22175
|
/* @__PURE__ */ React99.createElement(CrossIcon13, { onClick: toggleVoting })
|
22194
22176
|
)
|
22195
|
-
), /* @__PURE__ */ React99.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ React99.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null,
|
22177
|
+
), /* @__PURE__ */ React99.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ React99.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, showSingleView ? /* @__PURE__ */ React99.createElement(TimedView, { poll }) : /* @__PURE__ */ React99.createElement(StandardView, { poll }), poll.state === "started" && isLocalPeerCreator && /* @__PURE__ */ React99.createElement(
|
22196
22178
|
Button,
|
22197
22179
|
{
|
22198
22180
|
variant: "danger",
|
@@ -22237,14 +22219,14 @@ import { CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
|
|
22237
22219
|
|
22238
22220
|
// src/Prebuilt/components/Chat/Chat.tsx
|
22239
22221
|
init_define_process_env();
|
22240
|
-
import React112, { useCallback as useCallback28, useRef as
|
22222
|
+
import React112, { useCallback as useCallback28, useRef as useRef20 } from "react";
|
22241
22223
|
import { useMedia as useMedia16 } from "react-use";
|
22242
22224
|
import { selectHMSMessagesCount, useHMSActions as useHMSActions37, useHMSStore as useHMSStore52, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
22243
22225
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
22244
22226
|
|
22245
22227
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
22246
22228
|
init_define_process_env();
|
22247
|
-
import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as
|
22229
|
+
import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as useRef17, useState as useState42 } from "react";
|
22248
22230
|
import { useMedia as useMedia11 } from "react-use";
|
22249
22231
|
import AutoSizer from "react-virtualized-auto-sizer";
|
22250
22232
|
import { VariableSizeList } from "react-window";
|
@@ -22742,7 +22724,7 @@ var ChatMessage = React104.memo(
|
|
22742
22724
|
({ index, style = {}, message }) => {
|
22743
22725
|
var _a8, _b7, _c;
|
22744
22726
|
const { elements } = useRoomLayoutConferencingScreen();
|
22745
|
-
const rowRef =
|
22727
|
+
const rowRef = useRef17(null);
|
22746
22728
|
const isMobile = useMedia11(config.media.md);
|
22747
22729
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
22748
22730
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
@@ -23012,7 +22994,7 @@ var PinnedBy = ({
|
|
23012
22994
|
|
23013
22995
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
23014
22996
|
init_define_process_env();
|
23015
|
-
import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as
|
22997
|
+
import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as useRef19, useState as useState45 } from "react";
|
23016
22998
|
import { useMedia as useMedia14 } from "react-use";
|
23017
22999
|
import data2 from "@emoji-mart/data";
|
23018
23000
|
import Picker from "@emoji-mart/react";
|
@@ -23334,9 +23316,9 @@ var useChatDraftMessage = () => {
|
|
23334
23316
|
|
23335
23317
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
23336
23318
|
init_define_process_env();
|
23337
|
-
import { useEffect as useEffect23, useRef as
|
23319
|
+
import { useEffect as useEffect23, useRef as useRef18 } from "react";
|
23338
23320
|
var useEmojiPickerStyles = (showing) => {
|
23339
|
-
const ref =
|
23321
|
+
const ref = useRef18(null);
|
23340
23322
|
useEffect23(() => {
|
23341
23323
|
if (showing) {
|
23342
23324
|
setTimeout(() => {
|
@@ -23413,7 +23395,7 @@ function EmojiPicker({ onSelect }) {
|
|
23413
23395
|
var ChatFooter = ({ onSend, children }) => {
|
23414
23396
|
var _a8, _b7, _c, _d;
|
23415
23397
|
const hmsActions = useHMSActions35();
|
23416
|
-
const inputRef =
|
23398
|
+
const inputRef = useRef19(null);
|
23417
23399
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
23418
23400
|
const isMobile = useMedia14(config.media.md);
|
23419
23401
|
const { elements } = useRoomLayoutConferencingScreen();
|
@@ -23817,7 +23799,7 @@ var PinnedMessage = () => {
|
|
23817
23799
|
var Chat = () => {
|
23818
23800
|
var _a8, _b7;
|
23819
23801
|
const { elements } = useRoomLayoutConferencingScreen();
|
23820
|
-
const listRef =
|
23802
|
+
const listRef = useRef20(null);
|
23821
23803
|
const hmsActions = useHMSActions37();
|
23822
23804
|
const vanillaStore = useHMSVanillaStore10();
|
23823
23805
|
const { enabled: isChatEnabled = true } = useHMSStore52(qh("chatState" /* CHAT_STATE */)) || {};
|
@@ -23909,7 +23891,7 @@ import { useInView } from "react-intersection-observer";
|
|
23909
23891
|
import { useMeasure as useMeasure2 } from "react-use";
|
23910
23892
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
23911
23893
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore53, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
23912
|
-
import { ChevronLeftIcon as
|
23894
|
+
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
|
23913
23895
|
var LoadMoreParticipants = ({
|
23914
23896
|
hasNext,
|
23915
23897
|
loadMore,
|
@@ -23959,7 +23941,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
23959
23941
|
useEffect26(() => {
|
23960
23942
|
loadPeers();
|
23961
23943
|
}, []);
|
23962
|
-
return /* @__PURE__ */ React113.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React113.createElement(Flex, { align: "center" }, /* @__PURE__ */ React113.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React113.createElement(
|
23944
|
+
return /* @__PURE__ */ React113.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React113.createElement(Flex, { align: "center" }, /* @__PURE__ */ React113.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React113.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React113.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React113.createElement(
|
23963
23945
|
IconButton,
|
23964
23946
|
{
|
23965
23947
|
onClick: (e) => {
|
@@ -24826,11 +24808,20 @@ var VBPlugin = class {
|
|
24826
24808
|
}
|
24827
24809
|
};
|
24828
24810
|
this.getBackground = () => {
|
24829
|
-
var _a8, _b7
|
24811
|
+
var _a8, _b7;
|
24830
24812
|
if (this.effectsPlugin) {
|
24831
24813
|
return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
|
24832
24814
|
} else {
|
24833
|
-
|
24815
|
+
const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
|
24816
|
+
return (background == null ? void 0 : background.src) || background;
|
24817
|
+
}
|
24818
|
+
};
|
24819
|
+
this.getBlurAmount = () => {
|
24820
|
+
var _a8;
|
24821
|
+
if (this.effectsPlugin) {
|
24822
|
+
return this.effectsPlugin.getBlurAmount();
|
24823
|
+
} else {
|
24824
|
+
return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === HMSVirtualBackgroundTypes2.BLUR ? 1 : 0;
|
24834
24825
|
}
|
24835
24826
|
};
|
24836
24827
|
this.getVBObject = () => {
|
@@ -24913,6 +24904,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
24913
24904
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
24914
24905
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
24915
24906
|
const track = useHMSStore59(trackSelector);
|
24907
|
+
const [blurAmount, setBlurAmount] = useState51(VBHandler.getBlurAmount() || 0.5);
|
24916
24908
|
const roomState = useHMSStore59(selectRoomState4);
|
24917
24909
|
const isLargeRoom = useHMSStore59(selectIsLargeRoom3);
|
24918
24910
|
const isEffectsEnabled = useHMSStore59(Qn);
|
@@ -24995,7 +24987,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
24995
24987
|
value: HMSVirtualBackgroundTypes3.BLUR,
|
24996
24988
|
onClick: () => __async(void 0, null, function* () {
|
24997
24989
|
var _a9;
|
24998
|
-
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(
|
24990
|
+
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
|
24999
24991
|
setActiveBackground(HMSVirtualBackgroundTypes3.BLUR);
|
25000
24992
|
})
|
25001
24993
|
}
|
@@ -25003,6 +24995,19 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25003
24995
|
activeBackground
|
25004
24996
|
}
|
25005
24997
|
),
|
24998
|
+
activeBackground === HMSVirtualBackgroundTypes3.BLUR ? /* @__PURE__ */ React122.createElement(
|
24999
|
+
Slider,
|
25000
|
+
{
|
25001
|
+
value: [blurAmount],
|
25002
|
+
onValueChange: (e) => __async(void 0, null, function* () {
|
25003
|
+
setBlurAmount(e[0]);
|
25004
|
+
yield VBHandler.setBlur(e[0]);
|
25005
|
+
}),
|
25006
|
+
step: 0.1,
|
25007
|
+
min: 0.1,
|
25008
|
+
max: 1
|
25009
|
+
}
|
25010
|
+
) : null,
|
25006
25011
|
/* @__PURE__ */ React122.createElement(
|
25007
25012
|
VBCollection,
|
25008
25013
|
{
|
@@ -25378,20 +25383,7 @@ var PreviewJoin = ({
|
|
25378
25383
|
textColor: "#FFF",
|
25379
25384
|
icon: /* @__PURE__ */ React128.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
|
25380
25385
|
}
|
25381
|
-
) : null, /* @__PURE__ */ React128.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React128.createElement(
|
25382
|
-
Flex,
|
25383
|
-
{
|
25384
|
-
align: "center",
|
25385
|
-
justify: "center",
|
25386
|
-
css: {
|
25387
|
-
mt: "$14",
|
25388
|
-
"@md": { mt: 0 },
|
25389
|
-
"@sm": { width: "100%" },
|
25390
|
-
flexDirection: "column"
|
25391
|
-
}
|
25392
|
-
},
|
25393
|
-
/* @__PURE__ */ React128.createElement(PreviewTile, { name, error: previewError })
|
25394
|
-
) : null, /* @__PURE__ */ React128.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ React128.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ React128.createElement(
|
25386
|
+
) : null, /* @__PURE__ */ React128.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React128.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React128.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ React128.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ React128.createElement(
|
25395
25387
|
PreviewForm_default,
|
25396
25388
|
{
|
25397
25389
|
name,
|
@@ -25432,9 +25424,12 @@ var PreviewTile = ({ name, error }) => {
|
|
25432
25424
|
bg: "$surface_default",
|
25433
25425
|
aspectRatio,
|
25434
25426
|
height: "min(360px, 70vh)",
|
25427
|
+
width: "auto",
|
25435
25428
|
maxWidth: "640px",
|
25436
25429
|
overflow: "clip",
|
25430
|
+
mt: "$14",
|
25437
25431
|
"@md": {
|
25432
|
+
mt: 0,
|
25438
25433
|
width: "min(220px, 70vw)",
|
25439
25434
|
maxWidth: "100%",
|
25440
25435
|
my: "$4"
|
@@ -25484,20 +25479,26 @@ var RequestPrompt = ({
|
|
25484
25479
|
title,
|
25485
25480
|
body,
|
25486
25481
|
actionText = "Accept",
|
25487
|
-
onAction
|
25482
|
+
onAction,
|
25483
|
+
disableActions = false
|
25488
25484
|
}) => {
|
25489
25485
|
const isMobile = useMedia23(config.media.md);
|
25490
25486
|
if (isMobile) {
|
25491
|
-
return /* @__PURE__ */ React129.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React129.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React129.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React129.createElement(RequestActions, { actionText, onAction })));
|
25487
|
+
return /* @__PURE__ */ React129.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React129.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React129.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React129.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
|
25492
25488
|
}
|
25493
|
-
return /* @__PURE__ */ React129.createElement(Dialog.Root, { open, modal: false, onOpenChange }, /* @__PURE__ */ React129.createElement(Dialog.Portal, null, /* @__PURE__ */ React129.createElement(Dialog.Content, { css: { p: "$10" }, onInteractOutside: (e) => e.preventDefault() }, /* @__PURE__ */ React129.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md", justifyContent: "center" } }, /* @__PURE__ */ React129.createElement(Text, { variant: "h6" }, title)), /* @__PURE__ */ React129.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ React129.createElement(RequestActions, { actionText, onAction }))));
|
25489
|
+
return /* @__PURE__ */ React129.createElement(Dialog.Root, { open, modal: false, onOpenChange }, /* @__PURE__ */ React129.createElement(Dialog.Portal, null, /* @__PURE__ */ React129.createElement(Dialog.Content, { css: { p: "$10" }, onInteractOutside: (e) => e.preventDefault() }, /* @__PURE__ */ React129.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md", justifyContent: "center" } }, /* @__PURE__ */ React129.createElement(Text, { variant: "h6" }, title)), /* @__PURE__ */ React129.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ React129.createElement(RequestActions, { actionText, onAction, disabled: disableActions }))));
|
25494
25490
|
};
|
25495
|
-
var RequestActions = ({
|
25491
|
+
var RequestActions = ({
|
25492
|
+
onAction,
|
25493
|
+
actionText,
|
25494
|
+
disabled = false
|
25495
|
+
}) => /* @__PURE__ */ React129.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md", "@md": { mt: "$8", px: "$8" } } }, /* @__PURE__ */ React129.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React129.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ React129.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" }, disabled }, "Decline"))), /* @__PURE__ */ React129.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React129.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction, disabled }, actionText)));
|
25496
25496
|
|
25497
25497
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
25498
25498
|
var RoleChangeRequestModal = () => {
|
25499
25499
|
const hmsActions = useHMSActions41();
|
25500
25500
|
const { updateMetaData } = useMyMetadata();
|
25501
|
+
const isPreview = useHMSStore63(selectIsInPreview);
|
25501
25502
|
const currentRole = useHMSStore63(selectLocalPeerRoleName4);
|
25502
25503
|
const roleChangeRequest = useHMSStore63(selectRoleChangeRequest);
|
25503
25504
|
const name = useHMSStore63(selectLocalPeerName4);
|
@@ -25560,7 +25561,8 @@ var RoleChangeRequestModal = () => {
|
|
25560
25561
|
yield updateMetaData({ prevRole: currentRole });
|
25561
25562
|
yield hmsActions.lowerLocalPeerHand();
|
25562
25563
|
}),
|
25563
|
-
actionText: "Accept"
|
25564
|
+
actionText: "Accept",
|
25565
|
+
disableActions: !isPreview
|
25564
25566
|
}
|
25565
25567
|
);
|
25566
25568
|
};
|
@@ -25597,7 +25599,7 @@ import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore65 } fro
|
|
25597
25599
|
|
25598
25600
|
// src/Prebuilt/components/InsetTile.tsx
|
25599
25601
|
init_define_process_env();
|
25600
|
-
import React132, { useEffect as useEffect33, useRef as
|
25602
|
+
import React132, { useEffect as useEffect33, useRef as useRef21 } from "react";
|
25601
25603
|
import Draggable from "react-draggable";
|
25602
25604
|
import { useMedia as useMedia24 } from "react-use";
|
25603
25605
|
import { selectIsAllowedToPublish as selectIsAllowedToPublish2, selectLocalPeer as selectLocalPeer8, selectVideoTrackByID as selectVideoTrackByID6, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
@@ -25654,7 +25656,7 @@ var InsetTile = () => {
|
|
25654
25656
|
width = 240;
|
25655
25657
|
height = width / aspectRatio;
|
25656
25658
|
}
|
25657
|
-
const nodeRef =
|
25659
|
+
const nodeRef = useRef21(null);
|
25658
25660
|
useEffect33(() => {
|
25659
25661
|
const node = nodeRef.current;
|
25660
25662
|
if (!node || !window.ResizeObserver) {
|
@@ -25716,7 +25718,7 @@ var InsetTile = () => {
|
|
25716
25718
|
// src/Prebuilt/components/Pagination.tsx
|
25717
25719
|
init_define_process_env();
|
25718
25720
|
import React133, { useEffect as useEffect34 } from "react";
|
25719
|
-
import { ChevronLeftIcon as
|
25721
|
+
import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
|
25720
25722
|
var Pagination = ({
|
25721
25723
|
page,
|
25722
25724
|
onPageChange,
|
@@ -25740,7 +25742,7 @@ var Pagination = ({
|
|
25740
25742
|
if (numPages <= 1) {
|
25741
25743
|
return null;
|
25742
25744
|
}
|
25743
|
-
return /* @__PURE__ */ React133.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React133.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React133.createElement(
|
25745
|
+
return /* @__PURE__ */ React133.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React133.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React133.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React133.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ React133.createElement(
|
25744
25746
|
StyledPagination.Dot,
|
25745
25747
|
{
|
25746
25748
|
key: i,
|
@@ -25750,7 +25752,7 @@ var Pagination = ({
|
|
25750
25752
|
onPageChange(i);
|
25751
25753
|
}
|
25752
25754
|
}
|
25753
|
-
))) : null, /* @__PURE__ */ React133.createElement(StyledPagination.Chevron, { disabled: disableRight, onClick: nextPage }, /* @__PURE__ */ React133.createElement(
|
25755
|
+
))) : null, /* @__PURE__ */ React133.createElement(StyledPagination.Chevron, { disabled: disableRight, onClick: nextPage }, /* @__PURE__ */ React133.createElement(ChevronRightIcon4, { width: 16, height: 16, style: { cursor: disableRight ? "not-allowed" : "pointer" } })));
|
25754
25756
|
};
|
25755
25757
|
|
25756
25758
|
// src/Prebuilt/components/VideoLayouts/Grid.tsx
|
@@ -26129,7 +26131,7 @@ import { selectPeersScreenSharing, useHMSStore as useHMSStore68 } from "@100msli
|
|
26129
26131
|
|
26130
26132
|
// src/Prebuilt/components/ScreenshareTile.jsx
|
26131
26133
|
init_define_process_env();
|
26132
|
-
import React140, { useRef as
|
26134
|
+
import React140, { useRef as useRef22, useState as useState58 } from "react";
|
26133
26135
|
import { useFullscreen as useFullscreen2 } from "react-use";
|
26134
26136
|
import screenfull2 from "screenfull";
|
26135
26137
|
import {
|
@@ -26194,7 +26196,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
26194
26196
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
26195
26197
|
const [isMouseHovered, setIsMouseHovered] = useState58(false);
|
26196
26198
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
26197
|
-
const fullscreenRef =
|
26199
|
+
const fullscreenRef = useRef22(null);
|
26198
26200
|
const [fullscreen, setFullscreen] = useState58(false);
|
26199
26201
|
const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
|
26200
26202
|
onClose: () => setFullscreen(false)
|
@@ -26725,7 +26727,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
26725
26727
|
};
|
26726
26728
|
|
26727
26729
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
26728
|
-
var HLSView = React147.lazy(() => import("./HLSView-
|
26730
|
+
var HLSView = React147.lazy(() => import("./HLSView-4TLGLPKO.js"));
|
26729
26731
|
var VideoStreamingSection = ({
|
26730
26732
|
screenType,
|
26731
26733
|
elements,
|
@@ -27016,10 +27018,10 @@ var ConferenceScreen = () => {
|
|
27016
27018
|
const [hideControls, setHideControls] = useState61(false);
|
27017
27019
|
const dropdownList = useHMSStore75(selectAppData7(APP_DATA.dropdownList));
|
27018
27020
|
const authTokenInAppData = useAuthToken();
|
27019
|
-
const headerRef =
|
27020
|
-
const footerRef =
|
27021
|
+
const headerRef = useRef23(null);
|
27022
|
+
const footerRef = useRef23(null);
|
27021
27023
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
27022
|
-
const dropdownListRef =
|
27024
|
+
const dropdownListRef = useRef23();
|
27023
27025
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
27024
27026
|
const toggleControls = () => {
|
27025
27027
|
var _a9;
|
@@ -27027,7 +27029,7 @@ var ConferenceScreen = () => {
|
|
27027
27029
|
setHideControls((value) => !value);
|
27028
27030
|
}
|
27029
27031
|
};
|
27030
|
-
const autoRoomJoined =
|
27032
|
+
const autoRoomJoined = useRef23(isPreviewScreenEnabled);
|
27031
27033
|
useEffect47(() => {
|
27032
27034
|
let timeout;
|
27033
27035
|
dropdownListRef.current = dropdownList || [];
|
@@ -27990,24 +27992,39 @@ function PermissionErrorModal() {
|
|
27990
27992
|
}
|
27991
27993
|
setIsSystemError(notification.data.code === 3011);
|
27992
27994
|
}, [notification]);
|
27993
|
-
return deviceType ? /* @__PURE__ */ React160.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React160.createElement(Dialog.Portal, null, /* @__PURE__ */ React160.createElement(Dialog.Overlay, null), /* @__PURE__ */ React160.createElement(
|
27994
|
-
Dialog.
|
27995
|
+
return deviceType ? /* @__PURE__ */ React160.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React160.createElement(Dialog.Portal, null, /* @__PURE__ */ React160.createElement(Dialog.Overlay, null), /* @__PURE__ */ React160.createElement(
|
27996
|
+
Dialog.Content,
|
27995
27997
|
{
|
27996
27998
|
css: {
|
27997
|
-
|
27999
|
+
w: "min(380px, 90%)",
|
28000
|
+
p: "$8",
|
28001
|
+
// overlay over Sheet.tsx
|
28002
|
+
zIndex: 23
|
27998
28003
|
}
|
27999
28004
|
},
|
28000
|
-
|
28001
|
-
|
28002
|
-
"img",
|
28005
|
+
/* @__PURE__ */ React160.createElement(
|
28006
|
+
Dialog.Title,
|
28003
28007
|
{
|
28004
|
-
|
28005
|
-
|
28006
|
-
|
28007
|
-
}
|
28008
|
-
|
28009
|
-
|
28010
|
-
|
28008
|
+
css: {
|
28009
|
+
borderBottom: "1px solid $border_default"
|
28010
|
+
}
|
28011
|
+
},
|
28012
|
+
isMobile && isIOS ? /* @__PURE__ */ React160.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
28013
|
+
isMobile && isAndroid ? /* @__PURE__ */ React160.createElement(
|
28014
|
+
"img",
|
28015
|
+
{
|
28016
|
+
src: android_perm_1_default,
|
28017
|
+
style: { maxWidth: "100%", maxHeight: "100%" },
|
28018
|
+
alt: "Android Permission flow "
|
28019
|
+
}
|
28020
|
+
) : null,
|
28021
|
+
/* @__PURE__ */ React160.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
28022
|
+
),
|
28023
|
+
/* @__PURE__ */ React160.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),
|
28024
|
+
isMobile && isIOS ? /* @__PURE__ */ React160.createElement(React160.Fragment, null, /* @__PURE__ */ React160.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ React160.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
28025
|
+
isMobile && isAndroid ? /* @__PURE__ */ React160.createElement(React160.Fragment, null, /* @__PURE__ */ React160.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React160.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
28026
|
+
!isMobile ? /* @__PURE__ */ React160.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React160.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
28027
|
+
))) : null;
|
28011
28028
|
}
|
28012
28029
|
|
28013
28030
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
@@ -28547,7 +28564,7 @@ function RemoteStopScreenshare() {
|
|
28547
28564
|
|
28548
28565
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
28549
28566
|
init_define_process_env();
|
28550
|
-
import { useCallback as useCallback36, useEffect as useEffect65, useRef as
|
28567
|
+
import { useCallback as useCallback36, useEffect as useEffect65, useRef as useRef24 } from "react";
|
28551
28568
|
import {
|
28552
28569
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
28553
28570
|
selectPermissions as selectPermissions16,
|
@@ -28562,7 +28579,7 @@ var useAutoStartStreaming = () => {
|
|
28562
28579
|
const hmsActions = useHMSActions51();
|
28563
28580
|
const isConnected = useHMSStore84(selectIsConnectedToRoom12);
|
28564
28581
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming11();
|
28565
|
-
const streamStartedRef =
|
28582
|
+
const streamStartedRef = useRef24(false);
|
28566
28583
|
const startHLS = useCallback36(() => __async(void 0, null, function* () {
|
28567
28584
|
try {
|
28568
28585
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
@@ -28614,7 +28631,7 @@ var HMSPrebuilt = React170.forwardRef(
|
|
28614
28631
|
onJoin
|
28615
28632
|
}, ref) => {
|
28616
28633
|
var _a8, _b7, _c, _d;
|
28617
|
-
const reactiveStore =
|
28634
|
+
const reactiveStore = useRef25();
|
28618
28635
|
const [hydrated, setHydrated] = React170.useState(false);
|
28619
28636
|
useEffect66(() => {
|
28620
28637
|
setHydrated(true);
|
@@ -28919,4 +28936,4 @@ lodash/lodash.js:
|
|
28919
28936
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
28920
28937
|
*)
|
28921
28938
|
*/
|
28922
|
-
//# sourceMappingURL=chunk-
|
28939
|
+
//# sourceMappingURL=chunk-ARSLHHAZ.js.map
|