@myinterview/widget-react 1.1.39 → 1.1.41-beta-286acbe

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/esm/index.js CHANGED
@@ -35409,7 +35409,7 @@ const prod_config = {
35409
35409
  const config$1 = (configEnv) => {
35410
35410
  let env = configEnv;
35411
35411
  try {
35412
- env !== null && env !== void 0 ? env : (env = "prod");
35412
+ env !== null && env !== void 0 ? env : (env = "staging");
35413
35413
  }
35414
35414
  catch (_a) { }
35415
35415
  switch (env) {
@@ -35428,8 +35428,8 @@ const configGenerator = () => {
35428
35428
  let environment;
35429
35429
  let release;
35430
35430
  try {
35431
- environment !== null && environment !== void 0 ? environment : (environment = "prod");
35432
- release !== null && release !== void 0 ? release : (release = "1.1.39");
35431
+ environment !== null && environment !== void 0 ? environment : (environment = "staging");
35432
+ release !== null && release !== void 0 ? release : (release = "1.1.41");
35433
35433
  }
35434
35434
  catch (_a) {
35435
35435
  console.error('sentry configGenerator error');
@@ -35667,6 +35667,9 @@ const PreviewList = ({ previewRef, onNextQuestion, onNextRetake, onQuestionMode,
35667
35667
  const lastMoveEventTime = useRef(0);
35668
35668
  const isPredictionNext = useRef(false);
35669
35669
  const isPreviewModal = isMobile && previewModeIndex !== null;
35670
+ useEffect(() => {
35671
+ setSelectedVideoIndex(videosUrls.length === 1 ? 0 : null);
35672
+ }, [videosUrls.length]);
35670
35673
  const titleText = useMemo(() => {
35671
35674
  const TITLE_TEXT = {
35672
35675
  LAST_QUESTION_SINGLE_TAKE: videosUrls.length === 1 && isLastQuestion,
@@ -54743,7 +54746,7 @@ const useAccessibility = () => {
54743
54746
  };
54744
54747
 
54745
54748
  const Widget = forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
54746
- const widget_version = "1.1.39";
54749
+ const widget_version = "1.1.41";
54747
54750
  const [isWidgetOpen, setIsWidgetOpen] = useState(false);
54748
54751
  const [isWidgetMinimized, setIsWidgetMinimized] = useState(false);
54749
54752
  const [isIncognitoMode, setIsIncognitoMode] = useState(false);