@wirexapp/card-sdk-web 0.1.0-beta.1 → 0.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.
- package/CHANGELOG.md +45 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @wirexapp/card-sdk-web
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- da3aa2e: Add wallet top-up (Apple Pay / Google Pay) capability — `@wirexapp/card-wallet-topup-web`.
|
|
8
|
+
|
|
9
|
+
New hosted checkout model per docs/WALLET-TOPUP-DESIGN.md: a Wirex-served frame renders the transaction review (amounts fetched from the backend by estimation id — the host cannot spoof them) and the wallet buttons under Wirex's single merchant identity, so partners need no Apple/Google onboarding. Public API: `checkWalletAvailability()` (Phase-A probe, cached per session) and `createWalletTopUpForm()` (mount / update / destroy, results via callbacks with an execute watchdog and a designed-in `threeDsRequired` fallback into `@wirexapp/card-3ds-web`). React bindings: `useWalletAvailability()` + `<WalletTopUpForm />`. Protocol additions are purely additive within v1 (new init modes + wallet event types). Frame-side backend paths are the frontend contract proposal (§9) pending backend agreement.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [da3aa2e]
|
|
14
|
+
- @wirexapp/card-sdk-core@0.1.0-beta.3
|
|
15
|
+
- @wirexapp/card-wallet-topup-web@0.1.0-beta.3
|
|
16
|
+
- @wirexapp/card-oct-web@0.1.0-beta.3
|
|
17
|
+
- @wirexapp/card-reveal-web@0.1.0-beta.3
|
|
18
|
+
- @wirexapp/card-topup-web@0.1.0-beta.3
|
|
19
|
+
- @wirexapp/card-3ds-web@0.1.0-beta.3
|
|
20
|
+
|
|
21
|
+
## 0.1.0-beta.2
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- d627675: Reveal copy-button appearance tokens: `copyIconSize`, `colorCopyIcon`,
|
|
26
|
+
`colorCopyIconHover`, `colorCopyIconCopied` (same validated color/length
|
|
27
|
+
grammar as every other token; older frames drop them silently). The frame's
|
|
28
|
+
copy/check glyphs, copied-state timing (2s) and pop-in animation now match
|
|
29
|
+
the Wirex app's native CopyButton.
|
|
30
|
+
|
|
31
|
+
`card-react` additionally re-exports the reveal capability types core does
|
|
32
|
+
not cover (`PciRevealAuth`, `PciRevealElement`, `PciRevealElementConfig`),
|
|
33
|
+
so hosts writing auth helpers can import everything from the one package.
|
|
34
|
+
|
|
35
|
+
New reveal `onCopied` callback (element config + `CardReveal` prop): fires
|
|
36
|
+
when the user copies a row inside the frame, carrying the field name ONLY —
|
|
37
|
+
never the value — so hosts can restore their copy-click analytics.
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [d627675]
|
|
42
|
+
- @wirexapp/card-sdk-core@0.1.0-beta.2
|
|
43
|
+
- @wirexapp/card-topup-web@0.1.0-beta.2
|
|
44
|
+
- @wirexapp/card-oct-web@0.1.0-beta.2
|
|
45
|
+
- @wirexapp/card-reveal-web@0.1.0-beta.2
|
|
46
|
+
- @wirexapp/card-3ds-web@0.1.0-beta.2
|
|
47
|
+
|
|
3
48
|
## 0.1.0-beta.1
|
|
4
49
|
|
|
5
50
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -6,19 +6,26 @@
|
|
|
6
6
|
* `@wirexapp/card-topup-web`, `@wirexapp/card-oct-web` or
|
|
7
7
|
* `@wirexapp/card-reveal-web` directly.
|
|
8
8
|
*/
|
|
9
|
-
import { PciCollectElement, PciCollectGroup, type PciCollectElementConfig, type PciCollectGroupConfig, type PciSdkConfig } from '@wirexapp/card-sdk-core';
|
|
9
|
+
import { PciCollectElement, PciCollectGroup, type PciCollectElementConfig, type PciCollectGroupConfig, type PciSdkConfig, type PciWalletAvailability, type PciWalletTopUpElement } from '@wirexapp/card-sdk-core';
|
|
10
10
|
import { PciRevealElement, type PciRevealElementConfig } from '@wirexapp/card-reveal-web';
|
|
11
|
+
import { type WalletTopUpFormConfig } from '@wirexapp/card-wallet-topup-web';
|
|
11
12
|
export * from '@wirexapp/card-3ds-web';
|
|
12
13
|
export * from '@wirexapp/card-sdk-core';
|
|
13
14
|
export * from '@wirexapp/card-oct-web';
|
|
14
15
|
export * from '@wirexapp/card-reveal-web';
|
|
15
16
|
export * from '@wirexapp/card-topup-web';
|
|
17
|
+
export * from '@wirexapp/card-wallet-topup-web';
|
|
16
18
|
export interface PciSdk {
|
|
17
19
|
/** Single-form (combined) Collect element — all fields in one iframe. */
|
|
18
20
|
createCollectElement: (config: PciCollectElementConfig) => PciCollectElement;
|
|
19
21
|
/** Per-field (split) Collect group — one iframe per field, host-arranged. */
|
|
20
22
|
createCollectGroup: (config: PciCollectGroupConfig) => PciCollectGroup;
|
|
21
23
|
createRevealElement: (config: PciRevealElementConfig) => PciRevealElement;
|
|
24
|
+
/** Wallet top-up (Apple Pay / Google Pay) checkout element — review screen
|
|
25
|
+
* + wallet buttons in one Wirex-served iframe. */
|
|
26
|
+
createWalletTopUpForm: (config: WalletTopUpFormConfig) => PciWalletTopUpElement;
|
|
27
|
+
/** Phase-A wallet availability probe (cached per page session). */
|
|
28
|
+
checkWalletAvailability: () => Promise<PciWalletAvailability>;
|
|
22
29
|
}
|
|
23
30
|
/** Entry point. Mirrors the vendor pattern (Stripe/VGS): the npm package is a
|
|
24
31
|
* thin, CHD-free loader; everything sensitive lives in the frames. */
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAGL,iBAAiB,EACjB,eAAe,EACf,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAGL,iBAAiB,EACjB,eAAe,EACf,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,iCAAiC,CAAC;AAEzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAEhD,MAAM,WAAW,MAAM;IACrB,yEAAyE;IACzE,oBAAoB,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,iBAAiB,CAAC;IAC7E,6EAA6E;IAC7E,kBAAkB,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,eAAe,CAAC;IACvE,mBAAmB,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,gBAAgB,CAAC;IAC1E;uDACmD;IACnD,qBAAqB,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,qBAAqB,CAAC;IAChF,mEAAmE;IACnE,uBAAuB,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC/D;AAED;uEACuE;AACvE,eAAO,MAAM,YAAY,GAAI,QAAQ,YAAY,KAAG,MAYnD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { buildFrameUrl, resolveFrameOrigin, PciCollectElement, PciCollectGroup, } from '@wirexapp/card-sdk-core';
|
|
10
10
|
import { PciRevealElement } from '@wirexapp/card-reveal-web';
|
|
11
|
+
import { checkWalletAvailability, createWalletTopUpForm, } from '@wirexapp/card-wallet-topup-web';
|
|
11
12
|
export * from '@wirexapp/card-3ds-web';
|
|
12
13
|
export * from '@wirexapp/card-sdk-core';
|
|
13
14
|
export * from '@wirexapp/card-oct-web';
|
|
14
15
|
export * from '@wirexapp/card-reveal-web';
|
|
15
16
|
export * from '@wirexapp/card-topup-web';
|
|
17
|
+
export * from '@wirexapp/card-wallet-topup-web';
|
|
16
18
|
/** Entry point. Mirrors the vendor pattern (Stripe/VGS): the npm package is a
|
|
17
19
|
* thin, CHD-free loader; everything sensitive lives in the frames. */
|
|
18
20
|
export const createPciSdk = (config) => {
|
|
@@ -21,6 +23,8 @@ export const createPciSdk = (config) => {
|
|
|
21
23
|
createCollectElement: elementConfig => new PciCollectElement(buildFrameUrl(config, 'collect'), elementConfig),
|
|
22
24
|
createCollectGroup: groupConfig => new PciCollectGroup(buildFrameUrl(config, 'collect-field'), groupConfig),
|
|
23
25
|
createRevealElement: elementConfig => new PciRevealElement(buildFrameUrl(config, 'reveal'), elementConfig),
|
|
26
|
+
createWalletTopUpForm: formConfig => createWalletTopUpForm(config, formConfig),
|
|
27
|
+
checkWalletAvailability: () => checkWalletAvailability(config),
|
|
24
28
|
};
|
|
25
29
|
};
|
|
26
30
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAMhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAA+B,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GAEtB,MAAM,iCAAiC,CAAC;AAEzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAehD;uEACuE;AACvE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAoB,EAAU,EAAE;IAC3D,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,uEAAuE;IACnG,OAAO;QACL,oBAAoB,EAAE,aAAa,CAAC,EAAE,CACpC,IAAI,iBAAiB,CAAC,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,CAAC;QACxE,kBAAkB,EAAE,WAAW,CAAC,EAAE,CAChC,IAAI,eAAe,CAAC,aAAa,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE,WAAW,CAAC;QAC1E,mBAAmB,EAAE,aAAa,CAAC,EAAE,CACnC,IAAI,gBAAgB,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;QACtE,qBAAqB,EAAE,UAAU,CAAC,EAAE,CAAC,qBAAqB,CAAC,MAAM,EAAE,UAAU,CAAC;QAC9E,uBAAuB,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAAC;KAC/D,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirexapp/card-sdk-web",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Umbrella over the Wirex PCI card SDK capability packages (topup, oct, reveal) with the createPciSdk factory. CHD-free loader.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -30,17 +30,18 @@
|
|
|
30
30
|
"README.md"
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "tsc -p tsconfig.build.json",
|
|
33
|
+
"build": "tsc -p tsconfig.build.json && node ../../scripts/fix-esm-extensions.mjs dist",
|
|
34
34
|
"dev": "tsc -p tsconfig.build.json --watch",
|
|
35
|
-
"clean": "rm -rf dist",
|
|
35
|
+
"clean": "rm -rf dist tsconfig.build.tsbuildinfo",
|
|
36
36
|
"typecheck": "yarn run -T tsc --noEmit",
|
|
37
37
|
"prepublishOnly": "yarn clean && yarn build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@wirexapp/card-3ds-web": "0.1.0-beta.
|
|
41
|
-
"@wirexapp/card-oct-web": "0.1.0-beta.
|
|
42
|
-
"@wirexapp/card-reveal-web": "0.1.0-beta.
|
|
43
|
-
"@wirexapp/card-sdk-core": "0.1.0-beta.
|
|
44
|
-
"@wirexapp/card-topup-web": "0.1.0-beta.
|
|
40
|
+
"@wirexapp/card-3ds-web": "0.1.0-beta.3",
|
|
41
|
+
"@wirexapp/card-oct-web": "0.1.0-beta.3",
|
|
42
|
+
"@wirexapp/card-reveal-web": "0.1.0-beta.3",
|
|
43
|
+
"@wirexapp/card-sdk-core": "0.1.0-beta.3",
|
|
44
|
+
"@wirexapp/card-topup-web": "0.1.0-beta.3",
|
|
45
|
+
"@wirexapp/card-wallet-topup-web": "0.1.0-beta.3"
|
|
45
46
|
}
|
|
46
47
|
}
|