@caido/sdk-frontend 0.51.2-beta.18 → 0.51.2-beta.19
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
package/src/types/index.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ export type { Workflow, WorkflowKind, OnCreatedWorkflowCallback, OnUpdatedWorkfl
|
|
|
16
16
|
export type { ListenerHandle } from "./types/utils";
|
|
17
17
|
export type { AIProvider } from "./types/ai";
|
|
18
18
|
export type { SelectedProjectChangeEvent } from "./types/projects";
|
|
19
|
+
export type { CommandPaletteView } from "./sdks/commandPalette";
|
|
19
20
|
export type { API } from "./sdks";
|
|
20
21
|
export { Routes } from "./types/navigation";
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { type CommandID } from "../types/commands";
|
|
2
|
+
import { type ComponentDefinition } from "../types/utils";
|
|
3
|
+
/**
|
|
4
|
+
* Command palette view definition for custom UI content.
|
|
5
|
+
* @category Command Palette
|
|
6
|
+
*/
|
|
7
|
+
export type CommandPaletteView = {
|
|
8
|
+
type: "Custom";
|
|
9
|
+
definition: ComponentDefinition;
|
|
10
|
+
};
|
|
2
11
|
/**
|
|
3
12
|
* Utilities to interact with the command palette.
|
|
4
13
|
* @category Command Palette
|
|
@@ -9,4 +18,9 @@ export type CommandPaletteSDK = {
|
|
|
9
18
|
* @param commandId The id of the command to register.
|
|
10
19
|
*/
|
|
11
20
|
register: (commandId: CommandID) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Push a new view onto the command palette view stack.
|
|
23
|
+
* @param view The view to push onto the stack.
|
|
24
|
+
*/
|
|
25
|
+
pushView: (view: CommandPaletteView) => void;
|
|
12
26
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type CommandID } from "./commands";
|
|
2
|
-
import { type ComponentDefinition } from "./utils";
|
|
3
|
-
type DefineSlotContent<TType extends string, P extends Record<string, unknown>> = {
|
|
2
|
+
import { type ComponentDefinition, type Prettify } from "./utils";
|
|
3
|
+
type DefineSlotContent<TType extends string, P extends Record<string, unknown>> = Prettify<{
|
|
4
4
|
type: TType;
|
|
5
|
-
} & P
|
|
5
|
+
} & P>;
|
|
6
6
|
export type ButtonSlotContent = DefineSlotContent<"Button", {
|
|
7
7
|
label: string;
|
|
8
8
|
icon?: string;
|