@elementor/editor-app-bar 4.3.0-950 → 4.3.0-952
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.js
CHANGED
|
@@ -1112,43 +1112,18 @@ function useDocumentSaveTemplateProps() {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
|
-
// src/extensions/documents-save/hooks/use-document-view-
|
|
1115
|
+
// src/extensions/documents-save/hooks/use-document-view-page-props.ts
|
|
1116
1116
|
var import_editor_documents7 = require("@elementor/editor-documents");
|
|
1117
1117
|
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
1118
|
+
var import_events7 = require("@elementor/events");
|
|
1118
1119
|
var import_icons12 = require("@elementor/icons");
|
|
1119
1120
|
var import_i18n14 = require("@wordpress/i18n");
|
|
1120
|
-
function useDocumentViewAsMarkdownProps() {
|
|
1121
|
-
const document2 = (0, import_editor_documents7.__useActiveDocument)();
|
|
1122
|
-
return {
|
|
1123
|
-
icon: import_icons12.EyeIcon,
|
|
1124
|
-
title: (0, import_i18n14.__)("View as Markdown", "elementor"),
|
|
1125
|
-
onClick: async () => {
|
|
1126
|
-
const baseUrl = document2?.links?.wpPreview || document2?.links?.permalink;
|
|
1127
|
-
if (!baseUrl) {
|
|
1128
|
-
return;
|
|
1129
|
-
}
|
|
1130
|
-
if (document2?.isDirty) {
|
|
1131
|
-
await (0, import_editor_v1_adapters4.__privateRunCommand)("document/save/auto", { force: true });
|
|
1132
|
-
}
|
|
1133
|
-
const separator = baseUrl.includes("?") ? "&" : "?";
|
|
1134
|
-
const url = baseUrl + separator + "format=markdown";
|
|
1135
|
-
window.open(url, "_blank");
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
// src/extensions/documents-save/hooks/use-document-view-page-props.ts
|
|
1141
|
-
var import_editor_documents8 = require("@elementor/editor-documents");
|
|
1142
|
-
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
1143
|
-
var import_events7 = require("@elementor/events");
|
|
1144
|
-
var import_icons13 = require("@elementor/icons");
|
|
1145
|
-
var import_i18n15 = require("@wordpress/i18n");
|
|
1146
1121
|
function useDocumentViewPageProps() {
|
|
1147
|
-
const document2 = (0,
|
|
1122
|
+
const document2 = (0, import_editor_documents7.__useActiveDocument)();
|
|
1148
1123
|
const { dispatchEvent: dispatchEvent2, config } = (0, import_events7.useMixpanel)();
|
|
1149
1124
|
return {
|
|
1150
|
-
icon:
|
|
1151
|
-
title: (0,
|
|
1125
|
+
icon: import_icons12.EyeIcon,
|
|
1126
|
+
title: (0, import_i18n14.__)("View Page", "elementor"),
|
|
1152
1127
|
onClick: () => {
|
|
1153
1128
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
1154
1129
|
if (eventName) {
|
|
@@ -1165,7 +1140,7 @@ function useDocumentViewPageProps() {
|
|
|
1165
1140
|
});
|
|
1166
1141
|
}
|
|
1167
1142
|
if (document2?.id) {
|
|
1168
|
-
(0,
|
|
1143
|
+
(0, import_editor_v1_adapters4.__privateRunCommand)("editor/documents/view", {
|
|
1169
1144
|
id: document2.id
|
|
1170
1145
|
});
|
|
1171
1146
|
}
|
|
@@ -1201,30 +1176,25 @@ function init4() {
|
|
|
1201
1176
|
priority: 50,
|
|
1202
1177
|
useProps: useDocumentViewPageProps
|
|
1203
1178
|
});
|
|
1204
|
-
documentOptionsMenu.registerAction({
|
|
1205
|
-
id: "document-view-as-markdown",
|
|
1206
|
-
priority: 60,
|
|
1207
|
-
useProps: useDocumentViewAsMarkdownProps
|
|
1208
|
-
});
|
|
1209
1179
|
}
|
|
1210
1180
|
|
|
1211
1181
|
// src/extensions/documents-settings/hooks/use-action-props.ts
|
|
1212
|
-
var
|
|
1213
|
-
var
|
|
1214
|
-
var
|
|
1215
|
-
var
|
|
1182
|
+
var import_editor_documents8 = require("@elementor/editor-documents");
|
|
1183
|
+
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
1184
|
+
var import_icons13 = require("@elementor/icons");
|
|
1185
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
1216
1186
|
function useActionProps3() {
|
|
1217
|
-
const activeDocument = (0,
|
|
1218
|
-
const hostDocument = (0,
|
|
1219
|
-
const { isActive, isBlocked } = (0,
|
|
1187
|
+
const activeDocument = (0, import_editor_documents8.__useActiveDocument)();
|
|
1188
|
+
const hostDocument = (0, import_editor_documents8.__useHostDocument)();
|
|
1189
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters5.__privateUseRouteStatus)("panel/page-settings");
|
|
1220
1190
|
const document2 = activeDocument && activeDocument.type.value !== "kit" ? activeDocument : hostDocument;
|
|
1221
1191
|
const ButtonTitle = document2 ? (
|
|
1222
1192
|
/* translators: %s: Post type label. */
|
|
1223
|
-
(0,
|
|
1224
|
-
) : (0,
|
|
1193
|
+
(0, import_i18n15.__)("%s Settings", "elementor").replace("%s", document2.type.label)
|
|
1194
|
+
) : (0, import_i18n15.__)("Document Settings", "elementor");
|
|
1225
1195
|
return {
|
|
1226
1196
|
title: ButtonTitle,
|
|
1227
|
-
icon:
|
|
1197
|
+
icon: import_icons13.FileSettingsIcon,
|
|
1228
1198
|
onClick: () => {
|
|
1229
1199
|
if (!document2) {
|
|
1230
1200
|
return;
|
|
@@ -1239,7 +1209,7 @@ function useActionProps3() {
|
|
|
1239
1209
|
element: config.elements.buttonIcon
|
|
1240
1210
|
});
|
|
1241
1211
|
}
|
|
1242
|
-
(0,
|
|
1212
|
+
(0, import_editor_v1_adapters5.__privateOpenRoute)("panel/page-settings/settings");
|
|
1243
1213
|
},
|
|
1244
1214
|
selected: isActive,
|
|
1245
1215
|
disabled: isBlocked || !document2
|
|
@@ -1256,14 +1226,14 @@ function init5() {
|
|
|
1256
1226
|
}
|
|
1257
1227
|
|
|
1258
1228
|
// src/extensions/elements/hooks/use-action-props.ts
|
|
1259
|
-
var
|
|
1260
|
-
var
|
|
1261
|
-
var
|
|
1229
|
+
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
1230
|
+
var import_icons14 = require("@elementor/icons");
|
|
1231
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
1262
1232
|
function useActionProps4() {
|
|
1263
|
-
const { isActive, isBlocked } = (0,
|
|
1233
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters6.__privateUseRouteStatus)("panel/elements");
|
|
1264
1234
|
return {
|
|
1265
|
-
title: (0,
|
|
1266
|
-
icon:
|
|
1235
|
+
title: (0, import_i18n16.__)("Add Element", "elementor"),
|
|
1236
|
+
icon: import_icons14.PlusIcon,
|
|
1267
1237
|
onClick: () => {
|
|
1268
1238
|
const extendedWindow = window;
|
|
1269
1239
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1275,7 +1245,7 @@ function useActionProps4() {
|
|
|
1275
1245
|
element: config.elements.buttonIcon
|
|
1276
1246
|
});
|
|
1277
1247
|
}
|
|
1278
|
-
(0,
|
|
1248
|
+
(0, import_editor_v1_adapters6.__privateOpenRoute)("panel/elements/categories");
|
|
1279
1249
|
},
|
|
1280
1250
|
selected: isActive,
|
|
1281
1251
|
disabled: isBlocked
|
|
@@ -1283,17 +1253,17 @@ function useActionProps4() {
|
|
|
1283
1253
|
}
|
|
1284
1254
|
|
|
1285
1255
|
// src/extensions/elements/sync/sync-panel-title.ts
|
|
1286
|
-
var
|
|
1287
|
-
var
|
|
1256
|
+
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
1257
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
1288
1258
|
function syncPanelTitle() {
|
|
1289
|
-
const panelTitle = (0,
|
|
1290
|
-
const tabTitle = (0,
|
|
1291
|
-
(0,
|
|
1259
|
+
const panelTitle = (0, import_i18n17.__)("Elements", "elementor");
|
|
1260
|
+
const tabTitle = (0, import_i18n17.__)("Widgets", "elementor");
|
|
1261
|
+
(0, import_editor_v1_adapters7.__privateListenTo)((0, import_editor_v1_adapters7.routeOpenEvent)("panel/elements"), () => {
|
|
1292
1262
|
setPanelTitle(panelTitle);
|
|
1293
1263
|
setTabTitle(tabTitle);
|
|
1294
1264
|
});
|
|
1295
|
-
(0,
|
|
1296
|
-
if ((0,
|
|
1265
|
+
(0, import_editor_v1_adapters7.__privateListenTo)((0, import_editor_v1_adapters7.v1ReadyEvent)(), () => {
|
|
1266
|
+
if ((0, import_editor_v1_adapters7.__privateIsRouteActive)("panel/elements")) {
|
|
1297
1267
|
setPanelTitle(panelTitle);
|
|
1298
1268
|
setTabTitle(tabTitle);
|
|
1299
1269
|
}
|
|
@@ -1320,11 +1290,11 @@ function init6() {
|
|
|
1320
1290
|
}
|
|
1321
1291
|
|
|
1322
1292
|
// src/extensions/feedback/index.ts
|
|
1323
|
-
var
|
|
1324
|
-
var
|
|
1325
|
-
var
|
|
1293
|
+
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
1294
|
+
var import_icons15 = require("@elementor/icons");
|
|
1295
|
+
var import_i18n18 = require("@wordpress/i18n");
|
|
1326
1296
|
function init7() {
|
|
1327
|
-
const isActive = (0,
|
|
1297
|
+
const isActive = (0, import_editor_v1_adapters8.isExperimentActive)(EXPERIMENT_NAME);
|
|
1328
1298
|
if (!isActive) {
|
|
1329
1299
|
return;
|
|
1330
1300
|
}
|
|
@@ -1334,8 +1304,8 @@ function init7() {
|
|
|
1334
1304
|
priority: 20,
|
|
1335
1305
|
useProps: () => {
|
|
1336
1306
|
return {
|
|
1337
|
-
icon:
|
|
1338
|
-
title: (0,
|
|
1307
|
+
icon: import_icons15.MessageLinesIcon,
|
|
1308
|
+
title: (0, import_i18n18.__)("Send Feedback", "elementor"),
|
|
1339
1309
|
onClick: () => {
|
|
1340
1310
|
dispatchEvent(new CustomEvent(FEEDBACK_TOGGLE_EVENT));
|
|
1341
1311
|
}
|
|
@@ -1345,13 +1315,13 @@ function init7() {
|
|
|
1345
1315
|
}
|
|
1346
1316
|
|
|
1347
1317
|
// src/extensions/finder/hooks/use-action-props.ts
|
|
1348
|
-
var
|
|
1349
|
-
var
|
|
1350
|
-
var
|
|
1318
|
+
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
1319
|
+
var import_icons16 = require("@elementor/icons");
|
|
1320
|
+
var import_i18n19 = require("@wordpress/i18n");
|
|
1351
1321
|
function useActionProps5() {
|
|
1352
1322
|
return {
|
|
1353
|
-
title: (0,
|
|
1354
|
-
icon:
|
|
1323
|
+
title: (0, import_i18n19.__)("Finder", "elementor"),
|
|
1324
|
+
icon: import_icons16.SearchIcon,
|
|
1355
1325
|
onClick: () => {
|
|
1356
1326
|
const extendedWindow = window;
|
|
1357
1327
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1363,7 +1333,7 @@ function useActionProps5() {
|
|
|
1363
1333
|
element: config.elements.buttonIcon
|
|
1364
1334
|
});
|
|
1365
1335
|
}
|
|
1366
|
-
(0,
|
|
1336
|
+
(0, import_editor_v1_adapters9.__privateRunCommand)("finder/toggle");
|
|
1367
1337
|
}
|
|
1368
1338
|
};
|
|
1369
1339
|
}
|
|
@@ -1378,13 +1348,13 @@ function init8() {
|
|
|
1378
1348
|
}
|
|
1379
1349
|
|
|
1380
1350
|
// src/extensions/help/hooks/use-action-props.ts
|
|
1381
|
-
var
|
|
1382
|
-
var
|
|
1351
|
+
var import_icons17 = require("@elementor/icons");
|
|
1352
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
1383
1353
|
function useActionProps6() {
|
|
1384
1354
|
return {
|
|
1385
|
-
title: (0,
|
|
1355
|
+
title: (0, import_i18n20.__)("Help Center", "elementor"),
|
|
1386
1356
|
href: "https://go.elementor.com/editor-top-bar-learn/",
|
|
1387
|
-
icon:
|
|
1357
|
+
icon: import_icons17.HelpIcon,
|
|
1388
1358
|
target: "_blank",
|
|
1389
1359
|
onClick: () => {
|
|
1390
1360
|
const extendedWindow = window;
|
|
@@ -1412,14 +1382,14 @@ function init9() {
|
|
|
1412
1382
|
}
|
|
1413
1383
|
|
|
1414
1384
|
// src/extensions/history/hooks/use-action-props.ts
|
|
1415
|
-
var
|
|
1416
|
-
var
|
|
1417
|
-
var
|
|
1385
|
+
var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
|
|
1386
|
+
var import_icons18 = require("@elementor/icons");
|
|
1387
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
1418
1388
|
function useActionProps7() {
|
|
1419
|
-
const { isActive, isBlocked } = (0,
|
|
1389
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters10.__privateUseRouteStatus)("panel/history");
|
|
1420
1390
|
return {
|
|
1421
|
-
title: (0,
|
|
1422
|
-
icon:
|
|
1391
|
+
title: (0, import_i18n21.__)("History", "elementor"),
|
|
1392
|
+
icon: import_icons18.HistoryIcon,
|
|
1423
1393
|
onClick: () => {
|
|
1424
1394
|
const extendedWindow = window;
|
|
1425
1395
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1431,7 +1401,7 @@ function useActionProps7() {
|
|
|
1431
1401
|
element: config.elements.link
|
|
1432
1402
|
});
|
|
1433
1403
|
}
|
|
1434
|
-
(0,
|
|
1404
|
+
(0, import_editor_v1_adapters10.__privateOpenRoute)("panel/history/actions");
|
|
1435
1405
|
},
|
|
1436
1406
|
selected: isActive,
|
|
1437
1407
|
disabled: isBlocked
|
|
@@ -1448,13 +1418,13 @@ function init10() {
|
|
|
1448
1418
|
}
|
|
1449
1419
|
|
|
1450
1420
|
// src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
|
|
1451
|
-
var
|
|
1452
|
-
var
|
|
1453
|
-
var
|
|
1421
|
+
var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
|
|
1422
|
+
var import_icons19 = require("@elementor/icons");
|
|
1423
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
1454
1424
|
function useActionProps8() {
|
|
1455
1425
|
return {
|
|
1456
|
-
icon:
|
|
1457
|
-
title: (0,
|
|
1426
|
+
icon: import_icons19.KeyboardIcon,
|
|
1427
|
+
title: (0, import_i18n22.__)("Keyboard Shortcuts", "elementor"),
|
|
1458
1428
|
onClick: () => {
|
|
1459
1429
|
const extendedWindow = window;
|
|
1460
1430
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1466,7 +1436,7 @@ function useActionProps8() {
|
|
|
1466
1436
|
element: config.elements.link
|
|
1467
1437
|
});
|
|
1468
1438
|
}
|
|
1469
|
-
(0,
|
|
1439
|
+
(0, import_editor_v1_adapters11.__privateRunCommand)("shortcuts/open");
|
|
1470
1440
|
}
|
|
1471
1441
|
};
|
|
1472
1442
|
}
|
|
@@ -1484,9 +1454,9 @@ function init11() {
|
|
|
1484
1454
|
// src/extensions/responsive/components/breakpoints-switcher.tsx
|
|
1485
1455
|
var React25 = __toESM(require("react"));
|
|
1486
1456
|
var import_editor_responsive = require("@elementor/editor-responsive");
|
|
1487
|
-
var
|
|
1457
|
+
var import_icons20 = require("@elementor/icons");
|
|
1488
1458
|
var import_ui16 = require("@elementor/ui");
|
|
1489
|
-
var
|
|
1459
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
1490
1460
|
function BreakpointsSwitcher() {
|
|
1491
1461
|
const breakpoints = (0, import_editor_responsive.useBreakpoints)();
|
|
1492
1462
|
const activeBreakpoint = (0, import_editor_responsive.useActiveBreakpoint)();
|
|
@@ -1515,7 +1485,7 @@ function BreakpointsSwitcher() {
|
|
|
1515
1485
|
indicatorColor: "secondary",
|
|
1516
1486
|
value: activeBreakpoint,
|
|
1517
1487
|
onChange,
|
|
1518
|
-
"aria-label": (0,
|
|
1488
|
+
"aria-label": (0, import_i18n23.__)("Switch Device", "elementor"),
|
|
1519
1489
|
sx: {
|
|
1520
1490
|
"& .MuiTabs-indicator": {
|
|
1521
1491
|
backgroundColor: "text.primary"
|
|
@@ -1555,20 +1525,20 @@ function Tooltip4(props) {
|
|
|
1555
1525
|
);
|
|
1556
1526
|
}
|
|
1557
1527
|
var iconsMap = {
|
|
1558
|
-
widescreen:
|
|
1559
|
-
desktop:
|
|
1560
|
-
laptop:
|
|
1561
|
-
tablet_extra:
|
|
1562
|
-
tablet:
|
|
1563
|
-
mobile_extra:
|
|
1564
|
-
mobile:
|
|
1528
|
+
widescreen: import_icons20.WidescreenIcon,
|
|
1529
|
+
desktop: import_icons20.DesktopIcon,
|
|
1530
|
+
laptop: import_icons20.LaptopIcon,
|
|
1531
|
+
tablet_extra: import_icons20.TabletLandscapeIcon,
|
|
1532
|
+
tablet: import_icons20.TabletPortraitIcon,
|
|
1533
|
+
mobile_extra: import_icons20.MobileLandscapeIcon,
|
|
1534
|
+
mobile: import_icons20.MobilePortraitIcon
|
|
1565
1535
|
};
|
|
1566
1536
|
var labelsMap = {
|
|
1567
1537
|
default: "%s",
|
|
1568
1538
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1569
|
-
"min-width": (0,
|
|
1539
|
+
"min-width": (0, import_i18n23.__)("%s (%dpx and up)", "elementor"),
|
|
1570
1540
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1571
|
-
"max-width": (0,
|
|
1541
|
+
"max-width": (0, import_i18n23.__)("%s (up to %dpx)", "elementor")
|
|
1572
1542
|
};
|
|
1573
1543
|
|
|
1574
1544
|
// src/extensions/responsive/index.ts
|
|
@@ -1591,11 +1561,11 @@ var React28 = __toESM(require("react"));
|
|
|
1591
1561
|
|
|
1592
1562
|
// src/extensions/site-settings/components/portal.tsx
|
|
1593
1563
|
var React26 = __toESM(require("react"));
|
|
1594
|
-
var
|
|
1564
|
+
var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
|
|
1595
1565
|
var import_ui17 = require("@elementor/ui");
|
|
1596
1566
|
function Portal(props) {
|
|
1597
|
-
const containerRef = (0,
|
|
1598
|
-
[(0,
|
|
1567
|
+
const containerRef = (0, import_editor_v1_adapters12.__privateUseListenTo)(
|
|
1568
|
+
[(0, import_editor_v1_adapters12.routeOpenEvent)("panel/global"), (0, import_editor_v1_adapters12.routeCloseEvent)("panel/global")],
|
|
1599
1569
|
getContainerRef
|
|
1600
1570
|
);
|
|
1601
1571
|
if (!containerRef.current) {
|
|
@@ -1604,17 +1574,17 @@ function Portal(props) {
|
|
|
1604
1574
|
return /* @__PURE__ */ React26.createElement(import_ui17.Portal, { container: containerRef.current, ...props });
|
|
1605
1575
|
}
|
|
1606
1576
|
function getContainerRef() {
|
|
1607
|
-
return (0,
|
|
1577
|
+
return (0, import_editor_v1_adapters12.__privateIsRouteActive)("panel/global") ? { current: document.querySelector("#elementor-panel-inner") } : { current: null };
|
|
1608
1578
|
}
|
|
1609
1579
|
|
|
1610
1580
|
// src/extensions/site-settings/components/primary-action.tsx
|
|
1611
1581
|
var React27 = __toESM(require("react"));
|
|
1612
|
-
var
|
|
1582
|
+
var import_editor_documents9 = require("@elementor/editor-documents");
|
|
1613
1583
|
var import_ui18 = require("@elementor/ui");
|
|
1614
|
-
var
|
|
1584
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
1615
1585
|
function PrimaryAction2() {
|
|
1616
|
-
const document2 = (0,
|
|
1617
|
-
const { save } = (0,
|
|
1586
|
+
const document2 = (0, import_editor_documents9.__useActiveDocument)();
|
|
1587
|
+
const { save } = (0, import_editor_documents9.__useActiveDocumentActions)();
|
|
1618
1588
|
return /* @__PURE__ */ React27.createElement(
|
|
1619
1589
|
import_ui18.Paper,
|
|
1620
1590
|
{
|
|
@@ -1634,7 +1604,7 @@ function PrimaryAction2() {
|
|
|
1634
1604
|
sx: { width: "100%" },
|
|
1635
1605
|
onClick: () => document2 && !document2.isSaving ? save() : null
|
|
1636
1606
|
},
|
|
1637
|
-
document2?.isSaving ? /* @__PURE__ */ React27.createElement(import_ui18.CircularProgress, null) : (0,
|
|
1607
|
+
document2?.isSaving ? /* @__PURE__ */ React27.createElement(import_ui18.CircularProgress, null) : (0, import_i18n24.__)("Save Changes", "elementor")
|
|
1638
1608
|
)
|
|
1639
1609
|
);
|
|
1640
1610
|
}
|
|
@@ -1645,16 +1615,16 @@ function PortalledPrimaryAction() {
|
|
|
1645
1615
|
}
|
|
1646
1616
|
|
|
1647
1617
|
// src/extensions/site-settings/hooks/use-action-props.ts
|
|
1648
|
-
var
|
|
1649
|
-
var
|
|
1650
|
-
var
|
|
1618
|
+
var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
|
|
1619
|
+
var import_icons21 = require("@elementor/icons");
|
|
1620
|
+
var import_i18n25 = require("@wordpress/i18n");
|
|
1651
1621
|
function useActionProps9() {
|
|
1652
|
-
const { isActive, isBlocked } = (0,
|
|
1622
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters13.__privateUseRouteStatus)("panel/global", {
|
|
1653
1623
|
blockOnKitRoutes: false
|
|
1654
1624
|
});
|
|
1655
1625
|
return {
|
|
1656
|
-
title: (0,
|
|
1657
|
-
icon:
|
|
1626
|
+
title: (0, import_i18n25.__)("Site Settings", "elementor"),
|
|
1627
|
+
icon: import_icons21.SettingsIcon,
|
|
1658
1628
|
onClick: () => {
|
|
1659
1629
|
const extendedWindow = window;
|
|
1660
1630
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1667,9 +1637,9 @@ function useActionProps9() {
|
|
|
1667
1637
|
});
|
|
1668
1638
|
}
|
|
1669
1639
|
if (isActive) {
|
|
1670
|
-
(0,
|
|
1640
|
+
(0, import_editor_v1_adapters13.__privateRunCommand)("panel/global/close");
|
|
1671
1641
|
} else {
|
|
1672
|
-
(0,
|
|
1642
|
+
(0, import_editor_v1_adapters13.__privateRunCommand)("panel/global/open");
|
|
1673
1643
|
}
|
|
1674
1644
|
},
|
|
1675
1645
|
selected: isActive,
|
|
@@ -1692,14 +1662,14 @@ function init13() {
|
|
|
1692
1662
|
}
|
|
1693
1663
|
|
|
1694
1664
|
// src/extensions/structure/hooks/use-action-props.ts
|
|
1695
|
-
var
|
|
1696
|
-
var
|
|
1697
|
-
var
|
|
1665
|
+
var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
|
|
1666
|
+
var import_icons22 = require("@elementor/icons");
|
|
1667
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
1698
1668
|
function useActionProps10() {
|
|
1699
|
-
const { isActive, isBlocked } = (0,
|
|
1669
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters14.__privateUseRouteStatus)("navigator");
|
|
1700
1670
|
return {
|
|
1701
|
-
title: (0,
|
|
1702
|
-
icon:
|
|
1671
|
+
title: (0, import_i18n26.__)("Structure", "elementor"),
|
|
1672
|
+
icon: import_icons22.StructureIcon,
|
|
1703
1673
|
onClick: () => {
|
|
1704
1674
|
const extendedWindow = window;
|
|
1705
1675
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1711,7 +1681,7 @@ function useActionProps10() {
|
|
|
1711
1681
|
element: config.elements.buttonIcon
|
|
1712
1682
|
});
|
|
1713
1683
|
}
|
|
1714
|
-
(0,
|
|
1684
|
+
(0, import_editor_v1_adapters14.__privateRunCommand)("navigator/toggle");
|
|
1715
1685
|
},
|
|
1716
1686
|
selected: isActive,
|
|
1717
1687
|
disabled: isBlocked
|
|
@@ -1728,13 +1698,13 @@ function init14() {
|
|
|
1728
1698
|
}
|
|
1729
1699
|
|
|
1730
1700
|
// src/extensions/theme-builder/hooks/use-action-props.ts
|
|
1731
|
-
var
|
|
1732
|
-
var
|
|
1733
|
-
var
|
|
1701
|
+
var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
|
|
1702
|
+
var import_icons23 = require("@elementor/icons");
|
|
1703
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
1734
1704
|
function useActionProps11() {
|
|
1735
1705
|
return {
|
|
1736
|
-
icon:
|
|
1737
|
-
title: (0,
|
|
1706
|
+
icon: import_icons23.ThemeBuilderIcon,
|
|
1707
|
+
title: (0, import_i18n27.__)("Theme Builder", "elementor"),
|
|
1738
1708
|
onClick: () => {
|
|
1739
1709
|
const extendedWindow = window;
|
|
1740
1710
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1746,7 +1716,7 @@ function useActionProps11() {
|
|
|
1746
1716
|
element: config.elements.link
|
|
1747
1717
|
});
|
|
1748
1718
|
}
|
|
1749
|
-
(0,
|
|
1719
|
+
(0, import_editor_v1_adapters15.__privateRunCommand)("app/open");
|
|
1750
1720
|
}
|
|
1751
1721
|
};
|
|
1752
1722
|
}
|
|
@@ -1762,14 +1732,14 @@ function init15() {
|
|
|
1762
1732
|
}
|
|
1763
1733
|
|
|
1764
1734
|
// src/extensions/user-preferences/hooks/use-action-props.ts
|
|
1765
|
-
var
|
|
1766
|
-
var
|
|
1767
|
-
var
|
|
1735
|
+
var import_editor_v1_adapters16 = require("@elementor/editor-v1-adapters");
|
|
1736
|
+
var import_icons24 = require("@elementor/icons");
|
|
1737
|
+
var import_i18n28 = require("@wordpress/i18n");
|
|
1768
1738
|
function useActionProps12() {
|
|
1769
|
-
const { isActive, isBlocked } = (0,
|
|
1739
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters16.__privateUseRouteStatus)("panel/editor-preferences");
|
|
1770
1740
|
return {
|
|
1771
|
-
icon:
|
|
1772
|
-
title: (0,
|
|
1741
|
+
icon: import_icons24.ToggleRightIcon,
|
|
1742
|
+
title: (0, import_i18n28.__)("User Preferences", "elementor"),
|
|
1773
1743
|
onClick: () => {
|
|
1774
1744
|
const extendedWindow = window;
|
|
1775
1745
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1781,7 +1751,7 @@ function useActionProps12() {
|
|
|
1781
1751
|
element: config.elements.link
|
|
1782
1752
|
});
|
|
1783
1753
|
}
|
|
1784
|
-
(0,
|
|
1754
|
+
(0, import_editor_v1_adapters16.__privateOpenRoute)("panel/editor-preferences");
|
|
1785
1755
|
},
|
|
1786
1756
|
selected: isActive,
|
|
1787
1757
|
disabled: isBlocked
|
|
@@ -1799,20 +1769,20 @@ function init16() {
|
|
|
1799
1769
|
}
|
|
1800
1770
|
|
|
1801
1771
|
// src/extensions/wordpress/index.ts
|
|
1802
|
-
var
|
|
1803
|
-
var
|
|
1804
|
-
var
|
|
1772
|
+
var import_editor_documents10 = require("@elementor/editor-documents");
|
|
1773
|
+
var import_icons25 = require("@elementor/icons");
|
|
1774
|
+
var import_i18n29 = require("@wordpress/i18n");
|
|
1805
1775
|
function init17() {
|
|
1806
1776
|
mainMenu.registerLink({
|
|
1807
1777
|
id: "exit-to-wordpress",
|
|
1808
1778
|
group: "exits",
|
|
1809
1779
|
priority: 20,
|
|
1810
1780
|
useProps: () => {
|
|
1811
|
-
const document2 = (0,
|
|
1781
|
+
const document2 = (0, import_editor_documents10.__useActiveDocument)();
|
|
1812
1782
|
return {
|
|
1813
|
-
title: (0,
|
|
1783
|
+
title: (0, import_i18n29.__)("Exit to WordPress", "elementor"),
|
|
1814
1784
|
href: document2?.links?.platformEdit,
|
|
1815
|
-
icon:
|
|
1785
|
+
icon: import_icons25.WordpressIcon,
|
|
1816
1786
|
onClick: () => {
|
|
1817
1787
|
const extendedWindow = window;
|
|
1818
1788
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1855,10 +1825,10 @@ function init18() {
|
|
|
1855
1825
|
}
|
|
1856
1826
|
|
|
1857
1827
|
// src/sync/redirect-old-menus.ts
|
|
1858
|
-
var
|
|
1828
|
+
var import_editor_v1_adapters17 = require("@elementor/editor-v1-adapters");
|
|
1859
1829
|
function redirectOldMenus() {
|
|
1860
|
-
(0,
|
|
1861
|
-
(0,
|
|
1830
|
+
(0, import_editor_v1_adapters17.__privateListenTo)((0, import_editor_v1_adapters17.routeOpenEvent)("panel/menu"), () => {
|
|
1831
|
+
(0, import_editor_v1_adapters17.__privateOpenRoute)("panel/elements/categories");
|
|
1862
1832
|
});
|
|
1863
1833
|
}
|
|
1864
1834
|
|