PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.2
Elementor Website Builder – more than just a page builder v4.3.2
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/atomic-widgets-editor.js +18 -1 4.3.0-beta1 → 4.3.2 View file →
@@ -1311,9 +1311,26 @@
1311 1311 */
1312 1312 var getAllElementTypes = function getAllElementTypes() {
1313 1313 return Object.keys(elementor.getConfig().elements);
1314 1314 };
1315 - module.exports = { getAllElementTypes };
1315 + /**
1316 + * Returns whether an element type is a compound atomic element —
1317 + * one that should be auto-wrapped in a flexbox container when dropped on the canvas,
1318 + * consistent with atom elements (Heading, Image, etc.).
1319 + *
1320 + * Compound atomic elements declare `is_compound: true` in their PHP element meta.
1321 + *
1322 + * @param {string} elType - The element type string (e.g. 'e-tabs').
1323 + * @return {boolean}
1324 + */
1325 + var isCompoundAtomicType = function isCompoundAtomicType(elType) {
1326 + var _elementor$getConfig$;
1327 + return !!((_elementor$getConfig$ = elementor.getConfig().elements[elType]) !== null && _elementor$getConfig$ !== void 0 && (_elementor$getConfig$ = _elementor$getConfig$.meta) !== null && _elementor$getConfig$ !== void 0 && _elementor$getConfig$.is_compound);
1328 + };
1329 + module.exports = {
1330 + getAllElementTypes,
1331 + isCompoundAtomicType
1332 + };
1316 1333 }));
1317 1334
1318 1335 //#endregion
1319 1336 //#region node_modules/react-dom/client.js