@caido/sdk-frontend 0.51.2-beta.10 → 0.51.2-beta.11
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,5 +1,6 @@
|
|
|
1
1
|
import { type Extension } from "@codemirror/state";
|
|
2
2
|
import { type OpenTabOptions, type ReplayCollection, type ReplaySession, type ReplaySlotContent, type ReplayTab, type RequestSource, type SendRequestOptions } from "../types/replay";
|
|
3
|
+
import type { RequestViewModeOptions } from "../types/request";
|
|
3
4
|
import { type DefineAddToSlotFn } from "../types/slots";
|
|
4
5
|
import type { ID } from "../types/utils";
|
|
5
6
|
/**
|
|
@@ -109,6 +110,11 @@ export type ReplaySDK = {
|
|
|
109
110
|
* @param extension The extension to add.
|
|
110
111
|
*/
|
|
111
112
|
addRequestEditorExtension: (extension: Extension) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Add a custom view mode for requests.
|
|
115
|
+
* @param options The view mode options.
|
|
116
|
+
*/
|
|
117
|
+
addRequestViewMode: (options: RequestViewModeOptions) => void;
|
|
112
118
|
/**
|
|
113
119
|
* Send a request to the Replay backend.
|
|
114
120
|
* @param request The request to send.
|