@100mslive/roomkit-react 0.1.2-alpha.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{ActiveSpeakerView-ADEYHQMU.css → ActiveSpeakerView-ELWK3LNE.css} +2 -2
- package/dist/{PinnedTrackView-5DPVVOZW.css.map → ActiveSpeakerView-ELWK3LNE.css.map} +1 -1
- package/dist/{ActiveSpeakerView-4XPIRZOK.js → ActiveSpeakerView-I4XBBOOY.js} +6 -6
- package/dist/{HLSView-DWEEMZ6Z.css → HLSView-UPP5PDCE.css} +2 -2
- package/dist/{HLSView-DWEEMZ6Z.css.map → HLSView-UPP5PDCE.css.map} +1 -1
- package/dist/{HLSView-I26CVF5U.js → HLSView-VXI2RN37.js} +5 -5
- package/dist/{PinnedTrackView-5DPVVOZW.css → PinnedTrackView-NWN3H5EZ.css} +2 -2
- package/dist/{conference-BDCDGBIS.css.map → PinnedTrackView-NWN3H5EZ.css.map} +1 -1
- package/dist/{PinnedTrackView-GGTCNH5V.js → PinnedTrackView-V2COEYUL.js} +6 -6
- package/dist/{VirtualBackground-ZRRE4DUA.js → VirtualBackground-4RPLPBOQ.js} +3 -3
- package/dist/{chunk-KKLZ7K2L.js → chunk-2SV2DRIF.js} +7 -7
- package/dist/{chunk-KKLZ7K2L.js.map → chunk-2SV2DRIF.js.map} +2 -2
- package/dist/{chunk-LUND6FLY.js → chunk-MJNJRHS3.js} +46 -40
- package/dist/chunk-MJNJRHS3.js.map +7 -0
- package/dist/{chunk-MYK3T45M.js → chunk-PLKNFRDT.js} +3 -3
- package/dist/chunk-PLKNFRDT.js.map +7 -0
- package/dist/{chunk-THORW2WT.js → chunk-S4QRZ4VV.js} +2 -2
- package/dist/{chunk-4ISMCWQA.js → chunk-YJCBCMH4.js} +7 -6
- package/dist/chunk-YJCBCMH4.js.map +7 -0
- package/dist/{conference-5TDUAQ6K.js → conference-DGJFMV3O.js} +258 -434
- package/dist/conference-DGJFMV3O.js.map +7 -0
- package/dist/{conference-BDCDGBIS.css → conference-JFEDNIUG.css} +2 -2
- package/dist/{ActiveSpeakerView-ADEYHQMU.css.map → conference-JFEDNIUG.css.map} +1 -1
- package/dist/index.cjs.css +1 -1
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +464 -656
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +4 -4
- package/dist/meta.cjs.json +46 -166
- package/dist/meta.esbuild.json +136 -256
- package/dist/{transcription-PYTSSAOB.js → transcription-KASUU6FK.js} +3 -3
- package/package.json +6 -6
- package/src/Button/Button.tsx +6 -2
- package/src/Loading/Loading.tsx +1 -1
- package/src/Prebuilt/App.jsx +4 -1
- package/src/Prebuilt/AppContext.jsx +1 -1
- package/src/Prebuilt/Prebuilt.stories.tsx +4 -0
- package/src/Prebuilt/components/Footer/ConferencingFooter.jsx +1 -4
- package/src/Prebuilt/components/Notifications/PeerNotifications.jsx +2 -1
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.jsx +13 -44
- package/src/Prebuilt/components/Preview/PreviewContainer.jsx +4 -1
- package/src/Prebuilt/components/Preview/PreviewForm.jsx +5 -7
- package/src/Prebuilt/components/Preview/PreviewJoin.jsx +11 -7
- package/src/Theme/base.config.ts +3 -3
- package/src/Theme/stitches.config.ts +2 -1
- package/src/VideoTile/StyledVideoTile.tsx +1 -1
- package/dist/chunk-4ISMCWQA.js.map +0 -7
- package/dist/chunk-LUND6FLY.js.map +0 -7
- package/dist/chunk-MYK3T45M.js.map +0 -7
- package/dist/conference-5TDUAQ6K.js.map +0 -7
- package/src/assets/android-perm-0.png +0 -0
- /package/dist/{ActiveSpeakerView-4XPIRZOK.js.map → ActiveSpeakerView-I4XBBOOY.js.map} +0 -0
- /package/dist/{HLSView-I26CVF5U.js.map → HLSView-VXI2RN37.js.map} +0 -0
- /package/dist/{PinnedTrackView-GGTCNH5V.js.map → PinnedTrackView-V2COEYUL.js.map} +0 -0
- /package/dist/{VirtualBackground-ZRRE4DUA.js.map → VirtualBackground-4RPLPBOQ.js.map} +0 -0
- /package/dist/{chunk-THORW2WT.js.map → chunk-S4QRZ4VV.js.map} +0 -0
- /package/dist/{transcription-PYTSSAOB.js.map → transcription-KASUU6FK.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
|
|
108
108
|
var define_process_env_default;
|
109
109
|
var init_define_process_env = __esm({
|
110
110
|
"<define:process.env>"() {
|
111
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f0fd5977-25a4-477b-9e37-ba292c4a07cc", 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_webpack_cli: "^4.9.2", npm_package_devDependencies_webpack_bundle_analyzer: "^4.5.0", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.19 npm/? node/v16.20.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.8.11-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_f0fd5977-25a4-477b-9e37-ba292c4a07cc", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/16.20.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.11.11-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.0", npm_package_dependencies__radix_ui_react_popover: "1.0.0", npm_package_dependencies__100mslive_types_prebuilt: "0.8.0", 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.0", npm_package_files_1: "src", 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_webpack_manifest_plugin: "^4.1.1", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.2.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", 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: "672", 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.7", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "1.0.0", 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_dependencies_react_router_dom: "^6.3.0", 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.6/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", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20230728.3.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", 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_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:16863", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_scripts_app: "cd apps/100ms-web && yarn start", 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_sdk: "cd packages/hms-video-web && yarn start", 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_zipyai: "^1.3.24", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.1.11-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", GITHUB_RUN_ID: "5769647977", 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_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: "523c0b38cdcac790c93b60d2747a4e3520d21dd2", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "apps/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "0e2c894bbb5075b28c0757effed69e02208523143ad92569c9696ba7b7fd8762", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main-release", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GOROOT_1_18_X64: "/opt/hostedtoolcache/go/1.18.10/x64", GITHUB_ACTION_REPOSITORY: "", npm_package_workspaces_2: "playwright/*", npm_package_devDependencies_postcss_loader: "^6.2.1", PATH: "/tmp/yarn--1691223222914-0.5609917794437884:/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/16.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1691223222711-0.34708156357662356:/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/16.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1691223181788-0.9010785691367744:/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/16.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1691223181589-0.18897075770780747:/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/16.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/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:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/16.20.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_0b766be7-d7f1-4d8e-bca7-11f61054e5a2", INVOCATION_ID: "fbfa157648034e9bb7399ab26ce66077", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.11/x64", npm_package_husky_hooks_pre_push: "lint-staged", 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", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "358", GITHUB_TRIGGERING_ACTOR: "hdz-666", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies_pusher_js: "^7.0.3", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "80 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: "80 KB", npm_package_lint_staged__: "format && lint:fix", npm_package_devDependencies_webpack: "^5.76.0", 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 3", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main-release", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "20 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-web/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_webpack_dev_server: "^4.7.4", 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.8.11-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.1.2-alpha.0", npm_package_size_limit_4_limit: "400 KB", npm_package_size_limit_1_path: "packages/hms-video-web/dist/index.js", npm_package_husky_hooks_pre_commit: "lint-staged", 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_source: "src/index.ts", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/hms-video-store/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: "20 KB", npm_package_size_limit_3_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "523c0b38cdcac790c93b60d2747a4e3520d21dd2", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "20 KB", npm_package_size_limit_4_path: "packages/roomkit-react/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/main-release", GITHUB_ACTOR: "hdz-666", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_size_limit_8_limit: "200 KB", npm_package_size_limit_5_path: "packages/roomkit-react/dist/index.js", npm_config_strict_ssl: "true", npm_package_license: "MIT", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_9_limit: "200 KB", npm_package_size_limit_6_path: "packages/hms-virtual-background/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_f0fd5977-25a4-477b-9e37-ba292c4a07cc", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "93115614", 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/hms-virtual-background/dist/index.js", 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.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f0fd5977-25a4-477b-9e37-ba292c4a07cc", npm_package_size_limit_8_path: "packages/hms-noise-suppression/dist/index.cjs.js", npm_package_dependencies__tldraw_tldraw: "^1.18.4", 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_size_limit_9_path: "packages/hms-noise-suppression/dist/index.js", 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_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_scripts_app_custom: "cd apps/100ms-custom-app && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies_hls_js: "^1.3.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_f0fd5977-25a4-477b-9e37-ba292c4a07cc" };
|
111
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_cc43ce27-5899-45f5-a518-ebf83ec62dc9", 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_webpack_cli: "^4.9.2", npm_package_devDependencies_webpack_bundle_analyzer: "^4.5.0", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.19 npm/? node/v16.20.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.8.11", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_cc43ce27-5899-45f5-a518-ebf83ec62dc9", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/16.20.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.11.11", 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.0", npm_package_dependencies__radix_ui_react_popover: "1.0.0", npm_package_dependencies__100mslive_types_prebuilt: "0.8.0", 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.0", npm_package_files_1: "src", 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_webpack_manifest_plugin: "^4.1.1", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.2.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", 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: "664", 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.7", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "1.0.0", 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_dependencies_react_router_dom: "^6.3.0", 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.6/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", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20230728.3.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", 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_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:16173", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_scripts_app: "cd apps/100ms-web && yarn start", 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_sdk: "cd packages/hms-video-web && yarn start", 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_zipyai: "^1.3.24", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.1.11", 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", GITHUB_RUN_ID: "5808930961", 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_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: "b40c957e0577e36fd1efd2658e7b3d9a1a1a5baa", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "apps/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "3c9d552ab5b69c115f8e285124560b3129023ad7f6a2046b26ac92507b4daeed", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GOROOT_1_18_X64: "/opt/hostedtoolcache/go/1.18.10/x64", GITHUB_ACTION_REPOSITORY: "", npm_package_workspaces_2: "playwright/*", npm_package_devDependencies_postcss_loader: "^6.2.1", PATH: "/tmp/yarn--1691584432516-0.868422819656663:/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/16.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1691584432310-0.35904137942569725:/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/16.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1691584390647-0.16954921114654198:/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/16.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1691584390451-0.8480450141844205:/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/16.20.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.1/x64/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:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/16.20.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7225bf1f-6238-4943-8d85-5c3fed15737e", INVOCATION_ID: "05372eed26f4494a9017fc8f1e4bc771", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.11/x64", npm_package_husky_hooks_pre_push: "lint-staged", 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", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "360", GITHUB_TRIGGERING_ACTOR: "eswarclynn", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies_pusher_js: "^7.0.3", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "80 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: "80 KB", npm_package_lint_staged__: "format && lint:fix", npm_package_devDependencies_webpack: "^5.76.0", 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 6", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "20 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-web/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_webpack_dev_server: "^4.7.4", 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.8.11", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_NM: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.1.2", npm_package_size_limit_4_limit: "400 KB", npm_package_size_limit_1_path: "packages/hms-video-web/dist/index.js", npm_package_husky_hooks_pre_commit: "lint-staged", 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_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/hms-video-store/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: "20 KB", npm_package_size_limit_3_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "b40c957e0577e36fd1efd2658e7b3d9a1a1a5baa", GITHUB_RUN_ATTEMPT: "2", npm_package_size_limit_7_limit: "20 KB", npm_package_size_limit_4_path: "packages/roomkit-react/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/main", GITHUB_ACTOR: "eswarclynn", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_size_limit_8_limit: "200 KB", npm_package_size_limit_5_path: "packages/roomkit-react/dist/index.js", npm_config_strict_ssl: "true", npm_package_license: "MIT", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_9_limit: "200 KB", npm_package_size_limit_6_path: "packages/hms-virtual-background/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_cc43ce27-5899-45f5-a518-ebf83ec62dc9", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "64120992", 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/hms-virtual-background/dist/index.js", 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.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_cc43ce27-5899-45f5-a518-ebf83ec62dc9", npm_package_size_limit_8_path: "packages/hms-noise-suppression/dist/index.cjs.js", npm_package_dependencies__tldraw_tldraw: "^1.18.4", 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_size_limit_9_path: "packages/hms-noise-suppression/dist/index.js", 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_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_scripts_app_custom: "cd apps/100ms-custom-app && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies_hls_js: "^1.3.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_cc43ce27-5899-45f5-a518-ebf83ec62dc9" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -126,9 +126,9 @@ var init_base_config = __esm({
|
|
126
126
|
primary_bright: "#538DFF",
|
127
127
|
primary_dim: "#002D6D",
|
128
128
|
primary_disabled: "#004299",
|
129
|
-
on_primary_high: "
|
130
|
-
on_primary_medium: "
|
131
|
-
on_primary_low: "
|
129
|
+
on_primary_high: "rgba(245, 249, 255, 0.95)",
|
130
|
+
on_primary_medium: "rgba(224, 236, 255, 0.8)",
|
131
|
+
on_primary_low: "rgba(194, 208, 229, 0.5)",
|
132
132
|
secondary_default: "#444954",
|
133
133
|
secondary_bright: "#70778B",
|
134
134
|
secondary_dim: "#293042",
|
@@ -427,7 +427,8 @@ var init_stitches_config = __esm({
|
|
427
427
|
if (!themeType) {
|
428
428
|
throw new Error("Theme type is required");
|
429
429
|
}
|
430
|
-
|
430
|
+
const mergedTheme = (0, import_lodash.default)(baseConfig.theme, theme2 || {});
|
431
|
+
return createThemeBase(className || `${themeType}-theme`, mergedTheme);
|
431
432
|
};
|
432
433
|
}
|
433
434
|
});
|
@@ -651,7 +652,7 @@ var init_Loading = __esm({
|
|
651
652
|
import_react5 = __toESM(require("react"));
|
652
653
|
Loading = (_a7) => {
|
653
654
|
var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
|
654
|
-
return /* @__PURE__ */ import_react5.default.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ import_react5.default.createElement("circle", { cx: "25", cy: "25", r: "20", stroke:
|
655
|
+
return /* @__PURE__ */ import_react5.default.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ import_react5.default.createElement("circle", { cx: "25", cy: "25", r: "20", stroke: color, strokeWidth: "4", strokeDasharray: "70 30", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement(
|
655
656
|
"animateTransform",
|
656
657
|
{
|
657
658
|
attributeName: "transform",
|
@@ -856,7 +857,15 @@ var init_Button = __esm({
|
|
856
857
|
}));
|
857
858
|
Button = import_react6.default.forwardRef((_a7, ref) => {
|
858
859
|
var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
|
859
|
-
return /* @__PURE__ */ import_react6.default.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, loading && /* @__PURE__ */ import_react6.default.createElement(
|
860
|
+
return /* @__PURE__ */ import_react6.default.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, loading && /* @__PURE__ */ import_react6.default.createElement(
|
861
|
+
Flex,
|
862
|
+
{
|
863
|
+
align: "center",
|
864
|
+
justify: "center",
|
865
|
+
css: { w: "100%", position: "absolute", left: "0", color: "$on_primary_low" }
|
866
|
+
},
|
867
|
+
/* @__PURE__ */ import_react6.default.createElement(Loading, { color: "currentColor" })
|
868
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
860
869
|
Flex,
|
861
870
|
{
|
862
871
|
align: "center",
|
@@ -1861,7 +1870,7 @@ var init_StyledVideoTile = __esm({
|
|
1861
1870
|
display: "flex",
|
1862
1871
|
justifyContent: "center",
|
1863
1872
|
alignItems: "center",
|
1864
|
-
background: "$
|
1873
|
+
background: "$background_default",
|
1865
1874
|
variants: {
|
1866
1875
|
transparentBg: {
|
1867
1876
|
true: {
|
@@ -4104,7 +4113,7 @@ var init_AppContext = __esm({
|
|
4104
4113
|
roomCode: "",
|
4105
4114
|
userName: "",
|
4106
4115
|
userId: "",
|
4107
|
-
|
4116
|
+
endpoints: {},
|
4108
4117
|
onLeave: void 0
|
4109
4118
|
});
|
4110
4119
|
HMSPrebuiltContext.displayName = "HMSPrebuiltContext";
|
@@ -5121,6 +5130,7 @@ var init_PeerNotifications = __esm({
|
|
5121
5130
|
import_react_sdk16 = require("@100mslive/react-sdk");
|
5122
5131
|
init_ToastBatcher();
|
5123
5132
|
init_useUISettings();
|
5133
|
+
init_utils2();
|
5124
5134
|
init_constants();
|
5125
5135
|
notificationTypes = [
|
5126
5136
|
import_react_sdk16.HMSNotificationTypes.PEER_LIST,
|
@@ -5132,14 +5142,14 @@ var init_PeerNotifications = __esm({
|
|
5132
5142
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
5133
5143
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
5134
5144
|
(0, import_react39.useEffect)(() => {
|
5135
|
-
var _a7;
|
5136
|
-
if (!notification) {
|
5145
|
+
var _a7, _b7;
|
5146
|
+
if (!notification || ((_a7 = notification == null ? void 0 : notification.data) == null ? void 0 : _a7.roleName) && isInternalRole(notification.data.roleName)) {
|
5137
5147
|
return;
|
5138
5148
|
}
|
5139
5149
|
console.debug(`[${notification.type}]`, notification);
|
5140
5150
|
switch (notification.type) {
|
5141
5151
|
case import_react_sdk16.HMSNotificationTypes.PEER_LIST:
|
5142
|
-
if (!isPeerJoinSubscribed || ((
|
5152
|
+
if (!isPeerJoinSubscribed || ((_b7 = notification.data) == null ? void 0 : _b7.length) === 0) {
|
5143
5153
|
return;
|
5144
5154
|
}
|
5145
5155
|
break;
|
@@ -5163,14 +5173,6 @@ var init_PeerNotifications = __esm({
|
|
5163
5173
|
}
|
5164
5174
|
});
|
5165
5175
|
|
5166
|
-
// src/assets/android-perm-0.png
|
5167
|
-
var android_perm_0_default;
|
5168
|
-
var init_android_perm_0 = __esm({
|
5169
|
-
"src/assets/android-perm-0.png"() {
|
5170
|
-
android_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAngAAAD9CAYAAAAvdQp4AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAADjBSURBVHgB7d17kFzleefxtwckpBECiRm8yESDZMeaWdtZNLKzcVlaI2JEbcWGwdndMmJrgUAS/uC6iTGu3RQa+a9wK9vBqZQdkPBuBZFUxSCz660CGwQrufAmlkQVTkZghDTiIoNG6IJmhLSazvm93U/P22fO6dv0XPrM91PVpVF3n9PnvO/pc55+3stxDgAAAAAAAMDMlXMTsGzZykVz57u10VpWOtd2SS6XX+YAAABQt3w+t8+50f0u73afGnHb9u3bfcQ1qO4AT0HdOee6G1w+d020AWsdAAAAmi/ntuVd/rG2M+6FgYHd++pbtEY+W9fedmeUpbsrCuwWOQAAAEyJvMs91jY6urHWQO+sWt7U/enP3Hn2HPdUFA3+++i/8xwAAACmTBSDrXS53DWdnRflhg4dfKmG96fzzbELck/SFAsAADBT5J7MjY7+SaVsXmqA19Ozclm+Lfd89OcyBwAAgJnkjdxo/nfTgrzEAI/gDgAAYMZLDfLGBXgEdwAAAC0jMchri79rtC33pCO4AwAAaAXL82flNsWfLBtFu+KTqzZEKb1rHQAAAFrF8o4LL8oNvXdwmz1RaqItNs2+4QAAANBq3o+aaldZU22piXY0l+t3AAAAaEWLw6Zan8EjewcAANDy8sUBF9t8Bo/sHQAAQM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Rws69/PLL/n6yuudtFQru9kWP348eux0AAAAmxY2uMIo1sdm2SQ+tWxlDNckucgAAAJgSN7rmB3oEdgAAADPA2uix2Y0Fe/UEfPZ+BXU/jB43OAK7mtAHDwAATJWVrtBHT//+G1cI1uxh9hUfR12hX93Ljv51dfsXnyu2WgYpkMsAAAAASUVORK5CYII=";
|
5171
|
-
}
|
5172
|
-
});
|
5173
|
-
|
5174
5176
|
// src/assets/android-perm-1.png
|
5175
5177
|
var android_perm_1_default;
|
5176
5178
|
var init_android_perm_1 = __esm({
|
@@ -5192,13 +5194,7 @@ function PermissionErrorModal() {
|
|
5192
5194
|
const notification = (0, import_react_sdk17.useHMSNotifications)(import_react_sdk17.HMSNotificationTypes.ERROR);
|
5193
5195
|
const [deviceType, setDeviceType] = (0, import_react40.useState)("");
|
5194
5196
|
const [isSystemError, setIsSystemError] = (0, import_react40.useState)(false);
|
5195
|
-
const [showAndroidPrompt, setShowAndroidPrompt] = (0, import_react40.useState)(true);
|
5196
5197
|
const isMobile = (0, import_react_use4.useMedia)(config.media.md);
|
5197
|
-
(0, import_react40.useEffect)(() => {
|
5198
|
-
if (showAndroidPrompt && isAndroid && isMobile) {
|
5199
|
-
setDeviceType("camera and microphone");
|
5200
|
-
}
|
5201
|
-
}, []);
|
5202
5198
|
(0, import_react40.useEffect)(() => {
|
5203
5199
|
var _a7, _b7, _c, _d, _e;
|
5204
5200
|
if (!notification || ((_a7 = notification.data) == null ? void 0 : _a7.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
|
@@ -5228,19 +5224,9 @@ function PermissionErrorModal() {
|
|
5228
5224
|
}
|
5229
5225
|
},
|
5230
5226
|
isMobile && isIOS ? /* @__PURE__ */ import_react40.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default }) : null,
|
5231
|
-
isMobile && isAndroid ?
|
5232
|
-
/* @__PURE__ */ import_react40.default.createElement(Text, { variant: "h6" },
|
5233
|
-
), /* @__PURE__ */ import_react40.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ?
|
5234
|
-
Button,
|
5235
|
-
{
|
5236
|
-
css: { w: "100%" },
|
5237
|
-
onClick: () => {
|
5238
|
-
setDeviceType("");
|
5239
|
-
setShowAndroidPrompt(false);
|
5240
|
-
}
|
5241
|
-
},
|
5242
|
-
"Continue"
|
5243
|
-
) : /* @__PURE__ */ import_react40.default.createElement(import_react40.default.Fragment, null, /* @__PURE__ */ import_react40.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react40.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, !isMobile ? /* @__PURE__ */ import_react40.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react40.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null))) : null;
|
5227
|
+
isMobile && isAndroid ? /* @__PURE__ */ import_react40.default.createElement("img", { src: android_perm_1_default, style: { maxWidth: "100%", maxHeight: "100%" } }) : null,
|
5228
|
+
/* @__PURE__ */ import_react40.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
5229
|
+
), /* @__PURE__ */ import_react40.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null), isMobile && isIOS ? /* @__PURE__ */ import_react40.default.createElement(import_react40.default.Fragment, null, /* @__PURE__ */ import_react40.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react40.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, isMobile && isAndroid ? /* @__PURE__ */ import_react40.default.createElement(import_react40.default.Fragment, null, /* @__PURE__ */ import_react40.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react40.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, !isMobile ? /* @__PURE__ */ import_react40.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react40.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null))) : null;
|
5244
5230
|
}
|
5245
5231
|
var import_react40, import_react_use4, import_react_sdk17;
|
5246
5232
|
var init_PermissionErrorModal = __esm({
|
@@ -5251,7 +5237,6 @@ var init_PermissionErrorModal = __esm({
|
|
5251
5237
|
import_react_use4 = require("react-use");
|
5252
5238
|
import_react_sdk17 = require("@100mslive/react-sdk");
|
5253
5239
|
init_src();
|
5254
|
-
init_android_perm_0();
|
5255
5240
|
init_android_perm_1();
|
5256
5241
|
init_ios_perm_0();
|
5257
5242
|
init_constants();
|
@@ -9988,7 +9973,7 @@ var init_PreviewForm = __esm({
|
|
9988
9973
|
autoComplete: "name"
|
9989
9974
|
}
|
9990
9975
|
), cannotPublishAudio && cannotPublishVideo && !isMobile ? /* @__PURE__ */ import_react93.default.createElement(PreviewSettings, null) : null),
|
9991
|
-
|
9976
|
+
/* @__PURE__ */ import_react93.default.createElement(Button, { type: "submit", icon: true, disabled: !name || !enableJoin, onClick: onJoin }, showGoLive ? /* @__PURE__ */ import_react93.default.createElement(import_react_icons41.RadioIcon, { height: 18, width: 18 }) : null, showGoLive ? joinForm.go_live_btn_label : joinForm.join_btn_label)
|
9992
9977
|
);
|
9993
9978
|
};
|
9994
9979
|
Form = styled("form", {
|
@@ -10206,12 +10191,12 @@ var init_PreviewJoin = __esm({
|
|
10206
10191
|
const [name, setName] = (0, import_react95.useState)(initialName || previewPreference.name);
|
10207
10192
|
const { isLocalAudioEnabled, isLocalVideoEnabled, toggleAudio, toggleVideo } = (0, import_react_sdk56.useAVToggle)();
|
10208
10193
|
const [previewError, setPreviewError] = (0, import_react95.useState)(false);
|
10209
|
-
const {
|
10194
|
+
const { endpoints } = useHMSPrebuiltContext();
|
10210
10195
|
const { peerCount } = (0, import_react_sdk56.useParticipants)();
|
10211
10196
|
const { enableJoin, preview, join } = (0, import_react_sdk56.usePreviewJoin)({
|
10212
10197
|
name,
|
10213
10198
|
token: authToken,
|
10214
|
-
initEndpoint:
|
10199
|
+
initEndpoint: endpoints == null ? void 0 : endpoints.init,
|
10215
10200
|
initialSettings: {
|
10216
10201
|
isAudioMuted: skipPreview || previewPreference.isAudioMuted,
|
10217
10202
|
isVideoMuted: skipPreview || previewPreference.isVideoMuted,
|
@@ -10246,7 +10231,21 @@ var init_PreviewJoin = __esm({
|
|
10246
10231
|
}
|
10247
10232
|
}
|
10248
10233
|
}, [authToken, skipPreview]);
|
10249
|
-
return roomState === import_react_sdk56.HMSRoomState.Preview ? /* @__PURE__ */ import_react95.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react95.default.createElement(Box, null), /* @__PURE__ */ import_react95.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "360px" } }, /* @__PURE__ */ import_react95.default.createElement(Logo, null), /* @__PURE__ */ import_react95.default.createElement(
|
10234
|
+
return roomState === import_react_sdk56.HMSRoomState.Preview ? /* @__PURE__ */ import_react95.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react95.default.createElement(Box, null), /* @__PURE__ */ import_react95.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "360px" } }, /* @__PURE__ */ import_react95.default.createElement(Logo, null), /* @__PURE__ */ import_react95.default.createElement(
|
10235
|
+
Text,
|
10236
|
+
{
|
10237
|
+
variant: "h4",
|
10238
|
+
css: { wordBreak: "break-word", textAlign: "center", mt: "$14", mb: "$4", "@md": { mt: "$8", mb: "$2" } }
|
10239
|
+
},
|
10240
|
+
previewHeader.title
|
10241
|
+
), /* @__PURE__ */ import_react95.default.createElement(
|
10242
|
+
Text,
|
10243
|
+
{
|
10244
|
+
css: { c: "$on_surface_medium", my: "0", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
|
10245
|
+
variant: "sm"
|
10246
|
+
},
|
10247
|
+
previewHeader.sub_title
|
10248
|
+
), /* @__PURE__ */ import_react95.default.createElement(Flex, { justify: "center", css: { mt: "$14", mb: "$14", "@md": { mt: "$8", mb: "0" }, gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ import_react95.default.createElement(
|
10250
10249
|
Chip_default,
|
10251
10250
|
{
|
10252
10251
|
content: "LIVE",
|
@@ -10389,6 +10388,7 @@ var init_PreviewContainer = __esm({
|
|
10389
10388
|
import_react_sdk57 = require("@100mslive/react-sdk");
|
10390
10389
|
init_src();
|
10391
10390
|
init_SidePane();
|
10391
|
+
init_roomLayoutProvider();
|
10392
10392
|
init_FullPageProgress();
|
10393
10393
|
init_Header2();
|
10394
10394
|
init_PreviewJoin();
|
@@ -10397,12 +10397,15 @@ var init_PreviewContainer = __esm({
|
|
10397
10397
|
init_useSkipPreview();
|
10398
10398
|
init_constants();
|
10399
10399
|
PreviewContainer = () => {
|
10400
|
+
var _a7, _b7, _c;
|
10400
10401
|
const navigate = useNavigation();
|
10401
10402
|
const skipPreview = useSkipPreview();
|
10402
10403
|
const previewAsRole = (0, import_react_use13.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
10403
10404
|
const initialName = (0, import_react_use13.useSearchParam)(QUERY_PARAM_NAME) || (skipPreview ? "Beam" : "");
|
10404
10405
|
const { roomId: urlRoomId, role: userRole } = (0, import_react_router_dom5.useParams)();
|
10405
10406
|
const authToken = useAuthToken();
|
10407
|
+
const roomLayout = useRoomLayout();
|
10408
|
+
const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
10406
10409
|
const roomState = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectRoomState);
|
10407
10410
|
const isPreview = roomState === import_react_sdk57.HMSRoomState.Preview;
|
10408
10411
|
const onJoin = () => {
|
@@ -10419,7 +10422,7 @@ var init_PreviewContainer = __esm({
|
|
10419
10422
|
justify: "center",
|
10420
10423
|
align: "center"
|
10421
10424
|
},
|
10422
|
-
authToken ? /* @__PURE__ */ import_react97.default.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole, onJoin }) : /* @__PURE__ */ import_react97.default.createElement(FullPageProgress_default, null),
|
10425
|
+
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ import_react97.default.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole, onJoin }) : /* @__PURE__ */ import_react97.default.createElement(FullPageProgress_default, null),
|
10423
10426
|
/* @__PURE__ */ import_react97.default.createElement(
|
10424
10427
|
SidePane_default,
|
10425
10428
|
{
|
@@ -10739,7 +10742,7 @@ var init_usePlaylist = __esm({
|
|
10739
10742
|
});
|
10740
10743
|
|
10741
10744
|
// src/Prebuilt/components/Playlist/PlaylistControls.jsx
|
10742
|
-
var import_react103, import_react_sdk63, import_react_icons44, Progress,
|
10745
|
+
var import_react103, import_react_sdk63, import_react_icons44, Progress, Controls, VolumeControl, VideoPlaylistControls;
|
10743
10746
|
var init_PlaylistControls = __esm({
|
10744
10747
|
"src/Prebuilt/components/Playlist/PlaylistControls.jsx"() {
|
10745
10748
|
"use strict";
|
@@ -10768,16 +10771,6 @@ var init_PlaylistControls = __esm({
|
|
10768
10771
|
}
|
10769
10772
|
);
|
10770
10773
|
};
|
10771
|
-
PlaylistActive = ({ type, onToggle }) => {
|
10772
|
-
var _a7, _b7;
|
10773
|
-
const isAudioPlaylist = type === import_react_sdk63.HMSPlaylistType.audio;
|
10774
|
-
const selector = isAudioPlaylist ? import_react_sdk63.selectAudioPlaylist : import_react_sdk63.selectVideoPlaylist;
|
10775
|
-
const active = (0, import_react_sdk63.useHMSStore)(selector.selectedItem);
|
10776
|
-
if (!active) {
|
10777
|
-
return null;
|
10778
|
-
}
|
10779
|
-
return /* @__PURE__ */ import_react103.default.createElement(Box, { css: { mt: "$8" } }, /* @__PURE__ */ import_react103.default.createElement(Flex, { justify: "between", css: { w: "100%" } }, /* @__PURE__ */ import_react103.default.createElement(Box, null, /* @__PURE__ */ import_react103.default.createElement(Text, { variant: "md" }, active.name), ((_a7 = active.metadata) == null ? void 0 : _a7.description) && /* @__PURE__ */ import_react103.default.createElement(Text, { variant: "xs" }, (_b7 = active.metadata) == null ? void 0 : _b7.description)), /* @__PURE__ */ import_react103.default.createElement(IconButton, { onClick: onToggle, css: { alignSelf: "center" }, "data-testid": "playlist_collapse_btn" }, /* @__PURE__ */ import_react103.default.createElement(import_react_icons44.PlaylistIcon, null))));
|
10780
|
-
};
|
10781
10774
|
Controls = ({ type, css: css2 = {} }) => {
|
10782
10775
|
const { active, hasNext, hasPrevious, actions } = usePlaylist(type);
|
10783
10776
|
if (!active) {
|
@@ -10842,25 +10835,6 @@ var init_PlaylistControls = __esm({
|
|
10842
10835
|
}
|
10843
10836
|
));
|
10844
10837
|
};
|
10845
|
-
AudioPlaylistControls = ({ onToggle }) => {
|
10846
|
-
const { active } = usePlaylist(import_react_sdk63.HMSPlaylistType.audio);
|
10847
|
-
if (!active) {
|
10848
|
-
return null;
|
10849
|
-
}
|
10850
|
-
return /* @__PURE__ */ import_react103.default.createElement(
|
10851
|
-
Box,
|
10852
|
-
{
|
10853
|
-
css: {
|
10854
|
-
p: "$8",
|
10855
|
-
borderTop: "1px solid $border_bright",
|
10856
|
-
bg: "$surface_default"
|
10857
|
-
}
|
10858
|
-
},
|
10859
|
-
/* @__PURE__ */ import_react103.default.createElement(Controls, { type: import_react_sdk63.HMSPlaylistType.audio }),
|
10860
|
-
/* @__PURE__ */ import_react103.default.createElement(Progress, { type: import_react_sdk63.HMSPlaylistType.audio, duration: active.duration }),
|
10861
|
-
/* @__PURE__ */ import_react103.default.createElement(PlaylistActive, { type: import_react_sdk63.HMSPlaylistType.audio, onToggle })
|
10862
|
-
);
|
10863
|
-
};
|
10864
10838
|
VideoPlaylistControls = ({ children }) => {
|
10865
10839
|
const { active } = usePlaylist(import_react_sdk63.HMSPlaylistType.video);
|
10866
10840
|
return /* @__PURE__ */ import_react103.default.createElement(
|
@@ -16374,7 +16348,7 @@ var init_dist = __esm({
|
|
16374
16348
|
};
|
16375
16349
|
mr = (n2, e) => () => (e || n2((e = { exports: {} }).exports, e), e.exports);
|
16376
16350
|
Jt = mr((aa, Ar) => {
|
16377
|
-
Ar.exports = { name: "@100mslive/hms-video", version: "0.9.11
|
16351
|
+
Ar.exports = { name: "@100mslive/hms-video", version: "0.9.11", license: "MIT", main: "dist/index.cjs.js", typings: "dist/index.d.ts", module: "dist/index.js", files: ["dist", "src"], engines: { node: ">=10" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, 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", test: "jest --maxWorkers=1", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", format: "prettier --write src/**/*.ts" }, author: "100ms <tech-common@100ms.live>", devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", tslib: "^2.2.0" }, dependencies: { eventemitter2: "^6.4.7", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0" } };
|
16378
16352
|
});
|
16379
16353
|
Se = class {
|
16380
16354
|
};
|
@@ -16856,7 +16830,7 @@ var init_dist2 = __esm({
|
|
16856
16830
|
init_es();
|
16857
16831
|
Ut = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports);
|
16858
16832
|
At = Ut((Vn, vs) => {
|
16859
|
-
vs.exports = { version: "0.10.11
|
16833
|
+
vs.exports = { version: "0.10.11", license: "MIT", 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" } }, 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", sideEffects: false, dependencies: { "@100mslive/hms-video": "0.9.11", eventemitter2: "^6.4.7", immer: "^9.0.6", reselect: "4.0.0", zustand: "3.5.7" }, devDependencies: { "ts-node": "^10.4.0", tslib: "^2.2.0" }, description: "This is an addon to the core sdk provided by 100ms. It abstracts away the intricacies of data management and provides a flux based reactive data store where data flows in only one direction.", repository: { type: "git", url: "git+https://github.com/100mslive/hms-video-store.git" }, keywords: ["video", "webrtc", "conferencing", "100ms"], bugs: { url: "https://github.com/100mslive/hms-video-store/issues" }, homepage: "https://github.com/100mslive/hms-video-store#readme" };
|
16860
16834
|
});
|
16861
16835
|
Re = ((n2) => (n2.Disconnected = "Disconnected", n2.Preview = "Preview", n2.Connecting = "Connecting", n2.Connected = "Connected", n2.Reconnecting = "Reconnecting", n2.Disconnecting = "Disconnecting", n2.Failed = "Failed", n2))(Re || {});
|
16862
16836
|
Vt = ((e) => (e.CHAT = "chat", e))(Vt || {});
|
@@ -19511,180 +19485,15 @@ var init_mainView = __esm({
|
|
19511
19485
|
}
|
19512
19486
|
});
|
19513
19487
|
|
19514
|
-
// src/Prebuilt/components/Playlist/PlaylistItem.jsx
|
19515
|
-
function formatDuration(duration) {
|
19516
|
-
if (!duration) {
|
19517
|
-
return "";
|
19518
|
-
}
|
19519
|
-
let mins = Math.floor(duration / 60);
|
19520
|
-
if (mins < 10) {
|
19521
|
-
mins = `0${String(mins)}`;
|
19522
|
-
}
|
19523
|
-
let secs = Math.floor(duration % 60);
|
19524
|
-
if (secs < 10) {
|
19525
|
-
secs = `0${String(secs)}`;
|
19526
|
-
}
|
19527
|
-
return `${mins}:${secs}`;
|
19528
|
-
}
|
19529
|
-
var import_react134, PlaylistItem;
|
19530
|
-
var init_PlaylistItem = __esm({
|
19531
|
-
"src/Prebuilt/components/Playlist/PlaylistItem.jsx"() {
|
19532
|
-
"use strict";
|
19533
|
-
init_define_process_env();
|
19534
|
-
import_react134 = __toESM(require("react"));
|
19535
|
-
init_src();
|
19536
|
-
PlaylistItem = import_react134.default.memo(({ name, metadata, duration, selected, onClick }) => {
|
19537
|
-
return /* @__PURE__ */ import_react134.default.createElement(
|
19538
|
-
Dropdown.Item,
|
19539
|
-
{
|
19540
|
-
css: {
|
19541
|
-
flexDirection: "column",
|
19542
|
-
alignItems: "flex-start",
|
19543
|
-
h: "$18",
|
19544
|
-
p: "$8",
|
19545
|
-
"&:hover": {
|
19546
|
-
cursor: "pointer",
|
19547
|
-
bg: "$surface_default"
|
19548
|
-
},
|
19549
|
-
"&:focus-visible": {
|
19550
|
-
bg: "$surface_default"
|
19551
|
-
}
|
19552
|
-
},
|
19553
|
-
onClick
|
19554
|
-
},
|
19555
|
-
/* @__PURE__ */ import_react134.default.createElement(Flex, { align: "center", justify: "between", css: { width: "100%", minHeight: 0 } }, /* @__PURE__ */ import_react134.default.createElement(Text, { variant: "md", css: { color: selected ? "$primary_default" : "$on_primary_high" } }, name), /* @__PURE__ */ import_react134.default.createElement(Text, { variant: "xs" }, formatDuration(duration))),
|
19556
|
-
(metadata == null ? void 0 : metadata.description) && /* @__PURE__ */ import_react134.default.createElement(Text, { variant: "xs", css: { mt: "$4" } }, metadata == null ? void 0 : metadata.description)
|
19557
|
-
);
|
19558
|
-
});
|
19559
|
-
}
|
19560
|
-
});
|
19561
|
-
|
19562
|
-
// src/Prebuilt/components/Playlist/Playlist.jsx
|
19563
|
-
var import_react135, import_react_sdk82, import_react_icons58, BrowseAndPlayFromLocal, Playlist;
|
19564
|
-
var init_Playlist = __esm({
|
19565
|
-
"src/Prebuilt/components/Playlist/Playlist.jsx"() {
|
19566
|
-
"use strict";
|
19567
|
-
init_define_process_env();
|
19568
|
-
import_react135 = __toESM(require("react"));
|
19569
|
-
import_react_sdk82 = require("@100mslive/react-sdk");
|
19570
|
-
import_react_icons58 = require("@100mslive/react-icons");
|
19571
|
-
init_src();
|
19572
|
-
init_IconButton3();
|
19573
|
-
init_PlaylistControls();
|
19574
|
-
init_PlaylistItem();
|
19575
|
-
init_useFeatures();
|
19576
|
-
init_usePlaylist();
|
19577
|
-
init_constants();
|
19578
|
-
BrowseAndPlayFromLocal = ({ type, actions }) => {
|
19579
|
-
return /* @__PURE__ */ import_react135.default.createElement(import_react135.Fragment, null, /* @__PURE__ */ import_react135.default.createElement(Text, { as: "label", htmlFor: `${type}PlaylistBrowse`, variant: "sm", css: { cursor: "pointer", mr: "$2" } }, "Browse"), /* @__PURE__ */ import_react135.default.createElement(
|
19580
|
-
"input",
|
19581
|
-
{
|
19582
|
-
type: "file",
|
19583
|
-
id: `${type}PlaylistBrowse`,
|
19584
|
-
accept: type === import_react_sdk82.HMSPlaylistType.audio ? "audio/*" : "video/*",
|
19585
|
-
onChange: (e) => {
|
19586
|
-
const file = e.target.files[0];
|
19587
|
-
const id = file.lastModified;
|
19588
|
-
actions.setList([
|
19589
|
-
{
|
19590
|
-
type,
|
19591
|
-
id,
|
19592
|
-
name: file.name,
|
19593
|
-
url: URL.createObjectURL(file)
|
19594
|
-
}
|
19595
|
-
]);
|
19596
|
-
actions.play(id);
|
19597
|
-
},
|
19598
|
-
style: { display: "none" }
|
19599
|
-
}
|
19600
|
-
));
|
19601
|
-
};
|
19602
|
-
Playlist = ({ type }) => {
|
19603
|
-
const isAudioPlaylist = type === import_react_sdk82.HMSPlaylistType.audio;
|
19604
|
-
const { active, list: playlist, actions } = usePlaylist(type);
|
19605
|
-
const [open, setOpen] = (0, import_react135.useState)(false);
|
19606
|
-
const [collapse, setCollapse] = (0, import_react135.useState)(false);
|
19607
|
-
const isAllowedToPublish = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsAllowedToPublish);
|
19608
|
-
const isFeatureEnabled = useIsFeatureEnabled(
|
19609
|
-
isAudioPlaylist ? FEATURE_LIST.AUDIO_PLAYLIST : FEATURE_LIST.VIDEO_PLAYLIST
|
19610
|
-
);
|
19611
|
-
if (!isAllowedToPublish.screen || playlist.length === 0 || !isFeatureEnabled) {
|
19612
|
-
return null;
|
19613
|
-
}
|
19614
|
-
return /* @__PURE__ */ import_react135.default.createElement(import_react135.Fragment, null, /* @__PURE__ */ import_react135.default.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ import_react135.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": type === import_react_sdk82.HMSPlaylistType.audio ? "audio_playlist" : "video_playlist" }, /* @__PURE__ */ import_react135.default.createElement(IconButton_default, { active: !active }, /* @__PURE__ */ import_react135.default.createElement(Tooltip, { title: isAudioPlaylist ? "Audio Playlist" : "Video Playlist" }, /* @__PURE__ */ import_react135.default.createElement(Box, null, isAudioPlaylist ? /* @__PURE__ */ import_react135.default.createElement(import_react_icons58.AudioPlayerIcon, null) : /* @__PURE__ */ import_react135.default.createElement(import_react_icons58.VideoPlayerIcon, null))))), /* @__PURE__ */ import_react135.default.createElement(
|
19615
|
-
Dropdown.Content,
|
19616
|
-
{
|
19617
|
-
sideOffset: 5,
|
19618
|
-
align: "center",
|
19619
|
-
css: {
|
19620
|
-
maxHeight: "unset",
|
19621
|
-
width: "$60",
|
19622
|
-
p: "$0",
|
19623
|
-
bg: "$surface_bright",
|
19624
|
-
border: "1px solid $border_default"
|
19625
|
-
}
|
19626
|
-
},
|
19627
|
-
/* @__PURE__ */ import_react135.default.createElement(
|
19628
|
-
Flex,
|
19629
|
-
{
|
19630
|
-
align: "center",
|
19631
|
-
css: {
|
19632
|
-
p: "$4 $8",
|
19633
|
-
borderBottom: "1px solid $border_bright",
|
19634
|
-
bg: "$surface_default"
|
19635
|
-
}
|
19636
|
-
},
|
19637
|
-
/* @__PURE__ */ import_react135.default.createElement(Text, { variant: "md", css: { flex: "1 1 0" } }, isAudioPlaylist ? "Audio Player" : "Video Playlist"),
|
19638
|
-
/* @__PURE__ */ import_react135.default.createElement(BrowseAndPlayFromLocal, { type, actions }),
|
19639
|
-
/* @__PURE__ */ import_react135.default.createElement(
|
19640
|
-
IconButton_default,
|
19641
|
-
{
|
19642
|
-
css: { mr: "-$4" },
|
19643
|
-
onClick: () => __async(void 0, null, function* () {
|
19644
|
-
if (active) {
|
19645
|
-
yield actions.stop();
|
19646
|
-
}
|
19647
|
-
setOpen(false);
|
19648
|
-
setCollapse(false);
|
19649
|
-
})
|
19650
|
-
},
|
19651
|
-
/* @__PURE__ */ import_react135.default.createElement(import_react_icons58.CrossIcon, { width: 24, height: 24 })
|
19652
|
-
)
|
19653
|
-
),
|
19654
|
-
!collapse && /* @__PURE__ */ import_react135.default.createElement(Box, { css: { maxHeight: "$96", overflowY: "auto" } }, playlist.map((playlistItem) => {
|
19655
|
-
return /* @__PURE__ */ import_react135.default.createElement(
|
19656
|
-
PlaylistItem,
|
19657
|
-
__spreadProps(__spreadValues({
|
19658
|
-
key: playlistItem.id
|
19659
|
-
}, playlistItem), {
|
19660
|
-
onClick: (e) => __async(void 0, null, function* () {
|
19661
|
-
e.preventDefault();
|
19662
|
-
try {
|
19663
|
-
yield actions.play(playlistItem.id);
|
19664
|
-
} catch (e2) {
|
19665
|
-
}
|
19666
|
-
if (!isAudioPlaylist) {
|
19667
|
-
setOpen(false);
|
19668
|
-
}
|
19669
|
-
})
|
19670
|
-
})
|
19671
|
-
);
|
19672
|
-
})),
|
19673
|
-
isAudioPlaylist && /* @__PURE__ */ import_react135.default.createElement(AudioPlaylistControls, { onToggle: () => setCollapse((value) => !value) })
|
19674
|
-
)));
|
19675
|
-
};
|
19676
|
-
}
|
19677
|
-
});
|
19678
|
-
|
19679
19488
|
// src/Prebuilt/components/Settings/StartRecording.jsx
|
19680
|
-
var
|
19489
|
+
var import_react134, import_react_sdk82, import_react_icons58, StartRecording2, StartRecording_default;
|
19681
19490
|
var init_StartRecording = __esm({
|
19682
19491
|
"src/Prebuilt/components/Settings/StartRecording.jsx"() {
|
19683
19492
|
"use strict";
|
19684
19493
|
init_define_process_env();
|
19685
|
-
|
19686
|
-
|
19687
|
-
|
19494
|
+
import_react134 = __toESM(require("react"));
|
19495
|
+
import_react_sdk82 = require("@100mslive/react-sdk");
|
19496
|
+
import_react_icons58 = require("@100mslive/react-icons");
|
19688
19497
|
init_src();
|
19689
19498
|
init_ResolutionInput();
|
19690
19499
|
init_RTMPStreaming();
|
@@ -19692,16 +19501,16 @@ var init_StartRecording = __esm({
|
|
19692
19501
|
init_useUISettings();
|
19693
19502
|
init_constants();
|
19694
19503
|
StartRecording2 = ({ open, onOpenChange }) => {
|
19695
|
-
const permissions = (0,
|
19696
|
-
const [resolution, setResolution] = (0,
|
19504
|
+
const permissions = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectPermissions);
|
19505
|
+
const [resolution, setResolution] = (0, import_react134.useState)(RTMP_RECORD_DEFAULT_RESOLUTION);
|
19697
19506
|
const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
|
19698
|
-
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = (0,
|
19699
|
-
const hmsActions = (0,
|
19507
|
+
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = (0, import_react_sdk82.useRecordingStreaming)();
|
19508
|
+
const hmsActions = (0, import_react_sdk82.useHMSActions)();
|
19700
19509
|
if (!(permissions == null ? void 0 : permissions.browserRecording) || isHLSRunning) {
|
19701
19510
|
return null;
|
19702
19511
|
}
|
19703
19512
|
if (isBrowserRecordingOn) {
|
19704
|
-
return /* @__PURE__ */
|
19513
|
+
return /* @__PURE__ */ import_react134.default.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ import_react134.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react134.default.createElement(
|
19705
19514
|
Dialog.Content,
|
19706
19515
|
{
|
19707
19516
|
css: {
|
@@ -19710,9 +19519,9 @@ var init_StartRecording = __esm({
|
|
19710
19519
|
bg: "#201617"
|
19711
19520
|
}
|
19712
19521
|
},
|
19713
|
-
/* @__PURE__ */
|
19714
|
-
/* @__PURE__ */
|
19715
|
-
/* @__PURE__ */
|
19522
|
+
/* @__PURE__ */ import_react134.default.createElement(Dialog.Title, null, /* @__PURE__ */ import_react134.default.createElement(Flex, { gap: 2, css: { c: "$alert_error_default" } }, /* @__PURE__ */ import_react134.default.createElement(import_react_icons58.AlertTriangleIcon, null), /* @__PURE__ */ import_react134.default.createElement(Text, { css: { c: "inherit" }, variant: "h6" }, "End Recording"))),
|
19523
|
+
/* @__PURE__ */ import_react134.default.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium", my: "$8" } }, "Are you sure you want to end recording? You can\u2019t undo this action."),
|
19524
|
+
/* @__PURE__ */ import_react134.default.createElement(Flex, { justify: "end", css: { mt: "$12" } }, /* @__PURE__ */ import_react134.default.createElement(Dialog.Close, { asChild: true }, /* @__PURE__ */ import_react134.default.createElement(Button, { outlined: true, css: { borderColor: "$secondary_bright", mr: "$4" } }, "Don't end")), /* @__PURE__ */ import_react134.default.createElement(
|
19716
19525
|
Button,
|
19717
19526
|
{
|
19718
19527
|
"data-testid": "stop_recording_confirm_mobile",
|
@@ -19734,14 +19543,14 @@ var init_StartRecording = __esm({
|
|
19734
19543
|
))
|
19735
19544
|
)));
|
19736
19545
|
}
|
19737
|
-
return /* @__PURE__ */
|
19546
|
+
return /* @__PURE__ */ import_react134.default.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ import_react134.default.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ import_react134.default.createElement(Dialog.Title, null, /* @__PURE__ */ import_react134.default.createElement(Text, { variant: "h6" }, "Start Recording")), /* @__PURE__ */ import_react134.default.createElement(
|
19738
19547
|
ResolutionInput,
|
19739
19548
|
{
|
19740
19549
|
testId: "recording_resolution_mobile",
|
19741
19550
|
css: { flexDirection: "column", alignItems: "start" },
|
19742
19551
|
onResolutionChange: setResolution
|
19743
19552
|
}
|
19744
|
-
), /* @__PURE__ */
|
19553
|
+
), /* @__PURE__ */ import_react134.default.createElement(
|
19745
19554
|
Button,
|
19746
19555
|
{
|
19747
19556
|
"data-testid": "start_recording_confirm_mobile",
|
@@ -19782,13 +19591,13 @@ var init_StartRecording = __esm({
|
|
19782
19591
|
});
|
19783
19592
|
|
19784
19593
|
// src/Prebuilt/components/StatsForNerds.jsx
|
19785
|
-
var
|
19594
|
+
var import_react135, import_react_sdk83, StatsForNerds, useTracksWithLabel, LocalPeerStats, TrackStats, StatsRow2, formatBytes2;
|
19786
19595
|
var init_StatsForNerds = __esm({
|
19787
19596
|
"src/Prebuilt/components/StatsForNerds.jsx"() {
|
19788
19597
|
"use strict";
|
19789
19598
|
init_define_process_env();
|
19790
|
-
|
19791
|
-
|
19599
|
+
import_react135 = __toESM(require("react"));
|
19600
|
+
import_react_sdk83 = require("@100mslive/react-sdk");
|
19792
19601
|
init_Divider2();
|
19793
19602
|
init_Dropdown2();
|
19794
19603
|
init_Label2();
|
@@ -19803,21 +19612,21 @@ var init_StatsForNerds = __esm({
|
|
19803
19612
|
StatsForNerds = ({ onOpenChange }) => {
|
19804
19613
|
var _a7;
|
19805
19614
|
const tracksWithLabels = useTracksWithLabel();
|
19806
|
-
const statsOptions = (0,
|
19615
|
+
const statsOptions = (0, import_react135.useMemo)(
|
19807
19616
|
() => [{ id: "local-peer", label: "Local Peer Stats" }, ...tracksWithLabels],
|
19808
19617
|
[tracksWithLabels]
|
19809
19618
|
);
|
19810
|
-
const [selectedStat, setSelectedStat] = (0,
|
19619
|
+
const [selectedStat, setSelectedStat] = (0, import_react135.useState)(statsOptions[0]);
|
19811
19620
|
const [showStatsOnTiles, setShowStatsOnTiles] = useSetUiSettings(UI_SETTINGS.showStatsOnTiles);
|
19812
|
-
const [open, setOpen] = (0,
|
19813
|
-
const ref = (0,
|
19621
|
+
const [open, setOpen] = (0, import_react135.useState)(false);
|
19622
|
+
const ref = (0, import_react135.useRef)();
|
19814
19623
|
const selectionBg = useDropdownSelection();
|
19815
|
-
(0,
|
19624
|
+
(0, import_react135.useEffect)(() => {
|
19816
19625
|
if (selectedStat.id !== "local-peer" && !tracksWithLabels.find((track) => track.id === selectedStat.id)) {
|
19817
19626
|
setSelectedStat("local-peer");
|
19818
19627
|
}
|
19819
19628
|
}, [tracksWithLabels, selectedStat]);
|
19820
|
-
return /* @__PURE__ */
|
19629
|
+
return /* @__PURE__ */ import_react135.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react135.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react135.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react135.default.createElement(
|
19821
19630
|
Dialog.Content,
|
19822
19631
|
{
|
19823
19632
|
css: {
|
@@ -19826,10 +19635,10 @@ var init_StatsForNerds = __esm({
|
|
19826
19635
|
overflowY: "auto"
|
19827
19636
|
}
|
19828
19637
|
},
|
19829
|
-
/* @__PURE__ */
|
19830
|
-
/* @__PURE__ */
|
19831
|
-
/* @__PURE__ */
|
19832
|
-
/* @__PURE__ */
|
19638
|
+
/* @__PURE__ */ import_react135.default.createElement(Dialog.Title, { css: { p: "$4 0" } }, /* @__PURE__ */ import_react135.default.createElement(Flex, { justify: "between" }, /* @__PURE__ */ import_react135.default.createElement(Flex, { align: "center", css: { mb: "$1" } }, /* @__PURE__ */ import_react135.default.createElement(Text, { variant: "h6", inline: true }, "Stats For Nerds")), /* @__PURE__ */ import_react135.default.createElement(Dialog.DefaultClose, { "data-testid": "stats_dialog_close_icon" }))),
|
19639
|
+
/* @__PURE__ */ import_react135.default.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }),
|
19640
|
+
/* @__PURE__ */ import_react135.default.createElement(Flex, { justify: "start", gap: 4, css: { m: "$10 0" } }, /* @__PURE__ */ import_react135.default.createElement(Switch, { checked: showStatsOnTiles, onCheckedChange: setShowStatsOnTiles }), /* @__PURE__ */ import_react135.default.createElement(Text, { variant: "body2", css: { fontWeight: "$semiBold" } }, "Show Stats on Tiles")),
|
19641
|
+
/* @__PURE__ */ import_react135.default.createElement(
|
19833
19642
|
Flex,
|
19834
19643
|
{
|
19835
19644
|
direction: "column",
|
@@ -19839,8 +19648,8 @@ var init_StatsForNerds = __esm({
|
|
19839
19648
|
minWidth: 0
|
19840
19649
|
}
|
19841
19650
|
},
|
19842
|
-
/* @__PURE__ */
|
19843
|
-
/* @__PURE__ */
|
19651
|
+
/* @__PURE__ */ import_react135.default.createElement(Label3, { variant: "body2" }, "Stats For"),
|
19652
|
+
/* @__PURE__ */ import_react135.default.createElement(Dropdown.Root, { "data-testid": "dialog_select_Stats For", open, onOpenChange: setOpen }, /* @__PURE__ */ import_react135.default.createElement(
|
19844
19653
|
DialogDropdownTrigger,
|
19845
19654
|
{
|
19846
19655
|
title: selectedStat.label || "Select Stats",
|
@@ -19849,9 +19658,9 @@ var init_StatsForNerds = __esm({
|
|
19849
19658
|
open,
|
19850
19659
|
ref
|
19851
19660
|
}
|
19852
|
-
), /* @__PURE__ */
|
19661
|
+
), /* @__PURE__ */ import_react135.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react135.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
|
19853
19662
|
const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
|
19854
|
-
return /* @__PURE__ */
|
19663
|
+
return /* @__PURE__ */ import_react135.default.createElement(
|
19855
19664
|
Dropdown.Item,
|
19856
19665
|
{
|
19857
19666
|
key: `${option.id}-${option.layer || ""}`,
|
@@ -19868,14 +19677,14 @@ var init_StatsForNerds = __esm({
|
|
19868
19677
|
);
|
19869
19678
|
}))))
|
19870
19679
|
),
|
19871
|
-
selectedStat.id === "local-peer" ? /* @__PURE__ */
|
19680
|
+
selectedStat.id === "local-peer" ? /* @__PURE__ */ import_react135.default.createElement(LocalPeerStats, null) : /* @__PURE__ */ import_react135.default.createElement(TrackStats, { trackID: selectedStat.id, layer: selectedStat.layer, local: selectedStat.local })
|
19872
19681
|
)));
|
19873
19682
|
};
|
19874
19683
|
useTracksWithLabel = () => {
|
19875
|
-
const tracksMap = (0,
|
19876
|
-
const peersMap = (0,
|
19877
|
-
const localPeerID = (0,
|
19878
|
-
const tracksWithLabels = (0,
|
19684
|
+
const tracksMap = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectTracksMap);
|
19685
|
+
const peersMap = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectPeersMap);
|
19686
|
+
const localPeerID = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectLocalPeerID);
|
19687
|
+
const tracksWithLabels = (0, import_react135.useMemo)(
|
19879
19688
|
() => Object.values(tracksMap).reduce((res, track) => {
|
19880
19689
|
var _a7, _b7;
|
19881
19690
|
const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
|
@@ -19906,17 +19715,17 @@ var init_StatsForNerds = __esm({
|
|
19906
19715
|
};
|
19907
19716
|
LocalPeerStats = () => {
|
19908
19717
|
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i3;
|
19909
|
-
const stats = (0,
|
19718
|
+
const stats = (0, import_react_sdk83.useHMSStatsStore)(import_react_sdk83.selectHMSStats.localPeerStats);
|
19910
19719
|
if (!stats) {
|
19911
19720
|
return null;
|
19912
19721
|
}
|
19913
|
-
return /* @__PURE__ */
|
19722
|
+
return /* @__PURE__ */ import_react135.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes2((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes2((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react135.default.createElement(
|
19914
19723
|
StatsRow2,
|
19915
19724
|
{
|
19916
19725
|
label: "Available Outgoing Bitrate",
|
19917
19726
|
value: formatBytes2((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
|
19918
19727
|
}
|
19919
|
-
), /* @__PURE__ */
|
19728
|
+
), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes2((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes2((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ import_react135.default.createElement(
|
19920
19729
|
StatsRow2,
|
19921
19730
|
{
|
19922
19731
|
label: "Round Trip Time",
|
@@ -19926,21 +19735,21 @@ var init_StatsForNerds = __esm({
|
|
19926
19735
|
};
|
19927
19736
|
TrackStats = ({ trackID, layer, local }) => {
|
19928
19737
|
var _a7;
|
19929
|
-
const selector = layer ?
|
19930
|
-
const stats = (0,
|
19738
|
+
const selector = layer ? import_react_sdk83.selectHMSStats.localVideoTrackStatsByLayer(layer)(trackID) : local ? import_react_sdk83.selectHMSStats.localAudioTrackStatsByID(trackID) : import_react_sdk83.selectHMSStats.trackStatsByID(trackID);
|
19739
|
+
const stats = (0, import_react_sdk83.useHMSStatsStore)(selector);
|
19931
19740
|
if (!stats) {
|
19932
19741
|
return null;
|
19933
19742
|
}
|
19934
19743
|
const inbound = stats.type.includes("inbound");
|
19935
|
-
return /* @__PURE__ */
|
19744
|
+
return /* @__PURE__ */ import_react135.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes2(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Jitter", value: (_a7 = stats.jitter) == null ? void 0 : _a7.toFixed(3) }), /* @__PURE__ */ import_react135.default.createElement(
|
19936
19745
|
StatsRow2,
|
19937
19746
|
{
|
19938
19747
|
label: inbound ? "Bytes Received" : "Bytes Sent",
|
19939
19748
|
value: formatBytes2(inbound ? stats.bytesReceived : stats.bytesSent)
|
19940
19749
|
}
|
19941
|
-
), stats.kind === "video" && /* @__PURE__ */
|
19750
|
+
), stats.kind === "video" && /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Framerate", value: stats.framesPerSecond }), !inbound && /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Quality Limitation Reason", value: stats.qualityLimitationReason })), /* @__PURE__ */ import_react135.default.createElement(StatsRow2, { label: "Round Trip Time", value: stats.roundTripTime ? `${stats.roundTripTime * 1e3} ms` : "-" }));
|
19942
19751
|
};
|
19943
|
-
StatsRow2 =
|
19752
|
+
StatsRow2 = import_react135.default.memo(({ label, value }) => /* @__PURE__ */ import_react135.default.createElement(Box, { css: { bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" } }, /* @__PURE__ */ import_react135.default.createElement(
|
19944
19753
|
Text,
|
19945
19754
|
{
|
19946
19755
|
variant: "overline",
|
@@ -19951,7 +19760,7 @@ var init_StatsForNerds = __esm({
|
|
19951
19760
|
}
|
19952
19761
|
},
|
19953
19762
|
label
|
19954
|
-
), /* @__PURE__ */
|
19763
|
+
), /* @__PURE__ */ import_react135.default.createElement(Text, { variant: "sub1", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, value || "-")));
|
19955
19764
|
formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
19956
19765
|
if (bytes === void 0)
|
19957
19766
|
return "-";
|
@@ -19967,14 +19776,14 @@ var init_StatsForNerds = __esm({
|
|
19967
19776
|
});
|
19968
19777
|
|
19969
19778
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
19970
|
-
var
|
19779
|
+
var import_react136, import_react_sdk84, import_react_icons59, BulkRoleChangeModal;
|
19971
19780
|
var init_BulkRoleChangeModal = __esm({
|
19972
19781
|
"src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx"() {
|
19973
19782
|
"use strict";
|
19974
19783
|
init_define_process_env();
|
19975
|
-
|
19976
|
-
|
19977
|
-
|
19784
|
+
import_react136 = __toESM(require("react"));
|
19785
|
+
import_react_sdk84 = require("@100mslive/react-sdk");
|
19786
|
+
import_react_icons59 = require("@100mslive/react-icons");
|
19978
19787
|
init_src();
|
19979
19788
|
init_DialogContent2();
|
19980
19789
|
init_DropdownTrigger();
|
@@ -19982,16 +19791,16 @@ var init_BulkRoleChangeModal = __esm({
|
|
19982
19791
|
BulkRoleChangeModal = ({ onOpenChange }) => {
|
19983
19792
|
var _a7, _b7;
|
19984
19793
|
const roles = useFilteredRoles();
|
19985
|
-
const hmsActions = (0,
|
19986
|
-
const ref = (0,
|
19987
|
-
const roleRef = (0,
|
19988
|
-
const [selectedBulkRole, setBulkRole] = (0,
|
19989
|
-
const [selectedRole, setRole] = (0,
|
19990
|
-
const [bulkRoleDialog, setBulkRoleDialog] = (0,
|
19991
|
-
const [roleDialog, setRoleDialog] = (0,
|
19992
|
-
const [errorMessage, setErrorMessage] = (0,
|
19993
|
-
const [isSubmiting, setIsSubmiting] = (0,
|
19994
|
-
const changeBulkRole = (0,
|
19794
|
+
const hmsActions = (0, import_react_sdk84.useHMSActions)();
|
19795
|
+
const ref = (0, import_react136.useRef)(null);
|
19796
|
+
const roleRef = (0, import_react136.useRef)(null);
|
19797
|
+
const [selectedBulkRole, setBulkRole] = (0, import_react136.useState)([]);
|
19798
|
+
const [selectedRole, setRole] = (0, import_react136.useState)("");
|
19799
|
+
const [bulkRoleDialog, setBulkRoleDialog] = (0, import_react136.useState)(false);
|
19800
|
+
const [roleDialog, setRoleDialog] = (0, import_react136.useState)(false);
|
19801
|
+
const [errorMessage, setErrorMessage] = (0, import_react136.useState)("");
|
19802
|
+
const [isSubmiting, setIsSubmiting] = (0, import_react136.useState)(false);
|
19803
|
+
const changeBulkRole = (0, import_react136.useCallback)(() => __async(void 0, null, function* () {
|
19995
19804
|
if (selectedBulkRole.length > 0 && selectedRole) {
|
19996
19805
|
try {
|
19997
19806
|
setIsSubmiting(true);
|
@@ -20005,7 +19814,7 @@ var init_BulkRoleChangeModal = __esm({
|
|
20005
19814
|
}
|
20006
19815
|
}
|
20007
19816
|
}), [selectedBulkRole, selectedRole, hmsActions, onOpenChange]);
|
20008
|
-
return /* @__PURE__ */
|
19817
|
+
return /* @__PURE__ */ import_react136.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react136.default.createElement(DialogContent, { title: "Bulk Role Change", Icon: import_react_icons59.ChangeRoleIcon }, /* @__PURE__ */ import_react136.default.createElement(DialogRow, null, /* @__PURE__ */ import_react136.default.createElement(Text, null, "For Roles: "), /* @__PURE__ */ import_react136.default.createElement(
|
20009
19818
|
Dropdown.Root,
|
20010
19819
|
{
|
20011
19820
|
open: bulkRoleDialog,
|
@@ -20016,7 +19825,7 @@ var init_BulkRoleChangeModal = __esm({
|
|
20016
19825
|
},
|
20017
19826
|
modal: false
|
20018
19827
|
},
|
20019
|
-
/* @__PURE__ */
|
19828
|
+
/* @__PURE__ */ import_react136.default.createElement(
|
20020
19829
|
DialogDropdownTrigger,
|
20021
19830
|
{
|
20022
19831
|
ref,
|
@@ -20028,7 +19837,7 @@ var init_BulkRoleChangeModal = __esm({
|
|
20028
19837
|
open: bulkRoleDialog
|
20029
19838
|
}
|
20030
19839
|
),
|
20031
|
-
/* @__PURE__ */
|
19840
|
+
/* @__PURE__ */ import_react136.default.createElement(
|
20032
19841
|
Dropdown.Content,
|
20033
19842
|
{
|
20034
19843
|
css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
|
@@ -20039,7 +19848,7 @@ var init_BulkRoleChangeModal = __esm({
|
|
20039
19848
|
}
|
20040
19849
|
},
|
20041
19850
|
roles && roles.map((role) => {
|
20042
|
-
return /* @__PURE__ */
|
19851
|
+
return /* @__PURE__ */ import_react136.default.createElement(
|
20043
19852
|
Dropdown.CheckboxItem,
|
20044
19853
|
{
|
20045
19854
|
key: role,
|
@@ -20051,12 +19860,12 @@ var init_BulkRoleChangeModal = __esm({
|
|
20051
19860
|
setErrorMessage("");
|
20052
19861
|
}
|
20053
19862
|
},
|
20054
|
-
/* @__PURE__ */
|
19863
|
+
/* @__PURE__ */ import_react136.default.createElement(Checkbox.Root, { css: { margin: "$2" }, checked: selectedBulkRole.includes(role) }, /* @__PURE__ */ import_react136.default.createElement(Checkbox.Indicator, null, /* @__PURE__ */ import_react136.default.createElement(import_react_icons59.CheckIcon, { width: 16, height: 16 }))),
|
20055
19864
|
role
|
20056
19865
|
);
|
20057
19866
|
})
|
20058
19867
|
)
|
20059
|
-
)), /* @__PURE__ */
|
19868
|
+
)), /* @__PURE__ */ import_react136.default.createElement(DialogRow, null, /* @__PURE__ */ import_react136.default.createElement(Text, null, "To Role: "), /* @__PURE__ */ import_react136.default.createElement(Dropdown.Root, { open: roleDialog, onOpenChange: (value) => setRoleDialog(value) }, /* @__PURE__ */ import_react136.default.createElement(
|
20060
19869
|
DialogDropdownTrigger,
|
20061
19870
|
{
|
20062
19871
|
ref: roleRef,
|
@@ -20067,8 +19876,8 @@ var init_BulkRoleChangeModal = __esm({
|
|
20067
19876
|
},
|
20068
19877
|
open: roleDialog
|
20069
19878
|
}
|
20070
|
-
), /* @__PURE__ */
|
20071
|
-
return /* @__PURE__ */
|
19879
|
+
), /* @__PURE__ */ import_react136.default.createElement(Dropdown.Content, { css: { w: (_b7 = roleRef.current) == null ? void 0 : _b7.clientWidth, zIndex: 1e3 } }, roles && roles.map((role) => {
|
19880
|
+
return /* @__PURE__ */ import_react136.default.createElement(
|
20072
19881
|
Dropdown.Item,
|
20073
19882
|
{
|
20074
19883
|
key: role,
|
@@ -20079,27 +19888,27 @@ var init_BulkRoleChangeModal = __esm({
|
|
20079
19888
|
},
|
20080
19889
|
role
|
20081
19890
|
);
|
20082
|
-
})))), /* @__PURE__ */
|
19891
|
+
})))), /* @__PURE__ */ import_react136.default.createElement(DialogRow, null, errorMessage && /* @__PURE__ */ import_react136.default.createElement(Flex, { gap: 2, css: { c: "$alert_error_default", w: "70%", ml: "auto" } }, /* @__PURE__ */ import_react136.default.createElement(import_react_icons59.AlertTriangleIcon, null), /* @__PURE__ */ import_react136.default.createElement(Text, { css: { c: "inherit" } }, errorMessage))), /* @__PURE__ */ import_react136.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react136.default.createElement(Button, { variant: "primary", onClick: changeBulkRole, disabled: !(selectedRole && selectedBulkRole.length > 0) }, isSubmiting && /* @__PURE__ */ import_react136.default.createElement(Loading, { css: { color: "$on_primary_medium" } }), "Apply"))));
|
20083
19892
|
};
|
20084
19893
|
}
|
20085
19894
|
});
|
20086
19895
|
|
20087
19896
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx
|
20088
|
-
var
|
19897
|
+
var import_react137, import_react_sdk85, ChangeNameModal;
|
20089
19898
|
var init_ChangeNameModal = __esm({
|
20090
19899
|
"src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx"() {
|
20091
19900
|
"use strict";
|
20092
19901
|
init_define_process_env();
|
20093
|
-
|
20094
|
-
|
19902
|
+
import_react137 = __toESM(require("react"));
|
19903
|
+
import_react_sdk85 = require("@100mslive/react-sdk");
|
20095
19904
|
init_src();
|
20096
19905
|
init_ToastManager();
|
20097
19906
|
init_useUserPreferences();
|
20098
19907
|
ChangeNameModal = ({ onOpenChange }) => {
|
20099
19908
|
const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
|
20100
|
-
const hmsActions = (0,
|
20101
|
-
const localPeerName = (0,
|
20102
|
-
const [currentName, setCurrentName] = (0,
|
19909
|
+
const hmsActions = (0, import_react_sdk85.useHMSActions)();
|
19910
|
+
const localPeerName = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectLocalPeerName);
|
19911
|
+
const [currentName, setCurrentName] = (0, import_react137.useState)(localPeerName);
|
20103
19912
|
const changeName = () => __async(void 0, null, function* () {
|
20104
19913
|
const name = currentName.trim();
|
20105
19914
|
if (!name || name === localPeerName) {
|
@@ -20117,7 +19926,7 @@ var init_ChangeNameModal = __esm({
|
|
20117
19926
|
onOpenChange(false);
|
20118
19927
|
}
|
20119
19928
|
});
|
20120
|
-
return /* @__PURE__ */
|
19929
|
+
return /* @__PURE__ */ import_react137.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react137.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react137.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react137.default.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ import_react137.default.createElement(Dialog.Title, { css: { p: "0 $4" } }, /* @__PURE__ */ import_react137.default.createElement(Text, { variant: "h6" }, " Change Name")), /* @__PURE__ */ import_react137.default.createElement(
|
20121
19930
|
"form",
|
20122
19931
|
{
|
20123
19932
|
onSubmit: (e) => __async(void 0, null, function* () {
|
@@ -20125,7 +19934,7 @@ var init_ChangeNameModal = __esm({
|
|
20125
19934
|
yield changeName();
|
20126
19935
|
})
|
20127
19936
|
},
|
20128
|
-
/* @__PURE__ */
|
19937
|
+
/* @__PURE__ */ import_react137.default.createElement(Flex, { justify: "center", align: "center", css: { my: "$8", w: "100%" } }, /* @__PURE__ */ import_react137.default.createElement(
|
20129
19938
|
Input,
|
20130
19939
|
{
|
20131
19940
|
css: { width: "100%" },
|
@@ -20138,7 +19947,7 @@ var init_ChangeNameModal = __esm({
|
|
20138
19947
|
"data-testid": "change_name_field"
|
20139
19948
|
}
|
20140
19949
|
)),
|
20141
|
-
/* @__PURE__ */
|
19950
|
+
/* @__PURE__ */ import_react137.default.createElement(
|
20142
19951
|
Flex,
|
20143
19952
|
{
|
20144
19953
|
justify: "between",
|
@@ -20149,8 +19958,8 @@ var init_ChangeNameModal = __esm({
|
|
20149
19958
|
mt: "$10"
|
20150
19959
|
}
|
20151
19960
|
},
|
20152
|
-
/* @__PURE__ */
|
20153
|
-
/* @__PURE__ */
|
19961
|
+
/* @__PURE__ */ import_react137.default.createElement(Box, { css: { w: "50%" } }, /* @__PURE__ */ import_react137.default.createElement(Dialog.Close, { css: { w: "100%" } }, /* @__PURE__ */ import_react137.default.createElement(Button, { variant: "standard", css: { w: "100%" }, outlined: true, type: "submit", disabled: !localPeerName }, "Cancel"))),
|
19962
|
+
/* @__PURE__ */ import_react137.default.createElement(Box, { css: { w: "50%" } }, /* @__PURE__ */ import_react137.default.createElement(
|
20154
19963
|
Button,
|
20155
19964
|
{
|
20156
19965
|
variant: "primary",
|
@@ -20168,15 +19977,15 @@ var init_ChangeNameModal = __esm({
|
|
20168
19977
|
});
|
20169
19978
|
|
20170
19979
|
// src/Prebuilt/components/MoreSettings/ChangeSelfRole.jsx
|
20171
|
-
var
|
19980
|
+
var import_react138, import_react_use23, import_react_sdk86, import_react_icons60, ChangeSelfRole;
|
20172
19981
|
var init_ChangeSelfRole = __esm({
|
20173
19982
|
"src/Prebuilt/components/MoreSettings/ChangeSelfRole.jsx"() {
|
20174
19983
|
"use strict";
|
20175
19984
|
init_define_process_env();
|
20176
|
-
|
19985
|
+
import_react138 = __toESM(require("react"));
|
20177
19986
|
import_react_use23 = require("react-use");
|
20178
|
-
|
20179
|
-
|
19987
|
+
import_react_sdk86 = require("@100mslive/react-sdk");
|
19988
|
+
import_react_icons60 = require("@100mslive/react-icons");
|
20180
19989
|
init_src();
|
20181
19990
|
init_ToastManager();
|
20182
19991
|
init_useAppLayout();
|
@@ -20184,17 +19993,17 @@ var init_ChangeSelfRole = __esm({
|
|
20184
19993
|
init_utils2();
|
20185
19994
|
ChangeSelfRole = ({ onClick }) => {
|
20186
19995
|
const roles = useFilteredRoles();
|
20187
|
-
const permissions = (0,
|
20188
|
-
const localPeerId = (0,
|
20189
|
-
const localPeerRole = (0,
|
20190
|
-
const hmsActions = (0,
|
19996
|
+
const permissions = (0, import_react_sdk86.useHMSStore)(import_react_sdk86.selectPermissions);
|
19997
|
+
const localPeerId = (0, import_react_sdk86.useHMSStore)(import_react_sdk86.selectLocalPeerID);
|
19998
|
+
const localPeerRole = (0, import_react_sdk86.useHMSStore)(import_react_sdk86.selectLocalPeerRoleName);
|
19999
|
+
const hmsActions = (0, import_react_sdk86.useHMSActions)();
|
20191
20000
|
const hideTriggerItem = (0, import_react_use23.useMedia)(config.media.sm);
|
20192
20001
|
const selfRoleChangeTo = useAppLayout("selfRoleChangeTo");
|
20193
|
-
const availableSelfChangeRoles = (0,
|
20002
|
+
const availableSelfChangeRoles = (0, import_react138.useMemo)(() => arrayIntersection(selfRoleChangeTo, roles), [roles, selfRoleChangeTo]);
|
20194
20003
|
if (!permissions.changeRole) {
|
20195
20004
|
return null;
|
20196
20005
|
}
|
20197
|
-
return hideTriggerItem ? /* @__PURE__ */
|
20006
|
+
return hideTriggerItem ? /* @__PURE__ */ import_react138.default.createElement(Dropdown.Item, { onClick }, /* @__PURE__ */ import_react138.default.createElement(import_react_icons60.PersonIcon, null), /* @__PURE__ */ import_react138.default.createElement(Text, { variant: "sm", css: { mx: "$4" } }, "Change My Role")) : /* @__PURE__ */ import_react138.default.createElement(Dropdown.SubMenu, null, /* @__PURE__ */ import_react138.default.createElement(Dropdown.TriggerItem, { "data-testid": "change_my_role_btn" }, /* @__PURE__ */ import_react138.default.createElement(import_react_icons60.PersonIcon, null), /* @__PURE__ */ import_react138.default.createElement(Text, { variant: "sm", css: { flex: "1 1 0", mx: "$4" } }, "Change My Role"), /* @__PURE__ */ import_react138.default.createElement(import_react_icons60.ArrowRightIcon, null)), /* @__PURE__ */ import_react138.default.createElement(Dropdown.SubMenuContent, { sideOffset: 8, alignOffset: -5, css: { py: "$0", "@md": { w: "$64" } } }, availableSelfChangeRoles.map((role) => /* @__PURE__ */ import_react138.default.createElement(
|
20198
20007
|
Dropdown.Item,
|
20199
20008
|
{
|
20200
20009
|
key: role,
|
@@ -20208,8 +20017,8 @@ var init_ChangeSelfRole = __esm({
|
|
20208
20017
|
}),
|
20209
20018
|
"data-testid": "change_to_role_" + role
|
20210
20019
|
},
|
20211
|
-
/* @__PURE__ */
|
20212
|
-
localPeerRole === role && /* @__PURE__ */
|
20020
|
+
/* @__PURE__ */ import_react138.default.createElement(Text, { variant: "sm" }, role),
|
20021
|
+
localPeerRole === role && /* @__PURE__ */ import_react138.default.createElement(import_react_icons60.CheckIcon, { width: 16, height: 16 })
|
20213
20022
|
))));
|
20214
20023
|
};
|
20215
20024
|
}
|
@@ -20218,10 +20027,10 @@ var init_ChangeSelfRole = __esm({
|
|
20218
20027
|
// src/Prebuilt/components/MoreSettings/EmbedUrl.jsx
|
20219
20028
|
function EmbedUrlModal({ onOpenChange }) {
|
20220
20029
|
const [embedConfig, setEmbedConfig] = useSetAppDataByKey(APP_DATA.embedConfig);
|
20221
|
-
const [url, setUrl] = (0,
|
20030
|
+
const [url, setUrl] = (0, import_react139.useState)((embedConfig == null ? void 0 : embedConfig.url) || "");
|
20222
20031
|
const isAnythingEmbedded = !!(embedConfig == null ? void 0 : embedConfig.url);
|
20223
20032
|
const isModifying = isAnythingEmbedded && url && url !== embedConfig.url;
|
20224
|
-
return /* @__PURE__ */
|
20033
|
+
return /* @__PURE__ */ import_react139.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react139.default.createElement(DialogContent, { title: "Embed URL", Icon: import_react_icons61.ViewIcon }, /* @__PURE__ */ import_react139.default.createElement(DialogInput, { title: "URL", value: url, onChange: setUrl, placeholder: "https://www.tldraw.com/", type: "url" }), /* @__PURE__ */ import_react139.default.createElement(DialogRow, null, /* @__PURE__ */ import_react139.default.createElement(Text, null, "Embed a url and share with everyone in the room. Ensure that you're sharing the current tab when the prompt opens. Note that not all websites support being embedded.")), /* @__PURE__ */ import_react139.default.createElement(DialogRow, { justify: "end" }, isAnythingEmbedded ? /* @__PURE__ */ import_react139.default.createElement(import_react139.default.Fragment, null, /* @__PURE__ */ import_react139.default.createElement(
|
20225
20034
|
Button,
|
20226
20035
|
{
|
20227
20036
|
variant: "primary",
|
@@ -20235,7 +20044,7 @@ function EmbedUrlModal({ onOpenChange }) {
|
|
20235
20044
|
css: { mr: "$4" }
|
20236
20045
|
},
|
20237
20046
|
"Update Embed"
|
20238
|
-
), /* @__PURE__ */
|
20047
|
+
), /* @__PURE__ */ import_react139.default.createElement(
|
20239
20048
|
Button,
|
20240
20049
|
{
|
20241
20050
|
variant: "danger",
|
@@ -20247,7 +20056,7 @@ function EmbedUrlModal({ onOpenChange }) {
|
|
20247
20056
|
"data-testid": "embed_url_btn"
|
20248
20057
|
},
|
20249
20058
|
"Stop Embed"
|
20250
|
-
)) : /* @__PURE__ */
|
20059
|
+
)) : /* @__PURE__ */ import_react139.default.createElement(import_react139.default.Fragment, null, /* @__PURE__ */ import_react139.default.createElement(
|
20251
20060
|
Button,
|
20252
20061
|
{
|
20253
20062
|
variant: "primary",
|
@@ -20261,7 +20070,7 @@ function EmbedUrlModal({ onOpenChange }) {
|
|
20261
20070
|
css: { mr: "$4" }
|
20262
20071
|
},
|
20263
20072
|
"Just Embed"
|
20264
|
-
), /* @__PURE__ */
|
20073
|
+
), /* @__PURE__ */ import_react139.default.createElement(
|
20265
20074
|
Button,
|
20266
20075
|
{
|
20267
20076
|
variant: "primary",
|
@@ -20276,13 +20085,13 @@ function EmbedUrlModal({ onOpenChange }) {
|
|
20276
20085
|
"Embed and Share"
|
20277
20086
|
)))));
|
20278
20087
|
}
|
20279
|
-
var
|
20088
|
+
var import_react139, import_react_icons61, EmbedUrl;
|
20280
20089
|
var init_EmbedUrl = __esm({
|
20281
20090
|
"src/Prebuilt/components/MoreSettings/EmbedUrl.jsx"() {
|
20282
20091
|
"use strict";
|
20283
20092
|
init_define_process_env();
|
20284
|
-
|
20285
|
-
|
20093
|
+
import_react139 = __toESM(require("react"));
|
20094
|
+
import_react_icons61 = require("@100mslive/react-icons");
|
20286
20095
|
init_src();
|
20287
20096
|
init_DialogContent2();
|
20288
20097
|
init_useUISettings();
|
@@ -20291,7 +20100,7 @@ var init_EmbedUrl = __esm({
|
|
20291
20100
|
if (!window.CropTarget) {
|
20292
20101
|
return null;
|
20293
20102
|
}
|
20294
|
-
return /* @__PURE__ */
|
20103
|
+
return /* @__PURE__ */ import_react139.default.createElement(
|
20295
20104
|
Dropdown.Item,
|
20296
20105
|
{
|
20297
20106
|
onClick: () => {
|
@@ -20299,25 +20108,25 @@ var init_EmbedUrl = __esm({
|
|
20299
20108
|
},
|
20300
20109
|
"data-testid": "embed_url_btn"
|
20301
20110
|
},
|
20302
|
-
/* @__PURE__ */
|
20303
|
-
/* @__PURE__ */
|
20111
|
+
/* @__PURE__ */ import_react139.default.createElement(import_react_icons61.ViewIcon, null),
|
20112
|
+
/* @__PURE__ */ import_react139.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Embed URL")
|
20304
20113
|
);
|
20305
20114
|
};
|
20306
20115
|
}
|
20307
20116
|
});
|
20308
20117
|
|
20309
20118
|
// src/Prebuilt/components/hooks/useFullscreen.js
|
20310
|
-
var
|
20119
|
+
var import_react140, import_screenfull4, useFullscreen4;
|
20311
20120
|
var init_useFullscreen = __esm({
|
20312
20121
|
"src/Prebuilt/components/hooks/useFullscreen.js"() {
|
20313
20122
|
"use strict";
|
20314
20123
|
init_define_process_env();
|
20315
|
-
|
20124
|
+
import_react140 = require("react");
|
20316
20125
|
import_screenfull4 = __toESM(require("screenfull"));
|
20317
20126
|
init_ToastManager();
|
20318
20127
|
useFullscreen4 = () => {
|
20319
|
-
const [isFullScreenEnabled, setIsFullScreenEnabled] = (0,
|
20320
|
-
const toggle = (0,
|
20128
|
+
const [isFullScreenEnabled, setIsFullScreenEnabled] = (0, import_react140.useState)(import_screenfull4.default.isFullscreen);
|
20129
|
+
const toggle = (0, import_react140.useCallback)(() => __async(void 0, null, function* () {
|
20321
20130
|
if (!import_screenfull4.default.isEnabled) {
|
20322
20131
|
ToastManager.addToast({ title: "Fullscreen feature not supported" });
|
20323
20132
|
return;
|
@@ -20332,7 +20141,7 @@ var init_useFullscreen = __esm({
|
|
20332
20141
|
ToastManager.addToast({ title: err.message });
|
20333
20142
|
}
|
20334
20143
|
}), [isFullScreenEnabled]);
|
20335
|
-
(0,
|
20144
|
+
(0, import_react140.useEffect)(() => {
|
20336
20145
|
const onChange = () => {
|
20337
20146
|
setIsFullScreenEnabled(import_screenfull4.default.isFullscreen);
|
20338
20147
|
};
|
@@ -20355,13 +20164,13 @@ var init_useFullscreen = __esm({
|
|
20355
20164
|
});
|
20356
20165
|
|
20357
20166
|
// src/Prebuilt/components/MoreSettings/FullScreenItem.jsx
|
20358
|
-
var
|
20167
|
+
var import_react141, import_react_icons62, FullScreenItem;
|
20359
20168
|
var init_FullScreenItem = __esm({
|
20360
20169
|
"src/Prebuilt/components/MoreSettings/FullScreenItem.jsx"() {
|
20361
20170
|
"use strict";
|
20362
20171
|
init_define_process_env();
|
20363
|
-
|
20364
|
-
|
20172
|
+
import_react141 = __toESM(require("react"));
|
20173
|
+
import_react_icons62 = require("@100mslive/react-icons");
|
20365
20174
|
init_src();
|
20366
20175
|
init_useFeatures();
|
20367
20176
|
init_useFullscreen();
|
@@ -20372,7 +20181,7 @@ var init_FullScreenItem = __esm({
|
|
20372
20181
|
if (!isFullscreenEnabled || !allowed) {
|
20373
20182
|
return null;
|
20374
20183
|
}
|
20375
|
-
return /* @__PURE__ */
|
20184
|
+
return /* @__PURE__ */ import_react141.default.createElement(
|
20376
20185
|
Dropdown.Item,
|
20377
20186
|
{
|
20378
20187
|
onClick: () => {
|
@@ -20380,22 +20189,22 @@ var init_FullScreenItem = __esm({
|
|
20380
20189
|
},
|
20381
20190
|
"data-testid": "full_screen_btn"
|
20382
20191
|
},
|
20383
|
-
/* @__PURE__ */
|
20384
|
-
/* @__PURE__ */
|
20192
|
+
/* @__PURE__ */ import_react141.default.createElement(import_react_icons62.ExpandIcon, null),
|
20193
|
+
/* @__PURE__ */ import_react141.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, isFullscreen ? "Exit " : "Go ", "Fullscreen")
|
20385
20194
|
);
|
20386
20195
|
};
|
20387
20196
|
}
|
20388
20197
|
});
|
20389
20198
|
|
20390
20199
|
// src/Prebuilt/components/MoreSettings/MuteAllModal.jsx
|
20391
|
-
var
|
20200
|
+
var import_react142, import_react_sdk87, import_react_icons63, trackSourceOptions, trackTypeOptions, MuteAllModal;
|
20392
20201
|
var init_MuteAllModal = __esm({
|
20393
20202
|
"src/Prebuilt/components/MoreSettings/MuteAllModal.jsx"() {
|
20394
20203
|
"use strict";
|
20395
20204
|
init_define_process_env();
|
20396
|
-
|
20397
|
-
|
20398
|
-
|
20205
|
+
import_react142 = __toESM(require("react"));
|
20206
|
+
import_react_sdk87 = require("@100mslive/react-sdk");
|
20207
|
+
import_react_icons63 = require("@100mslive/react-icons");
|
20399
20208
|
init_src();
|
20400
20209
|
init_DialogContent2();
|
20401
20210
|
init_hooks();
|
@@ -20413,12 +20222,12 @@ var init_MuteAllModal = __esm({
|
|
20413
20222
|
];
|
20414
20223
|
MuteAllModal = ({ onOpenChange }) => {
|
20415
20224
|
const roles = useFilteredRoles();
|
20416
|
-
const hmsActions = (0,
|
20417
|
-
const [enabled, setEnabled] = (0,
|
20418
|
-
const [trackType, setTrackType] = (0,
|
20419
|
-
const [selectedRole, setRole] = (0,
|
20420
|
-
const [selectedSource, setSource] = (0,
|
20421
|
-
const muteAll = (0,
|
20225
|
+
const hmsActions = (0, import_react_sdk87.useHMSActions)();
|
20226
|
+
const [enabled, setEnabled] = (0, import_react142.useState)(false);
|
20227
|
+
const [trackType, setTrackType] = (0, import_react142.useState)();
|
20228
|
+
const [selectedRole, setRole] = (0, import_react142.useState)();
|
20229
|
+
const [selectedSource, setSource] = (0, import_react142.useState)();
|
20230
|
+
const muteAll = (0, import_react142.useCallback)(() => __async(void 0, null, function* () {
|
20422
20231
|
yield hmsActions.setRemoteTracksEnabled({
|
20423
20232
|
enabled,
|
20424
20233
|
type: trackType,
|
@@ -20427,7 +20236,7 @@ var init_MuteAllModal = __esm({
|
|
20427
20236
|
});
|
20428
20237
|
onOpenChange(false);
|
20429
20238
|
}), [selectedRole, enabled, trackType, selectedSource, hmsActions, onOpenChange]);
|
20430
|
-
return /* @__PURE__ */
|
20239
|
+
return /* @__PURE__ */ import_react142.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react142.default.createElement(DialogContent, { title: "Mute/Unmute Remote Tracks", Icon: import_react_icons63.MicOffIcon }, /* @__PURE__ */ import_react142.default.createElement(
|
20431
20240
|
DialogSelect,
|
20432
20241
|
{
|
20433
20242
|
title: "Role",
|
@@ -20437,7 +20246,7 @@ var init_MuteAllModal = __esm({
|
|
20437
20246
|
labelField: "label",
|
20438
20247
|
onChange: setRole
|
20439
20248
|
}
|
20440
|
-
), /* @__PURE__ */
|
20249
|
+
), /* @__PURE__ */ import_react142.default.createElement(
|
20441
20250
|
DialogSelect,
|
20442
20251
|
{
|
20443
20252
|
title: "Track type",
|
@@ -20447,7 +20256,7 @@ var init_MuteAllModal = __esm({
|
|
20447
20256
|
keyField: "value",
|
20448
20257
|
labelField: "label"
|
20449
20258
|
}
|
20450
|
-
), /* @__PURE__ */
|
20259
|
+
), /* @__PURE__ */ import_react142.default.createElement(
|
20451
20260
|
DialogSelect,
|
20452
20261
|
{
|
20453
20262
|
title: "Track source",
|
@@ -20457,22 +20266,22 @@ var init_MuteAllModal = __esm({
|
|
20457
20266
|
keyField: "value",
|
20458
20267
|
labelField: "label"
|
20459
20268
|
}
|
20460
|
-
), /* @__PURE__ */
|
20269
|
+
), /* @__PURE__ */ import_react142.default.createElement(DialogRow, null, /* @__PURE__ */ import_react142.default.createElement(Text, { variant: "md" }, "Track status"), /* @__PURE__ */ import_react142.default.createElement(RadioGroup.Root, { value: enabled, onValueChange: setEnabled }, /* @__PURE__ */ import_react142.default.createElement(Flex, { align: "center", css: { mr: "$8" } }, /* @__PURE__ */ import_react142.default.createElement(RadioGroup.Item, { value: false, id: "trackDisableRadio", css: { mr: "$4" } }, /* @__PURE__ */ import_react142.default.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ import_react142.default.createElement(Label3, { htmlFor: "trackDisableRadio" }, "Mute")), /* @__PURE__ */ import_react142.default.createElement(Flex, { align: "center", css: { cursor: "pointer" } }, /* @__PURE__ */ import_react142.default.createElement(RadioGroup.Item, { value: true, id: "trackEnableRadio", css: { mr: "$4" } }, /* @__PURE__ */ import_react142.default.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ import_react142.default.createElement(Label3, { htmlFor: "trackEnableRadio" }, "Request Unmute")))), /* @__PURE__ */ import_react142.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react142.default.createElement(Button, { variant: "primary", onClick: muteAll }, "Apply"))));
|
20461
20270
|
};
|
20462
20271
|
}
|
20463
20272
|
});
|
20464
20273
|
|
20465
20274
|
// src/Prebuilt/components/MoreSettings/MoreSettings.jsx
|
20466
|
-
var
|
20275
|
+
var import_react143, import_react_use24, import_hls, import_react_sdk88, import_react_icons64, isMobileOS, MODALS, MoreSettings;
|
20467
20276
|
var init_MoreSettings = __esm({
|
20468
20277
|
"src/Prebuilt/components/MoreSettings/MoreSettings.jsx"() {
|
20469
20278
|
"use strict";
|
20470
20279
|
init_define_process_env();
|
20471
|
-
|
20280
|
+
import_react143 = __toESM(require("react"));
|
20472
20281
|
import_react_use24 = require("react-use");
|
20473
20282
|
import_hls = __toESM(require("hls.js"));
|
20474
|
-
|
20475
|
-
|
20283
|
+
import_react_sdk88 = require("@100mslive/react-sdk");
|
20284
|
+
import_react_icons64 = require("@100mslive/react-icons");
|
20476
20285
|
init_src();
|
20477
20286
|
init_IconButton3();
|
20478
20287
|
init_RoleChangeModal();
|
@@ -20502,18 +20311,18 @@ var init_MoreSettings = __esm({
|
|
20502
20311
|
EMBED_URL: "embedUrl"
|
20503
20312
|
};
|
20504
20313
|
MoreSettings = () => {
|
20505
|
-
const permissions = (0,
|
20506
|
-
const isAllowedToPublish = (0,
|
20507
|
-
const localPeerId = (0,
|
20508
|
-
const localPeerRole = (0,
|
20509
|
-
const hmsActions = (0,
|
20510
|
-
const enablHlsStats = (0,
|
20314
|
+
const permissions = (0, import_react_sdk88.useHMSStore)(import_react_sdk88.selectPermissions);
|
20315
|
+
const isAllowedToPublish = (0, import_react_sdk88.useHMSStore)(import_react_sdk88.selectIsAllowedToPublish);
|
20316
|
+
const localPeerId = (0, import_react_sdk88.useHMSStore)(import_react_sdk88.selectLocalPeerID);
|
20317
|
+
const localPeerRole = (0, import_react_sdk88.useHMSStore)(import_react_sdk88.selectLocalPeerRoleName);
|
20318
|
+
const hmsActions = (0, import_react_sdk88.useHMSActions)();
|
20319
|
+
const enablHlsStats = (0, import_react_sdk88.useHMSStore)((0, import_react_sdk88.selectAppData)(APP_DATA.hlsStats));
|
20511
20320
|
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
20512
|
-
const { isBrowserRecordingOn } = (0,
|
20321
|
+
const { isBrowserRecordingOn } = (0, import_react_sdk88.useRecordingStreaming)();
|
20513
20322
|
const isChangeNameEnabled = useIsFeatureEnabled(FEATURE_LIST.CHANGE_NAME);
|
20514
20323
|
const isEmbedEnabled = useIsFeatureEnabled(FEATURE_LIST.EMBED_URL);
|
20515
20324
|
const isSFNEnabled = useIsFeatureEnabled(FEATURE_LIST.STARTS_FOR_NERDS);
|
20516
|
-
const [openModals, setOpenModals] = (0,
|
20325
|
+
const [openModals, setOpenModals] = (0, import_react143.useState)(/* @__PURE__ */ new Set());
|
20517
20326
|
useDropdownList({ open: openModals.size > 0, name: "MoreSettings" });
|
20518
20327
|
const updateState = (modalName, value) => {
|
20519
20328
|
setOpenModals((modals) => {
|
@@ -20526,14 +20335,14 @@ var init_MoreSettings = __esm({
|
|
20526
20335
|
return copy;
|
20527
20336
|
});
|
20528
20337
|
};
|
20529
|
-
return /* @__PURE__ */
|
20338
|
+
return /* @__PURE__ */ import_react143.default.createElement(import_react143.Fragment, null, /* @__PURE__ */ import_react143.default.createElement(
|
20530
20339
|
Dropdown.Root,
|
20531
20340
|
{
|
20532
20341
|
open: openModals.has(MODALS.MORE_SETTINGS),
|
20533
20342
|
onOpenChange: (value) => updateState(MODALS.MORE_SETTINGS, value)
|
20534
20343
|
},
|
20535
|
-
/* @__PURE__ */
|
20536
|
-
/* @__PURE__ */
|
20344
|
+
/* @__PURE__ */ import_react143.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ import_react143.default.createElement(IconButton_default, null, /* @__PURE__ */ import_react143.default.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ import_react143.default.createElement(Box, null, /* @__PURE__ */ import_react143.default.createElement(import_react_icons64.VerticalMenuIcon, null))))),
|
20345
|
+
/* @__PURE__ */ import_react143.default.createElement(
|
20537
20346
|
Dropdown.Content,
|
20538
20347
|
{
|
20539
20348
|
sideOffset: 5,
|
@@ -20547,50 +20356,50 @@ var init_MoreSettings = __esm({
|
|
20547
20356
|
}
|
20548
20357
|
}
|
20549
20358
|
},
|
20550
|
-
isMobile && (permissions == null ? void 0 : permissions.browserRecording) ? /* @__PURE__ */
|
20551
|
-
isChangeNameEnabled && /* @__PURE__ */
|
20552
|
-
/* @__PURE__ */
|
20553
|
-
(permissions == null ? void 0 : permissions.changeRole) && /* @__PURE__ */
|
20359
|
+
isMobile && (permissions == null ? void 0 : permissions.browserRecording) ? /* @__PURE__ */ import_react143.default.createElement(import_react143.default.Fragment, null, /* @__PURE__ */ import_react143.default.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.START_RECORDING, true) }, /* @__PURE__ */ import_react143.default.createElement(import_react_icons64.RecordIcon, null), /* @__PURE__ */ import_react143.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, isBrowserRecordingOn ? "Stop" : "Start", " Recording")), /* @__PURE__ */ import_react143.default.createElement(Dropdown.ItemSeparator, null)) : null,
|
20360
|
+
isChangeNameEnabled && /* @__PURE__ */ import_react143.default.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.CHANGE_NAME, true), "data-testid": "change_name_btn" }, /* @__PURE__ */ import_react143.default.createElement(import_react_icons64.PencilIcon, null), /* @__PURE__ */ import_react143.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Change Name")),
|
20361
|
+
/* @__PURE__ */ import_react143.default.createElement(ChangeSelfRole, { onClick: () => updateState(MODALS.SELF_ROLE_CHANGE, true) }),
|
20362
|
+
(permissions == null ? void 0 : permissions.changeRole) && /* @__PURE__ */ import_react143.default.createElement(
|
20554
20363
|
Dropdown.Item,
|
20555
20364
|
{
|
20556
20365
|
onClick: () => updateState(MODALS.BULK_ROLE_CHANGE, true),
|
20557
20366
|
"data-testid": "bulk_role_change_btn"
|
20558
20367
|
},
|
20559
|
-
/* @__PURE__ */
|
20560
|
-
/* @__PURE__ */
|
20368
|
+
/* @__PURE__ */ import_react143.default.createElement(import_react_icons64.ChangeRoleIcon, null),
|
20369
|
+
/* @__PURE__ */ import_react143.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Bulk Role Change")
|
20561
20370
|
),
|
20562
|
-
/* @__PURE__ */
|
20563
|
-
isAllowedToPublish.screen && isEmbedEnabled && /* @__PURE__ */
|
20564
|
-
permissions.mute && /* @__PURE__ */
|
20565
|
-
/* @__PURE__ */
|
20566
|
-
/* @__PURE__ */
|
20567
|
-
FeatureFlags.enableStatsForNerds && isSFNEnabled && (localPeerRole === "hls-viewer" ? import_hls.default.isSupported() ? /* @__PURE__ */
|
20371
|
+
/* @__PURE__ */ import_react143.default.createElement(FullScreenItem, null),
|
20372
|
+
isAllowedToPublish.screen && isEmbedEnabled && /* @__PURE__ */ import_react143.default.createElement(EmbedUrl, { setShowOpenUrl: () => updateState(MODALS.EMBED_URL, true) }),
|
20373
|
+
permissions.mute && /* @__PURE__ */ import_react143.default.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.MUTE_ALL, true), "data-testid": "mute_all_btn" }, /* @__PURE__ */ import_react143.default.createElement(import_react_icons64.MicOffIcon, null), /* @__PURE__ */ import_react143.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Mute All")),
|
20374
|
+
/* @__PURE__ */ import_react143.default.createElement(Dropdown.ItemSeparator, null),
|
20375
|
+
/* @__PURE__ */ import_react143.default.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.DEVICE_SETTINGS, true), "data-testid": "device_settings_btn" }, /* @__PURE__ */ import_react143.default.createElement(import_react_icons64.SettingsIcon, null), /* @__PURE__ */ import_react143.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Settings")),
|
20376
|
+
FeatureFlags.enableStatsForNerds && isSFNEnabled && (localPeerRole === "hls-viewer" ? import_hls.default.isSupported() ? /* @__PURE__ */ import_react143.default.createElement(
|
20568
20377
|
Dropdown.Item,
|
20569
20378
|
{
|
20570
20379
|
onClick: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats),
|
20571
20380
|
"data-testid": "hls_stats"
|
20572
20381
|
},
|
20573
|
-
/* @__PURE__ */
|
20382
|
+
/* @__PURE__ */ import_react143.default.createElement(
|
20574
20383
|
Checkbox.Root,
|
20575
20384
|
{
|
20576
20385
|
css: { margin: "$2" },
|
20577
20386
|
checked: enablHlsStats,
|
20578
20387
|
onCheckedChange: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats)
|
20579
20388
|
},
|
20580
|
-
/* @__PURE__ */
|
20389
|
+
/* @__PURE__ */ import_react143.default.createElement(Checkbox.Indicator, null, /* @__PURE__ */ import_react143.default.createElement(import_react_icons64.CheckIcon, { width: 16, height: 16 }))
|
20581
20390
|
),
|
20582
|
-
/* @__PURE__ */
|
20583
|
-
) : null : /* @__PURE__ */
|
20391
|
+
/* @__PURE__ */ import_react143.default.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react143.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), !isMobileOS ? /* @__PURE__ */ import_react143.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`) : null)
|
20392
|
+
) : null : /* @__PURE__ */ import_react143.default.createElement(
|
20584
20393
|
Dropdown.Item,
|
20585
20394
|
{
|
20586
20395
|
onClick: () => updateState(MODALS.STATS_FOR_NERDS, true),
|
20587
20396
|
"data-testid": "stats_for_nreds_btn"
|
20588
20397
|
},
|
20589
|
-
/* @__PURE__ */
|
20590
|
-
/* @__PURE__ */
|
20398
|
+
/* @__PURE__ */ import_react143.default.createElement(import_react_icons64.InfoIcon, null),
|
20399
|
+
/* @__PURE__ */ import_react143.default.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Stats for Nerds")
|
20591
20400
|
))
|
20592
20401
|
)
|
20593
|
-
), openModals.has(MODALS.BULK_ROLE_CHANGE) && /* @__PURE__ */
|
20402
|
+
), openModals.has(MODALS.BULK_ROLE_CHANGE) && /* @__PURE__ */ import_react143.default.createElement(BulkRoleChangeModal, { onOpenChange: (value) => updateState(MODALS.BULK_ROLE_CHANGE, value) }), openModals.has(MODALS.MUTE_ALL) && /* @__PURE__ */ import_react143.default.createElement(MuteAllModal, { onOpenChange: (value) => updateState(MODALS.MUTE_ALL, value) }), openModals.has(MODALS.CHANGE_NAME) && /* @__PURE__ */ import_react143.default.createElement(ChangeNameModal, { onOpenChange: (value) => updateState(MODALS.CHANGE_NAME, value) }), openModals.has(MODALS.DEVICE_SETTINGS) && /* @__PURE__ */ import_react143.default.createElement(SettingsModal_default, { open: true, onOpenChange: (value) => updateState(MODALS.DEVICE_SETTINGS, value) }), FeatureFlags.enableStatsForNerds && openModals.has(MODALS.STATS_FOR_NERDS) && /* @__PURE__ */ import_react143.default.createElement(StatsForNerds, { open: true, onOpenChange: (value) => updateState(MODALS.STATS_FOR_NERDS, value) }), openModals.has(MODALS.SELF_ROLE_CHANGE) && /* @__PURE__ */ import_react143.default.createElement(RoleChangeModal, { peerId: localPeerId, onOpenChange: (value) => updateState(MODALS.SELF_ROLE_CHANGE, value) }), openModals.has(MODALS.START_RECORDING) && /* @__PURE__ */ import_react143.default.createElement(StartRecording_default, { open: true, onOpenChange: (value) => updateState(MODALS.START_RECORDING, value) }), openModals.has(MODALS.EMBED_URL) && /* @__PURE__ */ import_react143.default.createElement(EmbedUrlModal, { onOpenChange: (value) => updateState(MODALS.EMBED_URL, value) }));
|
20594
20403
|
};
|
20595
20404
|
}
|
20596
20405
|
});
|
@@ -20991,12 +20800,12 @@ var init_PIPManager = __esm({
|
|
20991
20800
|
});
|
20992
20801
|
|
20993
20802
|
// src/Prebuilt/components/PIP/SetupMediaSession.js
|
20994
|
-
var
|
20803
|
+
var import_react_sdk89, SetupMediaSession, MediaSession;
|
20995
20804
|
var init_SetupMediaSession = __esm({
|
20996
20805
|
"src/Prebuilt/components/PIP/SetupMediaSession.js"() {
|
20997
20806
|
"use strict";
|
20998
20807
|
init_define_process_env();
|
20999
|
-
|
20808
|
+
import_react_sdk89 = require("@100mslive/react-sdk");
|
21000
20809
|
SetupMediaSession = class {
|
21001
20810
|
constructor() {
|
21002
20811
|
__publicField(this, "setup", (actions, store) => {
|
@@ -21007,27 +20816,27 @@ var init_SetupMediaSession = __esm({
|
|
21007
20816
|
});
|
21008
20817
|
__publicField(this, "initState", () => {
|
21009
20818
|
var _a7, _b7, _c, _d;
|
21010
|
-
const isMicActive = this.store.getState(
|
21011
|
-
const isCamActive = this.store.getState(
|
20819
|
+
const isMicActive = this.store.getState(import_react_sdk89.selectIsLocalAudioEnabled);
|
20820
|
+
const isCamActive = this.store.getState(import_react_sdk89.selectIsLocalVideoEnabled);
|
21012
20821
|
(_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
|
21013
20822
|
(_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
|
21014
20823
|
this.store.subscribe((isMicActive2) => {
|
21015
20824
|
var _a8, _b8;
|
21016
20825
|
(_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
|
21017
|
-
},
|
20826
|
+
}, import_react_sdk89.selectIsLocalAudioEnabled);
|
21018
20827
|
this.store.subscribe((isCamActive2) => {
|
21019
20828
|
var _a8, _b8;
|
21020
20829
|
(_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
|
21021
|
-
},
|
20830
|
+
}, import_react_sdk89.selectIsLocalVideoEnabled);
|
21022
20831
|
});
|
21023
20832
|
__publicField(this, "toggleMic", () => __async(this, null, function* () {
|
21024
20833
|
console.log("toggle mic clicked in pip");
|
21025
|
-
const current = this.store.getState(
|
20834
|
+
const current = this.store.getState(import_react_sdk89.selectIsLocalAudioEnabled);
|
21026
20835
|
yield this.actions.setLocalAudioEnabled(!current);
|
21027
20836
|
}));
|
21028
20837
|
__publicField(this, "toggleCam", () => __async(this, null, function* () {
|
21029
20838
|
console.log("toggle cam clicked in pip");
|
21030
|
-
const current = this.store.getState(
|
20839
|
+
const current = this.store.getState(import_react_sdk89.selectIsLocalVideoEnabled);
|
21031
20840
|
yield this.actions.setLocalVideoEnabled(!current);
|
21032
20841
|
}));
|
21033
20842
|
__publicField(this, "leave", () => {
|
@@ -21052,14 +20861,14 @@ var init_SetupMediaSession = __esm({
|
|
21052
20861
|
});
|
21053
20862
|
|
21054
20863
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
21055
|
-
var
|
20864
|
+
var import_react144, import_react_sdk90, import_react_icons65, PIPComponent, ActivatedPIP, PIPComponent_default;
|
21056
20865
|
var init_PIPComponent = __esm({
|
21057
20866
|
"src/Prebuilt/components/PIP/PIPComponent.jsx"() {
|
21058
20867
|
"use strict";
|
21059
20868
|
init_define_process_env();
|
21060
|
-
|
21061
|
-
|
21062
|
-
|
20869
|
+
import_react144 = __toESM(require("react"));
|
20870
|
+
import_react_sdk90 = require("@100mslive/react-sdk");
|
20871
|
+
import_react_icons65 = require("@100mslive/react-icons");
|
21063
20872
|
init_src();
|
21064
20873
|
init_IconButton3();
|
21065
20874
|
init_PIPManager();
|
@@ -21067,12 +20876,12 @@ var init_PIPComponent = __esm({
|
|
21067
20876
|
init_useFeatures();
|
21068
20877
|
init_constants();
|
21069
20878
|
PIPComponent = ({ peers, showLocalPeer }) => {
|
21070
|
-
const localPeerRole = (0,
|
21071
|
-
const [isPipOn, setIsPipOn] = (0,
|
21072
|
-
const hmsActions = (0,
|
21073
|
-
const store = (0,
|
20879
|
+
const localPeerRole = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeerRoleName);
|
20880
|
+
const [isPipOn, setIsPipOn] = (0, import_react144.useState)(PictureInPicture.isOn());
|
20881
|
+
const hmsActions = (0, import_react_sdk90.useHMSActions)();
|
20882
|
+
const store = (0, import_react_sdk90.useHMSVanillaStore)();
|
21074
20883
|
const isFeatureEnabled = useIsFeatureEnabled(FEATURE_LIST.PICTURE_IN_PICTURE);
|
21075
|
-
const onPipToggle = (0,
|
20884
|
+
const onPipToggle = (0, import_react144.useCallback)(() => {
|
21076
20885
|
if (!isPipOn) {
|
21077
20886
|
PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
|
21078
20887
|
MediaSession.setup(hmsActions, store);
|
@@ -21080,7 +20889,7 @@ var init_PIPComponent = __esm({
|
|
21080
20889
|
PictureInPicture.stop().catch((err) => console.error("error in stopping pip", err));
|
21081
20890
|
}
|
21082
20891
|
}, [hmsActions, isPipOn, store]);
|
21083
|
-
(0,
|
20892
|
+
(0, import_react144.useEffect)(() => {
|
21084
20893
|
return () => {
|
21085
20894
|
PictureInPicture.stop().catch((err) => console.error("error in stopping pip on unmount", err));
|
21086
20895
|
};
|
@@ -21088,12 +20897,12 @@ var init_PIPComponent = __esm({
|
|
21088
20897
|
if (!PictureInPicture.isSupported() || localPeerRole === DEFAULT_HLS_VIEWER_ROLE || !isFeatureEnabled) {
|
21089
20898
|
return null;
|
21090
20899
|
}
|
21091
|
-
return /* @__PURE__ */
|
20900
|
+
return /* @__PURE__ */ import_react144.default.createElement(import_react144.default.Fragment, null, /* @__PURE__ */ import_react144.default.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ import_react144.default.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ import_react144.default.createElement(import_react_icons65.PipIcon, null))), isPipOn && /* @__PURE__ */ import_react144.default.createElement(ActivatedPIP, { showLocalPeer, peers }));
|
21092
20901
|
};
|
21093
20902
|
ActivatedPIP = ({ showLocalPeer, peers }) => {
|
21094
|
-
const tracksMap = (0,
|
21095
|
-
const storePeers = (0,
|
21096
|
-
(0,
|
20903
|
+
const tracksMap = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectTracksMap);
|
20904
|
+
const storePeers = (0, import_react_sdk90.useHMSStore)(showLocalPeer ? import_react_sdk90.selectPeers : import_react_sdk90.selectRemotePeers);
|
20905
|
+
(0, import_react144.useEffect)(() => {
|
21097
20906
|
let pipPeers = storePeers;
|
21098
20907
|
if (peers) {
|
21099
20908
|
pipPeers = storePeers.filter((peer) => peers.includes(peer.id));
|
@@ -21109,17 +20918,17 @@ var init_PIPComponent = __esm({
|
|
21109
20918
|
});
|
21110
20919
|
|
21111
20920
|
// src/Prebuilt/components/PIP/index.jsx
|
21112
|
-
var
|
20921
|
+
var import_react145, PIP;
|
21113
20922
|
var init_PIP = __esm({
|
21114
20923
|
"src/Prebuilt/components/PIP/index.jsx"() {
|
21115
20924
|
"use strict";
|
21116
20925
|
init_define_process_env();
|
21117
|
-
|
20926
|
+
import_react145 = __toESM(require("react"));
|
21118
20927
|
init_PIPComponent();
|
21119
20928
|
init_useUISettings();
|
21120
20929
|
PIP = () => {
|
21121
20930
|
const pinnedTrack = usePinnedTrack();
|
21122
|
-
return /* @__PURE__ */
|
20931
|
+
return /* @__PURE__ */ import_react145.default.createElement(PIPComponent_default, { peers: pinnedTrack && pinnedTrack.enabled ? [pinnedTrack.peerId] : void 0, showLocalPeer: true });
|
21123
20932
|
};
|
21124
20933
|
}
|
21125
20934
|
});
|
@@ -21158,17 +20967,17 @@ var init_ShareMenuIcon = __esm({
|
|
21158
20967
|
});
|
21159
20968
|
|
21160
20969
|
// src/Prebuilt/components/pdfAnnotator/pdfErrorView.jsx
|
21161
|
-
var
|
20970
|
+
var import_react146, import_react_icons66, PdfErrorView;
|
21162
20971
|
var init_pdfErrorView = __esm({
|
21163
20972
|
"src/Prebuilt/components/pdfAnnotator/pdfErrorView.jsx"() {
|
21164
20973
|
"use strict";
|
21165
20974
|
init_define_process_env();
|
21166
|
-
|
21167
|
-
|
20975
|
+
import_react146 = __toESM(require("react"));
|
20976
|
+
import_react_icons66 = require("@100mslive/react-icons");
|
21168
20977
|
init_src();
|
21169
20978
|
init_DialogContent2();
|
21170
20979
|
PdfErrorView = ({ isPDFUrlValid }) => {
|
21171
|
-
return !isPDFUrlValid && /* @__PURE__ */
|
20980
|
+
return !isPDFUrlValid && /* @__PURE__ */ import_react146.default.createElement(
|
21172
20981
|
DialogRow,
|
21173
20982
|
{
|
21174
20983
|
css: {
|
@@ -21177,8 +20986,8 @@ var init_pdfErrorView = __esm({
|
|
21177
20986
|
justifyContent: "start"
|
21178
20987
|
}
|
21179
20988
|
},
|
21180
|
-
/* @__PURE__ */
|
21181
|
-
/* @__PURE__ */
|
20989
|
+
/* @__PURE__ */ import_react146.default.createElement(import_react_icons66.InfoIcon, { width: "12px", height: "12px" }),
|
20990
|
+
/* @__PURE__ */ import_react146.default.createElement(
|
21182
20991
|
Text,
|
21183
20992
|
{
|
21184
20993
|
variant: "caption",
|
@@ -21195,16 +21004,16 @@ var init_pdfErrorView = __esm({
|
|
21195
21004
|
});
|
21196
21005
|
|
21197
21006
|
// src/Prebuilt/components/pdfAnnotator/pdfHeader.jsx
|
21198
|
-
var
|
21007
|
+
var import_react147, PDFHeader;
|
21199
21008
|
var init_pdfHeader = __esm({
|
21200
21009
|
"src/Prebuilt/components/pdfAnnotator/pdfHeader.jsx"() {
|
21201
21010
|
"use strict";
|
21202
21011
|
init_define_process_env();
|
21203
|
-
|
21012
|
+
import_react147 = __toESM(require("react"));
|
21204
21013
|
init_src();
|
21205
21014
|
init_DialogContent2();
|
21206
21015
|
PDFHeader = () => {
|
21207
|
-
return /* @__PURE__ */
|
21016
|
+
return /* @__PURE__ */ import_react147.default.createElement(
|
21208
21017
|
DialogCol,
|
21209
21018
|
{
|
21210
21019
|
align: "start",
|
@@ -21213,8 +21022,8 @@ var init_pdfHeader = __esm({
|
|
21213
21022
|
mb: "$6"
|
21214
21023
|
}
|
21215
21024
|
},
|
21216
|
-
/* @__PURE__ */
|
21217
|
-
/* @__PURE__ */
|
21025
|
+
/* @__PURE__ */ import_react147.default.createElement(Dialog.Title, { asChild: true }, /* @__PURE__ */ import_react147.default.createElement(Text, { as: "h6", variant: "h6" }, "Share PDF")),
|
21026
|
+
/* @__PURE__ */ import_react147.default.createElement(Dialog.Description, { asChild: true }, /* @__PURE__ */ import_react147.default.createElement(
|
21218
21027
|
Text,
|
21219
21028
|
{
|
21220
21029
|
variant: "sm",
|
@@ -21230,17 +21039,17 @@ var init_pdfHeader = __esm({
|
|
21230
21039
|
});
|
21231
21040
|
|
21232
21041
|
// src/Prebuilt/components/pdfAnnotator/pdfInfo.jsx
|
21233
|
-
var
|
21042
|
+
var import_react148, import_react_icons67, PDFInfo;
|
21234
21043
|
var init_pdfInfo = __esm({
|
21235
21044
|
"src/Prebuilt/components/pdfAnnotator/pdfInfo.jsx"() {
|
21236
21045
|
"use strict";
|
21237
21046
|
init_define_process_env();
|
21238
|
-
|
21239
|
-
|
21047
|
+
import_react148 = __toESM(require("react"));
|
21048
|
+
import_react_icons67 = require("@100mslive/react-icons");
|
21240
21049
|
init_src();
|
21241
21050
|
init_DialogContent2();
|
21242
21051
|
PDFInfo = () => {
|
21243
|
-
return /* @__PURE__ */
|
21052
|
+
return /* @__PURE__ */ import_react148.default.createElement(
|
21244
21053
|
DialogRow,
|
21245
21054
|
{
|
21246
21055
|
css: {
|
@@ -21253,8 +21062,8 @@ var init_pdfInfo = __esm({
|
|
21253
21062
|
minHeight: "$11"
|
21254
21063
|
}
|
21255
21064
|
},
|
21256
|
-
/* @__PURE__ */
|
21257
|
-
|
21065
|
+
/* @__PURE__ */ import_react148.default.createElement(
|
21066
|
+
import_react_icons67.InfoIcon,
|
21258
21067
|
{
|
21259
21068
|
width: "64px",
|
21260
21069
|
height: "64px",
|
@@ -21263,19 +21072,19 @@ var init_pdfInfo = __esm({
|
|
21263
21072
|
}
|
21264
21073
|
}
|
21265
21074
|
),
|
21266
|
-
/* @__PURE__ */
|
21075
|
+
/* @__PURE__ */ import_react148.default.createElement(Text, { variant: "caption" }, "On the next screen, ensure you select \u201CThis Tab\u201D and click on share. Only the PDF viewer will be seen by other participants")
|
21267
21076
|
);
|
21268
21077
|
};
|
21269
21078
|
}
|
21270
21079
|
});
|
21271
21080
|
|
21272
21081
|
// src/Prebuilt/components/pdfAnnotator/submitPdf.jsx
|
21273
|
-
var
|
21082
|
+
var import_react149, SubmitPDF;
|
21274
21083
|
var init_submitPdf = __esm({
|
21275
21084
|
"src/Prebuilt/components/pdfAnnotator/submitPdf.jsx"() {
|
21276
21085
|
"use strict";
|
21277
21086
|
init_define_process_env();
|
21278
|
-
|
21087
|
+
import_react149 = __toESM(require("react"));
|
21279
21088
|
init_src();
|
21280
21089
|
init_useUISettings();
|
21281
21090
|
init_constants();
|
@@ -21288,7 +21097,7 @@ var init_submitPdf = __esm({
|
|
21288
21097
|
onOpenChange
|
21289
21098
|
}) => {
|
21290
21099
|
const [, setPDFConfig] = useSetAppDataByKey(APP_DATA.pdfConfig);
|
21291
|
-
const isValidPDF = (0,
|
21100
|
+
const isValidPDF = (0, import_react149.useCallback)(
|
21292
21101
|
(pdfURL2) => {
|
21293
21102
|
const extension = pdfURL2.split(".").pop().toLowerCase();
|
21294
21103
|
setIsValidateProgress(true);
|
@@ -21315,7 +21124,7 @@ var init_submitPdf = __esm({
|
|
21315
21124
|
},
|
21316
21125
|
[onOpenChange, pdfFile, setIsPDFUrlValid, setIsValidateProgress, setPDFConfig]
|
21317
21126
|
);
|
21318
|
-
return /* @__PURE__ */
|
21127
|
+
return /* @__PURE__ */ import_react149.default.createElement(
|
21319
21128
|
Flex,
|
21320
21129
|
{
|
21321
21130
|
direction: "row",
|
@@ -21325,7 +21134,7 @@ var init_submitPdf = __esm({
|
|
21325
21134
|
gap: "$8"
|
21326
21135
|
}
|
21327
21136
|
},
|
21328
|
-
/* @__PURE__ */
|
21137
|
+
/* @__PURE__ */ import_react149.default.createElement(
|
21329
21138
|
Button,
|
21330
21139
|
{
|
21331
21140
|
variant: "standard",
|
@@ -21338,7 +21147,7 @@ var init_submitPdf = __esm({
|
|
21338
21147
|
},
|
21339
21148
|
"Cancel"
|
21340
21149
|
),
|
21341
|
-
/* @__PURE__ */
|
21150
|
+
/* @__PURE__ */ import_react149.default.createElement(
|
21342
21151
|
Button,
|
21343
21152
|
{
|
21344
21153
|
variant: "primary",
|
@@ -21366,13 +21175,13 @@ var init_submitPdf = __esm({
|
|
21366
21175
|
});
|
21367
21176
|
|
21368
21177
|
// src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx
|
21369
|
-
var
|
21178
|
+
var import_react150, import_react_icons68, UploadedFile;
|
21370
21179
|
var init_uploadedFile = __esm({
|
21371
21180
|
"src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx"() {
|
21372
21181
|
"use strict";
|
21373
21182
|
init_define_process_env();
|
21374
|
-
|
21375
|
-
|
21183
|
+
import_react150 = __toESM(require("react"));
|
21184
|
+
import_react_icons68 = require("@100mslive/react-icons");
|
21376
21185
|
init_src();
|
21377
21186
|
init_DialogContent2();
|
21378
21187
|
init_pdfHeader();
|
@@ -21388,7 +21197,7 @@ var init_uploadedFile = __esm({
|
|
21388
21197
|
onOpenChange
|
21389
21198
|
}) => {
|
21390
21199
|
const [fileName, ext] = pdfFile.name.split(".");
|
21391
|
-
return /* @__PURE__ */
|
21200
|
+
return /* @__PURE__ */ import_react150.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react150.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react150.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react150.default.createElement(
|
21392
21201
|
Dialog.Content,
|
21393
21202
|
{
|
21394
21203
|
css: {
|
@@ -21397,7 +21206,7 @@ var init_uploadedFile = __esm({
|
|
21397
21206
|
p: "$10"
|
21398
21207
|
}
|
21399
21208
|
},
|
21400
|
-
/* @__PURE__ */
|
21209
|
+
/* @__PURE__ */ import_react150.default.createElement(Flex, { direction: "column" }, /* @__PURE__ */ import_react150.default.createElement(PDFHeader, null), /* @__PURE__ */ import_react150.default.createElement(
|
21401
21210
|
DialogRow,
|
21402
21211
|
{
|
21403
21212
|
css: {
|
@@ -21419,7 +21228,7 @@ var init_uploadedFile = __esm({
|
|
21419
21228
|
mt: "$6"
|
21420
21229
|
}
|
21421
21230
|
},
|
21422
|
-
/* @__PURE__ */
|
21231
|
+
/* @__PURE__ */ import_react150.default.createElement(Flex, { direction: "row", css: { flexGrow: "1", maxWidth: "88%" } }, /* @__PURE__ */ import_react150.default.createElement(
|
21423
21232
|
Text,
|
21424
21233
|
{
|
21425
21234
|
css: {
|
@@ -21429,9 +21238,9 @@ var init_uploadedFile = __esm({
|
|
21429
21238
|
}
|
21430
21239
|
},
|
21431
21240
|
fileName
|
21432
|
-
), /* @__PURE__ */
|
21433
|
-
/* @__PURE__ */
|
21434
|
-
|
21241
|
+
), /* @__PURE__ */ import_react150.default.createElement(Text, { css: { whiteSpace: "nowrap" } }, ".", ext)),
|
21242
|
+
/* @__PURE__ */ import_react150.default.createElement(
|
21243
|
+
import_react_icons68.TrashIcon,
|
21435
21244
|
{
|
21436
21245
|
onClick: () => setPDFFile(null),
|
21437
21246
|
style: {
|
@@ -21439,7 +21248,7 @@ var init_uploadedFile = __esm({
|
|
21439
21248
|
}
|
21440
21249
|
}
|
21441
21250
|
)
|
21442
|
-
), /* @__PURE__ */
|
21251
|
+
), /* @__PURE__ */ import_react150.default.createElement(PDFInfo, null), /* @__PURE__ */ import_react150.default.createElement(
|
21443
21252
|
SubmitPDF,
|
21444
21253
|
{
|
21445
21254
|
pdfFile,
|
@@ -21457,11 +21266,11 @@ var init_uploadedFile = __esm({
|
|
21457
21266
|
|
21458
21267
|
// src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx
|
21459
21268
|
function PDFFileOptions({ onOpenChange }) {
|
21460
|
-
const [isPDFUrlValid, setIsPDFUrlValid] = (0,
|
21461
|
-
const [isValidateProgress, setIsValidateProgress] = (0,
|
21462
|
-
const [pdfFile, setPDFFile] = (0,
|
21463
|
-
const [pdfURL, setPDFURL] = (0,
|
21464
|
-
return !pdfFile ? /* @__PURE__ */
|
21269
|
+
const [isPDFUrlValid, setIsPDFUrlValid] = (0, import_react151.useState)(true);
|
21270
|
+
const [isValidateProgress, setIsValidateProgress] = (0, import_react151.useState)(false);
|
21271
|
+
const [pdfFile, setPDFFile] = (0, import_react151.useState)(null);
|
21272
|
+
const [pdfURL, setPDFURL] = (0, import_react151.useState)("");
|
21273
|
+
return !pdfFile ? /* @__PURE__ */ import_react151.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ import_react151.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react151.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react151.default.createElement(
|
21465
21274
|
Dialog.Content,
|
21466
21275
|
{
|
21467
21276
|
css: {
|
@@ -21470,7 +21279,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21470
21279
|
p: "$10"
|
21471
21280
|
}
|
21472
21281
|
},
|
21473
|
-
/* @__PURE__ */
|
21282
|
+
/* @__PURE__ */ import_react151.default.createElement(Flex, { direction: "column" }, /* @__PURE__ */ import_react151.default.createElement(PDFHeader, null), /* @__PURE__ */ import_react151.default.createElement(
|
21474
21283
|
DialogInputFile,
|
21475
21284
|
{
|
21476
21285
|
onChange: (target) => {
|
@@ -21480,14 +21289,14 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21480
21289
|
type: "file",
|
21481
21290
|
accept: ".pdf"
|
21482
21291
|
}
|
21483
|
-
), /* @__PURE__ */
|
21292
|
+
), /* @__PURE__ */ import_react151.default.createElement(
|
21484
21293
|
DialogRow,
|
21485
21294
|
{
|
21486
21295
|
css: {
|
21487
21296
|
m: "$10 0"
|
21488
21297
|
}
|
21489
21298
|
},
|
21490
|
-
/* @__PURE__ */
|
21299
|
+
/* @__PURE__ */ import_react151.default.createElement(
|
21491
21300
|
HorizontalDivider,
|
21492
21301
|
{
|
21493
21302
|
css: {
|
@@ -21495,7 +21304,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21495
21304
|
}
|
21496
21305
|
}
|
21497
21306
|
),
|
21498
|
-
/* @__PURE__ */
|
21307
|
+
/* @__PURE__ */ import_react151.default.createElement(
|
21499
21308
|
Text,
|
21500
21309
|
{
|
21501
21310
|
variant: "tiny",
|
@@ -21505,7 +21314,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21505
21314
|
},
|
21506
21315
|
"OR"
|
21507
21316
|
),
|
21508
|
-
/* @__PURE__ */
|
21317
|
+
/* @__PURE__ */ import_react151.default.createElement(
|
21509
21318
|
HorizontalDivider,
|
21510
21319
|
{
|
21511
21320
|
css: {
|
@@ -21513,7 +21322,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21513
21322
|
}
|
21514
21323
|
}
|
21515
21324
|
)
|
21516
|
-
), /* @__PURE__ */
|
21325
|
+
), /* @__PURE__ */ import_react151.default.createElement(
|
21517
21326
|
Text,
|
21518
21327
|
{
|
21519
21328
|
variant: "sm",
|
@@ -21522,7 +21331,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21522
21331
|
}
|
21523
21332
|
},
|
21524
21333
|
"Import from URL"
|
21525
|
-
), /* @__PURE__ */
|
21334
|
+
), /* @__PURE__ */ import_react151.default.createElement(
|
21526
21335
|
Input,
|
21527
21336
|
{
|
21528
21337
|
css: { w: "100%", mb: "$10" },
|
@@ -21538,7 +21347,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21538
21347
|
type: "text",
|
21539
21348
|
error: !isPDFUrlValid
|
21540
21349
|
}
|
21541
|
-
), !isPDFUrlValid && /* @__PURE__ */
|
21350
|
+
), !isPDFUrlValid && /* @__PURE__ */ import_react151.default.createElement(PdfErrorView, { isPDFUrlValid }), /* @__PURE__ */ import_react151.default.createElement(PDFInfo, null), /* @__PURE__ */ import_react151.default.createElement(
|
21542
21351
|
SubmitPDF,
|
21543
21352
|
{
|
21544
21353
|
pdfFile,
|
@@ -21549,7 +21358,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21549
21358
|
onOpenChange
|
21550
21359
|
}
|
21551
21360
|
))
|
21552
|
-
))) : /* @__PURE__ */
|
21361
|
+
))) : /* @__PURE__ */ import_react151.default.createElement(
|
21553
21362
|
UploadedFile,
|
21554
21363
|
{
|
21555
21364
|
pdfFile,
|
@@ -21562,12 +21371,12 @@ function PDFFileOptions({ onOpenChange }) {
|
|
21562
21371
|
}
|
21563
21372
|
);
|
21564
21373
|
}
|
21565
|
-
var
|
21374
|
+
var import_react151;
|
21566
21375
|
var init_pdfFileOptions = __esm({
|
21567
21376
|
"src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx"() {
|
21568
21377
|
"use strict";
|
21569
21378
|
init_define_process_env();
|
21570
|
-
|
21379
|
+
import_react151 = __toESM(require("react"));
|
21571
21380
|
init_src();
|
21572
21381
|
init_DialogContent2();
|
21573
21382
|
init_pdfErrorView();
|
@@ -21580,8 +21389,8 @@ var init_pdfFileOptions = __esm({
|
|
21580
21389
|
|
21581
21390
|
// src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx
|
21582
21391
|
function ShareScreenOptions() {
|
21583
|
-
const [openModals, setOpenModals] = (0,
|
21584
|
-
const { amIScreenSharing } = (0,
|
21392
|
+
const [openModals, setOpenModals] = (0, import_react152.useState)(/* @__PURE__ */ new Set());
|
21393
|
+
const { amIScreenSharing } = (0, import_react_sdk91.useScreenShare)();
|
21585
21394
|
const updateState = (modalName, value) => {
|
21586
21395
|
setOpenModals((modals) => {
|
21587
21396
|
const copy = new Set(modals);
|
@@ -21593,8 +21402,8 @@ function ShareScreenOptions() {
|
|
21593
21402
|
return copy;
|
21594
21403
|
});
|
21595
21404
|
};
|
21596
|
-
const { toggleScreenShare } = (0,
|
21597
|
-
return /* @__PURE__ */
|
21405
|
+
const { toggleScreenShare } = (0, import_react_sdk91.useScreenShare)();
|
21406
|
+
return /* @__PURE__ */ import_react152.default.createElement(import_react152.Fragment, null, /* @__PURE__ */ import_react152.default.createElement(Dropdown.Root, { open: openModals.has(MODALS2.SHARE), onOpenChange: (value) => updateState(MODALS2.SHARE, value) }, /* @__PURE__ */ import_react152.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "sharing_btn", disabled: amIScreenSharing }, /* @__PURE__ */ import_react152.default.createElement(ShareMenuIcon, { disabled: amIScreenSharing }, /* @__PURE__ */ import_react152.default.createElement(Tooltip, { title: "Share" }, /* @__PURE__ */ import_react152.default.createElement(Box, null, /* @__PURE__ */ import_react152.default.createElement(import_react_icons69.VerticalMenuIcon, null))))), /* @__PURE__ */ import_react152.default.createElement(
|
21598
21407
|
Dropdown.Content,
|
21599
21408
|
{
|
21600
21409
|
sideOffset: 5,
|
@@ -21604,7 +21413,7 @@ function ShareScreenOptions() {
|
|
21604
21413
|
p: 0
|
21605
21414
|
}
|
21606
21415
|
},
|
21607
|
-
/* @__PURE__ */
|
21416
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21608
21417
|
Dropdown.Item,
|
21609
21418
|
{
|
21610
21419
|
css: {
|
@@ -21619,10 +21428,10 @@ function ShareScreenOptions() {
|
|
21619
21428
|
}
|
21620
21429
|
}
|
21621
21430
|
},
|
21622
|
-
/* @__PURE__ */
|
21623
|
-
/* @__PURE__ */
|
21431
|
+
/* @__PURE__ */ import_react152.default.createElement(Text, { variant: "h6" }, "Start Sharing"),
|
21432
|
+
/* @__PURE__ */ import_react152.default.createElement(Text, { variant: "sm" }, "Choose what you want to share")
|
21624
21433
|
),
|
21625
|
-
/* @__PURE__ */
|
21434
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21626
21435
|
Dropdown.Item,
|
21627
21436
|
{
|
21628
21437
|
css: {
|
@@ -21637,7 +21446,7 @@ function ShareScreenOptions() {
|
|
21637
21446
|
}
|
21638
21447
|
}
|
21639
21448
|
},
|
21640
|
-
/* @__PURE__ */
|
21449
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21641
21450
|
Flex,
|
21642
21451
|
{
|
21643
21452
|
direction: "column",
|
@@ -21646,7 +21455,7 @@ function ShareScreenOptions() {
|
|
21646
21455
|
gap: "$6"
|
21647
21456
|
}
|
21648
21457
|
},
|
21649
|
-
/* @__PURE__ */
|
21458
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21650
21459
|
IconButton,
|
21651
21460
|
{
|
21652
21461
|
as: "div",
|
@@ -21661,8 +21470,8 @@ function ShareScreenOptions() {
|
|
21661
21470
|
pb: "0"
|
21662
21471
|
}
|
21663
21472
|
},
|
21664
|
-
/* @__PURE__ */
|
21665
|
-
|
21473
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21474
|
+
import_react_icons69.ScreenShare,
|
21666
21475
|
{
|
21667
21476
|
width: "100%",
|
21668
21477
|
height: "100%",
|
@@ -21673,7 +21482,7 @@ function ShareScreenOptions() {
|
|
21673
21482
|
}
|
21674
21483
|
)
|
21675
21484
|
),
|
21676
|
-
/* @__PURE__ */
|
21485
|
+
/* @__PURE__ */ import_react152.default.createElement(Flex, { direction: "column", align: "center" }, /* @__PURE__ */ import_react152.default.createElement(Text, { variant: "body2" }, "Share Screen"), /* @__PURE__ */ import_react152.default.createElement(
|
21677
21486
|
Text,
|
21678
21487
|
{
|
21679
21488
|
variant: "caption",
|
@@ -21685,7 +21494,7 @@ function ShareScreenOptions() {
|
|
21685
21494
|
"Share your tab, window or your entire screen"
|
21686
21495
|
))
|
21687
21496
|
),
|
21688
|
-
/* @__PURE__ */
|
21497
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21689
21498
|
Flex,
|
21690
21499
|
{
|
21691
21500
|
direction: "column",
|
@@ -21694,7 +21503,7 @@ function ShareScreenOptions() {
|
|
21694
21503
|
gap: "$6"
|
21695
21504
|
}
|
21696
21505
|
},
|
21697
|
-
/* @__PURE__ */
|
21506
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21698
21507
|
IconButton,
|
21699
21508
|
{
|
21700
21509
|
onClick: () => {
|
@@ -21711,8 +21520,8 @@ function ShareScreenOptions() {
|
|
21711
21520
|
pb: "0"
|
21712
21521
|
}
|
21713
21522
|
},
|
21714
|
-
/* @__PURE__ */
|
21715
|
-
|
21523
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21524
|
+
import_react_icons69.PdfShare,
|
21716
21525
|
{
|
21717
21526
|
width: "100%",
|
21718
21527
|
height: "100%",
|
@@ -21722,7 +21531,7 @@ function ShareScreenOptions() {
|
|
21722
21531
|
}
|
21723
21532
|
}
|
21724
21533
|
),
|
21725
|
-
/* @__PURE__ */
|
21534
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21726
21535
|
Flex,
|
21727
21536
|
{
|
21728
21537
|
direction: "row",
|
@@ -21738,8 +21547,8 @@ function ShareScreenOptions() {
|
|
21738
21547
|
gap: "$2"
|
21739
21548
|
}
|
21740
21549
|
},
|
21741
|
-
/* @__PURE__ */
|
21742
|
-
/* @__PURE__ */
|
21550
|
+
/* @__PURE__ */ import_react152.default.createElement(import_react_icons69.StarIcon, { height: 14, width: 14 }),
|
21551
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21743
21552
|
Text,
|
21744
21553
|
{
|
21745
21554
|
variant: "xs",
|
@@ -21753,7 +21562,7 @@ function ShareScreenOptions() {
|
|
21753
21562
|
)
|
21754
21563
|
)
|
21755
21564
|
),
|
21756
|
-
/* @__PURE__ */
|
21565
|
+
/* @__PURE__ */ import_react152.default.createElement(Flex, { direction: "column", align: "center" }, /* @__PURE__ */ import_react152.default.createElement(Text, { variant: "body2" }, "Share PDF"), /* @__PURE__ */ import_react152.default.createElement(
|
21757
21566
|
Text,
|
21758
21567
|
{
|
21759
21568
|
variant: "caption",
|
@@ -21766,7 +21575,7 @@ function ShareScreenOptions() {
|
|
21766
21575
|
))
|
21767
21576
|
)
|
21768
21577
|
),
|
21769
|
-
/* @__PURE__ */
|
21578
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21770
21579
|
Dropdown.Item,
|
21771
21580
|
{
|
21772
21581
|
css: {
|
@@ -21779,7 +21588,7 @@ function ShareScreenOptions() {
|
|
21779
21588
|
}
|
21780
21589
|
}
|
21781
21590
|
},
|
21782
|
-
/* @__PURE__ */
|
21591
|
+
/* @__PURE__ */ import_react152.default.createElement(
|
21783
21592
|
Button,
|
21784
21593
|
{
|
21785
21594
|
variant: "standard",
|
@@ -21796,16 +21605,16 @@ function ShareScreenOptions() {
|
|
21796
21605
|
"Cancel"
|
21797
21606
|
)
|
21798
21607
|
)
|
21799
|
-
)), openModals.has(MODALS2.PDF_SHARE) && /* @__PURE__ */
|
21608
|
+
)), openModals.has(MODALS2.PDF_SHARE) && /* @__PURE__ */ import_react152.default.createElement(PDFFileOptions, { onOpenChange: (value) => updateState(MODALS2.PDF_SHARE, value) }));
|
21800
21609
|
}
|
21801
|
-
var
|
21610
|
+
var import_react152, import_react_sdk91, import_react_icons69, MODALS2;
|
21802
21611
|
var init_shareScreenOptions = __esm({
|
21803
21612
|
"src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx"() {
|
21804
21613
|
"use strict";
|
21805
21614
|
init_define_process_env();
|
21806
|
-
|
21807
|
-
|
21808
|
-
|
21615
|
+
import_react152 = __toESM(require("react"));
|
21616
|
+
import_react_sdk91 = require("@100mslive/react-sdk");
|
21617
|
+
import_react_icons69 = require("@100mslive/react-icons");
|
21809
21618
|
init_src();
|
21810
21619
|
init_ShareMenuIcon();
|
21811
21620
|
init_pdfFileOptions();
|
@@ -21818,14 +21627,14 @@ var init_shareScreenOptions = __esm({
|
|
21818
21627
|
});
|
21819
21628
|
|
21820
21629
|
// src/Prebuilt/components/ScreenShare.jsx
|
21821
|
-
var
|
21630
|
+
var import_react153, import_react_sdk92, import_react_icons70, ScreenshareToggle;
|
21822
21631
|
var init_ScreenShare = __esm({
|
21823
21632
|
"src/Prebuilt/components/ScreenShare.jsx"() {
|
21824
21633
|
"use strict";
|
21825
21634
|
init_define_process_env();
|
21826
|
-
|
21827
|
-
|
21828
|
-
|
21635
|
+
import_react153 = __toESM(require("react"));
|
21636
|
+
import_react_sdk92 = require("@100mslive/react-sdk");
|
21637
|
+
import_react_icons70 = require("@100mslive/react-icons");
|
21829
21638
|
init_shareScreenOptions();
|
21830
21639
|
init_Layout();
|
21831
21640
|
init_Tooltip2();
|
@@ -21834,14 +21643,14 @@ var init_ScreenShare = __esm({
|
|
21834
21643
|
init_utils2();
|
21835
21644
|
init_constants();
|
21836
21645
|
ScreenshareToggle = ({ css: css2 = {} }) => {
|
21837
|
-
const isAllowedToPublish = (0,
|
21646
|
+
const isAllowedToPublish = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectIsAllowedToPublish);
|
21838
21647
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
21839
|
-
const { amIScreenSharing, screenShareVideoTrackId: video, toggleScreenShare } = (0,
|
21648
|
+
const { amIScreenSharing, screenShareVideoTrackId: video, toggleScreenShare } = (0, import_react_sdk92.useScreenShare)();
|
21840
21649
|
const isVideoScreenshare = amIScreenSharing && !!video;
|
21841
21650
|
if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
|
21842
21651
|
return null;
|
21843
21652
|
}
|
21844
|
-
return /* @__PURE__ */
|
21653
|
+
return /* @__PURE__ */ import_react153.default.createElement(import_react153.Fragment, null, /* @__PURE__ */ import_react153.default.createElement(Flex, { direction: "row" }, /* @__PURE__ */ import_react153.default.createElement(
|
21845
21654
|
ScreenShareButton,
|
21846
21655
|
{
|
21847
21656
|
variant: "standard",
|
@@ -21853,33 +21662,33 @@ var init_ScreenShare = __esm({
|
|
21853
21662
|
toggleScreenShare();
|
21854
21663
|
}
|
21855
21664
|
},
|
21856
|
-
/* @__PURE__ */
|
21857
|
-
), /* @__PURE__ */
|
21665
|
+
/* @__PURE__ */ import_react153.default.createElement(Tooltip, { title: `${!isVideoScreenshare ? "Start" : "Stop"} screen sharing` }, /* @__PURE__ */ import_react153.default.createElement(Box, null, /* @__PURE__ */ import_react153.default.createElement(import_react_icons70.ShareScreenIcon, null)))
|
21666
|
+
), /* @__PURE__ */ import_react153.default.createElement(ShareScreenOptions, null)));
|
21858
21667
|
};
|
21859
21668
|
}
|
21860
21669
|
});
|
21861
21670
|
|
21862
21671
|
// src/Prebuilt/components/ScreenshareHintModal.jsx
|
21863
|
-
var
|
21672
|
+
var import_react154, import_react_sdk93, ScreenShareHintModal;
|
21864
21673
|
var init_ScreenshareHintModal = __esm({
|
21865
21674
|
"src/Prebuilt/components/ScreenshareHintModal.jsx"() {
|
21866
21675
|
"use strict";
|
21867
21676
|
init_define_process_env();
|
21868
|
-
|
21869
|
-
|
21677
|
+
import_react154 = __toESM(require("react"));
|
21678
|
+
import_react_sdk93 = require("@100mslive/react-sdk");
|
21870
21679
|
init_Button2();
|
21871
21680
|
init_Modal();
|
21872
21681
|
init_DialogContent2();
|
21873
21682
|
ScreenShareHintModal = ({ onClose }) => {
|
21874
|
-
const hmsActions = (0,
|
21875
|
-
return /* @__PURE__ */
|
21683
|
+
const hmsActions = (0, import_react_sdk93.useHMSActions)();
|
21684
|
+
return /* @__PURE__ */ import_react154.default.createElement(Dialog.Root, { defaultOpen: true, onOpenChange: (value) => !value && onClose() }, /* @__PURE__ */ import_react154.default.createElement(DialogContent, { title: "AudioOnly Screenshare" }, /* @__PURE__ */ import_react154.default.createElement(
|
21876
21685
|
"img",
|
21877
21686
|
{
|
21878
21687
|
src: "https://images.app.100ms.live/share-audio.png",
|
21879
21688
|
alt: "AudioOnly Screenshare instructions",
|
21880
21689
|
width: "100%"
|
21881
21690
|
}
|
21882
|
-
), /* @__PURE__ */
|
21691
|
+
), /* @__PURE__ */ import_react154.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react154.default.createElement(
|
21883
21692
|
Button,
|
21884
21693
|
{
|
21885
21694
|
variant: "primary",
|
@@ -21899,40 +21708,40 @@ var init_ScreenshareHintModal = __esm({
|
|
21899
21708
|
});
|
21900
21709
|
|
21901
21710
|
// src/Prebuilt/components/Footer/ChatToggle.jsx
|
21902
|
-
var
|
21711
|
+
var import_react155, import_react_sdk94, import_react_icons71, ChatToggle;
|
21903
21712
|
var init_ChatToggle = __esm({
|
21904
21713
|
"src/Prebuilt/components/Footer/ChatToggle.jsx"() {
|
21905
21714
|
"use strict";
|
21906
21715
|
init_define_process_env();
|
21907
|
-
|
21908
|
-
|
21909
|
-
|
21716
|
+
import_react155 = __toESM(require("react"));
|
21717
|
+
import_react_sdk94 = require("@100mslive/react-sdk");
|
21718
|
+
import_react_icons71 = require("@100mslive/react-icons");
|
21910
21719
|
init_src();
|
21911
21720
|
init_IconButton3();
|
21912
21721
|
init_useSidepane();
|
21913
21722
|
init_useFeatures();
|
21914
21723
|
init_constants();
|
21915
21724
|
ChatToggle = () => {
|
21916
|
-
const countUnreadMessages = (0,
|
21725
|
+
const countUnreadMessages = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectUnreadHMSMessagesCount);
|
21917
21726
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
21918
21727
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
21919
21728
|
const isFeatureEnabled = useIsFeatureEnabled(FEATURE_LIST.CHAT);
|
21920
21729
|
if (!isFeatureEnabled) {
|
21921
21730
|
return;
|
21922
21731
|
}
|
21923
|
-
return /* @__PURE__ */
|
21732
|
+
return /* @__PURE__ */ import_react155.default.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ import_react155.default.createElement(IconButton_default, { onClick: toggleChat, active: !isChatOpen, "data-testid": "chat_btn" }, countUnreadMessages === 0 ? /* @__PURE__ */ import_react155.default.createElement(import_react_icons71.ChatIcon, null) : /* @__PURE__ */ import_react155.default.createElement(import_react_icons71.ChatUnreadIcon, { "data-testid": "chat_unread_btn" })));
|
21924
21733
|
};
|
21925
21734
|
}
|
21926
21735
|
});
|
21927
21736
|
|
21928
21737
|
// src/Prebuilt/plugins/transcription/Transcriber.js
|
21929
|
-
var import_recordrtc,
|
21738
|
+
var import_recordrtc, import_react_sdk95, Transcriber;
|
21930
21739
|
var init_Transcriber = __esm({
|
21931
21740
|
"src/Prebuilt/plugins/transcription/Transcriber.js"() {
|
21932
21741
|
"use strict";
|
21933
21742
|
init_define_process_env();
|
21934
21743
|
import_recordrtc = __toESM(require("recordrtc"));
|
21935
|
-
|
21744
|
+
import_react_sdk95 = require("@100mslive/react-sdk");
|
21936
21745
|
Transcriber = class {
|
21937
21746
|
constructor({ hmsStore, setTranscriptAndSpeakingPeer, setIsTranscriptionEnabled }) {
|
21938
21747
|
/**
|
@@ -21971,7 +21780,7 @@ var init_Transcriber = __esm({
|
|
21971
21780
|
bufferSize: 256
|
21972
21781
|
};
|
21973
21782
|
this.resetTextTimer = null;
|
21974
|
-
this.localPeerName = hmsStore.getState(
|
21783
|
+
this.localPeerName = hmsStore.getState(import_react_sdk95.selectLocalPeerName);
|
21975
21784
|
this.observingLocalPeerTrack = false;
|
21976
21785
|
this.trackIdBeingObserved = null;
|
21977
21786
|
this.recordRTCInstance = null;
|
@@ -22077,7 +21886,7 @@ var init_Transcriber = __esm({
|
|
22077
21886
|
}
|
22078
21887
|
this.observingLocalPeerTrack = true;
|
22079
21888
|
console.log("transcription - observing local peer track");
|
22080
|
-
let unsub = this.hmsStore.subscribe(this.getAndObserveStream,
|
21889
|
+
let unsub = this.hmsStore.subscribe(this.getAndObserveStream, import_react_sdk95.selectIsLocalAudioEnabled);
|
22081
21890
|
this.unsubscribes.push(unsub);
|
22082
21891
|
this.getAndObserveStream();
|
22083
21892
|
} catch (err) {
|
@@ -22138,28 +21947,28 @@ var init_Transcriber = __esm({
|
|
22138
21947
|
|
22139
21948
|
// src/Prebuilt/plugins/transcription/TranscriptionButton.jsx
|
22140
21949
|
function TranscriptionButton() {
|
22141
|
-
const transcriptionState = (0,
|
22142
|
-
const rawStore = (0,
|
21950
|
+
const transcriptionState = (0, import_react_sdk96.useHMSStore)((0, import_react_sdk96.selectSessionStore)(SESSION_STORE_KEY.TRANSCRIPTION_STATE));
|
21951
|
+
const rawStore = (0, import_react_sdk96.useHMSVanillaStore)();
|
22143
21952
|
const isTranscriptionEnabled = !!(transcriptionState == null ? void 0 : transcriptionState.enabled);
|
22144
21953
|
let transcript = "", speakingPeer = "";
|
22145
21954
|
if (isTranscriptionEnabled) {
|
22146
21955
|
transcript = transcriptionState.transcript || "";
|
22147
21956
|
speakingPeer = transcriptionState.speakingPeer || "";
|
22148
21957
|
}
|
22149
|
-
const transcriber = (0,
|
22150
|
-
const hmsActions = (0,
|
22151
|
-
const isAllowedToPublish = (0,
|
22152
|
-
(0,
|
21958
|
+
const transcriber = (0, import_react156.useRef)(null);
|
21959
|
+
const hmsActions = (0, import_react_sdk96.useHMSActions)();
|
21960
|
+
const isAllowedToPublish = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectIsAllowedToPublish);
|
21961
|
+
(0, import_react156.useEffect)(() => {
|
22153
21962
|
hmsActions.sessionStore.observe(SESSION_STORE_KEY.TRANSCRIPTION_STATE);
|
22154
21963
|
}, [hmsActions]);
|
22155
|
-
(0,
|
21964
|
+
(0, import_react156.useEffect)(() => {
|
22156
21965
|
if (!transcriber.current) {
|
22157
21966
|
transcriber.current = new Transcriber({
|
22158
21967
|
hmsStore: rawStore,
|
22159
21968
|
setTranscriptAndSpeakingPeer: (transcript2, peerName) => __async(this, null, function* () {
|
22160
21969
|
var _a7;
|
22161
21970
|
const transcriptionCurrentEnabledState = !!((_a7 = rawStore.getState(
|
22162
|
-
(0,
|
21971
|
+
(0, import_react_sdk96.selectSessionStore)(SESSION_STORE_KEY.TRANSCRIPTION_STATE)
|
22163
21972
|
)) == null ? void 0 : _a7.enabled);
|
22164
21973
|
yield hmsActions.sessionStore.set(SESSION_STORE_KEY.TRANSCRIPTION_STATE, {
|
22165
21974
|
enabled: transcriptionCurrentEnabledState,
|
@@ -22180,15 +21989,15 @@ function TranscriptionButton() {
|
|
22180
21989
|
}
|
22181
21990
|
};
|
22182
21991
|
}, [hmsActions, rawStore]);
|
22183
|
-
(0,
|
21992
|
+
(0, import_react156.useEffect)(() => {
|
22184
21993
|
if (isTranscriptionEnabled) {
|
22185
21994
|
transcriber.current.enableTranscription(true);
|
22186
21995
|
}
|
22187
21996
|
}, [isTranscriptionEnabled]);
|
22188
|
-
const toggleTranscriptionState = (0,
|
21997
|
+
const toggleTranscriptionState = (0, import_react156.useCallback)(() => {
|
22189
21998
|
transcriber.current.toggleTranscriptionState();
|
22190
21999
|
}, []);
|
22191
|
-
return /* @__PURE__ */
|
22000
|
+
return /* @__PURE__ */ import_react156.default.createElement(import_react156.default.Fragment, null, /* @__PURE__ */ import_react156.default.createElement(
|
22192
22001
|
Box,
|
22193
22002
|
{
|
22194
22003
|
css: {
|
@@ -22205,7 +22014,7 @@ function TranscriptionButton() {
|
|
22205
22014
|
paddingLeft: "40px"
|
22206
22015
|
}
|
22207
22016
|
}
|
22208
|
-
), /* @__PURE__ */
|
22017
|
+
), /* @__PURE__ */ import_react156.default.createElement(
|
22209
22018
|
Box,
|
22210
22019
|
{
|
22211
22020
|
css: {
|
@@ -22221,7 +22030,7 @@ function TranscriptionButton() {
|
|
22221
22030
|
whiteSpace: "pre-line"
|
22222
22031
|
}
|
22223
22032
|
},
|
22224
|
-
/* @__PURE__ */
|
22033
|
+
/* @__PURE__ */ import_react156.default.createElement(
|
22225
22034
|
Text,
|
22226
22035
|
{
|
22227
22036
|
css: {
|
@@ -22231,7 +22040,7 @@ function TranscriptionButton() {
|
|
22231
22040
|
},
|
22232
22041
|
transcript
|
22233
22042
|
),
|
22234
|
-
/* @__PURE__ */
|
22043
|
+
/* @__PURE__ */ import_react156.default.createElement(
|
22235
22044
|
Text,
|
22236
22045
|
{
|
22237
22046
|
css: {
|
@@ -22242,24 +22051,24 @@ function TranscriptionButton() {
|
|
22242
22051
|
},
|
22243
22052
|
speakingPeer
|
22244
22053
|
)
|
22245
|
-
), isAllowedToPublish.audio && /* @__PURE__ */
|
22054
|
+
), isAllowedToPublish.audio && /* @__PURE__ */ import_react156.default.createElement(Tooltip, { title: `Turn ${!isTranscriptionEnabled ? "on" : "off"} transcription` }, /* @__PURE__ */ import_react156.default.createElement(
|
22246
22055
|
IconButton_default,
|
22247
22056
|
{
|
22248
22057
|
active: !isTranscriptionEnabled,
|
22249
22058
|
onClick: toggleTranscriptionState,
|
22250
22059
|
"data-testid": "transcription_btn"
|
22251
22060
|
},
|
22252
|
-
/* @__PURE__ */
|
22061
|
+
/* @__PURE__ */ import_react156.default.createElement(import_react_icons72.ClosedCaptionIcon, null)
|
22253
22062
|
)));
|
22254
22063
|
}
|
22255
|
-
var
|
22064
|
+
var import_react156, import_react_sdk96, import_react_icons72;
|
22256
22065
|
var init_TranscriptionButton = __esm({
|
22257
22066
|
"src/Prebuilt/plugins/transcription/TranscriptionButton.jsx"() {
|
22258
22067
|
"use strict";
|
22259
22068
|
init_define_process_env();
|
22260
|
-
|
22261
|
-
|
22262
|
-
|
22069
|
+
import_react156 = __toESM(require("react"));
|
22070
|
+
import_react_sdk96 = require("@100mslive/react-sdk");
|
22071
|
+
import_react_icons72 = require("@100mslive/react-icons");
|
22263
22072
|
init_Layout();
|
22264
22073
|
init_Text2();
|
22265
22074
|
init_Tooltip2();
|
@@ -22283,16 +22092,15 @@ var init_transcription = __esm({
|
|
22283
22092
|
});
|
22284
22093
|
|
22285
22094
|
// src/Prebuilt/components/Footer/ConferencingFooter.jsx
|
22286
|
-
var
|
22095
|
+
var import_react157, import_react_use25, import_react_sdk97, import_react_icons73, TranscriptionButton2, VirtualBackground3, ScreenshareAudio, ConferencingFooter;
|
22287
22096
|
var init_ConferencingFooter = __esm({
|
22288
22097
|
"src/Prebuilt/components/Footer/ConferencingFooter.jsx"() {
|
22289
22098
|
"use strict";
|
22290
22099
|
init_define_process_env();
|
22291
|
-
|
22100
|
+
import_react157 = __toESM(require("react"));
|
22292
22101
|
import_react_use25 = require("react-use");
|
22293
|
-
|
22294
|
-
|
22295
|
-
init_Playlist();
|
22102
|
+
import_react_sdk97 = require("@100mslive/react-sdk");
|
22103
|
+
import_react_icons73 = require("@100mslive/react-icons");
|
22296
22104
|
init_src();
|
22297
22105
|
init_IconButton3();
|
22298
22106
|
init_AudioVideoToggle();
|
@@ -22308,23 +22116,23 @@ var init_ConferencingFooter = __esm({
|
|
22308
22116
|
init_utils2();
|
22309
22117
|
init_FeatureFlags();
|
22310
22118
|
init_constants();
|
22311
|
-
TranscriptionButton2 =
|
22312
|
-
VirtualBackground3 =
|
22119
|
+
TranscriptionButton2 = import_react157.default.lazy(() => Promise.resolve().then(() => (init_transcription(), transcription_exports)));
|
22120
|
+
VirtualBackground3 = import_react157.default.lazy(() => Promise.resolve().then(() => (init_VirtualBackground(), VirtualBackground_exports)));
|
22313
22121
|
ScreenshareAudio = () => {
|
22314
22122
|
const {
|
22315
22123
|
amIScreenSharing,
|
22316
22124
|
screenShareVideoTrackId: video,
|
22317
22125
|
screenShareAudioTrackId: audio,
|
22318
22126
|
toggleScreenShare
|
22319
|
-
} = (0,
|
22320
|
-
const isAllowedToPublish = (0,
|
22127
|
+
} = (0, import_react_sdk97.useScreenShare)();
|
22128
|
+
const isAllowedToPublish = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectIsAllowedToPublish);
|
22321
22129
|
const isAudioScreenshare = amIScreenSharing && !video && !!audio;
|
22322
|
-
const [showModal, setShowModal] = (0,
|
22130
|
+
const [showModal, setShowModal] = (0, import_react157.useState)(false);
|
22323
22131
|
const isFeatureEnabled = useIsFeatureEnabled(FEATURE_LIST.AUDIO_ONLY_SCREENSHARE);
|
22324
22132
|
if (!isFeatureEnabled || !isAllowedToPublish.screen || !isScreenshareSupported()) {
|
22325
22133
|
return null;
|
22326
22134
|
}
|
22327
|
-
return /* @__PURE__ */
|
22135
|
+
return /* @__PURE__ */ import_react157.default.createElement(import_react157.Fragment, null, /* @__PURE__ */ import_react157.default.createElement(Tooltip, { title: `${!isAudioScreenshare ? "Start" : "Stop"} audio sharing`, key: "shareAudio" }, /* @__PURE__ */ import_react157.default.createElement(
|
22328
22136
|
IconButton_default,
|
22329
22137
|
{
|
22330
22138
|
active: !isAudioScreenshare,
|
@@ -22337,12 +22145,12 @@ var init_ConferencingFooter = __esm({
|
|
22337
22145
|
},
|
22338
22146
|
"data-testid": "screenshare_audio"
|
22339
22147
|
},
|
22340
|
-
/* @__PURE__ */
|
22341
|
-
)), showModal && /* @__PURE__ */
|
22148
|
+
/* @__PURE__ */ import_react157.default.createElement(import_react_icons73.MusicIcon, null)
|
22149
|
+
)), showModal && /* @__PURE__ */ import_react157.default.createElement(ScreenShareHintModal, { onClose: () => setShowModal(false) }));
|
22342
22150
|
};
|
22343
22151
|
ConferencingFooter = () => {
|
22344
22152
|
const isMobile = (0, import_react_use25.useMedia)(config.media.md);
|
22345
|
-
return /* @__PURE__ */
|
22153
|
+
return /* @__PURE__ */ import_react157.default.createElement(Footer.Root, null, /* @__PURE__ */ import_react157.default.createElement(Footer.Left, null, /* @__PURE__ */ import_react157.default.createElement(ScreenshareAudio, null), /* @__PURE__ */ import_react157.default.createElement(import_react157.Suspense, { fallback: "" }, /* @__PURE__ */ import_react157.default.createElement(VirtualBackground3, null)), FeatureFlags.enableTranscription ? /* @__PURE__ */ import_react157.default.createElement(TranscriptionButton2, null) : null, /* @__PURE__ */ import_react157.default.createElement(
|
22346
22154
|
Flex,
|
22347
22155
|
{
|
22348
22156
|
align: "center",
|
@@ -22354,20 +22162,20 @@ var init_ConferencingFooter = __esm({
|
|
22354
22162
|
}
|
22355
22163
|
}
|
22356
22164
|
},
|
22357
|
-
isMobile && /* @__PURE__ */
|
22358
|
-
/* @__PURE__ */
|
22359
|
-
)), /* @__PURE__ */
|
22165
|
+
isMobile && /* @__PURE__ */ import_react157.default.createElement(EmojiReaction, null),
|
22166
|
+
/* @__PURE__ */ import_react157.default.createElement(MetaActions_default, { isMobile: true })
|
22167
|
+
)), /* @__PURE__ */ import_react157.default.createElement(Footer.Center, null, /* @__PURE__ */ import_react157.default.createElement(AudioVideoToggle, null), /* @__PURE__ */ import_react157.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react157.default.createElement(PIP, null), /* @__PURE__ */ import_react157.default.createElement(MoreSettings, null), /* @__PURE__ */ import_react157.default.createElement(Flex, { align: "center", css: { display: "none", "@md": { display: "flex" } } }, /* @__PURE__ */ import_react157.default.createElement(ChatToggle, null)), /* @__PURE__ */ import_react157.default.createElement(LeaveRoom, null)), /* @__PURE__ */ import_react157.default.createElement(Footer.Right, null, !isMobile && /* @__PURE__ */ import_react157.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react157.default.createElement(MetaActions_default, null), /* @__PURE__ */ import_react157.default.createElement(ChatToggle, null)));
|
22360
22168
|
};
|
22361
22169
|
}
|
22362
22170
|
});
|
22363
22171
|
|
22364
22172
|
// src/Prebuilt/components/Footer/StreamingFooter.jsx
|
22365
|
-
var
|
22173
|
+
var import_react158, StreamingFooter;
|
22366
22174
|
var init_StreamingFooter = __esm({
|
22367
22175
|
"src/Prebuilt/components/Footer/StreamingFooter.jsx"() {
|
22368
22176
|
"use strict";
|
22369
22177
|
init_define_process_env();
|
22370
|
-
|
22178
|
+
import_react158 = __toESM(require("react"));
|
22371
22179
|
init_src();
|
22372
22180
|
init_AudioVideoToggle();
|
22373
22181
|
init_EmojiReaction();
|
@@ -22379,7 +22187,7 @@ var init_StreamingFooter = __esm({
|
|
22379
22187
|
init_ScreenShare();
|
22380
22188
|
init_ChatToggle();
|
22381
22189
|
StreamingFooter = () => {
|
22382
|
-
return /* @__PURE__ */
|
22190
|
+
return /* @__PURE__ */ import_react158.default.createElement(
|
22383
22191
|
Footer.Root,
|
22384
22192
|
{
|
22385
22193
|
css: {
|
@@ -22389,7 +22197,7 @@ var init_StreamingFooter = __esm({
|
|
22389
22197
|
}
|
22390
22198
|
}
|
22391
22199
|
},
|
22392
|
-
/* @__PURE__ */
|
22200
|
+
/* @__PURE__ */ import_react158.default.createElement(
|
22393
22201
|
Footer.Left,
|
22394
22202
|
{
|
22395
22203
|
css: {
|
@@ -22399,9 +22207,9 @@ var init_StreamingFooter = __esm({
|
|
22399
22207
|
}
|
22400
22208
|
}
|
22401
22209
|
},
|
22402
|
-
/* @__PURE__ */
|
22210
|
+
/* @__PURE__ */ import_react158.default.createElement(AudioVideoToggle, null)
|
22403
22211
|
),
|
22404
|
-
/* @__PURE__ */
|
22212
|
+
/* @__PURE__ */ import_react158.default.createElement(
|
22405
22213
|
Footer.Center,
|
22406
22214
|
{
|
22407
22215
|
css: {
|
@@ -22410,9 +22218,9 @@ var init_StreamingFooter = __esm({
|
|
22410
22218
|
}
|
22411
22219
|
}
|
22412
22220
|
},
|
22413
|
-
/* @__PURE__ */
|
22414
|
-
/* @__PURE__ */
|
22415
|
-
/* @__PURE__ */
|
22221
|
+
/* @__PURE__ */ import_react158.default.createElement(ScreenshareToggle, { css: { "@sm": { display: "none" } } }),
|
22222
|
+
/* @__PURE__ */ import_react158.default.createElement(Box, { css: { "@md": { display: "none" } } }, /* @__PURE__ */ import_react158.default.createElement(PIP, null)),
|
22223
|
+
/* @__PURE__ */ import_react158.default.createElement(
|
22416
22224
|
Box,
|
22417
22225
|
{
|
22418
22226
|
css: {
|
@@ -22424,53 +22232,53 @@ var init_StreamingFooter = __esm({
|
|
22424
22232
|
}
|
22425
22233
|
}
|
22426
22234
|
},
|
22427
|
-
/* @__PURE__ */
|
22235
|
+
/* @__PURE__ */ import_react158.default.createElement(StreamActions, null)
|
22428
22236
|
),
|
22429
|
-
/* @__PURE__ */
|
22430
|
-
/* @__PURE__ */
|
22431
|
-
/* @__PURE__ */
|
22237
|
+
/* @__PURE__ */ import_react158.default.createElement(MoreSettings, null),
|
22238
|
+
/* @__PURE__ */ import_react158.default.createElement(Box, { css: { "@md": { display: "none" } } }, /* @__PURE__ */ import_react158.default.createElement(LeaveRoom, null)),
|
22239
|
+
/* @__PURE__ */ import_react158.default.createElement(Flex, { align: "center", css: { display: "none", "@md": { display: "flex" } } }, /* @__PURE__ */ import_react158.default.createElement(ChatToggle, null))
|
22432
22240
|
),
|
22433
|
-
/* @__PURE__ */
|
22241
|
+
/* @__PURE__ */ import_react158.default.createElement(Footer.Right, null, /* @__PURE__ */ import_react158.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react158.default.createElement(MetaActions_default, null), /* @__PURE__ */ import_react158.default.createElement(ChatToggle, null))
|
22434
22242
|
);
|
22435
22243
|
};
|
22436
22244
|
}
|
22437
22245
|
});
|
22438
22246
|
|
22439
22247
|
// src/Prebuilt/components/Footer.jsx
|
22440
|
-
var
|
22248
|
+
var import_react159, Footer2;
|
22441
22249
|
var init_Footer3 = __esm({
|
22442
22250
|
"src/Prebuilt/components/Footer.jsx"() {
|
22443
22251
|
"use strict";
|
22444
22252
|
init_define_process_env();
|
22445
|
-
|
22253
|
+
import_react159 = __toESM(require("react"));
|
22446
22254
|
init_ConferencingFooter();
|
22447
22255
|
init_StreamingFooter();
|
22448
22256
|
init_utils2();
|
22449
22257
|
Footer2 = () => {
|
22450
|
-
return isStreamingKit() ? /* @__PURE__ */
|
22258
|
+
return isStreamingKit() ? /* @__PURE__ */ import_react159.default.createElement(StreamingFooter, null) : /* @__PURE__ */ import_react159.default.createElement(ConferencingFooter, null);
|
22451
22259
|
};
|
22452
22260
|
}
|
22453
22261
|
});
|
22454
22262
|
|
22455
22263
|
// src/Prebuilt/components/RoleChangeRequestModal.jsx
|
22456
|
-
var
|
22264
|
+
var import_react160, import_react_sdk98, RoleChangeRequestModal;
|
22457
22265
|
var init_RoleChangeRequestModal = __esm({
|
22458
22266
|
"src/Prebuilt/components/RoleChangeRequestModal.jsx"() {
|
22459
22267
|
"use strict";
|
22460
22268
|
init_define_process_env();
|
22461
|
-
|
22462
|
-
|
22269
|
+
import_react160 = __toESM(require("react"));
|
22270
|
+
import_react_sdk98 = require("@100mslive/react-sdk");
|
22463
22271
|
init_DialogContent2();
|
22464
22272
|
init_useUISettings();
|
22465
22273
|
RoleChangeRequestModal = () => {
|
22466
22274
|
var _a7, _b7;
|
22467
|
-
const hmsActions = (0,
|
22275
|
+
const hmsActions = (0, import_react_sdk98.useHMSActions)();
|
22468
22276
|
const isHeadless = useIsHeadless();
|
22469
|
-
const roleChangeRequest = (0,
|
22277
|
+
const roleChangeRequest = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectRoleChangeRequest);
|
22470
22278
|
if (!(roleChangeRequest == null ? void 0 : roleChangeRequest.role) || isHeadless) {
|
22471
22279
|
return null;
|
22472
22280
|
}
|
22473
|
-
return /* @__PURE__ */
|
22281
|
+
return /* @__PURE__ */ import_react160.default.createElement(
|
22474
22282
|
RequestDialog,
|
22475
22283
|
{
|
22476
22284
|
title: "Role Change Request",
|
@@ -22491,15 +22299,15 @@ var conference_exports = {};
|
|
22491
22299
|
__export(conference_exports, {
|
22492
22300
|
default: () => conference_default
|
22493
22301
|
});
|
22494
|
-
var
|
22302
|
+
var import_react161, import_react_router_dom6, import_react_use26, import_react_sdk99, Conference, conference_default;
|
22495
22303
|
var init_conference = __esm({
|
22496
22304
|
"src/Prebuilt/components/conference.jsx"() {
|
22497
22305
|
"use strict";
|
22498
22306
|
init_define_process_env();
|
22499
|
-
|
22307
|
+
import_react161 = __toESM(require("react"));
|
22500
22308
|
import_react_router_dom6 = require("react-router-dom");
|
22501
22309
|
import_react_use26 = require("react-use");
|
22502
|
-
|
22310
|
+
import_react_sdk99 = require("@100mslive/react-sdk");
|
22503
22311
|
init_HLSFailureModal();
|
22504
22312
|
init_Layout();
|
22505
22313
|
init_AppContext();
|
@@ -22517,18 +22325,18 @@ var init_conference = __esm({
|
|
22517
22325
|
const navigate = useNavigation();
|
22518
22326
|
const { roomId, role } = (0, import_react_router_dom6.useParams)();
|
22519
22327
|
const isHeadless = useIsHeadless();
|
22520
|
-
const roomState = (0,
|
22328
|
+
const roomState = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectRoomState);
|
22521
22329
|
const prevState = (0, import_react_use26.usePrevious)(roomState);
|
22522
|
-
const isConnectedToRoom = (0,
|
22523
|
-
const hmsActions = (0,
|
22524
|
-
const [hideControls, setHideControls] = (0,
|
22525
|
-
const dropdownList = (0,
|
22330
|
+
const isConnectedToRoom = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectIsConnectedToRoom);
|
22331
|
+
const hmsActions = (0, import_react_sdk99.useHMSActions)();
|
22332
|
+
const [hideControls, setHideControls] = (0, import_react161.useState)(false);
|
22333
|
+
const dropdownList = (0, import_react_sdk99.useHMSStore)((0, import_react_sdk99.selectAppData)(APP_DATA.dropdownList));
|
22526
22334
|
const skipPreview = useSkipPreview();
|
22527
22335
|
const { showPreview } = useHMSPrebuiltContext();
|
22528
22336
|
const authTokenInAppData = useAuthToken();
|
22529
|
-
const headerRef = (0,
|
22530
|
-
const footerRef = (0,
|
22531
|
-
const dropdownListRef = (0,
|
22337
|
+
const headerRef = (0, import_react161.useRef)();
|
22338
|
+
const footerRef = (0, import_react161.useRef)();
|
22339
|
+
const dropdownListRef = (0, import_react161.useRef)();
|
22532
22340
|
const performAutoHide = hideControls && (isAndroid || isIOS || isIPadOS);
|
22533
22341
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
22534
22342
|
const toggleControls = () => {
|
@@ -22537,7 +22345,7 @@ var init_conference = __esm({
|
|
22537
22345
|
setHideControls((value) => !value);
|
22538
22346
|
}
|
22539
22347
|
};
|
22540
|
-
(0,
|
22348
|
+
(0, import_react161.useEffect)(() => {
|
22541
22349
|
let timeout = null;
|
22542
22350
|
dropdownListRef.current = dropdownList || [];
|
22543
22351
|
if (dropdownListRef.current.length === 0) {
|
@@ -22552,7 +22360,7 @@ var init_conference = __esm({
|
|
22552
22360
|
clearTimeout(timeout);
|
22553
22361
|
};
|
22554
22362
|
}, [dropdownList, hideControls]);
|
22555
|
-
(0,
|
22363
|
+
(0, import_react161.useEffect)(() => {
|
22556
22364
|
if (!roomId) {
|
22557
22365
|
navigate(`/`);
|
22558
22366
|
return;
|
@@ -22560,15 +22368,15 @@ var init_conference = __esm({
|
|
22560
22368
|
if (!showPreview) {
|
22561
22369
|
return;
|
22562
22370
|
}
|
22563
|
-
if (!prevState && !(roomState ===
|
22371
|
+
if (!prevState && !(roomState === import_react_sdk99.HMSRoomState.Connecting || roomState === import_react_sdk99.HMSRoomState.Reconnecting || isConnectedToRoom)) {
|
22564
22372
|
if (role)
|
22565
22373
|
navigate(`/preview/${roomId || ""}/${role}`);
|
22566
22374
|
else
|
22567
22375
|
navigate(`/preview/${roomId || ""}`);
|
22568
22376
|
}
|
22569
22377
|
}, [isConnectedToRoom, prevState, roomState, navigate, role, roomId, showPreview]);
|
22570
|
-
(0,
|
22571
|
-
if (authTokenInAppData && !isConnectedToRoom && !showPreview && roomState !==
|
22378
|
+
(0, import_react161.useEffect)(() => {
|
22379
|
+
if (authTokenInAppData && !isConnectedToRoom && !showPreview && roomState !== import_react_sdk99.HMSRoomState.Connecting) {
|
22572
22380
|
hmsActions.join({
|
22573
22381
|
userName: "Test",
|
22574
22382
|
authToken: authTokenInAppData,
|
@@ -22581,18 +22389,18 @@ var init_conference = __esm({
|
|
22581
22389
|
}).catch(console.error);
|
22582
22390
|
}
|
22583
22391
|
}, [authTokenInAppData, skipPreview, hmsActions, isConnectedToRoom, showPreview, roomState]);
|
22584
|
-
(0,
|
22392
|
+
(0, import_react161.useEffect)(() => {
|
22585
22393
|
if (isHeadless) {
|
22586
22394
|
hmsActions.ignoreMessageTypes(["chat", EMOJI_REACTION_TYPE]);
|
22587
22395
|
}
|
22588
22396
|
}, [isHeadless, hmsActions]);
|
22589
22397
|
if (!isConnectedToRoom) {
|
22590
|
-
return /* @__PURE__ */
|
22398
|
+
return /* @__PURE__ */ import_react161.default.createElement(FullPageProgress_default, { loadingText: "Joining..." });
|
22591
22399
|
}
|
22592
22400
|
if (isHLSStarted) {
|
22593
|
-
return /* @__PURE__ */
|
22401
|
+
return /* @__PURE__ */ import_react161.default.createElement(FullPageProgress_default, { loadingText: "Starting live stream..." });
|
22594
22402
|
}
|
22595
|
-
return /* @__PURE__ */
|
22403
|
+
return /* @__PURE__ */ import_react161.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !isHeadless && /* @__PURE__ */ import_react161.default.createElement(
|
22596
22404
|
Box,
|
22597
22405
|
{
|
22598
22406
|
ref: headerRef,
|
@@ -22606,8 +22414,8 @@ var init_conference = __esm({
|
|
22606
22414
|
},
|
22607
22415
|
"data-testid": "header"
|
22608
22416
|
},
|
22609
|
-
/* @__PURE__ */
|
22610
|
-
), /* @__PURE__ */
|
22417
|
+
/* @__PURE__ */ import_react161.default.createElement(Header2, null)
|
22418
|
+
), /* @__PURE__ */ import_react161.default.createElement(
|
22611
22419
|
Box,
|
22612
22420
|
{
|
22613
22421
|
css: {
|
@@ -22620,8 +22428,8 @@ var init_conference = __esm({
|
|
22620
22428
|
"data-testid": "conferencing",
|
22621
22429
|
onClick: toggleControls
|
22622
22430
|
},
|
22623
|
-
/* @__PURE__ */
|
22624
|
-
), !isHeadless && /* @__PURE__ */
|
22431
|
+
/* @__PURE__ */ import_react161.default.createElement(ConferenceMainView, null)
|
22432
|
+
), !isHeadless && /* @__PURE__ */ import_react161.default.createElement(
|
22625
22433
|
Box,
|
22626
22434
|
{
|
22627
22435
|
ref: footerRef,
|
@@ -22636,8 +22444,8 @@ var init_conference = __esm({
|
|
22636
22444
|
},
|
22637
22445
|
"data-testid": "footer"
|
22638
22446
|
},
|
22639
|
-
/* @__PURE__ */
|
22640
|
-
), /* @__PURE__ */
|
22447
|
+
/* @__PURE__ */ import_react161.default.createElement(Footer2, null)
|
22448
|
+
), /* @__PURE__ */ import_react161.default.createElement(RoleChangeRequestModal, null), /* @__PURE__ */ import_react161.default.createElement(HLSFailureModal, null));
|
22641
22449
|
};
|
22642
22450
|
conference_default = Conference;
|
22643
22451
|
}
|
@@ -22645,16 +22453,16 @@ var init_conference = __esm({
|
|
22645
22453
|
|
22646
22454
|
// src/Prebuilt/App.jsx
|
22647
22455
|
function AppRoutes({ authTokenByRoomCodeEndpoint }) {
|
22648
|
-
return /* @__PURE__ */
|
22456
|
+
return /* @__PURE__ */ import_react162.default.createElement(Router, null, /* @__PURE__ */ import_react162.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react162.default.createElement(Notifications, null), /* @__PURE__ */ import_react162.default.createElement(BackSwipe, null), /* @__PURE__ */ import_react162.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react162.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react162.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react162.default.createElement(BeamSpeakerLabelsLogging, null), /* @__PURE__ */ import_react162.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint }), /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Routes, null, /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: "/*", element: /* @__PURE__ */ import_react162.default.createElement(RouteList, null) }), /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: "/streaming/*", element: /* @__PURE__ */ import_react162.default.createElement(RouteList, null) })));
|
22649
22457
|
}
|
22650
|
-
var
|
22458
|
+
var import_react162, import_react_router_dom7, import_react_sdk100, Conference2, getAspectRatio2, HMSPrebuilt, Redirector, RouteList, BackSwipe, Router;
|
22651
22459
|
var init_App = __esm({
|
22652
22460
|
"src/Prebuilt/App.jsx"() {
|
22653
22461
|
"use strict";
|
22654
22462
|
init_define_process_env();
|
22655
|
-
|
22463
|
+
import_react162 = __toESM(require("react"));
|
22656
22464
|
import_react_router_dom7 = require("react-router-dom");
|
22657
|
-
|
22465
|
+
import_react_sdk100 = require("@100mslive/react-sdk");
|
22658
22466
|
init_AppData();
|
22659
22467
|
init_BeamSpeakerLabelsLogging();
|
22660
22468
|
init_AuthToken();
|
@@ -22674,7 +22482,7 @@ var init_App = __esm({
|
|
22674
22482
|
init_RemoteStopScreenshare();
|
22675
22483
|
init_utils2();
|
22676
22484
|
init_FeatureFlags();
|
22677
|
-
Conference2 =
|
22485
|
+
Conference2 = import_react162.default.lazy(() => Promise.resolve().then(() => (init_conference(), conference_exports)));
|
22678
22486
|
getAspectRatio2 = ({ width, height }) => {
|
22679
22487
|
const host = define_process_env_default.REACT_APP_HOST_NAME;
|
22680
22488
|
const portraitDomains = (define_process_env_default.REACT_APP_PORTRAIT_MODE_DOMAINS || "").split(",");
|
@@ -22683,7 +22491,7 @@ var init_App = __esm({
|
|
22683
22491
|
}
|
22684
22492
|
return { width, height };
|
22685
22493
|
};
|
22686
|
-
HMSPrebuilt =
|
22494
|
+
HMSPrebuilt = import_react162.default.forwardRef(
|
22687
22495
|
({
|
22688
22496
|
roomCode = "",
|
22689
22497
|
logo,
|
@@ -22705,11 +22513,11 @@ var init_App = __esm({
|
|
22705
22513
|
const aspectRatio = "1-1";
|
22706
22514
|
const metadata = "";
|
22707
22515
|
const { 0: width, 1: height } = aspectRatio.split("-").map((el) => parseInt(el));
|
22708
|
-
const reactiveStore = (0,
|
22709
|
-
const [hydrated, setHydrated] =
|
22710
|
-
(0,
|
22516
|
+
const reactiveStore = (0, import_react162.useRef)();
|
22517
|
+
const [hydrated, setHydrated] = import_react162.default.useState(false);
|
22518
|
+
(0, import_react162.useEffect)(() => {
|
22711
22519
|
setHydrated(true);
|
22712
|
-
const hms = new
|
22520
|
+
const hms = new import_react_sdk100.HMSReactiveStore();
|
22713
22521
|
const hmsStore = hms.getStore();
|
22714
22522
|
const hmsActions = hms.getActions();
|
22715
22523
|
const hmsNotifications = hms.getNotifications();
|
@@ -22721,13 +22529,13 @@ var init_App = __esm({
|
|
22721
22529
|
hmsNotifications
|
22722
22530
|
};
|
22723
22531
|
}, []);
|
22724
|
-
(0,
|
22532
|
+
(0, import_react162.useEffect)(() => {
|
22725
22533
|
if (!ref || !reactiveStore.current) {
|
22726
22534
|
return;
|
22727
22535
|
}
|
22728
22536
|
ref.current = __spreadValues({}, reactiveStore.current);
|
22729
22537
|
}, [ref]);
|
22730
|
-
(0,
|
22538
|
+
(0, import_react162.useEffect)(
|
22731
22539
|
() => () => {
|
22732
22540
|
return reactiveStore.current.hmsActions.leave();
|
22733
22541
|
},
|
@@ -22749,7 +22557,7 @@ var init_App = __esm({
|
|
22749
22557
|
return null;
|
22750
22558
|
}
|
22751
22559
|
globalStyles();
|
22752
|
-
return /* @__PURE__ */
|
22560
|
+
return /* @__PURE__ */ import_react162.default.createElement(ErrorBoundary, null, /* @__PURE__ */ import_react162.default.createElement(
|
22753
22561
|
HMSPrebuiltContext.Provider,
|
22754
22562
|
{
|
22755
22563
|
value: {
|
@@ -22762,8 +22570,8 @@ var init_App = __esm({
|
|
22762
22570
|
endpoints
|
22763
22571
|
}
|
22764
22572
|
},
|
22765
|
-
/* @__PURE__ */
|
22766
|
-
|
22573
|
+
/* @__PURE__ */ import_react162.default.createElement(
|
22574
|
+
import_react_sdk100.HMSRoomProvider,
|
22767
22575
|
{
|
22768
22576
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
22769
22577
|
actions: reactiveStore.current.hmsActions,
|
@@ -22771,7 +22579,7 @@ var init_App = __esm({
|
|
22771
22579
|
notifications: reactiveStore.current.hmsNotifications,
|
22772
22580
|
stats: reactiveStore.current.hmsStats
|
22773
22581
|
},
|
22774
|
-
/* @__PURE__ */
|
22582
|
+
/* @__PURE__ */ import_react162.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react162.default.createElement(RoomLayoutContext.Consumer, null, (layout) => {
|
22775
22583
|
var _a7;
|
22776
22584
|
const theme2 = ((_a7 = layout.themes) == null ? void 0 : _a7[0]) || {};
|
22777
22585
|
const { typography: typography2 } = layout;
|
@@ -22779,10 +22587,10 @@ var init_App = __esm({
|
|
22779
22587
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
22780
22588
|
fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
|
22781
22589
|
}
|
22782
|
-
return /* @__PURE__ */
|
22590
|
+
return /* @__PURE__ */ import_react162.default.createElement(
|
22783
22591
|
HMSThemeProvider,
|
22784
22592
|
{
|
22785
|
-
themeType: theme2.name
|
22593
|
+
themeType: `${theme2.name}-${Date.now()}`,
|
22786
22594
|
aspectRatio: getAspectRatio2({ width, height }),
|
22787
22595
|
theme: {
|
22788
22596
|
colors: theme2.palette,
|
@@ -22791,9 +22599,9 @@ var init_App = __esm({
|
|
22791
22599
|
}
|
22792
22600
|
}
|
22793
22601
|
},
|
22794
|
-
/* @__PURE__ */
|
22795
|
-
/* @__PURE__ */
|
22796
|
-
/* @__PURE__ */
|
22602
|
+
/* @__PURE__ */ import_react162.default.createElement(AppData, { appDetails: metadata, tokenEndpoint: tokenByRoomIdRoleEndpoint }),
|
22603
|
+
/* @__PURE__ */ import_react162.default.createElement(Init, null),
|
22604
|
+
/* @__PURE__ */ import_react162.default.createElement(
|
22797
22605
|
Box,
|
22798
22606
|
{
|
22799
22607
|
css: {
|
@@ -22803,7 +22611,7 @@ var init_App = __esm({
|
|
22803
22611
|
"-webkit-text-size-adjust": "100%"
|
22804
22612
|
}
|
22805
22613
|
},
|
22806
|
-
/* @__PURE__ */
|
22614
|
+
/* @__PURE__ */ import_react162.default.createElement(AppRoutes, { authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint })
|
22807
22615
|
)
|
22808
22616
|
);
|
22809
22617
|
}))
|
@@ -22815,48 +22623,48 @@ var init_App = __esm({
|
|
22815
22623
|
Redirector = ({ showPreview }) => {
|
22816
22624
|
const { roomId, role } = (0, import_react_router_dom7.useParams)();
|
22817
22625
|
if (!roomId && !role) {
|
22818
|
-
return /* @__PURE__ */
|
22626
|
+
return /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Navigate, { to: "/" });
|
22819
22627
|
}
|
22820
22628
|
if (!roomId) {
|
22821
|
-
return /* @__PURE__ */
|
22629
|
+
return /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Navigate, { to: "/" });
|
22822
22630
|
}
|
22823
22631
|
if (["streaming", "preview", "meeting", "leave"].includes(roomId) && !role) {
|
22824
|
-
return /* @__PURE__ */
|
22632
|
+
return /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Navigate, { to: "/" });
|
22825
22633
|
}
|
22826
|
-
return /* @__PURE__ */
|
22634
|
+
return /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Navigate, { to: `${getRoutePrefix()}/${showPreview ? "preview" : "meeting"}/${roomId}/${role || ""}` });
|
22827
22635
|
};
|
22828
22636
|
RouteList = () => {
|
22829
22637
|
const { showPreview, showLeave } = useHMSPrebuiltContext();
|
22830
|
-
return /* @__PURE__ */
|
22638
|
+
return /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Routes, null, showPreview && /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: "preview" }, /* @__PURE__ */ import_react162.default.createElement(
|
22831
22639
|
import_react_router_dom7.Route,
|
22832
22640
|
{
|
22833
22641
|
path: ":roomId/:role",
|
22834
|
-
element: /* @__PURE__ */
|
22642
|
+
element: /* @__PURE__ */ import_react162.default.createElement(import_react162.Suspense, { fallback: /* @__PURE__ */ import_react162.default.createElement(FullPageProgress_default, { loadingText: "Loading preview..." }) }, /* @__PURE__ */ import_react162.default.createElement(PreviewContainer_default, null))
|
22835
22643
|
}
|
22836
|
-
), /* @__PURE__ */
|
22644
|
+
), /* @__PURE__ */ import_react162.default.createElement(
|
22837
22645
|
import_react_router_dom7.Route,
|
22838
22646
|
{
|
22839
22647
|
path: ":roomId",
|
22840
|
-
element: /* @__PURE__ */
|
22648
|
+
element: /* @__PURE__ */ import_react162.default.createElement(import_react162.Suspense, { fallback: /* @__PURE__ */ import_react162.default.createElement(FullPageProgress_default, { loadingText: "Loading preview..." }) }, /* @__PURE__ */ import_react162.default.createElement(PreviewContainer_default, null))
|
22841
22649
|
}
|
22842
|
-
)), /* @__PURE__ */
|
22650
|
+
)), /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: "meeting" }, /* @__PURE__ */ import_react162.default.createElement(
|
22843
22651
|
import_react_router_dom7.Route,
|
22844
22652
|
{
|
22845
22653
|
path: ":roomId/:role",
|
22846
|
-
element: /* @__PURE__ */
|
22654
|
+
element: /* @__PURE__ */ import_react162.default.createElement(import_react162.Suspense, { fallback: /* @__PURE__ */ import_react162.default.createElement(FullPageProgress_default, { loadingText: "Joining..." }) }, /* @__PURE__ */ import_react162.default.createElement(Conference2, null))
|
22847
22655
|
}
|
22848
|
-
), /* @__PURE__ */
|
22656
|
+
), /* @__PURE__ */ import_react162.default.createElement(
|
22849
22657
|
import_react_router_dom7.Route,
|
22850
22658
|
{
|
22851
22659
|
path: ":roomId",
|
22852
|
-
element: /* @__PURE__ */
|
22660
|
+
element: /* @__PURE__ */ import_react162.default.createElement(import_react162.Suspense, { fallback: /* @__PURE__ */ import_react162.default.createElement(FullPageProgress_default, { loadingText: "Joining..." }) }, /* @__PURE__ */ import_react162.default.createElement(Conference2, null))
|
22853
22661
|
}
|
22854
|
-
)), showLeave && /* @__PURE__ */
|
22662
|
+
)), showLeave && /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: "leave" }, /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: ":roomId/:role", element: /* @__PURE__ */ import_react162.default.createElement(PostLeave_default, null) }), /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: ":roomId", element: /* @__PURE__ */ import_react162.default.createElement(PostLeave_default, null) })), /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: "/:roomId/:role", element: /* @__PURE__ */ import_react162.default.createElement(Redirector, { showPreview }) }), /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.Route, { path: "/:roomId/", element: /* @__PURE__ */ import_react162.default.createElement(Redirector, { showPreview }) }));
|
22855
22663
|
};
|
22856
22664
|
BackSwipe = () => {
|
22857
|
-
const isConnectedToRoom = (0,
|
22858
|
-
const hmsActions = (0,
|
22859
|
-
(0,
|
22665
|
+
const isConnectedToRoom = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectIsConnectedToRoom);
|
22666
|
+
const hmsActions = (0, import_react_sdk100.useHMSActions)();
|
22667
|
+
(0, import_react162.useEffect)(() => {
|
22860
22668
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
22861
22669
|
if (isConnectedToRoom) {
|
22862
22670
|
yield hmsActions.leave();
|
@@ -22871,7 +22679,7 @@ var init_App = __esm({
|
|
22871
22679
|
};
|
22872
22680
|
Router = ({ children }) => {
|
22873
22681
|
const { roomId, role, roomCode } = useHMSPrebuiltContext();
|
22874
|
-
return [roomId, role, roomCode].every((value) => !value) ? /* @__PURE__ */
|
22682
|
+
return [roomId, role, roomCode].every((value) => !value) ? /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.BrowserRouter, null, children) : /* @__PURE__ */ import_react162.default.createElement(import_react_router_dom7.MemoryRouter, { initialEntries: [`/${roomCode ? roomCode : `${roomId}/${role || ""}`}`], initialIndex: 0 }, children);
|
22875
22683
|
};
|
22876
22684
|
}
|
22877
22685
|
});
|