@100mslive/roomkit-react 0.2.1 → 0.2.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-U7FQ2YLK.js → HLSView-2DSOSSTP.js} +19 -4
- package/dist/HLSView-2DSOSSTP.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-XXVJPGLN.js} +203 -185
- package/dist/{chunk-GNQAOG73.js.map → chunk-XXVJPGLN.js.map} +3 -3
- package/dist/index.cjs.js +161 -125
- 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 +51 -51
- 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 +7 -6
- package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -2
- package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +6 -4
- package/src/Prebuilt/components/Polls/common/StatusIndicator.tsx +1 -1
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -14
- package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +15 -5
- package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +3 -0
- package/src/Prebuilt/components/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
- package/src/Prebuilt/images/first_person.png +0 -0
|
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
106
106
|
var define_process_env_default;
|
|
107
107
|
var init_define_process_env = __esm({
|
|
108
108
|
"<define:process.env>"() {
|
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_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/examples", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.9.2-alpha.1", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.85.2", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "5ae2b03f99bf4f7347dfd5bab16cb044171630b20401470f0d812433897e1e66", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.5lUeYdLBIu/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1706003783370-0.9091307619001878:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1706003782937-0.9887605197130553:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1706003761639-0.43454174562021053:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build","--no-private"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1706003783370-0.9091307619001878/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.9.2-alpha.1", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.2-alpha.1", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.2.2-alpha.1", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.2.2-alpha.1", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-4dbfa2fdda.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
|
|
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.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
|
17278
|
+
Va.exports = { version: "0.11.2-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
|
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(
|
|
@@ -21864,13 +21868,13 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
|
21864
21868
|
init_define_process_env();
|
|
21865
21869
|
import React99 from "react";
|
|
21866
21870
|
import {
|
|
21867
|
-
selectLocalPeerID as selectLocalPeerID9,
|
|
21868
21871
|
selectPeerNameByID,
|
|
21872
|
+
selectPermissions as selectPermissions13,
|
|
21869
21873
|
selectPollByID as selectPollByID4,
|
|
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
|
};
|
|
@@ -22149,13 +22131,14 @@ var Voting = ({ id, toggleVoting }) => {
|
|
|
22149
22131
|
const actions = useHMSActions29();
|
|
22150
22132
|
const poll = useHMSStore42(selectPollByID4(id));
|
|
22151
22133
|
const pollCreatorName = useHMSStore42(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
|
|
22152
|
-
const
|
|
22134
|
+
const permissions = useHMSStore42(selectPermissions13);
|
|
22135
|
+
const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
|
|
22153
22136
|
const { setPollView } = usePollViewState();
|
|
22137
|
+
const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
|
|
22154
22138
|
if (!poll) {
|
|
22155
22139
|
return null;
|
|
22156
22140
|
}
|
|
22157
22141
|
const canViewLeaderboard = poll.type === "quiz" && poll.state === "stopped" && !poll.anonymous;
|
|
22158
|
-
const isTimed = (poll.duration || 0) > 0;
|
|
22159
22142
|
const isLive = poll.state === "started";
|
|
22160
22143
|
return /* @__PURE__ */ React99.createElement(Container3, { rounded: true }, /* @__PURE__ */ React99.createElement(
|
|
22161
22144
|
Flex,
|
|
@@ -22177,7 +22160,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
|
22177
22160
|
onClick: () => setPollView(POLL_VIEWS.CREATE_POLL_QUIZ),
|
|
22178
22161
|
css: { cursor: "pointer", c: "$on_surface_medium", "&:hover": { color: "$on_surface_high" } }
|
|
22179
22162
|
},
|
|
22180
|
-
/* @__PURE__ */ React99.createElement(
|
|
22163
|
+
/* @__PURE__ */ React99.createElement(ChevronLeftIcon5, null)
|
|
22181
22164
|
),
|
|
22182
22165
|
/* @__PURE__ */ React99.createElement(Text, { variant: "h6" }, poll.title),
|
|
22183
22166
|
/* @__PURE__ */ React99.createElement(StatusIndicator, { isLive }),
|
|
@@ -22192,7 +22175,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
|
22192
22175
|
},
|
|
22193
22176
|
/* @__PURE__ */ React99.createElement(CrossIcon13, { onClick: toggleVoting })
|
|
22194
22177
|
)
|
|
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,
|
|
22178
|
+
), /* @__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" && canEndActivity && /* @__PURE__ */ React99.createElement(
|
|
22196
22179
|
Button,
|
|
22197
22180
|
{
|
|
22198
22181
|
variant: "danger",
|
|
@@ -22237,20 +22220,20 @@ import { CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
|
|
|
22237
22220
|
|
|
22238
22221
|
// src/Prebuilt/components/Chat/Chat.tsx
|
|
22239
22222
|
init_define_process_env();
|
|
22240
|
-
import React112, { useCallback as useCallback28, useRef as
|
|
22223
|
+
import React112, { useCallback as useCallback28, useRef as useRef20 } from "react";
|
|
22241
22224
|
import { useMedia as useMedia16 } from "react-use";
|
|
22242
22225
|
import { selectHMSMessagesCount, useHMSActions as useHMSActions37, useHMSStore as useHMSStore52, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
|
22243
22226
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
|
22244
22227
|
|
|
22245
22228
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
|
22246
22229
|
init_define_process_env();
|
|
22247
|
-
import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as
|
|
22230
|
+
import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as useRef17, useState as useState42 } from "react";
|
|
22248
22231
|
import { useMedia as useMedia11 } from "react-use";
|
|
22249
22232
|
import AutoSizer from "react-virtualized-auto-sizer";
|
|
22250
22233
|
import { VariableSizeList } from "react-window";
|
|
22251
22234
|
import {
|
|
22252
22235
|
selectHMSMessages,
|
|
22253
|
-
selectLocalPeerID as
|
|
22236
|
+
selectLocalPeerID as selectLocalPeerID9,
|
|
22254
22237
|
selectLocalPeerName as selectLocalPeerName3,
|
|
22255
22238
|
selectLocalPeerRoleName as selectLocalPeerRoleName3,
|
|
22256
22239
|
selectPeerNameByID as selectPeerNameByID3,
|
|
@@ -22265,7 +22248,7 @@ import { SolidPinIcon } from "@100mslive/react-icons";
|
|
|
22265
22248
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
|
22266
22249
|
init_define_process_env();
|
|
22267
22250
|
import React102, { useCallback as useCallback23, useState as useState40 } from "react";
|
|
22268
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as
|
|
22251
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions14, useHMSActions as useHMSActions32, useHMSStore as useHMSStore44 } from "@100mslive/react-sdk";
|
|
22269
22252
|
import {
|
|
22270
22253
|
CopyIcon as CopyIcon2,
|
|
22271
22254
|
CrossCircleIcon as CrossCircleIcon2,
|
|
@@ -22390,7 +22373,7 @@ var ChatActions = ({
|
|
|
22390
22373
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
|
22391
22374
|
const [open, setOpen] = useState40(false);
|
|
22392
22375
|
const actions = useHMSActions32();
|
|
22393
|
-
const canRemoveOthers = (_b7 = useHMSStore44(
|
|
22376
|
+
const canRemoveOthers = (_b7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _b7.removeOthers;
|
|
22394
22377
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
|
22395
22378
|
const localPeerName = useHMSStore44(selectLocalPeerName2);
|
|
22396
22379
|
const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
|
|
@@ -22742,11 +22725,11 @@ var ChatMessage = React104.memo(
|
|
|
22742
22725
|
({ index, style = {}, message }) => {
|
|
22743
22726
|
var _a8, _b7, _c;
|
|
22744
22727
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
22745
|
-
const rowRef =
|
|
22728
|
+
const rowRef = useRef17(null);
|
|
22746
22729
|
const isMobile = useMedia11(config.media.md);
|
|
22747
22730
|
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
|
22748
22731
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
|
22749
|
-
const localPeerId = useHMSStore46(
|
|
22732
|
+
const localPeerId = useHMSStore46(selectLocalPeerID9);
|
|
22750
22733
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
|
22751
22734
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
|
22752
22735
|
const messageType = getMessageType({
|
|
@@ -23012,7 +22995,7 @@ var PinnedBy = ({
|
|
|
23012
22995
|
|
|
23013
22996
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
|
23014
22997
|
init_define_process_env();
|
|
23015
|
-
import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as
|
|
22998
|
+
import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as useRef19, useState as useState45 } from "react";
|
|
23016
22999
|
import { useMedia as useMedia14 } from "react-use";
|
|
23017
23000
|
import data2 from "@emoji-mart/data";
|
|
23018
23001
|
import Picker from "@emoji-mart/react";
|
|
@@ -23334,9 +23317,9 @@ var useChatDraftMessage = () => {
|
|
|
23334
23317
|
|
|
23335
23318
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
|
23336
23319
|
init_define_process_env();
|
|
23337
|
-
import { useEffect as useEffect23, useRef as
|
|
23320
|
+
import { useEffect as useEffect23, useRef as useRef18 } from "react";
|
|
23338
23321
|
var useEmojiPickerStyles = (showing) => {
|
|
23339
|
-
const ref =
|
|
23322
|
+
const ref = useRef18(null);
|
|
23340
23323
|
useEffect23(() => {
|
|
23341
23324
|
if (showing) {
|
|
23342
23325
|
setTimeout(() => {
|
|
@@ -23413,7 +23396,7 @@ function EmojiPicker({ onSelect }) {
|
|
|
23413
23396
|
var ChatFooter = ({ onSend, children }) => {
|
|
23414
23397
|
var _a8, _b7, _c, _d;
|
|
23415
23398
|
const hmsActions = useHMSActions35();
|
|
23416
|
-
const inputRef =
|
|
23399
|
+
const inputRef = useRef19(null);
|
|
23417
23400
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
|
23418
23401
|
const isMobile = useMedia14(config.media.md);
|
|
23419
23402
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
@@ -23817,7 +23800,7 @@ var PinnedMessage = () => {
|
|
|
23817
23800
|
var Chat = () => {
|
|
23818
23801
|
var _a8, _b7;
|
|
23819
23802
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
23820
|
-
const listRef =
|
|
23803
|
+
const listRef = useRef20(null);
|
|
23821
23804
|
const hmsActions = useHMSActions37();
|
|
23822
23805
|
const vanillaStore = useHMSVanillaStore10();
|
|
23823
23806
|
const { enabled: isChatEnabled = true } = useHMSStore52(qh("chatState" /* CHAT_STATE */)) || {};
|
|
@@ -23909,7 +23892,7 @@ import { useInView } from "react-intersection-observer";
|
|
|
23909
23892
|
import { useMeasure as useMeasure2 } from "react-use";
|
|
23910
23893
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
|
23911
23894
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore53, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
|
|
23912
|
-
import { ChevronLeftIcon as
|
|
23895
|
+
import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
|
|
23913
23896
|
var LoadMoreParticipants = ({
|
|
23914
23897
|
hasNext,
|
|
23915
23898
|
loadMore,
|
|
@@ -23959,7 +23942,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
|
23959
23942
|
useEffect26(() => {
|
|
23960
23943
|
loadPeers();
|
|
23961
23944
|
}, []);
|
|
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(
|
|
23945
|
+
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
23946
|
IconButton,
|
|
23964
23947
|
{
|
|
23965
23948
|
onClick: (e) => {
|
|
@@ -24185,7 +24168,7 @@ import {
|
|
|
24185
24168
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
|
24186
24169
|
selectHasPeerHandRaised as selectHasPeerHandRaised3,
|
|
24187
24170
|
selectIsPeerAudioEnabled as selectIsPeerAudioEnabled2,
|
|
24188
|
-
selectLocalPeerID as
|
|
24171
|
+
selectLocalPeerID as selectLocalPeerID11,
|
|
24189
24172
|
selectPeerMetadata as selectPeerMetadata4,
|
|
24190
24173
|
selectPeerNameByID as selectPeerNameByID4,
|
|
24191
24174
|
selectSessionStore as selectSessionStore10,
|
|
@@ -24241,9 +24224,9 @@ init_define_process_env();
|
|
|
24241
24224
|
import React118, { useState as useState49 } from "react";
|
|
24242
24225
|
import { useMedia as useMedia19 } from "react-use";
|
|
24243
24226
|
import {
|
|
24244
|
-
selectLocalPeerID as
|
|
24227
|
+
selectLocalPeerID as selectLocalPeerID10,
|
|
24245
24228
|
selectPeerByID as selectPeerByID2,
|
|
24246
|
-
selectPermissions as
|
|
24229
|
+
selectPermissions as selectPermissions16,
|
|
24247
24230
|
selectTrackByID as selectTrackByID3,
|
|
24248
24231
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
|
|
24249
24232
|
useHMSStore as useHMSStore57,
|
|
@@ -24256,7 +24239,7 @@ init_define_process_env();
|
|
|
24256
24239
|
import React117, { Fragment as Fragment12 } from "react";
|
|
24257
24240
|
import { useMedia as useMedia18 } from "react-use";
|
|
24258
24241
|
import {
|
|
24259
|
-
selectPermissions as
|
|
24242
|
+
selectPermissions as selectPermissions15,
|
|
24260
24243
|
selectSessionStore as selectSessionStore9,
|
|
24261
24244
|
selectTrackByID as selectTrackByID2,
|
|
24262
24245
|
useCustomEvent as useCustomEvent2,
|
|
@@ -24432,7 +24415,7 @@ var TileMenuContent = ({
|
|
|
24432
24415
|
var _a8;
|
|
24433
24416
|
const actions = useHMSActions39();
|
|
24434
24417
|
const dragClassName = getDragClassName();
|
|
24435
|
-
const removeOthers = (_a8 = useHMSStore56(
|
|
24418
|
+
const removeOthers = (_a8 = useHMSStore56(selectPermissions15)) == null ? void 0 : _a8.removeOthers;
|
|
24436
24419
|
const { userName } = useHMSPrebuiltContext();
|
|
24437
24420
|
const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
|
|
24438
24421
|
audioTrackID,
|
|
@@ -24520,9 +24503,9 @@ var TileMenu = ({
|
|
|
24520
24503
|
var _a8, _b7;
|
|
24521
24504
|
const [open, setOpen] = useState49(false);
|
|
24522
24505
|
const { theme: theme2 } = useTheme();
|
|
24523
|
-
const localPeerID = useHMSStore57(
|
|
24506
|
+
const localPeerID = useHMSStore57(selectLocalPeerID10);
|
|
24524
24507
|
const isLocal = localPeerID === peerID;
|
|
24525
|
-
const { removeOthers } = useHMSStore57(
|
|
24508
|
+
const { removeOthers } = useHMSStore57(selectPermissions16);
|
|
24526
24509
|
const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
|
|
24527
24510
|
const showSpotlight = enableSpotlightingPeer;
|
|
24528
24511
|
const isPrimaryVideoTrack = ((_a8 = useHMSStore57(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
|
@@ -24626,7 +24609,7 @@ var Tile = ({
|
|
|
24626
24609
|
const track = useHMSStore58(trackSelector);
|
|
24627
24610
|
const peerName = useHMSStore58(selectPeerNameByID4(peerId));
|
|
24628
24611
|
const audioTrack = useHMSStore58(selectAudioTrackByPeerID2(peerId));
|
|
24629
|
-
const localPeerID = useHMSStore58(
|
|
24612
|
+
const localPeerID = useHMSStore58(selectLocalPeerID11);
|
|
24630
24613
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
|
24631
24614
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
|
24632
24615
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
|
@@ -24826,11 +24809,20 @@ var VBPlugin = class {
|
|
|
24826
24809
|
}
|
|
24827
24810
|
};
|
|
24828
24811
|
this.getBackground = () => {
|
|
24829
|
-
var _a8, _b7
|
|
24812
|
+
var _a8, _b7;
|
|
24830
24813
|
if (this.effectsPlugin) {
|
|
24831
24814
|
return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
|
|
24832
24815
|
} else {
|
|
24833
|
-
|
|
24816
|
+
const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
|
|
24817
|
+
return (background == null ? void 0 : background.src) || background;
|
|
24818
|
+
}
|
|
24819
|
+
};
|
|
24820
|
+
this.getBlurAmount = () => {
|
|
24821
|
+
var _a8;
|
|
24822
|
+
if (this.effectsPlugin) {
|
|
24823
|
+
return this.effectsPlugin.getBlurAmount();
|
|
24824
|
+
} else {
|
|
24825
|
+
return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === HMSVirtualBackgroundTypes2.BLUR ? 1 : 0;
|
|
24834
24826
|
}
|
|
24835
24827
|
};
|
|
24836
24828
|
this.getVBObject = () => {
|
|
@@ -24913,6 +24905,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
24913
24905
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
|
24914
24906
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
|
24915
24907
|
const track = useHMSStore59(trackSelector);
|
|
24908
|
+
const [blurAmount, setBlurAmount] = useState51(VBHandler.getBlurAmount() || 0.5);
|
|
24916
24909
|
const roomState = useHMSStore59(selectRoomState4);
|
|
24917
24910
|
const isLargeRoom = useHMSStore59(selectIsLargeRoom3);
|
|
24918
24911
|
const isEffectsEnabled = useHMSStore59(Qn);
|
|
@@ -24995,7 +24988,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
24995
24988
|
value: HMSVirtualBackgroundTypes3.BLUR,
|
|
24996
24989
|
onClick: () => __async(void 0, null, function* () {
|
|
24997
24990
|
var _a9;
|
|
24998
|
-
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(
|
|
24991
|
+
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
|
|
24999
24992
|
setActiveBackground(HMSVirtualBackgroundTypes3.BLUR);
|
|
25000
24993
|
})
|
|
25001
24994
|
}
|
|
@@ -25003,6 +24996,19 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
25003
24996
|
activeBackground
|
|
25004
24997
|
}
|
|
25005
24998
|
),
|
|
24999
|
+
activeBackground === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React122.createElement(
|
|
25000
|
+
Slider,
|
|
25001
|
+
{
|
|
25002
|
+
value: [blurAmount],
|
|
25003
|
+
onValueChange: (e) => __async(void 0, null, function* () {
|
|
25004
|
+
setBlurAmount(e[0]);
|
|
25005
|
+
yield VBHandler.setBlur(e[0]);
|
|
25006
|
+
}),
|
|
25007
|
+
step: 0.1,
|
|
25008
|
+
min: 0.1,
|
|
25009
|
+
max: 1
|
|
25010
|
+
}
|
|
25011
|
+
) : null,
|
|
25006
25012
|
/* @__PURE__ */ React122.createElement(
|
|
25007
25013
|
VBCollection,
|
|
25008
25014
|
{
|
|
@@ -25378,20 +25384,7 @@ var PreviewJoin = ({
|
|
|
25378
25384
|
textColor: "#FFF",
|
|
25379
25385
|
icon: /* @__PURE__ */ React128.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
|
|
25380
25386
|
}
|
|
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(
|
|
25387
|
+
) : 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
25388
|
PreviewForm_default,
|
|
25396
25389
|
{
|
|
25397
25390
|
name,
|
|
@@ -25432,9 +25425,12 @@ var PreviewTile = ({ name, error }) => {
|
|
|
25432
25425
|
bg: "$surface_default",
|
|
25433
25426
|
aspectRatio,
|
|
25434
25427
|
height: "min(360px, 70vh)",
|
|
25428
|
+
width: "auto",
|
|
25435
25429
|
maxWidth: "640px",
|
|
25436
25430
|
overflow: "clip",
|
|
25431
|
+
mt: "$14",
|
|
25437
25432
|
"@md": {
|
|
25433
|
+
mt: 0,
|
|
25438
25434
|
width: "min(220px, 70vw)",
|
|
25439
25435
|
maxWidth: "100%",
|
|
25440
25436
|
my: "$4"
|
|
@@ -25484,20 +25480,26 @@ var RequestPrompt = ({
|
|
|
25484
25480
|
title,
|
|
25485
25481
|
body,
|
|
25486
25482
|
actionText = "Accept",
|
|
25487
|
-
onAction
|
|
25483
|
+
onAction,
|
|
25484
|
+
disableActions = false
|
|
25488
25485
|
}) => {
|
|
25489
25486
|
const isMobile = useMedia23(config.media.md);
|
|
25490
25487
|
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 })));
|
|
25488
|
+
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
25489
|
}
|
|
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 }))));
|
|
25490
|
+
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
25491
|
};
|
|
25495
|
-
var RequestActions = ({
|
|
25492
|
+
var RequestActions = ({
|
|
25493
|
+
onAction,
|
|
25494
|
+
actionText,
|
|
25495
|
+
disabled = false
|
|
25496
|
+
}) => /* @__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
25497
|
|
|
25497
25498
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
|
25498
25499
|
var RoleChangeRequestModal = () => {
|
|
25499
25500
|
const hmsActions = useHMSActions41();
|
|
25500
25501
|
const { updateMetaData } = useMyMetadata();
|
|
25502
|
+
const isPreview = useHMSStore63(selectIsInPreview);
|
|
25501
25503
|
const currentRole = useHMSStore63(selectLocalPeerRoleName4);
|
|
25502
25504
|
const roleChangeRequest = useHMSStore63(selectRoleChangeRequest);
|
|
25503
25505
|
const name = useHMSStore63(selectLocalPeerName4);
|
|
@@ -25560,7 +25562,8 @@ var RoleChangeRequestModal = () => {
|
|
|
25560
25562
|
yield updateMetaData({ prevRole: currentRole });
|
|
25561
25563
|
yield hmsActions.lowerLocalPeerHand();
|
|
25562
25564
|
}),
|
|
25563
|
-
actionText: "Accept"
|
|
25565
|
+
actionText: "Accept",
|
|
25566
|
+
disableActions: !isPreview
|
|
25564
25567
|
}
|
|
25565
25568
|
);
|
|
25566
25569
|
};
|
|
@@ -25581,7 +25584,7 @@ import {
|
|
|
25581
25584
|
init_define_process_env();
|
|
25582
25585
|
import React142, { useEffect as useEffect40, useMemo as useMemo15, useState as useState60 } from "react";
|
|
25583
25586
|
import {
|
|
25584
|
-
selectLocalPeerID as
|
|
25587
|
+
selectLocalPeerID as selectLocalPeerID13,
|
|
25585
25588
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
|
25586
25589
|
selectPeers as selectPeers3,
|
|
25587
25590
|
selectPeerScreenSharing,
|
|
@@ -25597,7 +25600,7 @@ import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore65 } fro
|
|
|
25597
25600
|
|
|
25598
25601
|
// src/Prebuilt/components/InsetTile.tsx
|
|
25599
25602
|
init_define_process_env();
|
|
25600
|
-
import React132, { useEffect as useEffect33, useRef as
|
|
25603
|
+
import React132, { useEffect as useEffect33, useRef as useRef21 } from "react";
|
|
25601
25604
|
import Draggable from "react-draggable";
|
|
25602
25605
|
import { useMedia as useMedia24 } from "react-use";
|
|
25603
25606
|
import { selectIsAllowedToPublish as selectIsAllowedToPublish2, selectLocalPeer as selectLocalPeer8, selectVideoTrackByID as selectVideoTrackByID6, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
|
@@ -25654,7 +25657,7 @@ var InsetTile = () => {
|
|
|
25654
25657
|
width = 240;
|
|
25655
25658
|
height = width / aspectRatio;
|
|
25656
25659
|
}
|
|
25657
|
-
const nodeRef =
|
|
25660
|
+
const nodeRef = useRef21(null);
|
|
25658
25661
|
useEffect33(() => {
|
|
25659
25662
|
const node = nodeRef.current;
|
|
25660
25663
|
if (!node || !window.ResizeObserver) {
|
|
@@ -25716,7 +25719,7 @@ var InsetTile = () => {
|
|
|
25716
25719
|
// src/Prebuilt/components/Pagination.tsx
|
|
25717
25720
|
init_define_process_env();
|
|
25718
25721
|
import React133, { useEffect as useEffect34 } from "react";
|
|
25719
|
-
import { ChevronLeftIcon as
|
|
25722
|
+
import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
|
|
25720
25723
|
var Pagination = ({
|
|
25721
25724
|
page,
|
|
25722
25725
|
onPageChange,
|
|
@@ -25740,7 +25743,7 @@ var Pagination = ({
|
|
|
25740
25743
|
if (numPages <= 1) {
|
|
25741
25744
|
return null;
|
|
25742
25745
|
}
|
|
25743
|
-
return /* @__PURE__ */ React133.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React133.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React133.createElement(
|
|
25746
|
+
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
25747
|
StyledPagination.Dot,
|
|
25745
25748
|
{
|
|
25746
25749
|
key: i,
|
|
@@ -25750,7 +25753,7 @@ var Pagination = ({
|
|
|
25750
25753
|
onPageChange(i);
|
|
25751
25754
|
}
|
|
25752
25755
|
}
|
|
25753
|
-
))) : null, /* @__PURE__ */ React133.createElement(StyledPagination.Chevron, { disabled: disableRight, onClick: nextPage }, /* @__PURE__ */ React133.createElement(
|
|
25756
|
+
))) : 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
25757
|
};
|
|
25755
25758
|
|
|
25756
25759
|
// src/Prebuilt/components/VideoLayouts/Grid.tsx
|
|
@@ -26129,11 +26132,11 @@ import { selectPeersScreenSharing, useHMSStore as useHMSStore68 } from "@100msli
|
|
|
26129
26132
|
|
|
26130
26133
|
// src/Prebuilt/components/ScreenshareTile.jsx
|
|
26131
26134
|
init_define_process_env();
|
|
26132
|
-
import React140, { useRef as
|
|
26135
|
+
import React140, { useRef as useRef22, useState as useState58 } from "react";
|
|
26133
26136
|
import { useFullscreen as useFullscreen2 } from "react-use";
|
|
26134
26137
|
import screenfull2 from "screenfull";
|
|
26135
26138
|
import {
|
|
26136
|
-
selectLocalPeerID as
|
|
26139
|
+
selectLocalPeerID as selectLocalPeerID12,
|
|
26137
26140
|
selectPeerByID as selectPeerByID3,
|
|
26138
26141
|
selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
|
|
26139
26142
|
selectScreenShareByPeerID,
|
|
@@ -26188,13 +26191,13 @@ var labelStyles = {
|
|
|
26188
26191
|
flexShrink: 0
|
|
26189
26192
|
};
|
|
26190
26193
|
var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
26191
|
-
const isLocal = useHMSStore67(
|
|
26194
|
+
const isLocal = useHMSStore67(selectLocalPeerID12) === peerId;
|
|
26192
26195
|
const track = useHMSStore67(selectScreenShareByPeerID(peerId));
|
|
26193
26196
|
const peer = useHMSStore67(selectPeerByID3(peerId));
|
|
26194
26197
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
|
26195
26198
|
const [isMouseHovered, setIsMouseHovered] = useState58(false);
|
|
26196
26199
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
|
26197
|
-
const fullscreenRef =
|
|
26200
|
+
const fullscreenRef = useRef22(null);
|
|
26198
26201
|
const [fullscreen, setFullscreen] = useState58(false);
|
|
26199
26202
|
const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
|
|
26200
26203
|
onClose: () => setFullscreen(false)
|
|
@@ -26393,7 +26396,7 @@ var GridLayout = ({
|
|
|
26393
26396
|
const pinnedTrack = usePinnedTrack();
|
|
26394
26397
|
const peers = useHMSStore69(selectPeers3);
|
|
26395
26398
|
const localPeerRole = useHMSStore69(selectLocalPeerRoleName5);
|
|
26396
|
-
const localPeerID = useHMSStore69(
|
|
26399
|
+
const localPeerID = useHMSStore69(selectLocalPeerID13);
|
|
26397
26400
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
|
26398
26401
|
const isRoleProminence = prominentRoles.length && peers.some(
|
|
26399
26402
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
|
@@ -26725,7 +26728,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
|
26725
26728
|
};
|
|
26726
26729
|
|
|
26727
26730
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
|
26728
|
-
var HLSView = React147.lazy(() => import("./HLSView-
|
|
26731
|
+
var HLSView = React147.lazy(() => import("./HLSView-2DSOSSTP.js"));
|
|
26729
26732
|
var VideoStreamingSection = ({
|
|
26730
26733
|
screenType,
|
|
26731
26734
|
elements,
|
|
@@ -27016,10 +27019,10 @@ var ConferenceScreen = () => {
|
|
|
27016
27019
|
const [hideControls, setHideControls] = useState61(false);
|
|
27017
27020
|
const dropdownList = useHMSStore75(selectAppData7(APP_DATA.dropdownList));
|
|
27018
27021
|
const authTokenInAppData = useAuthToken();
|
|
27019
|
-
const headerRef =
|
|
27020
|
-
const footerRef =
|
|
27022
|
+
const headerRef = useRef23(null);
|
|
27023
|
+
const footerRef = useRef23(null);
|
|
27021
27024
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
|
27022
|
-
const dropdownListRef =
|
|
27025
|
+
const dropdownListRef = useRef23();
|
|
27023
27026
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
|
27024
27027
|
const toggleControls = () => {
|
|
27025
27028
|
var _a9;
|
|
@@ -27027,7 +27030,7 @@ var ConferenceScreen = () => {
|
|
|
27027
27030
|
setHideControls((value) => !value);
|
|
27028
27031
|
}
|
|
27029
27032
|
};
|
|
27030
|
-
const autoRoomJoined =
|
|
27033
|
+
const autoRoomJoined = useRef23(isPreviewScreenEnabled);
|
|
27031
27034
|
useEffect47(() => {
|
|
27032
27035
|
let timeout;
|
|
27033
27036
|
dropdownListRef.current = dropdownList || [];
|
|
@@ -27545,7 +27548,7 @@ import React164, { useCallback as useCallback33, useEffect as useEffect62 } from
|
|
|
27545
27548
|
import {
|
|
27546
27549
|
HMSNotificationTypes as HMSNotificationTypes10,
|
|
27547
27550
|
HMSRoomState as HMSRoomState10,
|
|
27548
|
-
selectLocalPeerID as
|
|
27551
|
+
selectLocalPeerID as selectLocalPeerID15,
|
|
27549
27552
|
selectPeerNameByID as selectPeerNameByID5,
|
|
27550
27553
|
selectRoomState as selectRoomState10,
|
|
27551
27554
|
useCustomEvent as useCustomEvent4,
|
|
@@ -27817,12 +27820,12 @@ function AutoplayBlockedModal() {
|
|
|
27817
27820
|
init_define_process_env();
|
|
27818
27821
|
import React158, { useEffect as useEffect53 } from "react";
|
|
27819
27822
|
import { v4 as uuid3 } from "uuid";
|
|
27820
|
-
import { selectLocalPeerID as
|
|
27823
|
+
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore11, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
|
|
27821
27824
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon as ChatUnreadIcon2 } from "@100mslive/react-icons";
|
|
27822
27825
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
|
27823
27826
|
var ChatNotifications = () => {
|
|
27824
27827
|
const chatState = useHMSStore79(selectSessionStore11("chatState" /* CHAT_STATE */));
|
|
27825
|
-
const localPeerId = useHMSStore79(
|
|
27828
|
+
const localPeerId = useHMSStore79(selectLocalPeerID14);
|
|
27826
27829
|
useEffect53(() => {
|
|
27827
27830
|
var _a8, _b7;
|
|
27828
27831
|
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
|
@@ -27990,24 +27993,39 @@ function PermissionErrorModal() {
|
|
|
27990
27993
|
}
|
|
27991
27994
|
setIsSystemError(notification.data.code === 3011);
|
|
27992
27995
|
}, [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.
|
|
27996
|
+
return deviceType ? /* @__PURE__ */ React160.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React160.createElement(Dialog.Portal, null, /* @__PURE__ */ React160.createElement(Dialog.Overlay, null), /* @__PURE__ */ React160.createElement(
|
|
27997
|
+
Dialog.Content,
|
|
27995
27998
|
{
|
|
27996
27999
|
css: {
|
|
27997
|
-
|
|
28000
|
+
w: "min(380px, 90%)",
|
|
28001
|
+
p: "$8",
|
|
28002
|
+
// overlay over Sheet.tsx
|
|
28003
|
+
zIndex: 23
|
|
27998
28004
|
}
|
|
27999
28005
|
},
|
|
28000
|
-
|
|
28001
|
-
|
|
28002
|
-
"img",
|
|
28006
|
+
/* @__PURE__ */ React160.createElement(
|
|
28007
|
+
Dialog.Title,
|
|
28003
28008
|
{
|
|
28004
|
-
|
|
28005
|
-
|
|
28006
|
-
|
|
28007
|
-
}
|
|
28008
|
-
|
|
28009
|
-
|
|
28010
|
-
|
|
28009
|
+
css: {
|
|
28010
|
+
borderBottom: "1px solid $border_default"
|
|
28011
|
+
}
|
|
28012
|
+
},
|
|
28013
|
+
isMobile && isIOS ? /* @__PURE__ */ React160.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
|
28014
|
+
isMobile && isAndroid ? /* @__PURE__ */ React160.createElement(
|
|
28015
|
+
"img",
|
|
28016
|
+
{
|
|
28017
|
+
src: android_perm_1_default,
|
|
28018
|
+
style: { maxWidth: "100%", maxHeight: "100%" },
|
|
28019
|
+
alt: "Android Permission flow "
|
|
28020
|
+
}
|
|
28021
|
+
) : null,
|
|
28022
|
+
/* @__PURE__ */ React160.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
|
28023
|
+
),
|
|
28024
|
+
/* @__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),
|
|
28025
|
+
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,
|
|
28026
|
+
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,
|
|
28027
|
+
!isMobile ? /* @__PURE__ */ React160.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React160.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
|
28028
|
+
))) : null;
|
|
28011
28029
|
}
|
|
28012
28030
|
|
|
28013
28031
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
|
@@ -28187,7 +28205,7 @@ var TrackUnmuteModal = () => {
|
|
|
28187
28205
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
|
28188
28206
|
var pollToastKey = {};
|
|
28189
28207
|
function Notifications() {
|
|
28190
|
-
const localPeerID = useHMSStore81(
|
|
28208
|
+
const localPeerID = useHMSStore81(selectLocalPeerID15);
|
|
28191
28209
|
const notification = useHMSNotifications10();
|
|
28192
28210
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
|
28193
28211
|
const roomState = useHMSStore81(selectRoomState10);
|
|
@@ -28403,7 +28421,7 @@ init_define_process_env();
|
|
|
28403
28421
|
import React168, { useCallback as useCallback34, useEffect as useEffect64, useMemo as useMemo18, useState as useState69 } from "react";
|
|
28404
28422
|
import { useMedia as useMedia33 } from "react-use";
|
|
28405
28423
|
import {
|
|
28406
|
-
selectLocalPeerID as
|
|
28424
|
+
selectLocalPeerID as selectLocalPeerID16,
|
|
28407
28425
|
selectPeerNameByID as selectPeerNameByID6,
|
|
28408
28426
|
useCustomEvent as useCustomEvent5,
|
|
28409
28427
|
useHMSStore as useHMSStore83,
|
|
@@ -28433,7 +28451,7 @@ var getStartingPoints = (isMobile) => {
|
|
|
28433
28451
|
return arr;
|
|
28434
28452
|
};
|
|
28435
28453
|
function FlyingEmoji() {
|
|
28436
|
-
const localPeerId = useHMSStore83(
|
|
28454
|
+
const localPeerId = useHMSStore83(selectLocalPeerID16);
|
|
28437
28455
|
const vanillaStore = useHMSVanillaStore17();
|
|
28438
28456
|
const [emojis, setEmojis] = useState69([]);
|
|
28439
28457
|
const isMobile = useMedia33(config.media.md);
|
|
@@ -28547,22 +28565,22 @@ function RemoteStopScreenshare() {
|
|
|
28547
28565
|
|
|
28548
28566
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
|
28549
28567
|
init_define_process_env();
|
|
28550
|
-
import { useCallback as useCallback36, useEffect as useEffect65, useRef as
|
|
28568
|
+
import { useCallback as useCallback36, useEffect as useEffect65, useRef as useRef24 } from "react";
|
|
28551
28569
|
import {
|
|
28552
28570
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
|
28553
|
-
selectPermissions as
|
|
28571
|
+
selectPermissions as selectPermissions17,
|
|
28554
28572
|
useHMSActions as useHMSActions51,
|
|
28555
28573
|
useHMSStore as useHMSStore84,
|
|
28556
28574
|
useRecordingStreaming as useRecordingStreaming11
|
|
28557
28575
|
} from "@100mslive/react-sdk";
|
|
28558
28576
|
var useAutoStartStreaming = () => {
|
|
28559
28577
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
|
28560
|
-
const permissions = useHMSStore84(
|
|
28578
|
+
const permissions = useHMSStore84(selectPermissions17);
|
|
28561
28579
|
const showStreamingUI = useShowStreamingUI();
|
|
28562
28580
|
const hmsActions = useHMSActions51();
|
|
28563
28581
|
const isConnected = useHMSStore84(selectIsConnectedToRoom12);
|
|
28564
28582
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming11();
|
|
28565
|
-
const streamStartedRef =
|
|
28583
|
+
const streamStartedRef = useRef24(false);
|
|
28566
28584
|
const startHLS = useCallback36(() => __async(void 0, null, function* () {
|
|
28567
28585
|
try {
|
|
28568
28586
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
|
@@ -28614,7 +28632,7 @@ var HMSPrebuilt = React170.forwardRef(
|
|
|
28614
28632
|
onJoin
|
|
28615
28633
|
}, ref) => {
|
|
28616
28634
|
var _a8, _b7, _c, _d;
|
|
28617
|
-
const reactiveStore =
|
|
28635
|
+
const reactiveStore = useRef25();
|
|
28618
28636
|
const [hydrated, setHydrated] = React170.useState(false);
|
|
28619
28637
|
useEffect66(() => {
|
|
28620
28638
|
setHydrated(true);
|
|
@@ -28919,4 +28937,4 @@ lodash/lodash.js:
|
|
|
28919
28937
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
28920
28938
|
*)
|
|
28921
28939
|
*/
|
|
28922
|
-
//# sourceMappingURL=chunk-
|
|
28940
|
+
//# sourceMappingURL=chunk-XXVJPGLN.js.map
|