@alma/widgets 3.2.4 → 3.3.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/dist/raw/widgets.css +14 -14
- package/dist/raw/widgets.js +27 -19
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +27 -19
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +29 -17
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +27 -19
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/types/Widgets/EligibilityModal/ModalContainer.d.ts +1 -1
- package/dist/types/Widgets/EligibilityModal/index.d.ts +2 -2
- package/dist/types/Widgets/PaymentPlans/index.d.ts +2 -1
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/types.d.ts +3 -0
- package/dist/types/widgets_controller.d.ts +2 -1
- package/dist/widgets.css +5 -5
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/fonts/ArgentCF-DemiBold.eot +0 -0
- package/dist/assets/fonts/ArgentCF-DemiBold.ttf +0 -0
- package/dist/assets/fonts/ArgentCF-DemiBold.woff +0 -0
- package/dist/assets/fonts/ArgentCF-DemiBold.woff2 +0 -0
- package/dist/assets/fonts/Venn-Bold.eot +0 -0
- package/dist/assets/fonts/Venn-Bold.ttf +0 -0
- package/dist/assets/fonts/Venn-Bold.woff +0 -0
- package/dist/assets/fonts/Venn-Bold.woff2 +0 -0
- package/dist/assets/fonts/Venn-Regular.eot +0 -0
- package/dist/assets/fonts/Venn-Regular.ttf +0 -0
- package/dist/assets/fonts/Venn-Regular.woff +0 -0
- package/dist/assets/fonts/Venn-Regular.woff2 +0 -0
package/dist/raw/widgets.m.js
CHANGED
|
@@ -2022,17 +2022,17 @@ var messagesIT = {
|
|
|
2022
2022
|
|
|
2023
2023
|
var messagesNL = {
|
|
2024
2024
|
"credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
|
|
2025
|
-
"credit-features.information": "Een lening
|
|
2026
|
-
"credit-features.total-credit-cost": "Waarvan
|
|
2025
|
+
"credit-features.information": "Een lening is bindend en moet worden terugbetaald. Ga na of je het kunt terugbetalen voordat je jezelf vastlegt.",
|
|
2026
|
+
"credit-features.total-credit-cost": "Waarvan kredietkosten",
|
|
2027
2027
|
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
|
|
2028
|
-
"eligibility-modal.bullet-2": "Laat ons
|
|
2029
|
-
"eligibility-modal.bullet-3": "<strong>
|
|
2028
|
+
"eligibility-modal.bullet-2": "Laat ons je begeleiden en jouw betaling valideren in <strong>2 minuten.</strong>",
|
|
2029
|
+
"eligibility-modal.bullet-3": "<strong>Behoudt de controle</strong> door jouw deadlines op je eigen tempo vooruit of achteruit te schuiven.",
|
|
2030
2030
|
"eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
|
|
2031
2031
|
"eligibility-modal.p1x-bullet-1": "Kies <strong>Alma - 1X</strong> bij het afrekenen.",
|
|
2032
|
-
"eligibility-modal.p1x-bullet-2": "Vul
|
|
2033
|
-
"eligibility-modal.p1x-bullet-3": "<strong>De
|
|
2034
|
-
"eligibility-modal.title-deferred-plan": "Betaal in termijnen of later per creditcard met Alma.",
|
|
2035
|
-
"eligibility-modal.title-normal": "Betaal in termijnen met
|
|
2032
|
+
"eligibility-modal.p1x-bullet-2": "Vul jouw <strong>creditcardgegevens </strong> in.",
|
|
2033
|
+
"eligibility-modal.p1x-bullet-3": "<strong>De bevestiging </strong> van jouw betaling is onmiddellijk!",
|
|
2034
|
+
"eligibility-modal.title-deferred-plan": "Betaal in termijnen of later via iDEAL of per creditcard met Alma.",
|
|
2035
|
+
"eligibility-modal.title-normal": "Betaal in termijnen met iDEAL of creditcard bij Alma.",
|
|
2036
2036
|
"installments.today": "Tegenwoordig",
|
|
2037
2037
|
"installments.total-amount": "Totaal",
|
|
2038
2038
|
"installments.total-fees": "Waarvan kosten (incl. BTW)",
|
|
@@ -2054,9 +2054,9 @@ var messagesPT = {
|
|
|
2054
2054
|
"credit-features.total-credit-cost": "Incluindo custo do crédito",
|
|
2055
2055
|
"eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
|
|
2056
2056
|
"eligibility-modal.bullet-2": "Deixe-nos guiá-lo e validar o seu pagamento em <strong>2 minutos.</strong>",
|
|
2057
|
-
"eligibility-modal.bullet-3": "<strong>Mantenha
|
|
2057
|
+
"eligibility-modal.bullet-3": "<strong>Mantenha o controlo</strong> avançando ou recuando os seus prazos ao seu próprio ritmo.",
|
|
2058
2058
|
"eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
|
|
2059
|
-
"eligibility-modal.p1x-bullet-1": "
|
|
2059
|
+
"eligibility-modal.p1x-bullet-1": "Seleccionar <strong>Alma - 1X</strong> no final da compra.",
|
|
2060
2060
|
"eligibility-modal.p1x-bullet-2": "Preencha as informações do seu <strong>cartão de crédito.</strong>",
|
|
2061
2061
|
"eligibility-modal.p1x-bullet-3": "<strong>A validação </strong> do seu pagamento é instantânea!",
|
|
2062
2062
|
"eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
|
|
@@ -2257,7 +2257,8 @@ var useFetchEligibility = function useFetchEligibility(purchaseAmount, _ref, pla
|
|
|
2257
2257
|
billing_address: billing_address,
|
|
2258
2258
|
shipping_address: shipping_address
|
|
2259
2259
|
}, {
|
|
2260
|
-
Authorization: "Alma-Merchant-Auth " + merchantId
|
|
2260
|
+
Authorization: "Alma-Merchant-Auth " + merchantId,
|
|
2261
|
+
'X-Alma-Agent': 'Alma Widget'
|
|
2261
2262
|
}).then(function (res) {
|
|
2262
2263
|
setEligibility(res);
|
|
2263
2264
|
setStatus(apiStatus.SUCCESS);
|
|
@@ -3203,7 +3204,8 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3203
3204
|
customerShippingCountry = _ref.customerShippingCountry,
|
|
3204
3205
|
transitionDelay = _ref.transitionDelay,
|
|
3205
3206
|
_ref$hideBorder = _ref.hideBorder,
|
|
3206
|
-
hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder
|
|
3207
|
+
hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder,
|
|
3208
|
+
onModalClose = _ref.onModalClose;
|
|
3207
3209
|
|
|
3208
3210
|
var _useFetchEligibility = useFetchEligibility(purchaseAmount, apiData, configPlans, customerBillingCountry, customerShippingCountry),
|
|
3209
3211
|
eligibilityPlans = _useFetchEligibility[0],
|
|
@@ -3228,8 +3230,9 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3228
3230
|
return setIsOpen(true);
|
|
3229
3231
|
};
|
|
3230
3232
|
|
|
3231
|
-
var closeModal = function closeModal() {
|
|
3232
|
-
|
|
3233
|
+
var closeModal = function closeModal(event) {
|
|
3234
|
+
setIsOpen(false);
|
|
3235
|
+
onModalClose && onModalClose(event);
|
|
3233
3236
|
};
|
|
3234
3237
|
|
|
3235
3238
|
var eligiblePlanKeys = eligibilityPlans.reduce(function (acc, plan, index) {
|
|
@@ -3368,7 +3371,8 @@ var WidgetsController = /*#__PURE__*/function () {
|
|
|
3368
3371
|
customerShippingCountry = options.customerShippingCountry,
|
|
3369
3372
|
_options$locale = options.locale,
|
|
3370
3373
|
locale = _options$locale === void 0 ? Locale.en : _options$locale,
|
|
3371
|
-
cards = options.cards
|
|
3374
|
+
cards = options.cards,
|
|
3375
|
+
onModalClose = options.onModalClose;
|
|
3372
3376
|
|
|
3373
3377
|
if (containerDiv) {
|
|
3374
3378
|
render( /*#__PURE__*/React.createElement(Provider, {
|
|
@@ -3384,7 +3388,8 @@ var WidgetsController = /*#__PURE__*/function () {
|
|
|
3384
3388
|
customerBillingCountry: customerBillingCountry,
|
|
3385
3389
|
customerShippingCountry: customerShippingCountry,
|
|
3386
3390
|
transitionDelay: transitionDelay,
|
|
3387
|
-
hideBorder: hideBorder
|
|
3391
|
+
hideBorder: hideBorder,
|
|
3392
|
+
onModalClose: onModalClose
|
|
3388
3393
|
})), document.querySelector(container));
|
|
3389
3394
|
}
|
|
3390
3395
|
}
|
|
@@ -3398,10 +3403,13 @@ var WidgetsController = /*#__PURE__*/function () {
|
|
|
3398
3403
|
_locale = _options$locale2 === void 0 ? Locale.en : _options$locale2,
|
|
3399
3404
|
_customerBillingCountry = options.customerBillingCountry,
|
|
3400
3405
|
_customerShippingCountry = options.customerShippingCountry,
|
|
3401
|
-
_cards = options.cards
|
|
3406
|
+
_cards = options.cards,
|
|
3407
|
+
onClose = options.onClose;
|
|
3402
3408
|
|
|
3403
|
-
var close = function close() {
|
|
3404
|
-
|
|
3409
|
+
var close = function close(event) {
|
|
3410
|
+
if (!containerDiv) return;
|
|
3411
|
+
unmountComponentAtNode(containerDiv);
|
|
3412
|
+
onClose && onClose(event);
|
|
3405
3413
|
};
|
|
3406
3414
|
|
|
3407
3415
|
var renderModal = function renderModal() {
|