@caido/sdk-frontend 0.56.1-beta.5 → 0.56.1-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,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type API } from "../sdks";
|
|
2
2
|
/**
|
|
3
3
|
* The internal props for the command palette view.
|
|
4
4
|
* @category Command Palette
|
|
@@ -17,4 +17,6 @@ export type CommandPaletteViewPropsInternal = {
|
|
|
17
17
|
* The props for the command palette view.
|
|
18
18
|
* @category Command Palette
|
|
19
19
|
*/
|
|
20
|
-
export type CommandPaletteViewProps =
|
|
20
|
+
export type CommandPaletteViewProps = CommandPaletteViewPropsInternal & {
|
|
21
|
+
sdk: API;
|
|
22
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type EditorView } from "@codemirror/view";
|
|
2
|
-
import { type
|
|
2
|
+
import { type API } from "../sdks";
|
|
3
|
+
import { type As, type ComponentDefinition, type ID, type Prettify } from "./utils";
|
|
3
4
|
/**
|
|
4
5
|
* A draft request that has not yet been saved to the database.
|
|
5
6
|
* @category Request
|
|
@@ -60,12 +61,16 @@ export type RequestWritableViewModePropsInternal = {
|
|
|
60
61
|
* The props for the request writable view mode.
|
|
61
62
|
* @category Request
|
|
62
63
|
*/
|
|
63
|
-
export type RequestWritableViewModeProps =
|
|
64
|
+
export type RequestWritableViewModeProps = RequestWritableViewModePropsInternal & {
|
|
65
|
+
sdk: API;
|
|
66
|
+
};
|
|
64
67
|
/**
|
|
65
68
|
* The props for the request read-only view mode.
|
|
66
69
|
* @category Request
|
|
67
70
|
*/
|
|
68
|
-
export type RequestReadableViewModeProps =
|
|
71
|
+
export type RequestReadableViewModeProps = RequestReadableViewModePropsInternal & {
|
|
72
|
+
sdk: API;
|
|
73
|
+
};
|
|
69
74
|
/**
|
|
70
75
|
* The props group for the request view mode.
|
|
71
76
|
* @category Request
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type EditorView } from "@codemirror/view";
|
|
2
|
+
import { type API } from "../sdks";
|
|
2
3
|
import type { RequestFull, RequestMeta } from "./request";
|
|
3
|
-
import type { As, ComponentDefinition,
|
|
4
|
+
import type { As, ComponentDefinition, ID, Prettify } from "./utils";
|
|
4
5
|
/**
|
|
5
6
|
* A complete response with all metadata and raw content.
|
|
6
7
|
* @category Response
|
|
@@ -25,7 +26,9 @@ export type ResponseViewModePropsInternal = {
|
|
|
25
26
|
* The props for the response view mode.
|
|
26
27
|
* @category Response
|
|
27
28
|
*/
|
|
28
|
-
export type ResponseViewModeProps =
|
|
29
|
+
export type ResponseViewModeProps = ResponseViewModePropsInternal & {
|
|
30
|
+
sdk: API;
|
|
31
|
+
};
|
|
29
32
|
/**
|
|
30
33
|
* Options for defining a custom response view mode.
|
|
31
34
|
* @category Response
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type API } from "../sdks";
|
|
1
2
|
import { type CommandID } from "./commands";
|
|
2
|
-
import { type ComponentDefinition, type
|
|
3
|
+
import { type ComponentDefinition, type Prettify } from "./utils";
|
|
3
4
|
type DefineSlotContent<TType extends string, P extends Record<string, unknown>> = Prettify<{
|
|
4
5
|
type: TType;
|
|
5
6
|
} & P>;
|
|
@@ -12,7 +13,9 @@ export type SlotContentPropsInternal = {};
|
|
|
12
13
|
* The props for a slot content.
|
|
13
14
|
* @category Slots
|
|
14
15
|
*/
|
|
15
|
-
export type SlotContentProps =
|
|
16
|
+
export type SlotContentProps = SlotContentPropsInternal & {
|
|
17
|
+
sdk: API;
|
|
18
|
+
};
|
|
16
19
|
/**
|
|
17
20
|
* The props group for a slot content.
|
|
18
21
|
* @category Slots
|
|
@@ -56,7 +56,7 @@ export type ComponentPropsWithSdk<TProps extends ComponentProps> = TProps & {
|
|
|
56
56
|
*/
|
|
57
57
|
export type ComponentDefinition<TProps = ComponentProps> = {
|
|
58
58
|
component: VueComponent<TProps>;
|
|
59
|
-
props?:
|
|
59
|
+
props?: ComponentProps;
|
|
60
60
|
events?: Record<string, (...args: unknown[]) => void>;
|
|
61
61
|
};
|
|
62
62
|
/**
|