extension 4.0.18 → 4.0.19
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/49.cjs +17 -8
- package/dist/browsers.cjs +661 -14
- package/dist/cli.cjs +1821 -1731
- package/dist/extension/browsers/browsers-lib/banner.d.ts +2 -0
- package/dist/extension/browsers/browsers-lib/messages.d.ts +1 -0
- package/dist/extension/browsers/index.d.ts +4 -0
- package/dist/extension/browsers/run-safari/safari-launch/index.d.ts +14 -1
- package/dist/extension/browsers/run-safari/safari-packager.d.ts +30 -0
- package/package.json +4 -4
|
@@ -20,6 +20,7 @@ export declare function printDevBannerOnce(opts: {
|
|
|
20
20
|
extensionId?: string;
|
|
21
21
|
};
|
|
22
22
|
browserVersionLine?: string;
|
|
23
|
+
profilePath?: string;
|
|
23
24
|
}): Promise<boolean>;
|
|
24
25
|
export declare function printProdBannerOnce(opts: {
|
|
25
26
|
browser: BrowserType;
|
|
@@ -33,5 +34,6 @@ export declare function printProdBannerOnce(opts: {
|
|
|
33
34
|
includeExtensionId?: boolean;
|
|
34
35
|
readyPath?: string;
|
|
35
36
|
includeRunId?: boolean;
|
|
37
|
+
profilePath?: string;
|
|
36
38
|
}): Promise<boolean>;
|
|
37
39
|
export {};
|
|
@@ -118,6 +118,7 @@ export interface DevClientMessage {
|
|
|
118
118
|
export declare function runningInDevelopment(manifest: DevManifestInfo, browser: BrowserType, message: DevClientMessage, browserVersionLine?: string, updateSuffix?: string, opts?: {
|
|
119
119
|
includeExtensionId?: boolean;
|
|
120
120
|
runLabel?: string;
|
|
121
|
+
profilePath?: string;
|
|
121
122
|
}): string;
|
|
122
123
|
export declare function emptyLine(): string;
|
|
123
124
|
export declare function separatorLine(): string;
|
|
@@ -74,3 +74,7 @@ export interface BrowserController {
|
|
|
74
74
|
*/
|
|
75
75
|
export declare function launchBrowser(opts: BrowserLaunchOptions): Promise<BrowserController>;
|
|
76
76
|
export { runOnlyPreviewBrowser } from './run-only';
|
|
77
|
+
export { packageSafariExtension, type SafariBuildPreflight, type SafariPackageResult, type SafariPipelineMode, safariBuildPreflight, safariPreflightError } from './run-safari/safari-launch';
|
|
78
|
+
export { builtAppPath, isValidBundleId, macOsSchemeName, resolveSafariBuildConfig, xcodeProjectPath } from './run-safari/safari-launch/safari-config';
|
|
79
|
+
export { createSafariPackager, type SafariPackagerFn, type SafariPackagerOptions, type SafariPackagerOverrides } from './run-safari/safari-packager';
|
|
80
|
+
export type { SafariBuildConfig, SafariPluginLike } from './run-safari/safari-types';
|
|
@@ -2,10 +2,23 @@ import type { BrowserLogger } from '../../browsers-types';
|
|
|
2
2
|
import type { SafariPluginLike } from '../safari-types';
|
|
3
3
|
export declare function toolOutputTail(output: string): string;
|
|
4
4
|
export type SafariPipelineMode = 'full' | 'resync';
|
|
5
|
+
/**
|
|
6
|
+
* What the pipeline resolved for this app. `bundleIdDerived` used to exist
|
|
7
|
+
* only as a log line, which left a machine caller unable to learn that its
|
|
8
|
+
* app carries a generated dev.extensionjs.* id Apple will not accept.
|
|
9
|
+
*/
|
|
10
|
+
export interface SafariPackageResult {
|
|
11
|
+
appName: string;
|
|
12
|
+
bundleId: string;
|
|
13
|
+
bundleIdDerived: boolean;
|
|
14
|
+
appPath: string;
|
|
15
|
+
xcodeProjectPath: string;
|
|
16
|
+
macOsOnly: boolean;
|
|
17
|
+
}
|
|
5
18
|
export declare function safariPreflightError(): string | null;
|
|
6
19
|
export interface SafariBuildPreflight {
|
|
7
20
|
severity: 'ok' | 'skip' | 'fatal';
|
|
8
21
|
message?: string;
|
|
9
22
|
}
|
|
10
23
|
export declare function safariBuildPreflight(): SafariBuildPreflight;
|
|
11
|
-
export declare function packageSafariExtension(host: SafariPluginLike, outputPath: string, logger?: BrowserLogger, mode?: SafariPipelineMode): Promise<
|
|
24
|
+
export declare function packageSafariExtension(host: SafariPluginLike, outputPath: string, logger?: BrowserLogger, mode?: SafariPipelineMode): Promise<SafariPackageResult>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BrowserLogger } from '../browsers-types';
|
|
2
|
+
import { type SafariPackageResult, type SafariPipelineMode } from './safari-launch';
|
|
3
|
+
/**
|
|
4
|
+
* Identity overrides develop resolves per build (CLI flags merged with
|
|
5
|
+
* `extension.config.js` `browser.safari`) and hands to the packager.
|
|
6
|
+
*/
|
|
7
|
+
export interface SafariPackagerOverrides {
|
|
8
|
+
appName?: string;
|
|
9
|
+
bundleId?: string;
|
|
10
|
+
macOsOnly?: boolean;
|
|
11
|
+
forceRegenerate?: boolean;
|
|
12
|
+
safariBinary?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SafariPackagerOptions extends SafariPackagerOverrides {
|
|
15
|
+
/** 'safari' or 'webkit-based'. Defaults to 'safari'. */
|
|
16
|
+
browser?: 'safari' | 'webkit-based';
|
|
17
|
+
/** Skip opening the packaged app. Defaults to true: packaging is not launching. */
|
|
18
|
+
noOpen?: boolean;
|
|
19
|
+
/** Print the commands instead of running them. */
|
|
20
|
+
dryRun?: boolean;
|
|
21
|
+
logger?: BrowserLogger;
|
|
22
|
+
}
|
|
23
|
+
export type SafariPackagerFn = (distPath: string, mode?: SafariPipelineMode, overrides?: SafariPackagerOverrides) => Promise<SafariPackageResult>;
|
|
24
|
+
/**
|
|
25
|
+
* Builds the `safariPackager` callback `extensionBuild`/`extensionDev` accept.
|
|
26
|
+
* Without it a library caller that asks for `browser: 'safari'` gets a plain
|
|
27
|
+
* dist and no app at all, because develop deliberately owns no Xcode code and
|
|
28
|
+
* only packages when a packager is injected.
|
|
29
|
+
*/
|
|
30
|
+
export declare function createSafariPackager(options?: SafariPackagerOptions): SafariPackagerFn;
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"extension": "./bin/extension.cjs"
|
|
39
39
|
},
|
|
40
40
|
"name": "extension",
|
|
41
|
-
"version": "4.0.
|
|
41
|
+
"version": "4.0.19",
|
|
42
42
|
"description": "The cross-browser extension framework. Build Chrome, Edge, Firefox, and Safari extensions with no build configuration.",
|
|
43
43
|
"homepage": "https://extension.js.org/",
|
|
44
44
|
"bugs": {
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"vivaldi-location2": "2.1.0",
|
|
107
107
|
"waterfox-location": "2.1.0",
|
|
108
108
|
"yandex-location": "2.1.0",
|
|
109
|
-
"extension-create": "4.0.
|
|
110
|
-
"extension-develop": "4.0.
|
|
111
|
-
"extension-install": "4.0.
|
|
109
|
+
"extension-create": "4.0.19",
|
|
110
|
+
"extension-develop": "4.0.19",
|
|
111
|
+
"extension-install": "4.0.19",
|
|
112
112
|
"commander": "^15.0.0",
|
|
113
113
|
"pintor": "0.3.0",
|
|
114
114
|
"semver": "^7.7.3",
|