extension 3.2.0-next.9 → 3.2.1
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 +2 -2
- package/dist/check-updates.d.ts +4 -1
- package/dist/cli-lib/messages.d.ts +4 -1
- package/dist/cli.js +733 -707
- package/package.json +4 -15
- package/dist/types/index.d.ts +0 -0
- package/types/css-content.d.ts +0 -15
- package/types/css-modules.d.ts +0 -27
- package/types/extension-create-shim.d.ts +0 -24
- package/types/extension-develop-shim.d.ts +0 -105
- package/types/images.d.ts +0 -66
- package/types/index.d.ts +0 -69
- package/types/index.ts +0 -15
- package/types/js-frameworks.d.ts +0 -11
- package/types/polyfill.d.ts +0 -15
package/package.json
CHANGED
|
@@ -17,25 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "./dist/cli.js",
|
|
19
19
|
"types": "./dist/cli.d.ts",
|
|
20
|
-
"typesVersions": {
|
|
21
|
-
"*": {
|
|
22
|
-
"types": [
|
|
23
|
-
"./types/index.d.ts"
|
|
24
|
-
],
|
|
25
|
-
"types/*": [
|
|
26
|
-
"./types/*"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
20
|
"files": [
|
|
31
|
-
"dist"
|
|
32
|
-
"types"
|
|
21
|
+
"dist"
|
|
33
22
|
],
|
|
34
23
|
"bin": {
|
|
35
24
|
"extension": "./dist/cli.js"
|
|
36
25
|
},
|
|
37
26
|
"name": "extension",
|
|
38
|
-
"version": "3.2.
|
|
27
|
+
"version": "3.2.1",
|
|
39
28
|
"description": "Create cross-browser extensions with no build configuration.",
|
|
40
29
|
"homepage": "https://extension.js.org/",
|
|
41
30
|
"bugs": {
|
|
@@ -89,8 +78,8 @@
|
|
|
89
78
|
"cli"
|
|
90
79
|
],
|
|
91
80
|
"dependencies": {
|
|
92
|
-
"extension-create": "^3.2.
|
|
93
|
-
"extension-develop": "^3.2.
|
|
81
|
+
"extension-create": "^3.2.1",
|
|
82
|
+
"extension-develop": "^3.2.1",
|
|
94
83
|
"commander": "^14.0.2",
|
|
95
84
|
"pintor": "0.3.0",
|
|
96
85
|
"semver": "^7.7.3",
|
package/dist/types/index.d.ts
DELETED
|
File without changes
|
package/types/css-content.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
type CSSContentData = Readonly<Record<string, string>>
|
|
10
|
-
|
|
11
|
-
declare module '*.css' {
|
|
12
|
-
const content: CSSContentData
|
|
13
|
-
|
|
14
|
-
export default content
|
|
15
|
-
}
|
package/types/css-modules.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
type CSSModuleData = Readonly<Record<string, string>>
|
|
10
|
-
|
|
11
|
-
declare module '*.module.css' {
|
|
12
|
-
const content: CSSModuleData
|
|
13
|
-
|
|
14
|
-
export default content
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare module '*.module.scss' {
|
|
18
|
-
const content: CSSModuleData
|
|
19
|
-
|
|
20
|
-
export default content
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare module '*.module.sass' {
|
|
24
|
-
const content: CSSModuleData
|
|
25
|
-
|
|
26
|
-
export default content
|
|
27
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
declare module 'extension-create' {
|
|
10
|
-
// These types mirror the public surface of programs/create/module.ts,
|
|
11
|
-
// but are intentionally loose on the CLI side. The real, precise types
|
|
12
|
-
// come from the installed `extension-create` package when consumers
|
|
13
|
-
// depend on it directly.
|
|
14
|
-
export interface CreateOptions {
|
|
15
|
-
template: string
|
|
16
|
-
install?: boolean
|
|
17
|
-
cliVersion?: string
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function extensionCreate(
|
|
21
|
-
projectNameInput: string | undefined,
|
|
22
|
-
options: CreateOptions
|
|
23
|
-
): Promise<void>
|
|
24
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
declare module 'extension-develop' {
|
|
10
|
-
// These types mirror the public surface of programs/develop/module.ts,
|
|
11
|
-
// but are intentionally loose on the CLI side. The real, precise types
|
|
12
|
-
// come from the installed `extension-develop` package when consumers
|
|
13
|
-
// depend on it directly.
|
|
14
|
-
|
|
15
|
-
export type ExtensionBrowser =
|
|
16
|
-
| 'chrome'
|
|
17
|
-
| 'edge'
|
|
18
|
-
| 'firefox'
|
|
19
|
-
| 'chromium'
|
|
20
|
-
| 'chromium-based'
|
|
21
|
-
| 'gecko-based'
|
|
22
|
-
| 'firefox-based'
|
|
23
|
-
|
|
24
|
-
export type ExtensionMode = 'development' | 'production'
|
|
25
|
-
|
|
26
|
-
export interface BuildOptions {
|
|
27
|
-
browser?: ExtensionBrowser | 'all'
|
|
28
|
-
polyfill?: boolean
|
|
29
|
-
zip?: boolean
|
|
30
|
-
zipSource?: boolean
|
|
31
|
-
zipFilename?: string
|
|
32
|
-
silent?: boolean
|
|
33
|
-
install?: boolean
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface DevOptions {
|
|
37
|
-
browser?: ExtensionBrowser | 'all'
|
|
38
|
-
profile?: string | boolean
|
|
39
|
-
persistProfile?: boolean
|
|
40
|
-
chromiumBinary?: string
|
|
41
|
-
geckoBinary?: string
|
|
42
|
-
polyfill?: boolean | string
|
|
43
|
-
open?: boolean
|
|
44
|
-
startingUrl?: string
|
|
45
|
-
source?: boolean | string
|
|
46
|
-
watchSource?: boolean
|
|
47
|
-
logLevel?: string
|
|
48
|
-
logFormat?: 'pretty' | 'json'
|
|
49
|
-
logTimestamps?: boolean
|
|
50
|
-
logColor?: boolean
|
|
51
|
-
logUrl?: string
|
|
52
|
-
logTab?: string | number
|
|
53
|
-
install?: boolean
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface PreviewOptions extends DevOptions {}
|
|
57
|
-
|
|
58
|
-
export interface StartOptions extends DevOptions {}
|
|
59
|
-
|
|
60
|
-
export interface FileConfig {
|
|
61
|
-
[key: string]: unknown
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface Manifest {
|
|
65
|
-
[key: string]: unknown
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function extensionBuild(
|
|
69
|
-
pathOrRemoteUrl: string,
|
|
70
|
-
options: BuildOptions
|
|
71
|
-
): Promise<any>
|
|
72
|
-
|
|
73
|
-
export function extensionDev(
|
|
74
|
-
pathOrRemoteUrl: string,
|
|
75
|
-
options: DevOptions
|
|
76
|
-
): Promise<any>
|
|
77
|
-
|
|
78
|
-
export function extensionStart(
|
|
79
|
-
pathOrRemoteUrl: string,
|
|
80
|
-
options: StartOptions
|
|
81
|
-
): Promise<any>
|
|
82
|
-
|
|
83
|
-
export function extensionPreview(
|
|
84
|
-
pathOrRemoteUrl: string,
|
|
85
|
-
options: PreviewOptions
|
|
86
|
-
): Promise<any>
|
|
87
|
-
|
|
88
|
-
export function ensureDependencies(
|
|
89
|
-
projectPath?: string,
|
|
90
|
-
opts?: {
|
|
91
|
-
skipProjectInstall?: boolean
|
|
92
|
-
exitOnInstall?: boolean
|
|
93
|
-
showRunAgainMessage?: boolean
|
|
94
|
-
}
|
|
95
|
-
): Promise<{
|
|
96
|
-
installed: boolean
|
|
97
|
-
installedBuild: boolean
|
|
98
|
-
installedUser: boolean
|
|
99
|
-
}>
|
|
100
|
-
|
|
101
|
-
export function preflightOptionalDependenciesForProject(
|
|
102
|
-
pathOrRemoteUrl: string,
|
|
103
|
-
mode?: ExtensionMode
|
|
104
|
-
): Promise<void>
|
|
105
|
-
}
|
package/types/images.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
declare module '*.png' {
|
|
10
|
-
const content: string
|
|
11
|
-
|
|
12
|
-
export default content
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare module '*.jpg' {
|
|
16
|
-
const content: string
|
|
17
|
-
|
|
18
|
-
export default content
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare module '*.jpeg' {
|
|
22
|
-
const content: string
|
|
23
|
-
|
|
24
|
-
export default content
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare module '*.gif' {
|
|
28
|
-
const content: string
|
|
29
|
-
|
|
30
|
-
export default content
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
declare module '*.webp' {
|
|
34
|
-
const content: string
|
|
35
|
-
|
|
36
|
-
export default content
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare module '*.avif' {
|
|
40
|
-
const content: string
|
|
41
|
-
|
|
42
|
-
export default content
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare module '*.ico' {
|
|
46
|
-
const content: string
|
|
47
|
-
|
|
48
|
-
export default content
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
declare module '*.bmp' {
|
|
52
|
-
const content: string
|
|
53
|
-
|
|
54
|
-
export default content
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
declare module '*.svg' {
|
|
58
|
-
/**
|
|
59
|
-
* Use `any` to avoid conflicts with
|
|
60
|
-
* `@svgr/webpack` plugin or
|
|
61
|
-
* `babel-plugin-inline-react-svg` plugin.
|
|
62
|
-
*/
|
|
63
|
-
const content: any
|
|
64
|
-
|
|
65
|
-
export default content
|
|
66
|
-
}
|
package/types/index.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
/// <reference types="node" />
|
|
10
|
-
/// <reference types="chrome" />
|
|
11
|
-
/// <reference types="./js-frameworks.d.ts" />
|
|
12
|
-
/// <reference path="./css-content.d.ts" />
|
|
13
|
-
/// <reference path="./css-modules.d.ts" />
|
|
14
|
-
/// <reference path="./images.d.ts" />
|
|
15
|
-
|
|
16
|
-
type ExtensionBrowser =
|
|
17
|
-
| 'chrome'
|
|
18
|
-
| 'edge'
|
|
19
|
-
| 'firefox'
|
|
20
|
-
| 'chromium-based'
|
|
21
|
-
| 'gecko-based'
|
|
22
|
-
|
|
23
|
-
type ExtensionMode = 'development' | 'production'
|
|
24
|
-
|
|
25
|
-
interface ExtensionEnv {
|
|
26
|
-
EXTENSION_BROWSER: ExtensionBrowser
|
|
27
|
-
EXTENSION_MODE: ExtensionMode
|
|
28
|
-
EXTENSION_PUBLIC_BROWSER: ExtensionBrowser
|
|
29
|
-
EXTENSION_PUBLIC_MODE: ExtensionMode
|
|
30
|
-
EXTENSION_PUBLIC_DESCRIPTION_TEXT: string
|
|
31
|
-
EXTENSION_PUBLIC_LLM_API_KEY: string
|
|
32
|
-
EXTENSION_AUTHOR_MODE: string
|
|
33
|
-
EXTENSION_PUBLIC_AUTHOR_MODE: string
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Global augmentations
|
|
37
|
-
declare global {
|
|
38
|
-
namespace NodeJS {
|
|
39
|
-
interface ProcessEnv extends ExtensionEnv {
|
|
40
|
-
[key: string]: string | undefined
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface ImportMetaEnv extends ExtensionEnv {
|
|
45
|
-
[key: string]: string | undefined
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface ImportMeta {
|
|
49
|
-
readonly env: ImportMetaEnv
|
|
50
|
-
readonly webpackHot?: {
|
|
51
|
-
accept: (module?: string | string[], callback?: () => void) => void
|
|
52
|
-
dispose: (callback: () => void) => void
|
|
53
|
-
}
|
|
54
|
-
url: string
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface Window {
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated
|
|
60
|
-
* @description
|
|
61
|
-
* This is how Extension.js used to inject the shadow root into the window object.
|
|
62
|
-
* Use the shadowRoot reference from the content script instead.
|
|
63
|
-
*/
|
|
64
|
-
__EXTENSION_SHADOW_ROOT__: ShadowRoot
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// This export is needed for TypeScript to treat this file as a module
|
|
69
|
-
export {}
|
package/types/index.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
/// <reference types="node" />
|
|
10
|
-
/// <reference types="react" />
|
|
11
|
-
/// <reference types="react-dom" />
|
|
12
|
-
/// <reference types="chrome" />
|
|
13
|
-
/// <reference path="./css-content.d.ts" />
|
|
14
|
-
/// <reference path="./css-modules.d.ts" />
|
|
15
|
-
/// <reference path="./images.d.ts" />
|
package/types/js-frameworks.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
/// <reference types="react" />
|
|
10
|
-
/// <reference types="react-dom" />
|
|
11
|
-
/// <reference types="svelte" />
|
package/types/polyfill.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// ██████╗██╗ ██╗
|
|
2
|
-
// ██╔════╝██║ ██║
|
|
3
|
-
// ██║ ██║ ██║
|
|
4
|
-
// ██║ ██║ ██║
|
|
5
|
-
// ╚██████╗███████╗██║
|
|
6
|
-
// ╚═════╝╚══════╝╚═╝
|
|
7
|
-
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
-
|
|
9
|
-
/// <reference types="webextension-polyfill" />
|
|
10
|
-
|
|
11
|
-
declare global {
|
|
12
|
-
const browser: typeof import('webextension-polyfill')
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export {}
|