@myinterview/widget-react 1.0.50 → 1.0.51-beta-e714026

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.
@@ -11,3 +11,4 @@ export declare const VIDEO_INACTIVE_TIMEOUT = 2000;
11
11
  export declare const MICROPHONE_NO_SOUND_ERROR_CODE = 777;
12
12
  export declare const MAX_FAILED_RECORDING_ATTEMPTS = 2;
13
13
  export declare const MICROPHONE_RETAKE_COUNT = 100;
14
+ export declare const FONT_URL = "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap";
package/dist/esm/index.js CHANGED
@@ -20059,7 +20059,7 @@ function getEventForEnvelopeItem(item, type) {
20059
20059
  return Array.isArray(item) ? (item )[1] : undefined;
20060
20060
  }
20061
20061
 
20062
- const SDK_VERSION = '7.25.0';
20062
+ const SDK_VERSION = '7.26.0';
20063
20063
 
20064
20064
  let originalFunctionToString;
20065
20065
 
@@ -28667,6 +28667,8 @@ const VIDEO_INACTIVE_TIMEOUT = 2000; // 2s
28667
28667
  const MICROPHONE_NO_SOUND_ERROR_CODE = 777;
28668
28668
  const MAX_FAILED_RECORDING_ATTEMPTS = 2;
28669
28669
  const MICROPHONE_RETAKE_COUNT = 100; // By reaching this number we understand the mic is stuck / muted
28670
+ // Font
28671
+ const FONT_URL = 'https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap';
28670
28672
 
28671
28673
  /* eslint-disable react/jsx-no-useless-fragment */
28672
28674
  const VideoQuestion = ({ src, isThinkingTime, onVideoEnds, hidden = false, isWidgetMinimized, }) => {
@@ -35969,7 +35971,7 @@ const Widget = ({ candidate, job, video, config, disabled = false, buttonText =
35969
35971
  if (myinterviewRef.current && myinterviewRef.current.shadowRoot) {
35970
35972
  // @ts-ignore
35971
35973
  setIsCustomStyleProvided(typeof children === 'object' && children.type === 'style');
35972
- (Array.isArray(fontsUrls) ? fontsUrls : [fontsUrls]).forEach((fontUrl) => {
35974
+ (Array.isArray(fontsUrls) ? fontsUrls : [fontsUrls]).concat(FONT_URL).forEach((fontUrl) => {
35973
35975
  const fontsEl = document.createElement('link');
35974
35976
  fontsEl.rel = 'stylesheet';
35975
35977
  fontsEl.href = fontUrl;