@aakash58/chatbot 1.0.45 → 1.0.47
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 +4 -3
- package/fesm2022/aakash58-chatbot.mjs +31 -67
- package/fesm2022/aakash58-chatbot.mjs.map +1 -1
- package/index.d.ts +3 -24
- 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' | 'system';
|
|
9
9
|
declare class ThemeService {
|
|
10
10
|
private overlay;
|
|
11
11
|
private renderer;
|
|
@@ -13,30 +13,10 @@ declare class ThemeService {
|
|
|
13
13
|
theme: _angular_core.Signal<ThemeMode>;
|
|
14
14
|
private _activeTheme;
|
|
15
15
|
activeTheme: _angular_core.Signal<"light-theme" | "dark-theme">;
|
|
16
|
-
private themeObserver?;
|
|
17
16
|
constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
|
|
18
|
-
/**
|
|
19
|
-
* Detect theme from parent app's body/html classes
|
|
20
|
-
*/
|
|
21
|
-
private detectParentTheme;
|
|
22
|
-
/**
|
|
23
|
-
* Watch for theme changes in parent app using MutationObserver
|
|
24
|
-
*/
|
|
25
|
-
private watchParentTheme;
|
|
26
|
-
/**
|
|
27
|
-
* Set theme (can be called manually or from parent app input)
|
|
28
|
-
* @param mode 'light' or 'dark'
|
|
29
|
-
*/
|
|
30
17
|
setTheme(mode: ThemeMode): void;
|
|
31
|
-
|
|
32
|
-
* Get current theme
|
|
33
|
-
*/
|
|
34
|
-
getTheme(): ThemeMode;
|
|
18
|
+
private updateActiveTheme;
|
|
35
19
|
private applyThemeToGlobal;
|
|
36
|
-
/**
|
|
37
|
-
* Clean up observer on destroy
|
|
38
|
-
*/
|
|
39
|
-
ngOnDestroy(): void;
|
|
40
20
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
41
21
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
42
22
|
}
|
|
@@ -130,7 +110,6 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
130
110
|
enableResize: boolean;
|
|
131
111
|
primaryColor: string | undefined;
|
|
132
112
|
apiConfig?: DoohbotApiConfig;
|
|
133
|
-
theme: 'light' | 'dark';
|
|
134
113
|
isFullScreen: boolean;
|
|
135
114
|
isChatOpen: _angular_core.WritableSignal<boolean>;
|
|
136
115
|
isBotTyping: _angular_core.WritableSignal<boolean>;
|
|
@@ -174,7 +153,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
174
153
|
} | null;
|
|
175
154
|
toggleFullScreen(): void;
|
|
176
155
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Doohbot, never>;
|
|
177
|
-
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; };
|
|
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>;
|
|
178
157
|
}
|
|
179
158
|
|
|
180
159
|
interface ChatContext$1 {
|
package/package.json
CHANGED