@myinterview/widget-react 1.1.36-development-131318b → 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 CHANGED
@@ -35455,7 +35455,7 @@ const configGenerator = () => {
35455
35455
  let release;
35456
35456
  try {
35457
35457
  environment !== null && environment !== void 0 ? environment : (environment = "staging");
35458
- release !== null && release !== void 0 ? release : (release = "1.1.36");
35458
+ release !== null && release !== void 0 ? release : (release = "1.1.37");
35459
35459
  }
35460
35460
  catch (_a) {
35461
35461
  console.error('sentry configGenerator error');
@@ -50796,13 +50796,13 @@ const accUploaderMachine = createMachine({
50796
50796
  [STATES$2.UPLOAD_TO_S3]: {
50797
50797
  on: {
50798
50798
  progress: {
50799
- actions: [ACTIONS$2.UPDATE_UPLOAD_SPEED, ACTIONS$2.SEND_UPLOAD_PROGRESS],
50799
+ actions: [ACTIONS$2.CONSOLE_LOG, ACTIONS$2.UPDATE_UPLOAD_SPEED, ACTIONS$2.SEND_UPLOAD_PROGRESS],
50800
50800
  },
50801
50801
  },
50802
50802
  entry: [ACTIONS$2.INITIAL_UPLOAD_TIMESTAMP],
50803
50803
  invoke: {
50804
50804
  id: 'uploadToS3',
50805
- src: ({ signedUrl, file }) => (callback) => uploadToS3(signedUrl, file, callback),
50805
+ src: ({ signedUrl, file }) => (callback) => uploadToS3(signedUrl, file, (e) => callback({ type: 'progress', data: e })),
50806
50806
  onDone: {
50807
50807
  target: `#uploader.${STATES$2.UPLOADED}`,
50808
50808
  },
@@ -50864,12 +50864,11 @@ const accUploaderMachine = createMachine({
50864
50864
  });
50865
50865
  }),
50866
50866
  [ACTIONS$2.INITIAL_UPLOAD_TIMESTAMP]: assign$2(({ lastUploadChunk }) => ({ lastUploadChunk: Object.assign(Object.assign({}, lastUploadChunk), { timeStamp: performance.now() }) })),
50867
- // @ts-ignore
50868
- [ACTIONS$2.UPDATE_UPLOAD_SPEED]: assign$2(({ lastUploadChunk }, { total, loaded, timeStamp }) => ({
50867
+ [ACTIONS$2.UPDATE_UPLOAD_SPEED]: assign$2(({ lastUploadChunk }, { data: { total, loaded, event: { timeStamp } } }) => ({
50869
50868
  uploadSpeed: total !== loaded ? Number((((loaded - lastUploadChunk.loaded) / ONE_MB_IN_BYTES) / ((timeStamp - lastUploadChunk.timeStamp) / 1000)).toFixed(2)) : 0,
50870
50869
  lastUploadChunk: { loaded, timeStamp },
50871
50870
  })),
50872
- [ACTIONS$2.SEND_UPLOAD_PROGRESS]: sendParent$1(({ currentQuestion, uploadSpeed }, event) => ({ type: EVENTS$5.UPLOADER_PROGRESS, data: { questionNumber: currentQuestion, progressEvent: event, uploadSpeed } })),
50871
+ [ACTIONS$2.SEND_UPLOAD_PROGRESS]: sendParent$1(({ currentQuestion, uploadSpeed }, event) => ({ type: EVENTS$5.UPLOADER_PROGRESS, data: { questionNumber: currentQuestion, progressEvent: event.data, uploadSpeed } })),
50873
50872
  [ACTIONS$2.UPDATE_PARENT]: sendParent$1(({ currentQuestion, videoFile }) => ({ type: EVENTS$5.UPLOADER_FINISHED, data: { questionNumber: currentQuestion, videoFile } })),
50874
50873
  },
50875
50874
  guards: {
@@ -54770,7 +54769,7 @@ const useAccessibility = () => {
54770
54769
  };
54771
54770
 
54772
54771
  const Widget = React.forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
54773
- const widget_version = "1.1.36";
54772
+ const widget_version = "1.1.37";
54774
54773
  const [isWidgetOpen, setIsWidgetOpen] = React.useState(false);
54775
54774
  const [isWidgetMinimized, setIsWidgetMinimized] = React.useState(false);
54776
54775
  const [isIncognitoMode, setIsIncognitoMode] = React.useState(false);