@myinterview/widget-react 1.1.12 → 1.1.13-beta-b6550a6

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
@@ -44237,7 +44237,7 @@ var EVENTS$1;
44237
44237
  EVENTS["CONNECTION_CHANGED"] = "CONNECTION_CHANGED";
44238
44238
  })(EVENTS$1 || (EVENTS$1 = {}));
44239
44239
 
44240
- const createVideo = (widgetConfig) => videoAxiosInstance.post('/video', widgetConfig);
44240
+ const createVideo = (widgetConfig, event_id) => videoAxiosInstance.post('/video', widgetConfig, { headers: Object.assign({}, (event_id && { 'x-event_id': event_id })) });
44241
44241
  const getVideo = (videoId) => videoAxiosInstance.get(`/video/${videoId}`);
44242
44242
  const updateVideo = ({ video_id, started, completed, uploaded, bandwidth }) => videoAxiosInstance.patch(`/video/${video_id}`, { video: { video_id, started, completed, uploaded, bandwidth } });
44243
44243
  const updateVideoFile = (videoId, videoFile) => videoAxiosInstance.patch(`/video/${videoId}/part/${videoFile.filename}`, videoFile);
@@ -44698,7 +44698,7 @@ const accWidgetMachine = createMachine({
44698
44698
  tags: [TAGS.LOADING],
44699
44699
  invoke: {
44700
44700
  id: 'createVideo',
44701
- src: ({ widgetConfig: { candidate, job, video } }) => createVideo({ candidate, job, video }),
44701
+ src: ({ widgetConfig: { candidate, job, video, config } }) => createVideo({ candidate, job, video }, config.event_id),
44702
44702
  onDone: [
44703
44703
  {
44704
44704
  actions: [ACTIONS$6.SET_CONFIG, ACTIONS$6.SET_EVENT_ID, ACTIONS$6.SET_SESSION, { type: ACTIONS$6.CONSOLE_DEBUG, data: { message: DEBUG.INTERVIEW_DATA_RECEIVED } }],