@elementor/editor-app-bar 4.1.0-834 → 4.1.0-837
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 +187 -149
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +138 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -11
- package/src/extensions/angie/hooks/use-action-props.ts +29 -0
- package/src/extensions/angie/index.ts +10 -0
- package/src/extensions/documents-settings/index.ts +1 -1
- package/src/extensions/index.ts +2 -0
package/dist/index.mjs
CHANGED
|
@@ -557,10 +557,47 @@ function AppBar() {
|
|
|
557
557
|
return /* @__PURE__ */ React20.createElement(ThemeProvider2, { colorScheme: "dark" }, /* @__PURE__ */ React20.createElement(BaseAppBar, { position: "sticky" }, /* @__PURE__ */ React20.createElement(Toolbar, { disableGutters: true, variant: "dense" }, /* @__PURE__ */ React20.createElement(Box3, { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", flexGrow: 1 }, /* @__PURE__ */ React20.createElement(Grid, { container: true, flexWrap: "nowrap" }, /* @__PURE__ */ React20.createElement(MainMenuLocation, null), document2?.permissions?.allowAddingWidgets && /* @__PURE__ */ React20.createElement(ToolsMenuLocation, null)), /* @__PURE__ */ React20.createElement(Grid, { container: true, justifyContent: "center" }, /* @__PURE__ */ React20.createElement(ToolbarMenu, { spacing: 1.5 }, /* @__PURE__ */ React20.createElement(Divider2, { orientation: "vertical" }), /* @__PURE__ */ React20.createElement(PageIndicationLocation, null), /* @__PURE__ */ React20.createElement(Divider2, { orientation: "vertical" }), /* @__PURE__ */ React20.createElement(ResponsiveLocation, null), /* @__PURE__ */ React20.createElement(Divider2, { orientation: "vertical" }))), /* @__PURE__ */ React20.createElement(Grid, { container: true, justifyContent: "flex-end", flexWrap: "nowrap" }, /* @__PURE__ */ React20.createElement(UtilitiesMenuLocation, null), /* @__PURE__ */ React20.createElement(PrimaryActionLocation, null))))));
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
+
// src/extensions/angie/hooks/use-action-props.ts
|
|
561
|
+
import { isAngieAvailable } from "@elementor/editor-mcp";
|
|
562
|
+
import { AngieIcon } from "@elementor/icons";
|
|
563
|
+
import { __ as __5 } from "@wordpress/i18n";
|
|
564
|
+
var CREATE_WIDGET_EVENT = "elementor/editor/create-widget";
|
|
565
|
+
var CREATE_WIDGET_PROMPT = `Create a widget for me.
|
|
566
|
+
Goal: [What should this widget help me accomplish?]
|
|
567
|
+
Placement: [Where will I see it in the editor/UI?]
|
|
568
|
+
How it should work: `;
|
|
569
|
+
function useActionProps() {
|
|
570
|
+
return {
|
|
571
|
+
title: __5("Angie", "elementor"),
|
|
572
|
+
icon: AngieIcon,
|
|
573
|
+
onClick: () => {
|
|
574
|
+
window.dispatchEvent(
|
|
575
|
+
new CustomEvent(CREATE_WIDGET_EVENT, {
|
|
576
|
+
detail: {
|
|
577
|
+
prompt: CREATE_WIDGET_PROMPT,
|
|
578
|
+
entry_point: "top_bar"
|
|
579
|
+
}
|
|
580
|
+
})
|
|
581
|
+
);
|
|
582
|
+
},
|
|
583
|
+
selected: false,
|
|
584
|
+
visible: !isAngieAvailable()
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
// src/extensions/angie/index.ts
|
|
589
|
+
function init() {
|
|
590
|
+
toolsMenu.registerToggleAction({
|
|
591
|
+
id: "toggle-angie",
|
|
592
|
+
priority: 2,
|
|
593
|
+
useProps: useActionProps
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
|
|
560
597
|
// src/extensions/connect/hooks/use-connect-link-config.tsx
|
|
561
598
|
import { useCallback } from "react";
|
|
562
599
|
import { UserIcon } from "@elementor/icons";
|
|
563
|
-
import { __ as
|
|
600
|
+
import { __ as __6 } from "@wordpress/i18n";
|
|
564
601
|
var dispatchConnectClickEvent = (eventName) => {
|
|
565
602
|
try {
|
|
566
603
|
const extendedWindow = window;
|
|
@@ -613,12 +650,12 @@ function useConnectLinkConfig() {
|
|
|
613
650
|
[extendedWindow]
|
|
614
651
|
);
|
|
615
652
|
return isUserConnected ? {
|
|
616
|
-
title:
|
|
653
|
+
title: __6("My Elementor", "elementor"),
|
|
617
654
|
href: extendedWindow?.elementor?.config.user.top_bar.my_elementor_url,
|
|
618
655
|
icon: UserIcon,
|
|
619
656
|
target: "_blank"
|
|
620
657
|
} : {
|
|
621
|
-
title:
|
|
658
|
+
title: __6("Connect my account", "elementor"),
|
|
622
659
|
href: extendedWindow?.elementor?.config.user.top_bar.connect_url,
|
|
623
660
|
icon: UserIcon,
|
|
624
661
|
target,
|
|
@@ -627,7 +664,7 @@ function useConnectLinkConfig() {
|
|
|
627
664
|
}
|
|
628
665
|
|
|
629
666
|
// src/extensions/connect/index.ts
|
|
630
|
-
function
|
|
667
|
+
function init2() {
|
|
631
668
|
mainMenu.registerLink({
|
|
632
669
|
id: "app-bar-connect",
|
|
633
670
|
group: "exits",
|
|
@@ -640,12 +677,12 @@ function init() {
|
|
|
640
677
|
import { __useActiveDocument as useActiveDocument2 } from "@elementor/editor-documents";
|
|
641
678
|
import { __privateRunCommand as runCommand } from "@elementor/editor-v1-adapters";
|
|
642
679
|
import { EyeIcon } from "@elementor/icons";
|
|
643
|
-
import { __ as
|
|
644
|
-
function
|
|
680
|
+
import { __ as __7 } from "@wordpress/i18n";
|
|
681
|
+
function useActionProps2() {
|
|
645
682
|
const document2 = useActiveDocument2();
|
|
646
683
|
return {
|
|
647
684
|
icon: EyeIcon,
|
|
648
|
-
title:
|
|
685
|
+
title: __7("Preview Changes", "elementor"),
|
|
649
686
|
onClick: () => {
|
|
650
687
|
const extendedWindow = window;
|
|
651
688
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -668,11 +705,11 @@ function useActionProps() {
|
|
|
668
705
|
}
|
|
669
706
|
|
|
670
707
|
// src/extensions/documents-preview/index.ts
|
|
671
|
-
function
|
|
708
|
+
function init3() {
|
|
672
709
|
utilitiesMenu.registerAction({
|
|
673
710
|
id: "document-preview-button",
|
|
674
711
|
priority: 30,
|
|
675
|
-
useProps:
|
|
712
|
+
useProps: useActionProps2
|
|
676
713
|
});
|
|
677
714
|
}
|
|
678
715
|
|
|
@@ -694,7 +731,7 @@ import {
|
|
|
694
731
|
Tooltip as Tooltip3,
|
|
695
732
|
usePopupState as usePopupState5
|
|
696
733
|
} from "@elementor/ui";
|
|
697
|
-
import { __ as
|
|
734
|
+
import { __ as __8 } from "@wordpress/i18n";
|
|
698
735
|
|
|
699
736
|
// src/extensions/documents-save/components/primary-action-menu.tsx
|
|
700
737
|
import * as React21 from "react";
|
|
@@ -793,7 +830,7 @@ function PrimaryAction() {
|
|
|
793
830
|
), /* @__PURE__ */ React22.createElement(
|
|
794
831
|
Tooltip3,
|
|
795
832
|
{
|
|
796
|
-
title:
|
|
833
|
+
title: __8("Save Options", "elementor"),
|
|
797
834
|
PopperProps: {
|
|
798
835
|
sx: {
|
|
799
836
|
"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom": {
|
|
@@ -810,14 +847,14 @@ function PrimaryAction() {
|
|
|
810
847
|
...bindTrigger4(popupState),
|
|
811
848
|
sx: { px: 0, height: "100%", borderRadius: 0 },
|
|
812
849
|
disabled: isSaveOptionsDisabled,
|
|
813
|
-
"aria-label":
|
|
850
|
+
"aria-label": __8("Save Options", "elementor")
|
|
814
851
|
},
|
|
815
852
|
/* @__PURE__ */ React22.createElement(ChevronDownIcon, null)
|
|
816
853
|
))
|
|
817
854
|
)), /* @__PURE__ */ React22.createElement(PrimaryActionMenu, { ...bindMenu4(popupState), onClick: popupState.close }));
|
|
818
855
|
}
|
|
819
856
|
function getLabel(document2) {
|
|
820
|
-
return document2.userCan.publish ?
|
|
857
|
+
return document2.userCan.publish ? __8("Publish", "elementor") : __8("Submit", "elementor");
|
|
821
858
|
}
|
|
822
859
|
function isPublishEnabled(document2) {
|
|
823
860
|
if (document2.type.value === "kit") {
|
|
@@ -833,14 +870,14 @@ import {
|
|
|
833
870
|
} from "@elementor/editor-documents";
|
|
834
871
|
import { useMixpanel as useMixpanel2 } from "@elementor/events";
|
|
835
872
|
import { LinkIcon } from "@elementor/icons";
|
|
836
|
-
import { __ as
|
|
873
|
+
import { __ as __9 } from "@wordpress/i18n";
|
|
837
874
|
function useDocumentCopyAndShareProps() {
|
|
838
875
|
const document2 = useActiveDocument4();
|
|
839
876
|
const { copyAndShare } = useActiveDocumentActions2();
|
|
840
877
|
const { dispatchEvent: dispatchEvent2, config } = useMixpanel2();
|
|
841
878
|
return {
|
|
842
879
|
icon: LinkIcon,
|
|
843
|
-
title:
|
|
880
|
+
title: __9("Copy and Share", "elementor"),
|
|
844
881
|
onClick: () => {
|
|
845
882
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
846
883
|
if (eventName) {
|
|
@@ -870,14 +907,14 @@ import {
|
|
|
870
907
|
} from "@elementor/editor-documents";
|
|
871
908
|
import { useMixpanel as useMixpanel3 } from "@elementor/events";
|
|
872
909
|
import { FileReportIcon } from "@elementor/icons";
|
|
873
|
-
import { __ as
|
|
910
|
+
import { __ as __10 } from "@wordpress/i18n";
|
|
874
911
|
function useDocumentSaveDraftProps() {
|
|
875
912
|
const document2 = useActiveDocument5();
|
|
876
913
|
const { saveDraft } = useActiveDocumentActions3();
|
|
877
914
|
const { dispatchEvent: dispatchEvent2, config } = useMixpanel3();
|
|
878
915
|
return {
|
|
879
916
|
icon: FileReportIcon,
|
|
880
|
-
title:
|
|
917
|
+
title: __10("Save Draft", "elementor"),
|
|
881
918
|
onClick: () => {
|
|
882
919
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
883
920
|
if (eventName) {
|
|
@@ -903,13 +940,13 @@ function useDocumentSaveDraftProps() {
|
|
|
903
940
|
import { __useActiveDocumentActions as useActiveDocumentActions4 } from "@elementor/editor-documents";
|
|
904
941
|
import { useMixpanel as useMixpanel4 } from "@elementor/events";
|
|
905
942
|
import { FolderIcon } from "@elementor/icons";
|
|
906
|
-
import { __ as
|
|
943
|
+
import { __ as __11 } from "@wordpress/i18n";
|
|
907
944
|
function useDocumentSaveTemplateProps() {
|
|
908
945
|
const { saveTemplate } = useActiveDocumentActions4();
|
|
909
946
|
const { dispatchEvent: dispatchEvent2, config } = useMixpanel4();
|
|
910
947
|
return {
|
|
911
948
|
icon: FolderIcon,
|
|
912
|
-
title:
|
|
949
|
+
title: __11("Save as Template", "elementor"),
|
|
913
950
|
onClick: () => {
|
|
914
951
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
915
952
|
if (eventName) {
|
|
@@ -934,12 +971,12 @@ function useDocumentSaveTemplateProps() {
|
|
|
934
971
|
import { __useActiveDocument as useActiveDocument6 } from "@elementor/editor-documents";
|
|
935
972
|
import { __privateRunCommand as runCommand2 } from "@elementor/editor-v1-adapters";
|
|
936
973
|
import { EyeIcon as EyeIcon2 } from "@elementor/icons";
|
|
937
|
-
import { __ as
|
|
974
|
+
import { __ as __12 } from "@wordpress/i18n";
|
|
938
975
|
function useDocumentViewAsMarkdownProps() {
|
|
939
976
|
const document2 = useActiveDocument6();
|
|
940
977
|
return {
|
|
941
978
|
icon: EyeIcon2,
|
|
942
|
-
title:
|
|
979
|
+
title: __12("View as Markdown", "elementor"),
|
|
943
980
|
onClick: async () => {
|
|
944
981
|
const baseUrl = document2?.links?.wpPreview || document2?.links?.permalink;
|
|
945
982
|
if (!baseUrl) {
|
|
@@ -960,13 +997,13 @@ import { __useActiveDocument as useActiveDocument7 } from "@elementor/editor-doc
|
|
|
960
997
|
import { __privateRunCommand as runCommand3 } from "@elementor/editor-v1-adapters";
|
|
961
998
|
import { useMixpanel as useMixpanel5 } from "@elementor/events";
|
|
962
999
|
import { EyeIcon as EyeIcon3 } from "@elementor/icons";
|
|
963
|
-
import { __ as
|
|
1000
|
+
import { __ as __13 } from "@wordpress/i18n";
|
|
964
1001
|
function useDocumentViewPageProps() {
|
|
965
1002
|
const document2 = useActiveDocument7();
|
|
966
1003
|
const { dispatchEvent: dispatchEvent2, config } = useMixpanel5();
|
|
967
1004
|
return {
|
|
968
1005
|
icon: EyeIcon3,
|
|
969
|
-
title:
|
|
1006
|
+
title: __13("View Page", "elementor"),
|
|
970
1007
|
onClick: () => {
|
|
971
1008
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
972
1009
|
if (eventName) {
|
|
@@ -992,7 +1029,7 @@ function useDocumentViewPageProps() {
|
|
|
992
1029
|
}
|
|
993
1030
|
|
|
994
1031
|
// src/extensions/documents-save/index.ts
|
|
995
|
-
function
|
|
1032
|
+
function init4() {
|
|
996
1033
|
injectIntoPrimaryAction({
|
|
997
1034
|
id: "document-primary-action",
|
|
998
1035
|
component: PrimaryAction
|
|
@@ -1036,16 +1073,16 @@ import {
|
|
|
1036
1073
|
__privateUseRouteStatus as useRouteStatus
|
|
1037
1074
|
} from "@elementor/editor-v1-adapters";
|
|
1038
1075
|
import { FileSettingsIcon } from "@elementor/icons";
|
|
1039
|
-
import { __ as
|
|
1040
|
-
function
|
|
1076
|
+
import { __ as __14 } from "@wordpress/i18n";
|
|
1077
|
+
function useActionProps3() {
|
|
1041
1078
|
const activeDocument = useActiveDocument8();
|
|
1042
1079
|
const hostDocument = useHostDocument();
|
|
1043
1080
|
const { isActive, isBlocked } = useRouteStatus("panel/page-settings");
|
|
1044
1081
|
const document2 = activeDocument && activeDocument.type.value !== "kit" ? activeDocument : hostDocument;
|
|
1045
1082
|
const ButtonTitle = document2 ? (
|
|
1046
1083
|
/* translators: %s: Post type label. */
|
|
1047
|
-
|
|
1048
|
-
) :
|
|
1084
|
+
__14("%s Settings", "elementor").replace("%s", document2.type.label)
|
|
1085
|
+
) : __14("Document Settings", "elementor");
|
|
1049
1086
|
return {
|
|
1050
1087
|
title: ButtonTitle,
|
|
1051
1088
|
icon: FileSettingsIcon,
|
|
@@ -1071,11 +1108,11 @@ function useActionProps2() {
|
|
|
1071
1108
|
}
|
|
1072
1109
|
|
|
1073
1110
|
// src/extensions/documents-settings/index.ts
|
|
1074
|
-
function
|
|
1111
|
+
function init5() {
|
|
1075
1112
|
toolsMenu.registerToggleAction({
|
|
1076
1113
|
id: "document-settings-button",
|
|
1077
|
-
priority:
|
|
1078
|
-
useProps:
|
|
1114
|
+
priority: 3,
|
|
1115
|
+
useProps: useActionProps3
|
|
1079
1116
|
});
|
|
1080
1117
|
}
|
|
1081
1118
|
|
|
@@ -1085,11 +1122,11 @@ import {
|
|
|
1085
1122
|
__privateUseRouteStatus as useRouteStatus2
|
|
1086
1123
|
} from "@elementor/editor-v1-adapters";
|
|
1087
1124
|
import { PlusIcon } from "@elementor/icons";
|
|
1088
|
-
import { __ as
|
|
1089
|
-
function
|
|
1125
|
+
import { __ as __15 } from "@wordpress/i18n";
|
|
1126
|
+
function useActionProps4() {
|
|
1090
1127
|
const { isActive, isBlocked } = useRouteStatus2("panel/elements");
|
|
1091
1128
|
return {
|
|
1092
|
-
title:
|
|
1129
|
+
title: __15("Add Element", "elementor"),
|
|
1093
1130
|
icon: PlusIcon,
|
|
1094
1131
|
onClick: () => {
|
|
1095
1132
|
const extendedWindow = window;
|
|
@@ -1116,10 +1153,10 @@ import {
|
|
|
1116
1153
|
routeOpenEvent,
|
|
1117
1154
|
v1ReadyEvent
|
|
1118
1155
|
} from "@elementor/editor-v1-adapters";
|
|
1119
|
-
import { __ as
|
|
1156
|
+
import { __ as __16 } from "@wordpress/i18n";
|
|
1120
1157
|
function syncPanelTitle() {
|
|
1121
|
-
const panelTitle =
|
|
1122
|
-
const tabTitle =
|
|
1158
|
+
const panelTitle = __16("Elements", "elementor");
|
|
1159
|
+
const tabTitle = __16("Widgets", "elementor");
|
|
1123
1160
|
listenTo(routeOpenEvent("panel/elements"), () => {
|
|
1124
1161
|
setPanelTitle(panelTitle);
|
|
1125
1162
|
setTabTitle(tabTitle);
|
|
@@ -1142,20 +1179,20 @@ function setTabTitle(title) {
|
|
|
1142
1179
|
}
|
|
1143
1180
|
|
|
1144
1181
|
// src/extensions/elements/index.ts
|
|
1145
|
-
function
|
|
1182
|
+
function init6() {
|
|
1146
1183
|
syncPanelTitle();
|
|
1147
1184
|
toolsMenu.registerToggleAction({
|
|
1148
1185
|
id: "open-elements-panel",
|
|
1149
1186
|
priority: 1,
|
|
1150
|
-
useProps:
|
|
1187
|
+
useProps: useActionProps4
|
|
1151
1188
|
});
|
|
1152
1189
|
}
|
|
1153
1190
|
|
|
1154
1191
|
// src/extensions/feedback/index.ts
|
|
1155
1192
|
import { isExperimentActive as isExperimentActive2 } from "@elementor/editor-v1-adapters";
|
|
1156
1193
|
import { MessageLinesIcon } from "@elementor/icons";
|
|
1157
|
-
import { __ as
|
|
1158
|
-
function
|
|
1194
|
+
import { __ as __17 } from "@wordpress/i18n";
|
|
1195
|
+
function init7() {
|
|
1159
1196
|
const isActive = isExperimentActive2(EXPERIMENT_NAME);
|
|
1160
1197
|
if (!isActive) {
|
|
1161
1198
|
return;
|
|
@@ -1167,7 +1204,7 @@ function init6() {
|
|
|
1167
1204
|
useProps: () => {
|
|
1168
1205
|
return {
|
|
1169
1206
|
icon: MessageLinesIcon,
|
|
1170
|
-
title:
|
|
1207
|
+
title: __17("Send Feedback", "elementor"),
|
|
1171
1208
|
onClick: () => {
|
|
1172
1209
|
dispatchEvent(new CustomEvent(FEEDBACK_TOGGLE_EVENT));
|
|
1173
1210
|
}
|
|
@@ -1179,10 +1216,10 @@ function init6() {
|
|
|
1179
1216
|
// src/extensions/finder/hooks/use-action-props.ts
|
|
1180
1217
|
import { __privateRunCommand as runCommand4 } from "@elementor/editor-v1-adapters";
|
|
1181
1218
|
import { SearchIcon } from "@elementor/icons";
|
|
1182
|
-
import { __ as
|
|
1183
|
-
function
|
|
1219
|
+
import { __ as __18 } from "@wordpress/i18n";
|
|
1220
|
+
function useActionProps5() {
|
|
1184
1221
|
return {
|
|
1185
|
-
title:
|
|
1222
|
+
title: __18("Finder", "elementor"),
|
|
1186
1223
|
icon: SearchIcon,
|
|
1187
1224
|
onClick: () => {
|
|
1188
1225
|
const extendedWindow = window;
|
|
@@ -1201,20 +1238,20 @@ function useActionProps4() {
|
|
|
1201
1238
|
}
|
|
1202
1239
|
|
|
1203
1240
|
// src/extensions/finder/index.ts
|
|
1204
|
-
function
|
|
1241
|
+
function init8() {
|
|
1205
1242
|
utilitiesMenu.registerAction({
|
|
1206
1243
|
id: "toggle-finder",
|
|
1207
1244
|
priority: 15,
|
|
1208
|
-
useProps:
|
|
1245
|
+
useProps: useActionProps5
|
|
1209
1246
|
});
|
|
1210
1247
|
}
|
|
1211
1248
|
|
|
1212
1249
|
// src/extensions/help/hooks/use-action-props.ts
|
|
1213
1250
|
import { HelpIcon } from "@elementor/icons";
|
|
1214
|
-
import { __ as
|
|
1215
|
-
function
|
|
1251
|
+
import { __ as __19 } from "@wordpress/i18n";
|
|
1252
|
+
function useActionProps6() {
|
|
1216
1253
|
return {
|
|
1217
|
-
title:
|
|
1254
|
+
title: __19("Help Center", "elementor"),
|
|
1218
1255
|
href: "https://go.elementor.com/editor-top-bar-learn/",
|
|
1219
1256
|
icon: HelpIcon,
|
|
1220
1257
|
target: "_blank",
|
|
@@ -1234,12 +1271,12 @@ function useActionProps5() {
|
|
|
1234
1271
|
}
|
|
1235
1272
|
|
|
1236
1273
|
// src/extensions/help/index.ts
|
|
1237
|
-
function
|
|
1274
|
+
function init9() {
|
|
1238
1275
|
mainMenu.registerLink({
|
|
1239
1276
|
id: "open-help-center",
|
|
1240
1277
|
group: "help",
|
|
1241
1278
|
priority: 10,
|
|
1242
|
-
useProps:
|
|
1279
|
+
useProps: useActionProps6
|
|
1243
1280
|
});
|
|
1244
1281
|
}
|
|
1245
1282
|
|
|
@@ -1249,11 +1286,11 @@ import {
|
|
|
1249
1286
|
__privateUseRouteStatus as useRouteStatus3
|
|
1250
1287
|
} from "@elementor/editor-v1-adapters";
|
|
1251
1288
|
import { HistoryIcon } from "@elementor/icons";
|
|
1252
|
-
import { __ as
|
|
1253
|
-
function
|
|
1289
|
+
import { __ as __20 } from "@wordpress/i18n";
|
|
1290
|
+
function useActionProps7() {
|
|
1254
1291
|
const { isActive, isBlocked } = useRouteStatus3("panel/history");
|
|
1255
1292
|
return {
|
|
1256
|
-
title:
|
|
1293
|
+
title: __20("History", "elementor"),
|
|
1257
1294
|
icon: HistoryIcon,
|
|
1258
1295
|
onClick: () => {
|
|
1259
1296
|
const extendedWindow = window;
|
|
@@ -1274,22 +1311,22 @@ function useActionProps6() {
|
|
|
1274
1311
|
}
|
|
1275
1312
|
|
|
1276
1313
|
// src/extensions/history/index.ts
|
|
1277
|
-
function
|
|
1314
|
+
function init10() {
|
|
1278
1315
|
toolsMenu.registerToggleAction({
|
|
1279
1316
|
id: "open-history",
|
|
1280
1317
|
priority: 15,
|
|
1281
|
-
useProps:
|
|
1318
|
+
useProps: useActionProps7
|
|
1282
1319
|
});
|
|
1283
1320
|
}
|
|
1284
1321
|
|
|
1285
1322
|
// src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
|
|
1286
1323
|
import { __privateRunCommand as runCommand5 } from "@elementor/editor-v1-adapters";
|
|
1287
1324
|
import { KeyboardIcon } from "@elementor/icons";
|
|
1288
|
-
import { __ as
|
|
1289
|
-
function
|
|
1325
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
1326
|
+
function useActionProps8() {
|
|
1290
1327
|
return {
|
|
1291
1328
|
icon: KeyboardIcon,
|
|
1292
|
-
title:
|
|
1329
|
+
title: __21("Keyboard Shortcuts", "elementor"),
|
|
1293
1330
|
onClick: () => {
|
|
1294
1331
|
const extendedWindow = window;
|
|
1295
1332
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1307,12 +1344,12 @@ function useActionProps7() {
|
|
|
1307
1344
|
}
|
|
1308
1345
|
|
|
1309
1346
|
// src/extensions/keyboard-shortcuts/index.ts
|
|
1310
|
-
function
|
|
1347
|
+
function init11() {
|
|
1311
1348
|
mainMenu.registerAction({
|
|
1312
1349
|
id: "open-keyboard-shortcuts",
|
|
1313
1350
|
group: "default",
|
|
1314
1351
|
priority: 40,
|
|
1315
|
-
useProps:
|
|
1352
|
+
useProps: useActionProps8
|
|
1316
1353
|
});
|
|
1317
1354
|
}
|
|
1318
1355
|
|
|
@@ -1333,7 +1370,7 @@ import {
|
|
|
1333
1370
|
WidescreenIcon
|
|
1334
1371
|
} from "@elementor/icons";
|
|
1335
1372
|
import { Tab, Tabs, Tooltip as BaseTooltip2 } from "@elementor/ui";
|
|
1336
|
-
import { __ as
|
|
1373
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
1337
1374
|
function BreakpointsSwitcher() {
|
|
1338
1375
|
const breakpoints = useBreakpoints();
|
|
1339
1376
|
const activeBreakpoint = useActiveBreakpoint();
|
|
@@ -1362,7 +1399,7 @@ function BreakpointsSwitcher() {
|
|
|
1362
1399
|
indicatorColor: "secondary",
|
|
1363
1400
|
value: activeBreakpoint,
|
|
1364
1401
|
onChange,
|
|
1365
|
-
"aria-label":
|
|
1402
|
+
"aria-label": __22("Switch Device", "elementor"),
|
|
1366
1403
|
sx: {
|
|
1367
1404
|
"& .MuiTabs-indicator": {
|
|
1368
1405
|
backgroundColor: "text.primary"
|
|
@@ -1413,13 +1450,13 @@ var iconsMap = {
|
|
|
1413
1450
|
var labelsMap = {
|
|
1414
1451
|
default: "%s",
|
|
1415
1452
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1416
|
-
"min-width":
|
|
1453
|
+
"min-width": __22("%s (%dpx and up)", "elementor"),
|
|
1417
1454
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1418
|
-
"max-width":
|
|
1455
|
+
"max-width": __22("%s (up to %dpx)", "elementor")
|
|
1419
1456
|
};
|
|
1420
1457
|
|
|
1421
1458
|
// src/extensions/responsive/index.ts
|
|
1422
|
-
function
|
|
1459
|
+
function init12() {
|
|
1423
1460
|
injectIntoResponsive({
|
|
1424
1461
|
id: "responsive-breakpoints-switcher",
|
|
1425
1462
|
component: BreakpointsSwitcher,
|
|
@@ -1466,7 +1503,7 @@ import {
|
|
|
1466
1503
|
__useActiveDocumentActions as useActiveDocumentActions5
|
|
1467
1504
|
} from "@elementor/editor-documents";
|
|
1468
1505
|
import { Button as Button3, CircularProgress as CircularProgress2, Paper } from "@elementor/ui";
|
|
1469
|
-
import { __ as
|
|
1506
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
1470
1507
|
function PrimaryAction2() {
|
|
1471
1508
|
const document2 = useActiveDocument9();
|
|
1472
1509
|
const { save } = useActiveDocumentActions5();
|
|
@@ -1489,7 +1526,7 @@ function PrimaryAction2() {
|
|
|
1489
1526
|
sx: { width: "100%" },
|
|
1490
1527
|
onClick: () => document2 && !document2.isSaving ? save() : null
|
|
1491
1528
|
},
|
|
1492
|
-
document2?.isSaving ? /* @__PURE__ */ React25.createElement(CircularProgress2, null) :
|
|
1529
|
+
document2?.isSaving ? /* @__PURE__ */ React25.createElement(CircularProgress2, null) : __23("Save Changes", "elementor")
|
|
1493
1530
|
)
|
|
1494
1531
|
);
|
|
1495
1532
|
}
|
|
@@ -1505,13 +1542,13 @@ import {
|
|
|
1505
1542
|
__privateUseRouteStatus as useRouteStatus4
|
|
1506
1543
|
} from "@elementor/editor-v1-adapters";
|
|
1507
1544
|
import { SettingsIcon } from "@elementor/icons";
|
|
1508
|
-
import { __ as
|
|
1509
|
-
function
|
|
1545
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
1546
|
+
function useActionProps9() {
|
|
1510
1547
|
const { isActive, isBlocked } = useRouteStatus4("panel/global", {
|
|
1511
1548
|
blockOnKitRoutes: false
|
|
1512
1549
|
});
|
|
1513
1550
|
return {
|
|
1514
|
-
title:
|
|
1551
|
+
title: __24("Site Settings", "elementor"),
|
|
1515
1552
|
icon: SettingsIcon,
|
|
1516
1553
|
onClick: () => {
|
|
1517
1554
|
const extendedWindow = window;
|
|
@@ -1536,7 +1573,7 @@ function useActionProps8() {
|
|
|
1536
1573
|
}
|
|
1537
1574
|
|
|
1538
1575
|
// src/extensions/site-settings/index.ts
|
|
1539
|
-
function
|
|
1576
|
+
function init13() {
|
|
1540
1577
|
injectIntoTop({
|
|
1541
1578
|
id: "site-settings-primary-action-portal",
|
|
1542
1579
|
component: PortalledPrimaryAction
|
|
@@ -1545,7 +1582,7 @@ function init12() {
|
|
|
1545
1582
|
id: "toggle-site-settings",
|
|
1546
1583
|
group: "default",
|
|
1547
1584
|
priority: 1,
|
|
1548
|
-
useProps:
|
|
1585
|
+
useProps: useActionProps9
|
|
1549
1586
|
});
|
|
1550
1587
|
}
|
|
1551
1588
|
|
|
@@ -1555,11 +1592,11 @@ import {
|
|
|
1555
1592
|
__privateUseRouteStatus as useRouteStatus5
|
|
1556
1593
|
} from "@elementor/editor-v1-adapters";
|
|
1557
1594
|
import { StructureIcon } from "@elementor/icons";
|
|
1558
|
-
import { __ as
|
|
1559
|
-
function
|
|
1595
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
1596
|
+
function useActionProps10() {
|
|
1560
1597
|
const { isActive, isBlocked } = useRouteStatus5("navigator");
|
|
1561
1598
|
return {
|
|
1562
|
-
title:
|
|
1599
|
+
title: __25("Structure", "elementor"),
|
|
1563
1600
|
icon: StructureIcon,
|
|
1564
1601
|
onClick: () => {
|
|
1565
1602
|
const extendedWindow = window;
|
|
@@ -1580,22 +1617,22 @@ function useActionProps9() {
|
|
|
1580
1617
|
}
|
|
1581
1618
|
|
|
1582
1619
|
// src/extensions/structure/index.ts
|
|
1583
|
-
function
|
|
1620
|
+
function init14() {
|
|
1584
1621
|
utilitiesMenu.registerToggleAction({
|
|
1585
1622
|
id: "toggle-structure-view",
|
|
1586
1623
|
priority: 25,
|
|
1587
|
-
useProps:
|
|
1624
|
+
useProps: useActionProps10
|
|
1588
1625
|
});
|
|
1589
1626
|
}
|
|
1590
1627
|
|
|
1591
1628
|
// src/extensions/theme-builder/hooks/use-action-props.ts
|
|
1592
1629
|
import { __privateRunCommand as runCommand8 } from "@elementor/editor-v1-adapters";
|
|
1593
1630
|
import { ThemeBuilderIcon } from "@elementor/icons";
|
|
1594
|
-
import { __ as
|
|
1595
|
-
function
|
|
1631
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
1632
|
+
function useActionProps11() {
|
|
1596
1633
|
return {
|
|
1597
1634
|
icon: ThemeBuilderIcon,
|
|
1598
|
-
title:
|
|
1635
|
+
title: __26("Theme Builder", "elementor"),
|
|
1599
1636
|
onClick: () => {
|
|
1600
1637
|
const extendedWindow = window;
|
|
1601
1638
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1613,12 +1650,12 @@ function useActionProps10() {
|
|
|
1613
1650
|
}
|
|
1614
1651
|
|
|
1615
1652
|
// src/extensions/theme-builder/index.ts
|
|
1616
|
-
function
|
|
1653
|
+
function init15() {
|
|
1617
1654
|
mainMenu.registerAction({
|
|
1618
1655
|
id: "open-theme-builder",
|
|
1619
1656
|
group: "default",
|
|
1620
1657
|
priority: 10,
|
|
1621
|
-
useProps:
|
|
1658
|
+
useProps: useActionProps11
|
|
1622
1659
|
});
|
|
1623
1660
|
}
|
|
1624
1661
|
|
|
@@ -1628,12 +1665,12 @@ import {
|
|
|
1628
1665
|
__privateUseRouteStatus as useRouteStatus6
|
|
1629
1666
|
} from "@elementor/editor-v1-adapters";
|
|
1630
1667
|
import { ToggleRightIcon } from "@elementor/icons";
|
|
1631
|
-
import { __ as
|
|
1632
|
-
function
|
|
1668
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
1669
|
+
function useActionProps12() {
|
|
1633
1670
|
const { isActive, isBlocked } = useRouteStatus6("panel/editor-preferences");
|
|
1634
1671
|
return {
|
|
1635
1672
|
icon: ToggleRightIcon,
|
|
1636
|
-
title:
|
|
1673
|
+
title: __27("User Preferences", "elementor"),
|
|
1637
1674
|
onClick: () => {
|
|
1638
1675
|
const extendedWindow = window;
|
|
1639
1676
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1653,20 +1690,20 @@ function useActionProps11() {
|
|
|
1653
1690
|
}
|
|
1654
1691
|
|
|
1655
1692
|
// src/extensions/user-preferences/index.ts
|
|
1656
|
-
function
|
|
1693
|
+
function init16() {
|
|
1657
1694
|
mainMenu.registerToggleAction({
|
|
1658
1695
|
id: "open-user-preferences",
|
|
1659
1696
|
group: "default",
|
|
1660
1697
|
priority: 30,
|
|
1661
|
-
useProps:
|
|
1698
|
+
useProps: useActionProps12
|
|
1662
1699
|
});
|
|
1663
1700
|
}
|
|
1664
1701
|
|
|
1665
1702
|
// src/extensions/wordpress/index.ts
|
|
1666
1703
|
import { __useActiveDocument as useActiveDocument10 } from "@elementor/editor-documents";
|
|
1667
1704
|
import { WordpressIcon } from "@elementor/icons";
|
|
1668
|
-
import { __ as
|
|
1669
|
-
function
|
|
1705
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
1706
|
+
function init17() {
|
|
1670
1707
|
mainMenu.registerLink({
|
|
1671
1708
|
id: "exit-to-wordpress",
|
|
1672
1709
|
group: "exits",
|
|
@@ -1674,7 +1711,7 @@ function init16() {
|
|
|
1674
1711
|
useProps: () => {
|
|
1675
1712
|
const document2 = useActiveDocument10();
|
|
1676
1713
|
return {
|
|
1677
|
-
title:
|
|
1714
|
+
title: __28("Exit to WordPress", "elementor"),
|
|
1678
1715
|
href: document2?.links?.platformEdit,
|
|
1679
1716
|
icon: WordpressIcon,
|
|
1680
1717
|
onClick: () => {
|
|
@@ -1698,23 +1735,24 @@ function init16() {
|
|
|
1698
1735
|
}
|
|
1699
1736
|
|
|
1700
1737
|
// src/extensions/index.ts
|
|
1701
|
-
function
|
|
1702
|
-
|
|
1738
|
+
function init18() {
|
|
1739
|
+
init();
|
|
1703
1740
|
init3();
|
|
1704
1741
|
init4();
|
|
1705
1742
|
init5();
|
|
1706
|
-
|
|
1743
|
+
init6();
|
|
1707
1744
|
init8();
|
|
1708
1745
|
init9();
|
|
1709
1746
|
init10();
|
|
1710
1747
|
init11();
|
|
1711
1748
|
init12();
|
|
1712
|
-
init6();
|
|
1713
1749
|
init13();
|
|
1750
|
+
init7();
|
|
1714
1751
|
init14();
|
|
1715
1752
|
init15();
|
|
1716
1753
|
init16();
|
|
1717
|
-
|
|
1754
|
+
init17();
|
|
1755
|
+
init2();
|
|
1718
1756
|
}
|
|
1719
1757
|
|
|
1720
1758
|
// src/sync/redirect-old-menus.ts
|
|
@@ -1730,9 +1768,9 @@ function redirectOldMenus() {
|
|
|
1730
1768
|
}
|
|
1731
1769
|
|
|
1732
1770
|
// src/init.ts
|
|
1733
|
-
function
|
|
1771
|
+
function init19() {
|
|
1734
1772
|
redirectOldMenus();
|
|
1735
|
-
|
|
1773
|
+
init18();
|
|
1736
1774
|
injectIntoTop2({
|
|
1737
1775
|
id: "app-bar",
|
|
1738
1776
|
component: AppBar
|
|
@@ -1740,7 +1778,7 @@ function init18() {
|
|
|
1740
1778
|
}
|
|
1741
1779
|
export {
|
|
1742
1780
|
documentOptionsMenu,
|
|
1743
|
-
|
|
1781
|
+
init19 as init,
|
|
1744
1782
|
injectIntoPageIndication,
|
|
1745
1783
|
injectIntoPrimaryAction,
|
|
1746
1784
|
injectIntoResponsive,
|