@myinterview/widget-react 1.1.39-development-3a871cb → 1.1.40

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/cjs/index.js CHANGED
@@ -35455,7 +35455,7 @@ const configGenerator = () => {
35455
35455
  let release;
35456
35456
  try {
35457
35457
  environment !== null && environment !== void 0 ? environment : (environment = "staging");
35458
- release !== null && release !== void 0 ? release : (release = "1.1.39");
35458
+ release !== null && release !== void 0 ? release : (release = "1.1.40");
35459
35459
  }
35460
35460
  catch (_a) {
35461
35461
  console.error('sentry configGenerator error');
@@ -35693,6 +35693,9 @@ const PreviewList = ({ previewRef, onNextQuestion, onNextRetake, onQuestionMode,
35693
35693
  const lastMoveEventTime = React.useRef(0);
35694
35694
  const isPredictionNext = React.useRef(false);
35695
35695
  const isPreviewModal = isMobile && previewModeIndex !== null;
35696
+ React.useEffect(() => {
35697
+ setSelectedVideoIndex(videosUrls.length === 1 ? 0 : null);
35698
+ }, [videosUrls.length]);
35696
35699
  const titleText = React.useMemo(() => {
35697
35700
  const TITLE_TEXT = {
35698
35701
  LAST_QUESTION_SINGLE_TAKE: videosUrls.length === 1 && isLastQuestion,
@@ -54769,7 +54772,7 @@ const useAccessibility = () => {
54769
54772
  };
54770
54773
 
54771
54774
  const Widget = React.forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
54772
- const widget_version = "1.1.39";
54775
+ const widget_version = "1.1.40";
54773
54776
  const [isWidgetOpen, setIsWidgetOpen] = React.useState(false);
54774
54777
  const [isWidgetMinimized, setIsWidgetMinimized] = React.useState(false);
54775
54778
  const [isIncognitoMode, setIsIncognitoMode] = React.useState(false);