@bigbinary/neeto-webhooks-frontend 1.2.0 → 1.3.0

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
@@ -5,7 +5,7 @@ neetoWebhooks is the library that manages webhooks across neeto products.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- yarn add "@bigbinary/neeto-webhooks-frontend@1.1.0"
8
+ yarn add "@bigbinary/neeto-webhooks-frontend@1.3.0"
9
9
  ```
10
10
 
11
11
  \*_neetoWebhooks_ has a few peer dependencies that are required for the proper
@@ -21,20 +21,14 @@ yarn add @bigbinary/neetoui @bigbinary/neeto-icons axios@0.27.2 classnames@2.3.1
21
21
  ```jsx
22
22
  import React from "react";
23
23
 
24
- import { Deliveries, Webhooks } from "@bigbinary/webhooks-frontend";
24
+ import { NeetoWebhooks } from "@bigbinary/webhooks-frontend";
25
25
  import routes from "./routes";
26
26
 
27
27
  const App = () => (
28
28
  <BrowserRouter>
29
29
  <Switch>
30
- <Route path={routes.meeting.webhooks.index}>
31
- <Webhooks
32
- deliveriesPath={routes.meeting.webhooks.deliveries}
33
- entityType="Meeting"
34
- />
35
- </Route>
36
- <Route path={routes.meeting.webhooks.deliveries}>
37
- <Deliveries webhooksPath={routes.meeting.webhooks.index} />
30
+ <Route path={routes.meeting.webhooks}>
31
+ <NeetoWebhooks entityType="Meeting" />
38
32
  </Route>
39
33
  </Switch>
40
34
  <ToastContainer />
@@ -43,25 +37,15 @@ const App = () => (
43
37
  export default App;
44
38
  ```
45
39
 
46
- ### 1. Webhooks
40
+ ### 1. NeetoWebhooks
47
41
 
48
42
  This component is used to show, add, edit and delete webhooks
49
43
 
50
44
  ##### Props
51
45
 
52
- 1. **deliveriesPath:** route path for deliveries
53
- 2. **entityType:** class name of the entity item connecting to the webhooks,
46
+ 1. **entityType:** class name of the entity item connecting to the webhooks,
54
47
  i.e. Model name as a string
55
48
 
56
- ### 2. Deliveries
57
-
58
- This component show all the webhook deliveries related to an webhook and also
59
- deals with redeliver.
60
-
61
- ##### Props
62
-
63
- 1. **webhooksPath:** route path for webhooks
64
-
65
49
  ## Development
66
50
 
67
51
  1. Install all the dependencies by executing the following command