@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.
- package/dist/cjs/components/Widget.d.ts +0 -1
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/constants.utils.d.ts +1 -0
- package/dist/esm/components/Widget.d.ts +0 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/constants.utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
@@ -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;
|