@100mslive/roomkit-react 0.3.8-alpha.0 → 0.3.8-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-CTZXD762.js → HLSView-HUMJOIWO.js} +2 -2
- package/dist/Prebuilt/common/constants.d.ts +1 -0
- package/dist/Prebuilt/common/hooks.d.ts +10 -0
- package/dist/Prebuilt/components/FullPageProgress.d.ts +8 -0
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +3 -3
- package/dist/{chunk-NDLMRKFR.js → chunk-IDAPJGWC.js} +263 -279
- package/dist/chunk-IDAPJGWC.js.map +7 -0
- package/dist/index.cjs.js +190 -207
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +74 -49
- package/dist/meta.esbuild.json +84 -59
- package/package.json +6 -6
- package/src/Prebuilt/common/constants.ts +1 -0
- package/src/Prebuilt/common/hooks.ts +72 -1
- package/src/Prebuilt/components/AppData/AppData.tsx +1 -0
- package/src/Prebuilt/components/ConferenceScreen.tsx +0 -2
- package/src/Prebuilt/components/{FullPageProgress.jsx → FullPageProgress.tsx} +10 -1
- package/src/Prebuilt/components/Header/StreamActions.tsx +3 -25
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +4 -26
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +1 -11
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -9
- package/src/Prebuilt/components/Preview/PreviewScreen.tsx +0 -3
- package/src/Prebuilt/components/Settings/StartRecording.jsx +4 -37
- package/src/Prebuilt/components/Toast/ToastConfig.jsx +0 -22
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +3 -3
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +23 -7
- package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +5 -3
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +0 -2
- package/dist/chunk-NDLMRKFR.js.map +0 -7
- /package/dist/{HLSView-CTZXD762.js.map → HLSView-HUMJOIWO.js.map} +0 -0
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7c4c1950-8a61-422b-b70f-231782daf5a5", 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.20.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.8-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7c4c1950-8a61-422b-b70f-231782daf5a5", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.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.8-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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.7", 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: "603", 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.9/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240407.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.2/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.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:19646", 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.8-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "8700818252", STATS_VMFE: "true", 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: "01f2b5f23cc814beb7f077b46b6736f1e00ceaad", 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: "eb4c117f5ff5e55682f3f7490c15fc5440ba61b18b3b42ef49564303057c59a3", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1713248088685-0.8813268667616405:/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.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713248088490-0.9103108704604872:/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.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713248066660-0.5344358402590024:/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.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713248066480-0.3470210036877275:/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.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.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.20.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_1ff258cc-9913-4d21-9d50-6cca116c61b9", INVOCATION_ID: "dafba751830c4d43b8a2b569f0046558", 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: "515", 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 190", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", 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.8-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.8-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "01f2b5f23cc814beb7f077b46b6736f1e00ceaad", 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_7c4c1950-8a61-422b-b70f-231782daf5a5", 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_7c4c1950-8a61-422b-b70f-231782daf5a5", 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.172+1/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_7c4c1950-8a61-422b-b70f-231782daf5a5" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8960a610-873b-48c4-a70f-4da8aa68e13d", 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.20.2 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.8-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8960a610-873b-48c4-a70f-4da8aa68e13d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.2/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.8-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.9/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240414.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.2/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.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:20511", 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.8-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "8732562653", STATS_VMFE: "true", 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: "569f8b3923f8f47aaf9ecd7d91b9fe1e52c39695", 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: "4310d52a39a6bcb3f340fee7133e1ad792459ea3961dc69beb7c4b75c929dd6e", 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--1713415919977-0.3230822190585294:/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.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713415919783-0.5830170510480925:/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.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713415897957-0.1301843973018475:/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.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713415897779-0.8737125083718396:/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.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/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.20.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_97e61f22-cd7d-41d8-a4ce-9938198b4f42", INVOCATION_ID: "580ffd2a32964d3bb395107504953d6f", 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: "516", 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 433", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", 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.8-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.8-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "569f8b3923f8f47aaf9ecd7d91b9fe1e52c39695", 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_8960a610-873b-48c4-a70f-4da8aa68e13d", 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_8960a610-873b-48c4-a70f-4da8aa68e13d", 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.172+1/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_8960a610-873b-48c4-a70f-4da8aa68e13d" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -9158,7 +9158,8 @@ var APP_DATA = {
|
|
9158
9158
|
disableNotifications: "disableNotifications",
|
9159
9159
|
pollState: "pollState",
|
9160
9160
|
background: "background",
|
9161
|
-
sheet: "sheet"
|
9161
|
+
sheet: "sheet",
|
9162
|
+
loadingEffects: "loadingEffects"
|
9162
9163
|
};
|
9163
9164
|
var UI_SETTINGS = {
|
9164
9165
|
isAudioOnly: "isAudioOnly",
|
@@ -11918,7 +11919,7 @@ import {
|
|
11918
11919
|
HMSReactiveStore,
|
11919
11920
|
HMSRoomProvider,
|
11920
11921
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
11921
|
-
useHMSActions as
|
11922
|
+
useHMSActions as useHMSActions55,
|
11922
11923
|
useHMSStore as useHMSStore97
|
11923
11924
|
} from "@100mslive/react-sdk";
|
11924
11925
|
|
@@ -12677,6 +12678,7 @@ var initialAppData = {
|
|
12677
12678
|
[APP_DATA.minimiseInset]: false,
|
12678
12679
|
[APP_DATA.activeScreensharePeerId]: "",
|
12679
12680
|
[APP_DATA.disableNotifications]: false,
|
12681
|
+
[APP_DATA.loadingEffects]: false,
|
12680
12682
|
[APP_DATA.background]: "none",
|
12681
12683
|
[APP_DATA.pollState]: {
|
12682
12684
|
[POLL_STATE.pollInView]: "",
|
@@ -12903,10 +12905,10 @@ import React155, { useEffect as useEffect50, useRef as useRef26, useState as use
|
|
12903
12905
|
import { v4 as uuid3 } from "uuid";
|
12904
12906
|
import {
|
12905
12907
|
HMSRoomState as HMSRoomState7,
|
12906
|
-
selectAppData as
|
12908
|
+
selectAppData as selectAppData11,
|
12907
12909
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
12908
12910
|
selectRoomState as selectRoomState7,
|
12909
|
-
useHMSActions as
|
12911
|
+
useHMSActions as useHMSActions48,
|
12910
12912
|
useHMSStore as useHMSStore86
|
12911
12913
|
} from "@100mslive/react-sdk";
|
12912
12914
|
|
@@ -14092,7 +14094,9 @@ import {
|
|
14092
14094
|
selectPeerCount as selectPeerCount2,
|
14093
14095
|
selectPeerMetadata,
|
14094
14096
|
selectPeers,
|
14097
|
+
selectRecordingState,
|
14095
14098
|
selectRemotePeers,
|
14099
|
+
useHMSActions as useHMSActions8,
|
14096
14100
|
useHMSStore as useHMSStore9,
|
14097
14101
|
useHMSVanillaStore as useHMSVanillaStore4
|
14098
14102
|
} from "@100mslive/react-sdk";
|
@@ -14179,6 +14183,63 @@ var useKeyboardHandler = (isPaused, hlsPlayer) => {
|
|
14179
14183
|
);
|
14180
14184
|
return handleKeyEvent;
|
14181
14185
|
};
|
14186
|
+
var useRecordingHandler = () => {
|
14187
|
+
const hmsActions = useHMSActions8();
|
14188
|
+
const recordingState = useHMSStore9(selectRecordingState);
|
14189
|
+
const [isRecordingLoading, setIsRecordingLoading] = useState11(false);
|
14190
|
+
const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
|
14191
|
+
useEffect12(() => {
|
14192
|
+
if (recordingState.browser.error && recordingStarted) {
|
14193
|
+
setRecordingState(false);
|
14194
|
+
}
|
14195
|
+
}, [recordingStarted, recordingState.browser.error, setRecordingState]);
|
14196
|
+
const startRecording = useCallback8(
|
14197
|
+
(resolution = null) => __async(void 0, null, function* () {
|
14198
|
+
try {
|
14199
|
+
setRecordingState(true);
|
14200
|
+
setIsRecordingLoading(true);
|
14201
|
+
yield hmsActions.startRTMPOrRecording({
|
14202
|
+
resolution: getResolution(resolution),
|
14203
|
+
record: true
|
14204
|
+
});
|
14205
|
+
} catch (error) {
|
14206
|
+
const err = error;
|
14207
|
+
if (err.message.includes("stream already running")) {
|
14208
|
+
ToastManager.addToast({
|
14209
|
+
title: "Recording already running",
|
14210
|
+
variant: "error"
|
14211
|
+
});
|
14212
|
+
} else {
|
14213
|
+
ToastManager.addToast({
|
14214
|
+
title: err.message,
|
14215
|
+
variant: "error"
|
14216
|
+
});
|
14217
|
+
}
|
14218
|
+
setRecordingState(false);
|
14219
|
+
}
|
14220
|
+
setIsRecordingLoading(false);
|
14221
|
+
}),
|
14222
|
+
[hmsActions, setRecordingState]
|
14223
|
+
);
|
14224
|
+
return {
|
14225
|
+
recordingStarted,
|
14226
|
+
startRecording,
|
14227
|
+
isRecordingLoading
|
14228
|
+
};
|
14229
|
+
};
|
14230
|
+
function getResolution(recordingResolution) {
|
14231
|
+
if (!recordingResolution) {
|
14232
|
+
return void 0;
|
14233
|
+
}
|
14234
|
+
const resolution = RTMP_RECORD_DEFAULT_RESOLUTION;
|
14235
|
+
if (recordingResolution.width) {
|
14236
|
+
resolution.width = recordingResolution.width;
|
14237
|
+
}
|
14238
|
+
if (recordingResolution.height) {
|
14239
|
+
resolution.height = recordingResolution.height;
|
14240
|
+
}
|
14241
|
+
return resolution;
|
14242
|
+
}
|
14182
14243
|
|
14183
14244
|
// src/Prebuilt/components/EmojiReaction.jsx
|
14184
14245
|
init({ data });
|
@@ -14239,7 +14300,7 @@ import {
|
|
14239
14300
|
selectPeersByCondition,
|
14240
14301
|
selectPermissions as selectPermissions4,
|
14241
14302
|
selectRolesMap,
|
14242
|
-
useHMSActions as
|
14303
|
+
useHMSActions as useHMSActions9,
|
14243
14304
|
useHMSStore as useHMSStore13
|
14244
14305
|
} from "@100mslive/react-sdk";
|
14245
14306
|
|
@@ -14597,7 +14658,7 @@ var LeaveRoom = ({
|
|
14597
14658
|
selectPeersByCondition((peer) => streamingPermissionRoles.includes(peer.roleName || ""))
|
14598
14659
|
);
|
14599
14660
|
const hlsState = useHMSStore13(selectHLSState3);
|
14600
|
-
const hmsActions =
|
14661
|
+
const hmsActions = useHMSActions9();
|
14601
14662
|
const isMobileHLSStream = useMobileHLSStream();
|
14602
14663
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
14603
14664
|
const stopStream = () => __async(void 0, null, function* () {
|
@@ -14640,7 +14701,7 @@ init_define_process_env();
|
|
14640
14701
|
import React52, { Fragment as Fragment6, useState as useState23 } from "react";
|
14641
14702
|
import { HMSHLSPlayer } from "@100mslive/hls-player";
|
14642
14703
|
import { match as match4 } from "ts-pattern";
|
14643
|
-
import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as
|
14704
|
+
import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions16, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
|
14644
14705
|
import { BrbIcon, CheckIcon as CheckIcon5, HamburgerMenuIcon, InfoIcon as InfoIcon2, PipIcon as PipIcon2, SettingsIcon as SettingsIcon3 } from "@100mslive/react-icons";
|
14645
14706
|
|
14646
14707
|
// src/Prebuilt/components/PIP/index.jsx
|
@@ -14650,7 +14711,7 @@ import React42 from "react";
|
|
14650
14711
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
14651
14712
|
init_define_process_env();
|
14652
14713
|
import React41, { useCallback as useCallback9, useEffect as useEffect13, useState as useState15 } from "react";
|
14653
|
-
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as
|
14714
|
+
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSStore as useHMSStore14, useHMSVanillaStore as useHMSVanillaStore5 } from "@100mslive/react-sdk";
|
14654
14715
|
import { PipIcon } from "@100mslive/react-icons";
|
14655
14716
|
|
14656
14717
|
// src/Prebuilt/components/PIP/PIPManager.js
|
@@ -15109,7 +15170,7 @@ var MediaSession = new SetupMediaSession();
|
|
15109
15170
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
15110
15171
|
var PIPComponent = ({ content = null }) => {
|
15111
15172
|
const [isPipOn, setIsPipOn] = useState15(PictureInPicture.isOn());
|
15112
|
-
const hmsActions =
|
15173
|
+
const hmsActions = useHMSActions10();
|
15113
15174
|
const store = useHMSVanillaStore5();
|
15114
15175
|
const onPipToggle = useCallback9(() => {
|
15115
15176
|
if (!isPipOn) {
|
@@ -15156,7 +15217,7 @@ var PIP = ({ content = null }) => {
|
|
15156
15217
|
// src/Prebuilt/components/RoleChangeModal.jsx
|
15157
15218
|
init_define_process_env();
|
15158
15219
|
import React43, { forwardRef, useRef as useRef10, useState as useState16 } from "react";
|
15159
|
-
import { selectPeerByID, useHMSActions as
|
15220
|
+
import { selectPeerByID, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
|
15160
15221
|
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3 } from "@100mslive/react-icons";
|
15161
15222
|
var PeerName = forwardRef((_a8, ref) => {
|
15162
15223
|
var _b7 = _a8, { children, maxWidth } = _b7, rest = __objRest(_b7, ["children", "maxWidth"]);
|
@@ -15181,7 +15242,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
15181
15242
|
const roles = useFilteredRoles();
|
15182
15243
|
const [selectedRole, setRole] = useState16(peer == null ? void 0 : peer.roleName);
|
15183
15244
|
const [requestPermission, setRequestPermission] = useState16(true);
|
15184
|
-
const hmsActions =
|
15245
|
+
const hmsActions = useHMSActions11();
|
15185
15246
|
const [open, setOpen] = useState16(false);
|
15186
15247
|
const selectionBg = useDropdownSelection();
|
15187
15248
|
const [peerNameRef, setPeerNameRef] = useState16();
|
@@ -15289,7 +15350,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
15289
15350
|
// src/Prebuilt/components/Settings/StartRecording.jsx
|
15290
15351
|
init_define_process_env();
|
15291
15352
|
import React46, { useState as useState18 } from "react";
|
15292
|
-
import { selectPermissions as selectPermissions5, useHMSActions as
|
15353
|
+
import { selectPermissions as selectPermissions5, useHMSActions as useHMSActions12, useHMSStore as useHMSStore16, useRecordingStreaming as useRecordingStreaming5 } from "@100mslive/react-sdk";
|
15293
15354
|
import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons";
|
15294
15355
|
|
15295
15356
|
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
@@ -15516,24 +15577,12 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
|
|
15516
15577
|
};
|
15517
15578
|
|
15518
15579
|
// src/Prebuilt/components/Settings/StartRecording.jsx
|
15519
|
-
function getResolution(recordingResolution) {
|
15520
|
-
const resolution = {};
|
15521
|
-
if (recordingResolution.width) {
|
15522
|
-
resolution.width = recordingResolution.width;
|
15523
|
-
}
|
15524
|
-
if (recordingResolution.height) {
|
15525
|
-
resolution.height = recordingResolution.height;
|
15526
|
-
}
|
15527
|
-
if (Object.keys(resolution).length > 0) {
|
15528
|
-
return resolution;
|
15529
|
-
}
|
15530
|
-
}
|
15531
15580
|
var StartRecording = ({ open, onOpenChange }) => {
|
15532
15581
|
const permissions = useHMSStore16(selectPermissions5);
|
15533
15582
|
const [resolution, setResolution] = useState18(RTMP_RECORD_DEFAULT_RESOLUTION);
|
15534
|
-
const
|
15583
|
+
const { startRecording, recordingStarted } = useRecordingHandler();
|
15535
15584
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming5();
|
15536
|
-
const hmsActions =
|
15585
|
+
const hmsActions = useHMSActions12();
|
15537
15586
|
if (!(permissions == null ? void 0 : permissions.browserRecording) || isHLSRunning) {
|
15538
15587
|
return null;
|
15539
15588
|
}
|
@@ -15588,26 +15637,7 @@ var StartRecording = ({ open, onOpenChange }) => {
|
|
15588
15637
|
type: "submit",
|
15589
15638
|
disabled: recordingStarted || isStreamingOn,
|
15590
15639
|
onClick: () => __async(void 0, null, function* () {
|
15591
|
-
|
15592
|
-
setRecordingState(true);
|
15593
|
-
yield hmsActions.startRTMPOrRecording({
|
15594
|
-
resolution: getResolution(resolution),
|
15595
|
-
record: true
|
15596
|
-
});
|
15597
|
-
} catch (error) {
|
15598
|
-
if (error.message.includes("stream already running")) {
|
15599
|
-
ToastManager.addToast({
|
15600
|
-
title: "Recording already running",
|
15601
|
-
variant: "error"
|
15602
|
-
});
|
15603
|
-
} else {
|
15604
|
-
ToastManager.addToast({
|
15605
|
-
title: error.message,
|
15606
|
-
variant: "error"
|
15607
|
-
});
|
15608
|
-
}
|
15609
|
-
setRecordingState(false);
|
15610
|
-
}
|
15640
|
+
yield startRecording(resolution);
|
15611
15641
|
onOpenChange(false);
|
15612
15642
|
})
|
15613
15643
|
},
|
@@ -15806,12 +15836,12 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
|
15806
15836
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
15807
15837
|
init_define_process_env();
|
15808
15838
|
import React48, { useCallback as useCallback11, useRef as useRef13, useState as useState20 } from "react";
|
15809
|
-
import { useHMSActions as
|
15839
|
+
import { useHMSActions as useHMSActions13 } from "@100mslive/react-sdk";
|
15810
15840
|
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon4 } from "@100mslive/react-icons";
|
15811
15841
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
15812
15842
|
var _a8, _b7;
|
15813
15843
|
const roles = useFilteredRoles();
|
15814
|
-
const hmsActions =
|
15844
|
+
const hmsActions = useHMSActions13();
|
15815
15845
|
const ref = useRef13(null);
|
15816
15846
|
const roleRef = useRef13(null);
|
15817
15847
|
const [selectedBulkRole, setBulkRole] = useState20([]);
|
@@ -15982,7 +16012,7 @@ init_define_process_env();
|
|
15982
16012
|
import React51, { useCallback as useCallback13, useState as useState22 } from "react";
|
15983
16013
|
import {
|
15984
16014
|
selectAvailableRoleNames as selectAvailableRoleNames3,
|
15985
|
-
useHMSActions as
|
16015
|
+
useHMSActions as useHMSActions14,
|
15986
16016
|
useHMSStore as useHMSStore19
|
15987
16017
|
} from "@100mslive/react-sdk";
|
15988
16018
|
import { MicOffIcon as MicOffIcon2 } from "@100mslive/react-icons";
|
@@ -16050,7 +16080,7 @@ var MuteAllModal = ({
|
|
16050
16080
|
isMobile = false
|
16051
16081
|
}) => {
|
16052
16082
|
const roles = useHMSStore19(selectAvailableRoleNames3);
|
16053
|
-
const hmsActions =
|
16083
|
+
const hmsActions = useHMSActions14();
|
16054
16084
|
const [enabled, setEnabled] = useState22(false);
|
16055
16085
|
const [trackType, setTrackType] = useState22();
|
16056
16086
|
const [selectedRole, setRole] = useState22();
|
@@ -16090,12 +16120,12 @@ import {
|
|
16090
16120
|
selectHasPeerHandRaised,
|
16091
16121
|
selectLocalPeerID as selectLocalPeerID3,
|
16092
16122
|
selectPeerMetadata as selectPeerMetadata2,
|
16093
|
-
useHMSActions as
|
16123
|
+
useHMSActions as useHMSActions15,
|
16094
16124
|
useHMSStore as useHMSStore20,
|
16095
16125
|
useHMSVanillaStore as useHMSVanillaStore6
|
16096
16126
|
} from "@100mslive/react-sdk";
|
16097
16127
|
var useMyMetadata = () => {
|
16098
|
-
const hmsActions =
|
16128
|
+
const hmsActions = useHMSActions15();
|
16099
16129
|
const localPeerId = useHMSStore20(selectLocalPeerID3);
|
16100
16130
|
const vanillaStore = useHMSVanillaStore6();
|
16101
16131
|
const metaData = useHMSStore20(selectPeerMetadata2(localPeerId));
|
@@ -16152,7 +16182,7 @@ var DesktopOptions = ({
|
|
16152
16182
|
screenType
|
16153
16183
|
}) => {
|
16154
16184
|
const localPeerId = useHMSStore21(selectLocalPeerID4);
|
16155
|
-
const hmsActions =
|
16185
|
+
const hmsActions = useHMSActions16();
|
16156
16186
|
const enablHlsStats = useHMSStore21(selectAppData3(APP_DATA.hlsStats));
|
16157
16187
|
const [openModals, setOpenModals] = useState23(/* @__PURE__ */ new Set());
|
16158
16188
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
@@ -16257,7 +16287,7 @@ import {
|
|
16257
16287
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4,
|
16258
16288
|
selectPeerCount as selectPeerCount3,
|
16259
16289
|
selectPermissions as selectPermissions8,
|
16260
|
-
useHMSActions as
|
16290
|
+
useHMSActions as useHMSActions22,
|
16261
16291
|
useHMSStore as useHMSStore29,
|
16262
16292
|
useRecordingStreaming as useRecordingStreaming7
|
16263
16293
|
} from "@100mslive/react-sdk";
|
@@ -18501,7 +18531,7 @@ var Zi = (a2, e) => {
|
|
18501
18531
|
};
|
18502
18532
|
var wa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18503
18533
|
var ur = wa((od, za) => {
|
18504
|
-
za.exports = { version: "0.12.8-alpha.
|
18534
|
+
za.exports = { version: "0.12.8-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "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
18535
|
});
|
18506
18536
|
var er = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(er || {});
|
18507
18537
|
var Da = ((e) => (e.CHAT = "chat", e))(Da || {});
|
@@ -19577,9 +19607,9 @@ import {
|
|
19577
19607
|
selectHLSState as selectHLSState4,
|
19578
19608
|
selectIsConnectedToRoom as selectIsConnectedToRoom6,
|
19579
19609
|
selectPermissions as selectPermissions7,
|
19580
|
-
selectRecordingState,
|
19610
|
+
selectRecordingState as selectRecordingState2,
|
19581
19611
|
selectRoomState as selectRoomState3,
|
19582
|
-
useHMSActions as
|
19612
|
+
useHMSActions as useHMSActions19,
|
19583
19613
|
useHMSStore as useHMSStore25,
|
19584
19614
|
useRecordingStreaming as useRecordingStreaming6
|
19585
19615
|
} from "@100mslive/react-sdk";
|
@@ -19605,14 +19635,14 @@ import {
|
|
19605
19635
|
selectAudioPlaylist,
|
19606
19636
|
selectAudioPlaylistTrackByPeerID,
|
19607
19637
|
selectPeerSharingAudioPlaylist,
|
19608
|
-
useHMSActions as
|
19638
|
+
useHMSActions as useHMSActions17,
|
19609
19639
|
useHMSStore as useHMSStore22
|
19610
19640
|
} from "@100mslive/react-sdk";
|
19611
19641
|
var usePlaylistMusic = () => {
|
19612
19642
|
const peer = useHMSStore22(selectPeerSharingAudioPlaylist);
|
19613
19643
|
const track = useHMSStore22(selectAudioPlaylistTrackByPeerID(peer == null ? void 0 : peer.id));
|
19614
19644
|
const selection = useHMSStore22(selectAudioPlaylist.selectedItem);
|
19615
|
-
const hmsActions =
|
19645
|
+
const hmsActions = useHMSActions17();
|
19616
19646
|
const play = useCallback15(
|
19617
19647
|
(selectedId) => __async(void 0, null, function* () {
|
19618
19648
|
yield hmsActions.audioPlaylist.play(selectedId);
|
@@ -19637,11 +19667,11 @@ import { useCallback as useCallback16 } from "react";
|
|
19637
19667
|
import {
|
19638
19668
|
selectPeerSharingAudio,
|
19639
19669
|
selectScreenShareAudioByPeerID,
|
19640
|
-
useHMSActions as
|
19670
|
+
useHMSActions as useHMSActions18,
|
19641
19671
|
useHMSStore as useHMSStore23
|
19642
19672
|
} from "@100mslive/react-sdk";
|
19643
19673
|
var useScreenshareAudio = () => {
|
19644
|
-
const hmsActions =
|
19674
|
+
const hmsActions = useHMSActions18();
|
19645
19675
|
const peer = useHMSStore23(selectPeerSharingAudio);
|
19646
19676
|
const track = useHMSStore23(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
|
19647
19677
|
const handleMute = useCallback16(() => {
|
@@ -19838,7 +19868,7 @@ var RecordingStatus = () => {
|
|
19838
19868
|
);
|
19839
19869
|
};
|
19840
19870
|
var RecordingPauseStatus = () => {
|
19841
|
-
const recording = useHMSStore25(
|
19871
|
+
const recording = useHMSStore25(selectRecordingState2);
|
19842
19872
|
if (recording.hls && recording.hls.state === ws.PAUSED) {
|
19843
19873
|
return /* @__PURE__ */ React54.createElement(
|
19844
19874
|
Tooltip,
|
@@ -19867,9 +19897,9 @@ var RecordingPauseStatus = () => {
|
|
19867
19897
|
var StartRecording2 = () => {
|
19868
19898
|
const permissions = useHMSStore25(selectPermissions7);
|
19869
19899
|
const [open, setOpen] = useState25(false);
|
19870
|
-
const
|
19900
|
+
const { startRecording, recordingStarted } = useRecordingHandler();
|
19871
19901
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming6();
|
19872
|
-
const hmsActions =
|
19902
|
+
const hmsActions = useHMSActions19();
|
19873
19903
|
if (!(permissions == null ? void 0 : permissions.browserRecording) || isHLSRunning) {
|
19874
19904
|
return null;
|
19875
19905
|
}
|
@@ -19905,26 +19935,7 @@ var StartRecording2 = () => {
|
|
19905
19935
|
icon: true,
|
19906
19936
|
disabled: recordingStarted || isStreamingOn,
|
19907
19937
|
onClick: () => __async(void 0, null, function* () {
|
19908
|
-
|
19909
|
-
setRecordingState(true);
|
19910
|
-
yield hmsActions.startRTMPOrRecording({
|
19911
|
-
record: true
|
19912
|
-
});
|
19913
|
-
} catch (error) {
|
19914
|
-
const err = error;
|
19915
|
-
if (err.message.includes("stream already running")) {
|
19916
|
-
ToastManager.addToast({
|
19917
|
-
title: "Recording already running",
|
19918
|
-
variant: "error"
|
19919
|
-
});
|
19920
|
-
} else {
|
19921
|
-
ToastManager.addToast({
|
19922
|
-
title: err.message,
|
19923
|
-
variant: "error"
|
19924
|
-
});
|
19925
|
-
}
|
19926
|
-
setRecordingState(false);
|
19927
|
-
}
|
19938
|
+
yield startRecording();
|
19928
19939
|
})
|
19929
19940
|
},
|
19930
19941
|
recordingStarted ? /* @__PURE__ */ React54.createElement(Loading, { size: 24, color: "currentColor" }) : /* @__PURE__ */ React54.createElement(RecordIcon, null),
|
@@ -20016,7 +20027,7 @@ var ActionTile = {
|
|
20016
20027
|
init_define_process_env();
|
20017
20028
|
import React57, { useState as useState26 } from "react";
|
20018
20029
|
import { useMedia as useMedia7 } from "react-use";
|
20019
|
-
import { selectLocalPeerName, useHMSActions as
|
20030
|
+
import { selectLocalPeerName, useHMSActions as useHMSActions20, useHMSStore as useHMSStore26 } from "@100mslive/react-sdk";
|
20020
20031
|
|
20021
20032
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
20022
20033
|
init_define_process_env();
|
@@ -20131,7 +20142,7 @@ var ChangeNameModal = ({
|
|
20131
20142
|
openParentSheet = void 0
|
20132
20143
|
}) => {
|
20133
20144
|
const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
|
20134
|
-
const hmsActions =
|
20145
|
+
const hmsActions = useHMSActions20();
|
20135
20146
|
const localPeerName = useHMSStore26(selectLocalPeerName);
|
20136
20147
|
const [currentName, setCurrentName] = useState26(localPeerName);
|
20137
20148
|
const isMobile = useMedia7(config.media.md);
|
@@ -20173,7 +20184,7 @@ var ChangeNameModal = ({
|
|
20173
20184
|
// src/Prebuilt/components/AppData/useSheet.ts
|
20174
20185
|
init_define_process_env();
|
20175
20186
|
import { useCallback as useCallback18 } from "react";
|
20176
|
-
import { selectAppData as selectAppData4, useHMSActions as
|
20187
|
+
import { selectAppData as selectAppData4, useHMSActions as useHMSActions21, useHMSStore as useHMSStore27, useHMSVanillaStore as useHMSVanillaStore7 } from "@100mslive/react-sdk";
|
20177
20188
|
var useIsSheetTypeOpen = (sheetType) => {
|
20178
20189
|
if (!sheetType) {
|
20179
20190
|
throw Error("Pass one of the sheet options");
|
@@ -20181,7 +20192,7 @@ var useIsSheetTypeOpen = (sheetType) => {
|
|
20181
20192
|
return useHMSStore27(selectAppData4(APP_DATA.sheet)) === sheetType;
|
20182
20193
|
};
|
20183
20194
|
var useSheetToggle = (sheetType) => {
|
20184
|
-
const hmsActions =
|
20195
|
+
const hmsActions = useHMSActions21();
|
20185
20196
|
const vanillaStore = useHMSVanillaStore7();
|
20186
20197
|
const toggleSheet = useCallback18(() => {
|
20187
20198
|
const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
|
@@ -20223,7 +20234,7 @@ var MwebOptions = ({
|
|
20223
20234
|
elements,
|
20224
20235
|
screenType
|
20225
20236
|
}) => {
|
20226
|
-
const hmsActions =
|
20237
|
+
const hmsActions = useHMSActions22();
|
20227
20238
|
const permissions = useHMSStore29(selectPermissions8);
|
20228
20239
|
const isConnected = useHMSStore29(selectIsConnectedToRoom7);
|
20229
20240
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming7();
|
@@ -20232,7 +20243,6 @@ var MwebOptions = ({
|
|
20232
20243
|
const [openSettingsSheet, setOpenSettingsSheet] = useState28(false);
|
20233
20244
|
const [showEmojiCard, setShowEmojiCard] = useState28(false);
|
20234
20245
|
const [showRecordingOn, setShowRecordingOn] = useState28(false);
|
20235
|
-
const [isRecordingLoading, setIsRecordingLoading] = useState28(false);
|
20236
20246
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
20237
20247
|
const { showPolls } = useShowPolls();
|
20238
20248
|
const togglePollView = usePollViewToggle();
|
@@ -20246,6 +20256,7 @@ var MwebOptions = ({
|
|
20246
20256
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
20247
20257
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
20248
20258
|
const isLocalVideoEnabled = useHMSStore29(selectIsLocalVideoEnabled4);
|
20259
|
+
const { startRecording, isRecordingLoading } = useRecordingHandler();
|
20249
20260
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
20250
20261
|
const updateState = (modalName, value) => {
|
20251
20262
|
setOpenModals((modals) => {
|
@@ -20383,28 +20394,8 @@ var MwebOptions = ({
|
|
20383
20394
|
setOpenOptionsSheet(false);
|
20384
20395
|
setShowRecordingOn(true);
|
20385
20396
|
} else {
|
20386
|
-
|
20387
|
-
|
20388
|
-
yield hmsActions.startRTMPOrRecording({
|
20389
|
-
record: true
|
20390
|
-
});
|
20391
|
-
setOpenOptionsSheet(false);
|
20392
|
-
setIsRecordingLoading(false);
|
20393
|
-
} catch (error) {
|
20394
|
-
if (error.message.includes("stream already running")) {
|
20395
|
-
ToastManager.addToast({
|
20396
|
-
title: "Recording already running",
|
20397
|
-
variant: "error"
|
20398
|
-
});
|
20399
|
-
} else {
|
20400
|
-
ToastManager.addToast({
|
20401
|
-
// @ts-ignore
|
20402
|
-
title: error.message,
|
20403
|
-
variant: "error"
|
20404
|
-
});
|
20405
|
-
}
|
20406
|
-
setIsRecordingLoading(false);
|
20407
|
-
}
|
20397
|
+
yield startRecording();
|
20398
|
+
setOpenOptionsSheet(false);
|
20408
20399
|
}
|
20409
20400
|
if (isHLSRunning) {
|
20410
20401
|
setOpenOptionsSheet(false);
|
@@ -20996,17 +20987,18 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
20996
20987
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
20997
20988
|
init_define_process_env();
|
20998
20989
|
import React68 from "react";
|
20999
|
-
import { selectIsEffectsEnabled, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5, useHMSStore as useHMSStore31 } from "@100mslive/react-sdk";
|
20990
|
+
import { selectAppData as selectAppData5, selectIsEffectsEnabled, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5, useHMSStore as useHMSStore31 } from "@100mslive/react-sdk";
|
21000
20991
|
import { VirtualBackgroundIcon as VirtualBackgroundIcon2 } from "@100mslive/react-icons";
|
21001
20992
|
var VBToggle = () => {
|
21002
20993
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
21003
20994
|
const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
|
21004
20995
|
const isVideoOn = useHMSStore31(selectIsLocalVideoEnabled5);
|
21005
20996
|
const isEffectsEnabled = useHMSStore31(selectIsEffectsEnabled);
|
20997
|
+
const loadingEffects = useHMSStore31(selectAppData5(APP_DATA.loadingEffects));
|
21006
20998
|
if (!isVideoOn || !isEffectsEnabled && isSafari) {
|
21007
20999
|
return null;
|
21008
21000
|
}
|
21009
|
-
return /* @__PURE__ */ React68.createElement(Tooltip, { side: "top", disabled: isVBOpen, title: "Configure Virtual Background" }, /* @__PURE__ */ React68.createElement(IconButton_default, { active: !isVBOpen, onClick: toggleVB, "data-testid": "virtual_bg_btn" }, /* @__PURE__ */ React68.createElement(VirtualBackgroundIcon2, null)));
|
21001
|
+
return /* @__PURE__ */ React68.createElement(Tooltip, { side: "top", disabled: isVBOpen, title: "Configure Virtual Background" }, /* @__PURE__ */ React68.createElement(IconButton_default, { active: !isVBOpen, onClick: toggleVB, "data-testid": "virtual_bg_btn" }, loadingEffects ? /* @__PURE__ */ React68.createElement(Loading, { size: 18 }) : /* @__PURE__ */ React68.createElement(VirtualBackgroundIcon2, null)));
|
21010
21002
|
};
|
21011
21003
|
|
21012
21004
|
// src/Prebuilt/components/Footer/ChatToggle.tsx
|
@@ -21191,13 +21183,13 @@ var ConnectionIndicator = ({
|
|
21191
21183
|
// src/Prebuilt/components/RemoveParticipant.tsx
|
21192
21184
|
init_define_process_env();
|
21193
21185
|
import React71 from "react";
|
21194
|
-
import { selectLocalPeerID as selectLocalPeerID6, selectPermissions as selectPermissions9, useHMSActions as
|
21186
|
+
import { selectLocalPeerID as selectLocalPeerID6, selectPermissions as selectPermissions9, useHMSActions as useHMSActions23, useHMSStore as useHMSStore34 } from "@100mslive/react-sdk";
|
21195
21187
|
import { PeopleRemoveIcon as PeopleRemoveIcon2 } from "@100mslive/react-icons";
|
21196
21188
|
var RemoveParticipant = ({ peerId }) => {
|
21197
21189
|
var _a8;
|
21198
21190
|
const canRemoveOthers = (_a8 = useHMSStore34(selectPermissions9)) == null ? void 0 : _a8.removeOthers;
|
21199
21191
|
const localPeerId = useHMSStore34(selectLocalPeerID6);
|
21200
|
-
const actions =
|
21192
|
+
const actions = useHMSActions23();
|
21201
21193
|
if (peerId === localPeerId || !canRemoveOthers) {
|
21202
21194
|
return null;
|
21203
21195
|
}
|
@@ -21235,7 +21227,7 @@ import {
|
|
21235
21227
|
selectPermissions as selectPermissions10,
|
21236
21228
|
selectRoleByRoleName,
|
21237
21229
|
selectTracksMap as selectTracksMap3,
|
21238
|
-
useHMSActions as
|
21230
|
+
useHMSActions as useHMSActions24,
|
21239
21231
|
useHMSStore as useHMSStore35
|
21240
21232
|
} from "@100mslive/react-sdk";
|
21241
21233
|
import {
|
@@ -21292,7 +21284,7 @@ var DropdownWrapper = ({ children }) => {
|
|
21292
21284
|
};
|
21293
21285
|
var RoleOptions = ({ roleName, peerList }) => {
|
21294
21286
|
const permissions = useHMSStore35(selectPermissions10);
|
21295
|
-
const hmsActions =
|
21287
|
+
const hmsActions = useHMSActions24();
|
21296
21288
|
const { elements } = useRoomLayoutConferencingScreen();
|
21297
21289
|
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
21298
21290
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
@@ -21374,10 +21366,10 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
21374
21366
|
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
21375
21367
|
init_define_process_env();
|
21376
21368
|
import { match as match7, P as P3 } from "ts-pattern";
|
21377
|
-
import { selectPermissions as selectPermissions11, useHMSActions as
|
21369
|
+
import { selectPermissions as selectPermissions11, useHMSActions as useHMSActions25, useHMSStore as useHMSStore36 } from "@100mslive/react-sdk";
|
21378
21370
|
var useGroupOnStageActions = ({ peers }) => {
|
21379
21371
|
var _a8;
|
21380
|
-
const hmsActions =
|
21372
|
+
const hmsActions = useHMSActions25();
|
21381
21373
|
const { elements } = useRoomLayoutConferencingScreen();
|
21382
21374
|
const {
|
21383
21375
|
bring_to_stage_label,
|
@@ -21542,10 +21534,10 @@ var RoleAccordion = ({
|
|
21542
21534
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
21543
21535
|
init_define_process_env();
|
21544
21536
|
import { useState as useState32 } from "react";
|
21545
|
-
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as
|
21537
|
+
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions26, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
|
21546
21538
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
21547
21539
|
var _a8, _b7;
|
21548
|
-
const hmsActions =
|
21540
|
+
const hmsActions = useHMSActions26();
|
21549
21541
|
const { elements } = useRoomLayoutConferencingScreen();
|
21550
21542
|
const {
|
21551
21543
|
bring_to_stage_label,
|
@@ -22056,11 +22048,11 @@ var Footer2 = ({
|
|
22056
22048
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
22057
22049
|
init_define_process_env();
|
22058
22050
|
import React78, { useCallback as useCallback20, useState as useState34 } from "react";
|
22059
|
-
import { selectHLSState as selectHLSState5, useHMSActions as
|
22051
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions27, useHMSStore as useHMSStore41, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
22060
22052
|
function HLSFailureModal() {
|
22061
22053
|
const hlsError = useHMSStore41(selectHLSState5).error || false;
|
22062
22054
|
const [openModal, setOpenModal] = useState34(!!hlsError);
|
22063
|
-
const hmsActions =
|
22055
|
+
const hmsActions = useHMSActions27();
|
22064
22056
|
const { isRTMPRunning } = useRecordingStreaming8();
|
22065
22057
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
22066
22058
|
const startHLS = useCallback20(() => __async(this, null, function* () {
|
@@ -22110,16 +22102,17 @@ import {
|
|
22110
22102
|
selectLocalPeerRoleName as selectLocalPeerRoleName4,
|
22111
22103
|
selectRoleChangeRequest,
|
22112
22104
|
useCustomEvent as useCustomEvent3,
|
22113
|
-
useHMSActions as
|
22105
|
+
useHMSActions as useHMSActions44,
|
22114
22106
|
useHMSStore as useHMSStore72
|
22115
22107
|
} from "@100mslive/react-sdk";
|
22116
22108
|
|
22117
22109
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
22118
22110
|
init_define_process_env();
|
22119
22111
|
import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo13, useState as useState56 } from "react";
|
22120
|
-
import { useMeasure as useMeasure4, useMedia as
|
22112
|
+
import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
|
22121
22113
|
import {
|
22122
22114
|
HMSRoomState as HMSRoomState5,
|
22115
|
+
selectAppData as selectAppData8,
|
22123
22116
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
|
22124
22117
|
selectLocalPeer as selectLocalPeer7,
|
22125
22118
|
selectRoomState as selectRoomState5,
|
@@ -22135,9 +22128,9 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
22135
22128
|
// src/Prebuilt/layouts/SidePane.tsx
|
22136
22129
|
init_define_process_env();
|
22137
22130
|
import React127, { useEffect as useEffect33 } from "react";
|
22138
|
-
import { useMedia as
|
22131
|
+
import { useMedia as useMedia22 } from "react-use";
|
22139
22132
|
import { match as match11 } from "ts-pattern";
|
22140
|
-
import { selectAppData as
|
22133
|
+
import { selectAppData as selectAppData7, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
|
22141
22134
|
|
22142
22135
|
// src/Prebuilt/components/Polls/Polls.tsx
|
22143
22136
|
init_define_process_env();
|
@@ -22150,7 +22143,7 @@ import {
|
|
22150
22143
|
selectLocalPeerRoleName,
|
22151
22144
|
selectPermissions as selectPermissions15,
|
22152
22145
|
selectPolls as selectPolls2,
|
22153
|
-
useHMSActions as
|
22146
|
+
useHMSActions as useHMSActions28,
|
22154
22147
|
useHMSStore as useHMSStore43
|
22155
22148
|
} from "@100mslive/react-sdk";
|
22156
22149
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
@@ -22298,7 +22291,7 @@ function InteractionSelectionCard({
|
|
22298
22291
|
);
|
22299
22292
|
}
|
22300
22293
|
var AddMenu = () => {
|
22301
|
-
const actions =
|
22294
|
+
const actions = useHMSActions28();
|
22302
22295
|
const [title, setTitle] = useState35("");
|
22303
22296
|
const localPeerRoleName = useHMSStore43(selectLocalPeerRoleName);
|
22304
22297
|
const [hideVoteCount, setHideVoteCount] = useState35(false);
|
@@ -22381,7 +22374,7 @@ var AddMenu = () => {
|
|
22381
22374
|
), /* @__PURE__ */ React81.createElement(ErrorText, { error: error || titleError })));
|
22382
22375
|
};
|
22383
22376
|
var PrevMenu = () => {
|
22384
|
-
const hmsActions =
|
22377
|
+
const hmsActions = useHMSActions28();
|
22385
22378
|
const polls = useHMSStore43(selectPolls2);
|
22386
22379
|
const sortedPolls = useMemo6(
|
22387
22380
|
() => {
|
@@ -22431,7 +22424,7 @@ var InteractionCard = ({ id, title, status }) => {
|
|
22431
22424
|
init_define_process_env();
|
22432
22425
|
import React91, { useMemo as useMemo8, useState as useState37 } from "react";
|
22433
22426
|
import { v4 as uuid2 } from "uuid";
|
22434
|
-
import { selectPollByID, useHMSActions as
|
22427
|
+
import { selectPollByID, useHMSActions as useHMSActions29, useHMSStore as useHMSStore44, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
22435
22428
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
22436
22429
|
|
22437
22430
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
@@ -22968,7 +22961,7 @@ var getEditableFormat = (questions) => {
|
|
22968
22961
|
};
|
22969
22962
|
function CreateQuestions() {
|
22970
22963
|
var _a8, _b7, _c, _d;
|
22971
|
-
const actions =
|
22964
|
+
const actions = useHMSActions29();
|
22972
22965
|
const { isHLSRunning } = useRecordingStreaming9();
|
22973
22966
|
const togglePollView = usePollViewToggle();
|
22974
22967
|
const { pollInView: id, setPollView } = usePollViewState();
|
@@ -23157,11 +23150,11 @@ init_define_process_env();
|
|
23157
23150
|
import { useEffect as useEffect22, useState as useState38 } from "react";
|
23158
23151
|
import {
|
23159
23152
|
selectPollByID as selectPollByID2,
|
23160
|
-
useHMSActions as
|
23153
|
+
useHMSActions as useHMSActions30,
|
23161
23154
|
useHMSStore as useHMSStore45
|
23162
23155
|
} from "@100mslive/react-sdk";
|
23163
23156
|
var useQuizSummary = (quizID) => {
|
23164
|
-
const hmsActions =
|
23157
|
+
const hmsActions = useHMSActions30();
|
23165
23158
|
const quiz = useHMSStore45(selectPollByID2(quizID));
|
23166
23159
|
const [quizLeaderboard, setQuizLeaderboard] = useState38();
|
23167
23160
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
@@ -23317,7 +23310,7 @@ import {
|
|
23317
23310
|
selectPeerNameByID,
|
23318
23311
|
selectPermissions as selectPermissions16,
|
23319
23312
|
selectPollByID as selectPollByID4,
|
23320
|
-
useHMSActions as
|
23313
|
+
useHMSActions as useHMSActions32,
|
23321
23314
|
useHMSStore as useHMSStore50
|
23322
23315
|
} from "@100mslive/react-sdk";
|
23323
23316
|
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
|
@@ -23330,7 +23323,7 @@ import React97 from "react";
|
|
23330
23323
|
init_define_process_env();
|
23331
23324
|
import React96, { useCallback as useCallback22, useMemo as useMemo9, useRef as useRef18, useState as useState40 } from "react";
|
23332
23325
|
import { match as match8 } from "ts-pattern";
|
23333
|
-
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as
|
23326
|
+
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
|
23334
23327
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
23335
23328
|
var QuestionCard2 = ({
|
23336
23329
|
pollID,
|
@@ -23348,7 +23341,7 @@ var QuestionCard2 = ({
|
|
23348
23341
|
responses = [],
|
23349
23342
|
rolesThatCanViewResponses
|
23350
23343
|
}) => {
|
23351
|
-
const actions =
|
23344
|
+
const actions = useHMSActions31();
|
23352
23345
|
const localPeer = useHMSStore48(selectLocalPeer);
|
23353
23346
|
const localPeerResponse = responses == null ? void 0 : responses.find(
|
23354
23347
|
(response) => {
|
@@ -23585,7 +23578,7 @@ var TimedView = ({ poll }) => {
|
|
23585
23578
|
|
23586
23579
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
23587
23580
|
var Voting = ({ id, toggleVoting }) => {
|
23588
|
-
const actions =
|
23581
|
+
const actions = useHMSActions32();
|
23589
23582
|
const poll = useHMSStore50(selectPollByID4(id));
|
23590
23583
|
const pollCreatorName = useHMSStore50(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
|
23591
23584
|
const permissions = useHMSStore50(selectPermissions16);
|
@@ -23785,7 +23778,7 @@ init_define_process_env();
|
|
23785
23778
|
import React116, { useCallback as useCallback30, useRef as useRef22 } from "react";
|
23786
23779
|
import { useMedia as useMedia17 } from "react-use";
|
23787
23780
|
import { match as match9 } from "ts-pattern";
|
23788
|
-
import { selectHMSMessagesCount, useHMSActions as
|
23781
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions40, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
23789
23782
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
23790
23783
|
|
23791
23784
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
@@ -23802,7 +23795,7 @@ import {
|
|
23802
23795
|
selectPeerNameByID as selectPeerNameByID3,
|
23803
23796
|
selectSessionStore as selectSessionStore5,
|
23804
23797
|
selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
|
23805
|
-
useHMSActions as
|
23798
|
+
useHMSActions as useHMSActions36,
|
23806
23799
|
useHMSStore as useHMSStore55,
|
23807
23800
|
useHMSVanillaStore as useHMSVanillaStore9
|
23808
23801
|
} from "@100mslive/react-sdk";
|
@@ -23811,7 +23804,7 @@ import { SolidPinIcon } from "@100mslive/react-icons";
|
|
23811
23804
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
23812
23805
|
init_define_process_env();
|
23813
23806
|
import React106, { useCallback as useCallback25, useState as useState44 } from "react";
|
23814
|
-
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as
|
23807
|
+
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions35, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
23815
23808
|
import {
|
23816
23809
|
CopyIcon as CopyIcon2,
|
23817
23810
|
CrossCircleIcon as CrossCircleIcon2,
|
@@ -23839,9 +23832,9 @@ var MwebChatOption = ({
|
|
23839
23832
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
23840
23833
|
init_define_process_env();
|
23841
23834
|
import { useCallback as useCallback23 } from "react";
|
23842
|
-
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as
|
23835
|
+
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions33, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
|
23843
23836
|
var useChatBlacklist = (sessionStoreKey) => {
|
23844
|
-
const hmsActions =
|
23837
|
+
const hmsActions = useHMSActions33();
|
23845
23838
|
const blacklistedIDs = useHMSStore52(selectSessionStore2(sessionStoreKey));
|
23846
23839
|
const blacklistItem = useCallback23(
|
23847
23840
|
(blacklistID) => __async(void 0, null, function* () {
|
@@ -23863,11 +23856,11 @@ import { useCallback as useCallback24 } from "react";
|
|
23863
23856
|
import {
|
23864
23857
|
selectPeerNameByID as selectPeerNameByID2,
|
23865
23858
|
selectSessionStore as selectSessionStore3,
|
23866
|
-
useHMSActions as
|
23859
|
+
useHMSActions as useHMSActions34,
|
23867
23860
|
useHMSVanillaStore as useHMSVanillaStore8
|
23868
23861
|
} from "@100mslive/react-sdk";
|
23869
23862
|
var usePinnedMessages = () => {
|
23870
|
-
const hmsActions =
|
23863
|
+
const hmsActions = useHMSActions34();
|
23871
23864
|
const vanillaStore = useHMSVanillaStore8();
|
23872
23865
|
const setPinnedMessages = useCallback24(
|
23873
23866
|
(message, pinnedBy) => __async(void 0, null, function* () {
|
@@ -23935,7 +23928,7 @@ var ChatActions = ({
|
|
23935
23928
|
const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
|
23936
23929
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
23937
23930
|
const [open, setOpen] = useState44(false);
|
23938
|
-
const actions =
|
23931
|
+
const actions = useHMSActions35();
|
23939
23932
|
const canRemoveOthers = (_b7 = useHMSStore53(selectPermissions17)) == null ? void 0 : _b7.removeOthers;
|
23940
23933
|
const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
|
23941
23934
|
const localPeerName = useHMSStore53(selectLocalPeerName2);
|
@@ -24459,7 +24452,7 @@ var MessageWrapper = React108.memo(
|
|
24459
24452
|
}
|
24460
24453
|
);
|
24461
24454
|
var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
24462
|
-
const hmsActions =
|
24455
|
+
const hmsActions = useHMSActions36();
|
24463
24456
|
const itemKey2 = useCallback26((index, data3) => {
|
24464
24457
|
return data3[index].id;
|
24465
24458
|
}, []);
|
@@ -24572,7 +24565,7 @@ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRe
|
|
24572
24565
|
import { useMedia as useMedia15 } from "react-use";
|
24573
24566
|
import data2 from "@emoji-mart/data";
|
24574
24567
|
import Picker from "@emoji-mart/react";
|
24575
|
-
import { selectLocalPeer as selectLocalPeer3, useHMSActions as
|
24568
|
+
import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
24576
24569
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
24577
24570
|
|
24578
24571
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -24873,10 +24866,10 @@ var ChatSelectorContainer = () => {
|
|
24873
24866
|
// src/Prebuilt/components/AppData/useChatState.js
|
24874
24867
|
init_define_process_env();
|
24875
24868
|
import { useCallback as useCallback27 } from "react";
|
24876
|
-
import { selectAppData as
|
24869
|
+
import { selectAppData as selectAppData6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
24877
24870
|
var useChatDraftMessage = () => {
|
24878
|
-
const hmsActions =
|
24879
|
-
let chatDraftMessage = useHMSStore57(
|
24871
|
+
const hmsActions = useHMSActions37();
|
24872
|
+
let chatDraftMessage = useHMSStore57(selectAppData6(APP_DATA.chatDraft));
|
24880
24873
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
24881
24874
|
chatDraftMessage = "";
|
24882
24875
|
}
|
@@ -24969,7 +24962,7 @@ function EmojiPicker({ onSelect }) {
|
|
24969
24962
|
}
|
24970
24963
|
var ChatFooter = ({ onSend, children }) => {
|
24971
24964
|
var _a8, _b7, _c, _d;
|
24972
|
-
const hmsActions =
|
24965
|
+
const hmsActions = useHMSActions38();
|
24973
24966
|
const inputRef = useRef21(null);
|
24974
24967
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
24975
24968
|
const isMobile = useMedia15(config.media.md);
|
@@ -25156,10 +25149,10 @@ var ChatFooter = ({ onSend, children }) => {
|
|
25156
25149
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
25157
25150
|
init_define_process_env();
|
25158
25151
|
import React112, { useCallback as useCallback29 } from "react";
|
25159
|
-
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as
|
25152
|
+
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
25160
25153
|
var ChatPaused = () => {
|
25161
25154
|
var _a8, _b7;
|
25162
|
-
const hmsActions =
|
25155
|
+
const hmsActions = useHMSActions39();
|
25163
25156
|
const { elements } = useRoomLayoutConferencingScreen();
|
25164
25157
|
const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
25165
25158
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
@@ -25388,7 +25381,7 @@ var Chat = () => {
|
|
25388
25381
|
var _a8, _b7;
|
25389
25382
|
const { elements } = useRoomLayoutConferencingScreen();
|
25390
25383
|
const listRef = useRef22(null);
|
25391
|
-
const hmsActions =
|
25384
|
+
const hmsActions = useHMSActions40();
|
25392
25385
|
const vanillaStore = useHMSVanillaStore10();
|
25393
25386
|
const { enabled: isChatEnabled = true } = useHMSStore61(pm("chatState" /* CHAT_STATE */)) || {};
|
25394
25387
|
const isMobile = useMedia17(config.media.md);
|
@@ -25602,11 +25595,11 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
25602
25595
|
// src/Prebuilt/components/ChatSettings.tsx
|
25603
25596
|
init_define_process_env();
|
25604
25597
|
import React118 from "react";
|
25605
|
-
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as
|
25598
|
+
import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions41, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
|
25606
25599
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
25607
25600
|
var ChatSettings = () => {
|
25608
25601
|
var _a8, _b7;
|
25609
|
-
const hmsActions =
|
25602
|
+
const hmsActions = useHMSActions41();
|
25610
25603
|
const localPeer = useHMSStore63(selectLocalPeer5);
|
25611
25604
|
const { elements } = useRoomLayoutConferencingScreen();
|
25612
25605
|
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
@@ -25887,7 +25880,7 @@ import {
|
|
25887
25880
|
selectSessionStore as selectSessionStore10,
|
25888
25881
|
selectTrackByID as selectTrackByID2,
|
25889
25882
|
useCustomEvent as useCustomEvent2,
|
25890
|
-
useHMSActions as
|
25883
|
+
useHMSActions as useHMSActions42,
|
25891
25884
|
useHMSStore as useHMSStore66,
|
25892
25885
|
useRemoteAVToggle
|
25893
25886
|
} from "@100mslive/react-sdk";
|
@@ -25924,7 +25917,7 @@ var SpotlightActions = ({
|
|
25924
25917
|
return;
|
25925
25918
|
}
|
25926
25919
|
}) => {
|
25927
|
-
const hmsActions =
|
25920
|
+
const hmsActions = useHMSActions42();
|
25928
25921
|
const spotlightPeerId = useHMSStore66(selectSessionStore10("spotlight" /* SPOTLIGHT */));
|
25929
25922
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
25930
25923
|
const dragClassName = getDragClassName();
|
@@ -25974,7 +25967,7 @@ var MinimiseInset = () => {
|
|
25974
25967
|
var SimulcastLayers = ({ trackId }) => {
|
25975
25968
|
var _a8;
|
25976
25969
|
const track = useHMSStore66(selectTrackByID2(trackId));
|
25977
|
-
const actions =
|
25970
|
+
const actions = useHMSActions42();
|
25978
25971
|
const bg = useDropdownSelection();
|
25979
25972
|
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
25980
25973
|
return null;
|
@@ -26057,7 +26050,7 @@ var TileMenuContent = ({
|
|
26057
26050
|
}
|
26058
26051
|
}) => {
|
26059
26052
|
var _a8;
|
26060
|
-
const actions =
|
26053
|
+
const actions = useHMSActions42();
|
26061
26054
|
const dragClassName = getDragClassName();
|
26062
26055
|
const removeOthers = (_a8 = useHMSStore66(selectPermissions18)) == null ? void 0 : _a8.removeOthers;
|
26063
26056
|
const { userName } = useHMSPrebuiltContext();
|
@@ -26363,6 +26356,7 @@ var VideoTile_default = VideoTile;
|
|
26363
26356
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
26364
26357
|
init_define_process_env();
|
26365
26358
|
import React126, { useEffect as useEffect32, useState as useState55 } from "react";
|
26359
|
+
import { useMedia as useMedia21 } from "react-use";
|
26366
26360
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
26367
26361
|
import {
|
26368
26362
|
HMSRoomState as HMSRoomState4,
|
@@ -26372,7 +26366,7 @@ import {
|
|
26372
26366
|
selectLocalPeer as selectLocalPeer6,
|
26373
26367
|
selectRoomState as selectRoomState4,
|
26374
26368
|
selectVideoTrackByID as selectVideoTrackByID4,
|
26375
|
-
useHMSActions as
|
26369
|
+
useHMSActions as useHMSActions43,
|
26376
26370
|
useHMSStore as useHMSStore69
|
26377
26371
|
} from "@100mslive/react-sdk";
|
26378
26372
|
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
|
@@ -26406,7 +26400,7 @@ var Root25 = ({
|
|
26406
26400
|
"&:hover": { border: "4px solid $primary_dim" }
|
26407
26401
|
}, mediaURL ? { height: "$20", backgroundImage: `url(${mediaURL})`, backgroundSize: "cover" } : {}),
|
26408
26402
|
onClick: () => __async(void 0, null, function* () {
|
26409
|
-
|
26403
|
+
yield onClick == null ? void 0 : onClick();
|
26410
26404
|
})
|
26411
26405
|
},
|
26412
26406
|
children
|
@@ -26450,12 +26444,12 @@ init_define_process_env();
|
|
26450
26444
|
import { HMSEffectsPlugin, HMSVBPlugin, HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background";
|
26451
26445
|
var VBPlugin = class {
|
26452
26446
|
constructor() {
|
26453
|
-
this.initialisePlugin = (effectsSDKKey) => {
|
26447
|
+
this.initialisePlugin = (effectsSDKKey, onInit) => {
|
26454
26448
|
if (this.getVBObject()) {
|
26455
26449
|
return;
|
26456
26450
|
}
|
26457
26451
|
if (effectsSDKKey) {
|
26458
|
-
this.effectsPlugin = new HMSEffectsPlugin(effectsSDKKey);
|
26452
|
+
this.effectsPlugin = new HMSEffectsPlugin(effectsSDKKey, onInit);
|
26459
26453
|
} else {
|
26460
26454
|
this.hmsPlugin = new HMSVBPlugin(HMSVirtualBackgroundTypes2.NONE, HMSVirtualBackgroundTypes2.NONE);
|
26461
26455
|
}
|
@@ -26559,7 +26553,7 @@ var iconDims = { height: "40px", width: "40px" };
|
|
26559
26553
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
26560
26554
|
var _a8;
|
26561
26555
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26562
|
-
const hmsActions =
|
26556
|
+
const hmsActions = useHMSActions43();
|
26563
26557
|
const localPeer = useHMSStore69(selectLocalPeer6);
|
26564
26558
|
const role = useHMSStore69(qt);
|
26565
26559
|
const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
|
@@ -26571,6 +26565,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26571
26565
|
const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
|
26572
26566
|
const isEffectsEnabled = useHMSStore69(nc);
|
26573
26567
|
const effectsKey = useHMSStore69(cc);
|
26568
|
+
const isMobile = useMedia21(config.media.md);
|
26569
|
+
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
26574
26570
|
const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
26575
26571
|
const background = useHMSStore69(um(APP_DATA.background));
|
26576
26572
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
@@ -26581,13 +26577,15 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26581
26577
|
return;
|
26582
26578
|
}
|
26583
26579
|
if (!isPluginAdded) {
|
26580
|
+
setLoadingEffects(true);
|
26584
26581
|
let vbObject = VBHandler.getVBObject();
|
26585
26582
|
if (!vbObject) {
|
26586
|
-
VBHandler.initialisePlugin(isEffectsEnabled && effectsKey ? effectsKey : "");
|
26583
|
+
VBHandler.initialisePlugin(isEffectsEnabled && effectsKey ? effectsKey : "", () => setLoadingEffects(false));
|
26587
26584
|
vbObject = VBHandler.getVBObject();
|
26588
26585
|
if (isEffectsEnabled && effectsKey) {
|
26589
26586
|
hmsActions.addPluginsToVideoStream([vbObject]);
|
26590
26587
|
} else {
|
26588
|
+
setLoadingEffects(false);
|
26591
26589
|
if (!role) {
|
26592
26590
|
return;
|
26593
26591
|
}
|
@@ -26609,13 +26607,24 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26609
26607
|
});
|
26610
26608
|
handleDefaultBackground();
|
26611
26609
|
}
|
26612
|
-
}, [
|
26610
|
+
}, [
|
26611
|
+
hmsActions,
|
26612
|
+
role,
|
26613
|
+
isPluginAdded,
|
26614
|
+
isEffectsEnabled,
|
26615
|
+
effectsKey,
|
26616
|
+
track == null ? void 0 : track.id,
|
26617
|
+
background,
|
26618
|
+
blurAmount,
|
26619
|
+
setLoadingEffects
|
26620
|
+
]);
|
26613
26621
|
useEffect32(() => {
|
26614
26622
|
if (!isVideoOn) {
|
26615
26623
|
toggleVB();
|
26616
26624
|
}
|
26617
|
-
|
26618
|
-
|
26625
|
+
return () => setLoadingEffects(false);
|
26626
|
+
}, [isVideoOn, setLoadingEffects, toggleVB]);
|
26627
|
+
return /* @__PURE__ */ React126.createElement(Flex, { css: { pr: "$6", size: "100%" }, direction: "column" }, /* @__PURE__ */ React126.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", background: "$surface_dim", pb: "$4" } }, /* @__PURE__ */ React126.createElement(Text, { variant: "h6", css: { color: "$on_surface_high", display: "flex", alignItems: "center" } }, "Virtual Background ", isMobile && loadingEffects ? /* @__PURE__ */ React126.createElement(Loading, { size: 18, style: { marginLeft: "0.5rem" } }) : ""), /* @__PURE__ */ React126.createElement(
|
26619
26628
|
Box,
|
26620
26629
|
{
|
26621
26630
|
css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
|
@@ -26803,9 +26812,9 @@ var SidePane = ({
|
|
26803
26812
|
hideControls = false
|
26804
26813
|
}) => {
|
26805
26814
|
var _a8, _b7, _c, _d, _e, _f, _g;
|
26806
|
-
const isMobile =
|
26807
|
-
const sidepane = useHMSStore70(
|
26808
|
-
const activeScreensharePeerId = useHMSStore70(
|
26815
|
+
const isMobile = useMedia22(config.media.md);
|
26816
|
+
const sidepane = useHMSStore70(selectAppData7(APP_DATA.sidePane));
|
26817
|
+
const activeScreensharePeerId = useHMSStore70(selectAppData7(APP_DATA.activeScreensharePeerId));
|
26809
26818
|
const trackId = (_a8 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
26810
26819
|
const { elements } = useRoomLayoutConferencingScreen();
|
26811
26820
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
@@ -26913,16 +26922,20 @@ var Chip = ({
|
|
26913
26922
|
};
|
26914
26923
|
var Chip_default = Chip;
|
26915
26924
|
|
26916
|
-
// src/Prebuilt/components/FullPageProgress.
|
26925
|
+
// src/Prebuilt/components/FullPageProgress.tsx
|
26917
26926
|
init_define_process_env();
|
26918
26927
|
import React129 from "react";
|
26919
|
-
var FullPageProgress = ({
|
26928
|
+
var FullPageProgress = ({
|
26929
|
+
loaderColor = "$primary_default",
|
26930
|
+
text = "",
|
26931
|
+
css: css2 = {}
|
26932
|
+
}) => /* @__PURE__ */ React129.createElement(Flex, { direction: "column", justify: "center", align: "center", css: __spreadValues({ size: "100%", color: loaderColor }, css2) }, /* @__PURE__ */ React129.createElement(Loading, { color: "currentColor", size: 100 }), text ? /* @__PURE__ */ React129.createElement(Text, { css: { mt: "$10", color: "$on_surface_high" } }, text) : null);
|
26920
26933
|
var FullPageProgress_default = FullPageProgress;
|
26921
26934
|
|
26922
26935
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
26923
26936
|
init_define_process_env();
|
26924
26937
|
import React130 from "react";
|
26925
|
-
import { useMedia as
|
26938
|
+
import { useMedia as useMedia23 } from "react-use";
|
26926
26939
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
|
26927
26940
|
import { useRecordingStreaming as useRecordingStreaming10 } from "@100mslive/react-sdk";
|
26928
26941
|
import { GoLiveIcon } from "@100mslive/react-icons";
|
@@ -26939,7 +26952,7 @@ var PreviewForm = ({
|
|
26939
26952
|
const formSubmit = (e) => {
|
26940
26953
|
e.preventDefault();
|
26941
26954
|
};
|
26942
|
-
const isMobile =
|
26955
|
+
const isMobile = useMedia23(config.media.md);
|
26943
26956
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
|
26944
26957
|
const layout = useRoomLayout();
|
26945
26958
|
const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
@@ -27000,7 +27013,7 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
27000
27013
|
var useLocalTileAspectRatio = () => {
|
27001
27014
|
const localPeer = useHMSStore71(selectLocalPeer7);
|
27002
27015
|
const videoTrack = useHMSStore71(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
|
27003
|
-
const isMobile =
|
27016
|
+
const isMobile = useMedia24(config.media.md);
|
27004
27017
|
let aspectRatio = 0;
|
27005
27018
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
27006
27019
|
aspectRatio = videoTrack.width / videoTrack.height;
|
@@ -27025,6 +27038,7 @@ var PreviewJoin = ({
|
|
27025
27038
|
const [previewError, setPreviewError] = useState56(false);
|
27026
27039
|
const { endpoints } = useHMSPrebuiltContext();
|
27027
27040
|
const { peerCount } = useParticipants2();
|
27041
|
+
const loadingEffects = useHMSStore71(selectAppData8(APP_DATA.loadingEffects));
|
27028
27042
|
const { enableJoin, preview, join } = usePreviewJoin({
|
27029
27043
|
name,
|
27030
27044
|
token: authToken,
|
@@ -27094,7 +27108,7 @@ var PreviewJoin = ({
|
|
27094
27108
|
name,
|
27095
27109
|
disabled: !!initialName,
|
27096
27110
|
onChange: setName,
|
27097
|
-
enableJoin,
|
27111
|
+
enableJoin: enableJoin && !loadingEffects,
|
27098
27112
|
onJoin: savePreferenceAndJoin,
|
27099
27113
|
cannotPublishVideo: !toggleVideo,
|
27100
27114
|
cannotPublishAudio: !toggleAudio
|
@@ -27154,7 +27168,7 @@ var PreviewTile = ({ name, error }) => {
|
|
27154
27168
|
);
|
27155
27169
|
};
|
27156
27170
|
var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
27157
|
-
const isMobile =
|
27171
|
+
const isMobile = useMedia24(config.media.md);
|
27158
27172
|
return /* @__PURE__ */ React131.createElement(
|
27159
27173
|
Flex,
|
27160
27174
|
{
|
@@ -27177,7 +27191,7 @@ var PreviewJoin_default = PreviewJoin;
|
|
27177
27191
|
// src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
|
27178
27192
|
init_define_process_env();
|
27179
27193
|
import React132 from "react";
|
27180
|
-
import { useMedia as
|
27194
|
+
import { useMedia as useMedia25 } from "react-use";
|
27181
27195
|
var RequestPrompt = ({
|
27182
27196
|
open = true,
|
27183
27197
|
onOpenChange,
|
@@ -27187,7 +27201,7 @@ var RequestPrompt = ({
|
|
27187
27201
|
onAction,
|
27188
27202
|
disableActions = false
|
27189
27203
|
}) => {
|
27190
|
-
const isMobile =
|
27204
|
+
const isMobile = useMedia25(config.media.md);
|
27191
27205
|
if (isMobile) {
|
27192
27206
|
return /* @__PURE__ */ React132.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React132.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React132.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React132.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
|
27193
27207
|
}
|
@@ -27201,7 +27215,7 @@ var RequestActions = ({
|
|
27201
27215
|
|
27202
27216
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
27203
27217
|
var RoleChangeRequestModal = () => {
|
27204
|
-
const hmsActions =
|
27218
|
+
const hmsActions = useHMSActions44();
|
27205
27219
|
const { updateMetaData } = useMyMetadata();
|
27206
27220
|
const isPreview = useHMSStore72(selectIsInPreview);
|
27207
27221
|
const currentRole = useHMSStore72(selectLocalPeerRoleName4);
|
@@ -27276,7 +27290,7 @@ var RoleChangeRequestModal = () => {
|
|
27276
27290
|
init_define_process_env();
|
27277
27291
|
import React151, { Suspense, useEffect as useEffect48 } from "react";
|
27278
27292
|
import { match as match12 } from "ts-pattern";
|
27279
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as
|
27293
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions46, useHMSStore as useHMSStore83 } from "@100mslive/react-sdk";
|
27280
27294
|
|
27281
27295
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
27282
27296
|
init_define_process_env();
|
@@ -27294,14 +27308,14 @@ import {
|
|
27294
27308
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27295
27309
|
init_define_process_env();
|
27296
27310
|
import React138, { useEffect as useEffect39, useMemo as useMemo15, useState as useState58 } from "react";
|
27297
|
-
import { useMedia as
|
27311
|
+
import { useMedia as useMedia28 } from "react-use";
|
27298
27312
|
import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
|
27299
27313
|
|
27300
27314
|
// src/Prebuilt/components/InsetTile.tsx
|
27301
27315
|
init_define_process_env();
|
27302
27316
|
import React135, { useEffect as useEffect36, useRef as useRef23 } from "react";
|
27303
27317
|
import Draggable from "react-draggable";
|
27304
|
-
import { useMedia as
|
27318
|
+
import { useMedia as useMedia26 } from "react-use";
|
27305
27319
|
import {
|
27306
27320
|
selectIsAllowedToPublish as selectIsAllowedToPublish2,
|
27307
27321
|
selectLocalPeer as selectLocalPeer8,
|
@@ -27345,8 +27359,8 @@ var insetMaxWidthPx = 240;
|
|
27345
27359
|
var defaultMobileAspectRatio = 9 / 16;
|
27346
27360
|
var desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
27347
27361
|
var InsetTile = ({ peerId }) => {
|
27348
|
-
const isMobile =
|
27349
|
-
const isLandscape =
|
27362
|
+
const isMobile = useMedia26(config.media.md);
|
27363
|
+
const isLandscape = useMedia26(config.media.ls);
|
27350
27364
|
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
|
27351
27365
|
const peer = useHMSStore73(selector);
|
27352
27366
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
@@ -27506,7 +27520,7 @@ var Grid = React137.forwardRef(
|
|
27506
27520
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
27507
27521
|
init_define_process_env();
|
27508
27522
|
import { useEffect as useEffect38, useMemo as useMemo14, useState as useState57 } from "react";
|
27509
|
-
import { useMeasure as useMeasure5, useMedia as
|
27523
|
+
import { useMeasure as useMeasure5, useMedia as useMedia27 } from "react-use";
|
27510
27524
|
import {
|
27511
27525
|
getPeersWithTiles,
|
27512
27526
|
selectTracksMap as selectTracksMap4,
|
@@ -27542,7 +27556,7 @@ var useTileLayout = ({
|
|
27542
27556
|
}) => {
|
27543
27557
|
const vanillaStore = useHMSVanillaStore11();
|
27544
27558
|
const [ref, { width, height }] = useMeasure5();
|
27545
|
-
const isMobile =
|
27559
|
+
const isMobile = useMedia27(config.media.lg);
|
27546
27560
|
const [pagesWithTiles, setPagesWithTiles] = useState57([]);
|
27547
27561
|
useEffect38(() => {
|
27548
27562
|
if (width === 0 || height === 0) {
|
@@ -27612,7 +27626,7 @@ var useTileLayout = ({
|
|
27612
27626
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
27613
27627
|
var _a8;
|
27614
27628
|
const localPeer = useHMSStore74(selectLocalPeer9);
|
27615
|
-
const isMobile =
|
27629
|
+
const isMobile = useMedia28(config.media.md);
|
27616
27630
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27617
27631
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
27618
27632
|
let pageList = usePagesWithTiles({
|
@@ -27657,14 +27671,14 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
27657
27671
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
27658
27672
|
init_define_process_env();
|
27659
27673
|
import React141, { useEffect as useEffect41, useState as useState60 } from "react";
|
27660
|
-
import { useMedia as
|
27674
|
+
import { useMedia as useMedia30 } from "react-use";
|
27661
27675
|
import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
|
27662
27676
|
|
27663
27677
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
27664
27678
|
init_define_process_env();
|
27665
27679
|
import React140, { useEffect as useEffect40, useRef as useRef24, useState as useState59 } from "react";
|
27666
|
-
import { useMedia as
|
27667
|
-
import { selectAppData as
|
27680
|
+
import { useMedia as useMedia29 } from "react-use";
|
27681
|
+
import { selectAppData as selectAppData9, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
27668
27682
|
|
27669
27683
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
27670
27684
|
init_define_process_env();
|
@@ -27748,12 +27762,12 @@ var ProminenceLayout = {
|
|
27748
27762
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
27749
27763
|
var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
27750
27764
|
var _a8, _b7;
|
27751
|
-
const isMobile =
|
27765
|
+
const isMobile = useMedia29(config.media.md);
|
27752
27766
|
const maxTileCount = isMobile ? 2 : 4;
|
27753
27767
|
const [page, setPage] = useState59(0);
|
27754
|
-
const pinnedTrackId = useHMSStore75(
|
27768
|
+
const pinnedTrackId = useHMSStore75(selectAppData9(APP_DATA.pinnedTrackId));
|
27755
27769
|
const spotlightPeerId = useHMSStore75(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
27756
|
-
const activeScreensharePeerId = useHMSStore75(
|
27770
|
+
const activeScreensharePeerId = useHMSStore75(selectAppData9(APP_DATA.activeScreensharePeerId));
|
27757
27771
|
const pinnedPeer = (_a8 = useHMSStore75(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
|
27758
27772
|
const pageChangedAfterPinning = useRef24(false);
|
27759
27773
|
const pagesWithTiles = usePagesWithTiles({
|
@@ -27850,7 +27864,7 @@ function RoleProminence({
|
|
27850
27864
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
27851
27865
|
const localPeer = useHMSStore76(selectLocalPeer10);
|
27852
27866
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
27853
|
-
const isMobile =
|
27867
|
+
const isMobile = useMedia30(config.media.md);
|
27854
27868
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
27855
27869
|
maxTileCount = isMobile ? 4 : maxTileCount;
|
27856
27870
|
const pageList = usePagesWithTiles({
|
@@ -27892,13 +27906,13 @@ function RoleProminence({
|
|
27892
27906
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
27893
27907
|
init_define_process_env();
|
27894
27908
|
import React145, { useEffect as useEffect42, useMemo as useMemo17, useState as useState63 } from "react";
|
27895
|
-
import { useMedia as
|
27909
|
+
import { useMedia as useMedia32 } from "react-use";
|
27896
27910
|
import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
|
27897
27911
|
|
27898
27912
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
27899
27913
|
init_define_process_env();
|
27900
27914
|
import React144, { useRef as useRef25, useState as useState62 } from "react";
|
27901
|
-
import { useFullscreen as useFullscreen2, useMedia as
|
27915
|
+
import { useFullscreen as useFullscreen2, useMedia as useMedia31 } from "react-use";
|
27902
27916
|
import screenfull2 from "screenfull";
|
27903
27917
|
import {
|
27904
27918
|
selectLocalPeerID as selectLocalPeerID13,
|
@@ -28016,10 +28030,10 @@ var LayoutModeSelector = () => {
|
|
28016
28030
|
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
28017
28031
|
init_define_process_env();
|
28018
28032
|
import React143 from "react";
|
28019
|
-
import { useHMSActions as
|
28033
|
+
import { useHMSActions as useHMSActions45 } from "@100mslive/react-sdk";
|
28020
28034
|
import { CrossIcon as CrossIcon24, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
28021
28035
|
var ScreenshareDisplay = () => {
|
28022
|
-
const hmsActions =
|
28036
|
+
const hmsActions = useHMSActions45();
|
28023
28037
|
return /* @__PURE__ */ React143.createElement(
|
28024
28038
|
Flex,
|
28025
28039
|
{
|
@@ -28066,7 +28080,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
28066
28080
|
const peer = useHMSStore77(selectPeerByID4(peerId));
|
28067
28081
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
28068
28082
|
const [isMouseHovered, setIsMouseHovered] = useState62(false);
|
28069
|
-
const isMobile =
|
28083
|
+
const isMobile = useMedia31(config.media.md);
|
28070
28084
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
28071
28085
|
const fullscreenRef = useRef25(null);
|
28072
28086
|
const [fullscreen, setFullscreen] = useState62(false);
|
@@ -28158,7 +28172,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28158
28172
|
const [page, setPage] = useState63(0);
|
28159
28173
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28160
28174
|
const activeSharePeer = peersSharing[page];
|
28161
|
-
const isMobile =
|
28175
|
+
const isMobile = useMedia32(config.media.md);
|
28162
28176
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28163
28177
|
const secondaryPeers = useMemo17(() => {
|
28164
28178
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -28204,10 +28218,10 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28204
28218
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
28205
28219
|
init_define_process_env();
|
28206
28220
|
import React146, { useEffect as useEffect43, useMemo as useMemo18 } from "react";
|
28207
|
-
import { useMedia as
|
28221
|
+
import { useMedia as useMedia33 } from "react-use";
|
28208
28222
|
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
28209
28223
|
var WhiteboardEmbed = () => {
|
28210
|
-
const isMobile =
|
28224
|
+
const isMobile = useMedia33(config.media.md);
|
28211
28225
|
const { iframeRef } = useWhiteboard2(isMobile);
|
28212
28226
|
return /* @__PURE__ */ React146.createElement(
|
28213
28227
|
Box,
|
@@ -28243,7 +28257,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
28243
28257
|
const whiteboard = useHMSStore79(selectWhiteboard);
|
28244
28258
|
const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
28245
28259
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
28246
|
-
const isMobile =
|
28260
|
+
const isMobile = useMedia33(config.media.md);
|
28247
28261
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
28248
28262
|
const secondaryPeers = useMemo18(() => {
|
28249
28263
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -28490,7 +28504,7 @@ var GridLayout = ({
|
|
28490
28504
|
// src/Prebuilt/layouts/EmbedView.jsx
|
28491
28505
|
init_define_process_env();
|
28492
28506
|
import React148, { useEffect as useEffect45, useMemo as useMemo20 } from "react";
|
28493
|
-
import { selectAppData as
|
28507
|
+
import { selectAppData as selectAppData10, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
|
28494
28508
|
var EmbedView = () => {
|
28495
28509
|
return /* @__PURE__ */ React148.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React148.createElement(EmbedComponent, null));
|
28496
28510
|
};
|
@@ -28511,7 +28525,7 @@ var EmbedScreenShareView = ({ children }) => {
|
|
28511
28525
|
return /* @__PURE__ */ React148.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React148.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React148.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
28512
28526
|
};
|
28513
28527
|
var EmbedComponent = () => {
|
28514
|
-
const embedConfig = useHMSStore81(
|
28528
|
+
const embedConfig = useHMSStore81(selectAppData10(APP_DATA.embedConfig));
|
28515
28529
|
const resetConfig = useResetEmbedConfig();
|
28516
28530
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
28517
28531
|
useEffect45(() => {
|
@@ -28680,7 +28694,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28680
28694
|
};
|
28681
28695
|
|
28682
28696
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28683
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28697
|
+
var HLSView = React151.lazy(() => import("./HLSView-HUMJOIWO.js"));
|
28684
28698
|
var VideoStreamingSection = ({
|
28685
28699
|
screenType,
|
28686
28700
|
elements,
|
@@ -28689,7 +28703,7 @@ var VideoStreamingSection = ({
|
|
28689
28703
|
var _a8;
|
28690
28704
|
const localPeerRole = useHMSStore83(selectLocalPeerRoleName6);
|
28691
28705
|
const isConnected = useHMSStore83(selectIsConnectedToRoom9);
|
28692
|
-
const hmsActions =
|
28706
|
+
const hmsActions = useHMSActions46();
|
28693
28707
|
const waitingViewerRole = useWaitingViewerRole();
|
28694
28708
|
const urlToIframe = useUrlToEmbed();
|
28695
28709
|
const pdfAnnotatorActive = usePDFConfig();
|
@@ -28769,17 +28783,17 @@ init_define_process_env();
|
|
28769
28783
|
// src/Prebuilt/components/Header/Header.tsx
|
28770
28784
|
init_define_process_env();
|
28771
28785
|
import React154 from "react";
|
28772
|
-
import { useMedia as
|
28786
|
+
import { useMedia as useMedia35 } from "react-use";
|
28773
28787
|
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
|
28774
28788
|
|
28775
28789
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
28776
28790
|
init_define_process_env();
|
28777
28791
|
import React152 from "react";
|
28778
|
-
import { useMedia as
|
28792
|
+
import { useMedia as useMedia34 } from "react-use";
|
28779
28793
|
import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
|
28780
28794
|
var RoomDetailsHeader = () => {
|
28781
28795
|
const { title, description } = useRoomLayoutHeader();
|
28782
|
-
const isMobile =
|
28796
|
+
const isMobile = useMedia34(config.media.md);
|
28783
28797
|
const clipLength = 30;
|
28784
28798
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
28785
28799
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -28805,7 +28819,7 @@ import {
|
|
28805
28819
|
selectLocalVideoTrackID as selectLocalVideoTrackID3,
|
28806
28820
|
selectVideoTrackByID as selectVideoTrackByID7,
|
28807
28821
|
useDevices as useDevices3,
|
28808
|
-
useHMSActions as
|
28822
|
+
useHMSActions as useHMSActions47,
|
28809
28823
|
useHMSStore as useHMSStore84
|
28810
28824
|
} from "@100mslive/react-sdk";
|
28811
28825
|
import {
|
@@ -28817,7 +28831,7 @@ import {
|
|
28817
28831
|
SpeakerIcon as SpeakerIcon4
|
28818
28832
|
} from "@100mslive/react-icons";
|
28819
28833
|
var CamaraFlipActions = () => {
|
28820
|
-
const actions =
|
28834
|
+
const actions = useHMSActions47();
|
28821
28835
|
const { allDevices } = useDevices3();
|
28822
28836
|
const { videoInput } = allDevices;
|
28823
28837
|
const isVideoOn = useHMSStore84(selectIsLocalVideoEnabled8);
|
@@ -28854,7 +28868,7 @@ var AudioActions = () => {
|
|
28854
28868
|
availableAudioDevices = audioOutput;
|
28855
28869
|
selectedAudio = selectedDeviceIDs.audioOutput;
|
28856
28870
|
}
|
28857
|
-
const hmsActions =
|
28871
|
+
const hmsActions = useHMSActions47();
|
28858
28872
|
const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
|
28859
28873
|
const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
|
28860
28874
|
if (!audioFiltered) {
|
@@ -28959,7 +28973,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React153.createElement(Re
|
|
28959
28973
|
// src/Prebuilt/components/Header/Header.tsx
|
28960
28974
|
var Header2 = () => {
|
28961
28975
|
const roomState = useHMSStore85(selectRoomState6);
|
28962
|
-
const isMobile =
|
28976
|
+
const isMobile = useMedia35(config.media.md);
|
28963
28977
|
if (roomState !== HMSRoomState6.Connected) {
|
28964
28978
|
return /* @__PURE__ */ React154.createElement(React154.Fragment, null);
|
28965
28979
|
}
|
@@ -29006,9 +29020,9 @@ var ConferenceScreen = () => {
|
|
29006
29020
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
29007
29021
|
const roomState = useHMSStore86(selectRoomState7);
|
29008
29022
|
const isConnectedToRoom = useHMSStore86(selectIsConnectedToRoom10);
|
29009
|
-
const hmsActions =
|
29023
|
+
const hmsActions = useHMSActions48();
|
29010
29024
|
const [hideControls, setHideControls] = useState65(false);
|
29011
|
-
const dropdownList = useHMSStore86(
|
29025
|
+
const dropdownList = useHMSStore86(selectAppData11(APP_DATA.dropdownList));
|
29012
29026
|
const authTokenInAppData = useAuthToken();
|
29013
29027
|
const headerRef = useRef26(null);
|
29014
29028
|
const footerRef = useRef26(null);
|
@@ -29300,10 +29314,10 @@ var Init = () => {
|
|
29300
29314
|
init_define_process_env();
|
29301
29315
|
import { useEffect as useEffect53 } from "react";
|
29302
29316
|
import {
|
29303
|
-
selectAppData as
|
29317
|
+
selectAppData as selectAppData12,
|
29304
29318
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
29305
29319
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
29306
|
-
useHMSActions as
|
29320
|
+
useHMSActions as useHMSActions49,
|
29307
29321
|
useHMSVanillaStore as useHMSVanillaStore14
|
29308
29322
|
} from "@100mslive/react-sdk";
|
29309
29323
|
var isEvenListenersAttached = false;
|
@@ -29321,19 +29335,19 @@ var KeyboardInputManager = class {
|
|
29321
29335
|
yield __privateGet(this, _actions).setLocalVideoEnabled(!enabled);
|
29322
29336
|
}));
|
29323
29337
|
__privateAdd(this, _hideSidepane, () => {
|
29324
|
-
if (__privateGet(this, _store).getState(
|
29338
|
+
if (__privateGet(this, _store).getState(selectAppData12(APP_DATA.sidePane))) {
|
29325
29339
|
__privateGet(this, _actions).setAppData(APP_DATA.sidePane, "");
|
29326
29340
|
}
|
29327
29341
|
});
|
29328
29342
|
__privateAdd(this, _toggleStatsForNerds, () => {
|
29329
|
-
const uiSettings = __privateGet(this, _store).getState(
|
29343
|
+
const uiSettings = __privateGet(this, _store).getState(selectAppData12(APP_DATA.uiSettings));
|
29330
29344
|
const statsEnabled = uiSettings.showStatsOnTiles;
|
29331
29345
|
__privateGet(this, _actions).setAppData(APP_DATA.uiSettings, __spreadProps(__spreadValues({}, uiSettings), {
|
29332
29346
|
showStatsOnTiles: !statsEnabled
|
29333
29347
|
}));
|
29334
29348
|
});
|
29335
29349
|
__privateAdd(this, _toggleHlsStats, () => {
|
29336
|
-
__privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState(
|
29350
|
+
__privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState(selectAppData12(APP_DATA.hlsStats)));
|
29337
29351
|
});
|
29338
29352
|
// eslint-disable-next-line complexity
|
29339
29353
|
__privateAdd(this, _keyDownHandler, (e) => __async(this, null, function* () {
|
@@ -29392,7 +29406,7 @@ _bind = new WeakMap();
|
|
29392
29406
|
_unbind = new WeakMap();
|
29393
29407
|
var KeyboardHandler = () => {
|
29394
29408
|
const store = useHMSVanillaStore14();
|
29395
|
-
const actions =
|
29409
|
+
const actions = useHMSActions49();
|
29396
29410
|
useEffect53(() => {
|
29397
29411
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
29398
29412
|
keyboardManager.bindAllShortcuts();
|
@@ -29529,12 +29543,12 @@ var LeaveScreen = () => {
|
|
29529
29543
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
29530
29544
|
init_define_process_env();
|
29531
29545
|
import React160, { useEffect as useEffect55, useState as useState66 } from "react";
|
29532
|
-
import { useMedia as
|
29546
|
+
import { useMedia as useMedia36 } from "react-use";
|
29533
29547
|
import { match as match14, P as P5 } from "ts-pattern";
|
29534
29548
|
import { RefreshIcon } from "@100mslive/react-icons";
|
29535
29549
|
var MwebLandscapePrompt = () => {
|
29536
29550
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState66(false);
|
29537
|
-
const isLandscape =
|
29551
|
+
const isLandscape = useMedia36(config.media.ls);
|
29538
29552
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
29539
29553
|
useEffect55(() => {
|
29540
29554
|
var _a8;
|
@@ -29677,7 +29691,7 @@ init_define_process_env();
|
|
29677
29691
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
29678
29692
|
init_define_process_env();
|
29679
29693
|
import React163, { useCallback as useCallback35 } from "react";
|
29680
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as
|
29694
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions50, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
|
29681
29695
|
import {
|
29682
29696
|
ChatUnreadIcon as ChatUnreadIcon2,
|
29683
29697
|
ConnectivityIcon,
|
@@ -29696,7 +29710,7 @@ var ChatAction = React163.forwardRef((_2, ref) => {
|
|
29696
29710
|
});
|
29697
29711
|
var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
29698
29712
|
var _a8, _b7, _c;
|
29699
|
-
const hmsActions =
|
29713
|
+
const hmsActions = useHMSActions50();
|
29700
29714
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29701
29715
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
29702
29716
|
const peer = useHMSStore90(selectPeerByID5(id));
|
@@ -29731,27 +29745,6 @@ var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
29731
29745
|
return /* @__PURE__ */ React163.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
|
29732
29746
|
});
|
29733
29747
|
var ToastConfig = {
|
29734
|
-
PEER_LIST: {
|
29735
|
-
single: function(notification) {
|
29736
|
-
var _a8, _b7;
|
29737
|
-
if (notification.data.length === 1) {
|
29738
|
-
return {
|
29739
|
-
title: `${(_a8 = notification.data[0]) == null ? void 0 : _a8.name} joined`,
|
29740
|
-
icon: /* @__PURE__ */ React163.createElement(PeopleAddIcon2, null)
|
29741
|
-
};
|
29742
|
-
}
|
29743
|
-
return {
|
29744
|
-
title: `${(_b7 = notification.data[notification.data.length - 1]) == null ? void 0 : _b7.name} and ${notification.data.length - 1} others joined`,
|
29745
|
-
icon: /* @__PURE__ */ React163.createElement(PeopleAddIcon2, null)
|
29746
|
-
};
|
29747
|
-
},
|
29748
|
-
multiple: (notifications) => {
|
29749
|
-
return {
|
29750
|
-
title: `${notifications[0].data.name} and ${notifications.length - 1} others joined`,
|
29751
|
-
icon: /* @__PURE__ */ React163.createElement(PeopleAddIcon2, null)
|
29752
|
-
};
|
29753
|
-
}
|
29754
|
-
},
|
29755
29748
|
PEER_JOINED: {
|
29756
29749
|
single: function(notification) {
|
29757
29750
|
var _a8;
|
@@ -29986,11 +29979,7 @@ var InitErrorModal = () => {
|
|
29986
29979
|
init_define_process_env();
|
29987
29980
|
import { useEffect as useEffect59 } from "react";
|
29988
29981
|
import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
|
29989
|
-
var notificationTypes = [
|
29990
|
-
HMSNotificationTypes4.PEER_LIST,
|
29991
|
-
HMSNotificationTypes4.PEER_JOINED,
|
29992
|
-
HMSNotificationTypes4.PEER_LEFT
|
29993
|
-
];
|
29982
|
+
var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
|
29994
29983
|
var PeerNotifications = () => {
|
29995
29984
|
const notification = useHMSNotifications4(notificationTypes);
|
29996
29985
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
@@ -30002,11 +29991,6 @@ var PeerNotifications = () => {
|
|
30002
29991
|
}
|
30003
29992
|
console.debug(`[${notification.type}]`, notification);
|
30004
29993
|
switch (notification.type) {
|
30005
|
-
case HMSNotificationTypes4.PEER_LIST:
|
30006
|
-
if (!isPeerJoinSubscribed || notification.data.length === 0) {
|
30007
|
-
return;
|
30008
|
-
}
|
30009
|
-
break;
|
30010
29994
|
case HMSNotificationTypes4.PEER_JOINED:
|
30011
29995
|
if (!isPeerJoinSubscribed) {
|
30012
29996
|
return;
|
@@ -30031,7 +30015,7 @@ var PeerNotifications = () => {
|
|
30031
30015
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
30032
30016
|
init_define_process_env();
|
30033
30017
|
import React165, { useEffect as useEffect60, useState as useState68 } from "react";
|
30034
|
-
import { useMedia as
|
30018
|
+
import { useMedia as useMedia37 } from "react-use";
|
30035
30019
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
30036
30020
|
|
30037
30021
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -30045,7 +30029,7 @@ function PermissionErrorModal() {
|
|
30045
30029
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
30046
30030
|
const [deviceType, setDeviceType] = useState68("");
|
30047
30031
|
const [isSystemError, setIsSystemError] = useState68(false);
|
30048
|
-
const isMobile =
|
30032
|
+
const isMobile = useMedia37(config.media.md);
|
30049
30033
|
useEffect60(() => {
|
30050
30034
|
var _a8, _b7, _c, _d, _e;
|
30051
30035
|
if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
|
@@ -30157,12 +30141,12 @@ init_define_process_env();
|
|
30157
30141
|
import React167, { useEffect as useEffect62, useState as useState70 } from "react";
|
30158
30142
|
import {
|
30159
30143
|
HMSNotificationTypes as HMSNotificationTypes7,
|
30160
|
-
useHMSActions as
|
30144
|
+
useHMSActions as useHMSActions51,
|
30161
30145
|
useHMSNotifications as useHMSNotifications7
|
30162
30146
|
} from "@100mslive/react-sdk";
|
30163
30147
|
import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
|
30164
30148
|
var TrackBulkUnmuteModal = () => {
|
30165
|
-
const hmsActions =
|
30149
|
+
const hmsActions = useHMSActions51();
|
30166
30150
|
const [muteNotification, setMuteNotification] = useState70(null);
|
30167
30151
|
const notification = useHMSNotifications7([
|
30168
30152
|
HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
@@ -30231,12 +30215,12 @@ init_define_process_env();
|
|
30231
30215
|
import React168, { useEffect as useEffect64, useState as useState71 } from "react";
|
30232
30216
|
import {
|
30233
30217
|
HMSNotificationTypes as HMSNotificationTypes9,
|
30234
|
-
useHMSActions as
|
30218
|
+
useHMSActions as useHMSActions52,
|
30235
30219
|
useHMSNotifications as useHMSNotifications9
|
30236
30220
|
} from "@100mslive/react-sdk";
|
30237
30221
|
import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
|
30238
30222
|
var TrackUnmuteModal = () => {
|
30239
|
-
const hmsActions =
|
30223
|
+
const hmsActions = useHMSActions52();
|
30240
30224
|
const notification = useHMSNotifications9([
|
30241
30225
|
HMSNotificationTypes9.CHANGE_TRACK_STATE_REQUEST,
|
30242
30226
|
HMSNotificationTypes9.ROOM_ENDED,
|
@@ -30494,7 +30478,7 @@ var ToastContainer = () => {
|
|
30494
30478
|
// src/Prebuilt/layouts/Sheet.tsx
|
30495
30479
|
init_define_process_env();
|
30496
30480
|
import React174 from "react";
|
30497
|
-
import { selectAppData as
|
30481
|
+
import { selectAppData as selectAppData13, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
|
30498
30482
|
|
30499
30483
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
30500
30484
|
init_define_process_env();
|
@@ -30518,7 +30502,7 @@ var RoomDetailsSheet = () => {
|
|
30518
30502
|
|
30519
30503
|
// src/Prebuilt/layouts/Sheet.tsx
|
30520
30504
|
var Sheet2 = () => {
|
30521
|
-
const sheet = useHMSStore94(
|
30505
|
+
const sheet = useHMSStore94(selectAppData13(APP_DATA.sheet));
|
30522
30506
|
let ViewComponent;
|
30523
30507
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
30524
30508
|
ViewComponent = /* @__PURE__ */ React174.createElement(RoomDetailsSheet, null);
|
@@ -30529,7 +30513,7 @@ var Sheet2 = () => {
|
|
30529
30513
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
30530
30514
|
init_define_process_env();
|
30531
30515
|
import React175, { useCallback as useCallback37, useEffect as useEffect67, useMemo as useMemo21, useState as useState73 } from "react";
|
30532
|
-
import { useMedia as
|
30516
|
+
import { useMedia as useMedia38 } from "react-use";
|
30533
30517
|
import {
|
30534
30518
|
selectLocalPeerID as selectLocalPeerID17,
|
30535
30519
|
selectPeerNameByID as selectPeerNameByID6,
|
@@ -30564,7 +30548,7 @@ function FlyingEmoji() {
|
|
30564
30548
|
const localPeerId = useHMSStore95(selectLocalPeerID17);
|
30565
30549
|
const vanillaStore = useHMSVanillaStore17();
|
30566
30550
|
const [emojis, setEmojis] = useState73([]);
|
30567
|
-
const isMobile =
|
30551
|
+
const isMobile = useMedia38(config.media.md);
|
30568
30552
|
const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
|
30569
30553
|
const showFlyingEmoji = useCallback37(
|
30570
30554
|
({ emojiId, senderId }) => {
|
@@ -30660,9 +30644,9 @@ function FlyingEmoji() {
|
|
30660
30644
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
30661
30645
|
init_define_process_env();
|
30662
30646
|
import React176, { useCallback as useCallback38 } from "react";
|
30663
|
-
import { useCustomEvent as useCustomEvent6, useHMSActions as
|
30647
|
+
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions53 } from "@100mslive/react-sdk";
|
30664
30648
|
function RemoteStopScreenshare() {
|
30665
|
-
const actions =
|
30649
|
+
const actions = useHMSActions53();
|
30666
30650
|
const onRemoteStopScreenshare = useCallback38(() => __async(this, null, function* () {
|
30667
30651
|
yield actions.setScreenShareEnabled(false);
|
30668
30652
|
}), [actions]);
|
@@ -30679,7 +30663,7 @@ import { useCallback as useCallback39, useEffect as useEffect68, useRef as useRe
|
|
30679
30663
|
import {
|
30680
30664
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
30681
30665
|
selectPermissions as selectPermissions20,
|
30682
|
-
useHMSActions as
|
30666
|
+
useHMSActions as useHMSActions54,
|
30683
30667
|
useHMSStore as useHMSStore96,
|
30684
30668
|
useRecordingStreaming as useRecordingStreaming12
|
30685
30669
|
} from "@100mslive/react-sdk";
|
@@ -30687,7 +30671,7 @@ var useAutoStartStreaming = () => {
|
|
30687
30671
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
30688
30672
|
const permissions = useHMSStore96(selectPermissions20);
|
30689
30673
|
const showStreamingUI = useShowStreamingUI();
|
30690
|
-
const hmsActions =
|
30674
|
+
const hmsActions = useHMSActions54();
|
30691
30675
|
const isConnected = useHMSStore96(selectIsConnectedToRoom12);
|
30692
30676
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
30693
30677
|
const streamStartedRef = useRef27(false);
|
@@ -30878,7 +30862,7 @@ var AppStates = ({ activeState }) => {
|
|
30878
30862
|
};
|
30879
30863
|
var BackSwipe = () => {
|
30880
30864
|
const isConnectedToRoom = useHMSStore97(selectIsConnectedToRoom13);
|
30881
|
-
const hmsActions =
|
30865
|
+
const hmsActions = useHMSActions55();
|
30882
30866
|
useEffect69(() => {
|
30883
30867
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
30884
30868
|
if (isConnectedToRoom) {
|
@@ -31054,4 +31038,4 @@ lodash/lodash.js:
|
|
31054
31038
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
31055
31039
|
*)
|
31056
31040
|
*/
|
31057
|
-
//# sourceMappingURL=chunk-
|
31041
|
+
//# sourceMappingURL=chunk-IDAPJGWC.js.map
|