@betterstore/react 0.2.43 → 0.2.45

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.45
4
+
5
+ ### Patch Changes
6
+
7
+ - new version
8
+
9
+ ## 0.2.44
10
+
11
+ ### Patch Changes
12
+
13
+ - bug type fix
14
+
3
15
  ## 0.2.43
4
16
 
5
17
  ### Patch Changes
@@ -14,6 +14,7 @@ interface PaymentFormProps {
14
14
  checkoutAppearance?: AppearanceConfig;
15
15
  fonts?: StripeElementsOptions["fonts"];
16
16
  locale?: StripeElementLocale;
17
+ publicKey: string | null;
17
18
  }
18
- export default function PaymentForm({ paymentSecret, onSuccess, onError, onBack, onDoubleBack, contactEmail, shippingAddress, shippingName, shippingPrice, checkoutAppearance, fonts, locale, }: PaymentFormProps): React.JSX.Element;
19
+ export default function PaymentForm({ paymentSecret, onSuccess, onError, onBack, onDoubleBack, contactEmail, shippingAddress, shippingName, shippingPrice, checkoutAppearance, fonts, locale, publicKey, }: PaymentFormProps): React.JSX.Element;
19
20
  export {};
@@ -5,6 +5,8 @@ export interface FormStore {
5
5
  setFormData: (formData: Partial<CheckoutFormData>) => void;
6
6
  step: CheckoutStep;
7
7
  setStep: (step: CheckoutStep) => void;
8
+ checkoutId: string;
9
+ setCheckoutId: (checkoutId: string) => void;
8
10
  }
9
11
  export declare const useFormStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<FormStore>, "persist"> & {
10
12
  persist: {
@@ -1,7 +1,8 @@
1
1
  import { Appearance, StripeElementLocale, StripeElementsOptions } from "@stripe/stripe-js";
2
2
  import React from "react";
3
- declare function PaymentElement({ paymentSecret, checkoutAppearance, locale, fonts, onSuccess, onError, children, setSubmitting, }: {
3
+ declare function PaymentElement({ paymentSecret, publicKey, checkoutAppearance, locale, fonts, onSuccess, onError, children, setSubmitting, }: {
4
4
  paymentSecret: string;
5
+ publicKey: string | null;
5
6
  checkoutAppearance?: Appearance;
6
7
  locale?: StripeElementLocale;
7
8
  fonts?: StripeElementsOptions["fonts"];