@12-apps/payments-frontend 3.49.0 → 3.49.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@12-apps/payments-frontend",
|
|
3
|
-
"version": "3.49.
|
|
3
|
+
"version": "3.49.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Browser half of the vendor-agnostic payments platform: plug-and-play MUI components for the per-provider settings page (credential form from each provider's schema, masked hints, verify/enable) and the checkout page (PIX QR + polling, card tokenization, hosted-checkout redirect), plus the headless hooks and fetch clients they build on. Talks only to the host's payments HTTP surface — never to a provider directly. Microfrontend-ready: no app coupling, host injects theme and auth.",
|
|
@@ -380,7 +380,7 @@ export function ListFace(props: ListFaceProps): JSX.Element {
|
|
|
380
380
|
return (
|
|
381
381
|
<Box data-testid="payment-list-step" sx={{ display: "flex", flexDirection: "column", gap: 2 }}>
|
|
382
382
|
{shown ? (
|
|
383
|
-
<TopAndRows rowsShown={rowsShown}>
|
|
383
|
+
<TopAndRows rowsShown={rowsShown} drawn={state.settled}>
|
|
384
384
|
<ChoiceList copy={list.copy} state={state} door={list.door ?? []} buyer={c.buyer} onBuyerChange={c.setBuyer} provider={props.provider} failure={failure} locked={facts.locked} covered={coveredByHost(list)} top={top} />
|
|
385
385
|
</TopAndRows>
|
|
386
386
|
) : null}
|
|
@@ -141,13 +141,23 @@ function RowsShown({ into }: { into: { current: boolean } }): null {
|
|
|
141
141
|
* The top and the rows under ONE boundary (FUT-3711): a top drawn with the
|
|
142
142
|
* first rows lands with them, so its chunk never pushes a row down. Once the
|
|
143
143
|
* rows have committed, `rowsShown` says so, and a top that appears later
|
|
144
|
-
* suspends on its own instead (`TopWithRetry`).
|
|
144
|
+
* suspends on its own instead (`TopWithRetry`). `drawn` is false while the
|
|
145
|
+
* list holds its rows back for the saved cards (FUT-3849): the placeholder
|
|
146
|
+
* committing is not the rows committing.
|
|
145
147
|
*/
|
|
146
|
-
export function TopAndRows({
|
|
148
|
+
export function TopAndRows({
|
|
149
|
+
rowsShown,
|
|
150
|
+
drawn,
|
|
151
|
+
children,
|
|
152
|
+
}: {
|
|
153
|
+
rowsShown: { current: boolean };
|
|
154
|
+
drawn: boolean;
|
|
155
|
+
children: ReactNode;
|
|
156
|
+
}): JSX.Element {
|
|
147
157
|
return (
|
|
148
158
|
<Suspense fallback={<TopLoading />}>
|
|
149
159
|
{children}
|
|
150
|
-
<RowsShown into={rowsShown} />
|
|
160
|
+
{drawn ? <RowsShown into={rowsShown} /> : null}
|
|
151
161
|
</Suspense>
|
|
152
162
|
);
|
|
153
163
|
}
|