@elementor/editor-app-bar 4.1.0-825 → 4.1.0-827
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
|
@@ -944,18 +944,43 @@ function useDocumentSaveTemplateProps() {
|
|
|
944
944
|
};
|
|
945
945
|
}
|
|
946
946
|
|
|
947
|
-
// src/extensions/documents-save/hooks/use-document-view-
|
|
947
|
+
// src/extensions/documents-save/hooks/use-document-view-as-markdown-props.ts
|
|
948
948
|
var import_editor_documents7 = require("@elementor/editor-documents");
|
|
949
949
|
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
950
|
-
var import_events5 = require("@elementor/events");
|
|
951
950
|
var import_icons11 = require("@elementor/icons");
|
|
952
951
|
var import_i18n11 = require("@wordpress/i18n");
|
|
953
|
-
function
|
|
952
|
+
function useDocumentViewAsMarkdownProps() {
|
|
954
953
|
const document2 = (0, import_editor_documents7.__useActiveDocument)();
|
|
955
|
-
const { dispatchEvent: dispatchEvent2, config } = (0, import_events5.useMixpanel)();
|
|
956
954
|
return {
|
|
957
955
|
icon: import_icons11.EyeIcon,
|
|
958
|
-
title: (0, import_i18n11.__)("View
|
|
956
|
+
title: (0, import_i18n11.__)("View as Markdown", "elementor"),
|
|
957
|
+
onClick: async () => {
|
|
958
|
+
const baseUrl = document2?.links?.wpPreview || document2?.links?.permalink;
|
|
959
|
+
if (!baseUrl) {
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
if (document2?.isDirty) {
|
|
963
|
+
await (0, import_editor_v1_adapters4.__privateRunCommand)("document/save/auto", { force: true });
|
|
964
|
+
}
|
|
965
|
+
const separator = baseUrl.includes("?") ? "&" : "?";
|
|
966
|
+
const url = baseUrl + separator + "format=markdown";
|
|
967
|
+
window.open(url, "_blank");
|
|
968
|
+
}
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
// src/extensions/documents-save/hooks/use-document-view-page-props.ts
|
|
973
|
+
var import_editor_documents8 = require("@elementor/editor-documents");
|
|
974
|
+
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
975
|
+
var import_events5 = require("@elementor/events");
|
|
976
|
+
var import_icons12 = require("@elementor/icons");
|
|
977
|
+
var import_i18n12 = require("@wordpress/i18n");
|
|
978
|
+
function useDocumentViewPageProps() {
|
|
979
|
+
const document2 = (0, import_editor_documents8.__useActiveDocument)();
|
|
980
|
+
const { dispatchEvent: dispatchEvent2, config } = (0, import_events5.useMixpanel)();
|
|
981
|
+
return {
|
|
982
|
+
icon: import_icons12.EyeIcon,
|
|
983
|
+
title: (0, import_i18n12.__)("View Page", "elementor"),
|
|
959
984
|
onClick: () => {
|
|
960
985
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
961
986
|
if (eventName) {
|
|
@@ -972,7 +997,7 @@ function useDocumentViewPageProps() {
|
|
|
972
997
|
});
|
|
973
998
|
}
|
|
974
999
|
if (document2?.id) {
|
|
975
|
-
(0,
|
|
1000
|
+
(0, import_editor_v1_adapters5.__privateRunCommand)("editor/documents/view", {
|
|
976
1001
|
id: document2.id
|
|
977
1002
|
});
|
|
978
1003
|
}
|
|
@@ -1008,25 +1033,30 @@ function init3() {
|
|
|
1008
1033
|
priority: 50,
|
|
1009
1034
|
useProps: useDocumentViewPageProps
|
|
1010
1035
|
});
|
|
1036
|
+
documentOptionsMenu.registerAction({
|
|
1037
|
+
id: "document-view-as-markdown",
|
|
1038
|
+
priority: 60,
|
|
1039
|
+
useProps: useDocumentViewAsMarkdownProps
|
|
1040
|
+
});
|
|
1011
1041
|
}
|
|
1012
1042
|
|
|
1013
1043
|
// src/extensions/documents-settings/hooks/use-action-props.ts
|
|
1014
|
-
var
|
|
1015
|
-
var
|
|
1016
|
-
var
|
|
1017
|
-
var
|
|
1044
|
+
var import_editor_documents9 = require("@elementor/editor-documents");
|
|
1045
|
+
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
1046
|
+
var import_icons13 = require("@elementor/icons");
|
|
1047
|
+
var import_i18n13 = require("@wordpress/i18n");
|
|
1018
1048
|
function useActionProps2() {
|
|
1019
|
-
const activeDocument = (0,
|
|
1020
|
-
const hostDocument = (0,
|
|
1021
|
-
const { isActive, isBlocked } = (0,
|
|
1049
|
+
const activeDocument = (0, import_editor_documents9.__useActiveDocument)();
|
|
1050
|
+
const hostDocument = (0, import_editor_documents9.__useHostDocument)();
|
|
1051
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters6.__privateUseRouteStatus)("panel/page-settings");
|
|
1022
1052
|
const document2 = activeDocument && activeDocument.type.value !== "kit" ? activeDocument : hostDocument;
|
|
1023
1053
|
const ButtonTitle = document2 ? (
|
|
1024
1054
|
/* translators: %s: Post type label. */
|
|
1025
|
-
(0,
|
|
1026
|
-
) : (0,
|
|
1055
|
+
(0, import_i18n13.__)("%s Settings", "elementor").replace("%s", document2.type.label)
|
|
1056
|
+
) : (0, import_i18n13.__)("Document Settings", "elementor");
|
|
1027
1057
|
return {
|
|
1028
1058
|
title: ButtonTitle,
|
|
1029
|
-
icon:
|
|
1059
|
+
icon: import_icons13.FileSettingsIcon,
|
|
1030
1060
|
onClick: () => {
|
|
1031
1061
|
if (!document2) {
|
|
1032
1062
|
return;
|
|
@@ -1041,7 +1071,7 @@ function useActionProps2() {
|
|
|
1041
1071
|
element: config.elements.buttonIcon
|
|
1042
1072
|
});
|
|
1043
1073
|
}
|
|
1044
|
-
(0,
|
|
1074
|
+
(0, import_editor_v1_adapters6.__privateOpenRoute)("panel/page-settings/settings");
|
|
1045
1075
|
},
|
|
1046
1076
|
selected: isActive,
|
|
1047
1077
|
disabled: isBlocked || !document2
|
|
@@ -1058,14 +1088,14 @@ function init4() {
|
|
|
1058
1088
|
}
|
|
1059
1089
|
|
|
1060
1090
|
// src/extensions/elements/hooks/use-action-props.ts
|
|
1061
|
-
var
|
|
1062
|
-
var
|
|
1063
|
-
var
|
|
1091
|
+
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
1092
|
+
var import_icons14 = require("@elementor/icons");
|
|
1093
|
+
var import_i18n14 = require("@wordpress/i18n");
|
|
1064
1094
|
function useActionProps3() {
|
|
1065
|
-
const { isActive, isBlocked } = (0,
|
|
1095
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters7.__privateUseRouteStatus)("panel/elements");
|
|
1066
1096
|
return {
|
|
1067
|
-
title: (0,
|
|
1068
|
-
icon:
|
|
1097
|
+
title: (0, import_i18n14.__)("Add Element", "elementor"),
|
|
1098
|
+
icon: import_icons14.PlusIcon,
|
|
1069
1099
|
onClick: () => {
|
|
1070
1100
|
const extendedWindow = window;
|
|
1071
1101
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1077,7 +1107,7 @@ function useActionProps3() {
|
|
|
1077
1107
|
element: config.elements.buttonIcon
|
|
1078
1108
|
});
|
|
1079
1109
|
}
|
|
1080
|
-
(0,
|
|
1110
|
+
(0, import_editor_v1_adapters7.__privateOpenRoute)("panel/elements/categories");
|
|
1081
1111
|
},
|
|
1082
1112
|
selected: isActive,
|
|
1083
1113
|
disabled: isBlocked
|
|
@@ -1085,17 +1115,17 @@ function useActionProps3() {
|
|
|
1085
1115
|
}
|
|
1086
1116
|
|
|
1087
1117
|
// src/extensions/elements/sync/sync-panel-title.ts
|
|
1088
|
-
var
|
|
1089
|
-
var
|
|
1118
|
+
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
1119
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
1090
1120
|
function syncPanelTitle() {
|
|
1091
|
-
const panelTitle = (0,
|
|
1092
|
-
const tabTitle = (0,
|
|
1093
|
-
(0,
|
|
1121
|
+
const panelTitle = (0, import_i18n15.__)("Elements", "elementor");
|
|
1122
|
+
const tabTitle = (0, import_i18n15.__)("Widgets", "elementor");
|
|
1123
|
+
(0, import_editor_v1_adapters8.__privateListenTo)((0, import_editor_v1_adapters8.routeOpenEvent)("panel/elements"), () => {
|
|
1094
1124
|
setPanelTitle(panelTitle);
|
|
1095
1125
|
setTabTitle(tabTitle);
|
|
1096
1126
|
});
|
|
1097
|
-
(0,
|
|
1098
|
-
if ((0,
|
|
1127
|
+
(0, import_editor_v1_adapters8.__privateListenTo)((0, import_editor_v1_adapters8.v1ReadyEvent)(), () => {
|
|
1128
|
+
if ((0, import_editor_v1_adapters8.__privateIsRouteActive)("panel/elements")) {
|
|
1099
1129
|
setPanelTitle(panelTitle);
|
|
1100
1130
|
setTabTitle(tabTitle);
|
|
1101
1131
|
}
|
|
@@ -1122,11 +1152,11 @@ function init5() {
|
|
|
1122
1152
|
}
|
|
1123
1153
|
|
|
1124
1154
|
// src/extensions/feedback/index.ts
|
|
1125
|
-
var
|
|
1126
|
-
var
|
|
1127
|
-
var
|
|
1155
|
+
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
1156
|
+
var import_icons15 = require("@elementor/icons");
|
|
1157
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
1128
1158
|
function init6() {
|
|
1129
|
-
const isActive = (0,
|
|
1159
|
+
const isActive = (0, import_editor_v1_adapters9.isExperimentActive)(EXPERIMENT_NAME);
|
|
1130
1160
|
if (!isActive) {
|
|
1131
1161
|
return;
|
|
1132
1162
|
}
|
|
@@ -1136,8 +1166,8 @@ function init6() {
|
|
|
1136
1166
|
priority: 20,
|
|
1137
1167
|
useProps: () => {
|
|
1138
1168
|
return {
|
|
1139
|
-
icon:
|
|
1140
|
-
title: (0,
|
|
1169
|
+
icon: import_icons15.MessageLinesIcon,
|
|
1170
|
+
title: (0, import_i18n16.__)("Send Feedback", "elementor"),
|
|
1141
1171
|
onClick: () => {
|
|
1142
1172
|
dispatchEvent(new CustomEvent(FEEDBACK_TOGGLE_EVENT));
|
|
1143
1173
|
}
|
|
@@ -1147,13 +1177,13 @@ function init6() {
|
|
|
1147
1177
|
}
|
|
1148
1178
|
|
|
1149
1179
|
// src/extensions/finder/hooks/use-action-props.ts
|
|
1150
|
-
var
|
|
1151
|
-
var
|
|
1152
|
-
var
|
|
1180
|
+
var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
|
|
1181
|
+
var import_icons16 = require("@elementor/icons");
|
|
1182
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
1153
1183
|
function useActionProps4() {
|
|
1154
1184
|
return {
|
|
1155
|
-
title: (0,
|
|
1156
|
-
icon:
|
|
1185
|
+
title: (0, import_i18n17.__)("Finder", "elementor"),
|
|
1186
|
+
icon: import_icons16.SearchIcon,
|
|
1157
1187
|
onClick: () => {
|
|
1158
1188
|
const extendedWindow = window;
|
|
1159
1189
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1165,7 +1195,7 @@ function useActionProps4() {
|
|
|
1165
1195
|
element: config.elements.buttonIcon
|
|
1166
1196
|
});
|
|
1167
1197
|
}
|
|
1168
|
-
(0,
|
|
1198
|
+
(0, import_editor_v1_adapters10.__privateRunCommand)("finder/toggle");
|
|
1169
1199
|
}
|
|
1170
1200
|
};
|
|
1171
1201
|
}
|
|
@@ -1180,13 +1210,13 @@ function init7() {
|
|
|
1180
1210
|
}
|
|
1181
1211
|
|
|
1182
1212
|
// src/extensions/help/hooks/use-action-props.ts
|
|
1183
|
-
var
|
|
1184
|
-
var
|
|
1213
|
+
var import_icons17 = require("@elementor/icons");
|
|
1214
|
+
var import_i18n18 = require("@wordpress/i18n");
|
|
1185
1215
|
function useActionProps5() {
|
|
1186
1216
|
return {
|
|
1187
|
-
title: (0,
|
|
1217
|
+
title: (0, import_i18n18.__)("Help Center", "elementor"),
|
|
1188
1218
|
href: "https://go.elementor.com/editor-top-bar-learn/",
|
|
1189
|
-
icon:
|
|
1219
|
+
icon: import_icons17.HelpIcon,
|
|
1190
1220
|
target: "_blank",
|
|
1191
1221
|
onClick: () => {
|
|
1192
1222
|
const extendedWindow = window;
|
|
@@ -1214,14 +1244,14 @@ function init8() {
|
|
|
1214
1244
|
}
|
|
1215
1245
|
|
|
1216
1246
|
// src/extensions/history/hooks/use-action-props.ts
|
|
1217
|
-
var
|
|
1218
|
-
var
|
|
1219
|
-
var
|
|
1247
|
+
var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
|
|
1248
|
+
var import_icons18 = require("@elementor/icons");
|
|
1249
|
+
var import_i18n19 = require("@wordpress/i18n");
|
|
1220
1250
|
function useActionProps6() {
|
|
1221
|
-
const { isActive, isBlocked } = (0,
|
|
1251
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters11.__privateUseRouteStatus)("panel/history");
|
|
1222
1252
|
return {
|
|
1223
|
-
title: (0,
|
|
1224
|
-
icon:
|
|
1253
|
+
title: (0, import_i18n19.__)("History", "elementor"),
|
|
1254
|
+
icon: import_icons18.HistoryIcon,
|
|
1225
1255
|
onClick: () => {
|
|
1226
1256
|
const extendedWindow = window;
|
|
1227
1257
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1233,7 +1263,7 @@ function useActionProps6() {
|
|
|
1233
1263
|
element: config.elements.link
|
|
1234
1264
|
});
|
|
1235
1265
|
}
|
|
1236
|
-
(0,
|
|
1266
|
+
(0, import_editor_v1_adapters11.__privateOpenRoute)("panel/history/actions");
|
|
1237
1267
|
},
|
|
1238
1268
|
selected: isActive,
|
|
1239
1269
|
disabled: isBlocked
|
|
@@ -1250,13 +1280,13 @@ function init9() {
|
|
|
1250
1280
|
}
|
|
1251
1281
|
|
|
1252
1282
|
// src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
|
|
1253
|
-
var
|
|
1254
|
-
var
|
|
1255
|
-
var
|
|
1283
|
+
var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
|
|
1284
|
+
var import_icons19 = require("@elementor/icons");
|
|
1285
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
1256
1286
|
function useActionProps7() {
|
|
1257
1287
|
return {
|
|
1258
|
-
icon:
|
|
1259
|
-
title: (0,
|
|
1288
|
+
icon: import_icons19.KeyboardIcon,
|
|
1289
|
+
title: (0, import_i18n20.__)("Keyboard Shortcuts", "elementor"),
|
|
1260
1290
|
onClick: () => {
|
|
1261
1291
|
const extendedWindow = window;
|
|
1262
1292
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1268,7 +1298,7 @@ function useActionProps7() {
|
|
|
1268
1298
|
element: config.elements.link
|
|
1269
1299
|
});
|
|
1270
1300
|
}
|
|
1271
|
-
(0,
|
|
1301
|
+
(0, import_editor_v1_adapters12.__privateRunCommand)("shortcuts/open");
|
|
1272
1302
|
}
|
|
1273
1303
|
};
|
|
1274
1304
|
}
|
|
@@ -1286,9 +1316,9 @@ function init10() {
|
|
|
1286
1316
|
// src/extensions/responsive/components/breakpoints-switcher.tsx
|
|
1287
1317
|
var React23 = __toESM(require("react"));
|
|
1288
1318
|
var import_editor_responsive = require("@elementor/editor-responsive");
|
|
1289
|
-
var
|
|
1319
|
+
var import_icons20 = require("@elementor/icons");
|
|
1290
1320
|
var import_ui14 = require("@elementor/ui");
|
|
1291
|
-
var
|
|
1321
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
1292
1322
|
function BreakpointsSwitcher() {
|
|
1293
1323
|
const breakpoints = (0, import_editor_responsive.useBreakpoints)();
|
|
1294
1324
|
const activeBreakpoint = (0, import_editor_responsive.useActiveBreakpoint)();
|
|
@@ -1317,7 +1347,7 @@ function BreakpointsSwitcher() {
|
|
|
1317
1347
|
indicatorColor: "secondary",
|
|
1318
1348
|
value: activeBreakpoint,
|
|
1319
1349
|
onChange,
|
|
1320
|
-
"aria-label": (0,
|
|
1350
|
+
"aria-label": (0, import_i18n21.__)("Switch Device", "elementor"),
|
|
1321
1351
|
sx: {
|
|
1322
1352
|
"& .MuiTabs-indicator": {
|
|
1323
1353
|
backgroundColor: "text.primary"
|
|
@@ -1357,20 +1387,20 @@ function Tooltip4(props) {
|
|
|
1357
1387
|
);
|
|
1358
1388
|
}
|
|
1359
1389
|
var iconsMap = {
|
|
1360
|
-
widescreen:
|
|
1361
|
-
desktop:
|
|
1362
|
-
laptop:
|
|
1363
|
-
tablet_extra:
|
|
1364
|
-
tablet:
|
|
1365
|
-
mobile_extra:
|
|
1366
|
-
mobile:
|
|
1390
|
+
widescreen: import_icons20.WidescreenIcon,
|
|
1391
|
+
desktop: import_icons20.DesktopIcon,
|
|
1392
|
+
laptop: import_icons20.LaptopIcon,
|
|
1393
|
+
tablet_extra: import_icons20.TabletLandscapeIcon,
|
|
1394
|
+
tablet: import_icons20.TabletPortraitIcon,
|
|
1395
|
+
mobile_extra: import_icons20.MobileLandscapeIcon,
|
|
1396
|
+
mobile: import_icons20.MobilePortraitIcon
|
|
1367
1397
|
};
|
|
1368
1398
|
var labelsMap = {
|
|
1369
1399
|
default: "%s",
|
|
1370
1400
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1371
|
-
"min-width": (0,
|
|
1401
|
+
"min-width": (0, import_i18n21.__)("%s (%dpx and up)", "elementor"),
|
|
1372
1402
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1373
|
-
"max-width": (0,
|
|
1403
|
+
"max-width": (0, import_i18n21.__)("%s (up to %dpx)", "elementor")
|
|
1374
1404
|
};
|
|
1375
1405
|
|
|
1376
1406
|
// src/extensions/responsive/index.ts
|
|
@@ -1393,11 +1423,11 @@ var React26 = __toESM(require("react"));
|
|
|
1393
1423
|
|
|
1394
1424
|
// src/extensions/site-settings/components/portal.tsx
|
|
1395
1425
|
var React24 = __toESM(require("react"));
|
|
1396
|
-
var
|
|
1426
|
+
var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
|
|
1397
1427
|
var import_ui15 = require("@elementor/ui");
|
|
1398
1428
|
function Portal(props) {
|
|
1399
|
-
const containerRef = (0,
|
|
1400
|
-
[(0,
|
|
1429
|
+
const containerRef = (0, import_editor_v1_adapters13.__privateUseListenTo)(
|
|
1430
|
+
[(0, import_editor_v1_adapters13.routeOpenEvent)("panel/global"), (0, import_editor_v1_adapters13.routeCloseEvent)("panel/global")],
|
|
1401
1431
|
getContainerRef
|
|
1402
1432
|
);
|
|
1403
1433
|
if (!containerRef.current) {
|
|
@@ -1406,17 +1436,17 @@ function Portal(props) {
|
|
|
1406
1436
|
return /* @__PURE__ */ React24.createElement(import_ui15.Portal, { container: containerRef.current, ...props });
|
|
1407
1437
|
}
|
|
1408
1438
|
function getContainerRef() {
|
|
1409
|
-
return (0,
|
|
1439
|
+
return (0, import_editor_v1_adapters13.__privateIsRouteActive)("panel/global") ? { current: document.querySelector("#elementor-panel-inner") } : { current: null };
|
|
1410
1440
|
}
|
|
1411
1441
|
|
|
1412
1442
|
// src/extensions/site-settings/components/primary-action.tsx
|
|
1413
1443
|
var React25 = __toESM(require("react"));
|
|
1414
|
-
var
|
|
1444
|
+
var import_editor_documents10 = require("@elementor/editor-documents");
|
|
1415
1445
|
var import_ui16 = require("@elementor/ui");
|
|
1416
|
-
var
|
|
1446
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
1417
1447
|
function PrimaryAction2() {
|
|
1418
|
-
const document2 = (0,
|
|
1419
|
-
const { save } = (0,
|
|
1448
|
+
const document2 = (0, import_editor_documents10.__useActiveDocument)();
|
|
1449
|
+
const { save } = (0, import_editor_documents10.__useActiveDocumentActions)();
|
|
1420
1450
|
return /* @__PURE__ */ React25.createElement(
|
|
1421
1451
|
import_ui16.Paper,
|
|
1422
1452
|
{
|
|
@@ -1436,7 +1466,7 @@ function PrimaryAction2() {
|
|
|
1436
1466
|
sx: { width: "100%" },
|
|
1437
1467
|
onClick: () => document2 && !document2.isSaving ? save() : null
|
|
1438
1468
|
},
|
|
1439
|
-
document2?.isSaving ? /* @__PURE__ */ React25.createElement(import_ui16.CircularProgress, null) : (0,
|
|
1469
|
+
document2?.isSaving ? /* @__PURE__ */ React25.createElement(import_ui16.CircularProgress, null) : (0, import_i18n22.__)("Save Changes", "elementor")
|
|
1440
1470
|
)
|
|
1441
1471
|
);
|
|
1442
1472
|
}
|
|
@@ -1447,16 +1477,16 @@ function PortalledPrimaryAction() {
|
|
|
1447
1477
|
}
|
|
1448
1478
|
|
|
1449
1479
|
// src/extensions/site-settings/hooks/use-action-props.ts
|
|
1450
|
-
var
|
|
1451
|
-
var
|
|
1452
|
-
var
|
|
1480
|
+
var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
|
|
1481
|
+
var import_icons21 = require("@elementor/icons");
|
|
1482
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
1453
1483
|
function useActionProps8() {
|
|
1454
|
-
const { isActive, isBlocked } = (0,
|
|
1484
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters14.__privateUseRouteStatus)("panel/global", {
|
|
1455
1485
|
blockOnKitRoutes: false
|
|
1456
1486
|
});
|
|
1457
1487
|
return {
|
|
1458
|
-
title: (0,
|
|
1459
|
-
icon:
|
|
1488
|
+
title: (0, import_i18n23.__)("Site Settings", "elementor"),
|
|
1489
|
+
icon: import_icons21.SettingsIcon,
|
|
1460
1490
|
onClick: () => {
|
|
1461
1491
|
const extendedWindow = window;
|
|
1462
1492
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1469,9 +1499,9 @@ function useActionProps8() {
|
|
|
1469
1499
|
});
|
|
1470
1500
|
}
|
|
1471
1501
|
if (isActive) {
|
|
1472
|
-
(0,
|
|
1502
|
+
(0, import_editor_v1_adapters14.__privateRunCommand)("panel/global/close");
|
|
1473
1503
|
} else {
|
|
1474
|
-
(0,
|
|
1504
|
+
(0, import_editor_v1_adapters14.__privateRunCommand)("panel/global/open");
|
|
1475
1505
|
}
|
|
1476
1506
|
},
|
|
1477
1507
|
selected: isActive,
|
|
@@ -1494,14 +1524,14 @@ function init12() {
|
|
|
1494
1524
|
}
|
|
1495
1525
|
|
|
1496
1526
|
// src/extensions/structure/hooks/use-action-props.ts
|
|
1497
|
-
var
|
|
1498
|
-
var
|
|
1499
|
-
var
|
|
1527
|
+
var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
|
|
1528
|
+
var import_icons22 = require("@elementor/icons");
|
|
1529
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
1500
1530
|
function useActionProps9() {
|
|
1501
|
-
const { isActive, isBlocked } = (0,
|
|
1531
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters15.__privateUseRouteStatus)("navigator");
|
|
1502
1532
|
return {
|
|
1503
|
-
title: (0,
|
|
1504
|
-
icon:
|
|
1533
|
+
title: (0, import_i18n24.__)("Structure", "elementor"),
|
|
1534
|
+
icon: import_icons22.StructureIcon,
|
|
1505
1535
|
onClick: () => {
|
|
1506
1536
|
const extendedWindow = window;
|
|
1507
1537
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1513,7 +1543,7 @@ function useActionProps9() {
|
|
|
1513
1543
|
element: config.elements.buttonIcon
|
|
1514
1544
|
});
|
|
1515
1545
|
}
|
|
1516
|
-
(0,
|
|
1546
|
+
(0, import_editor_v1_adapters15.__privateRunCommand)("navigator/toggle");
|
|
1517
1547
|
},
|
|
1518
1548
|
selected: isActive,
|
|
1519
1549
|
disabled: isBlocked
|
|
@@ -1530,13 +1560,13 @@ function init13() {
|
|
|
1530
1560
|
}
|
|
1531
1561
|
|
|
1532
1562
|
// src/extensions/theme-builder/hooks/use-action-props.ts
|
|
1533
|
-
var
|
|
1534
|
-
var
|
|
1535
|
-
var
|
|
1563
|
+
var import_editor_v1_adapters16 = require("@elementor/editor-v1-adapters");
|
|
1564
|
+
var import_icons23 = require("@elementor/icons");
|
|
1565
|
+
var import_i18n25 = require("@wordpress/i18n");
|
|
1536
1566
|
function useActionProps10() {
|
|
1537
1567
|
return {
|
|
1538
|
-
icon:
|
|
1539
|
-
title: (0,
|
|
1568
|
+
icon: import_icons23.ThemeBuilderIcon,
|
|
1569
|
+
title: (0, import_i18n25.__)("Theme Builder", "elementor"),
|
|
1540
1570
|
onClick: () => {
|
|
1541
1571
|
const extendedWindow = window;
|
|
1542
1572
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1548,7 +1578,7 @@ function useActionProps10() {
|
|
|
1548
1578
|
element: config.elements.link
|
|
1549
1579
|
});
|
|
1550
1580
|
}
|
|
1551
|
-
(0,
|
|
1581
|
+
(0, import_editor_v1_adapters16.__privateRunCommand)("app/open");
|
|
1552
1582
|
}
|
|
1553
1583
|
};
|
|
1554
1584
|
}
|
|
@@ -1564,14 +1594,14 @@ function init14() {
|
|
|
1564
1594
|
}
|
|
1565
1595
|
|
|
1566
1596
|
// src/extensions/user-preferences/hooks/use-action-props.ts
|
|
1567
|
-
var
|
|
1568
|
-
var
|
|
1569
|
-
var
|
|
1597
|
+
var import_editor_v1_adapters17 = require("@elementor/editor-v1-adapters");
|
|
1598
|
+
var import_icons24 = require("@elementor/icons");
|
|
1599
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
1570
1600
|
function useActionProps11() {
|
|
1571
|
-
const { isActive, isBlocked } = (0,
|
|
1601
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters17.__privateUseRouteStatus)("panel/editor-preferences");
|
|
1572
1602
|
return {
|
|
1573
|
-
icon:
|
|
1574
|
-
title: (0,
|
|
1603
|
+
icon: import_icons24.ToggleRightIcon,
|
|
1604
|
+
title: (0, import_i18n26.__)("User Preferences", "elementor"),
|
|
1575
1605
|
onClick: () => {
|
|
1576
1606
|
const extendedWindow = window;
|
|
1577
1607
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1583,7 +1613,7 @@ function useActionProps11() {
|
|
|
1583
1613
|
element: config.elements.link
|
|
1584
1614
|
});
|
|
1585
1615
|
}
|
|
1586
|
-
(0,
|
|
1616
|
+
(0, import_editor_v1_adapters17.__privateOpenRoute)("panel/editor-preferences");
|
|
1587
1617
|
},
|
|
1588
1618
|
selected: isActive,
|
|
1589
1619
|
disabled: isBlocked
|
|
@@ -1601,20 +1631,20 @@ function init15() {
|
|
|
1601
1631
|
}
|
|
1602
1632
|
|
|
1603
1633
|
// src/extensions/wordpress/index.ts
|
|
1604
|
-
var
|
|
1605
|
-
var
|
|
1606
|
-
var
|
|
1634
|
+
var import_editor_documents11 = require("@elementor/editor-documents");
|
|
1635
|
+
var import_icons25 = require("@elementor/icons");
|
|
1636
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
1607
1637
|
function init16() {
|
|
1608
1638
|
mainMenu.registerLink({
|
|
1609
1639
|
id: "exit-to-wordpress",
|
|
1610
1640
|
group: "exits",
|
|
1611
1641
|
priority: 20,
|
|
1612
1642
|
useProps: () => {
|
|
1613
|
-
const document2 = (0,
|
|
1643
|
+
const document2 = (0, import_editor_documents11.__useActiveDocument)();
|
|
1614
1644
|
return {
|
|
1615
|
-
title: (0,
|
|
1645
|
+
title: (0, import_i18n27.__)("Exit to WordPress", "elementor"),
|
|
1616
1646
|
href: document2?.links?.platformEdit,
|
|
1617
|
-
icon:
|
|
1647
|
+
icon: import_icons25.WordpressIcon,
|
|
1618
1648
|
onClick: () => {
|
|
1619
1649
|
const extendedWindow = window;
|
|
1620
1650
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1656,10 +1686,10 @@ function init17() {
|
|
|
1656
1686
|
}
|
|
1657
1687
|
|
|
1658
1688
|
// src/sync/redirect-old-menus.ts
|
|
1659
|
-
var
|
|
1689
|
+
var import_editor_v1_adapters18 = require("@elementor/editor-v1-adapters");
|
|
1660
1690
|
function redirectOldMenus() {
|
|
1661
|
-
(0,
|
|
1662
|
-
(0,
|
|
1691
|
+
(0, import_editor_v1_adapters18.__privateListenTo)((0, import_editor_v1_adapters18.routeOpenEvent)("panel/menu"), () => {
|
|
1692
|
+
(0, import_editor_v1_adapters18.__privateOpenRoute)("panel/elements/categories");
|
|
1663
1693
|
});
|
|
1664
1694
|
}
|
|
1665
1695
|
|