@myinterview/widget-react 1.1.5 → 1.1.6-beta-c308316
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/i18n/config.d.ts +24 -0
- package/dist/cjs/index.js +35 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/i18n/config.d.ts +24 -0
- package/dist/esm/index.js +35 -11
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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/cjs/index.js
CHANGED
|
@@ -30246,16 +30246,16 @@ const SLIDE_RATIO = 0.25;
|
|
|
30246
30246
|
const SLIDE_EDGE_TRANSFORM_RATIO = 0.25;
|
|
30247
30247
|
const TRANSITION_DURATION = '300ms';
|
|
30248
30248
|
const TITLE_TEXT_OPTIONS = {
|
|
30249
|
-
ONLY_ONE_TAKE:
|
|
30250
|
-
LAST_TAKE:
|
|
30251
|
-
AVAILABLE_TAKES_FIRST_ATTEMPT:
|
|
30252
|
-
AVAILABLE_TAKES:
|
|
30249
|
+
ONLY_ONE_TAKE: () => instance.t('preview.question_title.only_one_take'),
|
|
30250
|
+
LAST_TAKE: () => instance.t('preview.question_title.last_take'),
|
|
30251
|
+
AVAILABLE_TAKES_FIRST_ATTEMPT: () => instance.t('preview.question_title.available_takes_first_attempt'),
|
|
30252
|
+
AVAILABLE_TAKES: () => instance.t('preview.question_title.available_takes'),
|
|
30253
30253
|
};
|
|
30254
30254
|
const LAST_PRACTICE_TITLE_TEXT_OPTIONS = {
|
|
30255
|
-
ONLY_ONE_TAKE:
|
|
30256
|
-
LAST_TAKE:
|
|
30257
|
-
AVAILABLE_TAKES_FIRST_ATTEMPT:
|
|
30258
|
-
AVAILABLE_TAKES:
|
|
30255
|
+
ONLY_ONE_TAKE: () => instance.t('preview.practice_title.only_one_take'),
|
|
30256
|
+
LAST_TAKE: () => instance.t('preview.practice_title.last_take'),
|
|
30257
|
+
AVAILABLE_TAKES_FIRST_ATTEMPT: () => instance.t('preview.practice_title.available_takes_first_attempt'),
|
|
30258
|
+
AVAILABLE_TAKES: () => instance.t('preview.practice_title.available_takes'),
|
|
30259
30259
|
};
|
|
30260
30260
|
const PreviewList = ({ previewRef, onNextQuestion, onNextRetake, onQuestionMode, isRetakeAvailable, totalRetakes, isLastQuestion, isQuestionMode, isConnected, currentQuestion, numberOfQuestions, myinterviewRef, }) => {
|
|
30261
30261
|
const { t } = useTranslation();
|
|
@@ -30282,7 +30282,7 @@ const PreviewList = ({ previewRef, onNextQuestion, onNextRetake, onQuestionMode,
|
|
|
30282
30282
|
};
|
|
30283
30283
|
const selectedOptionKey = ((Object.entries(TITLE_TEXT).find(([_, val]) => val) || [])[0] || 'LAST_TAKE');
|
|
30284
30284
|
const isLastPracticeQuestion = isLastQuestion && !isQuestionMode;
|
|
30285
|
-
return (isLastPracticeQuestion ? LAST_PRACTICE_TITLE_TEXT_OPTIONS : TITLE_TEXT_OPTIONS)[selectedOptionKey];
|
|
30285
|
+
return (isLastPracticeQuestion ? LAST_PRACTICE_TITLE_TEXT_OPTIONS : TITLE_TEXT_OPTIONS)[selectedOptionKey]();
|
|
30286
30286
|
}, [isRetakeAvailable, videosUrls.length, isLastQuestion]);
|
|
30287
30287
|
const updateWrapperPosition = () => {
|
|
30288
30288
|
if (itemsWrapperRef.current) {
|
|
@@ -44627,7 +44627,19 @@ var practice$5 = {
|
|
|
44627
44627
|
var preview$5 = {
|
|
44628
44628
|
title: "Select your video to submit",
|
|
44629
44629
|
singleTake: "Preview",
|
|
44630
|
-
take: "Take"
|
|
44630
|
+
take: "Take",
|
|
44631
|
+
question_title: {
|
|
44632
|
+
only_one_take: "Click Submit to move to the next question",
|
|
44633
|
+
last_take: "Select your video to submit",
|
|
44634
|
+
available_takes_first_attempt: "Retake or submit your answer",
|
|
44635
|
+
available_takes: "Retake or select & submit your answer"
|
|
44636
|
+
},
|
|
44637
|
+
practice_title: {
|
|
44638
|
+
only_one_take: "Click on the link below to proceed",
|
|
44639
|
+
last_take: "Click on the link below to proceed",
|
|
44640
|
+
available_takes_first_attempt: "Click on the link below to proceed",
|
|
44641
|
+
available_takes: "Click on the link below to proceed"
|
|
44642
|
+
}
|
|
44631
44643
|
};
|
|
44632
44644
|
var upload$5 = {
|
|
44633
44645
|
title: "Uploading Your Videos",
|
|
@@ -45379,7 +45391,19 @@ var practice$2 = {
|
|
|
45379
45391
|
var preview$2 = {
|
|
45380
45392
|
title: "בחר/י את הוידאו שברצונך לשלוח",
|
|
45381
45393
|
singleTake: "תצוגה מקדימה",
|
|
45382
|
-
take: "ניסיון"
|
|
45394
|
+
take: "ניסיון",
|
|
45395
|
+
question_title: {
|
|
45396
|
+
only_one_take: "לחצו ״שלח״ על מנת לעבור לשאלה הבאה",
|
|
45397
|
+
last_take: "בחרו הקלטה שברצונכם לשלוח",
|
|
45398
|
+
available_takes_first_attempt: "שלחו את ההקלטה או נסו שוב",
|
|
45399
|
+
available_takes: "נסו שוב או בחרו הקלטה שברצונכם לשלוח"
|
|
45400
|
+
},
|
|
45401
|
+
practice_title: {
|
|
45402
|
+
only_one_take: "לחצו על הלינק המופיע מטה על מנת להמשיך",
|
|
45403
|
+
last_take: "לחצו על הלינק המופיע מטה על מנת להמשיך",
|
|
45404
|
+
available_takes_first_attempt: "לחצו על הלינק המופיע מטה על מנת להמשיך",
|
|
45405
|
+
available_takes: "לחצו על הלינק המופיע מטה על מנת להמשיך"
|
|
45406
|
+
}
|
|
45383
45407
|
};
|
|
45384
45408
|
var upload$2 = {
|
|
45385
45409
|
title: "הסרטון בהעלאה",
|