@myinterview/widget-react 1.0.51-experimental-6 → 1.0.51

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.
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
2
  import { IClientWidgetConfig } from '../interfaces/configInterface';
3
- import '../assets/styles/font.scss';
4
3
  export declare const Widget: React.FC<IClientWidgetConfig>;
package/dist/cjs/index.js CHANGED
@@ -28693,6 +28693,8 @@ const VIDEO_INACTIVE_TIMEOUT = 2000; // 2s
28693
28693
  const MICROPHONE_NO_SOUND_ERROR_CODE = 777;
28694
28694
  const MAX_FAILED_RECORDING_ATTEMPTS = 2;
28695
28695
  const MICROPHONE_RETAKE_COUNT = 100; // By reaching this number we understand the mic is stuck / muted
28696
+ // Font
28697
+ const FONT_URL = 'https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap';
28696
28698
 
28697
28699
  /* eslint-disable react/jsx-no-useless-fragment */
28698
28700
  const VideoQuestion = ({ src, isThinkingTime, onVideoEnds, hidden = false, isWidgetMinimized, }) => {
@@ -35995,7 +35997,7 @@ const Widget = ({ candidate, job, video, config, disabled = false, buttonText =
35995
35997
  if (myinterviewRef.current && myinterviewRef.current.shadowRoot) {
35996
35998
  // @ts-ignore
35997
35999
  setIsCustomStyleProvided(typeof children === 'object' && children.type === 'style');
35998
- (Array.isArray(fontsUrls) ? fontsUrls : [fontsUrls]).forEach((fontUrl) => {
36000
+ (Array.isArray(fontsUrls) ? fontsUrls : [fontsUrls]).concat(FONT_URL).forEach((fontUrl) => {
35999
36001
  const fontsEl = document.createElement('link');
36000
36002
  fontsEl.rel = 'stylesheet';
36001
36003
  fontsEl.href = fontUrl;