@elementor/editor-app-bar 4.1.0-834 → 4.1.0-836
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.js
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
documentOptionsMenu: () => documentOptionsMenu,
|
|
34
|
-
init: () =>
|
|
34
|
+
init: () => init19,
|
|
35
35
|
injectIntoPageIndication: () => injectIntoPageIndication,
|
|
36
36
|
injectIntoPrimaryAction: () => injectIntoPrimaryAction,
|
|
37
37
|
injectIntoResponsive: () => injectIntoResponsive,
|
|
@@ -589,10 +589,47 @@ function AppBar() {
|
|
|
589
589
|
return /* @__PURE__ */ React20.createElement(import_ui11.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React20.createElement(import_ui11.AppBar, { position: "sticky" }, /* @__PURE__ */ React20.createElement(import_ui11.Toolbar, { disableGutters: true, variant: "dense" }, /* @__PURE__ */ React20.createElement(import_ui11.Box, { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", flexGrow: 1 }, /* @__PURE__ */ React20.createElement(import_ui11.Grid, { container: true, flexWrap: "nowrap" }, /* @__PURE__ */ React20.createElement(MainMenuLocation, null), document2?.permissions?.allowAddingWidgets && /* @__PURE__ */ React20.createElement(ToolsMenuLocation, null)), /* @__PURE__ */ React20.createElement(import_ui11.Grid, { container: true, justifyContent: "center" }, /* @__PURE__ */ React20.createElement(ToolbarMenu, { spacing: 1.5 }, /* @__PURE__ */ React20.createElement(import_ui11.Divider, { orientation: "vertical" }), /* @__PURE__ */ React20.createElement(PageIndicationLocation, null), /* @__PURE__ */ React20.createElement(import_ui11.Divider, { orientation: "vertical" }), /* @__PURE__ */ React20.createElement(ResponsiveLocation, null), /* @__PURE__ */ React20.createElement(import_ui11.Divider, { orientation: "vertical" }))), /* @__PURE__ */ React20.createElement(import_ui11.Grid, { container: true, justifyContent: "flex-end", flexWrap: "nowrap" }, /* @__PURE__ */ React20.createElement(UtilitiesMenuLocation, null), /* @__PURE__ */ React20.createElement(PrimaryActionLocation, null))))));
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
// src/extensions/
|
|
593
|
-
var
|
|
592
|
+
// src/extensions/angie/hooks/use-action-props.ts
|
|
593
|
+
var import_editor_mcp = require("@elementor/editor-mcp");
|
|
594
594
|
var import_icons5 = require("@elementor/icons");
|
|
595
595
|
var import_i18n5 = require("@wordpress/i18n");
|
|
596
|
+
var CREATE_WIDGET_EVENT = "elementor/editor/create-widget";
|
|
597
|
+
var CREATE_WIDGET_PROMPT = `Create a widget for me.
|
|
598
|
+
Goal: [What should this widget help me accomplish?]
|
|
599
|
+
Placement: [Where will I see it in the editor/UI?]
|
|
600
|
+
How it should work: `;
|
|
601
|
+
function useActionProps() {
|
|
602
|
+
return {
|
|
603
|
+
title: (0, import_i18n5.__)("Angie", "elementor"),
|
|
604
|
+
icon: import_icons5.AngieIcon,
|
|
605
|
+
onClick: () => {
|
|
606
|
+
window.dispatchEvent(
|
|
607
|
+
new CustomEvent(CREATE_WIDGET_EVENT, {
|
|
608
|
+
detail: {
|
|
609
|
+
prompt: CREATE_WIDGET_PROMPT,
|
|
610
|
+
entry_point: "top_bar"
|
|
611
|
+
}
|
|
612
|
+
})
|
|
613
|
+
);
|
|
614
|
+
},
|
|
615
|
+
selected: false,
|
|
616
|
+
visible: !(0, import_editor_mcp.isAngieAvailable)()
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
// src/extensions/angie/index.ts
|
|
621
|
+
function init() {
|
|
622
|
+
toolsMenu.registerToggleAction({
|
|
623
|
+
id: "toggle-angie",
|
|
624
|
+
priority: 2,
|
|
625
|
+
useProps: useActionProps
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
// src/extensions/connect/hooks/use-connect-link-config.tsx
|
|
630
|
+
var import_react5 = require("react");
|
|
631
|
+
var import_icons6 = require("@elementor/icons");
|
|
632
|
+
var import_i18n6 = require("@wordpress/i18n");
|
|
596
633
|
var dispatchConnectClickEvent = (eventName) => {
|
|
597
634
|
try {
|
|
598
635
|
const extendedWindow = window;
|
|
@@ -645,21 +682,21 @@ function useConnectLinkConfig() {
|
|
|
645
682
|
[extendedWindow]
|
|
646
683
|
);
|
|
647
684
|
return isUserConnected ? {
|
|
648
|
-
title: (0,
|
|
685
|
+
title: (0, import_i18n6.__)("My Elementor", "elementor"),
|
|
649
686
|
href: extendedWindow?.elementor?.config.user.top_bar.my_elementor_url,
|
|
650
|
-
icon:
|
|
687
|
+
icon: import_icons6.UserIcon,
|
|
651
688
|
target: "_blank"
|
|
652
689
|
} : {
|
|
653
|
-
title: (0,
|
|
690
|
+
title: (0, import_i18n6.__)("Connect my account", "elementor"),
|
|
654
691
|
href: extendedWindow?.elementor?.config.user.top_bar.connect_url,
|
|
655
|
-
icon:
|
|
692
|
+
icon: import_icons6.UserIcon,
|
|
656
693
|
target,
|
|
657
694
|
onClick: handleConnectClick
|
|
658
695
|
};
|
|
659
696
|
}
|
|
660
697
|
|
|
661
698
|
// src/extensions/connect/index.ts
|
|
662
|
-
function
|
|
699
|
+
function init2() {
|
|
663
700
|
mainMenu.registerLink({
|
|
664
701
|
id: "app-bar-connect",
|
|
665
702
|
group: "exits",
|
|
@@ -671,13 +708,13 @@ function init() {
|
|
|
671
708
|
// src/extensions/documents-preview/hooks/use-action-props.ts
|
|
672
709
|
var import_editor_documents2 = require("@elementor/editor-documents");
|
|
673
710
|
var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
|
|
674
|
-
var
|
|
675
|
-
var
|
|
676
|
-
function
|
|
711
|
+
var import_icons7 = require("@elementor/icons");
|
|
712
|
+
var import_i18n7 = require("@wordpress/i18n");
|
|
713
|
+
function useActionProps2() {
|
|
677
714
|
const document2 = (0, import_editor_documents2.__useActiveDocument)();
|
|
678
715
|
return {
|
|
679
|
-
icon:
|
|
680
|
-
title: (0,
|
|
716
|
+
icon: import_icons7.EyeIcon,
|
|
717
|
+
title: (0, import_i18n7.__)("Preview Changes", "elementor"),
|
|
681
718
|
onClick: () => {
|
|
682
719
|
const extendedWindow = window;
|
|
683
720
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -700,11 +737,11 @@ function useActionProps() {
|
|
|
700
737
|
}
|
|
701
738
|
|
|
702
739
|
// src/extensions/documents-preview/index.ts
|
|
703
|
-
function
|
|
740
|
+
function init3() {
|
|
704
741
|
utilitiesMenu.registerAction({
|
|
705
742
|
id: "document-preview-button",
|
|
706
743
|
priority: 30,
|
|
707
|
-
useProps:
|
|
744
|
+
useProps: useActionProps2
|
|
708
745
|
});
|
|
709
746
|
}
|
|
710
747
|
|
|
@@ -712,9 +749,9 @@ function init2() {
|
|
|
712
749
|
var React22 = __toESM(require("react"));
|
|
713
750
|
var import_editor_documents3 = require("@elementor/editor-documents");
|
|
714
751
|
var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
|
|
715
|
-
var
|
|
752
|
+
var import_icons8 = require("@elementor/icons");
|
|
716
753
|
var import_ui13 = require("@elementor/ui");
|
|
717
|
-
var
|
|
754
|
+
var import_i18n8 = require("@wordpress/i18n");
|
|
718
755
|
|
|
719
756
|
// src/extensions/documents-save/components/primary-action-menu.tsx
|
|
720
757
|
var React21 = __toESM(require("react"));
|
|
@@ -813,7 +850,7 @@ function PrimaryAction() {
|
|
|
813
850
|
), /* @__PURE__ */ React22.createElement(
|
|
814
851
|
import_ui13.Tooltip,
|
|
815
852
|
{
|
|
816
|
-
title: (0,
|
|
853
|
+
title: (0, import_i18n8.__)("Save Options", "elementor"),
|
|
817
854
|
PopperProps: {
|
|
818
855
|
sx: {
|
|
819
856
|
"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom": {
|
|
@@ -830,14 +867,14 @@ function PrimaryAction() {
|
|
|
830
867
|
...(0, import_ui13.bindTrigger)(popupState),
|
|
831
868
|
sx: { px: 0, height: "100%", borderRadius: 0 },
|
|
832
869
|
disabled: isSaveOptionsDisabled,
|
|
833
|
-
"aria-label": (0,
|
|
870
|
+
"aria-label": (0, import_i18n8.__)("Save Options", "elementor")
|
|
834
871
|
},
|
|
835
|
-
/* @__PURE__ */ React22.createElement(
|
|
872
|
+
/* @__PURE__ */ React22.createElement(import_icons8.ChevronDownIcon, null)
|
|
836
873
|
))
|
|
837
874
|
)), /* @__PURE__ */ React22.createElement(PrimaryActionMenu, { ...(0, import_ui13.bindMenu)(popupState), onClick: popupState.close }));
|
|
838
875
|
}
|
|
839
876
|
function getLabel(document2) {
|
|
840
|
-
return document2.userCan.publish ? (0,
|
|
877
|
+
return document2.userCan.publish ? (0, import_i18n8.__)("Publish", "elementor") : (0, import_i18n8.__)("Submit", "elementor");
|
|
841
878
|
}
|
|
842
879
|
function isPublishEnabled(document2) {
|
|
843
880
|
if (document2.type.value === "kit") {
|
|
@@ -849,15 +886,15 @@ function isPublishEnabled(document2) {
|
|
|
849
886
|
// src/extensions/documents-save/hooks/use-document-copy-and-share-props.ts
|
|
850
887
|
var import_editor_documents4 = require("@elementor/editor-documents");
|
|
851
888
|
var import_events2 = require("@elementor/events");
|
|
852
|
-
var
|
|
853
|
-
var
|
|
889
|
+
var import_icons9 = require("@elementor/icons");
|
|
890
|
+
var import_i18n9 = require("@wordpress/i18n");
|
|
854
891
|
function useDocumentCopyAndShareProps() {
|
|
855
892
|
const document2 = (0, import_editor_documents4.__useActiveDocument)();
|
|
856
893
|
const { copyAndShare } = (0, import_editor_documents4.__useActiveDocumentActions)();
|
|
857
894
|
const { dispatchEvent: dispatchEvent2, config } = (0, import_events2.useMixpanel)();
|
|
858
895
|
return {
|
|
859
|
-
icon:
|
|
860
|
-
title: (0,
|
|
896
|
+
icon: import_icons9.LinkIcon,
|
|
897
|
+
title: (0, import_i18n9.__)("Copy and Share", "elementor"),
|
|
861
898
|
onClick: () => {
|
|
862
899
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
863
900
|
if (eventName) {
|
|
@@ -883,15 +920,15 @@ function useDocumentCopyAndShareProps() {
|
|
|
883
920
|
// src/extensions/documents-save/hooks/use-document-save-draft-props.ts
|
|
884
921
|
var import_editor_documents5 = require("@elementor/editor-documents");
|
|
885
922
|
var import_events3 = require("@elementor/events");
|
|
886
|
-
var
|
|
887
|
-
var
|
|
923
|
+
var import_icons10 = require("@elementor/icons");
|
|
924
|
+
var import_i18n10 = require("@wordpress/i18n");
|
|
888
925
|
function useDocumentSaveDraftProps() {
|
|
889
926
|
const document2 = (0, import_editor_documents5.__useActiveDocument)();
|
|
890
927
|
const { saveDraft } = (0, import_editor_documents5.__useActiveDocumentActions)();
|
|
891
928
|
const { dispatchEvent: dispatchEvent2, config } = (0, import_events3.useMixpanel)();
|
|
892
929
|
return {
|
|
893
|
-
icon:
|
|
894
|
-
title: (0,
|
|
930
|
+
icon: import_icons10.FileReportIcon,
|
|
931
|
+
title: (0, import_i18n10.__)("Save Draft", "elementor"),
|
|
895
932
|
onClick: () => {
|
|
896
933
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
897
934
|
if (eventName) {
|
|
@@ -916,14 +953,14 @@ function useDocumentSaveDraftProps() {
|
|
|
916
953
|
// src/extensions/documents-save/hooks/use-document-save-template-props.ts
|
|
917
954
|
var import_editor_documents6 = require("@elementor/editor-documents");
|
|
918
955
|
var import_events4 = require("@elementor/events");
|
|
919
|
-
var
|
|
920
|
-
var
|
|
956
|
+
var import_icons11 = require("@elementor/icons");
|
|
957
|
+
var import_i18n11 = require("@wordpress/i18n");
|
|
921
958
|
function useDocumentSaveTemplateProps() {
|
|
922
959
|
const { saveTemplate } = (0, import_editor_documents6.__useActiveDocumentActions)();
|
|
923
960
|
const { dispatchEvent: dispatchEvent2, config } = (0, import_events4.useMixpanel)();
|
|
924
961
|
return {
|
|
925
|
-
icon:
|
|
926
|
-
title: (0,
|
|
962
|
+
icon: import_icons11.FolderIcon,
|
|
963
|
+
title: (0, import_i18n11.__)("Save as Template", "elementor"),
|
|
927
964
|
onClick: () => {
|
|
928
965
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
929
966
|
if (eventName) {
|
|
@@ -947,13 +984,13 @@ function useDocumentSaveTemplateProps() {
|
|
|
947
984
|
// src/extensions/documents-save/hooks/use-document-view-as-markdown-props.ts
|
|
948
985
|
var import_editor_documents7 = require("@elementor/editor-documents");
|
|
949
986
|
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
950
|
-
var
|
|
951
|
-
var
|
|
987
|
+
var import_icons12 = require("@elementor/icons");
|
|
988
|
+
var import_i18n12 = require("@wordpress/i18n");
|
|
952
989
|
function useDocumentViewAsMarkdownProps() {
|
|
953
990
|
const document2 = (0, import_editor_documents7.__useActiveDocument)();
|
|
954
991
|
return {
|
|
955
|
-
icon:
|
|
956
|
-
title: (0,
|
|
992
|
+
icon: import_icons12.EyeIcon,
|
|
993
|
+
title: (0, import_i18n12.__)("View as Markdown", "elementor"),
|
|
957
994
|
onClick: async () => {
|
|
958
995
|
const baseUrl = document2?.links?.wpPreview || document2?.links?.permalink;
|
|
959
996
|
if (!baseUrl) {
|
|
@@ -973,14 +1010,14 @@ function useDocumentViewAsMarkdownProps() {
|
|
|
973
1010
|
var import_editor_documents8 = require("@elementor/editor-documents");
|
|
974
1011
|
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
975
1012
|
var import_events5 = require("@elementor/events");
|
|
976
|
-
var
|
|
977
|
-
var
|
|
1013
|
+
var import_icons13 = require("@elementor/icons");
|
|
1014
|
+
var import_i18n13 = require("@wordpress/i18n");
|
|
978
1015
|
function useDocumentViewPageProps() {
|
|
979
1016
|
const document2 = (0, import_editor_documents8.__useActiveDocument)();
|
|
980
1017
|
const { dispatchEvent: dispatchEvent2, config } = (0, import_events5.useMixpanel)();
|
|
981
1018
|
return {
|
|
982
|
-
icon:
|
|
983
|
-
title: (0,
|
|
1019
|
+
icon: import_icons13.EyeIcon,
|
|
1020
|
+
title: (0, import_i18n13.__)("View Page", "elementor"),
|
|
984
1021
|
onClick: () => {
|
|
985
1022
|
const eventName = config?.names?.editorOne?.topBarPublishDropdown;
|
|
986
1023
|
if (eventName) {
|
|
@@ -1006,7 +1043,7 @@ function useDocumentViewPageProps() {
|
|
|
1006
1043
|
}
|
|
1007
1044
|
|
|
1008
1045
|
// src/extensions/documents-save/index.ts
|
|
1009
|
-
function
|
|
1046
|
+
function init4() {
|
|
1010
1047
|
injectIntoPrimaryAction({
|
|
1011
1048
|
id: "document-primary-action",
|
|
1012
1049
|
component: PrimaryAction
|
|
@@ -1043,20 +1080,20 @@ function init3() {
|
|
|
1043
1080
|
// src/extensions/documents-settings/hooks/use-action-props.ts
|
|
1044
1081
|
var import_editor_documents9 = require("@elementor/editor-documents");
|
|
1045
1082
|
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
1046
|
-
var
|
|
1047
|
-
var
|
|
1048
|
-
function
|
|
1083
|
+
var import_icons14 = require("@elementor/icons");
|
|
1084
|
+
var import_i18n14 = require("@wordpress/i18n");
|
|
1085
|
+
function useActionProps3() {
|
|
1049
1086
|
const activeDocument = (0, import_editor_documents9.__useActiveDocument)();
|
|
1050
1087
|
const hostDocument = (0, import_editor_documents9.__useHostDocument)();
|
|
1051
1088
|
const { isActive, isBlocked } = (0, import_editor_v1_adapters6.__privateUseRouteStatus)("panel/page-settings");
|
|
1052
1089
|
const document2 = activeDocument && activeDocument.type.value !== "kit" ? activeDocument : hostDocument;
|
|
1053
1090
|
const ButtonTitle = document2 ? (
|
|
1054
1091
|
/* translators: %s: Post type label. */
|
|
1055
|
-
(0,
|
|
1056
|
-
) : (0,
|
|
1092
|
+
(0, import_i18n14.__)("%s Settings", "elementor").replace("%s", document2.type.label)
|
|
1093
|
+
) : (0, import_i18n14.__)("Document Settings", "elementor");
|
|
1057
1094
|
return {
|
|
1058
1095
|
title: ButtonTitle,
|
|
1059
|
-
icon:
|
|
1096
|
+
icon: import_icons14.FileSettingsIcon,
|
|
1060
1097
|
onClick: () => {
|
|
1061
1098
|
if (!document2) {
|
|
1062
1099
|
return;
|
|
@@ -1079,23 +1116,23 @@ function useActionProps2() {
|
|
|
1079
1116
|
}
|
|
1080
1117
|
|
|
1081
1118
|
// src/extensions/documents-settings/index.ts
|
|
1082
|
-
function
|
|
1119
|
+
function init5() {
|
|
1083
1120
|
toolsMenu.registerToggleAction({
|
|
1084
1121
|
id: "document-settings-button",
|
|
1085
|
-
priority:
|
|
1086
|
-
useProps:
|
|
1122
|
+
priority: 3,
|
|
1123
|
+
useProps: useActionProps3
|
|
1087
1124
|
});
|
|
1088
1125
|
}
|
|
1089
1126
|
|
|
1090
1127
|
// src/extensions/elements/hooks/use-action-props.ts
|
|
1091
1128
|
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
1092
|
-
var
|
|
1093
|
-
var
|
|
1094
|
-
function
|
|
1129
|
+
var import_icons15 = require("@elementor/icons");
|
|
1130
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
1131
|
+
function useActionProps4() {
|
|
1095
1132
|
const { isActive, isBlocked } = (0, import_editor_v1_adapters7.__privateUseRouteStatus)("panel/elements");
|
|
1096
1133
|
return {
|
|
1097
|
-
title: (0,
|
|
1098
|
-
icon:
|
|
1134
|
+
title: (0, import_i18n15.__)("Add Element", "elementor"),
|
|
1135
|
+
icon: import_icons15.PlusIcon,
|
|
1099
1136
|
onClick: () => {
|
|
1100
1137
|
const extendedWindow = window;
|
|
1101
1138
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1116,10 +1153,10 @@ function useActionProps3() {
|
|
|
1116
1153
|
|
|
1117
1154
|
// src/extensions/elements/sync/sync-panel-title.ts
|
|
1118
1155
|
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
1119
|
-
var
|
|
1156
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
1120
1157
|
function syncPanelTitle() {
|
|
1121
|
-
const panelTitle = (0,
|
|
1122
|
-
const tabTitle = (0,
|
|
1158
|
+
const panelTitle = (0, import_i18n16.__)("Elements", "elementor");
|
|
1159
|
+
const tabTitle = (0, import_i18n16.__)("Widgets", "elementor");
|
|
1123
1160
|
(0, import_editor_v1_adapters8.__privateListenTo)((0, import_editor_v1_adapters8.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
|
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
1156
|
-
var
|
|
1157
|
-
var
|
|
1158
|
-
function
|
|
1193
|
+
var import_icons16 = require("@elementor/icons");
|
|
1194
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
1195
|
+
function init7() {
|
|
1159
1196
|
const isActive = (0, import_editor_v1_adapters9.isExperimentActive)(EXPERIMENT_NAME);
|
|
1160
1197
|
if (!isActive) {
|
|
1161
1198
|
return;
|
|
@@ -1166,8 +1203,8 @@ function init6() {
|
|
|
1166
1203
|
priority: 20,
|
|
1167
1204
|
useProps: () => {
|
|
1168
1205
|
return {
|
|
1169
|
-
icon:
|
|
1170
|
-
title: (0,
|
|
1206
|
+
icon: import_icons16.MessageLinesIcon,
|
|
1207
|
+
title: (0, import_i18n17.__)("Send Feedback", "elementor"),
|
|
1171
1208
|
onClick: () => {
|
|
1172
1209
|
dispatchEvent(new CustomEvent(FEEDBACK_TOGGLE_EVENT));
|
|
1173
1210
|
}
|
|
@@ -1178,12 +1215,12 @@ function init6() {
|
|
|
1178
1215
|
|
|
1179
1216
|
// src/extensions/finder/hooks/use-action-props.ts
|
|
1180
1217
|
var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
|
|
1181
|
-
var
|
|
1182
|
-
var
|
|
1183
|
-
function
|
|
1218
|
+
var import_icons17 = require("@elementor/icons");
|
|
1219
|
+
var import_i18n18 = require("@wordpress/i18n");
|
|
1220
|
+
function useActionProps5() {
|
|
1184
1221
|
return {
|
|
1185
|
-
title: (0,
|
|
1186
|
-
icon:
|
|
1222
|
+
title: (0, import_i18n18.__)("Finder", "elementor"),
|
|
1223
|
+
icon: import_icons17.SearchIcon,
|
|
1187
1224
|
onClick: () => {
|
|
1188
1225
|
const extendedWindow = window;
|
|
1189
1226
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1201,22 +1238,22 @@ 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
|
-
var
|
|
1214
|
-
var
|
|
1215
|
-
function
|
|
1250
|
+
var import_icons18 = require("@elementor/icons");
|
|
1251
|
+
var import_i18n19 = require("@wordpress/i18n");
|
|
1252
|
+
function useActionProps6() {
|
|
1216
1253
|
return {
|
|
1217
|
-
title: (0,
|
|
1254
|
+
title: (0, import_i18n19.__)("Help Center", "elementor"),
|
|
1218
1255
|
href: "https://go.elementor.com/editor-top-bar-learn/",
|
|
1219
|
-
icon:
|
|
1256
|
+
icon: import_icons18.HelpIcon,
|
|
1220
1257
|
target: "_blank",
|
|
1221
1258
|
onClick: () => {
|
|
1222
1259
|
const extendedWindow = window;
|
|
@@ -1234,24 +1271,24 @@ 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
|
|
|
1246
1283
|
// src/extensions/history/hooks/use-action-props.ts
|
|
1247
1284
|
var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
|
|
1248
|
-
var
|
|
1249
|
-
var
|
|
1250
|
-
function
|
|
1285
|
+
var import_icons19 = require("@elementor/icons");
|
|
1286
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
1287
|
+
function useActionProps7() {
|
|
1251
1288
|
const { isActive, isBlocked } = (0, import_editor_v1_adapters11.__privateUseRouteStatus)("panel/history");
|
|
1252
1289
|
return {
|
|
1253
|
-
title: (0,
|
|
1254
|
-
icon:
|
|
1290
|
+
title: (0, import_i18n20.__)("History", "elementor"),
|
|
1291
|
+
icon: import_icons19.HistoryIcon,
|
|
1255
1292
|
onClick: () => {
|
|
1256
1293
|
const extendedWindow = window;
|
|
1257
1294
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1271,22 +1308,22 @@ function useActionProps6() {
|
|
|
1271
1308
|
}
|
|
1272
1309
|
|
|
1273
1310
|
// src/extensions/history/index.ts
|
|
1274
|
-
function
|
|
1311
|
+
function init10() {
|
|
1275
1312
|
toolsMenu.registerToggleAction({
|
|
1276
1313
|
id: "open-history",
|
|
1277
1314
|
priority: 15,
|
|
1278
|
-
useProps:
|
|
1315
|
+
useProps: useActionProps7
|
|
1279
1316
|
});
|
|
1280
1317
|
}
|
|
1281
1318
|
|
|
1282
1319
|
// src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
|
|
1283
1320
|
var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
|
|
1284
|
-
var
|
|
1285
|
-
var
|
|
1286
|
-
function
|
|
1321
|
+
var import_icons20 = require("@elementor/icons");
|
|
1322
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
1323
|
+
function useActionProps8() {
|
|
1287
1324
|
return {
|
|
1288
|
-
icon:
|
|
1289
|
-
title: (0,
|
|
1325
|
+
icon: import_icons20.KeyboardIcon,
|
|
1326
|
+
title: (0, import_i18n21.__)("Keyboard Shortcuts", "elementor"),
|
|
1290
1327
|
onClick: () => {
|
|
1291
1328
|
const extendedWindow = window;
|
|
1292
1329
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1304,21 +1341,21 @@ function useActionProps7() {
|
|
|
1304
1341
|
}
|
|
1305
1342
|
|
|
1306
1343
|
// src/extensions/keyboard-shortcuts/index.ts
|
|
1307
|
-
function
|
|
1344
|
+
function init11() {
|
|
1308
1345
|
mainMenu.registerAction({
|
|
1309
1346
|
id: "open-keyboard-shortcuts",
|
|
1310
1347
|
group: "default",
|
|
1311
1348
|
priority: 40,
|
|
1312
|
-
useProps:
|
|
1349
|
+
useProps: useActionProps8
|
|
1313
1350
|
});
|
|
1314
1351
|
}
|
|
1315
1352
|
|
|
1316
1353
|
// src/extensions/responsive/components/breakpoints-switcher.tsx
|
|
1317
1354
|
var React23 = __toESM(require("react"));
|
|
1318
1355
|
var import_editor_responsive = require("@elementor/editor-responsive");
|
|
1319
|
-
var
|
|
1356
|
+
var import_icons21 = require("@elementor/icons");
|
|
1320
1357
|
var import_ui14 = require("@elementor/ui");
|
|
1321
|
-
var
|
|
1358
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
1322
1359
|
function BreakpointsSwitcher() {
|
|
1323
1360
|
const breakpoints = (0, import_editor_responsive.useBreakpoints)();
|
|
1324
1361
|
const activeBreakpoint = (0, import_editor_responsive.useActiveBreakpoint)();
|
|
@@ -1347,7 +1384,7 @@ function BreakpointsSwitcher() {
|
|
|
1347
1384
|
indicatorColor: "secondary",
|
|
1348
1385
|
value: activeBreakpoint,
|
|
1349
1386
|
onChange,
|
|
1350
|
-
"aria-label": (0,
|
|
1387
|
+
"aria-label": (0, import_i18n22.__)("Switch Device", "elementor"),
|
|
1351
1388
|
sx: {
|
|
1352
1389
|
"& .MuiTabs-indicator": {
|
|
1353
1390
|
backgroundColor: "text.primary"
|
|
@@ -1387,24 +1424,24 @@ function Tooltip4(props) {
|
|
|
1387
1424
|
);
|
|
1388
1425
|
}
|
|
1389
1426
|
var iconsMap = {
|
|
1390
|
-
widescreen:
|
|
1391
|
-
desktop:
|
|
1392
|
-
laptop:
|
|
1393
|
-
tablet_extra:
|
|
1394
|
-
tablet:
|
|
1395
|
-
mobile_extra:
|
|
1396
|
-
mobile:
|
|
1427
|
+
widescreen: import_icons21.WidescreenIcon,
|
|
1428
|
+
desktop: import_icons21.DesktopIcon,
|
|
1429
|
+
laptop: import_icons21.LaptopIcon,
|
|
1430
|
+
tablet_extra: import_icons21.TabletLandscapeIcon,
|
|
1431
|
+
tablet: import_icons21.TabletPortraitIcon,
|
|
1432
|
+
mobile_extra: import_icons21.MobileLandscapeIcon,
|
|
1433
|
+
mobile: import_icons21.MobilePortraitIcon
|
|
1397
1434
|
};
|
|
1398
1435
|
var labelsMap = {
|
|
1399
1436
|
default: "%s",
|
|
1400
1437
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1401
|
-
"min-width": (0,
|
|
1438
|
+
"min-width": (0, import_i18n22.__)("%s (%dpx and up)", "elementor"),
|
|
1402
1439
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1403
|
-
"max-width": (0,
|
|
1440
|
+
"max-width": (0, import_i18n22.__)("%s (up to %dpx)", "elementor")
|
|
1404
1441
|
};
|
|
1405
1442
|
|
|
1406
1443
|
// src/extensions/responsive/index.ts
|
|
1407
|
-
function
|
|
1444
|
+
function init12() {
|
|
1408
1445
|
injectIntoResponsive({
|
|
1409
1446
|
id: "responsive-breakpoints-switcher",
|
|
1410
1447
|
component: BreakpointsSwitcher,
|
|
@@ -1443,7 +1480,7 @@ function getContainerRef() {
|
|
|
1443
1480
|
var React25 = __toESM(require("react"));
|
|
1444
1481
|
var import_editor_documents10 = require("@elementor/editor-documents");
|
|
1445
1482
|
var import_ui16 = require("@elementor/ui");
|
|
1446
|
-
var
|
|
1483
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
1447
1484
|
function PrimaryAction2() {
|
|
1448
1485
|
const document2 = (0, import_editor_documents10.__useActiveDocument)();
|
|
1449
1486
|
const { save } = (0, import_editor_documents10.__useActiveDocumentActions)();
|
|
@@ -1466,7 +1503,7 @@ function PrimaryAction2() {
|
|
|
1466
1503
|
sx: { width: "100%" },
|
|
1467
1504
|
onClick: () => document2 && !document2.isSaving ? save() : null
|
|
1468
1505
|
},
|
|
1469
|
-
document2?.isSaving ? /* @__PURE__ */ React25.createElement(import_ui16.CircularProgress, null) : (0,
|
|
1506
|
+
document2?.isSaving ? /* @__PURE__ */ React25.createElement(import_ui16.CircularProgress, null) : (0, import_i18n23.__)("Save Changes", "elementor")
|
|
1470
1507
|
)
|
|
1471
1508
|
);
|
|
1472
1509
|
}
|
|
@@ -1478,15 +1515,15 @@ function PortalledPrimaryAction() {
|
|
|
1478
1515
|
|
|
1479
1516
|
// src/extensions/site-settings/hooks/use-action-props.ts
|
|
1480
1517
|
var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
|
|
1481
|
-
var
|
|
1482
|
-
var
|
|
1483
|
-
function
|
|
1518
|
+
var import_icons22 = require("@elementor/icons");
|
|
1519
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
1520
|
+
function useActionProps9() {
|
|
1484
1521
|
const { isActive, isBlocked } = (0, import_editor_v1_adapters14.__privateUseRouteStatus)("panel/global", {
|
|
1485
1522
|
blockOnKitRoutes: false
|
|
1486
1523
|
});
|
|
1487
1524
|
return {
|
|
1488
|
-
title: (0,
|
|
1489
|
-
icon:
|
|
1525
|
+
title: (0, import_i18n24.__)("Site Settings", "elementor"),
|
|
1526
|
+
icon: import_icons22.SettingsIcon,
|
|
1490
1527
|
onClick: () => {
|
|
1491
1528
|
const extendedWindow = window;
|
|
1492
1529
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1510,7 +1547,7 @@ function useActionProps8() {
|
|
|
1510
1547
|
}
|
|
1511
1548
|
|
|
1512
1549
|
// src/extensions/site-settings/index.ts
|
|
1513
|
-
function
|
|
1550
|
+
function init13() {
|
|
1514
1551
|
(0, import_editor.injectIntoTop)({
|
|
1515
1552
|
id: "site-settings-primary-action-portal",
|
|
1516
1553
|
component: PortalledPrimaryAction
|
|
@@ -1519,19 +1556,19 @@ function init12() {
|
|
|
1519
1556
|
id: "toggle-site-settings",
|
|
1520
1557
|
group: "default",
|
|
1521
1558
|
priority: 1,
|
|
1522
|
-
useProps:
|
|
1559
|
+
useProps: useActionProps9
|
|
1523
1560
|
});
|
|
1524
1561
|
}
|
|
1525
1562
|
|
|
1526
1563
|
// src/extensions/structure/hooks/use-action-props.ts
|
|
1527
1564
|
var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
|
|
1528
|
-
var
|
|
1529
|
-
var
|
|
1530
|
-
function
|
|
1565
|
+
var import_icons23 = require("@elementor/icons");
|
|
1566
|
+
var import_i18n25 = require("@wordpress/i18n");
|
|
1567
|
+
function useActionProps10() {
|
|
1531
1568
|
const { isActive, isBlocked } = (0, import_editor_v1_adapters15.__privateUseRouteStatus)("navigator");
|
|
1532
1569
|
return {
|
|
1533
|
-
title: (0,
|
|
1534
|
-
icon:
|
|
1570
|
+
title: (0, import_i18n25.__)("Structure", "elementor"),
|
|
1571
|
+
icon: import_icons23.StructureIcon,
|
|
1535
1572
|
onClick: () => {
|
|
1536
1573
|
const extendedWindow = window;
|
|
1537
1574
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1551,22 +1588,22 @@ function useActionProps9() {
|
|
|
1551
1588
|
}
|
|
1552
1589
|
|
|
1553
1590
|
// src/extensions/structure/index.ts
|
|
1554
|
-
function
|
|
1591
|
+
function init14() {
|
|
1555
1592
|
utilitiesMenu.registerToggleAction({
|
|
1556
1593
|
id: "toggle-structure-view",
|
|
1557
1594
|
priority: 25,
|
|
1558
|
-
useProps:
|
|
1595
|
+
useProps: useActionProps10
|
|
1559
1596
|
});
|
|
1560
1597
|
}
|
|
1561
1598
|
|
|
1562
1599
|
// src/extensions/theme-builder/hooks/use-action-props.ts
|
|
1563
1600
|
var import_editor_v1_adapters16 = require("@elementor/editor-v1-adapters");
|
|
1564
|
-
var
|
|
1565
|
-
var
|
|
1566
|
-
function
|
|
1601
|
+
var import_icons24 = require("@elementor/icons");
|
|
1602
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
1603
|
+
function useActionProps11() {
|
|
1567
1604
|
return {
|
|
1568
|
-
icon:
|
|
1569
|
-
title: (0,
|
|
1605
|
+
icon: import_icons24.ThemeBuilderIcon,
|
|
1606
|
+
title: (0, import_i18n26.__)("Theme Builder", "elementor"),
|
|
1570
1607
|
onClick: () => {
|
|
1571
1608
|
const extendedWindow = window;
|
|
1572
1609
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1584,24 +1621,24 @@ function useActionProps10() {
|
|
|
1584
1621
|
}
|
|
1585
1622
|
|
|
1586
1623
|
// src/extensions/theme-builder/index.ts
|
|
1587
|
-
function
|
|
1624
|
+
function init15() {
|
|
1588
1625
|
mainMenu.registerAction({
|
|
1589
1626
|
id: "open-theme-builder",
|
|
1590
1627
|
group: "default",
|
|
1591
1628
|
priority: 10,
|
|
1592
|
-
useProps:
|
|
1629
|
+
useProps: useActionProps11
|
|
1593
1630
|
});
|
|
1594
1631
|
}
|
|
1595
1632
|
|
|
1596
1633
|
// src/extensions/user-preferences/hooks/use-action-props.ts
|
|
1597
1634
|
var import_editor_v1_adapters17 = require("@elementor/editor-v1-adapters");
|
|
1598
|
-
var
|
|
1599
|
-
var
|
|
1600
|
-
function
|
|
1635
|
+
var import_icons25 = require("@elementor/icons");
|
|
1636
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
1637
|
+
function useActionProps12() {
|
|
1601
1638
|
const { isActive, isBlocked } = (0, import_editor_v1_adapters17.__privateUseRouteStatus)("panel/editor-preferences");
|
|
1602
1639
|
return {
|
|
1603
|
-
icon:
|
|
1604
|
-
title: (0,
|
|
1640
|
+
icon: import_icons25.ToggleRightIcon,
|
|
1641
|
+
title: (0, import_i18n27.__)("User Preferences", "elementor"),
|
|
1605
1642
|
onClick: () => {
|
|
1606
1643
|
const extendedWindow = window;
|
|
1607
1644
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1621,20 +1658,20 @@ function useActionProps11() {
|
|
|
1621
1658
|
}
|
|
1622
1659
|
|
|
1623
1660
|
// src/extensions/user-preferences/index.ts
|
|
1624
|
-
function
|
|
1661
|
+
function init16() {
|
|
1625
1662
|
mainMenu.registerToggleAction({
|
|
1626
1663
|
id: "open-user-preferences",
|
|
1627
1664
|
group: "default",
|
|
1628
1665
|
priority: 30,
|
|
1629
|
-
useProps:
|
|
1666
|
+
useProps: useActionProps12
|
|
1630
1667
|
});
|
|
1631
1668
|
}
|
|
1632
1669
|
|
|
1633
1670
|
// src/extensions/wordpress/index.ts
|
|
1634
1671
|
var import_editor_documents11 = require("@elementor/editor-documents");
|
|
1635
|
-
var
|
|
1636
|
-
var
|
|
1637
|
-
function
|
|
1672
|
+
var import_icons26 = require("@elementor/icons");
|
|
1673
|
+
var import_i18n28 = require("@wordpress/i18n");
|
|
1674
|
+
function init17() {
|
|
1638
1675
|
mainMenu.registerLink({
|
|
1639
1676
|
id: "exit-to-wordpress",
|
|
1640
1677
|
group: "exits",
|
|
@@ -1642,9 +1679,9 @@ function init16() {
|
|
|
1642
1679
|
useProps: () => {
|
|
1643
1680
|
const document2 = (0, import_editor_documents11.__useActiveDocument)();
|
|
1644
1681
|
return {
|
|
1645
|
-
title: (0,
|
|
1682
|
+
title: (0, import_i18n28.__)("Exit to WordPress", "elementor"),
|
|
1646
1683
|
href: document2?.links?.platformEdit,
|
|
1647
|
-
icon:
|
|
1684
|
+
icon: import_icons26.WordpressIcon,
|
|
1648
1685
|
onClick: () => {
|
|
1649
1686
|
const extendedWindow = window;
|
|
1650
1687
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1666,23 +1703,24 @@ function init16() {
|
|
|
1666
1703
|
}
|
|
1667
1704
|
|
|
1668
1705
|
// src/extensions/index.ts
|
|
1669
|
-
function
|
|
1670
|
-
|
|
1706
|
+
function init18() {
|
|
1707
|
+
init();
|
|
1671
1708
|
init3();
|
|
1672
1709
|
init4();
|
|
1673
1710
|
init5();
|
|
1674
|
-
|
|
1711
|
+
init6();
|
|
1675
1712
|
init8();
|
|
1676
1713
|
init9();
|
|
1677
1714
|
init10();
|
|
1678
1715
|
init11();
|
|
1679
1716
|
init12();
|
|
1680
|
-
init6();
|
|
1681
1717
|
init13();
|
|
1718
|
+
init7();
|
|
1682
1719
|
init14();
|
|
1683
1720
|
init15();
|
|
1684
1721
|
init16();
|
|
1685
|
-
|
|
1722
|
+
init17();
|
|
1723
|
+
init2();
|
|
1686
1724
|
}
|
|
1687
1725
|
|
|
1688
1726
|
// src/sync/redirect-old-menus.ts
|
|
@@ -1694,9 +1732,9 @@ function redirectOldMenus() {
|
|
|
1694
1732
|
}
|
|
1695
1733
|
|
|
1696
1734
|
// src/init.ts
|
|
1697
|
-
function
|
|
1735
|
+
function init19() {
|
|
1698
1736
|
redirectOldMenus();
|
|
1699
|
-
|
|
1737
|
+
init18();
|
|
1700
1738
|
(0, import_editor2.injectIntoTop)({
|
|
1701
1739
|
id: "app-bar",
|
|
1702
1740
|
component: AppBar
|