@aakash58/chatbot 1.0.80 → 1.0.81
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 +174 -77
- package/fesm2022/aakash58-chatbot.mjs.map +1 -1
- package/index.d.ts +44 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -18,6 +18,31 @@ interface Message {
|
|
|
18
18
|
agent?: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
interface DoohbotThemeConfig {
|
|
22
|
+
fontFamily?: string;
|
|
23
|
+
primaryColor?: string;
|
|
24
|
+
secondaryColor?: string;
|
|
25
|
+
backgroundColor?: string;
|
|
26
|
+
chatInputColor?: string;
|
|
27
|
+
textAltColor?: string;
|
|
28
|
+
textColor?: string;
|
|
29
|
+
secondaryTextColor?: string;
|
|
30
|
+
hintTextColor?: string;
|
|
31
|
+
userMessageColor?: string;
|
|
32
|
+
botMessageColor?: string;
|
|
33
|
+
userTextColor?: string;
|
|
34
|
+
botTextColor?: string;
|
|
35
|
+
borderColor?: string;
|
|
36
|
+
borderShadowColor?: string;
|
|
37
|
+
borderTopColor?: string;
|
|
38
|
+
typingIndicatorColor?: string;
|
|
39
|
+
white?: string;
|
|
40
|
+
black?: string;
|
|
41
|
+
grey?: string;
|
|
42
|
+
red?: string;
|
|
43
|
+
lightRed?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
21
46
|
type ThemeMode = 'light' | 'dark' | 'auto';
|
|
22
47
|
declare class ThemeService implements OnDestroy {
|
|
23
48
|
private overlay;
|
|
@@ -36,6 +61,8 @@ declare class ThemeService implements OnDestroy {
|
|
|
36
61
|
private applyThemeToGlobal;
|
|
37
62
|
private cleanupObservers;
|
|
38
63
|
ngOnDestroy(): void;
|
|
64
|
+
applyCssVariables(element: HTMLElement, config: DoohbotThemeConfig | undefined): void;
|
|
65
|
+
private parseColor;
|
|
39
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
40
67
|
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
41
68
|
}
|
|
@@ -214,6 +241,19 @@ interface UserContext {
|
|
|
214
241
|
metadata?: Record<string, any>;
|
|
215
242
|
}
|
|
216
243
|
|
|
244
|
+
declare class FullscreenDirective {
|
|
245
|
+
private el;
|
|
246
|
+
private renderer;
|
|
247
|
+
private isFullScreen;
|
|
248
|
+
private preFullscreenState;
|
|
249
|
+
fullscreenTarget: string;
|
|
250
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
251
|
+
toggle(): void;
|
|
252
|
+
getFullscreenState(): boolean;
|
|
253
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullscreenDirective, never>;
|
|
254
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FullscreenDirective, "[appFullscreen]", never, { "fullscreenTarget": { "alias": "fullscreenTarget"; "required": false; }; }, {}, never, never, true, never>;
|
|
255
|
+
}
|
|
256
|
+
|
|
217
257
|
declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
218
258
|
private elementRef;
|
|
219
259
|
private renderer;
|
|
@@ -226,14 +266,14 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
226
266
|
buttonStyle: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
|
|
227
267
|
enableDrag: boolean;
|
|
228
268
|
enableResize: boolean;
|
|
229
|
-
primaryColor: string | undefined;
|
|
230
269
|
apiConfig?: DoohbotApiConfig;
|
|
231
270
|
userContext?: UserContext;
|
|
271
|
+
themeConfig: DoohbotThemeConfig | undefined;
|
|
232
272
|
isFullScreen: boolean;
|
|
233
273
|
isChatOpen: i0.WritableSignal<boolean>;
|
|
234
|
-
isBotTyping: i0.WritableSignal<boolean>;
|
|
235
274
|
isAuthenticated: i0.WritableSignal<boolean>;
|
|
236
275
|
private messageService;
|
|
276
|
+
isBotTyping: i0.WritableSignal<boolean>;
|
|
237
277
|
messages: i0.WritableSignal<Message[]>;
|
|
238
278
|
private lastReadMessageId;
|
|
239
279
|
themeService: ThemeService;
|
|
@@ -245,6 +285,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
245
285
|
predefinedMessages: string[];
|
|
246
286
|
trackByMessageId(index: number, item: any): string;
|
|
247
287
|
chatWindowRef: ElementRef;
|
|
288
|
+
fullscreenDirective: FullscreenDirective;
|
|
248
289
|
constructor(elementRef: ElementRef, renderer: Renderer2, accountService: AccountService, authService: AuthService);
|
|
249
290
|
ngOnChanges(changes: SimpleChanges): void;
|
|
250
291
|
ngOnInit(): void;
|
|
@@ -274,7 +315,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
274
315
|
} | null;
|
|
275
316
|
toggleFullScreen(): void;
|
|
276
317
|
static ɵfac: i0.ɵɵFactoryDeclaration<Doohbot, never>;
|
|
277
|
-
static ɵcmp: i0.ɵɵ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; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "
|
|
318
|
+
static ɵcmp: i0.ɵɵ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; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "userContext": { "alias": "userContext"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
278
319
|
}
|
|
279
320
|
|
|
280
321
|
/**
|