extension-develop 2.1.3 → 3.0.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -25
- package/dist/930.js +44 -0
- package/dist/add-centralized-logger-script-background.js +220 -0
- package/dist/add-centralized-logger-script-content.js +172 -0
- package/dist/add-centralized-logger-script.js +332 -0
- package/dist/add-hmr-accept-code.js +5 -11
- package/dist/content-script-wrapper.js +166 -0
- package/dist/ensure-hmr-for-scripts.js +30 -11
- package/dist/minimum-chromium-file.js +6 -20
- package/dist/minimum-firefox-file.js +6 -12
- package/dist/module.js +12030 -9529
- package/dist/resolve-paths-loader.js +1391 -0
- package/dist/warn-no-default-export.js +121 -0
- package/package.json +21 -35
- package/dist/add-content-script-wrapper.js +0 -1789
- package/dist/build.d.ts +0 -2
- package/dist/cleanup.d.ts +0 -1
- package/dist/deprecated-shadow-root.js +0 -135
- package/dist/dev.d.ts +0 -2
- package/dist/develop-lib/config-types.d.ts +0 -86
- package/dist/develop-lib/extract-from-zip.d.ts +0 -1
- package/dist/develop-lib/find-nearest-package.d.ts +0 -2
- package/dist/develop-lib/generate-extension-types.d.ts +0 -1
- package/dist/develop-lib/generate-zip.d.ts +0 -2
- package/dist/develop-lib/get-extension-config.d.ts +0 -6
- package/dist/develop-lib/get-project-path.d.ts +0 -6
- package/dist/develop-lib/install-dependencies.d.ts +0 -2
- package/dist/develop-lib/messages.d.ts +0 -36
- package/dist/develop-lib/validate-user-dependencies.d.ts +0 -1
- package/dist/extensions/chrome-manager-extension/background.js +0 -84
- package/dist/extensions/chrome-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/chrome-manager-extension/images/logo.png +0 -0
- package/dist/extensions/chrome-manager-extension/manifest.json +0 -17
- package/dist/extensions/chrome-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/chrome-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/chrome-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/chrome-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/chrome-manager-extension/reload-service.js +0 -319
- package/dist/extensions/chromium-based-manager-extension/background.js +0 -84
- package/dist/extensions/chromium-based-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/chromium-based-manager-extension/images/logo.png +0 -0
- package/dist/extensions/chromium-based-manager-extension/manifest.json +0 -17
- package/dist/extensions/chromium-based-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/chromium-based-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/chromium-based-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/chromium-based-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/chromium-based-manager-extension/reload-service.js +0 -324
- package/dist/extensions/edge-manager-extension/background.js +0 -82
- package/dist/extensions/edge-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/edge-manager-extension/images/logo.png +0 -0
- package/dist/extensions/edge-manager-extension/manifest.json +0 -17
- package/dist/extensions/edge-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/edge-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/edge-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/edge-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/edge-manager-extension/reload-service.js +0 -321
- package/dist/extensions/firefox-manager-extension/background.js +0 -85
- package/dist/extensions/firefox-manager-extension/define-initial-tab.js +0 -64
- package/dist/extensions/firefox-manager-extension/images/logo.png +0 -0
- package/dist/extensions/firefox-manager-extension/manifest.json +0 -15
- package/dist/extensions/firefox-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/firefox-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/firefox-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/firefox-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/firefox-manager-extension/reload-service.js +0 -178
- package/dist/extensions/gecko-based-manager-extension/background.js +0 -67
- package/dist/extensions/gecko-based-manager-extension/define-initial-tab.js +0 -69
- package/dist/extensions/gecko-based-manager-extension/images/logo.png +0 -0
- package/dist/extensions/gecko-based-manager-extension/manifest.json +0 -16
- package/dist/extensions/gecko-based-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/gecko-based-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/gecko-based-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/gecko-based-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/gecko-based-manager-extension/reload-service.js +0 -171
- package/dist/inject-chromium-client-loader.js +0 -176
- package/dist/inject-firefox-client-loader.js +0 -169
- package/dist/minimum-content-file.js +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/preview.d.ts +0 -2
- package/dist/rslib.config.d.ts +0 -3
- package/dist/start.d.ts +0 -2
- package/dist/types.d.ts +0 -11
- package/dist/vitest.config.d.mts +0 -2
- package/dist/webpack/dev-server.d.ts +0 -3
- package/dist/webpack/plugin-browsers/browsers-lib/add-progress-bar.d.ts +0 -1
- package/dist/webpack/plugin-browsers/browsers-lib/constants.d.ts +0 -5
- package/dist/webpack/plugin-browsers/browsers-lib/dynamic-extension-manager.d.ts +0 -35
- package/dist/webpack/plugin-browsers/browsers-lib/html-merge.d.ts +0 -1
- package/dist/webpack/plugin-browsers/browsers-lib/instance-manager.d.ts +0 -74
- package/dist/webpack/plugin-browsers/browsers-lib/messages.d.ts +0 -164
- package/dist/webpack/plugin-browsers/browsers-lib/rdp-wire.d.ts +0 -7
- package/dist/webpack/plugin-browsers/browsers-lib/shared-utils.d.ts +0 -16
- package/dist/webpack/plugin-browsers/browsers-types.d.ts +0 -131
- package/dist/webpack/plugin-browsers/index.d.ts +0 -41
- package/dist/webpack/plugin-browsers/run-chromium/browser-config.d.ts +0 -3
- package/dist/webpack/plugin-browsers/run-chromium/create-profile.d.ts +0 -10
- package/dist/webpack/plugin-browsers/run-chromium/index.d.ts +0 -28
- package/dist/webpack/plugin-browsers/run-chromium/master-preferences.d.ts +0 -161
- package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/cdp-client.d.ts +0 -29
- package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/index.d.ts +0 -25
- package/dist/webpack/plugin-browsers/run-firefox/firefox/binary-detector.d.ts +0 -15
- package/dist/webpack/plugin-browsers/run-firefox/firefox/browser-config.d.ts +0 -7
- package/dist/webpack/plugin-browsers/run-firefox/firefox/create-profile.d.ts +0 -13
- package/dist/webpack/plugin-browsers/run-firefox/firefox/master-preferences.d.ts +0 -95
- package/dist/webpack/plugin-browsers/run-firefox/index.d.ts +0 -26
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/index.d.ts +0 -13
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/message-utils.d.ts +0 -2
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/messaging-client.d.ts +0 -42
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/setup-firefox-inspection.d.ts +0 -31
- package/dist/webpack/plugin-compatibility/feature-browser-specific-fields.d.ts +0 -9
- package/dist/webpack/plugin-compatibility/feature-polyfill.d.ts +0 -12
- package/dist/webpack/plugin-compatibility/index.d.ts +0 -13
- package/dist/webpack/plugin-compilation/clean-dist.d.ts +0 -8
- package/dist/webpack/plugin-compilation/env.d.ts +0 -9
- package/dist/webpack/plugin-compilation/index.d.ts +0 -12
- package/dist/webpack/plugin-css/common-style-loaders.d.ts +0 -8
- package/dist/webpack/plugin-css/css-in-content-script-loader.d.ts +0 -11
- package/dist/webpack/plugin-css/css-in-html-loader.d.ts +0 -8
- package/dist/webpack/plugin-css/css-tools/less.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/postcss.d.ts +0 -3
- package/dist/webpack/plugin-css/css-tools/sass.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/stylelint.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/tailwind.d.ts +0 -2
- package/dist/webpack/plugin-css/index.d.ts +0 -9
- package/dist/webpack/plugin-css/is-content-script.d.ts +0 -1
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/background.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/browser_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/chrome_url_overrides.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/devtools_page.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/options_ui.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/page_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sandbox.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/side_panel.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.theme_icons.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/icons.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/normalize.d.ts +0 -6
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/page_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/index.d.ts +0 -19
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/declarative_net_request.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/storage.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/locales-fields/index.d.ts +0 -1
- package/dist/webpack/plugin-extension/data/manifest-fields/normalize.d.ts +0 -10
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/background.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/content_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/service_worker.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/user_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/web-resources-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/special-folders/generate-entries.d.ts +0 -4
- package/dist/webpack/plugin-extension/data/special-folders/index.d.ts +0 -12
- package/dist/webpack/plugin-extension/feature-html/__spec__/html-lib/test-utils.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-html/html-lib/parse-html.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-html/html-lib/patch-html.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-html/html-lib/utils.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-html/index.d.ts +0 -37
- package/dist/webpack/plugin-extension/feature-html/steps/add-assets-to-compilation.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-html/steps/add-scripts-and-styles-to-compilation.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/add-to-file-dependencies.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/emit-html-file.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-html/steps/ensure-hmr-for-scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-html/steps/handle-common-errors.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/minimum-script-file.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-html/steps/throw-if-recompile-is-needed.d.ts +0 -13
- package/dist/webpack/plugin-extension/feature-html/steps/update-html-file.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-icons/index.d.ts +0 -25
- package/dist/webpack/plugin-extension/feature-icons/steps/add-to-file-dependencies.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-icons/steps/emit-file.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-json/index.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-locales/get-locales.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-locales/index.d.ts +0 -13
- package/dist/webpack/plugin-extension/feature-manifest/index.d.ts +0 -23
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/chrome_url_overrides.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/commands.d.ts +0 -16
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_security_policy.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/devtools_page.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/icons.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_page.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/storage.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/theme.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/user_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/web_accessible_resources.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +0 -12
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/chrome_settings_overrides.d.ts +0 -24
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/page_action.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/sidebar_action.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/theme_experiment.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/declarative_net_request.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/host_permissions.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/side_panel.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/steps/add-dependencies.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/steps/check-manifest-files.d.ts +0 -17
- package/dist/webpack/plugin-extension/feature-manifest/steps/emit-manifest.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/steps/throw-if-recompile.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-manifest/steps/update-manifest.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-scripts/index.d.ts +0 -27
- package/dist/webpack/plugin-extension/feature-scripts/scripts-lib/utils.d.ts +0 -3
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-content-script-wrapper.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-hmr-accept-code.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-for-main-world.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-scripts.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-scripts/steps/deprecated-shadow-root.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/javascript-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/minimum-content-file.d.ts +0 -0
- package/dist/webpack/plugin-extension/feature-scripts/steps/preact-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/react-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/svelte-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/typescript-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/vue-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-special-folders/copy-public-folder.d.ts +0 -14
- package/dist/webpack/plugin-extension/feature-special-folders/index.d.ts +0 -19
- package/dist/webpack/plugin-extension/feature-special-folders/warn-upon-folder-changes.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-web-resources/clean-matches.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-web-resources/index.d.ts +0 -18
- package/dist/webpack/plugin-extension/index.d.ts +0 -10
- package/dist/webpack/plugin-js-frameworks/index.d.ts +0 -13
- package/dist/webpack/plugin-js-frameworks/js-tools/babel.d.ts +0 -16
- package/dist/webpack/plugin-js-frameworks/js-tools/preact.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/react.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/svelte.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/typescript.d.ts +0 -36
- package/dist/webpack/plugin-js-frameworks/js-tools/vue.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/load-loader-options.d.ts +0 -1
- package/dist/webpack/plugin-reload/index.d.ts +0 -13
- package/dist/webpack/plugin-reload/reload-lib/messages.d.ts +0 -106
- package/dist/webpack/plugin-reload/reload-types.d.ts +0 -14
- package/dist/webpack/plugin-reload/start-server.d.ts +0 -4
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/index.d.ts +0 -14
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/broadcast-message.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/message-dispatcher.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/servers.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/index.d.ts +0 -3
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/inject-chromium-client-loader.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/minimum-chromium-file.d.ts +0 -0
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/index.d.ts +0 -3
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/inject-firefox-client-loader.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/minimum-firefox-file.d.ts +0 -0
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/index.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-background.d.ts +0 -15
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-csp.d.ts +0 -5
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-externally-connectable.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-web-resources.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/generate-manager-extension.d.ts +0 -15
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/index.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/target-web-extension-plugin/index.d.ts +0 -13
- package/dist/webpack/plugin-static-assets/index.d.ts +0 -12
- package/dist/webpack/webpack-config.d.ts +0 -14
- package/dist/webpack/webpack-lib/auto-exit.d.ts +0 -1
- package/dist/webpack/webpack-lib/constants.d.ts +0 -4
- package/dist/webpack/webpack-lib/messages.d.ts +0 -121
- package/dist/webpack/webpack-lib/port-manager.d.ts +0 -27
- package/dist/webpack/webpack-lib/utils.d.ts +0 -23
- package/dist/webpack/webpack-types.d.ts +0 -49
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface } from './browsers-types';
|
|
3
|
-
import { DevOptions } from '../../develop-lib/config-types';
|
|
4
|
-
/**
|
|
5
|
-
* BrowsersPlugin works by finding the binary for the browser specified in the
|
|
6
|
-
* options and running it with the extension loaded.
|
|
7
|
-
*
|
|
8
|
-
* Supports:
|
|
9
|
-
* - User profile - a custom profile can be specified for the target browser
|
|
10
|
-
* - Preferences - a set of preferences can be specified for the target browser
|
|
11
|
-
* - Starting URL - a custom URL can be specified for the target browser
|
|
12
|
-
* - Browser flags - a set of flags can be specified for the target browser
|
|
13
|
-
* - Chromium binary - a custom path to the Chromium binary can be specified
|
|
14
|
-
* - Gecko binary - a custom path to the Gecko binary can be specified
|
|
15
|
-
*
|
|
16
|
-
* First-class browsers supported:
|
|
17
|
-
* - Chrome
|
|
18
|
-
* - Edge
|
|
19
|
-
* - Firefox
|
|
20
|
-
*/
|
|
21
|
-
export declare class BrowsersPlugin {
|
|
22
|
-
static readonly name: string;
|
|
23
|
-
readonly extension: string | string[];
|
|
24
|
-
readonly browser: DevOptions['browser'];
|
|
25
|
-
readonly open?: boolean;
|
|
26
|
-
readonly browserFlags?: string[];
|
|
27
|
-
readonly excludeBrowserFlags?: string[];
|
|
28
|
-
readonly profile?: string | false;
|
|
29
|
-
readonly preferences?: Record<string, any>;
|
|
30
|
-
readonly startingUrl?: string;
|
|
31
|
-
readonly chromiumBinary?: string;
|
|
32
|
-
readonly geckoBinary?: string;
|
|
33
|
-
readonly instanceId?: string;
|
|
34
|
-
readonly port?: number | string;
|
|
35
|
-
readonly source?: string;
|
|
36
|
-
readonly watchSource?: boolean;
|
|
37
|
-
readonly reuseProfile?: boolean;
|
|
38
|
-
readonly dryRun?: boolean;
|
|
39
|
-
constructor(options: PluginInterface);
|
|
40
|
-
apply(compiler: Compiler): void;
|
|
41
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Compilation } from '@rspack/core';
|
|
2
|
-
import { BrowserConfig, DevOptions } from '../../../develop-lib/config-types';
|
|
3
|
-
interface CreateProfile {
|
|
4
|
-
browser: DevOptions['browser'];
|
|
5
|
-
userProfilePath: string | false | undefined;
|
|
6
|
-
configPreferences: BrowserConfig['preferences'];
|
|
7
|
-
instanceId?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function createProfile(compilation: Compilation, { browser, userProfilePath, configPreferences, instanceId }: CreateProfile): string;
|
|
10
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { PluginInterface } from '../browsers-types';
|
|
3
|
-
import { DevOptions } from '../../../develop-lib/config-types';
|
|
4
|
-
export declare class RunChromiumPlugin {
|
|
5
|
-
readonly extension: string | string[];
|
|
6
|
-
readonly browser: DevOptions['browser'];
|
|
7
|
-
readonly browserFlags?: string[];
|
|
8
|
-
readonly excludeBrowserFlags?: string[];
|
|
9
|
-
readonly profile?: string | false;
|
|
10
|
-
readonly preferences?: Record<string, any>;
|
|
11
|
-
readonly startingUrl?: string;
|
|
12
|
-
readonly autoReload?: boolean;
|
|
13
|
-
readonly stats?: boolean;
|
|
14
|
-
readonly chromiumBinary?: string;
|
|
15
|
-
readonly port?: string | number;
|
|
16
|
-
readonly instanceId?: string;
|
|
17
|
-
readonly source?: string;
|
|
18
|
-
readonly watchSource?: boolean;
|
|
19
|
-
readonly reuseProfile?: boolean;
|
|
20
|
-
readonly dryRun?: boolean;
|
|
21
|
-
private browserProcess?;
|
|
22
|
-
constructor(options: PluginInterface);
|
|
23
|
-
private launchChromium;
|
|
24
|
-
private launchWithDirectSpawn;
|
|
25
|
-
private setupProcessSignalHandlers;
|
|
26
|
-
private cleanupInstance;
|
|
27
|
-
apply(compiler: Compiler): void;
|
|
28
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
declare const chromeMasterPreferences: {
|
|
2
|
-
alternate_error_pages: {
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
};
|
|
5
|
-
autofill: {
|
|
6
|
-
enabled: boolean;
|
|
7
|
-
};
|
|
8
|
-
browser: {
|
|
9
|
-
check_default_browser: boolean;
|
|
10
|
-
default_browser_setting_enabled: boolean;
|
|
11
|
-
};
|
|
12
|
-
default_apps: string;
|
|
13
|
-
distribution: {
|
|
14
|
-
alternate_shortcut_text: boolean;
|
|
15
|
-
auto_launch_chrome: boolean;
|
|
16
|
-
import_bookmarks: boolean;
|
|
17
|
-
import_history: boolean;
|
|
18
|
-
import_home_page: boolean;
|
|
19
|
-
import_search_engine: boolean;
|
|
20
|
-
suppress_first_run_bubble: boolean;
|
|
21
|
-
do_not_register_for_update_launch: boolean;
|
|
22
|
-
make_chrome_default: boolean;
|
|
23
|
-
make_chrome_default_for_user: boolean;
|
|
24
|
-
require_eula: boolean;
|
|
25
|
-
suppress_first_run_default_browser_prompt: boolean;
|
|
26
|
-
};
|
|
27
|
-
dns_prefetching: {
|
|
28
|
-
enabled: boolean;
|
|
29
|
-
};
|
|
30
|
-
download: {
|
|
31
|
-
default_directory: string;
|
|
32
|
-
directory_upgrade: boolean;
|
|
33
|
-
open_pdf_in_adobe_reader: boolean;
|
|
34
|
-
prompt_for_download: boolean;
|
|
35
|
-
};
|
|
36
|
-
enable_do_not_track: boolean;
|
|
37
|
-
extensions: {
|
|
38
|
-
theme: {
|
|
39
|
-
use_system: boolean;
|
|
40
|
-
};
|
|
41
|
-
toolbarsize: number;
|
|
42
|
-
ui: {
|
|
43
|
-
developer_mode: boolean;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
plugins: {
|
|
47
|
-
plugins_list: {
|
|
48
|
-
enabled: boolean;
|
|
49
|
-
name: string;
|
|
50
|
-
}[];
|
|
51
|
-
show_details: boolean;
|
|
52
|
-
};
|
|
53
|
-
profile: {
|
|
54
|
-
password_manager_enabled: boolean;
|
|
55
|
-
};
|
|
56
|
-
safebrowsing: {
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
safebrowsingextended_reporting_enabled: boolean;
|
|
59
|
-
};
|
|
60
|
-
savefile: {
|
|
61
|
-
default_directory: string;
|
|
62
|
-
type: number;
|
|
63
|
-
};
|
|
64
|
-
search: {
|
|
65
|
-
suggest_enabled: boolean;
|
|
66
|
-
};
|
|
67
|
-
session: {
|
|
68
|
-
restore_on_startup: number;
|
|
69
|
-
};
|
|
70
|
-
sync: {
|
|
71
|
-
suppress_start: boolean;
|
|
72
|
-
};
|
|
73
|
-
sync_promo: {
|
|
74
|
-
show_on_first_run_allowed: boolean;
|
|
75
|
-
show_ntp_bubble: boolean;
|
|
76
|
-
};
|
|
77
|
-
translate: {
|
|
78
|
-
enabled: boolean;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
declare const edgeMasterPreferences: {
|
|
82
|
-
alternate_error_pages: {
|
|
83
|
-
enabled: boolean;
|
|
84
|
-
};
|
|
85
|
-
autofill: {
|
|
86
|
-
enabled: boolean;
|
|
87
|
-
};
|
|
88
|
-
browser: {
|
|
89
|
-
check_default_browser: boolean;
|
|
90
|
-
default_browser_setting_enabled: boolean;
|
|
91
|
-
};
|
|
92
|
-
default_apps: string;
|
|
93
|
-
distribution: {
|
|
94
|
-
alternate_shortcut_text: boolean;
|
|
95
|
-
auto_launch_chrome: boolean;
|
|
96
|
-
import_bookmarks: boolean;
|
|
97
|
-
import_history: boolean;
|
|
98
|
-
import_home_page: boolean;
|
|
99
|
-
import_search_engine: boolean;
|
|
100
|
-
suppress_first_run_bubble: boolean;
|
|
101
|
-
do_not_register_for_update_launch: boolean;
|
|
102
|
-
make_chrome_default: boolean;
|
|
103
|
-
make_chrome_default_for_user: boolean;
|
|
104
|
-
require_eula: boolean;
|
|
105
|
-
suppress_first_run_default_browser_prompt: boolean;
|
|
106
|
-
};
|
|
107
|
-
dns_prefetching: {
|
|
108
|
-
enabled: boolean;
|
|
109
|
-
};
|
|
110
|
-
download: {
|
|
111
|
-
default_directory: string;
|
|
112
|
-
directory_upgrade: boolean;
|
|
113
|
-
open_pdf_in_adobe_reader: boolean;
|
|
114
|
-
prompt_for_download: boolean;
|
|
115
|
-
};
|
|
116
|
-
enable_do_not_track: boolean;
|
|
117
|
-
extensions: {
|
|
118
|
-
theme: {
|
|
119
|
-
use_system: boolean;
|
|
120
|
-
};
|
|
121
|
-
toolbarsize: number;
|
|
122
|
-
ui: {
|
|
123
|
-
developer_mode: boolean;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
plugins: {
|
|
127
|
-
plugins_list: {
|
|
128
|
-
enabled: boolean;
|
|
129
|
-
name: string;
|
|
130
|
-
}[];
|
|
131
|
-
show_details: boolean;
|
|
132
|
-
};
|
|
133
|
-
profile: {
|
|
134
|
-
password_manager_enabled: boolean;
|
|
135
|
-
};
|
|
136
|
-
safebrowsing: {
|
|
137
|
-
enabled: boolean;
|
|
138
|
-
safebrowsingextended_reporting_enabled: boolean;
|
|
139
|
-
};
|
|
140
|
-
savefile: {
|
|
141
|
-
default_directory: string;
|
|
142
|
-
type: number;
|
|
143
|
-
};
|
|
144
|
-
search: {
|
|
145
|
-
suggest_enabled: boolean;
|
|
146
|
-
};
|
|
147
|
-
session: {
|
|
148
|
-
restore_on_startup: number;
|
|
149
|
-
};
|
|
150
|
-
sync: {
|
|
151
|
-
suppress_start: boolean;
|
|
152
|
-
};
|
|
153
|
-
sync_promo: {
|
|
154
|
-
show_on_first_run_allowed: boolean;
|
|
155
|
-
show_ntp_bubble: boolean;
|
|
156
|
-
};
|
|
157
|
-
translate: {
|
|
158
|
-
enabled: boolean;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
export { chromeMasterPreferences, edgeMasterPreferences };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare class CDPClient {
|
|
2
|
-
private port;
|
|
3
|
-
private host;
|
|
4
|
-
private ws;
|
|
5
|
-
private messageId;
|
|
6
|
-
private pendingRequests;
|
|
7
|
-
private targetWebSocketUrl;
|
|
8
|
-
constructor(port?: number, host?: string);
|
|
9
|
-
connect(): Promise<void>;
|
|
10
|
-
disconnect(): void;
|
|
11
|
-
sendCommand(method: string, params?: any, sessionId?: string): Promise<any>;
|
|
12
|
-
private handleMessage;
|
|
13
|
-
getTargets(): Promise<any[]>;
|
|
14
|
-
createTarget(url: string): Promise<string>;
|
|
15
|
-
navigateToUrl(targetId: string, url: string): Promise<void>;
|
|
16
|
-
private establishBrowserConnection;
|
|
17
|
-
attachToTarget(targetId: string): Promise<string>;
|
|
18
|
-
navigate(sessionId: string, url: string): Promise<void>;
|
|
19
|
-
waitForLoadEvent(sessionId: string): Promise<void>;
|
|
20
|
-
waitForContentScriptInjection(sessionId: string): Promise<void>;
|
|
21
|
-
evaluate(sessionId: string, expression: string): Promise<any>;
|
|
22
|
-
getPageHTML(sessionId: string): Promise<string>;
|
|
23
|
-
closeTarget(targetId: string): Promise<void>;
|
|
24
|
-
forceReloadExtension(extensionId: string): Promise<boolean>;
|
|
25
|
-
getExtensionInfo(extensionId: string): Promise<any>;
|
|
26
|
-
loadUnpackedExtension(path: string): Promise<string>;
|
|
27
|
-
unloadExtension(extensionId: string): Promise<boolean>;
|
|
28
|
-
}
|
|
29
|
-
export declare function checkChromeRemoteDebugging(port?: number): Promise<boolean>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { type DevOptions } from '../../../../develop-lib/config-types';
|
|
3
|
-
export declare class SetupChromeInspectionStep {
|
|
4
|
-
private devOptions;
|
|
5
|
-
private cdpClient;
|
|
6
|
-
private currentTargetId;
|
|
7
|
-
private currentSessionId;
|
|
8
|
-
private isInitialized;
|
|
9
|
-
constructor(devOptions: DevOptions & {
|
|
10
|
-
startingUrl?: string;
|
|
11
|
-
});
|
|
12
|
-
private getCdpPort;
|
|
13
|
-
initialize(port?: number): Promise<void>;
|
|
14
|
-
inspectSource(url: string): Promise<string>;
|
|
15
|
-
startWatching(websocketServer: any): Promise<void>;
|
|
16
|
-
private setupWebSocketHandler;
|
|
17
|
-
private setupConnectionHandler;
|
|
18
|
-
stopWatching(): void;
|
|
19
|
-
private handleFileChange;
|
|
20
|
-
private reconnectToTarget;
|
|
21
|
-
printHTML(html: string): void;
|
|
22
|
-
printUpdatedHTML(html: string): void;
|
|
23
|
-
cleanup(): Promise<void>;
|
|
24
|
-
apply(compiler: Compiler): void;
|
|
25
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class FirefoxBinaryDetector {
|
|
2
|
-
static detectFirefoxBinary(customBinary?: string): Promise<string>;
|
|
3
|
-
private static detectFlatpakFirefox;
|
|
4
|
-
private static detectSnapFirefox;
|
|
5
|
-
private static detectTraditionalFirefox;
|
|
6
|
-
private static detectCustomFirefox;
|
|
7
|
-
static generateFirefoxArgs(binaryPath: string, profilePath: string, debugPort: number, additionalArgs?: string[]): {
|
|
8
|
-
binary: string;
|
|
9
|
-
args: string[];
|
|
10
|
-
};
|
|
11
|
-
static validateFirefoxBinary(binaryPath: string): Promise<{
|
|
12
|
-
version: string;
|
|
13
|
-
path: string;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Compilation } from '@rspack/core';
|
|
2
|
-
import { type DevOptions, type BrowserConfig } from '../../../../develop-lib/config-types';
|
|
3
|
-
export declare function browserConfig(compilation: Compilation, configOptions: DevOptions & BrowserConfig & {
|
|
4
|
-
keepProfileChanges?: boolean;
|
|
5
|
-
copyFromProfile?: string;
|
|
6
|
-
instanceId?: string;
|
|
7
|
-
}): Promise<string>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Compilation } from '@rspack/core';
|
|
2
|
-
import FirefoxProfile from 'firefox-profile';
|
|
3
|
-
import { BrowserConfig, DevOptions } from '../../../../develop-lib/config-types';
|
|
4
|
-
interface FirefoxProfileOptions {
|
|
5
|
-
browser: DevOptions['browser'];
|
|
6
|
-
userProfilePath: string | false | undefined;
|
|
7
|
-
configPreferences: BrowserConfig['preferences'];
|
|
8
|
-
keepProfileChanges?: boolean;
|
|
9
|
-
copyFromProfile?: string;
|
|
10
|
-
instanceId?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function createProfile(compilation: Compilation, { browser, userProfilePath, configPreferences, instanceId }: FirefoxProfileOptions): FirefoxProfile;
|
|
13
|
-
export {};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
declare const masterPreferences: {
|
|
2
|
-
'app.update.enabled': boolean;
|
|
3
|
-
'browser.dom.window.dump.enabled': boolean;
|
|
4
|
-
'browser.formfill.enable': boolean;
|
|
5
|
-
'browser.link.open_newwindow': number;
|
|
6
|
-
'browser.sessionstore.enabled': boolean;
|
|
7
|
-
'browser.shell.checkDefaultBrowser': boolean;
|
|
8
|
-
'browser.sync.enabled': boolean;
|
|
9
|
-
'browser.startup.page': number;
|
|
10
|
-
'browser.startup.homepage_welcome_url': string;
|
|
11
|
-
'browser.startup.homepage_welcome_url_additional': string;
|
|
12
|
-
'browser.urlbar.suggest.bookmark': boolean;
|
|
13
|
-
'browser.urlbar.suggest.clipboard': boolean;
|
|
14
|
-
'browser.urlbar.suggest.history': boolean;
|
|
15
|
-
'browser.urlbar.suggest.openpage': boolean;
|
|
16
|
-
'browser.urlbar.suggest.remotetab': boolean;
|
|
17
|
-
'browser.urlbar.suggest.searches': boolean;
|
|
18
|
-
'browser.urlbar.suggest.topsites': boolean;
|
|
19
|
-
'browser.urlbar.suggest.engines': boolean;
|
|
20
|
-
'browser.urlbar.suggest.calculator': boolean;
|
|
21
|
-
'browser.urlbar.suggest.recentsearches': boolean;
|
|
22
|
-
'datareporting.policy.dataSubmissionEnabled': boolean;
|
|
23
|
-
'datareporting.policy.firstRunURL': string;
|
|
24
|
-
'devtools.browserconsole.contentMessages': boolean;
|
|
25
|
-
'devtools.chrome.enabled': boolean;
|
|
26
|
-
'devtools.debugger.prompt-connection': boolean;
|
|
27
|
-
'devtools.debugger.remote-enabled': boolean;
|
|
28
|
-
'devtools.errorconsole.enabled': boolean;
|
|
29
|
-
'extensions.installDistroAddons': boolean;
|
|
30
|
-
'extensions.autoDisableScopes': number;
|
|
31
|
-
'extensions.chrome.enabled': boolean;
|
|
32
|
-
'extensions.logging.enabled': boolean;
|
|
33
|
-
'extensions.checkCompatibility.nightly': boolean;
|
|
34
|
-
'extensions.update.enabled': boolean;
|
|
35
|
-
'extensions.update.notifyUser': boolean;
|
|
36
|
-
'extensions.enabledScopes': number;
|
|
37
|
-
'extensions.getAddons.cache.enabled': boolean;
|
|
38
|
-
'network.prefetch.next': boolean;
|
|
39
|
-
'network.speculative.preconnect.enabled': boolean;
|
|
40
|
-
'toolkit.telemetry.enabled': boolean;
|
|
41
|
-
'toolkit.telemetry.archive.enabled': boolean;
|
|
42
|
-
'toolkit.telemetry.newProfilePing.enabled': boolean;
|
|
43
|
-
'toolkit.recovery.enabled': boolean;
|
|
44
|
-
'urlclassifier.updateinterval': number;
|
|
45
|
-
'security.enterprise_roots.enabled': boolean;
|
|
46
|
-
'xpinstall.signatures.required': boolean;
|
|
47
|
-
};
|
|
48
|
-
export default masterPreferences;
|
|
49
|
-
export declare function getPreferences(customPrefs: Record<string, any>): {
|
|
50
|
-
'app.update.enabled': boolean;
|
|
51
|
-
'browser.dom.window.dump.enabled': boolean;
|
|
52
|
-
'browser.formfill.enable': boolean;
|
|
53
|
-
'browser.link.open_newwindow': number;
|
|
54
|
-
'browser.sessionstore.enabled': boolean;
|
|
55
|
-
'browser.shell.checkDefaultBrowser': boolean;
|
|
56
|
-
'browser.sync.enabled': boolean;
|
|
57
|
-
'browser.startup.page': number;
|
|
58
|
-
'browser.startup.homepage_welcome_url': string;
|
|
59
|
-
'browser.startup.homepage_welcome_url_additional': string;
|
|
60
|
-
'browser.urlbar.suggest.bookmark': boolean;
|
|
61
|
-
'browser.urlbar.suggest.clipboard': boolean;
|
|
62
|
-
'browser.urlbar.suggest.history': boolean;
|
|
63
|
-
'browser.urlbar.suggest.openpage': boolean;
|
|
64
|
-
'browser.urlbar.suggest.remotetab': boolean;
|
|
65
|
-
'browser.urlbar.suggest.searches': boolean;
|
|
66
|
-
'browser.urlbar.suggest.topsites': boolean;
|
|
67
|
-
'browser.urlbar.suggest.engines': boolean;
|
|
68
|
-
'browser.urlbar.suggest.calculator': boolean;
|
|
69
|
-
'browser.urlbar.suggest.recentsearches': boolean;
|
|
70
|
-
'datareporting.policy.dataSubmissionEnabled': boolean;
|
|
71
|
-
'datareporting.policy.firstRunURL': string;
|
|
72
|
-
'devtools.browserconsole.contentMessages': boolean;
|
|
73
|
-
'devtools.chrome.enabled': boolean;
|
|
74
|
-
'devtools.debugger.prompt-connection': boolean;
|
|
75
|
-
'devtools.debugger.remote-enabled': boolean;
|
|
76
|
-
'devtools.errorconsole.enabled': boolean;
|
|
77
|
-
'extensions.installDistroAddons': boolean;
|
|
78
|
-
'extensions.autoDisableScopes': number;
|
|
79
|
-
'extensions.chrome.enabled': boolean;
|
|
80
|
-
'extensions.logging.enabled': boolean;
|
|
81
|
-
'extensions.checkCompatibility.nightly': boolean;
|
|
82
|
-
'extensions.update.enabled': boolean;
|
|
83
|
-
'extensions.update.notifyUser': boolean;
|
|
84
|
-
'extensions.enabledScopes': number;
|
|
85
|
-
'extensions.getAddons.cache.enabled': boolean;
|
|
86
|
-
'network.prefetch.next': boolean;
|
|
87
|
-
'network.speculative.preconnect.enabled': boolean;
|
|
88
|
-
'toolkit.telemetry.enabled': boolean;
|
|
89
|
-
'toolkit.telemetry.archive.enabled': boolean;
|
|
90
|
-
'toolkit.telemetry.newProfilePing.enabled': boolean;
|
|
91
|
-
'toolkit.recovery.enabled': boolean;
|
|
92
|
-
'urlclassifier.updateinterval': number;
|
|
93
|
-
'security.enterprise_roots.enabled': boolean;
|
|
94
|
-
'xpinstall.signatures.required': boolean;
|
|
95
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type PluginInterface } from '../browsers-types';
|
|
2
|
-
import { DevOptions } from '../../../develop-lib/config-types';
|
|
3
|
-
export declare class RunFirefoxPlugin {
|
|
4
|
-
readonly extension: string | string[];
|
|
5
|
-
readonly browser: DevOptions['browser'];
|
|
6
|
-
readonly browserFlags?: string[];
|
|
7
|
-
readonly profile?: string | false;
|
|
8
|
-
readonly preferences?: Record<string, any>;
|
|
9
|
-
readonly startingUrl?: string;
|
|
10
|
-
readonly autoReload?: boolean;
|
|
11
|
-
readonly stats?: boolean;
|
|
12
|
-
readonly geckoBinary?: string;
|
|
13
|
-
readonly port?: number | string;
|
|
14
|
-
readonly instanceId?: string;
|
|
15
|
-
readonly keepProfileChanges?: boolean;
|
|
16
|
-
readonly copyFromProfile?: string;
|
|
17
|
-
readonly source?: string | boolean;
|
|
18
|
-
readonly watchSource?: boolean;
|
|
19
|
-
readonly reuseProfile?: boolean;
|
|
20
|
-
readonly dryRun?: boolean;
|
|
21
|
-
constructor(options: PluginInterface);
|
|
22
|
-
private launchFirefox;
|
|
23
|
-
apply(compiler: any): void;
|
|
24
|
-
private setupProcessSignalHandlers;
|
|
25
|
-
private cleanupInstance;
|
|
26
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Compilation } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface } from '../../browsers-types';
|
|
3
|
-
export declare class RemoteFirefox {
|
|
4
|
-
private readonly options;
|
|
5
|
-
private client;
|
|
6
|
-
constructor(configOptions: PluginInterface);
|
|
7
|
-
private connectClient;
|
|
8
|
-
installAddons(compilation: Compilation): Promise<void>;
|
|
9
|
-
inspectSource(compilation: Compilation, opts: {
|
|
10
|
-
startingUrl?: string;
|
|
11
|
-
source?: string | boolean;
|
|
12
|
-
}): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import EventEmitter from 'events';
|
|
2
|
-
export declare class MessagingClient extends EventEmitter {
|
|
3
|
-
private incomingData;
|
|
4
|
-
private pendingRequests;
|
|
5
|
-
private readonly activeRequests;
|
|
6
|
-
private connection?;
|
|
7
|
-
connect(port: number): Promise<void>;
|
|
8
|
-
disconnect(): void;
|
|
9
|
-
private rejectAllRequests;
|
|
10
|
-
request(requestProps: any): Promise<any>;
|
|
11
|
-
private flushPendingRequests;
|
|
12
|
-
private expectReply;
|
|
13
|
-
private onData;
|
|
14
|
-
private readMessage;
|
|
15
|
-
private handleMessage;
|
|
16
|
-
onError(error: Error): void;
|
|
17
|
-
onEnd(): void;
|
|
18
|
-
onTimeout(): void;
|
|
19
|
-
getTargets(): Promise<any>;
|
|
20
|
-
navigate(tabId: string, url: string): Promise<void>;
|
|
21
|
-
attach(tabId: string): Promise<any>;
|
|
22
|
-
getTargetFromDescriptor(descriptorId: string): Promise<{
|
|
23
|
-
targetActor: any;
|
|
24
|
-
consoleActor: any;
|
|
25
|
-
} | {
|
|
26
|
-
targetActor?: undefined;
|
|
27
|
-
consoleActor?: undefined;
|
|
28
|
-
}>;
|
|
29
|
-
addTab(url: string): Promise<any>;
|
|
30
|
-
navigateViaScript(consoleActor: string, url: string): Promise<void>;
|
|
31
|
-
waitForPageReady(consoleActor: string, url: string, timeoutMs?: number): Promise<void>;
|
|
32
|
-
waitForLoadEvent(tabId: string): Promise<void>;
|
|
33
|
-
evaluate(tabId: string, expression: string): Promise<any>;
|
|
34
|
-
evaluateRaw(tabId: string, expression: string): Promise<any>;
|
|
35
|
-
private coerceResponseToString;
|
|
36
|
-
private resolveActorForEvaluation;
|
|
37
|
-
private serializeDocument;
|
|
38
|
-
private extractShadowContent;
|
|
39
|
-
private mergeShadowIntoMain;
|
|
40
|
-
getPageHTML(descriptorActor: string, consoleActorHint?: string): Promise<string>;
|
|
41
|
-
closeTab(tabId: string): Promise<void>;
|
|
42
|
-
}
|
package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/setup-firefox-inspection.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { DevOptions } from '../../../../develop-lib/config-types';
|
|
3
|
-
interface SetupFirefoxInspectionStepOptions extends DevOptions {
|
|
4
|
-
startingUrl?: string;
|
|
5
|
-
instanceId?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class SetupFirefoxInspectionStep {
|
|
8
|
-
private readonly devOptions;
|
|
9
|
-
private client;
|
|
10
|
-
private currentConsoleActor;
|
|
11
|
-
private currentTabActor;
|
|
12
|
-
private isWatching;
|
|
13
|
-
private debounceTimer;
|
|
14
|
-
private initialized;
|
|
15
|
-
private lastUrlToInspect;
|
|
16
|
-
constructor(devOptions: SetupFirefoxInspectionStepOptions);
|
|
17
|
-
private getRdpPort;
|
|
18
|
-
private initialize;
|
|
19
|
-
private resolveUrlToInspect;
|
|
20
|
-
private selectActors;
|
|
21
|
-
private ensureNavigatedAndLoaded;
|
|
22
|
-
private ensureUrlAndReady;
|
|
23
|
-
private resolveConsoleActor;
|
|
24
|
-
private printHTML;
|
|
25
|
-
private waitForContentScriptInjection;
|
|
26
|
-
private setupWebSocketHandler;
|
|
27
|
-
private attachConnection;
|
|
28
|
-
private handleFileChange;
|
|
29
|
-
apply(compiler: Compiler): void;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface, type Manifest } from '../webpack-types';
|
|
3
|
-
export declare class BrowserSpecificFieldsPlugin {
|
|
4
|
-
private readonly browser;
|
|
5
|
-
private readonly manifestPath;
|
|
6
|
-
constructor(options: PluginInterface);
|
|
7
|
-
patchManifest(manifest: Manifest): string;
|
|
8
|
-
apply(compiler: Compiler): void;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { PluginInterface } from '../webpack-types';
|
|
3
|
-
/**
|
|
4
|
-
* PolyfillPlugin is responsible for providing the `browser`
|
|
5
|
-
* global variable to the extension's codebase.
|
|
6
|
-
*/
|
|
7
|
-
export declare class PolyfillPlugin {
|
|
8
|
-
readonly manifestPath: string;
|
|
9
|
-
readonly browser?: string;
|
|
10
|
-
constructor(options: PluginInterface);
|
|
11
|
-
apply(compiler: Compiler): void;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { PluginInterface } from '../webpack-types';
|
|
3
|
-
import { type DevOptions } from '../../develop-lib/config-types';
|
|
4
|
-
export declare class CompatibilityPlugin {
|
|
5
|
-
static readonly name: string;
|
|
6
|
-
readonly manifestPath: string;
|
|
7
|
-
readonly browser: DevOptions['browser'];
|
|
8
|
-
readonly polyfill: DevOptions['polyfill'];
|
|
9
|
-
constructor(options: PluginInterface & {
|
|
10
|
-
polyfill: DevOptions['polyfill'];
|
|
11
|
-
});
|
|
12
|
-
apply(compiler: Compiler): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { PluginInterface } from '../webpack-types';
|
|
3
|
-
import { DevOptions } from '../../develop-lib/config-types';
|
|
4
|
-
export declare class EnvPlugin {
|
|
5
|
-
readonly manifestPath: string;
|
|
6
|
-
readonly browser: DevOptions['browser'];
|
|
7
|
-
constructor(options: PluginInterface);
|
|
8
|
-
apply(compiler: Compiler): void;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface } from '../webpack-types';
|
|
3
|
-
export declare class CompilationPlugin {
|
|
4
|
-
static readonly name: string;
|
|
5
|
-
readonly manifestPath: string;
|
|
6
|
-
readonly browser: PluginInterface['browser'];
|
|
7
|
-
readonly clean: boolean;
|
|
8
|
-
constructor(options: PluginInterface & {
|
|
9
|
-
clean: boolean;
|
|
10
|
-
});
|
|
11
|
-
apply(compiler: Compiler): void;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type RuleSetRule } from '@rspack/core';
|
|
2
|
-
import { type DevOptions } from '../../develop-lib/config-types';
|
|
3
|
-
export interface StyleLoaderOptions {
|
|
4
|
-
mode: DevOptions['mode'];
|
|
5
|
-
loader?: string;
|
|
6
|
-
loaderOptions?: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
export declare function commonStyleLoaders(projectPath: string, opts: StyleLoaderOptions): Promise<RuleSetRule['use']>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DevOptions } from '../../develop-lib/config-types';
|
|
2
|
-
export declare function cssInContentScriptLoader(projectPath: string, mode: DevOptions['mode']): Promise<{
|
|
3
|
-
use: import("@rspack/core").RuleSetUse | undefined;
|
|
4
|
-
test: RegExp;
|
|
5
|
-
exclude: RegExp | undefined;
|
|
6
|
-
type: "asset";
|
|
7
|
-
generator: {
|
|
8
|
-
filename: string;
|
|
9
|
-
};
|
|
10
|
-
issuer: (issuer: string) => boolean;
|
|
11
|
-
}[]>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DevOptions } from '../../develop-lib/config-types';
|
|
2
|
-
export declare function cssInHtmlLoader(projectPath: string, mode: DevOptions['mode']): Promise<{
|
|
3
|
-
use: import("@rspack/core").RuleSetUse | undefined;
|
|
4
|
-
test: RegExp;
|
|
5
|
-
exclude: RegExp | undefined;
|
|
6
|
-
type: string;
|
|
7
|
-
issuer: (issuer: string) => boolean;
|
|
8
|
-
}[]>;
|