@aakash58/chatbot 1.0.42 → 1.0.44
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 +24 -29
- package/fesm2022/aakash58-chatbot.mjs.map +1 -1
- package/index.d.ts +11 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { OverlayContainer } from '@angular/cdk/overlay';
|
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
|
|
8
|
-
type ThemeMode = 'light' | 'dark'
|
|
8
|
+
type ThemeMode = 'light' | 'dark';
|
|
9
9
|
declare class ThemeService {
|
|
10
10
|
private overlay;
|
|
11
11
|
private renderer;
|
|
@@ -14,8 +14,15 @@ declare class ThemeService {
|
|
|
14
14
|
private _activeTheme;
|
|
15
15
|
activeTheme: _angular_core.Signal<"light-theme" | "dark-theme">;
|
|
16
16
|
constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
|
|
17
|
+
/**
|
|
18
|
+
* Set theme from parent application
|
|
19
|
+
* @param mode 'light' or 'dark'
|
|
20
|
+
*/
|
|
17
21
|
setTheme(mode: ThemeMode): void;
|
|
18
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Get current theme
|
|
24
|
+
*/
|
|
25
|
+
getTheme(): ThemeMode;
|
|
19
26
|
private applyThemeToGlobal;
|
|
20
27
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
21
28
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
@@ -110,6 +117,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
110
117
|
enableResize: boolean;
|
|
111
118
|
primaryColor: string | undefined;
|
|
112
119
|
apiConfig?: DoohbotApiConfig;
|
|
120
|
+
theme: 'light' | 'dark';
|
|
113
121
|
isFullScreen: boolean;
|
|
114
122
|
isChatOpen: _angular_core.WritableSignal<boolean>;
|
|
115
123
|
isBotTyping: _angular_core.WritableSignal<boolean>;
|
|
@@ -153,7 +161,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
153
161
|
} | null;
|
|
154
162
|
toggleFullScreen(): void;
|
|
155
163
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Doohbot, never>;
|
|
156
|
-
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; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
164
|
+
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; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, {}, never, never, true, never>;
|
|
157
165
|
}
|
|
158
166
|
|
|
159
167
|
interface ChatContext$1 {
|
package/package.json
CHANGED