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