@coinflowlabs/angular 1.3.2 → 1.5.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/README.md +8 -0
- package/fesm2022/coinflowlabs-angular.mjs +99 -59
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/package.json +5 -5
- package/types/coinflowlabs-angular.d.ts +1529 -0
- package/index.d.ts +0 -5
- package/lib/card-form/CardFormService.d.ts +0 -14
- package/lib/card-form/coinflow-card-number-input.component.d.ts +0 -17
- package/lib/card-form/coinflow-card-number-only-input.component.d.ts +0 -17
- package/lib/card-form/coinflow-cvv-input.component.d.ts +0 -6
- package/lib/card-form/coinflow-cvv-only-input.component.d.ts +0 -19
- package/lib/coinflow-iframe.component.d.ts +0 -22
- package/lib/coinflow-purchase-history.component.d.ts +0 -5
- package/lib/coinflow-purchase-protection.component.d.ts +0 -5
- package/lib/coinflow-purchase.component.d.ts +0 -11
- package/lib/coinflow-withdraw-history.component.d.ts +0 -5
- package/lib/coinflow-withdraw.component.d.ts +0 -11
- package/lib/common/CoinflowLibMessageHandlers.d.ts +0 -35
- package/lib/common/CoinflowTypes.d.ts +0 -547
- package/lib/common/CoinflowUtils.d.ts +0 -24
- package/lib/common/EventBus.d.ts +0 -6
- package/lib/common/SolanaPeerDeps.d.ts +0 -5
- package/lib/common/card-form/TokenEx.d.ts +0 -171
- package/lib/common/card-form/tokenexHelpers.d.ts +0 -35
- package/lib/common/index.d.ts +0 -11
- package/lib/common/types/AnyObject.d.ts +0 -5
- package/lib/common/types/CartitemCommon.d.ts +0 -163
- package/lib/common/types/Subtotal.d.ts +0 -210
- package/lib/common/types/cryptoCartItem.d.ts +0 -63
- package/lib/common/types/giftCardCartItem.d.ts +0 -58
- package/lib/common/types/moneyTopUpCartItem.d.ts +0 -44
- package/lib/common/types/nftCartItem.d.ts +0 -108
- package/lib/mobile-wallet/coinflow-apple-pay-button.component.d.ts +0 -11
- package/lib/mobile-wallet/coinflow-google-pay-button.component.d.ts +0 -10
- package/lib/mobile-wallet/coinflow-mobile-wallet-button.component.d.ts +0 -22
- package/lib/mobile-wallet/google-pay-overlay.component.d.ts +0 -6
- package/public-api.d.ts +0 -16
package/README.md
CHANGED
|
@@ -4,6 +4,14 @@ This library was generated with [Angular CLI](https://github.com/angular/angular
|
|
|
4
4
|
|
|
5
5
|
# Changelog
|
|
6
6
|
|
|
7
|
+
## 1.5.0
|
|
8
|
+
|
|
9
|
+
- Added zeroAuthorizationConfig prop to CoinflowPurchase for controlling zero authorization behavior (show/hide saved payment methods, verify a specific card by token). Deprecates isZeroAuthorization boolean prop.
|
|
10
|
+
|
|
11
|
+
## 1.4.0
|
|
12
|
+
|
|
13
|
+
- New Blockchain Support: The SDK now supports Monad, a high-performance EVM-compatible blockchain. Pass blockchain='monad' to enable Monad payment processing.
|
|
14
|
+
|
|
7
15
|
## 1.3.2
|
|
8
16
|
|
|
9
17
|
- Internal change to a query parameter name for zero authorization
|
|
@@ -31,6 +31,12 @@ var SettlementType;
|
|
|
31
31
|
SettlementType["USDC"] = "USDC";
|
|
32
32
|
SettlementType["Bank"] = "Bank";
|
|
33
33
|
})(SettlementType || (SettlementType = {}));
|
|
34
|
+
function isZeroAuthVerifyCard(config) {
|
|
35
|
+
return 'cardToken' in config;
|
|
36
|
+
}
|
|
37
|
+
function isZeroAuthSavedPaymentMethods(config) {
|
|
38
|
+
return 'disableSavedPaymentMethods' in config;
|
|
39
|
+
}
|
|
34
40
|
var MerchantStyle;
|
|
35
41
|
(function (MerchantStyle) {
|
|
36
42
|
MerchantStyle["Rounded"] = "rounded";
|
|
@@ -79,6 +85,7 @@ var CardType;
|
|
|
79
85
|
CardType["AMEX"] = "AMEX";
|
|
80
86
|
CardType["DISCOVER"] = "DISC";
|
|
81
87
|
})(CardType || (CardType = {}));
|
|
88
|
+
const RN_REDIRECT_MESSAGE_NAME = 'rnredirect'; // DO NOT CHANGE
|
|
82
89
|
|
|
83
90
|
// This works in angular, but not react
|
|
84
91
|
// let web3: typeof import('@solana/web3.js') | undefined;
|
|
@@ -471,6 +478,12 @@ function isTypedCurrencyCents(cents, currency) {
|
|
|
471
478
|
return cents.currency === currency;
|
|
472
479
|
}
|
|
473
480
|
|
|
481
|
+
function fun() {
|
|
482
|
+
if (nsureSDK)
|
|
483
|
+
return nsureSDK.getDeviceId();
|
|
484
|
+
return null;
|
|
485
|
+
}
|
|
486
|
+
|
|
474
487
|
class CoinflowUtils {
|
|
475
488
|
constructor(env) {
|
|
476
489
|
this.env = env ?? 'prod';
|
|
@@ -500,6 +513,16 @@ class CoinflowUtils {
|
|
|
500
513
|
return 'http://localhost:3000';
|
|
501
514
|
return `https://${env}.coinflow.cash`;
|
|
502
515
|
}
|
|
516
|
+
static getCoinflowAppBaseUrl(env) {
|
|
517
|
+
if (!env || env === 'prod')
|
|
518
|
+
return 'https://app.coinflow.cash';
|
|
519
|
+
// @ts-expect-error This is for testing
|
|
520
|
+
if (env === 'ngrok')
|
|
521
|
+
return 'https://coinflow.ngrok.app';
|
|
522
|
+
if (env === 'local')
|
|
523
|
+
return 'http://localhost:3003';
|
|
524
|
+
return `https://app-${env}.coinflow.cash`;
|
|
525
|
+
}
|
|
503
526
|
static getCoinflowApiUrl(env) {
|
|
504
527
|
if (!env || env === 'prod')
|
|
505
528
|
return 'https://api.coinflow.cash';
|
|
@@ -507,11 +530,11 @@ class CoinflowUtils {
|
|
|
507
530
|
return 'http://localhost:5000';
|
|
508
531
|
return `https://api-${env}.coinflow.cash`;
|
|
509
532
|
}
|
|
510
|
-
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, redemptionCheck, allowedWithdrawSpeeds, isZeroAuthorization, }) {
|
|
533
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, redemptionCheck, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, baseUrl, }) {
|
|
511
534
|
const prefix = routePrefix
|
|
512
535
|
? `/${routePrefix}/${blockchain}`
|
|
513
536
|
: `/${blockchain}`;
|
|
514
|
-
const url = new URL(prefix + route, CoinflowUtils.getCoinflowBaseUrl(env));
|
|
537
|
+
const url = new URL(prefix + route, baseUrl ?? CoinflowUtils.getCoinflowBaseUrl(env));
|
|
515
538
|
if (walletPubkey)
|
|
516
539
|
url.searchParams.append('pubkey', walletPubkey);
|
|
517
540
|
if (sessionKey)
|
|
@@ -570,11 +593,9 @@ class CoinflowUtils {
|
|
|
570
593
|
url.searchParams.append('deviceId', deviceId);
|
|
571
594
|
}
|
|
572
595
|
else {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
url.searchParams.append('deviceId', deviceId);
|
|
577
|
-
}
|
|
596
|
+
const deviceId = fun();
|
|
597
|
+
if (deviceId)
|
|
598
|
+
url.searchParams.append('deviceId', deviceId);
|
|
578
599
|
}
|
|
579
600
|
if (merchantCss)
|
|
580
601
|
url.searchParams.append('merchantCss', merchantCss);
|
|
@@ -604,8 +625,13 @@ class CoinflowUtils {
|
|
|
604
625
|
url.searchParams.append('transactionSigner', transactionSigner);
|
|
605
626
|
if (authOnly === true)
|
|
606
627
|
url.searchParams.append('authOnly', 'true');
|
|
607
|
-
|
|
628
|
+
// zeroAuthorizationConfig takes precedence over isZeroAuthorization
|
|
629
|
+
if (zeroAuthorizationConfig) {
|
|
630
|
+
url.searchParams.append('zeroAuthorizationConfig', JSON.stringify(zeroAuthorizationConfig));
|
|
631
|
+
}
|
|
632
|
+
else if (isZeroAuthorization === true) {
|
|
608
633
|
url.searchParams.append('isZeroAuthorization', 'true');
|
|
634
|
+
}
|
|
609
635
|
if (partialUsdcChecked === true)
|
|
610
636
|
url.searchParams.append('partialUsdcChecked', 'true');
|
|
611
637
|
if (jwtToken)
|
|
@@ -638,10 +664,10 @@ class CoinflowUtils {
|
|
|
638
664
|
throw new Error('bs58 dependency is required for Solana');
|
|
639
665
|
if (!transaction)
|
|
640
666
|
return undefined;
|
|
641
|
-
return base58.encode(transaction.serialize({
|
|
667
|
+
return base58.encode(Uint8Array.from(transaction.serialize({
|
|
642
668
|
requireAllSignatures: false,
|
|
643
669
|
verifySignatures: false,
|
|
644
|
-
}));
|
|
670
|
+
})));
|
|
645
671
|
},
|
|
646
672
|
polygon: () => {
|
|
647
673
|
if (!('transaction' in props))
|
|
@@ -667,6 +693,12 @@ class CoinflowUtils {
|
|
|
667
693
|
const { transaction } = props;
|
|
668
694
|
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
669
695
|
},
|
|
696
|
+
monad: () => {
|
|
697
|
+
if (!('transaction' in props))
|
|
698
|
+
return undefined;
|
|
699
|
+
const { transaction } = props;
|
|
700
|
+
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
701
|
+
},
|
|
670
702
|
user: () => {
|
|
671
703
|
return undefined;
|
|
672
704
|
},
|
|
@@ -684,6 +716,8 @@ class CoinflowUtils {
|
|
|
684
716
|
return args.base;
|
|
685
717
|
case 'arbitrum':
|
|
686
718
|
return args.arbitrum;
|
|
719
|
+
case 'monad':
|
|
720
|
+
return args.monad;
|
|
687
721
|
case 'user':
|
|
688
722
|
return args.user;
|
|
689
723
|
default:
|
|
@@ -843,6 +877,11 @@ function getHandlers(props) {
|
|
|
843
877
|
onSuccess: props.onSuccess,
|
|
844
878
|
onAuthDeclined: props.onAuthDeclined,
|
|
845
879
|
}),
|
|
880
|
+
monad: () => getEvmWalletHandlers({
|
|
881
|
+
wallet: wallet,
|
|
882
|
+
onSuccess: props.onSuccess,
|
|
883
|
+
onAuthDeclined: props.onAuthDeclined,
|
|
884
|
+
}),
|
|
846
885
|
user: () => getSessionKeyHandlers(props),
|
|
847
886
|
})();
|
|
848
887
|
}
|
|
@@ -871,10 +910,10 @@ function getSolanaWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
|
871
910
|
const signedTransaction = await signTransaction(tx);
|
|
872
911
|
if (!base58)
|
|
873
912
|
throw new Error('bs58 dependency is required');
|
|
874
|
-
return base58.encode(signedTransaction.serialize({
|
|
913
|
+
return base58.encode(Uint8Array.from(signedTransaction.serialize({
|
|
875
914
|
requireAllSignatures: false,
|
|
876
915
|
verifySignatures: false,
|
|
877
|
-
}));
|
|
916
|
+
})));
|
|
878
917
|
},
|
|
879
918
|
onSuccess,
|
|
880
919
|
onAuthDeclined,
|
|
@@ -928,6 +967,7 @@ class EventBus {
|
|
|
928
967
|
}
|
|
929
968
|
|
|
930
969
|
// Type definitions for TokenEx iframe integration
|
|
970
|
+
/// <reference path="./TokenEx.global.d.ts" />
|
|
931
971
|
const TokenExCardNumberIframeId = 'tokenExCardNumber';
|
|
932
972
|
const TokenExCvvContainerID = 'tokenExCardCvv';
|
|
933
973
|
const CARD_TYPE_MAPPING = {
|
|
@@ -1095,7 +1135,7 @@ function CSSPropertiesToComponent(dict) {
|
|
|
1095
1135
|
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1096
1136
|
/* istanbul ignore file */
|
|
1097
1137
|
/* tslint:disable */
|
|
1098
|
-
/*
|
|
1138
|
+
/* oxlint-disable */
|
|
1099
1139
|
var nftCartItem;
|
|
1100
1140
|
(function (nftCartItem) {
|
|
1101
1141
|
/**
|
|
@@ -1183,8 +1223,8 @@ class CoinflowIFrameComponent {
|
|
|
1183
1223
|
this.isLoading = false;
|
|
1184
1224
|
this.onLoad?.();
|
|
1185
1225
|
}
|
|
1186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1187
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1226
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1227
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowIFrameComponent, isStandalone: true, selector: "lib-coinflow-iframe", inputs: { iframeProps: "iframeProps", messageHandlers: "messageHandlers", onLoad: "onLoad", waitForLoadedMessage: "waitForLoadedMessage" }, outputs: { messageEvent: "messageEvent" }, host: { listeners: { "window:message": "onPostMessage($event)" } }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0, template: ` <iframe
|
|
1188
1228
|
width="100%"
|
|
1189
1229
|
height="100%"
|
|
1190
1230
|
#iframe
|
|
@@ -1197,7 +1237,7 @@ class CoinflowIFrameComponent {
|
|
|
1197
1237
|
(load)="handleIframeLoad()"
|
|
1198
1238
|
></iframe>`, isInline: true }); }
|
|
1199
1239
|
}
|
|
1200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
|
|
1201
1241
|
type: Component,
|
|
1202
1242
|
args: [{
|
|
1203
1243
|
selector: 'lib-coinflow-iframe',
|
|
@@ -1249,10 +1289,10 @@ class CoinflowPurchaseComponent {
|
|
|
1249
1289
|
handleHeightChangeId,
|
|
1250
1290
|
};
|
|
1251
1291
|
}
|
|
1252
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1253
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1293
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowPurchaseComponent, isStandalone: true, selector: "lib-coinflow-purchase", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!" [onLoad]="purchaseProps?.onLoad" [waitForLoadedMessage]="true"></lib-coinflow-iframe> ', isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
1254
1294
|
}
|
|
1255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
|
|
1256
1296
|
type: Component,
|
|
1257
1297
|
args: [{
|
|
1258
1298
|
selector: 'lib-coinflow-purchase',
|
|
@@ -1265,10 +1305,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1265
1305
|
}] } });
|
|
1266
1306
|
|
|
1267
1307
|
class CoinflowPurchaseHistoryComponent {
|
|
1268
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1269
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1308
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1309
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowPurchaseHistoryComponent, isStandalone: true, selector: "lib-coinflow-purchase-history", ngImport: i0, template: ' <p>coinflow-purchase-history works!</p> ', isInline: true }); }
|
|
1270
1310
|
}
|
|
1271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
|
|
1272
1312
|
type: Component,
|
|
1273
1313
|
args: [{
|
|
1274
1314
|
selector: 'lib-coinflow-purchase-history',
|
|
@@ -1279,10 +1319,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1279
1319
|
}] });
|
|
1280
1320
|
|
|
1281
1321
|
class CoinflowPurchaseProtectionComponent {
|
|
1282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1283
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1322
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1323
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowPurchaseProtectionComponent, isStandalone: true, selector: "lib-coinflow-purchase-protection", ngImport: i0, template: ' <p>coinflow-purchase-protection works!</p> ', isInline: true }); }
|
|
1284
1324
|
}
|
|
1285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
|
|
1286
1326
|
type: Component,
|
|
1287
1327
|
args: [{
|
|
1288
1328
|
selector: 'lib-coinflow-purchase-protection',
|
|
@@ -1307,10 +1347,10 @@ class CoinflowWithdrawComponent {
|
|
|
1307
1347
|
handleHeightChangeId,
|
|
1308
1348
|
};
|
|
1309
1349
|
}
|
|
1310
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1311
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1350
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1351
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowWithdrawComponent, isStandalone: true, selector: "lib-coinflow-withdraw", inputs: { withdrawProps: "withdrawProps" }, ngImport: i0, template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!" [onLoad]="withdrawProps?.onLoad"></lib-coinflow-iframe> ', isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
1312
1352
|
}
|
|
1313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
|
|
1314
1354
|
type: Component,
|
|
1315
1355
|
args: [{
|
|
1316
1356
|
selector: 'lib-coinflow-withdraw',
|
|
@@ -1323,10 +1363,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1323
1363
|
}] } });
|
|
1324
1364
|
|
|
1325
1365
|
class CoinflowWithdrawHistoryComponent {
|
|
1326
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1327
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1366
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1367
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowWithdrawHistoryComponent, isStandalone: true, selector: "lib-coinflow-withdraw-history", ngImport: i0, template: ' <p>coinflow-withdraw-history works!</p> ', isInline: true }); }
|
|
1328
1368
|
}
|
|
1329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
|
|
1330
1370
|
type: Component,
|
|
1331
1371
|
args: [{
|
|
1332
1372
|
selector: 'lib-coinflow-withdraw-history',
|
|
@@ -1387,10 +1427,10 @@ class CardFormService {
|
|
|
1387
1427
|
iframe.load();
|
|
1388
1428
|
return iframe;
|
|
1389
1429
|
}
|
|
1390
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1391
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1430
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1431
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
|
|
1392
1432
|
}
|
|
1393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CardFormService, decorators: [{
|
|
1394
1434
|
type: Injectable,
|
|
1395
1435
|
args: [{
|
|
1396
1436
|
providedIn: 'root',
|
|
@@ -1431,10 +1471,10 @@ class CoinflowCardNumberInput {
|
|
|
1431
1471
|
tokenize() {
|
|
1432
1472
|
return this.iframe.tokenize();
|
|
1433
1473
|
}
|
|
1434
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1435
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1474
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1475
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowCardNumberInput, isStandalone: true, selector: "lib-coinflow-card-number-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
|
|
1436
1476
|
}
|
|
1437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
|
|
1438
1478
|
type: Component,
|
|
1439
1479
|
args: [{
|
|
1440
1480
|
selector: 'lib-coinflow-card-number-input',
|
|
@@ -1480,10 +1520,10 @@ class CoinflowCardNumberOnlyInput {
|
|
|
1480
1520
|
tokenize() {
|
|
1481
1521
|
return this.iframe.tokenize();
|
|
1482
1522
|
}
|
|
1483
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1484
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1523
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1524
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowCardNumberOnlyInput, isStandalone: true, selector: "lib-coinflow-card-number-only-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
|
|
1485
1525
|
}
|
|
1486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
|
|
1487
1527
|
type: Component,
|
|
1488
1528
|
args: [{
|
|
1489
1529
|
selector: 'lib-coinflow-card-number-only-input',
|
|
@@ -1499,10 +1539,10 @@ class CoinflowCvvInputComponent {
|
|
|
1499
1539
|
constructor() {
|
|
1500
1540
|
this.TokenExCvvContainerID = TokenExCvvContainerID;
|
|
1501
1541
|
}
|
|
1502
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1503
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1542
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1543
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowCvvInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-input", ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}" ></div>', isInline: true }); }
|
|
1504
1544
|
}
|
|
1505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
|
|
1506
1546
|
type: Component,
|
|
1507
1547
|
args: [{
|
|
1508
1548
|
selector: 'lib-coinflow-cvv-input',
|
|
@@ -1563,10 +1603,10 @@ class CoinflowCvvOnlyInputComponent {
|
|
|
1563
1603
|
tokenize() {
|
|
1564
1604
|
return this.iframe.tokenize();
|
|
1565
1605
|
}
|
|
1566
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1567
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1606
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1607
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowCvvOnlyInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-only-input", inputs: { args: "args" }, usesOnChanges: true, ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}"></div>', isInline: true }); }
|
|
1568
1608
|
}
|
|
1569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
|
|
1570
1610
|
type: Component,
|
|
1571
1611
|
args: [{
|
|
1572
1612
|
selector: 'lib-coinflow-cvv-only-input',
|
|
@@ -1615,8 +1655,8 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
1615
1655
|
handleHeightChangeId,
|
|
1616
1656
|
};
|
|
1617
1657
|
}
|
|
1618
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1619
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1658
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1659
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowMobileWalletButtonComponent, isStandalone: true, selector: "lib-coinflow-mobile-wallet-button", inputs: { purchaseProps: "purchaseProps", route: "route", overlayDisplayOverride: "overlayDisplayOverride", alignItems: "alignItems" }, ngImport: i0, template: ` <div style="position: relative; height: 100%;">
|
|
1620
1660
|
<div
|
|
1621
1661
|
[style.background-color]="purchaseProps.color"
|
|
1622
1662
|
[style.display]="overlayDisplayOverride ?? display"
|
|
@@ -1638,7 +1678,7 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
1638
1678
|
</div>
|
|
1639
1679
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
1640
1680
|
}
|
|
1641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
|
|
1642
1682
|
type: Component,
|
|
1643
1683
|
args: [{
|
|
1644
1684
|
selector: 'lib-coinflow-mobile-wallet-button',
|
|
@@ -1680,8 +1720,8 @@ class CoinflowApplePayButtonComponent {
|
|
|
1680
1720
|
fill() {
|
|
1681
1721
|
return this.purchaseProps.color === 'white' ? '#000' : '#FFF';
|
|
1682
1722
|
}
|
|
1683
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1684
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1723
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1724
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowApplePayButtonComponent, isStandalone: true, selector: "lib-coinflow-apple-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ` <lib-coinflow-mobile-wallet-button
|
|
1685
1725
|
ng-if="iframeProps && messageHandlers"
|
|
1686
1726
|
[purchaseProps]="purchaseProps"
|
|
1687
1727
|
route="apple-pay"
|
|
@@ -1723,7 +1763,7 @@ class CoinflowApplePayButtonComponent {
|
|
|
1723
1763
|
</svg>
|
|
1724
1764
|
</lib-coinflow-mobile-wallet-button>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }] }); }
|
|
1725
1765
|
}
|
|
1726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
|
|
1727
1767
|
type: Component,
|
|
1728
1768
|
args: [{
|
|
1729
1769
|
selector: 'lib-coinflow-apple-pay-button',
|
|
@@ -1776,8 +1816,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1776
1816
|
}] } });
|
|
1777
1817
|
|
|
1778
1818
|
class CoinflowGooglePayOverlayComponent {
|
|
1779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1780
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1819
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1820
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: CoinflowGooglePayOverlayComponent, isStandalone: true, selector: "coinflow-google-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
|
|
1781
1821
|
@if (color === 'white') {
|
|
1782
1822
|
<svg xmlns="http://www.w3.org/2000/svg" width="41" height="17">
|
|
1783
1823
|
<g fill="none" fill-rule="evenodd">
|
|
@@ -1832,7 +1872,7 @@ class CoinflowGooglePayOverlayComponent {
|
|
|
1832
1872
|
}
|
|
1833
1873
|
`, isInline: true }); }
|
|
1834
1874
|
}
|
|
1835
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
|
|
1836
1876
|
type: Component,
|
|
1837
1877
|
args: [{
|
|
1838
1878
|
selector: 'coinflow-google-pay-overlay',
|
|
@@ -1898,8 +1938,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1898
1938
|
}] } });
|
|
1899
1939
|
|
|
1900
1940
|
class CoinflowGooglePayButtonComponent {
|
|
1901
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1902
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1941
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1942
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: CoinflowGooglePayButtonComponent, isStandalone: true, selector: "lib-coinflow-google-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: `<lib-coinflow-mobile-wallet-button
|
|
1903
1943
|
ng-if="iframeProps && messageHandlers"
|
|
1904
1944
|
[purchaseProps]="purchaseProps"
|
|
1905
1945
|
route="google-pay"
|
|
@@ -1911,7 +1951,7 @@ class CoinflowGooglePayButtonComponent {
|
|
|
1911
1951
|
></coinflow-google-pay-overlay>
|
|
1912
1952
|
</lib-coinflow-mobile-wallet-button> `, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }, { kind: "component", type: CoinflowGooglePayOverlayComponent, selector: "coinflow-google-pay-overlay", inputs: ["color"] }] }); }
|
|
1913
1953
|
}
|
|
1914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
|
|
1915
1955
|
type: Component,
|
|
1916
1956
|
args: [{
|
|
1917
1957
|
selector: 'lib-coinflow-google-pay-button',
|
|
@@ -1944,5 +1984,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1944
1984
|
* Generated bundle index. Do not edit.
|
|
1945
1985
|
*/
|
|
1946
1986
|
|
|
1947
|
-
export { BankingCurrencies, CARD_TYPE_MAPPING, CardType, CoinflowApplePayButtonComponent, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, EventBus, IFrameMessageMethods, MerchantStyle, PaymentMethods, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCurrencyDecimals, getCustomerName, getHandlers, getIframeConfig, getWalletPubkey, handleIFrameMessage, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, nftCartItem, paymentMethodLabels, setTokenExScriptTag };
|
|
1987
|
+
export { BankingCurrencies, CARD_TYPE_MAPPING, CardType, CoinflowApplePayButtonComponent, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, EventBus, IFrameMessageMethods, MerchantStyle, PaymentMethods, RN_REDIRECT_MESSAGE_NAME, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCurrencyDecimals, getCustomerName, getHandlers, getIframeConfig, getWalletPubkey, handleIFrameMessage, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, paymentMethodLabels, setTokenExScriptTag };
|
|
1948
1988
|
//# sourceMappingURL=coinflowlabs-angular.mjs.map
|