@myinterview/widget-react 1.0.53-experimental-10 → 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 +19 -21
package/dist/cjs/index.js
CHANGED
|
@@ -45744,11 +45744,10 @@ const MinimizeButton = ({ onClick }) => (React__default["default"].createElement
|
|
|
45744
45744
|
const isRtl = (language = 'en') => ['he', 'ar'].includes(language);
|
|
45745
45745
|
|
|
45746
45746
|
const Main = ({ widgetConfig, setShouldShowWaterMark, myinterviewRef, isWidgetMinimized, onMinimize }) => {
|
|
45747
|
-
const { boot, shutdown } = useIntercom();
|
|
45747
|
+
const { boot, shutdown, update } = useIntercom();
|
|
45748
45748
|
const viewsRef = React.useRef(null);
|
|
45749
45749
|
const videoRef = React.useRef(null);
|
|
45750
45750
|
const [machine, send] = useMachine(() => accWidgetMachine.withContext(Object.assign(Object.assign({}, accWidgetMachine.context), { widgetConfig, videoRef })));
|
|
45751
|
-
const { update } = useIntercom();
|
|
45752
45751
|
const [isSliderModalOpen, setIsSliderModalOpen] = React.useState(false);
|
|
45753
45752
|
const { recorderRef, widgetConfig: { job, candidate, video, company, config }, error } = machine.context;
|
|
45754
45753
|
const isErrorState = machine.matches(STATES$4.ERROR);
|
|
@@ -45790,14 +45789,16 @@ const Main = ({ widgetConfig, setShouldShowWaterMark, myinterviewRef, isWidgetMi
|
|
|
45790
45789
|
}
|
|
45791
45790
|
}, [machine.done]);
|
|
45792
45791
|
React.useEffect(() => {
|
|
45793
|
-
|
|
45794
|
-
|
|
45795
|
-
|
|
45796
|
-
|
|
45797
|
-
|
|
45798
|
-
|
|
45799
|
-
|
|
45800
|
-
|
|
45792
|
+
if (!config.hideIntercom) {
|
|
45793
|
+
update({
|
|
45794
|
+
customAttributes: {
|
|
45795
|
+
apiKey: candidate === null || candidate === void 0 ? void 0 : candidate.apiKey,
|
|
45796
|
+
company_id: candidate === null || candidate === void 0 ? void 0 : candidate.company_id,
|
|
45797
|
+
name: candidate === null || candidate === void 0 ? void 0 : candidate.username,
|
|
45798
|
+
email: candidate === null || candidate === void 0 ? void 0 : candidate.email,
|
|
45799
|
+
},
|
|
45800
|
+
});
|
|
45801
|
+
}
|
|
45801
45802
|
}, [candidate]);
|
|
45802
45803
|
React.useEffect(() => {
|
|
45803
45804
|
var _a, _b;
|