@bloque/payments-react 0.0.9 → 0.0.11

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.
@@ -37,6 +37,6 @@ export interface BloqueCheckoutProps extends Omit<BloqueCheckoutOptions, 'checko
37
37
  * }
38
38
  * ```
39
39
  */
40
- export declare function BloqueCheckout({ checkoutId, publicApiKey, mode, checkoutUrl, appearance, showInstallments, onReady, onSuccess, onError, onPending, iframeStyles, className, style, }: BloqueCheckoutProps): import("react/jsx-runtime").JSX.Element;
41
- export type { AppearanceConfig, BloqueCheckoutOptions, BloqueInitOptions, PaymentResult, } from '@bloque/payments-core';
40
+ export declare function BloqueCheckout({ checkoutId, publicApiKey, mode, checkoutUrl, appearance, showInstallments, paymentMethods, onReady, onSuccess, onError, onPending, iframeStyles, className, style, }: BloqueCheckoutProps): import("react/jsx-runtime").JSX.Element;
41
+ export type { AppearanceConfig, BloqueCheckoutOptions, BloqueInitOptions, PaymentMethod, PaymentResult, } from '@bloque/payments-core';
42
42
  export { BloqueCheckout as BloqueCheckoutCore, init, } from '@bloque/payments-core';
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { BloqueCheckout, init } from "@bloque/payments-core";
3
3
  import { useEffect, useRef } from "react";
4
- function bloque_checkout_BloqueCheckout({ checkoutId, publicApiKey, mode, checkoutUrl, appearance, showInstallments, onReady, onSuccess, onError, onPending, iframeStyles, className, style }) {
4
+ function bloque_checkout_BloqueCheckout({ checkoutId, publicApiKey, mode, checkoutUrl, appearance, showInstallments, paymentMethods, onReady, onSuccess, onError, onPending, iframeStyles, className, style }) {
5
5
  const containerRef = useRef(null);
6
6
  const checkoutRef = useRef(null);
7
7
  useEffect(()=>{
@@ -13,6 +13,7 @@ function bloque_checkout_BloqueCheckout({ checkoutId, publicApiKey, mode, checko
13
13
  checkoutUrl,
14
14
  appearance,
15
15
  showInstallments,
16
+ paymentMethods,
16
17
  onReady,
17
18
  onSuccess,
18
19
  onError,
@@ -32,6 +33,7 @@ function bloque_checkout_BloqueCheckout({ checkoutId, publicApiKey, mode, checko
32
33
  checkoutUrl,
33
34
  appearance,
34
35
  showInstallments,
36
+ paymentMethods,
35
37
  onReady,
36
38
  onSuccess,
37
39
  onError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloque/payments-react",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "React wrapper for Bloque payments web components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "provenance": true
35
35
  },
36
36
  "dependencies": {
37
- "@bloque/payments-core": "0.0.9"
37
+ "@bloque/payments-core": "0.0.11"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=16.9.0",