@elementor/editor-app-bar 3.32.0-21 → 3.32.0-23
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.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +109 -142
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +67 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/components/actions/link.tsx +2 -3
- package/src/components/ui/popover-menu-item.tsx +1 -3
- package/src/extensions/help/index.ts +0 -1
- package/src/extensions/index.ts +0 -2
- package/src/extensions/wordpress/index.ts +0 -1
- package/src/types.ts +0 -11
- package/src/extensions/connect/hooks/use-connect-link-config.tsx +0 -23
- package/src/extensions/connect/index.ts +0 -11
package/dist/index.mjs
CHANGED
|
@@ -32,10 +32,9 @@ function PopoverMenuItem({
|
|
|
32
32
|
target,
|
|
33
33
|
disabled,
|
|
34
34
|
isGroupParent,
|
|
35
|
-
showExternalLinkIcon,
|
|
36
35
|
...props
|
|
37
36
|
}) {
|
|
38
|
-
const isExternalLink = href && target === "_blank"
|
|
37
|
+
const isExternalLink = href && target === "_blank";
|
|
39
38
|
return /* @__PURE__ */ React2.createElement(
|
|
40
39
|
MenuItem,
|
|
41
40
|
{
|
|
@@ -109,12 +108,12 @@ function Action({ icon: Icon, title, visible = true, ...props }) {
|
|
|
109
108
|
|
|
110
109
|
// src/components/actions/link.tsx
|
|
111
110
|
import * as React5 from "react";
|
|
112
|
-
function Link({ icon: Icon, title, visible = true,
|
|
111
|
+
function Link({ icon: Icon, title, visible = true, ...props }) {
|
|
113
112
|
const { type } = useMenuContext();
|
|
114
113
|
if (!visible) {
|
|
115
114
|
return null;
|
|
116
115
|
}
|
|
117
|
-
return type === "toolbar" ? /* @__PURE__ */ React5.createElement(ToolbarMenuItem, { title, ...props }, /* @__PURE__ */ React5.createElement(Icon, null)) : /* @__PURE__ */ React5.createElement(PopoverMenuItem, { ...props, text: title, icon: /* @__PURE__ */ React5.createElement(Icon, null)
|
|
116
|
+
return type === "toolbar" ? /* @__PURE__ */ React5.createElement(ToolbarMenuItem, { title, ...props }, /* @__PURE__ */ React5.createElement(Icon, null)) : /* @__PURE__ */ React5.createElement(PopoverMenuItem, { ...props, text: title, icon: /* @__PURE__ */ React5.createElement(Icon, null) });
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
// src/components/actions/toggle-action.tsx
|
|
@@ -408,35 +407,6 @@ function AppBar() {
|
|
|
408
407
|
return /* @__PURE__ */ React19.createElement(ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React19.createElement(BaseAppBar, { position: "sticky" }, /* @__PURE__ */ React19.createElement(Toolbar, { disableGutters: true, variant: "dense" }, /* @__PURE__ */ React19.createElement(Box3, { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", flexGrow: 1 }, /* @__PURE__ */ React19.createElement(Grid, { container: true, flexWrap: "nowrap" }, /* @__PURE__ */ React19.createElement(MainMenuLocation, null), document2?.permissions?.allowAddingWidgets && /* @__PURE__ */ React19.createElement(ToolsMenuLocation, null)), /* @__PURE__ */ React19.createElement(Grid, { container: true, justifyContent: "center" }, /* @__PURE__ */ React19.createElement(ToolbarMenu, { spacing: 1.5 }, /* @__PURE__ */ React19.createElement(Divider3, { orientation: "vertical" }), /* @__PURE__ */ React19.createElement(PageIndicationLocation, null), /* @__PURE__ */ React19.createElement(Divider3, { orientation: "vertical" }), /* @__PURE__ */ React19.createElement(ResponsiveLocation, null), /* @__PURE__ */ React19.createElement(Divider3, { orientation: "vertical" }))), /* @__PURE__ */ React19.createElement(Grid, { container: true, justifyContent: "flex-end", flexWrap: "nowrap" }, /* @__PURE__ */ React19.createElement(UtilitiesMenuLocation, null), /* @__PURE__ */ React19.createElement(PrimaryActionLocation, null))))));
|
|
409
408
|
}
|
|
410
409
|
|
|
411
|
-
// src/extensions/connect/hooks/use-connect-link-config.tsx
|
|
412
|
-
import { UserIcon } from "@elementor/icons";
|
|
413
|
-
import { __ as __4 } from "@wordpress/i18n";
|
|
414
|
-
function useConnectLinkConfig() {
|
|
415
|
-
const extendedWindow = window;
|
|
416
|
-
const isUserConnected = extendedWindow?.elementorCommon?.config.library_connect.is_connected ?? false;
|
|
417
|
-
return isUserConnected ? {
|
|
418
|
-
title: __4("My Elementor", "elementor"),
|
|
419
|
-
href: extendedWindow?.elementorCommon?.config.user.top_bar.my_elementor_url,
|
|
420
|
-
icon: UserIcon,
|
|
421
|
-
target: "_blank"
|
|
422
|
-
} : {
|
|
423
|
-
title: __4("Connect my account", "elementor"),
|
|
424
|
-
href: extendedWindow?.elementorCommon?.config.user.top_bar.connect_url,
|
|
425
|
-
icon: UserIcon,
|
|
426
|
-
target: "_blank"
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
// src/extensions/connect/index.ts
|
|
431
|
-
function init() {
|
|
432
|
-
mainMenu.registerLink({
|
|
433
|
-
id: "app-bar-connect",
|
|
434
|
-
group: "exits",
|
|
435
|
-
priority: 10,
|
|
436
|
-
useProps: useConnectLinkConfig
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
|
|
440
410
|
// src/extensions/documents-indicator/components/settings-button.tsx
|
|
441
411
|
import * as React20 from "react";
|
|
442
412
|
import {
|
|
@@ -449,7 +419,7 @@ import {
|
|
|
449
419
|
} from "@elementor/editor-v1-adapters";
|
|
450
420
|
import { SettingsIcon } from "@elementor/icons";
|
|
451
421
|
import { Box as Box4, ToggleButton as ToggleButton3, Tooltip as BaseTooltip2 } from "@elementor/ui";
|
|
452
|
-
import { __ as
|
|
422
|
+
import { __ as __4 } from "@wordpress/i18n";
|
|
453
423
|
function SettingsButton() {
|
|
454
424
|
const activeDocument = useActiveDocument2();
|
|
455
425
|
const hostDocument = useHostDocument();
|
|
@@ -458,7 +428,7 @@ function SettingsButton() {
|
|
|
458
428
|
if (!document2) {
|
|
459
429
|
return null;
|
|
460
430
|
}
|
|
461
|
-
const title =
|
|
431
|
+
const title = __4("%s Settings", "elementor").replace("%s", document2.type.label);
|
|
462
432
|
return /* @__PURE__ */ React20.createElement(Tooltip3, { title }, /* @__PURE__ */ React20.createElement(Box4, { component: "span", "aria-label": void 0 }, /* @__PURE__ */ React20.createElement(
|
|
463
433
|
ToggleButton3,
|
|
464
434
|
{
|
|
@@ -512,7 +482,7 @@ function Tooltip3(props) {
|
|
|
512
482
|
}
|
|
513
483
|
|
|
514
484
|
// src/extensions/documents-indicator/index.ts
|
|
515
|
-
function
|
|
485
|
+
function init() {
|
|
516
486
|
injectIntoPageIndication({
|
|
517
487
|
id: "document-settings-button",
|
|
518
488
|
component: SettingsButton,
|
|
@@ -527,12 +497,12 @@ function init2() {
|
|
|
527
497
|
import { __useActiveDocument as useActiveDocument3 } from "@elementor/editor-documents";
|
|
528
498
|
import { __privateRunCommand as runCommand } from "@elementor/editor-v1-adapters";
|
|
529
499
|
import { EyeIcon } from "@elementor/icons";
|
|
530
|
-
import { __ as
|
|
500
|
+
import { __ as __5 } from "@wordpress/i18n";
|
|
531
501
|
function useActionProps() {
|
|
532
502
|
const document2 = useActiveDocument3();
|
|
533
503
|
return {
|
|
534
504
|
icon: EyeIcon,
|
|
535
|
-
title:
|
|
505
|
+
title: __5("Preview Changes", "elementor"),
|
|
536
506
|
onClick: () => {
|
|
537
507
|
const extendedWindow = window;
|
|
538
508
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -555,7 +525,7 @@ function useActionProps() {
|
|
|
555
525
|
}
|
|
556
526
|
|
|
557
527
|
// src/extensions/documents-preview/index.ts
|
|
558
|
-
function
|
|
528
|
+
function init2() {
|
|
559
529
|
utilitiesMenu.registerAction({
|
|
560
530
|
id: "document-preview-button",
|
|
561
531
|
priority: 30,
|
|
@@ -582,7 +552,7 @@ import {
|
|
|
582
552
|
Tooltip as Tooltip4,
|
|
583
553
|
usePopupState as usePopupState4
|
|
584
554
|
} from "@elementor/ui";
|
|
585
|
-
import { __ as
|
|
555
|
+
import { __ as __6 } from "@wordpress/i18n";
|
|
586
556
|
|
|
587
557
|
// src/extensions/documents-save/components/primary-action-menu.tsx
|
|
588
558
|
import * as React21 from "react";
|
|
@@ -681,7 +651,7 @@ function PrimaryAction() {
|
|
|
681
651
|
), /* @__PURE__ */ React22.createElement(
|
|
682
652
|
Tooltip4,
|
|
683
653
|
{
|
|
684
|
-
title:
|
|
654
|
+
title: __6("Save Options", "elementor"),
|
|
685
655
|
PopperProps: {
|
|
686
656
|
sx: {
|
|
687
657
|
"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom": {
|
|
@@ -698,14 +668,14 @@ function PrimaryAction() {
|
|
|
698
668
|
...bindTrigger4(popupState),
|
|
699
669
|
sx: { px: 0, height: "100%", borderRadius: 0 },
|
|
700
670
|
disabled: isSaveOptionsDisabled,
|
|
701
|
-
"aria-label":
|
|
671
|
+
"aria-label": __6("Save Options", "elementor")
|
|
702
672
|
},
|
|
703
673
|
/* @__PURE__ */ React22.createElement(ChevronDownIcon, null)
|
|
704
674
|
))
|
|
705
675
|
)), /* @__PURE__ */ React22.createElement(PrimaryActionMenu, { ...bindMenu4(popupState), onClick: popupState.close }));
|
|
706
676
|
}
|
|
707
677
|
function getLabel(document2) {
|
|
708
|
-
return document2.userCan.publish ?
|
|
678
|
+
return document2.userCan.publish ? __6("Publish", "elementor") : __6("Submit", "elementor");
|
|
709
679
|
}
|
|
710
680
|
function isPublishEnabled(document2) {
|
|
711
681
|
if (document2.type.value === "kit") {
|
|
@@ -720,13 +690,13 @@ import {
|
|
|
720
690
|
__useActiveDocumentActions as useActiveDocumentActions2
|
|
721
691
|
} from "@elementor/editor-documents";
|
|
722
692
|
import { LinkIcon } from "@elementor/icons";
|
|
723
|
-
import { __ as
|
|
693
|
+
import { __ as __7 } from "@wordpress/i18n";
|
|
724
694
|
function useDocumentCopyAndShareProps() {
|
|
725
695
|
const document2 = useActiveDocument5();
|
|
726
696
|
const { copyAndShare } = useActiveDocumentActions2();
|
|
727
697
|
return {
|
|
728
698
|
icon: LinkIcon,
|
|
729
|
-
title:
|
|
699
|
+
title: __7("Copy and Share", "elementor"),
|
|
730
700
|
onClick: copyAndShare,
|
|
731
701
|
disabled: !document2 || document2.isSaving || document2.isSavingDraft || !("publish" === document2.status.value),
|
|
732
702
|
visible: document2?.permissions?.showCopyAndShare
|
|
@@ -739,13 +709,13 @@ import {
|
|
|
739
709
|
__useActiveDocumentActions as useActiveDocumentActions3
|
|
740
710
|
} from "@elementor/editor-documents";
|
|
741
711
|
import { FileReportIcon } from "@elementor/icons";
|
|
742
|
-
import { __ as
|
|
712
|
+
import { __ as __8 } from "@wordpress/i18n";
|
|
743
713
|
function useDocumentSaveDraftProps() {
|
|
744
714
|
const document2 = useActiveDocument6();
|
|
745
715
|
const { saveDraft } = useActiveDocumentActions3();
|
|
746
716
|
return {
|
|
747
717
|
icon: FileReportIcon,
|
|
748
|
-
title:
|
|
718
|
+
title: __8("Save Draft", "elementor"),
|
|
749
719
|
onClick: saveDraft,
|
|
750
720
|
disabled: !document2 || document2.isSaving || document2.isSavingDraft || !document2.isDirty
|
|
751
721
|
};
|
|
@@ -754,12 +724,12 @@ function useDocumentSaveDraftProps() {
|
|
|
754
724
|
// src/extensions/documents-save/hooks/use-document-save-template-props.ts
|
|
755
725
|
import { __useActiveDocumentActions as useActiveDocumentActions4 } from "@elementor/editor-documents";
|
|
756
726
|
import { FolderIcon } from "@elementor/icons";
|
|
757
|
-
import { __ as
|
|
727
|
+
import { __ as __9 } from "@wordpress/i18n";
|
|
758
728
|
function useDocumentSaveTemplateProps() {
|
|
759
729
|
const { saveTemplate } = useActiveDocumentActions4();
|
|
760
730
|
return {
|
|
761
731
|
icon: FolderIcon,
|
|
762
|
-
title:
|
|
732
|
+
title: __9("Save as Template", "elementor"),
|
|
763
733
|
onClick: saveTemplate
|
|
764
734
|
};
|
|
765
735
|
}
|
|
@@ -768,12 +738,12 @@ function useDocumentSaveTemplateProps() {
|
|
|
768
738
|
import { __useActiveDocument as useActiveDocument7 } from "@elementor/editor-documents";
|
|
769
739
|
import { __privateRunCommand as runCommand2 } from "@elementor/editor-v1-adapters";
|
|
770
740
|
import { EyeIcon as EyeIcon2 } from "@elementor/icons";
|
|
771
|
-
import { __ as
|
|
741
|
+
import { __ as __10 } from "@wordpress/i18n";
|
|
772
742
|
function useDocumentViewPageProps() {
|
|
773
743
|
const document2 = useActiveDocument7();
|
|
774
744
|
return {
|
|
775
745
|
icon: EyeIcon2,
|
|
776
|
-
title:
|
|
746
|
+
title: __10("View Page", "elementor"),
|
|
777
747
|
onClick: () => document2?.id && runCommand2("editor/documents/view", {
|
|
778
748
|
id: document2.id
|
|
779
749
|
})
|
|
@@ -781,7 +751,7 @@ function useDocumentViewPageProps() {
|
|
|
781
751
|
}
|
|
782
752
|
|
|
783
753
|
// src/extensions/documents-save/index.ts
|
|
784
|
-
function
|
|
754
|
+
function init3() {
|
|
785
755
|
injectIntoPrimaryAction({
|
|
786
756
|
id: "document-primary-action",
|
|
787
757
|
component: PrimaryAction
|
|
@@ -816,11 +786,11 @@ import {
|
|
|
816
786
|
__privateUseRouteStatus as useRouteStatus2
|
|
817
787
|
} from "@elementor/editor-v1-adapters";
|
|
818
788
|
import { PlusIcon } from "@elementor/icons";
|
|
819
|
-
import { __ as
|
|
789
|
+
import { __ as __11 } from "@wordpress/i18n";
|
|
820
790
|
function useActionProps2() {
|
|
821
791
|
const { isActive, isBlocked } = useRouteStatus2("panel/elements");
|
|
822
792
|
return {
|
|
823
|
-
title:
|
|
793
|
+
title: __11("Add Element", "elementor"),
|
|
824
794
|
icon: PlusIcon,
|
|
825
795
|
onClick: () => {
|
|
826
796
|
const extendedWindow = window;
|
|
@@ -847,10 +817,10 @@ import {
|
|
|
847
817
|
routeOpenEvent,
|
|
848
818
|
v1ReadyEvent
|
|
849
819
|
} from "@elementor/editor-v1-adapters";
|
|
850
|
-
import { __ as
|
|
820
|
+
import { __ as __12 } from "@wordpress/i18n";
|
|
851
821
|
function syncPanelTitle() {
|
|
852
|
-
const panelTitle =
|
|
853
|
-
const tabTitle =
|
|
822
|
+
const panelTitle = __12("Elements", "elementor");
|
|
823
|
+
const tabTitle = __12("Widgets", "elementor");
|
|
854
824
|
listenTo(routeOpenEvent("panel/elements"), () => {
|
|
855
825
|
setPanelTitle(panelTitle);
|
|
856
826
|
setTabTitle(tabTitle);
|
|
@@ -873,7 +843,7 @@ function setTabTitle(title) {
|
|
|
873
843
|
}
|
|
874
844
|
|
|
875
845
|
// src/extensions/elements/index.ts
|
|
876
|
-
function
|
|
846
|
+
function init4() {
|
|
877
847
|
syncPanelTitle();
|
|
878
848
|
toolsMenu.registerToggleAction({
|
|
879
849
|
id: "open-elements-panel",
|
|
@@ -885,10 +855,10 @@ function init5() {
|
|
|
885
855
|
// src/extensions/finder/hooks/use-action-props.ts
|
|
886
856
|
import { __privateRunCommand as runCommand3 } from "@elementor/editor-v1-adapters";
|
|
887
857
|
import { SearchIcon } from "@elementor/icons";
|
|
888
|
-
import { __ as
|
|
858
|
+
import { __ as __13 } from "@wordpress/i18n";
|
|
889
859
|
function useActionProps3() {
|
|
890
860
|
return {
|
|
891
|
-
title:
|
|
861
|
+
title: __13("Finder", "elementor"),
|
|
892
862
|
icon: SearchIcon,
|
|
893
863
|
onClick: () => {
|
|
894
864
|
const extendedWindow = window;
|
|
@@ -907,7 +877,7 @@ function useActionProps3() {
|
|
|
907
877
|
}
|
|
908
878
|
|
|
909
879
|
// src/extensions/finder/index.ts
|
|
910
|
-
function
|
|
880
|
+
function init5() {
|
|
911
881
|
utilitiesMenu.registerAction({
|
|
912
882
|
id: "toggle-finder",
|
|
913
883
|
priority: 15,
|
|
@@ -918,19 +888,18 @@ function init6() {
|
|
|
918
888
|
|
|
919
889
|
// src/extensions/help/index.ts
|
|
920
890
|
import { HelpIcon } from "@elementor/icons";
|
|
921
|
-
import { __ as
|
|
922
|
-
function
|
|
891
|
+
import { __ as __14 } from "@wordpress/i18n";
|
|
892
|
+
function init6() {
|
|
923
893
|
utilitiesMenu.registerLink({
|
|
924
894
|
id: "open-help-center",
|
|
925
895
|
priority: 25,
|
|
926
896
|
// After Finder.
|
|
927
897
|
useProps: () => {
|
|
928
898
|
return {
|
|
929
|
-
title:
|
|
899
|
+
title: __14("Help", "elementor"),
|
|
930
900
|
href: "https://go.elementor.com/editor-top-bar-learn/",
|
|
931
901
|
icon: HelpIcon,
|
|
932
902
|
target: "_blank",
|
|
933
|
-
showExternalLinkIcon: true,
|
|
934
903
|
onClick: () => {
|
|
935
904
|
const extendedWindow = window;
|
|
936
905
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -954,11 +923,11 @@ import {
|
|
|
954
923
|
__privateUseRouteStatus as useRouteStatus3
|
|
955
924
|
} from "@elementor/editor-v1-adapters";
|
|
956
925
|
import { HistoryIcon } from "@elementor/icons";
|
|
957
|
-
import { __ as
|
|
926
|
+
import { __ as __15 } from "@wordpress/i18n";
|
|
958
927
|
function useActionProps4() {
|
|
959
928
|
const { isActive, isBlocked } = useRouteStatus3("panel/history");
|
|
960
929
|
return {
|
|
961
|
-
title:
|
|
930
|
+
title: __15("History", "elementor"),
|
|
962
931
|
icon: HistoryIcon,
|
|
963
932
|
onClick: () => {
|
|
964
933
|
const extendedWindow = window;
|
|
@@ -979,7 +948,7 @@ function useActionProps4() {
|
|
|
979
948
|
}
|
|
980
949
|
|
|
981
950
|
// src/extensions/history/index.ts
|
|
982
|
-
function
|
|
951
|
+
function init7() {
|
|
983
952
|
mainMenu.registerToggleAction({
|
|
984
953
|
id: "open-history",
|
|
985
954
|
priority: 20,
|
|
@@ -990,11 +959,11 @@ function init8() {
|
|
|
990
959
|
// src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
|
|
991
960
|
import { __privateRunCommand as runCommand4 } from "@elementor/editor-v1-adapters";
|
|
992
961
|
import { KeyboardIcon } from "@elementor/icons";
|
|
993
|
-
import { __ as
|
|
962
|
+
import { __ as __16 } from "@wordpress/i18n";
|
|
994
963
|
function useActionProps5() {
|
|
995
964
|
return {
|
|
996
965
|
icon: KeyboardIcon,
|
|
997
|
-
title:
|
|
966
|
+
title: __16("Keyboard Shortcuts", "elementor"),
|
|
998
967
|
onClick: () => {
|
|
999
968
|
const extendedWindow = window;
|
|
1000
969
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1012,7 +981,7 @@ function useActionProps5() {
|
|
|
1012
981
|
}
|
|
1013
982
|
|
|
1014
983
|
// src/extensions/keyboard-shortcuts/index.ts
|
|
1015
|
-
function
|
|
984
|
+
function init8() {
|
|
1016
985
|
mainMenu.registerAction({
|
|
1017
986
|
id: "open-keyboard-shortcuts",
|
|
1018
987
|
group: "default",
|
|
@@ -1039,7 +1008,7 @@ import {
|
|
|
1039
1008
|
WidescreenIcon
|
|
1040
1009
|
} from "@elementor/icons";
|
|
1041
1010
|
import { Tab, Tabs, Tooltip as BaseTooltip3 } from "@elementor/ui";
|
|
1042
|
-
import { __ as
|
|
1011
|
+
import { __ as __17 } from "@wordpress/i18n";
|
|
1043
1012
|
function BreakpointsSwitcher() {
|
|
1044
1013
|
const breakpoints = useBreakpoints();
|
|
1045
1014
|
const activeBreakpoint = useActiveBreakpoint();
|
|
@@ -1068,7 +1037,7 @@ function BreakpointsSwitcher() {
|
|
|
1068
1037
|
indicatorColor: "secondary",
|
|
1069
1038
|
value: activeBreakpoint,
|
|
1070
1039
|
onChange,
|
|
1071
|
-
"aria-label":
|
|
1040
|
+
"aria-label": __17("Switch Device", "elementor"),
|
|
1072
1041
|
sx: {
|
|
1073
1042
|
"& .MuiTabs-indicator": {
|
|
1074
1043
|
backgroundColor: "text.primary"
|
|
@@ -1119,13 +1088,13 @@ var iconsMap = {
|
|
|
1119
1088
|
var labelsMap = {
|
|
1120
1089
|
default: "%s",
|
|
1121
1090
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1122
|
-
"min-width":
|
|
1091
|
+
"min-width": __17("%s (%dpx and up)", "elementor"),
|
|
1123
1092
|
// translators: %s: Breakpoint label, %d: Breakpoint size.
|
|
1124
|
-
"max-width":
|
|
1093
|
+
"max-width": __17("%s (up to %dpx)", "elementor")
|
|
1125
1094
|
};
|
|
1126
1095
|
|
|
1127
1096
|
// src/extensions/responsive/index.ts
|
|
1128
|
-
function
|
|
1097
|
+
function init9() {
|
|
1129
1098
|
injectIntoResponsive({
|
|
1130
1099
|
id: "responsive-breakpoints-switcher",
|
|
1131
1100
|
component: BreakpointsSwitcher,
|
|
@@ -1172,7 +1141,7 @@ import {
|
|
|
1172
1141
|
__useActiveDocumentActions as useActiveDocumentActions5
|
|
1173
1142
|
} from "@elementor/editor-documents";
|
|
1174
1143
|
import { Button as Button2, CircularProgress as CircularProgress2, Paper } from "@elementor/ui";
|
|
1175
|
-
import { __ as
|
|
1144
|
+
import { __ as __18 } from "@wordpress/i18n";
|
|
1176
1145
|
function PrimaryAction2() {
|
|
1177
1146
|
const document2 = useActiveDocument8();
|
|
1178
1147
|
const { save } = useActiveDocumentActions5();
|
|
@@ -1195,7 +1164,7 @@ function PrimaryAction2() {
|
|
|
1195
1164
|
sx: { width: "100%" },
|
|
1196
1165
|
onClick: () => document2 && !document2.isSaving ? save() : null
|
|
1197
1166
|
},
|
|
1198
|
-
document2?.isSaving ? /* @__PURE__ */ React25.createElement(CircularProgress2, null) :
|
|
1167
|
+
document2?.isSaving ? /* @__PURE__ */ React25.createElement(CircularProgress2, null) : __18("Save Changes", "elementor")
|
|
1199
1168
|
)
|
|
1200
1169
|
);
|
|
1201
1170
|
}
|
|
@@ -1211,13 +1180,13 @@ import {
|
|
|
1211
1180
|
__privateUseRouteStatus as useRouteStatus4
|
|
1212
1181
|
} from "@elementor/editor-v1-adapters";
|
|
1213
1182
|
import { AdjustmentsHorizontalIcon } from "@elementor/icons";
|
|
1214
|
-
import { __ as
|
|
1183
|
+
import { __ as __19 } from "@wordpress/i18n";
|
|
1215
1184
|
function useActionProps6() {
|
|
1216
1185
|
const { isActive, isBlocked } = useRouteStatus4("panel/global", {
|
|
1217
1186
|
blockOnKitRoutes: false
|
|
1218
1187
|
});
|
|
1219
1188
|
return {
|
|
1220
|
-
title:
|
|
1189
|
+
title: __19("Site Settings", "elementor"),
|
|
1221
1190
|
icon: AdjustmentsHorizontalIcon,
|
|
1222
1191
|
onClick: () => {
|
|
1223
1192
|
const extendedWindow = window;
|
|
@@ -1242,7 +1211,7 @@ function useActionProps6() {
|
|
|
1242
1211
|
}
|
|
1243
1212
|
|
|
1244
1213
|
// src/extensions/site-settings/index.ts
|
|
1245
|
-
function
|
|
1214
|
+
function init10() {
|
|
1246
1215
|
injectIntoTop({
|
|
1247
1216
|
id: "site-settings-primary-action-portal",
|
|
1248
1217
|
component: PortalledPrimaryAction
|
|
@@ -1260,11 +1229,11 @@ import {
|
|
|
1260
1229
|
__privateUseRouteStatus as useRouteStatus5
|
|
1261
1230
|
} from "@elementor/editor-v1-adapters";
|
|
1262
1231
|
import { StructureIcon } from "@elementor/icons";
|
|
1263
|
-
import { __ as
|
|
1232
|
+
import { __ as __20 } from "@wordpress/i18n";
|
|
1264
1233
|
function useActionProps7() {
|
|
1265
1234
|
const { isActive, isBlocked } = useRouteStatus5("navigator");
|
|
1266
1235
|
return {
|
|
1267
|
-
title:
|
|
1236
|
+
title: __20("Structure", "elementor"),
|
|
1268
1237
|
icon: StructureIcon,
|
|
1269
1238
|
onClick: () => {
|
|
1270
1239
|
const extendedWindow = window;
|
|
@@ -1285,7 +1254,7 @@ function useActionProps7() {
|
|
|
1285
1254
|
}
|
|
1286
1255
|
|
|
1287
1256
|
// src/extensions/structure/index.ts
|
|
1288
|
-
function
|
|
1257
|
+
function init11() {
|
|
1289
1258
|
toolsMenu.registerToggleAction({
|
|
1290
1259
|
id: "toggle-structure-view",
|
|
1291
1260
|
priority: 3,
|
|
@@ -1296,11 +1265,11 @@ function init12() {
|
|
|
1296
1265
|
// src/extensions/theme-builder/hooks/use-action-props.ts
|
|
1297
1266
|
import { __privateRunCommand as runCommand7 } from "@elementor/editor-v1-adapters";
|
|
1298
1267
|
import { ThemeBuilderIcon } from "@elementor/icons";
|
|
1299
|
-
import { __ as
|
|
1268
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
1300
1269
|
function useActionProps8() {
|
|
1301
1270
|
return {
|
|
1302
1271
|
icon: ThemeBuilderIcon,
|
|
1303
|
-
title:
|
|
1272
|
+
title: __21("Theme Builder", "elementor"),
|
|
1304
1273
|
onClick: () => {
|
|
1305
1274
|
const extendedWindow = window;
|
|
1306
1275
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1318,7 +1287,7 @@ function useActionProps8() {
|
|
|
1318
1287
|
}
|
|
1319
1288
|
|
|
1320
1289
|
// src/extensions/theme-builder/index.ts
|
|
1321
|
-
function
|
|
1290
|
+
function init12() {
|
|
1322
1291
|
mainMenu.registerAction({
|
|
1323
1292
|
id: "open-theme-builder",
|
|
1324
1293
|
useProps: useActionProps8
|
|
@@ -1331,12 +1300,12 @@ import {
|
|
|
1331
1300
|
__privateUseRouteStatus as useRouteStatus6
|
|
1332
1301
|
} from "@elementor/editor-v1-adapters";
|
|
1333
1302
|
import { ToggleRightIcon } from "@elementor/icons";
|
|
1334
|
-
import { __ as
|
|
1303
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
1335
1304
|
function useActionProps9() {
|
|
1336
1305
|
const { isActive, isBlocked } = useRouteStatus6("panel/editor-preferences");
|
|
1337
1306
|
return {
|
|
1338
1307
|
icon: ToggleRightIcon,
|
|
1339
|
-
title:
|
|
1308
|
+
title: __22("User Preferences", "elementor"),
|
|
1340
1309
|
onClick: () => {
|
|
1341
1310
|
const extendedWindow = window;
|
|
1342
1311
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1356,7 +1325,7 @@ function useActionProps9() {
|
|
|
1356
1325
|
}
|
|
1357
1326
|
|
|
1358
1327
|
// src/extensions/user-preferences/index.ts
|
|
1359
|
-
function
|
|
1328
|
+
function init13() {
|
|
1360
1329
|
mainMenu.registerToggleAction({
|
|
1361
1330
|
id: "open-user-preferences",
|
|
1362
1331
|
priority: 30,
|
|
@@ -1368,16 +1337,15 @@ function init14() {
|
|
|
1368
1337
|
// src/extensions/wordpress/index.ts
|
|
1369
1338
|
import { __useActiveDocument as useActiveDocument9 } from "@elementor/editor-documents";
|
|
1370
1339
|
import { WordpressIcon } from "@elementor/icons";
|
|
1371
|
-
import { __ as
|
|
1372
|
-
function
|
|
1340
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
1341
|
+
function init14() {
|
|
1373
1342
|
mainMenu.registerLink({
|
|
1374
1343
|
id: "exit-to-wordpress",
|
|
1375
1344
|
group: "exits",
|
|
1376
|
-
priority: 20,
|
|
1377
1345
|
useProps: () => {
|
|
1378
1346
|
const document2 = useActiveDocument9();
|
|
1379
1347
|
return {
|
|
1380
|
-
title:
|
|
1348
|
+
title: __23("Exit to WordPress", "elementor"),
|
|
1381
1349
|
href: document2?.links?.platformEdit,
|
|
1382
1350
|
icon: WordpressIcon,
|
|
1383
1351
|
onClick: () => {
|
|
@@ -1401,7 +1369,8 @@ function init15() {
|
|
|
1401
1369
|
}
|
|
1402
1370
|
|
|
1403
1371
|
// src/extensions/index.ts
|
|
1404
|
-
function
|
|
1372
|
+
function init15() {
|
|
1373
|
+
init();
|
|
1405
1374
|
init2();
|
|
1406
1375
|
init3();
|
|
1407
1376
|
init4();
|
|
@@ -1415,8 +1384,6 @@ function init16() {
|
|
|
1415
1384
|
init12();
|
|
1416
1385
|
init13();
|
|
1417
1386
|
init14();
|
|
1418
|
-
init15();
|
|
1419
|
-
init();
|
|
1420
1387
|
}
|
|
1421
1388
|
|
|
1422
1389
|
// src/sync/redirect-old-menus.ts
|
|
@@ -1432,9 +1399,9 @@ function redirectOldMenus() {
|
|
|
1432
1399
|
}
|
|
1433
1400
|
|
|
1434
1401
|
// src/init.ts
|
|
1435
|
-
function
|
|
1402
|
+
function init16() {
|
|
1436
1403
|
redirectOldMenus();
|
|
1437
|
-
|
|
1404
|
+
init15();
|
|
1438
1405
|
injectIntoTop2({
|
|
1439
1406
|
id: "app-bar",
|
|
1440
1407
|
component: AppBar
|
|
@@ -1442,7 +1409,7 @@ function init17() {
|
|
|
1442
1409
|
}
|
|
1443
1410
|
export {
|
|
1444
1411
|
documentOptionsMenu,
|
|
1445
|
-
|
|
1412
|
+
init16 as init,
|
|
1446
1413
|
injectIntoPageIndication,
|
|
1447
1414
|
injectIntoPrimaryAction,
|
|
1448
1415
|
injectIntoResponsive,
|