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

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/esm/index.js CHANGED
@@ -14038,7 +14038,7 @@ var platform$1 = platform$2.exports;
14038
14038
 
14039
14039
  var _a, _b, _c, _d, _e;
14040
14040
  const getUAParserData = (userAgent) => {
14041
- var _a;
14041
+ var _a, _b;
14042
14042
  if (userAgent) {
14043
14043
  const uaParserData = new UAParser(userAgent);
14044
14044
  const Parser = uaParserData.getResult();
@@ -14047,10 +14047,10 @@ const getUAParserData = (userAgent) => {
14047
14047
  const browserVersion = Parser.browser.version;
14048
14048
  const osName = Parser.os.name;
14049
14049
  const osVersion = Parser.os.version;
14050
- const hints = Parser.withFeatureCheck();
14050
+ const hints = (_a = Parser.withFeatureCheck) === null || _a === void 0 ? void 0 : _a.call(Parser);
14051
14051
  return {
14052
14052
  description: `${browserName} ${browserVersion} on ${osName} ${osVersion}`,
14053
- layout: (_a = Parser === null || Parser === void 0 ? void 0 : Parser.engine) === null || _a === void 0 ? void 0 : _a.name,
14053
+ layout: (_b = Parser === null || Parser === void 0 ? void 0 : Parser.engine) === null || _b === void 0 ? void 0 : _b.name,
14054
14054
  manufacturer: null,
14055
14055
  name: browserName,
14056
14056
  prerelease: null,
@@ -35429,7 +35429,7 @@ const configGenerator = () => {
35429
35429
  let release;
35430
35430
  try {
35431
35431
  environment !== null && environment !== void 0 ? environment : (environment = "staging");
35432
- release !== null && release !== void 0 ? release : (release = "1.1.34");
35432
+ release !== null && release !== void 0 ? release : (release = "1.1.35");
35433
35433
  }
35434
35434
  catch (_a) {
35435
35435
  console.error('sentry configGenerator error');
@@ -51776,7 +51776,7 @@ const accWidgetMachine = createMachine({
51776
51776
  [ACTIONS$6.SET_CONFIG]: assign$2((context, event) => {
51777
51777
  var _a, _b;
51778
51778
  return ({
51779
- widgetConfig: Object.assign(Object.assign({}, context.widgetConfig), event.data.data.data),
51779
+ 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) }),
51780
51780
  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),
51781
51781
  });
51782
51782
  }),
@@ -54744,7 +54744,7 @@ const useAccessibility = () => {
54744
54744
  };
54745
54745
 
54746
54746
  const Widget = forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
54747
- const widget_version = "1.1.34";
54747
+ const widget_version = "1.1.35";
54748
54748
  const [isWidgetOpen, setIsWidgetOpen] = useState(false);
54749
54749
  const [isWidgetMinimized, setIsWidgetMinimized] = useState(false);
54750
54750
  const [isIncognitoMode, setIsIncognitoMode] = useState(false);