@paydock/client-sdk 1.119.2-beta → 1.120.1-beta
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/bundles/index.cjs +88 -21
- package/bundles/index.cjs.d.ts +3 -1
- package/bundles/index.mjs +88 -21
- package/bundles/index.mjs.d.ts +3 -1
- package/bundles/types/components/param.d.ts +3 -1
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/helper/access-token.d.ts +1 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/helpers/apple-pay.helper.d.ts +3 -0
- package/bundles/types/wallet-buttons/helpers/apple-pay.helper.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +5 -4
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -1
- package/bundles/types/widget/multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +88 -21
- package/bundles/widget.umd.js.d.ts +3 -1
- package/bundles/widget.umd.js.min.d.ts +3 -1
- package/bundles/widget.umd.min.js +1 -1
- package/package.json +1 -1
package/bundles/index.cjs
CHANGED
|
@@ -927,7 +927,7 @@ SDK.headerKeys = Object.freeze({
|
|
|
927
927
|
version: 'x-sdk-version',
|
|
928
928
|
type: 'x-sdk-type'
|
|
929
929
|
});
|
|
930
|
-
SDK._version = 'v1.
|
|
930
|
+
SDK._version = 'v1.120.1-beta';
|
|
931
931
|
|
|
932
932
|
/******************************************************************************
|
|
933
933
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1772,6 +1772,20 @@ var AccessToken = /*#__PURE__*/function () {
|
|
|
1772
1772
|
return null;
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
|
+
}, {
|
|
1776
|
+
key: "validateJWTWhitelistedDomains",
|
|
1777
|
+
value: function validateJWTWhitelistedDomains(body) {
|
|
1778
|
+
var _a;
|
|
1779
|
+
try {
|
|
1780
|
+
if (!body.meta) return true;
|
|
1781
|
+
var meta = this.extractData(body);
|
|
1782
|
+
if (!meta) return true;
|
|
1783
|
+
if (!((_a = meta.whitelist_domains) === null || _a === void 0 ? void 0 : _a.length)) return true;
|
|
1784
|
+
return meta.whitelist_domains.includes(window.location.hostname);
|
|
1785
|
+
} catch (err) {
|
|
1786
|
+
return true;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1775
1789
|
}, {
|
|
1776
1790
|
key: "getAccessHeaderNameByToken",
|
|
1777
1791
|
value: function getAccessHeaderNameByToken(token) {
|
|
@@ -5801,7 +5815,9 @@ var SUPPORTED_CARD_TYPES = {
|
|
|
5801
5815
|
MASTERCARD: 'mastercard',
|
|
5802
5816
|
SOLO: 'solo',
|
|
5803
5817
|
VISA: 'visa',
|
|
5804
|
-
VISA_WHITE: 'visa_white'
|
|
5818
|
+
VISA_WHITE: 'visa_white',
|
|
5819
|
+
EFTPOS: 'eftpos',
|
|
5820
|
+
EFTPOS_WHITE: 'eftpos_white'
|
|
5805
5821
|
};
|
|
5806
5822
|
var SUPPORTED_CHECKOUT_META_COLLECTION = [].concat(['brand_name', 'cart_border_color', 'reference', 'email', 'hdr_img', 'logo_img', 'pay_flow_color', 'first_name', 'last_name', 'address_line', 'address_line2', 'address_city', 'address_state', 'address_postcode', 'address_country', 'phone', 'hide_shipping_address'], ['first_name', 'last_name', 'phone', 'tokenize', 'email', 'gender', 'date_of_birth', 'charge', 'statistics', 'hide_shipping_address'], ['amount', 'currency', 'email', 'first_name', 'last_name', 'address_line', 'address_line2', 'address_city', 'address_state', 'address_postcode', 'address_country', 'phone'], ['customer_storage_number', 'tokenise_algorithm']);
|
|
5807
5823
|
var WALLET_GATEWAY;
|
|
@@ -10823,6 +10839,26 @@ var FlypayWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
10823
10839
|
}]);
|
|
10824
10840
|
}(WalletService);
|
|
10825
10841
|
|
|
10842
|
+
var APPLE_PAY_BUTTON_TYPES_ARIA_LABEL_MAPPING = {
|
|
10843
|
+
'add-money': 'Add money with Apple Pay',
|
|
10844
|
+
"book": 'Book with Apple Pay',
|
|
10845
|
+
"buy": 'Buy with Apple Pay',
|
|
10846
|
+
'check-out': 'Check out with Apple Pay',
|
|
10847
|
+
"continue": 'Continue with Apple Pay',
|
|
10848
|
+
"contribute": 'Contribute with Apple Pay',
|
|
10849
|
+
"donate": 'Donate with Apple Pay',
|
|
10850
|
+
"order": 'Order with Apple Pay',
|
|
10851
|
+
"pay": 'Pay with Apple Pay',
|
|
10852
|
+
"plain": 'Apple Pay',
|
|
10853
|
+
"reload": 'Reload with Apple Pay',
|
|
10854
|
+
"rent": 'Rent with Apple Pay',
|
|
10855
|
+
'set-up': 'Set up with Apple Pay',
|
|
10856
|
+
"subscribe": 'Subscribe with Apple Pay',
|
|
10857
|
+
"support": 'Support with Apple Pay',
|
|
10858
|
+
"tip": 'Tip with Apple Pay',
|
|
10859
|
+
'top-up': 'Top up with Apple Pay'
|
|
10860
|
+
};
|
|
10861
|
+
|
|
10826
10862
|
var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
10827
10863
|
function AppleWalletService(publicKey, meta, gatewayName, eventEmitter) {
|
|
10828
10864
|
var _this;
|
|
@@ -10975,11 +11011,13 @@ var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
10975
11011
|
var _a, _b, _c;
|
|
10976
11012
|
if (((_a = this.meta) === null || _a === void 0 ? void 0 : _a.style) && _typeof$1((_b = this.meta) === null || _b === void 0 ? void 0 : _b.style) === 'object') {
|
|
10977
11013
|
var metaStyles = JSON.parse(JSON.stringify((_c = this.meta) === null || _c === void 0 ? void 0 : _c.style));
|
|
10978
|
-
if ('google' in metaStyles)
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
return null;
|
|
11014
|
+
if ('google' in metaStyles)
|
|
11015
|
+
// biome-ignore lint/performance/noDelete: <explanation>
|
|
11016
|
+
metaStyles === null || metaStyles === void 0 ? true : delete metaStyles.google; // to offer backward compatibility
|
|
11017
|
+
if ('apple' in metaStyles) return metaStyles === null || metaStyles === void 0 ? void 0 : metaStyles.apple;
|
|
11018
|
+
return metaStyles; // to offer backward compatibility
|
|
10982
11019
|
}
|
|
11020
|
+
return null;
|
|
10983
11021
|
}
|
|
10984
11022
|
}, {
|
|
10985
11023
|
key: "getMetaRawDataInitialization",
|
|
@@ -10987,11 +11025,13 @@ var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
10987
11025
|
var _a, _b, _c, _d;
|
|
10988
11026
|
if (((_a = this.meta) === null || _a === void 0 ? void 0 : _a.raw_data_initialization) && ((_b = this.meta) === null || _b === void 0 ? void 0 : _b.raw_data_initialization) && _typeof$1((_c = this.meta) === null || _c === void 0 ? void 0 : _c.raw_data_initialization) === 'object') {
|
|
10989
11027
|
var metaRawDataInit = JSON.parse(JSON.stringify((_d = this.meta) === null || _d === void 0 ? void 0 : _d.raw_data_initialization));
|
|
10990
|
-
if ('google' in metaRawDataInit)
|
|
10991
|
-
|
|
10992
|
-
|
|
10993
|
-
return null;
|
|
11028
|
+
if ('google' in metaRawDataInit)
|
|
11029
|
+
// biome-ignore lint/performance/noDelete: <explanation>
|
|
11030
|
+
metaRawDataInit === null || metaRawDataInit === void 0 ? true : delete metaRawDataInit.google; // to offer backward compatibility
|
|
11031
|
+
if ('apple' in metaRawDataInit) return metaRawDataInit === null || metaRawDataInit === void 0 ? void 0 : metaRawDataInit.apple;
|
|
11032
|
+
return metaRawDataInit; // to offer backward compatibility
|
|
10994
11033
|
}
|
|
11034
|
+
return null;
|
|
10995
11035
|
}
|
|
10996
11036
|
}, {
|
|
10997
11037
|
key: "isShippingRequired",
|
|
@@ -11078,16 +11118,25 @@ var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
11078
11118
|
key: "mount",
|
|
11079
11119
|
value: function mount(container) {
|
|
11080
11120
|
var _this4 = this;
|
|
11081
|
-
var
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11121
|
+
var _a;
|
|
11122
|
+
var styleButton = document.createElement('style');
|
|
11123
|
+
styleButton.innerHTML = this.createButtonStyle();
|
|
11124
|
+
document.head.appendChild(styleButton);
|
|
11125
|
+
var styleSpan = document.createElement('style');
|
|
11126
|
+
styleSpan.innerHTML = this.createSpanStyle();
|
|
11127
|
+
document.head.appendChild(styleSpan);
|
|
11128
|
+
var button = document.createElement('button');
|
|
11085
11129
|
button.onclick = function () {
|
|
11086
11130
|
return _this4.onApplePayButtonClicked();
|
|
11087
11131
|
};
|
|
11132
|
+
var span = document.createElement('span');
|
|
11133
|
+
var text = APPLE_PAY_BUTTON_TYPES_ARIA_LABEL_MAPPING[((_a = this.getMetaStyles()) === null || _a === void 0 ? void 0 : _a.button_type) || 'plain'];
|
|
11134
|
+
span.innerText = text;
|
|
11088
11135
|
button.classList.add('paydock-apple-container', 'apple-pay-button', 'apple-pay-button-black');
|
|
11089
11136
|
button.setAttribute('tabindex', '0');
|
|
11090
11137
|
button.setAttribute('role', 'button');
|
|
11138
|
+
button.appendChild(span);
|
|
11139
|
+
button.setAttribute('aria-label', text);
|
|
11091
11140
|
container.getElement().appendChild(button);
|
|
11092
11141
|
}
|
|
11093
11142
|
}, {
|
|
@@ -11182,7 +11231,12 @@ var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
11182
11231
|
key: "createButtonStyle",
|
|
11183
11232
|
value: function createButtonStyle() {
|
|
11184
11233
|
var _a, _b;
|
|
11185
|
-
return "\n .paydock-apple-container {\n width: 100%;\n height: 40px;\n }\n\n @supports (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: ".concat(((_a = this.getMetaStyles()) === null || _a === void 0 ? void 0 : _a.button_type) || 'plain', "\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-with-line {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n -apple-pay-button-type: ").concat(((_b = this.getMetaStyles()) === null || _b === void 0 ? void 0 : _b.button_type) || 'plain', "\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-with-line {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n ");
|
|
11234
|
+
return "\n .paydock-apple-container {\n width: 100%;\n height: 40px;\n position: relative;\n }\n\n @supports (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: ".concat(((_a = this.getMetaStyles()) === null || _a === void 0 ? void 0 : _a.button_type) || 'plain', "\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-with-line {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n -apple-pay-button-type: ").concat(((_b = this.getMetaStyles()) === null || _b === void 0 ? void 0 : _b.button_type) || 'plain', "\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-with-line {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n ");
|
|
11235
|
+
}
|
|
11236
|
+
}, {
|
|
11237
|
+
key: "createSpanStyle",
|
|
11238
|
+
value: function createSpanStyle() {
|
|
11239
|
+
return "\n .apple-pay-button span {\n color: transparent;\n position: absolute;\n top: -2px;\n left: -2px;\n right: -2px;\n bottom: -2px;\n border-radius: 5px;\n transition: all 0.3s ease;\n }\n\n .apple-pay-button:focus span {\n box-shadow: -2px 2px 2px 2px rgba(0,0,0,0.3);\n }\n ";
|
|
11186
11240
|
}
|
|
11187
11241
|
}]);
|
|
11188
11242
|
}(WalletService);
|
|
@@ -13602,7 +13656,9 @@ var MultiWidget = /*#__PURE__*/function () {
|
|
|
13602
13656
|
sdk_type: SDK.type
|
|
13603
13657
|
});
|
|
13604
13658
|
}
|
|
13605
|
-
|
|
13659
|
+
var jwt = AccessToken.validateJWT(accessToken);
|
|
13660
|
+
if (!!jwt) {
|
|
13661
|
+
if (!AccessToken.validateJWTWhitelistedDomains(jwt.body)) throw Error('access Token is not valid for current domain');
|
|
13606
13662
|
this.link.setParams({
|
|
13607
13663
|
token: accessToken
|
|
13608
13664
|
});
|
|
@@ -16502,7 +16558,10 @@ var BaseWalletButton = /*#__PURE__*/function () {
|
|
|
16502
16558
|
|
|
16503
16559
|
var generateApplePayButtonStyles = function generateApplePayButtonStyles() {
|
|
16504
16560
|
var buttonType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'plain';
|
|
16505
|
-
return "\n .paydock-apple-container {\n display: inline-block;\n width: 100%;\n height: 44px;\n cursor: pointer;\n }\n\n @supports (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: ".concat(buttonType, ";\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n -apple-pay-button-type: ").concat(buttonType, ";\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-outline {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n ");
|
|
16561
|
+
return "\n .paydock-apple-container {\n display: inline-block;\n width: 100%;\n height: 44px;\n cursor: pointer;\n position: relative;\n }\n\n @supports (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: ".concat(buttonType, ";\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n -apple-pay-button-type: ").concat(buttonType, ";\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-outline {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n ");
|
|
16562
|
+
};
|
|
16563
|
+
var generateApplePaySpanStyles = function generateApplePaySpanStyles() {
|
|
16564
|
+
return "\n .apple-pay-button span {\n color: transparent;\n position: absolute;\n top: -2px;\n left: -2px;\n right: -2px;\n bottom: -2px;\n border-radius: 5px;\n transition: all 0.3s ease;\n }\n\n .apple-pay-button:focus span {\n box-shadow: -2px 2px 2px 2px rgba(0,0,0,0.3);\n }\n ";
|
|
16506
16565
|
};
|
|
16507
16566
|
|
|
16508
16567
|
/**
|
|
@@ -16631,16 +16690,24 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
16631
16690
|
value: function mount() {
|
|
16632
16691
|
var _this3 = this;
|
|
16633
16692
|
var _a, _b;
|
|
16634
|
-
var
|
|
16635
|
-
|
|
16636
|
-
document.head.appendChild(
|
|
16637
|
-
var
|
|
16693
|
+
var styleButton = document.createElement('style');
|
|
16694
|
+
styleButton.innerHTML = generateApplePayButtonStyles((_a = this.meta.style) === null || _a === void 0 ? void 0 : _a.button_type);
|
|
16695
|
+
document.head.appendChild(styleButton);
|
|
16696
|
+
var styleSpan = document.createElement('style');
|
|
16697
|
+
styleSpan.innerHTML = generateApplePaySpanStyles();
|
|
16698
|
+
document.head.appendChild(styleSpan);
|
|
16699
|
+
var button = document.createElement('button');
|
|
16638
16700
|
button.onclick = function () {
|
|
16639
16701
|
return _this3.onApplePayButtonClicked();
|
|
16640
16702
|
};
|
|
16703
|
+
var text = APPLE_PAY_BUTTON_TYPES_ARIA_LABEL_MAPPING['buy'];
|
|
16704
|
+
var span = document.createElement('span');
|
|
16705
|
+
span.innerText = text;
|
|
16641
16706
|
button.classList.add('paydock-apple-container', 'apple-pay-button', "apple-pay-button-".concat(((_b = this.meta.style) === null || _b === void 0 ? void 0 : _b.button_style) || 'black'));
|
|
16642
16707
|
button.setAttribute('tabindex', '0');
|
|
16643
16708
|
button.setAttribute('role', 'button');
|
|
16709
|
+
button.appendChild(span);
|
|
16710
|
+
button.setAttribute('aria-label', text);
|
|
16644
16711
|
this.container.getElement().appendChild(button);
|
|
16645
16712
|
}
|
|
16646
16713
|
}, {
|
package/bundles/index.cjs.d.ts
CHANGED
|
@@ -329,6 +329,8 @@ declare const SUPPORTED_CARD_TYPES: {
|
|
|
329
329
|
SOLO: string;
|
|
330
330
|
VISA: string;
|
|
331
331
|
VISA_WHITE: string;
|
|
332
|
+
EFTPOS: string;
|
|
333
|
+
EFTPOS_WHITE: string;
|
|
332
334
|
};
|
|
333
335
|
interface IIcons {
|
|
334
336
|
paypal_checkout_button?: string;
|
|
@@ -588,7 +590,7 @@ declare enum WALLET_TYPE {
|
|
|
588
590
|
AFTERPAY = "afterpay"
|
|
589
591
|
}
|
|
590
592
|
interface ApplePayStyles {
|
|
591
|
-
button_type?:
|
|
593
|
+
button_type?: 'add-money' | 'book' | 'buy' | 'check-out' | 'continue' | 'contribute' | 'donate' | 'order' | 'pay' | 'plain' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
|
|
592
594
|
}
|
|
593
595
|
interface GooglePayStyles {
|
|
594
596
|
button_type?: 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe';
|
package/bundles/index.mjs
CHANGED
|
@@ -925,7 +925,7 @@ SDK.headerKeys = Object.freeze({
|
|
|
925
925
|
version: 'x-sdk-version',
|
|
926
926
|
type: 'x-sdk-type'
|
|
927
927
|
});
|
|
928
|
-
SDK._version = 'v1.
|
|
928
|
+
SDK._version = 'v1.120.1-beta';
|
|
929
929
|
|
|
930
930
|
/******************************************************************************
|
|
931
931
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1770,6 +1770,20 @@ var AccessToken = /*#__PURE__*/function () {
|
|
|
1770
1770
|
return null;
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
|
+
}, {
|
|
1774
|
+
key: "validateJWTWhitelistedDomains",
|
|
1775
|
+
value: function validateJWTWhitelistedDomains(body) {
|
|
1776
|
+
var _a;
|
|
1777
|
+
try {
|
|
1778
|
+
if (!body.meta) return true;
|
|
1779
|
+
var meta = this.extractData(body);
|
|
1780
|
+
if (!meta) return true;
|
|
1781
|
+
if (!((_a = meta.whitelist_domains) === null || _a === void 0 ? void 0 : _a.length)) return true;
|
|
1782
|
+
return meta.whitelist_domains.includes(window.location.hostname);
|
|
1783
|
+
} catch (err) {
|
|
1784
|
+
return true;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1773
1787
|
}, {
|
|
1774
1788
|
key: "getAccessHeaderNameByToken",
|
|
1775
1789
|
value: function getAccessHeaderNameByToken(token) {
|
|
@@ -5799,7 +5813,9 @@ var SUPPORTED_CARD_TYPES = {
|
|
|
5799
5813
|
MASTERCARD: 'mastercard',
|
|
5800
5814
|
SOLO: 'solo',
|
|
5801
5815
|
VISA: 'visa',
|
|
5802
|
-
VISA_WHITE: 'visa_white'
|
|
5816
|
+
VISA_WHITE: 'visa_white',
|
|
5817
|
+
EFTPOS: 'eftpos',
|
|
5818
|
+
EFTPOS_WHITE: 'eftpos_white'
|
|
5803
5819
|
};
|
|
5804
5820
|
var SUPPORTED_CHECKOUT_META_COLLECTION = [].concat(['brand_name', 'cart_border_color', 'reference', 'email', 'hdr_img', 'logo_img', 'pay_flow_color', 'first_name', 'last_name', 'address_line', 'address_line2', 'address_city', 'address_state', 'address_postcode', 'address_country', 'phone', 'hide_shipping_address'], ['first_name', 'last_name', 'phone', 'tokenize', 'email', 'gender', 'date_of_birth', 'charge', 'statistics', 'hide_shipping_address'], ['amount', 'currency', 'email', 'first_name', 'last_name', 'address_line', 'address_line2', 'address_city', 'address_state', 'address_postcode', 'address_country', 'phone'], ['customer_storage_number', 'tokenise_algorithm']);
|
|
5805
5821
|
var WALLET_GATEWAY;
|
|
@@ -10821,6 +10837,26 @@ var FlypayWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
10821
10837
|
}]);
|
|
10822
10838
|
}(WalletService);
|
|
10823
10839
|
|
|
10840
|
+
var APPLE_PAY_BUTTON_TYPES_ARIA_LABEL_MAPPING = {
|
|
10841
|
+
'add-money': 'Add money with Apple Pay',
|
|
10842
|
+
"book": 'Book with Apple Pay',
|
|
10843
|
+
"buy": 'Buy with Apple Pay',
|
|
10844
|
+
'check-out': 'Check out with Apple Pay',
|
|
10845
|
+
"continue": 'Continue with Apple Pay',
|
|
10846
|
+
"contribute": 'Contribute with Apple Pay',
|
|
10847
|
+
"donate": 'Donate with Apple Pay',
|
|
10848
|
+
"order": 'Order with Apple Pay',
|
|
10849
|
+
"pay": 'Pay with Apple Pay',
|
|
10850
|
+
"plain": 'Apple Pay',
|
|
10851
|
+
"reload": 'Reload with Apple Pay',
|
|
10852
|
+
"rent": 'Rent with Apple Pay',
|
|
10853
|
+
'set-up': 'Set up with Apple Pay',
|
|
10854
|
+
"subscribe": 'Subscribe with Apple Pay',
|
|
10855
|
+
"support": 'Support with Apple Pay',
|
|
10856
|
+
"tip": 'Tip with Apple Pay',
|
|
10857
|
+
'top-up': 'Top up with Apple Pay'
|
|
10858
|
+
};
|
|
10859
|
+
|
|
10824
10860
|
var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
10825
10861
|
function AppleWalletService(publicKey, meta, gatewayName, eventEmitter) {
|
|
10826
10862
|
var _this;
|
|
@@ -10973,11 +11009,13 @@ var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
10973
11009
|
var _a, _b, _c;
|
|
10974
11010
|
if (((_a = this.meta) === null || _a === void 0 ? void 0 : _a.style) && _typeof$1((_b = this.meta) === null || _b === void 0 ? void 0 : _b.style) === 'object') {
|
|
10975
11011
|
var metaStyles = JSON.parse(JSON.stringify((_c = this.meta) === null || _c === void 0 ? void 0 : _c.style));
|
|
10976
|
-
if ('google' in metaStyles)
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
return null;
|
|
11012
|
+
if ('google' in metaStyles)
|
|
11013
|
+
// biome-ignore lint/performance/noDelete: <explanation>
|
|
11014
|
+
metaStyles === null || metaStyles === void 0 ? true : delete metaStyles.google; // to offer backward compatibility
|
|
11015
|
+
if ('apple' in metaStyles) return metaStyles === null || metaStyles === void 0 ? void 0 : metaStyles.apple;
|
|
11016
|
+
return metaStyles; // to offer backward compatibility
|
|
10980
11017
|
}
|
|
11018
|
+
return null;
|
|
10981
11019
|
}
|
|
10982
11020
|
}, {
|
|
10983
11021
|
key: "getMetaRawDataInitialization",
|
|
@@ -10985,11 +11023,13 @@ var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
10985
11023
|
var _a, _b, _c, _d;
|
|
10986
11024
|
if (((_a = this.meta) === null || _a === void 0 ? void 0 : _a.raw_data_initialization) && ((_b = this.meta) === null || _b === void 0 ? void 0 : _b.raw_data_initialization) && _typeof$1((_c = this.meta) === null || _c === void 0 ? void 0 : _c.raw_data_initialization) === 'object') {
|
|
10987
11025
|
var metaRawDataInit = JSON.parse(JSON.stringify((_d = this.meta) === null || _d === void 0 ? void 0 : _d.raw_data_initialization));
|
|
10988
|
-
if ('google' in metaRawDataInit)
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
return null;
|
|
11026
|
+
if ('google' in metaRawDataInit)
|
|
11027
|
+
// biome-ignore lint/performance/noDelete: <explanation>
|
|
11028
|
+
metaRawDataInit === null || metaRawDataInit === void 0 ? true : delete metaRawDataInit.google; // to offer backward compatibility
|
|
11029
|
+
if ('apple' in metaRawDataInit) return metaRawDataInit === null || metaRawDataInit === void 0 ? void 0 : metaRawDataInit.apple;
|
|
11030
|
+
return metaRawDataInit; // to offer backward compatibility
|
|
10992
11031
|
}
|
|
11032
|
+
return null;
|
|
10993
11033
|
}
|
|
10994
11034
|
}, {
|
|
10995
11035
|
key: "isShippingRequired",
|
|
@@ -11076,16 +11116,25 @@ var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
11076
11116
|
key: "mount",
|
|
11077
11117
|
value: function mount(container) {
|
|
11078
11118
|
var _this4 = this;
|
|
11079
|
-
var
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11119
|
+
var _a;
|
|
11120
|
+
var styleButton = document.createElement('style');
|
|
11121
|
+
styleButton.innerHTML = this.createButtonStyle();
|
|
11122
|
+
document.head.appendChild(styleButton);
|
|
11123
|
+
var styleSpan = document.createElement('style');
|
|
11124
|
+
styleSpan.innerHTML = this.createSpanStyle();
|
|
11125
|
+
document.head.appendChild(styleSpan);
|
|
11126
|
+
var button = document.createElement('button');
|
|
11083
11127
|
button.onclick = function () {
|
|
11084
11128
|
return _this4.onApplePayButtonClicked();
|
|
11085
11129
|
};
|
|
11130
|
+
var span = document.createElement('span');
|
|
11131
|
+
var text = APPLE_PAY_BUTTON_TYPES_ARIA_LABEL_MAPPING[((_a = this.getMetaStyles()) === null || _a === void 0 ? void 0 : _a.button_type) || 'plain'];
|
|
11132
|
+
span.innerText = text;
|
|
11086
11133
|
button.classList.add('paydock-apple-container', 'apple-pay-button', 'apple-pay-button-black');
|
|
11087
11134
|
button.setAttribute('tabindex', '0');
|
|
11088
11135
|
button.setAttribute('role', 'button');
|
|
11136
|
+
button.appendChild(span);
|
|
11137
|
+
button.setAttribute('aria-label', text);
|
|
11089
11138
|
container.getElement().appendChild(button);
|
|
11090
11139
|
}
|
|
11091
11140
|
}, {
|
|
@@ -11180,7 +11229,12 @@ var AppleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
11180
11229
|
key: "createButtonStyle",
|
|
11181
11230
|
value: function createButtonStyle() {
|
|
11182
11231
|
var _a, _b;
|
|
11183
|
-
return "\n .paydock-apple-container {\n width: 100%;\n height: 40px;\n }\n\n @supports (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: ".concat(((_a = this.getMetaStyles()) === null || _a === void 0 ? void 0 : _a.button_type) || 'plain', "\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-with-line {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n -apple-pay-button-type: ").concat(((_b = this.getMetaStyles()) === null || _b === void 0 ? void 0 : _b.button_type) || 'plain', "\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-with-line {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n ");
|
|
11232
|
+
return "\n .paydock-apple-container {\n width: 100%;\n height: 40px;\n position: relative;\n }\n\n @supports (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: ".concat(((_a = this.getMetaStyles()) === null || _a === void 0 ? void 0 : _a.button_type) || 'plain', "\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-with-line {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n -apple-pay-button-type: ").concat(((_b = this.getMetaStyles()) === null || _b === void 0 ? void 0 : _b.button_type) || 'plain', "\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-with-line {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n ");
|
|
11233
|
+
}
|
|
11234
|
+
}, {
|
|
11235
|
+
key: "createSpanStyle",
|
|
11236
|
+
value: function createSpanStyle() {
|
|
11237
|
+
return "\n .apple-pay-button span {\n color: transparent;\n position: absolute;\n top: -2px;\n left: -2px;\n right: -2px;\n bottom: -2px;\n border-radius: 5px;\n transition: all 0.3s ease;\n }\n\n .apple-pay-button:focus span {\n box-shadow: -2px 2px 2px 2px rgba(0,0,0,0.3);\n }\n ";
|
|
11184
11238
|
}
|
|
11185
11239
|
}]);
|
|
11186
11240
|
}(WalletService);
|
|
@@ -13600,7 +13654,9 @@ var MultiWidget = /*#__PURE__*/function () {
|
|
|
13600
13654
|
sdk_type: SDK.type
|
|
13601
13655
|
});
|
|
13602
13656
|
}
|
|
13603
|
-
|
|
13657
|
+
var jwt = AccessToken.validateJWT(accessToken);
|
|
13658
|
+
if (!!jwt) {
|
|
13659
|
+
if (!AccessToken.validateJWTWhitelistedDomains(jwt.body)) throw Error('access Token is not valid for current domain');
|
|
13604
13660
|
this.link.setParams({
|
|
13605
13661
|
token: accessToken
|
|
13606
13662
|
});
|
|
@@ -16500,7 +16556,10 @@ var BaseWalletButton = /*#__PURE__*/function () {
|
|
|
16500
16556
|
|
|
16501
16557
|
var generateApplePayButtonStyles = function generateApplePayButtonStyles() {
|
|
16502
16558
|
var buttonType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'plain';
|
|
16503
|
-
return "\n .paydock-apple-container {\n display: inline-block;\n width: 100%;\n height: 44px;\n cursor: pointer;\n }\n\n @supports (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: ".concat(buttonType, ";\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n -apple-pay-button-type: ").concat(buttonType, ";\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-outline {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n ");
|
|
16559
|
+
return "\n .paydock-apple-container {\n display: inline-block;\n width: 100%;\n height: 44px;\n cursor: pointer;\n position: relative;\n }\n\n @supports (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: ".concat(buttonType, ";\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n -apple-pay-button-type: ").concat(buttonType, ";\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-outline {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n ");
|
|
16560
|
+
};
|
|
16561
|
+
var generateApplePaySpanStyles = function generateApplePaySpanStyles() {
|
|
16562
|
+
return "\n .apple-pay-button span {\n color: transparent;\n position: absolute;\n top: -2px;\n left: -2px;\n right: -2px;\n bottom: -2px;\n border-radius: 5px;\n transition: all 0.3s ease;\n }\n\n .apple-pay-button:focus span {\n box-shadow: -2px 2px 2px 2px rgba(0,0,0,0.3);\n }\n ";
|
|
16504
16563
|
};
|
|
16505
16564
|
|
|
16506
16565
|
/**
|
|
@@ -16629,16 +16688,24 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
16629
16688
|
value: function mount() {
|
|
16630
16689
|
var _this3 = this;
|
|
16631
16690
|
var _a, _b;
|
|
16632
|
-
var
|
|
16633
|
-
|
|
16634
|
-
document.head.appendChild(
|
|
16635
|
-
var
|
|
16691
|
+
var styleButton = document.createElement('style');
|
|
16692
|
+
styleButton.innerHTML = generateApplePayButtonStyles((_a = this.meta.style) === null || _a === void 0 ? void 0 : _a.button_type);
|
|
16693
|
+
document.head.appendChild(styleButton);
|
|
16694
|
+
var styleSpan = document.createElement('style');
|
|
16695
|
+
styleSpan.innerHTML = generateApplePaySpanStyles();
|
|
16696
|
+
document.head.appendChild(styleSpan);
|
|
16697
|
+
var button = document.createElement('button');
|
|
16636
16698
|
button.onclick = function () {
|
|
16637
16699
|
return _this3.onApplePayButtonClicked();
|
|
16638
16700
|
};
|
|
16701
|
+
var text = APPLE_PAY_BUTTON_TYPES_ARIA_LABEL_MAPPING['buy'];
|
|
16702
|
+
var span = document.createElement('span');
|
|
16703
|
+
span.innerText = text;
|
|
16639
16704
|
button.classList.add('paydock-apple-container', 'apple-pay-button', "apple-pay-button-".concat(((_b = this.meta.style) === null || _b === void 0 ? void 0 : _b.button_style) || 'black'));
|
|
16640
16705
|
button.setAttribute('tabindex', '0');
|
|
16641
16706
|
button.setAttribute('role', 'button');
|
|
16707
|
+
button.appendChild(span);
|
|
16708
|
+
button.setAttribute('aria-label', text);
|
|
16642
16709
|
this.container.getElement().appendChild(button);
|
|
16643
16710
|
}
|
|
16644
16711
|
}, {
|
package/bundles/index.mjs.d.ts
CHANGED
|
@@ -329,6 +329,8 @@ declare const SUPPORTED_CARD_TYPES: {
|
|
|
329
329
|
SOLO: string;
|
|
330
330
|
VISA: string;
|
|
331
331
|
VISA_WHITE: string;
|
|
332
|
+
EFTPOS: string;
|
|
333
|
+
EFTPOS_WHITE: string;
|
|
332
334
|
};
|
|
333
335
|
interface IIcons {
|
|
334
336
|
paypal_checkout_button?: string;
|
|
@@ -588,7 +590,7 @@ declare enum WALLET_TYPE {
|
|
|
588
590
|
AFTERPAY = "afterpay"
|
|
589
591
|
}
|
|
590
592
|
interface ApplePayStyles {
|
|
591
|
-
button_type?:
|
|
593
|
+
button_type?: 'add-money' | 'book' | 'buy' | 'check-out' | 'continue' | 'contribute' | 'donate' | 'order' | 'pay' | 'plain' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
|
|
592
594
|
}
|
|
593
595
|
interface GooglePayStyles {
|
|
594
596
|
button_type?: 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe';
|
|
@@ -81,6 +81,8 @@ export declare const SUPPORTED_CARD_TYPES: {
|
|
|
81
81
|
SOLO: string;
|
|
82
82
|
VISA: string;
|
|
83
83
|
VISA_WHITE: string;
|
|
84
|
+
EFTPOS: string;
|
|
85
|
+
EFTPOS_WHITE: string;
|
|
84
86
|
};
|
|
85
87
|
export declare const SUPPORTED_CHECKOUT_META_COLLECTION: any[];
|
|
86
88
|
export interface IIcons {
|
|
@@ -349,7 +351,7 @@ export declare enum WALLET_TYPE {
|
|
|
349
351
|
AFTERPAY = "afterpay"
|
|
350
352
|
}
|
|
351
353
|
export interface ApplePayStyles {
|
|
352
|
-
button_type?:
|
|
354
|
+
button_type?: 'add-money' | 'book' | 'buy' | 'check-out' | 'continue' | 'contribute' | 'donate' | 'order' | 'pay' | 'plain' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
|
|
353
355
|
}
|
|
354
356
|
export interface GooglePayStyles {
|
|
355
357
|
button_type?: 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param.d.ts","sourceRoot":"","sources":["../../src/components/param.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC;AAGF,eAAO,MAAM,KAAK;;;;;;;;;;;CAWjB,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;CAO/B,CAAC;AAGF,eAAO,MAAM,IAAI;;;;;;;;;;;;CAYhB,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAGF,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"param.d.ts","sourceRoot":"","sources":["../../src/components/param.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC;AAGF,eAAO,MAAM,KAAK;;;;;;;;;;;CAWjB,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;CAO/B,CAAC;AAGF,eAAO,MAAM,IAAI;;;;;;;;;;;;CAYhB,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAahC,CAAC;AAIF,eAAO,MAAM,kCAAkC,OAkD9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,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uBAAuB,CAAC,EAAE,2BAA2B,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,2BAA2B;IACxC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,CAAA;CACJ;AAED,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,2BAA2B,CAAC;KAC7C,CAAC;IACF,WAAW,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;CACL;AAED,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -19,6 +19,7 @@ export declare class AccessToken {
|
|
|
19
19
|
static extractData<T>(body: IAccessToken['body']): T;
|
|
20
20
|
static extractMeta<T>(body: IAccessToken['body']): T;
|
|
21
21
|
static extractEnv<T>(body: IAccessToken['body']): T;
|
|
22
|
+
static validateJWTWhitelistedDomains(body: IAccessToken['body']): boolean;
|
|
22
23
|
static getAccessHeaderNameByToken(token: string): string;
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=access-token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-token.d.ts","sourceRoot":"","sources":["../../src/helper/access-token.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB;;;CAG9B,CAAA;AAED,qBAAa,WAAW;WACN,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;WAkBtC,WAAW,CAAC,CAAC,EAAE,IAAI,EAAC,YAAY,CAAC,MAAM,CAAC,GAAE,CAAC;WAQ3C,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC;WAS7C,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC;WAS5C,0BAA0B,CAAC,KAAK,EAAE,MAAM;CAGzD"}
|
|
1
|
+
{"version":3,"file":"access-token.d.ts","sourceRoot":"","sources":["../../src/helper/access-token.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB;;;CAG9B,CAAA;AAED,qBAAa,WAAW;WACN,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;WAkBtC,WAAW,CAAC,CAAC,EAAE,IAAI,EAAC,YAAY,CAAC,MAAM,CAAC,GAAE,CAAC;WAQ3C,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC;WAS7C,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC;WAS5C,6BAA6B,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,OAAO;WAclE,0BAA0B,CAAC,KAAK,EAAE,MAAM;CAGzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple-pay.helper.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/helpers/apple-pay.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,yCAAyC,EAAE,MAAM,CAC5D,cAAc,CAAC,aAAa,CAAC,EAC7B,MAAM,CAmBP,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="applepayjs" />
|
|
2
|
-
import { Container } from "../../components/container";
|
|
3
|
-
import { ApplePayRawDataInitialization, ApplePayStyles, IApplePayShippingOption } from "../../components/param";
|
|
4
|
-
import { EventEmitter } from '../../helper/event-emitter';
|
|
5
|
-
import { IWalletService, IWalletServiceMeta, IWalletServiceUpdate, WalletService } from "./wallet-service";
|
|
2
|
+
import type { Container } from "../../components/container";
|
|
3
|
+
import { type ApplePayRawDataInitialization, type ApplePayStyles, type IApplePayShippingOption } from "../../components/param";
|
|
4
|
+
import type { EventEmitter } from '../../helper/event-emitter';
|
|
5
|
+
import { type IWalletService, type IWalletServiceMeta, type IWalletServiceUpdate, WalletService } from "./wallet-service";
|
|
6
6
|
declare global {
|
|
7
7
|
interface Window {
|
|
8
8
|
ApplePaySession: any;
|
|
@@ -43,6 +43,7 @@ export declare class AppleWalletService extends WalletService implements IWallet
|
|
|
43
43
|
private parseUpdateData;
|
|
44
44
|
private formatShippingOptions;
|
|
45
45
|
private createButtonStyle;
|
|
46
|
+
private createSpanStyle;
|
|
46
47
|
}
|
|
47
48
|
export {};
|
|
48
49
|
//# sourceMappingURL=apple.wallet-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/apple.wallet-service.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"apple.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/apple.wallet-service.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAI/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAEH,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,eAAe,EAAE,GAAG,CAAC;KACxB;CACJ;AAED,UAAU,kBAAkB;IACxB,eAAe,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC;IACpD,cAAc,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC;CACtD;AAED,qBAAa,kBAAmB,SAAQ,aAAc,YAAW,cAAc;IAOlB,SAAS,CAAC,WAAW,EAAE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"version":3,"file":"apple-pay.wallet-button-express.d.ts","sourceRoot":"","sources":["../../../../src/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"apple-pay.wallet-button-express.d.ts","sourceRoot":"","sources":["../../../../src/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAElF;;;;;;;;;;;;;;GAcG;AACH,cAAM,2BAA4B,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC1E,OAAO,CAAC,cAAc,CAAkB;IAExC,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAIzG;;;;;;;OAOG;IACI,IAAI;IAqBX;;;;;;;;OAQG;IACI,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAI9C,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,KAAK;IAwBb,OAAO,CAAC,uBAAuB;IAS/B,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,kBAAkB,CAczB;IAED,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,mBAAmB,CA0B1B;IAED,OAAO,CAAC,eAAe,CAEtB;CACJ;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ApplePayButtonType } from "../types/apple-pay-button-type.type";
|
|
2
2
|
export declare const generateApplePayButtonStyles: (buttonType?: ApplePayButtonType) => string;
|
|
3
|
+
export declare const generateApplePaySpanStyles: () => string;
|
|
3
4
|
//# sourceMappingURL=apple-pay-button-style.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-pay-button-style.constant.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,eAAO,MAAM,4BAA4B,gBAAgB,kBAAkB,KAAa,
|
|
1
|
+
{"version":3,"file":"apple-pay-button-style.constant.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,eAAO,MAAM,4BAA4B,gBAAgB,kBAAkB,KAAa,MAsDvF,CAAA;AAGD,eAAO,MAAM,0BAA0B,cAiBtC,CAAA"}
|