@elementor/editor-elements 3.33.0-231 → 3.33.0-232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -980,6 +980,613 @@ var useElementInteractions = (elementId) => {
980
980
  );
981
981
  return interactions;
982
982
  };
983
+
984
+ // src/mcp/index.ts
985
+ import { getMCPByDomain as getMCPByDomain2 } from "@elementor/editor-mcp";
986
+
987
+ // src/mcp/elements-tool.ts
988
+ import { getMCPByDomain } from "@elementor/editor-mcp";
989
+ import { z } from "@elementor/schema";
990
+
991
+ // src/mcp/handlers/create-element.ts
992
+ function handleCreateElement({
993
+ elementType,
994
+ containerId,
995
+ props = {},
996
+ styles
997
+ }) {
998
+ let container = containerId === "document" ? getCurrentDocumentContainer() : getContainer(containerId);
999
+ if (!container) {
1000
+ if (containerId === "document") {
1001
+ throw new Error("Document container not found. Please ensure the editor is initialized.");
1002
+ }
1003
+ throw new Error(`Container with ID "${containerId}" not found`);
1004
+ }
1005
+ const containerElType = container.model.get("elType");
1006
+ const isDocument = container.id === "document" || containerElType === "document";
1007
+ if (isDocument) {
1008
+ const containerModel = {
1009
+ elType: "e-div-block"
1010
+ };
1011
+ const createdContainer = createElement({
1012
+ containerId: container.id,
1013
+ model: containerModel,
1014
+ options: { useHistory: true }
1015
+ });
1016
+ createElementStyle({
1017
+ elementId: createdContainer.id,
1018
+ classesProp: "classes",
1019
+ label: "local",
1020
+ meta: { breakpoint: "desktop", state: null },
1021
+ props: {
1022
+ display: { $$type: "string", value: "flex" },
1023
+ "flex-direction": { $$type: "string", value: "row" },
1024
+ "flex-wrap": { $$type: "string", value: "wrap" }
1025
+ }
1026
+ });
1027
+ container = getContainer(createdContainer.id);
1028
+ if (!container) {
1029
+ throw new Error("Failed to create container for widget. Cannot create widgets directly in the document.");
1030
+ }
1031
+ }
1032
+ const actualContainerId = container.id;
1033
+ const elementTypeData = getElementType(elementType);
1034
+ if (!elementTypeData) {
1035
+ throw new Error(`Element type "${elementType}" not found or is not atomic`);
1036
+ }
1037
+ const model = {
1038
+ widgetType: elementType,
1039
+ elType: "widget",
1040
+ settings: props
1041
+ };
1042
+ const createdElement = createElement({
1043
+ containerId: actualContainerId,
1044
+ model,
1045
+ options: { useHistory: true }
1046
+ });
1047
+ if (styles) {
1048
+ createElementStyle({
1049
+ elementId: createdElement.id,
1050
+ classesProp: "classes",
1051
+ label: "local",
1052
+ meta: { breakpoint: "desktop", state: null },
1053
+ props: styles
1054
+ });
1055
+ }
1056
+ return {
1057
+ elementId: createdElement.id,
1058
+ type: elementType
1059
+ };
1060
+ }
1061
+
1062
+ // src/mcp/handlers/common-style-utils.ts
1063
+ var VALID_BREAKPOINTS = [
1064
+ "widescreen",
1065
+ "desktop",
1066
+ "laptop",
1067
+ "tablet_extra",
1068
+ "tablet",
1069
+ "mobile_extra",
1070
+ "mobile"
1071
+ ];
1072
+ function resolveBreakpointId(breakpoint) {
1073
+ if (breakpoint === null) {
1074
+ return null;
1075
+ }
1076
+ if (VALID_BREAKPOINTS.includes(breakpoint)) {
1077
+ return breakpoint;
1078
+ }
1079
+ return "desktop";
1080
+ }
1081
+
1082
+ // src/mcp/handlers/create-style.ts
1083
+ function handleCreateStyle({
1084
+ elementId,
1085
+ styleId,
1086
+ classesProp = "classes",
1087
+ label = "local",
1088
+ styles,
1089
+ breakpoint = "desktop",
1090
+ state = null,
1091
+ customCss = null
1092
+ }) {
1093
+ const resolvedBreakpoint = resolveBreakpointId(breakpoint);
1094
+ const resolvedState = state === null || state === void 0 ? null : state;
1095
+ const createdStyleId = createElementStyle({
1096
+ styleId,
1097
+ elementId,
1098
+ classesProp,
1099
+ label,
1100
+ meta: { breakpoint: resolvedBreakpoint, state: resolvedState },
1101
+ props: styles,
1102
+ custom_css: customCss
1103
+ });
1104
+ return { styleId: createdStyleId };
1105
+ }
1106
+
1107
+ // src/mcp/handlers/delete-element.ts
1108
+ function handleDeleteElement(elementId) {
1109
+ const container = getContainer(elementId);
1110
+ if (!container) {
1111
+ throw new Error(`Element with ID "${elementId}" not found`);
1112
+ }
1113
+ deleteElement({
1114
+ elementId,
1115
+ options: { useHistory: true }
1116
+ });
1117
+ return { success: true };
1118
+ }
1119
+
1120
+ // src/mcp/handlers/delete-style.ts
1121
+ function handleDeleteStyle({ elementId, styleId }) {
1122
+ const elementStyles = getElementStyles(elementId);
1123
+ if (!elementStyles) {
1124
+ throw new Error(`Element with ID "${elementId}" has no styles.`);
1125
+ }
1126
+ const resolvedStyleId = styleId || Object.keys(elementStyles)[0];
1127
+ if (!resolvedStyleId) {
1128
+ throw new Error(`Element with ID "${elementId}" has no styles to delete.`);
1129
+ }
1130
+ deleteElementStyle(elementId, resolvedStyleId);
1131
+ return { success: true };
1132
+ }
1133
+
1134
+ // src/mcp/handlers/deselect-element.ts
1135
+ import { __privateRunCommand as runCommand3 } from "@elementor/editor-v1-adapters";
1136
+ function handleDeselectElement(elementId) {
1137
+ const container = getContainer(elementId);
1138
+ if (!container) {
1139
+ throw new Error(`Element with ID "${elementId}" not found`);
1140
+ }
1141
+ runCommand3("document/elements/deselect", { container });
1142
+ return { success: true };
1143
+ }
1144
+ function handleDeselectAllElements() {
1145
+ runCommand3("document/elements/deselect-all", {});
1146
+ return { success: true };
1147
+ }
1148
+
1149
+ // src/mcp/handlers/duplicate-element.ts
1150
+ function handleDuplicateElement(elementId) {
1151
+ const container = getContainer(elementId);
1152
+ if (!container) {
1153
+ throw new Error(`Element with ID "${elementId}" not found`);
1154
+ }
1155
+ const duplicatedElement = duplicateElement({
1156
+ elementId,
1157
+ options: { useHistory: true }
1158
+ });
1159
+ const type = duplicatedElement.model.get("widgetType") || duplicatedElement.model.get("elType") || "";
1160
+ return {
1161
+ elementId: duplicatedElement.id,
1162
+ type
1163
+ };
1164
+ }
1165
+
1166
+ // src/mcp/handlers/get-element-props.ts
1167
+ function handleGetElementProps(elementId) {
1168
+ const container = getContainer(elementId);
1169
+ if (!container) {
1170
+ throw new Error(`Element with ID "${elementId}" not found`);
1171
+ }
1172
+ const type = container.model.get("widgetType") || container.model.get("elType");
1173
+ if (!type) {
1174
+ throw new Error(`Element with ID "${elementId}" has no type`);
1175
+ }
1176
+ const elementType = getElementType(type);
1177
+ if (!elementType) {
1178
+ throw new Error(`Element type "${type}" is not atomic`);
1179
+ }
1180
+ const propsSchema = elementType.propsSchema;
1181
+ const propKeys = Object.keys(propsSchema);
1182
+ return getElementSettings(elementId, propKeys);
1183
+ }
1184
+
1185
+ // src/mcp/handlers/get-element-schema.ts
1186
+ import { getStylesSchema } from "@elementor/editor-styles";
1187
+ function handleGetElementSchema(elementType) {
1188
+ const elementTypeData = getElementType(elementType);
1189
+ if (!elementTypeData) {
1190
+ throw new Error(`Element type "${elementType}" not found or is not atomic`);
1191
+ }
1192
+ return { ...elementTypeData, stylesSchema: getStylesSchema() };
1193
+ }
1194
+
1195
+ // src/mcp/handlers/get-selected.ts
1196
+ function handleGetSelected() {
1197
+ return getSelectedElements();
1198
+ }
1199
+
1200
+ // src/mcp/handlers/get-styles.ts
1201
+ function handleGetStyles(elementId) {
1202
+ const styles = getElementStyles(elementId);
1203
+ if (!styles) {
1204
+ return null;
1205
+ }
1206
+ return Object.fromEntries(
1207
+ Object.entries(styles).map(([id, style]) => [
1208
+ id,
1209
+ {
1210
+ id: style.id,
1211
+ label: style.label,
1212
+ type: style.type,
1213
+ variants: style.variants.map((variant) => ({
1214
+ meta: variant.meta,
1215
+ props: variant.props,
1216
+ custom_css: variant.custom_css
1217
+ }))
1218
+ }
1219
+ ])
1220
+ );
1221
+ }
1222
+
1223
+ // src/mcp/handlers/list-available-types.ts
1224
+ function handleListAvailableTypes() {
1225
+ const widgetsCache = getWidgetsCache();
1226
+ if (!widgetsCache) {
1227
+ return [];
1228
+ }
1229
+ const availableTypes = [];
1230
+ Object.entries(widgetsCache).forEach(([type, config]) => {
1231
+ if (config?.atomic_controls && config?.atomic_props_schema) {
1232
+ availableTypes.push({
1233
+ type,
1234
+ title: config.title || type
1235
+ });
1236
+ }
1237
+ });
1238
+ return availableTypes;
1239
+ }
1240
+
1241
+ // src/mcp/handlers/move-element.ts
1242
+ function handleMoveElement({
1243
+ elementId,
1244
+ targetContainerId
1245
+ }) {
1246
+ const container = getContainer(elementId);
1247
+ if (!container) {
1248
+ throw new Error(`Element with ID "${elementId}" not found`);
1249
+ }
1250
+ const targetContainer = getContainer(targetContainerId);
1251
+ if (!targetContainer) {
1252
+ throw new Error(`Target container with ID "${targetContainerId}" not found`);
1253
+ }
1254
+ moveElement({
1255
+ elementId,
1256
+ targetContainerId,
1257
+ options: { useHistory: true }
1258
+ });
1259
+ return { success: true };
1260
+ }
1261
+
1262
+ // src/mcp/handlers/select-element.ts
1263
+ function handleSelectElement(elementId) {
1264
+ const container = getContainer(elementId);
1265
+ if (!container) {
1266
+ throw new Error(`Element with ID "${elementId}" not found`);
1267
+ }
1268
+ selectElement(elementId);
1269
+ return { success: true };
1270
+ }
1271
+ function handleSelectMultipleElements(elementIds) {
1272
+ elementIds.forEach((elementId) => {
1273
+ const container = getContainer(elementId);
1274
+ if (container) {
1275
+ selectElement(elementId);
1276
+ }
1277
+ });
1278
+ return { success: true };
1279
+ }
1280
+
1281
+ // src/mcp/handlers/update-props.ts
1282
+ function handleUpdateProps({ elementId, props }) {
1283
+ const container = getContainer(elementId);
1284
+ if (!container) {
1285
+ throw new Error(`Element with ID "${elementId}" not found`);
1286
+ }
1287
+ updateElementSettings({
1288
+ id: elementId,
1289
+ props,
1290
+ withHistory: true
1291
+ });
1292
+ return { success: true };
1293
+ }
1294
+
1295
+ // src/mcp/handlers/update-styles.ts
1296
+ function handleUpdateStyles({
1297
+ elementId,
1298
+ styleId,
1299
+ styles,
1300
+ breakpoint = "desktop",
1301
+ state = null
1302
+ }) {
1303
+ const resolvedBreakpoint = resolveBreakpointId(breakpoint);
1304
+ const resolvedState = state === null || state === void 0 ? null : state;
1305
+ const elementStyles = getElementStyles(elementId);
1306
+ if (!elementStyles) {
1307
+ throw new Error(`Element with ID "${elementId}" has no styles. Create a style first.`);
1308
+ }
1309
+ const resolvedStyleId = styleId || Object.keys(elementStyles)[0];
1310
+ if (!resolvedStyleId) {
1311
+ throw new Error(`Element with ID "${elementId}" has no styles. Create a style first.`);
1312
+ }
1313
+ updateElementStyle({
1314
+ elementId,
1315
+ styleId: resolvedStyleId,
1316
+ meta: { breakpoint: resolvedBreakpoint, state: resolvedState },
1317
+ props: styles
1318
+ });
1319
+ return { success: true };
1320
+ }
1321
+
1322
+ // src/mcp/elements-tool.ts
1323
+ var actionEnum = z.enum([
1324
+ "get-element-schema",
1325
+ "get-element-props",
1326
+ "create-element",
1327
+ "update-props",
1328
+ "create-style",
1329
+ "get-styles",
1330
+ "update-styles",
1331
+ "delete-style",
1332
+ "delete",
1333
+ "duplicate",
1334
+ "move",
1335
+ "select",
1336
+ "deselect",
1337
+ "deselect-all",
1338
+ "get-selected",
1339
+ "list-available-types"
1340
+ ]);
1341
+ var schema = {
1342
+ action: actionEnum.describe("The element operation to perform."),
1343
+ elementId: z.string().optional().describe("The ID of the target element"),
1344
+ elementIds: z.array(z.string()).optional().describe("Array of element IDs for multi-element operations"),
1345
+ elementType: z.string().optional().describe(
1346
+ "The type of element to create. Must be an atomic element type (required for create-element and get-element-schema actions)"
1347
+ ),
1348
+ props: z.record(z.any()).optional().describe("Props object for creating or updating an element. Must match the element type's propsSchema."),
1349
+ containerId: z.string().optional().describe(
1350
+ 'Parent container ID for element creation or move operations. Use "document" if parent is the document root.'
1351
+ ),
1352
+ targetContainerId: z.string().optional().describe("Target container ID for move operations"),
1353
+ styles: z.record(z.any()).optional().describe(
1354
+ "Styles object for creating or updating element styles. Must match the element type's stylesSchema."
1355
+ ),
1356
+ styleId: z.string().optional().describe(
1357
+ "Style definition ID for style operations. If not provided, the first available style will be used (for update/delete)."
1358
+ ),
1359
+ breakpoint: z.string().optional().describe('Breakpoint for style operations (e.g., "desktop", "tablet", "mobile"). Defaults to "desktop".'),
1360
+ state: z.string().optional().describe('State for style operations (e.g., "hover", "active", or null). Defaults to null.'),
1361
+ classesProp: z.string().optional().describe('Classes property name for create-style action. Defaults to "classes".'),
1362
+ label: z.string().optional().describe('Label for create-style action. Defaults to "local".'),
1363
+ custom_css: z.object({ raw: z.string() }).optional().describe("Custom CSS object with raw CSS string for create-style action.")
1364
+ };
1365
+ function routeAction(params) {
1366
+ try {
1367
+ switch (params.action) {
1368
+ case "get-element-schema":
1369
+ if (!params.elementType) {
1370
+ throw new Error("elementType is required for get-element-schema action");
1371
+ }
1372
+ return handleGetElementSchema(params.elementType);
1373
+ case "get-element-props":
1374
+ if (!params.elementId) {
1375
+ throw new Error("elementId is required for get-element-props action");
1376
+ }
1377
+ return handleGetElementProps(params.elementId);
1378
+ case "create-element":
1379
+ if (!params.elementType) {
1380
+ throw new Error("elementType is required for create-element action");
1381
+ }
1382
+ if (!params.containerId) {
1383
+ throw new Error("containerId is required for create-element action");
1384
+ }
1385
+ return handleCreateElement({
1386
+ elementType: params.elementType,
1387
+ containerId: params.containerId,
1388
+ props: params.props,
1389
+ styles: params.styles
1390
+ });
1391
+ case "update-props":
1392
+ if (!params.elementId) {
1393
+ throw new Error("elementId is required for update-props action");
1394
+ }
1395
+ if (!params.props) {
1396
+ throw new Error("props is required for update-props action");
1397
+ }
1398
+ return handleUpdateProps({
1399
+ elementId: params.elementId,
1400
+ props: params.props
1401
+ });
1402
+ case "create-style":
1403
+ if (!params.elementId) {
1404
+ throw new Error("elementId is required for create-style action");
1405
+ }
1406
+ if (!params.styles) {
1407
+ throw new Error("styles is required for create-style action");
1408
+ }
1409
+ return handleCreateStyle({
1410
+ elementId: params.elementId,
1411
+ styleId: params.styleId,
1412
+ classesProp: params.classesProp,
1413
+ label: params.label,
1414
+ styles: params.styles,
1415
+ breakpoint: params.breakpoint,
1416
+ state: params.state,
1417
+ customCss: params.custom_css
1418
+ });
1419
+ case "get-styles":
1420
+ if (!params.elementId) {
1421
+ throw new Error("elementId is required for get-styles action");
1422
+ }
1423
+ return handleGetStyles(params.elementId);
1424
+ case "update-styles":
1425
+ if (!params.elementId) {
1426
+ throw new Error("elementId is required for update-styles action");
1427
+ }
1428
+ if (!params.styles) {
1429
+ throw new Error("styles is required for update-styles action");
1430
+ }
1431
+ return handleUpdateStyles({
1432
+ elementId: params.elementId,
1433
+ styleId: params.styleId,
1434
+ styles: params.styles,
1435
+ breakpoint: params.breakpoint,
1436
+ state: params.state
1437
+ });
1438
+ case "delete-style":
1439
+ if (!params.elementId) {
1440
+ throw new Error("elementId is required for delete-style action");
1441
+ }
1442
+ return handleDeleteStyle({
1443
+ elementId: params.elementId,
1444
+ styleId: params.styleId
1445
+ });
1446
+ case "delete":
1447
+ if (!params.elementId) {
1448
+ throw new Error("elementId is required for delete action");
1449
+ }
1450
+ return handleDeleteElement(params.elementId);
1451
+ case "duplicate":
1452
+ if (!params.elementId) {
1453
+ throw new Error("elementId is required for duplicate action");
1454
+ }
1455
+ return handleDuplicateElement(params.elementId);
1456
+ case "move":
1457
+ if (!params.elementId) {
1458
+ throw new Error("elementId is required for move action");
1459
+ }
1460
+ if (!params.targetContainerId) {
1461
+ throw new Error("targetContainerId is required for move action");
1462
+ }
1463
+ return handleMoveElement({
1464
+ elementId: params.elementId,
1465
+ targetContainerId: params.targetContainerId
1466
+ });
1467
+ case "select":
1468
+ if (params.elementIds && params.elementIds.length > 0) {
1469
+ return handleSelectMultipleElements(params.elementIds);
1470
+ }
1471
+ if (!params.elementId) {
1472
+ throw new Error("elementId or elementIds is required for select action");
1473
+ }
1474
+ return handleSelectElement(params.elementId);
1475
+ case "deselect":
1476
+ if (!params.elementId) {
1477
+ throw new Error("elementId is required for deselect action");
1478
+ }
1479
+ return handleDeselectElement(params.elementId);
1480
+ case "deselect-all":
1481
+ return handleDeselectAllElements();
1482
+ case "get-selected":
1483
+ return handleGetSelected();
1484
+ case "list-available-types":
1485
+ return handleListAvailableTypes();
1486
+ default:
1487
+ throw new Error(`Unknown action: ${params.action}`);
1488
+ }
1489
+ } catch (error) {
1490
+ const errorMessage = error instanceof Error ? error.message : String(error);
1491
+ throw new Error(`Failed to execute action "${params.action}": ${errorMessage}`);
1492
+ }
1493
+ }
1494
+ function initElementsTool() {
1495
+ getMCPByDomain("elements").addTool({
1496
+ name: "elements",
1497
+ schema,
1498
+ description: `This tool manages individual Elementor atomic elements (v4).
1499
+
1500
+ **When to use this tool:**
1501
+
1502
+ Use this tool to create, update, delete, duplicate, move, and select individual atomic elements, as well as retrieve their schemas and current props.
1503
+
1504
+ **Available actions:**
1505
+
1506
+ - \`list-available-types\`: List all available atomic element types.
1507
+ - \`get-element-schema\`: Get the propsSchema and controls for an element type. Required before creating elements of a new type.
1508
+ - \`get-element-props\`: Get the current prop values for an existing element.
1509
+ - \`create-element\`: Create a new atomic element with specified props and styles (Important to match props and styles by the schema, use get-element-schema to get the schema first).
1510
+ - \`update-props\`: Update props for an existing element.
1511
+ - \`create-style\`: Create a new style definition for an element.
1512
+ - \`get-styles\`: Get all style definitions for an element.
1513
+ - \`update-styles\`: Update styles for an existing element's style variant.
1514
+ - \`delete-style\`: Delete a style definition from an element.
1515
+ - \`delete\`: Delete an element.
1516
+ - \`duplicate\`: Duplicate an existing element.
1517
+ - \`move\`: Move an element to a different container.
1518
+ - \`select\`: Select one or more elements.
1519
+ - \`deselect\`: Deselect a specific element.
1520
+ - \`deselect-all\`: Deselect all selected elements.
1521
+ - \`get-selected\`: Get currently selected elements.
1522
+
1523
+ **Constraints:**
1524
+
1525
+ - Before creating an element of a certain type for the first time, you MUST call \`get-element-schema\` to retrieve its schema.
1526
+ - You can only update props for existing elements.
1527
+ - All props must match the element type's propsSchema keys.
1528
+ - Element types must be atomic (have atomic_controls and atomic_props_schema).
1529
+ - Container IDs must exist and be valid before create/move operations.
1530
+
1531
+ ** Must do with every operation **
1532
+ As of the user can ask in multiple ways the creation of the element, you need to first get the list of available types with "list-available-types" action.
1533
+ After getting it, convert to the most relevant type that the user requested and if this is not clear, request for user input.
1534
+ After finding out the proper type, get the schema for it with "get-element-schema" action.
1535
+
1536
+ ** Styles and Settings propUtils **
1537
+ Getting the schema is important as it introduces the propUtils for the styles and settings.
1538
+ You can use the propUtils to create, update, delete, and get the values of the styles and settings.
1539
+ Settings exists in the result of the get-element-schema action -> propsSchema.
1540
+ Styles exists in the result of the get-element-schema action -> stylesSchema.
1541
+
1542
+ **Examples:**
1543
+
1544
+ Get schema for heading element:
1545
+ \`\`\`json
1546
+ { "action": "get-element-schema", "elementType": "e-heading" }
1547
+ \`\`\`
1548
+
1549
+ Create a heading element:
1550
+ \`\`\`json
1551
+ { "action": "create-element", "elementType": "e-heading", "containerId": "document", "props": { "title": { $$type: "string", "value": "Hello World" } } }
1552
+ \`\`\`
1553
+
1554
+ Update element props:
1555
+ \`\`\`json
1556
+ { "action": "update-props", "elementId": "abc123", "props": { "title": "Updated Title" } }
1557
+ \`\`\`
1558
+
1559
+ Create element style:
1560
+ \`\`\`json
1561
+ { "action": "create-style", "elementId": "abc123", "styles": { "padding": "20px", "margin": "10px" } }
1562
+ \`\`\`
1563
+
1564
+ Get element styles:
1565
+ \`\`\`json
1566
+ { "action": "get-styles", "elementId": "abc123" }
1567
+ \`\`\`
1568
+
1569
+ Update element styles:
1570
+ \`\`\`json
1571
+ { "action": "update-styles", "elementId": "abc123", "styles": { "padding": "20px", "margin": "10px" } }
1572
+ \`\`\`
1573
+
1574
+ Delete element style:
1575
+ \`\`\`json
1576
+ { "action": "delete-style", "elementId": "abc123", "styleId": "style-id-123" }
1577
+ \`\`\``,
1578
+ handler: async (params) => {
1579
+ return routeAction(params);
1580
+ }
1581
+ });
1582
+ }
1583
+
1584
+ // src/mcp/index.ts
1585
+ function initMcp() {
1586
+ const { setMCPDescription } = getMCPByDomain2("elements");
1587
+ setMCPDescription("Tools for managing atomic elements in Elementor v4 editor");
1588
+ initElementsTool();
1589
+ }
983
1590
  export {
984
1591
  ELEMENT_STYLE_CHANGE_EVENT,
985
1592
  createElement,
@@ -1007,6 +1614,7 @@ export {
1007
1614
  getLinkInLinkRestriction,
1008
1615
  getSelectedElements,
1009
1616
  getWidgetsCache,
1617
+ initMcp as initElementsMcp,
1010
1618
  isElementAnchored,
1011
1619
  moveElement,
1012
1620
  moveElements,