@coinflowlabs/angular 1.1.4 → 1.2.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 +9 -0
- package/fesm2022/coinflowlabs-angular.mjs +90 -8
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/lib/coinflow-iframe.component.d.ts +5 -1
- package/lib/coinflow-purchase.component.d.ts +2 -1
- package/lib/coinflow-withdraw.component.d.ts +2 -1
- package/lib/common/CoinflowTypes.d.ts +104 -7
- package/lib/common/CoinflowUtils.d.ts +1 -1
- package/lib/common/EventBus.d.ts +6 -0
- package/lib/common/index.d.ts +1 -0
- package/lib/common/types/Subtotal.d.ts +18 -1
- package/lib/mobile-wallet/coinflow-mobile-wallet-button.component.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
package/README.md
CHANGED
|
@@ -4,6 +4,15 @@ This library was generated with [Angular CLI](https://github.com/angular/angular
|
|
|
4
4
|
|
|
5
5
|
# Changelog
|
|
6
6
|
|
|
7
|
+
## 1.2.0
|
|
8
|
+
|
|
9
|
+
- Added `partialUsdcChecked` property to pre-check partial USDC payment checkbox
|
|
10
|
+
|
|
11
|
+
## 1.1.5
|
|
12
|
+
|
|
13
|
+
- Added `onLoad` property
|
|
14
|
+
|
|
15
|
+
|
|
7
16
|
## 1.1.0
|
|
8
17
|
|
|
9
18
|
- Added Multi-Currency Presentment via the `presentment` property
|
|
@@ -35,6 +35,7 @@ var PaymentMethods;
|
|
|
35
35
|
PaymentMethods["applePay"] = "applePay";
|
|
36
36
|
PaymentMethods["credits"] = "credits";
|
|
37
37
|
PaymentMethods["crypto"] = "crypto";
|
|
38
|
+
PaymentMethods["instantBankTransfer"] = "instantBankTransfer";
|
|
38
39
|
})(PaymentMethods || (PaymentMethods = {}));
|
|
39
40
|
var CardType;
|
|
40
41
|
(function (CardType) {
|
|
@@ -66,6 +67,7 @@ var Currency;
|
|
|
66
67
|
Currency["ALL"] = "ALL";
|
|
67
68
|
Currency["ANG"] = "ANG";
|
|
68
69
|
Currency["AOA"] = "AOA";
|
|
70
|
+
Currency["ARS"] = "ARS";
|
|
69
71
|
Currency["AUD"] = "AUD";
|
|
70
72
|
Currency["AWG"] = "AWG";
|
|
71
73
|
Currency["AZN"] = "AZN";
|
|
@@ -75,18 +77,23 @@ var Currency;
|
|
|
75
77
|
Currency["BGN"] = "BGN";
|
|
76
78
|
Currency["BHD"] = "BHD";
|
|
77
79
|
Currency["BIF"] = "BIF";
|
|
80
|
+
Currency["BMD"] = "BMD";
|
|
78
81
|
Currency["BND"] = "BND";
|
|
79
82
|
Currency["BOB"] = "BOB";
|
|
80
83
|
Currency["BRL"] = "BRL";
|
|
84
|
+
Currency["BSD"] = "BSD";
|
|
81
85
|
Currency["BTN"] = "BTN";
|
|
82
86
|
Currency["BWP"] = "BWP";
|
|
87
|
+
Currency["BYN"] = "BYN";
|
|
83
88
|
Currency["BZD"] = "BZD";
|
|
84
89
|
Currency["CAD"] = "CAD";
|
|
85
90
|
Currency["CHF"] = "CHF";
|
|
91
|
+
Currency["CLF"] = "CLF";
|
|
86
92
|
Currency["CLP"] = "CLP";
|
|
87
93
|
Currency["CNY"] = "CNY";
|
|
88
94
|
Currency["COP"] = "COP";
|
|
89
95
|
Currency["CRC"] = "CRC";
|
|
96
|
+
Currency["CUP"] = "CUP";
|
|
90
97
|
Currency["CVE"] = "CVE";
|
|
91
98
|
Currency["CZK"] = "CZK";
|
|
92
99
|
Currency["DJF"] = "DJF";
|
|
@@ -96,6 +103,7 @@ var Currency;
|
|
|
96
103
|
Currency["EGP"] = "EGP";
|
|
97
104
|
Currency["ETB"] = "ETB";
|
|
98
105
|
Currency["EUR"] = "EUR";
|
|
106
|
+
Currency["FJD"] = "FJD";
|
|
99
107
|
Currency["GBP"] = "GBP";
|
|
100
108
|
Currency["GEL"] = "GEL";
|
|
101
109
|
Currency["GHS"] = "GHS";
|
|
@@ -108,6 +116,7 @@ var Currency;
|
|
|
108
116
|
Currency["HTG"] = "HTG";
|
|
109
117
|
Currency["HUF"] = "HUF";
|
|
110
118
|
Currency["IDR"] = "IDR";
|
|
119
|
+
Currency["ILS"] = "ILS";
|
|
111
120
|
Currency["INR"] = "INR";
|
|
112
121
|
Currency["IQD"] = "IQD";
|
|
113
122
|
Currency["IRR"] = "IRR";
|
|
@@ -123,6 +132,8 @@ var Currency;
|
|
|
123
132
|
Currency["KWD"] = "KWD";
|
|
124
133
|
Currency["KYD"] = "KYD";
|
|
125
134
|
Currency["KZT"] = "KZT";
|
|
135
|
+
Currency["LAK"] = "LAK";
|
|
136
|
+
Currency["LBP"] = "LBP";
|
|
126
137
|
Currency["LKR"] = "LKR";
|
|
127
138
|
Currency["LRD"] = "LRD";
|
|
128
139
|
Currency["LSL"] = "LSL";
|
|
@@ -136,9 +147,11 @@ var Currency;
|
|
|
136
147
|
Currency["MOP"] = "MOP";
|
|
137
148
|
Currency["MRU"] = "MRU";
|
|
138
149
|
Currency["MUR"] = "MUR";
|
|
150
|
+
Currency["MWK"] = "MWK";
|
|
139
151
|
Currency["MVR"] = "MVR";
|
|
140
152
|
Currency["MXN"] = "MXN";
|
|
141
153
|
Currency["MYR"] = "MYR";
|
|
154
|
+
Currency["MZN"] = "MZN";
|
|
142
155
|
Currency["NAD"] = "NAD";
|
|
143
156
|
Currency["NGN"] = "NGN";
|
|
144
157
|
Currency["NIO"] = "NIO";
|
|
@@ -148,6 +161,7 @@ var Currency;
|
|
|
148
161
|
Currency["OMR"] = "OMR";
|
|
149
162
|
Currency["PAB"] = "PAB";
|
|
150
163
|
Currency["PEN"] = "PEN";
|
|
164
|
+
Currency["PGK"] = "PGK";
|
|
151
165
|
Currency["PHP"] = "PHP";
|
|
152
166
|
Currency["PKR"] = "PKR";
|
|
153
167
|
Currency["PLN"] = "PLN";
|
|
@@ -164,6 +178,7 @@ var Currency;
|
|
|
164
178
|
Currency["SLE"] = "SLE";
|
|
165
179
|
Currency["SLL"] = "SLL";
|
|
166
180
|
Currency["SOS"] = "SOS";
|
|
181
|
+
Currency["SRD"] = "SRD";
|
|
167
182
|
Currency["STN"] = "STN";
|
|
168
183
|
Currency["SVC"] = "SVC";
|
|
169
184
|
Currency["SYP"] = "SYP";
|
|
@@ -172,6 +187,7 @@ var Currency;
|
|
|
172
187
|
Currency["TJS"] = "TJS";
|
|
173
188
|
Currency["TMT"] = "TMT";
|
|
174
189
|
Currency["TND"] = "TND";
|
|
190
|
+
Currency["TOP"] = "TOP";
|
|
175
191
|
Currency["TRY"] = "TRY";
|
|
176
192
|
Currency["TTD"] = "TTD";
|
|
177
193
|
Currency["TWD"] = "TWD";
|
|
@@ -181,6 +197,7 @@ var Currency;
|
|
|
181
197
|
Currency["UYU"] = "UYU";
|
|
182
198
|
Currency["UZS"] = "UZS";
|
|
183
199
|
Currency["VND"] = "VND";
|
|
200
|
+
Currency["VUV"] = "VUV";
|
|
184
201
|
Currency["XAF"] = "XAF";
|
|
185
202
|
Currency["XCD"] = "XCD";
|
|
186
203
|
Currency["XOF"] = "XOF";
|
|
@@ -188,6 +205,7 @@ var Currency;
|
|
|
188
205
|
Currency["YER"] = "YER";
|
|
189
206
|
Currency["ZAR"] = "ZAR";
|
|
190
207
|
Currency["ZMW"] = "ZMW";
|
|
208
|
+
Currency["ZWL"] = "ZWL";
|
|
191
209
|
})(Currency || (Currency = {}));
|
|
192
210
|
const CurrencyToISO4217 = {
|
|
193
211
|
[Currency.AED]: '784',
|
|
@@ -318,6 +336,23 @@ const CurrencyToISO4217 = {
|
|
|
318
336
|
[Currency.YER]: '886',
|
|
319
337
|
[Currency.ZAR]: '710',
|
|
320
338
|
[Currency.ZMW]: '967',
|
|
339
|
+
[Currency.ARS]: '032',
|
|
340
|
+
[Currency.BMD]: '060',
|
|
341
|
+
[Currency.BSD]: '044',
|
|
342
|
+
[Currency.BYN]: '933',
|
|
343
|
+
[Currency.CUP]: '192',
|
|
344
|
+
[Currency.FJD]: '242',
|
|
345
|
+
[Currency.ILS]: '376',
|
|
346
|
+
[Currency.LAK]: '418',
|
|
347
|
+
[Currency.LBP]: '422',
|
|
348
|
+
[Currency.MWK]: '454',
|
|
349
|
+
[Currency.MZN]: '943',
|
|
350
|
+
[Currency.PGK]: '598',
|
|
351
|
+
[Currency.SRD]: '968',
|
|
352
|
+
[Currency.TOP]: '776',
|
|
353
|
+
[Currency.VUV]: '548',
|
|
354
|
+
[Currency.ZWL]: '932',
|
|
355
|
+
[Currency.CLF]: '990',
|
|
321
356
|
};
|
|
322
357
|
const WithdrawCurrencies = {
|
|
323
358
|
[Currency.USD]: Currency.USD,
|
|
@@ -369,7 +404,7 @@ class CoinflowUtils {
|
|
|
369
404
|
return 'http://localhost:5000';
|
|
370
405
|
return `https://api-${env}.coinflow.cash`;
|
|
371
406
|
}
|
|
372
|
-
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, }) {
|
|
407
|
+
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, }) {
|
|
373
408
|
const prefix = routePrefix
|
|
374
409
|
? `/${routePrefix}/${blockchain}`
|
|
375
410
|
: `/${blockchain}`;
|
|
@@ -466,6 +501,8 @@ class CoinflowUtils {
|
|
|
466
501
|
url.searchParams.append('transactionSigner', transactionSigner);
|
|
467
502
|
if (authOnly === true)
|
|
468
503
|
url.searchParams.append('authOnly', 'true');
|
|
504
|
+
if (partialUsdcChecked === true)
|
|
505
|
+
url.searchParams.append('partialUsdcChecked', 'true');
|
|
469
506
|
if (jwtToken)
|
|
470
507
|
url.searchParams.append('jwtToken', jwtToken);
|
|
471
508
|
if (origins)
|
|
@@ -476,6 +513,8 @@ class CoinflowUtils {
|
|
|
476
513
|
url.searchParams.append('threeDsChallengePreference', threeDsChallengePreference);
|
|
477
514
|
if (destinationAuthKey)
|
|
478
515
|
url.searchParams.append('destinationAuthKey', destinationAuthKey);
|
|
516
|
+
if (accountFundingTransaction)
|
|
517
|
+
url.searchParams.append('accountFundingTransaction', LZString.compressToEncodedURIComponent(JSON.stringify(accountFundingTransaction)));
|
|
479
518
|
return url.toString();
|
|
480
519
|
}
|
|
481
520
|
static getTransaction(props) {
|
|
@@ -769,6 +808,18 @@ function getSessionKeyHandlers({ onSuccess, onAuthDeclined, }) {
|
|
|
769
808
|
};
|
|
770
809
|
}
|
|
771
810
|
|
|
811
|
+
class EventBus {
|
|
812
|
+
static on(type, callback) {
|
|
813
|
+
document.addEventListener(type, callback);
|
|
814
|
+
}
|
|
815
|
+
static dispatch(type, data) {
|
|
816
|
+
document.dispatchEvent(new CustomEvent(type, { detail: data }));
|
|
817
|
+
}
|
|
818
|
+
static remove(type, callback) {
|
|
819
|
+
document.removeEventListener(type, callback);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
772
823
|
// Type definitions for TokenEx iframe integration
|
|
773
824
|
const TokenExCardNumberIframeId = 'tokenExCardNumber';
|
|
774
825
|
const TokenExCvvContainerID = 'tokenExCardCvv';
|
|
@@ -982,6 +1033,7 @@ class CoinflowIFrameComponent {
|
|
|
982
1033
|
constructor(sanitizer) {
|
|
983
1034
|
this.sanitizer = sanitizer;
|
|
984
1035
|
this.messageEvent = new EventEmitter();
|
|
1036
|
+
this.isLoading = true;
|
|
985
1037
|
}
|
|
986
1038
|
ngOnInit() {
|
|
987
1039
|
const coinflowUrl = CoinflowUtils.getCoinflowUrl(this.iframeProps);
|
|
@@ -992,6 +1044,20 @@ class CoinflowIFrameComponent {
|
|
|
992
1044
|
if (!event.origin.includes(CoinflowUtils.getCoinflowBaseUrl(this.iframeProps.env)))
|
|
993
1045
|
return;
|
|
994
1046
|
this.messageEvent.emit(event);
|
|
1047
|
+
if (this.waitForLoadedMessage) {
|
|
1048
|
+
try {
|
|
1049
|
+
const message = JSON.parse(event.data);
|
|
1050
|
+
if (message &&
|
|
1051
|
+
typeof message === 'object' &&
|
|
1052
|
+
message.method === 'loaded') {
|
|
1053
|
+
this.isLoading = false;
|
|
1054
|
+
this.onLoad?.();
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
catch (error) {
|
|
1058
|
+
// Ignore parse errors
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
995
1061
|
const promise = handleIFrameMessage(event.data, this.messageHandlers, this.iframeProps.handleHeightChangeId);
|
|
996
1062
|
if (!promise)
|
|
997
1063
|
return;
|
|
@@ -1004,8 +1070,14 @@ class CoinflowIFrameComponent {
|
|
|
1004
1070
|
return;
|
|
1005
1071
|
this.iframe.nativeElement.contentWindow.postMessage(message, '*');
|
|
1006
1072
|
}
|
|
1073
|
+
handleIframeLoad() {
|
|
1074
|
+
if (this.waitForLoadedMessage)
|
|
1075
|
+
return;
|
|
1076
|
+
this.isLoading = false;
|
|
1077
|
+
this.onLoad?.();
|
|
1078
|
+
}
|
|
1007
1079
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowIFrameComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1008
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: CoinflowIFrameComponent, isStandalone: true, selector: "lib-coinflow-iframe", inputs: { iframeProps: "iframeProps", messageHandlers: "messageHandlers" }, outputs: { messageEvent: "messageEvent" }, host: { listeners: { "window:message": "onPostMessage($event)" } }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0, template: ` <iframe
|
|
1080
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.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
|
|
1009
1081
|
width="100%"
|
|
1010
1082
|
height="100%"
|
|
1011
1083
|
#iframe
|
|
@@ -1015,6 +1087,7 @@ class CoinflowIFrameComponent {
|
|
|
1015
1087
|
frameBorder="0"
|
|
1016
1088
|
[src]="dynamicUrl"
|
|
1017
1089
|
credentialless
|
|
1090
|
+
(load)="handleIframeLoad()"
|
|
1018
1091
|
></iframe>`, isInline: true }); }
|
|
1019
1092
|
}
|
|
1020
1093
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowIFrameComponent, decorators: [{
|
|
@@ -1033,12 +1106,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1033
1106
|
frameBorder="0"
|
|
1034
1107
|
[src]="dynamicUrl"
|
|
1035
1108
|
credentialless
|
|
1109
|
+
(load)="handleIframeLoad()"
|
|
1036
1110
|
></iframe>`,
|
|
1037
1111
|
}]
|
|
1038
1112
|
}], ctorParameters: () => [{ type: i1.DomSanitizer }], propDecorators: { iframeProps: [{
|
|
1039
1113
|
type: Input
|
|
1040
1114
|
}], messageHandlers: [{
|
|
1041
1115
|
type: Input
|
|
1116
|
+
}], onLoad: [{
|
|
1117
|
+
type: Input
|
|
1118
|
+
}], waitForLoadedMessage: [{
|
|
1119
|
+
type: Input
|
|
1042
1120
|
}], messageEvent: [{
|
|
1043
1121
|
type: Output
|
|
1044
1122
|
}], iframe: [{
|
|
@@ -1065,7 +1143,7 @@ class CoinflowPurchaseComponent {
|
|
|
1065
1143
|
};
|
|
1066
1144
|
}
|
|
1067
1145
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowPurchaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1068
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.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!"></lib-coinflow-iframe> ', isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers"], outputs: ["messageEvent"] }] }); }
|
|
1146
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.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"] }] }); }
|
|
1069
1147
|
}
|
|
1070
1148
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowPurchaseComponent, decorators: [{
|
|
1071
1149
|
type: Component,
|
|
@@ -1073,7 +1151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1073
1151
|
selector: 'lib-coinflow-purchase',
|
|
1074
1152
|
standalone: true,
|
|
1075
1153
|
imports: [CoinflowIFrameComponent],
|
|
1076
|
-
template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!"></lib-coinflow-iframe> ',
|
|
1154
|
+
template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!" [onLoad]="purchaseProps?.onLoad" [waitForLoadedMessage]="true"></lib-coinflow-iframe> ',
|
|
1077
1155
|
}]
|
|
1078
1156
|
}], propDecorators: { purchaseProps: [{
|
|
1079
1157
|
type: Input
|
|
@@ -1123,7 +1201,7 @@ class CoinflowWithdrawComponent {
|
|
|
1123
1201
|
};
|
|
1124
1202
|
}
|
|
1125
1203
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowWithdrawComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1126
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.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!"></lib-coinflow-iframe> ', isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers"], outputs: ["messageEvent"] }] }); }
|
|
1204
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.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"] }] }); }
|
|
1127
1205
|
}
|
|
1128
1206
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowWithdrawComponent, decorators: [{
|
|
1129
1207
|
type: Component,
|
|
@@ -1131,7 +1209,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1131
1209
|
selector: 'lib-coinflow-withdraw',
|
|
1132
1210
|
standalone: true,
|
|
1133
1211
|
imports: [CoinflowIFrameComponent],
|
|
1134
|
-
template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!"></lib-coinflow-iframe> ',
|
|
1212
|
+
template: ' <lib-coinflow-iframe ng-if="iframeProps && messageHandlers" [iframeProps]="iframeProps!" [messageHandlers]="messageHandlers!" [onLoad]="withdrawProps?.onLoad"></lib-coinflow-iframe> ',
|
|
1135
1213
|
}]
|
|
1136
1214
|
}], propDecorators: { withdrawProps: [{
|
|
1137
1215
|
type: Input
|
|
@@ -1447,9 +1525,11 @@ class CoinflowMobileWalletButtonComponent {
|
|
|
1447
1525
|
ng-if="iframeProps && messageHandlers"
|
|
1448
1526
|
[iframeProps]="iframeProps!"
|
|
1449
1527
|
[messageHandlers]="messageHandlers!"
|
|
1528
|
+
[onLoad]="purchaseProps?.onLoad"
|
|
1529
|
+
[waitForLoadedMessage]="true"
|
|
1450
1530
|
></lib-coinflow-iframe>
|
|
1451
1531
|
</div>
|
|
1452
|
-
</div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers"], outputs: ["messageEvent"] }] }); }
|
|
1532
|
+
</div>`, isInline: true, dependencies: [{ kind: "component", type: CoinflowIFrameComponent, selector: "lib-coinflow-iframe", inputs: ["iframeProps", "messageHandlers", "onLoad", "waitForLoadedMessage"], outputs: ["messageEvent"] }] }); }
|
|
1453
1533
|
}
|
|
1454
1534
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: CoinflowMobileWalletButtonComponent, decorators: [{
|
|
1455
1535
|
type: Component,
|
|
@@ -1473,6 +1553,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1473
1553
|
ng-if="iframeProps && messageHandlers"
|
|
1474
1554
|
[iframeProps]="iframeProps!"
|
|
1475
1555
|
[messageHandlers]="messageHandlers!"
|
|
1556
|
+
[onLoad]="purchaseProps?.onLoad"
|
|
1557
|
+
[waitForLoadedMessage]="true"
|
|
1476
1558
|
></lib-coinflow-iframe>
|
|
1477
1559
|
</div>
|
|
1478
1560
|
</div>`,
|
|
@@ -1755,5 +1837,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
1755
1837
|
* Generated bundle index. Do not edit.
|
|
1756
1838
|
*/
|
|
1757
1839
|
|
|
1758
|
-
export { CoinflowApplePayButtonComponent, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent };
|
|
1840
|
+
export { 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, WithdrawCurrencies, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCustomerName, getHandlers, getIframeConfig, getWalletPubkey, handleIFrameMessage, isTypedCurrencyCents, isWithdrawCurrency, nftCartItem, setTokenExScriptTag };
|
|
1759
1841
|
//# sourceMappingURL=coinflowlabs-angular.mjs.map
|