@100mslive/roomkit-react 0.2.8-alpha.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-TOMPA4E4.js → HLSView-LZOTIUWE.js} +141 -86
- package/dist/HLSView-LZOTIUWE.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-LCECN6XD.js} +194 -142
- package/dist/chunk-LCECN6XD.js.map +7 -0
- package/dist/index.cjs.js +352 -246
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +77 -52
- package/dist/meta.esbuild.json +89 -63
- 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/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/SidePaneTabs.tsx +1 -4
- package/src/Prebuilt/layouts/HLSView.jsx +291 -245
- package/src/Prebuilt/layouts/SidePane.tsx +73 -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_4eada179-91ba-42c0-812a-6c62a47c4853", 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.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4eada179-91ba-42c0-812a-6c62a47c4853", 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.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: "592", 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:20654", 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.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: "8153826113", 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: "eaed700cd6f04214d3aa7a691c3f1bd603e1ce0e", 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: "da4e18ae136d0946a91866f297091a0c26a9e103cec876b3731d92b61083b209", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1709630446602-0.9281138785303897:/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--1709630446409-0.47889333945358104:/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--1709630424406-0.8143865164298287:/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--1709630424231-0.2506504138931236:/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_9f88d938-1924-4be0-a607-3d62ff2d1871", INVOCATION_ID: "254f6b36d06446e18715e52b31cd7d08", 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: "466", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 222", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.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: "eaed700cd6f04214d3aa7a691c3f1bd603e1ce0e", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_4eada179-91ba-42c0-812a-6c62a47c4853", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4eada179-91ba-42c0-812a-6c62a47c4853", 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_4eada179-91ba-42c0-812a-6c62a47c4853" };
|
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.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) => {
|
@@ -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 })
|
@@ -26816,6 +26820,10 @@ var init_Chat = __esm({
|
|
26816
26820
|
},
|
26817
26821
|
[hmsActions, vanillaStore]
|
26818
26822
|
);
|
26823
|
+
if (!(elements == null ? void 0 : elements.chat)) {
|
26824
|
+
return null;
|
26825
|
+
}
|
26826
|
+
const streaming = isMobileHLSStream || isLandscapeStream;
|
26819
26827
|
return /* @__PURE__ */ import_react143.default.createElement(
|
26820
26828
|
Flex,
|
26821
26829
|
{
|
@@ -26826,18 +26834,18 @@ var init_Chat = __esm({
|
|
26826
26834
|
gap: "$4"
|
26827
26835
|
}
|
26828
26836
|
},
|
26829
|
-
isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) ? null : /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null),
|
26837
|
+
isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null),
|
26830
26838
|
/* @__PURE__ */ import_react143.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
|
26831
26839
|
/* @__PURE__ */ import_react143.default.createElement(ChatPaused, null),
|
26832
26840
|
/* @__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,
|
26841
|
+
isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null) : null,
|
26834
26842
|
isChatEnabled ? /* @__PURE__ */ import_react143.default.createElement(ChatFooter, { onSend: scrollToBottom }, /* @__PURE__ */ import_react143.default.createElement(NewMessageIndicator, { scrollToBottom, listRef })) : null,
|
26835
26843
|
(isMobileHLSStream || isLandscapeStream) && /* @__PURE__ */ import_react143.default.createElement(
|
26836
26844
|
Box,
|
26837
26845
|
{
|
26838
26846
|
css: __spreadValues({
|
26839
26847
|
position: "absolute"
|
26840
|
-
}, (0, import_ts_pattern7.match)({ isLandscapeStream, isChatEnabled }).with(
|
26848
|
+
}, (0, import_ts_pattern7.match)({ isLandscapeStream, isMobileHLSStream, isChatEnabled }).with(
|
26841
26849
|
{
|
26842
26850
|
isLandscapeStream: true,
|
26843
26851
|
isChatEnabled: true
|
@@ -26849,12 +26857,24 @@ var init_Chat = __esm({
|
|
26849
26857
|
isChatEnabled: false
|
26850
26858
|
},
|
26851
26859
|
() => ({ bottom: "$20", right: "$10" })
|
26860
|
+
).with(
|
26861
|
+
{
|
26862
|
+
isMobileHLSStream: true,
|
26863
|
+
isChatEnabled: false
|
26864
|
+
},
|
26865
|
+
() => ({ bottom: "$19", right: "$8" })
|
26866
|
+
).with(
|
26867
|
+
{
|
26868
|
+
isMobileHLSStream: true,
|
26869
|
+
isChatEnabled: true
|
26870
|
+
},
|
26871
|
+
() => ({ bottom: "$17", right: "$8" })
|
26852
26872
|
).with(
|
26853
26873
|
{
|
26854
26874
|
isLandscapeStream: false,
|
26855
26875
|
isChatEnabled: true
|
26856
26876
|
},
|
26857
|
-
() => ({ bottom: "$
|
26877
|
+
() => ({ bottom: "$20", right: "$8" })
|
26858
26878
|
).otherwise(() => ({})))
|
26859
26879
|
},
|
26860
26880
|
/* @__PURE__ */ import_react143.default.createElement(EmojiReaction, null)
|
@@ -27108,7 +27128,7 @@ var init_SidePaneTabs = __esm({
|
|
27108
27128
|
ParticipantCount2 = ({ count }) => {
|
27109
27129
|
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
27130
|
};
|
27111
|
-
SidePaneTabs = import_react146.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT,
|
27131
|
+
SidePaneTabs = import_react146.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
|
27112
27132
|
var _a8, _b7;
|
27113
27133
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
27114
27134
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
@@ -27146,7 +27166,6 @@ var init_SidePaneTabs = __esm({
|
|
27146
27166
|
css: {
|
27147
27167
|
color: "$on_primary_high",
|
27148
27168
|
h: "100%",
|
27149
|
-
marginTop: hideControls && isOverlayChat ? "$17" : "0",
|
27150
27169
|
transition: "margin 0.3s ease-in-out",
|
27151
27170
|
position: "relative"
|
27152
27171
|
}
|
@@ -27161,7 +27180,6 @@ var init_SidePaneTabs = __esm({
|
|
27161
27180
|
css: {
|
27162
27181
|
color: "$on_primary_high",
|
27163
27182
|
h: "100%",
|
27164
|
-
marginTop: hideControls && isOverlayChat ? "$17" : "0",
|
27165
27183
|
transition: "margin 0.3s ease-in-out"
|
27166
27184
|
}
|
27167
27185
|
},
|
@@ -28236,16 +28254,13 @@ var init_SidePane = __esm({
|
|
28236
28254
|
},
|
28237
28255
|
"@md": {
|
28238
28256
|
p: "$6 $8",
|
28239
|
-
pb: "$12",
|
28240
|
-
borderTopLeftRadius: 0,
|
28241
|
-
borderTopRightRadius: 0,
|
28242
28257
|
animation: `${translateAcross({ yFrom: "100%" })} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
|
28243
28258
|
},
|
28244
28259
|
variants: {
|
28245
28260
|
landscapeStream: {
|
28246
28261
|
true: {
|
28247
28262
|
"@lg": {
|
28248
|
-
position: "unset
|
28263
|
+
position: "unset",
|
28249
28264
|
minHeight: "100%"
|
28250
28265
|
}
|
28251
28266
|
}
|
@@ -28259,13 +28274,22 @@ var init_SidePane = __esm({
|
|
28259
28274
|
},
|
28260
28275
|
overlayChat: {
|
28261
28276
|
true: {
|
28262
|
-
|
28263
|
-
|
28264
|
-
|
28265
|
-
|
28266
|
-
|
28277
|
+
"@lg": {
|
28278
|
+
maxHeight: "300px",
|
28279
|
+
background: "linear-gradient(180deg, rgba(0, 0, 0, 0.00) 35.94%, rgba(0, 0, 0, 0.64) 100%)",
|
28280
|
+
position: "fixed",
|
28281
|
+
zIndex: 12,
|
28282
|
+
bottom: 0
|
28267
28283
|
}
|
28268
28284
|
}
|
28285
|
+
},
|
28286
|
+
roomDescription: {
|
28287
|
+
true: {
|
28288
|
+
overflowY: "auto"
|
28289
|
+
}
|
28290
|
+
},
|
28291
|
+
hideControls: {
|
28292
|
+
true: {}
|
28269
28293
|
}
|
28270
28294
|
},
|
28271
28295
|
compoundVariants: [
|
@@ -28275,7 +28299,10 @@ var init_SidePane = __esm({
|
|
28275
28299
|
css: {
|
28276
28300
|
position: "unset",
|
28277
28301
|
height: "100%",
|
28278
|
-
maxHeight: "unset"
|
28302
|
+
maxHeight: "unset",
|
28303
|
+
"@md": {
|
28304
|
+
pb: 0
|
28305
|
+
}
|
28279
28306
|
}
|
28280
28307
|
},
|
28281
28308
|
{
|
@@ -28286,6 +28313,13 @@ var init_SidePane = __esm({
|
|
28286
28313
|
height: "100%",
|
28287
28314
|
maxHeight: "unset"
|
28288
28315
|
}
|
28316
|
+
},
|
28317
|
+
{
|
28318
|
+
hideControls: false,
|
28319
|
+
overlayChat: true,
|
28320
|
+
css: {
|
28321
|
+
pb: "$17"
|
28322
|
+
}
|
28289
28323
|
}
|
28290
28324
|
]
|
28291
28325
|
});
|
@@ -28293,7 +28327,7 @@ var init_SidePane = __esm({
|
|
28293
28327
|
tileProps,
|
28294
28328
|
hideControls = false
|
28295
28329
|
}) => {
|
28296
|
-
var _a8, _b7, _c, _d, _e, _f;
|
28330
|
+
var _a8, _b7, _c, _d, _e, _f, _g;
|
28297
28331
|
const isMobile = (0, import_react_use28.useMedia)(config.media.md);
|
28298
28332
|
const sidepane = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAppData)(APP_DATA.sidePane));
|
28299
28333
|
const activeScreensharePeerId = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAppData)(APP_DATA.activeScreensharePeerId));
|
@@ -28320,22 +28354,43 @@ var init_SidePane = __esm({
|
|
28320
28354
|
const mwebStreamingChat = isMobile && sidepane === SIDE_PANE_OPTIONS.CHAT && ((_f = elements == null ? void 0 : elements.chat) == null ? void 0 : _f.is_overlay);
|
28321
28355
|
const commonProps = {
|
28322
28356
|
landscapeStream: isLandscapeHLSStream,
|
28323
|
-
mobileStream: isMobileHLSStream
|
28357
|
+
mobileStream: isMobileHLSStream,
|
28358
|
+
hideControls,
|
28359
|
+
overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
|
28360
|
+
roomDescription: isMobile && sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS
|
28324
28361
|
};
|
28362
|
+
const SidepaneComponent = (0, import_ts_pattern9.match)(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ import_react154.default.createElement(
|
28363
|
+
Wrapper3,
|
28364
|
+
__spreadValues({
|
28365
|
+
css: {
|
28366
|
+
"@md": {
|
28367
|
+
borderTopLeftRadius: "$2",
|
28368
|
+
borderTopRightRadius: "$2"
|
28369
|
+
}
|
28370
|
+
}
|
28371
|
+
}, commonProps),
|
28372
|
+
/* @__PURE__ */ import_react154.default.createElement(Polls, null)
|
28373
|
+
)).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(() => {
|
28374
|
+
return null;
|
28375
|
+
});
|
28376
|
+
if (!trackId && !SidepaneComponent) {
|
28377
|
+
return null;
|
28378
|
+
}
|
28325
28379
|
return /* @__PURE__ */ import_react154.default.createElement(
|
28326
28380
|
Flex,
|
28327
28381
|
{
|
28328
28382
|
direction: "column",
|
28329
28383
|
justify: "center",
|
28330
28384
|
css: {
|
28331
|
-
w: "$100",
|
28385
|
+
w: (0, import_ts_pattern9.match)({ isMobileHLSStream, isLandscapeHLSStream }).with({ isLandscapeHLSStream: true }, () => "340px").with({ isMobileHLSStream: true }, () => "100%").otherwise(() => "$100"),
|
28332
28386
|
h: "100%",
|
28333
28387
|
flexShrink: 0,
|
28334
28388
|
gap: "$4",
|
28335
28389
|
position: "relative",
|
28336
28390
|
"&:empty": { display: "none" },
|
28337
|
-
"@
|
28338
|
-
|
28391
|
+
"@md": {
|
28392
|
+
position: "absolute",
|
28393
|
+
zIndex: 12
|
28339
28394
|
}
|
28340
28395
|
}
|
28341
28396
|
},
|
@@ -28349,27 +28404,7 @@ var init_SidePane = __esm({
|
|
28349
28404
|
rootCSS: { p: 0, alignSelf: "start", flexShrink: 0 }
|
28350
28405
|
}, tileLayout)
|
28351
28406
|
),
|
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
|
-
})
|
28407
|
+
SidepaneComponent
|
28373
28408
|
);
|
28374
28409
|
};
|
28375
28410
|
SidePane_default = SidePane;
|
@@ -30501,19 +30536,15 @@ var init_Controls = __esm({
|
|
30501
30536
|
});
|
30502
30537
|
|
30503
30538
|
// src/Prebuilt/components/HMSVideo/HMSVideo.jsx
|
30504
|
-
var import_react182,
|
30539
|
+
var import_react182, HMSVideo;
|
30505
30540
|
var init_HMSVideo = __esm({
|
30506
30541
|
"src/Prebuilt/components/HMSVideo/HMSVideo.jsx"() {
|
30507
30542
|
"use strict";
|
30508
30543
|
init_define_process_env();
|
30509
30544
|
import_react182 = __toESM(require("react"));
|
30510
|
-
|
30511
|
-
init_src();
|
30512
|
-
init_hooks();
|
30545
|
+
init_Layout();
|
30513
30546
|
HMSVideo = (0, import_react182.forwardRef)((_a8, videoRef) => {
|
30514
30547
|
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
30548
|
return /* @__PURE__ */ import_react182.default.createElement(
|
30518
30549
|
Flex,
|
30519
30550
|
__spreadValues({
|
@@ -30521,6 +30552,13 @@ var init_HMSVideo = __esm({
|
|
30521
30552
|
css: {
|
30522
30553
|
size: "100%",
|
30523
30554
|
position: "relative",
|
30555
|
+
justifyContent: "center",
|
30556
|
+
"@md": {
|
30557
|
+
height: "auto",
|
30558
|
+
"& video": {
|
30559
|
+
height: "$60 !important"
|
30560
|
+
}
|
30561
|
+
},
|
30524
30562
|
"& video::cue": {
|
30525
30563
|
color: "white",
|
30526
30564
|
whiteSpace: "pre-line",
|
@@ -30544,16 +30582,16 @@ var init_HMSVideo = __esm({
|
|
30544
30582
|
"video",
|
30545
30583
|
{
|
30546
30584
|
style: {
|
30547
|
-
flex: "1 1 0",
|
30548
30585
|
margin: "0 auto",
|
30549
|
-
minHeight: "0",
|
30550
30586
|
objectFit: "contain",
|
30551
|
-
width: "
|
30552
|
-
height:
|
30553
|
-
|
30587
|
+
width: "auto",
|
30588
|
+
height: "auto",
|
30589
|
+
maxWidth: "100%",
|
30590
|
+
maxHeight: "100%"
|
30554
30591
|
},
|
30555
30592
|
ref: videoRef,
|
30556
|
-
playsInline: true
|
30593
|
+
playsInline: true,
|
30594
|
+
disablePictureInPicture: true
|
30557
30595
|
}
|
30558
30596
|
),
|
30559
30597
|
children
|
@@ -30659,44 +30697,54 @@ var init_VideoProgress = __esm({
|
|
30659
30697
|
init_src();
|
30660
30698
|
init_PlayerContext();
|
30661
30699
|
init_utils6();
|
30662
|
-
VideoProgress = (
|
30700
|
+
VideoProgress = ({
|
30701
|
+
seekProgress,
|
30702
|
+
setSeekProgress
|
30703
|
+
}) => {
|
30663
30704
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
30664
30705
|
const [videoProgress, setVideoProgress] = (0, import_react186.useState)(0);
|
30665
30706
|
const [bufferProgress, setBufferProgress] = (0, import_react186.useState)(0);
|
30666
30707
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
30667
|
-
const
|
30668
|
-
|
30669
|
-
|
30708
|
+
const setProgress = (0, import_react186.useCallback)(() => {
|
30709
|
+
var _a8, _b7;
|
30710
|
+
if (!videoEl) {
|
30711
|
+
return;
|
30712
|
+
}
|
30713
|
+
const duration = isFinite(videoEl.duration) ? videoEl.duration : ((_a8 = videoEl.seekable) == null ? void 0 : _a8.end(0)) || 0;
|
30714
|
+
const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
|
30715
|
+
let bufferProgress2 = 0;
|
30716
|
+
if (videoEl.buffered.length > 0) {
|
30717
|
+
bufferProgress2 = Math.floor(getPercentage((_b7 = videoEl.buffered) == null ? void 0 : _b7.end(0), duration));
|
30718
|
+
}
|
30719
|
+
setVideoProgress(isNaN(videoProgress2) ? 0 : videoProgress2);
|
30720
|
+
setBufferProgress(isNaN(bufferProgress2) ? 0 : bufferProgress2);
|
30721
|
+
}, [videoEl]);
|
30722
|
+
const timeupdateHandler = (0, import_react186.useCallback)(() => {
|
30723
|
+
if (!videoEl || seekProgress) {
|
30724
|
+
return;
|
30725
|
+
}
|
30726
|
+
setProgress();
|
30727
|
+
}, [seekProgress, setProgress, videoEl]);
|
30670
30728
|
(0, import_react186.useEffect)(() => {
|
30671
30729
|
if (!videoEl) {
|
30672
30730
|
return;
|
30673
30731
|
}
|
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
30732
|
videoEl.addEventListener("timeupdate", timeupdateHandler);
|
30689
30733
|
return function cleanup() {
|
30690
30734
|
videoEl == null ? void 0 : videoEl.removeEventListener("timeupdate", timeupdateHandler);
|
30691
30735
|
};
|
30692
|
-
}, [videoEl]);
|
30736
|
+
}, [timeupdateHandler, videoEl]);
|
30693
30737
|
const onProgress = (progress) => {
|
30738
|
+
var _a8;
|
30694
30739
|
const progress1 = Math.floor(getPercentage(progress[0], 100));
|
30695
30740
|
const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
30696
|
-
|
30697
|
-
|
30698
|
-
onValueChange(currentTime);
|
30741
|
+
if (!videoEl2) {
|
30742
|
+
return;
|
30699
30743
|
}
|
30744
|
+
const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
|
30745
|
+
const currentTime = progress1 * duration / 100;
|
30746
|
+
hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
|
30747
|
+
setProgress();
|
30700
30748
|
};
|
30701
30749
|
if (!videoEl) {
|
30702
30750
|
return null;
|
@@ -30717,6 +30765,8 @@ var init_VideoProgress = __esm({
|
|
30717
30765
|
value: [videoProgress],
|
30718
30766
|
showTooltip: false,
|
30719
30767
|
onValueChange: onProgress,
|
30768
|
+
onPointerDown: () => setSeekProgress(true),
|
30769
|
+
onPointerUp: () => setSeekProgress(false),
|
30720
30770
|
thumbStyles: { w: "$6", h: "$6" }
|
30721
30771
|
}
|
30722
30772
|
), /* @__PURE__ */ import_react186.default.createElement(
|
@@ -30916,7 +30966,7 @@ function HLSAutoplayBlockedPrompt({
|
|
30916
30966
|
unblockAutoPlay
|
30917
30967
|
}) {
|
30918
30968
|
const isLandscape = useIsLandscape();
|
30919
|
-
const isMobile = (0,
|
30969
|
+
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
30920
30970
|
if ((isMobile || isLandscape) && open) {
|
30921
30971
|
return /* @__PURE__ */ import_react190.default.createElement(
|
30922
30972
|
IconButton,
|
@@ -30968,13 +31018,13 @@ function HLSAutoplayBlockedPrompt({
|
|
30968
31018
|
)))
|
30969
31019
|
);
|
30970
31020
|
}
|
30971
|
-
var import_react190,
|
31021
|
+
var import_react190, import_react_use41, import_react_icons89;
|
30972
31022
|
var init_HLSAutoplayBlockedPrompt = __esm({
|
30973
31023
|
"src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
|
30974
31024
|
"use strict";
|
30975
31025
|
init_define_process_env();
|
30976
31026
|
import_react190 = __toESM(require("react"));
|
30977
|
-
|
31027
|
+
import_react_use41 = require("react-use");
|
30978
31028
|
import_react_icons89 = require("@100mslive/react-icons");
|
30979
31029
|
init_src();
|
30980
31030
|
init_DialogContent2();
|
@@ -31009,7 +31059,7 @@ function HLSQualitySelector({
|
|
31009
31059
|
isAuto,
|
31010
31060
|
containerRef
|
31011
31061
|
}) {
|
31012
|
-
const isMobile = (0,
|
31062
|
+
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
31013
31063
|
const isLandscape = useIsLandscape();
|
31014
31064
|
if (layers.length === 0) {
|
31015
31065
|
return null;
|
@@ -31202,13 +31252,13 @@ function HLSQualitySelector({
|
|
31202
31252
|
)
|
31203
31253
|
)));
|
31204
31254
|
}
|
31205
|
-
var import_react192,
|
31255
|
+
var import_react192, import_react_use42, import_react_icons91, getQualityText, getBitrateText;
|
31206
31256
|
var init_HLSQualitySelector = __esm({
|
31207
31257
|
"src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
|
31208
31258
|
"use strict";
|
31209
31259
|
init_define_process_env();
|
31210
31260
|
import_react192 = __toESM(require("react"));
|
31211
|
-
|
31261
|
+
import_react_use42 = require("react-use");
|
31212
31262
|
import_react_icons91 = require("@100mslive/react-icons");
|
31213
31263
|
init_src();
|
31214
31264
|
init_Sheet2();
|
@@ -31235,7 +31285,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
31235
31285
|
init_useSidepane();
|
31236
31286
|
init_constants();
|
31237
31287
|
HLSViewTitle = () => {
|
31238
|
-
const { title, details } = useRoomLayoutHeader();
|
31288
|
+
const { title, details, description } = useRoomLayoutHeader();
|
31239
31289
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31240
31290
|
const isDetailSidepaneOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31241
31291
|
if (isDetailSidepaneOpen) {
|
@@ -31284,7 +31334,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
31284
31334
|
}
|
31285
31335
|
},
|
31286
31336
|
/* @__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")))
|
31337
|
+
/* @__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
31338
|
);
|
31289
31339
|
};
|
31290
31340
|
}
|
@@ -31295,15 +31345,16 @@ var HLSView_exports = {};
|
|
31295
31345
|
__export(HLSView_exports, {
|
31296
31346
|
default: () => HLSView_default
|
31297
31347
|
});
|
31298
|
-
var import_react194,
|
31348
|
+
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
31349
|
var init_HLSView = __esm({
|
31300
31350
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
31301
31351
|
"use strict";
|
31302
31352
|
init_define_process_env();
|
31303
31353
|
import_react194 = __toESM(require("react"));
|
31304
|
-
|
31354
|
+
import_react_use43 = require("react-use");
|
31305
31355
|
import_hls_player3 = require("@100mslive/hls-player");
|
31306
31356
|
import_screenfull3 = __toESM(require("screenfull"));
|
31357
|
+
import_ts_pattern10 = require("ts-pattern");
|
31307
31358
|
import_react_sdk96 = require("@100mslive/react-sdk");
|
31308
31359
|
import_react_icons93 = require("@100mslive/react-icons");
|
31309
31360
|
init_ChatToggle();
|
@@ -31329,13 +31380,29 @@ var init_HLSView = __esm({
|
|
31329
31380
|
init_hooks();
|
31330
31381
|
init_constants();
|
31331
31382
|
toastMap = {};
|
31383
|
+
ToggleChat = () => {
|
31384
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
31385
|
+
const sidepane = (0, import_react_sdk96.useHMSStore)((0, import_react_sdk96.selectAppData)(APP_DATA.sidePane));
|
31386
|
+
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
31387
|
+
const showChat = !!(elements == null ? void 0 : elements.chat);
|
31388
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
31389
|
+
const hmsActions = (0, import_react_sdk96.useHMSActions)();
|
31390
|
+
(0, import_react194.useEffect)(() => {
|
31391
|
+
(0, import_ts_pattern10.match)({ sidepane, isMobile, showChat }).with({ isMobile: true, showChat: true, sidepane: import_ts_pattern10.P.when((value) => !value) }, () => {
|
31392
|
+
toggleChat();
|
31393
|
+
}).with({ showChat: false, isMobile: true, sidepane: SIDE_PANE_OPTIONS.CHAT }, () => {
|
31394
|
+
hmsActions.setAppData(APP_DATA.sidePane, "");
|
31395
|
+
}).otherwise(() => {
|
31396
|
+
});
|
31397
|
+
}, [sidepane, isMobile, toggleChat, showChat, hmsActions]);
|
31398
|
+
return null;
|
31399
|
+
};
|
31332
31400
|
HLSView = () => {
|
31333
31401
|
var _a8, _b7, _c, _d, _e, _f;
|
31334
31402
|
const videoRef = (0, import_react194.useRef)(null);
|
31335
31403
|
const hlsViewRef = (0, import_react194.useRef)();
|
31336
31404
|
const hlsState = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectHLSState);
|
31337
31405
|
const enablHlsStats = (0, import_react_sdk96.useHMSStore)((0, import_react_sdk96.selectAppData)(APP_DATA.hlsStats));
|
31338
|
-
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
31339
31406
|
const notification = (0, import_react_sdk96.useHMSNotifications)(import_react_sdk96.HMSNotificationTypes.POLL_STOPPED);
|
31340
31407
|
const hmsActions = (0, import_react_sdk96.useHMSActions)();
|
31341
31408
|
const { themeType } = useTheme();
|
@@ -31350,31 +31417,22 @@ var init_HLSView = __esm({
|
|
31350
31417
|
const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react194.useState)(false);
|
31351
31418
|
const [isSeekEnabled, setIsSeekEnabled] = (0, import_react194.useState)(false);
|
31352
31419
|
const [isPaused, setIsPaused] = (0, import_react194.useState)(false);
|
31353
|
-
const [show, toggle] = (0,
|
31354
|
-
const lastHlsUrl = (0,
|
31355
|
-
const togglePollView = usePollViewToggle();
|
31420
|
+
const [show, toggle] = (0, import_react_use43.useToggle)(false);
|
31421
|
+
const lastHlsUrl = (0, import_react_use43.usePrevious)(hlsUrl);
|
31356
31422
|
const vanillaStore = (0, import_react_sdk96.useHMSVanillaStore)();
|
31357
31423
|
const [controlsVisible, setControlsVisible] = (0, import_react194.useState)(true);
|
31358
31424
|
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react194.useState)(true);
|
31359
31425
|
const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react194.useState)(false);
|
31360
31426
|
const controlsRef = (0, import_react194.useRef)(null);
|
31361
31427
|
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);
|
31428
|
+
const [seekProgress, setSeekProgress] = (0, import_react194.useState)(false);
|
31365
31429
|
const isFullScreenSupported = import_screenfull3.default.isEnabled;
|
31366
|
-
const isMobile = (0,
|
31430
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
31367
31431
|
const isLandscape = useIsLandscape();
|
31368
|
-
const isFullScreen = (0,
|
31432
|
+
const isFullScreen = (0, import_react_use43.useFullscreen)(hlsViewRef, show, {
|
31369
31433
|
onClose: () => toggle(false)
|
31370
31434
|
});
|
31371
31435
|
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
31436
|
(0, import_react194.useEffect)(() => {
|
31379
31437
|
const videoEl = videoRef.current;
|
31380
31438
|
const showLoader2 = () => setShowLoader(true);
|
@@ -31453,7 +31511,13 @@ var init_HLSView = __esm({
|
|
31453
31511
|
action: /* @__PURE__ */ import_react194.default.createElement(
|
31454
31512
|
Button,
|
31455
31513
|
{
|
31456
|
-
onClick: () =>
|
31514
|
+
onClick: () => {
|
31515
|
+
hmsActions.setAppData(APP_DATA.pollState, {
|
31516
|
+
[POLL_STATE.pollInView]: pollId,
|
31517
|
+
[POLL_STATE.view]: POLL_VIEWS.VOTE
|
31518
|
+
});
|
31519
|
+
hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
|
31520
|
+
},
|
31457
31521
|
variant: "standard",
|
31458
31522
|
css: {
|
31459
31523
|
backgroundColor: "$surface_bright",
|
@@ -31518,7 +31582,7 @@ var init_HLSView = __esm({
|
|
31518
31582
|
hlsPlayer.reset();
|
31519
31583
|
};
|
31520
31584
|
}
|
31521
|
-
}, [hlsUrl,
|
31585
|
+
}, [hlsUrl, vanillaStore, hmsActions]);
|
31522
31586
|
(0, import_react194.useEffect)(() => {
|
31523
31587
|
const onHLSStats = (state) => setHlsStatsState(state);
|
31524
31588
|
if (enablHlsStats) {
|
@@ -31551,14 +31615,16 @@ var init_HLSView = __esm({
|
|
31551
31615
|
clearTimeout(controlsTimerRef.current);
|
31552
31616
|
}
|
31553
31617
|
controlsTimerRef.current = setTimeout(() => {
|
31554
|
-
|
31618
|
+
if (!seekProgress) {
|
31619
|
+
setControlsVisible(false);
|
31620
|
+
}
|
31555
31621
|
}, 5e3);
|
31556
31622
|
return () => {
|
31557
31623
|
if (controlsTimerRef.current) {
|
31558
31624
|
clearTimeout(controlsTimerRef.current);
|
31559
31625
|
}
|
31560
31626
|
};
|
31561
|
-
}, [controlsVisible, isFullScreen, qualityDropDownOpen]);
|
31627
|
+
}, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
|
31562
31628
|
const onSeekTo = (0, import_react194.useCallback)((seek) => {
|
31563
31629
|
var _a9;
|
31564
31630
|
hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
|
@@ -31601,17 +31667,33 @@ var init_HLSView = __esm({
|
|
31601
31667
|
setControlsVisible(true);
|
31602
31668
|
return;
|
31603
31669
|
}
|
31604
|
-
if (event.type === "mouseleave") {
|
31670
|
+
if (event.type === "mouseleave" && !seekProgress) {
|
31605
31671
|
setControlsVisible(false);
|
31606
|
-
} else if (
|
31672
|
+
} else if (!controlsVisible && event.type === "mousemove") {
|
31607
31673
|
setControlsVisible(true);
|
31608
31674
|
if (controlsTimerRef.current) {
|
31609
31675
|
clearTimeout(controlsTimerRef.current);
|
31610
31676
|
}
|
31611
31677
|
}
|
31612
31678
|
},
|
31613
|
-
[controlsVisible,
|
31679
|
+
[controlsVisible, isLandscape, isMobile, qualityDropDownOpen, seekProgress]
|
31614
31680
|
);
|
31681
|
+
if (!hlsUrl || streamEnded) {
|
31682
|
+
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(
|
31683
|
+
Flex,
|
31684
|
+
{
|
31685
|
+
key: "hls-viewer",
|
31686
|
+
id: `hls-viewer-${themeType}`,
|
31687
|
+
ref: hlsViewRef,
|
31688
|
+
direction: isMobile || isLandscape ? "column" : "row",
|
31689
|
+
justify: "center",
|
31690
|
+
css: {
|
31691
|
+
flex: isLandscape ? "2 1 0" : "1 1 0"
|
31692
|
+
}
|
31693
|
+
},
|
31694
|
+
/* @__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"))
|
31695
|
+
));
|
31696
|
+
}
|
31615
31697
|
return /* @__PURE__ */ import_react194.default.createElement(
|
31616
31698
|
Flex,
|
31617
31699
|
{
|
@@ -31619,13 +31701,18 @@ var init_HLSView = __esm({
|
|
31619
31701
|
id: `hls-viewer-${themeType}`,
|
31620
31702
|
ref: hlsViewRef,
|
31621
31703
|
direction: isMobile || isLandscape ? "column" : "row",
|
31704
|
+
justify: "center",
|
31622
31705
|
css: {
|
31623
|
-
|
31624
|
-
|
31625
|
-
|
31706
|
+
flex: isLandscape ? "2 1 0" : "1 1 0",
|
31707
|
+
"&:fullscreen": {
|
31708
|
+
"& video": {
|
31709
|
+
height: "unset !important"
|
31710
|
+
}
|
31711
|
+
}
|
31626
31712
|
}
|
31627
31713
|
},
|
31628
|
-
|
31714
|
+
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 })),
|
31715
|
+
/* @__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
31716
|
Flex,
|
31630
31717
|
{
|
31631
31718
|
id: "hls-player-container",
|
@@ -31633,7 +31720,10 @@ var init_HLSView = __esm({
|
|
31633
31720
|
justify: "center",
|
31634
31721
|
css: {
|
31635
31722
|
size: "100%",
|
31636
|
-
margin: "0 auto"
|
31723
|
+
margin: "0 auto",
|
31724
|
+
"@md": {
|
31725
|
+
height: "auto"
|
31726
|
+
}
|
31637
31727
|
}
|
31638
31728
|
},
|
31639
31729
|
!(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }),
|
@@ -31660,12 +31750,13 @@ var init_HLSView = __esm({
|
|
31660
31750
|
onDoubleClickHandler(e);
|
31661
31751
|
}
|
31662
31752
|
},
|
31663
|
-
/* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, isMobile || isLandscape ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null,
|
31753
|
+
/* @__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
31754
|
Flex,
|
31665
31755
|
{
|
31666
31756
|
align: "center",
|
31667
31757
|
justify: "center",
|
31668
31758
|
css: {
|
31759
|
+
position: "absolute",
|
31669
31760
|
bg: "#00000066",
|
31670
31761
|
display: "inline-flex",
|
31671
31762
|
gap: "$2",
|
@@ -31675,7 +31766,7 @@ var init_HLSView = __esm({
|
|
31675
31766
|
opacity: controlsVisible ? `1` : "0"
|
31676
31767
|
}
|
31677
31768
|
},
|
31678
|
-
/* @__PURE__ */ import_react194.default.createElement(
|
31769
|
+
!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
31770
|
HMSVideoPlayer.Seeker,
|
31680
31771
|
{
|
31681
31772
|
title: "backward",
|
@@ -31685,8 +31776,7 @@ var init_HLSView = __esm({
|
|
31685
31776
|
}
|
31686
31777
|
},
|
31687
31778
|
/* @__PURE__ */ import_react194.default.createElement(import_react_icons93.BackwardArrowIcon, { width: 32, height: 32 })
|
31688
|
-
),
|
31689
|
-
/* @__PURE__ */ import_react194.default.createElement(
|
31779
|
+
), /* @__PURE__ */ import_react194.default.createElement(
|
31690
31780
|
Box,
|
31691
31781
|
{
|
31692
31782
|
css: {
|
@@ -31695,8 +31785,7 @@ var init_HLSView = __esm({
|
|
31695
31785
|
}
|
31696
31786
|
},
|
31697
31787
|
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.PlayPauseButton, { isPaused, width: 48, height: 48 })
|
31698
|
-
),
|
31699
|
-
/* @__PURE__ */ import_react194.default.createElement(
|
31788
|
+
), /* @__PURE__ */ import_react194.default.createElement(
|
31700
31789
|
HMSVideoPlayer.Seeker,
|
31701
31790
|
{
|
31702
31791
|
title: "forward",
|
@@ -31706,7 +31795,7 @@ var init_HLSView = __esm({
|
|
31706
31795
|
}
|
31707
31796
|
},
|
31708
31797
|
/* @__PURE__ */ import_react194.default.createElement(import_react_icons93.ForwardArrowIcon, { width: 32, height: 32 })
|
31709
|
-
)
|
31798
|
+
))
|
31710
31799
|
), /* @__PURE__ */ import_react194.default.createElement(
|
31711
31800
|
Flex,
|
31712
31801
|
{
|
@@ -31732,7 +31821,6 @@ var init_HLSView = __esm({
|
|
31732
31821
|
p: "$4 $8"
|
31733
31822
|
}
|
31734
31823
|
},
|
31735
|
-
/* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Left, null, hlsViewRef.current && /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType, container: hlsViewRef.current })),
|
31736
31824
|
/* @__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
31825
|
HLSQualitySelector,
|
31738
31826
|
{
|
@@ -31746,7 +31834,7 @@ var init_HLSView = __esm({
|
|
31746
31834
|
}
|
31747
31835
|
) : null, /* @__PURE__ */ import_react194.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }))
|
31748
31836
|
)
|
31749
|
-
)) : null, /* @__PURE__ */ import_react194.default.createElement(
|
31837
|
+
)) : null, controlsVisible && /* @__PURE__ */ import_react194.default.createElement(
|
31750
31838
|
Flex,
|
31751
31839
|
{
|
31752
31840
|
ref: controlsRef,
|
@@ -31762,12 +31850,10 @@ var init_HLSView = __esm({
|
|
31762
31850
|
width: "100%",
|
31763
31851
|
pt: "$8",
|
31764
31852
|
flexShrink: 0,
|
31765
|
-
transition: "visibility 0s 0.5s, opacity 0.5s linear"
|
31766
|
-
visibility: controlsVisible ? `` : `hidden`,
|
31767
|
-
opacity: controlsVisible ? `1` : "0"
|
31853
|
+
transition: "visibility 0s 0.5s, opacity 0.5s linear"
|
31768
31854
|
}
|
31769
31855
|
},
|
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,
|
31856
|
+
((_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
31857
|
/* @__PURE__ */ import_react194.default.createElement(
|
31772
31858
|
HMSVideoPlayer.Controls.Root,
|
31773
31859
|
{
|
@@ -31840,7 +31926,9 @@ var init_HLSView = __esm({
|
|
31840
31926
|
)
|
31841
31927
|
))
|
31842
31928
|
)
|
31843
|
-
)),
|
31929
|
+
)),
|
31930
|
+
/* @__PURE__ */ import_react194.default.createElement(ToggleChat, null),
|
31931
|
+
isMobile && !isFullScreen && /* @__PURE__ */ import_react194.default.createElement(HLSViewTitle, null)
|
31844
31932
|
);
|
31845
31933
|
};
|
31846
31934
|
HLSView_default = HLSView;
|
@@ -31848,12 +31936,13 @@ var init_HLSView = __esm({
|
|
31848
31936
|
});
|
31849
31937
|
|
31850
31938
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
31851
|
-
var import_react195, import_react_sdk97, HLSView2, VideoStreamingSection;
|
31939
|
+
var import_react195, import_ts_pattern11, import_react_sdk97, HLSView2, VideoStreamingSection;
|
31852
31940
|
var init_VideoStreamingSection = __esm({
|
31853
31941
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
31854
31942
|
"use strict";
|
31855
31943
|
init_define_process_env();
|
31856
31944
|
import_react195 = __toESM(require("react"));
|
31945
|
+
import_ts_pattern11 = require("ts-pattern");
|
31857
31946
|
import_react_sdk97 = require("@100mslive/react-sdk");
|
31858
31947
|
init_FullPageProgress();
|
31859
31948
|
init_GridLayout();
|
@@ -31923,14 +32012,15 @@ var init_VideoStreamingSection = __esm({
|
|
31923
32012
|
position: "relative",
|
31924
32013
|
gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
|
31925
32014
|
},
|
31926
|
-
direction: isMobileHLSStream
|
32015
|
+
direction: (0, import_ts_pattern11.match)({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
|
31927
32016
|
},
|
31928
32017
|
ViewComponent,
|
31929
32018
|
/* @__PURE__ */ import_react195.default.createElement(
|
31930
32019
|
Box,
|
31931
32020
|
{
|
31932
32021
|
css: {
|
31933
|
-
flex: isMobileHLSStream
|
32022
|
+
flex: (0, import_ts_pattern11.match)({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "1 1 0").with({ isMobileHLSStream: true }, () => "2 1 0").otherwise(() => void 0),
|
32023
|
+
position: "relative",
|
31934
32024
|
height: !isMobileHLSStream ? "100%" : void 0,
|
31935
32025
|
maxHeight: "100%",
|
31936
32026
|
"&:empty": { display: "none" },
|
@@ -31952,13 +32042,13 @@ var init_VideoStreamingSection = __esm({
|
|
31952
32042
|
});
|
31953
32043
|
|
31954
32044
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
31955
|
-
var import_react196,
|
32045
|
+
var import_react196, import_react_use44, import_react_icons94, RoomDetailsHeader;
|
31956
32046
|
var init_RoomDetailsHeader = __esm({
|
31957
32047
|
"src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
|
31958
32048
|
"use strict";
|
31959
32049
|
init_define_process_env();
|
31960
32050
|
import_react196 = __toESM(require("react"));
|
31961
|
-
|
32051
|
+
import_react_use44 = require("react-use");
|
31962
32052
|
import_react_icons94 = require("@100mslive/react-icons");
|
31963
32053
|
init_Layout();
|
31964
32054
|
init_Text2();
|
@@ -31969,7 +32059,7 @@ var init_RoomDetailsHeader = __esm({
|
|
31969
32059
|
init_constants();
|
31970
32060
|
RoomDetailsHeader = () => {
|
31971
32061
|
const { title, description } = useRoomLayoutHeader();
|
31972
|
-
const isMobile = (0,
|
32062
|
+
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31973
32063
|
const clipLength = 30;
|
31974
32064
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
31975
32065
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -32147,13 +32237,13 @@ var init_common2 = __esm({
|
|
32147
32237
|
});
|
32148
32238
|
|
32149
32239
|
// src/Prebuilt/components/Header/Header.tsx
|
32150
|
-
var import_react198,
|
32240
|
+
var import_react198, import_react_use45, import_react_sdk99, Header2;
|
32151
32241
|
var init_Header = __esm({
|
32152
32242
|
"src/Prebuilt/components/Header/Header.tsx"() {
|
32153
32243
|
"use strict";
|
32154
32244
|
init_define_process_env();
|
32155
32245
|
import_react198 = __toESM(require("react"));
|
32156
|
-
|
32246
|
+
import_react_use45 = require("react-use");
|
32157
32247
|
import_react_sdk99 = require("@100mslive/react-sdk");
|
32158
32248
|
init_src();
|
32159
32249
|
init_HeaderComponents();
|
@@ -32162,7 +32252,7 @@ var init_Header = __esm({
|
|
32162
32252
|
init_common2();
|
32163
32253
|
Header2 = () => {
|
32164
32254
|
const roomState = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectRoomState);
|
32165
|
-
const isMobile = (0,
|
32255
|
+
const isMobile = (0, import_react_use45.useMedia)(config.media.md);
|
32166
32256
|
if (roomState !== import_react_sdk99.HMSRoomState.Connected) {
|
32167
32257
|
return /* @__PURE__ */ import_react198.default.createElement(import_react198.default.Fragment, null);
|
32168
32258
|
}
|
@@ -32237,6 +32327,7 @@ var init_ConferenceScreen = __esm({
|
|
32237
32327
|
init_Layout();
|
32238
32328
|
init_AppContext();
|
32239
32329
|
init_VideoStreamingSection();
|
32330
|
+
init_EmojiReaction();
|
32240
32331
|
init_FullPageProgress();
|
32241
32332
|
init_Header2();
|
32242
32333
|
init_PreviousRoleInMetadata();
|
@@ -32380,13 +32471,25 @@ var init_ConferenceScreen = __esm({
|
|
32380
32471
|
css: {
|
32381
32472
|
alignItems: "center",
|
32382
32473
|
pr: "$4",
|
32383
|
-
pb: "$4"
|
32474
|
+
pb: "$4",
|
32475
|
+
position: "relative"
|
32384
32476
|
},
|
32385
32477
|
justify: "end",
|
32386
|
-
gap: "
|
32478
|
+
gap: "2"
|
32387
32479
|
},
|
32388
32480
|
noAVPermissions ? /* @__PURE__ */ import_react200.default.createElement(RaiseHand, null) : null,
|
32389
|
-
/* @__PURE__ */ import_react200.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType })
|
32481
|
+
/* @__PURE__ */ import_react200.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
|
32482
|
+
/* @__PURE__ */ import_react200.default.createElement(
|
32483
|
+
Box,
|
32484
|
+
{
|
32485
|
+
css: {
|
32486
|
+
position: "absolute",
|
32487
|
+
bottom: "100%",
|
32488
|
+
mb: "$4"
|
32489
|
+
}
|
32490
|
+
},
|
32491
|
+
/* @__PURE__ */ import_react200.default.createElement(EmojiReaction, null)
|
32492
|
+
)
|
32390
32493
|
), /* @__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
32494
|
};
|
32392
32495
|
}
|
@@ -32689,13 +32792,13 @@ var init_useRedirectToLeave = __esm({
|
|
32689
32792
|
});
|
32690
32793
|
|
32691
32794
|
// src/Prebuilt/AppStateContext.tsx
|
32692
|
-
var import_react206,
|
32795
|
+
var import_react206, import_react_use46, import_react_sdk104, AppStateContext, useHMSAppStateContext, useAppStateManager;
|
32693
32796
|
var init_AppStateContext = __esm({
|
32694
32797
|
"src/Prebuilt/AppStateContext.tsx"() {
|
32695
32798
|
"use strict";
|
32696
32799
|
init_define_process_env();
|
32697
32800
|
import_react206 = __toESM(require("react"));
|
32698
|
-
|
32801
|
+
import_react_use46 = require("react-use");
|
32699
32802
|
import_react_sdk104 = require("@100mslive/react-sdk");
|
32700
32803
|
init_VBHandler();
|
32701
32804
|
init_roomLayoutProvider();
|
@@ -32718,7 +32821,7 @@ var init_AppStateContext = __esm({
|
|
32718
32821
|
const roomLayout = useRoomLayout();
|
32719
32822
|
const [activeState, setActiveState] = import_react206.default.useState();
|
32720
32823
|
const roomState = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomState);
|
32721
|
-
const prevRoomState = (0,
|
32824
|
+
const prevRoomState = (0, import_react_use46.usePreviousDistinct)(roomState);
|
32722
32825
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
32723
32826
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
32724
32827
|
const { redirectToLeave } = useRedirectToLeave();
|
@@ -32807,13 +32910,14 @@ var init_LeaveScreen = __esm({
|
|
32807
32910
|
});
|
32808
32911
|
|
32809
32912
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
32810
|
-
var import_react208,
|
32913
|
+
var import_react208, import_react_use47, import_ts_pattern12, import_react_icons98, MwebLandscapePrompt;
|
32811
32914
|
var init_MwebLandscapePrompt = __esm({
|
32812
32915
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
|
32813
32916
|
"use strict";
|
32814
32917
|
init_define_process_env();
|
32815
32918
|
import_react208 = __toESM(require("react"));
|
32816
|
-
|
32919
|
+
import_react_use47 = require("react-use");
|
32920
|
+
import_ts_pattern12 = require("ts-pattern");
|
32817
32921
|
import_react_icons98 = require("@100mslive/react-icons");
|
32818
32922
|
init_Button2();
|
32819
32923
|
init_Layout();
|
@@ -32824,7 +32928,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
32824
32928
|
init_utils2();
|
32825
32929
|
MwebLandscapePrompt = () => {
|
32826
32930
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react208.useState)(false);
|
32827
|
-
const isLandscape = (0,
|
32931
|
+
const isLandscape = (0, import_react_use47.useMedia)(config.media.ls);
|
32828
32932
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
32829
32933
|
(0, import_react208.useEffect)(() => {
|
32830
32934
|
var _a8;
|
@@ -32833,20 +32937,22 @@ var init_MwebLandscapePrompt = __esm({
|
|
32833
32937
|
return;
|
32834
32938
|
}
|
32835
32939
|
if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
|
32836
|
-
setShowMwebLandscapePrompt(isLandscape);
|
32940
|
+
setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
|
32837
32941
|
return;
|
32838
32942
|
}
|
32839
32943
|
const handleRotation = () => {
|
32840
32944
|
const angle = window.screen.orientation.angle;
|
32841
32945
|
const type = window.screen.orientation.type || "";
|
32842
|
-
setShowMwebLandscapePrompt(
|
32946
|
+
setShowMwebLandscapePrompt(
|
32947
|
+
(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)
|
32948
|
+
);
|
32843
32949
|
};
|
32844
32950
|
handleRotation();
|
32845
32951
|
window.screen.orientation.addEventListener("change", handleRotation);
|
32846
32952
|
return () => {
|
32847
32953
|
window.screen.orientation.removeEventListener("change", handleRotation);
|
32848
32954
|
};
|
32849
|
-
}, [isLandscape]);
|
32955
|
+
}, [isLandscape, isLandscapeHLSStream]);
|
32850
32956
|
if (isLandscapeHLSStream) {
|
32851
32957
|
return null;
|
32852
32958
|
}
|
@@ -33358,7 +33464,7 @@ function PermissionErrorModal() {
|
|
33358
33464
|
const notification = (0, import_react_sdk111.useHMSNotifications)(import_react_sdk111.HMSNotificationTypes.ERROR);
|
33359
33465
|
const [deviceType, setDeviceType] = (0, import_react215.useState)("");
|
33360
33466
|
const [isSystemError, setIsSystemError] = (0, import_react215.useState)(false);
|
33361
|
-
const isMobile = (0,
|
33467
|
+
const isMobile = (0, import_react_use48.useMedia)(config.media.md);
|
33362
33468
|
(0, import_react215.useEffect)(() => {
|
33363
33469
|
var _a8, _b7, _c, _d, _e;
|
33364
33470
|
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 +33520,13 @@ function PermissionErrorModal() {
|
|
33414
33520
|
!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
33521
|
))) : null;
|
33416
33522
|
}
|
33417
|
-
var import_react215,
|
33523
|
+
var import_react215, import_react_use48, import_react_sdk111;
|
33418
33524
|
var init_PermissionErrorModal = __esm({
|
33419
33525
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
33420
33526
|
"use strict";
|
33421
33527
|
init_define_process_env();
|
33422
33528
|
import_react215 = __toESM(require("react"));
|
33423
|
-
|
33529
|
+
import_react_use48 = require("react-use");
|
33424
33530
|
import_react_sdk111 = require("@100mslive/react-sdk");
|
33425
33531
|
init_src();
|
33426
33532
|
init_android_perm_1();
|
@@ -33805,13 +33911,13 @@ var init_Notifications2 = __esm({
|
|
33805
33911
|
});
|
33806
33912
|
|
33807
33913
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
33808
|
-
var import_react221,
|
33914
|
+
var import_react221, import_react_use49, PreviewScreen;
|
33809
33915
|
var init_PreviewScreen = __esm({
|
33810
33916
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
|
33811
33917
|
"use strict";
|
33812
33918
|
init_define_process_env();
|
33813
33919
|
import_react221 = __toESM(require("react"));
|
33814
|
-
|
33920
|
+
import_react_use49 = require("react-use");
|
33815
33921
|
init_src();
|
33816
33922
|
init_AppContext();
|
33817
33923
|
init_roomLayoutProvider();
|
@@ -33824,7 +33930,7 @@ var init_PreviewScreen = __esm({
|
|
33824
33930
|
var _a8, _b7, _c;
|
33825
33931
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
33826
33932
|
const skipPreview = !isPreviewScreenEnabled;
|
33827
|
-
const previewAsRole = (0,
|
33933
|
+
const previewAsRole = (0, import_react_use49.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
33828
33934
|
const { userName } = useHMSPrebuiltContext();
|
33829
33935
|
const initialName = userName || (skipPreview ? "Beam" : "");
|
33830
33936
|
const authToken = useAuthToken();
|
@@ -33965,7 +34071,7 @@ function FlyingEmoji() {
|
|
33965
34071
|
const localPeerId = (0, import_react_sdk119.useHMSStore)(import_react_sdk119.selectLocalPeerID);
|
33966
34072
|
const vanillaStore = (0, import_react_sdk119.useHMSVanillaStore)();
|
33967
34073
|
const [emojis, setEmojis] = (0, import_react226.useState)([]);
|
33968
|
-
const isMobile = (0,
|
34074
|
+
const isMobile = (0, import_react_use50.useMedia)(config.media.md);
|
33969
34075
|
const startingPoints = (0, import_react226.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
33970
34076
|
const showFlyingEmoji = (0, import_react226.useCallback)(
|
33971
34077
|
({ emojiId, senderId }) => {
|
@@ -34057,13 +34163,13 @@ function FlyingEmoji() {
|
|
34057
34163
|
})
|
34058
34164
|
);
|
34059
34165
|
}
|
34060
|
-
var import_react226,
|
34166
|
+
var import_react226, import_react_use50, import_react_sdk119, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
34061
34167
|
var init_FlyingEmoji = __esm({
|
34062
34168
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
34063
34169
|
"use strict";
|
34064
34170
|
init_define_process_env();
|
34065
34171
|
import_react226 = __toESM(require("react"));
|
34066
|
-
|
34172
|
+
import_react_use50 = require("react-use");
|
34067
34173
|
import_react_sdk119 = require("@100mslive/react-sdk");
|
34068
34174
|
init_Layout();
|
34069
34175
|
init_Text2();
|