@myinterview/widget-react 1.1.34-development-0a405fc → 1.1.35-development-c6fd5c1

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
@@ -14064,7 +14064,7 @@ var platform$1 = platform$2.exports;
14064
14064
 
14065
14065
  var _a, _b, _c, _d, _e;
14066
14066
  const getUAParserData = (userAgent) => {
14067
- var _a;
14067
+ var _a, _b;
14068
14068
  if (userAgent) {
14069
14069
  const uaParserData = new UAParser(userAgent);
14070
14070
  const Parser = uaParserData.getResult();
@@ -14073,10 +14073,10 @@ const getUAParserData = (userAgent) => {
14073
14073
  const browserVersion = Parser.browser.version;
14074
14074
  const osName = Parser.os.name;
14075
14075
  const osVersion = Parser.os.version;
14076
- const hints = Parser.withFeatureCheck();
14076
+ const hints = (_a = Parser.withFeatureCheck) === null || _a === void 0 ? void 0 : _a.call(Parser);
14077
14077
  return {
14078
14078
  description: `${browserName} ${browserVersion} on ${osName} ${osVersion}`,
14079
- layout: (_a = Parser === null || Parser === void 0 ? void 0 : Parser.engine) === null || _a === void 0 ? void 0 : _a.name,
14079
+ layout: (_b = Parser === null || Parser === void 0 ? void 0 : Parser.engine) === null || _b === void 0 ? void 0 : _b.name,
14080
14080
  manufacturer: null,
14081
14081
  name: browserName,
14082
14082
  prerelease: null,
@@ -35455,7 +35455,7 @@ const configGenerator = () => {
35455
35455
  let release;
35456
35456
  try {
35457
35457
  environment !== null && environment !== void 0 ? environment : (environment = "staging");
35458
- release !== null && release !== void 0 ? release : (release = "1.1.34");
35458
+ release !== null && release !== void 0 ? release : (release = "1.1.35");
35459
35459
  }
35460
35460
  catch (_a) {
35461
35461
  console.error('sentry configGenerator error');
@@ -51802,7 +51802,7 @@ const accWidgetMachine = createMachine({
51802
51802
  [ACTIONS$6.SET_CONFIG]: assign$2((context, event) => {
51803
51803
  var _a, _b;
51804
51804
  return ({
51805
- widgetConfig: Object.assign(Object.assign({}, context.widgetConfig), event.data.data.data),
51805
+ widgetConfig: Object.assign(Object.assign(Object.assign({}, context.widgetConfig), event.data.data.data), { config: Object.assign(context.widgetConfig.config, event.data.data.data.widget_config) }),
51806
51806
  isResumed: (_b = (_a = event.data.data.data.video) === null || _a === void 0 ? void 0 : _a.videos) === null || _b === void 0 ? void 0 : _b.some((v) => v.started),
51807
51807
  });
51808
51808
  }),
@@ -54770,7 +54770,7 @@ const useAccessibility = () => {
54770
54770
  };
54771
54771
 
54772
54772
  const Widget = React.forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
54773
- const widget_version = "1.1.34";
54773
+ const widget_version = "1.1.35";
54774
54774
  const [isWidgetOpen, setIsWidgetOpen] = React.useState(false);
54775
54775
  const [isWidgetMinimized, setIsWidgetMinimized] = React.useState(false);
54776
54776
  const [isIncognitoMode, setIsIncognitoMode] = React.useState(false);