react-grab 0.0.15 → 0.0.17

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/dist/index.d.ts CHANGED
@@ -7,9 +7,19 @@ interface StoreApi<T> {
7
7
  }
8
8
  type Listener<T> = (state: T, prevState: T | undefined) => (() => unknown) | void;
9
9
 
10
+ interface Adapter {
11
+ name: string;
12
+ open: (promptText: string) => void;
13
+ }
14
+ declare const cursorAdapter: Adapter;
15
+
10
16
  type Hotkey = KeyboardEvent["key"];
11
17
 
12
18
  interface Options {
19
+ /**
20
+ * adapter to open the prompt in an external tool
21
+ */
22
+ adapter?: Adapter;
13
23
  enabled?: boolean;
14
24
  /**
15
25
  * hotkey to trigger the overlay
@@ -34,4 +44,4 @@ interface LibStore {
34
44
  declare const libStore: StoreApi<LibStore>;
35
45
  declare const init: (options?: Options) => (() => void) | undefined;
36
46
 
37
- export { type Options, init, libStore };
47
+ export { type Adapter, type Options, cursorAdapter, init, libStore };