@davi-ai/retorik-framework 2.1.0 → 3.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/dist/index.d.ts CHANGED
@@ -1,22 +1,20 @@
1
1
  import { presets as _presets1, presets } from "@davi-ai/react-bodyengine-three";
2
- import { StoreApi, UseBoundStore } from "zustand";
3
- import { SpeechSynthesisEventProps } from "@davi-ai/web-speech-cognitive-services-davi";
4
- import { TierResult } from "detect-gpu";
2
+ /**
3
+ * @deprecated AvailableViews is deprecated without replacement since version 2.2.0 and the new menu system
4
+ */
5
5
  export enum AvailableViews {
6
6
  home = 1,
7
7
  news = 2,
8
8
  weather = 3,
9
9
  emergency = 4
10
10
  }
11
+ /**
12
+ * @deprecated AvailableSubViews is deprecated without replacement since version 2.2.0 and the new menu system
13
+ */
11
14
  export enum AvailableSubViews {
12
15
  history = 1000,
13
16
  tutorial = 1001
14
17
  }
15
- enum ContainerParent {
16
- agent = 1,
17
- widget = 2,
18
- news = 3
19
- }
20
18
  export enum CurrentSubView {
21
19
  none = 1,
22
20
  history = 2,
@@ -57,36 +55,17 @@ export enum InputHintBehaviour {
57
55
  never = "never",
58
56
  ignore = "ignore"
59
57
  }
60
- enum ListStatus {
61
- available = 1,
62
- opened = 2,
63
- closing = 3,
64
- closed = 4
65
- }
66
58
  enum Mode {
67
59
  vocal = 1,
68
60
  text = 2,
69
61
  dashboard = 3
70
62
  }
71
- enum PermissionStatus {
72
- waiting = 1,
73
- allowed = 2,
74
- refused = 3,
75
- error = 4
76
- }
77
63
  export enum RetorikEvent {
78
64
  DetailViewOpen = 1,
79
65
  DetailViewClose = 2,
80
66
  SpeechStarted = 3,
81
67
  SpeechEnded = 4
82
68
  }
83
- enum RecognitionState {
84
- Initializing = 1,
85
- Listening = 2,
86
- Closing = 3,
87
- ForceClosing = 4,
88
- Closed = 5
89
- }
90
69
  enum Source3DEngine {
91
70
  avatarsdk = "avatarsdk",
92
71
  avatarsdkbis = "avatar-sdk",
@@ -96,15 +75,6 @@ enum Source3DEngine {
96
75
  rpm = "rpm",
97
76
  readyplayerme = "readyplayerme"
98
77
  }
99
- enum UIPart {
100
- none = 1,
101
- agent = 2,
102
- background = 3,
103
- remote = 4,
104
- languages = 5,
105
- card = 6,
106
- qroverlay = 7
107
- }
108
78
  interface DirectLineAttachment {
109
79
  content?: any;
110
80
  contentType: string;
@@ -271,10 +241,23 @@ export interface Configuration extends RetorikMenusConfiguration {
271
241
  showTemporaryBanner?: boolean;
272
242
  preventVirtualKeyboard?: boolean;
273
243
  }
244
+ /**
245
+ * Configuration of the menus displayed in the dashboard
246
+ * @param {Array<BaseMenu | CustomMenu> | undefined} baseMenu deprecated since v2.0.4. Use "menu" parameter instead.
247
+ * @param {Array<CustomMenu> | Array<Array<CustomMenu>> | undefined} customMenu deprecated since v2.0.4. Use "menu" parameter instead.
248
+ * @param {Array<BaseSubMenu | CustomMenu> | undefined} subMenu deprecated since v2.0.4. Use "menu" parameter instead.
249
+ * @param {Array<{ title?: string, items: Array<MenuItem> }> | undefined} menu menus displayed in the bashboard.
250
+ */
274
251
  export interface RetorikMenusConfiguration {
275
252
  baseMenu?: Array<BaseMenu | CustomMenu>;
276
253
  customMenu?: Array<CustomMenu> | Array<Array<CustomMenu>>;
277
254
  subMenu?: Array<BaseSubMenu | CustomMenu>;
255
+ menu?: {
256
+ categories?: Array<{
257
+ title?: string;
258
+ tiles: Array<MenuItem>;
259
+ }>;
260
+ };
278
261
  }
279
262
  interface SpeechRecognitionOptions {
280
263
  timerBeforeSpeechEnd?: number;
@@ -470,6 +453,20 @@ export interface CustomMenu {
470
453
  closeParametersOnClickInMobileMode?: boolean;
471
454
  name?: string;
472
455
  }
456
+ interface MenuItem {
457
+ index: number;
458
+ text: string;
459
+ textColor?: string;
460
+ backgroundColor?: string;
461
+ image?: {
462
+ url: string;
463
+ color?: string;
464
+ };
465
+ action: {
466
+ type: string;
467
+ value?: Record<string, any>;
468
+ };
469
+ }
473
470
  export interface GDPR {
474
471
  userConsent?: boolean;
475
472
  title?: Record<string, string>;
@@ -481,261 +478,6 @@ export interface GDPR {
481
478
  messageAccepted?: Record<string, string>;
482
479
  messageRefused?: Record<string, string>;
483
480
  }
484
- interface ThemeButton {
485
- background: {
486
- default: string;
487
- hover: string;
488
- };
489
- border: {
490
- default: string;
491
- hover: string;
492
- };
493
- text: {
494
- default: string;
495
- hover: string;
496
- };
497
- }
498
- interface ThemeButtonConditional {
499
- background?: {
500
- default?: string;
501
- hover?: string;
502
- };
503
- border?: {
504
- default?: string;
505
- hover?: string;
506
- };
507
- text?: {
508
- default?: string;
509
- hover?: string;
510
- };
511
- }
512
- export interface RetorikThemeColors {
513
- theme?: string;
514
- primary?: string;
515
- secondary?: string;
516
- black?: string;
517
- whereToEatColor?: string;
518
- whereToSleepColor?: string;
519
- tobeSeenColor?: string;
520
- tobeDoneColor?: string;
521
- localProductsColor?: string;
522
- servicesColor?: string;
523
- agendaColor?: string;
524
- occupantColor?: string;
525
- companyName?: string;
526
- loader?: {
527
- animation?: string;
528
- background?: string;
529
- text?: string;
530
- toggle?: {
531
- text: string;
532
- background: string;
533
- };
534
- button?: ThemeButtonConditional;
535
- };
536
- card?: {
537
- frame?: {
538
- background?: string;
539
- border?: string;
540
- text?: string;
541
- };
542
- button?: ThemeButtonConditional;
543
- discoverButton?: ThemeButton;
544
- };
545
- textMode?: {
546
- panel?: {
547
- background?: string;
548
- border?: string;
549
- conversationUser?: string;
550
- conversationBot?: string;
551
- backgroundUser?: string;
552
- backgroundBot?: string;
553
- };
554
- };
555
- vocalMode?: {
556
- subtitles?: {
557
- text?: string;
558
- background?: string;
559
- };
560
- };
561
- formInput?: {
562
- text?: {
563
- default?: string;
564
- hover?: string;
565
- };
566
- inputRadioCheckbox?: {
567
- unchecked?: {
568
- background?: string;
569
- border?: string;
570
- };
571
- checked?: {
572
- background?: string;
573
- border?: string;
574
- item?: string;
575
- };
576
- };
577
- inputButton?: ThemeButtonConditional;
578
- likert?: {
579
- default?: string;
580
- hover?: string;
581
- };
582
- };
583
- }
584
- export interface RetorikMainComponentConfiguration extends RetorikSharedProps {
585
- config?: Configuration;
586
- viewsConfig?: ViewsConfiguration;
587
- chatbotData?: ChatbotData;
588
- agentData?: BaseAgentData;
589
- chatbotDataWidget?: ChatbotData;
590
- ponyfillFactoryCredentials?: PonyfillFactoryCredentials;
591
- customVoice?: CustomVoice;
592
- colors?: RetorikThemeColors;
593
- skipLoader?: boolean;
594
- defaultMode?: number;
595
- GDPR?: GDPR;
596
- }
597
- export interface RetorikMainComponentProps extends RetorikMainComponentConfiguration {
598
- menuConfig?: RetorikMenusConfiguration;
599
- }
600
- interface RetorikWidgetProps {
601
- widgetConfig: WidgetConfiguration;
602
- }
603
- export interface RetorikSharedProps {
604
- addressData: AddressData;
605
- externalEventHandler?: (action: any, dispatch?: any) => boolean;
606
- externalComponents?: Array<{
607
- name: string;
608
- component: JSX.Element;
609
- }>;
610
- userData?: UserData;
611
- width?: number | string | 'full';
612
- height?: number | string | 'full';
613
- }
614
- export const setVisibility: (value: 'visible' | 'hidden') => void;
615
- export const toggleVisibility: () => void;
616
- interface UtilsStore {
617
- fullScreenImage: string | undefined;
618
- lastListActivity: string | undefined;
619
- listStatus: ListStatus;
620
- currentSubView: number;
621
- currentCustomView: CustomMenu | undefined;
622
- retorikEvent: RetorikEvent | undefined;
623
- displayAgent: boolean;
624
- activityToSend: RetorikActivity | undefined;
625
- currentNewsActivity: RetorikActivity | undefined;
626
- retorikNewsEnded: boolean;
627
- userIsTyping: boolean;
628
- userIsSwiping: boolean;
629
- askedForKioskParametersOpening: boolean;
630
- detailedAttachmentTriggers: Array<DetailedAttachmentAction>;
631
- modalFullscreenContent: JSX.Element | null;
632
- modalFullscreenContentNoDisplayId: string | undefined;
633
- printingCallback: ((url: string) => void) | null;
634
- GDPRDisplay: boolean;
635
- GDPRWindowData: GDPR | undefined;
636
- GDPRUserConsent: boolean;
637
- unlockClickedButton: boolean;
638
- dashboardOpened: boolean;
639
- clickedOnUI: UIPart;
640
- closeDetailedPOI: boolean;
641
- closeList: number;
642
- }
643
- export const useUtilsStore: UseBoundStore<StoreApi<UtilsStore>>;
644
- export const setCurrentSubView: (subview: number) => void;
645
- export const setCurrentCustomView: (customView: CustomMenu) => void;
646
- export const showAgent: () => void;
647
- export const hideAgent: () => void;
648
- export const sendActivity: (activity: RetorikActivity | undefined) => void;
649
- export const addDetailedAttachmentTrigger: (value: DetailedAttachmentAction) => void;
650
- export const setModalFullscreenContent: (value: JSX.Element | null, fromActivity?: string) => void;
651
- export const setPrintingCallback: (value: ((url: string) => void) | null) => void;
652
- declare const unlockClickedButton: () => void;
653
- export const setDashboardOpened: (value: boolean) => void;
654
- interface Boundary {
655
- word: string;
656
- startTime: number;
657
- endTime: number;
658
- boundaryType: string;
659
- }
660
- interface SpeechStore {
661
- ponyfillCredentials: PonyfillFactoryCredentials | undefined;
662
- useContinuousRecognition: boolean;
663
- customVoice: CustomVoice | undefined;
664
- voice: SpeechSynthesisVoice | null;
665
- speaking: boolean;
666
- muted: boolean;
667
- cancel: boolean;
668
- boundaryData: Array<Boundary>;
669
- visemeData: Array<SpeechSynthesisEventProps>;
670
- singleVisemeAdded: SpeechSynthesisEventProps | null;
671
- multiVisemesAdded: Array<SpeechSynthesisEventProps>;
672
- currentReplyToId: string | undefined;
673
- currentPlaying: RetorikActivity | undefined;
674
- endedActivities: Array<string>;
675
- currentOrLastPlayedActivity: RetorikActivity | undefined;
676
- isMicrophoneAllowed: boolean;
677
- showMicrophoneModal: boolean;
678
- permissionStatus: PermissionStatus;
679
- activeRecognitionState: RecognitionState;
680
- lastRecognitionInterim: string;
681
- streamingReplyToId: string | null;
682
- streamingQueue: Array<RetorikActivity>;
683
- streamingQueueForText: Array<RetorikActivity>;
684
- currentStreaming: string | null;
685
- streamingQueueFullLength: number;
686
- streamingReplyToIdToIgnore: string | null;
687
- speechRecognitionDynamicGrammars: Array<string>;
688
- externalTextToSpeech: string | undefined;
689
- }
690
- export const useSpeechStore: UseBoundStore<StoreApi<SpeechStore>>;
691
- export const setMuted: (value: boolean) => void;
692
- export const toggleMicrophone: () => void;
693
- export const playExternalSynthesis: (value: string) => void;
694
- export const characters: {
695
- alice: string;
696
- greg: string;
697
- jeanmarc: string;
698
- jessica: string;
699
- jessica_short: string;
700
- ikaa: string;
701
- karine: string;
702
- lea: string;
703
- prosper: string;
704
- raphael: string;
705
- rowan: string;
706
- rowan_short: string;
707
- zahra: string;
708
- };
709
- interface RetorikStore {
710
- configuration: Configuration;
711
- addressData: AddressData;
712
- sendBoxRef: HTMLTextAreaElement | null;
713
- sendBoxPlaceHolder: string | undefined;
714
- canFocusSendBox: boolean;
715
- mode: Mode;
716
- fromTextToVocal: boolean;
717
- baseAddress: string;
718
- subtitlesInConfiguration: boolean;
719
- displaySubtitles: boolean;
720
- agentData: AgentData | undefined;
721
- gpuData: TierResult | undefined;
722
- loaderClosed: boolean;
723
- appAvailable: boolean;
724
- currentLayout: ContainerParent;
725
- userAlreadySet: boolean;
726
- disableSound: boolean;
727
- isWaitingForResponse: boolean;
728
- instantIsWaitingForResponse: boolean;
729
- skipLoader: boolean;
730
- displayAgentInNews: boolean;
731
- submitDelayBeforeSendingMessage: number | undefined;
732
- disableHistory: boolean;
733
- }
734
- export const useRetorikStore: UseBoundStore<StoreApi<RetorikStore>>;
735
- export const setMode: (value: Mode) => void;
736
- export const setLoaderClosed: (value: boolean) => void;
737
- export const setDisplaySubtitles: (value: boolean) => void;
738
- export const toggleSubtitles: () => void;
739
481
  interface TranslationViews {
740
482
  '1': string;
741
483
  '2': string;
@@ -908,22 +650,197 @@ interface TranslationFile extends TranslationViews {
908
650
  anghello: TranslationAnghello;
909
651
  microphone: TranslationMicrophone;
910
652
  }
911
- export function fetchAvailableLanguages(baseAddress: string, needVisemes?: boolean): Promise<AvailableLanguages>;
912
- export default getThemeColors;
913
- interface LocaleStore {
914
- locale: string;
915
- defaultLocale: string;
916
- supported: string[];
917
- dumpedLanguagesFallback: Record<string, string>;
918
- replacementLocales: Record<string, string>;
919
- defaultTranslations: TranslationFile;
920
- currentTranslations: TranslationFile;
921
- isRTL: boolean;
922
- }
923
- export const useLocaleStore: UseBoundStore<StoreApi<LocaleStore>>;
924
- export const getLocale: () => string;
925
- export const setLocale: (locale: string) => void;
926
- export default getRetorikConfigs;
653
+ interface CommonColors {
654
+ primary: string;
655
+ secondary: string;
656
+ black: string;
657
+ whereToEatColor: string;
658
+ whereToSleepColor: string;
659
+ tobeSeenColor: string;
660
+ tobeDoneColor: string;
661
+ localProductsColor: string;
662
+ servicesColor: string;
663
+ agendaColor: string;
664
+ occupantColor: string;
665
+ }
666
+ interface LoaderColors {
667
+ animation: string;
668
+ background: string;
669
+ text: string;
670
+ toggle: {
671
+ text: string;
672
+ background: string;
673
+ };
674
+ button: ThemeButton;
675
+ }
676
+ interface ThemeButton {
677
+ background: {
678
+ default: string;
679
+ hover: string;
680
+ };
681
+ border: {
682
+ default: string;
683
+ hover: string;
684
+ };
685
+ text: {
686
+ default: string;
687
+ hover: string;
688
+ };
689
+ }
690
+ interface ThemeButtonConditional {
691
+ background?: {
692
+ default?: string;
693
+ hover?: string;
694
+ };
695
+ border?: {
696
+ default?: string;
697
+ hover?: string;
698
+ };
699
+ text?: {
700
+ default?: string;
701
+ hover?: string;
702
+ };
703
+ }
704
+ interface Theme {
705
+ companyName: string;
706
+ loader: LoaderColors;
707
+ card: {
708
+ frame: {
709
+ background: string;
710
+ border: string;
711
+ text: string;
712
+ };
713
+ button: ThemeButton;
714
+ discoverButton: ThemeButton;
715
+ };
716
+ textMode: {
717
+ panel: {
718
+ background: string;
719
+ border: string;
720
+ conversationUser: string;
721
+ conversationBot: string;
722
+ backgroundUser: string;
723
+ backgroundBot: string;
724
+ };
725
+ };
726
+ vocalMode: {
727
+ subtitles: {
728
+ text: string;
729
+ background: string;
730
+ };
731
+ };
732
+ formInput: {
733
+ text: {
734
+ default: string;
735
+ hover: string;
736
+ };
737
+ inputRadioCheckbox: {
738
+ unchecked: {
739
+ background: string;
740
+ border: string;
741
+ };
742
+ checked: {
743
+ background: string;
744
+ border: string;
745
+ item: string;
746
+ };
747
+ };
748
+ inputButton: ThemeButton;
749
+ likert: {
750
+ default: string;
751
+ hover: string;
752
+ };
753
+ };
754
+ }
755
+ interface ThemeColors extends CommonColors, Theme {
756
+ }
757
+ export interface RetorikThemeColors {
758
+ theme?: string;
759
+ primary?: string;
760
+ secondary?: string;
761
+ black?: string;
762
+ whereToEatColor?: string;
763
+ whereToSleepColor?: string;
764
+ tobeSeenColor?: string;
765
+ tobeDoneColor?: string;
766
+ localProductsColor?: string;
767
+ servicesColor?: string;
768
+ agendaColor?: string;
769
+ occupantColor?: string;
770
+ companyName?: string;
771
+ loader?: {
772
+ animation?: string;
773
+ background?: string;
774
+ text?: string;
775
+ toggle?: {
776
+ text: string;
777
+ background: string;
778
+ };
779
+ button?: ThemeButtonConditional;
780
+ };
781
+ card?: {
782
+ frame?: {
783
+ background?: string;
784
+ border?: string;
785
+ text?: string;
786
+ };
787
+ button?: ThemeButtonConditional;
788
+ discoverButton?: ThemeButton;
789
+ };
790
+ textMode?: {
791
+ panel?: {
792
+ background?: string;
793
+ border?: string;
794
+ conversationUser?: string;
795
+ conversationBot?: string;
796
+ backgroundUser?: string;
797
+ backgroundBot?: string;
798
+ };
799
+ };
800
+ vocalMode?: {
801
+ subtitles?: {
802
+ text?: string;
803
+ background?: string;
804
+ };
805
+ };
806
+ formInput?: {
807
+ text?: {
808
+ default?: string;
809
+ hover?: string;
810
+ };
811
+ inputRadioCheckbox?: {
812
+ unchecked?: {
813
+ background?: string;
814
+ border?: string;
815
+ };
816
+ checked?: {
817
+ background?: string;
818
+ border?: string;
819
+ item?: string;
820
+ };
821
+ };
822
+ inputButton?: ThemeButtonConditional;
823
+ likert?: {
824
+ default?: string;
825
+ hover?: string;
826
+ };
827
+ };
828
+ }
829
+ export const characters: {
830
+ alice: string;
831
+ greg: string;
832
+ jeanmarc: string;
833
+ jessica: string;
834
+ jessica_short: string;
835
+ ikaa: string;
836
+ karine: string;
837
+ lea: string;
838
+ prosper: string;
839
+ raphael: string;
840
+ rowan: string;
841
+ rowan_short: string;
842
+ zahra: string;
843
+ };
927
844
  export const CONTENT_TYPE_ADAPTIVE_CARD = "application/vnd.microsoft.card.adaptive";
928
845
  export const CONTENT_TYPE_NEWS = "application/vnd.davi.retorik.card.news";
929
846
  export const CONTENT_TYPE_POI = "application/vnd.davi.retorik.card.poi";
@@ -983,15 +900,82 @@ interface Coordinates {
983
900
  latitude: number;
984
901
  longitude: number;
985
902
  }
986
- export const sendMessage: (text?: string, value?: Record<string, any>) => void;
987
- export const sendEvent: (name: string, value?: Record<string, any> | null) => void;
988
- export const pauseConversation: () => void;
989
- export const resumeConversation: () => void;
990
- export const sendMessageToChatbot: (value: string) => void;
991
- export const openWidget: () => void;
992
- export const closeWidget: () => void;
993
- export const toggleWidget: () => void;
994
- export const toggleDisplay: () => void;
903
+ export const openWidget: (instanceId?: string) => void;
904
+ export const closeWidget: (instanceId?: string) => void;
905
+ export const toggleWidget: (instanceId?: string) => void;
906
+ export const toggleDisplay: (instanceId?: string) => void;
907
+ export const showAgent: (instanceId?: string) => void;
908
+ export const hideAgent: (instanceId?: string) => void;
909
+ export const setCurrentCustomView: (value: CustomMenu, instanceId?: string) => void;
910
+ export const setCurrentSubView: (value: number, instanceId?: string) => void;
911
+ export const sendActivity: (value: RetorikActivity | undefined, instanceId?: string) => void;
912
+ export const addDetailedAttachmentTrigger: (value: DetailedAttachmentAction, instanceId?: string) => void;
913
+ export const setModalFullscreenContent: (value: JSX.Element | null, instanceId?: string) => void;
914
+ export const setPrintingCallback: (value: ((url: string) => void) | null, instanceId?: string) => void;
915
+ export const setDashboardOpened: (value: boolean, instanceId?: string) => void;
916
+ export const setLocale: (value: string, instanceId?: string) => void;
917
+ export const setVisibility: (value: string, instanceId?: string) => void;
918
+ export const toggleVisibility: (instanceId?: string) => void;
919
+ export const toggleMicrophone: (instanceId?: string) => void;
920
+ export const setMuted: (value: boolean, instanceId?: string) => void;
921
+ export const playExternalSynthesis: (value: string, instanceId?: string) => void;
922
+ export const setDisplaySubtitles: (value: boolean, instanceId?: string) => void;
923
+ export const toggleSubtitles: (instanceId?: string) => void;
924
+ export const setMode: (value: Mode, instanceId?: string) => void;
925
+ export const setLoaderClosed: (value: boolean, instanceId?: string) => void;
926
+ export const sendMessage: (text?: string, value?: Record<string, any>, instanceId?: string) => void;
927
+ export const sendEvent: (name: string, value?: Record<string, any> | null, instanceId?: string) => void;
928
+ export const pauseConversation: (instanceId?: string) => void;
929
+ export const resumeConversation: (instanceId?: string) => void;
930
+ export const sendMessageToChatbot: (value: string, instanceId?: string) => void;
931
+ export function fetchAvailableLanguages(baseAddress: string, needVisemes?: boolean): Promise<AvailableLanguages>;
932
+ export default getThemeColors;
933
+ export interface RetorikMainComponentConfiguration extends RetorikSharedProps {
934
+ config?: Configuration;
935
+ viewsConfig?: ViewsConfiguration;
936
+ chatbotData?: ChatbotData;
937
+ agentData?: BaseAgentData;
938
+ chatbotDataWidget?: ChatbotData;
939
+ ponyfillFactoryCredentials?: PonyfillFactoryCredentials;
940
+ customVoice?: CustomVoice;
941
+ colors?: RetorikThemeColors;
942
+ skipLoader?: boolean;
943
+ defaultMode?: number;
944
+ GDPR?: GDPR;
945
+ }
946
+ export interface RetorikMainComponentProps extends RetorikMainComponentConfiguration {
947
+ menuConfig?: RetorikMenusConfiguration;
948
+ }
949
+ interface RetorikWidgetProps {
950
+ widgetConfig: WidgetConfiguration;
951
+ }
952
+ export interface RetorikSharedProps {
953
+ instanceId?: string;
954
+ addressData: AddressData;
955
+ externalEventHandler?: (action: any, dispatch?: any) => boolean;
956
+ externalComponents?: Array<{
957
+ name: string;
958
+ component: JSX.Element;
959
+ }>;
960
+ userData?: UserData;
961
+ width?: number | string | 'full';
962
+ height?: number | string | 'full';
963
+ }
964
+ export default getRetorikConfigs;
965
+ export const useCurrentSubView: (instanceId?: string) => number;
966
+ export const useKioskParameterOpening: (instanceId?: string) => number;
967
+ export const useRetorikEvent: (instanceId?: string) => RetorikEvent | undefined;
968
+ export const useLocale: (instanceId?: string) => string;
969
+ export const useIsRTL: (instanceId?: string) => boolean;
970
+ export const useTranslation: (instanceId?: string) => TranslationFile;
971
+ export const useIsMobile: (instanceId?: string) => boolean;
972
+ export const useIsWidget: (instanceId?: string) => boolean;
973
+ export const useThemeColors: (instanceId?: string) => ThemeColors;
974
+ export const useMode: (instanceId?: string) => Mode;
975
+ export const useMuted: (instanceId?: string) => boolean;
976
+ export const useLoaderClosed: (instanceId?: string) => boolean;
977
+ export const useConfiguration: (instanceId?: string) => Configuration;
978
+ export const useIsUsedOnBorne: (instanceId?: string) => boolean;
995
979
  export const RetorikAgent: (props: RetorikMainComponentProps) => JSX.Element;
996
980
  export const RetorikWidget: (props: RetorikMainComponentProps & RetorikWidgetProps) => JSX.Element;
997
981
  export const RetorikNews: (props: RetorikMainComponentProps) => JSX.Element;