@foisit/react-wrapper 2.1.2 → 2.4.1

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.
@@ -18,6 +18,11 @@ export declare class AssistantService {
18
18
  startListening(): void;
19
19
  /** Stop listening */
20
20
  stopListening(): void;
21
+ /**
22
+ * Reset activation state so the next activation flow can occur.
23
+ * This is mainly used by the wrapper UI (e.g. AssistantActivator).
24
+ */
25
+ reactivate(): void;
21
26
  /** Process activation command */
22
27
  private processActivation;
23
28
  /** Handle recognized commands */
@@ -29,11 +34,11 @@ export declare class AssistantService {
29
34
  /** Unified response processing */
30
35
  private processResponse;
31
36
  /** Add a command dynamically (supports string or rich object) */
32
- addCommand(commandOrObj: string | AssistantCommand, action?: (params?: any) => Promise<string | InteractiveResponse | void> | void): void;
37
+ addCommand(commandOrObj: string | AssistantCommand, action?: (params?: Record<string, unknown>) => Promise<string | InteractiveResponse | void> | void): void;
33
38
  /** Remove a command dynamically */
34
39
  removeCommand(command: string): void;
35
40
  /** Get all registered commands */
36
41
  getCommands(): string[];
37
42
  /** Toggle the assistant overlay */
38
- toggle(onSubmit?: (text: string) => void, onClose?: () => void): void;
43
+ toggle(onSubmit?: (input: string | Record<string, unknown>) => void, onClose?: () => void): void;
39
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foisit/react-wrapper",
3
- "version": "2.1.2",
3
+ "version": "2.4.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {