@bunnyapp/components 2.0.0-beta.1 → 2.0.0-beta.3
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 +2 -0
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/types/src/components/BunnyProvider/BunnyProvider.d.ts +6 -0
- package/dist/cjs/types/src/components/Checkout/Checkout.stories.d.ts +1 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PayButton.d.ts +2 -1
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutRoot.d.ts +3 -1
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutScreen.d.ts +3 -1
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutConfigContext.d.ts +2 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutFormSubmit.d.ts +3 -2
- package/dist/cjs/types/src/components/PaymentMethods/components/StripeElements.d.ts +7 -1
- package/dist/cjs/types/src/components/PaymentMethods/utils/stripeErrors.d.ts +17 -0
- package/dist/cjs/types/src/components/Signup/Signup.stories.d.ts +1 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/types/src/components/BunnyProvider/BunnyProvider.d.ts +6 -0
- package/dist/esm/types/src/components/Checkout/Checkout.stories.d.ts +1 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/PayButton.d.ts +2 -1
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutRoot.d.ts +3 -1
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutScreen.d.ts +3 -1
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutConfigContext.d.ts +2 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutFormSubmit.d.ts +3 -2
- package/dist/esm/types/src/components/PaymentMethods/components/StripeElements.d.ts +7 -1
- package/dist/esm/types/src/components/PaymentMethods/utils/stripeErrors.d.ts +17 -0
- package/dist/esm/types/src/components/Signup/Signup.stories.d.ts +1 -0
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/skills/bunny-components/SKILL.md +1 -0
package/README.md
CHANGED
|
@@ -32,6 +32,8 @@ Until 2.0.0 is released, install the prerelease with `npm i @bunnyapp/components
|
|
|
32
32
|
|
|
33
33
|
`Checkout` (an existing account subscribes to a price list), `Signup` (a new customer creates an account and subscribes), `Subscriptions`, `Upgrade`, `BillingDetails`, `Invoice`, `Invoices`, `Quote`, `Quotes`, `Transactions` and `Footer`, all inside one `BunnyProvider`. Usage, props and tokens are documented at [docs.bunny.com](https://docs.bunny.com/developer/bunny-components/bunny-components).
|
|
34
34
|
|
|
35
|
+
**Your own query client.** If your app already uses TanStack Query, you can pass your client as `BunnyProvider`'s `queryClient`. It replaces Bunny's default client, so Bunny no longer shows error notifications (a declined card, an invalid coupon) or reports failed requests to Sentry: show errors yourself with an `onError` on the client's `MutationCache` and `QueryCache`, or in `defaultOptions.mutations.onError`.
|
|
36
|
+
|
|
35
37
|
## Styling components
|
|
36
38
|
|
|
37
39
|
`appearance` is the one styling API. Set it on `BunnyProvider` to restyle every component inside it, or on a component to restyle just that one: a component's `appearance` is merged over the provider's. `className` and `style` on a component position its root element (margins, width, a wrapper); they are not for changing how it looks.
|