PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-dev4
Elementor Website Builder – more than just a page builder v4.0.0-dev4
4.3.2 4.3.1 4.3.0 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 All 455 releases
← All changes | assets/js/ai-layout.js +7 -57 4.2.0-beta2 → 4.0.0-dev4 View file →
@@ -53,9 +53,13 @@
53 53 value: function dispatchEvent(eventName, payload) {
54 54 if (!this.isEventsManagerAvailable() || !this.canSendEvents()) {
55 55 return false;
56 56 }
57 - this.getEventsManager().dispatchEvent(eventName, payload);
57 + try {
58 + return this.getEventsManager().dispatchEvent(eventName, payload);
59 + } catch (error) {
60 + return false;
61 + }
58 62 }
59 63 }, {
60 64 key: "toLowerSnake",
61 65 value: function toLowerSnake(value) {
@@ -356,62 +360,8 @@
356 360 };
357 361 }
358 362 return this.dispatchEvent(config === null || config === void 0 || (_config$names1 = config.names) === null || _config$names1 === void 0 || (_config$names1 = _config$names1.editorOne) === null || _config$names1 === void 0 ? void 0 : _config$names1.widgetPanelSearch, payload);
359 363 }
360 - }, {
361 - key: "createWpDashPayload",
362 - value: function createWpDashPayload() {
363 - var _config$appTypes$wpDa, _config$appTypes5, _config$locations11;
364 - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
365 - var config = this.getConfig();
366 - return this.createBasePayload(_objectSpread({
367 - window_name: (_config$appTypes$wpDa = config === null || config === void 0 || (_config$appTypes5 = config.appTypes) === null || _config$appTypes5 === void 0 ? void 0 : _config$appTypes5.wpDash) !== null && _config$appTypes$wpDa !== void 0 ? _config$appTypes$wpDa : 'wpdash',
368 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations11 = config.locations) === null || _config$locations11 === void 0 ? void 0 : _config$locations11.wpDashAdmin),
369 - location_l2: ''
370 - }, overrides));
371 - }
372 - }, {
373 - key: "sendWpDashElementorMenuClick",
374 - value: function sendWpDashElementorMenuClick() {
375 - var _config$names10, _config$triggers10, _config$targetTypes11, _config$interactionRe13, _config$secondaryLoca11;
376 - var config = this.getConfig();
377 - return this.dispatchEvent(config === null || config === void 0 || (_config$names10 = config.names) === null || _config$names10 === void 0 || (_config$names10 = _config$names10.editorOne) === null || _config$names10 === void 0 ? void 0 : _config$names10.wpDashElementorMenuClick, this.createWpDashPayload({
378 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers10 = config.triggers) === null || _config$triggers10 === void 0 ? void 0 : _config$triggers10.click),
379 - target_type: config === null || config === void 0 || (_config$targetTypes11 = config.targetTypes) === null || _config$targetTypes11 === void 0 ? void 0 : _config$targetTypes11.wpDashAdminMenuItem,
380 - target_name: 'elementor_menu_item',
381 - interaction_result: config === null || config === void 0 || (_config$interactionRe13 = config.interactionResults) === null || _config$interactionRe13 === void 0 ? void 0 : _config$interactionRe13.elementorSideMenuOpened,
382 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca11 = config.secondaryLocations) === null || _config$secondaryLoca11 === void 0 ? void 0 : _config$secondaryLoca11.wpDashElementorCoreMenu),
383 - interaction_description: 'core_user_clicked_elementor_menu_item'
384 - }));
385 - }
386 - }, {
387 - key: "sendWpDashEditorSubMenuHover",
388 - value: function sendWpDashEditorSubMenuHover() {
389 - var _config$names11, _config$triggers11, _config$targetTypes12, _config$interactionRe14, _config$secondaryLoca12;
390 - var config = this.getConfig();
391 - return this.dispatchEvent(config === null || config === void 0 || (_config$names11 = config.names) === null || _config$names11 === void 0 || (_config$names11 = _config$names11.editorOne) === null || _config$names11 === void 0 ? void 0 : _config$names11.wpDashEditorSubMenuHover, this.createWpDashPayload({
392 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers11 = config.triggers) === null || _config$triggers11 === void 0 ? void 0 : _config$triggers11.hover),
393 - target_type: config === null || config === void 0 || (_config$targetTypes12 = config.targetTypes) === null || _config$targetTypes12 === void 0 ? void 0 : _config$targetTypes12.wpDashEditorMenu,
394 - target_name: 'wpdash_editor_sub_menu',
395 - interaction_result: config === null || config === void 0 || (_config$interactionRe14 = config.interactionResults) === null || _config$interactionRe14 === void 0 ? void 0 : _config$interactionRe14.editorSubMenuOpened,
396 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca12 = config.secondaryLocations) === null || _config$secondaryLoca12 === void 0 ? void 0 : _config$secondaryLoca12.wpDashElementorCoreSubMenu),
397 - interaction_description: 'core_user_hovered_sub_menu'
398 - }));
399 - }
400 - }, {
401 - key: "sendWpDashThemeBuilderClick",
402 - value: function sendWpDashThemeBuilderClick() {
403 - var _config$names12, _config$triggers12, _config$targetTypes13, _config$interactionRe15, _config$secondaryLoca13;
404 - var config = this.getConfig();
405 - return this.dispatchEvent(config === null || config === void 0 || (_config$names12 = config.names) === null || _config$names12 === void 0 || (_config$names12 = _config$names12.editorOne) === null || _config$names12 === void 0 ? void 0 : _config$names12.wpDashThemeBuilderClick, this.createWpDashPayload({
406 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers12 = config.triggers) === null || _config$triggers12 === void 0 ? void 0 : _config$triggers12.click),
407 - target_type: config === null || config === void 0 || (_config$targetTypes13 = config.targetTypes) === null || _config$targetTypes13 === void 0 ? void 0 : _config$targetTypes13.wpDashSubMenuItem,
408 - target_name: 'theme_builder_menu_item',
409 - interaction_result: config === null || config === void 0 || (_config$interactionRe15 = config.interactionResults) === null || _config$interactionRe15 === void 0 ? void 0 : _config$interactionRe15.themeBuilderPromotionWindow,
410 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca13 = config.secondaryLocations) === null || _config$secondaryLoca13 === void 0 ? void 0 : _config$secondaryLoca13.wpDashThemeBuilder),
411 - interaction_description: 'core_user_clicked_theme_builder_menu_item'
412 - }));
413 - }
414 364 }]);
415 365 }();
416 366 var createDebouncedFinderSearch = exports.createDebouncedFinderSearch = function createDebouncedFinderSearch() {
417 367 var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300;
@@ -2924,9 +2874,9 @@
2924 2874 sx: {
2925 2875 maxWidth: 520,
2926 2876 textAlign: 'center'
2927 2877 }
2928 - }, " ", (0, _i18n.__)('By clicking "Connect", I approve the ', 'elementor'), /*#__PURE__*/_react.default.createElement(_ui.Link, {
2878 + }, (0, _i18n.__)('By clicking "Connect", I approve the ', 'elementor'), /*#__PURE__*/_react.default.createElement(_ui.Link, {
2929 2879 href: "https://go.elementor.com/ai-terms/",
2930 2880 target: "_blank",
2931 2881 color: "info.main"
2932 2882 }, (0, _i18n.__)('Terms of Service', 'elementor')), ' & ', /*#__PURE__*/_react.default.createElement(_ui.Link, {
@@ -5632,9 +5582,9 @@
5632 5582 maxWidth: 520
5633 5583 },
5634 5584 component: "label",
5635 5585 htmlFor: "e-ai-terms-approval"
5636 - }, " ", (0, _i18n.__)('I approve the ', 'elementor'), /*#__PURE__*/_react.default.createElement(_ui.Link, {
5586 + }, (0, _i18n.__)('I approve the ', 'elementor'), /*#__PURE__*/_react.default.createElement(_ui.Link, {
5637 5587 href: "https://go.elementor.com/ai-terms/",
5638 5588 target: "_blank",
5639 5589 color: "info.main"
5640 5590 }, (0, _i18n.__)('Terms of Service', 'elementor')), ' & ', /*#__PURE__*/_react.default.createElement(_ui.Link, {