@foisit/angular-wrapper 2.4.655 → 2.5.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { AssistantConfig } from '
|
|
2
|
+
import { AssistantConfig } from '../core-internal';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AssistantModule {
|
|
5
5
|
static forRoot(config: AssistantConfig): ModuleWithProviders<AssistantModule>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssistantConfig, AssistantCommand, AssistantCommandParams, InteractiveResponse } from '
|
|
1
|
+
import { AssistantConfig, AssistantCommand, AssistantCommandParams, InteractiveResponse } from '../../core-internal';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AssistantService {
|
|
4
4
|
private config;
|
|
@@ -30,6 +30,16 @@ export declare class AssistantService {
|
|
|
30
30
|
destroy(): void;
|
|
31
31
|
/** Unified response processing */
|
|
32
32
|
private processResponse;
|
|
33
|
+
/** Expose programmatic command handler registration to host apps */
|
|
34
|
+
registerCommandHandler(commandId: string, handler: (params?: any) => Promise<any> | any): void;
|
|
35
|
+
unregisterCommandHandler(commandId: string): void;
|
|
36
|
+
/** Programmatically run a registered command (proxies to OverlayManager) */
|
|
37
|
+
runCommand(options: {
|
|
38
|
+
commandId: string;
|
|
39
|
+
params?: any;
|
|
40
|
+
openOverlay?: boolean;
|
|
41
|
+
showInvocation?: boolean;
|
|
42
|
+
}): Promise<any>;
|
|
33
43
|
/** Add a command dynamically (supports string or rich object) */
|
|
34
44
|
addCommand(commandOrObj: string | AssistantCommand, action?: (params?: AssistantCommandParams) => Promise<string | InteractiveResponse | void> | void): void;
|
|
35
45
|
/** Remove a command dynamically */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foisit/angular-wrapper",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.0.0",
|
|
6
6
|
"@angular/core": "^19.0.0"
|
|
@@ -22,7 +22,14 @@
|
|
|
22
22
|
"accessibility",
|
|
23
23
|
"website-integration"
|
|
24
24
|
],
|
|
25
|
-
"homepage": "https://
|
|
25
|
+
"homepage": "https://ng-foisit-demo.netlify.app/",
|
|
26
|
+
"funding": {
|
|
27
|
+
"type": "github",
|
|
28
|
+
"url": "https://github.com/sponsors/boluwatifee4"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18.0.0"
|
|
32
|
+
},
|
|
26
33
|
"bugs": {
|
|
27
34
|
"url": "https://github.com/boluwatifee4/foisit/issues"
|
|
28
35
|
},
|
|
@@ -46,4 +53,4 @@
|
|
|
46
53
|
"dependencies": {
|
|
47
54
|
"tslib": "^2.3.0"
|
|
48
55
|
}
|
|
49
|
-
}
|
|
56
|
+
}
|