@myinterview/widget-react 1.1.30 → 1.1.31-development-cd7dc2a
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 +6 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/configInterface.d.ts +1 -0
- package/dist/cjs/interfaces/videoInterface.d.ts +1 -0
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/configInterface.d.ts +1 -0
- package/dist/esm/interfaces/videoInterface.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -30212,7 +30212,7 @@ const prod_config = {
|
|
|
30212
30212
|
const config$1 = (configEnv) => {
|
|
30213
30213
|
let env = configEnv;
|
|
30214
30214
|
try {
|
|
30215
|
-
env !== null && env !== void 0 ? env : (env = "
|
|
30215
|
+
env !== null && env !== void 0 ? env : (env = "staging");
|
|
30216
30216
|
}
|
|
30217
30217
|
catch (_a) { }
|
|
30218
30218
|
switch (env) {
|
|
@@ -30231,8 +30231,8 @@ const configGenerator = () => {
|
|
|
30231
30231
|
let environment;
|
|
30232
30232
|
let release;
|
|
30233
30233
|
try {
|
|
30234
|
-
environment !== null && environment !== void 0 ? environment : (environment = "
|
|
30235
|
-
release !== null && release !== void 0 ? release : (release = "1.1.
|
|
30234
|
+
environment !== null && environment !== void 0 ? environment : (environment = "staging");
|
|
30235
|
+
release !== null && release !== void 0 ? release : (release = "1.1.31");
|
|
30236
30236
|
}
|
|
30237
30237
|
catch (_a) {
|
|
30238
30238
|
console.error('sentry configGenerator error');
|
|
@@ -48411,7 +48411,7 @@ const Main = ({ widgetConfig, setShouldShowWaterMark, myinterviewRef, isWidgetMi
|
|
|
48411
48411
|
useEffect(() => {
|
|
48412
48412
|
var _a, _b;
|
|
48413
48413
|
if (isErrorState && (error === null || error === void 0 ? void 0 : error.statusCode) === 400) {
|
|
48414
|
-
(_b = (_a = widgetConfig.config).onError) === null || _b === void 0 ? void 0 : _b.call(_a, { messageType: 'applied' });
|
|
48414
|
+
(_b = (_a = widgetConfig.config).onError) === null || _b === void 0 ? void 0 : _b.call(_a, { messageType: 'applied', messageInfo: 'Candidate already attached to a video' });
|
|
48415
48415
|
}
|
|
48416
48416
|
setBackgroundOpacity();
|
|
48417
48417
|
}, [isErrorState]);
|
|
@@ -48556,6 +48556,7 @@ const useAccessibility = () => {
|
|
|
48556
48556
|
};
|
|
48557
48557
|
|
|
48558
48558
|
const Widget = forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
|
|
48559
|
+
const widget_version = "1.1.31";
|
|
48559
48560
|
const [isWidgetOpen, setIsWidgetOpen] = useState(false);
|
|
48560
48561
|
const [isWidgetMinimized, setIsWidgetMinimized] = useState(false);
|
|
48561
48562
|
const [isIncognitoMode, setIsIncognitoMode] = useState(false);
|
|
@@ -48687,7 +48688,7 @@ const Widget = forwardRef(({ candidate, job, video, config, disabled = false, bu
|
|
|
48687
48688
|
React__default.createElement(Main, { myinterviewRef: myinterviewRef, widgetConfig: {
|
|
48688
48689
|
config: Object.assign(Object.assign({}, config), { onFinish: onInterviewCompleted, onError, practiceQuestions: convertQuestions(config.practiceQuestions) }),
|
|
48689
48690
|
job: Object.assign(Object.assign({}, job), { questions: convertQuestions(job.questions) }),
|
|
48690
|
-
video: Object.assign(Object.assign({}, video), { referrer: (video === null || video === void 0 ? void 0 : video.referrer) || window.location.href }),
|
|
48691
|
+
video: Object.assign(Object.assign({}, video), { referrer: (video === null || video === void 0 ? void 0 : video.referrer) || window.location.href, widget_version }),
|
|
48691
48692
|
candidate,
|
|
48692
48693
|
}, setShouldShowWaterMark: setShouldShowWaterMark, isWidgetMinimized: isWidgetMinimized, onMinimize: onMinimize }))))))))));
|
|
48693
48694
|
});
|