@myinterview/widget-react 1.1.52 → 1.1.53-development-2e405f2
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 +10 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -14054,7 +14054,7 @@ var platform$1 = platform$2.exports;
|
|
|
14054
14054
|
UAParser.DEVICE = enumerize([MODEL, VENDOR, TYPE, CONSOLE, MOBILE, SMARTTV, TABLET, WEARABLE, EMBEDDED]);
|
|
14055
14055
|
UAParser.ENGINE = UAParser.OS = enumerize([NAME, VERSION$1]);
|
|
14056
14056
|
|
|
14057
|
-
var _a, _b, _c, _d, _e, _f;
|
|
14057
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
14058
14058
|
const getUAParserData = (userAgent) => {
|
|
14059
14059
|
var _a, _b;
|
|
14060
14060
|
if (userAgent) {
|
|
@@ -14088,13 +14088,13 @@ const getUAParserData = (userAgent) => {
|
|
|
14088
14088
|
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); })
|
|
14089
14089
|
|| ((_a = platform$1.name) === null || _a === void 0 ? void 0 : _a.includes('Mobile'))
|
|
14090
14090
|
|| (navigator.maxTouchPoints > 2 && /MacIntel/.test(navigator.platform)); // For iPads
|
|
14091
|
-
const validNumericVersion = Number((((_b = platform$1.os) === null || _b === void 0 ? void 0 : _b.version)
|
|
14092
|
-
const isAndroid = ((
|
|
14093
|
-
const isIphone = ((
|
|
14091
|
+
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('.'));
|
|
14092
|
+
const isAndroid = ((_d = platform$1.os) === null || _d === void 0 ? void 0 : _d.family) === 'Android';
|
|
14093
|
+
const isIphone = ((_e = platform$1.os) === null || _e === void 0 ? void 0 : _e.family) === 'iOS';
|
|
14094
14094
|
const isFireFox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
14095
|
-
const isSupportedIosDevice = (((
|
|
14095
|
+
const isSupportedIosDevice = (((_f = platform$1.os) === null || _f === void 0 ? void 0 : _f.family) !== 'iOS' || (validNumericVersion || 14.4) >= 14.4);
|
|
14096
14096
|
const isSupportedDevice = 'MediaRecorder' in window && isSupportedIosDevice;
|
|
14097
|
-
const hasRotatedCameraIssue = (((
|
|
14097
|
+
const hasRotatedCameraIssue = (((_g = platform$1.os) === null || _g === void 0 ? void 0 : _g.family) === 'iOS' && validNumericVersion >= 18.4 && validNumericVersion < 18.6);
|
|
14098
14098
|
const PLATFORMS_OPTIONS = ['ANDROID', 'IOS', 'MACBOOK', 'WINDOWS'];
|
|
14099
14099
|
const BROWSERS_OPTIONS = ['CHROME', 'SAFARI', 'FIREFOX', 'SAMSUNG'];
|
|
14100
14100
|
const DEVICE = {
|
|
@@ -35429,7 +35429,7 @@ const prod_config = {
|
|
|
35429
35429
|
const config$1 = (configEnv) => {
|
|
35430
35430
|
let env = configEnv;
|
|
35431
35431
|
try {
|
|
35432
|
-
env !== null && env !== void 0 ? env : (env = "
|
|
35432
|
+
env !== null && env !== void 0 ? env : (env = "staging");
|
|
35433
35433
|
}
|
|
35434
35434
|
catch (_a) { }
|
|
35435
35435
|
switch (env) {
|
|
@@ -35448,8 +35448,8 @@ const configGenerator = () => {
|
|
|
35448
35448
|
let environment;
|
|
35449
35449
|
let release;
|
|
35450
35450
|
try {
|
|
35451
|
-
environment !== null && environment !== void 0 ? environment : (environment = "
|
|
35452
|
-
release !== null && release !== void 0 ? release : (release = "1.1.
|
|
35451
|
+
environment !== null && environment !== void 0 ? environment : (environment = "staging");
|
|
35452
|
+
release !== null && release !== void 0 ? release : (release = "1.1.53");
|
|
35453
35453
|
}
|
|
35454
35454
|
catch (_a) {
|
|
35455
35455
|
console.error('sentry configGenerator error');
|
|
@@ -55095,7 +55095,7 @@ const DivComponent = React__default.forwardRef((_a, ref) => {
|
|
|
55095
55095
|
return React__default.createElement("div", Object.assign({ ref: ref }, props), children);
|
|
55096
55096
|
});
|
|
55097
55097
|
const Widget = forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
|
|
55098
|
-
const widget_version = "1.1.
|
|
55098
|
+
const widget_version = "1.1.53";
|
|
55099
55099
|
const [isWidgetOpen, setIsWidgetOpen] = useState(false);
|
|
55100
55100
|
const [isWidgetMinimized, setIsWidgetMinimized] = useState(false);
|
|
55101
55101
|
const [isIncognitoMode, setIsIncognitoMode] = useState(false);
|