PluginProbe
Elementor Website Builder – more than just a page builder / 3.27.4
Elementor Website Builder – more than just a page builder v3.27.4
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | assets/js/import-export-admin.js +21 -29 4.2.43.27.4 View file →
@@ -1,7 +1,19 @@
1 +/*! elementor - v3.27.0 - 13-02-2025 */
1 2 /******/ (() => { // webpackBootstrap
2 3 /******/ var __webpack_modules__ = ({
3 4
5 +/***/ "@wordpress/i18n":
6 +/*!**************************!*\
7 + !*** external "wp.i18n" ***!
8 + \**************************/
9 +/***/ ((module) => {
10 +
11 +"use strict";
12 +module.exports = wp.i18n;
13 +
14 +/***/ }),
15 +
4 16 /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
5 17 /*!****************************************************************!*\
6 18 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
7 19 \****************************************************************/
@@ -123,19 +135,8 @@
123 135 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
124 136 }
125 137 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
126 138
127 -/***/ }),
128 -
129 -/***/ "@wordpress/i18n":
130 -/*!**************************!*\
131 - !*** external "wp.i18n" ***!
132 - \**************************/
133 -/***/ ((module) => {
134 -
135 -"use strict";
136 -module.exports = wp.i18n;
137 -
138 139 /***/ })
139 140
140 141 /******/ });
141 142 /************************************************************************/
@@ -208,32 +209,23 @@
208 209 this.revertButton = document.getElementById('elementor-import-export__revert_kit');
209 210 if (this.revertButton) {
210 211 this.revertButton.addEventListener('click', this.onRevertButtonClick.bind(this));
211 212 this.maybeAddRevertBtnMargin();
212 - this.maybeScrollToRevertButton();
213 213 }
214 214 this.maybeShowReferrerKitDialog();
215 215 }
216 +
217 + /**
218 + * Add bottom margin to revert btn if referred from Kit library
219 + */
216 220 return (0, _createClass2.default)(Admin, [{
217 - key: "shouldScrollToRevert",
218 - value: function shouldScrollToRevert() {
219 - var urlParams = new URLSearchParams(window.location.search);
220 - return !!urlParams.get('scroll_to_revert');
221 - }
222 - }, {
223 221 key: "maybeAddRevertBtnMargin",
224 222 value: function maybeAddRevertBtnMargin() {
225 - if (!this.shouldScrollToRevert()) {
223 + var referrerKitId = new URLSearchParams(this.revertButton.href).get('referrer_kit');
224 + if (!referrerKitId) {
226 225 return;
227 226 }
228 227 this.revertButton.style.marginBottom = this.calculateMargin();
229 - }
230 - }, {
231 - key: "maybeScrollToRevertButton",
232 - value: function maybeScrollToRevertButton() {
233 - if (!this.shouldScrollToRevert()) {
234 - return;
235 - }
236 228 this.scrollToBottom();
237 229 }
238 230
239 231 /**
@@ -274,9 +266,9 @@
274 266 event.preventDefault();
275 267 elementorCommon.dialogsManager.createWidget('confirm', {
276 268 headerMessage: __('Are you sure?', 'elementor'),
277 269 // Translators: %s is the name of the active Kit
278 - message: __('Removing %s will permanently delete changes made to the Websites Template\'s content and site settings', 'elementor').replace('%s', this.activeKitName),
270 + message: __('Removing %s will permanently delete changes made to the Kit\'s content and site settings', 'elementor').replace('%s', this.activeKitName),
279 271 strings: {
280 272 confirm: __('Delete', 'elementor'),
281 273 cancel: __('Cancel', 'elementor')
282 274 },
@@ -301,12 +293,12 @@
301 293 return;
302 294 }
303 295 if (0 === referrerKitId.length) {
304 296 this.createKitDeletedWidget({
305 - message: __('Try a different Website Template or build your site from scratch.', 'elementor'),
297 + message: __('Try a different Kit or build your site from scratch.', 'elementor'),
306 298 strings: {
307 299 confirm: __('OK', 'elementor'),
308 - cancel: __('Library', 'elementor')
300 + cancel: __('Kit Library', 'elementor')
309 301 },
310 302 onCancel: function onCancel() {
311 303 location.href = elementorImportExport.appUrl;
312 304 }