@myinterview/widget-react 1.0.4 → 1.0.6

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/README.md CHANGED
@@ -27,7 +27,7 @@ import React from 'react';
27
27
  import { Widget } from '@myinterview/widget-react';
28
28
 
29
29
  const App = () => {
30
- const onCompleteCallback = () => {
30
+ const onFinish = () => {
31
31
  //...
32
32
  }
33
33
  const onError = () => {
@@ -38,7 +38,7 @@ const App = () => {
38
38
  <Widget
39
39
  job={{ job_id: "xxxxxxxxxxxxxxxxxx" }}
40
40
  candidate={{ email: "test@mail.com", username: "Max" }}
41
- config={{ onCompleteCallback, onError,
41
+ config={{ onFinish, onError,
42
42
  auth: "apikey xxxxxxxxxxxxxxxxx sig=xxxxxxxxxxxxxxxxxxxxxxxxxx" }}
43
43
  />
44
44
  )
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { IWidgetConfig } from '../interfaces/configInterface';
2
+ import { IClientWidgetConfig } from '../interfaces/configInterface';
3
3
  import '../assets/styles/global.scss';
4
4
  import { getToken } from '../utils/authToken.utils';
5
- export declare const Widget: React.FC<IWidgetConfig>;
5
+ export declare const Widget: React.FC<IClientWidgetConfig>;
6
6
  export { getToken };