extension-develop 4.1.39 → 4.1.40-canary.459.2c1ba7b
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 +13 -10
- package/dist/{771~0.mjs → 5h~0.mjs} +13 -3
- package/dist/{273~0.mjs → 6l~0.mjs} +1 -1
- package/dist/{524~0.mjs → 9~0.mjs} +18 -2
- package/dist/{640~0.mjs → bh~0.mjs} +6 -1
- package/dist/bridge.mjs +14 -8
- package/dist/b~0.mjs +8644 -0
- package/dist/command-dev.d.ts +2 -0
- package/dist/command-preview.d.ts +2 -0
- package/dist/contracts.mjs +2 -1
- package/dist/{469~0.mjs → cp~0.mjs} +66 -17
- package/dist/css-parse-guard-loader.mjs +2 -2
- package/dist/c~0.mjs +56 -0
- package/dist/dead-css-url-loader.mjs +20 -119
- package/dist/dev-server/control-bridge/actions-file.d.ts +7 -0
- package/dist/dev-server/control-bridge/broker.d.ts +42 -2
- package/dist/dev-server/control-bridge/consumer-client.d.ts +7 -0
- package/dist/dev-server/control-bridge/contracts.d.ts +29 -1
- package/dist/dev-server/control-bridge/logs-file.d.ts +6 -0
- package/dist/dev-server/control-bridge/loopback.d.ts +1 -0
- package/dist/dev-server/control-bridge/producer-runtime.d.ts +5 -2
- package/dist/dev-server/control-bridge/production-control.d.ts +1 -0
- package/dist/dev-server/control-bridge/session-token.d.ts +5 -2
- package/dist/dev-server/cors.d.ts +4 -2
- package/dist/dev-server/messages.d.ts +6 -0
- package/dist/dev-server/session-restart.d.ts +3 -1
- package/dist/dev-server~0.mjs +71 -129
- package/dist/df~0.mjs +197 -0
- package/dist/{846~0.mjs → d~0.mjs} +4 -3
- package/dist/ensure-hmr-for-scripts.js +3 -3
- package/dist/ensure-hmr-for-scripts.mjs +3 -3
- package/dist/extension-js-devtools/build-stamp.json +2 -2
- package/dist/extension-js-devtools/chrome/background/service_worker.js +2 -2
- package/dist/extension-js-devtools/chrome/pages/welcome.js +2 -2
- package/dist/extension-js-devtools/chromium/background/service_worker.js +2 -2
- package/dist/extension-js-devtools/chromium/pages/welcome.js +2 -2
- package/dist/extension-js-devtools/edge/background/service_worker.js +2 -2
- package/dist/extension-js-devtools/edge/pages/welcome.js +2 -2
- package/dist/extension-js-devtools/firefox/background/scripts.js +2 -2
- package/dist/extension-js-devtools/firefox/pages/welcome.js +2 -2
- package/dist/extension-js-theme/build-stamp.json +2 -2
- package/dist/{143~0.mjs → ey~0.mjs} +2 -2
- package/dist/e~0.mjs +33 -0
- package/dist/feature-scripts-classic-traced-globals-loader.mjs +7 -2
- package/dist/feature-scripts-content-script-wrapper.js +56 -18
- package/dist/feature-scripts-content-script-wrapper.mjs +56 -18
- package/dist/feature-scripts-native-geturl-import-loader.mjs +1 -1
- package/dist/{105~0.mjs → g0~0.mjs} +1 -1
- package/dist/{88~0.mjs → j6~0.mjs} +9 -1
- package/dist/{731~0.mjs → j~0.mjs} +2 -2
- package/dist/{712~0.mjs → ka~0.mjs} +18 -2
- package/dist/{852~0.mjs → k~0.mjs} +4 -2
- package/dist/late-css-import-loader.mjs +1 -1
- package/dist/lib/addon-lint.d.ts +6 -0
- package/dist/lib/build-summary.d.ts +6 -0
- package/dist/lib/dev-additions.d.ts +12 -0
- package/dist/lib/extension-base-from-stack.d.ts +16 -0
- package/dist/lib/localized-manifest-name.d.ts +9 -0
- package/dist/lib/manifest-types.d.ts +276 -0
- package/dist/lib/messages.d.ts +6 -2
- package/dist/lib/process-started-at.d.ts +1 -0
- package/dist/lib/real-path.d.ts +8 -0
- package/dist/lib/resource-path.d.ts +1 -0
- package/dist/lib/session-paths.d.ts +2 -0
- package/dist/lib/split-chunks.d.ts +2 -1
- package/dist/lib/stats-handler.d.ts +1 -0
- package/dist/lib/tsconfig-includes-file.d.ts +1 -0
- package/dist/l~0.mjs +2290 -0
- package/dist/main-world-bridge.js +92 -23
- package/dist/main-world-bridge.mjs +92 -23
- package/dist/manifest-entry.d.ts +2 -0
- package/dist/manifest.mjs +3 -1
- package/dist/module.mjs +3 -3
- package/dist/{832~0.mjs → m~0.mjs} +2244 -288
- package/dist/o~0.mjs +47 -0
- package/dist/plugin-browsers/index.d.ts +7 -0
- package/dist/plugin-browsers/safari-dev-plugin.d.ts +2 -0
- package/dist/plugin-compatibility/compatibility-lib/messages.d.ts +5 -1
- package/dist/plugin-compatibility/compatibility-lib/native-browser-namespace.d.ts +5 -0
- package/dist/plugin-compatibility/feature-browser-global.d.ts +11 -1
- package/dist/plugin-compatibility/index.d.ts +2 -0
- package/dist/plugin-compilation/compilation-lib/messages.d.ts +4 -1
- package/dist/plugin-compilation/env.d.ts +1 -0
- package/dist/plugin-compilation/index.d.ts +2 -0
- package/dist/plugin-compilation/node-builtins.d.ts +5 -0
- package/dist/plugin-compilation/one-diagnostic-per-location.d.ts +13 -0
- package/dist/plugin-compilation/resolve-file-requests.d.ts +16 -0
- package/dist/plugin-compilation/warm-ancestor-watchers.d.ts +19 -0
- package/dist/plugin-compilation/watch-real-project-path.d.ts +27 -0
- package/dist/plugin-compilation/zip.d.ts +2 -0
- package/dist/plugin-css/css-in-content-script-loader.d.ts +1 -1
- package/dist/plugin-css/css-lib/build-css-rules.d.ts +3 -0
- package/dist/plugin-css/css-lib/inline-content-script-css.d.ts +3 -1
- package/dist/plugin-css/css-lib/messages.d.ts +4 -0
- package/dist/plugin-css/css-lib/sfc-style-block.d.ts +26 -0
- package/dist/plugin-css/css-lib/unplaced-style-imports.d.ts +7 -0
- package/dist/plugin-css/css-lib/verbatim-css.d.ts +1 -0
- package/dist/plugin-css/dead-css-url-loader.d.ts +9 -1
- package/dist/plugin-css/index.d.ts +1 -0
- package/dist/plugin-css/sfc-style-block-loader.d.ts +18 -0
- package/dist/plugin-css/unplaced-style-import-loader.d.ts +16 -0
- package/dist/plugin-playwright/index.d.ts +22 -0
- package/dist/plugin-reload/classify-reload.d.ts +20 -0
- package/dist/plugin-reload/index.d.ts +4 -2
- package/dist/plugin-reload/messages.d.ts +1 -0
- package/dist/plugin-reload/reload-dispatch.d.ts +21 -2
- package/dist/plugin-reload/reload-lib/dev-content-scripts.d.ts +6 -0
- package/dist/plugin-reload/reload-lib/scripts-replay-shim.d.ts +1 -1
- package/dist/plugin-reload/steps/inject-bridge-producer.d.ts +6 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/ChunkLoader.d.ts +3 -0
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/AutoPublicPath.d.ts +1 -1
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/BaseUri.d.ts +1 -1
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/LoadScript.d.ts +1 -1
- package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/PublicPath.d.ts +1 -1
- package/dist/plugin-special-folders/get-data.d.ts +2 -0
- package/dist/plugin-special-folders/hint-import-only-scripts.d.ts +4 -0
- package/dist/plugin-special-folders/include-files.d.ts +2 -0
- package/dist/plugin-special-folders/messages.d.ts +1 -0
- package/dist/plugin-web-extension/feature-html/html-lib/inject.d.ts +1 -1
- package/dist/plugin-web-extension/feature-html/html-lib/patch-html.d.ts +1 -0
- package/dist/plugin-web-extension/feature-html/steps/update-html-file.d.ts +1 -0
- package/dist/plugin-web-extension/feature-icons/extract-action-theme-icons.d.ts +1 -0
- package/dist/plugin-web-extension/feature-icons/extract-icon-variants.d.ts +2 -0
- package/dist/plugin-web-extension/feature-json/json-validation.d.ts +2 -1
- package/dist/plugin-web-extension/feature-json/messages.d.ts +2 -0
- package/dist/plugin-web-extension/feature-json/process-assets.d.ts +1 -1
- package/dist/plugin-web-extension/feature-manifest/manifest-lib/filter-keys-gecko.d.ts +21 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-lib/filter-keys-safari.d.ts +1 -1
- package/dist/plugin-web-extension/feature-manifest/manifest-lib/icon-variants-fallback.d.ts +15 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-lib/sanitize-fatal-shapes.d.ts +2 -1
- package/dist/plugin-web-extension/feature-manifest/manifest-lib/webkit-unsupported-keys.d.ts +15 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +1 -1
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/icons.d.ts +3 -2
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +1 -1
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +2 -1
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +1 -1
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +1 -1
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +4 -3
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +3 -2
- package/dist/plugin-web-extension/feature-manifest/messages.d.ts +15 -1
- package/dist/plugin-web-extension/feature-manifest/normalize-manifest-path.d.ts +2 -0
- package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/dev-additions.d.ts +8 -0
- package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-background.d.ts +2 -2
- package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-externally-connectable.d.ts +1 -1
- package/dist/plugin-web-extension/feature-manifest/steps/patch-gecko-background.d.ts +1 -0
- package/dist/plugin-web-extension/feature-manifest/steps/warn-content-script-host-access.d.ts +17 -0
- package/dist/plugin-web-extension/feature-manifest/steps/warn-description-length.d.ts +26 -0
- package/dist/plugin-web-extension/feature-manifest/steps/warn-gecko-unsupported-apis.d.ts +37 -2
- package/dist/plugin-web-extension/feature-scripts/contracts.d.ts +3 -0
- package/dist/plugin-web-extension/feature-scripts/index.d.ts +1 -0
- package/dist/plugin-web-extension/feature-scripts/messages.d.ts +10 -1
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/completion-value.d.ts +13 -0
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/injected-sheet-urls.d.ts +5 -0
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/main-world-bridge-pairing.d.ts +5 -0
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/main-world-copy-routing.d.ts +2 -0
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/registration-worlds.d.ts +10 -0
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/runtime-main-world-scripts.d.ts +25 -2
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/runtime-script-sheet.d.ts +14 -0
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/taken-extension-base.d.ts +10 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-base-uri-runtime-module.d.ts +7 -1
- package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/content-script-wrapper.d.ts +2 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/index.d.ts +2 -0
- package/dist/plugin-web-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +6 -0
- package/dist/plugin-web-extension/feature-scripts/steps/classic-traced-globals-loader.d.ts +1 -0
- package/dist/plugin-web-extension/feature-scripts/steps/compile-main-world-scripts.d.ts +4 -0
- package/dist/plugin-web-extension/feature-scripts/steps/keep-completion-value.d.ts +6 -0
- package/dist/plugin-web-extension/feature-scripts/steps/pair-runtime-main-world-bridges.d.ts +12 -0
- package/dist/plugin-web-extension/feature-scripts/steps/place-runtime-script-sheets.d.ts +12 -0
- package/dist/plugin-web-extension/feature-scripts/steps/prune-main-world-bridges.d.ts +1 -0
- package/dist/plugin-web-extension/feature-scripts/steps/root-injected-sheet-urls.d.ts +9 -0
- package/dist/plugin-web-extension/feature-scripts/steps/route-main-world-copies.d.ts +10 -0
- package/dist/plugin-web-extension/feature-scripts/steps/source-literals.d.ts +24 -0
- package/dist/plugin-web-extension/feature-scripts/steps/take-extension-base.d.ts +11 -0
- package/dist/plugin-web-extension/feature-scripts/steps/trace-runtime-loaded-files.d.ts +18 -3
- package/dist/plugin-web-extension/feature-scripts/steps/warn-main-world-registration-changed.d.ts +12 -0
- package/dist/plugin-web-extension/feature-scripts/steps/warn-moved-page-relative-urls.d.ts +30 -0
- package/dist/plugin-web-extension/feature-scripts/steps/warn-page-relative-script-path.d.ts +10 -0
- package/dist/plugin-web-extension/feature-scripts/steps/warn-unknown-registration-world.d.ts +10 -0
- package/dist/plugin-web-extension/feature-web-resources/collect-entry-imports.d.ts +1 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/messages.d.ts +2 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/page-requests.d.ts +5 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/resolve-war.d.ts +1 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/unreachable-resources.d.ts +1 -0
- package/dist/plugin-web-extension/shared/script-graph.d.ts +12 -0
- package/dist/preprocessor-passthrough-loader.mjs +1 -1
- package/dist/preview.mjs +1 -1
- package/dist/public-css-url-loader.mjs +1 -1
- package/dist/{331~0.mjs → q~0.mjs} +2 -2
- package/dist/rj~0.mjs +125 -0
- package/dist/{519~0.mjs → rl~0.mjs} +56 -5
- package/dist/rspack-config~0.mjs +3140 -3302
- package/dist/{177~0.mjs → r~0.mjs} +2 -2
- package/dist/sfc-style-block-loader.mjs +49 -0
- package/dist/stats-handler~0.mjs +15 -7
- package/dist/tm~0.mjs +71 -0
- package/dist/types.d.ts +46 -5
- package/dist/{285~0.mjs → t~0.mjs} +41 -26
- package/dist/unplaced-style-import-loader.mjs +131 -0
- package/dist/x~0.mjs +3 -0
- package/dist/y~0.mjs +234 -0
- package/dist/zip~0.mjs +5 -4
- package/dist/{363~0.mjs → z~0.mjs} +563 -281
- package/package.json +6 -6
- package/dist/527~0.mjs +0 -3
- package/dist/840~0.mjs +0 -5635
- /package/dist/{895~0.mjs → 3~0.mjs} +0 -0
- /package/dist/{374~0.mjs → 5~0.mjs} +0 -0
- /package/dist/{206~0.mjs → 6~0.mjs} +0 -0
- /package/dist/{471~0.mjs → g~0.mjs} +0 -0
- /package/dist/{117~0.mjs → w~0.mjs} +0 -0
|
@@ -103,8 +103,10 @@ function browserRowValue(browser, versionLine) {
|
|
|
103
103
|
const display = browserDisplayName(browser);
|
|
104
104
|
const line = String(versionLine || '').trim();
|
|
105
105
|
if (!line) return display;
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
const nightly = 'Firefox' === display && /(?:^|\s)v?\d+(?:\.\d+)*a\d+$/i.test(line) && !/nightly/i.test(line);
|
|
107
|
+
if (/^v?\d+(?:\.\d+)*(?:[a-z]+\d*)?$/i.test(line)) return `${display}${nightly ? ' Nightly' : ''} ${line}`;
|
|
108
|
+
const named = line.charAt(0).toUpperCase() + line.slice(1);
|
|
109
|
+
return nightly ? named.replace('Firefox', 'Firefox Nightly') : named;
|
|
108
110
|
}
|
|
109
111
|
const CARD_KEYS_ENV = 'EXTENSION_CLI_CARD_KEYS';
|
|
110
112
|
const CARD_KEYS_SEPARATOR = '\u001f';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __extjsCreateRequire } from "node:module"; const require = __extjsCreateRequire(import.meta.url);
|
|
2
2
|
import postcss from "postcss";
|
|
3
|
-
import { lateCssImportIgnored } from "./
|
|
3
|
+
import { lateCssImportIgnored } from "./9~0.mjs";
|
|
4
4
|
import * as __rspack_external_node_path_806ed179 from "node:path";
|
|
5
5
|
function findLateImports(css) {
|
|
6
6
|
let root;
|
package/dist/lib/addon-lint.d.ts
CHANGED
|
@@ -73,7 +73,13 @@ export declare function shouldRunAddonLint(input: {
|
|
|
73
73
|
}): Extract<AddonLintResult, {
|
|
74
74
|
status: 'skipped';
|
|
75
75
|
}> | null;
|
|
76
|
+
export declare function buildNamesOversizeFiles(result: AddonLintResult, input: {
|
|
77
|
+
browser: string;
|
|
78
|
+
mode: RunAddonLintInput['mode'];
|
|
79
|
+
}): boolean;
|
|
76
80
|
export declare function collectAddonLintLines(output: AddonLintOutput | null | undefined): AddonLintLine[];
|
|
81
|
+
export declare const ADDON_LINT_PARSE_LIMIT_MB = 5;
|
|
82
|
+
export declare function oversizeSingleFileLines(distPath: string): string[];
|
|
77
83
|
export declare function attributionFor(location: string, chunkProvenance?: Map<string, ChunkProvenance>, code?: string, browser?: string): string;
|
|
78
84
|
export declare function formatAddonLintFindings(output: AddonLintOutput | null | undefined, distDisplay: string, maxPrinted?: number, chunkProvenance?: Map<string, ChunkProvenance>, browser?: string): {
|
|
79
85
|
findings: number;
|
|
@@ -34,9 +34,14 @@ export type BuildSummary = {
|
|
|
34
34
|
/** Absolute dist directory the build emitted into. Hosts that shell out
|
|
35
35
|
* would otherwise have to re-derive `<project>/dist/<browser>` themselves. */
|
|
36
36
|
output_path?: string;
|
|
37
|
+
/** The files the extension ships. Source maps are counted apart. */
|
|
37
38
|
total_assets: number;
|
|
38
39
|
total_bytes: number;
|
|
39
40
|
largest_asset_bytes: number;
|
|
41
|
+
/** The `.map` files in the output folder, which no zip carries. Absent
|
|
42
|
+
* when the build wrote none. */
|
|
43
|
+
source_map_assets?: number;
|
|
44
|
+
source_map_bytes?: number;
|
|
40
45
|
warnings_count: number;
|
|
41
46
|
errors_count: number;
|
|
42
47
|
/** Plain-text warning messages (ANSI-stripped, capped) so programmatic
|
|
@@ -66,4 +71,5 @@ export declare function getBuildSummary(browser: string, info: {
|
|
|
66
71
|
errors?: unknown[];
|
|
67
72
|
} | null, outputPath?: string, outputFiles?: Array<{
|
|
68
73
|
size: number;
|
|
74
|
+
name?: string;
|
|
69
75
|
}>, codes?: ReadonlyMap<string, string>): Omit<BuildSummary, 'buildType'>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DevAddition {
|
|
2
|
+
kind: 'permission' | 'host_permission' | 'web_accessible_resource' | 'browser_flag' | 'browser_preference';
|
|
3
|
+
value: string;
|
|
4
|
+
reason: string;
|
|
5
|
+
matches?: string[];
|
|
6
|
+
applied?: boolean;
|
|
7
|
+
cause?: string;
|
|
8
|
+
change?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function recordDevAdditions(compilation: object, additions: DevAddition[]): void;
|
|
11
|
+
export declare function devAdditionsOf(compilation: object | undefined | null): DevAddition[] | undefined;
|
|
12
|
+
export declare function mergeDevAdditions(compiled: DevAddition[] | undefined, previous: unknown): DevAddition[] | undefined;
|
|
@@ -1 +1,17 @@
|
|
|
1
1
|
export declare const EXTENSION_BASE_FROM_STACK = "(function(){try{var m=String(new Error().stack||\"\").match(/[a-z-]+-extension:\\/\\/[^\\/\\s)]+\\//);return m?m[0]:\"\"}catch(_){return \"\"}})()";
|
|
2
|
+
export declare const EXTENSION_BASE_GLOBAL = "__EXTJS_EXTENSION_BASE__";
|
|
3
|
+
export declare const EXTENSION_BASE_ATTRIBUTE = "data-extjs-extension-base";
|
|
4
|
+
export declare const TAKEN_EXTENSION_BASE = "__extjsTakenBase";
|
|
5
|
+
export declare function extensionBaseFromFile(gecko: boolean): string;
|
|
6
|
+
export declare function closedOnSlash(name: string): string;
|
|
7
|
+
export declare const GECKO_EXTENSION_SCHEME = "moz-extension";
|
|
8
|
+
export declare const CHROMIUM_EXTENSION_SCHEME = "chrome-extension";
|
|
9
|
+
export declare const WEBKIT_EXTENSION_SCHEME = "safari-web-extension";
|
|
10
|
+
export declare function extensionSchemeFor(browser: string): string;
|
|
11
|
+
export declare function unlessExtensionAddress(name: string, scheme?: string): string;
|
|
12
|
+
export declare function extensionBaseGlobal(identity: string): string;
|
|
13
|
+
export declare function extensionBaseAttribute(global?: string): string;
|
|
14
|
+
export declare function takeBlockOpen(global?: string): string;
|
|
15
|
+
export declare const TAKE_BLOCK_OPEN: string;
|
|
16
|
+
export declare function readTakeBlock(text: string): string | null;
|
|
17
|
+
export declare function prependBehindTakeBlock(text: string, prefix: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface LocalizedNameOptions {
|
|
2
|
+
whenUnresolved?: string;
|
|
3
|
+
systemLocale?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface LocalizableManifest {
|
|
6
|
+
name?: unknown;
|
|
7
|
+
default_locale?: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare function resolveLocalizedManifestName(manifest: LocalizableManifest | null | undefined, searchRoots: string[], options?: LocalizedNameOptions): string;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
export interface UrlFilter {
|
|
2
|
+
cidrBlocks?: string[] | undefined;
|
|
3
|
+
schemes?: string[] | undefined;
|
|
4
|
+
urlMatches?: string | undefined;
|
|
5
|
+
pathContains?: string | undefined;
|
|
6
|
+
hostSuffix?: string | undefined;
|
|
7
|
+
hostPrefix?: string | undefined;
|
|
8
|
+
hostContains?: string | undefined;
|
|
9
|
+
urlContains?: string | undefined;
|
|
10
|
+
querySuffix?: string | undefined;
|
|
11
|
+
urlPrefix?: string | undefined;
|
|
12
|
+
hostEquals?: string | undefined;
|
|
13
|
+
urlEquals?: string | undefined;
|
|
14
|
+
queryContains?: string | undefined;
|
|
15
|
+
pathPrefix?: string | undefined;
|
|
16
|
+
pathEquals?: string | undefined;
|
|
17
|
+
pathSuffix?: string | undefined;
|
|
18
|
+
queryEquals?: string | undefined;
|
|
19
|
+
queryPrefix?: string | undefined;
|
|
20
|
+
urlSuffix?: string | undefined;
|
|
21
|
+
ports?: Array<number | number[]> | undefined;
|
|
22
|
+
originAndPathMatches?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface PageStateMatcherProperties {
|
|
25
|
+
pageUrl?: UrlFilter | undefined;
|
|
26
|
+
css?: string[] | undefined;
|
|
27
|
+
isBookmarked?: boolean | undefined;
|
|
28
|
+
}
|
|
29
|
+
export interface ManifestIcons {
|
|
30
|
+
[size: number]: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ManifestAction {
|
|
33
|
+
default_icon?: ManifestIcons | undefined;
|
|
34
|
+
default_title?: string | undefined;
|
|
35
|
+
default_popup?: string | undefined;
|
|
36
|
+
}
|
|
37
|
+
export type ManifestPermission = 'accessibilityFeatures.modify' | 'accessibilityFeatures.read' | 'activeTab' | 'alarms' | 'audio' | 'background' | 'bookmarks' | 'browsingData' | 'certificateProvider' | 'clipboardRead' | 'clipboardWrite' | 'contentSettings' | 'contextMenus' | 'cookies' | 'debugger' | 'declarativeContent' | 'declarativeNetRequest' | 'declarativeNetRequestFeedback' | 'declarativeNetRequestWithHostAccess' | 'declarativeWebRequest' | 'desktopCapture' | 'documentScan' | 'downloads' | 'downloads.open' | 'downloads.shelf' | 'downloads.ui' | 'enterprise.deviceAttributes' | 'enterprise.hardwarePlatform' | 'enterprise.login' | 'enterprise.networkingAttributes' | 'enterprise.platformKeys' | 'experimental' | 'favicon' | 'fileBrowserHandler' | 'fileSystemProvider' | 'fontSettings' | 'gcm' | 'geolocation' | 'history' | 'identity' | 'identity.email' | 'idle' | 'loginState' | 'management' | 'nativeMessaging' | 'notifications' | 'offscreen' | 'pageCapture' | 'platformKeys' | 'power' | 'printerProvider' | 'printing' | 'printingMetrics' | 'privacy' | 'processes' | 'proxy' | 'readingList' | 'scripting' | 'search' | 'sessions' | 'sidePanel' | 'storage' | 'system.cpu' | 'system.display' | 'system.memory' | 'system.storage' | 'systemLog' | 'tabCapture' | 'tabGroups' | 'tabs' | 'topSites' | 'tts' | 'ttsEngine' | 'unlimitedStorage' | 'userScripts' | 'vpnProvider' | 'wallpaper' | 'webAuthenticationProxy' | 'webNavigation' | 'webRequest' | 'webRequestBlocking' | 'webRequestAuthProvider';
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use `ManifestPermission` instead.
|
|
40
|
+
*/
|
|
41
|
+
export type ManifestPermissions = ManifestPermission;
|
|
42
|
+
export type ManifestOptionalPermission = Exclude<ManifestPermission, 'debugger' | 'declarativeNetRequest' | 'devtools' | 'experimental' | 'fontSettings' | 'geolocation' | 'proxy' | 'tts' | 'ttsEngine' | 'unlimitedStorage' | 'wallpaper' | 'webAuthenticationProxy'>;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use `ManifestOptionalPermission` instead.
|
|
45
|
+
*/
|
|
46
|
+
export type ManifestOptionalPermissions = ManifestOptionalPermission;
|
|
47
|
+
export interface SearchProvider {
|
|
48
|
+
name?: string | undefined;
|
|
49
|
+
keyword?: string | undefined;
|
|
50
|
+
favicon_url?: string | undefined;
|
|
51
|
+
search_url: string;
|
|
52
|
+
encoding?: string | undefined;
|
|
53
|
+
suggest_url?: string | undefined;
|
|
54
|
+
instant_url?: string | undefined;
|
|
55
|
+
image_url?: string | undefined;
|
|
56
|
+
search_url_post_params?: string | undefined;
|
|
57
|
+
suggest_url_post_params?: string | undefined;
|
|
58
|
+
instant_url_post_params?: string | undefined;
|
|
59
|
+
image_url_post_params?: string | undefined;
|
|
60
|
+
alternate_urls?: string[] | undefined;
|
|
61
|
+
prepopulated_id?: number | undefined;
|
|
62
|
+
is_default?: boolean | undefined;
|
|
63
|
+
}
|
|
64
|
+
export interface ManifestBase {
|
|
65
|
+
manifest_version: number;
|
|
66
|
+
name: string;
|
|
67
|
+
version: string;
|
|
68
|
+
default_locale?: string | undefined;
|
|
69
|
+
description?: string | undefined;
|
|
70
|
+
icons?: ManifestIcons | undefined;
|
|
71
|
+
author?: {
|
|
72
|
+
email: string;
|
|
73
|
+
} | undefined;
|
|
74
|
+
background_page?: string | undefined;
|
|
75
|
+
chrome_settings_overrides?: {
|
|
76
|
+
homepage?: string | undefined;
|
|
77
|
+
search_provider?: SearchProvider | undefined;
|
|
78
|
+
startup_pages?: string[] | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
chrome_ui_overrides?: {
|
|
81
|
+
bookmarks_ui?: {
|
|
82
|
+
remove_bookmark_shortcut?: boolean | undefined;
|
|
83
|
+
remove_button?: boolean | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
chrome_url_overrides?: {
|
|
87
|
+
bookmarks?: string | undefined;
|
|
88
|
+
history?: string | undefined;
|
|
89
|
+
newtab?: string | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
commands?: {
|
|
92
|
+
[name: string]: {
|
|
93
|
+
suggested_key?: {
|
|
94
|
+
default?: string | undefined;
|
|
95
|
+
windows?: string | undefined;
|
|
96
|
+
mac?: string | undefined;
|
|
97
|
+
chromeos?: string | undefined;
|
|
98
|
+
linux?: string | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
global?: boolean | undefined;
|
|
102
|
+
};
|
|
103
|
+
} | undefined;
|
|
104
|
+
content_capabilities?: {
|
|
105
|
+
matches?: string[] | undefined;
|
|
106
|
+
permissions?: string[] | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
content_scripts?: Array<{
|
|
109
|
+
matches?: string[] | undefined;
|
|
110
|
+
exclude_matches?: string[] | undefined;
|
|
111
|
+
css?: string[] | undefined;
|
|
112
|
+
js?: string[] | undefined;
|
|
113
|
+
run_at?: string | undefined;
|
|
114
|
+
all_frames?: boolean | undefined;
|
|
115
|
+
match_about_blank?: boolean | undefined;
|
|
116
|
+
include_globs?: string[] | undefined;
|
|
117
|
+
exclude_globs?: string[] | undefined;
|
|
118
|
+
}> | undefined;
|
|
119
|
+
converted_from_user_script?: boolean | undefined;
|
|
120
|
+
current_locale?: string | undefined;
|
|
121
|
+
devtools_page?: string | undefined;
|
|
122
|
+
event_rules?: Array<{
|
|
123
|
+
event?: string | undefined;
|
|
124
|
+
actions?: Array<{
|
|
125
|
+
type: string;
|
|
126
|
+
}> | undefined;
|
|
127
|
+
conditions?: PageStateMatcherProperties[] | undefined;
|
|
128
|
+
}> | undefined;
|
|
129
|
+
externally_connectable?: {
|
|
130
|
+
ids?: string[] | undefined;
|
|
131
|
+
matches?: string[] | undefined;
|
|
132
|
+
accepts_tls_channel_id?: boolean | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
file_browser_handlers?: Array<{
|
|
135
|
+
id?: string | undefined;
|
|
136
|
+
default_title?: string | undefined;
|
|
137
|
+
file_filters?: string[] | undefined;
|
|
138
|
+
}> | undefined;
|
|
139
|
+
file_system_provider_capabilities?: {
|
|
140
|
+
configurable?: boolean | undefined;
|
|
141
|
+
watchable?: boolean | undefined;
|
|
142
|
+
multiple_mounts?: boolean | undefined;
|
|
143
|
+
source?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
homepage_url?: string | undefined;
|
|
146
|
+
import?: Array<{
|
|
147
|
+
id: string;
|
|
148
|
+
minimum_version?: string | undefined;
|
|
149
|
+
}> | undefined;
|
|
150
|
+
export?: {
|
|
151
|
+
whitelist?: string[] | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
incognito?: string | undefined;
|
|
154
|
+
input_components?: Array<{
|
|
155
|
+
name?: string | undefined;
|
|
156
|
+
type?: string | undefined;
|
|
157
|
+
id?: string | undefined;
|
|
158
|
+
description?: string | undefined;
|
|
159
|
+
language?: string[] | string | undefined;
|
|
160
|
+
layouts?: string[] | undefined;
|
|
161
|
+
indicator?: string | undefined;
|
|
162
|
+
}> | undefined;
|
|
163
|
+
key?: string | undefined;
|
|
164
|
+
minimum_chrome_version?: string | undefined;
|
|
165
|
+
nacl_modules?: Array<{
|
|
166
|
+
path: string;
|
|
167
|
+
mime_type: string;
|
|
168
|
+
}> | undefined;
|
|
169
|
+
oauth2?: {
|
|
170
|
+
client_id: string;
|
|
171
|
+
scopes?: string[] | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
offline_enabled?: boolean | undefined;
|
|
174
|
+
omnibox?: {
|
|
175
|
+
keyword: string;
|
|
176
|
+
} | undefined;
|
|
177
|
+
options_page?: string | undefined;
|
|
178
|
+
options_ui?: {
|
|
179
|
+
page?: string | undefined;
|
|
180
|
+
chrome_style?: boolean | undefined;
|
|
181
|
+
open_in_tab?: boolean | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
platforms?: Array<{
|
|
184
|
+
nacl_arch?: string | undefined;
|
|
185
|
+
sub_package_path: string;
|
|
186
|
+
}> | undefined;
|
|
187
|
+
plugins?: Array<{
|
|
188
|
+
path: string;
|
|
189
|
+
}> | undefined;
|
|
190
|
+
requirements?: {
|
|
191
|
+
'3D'?: {
|
|
192
|
+
features?: string[] | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
plugins?: {
|
|
195
|
+
npapi?: boolean | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
sandbox?: {
|
|
199
|
+
pages: string[];
|
|
200
|
+
content_security_policy?: string | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
short_name?: string | undefined;
|
|
203
|
+
spellcheck?: {
|
|
204
|
+
dictionary_language?: string | undefined;
|
|
205
|
+
dictionary_locale?: string | undefined;
|
|
206
|
+
dictionary_format?: string | undefined;
|
|
207
|
+
dictionary_path?: string | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
storage?: {
|
|
210
|
+
managed_schema: string;
|
|
211
|
+
} | undefined;
|
|
212
|
+
tts_engine?: {
|
|
213
|
+
voices: Array<{
|
|
214
|
+
voice_name: string;
|
|
215
|
+
lang?: string | undefined;
|
|
216
|
+
gender?: string | undefined;
|
|
217
|
+
event_types?: string[] | undefined;
|
|
218
|
+
}>;
|
|
219
|
+
} | undefined;
|
|
220
|
+
update_url?: string | undefined;
|
|
221
|
+
version_name?: string | undefined;
|
|
222
|
+
[key: string]: any;
|
|
223
|
+
}
|
|
224
|
+
export interface ManifestV2 extends ManifestBase {
|
|
225
|
+
manifest_version: 2;
|
|
226
|
+
browser_action?: ManifestAction | undefined;
|
|
227
|
+
page_action?: ManifestAction | undefined;
|
|
228
|
+
background?: {
|
|
229
|
+
scripts?: string[] | undefined;
|
|
230
|
+
page?: string | undefined;
|
|
231
|
+
persistent?: boolean | undefined;
|
|
232
|
+
} | undefined;
|
|
233
|
+
content_security_policy?: string | undefined;
|
|
234
|
+
optional_permissions?: (ManifestOptionalPermission | string)[] | undefined;
|
|
235
|
+
permissions?: (ManifestPermission | string)[] | undefined;
|
|
236
|
+
web_accessible_resources?: string[] | undefined;
|
|
237
|
+
}
|
|
238
|
+
export interface ManifestV3 extends ManifestBase {
|
|
239
|
+
manifest_version: 3;
|
|
240
|
+
action?: ManifestAction | undefined;
|
|
241
|
+
background?: {
|
|
242
|
+
service_worker: string;
|
|
243
|
+
type?: 'module';
|
|
244
|
+
} | undefined;
|
|
245
|
+
content_scripts?: Array<{
|
|
246
|
+
matches?: string[] | undefined;
|
|
247
|
+
exclude_matches?: string[] | undefined;
|
|
248
|
+
css?: string[] | undefined;
|
|
249
|
+
js?: string[] | undefined;
|
|
250
|
+
run_at?: string | undefined;
|
|
251
|
+
all_frames?: boolean | undefined;
|
|
252
|
+
match_about_blank?: boolean | undefined;
|
|
253
|
+
include_globs?: string[] | undefined;
|
|
254
|
+
exclude_globs?: string[] | undefined;
|
|
255
|
+
world?: 'ISOLATED' | 'MAIN' | undefined;
|
|
256
|
+
}> | undefined;
|
|
257
|
+
content_security_policy?: {
|
|
258
|
+
extension_pages?: string;
|
|
259
|
+
sandbox?: string;
|
|
260
|
+
};
|
|
261
|
+
host_permissions?: string[] | undefined;
|
|
262
|
+
optional_permissions?: ManifestOptionalPermission[] | undefined;
|
|
263
|
+
optional_host_permissions?: string[] | undefined;
|
|
264
|
+
permissions?: ManifestPermission[] | undefined;
|
|
265
|
+
web_accessible_resources?: Array<{
|
|
266
|
+
resources: string[];
|
|
267
|
+
use_dynamic_url?: boolean | undefined;
|
|
268
|
+
} & ({
|
|
269
|
+
extension_ids: string[];
|
|
270
|
+
matches?: string[] | undefined;
|
|
271
|
+
} | {
|
|
272
|
+
matches: string[];
|
|
273
|
+
extension_ids?: string[] | undefined;
|
|
274
|
+
})> | undefined;
|
|
275
|
+
}
|
|
276
|
+
export type Manifest = ManifestV2 | ManifestV3;
|
package/dist/lib/messages.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare function projectInstallFallbackToNpm(pmName: string): string;
|
|
|
25
25
|
export declare function projectInstallScriptsDisabled(pmName: string): string;
|
|
26
26
|
export declare function anotherDevSessionActive(browser: string, pid: number, runId: string): string;
|
|
27
27
|
export declare function buildOutDirInvalid(value: string): string;
|
|
28
|
+
export declare function buildZipDirInvalid(value: string, reason: 'empty' | 'outside' | 'inside-build', resolved?: string): string;
|
|
28
29
|
export declare function productionLoopbackOrigins(origins: Array<{
|
|
29
30
|
pattern: string;
|
|
30
31
|
where: string;
|
|
@@ -36,13 +37,15 @@ export declare function productionLoopbackOriginsText(origins: Array<{
|
|
|
36
37
|
export declare function buildSharesDevDist(browser: string, distDisplay: string, pid: number): string;
|
|
37
38
|
export declare function anotherDevSessionRefused(browser: string, pid: number, port: number | null): string;
|
|
38
39
|
export declare function buildAssetsTree(stats: Stats | undefined, outputFiles?: OutputFile[]): string;
|
|
39
|
-
export declare function buildComplete(browser: DevOptions['browser'], distDisplayPath: string, totalBytes?: number, mode?: 'development' | 'production' | 'none'): string;
|
|
40
|
+
export declare function buildComplete(browser: DevOptions['browser'], distDisplayPath: string, totalBytes?: number, mode?: 'development' | 'production' | 'none', sourceMapBytes?: number): string;
|
|
40
41
|
export declare function buildToolchain(toolchain: BuildToolchain): string;
|
|
41
42
|
export declare function operaBuildUnminified(): string;
|
|
42
43
|
export declare function addonLintSummary(errorCount: number, warningCount: number, distDisplay: string): string;
|
|
43
44
|
export declare function addonLintFinding(level: 'error' | 'warning', code: string, message: string, location: string, attribution?: string): string;
|
|
44
45
|
export declare function addonLintDependencyAttribution(packages: string[], onlyDependencies: boolean): string;
|
|
45
46
|
export declare function addonLintUnsupportedApiFix(browser: string): string;
|
|
47
|
+
export declare function addonLintFileTooLargeFix(limitMb: number, singleFileSurface: string | null): string;
|
|
48
|
+
export declare function fileTooLargeForStore(file: string, bytes: number, fix: string): string;
|
|
46
49
|
export declare function addonLintReviewerNote(noteDisplay: string): string;
|
|
47
50
|
export declare function addonLintMore(hiddenCount: number, distDisplay: string): string;
|
|
48
51
|
export declare function addonLintNotInstalled(installHint: string, staleNote?: string | null): string;
|
|
@@ -113,7 +116,7 @@ export declare function runtimeChunkKeptInline(runtimeChunk: unknown): string;
|
|
|
113
116
|
export declare function configResolvedChangeIgnored(keys: string[]): string;
|
|
114
117
|
export declare function debugOutputPath(pathValue: string): string;
|
|
115
118
|
export declare function previewingCustomOutput(browser: DevOptions['browser'], outputPath: string, distPath: string): string;
|
|
116
|
-
export declare function productionControlOpen(browser: DevOptions['browser'], controlledPath: string, distPath: string, allowEval: boolean): string;
|
|
119
|
+
export declare function productionControlOpen(browser: DevOptions['browser'], controlledPath: string, distPath: string, allowEval: boolean, hasBackground?: boolean): string;
|
|
117
120
|
export declare function debugPreviewOutput(outputPath: string, distPath: string): string;
|
|
118
121
|
export declare function debugContextPath(packageJsonDir: string): string;
|
|
119
122
|
export declare function debugExtensionsToLoad(extensions: string[]): string;
|
|
@@ -130,3 +133,4 @@ export declare function managedDependencyCopyWarning(duplicates: Array<{
|
|
|
130
133
|
name: string;
|
|
131
134
|
shipped: string;
|
|
132
135
|
}>, configPath: string): string;
|
|
136
|
+
export declare function manifestV2OnChromium(target: string, usesBlockingWebRequest: boolean): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ownProcessStartedAt(): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function createPathComparisons(resolveLinks?: (target: string) => string): {
|
|
2
|
+
realPath: (target: string) => string;
|
|
3
|
+
isSamePath: (a: string, b: string) => boolean;
|
|
4
|
+
isInsidePath: (parent: string, child: string) => boolean;
|
|
5
|
+
isSameOrInsidePath: (parent: string, child: string) => boolean;
|
|
6
|
+
isOsPathUnder: (folder: string, reference: string) => boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const realPath: (target: string) => string, isSamePath: (a: string, b: string) => boolean, isInsidePath: (parent: string, child: string) => boolean, isSameOrInsidePath: (parent: string, child: string) => boolean, isOsPathUnder: (folder: string, reference: string) => boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function canonicalizeDir(dir: string): string;
|
|
2
|
+
export declare function forgetResolvedModuleFolders(): void;
|
|
2
3
|
export declare function canonicalizeResourcePath(resourcePath: string): string;
|
|
3
4
|
export declare function toResourceKey(resourcePath: string): string;
|
|
4
5
|
export declare function isResourceUnderDirs(resource: string, dirs: string[]): boolean;
|
|
@@ -4,6 +4,8 @@ export declare function legacyControlPortFilePath(projectPath: string, browser:
|
|
|
4
4
|
export declare const CONTROL_TOKEN_FILE_PREFIX = "control-token-";
|
|
5
5
|
export declare function controlTokenPath(projectPath: string, browser: string): string;
|
|
6
6
|
export declare function legacyControlTokenPath(projectPath: string): string;
|
|
7
|
+
export declare const SESSION_STATE_IGNORE_CONTENT: string;
|
|
8
|
+
export declare function ensureSessionStateIgnoreFile(projectPath: string): void;
|
|
7
9
|
export declare function sessionArtifactsRootDir(projectPath: string): string;
|
|
8
10
|
export declare const SESSION_ARTIFACTS_IGNORE_CONTENT: string;
|
|
9
11
|
export declare function sessionArtifactsIgnoreFilePath(projectPath: string): string;
|
|
@@ -11,4 +11,5 @@ export declare function pageInitialChunks(chunk: ChunkNameLike): boolean;
|
|
|
11
11
|
export declare const FRAMEWORK_PACKAGE_PATTERN: RegExp;
|
|
12
12
|
export type SplitChunksConfig = NonNullable<NonNullable<Configuration['optimization']>['splitChunks']>;
|
|
13
13
|
export declare const SHARED_CHUNK_DIR = "shared";
|
|
14
|
-
export declare
|
|
14
|
+
export declare const GECKO_MAX_CHUNK_BYTES: number;
|
|
15
|
+
export declare function defaultSplitChunks(browser?: string): SplitChunksConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tsconfigCanIncludeFile(configPath: string, filePath: string): boolean;
|