@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.
@@ -66,8 +66,4 @@ export interface IWidgetConfigRequest {
66
66
  candidate?: ICandidate;
67
67
  job?: IJob;
68
68
  }
69
- export interface IWidgetRef {
70
- open: () => void;
71
- close: () => void;
72
- }
73
69
  export {};
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
- import { IWidgetRef } from '../interfaces/configInterface';
3
- export declare const Widget: React.ForwardRefExoticComponent<Omit<import("../interfaces/configInterface").IWidgetConfig, "config" | "event_id" | "job"> & {
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>;
@@ -1,4 +1,4 @@
1
1
  import { Widget } from './components/Widget';
2
- import { IWidgetConfig, IClientWidgetConfig, IWidgetRef } from './interfaces/configInterface';
2
+ import { IWidgetConfig, IClientWidgetConfig } from './interfaces/configInterface';
3
3
  export { Widget };
4
- export type { IWidgetConfig, IClientWidgetConfig, IWidgetRef };
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.24-export-ref-actions");
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 = forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
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