@davi-ai/retorik-framework 1.1.3 → 1.1.4

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.
@@ -792,7 +792,8 @@ const $56b00880a398c953$var$initialState = {
792
792
  currentLayout: (0, $f5ca62954d1f1f5b$export$a31c5a03aaeee5f).agent,
793
793
  userAlreadySet: false,
794
794
  disableSound: false,
795
- isWaitingForResponse: false
795
+ isWaitingForResponse: false,
796
+ skipLoader: false
796
797
  };
797
798
  let $56b00880a398c953$var$timer = null;
798
799
  const $56b00880a398c953$export$bd22554f31e5f96f = (0, $b3y7N$create)()(()=>{
@@ -900,6 +901,11 @@ const $56b00880a398c953$export$b468e470fbb95f20 = (value)=>{
900
901
  });
901
902
  }
902
903
  };
904
+ const $56b00880a398c953$export$575f08cc5f3ecd43 = (value)=>{
905
+ $56b00880a398c953$export$bd22554f31e5f96f.setState({
906
+ skipLoader: value
907
+ });
908
+ };
903
909
  const $56b00880a398c953$export$cd85ac4858c7290c = ()=>{
904
910
  $56b00880a398c953$export$bd22554f31e5f96f.setState({
905
911
  ...$56b00880a398c953$var$initialState
@@ -15263,7 +15269,7 @@ const $b5b059eebccf168a$var$ContextProvider = ({ skipLoader: skipLoader, mode: m
15263
15269
  mode
15264
15270
  ]);
15265
15271
  (0, $b3y7N$useEffect)(()=>{
15266
- (0, $56b00880a398c953$export$982d69b78a955aaf)(!!skipLoader);
15272
+ (0, $56b00880a398c953$export$575f08cc5f3ecd43)(!!skipLoader);
15267
15273
  }, [
15268
15274
  skipLoader
15269
15275
  ]);
@@ -15872,6 +15878,8 @@ const $fde3bdcd46120869$var$springEnterDuration = 500;
15872
15878
  const $fde3bdcd46120869$var$springLeaveDuration = 1000;
15873
15879
  const $fde3bdcd46120869$var$GdprAndLoader = ({ appAvailable: appAvailable, handleValidation: handleValidation })=>{
15874
15880
  const displayGDPR = (0, $3426110875af99d0$export$77e4cc5334565f28)((state)=>state.GDPRDisplay);
15881
+ const isUsedOnBorne = (0, $56b00880a398c953$export$bd22554f31e5f96f)((state)=>state.configuration.isUsedOnBorne);
15882
+ const skipLoader = (0, $56b00880a398c953$export$bd22554f31e5f96f)((state)=>state.skipLoader);
15875
15883
  const loaderClosed = (0, $56b00880a398c953$export$bd22554f31e5f96f)((state)=>state.loaderClosed);
15876
15884
  const hideRetorikLogo = (0, $56b00880a398c953$export$bd22554f31e5f96f)((state)=>state.configuration.hideRetorikLogo);
15877
15885
  const isMobile = (0, $957e950ca3ff2781$export$d13b2577cb75f2ad)((state)=>state.isMobile);
@@ -15887,6 +15895,15 @@ const $fde3bdcd46120869$var$GdprAndLoader = ({ appAvailable: appAvailable, handl
15887
15895
  opacity: 0
15888
15896
  }
15889
15897
  }));
15898
+ (0, $b3y7N$useEffect)(()=>{
15899
+ if (isUsedOnBorne || skipLoader) {
15900
+ (0, $3426110875af99d0$export$ff26692bd8e0fbbd)(false);
15901
+ handleValidation();
15902
+ }
15903
+ }, [
15904
+ isUsedOnBorne,
15905
+ skipLoader
15906
+ ]);
15890
15907
  (0, $b3y7N$useEffect)(()=>{
15891
15908
  api.start({
15892
15909
  from: {
@@ -15938,7 +15955,7 @@ const $fde3bdcd46120869$var$GdprAndLoader = ({ appAvailable: appAvailable, handl
15938
15955
  }, [
15939
15956
  container?.current
15940
15957
  ]);
15941
- return displayGDPR || !(appAvailable || loaderClosed) ? /*#__PURE__*/ (0, $b3y7N$jsxs)((0, $b3y7N$animated).div, {
15958
+ return isUsedOnBorne || skipLoader ? /*#__PURE__*/ (0, $b3y7N$jsx)((0, $b3y7N$react).Fragment, {}) : displayGDPR || !(appAvailable || loaderClosed) ? /*#__PURE__*/ (0, $b3y7N$jsxs)((0, $b3y7N$animated).div, {
15942
15959
  id: "retorik-GDPR-and-loader",
15943
15960
  className: `rf-absolute rf-z-modal rf-top-0 rf-left-0 rf-h-full rf-w-full rf-font-default
15944
15961
  ${textSize}`,
@@ -15972,7 +15989,6 @@ const $ba6bf0e283157133$var$RetorikSpeech = ({ ponyfill: ponyfill, onEnd: onEnd,
15972
15989
  const loaderClosed = (0, $56b00880a398c953$export$bd22554f31e5f96f)((state)=>state.loaderClosed);
15973
15990
  const enableSpeechCaching = (0, $56b00880a398c953$export$bd22554f31e5f96f)((state)=>state.configuration.enableSpeechCaching);
15974
15991
  const speechRecognitionOptions = (0, $56b00880a398c953$export$bd22554f31e5f96f)((state)=>state.configuration.speechRecognitionOptions);
15975
- const isUsedOnBorne = (0, $56b00880a398c953$export$bd22554f31e5f96f)((state)=>state.configuration.isUsedOnBorne);
15976
15992
  const voice = (0, $04ce41b46d359821$export$f299240efcda25a2)((state)=>state.voice);
15977
15993
  const muted = (0, $04ce41b46d359821$export$f299240efcda25a2)((state)=>state.muted);
15978
15994
  const activeRecognitionState = (0, $04ce41b46d359821$export$f299240efcda25a2)((state)=>state.activeRecognitionState);
@@ -16198,7 +16214,7 @@ const $ba6bf0e283157133$var$RetorikSpeech = ({ ponyfill: ponyfill, onEnd: onEnd,
16198
16214
  preload: "auto",
16199
16215
  muted: appAvailable || loaderClosed ? muted : true
16200
16216
  }),
16201
- !isUsedOnBorne && /*#__PURE__*/ (0, $b3y7N$jsx)((0, $fde3bdcd46120869$export$2e2bcd8739ae039), {
16217
+ /*#__PURE__*/ (0, $b3y7N$jsx)((0, $fde3bdcd46120869$export$2e2bcd8739ae039), {
16202
16218
  appAvailable: appAvailable,
16203
16219
  handleValidation: primeRetorikSpeech
16204
16220
  })
@@ -16657,7 +16673,7 @@ const $45f8218489149157$var$SynthesisManager = ({ isRetorikNews: isRetorikNews }
16657
16673
  currentPlayingRef.current = null;
16658
16674
  setUtterance(futureUtterance);
16659
16675
  };
16660
- return /*#__PURE__*/ (0, $b3y7N$jsx)((0, $ba6bf0e283157133$export$2e2bcd8739ae039), {
16676
+ return ponyfill ? /*#__PURE__*/ (0, $b3y7N$jsx)((0, $ba6bf0e283157133$export$2e2bcd8739ae039), {
16661
16677
  ponyfill: ponyfill,
16662
16678
  appAvailable: appAvailable,
16663
16679
  utterance: utterance,
@@ -16665,7 +16681,7 @@ const $45f8218489149157$var$SynthesisManager = ({ isRetorikNews: isRetorikNews }
16665
16681
  onStart: handleUtteranceStart,
16666
16682
  onError: handleUtteranceEnd,
16667
16683
  onEnd: handleUtteranceEnd
16668
- });
16684
+ }) : /*#__PURE__*/ (0, $b3y7N$jsx)((0, $b3y7N$react).Fragment, {});
16669
16685
  };
16670
16686
  var $45f8218489149157$export$2e2bcd8739ae039 = $45f8218489149157$var$SynthesisManager;
16671
16687