@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/cjs/index.js
CHANGED
|
@@ -35473,7 +35473,7 @@ const configGenerator = () => {
|
|
|
35473
35473
|
let release;
|
|
35474
35474
|
try {
|
|
35475
35475
|
environment !== null && environment !== void 0 ? environment : (environment = "staging");
|
|
35476
|
-
release !== null && release !== void 0 ? release : (release = "1.1.
|
|
35476
|
+
release !== null && release !== void 0 ? release : (release = "1.1.49");
|
|
35477
35477
|
}
|
|
35478
35478
|
catch (_a) {
|
|
35479
35479
|
console.error('sentry configGenerator error');
|
|
@@ -45309,7 +45309,7 @@ const ANSWER_COMPONENTS = {
|
|
|
45309
45309
|
[ANSWER_TYPES.MULTIPLE]: AssessmentMultiSelect,
|
|
45310
45310
|
};
|
|
45311
45311
|
const AssessmentController = ({ currentQuestionObj, timer, currentQuestion, numberOfQuestions, antiCheat, onSubmitAssessment }) => {
|
|
45312
|
-
var _a, _b;
|
|
45312
|
+
var _a, _b, _c;
|
|
45313
45313
|
const { t } = useTranslation();
|
|
45314
45314
|
const answerToSubmit = React.useRef(currentQuestionObj.answerType !== ANSWER_TYPES.TEXT ? [] : '');
|
|
45315
45315
|
const AnswerComponent = React.useMemo(() => ANSWER_COMPONENTS[currentQuestionObj.answerType], [currentQuestionObj.answerType]);
|
|
@@ -45342,7 +45342,7 @@ const AssessmentController = ({ currentQuestionObj, timer, currentQuestion, numb
|
|
|
45342
45342
|
React__default["default"].createElement(CountDown, { countDown: timer, forceMobileCounter: true, numberOfSecondsToHighlight: SECONDS_LEFT_HIGHLIGHT }))),
|
|
45343
45343
|
React__default["default"].createElement(Question, { questionObj: currentQuestionObj }),
|
|
45344
45344
|
React__default["default"].createElement(AnswerInstructions, { currentQuestionObj: currentQuestionObj }),
|
|
45345
|
-
React__default["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 })),
|
|
45345
|
+
React__default["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) })),
|
|
45346
45346
|
React__default["default"].createElement(C, { disabled: !isValidAnswer, className: "myinterview-widget-assessment__submit-button", onClick: () => onSubmit(false) }, t('buttons.SUBMIT'))));
|
|
45347
45347
|
};
|
|
45348
45348
|
|
|
@@ -55117,7 +55117,7 @@ const DivComponent = React__default["default"].forwardRef((_a, ref) => {
|
|
|
55117
55117
|
return React__default["default"].createElement("div", Object.assign({ ref: ref }, props), children);
|
|
55118
55118
|
});
|
|
55119
55119
|
const Widget = React.forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
|
|
55120
|
-
const widget_version = "1.1.
|
|
55120
|
+
const widget_version = "1.1.49";
|
|
55121
55121
|
const [isWidgetOpen, setIsWidgetOpen] = React.useState(false);
|
|
55122
55122
|
const [isWidgetMinimized, setIsWidgetMinimized] = React.useState(false);
|
|
55123
55123
|
const [isIncognitoMode, setIsIncognitoMode] = React.useState(false);
|