@100mslive/roomkit-react 0.2.1-alpha.1 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-QPKBRL74.js → HLSView-U7FQ2YLK.js} +2 -2
- package/dist/{chunk-LRZEFY46.js → chunk-GNQAOG73.js} +103 -91
- package/dist/chunk-GNQAOG73.js.map +7 -0
- package/dist/index.cjs.js +100 -88
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +18 -18
- package/dist/meta.esbuild.json +25 -25
- package/package.json +11 -6
- package/src/Prebuilt/components/Notifications/Notifications.tsx +14 -1
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx +3 -4
- package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx +6 -5
- package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +4 -1
- package/src/Toast/Toast.tsx +1 -0
- package/dist/chunk-LRZEFY46.js.map +0 -7
- /package/dist/{HLSView-QPKBRL74.js.map → HLSView-U7FQ2YLK.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_228610ec-ca0f-4a50-ae71-c5237cde2d9d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 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.9.1-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_228610ec-ca0f-4a50-ae71-c5237cde2d9d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/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.12.1-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "576", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.12/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.5/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240116.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:17691", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.1-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "7551280157", 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: "8e59b80ba249933faedfafd0c9fef523a07dc74c", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "76ec50c97762fbb0763135d5940ee2a1ed87bf6be19adccfe5f2cd95d388ee3f", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1705467958103-0.10883706837497997:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467957818-0.6844147917774273:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467915541-0.34240564272992513:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467915265-0.1522992275885935:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e0540d66-5861-4107-8691-1fe3b5c8a942", INVOCATION_ID: "12e4d6727da14232907401e8c96d9ba6", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "412", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 2", 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: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.1-alpha.1", 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.2.1-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "8e59b80ba249933faedfafd0c9fef523a07dc74c", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_228610ec-ca0f-4a50-ae71-c5237cde2d9d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_228610ec-ca0f-4a50-ae71-c5237cde2d9d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_228610ec-ca0f-4a50-ae71-c5237cde2d9d" };
|
111
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 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.9.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/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.12.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "587", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.12/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.5/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240116.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:18220", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "7581386761", 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: "d059b6f9ea6851f26271332df4cf83c9a4f3d567", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "563fa88ae30f556184862c3ef699a9d8b58e6a1cf7ef09a45333c2a07bd3dc27", 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", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1705653583868-0.30605188987079:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705653583674-0.13111361219514506:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705653561343-0.18765335287556817:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705653561165-0.44274391677102254:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b56e162d-8a5e-4ec3-b372-3cd8b0948b9b", INVOCATION_ID: "d9e6c2c528bc459ea085ea3128591820", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "413", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 2", 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: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "d059b6f9ea6851f26271332df4cf83c9a4f3d567", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_5bb1b49a-a892-4389-be0a-e6c1ac4d9278", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5bb1b49a-a892-4389-be0a-e6c1ac4d9278" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -2775,11 +2775,11 @@ var init_formatBytes = __esm({
|
|
2775
2775
|
return "-";
|
2776
2776
|
}
|
2777
2777
|
const k2 = 1024;
|
2778
|
-
const
|
2778
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
2779
2779
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
2780
2780
|
let i = Math.floor(Math.log(bytes) / Math.log(k2));
|
2781
2781
|
i === 0 && i++;
|
2782
|
-
return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(
|
2782
|
+
return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2))} ${sizes[i]}`;
|
2783
2783
|
};
|
2784
2784
|
}
|
2785
2785
|
});
|
@@ -3191,7 +3191,8 @@ var init_Toast = __esm({
|
|
3191
3191
|
ToastClose = styled(ToastPrimitives.Close, {});
|
3192
3192
|
ToastAction = styled(ToastPrimitives.Action, {
|
3193
3193
|
cursor: "pointer",
|
3194
|
-
background: "none"
|
3194
|
+
background: "none",
|
3195
|
+
border: "none"
|
3195
3196
|
});
|
3196
3197
|
ToastViewport = styled(ToastPrimitives.Viewport, {
|
3197
3198
|
position: "fixed",
|
@@ -12880,10 +12881,10 @@ var init_StatsForNerds = __esm({
|
|
12880
12881
|
if (bytes === 0)
|
12881
12882
|
return "0 " + unit;
|
12882
12883
|
const k2 = 1024;
|
12883
|
-
const
|
12884
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
12884
12885
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
12885
12886
|
const i = Math.floor(Math.log(bytes) / Math.log(k2));
|
12886
|
-
return parseFloat((bytes / Math.pow(k2, i)).toFixed(
|
12887
|
+
return parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2)) + " " + sizes[i];
|
12887
12888
|
};
|
12888
12889
|
}
|
12889
12890
|
});
|
@@ -18198,7 +18199,7 @@ function He(a2, e) {
|
|
18198
18199
|
if (e)
|
18199
18200
|
for (let r of e.auxiliaryTracks) {
|
18200
18201
|
let s = a2[r];
|
18201
|
-
|
18202
|
+
Pa(s) && (i = Ze(s) ? s : i, t = et(s) ? s : t);
|
18202
18203
|
}
|
18203
18204
|
return { video: t, audio: i };
|
18204
18205
|
}
|
@@ -18208,7 +18209,7 @@ function Ze(a2) {
|
|
18208
18209
|
function et(a2) {
|
18209
18210
|
return a2 && a2.type === "video";
|
18210
18211
|
}
|
18211
|
-
function
|
18212
|
+
function Pa(a2) {
|
18212
18213
|
return a2 && a2.source === "screen";
|
18213
18214
|
}
|
18214
18215
|
function Vt(a2) {
|
@@ -18267,7 +18268,7 @@ function qh(a2) {
|
|
18267
18268
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
18268
18269
|
};
|
18269
18270
|
}
|
18270
|
-
var import_ua_parser_js, import_uuid3, import_uuid4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Ht, import_eventemitter24, import_uuid9, import_uuid10, ga, Ta, fa, Ot, Fr, Gr, Br,
|
18271
|
+
var import_ua_parser_js, import_uuid3, import_uuid4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Ht, import_eventemitter24, import_uuid9, import_uuid10, ga, Ta, fa, Ot, Fr, Gr, Br, m, y, Qi, ya, nr, zi, ka, $r, Yi, Wr, U, Ea, yn, kn, G, Bt, jr, w, Xi, Aa, ye, An, ba, ae, Ra, Q, ue, bn, Rn, Z, K, Ha, Qr, Hn, In, er, Ia, Ln, wn, Dn, _n, Nn, On, xn, Un, rt, Ca, Vn, z, Yr, Bn, oe, Fn, Ft, La, Xr, Gn, Zr, $n, Wn, Kn, qn, jn, Jn, Qn, zn, es, ec, wa, tc, is, tr, rs, ss, as, os, ns, cs, ds, ls, us, Da, d, pe, N, ps, Ie, Na, dc, hs, ms, gs, Ue, v, T, xa, h, sr, Ts, ne, fs, Ms, ys, H, M, dr, q, lr, ur, As, bs, pr, Cs, hr, Ls, mr, Sr, _s, Ns, qe, ht, k, Ar, mt, Gs, ao, oo, j, br, no, co, lo, uo, po, J, Kh, Jh, si, $s, Qh, zh, Yh, ho, mo, Zh, Ws, em, So, tm, im, rm, sm, am, om, Ks, qs, cm, dm, js, lm, um, Js, pm, hm, mm, Qs, zs, go, To, fo, Sm, gm, Tm, fm, vm, Ys, Cm, vo, Lm, wm, Dm, yo, ko, Lr, fe, $, xi, Ki, Go, $o, Wo, Ko, ma, qo, Sa, xr, Me, jo, Jo, Qo, zo, Yo, Xo, Zo, en, tn, rn, Ur, sn, an, on, nn, cn, dn;
|
18271
18272
|
var init_dist = __esm({
|
18272
18273
|
"../hms-video-store/dist/index.js"() {
|
18273
18274
|
"use strict";
|
@@ -18300,7 +18301,7 @@ var init_dist = __esm({
|
|
18300
18301
|
Fr = Object.prototype.hasOwnProperty;
|
18301
18302
|
Gr = Object.prototype.propertyIsEnumerable;
|
18302
18303
|
Br = (a2, e, t) => e in a2 ? ga(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
18303
|
-
|
18304
|
+
m = (a2, e) => {
|
18304
18305
|
for (var t in e || (e = {}))
|
18305
18306
|
Fr.call(e, t) && Br(a2, t, e[t]);
|
18306
18307
|
if (Ot)
|
@@ -18320,7 +18321,7 @@ var init_dist = __esm({
|
|
18320
18321
|
};
|
18321
18322
|
ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18322
18323
|
nr = ya((jc, Va) => {
|
18323
|
-
Va.exports = { version: "0.11.1
|
18324
|
+
Va.exports = { version: "0.11.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
18324
18325
|
});
|
18325
18326
|
zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(zi || {});
|
18326
18327
|
ka = ((e) => (e.CHAT = "chat", e))(ka || {});
|
@@ -18328,20 +18329,20 @@ var init_dist = __esm({
|
|
18328
18329
|
Yi = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(Yi || {});
|
18329
18330
|
Wr = ((t) => (t.audio = "audio", t.video = "video", t))(Wr || {});
|
18330
18331
|
U = (a2) => a2.room;
|
18331
|
-
|
18332
|
-
yn = createSelector(
|
18332
|
+
Ea = (a2) => a2.errors;
|
18333
|
+
yn = createSelector(Ea, (a2) => a2.length === 0 ? null : a2.at(-1));
|
18333
18334
|
kn = createSelector(U, (a2) => a2.id);
|
18334
18335
|
G = (a2) => a2.peers;
|
18335
18336
|
Bt = (a2) => a2.messages.byID;
|
18336
18337
|
jr = (a2) => a2.messages.allIDs;
|
18337
|
-
|
18338
|
+
w = (a2) => a2.tracks;
|
18338
18339
|
Xi = (a2) => a2.appData;
|
18339
18340
|
Aa = (a2) => a2.speakers;
|
18340
18341
|
ye = createSelector([U], (a2) => a2 && a2.isConnected);
|
18341
18342
|
An = createSelector([ye, U], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
18342
18343
|
ba = (a2) => a2.hideLocalPeer;
|
18343
18344
|
ae = createSelector([U, G, ba], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
18344
|
-
Ra = createSelector(
|
18345
|
+
Ra = createSelector(w, (a2) => Object.values(a2));
|
18345
18346
|
Q = createSelector(U, G, (a2, e) => e[a2.localPeer]);
|
18346
18347
|
ue = createSelector(U, (a2) => a2.localPeer);
|
18347
18348
|
bn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.name);
|
@@ -18367,11 +18368,11 @@ var init_dist = __esm({
|
|
18367
18368
|
}
|
18368
18369
|
return null;
|
18369
18370
|
});
|
18370
|
-
er = createSelector(Q,
|
18371
|
+
er = createSelector(Q, w, (a2, e) => {
|
18371
18372
|
let { video: t, audio: i } = He(e, a2);
|
18372
18373
|
return !!(t || i);
|
18373
18374
|
});
|
18374
|
-
Ia = createSelector(G,
|
18375
|
+
Ia = createSelector(G, w, (a2, e) => {
|
18375
18376
|
let t;
|
18376
18377
|
for (let i in a2) {
|
18377
18378
|
let r = a2[i], { video: s, audio: o } = He(e, r);
|
@@ -18382,14 +18383,14 @@ var init_dist = __esm({
|
|
18382
18383
|
return t;
|
18383
18384
|
});
|
18384
18385
|
Ln = createSelector(Ia, (a2) => !!a2);
|
18385
|
-
|
18386
|
+
wn = createSelector(G, w, (a2, e) => {
|
18386
18387
|
for (let t in a2) {
|
18387
18388
|
let i = a2[t], { audio: r, video: s } = He(e, i);
|
18388
18389
|
if (!s && r)
|
18389
18390
|
return i;
|
18390
18391
|
}
|
18391
18392
|
});
|
18392
|
-
|
18393
|
+
Dn = createSelector(G, w, (a2, e) => {
|
18393
18394
|
let t = [], i = [];
|
18394
18395
|
for (let r in a2) {
|
18395
18396
|
let s = a2[r], { video: o, audio: n } = He(e, s);
|
@@ -18397,14 +18398,14 @@ var init_dist = __esm({
|
|
18397
18398
|
}
|
18398
18399
|
return t.concat(i);
|
18399
18400
|
});
|
18400
|
-
_n = createSelector(G,
|
18401
|
+
_n = createSelector(G, w, (a2, e) => {
|
18401
18402
|
for (let t in e) {
|
18402
18403
|
let i = e[t];
|
18403
18404
|
if (tt(i) && et(i) && i.peerId)
|
18404
18405
|
return a2[i.peerId];
|
18405
18406
|
}
|
18406
18407
|
});
|
18407
|
-
Nn = createSelector(G,
|
18408
|
+
Nn = createSelector(G, w, (a2, e) => {
|
18408
18409
|
for (let t in e) {
|
18409
18410
|
let i = e[t];
|
18410
18411
|
if (Vt(i) && i.peerId)
|
@@ -18451,8 +18452,8 @@ var init_dist = __esm({
|
|
18451
18452
|
zn = createSelector(U, (a2) => a2.effectsKey);
|
18452
18453
|
es = (a2) => a2.polls;
|
18453
18454
|
ec = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
|
18454
|
-
|
18455
|
-
tc = createSelector(
|
18455
|
+
wa = (a2) => a2.whiteboards;
|
18456
|
+
tc = createSelector(wa, (a2) => Object.values(a2)[0]);
|
18456
18457
|
is = (a2 = "audio") => (e) => e.playlist[a2].list;
|
18457
18458
|
tr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
18458
18459
|
rs = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
@@ -18467,7 +18468,7 @@ var init_dist = __esm({
|
|
18467
18468
|
ds = { selection: tr("audio"), progress: rs("audio"), currentTime: ss("audio"), playbackRate: as("audio"), volume: os("audio"), list: ns("audio"), selectedItem: cs("audio") };
|
18468
18469
|
ls = { selection: tr("video"), progress: rs("video"), currentTime: ss("video"), playbackRate: as("video"), volume: os("video"), list: ns("video"), selectedItem: cs("video") };
|
18469
18470
|
us = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(us || {});
|
18470
|
-
|
18471
|
+
Da = typeof window != "undefined" && typeof window.expect != "undefined";
|
18471
18472
|
d = class {
|
18472
18473
|
static v(e, ...t) {
|
18473
18474
|
this.log(0, e, ...t);
|
@@ -18533,13 +18534,13 @@ var init_dist = __esm({
|
|
18533
18534
|
}
|
18534
18535
|
}
|
18535
18536
|
};
|
18536
|
-
d.level =
|
18537
|
+
d.level = Da ? 7 : 0;
|
18537
18538
|
pe = new import_ua_parser_js.UAParser();
|
18538
18539
|
N = typeof window != "undefined";
|
18539
18540
|
Ie = typeof window == "undefined" && !((ps = pe.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
|
18540
18541
|
Na = () => !Ie;
|
18541
18542
|
dc = Na();
|
18542
|
-
gs = ((
|
18543
|
+
gs = ((ms = (hs = pe.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
|
18543
18544
|
Ue = Oa();
|
18544
18545
|
v = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
18545
18546
|
T = class a extends Error {
|
@@ -18750,12 +18751,12 @@ var init_dist = __esm({
|
|
18750
18751
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = fs();
|
18751
18752
|
}
|
18752
18753
|
toSignalParams() {
|
18753
|
-
return { name: this.name, info: y(
|
18754
|
+
return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: Ue }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
18754
18755
|
}
|
18755
18756
|
};
|
18756
18757
|
M = class {
|
18757
18758
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
18758
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(y(
|
18759
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(y(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
18759
18760
|
return new H({ name: o, level: n, properties: l });
|
18760
18761
|
}
|
18761
18762
|
static disconnect(e, t) {
|
@@ -18769,7 +18770,7 @@ var init_dist = __esm({
|
|
18769
18770
|
}
|
18770
18771
|
static join(i) {
|
18771
18772
|
var r = i, { error: e } = r, t = Qi(r, ["error"]);
|
18772
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(
|
18773
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
18773
18774
|
return new H({ name: s, level: o, properties: n });
|
18774
18775
|
}
|
18775
18776
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -18812,7 +18813,7 @@ var init_dist = __esm({
|
|
18812
18813
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
18813
18814
|
if (!t && e.degradedAt instanceof Date) {
|
18814
18815
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
18815
|
-
s = y(
|
18816
|
+
s = y(m({}, s), { duration: n, restoredAt: o });
|
18816
18817
|
}
|
18817
18818
|
return new H({ name: i, level: r, properties: s });
|
18818
18819
|
}
|
@@ -18834,7 +18835,7 @@ var init_dist = __esm({
|
|
18834
18835
|
}
|
18835
18836
|
static getPropertiesWithError(e, t) {
|
18836
18837
|
let i = this.getErrorProperties(t);
|
18837
|
-
return e =
|
18838
|
+
return e = m(m({}, i), e), e;
|
18838
18839
|
}
|
18839
18840
|
static getErrorProperties(e) {
|
18840
18841
|
return e ? e instanceof T ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
@@ -18936,8 +18937,8 @@ var init_dist = __esm({
|
|
18936
18937
|
}
|
18937
18938
|
};
|
18938
18939
|
Ls = new hr();
|
18939
|
-
|
18940
|
-
|
18940
|
+
mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
|
18941
|
+
Sr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Sr || {});
|
18941
18942
|
_s = "https://event.100ms.live/v2/client/report";
|
18942
18943
|
Ns = "https://event-nonprod.100ms.live/v2/client/report";
|
18943
18944
|
qe = class {
|
@@ -19011,31 +19012,31 @@ var init_dist = __esm({
|
|
19011
19012
|
};
|
19012
19013
|
k.level = 0;
|
19013
19014
|
Ar = (a2, e) => e;
|
19014
|
-
|
19015
|
+
mt = (a2, e) => e;
|
19015
19016
|
Gs = (a2, e) => e;
|
19016
19017
|
ao = (a2, e) => e;
|
19017
19018
|
oo = (a2, e) => e;
|
19018
19019
|
j = createSelector([G, Ar], (a2, e) => e ? a2[e] : null);
|
19019
|
-
br = createSelector([
|
19020
|
-
no = createSelector([
|
19020
|
+
br = createSelector([w, mt], (a2, e) => e ? a2[e] : null);
|
19021
|
+
no = createSelector([w, mt], (a2, e) => {
|
19021
19022
|
if (!e)
|
19022
19023
|
return null;
|
19023
19024
|
let t = a2[e];
|
19024
19025
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
19025
19026
|
});
|
19026
|
-
co = createSelector([
|
19027
|
+
co = createSelector([w, mt], (a2, e) => {
|
19027
19028
|
if (!e)
|
19028
19029
|
return null;
|
19029
19030
|
let t = a2[e];
|
19030
19031
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
19031
19032
|
});
|
19032
|
-
lo = createSelector([
|
19033
|
+
lo = createSelector([w, mt], (a2, e) => {
|
19033
19034
|
if (!e)
|
19034
19035
|
return null;
|
19035
19036
|
let t = a2[e];
|
19036
19037
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19037
19038
|
});
|
19038
|
-
uo = createSelector([
|
19039
|
+
uo = createSelector([w, mt], (a2, e) => {
|
19039
19040
|
if (!e)
|
19040
19041
|
return null;
|
19041
19042
|
let t = a2[e];
|
@@ -19058,7 +19059,7 @@ var init_dist = __esm({
|
|
19058
19059
|
if (t && t.videoTrack && t.videoTrack !== "")
|
19059
19060
|
return a2.tracks[t.videoTrack];
|
19060
19061
|
});
|
19061
|
-
|
19062
|
+
mo = A((a2, e) => {
|
19062
19063
|
let t = j(a2, e);
|
19063
19064
|
if (t && t.audioTrack && t.audioTrack !== "")
|
19064
19065
|
return a2.tracks[t.audioTrack];
|
@@ -19068,51 +19069,51 @@ var init_dist = __esm({
|
|
19068
19069
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
19069
19070
|
});
|
19070
19071
|
Ws = (a2, e) => e ? a2.speakers[e] : null;
|
19071
|
-
|
19072
|
-
|
19073
|
-
let t =
|
19072
|
+
em = A(createSelector(Ws, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19073
|
+
So = (a2, e) => {
|
19074
|
+
let t = mo(e)(a2);
|
19074
19075
|
return Ws(a2, t == null ? void 0 : t.id);
|
19075
19076
|
};
|
19076
|
-
|
19077
|
-
|
19077
|
+
tm = A(createSelector(So, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19078
|
+
im = A((a2, e) => {
|
19078
19079
|
if (e)
|
19079
19080
|
return a2.connectionQualities[e];
|
19080
19081
|
});
|
19081
|
-
|
19082
|
+
rm = A((a2, e) => {
|
19082
19083
|
let t = j(a2, e);
|
19083
19084
|
if (t) {
|
19084
19085
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => Ze(a2.tracks[r]));
|
19085
19086
|
return i ? a2.tracks[i] : void 0;
|
19086
19087
|
}
|
19087
19088
|
});
|
19088
|
-
|
19089
|
+
sm = A(createSelector(w, j, (a2, e) => {
|
19089
19090
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19090
19091
|
let r = a2[i];
|
19091
19092
|
return tt(r) && et(r);
|
19092
19093
|
});
|
19093
19094
|
return t ? a2[t] : void 0;
|
19094
19095
|
}));
|
19095
|
-
|
19096
|
+
am = A(createSelector(w, j, (a2, e) => {
|
19096
19097
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19097
19098
|
let r = a2[i];
|
19098
19099
|
return tt(r) && Ze(r);
|
19099
19100
|
});
|
19100
19101
|
return t ? a2[t] : void 0;
|
19101
19102
|
}));
|
19102
|
-
|
19103
|
+
om = A(createSelector(w, j, (a2, e) => {
|
19103
19104
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19104
19105
|
let r = a2[i];
|
19105
19106
|
return Vt(r) && Ze(r);
|
19106
19107
|
});
|
19107
19108
|
return t ? a2[t] : void 0;
|
19108
19109
|
}));
|
19109
|
-
Ks = A(createSelector(
|
19110
|
+
Ks = A(createSelector(w, j, (a2, e) => He(a2, e)));
|
19110
19111
|
qs = (a2) => createSelector(Ks(a2), (e) => e.audio);
|
19111
|
-
|
19112
|
+
cm = A((a2, e) => {
|
19112
19113
|
let t = j(a2, e);
|
19113
19114
|
return Oe(a2, t == null ? void 0 : t.audioTrack);
|
19114
19115
|
});
|
19115
|
-
|
19116
|
+
dm = A((a2, e) => {
|
19116
19117
|
let t = j(a2, e);
|
19117
19118
|
return Oe(a2, t == null ? void 0 : t.videoTrack);
|
19118
19119
|
});
|
@@ -19120,11 +19121,11 @@ var init_dist = __esm({
|
|
19120
19121
|
if (e && a2.tracks[e])
|
19121
19122
|
return a2.tracks[e].volume === 0;
|
19122
19123
|
});
|
19123
|
-
|
19124
|
+
lm = A((a2, e) => {
|
19124
19125
|
let t = j(a2, e);
|
19125
19126
|
return js(t == null ? void 0 : t.audioTrack)(a2);
|
19126
19127
|
});
|
19127
|
-
|
19128
|
+
um = A((a2, e) => {
|
19128
19129
|
let t = qs(e)(a2);
|
19129
19130
|
return js(t == null ? void 0 : t.id)(a2);
|
19130
19131
|
});
|
@@ -19138,15 +19139,15 @@ var init_dist = __esm({
|
|
19138
19139
|
return t.volume;
|
19139
19140
|
}
|
19140
19141
|
});
|
19141
|
-
|
19142
|
+
pm = A((a2, e) => {
|
19142
19143
|
let t = j(a2, e);
|
19143
19144
|
return Js(t == null ? void 0 : t.audioTrack)(a2);
|
19144
19145
|
});
|
19145
|
-
|
19146
|
+
hm = A((a2, e) => {
|
19146
19147
|
let t = qs(e)(a2);
|
19147
19148
|
return Js(t == null ? void 0 : t.id)(a2);
|
19148
19149
|
});
|
19149
|
-
|
19150
|
+
mm = A((a2, e) => {
|
19150
19151
|
let t = br(a2, e);
|
19151
19152
|
if (t) {
|
19152
19153
|
if (t.type !== "video") {
|
@@ -19176,25 +19177,25 @@ var init_dist = __esm({
|
|
19176
19177
|
}));
|
19177
19178
|
To = createSelector([zs, Gs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19178
19179
|
fo = createSelector([Qs, Ar], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19179
|
-
|
19180
|
-
|
19181
|
-
|
19182
|
-
|
19183
|
-
|
19180
|
+
Sm = createSelector(go, (a2) => a2.filter((e) => !e.read).length);
|
19181
|
+
gm = A(Qs);
|
19182
|
+
Tm = A(zs);
|
19183
|
+
fm = A(To);
|
19184
|
+
vm = A(fo);
|
19184
19185
|
Ys = A(po);
|
19185
|
-
|
19186
|
+
Cm = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
|
19186
19187
|
var r;
|
19187
19188
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
19188
19189
|
}));
|
19189
19190
|
vo = (a2) => a2.roleChangeRequests[0] || null;
|
19190
|
-
|
19191
|
-
|
19192
|
-
|
19193
|
-
yo = createSelector([K,
|
19191
|
+
Lm = createSelector([vo, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
19192
|
+
wm = createSelector([Ft], (a2) => it(a2));
|
19193
|
+
Dm = createSelector([Xr], (a2) => it(a2));
|
19194
|
+
yo = createSelector([K, w], (a2, e) => {
|
19194
19195
|
let t = null;
|
19195
19196
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19196
19197
|
});
|
19197
|
-
ko = createSelector([Z,
|
19198
|
+
ko = createSelector([Z, w], (a2, e) => {
|
19198
19199
|
let t = null;
|
19199
19200
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19200
19201
|
});
|
@@ -19251,11 +19252,11 @@ var init_dist = __esm({
|
|
19251
19252
|
$o = (a2) => a2.localPeer.audioTrack;
|
19252
19253
|
Wo = (a2) => a2.localPeer.videoTrack;
|
19253
19254
|
Ko = (a2, e) => e;
|
19254
|
-
|
19255
|
+
ma = (a2, e) => e;
|
19255
19256
|
qo = (a2) => a2.remoteTrackStats;
|
19256
|
-
|
19257
|
+
Sa = (a2) => a2.peerStats;
|
19257
19258
|
xr = (a2) => a2.localTrackStats;
|
19258
|
-
Me = createSelector([
|
19259
|
+
Me = createSelector([Sa, Go], (a2, e) => a2[e]);
|
19259
19260
|
jo = createSelector(Me, (a2) => {
|
19260
19261
|
var e;
|
19261
19262
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
@@ -19288,9 +19289,9 @@ var init_dist = __esm({
|
|
19288
19289
|
var e;
|
19289
19290
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
19290
19291
|
});
|
19291
|
-
tn = createSelector([
|
19292
|
-
rn = createSelector([qo,
|
19293
|
-
Ur = createSelector([xr,
|
19292
|
+
tn = createSelector([Sa, Ko], (a2, e) => e ? a2[e] : void 0);
|
19293
|
+
rn = createSelector([qo, ma], (a2, e) => e ? a2[e] : void 0);
|
19294
|
+
Ur = createSelector([xr, ma], (a2, e) => e ? a2[e] : void 0);
|
19294
19295
|
sn = A(tn);
|
19295
19296
|
an = A(rn);
|
19296
19297
|
on = createSelector([xr, $o], (a2, e) => {
|
@@ -22137,7 +22138,6 @@ var init_PollsQuizMenu = __esm({
|
|
22137
22138
|
const actions = (0, import_react_sdk47.useHMSActions)();
|
22138
22139
|
const [title, setTitle] = (0, import_react98.useState)("");
|
22139
22140
|
const localPeerRoleName = (0, import_react_sdk47.useHMSStore)(import_react_sdk47.selectLocalPeerRoleName);
|
22140
|
-
const [anonymous, setAnonymous] = (0, import_react98.useState)(false);
|
22141
22141
|
const [hideVoteCount, setHideVoteCount] = (0, import_react98.useState)(false);
|
22142
22142
|
const [error, setError] = (0, import_react98.useState)();
|
22143
22143
|
const [titleError, setTitleError] = (0, import_react98.useState)("");
|
@@ -22195,7 +22195,7 @@ var init_PollsQuizMenu = __esm({
|
|
22195
22195
|
border: "1px solid $border_default"
|
22196
22196
|
}
|
22197
22197
|
}
|
22198
|
-
), /* @__PURE__ */ import_react98.default.createElement(Flex, { align: "center", css: { mt: "$10" } }, /* @__PURE__ */ import_react98.default.createElement(Switch, { onCheckedChange: (value) => setHideVoteCount(value), css: { mr: "$6" } }), /* @__PURE__ */ import_react98.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, "Hide Vote Count")), /* @__PURE__ */ import_react98.default.createElement(
|
22198
|
+
), /* @__PURE__ */ import_react98.default.createElement(Flex, { align: "center", css: { mt: "$10" } }, /* @__PURE__ */ import_react98.default.createElement(Switch, { onCheckedChange: (value) => setHideVoteCount(value), css: { mr: "$6" } }), /* @__PURE__ */ import_react98.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, "Hide Vote Count")), /* @__PURE__ */ import_react98.default.createElement(
|
22199
22199
|
Button,
|
22200
22200
|
{
|
22201
22201
|
variant: "primary",
|
@@ -22206,7 +22206,7 @@ var init_PollsQuizMenu = __esm({
|
|
22206
22206
|
yield actions.interactivityCenter.createPoll({
|
22207
22207
|
id,
|
22208
22208
|
title,
|
22209
|
-
anonymous,
|
22209
|
+
anonymous: false,
|
22210
22210
|
rolesThatCanViewResponses: hideVoteCount && localPeerRoleName ? [localPeerRoleName] : void 0,
|
22211
22211
|
type: interactionType.toLowerCase()
|
22212
22212
|
// duration: showTimerDropDown ? timer : undefined,
|
@@ -22623,7 +22623,6 @@ var init_QuestionForm = __esm({
|
|
22623
22623
|
{ text: "", isCorrectAnswer: false }
|
22624
22624
|
]
|
22625
22625
|
);
|
22626
|
-
const [skippable, setSkippable] = (0, import_react106.useState)(false);
|
22627
22626
|
const isValid = isValidQuestion({
|
22628
22627
|
text,
|
22629
22628
|
type,
|
@@ -22765,7 +22764,7 @@ var init_QuestionForm = __esm({
|
|
22765
22764
|
maxWidth: "$20"
|
22766
22765
|
}
|
22767
22766
|
}
|
22768
|
-
))
|
22767
|
+
))) : null) : null, /* @__PURE__ */ import_react106.default.createElement(Flex, { justify: "end", align: "center", css: { mt: "$12", gap: "$8" } }, /* @__PURE__ */ import_react106.default.createElement(IconButton, { css: { border: "1px solid $border_bright" } }, /* @__PURE__ */ import_react106.default.createElement(import_react_icons52.TrashIcon, { onClick: () => setOpenDelete(!open) })), /* @__PURE__ */ import_react106.default.createElement(
|
22769
22768
|
Tooltip,
|
22770
22769
|
{
|
22771
22770
|
disabled: isValid,
|
@@ -22783,7 +22782,7 @@ var init_QuestionForm = __esm({
|
|
22783
22782
|
text,
|
22784
22783
|
type,
|
22785
22784
|
options,
|
22786
|
-
skippable,
|
22785
|
+
skippable: false,
|
22787
22786
|
draftID: question.draftID,
|
22788
22787
|
weight
|
22789
22788
|
});
|
@@ -23127,7 +23126,10 @@ var init_PeerParticipationSummary = __esm({
|
|
23127
23126
|
value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
|
23128
23127
|
},
|
23129
23128
|
{ title: "Avg. Time Taken", value: summary.avgTime },
|
23130
|
-
{
|
23129
|
+
{
|
23130
|
+
title: "Avg. Score",
|
23131
|
+
value: Number.isInteger(summary.avgScore) ? summary.avgScore : summary.avgScore.toFixed(2)
|
23132
|
+
}
|
23131
23133
|
] : [
|
23132
23134
|
{ title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position) ? `${peerEntry.position}/${summary.totalUsers}` : "-" },
|
23133
23135
|
{ title: "Points", value: peerEntry == null ? void 0 : peerEntry.score },
|
@@ -27640,10 +27642,10 @@ var init_useTileLayout = __esm({
|
|
27640
27642
|
tileHeight = maxRowHeight;
|
27641
27643
|
const calcWidths = aspectRatios.map((aR) => tileHeight * aR);
|
27642
27644
|
tileWidth = 0;
|
27643
|
-
for (const
|
27644
|
-
if (
|
27645
|
-
if (tileWidth <
|
27646
|
-
tileWidth =
|
27645
|
+
for (const w2 of calcWidths) {
|
27646
|
+
if (w2 < width) {
|
27647
|
+
if (tileWidth < w2) {
|
27648
|
+
tileWidth = w2;
|
27647
27649
|
}
|
27648
27650
|
}
|
27649
27651
|
}
|
@@ -31438,7 +31440,7 @@ function Notifications() {
|
|
31438
31440
|
case import_react_sdk110.HMSNotificationTypes.POLL_STARTED:
|
31439
31441
|
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
31440
31442
|
const pollStartedBy = vanillaStore.getState((0, import_react_sdk110.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
31441
|
-
ToastManager.addToast({
|
31443
|
+
const pollToastID = ToastManager.addToast({
|
31442
31444
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
31443
31445
|
action: /* @__PURE__ */ import_react209.default.createElement(
|
31444
31446
|
Button,
|
@@ -31453,8 +31455,17 @@ function Notifications() {
|
|
31453
31455
|
}
|
31454
31456
|
},
|
31455
31457
|
notification.data.type === "quiz" ? "Answer" : "Vote"
|
31456
|
-
)
|
31458
|
+
),
|
31459
|
+
duration: Infinity
|
31457
31460
|
});
|
31461
|
+
pollToastKey[notification.data.id] = pollToastID;
|
31462
|
+
}
|
31463
|
+
break;
|
31464
|
+
case import_react_sdk110.HMSNotificationTypes.POLL_STOPPED:
|
31465
|
+
const pollID = notification == null ? void 0 : notification.data.id;
|
31466
|
+
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
31467
|
+
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
31468
|
+
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
31458
31469
|
}
|
31459
31470
|
break;
|
31460
31471
|
default:
|
@@ -31466,7 +31477,7 @@ function Notifications() {
|
|
31466
31477
|
}
|
31467
31478
|
return /* @__PURE__ */ import_react209.default.createElement(import_react209.default.Fragment, null, /* @__PURE__ */ import_react209.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react209.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react209.default.createElement(TrackNotifications, null), roomState === import_react_sdk110.HMSRoomState.Connected ? /* @__PURE__ */ import_react209.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react209.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react209.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react209.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react209.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react209.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react209.default.createElement(HandRaisedNotifications, null));
|
31468
31479
|
}
|
31469
|
-
var import_react209, import_react_sdk110, import_react_icons97;
|
31480
|
+
var import_react209, import_react_sdk110, import_react_icons97, pollToastKey;
|
31470
31481
|
var init_Notifications = __esm({
|
31471
31482
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
31472
31483
|
"use strict";
|
@@ -31493,6 +31504,7 @@ var init_Notifications = __esm({
|
|
31493
31504
|
init_useUISettings();
|
31494
31505
|
init_utils3();
|
31495
31506
|
init_constants();
|
31507
|
+
pollToastKey = {};
|
31496
31508
|
}
|
31497
31509
|
});
|
31498
31510
|
|