@wirexapp/card-sdk-web 1.1.0-beta.2 → 1.1.0-beta.4

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 +97 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,102 @@
1
1
  # @wirexapp/card-sdk-web
2
2
 
3
+ ## 1.1.0-beta.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 731da3e: Wallet checkout TOKEN MODE (WPAY-4431): pass the backend's short-lived top-up
8
+ token as `auth.checkoutToken` and the hosted checkout executes the top-up
9
+ itself, reporting `onExecuted` / `onExecuteFailed` (`wallet-executed` /
10
+ `wallet-execute-failed` on the wire) — the wallet payment token never leaves
11
+ the frame. Legacy tokenize-and-return (`onToken`) is unchanged without `auth`.
12
+
13
+ Token mode also brings Google Pay to desktop (`googlePayHandoff: 'qr' | 'none'`,
14
+ probe flag `googlePayHandoff`): the frame draws a QR that carries the checkout
15
+ itself — the token, the quote and the estimate's `provider` name (new init /
16
+ `arm()` / `update()` field) — and an Android phone opens the same checkout
17
+ top-level, pays and executes. Nothing is stored on the frames service and the
18
+ desktop never learns the outcome: hosts reconcile by their own status reads
19
+ after `wallet-state: handoff-pending`. `arm(quote, config, auth?, provider?)` /
20
+ `update(quote, config?, auth?, provider?)`; `wallet-update` carries `auth` and
21
+ `provider`; new `wallet-state` values `executing`, `handoff-pending`.
22
+
23
+ `buildWalletLaunchFragment` / `buildWalletLaunchUrl` (core) build the same
24
+ compact fragment for a Chrome Custom Tab launch (`#t=&e=&s=&p=[&r=]`); the page
25
+ resolves the provider block from the public BaaS config by name.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [731da3e]
30
+ - @wirexapp/card-sdk-core@1.1.0-beta.4
31
+ - @wirexapp/card-wallet-topup-web@1.1.0-beta.4
32
+ - @wirexapp/card-topup-web@1.1.0-beta.4
33
+ - @wirexapp/card-oct-web@1.1.0-beta.4
34
+ - @wirexapp/card-reveal-web@1.1.0-beta.4
35
+ - @wirexapp/card-3ds-web@1.1.0-beta.4
36
+
37
+ ## 1.1.0-beta.3
38
+
39
+ ### Minor Changes
40
+
41
+ - 390c416: New `fontSmoothing` appearance token — `'auto'` (default, as today) or
42
+ `'antialiased'`: the frame document gets `-webkit-font-smoothing:
43
+ antialiased` and `-moz-osx-font-smoothing: grayscale`. Host pages whose
44
+ global CSS antialiases the body (Mantine, Tailwind preflight, most design
45
+ systems) otherwise sit next to frame text that macOS renders visibly heavier
46
+ at the same family, size and weight. Applies to the collect, reveal and
47
+ wallet frames; enumerated and re-validated in the frame, and an older frame
48
+ drops the token and keeps `auto`.
49
+ - d4654e9: Reveal `copy` option — `'button'` (default: the icon button, as today),
50
+ `'row'` (the whole row is one copy control: a real `<button>`, no icon, no
51
+ reserved width; the copied state shows on the value and is announced to
52
+ assistive tech) or `'none'` (no copy affordance; the value stays selectable
53
+ text). Copy still runs inside the frame and `onCopied` still carries the
54
+ field name only. Enumerated and re-validated in the frame; an older frame
55
+ ignores the option and renders the icon button.
56
+
57
+ Reveal `showLabels` option (default `true`). `false` renders no label
58
+ element at all — not an empty one — so a row is exactly as tall as its
59
+ value; the label string becomes the value's `aria-label`, and the icon copy
60
+ button's name carries the field ("Card Number: Copy"). With `copy:
61
+ 'button'` such a row is floored at the icon's hit target (`copyIconSize` +
62
+ 12px) so adjacent buttons never overlap. Replaces the `fontSizeLabel: '0px'`
63
+ / `lineHeightLabel: '0px'` workaround.
64
+
65
+ Reveal `rowStyle` option — `'plain'` (default, as today) or `'boxed'`: each
66
+ row becomes a pill drawn from the box tokens the collect inputs already use
67
+ (`colorBackground`, `colorBorder`, `borderRadius`, `borderWidth`,
68
+ `controlMinHeight`; 16px horizontal padding, `spacingUnit` vertical,
69
+ `fieldGap` between pills), so a border hugs the value instead of the
70
+ iframe. Deliberately opt-in: those tokens already reach reveal frames from
71
+ hosts that share one appearance object with collect, so honouring them on
72
+ presence would have restyled existing reveal rows.
73
+
74
+ Reveal `layout` option — `'column'` (default) or `'row'`: the frame's
75
+ fields sit side by side with equal widths, separated by the new `fieldGap`
76
+ appearance token (length; default `12px`; also the gap between `'boxed'`
77
+ pills). `fields: ['expiry', 'cvv']` with `layout: 'row'` is one frame and
78
+ one `/details` call where two single-field frames called it twice with the
79
+ same action token. Frame-wide on purpose: a mixed arrangement is two
80
+ frames, because a nested `fields` shape would not be ignorable by older
81
+ frames.
82
+
83
+ New `wordSpacing` appearance token (length grammar): extra space between
84
+ the card number's four-digit groups in the reveal frame — the value is
85
+ still chunked with single spaces, and no other row is affected. Reveal
86
+ `fields` entries are now validated against the known row names (unknown
87
+ entries are dropped instead of rendering an `undefined` label).
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [390c416]
92
+ - Updated dependencies [d4654e9]
93
+ - @wirexapp/card-sdk-core@1.1.0-beta.3
94
+ - @wirexapp/card-reveal-web@1.1.0-beta.3
95
+ - @wirexapp/card-oct-web@1.1.0-beta.3
96
+ - @wirexapp/card-topup-web@1.1.0-beta.3
97
+ - @wirexapp/card-wallet-topup-web@1.1.0-beta.3
98
+ - @wirexapp/card-3ds-web@1.1.0-beta.3
99
+
3
100
  ## 1.1.0-beta.2
4
101
 
5
102
  ### 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.2",
3
+ "version": "1.1.0-beta.4",
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.2",
41
- "@wirexapp/card-oct-web": "1.1.0-beta.2",
42
- "@wirexapp/card-reveal-web": "1.1.0-beta.2",
43
- "@wirexapp/card-sdk-core": "1.1.0-beta.2",
44
- "@wirexapp/card-topup-web": "1.1.0-beta.2",
45
- "@wirexapp/card-wallet-topup-web": "1.1.0-beta.2"
40
+ "@wirexapp/card-3ds-web": "1.1.0-beta.4",
41
+ "@wirexapp/card-oct-web": "1.1.0-beta.4",
42
+ "@wirexapp/card-reveal-web": "1.1.0-beta.4",
43
+ "@wirexapp/card-sdk-core": "1.1.0-beta.4",
44
+ "@wirexapp/card-topup-web": "1.1.0-beta.4",
45
+ "@wirexapp/card-wallet-topup-web": "1.1.0-beta.4"
46
46
  }
47
47
  }