@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.
Files changed (35) hide show
  1. package/package.json +2 -2
  2. package/src/components/checkout/apple-pay-button.tsx +84 -36
  3. package/src/components/checkout/checkout-flow.tsx +3 -2
  4. package/src/components/checkout/google-pay-button.tsx +6 -0
  5. package/src/components/checkout/list/buyer-inline.tsx +22 -14
  6. package/src/components/checkout/list/charge-runners.tsx +47 -23
  7. package/src/components/checkout/list/choice-list.tsx +16 -5
  8. package/src/components/checkout/list/choice.ts +4 -6
  9. package/src/components/checkout/list/cpf-top.tsx +98 -0
  10. package/src/components/checkout/list/en-US.ts +8 -0
  11. package/src/components/checkout/list/list-bar.tsx +29 -44
  12. package/src/components/checkout/list/list-face.tsx +110 -104
  13. package/src/components/checkout/list/list-top.tsx +99 -0
  14. package/src/components/checkout/list/online-content.tsx +4 -0
  15. package/src/components/checkout/list/option-row.tsx +5 -2
  16. package/src/components/checkout/list/payer-line.tsx +39 -0
  17. package/src/components/checkout/list/payment-list-step.tsx +50 -5
  18. package/src/components/checkout/list/pt-BR.ts +8 -0
  19. package/src/components/checkout/list/summary-column.tsx +120 -0
  20. package/src/components/checkout/list/top-cpf.ts +94 -0
  21. package/src/components/checkout/list/types.ts +55 -10
  22. package/src/components/checkout/list/use-capability.ts +113 -35
  23. package/src/components/checkout/list/use-list-charge.ts +11 -9
  24. package/src/components/checkout/list/use-list-state.ts +37 -4
  25. package/src/components/checkout/list/wallet-block.tsx +235 -0
  26. package/src/components/checkout/list/wallet-press.ts +129 -0
  27. package/src/components/checkout/payment-phase.tsx +1 -0
  28. package/src/components/checkout/payment-summary.tsx +2 -2
  29. package/src/components/checkout/screens-copy.ts +6 -0
  30. package/src/components/checkout/screens-en-US.ts +1 -0
  31. package/src/components/checkout/screens-pt-BR.ts +2 -0
  32. package/src/components/platform/en-US.ts +6 -5
  33. package/src/components/platform/pt-BR.ts +8 -7
  34. package/src/flows/create-payment-flows.tsx +11 -2
  35. package/src/flows/types.ts +7 -2
@@ -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
- * and the host's own illustration in place of the paid icon (`hero`).
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