@myinterview/widget-react 1.1.36 → 1.1.37-development-8b9280b
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 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -9
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -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.37");
|
|
35433
35433
|
}
|
|
35434
35434
|
catch (_a) {
|
|
35435
35435
|
console.error('sentry configGenerator error');
|
|
@@ -50770,13 +50770,13 @@ const accUploaderMachine = createMachine({
|
|
|
50770
50770
|
[STATES$2.UPLOAD_TO_S3]: {
|
|
50771
50771
|
on: {
|
|
50772
50772
|
progress: {
|
|
50773
|
-
actions: [ACTIONS$2.UPDATE_UPLOAD_SPEED, ACTIONS$2.SEND_UPLOAD_PROGRESS],
|
|
50773
|
+
actions: [ACTIONS$2.CONSOLE_LOG, ACTIONS$2.UPDATE_UPLOAD_SPEED, ACTIONS$2.SEND_UPLOAD_PROGRESS],
|
|
50774
50774
|
},
|
|
50775
50775
|
},
|
|
50776
50776
|
entry: [ACTIONS$2.INITIAL_UPLOAD_TIMESTAMP],
|
|
50777
50777
|
invoke: {
|
|
50778
50778
|
id: 'uploadToS3',
|
|
50779
|
-
src: ({ signedUrl, file }) => (callback) => uploadToS3(signedUrl, file, callback),
|
|
50779
|
+
src: ({ signedUrl, file }) => (callback) => uploadToS3(signedUrl, file, (e) => callback({ type: 'progress', data: e })),
|
|
50780
50780
|
onDone: {
|
|
50781
50781
|
target: `#uploader.${STATES$2.UPLOADED}`,
|
|
50782
50782
|
},
|
|
@@ -50838,12 +50838,11 @@ const accUploaderMachine = createMachine({
|
|
|
50838
50838
|
});
|
|
50839
50839
|
}),
|
|
50840
50840
|
[ACTIONS$2.INITIAL_UPLOAD_TIMESTAMP]: assign$2(({ lastUploadChunk }) => ({ lastUploadChunk: Object.assign(Object.assign({}, lastUploadChunk), { timeStamp: performance.now() }) })),
|
|
50841
|
-
|
|
50842
|
-
[ACTIONS$2.UPDATE_UPLOAD_SPEED]: assign$2(({ lastUploadChunk }, { total, loaded, timeStamp }) => ({
|
|
50841
|
+
[ACTIONS$2.UPDATE_UPLOAD_SPEED]: assign$2(({ lastUploadChunk }, { data: { total, loaded, event: { timeStamp } } }) => ({
|
|
50843
50842
|
uploadSpeed: total !== loaded ? Number((((loaded - lastUploadChunk.loaded) / ONE_MB_IN_BYTES) / ((timeStamp - lastUploadChunk.timeStamp) / 1000)).toFixed(2)) : 0,
|
|
50844
50843
|
lastUploadChunk: { loaded, timeStamp },
|
|
50845
50844
|
})),
|
|
50846
|
-
[ACTIONS$2.SEND_UPLOAD_PROGRESS]: sendParent$1(({ currentQuestion, uploadSpeed }, event) => ({ type: EVENTS$5.UPLOADER_PROGRESS, data: { questionNumber: currentQuestion, progressEvent: event, uploadSpeed } })),
|
|
50845
|
+
[ACTIONS$2.SEND_UPLOAD_PROGRESS]: sendParent$1(({ currentQuestion, uploadSpeed }, event) => ({ type: EVENTS$5.UPLOADER_PROGRESS, data: { questionNumber: currentQuestion, progressEvent: event.data, uploadSpeed } })),
|
|
50847
50846
|
[ACTIONS$2.UPDATE_PARENT]: sendParent$1(({ currentQuestion, videoFile }) => ({ type: EVENTS$5.UPLOADER_FINISHED, data: { questionNumber: currentQuestion, videoFile } })),
|
|
50848
50847
|
},
|
|
50849
50848
|
guards: {
|
|
@@ -54744,7 +54743,7 @@ const useAccessibility = () => {
|
|
|
54744
54743
|
};
|
|
54745
54744
|
|
|
54746
54745
|
const Widget = forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
|
|
54747
|
-
const widget_version = "1.1.
|
|
54746
|
+
const widget_version = "1.1.37";
|
|
54748
54747
|
const [isWidgetOpen, setIsWidgetOpen] = useState(false);
|
|
54749
54748
|
const [isWidgetMinimized, setIsWidgetMinimized] = useState(false);
|
|
54750
54749
|
const [isIncognitoMode, setIsIncognitoMode] = useState(false);
|