@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/cjs/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/cjs/index.js
CHANGED
|
@@ -30258,7 +30258,7 @@ const configGenerator = () => {
|
|
|
30258
30258
|
let release;
|
|
30259
30259
|
try {
|
|
30260
30260
|
environment !== null && environment !== void 0 ? environment : (environment = "staging");
|
|
30261
|
-
release !== null && release !== void 0 ? release : (release = "1.1.
|
|
30261
|
+
release !== null && release !== void 0 ? release : (release = "1.1.25");
|
|
30262
30262
|
}
|
|
30263
30263
|
catch (_a) {
|
|
30264
30264
|
console.error('sentry configGenerator error');
|
|
@@ -48555,7 +48555,7 @@ const useAccessibility = () => {
|
|
|
48555
48555
|
return { setSitekey, shutdown };
|
|
48556
48556
|
};
|
|
48557
48557
|
|
|
48558
|
-
const Widget =
|
|
48558
|
+
const Widget = ({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }) => {
|
|
48559
48559
|
const [isWidgetOpen, setIsWidgetOpen] = React.useState(false);
|
|
48560
48560
|
const [isWidgetMinimized, setIsWidgetMinimized] = React.useState(false);
|
|
48561
48561
|
const [isIncognitoMode, setIsIncognitoMode] = React.useState(false);
|
|
@@ -48651,10 +48651,6 @@ const Widget = React.forwardRef(({ candidate, job, video, config, disabled = fal
|
|
|
48651
48651
|
emitTrackEvent({ eventType: EVENT_TYPES.WIDGET_MINIMIZED });
|
|
48652
48652
|
shutdown();
|
|
48653
48653
|
};
|
|
48654
|
-
React.useImperativeHandle(clientRef, () => ({
|
|
48655
|
-
open: () => { var _a; return (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.click(); },
|
|
48656
|
-
close: onMinimize,
|
|
48657
|
-
}), []);
|
|
48658
48654
|
const layoutClassNames = classNames({
|
|
48659
48655
|
'myinterview-widget__layout': true,
|
|
48660
48656
|
'myinterview-widget-no-select': true,
|
|
@@ -48687,7 +48683,7 @@ const Widget = React.forwardRef(({ candidate, job, video, config, disabled = fal
|
|
|
48687
48683
|
video: Object.assign(Object.assign({}, video), { referrer: (video === null || video === void 0 ? void 0 : video.referrer) || window.location.href }),
|
|
48688
48684
|
candidate,
|
|
48689
48685
|
}, setShouldShowWaterMark: setShouldShowWaterMark, isWidgetMinimized: isWidgetMinimized, onMinimize: onMinimize }))))))))));
|
|
48690
|
-
}
|
|
48686
|
+
};
|
|
48691
48687
|
|
|
48692
48688
|
exports.Widget = Widget;
|
|
48693
48689
|
//# sourceMappingURL=index.js.map
|