extension-develop 4.0.11 → 4.0.12
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/dist/0~dev-server.mjs +1 -1
- package/dist/0~rspack-config.mjs +107 -3154
- package/dist/101.mjs +32 -4
- package/dist/266.mjs +1 -4
- package/dist/839.mjs +3156 -59
- package/dist/bridge-entry.d.ts +5 -0
- package/dist/command-build.d.ts +3 -0
- package/dist/command-dev.d.ts +5 -0
- package/dist/command-preview.d.ts +30 -0
- package/dist/dev-server/auto-exit.d.ts +1 -0
- package/dist/dev-server/cleanup.d.ts +11 -0
- package/dist/dev-server/compiler-hooks.d.ts +9 -0
- package/dist/dev-server/connectable-host.d.ts +2 -0
- package/dist/dev-server/control-bridge/actions-file.d.ts +38 -0
- package/dist/dev-server/control-bridge/broker.d.ts +122 -0
- package/dist/dev-server/control-bridge/consumer-client.d.ts +43 -0
- package/dist/dev-server/control-bridge/contracts.d.ts +164 -0
- package/dist/dev-server/control-bridge/control-port-store.d.ts +25 -0
- package/dist/dev-server/control-bridge/controller-client.d.ts +30 -0
- package/dist/dev-server/control-bridge/logs-file.d.ts +30 -0
- package/dist/dev-server/control-bridge/producer-runtime.d.ts +30 -0
- package/dist/dev-server/control-bridge/ring-buffer.d.ts +21 -0
- package/dist/dev-server/control-bridge/session-token.d.ts +18 -0
- package/dist/dev-server/control-bridge/ws-control-server.d.ts +13 -0
- package/dist/dev-server/frameworks.d.ts +2 -0
- package/dist/dev-server/index.d.ts +3 -0
- package/dist/dev-server/messages.d.ts +17 -0
- package/dist/dev-server/port-manager.d.ts +17 -0
- package/dist/extension-js-devtools/extension-js/chrome/events.ndjson +2 -6
- package/dist/extension-js-devtools/extension-js/chrome/ready.json +9 -6
- package/dist/extension-js-devtools/extension-js/chromium/events.ndjson +2 -6
- package/dist/extension-js-devtools/extension-js/chromium/ready.json +9 -6
- package/dist/extension-js-devtools/extension-js/edge/events.ndjson +2 -6
- package/dist/extension-js-devtools/extension-js/edge/ready.json +9 -6
- package/dist/extension-js-devtools/extension-js/firefox/events.ndjson +2 -6
- package/dist/extension-js-devtools/extension-js/firefox/ready.json +9 -6
- package/dist/extension-js-theme/extension-js/chrome/events.ndjson +2 -6
- package/dist/extension-js-theme/extension-js/chrome/ready.json +9 -6
- package/dist/extension-js-theme/extension-js/chromium/events.ndjson +2 -6
- package/dist/extension-js-theme/extension-js/chromium/ready.json +9 -6
- package/dist/extension-js-theme/extension-js/edge/events.ndjson +2 -6
- package/dist/extension-js-theme/extension-js/edge/ready.json +9 -6
- package/dist/extension-js-theme/extension-js/firefox/events.ndjson +2 -8
- package/dist/extension-js-theme/extension-js/firefox/ready.json +9 -6
- package/dist/lib/branding.d.ts +7 -0
- package/dist/lib/build-summary.d.ts +9 -0
- package/dist/lib/config-loader.d.ts +38 -0
- package/dist/lib/constants.d.ts +11 -0
- package/dist/lib/dark-mode.d.ts +9 -0
- package/dist/lib/dev-server-client-import.d.ts +4 -0
- package/dist/lib/develop-context.d.ts +3 -0
- package/dist/lib/ensure-develop-artifacts.d.ts +10 -0
- package/dist/lib/extensions-to-load.d.ts +1 -0
- package/dist/lib/generate-extension-types.d.ts +1 -0
- package/dist/lib/has-dependency.d.ts +6 -0
- package/dist/lib/manifest-utils.d.ts +2 -0
- package/dist/lib/messages.d.ts +55 -0
- package/dist/lib/optional-dependency-types.d.ts +14 -0
- package/dist/lib/optional-deps-contracts.d.ts +13 -0
- package/dist/lib/optional-deps-resolver.d.ts +41 -0
- package/dist/lib/package-json.d.ts +3 -0
- package/dist/lib/package-manager.d.ts +61 -0
- package/dist/lib/parse-json-safe.d.ts +13 -0
- package/dist/lib/paths.d.ts +19 -0
- package/dist/lib/project-manifest.d.ts +60 -0
- package/dist/lib/project.d.ts +7 -0
- package/dist/lib/resource-path.d.ts +4 -0
- package/dist/lib/rust-min-stack.d.ts +2 -0
- package/dist/lib/sanitize.d.ts +1 -0
- package/dist/lib/session-paths.d.ts +39 -0
- package/dist/lib/stats-handler.d.ts +1 -0
- package/dist/lib/transpile-packages.d.ts +7 -0
- package/dist/lib/validate-user-dependencies.d.ts +1 -0
- package/dist/lib/zip.d.ts +2 -0
- package/dist/module.d.ts +8 -0
- package/dist/plugin-browsers/index.d.ts +108 -0
- package/dist/plugin-browsers/safari-dev-plugin.d.ts +19 -0
- package/dist/plugin-compatibility/compatibility-lib/messages.d.ts +5 -0
- package/dist/plugin-compatibility/feature-polyfill.d.ts +11 -0
- package/dist/plugin-compatibility/index.d.ts +12 -0
- package/dist/plugin-compilation/boring.d.ts +11 -0
- package/dist/plugin-compilation/clean-dist.d.ts +8 -0
- package/dist/plugin-compilation/compilation-lib/messages.d.ts +11 -0
- package/dist/plugin-compilation/compilation-lib/shared-state.d.ts +7 -0
- package/dist/plugin-compilation/env.d.ts +17 -0
- package/dist/plugin-compilation/index.d.ts +22 -0
- package/dist/plugin-compilation/zip.d.ts +18 -0
- package/dist/plugin-css/common-style-loaders.d.ts +8 -0
- package/dist/plugin-css/css-in-content-script-loader.d.ts +4 -0
- package/dist/plugin-css/css-in-html-loader.d.ts +4 -0
- package/dist/plugin-css/css-lib/build-css-rules.d.ts +12 -0
- package/dist/plugin-css/css-lib/inject-css-link.d.ts +16 -0
- package/dist/plugin-css/css-lib/is-content-script.d.ts +1 -0
- package/dist/plugin-css/css-lib/messages.d.ts +9 -0
- package/dist/plugin-css/css-lib/resolve-css-asset.d.ts +21 -0
- package/dist/plugin-css/css-parse-guard-loader.d.ts +8 -0
- package/dist/plugin-css/css-tools/less.d.ts +7 -0
- package/dist/plugin-css/css-tools/postcss.d.ts +4 -0
- package/dist/plugin-css/css-tools/sass.d.ts +10 -0
- package/dist/plugin-css/css-tools/tailwind.d.ts +2 -0
- package/dist/plugin-css/index.d.ts +26 -0
- package/dist/plugin-css/preprocessor-passthrough-loader.d.ts +6 -0
- package/dist/plugin-js-frameworks/frameworks-lib/integrations.d.ts +4 -0
- package/dist/plugin-js-frameworks/index.d.ts +18 -0
- package/dist/plugin-js-frameworks/js-frameworks-lib/load-loader-options.d.ts +2 -0
- package/dist/plugin-js-frameworks/js-frameworks-lib/messages.d.ts +10 -0
- package/dist/plugin-js-frameworks/js-tools/preact.d.ts +3 -0
- package/dist/plugin-js-frameworks/js-tools/react.d.ts +8 -0
- package/dist/plugin-js-frameworks/js-tools/svelte.d.ts +4 -0
- package/dist/plugin-js-frameworks/js-tools/typescript.d.ts +37 -0
- package/dist/plugin-js-frameworks/js-tools/vue.d.ts +3 -0
- package/dist/plugin-perf-budgets/categorize.d.ts +3 -0
- package/dist/plugin-perf-budgets/index.d.ts +34 -0
- package/dist/plugin-perf-budgets/messages.d.ts +8 -0
- package/dist/plugin-playwright/index.d.ts +89 -0
- package/dist/plugin-reload/classify-reload.d.ts +86 -0
- package/dist/plugin-reload/index.d.ts +29 -0
- package/dist/plugin-reload/messages.d.ts +1 -0
- package/dist/plugin-reload/reload-dispatch.d.ts +46 -0
- package/dist/plugin-reload/reload-lib/minimum-files/minimum-background-file-chromium.d.ts +0 -0
- package/dist/plugin-reload/reload-lib/minimum-files/minimum-background-file-firefox.d.ts +0 -0
- package/dist/plugin-reload/reload-lib/scripts-replay-shim.d.ts +19 -0
- package/dist/plugin-reload/steps/inject-bridge-producer.d.ts +14 -0
- package/dist/plugin-reload/steps/inject-bridge-relay.d.ts +4 -0
- package/dist/plugin-reload/steps/inject-scripts-replay-shim.d.ts +10 -0
- package/dist/plugin-reload/steps/prune-stale-hot-updates.d.ts +20 -0
- package/dist/plugin-reload/steps/remove-content-script-dev-server-runtime.d.ts +2 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/index.d.ts +9 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/setup-background-entry.d.ts +13 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/index.d.ts +2 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/ChunkLoader.d.ts +9 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/HMRDevServer.d.ts +3 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/InitialChunkFile.d.ts +5 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/NoDangerNamePlugin.d.ts +3 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/AutoPublicPath.d.ts +2 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/BaseUri.d.ts +2 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/BrowserRuntime.d.ts +8 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/ChunkLoaderFallback.d.ts +1 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/EagerlyLoadChunks.d.ts +1 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/LoadScript.d.ts +4 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/PublicPath.d.ts +2 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/ServiceWorkerPlugin.d.ts +6 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/helper.d.ts +12 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/index.d.ts +5 -0
- package/dist/plugin-reload/steps/strip-content-script-dev-server-runtime.d.ts +4 -0
- package/dist/plugin-special-folders/check-manifest-in-public.d.ts +2 -0
- package/dist/plugin-special-folders/emit-root-absolute-refs.d.ts +2 -0
- package/dist/plugin-special-folders/folder-extensions/resolve-config.d.ts +6 -0
- package/dist/plugin-special-folders/folder-extensions/resolve-dirs.d.ts +5 -0
- package/dist/plugin-special-folders/folder-extensions/types.d.ts +17 -0
- package/dist/plugin-special-folders/folder-extensions/utils.d.ts +9 -0
- package/dist/plugin-special-folders/get-data.d.ts +12 -0
- package/dist/plugin-special-folders/index.d.ts +20 -0
- package/dist/plugin-special-folders/messages.d.ts +3 -0
- package/dist/plugin-special-folders/warn-upon-folder-changes.d.ts +13 -0
- package/dist/plugin-static-assets/index.d.ts +10 -0
- package/dist/plugin-static-assets/static-assets-lib/messages.d.ts +8 -0
- package/dist/plugin-wasm/index.d.ts +15 -0
- package/dist/plugin-web-extension/feature-html/html-lib/assets.d.ts +2 -0
- package/dist/plugin-web-extension/feature-html/html-lib/inject.d.ts +4 -0
- package/dist/plugin-web-extension/feature-html/html-lib/messages.d.ts +24 -0
- package/dist/plugin-web-extension/feature-html/html-lib/parse-html.d.ts +8 -0
- package/dist/plugin-web-extension/feature-html/html-lib/patch-html.d.ts +8 -0
- package/dist/plugin-web-extension/feature-html/html-lib/utils.d.ts +46 -0
- package/dist/plugin-web-extension/feature-html/index.d.ts +36 -0
- package/dist/plugin-web-extension/feature-html/steps/add-assets-to-compilation.d.ts +9 -0
- package/dist/plugin-web-extension/feature-html/steps/add-scripts-and-styles-to-compilation.d.ts +9 -0
- package/dist/plugin-web-extension/feature-html/steps/add-to-file-dependencies.d.ts +9 -0
- package/dist/plugin-web-extension/feature-html/steps/emit-html-file.d.ts +9 -0
- package/dist/plugin-web-extension/feature-html/steps/ensure-hmr-for-scripts.d.ts +2 -0
- package/dist/plugin-web-extension/feature-html/steps/handle-common-errors.d.ts +9 -0
- package/dist/plugin-web-extension/feature-html/steps/minimum-script-file.d.ts +1 -0
- package/dist/plugin-web-extension/feature-html/steps/preact-refresh-shim.d.ts +1 -0
- package/dist/plugin-web-extension/feature-html/steps/throw-if-recompile-is-needed.d.ts +12 -0
- package/dist/plugin-web-extension/feature-html/steps/update-html-file.d.ts +9 -0
- package/dist/plugin-web-extension/feature-icons/index.d.ts +22 -0
- package/dist/plugin-web-extension/feature-icons/messages.d.ts +12 -0
- package/dist/plugin-web-extension/feature-icons/normalize-keys.d.ts +3 -0
- package/dist/plugin-web-extension/feature-icons/steps/add-to-file-dependencies.d.ts +8 -0
- package/dist/plugin-web-extension/feature-icons/steps/emit-file.d.ts +8 -0
- package/dist/plugin-web-extension/feature-json/index.d.ts +18 -0
- package/dist/plugin-web-extension/feature-json/json-validation.d.ts +3 -0
- package/dist/plugin-web-extension/feature-json/messages.d.ts +17 -0
- package/dist/plugin-web-extension/feature-json/process-assets.d.ts +2 -0
- package/dist/plugin-web-extension/feature-json/track-dependencies.d.ts +2 -0
- package/dist/plugin-web-extension/feature-locales/compilation-error.d.ts +2 -0
- package/dist/plugin-web-extension/feature-locales/get-locales.d.ts +2 -0
- package/dist/plugin-web-extension/feature-locales/index.d.ts +12 -0
- package/dist/plugin-web-extension/feature-locales/messages.d.ts +13 -0
- package/dist/plugin-web-extension/feature-locales/process-assets.d.ts +2 -0
- package/dist/plugin-web-extension/feature-locales/track-dependencies.d.ts +2 -0
- package/dist/plugin-web-extension/feature-locales/validation.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/index.d.ts +21 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-lib/manifest.d.ts +10 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-lib/sanitize-fatal-shapes.d.ts +45 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/background.d.ts +6 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/chrome_url_overrides.d.ts +8 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/commands.d.ts +16 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +4 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/content_security_policy.d.ts +4 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/devtools_page.d.ts +4 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/icons.d.ts +6 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/index.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +9 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/options_page.d.ts +4 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts +8 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +8 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +4 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +7 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/sidebar_action.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/storage.d.ts +6 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/theme.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/user_scripts.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/web_accessible_resources.d.ts +4 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/index.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/background.d.ts +6 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +12 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/chrome_settings_overrides.d.ts +24 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/index.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/theme_experiment.d.ts +7 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +8 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/background.d.ts +6 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/declarative_net_request.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/host_permissions.d.ts +4 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/index.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/side_panel.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/messages.d.ts +9 -0
- package/dist/plugin-web-extension/feature-manifest/normalize-manifest-path.d.ts +3 -0
- package/dist/plugin-web-extension/feature-manifest/steps/add-dependencies.d.ts +6 -0
- package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-background.d.ts +10 -0
- package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-csp.d.ts +5 -0
- package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-externally-connectable.d.ts +10 -0
- package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-web-resources.d.ts +19 -0
- package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults.d.ts +12 -0
- package/dist/plugin-web-extension/feature-manifest/steps/emit-manifest.d.ts +7 -0
- package/dist/plugin-web-extension/feature-manifest/steps/legacy-warnings.d.ts +5 -0
- package/dist/plugin-web-extension/feature-manifest/steps/patch-chromium-background.d.ts +15 -0
- package/dist/plugin-web-extension/feature-manifest/steps/patch-dev-content-script-manifest-paths.d.ts +11 -0
- package/dist/plugin-web-extension/feature-manifest/steps/patch-gecko-background.d.ts +15 -0
- package/dist/plugin-web-extension/feature-manifest/steps/patch-war.d.ts +15 -0
- package/dist/plugin-web-extension/feature-manifest/steps/persist-manifest.d.ts +4 -0
- package/dist/plugin-web-extension/feature-manifest/steps/update-manifest.d.ts +9 -0
- package/dist/plugin-web-extension/feature-scripts/contracts.d.ts +12 -0
- package/dist/plugin-web-extension/feature-scripts/index.d.ts +19 -0
- package/dist/plugin-web-extension/feature-scripts/messages.d.ts +7 -0
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/utils.d.ts +2 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/classic-concat-loader.d.ts +8 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/content-script-wrapper.d.ts +13 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/get-bridge-scripts.d.ts +6 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/index.d.ts +11 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +4 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-scripts.d.ts +9 -0
- package/dist/plugin-web-extension/feature-scripts/steps/keep-geturl-imports-native.d.ts +15 -0
- package/dist/plugin-web-extension/feature-scripts/steps/native-geturl-import-loader.d.ts +3 -0
- package/dist/plugin-web-extension/feature-scripts/steps/trace-runtime-loaded-files.d.ts +41 -0
- package/dist/plugin-web-extension/feature-scripts/steps/validate-content-script-syntax.d.ts +18 -0
- package/dist/plugin-web-extension/feature-web-resources/collect-entry-imports.d.ts +3 -0
- package/dist/plugin-web-extension/feature-web-resources/index.d.ts +19 -0
- package/dist/plugin-web-extension/feature-web-resources/steps/collect-content-entry-imports.d.ts +10 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/clean-matches.d.ts +7 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/generate-manifest.d.ts +11 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/messages.d.ts +10 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/resolve-war.d.ts +9 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/shared.d.ts +4 -0
- package/dist/plugin-web-extension/index.d.ts +9 -0
- package/dist/plugin-web-extension/shared/classic-concat.d.ts +18 -0
- package/dist/plugin-web-extension/shared/compilation-issues.d.ts +6 -0
- package/dist/plugin-web-extension/shared/manifest-fields-change-detector.d.ts +12 -0
- package/dist/plugin-web-extension/shared/paths.d.ts +26 -0
- package/dist/preview-entry.d.ts +3 -0
- package/dist/rslib.config.d.ts +3 -0
- package/dist/rspack-config.d.ts +4 -0
- package/dist/types.d.ts +406 -0
- package/package.json +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Compiler } from '@rspack/core';
|
|
2
|
+
import { type FilepathList, type PluginInterface } from '../../../types';
|
|
3
|
+
export declare class EmitHtmlFile {
|
|
4
|
+
readonly manifestPath: string;
|
|
5
|
+
readonly includeList?: FilepathList;
|
|
6
|
+
readonly browser?: PluginInterface['browser'];
|
|
7
|
+
constructor(options: PluginInterface);
|
|
8
|
+
apply(compiler: Compiler): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Compiler } from '@rspack/core';
|
|
2
|
+
import { type FilepathList, type PluginInterface } from '../../../types';
|
|
3
|
+
export declare class HandleCommonErrors {
|
|
4
|
+
readonly manifestPath: string;
|
|
5
|
+
readonly includeList?: FilepathList;
|
|
6
|
+
readonly browser?: string;
|
|
7
|
+
constructor(options: PluginInterface);
|
|
8
|
+
apply(compiler: Compiler): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Compiler } from '@rspack/core';
|
|
2
|
+
import { type FilepathList, type PluginInterface } from '../../../types';
|
|
3
|
+
export declare class ThrowIfRecompileIsNeeded {
|
|
4
|
+
readonly manifestPath: string;
|
|
5
|
+
readonly includeList?: FilepathList;
|
|
6
|
+
readonly browser?: string;
|
|
7
|
+
private initialHtmlAssets;
|
|
8
|
+
constructor(options: PluginInterface);
|
|
9
|
+
private hasEntriesChanged;
|
|
10
|
+
private storeInitialHtmlAssets;
|
|
11
|
+
apply(compiler: Compiler): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Compiler } from '@rspack/core';
|
|
2
|
+
import { type FilepathList, type PluginInterface } from '../../../types';
|
|
3
|
+
export declare class UpdateHtmlFile {
|
|
4
|
+
readonly manifestPath: string;
|
|
5
|
+
readonly includeList?: FilepathList;
|
|
6
|
+
readonly browser?: string;
|
|
7
|
+
constructor(options: PluginInterface);
|
|
8
|
+
apply(compiler: Compiler): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Compiler } from '@rspack/core';
|
|
2
|
+
import type { ThemeIcon, FilepathList, PluginInterface } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* IconsPlugin is responsible for handling the icon files defined
|
|
5
|
+
* in the manifest.json. It emits the icon files to the output
|
|
6
|
+
* directory and adds them to the file dependencies of the compilation.
|
|
7
|
+
*
|
|
8
|
+
* Features supported:
|
|
9
|
+
* action.default_icon
|
|
10
|
+
* browser_action.default_icon
|
|
11
|
+
* icons
|
|
12
|
+
* page_action.default_icon
|
|
13
|
+
* sidebar_action.default_icon
|
|
14
|
+
*/
|
|
15
|
+
export declare class IconsPlugin {
|
|
16
|
+
readonly manifestPath: string;
|
|
17
|
+
readonly includeList?: FilepathList | {
|
|
18
|
+
[x: string]: ThemeIcon;
|
|
19
|
+
};
|
|
20
|
+
constructor(options: PluginInterface);
|
|
21
|
+
apply(compiler: Compiler): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function iconsMissingFile(manifestField: string, filePath: string, opts?: {
|
|
2
|
+
publicRootHint?: boolean;
|
|
3
|
+
}): string;
|
|
4
|
+
export declare function manifestIconsEntrypointChange(manifestField?: string, pathAfter?: string, pathBefore?: string): string;
|
|
5
|
+
export declare function iconsEmitSummary(feature: string, stats: {
|
|
6
|
+
entries: number;
|
|
7
|
+
underPublic: number;
|
|
8
|
+
emitted: number;
|
|
9
|
+
missing: number;
|
|
10
|
+
}): string;
|
|
11
|
+
export declare function iconsDepsTracked(addedCount: number): string;
|
|
12
|
+
export declare function iconsNormalizationSummary(beforeKeys: string[], afterKeys: string[], changedCount: number): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Compiler } from '@rspack/core';
|
|
2
|
+
import { type FilepathList, type PluginInterface } from '../../../types';
|
|
3
|
+
export declare class AddToFileDependencies {
|
|
4
|
+
readonly manifestPath: string;
|
|
5
|
+
readonly includeList?: FilepathList;
|
|
6
|
+
constructor(options: PluginInterface);
|
|
7
|
+
apply(compiler: Compiler): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Compiler } from '@rspack/core';
|
|
2
|
+
import { type FilepathList, type PluginInterface } from '../../../types';
|
|
3
|
+
export declare class EmitFile {
|
|
4
|
+
readonly manifestPath: string;
|
|
5
|
+
readonly includeList?: FilepathList;
|
|
6
|
+
constructor(options: PluginInterface);
|
|
7
|
+
apply(compiler: Compiler): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Compiler } from '@rspack/core';
|
|
2
|
+
import type { FilepathList, PluginInterface, DevOptions } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* JsonPlugin is responsible for handling the JSON files defined
|
|
5
|
+
* in the manifest.json. It emits the JSON files to the output
|
|
6
|
+
* directory and adds them to the file dependencies of the compilation.
|
|
7
|
+
*
|
|
8
|
+
* Features supported:
|
|
9
|
+
* - declarative_net_request.ruleset
|
|
10
|
+
* - storage.managed_schema
|
|
11
|
+
*/
|
|
12
|
+
export declare class JsonPlugin {
|
|
13
|
+
readonly manifestPath: string;
|
|
14
|
+
readonly includeList?: FilepathList;
|
|
15
|
+
readonly browser?: DevOptions['browser'] | 'chrome';
|
|
16
|
+
constructor(options: PluginInterface);
|
|
17
|
+
apply(compiler: Compiler): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function entryNotFoundMessageOnly(manifestField: string, absPath?: string): string;
|
|
2
|
+
export declare function jsonMissingFile(manifestField: string, filePath: string, opts?: {
|
|
3
|
+
publicRootHint?: boolean;
|
|
4
|
+
}): string;
|
|
5
|
+
export declare function invalidJsonSyntax(manifestField: string, file: string, cause: string): string;
|
|
6
|
+
export declare function invalidRulesetStructure(manifestField: string, file: string): string;
|
|
7
|
+
export declare function invalidManagedSchemaStructure(manifestField: string, file: string): string;
|
|
8
|
+
export declare function jsonEmitSummary(feature: string, stats: {
|
|
9
|
+
entries: number;
|
|
10
|
+
underPublic: number;
|
|
11
|
+
emitted: number;
|
|
12
|
+
missing: number;
|
|
13
|
+
validatedOk: number;
|
|
14
|
+
invalid: number;
|
|
15
|
+
}): string;
|
|
16
|
+
export declare function jsonDepsTracked(addedCount: number): string;
|
|
17
|
+
export declare function jsonIncludeSummary(totalFeatures: number, criticalCount: number): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Compiler } from '@rspack/core';
|
|
2
|
+
import { type FilepathList, type PluginInterface } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* LocalesPlugin is responsible for emitting the locales files
|
|
5
|
+
* to the output directory.
|
|
6
|
+
*/
|
|
7
|
+
export declare class LocalesPlugin {
|
|
8
|
+
readonly manifestPath: string;
|
|
9
|
+
readonly includeList?: FilepathList;
|
|
10
|
+
constructor(options: PluginInterface);
|
|
11
|
+
apply(compiler: Compiler): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function manifestNotFoundMessageOnly(absPath: string): string;
|
|
2
|
+
export declare function entryNotFoundMessageOnly(manifestField: string, absPath?: string): string;
|
|
3
|
+
export declare function defaultLocaleSpecifiedButLocalesMissing(): string;
|
|
4
|
+
export declare function defaultLocaleFolderMissing(defaultLocale: string): string;
|
|
5
|
+
export declare function defaultLocaleMessagesMissing(defaultLocale: string): string;
|
|
6
|
+
export declare function localesPresentButNoDefaultLocale(): string;
|
|
7
|
+
export declare function invalidMessagesJson(absPath: string): string;
|
|
8
|
+
export declare function missingManifestMessageKey(key: string, defaultLocale?: string): string;
|
|
9
|
+
export declare function localesIncludeSummary(hasManifest: boolean, hasLocalesRoot: boolean, defaultLocale?: string): string;
|
|
10
|
+
export declare function localesEmitSummary(emitted: number, missing: number, discovered: number): string;
|
|
11
|
+
export declare function localesDepsTracked(addedCount: number): string;
|
|
12
|
+
export declare function localesValidationDetected(issue: string): string;
|
|
13
|
+
export declare function localesMustBeAtProjectRoot(foundAt: string, expectedAt: string): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Compiler } from '@rspack/core';
|
|
2
|
+
import type { FilepathList, PluginInterface, DevOptions } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* ManifestPlugin is responsible for handling the manifest.json file.
|
|
5
|
+
* It ensures that the files defined in the manifest have valid paths,
|
|
6
|
+
* throwing errors if they don't. It also ensures the manifest is emitted
|
|
7
|
+
* to the assets bundle, so other plugins can modify it, and stored
|
|
8
|
+
* as file dependency so webpack can watch and trigger changes.
|
|
9
|
+
*
|
|
10
|
+
* The plugin also has a guard against recompiling entrypoints
|
|
11
|
+
* at runtime, throwing an error if any of those files change.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ManifestPlugin {
|
|
14
|
+
readonly manifestPath: string;
|
|
15
|
+
readonly browser: DevOptions['browser'];
|
|
16
|
+
readonly includeList?: FilepathList;
|
|
17
|
+
constructor(options: PluginInterface & {
|
|
18
|
+
browser: DevOptions['browser'];
|
|
19
|
+
});
|
|
20
|
+
apply(compiler: Compiler): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Compilation } from '@rspack/core';
|
|
2
|
+
import type { Manifest, DevOptions } from '../../../types';
|
|
3
|
+
import { filterKeysForThisBrowser } from '../../../lib/manifest-utils';
|
|
4
|
+
export declare function setOriginalManifestContent(compilation: Compilation, source: string): void;
|
|
5
|
+
export declare function getOriginalManifestContent(compilation: Compilation): string | undefined;
|
|
6
|
+
export declare function setCurrentManifestContent(compilation: Compilation, source: string): void;
|
|
7
|
+
export declare function getCurrentManifestContent(compilation: Compilation): string | undefined;
|
|
8
|
+
export declare function getManifestContent(compilation: Compilation, manifestPath: string): Manifest;
|
|
9
|
+
export { filterKeysForThisBrowser };
|
|
10
|
+
export declare function buildCanonicalManifest(manifestPath: string, manifest: Manifest, browser: DevOptions['browser']): Manifest;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type Manifest } from '../../../types';
|
|
2
|
+
export interface FatalShapeFix {
|
|
3
|
+
field: string;
|
|
4
|
+
detail: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Repair author-manifest shapes that make Chrome refuse to load the whole
|
|
8
|
+
* extension. Loading via --load-extension surfaces the refusal as a native
|
|
9
|
+
* modal dialog (no CDP, no console), so a dev session just wedges — the
|
|
10
|
+
* browser never binds its debug endpoint. Both shapes below were found in
|
|
11
|
+
* the wild and are unambiguous to fix:
|
|
12
|
+
*
|
|
13
|
+
* - `"name"` missing, empty, or not a string — Chrome refuses with
|
|
14
|
+
* "Required value 'name' is missing or invalid" (verified live on Chrome
|
|
15
|
+
* 150 via CDP loadUnpacked for all three shapes). Coerce scalars,
|
|
16
|
+
* fall back to "Unnamed Extension".
|
|
17
|
+
* - `"version"` missing entirely — Chrome refuses with "Required value
|
|
18
|
+
* 'version' is missing or invalid" (wild: Ananyakk71/javscript). Inject
|
|
19
|
+
* "0.0.0" so the session can attach.
|
|
20
|
+
* - `"version": 1.0` — JSON authors write a number; Chrome requires a string
|
|
21
|
+
* of 1-4 dot-separated integers. String() preserves the intent.
|
|
22
|
+
* - `"version": "x.y.z"` (any string that is not 1-4 dot-separated integers
|
|
23
|
+
* 0-65535) — a placeholder the author never filled in; Chrome refuses the
|
|
24
|
+
* whole extension over it. Salvage the numeric parts when there are any,
|
|
25
|
+
* fall back to "0.0.0" otherwise.
|
|
26
|
+
* - `"default_icon": ""` (in action/browser_action/page_action) — an empty
|
|
27
|
+
* icon path rejects the extension. Empty means "no icon": drop the key.
|
|
28
|
+
* - An icon path (`icons`, `*_action.default_icon`) whose file exists but is
|
|
29
|
+
* 0 bytes (wild: Speak2Type ships an empty icon-128.png) — Chrome cannot
|
|
30
|
+
* decode it and refuses the whole extension with "Could not load icon".
|
|
31
|
+
* Requires `manifestDir` to resolve the paths; drop the entry.
|
|
32
|
+
* - `'unsafe-inline'` in `content_security_policy.extension_pages`
|
|
33
|
+
* script-src — Chrome refuses the whole extension with "Insecure CSP
|
|
34
|
+
* value" (wild: zenwerk/tonikakuyare). MV3 never honors it, so stripping
|
|
35
|
+
* it changes nothing but the refusal.
|
|
36
|
+
* - A named (non-`_execute_*`) command whose `description` is missing,
|
|
37
|
+
* empty, or not a string — Chrome refuses the whole extension with
|
|
38
|
+
* "Invalid value for 'commands[N].description'" (seen live loading a
|
|
39
|
+
* built extension). Fall back to the command name so the shortcut stays
|
|
40
|
+
* registered and the session can attach.
|
|
41
|
+
*/
|
|
42
|
+
export declare function sanitizeFatalManifestShapes(manifest: Manifest, manifestDir?: string): {
|
|
43
|
+
manifest: Manifest;
|
|
44
|
+
fixes: FatalShapeFix[];
|
|
45
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Manifest } from '../../../../types';
|
|
2
|
+
export declare function chromeUrlOverrides(manifest: Manifest, manifestPath?: string): {
|
|
3
|
+
chrome_url_overrides: {
|
|
4
|
+
newtab?: string | undefined;
|
|
5
|
+
history?: string | undefined;
|
|
6
|
+
bookmarks?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
} | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Manifest } from '../../../../types';
|
|
2
|
+
export declare function commands(manifest: Manifest): {
|
|
3
|
+
commands: {
|
|
4
|
+
[name: string]: {
|
|
5
|
+
suggested_key?: {
|
|
6
|
+
default?: string | undefined;
|
|
7
|
+
windows?: string | undefined;
|
|
8
|
+
mac?: string | undefined;
|
|
9
|
+
chromeos?: string | undefined;
|
|
10
|
+
linux?: string | undefined;
|
|
11
|
+
} | undefined;
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
global?: boolean | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Manifest } from '../../../../types';
|
|
2
|
+
export declare function optionsUi(manifest: Manifest, manifestPath?: string): {
|
|
3
|
+
options_ui: {
|
|
4
|
+
page?: string | undefined;
|
|
5
|
+
chrome_style?: boolean | undefined;
|
|
6
|
+
open_in_tab?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
} | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Manifest } from '../../../../types';
|
|
2
|
+
export declare function pageAction(manifest: Manifest): {
|
|
3
|
+
page_action: {
|
|
4
|
+
default_icon?: string | chrome.runtime.ManifestIcons | undefined;
|
|
5
|
+
default_popup?: string | undefined;
|
|
6
|
+
default_title?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
} | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Manifest } from '../../../../types';
|
|
2
|
+
export declare function browserAction(manifest: Manifest): {
|
|
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Manifest } from '../../../../types';
|
|
2
|
+
export declare function chromeSettingsOverrides(manifest: Manifest): {
|
|
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;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Manifest } from '../../../../types';
|
|
2
|
+
export declare function action(manifest: Manifest): {
|
|
3
|
+
action: {
|
|
4
|
+
default_icon?: string | chrome.runtime.ManifestIcons | undefined;
|
|
5
|
+
default_popup?: string | undefined;
|
|
6
|
+
default_title?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
} | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function serverRestartRequiredFromManifestError(fileAdded: string, fileRemoved: string): string;
|
|
2
|
+
export declare function legacyManifestPathWarning(legacyPath: string): string;
|
|
3
|
+
export declare function fatalManifestShapeFixed(field: string, detail: string): string;
|
|
4
|
+
export declare function manifestInvalidError(error: NodeJS.ErrnoException): string;
|
|
5
|
+
export declare function manifestIncludeSummary(browser: string, manifestPath: string): string;
|
|
6
|
+
export declare function manifestEmitSuccess(): string;
|
|
7
|
+
export declare function manifestOverridesSummary(overrideKeys: number, devCssStubsAdded: number): string;
|
|
8
|
+
export declare function manifestDepsTracked(addedCount: number): string;
|
|
9
|
+
export declare function manifestLegacyWarningsSummary(count: number): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Manifest, DevOptions } from '../../../../types';
|
|
2
|
+
export default function patchBackground(manifest: Manifest, browser: DevOptions['browser']): {
|
|
3
|
+
background: {
|
|
4
|
+
scripts?: string[] | undefined;
|
|
5
|
+
page?: string | undefined;
|
|
6
|
+
persistent?: boolean | undefined;
|
|
7
|
+
service_worker?: string | undefined;
|
|
8
|
+
type?: "module";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Manifest } from '../../../../types';
|
|
2
|
+
export default function patchExternallyConnectable(manifest: Manifest): {
|
|
3
|
+
externally_connectable: {
|
|
4
|
+
ids: string[];
|
|
5
|
+
matches?: string[] | undefined;
|
|
6
|
+
accepts_tls_channel_id?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
} | {
|
|
9
|
+
externally_connectable?: undefined;
|
|
10
|
+
};
|