@bloonio/chat-angular 0.1.0 → 0.2.0
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/CHANGELOG.md +54 -0
- package/README.md +120 -6
- package/fesm2022/bloonio-chat-angular.mjs +557 -168
- package/fesm2022/bloonio-chat-angular.mjs.map +1 -1
- package/package.json +5 -7
- package/src/lib/styles/chat.css +16 -3
- package/types/bloonio-chat-angular.d.ts +330 -0
- package/esm2022/bloonio-chat-angular.mjs +0 -5
- package/esm2022/index.mjs +0 -25
- package/esm2022/lib/bloonio-chat.service.mjs +0 -311
- package/esm2022/lib/bloonio-chat.token.mjs +0 -46
- package/esm2022/lib/components/input-bar.component.mjs +0 -91
- package/esm2022/lib/components/launcher.component.mjs +0 -81
- package/esm2022/lib/components/message-list.component.mjs +0 -58
- package/esm2022/lib/components/panel.component.mjs +0 -211
- package/esm2022/lib/components/quick-replies.component.mjs +0 -58
- package/esm2022/lib/components/thread.component.mjs +0 -103
- package/index.d.ts +0 -27
- package/lib/bloonio-chat.service.d.ts +0 -79
- package/lib/bloonio-chat.token.d.ts +0 -67
- package/lib/components/input-bar.component.d.ts +0 -18
- package/lib/components/launcher.component.d.ts +0 -14
- package/lib/components/message-list.component.d.ts +0 -8
- package/lib/components/panel.component.d.ts +0 -31
- package/lib/components/quick-replies.component.d.ts +0 -10
- package/lib/components/thread.component.d.ts +0 -27
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Visitor input bar — multi-line textarea + send button. Enter sends,
|
|
3
|
-
* Shift+Enter inserts a newline. Emits `send` with the trimmed content
|
|
4
|
-
* once it's non-empty.
|
|
5
|
-
*/
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class InputBarComponent {
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
send: EventEmitter<string>;
|
|
11
|
-
protected readonly value: import("@angular/core").WritableSignal<string>;
|
|
12
|
-
protected canSend(): boolean;
|
|
13
|
-
onInput(e: Event): void;
|
|
14
|
-
onKey(e: KeyboardEvent): void;
|
|
15
|
-
submit(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputBarComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputBarComponent, "bloonio-chat-input-bar", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "send": "send"; }, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BloonioChatService } from '../bloonio-chat.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BloonioChatLauncherComponent {
|
|
4
|
-
protected readonly chat: BloonioChatService;
|
|
5
|
-
protected readonly position: import("@angular/core").Signal<import("@bloonio/chat-client-core").WidgetPosition>;
|
|
6
|
-
/** Tint the bubble with the tenant's brand colour (falls back to the
|
|
7
|
-
* stylesheet default until bootstrap config loads). */
|
|
8
|
-
protected readonly themeStyle: import("@angular/core").Signal<string>;
|
|
9
|
-
protected readonly label: import("@angular/core").Signal<string>;
|
|
10
|
-
protected readonly ariaLabel: import("@angular/core").Signal<string>;
|
|
11
|
-
onToggle(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BloonioChatLauncherComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BloonioChatLauncherComponent, "bloonio-chat-launcher", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ChatMessage } from '../bloonio-chat.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MessageListComponent {
|
|
4
|
-
messages: ChatMessage[];
|
|
5
|
-
botTyping: boolean;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "bloonio-chat-message-list", never, { "messages": { "alias": "messages"; "required": true; }; "botTyping": { "alias": "botTyping"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Floating or docked chat panel. Renders the header, message list, input,
|
|
3
|
-
* and footer. Sits inside `<bloonio-chat-launcher>` for the floating
|
|
4
|
-
* variant, or stand-alone for `mode="docked"`/`mode="inline"`.
|
|
5
|
-
*/
|
|
6
|
-
import { type AfterViewChecked } from '@angular/core';
|
|
7
|
-
import { BloonioChatService } from '../bloonio-chat.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export type ChatPanelMode = 'floating' | 'docked' | 'inline';
|
|
10
|
-
export declare class BloonioChatPanelComponent implements AfterViewChecked {
|
|
11
|
-
/** floating = paired with launcher (default). docked/inline = always-on
|
|
12
|
-
* inside the page flow (use for SSR landing pages or sidebar layouts). */
|
|
13
|
-
mode: ChatPanelMode;
|
|
14
|
-
protected readonly chat: BloonioChatService;
|
|
15
|
-
private messagesRef?;
|
|
16
|
-
private lastScrollLen;
|
|
17
|
-
protected readonly position: import("@angular/core").Signal<import("@bloonio/chat-client-core").WidgetPosition>;
|
|
18
|
-
protected readonly visible: import("@angular/core").Signal<boolean>;
|
|
19
|
-
protected readonly themeStyle: import("@angular/core").Signal<string>;
|
|
20
|
-
protected readonly displayName: import("@angular/core").Signal<string>;
|
|
21
|
-
protected readonly logoUrl: import("@angular/core").Signal<string>;
|
|
22
|
-
protected readonly initials: import("@angular/core").Signal<string>;
|
|
23
|
-
protected readonly statusText: import("@angular/core").Signal<string>;
|
|
24
|
-
protected readonly isOnlineStr: import("@angular/core").Signal<string>;
|
|
25
|
-
protected readonly visibleMessages: import("@angular/core").Signal<import("../bloonio-chat.service").ChatMessage[]>;
|
|
26
|
-
ngAfterViewChecked(): void;
|
|
27
|
-
onClose(): void;
|
|
28
|
-
onSend(content: string): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BloonioChatPanelComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BloonioChatPanelComponent, "bloonio-chat-panel", never, { "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BloonioChatService } from '../bloonio-chat.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class QuickRepliesComponent {
|
|
4
|
-
protected readonly chat: BloonioChatService;
|
|
5
|
-
/** Show the configured chips only until the visitor's first message. */
|
|
6
|
-
protected readonly replies: import("@angular/core").Signal<string[]>;
|
|
7
|
-
protected pick(text: string): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuickRepliesComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuickRepliesComponent, "bloonio-chat-quick-replies", never, {}, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `<bloonio-chat-thread>` — headless variant of the panel. Renders just
|
|
3
|
-
* the message log + input, no header, no floating chrome. Used when the
|
|
4
|
-
* tenant wants to embed the chat *inside* their own layout (e.g. inside
|
|
5
|
-
* a support modal, a sidebar, a help center page).
|
|
6
|
-
*
|
|
7
|
-
* Theming and behaviour are otherwise identical — the same
|
|
8
|
-
* `BloonioChatService` drives state, so a thread and a panel side-by-side
|
|
9
|
-
* stay in sync.
|
|
10
|
-
*/
|
|
11
|
-
import { AfterViewChecked } from '@angular/core';
|
|
12
|
-
import { BloonioChatService } from '../bloonio-chat.service';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
export declare class BloonioChatThreadComponent implements AfterViewChecked {
|
|
15
|
-
protected readonly chat: BloonioChatService;
|
|
16
|
-
private messagesRef?;
|
|
17
|
-
private lastScrollLen;
|
|
18
|
-
protected readonly themeStyle: import("@angular/core").Signal<string>;
|
|
19
|
-
protected readonly visibleMessages: import("@angular/core").Signal<import("../bloonio-chat.service").ChatMessage[]>;
|
|
20
|
-
ngAfterViewChecked(): void;
|
|
21
|
-
/** Convenience: thread is meant to be always-on, so it opens the
|
|
22
|
-
* service-level session as soon as it's instantiated.
|
|
23
|
-
* (Floating panel waits for the launcher click.) */
|
|
24
|
-
constructor();
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BloonioChatThreadComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BloonioChatThreadComponent, "bloonio-chat-thread", never, {}, {}, never, never, true, never>;
|
|
27
|
-
}
|