@100mslive/roomkit-react 0.3.3-alpha.0 → 0.3.3-alpha.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +1 -0
- package/dist/Accordion/index.d.ts +1 -0
- package/dist/{HLSView-NVF25XHT.js → HLSView-SYFDABFO.js} +331 -166
- package/dist/HLSView-SYFDABFO.js.map +7 -0
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/Modal/Dialog.d.ts +1 -1
- package/dist/Prebuilt/IconButton.d.ts +2 -3
- package/dist/Prebuilt/components/Footer/ChatToggle.d.ts +3 -1
- package/dist/Prebuilt/components/HMSVideo/PlayPauseButton.d.ts +2 -2
- package/dist/Prebuilt/components/HMSVideo/PlayPauseSeekControls.d.ts +14 -0
- package/dist/Prebuilt/components/HMSVideo/{SeekControls.d.ts → SeekControl.d.ts} +2 -2
- package/dist/Prebuilt/components/HMSVideo/index.d.ts +15 -11
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +2 -2
- package/dist/Prebuilt/components/VideoLayouts/WhiteboardLayout.d.ts +3 -0
- package/dist/Sheet/Sheet.d.ts +1 -1
- package/dist/{chunk-2V7F62FX.js → chunk-HIJ2DH6Q.js} +423 -404
- package/dist/chunk-HIJ2DH6Q.js.map +7 -0
- package/dist/index.cjs.js +1130 -931
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +208 -124
- package/dist/meta.esbuild.json +222 -137
- package/package.json +7 -7
- package/src/Accordion/Accordion.tsx +4 -4
- package/src/IconButton/IconButton.tsx +2 -7
- package/src/Prebuilt/IconButton.tsx +6 -10
- package/src/Prebuilt/components/Chat/ChatBody.tsx +10 -0
- package/src/Prebuilt/components/Footer/ChatToggle.tsx +2 -2
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +4 -1
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +6 -6
- package/src/Prebuilt/components/Footer/WhiteboardToggle.tsx +17 -3
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +1 -0
- package/src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx +2 -2
- package/src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx +158 -0
- package/src/Prebuilt/components/HMSVideo/{SeekControls.tsx → SeekControl.tsx} +2 -2
- package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +7 -3
- package/src/Prebuilt/components/HMSVideo/index.ts +5 -4
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx +9 -9
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +27 -4
- package/src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx +95 -0
- package/src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx +13 -5
- package/src/Prebuilt/layouts/HLSView.jsx +115 -78
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +1 -17
- package/dist/HLSView-NVF25XHT.js.map +0 -7
- package/dist/Prebuilt/layouts/WhiteboardView.d.ts +0 -2
- package/dist/chunk-2V7F62FX.js.map +0 -7
- package/src/Prebuilt/layouts/WhiteboardView.tsx +0 -69
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c141a2c0-32b5-4eb1-9121-895143e951e6", 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.22 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.3-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c141a2c0-32b5-4eb1-9121-895143e951e6", 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.3-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "601", 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.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240310.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.1/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:20031", 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.3-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8295361424", 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: "23e3bf90410ae16869b67438ac403cba6027db98", 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: "febdcd611bd2e7b71c95773975a838963da6d830e4eb4ca2aaad2680a9697a39", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710501539063-0.8992863326107012:/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--1710501538840-0.4644413486761725:/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--1710501517171-0.06504511434237248:/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--1710501516997-0.10551021203929101:/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_66b9242f-a1e3-45f9-b76e-814147f38a5f", INVOCATION_ID: "62606dcd62ad4362bca459c2f50d146f", 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: "481", 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 55", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "23e3bf90410ae16869b67438ac403cba6027db98", 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_c141a2c0-32b5-4eb1-9121-895143e951e6", 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_c141a2c0-32b5-4eb1-9121-895143e951e6", 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_c141a2c0-32b5-4eb1-9121-895143e951e6" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_386d3024-f9d7-43fd-b294-56d3480d189e", 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.22 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.3-alpha.10", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_386d3024-f9d7-43fd-b294-56d3480d189e", 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.3-alpha.10", 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: "593", 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.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.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.1/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.5", 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:19280", 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.3-alpha.10", 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: "8388700422", 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: "5164a4d05ffa194988cb560db7db95405fa39052", 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: "a0271f0537dfefc4c8e68644b9fa952214a3418d155d38329369583127fbc7f0", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1711102417718-0.042317157711200704:/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--1711102417519-0.5408923804987171:/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--1711102395972-0.5326802314517078:/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--1711102395794-0.7931289859881143:/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_809ef781-6d59-486b-b1f2-8b9001161c15", INVOCATION_ID: "63fe1922a7c64efab404153b7cd6c1ad", 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: "493", 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 111", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.10", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.10", 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: "5164a4d05ffa194988cb560db7db95405fa39052", 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_386d3024-f9d7-43fd-b294-56d3480d189e", 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_386d3024-f9d7-43fd-b294-56d3480d189e", 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_386d3024-f9d7-43fd-b294-56d3480d189e" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -4148,7 +4148,7 @@ var require_lodash = __commonJS({
|
|
4148
4148
|
function eq(value, other) {
|
4149
4149
|
return value === other || value !== value && other !== other;
|
4150
4150
|
}
|
4151
|
-
var
|
4151
|
+
var gt2 = createRelationalOperation(baseGt);
|
4152
4152
|
var gte = createRelationalOperation(function(value, other) {
|
4153
4153
|
return value >= other;
|
4154
4154
|
});
|
@@ -5287,7 +5287,7 @@ var require_lodash = __commonJS({
|
|
5287
5287
|
lodash.forOwn = forOwn;
|
5288
5288
|
lodash.forOwnRight = forOwnRight;
|
5289
5289
|
lodash.get = get;
|
5290
|
-
lodash.gt =
|
5290
|
+
lodash.gt = gt2;
|
5291
5291
|
lodash.gte = gte;
|
5292
5292
|
lodash.has = has;
|
5293
5293
|
lodash.hasIn = hasIn;
|
@@ -6826,18 +6826,18 @@ var require_ua_parser = __commonJS({
|
|
6826
6826
|
window2.UAParser = UAParser;
|
6827
6827
|
}
|
6828
6828
|
}
|
6829
|
-
var $
|
6830
|
-
if ($
|
6829
|
+
var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
|
6830
|
+
if ($ && !$.ua) {
|
6831
6831
|
var parser = new UAParser();
|
6832
|
-
|
6833
|
-
|
6832
|
+
$.ua = parser.getResult();
|
6833
|
+
$.ua.get = function() {
|
6834
6834
|
return parser.getUA();
|
6835
6835
|
};
|
6836
|
-
|
6836
|
+
$.ua.set = function(ua) {
|
6837
6837
|
parser.setUA(ua);
|
6838
6838
|
var result = parser.getResult();
|
6839
6839
|
for (var prop in result) {
|
6840
|
-
|
6840
|
+
$.ua[prop] = result[prop];
|
6841
6841
|
}
|
6842
6842
|
};
|
6843
6843
|
}
|
@@ -7670,12 +7670,12 @@ var require_sdp = __commonJS({
|
|
7670
7670
|
return parsed;
|
7671
7671
|
};
|
7672
7672
|
SDPUtils2.writeRtpMap = function(codec) {
|
7673
|
-
let
|
7673
|
+
let pt2 = codec.payloadType;
|
7674
7674
|
if (codec.preferredPayloadType !== void 0) {
|
7675
|
-
|
7675
|
+
pt2 = codec.preferredPayloadType;
|
7676
7676
|
}
|
7677
7677
|
const channels = codec.channels || codec.numChannels || 1;
|
7678
|
-
return "a=rtpmap:" +
|
7678
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
7679
7679
|
};
|
7680
7680
|
SDPUtils2.parseExtmap = function(line) {
|
7681
7681
|
const parts = line.substring(9).split(" ");
|
@@ -7701,9 +7701,9 @@ var require_sdp = __commonJS({
|
|
7701
7701
|
};
|
7702
7702
|
SDPUtils2.writeFmtp = function(codec) {
|
7703
7703
|
let line = "";
|
7704
|
-
let
|
7704
|
+
let pt2 = codec.payloadType;
|
7705
7705
|
if (codec.preferredPayloadType !== void 0) {
|
7706
|
-
|
7706
|
+
pt2 = codec.preferredPayloadType;
|
7707
7707
|
}
|
7708
7708
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
7709
7709
|
const params = [];
|
@@ -7714,7 +7714,7 @@ var require_sdp = __commonJS({
|
|
7714
7714
|
params.push(param);
|
7715
7715
|
}
|
7716
7716
|
});
|
7717
|
-
line += "a=fmtp:" +
|
7717
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
7718
7718
|
}
|
7719
7719
|
return line;
|
7720
7720
|
};
|
@@ -7727,13 +7727,13 @@ var require_sdp = __commonJS({
|
|
7727
7727
|
};
|
7728
7728
|
SDPUtils2.writeRtcpFb = function(codec) {
|
7729
7729
|
let lines = "";
|
7730
|
-
let
|
7730
|
+
let pt2 = codec.payloadType;
|
7731
7731
|
if (codec.preferredPayloadType !== void 0) {
|
7732
|
-
|
7732
|
+
pt2 = codec.preferredPayloadType;
|
7733
7733
|
}
|
7734
7734
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
7735
7735
|
codec.rtcpFeedback.forEach((fb) => {
|
7736
|
-
lines += "a=rtcp-fb:" +
|
7736
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
7737
7737
|
});
|
7738
7738
|
}
|
7739
7739
|
return lines;
|
@@ -7861,21 +7861,21 @@ var require_sdp = __commonJS({
|
|
7861
7861
|
const mline = lines[0].split(" ");
|
7862
7862
|
description.profile = mline[2];
|
7863
7863
|
for (let i = 3; i < mline.length; i++) {
|
7864
|
-
const
|
7864
|
+
const pt2 = mline[i];
|
7865
7865
|
const rtpmapline = SDPUtils2.matchPrefix(
|
7866
7866
|
mediaSection,
|
7867
|
-
"a=rtpmap:" +
|
7867
|
+
"a=rtpmap:" + pt2 + " "
|
7868
7868
|
)[0];
|
7869
7869
|
if (rtpmapline) {
|
7870
7870
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
7871
7871
|
const fmtps = SDPUtils2.matchPrefix(
|
7872
7872
|
mediaSection,
|
7873
|
-
"a=fmtp:" +
|
7873
|
+
"a=fmtp:" + pt2 + " "
|
7874
7874
|
);
|
7875
7875
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
7876
7876
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
7877
7877
|
mediaSection,
|
7878
|
-
"a=rtcp-fb:" +
|
7878
|
+
"a=rtcp-fb:" + pt2 + " "
|
7879
7879
|
).map(SDPUtils2.parseRtcpFb);
|
7880
7880
|
description.codecs.push(codec);
|
7881
7881
|
switch (codec.name.toUpperCase()) {
|
@@ -9827,20 +9827,15 @@ var IconButton = styled("button", __spreadProps(__spreadValues({}, flexCenter),
|
|
9827
9827
|
},
|
9828
9828
|
"&[disabled]": {
|
9829
9829
|
opacity: 0.5,
|
9830
|
-
cursor: "not-allowed"
|
9830
|
+
cursor: "not-allowed",
|
9831
|
+
backgroundColor: "$secondary_dim",
|
9832
|
+
color: "$on_primary_high"
|
9831
9833
|
},
|
9832
9834
|
"&:focus": {
|
9833
9835
|
outline: "none"
|
9834
9836
|
},
|
9835
9837
|
variants: {
|
9836
9838
|
active: {
|
9837
|
-
false: {
|
9838
|
-
backgroundColor: "$secondary_dim",
|
9839
|
-
color: "$on_primary_high",
|
9840
|
-
"&:not([disabled]):hover": {
|
9841
|
-
backgroundColor: "$secondary_default"
|
9842
|
-
}
|
9843
|
-
},
|
9844
9839
|
true: {
|
9845
9840
|
"&:not([disabled]):hover": {
|
9846
9841
|
backgroundColor: "$on_surface_low"
|
@@ -11617,8 +11612,8 @@ var StyledChevron = styled(ChevronUpIcon, {
|
|
11617
11612
|
var AccordionRoot = StyledAccordion;
|
11618
11613
|
var AccordionItem = StyledItem;
|
11619
11614
|
var AccordionHeader = React17.forwardRef((_a8, forwardedRef) => {
|
11620
|
-
var _b7 = _a8, { children, iconStyles, css: css2 } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css"]);
|
11621
|
-
return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "aria-hidden": true, css: iconStyles })));
|
11615
|
+
var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
|
11616
|
+
return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
|
11622
11617
|
});
|
11623
11618
|
var AccordionContent = React17.forwardRef(
|
11624
11619
|
(_a8, forwardedRef) => {
|
@@ -12952,21 +12947,17 @@ var IconButton2 = styled(IconButton, {
|
|
12952
12947
|
border: "1px solid $border_bright",
|
12953
12948
|
bg: "$background_dim",
|
12954
12949
|
r: "$1",
|
12950
|
+
"&[disabled]": {
|
12951
|
+
opacity: 0.5,
|
12952
|
+
cursor: "not-allowed",
|
12953
|
+
backgroundColor: "$secondary_dim",
|
12954
|
+
color: "$on_primary_high"
|
12955
|
+
},
|
12955
12956
|
variants: {
|
12956
12957
|
active: {
|
12957
12958
|
true: {
|
12958
12959
|
color: "$on_surface_high",
|
12959
12960
|
backgroundColor: "transparent"
|
12960
|
-
},
|
12961
|
-
false: {
|
12962
|
-
border: "1px solid transparent",
|
12963
|
-
color: "$on_primary_high"
|
12964
|
-
}
|
12965
|
-
},
|
12966
|
-
disabled: {
|
12967
|
-
true: {
|
12968
|
-
backgroundColor: "$surface_brighter",
|
12969
|
-
color: "$on_surface_low"
|
12970
12961
|
}
|
12971
12962
|
}
|
12972
12963
|
}
|
@@ -12992,23 +12983,23 @@ var IconSection = styled(IconButton_default, {
|
|
12992
12983
|
p: "$4",
|
12993
12984
|
r: "$1",
|
12994
12985
|
bg: "transparent",
|
12995
|
-
borderTopRightRadius: 0,
|
12986
|
+
borderTopRightRadius: "0 !important",
|
12996
12987
|
borderColor: "$border_bright",
|
12997
|
-
borderBottomRightRadius: 0,
|
12988
|
+
borderBottomRightRadius: "0 !important",
|
12998
12989
|
position: "relative",
|
12999
12990
|
"&:not([disabled]):focus-visible": {
|
13000
12991
|
zIndex: 1
|
13001
12992
|
},
|
13002
12993
|
"@md": {
|
13003
12994
|
mx: 0,
|
13004
|
-
borderTopRightRadius: "$1",
|
13005
|
-
borderBottomRightRadius: "$1"
|
12995
|
+
borderTopRightRadius: "$1 !important",
|
12996
|
+
borderBottomRightRadius: "$1 !important"
|
13006
12997
|
},
|
13007
12998
|
variants: __spreadProps(__spreadValues({}, variants), {
|
13008
12999
|
hideOptions: {
|
13009
13000
|
true: {
|
13010
|
-
borderTopRightRadius: "$1",
|
13011
|
-
borderBottomRightRadius: "$1"
|
13001
|
+
borderTopRightRadius: "$1 !important",
|
13002
|
+
borderBottomRightRadius: "$1 !important"
|
13012
13003
|
}
|
13013
13004
|
}
|
13014
13005
|
})
|
@@ -13018,10 +13009,10 @@ var OptionsSection = styled(IconButton_default, {
|
|
13018
13009
|
h: "$14",
|
13019
13010
|
p: "$4 $2",
|
13020
13011
|
r: "$1",
|
13021
|
-
borderTopLeftRadius: 0,
|
13012
|
+
borderTopLeftRadius: "0 !important",
|
13022
13013
|
borderColor: "$border_bright",
|
13023
|
-
borderBottomLeftRadius: 0,
|
13024
|
-
borderLeftWidth: 0,
|
13014
|
+
borderBottomLeftRadius: "0 !important",
|
13015
|
+
borderLeftWidth: "0 !important",
|
13025
13016
|
position: "relative",
|
13026
13017
|
"&:not([disabled]):focus-visible": {
|
13027
13018
|
zIndex: 1
|
@@ -16366,7 +16357,7 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
16366
16357
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
16367
16358
|
var import_lodash3 = __toESM(require_lodash2());
|
16368
16359
|
import { v4 as qa } from "uuid";
|
16369
|
-
import { v4 as
|
16360
|
+
import { v4 as $a } from "uuid";
|
16370
16361
|
|
16371
16362
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
16372
16363
|
init_define_process_env();
|
@@ -18467,9 +18458,9 @@ import { v4 as io } from "uuid";
|
|
18467
18458
|
import { v4 as oo } from "uuid";
|
18468
18459
|
import { v4 as uo } from "uuid";
|
18469
18460
|
import { EventEmitter2 as po } from "eventemitter2";
|
18470
|
-
var
|
18461
|
+
var wt = __toESM(require_lib());
|
18471
18462
|
import { EventEmitter2 as Co } from "eventemitter2";
|
18472
|
-
import { v4 as
|
18463
|
+
import { v4 as Do } from "uuid";
|
18473
18464
|
import { EventEmitter2 as _o } from "eventemitter2";
|
18474
18465
|
import No from "eventemitter2";
|
18475
18466
|
import { v4 as Oo } from "uuid";
|
@@ -18479,14 +18470,14 @@ var Pa = Object.defineProperties;
|
|
18479
18470
|
var Ea = Object.getOwnPropertyDescriptors;
|
18480
18471
|
var Vt = Object.getOwnPropertySymbols;
|
18481
18472
|
var Wr = Object.prototype.hasOwnProperty;
|
18482
|
-
var
|
18483
|
-
var
|
18484
|
-
var
|
18473
|
+
var $r = Object.prototype.propertyIsEnumerable;
|
18474
|
+
var Gr = (a2, e, t) => e in a2 ? ka(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
18475
|
+
var S = (a2, e) => {
|
18485
18476
|
for (var t in e || (e = {}))
|
18486
|
-
Wr.call(e, t) &&
|
18477
|
+
Wr.call(e, t) && Gr(a2, t, e[t]);
|
18487
18478
|
if (Vt)
|
18488
18479
|
for (var t of Vt(e))
|
18489
|
-
|
18480
|
+
$r.call(e, t) && Gr(a2, t, e[t]);
|
18490
18481
|
return a2;
|
18491
18482
|
};
|
18492
18483
|
var v = (a2, e) => Pa(a2, Ea(e));
|
@@ -18496,49 +18487,49 @@ var Xi = (a2, e) => {
|
|
18496
18487
|
Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
18497
18488
|
if (a2 != null && Vt)
|
18498
18489
|
for (var i of Vt(a2))
|
18499
|
-
e.indexOf(i) < 0 &&
|
18490
|
+
e.indexOf(i) < 0 && $r.call(a2, i) && (t[i] = a2[i]);
|
18500
18491
|
return t;
|
18501
18492
|
};
|
18502
18493
|
var Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18503
|
-
var lr = Ia((
|
18504
|
-
Ka.exports = { version: "0.12.3-alpha.
|
18494
|
+
var lr = Ia((td, Ka) => {
|
18495
|
+
Ka.exports = { version: "0.12.3-alpha.10", 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"] };
|
18505
18496
|
});
|
18506
18497
|
var Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
|
18507
18498
|
var Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
|
18508
|
-
var
|
18499
|
+
var Kr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Kr || {});
|
18509
18500
|
var er = ((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))(er || {});
|
18510
|
-
var
|
18501
|
+
var qr = ((t) => (t.audio = "audio", t.video = "video", t))(qr || {});
|
18511
18502
|
function He(a2, e) {
|
18512
18503
|
let t, i;
|
18513
18504
|
if (e)
|
18514
18505
|
for (let r of e.auxiliaryTracks) {
|
18515
18506
|
let s = a2[r];
|
18516
|
-
Ha(s) && (i =
|
18507
|
+
Ha(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
|
18517
18508
|
}
|
18518
18509
|
return { video: t, audio: i };
|
18519
18510
|
}
|
18520
|
-
function
|
18511
|
+
function tt(a2) {
|
18521
18512
|
return a2 && a2.type === "audio";
|
18522
18513
|
}
|
18523
|
-
function
|
18514
|
+
function it(a2) {
|
18524
18515
|
return a2 && a2.type === "video";
|
18525
18516
|
}
|
18526
18517
|
function Ha(a2) {
|
18527
18518
|
return a2 && a2.source === "screen";
|
18528
18519
|
}
|
18529
|
-
function
|
18520
|
+
function Wt(a2) {
|
18530
18521
|
return a2 && a2.source === "audioplaylist";
|
18531
18522
|
}
|
18532
|
-
function
|
18523
|
+
function rt(a2) {
|
18533
18524
|
return a2 && a2.source === "videoplaylist";
|
18534
18525
|
}
|
18535
|
-
function
|
18526
|
+
function jr(a2) {
|
18536
18527
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
18537
18528
|
}
|
18538
18529
|
function Ue(a2, e) {
|
18539
18530
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
18540
18531
|
}
|
18541
|
-
function
|
18532
|
+
function st(a2) {
|
18542
18533
|
var r;
|
18543
18534
|
let e = false, t = false, i = false;
|
18544
18535
|
return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
|
@@ -18548,24 +18539,24 @@ var Ca = (a2) => a2.errors;
|
|
18548
18539
|
var Rn = createSelector(Ca, (a2) => a2.length === 0 ? null : a2.at(-1));
|
18549
18540
|
var Hn = createSelector(B, (a2) => a2.id);
|
18550
18541
|
var G = (a2) => a2.peers;
|
18551
|
-
var
|
18552
|
-
var
|
18553
|
-
var
|
18542
|
+
var $t = (a2) => a2.messages.byID;
|
18543
|
+
var Qr = (a2) => a2.messages.allIDs;
|
18544
|
+
var D = (a2) => a2.tracks;
|
18554
18545
|
var tr = (a2) => a2.appData;
|
18555
18546
|
var La = (a2) => a2.speakers;
|
18556
18547
|
var ye = createSelector([B], (a2) => a2 && a2.isConnected);
|
18557
|
-
var
|
18558
|
-
var
|
18559
|
-
var oe = createSelector([B, G,
|
18560
|
-
var
|
18548
|
+
var wn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
18549
|
+
var wa = (a2) => a2.hideLocalPeer;
|
18550
|
+
var oe = createSelector([B, G, wa], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
18551
|
+
var Da = createSelector(D, (a2) => Object.values(a2));
|
18561
18552
|
var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
|
18562
18553
|
var ue = createSelector(B, (a2) => a2.localPeer);
|
18563
|
-
var
|
18554
|
+
var Dn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
|
18564
18555
|
var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
|
18565
18556
|
var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
18566
18557
|
var K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
18567
18558
|
var _a7 = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
18568
|
-
var
|
18559
|
+
var Yr = createSelector([Z, K, _a7], (a2, e, t) => {
|
18569
18560
|
let i = t ? [...t] : [];
|
18570
18561
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
18571
18562
|
});
|
@@ -18583,11 +18574,11 @@ var On = createSelector(G, La, (a2, e) => {
|
|
18583
18574
|
}
|
18584
18575
|
return null;
|
18585
18576
|
});
|
18586
|
-
var rr = createSelector(z,
|
18577
|
+
var rr = createSelector(z, D, (a2, e) => {
|
18587
18578
|
let { video: t, audio: i } = He(e, a2);
|
18588
18579
|
return !!(t || i);
|
18589
18580
|
});
|
18590
|
-
var Na = createSelector(G,
|
18581
|
+
var Na = createSelector(G, D, (a2, e) => {
|
18591
18582
|
let t;
|
18592
18583
|
for (let i in a2) {
|
18593
18584
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -18598,14 +18589,14 @@ var Na = createSelector(G, w, (a2, e) => {
|
|
18598
18589
|
return t;
|
18599
18590
|
});
|
18600
18591
|
var Un = createSelector(Na, (a2) => !!a2);
|
18601
|
-
var Bn = createSelector(G,
|
18592
|
+
var Bn = createSelector(G, D, (a2, e) => {
|
18602
18593
|
for (let t in a2) {
|
18603
18594
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
18604
18595
|
if (!s && r)
|
18605
18596
|
return i;
|
18606
18597
|
}
|
18607
18598
|
});
|
18608
|
-
var Vn = createSelector(G,
|
18599
|
+
var Vn = createSelector(G, D, (a2, e) => {
|
18609
18600
|
let t = [], i = [];
|
18610
18601
|
for (let r in a2) {
|
18611
18602
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -18613,36 +18604,36 @@ var Vn = createSelector(G, w, (a2, e) => {
|
|
18613
18604
|
}
|
18614
18605
|
return t.concat(i);
|
18615
18606
|
});
|
18616
|
-
var Fn = createSelector(G,
|
18607
|
+
var Fn = createSelector(G, D, (a2, e) => {
|
18617
18608
|
for (let t in e) {
|
18618
18609
|
let i = e[t];
|
18619
|
-
if (
|
18610
|
+
if (rt(i) && it(i) && i.peerId)
|
18620
18611
|
return a2[i.peerId];
|
18621
18612
|
}
|
18622
18613
|
});
|
18623
|
-
var Gn = createSelector(G,
|
18614
|
+
var Gn = createSelector(G, D, (a2, e) => {
|
18624
18615
|
for (let t in e) {
|
18625
18616
|
let i = e[t];
|
18626
|
-
if (
|
18617
|
+
if (Wt(i) && i.peerId)
|
18627
18618
|
return a2[i.peerId];
|
18628
18619
|
}
|
18629
18620
|
});
|
18630
|
-
var
|
18631
|
-
var
|
18632
|
-
var Kn = createSelector(
|
18633
|
-
var
|
18621
|
+
var Wn = createSelector(Da, (a2) => a2.filter(jr));
|
18622
|
+
var $n = createSelector(Qr, (a2) => a2.length);
|
18623
|
+
var Kn = createSelector($t, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
18624
|
+
var at = createSelector(Qr, $t, (a2, e) => {
|
18634
18625
|
let t = [];
|
18635
18626
|
return a2.forEach((i) => {
|
18636
18627
|
t.push(e[i]);
|
18637
18628
|
}), t;
|
18638
18629
|
});
|
18639
|
-
var Oa = createSelector(
|
18630
|
+
var Oa = createSelector(at, (a2) => a2.filter((e) => {
|
18640
18631
|
var t;
|
18641
18632
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
18642
18633
|
}));
|
18643
18634
|
var qn = createSelector(Oa, (a2) => a2.filter((e) => !e.read).length);
|
18644
18635
|
var Y = createSelector([B], (a2) => a2 && a2.roomState);
|
18645
|
-
var
|
18636
|
+
var Zr = createSelector(Y, (a2) => a2 === "Preview");
|
18646
18637
|
var jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
18647
18638
|
var ne = (a2) => a2.roles;
|
18648
18639
|
var Jn = createSelector([ne], (a2) => Object.keys(a2));
|
@@ -18651,12 +18642,12 @@ var xa = (a2) => {
|
|
18651
18642
|
var e;
|
18652
18643
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
18653
18644
|
};
|
18654
|
-
var
|
18645
|
+
var es = createSelector([xa, ne], (a2, e) => a2 ? e[a2] : null);
|
18655
18646
|
var Qn = createSelector([Kt], (a2) => {
|
18656
18647
|
var e;
|
18657
18648
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
18658
18649
|
});
|
18659
|
-
var
|
18650
|
+
var ts = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
|
18660
18651
|
var zn = createSelector(B, (a2) => a2.recording);
|
18661
18652
|
var Yn = createSelector(B, (a2) => a2.rtmp);
|
18662
18653
|
var Xn = createSelector(B, (a2) => a2.hls);
|
@@ -18665,27 +18656,27 @@ var ec = createSelector(B, (a2) => a2.startedAt);
|
|
18665
18656
|
var tc = createSelector(B, (a2) => !!a2.isLargeRoom);
|
18666
18657
|
var ic = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
18667
18658
|
var rc = createSelector(B, (a2) => a2.effectsKey);
|
18668
|
-
var
|
18659
|
+
var is = (a2) => a2.polls;
|
18669
18660
|
var nc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
|
18670
18661
|
var Ua = (a2) => a2.whiteboards;
|
18671
18662
|
var cc = createSelector(Ua, (a2) => Object.values(a2)[0]);
|
18672
|
-
var
|
18663
|
+
var ss = (a2 = "audio") => (e) => e.playlist[a2].list;
|
18673
18664
|
var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
18674
|
-
var
|
18675
|
-
var
|
18676
|
-
var
|
18677
|
-
var
|
18678
|
-
var
|
18679
|
-
var
|
18665
|
+
var as = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
18666
|
+
var os = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
18667
|
+
var ns = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
18668
|
+
var cs = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
18669
|
+
var ds = (a2 = "audio") => createSelector(ss(a2), (e) => Object.values(e));
|
18670
|
+
var ls = (a2 = "audio") => createSelector(ss(a2), sr(a2), (e, t) => {
|
18680
18671
|
if (t.id)
|
18681
18672
|
return e[t.id];
|
18682
18673
|
});
|
18683
|
-
var
|
18684
|
-
var
|
18685
|
-
function
|
18674
|
+
var us = { selection: sr("audio"), progress: as("audio"), currentTime: os("audio"), playbackRate: ns("audio"), volume: cs("audio"), list: ds("audio"), selectedItem: ls("audio") };
|
18675
|
+
var ps = { selection: sr("video"), progress: as("video"), currentTime: os("video"), playbackRate: ns("video"), volume: cs("video"), list: ds("video"), selectedItem: ls("video") };
|
18676
|
+
function I(a2) {
|
18686
18677
|
return (e) => (t) => a2(t, e);
|
18687
18678
|
}
|
18688
|
-
var
|
18679
|
+
var hs = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(hs || {});
|
18689
18680
|
var Ba = typeof window != "undefined" && typeof window.expect != "undefined";
|
18690
18681
|
var d = class {
|
18691
18682
|
static v(e, ...t) {
|
@@ -18755,13 +18746,14 @@ var d = class {
|
|
18755
18746
|
d.level = Ba ? 7 : 0;
|
18756
18747
|
var pe = new import_ua_parser_js.UAParser();
|
18757
18748
|
var _ = typeof window != "undefined";
|
18758
|
-
var
|
18759
|
-
var Ce = typeof window == "undefined" && !((
|
18749
|
+
var ms;
|
18750
|
+
var Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
18760
18751
|
var Fa = () => !Ce;
|
18761
18752
|
var gc = Fa();
|
18753
|
+
var Ss;
|
18762
18754
|
var gs;
|
18763
|
-
var
|
18764
|
-
var vs = ((
|
18755
|
+
var fs = ((gs = (Ss = pe.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
|
18756
|
+
var vs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(vs || {});
|
18765
18757
|
function Ga() {
|
18766
18758
|
if (_ && window) {
|
18767
18759
|
let a2 = window.location.hostname;
|
@@ -18800,8 +18792,8 @@ var f = class a extends Error {
|
|
18800
18792
|
}`;
|
18801
18793
|
}
|
18802
18794
|
};
|
18803
|
-
var
|
18804
|
-
var
|
18795
|
+
var Wa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
18796
|
+
var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
18805
18797
|
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
18806
18798
|
}, WebSocketConnectionLost(a2, e = "") {
|
18807
18799
|
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
|
@@ -18860,7 +18852,7 @@ var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
18860
18852
|
}, StatsFailed(a2, e = "") {
|
18861
18853
|
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
18862
18854
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
18863
|
-
return new f(a2, "ServerErrors", e, t, t,
|
18855
|
+
return new f(a2, "ServerErrors", e, t, t, Wa.includes(e));
|
18864
18856
|
}, AlreadyJoined(a2, e = "") {
|
18865
18857
|
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
18866
18858
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
@@ -18937,7 +18929,7 @@ var Ms = () => {
|
|
18937
18929
|
try {
|
18938
18930
|
_ && !localStorage && (window.localStorage = new nr());
|
18939
18931
|
} catch (a2) {
|
18940
|
-
d.e("Error initialising localStorage",
|
18932
|
+
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
18941
18933
|
}
|
18942
18934
|
};
|
18943
18935
|
var ce = class {
|
@@ -18949,7 +18941,7 @@ var ce = class {
|
|
18949
18941
|
try {
|
18950
18942
|
return _ && !this.storage && (Ms(), this.storage = window.localStorage), this.storage;
|
18951
18943
|
} catch (e) {
|
18952
|
-
return d.e("Error initialising localStorage",
|
18944
|
+
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
18953
18945
|
}
|
18954
18946
|
}
|
18955
18947
|
get() {
|
@@ -18969,13 +18961,13 @@ var ce = class {
|
|
18969
18961
|
};
|
18970
18962
|
var ys = () => {
|
18971
18963
|
let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
|
18972
|
-
return t ? a2 = t : (a2 =
|
18964
|
+
return t ? a2 = t : (a2 = $a(), e.set(a2)), a2;
|
18973
18965
|
};
|
18974
18966
|
function ie(a2) {
|
18975
18967
|
return a2 != null;
|
18976
18968
|
}
|
18977
18969
|
var Ps = lr().version;
|
18978
|
-
function
|
18970
|
+
function ot(a2 = "prod", e) {
|
18979
18971
|
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
18980
18972
|
if (Ce)
|
18981
18973
|
return Es({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ps, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
@@ -18988,49 +18980,16 @@ function ur(a2) {
|
|
18988
18980
|
var Es = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
18989
18981
|
var R = class {
|
18990
18982
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
18991
|
-
this.metadata = { peer: {}, userAgent:
|
18983
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
18992
18984
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = qa(), this.device_id = ys();
|
18993
18985
|
}
|
18994
18986
|
toSignalParams() {
|
18995
|
-
return { name: this.name, info: v(
|
18996
|
-
}
|
18997
|
-
};
|
18998
|
-
var pr = class {
|
18999
|
-
constructor() {
|
19000
|
-
this.pluginUsage = /* @__PURE__ */ new Map();
|
19001
|
-
this.pluginLastAddedAt = /* @__PURE__ */ new Map();
|
19002
|
-
this.getPluginUsage = (e, t) => {
|
19003
|
-
let i = `${t}-${e}`;
|
19004
|
-
if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
|
19005
|
-
let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
|
19006
|
-
this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
|
19007
|
-
}
|
19008
|
-
return this.pluginUsage.get(i);
|
19009
|
-
};
|
19010
|
-
this.updatePluginUsageData = (e, t) => {
|
19011
|
-
if (e.name === "transport.leave") {
|
19012
|
-
this.cleanup(t);
|
19013
|
-
return;
|
19014
|
-
}
|
19015
|
-
let i = e.properties.plugin_name, r = `${t}-${i}`;
|
19016
|
-
if (e.name === "mediaPlugin.added") {
|
19017
|
-
let s = e.properties.added_at;
|
19018
|
-
this.pluginLastAddedAt.set(r, s);
|
19019
|
-
} else if (e.name === "mediaPlugin.stats") {
|
19020
|
-
let s = e.properties.duration;
|
19021
|
-
s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
|
19022
|
-
}
|
19023
|
-
};
|
19024
|
-
this.cleanup = (e) => {
|
19025
|
-
for (let t of this.pluginUsage.keys())
|
19026
|
-
e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
|
19027
|
-
};
|
18987
|
+
return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
19028
18988
|
}
|
19029
18989
|
};
|
19030
|
-
var Fe = new pr();
|
19031
18990
|
var y = class {
|
19032
18991
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
19033
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(
|
18992
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(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);
|
19034
18993
|
return new R({ name: o, level: n, properties: l });
|
19035
18994
|
}
|
19036
18995
|
static disconnect(e, t) {
|
@@ -19044,7 +19003,7 @@ var y = class {
|
|
19044
19003
|
}
|
19045
19004
|
static join(i) {
|
19046
19005
|
var r = i, { error: e } = r, t = Xi(r, ["error"]);
|
19047
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(
|
19006
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
19048
19007
|
return new R({ name: s, level: o, properties: n });
|
19049
19008
|
}
|
19050
19009
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -19087,7 +19046,7 @@ var y = class {
|
|
19087
19046
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
19088
19047
|
if (!t && e.degradedAt instanceof Date) {
|
19089
19048
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
19090
|
-
s = v(
|
19049
|
+
s = v(S({}, s), { duration: n, restoredAt: o });
|
19091
19050
|
}
|
19092
19051
|
return new R({ name: i, level: r, properties: s });
|
19093
19052
|
}
|
@@ -19105,25 +19064,21 @@ var y = class {
|
|
19105
19064
|
return new R({ name: "subscriber.stats", level: 1, properties: e });
|
19106
19065
|
}
|
19107
19066
|
static getKrispUsage(e) {
|
19108
|
-
|
19109
|
-
return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
|
19110
|
-
}
|
19111
|
-
static transportLeave() {
|
19112
|
-
return new R({ name: "transport.leave", level: 1, properties: {} });
|
19067
|
+
return new R({ name: "krisp.usage", level: 1, properties: { duration: e } });
|
19113
19068
|
}
|
19114
19069
|
static eventNameFor(e, t) {
|
19115
19070
|
return `${e}.${t ? "success" : "failed"}`;
|
19116
19071
|
}
|
19117
19072
|
static getPropertiesWithError(e, t) {
|
19118
19073
|
let i = this.getErrorProperties(t);
|
19119
|
-
return e =
|
19074
|
+
return e = S(S({}, i), e), e;
|
19120
19075
|
}
|
19121
19076
|
static getErrorProperties(e) {
|
19122
19077
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
19123
19078
|
}
|
19124
19079
|
};
|
19125
19080
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
19126
|
-
var
|
19081
|
+
var pr = class {
|
19127
19082
|
constructor() {
|
19128
19083
|
this.storage = new ce("hms-device-selection");
|
19129
19084
|
this.remember = false;
|
@@ -19157,9 +19112,9 @@ var hr = class {
|
|
19157
19112
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
19158
19113
|
}
|
19159
19114
|
};
|
19160
|
-
var q = new
|
19161
|
-
var
|
19162
|
-
var
|
19115
|
+
var q = new pr();
|
19116
|
+
var hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
|
19117
|
+
var mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
|
19163
19118
|
function Jt(a2, e = 300) {
|
19164
19119
|
let t;
|
19165
19120
|
return function(...i) {
|
@@ -19172,8 +19127,8 @@ function Jt(a2, e = 300) {
|
|
19172
19127
|
}
|
19173
19128
|
var Cs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Cs || {});
|
19174
19129
|
var Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
|
19175
|
-
var
|
19176
|
-
var
|
19130
|
+
var ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ws || {});
|
19131
|
+
var Sr = class {
|
19177
19132
|
constructor() {
|
19178
19133
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
19179
19134
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19200,8 +19155,8 @@ var gr = class {
|
|
19200
19155
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
19201
19156
|
}
|
19202
19157
|
};
|
19203
|
-
var Os = new
|
19204
|
-
var
|
19158
|
+
var Os = new Sr();
|
19159
|
+
var gr = class {
|
19205
19160
|
constructor() {
|
19206
19161
|
this.TAG = "[HMSResizeObserverWrapper]";
|
19207
19162
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19228,16 +19183,16 @@ var Tr = class {
|
|
19228
19183
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
19229
19184
|
}
|
19230
19185
|
};
|
19231
|
-
var xs = new
|
19232
|
-
var
|
19233
|
-
var
|
19186
|
+
var xs = new gr();
|
19187
|
+
var Tr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Tr || {});
|
19188
|
+
var fr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(fr || {});
|
19234
19189
|
var Vs = "https://event.100ms.live/v2/client/report";
|
19235
19190
|
var Fs = "https://event-nonprod.100ms.live/v2/client/report";
|
19236
|
-
var
|
19237
|
-
var
|
19191
|
+
var pt = Math.pow(2, 31) - 1;
|
19192
|
+
var Qe = class {
|
19238
19193
|
};
|
19239
|
-
|
19240
|
-
var
|
19194
|
+
Qe.makePeerId = () => uo();
|
19195
|
+
var gt = "HMS-Store:";
|
19241
19196
|
var k = class {
|
19242
19197
|
static v(e, ...t) {
|
19243
19198
|
this.log(0, e, ...t);
|
@@ -19267,23 +19222,23 @@ var k = class {
|
|
19267
19222
|
if (!(this.level.valueOf() > e.valueOf()))
|
19268
19223
|
switch (e) {
|
19269
19224
|
case 0: {
|
19270
|
-
console.log(
|
19225
|
+
console.log(gt, ...t);
|
19271
19226
|
break;
|
19272
19227
|
}
|
19273
19228
|
case 1: {
|
19274
|
-
console.debug(
|
19229
|
+
console.debug(gt, ...t);
|
19275
19230
|
break;
|
19276
19231
|
}
|
19277
19232
|
case 2: {
|
19278
|
-
console.info(
|
19233
|
+
console.info(gt, ...t);
|
19279
19234
|
break;
|
19280
19235
|
}
|
19281
19236
|
case 3: {
|
19282
|
-
console.warn(
|
19237
|
+
console.warn(gt, ...t);
|
19283
19238
|
break;
|
19284
19239
|
}
|
19285
19240
|
case 6: {
|
19286
|
-
console.error(
|
19241
|
+
console.error(gt, ...t);
|
19287
19242
|
break;
|
19288
19243
|
}
|
19289
19244
|
case 4: {
|
@@ -19304,132 +19259,132 @@ var k = class {
|
|
19304
19259
|
}
|
19305
19260
|
};
|
19306
19261
|
k.level = 0;
|
19307
|
-
var
|
19308
|
-
var
|
19262
|
+
var Rr = (a2, e) => e;
|
19263
|
+
var Tt = (a2, e) => e;
|
19309
19264
|
var Js = (a2, e) => e;
|
19310
19265
|
var ho = (a2, e) => e;
|
19311
19266
|
var mo = (a2, e) => e;
|
19312
|
-
var J = createSelector([G,
|
19313
|
-
var
|
19314
|
-
var So = createSelector([
|
19267
|
+
var J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
|
19268
|
+
var Hr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
|
19269
|
+
var So = createSelector([D, Tt], (a2, e) => {
|
19315
19270
|
if (!e)
|
19316
19271
|
return null;
|
19317
19272
|
let t = a2[e];
|
19318
19273
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
19319
19274
|
});
|
19320
|
-
var go = createSelector([
|
19275
|
+
var go = createSelector([D, Tt], (a2, e) => {
|
19321
19276
|
if (!e)
|
19322
19277
|
return null;
|
19323
19278
|
let t = a2[e];
|
19324
19279
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
19325
19280
|
});
|
19326
|
-
var To = createSelector([
|
19281
|
+
var To = createSelector([D, Tt], (a2, e) => {
|
19327
19282
|
if (!e)
|
19328
19283
|
return null;
|
19329
19284
|
let t = a2[e];
|
19330
19285
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19331
19286
|
});
|
19332
|
-
var fo = createSelector([
|
19287
|
+
var fo = createSelector([D, Tt], (a2, e) => {
|
19333
19288
|
if (!e)
|
19334
19289
|
return null;
|
19335
19290
|
let t = a2[e];
|
19336
19291
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19337
19292
|
});
|
19338
|
-
var vo = createSelector([
|
19339
|
-
var Q =
|
19340
|
-
var
|
19293
|
+
var vo = createSelector([is, mo], (a2, e) => e ? a2[e] : null);
|
19294
|
+
var Q = I(J);
|
19295
|
+
var rm = I(createSelector([tr, ho], (a2, e) => {
|
19341
19296
|
if (a2)
|
19342
19297
|
return e ? a2[e] : a2;
|
19343
19298
|
}));
|
19344
|
-
function
|
19299
|
+
function sm(a2) {
|
19345
19300
|
return (e) => {
|
19346
19301
|
if (e.sessionStore)
|
19347
19302
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19348
19303
|
};
|
19349
19304
|
}
|
19350
|
-
var
|
19351
|
-
var oi =
|
19352
|
-
var Qs =
|
19353
|
-
var
|
19354
|
-
var
|
19355
|
-
var
|
19356
|
-
var Mo =
|
19305
|
+
var om = I(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
19306
|
+
var oi = I(Hr);
|
19307
|
+
var Qs = I(So);
|
19308
|
+
var nm = I(go);
|
19309
|
+
var cm = I(To);
|
19310
|
+
var dm = I(fo);
|
19311
|
+
var Mo = I((a2, e) => {
|
19357
19312
|
let t = J(a2, e);
|
19358
19313
|
if (t && t.videoTrack && t.videoTrack !== "")
|
19359
19314
|
return a2.tracks[t.videoTrack];
|
19360
19315
|
});
|
19361
|
-
var yo =
|
19316
|
+
var yo = I((a2, e) => {
|
19362
19317
|
let t = J(a2, e);
|
19363
19318
|
if (t && t.audioTrack && t.audioTrack !== "")
|
19364
19319
|
return a2.tracks[t.audioTrack];
|
19365
19320
|
});
|
19366
|
-
var
|
19321
|
+
var um = I((a2, e) => {
|
19367
19322
|
let t = J(a2, e);
|
19368
19323
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
19369
19324
|
});
|
19370
19325
|
var zs = (a2, e) => e ? a2.speakers[e] : null;
|
19371
|
-
var
|
19326
|
+
var pm = I(createSelector(zs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19372
19327
|
var ko = (a2, e) => {
|
19373
19328
|
let t = yo(e)(a2);
|
19374
19329
|
return zs(a2, t == null ? void 0 : t.id);
|
19375
19330
|
};
|
19376
|
-
var
|
19377
|
-
var
|
19331
|
+
var hm = I(createSelector(ko, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19332
|
+
var mm = I((a2, e) => {
|
19378
19333
|
if (e)
|
19379
19334
|
return a2.connectionQualities[e];
|
19380
19335
|
});
|
19381
|
-
var
|
19336
|
+
var Sm = I((a2, e) => {
|
19382
19337
|
let t = J(a2, e);
|
19383
19338
|
if (t) {
|
19384
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
19339
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
|
19385
19340
|
return i ? a2.tracks[i] : void 0;
|
19386
19341
|
}
|
19387
19342
|
});
|
19388
|
-
var
|
19343
|
+
var gm = I(createSelector(D, J, (a2, e) => {
|
19389
19344
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19390
19345
|
let r = a2[i];
|
19391
|
-
return
|
19346
|
+
return rt(r) && it(r);
|
19392
19347
|
});
|
19393
19348
|
return t ? a2[t] : void 0;
|
19394
19349
|
}));
|
19395
|
-
var
|
19350
|
+
var Tm = I(createSelector(D, J, (a2, e) => {
|
19396
19351
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19397
19352
|
let r = a2[i];
|
19398
|
-
return
|
19353
|
+
return rt(r) && tt(r);
|
19399
19354
|
});
|
19400
19355
|
return t ? a2[t] : void 0;
|
19401
19356
|
}));
|
19402
|
-
var
|
19357
|
+
var fm = I(createSelector(D, J, (a2, e) => {
|
19403
19358
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19404
19359
|
let r = a2[i];
|
19405
|
-
return
|
19360
|
+
return Wt(r) && tt(r);
|
19406
19361
|
});
|
19407
19362
|
return t ? a2[t] : void 0;
|
19408
19363
|
}));
|
19409
|
-
var Ys =
|
19364
|
+
var Ys = I(createSelector(D, J, (a2, e) => He(a2, e)));
|
19410
19365
|
var Xs = (a2) => createSelector(Ys(a2), (e) => e.audio);
|
19411
|
-
var
|
19366
|
+
var Mm = I((a2, e) => {
|
19412
19367
|
let t = J(a2, e);
|
19413
19368
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
19414
19369
|
});
|
19415
|
-
var
|
19370
|
+
var ym = I((a2, e) => {
|
19416
19371
|
let t = J(a2, e);
|
19417
19372
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
19418
19373
|
});
|
19419
|
-
var Zs =
|
19374
|
+
var Zs = I((a2, e) => {
|
19420
19375
|
if (e && a2.tracks[e])
|
19421
19376
|
return a2.tracks[e].volume === 0;
|
19422
19377
|
});
|
19423
|
-
var
|
19378
|
+
var km = I((a2, e) => {
|
19424
19379
|
let t = J(a2, e);
|
19425
19380
|
return Zs(t == null ? void 0 : t.audioTrack)(a2);
|
19426
19381
|
});
|
19427
|
-
var
|
19382
|
+
var Pm = I((a2, e) => {
|
19428
19383
|
let t = Xs(e)(a2);
|
19429
19384
|
return Zs(t == null ? void 0 : t.id)(a2);
|
19430
19385
|
});
|
19431
|
-
var ea =
|
19432
|
-
let t =
|
19386
|
+
var ea = I((a2, e) => {
|
19387
|
+
let t = Hr(a2, e);
|
19433
19388
|
if (t) {
|
19434
19389
|
if (t.type !== "audio") {
|
19435
19390
|
k.w("Please pass audio track here");
|
@@ -19438,16 +19393,16 @@ var ea = A((a2, e) => {
|
|
19438
19393
|
return t.volume;
|
19439
19394
|
}
|
19440
19395
|
});
|
19441
|
-
var
|
19396
|
+
var Em = I((a2, e) => {
|
19442
19397
|
let t = J(a2, e);
|
19443
19398
|
return ea(t == null ? void 0 : t.audioTrack)(a2);
|
19444
19399
|
});
|
19445
|
-
var
|
19400
|
+
var bm = I((a2, e) => {
|
19446
19401
|
let t = Xs(e)(a2);
|
19447
19402
|
return ea(t == null ? void 0 : t.id)(a2);
|
19448
19403
|
});
|
19449
|
-
var
|
19450
|
-
let t =
|
19404
|
+
var Am = I((a2, e) => {
|
19405
|
+
let t = Hr(a2, e);
|
19451
19406
|
if (t) {
|
19452
19407
|
if (t.type !== "video") {
|
19453
19408
|
k.w("Please pass video track here");
|
@@ -19456,49 +19411,49 @@ var Hm = A((a2, e) => {
|
|
19456
19411
|
return t.layer;
|
19457
19412
|
}
|
19458
19413
|
});
|
19459
|
-
var ta = createSelector([
|
19414
|
+
var ta = createSelector([at, ue, Rr], (a2, e, t) => {
|
19460
19415
|
if (t)
|
19461
19416
|
return a2.filter((i) => {
|
19462
19417
|
var r;
|
19463
19418
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
19464
19419
|
});
|
19465
19420
|
});
|
19466
|
-
var ia = createSelector([
|
19421
|
+
var ia = createSelector([at, Js], (a2, e) => {
|
19467
19422
|
if (e)
|
19468
19423
|
return a2.filter((t) => {
|
19469
19424
|
var i, r;
|
19470
19425
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
19471
19426
|
});
|
19472
19427
|
});
|
19473
|
-
var Po = createSelector(
|
19428
|
+
var Po = createSelector(at, (a2) => a2.filter((e) => {
|
19474
19429
|
var t;
|
19475
19430
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
19476
19431
|
}));
|
19477
19432
|
var Eo = createSelector([ia, Js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19478
|
-
var bo = createSelector([ta,
|
19479
|
-
var
|
19480
|
-
var
|
19481
|
-
var
|
19482
|
-
var
|
19483
|
-
var
|
19484
|
-
var ra =
|
19485
|
-
var
|
19433
|
+
var bo = createSelector([ta, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19434
|
+
var Im = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
|
19435
|
+
var Rm = I(ta);
|
19436
|
+
var Hm = I(ia);
|
19437
|
+
var Cm = I(Eo);
|
19438
|
+
var Lm = I(bo);
|
19439
|
+
var ra = I(vo);
|
19440
|
+
var Gm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
|
19486
19441
|
var r;
|
19487
19442
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
19488
19443
|
}));
|
19489
19444
|
var Ao = (a2) => a2.roleChangeRequests[0] || null;
|
19490
|
-
var
|
19491
|
-
var
|
19492
|
-
var
|
19493
|
-
var Ro = createSelector([K,
|
19445
|
+
var Wm = createSelector([Ao, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
19446
|
+
var $m = createSelector([Kt], (a2) => st(a2));
|
19447
|
+
var Km = createSelector([es], (a2) => st(a2));
|
19448
|
+
var Ro = createSelector([K, D], (a2, e) => {
|
19494
19449
|
let t = null;
|
19495
19450
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19496
19451
|
});
|
19497
|
-
var Ho = createSelector([Z,
|
19452
|
+
var Ho = createSelector([Z, D], (a2, e) => {
|
19498
19453
|
let t = null;
|
19499
19454
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19500
19455
|
});
|
19501
|
-
var
|
19456
|
+
var _r = class {
|
19502
19457
|
constructor() {
|
19503
19458
|
this.TAG = "[HTTPAnalyticsTransport]";
|
19504
19459
|
this.failedEvents = new ce("client-events");
|
@@ -19543,8 +19498,8 @@ var Nr = class {
|
|
19543
19498
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
19544
19499
|
}
|
19545
19500
|
};
|
19546
|
-
var Te = new
|
19547
|
-
var
|
19501
|
+
var Te = new _r();
|
19502
|
+
var W = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(W || {});
|
19548
19503
|
var Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
|
19549
19504
|
var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
|
19550
19505
|
var Qo = (a2) => a2.localPeer.id;
|
@@ -19554,7 +19509,7 @@ var Xo = (a2, e) => e;
|
|
19554
19509
|
var Ma = (a2, e) => e;
|
19555
19510
|
var Zo = (a2) => a2.remoteTrackStats;
|
19556
19511
|
var ya = (a2) => a2.peerStats;
|
19557
|
-
var
|
19512
|
+
var Br = (a2) => a2.localTrackStats;
|
19558
19513
|
var ve = createSelector([ya, Qo], (a2, e) => a2[e]);
|
19559
19514
|
var en = createSelector(ve, (a2) => {
|
19560
19515
|
var e;
|
@@ -19590,19 +19545,19 @@ var cn = createSelector(ve, (a2) => {
|
|
19590
19545
|
});
|
19591
19546
|
var dn = createSelector([ya, Xo], (a2, e) => e ? a2[e] : void 0);
|
19592
19547
|
var ln = createSelector([Zo, Ma], (a2, e) => e ? a2[e] : void 0);
|
19593
|
-
var
|
19594
|
-
var un =
|
19595
|
-
var pn =
|
19596
|
-
var hn = createSelector([
|
19548
|
+
var Vr = createSelector([Br, Ma], (a2, e) => e ? a2[e] : void 0);
|
19549
|
+
var un = I(dn);
|
19550
|
+
var pn = I(ln);
|
19551
|
+
var hn = createSelector([Br, zo], (a2, e) => {
|
19597
19552
|
var t;
|
19598
19553
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19599
19554
|
});
|
19600
|
-
var mn =
|
19601
|
-
var Sn = createSelector([
|
19555
|
+
var mn = I(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
|
19556
|
+
var Sn = createSelector([Br, Yo], (a2, e) => {
|
19602
19557
|
var t;
|
19603
19558
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19604
19559
|
});
|
19605
|
-
var gn =
|
19560
|
+
var gn = I(createSelector(Vr, (a2) => a2));
|
19606
19561
|
|
19607
19562
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
19608
19563
|
import {
|
@@ -21032,7 +20987,7 @@ init_define_process_env();
|
|
21032
20987
|
import React69 from "react";
|
21033
20988
|
import { selectUnreadHMSMessagesCount, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
|
21034
20989
|
import { ChatIcon } from "@100mslive/react-icons";
|
21035
|
-
var ChatToggle = () => {
|
20990
|
+
var ChatToggle = ({ onClick }) => {
|
21036
20991
|
const countUnreadMessages = useHMSStore32(selectUnreadHMSMessagesCount);
|
21037
20992
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21038
20993
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
@@ -21043,7 +20998,7 @@ var ChatToggle = () => {
|
|
21043
20998
|
position: "relative"
|
21044
20999
|
}
|
21045
21000
|
},
|
21046
|
-
/* @__PURE__ */ React69.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ React69.createElement(IconButton_default, { onClick: toggleChat, active: !isChatOpen, "data-testid": "chat_btn" }, /* @__PURE__ */ React69.createElement(ChatIcon, null))),
|
21001
|
+
/* @__PURE__ */ React69.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ React69.createElement(IconButton_default, { onClick: () => onClick ? onClick() : toggleChat(), active: !isChatOpen, "data-testid": "chat_btn" }, /* @__PURE__ */ React69.createElement(ChatIcon, null))),
|
21047
21002
|
countUnreadMessages > 0 && /* @__PURE__ */ React69.createElement(
|
21048
21003
|
Flex,
|
21049
21004
|
{
|
@@ -21498,6 +21453,7 @@ var RoleAccordion = ({
|
|
21498
21453
|
return /* @__PURE__ */ React73.createElement(Accordion.Item, { value: roleName, css: { "&:hover .role_actions": { visibility: "visible" }, mb: "$8" }, ref }, /* @__PURE__ */ React73.createElement(
|
21499
21454
|
Accordion.Header,
|
21500
21455
|
{
|
21456
|
+
chevronID: `role_accordion_btn_${roleName}`,
|
21501
21457
|
iconStyles: { c: "$on_surface_high" },
|
21502
21458
|
css: {
|
21503
21459
|
textTransform: "capitalize",
|
@@ -21550,7 +21506,7 @@ var RoleAccordion = ({
|
|
21550
21506
|
},
|
21551
21507
|
/* @__PURE__ */ React73.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
21552
21508
|
/* @__PURE__ */ React73.createElement(ChevronRightIcon, null)
|
21553
|
-
) : null, isHandRaisedAccordion && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(HorizontalDivider, null), /* @__PURE__ */ React73.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React73.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(CrossIcon11, null), " Lower all hands"),
|
21509
|
+
) : null, isHandRaisedAccordion && canBringToStage && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(HorizontalDivider, null), /* @__PURE__ */ React73.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React73.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(CrossIcon11, null), " Lower all hands"), /* @__PURE__ */ React73.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React73.createElement(AddIcon, null), " ", bring_to_stage_label)))));
|
21554
21510
|
};
|
21555
21511
|
|
21556
21512
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
@@ -21842,7 +21798,10 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
|
21842
21798
|
peerId,
|
21843
21799
|
role
|
21844
21800
|
});
|
21845
|
-
|
21801
|
+
if (!shouldShowStageRoleChange) {
|
21802
|
+
return null;
|
21803
|
+
}
|
21804
|
+
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React74.createElement(CrossIcon12, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React74.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React74.createElement(AddIcon2, { height: 18, width: 18 })));
|
21846
21805
|
};
|
21847
21806
|
var ParticipantMoreActions = ({ peerId, role }) => {
|
21848
21807
|
const {
|
@@ -21955,29 +21914,42 @@ var PollsToggle = () => {
|
|
21955
21914
|
// src/Prebuilt/components/Footer/WhiteboardToggle.tsx
|
21956
21915
|
init_define_process_env();
|
21957
21916
|
import React76 from "react";
|
21958
|
-
import { useWhiteboard } from "@100mslive/react-sdk";
|
21917
|
+
import { useScreenShare as useScreenShare4, useWhiteboard } from "@100mslive/react-sdk";
|
21959
21918
|
import { PencilDrawIcon } from "@100mslive/react-icons";
|
21960
21919
|
var WhiteboardToggle = () => {
|
21961
21920
|
const { toggle, open, isOwner } = useWhiteboard();
|
21921
|
+
const { screenSharingPeerId, amIScreenSharing } = useScreenShare4();
|
21922
|
+
const remoteScreenShare = screenSharingPeerId && !amIScreenSharing;
|
21923
|
+
const disabled = remoteScreenShare || open && !isOwner;
|
21962
21924
|
if (!toggle) {
|
21963
21925
|
return null;
|
21964
21926
|
}
|
21965
|
-
return /* @__PURE__ */ React76.createElement(
|
21966
|
-
|
21927
|
+
return /* @__PURE__ */ React76.createElement(
|
21928
|
+
Tooltip,
|
21967
21929
|
{
|
21968
|
-
|
21969
|
-
|
21970
|
-
yield toggle();
|
21971
|
-
} catch (error) {
|
21972
|
-
ToastManager.addToast({ title: error.message, variant: "error" });
|
21973
|
-
}
|
21974
|
-
}),
|
21975
|
-
active: !open,
|
21976
|
-
disabled: open && !isOwner,
|
21977
|
-
"data-testid": "whiteboard_btn"
|
21930
|
+
key: "whiteboard",
|
21931
|
+
title: remoteScreenShare ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
|
21978
21932
|
},
|
21979
|
-
/* @__PURE__ */ React76.createElement(
|
21980
|
-
|
21933
|
+
/* @__PURE__ */ React76.createElement(
|
21934
|
+
IconButton_default,
|
21935
|
+
{
|
21936
|
+
onClick: () => __async(void 0, null, function* () {
|
21937
|
+
if (disabled) {
|
21938
|
+
return;
|
21939
|
+
}
|
21940
|
+
try {
|
21941
|
+
yield toggle();
|
21942
|
+
} catch (error) {
|
21943
|
+
ToastManager.addToast({ title: error.message, variant: "error" });
|
21944
|
+
}
|
21945
|
+
}),
|
21946
|
+
active: !open,
|
21947
|
+
disabled,
|
21948
|
+
"data-testid": "whiteboard_btn"
|
21949
|
+
},
|
21950
|
+
/* @__PURE__ */ React76.createElement(PencilDrawIcon, null)
|
21951
|
+
)
|
21952
|
+
);
|
21981
21953
|
};
|
21982
21954
|
|
21983
21955
|
// src/Prebuilt/components/Footer/Footer.tsx
|
@@ -24512,6 +24484,7 @@ var ChatBody = React108.forwardRef(
|
|
24512
24484
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
24513
24485
|
}, [blacklistedMessageIDs, messages]);
|
24514
24486
|
const vanillaStore = useHMSVanillaStore9();
|
24487
|
+
const rerenderOnFirstMount = useRef18(false);
|
24515
24488
|
useEffect26(() => {
|
24516
24489
|
const unsubscribe = vanillaStore.subscribe(() => {
|
24517
24490
|
if (!listRef.current) {
|
@@ -24524,6 +24497,12 @@ var ChatBody = React108.forwardRef(
|
|
24524
24497
|
}, selectUnreadHMSMessagesCount2);
|
24525
24498
|
return unsubscribe;
|
24526
24499
|
}, [vanillaStore, listRef, scrollToBottom]);
|
24500
|
+
useEffect26(() => {
|
24501
|
+
if (filteredMessages.length > 0 && (listRef == null ? void 0 : listRef.current) && !rerenderOnFirstMount.current) {
|
24502
|
+
rerenderOnFirstMount.current = true;
|
24503
|
+
listRef.current.resetAfterIndex(0);
|
24504
|
+
}
|
24505
|
+
}, [listRef, filteredMessages]);
|
24527
24506
|
return filteredMessages.length === 0 ? /* @__PURE__ */ React108.createElement(EmptyChat, null) : /* @__PURE__ */ React108.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
|
24528
24507
|
}
|
24529
24508
|
);
|
@@ -25375,7 +25354,7 @@ var Chat = () => {
|
|
25375
25354
|
const listRef = useRef21(null);
|
25376
25355
|
const hmsActions = useHMSActions39();
|
25377
25356
|
const vanillaStore = useHMSVanillaStore10();
|
25378
|
-
const { enabled: isChatEnabled = true } = useHMSStore60(
|
25357
|
+
const { enabled: isChatEnabled = true } = useHMSStore60(sm("chatState" /* CHAT_STATE */)) || {};
|
25379
25358
|
const isMobile = useMedia18(config.media.md);
|
25380
25359
|
const isMobileHLSStream = useMobileHLSStream();
|
25381
25360
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -26550,7 +26529,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26550
26529
|
const isEffectsEnabled = useHMSStore68(ic);
|
26551
26530
|
const effectsKey = useHMSStore68(rc);
|
26552
26531
|
const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
26553
|
-
const background = useHMSStore68(
|
26532
|
+
const background = useHMSStore68(rm(APP_DATA.background));
|
26554
26533
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26555
26534
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26556
26535
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -27247,24 +27226,18 @@ var RoleChangeRequestModal = () => {
|
|
27247
27226
|
init_define_process_env();
|
27248
27227
|
import React151, { Suspense, useEffect as useEffect48 } from "react";
|
27249
27228
|
import { match as match11 } from "ts-pattern";
|
27250
|
-
import {
|
27251
|
-
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
27252
|
-
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
27253
|
-
selectPeerScreenSharing as selectPeerScreenSharing3,
|
27254
|
-
selectWhiteboard as selectWhiteboard2,
|
27255
|
-
useHMSActions as useHMSActions45,
|
27256
|
-
useHMSStore as useHMSStore81
|
27257
|
-
} from "@100mslive/react-sdk";
|
27229
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions45, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
|
27258
27230
|
|
27259
27231
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
27260
27232
|
init_define_process_env();
|
27261
|
-
import
|
27233
|
+
import React147, { useEffect as useEffect44, useMemo as useMemo18, useState as useState64 } from "react";
|
27262
27234
|
import {
|
27263
27235
|
selectLocalPeerID as selectLocalPeerID14,
|
27264
27236
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
27265
27237
|
selectPeers as selectPeers3,
|
27266
27238
|
selectPeerScreenSharing,
|
27267
|
-
|
27239
|
+
selectWhiteboard as selectWhiteboard2,
|
27240
|
+
useHMSStore as useHMSStore79,
|
27268
27241
|
useHMSVanillaStore as useHMSVanillaStore12
|
27269
27242
|
} from "@100mslive/react-sdk";
|
27270
27243
|
|
@@ -27554,10 +27527,10 @@ var useTileLayout = ({
|
|
27554
27527
|
tileHeight = maxRowHeight;
|
27555
27528
|
} else {
|
27556
27529
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
27557
|
-
for (const
|
27558
|
-
if (
|
27559
|
-
if (tileHeight <
|
27560
|
-
tileHeight =
|
27530
|
+
for (const h of calcHeights) {
|
27531
|
+
if (h < maxRowHeight) {
|
27532
|
+
if (tileHeight < h) {
|
27533
|
+
tileHeight = h;
|
27561
27534
|
}
|
27562
27535
|
}
|
27563
27536
|
}
|
@@ -27565,10 +27538,10 @@ var useTileLayout = ({
|
|
27565
27538
|
tileHeight = maxRowHeight;
|
27566
27539
|
const calcWidths = aspectRatios.map((aR) => tileHeight * aR);
|
27567
27540
|
tileWidth = 0;
|
27568
|
-
for (const
|
27569
|
-
if (
|
27570
|
-
if (tileWidth <
|
27571
|
-
tileWidth =
|
27541
|
+
for (const w of calcWidths) {
|
27542
|
+
if (w < width) {
|
27543
|
+
if (tileWidth < w) {
|
27544
|
+
tileWidth = w;
|
27572
27545
|
}
|
27573
27546
|
}
|
27574
27547
|
}
|
@@ -28171,6 +28144,84 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28171
28144
|
), layoutMode === LayoutMode.SPOTLIGHT && activeSharePeer && /* @__PURE__ */ React145.createElement(InsetTile, { peerId: activeSharePeer == null ? void 0 : activeSharePeer.id }));
|
28172
28145
|
};
|
28173
28146
|
|
28147
|
+
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
28148
|
+
init_define_process_env();
|
28149
|
+
import React146, { useEffect as useEffect43, useMemo as useMemo17 } from "react";
|
28150
|
+
import { useMedia as useMedia33 } from "react-use";
|
28151
|
+
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28152
|
+
var WhiteboardEmbed = () => {
|
28153
|
+
const isMobile = useMedia33(config.media.md);
|
28154
|
+
const { iframeRef } = useWhiteboard2(isMobile);
|
28155
|
+
return /* @__PURE__ */ React146.createElement(
|
28156
|
+
Box,
|
28157
|
+
{
|
28158
|
+
css: {
|
28159
|
+
mx: "$8",
|
28160
|
+
flex: "3 1 0",
|
28161
|
+
"@lg": {
|
28162
|
+
flex: "2 1 0",
|
28163
|
+
display: "flex",
|
28164
|
+
alignItems: "center"
|
28165
|
+
}
|
28166
|
+
}
|
28167
|
+
},
|
28168
|
+
/* @__PURE__ */ React146.createElement(
|
28169
|
+
"iframe",
|
28170
|
+
{
|
28171
|
+
title: "Whiteboard View",
|
28172
|
+
ref: iframeRef,
|
28173
|
+
style: {
|
28174
|
+
width: "100%",
|
28175
|
+
height: "100%",
|
28176
|
+
border: 0,
|
28177
|
+
borderRadius: "0.75rem"
|
28178
|
+
},
|
28179
|
+
allow: "autoplay; clipboard-write;",
|
28180
|
+
referrerPolicy: "no-referrer"
|
28181
|
+
}
|
28182
|
+
)
|
28183
|
+
);
|
28184
|
+
};
|
28185
|
+
var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
28186
|
+
const whiteboard = useHMSStore78(selectWhiteboard);
|
28187
|
+
const whiteboardOwner = useHMSStore78(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
28188
|
+
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28189
|
+
const isMobile = useMedia33(config.media.md);
|
28190
|
+
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28191
|
+
const secondaryPeers = useMemo17(() => {
|
28192
|
+
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
28193
|
+
return [];
|
28194
|
+
}
|
28195
|
+
if (isMobile || layoutMode === LayoutMode.SIDEBAR) {
|
28196
|
+
return whiteboardOwner ? [whiteboardOwner, ...peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id))] : peers;
|
28197
|
+
}
|
28198
|
+
return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
|
28199
|
+
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
28200
|
+
useEffect43(() => {
|
28201
|
+
if (isMobile) {
|
28202
|
+
setLayoutMode(LayoutMode.GALLERY);
|
28203
|
+
return;
|
28204
|
+
}
|
28205
|
+
if (layoutMode === LayoutMode.SIDEBAR) {
|
28206
|
+
return;
|
28207
|
+
}
|
28208
|
+
setLayoutMode(LayoutMode.SIDEBAR);
|
28209
|
+
return () => {
|
28210
|
+
setLayoutMode(LayoutMode.GALLERY);
|
28211
|
+
};
|
28212
|
+
}, [isMobile]);
|
28213
|
+
return /* @__PURE__ */ React146.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React146.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React146.createElement(WhiteboardEmbed, null)), /* @__PURE__ */ React146.createElement(
|
28214
|
+
SecondaryTiles,
|
28215
|
+
{
|
28216
|
+
peers: secondaryPeers,
|
28217
|
+
onPageChange,
|
28218
|
+
onPageSize,
|
28219
|
+
edgeToEdge,
|
28220
|
+
hasSidebar
|
28221
|
+
}
|
28222
|
+
), layoutMode === LayoutMode.SPOTLIGHT && whiteboardOwner && /* @__PURE__ */ React146.createElement(InsetTile, { peerId: whiteboardOwner == null ? void 0 : whiteboardOwner.id }));
|
28223
|
+
};
|
28224
|
+
|
28174
28225
|
// src/Prebuilt/common/PeersSorter.ts
|
28175
28226
|
init_define_process_env();
|
28176
28227
|
import { selectDominantSpeaker as selectDominantSpeaker2 } from "@100mslive/react-sdk";
|
@@ -28278,18 +28329,19 @@ var GridLayout = ({
|
|
28278
28329
|
edge_to_edge = false,
|
28279
28330
|
hide_metadata_on_tile = false
|
28280
28331
|
}) => {
|
28281
|
-
const peerSharing =
|
28332
|
+
const peerSharing = useHMSStore79(selectPeerScreenSharing);
|
28333
|
+
const whiteboard = useHMSStore79(selectWhiteboard2);
|
28282
28334
|
const pinnedTrack = usePinnedTrack();
|
28283
|
-
const peers =
|
28284
|
-
const localPeerRole =
|
28285
|
-
const localPeerID =
|
28335
|
+
const peers = useHMSStore79(selectPeers3);
|
28336
|
+
const localPeerRole = useHMSStore79(selectLocalPeerRoleName5);
|
28337
|
+
const localPeerID = useHMSStore79(selectLocalPeerID14);
|
28286
28338
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28287
28339
|
const isRoleProminence = prominentRoles.length && peers.some(
|
28288
28340
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
28289
28341
|
) || pinnedTrack;
|
28290
|
-
const updatedPeers =
|
28291
|
-
if (activeScreensharePeerId) {
|
28292
|
-
return peers.filter((peer) => peer.id !== activeScreensharePeerId);
|
28342
|
+
const updatedPeers = useMemo18(() => {
|
28343
|
+
if (activeScreensharePeerId || (whiteboard == null ? void 0 : whiteboard.open)) {
|
28344
|
+
return peers.filter((peer) => peer.id !== activeScreensharePeerId || peer.customerUserId !== (whiteboard == null ? void 0 : whiteboard.owner));
|
28293
28345
|
}
|
28294
28346
|
if (isInsetEnabled) {
|
28295
28347
|
const isLocalPeerPinned = localPeerID === (pinnedTrack == null ? void 0 : pinnedTrack.peerId);
|
@@ -28300,10 +28352,19 @@ var GridLayout = ({
|
|
28300
28352
|
}
|
28301
28353
|
}
|
28302
28354
|
return peers;
|
28303
|
-
}, [
|
28355
|
+
}, [
|
28356
|
+
isInsetEnabled,
|
28357
|
+
whiteboard,
|
28358
|
+
activeScreensharePeerId,
|
28359
|
+
localPeerRole,
|
28360
|
+
localPeerID,
|
28361
|
+
prominentRoles,
|
28362
|
+
peers,
|
28363
|
+
pinnedTrack
|
28364
|
+
]);
|
28304
28365
|
const vanillaStore = useHMSVanillaStore12();
|
28305
28366
|
const [sortedPeers, setSortedPeers] = useState64(updatedPeers);
|
28306
|
-
const peersSorter =
|
28367
|
+
const peersSorter = useMemo18(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
28307
28368
|
const [pageSize, setPageSize] = useState64(0);
|
28308
28369
|
const [mainPage, setMainPage] = useState64(0);
|
28309
28370
|
const tileLayout = {
|
@@ -28314,7 +28375,7 @@ var GridLayout = ({
|
|
28314
28375
|
hideMetadataOnTile: hide_metadata_on_tile,
|
28315
28376
|
objectFit: video_object_fit
|
28316
28377
|
};
|
28317
|
-
|
28378
|
+
useEffect44(() => {
|
28318
28379
|
if (mainPage !== 0) {
|
28319
28380
|
return;
|
28320
28381
|
}
|
@@ -28325,7 +28386,7 @@ var GridLayout = ({
|
|
28325
28386
|
peersSorter.onUpdate(setSortedPeers);
|
28326
28387
|
}, [mainPage, peersSorter, updatedPeers, pageSize]);
|
28327
28388
|
if (peerSharing) {
|
28328
|
-
return /* @__PURE__ */
|
28389
|
+
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28329
28390
|
ScreenshareLayout,
|
28330
28391
|
{
|
28331
28392
|
peers: sortedPeers,
|
@@ -28334,8 +28395,18 @@ var GridLayout = ({
|
|
28334
28395
|
edgeToEdge: edge_to_edge
|
28335
28396
|
}
|
28336
28397
|
));
|
28398
|
+
} else if (whiteboard == null ? void 0 : whiteboard.open) {
|
28399
|
+
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28400
|
+
WhiteboardLayout,
|
28401
|
+
{
|
28402
|
+
peers: sortedPeers,
|
28403
|
+
onPageSize: setPageSize,
|
28404
|
+
onPageChange: setMainPage,
|
28405
|
+
edgeToEdge: edge_to_edge
|
28406
|
+
}
|
28407
|
+
));
|
28337
28408
|
} else if (isRoleProminence) {
|
28338
|
-
return /* @__PURE__ */
|
28409
|
+
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28339
28410
|
RoleProminence,
|
28340
28411
|
{
|
28341
28412
|
peers: sortedPeers,
|
@@ -28347,7 +28418,7 @@ var GridLayout = ({
|
|
28347
28418
|
}
|
28348
28419
|
));
|
28349
28420
|
}
|
28350
|
-
return /* @__PURE__ */
|
28421
|
+
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28351
28422
|
EqualProminence,
|
28352
28423
|
{
|
28353
28424
|
peers: sortedPeers,
|
@@ -28361,32 +28432,32 @@ var GridLayout = ({
|
|
28361
28432
|
|
28362
28433
|
// src/Prebuilt/layouts/EmbedView.jsx
|
28363
28434
|
init_define_process_env();
|
28364
|
-
import
|
28365
|
-
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as
|
28435
|
+
import React148, { useEffect as useEffect45, useMemo as useMemo19 } from "react";
|
28436
|
+
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
|
28366
28437
|
var EmbedView = () => {
|
28367
|
-
return /* @__PURE__ */
|
28438
|
+
return /* @__PURE__ */ React148.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React148.createElement(EmbedComponent, null));
|
28368
28439
|
};
|
28369
28440
|
var EmbedScreenShareView = ({ children }) => {
|
28370
|
-
const peers =
|
28371
|
-
const peerPresenting =
|
28441
|
+
const peers = useHMSStore80(selectPeers4);
|
28442
|
+
const peerPresenting = useHMSStore80(selectPeerScreenSharing2);
|
28372
28443
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28373
|
-
const smallTilePeers =
|
28444
|
+
const smallTilePeers = useMemo19(() => {
|
28374
28445
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
28375
28446
|
return smallTilePeers2;
|
28376
28447
|
}, [peers, peerPresenting]);
|
28377
|
-
|
28448
|
+
useEffect45(() => {
|
28378
28449
|
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
28379
28450
|
return () => {
|
28380
28451
|
setActiveScreenSharePeer("");
|
28381
28452
|
};
|
28382
28453
|
}, [peerPresenting == null ? void 0 : peerPresenting.id, setActiveScreenSharePeer]);
|
28383
|
-
return /* @__PURE__ */
|
28454
|
+
return /* @__PURE__ */ React148.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React148.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React148.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28384
28455
|
};
|
28385
28456
|
var EmbedComponent = () => {
|
28386
|
-
const embedConfig =
|
28457
|
+
const embedConfig = useHMSStore80(selectAppData8(APP_DATA.embedConfig));
|
28387
28458
|
const resetConfig = useResetEmbedConfig();
|
28388
28459
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
28389
|
-
|
28460
|
+
useEffect45(() => {
|
28390
28461
|
(() => __async(void 0, null, function* () {
|
28391
28462
|
if (embedConfig && !isEmbedShareInProgress) {
|
28392
28463
|
try {
|
@@ -28401,7 +28472,7 @@ var EmbedComponent = () => {
|
|
28401
28472
|
}
|
28402
28473
|
}))();
|
28403
28474
|
}, [isEmbedShareInProgress, embedConfig, startEmbedShare, resetConfig]);
|
28404
|
-
return /* @__PURE__ */
|
28475
|
+
return /* @__PURE__ */ React148.createElement(
|
28405
28476
|
Box,
|
28406
28477
|
{
|
28407
28478
|
css: {
|
@@ -28414,7 +28485,7 @@ var EmbedComponent = () => {
|
|
28414
28485
|
}
|
28415
28486
|
}
|
28416
28487
|
},
|
28417
|
-
/* @__PURE__ */
|
28488
|
+
/* @__PURE__ */ React148.createElement(
|
28418
28489
|
"iframe",
|
28419
28490
|
{
|
28420
28491
|
title: "Embed View",
|
@@ -28434,13 +28505,13 @@ var EmbedComponent = () => {
|
|
28434
28505
|
|
28435
28506
|
// src/Prebuilt/layouts/PDFView.jsx
|
28436
28507
|
init_define_process_env();
|
28437
|
-
import
|
28508
|
+
import React149, { useEffect as useEffect46 } from "react";
|
28438
28509
|
import { usePDFShare } from "@100mslive/react-sdk";
|
28439
28510
|
var PDFView = () => {
|
28440
28511
|
const pdfConfig = usePDFConfig();
|
28441
28512
|
const resetConfig = useResetPDFConfig();
|
28442
28513
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
28443
|
-
|
28514
|
+
useEffect46(() => {
|
28444
28515
|
(() => __async(void 0, null, function* () {
|
28445
28516
|
try {
|
28446
28517
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -28455,7 +28526,7 @@ var PDFView = () => {
|
|
28455
28526
|
}
|
28456
28527
|
}))();
|
28457
28528
|
}, [isPDFShareInProgress, pdfConfig, resetConfig, startPDFShare]);
|
28458
|
-
return /* @__PURE__ */
|
28529
|
+
return /* @__PURE__ */ React149.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React149.createElement(
|
28459
28530
|
Box,
|
28460
28531
|
{
|
28461
28532
|
css: {
|
@@ -28468,7 +28539,7 @@ var PDFView = () => {
|
|
28468
28539
|
}
|
28469
28540
|
}
|
28470
28541
|
},
|
28471
|
-
/* @__PURE__ */
|
28542
|
+
/* @__PURE__ */ React149.createElement(
|
28472
28543
|
"iframe",
|
28473
28544
|
{
|
28474
28545
|
title: "Embed View",
|
@@ -28488,10 +28559,10 @@ var PDFView = () => {
|
|
28488
28559
|
|
28489
28560
|
// src/Prebuilt/layouts/WaitingView.jsx
|
28490
28561
|
init_define_process_env();
|
28491
|
-
import
|
28562
|
+
import React150 from "react";
|
28492
28563
|
import { ColoredTimeIcon } from "@100mslive/react-icons";
|
28493
|
-
var WaitingView =
|
28494
|
-
return /* @__PURE__ */
|
28564
|
+
var WaitingView = React150.memo(() => {
|
28565
|
+
return /* @__PURE__ */ React150.createElement(
|
28495
28566
|
Box,
|
28496
28567
|
{
|
28497
28568
|
css: {
|
@@ -28505,7 +28576,7 @@ var WaitingView = React149.memo(() => {
|
|
28505
28576
|
},
|
28506
28577
|
"data-testid": "waiting_view"
|
28507
28578
|
},
|
28508
|
-
/* @__PURE__ */
|
28579
|
+
/* @__PURE__ */ React150.createElement(
|
28509
28580
|
Flex,
|
28510
28581
|
{
|
28511
28582
|
align: "center",
|
@@ -28519,8 +28590,8 @@ var WaitingView = React149.memo(() => {
|
|
28519
28590
|
gap: "$8"
|
28520
28591
|
}
|
28521
28592
|
},
|
28522
|
-
/* @__PURE__ */
|
28523
|
-
/* @__PURE__ */
|
28593
|
+
/* @__PURE__ */ React150.createElement(ColoredTimeIcon, { width: "80px", height: "80px" }),
|
28594
|
+
/* @__PURE__ */ React150.createElement(
|
28524
28595
|
Flex,
|
28525
28596
|
{
|
28526
28597
|
direction: "column",
|
@@ -28530,101 +28601,52 @@ var WaitingView = React149.memo(() => {
|
|
28530
28601
|
gap: "$4"
|
28531
28602
|
}
|
28532
28603
|
},
|
28533
|
-
/* @__PURE__ */
|
28534
|
-
/* @__PURE__ */
|
28604
|
+
/* @__PURE__ */ React150.createElement(Text, { color: "white", variant: "h6", css: { "@md": { fontSize: "$md" } } }, "Please wait"),
|
28605
|
+
/* @__PURE__ */ React150.createElement(Text, { color: "$on_surface_medium", css: { mt: "$4", "@md": { fontSize: "$sm" } } }, "Sit back and relax till others let you join.")
|
28535
28606
|
)
|
28536
28607
|
)
|
28537
28608
|
);
|
28538
28609
|
});
|
28539
28610
|
|
28540
|
-
// src/Prebuilt/layouts/WhiteboardView.tsx
|
28541
|
-
init_define_process_env();
|
28542
|
-
import React150, { useEffect as useEffect46, useMemo as useMemo19 } from "react";
|
28543
|
-
import { useMedia as useMedia33 } from "react-use";
|
28544
|
-
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28545
|
-
var EmbedComponent2 = () => {
|
28546
|
-
const isMobile = useMedia33(config.media.md);
|
28547
|
-
const { iframeRef } = useWhiteboard2(isMobile);
|
28548
|
-
return /* @__PURE__ */ React150.createElement(
|
28549
|
-
Box,
|
28550
|
-
{
|
28551
|
-
css: {
|
28552
|
-
mx: "$8",
|
28553
|
-
flex: "3 1 0",
|
28554
|
-
"@lg": {
|
28555
|
-
flex: "2 1 0",
|
28556
|
-
display: "flex",
|
28557
|
-
alignItems: "center"
|
28558
|
-
}
|
28559
|
-
}
|
28560
|
-
},
|
28561
|
-
/* @__PURE__ */ React150.createElement(
|
28562
|
-
"iframe",
|
28563
|
-
{
|
28564
|
-
title: "Whiteboard View",
|
28565
|
-
ref: iframeRef,
|
28566
|
-
style: {
|
28567
|
-
width: "100%",
|
28568
|
-
height: "100%",
|
28569
|
-
border: 0,
|
28570
|
-
borderRadius: "0.75rem"
|
28571
|
-
},
|
28572
|
-
allow: "autoplay; clipboard-write;",
|
28573
|
-
referrerPolicy: "no-referrer"
|
28574
|
-
}
|
28575
|
-
)
|
28576
|
-
);
|
28577
|
-
};
|
28578
|
-
var WhiteboardView = () => {
|
28579
|
-
const peers = useHMSStore80(selectPeers5);
|
28580
|
-
const whiteboard = useHMSStore80(selectWhiteboard);
|
28581
|
-
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28582
|
-
const smallTilePeers = useMemo19(() => {
|
28583
|
-
const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
|
28584
|
-
return smallTilePeers2;
|
28585
|
-
}, [peers, whiteboard == null ? void 0 : whiteboard.owner]);
|
28586
|
-
useEffect46(() => {
|
28587
|
-
setActiveScreenSharePeer((whiteboard == null ? void 0 : whiteboard.owner) || "");
|
28588
|
-
return () => {
|
28589
|
-
setActiveScreenSharePeer("");
|
28590
|
-
};
|
28591
|
-
}, [whiteboard == null ? void 0 : whiteboard.owner, setActiveScreenSharePeer]);
|
28592
|
-
return /* @__PURE__ */ React150.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React150.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React150.createElement(EmbedComponent2, null)), /* @__PURE__ */ React150.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28593
|
-
};
|
28594
|
-
|
28595
28611
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
28596
28612
|
init_define_process_env();
|
28597
28613
|
import { useEffect as useEffect47 } from "react";
|
28598
28614
|
import { usePrevious } from "react-use";
|
28599
|
-
import { useScreenShare as
|
28615
|
+
import { useScreenShare as useScreenShare5, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
28600
28616
|
var useCloseScreenshareWhiteboard = () => {
|
28601
|
-
const { amIScreenSharing, toggleScreenShare } =
|
28617
|
+
const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = useScreenShare5();
|
28602
28618
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
28603
|
-
const prevScreenSharer = usePrevious(
|
28619
|
+
const prevScreenSharer = usePrevious(screenSharingPeerId);
|
28604
28620
|
const prevWhiteboardOwner = usePrevious(isWhiteboardOwner);
|
28605
28621
|
useEffect47(() => {
|
28606
|
-
if (isWhiteboardOwner &&
|
28607
|
-
if (prevScreenSharer && !prevWhiteboardOwner) {
|
28622
|
+
if (isWhiteboardOwner && screenSharingPeerId) {
|
28623
|
+
if (prevScreenSharer && amIScreenSharing && !prevWhiteboardOwner) {
|
28608
28624
|
toggleScreenShare == null ? void 0 : toggleScreenShare();
|
28609
28625
|
} else if (prevWhiteboardOwner && !prevScreenSharer) {
|
28610
28626
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
28611
28627
|
}
|
28612
28628
|
}
|
28613
|
-
}, [
|
28629
|
+
}, [
|
28630
|
+
isWhiteboardOwner,
|
28631
|
+
screenSharingPeerId,
|
28632
|
+
amIScreenSharing,
|
28633
|
+
prevScreenSharer,
|
28634
|
+
prevWhiteboardOwner,
|
28635
|
+
toggleScreenShare,
|
28636
|
+
toggleWhiteboard
|
28637
|
+
]);
|
28614
28638
|
};
|
28615
28639
|
|
28616
28640
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28617
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28641
|
+
var HLSView = React151.lazy(() => import("./HLSView-SYFDABFO.js"));
|
28618
28642
|
var VideoStreamingSection = ({
|
28619
28643
|
screenType,
|
28620
28644
|
elements,
|
28621
28645
|
hideControls = false
|
28622
28646
|
}) => {
|
28623
|
-
var _a8, _b7
|
28647
|
+
var _a8, _b7;
|
28624
28648
|
const localPeerRole = useHMSStore81(selectLocalPeerRoleName6);
|
28625
28649
|
const isConnected = useHMSStore81(selectIsConnectedToRoom9);
|
28626
|
-
const peerSharing = useHMSStore81(selectPeerScreenSharing3);
|
28627
|
-
const isWhiteboardOpen = (_a8 = useHMSStore81(selectWhiteboard2)) == null ? void 0 : _a8.open;
|
28628
28650
|
const hmsActions = useHMSActions45();
|
28629
28651
|
const waitingViewerRole = useWaitingViewerRole();
|
28630
28652
|
const urlToIframe = useUrlToEmbed();
|
@@ -28656,12 +28678,8 @@ var VideoStreamingSection = ({
|
|
28656
28678
|
ViewComponent = /* @__PURE__ */ React151.createElement(PDFView, null);
|
28657
28679
|
} else if (urlToIframe) {
|
28658
28680
|
ViewComponent = /* @__PURE__ */ React151.createElement(EmbedView, null);
|
28659
|
-
} else if (peerSharing) {
|
28660
|
-
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid));
|
28661
|
-
} else if (isWhiteboardOpen) {
|
28662
|
-
ViewComponent = /* @__PURE__ */ React151.createElement(WhiteboardView, null);
|
28663
28681
|
} else {
|
28664
|
-
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (
|
28682
|
+
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
|
28665
28683
|
}
|
28666
28684
|
return /* @__PURE__ */ React151.createElement(Suspense, { fallback: /* @__PURE__ */ React151.createElement(FullPageProgress_default, null) }, /* @__PURE__ */ React151.createElement(
|
28667
28685
|
Flex,
|
@@ -28690,7 +28708,7 @@ var VideoStreamingSection = ({
|
|
28690
28708
|
SidePane_default,
|
28691
28709
|
{
|
28692
28710
|
screenType,
|
28693
|
-
tileProps: (
|
28711
|
+
tileProps: (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid,
|
28694
28712
|
hideControls
|
28695
28713
|
}
|
28696
28714
|
)
|
@@ -30229,7 +30247,7 @@ function Notifications() {
|
|
30229
30247
|
}, []);
|
30230
30248
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
30231
30249
|
useEffect65(() => {
|
30232
|
-
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
30250
|
+
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
|
30233
30251
|
if (!notification || isNotificationDisabled) {
|
30234
30252
|
return;
|
30235
30253
|
}
|
@@ -30270,7 +30288,7 @@ function Notifications() {
|
|
30270
30288
|
});
|
30271
30289
|
break;
|
30272
30290
|
case HMSNotificationTypes10.ROLE_UPDATED: {
|
30273
|
-
if (((
|
30291
|
+
if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
30274
30292
|
ToastManager.addToast({
|
30275
30293
|
title: `You are now a ${notification.data.roleName}`
|
30276
30294
|
});
|
@@ -30887,6 +30905,7 @@ var TextArea = styled("textarea", {
|
|
30887
30905
|
|
30888
30906
|
export {
|
30889
30907
|
__spreadValues,
|
30908
|
+
__spreadProps,
|
30890
30909
|
__objRest,
|
30891
30910
|
__async,
|
30892
30911
|
init_define_process_env,
|
@@ -30986,4 +31005,4 @@ lodash/lodash.js:
|
|
30986
31005
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
30987
31006
|
*)
|
30988
31007
|
*/
|
30989
|
-
//# sourceMappingURL=chunk-
|
31008
|
+
//# sourceMappingURL=chunk-HIJ2DH6Q.js.map
|