@foisit/angular-wrapper 2.4.2 → 2.4.4
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/README.md
CHANGED
|
@@ -559,8 +559,6 @@ this.assistant.addCommand({
|
|
|
559
559
|
### Full Type Definitions
|
|
560
560
|
|
|
561
561
|
```typescript
|
|
562
|
-
import { AssistantCommand, InteractiveResponse } from '@foisit/core';
|
|
563
|
-
|
|
564
562
|
// Type-safe command definition
|
|
565
563
|
const myCommand: AssistantCommand = {
|
|
566
564
|
command: 'update settings',
|
|
@@ -691,7 +689,6 @@ describe('AssistantService', () => {
|
|
|
691
689
|
|
|
692
690
|
## Related Packages
|
|
693
691
|
|
|
694
|
-
- **[@foisit/core](../core)** - Core engine (auto-installed)
|
|
695
692
|
- **[@foisit/react-wrapper](../react-wrapper)** - React integration
|
|
696
693
|
- **[@foisit/vue-wrapper](../vue-wrapper)** - Vue integration
|
|
697
694
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AngularWrapperComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AngularWrapperComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AngularWrapperComponent, "lib-angular-wrapper", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { AssistantConfig } from '@foisit/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AssistantModule {
|
|
5
|
+
static forRoot(config: AssistantConfig): ModuleWithProviders<AssistantModule>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssistantModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AssistantModule, never, never, never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AssistantModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AssistantConfig, AssistantCommand, AssistantCommandParams, InteractiveResponse } from '@foisit/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AssistantService {
|
|
4
|
+
private config;
|
|
5
|
+
private commandHandler;
|
|
6
|
+
private fallbackHandler;
|
|
7
|
+
private voiceProcessor;
|
|
8
|
+
private textToSpeech;
|
|
9
|
+
private stateManager;
|
|
10
|
+
private lastProcessedInput;
|
|
11
|
+
private processingLock;
|
|
12
|
+
private isActivated;
|
|
13
|
+
private gestureHandler;
|
|
14
|
+
private overlayManager;
|
|
15
|
+
private defaultIntroMessage;
|
|
16
|
+
constructor(config: AssistantConfig);
|
|
17
|
+
/** Start listening for activation and commands */
|
|
18
|
+
startListening(): void;
|
|
19
|
+
/** Stop listening for voice input */
|
|
20
|
+
stopListening(): void;
|
|
21
|
+
/** Reset activation state so the next activation flow can occur. */
|
|
22
|
+
reactivate(): void;
|
|
23
|
+
/** Process activation command */
|
|
24
|
+
private processActivation;
|
|
25
|
+
/** Handle recognized commands */
|
|
26
|
+
private handleCommand;
|
|
27
|
+
/**
|
|
28
|
+
* Cleanup resources
|
|
29
|
+
*/
|
|
30
|
+
destroy(): void;
|
|
31
|
+
/** Unified response processing */
|
|
32
|
+
private processResponse;
|
|
33
|
+
/** Add a command dynamically (supports string or rich object) */
|
|
34
|
+
addCommand(commandOrObj: string | AssistantCommand, action?: (params?: AssistantCommandParams) => Promise<string | InteractiveResponse | void> | void): void;
|
|
35
|
+
/** Remove a command dynamically */
|
|
36
|
+
removeCommand(command: string): void;
|
|
37
|
+
/** Get all registered commands */
|
|
38
|
+
getCommands(): string[];
|
|
39
|
+
/** Toggle the assistant overlay */
|
|
40
|
+
toggle(onSubmit?: (input: string | Record<string, unknown>) => void, onClose?: () => void): void;
|
|
41
|
+
private extractUserLabel;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssistantService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AssistantService>;
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foisit/angular-wrapper",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.0.0",
|
|
6
6
|
"@angular/core": "^19.0.0"
|
|
@@ -8,11 +8,24 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"files": [
|
|
10
10
|
"fesm2022",
|
|
11
|
-
"
|
|
11
|
+
"lib",
|
|
12
12
|
"index.d.ts",
|
|
13
13
|
"README.md"
|
|
14
14
|
],
|
|
15
|
-
"description": "
|
|
15
|
+
"description": "A powerful AI assistant library for Angular applications, providing seamless chatbot functionality and intelligent interactions for websites.",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"ai-assistant",
|
|
18
|
+
"chatbot",
|
|
19
|
+
"angular",
|
|
20
|
+
"ai",
|
|
21
|
+
"assistant",
|
|
22
|
+
"accessibility",
|
|
23
|
+
"website-integration"
|
|
24
|
+
],
|
|
25
|
+
"homepage": "https://github.com/boluwatifee4/foisit#readme",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/boluwatifee4/foisit/issues"
|
|
28
|
+
},
|
|
16
29
|
"repository": {
|
|
17
30
|
"type": "git",
|
|
18
31
|
"url": "git+https://github.com/boluwatifee4/foisit.git"
|