webext-schema 2.0.8 → 2.0.9

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 CHANGED
@@ -36,11 +36,11 @@
36
36
  "eslint": "^7.32.0",
37
37
  "eslint-config-standard": "^16.0.3",
38
38
  "eslint-plugin-import": "^2.25.4",
39
- "eslint-plugin-jsdoc": "^37.7.0",
39
+ "eslint-plugin-jsdoc": "^37.8.2",
40
40
  "eslint-plugin-node": "^11.1.0",
41
41
  "eslint-plugin-promise": "^5.2.0",
42
42
  "mocha": "^9.2.0",
43
- "nock": "^13.2.2"
43
+ "nock": "^13.2.4"
44
44
  },
45
- "version": "2.0.8"
45
+ "version": "2.0.9"
46
46
  }
@@ -11776,6 +11776,7 @@
11776
11776
  "samplingallthreads",
11777
11777
  "markersallthreads",
11778
11778
  "unregisteredthreads",
11779
+ "processcpu",
11779
11780
  "responsiveness"
11780
11781
  ]
11781
11782
  },
@@ -12895,7 +12896,9 @@
12895
12896
  },
12896
12897
  "persistent": {
12897
12898
  "optional": true,
12898
- "$ref": "PersistentBackgroundProperty"
12899
+ "type": "boolean",
12900
+ "max_manifest_version": 2,
12901
+ "default": true
12899
12902
  }
12900
12903
  },
12901
12904
  "additionalProperties": {
@@ -12913,7 +12916,9 @@
12913
12916
  },
12914
12917
  "persistent": {
12915
12918
  "optional": true,
12916
- "$ref": "PersistentBackgroundProperty"
12919
+ "type": "boolean",
12920
+ "max_manifest_version": 2,
12921
+ "default": true
12917
12922
  }
12918
12923
  },
12919
12924
  "additionalProperties": {
@@ -13536,24 +13541,6 @@
13536
13541
  "id": "UnrecognizedProperty",
13537
13542
  "type": "any",
13538
13543
  "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
- ]
13557
13544
  }
13558
13545
  ]
13559
13546
  }
@@ -15941,7 +15928,7 @@
15941
15928
  "files": {
15942
15929
  "type": "array",
15943
15930
  "optional": true,
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.",
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.",
15945
15932
  "minItems": 1,
15946
15933
  "items": {
15947
15934
  "type": "string"
@@ -15964,13 +15951,24 @@
15964
15951
  "description": "Result of a script injection.",
15965
15952
  "properties": {
15966
15953
  "frameId": {
15967
- "type": "number",
15954
+ "type": "integer",
15968
15955
  "description": "The frame ID associated with the injection."
15969
15956
  },
15970
15957
  "result": {
15971
15958
  "type": "any",
15972
15959
  "optional": true,
15973
15960
  "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
+ }
15974
15972
  }
15975
15973
  }
15976
15974
  },
@@ -15986,11 +15984,50 @@
15986
15984
  "type": "number"
15987
15985
  }
15988
15986
  },
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
+ },
15989
15992
  "tabId": {
15990
15993
  "type": "number",
15991
15994
  "description": "The ID of the tab into which to inject."
15992
15995
  }
15993
15996
  }
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
+ }
15994
16031
  }
15995
16032
  ],
15996
16033
  "functions": [
@@ -16020,6 +16057,44 @@
16020
16057
  ]
16021
16058
  }
16022
16059
  ]
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
+ ]
16023
16098
  }
16024
16099
  ]
16025
16100
  }
@@ -18009,6 +18084,22 @@
18009
18084
  "default": "document_idle",
18010
18085
  "optional": true,
18011
18086
  "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"
18012
18103
  }
18013
18104
  }
18014
18105
  },
@@ -8283,7 +8283,7 @@
8283
8283
  "command": {
8284
8284
  "type": "string",
8285
8285
  "optional": true,
8286
- "description": "Specifies a command to issue for the context click. Currently supports internal command _execute_browser_action."
8286
+ "description": "Specifies a command to issue for the context click. Currently supports internal commands ``_execute_browser_action``, ``_execute_compose_action`` and ``_execute_message_display_action``."
8287
8287
  }
8288
8288
  }
8289
8289
  },