@myinterview/widget-react 1.1.5 → 1.1.6

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.
@@ -655,6 +655,18 @@ export declare const resources: {
655
655
  title: string;
656
656
  singleTake: string;
657
657
  take: string;
658
+ question_title: {
659
+ only_one_take: string;
660
+ last_take: string;
661
+ available_takes_first_attempt: string;
662
+ available_takes: string;
663
+ };
664
+ practice_title: {
665
+ only_one_take: string;
666
+ last_take: string;
667
+ available_takes_first_attempt: string;
668
+ available_takes: string;
669
+ };
658
670
  };
659
671
  upload: {
660
672
  title: string;
@@ -1233,6 +1245,18 @@ export declare const resources: {
1233
1245
  title: string;
1234
1246
  singleTake: string;
1235
1247
  take: string;
1248
+ question_title: {
1249
+ only_one_take: string;
1250
+ last_take: string;
1251
+ available_takes_first_attempt: string;
1252
+ available_takes: string;
1253
+ };
1254
+ practice_title: {
1255
+ only_one_take: string;
1256
+ last_take: string;
1257
+ available_takes_first_attempt: string;
1258
+ available_takes: string;
1259
+ };
1236
1260
  };
1237
1261
  upload: {
1238
1262
  title: string;
package/dist/esm/index.js CHANGED
@@ -30220,16 +30220,16 @@ const SLIDE_RATIO = 0.25;
30220
30220
  const SLIDE_EDGE_TRANSFORM_RATIO = 0.25;
30221
30221
  const TRANSITION_DURATION = '300ms';
30222
30222
  const TITLE_TEXT_OPTIONS = {
30223
- ONLY_ONE_TAKE: 'Click Submit to move to the next question',
30224
- LAST_TAKE: 'Select your video to submit',
30225
- AVAILABLE_TAKES_FIRST_ATTEMPT: 'Retake or submit your answer',
30226
- AVAILABLE_TAKES: 'Retake or select & submit your answer',
30223
+ ONLY_ONE_TAKE: () => instance.t('preview.question_title.only_one_take'),
30224
+ LAST_TAKE: () => instance.t('preview.question_title.last_take'),
30225
+ AVAILABLE_TAKES_FIRST_ATTEMPT: () => instance.t('preview.question_title.available_takes_first_attempt'),
30226
+ AVAILABLE_TAKES: () => instance.t('preview.question_title.available_takes'),
30227
30227
  };
30228
30228
  const LAST_PRACTICE_TITLE_TEXT_OPTIONS = {
30229
- ONLY_ONE_TAKE: 'Click on the link below to proceed',
30230
- LAST_TAKE: 'Click on the link below to proceed',
30231
- AVAILABLE_TAKES_FIRST_ATTEMPT: 'Click on the link below to proceed',
30232
- AVAILABLE_TAKES: 'Click on the link below to proceed',
30229
+ ONLY_ONE_TAKE: () => instance.t('preview.practice_title.only_one_take'),
30230
+ LAST_TAKE: () => instance.t('preview.practice_title.last_take'),
30231
+ AVAILABLE_TAKES_FIRST_ATTEMPT: () => instance.t('preview.practice_title.available_takes_first_attempt'),
30232
+ AVAILABLE_TAKES: () => instance.t('preview.practice_title.available_takes'),
30233
30233
  };
30234
30234
  const PreviewList = ({ previewRef, onNextQuestion, onNextRetake, onQuestionMode, isRetakeAvailable, totalRetakes, isLastQuestion, isQuestionMode, isConnected, currentQuestion, numberOfQuestions, myinterviewRef, }) => {
30235
30235
  const { t } = useTranslation();
@@ -30256,7 +30256,7 @@ const PreviewList = ({ previewRef, onNextQuestion, onNextRetake, onQuestionMode,
30256
30256
  };
30257
30257
  const selectedOptionKey = ((Object.entries(TITLE_TEXT).find(([_, val]) => val) || [])[0] || 'LAST_TAKE');
30258
30258
  const isLastPracticeQuestion = isLastQuestion && !isQuestionMode;
30259
- return (isLastPracticeQuestion ? LAST_PRACTICE_TITLE_TEXT_OPTIONS : TITLE_TEXT_OPTIONS)[selectedOptionKey];
30259
+ return (isLastPracticeQuestion ? LAST_PRACTICE_TITLE_TEXT_OPTIONS : TITLE_TEXT_OPTIONS)[selectedOptionKey]();
30260
30260
  }, [isRetakeAvailable, videosUrls.length, isLastQuestion]);
30261
30261
  const updateWrapperPosition = () => {
30262
30262
  if (itemsWrapperRef.current) {
@@ -44601,7 +44601,19 @@ var practice$5 = {
44601
44601
  var preview$5 = {
44602
44602
  title: "Select your video to submit",
44603
44603
  singleTake: "Preview",
44604
- take: "Take"
44604
+ take: "Take",
44605
+ question_title: {
44606
+ only_one_take: "Click Submit to move to the next question",
44607
+ last_take: "Select your video to submit",
44608
+ available_takes_first_attempt: "Retake or submit your answer",
44609
+ available_takes: "Retake or select & submit your answer"
44610
+ },
44611
+ practice_title: {
44612
+ only_one_take: "Click on the link below to proceed",
44613
+ last_take: "Click on the link below to proceed",
44614
+ available_takes_first_attempt: "Click on the link below to proceed",
44615
+ available_takes: "Click on the link below to proceed"
44616
+ }
44605
44617
  };
44606
44618
  var upload$5 = {
44607
44619
  title: "Uploading Your Videos",
@@ -45353,7 +45365,19 @@ var practice$2 = {
45353
45365
  var preview$2 = {
45354
45366
  title: "בחר/י את הוידאו שברצונך לשלוח",
45355
45367
  singleTake: "תצוגה מקדימה",
45356
- take: "ניסיון"
45368
+ take: "ניסיון",
45369
+ question_title: {
45370
+ only_one_take: "לחצו ״שלח״ על מנת לעבור לשאלה הבאה",
45371
+ last_take: "בחרו הקלטה שברצונכם לשלוח",
45372
+ available_takes_first_attempt: "שלחו את ההקלטה או נסו שוב",
45373
+ available_takes: "נסו שוב או בחרו הקלטה שברצונכם לשלוח"
45374
+ },
45375
+ practice_title: {
45376
+ only_one_take: "לחצו על הלינק המופיע מטה על מנת להמשיך",
45377
+ last_take: "לחצו על הלינק המופיע מטה על מנת להמשיך",
45378
+ available_takes_first_attempt: "לחצו על הלינק המופיע מטה על מנת להמשיך",
45379
+ available_takes: "לחצו על הלינק המופיע מטה על מנת להמשיך"
45380
+ }
45357
45381
  };
45358
45382
  var upload$2 = {
45359
45383
  title: "הסרטון בהעלאה",