@100mslive/roomkit-react 0.2.8-alpha.9 → 0.3.1-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-TOMPA4E4.js → HLSView-VXHATNNQ.js} +141 -86
- package/dist/HLSView-VXHATNNQ.js.map +7 -0
- package/dist/Prebuilt/components/Chat/Chat.d.ts +1 -1
- package/dist/Prebuilt/components/HMSVideo/VideoProgress.d.ts +4 -1
- package/dist/Prebuilt/components/HMSVideo/index.d.ts +4 -1
- package/dist/Prebuilt/components/SidePaneTabs.d.ts +0 -1
- package/dist/Prebuilt/layouts/SidePane.d.ts +1 -1
- package/dist/{chunk-FUDX3LDB.js → chunk-RRXRF2KB.js} +207 -151
- package/dist/chunk-RRXRF2KB.js.map +7 -0
- package/dist/index.cjs.js +365 -255
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +88 -63
- package/dist/meta.esbuild.json +100 -74
- package/package.json +6 -6
- package/src/Prebuilt/components/Chat/Chat.tsx +23 -4
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +2 -2
- package/src/Prebuilt/components/Chat/EmptyChat.tsx +5 -1
- package/src/Prebuilt/components/Chat/PinnedMessage.tsx +4 -3
- package/src/Prebuilt/components/ConferenceScreen.tsx +13 -1
- package/src/Prebuilt/components/EmojiReaction.jsx +2 -2
- package/src/Prebuilt/components/Footer/RoleOptions.tsx +4 -4
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +13 -10
- package/src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx +6 -4
- package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +36 -23
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -1
- package/src/Prebuilt/components/MwebLandscapePrompt.tsx +9 -3
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +1 -1
- package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx +1 -1
- package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +1 -1
- package/src/Prebuilt/components/SidePaneTabs.tsx +1 -4
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +1 -0
- package/src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx +2 -0
- package/src/Prebuilt/layouts/HLSView.jsx +291 -245
- package/src/Prebuilt/layouts/SidePane.tsx +74 -49
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +10 -2
- package/dist/HLSView-TOMPA4E4.js.map +0 -7
- package/dist/chunk-FUDX3LDB.js.map +0 -7
package/dist/index.cjs.js
CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
|
|
108
108
|
var define_process_env_default;
|
109
109
|
var init_define_process_env = __esm({
|
110
110
|
"<define:process.env>"() {
|
111
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_cf01f7b0-2724-4e4f-b298-ff7feccfe357", 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.1 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.8-alpha.9", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_cf01f7b0-2724-4e4f-b298-ff7feccfe357", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.8-alpha.9", 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.7", 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.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "591", 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.14/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.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.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", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", 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_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", 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:19780", 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.8-alpha.9", 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: "8109554901", 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_dependencies_ts_pattern: "4.3.0", 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: "2a735b6edf0b63927744abb555b47ab9be6e5891", 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: "7312e8d1b6dc1c3c88807c4efcd1e1b66331c074df1f1b56194f927df7add041", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", 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--1709286943827-0.6891216397962161:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709286943630-0.9971913087997049:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709286921685-0.8303138139294286:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709286921507-0.5830472582556345:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_105a33c3-e668-4c3a-9613-d5a1981afa4e", INVOCATION_ID: "546f5e1c56564beaa3ea908eafaed9c6", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", 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: "459", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", 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 59", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", 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.8-alpha.9", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.9", 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: "2a735b6edf0b63927744abb555b47ab9be6e5891", 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/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", 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_cf01f7b0-2724-4e4f-b298-ff7feccfe357", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", 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.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_cf01f7b0-2724-4e4f-b298-ff7feccfe357", 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_cf01f7b0-2724-4e4f-b298-ff7feccfe357" };
|
111
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ab520a32-0e8c-4e94-98ef-931221080404", 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.1 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.10.1-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ab520a32-0e8c-4e94-98ef-931221080404", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.13.1-alpha.0", 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.7", 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.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "594", 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.14/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.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.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", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", 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_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", 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:19125", 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.3.1-alpha.0", 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: "8168860242", 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_dependencies_ts_pattern: "4.3.0", 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: "995fe879991b8b955f2ad917e8650a1abbbd5399", 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: "2da673bb0b4e42178f6ce38f45fd554cd1a02c4b721d041831f9452124b949e4", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", 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--1709712827692-0.9984712008035668:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709712827492-0.6077623487786448:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709712804731-0.716204009032984:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709712804551-0.5033325400363009:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7d27d35c-9c72-4513-95c3-4fd6be94b999", INVOCATION_ID: "5c7935390e7149a9b8fbf42c73fa3bf5", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", 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: "467", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", 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 335", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", 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.10.1-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.1-alpha.0", 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: "995fe879991b8b955f2ad917e8650a1abbbd5399", 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/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", 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_ab520a32-0e8c-4e94-98ef-931221080404", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", 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.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_ab520a32-0e8c-4e94-98ef-931221080404", 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_ab520a32-0e8c-4e94-98ef-931221080404" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -6870,8 +6870,8 @@ var require_lodash = __commonJS({
|
|
6870
6870
|
return { "start": start, "end": end };
|
6871
6871
|
}
|
6872
6872
|
function getWrapDetails(source) {
|
6873
|
-
var
|
6874
|
-
return
|
6873
|
+
var match13 = source.match(reWrapDetails);
|
6874
|
+
return match13 ? match13[1].split(reSplitDetails) : [];
|
6875
6875
|
}
|
6876
6876
|
function hasPath(object, path, hasFunc) {
|
6877
6877
|
path = castPath(path, object);
|
@@ -7139,8 +7139,8 @@ var require_lodash = __commonJS({
|
|
7139
7139
|
if (string.charCodeAt(0) === 46) {
|
7140
7140
|
result2.push("");
|
7141
7141
|
}
|
7142
|
-
string.replace(rePropName, function(
|
7143
|
-
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number ||
|
7142
|
+
string.replace(rePropName, function(match13, number, quote, subString) {
|
7143
|
+
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match13);
|
7144
7144
|
});
|
7145
7145
|
return result2;
|
7146
7146
|
});
|
@@ -8706,7 +8706,7 @@ var require_lodash = __commonJS({
|
|
8706
8706
|
"g"
|
8707
8707
|
);
|
8708
8708
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
8709
|
-
string.replace(reDelimiters, function(
|
8709
|
+
string.replace(reDelimiters, function(match13, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
8710
8710
|
interpolateValue || (interpolateValue = esTemplateValue);
|
8711
8711
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
8712
8712
|
if (escapeValue) {
|
@@ -8720,8 +8720,8 @@ var require_lodash = __commonJS({
|
|
8720
8720
|
if (interpolateValue) {
|
8721
8721
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
8722
8722
|
}
|
8723
|
-
index = offset +
|
8724
|
-
return
|
8723
|
+
index = offset + match13.length;
|
8724
|
+
return match13;
|
8725
8725
|
});
|
8726
8726
|
source += "';\n";
|
8727
8727
|
var variable = hasOwnProperty.call(options, "variable") && options.variable;
|
@@ -8809,13 +8809,13 @@ var require_lodash = __commonJS({
|
|
8809
8809
|
}
|
8810
8810
|
if (isRegExp(separator)) {
|
8811
8811
|
if (string.slice(end).search(separator)) {
|
8812
|
-
var
|
8812
|
+
var match13, substring = result2;
|
8813
8813
|
if (!separator.global) {
|
8814
8814
|
separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
|
8815
8815
|
}
|
8816
8816
|
separator.lastIndex = 0;
|
8817
|
-
while (
|
8818
|
-
var newEnd =
|
8817
|
+
while (match13 = separator.exec(substring)) {
|
8818
|
+
var newEnd = match13.index;
|
8819
8819
|
}
|
8820
8820
|
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
8821
8821
|
}
|
@@ -11617,7 +11617,7 @@ var init_EmojiReaction = __esm({
|
|
11617
11617
|
init_hooks();
|
11618
11618
|
init_constants();
|
11619
11619
|
(0, import_emoji_mart.init)({ data: import_apple.default });
|
11620
|
-
EmojiReaction = () => {
|
11620
|
+
EmojiReaction = ({ showCard = false }) => {
|
11621
11621
|
const [open, setOpen] = (0, import_react48.useState)(false);
|
11622
11622
|
const isConnected = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectIsConnectedToRoom);
|
11623
11623
|
useDropdownList({ open, name: "EmojiReaction" });
|
@@ -11643,7 +11643,7 @@ var init_EmojiReaction = __esm({
|
|
11643
11643
|
if (!isConnected) {
|
11644
11644
|
return null;
|
11645
11645
|
}
|
11646
|
-
if (
|
11646
|
+
if (showCard) {
|
11647
11647
|
return /* @__PURE__ */ import_react48.default.createElement(EmojiCard, { sendReaction });
|
11648
11648
|
}
|
11649
11649
|
return /* @__PURE__ */ import_react48.default.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ import_react48.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ import_react48.default.createElement(
|
@@ -14018,7 +14018,7 @@ var require_ua_parser = __commonJS({
|
|
14018
14018
|
}
|
14019
14019
|
};
|
14020
14020
|
var rgxMapper = function(ua, arrays) {
|
14021
|
-
var i = 0, j, k2, p, q2, matches,
|
14021
|
+
var i = 0, j, k2, p, q2, matches, match13;
|
14022
14022
|
while (i < arrays.length && !matches) {
|
14023
14023
|
var regex = arrays[i], props = arrays[i + 1];
|
14024
14024
|
j = k2 = 0;
|
@@ -14029,26 +14029,26 @@ var require_ua_parser = __commonJS({
|
|
14029
14029
|
matches = regex[j++].exec(ua);
|
14030
14030
|
if (!!matches) {
|
14031
14031
|
for (p = 0; p < props.length; p++) {
|
14032
|
-
|
14032
|
+
match13 = matches[++k2];
|
14033
14033
|
q2 = props[p];
|
14034
14034
|
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
14035
14035
|
if (q2.length === 2) {
|
14036
14036
|
if (typeof q2[1] == FUNC_TYPE) {
|
14037
|
-
this[q2[0]] = q2[1].call(this,
|
14037
|
+
this[q2[0]] = q2[1].call(this, match13);
|
14038
14038
|
} else {
|
14039
14039
|
this[q2[0]] = q2[1];
|
14040
14040
|
}
|
14041
14041
|
} else if (q2.length === 3) {
|
14042
14042
|
if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
|
14043
|
-
this[q2[0]] =
|
14043
|
+
this[q2[0]] = match13 ? q2[1].call(this, match13, q2[2]) : undefined2;
|
14044
14044
|
} else {
|
14045
|
-
this[q2[0]] =
|
14045
|
+
this[q2[0]] = match13 ? match13.replace(q2[1], q2[2]) : undefined2;
|
14046
14046
|
}
|
14047
14047
|
} else if (q2.length === 4) {
|
14048
|
-
this[q2[0]] =
|
14048
|
+
this[q2[0]] = match13 ? q2[3].call(this, match13.replace(q2[1], q2[2])) : undefined2;
|
14049
14049
|
}
|
14050
14050
|
} else {
|
14051
|
-
this[q2] =
|
14051
|
+
this[q2] = match13 ? match13 : undefined2;
|
14052
14052
|
}
|
14053
14053
|
}
|
14054
14054
|
}
|
@@ -15939,8 +15939,8 @@ var require_lodash2 = __commonJS({
|
|
15939
15939
|
|
15940
15940
|
// ../../node_modules/webrtc-adapter/src/js/utils.js
|
15941
15941
|
function extractVersion(uastring, expr, pos) {
|
15942
|
-
const
|
15943
|
-
return
|
15942
|
+
const match13 = uastring.match(expr);
|
15943
|
+
return match13 && match13.length >= pos && parseInt(match13[pos], 10);
|
15944
15944
|
}
|
15945
15945
|
function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
|
15946
15946
|
if (!window2.RTCPeerConnection) {
|
@@ -16232,7 +16232,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16232
16232
|
if (matches) {
|
16233
16233
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
16234
16234
|
devices = devices.filter((d2) => d2.kind === "videoinput");
|
16235
|
-
let dev = devices.find((d2) => matches.some((
|
16235
|
+
let dev = devices.find((d2) => matches.some((match13) => d2.label.toLowerCase().includes(match13)));
|
16236
16236
|
if (!dev && devices.length && matches.includes("back")) {
|
16237
16237
|
dev = devices[devices.length - 1];
|
16238
16238
|
}
|
@@ -18330,11 +18330,11 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18330
18330
|
});
|
18331
18331
|
};
|
18332
18332
|
const getRemoteFirefoxVersion = function(description) {
|
18333
|
-
const
|
18334
|
-
if (
|
18333
|
+
const match13 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
18334
|
+
if (match13 === null || match13.length < 2) {
|
18335
18335
|
return -1;
|
18336
18336
|
}
|
18337
|
-
const version = parseInt(
|
18337
|
+
const version = parseInt(match13[1], 10);
|
18338
18338
|
return version !== version ? -1 : version;
|
18339
18339
|
};
|
18340
18340
|
const getCanSendMaxMessageSize = function(remoteIsFirefox) {
|
@@ -18359,12 +18359,12 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18359
18359
|
if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
|
18360
18360
|
maxMessageSize = 65535;
|
18361
18361
|
}
|
18362
|
-
const
|
18362
|
+
const match13 = import_sdp.default.matchPrefix(
|
18363
18363
|
description.sdp,
|
18364
18364
|
"a=max-message-size:"
|
18365
18365
|
);
|
18366
|
-
if (
|
18367
|
-
maxMessageSize = parseInt(
|
18366
|
+
if (match13.length > 0) {
|
18367
|
+
maxMessageSize = parseInt(match13[0].substring(19), 10);
|
18368
18368
|
} else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
|
18369
18369
|
maxMessageSize = 2147483637;
|
18370
18370
|
}
|
@@ -19186,13 +19186,13 @@ var require_parser = __commonJS({
|
|
19186
19186
|
var toIntIfInt = function(v2) {
|
19187
19187
|
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
19188
19188
|
};
|
19189
|
-
var attachProperties = function(
|
19189
|
+
var attachProperties = function(match13, location, names, rawName) {
|
19190
19190
|
if (rawName && !names) {
|
19191
|
-
location[rawName] = toIntIfInt(
|
19191
|
+
location[rawName] = toIntIfInt(match13[1]);
|
19192
19192
|
} else {
|
19193
19193
|
for (var i = 0; i < names.length; i += 1) {
|
19194
|
-
if (
|
19195
|
-
location[names[i]] = toIntIfInt(
|
19194
|
+
if (match13[i + 1] != null) {
|
19195
|
+
location[names[i]] = toIntIfInt(match13[i + 1]);
|
19196
19196
|
}
|
19197
19197
|
}
|
19198
19198
|
}
|
@@ -19417,7 +19417,7 @@ function He(a2, e) {
|
|
19417
19417
|
if (e)
|
19418
19418
|
for (let r of e.auxiliaryTracks) {
|
19419
19419
|
let s = a2[r];
|
19420
|
-
|
19420
|
+
Ra(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
|
19421
19421
|
}
|
19422
19422
|
return { video: t, audio: i };
|
19423
19423
|
}
|
@@ -19427,7 +19427,7 @@ function tt(a2) {
|
|
19427
19427
|
function it(a2) {
|
19428
19428
|
return a2 && a2.type === "video";
|
19429
19429
|
}
|
19430
|
-
function
|
19430
|
+
function Ra(a2) {
|
19431
19431
|
return a2 && a2.source === "screen";
|
19432
19432
|
}
|
19433
19433
|
function Gt(a2) {
|
@@ -19486,7 +19486,7 @@ function tm(a2) {
|
|
19486
19486
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19487
19487
|
};
|
19488
19488
|
}
|
19489
|
-
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Lt, import_eventemitter24, import_uuid9, import_uuid10, Ma, ya, ka, Vt, Gr, $r, Fr, S, M, Yi, ba, dr, Xi, Aa, Wr, Zi, Kr, V,
|
19489
|
+
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Lt, import_eventemitter24, import_uuid9, import_uuid10, Ma, ya, ka, Vt, Gr, $r, Fr, S, M, Yi, ba, dr, Xi, Aa, Wr, Zi, Kr, V, Ia, An, Rn, G, $t, Jr, D, er, Ha, ye, Cn, Ca, ae, La, z, ue, Ln, Dn, Z, K, Da, zr, wn, _n, ir, wa, On, xn, Un, Vn, Bn, Fn, Gn, $n, at, _a7, Wn, Y, Xr, Kn, oe, qn, Wt, Na, Zr, jn, es, Jn, Qn, zn, Yn, Xn, Zn, ec, tc, ts, ac, Oa, oc, rs, rr, ss, as, os, ns, cs, ds, ls, us, ps, xa, d, pe, w, hs, Ce, Va, mc, ms, Ss, Ts, Be, v, f, Fa, h, or, fs, ne, vs, ys, ks, I, y, ur, q, pr, hr, Is, Hs, Cs, mr, _s, Sr, Ns, gr, Tr, Us, Vs, pt, Qe, gt, k, Rr, Tt, qs, uo, po, J, Ir, ho, mo, So, go, To, Q, em, rm, ai, js, sm, am, om, fo, vo, cm, Js, dm, Mo, lm, um, pm, hm, mm, Sm, Qs, zs, Tm, fm, Ys, vm, Mm, Xs, ym, km, Em, Zs, ea, yo, ko, Eo, Pm, bm, Am, Rm, Im, ta, Vm, Po, Bm, Fm, Gm, Ao, Ro, wr, Te, $, Ui, ji, jo, Jo, Qo, zo, fa, Yo, va, Ur, ve, Xo, Zo, en, tn, rn, sn, an, on, nn, cn, Vr, dn, ln, un, pn, hn, mn;
|
19490
19490
|
var init_dist = __esm({
|
19491
19491
|
"../hms-video-store/dist/index.js"() {
|
19492
19492
|
"use strict";
|
@@ -19541,7 +19541,7 @@ var init_dist = __esm({
|
|
19541
19541
|
};
|
19542
19542
|
ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19543
19543
|
dr = ba((Xc, $a) => {
|
19544
|
-
$a.exports = { version: "0.
|
19544
|
+
$a.exports = { version: "0.12.1-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", 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/lodash.isequal": "^4.5.8", "@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"] };
|
19545
19545
|
});
|
19546
19546
|
Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
|
19547
19547
|
Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
|
@@ -19549,9 +19549,9 @@ var init_dist = __esm({
|
|
19549
19549
|
Zi = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(Zi || {});
|
19550
19550
|
Kr = ((t) => (t.audio = "audio", t.video = "video", t))(Kr || {});
|
19551
19551
|
V = (a2) => a2.room;
|
19552
|
-
|
19553
|
-
An = createSelector(
|
19554
|
-
|
19552
|
+
Ia = (a2) => a2.errors;
|
19553
|
+
An = createSelector(Ia, (a2) => a2.length === 0 ? null : a2.at(-1));
|
19554
|
+
Rn = createSelector(V, (a2) => a2.id);
|
19555
19555
|
G = (a2) => a2.peers;
|
19556
19556
|
$t = (a2) => a2.messages.byID;
|
19557
19557
|
Jr = (a2) => a2.messages.allIDs;
|
@@ -19965,7 +19965,7 @@ var init_dist = __esm({
|
|
19965
19965
|
};
|
19966
19966
|
ys = dr().version;
|
19967
19967
|
ks = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
19968
|
-
|
19968
|
+
I = class {
|
19969
19969
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
19970
19970
|
this.metadata = { peer: {}, userAgent: ot() };
|
19971
19971
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = vs();
|
@@ -19977,57 +19977,57 @@ var init_dist = __esm({
|
|
19977
19977
|
y = class {
|
19978
19978
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
19979
19979
|
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
19980
|
-
return new
|
19980
|
+
return new I({ name: o, level: n, properties: l });
|
19981
19981
|
}
|
19982
19982
|
static disconnect(e, t) {
|
19983
19983
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
19984
|
-
return new
|
19984
|
+
return new I({ name: i, level: r, properties: s });
|
19985
19985
|
}
|
19986
19986
|
static preview(i) {
|
19987
19987
|
var r = i, { error: e } = r, t = Yi(r, ["error"]);
|
19988
19988
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
19989
|
-
return new
|
19989
|
+
return new I({ name: s, level: o, properties: n });
|
19990
19990
|
}
|
19991
19991
|
static join(i) {
|
19992
19992
|
var r = i, { error: e } = r, t = Yi(r, ["error"]);
|
19993
19993
|
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
19994
|
-
return new
|
19994
|
+
return new I({ name: s, level: o, properties: n });
|
19995
19995
|
}
|
19996
19996
|
static publish({ devices: e, settings: t, error: i }) {
|
19997
19997
|
let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
|
19998
|
-
return new
|
19998
|
+
return new I({ name: r, level: s, properties: o });
|
19999
19999
|
}
|
20000
20000
|
static hlsPlayerError(e) {
|
20001
|
-
return new
|
20001
|
+
return new I({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
|
20002
20002
|
}
|
20003
20003
|
static subscribeFail(e) {
|
20004
20004
|
let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
|
20005
|
-
return new
|
20005
|
+
return new I({ name: t, level: i, properties: r });
|
20006
20006
|
}
|
20007
20007
|
static leave() {
|
20008
|
-
return new
|
20008
|
+
return new I({ name: "leave", level: 1 });
|
20009
20009
|
}
|
20010
20010
|
static autoplayError() {
|
20011
|
-
return new
|
20011
|
+
return new I({ name: "autoplayError", level: 2 });
|
20012
20012
|
}
|
20013
20013
|
static audioPlaybackError(e) {
|
20014
|
-
return new
|
20014
|
+
return new I({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
20015
20015
|
}
|
20016
20016
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
20017
20017
|
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
20018
|
-
return new
|
20018
|
+
return new I({ name: o, level: n, properties: l });
|
20019
20019
|
}
|
20020
20020
|
static performance(e) {
|
20021
20021
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
20022
|
-
return new
|
20022
|
+
return new I({ name: t, level: i, properties: r });
|
20023
20023
|
}
|
20024
20024
|
static rtcStats(e) {
|
20025
20025
|
let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
|
20026
|
-
return new
|
20026
|
+
return new I({ name: t, level: i, properties: r });
|
20027
20027
|
}
|
20028
20028
|
static rtcStatsFailed(e) {
|
20029
20029
|
let t = "rtc.stats.failed", i = 2;
|
20030
|
-
return new
|
20030
|
+
return new I({ name: t, level: i, properties: this.getErrorProperties(e) });
|
20031
20031
|
}
|
20032
20032
|
static degradationStats(e, t) {
|
20033
20033
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
@@ -20035,20 +20035,20 @@ var init_dist = __esm({
|
|
20035
20035
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
20036
20036
|
s = M(S({}, s), { duration: n, restoredAt: o });
|
20037
20037
|
}
|
20038
|
-
return new
|
20038
|
+
return new I({ name: i, level: r, properties: s });
|
20039
20039
|
}
|
20040
20040
|
static audioDetectionFail(e, t) {
|
20041
20041
|
let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
|
20042
|
-
return new
|
20042
|
+
return new I({ name: s, level: r, properties: i });
|
20043
20043
|
}
|
20044
20044
|
static previewNetworkQuality(e) {
|
20045
|
-
return new
|
20045
|
+
return new I({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
|
20046
20046
|
}
|
20047
20047
|
static publishStats(e) {
|
20048
|
-
return new
|
20048
|
+
return new I({ name: "publisher.stats", level: 1, properties: e });
|
20049
20049
|
}
|
20050
20050
|
static subscribeStats(e) {
|
20051
|
-
return new
|
20051
|
+
return new I({ name: "subscriber.stats", level: 1, properties: e });
|
20052
20052
|
}
|
20053
20053
|
static eventNameFor(e, t) {
|
20054
20054
|
return `${e}.${t ? "success" : "failed"}`;
|
@@ -20099,7 +20099,7 @@ var init_dist = __esm({
|
|
20099
20099
|
q = new ur();
|
20100
20100
|
pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(pr || {});
|
20101
20101
|
hr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(hr || {});
|
20102
|
-
|
20102
|
+
Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
|
20103
20103
|
Hs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Hs || {});
|
20104
20104
|
Cs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Cs || {});
|
20105
20105
|
mr = class {
|
@@ -20233,13 +20233,13 @@ var init_dist = __esm({
|
|
20233
20233
|
}
|
20234
20234
|
};
|
20235
20235
|
k.level = 0;
|
20236
|
-
|
20236
|
+
Rr = (a2, e) => e;
|
20237
20237
|
Tt = (a2, e) => e;
|
20238
20238
|
qs = (a2, e) => e;
|
20239
20239
|
uo = (a2, e) => e;
|
20240
20240
|
po = (a2, e) => e;
|
20241
|
-
J = createSelector([G,
|
20242
|
-
|
20241
|
+
J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
|
20242
|
+
Ir = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
|
20243
20243
|
ho = createSelector([D, Tt], (a2, e) => {
|
20244
20244
|
if (!e)
|
20245
20245
|
return null;
|
@@ -20271,7 +20271,7 @@ var init_dist = __esm({
|
|
20271
20271
|
return e ? a2[e] : a2;
|
20272
20272
|
}));
|
20273
20273
|
rm = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
20274
|
-
ai = b(
|
20274
|
+
ai = b(Ir);
|
20275
20275
|
js = b(ho);
|
20276
20276
|
sm = b(mo);
|
20277
20277
|
am = b(So);
|
@@ -20352,7 +20352,7 @@ var init_dist = __esm({
|
|
20352
20352
|
return Ys(t == null ? void 0 : t.id)(a2);
|
20353
20353
|
});
|
20354
20354
|
Xs = b((a2, e) => {
|
20355
|
-
let t =
|
20355
|
+
let t = Ir(a2, e);
|
20356
20356
|
if (t) {
|
20357
20357
|
if (t.type !== "audio") {
|
20358
20358
|
k.w("Please pass audio track here");
|
@@ -20369,8 +20369,8 @@ var init_dist = __esm({
|
|
20369
20369
|
let t = zs(e)(a2);
|
20370
20370
|
return Xs(t == null ? void 0 : t.id)(a2);
|
20371
20371
|
});
|
20372
|
-
|
20373
|
-
let t =
|
20372
|
+
Em = b((a2, e) => {
|
20373
|
+
let t = Ir(a2, e);
|
20374
20374
|
if (t) {
|
20375
20375
|
if (t.type !== "video") {
|
20376
20376
|
k.w("Please pass video track here");
|
@@ -20379,7 +20379,7 @@ var init_dist = __esm({
|
|
20379
20379
|
return t.layer;
|
20380
20380
|
}
|
20381
20381
|
});
|
20382
|
-
Zs = createSelector([at, ue,
|
20382
|
+
Zs = createSelector([at, ue, Rr], (a2, e, t) => {
|
20383
20383
|
if (t)
|
20384
20384
|
return a2.filter((i) => {
|
20385
20385
|
var r;
|
@@ -20398,26 +20398,26 @@ var init_dist = __esm({
|
|
20398
20398
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
20399
20399
|
}));
|
20400
20400
|
ko = createSelector([ea, qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20401
|
-
|
20402
|
-
|
20401
|
+
Eo = createSelector([Zs, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20402
|
+
Pm = createSelector(yo, (a2) => a2.filter((e) => !e.read).length);
|
20403
20403
|
bm = b(Zs);
|
20404
20404
|
Am = b(ea);
|
20405
|
-
|
20406
|
-
|
20405
|
+
Rm = b(ko);
|
20406
|
+
Im = b(Eo);
|
20407
20407
|
ta = b(To);
|
20408
20408
|
Vm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
|
20409
20409
|
var r;
|
20410
20410
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
20411
20411
|
}));
|
20412
|
-
|
20413
|
-
Bm = createSelector([
|
20412
|
+
Po = (a2) => a2.roleChangeRequests[0] || null;
|
20413
|
+
Bm = createSelector([Po, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
20414
20414
|
Fm = createSelector([Wt], (a2) => st(a2));
|
20415
20415
|
Gm = createSelector([Zr], (a2) => st(a2));
|
20416
20416
|
Ao = createSelector([K, D], (a2, e) => {
|
20417
20417
|
let t = null;
|
20418
20418
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20419
20419
|
});
|
20420
|
-
|
20420
|
+
Ro = createSelector([Z, D], (a2, e) => {
|
20421
20421
|
let t = null;
|
20422
20422
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20423
20423
|
});
|
@@ -20804,7 +20804,7 @@ var init_StreamActions = __esm({
|
|
20804
20804
|
};
|
20805
20805
|
RecordingPauseStatus = () => {
|
20806
20806
|
const recording = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectRecordingState);
|
20807
|
-
if (recording.hls && recording.hls.state ===
|
20807
|
+
if (recording.hls && recording.hls.state === Is.PAUSED) {
|
20808
20808
|
return /* @__PURE__ */ import_react72.default.createElement(
|
20809
20809
|
Tooltip,
|
20810
20810
|
{
|
@@ -21478,7 +21478,7 @@ var init_MwebOptions = __esm({
|
|
21478
21478
|
mx: "$4"
|
21479
21479
|
}
|
21480
21480
|
},
|
21481
|
-
/* @__PURE__ */ import_react78.default.createElement(EmojiReaction,
|
21481
|
+
/* @__PURE__ */ import_react78.default.createElement(EmojiReaction, { showCard: true })
|
21482
21482
|
), showRecordingOn && /* @__PURE__ */ import_react78.default.createElement(
|
21483
21483
|
StopRecordingInSheet,
|
21484
21484
|
{
|
@@ -22388,9 +22388,6 @@ var init_RoleOptions = __esm({
|
|
22388
22388
|
if (import_react92.default.Children.toArray(children).length === 0) {
|
22389
22389
|
return null;
|
22390
22390
|
}
|
22391
|
-
import_react92.default.Children.map(children, (child) => {
|
22392
|
-
console.log({ child });
|
22393
|
-
});
|
22394
22391
|
return /* @__PURE__ */ import_react92.default.createElement(Dropdown.Root, { open: openOptions, onOpenChange: setOpenOptions }, /* @__PURE__ */ import_react92.default.createElement(
|
22395
22392
|
Dropdown.Trigger,
|
22396
22393
|
{
|
@@ -22429,9 +22426,12 @@ var init_RoleOptions = __esm({
|
|
22429
22426
|
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
22430
22427
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
22431
22428
|
const role = (0, import_react_sdk43.useHMSStore)((0, import_react_sdk43.selectRoleByRoleName)(roleName));
|
22429
|
+
const tracks = (0, import_react_sdk43.useHMSStore)(import_react_sdk43.selectTracksMap);
|
22430
|
+
if (!role) {
|
22431
|
+
return null;
|
22432
|
+
}
|
22432
22433
|
const canPublishAudio = role.publishParams.allowed.includes("audio");
|
22433
22434
|
const canPublishVideo = role.publishParams.allowed.includes("video");
|
22434
|
-
const tracks = (0, import_react_sdk43.useHMSStore)(import_react_sdk43.selectTracksMap);
|
22435
22435
|
let isVideoOnForSomePeers = false;
|
22436
22436
|
let isAudioOnForSomePeers = false;
|
22437
22437
|
peerList.forEach((peer) => {
|
@@ -23432,7 +23432,7 @@ var init_PollsQuizMenu = __esm({
|
|
23432
23432
|
type: "text",
|
23433
23433
|
placeholder: "Enter a name to continue",
|
23434
23434
|
value: title,
|
23435
|
-
onChange: (event) => setTitle(event.target.value),
|
23435
|
+
onChange: (event) => setTitle(event.target.value.trimStart()),
|
23436
23436
|
css: {
|
23437
23437
|
backgroundColor: "$surface_bright",
|
23438
23438
|
border: "1px solid $border_default"
|
@@ -23613,7 +23613,7 @@ var init_OptionInputWithDelete = __esm({
|
|
23613
23613
|
},
|
23614
23614
|
value: (option == null ? void 0 : option.text) || "",
|
23615
23615
|
key: index,
|
23616
|
-
onChange: (event) => handleOptionTextChange(index, event.target.value)
|
23616
|
+
onChange: (event) => handleOptionTextChange(index, event.target.value.trimStart())
|
23617
23617
|
}
|
23618
23618
|
), /* @__PURE__ */ import_react104.default.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "transparent", border: "none" } }, /* @__PURE__ */ import_react104.default.createElement(import_react_icons49.TrashIcon, null)));
|
23619
23619
|
};
|
@@ -23967,7 +23967,7 @@ var init_QuestionForm = __esm({
|
|
23967
23967
|
maxHeight: "$32"
|
23968
23968
|
},
|
23969
23969
|
value: text,
|
23970
|
-
onChange: (event) => setText(event.target.value)
|
23970
|
+
onChange: (event) => setText(event.target.value.trimStart())
|
23971
23971
|
}
|
23972
23972
|
), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium", textAlign: "end", mt: "$4" } }, (text == null ? void 0 : text.length) || 0, "/1024"), /* @__PURE__ */ import_react109.default.createElement(Line, null), type === "single-choice" /* SINGLE_CHOICE */ || type === "multiple-choice" /* MULTIPLE_CHOICE */ ? /* @__PURE__ */ import_react109.default.createElement(import_react109.default.Fragment, null, /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "body2", css: { mb: "$6", c: "$on_surface_medium" } }, "Options"), isQuiz && /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium", mb: "$md" } }, type === "single-choice" /* SINGLE_CHOICE */ ? "Use the radio buttons to indicate the correct answer" : "Use the checkboxes to indicate the correct answer(s)"), type === "single-choice" /* SINGLE_CHOICE */ && /* @__PURE__ */ import_react109.default.createElement(
|
23973
23973
|
SingleChoiceOptionInputs,
|
@@ -25401,13 +25401,17 @@ var init_EmptyChat = __esm({
|
|
25401
25401
|
init_empty_chat();
|
25402
25402
|
init_useRoomLayoutScreen();
|
25403
25403
|
init_useChatBlacklist();
|
25404
|
+
init_hooks();
|
25404
25405
|
EmptyChat = () => {
|
25405
25406
|
var _a8;
|
25406
25407
|
const { elements } = useRoomLayoutConferencingScreen();
|
25407
25408
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
25408
25409
|
const isMobile = (0, import_react_use16.useMedia)(config.media.md);
|
25409
25410
|
const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
|
25410
|
-
|
25411
|
+
const isMobileHLSStream = useMobileHLSStream();
|
25412
|
+
const isLandscapeStream = useLandscapeHLSStream();
|
25413
|
+
const streaming = isMobileHLSStream || isLandscapeStream;
|
25414
|
+
if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
|
25411
25415
|
return /* @__PURE__ */ import_react130.default.createElement(import_react130.default.Fragment, null);
|
25412
25416
|
return /* @__PURE__ */ import_react130.default.createElement(
|
25413
25417
|
Flex,
|
@@ -25446,13 +25450,13 @@ var init_usePinnedBy = __esm({
|
|
25446
25450
|
const pinnedMessages = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
25447
25451
|
const [pinnedBy, setPinnedBy] = (0, import_react131.useState)("");
|
25448
25452
|
(0, import_react131.useEffect)(() => {
|
25449
|
-
let
|
25453
|
+
let match13 = "";
|
25450
25454
|
pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
|
25451
25455
|
if (pinnedMessage.id === messageId) {
|
25452
|
-
|
25456
|
+
match13 = pinnedMessage.pinnedBy;
|
25453
25457
|
}
|
25454
25458
|
});
|
25455
|
-
setPinnedBy(
|
25459
|
+
setPinnedBy(match13);
|
25456
25460
|
}, [messageId, pinnedMessages]);
|
25457
25461
|
return pinnedBy;
|
25458
25462
|
};
|
@@ -26383,7 +26387,7 @@ var init_ChatFooter = __esm({
|
|
26383
26387
|
if (isLocalPeerBlacklisted) {
|
26384
26388
|
return null;
|
26385
26389
|
}
|
26386
|
-
return /* @__PURE__ */ import_react137.default.createElement(Box, { css: { position: "relative" } }, /* @__PURE__ */ import_react137.default.createElement(Flex, null, /* @__PURE__ */ import_react137.default.createElement(ChatSelectorContainer, null), canDisableChat && isMobile && isOverlayChat ? /* @__PURE__ */ import_react137.default.createElement(Flex, { align: "center", justify: "end", css: { mb: "$4" } }, /* @__PURE__ */ import_react137.default.createElement(Popover2.Root, null, /* @__PURE__ */ import_react137.default.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ import_react137.default.createElement(IconButton, { css: { border: "1px solid $border_bright" } }, /* @__PURE__ */ import_react137.default.createElement(import_react_icons65.VerticalMenuIcon, { height: "16", width: "16" }))), /* @__PURE__ */ import_react137.default.createElement(Popover2.Portal, null, /* @__PURE__ */ import_react137.default.createElement(
|
26390
|
+
return /* @__PURE__ */ import_react137.default.createElement(Box, { css: { position: "relative" } }, /* @__PURE__ */ import_react137.default.createElement(Flex, null, /* @__PURE__ */ import_react137.default.createElement(ChatSelectorContainer, null), canDisableChat && isMobile && isOverlayChat ? /* @__PURE__ */ import_react137.default.createElement(Flex, { align: "center", justify: "end", css: { mb: "$4" }, onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ import_react137.default.createElement(Popover2.Root, null, /* @__PURE__ */ import_react137.default.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ import_react137.default.createElement(IconButton, { css: { border: "1px solid $border_bright" } }, /* @__PURE__ */ import_react137.default.createElement(import_react_icons65.VerticalMenuIcon, { height: "16", width: "16" }))), /* @__PURE__ */ import_react137.default.createElement(Popover2.Portal, null, /* @__PURE__ */ import_react137.default.createElement(
|
26387
26391
|
Popover2.Content,
|
26388
26392
|
{
|
26389
26393
|
align: "end",
|
@@ -26494,7 +26498,7 @@ var init_ChatFooter = __esm({
|
|
26494
26498
|
css: {
|
26495
26499
|
alignItems: "center"
|
26496
26500
|
},
|
26497
|
-
gap: "
|
26501
|
+
gap: "2"
|
26498
26502
|
},
|
26499
26503
|
noAVPermissions ? /* @__PURE__ */ import_react137.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
|
26500
26504
|
/* @__PURE__ */ import_react137.default.createElement(MoreSettings, { elements, screenType })
|
@@ -26655,7 +26659,7 @@ var init_PinnedMessage = __esm({
|
|
26655
26659
|
init_usePinnedMessages();
|
26656
26660
|
PINNED_MESSAGE_LENGTH = 75;
|
26657
26661
|
PinnedMessage = () => {
|
26658
|
-
var _a8, _b7, _c;
|
26662
|
+
var _a8, _b7, _c, _d;
|
26659
26663
|
const pinnedMessages = (0, import_react_sdk68.useHMSStore)((0, import_react_sdk68.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
26660
26664
|
const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react142.useState)(0);
|
26661
26665
|
const { removePinnedMessage } = usePinnedMessages();
|
@@ -26701,13 +26705,14 @@ var init_PinnedMessage = __esm({
|
|
26701
26705
|
{
|
26702
26706
|
css: {
|
26703
26707
|
p: "$4",
|
26704
|
-
color: "$
|
26705
|
-
bg: isMobile ? "rgba(0, 0, 0, 0.64)" : "$
|
26708
|
+
color: "$on_surface_high",
|
26709
|
+
bg: isMobile && ((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.is_overlay) ? "rgba(0, 0, 0, 0.64)" : "$surface_brighter",
|
26706
26710
|
r: "$1",
|
26707
26711
|
gap: "$4",
|
26708
26712
|
mb: "$8",
|
26709
26713
|
mt: "$8",
|
26710
|
-
flexGrow: 1
|
26714
|
+
flexGrow: 1,
|
26715
|
+
border: "1px solid $border_bright"
|
26711
26716
|
},
|
26712
26717
|
align: "center",
|
26713
26718
|
justify: "between"
|
@@ -26731,9 +26736,9 @@ var init_PinnedMessage = __esm({
|
|
26731
26736
|
Text,
|
26732
26737
|
__spreadProps(__spreadValues({
|
26733
26738
|
variant: "sm",
|
26734
|
-
css: { color: "$
|
26739
|
+
css: { color: "$on_surface_high" }
|
26735
26740
|
}, swipeHandlers), {
|
26736
|
-
title: (
|
26741
|
+
title: (_d = pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _d.text
|
26737
26742
|
}),
|
26738
26743
|
/* @__PURE__ */ import_react142.default.createElement(
|
26739
26744
|
AnnotisedMessage,
|
@@ -26816,6 +26821,10 @@ var init_Chat = __esm({
|
|
26816
26821
|
},
|
26817
26822
|
[hmsActions, vanillaStore]
|
26818
26823
|
);
|
26824
|
+
if (!(elements == null ? void 0 : elements.chat)) {
|
26825
|
+
return null;
|
26826
|
+
}
|
26827
|
+
const streaming = isMobileHLSStream || isLandscapeStream;
|
26819
26828
|
return /* @__PURE__ */ import_react143.default.createElement(
|
26820
26829
|
Flex,
|
26821
26830
|
{
|
@@ -26826,18 +26835,18 @@ var init_Chat = __esm({
|
|
26826
26835
|
gap: "$4"
|
26827
26836
|
}
|
26828
26837
|
},
|
26829
|
-
isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) ? null : /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null),
|
26838
|
+
isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null),
|
26830
26839
|
/* @__PURE__ */ import_react143.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
|
26831
26840
|
/* @__PURE__ */ import_react143.default.createElement(ChatPaused, null),
|
26832
26841
|
/* @__PURE__ */ import_react143.default.createElement(ChatBlocked, null),
|
26833
|
-
isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) ? /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null) : null,
|
26842
|
+
isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null) : null,
|
26834
26843
|
isChatEnabled ? /* @__PURE__ */ import_react143.default.createElement(ChatFooter, { onSend: scrollToBottom }, /* @__PURE__ */ import_react143.default.createElement(NewMessageIndicator, { scrollToBottom, listRef })) : null,
|
26835
26844
|
(isMobileHLSStream || isLandscapeStream) && /* @__PURE__ */ import_react143.default.createElement(
|
26836
26845
|
Box,
|
26837
26846
|
{
|
26838
26847
|
css: __spreadValues({
|
26839
26848
|
position: "absolute"
|
26840
|
-
}, (0, import_ts_pattern7.match)({ isLandscapeStream, isChatEnabled }).with(
|
26849
|
+
}, (0, import_ts_pattern7.match)({ isLandscapeStream, isMobileHLSStream, isChatEnabled }).with(
|
26841
26850
|
{
|
26842
26851
|
isLandscapeStream: true,
|
26843
26852
|
isChatEnabled: true
|
@@ -26849,12 +26858,24 @@ var init_Chat = __esm({
|
|
26849
26858
|
isChatEnabled: false
|
26850
26859
|
},
|
26851
26860
|
() => ({ bottom: "$20", right: "$10" })
|
26861
|
+
).with(
|
26862
|
+
{
|
26863
|
+
isMobileHLSStream: true,
|
26864
|
+
isChatEnabled: false
|
26865
|
+
},
|
26866
|
+
() => ({ bottom: "$19", right: "$8" })
|
26867
|
+
).with(
|
26868
|
+
{
|
26869
|
+
isMobileHLSStream: true,
|
26870
|
+
isChatEnabled: true
|
26871
|
+
},
|
26872
|
+
() => ({ bottom: "$17", right: "$8" })
|
26852
26873
|
).with(
|
26853
26874
|
{
|
26854
26875
|
isLandscapeStream: false,
|
26855
26876
|
isChatEnabled: true
|
26856
26877
|
},
|
26857
|
-
() => ({ bottom: "$
|
26878
|
+
() => ({ bottom: "$20", right: "$8" })
|
26858
26879
|
).otherwise(() => ({})))
|
26859
26880
|
},
|
26860
26881
|
/* @__PURE__ */ import_react143.default.createElement(EmojiReaction, null)
|
@@ -27108,7 +27129,7 @@ var init_SidePaneTabs = __esm({
|
|
27108
27129
|
ParticipantCount2 = ({ count }) => {
|
27109
27130
|
return count < 1e3 ? /* @__PURE__ */ import_react146.default.createElement("span", null, "(", count, ")") : /* @__PURE__ */ import_react146.default.createElement(Tooltip, { title: count }, /* @__PURE__ */ import_react146.default.createElement("span", null, "(", getFormattedCount(count), ")"));
|
27110
27131
|
};
|
27111
|
-
SidePaneTabs = import_react146.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT,
|
27132
|
+
SidePaneTabs = import_react146.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
|
27112
27133
|
var _a8, _b7;
|
27113
27134
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
27114
27135
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
@@ -27146,7 +27167,6 @@ var init_SidePaneTabs = __esm({
|
|
27146
27167
|
css: {
|
27147
27168
|
color: "$on_primary_high",
|
27148
27169
|
h: "100%",
|
27149
|
-
marginTop: hideControls && isOverlayChat ? "$17" : "0",
|
27150
27170
|
transition: "margin 0.3s ease-in-out",
|
27151
27171
|
position: "relative"
|
27152
27172
|
}
|
@@ -27161,7 +27181,6 @@ var init_SidePaneTabs = __esm({
|
|
27161
27181
|
css: {
|
27162
27182
|
color: "$on_primary_high",
|
27163
27183
|
h: "100%",
|
27164
|
-
marginTop: hideControls && isOverlayChat ? "$17" : "0",
|
27165
27184
|
transition: "margin 0.3s ease-in-out"
|
27166
27185
|
}
|
27167
27186
|
},
|
@@ -28236,16 +28255,13 @@ var init_SidePane = __esm({
|
|
28236
28255
|
},
|
28237
28256
|
"@md": {
|
28238
28257
|
p: "$6 $8",
|
28239
|
-
pb: "$12",
|
28240
|
-
borderTopLeftRadius: 0,
|
28241
|
-
borderTopRightRadius: 0,
|
28242
28258
|
animation: `${translateAcross({ yFrom: "100%" })} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
28243
28259
|
},
|
28244
28260
|
variants: {
|
28245
28261
|
landscapeStream: {
|
28246
28262
|
true: {
|
28247
28263
|
"@lg": {
|
28248
|
-
position: "unset
|
28264
|
+
position: "unset",
|
28249
28265
|
minHeight: "100%"
|
28250
28266
|
}
|
28251
28267
|
}
|
@@ -28259,13 +28275,22 @@ var init_SidePane = __esm({
|
|
28259
28275
|
},
|
28260
28276
|
overlayChat: {
|
28261
28277
|
true: {
|
28262
|
-
|
28263
|
-
|
28264
|
-
|
28265
|
-
|
28266
|
-
|
28278
|
+
"@lg": {
|
28279
|
+
maxHeight: "300px",
|
28280
|
+
background: "linear-gradient(180deg, rgba(0, 0, 0, 0.00) 35.94%, rgba(0, 0, 0, 0.64) 100%)",
|
28281
|
+
position: "fixed",
|
28282
|
+
zIndex: 12,
|
28283
|
+
bottom: 0
|
28267
28284
|
}
|
28268
28285
|
}
|
28286
|
+
},
|
28287
|
+
roomDescription: {
|
28288
|
+
true: {
|
28289
|
+
overflowY: "auto"
|
28290
|
+
}
|
28291
|
+
},
|
28292
|
+
hideControls: {
|
28293
|
+
true: {}
|
28269
28294
|
}
|
28270
28295
|
},
|
28271
28296
|
compoundVariants: [
|
@@ -28275,7 +28300,10 @@ var init_SidePane = __esm({
|
|
28275
28300
|
css: {
|
28276
28301
|
position: "unset",
|
28277
28302
|
height: "100%",
|
28278
|
-
maxHeight: "unset"
|
28303
|
+
maxHeight: "unset",
|
28304
|
+
"@md": {
|
28305
|
+
pb: 0
|
28306
|
+
}
|
28279
28307
|
}
|
28280
28308
|
},
|
28281
28309
|
{
|
@@ -28286,6 +28314,13 @@ var init_SidePane = __esm({
|
|
28286
28314
|
height: "100%",
|
28287
28315
|
maxHeight: "unset"
|
28288
28316
|
}
|
28317
|
+
},
|
28318
|
+
{
|
28319
|
+
hideControls: false,
|
28320
|
+
overlayChat: true,
|
28321
|
+
css: {
|
28322
|
+
pb: "$17"
|
28323
|
+
}
|
28289
28324
|
}
|
28290
28325
|
]
|
28291
28326
|
});
|
@@ -28293,7 +28328,7 @@ var init_SidePane = __esm({
|
|
28293
28328
|
tileProps,
|
28294
28329
|
hideControls = false
|
28295
28330
|
}) => {
|
28296
|
-
var _a8, _b7, _c, _d, _e, _f;
|
28331
|
+
var _a8, _b7, _c, _d, _e, _f, _g;
|
28297
28332
|
const isMobile = (0, import_react_use28.useMedia)(config.media.md);
|
28298
28333
|
const sidepane = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAppData)(APP_DATA.sidePane));
|
28299
28334
|
const activeScreensharePeerId = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAppData)(APP_DATA.activeScreensharePeerId));
|
@@ -28320,22 +28355,44 @@ var init_SidePane = __esm({
|
|
28320
28355
|
const mwebStreamingChat = isMobile && sidepane === SIDE_PANE_OPTIONS.CHAT && ((_f = elements == null ? void 0 : elements.chat) == null ? void 0 : _f.is_overlay);
|
28321
28356
|
const commonProps = {
|
28322
28357
|
landscapeStream: isLandscapeHLSStream,
|
28323
|
-
mobileStream: isMobileHLSStream
|
28358
|
+
mobileStream: isMobileHLSStream,
|
28359
|
+
hideControls,
|
28360
|
+
overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
|
28361
|
+
roomDescription: isMobile && sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS
|
28324
28362
|
};
|
28363
|
+
const SidepaneComponent = (0, import_ts_pattern9.match)(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ import_react154.default.createElement(
|
28364
|
+
Wrapper3,
|
28365
|
+
__spreadValues({
|
28366
|
+
css: {
|
28367
|
+
"@md": {
|
28368
|
+
borderTopLeftRadius: "$2",
|
28369
|
+
borderTopRightRadius: "$2"
|
28370
|
+
}
|
28371
|
+
}
|
28372
|
+
}, commonProps),
|
28373
|
+
/* @__PURE__ */ import_react154.default.createElement(Polls, null)
|
28374
|
+
)).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadValues({ css: { p: "$10 $6 $10 $10" } }, commonProps), /* @__PURE__ */ import_react154.default.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadProps(__spreadValues({}, commonProps), { overlayChat: mwebStreamingChat }), /* @__PURE__ */ import_react154.default.createElement(SidePaneTabs, { active: sidepane, hideTab: isMobileHLSStream || isLandscapeHLSStream }))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadValues({}, commonProps), /* @__PURE__ */ import_react154.default.createElement(RoomDetailsPane, null))).otherwise(() => {
|
28375
|
+
return null;
|
28376
|
+
});
|
28377
|
+
if (!trackId && !SidepaneComponent) {
|
28378
|
+
console.log("sidepane not rendered", { trackId, SidepaneComponent });
|
28379
|
+
return null;
|
28380
|
+
}
|
28325
28381
|
return /* @__PURE__ */ import_react154.default.createElement(
|
28326
28382
|
Flex,
|
28327
28383
|
{
|
28328
28384
|
direction: "column",
|
28329
28385
|
justify: "center",
|
28330
28386
|
css: {
|
28331
|
-
w: "$100",
|
28387
|
+
w: (0, import_ts_pattern9.match)({ isMobileHLSStream, isLandscapeHLSStream }).with({ isLandscapeHLSStream: true }, () => "340px").with({ isMobileHLSStream: true }, () => "100%").otherwise(() => "$100"),
|
28332
28388
|
h: "100%",
|
28333
28389
|
flexShrink: 0,
|
28334
28390
|
gap: "$4",
|
28335
28391
|
position: "relative",
|
28336
28392
|
"&:empty": { display: "none" },
|
28337
|
-
"@
|
28338
|
-
|
28393
|
+
"@md": {
|
28394
|
+
position: "absolute",
|
28395
|
+
zIndex: 12
|
28339
28396
|
}
|
28340
28397
|
}
|
28341
28398
|
},
|
@@ -28349,27 +28406,7 @@ var init_SidePane = __esm({
|
|
28349
28406
|
rootCSS: { p: 0, alignSelf: "start", flexShrink: 0 }
|
28350
28407
|
}, tileLayout)
|
28351
28408
|
),
|
28352
|
-
|
28353
|
-
Wrapper3,
|
28354
|
-
__spreadValues({
|
28355
|
-
css: {
|
28356
|
-
"@md": {
|
28357
|
-
borderTopLeftRadius: "$2",
|
28358
|
-
borderTopRightRadius: "$2"
|
28359
|
-
}
|
28360
|
-
}
|
28361
|
-
}, commonProps),
|
28362
|
-
/* @__PURE__ */ import_react154.default.createElement(Polls, null)
|
28363
|
-
)).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadValues({ css: { p: "$10 $6 $10 $10" } }, commonProps), /* @__PURE__ */ import_react154.default.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadProps(__spreadValues({}, commonProps), { overlayChat: mwebStreamingChat }), /* @__PURE__ */ import_react154.default.createElement(
|
28364
|
-
SidePaneTabs,
|
28365
|
-
{
|
28366
|
-
hideControls,
|
28367
|
-
active: sidepane,
|
28368
|
-
hideTab: isMobileHLSStream || isLandscapeHLSStream
|
28369
|
-
}
|
28370
|
-
))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadValues({}, commonProps), /* @__PURE__ */ import_react154.default.createElement(RoomDetailsPane, null))).otherwise(() => {
|
28371
|
-
return null;
|
28372
|
-
})
|
28409
|
+
SidepaneComponent
|
28373
28410
|
);
|
28374
28411
|
};
|
28375
28412
|
SidePane_default = SidePane;
|
@@ -29282,6 +29319,7 @@ var init_ProminenceLayout = __esm({
|
|
29282
29319
|
hasSidebar
|
29283
29320
|
}) => {
|
29284
29321
|
const tileLayoutProps = useVideoTileContext();
|
29322
|
+
console.log("secondary section", { tilesLength: tiles == null ? void 0 : tiles.length });
|
29285
29323
|
if (!(tiles == null ? void 0 : tiles.length)) {
|
29286
29324
|
return null;
|
29287
29325
|
}
|
@@ -29855,6 +29893,7 @@ var init_ScreenshareLayout = __esm({
|
|
29855
29893
|
setActiveScreenSharePeer("");
|
29856
29894
|
};
|
29857
29895
|
}, [activeSharePeer == null ? void 0 : activeSharePeer.id, isMobile, setActiveScreenSharePeer]);
|
29896
|
+
console.log({ activeSharePeer, secondaryPeers });
|
29858
29897
|
return /* @__PURE__ */ import_react174.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react174.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react174.default.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ import_react174.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react174.default.createElement(
|
29859
29898
|
SecondaryTiles,
|
29860
29899
|
{
|
@@ -30501,19 +30540,15 @@ var init_Controls = __esm({
|
|
30501
30540
|
});
|
30502
30541
|
|
30503
30542
|
// src/Prebuilt/components/HMSVideo/HMSVideo.jsx
|
30504
|
-
var import_react182,
|
30543
|
+
var import_react182, HMSVideo;
|
30505
30544
|
var init_HMSVideo = __esm({
|
30506
30545
|
"src/Prebuilt/components/HMSVideo/HMSVideo.jsx"() {
|
30507
30546
|
"use strict";
|
30508
30547
|
init_define_process_env();
|
30509
30548
|
import_react182 = __toESM(require("react"));
|
30510
|
-
|
30511
|
-
init_src();
|
30512
|
-
init_hooks();
|
30549
|
+
init_Layout();
|
30513
30550
|
HMSVideo = (0, import_react182.forwardRef)((_a8, videoRef) => {
|
30514
30551
|
var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
|
30515
|
-
const isLandscape = useIsLandscape();
|
30516
|
-
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
30517
30552
|
return /* @__PURE__ */ import_react182.default.createElement(
|
30518
30553
|
Flex,
|
30519
30554
|
__spreadValues({
|
@@ -30521,6 +30556,13 @@ var init_HMSVideo = __esm({
|
|
30521
30556
|
css: {
|
30522
30557
|
size: "100%",
|
30523
30558
|
position: "relative",
|
30559
|
+
justifyContent: "center",
|
30560
|
+
"@md": {
|
30561
|
+
height: "auto",
|
30562
|
+
"& video": {
|
30563
|
+
height: "$60 !important"
|
30564
|
+
}
|
30565
|
+
},
|
30524
30566
|
"& video::cue": {
|
30525
30567
|
color: "white",
|
30526
30568
|
whiteSpace: "pre-line",
|
@@ -30544,16 +30586,16 @@ var init_HMSVideo = __esm({
|
|
30544
30586
|
"video",
|
30545
30587
|
{
|
30546
30588
|
style: {
|
30547
|
-
flex: "1 1 0",
|
30548
30589
|
margin: "0 auto",
|
30549
|
-
minHeight: "0",
|
30550
30590
|
objectFit: "contain",
|
30551
|
-
width: "
|
30552
|
-
height:
|
30553
|
-
|
30591
|
+
width: "auto",
|
30592
|
+
height: "auto",
|
30593
|
+
maxWidth: "100%",
|
30594
|
+
maxHeight: "100%"
|
30554
30595
|
},
|
30555
30596
|
ref: videoRef,
|
30556
|
-
playsInline: true
|
30597
|
+
playsInline: true,
|
30598
|
+
disablePictureInPicture: true
|
30557
30599
|
}
|
30558
30600
|
),
|
30559
30601
|
children
|
@@ -30659,44 +30701,54 @@ var init_VideoProgress = __esm({
|
|
30659
30701
|
init_src();
|
30660
30702
|
init_PlayerContext();
|
30661
30703
|
init_utils6();
|
30662
|
-
VideoProgress = (
|
30704
|
+
VideoProgress = ({
|
30705
|
+
seekProgress,
|
30706
|
+
setSeekProgress
|
30707
|
+
}) => {
|
30663
30708
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
30664
30709
|
const [videoProgress, setVideoProgress] = (0, import_react186.useState)(0);
|
30665
30710
|
const [bufferProgress, setBufferProgress] = (0, import_react186.useState)(0);
|
30666
30711
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
30667
|
-
const
|
30668
|
-
|
30669
|
-
|
30712
|
+
const setProgress = (0, import_react186.useCallback)(() => {
|
30713
|
+
var _a8, _b7;
|
30714
|
+
if (!videoEl) {
|
30715
|
+
return;
|
30716
|
+
}
|
30717
|
+
const duration = isFinite(videoEl.duration) ? videoEl.duration : ((_a8 = videoEl.seekable) == null ? void 0 : _a8.end(0)) || 0;
|
30718
|
+
const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
|
30719
|
+
let bufferProgress2 = 0;
|
30720
|
+
if (videoEl.buffered.length > 0) {
|
30721
|
+
bufferProgress2 = Math.floor(getPercentage((_b7 = videoEl.buffered) == null ? void 0 : _b7.end(0), duration));
|
30722
|
+
}
|
30723
|
+
setVideoProgress(isNaN(videoProgress2) ? 0 : videoProgress2);
|
30724
|
+
setBufferProgress(isNaN(bufferProgress2) ? 0 : bufferProgress2);
|
30725
|
+
}, [videoEl]);
|
30726
|
+
const timeupdateHandler = (0, import_react186.useCallback)(() => {
|
30727
|
+
if (!videoEl || seekProgress) {
|
30728
|
+
return;
|
30729
|
+
}
|
30730
|
+
setProgress();
|
30731
|
+
}, [seekProgress, setProgress, videoEl]);
|
30670
30732
|
(0, import_react186.useEffect)(() => {
|
30671
30733
|
if (!videoEl) {
|
30672
30734
|
return;
|
30673
30735
|
}
|
30674
|
-
const timeupdateHandler = () => {
|
30675
|
-
var _a8, _b7;
|
30676
|
-
if (!videoEl) {
|
30677
|
-
return;
|
30678
|
-
}
|
30679
|
-
const duration = isFinite(videoEl.duration) ? videoEl.duration : ((_a8 = videoEl.seekable) == null ? void 0 : _a8.end(0)) || 0;
|
30680
|
-
const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
|
30681
|
-
let bufferProgress2 = 0;
|
30682
|
-
if (videoEl.buffered.length > 0) {
|
30683
|
-
bufferProgress2 = Math.floor(getPercentage((_b7 = videoEl.buffered) == null ? void 0 : _b7.end(0), duration));
|
30684
|
-
}
|
30685
|
-
setVideoProgress(isNaN(videoProgress2) ? 0 : videoProgress2);
|
30686
|
-
setBufferProgress(isNaN(bufferProgress2) ? 0 : bufferProgress2);
|
30687
|
-
};
|
30688
30736
|
videoEl.addEventListener("timeupdate", timeupdateHandler);
|
30689
30737
|
return function cleanup() {
|
30690
30738
|
videoEl == null ? void 0 : videoEl.removeEventListener("timeupdate", timeupdateHandler);
|
30691
30739
|
};
|
30692
|
-
}, [videoEl]);
|
30740
|
+
}, [timeupdateHandler, videoEl]);
|
30693
30741
|
const onProgress = (progress) => {
|
30742
|
+
var _a8;
|
30694
30743
|
const progress1 = Math.floor(getPercentage(progress[0], 100));
|
30695
30744
|
const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
30696
|
-
|
30697
|
-
|
30698
|
-
onValueChange(currentTime);
|
30745
|
+
if (!videoEl2) {
|
30746
|
+
return;
|
30699
30747
|
}
|
30748
|
+
const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
|
30749
|
+
const currentTime = progress1 * duration / 100;
|
30750
|
+
hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
|
30751
|
+
setProgress();
|
30700
30752
|
};
|
30701
30753
|
if (!videoEl) {
|
30702
30754
|
return null;
|
@@ -30717,6 +30769,8 @@ var init_VideoProgress = __esm({
|
|
30717
30769
|
value: [videoProgress],
|
30718
30770
|
showTooltip: false,
|
30719
30771
|
onValueChange: onProgress,
|
30772
|
+
onPointerDown: () => setSeekProgress(true),
|
30773
|
+
onPointerUp: () => setSeekProgress(false),
|
30720
30774
|
thumbStyles: { w: "$6", h: "$6" }
|
30721
30775
|
}
|
30722
30776
|
), /* @__PURE__ */ import_react186.default.createElement(
|
@@ -30916,7 +30970,7 @@ function HLSAutoplayBlockedPrompt({
|
|
30916
30970
|
unblockAutoPlay
|
30917
30971
|
}) {
|
30918
30972
|
const isLandscape = useIsLandscape();
|
30919
|
-
const isMobile = (0,
|
30973
|
+
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
30920
30974
|
if ((isMobile || isLandscape) && open) {
|
30921
30975
|
return /* @__PURE__ */ import_react190.default.createElement(
|
30922
30976
|
IconButton,
|
@@ -30968,13 +31022,13 @@ function HLSAutoplayBlockedPrompt({
|
|
30968
31022
|
)))
|
30969
31023
|
);
|
30970
31024
|
}
|
30971
|
-
var import_react190,
|
31025
|
+
var import_react190, import_react_use41, import_react_icons89;
|
30972
31026
|
var init_HLSAutoplayBlockedPrompt = __esm({
|
30973
31027
|
"src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
|
30974
31028
|
"use strict";
|
30975
31029
|
init_define_process_env();
|
30976
31030
|
import_react190 = __toESM(require("react"));
|
30977
|
-
|
31031
|
+
import_react_use41 = require("react-use");
|
30978
31032
|
import_react_icons89 = require("@100mslive/react-icons");
|
30979
31033
|
init_src();
|
30980
31034
|
init_DialogContent2();
|
@@ -31009,7 +31063,7 @@ function HLSQualitySelector({
|
|
31009
31063
|
isAuto,
|
31010
31064
|
containerRef
|
31011
31065
|
}) {
|
31012
|
-
const isMobile = (0,
|
31066
|
+
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
31013
31067
|
const isLandscape = useIsLandscape();
|
31014
31068
|
if (layers.length === 0) {
|
31015
31069
|
return null;
|
@@ -31202,13 +31256,13 @@ function HLSQualitySelector({
|
|
31202
31256
|
)
|
31203
31257
|
)));
|
31204
31258
|
}
|
31205
|
-
var import_react192,
|
31259
|
+
var import_react192, import_react_use42, import_react_icons91, getQualityText, getBitrateText;
|
31206
31260
|
var init_HLSQualitySelector = __esm({
|
31207
31261
|
"src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
|
31208
31262
|
"use strict";
|
31209
31263
|
init_define_process_env();
|
31210
31264
|
import_react192 = __toESM(require("react"));
|
31211
|
-
|
31265
|
+
import_react_use42 = require("react-use");
|
31212
31266
|
import_react_icons91 = require("@100mslive/react-icons");
|
31213
31267
|
init_src();
|
31214
31268
|
init_Sheet2();
|
@@ -31235,7 +31289,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
31235
31289
|
init_useSidepane();
|
31236
31290
|
init_constants();
|
31237
31291
|
HLSViewTitle = () => {
|
31238
|
-
const { title, details } = useRoomLayoutHeader();
|
31292
|
+
const { title, details, description } = useRoomLayoutHeader();
|
31239
31293
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31240
31294
|
const isDetailSidepaneOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31241
31295
|
if (isDetailSidepaneOpen) {
|
@@ -31284,7 +31338,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
31284
31338
|
}
|
31285
31339
|
},
|
31286
31340
|
/* @__PURE__ */ import_react193.default.createElement(Logo, null),
|
31287
|
-
/* @__PURE__ */ import_react193.default.createElement(Flex, { direction: "column" }, title ? /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, title) : null, /* @__PURE__ */ import_react193.default.createElement(Flex, null, /* @__PURE__ */ import_react193.default.createElement(RoomDetailsRow, { details }), /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" }, onClick: toggleDetailsPane }, "\xA0...more")))
|
31341
|
+
/* @__PURE__ */ import_react193.default.createElement(Flex, { direction: "column" }, title ? /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, title) : null, /* @__PURE__ */ import_react193.default.createElement(Flex, null, /* @__PURE__ */ import_react193.default.createElement(RoomDetailsRow, { details }), description ? /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" }, onClick: toggleDetailsPane }, "\xA0...more") : null))
|
31288
31342
|
);
|
31289
31343
|
};
|
31290
31344
|
}
|
@@ -31295,15 +31349,16 @@ var HLSView_exports = {};
|
|
31295
31349
|
__export(HLSView_exports, {
|
31296
31350
|
default: () => HLSView_default
|
31297
31351
|
});
|
31298
|
-
var import_react194,
|
31352
|
+
var import_react194, import_react_use43, import_hls_player3, import_screenfull3, import_ts_pattern10, import_react_sdk96, import_react_icons93, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
|
31299
31353
|
var init_HLSView = __esm({
|
31300
31354
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
31301
31355
|
"use strict";
|
31302
31356
|
init_define_process_env();
|
31303
31357
|
import_react194 = __toESM(require("react"));
|
31304
|
-
|
31358
|
+
import_react_use43 = require("react-use");
|
31305
31359
|
import_hls_player3 = require("@100mslive/hls-player");
|
31306
31360
|
import_screenfull3 = __toESM(require("screenfull"));
|
31361
|
+
import_ts_pattern10 = require("ts-pattern");
|
31307
31362
|
import_react_sdk96 = require("@100mslive/react-sdk");
|
31308
31363
|
import_react_icons93 = require("@100mslive/react-icons");
|
31309
31364
|
init_ChatToggle();
|
@@ -31329,13 +31384,29 @@ var init_HLSView = __esm({
|
|
31329
31384
|
init_hooks();
|
31330
31385
|
init_constants();
|
31331
31386
|
toastMap = {};
|
31387
|
+
ToggleChat = () => {
|
31388
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
31389
|
+
const sidepane = (0, import_react_sdk96.useHMSStore)((0, import_react_sdk96.selectAppData)(APP_DATA.sidePane));
|
31390
|
+
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
31391
|
+
const showChat = !!(elements == null ? void 0 : elements.chat);
|
31392
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
31393
|
+
const hmsActions = (0, import_react_sdk96.useHMSActions)();
|
31394
|
+
(0, import_react194.useEffect)(() => {
|
31395
|
+
(0, import_ts_pattern10.match)({ sidepane, isMobile, showChat }).with({ isMobile: true, showChat: true, sidepane: import_ts_pattern10.P.when((value) => !value) }, () => {
|
31396
|
+
toggleChat();
|
31397
|
+
}).with({ showChat: false, isMobile: true, sidepane: SIDE_PANE_OPTIONS.CHAT }, () => {
|
31398
|
+
hmsActions.setAppData(APP_DATA.sidePane, "");
|
31399
|
+
}).otherwise(() => {
|
31400
|
+
});
|
31401
|
+
}, [sidepane, isMobile, toggleChat, showChat, hmsActions]);
|
31402
|
+
return null;
|
31403
|
+
};
|
31332
31404
|
HLSView = () => {
|
31333
31405
|
var _a8, _b7, _c, _d, _e, _f;
|
31334
31406
|
const videoRef = (0, import_react194.useRef)(null);
|
31335
31407
|
const hlsViewRef = (0, import_react194.useRef)();
|
31336
31408
|
const hlsState = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectHLSState);
|
31337
31409
|
const enablHlsStats = (0, import_react_sdk96.useHMSStore)((0, import_react_sdk96.selectAppData)(APP_DATA.hlsStats));
|
31338
|
-
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
31339
31410
|
const notification = (0, import_react_sdk96.useHMSNotifications)(import_react_sdk96.HMSNotificationTypes.POLL_STOPPED);
|
31340
31411
|
const hmsActions = (0, import_react_sdk96.useHMSActions)();
|
31341
31412
|
const { themeType } = useTheme();
|
@@ -31350,31 +31421,22 @@ var init_HLSView = __esm({
|
|
31350
31421
|
const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react194.useState)(false);
|
31351
31422
|
const [isSeekEnabled, setIsSeekEnabled] = (0, import_react194.useState)(false);
|
31352
31423
|
const [isPaused, setIsPaused] = (0, import_react194.useState)(false);
|
31353
|
-
const [show, toggle] = (0,
|
31354
|
-
const lastHlsUrl = (0,
|
31355
|
-
const togglePollView = usePollViewToggle();
|
31424
|
+
const [show, toggle] = (0, import_react_use43.useToggle)(false);
|
31425
|
+
const lastHlsUrl = (0, import_react_use43.usePrevious)(hlsUrl);
|
31356
31426
|
const vanillaStore = (0, import_react_sdk96.useHMSVanillaStore)();
|
31357
31427
|
const [controlsVisible, setControlsVisible] = (0, import_react194.useState)(true);
|
31358
31428
|
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react194.useState)(true);
|
31359
31429
|
const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react194.useState)(false);
|
31360
31430
|
const controlsRef = (0, import_react194.useRef)(null);
|
31361
31431
|
const controlsTimerRef = (0, import_react194.useRef)();
|
31362
|
-
const
|
31363
|
-
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
31364
|
-
const showChat = !!(elements == null ? void 0 : elements.chat);
|
31432
|
+
const [seekProgress, setSeekProgress] = (0, import_react194.useState)(false);
|
31365
31433
|
const isFullScreenSupported = import_screenfull3.default.isEnabled;
|
31366
|
-
const isMobile = (0,
|
31434
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
31367
31435
|
const isLandscape = useIsLandscape();
|
31368
|
-
const isFullScreen = (0,
|
31436
|
+
const isFullScreen = (0, import_react_use43.useFullscreen)(hlsViewRef, show, {
|
31369
31437
|
onClose: () => toggle(false)
|
31370
31438
|
});
|
31371
31439
|
const [showLoader, setShowLoader] = (0, import_react194.useState)(false);
|
31372
|
-
const isMwebHLSStream = screenType === "hls_live_streaming" && isMobile;
|
31373
|
-
(0, import_react194.useEffect)(() => {
|
31374
|
-
if (sidepane === "" && isMwebHLSStream && showChat) {
|
31375
|
-
toggleChat();
|
31376
|
-
}
|
31377
|
-
}, [sidepane, isMwebHLSStream, toggleChat, showChat]);
|
31378
31440
|
(0, import_react194.useEffect)(() => {
|
31379
31441
|
const videoEl = videoRef.current;
|
31380
31442
|
const showLoader2 = () => setShowLoader(true);
|
@@ -31453,7 +31515,13 @@ var init_HLSView = __esm({
|
|
31453
31515
|
action: /* @__PURE__ */ import_react194.default.createElement(
|
31454
31516
|
Button,
|
31455
31517
|
{
|
31456
|
-
onClick: () =>
|
31518
|
+
onClick: () => {
|
31519
|
+
hmsActions.setAppData(APP_DATA.pollState, {
|
31520
|
+
[POLL_STATE.pollInView]: pollId,
|
31521
|
+
[POLL_STATE.view]: POLL_VIEWS.VOTE
|
31522
|
+
});
|
31523
|
+
hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
|
31524
|
+
},
|
31457
31525
|
variant: "standard",
|
31458
31526
|
css: {
|
31459
31527
|
backgroundColor: "$surface_bright",
|
@@ -31518,7 +31586,7 @@ var init_HLSView = __esm({
|
|
31518
31586
|
hlsPlayer.reset();
|
31519
31587
|
};
|
31520
31588
|
}
|
31521
|
-
}, [hlsUrl,
|
31589
|
+
}, [hlsUrl, vanillaStore, hmsActions]);
|
31522
31590
|
(0, import_react194.useEffect)(() => {
|
31523
31591
|
const onHLSStats = (state) => setHlsStatsState(state);
|
31524
31592
|
if (enablHlsStats) {
|
@@ -31551,14 +31619,16 @@ var init_HLSView = __esm({
|
|
31551
31619
|
clearTimeout(controlsTimerRef.current);
|
31552
31620
|
}
|
31553
31621
|
controlsTimerRef.current = setTimeout(() => {
|
31554
|
-
|
31622
|
+
if (!seekProgress) {
|
31623
|
+
setControlsVisible(false);
|
31624
|
+
}
|
31555
31625
|
}, 5e3);
|
31556
31626
|
return () => {
|
31557
31627
|
if (controlsTimerRef.current) {
|
31558
31628
|
clearTimeout(controlsTimerRef.current);
|
31559
31629
|
}
|
31560
31630
|
};
|
31561
|
-
}, [controlsVisible, isFullScreen, qualityDropDownOpen]);
|
31631
|
+
}, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
|
31562
31632
|
const onSeekTo = (0, import_react194.useCallback)((seek) => {
|
31563
31633
|
var _a9;
|
31564
31634
|
hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
|
@@ -31601,17 +31671,33 @@ var init_HLSView = __esm({
|
|
31601
31671
|
setControlsVisible(true);
|
31602
31672
|
return;
|
31603
31673
|
}
|
31604
|
-
if (event.type === "mouseleave") {
|
31674
|
+
if (event.type === "mouseleave" && !seekProgress) {
|
31605
31675
|
setControlsVisible(false);
|
31606
|
-
} else if (
|
31676
|
+
} else if (!controlsVisible && event.type === "mousemove") {
|
31607
31677
|
setControlsVisible(true);
|
31608
31678
|
if (controlsTimerRef.current) {
|
31609
31679
|
clearTimeout(controlsTimerRef.current);
|
31610
31680
|
}
|
31611
31681
|
}
|
31612
31682
|
},
|
31613
|
-
[controlsVisible,
|
31683
|
+
[controlsVisible, isLandscape, isMobile, qualityDropDownOpen, seekProgress]
|
31614
31684
|
);
|
31685
|
+
if (!hlsUrl || streamEnded) {
|
31686
|
+
return /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(ToggleChat, null), hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })), /* @__PURE__ */ import_react194.default.createElement(
|
31687
|
+
Flex,
|
31688
|
+
{
|
31689
|
+
key: "hls-viewer",
|
31690
|
+
id: `hls-viewer-${themeType}`,
|
31691
|
+
ref: hlsViewRef,
|
31692
|
+
direction: isMobile || isLandscape ? "column" : "row",
|
31693
|
+
justify: "center",
|
31694
|
+
css: {
|
31695
|
+
flex: isLandscape ? "2 1 0" : "1 1 0"
|
31696
|
+
}
|
31697
|
+
},
|
31698
|
+
/* @__PURE__ */ import_react194.default.createElement(Flex, { align: "center", justify: "center", direction: "column", css: { size: "100%", px: "$10" } }, /* @__PURE__ */ import_react194.default.createElement(Flex, { css: { c: "$on_surface_high", r: "$round", bg: "$surface_default", p: "$2" } }, streamEnded ? /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.ColoredHandIcon, { height: 56, width: 56 }) : /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.GoLiveIcon, { height: 56, width: 56 })), /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "h5", css: { c: "$on_surface_high", mt: "$10", mb: 0, textAlign: "center" } }, streamEnded ? "Stream has ended" : "Stream yet to start"), /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "md", css: { textAlign: "center", mt: "$4", c: "$on_surface_medium" } }, streamEnded ? "Have a nice day!" : "Sit back and relax"))
|
31699
|
+
));
|
31700
|
+
}
|
31615
31701
|
return /* @__PURE__ */ import_react194.default.createElement(
|
31616
31702
|
Flex,
|
31617
31703
|
{
|
@@ -31619,13 +31705,18 @@ var init_HLSView = __esm({
|
|
31619
31705
|
id: `hls-viewer-${themeType}`,
|
31620
31706
|
ref: hlsViewRef,
|
31621
31707
|
direction: isMobile || isLandscape ? "column" : "row",
|
31708
|
+
justify: "center",
|
31622
31709
|
css: {
|
31623
|
-
|
31624
|
-
|
31625
|
-
|
31710
|
+
flex: isLandscape ? "2 1 0" : "1 1 0",
|
31711
|
+
"&:fullscreen": {
|
31712
|
+
"& video": {
|
31713
|
+
height: "unset !important"
|
31714
|
+
}
|
31715
|
+
}
|
31626
31716
|
}
|
31627
31717
|
},
|
31628
|
-
|
31718
|
+
hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })),
|
31719
|
+
/* @__PURE__ */ import_react194.default.createElement(HMSPlayerContext.Provider, { value: { hlsPlayer } }, (hlsStatsState == null ? void 0 : hlsStatsState.url) && enablHlsStats && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react194.default.createElement(HlsStatsOverlay, { hlsStatsState, onClose: sfnOverlayClose }) : null, /* @__PURE__ */ import_react194.default.createElement(
|
31629
31720
|
Flex,
|
31630
31721
|
{
|
31631
31722
|
id: "hls-player-container",
|
@@ -31633,7 +31724,10 @@ var init_HLSView = __esm({
|
|
31633
31724
|
justify: "center",
|
31634
31725
|
css: {
|
31635
31726
|
size: "100%",
|
31636
|
-
margin: "0 auto"
|
31727
|
+
margin: "0 auto",
|
31728
|
+
"@md": {
|
31729
|
+
height: "auto"
|
31730
|
+
}
|
31637
31731
|
}
|
31638
31732
|
},
|
31639
31733
|
!(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }),
|
@@ -31660,12 +31754,13 @@ var init_HLSView = __esm({
|
|
31660
31754
|
onDoubleClickHandler(e);
|
31661
31755
|
}
|
31662
31756
|
},
|
31663
|
-
/* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, isMobile || isLandscape ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null,
|
31757
|
+
/* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, isMobile || isLandscape ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(
|
31664
31758
|
Flex,
|
31665
31759
|
{
|
31666
31760
|
align: "center",
|
31667
31761
|
justify: "center",
|
31668
31762
|
css: {
|
31763
|
+
position: "absolute",
|
31669
31764
|
bg: "#00000066",
|
31670
31765
|
display: "inline-flex",
|
31671
31766
|
gap: "$2",
|
@@ -31675,7 +31770,7 @@ var init_HLSView = __esm({
|
|
31675
31770
|
opacity: controlsVisible ? `1` : "0"
|
31676
31771
|
}
|
31677
31772
|
},
|
31678
|
-
/* @__PURE__ */ import_react194.default.createElement(
|
31773
|
+
!showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR && /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(
|
31679
31774
|
HMSVideoPlayer.Seeker,
|
31680
31775
|
{
|
31681
31776
|
title: "backward",
|
@@ -31685,8 +31780,7 @@ var init_HLSView = __esm({
|
|
31685
31780
|
}
|
31686
31781
|
},
|
31687
31782
|
/* @__PURE__ */ import_react194.default.createElement(import_react_icons93.BackwardArrowIcon, { width: 32, height: 32 })
|
31688
|
-
),
|
31689
|
-
/* @__PURE__ */ import_react194.default.createElement(
|
31783
|
+
), /* @__PURE__ */ import_react194.default.createElement(
|
31690
31784
|
Box,
|
31691
31785
|
{
|
31692
31786
|
css: {
|
@@ -31695,8 +31789,7 @@ var init_HLSView = __esm({
|
|
31695
31789
|
}
|
31696
31790
|
},
|
31697
31791
|
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.PlayPauseButton, { isPaused, width: 48, height: 48 })
|
31698
|
-
),
|
31699
|
-
/* @__PURE__ */ import_react194.default.createElement(
|
31792
|
+
), /* @__PURE__ */ import_react194.default.createElement(
|
31700
31793
|
HMSVideoPlayer.Seeker,
|
31701
31794
|
{
|
31702
31795
|
title: "forward",
|
@@ -31706,7 +31799,7 @@ var init_HLSView = __esm({
|
|
31706
31799
|
}
|
31707
31800
|
},
|
31708
31801
|
/* @__PURE__ */ import_react194.default.createElement(import_react_icons93.ForwardArrowIcon, { width: 32, height: 32 })
|
31709
|
-
)
|
31802
|
+
))
|
31710
31803
|
), /* @__PURE__ */ import_react194.default.createElement(
|
31711
31804
|
Flex,
|
31712
31805
|
{
|
@@ -31732,7 +31825,6 @@ var init_HLSView = __esm({
|
|
31732
31825
|
p: "$4 $8"
|
31733
31826
|
}
|
31734
31827
|
},
|
31735
|
-
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Left, null, hlsViewRef.current && /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType, container: hlsViewRef.current })),
|
31736
31828
|
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Right, null, isLandscape && /* @__PURE__ */ import_react194.default.createElement(ChatToggle, null), hasCaptions && !isHlsAutoplayBlocked && /* @__PURE__ */ import_react194.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), hlsViewRef.current && availableLayers.length > 0 && !isHlsAutoplayBlocked ? /* @__PURE__ */ import_react194.default.createElement(
|
31737
31829
|
HLSQualitySelector,
|
31738
31830
|
{
|
@@ -31746,7 +31838,7 @@ var init_HLSView = __esm({
|
|
31746
31838
|
}
|
31747
31839
|
) : null, /* @__PURE__ */ import_react194.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }))
|
31748
31840
|
)
|
31749
|
-
)) : null, /* @__PURE__ */ import_react194.default.createElement(
|
31841
|
+
)) : null, controlsVisible && /* @__PURE__ */ import_react194.default.createElement(
|
31750
31842
|
Flex,
|
31751
31843
|
{
|
31752
31844
|
ref: controlsRef,
|
@@ -31762,12 +31854,10 @@ var init_HLSView = __esm({
|
|
31762
31854
|
width: "100%",
|
31763
31855
|
pt: "$8",
|
31764
31856
|
flexShrink: 0,
|
31765
|
-
transition: "visibility 0s 0.5s, opacity 0.5s linear"
|
31766
|
-
visibility: controlsVisible ? `` : `hidden`,
|
31767
|
-
opacity: controlsVisible ? `1` : "0"
|
31857
|
+
transition: "visibility 0s 0.5s, opacity 0.5s linear"
|
31768
31858
|
}
|
31769
31859
|
},
|
31770
|
-
((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Progress,
|
31860
|
+
((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
|
31771
31861
|
/* @__PURE__ */ import_react194.default.createElement(
|
31772
31862
|
HMSVideoPlayer.Controls.Root,
|
31773
31863
|
{
|
@@ -31840,7 +31930,9 @@ var init_HLSView = __esm({
|
|
31840
31930
|
)
|
31841
31931
|
))
|
31842
31932
|
)
|
31843
|
-
)),
|
31933
|
+
)),
|
31934
|
+
/* @__PURE__ */ import_react194.default.createElement(ToggleChat, null),
|
31935
|
+
isMobile && !isFullScreen && /* @__PURE__ */ import_react194.default.createElement(HLSViewTitle, null)
|
31844
31936
|
);
|
31845
31937
|
};
|
31846
31938
|
HLSView_default = HLSView;
|
@@ -31848,12 +31940,13 @@ var init_HLSView = __esm({
|
|
31848
31940
|
});
|
31849
31941
|
|
31850
31942
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
31851
|
-
var import_react195, import_react_sdk97, HLSView2, VideoStreamingSection;
|
31943
|
+
var import_react195, import_ts_pattern11, import_react_sdk97, HLSView2, VideoStreamingSection;
|
31852
31944
|
var init_VideoStreamingSection = __esm({
|
31853
31945
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
31854
31946
|
"use strict";
|
31855
31947
|
init_define_process_env();
|
31856
31948
|
import_react195 = __toESM(require("react"));
|
31949
|
+
import_ts_pattern11 = require("ts-pattern");
|
31857
31950
|
import_react_sdk97 = require("@100mslive/react-sdk");
|
31858
31951
|
init_FullPageProgress();
|
31859
31952
|
init_GridLayout();
|
@@ -31923,14 +32016,15 @@ var init_VideoStreamingSection = __esm({
|
|
31923
32016
|
position: "relative",
|
31924
32017
|
gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
|
31925
32018
|
},
|
31926
|
-
direction: isMobileHLSStream
|
32019
|
+
direction: (0, import_ts_pattern11.match)({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
|
31927
32020
|
},
|
31928
32021
|
ViewComponent,
|
31929
32022
|
/* @__PURE__ */ import_react195.default.createElement(
|
31930
32023
|
Box,
|
31931
32024
|
{
|
31932
32025
|
css: {
|
31933
|
-
flex: isMobileHLSStream
|
32026
|
+
flex: (0, import_ts_pattern11.match)({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "1 1 0").with({ isMobileHLSStream: true }, () => "2 1 0").otherwise(() => void 0),
|
32027
|
+
position: "relative",
|
31934
32028
|
height: !isMobileHLSStream ? "100%" : void 0,
|
31935
32029
|
maxHeight: "100%",
|
31936
32030
|
"&:empty": { display: "none" },
|
@@ -31952,13 +32046,13 @@ var init_VideoStreamingSection = __esm({
|
|
31952
32046
|
});
|
31953
32047
|
|
31954
32048
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
31955
|
-
var import_react196,
|
32049
|
+
var import_react196, import_react_use44, import_react_icons94, RoomDetailsHeader;
|
31956
32050
|
var init_RoomDetailsHeader = __esm({
|
31957
32051
|
"src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
|
31958
32052
|
"use strict";
|
31959
32053
|
init_define_process_env();
|
31960
32054
|
import_react196 = __toESM(require("react"));
|
31961
|
-
|
32055
|
+
import_react_use44 = require("react-use");
|
31962
32056
|
import_react_icons94 = require("@100mslive/react-icons");
|
31963
32057
|
init_Layout();
|
31964
32058
|
init_Text2();
|
@@ -31969,7 +32063,7 @@ var init_RoomDetailsHeader = __esm({
|
|
31969
32063
|
init_constants();
|
31970
32064
|
RoomDetailsHeader = () => {
|
31971
32065
|
const { title, description } = useRoomLayoutHeader();
|
31972
|
-
const isMobile = (0,
|
32066
|
+
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31973
32067
|
const clipLength = 30;
|
31974
32068
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31975
32069
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -32147,13 +32241,13 @@ var init_common2 = __esm({
|
|
32147
32241
|
});
|
32148
32242
|
|
32149
32243
|
// src/Prebuilt/components/Header/Header.tsx
|
32150
|
-
var import_react198,
|
32244
|
+
var import_react198, import_react_use45, import_react_sdk99, Header2;
|
32151
32245
|
var init_Header = __esm({
|
32152
32246
|
"src/Prebuilt/components/Header/Header.tsx"() {
|
32153
32247
|
"use strict";
|
32154
32248
|
init_define_process_env();
|
32155
32249
|
import_react198 = __toESM(require("react"));
|
32156
|
-
|
32250
|
+
import_react_use45 = require("react-use");
|
32157
32251
|
import_react_sdk99 = require("@100mslive/react-sdk");
|
32158
32252
|
init_src();
|
32159
32253
|
init_HeaderComponents();
|
@@ -32162,7 +32256,7 @@ var init_Header = __esm({
|
|
32162
32256
|
init_common2();
|
32163
32257
|
Header2 = () => {
|
32164
32258
|
const roomState = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectRoomState);
|
32165
|
-
const isMobile = (0,
|
32259
|
+
const isMobile = (0, import_react_use45.useMedia)(config.media.md);
|
32166
32260
|
if (roomState !== import_react_sdk99.HMSRoomState.Connected) {
|
32167
32261
|
return /* @__PURE__ */ import_react198.default.createElement(import_react198.default.Fragment, null);
|
32168
32262
|
}
|
@@ -32237,6 +32331,7 @@ var init_ConferenceScreen = __esm({
|
|
32237
32331
|
init_Layout();
|
32238
32332
|
init_AppContext();
|
32239
32333
|
init_VideoStreamingSection();
|
32334
|
+
init_EmojiReaction();
|
32240
32335
|
init_FullPageProgress();
|
32241
32336
|
init_Header2();
|
32242
32337
|
init_PreviousRoleInMetadata();
|
@@ -32380,13 +32475,25 @@ var init_ConferenceScreen = __esm({
|
|
32380
32475
|
css: {
|
32381
32476
|
alignItems: "center",
|
32382
32477
|
pr: "$4",
|
32383
|
-
pb: "$4"
|
32478
|
+
pb: "$4",
|
32479
|
+
position: "relative"
|
32384
32480
|
},
|
32385
32481
|
justify: "end",
|
32386
|
-
gap: "
|
32482
|
+
gap: "2"
|
32387
32483
|
},
|
32388
32484
|
noAVPermissions ? /* @__PURE__ */ import_react200.default.createElement(RaiseHand, null) : null,
|
32389
|
-
/* @__PURE__ */ import_react200.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType })
|
32485
|
+
/* @__PURE__ */ import_react200.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
|
32486
|
+
/* @__PURE__ */ import_react200.default.createElement(
|
32487
|
+
Box,
|
32488
|
+
{
|
32489
|
+
css: {
|
32490
|
+
position: "absolute",
|
32491
|
+
bottom: "100%",
|
32492
|
+
mb: "$4"
|
32493
|
+
}
|
32494
|
+
},
|
32495
|
+
/* @__PURE__ */ import_react200.default.createElement(EmojiReaction, null)
|
32496
|
+
)
|
32390
32497
|
), /* @__PURE__ */ import_react200.default.createElement(RoleChangeRequestModal, null), /* @__PURE__ */ import_react200.default.createElement(HLSFailureModal, null), /* @__PURE__ */ import_react200.default.createElement(ActivatedPIP, null), /* @__PURE__ */ import_react200.default.createElement(PreviousRoleInMetadata, null)));
|
32391
32498
|
};
|
32392
32499
|
}
|
@@ -32689,13 +32796,13 @@ var init_useRedirectToLeave = __esm({
|
|
32689
32796
|
});
|
32690
32797
|
|
32691
32798
|
// src/Prebuilt/AppStateContext.tsx
|
32692
|
-
var import_react206,
|
32799
|
+
var import_react206, import_react_use46, import_react_sdk104, AppStateContext, useHMSAppStateContext, useAppStateManager;
|
32693
32800
|
var init_AppStateContext = __esm({
|
32694
32801
|
"src/Prebuilt/AppStateContext.tsx"() {
|
32695
32802
|
"use strict";
|
32696
32803
|
init_define_process_env();
|
32697
32804
|
import_react206 = __toESM(require("react"));
|
32698
|
-
|
32805
|
+
import_react_use46 = require("react-use");
|
32699
32806
|
import_react_sdk104 = require("@100mslive/react-sdk");
|
32700
32807
|
init_VBHandler();
|
32701
32808
|
init_roomLayoutProvider();
|
@@ -32718,7 +32825,7 @@ var init_AppStateContext = __esm({
|
|
32718
32825
|
const roomLayout = useRoomLayout();
|
32719
32826
|
const [activeState, setActiveState] = import_react206.default.useState();
|
32720
32827
|
const roomState = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomState);
|
32721
|
-
const prevRoomState = (0,
|
32828
|
+
const prevRoomState = (0, import_react_use46.usePreviousDistinct)(roomState);
|
32722
32829
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
32723
32830
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
32724
32831
|
const { redirectToLeave } = useRedirectToLeave();
|
@@ -32807,13 +32914,14 @@ var init_LeaveScreen = __esm({
|
|
32807
32914
|
});
|
32808
32915
|
|
32809
32916
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
32810
|
-
var import_react208,
|
32917
|
+
var import_react208, import_react_use47, import_ts_pattern12, import_react_icons98, MwebLandscapePrompt;
|
32811
32918
|
var init_MwebLandscapePrompt = __esm({
|
32812
32919
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
|
32813
32920
|
"use strict";
|
32814
32921
|
init_define_process_env();
|
32815
32922
|
import_react208 = __toESM(require("react"));
|
32816
|
-
|
32923
|
+
import_react_use47 = require("react-use");
|
32924
|
+
import_ts_pattern12 = require("ts-pattern");
|
32817
32925
|
import_react_icons98 = require("@100mslive/react-icons");
|
32818
32926
|
init_Button2();
|
32819
32927
|
init_Layout();
|
@@ -32824,7 +32932,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
32824
32932
|
init_utils2();
|
32825
32933
|
MwebLandscapePrompt = () => {
|
32826
32934
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react208.useState)(false);
|
32827
|
-
const isLandscape = (0,
|
32935
|
+
const isLandscape = (0, import_react_use47.useMedia)(config.media.ls);
|
32828
32936
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
32829
32937
|
(0, import_react208.useEffect)(() => {
|
32830
32938
|
var _a8;
|
@@ -32833,20 +32941,22 @@ var init_MwebLandscapePrompt = __esm({
|
|
32833
32941
|
return;
|
32834
32942
|
}
|
32835
32943
|
if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
|
32836
|
-
setShowMwebLandscapePrompt(isLandscape);
|
32944
|
+
setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
|
32837
32945
|
return;
|
32838
32946
|
}
|
32839
32947
|
const handleRotation = () => {
|
32840
32948
|
const angle = window.screen.orientation.angle;
|
32841
32949
|
const type = window.screen.orientation.type || "";
|
32842
|
-
setShowMwebLandscapePrompt(
|
32950
|
+
setShowMwebLandscapePrompt(
|
32951
|
+
(0, import_ts_pattern12.match)({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream }, () => false).with({ angle: import_ts_pattern12.P.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
|
32952
|
+
);
|
32843
32953
|
};
|
32844
32954
|
handleRotation();
|
32845
32955
|
window.screen.orientation.addEventListener("change", handleRotation);
|
32846
32956
|
return () => {
|
32847
32957
|
window.screen.orientation.removeEventListener("change", handleRotation);
|
32848
32958
|
};
|
32849
|
-
}, [isLandscape]);
|
32959
|
+
}, [isLandscape, isLandscapeHLSStream]);
|
32850
32960
|
if (isLandscapeHLSStream) {
|
32851
32961
|
return null;
|
32852
32962
|
}
|
@@ -33358,7 +33468,7 @@ function PermissionErrorModal() {
|
|
33358
33468
|
const notification = (0, import_react_sdk111.useHMSNotifications)(import_react_sdk111.HMSNotificationTypes.ERROR);
|
33359
33469
|
const [deviceType, setDeviceType] = (0, import_react215.useState)("");
|
33360
33470
|
const [isSystemError, setIsSystemError] = (0, import_react215.useState)(false);
|
33361
|
-
const isMobile = (0,
|
33471
|
+
const isMobile = (0, import_react_use48.useMedia)(config.media.md);
|
33362
33472
|
(0, import_react215.useEffect)(() => {
|
33363
33473
|
var _a8, _b7, _c, _d, _e;
|
33364
33474
|
if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
|
@@ -33414,13 +33524,13 @@ function PermissionErrorModal() {
|
|
33414
33524
|
!isMobile ? /* @__PURE__ */ import_react215.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react215.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
33415
33525
|
))) : null;
|
33416
33526
|
}
|
33417
|
-
var import_react215,
|
33527
|
+
var import_react215, import_react_use48, import_react_sdk111;
|
33418
33528
|
var init_PermissionErrorModal = __esm({
|
33419
33529
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
33420
33530
|
"use strict";
|
33421
33531
|
init_define_process_env();
|
33422
33532
|
import_react215 = __toESM(require("react"));
|
33423
|
-
|
33533
|
+
import_react_use48 = require("react-use");
|
33424
33534
|
import_react_sdk111 = require("@100mslive/react-sdk");
|
33425
33535
|
init_src();
|
33426
33536
|
init_android_perm_1();
|
@@ -33805,13 +33915,13 @@ var init_Notifications2 = __esm({
|
|
33805
33915
|
});
|
33806
33916
|
|
33807
33917
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
33808
|
-
var import_react221,
|
33918
|
+
var import_react221, import_react_use49, PreviewScreen;
|
33809
33919
|
var init_PreviewScreen = __esm({
|
33810
33920
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
|
33811
33921
|
"use strict";
|
33812
33922
|
init_define_process_env();
|
33813
33923
|
import_react221 = __toESM(require("react"));
|
33814
|
-
|
33924
|
+
import_react_use49 = require("react-use");
|
33815
33925
|
init_src();
|
33816
33926
|
init_AppContext();
|
33817
33927
|
init_roomLayoutProvider();
|
@@ -33824,7 +33934,7 @@ var init_PreviewScreen = __esm({
|
|
33824
33934
|
var _a8, _b7, _c;
|
33825
33935
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
33826
33936
|
const skipPreview = !isPreviewScreenEnabled;
|
33827
|
-
const previewAsRole = (0,
|
33937
|
+
const previewAsRole = (0, import_react_use49.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
33828
33938
|
const { userName } = useHMSPrebuiltContext();
|
33829
33939
|
const initialName = userName || (skipPreview ? "Beam" : "");
|
33830
33940
|
const authToken = useAuthToken();
|
@@ -33965,7 +34075,7 @@ function FlyingEmoji() {
|
|
33965
34075
|
const localPeerId = (0, import_react_sdk119.useHMSStore)(import_react_sdk119.selectLocalPeerID);
|
33966
34076
|
const vanillaStore = (0, import_react_sdk119.useHMSVanillaStore)();
|
33967
34077
|
const [emojis, setEmojis] = (0, import_react226.useState)([]);
|
33968
|
-
const isMobile = (0,
|
34078
|
+
const isMobile = (0, import_react_use50.useMedia)(config.media.md);
|
33969
34079
|
const startingPoints = (0, import_react226.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
33970
34080
|
const showFlyingEmoji = (0, import_react226.useCallback)(
|
33971
34081
|
({ emojiId, senderId }) => {
|
@@ -34057,13 +34167,13 @@ function FlyingEmoji() {
|
|
34057
34167
|
})
|
34058
34168
|
);
|
34059
34169
|
}
|
34060
|
-
var import_react226,
|
34170
|
+
var import_react226, import_react_use50, import_react_sdk119, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
34061
34171
|
var init_FlyingEmoji = __esm({
|
34062
34172
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
34063
34173
|
"use strict";
|
34064
34174
|
init_define_process_env();
|
34065
34175
|
import_react226 = __toESM(require("react"));
|
34066
|
-
|
34176
|
+
import_react_use50 = require("react-use");
|
34067
34177
|
import_react_sdk119 = require("@100mslive/react-sdk");
|
34068
34178
|
init_Layout();
|
34069
34179
|
init_Text2();
|