@myinterview/widget-react 1.0.53-experimental-11 → 1.0.53-experimental-12
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/index.js +11 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +11 -10
- package/dist/esm/index.js.map +1 -1
- package/package.json +16 -18
package/dist/esm/index.js
CHANGED
|
@@ -45718,11 +45718,10 @@ const MinimizeButton = ({ onClick }) => (React__default.createElement("div", { c
|
|
|
45718
45718
|
const isRtl = (language = 'en') => ['he', 'ar'].includes(language);
|
|
45719
45719
|
|
|
45720
45720
|
const Main = ({ widgetConfig, setShouldShowWaterMark, myinterviewRef, isWidgetMinimized, onMinimize }) => {
|
|
45721
|
-
const { boot, shutdown } = useIntercom();
|
|
45721
|
+
const { boot, shutdown, update } = useIntercom();
|
|
45722
45722
|
const viewsRef = useRef(null);
|
|
45723
45723
|
const videoRef = useRef(null);
|
|
45724
45724
|
const [machine, send] = useMachine(() => accWidgetMachine.withContext(Object.assign(Object.assign({}, accWidgetMachine.context), { widgetConfig, videoRef })));
|
|
45725
|
-
const { update } = useIntercom();
|
|
45726
45725
|
const [isSliderModalOpen, setIsSliderModalOpen] = useState(false);
|
|
45727
45726
|
const { recorderRef, widgetConfig: { job, candidate, video, company, config }, error } = machine.context;
|
|
45728
45727
|
const isErrorState = machine.matches(STATES$4.ERROR);
|
|
@@ -45764,14 +45763,16 @@ const Main = ({ widgetConfig, setShouldShowWaterMark, myinterviewRef, isWidgetMi
|
|
|
45764
45763
|
}
|
|
45765
45764
|
}, [machine.done]);
|
|
45766
45765
|
useEffect(() => {
|
|
45767
|
-
|
|
45768
|
-
|
|
45769
|
-
|
|
45770
|
-
|
|
45771
|
-
|
|
45772
|
-
|
|
45773
|
-
|
|
45774
|
-
|
|
45766
|
+
if (!config.hideIntercom) {
|
|
45767
|
+
update({
|
|
45768
|
+
customAttributes: {
|
|
45769
|
+
apiKey: candidate === null || candidate === void 0 ? void 0 : candidate.apiKey,
|
|
45770
|
+
company_id: candidate === null || candidate === void 0 ? void 0 : candidate.company_id,
|
|
45771
|
+
name: candidate === null || candidate === void 0 ? void 0 : candidate.username,
|
|
45772
|
+
email: candidate === null || candidate === void 0 ? void 0 : candidate.email,
|
|
45773
|
+
},
|
|
45774
|
+
});
|
|
45775
|
+
}
|
|
45775
45776
|
}, [candidate]);
|
|
45776
45777
|
useEffect(() => {
|
|
45777
45778
|
var _a, _b;
|