@betterstore/react 0.2.17 → 0.2.19

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.2.19
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.2.18
10
+
11
+ ### Patch Changes
12
+
13
+ - rullup config changed, attempt to fix bugs
14
+
3
15
  ## 0.2.17
4
16
 
5
17
  ### Patch Changes
@@ -1,8 +1,9 @@
1
- import { CheckoutSession } from "@betterstore/sdk";
1
+ import { CheckoutSession, createStoreClient } from "@betterstore/sdk";
2
2
  import { StripeElementsOptions } from "@stripe/stripe-js";
3
3
  import React from "react";
4
4
  import { AppearanceConfig } from "./appearance";
5
5
  interface CheckoutFormProps {
6
+ storeClient: ReturnType<typeof createStoreClient>;
6
7
  checkoutId: string;
7
8
  onSuccess: () => void;
8
9
  onError: () => void;
@@ -13,5 +14,5 @@ interface CheckoutFormProps {
13
14
  checkoutAppearance?: AppearanceConfig;
14
15
  fonts?: StripeElementsOptions["fonts"];
15
16
  }
16
- export default function CheckoutForm({ checkoutId, onSuccess, onError, cancelUrl, clientSecret, customer, currency, checkoutAppearance, fonts, }: CheckoutFormProps): React.JSX.Element;
17
+ export default function CheckoutForm({ storeClient, checkoutId, onSuccess, onError, cancelUrl, clientSecret, customer, currency, checkoutAppearance, fonts, }: CheckoutFormProps): React.JSX.Element;
17
18
  export {};
@@ -11,6 +11,7 @@ interface CheckoutEmbedProps {
11
11
  appearance?: AppearanceConfig;
12
12
  fonts?: StripeElementsOptions["fonts"];
13
13
  locale?: Locale;
14
+ clientProxy?: string;
14
15
  };
15
16
  }
16
17
  declare function CheckoutEmbed({ checkoutId, config }: CheckoutEmbedProps): React.JSX.Element;