@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 CHANGED
@@ -30238,7 +30238,7 @@ const prod_config = {
30238
30238
  const config$1 = (configEnv) => {
30239
30239
  let env = configEnv;
30240
30240
  try {
30241
- env !== null && env !== void 0 ? env : (env = "prod");
30241
+ env !== null && env !== void 0 ? env : (env = "staging");
30242
30242
  }
30243
30243
  catch (_a) { }
30244
30244
  switch (env) {
@@ -30257,8 +30257,8 @@ const configGenerator = () => {
30257
30257
  let environment;
30258
30258
  let release;
30259
30259
  try {
30260
- environment !== null && environment !== void 0 ? environment : (environment = "prod");
30261
- release !== null && release !== void 0 ? release : (release = "1.1.30");
30260
+ environment !== null && environment !== void 0 ? environment : (environment = "staging");
30261
+ release !== null && release !== void 0 ? release : (release = "1.1.31");
30262
30262
  }
30263
30263
  catch (_a) {
30264
30264
  console.error('sentry configGenerator error');
@@ -48437,7 +48437,7 @@ const Main = ({ widgetConfig, setShouldShowWaterMark, myinterviewRef, isWidgetMi
48437
48437
  React.useEffect(() => {
48438
48438
  var _a, _b;
48439
48439
  if (isErrorState && (error === null || error === void 0 ? void 0 : error.statusCode) === 400) {
48440
- (_b = (_a = widgetConfig.config).onError) === null || _b === void 0 ? void 0 : _b.call(_a, { messageType: 'applied' });
48440
+ (_b = (_a = widgetConfig.config).onError) === null || _b === void 0 ? void 0 : _b.call(_a, { messageType: 'applied', messageInfo: 'Candidate already attached to a video' });
48441
48441
  }
48442
48442
  setBackgroundOpacity();
48443
48443
  }, [isErrorState]);
@@ -48582,6 +48582,7 @@ const useAccessibility = () => {
48582
48582
  };
48583
48583
 
48584
48584
  const Widget = React.forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
48585
+ const widget_version = "1.1.31";
48585
48586
  const [isWidgetOpen, setIsWidgetOpen] = React.useState(false);
48586
48587
  const [isWidgetMinimized, setIsWidgetMinimized] = React.useState(false);
48587
48588
  const [isIncognitoMode, setIsIncognitoMode] = React.useState(false);
@@ -48713,7 +48714,7 @@ const Widget = React.forwardRef(({ candidate, job, video, config, disabled = fal
48713
48714
  React__default["default"].createElement(Main, { myinterviewRef: myinterviewRef, widgetConfig: {
48714
48715
  config: Object.assign(Object.assign({}, config), { onFinish: onInterviewCompleted, onError, practiceQuestions: convertQuestions(config.practiceQuestions) }),
48715
48716
  job: Object.assign(Object.assign({}, job), { questions: convertQuestions(job.questions) }),
48716
- video: Object.assign(Object.assign({}, video), { referrer: (video === null || video === void 0 ? void 0 : video.referrer) || window.location.href }),
48717
+ video: Object.assign(Object.assign({}, video), { referrer: (video === null || video === void 0 ? void 0 : video.referrer) || window.location.href, widget_version }),
48717
48718
  candidate,
48718
48719
  }, setShouldShowWaterMark: setShouldShowWaterMark, isWidgetMinimized: isWidgetMinimized, onMinimize: onMinimize }))))))))));
48719
48720
  });