@myinterview/widget-react 1.0.31-2 → 1.0.31-3
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
|
@@ -34870,7 +34870,7 @@ const Main = ({ widgetConfig, setShouldShowWaterMark, isWidgetMinimized }) => {
|
|
|
34870
34870
|
const [machine, send] = useMachine(() => accWidgetMachine.withContext(Object.assign(Object.assign({}, accWidgetMachine.context), { widgetConfig, videoRef })));
|
|
34871
34871
|
const { update } = useIntercom();
|
|
34872
34872
|
const [isSliderModalOpen, setIsSliderModalOpen] = useState(false);
|
|
34873
|
-
const { recorderRef, widgetConfig: { job, candidate, video, company }, error } = machine.context;
|
|
34873
|
+
const { recorderRef, widgetConfig: { job, candidate, video, company, config }, error } = machine.context;
|
|
34874
34874
|
const isErrorState = machine.matches(STATES$4.ERROR);
|
|
34875
34875
|
const isLoading = machine.hasTag(TAGS.LOADING);
|
|
34876
34876
|
const isSetupState = machine.matches(STATES$4.SETUP);
|
|
@@ -34885,9 +34885,11 @@ const Main = ({ widgetConfig, setShouldShowWaterMark, isWidgetMinimized }) => {
|
|
|
34885
34885
|
};
|
|
34886
34886
|
document.documentElement.style.setProperty('--myitnerview-widget-background-height', 'calc(40vh - 100px)');
|
|
34887
34887
|
window.addEventListener('beforeunload', handleReload);
|
|
34888
|
-
|
|
34889
|
-
|
|
34890
|
-
|
|
34888
|
+
if (!config.hideIntercom) {
|
|
34889
|
+
boot({
|
|
34890
|
+
customAttributes: { is_new_widget: true },
|
|
34891
|
+
});
|
|
34892
|
+
}
|
|
34891
34893
|
return () => {
|
|
34892
34894
|
window.removeEventListener('beforeunload', handleReload);
|
|
34893
34895
|
shutdown();
|