@12-apps/payments-frontend 3.22.0 → 3.23.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 (42) hide show
  1. package/package.json +2 -2
  2. package/src/components/checkout/checkout-actions.ts +55 -9
  3. package/src/components/checkout/checkout-flow.tsx +15 -7
  4. package/src/components/checkout/confirmation-wait.ts +97 -0
  5. package/src/components/checkout/en-US.ts +8 -0
  6. package/src/components/checkout/failure-codes.ts +82 -0
  7. package/src/components/checkout/hosted-store.ts +23 -1
  8. package/src/components/checkout/payment-error-panel.tsx +9 -3
  9. package/src/components/checkout/pix-view.tsx +97 -8
  10. package/src/components/checkout/poll-loop.ts +5 -3
  11. package/src/components/checkout/pt-BR.ts +9 -0
  12. package/src/components/checkout/types.ts +11 -0
  13. package/src/components/checkout/use-card-checkout.ts +3 -2
  14. package/src/components/checkout/use-checkout-controller.ts +19 -5
  15. package/src/components/checkout/use-payment-polling.ts +58 -7
  16. package/src/components/checkout/use-wallet-charge.ts +24 -1
  17. package/src/components/checkout/view-copy.ts +38 -0
  18. package/src/components/checkout/wallet-pane.tsx +6 -1
  19. package/src/flows/catalog-exit.ts +33 -0
  20. package/src/flows/create-payment-flows.tsx +12 -1
  21. package/src/flows/pipeline/actions.tsx +104 -0
  22. package/src/flows/pipeline/admission.ts +55 -0
  23. package/src/flows/pipeline/context.ts +140 -0
  24. package/src/flows/pipeline/derive-step.ts +234 -0
  25. package/src/flows/pipeline/engine-actions.ts +257 -0
  26. package/src/flows/pipeline/engine-chrome.tsx +123 -0
  27. package/src/flows/pipeline/engine-state.ts +107 -0
  28. package/src/flows/pipeline/engine.tsx +377 -0
  29. package/src/flows/pipeline/methods.ts +71 -0
  30. package/src/flows/pipeline/refusal-routing.ts +106 -0
  31. package/src/flows/pipeline/slices.ts +110 -0
  32. package/src/flows/pipeline/stable-plugins.ts +72 -0
  33. package/src/flows/pipeline/steps/buyer-steps.tsx +297 -0
  34. package/src/flows/pipeline/steps/index.ts +54 -0
  35. package/src/flows/pipeline/steps/pay-steps.tsx +182 -0
  36. package/src/flows/pipeline/steps/status-step.tsx +41 -0
  37. package/src/flows/pipeline/types.ts +232 -0
  38. package/src/flows/public.ts +78 -0
  39. package/src/flows/screens-hosted.tsx +37 -4
  40. package/src/flows/screens-pay.tsx +6 -1
  41. package/src/flows/types.ts +25 -2
  42. package/src/index.ts +7 -19
package/src/index.ts CHANGED
@@ -61,26 +61,14 @@ export {
61
61
  } from './components/checkout/checkout-flow';
62
62
 
63
63
  // ---------------------------------------------------------------------------
64
- // The MOUNTED buyer checkout (FUT-741) `createPaymentFlows` returns every
65
- // screen pre-bound to one transport, one scope, one slot table and one set of
66
- // host ports. Additive: everything above and below stays exported, and the
67
- // hand-composing path is unchanged.
64
+ // The MOUNTED buyer checkout (FUT-741) and the checkout PIPELINE (FUT-1240).
65
+ //
66
+ // Listed in `./flows/public` rather than inline, on the `./activation/public`
67
+ // precedent below: this barrel is at its size gate, and a surface that grows
68
+ // with every plugin type belongs beside the plugins.
68
69
  // ---------------------------------------------------------------------------
69
- export { createPaymentFlows } from './flows/create-payment-flows';
70
- // A type and nothing else now: `DEFAULT_CHECKOUT_COPY_FE` used to sit beside it
71
- // and was the only value this module ever published (FUT-760).
72
- export type { CheckoutCopyFE } from './flows/copy';
73
- export {
74
- type BoundCheckoutClient,
75
- type BuyerDetailsProps,
76
- type CheckoutAvailability,
77
- type CheckoutConfigState,
78
- type CheckoutController,
79
- type CheckoutPorts,
80
- type CheckoutScreens,
81
- type PaymentFlows,
82
- type PaymentFlowsConfig,
83
- } from './flows/types';
70
+ export * from './flows/public';
71
+
84
72
  export {
85
73
  buyerFieldsFor,
86
74
  fieldSatisfied,