webext-schema 2.1.2 → 2.1.3
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 +3 -3
- package/schemas/central/webext.json +12 -3
- package/schemas/mail/mailext.json +0 -3
- package/schemas/release/webext.json +22 -113
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"commander": "^9.0.0",
|
|
33
33
|
"decamelize": "^6.0.0",
|
|
34
34
|
"json5": "^2.2.0",
|
|
35
|
-
"node-fetch": "^3.2.
|
|
35
|
+
"node-fetch": "^3.2.3",
|
|
36
36
|
"sinon": "^13.0.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"eslint-plugin-jsdoc": "^37.9.7",
|
|
45
45
|
"eslint-plugin-node": "^11.1.0",
|
|
46
46
|
"eslint-plugin-promise": "^5.2.0",
|
|
47
|
-
"mocha": "^9.2.
|
|
47
|
+
"mocha": "^9.2.2",
|
|
48
48
|
"nock": "^13.2.4",
|
|
49
49
|
"npm-run-all": "^4.1.5"
|
|
50
50
|
},
|
|
51
|
-
"version": "2.1.
|
|
51
|
+
"version": "2.1.3"
|
|
52
52
|
}
|
|
@@ -13018,6 +13018,11 @@
|
|
|
13018
13018
|
}
|
|
13019
13019
|
]
|
|
13020
13020
|
},
|
|
13021
|
+
"granted_host_permissions": {
|
|
13022
|
+
"type": "boolean",
|
|
13023
|
+
"optional": true,
|
|
13024
|
+
"default": false
|
|
13025
|
+
},
|
|
13021
13026
|
"host_permissions": {
|
|
13022
13027
|
"min_manifest_version": 3,
|
|
13023
13028
|
"type": "array",
|
|
@@ -14493,9 +14498,6 @@
|
|
|
14493
14498
|
"permissions.json": [
|
|
14494
14499
|
{
|
|
14495
14500
|
"namespace": "permissions",
|
|
14496
|
-
"permissions": [
|
|
14497
|
-
"manifest:optional_permissions"
|
|
14498
|
-
],
|
|
14499
14501
|
"types": [
|
|
14500
14502
|
{
|
|
14501
14503
|
"id": "Permissions",
|
|
@@ -16086,6 +16088,13 @@
|
|
|
16086
16088
|
"optional": true,
|
|
16087
16089
|
"default": "document_idle",
|
|
16088
16090
|
"description": "Specifies when JavaScript files are injected into the web page. The preferred and default value is <code>document_idle</code>."
|
|
16091
|
+
},
|
|
16092
|
+
"persistAcrossSessions": {
|
|
16093
|
+
"type": "boolean",
|
|
16094
|
+
"enum": [
|
|
16095
|
+
false
|
|
16096
|
+
],
|
|
16097
|
+
"description": "Specifies if this content script will persist into future sessions. This is currently NOT supported."
|
|
16089
16098
|
}
|
|
16090
16099
|
}
|
|
16091
16100
|
}
|
|
@@ -11776,7 +11776,6 @@
|
|
|
11776
11776
|
"samplingallthreads",
|
|
11777
11777
|
"markersallthreads",
|
|
11778
11778
|
"unregisteredthreads",
|
|
11779
|
-
"processcpu",
|
|
11780
11779
|
"responsiveness"
|
|
11781
11780
|
]
|
|
11782
11781
|
},
|
|
@@ -12896,9 +12895,7 @@
|
|
|
12896
12895
|
},
|
|
12897
12896
|
"persistent": {
|
|
12898
12897
|
"optional": true,
|
|
12899
|
-
"
|
|
12900
|
-
"max_manifest_version": 2,
|
|
12901
|
-
"default": true
|
|
12898
|
+
"$ref": "PersistentBackgroundProperty"
|
|
12902
12899
|
}
|
|
12903
12900
|
},
|
|
12904
12901
|
"additionalProperties": {
|
|
@@ -12916,9 +12913,7 @@
|
|
|
12916
12913
|
},
|
|
12917
12914
|
"persistent": {
|
|
12918
12915
|
"optional": true,
|
|
12919
|
-
"
|
|
12920
|
-
"max_manifest_version": 2,
|
|
12921
|
-
"default": true
|
|
12916
|
+
"$ref": "PersistentBackgroundProperty"
|
|
12922
12917
|
}
|
|
12923
12918
|
},
|
|
12924
12919
|
"additionalProperties": {
|
|
@@ -13541,6 +13536,24 @@
|
|
|
13541
13536
|
"id": "UnrecognizedProperty",
|
|
13542
13537
|
"type": "any",
|
|
13543
13538
|
"deprecated": "An unexpected property was found in the WebExtension manifest."
|
|
13539
|
+
},
|
|
13540
|
+
{
|
|
13541
|
+
"id": "PersistentBackgroundProperty",
|
|
13542
|
+
"choices": [
|
|
13543
|
+
{
|
|
13544
|
+
"type": "boolean",
|
|
13545
|
+
"enum": [
|
|
13546
|
+
true
|
|
13547
|
+
]
|
|
13548
|
+
},
|
|
13549
|
+
{
|
|
13550
|
+
"type": "boolean",
|
|
13551
|
+
"enum": [
|
|
13552
|
+
false
|
|
13553
|
+
],
|
|
13554
|
+
"deprecated": "Event pages are not currently supported. This will run as a persistent background page."
|
|
13555
|
+
}
|
|
13556
|
+
]
|
|
13544
13557
|
}
|
|
13545
13558
|
]
|
|
13546
13559
|
}
|
|
@@ -15928,7 +15941,7 @@
|
|
|
15928
15941
|
"files": {
|
|
15929
15942
|
"type": "array",
|
|
15930
15943
|
"optional": true,
|
|
15931
|
-
"description": "The path of the JS files to inject, relative to the extension's root directory. Exactly one of <code>files</code> and <code>func</code> must be specified.",
|
|
15944
|
+
"description": "The path of the JS or CSS files to inject, relative to the extension's root directory. Exactly one of <code>files</code> and <code>func</code> must be specified.",
|
|
15932
15945
|
"minItems": 1,
|
|
15933
15946
|
"items": {
|
|
15934
15947
|
"type": "string"
|
|
@@ -15951,24 +15964,13 @@
|
|
|
15951
15964
|
"description": "Result of a script injection.",
|
|
15952
15965
|
"properties": {
|
|
15953
15966
|
"frameId": {
|
|
15954
|
-
"type": "
|
|
15967
|
+
"type": "number",
|
|
15955
15968
|
"description": "The frame ID associated with the injection."
|
|
15956
15969
|
},
|
|
15957
15970
|
"result": {
|
|
15958
15971
|
"type": "any",
|
|
15959
15972
|
"optional": true,
|
|
15960
15973
|
"description": "The result of the script execution."
|
|
15961
|
-
},
|
|
15962
|
-
"error": {
|
|
15963
|
-
"type": "object",
|
|
15964
|
-
"optional": true,
|
|
15965
|
-
"description": "When the injection has failed, the error is exposed to the caller with this property.",
|
|
15966
|
-
"properties": {
|
|
15967
|
-
"message": {
|
|
15968
|
-
"type": "string",
|
|
15969
|
-
"description": "A message explaining why the injection has failed."
|
|
15970
|
-
}
|
|
15971
|
-
}
|
|
15972
15974
|
}
|
|
15973
15975
|
}
|
|
15974
15976
|
},
|
|
@@ -15984,50 +15986,11 @@
|
|
|
15984
15986
|
"type": "number"
|
|
15985
15987
|
}
|
|
15986
15988
|
},
|
|
15987
|
-
"allFrames": {
|
|
15988
|
-
"type": "boolean",
|
|
15989
|
-
"optional": true,
|
|
15990
|
-
"description": "Whether the script should inject into all frames within the tab. Defaults to false. This must not be true if <code>frameIds</code> is specified."
|
|
15991
|
-
},
|
|
15992
15989
|
"tabId": {
|
|
15993
15990
|
"type": "number",
|
|
15994
15991
|
"description": "The ID of the tab into which to inject."
|
|
15995
15992
|
}
|
|
15996
15993
|
}
|
|
15997
|
-
},
|
|
15998
|
-
{
|
|
15999
|
-
"id": "CSSInjection",
|
|
16000
|
-
"type": "object",
|
|
16001
|
-
"properties": {
|
|
16002
|
-
"css": {
|
|
16003
|
-
"type": "string",
|
|
16004
|
-
"optional": true,
|
|
16005
|
-
"description": "A string containing the CSS to inject. Exactly one of <code>files</code> and <code>css</code> must be specified."
|
|
16006
|
-
},
|
|
16007
|
-
"files": {
|
|
16008
|
-
"type": "array",
|
|
16009
|
-
"optional": true,
|
|
16010
|
-
"description": "The path of the CSS files to inject, relative to the extension's root directory. Exactly one of <code>files</code> and <code>css</code> must be specified.",
|
|
16011
|
-
"minItems": 1,
|
|
16012
|
-
"items": {
|
|
16013
|
-
"type": "string"
|
|
16014
|
-
}
|
|
16015
|
-
},
|
|
16016
|
-
"origin": {
|
|
16017
|
-
"type": "string",
|
|
16018
|
-
"optional": true,
|
|
16019
|
-
"enum": [
|
|
16020
|
-
"USER",
|
|
16021
|
-
"AUTHOR"
|
|
16022
|
-
],
|
|
16023
|
-
"default": "AUTHOR",
|
|
16024
|
-
"description": "The style origin for the injection. Defaults to <code>'AUTHOR'</code>."
|
|
16025
|
-
},
|
|
16026
|
-
"target": {
|
|
16027
|
-
"$ref": "InjectionTarget",
|
|
16028
|
-
"description": "Details specifying the target into which to inject the CSS."
|
|
16029
|
-
}
|
|
16030
|
-
}
|
|
16031
15994
|
}
|
|
16032
15995
|
],
|
|
16033
15996
|
"functions": [
|
|
@@ -16057,44 +16020,6 @@
|
|
|
16057
16020
|
]
|
|
16058
16021
|
}
|
|
16059
16022
|
]
|
|
16060
|
-
},
|
|
16061
|
-
{
|
|
16062
|
-
"name": "insertCSS",
|
|
16063
|
-
"type": "function",
|
|
16064
|
-
"description": "Inserts a CSS stylesheet into a target context. If multiple frames are specified, unsuccessful injections are ignored.",
|
|
16065
|
-
"async": "callback",
|
|
16066
|
-
"parameters": [
|
|
16067
|
-
{
|
|
16068
|
-
"name": "injection",
|
|
16069
|
-
"$ref": "CSSInjection",
|
|
16070
|
-
"description": "The details of the styles to insert."
|
|
16071
|
-
},
|
|
16072
|
-
{
|
|
16073
|
-
"name": "callback",
|
|
16074
|
-
"type": "function",
|
|
16075
|
-
"description": "Invoked upon completion of the injection.",
|
|
16076
|
-
"parameters": []
|
|
16077
|
-
}
|
|
16078
|
-
]
|
|
16079
|
-
},
|
|
16080
|
-
{
|
|
16081
|
-
"name": "removeCSS",
|
|
16082
|
-
"type": "function",
|
|
16083
|
-
"description": "Removes a CSS stylesheet that was previously inserted by this extension from a target context.",
|
|
16084
|
-
"async": "callback",
|
|
16085
|
-
"parameters": [
|
|
16086
|
-
{
|
|
16087
|
-
"name": "injection",
|
|
16088
|
-
"$ref": "CSSInjection",
|
|
16089
|
-
"description": "The details of the styles to remove. Note that the <code>css</code>, <code>files</code>, and <code>origin</code> properties must exactly match the stylesheet inserted through <code>insertCSS</code>. Attempting to remove a non-existent stylesheet is a no-op."
|
|
16090
|
-
},
|
|
16091
|
-
{
|
|
16092
|
-
"name": "callback",
|
|
16093
|
-
"type": "function",
|
|
16094
|
-
"description": "Invoked upon completion of the injection.",
|
|
16095
|
-
"parameters": []
|
|
16096
|
-
}
|
|
16097
|
-
]
|
|
16098
16023
|
}
|
|
16099
16024
|
]
|
|
16100
16025
|
}
|
|
@@ -18084,22 +18009,6 @@
|
|
|
18084
18009
|
"default": "document_idle",
|
|
18085
18010
|
"optional": true,
|
|
18086
18011
|
"description": "The soonest that the JavaScript will be injected into the tab. Defaults to \"document_idle\"."
|
|
18087
|
-
},
|
|
18088
|
-
"cookieStoreId": {
|
|
18089
|
-
"choices": [
|
|
18090
|
-
{
|
|
18091
|
-
"type": "array",
|
|
18092
|
-
"minItems": 1,
|
|
18093
|
-
"items": {
|
|
18094
|
-
"type": "string"
|
|
18095
|
-
}
|
|
18096
|
-
},
|
|
18097
|
-
{
|
|
18098
|
-
"type": "string"
|
|
18099
|
-
}
|
|
18100
|
-
],
|
|
18101
|
-
"optional": true,
|
|
18102
|
-
"description": "limit the set of matched tabs to those that belong to the given cookie store id"
|
|
18103
18012
|
}
|
|
18104
18013
|
}
|
|
18105
18014
|
},
|