@myinterview/widget-react 1.1.34 → 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/cjs/index.js +8 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
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: (
|
|
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,
|
|
@@ -35409,7 +35409,7 @@ const prod_config = {
|
|
|
35409
35409
|
const config$1 = (configEnv) => {
|
|
35410
35410
|
let env = configEnv;
|
|
35411
35411
|
try {
|
|
35412
|
-
env !== null && env !== void 0 ? env : (env = "
|
|
35412
|
+
env !== null && env !== void 0 ? env : (env = "staging");
|
|
35413
35413
|
}
|
|
35414
35414
|
catch (_a) { }
|
|
35415
35415
|
switch (env) {
|
|
@@ -35428,8 +35428,8 @@ const configGenerator = () => {
|
|
|
35428
35428
|
let environment;
|
|
35429
35429
|
let release;
|
|
35430
35430
|
try {
|
|
35431
|
-
environment !== null && environment !== void 0 ? environment : (environment = "
|
|
35432
|
-
release !== null && release !== void 0 ? release : (release = "1.1.
|
|
35431
|
+
environment !== null && environment !== void 0 ? environment : (environment = "staging");
|
|
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.
|
|
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);
|