@webority/chat-elements 0.0.0-stage → 0.133.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/LICENSE.txt +9 -0
- package/dist/chat-elements.js +1 -0
- package/dist/chat.css +1 -0
- package/dist/chat.global.js +44 -0
- package/dist/types/WuiChat.d.ts +263 -0
- package/dist/types/agent.d.ts +7 -0
- package/dist/types/composer.d.ts +7 -0
- package/dist/types/dom.d.ts +31 -0
- package/dist/types/footer.d.ts +4 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/header.d.ts +4 -0
- package/dist/types/history.d.ts +7 -0
- package/dist/types/http.d.ts +12 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/loaders/index.d.ts +5 -0
- package/dist/types/loaders/orb.d.ts +4 -0
- package/dist/types/loaders/phrases.d.ts +4 -0
- package/dist/types/loaders/skeleton.d.ts +4 -0
- package/dist/types/loaders/steps.d.ts +4 -0
- package/dist/types/loaders/typing.d.ts +9 -0
- package/dist/types/nudge.d.ts +8 -0
- package/dist/types/past-chats.d.ts +18 -0
- package/dist/types/recaptcha.d.ts +2 -0
- package/dist/types/renderers/action-part.d.ts +17 -0
- package/dist/types/renderers/audio-type.d.ts +1 -0
- package/dist/types/renderers/cell-format.d.ts +6 -0
- package/dist/types/renderers/chart-engine.d.ts +1 -0
- package/dist/types/renderers/chart-engine.global.d.ts +1 -0
- package/dist/types/renderers/chart-part.d.ts +11 -0
- package/dist/types/renderers/figure-runs.d.ts +4 -0
- package/dist/types/renderers/figures-part.d.ts +1 -0
- package/dist/types/renderers/file-part.d.ts +4 -0
- package/dist/types/renderers/handoff-part.d.ts +6 -0
- package/dist/types/renderers/image-part.d.ts +1 -0
- package/dist/types/renderers/index.d.ts +32 -0
- package/dist/types/renderers/input-request-part.d.ts +12 -0
- package/dist/types/renderers/notice-part.d.ts +4 -0
- package/dist/types/renderers/part-base.d.ts +20 -0
- package/dist/types/renderers/quick-replies-part.d.ts +1 -0
- package/dist/types/renderers/record-card-part.d.ts +1 -0
- package/dist/types/renderers/sources-part.d.ts +1 -0
- package/dist/types/renderers/table-part.d.ts +1 -0
- package/dist/types/renderers/text-part.d.ts +2 -0
- package/dist/types/renderers/ticket-part.d.ts +1 -0
- package/dist/types/renderers/voice-clip-part.d.ts +6 -0
- package/dist/types/share-actions.d.ts +23 -0
- package/dist/types/shell-docked.d.ts +11 -0
- package/dist/types/shell-embed.d.ts +10 -0
- package/dist/types/shell-launcher.d.ts +10 -0
- package/dist/types/shell-page.d.ts +10 -0
- package/dist/types/starters.d.ts +6 -0
- package/dist/types/thread.d.ts +6 -0
- package/dist/types/voice/composer-voice.d.ts +12 -0
- package/dist/types/voice/controller.d.ts +24 -0
- package/dist/types/voice/icons.d.ts +1 -0
- package/dist/types/voice/read-aloud-button.d.ts +5 -0
- package/dist/types/web/autoopen.d.ts +3 -0
- package/dist/types/web/avoid.d.ts +3 -0
- package/dist/types/web/behaviour.d.ts +6 -0
- package/dist/types/web/explain.d.ts +27 -0
- package/dist/types/web/focus.d.ts +2 -0
- package/dist/types/web/haptics.d.ts +1 -0
- package/dist/types/web/index.d.ts +17 -0
- package/dist/types/web/moment.d.ts +15 -0
- package/dist/types/web/motion.d.ts +5 -0
- package/dist/types/web/print.d.ts +19 -0
- package/dist/types/web/scrolllock.d.ts +1 -0
- package/dist/types/web/share.d.ts +10 -0
- package/dist/types/web/sound.d.ts +6 -0
- package/dist/types/web/speech-azure.d.ts +29 -0
- package/dist/types/web/speech-sdk-absent.d.ts +1 -0
- package/dist/types/web/speech.d.ts +9 -0
- package/dist/types/web/switch.d.ts +13 -0
- package/dist/types/web/viewport.d.ts +3 -0
- package/dist/web-DeRQru_E.js +1 -0
- package/dist/web.js +1 -0
- package/package.json +67 -3
- package/README.md +0 -3
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
declare const Base: {
|
|
2
|
+
new (): {};
|
|
3
|
+
};
|
|
4
|
+
export declare function defineDefaultRenderer(kind: any, tagName: any): void;
|
|
5
|
+
export declare class WuiChat extends Base {
|
|
6
|
+
_uid: string;
|
|
7
|
+
_built: boolean;
|
|
8
|
+
_session: import("@webority/chat-core").ChatSession | null;
|
|
9
|
+
_unsubscribe: any;
|
|
10
|
+
_voice: {
|
|
11
|
+
canDictate: () => boolean;
|
|
12
|
+
canSpeak: () => boolean;
|
|
13
|
+
getStatus: () => {
|
|
14
|
+
mode: string;
|
|
15
|
+
messageId: any;
|
|
16
|
+
startedAtMs: any;
|
|
17
|
+
note: any;
|
|
18
|
+
};
|
|
19
|
+
subscribe: (listener: any) => () => void;
|
|
20
|
+
toggleDictation: (io: any) => Promise<void>;
|
|
21
|
+
toggleSpeak: (id: any, parts: any) => Promise<void>;
|
|
22
|
+
stop: () => void;
|
|
23
|
+
dismissNote: () => void;
|
|
24
|
+
destroy: () => void;
|
|
25
|
+
} | null;
|
|
26
|
+
_voiceConversationId: any;
|
|
27
|
+
_shell: any;
|
|
28
|
+
_labelsProp: any;
|
|
29
|
+
_pageContextProp: any;
|
|
30
|
+
_layoutParts: any;
|
|
31
|
+
_renderers: {
|
|
32
|
+
Text: string;
|
|
33
|
+
Sources: string;
|
|
34
|
+
QuickReplies: string;
|
|
35
|
+
InputRequest: string;
|
|
36
|
+
Action: string;
|
|
37
|
+
Notice: string;
|
|
38
|
+
Table: string;
|
|
39
|
+
Chart: string;
|
|
40
|
+
Figures: string;
|
|
41
|
+
RecordCard: string;
|
|
42
|
+
Image: string;
|
|
43
|
+
File: string;
|
|
44
|
+
Ticket: string;
|
|
45
|
+
Handoff: string;
|
|
46
|
+
VoiceClip: string;
|
|
47
|
+
};
|
|
48
|
+
_rendererApi: {
|
|
49
|
+
define: (kind: any, tagName: any) => void;
|
|
50
|
+
map: {
|
|
51
|
+
Text: string;
|
|
52
|
+
Sources: string;
|
|
53
|
+
QuickReplies: string;
|
|
54
|
+
InputRequest: string;
|
|
55
|
+
Action: string;
|
|
56
|
+
Notice: string;
|
|
57
|
+
Table: string;
|
|
58
|
+
Chart: string;
|
|
59
|
+
Figures: string;
|
|
60
|
+
RecordCard: string;
|
|
61
|
+
Image: string;
|
|
62
|
+
File: string;
|
|
63
|
+
Ticket: string;
|
|
64
|
+
Handoff: string;
|
|
65
|
+
VoiceClip: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
_captchaToken: any;
|
|
69
|
+
_openAttachmentProp: any;
|
|
70
|
+
_openCitationProp: any;
|
|
71
|
+
_openTargetProp: any;
|
|
72
|
+
_resolveLinkProp: any;
|
|
73
|
+
_openTicketProp: any;
|
|
74
|
+
_emptyContentProp: any;
|
|
75
|
+
_onPanelSwitchProp: any;
|
|
76
|
+
_preloadPanelSwitchProp: any;
|
|
77
|
+
_preloaded: boolean;
|
|
78
|
+
_pastList: import("@webority/chat-core").ConversationList | null;
|
|
79
|
+
_past: {
|
|
80
|
+
el: HTMLElement;
|
|
81
|
+
refresh(): void;
|
|
82
|
+
paint(): void;
|
|
83
|
+
dispose(): void;
|
|
84
|
+
} | null;
|
|
85
|
+
_pastRefreshed: boolean;
|
|
86
|
+
_historyShown: boolean;
|
|
87
|
+
_openedConversation: any;
|
|
88
|
+
_lastOpen: boolean;
|
|
89
|
+
_openTrigger: string;
|
|
90
|
+
_focusTimer: number | null;
|
|
91
|
+
_nudgeArmed: boolean;
|
|
92
|
+
_seeded: boolean;
|
|
93
|
+
_wasLoading: boolean;
|
|
94
|
+
_seen: Set<any>;
|
|
95
|
+
_sound: {
|
|
96
|
+
play(cue: any): void;
|
|
97
|
+
setMuted(value: any): void;
|
|
98
|
+
isMuted(): boolean;
|
|
99
|
+
destroy(): void;
|
|
100
|
+
} | null;
|
|
101
|
+
_behaviour: (() => {
|
|
102
|
+
timeOnSiteSeconds: number;
|
|
103
|
+
scrollPercent: number;
|
|
104
|
+
pagesViewed: any;
|
|
105
|
+
viewedServices: any;
|
|
106
|
+
}) | null;
|
|
107
|
+
_autoOpen: {
|
|
108
|
+
cancel(): void;
|
|
109
|
+
} | null;
|
|
110
|
+
_avoid: {
|
|
111
|
+
destroy(): void;
|
|
112
|
+
} | null;
|
|
113
|
+
_motion: {
|
|
114
|
+
readonly reduced: boolean;
|
|
115
|
+
subscribe(listener: any): () => void;
|
|
116
|
+
destroy(): void;
|
|
117
|
+
} | null;
|
|
118
|
+
_phone: {
|
|
119
|
+
fit: {
|
|
120
|
+
destroy(): void;
|
|
121
|
+
};
|
|
122
|
+
unlock: () => void;
|
|
123
|
+
} | null;
|
|
124
|
+
_onKeyDown: (event: any) => void;
|
|
125
|
+
_onNavigateProp: any;
|
|
126
|
+
_header: {
|
|
127
|
+
el: any;
|
|
128
|
+
paint: (view: any) => void;
|
|
129
|
+
} | undefined;
|
|
130
|
+
_starters: {
|
|
131
|
+
el: any;
|
|
132
|
+
paint: (view: any) => void;
|
|
133
|
+
extraHost: any;
|
|
134
|
+
pastHost: any;
|
|
135
|
+
} | undefined;
|
|
136
|
+
_thread: {
|
|
137
|
+
el: any;
|
|
138
|
+
paint: (state: any, context: any) => void;
|
|
139
|
+
find: (messageId: any) => any;
|
|
140
|
+
destroy: () => void;
|
|
141
|
+
} | undefined;
|
|
142
|
+
_composer: {
|
|
143
|
+
nodes: any[];
|
|
144
|
+
paint: (view: any) => void;
|
|
145
|
+
focus: () => void;
|
|
146
|
+
destroy: () => void;
|
|
147
|
+
getDraft: () => any;
|
|
148
|
+
} | undefined;
|
|
149
|
+
_footer: {
|
|
150
|
+
el: any;
|
|
151
|
+
paint: (view: any) => void;
|
|
152
|
+
} | undefined;
|
|
153
|
+
_history: {
|
|
154
|
+
el: any;
|
|
155
|
+
show: () => void;
|
|
156
|
+
hide: () => void;
|
|
157
|
+
paint: () => void;
|
|
158
|
+
dispose: () => void;
|
|
159
|
+
} | undefined;
|
|
160
|
+
_nudge: {
|
|
161
|
+
el: any;
|
|
162
|
+
schedule: (options: any) => void;
|
|
163
|
+
cancel: () => void;
|
|
164
|
+
dismiss: () => void;
|
|
165
|
+
isShown: () => boolean;
|
|
166
|
+
destroy: () => void;
|
|
167
|
+
} | undefined;
|
|
168
|
+
_status: any;
|
|
169
|
+
_errorEl: any;
|
|
170
|
+
_body: any;
|
|
171
|
+
_foot: any;
|
|
172
|
+
_launcherPlayed: boolean | undefined;
|
|
173
|
+
_openApplied: boolean | undefined;
|
|
174
|
+
hidden: boolean | undefined;
|
|
175
|
+
static get observedAttributes(): (string | ((raw: any) => any))[];
|
|
176
|
+
constructor();
|
|
177
|
+
get session(): any;
|
|
178
|
+
get conversationId(): any;
|
|
179
|
+
get labels(): any;
|
|
180
|
+
set labels(value: any);
|
|
181
|
+
get pageContext(): any;
|
|
182
|
+
set pageContext(value: any);
|
|
183
|
+
get compact(): any;
|
|
184
|
+
set compact(value: any);
|
|
185
|
+
get open(): any;
|
|
186
|
+
set open(value: any);
|
|
187
|
+
get renderers(): {
|
|
188
|
+
define: (kind: any, tagName: any) => void;
|
|
189
|
+
map: {
|
|
190
|
+
Text: string;
|
|
191
|
+
Sources: string;
|
|
192
|
+
QuickReplies: string;
|
|
193
|
+
InputRequest: string;
|
|
194
|
+
Action: string;
|
|
195
|
+
Notice: string;
|
|
196
|
+
Table: string;
|
|
197
|
+
Chart: string;
|
|
198
|
+
Figures: string;
|
|
199
|
+
RecordCard: string;
|
|
200
|
+
Image: string;
|
|
201
|
+
File: string;
|
|
202
|
+
Ticket: string;
|
|
203
|
+
Handoff: string;
|
|
204
|
+
VoiceClip: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
get layoutParts(): any;
|
|
208
|
+
set layoutParts(value: any);
|
|
209
|
+
get getCaptchaToken(): any;
|
|
210
|
+
set getCaptchaToken(value: any);
|
|
211
|
+
get openAttachment(): any;
|
|
212
|
+
set openAttachment(value: any);
|
|
213
|
+
get openCitation(): any;
|
|
214
|
+
set openCitation(value: any);
|
|
215
|
+
get openTarget(): any;
|
|
216
|
+
set openTarget(value: any);
|
|
217
|
+
get openTicket(): any;
|
|
218
|
+
set openTicket(value: any);
|
|
219
|
+
get onNavigate(): any;
|
|
220
|
+
set onNavigate(value: any);
|
|
221
|
+
get resolveLink(): any;
|
|
222
|
+
set resolveLink(value: any);
|
|
223
|
+
get emptyContent(): any;
|
|
224
|
+
set emptyContent(value: any);
|
|
225
|
+
get onPanelSwitch(): any;
|
|
226
|
+
set onPanelSwitch(value: any);
|
|
227
|
+
get preloadPanelSwitch(): any;
|
|
228
|
+
set preloadPanelSwitch(value: any);
|
|
229
|
+
connectedCallback(): void;
|
|
230
|
+
_adoptEarlyProperties(): void;
|
|
231
|
+
disconnectedCallback(): void;
|
|
232
|
+
attributeChangedCallback(name: any, previous: any, next: any): void;
|
|
233
|
+
toggle(): void;
|
|
234
|
+
close(): void;
|
|
235
|
+
newConversation(): void;
|
|
236
|
+
reset(): void;
|
|
237
|
+
_setOpen(open: any, trigger: any): void;
|
|
238
|
+
_assertLayout(): void;
|
|
239
|
+
_assertPosition(): void;
|
|
240
|
+
_isLauncherLike(): boolean;
|
|
241
|
+
_build(): void;
|
|
242
|
+
_buildShell(): void;
|
|
243
|
+
_createSession(): void;
|
|
244
|
+
_createPast(): void;
|
|
245
|
+
_disposePast(): void;
|
|
246
|
+
_applyEmptyContent(): void;
|
|
247
|
+
_switchPanel(): void;
|
|
248
|
+
_resetSession(): void;
|
|
249
|
+
_toggleHistory(show?: boolean): void;
|
|
250
|
+
_makeTurnApi(messageId: any): import("@webority/chat-core").ChatTurnApi;
|
|
251
|
+
_defaultOpenAttachment(part: any): void;
|
|
252
|
+
_defaultOpenCitation(messageId: any, marker: any): void;
|
|
253
|
+
_defaultOpenTarget(target: any): void;
|
|
254
|
+
_render(): void;
|
|
255
|
+
_paint(state: any): void;
|
|
256
|
+
_ensureRuntime(state: any, profile: any, look: any, labels: any): void;
|
|
257
|
+
_syncOpen(state: any, profile: any, features: any, labels: any, launcherLike: any): void;
|
|
258
|
+
_onOpenChange(open: any): void;
|
|
259
|
+
_syncConversation(state: any): void;
|
|
260
|
+
_playSounds(state: any): void;
|
|
261
|
+
_announce(message: any): void;
|
|
262
|
+
}
|
|
263
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function usableAvatarUrl(url: any): boolean;
|
|
2
|
+
export declare function initialsOf(name: any): string;
|
|
3
|
+
export declare function avatarNode(participant: any, fallbackName: any): any;
|
|
4
|
+
export declare function createAgentHead(author: any, labels: any): any;
|
|
5
|
+
export declare function createTypingRow(agentTyping: any, labels: any): any;
|
|
6
|
+
export declare function ticketTone(status: any): any;
|
|
7
|
+
export declare function ticketStatusLabel(status: any, labels: any): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const APP_BUTTON_MARKER = "AppButton";
|
|
2
|
+
export declare const OPEN_MS = 620;
|
|
3
|
+
export declare const CLOSE_MS = 300;
|
|
4
|
+
export declare function el(tag: any, className: any, attrs: any): any;
|
|
5
|
+
export declare function iconNode(name: any, size?: number): any;
|
|
6
|
+
export declare function buttonClass(variant?: string, size?: string): string;
|
|
7
|
+
export declare function textButton(variant: any, label: any, icon: any, onClick: any): any;
|
|
8
|
+
export declare function iconButton(label: any, icon: any, onClick: any): any;
|
|
9
|
+
export declare function parseJsonAttribute(element: any, name: any): any;
|
|
10
|
+
export declare function clear(node: any): any;
|
|
11
|
+
export declare function createOpenState(root: any): (open: any) => void;
|
|
12
|
+
export declare function applyAppearance(root: any, options: any): void;
|
|
13
|
+
export declare const PART_KINDS: string[];
|
|
14
|
+
export declare function kebab(name: any): any;
|
|
15
|
+
export declare function createShellBase({ id, layout, position, role, launcher, onToggle }: {
|
|
16
|
+
id: any;
|
|
17
|
+
launcher: any;
|
|
18
|
+
layout: any;
|
|
19
|
+
onToggle: any;
|
|
20
|
+
position: any;
|
|
21
|
+
role: any;
|
|
22
|
+
}): {
|
|
23
|
+
root: any;
|
|
24
|
+
panel: any;
|
|
25
|
+
setOpen: (next: any) => void;
|
|
26
|
+
setLabels: (next: any) => void;
|
|
27
|
+
setAppearance: (options: any) => void;
|
|
28
|
+
nudgeHost: any;
|
|
29
|
+
launcherButton: any;
|
|
30
|
+
role: any;
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {{ fetch?: typeof fetch }} [options] `fetch` is the transport; tests pass a stub.
|
|
3
|
+
* @returns {{ get: Function, post: Function, put: Function, delete: Function }}
|
|
4
|
+
*/
|
|
5
|
+
export declare function createFetchChatHttp({ fetch: transport }?: {
|
|
6
|
+
fetch?: typeof fetch;
|
|
7
|
+
}): {
|
|
8
|
+
get: Function;
|
|
9
|
+
post: Function;
|
|
10
|
+
put: Function;
|
|
11
|
+
delete: Function;
|
|
12
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const PAST_CHATS_SHOWN = 20;
|
|
2
|
+
/**
|
|
3
|
+
* The past chats rows of the empty state, drawn from a chat-core ConversationList.
|
|
4
|
+
* @param {{ list: object, getLabels: () => object, getFeatures: () => object, onOpen: (id: string) => void, now?: () => number }} options
|
|
5
|
+
* @returns {{ el: HTMLElement, refresh(): void, paint(): void, dispose(): void }}
|
|
6
|
+
*/
|
|
7
|
+
export declare function createPastChats(options: {
|
|
8
|
+
list: object;
|
|
9
|
+
getLabels: () => object;
|
|
10
|
+
getFeatures: () => object;
|
|
11
|
+
onOpen: (id: string) => void;
|
|
12
|
+
now?: () => number;
|
|
13
|
+
}): {
|
|
14
|
+
el: HTMLElement;
|
|
15
|
+
refresh(): void;
|
|
16
|
+
paint(): void;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChatPartElement } from "./part-base.js";
|
|
2
|
+
export declare class WuiChatPartAction extends ChatPartElement {
|
|
3
|
+
_part: any;
|
|
4
|
+
_turn: any;
|
|
5
|
+
_working: any;
|
|
6
|
+
_error: any;
|
|
7
|
+
_menuOpen: boolean;
|
|
8
|
+
constructor();
|
|
9
|
+
renderPart(part: any, _message: any, turn: any): void;
|
|
10
|
+
_paint(focus?: null): void;
|
|
11
|
+
_run(kind: any): Promise<void>;
|
|
12
|
+
_view(): any;
|
|
13
|
+
_status(part: any, labels: any): any;
|
|
14
|
+
_buttons(part: any, labels: any, recap: any, pending: any, editable: any): any;
|
|
15
|
+
_menu(options: any, labels: any): any;
|
|
16
|
+
_onMenuKey(event: any): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sniffAudioType(buffer: any): "application/octet-stream" | "audio/mp4" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadChartEngine(): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadChartEngine(): Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function appendRuns(parent: any, runs: any): void;
|
|
2
|
+
export declare function setRichText(element: any, text: any): void;
|
|
3
|
+
export declare function plainText(text: any): string;
|
|
4
|
+
export declare function valueRuns(number: any): import("@webority/chat-core").ChatFigureRun[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@webority/ui-elements/elements/lightbox";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./action-part.js";
|
|
2
|
+
import "./chart-part.js";
|
|
3
|
+
import "./figures-part.js";
|
|
4
|
+
import "./file-part.js";
|
|
5
|
+
import "./handoff-part.js";
|
|
6
|
+
import "./image-part.js";
|
|
7
|
+
import "./input-request-part.js";
|
|
8
|
+
import "./notice-part.js";
|
|
9
|
+
import "./quick-replies-part.js";
|
|
10
|
+
import "./record-card-part.js";
|
|
11
|
+
import "./sources-part.js";
|
|
12
|
+
import "./table-part.js";
|
|
13
|
+
import "./text-part.js";
|
|
14
|
+
import "./ticket-part.js";
|
|
15
|
+
import "./voice-clip-part.js";
|
|
16
|
+
export declare const defaultRenderers: {
|
|
17
|
+
Text: string;
|
|
18
|
+
Sources: string;
|
|
19
|
+
QuickReplies: string;
|
|
20
|
+
InputRequest: string;
|
|
21
|
+
Action: string;
|
|
22
|
+
Notice: string;
|
|
23
|
+
Table: string;
|
|
24
|
+
Chart: string;
|
|
25
|
+
Figures: string;
|
|
26
|
+
RecordCard: string;
|
|
27
|
+
Image: string;
|
|
28
|
+
File: string;
|
|
29
|
+
Ticket: string;
|
|
30
|
+
Handoff: string;
|
|
31
|
+
VoiceClip: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChatPartElement } from "./part-base.js";
|
|
2
|
+
import "./notice-part.js";
|
|
3
|
+
export declare class WuiChatPartInputRequest extends ChatPartElement {
|
|
4
|
+
_signature: any;
|
|
5
|
+
_turn: any;
|
|
6
|
+
_notice: HTMLElement | null;
|
|
7
|
+
_generation: number;
|
|
8
|
+
constructor();
|
|
9
|
+
renderPart(part: any, message: any, turn: any): void;
|
|
10
|
+
_content(part: any, message: any, turn: any): any;
|
|
11
|
+
_form(part: any, generation: any): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const Base: {
|
|
2
|
+
new (): {};
|
|
3
|
+
};
|
|
4
|
+
export declare class ChatPartElement extends Base {
|
|
5
|
+
#private;
|
|
6
|
+
get part(): null;
|
|
7
|
+
set part(value: null);
|
|
8
|
+
get message(): null;
|
|
9
|
+
set message(value: null);
|
|
10
|
+
get turn(): null;
|
|
11
|
+
set turn(value: null);
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
renderPart(): void;
|
|
15
|
+
disposePart(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare function definePart(tag: any, elementClass: any): void;
|
|
18
|
+
export declare function makeElement(doc: any, tag: any, className?: null, text?: null): any;
|
|
19
|
+
export declare function glyphNode(doc: any, name: any, size: any): any;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Appends the Share and Print buttons of one reply to its actions container.
|
|
3
|
+
* @param {HTMLElement} container the div.wui-chat-message-actions
|
|
4
|
+
* @param {object} message a ChatLiveMessage whose author is Assistant, Agent or Script
|
|
5
|
+
* @param {{ labels: object, features: object, title: string }} context
|
|
6
|
+
*/
|
|
7
|
+
export declare function appendReplyActions(container: HTMLElement, message: object, context: {
|
|
8
|
+
labels: object;
|
|
9
|
+
features: object;
|
|
10
|
+
title: string;
|
|
11
|
+
}): void;
|
|
12
|
+
/**
|
|
13
|
+
* Paints the Share and Print buttons of the whole conversation into the li the thread made.
|
|
14
|
+
* @param {HTMLElement} item the li.wui-chat-conversation-actions
|
|
15
|
+
* @param {object} state the ChatSessionState
|
|
16
|
+
* @param {{ labels: object, features: object, title: string, getState: () => object }} context
|
|
17
|
+
*/
|
|
18
|
+
export declare function paintConversationActions(item: HTMLElement, state: object, context: {
|
|
19
|
+
labels: object;
|
|
20
|
+
features: object;
|
|
21
|
+
title: string;
|
|
22
|
+
getState: () => object;
|
|
23
|
+
}): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function createDockedShell(options: any): {
|
|
2
|
+
root: any;
|
|
3
|
+
panel: any;
|
|
4
|
+
setLabels: (next: any) => void;
|
|
5
|
+
nudgeHost: any;
|
|
6
|
+
launcherButton: any;
|
|
7
|
+
role: any;
|
|
8
|
+
setOpen: (next: any) => void;
|
|
9
|
+
setAppearance: (next: any) => void;
|
|
10
|
+
destroy: () => void;
|
|
11
|
+
};
|