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
package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Manifest, type FilepathList } from '../../../../webpack-types';
|
|
2
|
-
export declare function optionsUi(manifest: Manifest, excludeList: FilepathList): {
|
|
3
|
-
options_ui: {
|
|
4
|
-
page?: string | undefined;
|
|
5
|
-
chrome_style?: boolean | undefined;
|
|
6
|
-
open_in_tab?: boolean | undefined;
|
|
7
|
-
};
|
|
8
|
-
} | undefined;
|
package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/page_action.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Manifest, type FilepathList } from '../../../../webpack-types';
|
|
2
|
-
export declare function pageAction(manifest: Manifest, excludeList: FilepathList): {
|
|
3
|
-
page_action: {
|
|
4
|
-
default_icon?: string | chrome.runtime.ManifestIcons | undefined;
|
|
5
|
-
default_popup?: string | undefined;
|
|
6
|
-
default_title?: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
} | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Manifest, type FilepathList } from '../../../../webpack-types';
|
|
2
|
-
export declare function webAccessibleResources(manifest: Manifest, excludeList: FilepathList): 0 | {
|
|
3
|
-
web_accessible_resources: string[] | {
|
|
4
|
-
resources: string[];
|
|
5
|
-
matches?: string[];
|
|
6
|
-
extension_ids?: string[];
|
|
7
|
-
use_dynamic_url?: boolean;
|
|
8
|
-
}[];
|
|
9
|
-
} | undefined;
|
package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/background.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Manifest, type FilepathList } from '../../../../webpack-types';
|
|
2
|
-
export declare function background(manifest: Manifest, excludeList: FilepathList): {
|
|
3
|
-
background: {
|
|
4
|
-
scripts: string[];
|
|
5
|
-
page?: string | undefined;
|
|
6
|
-
persistent?: boolean | undefined;
|
|
7
|
-
service_worker: string;
|
|
8
|
-
type?: "module";
|
|
9
|
-
};
|
|
10
|
-
} | undefined;
|
package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type Manifest, type FilepathList } from '../../../../webpack-types';
|
|
2
|
-
export declare function browserAction(manifest: Manifest, excludeList: FilepathList): {
|
|
3
|
-
browser_action: {
|
|
4
|
-
theme_icons?: {
|
|
5
|
-
dark: string;
|
|
6
|
-
light: string;
|
|
7
|
-
}[] | undefined;
|
|
8
|
-
default_icon?: string | chrome.runtime.ManifestIcons | undefined;
|
|
9
|
-
default_popup?: string | undefined;
|
|
10
|
-
default_title?: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
} | undefined;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type Manifest, type FilepathList } from '../../../../webpack-types';
|
|
2
|
-
export declare function chromeSettingsOverrides(manifest: Manifest, excludeList: FilepathList): {
|
|
3
|
-
chrome_settings_overrides: {
|
|
4
|
-
startup_pages?: string[] | undefined;
|
|
5
|
-
search_provider?: {
|
|
6
|
-
favicon_url?: string | undefined;
|
|
7
|
-
name?: string | undefined;
|
|
8
|
-
keyword?: string | undefined;
|
|
9
|
-
search_url: string;
|
|
10
|
-
encoding?: string | undefined;
|
|
11
|
-
suggest_url?: string | undefined;
|
|
12
|
-
instant_url?: string | undefined;
|
|
13
|
-
image_url?: string | undefined;
|
|
14
|
-
search_url_post_params?: string | undefined;
|
|
15
|
-
suggest_url_post_params?: string | undefined;
|
|
16
|
-
instant_url_post_params?: string | undefined;
|
|
17
|
-
image_url_post_params?: string | undefined;
|
|
18
|
-
alternate_urls?: string[] | undefined;
|
|
19
|
-
prepopulated_id?: number | undefined;
|
|
20
|
-
is_default?: boolean | undefined;
|
|
21
|
-
} | undefined;
|
|
22
|
-
homepage?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
} | undefined;
|
package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/page_action.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { pageAction } from '../common/page_action';
|
package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/sidebar_action.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { sidebarAction } from '../common/sidebar_action';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Manifest, type FilepathList } from '../../../../webpack-types';
|
|
2
|
-
export declare function action(manifest: Manifest, excludeList: FilepathList): {
|
|
3
|
-
action: {
|
|
4
|
-
default_icon?: string | chrome.runtime.ManifestIcons | undefined;
|
|
5
|
-
default_popup?: string | undefined;
|
|
6
|
-
default_title?: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
} | undefined;
|
package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/background.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Manifest, type FilepathList } from '../../../../webpack-types';
|
|
2
|
-
export declare function backgroundServiceWorker(manifest: Manifest, excludeList: FilepathList): "" | {
|
|
3
|
-
background: {
|
|
4
|
-
service_worker: string;
|
|
5
|
-
scripts?: string[] | undefined;
|
|
6
|
-
page?: string | undefined;
|
|
7
|
-
persistent?: boolean | undefined;
|
|
8
|
-
type?: "module";
|
|
9
|
-
};
|
|
10
|
-
} | undefined;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { PluginInterface, FilepathList } from '../../../webpack-types';
|
|
3
|
-
export declare class CheckManifestFiles {
|
|
4
|
-
readonly manifestPath: string;
|
|
5
|
-
readonly includeList?: FilepathList;
|
|
6
|
-
readonly excludeList?: FilepathList;
|
|
7
|
-
constructor(options: PluginInterface);
|
|
8
|
-
extractPaths(value: string | string[] | {
|
|
9
|
-
light: string;
|
|
10
|
-
dark: string;
|
|
11
|
-
} | {
|
|
12
|
-
light: string;
|
|
13
|
-
dark: string;
|
|
14
|
-
}[]): any[];
|
|
15
|
-
private handleErrors;
|
|
16
|
-
apply(compiler: Compiler): void;
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { DevOptions } from '../../../../develop-lib/config-types';
|
|
3
|
-
import { PluginInterface, FilepathList } from '../../../webpack-types';
|
|
4
|
-
export declare class ThrowIfRecompileIsNeeded {
|
|
5
|
-
readonly manifestPath: string;
|
|
6
|
-
readonly browser: DevOptions['browser'];
|
|
7
|
-
readonly includeList?: FilepathList;
|
|
8
|
-
constructor(options: PluginInterface);
|
|
9
|
-
private flattenAndSort;
|
|
10
|
-
apply(compiler: Compiler): void;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { FilepathList, PluginInterface } from '../../../webpack-types';
|
|
3
|
-
export declare class UpdateManifest {
|
|
4
|
-
readonly manifestPath: string;
|
|
5
|
-
readonly excludeList?: FilepathList;
|
|
6
|
-
constructor(options: PluginInterface);
|
|
7
|
-
private applyDevOverrides;
|
|
8
|
-
apply(compiler: Compiler): void;
|
|
9
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { type FilepathList, type PluginInterface } from '../../webpack-types';
|
|
3
|
-
import { type DevOptions } from '../../../module';
|
|
4
|
-
/**
|
|
5
|
-
* ScriptsPlugin is responsible for handiling all possible JavaScript
|
|
6
|
-
* (and CSS, for content_scripts) fields in manifest.json. It also
|
|
7
|
-
* supports extra scripts defined via this.include option. These
|
|
8
|
-
* extra scripts are added to the compilation and are also HMR
|
|
9
|
-
* enabled. They are useful for adding extra scripts to the
|
|
10
|
-
* extension runtime, like content_scripts via `scripting`, for example.
|
|
11
|
-
*
|
|
12
|
-
* Features supported:
|
|
13
|
-
* - content_scripts.js - HMR enabled
|
|
14
|
-
* - content_scripts.css - HMR enabled
|
|
15
|
-
* - background.scripts - HMR enabled
|
|
16
|
-
* - service_worker - Reloaded by chrome.runtime.reload()
|
|
17
|
-
* - user_scripts.api_scripts - HMR enabled
|
|
18
|
-
* - scripts via this.include - HMR enabled
|
|
19
|
-
*/
|
|
20
|
-
export declare class ScriptsPlugin {
|
|
21
|
-
readonly manifestPath: string;
|
|
22
|
-
readonly includeList?: FilepathList;
|
|
23
|
-
readonly excludeList?: FilepathList;
|
|
24
|
-
readonly browser?: DevOptions['browser'];
|
|
25
|
-
constructor(options: PluginInterface);
|
|
26
|
-
apply(compiler: Compiler): void;
|
|
27
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { FilepathList } from '../../../webpack-types';
|
|
2
|
-
export declare function getScriptEntries(scriptPath: string | string[] | undefined, excludeList: FilepathList): string[];
|
|
3
|
-
export declare function getCssEntries(scriptPath: string | string[] | undefined, excludeList: FilepathList): string[];
|
package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-for-main-world.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { type FilepathList, type PluginInterface } from '../../../webpack-types';
|
|
3
|
-
import { DevOptions } from '../../../../develop-lib/config-types';
|
|
4
|
-
export declare class AddPublicPathForMainWorld {
|
|
5
|
-
readonly manifestPath: string;
|
|
6
|
-
readonly browser: DevOptions['browser'];
|
|
7
|
-
readonly includeList: FilepathList;
|
|
8
|
-
readonly excludeList: FilepathList;
|
|
9
|
-
constructor(options: PluginInterface);
|
|
10
|
-
apply(_compiler: Compiler): void;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { type FilepathList, type PluginInterface } from '../../../webpack-types';
|
|
3
|
-
export declare class AddScripts {
|
|
4
|
-
readonly manifestPath: string;
|
|
5
|
-
readonly includeList: FilepathList;
|
|
6
|
-
readonly excludeList: FilepathList;
|
|
7
|
-
constructor(options: PluginInterface);
|
|
8
|
-
apply(compiler: Compiler): void;
|
|
9
|
-
}
|
package/dist/webpack/plugin-extension/feature-scripts/steps/javascript-content-script-wrapper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generateJavaScriptWrapperCode(source: string, resourcePath: string): string;
|
|
File without changes
|
package/dist/webpack/plugin-extension/feature-scripts/steps/preact-content-script-wrapper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generatePreactWrapperCode(source: string, resourcePath: string): string;
|
package/dist/webpack/plugin-extension/feature-scripts/steps/react-content-script-wrapper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generateReactWrapperCode(source: string, resourcePath: string): string;
|
package/dist/webpack/plugin-extension/feature-scripts/steps/svelte-content-script-wrapper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generateSvelteWrapperCode(source: string, resourcePath: string): string;
|
package/dist/webpack/plugin-extension/feature-scripts/steps/typescript-content-script-wrapper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generateTypeScriptWrapperCode(source: string, resourcePath: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generateVueWrapperCode(source: string, resourcePath: string): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
interface CopyPublicFolderOptions {
|
|
3
|
-
manifestPath: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class CopyPublicFolder {
|
|
6
|
-
private readonly options;
|
|
7
|
-
constructor(options: CopyPublicFolderOptions);
|
|
8
|
-
private getPublicFolderPath;
|
|
9
|
-
private ensureDirectoryExistence;
|
|
10
|
-
private copyFile;
|
|
11
|
-
private copyFolder;
|
|
12
|
-
apply(compiler: Compiler): void;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
interface SpecialFoldersPluginOptions {
|
|
3
|
-
manifestPath: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* SpecialFoldersPlugin is responsible for handling the
|
|
7
|
-
* three types of special folders in the extension:
|
|
8
|
-
*
|
|
9
|
-
* - /pages - HTML pages not included in the manifest
|
|
10
|
-
* - /scripts - Script files not included in the manifest
|
|
11
|
-
* - /public - Static files not included in the manifest
|
|
12
|
-
*/
|
|
13
|
-
export declare class SpecialFoldersPlugin {
|
|
14
|
-
static readonly name: string;
|
|
15
|
-
private readonly options;
|
|
16
|
-
constructor(options: SpecialFoldersPluginOptions);
|
|
17
|
-
apply(compiler: Compiler): void;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* From the docs at https://developer.chrome.com/docs/extensions/reference/manifest/web-accessible-resources#manifest_declaration
|
|
3
|
-
* > Google Chrome emits an "Invalid match pattern" error if the pattern has a path other than '/*'.
|
|
4
|
-
*
|
|
5
|
-
* We need to ensure that paths are cleaned up from the matches to avoid this error.
|
|
6
|
-
*/
|
|
7
|
-
export declare function cleanMatches(matches: string[]): string[];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { type FilepathList, type PluginInterface } from '../../webpack-types';
|
|
3
|
-
/**
|
|
4
|
-
* ResourcesPlugin is responsible for adding resources required
|
|
5
|
-
* by the user and the content_scripts to the manifest.json file.
|
|
6
|
-
*
|
|
7
|
-
* Feature supported:
|
|
8
|
-
*
|
|
9
|
-
* - web_accessible_resources paths in the manifest.json file.
|
|
10
|
-
* - Assets imported from content_scripts files.
|
|
11
|
-
*/
|
|
12
|
-
export declare class WebResourcesPlugin {
|
|
13
|
-
readonly manifestPath: string;
|
|
14
|
-
readonly includeList?: FilepathList;
|
|
15
|
-
constructor(options: PluginInterface);
|
|
16
|
-
private generateManifestPatches;
|
|
17
|
-
apply(compiler: Compiler): void;
|
|
18
|
-
}
|
|
@@ -1,10 +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 ExtensionPlugin {
|
|
5
|
-
static readonly name: string;
|
|
6
|
-
readonly manifestPath: string;
|
|
7
|
-
readonly browser: DevOptions['browser'];
|
|
8
|
-
constructor(options: PluginInterface);
|
|
9
|
-
apply(compiler: Compiler): void;
|
|
10
|
-
}
|
|
@@ -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 JsFrameworksPlugin {
|
|
5
|
-
static readonly name: string;
|
|
6
|
-
readonly manifestPath: string;
|
|
7
|
-
readonly mode: DevOptions['mode'];
|
|
8
|
-
constructor(options: PluginInterface & {
|
|
9
|
-
mode: DevOptions['mode'];
|
|
10
|
-
});
|
|
11
|
-
private configureOptions;
|
|
12
|
-
apply(compiler: Compiler): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { DevOptions } from '../../../develop-lib/config-types';
|
|
3
|
-
import { JsFramework } from '../../webpack-types';
|
|
4
|
-
export declare function isUsingBabel(projectPath: string): boolean;
|
|
5
|
-
export declare function getBabelConfigFile(projectPath: string): string | undefined;
|
|
6
|
-
export declare function babelConfig(projectPath: string, opts: {
|
|
7
|
-
mode: DevOptions['mode'];
|
|
8
|
-
typescript: boolean;
|
|
9
|
-
}): {
|
|
10
|
-
cacheDirectory: boolean;
|
|
11
|
-
cacheCompression: boolean;
|
|
12
|
-
babelrc: boolean;
|
|
13
|
-
configFile: string | undefined;
|
|
14
|
-
compact: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare function maybeUseBabel(_compiler: Compiler, projectPath: string): Promise<JsFramework | undefined>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type DevOptions } from '../../../develop-lib/config-types';
|
|
2
|
-
export declare function isUsingTypeScript(projectPath: string): boolean;
|
|
3
|
-
export declare function defaultTypeScriptConfig(projectPath: string, _opts?: any): {
|
|
4
|
-
compilerOptions: {
|
|
5
|
-
allowJs: boolean;
|
|
6
|
-
allowSyntheticDefaultImports: boolean;
|
|
7
|
-
esModuleInterop: boolean;
|
|
8
|
-
forceConsistentCasingInFileNames: boolean;
|
|
9
|
-
jsx: string;
|
|
10
|
-
lib: string[];
|
|
11
|
-
moduleResolution: string;
|
|
12
|
-
module: string;
|
|
13
|
-
resolveJsonModule: boolean;
|
|
14
|
-
strict: boolean;
|
|
15
|
-
target: string;
|
|
16
|
-
isolatedModules: boolean;
|
|
17
|
-
skipLibCheck: boolean;
|
|
18
|
-
};
|
|
19
|
-
exclude: string[];
|
|
20
|
-
};
|
|
21
|
-
export declare function getUserTypeScriptConfigFile(projectPath: string): string | undefined;
|
|
22
|
-
export declare function getTypeScriptConfigOverrides(opts: {
|
|
23
|
-
mode: DevOptions['mode'];
|
|
24
|
-
}): {
|
|
25
|
-
compilerOptions: {
|
|
26
|
-
sourceMap: boolean;
|
|
27
|
-
skipLibCheck: boolean;
|
|
28
|
-
inlineSourceMap: boolean;
|
|
29
|
-
declarationMap: boolean;
|
|
30
|
-
noEmit: boolean;
|
|
31
|
-
incremental: boolean;
|
|
32
|
-
tsBuildInfoFile: string;
|
|
33
|
-
};
|
|
34
|
-
exclude: string[];
|
|
35
|
-
};
|
|
36
|
-
export declare function maybeUseTypeScript(projectPath: string): Promise<boolean>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function loadLoaderOptions(projectPath: string, framework: 'vue' | 'svelte'): Promise<any>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface } from './reload-types';
|
|
3
|
-
export declare class ReloadPlugin {
|
|
4
|
-
static readonly name: string;
|
|
5
|
-
private readonly manifestPath;
|
|
6
|
-
private readonly browser;
|
|
7
|
-
private readonly port?;
|
|
8
|
-
private readonly stats?;
|
|
9
|
-
private readonly autoReload?;
|
|
10
|
-
private readonly instanceId?;
|
|
11
|
-
constructor(options: PluginInterface);
|
|
12
|
-
apply(compiler: Compiler): void;
|
|
13
|
-
}
|