@wirexapp/card-sdk-web 1.1.0-beta.1 → 1.1.0-beta.3

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 (2) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,80 @@
1
1
  # @wirexapp/card-sdk-web
2
2
 
3
+ ## 1.1.0-beta.3
4
+
5
+ ### Minor Changes
6
+
7
+ - 390c416: New `fontSmoothing` appearance token — `'auto'` (default, as today) or
8
+ `'antialiased'`: the frame document gets `-webkit-font-smoothing:
9
+ antialiased` and `-moz-osx-font-smoothing: grayscale`. Host pages whose
10
+ global CSS antialiases the body (Mantine, Tailwind preflight, most design
11
+ systems) otherwise sit next to frame text that macOS renders visibly heavier
12
+ at the same family, size and weight. Applies to the collect, reveal and
13
+ wallet frames; enumerated and re-validated in the frame, and an older frame
14
+ drops the token and keeps `auto`.
15
+ - d4654e9: Reveal `copy` option — `'button'` (default: the icon button, as today),
16
+ `'row'` (the whole row is one copy control: a real `<button>`, no icon, no
17
+ reserved width; the copied state shows on the value and is announced to
18
+ assistive tech) or `'none'` (no copy affordance; the value stays selectable
19
+ text). Copy still runs inside the frame and `onCopied` still carries the
20
+ field name only. Enumerated and re-validated in the frame; an older frame
21
+ ignores the option and renders the icon button.
22
+
23
+ Reveal `showLabels` option (default `true`). `false` renders no label
24
+ element at all — not an empty one — so a row is exactly as tall as its
25
+ value; the label string becomes the value's `aria-label`, and the icon copy
26
+ button's name carries the field ("Card Number: Copy"). With `copy:
27
+ 'button'` such a row is floored at the icon's hit target (`copyIconSize` +
28
+ 12px) so adjacent buttons never overlap. Replaces the `fontSizeLabel: '0px'`
29
+ / `lineHeightLabel: '0px'` workaround.
30
+
31
+ Reveal `rowStyle` option — `'plain'` (default, as today) or `'boxed'`: each
32
+ row becomes a pill drawn from the box tokens the collect inputs already use
33
+ (`colorBackground`, `colorBorder`, `borderRadius`, `borderWidth`,
34
+ `controlMinHeight`; 16px horizontal padding, `spacingUnit` vertical,
35
+ `fieldGap` between pills), so a border hugs the value instead of the
36
+ iframe. Deliberately opt-in: those tokens already reach reveal frames from
37
+ hosts that share one appearance object with collect, so honouring them on
38
+ presence would have restyled existing reveal rows.
39
+
40
+ Reveal `layout` option — `'column'` (default) or `'row'`: the frame's
41
+ fields sit side by side with equal widths, separated by the new `fieldGap`
42
+ appearance token (length; default `12px`; also the gap between `'boxed'`
43
+ pills). `fields: ['expiry', 'cvv']` with `layout: 'row'` is one frame and
44
+ one `/details` call where two single-field frames called it twice with the
45
+ same action token. Frame-wide on purpose: a mixed arrangement is two
46
+ frames, because a nested `fields` shape would not be ignorable by older
47
+ frames.
48
+
49
+ New `wordSpacing` appearance token (length grammar): extra space between
50
+ the card number's four-digit groups in the reveal frame — the value is
51
+ still chunked with single spaces, and no other row is affected. Reveal
52
+ `fields` entries are now validated against the known row names (unknown
53
+ entries are dropped instead of rendering an `undefined` label).
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [390c416]
58
+ - Updated dependencies [d4654e9]
59
+ - @wirexapp/card-sdk-core@1.1.0-beta.3
60
+ - @wirexapp/card-reveal-web@1.1.0-beta.3
61
+ - @wirexapp/card-oct-web@1.1.0-beta.3
62
+ - @wirexapp/card-topup-web@1.1.0-beta.3
63
+ - @wirexapp/card-wallet-topup-web@1.1.0-beta.3
64
+ - @wirexapp/card-3ds-web@1.1.0-beta.3
65
+
66
+ ## 1.1.0-beta.2
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [1d89a12]
71
+ - @wirexapp/card-sdk-core@1.1.0-beta.2
72
+ - @wirexapp/card-wallet-topup-web@1.1.0-beta.2
73
+ - @wirexapp/card-oct-web@1.1.0-beta.2
74
+ - @wirexapp/card-reveal-web@1.1.0-beta.2
75
+ - @wirexapp/card-topup-web@1.1.0-beta.2
76
+ - @wirexapp/card-3ds-web@1.1.0-beta.2
77
+
3
78
  ## 1.1.0-beta.1
4
79
 
5
80
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirexapp/card-sdk-web",
3
- "version": "1.1.0-beta.1",
3
+ "version": "1.1.0-beta.3",
4
4
  "type": "module",
5
5
  "description": "Umbrella over the Wirex PCI card SDK capability packages (topup, oct, reveal, 3DS, wallet top-up) with the createPciSdk factory. CHD-free loader.",
6
6
  "license": "UNLICENSED",
@@ -37,11 +37,11 @@
37
37
  "prepublishOnly": "yarn clean && yarn build"
38
38
  },
39
39
  "dependencies": {
40
- "@wirexapp/card-3ds-web": "1.1.0-beta.1",
41
- "@wirexapp/card-oct-web": "1.1.0-beta.1",
42
- "@wirexapp/card-reveal-web": "1.1.0-beta.1",
43
- "@wirexapp/card-sdk-core": "1.1.0-beta.1",
44
- "@wirexapp/card-topup-web": "1.1.0-beta.1",
45
- "@wirexapp/card-wallet-topup-web": "1.1.0-beta.1"
40
+ "@wirexapp/card-3ds-web": "1.1.0-beta.3",
41
+ "@wirexapp/card-oct-web": "1.1.0-beta.3",
42
+ "@wirexapp/card-reveal-web": "1.1.0-beta.3",
43
+ "@wirexapp/card-sdk-core": "1.1.0-beta.3",
44
+ "@wirexapp/card-topup-web": "1.1.0-beta.3",
45
+ "@wirexapp/card-wallet-topup-web": "1.1.0-beta.3"
46
46
  }
47
47
  }