@bunnyapp/components 1.0.2 → 1.0.4

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
@@ -6,6 +6,7 @@ This repository provides components from the Bunny portal to integrate Bunny UI
6
6
 
7
7
  - Invoice
8
8
  - Quote
9
+ - Quotes
9
10
  - PaymentMethod
10
11
  - Transactions
11
12
  - Subscriptions (view-only mode)
@@ -45,16 +46,9 @@ import {
45
46
 
46
47
  function App() {
47
48
  return (
48
- <BunnyProvider
49
- token={portalSessionToken}
50
- subdomain={subdomain}
51
- window={window}
52
- accountId={accountId}
53
- >
49
+ <BunnyProvider token={token} subdomain={subdomain} window={window}>
54
50
  <Invoice id="12345" />
55
51
  <PaymentMethod />
56
- <Transactions />
57
- <Subscriptions />
58
52
  </BunnyProvider>
59
53
  );
60
54
  }
@@ -69,21 +63,11 @@ import { BunnyProvider, Invoice, PaymentMethod } from "@bunnyapp/components";
69
63
  function App() {
70
64
  return (
71
65
  <div>
72
- <BunnyProvider
73
- token={token}
74
- subdomain={subdomain}
75
- window={window}
76
- accountId={accountId}
77
- >
66
+ <BunnyProvider token={token} subdomain={subdomain} window={window}>
78
67
  <Invoice id="12345" />
79
68
  </BunnyProvider>
80
69
  {/* Other components */}
81
- <BunnyProvider
82
- token={token}
83
- subdomain={subdomain}
84
- window={window}
85
- accountId={accountId}
86
- >
70
+ <BunnyProvider token={token} subdomain={subdomain} window={window}>
87
71
  <PaymentMethod />
88
72
  </BunnyProvider>
89
73
  </div>
@@ -96,4 +80,3 @@ function App() {
96
80
  - `token`: Token that allows access to the Bunny API. Generate this using `portalSessionCreate` from [docs](https://docs.bunny.com/developer/api-reference/mutations/portalsessioncreate)
97
81
  - `subdomain`: The subdomain the components will make requests to. e.g. `https://acme.bunny.com`
98
82
  - `window`: The window to use for the BunnyProvider. We use the window for handling payment objects.
99
- - `accountId`: The accountId to use for the BunnyProvider. To be deprecated.