| @@ -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 |