@aakash58/chatbot 1.0.28 → 1.0.29
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/fesm2022/aakash58-chatbot.mjs +142 -59
- package/fesm2022/aakash58-chatbot.mjs.map +1 -1
- package/index.d.ts +27 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TrackByFunction, SimpleChanges, ElementRef, Renderer2 } from '@angular/core';
|
|
3
|
-
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
2
|
+
import { RendererFactory2, TrackByFunction, SimpleChanges, ElementRef, Renderer2 } from '@angular/core';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
5
5
|
|
|
6
6
|
interface Message {
|
|
7
7
|
id: string;
|
|
@@ -31,15 +31,31 @@ declare class DoohbotInput {
|
|
|
31
31
|
readonly botAvatarUrl = "https://iili.io/KpER0Ge.png";
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
type ThemeMode = 'light' | 'dark' | 'system';
|
|
35
|
+
declare class ThemeService {
|
|
35
36
|
private overlay;
|
|
37
|
+
private renderer;
|
|
38
|
+
private _theme;
|
|
39
|
+
theme: _angular_core.Signal<ThemeMode>;
|
|
40
|
+
private _activeTheme;
|
|
41
|
+
activeTheme: _angular_core.Signal<"light-theme" | "dark-theme">;
|
|
42
|
+
constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
|
|
43
|
+
setTheme(mode: ThemeMode): void;
|
|
44
|
+
private updateActiveTheme;
|
|
45
|
+
private applyThemeToGlobal;
|
|
46
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
47
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class Doohbot extends DoohbotInput {
|
|
36
51
|
private elementRef;
|
|
37
52
|
private renderer;
|
|
38
53
|
config: DoohbotInput;
|
|
39
54
|
platformTenant: string;
|
|
40
55
|
subTenant: string;
|
|
41
56
|
agent: string;
|
|
42
|
-
|
|
57
|
+
enableDrag: boolean;
|
|
58
|
+
enableResize: boolean;
|
|
43
59
|
isFullScreen: boolean;
|
|
44
60
|
showThemeMenu: boolean;
|
|
45
61
|
isMenuOpen: boolean;
|
|
@@ -53,23 +69,24 @@ declare class Doohbot extends DoohbotInput {
|
|
|
53
69
|
maxMessageLength: number;
|
|
54
70
|
messageError: _angular_core.WritableSignal<string | null>;
|
|
55
71
|
private chatMessagesContainer;
|
|
72
|
+
buttonStyle: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
|
|
73
|
+
get isSidebar(): boolean;
|
|
74
|
+
get sidebarPosition(): 'top' | 'center' | 'bottom';
|
|
56
75
|
trackByMessageId: TrackByFunction<Message>;
|
|
57
|
-
|
|
76
|
+
themeService: ThemeService;
|
|
58
77
|
settingsMenuItems: Array<{
|
|
59
78
|
label: string;
|
|
60
79
|
action: () => void;
|
|
61
80
|
}>;
|
|
62
81
|
predefinedMessages: string[];
|
|
63
82
|
dismissTimeout: number | null;
|
|
64
|
-
primaryColor: string;
|
|
83
|
+
primaryColor: string | undefined;
|
|
65
84
|
ngOnChanges(changes: SimpleChanges): void;
|
|
66
85
|
private updateCssVariables;
|
|
67
86
|
ngOnInit(): void;
|
|
68
87
|
getCurrentUser(): Observable<string>;
|
|
69
88
|
onPredefinedClick(text: string): void;
|
|
70
|
-
|
|
71
|
-
private applyTheme;
|
|
72
|
-
constructor(overlay: OverlayContainer, elementRef: ElementRef, renderer: Renderer2);
|
|
89
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
73
90
|
openSettingsMenu(): void;
|
|
74
91
|
preFullscreenState: {
|
|
75
92
|
width: string;
|
|
@@ -89,7 +106,7 @@ declare class Doohbot extends DoohbotInput {
|
|
|
89
106
|
markAsReadEffect: _angular_core.EffectRef;
|
|
90
107
|
unreadCount: _angular_core.Signal<number>;
|
|
91
108
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Doohbot, never>;
|
|
92
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Doohbot, "app-doohbot", never, { "config": { "alias": "config"; "required": false; }; "platformTenant": { "alias": "platformTenant"; "required": false; }; "subTenant": { "alias": "subTenant"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
109
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Doohbot, "app-doohbot", never, { "config": { "alias": "config"; "required": false; }; "platformTenant": { "alias": "platformTenant"; "required": false; }; "subTenant": { "alias": "subTenant"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
93
110
|
}
|
|
94
111
|
|
|
95
112
|
export { Doohbot };
|