@12-apps/payments-frontend 3.43.0 → 3.44.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.
- package/package.json +2 -2
- package/src/components/checkout/apple-pay-button.tsx +84 -36
- package/src/components/checkout/checkout-flow.tsx +3 -2
- package/src/components/checkout/google-pay-button.tsx +6 -0
- package/src/components/checkout/list/buyer-inline.tsx +22 -14
- package/src/components/checkout/list/charge-runners.tsx +47 -23
- package/src/components/checkout/list/choice-list.tsx +16 -5
- package/src/components/checkout/list/choice.ts +4 -6
- package/src/components/checkout/list/cpf-top.tsx +98 -0
- package/src/components/checkout/list/en-US.ts +8 -0
- package/src/components/checkout/list/list-bar.tsx +29 -44
- package/src/components/checkout/list/list-face.tsx +110 -104
- package/src/components/checkout/list/list-top.tsx +99 -0
- package/src/components/checkout/list/online-content.tsx +4 -0
- package/src/components/checkout/list/option-row.tsx +5 -2
- package/src/components/checkout/list/payer-line.tsx +39 -0
- package/src/components/checkout/list/payment-list-step.tsx +50 -5
- package/src/components/checkout/list/pt-BR.ts +8 -0
- package/src/components/checkout/list/summary-column.tsx +120 -0
- package/src/components/checkout/list/top-cpf.ts +94 -0
- package/src/components/checkout/list/types.ts +55 -10
- package/src/components/checkout/list/use-capability.ts +113 -35
- package/src/components/checkout/list/use-list-charge.ts +11 -9
- package/src/components/checkout/list/use-list-state.ts +37 -4
- package/src/components/checkout/list/wallet-block.tsx +235 -0
- package/src/components/checkout/list/wallet-press.ts +129 -0
- package/src/components/checkout/payment-phase.tsx +1 -0
- package/src/components/checkout/payment-summary.tsx +2 -2
- package/src/components/checkout/screens-copy.ts +6 -0
- package/src/components/checkout/screens-en-US.ts +1 -0
- package/src/components/checkout/screens-pt-BR.ts +2 -0
- package/src/components/platform/en-US.ts +6 -5
- package/src/components/platform/pt-BR.ts +8 -7
- package/src/flows/create-payment-flows.tsx +11 -2
- package/src/flows/types.ts +7 -2
package/src/flows/types.ts
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
* a `tokensByProvider` key. A host never types one.
|
|
21
21
|
*/
|
|
22
22
|
import type { CheckoutPaymentList } from "../components/checkout/list/types";
|
|
23
|
+
import type { BackActionEmphasis } from "../components/checkout/payment-status-parts";
|
|
23
24
|
import type { ComponentType, ReactNode } from "react";
|
|
24
25
|
|
|
25
26
|
import type { SavedCard } from "../card";
|
|
@@ -153,9 +154,13 @@ export interface PaymentFlowsConfig extends CheckoutPipelineConfig {
|
|
|
153
154
|
copy: CheckoutCopyFE;
|
|
154
155
|
/**
|
|
155
156
|
* Host content under the paid receipt (the storefront's PWA install invite),
|
|
156
|
-
*
|
|
157
|
+
* the host's own illustration in place of the paid icon (`hero`), content
|
|
158
|
+
* AFTER the confirmation's actions (`footer`), and whether the way out leads
|
|
159
|
+
* the paid screen (`backActionEmphasis`) — `CheckoutFlowProps`'
|
|
160
|
+
* `confirmationExtra`/`Hero`/`Footer` and `backActionEmphasis`, so a host on
|
|
161
|
+
* the factory composes the same confirmation as one mounting the flow.
|
|
157
162
|
*/
|
|
158
|
-
confirmation?: { extra?: ReactNode; hero?: ReactNode };
|
|
163
|
+
confirmation?: { extra?: ReactNode; hero?: ReactNode; footer?: ReactNode; backActionEmphasis?: BackActionEmphasis };
|
|
159
164
|
/**
|
|
160
165
|
* Warnings the host reports (Sentry). Default SILENT — never `console`: a
|
|
161
166
|
* library that writes to a buyer's console tells them nothing and tells the
|