Skip to content

Commit

Permalink
chore(release): 2.11.1 [skip ci]
Browse files Browse the repository at this point in the history
## [2.11.1](v2.11.0...v2.11.1) (2022-07-07)

### Bug Fixes

* linting and fix to launch a new version ([a350d58](a350d58))
  • Loading branch information
github-actions committed Jul 7, 2022
1 parent a350d58 commit ab1b6b7
Show file tree
Hide file tree
Showing 22 changed files with 160 additions and 38 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.11.1](https://github.com/alma/widgets/compare/v2.11.0...v2.11.1) (2022-07-07)


### Bug Fixes

* linting and fix to launch a new version ([a350d58](https://github.com/alma/widgets/commit/a350d58fb20d6e860136b5123d2022fe7aff83e5))

# [2.11.0](https://github.com/alma/widgets/compare/v2.10.0...v2.11.0) (2022-06-30)


Expand Down
40 changes: 34 additions & 6 deletions dist/raw/widgets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/raw/widgets.js.map

Large diffs are not rendered by default.

40 changes: 34 additions & 6 deletions dist/raw/widgets.m.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/raw/widgets.m.js.map

Large diffs are not rendered by default.

40 changes: 34 additions & 6 deletions dist/raw/widgets.modern.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/raw/widgets.modern.js.map

Large diffs are not rendered by default.

40 changes: 34 additions & 6 deletions dist/raw/widgets.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,7 @@
Locale["it"] = "it";
Locale["es"] = "es";
Locale["nl"] = "nl";
Locale["pt"] = "pt";
Locale["nl-NL"] = "nl-NL";
Locale["nl-BE"] = "nl-BE";
})(Locale || (Locale = {}));
Expand All @@ -1544,6 +1545,7 @@
function formatCents(cents) {
return String(priceFromCents(cents)).replace('.', ',');
}
var desktopWidth = 800;

/* eslint-disable */

Expand Down Expand Up @@ -6822,7 +6824,7 @@
var messagesNL = {
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
"eligibility-modal.bullet-2": "Vul de <strong>gevraagde informatie</strong> in.",
"eligibility-modal.bullet-3": "Onmiddelijke validatie van uw betaling ",
"eligibility-modal.bullet-3": "Onmiddellijke validatie van uw betaling ",
"eligibility-modal.cost": "Waarvan kosten",
"eligibility-modal.credit-commitment": "Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.",
"eligibility-modal.credit-cost": "Waarvan kosten van krediet",
Expand All @@ -6842,6 +6844,29 @@
"payment-plan-strings.no-fee": "(gratis)"
};

var messagesPT = {
"eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
"eligibility-modal.bullet-2": "Preencha os <strong>dados</strong> solicitados.",
"eligibility-modal.bullet-3": "Validação do seu pagamento <strong>imediata</strong>!",
"eligibility-modal.cost": "Incluindo encargos",
"eligibility-modal.credit-commitment": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
"eligibility-modal.credit-cost": "Incluindo custo do crédito",
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
"eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
"eligibility-modal.title": "<highlighted>Pague em prestações</highlighted> com cartão bancário através da Alma.",
"eligibility-modal.title-deferred": "<highlighted>Pague em prestações</highlighted> ou mais tarde com cartão bancário através da Alma.",
"eligibility-modal.total": "Total",
"installments.today": "Hoje",
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
"payment-plan-strings.default-message": "Pague em prestações através da Alma",
"payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
"payment-plan-strings.ineligible-greater-than-max": "Até {maxAmount}",
"payment-plan-strings.ineligible-lower-than-min": "A partir de {minAmount}",
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
"payment-plan-strings.no-fee": "(sem encargos)"
};

var getTranslationsByLocale = function getTranslationsByLocale(locale) {
switch (locale) {
case Locale.fr:
Expand All @@ -6856,6 +6881,9 @@
case Locale.de:
return messagesDE;

case Locale.pt:
return messagesPT;

case Locale.nl:
case Locale['nl-BE']:
case Locale['nl-NL']:
Expand Down Expand Up @@ -19851,11 +19879,11 @@

var Schedule = function Schedule(_ref) {
var currentPlan = _ref.currentPlan;
var total = currentPlan && priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
var creditCost = currentPlan ? priceFromCents(currentPlan.customer_total_cost_amount) : 0;
var total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
var creditCost = priceFromCents(currentPlan.customer_total_cost_amount);
var TAEG = (currentPlan == null ? void 0 : currentPlan.annual_interest_rate) && currentPlan.annual_interest_rate / 10000;
var customerFees = priceFromCents(currentPlan ? currentPlan.customer_total_cost_amount : 0);
var isCredit = currentPlan && currentPlan.installments_count > 4;
var customerFees = priceFromCents(currentPlan.customer_total_cost_amount);
var isCredit = currentPlan.installments_count > 4;
var intl = useIntl();
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
className: classnames(s$3.schedule, STATIC_CUSTOMISATION_CLASSES.scheduleDetails),
Expand Down Expand Up @@ -20274,7 +20302,7 @@
setCurrentPlanIndex = _useState[1];

var isBigScreen = reactResponsive.useMediaQuery({
minWidth: 800
minWidth: desktopWidth
});
var ModalComponent = isBigScreen ? DesktopModal : MobileModal;
var eligiblePlans = eligibilityPlans.filter(function (plan) {
Expand Down
2 changes: 1 addition & 1 deletion dist/raw/widgets.umd.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
2 changes: 1 addition & 1 deletion dist/types/Widgets/PaymentPlans/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare type Props = {
configPlans?: ConfigPlan[];
transitionDelay?: number;
hideIfNotEligible?: boolean;
monochrome: boolean;
monochrome?: boolean;
suggestedPaymentPlan?: number | number[];
cards?: Card[];
hideBorder?: boolean;
Expand Down
Loading

0 comments on commit ab1b6b7

Please sign in to comment.