@caido/sdk-frontend 0.40.1-beta.1 → 0.40.1-beta.2
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/navigation.d.ts +0 -9
- package/src/types/storage.d.ts +0 -6
- package/src/types/ui.d.ts +0 -23
- package/src/types/window.d.ts +0 -15
package/package.json
CHANGED
package/src/types/storage.d.ts
DELETED
package/src/types/ui.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type UI = {
|
|
2
|
-
button: (options?: ButtonOptions) => HTMLElement;
|
|
3
|
-
card: (options?: CardOptions) => HTMLElement;
|
|
4
|
-
well: (options?: WellOptions) => HTMLElement;
|
|
5
|
-
};
|
|
6
|
-
type ButtonOptions = {
|
|
7
|
-
variant?: "primary" | "secondary" | "tertiary";
|
|
8
|
-
label?: string;
|
|
9
|
-
leadingIcon?: string;
|
|
10
|
-
trailingIcon?: string;
|
|
11
|
-
size?: "small" | "medium" | "large";
|
|
12
|
-
};
|
|
13
|
-
type CardOptions = {
|
|
14
|
-
header?: HTMLElement;
|
|
15
|
-
body?: HTMLElement;
|
|
16
|
-
footer?: HTMLElement;
|
|
17
|
-
};
|
|
18
|
-
type WellOptions = {
|
|
19
|
-
header?: HTMLElement;
|
|
20
|
-
body?: HTMLElement;
|
|
21
|
-
footer?: HTMLElement;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
package/src/types/window.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type Window = {
|
|
2
|
-
getActiveEditor: () => Editor | undefined;
|
|
3
|
-
showToast: (message: string, options?: ToastOptions) => void;
|
|
4
|
-
};
|
|
5
|
-
type ToastOptions = {
|
|
6
|
-
variant?: "success" | "error" | "warning" | "info";
|
|
7
|
-
duration?: number;
|
|
8
|
-
};
|
|
9
|
-
type Editor = {
|
|
10
|
-
getSelectedText: () => string;
|
|
11
|
-
replaceSelectedText: (text: string) => void;
|
|
12
|
-
isReadOnly: () => boolean;
|
|
13
|
-
focus: () => void;
|
|
14
|
-
};
|
|
15
|
-
export {};
|