webext-schema 5.1.15 → 5.2.0
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/modules/update.js +1 -1
- package/package.json +15 -12
- package/schemas/beta/webext.json +81 -8
- package/schemas/central/webext.json +81 -8
- package/schemas/esr/webext.json +1178 -149
- package/schemas/mail/mailext.json +545 -139
- package/schemas/release/webext.json +43 -10
- package/types/modules/update.d.ts +1 -1
package/modules/update.js
CHANGED
package/package.json
CHANGED
|
@@ -13,30 +13,33 @@
|
|
|
13
13
|
"main": "index.js",
|
|
14
14
|
"types": "types/index.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@types/firefox-webext-browser": "^111.0.1",
|
|
17
|
-
"@types/node": "^20.1.1",
|
|
18
|
-
"@types/sinon": "^10.0.14",
|
|
19
16
|
"camelize": "^1.0.1",
|
|
20
|
-
"commander": "^
|
|
17
|
+
"commander": "^11.0.0",
|
|
21
18
|
"decamelize": "^6.0.0",
|
|
22
19
|
"json5": "^2.2.3",
|
|
23
|
-
"sinon": "^15.0
|
|
20
|
+
"sinon": "^15.2.0"
|
|
24
21
|
},
|
|
25
22
|
"devDependencies": {
|
|
26
|
-
"
|
|
23
|
+
"@types/firefox-webext-browser": "^111.0.1",
|
|
24
|
+
"@types/node": "^20.3.3",
|
|
25
|
+
"@types/sinon": "^10.0.15",
|
|
26
|
+
"c8": "^8.0.0",
|
|
27
27
|
"chai": "^4.3.7",
|
|
28
|
-
"eslint": "^8.
|
|
29
|
-
"eslint-config-standard": "^17.
|
|
28
|
+
"eslint": "^8.44.0",
|
|
29
|
+
"eslint-config-standard": "^17.1.0",
|
|
30
30
|
"eslint-plugin-import": "^2.27.5",
|
|
31
|
-
"eslint-plugin-jsdoc": "^
|
|
31
|
+
"eslint-plugin-jsdoc": "^46.4.3",
|
|
32
32
|
"eslint-plugin-node": "^11.1.0",
|
|
33
33
|
"eslint-plugin-promise": "^6.1.1",
|
|
34
34
|
"eslint-plugin-regexp": "^1.15.0",
|
|
35
35
|
"eslint-plugin-unicorn": "^47.0.0",
|
|
36
36
|
"mocha": "^10.2.0",
|
|
37
37
|
"npm-run-all": "^4.1.5",
|
|
38
|
-
"typescript": "^5.
|
|
39
|
-
"undici": "^5.22.
|
|
38
|
+
"typescript": "^5.1.6",
|
|
39
|
+
"undici": "^5.22.1"
|
|
40
|
+
},
|
|
41
|
+
"overrides": {
|
|
42
|
+
"semver": "^7.5.2"
|
|
40
43
|
},
|
|
41
44
|
"scripts": {
|
|
42
45
|
"build": "npm run tsc && npm run lint && npm run test",
|
|
@@ -56,5 +59,5 @@
|
|
|
56
59
|
"update-mail": "node index update --channel=mail -i",
|
|
57
60
|
"update-release": "node index update --channel=release -i"
|
|
58
61
|
},
|
|
59
|
-
"version": "5.
|
|
62
|
+
"version": "5.2.0"
|
|
60
63
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -916,6 +916,31 @@
|
|
|
916
916
|
"type": "string"
|
|
917
917
|
}
|
|
918
918
|
]
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "onChanged",
|
|
922
|
+
"description": "Fired when a registered command's shortcut is changed.",
|
|
923
|
+
"type": "function",
|
|
924
|
+
"parameters": [
|
|
925
|
+
{
|
|
926
|
+
"type": "object",
|
|
927
|
+
"name": "changeInfo",
|
|
928
|
+
"properties": {
|
|
929
|
+
"name": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"description": "The name of the shortcut."
|
|
932
|
+
},
|
|
933
|
+
"newShortcut": {
|
|
934
|
+
"type": "string",
|
|
935
|
+
"description": "The new shortcut active for this command, or blank if not active."
|
|
936
|
+
},
|
|
937
|
+
"oldShortcut": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"description": "The old shortcut which is no longer active for this command, or blank if the shortcut was previously inactive."
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
]
|
|
919
944
|
}
|
|
920
945
|
],
|
|
921
946
|
"functions": [
|
|
@@ -4438,6 +4463,11 @@
|
|
|
4438
4463
|
"optional": true,
|
|
4439
4464
|
"description": "Whether the tab has produced sound over the past couple of seconds (but it might not be heard if also muted). Equivalent to whether the speaker audio indicator is showing."
|
|
4440
4465
|
},
|
|
4466
|
+
"autoDiscardable": {
|
|
4467
|
+
"type": "boolean",
|
|
4468
|
+
"optional": true,
|
|
4469
|
+
"description": "Whether the tab can be discarded automatically by the browser when resources are low."
|
|
4470
|
+
},
|
|
4441
4471
|
"mutedInfo": {
|
|
4442
4472
|
"$ref": "MutedInfo",
|
|
4443
4473
|
"optional": true,
|
|
@@ -4739,6 +4769,7 @@
|
|
|
4739
4769
|
"enum": [
|
|
4740
4770
|
"attention",
|
|
4741
4771
|
"audible",
|
|
4772
|
+
"autoDiscardable",
|
|
4742
4773
|
"discarded",
|
|
4743
4774
|
"favIconUrl",
|
|
4744
4775
|
"hidden",
|
|
@@ -5070,6 +5101,11 @@
|
|
|
5070
5101
|
"optional": true,
|
|
5071
5102
|
"description": "Whether the tabs are audible."
|
|
5072
5103
|
},
|
|
5104
|
+
"autoDiscardable": {
|
|
5105
|
+
"type": "boolean",
|
|
5106
|
+
"optional": true,
|
|
5107
|
+
"description": "Whether the tab can be discarded automatically by the browser when resources are low."
|
|
5108
|
+
},
|
|
5073
5109
|
"muted": {
|
|
5074
5110
|
"type": "boolean",
|
|
5075
5111
|
"optional": true,
|
|
@@ -5287,6 +5323,11 @@
|
|
|
5287
5323
|
"optional": true,
|
|
5288
5324
|
"description": "Whether the tab should be active. Does not affect whether the window is focused (see $(ref:windows.update))."
|
|
5289
5325
|
},
|
|
5326
|
+
"autoDiscardable": {
|
|
5327
|
+
"type": "boolean",
|
|
5328
|
+
"optional": true,
|
|
5329
|
+
"description": "Whether the tab can be discarded automatically by the browser when resources are low."
|
|
5330
|
+
},
|
|
5290
5331
|
"highlighted": {
|
|
5291
5332
|
"type": "boolean",
|
|
5292
5333
|
"optional": true,
|
|
@@ -6033,6 +6074,11 @@
|
|
|
6033
6074
|
"optional": true,
|
|
6034
6075
|
"description": "The tab's new audible state."
|
|
6035
6076
|
},
|
|
6077
|
+
"autoDiscardable": {
|
|
6078
|
+
"type": "boolean",
|
|
6079
|
+
"optional": true,
|
|
6080
|
+
"description": "The tab's new autoDiscardable state."
|
|
6081
|
+
},
|
|
6036
6082
|
"discarded": {
|
|
6037
6083
|
"type": "boolean",
|
|
6038
6084
|
"optional": true,
|
|
@@ -7835,6 +7881,32 @@
|
|
|
7835
7881
|
}
|
|
7836
7882
|
]
|
|
7837
7883
|
},
|
|
7884
|
+
{
|
|
7885
|
+
"name": "getUserSettings",
|
|
7886
|
+
"type": "function",
|
|
7887
|
+
"description": "Returns the user-specified settings relating to an extension's action.",
|
|
7888
|
+
"async": "callback",
|
|
7889
|
+
"parameters": [
|
|
7890
|
+
{
|
|
7891
|
+
"type": "function",
|
|
7892
|
+
"name": "callback",
|
|
7893
|
+
"parameters": [
|
|
7894
|
+
{
|
|
7895
|
+
"name": "userSettings",
|
|
7896
|
+
"type": "object",
|
|
7897
|
+
"properties": {
|
|
7898
|
+
"isOnToolbar": {
|
|
7899
|
+
"type": "boolean",
|
|
7900
|
+
"optional": true,
|
|
7901
|
+
"description": "Whether the extension's action icon is visible on browser windows' top-level toolbar (i.e., whether the extension has been 'pinned' by the user)."
|
|
7902
|
+
}
|
|
7903
|
+
},
|
|
7904
|
+
"description": "The collection of user-specified settings relating to an extension's action."
|
|
7905
|
+
}
|
|
7906
|
+
]
|
|
7907
|
+
}
|
|
7908
|
+
]
|
|
7909
|
+
},
|
|
7838
7910
|
{
|
|
7839
7911
|
"name": "setIcon",
|
|
7840
7912
|
"type": "function",
|
|
@@ -16238,14 +16310,14 @@
|
|
|
16238
16310
|
{
|
|
16239
16311
|
"name": "setUninstallURL",
|
|
16240
16312
|
"type": "function",
|
|
16241
|
-
"description": "Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum
|
|
16313
|
+
"description": "Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 1023 characters.",
|
|
16242
16314
|
"async": "callback",
|
|
16243
16315
|
"parameters": [
|
|
16244
16316
|
{
|
|
16245
16317
|
"type": "string",
|
|
16246
16318
|
"name": "url",
|
|
16247
16319
|
"optional": true,
|
|
16248
|
-
"maxLength":
|
|
16320
|
+
"maxLength": 1023,
|
|
16249
16321
|
"description": "URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation."
|
|
16250
16322
|
},
|
|
16251
16323
|
{
|
|
@@ -17534,6 +17606,13 @@
|
|
|
17534
17606
|
"description": "The maximum size (in bytes) of the managed storage JSON manifest file. Files larger than this limit will fail to load."
|
|
17535
17607
|
}
|
|
17536
17608
|
}
|
|
17609
|
+
},
|
|
17610
|
+
"session": {
|
|
17611
|
+
"allowedContexts": [
|
|
17612
|
+
"devtools"
|
|
17613
|
+
],
|
|
17614
|
+
"$ref": "StorageArea",
|
|
17615
|
+
"description": "Items in the <code>session</code> storage area are kept in memory, and only until the either browser or extension is closed or reloaded."
|
|
17537
17616
|
}
|
|
17538
17617
|
}
|
|
17539
17618
|
}
|
|
@@ -19511,12 +19590,10 @@
|
|
|
19511
19590
|
"description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
|
|
19512
19591
|
},
|
|
19513
19592
|
"transitionType": {
|
|
19514
|
-
"unsupported": true,
|
|
19515
19593
|
"$ref": "TransitionType",
|
|
19516
19594
|
"description": "Cause of the navigation."
|
|
19517
19595
|
},
|
|
19518
19596
|
"transitionQualifiers": {
|
|
19519
|
-
"unsupported": true,
|
|
19520
19597
|
"type": "array",
|
|
19521
19598
|
"description": "A list of transition qualifiers.",
|
|
19522
19599
|
"items": {
|
|
@@ -19738,12 +19815,10 @@
|
|
|
19738
19815
|
"description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
|
|
19739
19816
|
},
|
|
19740
19817
|
"transitionType": {
|
|
19741
|
-
"unsupported": true,
|
|
19742
19818
|
"$ref": "TransitionType",
|
|
19743
19819
|
"description": "Cause of the navigation."
|
|
19744
19820
|
},
|
|
19745
19821
|
"transitionQualifiers": {
|
|
19746
|
-
"unsupported": true,
|
|
19747
19822
|
"type": "array",
|
|
19748
19823
|
"description": "A list of transition qualifiers.",
|
|
19749
19824
|
"items": {
|
|
@@ -19817,12 +19892,10 @@
|
|
|
19817
19892
|
"description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
|
|
19818
19893
|
},
|
|
19819
19894
|
"transitionType": {
|
|
19820
|
-
"unsupported": true,
|
|
19821
19895
|
"$ref": "TransitionType",
|
|
19822
19896
|
"description": "Cause of the navigation."
|
|
19823
19897
|
},
|
|
19824
19898
|
"transitionQualifiers": {
|
|
19825
|
-
"unsupported": true,
|
|
19826
19899
|
"type": "array",
|
|
19827
19900
|
"description": "A list of transition qualifiers.",
|
|
19828
19901
|
"items": {
|
|
@@ -916,6 +916,31 @@
|
|
|
916
916
|
"type": "string"
|
|
917
917
|
}
|
|
918
918
|
]
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "onChanged",
|
|
922
|
+
"description": "Fired when a registered command's shortcut is changed.",
|
|
923
|
+
"type": "function",
|
|
924
|
+
"parameters": [
|
|
925
|
+
{
|
|
926
|
+
"type": "object",
|
|
927
|
+
"name": "changeInfo",
|
|
928
|
+
"properties": {
|
|
929
|
+
"name": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"description": "The name of the shortcut."
|
|
932
|
+
},
|
|
933
|
+
"newShortcut": {
|
|
934
|
+
"type": "string",
|
|
935
|
+
"description": "The new shortcut active for this command, or blank if not active."
|
|
936
|
+
},
|
|
937
|
+
"oldShortcut": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"description": "The old shortcut which is no longer active for this command, or blank if the shortcut was previously inactive."
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
]
|
|
919
944
|
}
|
|
920
945
|
],
|
|
921
946
|
"functions": [
|
|
@@ -4438,6 +4463,11 @@
|
|
|
4438
4463
|
"optional": true,
|
|
4439
4464
|
"description": "Whether the tab has produced sound over the past couple of seconds (but it might not be heard if also muted). Equivalent to whether the speaker audio indicator is showing."
|
|
4440
4465
|
},
|
|
4466
|
+
"autoDiscardable": {
|
|
4467
|
+
"type": "boolean",
|
|
4468
|
+
"optional": true,
|
|
4469
|
+
"description": "Whether the tab can be discarded automatically by the browser when resources are low."
|
|
4470
|
+
},
|
|
4441
4471
|
"mutedInfo": {
|
|
4442
4472
|
"$ref": "MutedInfo",
|
|
4443
4473
|
"optional": true,
|
|
@@ -4739,6 +4769,7 @@
|
|
|
4739
4769
|
"enum": [
|
|
4740
4770
|
"attention",
|
|
4741
4771
|
"audible",
|
|
4772
|
+
"autoDiscardable",
|
|
4742
4773
|
"discarded",
|
|
4743
4774
|
"favIconUrl",
|
|
4744
4775
|
"hidden",
|
|
@@ -5070,6 +5101,11 @@
|
|
|
5070
5101
|
"optional": true,
|
|
5071
5102
|
"description": "Whether the tabs are audible."
|
|
5072
5103
|
},
|
|
5104
|
+
"autoDiscardable": {
|
|
5105
|
+
"type": "boolean",
|
|
5106
|
+
"optional": true,
|
|
5107
|
+
"description": "Whether the tab can be discarded automatically by the browser when resources are low."
|
|
5108
|
+
},
|
|
5073
5109
|
"muted": {
|
|
5074
5110
|
"type": "boolean",
|
|
5075
5111
|
"optional": true,
|
|
@@ -5287,6 +5323,11 @@
|
|
|
5287
5323
|
"optional": true,
|
|
5288
5324
|
"description": "Whether the tab should be active. Does not affect whether the window is focused (see $(ref:windows.update))."
|
|
5289
5325
|
},
|
|
5326
|
+
"autoDiscardable": {
|
|
5327
|
+
"type": "boolean",
|
|
5328
|
+
"optional": true,
|
|
5329
|
+
"description": "Whether the tab can be discarded automatically by the browser when resources are low."
|
|
5330
|
+
},
|
|
5290
5331
|
"highlighted": {
|
|
5291
5332
|
"type": "boolean",
|
|
5292
5333
|
"optional": true,
|
|
@@ -6033,6 +6074,11 @@
|
|
|
6033
6074
|
"optional": true,
|
|
6034
6075
|
"description": "The tab's new audible state."
|
|
6035
6076
|
},
|
|
6077
|
+
"autoDiscardable": {
|
|
6078
|
+
"type": "boolean",
|
|
6079
|
+
"optional": true,
|
|
6080
|
+
"description": "The tab's new autoDiscardable state."
|
|
6081
|
+
},
|
|
6036
6082
|
"discarded": {
|
|
6037
6083
|
"type": "boolean",
|
|
6038
6084
|
"optional": true,
|
|
@@ -7835,6 +7881,32 @@
|
|
|
7835
7881
|
}
|
|
7836
7882
|
]
|
|
7837
7883
|
},
|
|
7884
|
+
{
|
|
7885
|
+
"name": "getUserSettings",
|
|
7886
|
+
"type": "function",
|
|
7887
|
+
"description": "Returns the user-specified settings relating to an extension's action.",
|
|
7888
|
+
"async": "callback",
|
|
7889
|
+
"parameters": [
|
|
7890
|
+
{
|
|
7891
|
+
"type": "function",
|
|
7892
|
+
"name": "callback",
|
|
7893
|
+
"parameters": [
|
|
7894
|
+
{
|
|
7895
|
+
"name": "userSettings",
|
|
7896
|
+
"type": "object",
|
|
7897
|
+
"properties": {
|
|
7898
|
+
"isOnToolbar": {
|
|
7899
|
+
"type": "boolean",
|
|
7900
|
+
"optional": true,
|
|
7901
|
+
"description": "Whether the extension's action icon is visible on browser windows' top-level toolbar (i.e., whether the extension has been 'pinned' by the user)."
|
|
7902
|
+
}
|
|
7903
|
+
},
|
|
7904
|
+
"description": "The collection of user-specified settings relating to an extension's action."
|
|
7905
|
+
}
|
|
7906
|
+
]
|
|
7907
|
+
}
|
|
7908
|
+
]
|
|
7909
|
+
},
|
|
7838
7910
|
{
|
|
7839
7911
|
"name": "setIcon",
|
|
7840
7912
|
"type": "function",
|
|
@@ -16238,14 +16310,14 @@
|
|
|
16238
16310
|
{
|
|
16239
16311
|
"name": "setUninstallURL",
|
|
16240
16312
|
"type": "function",
|
|
16241
|
-
"description": "Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum
|
|
16313
|
+
"description": "Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 1023 characters.",
|
|
16242
16314
|
"async": "callback",
|
|
16243
16315
|
"parameters": [
|
|
16244
16316
|
{
|
|
16245
16317
|
"type": "string",
|
|
16246
16318
|
"name": "url",
|
|
16247
16319
|
"optional": true,
|
|
16248
|
-
"maxLength":
|
|
16320
|
+
"maxLength": 1023,
|
|
16249
16321
|
"description": "URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation."
|
|
16250
16322
|
},
|
|
16251
16323
|
{
|
|
@@ -17534,6 +17606,13 @@
|
|
|
17534
17606
|
"description": "The maximum size (in bytes) of the managed storage JSON manifest file. Files larger than this limit will fail to load."
|
|
17535
17607
|
}
|
|
17536
17608
|
}
|
|
17609
|
+
},
|
|
17610
|
+
"session": {
|
|
17611
|
+
"allowedContexts": [
|
|
17612
|
+
"devtools"
|
|
17613
|
+
],
|
|
17614
|
+
"$ref": "StorageArea",
|
|
17615
|
+
"description": "Items in the <code>session</code> storage area are kept in memory, and only until the either browser or extension is closed or reloaded."
|
|
17537
17616
|
}
|
|
17538
17617
|
}
|
|
17539
17618
|
}
|
|
@@ -19511,12 +19590,10 @@
|
|
|
19511
19590
|
"description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
|
|
19512
19591
|
},
|
|
19513
19592
|
"transitionType": {
|
|
19514
|
-
"unsupported": true,
|
|
19515
19593
|
"$ref": "TransitionType",
|
|
19516
19594
|
"description": "Cause of the navigation."
|
|
19517
19595
|
},
|
|
19518
19596
|
"transitionQualifiers": {
|
|
19519
|
-
"unsupported": true,
|
|
19520
19597
|
"type": "array",
|
|
19521
19598
|
"description": "A list of transition qualifiers.",
|
|
19522
19599
|
"items": {
|
|
@@ -19738,12 +19815,10 @@
|
|
|
19738
19815
|
"description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
|
|
19739
19816
|
},
|
|
19740
19817
|
"transitionType": {
|
|
19741
|
-
"unsupported": true,
|
|
19742
19818
|
"$ref": "TransitionType",
|
|
19743
19819
|
"description": "Cause of the navigation."
|
|
19744
19820
|
},
|
|
19745
19821
|
"transitionQualifiers": {
|
|
19746
|
-
"unsupported": true,
|
|
19747
19822
|
"type": "array",
|
|
19748
19823
|
"description": "A list of transition qualifiers.",
|
|
19749
19824
|
"items": {
|
|
@@ -19817,12 +19892,10 @@
|
|
|
19817
19892
|
"description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
|
|
19818
19893
|
},
|
|
19819
19894
|
"transitionType": {
|
|
19820
|
-
"unsupported": true,
|
|
19821
19895
|
"$ref": "TransitionType",
|
|
19822
19896
|
"description": "Cause of the navigation."
|
|
19823
19897
|
},
|
|
19824
19898
|
"transitionQualifiers": {
|
|
19825
|
-
"unsupported": true,
|
|
19826
19899
|
"type": "array",
|
|
19827
19900
|
"description": "A list of transition qualifiers.",
|
|
19828
19901
|
"items": {
|