@myinterview/widget-react 1.1.52 → 1.1.53-beta-700b5ee

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
@@ -14080,7 +14080,7 @@ var platform$1 = platform$2.exports;
14080
14080
  UAParser.DEVICE = enumerize([MODEL, VENDOR, TYPE, CONSOLE, MOBILE, SMARTTV, TABLET, WEARABLE, EMBEDDED]);
14081
14081
  UAParser.ENGINE = UAParser.OS = enumerize([NAME, VERSION$1]);
14082
14082
 
14083
- var _a, _b, _c, _d, _e, _f;
14083
+ var _a, _b, _c, _d, _e, _f, _g;
14084
14084
  const getUAParserData = (userAgent) => {
14085
14085
  var _a, _b;
14086
14086
  if (userAgent) {
@@ -14114,13 +14114,13 @@ const getUAParserData = (userAgent) => {
14114
14114
  const isMobile = ['Android', 'iOS'].some((os) => { var _a, _b; return (_b = (_a = platform$1.os) === null || _a === void 0 ? void 0 : _a.family) === null || _b === void 0 ? void 0 : _b.includes(os); })
14115
14115
  || ((_a = platform$1.name) === null || _a === void 0 ? void 0 : _a.includes('Mobile'))
14116
14116
  || (navigator.maxTouchPoints > 2 && /MacIntel/.test(navigator.platform)); // For iPads
14117
- const validNumericVersion = Number((((_b = platform$1.os) === null || _b === void 0 ? void 0 : _b.version) || '14.4').split('.').slice(0, 2).join('.'));
14118
- const isAndroid = ((_c = platform$1.os) === null || _c === void 0 ? void 0 : _c.family) === 'Android';
14119
- const isIphone = ((_d = platform$1.os) === null || _d === void 0 ? void 0 : _d.family) === 'iOS';
14117
+ const validNumericVersion = Number(((_c = (_b = platform$1.os) === null || _b === void 0 ? void 0 : _b.version) !== null && _c !== void 0 ? _c : '').split('.').slice(0, 2).join('.'));
14118
+ const isAndroid = ((_d = platform$1.os) === null || _d === void 0 ? void 0 : _d.family) === 'Android';
14119
+ const isIphone = ((_e = platform$1.os) === null || _e === void 0 ? void 0 : _e.family) === 'iOS';
14120
14120
  const isFireFox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
14121
- const isSupportedIosDevice = (((_e = platform$1.os) === null || _e === void 0 ? void 0 : _e.family) !== 'iOS' || validNumericVersion >= 14.4);
14121
+ const isSupportedIosDevice = (((_f = platform$1.os) === null || _f === void 0 ? void 0 : _f.family) !== 'iOS' || (validNumericVersion || 14.4) >= 14.4);
14122
14122
  const isSupportedDevice = 'MediaRecorder' in window && isSupportedIosDevice;
14123
- const hasRotatedCameraIssue = (((_f = platform$1.os) === null || _f === void 0 ? void 0 : _f.family) === 'iOS' && validNumericVersion >= 18.4 && validNumericVersion < 19);
14123
+ const hasRotatedCameraIssue = (((_g = platform$1.os) === null || _g === void 0 ? void 0 : _g.family) === 'iOS' && validNumericVersion >= 18.4 && validNumericVersion < 18.6);
14124
14124
  const PLATFORMS_OPTIONS = ['ANDROID', 'IOS', 'MACBOOK', 'WINDOWS'];
14125
14125
  const BROWSERS_OPTIONS = ['CHROME', 'SAFARI', 'FIREFOX', 'SAMSUNG'];
14126
14126
  const DEVICE = {
@@ -35455,7 +35455,7 @@ const prod_config = {
35455
35455
  const config$1 = (configEnv) => {
35456
35456
  let env = configEnv;
35457
35457
  try {
35458
- env !== null && env !== void 0 ? env : (env = "prod");
35458
+ env !== null && env !== void 0 ? env : (env = "staging");
35459
35459
  }
35460
35460
  catch (_a) { }
35461
35461
  switch (env) {
@@ -35474,8 +35474,8 @@ const configGenerator = () => {
35474
35474
  let environment;
35475
35475
  let release;
35476
35476
  try {
35477
- environment !== null && environment !== void 0 ? environment : (environment = "prod");
35478
- release !== null && release !== void 0 ? release : (release = "1.1.52");
35477
+ environment !== null && environment !== void 0 ? environment : (environment = "staging");
35478
+ release !== null && release !== void 0 ? release : (release = "1.1.53");
35479
35479
  }
35480
35480
  catch (_a) {
35481
35481
  console.error('sentry configGenerator error');
@@ -55121,7 +55121,7 @@ const DivComponent = React__default["default"].forwardRef((_a, ref) => {
55121
55121
  return React__default["default"].createElement("div", Object.assign({ ref: ref }, props), children);
55122
55122
  });
55123
55123
  const Widget = React.forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
55124
- const widget_version = "1.1.52";
55124
+ const widget_version = "1.1.53";
55125
55125
  const [isWidgetOpen, setIsWidgetOpen] = React.useState(false);
55126
55126
  const [isWidgetMinimized, setIsWidgetMinimized] = React.useState(false);
55127
55127
  const [isIncognitoMode, setIsIncognitoMode] = React.useState(false);