@12-apps/payments-frontend 3.34.0 → 3.34.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.34.0",
3
+ "version": "3.34.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.",
@@ -163,8 +163,21 @@ function CopyPanel({ pix, shown, onCopy, idBase }: { pix: PixCharge; shown: bool
163
163
  return (
164
164
  <Box id={paneIds(idBase, "copy").panel} role="tabpanel" aria-labelledby={paneIds(idBase, "copy").tab} sx={{ ...panelSx(shown), [PIX_WIDE]: { display: "flex", justifyContent: "center" } }}>
165
165
  <ColumnHeading>{copy.copyPasteHeading}</ColumnHeading>
166
+ {/*
167
+ The box IS the code's frame, so whatever the host draws for inline code
168
+ (a tinted chip, its own border and padding) is undone inside it:
169
+ otherwise a wrapped code reads as a box inside a box.
170
+ */}
166
171
  <Box
167
- sx={{ px: 2, py: 1.5, border: "1px solid", borderColor: "divider", borderRadius: 1.5, bgcolor: "action.hover" }}
172
+ sx={{
173
+ px: 2,
174
+ py: 1.5,
175
+ border: "1px solid",
176
+ borderColor: "divider",
177
+ borderRadius: 1.5,
178
+ bgcolor: "action.hover",
179
+ "&& > *": { bgcolor: "transparent", border: 0, borderRadius: 0, p: 0 },
180
+ }}
168
181
  >
169
182
  <Text variant="code" size="xs" as="p" data-testid="pix-code" style={{ margin: 0, wordBreak: "break-all", lineHeight: 1.55 }}>
170
183
  {pix.copyPaste}