@myinterview/widget-react 1.1.30-development-3133fb6 → 1.1.31-development-4480cd9

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.
@@ -10,6 +10,7 @@ export interface IOnFinish {
10
10
  }
11
11
  export interface IOnError {
12
12
  messageType: IMessageType;
13
+ messageInfo?: string;
13
14
  }
14
15
  export type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
15
16
  export type IViews = 'desktop' | 'mobile';
package/dist/esm/index.js CHANGED
@@ -30232,7 +30232,7 @@ const configGenerator = () => {
30232
30232
  let release;
30233
30233
  try {
30234
30234
  environment !== null && environment !== void 0 ? environment : (environment = "staging");
30235
- release !== null && release !== void 0 ? release : (release = "1.1.30");
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]);