Skip to content

Commit

Permalink
Release v5.8.0 (#311)
Browse files Browse the repository at this point in the history
Release v5.8.0
  • Loading branch information
GiovanniCavallari authored Jun 7, 2022
1 parent 2b02373 commit 60d0ce8
Show file tree
Hide file tree
Showing 50 changed files with 667 additions and 286 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.8.0] - 2022-06-07

### Added
- Added melidata script to collect metrics from plugin

### Changes
- Changed mp logo

## [5.7.6] - 2022-04-19

### Changed Bug fixes
Expand Down
5 changes: 3 additions & 2 deletions assets/css/basic_checkout_mercadopago.css
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 0 !important;
}

.mp-wallet-button-info {
Expand All @@ -906,7 +907,7 @@
}

.mp-wallet-button-pay {
width: 100%x;
width: 100%;
padding-left: 35%;
}

Expand Down Expand Up @@ -968,7 +969,7 @@
}

.mp-wallet-button-pay {
width: 100%x;
width: 100%;
padding-left: 0;
}
}
2 changes: 1 addition & 1 deletion assets/css/basic_checkout_mercadopago.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

.mp-alert-circle-img {
width: 16px;
margin-top: 16px;
margin-top: 16px !important;
}

.mp-alert-texts-checkout-test-mode {
Expand All @@ -46,4 +46,4 @@
margin: 4px 0 0 0 !important;
font-size: 14px;
color: rgba(0, 0, 0, 0.7);
}
}
2 changes: 1 addition & 1 deletion assets/css/global.min.css

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

2 changes: 1 addition & 1 deletion assets/css/mercadopago-settings/mercadopago_settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
background-position: center;
background-repeat: no-repeat;
background-size: cover;
width: 95%;
width: 100%;
border-radius: 140px 170px 170px 0px;
}
.mp-settings-header-logo {
Expand Down

Large diffs are not rendered by default.

Binary file modified assets/images/minilogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/mplogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions assets/js/melidata/melidata-client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* globals wc_melidata_params */
(function () {
window.onload = function () {
window.melidata = null;

try {
var scriptTag = document.createElement("script");

scriptTag.setAttribute("id", "melidata_woocommerce_client");
scriptTag.src = "https://http2.mlstatic.com/storage/v1/plugins/melidata/woocommerce.min.js";
scriptTag.async = true;
scriptTag.defer = true;

scriptTag.onerror = function () {
const url = "https://api.mercadopago.com/v1/plugins/melidata/errors";

const payload = {
name: "ERR_CONNECTION_REFUSED",
message: "Unable to load melidata script on page",
target: "melidata_woocommerce_client",
plugin: {
version: wc_melidata_params.plugin_version,
},
platform: {
name: "woocommerce",
uri: `${window.location.pathname}${window.location.search}`,
version: wc_melidata_params.platform_version,
location: wc_melidata_params.location,
},
};

navigator.sendBeacon(url, JSON.stringify(payload));
};

scriptTag.onload = function () {
window.melidata = new MelidataClient({
type: wc_melidata_params.type,
siteID: wc_melidata_params.site_id,
pluginVersion: wc_melidata_params.platform_version,
platformVersion: wc_melidata_params.plugin_version,
pageLocation: wc_melidata_params.location,
paymentMethod: wc_melidata_params.payment_method,
});
};

document.body.appendChild(scriptTag);
} catch (e) {
console.warn(e);
}
};
})();
1 change: 1 addition & 0 deletions assets/js/melidata/melidata-client.min.js

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

Loading

0 comments on commit 60d0ce8

Please sign in to comment.