@caido/sdk-frontend 0.47.2-beta.1 → 0.47.2-beta.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "0.47.2-beta.1",
3
+ "version": "0.47.2-beta.2",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -11,7 +11,8 @@
11
11
  "src/*"
12
12
  ],
13
13
  "peerDependencies": {
14
- "@codemirror/view": "^6.0.0"
14
+ "@codemirror/view": "^6.0.0",
15
+ "@codemirror/state": "^6.0.0"
15
16
  },
16
17
  "peerDependenciesMeta": {},
17
18
  "scripts": {
@@ -1,3 +1,4 @@
1
+ import type { Extension } from "@codemirror/state";
1
2
  import type { HTTPQL, ID } from "./utils";
2
3
  /**
3
4
  * Utilities to interact with the HTTP History page.
@@ -24,4 +25,9 @@ export type HTTPHistorySDK = {
24
25
  * @param id The ID of the scope to set.
25
26
  */
26
27
  setScope: (id: ID | undefined) => Promise<void>;
28
+ /**
29
+ * Add an extension to the request editor.
30
+ * @param extension The extension to add.
31
+ */
32
+ addRequestEditorExtension: (extension: Extension) => void;
27
33
  };