@myinterview/widget-react 1.0.39-experimental → 1.0.40-beta-5021b7a

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/esm/index.js CHANGED
@@ -22016,7 +22016,7 @@ const prod_config = {
22016
22016
 
22017
22017
  // eslint-disable-next-line import/no-mutable-exports
22018
22018
  const config$1 = (configEnv) => {
22019
- switch (configEnv || (typeof process !== 'undefined' && process.env.REACT_APP_ENV)) {
22019
+ switch (configEnv || process.env.REACT_APP_ENV) {
22020
22020
  case 'development':
22021
22021
  case 'dev':
22022
22022
  case 'local':
@@ -42462,7 +42462,6 @@ var Crypto = cryptoJs.exports;
42462
42462
 
42463
42463
  const getToken = ({ type = 'apikey', value = '', secretKey = '' }) => `${type} ${value} sig=${Crypto.HmacSHA256(`${type + value}sig=`, secretKey).toString()}`;
42464
42464
 
42465
- console.log('Widget Env:', process.env.REACT_APP_ENV);
42466
42465
  const Widget = ({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, }) => {
42467
42466
  const [isWidgetOpen, setIsWidgetOpen] = useState(false);
42468
42467
  const [isWidgetMinimized, setIsWidgetMinimized] = useState(false);
@@ -42493,7 +42492,9 @@ const Widget = ({ candidate, job, video, config, disabled = false, buttonText =
42493
42492
  });
42494
42493
  }, [candidate.email]);
42495
42494
  useEffect(() => {
42496
- updateVideoAxiosBaseURL(config$1(config.env).serverUrl);
42495
+ if (config.env) {
42496
+ updateVideoAxiosBaseURL(config$1(config.env).serverUrl);
42497
+ }
42497
42498
  }, [config.env]);
42498
42499
  const setLayoutStyleProperties = () => {
42499
42500
  if (mainRef.current) {