@coinflowlabs/angular 1.5.0 → 1.6.1
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
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.6.1
|
|
8
|
+
|
|
9
|
+
- Added support for custom pay-in fees via `customPayInFees` in the JWT token or URL parameters. This allows merchants to add custom fee line items (fixed or percentage-based) that are displayed during checkout.
|
|
10
|
+
|
|
11
|
+
## 1.6.0
|
|
12
|
+
|
|
13
|
+
- New Blockchain Support: The SDK now supports Stellar, a fast and low-cost blockchain for payments. Pass blockchain='stellar' to enable Stellar payment processing.
|
|
14
|
+
|
|
7
15
|
## 1.5.0
|
|
8
16
|
|
|
9
17
|
- 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.
|
|
@@ -530,7 +530,7 @@ class CoinflowUtils {
|
|
|
530
530
|
return 'http://localhost:5000';
|
|
531
531
|
return `https://api-${env}.coinflow.cash`;
|
|
532
532
|
}
|
|
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, }) {
|
|
533
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, customPayInFees, 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, }) {
|
|
534
534
|
const prefix = routePrefix
|
|
535
535
|
? `/${routePrefix}/${blockchain}`
|
|
536
536
|
: `/${blockchain}`;
|
|
@@ -557,6 +557,9 @@ class CoinflowUtils {
|
|
|
557
557
|
url.searchParams.append('amount', subtotal.amount.toString());
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
+
if (customPayInFees && customPayInFees.length > 0) {
|
|
561
|
+
url.searchParams.append('customPayInFees', encodeURIComponent(JSON.stringify(customPayInFees)));
|
|
562
|
+
}
|
|
560
563
|
if (presentment)
|
|
561
564
|
url.searchParams.append('presentment', presentment);
|
|
562
565
|
if (webhookInfo) {
|
|
@@ -693,6 +696,15 @@ class CoinflowUtils {
|
|
|
693
696
|
const { transaction } = props;
|
|
694
697
|
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
695
698
|
},
|
|
699
|
+
stellar: () => {
|
|
700
|
+
if (!('transaction' in props))
|
|
701
|
+
return undefined;
|
|
702
|
+
const { transaction } = props;
|
|
703
|
+
if (!transaction)
|
|
704
|
+
return undefined;
|
|
705
|
+
// Transaction is already base64 XDR string, pass through directly
|
|
706
|
+
return transaction;
|
|
707
|
+
},
|
|
696
708
|
monad: () => {
|
|
697
709
|
if (!('transaction' in props))
|
|
698
710
|
return undefined;
|
|
@@ -716,6 +728,8 @@ class CoinflowUtils {
|
|
|
716
728
|
return args.base;
|
|
717
729
|
case 'arbitrum':
|
|
718
730
|
return args.arbitrum;
|
|
731
|
+
case 'stellar':
|
|
732
|
+
return args.stellar;
|
|
719
733
|
case 'monad':
|
|
720
734
|
return args.monad;
|
|
721
735
|
case 'user':
|
|
@@ -877,6 +891,11 @@ function getHandlers(props) {
|
|
|
877
891
|
onSuccess: props.onSuccess,
|
|
878
892
|
onAuthDeclined: props.onAuthDeclined,
|
|
879
893
|
}),
|
|
894
|
+
stellar: () => getStellarWalletHandlers({
|
|
895
|
+
wallet: wallet,
|
|
896
|
+
onSuccess: props.onSuccess,
|
|
897
|
+
onAuthDeclined: props.onAuthDeclined,
|
|
898
|
+
}),
|
|
880
899
|
monad: () => getEvmWalletHandlers({
|
|
881
900
|
wallet: wallet,
|
|
882
901
|
onSuccess: props.onSuccess,
|
|
@@ -944,6 +963,31 @@ function getEvmWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
|
944
963
|
onAuthDeclined,
|
|
945
964
|
};
|
|
946
965
|
}
|
|
966
|
+
function getStellarWalletHandlers({ wallet, onSuccess, onAuthDeclined, }) {
|
|
967
|
+
return {
|
|
968
|
+
handleSendTransaction: async (transaction) => {
|
|
969
|
+
// transaction is unsigned base64 XDR
|
|
970
|
+
// dapp needs to handle sending and confirming
|
|
971
|
+
throw new Error(`sendTransaction is not supported on stellar, error when sending: ${transaction}`);
|
|
972
|
+
},
|
|
973
|
+
handleSignMessage: async (message) => {
|
|
974
|
+
if (!wallet.signMessage) {
|
|
975
|
+
throw new Error('signMessage is not supported by this wallet');
|
|
976
|
+
}
|
|
977
|
+
// Returns base64-encoded signature
|
|
978
|
+
return await wallet.signMessage(message);
|
|
979
|
+
},
|
|
980
|
+
handleSignTransaction: async (transaction) => {
|
|
981
|
+
if (!wallet.signTransaction) {
|
|
982
|
+
throw new Error('signTransaction is not supported by this wallet');
|
|
983
|
+
}
|
|
984
|
+
// Returns signed base64 XDR
|
|
985
|
+
return await wallet.signTransaction(transaction);
|
|
986
|
+
},
|
|
987
|
+
onSuccess,
|
|
988
|
+
onAuthDeclined,
|
|
989
|
+
};
|
|
990
|
+
}
|
|
947
991
|
function getSessionKeyHandlers({ onSuccess, onAuthDeclined, }) {
|
|
948
992
|
return {
|
|
949
993
|
handleSendTransaction: async () => {
|
|
@@ -1223,8 +1267,8 @@ class CoinflowIFrameComponent {
|
|
|
1223
1267
|
this.isLoading = false;
|
|
1224
1268
|
this.onLoad?.();
|
|
1225
1269
|
}
|
|
1226
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1227
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1270
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1271
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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
|
|
1228
1272
|
width="100%"
|
|
1229
1273
|
height="100%"
|
|
1230
1274
|
#iframe
|
|
@@ -1237,7 +1281,7 @@ class CoinflowIFrameComponent {
|
|
|
1237
1281
|
(load)="handleIframeLoad()"
|
|
1238
1282
|
></iframe>`, isInline: true }); }
|
|
1239
1283
|
}
|
|
1240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
|
|
1241
1285
|
type: Component,
|
|
1242
1286
|
args: [{
|
|
1243
1287
|
selector: 'lib-coinflow-iframe',
|
|
@@ -1289,10 +1333,10 @@ class CoinflowPurchaseComponent {
|
|
|
1289
1333
|
handleHeightChangeId,
|
|
1290
1334
|
};
|
|
1291
1335
|
}
|
|
1292
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1293
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1337
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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"] }] }); }
|
|
1294
1338
|
}
|
|
1295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
|
|
1296
1340
|
type: Component,
|
|
1297
1341
|
args: [{
|
|
1298
1342
|
selector: 'lib-coinflow-purchase',
|
|
@@ -1305,10 +1349,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1305
1349
|
}] } });
|
|
1306
1350
|
|
|
1307
1351
|
class CoinflowPurchaseHistoryComponent {
|
|
1308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1309
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1352
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1353
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowPurchaseHistoryComponent, isStandalone: true, selector: "lib-coinflow-purchase-history", ngImport: i0, template: ' <p>coinflow-purchase-history works!</p> ', isInline: true }); }
|
|
1310
1354
|
}
|
|
1311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseHistoryComponent, decorators: [{
|
|
1312
1356
|
type: Component,
|
|
1313
1357
|
args: [{
|
|
1314
1358
|
selector: 'lib-coinflow-purchase-history',
|
|
@@ -1319,10 +1363,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1319
1363
|
}] });
|
|
1320
1364
|
|
|
1321
1365
|
class CoinflowPurchaseProtectionComponent {
|
|
1322
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1323
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1366
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseProtectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1367
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowPurchaseProtectionComponent, isStandalone: true, selector: "lib-coinflow-purchase-protection", ngImport: i0, template: ' <p>coinflow-purchase-protection works!</p> ', isInline: true }); }
|
|
1324
1368
|
}
|
|
1325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowPurchaseProtectionComponent, decorators: [{
|
|
1326
1370
|
type: Component,
|
|
1327
1371
|
args: [{
|
|
1328
1372
|
selector: 'lib-coinflow-purchase-protection',
|
|
@@ -1347,10 +1391,10 @@ class CoinflowWithdrawComponent {
|
|
|
1347
1391
|
handleHeightChangeId,
|
|
1348
1392
|
};
|
|
1349
1393
|
}
|
|
1350
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1351
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1394
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1395
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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"] }] }); }
|
|
1352
1396
|
}
|
|
1353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
|
|
1354
1398
|
type: Component,
|
|
1355
1399
|
args: [{
|
|
1356
1400
|
selector: 'lib-coinflow-withdraw',
|
|
@@ -1363,10 +1407,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1363
1407
|
}] } });
|
|
1364
1408
|
|
|
1365
1409
|
class CoinflowWithdrawHistoryComponent {
|
|
1366
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1367
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowWithdrawHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1411
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowWithdrawHistoryComponent, isStandalone: true, selector: "lib-coinflow-withdraw-history", ngImport: i0, template: ' <p>coinflow-withdraw-history works!</p> ', isInline: true }); }
|
|
1368
1412
|
}
|
|
1369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowWithdrawHistoryComponent, decorators: [{
|
|
1370
1414
|
type: Component,
|
|
1371
1415
|
args: [{
|
|
1372
1416
|
selector: 'lib-coinflow-withdraw-history',
|
|
@@ -1427,10 +1471,10 @@ class CardFormService {
|
|
|
1427
1471
|
iframe.load();
|
|
1428
1472
|
return iframe;
|
|
1429
1473
|
}
|
|
1430
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1431
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
1474
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CardFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1475
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CardFormService, providedIn: 'root' }); }
|
|
1432
1476
|
}
|
|
1433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CardFormService, decorators: [{
|
|
1434
1478
|
type: Injectable,
|
|
1435
1479
|
args: [{
|
|
1436
1480
|
providedIn: 'root',
|
|
@@ -1471,10 +1515,10 @@ class CoinflowCardNumberInput {
|
|
|
1471
1515
|
tokenize() {
|
|
1472
1516
|
return this.iframe.tokenize();
|
|
1473
1517
|
}
|
|
1474
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1475
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1518
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardNumberInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1519
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowCardNumberInput, isStandalone: true, selector: "lib-coinflow-card-number-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
|
|
1476
1520
|
}
|
|
1477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardNumberInput, decorators: [{
|
|
1478
1522
|
type: Component,
|
|
1479
1523
|
args: [{
|
|
1480
1524
|
selector: 'lib-coinflow-card-number-input',
|
|
@@ -1520,10 +1564,10 @@ class CoinflowCardNumberOnlyInput {
|
|
|
1520
1564
|
tokenize() {
|
|
1521
1565
|
return this.iframe.tokenize();
|
|
1522
1566
|
}
|
|
1523
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1524
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardNumberOnlyInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1568
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowCardNumberOnlyInput, isStandalone: true, selector: "lib-coinflow-card-number-only-input", inputs: { args: "args" }, ngImport: i0, template: '<div id="{{TokenExCardNumberIframeId}}"></div>', isInline: true }); }
|
|
1525
1569
|
}
|
|
1526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCardNumberOnlyInput, decorators: [{
|
|
1527
1571
|
type: Component,
|
|
1528
1572
|
args: [{
|
|
1529
1573
|
selector: 'lib-coinflow-card-number-only-input',
|
|
@@ -1539,10 +1583,10 @@ class CoinflowCvvInputComponent {
|
|
|
1539
1583
|
constructor() {
|
|
1540
1584
|
this.TokenExCvvContainerID = TokenExCvvContainerID;
|
|
1541
1585
|
}
|
|
1542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1543
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1586
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCvvInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1587
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowCvvInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-input", ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}" ></div>', isInline: true }); }
|
|
1544
1588
|
}
|
|
1545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCvvInputComponent, decorators: [{
|
|
1546
1590
|
type: Component,
|
|
1547
1591
|
args: [{
|
|
1548
1592
|
selector: 'lib-coinflow-cvv-input',
|
|
@@ -1603,10 +1647,10 @@ class CoinflowCvvOnlyInputComponent {
|
|
|
1603
1647
|
tokenize() {
|
|
1604
1648
|
return this.iframe.tokenize();
|
|
1605
1649
|
}
|
|
1606
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1607
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1650
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCvvOnlyInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1651
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowCvvOnlyInputComponent, isStandalone: true, selector: "lib-coinflow-cvv-only-input", inputs: { args: "args" }, usesOnChanges: true, ngImport: i0, template: '<div id="{{TokenExCvvContainerID}}"></div>', isInline: true }); }
|
|
1608
1652
|
}
|
|
1609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowCvvOnlyInputComponent, decorators: [{
|
|
1610
1654
|
type: Component,
|
|
1611
1655
|
args: [{
|
|
1612
1656
|
selector: 'lib-coinflow-cvv-only-input',
|
|
@@ -1655,8 +1699,8 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
1655
1699
|
handleHeightChangeId,
|
|
1656
1700
|
};
|
|
1657
1701
|
}
|
|
1658
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1659
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1702
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowMobileWalletButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1703
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", 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%;">
|
|
1660
1704
|
<div
|
|
1661
1705
|
[style.background-color]="purchaseProps.color"
|
|
1662
1706
|
[style.display]="overlayDisplayOverride ?? display"
|
|
@@ -1678,7 +1722,7 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
1678
1722
|
</div>
|
|
1679
1723
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
1680
1724
|
}
|
|
1681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
|
|
1682
1726
|
type: Component,
|
|
1683
1727
|
args: [{
|
|
1684
1728
|
selector: 'lib-coinflow-mobile-wallet-button',
|
|
@@ -1720,8 +1764,8 @@ class CoinflowApplePayButtonComponent {
|
|
|
1720
1764
|
fill() {
|
|
1721
1765
|
return this.purchaseProps.color === 'white' ? '#000' : '#FFF';
|
|
1722
1766
|
}
|
|
1723
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1724
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1767
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowApplePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1768
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowApplePayButtonComponent, isStandalone: true, selector: "lib-coinflow-apple-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: ` <lib-coinflow-mobile-wallet-button
|
|
1725
1769
|
ng-if="iframeProps && messageHandlers"
|
|
1726
1770
|
[purchaseProps]="purchaseProps"
|
|
1727
1771
|
route="apple-pay"
|
|
@@ -1763,7 +1807,7 @@ class CoinflowApplePayButtonComponent {
|
|
|
1763
1807
|
</svg>
|
|
1764
1808
|
</lib-coinflow-mobile-wallet-button>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowMobileWalletButtonComponent, selector: "lib-coinflow-mobile-wallet-button", inputs: ["purchaseProps", "route", "overlayDisplayOverride", "alignItems"] }] }); }
|
|
1765
1809
|
}
|
|
1766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowApplePayButtonComponent, decorators: [{
|
|
1767
1811
|
type: Component,
|
|
1768
1812
|
args: [{
|
|
1769
1813
|
selector: 'lib-coinflow-apple-pay-button',
|
|
@@ -1816,8 +1860,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1816
1860
|
}] } });
|
|
1817
1861
|
|
|
1818
1862
|
class CoinflowGooglePayOverlayComponent {
|
|
1819
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1820
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1863
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowGooglePayOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1864
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: CoinflowGooglePayOverlayComponent, isStandalone: true, selector: "coinflow-google-pay-overlay", inputs: { color: "color" }, ngImport: i0, template: `
|
|
1821
1865
|
@if (color === 'white') {
|
|
1822
1866
|
<svg xmlns="http://www.w3.org/2000/svg" width="41" height="17">
|
|
1823
1867
|
<g fill="none" fill-rule="evenodd">
|
|
@@ -1872,7 +1916,7 @@ class CoinflowGooglePayOverlayComponent {
|
|
|
1872
1916
|
}
|
|
1873
1917
|
`, isInline: true }); }
|
|
1874
1918
|
}
|
|
1875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowGooglePayOverlayComponent, decorators: [{
|
|
1876
1920
|
type: Component,
|
|
1877
1921
|
args: [{
|
|
1878
1922
|
selector: 'coinflow-google-pay-overlay',
|
|
@@ -1938,8 +1982,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1938
1982
|
}] } });
|
|
1939
1983
|
|
|
1940
1984
|
class CoinflowGooglePayButtonComponent {
|
|
1941
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1942
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1985
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowGooglePayButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1986
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CoinflowGooglePayButtonComponent, isStandalone: true, selector: "lib-coinflow-google-pay-button", inputs: { purchaseProps: "purchaseProps" }, ngImport: i0, template: `<lib-coinflow-mobile-wallet-button
|
|
1943
1987
|
ng-if="iframeProps && messageHandlers"
|
|
1944
1988
|
[purchaseProps]="purchaseProps"
|
|
1945
1989
|
route="google-pay"
|
|
@@ -1951,7 +1995,7 @@ class CoinflowGooglePayButtonComponent {
|
|
|
1951
1995
|
></coinflow-google-pay-overlay>
|
|
1952
1996
|
</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"] }] }); }
|
|
1953
1997
|
}
|
|
1954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CoinflowGooglePayButtonComponent, decorators: [{
|
|
1955
1999
|
type: Component,
|
|
1956
2000
|
args: [{
|
|
1957
2001
|
selector: 'lib-coinflow-google-pay-button',
|