@foisit/react-wrapper 2.4.4 → 2.4.5

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.
@@ -37,6 +37,16 @@ export declare class AssistantService {
37
37
  addCommand(commandOrObj: string | AssistantCommand, action?: (params?: Record<string, unknown>) => Promise<string | InteractiveResponse | void> | void): void;
38
38
  /** Remove a command dynamically */
39
39
  removeCommand(command: string): void;
40
+ /** Expose programmatic command handler registration to host apps */
41
+ registerCommandHandler(commandId: string, handler: (params?: any) => Promise<any> | any): void;
42
+ unregisterCommandHandler(commandId: string): void;
43
+ /** Programmatically run a registered command (proxies to OverlayManager) */
44
+ runCommand(options: {
45
+ commandId: string;
46
+ params?: any;
47
+ openOverlay?: boolean;
48
+ showInvocation?: boolean;
49
+ }): Promise<any>;
40
50
  /** Get all registered commands */
41
51
  getCommands(): string[];
42
52
  /** Toggle the assistant overlay */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foisit/react-wrapper",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -29,7 +29,14 @@
29
29
  "accessibility",
30
30
  "website-integration"
31
31
  ],
32
- "homepage": "https://github.com/boluwatifee4/foisit#readme",
32
+ "homepage": "https://foisit-react-demo.netlify.app/",
33
+ "funding": {
34
+ "type": "github",
35
+ "url": "https://github.com/sponsors/boluwatifee4"
36
+ },
37
+ "engines": {
38
+ "node": ">=18.0.0"
39
+ },
33
40
  "bugs": {
34
41
  "url": "https://github.com/boluwatifee4/foisit/issues"
35
42
  },