@100mslive/roomkit-react 0.3.3-alpha.4 → 0.3.3-alpha.6
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-VUANLYLS.js → HLSView-XI2Q44RQ.js} +331 -166
- package/dist/HLSView-XI2Q44RQ.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/RaiseHand.d.ts +1 -1
- package/dist/Prebuilt/components/VideoLayouts/WhiteboardLayout.d.ts +3 -0
- package/dist/Prebuilt/components/hooks/useMetadata.d.ts +8 -0
- package/dist/Sheet/Sheet.d.ts +1 -1
- package/dist/{chunk-5WTUTVRO.js → chunk-3JLNG275.js} +620 -542
- package/dist/chunk-3JLNG275.js.map +7 -0
- package/dist/index.cjs.js +1688 -1427
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +249 -170
- package/dist/meta.esbuild.json +261 -181
- 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/Chat/ChatFooter.tsx +2 -4
- package/src/Prebuilt/components/ConferenceScreen.tsx +1 -4
- package/src/Prebuilt/components/Footer/ChatToggle.tsx +2 -2
- package/src/Prebuilt/components/Footer/Footer.tsx +1 -4
- 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 +7 -7
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +0 -1
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -5
- package/src/Prebuilt/components/PreviousRoleInMetadata.tsx +0 -1
- package/src/Prebuilt/components/RaiseHand.tsx +7 -1
- package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +0 -1
- 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/components/hooks/{useMetadata.jsx → useMetadata.tsx} +2 -8
- package/src/Prebuilt/layouts/HLSView.jsx +115 -78
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +1 -17
- package/dist/HLSView-VUANLYLS.js.map +0 -7
- package/dist/Prebuilt/layouts/WhiteboardView.d.ts +0 -2
- package/dist/chunk-5WTUTVRO.js.map +0 -7
- package/src/Prebuilt/layouts/WhiteboardView.tsx +0 -69
@@ -9,18 +9,18 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
9
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
10
10
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
11
11
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
12
|
-
var __spreadValues = (a2,
|
13
|
-
for (var prop in
|
14
|
-
if (__hasOwnProp.call(
|
15
|
-
__defNormalProp(a2, prop,
|
12
|
+
var __spreadValues = (a2, b) => {
|
13
|
+
for (var prop in b || (b = {}))
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
15
|
+
__defNormalProp(a2, prop, b[prop]);
|
16
16
|
if (__getOwnPropSymbols)
|
17
|
-
for (var prop of __getOwnPropSymbols(
|
18
|
-
if (__propIsEnum.call(
|
19
|
-
__defNormalProp(a2, prop,
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
18
|
+
if (__propIsEnum.call(b, prop))
|
19
|
+
__defNormalProp(a2, prop, b[prop]);
|
20
20
|
}
|
21
21
|
return a2;
|
22
22
|
};
|
23
|
-
var __spreadProps = (a2,
|
23
|
+
var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
|
24
24
|
var __objRest = (source, exclude) => {
|
25
25
|
var target = {};
|
26
26
|
for (var prop in source)
|
@@ -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 = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v18.17.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.4", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.87.0", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "b0f3689284995b999c8c5650146ced9afae1bbd19cf3308ede185a4a9b0ede50", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.kq3RNeovXJ/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680723-0.5894944620724656:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680330-0.621429415928052:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858665031-0.12795214732375126:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1710858680723-0.5894944620724656/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.4", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.4", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.3.3-alpha.4", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.4", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-10419d9aa6.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a3671f95-f7e6-4323-bb74-510e2ca9eefc", 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.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a3671f95-f7e6-4323-bb74-510e2ca9eefc", 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.6", 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.8", 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: "599", 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.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:20495", 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.6", 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: "8360031943", 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: "b096cea8bf439c4d3e99d27b4d758d87f54c9512", 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: "925e27a959d523c0d8dd7c4ff1bb9b1108ad9d0e072f2407889f0132e59f8cca", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710942571293-0.833777212666001:/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--1710942571102-0.5631544825120667:/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--1710942549183-0.6741137935433392:/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--1710942549007-0.8726426741091147:/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_ac78bbdf-80eb-48f7-9a6a-19c8f20e64d2", INVOCATION_ID: "974e21634b3a47a399f36df7990c13cb", 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: "488", 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 18", 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.6", 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.6", 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: "b096cea8bf439c4d3e99d27b4d758d87f54c9512", 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_a3671f95-f7e6-4323-bb74-510e2ca9eefc", 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_a3671f95-f7e6-4323-bb74-510e2ca9eefc", 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_a3671f95-f7e6-4323-bb74-510e2ca9eefc" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -801,7 +801,7 @@ var require_lodash = __commonJS({
|
|
801
801
|
return string.match(reUnicodeWord) || [];
|
802
802
|
}
|
803
803
|
var runInContext = function runInContext2(context) {
|
804
|
-
context = context == null ? root :
|
804
|
+
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
805
805
|
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
806
806
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
807
807
|
var coreJsData = context["__core-js_shared__"];
|
@@ -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 gt = 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 = gt;
|
5291
5291
|
lodash.gte = gte;
|
5292
5292
|
lodash.has = has;
|
5293
5293
|
lodash.hasIn = hasIn;
|
@@ -5575,17 +5575,17 @@ var require_lodash = __commonJS({
|
|
5575
5575
|
}
|
5576
5576
|
return lodash;
|
5577
5577
|
};
|
5578
|
-
var
|
5578
|
+
var _2 = runInContext();
|
5579
5579
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
5580
|
-
root._ =
|
5580
|
+
root._ = _2;
|
5581
5581
|
define(function() {
|
5582
|
-
return
|
5582
|
+
return _2;
|
5583
5583
|
});
|
5584
5584
|
} else if (freeModule) {
|
5585
|
-
(freeModule.exports =
|
5586
|
-
freeExports._ =
|
5585
|
+
(freeModule.exports = _2)._ = _2;
|
5586
|
+
freeExports._ = _2;
|
5587
5587
|
} else {
|
5588
|
-
root._ =
|
5588
|
+
root._ = _2;
|
5589
5589
|
}
|
5590
5590
|
}).call(exports);
|
5591
5591
|
}
|
@@ -7670,12 +7670,12 @@ var require_sdp = __commonJS({
|
|
7670
7670
|
return parsed;
|
7671
7671
|
};
|
7672
7672
|
SDPUtils2.writeRtpMap = function(codec) {
|
7673
|
-
let
|
7673
|
+
let pt = codec.payloadType;
|
7674
7674
|
if (codec.preferredPayloadType !== void 0) {
|
7675
|
-
|
7675
|
+
pt = codec.preferredPayloadType;
|
7676
7676
|
}
|
7677
7677
|
const channels = codec.channels || codec.numChannels || 1;
|
7678
|
-
return "a=rtpmap:" +
|
7678
|
+
return "a=rtpmap:" + pt + " " + 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 pt = codec.payloadType;
|
7705
7705
|
if (codec.preferredPayloadType !== void 0) {
|
7706
|
-
|
7706
|
+
pt = 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:" + pt + " " + 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 pt = codec.payloadType;
|
7731
7731
|
if (codec.preferredPayloadType !== void 0) {
|
7732
|
-
|
7732
|
+
pt = 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:" + pt + " " + 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 pt = mline[i];
|
7865
7865
|
const rtpmapline = SDPUtils2.matchPrefix(
|
7866
7866
|
mediaSection,
|
7867
|
-
"a=rtpmap:" +
|
7867
|
+
"a=rtpmap:" + pt + " "
|
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:" + pt + " "
|
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:" + pt + " "
|
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"
|
@@ -11056,7 +11051,7 @@ import { selectTrackAudioByID, useHMSVanillaStore } from "@100mslive/react-sdk";
|
|
11056
11051
|
var audio_level_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABABAMAAAAHc7SNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAtUExURQAAAP///////////////////////////////////////////////////////6FIq5sAAAAOdFJOUwA/QJqbnJ2euLnc3d7+2IFKrQAAAa9JREFUaN7dmcFRxDAMRXNgW4AbV24ZSkgrlAAFUAqlpITtgT0QnB22BnY3iWXHSlYz5H/NoJNO8bP8JTlyVW1k923/MveYdnc623PuUe3jsux37tEDcN24eFR7HJb9TD2qvQ/LfqUexR7a41Xx7bDsMfWo2j+NlnpU7TsBiOKdAOqoeCcAUTwFYFK8pn0GgFLttWVxAEq1pwJo1Z4KoFV7KoBW7YEAT0uK729pfxuAZcX/3Fr2TwAx05cVDwWIu11RPBQg7lZ0XlR7JIDsdkXxCIDp5GXf2v0GBxBP3pTfAIB48qb83h7AWtlhANbKDgOwVnYYgLWywwCsn/u/AO5HMIqwcwOovdNwLESNG8BQioNfKa52YwBsakC04/MF9C1Rw4HdjhU1SCyKqOCvZCGLhXgMgKgGiUWRI9hr+aSG+bU8sP4LyliIxwW4xOI1j8pKZlB/Tjt794ANpKzdAzOgaOzdAzKiCVpmkACWM4MEIFVCyQzfQWXnPao9eA+rG+dxfXB8L1jNB4pN+bCfd4re59Gqoz9alflQ+zzb7ZROwTWlUziEIO8UZCs7hc1+AbiVW6XSE8knAAAAAElFTkSuQmCC";
|
11057
11052
|
|
11058
11053
|
// src/AudioLevel/AudioLevel.tsx
|
11059
|
-
var positionValues = new Array(101).fill(0).reduce((acc,
|
11054
|
+
var positionValues = new Array(101).fill(0).reduce((acc, _2, index) => {
|
11060
11055
|
acc[index] = Math.round(index / 100 * 4) / 4;
|
11061
11056
|
return acc;
|
11062
11057
|
}, {});
|
@@ -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) => {
|
@@ -12423,12 +12418,12 @@ var formatTime = (timeInSeconds) => {
|
|
12423
12418
|
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
12424
12419
|
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
12425
12420
|
};
|
12426
|
-
var compareArrays = (a2,
|
12427
|
-
if (a2.length !==
|
12421
|
+
var compareArrays = (a2, b) => {
|
12422
|
+
if (a2.length !== b.length)
|
12428
12423
|
return false;
|
12429
12424
|
else {
|
12430
12425
|
for (var i = 0; i < a2.length; i++) {
|
12431
|
-
if (a2[i] !==
|
12426
|
+
if (a2[i] !== b[i]) {
|
12432
12427
|
return false;
|
12433
12428
|
}
|
12434
12429
|
}
|
@@ -12897,7 +12892,6 @@ import {
|
|
12897
12892
|
selectAppData as selectAppData9,
|
12898
12893
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
12899
12894
|
selectRoomState as selectRoomState7,
|
12900
|
-
useAVToggle as useAVToggle7,
|
12901
12895
|
useHMSActions as useHMSActions47,
|
12902
12896
|
useHMSStore as useHMSStore84
|
12903
12897
|
} from "@100mslive/react-sdk";
|
@@ -12907,7 +12901,6 @@ init_define_process_env();
|
|
12907
12901
|
import React77, { useEffect as useEffect20 } from "react";
|
12908
12902
|
import { useMedia as useMedia11 } from "react-use";
|
12909
12903
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
12910
|
-
import { useAVToggle as useAVToggle4 } from "@100mslive/react-sdk";
|
12911
12904
|
|
12912
12905
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
12913
12906
|
init_define_process_env();
|
@@ -12952,21 +12945,17 @@ var IconButton2 = styled(IconButton, {
|
|
12952
12945
|
border: "1px solid $border_bright",
|
12953
12946
|
bg: "$background_dim",
|
12954
12947
|
r: "$1",
|
12948
|
+
"&[disabled]": {
|
12949
|
+
opacity: 0.5,
|
12950
|
+
cursor: "not-allowed",
|
12951
|
+
backgroundColor: "$secondary_dim",
|
12952
|
+
color: "$on_primary_high"
|
12953
|
+
},
|
12955
12954
|
variants: {
|
12956
12955
|
active: {
|
12957
12956
|
true: {
|
12958
12957
|
color: "$on_surface_high",
|
12959
12958
|
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
12959
|
}
|
12971
12960
|
}
|
12972
12961
|
}
|
@@ -12992,9 +12981,9 @@ var IconSection = styled(IconButton_default, {
|
|
12992
12981
|
p: "$4",
|
12993
12982
|
r: "$1",
|
12994
12983
|
bg: "transparent",
|
12995
|
-
borderTopRightRadius: 0,
|
12984
|
+
borderTopRightRadius: "0 !important",
|
12996
12985
|
borderColor: "$border_bright",
|
12997
|
-
borderBottomRightRadius: 0,
|
12986
|
+
borderBottomRightRadius: "0 !important",
|
12998
12987
|
position: "relative",
|
12999
12988
|
"&:not([disabled]):focus-visible": {
|
13000
12989
|
zIndex: 1
|
@@ -13007,8 +12996,8 @@ var IconSection = styled(IconButton_default, {
|
|
13007
12996
|
variants: __spreadProps(__spreadValues({}, variants), {
|
13008
12997
|
hideOptions: {
|
13009
12998
|
true: {
|
13010
|
-
borderTopRightRadius: "$1",
|
13011
|
-
borderBottomRightRadius: "$1"
|
12999
|
+
borderTopRightRadius: "$1 !important",
|
13000
|
+
borderBottomRightRadius: "$1 !important"
|
13012
13001
|
}
|
13013
13002
|
}
|
13014
13003
|
})
|
@@ -13018,10 +13007,10 @@ var OptionsSection = styled(IconButton_default, {
|
|
13018
13007
|
h: "$14",
|
13019
13008
|
p: "$4 $2",
|
13020
13009
|
r: "$1",
|
13021
|
-
borderTopLeftRadius: 0,
|
13010
|
+
borderTopLeftRadius: "0 !important",
|
13022
13011
|
borderColor: "$border_bright",
|
13023
|
-
borderBottomLeftRadius: 0,
|
13024
|
-
borderLeftWidth: 0,
|
13012
|
+
borderBottomLeftRadius: "0 !important",
|
13013
|
+
borderLeftWidth: "0 !important",
|
13025
13014
|
position: "relative",
|
13026
13015
|
"&:not([disabled]):focus-visible": {
|
13027
13016
|
zIndex: 1
|
@@ -16079,7 +16068,7 @@ var MuteAllModal = ({
|
|
16079
16068
|
return /* @__PURE__ */ React51.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React51.createElement(DialogContent, { title: "Mute/Unmute Remote Tracks", Icon: MicOffIcon2 }, /* @__PURE__ */ React51.createElement(MuteAllContent, __spreadValues({}, props))));
|
16080
16069
|
};
|
16081
16070
|
|
16082
|
-
// src/Prebuilt/components/hooks/useMetadata.
|
16071
|
+
// src/Prebuilt/components/hooks/useMetadata.tsx
|
16083
16072
|
init_define_process_env();
|
16084
16073
|
import { useCallback as useCallback14 } from "react";
|
16085
16074
|
import {
|
@@ -16104,6 +16093,7 @@ var useMyMetadata = () => {
|
|
16104
16093
|
} catch (error) {
|
16105
16094
|
console.error("failed to update metadata ", updatedFields);
|
16106
16095
|
}
|
16096
|
+
return false;
|
16107
16097
|
});
|
16108
16098
|
const toggleHandRaise = useCallback14(() => __async(void 0, null, function* () {
|
16109
16099
|
if (isHandRaised) {
|
@@ -16120,19 +16110,13 @@ var useMyMetadata = () => {
|
|
16120
16110
|
yield hmsActions.lowerLocalPeerHand();
|
16121
16111
|
}
|
16122
16112
|
}), [metaData == null ? void 0 : metaData.isBRBOn]);
|
16123
|
-
const setPrevRole = (role) => __async(void 0, null, function* () {
|
16124
|
-
yield update({
|
16125
|
-
prevRole: role
|
16126
|
-
});
|
16127
|
-
});
|
16128
16113
|
return {
|
16129
16114
|
isHandRaised,
|
16130
16115
|
isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
|
16131
16116
|
metaData,
|
16132
16117
|
updateMetaData: update,
|
16133
16118
|
toggleHandRaise,
|
16134
|
-
toggleBRB
|
16135
|
-
setPrevRole
|
16119
|
+
toggleBRB
|
16136
16120
|
};
|
16137
16121
|
};
|
16138
16122
|
|
@@ -16257,7 +16241,6 @@ import {
|
|
16257
16241
|
selectIsConnectedToRoom as selectIsConnectedToRoom7,
|
16258
16242
|
selectPeerCount as selectPeerCount3,
|
16259
16243
|
selectPermissions as selectPermissions8,
|
16260
|
-
useAVToggle as useAVToggle3,
|
16261
16244
|
useHMSActions as useHMSActions21,
|
16262
16245
|
useHMSStore as useHMSStore29,
|
16263
16246
|
useRecordingStreaming as useRecordingStreaming7
|
@@ -16287,8 +16270,8 @@ init_define_process_env();
|
|
16287
16270
|
|
16288
16271
|
// ../../node_modules/reselect/es/index.js
|
16289
16272
|
init_define_process_env();
|
16290
|
-
function defaultEqualityCheck(a2,
|
16291
|
-
return a2 ===
|
16273
|
+
function defaultEqualityCheck(a2, b) {
|
16274
|
+
return a2 === b;
|
16292
16275
|
}
|
16293
16276
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
16294
16277
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -16365,8 +16348,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
16365
16348
|
// ../hms-video-store/dist/index.js
|
16366
16349
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
16367
16350
|
var import_lodash3 = __toESM(require_lodash2());
|
16351
|
+
import { v4 as ja } from "uuid";
|
16368
16352
|
import { v4 as Ka } from "uuid";
|
16369
|
-
import { v4 as $a } from "uuid";
|
16370
16353
|
|
16371
16354
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
16372
16355
|
init_define_process_env();
|
@@ -16604,7 +16587,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16604
16587
|
if (typeof c !== "object" || c.mandatory || c.optional) {
|
16605
16588
|
return c;
|
16606
16589
|
}
|
16607
|
-
const
|
16590
|
+
const cc2 = {};
|
16608
16591
|
Object.keys(c).forEach((key) => {
|
16609
16592
|
if (key === "require" || key === "advanced" || key === "mediaSource") {
|
16610
16593
|
return;
|
@@ -16620,35 +16603,35 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16620
16603
|
return name === "deviceId" ? "sourceId" : name;
|
16621
16604
|
};
|
16622
16605
|
if (r.ideal !== void 0) {
|
16623
|
-
|
16624
|
-
let
|
16606
|
+
cc2.optional = cc2.optional || [];
|
16607
|
+
let oc = {};
|
16625
16608
|
if (typeof r.ideal === "number") {
|
16626
|
-
|
16627
|
-
|
16628
|
-
|
16629
|
-
|
16630
|
-
|
16609
|
+
oc[oldname_("min", key)] = r.ideal;
|
16610
|
+
cc2.optional.push(oc);
|
16611
|
+
oc = {};
|
16612
|
+
oc[oldname_("max", key)] = r.ideal;
|
16613
|
+
cc2.optional.push(oc);
|
16631
16614
|
} else {
|
16632
|
-
|
16633
|
-
|
16615
|
+
oc[oldname_("", key)] = r.ideal;
|
16616
|
+
cc2.optional.push(oc);
|
16634
16617
|
}
|
16635
16618
|
}
|
16636
16619
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
16637
|
-
|
16638
|
-
|
16620
|
+
cc2.mandatory = cc2.mandatory || {};
|
16621
|
+
cc2.mandatory[oldname_("", key)] = r.exact;
|
16639
16622
|
} else {
|
16640
16623
|
["min", "max"].forEach((mix) => {
|
16641
16624
|
if (r[mix] !== void 0) {
|
16642
|
-
|
16643
|
-
|
16625
|
+
cc2.mandatory = cc2.mandatory || {};
|
16626
|
+
cc2.mandatory[oldname_(mix, key)] = r[mix];
|
16644
16627
|
}
|
16645
16628
|
});
|
16646
16629
|
}
|
16647
16630
|
});
|
16648
16631
|
if (c.advanced) {
|
16649
|
-
|
16632
|
+
cc2.optional = (cc2.optional || []).concat(c.advanced);
|
16650
16633
|
}
|
16651
|
-
return
|
16634
|
+
return cc2;
|
16652
16635
|
};
|
16653
16636
|
const shimConstraints_ = function(constraints, func) {
|
16654
16637
|
if (browserDetails.version >= 61) {
|
@@ -16656,9 +16639,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16656
16639
|
}
|
16657
16640
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16658
16641
|
if (constraints && typeof constraints.audio === "object") {
|
16659
|
-
const remap = function(obj, a2,
|
16660
|
-
if (a2 in obj && !(
|
16661
|
-
obj[
|
16642
|
+
const remap = function(obj, a2, b) {
|
16643
|
+
if (a2 in obj && !(b in obj)) {
|
16644
|
+
obj[b] = obj[a2];
|
16662
16645
|
delete obj[a2];
|
16663
16646
|
}
|
16664
16647
|
};
|
@@ -17400,9 +17383,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
17400
17383
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
17401
17384
|
};
|
17402
17385
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
17403
|
-
const remap = function(obj, a2,
|
17404
|
-
if (a2 in obj && !(
|
17405
|
-
obj[
|
17386
|
+
const remap = function(obj, a2, b) {
|
17387
|
+
if (a2 in obj && !(b in obj)) {
|
17388
|
+
obj[b] = obj[a2];
|
17406
17389
|
delete obj[a2];
|
17407
17390
|
}
|
17408
17391
|
};
|
@@ -18191,15 +18174,15 @@ function shimSendThrowTypeError(window2) {
|
|
18191
18174
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
18192
18175
|
return;
|
18193
18176
|
}
|
18194
|
-
function wrapDcSend(
|
18195
|
-
const origDataChannelSend =
|
18196
|
-
|
18177
|
+
function wrapDcSend(dc2, pc) {
|
18178
|
+
const origDataChannelSend = dc2.send;
|
18179
|
+
dc2.send = function send() {
|
18197
18180
|
const data3 = arguments[0];
|
18198
18181
|
const length = data3.length || data3.size || data3.byteLength;
|
18199
|
-
if (
|
18182
|
+
if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
|
18200
18183
|
throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
|
18201
18184
|
}
|
18202
|
-
return origDataChannelSend.apply(
|
18185
|
+
return origDataChannelSend.apply(dc2, arguments);
|
18203
18186
|
};
|
18204
18187
|
}
|
18205
18188
|
const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
|
@@ -18463,57 +18446,57 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
18463
18446
|
|
18464
18447
|
// ../hms-video-store/dist/index.js
|
18465
18448
|
var import_lodash4 = __toESM(require_lodash2());
|
18466
|
-
import { v4 as
|
18467
|
-
import { v4 as
|
18468
|
-
import { v4 as
|
18469
|
-
import { EventEmitter2 as
|
18470
|
-
var
|
18471
|
-
import { EventEmitter2 as
|
18472
|
-
import { v4 as
|
18473
|
-
import { EventEmitter2 as
|
18474
|
-
import
|
18475
|
-
import { v4 as
|
18476
|
-
import { v4 as
|
18477
|
-
var
|
18478
|
-
var
|
18479
|
-
var
|
18480
|
-
var
|
18481
|
-
var
|
18482
|
-
var
|
18483
|
-
var
|
18484
|
-
var
|
18449
|
+
import { v4 as ro } from "uuid";
|
18450
|
+
import { v4 as no } from "uuid";
|
18451
|
+
import { v4 as po } from "uuid";
|
18452
|
+
import { EventEmitter2 as ho } from "eventemitter2";
|
18453
|
+
var wt = __toESM(require_lib());
|
18454
|
+
import { EventEmitter2 as Lo } from "eventemitter2";
|
18455
|
+
import { v4 as _o } from "uuid";
|
18456
|
+
import { EventEmitter2 as No } from "eventemitter2";
|
18457
|
+
import Oo from "eventemitter2";
|
18458
|
+
import { v4 as xo } from "uuid";
|
18459
|
+
import { v4 as Vo } from "uuid";
|
18460
|
+
var Pa = Object.defineProperty;
|
18461
|
+
var Ea = Object.defineProperties;
|
18462
|
+
var ba = Object.getOwnPropertyDescriptors;
|
18463
|
+
var Ft = Object.getOwnPropertySymbols;
|
18464
|
+
var Wr = Object.prototype.hasOwnProperty;
|
18465
|
+
var Kr = Object.prototype.propertyIsEnumerable;
|
18466
|
+
var $r = (a2, e, t) => e in a2 ? Pa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
18467
|
+
var m = (a2, e) => {
|
18485
18468
|
for (var t in e || (e = {}))
|
18486
|
-
|
18487
|
-
if (
|
18488
|
-
for (var t of
|
18489
|
-
|
18469
|
+
Wr.call(e, t) && $r(a2, t, e[t]);
|
18470
|
+
if (Ft)
|
18471
|
+
for (var t of Ft(e))
|
18472
|
+
Kr.call(e, t) && $r(a2, t, e[t]);
|
18490
18473
|
return a2;
|
18491
18474
|
};
|
18492
|
-
var v = (a2, e) =>
|
18475
|
+
var v = (a2, e) => Ea(a2, ba(e));
|
18493
18476
|
var Xi = (a2, e) => {
|
18494
18477
|
var t = {};
|
18495
18478
|
for (var i in a2)
|
18496
|
-
|
18497
|
-
if (a2 != null &&
|
18498
|
-
for (var i of
|
18499
|
-
e.indexOf(i) < 0 &&
|
18479
|
+
Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
18480
|
+
if (a2 != null && Ft)
|
18481
|
+
for (var i of Ft(a2))
|
18482
|
+
e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
|
18500
18483
|
return t;
|
18501
18484
|
};
|
18502
|
-
var
|
18503
|
-
var lr =
|
18504
|
-
|
18485
|
+
var Ra = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18486
|
+
var lr = Ra((id, qa) => {
|
18487
|
+
qa.exports = { version: "0.12.3-alpha.6", 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
18488
|
});
|
18506
18489
|
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
|
-
var
|
18508
|
-
var
|
18490
|
+
var Ha = ((e) => (e.CHAT = "chat", e))(Ha || {});
|
18491
|
+
var qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
|
18509
18492
|
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
|
18493
|
+
var jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
|
18511
18494
|
function He(a2, e) {
|
18512
18495
|
let t, i;
|
18513
18496
|
if (e)
|
18514
18497
|
for (let r of e.auxiliaryTracks) {
|
18515
18498
|
let s = a2[r];
|
18516
|
-
|
18499
|
+
Ca(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
|
18517
18500
|
}
|
18518
18501
|
return { video: t, audio: i };
|
18519
18502
|
}
|
@@ -18523,16 +18506,16 @@ function tt(a2) {
|
|
18523
18506
|
function it(a2) {
|
18524
18507
|
return a2 && a2.type === "video";
|
18525
18508
|
}
|
18526
|
-
function
|
18509
|
+
function Ca(a2) {
|
18527
18510
|
return a2 && a2.source === "screen";
|
18528
18511
|
}
|
18529
|
-
function
|
18512
|
+
function Wt(a2) {
|
18530
18513
|
return a2 && a2.source === "audioplaylist";
|
18531
18514
|
}
|
18532
18515
|
function rt(a2) {
|
18533
18516
|
return a2 && a2.source === "videoplaylist";
|
18534
18517
|
}
|
18535
|
-
function
|
18518
|
+
function Jr(a2) {
|
18536
18519
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
18537
18520
|
}
|
18538
18521
|
function Ue(a2, e) {
|
@@ -18544,33 +18527,33 @@ function st(a2) {
|
|
18544
18527
|
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 };
|
18545
18528
|
}
|
18546
18529
|
var B = (a2) => a2.room;
|
18547
|
-
var
|
18548
|
-
var
|
18549
|
-
var
|
18530
|
+
var La = (a2) => a2.errors;
|
18531
|
+
var Hn = createSelector(La, (a2) => a2.length === 0 ? null : a2.at(-1));
|
18532
|
+
var Cn = createSelector(B, (a2) => a2.id);
|
18550
18533
|
var G = (a2) => a2.peers;
|
18551
|
-
var
|
18552
|
-
var
|
18553
|
-
var
|
18534
|
+
var Kt = (a2) => a2.messages.byID;
|
18535
|
+
var zr = (a2) => a2.messages.allIDs;
|
18536
|
+
var w = (a2) => a2.tracks;
|
18554
18537
|
var tr = (a2) => a2.appData;
|
18555
|
-
var
|
18538
|
+
var Da = (a2) => a2.speakers;
|
18556
18539
|
var ye = createSelector([B], (a2) => a2 && a2.isConnected);
|
18557
|
-
var
|
18558
|
-
var
|
18559
|
-
var oe = createSelector([B, G,
|
18560
|
-
var
|
18540
|
+
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));
|
18541
|
+
var wa = (a2) => a2.hideLocalPeer;
|
18542
|
+
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]));
|
18543
|
+
var _a7 = createSelector(w, (a2) => Object.values(a2));
|
18561
18544
|
var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
|
18562
18545
|
var ue = createSelector(B, (a2) => a2.localPeer);
|
18563
|
-
var
|
18564
|
-
var
|
18546
|
+
var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
|
18547
|
+
var Nn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
|
18565
18548
|
var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
18566
18549
|
var K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
18567
|
-
var
|
18568
|
-
var
|
18550
|
+
var Na = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
18551
|
+
var Xr = createSelector([Z, K, Na], (a2, e, t) => {
|
18569
18552
|
let i = t ? [...t] : [];
|
18570
18553
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
18571
18554
|
});
|
18572
|
-
var
|
18573
|
-
var
|
18555
|
+
var On = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
|
18556
|
+
var xn = createSelector(G, Da, (a2, e) => {
|
18574
18557
|
let t = Object.entries(e).sort((i, r) => {
|
18575
18558
|
var n, l;
|
18576
18559
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -18583,11 +18566,11 @@ var Nn = createSelector(G, Ca, (a2, e) => {
|
|
18583
18566
|
}
|
18584
18567
|
return null;
|
18585
18568
|
});
|
18586
|
-
var rr = createSelector(z,
|
18569
|
+
var rr = createSelector(z, w, (a2, e) => {
|
18587
18570
|
let { video: t, audio: i } = He(e, a2);
|
18588
18571
|
return !!(t || i);
|
18589
18572
|
});
|
18590
|
-
var
|
18573
|
+
var Oa = createSelector(G, w, (a2, e) => {
|
18591
18574
|
let t;
|
18592
18575
|
for (let i in a2) {
|
18593
18576
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -18597,15 +18580,15 @@ var _a7 = createSelector(G, D, (a2, e) => {
|
|
18597
18580
|
}
|
18598
18581
|
return t;
|
18599
18582
|
});
|
18600
|
-
var
|
18601
|
-
var
|
18583
|
+
var Bn = createSelector(Oa, (a2) => !!a2);
|
18584
|
+
var Vn = createSelector(G, w, (a2, e) => {
|
18602
18585
|
for (let t in a2) {
|
18603
18586
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
18604
18587
|
if (!s && r)
|
18605
18588
|
return i;
|
18606
18589
|
}
|
18607
18590
|
});
|
18608
|
-
var
|
18591
|
+
var Fn = createSelector(G, w, (a2, e) => {
|
18609
18592
|
let t = [], i = [];
|
18610
18593
|
for (let r in a2) {
|
18611
18594
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -18613,80 +18596,80 @@ var Bn = createSelector(G, D, (a2, e) => {
|
|
18613
18596
|
}
|
18614
18597
|
return t.concat(i);
|
18615
18598
|
});
|
18616
|
-
var
|
18599
|
+
var Gn = createSelector(G, w, (a2, e) => {
|
18617
18600
|
for (let t in e) {
|
18618
18601
|
let i = e[t];
|
18619
18602
|
if (rt(i) && it(i) && i.peerId)
|
18620
18603
|
return a2[i.peerId];
|
18621
18604
|
}
|
18622
18605
|
});
|
18623
|
-
var
|
18606
|
+
var $n = createSelector(G, w, (a2, e) => {
|
18624
18607
|
for (let t in e) {
|
18625
18608
|
let i = e[t];
|
18626
|
-
if (
|
18609
|
+
if (Wt(i) && i.peerId)
|
18627
18610
|
return a2[i.peerId];
|
18628
18611
|
}
|
18629
18612
|
});
|
18630
|
-
var
|
18631
|
-
var
|
18632
|
-
var
|
18633
|
-
var at = createSelector(
|
18613
|
+
var Wn = createSelector(_a7, (a2) => a2.filter(Jr));
|
18614
|
+
var Kn = createSelector(zr, (a2) => a2.length);
|
18615
|
+
var qn = createSelector(Kt, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
18616
|
+
var at = createSelector(zr, Kt, (a2, e) => {
|
18634
18617
|
let t = [];
|
18635
18618
|
return a2.forEach((i) => {
|
18636
18619
|
t.push(e[i]);
|
18637
18620
|
}), t;
|
18638
18621
|
});
|
18639
|
-
var
|
18622
|
+
var xa = createSelector(at, (a2) => a2.filter((e) => {
|
18640
18623
|
var t;
|
18641
18624
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
18642
18625
|
}));
|
18643
|
-
var
|
18626
|
+
var jn = createSelector(xa, (a2) => a2.filter((e) => !e.read).length);
|
18644
18627
|
var Y = createSelector([B], (a2) => a2 && a2.roomState);
|
18645
|
-
var
|
18646
|
-
var
|
18628
|
+
var es = createSelector(Y, (a2) => a2 === "Preview");
|
18629
|
+
var Jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
18647
18630
|
var ne = (a2) => a2.roles;
|
18648
|
-
var
|
18649
|
-
var
|
18650
|
-
var
|
18631
|
+
var Qn = createSelector([ne], (a2) => Object.keys(a2));
|
18632
|
+
var qt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
18633
|
+
var Ua = (a2) => {
|
18651
18634
|
var e;
|
18652
18635
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
18653
18636
|
};
|
18654
|
-
var
|
18655
|
-
var
|
18637
|
+
var ts = createSelector([Ua, ne], (a2, e) => a2 ? e[a2] : null);
|
18638
|
+
var zn = createSelector([qt], (a2) => {
|
18656
18639
|
var e;
|
18657
18640
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
18658
18641
|
});
|
18659
|
-
var
|
18660
|
-
var
|
18661
|
-
var
|
18662
|
-
var
|
18663
|
-
var
|
18664
|
-
var
|
18665
|
-
var
|
18666
|
-
var
|
18667
|
-
var
|
18668
|
-
var
|
18669
|
-
var
|
18670
|
-
var
|
18671
|
-
var
|
18672
|
-
var
|
18642
|
+
var is = createSelector(qt, (a2) => a2 == null ? void 0 : a2.permissions);
|
18643
|
+
var Yn = createSelector(B, (a2) => a2.recording);
|
18644
|
+
var Xn = createSelector(B, (a2) => a2.rtmp);
|
18645
|
+
var Zn = createSelector(B, (a2) => a2.hls);
|
18646
|
+
var ec = createSelector(B, (a2) => a2.sessionId);
|
18647
|
+
var tc = createSelector(B, (a2) => a2.startedAt);
|
18648
|
+
var ic = createSelector(B, (a2) => !!a2.isLargeRoom);
|
18649
|
+
var rc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
18650
|
+
var sc = createSelector(B, (a2) => a2.effectsKey);
|
18651
|
+
var rs = (a2) => a2.polls;
|
18652
|
+
var cc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
|
18653
|
+
var Ba = (a2) => a2.whiteboards;
|
18654
|
+
var dc = createSelector(Ba, (a2) => Object.values(a2)[0]);
|
18655
|
+
var as = (a2 = "audio") => (e) => e.playlist[a2].list;
|
18673
18656
|
var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
18674
|
-
var
|
18675
|
-
var
|
18676
|
-
var
|
18677
|
-
var
|
18678
|
-
var
|
18679
|
-
var
|
18657
|
+
var os = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
18658
|
+
var ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
18659
|
+
var cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
18660
|
+
var ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
18661
|
+
var ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
|
18662
|
+
var us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
|
18680
18663
|
if (t.id)
|
18681
18664
|
return e[t.id];
|
18682
18665
|
});
|
18683
|
-
var
|
18684
|
-
var
|
18685
|
-
function
|
18666
|
+
var ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
|
18667
|
+
var hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
|
18668
|
+
function A(a2) {
|
18686
18669
|
return (e) => (t) => a2(t, e);
|
18687
18670
|
}
|
18688
|
-
var
|
18689
|
-
var
|
18671
|
+
var ms = ((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))(ms || {});
|
18672
|
+
var Va = typeof window != "undefined" && typeof window.expect != "undefined";
|
18690
18673
|
var d = class {
|
18691
18674
|
static v(e, ...t) {
|
18692
18675
|
this.log(0, e, ...t);
|
@@ -18752,24 +18735,25 @@ var d = class {
|
|
18752
18735
|
}
|
18753
18736
|
}
|
18754
18737
|
};
|
18755
|
-
d.level =
|
18738
|
+
d.level = Va ? 7 : 0;
|
18756
18739
|
var pe = new import_ua_parser_js.UAParser();
|
18757
|
-
var
|
18758
|
-
var ms;
|
18759
|
-
var Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
18760
|
-
var Va = () => !Ce;
|
18761
|
-
var Sc = Va();
|
18740
|
+
var _ = typeof window != "undefined";
|
18762
18741
|
var Ss;
|
18742
|
+
var Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
|
18743
|
+
var Ga = () => !Ce;
|
18744
|
+
var Tc = Ga();
|
18763
18745
|
var gs;
|
18764
|
-
var
|
18765
|
-
|
18766
|
-
|
18746
|
+
var Ts;
|
18747
|
+
var vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
|
18748
|
+
var Ms = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ms || {});
|
18749
|
+
function $a() {
|
18750
|
+
if (_ && window) {
|
18767
18751
|
let a2 = window.location.hostname;
|
18768
18752
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
18769
18753
|
}
|
18770
18754
|
return "CUSTOM";
|
18771
18755
|
}
|
18772
|
-
var Ve =
|
18756
|
+
var Ve = $a();
|
18773
18757
|
var M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
18774
18758
|
var f = class a extends Error {
|
18775
18759
|
constructor(t, i, r, s, o, n = false) {
|
@@ -18800,8 +18784,8 @@ var f = class a extends Error {
|
|
18800
18784
|
}`;
|
18801
18785
|
}
|
18802
18786
|
};
|
18803
|
-
var
|
18804
|
-
var
|
18787
|
+
var Wa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
18788
|
+
var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
18805
18789
|
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
18806
18790
|
}, WebSocketConnectionLost(a2, e = "") {
|
18807
18791
|
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
|
@@ -18860,7 +18844,7 @@ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
18860
18844
|
}, StatsFailed(a2, e = "") {
|
18861
18845
|
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
18862
18846
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
18863
|
-
return new f(a2, "ServerErrors", e, t, t,
|
18847
|
+
return new f(a2, "ServerErrors", e, t, t, Wa.includes(e));
|
18864
18848
|
}, AlreadyJoined(a2, e = "") {
|
18865
18849
|
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
18866
18850
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
@@ -18933,11 +18917,11 @@ var nr = class {
|
|
18933
18917
|
return this.valuesMap.size;
|
18934
18918
|
}
|
18935
18919
|
};
|
18936
|
-
var
|
18920
|
+
var ys = () => {
|
18937
18921
|
try {
|
18938
|
-
|
18922
|
+
_ && !localStorage && (window.localStorage = new nr());
|
18939
18923
|
} catch (a2) {
|
18940
|
-
d.e("Error initialising localStorage",
|
18924
|
+
d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied());
|
18941
18925
|
}
|
18942
18926
|
};
|
18943
18927
|
var ce = class {
|
@@ -18947,9 +18931,9 @@ var ce = class {
|
|
18947
18931
|
}
|
18948
18932
|
getStorage() {
|
18949
18933
|
try {
|
18950
|
-
return
|
18934
|
+
return _ && !this.storage && (ys(), this.storage = window.localStorage), this.storage;
|
18951
18935
|
} catch (e) {
|
18952
|
-
return d.e("Error initialising localStorage",
|
18936
|
+
return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
|
18953
18937
|
}
|
18954
18938
|
}
|
18955
18939
|
get() {
|
@@ -18967,37 +18951,70 @@ var ce = class {
|
|
18967
18951
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
18968
18952
|
}
|
18969
18953
|
};
|
18970
|
-
var
|
18954
|
+
var ks = () => {
|
18971
18955
|
let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
|
18972
|
-
return t ? a2 = t : (a2 =
|
18956
|
+
return t ? a2 = t : (a2 = Ka(), e.set(a2)), a2;
|
18973
18957
|
};
|
18974
18958
|
function ie(a2) {
|
18975
18959
|
return a2 != null;
|
18976
18960
|
}
|
18977
|
-
var
|
18961
|
+
var Es = lr().version;
|
18978
18962
|
function ot(a2 = "prod", e) {
|
18979
18963
|
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
18980
18964
|
if (Ce)
|
18981
|
-
return
|
18965
|
+
return bs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Es, 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 });
|
18982
18966
|
let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
|
18983
|
-
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`),
|
18967
|
+
return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), bs({ os: n, os_version: l, sdk: t, sdk_version: Es, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
18984
18968
|
}
|
18985
18969
|
function ur(a2) {
|
18986
18970
|
return a2.replace(/ /g, "_");
|
18987
18971
|
}
|
18988
|
-
var
|
18972
|
+
var bs = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
18989
18973
|
var R = class {
|
18990
18974
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
18991
18975
|
this.metadata = { peer: {}, userAgent: ot() };
|
18992
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
18976
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = ja(), this.device_id = ks();
|
18993
18977
|
}
|
18994
18978
|
toSignalParams() {
|
18995
|
-
return { name: this.name, info: v(
|
18979
|
+
return { name: this.name, info: v(m({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
18996
18980
|
}
|
18997
18981
|
};
|
18982
|
+
var pr = class {
|
18983
|
+
constructor() {
|
18984
|
+
this.pluginUsage = /* @__PURE__ */ new Map();
|
18985
|
+
this.pluginLastAddedAt = /* @__PURE__ */ new Map();
|
18986
|
+
this.getPluginUsage = (e, t) => {
|
18987
|
+
let i = `${t}-${e}`;
|
18988
|
+
if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
|
18989
|
+
let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
|
18990
|
+
this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
|
18991
|
+
}
|
18992
|
+
return this.pluginUsage.get(i);
|
18993
|
+
};
|
18994
|
+
this.updatePluginUsageData = (e, t) => {
|
18995
|
+
if (e.name === "transport.leave") {
|
18996
|
+
this.cleanup(t);
|
18997
|
+
return;
|
18998
|
+
}
|
18999
|
+
let i = e.properties.plugin_name, r = `${t}-${i}`;
|
19000
|
+
if (e.name === "mediaPlugin.added") {
|
19001
|
+
let s = e.properties.added_at;
|
19002
|
+
this.pluginLastAddedAt.set(r, s);
|
19003
|
+
} else if (e.name === "mediaPlugin.stats") {
|
19004
|
+
let s = e.properties.duration;
|
19005
|
+
s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
|
19006
|
+
}
|
19007
|
+
};
|
19008
|
+
this.cleanup = (e) => {
|
19009
|
+
for (let t of this.pluginUsage.keys())
|
19010
|
+
e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
|
19011
|
+
};
|
19012
|
+
}
|
19013
|
+
};
|
19014
|
+
var nt = new pr();
|
18998
19015
|
var y = class {
|
18999
19016
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
19000
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(
|
19017
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
19001
19018
|
return new R({ name: o, level: n, properties: l });
|
19002
19019
|
}
|
19003
19020
|
static disconnect(e, t) {
|
@@ -19011,7 +19028,7 @@ var y = class {
|
|
19011
19028
|
}
|
19012
19029
|
static join(i) {
|
19013
19030
|
var r = i, { error: e } = r, t = Xi(r, ["error"]);
|
19014
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(
|
19031
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
19015
19032
|
return new R({ name: s, level: o, properties: n });
|
19016
19033
|
}
|
19017
19034
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -19054,7 +19071,7 @@ var y = class {
|
|
19054
19071
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
19055
19072
|
if (!t && e.degradedAt instanceof Date) {
|
19056
19073
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
19057
|
-
s = v(
|
19074
|
+
s = v(m({}, s), { duration: n, restoredAt: o });
|
19058
19075
|
}
|
19059
19076
|
return new R({ name: i, level: r, properties: s });
|
19060
19077
|
}
|
@@ -19072,7 +19089,8 @@ var y = class {
|
|
19072
19089
|
return new R({ name: "subscriber.stats", level: 1, properties: e });
|
19073
19090
|
}
|
19074
19091
|
static getKrispUsage(e) {
|
19075
|
-
|
19092
|
+
let t = nt.getPluginUsage("HMSKrispPlugin", e);
|
19093
|
+
return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
|
19076
19094
|
}
|
19077
19095
|
static transportLeave() {
|
19078
19096
|
return new R({ name: "transport.leave", level: 1, properties: {} });
|
@@ -19082,14 +19100,14 @@ var y = class {
|
|
19082
19100
|
}
|
19083
19101
|
static getPropertiesWithError(e, t) {
|
19084
19102
|
let i = this.getErrorProperties(t);
|
19085
|
-
return e =
|
19103
|
+
return e = m(m({}, i), e), e;
|
19086
19104
|
}
|
19087
19105
|
static getErrorProperties(e) {
|
19088
19106
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
19089
19107
|
}
|
19090
19108
|
};
|
19091
19109
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
19092
|
-
var
|
19110
|
+
var hr = class {
|
19093
19111
|
constructor() {
|
19094
19112
|
this.storage = new ce("hms-device-selection");
|
19095
19113
|
this.remember = false;
|
@@ -19123,10 +19141,10 @@ var pr = class {
|
|
19123
19141
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
19124
19142
|
}
|
19125
19143
|
};
|
19126
|
-
var q = new
|
19127
|
-
var
|
19128
|
-
var
|
19129
|
-
function
|
19144
|
+
var q = new hr();
|
19145
|
+
var mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
|
19146
|
+
var Sr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Sr || {});
|
19147
|
+
function Qt(a2, e = 300) {
|
19130
19148
|
let t;
|
19131
19149
|
return function(...i) {
|
19132
19150
|
clearTimeout(t), t = void 0;
|
@@ -19136,10 +19154,10 @@ function Jt(a2, e = 300) {
|
|
19136
19154
|
}, e);
|
19137
19155
|
};
|
19138
19156
|
}
|
19139
|
-
var
|
19140
|
-
var
|
19141
|
-
var
|
19142
|
-
var
|
19157
|
+
var Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
|
19158
|
+
var Ds = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ds || {});
|
19159
|
+
var ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ws || {});
|
19160
|
+
var gr = class {
|
19143
19161
|
constructor() {
|
19144
19162
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
19145
19163
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19162,12 +19180,12 @@ var Sr = class {
|
|
19162
19180
|
this.createObserver();
|
19163
19181
|
}
|
19164
19182
|
isSupported() {
|
19165
|
-
let e =
|
19183
|
+
let e = _ && typeof window.IntersectionObserver != "undefined";
|
19166
19184
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
19167
19185
|
}
|
19168
19186
|
};
|
19169
|
-
var
|
19170
|
-
var
|
19187
|
+
var xs = new gr();
|
19188
|
+
var Tr = class {
|
19171
19189
|
constructor() {
|
19172
19190
|
this.TAG = "[HMSResizeObserverWrapper]";
|
19173
19191
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19180,7 +19198,7 @@ var gr = class {
|
|
19180
19198
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
19181
19199
|
};
|
19182
19200
|
this.createObserver = () => {
|
19183
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
19201
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Qt(this.handleResize, 300)));
|
19184
19202
|
};
|
19185
19203
|
this.handleResize = (e) => {
|
19186
19204
|
var t;
|
@@ -19190,20 +19208,20 @@ var gr = class {
|
|
19190
19208
|
this.createObserver();
|
19191
19209
|
}
|
19192
19210
|
isSupported() {
|
19193
|
-
let e =
|
19211
|
+
let e = _ && typeof window.ResizeObserver != "undefined";
|
19194
19212
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
19195
19213
|
}
|
19196
19214
|
};
|
19197
|
-
var
|
19198
|
-
var
|
19199
|
-
var
|
19200
|
-
var
|
19201
|
-
var
|
19202
|
-
var
|
19215
|
+
var Us = new Tr();
|
19216
|
+
var fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
|
19217
|
+
var vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
|
19218
|
+
var Fs = "https://event.100ms.live/v2/client/report";
|
19219
|
+
var Gs = "https://event-nonprod.100ms.live/v2/client/report";
|
19220
|
+
var ht = Math.pow(2, 31) - 1;
|
19203
19221
|
var Qe = class {
|
19204
19222
|
};
|
19205
|
-
Qe.makePeerId = () =>
|
19206
|
-
var
|
19223
|
+
Qe.makePeerId = () => po();
|
19224
|
+
var Tt = "HMS-Store:";
|
19207
19225
|
var k = class {
|
19208
19226
|
static v(e, ...t) {
|
19209
19227
|
this.log(0, e, ...t);
|
@@ -19233,23 +19251,23 @@ var k = class {
|
|
19233
19251
|
if (!(this.level.valueOf() > e.valueOf()))
|
19234
19252
|
switch (e) {
|
19235
19253
|
case 0: {
|
19236
|
-
console.log(
|
19254
|
+
console.log(Tt, ...t);
|
19237
19255
|
break;
|
19238
19256
|
}
|
19239
19257
|
case 1: {
|
19240
|
-
console.debug(
|
19258
|
+
console.debug(Tt, ...t);
|
19241
19259
|
break;
|
19242
19260
|
}
|
19243
19261
|
case 2: {
|
19244
|
-
console.info(
|
19262
|
+
console.info(Tt, ...t);
|
19245
19263
|
break;
|
19246
19264
|
}
|
19247
19265
|
case 3: {
|
19248
|
-
console.warn(
|
19266
|
+
console.warn(Tt, ...t);
|
19249
19267
|
break;
|
19250
19268
|
}
|
19251
19269
|
case 6: {
|
19252
|
-
console.error(
|
19270
|
+
console.error(Tt, ...t);
|
19253
19271
|
break;
|
19254
19272
|
}
|
19255
19273
|
case 4: {
|
@@ -19270,132 +19288,132 @@ var k = class {
|
|
19270
19288
|
}
|
19271
19289
|
};
|
19272
19290
|
k.level = 0;
|
19273
|
-
var
|
19274
|
-
var
|
19275
|
-
var
|
19276
|
-
var
|
19277
|
-
var
|
19278
|
-
var J = createSelector([G,
|
19279
|
-
var
|
19280
|
-
var
|
19291
|
+
var Hr = (a2, e) => e;
|
19292
|
+
var ft = (a2, e) => e;
|
19293
|
+
var Qs = (a2, e) => e;
|
19294
|
+
var mo = (a2, e) => e;
|
19295
|
+
var So = (a2, e) => e;
|
19296
|
+
var J = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
|
19297
|
+
var Cr = createSelector([w, ft], (a2, e) => e ? a2[e] : null);
|
19298
|
+
var go = createSelector([w, ft], (a2, e) => {
|
19281
19299
|
if (!e)
|
19282
19300
|
return null;
|
19283
19301
|
let t = a2[e];
|
19284
19302
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
19285
19303
|
});
|
19286
|
-
var
|
19304
|
+
var To = createSelector([w, ft], (a2, e) => {
|
19287
19305
|
if (!e)
|
19288
19306
|
return null;
|
19289
19307
|
let t = a2[e];
|
19290
19308
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
19291
19309
|
});
|
19292
|
-
var
|
19310
|
+
var fo = createSelector([w, ft], (a2, e) => {
|
19293
19311
|
if (!e)
|
19294
19312
|
return null;
|
19295
19313
|
let t = a2[e];
|
19296
19314
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19297
19315
|
});
|
19298
|
-
var
|
19316
|
+
var vo = createSelector([w, ft], (a2, e) => {
|
19299
19317
|
if (!e)
|
19300
19318
|
return null;
|
19301
19319
|
let t = a2[e];
|
19302
19320
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19303
19321
|
});
|
19304
|
-
var
|
19305
|
-
var Q =
|
19306
|
-
var
|
19322
|
+
var Mo = createSelector([rs, So], (a2, e) => e ? a2[e] : null);
|
19323
|
+
var Q = A(J);
|
19324
|
+
var cm = A(createSelector([tr, mo], (a2, e) => {
|
19307
19325
|
if (a2)
|
19308
19326
|
return e ? a2[e] : a2;
|
19309
19327
|
}));
|
19310
|
-
function
|
19328
|
+
function dm(a2) {
|
19311
19329
|
return (e) => {
|
19312
19330
|
if (e.sessionStore)
|
19313
19331
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19314
19332
|
};
|
19315
19333
|
}
|
19316
|
-
var
|
19317
|
-
var
|
19318
|
-
var
|
19319
|
-
var
|
19320
|
-
var
|
19321
|
-
var
|
19322
|
-
var
|
19334
|
+
var um = A(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
19335
|
+
var ni = A(Cr);
|
19336
|
+
var zs = A(go);
|
19337
|
+
var pm = A(To);
|
19338
|
+
var hm = A(fo);
|
19339
|
+
var mm = A(vo);
|
19340
|
+
var yo = A((a2, e) => {
|
19323
19341
|
let t = J(a2, e);
|
19324
19342
|
if (t && t.videoTrack && t.videoTrack !== "")
|
19325
19343
|
return a2.tracks[t.videoTrack];
|
19326
19344
|
});
|
19327
|
-
var
|
19345
|
+
var ko = A((a2, e) => {
|
19328
19346
|
let t = J(a2, e);
|
19329
19347
|
if (t && t.audioTrack && t.audioTrack !== "")
|
19330
19348
|
return a2.tracks[t.audioTrack];
|
19331
19349
|
});
|
19332
|
-
var
|
19350
|
+
var gm = A((a2, e) => {
|
19333
19351
|
let t = J(a2, e);
|
19334
19352
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
19335
19353
|
});
|
19336
|
-
var
|
19337
|
-
var
|
19338
|
-
var
|
19339
|
-
let t =
|
19340
|
-
return
|
19341
|
-
};
|
19342
|
-
var
|
19343
|
-
var
|
19354
|
+
var Ys = (a2, e) => e ? a2.speakers[e] : null;
|
19355
|
+
var Tm = A(createSelector(Ys, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19356
|
+
var Po = (a2, e) => {
|
19357
|
+
let t = ko(e)(a2);
|
19358
|
+
return Ys(a2, t == null ? void 0 : t.id);
|
19359
|
+
};
|
19360
|
+
var fm = A(createSelector(Po, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19361
|
+
var vm = A((a2, e) => {
|
19344
19362
|
if (e)
|
19345
19363
|
return a2.connectionQualities[e];
|
19346
19364
|
});
|
19347
|
-
var
|
19365
|
+
var Mm = A((a2, e) => {
|
19348
19366
|
let t = J(a2, e);
|
19349
19367
|
if (t) {
|
19350
19368
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
|
19351
19369
|
return i ? a2.tracks[i] : void 0;
|
19352
19370
|
}
|
19353
19371
|
});
|
19354
|
-
var
|
19372
|
+
var ym = A(createSelector(w, J, (a2, e) => {
|
19355
19373
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19356
19374
|
let r = a2[i];
|
19357
19375
|
return rt(r) && it(r);
|
19358
19376
|
});
|
19359
19377
|
return t ? a2[t] : void 0;
|
19360
19378
|
}));
|
19361
|
-
var
|
19379
|
+
var km = A(createSelector(w, J, (a2, e) => {
|
19362
19380
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19363
19381
|
let r = a2[i];
|
19364
19382
|
return rt(r) && tt(r);
|
19365
19383
|
});
|
19366
19384
|
return t ? a2[t] : void 0;
|
19367
19385
|
}));
|
19368
|
-
var
|
19386
|
+
var Pm = A(createSelector(w, J, (a2, e) => {
|
19369
19387
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19370
19388
|
let r = a2[i];
|
19371
|
-
return
|
19389
|
+
return Wt(r) && tt(r);
|
19372
19390
|
});
|
19373
19391
|
return t ? a2[t] : void 0;
|
19374
19392
|
}));
|
19375
|
-
var
|
19376
|
-
var
|
19377
|
-
var
|
19393
|
+
var Xs = A(createSelector(w, J, (a2, e) => He(a2, e)));
|
19394
|
+
var Zs = (a2) => createSelector(Xs(a2), (e) => e.audio);
|
19395
|
+
var bm = A((a2, e) => {
|
19378
19396
|
let t = J(a2, e);
|
19379
19397
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
19380
19398
|
});
|
19381
|
-
var
|
19399
|
+
var Am = A((a2, e) => {
|
19382
19400
|
let t = J(a2, e);
|
19383
19401
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
19384
19402
|
});
|
19385
|
-
var
|
19403
|
+
var ea = A((a2, e) => {
|
19386
19404
|
if (e && a2.tracks[e])
|
19387
19405
|
return a2.tracks[e].volume === 0;
|
19388
19406
|
});
|
19389
|
-
var
|
19407
|
+
var Im = A((a2, e) => {
|
19390
19408
|
let t = J(a2, e);
|
19391
|
-
return
|
19409
|
+
return ea(t == null ? void 0 : t.audioTrack)(a2);
|
19392
19410
|
});
|
19393
|
-
var
|
19394
|
-
let t =
|
19395
|
-
return
|
19411
|
+
var Rm = A((a2, e) => {
|
19412
|
+
let t = Zs(e)(a2);
|
19413
|
+
return ea(t == null ? void 0 : t.id)(a2);
|
19396
19414
|
});
|
19397
|
-
var
|
19398
|
-
let t =
|
19415
|
+
var ta = A((a2, e) => {
|
19416
|
+
let t = Cr(a2, e);
|
19399
19417
|
if (t) {
|
19400
19418
|
if (t.type !== "audio") {
|
19401
19419
|
k.w("Please pass audio track here");
|
@@ -19404,16 +19422,16 @@ var Zs = b((a2, e) => {
|
|
19404
19422
|
return t.volume;
|
19405
19423
|
}
|
19406
19424
|
});
|
19407
|
-
var
|
19425
|
+
var Hm = A((a2, e) => {
|
19408
19426
|
let t = J(a2, e);
|
19409
|
-
return
|
19427
|
+
return ta(t == null ? void 0 : t.audioTrack)(a2);
|
19410
19428
|
});
|
19411
|
-
var
|
19412
|
-
let t =
|
19413
|
-
return
|
19429
|
+
var Cm = A((a2, e) => {
|
19430
|
+
let t = Zs(e)(a2);
|
19431
|
+
return ta(t == null ? void 0 : t.id)(a2);
|
19414
19432
|
});
|
19415
|
-
var
|
19416
|
-
let t =
|
19433
|
+
var Lm = A((a2, e) => {
|
19434
|
+
let t = Cr(a2, e);
|
19417
19435
|
if (t) {
|
19418
19436
|
if (t.type !== "video") {
|
19419
19437
|
k.w("Please pass video track here");
|
@@ -19422,49 +19440,49 @@ var Em = b((a2, e) => {
|
|
19422
19440
|
return t.layer;
|
19423
19441
|
}
|
19424
19442
|
});
|
19425
|
-
var
|
19443
|
+
var ia = createSelector([at, ue, Hr], (a2, e, t) => {
|
19426
19444
|
if (t)
|
19427
19445
|
return a2.filter((i) => {
|
19428
19446
|
var r;
|
19429
19447
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
19430
19448
|
});
|
19431
19449
|
});
|
19432
|
-
var
|
19450
|
+
var ra = createSelector([at, Qs], (a2, e) => {
|
19433
19451
|
if (e)
|
19434
19452
|
return a2.filter((t) => {
|
19435
19453
|
var i, r;
|
19436
19454
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
19437
19455
|
});
|
19438
19456
|
});
|
19439
|
-
var
|
19457
|
+
var Eo = createSelector(at, (a2) => a2.filter((e) => {
|
19440
19458
|
var t;
|
19441
19459
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
19442
19460
|
}));
|
19443
|
-
var
|
19444
|
-
var
|
19445
|
-
var
|
19446
|
-
var
|
19447
|
-
var
|
19448
|
-
var
|
19449
|
-
var
|
19450
|
-
var
|
19451
|
-
var
|
19461
|
+
var bo = createSelector([ra, Qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19462
|
+
var Ao = createSelector([ia, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19463
|
+
var Dm = createSelector(Eo, (a2) => a2.filter((e) => !e.read).length);
|
19464
|
+
var wm = A(ia);
|
19465
|
+
var _m = A(ra);
|
19466
|
+
var Nm = A(bo);
|
19467
|
+
var Om = A(Ao);
|
19468
|
+
var sa = A(Mo);
|
19469
|
+
var jm = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
|
19452
19470
|
var r;
|
19453
19471
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
19454
19472
|
}));
|
19455
|
-
var
|
19456
|
-
var
|
19457
|
-
var
|
19458
|
-
var
|
19459
|
-
var
|
19473
|
+
var Io = (a2) => a2.roleChangeRequests[0] || null;
|
19474
|
+
var Jm = createSelector([Io, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
19475
|
+
var Qm = createSelector([qt], (a2) => st(a2));
|
19476
|
+
var zm = createSelector([ts], (a2) => st(a2));
|
19477
|
+
var Ho = createSelector([K, w], (a2, e) => {
|
19460
19478
|
let t = null;
|
19461
19479
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19462
19480
|
});
|
19463
|
-
var
|
19481
|
+
var Co = createSelector([Z, w], (a2, e) => {
|
19464
19482
|
let t = null;
|
19465
19483
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19466
19484
|
});
|
19467
|
-
var
|
19485
|
+
var Nr = class {
|
19468
19486
|
constructor() {
|
19469
19487
|
this.TAG = "[HTTPAnalyticsTransport]";
|
19470
19488
|
this.failedEvents = new ce("client-events");
|
@@ -19483,7 +19501,7 @@ var _r = class {
|
|
19483
19501
|
this.addEventToStorage(e);
|
19484
19502
|
return;
|
19485
19503
|
}
|
19486
|
-
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ?
|
19504
|
+
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Fs : Gs;
|
19487
19505
|
fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
|
19488
19506
|
if (r.status === 401) {
|
19489
19507
|
this.removeFromStorage(e);
|
@@ -19509,66 +19527,66 @@ var _r = class {
|
|
19509
19527
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
19510
19528
|
}
|
19511
19529
|
};
|
19512
|
-
var Te = new
|
19530
|
+
var Te = new Nr();
|
19513
19531
|
var $ = ((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))($ || {});
|
19514
19532
|
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 || {});
|
19515
19533
|
var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
|
19516
|
-
var
|
19517
|
-
var
|
19518
|
-
var
|
19519
|
-
var
|
19520
|
-
var
|
19521
|
-
var
|
19522
|
-
var
|
19523
|
-
var
|
19524
|
-
var ve = createSelector([
|
19525
|
-
var
|
19534
|
+
var zo = (a2) => a2.localPeer.id;
|
19535
|
+
var Yo = (a2) => a2.localPeer.audioTrack;
|
19536
|
+
var Xo = (a2) => a2.localPeer.videoTrack;
|
19537
|
+
var Zo = (a2, e) => e;
|
19538
|
+
var ya = (a2, e) => e;
|
19539
|
+
var en = (a2) => a2.remoteTrackStats;
|
19540
|
+
var ka = (a2) => a2.peerStats;
|
19541
|
+
var Vr = (a2) => a2.localTrackStats;
|
19542
|
+
var ve = createSelector([ka, zo], (a2, e) => a2[e]);
|
19543
|
+
var tn = createSelector(ve, (a2) => {
|
19526
19544
|
var e;
|
19527
19545
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
19528
19546
|
});
|
19529
|
-
var
|
19547
|
+
var rn = createSelector(ve, (a2) => {
|
19530
19548
|
var e;
|
19531
19549
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
19532
19550
|
});
|
19533
|
-
var
|
19551
|
+
var sn = createSelector(ve, (a2) => {
|
19534
19552
|
var e;
|
19535
19553
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
19536
19554
|
});
|
19537
|
-
var
|
19555
|
+
var an = createSelector(ve, (a2) => {
|
19538
19556
|
var e;
|
19539
19557
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
19540
19558
|
});
|
19541
|
-
var
|
19559
|
+
var on = createSelector(ve, (a2) => {
|
19542
19560
|
var e;
|
19543
19561
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
19544
19562
|
});
|
19545
|
-
var
|
19563
|
+
var nn = createSelector(ve, (a2) => {
|
19546
19564
|
var e;
|
19547
19565
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
19548
19566
|
});
|
19549
|
-
var
|
19567
|
+
var cn = createSelector(ve, (a2) => {
|
19550
19568
|
var e;
|
19551
19569
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
19552
19570
|
});
|
19553
|
-
var
|
19571
|
+
var dn = createSelector(ve, (a2) => {
|
19554
19572
|
var e;
|
19555
19573
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
19556
19574
|
});
|
19557
|
-
var
|
19558
|
-
var
|
19559
|
-
var
|
19560
|
-
var
|
19561
|
-
var
|
19562
|
-
var
|
19575
|
+
var ln = createSelector([ka, Zo], (a2, e) => e ? a2[e] : void 0);
|
19576
|
+
var un = createSelector([en, ya], (a2, e) => e ? a2[e] : void 0);
|
19577
|
+
var Fr = createSelector([Vr, ya], (a2, e) => e ? a2[e] : void 0);
|
19578
|
+
var pn = A(ln);
|
19579
|
+
var hn = A(un);
|
19580
|
+
var mn = createSelector([Vr, Yo], (a2, e) => {
|
19563
19581
|
var t;
|
19564
19582
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19565
19583
|
});
|
19566
|
-
var
|
19567
|
-
var
|
19584
|
+
var Sn = A(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
|
19585
|
+
var gn = createSelector([Vr, Xo], (a2, e) => {
|
19568
19586
|
var t;
|
19569
19587
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19570
19588
|
});
|
19571
|
-
var
|
19589
|
+
var Tn = A(createSelector(Fr, (a2) => a2));
|
19572
19590
|
|
19573
19591
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
19574
19592
|
import {
|
@@ -19838,7 +19856,7 @@ var RecordingStatus = () => {
|
|
19838
19856
|
};
|
19839
19857
|
var RecordingPauseStatus = () => {
|
19840
19858
|
const recording = useHMSStore25(selectRecordingState);
|
19841
|
-
if (recording.hls && recording.hls.state ===
|
19859
|
+
if (recording.hls && recording.hls.state === Ls.PAUSED) {
|
19842
19860
|
return /* @__PURE__ */ React54.createElement(
|
19843
19861
|
Tooltip,
|
19844
19862
|
{
|
@@ -20238,8 +20256,6 @@ var MwebOptions = ({
|
|
20238
20256
|
const peerCount = useHMSStore29(selectPeerCount3);
|
20239
20257
|
const emojiCardRef = useRef14(null);
|
20240
20258
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
20241
|
-
const { toggleAudio, toggleVideo } = useAVToggle3();
|
20242
|
-
const noAVPermissions = !(toggleAudio || toggleVideo);
|
20243
20259
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
20244
20260
|
const { title, description } = useRoomLayoutHeader();
|
20245
20261
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -20301,7 +20317,7 @@ var MwebOptions = ({
|
|
20301
20317
|
/* @__PURE__ */ React58.createElement(PeopleIcon, null),
|
20302
20318
|
/* @__PURE__ */ React58.createElement(ActionTile.Title, null, "Participants")
|
20303
20319
|
),
|
20304
|
-
|
20320
|
+
elements.hand_raise ? /* @__PURE__ */ React58.createElement(
|
20305
20321
|
ActionTile.Root,
|
20306
20322
|
{
|
20307
20323
|
active: isHandRaised,
|
@@ -20475,6 +20491,10 @@ import React60 from "react";
|
|
20475
20491
|
import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
|
20476
20492
|
var RaiseHand = ({ css: css2 }) => {
|
20477
20493
|
const { isHandRaised, toggleHandRaise } = useMyMetadata();
|
20494
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
20495
|
+
if (!elements.hand_raise) {
|
20496
|
+
return null;
|
20497
|
+
}
|
20478
20498
|
return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
|
20479
20499
|
IconButton_default,
|
20480
20500
|
{
|
@@ -20998,7 +21018,7 @@ init_define_process_env();
|
|
20998
21018
|
import React69 from "react";
|
20999
21019
|
import { selectUnreadHMSMessagesCount, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
|
21000
21020
|
import { ChatIcon } from "@100mslive/react-icons";
|
21001
|
-
var ChatToggle = () => {
|
21021
|
+
var ChatToggle = ({ onClick }) => {
|
21002
21022
|
const countUnreadMessages = useHMSStore32(selectUnreadHMSMessagesCount);
|
21003
21023
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21004
21024
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
@@ -21009,7 +21029,7 @@ var ChatToggle = () => {
|
|
21009
21029
|
position: "relative"
|
21010
21030
|
}
|
21011
21031
|
},
|
21012
|
-
/* @__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))),
|
21032
|
+
/* @__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))),
|
21013
21033
|
countUnreadMessages > 0 && /* @__PURE__ */ React69.createElement(
|
21014
21034
|
Flex,
|
21015
21035
|
{
|
@@ -21464,6 +21484,7 @@ var RoleAccordion = ({
|
|
21464
21484
|
return /* @__PURE__ */ React73.createElement(Accordion.Item, { value: roleName, css: { "&:hover .role_actions": { visibility: "visible" }, mb: "$8" }, ref }, /* @__PURE__ */ React73.createElement(
|
21465
21485
|
Accordion.Header,
|
21466
21486
|
{
|
21487
|
+
chevronID: `role_accordion_btn_${roleName}`,
|
21467
21488
|
iconStyles: { c: "$on_surface_high" },
|
21468
21489
|
css: {
|
21469
21490
|
textTransform: "capitalize",
|
@@ -21516,7 +21537,7 @@ var RoleAccordion = ({
|
|
21516
21537
|
},
|
21517
21538
|
/* @__PURE__ */ React73.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
|
21518
21539
|
/* @__PURE__ */ React73.createElement(ChevronRightIcon, null)
|
21519
|
-
) : 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"),
|
21540
|
+
) : 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)))));
|
21520
21541
|
};
|
21521
21542
|
|
21522
21543
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
@@ -21808,7 +21829,10 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
|
21808
21829
|
peerId,
|
21809
21830
|
role
|
21810
21831
|
});
|
21811
|
-
|
21832
|
+
if (!shouldShowStageRoleChange) {
|
21833
|
+
return null;
|
21834
|
+
}
|
21835
|
+
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 })));
|
21812
21836
|
};
|
21813
21837
|
var ParticipantMoreActions = ({ peerId, role }) => {
|
21814
21838
|
const {
|
@@ -21921,29 +21945,42 @@ var PollsToggle = () => {
|
|
21921
21945
|
// src/Prebuilt/components/Footer/WhiteboardToggle.tsx
|
21922
21946
|
init_define_process_env();
|
21923
21947
|
import React76 from "react";
|
21924
|
-
import { useWhiteboard } from "@100mslive/react-sdk";
|
21948
|
+
import { useScreenShare as useScreenShare4, useWhiteboard } from "@100mslive/react-sdk";
|
21925
21949
|
import { PencilDrawIcon } from "@100mslive/react-icons";
|
21926
21950
|
var WhiteboardToggle = () => {
|
21927
21951
|
const { toggle, open, isOwner } = useWhiteboard();
|
21952
|
+
const { screenSharingPeerId, amIScreenSharing } = useScreenShare4();
|
21953
|
+
const remoteScreenShare = screenSharingPeerId && !amIScreenSharing;
|
21954
|
+
const disabled = remoteScreenShare || open && !isOwner;
|
21928
21955
|
if (!toggle) {
|
21929
21956
|
return null;
|
21930
21957
|
}
|
21931
|
-
return /* @__PURE__ */ React76.createElement(
|
21932
|
-
|
21958
|
+
return /* @__PURE__ */ React76.createElement(
|
21959
|
+
Tooltip,
|
21933
21960
|
{
|
21934
|
-
|
21935
|
-
|
21936
|
-
yield toggle();
|
21937
|
-
} catch (error) {
|
21938
|
-
ToastManager.addToast({ title: error.message, variant: "error" });
|
21939
|
-
}
|
21940
|
-
}),
|
21941
|
-
active: !open,
|
21942
|
-
disabled: open && !isOwner,
|
21943
|
-
"data-testid": "whiteboard_btn"
|
21961
|
+
key: "whiteboard",
|
21962
|
+
title: remoteScreenShare ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
|
21944
21963
|
},
|
21945
|
-
/* @__PURE__ */ React76.createElement(
|
21946
|
-
|
21964
|
+
/* @__PURE__ */ React76.createElement(
|
21965
|
+
IconButton_default,
|
21966
|
+
{
|
21967
|
+
onClick: () => __async(void 0, null, function* () {
|
21968
|
+
if (disabled) {
|
21969
|
+
return;
|
21970
|
+
}
|
21971
|
+
try {
|
21972
|
+
yield toggle();
|
21973
|
+
} catch (error) {
|
21974
|
+
ToastManager.addToast({ title: error.message, variant: "error" });
|
21975
|
+
}
|
21976
|
+
}),
|
21977
|
+
active: !open,
|
21978
|
+
disabled,
|
21979
|
+
"data-testid": "whiteboard_btn"
|
21980
|
+
},
|
21981
|
+
/* @__PURE__ */ React76.createElement(PencilDrawIcon, null)
|
21982
|
+
)
|
21983
|
+
);
|
21947
21984
|
};
|
21948
21985
|
|
21949
21986
|
// src/Prebuilt/components/Footer/Footer.tsx
|
@@ -21955,8 +21992,6 @@ var Footer2 = ({
|
|
21955
21992
|
const isMobile = useMedia11(config.media.md);
|
21956
21993
|
const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
|
21957
21994
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
|
21958
|
-
const { toggleAudio, toggleVideo } = useAVToggle4();
|
21959
|
-
const noAVPermissions = !(toggleAudio || toggleVideo);
|
21960
21995
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21961
21996
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
21962
21997
|
const { showPolls } = useShowPolls();
|
@@ -22004,7 +22039,7 @@ var Footer2 = ({
|
|
22004
22039
|
}
|
22005
22040
|
}
|
22006
22041
|
},
|
22007
|
-
isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null,
|
22042
|
+
isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
|
22008
22043
|
),
|
22009
22044
|
/* @__PURE__ */ React77.createElement(Footer.Right, null, /* @__PURE__ */ React77.createElement(WhiteboardToggle, null), showPolls && /* @__PURE__ */ React77.createElement(PollsToggle, null), !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ React77.createElement(ParticipantCount, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType }))
|
22010
22045
|
);
|
@@ -22081,7 +22116,7 @@ import {
|
|
22081
22116
|
selectLocalPeer as selectLocalPeer7,
|
22082
22117
|
selectRoomState as selectRoomState5,
|
22083
22118
|
selectVideoTrackByID as selectVideoTrackByID5,
|
22084
|
-
useAVToggle as
|
22119
|
+
useAVToggle as useAVToggle3,
|
22085
22120
|
useHMSStore as useHMSStore70,
|
22086
22121
|
useParticipants as useParticipants2,
|
22087
22122
|
usePreviewJoin,
|
@@ -22343,10 +22378,10 @@ var PrevMenu = () => {
|
|
22343
22378
|
const sortedPolls = useMemo5(
|
22344
22379
|
() => {
|
22345
22380
|
var _a8;
|
22346
|
-
return (_a8 = polls == null ? void 0 : polls.sort((a2,
|
22381
|
+
return (_a8 = polls == null ? void 0 : polls.sort((a2, b) => {
|
22347
22382
|
var _a9, _b7;
|
22348
|
-
return (((_a9 =
|
22349
|
-
})) == null ? void 0 : _a8.sort((a2,
|
22383
|
+
return (((_a9 = b.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
|
22384
|
+
})) == null ? void 0 : _a8.sort((a2, b) => (b.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
|
22350
22385
|
},
|
22351
22386
|
[polls]
|
22352
22387
|
);
|
@@ -23848,7 +23883,7 @@ var usePinnedMessages = () => {
|
|
23848
23883
|
if (pinnedMessages[indexToRemove]) {
|
23849
23884
|
yield hmsActions.sessionStore.set(
|
23850
23885
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
23851
|
-
pinnedMessages.filter((
|
23886
|
+
pinnedMessages.filter((_2, index) => index !== indexToRemove)
|
23852
23887
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
23853
23888
|
}
|
23854
23889
|
}),
|
@@ -24478,6 +24513,7 @@ var ChatBody = React108.forwardRef(
|
|
24478
24513
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
24479
24514
|
}, [blacklistedMessageIDs, messages]);
|
24480
24515
|
const vanillaStore = useHMSVanillaStore9();
|
24516
|
+
const rerenderOnFirstMount = useRef18(false);
|
24481
24517
|
useEffect26(() => {
|
24482
24518
|
const unsubscribe = vanillaStore.subscribe(() => {
|
24483
24519
|
if (!listRef.current) {
|
@@ -24490,6 +24526,12 @@ var ChatBody = React108.forwardRef(
|
|
24490
24526
|
}, selectUnreadHMSMessagesCount2);
|
24491
24527
|
return unsubscribe;
|
24492
24528
|
}, [vanillaStore, listRef, scrollToBottom]);
|
24529
|
+
useEffect26(() => {
|
24530
|
+
if (filteredMessages.length > 0 && (listRef == null ? void 0 : listRef.current) && !rerenderOnFirstMount.current) {
|
24531
|
+
rerenderOnFirstMount.current = true;
|
24532
|
+
listRef.current.resetAfterIndex(0);
|
24533
|
+
}
|
24534
|
+
}, [listRef, filteredMessages]);
|
24493
24535
|
return filteredMessages.length === 0 ? /* @__PURE__ */ React108.createElement(EmptyChat, null) : /* @__PURE__ */ React108.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
|
24494
24536
|
}
|
24495
24537
|
);
|
@@ -24522,7 +24564,7 @@ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRe
|
|
24522
24564
|
import { useMedia as useMedia16 } from "react-use";
|
24523
24565
|
import data2 from "@emoji-mart/data";
|
24524
24566
|
import Picker from "@emoji-mart/react";
|
24525
|
-
import { selectLocalPeer as selectLocalPeer3,
|
24567
|
+
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24526
24568
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24527
24569
|
|
24528
24570
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -24932,8 +24974,6 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24932
24974
|
const defaultSelection = useDefaultChatSelection();
|
24933
24975
|
const selection = selectedPeer.name || selectedRole || defaultSelection;
|
24934
24976
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
24935
|
-
const { toggleAudio, toggleVideo } = useAVToggle5();
|
24936
|
-
const noAVPermissions = !(toggleAudio || toggleVideo);
|
24937
24977
|
const isMwebHLSStream = useMobileHLSStream();
|
24938
24978
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
24939
24979
|
useEffect28(() => {
|
@@ -25099,7 +25139,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
25099
25139
|
},
|
25100
25140
|
gap: "2"
|
25101
25141
|
},
|
25102
|
-
|
25142
|
+
/* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
|
25103
25143
|
/* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
|
25104
25144
|
))));
|
25105
25145
|
};
|
@@ -25206,7 +25246,7 @@ var StickIndicator = ({ total, index }) => {
|
|
25206
25246
|
if (total < 2) {
|
25207
25247
|
return null;
|
25208
25248
|
}
|
25209
|
-
return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
25249
|
+
return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ React114.createElement(
|
25210
25250
|
Box,
|
25211
25251
|
{
|
25212
25252
|
css: {
|
@@ -25341,7 +25381,7 @@ var Chat = () => {
|
|
25341
25381
|
const listRef = useRef21(null);
|
25342
25382
|
const hmsActions = useHMSActions39();
|
25343
25383
|
const vanillaStore = useHMSVanillaStore10();
|
25344
|
-
const { enabled: isChatEnabled = true } = useHMSStore60(
|
25384
|
+
const { enabled: isChatEnabled = true } = useHMSStore60(dm("chatState" /* CHAT_STATE */)) || {};
|
25345
25385
|
const isMobile = useMedia18(config.media.md);
|
25346
25386
|
const isMobileHLSStream = useMobileHLSStream();
|
25347
25387
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -25425,7 +25465,7 @@ var NewMessageIndicator = ({
|
|
25425
25465
|
scrollToBottom,
|
25426
25466
|
listRef
|
25427
25467
|
}) => {
|
25428
|
-
const unreadCount = useHMSStore60(
|
25468
|
+
const unreadCount = useHMSStore60(qn);
|
25429
25469
|
if (!unreadCount || !listRef.current) {
|
25430
25470
|
return null;
|
25431
25471
|
}
|
@@ -26505,7 +26545,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26505
26545
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26506
26546
|
const hmsActions = useHMSActions42();
|
26507
26547
|
const localPeer = useHMSStore68(selectLocalPeer6);
|
26508
|
-
const role = useHMSStore68(
|
26548
|
+
const role = useHMSStore68(qt);
|
26509
26549
|
const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled5);
|
26510
26550
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26511
26551
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -26513,10 +26553,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26513
26553
|
const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
|
26514
26554
|
const roomState = useHMSStore68(selectRoomState4);
|
26515
26555
|
const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
|
26516
|
-
const isEffectsEnabled = useHMSStore68(
|
26517
|
-
const effectsKey = useHMSStore68(
|
26556
|
+
const isEffectsEnabled = useHMSStore68(rc);
|
26557
|
+
const effectsKey = useHMSStore68(sc);
|
26518
26558
|
const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
26519
|
-
const background = useHMSStore68(
|
26559
|
+
const background = useHMSStore68(cm(APP_DATA.background));
|
26520
26560
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26521
26561
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26522
26562
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -26958,7 +26998,7 @@ var PreviewJoin = ({
|
|
26958
26998
|
const { isStreamingOn } = useRecordingStreaming11();
|
26959
26999
|
const authToken = useAuthToken();
|
26960
27000
|
const [name, setName] = useState56(initialName || previewPreference.name);
|
26961
|
-
const { toggleAudio, toggleVideo } =
|
27001
|
+
const { toggleAudio, toggleVideo } = useAVToggle3();
|
26962
27002
|
const [previewError, setPreviewError] = useState56(false);
|
26963
27003
|
const { endpoints } = useHMSPrebuiltContext();
|
26964
27004
|
const { peerCount } = useParticipants2();
|
@@ -26972,7 +27012,7 @@ var PreviewJoin = ({
|
|
26972
27012
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
26973
27013
|
},
|
26974
27014
|
captureNetworkQualityInPreview: true,
|
26975
|
-
handleError: (
|
27015
|
+
handleError: (_2, method) => {
|
26976
27016
|
if (method === "preview") {
|
26977
27017
|
setPreviewError(true);
|
26978
27018
|
}
|
@@ -27046,7 +27086,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
27046
27086
|
}));
|
27047
27087
|
var PreviewTile = ({ name, error }) => {
|
27048
27088
|
const localPeer = useHMSStore70(selectLocalPeer7);
|
27049
|
-
const { isLocalAudioEnabled, toggleAudio } =
|
27089
|
+
const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
|
27050
27090
|
const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
|
27051
27091
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
27052
27092
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -27213,24 +27253,18 @@ var RoleChangeRequestModal = () => {
|
|
27213
27253
|
init_define_process_env();
|
27214
27254
|
import React151, { Suspense, useEffect as useEffect48 } from "react";
|
27215
27255
|
import { match as match11 } from "ts-pattern";
|
27216
|
-
import {
|
27217
|
-
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
27218
|
-
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
27219
|
-
selectPeerScreenSharing as selectPeerScreenSharing3,
|
27220
|
-
selectWhiteboard as selectWhiteboard2,
|
27221
|
-
useHMSActions as useHMSActions45,
|
27222
|
-
useHMSStore as useHMSStore81
|
27223
|
-
} from "@100mslive/react-sdk";
|
27256
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions45, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
|
27224
27257
|
|
27225
27258
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
27226
27259
|
init_define_process_env();
|
27227
|
-
import
|
27260
|
+
import React147, { useEffect as useEffect44, useMemo as useMemo18, useState as useState64 } from "react";
|
27228
27261
|
import {
|
27229
27262
|
selectLocalPeerID as selectLocalPeerID14,
|
27230
27263
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
27231
27264
|
selectPeers as selectPeers3,
|
27232
27265
|
selectPeerScreenSharing,
|
27233
|
-
|
27266
|
+
selectWhiteboard as selectWhiteboard2,
|
27267
|
+
useHMSStore as useHMSStore79,
|
27234
27268
|
useHMSVanillaStore as useHMSVanillaStore12
|
27235
27269
|
} from "@100mslive/react-sdk";
|
27236
27270
|
|
@@ -27392,7 +27426,7 @@ var Pagination = ({
|
|
27392
27426
|
if (numPages <= 1) {
|
27393
27427
|
return null;
|
27394
27428
|
}
|
27395
|
-
return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((
|
27429
|
+
return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_2, i) => /* @__PURE__ */ React136.createElement(
|
27396
27430
|
StyledPagination.Dot,
|
27397
27431
|
{
|
27398
27432
|
key: i,
|
@@ -27499,7 +27533,7 @@ var useTileLayout = ({
|
|
27499
27533
|
}
|
27500
27534
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
27501
27535
|
let index = 0;
|
27502
|
-
const matrix = new Array(maxRows).fill(null).map((
|
27536
|
+
const matrix = new Array(maxRows).fill(null).map((_2, i) => {
|
27503
27537
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
27504
27538
|
const rowElements = [];
|
27505
27539
|
for (let j = 0; j < numCols; j++) {
|
@@ -27520,10 +27554,10 @@ var useTileLayout = ({
|
|
27520
27554
|
tileHeight = maxRowHeight;
|
27521
27555
|
} else {
|
27522
27556
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
27523
|
-
for (const
|
27524
|
-
if (
|
27525
|
-
if (tileHeight <
|
27526
|
-
tileHeight =
|
27557
|
+
for (const h2 of calcHeights) {
|
27558
|
+
if (h2 < maxRowHeight) {
|
27559
|
+
if (tileHeight < h2) {
|
27560
|
+
tileHeight = h2;
|
27527
27561
|
}
|
27528
27562
|
}
|
27529
27563
|
}
|
@@ -28137,6 +28171,84 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28137
28171
|
), layoutMode === LayoutMode.SPOTLIGHT && activeSharePeer && /* @__PURE__ */ React145.createElement(InsetTile, { peerId: activeSharePeer == null ? void 0 : activeSharePeer.id }));
|
28138
28172
|
};
|
28139
28173
|
|
28174
|
+
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
28175
|
+
init_define_process_env();
|
28176
|
+
import React146, { useEffect as useEffect43, useMemo as useMemo17 } from "react";
|
28177
|
+
import { useMedia as useMedia33 } from "react-use";
|
28178
|
+
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28179
|
+
var WhiteboardEmbed = () => {
|
28180
|
+
const isMobile = useMedia33(config.media.md);
|
28181
|
+
const { iframeRef } = useWhiteboard2(isMobile);
|
28182
|
+
return /* @__PURE__ */ React146.createElement(
|
28183
|
+
Box,
|
28184
|
+
{
|
28185
|
+
css: {
|
28186
|
+
mx: "$8",
|
28187
|
+
flex: "3 1 0",
|
28188
|
+
"@lg": {
|
28189
|
+
flex: "2 1 0",
|
28190
|
+
display: "flex",
|
28191
|
+
alignItems: "center"
|
28192
|
+
}
|
28193
|
+
}
|
28194
|
+
},
|
28195
|
+
/* @__PURE__ */ React146.createElement(
|
28196
|
+
"iframe",
|
28197
|
+
{
|
28198
|
+
title: "Whiteboard View",
|
28199
|
+
ref: iframeRef,
|
28200
|
+
style: {
|
28201
|
+
width: "100%",
|
28202
|
+
height: "100%",
|
28203
|
+
border: 0,
|
28204
|
+
borderRadius: "0.75rem"
|
28205
|
+
},
|
28206
|
+
allow: "autoplay; clipboard-write;",
|
28207
|
+
referrerPolicy: "no-referrer"
|
28208
|
+
}
|
28209
|
+
)
|
28210
|
+
);
|
28211
|
+
};
|
28212
|
+
var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
28213
|
+
const whiteboard = useHMSStore78(selectWhiteboard);
|
28214
|
+
const whiteboardOwner = useHMSStore78(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
28215
|
+
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28216
|
+
const isMobile = useMedia33(config.media.md);
|
28217
|
+
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28218
|
+
const secondaryPeers = useMemo17(() => {
|
28219
|
+
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
28220
|
+
return [];
|
28221
|
+
}
|
28222
|
+
if (isMobile || layoutMode === LayoutMode.SIDEBAR) {
|
28223
|
+
return whiteboardOwner ? [whiteboardOwner, ...peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id))] : peers;
|
28224
|
+
}
|
28225
|
+
return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
|
28226
|
+
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
28227
|
+
useEffect43(() => {
|
28228
|
+
if (isMobile) {
|
28229
|
+
setLayoutMode(LayoutMode.GALLERY);
|
28230
|
+
return;
|
28231
|
+
}
|
28232
|
+
if (layoutMode === LayoutMode.SIDEBAR) {
|
28233
|
+
return;
|
28234
|
+
}
|
28235
|
+
setLayoutMode(LayoutMode.SIDEBAR);
|
28236
|
+
return () => {
|
28237
|
+
setLayoutMode(LayoutMode.GALLERY);
|
28238
|
+
};
|
28239
|
+
}, [isMobile]);
|
28240
|
+
return /* @__PURE__ */ React146.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React146.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React146.createElement(WhiteboardEmbed, null)), /* @__PURE__ */ React146.createElement(
|
28241
|
+
SecondaryTiles,
|
28242
|
+
{
|
28243
|
+
peers: secondaryPeers,
|
28244
|
+
onPageChange,
|
28245
|
+
onPageSize,
|
28246
|
+
edgeToEdge,
|
28247
|
+
hasSidebar
|
28248
|
+
}
|
28249
|
+
), layoutMode === LayoutMode.SPOTLIGHT && whiteboardOwner && /* @__PURE__ */ React146.createElement(InsetTile, { peerId: whiteboardOwner == null ? void 0 : whiteboardOwner.id }));
|
28250
|
+
};
|
28251
|
+
|
28140
28252
|
// src/Prebuilt/common/PeersSorter.ts
|
28141
28253
|
init_define_process_env();
|
28142
28254
|
import { selectDominantSpeaker as selectDominantSpeaker2 } from "@100mslive/react-sdk";
|
@@ -28148,7 +28260,7 @@ var PeersSorter = class {
|
|
28148
28260
|
this.speaker = void 0;
|
28149
28261
|
this.tilesPerPage = tilesPerPage;
|
28150
28262
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
28151
|
-
this.peers.forEach((
|
28263
|
+
this.peers.forEach((_2, key) => {
|
28152
28264
|
if (!peerIds.has(key)) {
|
28153
28265
|
this.peers.delete(key);
|
28154
28266
|
}
|
@@ -28244,18 +28356,19 @@ var GridLayout = ({
|
|
28244
28356
|
edge_to_edge = false,
|
28245
28357
|
hide_metadata_on_tile = false
|
28246
28358
|
}) => {
|
28247
|
-
const peerSharing =
|
28359
|
+
const peerSharing = useHMSStore79(selectPeerScreenSharing);
|
28360
|
+
const whiteboard = useHMSStore79(selectWhiteboard2);
|
28248
28361
|
const pinnedTrack = usePinnedTrack();
|
28249
|
-
const peers =
|
28250
|
-
const localPeerRole =
|
28251
|
-
const localPeerID =
|
28362
|
+
const peers = useHMSStore79(selectPeers3);
|
28363
|
+
const localPeerRole = useHMSStore79(selectLocalPeerRoleName5);
|
28364
|
+
const localPeerID = useHMSStore79(selectLocalPeerID14);
|
28252
28365
|
const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28253
28366
|
const isRoleProminence = prominentRoles.length && peers.some(
|
28254
28367
|
(peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
|
28255
28368
|
) || pinnedTrack;
|
28256
|
-
const updatedPeers =
|
28257
|
-
if (activeScreensharePeerId) {
|
28258
|
-
return peers.filter((peer) => peer.id !== activeScreensharePeerId);
|
28369
|
+
const updatedPeers = useMemo18(() => {
|
28370
|
+
if (activeScreensharePeerId || (whiteboard == null ? void 0 : whiteboard.open)) {
|
28371
|
+
return peers.filter((peer) => peer.id !== activeScreensharePeerId || peer.customerUserId !== (whiteboard == null ? void 0 : whiteboard.owner));
|
28259
28372
|
}
|
28260
28373
|
if (isInsetEnabled) {
|
28261
28374
|
const isLocalPeerPinned = localPeerID === (pinnedTrack == null ? void 0 : pinnedTrack.peerId);
|
@@ -28266,10 +28379,19 @@ var GridLayout = ({
|
|
28266
28379
|
}
|
28267
28380
|
}
|
28268
28381
|
return peers;
|
28269
|
-
}, [
|
28382
|
+
}, [
|
28383
|
+
isInsetEnabled,
|
28384
|
+
whiteboard,
|
28385
|
+
activeScreensharePeerId,
|
28386
|
+
localPeerRole,
|
28387
|
+
localPeerID,
|
28388
|
+
prominentRoles,
|
28389
|
+
peers,
|
28390
|
+
pinnedTrack
|
28391
|
+
]);
|
28270
28392
|
const vanillaStore = useHMSVanillaStore12();
|
28271
28393
|
const [sortedPeers, setSortedPeers] = useState64(updatedPeers);
|
28272
|
-
const peersSorter =
|
28394
|
+
const peersSorter = useMemo18(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
28273
28395
|
const [pageSize, setPageSize] = useState64(0);
|
28274
28396
|
const [mainPage, setMainPage] = useState64(0);
|
28275
28397
|
const tileLayout = {
|
@@ -28280,7 +28402,7 @@ var GridLayout = ({
|
|
28280
28402
|
hideMetadataOnTile: hide_metadata_on_tile,
|
28281
28403
|
objectFit: video_object_fit
|
28282
28404
|
};
|
28283
|
-
|
28405
|
+
useEffect44(() => {
|
28284
28406
|
if (mainPage !== 0) {
|
28285
28407
|
return;
|
28286
28408
|
}
|
@@ -28291,7 +28413,7 @@ var GridLayout = ({
|
|
28291
28413
|
peersSorter.onUpdate(setSortedPeers);
|
28292
28414
|
}, [mainPage, peersSorter, updatedPeers, pageSize]);
|
28293
28415
|
if (peerSharing) {
|
28294
|
-
return /* @__PURE__ */
|
28416
|
+
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28295
28417
|
ScreenshareLayout,
|
28296
28418
|
{
|
28297
28419
|
peers: sortedPeers,
|
@@ -28300,8 +28422,18 @@ var GridLayout = ({
|
|
28300
28422
|
edgeToEdge: edge_to_edge
|
28301
28423
|
}
|
28302
28424
|
));
|
28425
|
+
} else if (whiteboard == null ? void 0 : whiteboard.open) {
|
28426
|
+
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28427
|
+
WhiteboardLayout,
|
28428
|
+
{
|
28429
|
+
peers: sortedPeers,
|
28430
|
+
onPageSize: setPageSize,
|
28431
|
+
onPageChange: setMainPage,
|
28432
|
+
edgeToEdge: edge_to_edge
|
28433
|
+
}
|
28434
|
+
));
|
28303
28435
|
} else if (isRoleProminence) {
|
28304
|
-
return /* @__PURE__ */
|
28436
|
+
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28305
28437
|
RoleProminence,
|
28306
28438
|
{
|
28307
28439
|
peers: sortedPeers,
|
@@ -28313,7 +28445,7 @@ var GridLayout = ({
|
|
28313
28445
|
}
|
28314
28446
|
));
|
28315
28447
|
}
|
28316
|
-
return /* @__PURE__ */
|
28448
|
+
return /* @__PURE__ */ React147.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ React147.createElement(
|
28317
28449
|
EqualProminence,
|
28318
28450
|
{
|
28319
28451
|
peers: sortedPeers,
|
@@ -28327,32 +28459,32 @@ var GridLayout = ({
|
|
28327
28459
|
|
28328
28460
|
// src/Prebuilt/layouts/EmbedView.jsx
|
28329
28461
|
init_define_process_env();
|
28330
|
-
import
|
28331
|
-
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as
|
28462
|
+
import React148, { useEffect as useEffect45, useMemo as useMemo19 } from "react";
|
28463
|
+
import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
|
28332
28464
|
var EmbedView = () => {
|
28333
|
-
return /* @__PURE__ */
|
28465
|
+
return /* @__PURE__ */ React148.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React148.createElement(EmbedComponent, null));
|
28334
28466
|
};
|
28335
28467
|
var EmbedScreenShareView = ({ children }) => {
|
28336
|
-
const peers =
|
28337
|
-
const peerPresenting =
|
28468
|
+
const peers = useHMSStore80(selectPeers4);
|
28469
|
+
const peerPresenting = useHMSStore80(selectPeerScreenSharing2);
|
28338
28470
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28339
|
-
const smallTilePeers =
|
28471
|
+
const smallTilePeers = useMemo19(() => {
|
28340
28472
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
28341
28473
|
return smallTilePeers2;
|
28342
28474
|
}, [peers, peerPresenting]);
|
28343
|
-
|
28475
|
+
useEffect45(() => {
|
28344
28476
|
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
28345
28477
|
return () => {
|
28346
28478
|
setActiveScreenSharePeer("");
|
28347
28479
|
};
|
28348
28480
|
}, [peerPresenting == null ? void 0 : peerPresenting.id, setActiveScreenSharePeer]);
|
28349
|
-
return /* @__PURE__ */
|
28481
|
+
return /* @__PURE__ */ React148.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React148.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React148.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28350
28482
|
};
|
28351
28483
|
var EmbedComponent = () => {
|
28352
|
-
const embedConfig =
|
28484
|
+
const embedConfig = useHMSStore80(selectAppData8(APP_DATA.embedConfig));
|
28353
28485
|
const resetConfig = useResetEmbedConfig();
|
28354
28486
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
28355
|
-
|
28487
|
+
useEffect45(() => {
|
28356
28488
|
(() => __async(void 0, null, function* () {
|
28357
28489
|
if (embedConfig && !isEmbedShareInProgress) {
|
28358
28490
|
try {
|
@@ -28367,7 +28499,7 @@ var EmbedComponent = () => {
|
|
28367
28499
|
}
|
28368
28500
|
}))();
|
28369
28501
|
}, [isEmbedShareInProgress, embedConfig, startEmbedShare, resetConfig]);
|
28370
|
-
return /* @__PURE__ */
|
28502
|
+
return /* @__PURE__ */ React148.createElement(
|
28371
28503
|
Box,
|
28372
28504
|
{
|
28373
28505
|
css: {
|
@@ -28380,7 +28512,7 @@ var EmbedComponent = () => {
|
|
28380
28512
|
}
|
28381
28513
|
}
|
28382
28514
|
},
|
28383
|
-
/* @__PURE__ */
|
28515
|
+
/* @__PURE__ */ React148.createElement(
|
28384
28516
|
"iframe",
|
28385
28517
|
{
|
28386
28518
|
title: "Embed View",
|
@@ -28400,13 +28532,13 @@ var EmbedComponent = () => {
|
|
28400
28532
|
|
28401
28533
|
// src/Prebuilt/layouts/PDFView.jsx
|
28402
28534
|
init_define_process_env();
|
28403
|
-
import
|
28535
|
+
import React149, { useEffect as useEffect46 } from "react";
|
28404
28536
|
import { usePDFShare } from "@100mslive/react-sdk";
|
28405
28537
|
var PDFView = () => {
|
28406
28538
|
const pdfConfig = usePDFConfig();
|
28407
28539
|
const resetConfig = useResetPDFConfig();
|
28408
28540
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
28409
|
-
|
28541
|
+
useEffect46(() => {
|
28410
28542
|
(() => __async(void 0, null, function* () {
|
28411
28543
|
try {
|
28412
28544
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -28421,7 +28553,7 @@ var PDFView = () => {
|
|
28421
28553
|
}
|
28422
28554
|
}))();
|
28423
28555
|
}, [isPDFShareInProgress, pdfConfig, resetConfig, startPDFShare]);
|
28424
|
-
return /* @__PURE__ */
|
28556
|
+
return /* @__PURE__ */ React149.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React149.createElement(
|
28425
28557
|
Box,
|
28426
28558
|
{
|
28427
28559
|
css: {
|
@@ -28434,7 +28566,7 @@ var PDFView = () => {
|
|
28434
28566
|
}
|
28435
28567
|
}
|
28436
28568
|
},
|
28437
|
-
/* @__PURE__ */
|
28569
|
+
/* @__PURE__ */ React149.createElement(
|
28438
28570
|
"iframe",
|
28439
28571
|
{
|
28440
28572
|
title: "Embed View",
|
@@ -28454,10 +28586,10 @@ var PDFView = () => {
|
|
28454
28586
|
|
28455
28587
|
// src/Prebuilt/layouts/WaitingView.jsx
|
28456
28588
|
init_define_process_env();
|
28457
|
-
import
|
28589
|
+
import React150 from "react";
|
28458
28590
|
import { ColoredTimeIcon } from "@100mslive/react-icons";
|
28459
|
-
var WaitingView =
|
28460
|
-
return /* @__PURE__ */
|
28591
|
+
var WaitingView = React150.memo(() => {
|
28592
|
+
return /* @__PURE__ */ React150.createElement(
|
28461
28593
|
Box,
|
28462
28594
|
{
|
28463
28595
|
css: {
|
@@ -28471,7 +28603,7 @@ var WaitingView = React149.memo(() => {
|
|
28471
28603
|
},
|
28472
28604
|
"data-testid": "waiting_view"
|
28473
28605
|
},
|
28474
|
-
/* @__PURE__ */
|
28606
|
+
/* @__PURE__ */ React150.createElement(
|
28475
28607
|
Flex,
|
28476
28608
|
{
|
28477
28609
|
align: "center",
|
@@ -28485,8 +28617,8 @@ var WaitingView = React149.memo(() => {
|
|
28485
28617
|
gap: "$8"
|
28486
28618
|
}
|
28487
28619
|
},
|
28488
|
-
/* @__PURE__ */
|
28489
|
-
/* @__PURE__ */
|
28620
|
+
/* @__PURE__ */ React150.createElement(ColoredTimeIcon, { width: "80px", height: "80px" }),
|
28621
|
+
/* @__PURE__ */ React150.createElement(
|
28490
28622
|
Flex,
|
28491
28623
|
{
|
28492
28624
|
direction: "column",
|
@@ -28496,101 +28628,52 @@ var WaitingView = React149.memo(() => {
|
|
28496
28628
|
gap: "$4"
|
28497
28629
|
}
|
28498
28630
|
},
|
28499
|
-
/* @__PURE__ */
|
28500
|
-
/* @__PURE__ */
|
28631
|
+
/* @__PURE__ */ React150.createElement(Text, { color: "white", variant: "h6", css: { "@md": { fontSize: "$md" } } }, "Please wait"),
|
28632
|
+
/* @__PURE__ */ React150.createElement(Text, { color: "$on_surface_medium", css: { mt: "$4", "@md": { fontSize: "$sm" } } }, "Sit back and relax till others let you join.")
|
28501
28633
|
)
|
28502
28634
|
)
|
28503
28635
|
);
|
28504
28636
|
});
|
28505
28637
|
|
28506
|
-
// src/Prebuilt/layouts/WhiteboardView.tsx
|
28507
|
-
init_define_process_env();
|
28508
|
-
import React150, { useEffect as useEffect46, useMemo as useMemo19 } from "react";
|
28509
|
-
import { useMedia as useMedia33 } from "react-use";
|
28510
|
-
import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28511
|
-
var EmbedComponent2 = () => {
|
28512
|
-
const isMobile = useMedia33(config.media.md);
|
28513
|
-
const { iframeRef } = useWhiteboard2(isMobile);
|
28514
|
-
return /* @__PURE__ */ React150.createElement(
|
28515
|
-
Box,
|
28516
|
-
{
|
28517
|
-
css: {
|
28518
|
-
mx: "$8",
|
28519
|
-
flex: "3 1 0",
|
28520
|
-
"@lg": {
|
28521
|
-
flex: "2 1 0",
|
28522
|
-
display: "flex",
|
28523
|
-
alignItems: "center"
|
28524
|
-
}
|
28525
|
-
}
|
28526
|
-
},
|
28527
|
-
/* @__PURE__ */ React150.createElement(
|
28528
|
-
"iframe",
|
28529
|
-
{
|
28530
|
-
title: "Whiteboard View",
|
28531
|
-
ref: iframeRef,
|
28532
|
-
style: {
|
28533
|
-
width: "100%",
|
28534
|
-
height: "100%",
|
28535
|
-
border: 0,
|
28536
|
-
borderRadius: "0.75rem"
|
28537
|
-
},
|
28538
|
-
allow: "autoplay; clipboard-write;",
|
28539
|
-
referrerPolicy: "no-referrer"
|
28540
|
-
}
|
28541
|
-
)
|
28542
|
-
);
|
28543
|
-
};
|
28544
|
-
var WhiteboardView = () => {
|
28545
|
-
const peers = useHMSStore80(selectPeers5);
|
28546
|
-
const whiteboard = useHMSStore80(selectWhiteboard);
|
28547
|
-
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
28548
|
-
const smallTilePeers = useMemo19(() => {
|
28549
|
-
const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
|
28550
|
-
return smallTilePeers2;
|
28551
|
-
}, [peers, whiteboard == null ? void 0 : whiteboard.owner]);
|
28552
|
-
useEffect46(() => {
|
28553
|
-
setActiveScreenSharePeer((whiteboard == null ? void 0 : whiteboard.owner) || "");
|
28554
|
-
return () => {
|
28555
|
-
setActiveScreenSharePeer("");
|
28556
|
-
};
|
28557
|
-
}, [whiteboard == null ? void 0 : whiteboard.owner, setActiveScreenSharePeer]);
|
28558
|
-
return /* @__PURE__ */ React150.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React150.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React150.createElement(EmbedComponent2, null)), /* @__PURE__ */ React150.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28559
|
-
};
|
28560
|
-
|
28561
28638
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
28562
28639
|
init_define_process_env();
|
28563
28640
|
import { useEffect as useEffect47 } from "react";
|
28564
28641
|
import { usePrevious } from "react-use";
|
28565
|
-
import { useScreenShare as
|
28642
|
+
import { useScreenShare as useScreenShare5, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
28566
28643
|
var useCloseScreenshareWhiteboard = () => {
|
28567
|
-
const { amIScreenSharing, toggleScreenShare } =
|
28644
|
+
const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = useScreenShare5();
|
28568
28645
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
28569
|
-
const prevScreenSharer = usePrevious(
|
28646
|
+
const prevScreenSharer = usePrevious(screenSharingPeerId);
|
28570
28647
|
const prevWhiteboardOwner = usePrevious(isWhiteboardOwner);
|
28571
28648
|
useEffect47(() => {
|
28572
|
-
if (isWhiteboardOwner &&
|
28573
|
-
if (prevScreenSharer && !prevWhiteboardOwner) {
|
28649
|
+
if (isWhiteboardOwner && screenSharingPeerId) {
|
28650
|
+
if (prevScreenSharer && amIScreenSharing && !prevWhiteboardOwner) {
|
28574
28651
|
toggleScreenShare == null ? void 0 : toggleScreenShare();
|
28575
28652
|
} else if (prevWhiteboardOwner && !prevScreenSharer) {
|
28576
28653
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
28577
28654
|
}
|
28578
28655
|
}
|
28579
|
-
}, [
|
28656
|
+
}, [
|
28657
|
+
isWhiteboardOwner,
|
28658
|
+
screenSharingPeerId,
|
28659
|
+
amIScreenSharing,
|
28660
|
+
prevScreenSharer,
|
28661
|
+
prevWhiteboardOwner,
|
28662
|
+
toggleScreenShare,
|
28663
|
+
toggleWhiteboard
|
28664
|
+
]);
|
28580
28665
|
};
|
28581
28666
|
|
28582
28667
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28583
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28668
|
+
var HLSView = React151.lazy(() => import("./HLSView-XI2Q44RQ.js"));
|
28584
28669
|
var VideoStreamingSection = ({
|
28585
28670
|
screenType,
|
28586
28671
|
elements,
|
28587
28672
|
hideControls = false
|
28588
28673
|
}) => {
|
28589
|
-
var _a8, _b7
|
28674
|
+
var _a8, _b7;
|
28590
28675
|
const localPeerRole = useHMSStore81(selectLocalPeerRoleName6);
|
28591
28676
|
const isConnected = useHMSStore81(selectIsConnectedToRoom9);
|
28592
|
-
const peerSharing = useHMSStore81(selectPeerScreenSharing3);
|
28593
|
-
const isWhiteboardOpen = (_a8 = useHMSStore81(selectWhiteboard2)) == null ? void 0 : _a8.open;
|
28594
28677
|
const hmsActions = useHMSActions45();
|
28595
28678
|
const waitingViewerRole = useWaitingViewerRole();
|
28596
28679
|
const urlToIframe = useUrlToEmbed();
|
@@ -28622,12 +28705,8 @@ var VideoStreamingSection = ({
|
|
28622
28705
|
ViewComponent = /* @__PURE__ */ React151.createElement(PDFView, null);
|
28623
28706
|
} else if (urlToIframe) {
|
28624
28707
|
ViewComponent = /* @__PURE__ */ React151.createElement(EmbedView, null);
|
28625
|
-
} else if (peerSharing) {
|
28626
|
-
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid));
|
28627
|
-
} else if (isWhiteboardOpen) {
|
28628
|
-
ViewComponent = /* @__PURE__ */ React151.createElement(WhiteboardView, null);
|
28629
28708
|
} else {
|
28630
|
-
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (
|
28709
|
+
ViewComponent = /* @__PURE__ */ React151.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
|
28631
28710
|
}
|
28632
28711
|
return /* @__PURE__ */ React151.createElement(Suspense, { fallback: /* @__PURE__ */ React151.createElement(FullPageProgress_default, null) }, /* @__PURE__ */ React151.createElement(
|
28633
28712
|
Flex,
|
@@ -28656,7 +28735,7 @@ var VideoStreamingSection = ({
|
|
28656
28735
|
SidePane_default,
|
28657
28736
|
{
|
28658
28737
|
screenType,
|
28659
|
-
tileProps: (
|
28738
|
+
tileProps: (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid,
|
28660
28739
|
hideControls
|
28661
28740
|
}
|
28662
28741
|
)
|
@@ -28916,8 +28995,6 @@ var ConferenceScreen = () => {
|
|
28916
28995
|
const isMobileDevice = isAndroid || isIOS || isIPadOS;
|
28917
28996
|
const dropdownListRef = useRef25();
|
28918
28997
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
28919
|
-
const { toggleAudio, toggleVideo } = useAVToggle7();
|
28920
|
-
const noAVPermissions = !(toggleAudio || toggleVideo);
|
28921
28998
|
const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
|
28922
28999
|
const autoRoomJoined = useRef25(isPreviewScreenEnabled);
|
28923
29000
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -29041,7 +29118,7 @@ var ConferenceScreen = () => {
|
|
29041
29118
|
justify: "end",
|
29042
29119
|
gap: "2"
|
29043
29120
|
},
|
29044
|
-
|
29121
|
+
/* @__PURE__ */ React155.createElement(RaiseHand, null),
|
29045
29122
|
/* @__PURE__ */ React155.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
|
29046
29123
|
/* @__PURE__ */ React155.createElement(
|
29047
29124
|
Box,
|
@@ -29580,7 +29657,7 @@ import {
|
|
29580
29657
|
PeopleRemoveIcon as PeopleRemoveIcon4,
|
29581
29658
|
PoorConnectivityIcon as PoorConnectivityIcon2
|
29582
29659
|
} from "@100mslive/react-icons";
|
29583
|
-
var ChatAction = React163.forwardRef((
|
29660
|
+
var ChatAction = React163.forwardRef((_2, ref) => {
|
29584
29661
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
29585
29662
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
29586
29663
|
if (isChatOpen) {
|
@@ -30195,7 +30272,7 @@ function Notifications() {
|
|
30195
30272
|
}, []);
|
30196
30273
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
30197
30274
|
useEffect65(() => {
|
30198
|
-
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
30275
|
+
var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
|
30199
30276
|
if (!notification || isNotificationDisabled) {
|
30200
30277
|
return;
|
30201
30278
|
}
|
@@ -30236,7 +30313,7 @@ function Notifications() {
|
|
30236
30313
|
});
|
30237
30314
|
break;
|
30238
30315
|
case HMSNotificationTypes10.ROLE_UPDATED: {
|
30239
|
-
if (((
|
30316
|
+
if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
30240
30317
|
ToastManager.addToast({
|
30241
30318
|
title: `You are now a ${notification.data.roleName}`
|
30242
30319
|
});
|
@@ -30853,6 +30930,7 @@ var TextArea = styled("textarea", {
|
|
30853
30930
|
|
30854
30931
|
export {
|
30855
30932
|
__spreadValues,
|
30933
|
+
__spreadProps,
|
30856
30934
|
__objRest,
|
30857
30935
|
__async,
|
30858
30936
|
init_define_process_env,
|
@@ -30952,4 +31030,4 @@ lodash/lodash.js:
|
|
30952
31030
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
30953
31031
|
*)
|
30954
31032
|
*/
|
30955
|
-
//# sourceMappingURL=chunk-
|
31033
|
+
//# sourceMappingURL=chunk-3JLNG275.js.map
|