@myinterview/widget-react 1.1.48-development-5550e9c → 1.1.49-development-4577eb9
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
|
@@ -35447,7 +35447,7 @@ const configGenerator = () => {
|
|
|
35447
35447
|
let release;
|
|
35448
35448
|
try {
|
|
35449
35449
|
environment !== null && environment !== void 0 ? environment : (environment = "staging");
|
|
35450
|
-
release !== null && release !== void 0 ? release : (release = "1.1.
|
|
35450
|
+
release !== null && release !== void 0 ? release : (release = "1.1.49");
|
|
35451
35451
|
}
|
|
35452
35452
|
catch (_a) {
|
|
35453
35453
|
console.error('sentry configGenerator error');
|
|
@@ -45283,7 +45283,7 @@ const ANSWER_COMPONENTS = {
|
|
|
45283
45283
|
[ANSWER_TYPES.MULTIPLE]: AssessmentMultiSelect,
|
|
45284
45284
|
};
|
|
45285
45285
|
const AssessmentController = ({ currentQuestionObj, timer, currentQuestion, numberOfQuestions, antiCheat, onSubmitAssessment }) => {
|
|
45286
|
-
var _a, _b;
|
|
45286
|
+
var _a, _b, _c;
|
|
45287
45287
|
const { t } = useTranslation();
|
|
45288
45288
|
const answerToSubmit = useRef(currentQuestionObj.answerType !== ANSWER_TYPES.TEXT ? [] : '');
|
|
45289
45289
|
const AnswerComponent = useMemo(() => ANSWER_COMPONENTS[currentQuestionObj.answerType], [currentQuestionObj.answerType]);
|
|
@@ -45316,7 +45316,7 @@ const AssessmentController = ({ currentQuestionObj, timer, currentQuestion, numb
|
|
|
45316
45316
|
React__default.createElement(CountDown, { countDown: timer, forceMobileCounter: true, numberOfSecondsToHighlight: SECONDS_LEFT_HIGHLIGHT }))),
|
|
45317
45317
|
React__default.createElement(Question, { questionObj: currentQuestionObj }),
|
|
45318
45318
|
React__default.createElement(AnswerInstructions, { currentQuestionObj: currentQuestionObj }),
|
|
45319
|
-
React__default.createElement(AnswerComponent, Object.assign({ answerOptions: answerOptions, onAnswer: onAnswer }, (currentQuestionObj.answerType === ANSWER_TYPES.TEXT) && { maxChars: (_b = currentQuestionObj.config) === null || _b === void 0 ? void 0 : _b.maxChars, antiCheat })),
|
|
45319
|
+
React__default.createElement(AnswerComponent, Object.assign({ answerOptions: answerOptions, onAnswer: onAnswer }, (currentQuestionObj.answerType === ANSWER_TYPES.TEXT) && { maxChars: (_b = currentQuestionObj.config) === null || _b === void 0 ? void 0 : _b.maxChars, antiCheat: antiCheat || ((_c = currentQuestionObj.config) === null || _c === void 0 ? void 0 : _c.antiCheat) })),
|
|
45320
45320
|
React__default.createElement(C, { disabled: !isValidAnswer, className: "myinterview-widget-assessment__submit-button", onClick: () => onSubmit(false) }, t('buttons.SUBMIT'))));
|
|
45321
45321
|
};
|
|
45322
45322
|
|
|
@@ -55091,7 +55091,7 @@ const DivComponent = React__default.forwardRef((_a, ref) => {
|
|
|
55091
55091
|
return React__default.createElement("div", Object.assign({ ref: ref }, props), children);
|
|
55092
55092
|
});
|
|
55093
55093
|
const Widget = forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
|
|
55094
|
-
const widget_version = "1.1.
|
|
55094
|
+
const widget_version = "1.1.49";
|
|
55095
55095
|
const [isWidgetOpen, setIsWidgetOpen] = useState(false);
|
|
55096
55096
|
const [isWidgetMinimized, setIsWidgetMinimized] = useState(false);
|
|
55097
55097
|
const [isIncognitoMode, setIsIncognitoMode] = useState(false);
|