@chativa/ui 0.0.1
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/dist/index.cjs +22779 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.js +27423 -0
- package/dist/index.js.map +1 -0
- package/package.json +61 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ChatStoreState } from '../../../core/src/index.ts';
|
|
2
|
+
import { CSSResult } from 'lit';
|
|
3
|
+
import { default as i18n } from 'i18next';
|
|
4
|
+
import { LitElement } from 'lit';
|
|
5
|
+
import { nothing } from 'lit';
|
|
6
|
+
import { TemplateResult } from 'lit';
|
|
7
|
+
import { ThemeConfig } from '../../../core/src/index.ts';
|
|
8
|
+
|
|
9
|
+
export declare class ChatBotButton extends ChatBotButton_base {
|
|
10
|
+
#private;
|
|
11
|
+
static styles: CSSResult;
|
|
12
|
+
/** True when consumer has placed content in the default slot */
|
|
13
|
+
private _hasSlot;
|
|
14
|
+
private _onSlotChange;
|
|
15
|
+
render(): TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const ChatBotButton_base: (new (...args: any[]) => ChatbotMixinInterface) & typeof LitElement;
|
|
19
|
+
|
|
20
|
+
export declare const ChatbotMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<ChatbotMixinInterface> & T;
|
|
21
|
+
|
|
22
|
+
declare class ChatbotMixinInterface {
|
|
23
|
+
lang: string;
|
|
24
|
+
theme: ThemeConfig;
|
|
25
|
+
themeState: ChatStoreState;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare class ChatWidget extends ChatWidget_base {
|
|
29
|
+
static styles: CSSResult;
|
|
30
|
+
connector: string;
|
|
31
|
+
/**
|
|
32
|
+
* Set as HTML attribute to start in fullscreen and hide the toggle:
|
|
33
|
+
* <chat-iva fullscreen-only></chat-iva>
|
|
34
|
+
* Equivalent to: setFullscreen(true) + setAllowFullscreen(false)
|
|
35
|
+
*/
|
|
36
|
+
get fulllscreenOnly(): boolean;
|
|
37
|
+
set fulllscreenOnly(_v: boolean);
|
|
38
|
+
/** Last stable drag position (used in _positionStyle). Triggers a render only at drag start/end. */
|
|
39
|
+
private _dragPos;
|
|
40
|
+
private _dragAnchor;
|
|
41
|
+
private _unsubscribeMessages;
|
|
42
|
+
private _engine;
|
|
43
|
+
connectedCallback(): void;
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
private _onDragStart;
|
|
46
|
+
private _onMouseMove;
|
|
47
|
+
private _onTouchMove;
|
|
48
|
+
private _applyDrag;
|
|
49
|
+
private _onMouseUp;
|
|
50
|
+
private _detachDragListeners;
|
|
51
|
+
private get _widget();
|
|
52
|
+
private handleSendMessage;
|
|
53
|
+
private _onChatAction;
|
|
54
|
+
private _onFeedback;
|
|
55
|
+
private _onChatRetry;
|
|
56
|
+
private _onSendFile;
|
|
57
|
+
private _onLoadHistory;
|
|
58
|
+
protected updated(changed: Map<PropertyKey, unknown>): void;
|
|
59
|
+
private get _positionStyle();
|
|
60
|
+
render(): TemplateResult<1> | typeof nothing;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare const ChatWidget_base: (new (...args: any[]) => ChatbotMixinInterface) & typeof LitElement;
|
|
64
|
+
|
|
65
|
+
declare type Constructor<T = object> = new (...args: any[]) => T;
|
|
66
|
+
|
|
67
|
+
export { i18n }
|
|
68
|
+
|
|
69
|
+
export { }
|