@caido/sdk-frontend 0.41.1-beta.4 → 0.42.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/package.json +1 -1
- package/src/types/editor.d.ts +23 -0
- package/src/types/menu.d.ts +1 -0
package/package.json
CHANGED
package/src/types/editor.d.ts
CHANGED
|
@@ -21,12 +21,35 @@ export type Editor = {
|
|
|
21
21
|
* Focus the editor.
|
|
22
22
|
*/
|
|
23
23
|
focus: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Get the editor view.
|
|
26
|
+
* @returns The CodeMirror {@link https://codemirror.net/docs/ref/#view.EditorView EditorView}.
|
|
27
|
+
*/
|
|
28
|
+
getEditorView: () => EditorView;
|
|
24
29
|
};
|
|
25
30
|
export type HTTPRequestEditor = {
|
|
31
|
+
/**
|
|
32
|
+
* Get the editor element.
|
|
33
|
+
* Append this to your DOM to display the editor.
|
|
34
|
+
* @returns The editor element.
|
|
35
|
+
*/
|
|
26
36
|
getElement: () => HTMLElement;
|
|
37
|
+
/**
|
|
38
|
+
* Get the editor view.
|
|
39
|
+
* @returns The CodeMirror {@link https://codemirror.net/docs/ref/#view.EditorView EditorView}.
|
|
40
|
+
*/
|
|
27
41
|
getEditorView: () => EditorView;
|
|
28
42
|
};
|
|
29
43
|
export type HTTPResponseEditor = {
|
|
44
|
+
/**
|
|
45
|
+
* Get the editor element.
|
|
46
|
+
* Append this to your DOM to display the editor.
|
|
47
|
+
* @returns The editor element.
|
|
48
|
+
*/
|
|
30
49
|
getElement: () => HTMLElement;
|
|
50
|
+
/**
|
|
51
|
+
* Get the editor view.
|
|
52
|
+
* @returns The CodeMirror {@link https://codemirror.net/docs/ref/#view.EditorView EditorView}.
|
|
53
|
+
*/
|
|
31
54
|
getEditorView: () => EditorView;
|
|
32
55
|
};
|