@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "0.40.1-beta.1",
3
+ "version": "0.40.1-beta.2",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -1,9 +0,0 @@
1
- export type { CommandContext } from "./commands";
2
- export type Navigation = {
3
- goTo: (path: string) => void;
4
- addPage: (path: string, options: PageOptions) => void;
5
- };
6
- type PageOptions = {
7
- body: HTMLElement;
8
- topbar?: HTMLElement;
9
- };
@@ -1,6 +0,0 @@
1
- import type { JSONCompatible, JSONValue } from "./utils";
2
- export type Storage = {
3
- get: () => JSONValue;
4
- set: <T>(value: JSONCompatible<T>) => Promise<void>;
5
- onChange: (callback: (value: JSONValue) => void) => void;
6
- };
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 {};
@@ -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 {};