@flopay/vue 1.14.13 → 1.14.15
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/dist/flopay-checkout.d.ts +14 -0
- package/dist/index.cjs +5 -2
- package/dist/index.mjs +5 -2
- package/dist/split-card-form.d.ts +15 -0
- package/package.json +3 -3
|
@@ -48,6 +48,11 @@ export interface FloPayCheckoutProps {
|
|
|
48
48
|
* `['name', 'number', 'expiry']` (visual and tab order). Vault card path only.
|
|
49
49
|
*/
|
|
50
50
|
cardFieldOrder?: VaultCardFieldKey[];
|
|
51
|
+
/**
|
|
52
|
+
* `false` turns off the card form's automatic initial focus when the
|
|
53
|
+
* checkout opens. Omitted or `true` keeps the default. See React.
|
|
54
|
+
*/
|
|
55
|
+
cardAutoFocus?: boolean;
|
|
51
56
|
/**
|
|
52
57
|
* @deprecated Not rendered, as in React: the default-layout security footer
|
|
53
58
|
* was removed. Accepted so integrations ported from React keep compiling.
|
|
@@ -207,6 +212,10 @@ export declare const FloPayCheckout: import("vue").DefineComponent<import("vue")
|
|
|
207
212
|
type: PropType<VaultCardFieldKey[]>;
|
|
208
213
|
default: undefined;
|
|
209
214
|
};
|
|
215
|
+
cardAutoFocus: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
210
219
|
/** @deprecated Not rendered (React parity); see {@link FloPayCheckoutProps.showSecurityFooter}. */
|
|
211
220
|
showSecurityFooter: {
|
|
212
221
|
type: BooleanConstructor;
|
|
@@ -356,6 +365,10 @@ export declare const FloPayCheckout: import("vue").DefineComponent<import("vue")
|
|
|
356
365
|
type: PropType<VaultCardFieldKey[]>;
|
|
357
366
|
default: undefined;
|
|
358
367
|
};
|
|
368
|
+
cardAutoFocus: {
|
|
369
|
+
type: BooleanConstructor;
|
|
370
|
+
default: boolean;
|
|
371
|
+
};
|
|
359
372
|
/** @deprecated Not rendered (React parity); see {@link FloPayCheckoutProps.showSecurityFooter}. */
|
|
360
373
|
showSecurityFooter: {
|
|
361
374
|
type: BooleanConstructor;
|
|
@@ -425,6 +438,7 @@ export declare const FloPayCheckout: import("vue").DefineComponent<import("vue")
|
|
|
425
438
|
enableAVS: boolean | AVSFieldConfig;
|
|
426
439
|
avsLayout: "column" | "row";
|
|
427
440
|
cardFieldOrder: VaultCardFieldKey[];
|
|
441
|
+
cardAutoFocus: boolean;
|
|
428
442
|
showSecurityFooter: boolean;
|
|
429
443
|
fallbackPublishableKey: string;
|
|
430
444
|
confirmLabel: string;
|
package/dist/index.cjs
CHANGED
|
@@ -2301,6 +2301,7 @@ var SplitCardForm = (0, import_vue6.defineComponent)({
|
|
|
2301
2301
|
appearance: { type: Object, default: void 0 },
|
|
2302
2302
|
className: { type: String, default: void 0 },
|
|
2303
2303
|
cardFieldOrder: { type: Array, default: void 0 },
|
|
2304
|
+
cardAutoFocus: { type: Boolean, default: true },
|
|
2304
2305
|
onBeforeButtonClick: {
|
|
2305
2306
|
type: Function,
|
|
2306
2307
|
default: void 0
|
|
@@ -2980,8 +2981,8 @@ var SplitCardForm = (0, import_vue6.defineComponent)({
|
|
|
2980
2981
|
);
|
|
2981
2982
|
(0, import_vue6.watch)(() => [sessionId.value, vault.value?.html], ensureCapture, { immediate: true });
|
|
2982
2983
|
(0, import_vue6.watch)(
|
|
2983
|
-
() => [capture.value, props.cardFieldOrder, avsConfig.value],
|
|
2984
|
-
([adapter, order, avs]) => adapter?.setCardFieldOrder?.(order ?? null, avs == null),
|
|
2984
|
+
() => [capture.value, props.cardFieldOrder, avsConfig.value, props.cardAutoFocus],
|
|
2985
|
+
([adapter, order, avs, autoFocus]) => adapter?.setCardFieldOrder?.(order ?? null, autoFocus !== false && avs == null),
|
|
2985
2986
|
{ immediate: true }
|
|
2986
2987
|
);
|
|
2987
2988
|
(0, import_vue6.watch)(gateClosed, (closed) => capture.value?.setSubmitGate?.(closed));
|
|
@@ -3637,6 +3638,7 @@ var FloPayCheckout = (0, import_vue7.defineComponent)({
|
|
|
3637
3638
|
},
|
|
3638
3639
|
avsLayout: { type: String, default: void 0 },
|
|
3639
3640
|
cardFieldOrder: { type: Array, default: void 0 },
|
|
3641
|
+
cardAutoFocus: { type: Boolean, default: true },
|
|
3640
3642
|
/** @deprecated Not rendered (React parity); see {@link FloPayCheckoutProps.showSecurityFooter}. */
|
|
3641
3643
|
showSecurityFooter: { type: Boolean, default: void 0 },
|
|
3642
3644
|
/** @deprecated Ignored (React parity); see {@link FloPayCheckoutProps.fallbackPublishableKey}. */
|
|
@@ -4037,6 +4039,7 @@ var FloPayCheckout = (0, import_vue7.defineComponent)({
|
|
|
4037
4039
|
checkoutLayout: (0, import_shared9.resolveCheckoutLogLayout)(false, props.layout),
|
|
4038
4040
|
avsLayout: props.avsLayout,
|
|
4039
4041
|
cardFieldOrder: props.cardFieldOrder,
|
|
4042
|
+
cardAutoFocus: props.cardAutoFocus,
|
|
4040
4043
|
session,
|
|
4041
4044
|
dataAttachmentPending: Boolean(state.claimPending),
|
|
4042
4045
|
dataAttachmentRequiresIdentity: Boolean(state.claimRequiresIdentity),
|
package/dist/index.mjs
CHANGED
|
@@ -1202,6 +1202,7 @@ var SplitCardForm = defineComponent3({
|
|
|
1202
1202
|
appearance: { type: Object, default: void 0 },
|
|
1203
1203
|
className: { type: String, default: void 0 },
|
|
1204
1204
|
cardFieldOrder: { type: Array, default: void 0 },
|
|
1205
|
+
cardAutoFocus: { type: Boolean, default: true },
|
|
1205
1206
|
onBeforeButtonClick: {
|
|
1206
1207
|
type: Function,
|
|
1207
1208
|
default: void 0
|
|
@@ -1881,8 +1882,8 @@ var SplitCardForm = defineComponent3({
|
|
|
1881
1882
|
);
|
|
1882
1883
|
watch2(() => [sessionId.value, vault.value?.html], ensureCapture, { immediate: true });
|
|
1883
1884
|
watch2(
|
|
1884
|
-
() => [capture.value, props.cardFieldOrder, avsConfig.value],
|
|
1885
|
-
([adapter, order, avs]) => adapter?.setCardFieldOrder?.(order ?? null, avs == null),
|
|
1885
|
+
() => [capture.value, props.cardFieldOrder, avsConfig.value, props.cardAutoFocus],
|
|
1886
|
+
([adapter, order, avs, autoFocus]) => adapter?.setCardFieldOrder?.(order ?? null, autoFocus !== false && avs == null),
|
|
1886
1887
|
{ immediate: true }
|
|
1887
1888
|
);
|
|
1888
1889
|
watch2(gateClosed, (closed) => capture.value?.setSubmitGate?.(closed));
|
|
@@ -2538,6 +2539,7 @@ var FloPayCheckout = defineComponent4({
|
|
|
2538
2539
|
},
|
|
2539
2540
|
avsLayout: { type: String, default: void 0 },
|
|
2540
2541
|
cardFieldOrder: { type: Array, default: void 0 },
|
|
2542
|
+
cardAutoFocus: { type: Boolean, default: true },
|
|
2541
2543
|
/** @deprecated Not rendered (React parity); see {@link FloPayCheckoutProps.showSecurityFooter}. */
|
|
2542
2544
|
showSecurityFooter: { type: Boolean, default: void 0 },
|
|
2543
2545
|
/** @deprecated Ignored (React parity); see {@link FloPayCheckoutProps.fallbackPublishableKey}. */
|
|
@@ -2938,6 +2940,7 @@ var FloPayCheckout = defineComponent4({
|
|
|
2938
2940
|
checkoutLayout: resolveCheckoutLogLayout(false, props.layout),
|
|
2939
2941
|
avsLayout: props.avsLayout,
|
|
2940
2942
|
cardFieldOrder: props.cardFieldOrder,
|
|
2943
|
+
cardAutoFocus: props.cardAutoFocus,
|
|
2941
2944
|
session,
|
|
2942
2945
|
dataAttachmentPending: Boolean(state.claimPending),
|
|
2943
2946
|
dataAttachmentRequiresIdentity: Boolean(state.claimRequiresIdentity),
|
|
@@ -110,6 +110,12 @@ export interface SplitCardFormProps {
|
|
|
110
110
|
* Omit it for the default order. Vault card path only.
|
|
111
111
|
*/
|
|
112
112
|
cardFieldOrder?: VaultCardFieldKey[];
|
|
113
|
+
/**
|
|
114
|
+
* `false` turns off the hosted card form's automatic initial focus, so the
|
|
115
|
+
* page is not scrolled to the form when it opens. Omitted or `true` keeps
|
|
116
|
+
* the default, which never focuses the card over AVS fields above it.
|
|
117
|
+
*/
|
|
118
|
+
cardAutoFocus?: boolean;
|
|
113
119
|
/**
|
|
114
120
|
* React's `onBeforeButtonClick` (a function prop: its result is read). It
|
|
115
121
|
* runs before the buttons-layout card tile opens and before PayPal creates
|
|
@@ -341,6 +347,10 @@ export declare const SplitCardForm: import("vue").DefineComponent<import("vue").
|
|
|
341
347
|
type: PropType<VaultCardFieldKey[]>;
|
|
342
348
|
default: undefined;
|
|
343
349
|
};
|
|
350
|
+
cardAutoFocus: {
|
|
351
|
+
type: BooleanConstructor;
|
|
352
|
+
default: boolean;
|
|
353
|
+
};
|
|
344
354
|
onBeforeButtonClick: {
|
|
345
355
|
type: PropType<SplitCardFormBeforeButtonClick>;
|
|
346
356
|
default: undefined;
|
|
@@ -560,6 +570,10 @@ export declare const SplitCardForm: import("vue").DefineComponent<import("vue").
|
|
|
560
570
|
type: PropType<VaultCardFieldKey[]>;
|
|
561
571
|
default: undefined;
|
|
562
572
|
};
|
|
573
|
+
cardAutoFocus: {
|
|
574
|
+
type: BooleanConstructor;
|
|
575
|
+
default: boolean;
|
|
576
|
+
};
|
|
563
577
|
onBeforeButtonClick: {
|
|
564
578
|
type: PropType<SplitCardFormBeforeButtonClick>;
|
|
565
579
|
default: undefined;
|
|
@@ -672,6 +686,7 @@ export declare const SplitCardForm: import("vue").DefineComponent<import("vue").
|
|
|
672
686
|
appearance: FloPayAppearance;
|
|
673
687
|
className: string;
|
|
674
688
|
cardFieldOrder: VaultCardFieldKey[];
|
|
689
|
+
cardAutoFocus: boolean;
|
|
675
690
|
onBeforeButtonClick: SplitCardFormBeforeButtonClick;
|
|
676
691
|
onBuyerIdentityReady: SplitCardFormBuyerIdentityReady;
|
|
677
692
|
userId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flopay/vue",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@flopay/js": "1.14.
|
|
40
|
-
"@flopay/shared": "1.14.
|
|
39
|
+
"@flopay/js": "1.14.15",
|
|
40
|
+
"@flopay/shared": "1.14.15",
|
|
41
41
|
"@paypal/paypal-js": "^11.3.0",
|
|
42
42
|
"@stripe/stripe-js": "^10.3.0"
|
|
43
43
|
},
|