@100mslive/roomkit-react 0.3.1-alpha.3 → 0.3.1-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-ESGBMQBU.js → HLSView-VSVZYOSD.js} +3 -13
- package/dist/HLSView-VSVZYOSD.js.map +7 -0
- package/dist/Prebuilt/common/hooks.d.ts +0 -2
- package/dist/Prebuilt/components/hooks/useUnreadPollQuizPresent.d.ts +0 -1
- package/dist/{chunk-LIVVHXF5.js → chunk-2QNPBD6A.js} +84 -111
- package/dist/chunk-2QNPBD6A.js.map +7 -0
- package/dist/index.cjs.js +1431 -2062
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +34462 -65
- package/dist/index.js.map +4 -4
- package/dist/meta.cjs.json +22 -32
- package/dist/meta.esbuild.json +32 -43
- package/package.json +6 -6
- package/src/Prebuilt/common/hooks.ts +1 -27
- package/src/Prebuilt/components/Chat/PinnedMessage.tsx +3 -4
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +1 -1
- package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx +1 -1
- package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +1 -1
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +1 -1
- package/src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx +0 -2
- package/src/Prebuilt/layouts/HLSView.jsx +1 -10
- package/src/Prebuilt/layouts/SidePane.tsx +0 -1
- package/dist/HLSView-ESGBMQBU.js.map +0 -7
- package/dist/chunk-LIVVHXF5.js.map +0 -7
@@ -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_7a5eb219-70a1-4ca8-812e-3ee6b4af6b33", 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.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7a5eb219-70a1-4ca8-812e-3ee6b4af6b33", 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.3", 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: "604", 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: "20240304.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:17195", 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.3", 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: "8175195821", 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: "864a9079203bf4e0687d5a29c8eeaaf351458834", 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: "2e79189d40cd2188f489e9c9b9ed441a77d0280c1c6b24685aa8178554f76ebe", 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--1709741651265-0.8590798786683111:/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--1709741651074-0.11463821999069013:/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--1709741629457-0.8789792761233997:/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--1709741629279-0.17654051465243858:/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_05d7cf1e-0b5a-430b-b7d9-dd49af3e5fb7", INVOCATION_ID: "72a394b1d64f4bf8b66cb537c65b8242", 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: "470", 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 281", 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.3", 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.3", 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: "864a9079203bf4e0687d5a29c8eeaaf351458834", 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_7a5eb219-70a1-4ca8-812e-3ee6b4af6b33", 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_7a5eb219-70a1-4ca8-812e-3ee6b4af6b33", 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_7a5eb219-70a1-4ca8-812e-3ee6b4af6b33" };
|
109
|
+
define_process_env_default = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v18.17.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.10.1-alpha.5", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.87.0", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "069f15db0b7b761abd7463e82cf84515231e99b918e53a4e4a8d0d64ae22dd39", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.kq3RNeovXJ/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1709789570336-0.03975311678094062:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1709789569660-0.41916592493269356:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1709789544963-0.14034360217270314:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build","--no-private"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1709789570336-0.03975311678094062/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.10.1-alpha.5", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.1-alpha.5", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.3.1-alpha.5", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.3.1-alpha.5", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-10419d9aa6.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
|
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 {
|
14082
|
+
import { 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,29 +14153,6 @@ 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
|
-
};
|
14179
14156
|
|
14180
14157
|
// src/Prebuilt/components/EmojiReaction.jsx
|
14181
14158
|
init({ data });
|
@@ -14645,7 +14622,7 @@ import React42 from "react";
|
|
14645
14622
|
|
14646
14623
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
14647
14624
|
init_define_process_env();
|
14648
|
-
import React41, { useCallback as
|
14625
|
+
import React41, { useCallback as useCallback8, useEffect as useEffect13, useState as useState15 } from "react";
|
14649
14626
|
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions9, useHMSStore as useHMSStore14, useHMSVanillaStore as useHMSVanillaStore5 } from "@100mslive/react-sdk";
|
14650
14627
|
import { PipIcon } from "@100mslive/react-icons";
|
14651
14628
|
|
@@ -15107,7 +15084,7 @@ var PIPComponent = ({ content = null }) => {
|
|
15107
15084
|
const [isPipOn, setIsPipOn] = useState15(PictureInPicture.isOn());
|
15108
15085
|
const hmsActions = useHMSActions9();
|
15109
15086
|
const store = useHMSVanillaStore5();
|
15110
|
-
const onPipToggle =
|
15087
|
+
const onPipToggle = useCallback8(() => {
|
15111
15088
|
if (!isPipOn) {
|
15112
15089
|
PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
|
15113
15090
|
MediaSession.setup(hmsActions, store);
|
@@ -15290,7 +15267,7 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
|
|
15290
15267
|
|
15291
15268
|
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
15292
15269
|
init_define_process_env();
|
15293
|
-
import React45, { useCallback as
|
15270
|
+
import React45, { useCallback as useCallback9, useState as useState17 } from "react";
|
15294
15271
|
import { InfoIcon } from "@100mslive/react-icons";
|
15295
15272
|
|
15296
15273
|
// src/Prebuilt/primitives/DialogContent.jsx
|
@@ -15452,7 +15429,7 @@ var DialogInputFile = (_a8) => {
|
|
15452
15429
|
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
15453
15430
|
var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
|
15454
15431
|
const [resolution, setResolution] = useState17(RTMP_RECORD_DEFAULT_RESOLUTION);
|
15455
|
-
const resolutionChangeHandler =
|
15432
|
+
const resolutionChangeHandler = useCallback9(
|
15456
15433
|
(event) => {
|
15457
15434
|
const { name, value } = event.target;
|
15458
15435
|
let width = name === "resWidth" ? Number(value) : resolution.width;
|
@@ -15801,7 +15778,7 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
|
15801
15778
|
|
15802
15779
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
15803
15780
|
init_define_process_env();
|
15804
|
-
import React48, { useCallback as
|
15781
|
+
import React48, { useCallback as useCallback10, useRef as useRef12, useState as useState20 } from "react";
|
15805
15782
|
import { useHMSActions as useHMSActions12 } from "@100mslive/react-sdk";
|
15806
15783
|
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon4 } from "@100mslive/react-icons";
|
15807
15784
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
@@ -15816,7 +15793,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
15816
15793
|
const [roleDialog, setRoleDialog] = useState20(false);
|
15817
15794
|
const [errorMessage, setErrorMessage] = useState20("");
|
15818
15795
|
const [isSubmiting, setIsSubmiting] = useState20(false);
|
15819
|
-
const changeBulkRole =
|
15796
|
+
const changeBulkRole = useCallback10(() => __async(void 0, null, function* () {
|
15820
15797
|
if (selectedBulkRole.length > 0 && selectedRole) {
|
15821
15798
|
try {
|
15822
15799
|
setIsSubmiting(true);
|
@@ -15914,11 +15891,11 @@ import { ExpandIcon } from "@100mslive/react-icons";
|
|
15914
15891
|
|
15915
15892
|
// src/Prebuilt/components/hooks/useFullscreen.ts
|
15916
15893
|
init_define_process_env();
|
15917
|
-
import { useCallback as
|
15894
|
+
import { useCallback as useCallback11, useEffect as useEffect15, useState as useState21 } from "react";
|
15918
15895
|
import screenfull from "screenfull";
|
15919
15896
|
var useFullscreen = () => {
|
15920
15897
|
const [isFullScreenEnabled, setIsFullScreenEnabled] = useState21(screenfull.isFullscreen);
|
15921
|
-
const toggle =
|
15898
|
+
const toggle = useCallback11(() => __async(void 0, null, function* () {
|
15922
15899
|
if (!screenfull.isEnabled) {
|
15923
15900
|
ToastManager.addToast({ title: "Fullscreen feature not supported" });
|
15924
15901
|
return;
|
@@ -15975,7 +15952,7 @@ var FullScreenItem = () => {
|
|
15975
15952
|
|
15976
15953
|
// src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
|
15977
15954
|
init_define_process_env();
|
15978
|
-
import React51, { useCallback as
|
15955
|
+
import React51, { useCallback as useCallback12, useState as useState22 } from "react";
|
15979
15956
|
import {
|
15980
15957
|
selectAvailableRoleNames as selectAvailableRoleNames3,
|
15981
15958
|
useHMSActions as useHMSActions13,
|
@@ -16051,7 +16028,7 @@ var MuteAllModal = ({
|
|
16051
16028
|
const [trackType, setTrackType] = useState22();
|
16052
16029
|
const [selectedRole, setRole] = useState22();
|
16053
16030
|
const [selectedSource, setSource] = useState22();
|
16054
|
-
const muteAll =
|
16031
|
+
const muteAll = useCallback12(() => __async(void 0, null, function* () {
|
16055
16032
|
yield hmsActions.setRemoteTracksEnabled({
|
16056
16033
|
enabled,
|
16057
16034
|
type: trackType,
|
@@ -16081,7 +16058,7 @@ var MuteAllModal = ({
|
|
16081
16058
|
|
16082
16059
|
// src/Prebuilt/components/hooks/useMetadata.jsx
|
16083
16060
|
init_define_process_env();
|
16084
|
-
import { useCallback as
|
16061
|
+
import { useCallback as useCallback13 } from "react";
|
16085
16062
|
import {
|
16086
16063
|
selectHasPeerHandRaised,
|
16087
16064
|
selectLocalPeerID as selectLocalPeerID3,
|
@@ -16105,7 +16082,7 @@ var useMyMetadata = () => {
|
|
16105
16082
|
console.error("failed to update metadata ", updatedFields);
|
16106
16083
|
}
|
16107
16084
|
});
|
16108
|
-
const toggleHandRaise =
|
16085
|
+
const toggleHandRaise = useCallback13(() => __async(void 0, null, function* () {
|
16109
16086
|
if (isHandRaised) {
|
16110
16087
|
yield hmsActions.lowerLocalPeerHand();
|
16111
16088
|
} else {
|
@@ -16113,7 +16090,7 @@ var useMyMetadata = () => {
|
|
16113
16090
|
yield update({ isBRBOn: false });
|
16114
16091
|
}
|
16115
16092
|
}), [isHandRaised]);
|
16116
|
-
const toggleBRB =
|
16093
|
+
const toggleBRB = useCallback13(() => __async(void 0, null, function* () {
|
16117
16094
|
const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
|
16118
16095
|
yield update({ isBRBOn: newValue });
|
16119
16096
|
if (newValue) {
|
@@ -16279,7 +16256,7 @@ import {
|
|
16279
16256
|
|
16280
16257
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
16281
16258
|
init_define_process_env();
|
16282
|
-
import React54, { useCallback as
|
16259
|
+
import React54, { useCallback as useCallback16, useEffect as useEffect16, useRef as useRef13, useState as useState25 } from "react";
|
16283
16260
|
import { useMedia as useMedia7 } from "react-use";
|
16284
16261
|
|
16285
16262
|
// ../hms-video-store/dist/index.js
|
@@ -18501,7 +18478,7 @@ var Yi = (a2, e) => {
|
|
18501
18478
|
};
|
18502
18479
|
var ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18503
18480
|
var dr = ba((Xc, $a) => {
|
18504
|
-
$a.exports = { version: "0.12.1-alpha.
|
18481
|
+
$a.exports = { version: "0.12.1-alpha.5", 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
18482
|
});
|
18506
18483
|
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 || {});
|
18507
18484
|
var Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
|
@@ -19593,7 +19570,7 @@ import {
|
|
19593
19570
|
|
19594
19571
|
// src/Prebuilt/components/hooks/usePlaylistMusic.js
|
19595
19572
|
init_define_process_env();
|
19596
|
-
import { useCallback as
|
19573
|
+
import { useCallback as useCallback14 } from "react";
|
19597
19574
|
import {
|
19598
19575
|
selectAudioPlaylist,
|
19599
19576
|
selectAudioPlaylistTrackByPeerID,
|
@@ -19606,16 +19583,16 @@ var usePlaylistMusic = () => {
|
|
19606
19583
|
const track = useHMSStore22(selectAudioPlaylistTrackByPeerID(peer == null ? void 0 : peer.id));
|
19607
19584
|
const selection = useHMSStore22(selectAudioPlaylist.selectedItem);
|
19608
19585
|
const hmsActions = useHMSActions16();
|
19609
|
-
const play =
|
19586
|
+
const play = useCallback14(
|
19610
19587
|
(selectedId) => __async(void 0, null, function* () {
|
19611
19588
|
yield hmsActions.audioPlaylist.play(selectedId);
|
19612
19589
|
}),
|
19613
19590
|
[hmsActions]
|
19614
19591
|
);
|
19615
|
-
const pause =
|
19592
|
+
const pause = useCallback14(() => {
|
19616
19593
|
hmsActions.audioPlaylist.pause();
|
19617
19594
|
}, [hmsActions]);
|
19618
|
-
const setVolume =
|
19595
|
+
const setVolume = useCallback14(
|
19619
19596
|
(value) => {
|
19620
19597
|
hmsActions.setVolume(value, track == null ? void 0 : track.id);
|
19621
19598
|
},
|
@@ -19626,7 +19603,7 @@ var usePlaylistMusic = () => {
|
|
19626
19603
|
|
19627
19604
|
// src/Prebuilt/components/hooks/useScreenshareAudio.js
|
19628
19605
|
init_define_process_env();
|
19629
|
-
import { useCallback as
|
19606
|
+
import { useCallback as useCallback15 } from "react";
|
19630
19607
|
import {
|
19631
19608
|
selectPeerSharingAudio,
|
19632
19609
|
selectScreenShareAudioByPeerID,
|
@@ -19637,7 +19614,7 @@ var useScreenshareAudio = () => {
|
|
19637
19614
|
const hmsActions = useHMSActions17();
|
19638
19615
|
const peer = useHMSStore23(selectPeerSharingAudio);
|
19639
19616
|
const track = useHMSStore23(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
|
19640
|
-
const handleMute =
|
19617
|
+
const handleMute = useCallback15(() => {
|
19641
19618
|
if (!peer.isLocal) {
|
19642
19619
|
hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
|
19643
19620
|
} else {
|
@@ -19756,7 +19733,7 @@ var LiveStatus = () => {
|
|
19756
19733
|
const intervalRef = useRef13(null);
|
19757
19734
|
const { screenType } = useRoomLayoutConferencingScreen();
|
19758
19735
|
const [liveTime, setLiveTime] = useState25(0);
|
19759
|
-
const startTimer =
|
19736
|
+
const startTimer = useCallback16(() => {
|
19760
19737
|
intervalRef.current = setInterval(() => {
|
19761
19738
|
var _a9;
|
19762
19739
|
const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
|
@@ -20165,7 +20142,7 @@ var ChangeNameModal = ({
|
|
20165
20142
|
|
20166
20143
|
// src/Prebuilt/components/AppData/useSheet.ts
|
20167
20144
|
init_define_process_env();
|
20168
|
-
import { useCallback as
|
20145
|
+
import { useCallback as useCallback17 } from "react";
|
20169
20146
|
import { selectAppData as selectAppData4, useHMSActions as useHMSActions20, useHMSStore as useHMSStore27, useHMSVanillaStore as useHMSVanillaStore7 } from "@100mslive/react-sdk";
|
20170
20147
|
var useIsSheetTypeOpen = (sheetType) => {
|
20171
20148
|
if (!sheetType) {
|
@@ -20176,7 +20153,7 @@ var useIsSheetTypeOpen = (sheetType) => {
|
|
20176
20153
|
var useSheetToggle = (sheetType) => {
|
20177
20154
|
const hmsActions = useHMSActions20();
|
20178
20155
|
const vanillaStore = useHMSVanillaStore7();
|
20179
|
-
const toggleSheet =
|
20156
|
+
const toggleSheet = useCallback17(() => {
|
20180
20157
|
const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
|
20181
20158
|
hmsActions.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
|
20182
20159
|
}, [vanillaStore, hmsActions, sheetType]);
|
@@ -21026,7 +21003,7 @@ var ChatToggle = () => {
|
|
21026
21003
|
|
21027
21004
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
21028
21005
|
init_define_process_env();
|
21029
|
-
import React74, { Fragment as Fragment9, useCallback as
|
21006
|
+
import React74, { Fragment as Fragment9, useCallback as useCallback18, useState as useState32 } from "react";
|
21030
21007
|
import { useDebounce, useMedia as useMedia10 } from "react-use";
|
21031
21008
|
import {
|
21032
21009
|
selectHandRaisedPeers,
|
@@ -21477,7 +21454,7 @@ var ParticipantList = ({
|
|
21477
21454
|
}
|
21478
21455
|
});
|
21479
21456
|
}
|
21480
|
-
const onSearch =
|
21457
|
+
const onSearch = useCallback18((value) => {
|
21481
21458
|
setFilter((filterValue) => {
|
21482
21459
|
if (!filterValue) {
|
21483
21460
|
filterValue = {};
|
@@ -21900,7 +21877,7 @@ var Footer2 = ({
|
|
21900
21877
|
|
21901
21878
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
21902
21879
|
init_define_process_env();
|
21903
|
-
import React78, { useCallback as
|
21880
|
+
import React78, { useCallback as useCallback19, useState as useState33 } from "react";
|
21904
21881
|
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions25, useHMSStore as useHMSStore38, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
21905
21882
|
function HLSFailureModal() {
|
21906
21883
|
const hlsError = useHMSStore38(selectHLSState5).error || false;
|
@@ -21908,7 +21885,7 @@ function HLSFailureModal() {
|
|
21908
21885
|
const hmsActions = useHMSActions25();
|
21909
21886
|
const { isRTMPRunning } = useRecordingStreaming8();
|
21910
21887
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
21911
|
-
const startHLS =
|
21888
|
+
const startHLS = useCallback19(() => __async(this, null, function* () {
|
21912
21889
|
try {
|
21913
21890
|
if (isHLSStarted || isRTMPRunning) {
|
21914
21891
|
return;
|
@@ -21961,7 +21938,7 @@ import {
|
|
21961
21938
|
|
21962
21939
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
21963
21940
|
init_define_process_env();
|
21964
|
-
import React131, { Fragment as Fragment12, useCallback as
|
21941
|
+
import React131, { Fragment as Fragment12, useCallback as useCallback31, useEffect as useEffect34, useMemo as useMemo11, useState as useState55 } from "react";
|
21965
21942
|
import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
|
21966
21943
|
import {
|
21967
21944
|
HMSRoomState as HMSRoomState5,
|
@@ -22197,7 +22174,7 @@ var AddMenu = () => {
|
|
22197
22174
|
type: "text",
|
22198
22175
|
placeholder: "Enter a name to continue",
|
22199
22176
|
value: title,
|
22200
|
-
onChange: (event) => setTitle(event.target.value
|
22177
|
+
onChange: (event) => setTitle(event.target.value),
|
22201
22178
|
css: {
|
22202
22179
|
backgroundColor: "$surface_bright",
|
22203
22180
|
border: "1px solid $border_default"
|
@@ -22281,7 +22258,7 @@ import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
|
22281
22258
|
|
22282
22259
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
22283
22260
|
init_define_process_env();
|
22284
|
-
import React89, { useCallback as
|
22261
|
+
import React89, { useCallback as useCallback20, useRef as useRef16, useState as useState35 } from "react";
|
22285
22262
|
import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
|
22286
22263
|
|
22287
22264
|
// src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
|
@@ -22370,7 +22347,7 @@ var OptionInputWithDelete = ({
|
|
22370
22347
|
},
|
22371
22348
|
value: (option == null ? void 0 : option.text) || "",
|
22372
22349
|
key: index,
|
22373
|
-
onChange: (event) => handleOptionTextChange(index, event.target.value
|
22350
|
+
onChange: (event) => handleOptionTextChange(index, event.target.value)
|
22374
22351
|
}
|
22375
22352
|
), /* @__PURE__ */ React84.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "transparent", border: "none" } }, /* @__PURE__ */ React84.createElement(TrashIcon2, null)));
|
22376
22353
|
};
|
@@ -22591,13 +22568,13 @@ var QuestionForm = ({
|
|
22591
22568
|
weight,
|
22592
22569
|
isQuiz
|
22593
22570
|
});
|
22594
|
-
const handleOptionTextChange =
|
22571
|
+
const handleOptionTextChange = useCallback20(
|
22595
22572
|
(index2, text2) => {
|
22596
22573
|
setOptions((options2) => [...options2.slice(0, index2), __spreadProps(__spreadValues({}, options2[index2]), { text: text2 }), ...options2.slice(index2 + 1)]);
|
22597
22574
|
},
|
22598
22575
|
[setOptions]
|
22599
22576
|
);
|
22600
|
-
const removeOption =
|
22577
|
+
const removeOption = useCallback20(
|
22601
22578
|
(index2) => setOptions((options2) => {
|
22602
22579
|
const newOptions = [...options2];
|
22603
22580
|
newOptions.splice(index2, 1);
|
@@ -22605,7 +22582,7 @@ var QuestionForm = ({
|
|
22605
22582
|
}),
|
22606
22583
|
[setOptions]
|
22607
22584
|
);
|
22608
|
-
const selectSingleChoiceAnswer =
|
22585
|
+
const selectSingleChoiceAnswer = useCallback20(
|
22609
22586
|
(answerIndex) => {
|
22610
22587
|
if (!isQuiz) {
|
22611
22588
|
return;
|
@@ -22618,7 +22595,7 @@ var QuestionForm = ({
|
|
22618
22595
|
},
|
22619
22596
|
[setOptions, isQuiz]
|
22620
22597
|
);
|
22621
|
-
const selectMultipleChoiceAnswer =
|
22598
|
+
const selectMultipleChoiceAnswer = useCallback20(
|
22622
22599
|
(checked, index2) => {
|
22623
22600
|
if (!isQuiz) {
|
22624
22601
|
return;
|
@@ -22669,7 +22646,7 @@ var QuestionForm = ({
|
|
22669
22646
|
maxHeight: "$32"
|
22670
22647
|
},
|
22671
22648
|
value: text,
|
22672
|
-
onChange: (event) => setText(event.target.value
|
22649
|
+
onChange: (event) => setText(event.target.value)
|
22673
22650
|
}
|
22674
22651
|
), /* @__PURE__ */ React89.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium", textAlign: "end", mt: "$4" } }, (text == null ? void 0 : text.length) || 0, "/1024"), /* @__PURE__ */ React89.createElement(Line, null), type === "single-choice" /* SINGLE_CHOICE */ || type === "multiple-choice" /* MULTIPLE_CHOICE */ ? /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(Text, { variant: "body2", css: { mb: "$6", c: "$on_surface_medium" } }, "Options"), isQuiz && /* @__PURE__ */ React89.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium", mb: "$md" } }, type === "single-choice" /* SINGLE_CHOICE */ ? "Use the radio buttons to indicate the correct answer" : "Use the checkboxes to indicate the correct answer(s)"), type === "single-choice" /* SINGLE_CHOICE */ && /* @__PURE__ */ React89.createElement(
|
22675
22652
|
SingleChoiceOptionInputs,
|
@@ -23154,7 +23131,7 @@ import React97 from "react";
|
|
23154
23131
|
|
23155
23132
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
23156
23133
|
init_define_process_env();
|
23157
|
-
import React96, { useCallback as
|
23134
|
+
import React96, { useCallback as useCallback21, useMemo as useMemo7, useRef as useRef17, useState as useState39 } from "react";
|
23158
23135
|
import { match as match6 } from "ts-pattern";
|
23159
23136
|
import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
|
23160
23137
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
|
@@ -23202,7 +23179,7 @@ var QuestionCard2 = ({
|
|
23202
23179
|
return multipleOptionAnswer.size > 0;
|
23203
23180
|
}
|
23204
23181
|
}, [singleOptionAnswer, multipleOptionAnswer, type]);
|
23205
|
-
const handleVote =
|
23182
|
+
const handleVote = useCallback21(() => __async(void 0, null, function* () {
|
23206
23183
|
if (!isValidVote) {
|
23207
23184
|
return;
|
23208
23185
|
}
|
@@ -23608,7 +23585,7 @@ import { CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
|
|
23608
23585
|
|
23609
23586
|
// src/Prebuilt/components/Chat/Chat.tsx
|
23610
23587
|
init_define_process_env();
|
23611
|
-
import React116, { useCallback as
|
23588
|
+
import React116, { useCallback as useCallback29, useRef as useRef21 } from "react";
|
23612
23589
|
import { useMedia as useMedia18 } from "react-use";
|
23613
23590
|
import { match as match7 } from "ts-pattern";
|
23614
23591
|
import { selectHMSMessagesCount, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
@@ -23616,7 +23593,7 @@ import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
|
23616
23593
|
|
23617
23594
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
23618
23595
|
init_define_process_env();
|
23619
|
-
import React108, { Fragment as Fragment10, useCallback as
|
23596
|
+
import React108, { Fragment as Fragment10, useCallback as useCallback25, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState45 } from "react";
|
23620
23597
|
import { useMedia as useMedia13 } from "react-use";
|
23621
23598
|
import AutoSizer from "react-virtualized-auto-sizer";
|
23622
23599
|
import { VariableSizeList } from "react-window";
|
@@ -23636,7 +23613,7 @@ import { SolidPinIcon } from "@100mslive/react-icons";
|
|
23636
23613
|
|
23637
23614
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
23638
23615
|
init_define_process_env();
|
23639
|
-
import React106, { useCallback as
|
23616
|
+
import React106, { useCallback as useCallback24, useState as useState43 } from "react";
|
23640
23617
|
import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions15, useHMSActions as useHMSActions33, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
|
23641
23618
|
import {
|
23642
23619
|
CopyIcon as CopyIcon2,
|
@@ -23664,12 +23641,12 @@ var MwebChatOption = ({
|
|
23664
23641
|
|
23665
23642
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
23666
23643
|
init_define_process_env();
|
23667
|
-
import { useCallback as
|
23644
|
+
import { useCallback as useCallback22 } from "react";
|
23668
23645
|
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
|
23669
23646
|
var useChatBlacklist = (sessionStoreKey) => {
|
23670
23647
|
const hmsActions = useHMSActions31();
|
23671
23648
|
const blacklistedIDs = useHMSStore49(selectSessionStore2(sessionStoreKey));
|
23672
|
-
const blacklistItem =
|
23649
|
+
const blacklistItem = useCallback22(
|
23673
23650
|
(blacklistID) => __async(void 0, null, function* () {
|
23674
23651
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
23675
23652
|
}),
|
@@ -23685,7 +23662,7 @@ var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
|
23685
23662
|
|
23686
23663
|
// src/Prebuilt/components/hooks/usePinnedMessages.ts
|
23687
23664
|
init_define_process_env();
|
23688
|
-
import { useCallback as
|
23665
|
+
import { useCallback as useCallback23 } from "react";
|
23689
23666
|
import {
|
23690
23667
|
selectPeerNameByID as selectPeerNameByID2,
|
23691
23668
|
selectSessionStore as selectSessionStore3,
|
@@ -23695,7 +23672,7 @@ import {
|
|
23695
23672
|
var usePinnedMessages = () => {
|
23696
23673
|
const hmsActions = useHMSActions32();
|
23697
23674
|
const vanillaStore = useHMSVanillaStore8();
|
23698
|
-
const setPinnedMessages =
|
23675
|
+
const setPinnedMessages = useCallback23(
|
23699
23676
|
(message, pinnedBy) => __async(void 0, null, function* () {
|
23700
23677
|
const peerName = vanillaStore.getState(selectPeerNameByID2(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
|
23701
23678
|
const newPinnedMessage = { text: "", id: message.id, pinnedBy };
|
@@ -23711,7 +23688,7 @@ var usePinnedMessages = () => {
|
|
23711
23688
|
}),
|
23712
23689
|
[hmsActions, vanillaStore]
|
23713
23690
|
);
|
23714
|
-
const removePinnedMessage =
|
23691
|
+
const removePinnedMessage = useCallback23(
|
23715
23692
|
(indexToRemove) => __async(void 0, null, function* () {
|
23716
23693
|
const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
23717
23694
|
if (pinnedMessages[indexToRemove]) {
|
@@ -23723,7 +23700,7 @@ var usePinnedMessages = () => {
|
|
23723
23700
|
}),
|
23724
23701
|
[hmsActions, vanillaStore]
|
23725
23702
|
);
|
23726
|
-
const unpinBlacklistedMessages =
|
23703
|
+
const unpinBlacklistedMessages = useCallback23(
|
23727
23704
|
(blacklistedMessageIDSet) => __async(void 0, null, function* () {
|
23728
23705
|
const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
23729
23706
|
const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
|
@@ -23770,14 +23747,14 @@ var ChatActions = ({
|
|
23770
23747
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
23771
23748
|
);
|
23772
23749
|
const isSenderBlocked = useIsPeerBlacklisted({ peerCustomerUserId: message.senderUserId });
|
23773
|
-
const updatePinnedMessages =
|
23750
|
+
const updatePinnedMessages = useCallback24(
|
23774
23751
|
(messageID = "") => {
|
23775
23752
|
const blacklistedMessageIDSet = /* @__PURE__ */ new Set([...blacklistedMessageIDs || [], messageID]);
|
23776
23753
|
unpinBlacklistedMessages(blacklistedMessageIDSet);
|
23777
23754
|
},
|
23778
23755
|
[blacklistedMessageIDs, unpinBlacklistedMessages]
|
23779
23756
|
);
|
23780
|
-
const copyMessageContent =
|
23757
|
+
const copyMessageContent = useCallback24(() => {
|
23781
23758
|
try {
|
23782
23759
|
navigator == null ? void 0 : navigator.clipboard.writeText(message.message);
|
23783
23760
|
ToastManager.addToast({
|
@@ -24286,7 +24263,7 @@ var MessageWrapper = React108.memo(
|
|
24286
24263
|
);
|
24287
24264
|
var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
24288
24265
|
const hmsActions = useHMSActions34();
|
24289
|
-
const itemKey2 =
|
24266
|
+
const itemKey2 = useCallback25((index, data3) => {
|
24290
24267
|
return data3[index].id;
|
24291
24268
|
}, []);
|
24292
24269
|
useEffect26(() => {
|
@@ -24387,7 +24364,7 @@ var PinnedBy = ({
|
|
24387
24364
|
|
24388
24365
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
24389
24366
|
init_define_process_env();
|
24390
|
-
import React111, { useCallback as
|
24367
|
+
import React111, { useCallback as useCallback27, useEffect as useEffect28, useRef as useRef20, useState as useState48 } from "react";
|
24391
24368
|
import { useMedia as useMedia16 } from "react-use";
|
24392
24369
|
import data2 from "@emoji-mart/data";
|
24393
24370
|
import Picker from "@emoji-mart/react";
|
@@ -24690,7 +24667,7 @@ var ChatSelectorContainer = () => {
|
|
24690
24667
|
|
24691
24668
|
// src/Prebuilt/components/AppData/useChatState.js
|
24692
24669
|
init_define_process_env();
|
24693
|
-
import { useCallback as
|
24670
|
+
import { useCallback as useCallback26 } from "react";
|
24694
24671
|
import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
24695
24672
|
var useChatDraftMessage = () => {
|
24696
24673
|
const hmsActions = useHMSActions35();
|
@@ -24698,7 +24675,7 @@ var useChatDraftMessage = () => {
|
|
24698
24675
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
24699
24676
|
chatDraftMessage = "";
|
24700
24677
|
}
|
24701
|
-
const setDraftMessage =
|
24678
|
+
const setDraftMessage = useCallback26(
|
24702
24679
|
(message) => {
|
24703
24680
|
hmsActions.setAppData(APP_DATA.chatDraft, message, true);
|
24704
24681
|
},
|
@@ -24815,7 +24792,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24815
24792
|
}
|
24816
24793
|
}
|
24817
24794
|
}, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
|
24818
|
-
const sendMessage =
|
24795
|
+
const sendMessage = useCallback27(() => __async(void 0, null, function* () {
|
24819
24796
|
var _a9;
|
24820
24797
|
const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
|
24821
24798
|
if (!message || !message.trim().length) {
|
@@ -24975,7 +24952,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
24975
24952
|
|
24976
24953
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
24977
24954
|
init_define_process_env();
|
24978
|
-
import React112, { useCallback as
|
24955
|
+
import React112, { useCallback as useCallback28 } from "react";
|
24979
24956
|
import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
|
24980
24957
|
var ChatPaused = () => {
|
24981
24958
|
var _a8, _b7;
|
@@ -24984,7 +24961,7 @@ var ChatPaused = () => {
|
|
24984
24961
|
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);
|
24985
24962
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore56(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
|
24986
24963
|
const localPeer = useHMSStore56(selectLocalPeer4);
|
24987
|
-
const unPauseChat =
|
24964
|
+
const unPauseChat = useCallback28(
|
24988
24965
|
() => __async(void 0, null, function* () {
|
24989
24966
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
24990
24967
|
enabled: true,
|
@@ -25090,7 +25067,7 @@ var StickIndicator = ({ total, index }) => {
|
|
25090
25067
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
25091
25068
|
var PINNED_MESSAGE_LENGTH = 75;
|
25092
25069
|
var PinnedMessage = () => {
|
25093
|
-
var _a8, _b7, _c
|
25070
|
+
var _a8, _b7, _c;
|
25094
25071
|
const pinnedMessages = useHMSStore57(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
|
25095
25072
|
const [pinnedMessageIndex, setPinnedMessageIndex] = useState49(0);
|
25096
25073
|
const { removePinnedMessage } = usePinnedMessages();
|
@@ -25136,14 +25113,13 @@ var PinnedMessage = () => {
|
|
25136
25113
|
{
|
25137
25114
|
css: {
|
25138
25115
|
p: "$4",
|
25139
|
-
color: "$
|
25140
|
-
bg: isMobile
|
25116
|
+
color: "$on_surface_medium",
|
25117
|
+
bg: isMobile ? "rgba(0, 0, 0, 0.64)" : "$surface_default",
|
25141
25118
|
r: "$1",
|
25142
25119
|
gap: "$4",
|
25143
25120
|
mb: "$8",
|
25144
25121
|
mt: "$8",
|
25145
|
-
flexGrow: 1
|
25146
|
-
border: "1px solid $border_bright"
|
25122
|
+
flexGrow: 1
|
25147
25123
|
},
|
25148
25124
|
align: "center",
|
25149
25125
|
justify: "between"
|
@@ -25167,9 +25143,9 @@ var PinnedMessage = () => {
|
|
25167
25143
|
Text,
|
25168
25144
|
__spreadProps(__spreadValues({
|
25169
25145
|
variant: "sm",
|
25170
|
-
css: { color: "$
|
25146
|
+
css: { color: "$on_surface_medium" }
|
25171
25147
|
}, swipeHandlers), {
|
25172
|
-
title: (
|
25148
|
+
title: (_c = pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _c.text
|
25173
25149
|
}),
|
25174
25150
|
/* @__PURE__ */ React115.createElement(
|
25175
25151
|
AnnotisedMessage,
|
@@ -25214,7 +25190,7 @@ var Chat = () => {
|
|
25214
25190
|
const isMobile = useMedia18(config.media.md);
|
25215
25191
|
const isMobileHLSStream = useMobileHLSStream();
|
25216
25192
|
const isLandscapeStream = useLandscapeHLSStream();
|
25217
|
-
const scrollToBottom =
|
25193
|
+
const scrollToBottom = useCallback29(
|
25218
25194
|
(unreadCount = 0) => {
|
25219
25195
|
var _a9;
|
25220
25196
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
@@ -25617,7 +25593,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
25617
25593
|
|
25618
25594
|
// src/Prebuilt/components/VideoTile.tsx
|
25619
25595
|
init_define_process_env();
|
25620
|
-
import React123, { useCallback as
|
25596
|
+
import React123, { useCallback as useCallback30, useMemo as useMemo10, useState as useState53 } from "react";
|
25621
25597
|
import { useMeasure as useMeasure3 } from "react-use";
|
25622
25598
|
import {
|
25623
25599
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
@@ -26103,7 +26079,7 @@ var Tile = ({
|
|
26103
26079
|
track,
|
26104
26080
|
isLocal
|
26105
26081
|
});
|
26106
|
-
const onHoverHandler =
|
26082
|
+
const onHoverHandler = useCallback30((event) => {
|
26107
26083
|
setIsMouseHovered(event.type === "mouseenter");
|
26108
26084
|
}, []);
|
26109
26085
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
|
@@ -26656,7 +26632,6 @@ var SidePane = ({
|
|
26656
26632
|
return null;
|
26657
26633
|
});
|
26658
26634
|
if (!trackId && !SidepaneComponent) {
|
26659
|
-
console.log("sidepane not rendered", { trackId, SidepaneComponent });
|
26660
26635
|
return null;
|
26661
26636
|
}
|
26662
26637
|
return /* @__PURE__ */ React127.createElement(
|
@@ -26850,7 +26825,7 @@ var PreviewJoin = ({
|
|
26850
26825
|
asRole
|
26851
26826
|
});
|
26852
26827
|
const roomState = useHMSStore68(selectRoomState5);
|
26853
|
-
const savePreferenceAndJoin =
|
26828
|
+
const savePreferenceAndJoin = useCallback31(() => {
|
26854
26829
|
setPreviewPreference({
|
26855
26830
|
name
|
26856
26831
|
});
|
@@ -27506,7 +27481,6 @@ var SecondarySection = ({
|
|
27506
27481
|
hasSidebar
|
27507
27482
|
}) => {
|
27508
27483
|
const tileLayoutProps = useVideoTileContext();
|
27509
|
-
console.log("secondary section", { tilesLength: tiles == null ? void 0 : tiles.length });
|
27510
27484
|
if (!(tiles == null ? void 0 : tiles.length)) {
|
27511
27485
|
return null;
|
27512
27486
|
}
|
@@ -27542,6 +27516,7 @@ var SecondarySection = ({
|
|
27542
27516
|
rootCSS: {
|
27543
27517
|
padding: 0,
|
27544
27518
|
maxWidth: 240,
|
27519
|
+
h: "100%",
|
27545
27520
|
aspectRatio: 16 / 9,
|
27546
27521
|
"@md": { aspectRatio: 1 }
|
27547
27522
|
},
|
@@ -27994,7 +27969,6 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
27994
27969
|
setActiveScreenSharePeer("");
|
27995
27970
|
};
|
27996
27971
|
}, [activeSharePeer == null ? void 0 : activeSharePeer.id, isMobile, setActiveScreenSharePeer]);
|
27997
|
-
console.log({ activeSharePeer, secondaryPeers });
|
27998
27972
|
return /* @__PURE__ */ React145.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React145.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React145.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ React145.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React145.createElement(
|
27999
27973
|
SecondaryTiles,
|
28000
27974
|
{
|
@@ -28450,7 +28424,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
28450
28424
|
};
|
28451
28425
|
|
28452
28426
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
28453
|
-
var HLSView = React151.lazy(() => import("./HLSView-
|
28427
|
+
var HLSView = React151.lazy(() => import("./HLSView-VSVZYOSD.js"));
|
28454
28428
|
var VideoStreamingSection = ({
|
28455
28429
|
screenType,
|
28456
28430
|
elements,
|
@@ -29187,10 +29161,10 @@ import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, use
|
|
29187
29161
|
|
29188
29162
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
29189
29163
|
init_define_process_env();
|
29190
|
-
import { useCallback as
|
29164
|
+
import { useCallback as useCallback32 } from "react";
|
29191
29165
|
var useRedirectToLeave = () => {
|
29192
29166
|
const { onLeave } = useHMSPrebuiltContext();
|
29193
|
-
const redirect =
|
29167
|
+
const redirect = useCallback32(
|
29194
29168
|
(timeout = 0) => {
|
29195
29169
|
setTimeout(() => {
|
29196
29170
|
PictureInPicture.stop().catch(() => console.error("stopping pip"));
|
@@ -29345,7 +29319,7 @@ init_define_process_env();
|
|
29345
29319
|
|
29346
29320
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
29347
29321
|
init_define_process_env();
|
29348
|
-
import React169, { useCallback as
|
29322
|
+
import React169, { useCallback as useCallback34, useEffect as useEffect65 } from "react";
|
29349
29323
|
import {
|
29350
29324
|
HMSNotificationTypes as HMSNotificationTypes10,
|
29351
29325
|
HMSRoomState as HMSRoomState10,
|
@@ -29440,7 +29414,7 @@ init_define_process_env();
|
|
29440
29414
|
|
29441
29415
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
29442
29416
|
init_define_process_env();
|
29443
|
-
import React163, { useCallback as
|
29417
|
+
import React163, { useCallback as useCallback33 } from "react";
|
29444
29418
|
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions48, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
|
29445
29419
|
import {
|
29446
29420
|
ChatUnreadIcon as ChatUnreadIcon2,
|
@@ -29471,7 +29445,7 @@ var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
29471
29445
|
off_stage_roles = [],
|
29472
29446
|
skip_preview_for_role_change = false
|
29473
29447
|
} = ((_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) || {};
|
29474
|
-
const onClickHandler =
|
29448
|
+
const onClickHandler = useCallback33(() => __async(void 0, null, function* () {
|
29475
29449
|
if (isSingleHandRaise) {
|
29476
29450
|
hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
29477
29451
|
if (skip_preview_for_role_change) {
|
@@ -30057,7 +30031,7 @@ function Notifications() {
|
|
30057
30031
|
const { showNotification } = useAwayNotifications2();
|
30058
30032
|
const amIScreenSharing = useHMSStore88(selectIsLocalScreenShared2);
|
30059
30033
|
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
30060
|
-
const handleRoleChangeDenied =
|
30034
|
+
const handleRoleChangeDenied = useCallback34((request) => {
|
30061
30035
|
ToastManager.addToast({
|
30062
30036
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
30063
30037
|
variant: "error"
|
@@ -30292,7 +30266,7 @@ var Sheet2 = () => {
|
|
30292
30266
|
|
30293
30267
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
30294
30268
|
init_define_process_env();
|
30295
|
-
import React175, { useCallback as
|
30269
|
+
import React175, { useCallback as useCallback35, useEffect as useEffect67, useMemo as useMemo19, useState as useState72 } from "react";
|
30296
30270
|
import { useMedia as useMedia38 } from "react-use";
|
30297
30271
|
import {
|
30298
30272
|
selectLocalPeerID as selectLocalPeerID17,
|
@@ -30330,7 +30304,7 @@ function FlyingEmoji() {
|
|
30330
30304
|
const [emojis, setEmojis] = useState72([]);
|
30331
30305
|
const isMobile = useMedia38(config.media.md);
|
30332
30306
|
const startingPoints = useMemo19(() => getStartingPoints(isMobile), [isMobile]);
|
30333
|
-
const showFlyingEmoji =
|
30307
|
+
const showFlyingEmoji = useCallback35(
|
30334
30308
|
({ emojiId, senderId }) => {
|
30335
30309
|
if (!emojiId || !senderId || document.hidden) {
|
30336
30310
|
return;
|
@@ -30423,11 +30397,11 @@ function FlyingEmoji() {
|
|
30423
30397
|
|
30424
30398
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
30425
30399
|
init_define_process_env();
|
30426
|
-
import React176, { useCallback as
|
30400
|
+
import React176, { useCallback as useCallback36 } from "react";
|
30427
30401
|
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions51 } from "@100mslive/react-sdk";
|
30428
30402
|
function RemoteStopScreenshare() {
|
30429
30403
|
const actions = useHMSActions51();
|
30430
|
-
const onRemoteStopScreenshare =
|
30404
|
+
const onRemoteStopScreenshare = useCallback36(() => __async(this, null, function* () {
|
30431
30405
|
yield actions.setScreenShareEnabled(false);
|
30432
30406
|
}), [actions]);
|
30433
30407
|
useCustomEvent6({
|
@@ -30439,7 +30413,7 @@ function RemoteStopScreenshare() {
|
|
30439
30413
|
|
30440
30414
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
30441
30415
|
init_define_process_env();
|
30442
|
-
import { useCallback as
|
30416
|
+
import { useCallback as useCallback37, useEffect as useEffect68, useRef as useRef26 } from "react";
|
30443
30417
|
import {
|
30444
30418
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
30445
30419
|
selectPermissions as selectPermissions18,
|
@@ -30455,7 +30429,7 @@ var useAutoStartStreaming = () => {
|
|
30455
30429
|
const isConnected = useHMSStore92(selectIsConnectedToRoom12);
|
30456
30430
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
30457
30431
|
const streamStartedRef = useRef26(false);
|
30458
|
-
const startHLS =
|
30432
|
+
const startHLS = useCallback37(() => __async(void 0, null, function* () {
|
30459
30433
|
try {
|
30460
30434
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
30461
30435
|
return;
|
@@ -30799,7 +30773,6 @@ export {
|
|
30799
30773
|
Sheet,
|
30800
30774
|
ToastManager,
|
30801
30775
|
useIsLandscape,
|
30802
|
-
useKeyboardHandler,
|
30803
30776
|
LeaveRoom,
|
30804
30777
|
DialogContent,
|
30805
30778
|
DialogRow,
|
@@ -30822,4 +30795,4 @@ lodash/lodash.js:
|
|
30822
30795
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
30823
30796
|
*)
|
30824
30797
|
*/
|
30825
|
-
//# sourceMappingURL=chunk-
|
30798
|
+
//# sourceMappingURL=chunk-2QNPBD6A.js.map
|