@myinterview/widget-react 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +39 -27
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,46 +1,58 @@
1
- # Getting Started with Create React App
1
+ # React-Widget
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ The myInterview widget for [React](https://reactjs.com).
4
4
 
5
- ## Available Scripts
5
+ See [myinterview.com](https://www.myinterview.com) for an examples and comprehensive docs.
6
6
 
7
- In the project directory, you can run:
7
+ # Installation and usage
8
8
 
9
- ### `npm start`
9
+ The easiest way to use react-widget is to install it from npm and build it into your app with Webpack / rollup / parcel.
10
10
 
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
11
 
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
12
+ >react-widget compatible with react version `react@16.x.x`, `react@17.x.x`, `react@18.x.x`!
16
13
 
17
- ### `npm test`
14
+ ```bash
15
+ yarn add @myinterview/widget-react
18
16
 
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
17
+ # or use npm
21
18
 
22
- ### `npm run build`
19
+ npm install @myinterview/widget-react
20
+ ```
23
21
 
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
22
+ Then use it in your app:
26
23
 
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
24
 
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
25
+ ```jsx
26
+ import React from 'react';
27
+ import { Widget } from '@myinterview/widget-react';
31
28
 
32
- ### `npm run eject`
29
+ const App = () => {
30
+ const onCompleteCallback = () => {
31
+ //...
32
+ }
33
+ const onError = () => {
34
+ // ...
35
+ }
36
+ return (
37
+ // ...
38
+ <Widget
39
+ job={{ job_id: "xxxxxxxxxxxxxxxxxx" }}
40
+ candidate={{ email: "test@mail.com", username: "Max" }}
41
+ config={{ onCompleteCallback, onError,
42
+ auth: "apikey xxxxxxxxxxxxxxxxx sig=xxxxxxxxxxxxxxxxxxxxxxxxxx" }}
43
+ />
44
+ )
45
+ }
46
+ ```
33
47
 
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
48
+ # Documentation
35
49
 
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
50
+ > **For more detailed documentation with all explanation about possible (Props, Methods and Customisation ) please visit your website [myinterview.com](https://www.myinterview.com)**
37
51
 
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
52
+ # Thanks
39
53
 
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
54
+ Just want to say thank you to everyone who has made it happen.
41
55
 
42
- ## Learn More
56
+ ## License
43
57
 
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
- To learn React, check out the [React documentation](https://reactjs.org/).
58
+ MIT Licensed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "files": [