@davi-ai/retorik-framework 4.0.3 → 5.0.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/README.md +13 -0
- package/dist/{AttachmentDetail.637ad44f.js → AttachmentDetail.3f9c113d.js} +15 -6
- package/dist/AttachmentDetail.3f9c113d.js.map +1 -0
- package/dist/{AttachmentDetail.83788045.js → AttachmentDetail.57c5579a.js} +15 -6
- package/dist/AttachmentDetail.57c5579a.js.map +1 -0
- package/dist/{CustomView.bf84bdf3.js → CustomView.6b96f53f.js} +8 -4
- package/dist/CustomView.6b96f53f.js.map +1 -0
- package/dist/{CustomView.9930c671.js → CustomView.b32a608f.js} +8 -4
- package/dist/CustomView.b32a608f.js.map +1 -0
- package/dist/{Emergency.1e63c85f.js → Emergency.43605d14.js} +16 -7
- package/dist/Emergency.43605d14.js.map +1 -0
- package/dist/{Emergency.89b4d9ed.js → Emergency.f1287bd5.js} +16 -7
- package/dist/Emergency.f1287bd5.js.map +1 -0
- package/dist/FullScreenImage.17df27bf.js.map +1 -1
- package/dist/FullScreenImage.99e19e10.js.map +1 -1
- package/dist/{HistoryList.3b4b1ffb.js → HistoryList.c19556a7.js} +8 -2
- package/dist/HistoryList.c19556a7.js.map +1 -0
- package/dist/{HistoryList.e5c01f21.js → HistoryList.e7262d62.js} +8 -2
- package/dist/HistoryList.e7262d62.js.map +1 -0
- package/dist/{LanguageChoice.1d866cfa.js → LanguageChoice.54fae1dc.js} +19 -8
- package/dist/LanguageChoice.54fae1dc.js.map +1 -0
- package/dist/{LanguageChoice.cce361a3.js → LanguageChoice.6e8b74f6.js} +19 -8
- package/dist/LanguageChoice.6e8b74f6.js.map +1 -0
- package/dist/LittleWeatherContainer.7e41105e.js.map +1 -1
- package/dist/LittleWeatherContainer.ee087e22.js.map +1 -1
- package/dist/{MapContainer.14c28128.js → MapContainer.25c8f4b4.js} +20 -5
- package/dist/MapContainer.25c8f4b4.js.map +1 -0
- package/dist/{MapContainer.f22ad81f.js → MapContainer.d00ab5b2.js} +20 -5
- package/dist/MapContainer.d00ab5b2.js.map +1 -0
- package/dist/{NewsContainer.c0a24775.js → NewsContainer.a39630c3.js} +33 -26
- package/dist/NewsContainer.a39630c3.js.map +1 -0
- package/dist/{NewsContainer.c3331d80.js → NewsContainer.ec15c3bb.js} +33 -26
- package/dist/NewsContainer.ec15c3bb.js.map +1 -0
- package/dist/PrintingPreview.375e62b0.js.map +1 -1
- package/dist/PrintingPreview.c0ca7706.js.map +1 -1
- package/dist/RecognitionManager.c58b8a3d.js +298 -0
- package/dist/RecognitionManager.c58b8a3d.js.map +1 -0
- package/dist/RecognitionManager.cdfb39fc.js +314 -0
- package/dist/RecognitionManager.cdfb39fc.js.map +1 -0
- package/dist/SpiritEngineWrapper.21ea10d4.js.map +1 -1
- package/dist/SpiritEngineWrapper.39627300.js.map +1 -1
- package/dist/SynthesisPonyfillManager.10888d6d.js +888 -0
- package/dist/SynthesisPonyfillManager.10888d6d.js.map +1 -0
- package/dist/SynthesisPonyfillManager.f9f9a915.js +920 -0
- package/dist/SynthesisPonyfillManager.f9f9a915.js.map +1 -0
- package/dist/{ThreeJsWrapper.dd4906ff.js → ThreeJsWrapper.0285d280.js} +24 -12
- package/dist/ThreeJsWrapper.0285d280.js.map +1 -0
- package/dist/{ThreeJsWrapper.c02a077f.js → ThreeJsWrapper.ad746197.js} +24 -11
- package/dist/ThreeJsWrapper.ad746197.js.map +1 -0
- package/dist/{VeilleManager.72cf0e9c.js → VeilleManager.0b3f2454.js} +18 -17
- package/dist/VeilleManager.0b3f2454.js.map +1 -0
- package/dist/{VeilleManager.26dcadac.js → VeilleManager.340a7825.js} +18 -17
- package/dist/VeilleManager.340a7825.js.map +1 -0
- package/dist/{Weather.bb414852.js → Weather.abc13d88.js} +25 -77
- package/dist/Weather.abc13d88.js.map +1 -0
- package/dist/{Weather.ced9b467.js → Weather.b9d9f82e.js} +25 -77
- package/dist/Weather.b9d9f82e.js.map +1 -0
- package/dist/index.d.ts +22 -929
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53286 -33038
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +51651 -31410
- package/dist/index.modern.js.map +1 -1
- package/package.json +20 -21
- package/dist/AttachmentDetail.637ad44f.js.map +0 -1
- package/dist/AttachmentDetail.83788045.js.map +0 -1
- package/dist/CustomView.9930c671.js.map +0 -1
- package/dist/CustomView.bf84bdf3.js.map +0 -1
- package/dist/Emergency.1e63c85f.js.map +0 -1
- package/dist/Emergency.89b4d9ed.js.map +0 -1
- package/dist/HistoryList.3b4b1ffb.js.map +0 -1
- package/dist/HistoryList.e5c01f21.js.map +0 -1
- package/dist/LanguageChoice.1d866cfa.js.map +0 -1
- package/dist/LanguageChoice.cce361a3.js.map +0 -1
- package/dist/MapContainer.14c28128.js.map +0 -1
- package/dist/MapContainer.f22ad81f.js.map +0 -1
- package/dist/NewsContainer.c0a24775.js.map +0 -1
- package/dist/NewsContainer.c3331d80.js.map +0 -1
- package/dist/ThreeJsWrapper.c02a077f.js.map +0 -1
- package/dist/ThreeJsWrapper.dd4906ff.js.map +0 -1
- package/dist/VeilleManager.26dcadac.js.map +0 -1
- package/dist/VeilleManager.72cf0e9c.js.map +0 -1
- package/dist/Weather.bb414852.js.map +0 -1
- package/dist/Weather.ced9b467.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,744 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
interface FilterItem {
|
|
12
|
-
name: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}
|
|
15
|
-
interface Filter {
|
|
16
|
-
id: string;
|
|
17
|
-
title: string;
|
|
18
|
-
filterItems: Array<FilterItem>;
|
|
19
|
-
}
|
|
20
|
-
interface RetorikActivity {
|
|
21
|
-
id: string;
|
|
22
|
-
type: string;
|
|
23
|
-
from: {
|
|
24
|
-
id: string;
|
|
25
|
-
name?: string;
|
|
26
|
-
role: 'bot' | 'channel' | 'user';
|
|
27
|
-
};
|
|
28
|
-
meta?: {
|
|
29
|
-
method?: string;
|
|
30
|
-
queue?: string[];
|
|
31
|
-
};
|
|
32
|
-
name?: string;
|
|
33
|
-
attachments?: DirectLineAttachment[];
|
|
34
|
-
attachmentLayout?: string;
|
|
35
|
-
suggestedActions?: any;
|
|
36
|
-
text?: string;
|
|
37
|
-
htmlText?: string;
|
|
38
|
-
speak?: string;
|
|
39
|
-
channelData?: {
|
|
40
|
-
[option: string]: any;
|
|
41
|
-
filters?: Filter[];
|
|
42
|
-
selectedFilters?: Filter[];
|
|
43
|
-
numberOfResults?: number;
|
|
44
|
-
category?: {
|
|
45
|
-
id: string;
|
|
46
|
-
label?: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
channelId?: string;
|
|
50
|
-
conversation?: {
|
|
51
|
-
id: string;
|
|
52
|
-
};
|
|
53
|
-
localTimezone?: string;
|
|
54
|
-
timestamp?: string;
|
|
55
|
-
localTimestamp?: string;
|
|
56
|
-
replyToId?: string;
|
|
57
|
-
value?: any;
|
|
58
|
-
locale?: string;
|
|
59
|
-
label?: string;
|
|
60
|
-
inputHint?: string;
|
|
61
|
-
messageType?: string;
|
|
62
|
-
personality?: {
|
|
63
|
-
Etag: string;
|
|
64
|
-
Context: Array<EmotionData>;
|
|
65
|
-
ActionTendencies: Array<any>;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
interface EmotionData {
|
|
69
|
-
emotion: string;
|
|
70
|
-
value: number;
|
|
71
|
-
}
|
|
72
|
-
interface DetailedAttachmentAction {
|
|
73
|
-
type: string;
|
|
74
|
-
name?: string;
|
|
75
|
-
label?: string;
|
|
76
|
-
contentType?: string;
|
|
77
|
-
linkedComponent: ((props?: any) => JSX.Element) | null;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated AvailableViews is deprecated without replacement since version 2.2.0 and the new menu system
|
|
81
|
-
*/
|
|
82
|
-
export enum AvailableViews {
|
|
83
|
-
home = 1,
|
|
84
|
-
news = 2,
|
|
85
|
-
weather = 3,
|
|
86
|
-
emergency = 4
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated AvailableSubViews is deprecated without replacement since version 2.2.0 and the new menu system
|
|
90
|
-
*/
|
|
91
|
-
export enum AvailableSubViews {
|
|
92
|
-
history = 1000,
|
|
93
|
-
tutorial = 1001
|
|
94
|
-
}
|
|
95
|
-
export enum CurrentSubView {
|
|
96
|
-
none = 1,
|
|
97
|
-
history = 2,
|
|
98
|
-
languages = 3,
|
|
99
|
-
weather = 4,
|
|
100
|
-
emergency = 5,
|
|
101
|
-
map = 6,
|
|
102
|
-
custom = 7
|
|
103
|
-
}
|
|
104
|
-
export enum DeviceType {
|
|
105
|
-
mobile = 1,
|
|
106
|
-
borne = 2,
|
|
107
|
-
landscape = 3,
|
|
108
|
-
widget = 4,
|
|
109
|
-
widgetLandscape = 5,
|
|
110
|
-
widgetBorne = 6
|
|
111
|
-
}
|
|
112
|
-
export enum Emotions {
|
|
113
|
-
Regret = "regret",
|
|
114
|
-
Dislike = "dislike",
|
|
115
|
-
Distress = "distress",
|
|
116
|
-
Fear = "fear",
|
|
117
|
-
Sadness = "sadness",
|
|
118
|
-
Shame = "shame",
|
|
119
|
-
Contempt = "contempt",
|
|
120
|
-
Disgust = "disgust",
|
|
121
|
-
Guilt = "guilt",
|
|
122
|
-
Anger = "anger",
|
|
123
|
-
Frustration = "frustration",
|
|
124
|
-
Pride = "pride",
|
|
125
|
-
Love = "love",
|
|
126
|
-
Relief = "relief",
|
|
127
|
-
Joy = "joy",
|
|
128
|
-
Hope = "hope"
|
|
129
|
-
}
|
|
130
|
-
export enum InputHintBehaviour {
|
|
131
|
-
auto = "auto",
|
|
132
|
-
always = "always",
|
|
133
|
-
never = "never",
|
|
134
|
-
ignore = "ignore"
|
|
135
|
-
}
|
|
136
|
-
enum Mode {
|
|
137
|
-
vocal = 1,
|
|
138
|
-
text = 2,
|
|
139
|
-
dashboard = 3
|
|
140
|
-
}
|
|
141
|
-
export enum RetorikEvent {
|
|
142
|
-
DetailViewOpen = 1,
|
|
143
|
-
DetailViewClose = 2,
|
|
144
|
-
SpeechStarted = 3,
|
|
145
|
-
SpeechEnded = 4
|
|
146
|
-
}
|
|
147
|
-
enum Source3DEngine {
|
|
148
|
-
avatarsdk = "avatarsdk",
|
|
149
|
-
avatarsdkbis = "avatar-sdk",
|
|
150
|
-
avaturn = "avaturn",
|
|
151
|
-
cc3 = "cc3",
|
|
152
|
-
cc4 = "cc4",
|
|
153
|
-
rpm = "rpm",
|
|
154
|
-
readyplayerme = "readyplayerme"
|
|
155
|
-
}
|
|
156
|
-
interface ContainerPosition {
|
|
157
|
-
containerRowStart?: number;
|
|
158
|
-
containerRowEnd?: number;
|
|
159
|
-
}
|
|
160
|
-
interface ContainerPositionPerDevice {
|
|
161
|
-
borne?: ContainerPosition;
|
|
162
|
-
landscape?: ContainerPosition;
|
|
163
|
-
}
|
|
164
|
-
export interface Configuration extends RetorikMenusConfiguration {
|
|
165
|
-
fullSize?: boolean;
|
|
166
|
-
isUsedOnBorne?: boolean;
|
|
167
|
-
locales?: {
|
|
168
|
-
getDefaultFromBrowser?: boolean;
|
|
169
|
-
};
|
|
170
|
-
position?: {
|
|
171
|
-
searchForLocation?: boolean;
|
|
172
|
-
latitude?: number;
|
|
173
|
-
longitude?: number;
|
|
174
|
-
city?: string;
|
|
175
|
-
country?: string;
|
|
176
|
-
};
|
|
177
|
-
subtitles?: boolean;
|
|
178
|
-
subtitlesPosition?: ContainerPositionPerDevice;
|
|
179
|
-
logo?: {
|
|
180
|
-
src: string;
|
|
181
|
-
};
|
|
182
|
-
answerpanel?: boolean | {
|
|
183
|
-
borne?: ContainerPosition;
|
|
184
|
-
landscape?: ContainerPosition & {
|
|
185
|
-
containerRowStartText?: number;
|
|
186
|
-
containerRowEndText?: number;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
skipWelcome?: boolean;
|
|
190
|
-
preventExpectedInputHint?: boolean;
|
|
191
|
-
pagination?: {
|
|
192
|
-
borne?: number;
|
|
193
|
-
landscape?: number;
|
|
194
|
-
mobile?: number;
|
|
195
|
-
};
|
|
196
|
-
remote?: VerticalPosition;
|
|
197
|
-
languageChoiceBottom?: VerticalPosition & {
|
|
198
|
-
setUnderRemote?: boolean;
|
|
199
|
-
};
|
|
200
|
-
companyName?: string;
|
|
201
|
-
companyNameLocalized?: Record<string, string>;
|
|
202
|
-
subCompanyMessage?: string;
|
|
203
|
-
subCompanyMessageLocalized?: Record<string, string>;
|
|
204
|
-
loaderInformationTexts?: {
|
|
205
|
-
vocal: {
|
|
206
|
-
top?: string;
|
|
207
|
-
bottom?: string;
|
|
208
|
-
};
|
|
209
|
-
text: {
|
|
210
|
-
top?: string;
|
|
211
|
-
bottom?: string;
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
loaderInformationTextsLocalized?: {
|
|
215
|
-
vocal: {
|
|
216
|
-
top?: Record<string, string>;
|
|
217
|
-
bottom?: Record<string, string>;
|
|
218
|
-
};
|
|
219
|
-
text: {
|
|
220
|
-
top?: Record<string, string>;
|
|
221
|
-
bottom?: Record<string, string>;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
hideRetorikLogo?: boolean;
|
|
225
|
-
hideMenu?: boolean;
|
|
226
|
-
hideControls?: boolean;
|
|
227
|
-
doNotDetectDeviceFromUserAgent?: boolean;
|
|
228
|
-
enableConversationCookie?: boolean;
|
|
229
|
-
conversationCookieMaxAge?: number;
|
|
230
|
-
enableTelemetry?: boolean;
|
|
231
|
-
allowSwitchLayout?: boolean;
|
|
232
|
-
forceMobileView?: boolean;
|
|
233
|
-
enableSpeechCaching?: boolean;
|
|
234
|
-
speechRecognitionOptions?: SpeechRecognitionOptions;
|
|
235
|
-
speechSynthesisOptions?: SpeechSynthesisOptions;
|
|
236
|
-
enableDocumentPrinting?: boolean;
|
|
237
|
-
disableSpeechMode?: boolean;
|
|
238
|
-
disableTextMode?: boolean;
|
|
239
|
-
disableSound?: boolean;
|
|
240
|
-
disableHistory?: boolean;
|
|
241
|
-
disableSubtitles?: boolean;
|
|
242
|
-
timerForFilterSelectionListMode?: number;
|
|
243
|
-
useOldRemote?: boolean;
|
|
244
|
-
preventVirtualKeyboard?: boolean;
|
|
245
|
-
channelData?: Record<string, string | number | boolean | Array<string | number> | Record<string, any>>;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Configuration of the menus displayed in the dashboard
|
|
249
|
-
* @param baseMenu deprecated since v2.0.4. Use "menu" parameter instead.
|
|
250
|
-
* @param customMenu deprecated since v2.0.4. Use "menu" parameter instead.
|
|
251
|
-
* @param subMenu deprecated since v2.0.4. Use "menu" parameter instead.
|
|
252
|
-
* @param menu menus displayed in the bashboard.
|
|
253
|
-
*/
|
|
254
|
-
export interface RetorikMenusConfiguration {
|
|
255
|
-
baseMenu?: Array<BaseMenu | CustomMenu>;
|
|
256
|
-
customMenu?: Array<CustomMenu> | Array<Array<CustomMenu>>;
|
|
257
|
-
subMenu?: Array<BaseSubMenu | CustomMenu>;
|
|
258
|
-
menu?: {
|
|
259
|
-
categories?: Array<{
|
|
260
|
-
title?: string;
|
|
261
|
-
tiles: Array<MenuItem>;
|
|
262
|
-
}>;
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
interface VerticalPosition {
|
|
266
|
-
desktop?: number | string;
|
|
267
|
-
desktopTactile?: number | string;
|
|
268
|
-
verticalTactile?: number | string;
|
|
269
|
-
}
|
|
270
|
-
interface SpeechRecognitionOptions {
|
|
271
|
-
timerBeforeSpeechEnd?: number;
|
|
272
|
-
enableSendMessageOnMicrophoneClose?: boolean;
|
|
273
|
-
enableActivationSound?: boolean;
|
|
274
|
-
enableContinuousRecognitionOnAllDevices?: boolean;
|
|
275
|
-
enableContinuousRecognitionOn?: {
|
|
276
|
-
mobile?: boolean;
|
|
277
|
-
widget?: boolean;
|
|
278
|
-
desktop?: boolean;
|
|
279
|
-
borne?: boolean;
|
|
280
|
-
};
|
|
281
|
-
wakeWords?: {
|
|
282
|
-
common?: Array<string>;
|
|
283
|
-
localized?: {
|
|
284
|
-
[key: string]: Array<string>;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
grammars?: {
|
|
288
|
-
common?: Array<string>;
|
|
289
|
-
localized?: {
|
|
290
|
-
[key: string]: Array<string>;
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
inputHintBehaviour?: InputHintBehaviour;
|
|
294
|
-
}
|
|
295
|
-
interface SpeechSynthesisOptions {
|
|
296
|
-
sayAs?: {
|
|
297
|
-
common?: Array<SayAsItem>;
|
|
298
|
-
localized?: {
|
|
299
|
-
[key: string]: Array<SayAsItem>;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
interface SayAsItem {
|
|
304
|
-
text: string;
|
|
305
|
-
ipa: string;
|
|
306
|
-
}
|
|
307
|
-
export interface WidgetConfiguration {
|
|
308
|
-
position?: 'right' | 'left';
|
|
309
|
-
width?: number;
|
|
310
|
-
button?: WidgetButton;
|
|
311
|
-
large?: WidgetFrame;
|
|
312
|
-
thumbnail?: WidgetFrame;
|
|
313
|
-
}
|
|
314
|
-
interface WidgetButton {
|
|
315
|
-
display?: boolean;
|
|
316
|
-
text?: {
|
|
317
|
-
content?: string;
|
|
318
|
-
color?: string;
|
|
319
|
-
bold?: boolean;
|
|
320
|
-
maxWidth?: string | number;
|
|
321
|
-
};
|
|
322
|
-
image?: {
|
|
323
|
-
hide?: boolean;
|
|
324
|
-
url?: string;
|
|
325
|
-
position?: 'left' | 'right';
|
|
326
|
-
height?: string;
|
|
327
|
-
marginY?: boolean;
|
|
328
|
-
};
|
|
329
|
-
border?: {
|
|
330
|
-
color?: string;
|
|
331
|
-
thickness?: number;
|
|
332
|
-
rounded?: boolean;
|
|
333
|
-
};
|
|
334
|
-
background?: {
|
|
335
|
-
color?: string;
|
|
336
|
-
};
|
|
337
|
-
position?: Position;
|
|
338
|
-
}
|
|
339
|
-
interface WidgetFrame {
|
|
340
|
-
height?: string;
|
|
341
|
-
width?: string;
|
|
342
|
-
position?: Position;
|
|
343
|
-
border?: {
|
|
344
|
-
color?: string;
|
|
345
|
-
thickness?: number;
|
|
346
|
-
rounded?: boolean;
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
interface Position {
|
|
350
|
-
top?: string;
|
|
351
|
-
bottom?: string;
|
|
352
|
-
left?: string;
|
|
353
|
-
right?: string;
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* Chosen display mode for the background
|
|
357
|
-
* @param style 'image' | 'video' | 'webcam' | 'neutral' - choose the one you want to use. 'neutral' will give a transparent background
|
|
358
|
-
* @param image URL of the image file to be displayed if style = "image"
|
|
359
|
-
* @param video URL of the video file to be displayed if style = "video"
|
|
360
|
-
* @param webcam 'back' | 'front' | undefined | deviceId - sets the designated webcam to use
|
|
361
|
-
*/
|
|
362
|
-
export interface BackgroundOptions {
|
|
363
|
-
style: 'image' | 'video' | 'webcam' | 'neutral';
|
|
364
|
-
image?: string;
|
|
365
|
-
video?: string;
|
|
366
|
-
webcam?: string;
|
|
367
|
-
}
|
|
368
|
-
export interface View {
|
|
369
|
-
background: BackgroundOptions;
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* Configuration for the news view
|
|
373
|
-
* @param intervalInSeconds time in seconds between each news displayed
|
|
374
|
-
* @param loop should loop after the news are finished ?
|
|
375
|
-
* @param openingVideo URL of the opening video if there is one
|
|
376
|
-
* @param endingVideo URL of the ending video if there is one
|
|
377
|
-
* @param showMenu show the menu button to close the news view ?
|
|
378
|
-
* @param bannerTitle custom title for the banner
|
|
379
|
-
* @param bannerTitleLocalized custom localized title for the banner
|
|
380
|
-
* @param bannerPosition grid's rows at which the banner should begin / end
|
|
381
|
-
* @param mediaPosition grid's rows at which the media carousel should begin / end
|
|
382
|
-
* @param removeTitleFromTextToSpeak prevent "title" part of the news from being integrated in the vocal synthesis
|
|
383
|
-
* @param removeSubtitleFromTextToSpeak prevent "subtitle" part of the news from being integrated in the vocal synthesis
|
|
384
|
-
*/
|
|
385
|
-
export interface NewsConfig extends View {
|
|
386
|
-
intervalInSeconds?: number;
|
|
387
|
-
loop?: boolean;
|
|
388
|
-
openingVideo?: string;
|
|
389
|
-
endingVideo?: string;
|
|
390
|
-
showMenu?: boolean;
|
|
391
|
-
bannerTitle?: string;
|
|
392
|
-
bannerTitleLocalized?: Record<string, string>;
|
|
393
|
-
bannerPosition?: ContainerPositionPerDevice;
|
|
394
|
-
mediaPosition?: ContainerPositionPerDevice;
|
|
395
|
-
removeTitleFromTextToSpeak?: boolean;
|
|
396
|
-
removeSubtitleFromTextToSpeak?: boolean;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Views configuration. Default view is "home" and you can add "news" if you use the news channel
|
|
400
|
-
*/
|
|
401
|
-
interface Views {
|
|
402
|
-
home: View;
|
|
403
|
-
news?: NewsConfig;
|
|
404
|
-
}
|
|
405
|
-
export interface ViewsConfiguration {
|
|
406
|
-
homeRoute: string;
|
|
407
|
-
webcamRotation?: 0 | 90 | -90 | 180;
|
|
408
|
-
views: Views;
|
|
409
|
-
}
|
|
410
|
-
export interface ChatbotData extends ContainerPosition {
|
|
411
|
-
size?: number | string;
|
|
412
|
-
height?: number | string;
|
|
413
|
-
fullWidthInDesktopMode?: boolean;
|
|
414
|
-
cameraPreset?: keyof typeof _presets1;
|
|
415
|
-
calibration?: {
|
|
416
|
-
static?: {
|
|
417
|
-
enabled: boolean;
|
|
418
|
-
loadStaticTargetFromLocalStorage?: boolean;
|
|
419
|
-
staticTarget?: {
|
|
420
|
-
x: number;
|
|
421
|
-
y: number;
|
|
422
|
-
z: number;
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
dynamic?: {
|
|
426
|
-
enabled: boolean;
|
|
427
|
-
loadDynamicDataFromLocalStorage?: boolean;
|
|
428
|
-
dynamicData?: {
|
|
429
|
-
webcamHeight: number;
|
|
430
|
-
ratioPixelToCentimeter: number;
|
|
431
|
-
deltaAgentHeightAgentWorldHeightInCentimeters: number;
|
|
432
|
-
cameraRotationInDegrees: number;
|
|
433
|
-
distanceFromAgentToCameraInCentimeters: number;
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
};
|
|
437
|
-
}
|
|
438
|
-
export type BaseAgentData = string | {
|
|
439
|
-
url?: string;
|
|
440
|
-
animationsUrl?: string;
|
|
441
|
-
name?: string;
|
|
442
|
-
portrait?: string;
|
|
443
|
-
};
|
|
444
|
-
export type AgentData = null | {
|
|
445
|
-
url: string;
|
|
446
|
-
animationsUrl?: string;
|
|
447
|
-
portrait: string;
|
|
448
|
-
gender: 'male' | 'female' | 'other';
|
|
449
|
-
data: {
|
|
450
|
-
idle: number;
|
|
451
|
-
explain: number;
|
|
452
|
-
still: number;
|
|
453
|
-
[option: string]: number;
|
|
454
|
-
};
|
|
455
|
-
name?: string;
|
|
456
|
-
source?: Source3DEngine;
|
|
457
|
-
useBodyEngineThree: boolean;
|
|
458
|
-
};
|
|
459
|
-
export interface PonyfillFactoryCredentials {
|
|
460
|
-
region?: string;
|
|
461
|
-
subscriptionKey?: string;
|
|
462
|
-
authorizationToken?: string;
|
|
463
|
-
speechRecognitionHostnamesRecord?: Record<string, string>;
|
|
464
|
-
speechRecognitionHostname?: string;
|
|
465
|
-
speechSynthesisHostname?: string;
|
|
466
|
-
}
|
|
467
|
-
export interface AddressData {
|
|
468
|
-
baseURI?: string;
|
|
469
|
-
tenant?: string;
|
|
470
|
-
prefix?: string;
|
|
471
|
-
licenceKey?: string;
|
|
472
|
-
directline?: {
|
|
473
|
-
tokenEndpoint: string;
|
|
474
|
-
address: string;
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
export interface UserData {
|
|
478
|
-
name: string;
|
|
479
|
-
id: string;
|
|
480
|
-
username: string;
|
|
481
|
-
nom: string;
|
|
482
|
-
prenom: string;
|
|
483
|
-
email: string;
|
|
484
|
-
token: string;
|
|
485
|
-
referrer: string;
|
|
486
|
-
ipaddress: string;
|
|
487
|
-
}
|
|
488
|
-
export interface CustomVoice {
|
|
489
|
-
voice?: string;
|
|
490
|
-
gender?: 'male' | 'female' | 'other';
|
|
491
|
-
}
|
|
492
|
-
export interface AvailableLanguages {
|
|
493
|
-
default: string;
|
|
494
|
-
all: Array<string>;
|
|
495
|
-
}
|
|
496
|
-
interface BaseMenu {
|
|
497
|
-
view: AvailableViews;
|
|
498
|
-
indice: number;
|
|
499
|
-
}
|
|
500
|
-
interface BaseSubMenu {
|
|
501
|
-
view: AvailableSubViews;
|
|
502
|
-
indice: number;
|
|
503
|
-
}
|
|
504
|
-
export interface CustomMenu {
|
|
505
|
-
icon: JSX.Element;
|
|
506
|
-
clickHandler?: () => void;
|
|
507
|
-
label: Record<string, string> | string;
|
|
508
|
-
customDisplay?: string;
|
|
509
|
-
indice: number;
|
|
510
|
-
closeParametersOnClickInMobileMode?: boolean;
|
|
511
|
-
name?: string;
|
|
512
|
-
}
|
|
513
|
-
interface MenuItem {
|
|
514
|
-
index: number;
|
|
515
|
-
text: string;
|
|
516
|
-
textColor?: string;
|
|
517
|
-
backgroundColor?: string;
|
|
518
|
-
image?: {
|
|
519
|
-
url: string;
|
|
520
|
-
color?: string;
|
|
521
|
-
};
|
|
522
|
-
action: {
|
|
523
|
-
type: string;
|
|
524
|
-
value?: Record<string, any>;
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
export interface GDPR {
|
|
528
|
-
userConsent?: boolean;
|
|
529
|
-
title?: Record<string, string>;
|
|
530
|
-
message?: Record<string, string>;
|
|
531
|
-
link?: Record<string, string>;
|
|
532
|
-
linkURL?: string;
|
|
533
|
-
buttonAccept?: Record<string, string>;
|
|
534
|
-
buttonRefuse?: Record<string, string>;
|
|
535
|
-
messageAccepted?: Record<string, string>;
|
|
536
|
-
messageRefused?: Record<string, string>;
|
|
537
|
-
}
|
|
538
|
-
type EnvironmentPreset = 'apartment' | 'city' | 'dawn' | 'forest' | 'lobby' | 'night' | 'park' | 'studio' | 'sunset' | 'warehouse';
|
|
539
|
-
export interface VeilleConfiguration {
|
|
540
|
-
enabled?: boolean;
|
|
541
|
-
killConversationOnLaunch?: boolean;
|
|
542
|
-
delayBeforeLaunchInSeconds?: number;
|
|
543
|
-
views?: {
|
|
544
|
-
news?: {
|
|
545
|
-
enabled: boolean;
|
|
546
|
-
muted?: boolean;
|
|
547
|
-
};
|
|
548
|
-
screenSaver?: {
|
|
549
|
-
enabled: boolean;
|
|
550
|
-
url: string;
|
|
551
|
-
timerBeforeSwitchInSeconds?: number;
|
|
552
|
-
};
|
|
553
|
-
slideShow?: {
|
|
554
|
-
enabled: boolean;
|
|
555
|
-
urls: Array<string>;
|
|
556
|
-
timerBeforeSwitchInSeconds?: number;
|
|
557
|
-
};
|
|
558
|
-
};
|
|
559
|
-
autoExitFromWebcam?: boolean;
|
|
560
|
-
}
|
|
561
|
-
export interface MapConfiguration {
|
|
562
|
-
mapCenter?: LatLngExpression;
|
|
563
|
-
limitAroundCenter?: number;
|
|
564
|
-
settings?: MapSettings;
|
|
565
|
-
}
|
|
566
|
-
interface CommonColors {
|
|
567
|
-
primary: string;
|
|
568
|
-
secondary: string;
|
|
569
|
-
black: string;
|
|
570
|
-
whereToEatColor: string;
|
|
571
|
-
whereToSleepColor: string;
|
|
572
|
-
tobeSeenColor: string;
|
|
573
|
-
tobeDoneColor: string;
|
|
574
|
-
localProductsColor: string;
|
|
575
|
-
servicesColor: string;
|
|
576
|
-
agendaColor: string;
|
|
577
|
-
occupantColor: string;
|
|
578
|
-
}
|
|
579
|
-
interface LoaderColors {
|
|
580
|
-
animation: string;
|
|
581
|
-
background: string;
|
|
582
|
-
text: string;
|
|
583
|
-
toggle: {
|
|
584
|
-
text: string;
|
|
585
|
-
background: string;
|
|
586
|
-
};
|
|
587
|
-
button: ThemeButton;
|
|
588
|
-
}
|
|
589
|
-
interface ThemeButton {
|
|
590
|
-
background: {
|
|
591
|
-
default: string;
|
|
592
|
-
hover: string;
|
|
593
|
-
};
|
|
594
|
-
border: {
|
|
595
|
-
default: string;
|
|
596
|
-
hover: string;
|
|
597
|
-
};
|
|
598
|
-
text: {
|
|
599
|
-
default: string;
|
|
600
|
-
hover: string;
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
interface ThemeButtonConditional {
|
|
604
|
-
background?: {
|
|
605
|
-
default?: string;
|
|
606
|
-
hover?: string;
|
|
607
|
-
};
|
|
608
|
-
border?: {
|
|
609
|
-
default?: string;
|
|
610
|
-
hover?: string;
|
|
611
|
-
};
|
|
612
|
-
text?: {
|
|
613
|
-
default?: string;
|
|
614
|
-
hover?: string;
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
interface Theme {
|
|
618
|
-
companyName: string;
|
|
619
|
-
loader: LoaderColors;
|
|
620
|
-
card: {
|
|
621
|
-
frame: {
|
|
622
|
-
background: string;
|
|
623
|
-
border: string;
|
|
624
|
-
text: string;
|
|
625
|
-
};
|
|
626
|
-
button: ThemeButton;
|
|
627
|
-
discoverButton: ThemeButton;
|
|
628
|
-
};
|
|
629
|
-
textMode: {
|
|
630
|
-
panel: {
|
|
631
|
-
background: string;
|
|
632
|
-
border: string;
|
|
633
|
-
conversationUser: string;
|
|
634
|
-
conversationBot: string;
|
|
635
|
-
backgroundUser: string;
|
|
636
|
-
backgroundBot: string;
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
vocalMode: {
|
|
640
|
-
subtitles: {
|
|
641
|
-
text: string;
|
|
642
|
-
background: string;
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
formInput: {
|
|
646
|
-
text: {
|
|
647
|
-
default: string;
|
|
648
|
-
hover: string;
|
|
649
|
-
};
|
|
650
|
-
inputRadioCheckbox: {
|
|
651
|
-
unchecked: {
|
|
652
|
-
background: string;
|
|
653
|
-
border: string;
|
|
654
|
-
};
|
|
655
|
-
checked: {
|
|
656
|
-
background: string;
|
|
657
|
-
border: string;
|
|
658
|
-
item: string;
|
|
659
|
-
};
|
|
660
|
-
};
|
|
661
|
-
inputButton: ThemeButton;
|
|
662
|
-
likert: {
|
|
663
|
-
default: string;
|
|
664
|
-
hover: string;
|
|
665
|
-
};
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
interface ThemeColors extends CommonColors, Theme {
|
|
669
|
-
}
|
|
670
|
-
export interface RetorikThemeColors {
|
|
671
|
-
theme?: string;
|
|
672
|
-
primary?: string;
|
|
673
|
-
secondary?: string;
|
|
674
|
-
black?: string;
|
|
675
|
-
whereToEatColor?: string;
|
|
676
|
-
whereToSleepColor?: string;
|
|
677
|
-
tobeSeenColor?: string;
|
|
678
|
-
tobeDoneColor?: string;
|
|
679
|
-
localProductsColor?: string;
|
|
680
|
-
servicesColor?: string;
|
|
681
|
-
agendaColor?: string;
|
|
682
|
-
occupantColor?: string;
|
|
683
|
-
companyName?: string;
|
|
684
|
-
loader?: {
|
|
685
|
-
animation?: string;
|
|
686
|
-
background?: string;
|
|
687
|
-
text?: string;
|
|
688
|
-
toggle?: {
|
|
689
|
-
text: string;
|
|
690
|
-
background: string;
|
|
691
|
-
};
|
|
692
|
-
button?: ThemeButtonConditional;
|
|
693
|
-
};
|
|
694
|
-
card?: {
|
|
695
|
-
frame?: {
|
|
696
|
-
background?: string;
|
|
697
|
-
border?: string;
|
|
698
|
-
text?: string;
|
|
699
|
-
};
|
|
700
|
-
button?: ThemeButtonConditional;
|
|
701
|
-
discoverButton?: ThemeButton;
|
|
702
|
-
};
|
|
703
|
-
textMode?: {
|
|
704
|
-
panel?: {
|
|
705
|
-
background?: string;
|
|
706
|
-
border?: string;
|
|
707
|
-
conversationUser?: string;
|
|
708
|
-
conversationBot?: string;
|
|
709
|
-
backgroundUser?: string;
|
|
710
|
-
backgroundBot?: string;
|
|
711
|
-
};
|
|
712
|
-
};
|
|
713
|
-
vocalMode?: {
|
|
714
|
-
subtitles?: {
|
|
715
|
-
text?: string;
|
|
716
|
-
background?: string;
|
|
717
|
-
};
|
|
718
|
-
};
|
|
719
|
-
formInput?: {
|
|
720
|
-
text?: {
|
|
721
|
-
default?: string;
|
|
722
|
-
hover?: string;
|
|
723
|
-
};
|
|
724
|
-
inputRadioCheckbox?: {
|
|
725
|
-
unchecked?: {
|
|
726
|
-
background?: string;
|
|
727
|
-
border?: string;
|
|
728
|
-
};
|
|
729
|
-
checked?: {
|
|
730
|
-
background?: string;
|
|
731
|
-
border?: string;
|
|
732
|
-
item?: string;
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
inputButton?: ThemeButtonConditional;
|
|
736
|
-
likert?: {
|
|
737
|
-
default?: string;
|
|
738
|
-
hover?: string;
|
|
739
|
-
};
|
|
740
|
-
};
|
|
741
|
-
}
|
|
1
|
+
import { Configuration, ViewsConfiguration, ChatbotData, PonyfillFactoryCredentials, BaseAgentData, AddressData, UserData, CustomVoice, RetorikMenusConfiguration, WidgetConfiguration, GDPR, EnvironmentPreset, VeilleConfiguration, MapConfiguration } from "../store/models/types";
|
|
2
|
+
import { RetorikThemeColors } from "../store/models/colorTypes";
|
|
3
|
+
import { Mode, RetorikEvent } from "../../store";
|
|
4
|
+
import { CustomMenu, Configuration as _Configuration1 } from "../../store/models/types";
|
|
5
|
+
import { DetailedAttachmentAction, RetorikActivity } from "../../store/models/activityTypes";
|
|
6
|
+
import { TranslationFile } from "../../store/models/translationTypes";
|
|
7
|
+
import { ThemeColors } from "../../store/models/colorTypes";
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { presets } from "@davi-ai/react-bodyengine-three";
|
|
10
|
+
import { RetorikThemeColors as _RetorikThemeColors1, ThemeColors as _ThemeColors1 } from "react/src/store/models/colorTypes";
|
|
742
11
|
export interface RetorikMainComponentConfiguration extends RetorikSharedProps {
|
|
743
12
|
config?: Configuration;
|
|
744
13
|
viewsConfig?: ViewsConfiguration;
|
|
@@ -760,6 +29,7 @@ export interface RetorikMainComponentConfiguration extends RetorikSharedProps {
|
|
|
760
29
|
}
|
|
761
30
|
export interface RetorikMainComponentProps extends RetorikMainComponentConfiguration {
|
|
762
31
|
menuConfig?: RetorikMenusConfiguration;
|
|
32
|
+
renderCallback?: () => void;
|
|
763
33
|
}
|
|
764
34
|
interface RetorikWidgetProps {
|
|
765
35
|
widgetConfig?: WidgetConfiguration;
|
|
@@ -773,7 +43,7 @@ export interface RetorikSharedProps {
|
|
|
773
43
|
externalEventHandler?: (action: any, dispatch?: any) => boolean;
|
|
774
44
|
externalComponents?: Array<{
|
|
775
45
|
name: string;
|
|
776
|
-
component: JSX.Element;
|
|
46
|
+
component: React.JSX.Element;
|
|
777
47
|
}>;
|
|
778
48
|
userData?: UserData;
|
|
779
49
|
width?: number | string | 'full';
|
|
@@ -792,7 +62,7 @@ export const setCurrentSubView: (value: number, instanceId?: string) => void;
|
|
|
792
62
|
*/
|
|
793
63
|
export const sendActivity: (value: RetorikActivity | undefined, instanceId?: string) => void;
|
|
794
64
|
export const addDetailedAttachmentTrigger: (value: DetailedAttachmentAction, instanceId?: string) => void;
|
|
795
|
-
export const setModalFullscreenContent: (value: JSX.Element | null, instanceId?: string) => void;
|
|
65
|
+
export const setModalFullscreenContent: (value: React.JSX.Element | null, instanceId?: string) => void;
|
|
796
66
|
export const setDashboardOpened: (value: boolean, instanceId?: string) => void;
|
|
797
67
|
export const setLocale: (value: string, instanceId?: string) => void;
|
|
798
68
|
export const setVisibility: (value: string, instanceId?: string) => void;
|
|
@@ -812,184 +82,6 @@ export const resumeConversation: (instanceId?: string) => void;
|
|
|
812
82
|
export const sendMessageToChatbot: (value: string, instanceId?: string) => void;
|
|
813
83
|
export default fetchAvailableLanguages;
|
|
814
84
|
export default getRetorikConfigs;
|
|
815
|
-
interface TranslationViews {
|
|
816
|
-
'1': string;
|
|
817
|
-
'2': string;
|
|
818
|
-
'3': string;
|
|
819
|
-
'4': string;
|
|
820
|
-
'1000': string;
|
|
821
|
-
'1001': string;
|
|
822
|
-
}
|
|
823
|
-
interface TranslationCommon {
|
|
824
|
-
abort: string;
|
|
825
|
-
all: string;
|
|
826
|
-
back: string;
|
|
827
|
-
close: string;
|
|
828
|
-
continue: string;
|
|
829
|
-
download: string;
|
|
830
|
-
downloadsheet: string;
|
|
831
|
-
downloadsheetmobile: string;
|
|
832
|
-
filter: string;
|
|
833
|
-
history: string;
|
|
834
|
-
knowmore: string;
|
|
835
|
-
lang: string;
|
|
836
|
-
menu: string;
|
|
837
|
-
mode: string;
|
|
838
|
-
needhelp: string;
|
|
839
|
-
parameters: string;
|
|
840
|
-
print: string;
|
|
841
|
-
printsheet: string;
|
|
842
|
-
result: string;
|
|
843
|
-
results: string;
|
|
844
|
-
singleLang: string;
|
|
845
|
-
sound: string;
|
|
846
|
-
submit: string;
|
|
847
|
-
subtitle: string;
|
|
848
|
-
tutorial: string;
|
|
849
|
-
validate: string;
|
|
850
|
-
}
|
|
851
|
-
interface TranslationEmergency {
|
|
852
|
-
samu: string;
|
|
853
|
-
police: string;
|
|
854
|
-
firefighter: string;
|
|
855
|
-
general: string;
|
|
856
|
-
citypolice: string;
|
|
857
|
-
hospital: string;
|
|
858
|
-
homeless: string;
|
|
859
|
-
poison: string;
|
|
860
|
-
emergency: string;
|
|
861
|
-
}
|
|
862
|
-
interface TranslationError {
|
|
863
|
-
title: string;
|
|
864
|
-
button: string;
|
|
865
|
-
}
|
|
866
|
-
interface TranslationHistory {
|
|
867
|
-
title: string;
|
|
868
|
-
}
|
|
869
|
-
interface TranslationInputs {
|
|
870
|
-
choose: string;
|
|
871
|
-
noaction: string;
|
|
872
|
-
}
|
|
873
|
-
interface TranslationLanguage {
|
|
874
|
-
change: string;
|
|
875
|
-
select: string;
|
|
876
|
-
}
|
|
877
|
-
interface TranslationLink {
|
|
878
|
-
buttontext: string;
|
|
879
|
-
goto: string;
|
|
880
|
-
click: string;
|
|
881
|
-
scanQR: string;
|
|
882
|
-
scanQRTile: string;
|
|
883
|
-
}
|
|
884
|
-
interface TranslationLoader {
|
|
885
|
-
loader: {
|
|
886
|
-
optimal: string;
|
|
887
|
-
classic: string;
|
|
888
|
-
vocal: string;
|
|
889
|
-
text: string;
|
|
890
|
-
};
|
|
891
|
-
modes: {
|
|
892
|
-
vocal: string;
|
|
893
|
-
text: string;
|
|
894
|
-
};
|
|
895
|
-
loaderValidation: string;
|
|
896
|
-
locale: string;
|
|
897
|
-
supported: string;
|
|
898
|
-
store: string;
|
|
899
|
-
directline: string;
|
|
900
|
-
ponyfill: string;
|
|
901
|
-
addressdata: string;
|
|
902
|
-
}
|
|
903
|
-
interface TranslationMenu {
|
|
904
|
-
message: string;
|
|
905
|
-
backconversation: string;
|
|
906
|
-
answer: string;
|
|
907
|
-
}
|
|
908
|
-
interface TranslationMobileLandscapePreventer {
|
|
909
|
-
firstline: string;
|
|
910
|
-
secondline: string;
|
|
911
|
-
}
|
|
912
|
-
interface TranslationNews {
|
|
913
|
-
warningtext: string;
|
|
914
|
-
live: string;
|
|
915
|
-
continuous: string;
|
|
916
|
-
}
|
|
917
|
-
interface TranslationPoi {
|
|
918
|
-
comment: string;
|
|
919
|
-
route: string;
|
|
920
|
-
nodata: string;
|
|
921
|
-
openinghours: string;
|
|
922
|
-
prices: string;
|
|
923
|
-
paymentmethods: string;
|
|
924
|
-
numberofplaces: string;
|
|
925
|
-
openroutemobile: string;
|
|
926
|
-
FoodEstablishment: string;
|
|
927
|
-
LodgingBusiness: string;
|
|
928
|
-
TouristDestination: string;
|
|
929
|
-
TouristAttraction: string;
|
|
930
|
-
Product: string;
|
|
931
|
-
Service: string;
|
|
932
|
-
Event: string;
|
|
933
|
-
City: string;
|
|
934
|
-
Wine: string;
|
|
935
|
-
}
|
|
936
|
-
interface TranslationSuggestion {
|
|
937
|
-
consult: string;
|
|
938
|
-
thetutorial: string;
|
|
939
|
-
}
|
|
940
|
-
interface TranslationTemplate {
|
|
941
|
-
reset: string;
|
|
942
|
-
showresults: string;
|
|
943
|
-
suggestiontitle: string;
|
|
944
|
-
reminder: string;
|
|
945
|
-
}
|
|
946
|
-
interface TranslationGDPR {
|
|
947
|
-
title: string;
|
|
948
|
-
message: string;
|
|
949
|
-
link: string;
|
|
950
|
-
buttonAccept: string;
|
|
951
|
-
buttonRefuse: string;
|
|
952
|
-
messageAccepted: string;
|
|
953
|
-
messageRefused: string;
|
|
954
|
-
}
|
|
955
|
-
interface TranslationAnghello {
|
|
956
|
-
listening: string;
|
|
957
|
-
correct: string;
|
|
958
|
-
dontknow: string;
|
|
959
|
-
}
|
|
960
|
-
interface TranslationMicrophone {
|
|
961
|
-
allow: string;
|
|
962
|
-
rejected: string;
|
|
963
|
-
instructions: string;
|
|
964
|
-
listening: string;
|
|
965
|
-
trigger: string;
|
|
966
|
-
triggerwithoutname: string;
|
|
967
|
-
}
|
|
968
|
-
interface TranslationPosition {
|
|
969
|
-
rejected: string;
|
|
970
|
-
instructions: string;
|
|
971
|
-
}
|
|
972
|
-
interface TranslationFile extends TranslationViews {
|
|
973
|
-
common: TranslationCommon;
|
|
974
|
-
emergency: TranslationEmergency;
|
|
975
|
-
error: TranslationError;
|
|
976
|
-
history: TranslationHistory;
|
|
977
|
-
inputs: TranslationInputs;
|
|
978
|
-
language: TranslationLanguage;
|
|
979
|
-
link: TranslationLink;
|
|
980
|
-
loader: TranslationLoader;
|
|
981
|
-
menu: TranslationMenu;
|
|
982
|
-
mobileLandscapePreventer: TranslationMobileLandscapePreventer;
|
|
983
|
-
news: TranslationNews;
|
|
984
|
-
poi: TranslationPoi;
|
|
985
|
-
suggestion: TranslationSuggestion;
|
|
986
|
-
template: TranslationTemplate;
|
|
987
|
-
GDPR: TranslationGDPR;
|
|
988
|
-
anghello: TranslationAnghello;
|
|
989
|
-
microphone: TranslationMicrophone;
|
|
990
|
-
position: TranslationPosition;
|
|
991
|
-
}
|
|
992
|
-
export default getThemeColors;
|
|
993
85
|
export const useCurrentSubView: (instanceId?: string) => number;
|
|
994
86
|
export const useKioskParameterOpening: (instanceId?: string) => number;
|
|
995
87
|
export const useRetorikEvent: (instanceId?: string) => RetorikEvent | undefined;
|
|
@@ -1002,11 +94,8 @@ export const useThemeColors: (instanceId?: string) => ThemeColors;
|
|
|
1002
94
|
export const useMode: (instanceId?: string) => Mode;
|
|
1003
95
|
export const useMuted: (instanceId?: string) => boolean;
|
|
1004
96
|
export const useLoaderClosed: (instanceId?: string) => boolean;
|
|
1005
|
-
export const useConfiguration: (instanceId?: string) =>
|
|
97
|
+
export const useConfiguration: (instanceId?: string) => _Configuration1;
|
|
1006
98
|
export const useIsUsedOnBorne: (instanceId?: string) => boolean;
|
|
1007
|
-
export const CONTENT_TYPE_ADAPTIVE_CARD = "application/vnd.microsoft.card.adaptive";
|
|
1008
|
-
export const CONTENT_TYPE_NEWS = "application/vnd.davi.retorik.card.news";
|
|
1009
|
-
export const CONTENT_TYPE_POI = "application/vnd.davi.retorik.card.poi";
|
|
1010
99
|
interface AddressStructured {
|
|
1011
100
|
addressLocality?: string;
|
|
1012
101
|
street?: string;
|
|
@@ -1063,16 +152,20 @@ interface Coordinates {
|
|
|
1063
152
|
latitude: number;
|
|
1064
153
|
longitude: number;
|
|
1065
154
|
}
|
|
1066
|
-
export const RetorikAgent: (props: RetorikMainComponentProps) => JSX.Element;
|
|
155
|
+
export const RetorikAgent: (props: RetorikMainComponentProps) => React.JSX.Element;
|
|
1067
156
|
export const RetorikWidget: (props: RetorikMainComponentProps & RetorikWidgetProps & {
|
|
1068
157
|
fromRetorikFrameworkComponent?: boolean;
|
|
1069
|
-
}) => JSX.Element;
|
|
1070
|
-
export const RetorikFramework: (props: RetorikMainComponentProps & RetorikWidgetProps) => JSX.Element;
|
|
1071
|
-
export const RetorikNews: (props: RetorikMainComponentProps) => JSX.Element;
|
|
158
|
+
}) => React.JSX.Element;
|
|
159
|
+
export const RetorikFramework: (props: RetorikMainComponentProps & RetorikWidgetProps) => React.JSX.Element;
|
|
160
|
+
export const RetorikNews: (props: RetorikMainComponentProps) => React.JSX.Element;
|
|
161
|
+
export const getThemeColors: (colors?: _RetorikThemeColors1 | undefined) => _ThemeColors1;
|
|
1072
162
|
export const resetStores: () => void;
|
|
1073
163
|
export const renderAgent: (props: any, element: HTMLElement) => void;
|
|
1074
164
|
export const setPrintingCallback: (value: ((url: string) => void) | null) => void;
|
|
1075
165
|
export default RetorikAgent;
|
|
166
|
+
export type { AddressData, AgentData, AvailableLanguages, BackgroundOptions, BaseAgentData, ChatbotData, Configuration, CustomMenu, CustomVoice, GDPR, MapConfiguration, NewsConfig, PonyfillFactoryCredentials, RetorikMenusConfiguration, UserData, VeilleConfiguration, View, ViewsConfiguration, WidgetConfiguration } from './store/models/types';
|
|
167
|
+
export type { RetorikThemeColors } from './store/models/colorTypes';
|
|
1076
168
|
export { presets };
|
|
169
|
+
export { AvailableViews, AvailableSubViews, RetorikEvent, CurrentSubView, DeviceType, Emotions, InputHintBehaviour } from './store';
|
|
1077
170
|
|
|
1078
171
|
//# sourceMappingURL=index.d.ts.map
|