@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 +4 -21
- package/dist/cjs/index.js +249 -194
- package/dist/cjs/src/components/Quotes/Quotes.d.ts +31 -0
- package/dist/cjs/src/components/StateTag.d.ts +2 -2
- package/dist/cjs/src/components/Transactions/Transactions.d.ts +11 -1
- package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +3 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +12 -2
- package/dist/cjs/src/graphql/queries/getQuotes.d.ts +6 -0
- package/dist/esm/index.js +252 -197
- package/dist/esm/src/components/Quotes/Quotes.d.ts +31 -0
- package/dist/esm/src/components/StateTag.d.ts +2 -2
- package/dist/esm/src/components/Transactions/Transactions.d.ts +11 -1
- package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +3 -0
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +12 -2
- package/dist/esm/src/graphql/queries/getQuotes.d.ts +6 -0
- package/dist/index.d.ts +5 -1
- package/package.json +2 -2
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.
|