@modelnex/sdk 0.5.58 → 0.5.59

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.js CHANGED
@@ -4823,7 +4823,7 @@ function useTourPlayback({
4823
4823
  }
4824
4824
  await waitForUserAction(gateTarget, segment.gate.event);
4825
4825
  }
4826
- if (segmentText && showCaptionsRef.current && reviewModeRef.current) {
4826
+ if (segmentText && showCaptionsRef.current) {
4827
4827
  showCaption(segmentText);
4828
4828
  }
4829
4829
  const nextSegmentText = (segments[index + 1]?.text ?? "").trim();
@@ -4850,7 +4850,7 @@ function useTourPlayback({
4850
4850
  if (params.removeHighlightAtEnd !== false) {
4851
4851
  removeHighlight();
4852
4852
  }
4853
- if (showCaptionsRef.current && reviewModeRef.current) {
4853
+ if (showCaptionsRef.current) {
4854
4854
  removeCaption();
4855
4855
  }
4856
4856
  return !!params.waitForInput;
@@ -4860,7 +4860,7 @@ function useTourPlayback({
4860
4860
  if (!text.trim()) {
4861
4861
  return { result: null };
4862
4862
  }
4863
- if (showCaptionsRef.current && reviewModeRef.current) {
4863
+ if (showCaptionsRef.current) {
4864
4864
  showCaption(text);
4865
4865
  }
4866
4866
  const settlePromise = voice.speak(text, tourRef.current?.voice?.ttsVoice, {
@@ -5438,10 +5438,10 @@ function useTourPlayback({
5438
5438
  return () => clearTimeout(timer);
5439
5439
  }, [disabled, emitTourInit, websiteId, userProfile?.userId, userProfile?.type]);
5440
5440
  (0, import_react12.useEffect)(() => {
5441
- if (!showCaptions || !isReviewMode) {
5441
+ if (!showCaptions) {
5442
5442
  removeCaption();
5443
5443
  }
5444
- }, [showCaptions, isReviewMode]);
5444
+ }, [showCaptions]);
5445
5445
  (0, import_react12.useEffect)(() => {
5446
5446
  if (!isActiveRef.current) return;
5447
5447
  emitSocketEvent(socketRef.current, "tour:client_state", {
package/dist/index.mjs CHANGED
@@ -3994,7 +3994,7 @@ function useTourPlayback({
3994
3994
  }
3995
3995
  await waitForUserAction(gateTarget, segment.gate.event);
3996
3996
  }
3997
- if (segmentText && showCaptionsRef.current && reviewModeRef.current) {
3997
+ if (segmentText && showCaptionsRef.current) {
3998
3998
  showCaption(segmentText);
3999
3999
  }
4000
4000
  const nextSegmentText = (segments[index + 1]?.text ?? "").trim();
@@ -4021,7 +4021,7 @@ function useTourPlayback({
4021
4021
  if (params.removeHighlightAtEnd !== false) {
4022
4022
  removeHighlight();
4023
4023
  }
4024
- if (showCaptionsRef.current && reviewModeRef.current) {
4024
+ if (showCaptionsRef.current) {
4025
4025
  removeCaption();
4026
4026
  }
4027
4027
  return !!params.waitForInput;
@@ -4031,7 +4031,7 @@ function useTourPlayback({
4031
4031
  if (!text.trim()) {
4032
4032
  return { result: null };
4033
4033
  }
4034
- if (showCaptionsRef.current && reviewModeRef.current) {
4034
+ if (showCaptionsRef.current) {
4035
4035
  showCaption(text);
4036
4036
  }
4037
4037
  const settlePromise = voice.speak(text, tourRef.current?.voice?.ttsVoice, {
@@ -4609,10 +4609,10 @@ function useTourPlayback({
4609
4609
  return () => clearTimeout(timer);
4610
4610
  }, [disabled, emitTourInit, websiteId, userProfile?.userId, userProfile?.type]);
4611
4611
  useEffect10(() => {
4612
- if (!showCaptions || !isReviewMode) {
4612
+ if (!showCaptions) {
4613
4613
  removeCaption();
4614
4614
  }
4615
- }, [showCaptions, isReviewMode]);
4615
+ }, [showCaptions]);
4616
4616
  useEffect10(() => {
4617
4617
  if (!isActiveRef.current) return;
4618
4618
  emitSocketEvent(socketRef.current, "tour:client_state", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelnex/sdk",
3
- "version": "0.5.58",
3
+ "version": "0.5.59",
4
4
  "description": "React SDK for natural language control of web apps via AI agents",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",