@myinterview/widget-react 1.1.24-export-ref-actions → 1.1.25-development-aadf19b
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 +2 -5
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +3 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/configInterface.d.ts +0 -4
- package/dist/esm/components/Widget.d.ts +2 -5
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +3 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/configInterface.d.ts +0 -4
- package/dist/index.d.ts +22 -29
- package/package.json +1 -1
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const Widget: React.
|
|
4
|
-
job: import("../interfaces/jobInterface").IClientJob;
|
|
5
|
-
config: import("../interfaces/configInterface").IClientConfig;
|
|
6
|
-
} & React.RefAttributes<IWidgetRef>>;
|
|
2
|
+
import { IClientWidgetConfig } from '../interfaces/configInterface';
|
|
3
|
+
export declare const Widget: React.FC<IClientWidgetConfig>;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Widget } from './components/Widget';
|
|
2
|
-
import { IWidgetConfig, IClientWidgetConfig
|
|
2
|
+
import { IWidgetConfig, IClientWidgetConfig } from './interfaces/configInterface';
|
|
3
3
|
export { Widget };
|
|
4
|
-
export type { IWidgetConfig, IClientWidgetConfig
|
|
4
|
+
export type { IWidgetConfig, IClientWidgetConfig };
|
package/dist/esm/index.js
CHANGED
|
@@ -30232,7 +30232,7 @@ const configGenerator = () => {
|
|
|
30232
30232
|
let release;
|
|
30233
30233
|
try {
|
|
30234
30234
|
environment !== null && environment !== void 0 ? environment : (environment = "staging");
|
|
30235
|
-
release !== null && release !== void 0 ? release : (release = "1.1.
|
|
30235
|
+
release !== null && release !== void 0 ? release : (release = "1.1.25");
|
|
30236
30236
|
}
|
|
30237
30237
|
catch (_a) {
|
|
30238
30238
|
console.error('sentry configGenerator error');
|
|
@@ -48529,7 +48529,7 @@ const useAccessibility = () => {
|
|
|
48529
48529
|
return { setSitekey, shutdown };
|
|
48530
48530
|
};
|
|
48531
48531
|
|
|
48532
|
-
const Widget =
|
|
48532
|
+
const Widget = ({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }) => {
|
|
48533
48533
|
const [isWidgetOpen, setIsWidgetOpen] = useState(false);
|
|
48534
48534
|
const [isWidgetMinimized, setIsWidgetMinimized] = useState(false);
|
|
48535
48535
|
const [isIncognitoMode, setIsIncognitoMode] = useState(false);
|
|
@@ -48625,10 +48625,6 @@ const Widget = forwardRef(({ candidate, job, video, config, disabled = false, bu
|
|
|
48625
48625
|
emitTrackEvent({ eventType: EVENT_TYPES.WIDGET_MINIMIZED });
|
|
48626
48626
|
shutdown();
|
|
48627
48627
|
};
|
|
48628
|
-
useImperativeHandle(clientRef, () => ({
|
|
48629
|
-
open: () => { var _a; return (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.click(); },
|
|
48630
|
-
close: onMinimize,
|
|
48631
|
-
}), []);
|
|
48632
48628
|
const layoutClassNames = classNames({
|
|
48633
48629
|
'myinterview-widget__layout': true,
|
|
48634
48630
|
'myinterview-widget-no-select': true,
|
|
@@ -48661,7 +48657,7 @@ const Widget = forwardRef(({ candidate, job, video, config, disabled = false, bu
|
|
|
48661
48657
|
video: Object.assign(Object.assign({}, video), { referrer: (video === null || video === void 0 ? void 0 : video.referrer) || window.location.href }),
|
|
48662
48658
|
candidate,
|
|
48663
48659
|
}, setShouldShowWaterMark: setShouldShowWaterMark, isWidgetMinimized: isWidgetMinimized, onMinimize: onMinimize }))))))))));
|
|
48664
|
-
}
|
|
48660
|
+
};
|
|
48665
48661
|
|
|
48666
48662
|
export { Widget };
|
|
48667
48663
|
//# sourceMappingURL=index.js.map
|