@betterstore/react 0.2.35 → 0.2.37

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.37
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes, loading state, scrollbar bug fix
8
+
9
+ ## 0.2.36
10
+
11
+ ### Patch Changes
12
+
13
+ - publishable secret updated
14
+
3
15
  ## 0.2.35
4
16
 
5
17
  ### Patch Changes
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
- declare const _default: React.MemoExoticComponent<({ onSuccess, onError, children, }: {
2
+ declare const _default: React.MemoExoticComponent<({ onSuccess, onError, children, setSubmitting, }: {
3
3
  onSuccess?: () => void;
4
4
  onError?: () => void;
5
5
  children: React.ReactNode;
6
+ setSubmitting?: (isSubmitting: boolean) => void;
6
7
  }) => React.JSX.Element>;
7
8
  export default _default;
@@ -1,6 +1,6 @@
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, }: {
3
+ declare function PaymentElement({ paymentSecret, checkoutAppearance, locale, fonts, onSuccess, onError, children, setSubmitting, }: {
4
4
  paymentSecret: string;
5
5
  checkoutAppearance?: Appearance;
6
6
  locale?: StripeElementLocale;
@@ -8,6 +8,7 @@ declare function PaymentElement({ paymentSecret, checkoutAppearance, locale, fon
8
8
  onSuccess?: () => void;
9
9
  onError?: () => void;
10
10
  children: React.ReactNode;
11
+ setSubmitting?: (isSubmitting: boolean) => void;
11
12
  }): React.JSX.Element;
12
13
  declare const _default: React.MemoExoticComponent<typeof PaymentElement>;
13
14
  export default _default;