@100mslive/roomkit-react 0.3.1-alpha.0 → 0.3.1-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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_ab520a32-0e8c-4e94-98ef-931221080404", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.1-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ab520a32-0e8c-4e94-98ef-931221080404", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.1-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19125", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.1-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8168860242", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "995fe879991b8b955f2ad917e8650a1abbbd5399", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "2da673bb0b4e42178f6ce38f45fd554cd1a02c4b721d041831f9452124b949e4", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1709712827692-0.9984712008035668:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709712827492-0.6077623487786448:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709712804731-0.716204009032984:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709712804551-0.5033325400363009:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7d27d35c-9c72-4513-95c3-4fd6be94b999", INVOCATION_ID: "5c7935390e7149a9b8fbf42c73fa3bf5", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "467", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 335", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.1-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.1-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "995fe879991b8b955f2ad917e8650a1abbbd5399", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_ab520a32-0e8c-4e94-98ef-931221080404", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_ab520a32-0e8c-4e94-98ef-931221080404", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ab520a32-0e8c-4e94-98ef-931221080404" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b2957b9e-44ef-45f1-b1d7-3216f319a8d5", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.1-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b2957b9e-44ef-45f1-b1d7-3216f319a8d5", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.1-alpha.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.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "608", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19532", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.1-alpha.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", GITHUB_RUN_ID: "8170824329", 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: "4d605f67eac9eefe0e72c7c0b851feb1cbdd4d2e", 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: "0b3c0635dbdece7b6bccacc0486e9c92d52d8019549f70aa9c6af31e9957abb6", 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--1709722183735-0.30611416917379053:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709722183536-0.581955201539752:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709722161263-0.6553367240088914:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709722161084-0.8793111649031171:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_de15080d-057f-421f-a31b-1b4763d6651f", INVOCATION_ID: "bc1e048fbb2e47ea9025c526967415f6", 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: "468", 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 12", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.1-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.1-alpha.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: "4d605f67eac9eefe0e72c7c0b851feb1cbdd4d2e", 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_b2957b9e-44ef-45f1-b1d7-3216f319a8d5", 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_b2957b9e-44ef-45f1-b1d7-3216f319a8d5", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_b2957b9e-44ef-45f1-b1d7-3216f319a8d5" };
110
110
  }
111
111
  });
112
112
 
@@ -14079,7 +14079,7 @@ var useDropdownList = ({ name, open }) => {
14079
14079
 
14080
14080
  // src/Prebuilt/common/hooks.ts
14081
14081
  init_define_process_env();
14082
- import { useEffect as useEffect12, useRef as useRef8, useState as useState11 } from "react";
14082
+ import { useCallback as useCallback8, useEffect as useEffect12, useRef as useRef8, useState as useState11 } from "react";
14083
14083
  import { useMedia as useMedia4 } from "react-use";
14084
14084
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
14085
14085
  import {
@@ -14153,6 +14153,29 @@ var useMobileHLSStream = () => {
14153
14153
  const { screenType } = useRoomLayoutConferencingScreen();
14154
14154
  return isMobile && screenType === "hls_live_streaming";
14155
14155
  };
14156
+ var useKeyboardHandler = (isPaused, hlsPlayer) => {
14157
+ const handleKeyEvent = useCallback8(
14158
+ (event) => __async(void 0, null, function* () {
14159
+ switch (event.key) {
14160
+ case " ":
14161
+ if (isPaused) {
14162
+ yield hlsPlayer == null ? void 0 : hlsPlayer.play();
14163
+ } else {
14164
+ hlsPlayer == null ? void 0 : hlsPlayer.pause();
14165
+ }
14166
+ break;
14167
+ case "ArrowRight":
14168
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo((hlsPlayer == null ? void 0 : hlsPlayer.getVideoElement().currentTime) + 10);
14169
+ break;
14170
+ case "ArrowLeft":
14171
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo((hlsPlayer == null ? void 0 : hlsPlayer.getVideoElement().currentTime) - 10);
14172
+ break;
14173
+ }
14174
+ }),
14175
+ [hlsPlayer, isPaused]
14176
+ );
14177
+ return handleKeyEvent;
14178
+ };
14156
14179
 
14157
14180
  // src/Prebuilt/components/EmojiReaction.jsx
14158
14181
  init({ data });
@@ -14622,7 +14645,7 @@ import React42 from "react";
14622
14645
 
14623
14646
  // src/Prebuilt/components/PIP/PIPComponent.jsx
14624
14647
  init_define_process_env();
14625
- import React41, { useCallback as useCallback8, useEffect as useEffect13, useState as useState15 } from "react";
14648
+ import React41, { useCallback as useCallback9, useEffect as useEffect13, useState as useState15 } from "react";
14626
14649
  import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions9, useHMSStore as useHMSStore14, useHMSVanillaStore as useHMSVanillaStore5 } from "@100mslive/react-sdk";
14627
14650
  import { PipIcon } from "@100mslive/react-icons";
14628
14651
 
@@ -15084,7 +15107,7 @@ var PIPComponent = ({ content = null }) => {
15084
15107
  const [isPipOn, setIsPipOn] = useState15(PictureInPicture.isOn());
15085
15108
  const hmsActions = useHMSActions9();
15086
15109
  const store = useHMSVanillaStore5();
15087
- const onPipToggle = useCallback8(() => {
15110
+ const onPipToggle = useCallback9(() => {
15088
15111
  if (!isPipOn) {
15089
15112
  PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
15090
15113
  MediaSession.setup(hmsActions, store);
@@ -15267,7 +15290,7 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
15267
15290
 
15268
15291
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
15269
15292
  init_define_process_env();
15270
- import React45, { useCallback as useCallback9, useState as useState17 } from "react";
15293
+ import React45, { useCallback as useCallback10, useState as useState17 } from "react";
15271
15294
  import { InfoIcon } from "@100mslive/react-icons";
15272
15295
 
15273
15296
  // src/Prebuilt/primitives/DialogContent.jsx
@@ -15429,7 +15452,7 @@ var DialogInputFile = (_a8) => {
15429
15452
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
15430
15453
  var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
15431
15454
  const [resolution, setResolution] = useState17(RTMP_RECORD_DEFAULT_RESOLUTION);
15432
- const resolutionChangeHandler = useCallback9(
15455
+ const resolutionChangeHandler = useCallback10(
15433
15456
  (event) => {
15434
15457
  const { name, value } = event.target;
15435
15458
  let width = name === "resWidth" ? Number(value) : resolution.width;
@@ -15778,7 +15801,7 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
15778
15801
 
15779
15802
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
15780
15803
  init_define_process_env();
15781
- import React48, { useCallback as useCallback10, useRef as useRef12, useState as useState20 } from "react";
15804
+ import React48, { useCallback as useCallback11, useRef as useRef12, useState as useState20 } from "react";
15782
15805
  import { useHMSActions as useHMSActions12 } from "@100mslive/react-sdk";
15783
15806
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon4 } from "@100mslive/react-icons";
15784
15807
  var BulkRoleChangeModal = ({ onOpenChange }) => {
@@ -15793,7 +15816,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
15793
15816
  const [roleDialog, setRoleDialog] = useState20(false);
15794
15817
  const [errorMessage, setErrorMessage] = useState20("");
15795
15818
  const [isSubmiting, setIsSubmiting] = useState20(false);
15796
- const changeBulkRole = useCallback10(() => __async(void 0, null, function* () {
15819
+ const changeBulkRole = useCallback11(() => __async(void 0, null, function* () {
15797
15820
  if (selectedBulkRole.length > 0 && selectedRole) {
15798
15821
  try {
15799
15822
  setIsSubmiting(true);
@@ -15891,11 +15914,11 @@ import { ExpandIcon } from "@100mslive/react-icons";
15891
15914
 
15892
15915
  // src/Prebuilt/components/hooks/useFullscreen.ts
15893
15916
  init_define_process_env();
15894
- import { useCallback as useCallback11, useEffect as useEffect15, useState as useState21 } from "react";
15917
+ import { useCallback as useCallback12, useEffect as useEffect15, useState as useState21 } from "react";
15895
15918
  import screenfull from "screenfull";
15896
15919
  var useFullscreen = () => {
15897
15920
  const [isFullScreenEnabled, setIsFullScreenEnabled] = useState21(screenfull.isFullscreen);
15898
- const toggle = useCallback11(() => __async(void 0, null, function* () {
15921
+ const toggle = useCallback12(() => __async(void 0, null, function* () {
15899
15922
  if (!screenfull.isEnabled) {
15900
15923
  ToastManager.addToast({ title: "Fullscreen feature not supported" });
15901
15924
  return;
@@ -15952,7 +15975,7 @@ var FullScreenItem = () => {
15952
15975
 
15953
15976
  // src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
15954
15977
  init_define_process_env();
15955
- import React51, { useCallback as useCallback12, useState as useState22 } from "react";
15978
+ import React51, { useCallback as useCallback13, useState as useState22 } from "react";
15956
15979
  import {
15957
15980
  selectAvailableRoleNames as selectAvailableRoleNames3,
15958
15981
  useHMSActions as useHMSActions13,
@@ -16028,7 +16051,7 @@ var MuteAllModal = ({
16028
16051
  const [trackType, setTrackType] = useState22();
16029
16052
  const [selectedRole, setRole] = useState22();
16030
16053
  const [selectedSource, setSource] = useState22();
16031
- const muteAll = useCallback12(() => __async(void 0, null, function* () {
16054
+ const muteAll = useCallback13(() => __async(void 0, null, function* () {
16032
16055
  yield hmsActions.setRemoteTracksEnabled({
16033
16056
  enabled,
16034
16057
  type: trackType,
@@ -16058,7 +16081,7 @@ var MuteAllModal = ({
16058
16081
 
16059
16082
  // src/Prebuilt/components/hooks/useMetadata.jsx
16060
16083
  init_define_process_env();
16061
- import { useCallback as useCallback13 } from "react";
16084
+ import { useCallback as useCallback14 } from "react";
16062
16085
  import {
16063
16086
  selectHasPeerHandRaised,
16064
16087
  selectLocalPeerID as selectLocalPeerID3,
@@ -16082,7 +16105,7 @@ var useMyMetadata = () => {
16082
16105
  console.error("failed to update metadata ", updatedFields);
16083
16106
  }
16084
16107
  });
16085
- const toggleHandRaise = useCallback13(() => __async(void 0, null, function* () {
16108
+ const toggleHandRaise = useCallback14(() => __async(void 0, null, function* () {
16086
16109
  if (isHandRaised) {
16087
16110
  yield hmsActions.lowerLocalPeerHand();
16088
16111
  } else {
@@ -16090,7 +16113,7 @@ var useMyMetadata = () => {
16090
16113
  yield update({ isBRBOn: false });
16091
16114
  }
16092
16115
  }), [isHandRaised]);
16093
- const toggleBRB = useCallback13(() => __async(void 0, null, function* () {
16116
+ const toggleBRB = useCallback14(() => __async(void 0, null, function* () {
16094
16117
  const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
16095
16118
  yield update({ isBRBOn: newValue });
16096
16119
  if (newValue) {
@@ -16256,7 +16279,7 @@ import {
16256
16279
 
16257
16280
  // src/Prebuilt/components/Header/StreamActions.tsx
16258
16281
  init_define_process_env();
16259
- import React54, { useCallback as useCallback16, useEffect as useEffect16, useRef as useRef13, useState as useState25 } from "react";
16282
+ import React54, { useCallback as useCallback17, useEffect as useEffect16, useRef as useRef13, useState as useState25 } from "react";
16260
16283
  import { useMedia as useMedia7 } from "react-use";
16261
16284
 
16262
16285
  // ../hms-video-store/dist/index.js
@@ -18478,7 +18501,7 @@ var Yi = (a2, e) => {
18478
18501
  };
18479
18502
  var ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18480
18503
  var dr = ba((Xc, $a) => {
18481
- $a.exports = { version: "0.12.1-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18504
+ $a.exports = { version: "0.12.1-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"] };
18482
18505
  });
18483
18506
  var Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
18484
18507
  var Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
@@ -19570,7 +19593,7 @@ import {
19570
19593
 
19571
19594
  // src/Prebuilt/components/hooks/usePlaylistMusic.js
19572
19595
  init_define_process_env();
19573
- import { useCallback as useCallback14 } from "react";
19596
+ import { useCallback as useCallback15 } from "react";
19574
19597
  import {
19575
19598
  selectAudioPlaylist,
19576
19599
  selectAudioPlaylistTrackByPeerID,
@@ -19583,16 +19606,16 @@ var usePlaylistMusic = () => {
19583
19606
  const track = useHMSStore22(selectAudioPlaylistTrackByPeerID(peer == null ? void 0 : peer.id));
19584
19607
  const selection = useHMSStore22(selectAudioPlaylist.selectedItem);
19585
19608
  const hmsActions = useHMSActions16();
19586
- const play = useCallback14(
19609
+ const play = useCallback15(
19587
19610
  (selectedId) => __async(void 0, null, function* () {
19588
19611
  yield hmsActions.audioPlaylist.play(selectedId);
19589
19612
  }),
19590
19613
  [hmsActions]
19591
19614
  );
19592
- const pause = useCallback14(() => {
19615
+ const pause = useCallback15(() => {
19593
19616
  hmsActions.audioPlaylist.pause();
19594
19617
  }, [hmsActions]);
19595
- const setVolume = useCallback14(
19618
+ const setVolume = useCallback15(
19596
19619
  (value) => {
19597
19620
  hmsActions.setVolume(value, track == null ? void 0 : track.id);
19598
19621
  },
@@ -19603,7 +19626,7 @@ var usePlaylistMusic = () => {
19603
19626
 
19604
19627
  // src/Prebuilt/components/hooks/useScreenshareAudio.js
19605
19628
  init_define_process_env();
19606
- import { useCallback as useCallback15 } from "react";
19629
+ import { useCallback as useCallback16 } from "react";
19607
19630
  import {
19608
19631
  selectPeerSharingAudio,
19609
19632
  selectScreenShareAudioByPeerID,
@@ -19614,7 +19637,7 @@ var useScreenshareAudio = () => {
19614
19637
  const hmsActions = useHMSActions17();
19615
19638
  const peer = useHMSStore23(selectPeerSharingAudio);
19616
19639
  const track = useHMSStore23(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
19617
- const handleMute = useCallback15(() => {
19640
+ const handleMute = useCallback16(() => {
19618
19641
  if (!peer.isLocal) {
19619
19642
  hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
19620
19643
  } else {
@@ -19733,7 +19756,7 @@ var LiveStatus = () => {
19733
19756
  const intervalRef = useRef13(null);
19734
19757
  const { screenType } = useRoomLayoutConferencingScreen();
19735
19758
  const [liveTime, setLiveTime] = useState25(0);
19736
- const startTimer = useCallback16(() => {
19759
+ const startTimer = useCallback17(() => {
19737
19760
  intervalRef.current = setInterval(() => {
19738
19761
  var _a9;
19739
19762
  const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
@@ -20142,7 +20165,7 @@ var ChangeNameModal = ({
20142
20165
 
20143
20166
  // src/Prebuilt/components/AppData/useSheet.ts
20144
20167
  init_define_process_env();
20145
- import { useCallback as useCallback17 } from "react";
20168
+ import { useCallback as useCallback18 } from "react";
20146
20169
  import { selectAppData as selectAppData4, useHMSActions as useHMSActions20, useHMSStore as useHMSStore27, useHMSVanillaStore as useHMSVanillaStore7 } from "@100mslive/react-sdk";
20147
20170
  var useIsSheetTypeOpen = (sheetType) => {
20148
20171
  if (!sheetType) {
@@ -20153,7 +20176,7 @@ var useIsSheetTypeOpen = (sheetType) => {
20153
20176
  var useSheetToggle = (sheetType) => {
20154
20177
  const hmsActions = useHMSActions20();
20155
20178
  const vanillaStore = useHMSVanillaStore7();
20156
- const toggleSheet = useCallback17(() => {
20179
+ const toggleSheet = useCallback18(() => {
20157
20180
  const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
20158
20181
  hmsActions.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
20159
20182
  }, [vanillaStore, hmsActions, sheetType]);
@@ -21003,7 +21026,7 @@ var ChatToggle = () => {
21003
21026
 
21004
21027
  // src/Prebuilt/components/Footer/ParticipantList.tsx
21005
21028
  init_define_process_env();
21006
- import React74, { Fragment as Fragment9, useCallback as useCallback18, useState as useState32 } from "react";
21029
+ import React74, { Fragment as Fragment9, useCallback as useCallback19, useState as useState32 } from "react";
21007
21030
  import { useDebounce, useMedia as useMedia10 } from "react-use";
21008
21031
  import {
21009
21032
  selectHandRaisedPeers,
@@ -21454,7 +21477,7 @@ var ParticipantList = ({
21454
21477
  }
21455
21478
  });
21456
21479
  }
21457
- const onSearch = useCallback18((value) => {
21480
+ const onSearch = useCallback19((value) => {
21458
21481
  setFilter((filterValue) => {
21459
21482
  if (!filterValue) {
21460
21483
  filterValue = {};
@@ -21877,7 +21900,7 @@ var Footer2 = ({
21877
21900
 
21878
21901
  // src/Prebuilt/components/Notifications/HLSFailureModal.tsx
21879
21902
  init_define_process_env();
21880
- import React78, { useCallback as useCallback19, useState as useState33 } from "react";
21903
+ import React78, { useCallback as useCallback20, useState as useState33 } from "react";
21881
21904
  import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions25, useHMSStore as useHMSStore38, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
21882
21905
  function HLSFailureModal() {
21883
21906
  const hlsError = useHMSStore38(selectHLSState5).error || false;
@@ -21885,7 +21908,7 @@ function HLSFailureModal() {
21885
21908
  const hmsActions = useHMSActions25();
21886
21909
  const { isRTMPRunning } = useRecordingStreaming8();
21887
21910
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
21888
- const startHLS = useCallback19(() => __async(this, null, function* () {
21911
+ const startHLS = useCallback20(() => __async(this, null, function* () {
21889
21912
  try {
21890
21913
  if (isHLSStarted || isRTMPRunning) {
21891
21914
  return;
@@ -21938,7 +21961,7 @@ import {
21938
21961
 
21939
21962
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
21940
21963
  init_define_process_env();
21941
- import React131, { Fragment as Fragment12, useCallback as useCallback31, useEffect as useEffect34, useMemo as useMemo11, useState as useState55 } from "react";
21964
+ import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo11, useState as useState55 } from "react";
21942
21965
  import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
21943
21966
  import {
21944
21967
  HMSRoomState as HMSRoomState5,
@@ -22258,7 +22281,7 @@ import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
22258
22281
 
22259
22282
  // src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
22260
22283
  init_define_process_env();
22261
- import React89, { useCallback as useCallback20, useRef as useRef16, useState as useState35 } from "react";
22284
+ import React89, { useCallback as useCallback21, useRef as useRef16, useState as useState35 } from "react";
22262
22285
  import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
22263
22286
 
22264
22287
  // src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
@@ -22568,13 +22591,13 @@ var QuestionForm = ({
22568
22591
  weight,
22569
22592
  isQuiz
22570
22593
  });
22571
- const handleOptionTextChange = useCallback20(
22594
+ const handleOptionTextChange = useCallback21(
22572
22595
  (index2, text2) => {
22573
22596
  setOptions((options2) => [...options2.slice(0, index2), __spreadProps(__spreadValues({}, options2[index2]), { text: text2 }), ...options2.slice(index2 + 1)]);
22574
22597
  },
22575
22598
  [setOptions]
22576
22599
  );
22577
- const removeOption = useCallback20(
22600
+ const removeOption = useCallback21(
22578
22601
  (index2) => setOptions((options2) => {
22579
22602
  const newOptions = [...options2];
22580
22603
  newOptions.splice(index2, 1);
@@ -22582,7 +22605,7 @@ var QuestionForm = ({
22582
22605
  }),
22583
22606
  [setOptions]
22584
22607
  );
22585
- const selectSingleChoiceAnswer = useCallback20(
22608
+ const selectSingleChoiceAnswer = useCallback21(
22586
22609
  (answerIndex) => {
22587
22610
  if (!isQuiz) {
22588
22611
  return;
@@ -22595,7 +22618,7 @@ var QuestionForm = ({
22595
22618
  },
22596
22619
  [setOptions, isQuiz]
22597
22620
  );
22598
- const selectMultipleChoiceAnswer = useCallback20(
22621
+ const selectMultipleChoiceAnswer = useCallback21(
22599
22622
  (checked, index2) => {
22600
22623
  if (!isQuiz) {
22601
22624
  return;
@@ -23131,7 +23154,7 @@ import React97 from "react";
23131
23154
 
23132
23155
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
23133
23156
  init_define_process_env();
23134
- import React96, { useCallback as useCallback21, useMemo as useMemo7, useRef as useRef17, useState as useState39 } from "react";
23157
+ import React96, { useCallback as useCallback22, useMemo as useMemo7, useRef as useRef17, useState as useState39 } from "react";
23135
23158
  import { match as match6 } from "ts-pattern";
23136
23159
  import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
23137
23160
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
@@ -23179,7 +23202,7 @@ var QuestionCard2 = ({
23179
23202
  return multipleOptionAnswer.size > 0;
23180
23203
  }
23181
23204
  }, [singleOptionAnswer, multipleOptionAnswer, type]);
23182
- const handleVote = useCallback21(() => __async(void 0, null, function* () {
23205
+ const handleVote = useCallback22(() => __async(void 0, null, function* () {
23183
23206
  if (!isValidVote) {
23184
23207
  return;
23185
23208
  }
@@ -23585,7 +23608,7 @@ import { CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
23585
23608
 
23586
23609
  // src/Prebuilt/components/Chat/Chat.tsx
23587
23610
  init_define_process_env();
23588
- import React116, { useCallback as useCallback29, useRef as useRef21 } from "react";
23611
+ import React116, { useCallback as useCallback30, useRef as useRef21 } from "react";
23589
23612
  import { useMedia as useMedia18 } from "react-use";
23590
23613
  import { match as match7 } from "ts-pattern";
23591
23614
  import { selectHMSMessagesCount, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
@@ -23593,7 +23616,7 @@ import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
23593
23616
 
23594
23617
  // src/Prebuilt/components/Chat/ChatBody.tsx
23595
23618
  init_define_process_env();
23596
- import React108, { Fragment as Fragment10, useCallback as useCallback25, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState45 } from "react";
23619
+ import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState45 } from "react";
23597
23620
  import { useMedia as useMedia13 } from "react-use";
23598
23621
  import AutoSizer from "react-virtualized-auto-sizer";
23599
23622
  import { VariableSizeList } from "react-window";
@@ -23613,7 +23636,7 @@ import { SolidPinIcon } from "@100mslive/react-icons";
23613
23636
 
23614
23637
  // src/Prebuilt/components/Chat/ChatActions.tsx
23615
23638
  init_define_process_env();
23616
- import React106, { useCallback as useCallback24, useState as useState43 } from "react";
23639
+ import React106, { useCallback as useCallback25, useState as useState43 } from "react";
23617
23640
  import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions15, useHMSActions as useHMSActions33, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23618
23641
  import {
23619
23642
  CopyIcon as CopyIcon2,
@@ -23641,12 +23664,12 @@ var MwebChatOption = ({
23641
23664
 
23642
23665
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
23643
23666
  init_define_process_env();
23644
- import { useCallback as useCallback22 } from "react";
23667
+ import { useCallback as useCallback23 } from "react";
23645
23668
  import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23646
23669
  var useChatBlacklist = (sessionStoreKey) => {
23647
23670
  const hmsActions = useHMSActions31();
23648
23671
  const blacklistedIDs = useHMSStore49(selectSessionStore2(sessionStoreKey));
23649
- const blacklistItem = useCallback22(
23672
+ const blacklistItem = useCallback23(
23650
23673
  (blacklistID) => __async(void 0, null, function* () {
23651
23674
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
23652
23675
  }),
@@ -23662,7 +23685,7 @@ var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
23662
23685
 
23663
23686
  // src/Prebuilt/components/hooks/usePinnedMessages.ts
23664
23687
  init_define_process_env();
23665
- import { useCallback as useCallback23 } from "react";
23688
+ import { useCallback as useCallback24 } from "react";
23666
23689
  import {
23667
23690
  selectPeerNameByID as selectPeerNameByID2,
23668
23691
  selectSessionStore as selectSessionStore3,
@@ -23672,7 +23695,7 @@ import {
23672
23695
  var usePinnedMessages = () => {
23673
23696
  const hmsActions = useHMSActions32();
23674
23697
  const vanillaStore = useHMSVanillaStore8();
23675
- const setPinnedMessages = useCallback23(
23698
+ const setPinnedMessages = useCallback24(
23676
23699
  (message, pinnedBy) => __async(void 0, null, function* () {
23677
23700
  const peerName = vanillaStore.getState(selectPeerNameByID2(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
23678
23701
  const newPinnedMessage = { text: "", id: message.id, pinnedBy };
@@ -23688,7 +23711,7 @@ var usePinnedMessages = () => {
23688
23711
  }),
23689
23712
  [hmsActions, vanillaStore]
23690
23713
  );
23691
- const removePinnedMessage = useCallback23(
23714
+ const removePinnedMessage = useCallback24(
23692
23715
  (indexToRemove) => __async(void 0, null, function* () {
23693
23716
  const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
23694
23717
  if (pinnedMessages[indexToRemove]) {
@@ -23700,7 +23723,7 @@ var usePinnedMessages = () => {
23700
23723
  }),
23701
23724
  [hmsActions, vanillaStore]
23702
23725
  );
23703
- const unpinBlacklistedMessages = useCallback23(
23726
+ const unpinBlacklistedMessages = useCallback24(
23704
23727
  (blacklistedMessageIDSet) => __async(void 0, null, function* () {
23705
23728
  const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
23706
23729
  const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
@@ -23747,14 +23770,14 @@ var ChatActions = ({
23747
23770
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
23748
23771
  );
23749
23772
  const isSenderBlocked = useIsPeerBlacklisted({ peerCustomerUserId: message.senderUserId });
23750
- const updatePinnedMessages = useCallback24(
23773
+ const updatePinnedMessages = useCallback25(
23751
23774
  (messageID = "") => {
23752
23775
  const blacklistedMessageIDSet = /* @__PURE__ */ new Set([...blacklistedMessageIDs || [], messageID]);
23753
23776
  unpinBlacklistedMessages(blacklistedMessageIDSet);
23754
23777
  },
23755
23778
  [blacklistedMessageIDs, unpinBlacklistedMessages]
23756
23779
  );
23757
- const copyMessageContent = useCallback24(() => {
23780
+ const copyMessageContent = useCallback25(() => {
23758
23781
  try {
23759
23782
  navigator == null ? void 0 : navigator.clipboard.writeText(message.message);
23760
23783
  ToastManager.addToast({
@@ -24263,7 +24286,7 @@ var MessageWrapper = React108.memo(
24263
24286
  );
24264
24287
  var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom }, listRef) => {
24265
24288
  const hmsActions = useHMSActions34();
24266
- const itemKey2 = useCallback25((index, data3) => {
24289
+ const itemKey2 = useCallback26((index, data3) => {
24267
24290
  return data3[index].id;
24268
24291
  }, []);
24269
24292
  useEffect26(() => {
@@ -24364,7 +24387,7 @@ var PinnedBy = ({
24364
24387
 
24365
24388
  // src/Prebuilt/components/Chat/ChatFooter.tsx
24366
24389
  init_define_process_env();
24367
- import React111, { useCallback as useCallback27, useEffect as useEffect28, useRef as useRef20, useState as useState48 } from "react";
24390
+ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRef as useRef20, useState as useState48 } from "react";
24368
24391
  import { useMedia as useMedia16 } from "react-use";
24369
24392
  import data2 from "@emoji-mart/data";
24370
24393
  import Picker from "@emoji-mart/react";
@@ -24667,7 +24690,7 @@ var ChatSelectorContainer = () => {
24667
24690
 
24668
24691
  // src/Prebuilt/components/AppData/useChatState.js
24669
24692
  init_define_process_env();
24670
- import { useCallback as useCallback26 } from "react";
24693
+ import { useCallback as useCallback27 } from "react";
24671
24694
  import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
24672
24695
  var useChatDraftMessage = () => {
24673
24696
  const hmsActions = useHMSActions35();
@@ -24675,7 +24698,7 @@ var useChatDraftMessage = () => {
24675
24698
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
24676
24699
  chatDraftMessage = "";
24677
24700
  }
24678
- const setDraftMessage = useCallback26(
24701
+ const setDraftMessage = useCallback27(
24679
24702
  (message) => {
24680
24703
  hmsActions.setAppData(APP_DATA.chatDraft, message, true);
24681
24704
  },
@@ -24792,7 +24815,7 @@ var ChatFooter = ({ onSend, children }) => {
24792
24815
  }
24793
24816
  }
24794
24817
  }, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
24795
- const sendMessage = useCallback27(() => __async(void 0, null, function* () {
24818
+ const sendMessage = useCallback28(() => __async(void 0, null, function* () {
24796
24819
  var _a9;
24797
24820
  const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
24798
24821
  if (!message || !message.trim().length) {
@@ -24952,7 +24975,7 @@ var ChatFooter = ({ onSend, children }) => {
24952
24975
 
24953
24976
  // src/Prebuilt/components/Chat/ChatStates.tsx
24954
24977
  init_define_process_env();
24955
- import React112, { useCallback as useCallback28 } from "react";
24978
+ import React112, { useCallback as useCallback29 } from "react";
24956
24979
  import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
24957
24980
  var ChatPaused = () => {
24958
24981
  var _a8, _b7;
@@ -24961,7 +24984,7 @@ var ChatPaused = () => {
24961
24984
  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);
24962
24985
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore56(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
24963
24986
  const localPeer = useHMSStore56(selectLocalPeer4);
24964
- const unPauseChat = useCallback28(
24987
+ const unPauseChat = useCallback29(
24965
24988
  () => __async(void 0, null, function* () {
24966
24989
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
24967
24990
  enabled: true,
@@ -25191,7 +25214,7 @@ var Chat = () => {
25191
25214
  const isMobile = useMedia18(config.media.md);
25192
25215
  const isMobileHLSStream = useMobileHLSStream();
25193
25216
  const isLandscapeStream = useLandscapeHLSStream();
25194
- const scrollToBottom = useCallback29(
25217
+ const scrollToBottom = useCallback30(
25195
25218
  (unreadCount = 0) => {
25196
25219
  var _a9;
25197
25220
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
@@ -25594,7 +25617,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25594
25617
 
25595
25618
  // src/Prebuilt/components/VideoTile.tsx
25596
25619
  init_define_process_env();
25597
- import React123, { useCallback as useCallback30, useMemo as useMemo10, useState as useState53 } from "react";
25620
+ import React123, { useCallback as useCallback31, useMemo as useMemo10, useState as useState53 } from "react";
25598
25621
  import { useMeasure as useMeasure3 } from "react-use";
25599
25622
  import {
25600
25623
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
@@ -26080,7 +26103,7 @@ var Tile = ({
26080
26103
  track,
26081
26104
  isLocal
26082
26105
  });
26083
- const onHoverHandler = useCallback30((event) => {
26106
+ const onHoverHandler = useCallback31((event) => {
26084
26107
  setIsMouseHovered(event.type === "mouseenter");
26085
26108
  }, []);
26086
26109
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
@@ -26827,7 +26850,7 @@ var PreviewJoin = ({
26827
26850
  asRole
26828
26851
  });
26829
26852
  const roomState = useHMSStore68(selectRoomState5);
26830
- const savePreferenceAndJoin = useCallback31(() => {
26853
+ const savePreferenceAndJoin = useCallback32(() => {
26831
26854
  setPreviewPreference({
26832
26855
  name
26833
26856
  });
@@ -27490,7 +27513,9 @@ var SecondarySection = ({
27490
27513
  const gridStyles = hasSidebar ? {
27491
27514
  gridTemplateColumns: "1fr",
27492
27515
  gridTemplateRows: `repeat(${tiles.length}, minmax(0, 1fr))`,
27493
- maxHeight: "100%"
27516
+ maxHeight: "100%",
27517
+ width: 240,
27518
+ height: "100%"
27494
27519
  } : {
27495
27520
  gridTemplateRows: React139.Children.count(children) > 0 ? "136px auto" : "154px",
27496
27521
  gridTemplateColumns: `repeat(${tiles.length}, minmax(0, 1fr))`
@@ -28427,7 +28452,7 @@ var useCloseScreenshareWhiteboard = () => {
28427
28452
  };
28428
28453
 
28429
28454
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28430
- var HLSView = React151.lazy(() => import("./HLSView-VXHATNNQ.js"));
28455
+ var HLSView = React151.lazy(() => import("./HLSView-LWVF2OEF.js"));
28431
28456
  var VideoStreamingSection = ({
28432
28457
  screenType,
28433
28458
  elements,
@@ -29164,10 +29189,10 @@ import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, use
29164
29189
 
29165
29190
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
29166
29191
  init_define_process_env();
29167
- import { useCallback as useCallback32 } from "react";
29192
+ import { useCallback as useCallback33 } from "react";
29168
29193
  var useRedirectToLeave = () => {
29169
29194
  const { onLeave } = useHMSPrebuiltContext();
29170
- const redirect = useCallback32(
29195
+ const redirect = useCallback33(
29171
29196
  (timeout = 0) => {
29172
29197
  setTimeout(() => {
29173
29198
  PictureInPicture.stop().catch(() => console.error("stopping pip"));
@@ -29322,7 +29347,7 @@ init_define_process_env();
29322
29347
 
29323
29348
  // src/Prebuilt/components/Notifications/Notifications.tsx
29324
29349
  init_define_process_env();
29325
- import React169, { useCallback as useCallback34, useEffect as useEffect65 } from "react";
29350
+ import React169, { useCallback as useCallback35, useEffect as useEffect65 } from "react";
29326
29351
  import {
29327
29352
  HMSNotificationTypes as HMSNotificationTypes10,
29328
29353
  HMSRoomState as HMSRoomState10,
@@ -29417,7 +29442,7 @@ init_define_process_env();
29417
29442
 
29418
29443
  // src/Prebuilt/components/Toast/ToastConfig.jsx
29419
29444
  init_define_process_env();
29420
- import React163, { useCallback as useCallback33 } from "react";
29445
+ import React163, { useCallback as useCallback34 } from "react";
29421
29446
  import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions48, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
29422
29447
  import {
29423
29448
  ChatUnreadIcon as ChatUnreadIcon2,
@@ -29448,7 +29473,7 @@ var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }
29448
29473
  off_stage_roles = [],
29449
29474
  skip_preview_for_role_change = false
29450
29475
  } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
29451
- const onClickHandler = useCallback33(() => __async(void 0, null, function* () {
29476
+ const onClickHandler = useCallback34(() => __async(void 0, null, function* () {
29452
29477
  if (isSingleHandRaise) {
29453
29478
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
29454
29479
  if (skip_preview_for_role_change) {
@@ -30034,7 +30059,7 @@ function Notifications() {
30034
30059
  const { showNotification } = useAwayNotifications2();
30035
30060
  const amIScreenSharing = useHMSStore88(selectIsLocalScreenShared2);
30036
30061
  const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
30037
- const handleRoleChangeDenied = useCallback34((request) => {
30062
+ const handleRoleChangeDenied = useCallback35((request) => {
30038
30063
  ToastManager.addToast({
30039
30064
  title: `${request.peerName} denied your request to join the ${request.role.name} role`,
30040
30065
  variant: "error"
@@ -30269,7 +30294,7 @@ var Sheet2 = () => {
30269
30294
 
30270
30295
  // src/Prebuilt/plugins/FlyingEmoji.jsx
30271
30296
  init_define_process_env();
30272
- import React175, { useCallback as useCallback35, useEffect as useEffect67, useMemo as useMemo19, useState as useState72 } from "react";
30297
+ import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo19, useState as useState72 } from "react";
30273
30298
  import { useMedia as useMedia38 } from "react-use";
30274
30299
  import {
30275
30300
  selectLocalPeerID as selectLocalPeerID17,
@@ -30307,7 +30332,7 @@ function FlyingEmoji() {
30307
30332
  const [emojis, setEmojis] = useState72([]);
30308
30333
  const isMobile = useMedia38(config.media.md);
30309
30334
  const startingPoints = useMemo19(() => getStartingPoints(isMobile), [isMobile]);
30310
- const showFlyingEmoji = useCallback35(
30335
+ const showFlyingEmoji = useCallback36(
30311
30336
  ({ emojiId, senderId }) => {
30312
30337
  if (!emojiId || !senderId || document.hidden) {
30313
30338
  return;
@@ -30400,11 +30425,11 @@ function FlyingEmoji() {
30400
30425
 
30401
30426
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
30402
30427
  init_define_process_env();
30403
- import React176, { useCallback as useCallback36 } from "react";
30428
+ import React176, { useCallback as useCallback37 } from "react";
30404
30429
  import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions51 } from "@100mslive/react-sdk";
30405
30430
  function RemoteStopScreenshare() {
30406
30431
  const actions = useHMSActions51();
30407
- const onRemoteStopScreenshare = useCallback36(() => __async(this, null, function* () {
30432
+ const onRemoteStopScreenshare = useCallback37(() => __async(this, null, function* () {
30408
30433
  yield actions.setScreenShareEnabled(false);
30409
30434
  }), [actions]);
30410
30435
  useCustomEvent6({
@@ -30416,7 +30441,7 @@ function RemoteStopScreenshare() {
30416
30441
 
30417
30442
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
30418
30443
  init_define_process_env();
30419
- import { useCallback as useCallback37, useEffect as useEffect68, useRef as useRef26 } from "react";
30444
+ import { useCallback as useCallback38, useEffect as useEffect68, useRef as useRef26 } from "react";
30420
30445
  import {
30421
30446
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
30422
30447
  selectPermissions as selectPermissions18,
@@ -30432,7 +30457,7 @@ var useAutoStartStreaming = () => {
30432
30457
  const isConnected = useHMSStore92(selectIsConnectedToRoom12);
30433
30458
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
30434
30459
  const streamStartedRef = useRef26(false);
30435
- const startHLS = useCallback37(() => __async(void 0, null, function* () {
30460
+ const startHLS = useCallback38(() => __async(void 0, null, function* () {
30436
30461
  try {
30437
30462
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
30438
30463
  return;
@@ -30776,6 +30801,7 @@ export {
30776
30801
  Sheet,
30777
30802
  ToastManager,
30778
30803
  useIsLandscape,
30804
+ useKeyboardHandler,
30779
30805
  LeaveRoom,
30780
30806
  DialogContent,
30781
30807
  DialogRow,
@@ -30798,4 +30824,4 @@ lodash/lodash.js:
30798
30824
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
30799
30825
  *)
30800
30826
  */
30801
- //# sourceMappingURL=chunk-RRXRF2KB.js.map
30827
+ //# sourceMappingURL=chunk-LOS7RDHO.js.map