webext-schema 5.5.2 → 5.5.4
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/package.json +19 -14
- package/schemas/beta/webext.json +28 -23
- package/schemas/central/webext.json +28 -23
- package/schemas/esr/webext.json +1 -0
- package/schemas/mail/mailext.json +617 -288
- package/schemas/release/webext.json +25 -24
package/package.json
CHANGED
|
@@ -10,35 +10,40 @@
|
|
|
10
10
|
"url": "git+https://github.com/asamuzaK/webext-schema.git"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
|
-
"
|
|
13
|
+
"exports": {
|
|
14
|
+
"default": {
|
|
15
|
+
"types": "./types/index.d.ts",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
14
19
|
"types": "types/index.d.ts",
|
|
15
20
|
"dependencies": {
|
|
16
21
|
"camelize": "^1.0.1",
|
|
17
|
-
"commander": "^13.
|
|
22
|
+
"commander": "^13.1.0",
|
|
18
23
|
"decamelize": "^6.0.0",
|
|
19
24
|
"json5": "^2.2.3",
|
|
20
25
|
"sinon": "^19.0.2"
|
|
21
26
|
},
|
|
22
27
|
"devDependencies": {
|
|
23
28
|
"@types/firefox-webext-browser": "^120.0.4",
|
|
24
|
-
"@types/node": "^22.
|
|
25
|
-
"@types/sinon": "^17.0.
|
|
29
|
+
"@types/node": "^22.13.9",
|
|
30
|
+
"@types/sinon": "^17.0.4",
|
|
26
31
|
"c8": "^10.1.3",
|
|
27
|
-
"eslint": "^9.
|
|
32
|
+
"eslint": "^9.21.0",
|
|
28
33
|
"eslint-plugin-import-x": "^4.6.1",
|
|
29
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
34
|
+
"eslint-plugin-jsdoc": "^50.6.3",
|
|
30
35
|
"eslint-plugin-regexp": "^2.7.0",
|
|
31
|
-
"eslint-plugin-unicorn": "^
|
|
32
|
-
"globals": "^
|
|
33
|
-
"mocha": "^11.0
|
|
34
|
-
"neostandard": "^0.12.
|
|
36
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
|
37
|
+
"globals": "^16.0.0",
|
|
38
|
+
"mocha": "^11.1.0",
|
|
39
|
+
"neostandard": "^0.12.1",
|
|
35
40
|
"npm-run-all2": "^7.0.2",
|
|
36
|
-
"typescript": "^5.
|
|
37
|
-
"undici": "^7.
|
|
41
|
+
"typescript": "^5.8.2",
|
|
42
|
+
"undici": "^7.4.0"
|
|
38
43
|
},
|
|
39
44
|
"scripts": {
|
|
40
45
|
"build": "npm run tsc && npm run lint && npm run test",
|
|
41
|
-
"lint": "eslint --fix
|
|
46
|
+
"lint": "eslint . --fix",
|
|
42
47
|
"start": "node index",
|
|
43
48
|
"test": "npm run test-central",
|
|
44
49
|
"test-beta": "c8 mocha --require=test/mocha/setup.js --channel=beta --exit test/*.test.js",
|
|
@@ -54,5 +59,5 @@
|
|
|
54
59
|
"update-mail": "node index update --channel=mail -i",
|
|
55
60
|
"update-release": "node index update --channel=release -i"
|
|
56
61
|
},
|
|
57
|
-
"version": "5.5.
|
|
62
|
+
"version": "5.5.4"
|
|
58
63
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -968,6 +968,13 @@
|
|
|
968
968
|
"description": "Called to return the registered commands."
|
|
969
969
|
}
|
|
970
970
|
]
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"name": "openShortcutSettings",
|
|
974
|
+
"type": "function",
|
|
975
|
+
"async": true,
|
|
976
|
+
"description": "Open extension shortcuts configuration page.",
|
|
977
|
+
"parameters": []
|
|
971
978
|
}
|
|
972
979
|
]
|
|
973
980
|
}
|
|
@@ -13423,6 +13430,7 @@
|
|
|
13423
13430
|
},
|
|
13424
13431
|
"name": {
|
|
13425
13432
|
"type": "string",
|
|
13433
|
+
"description": "Name must be at least 2, and should be at most 75 characters",
|
|
13426
13434
|
"optional": false,
|
|
13427
13435
|
"preprocess": "localize"
|
|
13428
13436
|
},
|
|
@@ -13521,24 +13529,16 @@
|
|
|
13521
13529
|
{
|
|
13522
13530
|
"type": "object",
|
|
13523
13531
|
"properties": {
|
|
13524
|
-
"
|
|
13532
|
+
"service_worker": {
|
|
13533
|
+
"optional": true,
|
|
13525
13534
|
"$ref": "ExtensionURL"
|
|
13526
13535
|
},
|
|
13527
|
-
"
|
|
13536
|
+
"page": {
|
|
13528
13537
|
"optional": true,
|
|
13529
|
-
"
|
|
13530
|
-
|
|
13531
|
-
"default": true
|
|
13532
|
-
}
|
|
13533
|
-
},
|
|
13534
|
-
"additionalProperties": {
|
|
13535
|
-
"$ref": "UnrecognizedProperty"
|
|
13536
|
-
}
|
|
13537
|
-
},
|
|
13538
|
-
{
|
|
13539
|
-
"type": "object",
|
|
13540
|
-
"properties": {
|
|
13538
|
+
"$ref": "ExtensionURL"
|
|
13539
|
+
},
|
|
13541
13540
|
"scripts": {
|
|
13541
|
+
"optional": true,
|
|
13542
13542
|
"type": "array",
|
|
13543
13543
|
"items": {
|
|
13544
13544
|
"$ref": "ExtensionURL"
|
|
@@ -13547,6 +13547,7 @@
|
|
|
13547
13547
|
"type": {
|
|
13548
13548
|
"optional": true,
|
|
13549
13549
|
"type": "string",
|
|
13550
|
+
"description": "Only supported for page/scripts; not for service_worker yet, see bug 1775574",
|
|
13550
13551
|
"enum": [
|
|
13551
13552
|
"module",
|
|
13552
13553
|
"classic"
|
|
@@ -13557,20 +13558,24 @@
|
|
|
13557
13558
|
"type": "boolean",
|
|
13558
13559
|
"max_manifest_version": 2,
|
|
13559
13560
|
"default": true
|
|
13561
|
+
},
|
|
13562
|
+
"preferred_environment": {
|
|
13563
|
+
"optional": true,
|
|
13564
|
+
"type": "array",
|
|
13565
|
+
"items": {
|
|
13566
|
+
"type": "string",
|
|
13567
|
+
"enum": [
|
|
13568
|
+
"service_worker",
|
|
13569
|
+
"document"
|
|
13570
|
+
],
|
|
13571
|
+
"onError": "warn"
|
|
13572
|
+
}
|
|
13560
13573
|
}
|
|
13561
13574
|
},
|
|
13562
13575
|
"additionalProperties": {
|
|
13563
13576
|
"$ref": "UnrecognizedProperty"
|
|
13564
|
-
}
|
|
13565
|
-
},
|
|
13566
|
-
{
|
|
13567
|
-
"type": "object",
|
|
13568
|
-
"properties": {
|
|
13569
|
-
"service_worker": {
|
|
13570
|
-
"$ref": "ExtensionURL"
|
|
13571
|
-
}
|
|
13572
13577
|
},
|
|
13573
|
-
"postprocess": "
|
|
13578
|
+
"postprocess": "checkRequiredManifestBackgroundKeys"
|
|
13574
13579
|
}
|
|
13575
13580
|
],
|
|
13576
13581
|
"optional": true
|
|
@@ -968,6 +968,13 @@
|
|
|
968
968
|
"description": "Called to return the registered commands."
|
|
969
969
|
}
|
|
970
970
|
]
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"name": "openShortcutSettings",
|
|
974
|
+
"type": "function",
|
|
975
|
+
"async": true,
|
|
976
|
+
"description": "Open extension shortcuts configuration page.",
|
|
977
|
+
"parameters": []
|
|
971
978
|
}
|
|
972
979
|
]
|
|
973
980
|
}
|
|
@@ -13423,6 +13430,7 @@
|
|
|
13423
13430
|
},
|
|
13424
13431
|
"name": {
|
|
13425
13432
|
"type": "string",
|
|
13433
|
+
"description": "Name must be at least 2, and should be at most 75 characters",
|
|
13426
13434
|
"optional": false,
|
|
13427
13435
|
"preprocess": "localize"
|
|
13428
13436
|
},
|
|
@@ -13521,24 +13529,16 @@
|
|
|
13521
13529
|
{
|
|
13522
13530
|
"type": "object",
|
|
13523
13531
|
"properties": {
|
|
13524
|
-
"
|
|
13532
|
+
"service_worker": {
|
|
13533
|
+
"optional": true,
|
|
13525
13534
|
"$ref": "ExtensionURL"
|
|
13526
13535
|
},
|
|
13527
|
-
"
|
|
13536
|
+
"page": {
|
|
13528
13537
|
"optional": true,
|
|
13529
|
-
"
|
|
13530
|
-
|
|
13531
|
-
"default": true
|
|
13532
|
-
}
|
|
13533
|
-
},
|
|
13534
|
-
"additionalProperties": {
|
|
13535
|
-
"$ref": "UnrecognizedProperty"
|
|
13536
|
-
}
|
|
13537
|
-
},
|
|
13538
|
-
{
|
|
13539
|
-
"type": "object",
|
|
13540
|
-
"properties": {
|
|
13538
|
+
"$ref": "ExtensionURL"
|
|
13539
|
+
},
|
|
13541
13540
|
"scripts": {
|
|
13541
|
+
"optional": true,
|
|
13542
13542
|
"type": "array",
|
|
13543
13543
|
"items": {
|
|
13544
13544
|
"$ref": "ExtensionURL"
|
|
@@ -13547,6 +13547,7 @@
|
|
|
13547
13547
|
"type": {
|
|
13548
13548
|
"optional": true,
|
|
13549
13549
|
"type": "string",
|
|
13550
|
+
"description": "Only supported for page/scripts; not for service_worker yet, see bug 1775574",
|
|
13550
13551
|
"enum": [
|
|
13551
13552
|
"module",
|
|
13552
13553
|
"classic"
|
|
@@ -13557,20 +13558,24 @@
|
|
|
13557
13558
|
"type": "boolean",
|
|
13558
13559
|
"max_manifest_version": 2,
|
|
13559
13560
|
"default": true
|
|
13561
|
+
},
|
|
13562
|
+
"preferred_environment": {
|
|
13563
|
+
"optional": true,
|
|
13564
|
+
"type": "array",
|
|
13565
|
+
"items": {
|
|
13566
|
+
"type": "string",
|
|
13567
|
+
"enum": [
|
|
13568
|
+
"service_worker",
|
|
13569
|
+
"document"
|
|
13570
|
+
],
|
|
13571
|
+
"onError": "warn"
|
|
13572
|
+
}
|
|
13560
13573
|
}
|
|
13561
13574
|
},
|
|
13562
13575
|
"additionalProperties": {
|
|
13563
13576
|
"$ref": "UnrecognizedProperty"
|
|
13564
|
-
}
|
|
13565
|
-
},
|
|
13566
|
-
{
|
|
13567
|
-
"type": "object",
|
|
13568
|
-
"properties": {
|
|
13569
|
-
"service_worker": {
|
|
13570
|
-
"$ref": "ExtensionURL"
|
|
13571
|
-
}
|
|
13572
13577
|
},
|
|
13573
|
-
"postprocess": "
|
|
13578
|
+
"postprocess": "checkRequiredManifestBackgroundKeys"
|
|
13574
13579
|
}
|
|
13575
13580
|
],
|
|
13576
13581
|
"optional": true
|
package/schemas/esr/webext.json
CHANGED
|
@@ -13461,6 +13461,7 @@
|
|
|
13461
13461
|
},
|
|
13462
13462
|
"name": {
|
|
13463
13463
|
"type": "string",
|
|
13464
|
+
"description": "Name must be at least 2, at should be at most 75 characters",
|
|
13464
13465
|
"optional": false,
|
|
13465
13466
|
"preprocess": "localize"
|
|
13466
13467
|
},
|