@caido/sdk-frontend 0.51.2-beta.4 → 0.51.2-beta.6
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,4 +1,6 @@
|
|
|
1
|
+
import type { Extension } from "@codemirror/state";
|
|
1
2
|
import { type Finding } from "../types/findings";
|
|
3
|
+
import type { RequestViewModeOptions } from "../types/request";
|
|
2
4
|
import type { ID } from "../types/utils";
|
|
3
5
|
/**
|
|
4
6
|
* Utilities to interact with findings
|
|
@@ -21,4 +23,14 @@ export type FindingsSDK = {
|
|
|
21
23
|
reporter: string;
|
|
22
24
|
dedupeKey?: string;
|
|
23
25
|
}) => Promise<Finding | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Add an extension to the request editor.
|
|
28
|
+
* @param extension The extension to add.
|
|
29
|
+
*/
|
|
30
|
+
addRequestEditorExtension: (extension: Extension) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Add a custom request view mode.
|
|
33
|
+
* @param options The view mode options.
|
|
34
|
+
*/
|
|
35
|
+
addRequestViewMode: (options: RequestViewModeOptions) => void;
|
|
24
36
|
};
|
|
@@ -41,4 +41,9 @@ export type HTTPHistorySDK = {
|
|
|
41
41
|
* @param options The view mode options.
|
|
42
42
|
*/
|
|
43
43
|
addRequestViewMode: (options: RequestViewModeOptions) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Scrolls the HTTP History table to a specific entry.
|
|
46
|
+
* @param id The ID of the entry to scroll to.
|
|
47
|
+
*/
|
|
48
|
+
scrollTo: (id: ID) => void;
|
|
44
49
|
};
|
|
@@ -36,4 +36,9 @@ export type SearchSDK = {
|
|
|
36
36
|
* @param options The view mode options.
|
|
37
37
|
*/
|
|
38
38
|
addRequestViewMode: (options: RequestViewModeOptions) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Scrolls the Search table to a specific request.
|
|
41
|
+
* @param id The ID of the request to scroll to.
|
|
42
|
+
*/
|
|
43
|
+
scrollTo: (id: ID) => void;
|
|
39
44
|
};
|