@solidgate/vue-sdk 1.30.0 → 1.32.0

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.
@@ -65,6 +65,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
65
65
  containerId?: string | undefined;
66
66
  enabled?: boolean | undefined;
67
67
  height?: number | undefined;
68
+ resetEnabled?: boolean | undefined;
68
69
  } | undefined, "containerId"> | undefined;
69
70
  bizumButtonParams?: Omit<{
70
71
  containerId?: string | undefined;
@@ -76,6 +77,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
76
77
  enabled?: boolean | undefined;
77
78
  theme?: "dark" | "light" | undefined;
78
79
  height?: number | undefined;
80
+ resetEnabled?: boolean | undefined;
79
81
  } | undefined, "containerId"> | undefined;
80
82
  mbwayButtonParams?: Omit<{
81
83
  containerId?: string | undefined;
@@ -86,6 +88,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
86
88
  containerId?: string | undefined;
87
89
  enabled?: boolean | undefined;
88
90
  height?: number | undefined;
91
+ resetEnabled?: boolean | undefined;
89
92
  } | undefined, "containerId"> | undefined;
90
93
  cashAppButtonParams?: Omit<{
91
94
  containerId?: string | undefined;
@@ -100,6 +103,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
100
103
  mbwayContainerRef?: HTMLDivElement | undefined;
101
104
  pixQrContainerRef?: HTMLDivElement | undefined;
102
105
  cashAppContainerRef?: HTMLDivElement | undefined;
106
+ pixAutomaticoButtonParams?: Omit<{
107
+ containerId?: string | undefined;
108
+ enabled?: boolean | undefined;
109
+ height?: number | undefined;
110
+ resetEnabled?: boolean | undefined;
111
+ } | undefined, "containerId"> | undefined;
112
+ pixAutomaticoContainerRef?: HTMLDivElement | undefined;
103
113
  onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
104
114
  onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
105
115
  onMounted?: ((e: MountedMessage) => void) | undefined;
@@ -207,6 +217,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
207
217
  containerId?: string | undefined;
208
218
  enabled?: boolean | undefined;
209
219
  height?: number | undefined;
220
+ resetEnabled?: boolean | undefined;
210
221
  } | undefined, "containerId"> | undefined;
211
222
  bizumButtonParams?: Omit<{
212
223
  containerId?: string | undefined;
@@ -218,6 +229,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
218
229
  enabled?: boolean | undefined;
219
230
  theme?: "dark" | "light" | undefined;
220
231
  height?: number | undefined;
232
+ resetEnabled?: boolean | undefined;
221
233
  } | undefined, "containerId"> | undefined;
222
234
  mbwayButtonParams?: Omit<{
223
235
  containerId?: string | undefined;
@@ -228,6 +240,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
228
240
  containerId?: string | undefined;
229
241
  enabled?: boolean | undefined;
230
242
  height?: number | undefined;
243
+ resetEnabled?: boolean | undefined;
231
244
  } | undefined, "containerId"> | undefined;
232
245
  cashAppButtonParams?: Omit<{
233
246
  containerId?: string | undefined;
@@ -242,6 +255,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
242
255
  mbwayContainerRef?: HTMLDivElement | undefined;
243
256
  pixQrContainerRef?: HTMLDivElement | undefined;
244
257
  cashAppContainerRef?: HTMLDivElement | undefined;
258
+ pixAutomaticoButtonParams?: Omit<{
259
+ containerId?: string | undefined;
260
+ enabled?: boolean | undefined;
261
+ height?: number | undefined;
262
+ resetEnabled?: boolean | undefined;
263
+ } | undefined, "containerId"> | undefined;
264
+ pixAutomaticoContainerRef?: HTMLDivElement | undefined;
245
265
  onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
246
266
  onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
247
267
  onMounted?: ((e: MountedMessage) => void) | undefined;
@@ -8,4 +8,5 @@ declare const BLIK_BUTTON_CONTAINER_ID: string;
8
8
  declare const MBWAY_BUTTON_CONTAINER_ID: string;
9
9
  declare const PIX_QR_BUTTON_CONTAINER_ID: string;
10
10
  declare const CASHAPP_BUTTON_CONTAINER_ID: string;
11
- export { IFRAME_CONTAINER_ID, GOOGLE_PAY_BUTTON_CONTAINER_ID, APPLE_PAY_BUTTON_CONTAINER_ID, PAYPAL_BUTTON_CONTAINER_ID, PIX_BUTTON_CONTAINER_ID, BIZUM_BUTTON_CONTAINER_ID, BLIK_BUTTON_CONTAINER_ID, MBWAY_BUTTON_CONTAINER_ID, PIX_QR_BUTTON_CONTAINER_ID, CASHAPP_BUTTON_CONTAINER_ID };
11
+ declare const PIX_AUTOMATICO_BUTTON_CONTAINER_ID: string;
12
+ export { IFRAME_CONTAINER_ID, GOOGLE_PAY_BUTTON_CONTAINER_ID, APPLE_PAY_BUTTON_CONTAINER_ID, PAYPAL_BUTTON_CONTAINER_ID, PIX_BUTTON_CONTAINER_ID, BIZUM_BUTTON_CONTAINER_ID, BLIK_BUTTON_CONTAINER_ID, MBWAY_BUTTON_CONTAINER_ID, PIX_QR_BUTTON_CONTAINER_ID, CASHAPP_BUTTON_CONTAINER_ID, PIX_AUTOMATICO_BUTTON_CONTAINER_ID };
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .payment-form-container[data-v-7d8931f2] iframe,.payment-form-container[data-v-77b30339] iframe{border:none}
1
+ .payment-form-container[data-v-46038224] iframe,.payment-form-container[data-v-77b30339] iframe{border:none}
package/dist/index.es.js CHANGED
@@ -9,6 +9,7 @@ const BLIK_BUTTON_CONTAINER_ID = `blik-button-container_#${Math.random() * 1e4}`
9
9
  const MBWAY_BUTTON_CONTAINER_ID = `mbway-button-container_#${Math.random() * 1e4}`;
10
10
  const PIX_QR_BUTTON_CONTAINER_ID = `pix-qr-button-container_#${Math.random() * 1e4}`;
11
11
  const CASHAPP_BUTTON_CONTAINER_ID = `cashapp-button-container_#${Math.random() * 1e4}`;
12
+ const PIX_AUTOMATICO_BUTTON_CONTAINER_ID = `pix-automatico-button-container_#${Math.random() * 1e4}`;
12
13
  var MessageType;
13
14
  (function(MessageType2) {
14
15
  MessageType2["Mounted"] = "mounted";
@@ -93,12 +94,14 @@ var PayableEntity;
93
94
  PayableEntity2["Blik"] = "blik";
94
95
  PayableEntity2["Mbway"] = "mbway";
95
96
  PayableEntity2["CashApp"] = "cashapp";
97
+ PayableEntity2["PixAutomatico"] = "pix-automatico";
96
98
  })(PayableEntity || (PayableEntity = {}));
97
99
  var PayableEntity$1 = PayableEntity;
98
100
  var InteractionType;
99
101
  (function(InteractionType2) {
100
102
  InteractionType2["Click"] = "click";
101
103
  InteractionType2["PageClose"] = "pageClose";
104
+ InteractionType2["ResetRequested"] = "resetRequested";
102
105
  InteractionType2["Focus"] = "focus";
103
106
  InteractionType2["Blur"] = "blur";
104
107
  InteractionType2["Change"] = "change";
@@ -258,6 +261,10 @@ const payButtonIds = {
258
261
  cashAppButtonParams: {
259
262
  title: "CashApp",
260
263
  id: CASHAPP_BUTTON_CONTAINER_ID
264
+ },
265
+ pixAutomaticoButtonParams: {
266
+ title: "Pix Autom\xE1tico",
267
+ id: PIX_AUTOMATICO_BUTTON_CONTAINER_ID
261
268
  }
262
269
  };
263
270
  function getPayButtonParams(config, key, container) {
@@ -295,7 +302,8 @@ const initPaymentForm = async (props) => {
295
302
  blikContainerRef,
296
303
  mbwayContainerRef,
297
304
  pixQrContainerRef,
298
- cashAppContainerRef
305
+ cashAppContainerRef,
306
+ pixAutomaticoContainerRef
299
307
  } = props;
300
308
  if (!merchantData) {
301
309
  throw new Error("Attribute 'merchantData' is required");
@@ -385,6 +393,14 @@ const initPaymentForm = async (props) => {
385
393
  if (cashAppButtonParams) {
386
394
  initConfig.cashAppButtonParams = cashAppButtonParams;
387
395
  }
396
+ const pixAutomaticoButtonParams = getPayButtonParams(
397
+ props,
398
+ "pixAutomaticoButtonParams",
399
+ pixAutomaticoContainerRef
400
+ );
401
+ if (pixAutomaticoButtonParams) {
402
+ initConfig.pixAutomaticoButtonParams = pixAutomaticoButtonParams;
403
+ }
388
404
  return clientSdk.init(initConfig);
389
405
  };
390
406
  const onSubscribe = (sdkInstanceValue, callbacks) => {
@@ -472,6 +488,8 @@ const _sfc_main$1 = defineComponent({
472
488
  mbwayContainerRef: {},
473
489
  pixQrContainerRef: {},
474
490
  cashAppContainerRef: {},
491
+ pixAutomaticoButtonParams: {},
492
+ pixAutomaticoContainerRef: {},
475
493
  onReadyPaymentInstance: {},
476
494
  onPaymentDetails: { type: Function, default: () => {
477
495
  } },
@@ -518,6 +536,7 @@ const _sfc_main$1 = defineComponent({
518
536
  mbwayButtonParams: props.mbwayButtonParams,
519
537
  pixQrButtonParams: props.pixQrButtonParams,
520
538
  cashAppButtonParams: props.cashAppButtonParams,
539
+ pixAutomaticoButtonParams: props.pixAutomaticoButtonParams,
521
540
  googlePayContainerRef: props.googlePayContainerRef,
522
541
  applePayContainerRef: props.applePayContainerRef,
523
542
  paypalContainerRef: props.paypalContainerRef,
@@ -526,7 +545,8 @@ const _sfc_main$1 = defineComponent({
526
545
  blikContainerRef: props.blikContainerRef,
527
546
  mbwayContainerRef: props.mbwayContainerRef,
528
547
  pixQrContainerRef: props.pixQrContainerRef,
529
- cashAppContainerRef: props.cashAppContainerRef
548
+ cashAppContainerRef: props.cashAppContainerRef,
549
+ pixAutomaticoContainerRef: props.pixAutomaticoContainerRef
530
550
  };
531
551
  const callbacks = {
532
552
  onMounted: (e) => props.onMounted && props.onMounted(e),
@@ -571,7 +591,7 @@ const _sfc_main$1 = defineComponent({
571
591
  };
572
592
  }
573
593
  });
574
- var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7d8931f2"]]);
594
+ var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-46038224"]]);
575
595
  const initResignForm = async (config) => {
576
596
  if (!config.resignRequest) {
577
597
  throw new Error("Attribute 'resignRequest' is required");
@@ -14,6 +14,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
14
14
  mbwayButtonParams?: Omit<InitConfig['mbwayButtonParams'], 'containerId'>;
15
15
  pixQrButtonParams?: Omit<InitConfig['pixQrButtonParams'], 'containerId'>;
16
16
  cashAppButtonParams?: Omit<InitConfig['cashAppButtonParams'], 'containerId'>;
17
+ pixAutomaticoButtonParams?: Omit<InitConfig['pixAutomaticoButtonParams'], 'containerId'>;
17
18
  googlePayContainerRef?: HTMLDivElement;
18
19
  applePayContainerRef?: HTMLDivElement;
19
20
  paypalContainerRef?: HTMLDivElement;
@@ -23,6 +24,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
23
24
  mbwayContainerRef?: HTMLDivElement;
24
25
  pixQrContainerRef?: HTMLDivElement;
25
26
  cashAppContainerRef?: HTMLDivElement;
27
+ pixAutomaticoContainerRef?: HTMLDivElement;
26
28
  onReadyPaymentInstance?: (paymentInstance: ClientSdkInstance) => void;
27
29
  }
28
30
  export default PaymentProps;
@@ -1,3 +1,3 @@
1
1
  import { InitConfig } from '@solidgate/client-sdk-loader';
2
- declare function getPayButtonParams<T extends 'googlePayButtonParams' | 'applePayButtonParams' | 'paypalButtonParams' | 'pixButtonParams' | 'bizumButtonParams' | 'blikButtonParams' | 'mbwayButtonParams' | 'pixQrButtonParams' | 'cashAppButtonParams'>(config: InitConfig, key: T, container: HTMLElement | undefined): NonNullable<InitConfig[T]> | undefined;
2
+ declare function getPayButtonParams<T extends 'googlePayButtonParams' | 'applePayButtonParams' | 'paypalButtonParams' | 'pixButtonParams' | 'bizumButtonParams' | 'blikButtonParams' | 'mbwayButtonParams' | 'pixQrButtonParams' | 'cashAppButtonParams' | 'pixAutomaticoButtonParams'>(config: InitConfig, key: T, container: HTMLElement | undefined): NonNullable<InitConfig[T]> | undefined;
3
3
  export default getPayButtonParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidgate/vue-sdk",
3
- "version": "1.30.0",
3
+ "version": "1.32.0",
4
4
  "repository": "https://github.com/solidgate-tech/vue-sdk",
5
5
  "files": [
6
6
  "dist"
@@ -28,7 +28,7 @@
28
28
  "vue": "^3.2.25"
29
29
  },
30
30
  "dependencies": {
31
- "@solidgate/client-sdk-loader": "^1.30.0"
31
+ "@solidgate/client-sdk-loader": "^1.32.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/types": "^7.24.5",