@caido/sdk-frontend 0.51.1-beta.1 → 0.51.1-beta.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "0.51.1-beta.1",
3
+ "version": "0.51.1-beta.3",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -1,3 +1,5 @@
1
+ import type { Extension } from "@codemirror/state";
2
+ import type { RequestViewModeOptions } from "../types/request";
1
3
  import type { HTTPQL, ID } from "../types/utils";
2
4
  /**
3
5
  * Utilities to interact with the Search page.
@@ -24,4 +26,14 @@ export type SearchSDK = {
24
26
  * @param id The ID of the scope to set.
25
27
  */
26
28
  setScope: (id: ID | undefined) => Promise<void>;
29
+ /**
30
+ * Add an extension to the request editor.
31
+ * @param extension The extension to add.
32
+ */
33
+ addRequestEditorExtension: (extension: Extension) => void;
34
+ /**
35
+ * Add a custom request view mode.
36
+ * @param options The view mode options.
37
+ */
38
+ addRequestViewMode: (options: RequestViewModeOptions) => void;
27
39
  };
@@ -1,3 +1,5 @@
1
+ import type { Extension } from "@codemirror/state";
2
+ import type { RequestViewModeOptions } from "../types/request";
1
3
  import type { ID } from "../types/utils";
2
4
  /**
3
5
  * Utilities to interact with the Sitemap page.
@@ -14,4 +16,14 @@ export type SitemapSDK = {
14
16
  * @param id The ID of the scope to set.
15
17
  */
16
18
  setScope: (id: ID | undefined) => void;
19
+ /**
20
+ * Add an extension to the request editor.
21
+ * @param extension The extension to add.
22
+ */
23
+ addRequestEditorExtension: (extension: Extension) => void;
24
+ /**
25
+ * Add a custom request view mode.
26
+ * @param options The view mode options.
27
+ */
28
+ addRequestViewMode: (options: RequestViewModeOptions) => void;
17
29
  };