@wirexapp/card-wallet-topup-web 1.0.0 → 1.1.0-beta.0
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/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,12 @@
|
|
|
16
16
|
* VERBATIM as the execute call's `wallet_payment_token`. No 3DS ever
|
|
17
17
|
* happens on this path; reconcile the money-moved truth on your backend.
|
|
18
18
|
*/
|
|
19
|
-
import {
|
|
19
|
+
import { type PciSdkConfig, type PciWalletAvailability, type PciWalletProviderConfig } from '@wirexapp/card-sdk-core';
|
|
20
|
+
import { probeWalletAvailability, PciWalletTopUpElement, type PciWalletTopUpElementConfig } from './walletElement.js';
|
|
21
|
+
import { openWalletTopUpPopup, type PciWalletTopUpPopup, type PciWalletTopUpPopupConfig } from './walletPopup.js';
|
|
22
|
+
export { probeWalletAvailability, PciWalletTopUpElement, openWalletTopUpPopup, };
|
|
23
|
+
export type { PciWalletTopUpElementConfig, PciWalletTopUpPopup, PciWalletTopUpPopupConfig, };
|
|
24
|
+
export type { PciWalletPaymentToken } from './walletElement.js';
|
|
20
25
|
/** Config of the combined (review + buttons) wallet checkout element. */
|
|
21
26
|
export type WalletTopUpFormConfig = PciWalletTopUpElementConfig;
|
|
22
27
|
export type WalletTopUpForm = PciWalletTopUpElement;
|
|
@@ -34,6 +39,7 @@ export interface CheckWalletAvailabilityOptions {
|
|
|
34
39
|
*/
|
|
35
40
|
export declare const checkWalletAvailability: (sdk: PciSdkConfig, options?: CheckWalletAvailabilityOptions) => Promise<PciWalletAvailability>;
|
|
36
41
|
/** Combined variant: review screen + wallet buttons in one Wirex-served frame. */
|
|
42
|
+
/** @beta Wallet top-up is in beta — breaking changes may land in beta releases. */
|
|
37
43
|
export declare const createWalletTopUpForm: (sdk: PciSdkConfig, config: WalletTopUpFormConfig) => WalletTopUpForm;
|
|
38
44
|
export type * from '@wirexapp/card-sdk-core';
|
|
39
45
|
export { PciFrameRequestError } from '@wirexapp/card-sdk-core';
|
|
@@ -43,6 +49,7 @@ export { PciFrameRequestError } from '@wirexapp/card-sdk-core';
|
|
|
43
49
|
* hosts need NO Apple domain registration or association file in this mode.
|
|
44
50
|
* MUST be called synchronously from a click handler (popup blockers). The
|
|
45
51
|
* encrypted token still arrives in `onToken`; the host still executes. */
|
|
52
|
+
/** @beta Wallet top-up is in beta — breaking changes may land in beta releases. */
|
|
46
53
|
export declare const openWalletCheckoutPopup: (sdk: PciSdkConfig, config: PciWalletTopUpPopupConfig) => PciWalletTopUpPopup;
|
|
47
54
|
export type { PciWalletTopUpPopup as WalletTopUpPopup, PciWalletTopUpPopupConfig as WalletTopUpPopupConfig };
|
|
48
55
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,KAAK,2BAA2B,EACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC/B,MAAM,eAAe,CAAC;AAMvB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,GACrB,CAAC;AACF,YAAY,EACV,2BAA2B,EAC3B,mBAAmB,EACnB,yBAAyB,GAC1B,CAAC;AACF,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,yEAAyE;AACzE,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC;AASpD,MAAM,WAAW,8BAA8B;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;yDAEqD;IACrD,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,KAAK,YAAY,EACjB,UAAU,8BAA8B,KACvC,OAAO,CAAC,qBAAqB,CAY/B,CAAC;AAEF,kFAAkF;AAClF,mFAAmF;AACnF,eAAO,MAAM,qBAAqB,GAChC,KAAK,YAAY,EACjB,QAAQ,qBAAqB,KAC5B,eAA2F,CAAC;AAI/F,mBAAmB,yBAAyB,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;2EAK2E;AAC3E,mFAAmF;AACnF,eAAO,MAAM,uBAAuB,GAClC,KAAK,YAAY,EACjB,QAAQ,yBAAyB,KAChC,mBAA0F,CAAC;AAE9F,YAAY,EAAE,mBAAmB,IAAI,gBAAgB,EAAE,yBAAyB,IAAI,sBAAsB,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,14 @@
|
|
|
16
16
|
* VERBATIM as the execute call's `wallet_payment_token`. No 3DS ever
|
|
17
17
|
* happens on this path; reconcile the money-moved truth on your backend.
|
|
18
18
|
*/
|
|
19
|
-
import { buildFrameUrl,
|
|
19
|
+
import { buildFrameUrl, } from '@wirexapp/card-sdk-core';
|
|
20
|
+
import { probeWalletAvailability, PciWalletTopUpElement, } from './walletElement.js';
|
|
21
|
+
import { openWalletTopUpPopup, } from './walletPopup.js';
|
|
22
|
+
// The wallet element/popup moved here from card-sdk-core: this whole package
|
|
23
|
+
// is the BETA wallet surface and iterates independently of the stable PCI
|
|
24
|
+
// packages (RELEASING.md "Channels"). Re-export under the original names so
|
|
25
|
+
// the umbrella's public API is unchanged.
|
|
26
|
+
export { probeWalletAvailability, PciWalletTopUpElement, openWalletTopUpPopup, };
|
|
20
27
|
/** One probe per frame URL (environment + client) per page session — the
|
|
21
28
|
* checks take no transaction context, so the result cannot go stale within a
|
|
22
29
|
* session. The provider config is assumed stable per session (it comes from
|
|
@@ -43,6 +50,7 @@ export const checkWalletAvailability = (sdk, options) => {
|
|
|
43
50
|
return probe;
|
|
44
51
|
};
|
|
45
52
|
/** Combined variant: review screen + wallet buttons in one Wirex-served frame. */
|
|
53
|
+
/** @beta Wallet top-up is in beta — breaking changes may land in beta releases. */
|
|
46
54
|
export const createWalletTopUpForm = (sdk, config) => new PciWalletTopUpElement(buildFrameUrl(sdk, 'wallet-checkout'), config);
|
|
47
55
|
// Value re-export so `error instanceof PciFrameRequestError` works when
|
|
48
56
|
// imported from this package.
|
|
@@ -53,5 +61,6 @@ export { PciFrameRequestError } from '@wirexapp/card-sdk-core';
|
|
|
53
61
|
* hosts need NO Apple domain registration or association file in this mode.
|
|
54
62
|
* MUST be called synchronously from a click handler (popup blockers). The
|
|
55
63
|
* encrypted token still arrives in `onToken`; the host still executes. */
|
|
64
|
+
/** @beta Wallet top-up is in beta — breaking changes may land in beta releases. */
|
|
56
65
|
export const openWalletCheckoutPopup = (sdk, config) => openWalletTopUpPopup(buildFrameUrl(sdk, 'wallet-checkout'), config);
|
|
57
66
|
//# 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;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACL,aAAa,GAId,MAAM,yBA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AE,MAAM,yBAAyB,CAAC;AAE/D;;;;;2EAK2E;AAC3E,mFAAmF;AACnF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,GAAiB,EACjB,MAAiC,EACZ,EAAE,CAAC,oBAAoB,CAAC,aAAa,CAAC,GAAG,EAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirexapp/card-wallet-topup-web",
|
|
3
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Top up via Apple Pay / Google Pay inside a Wirex-served checkout iframe — review screen + wallet buttons under Wirex's merchant identity; the payment sheet's encrypted token is returned to the host, which executes the top-up. No wallet onboarding on the partner side.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"prepublishOnly": "yarn clean && yarn build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@wirexapp/card-sdk-core": "1.0.0"
|
|
40
|
+
"@wirexapp/card-sdk-core": "1.1.0-beta.0"
|
|
41
41
|
}
|
|
42
42
|
}
|