@elementor/editor-app-bar 3.32.0-34 → 3.32.0-36

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.mjs CHANGED
@@ -32,9 +32,10 @@ function PopoverMenuItem({
32
32
  target,
33
33
  disabled,
34
34
  isGroupParent,
35
+ showExternalLinkIcon,
35
36
  ...props
36
37
  }) {
37
- const isExternalLink = href && target === "_blank";
38
+ const isExternalLink = href && target === "_blank" && showExternalLinkIcon;
38
39
  return /* @__PURE__ */ React2.createElement(
39
40
  MenuItem,
40
41
  {
@@ -108,12 +109,12 @@ function Action({ icon: Icon, title, visible = true, ...props }) {
108
109
 
109
110
  // src/components/actions/link.tsx
110
111
  import * as React5 from "react";
111
- function Link({ icon: Icon, title, visible = true, ...props }) {
112
+ function Link({ icon: Icon, title, visible = true, showExternalLinkIcon = false, ...props }) {
112
113
  const { type } = useMenuContext();
113
114
  if (!visible) {
114
115
  return null;
115
116
  }
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) });
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), showExternalLinkIcon });
117
118
  }
118
119
 
119
120
  // src/components/actions/toggle-action.tsx
@@ -407,6 +408,61 @@ function AppBar() {
407
408
  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))))));
408
409
  }
409
410
 
411
+ // src/extensions/connect/hooks/use-connect-link-config.tsx
412
+ import { useCallback } from "react";
413
+ import { UserIcon } from "@elementor/icons";
414
+ import { __ as __4 } from "@wordpress/i18n";
415
+ function useConnectLinkConfig() {
416
+ const extendedWindow = window;
417
+ let isUserConnected = false;
418
+ const isPro = extendedWindow?.elementor?.helpers.hasPro();
419
+ let target = "_blank";
420
+ if (isPro) {
421
+ isUserConnected = extendedWindow?.elementorPro?.config.isActive ?? false;
422
+ } else {
423
+ isUserConnected = extendedWindow?.elementorCommon?.config.library_connect.is_connected ?? false;
424
+ target = "_self";
425
+ }
426
+ const handleConnectClick = useCallback(
427
+ (event) => {
428
+ event.preventDefault();
429
+ if (extendedWindow.jQuery && extendedWindow.jQuery.fn?.elementorConnect) {
430
+ const connectUrl = extendedWindow?.elementor?.config.user.top_bar.connect_url;
431
+ const $tempButton = extendedWindow.jQuery("<a>");
432
+ $tempButton?.attr("href", connectUrl)?.attr("target", "_blank")?.attr("rel", "opener")?.css("display", "none")?.appendTo("body");
433
+ $tempButton.elementorConnect();
434
+ $tempButton[0].click();
435
+ setTimeout(() => {
436
+ $tempButton.remove();
437
+ }, 1e3);
438
+ }
439
+ },
440
+ [extendedWindow]
441
+ );
442
+ return isUserConnected ? {
443
+ title: __4("My Elementor", "elementor"),
444
+ href: extendedWindow?.elementor?.config.user.top_bar.my_elementor_url,
445
+ icon: UserIcon,
446
+ target: "_blank"
447
+ } : {
448
+ title: __4("Connect my account", "elementor"),
449
+ href: extendedWindow?.elementor?.config.user.top_bar.connect_url,
450
+ icon: UserIcon,
451
+ target,
452
+ onClick: handleConnectClick
453
+ };
454
+ }
455
+
456
+ // src/extensions/connect/index.ts
457
+ function init() {
458
+ mainMenu.registerLink({
459
+ id: "app-bar-connect",
460
+ group: "exits",
461
+ priority: 10,
462
+ useProps: useConnectLinkConfig
463
+ });
464
+ }
465
+
410
466
  // src/extensions/documents-indicator/components/settings-button.tsx
411
467
  import * as React20 from "react";
412
468
  import {
@@ -419,7 +475,7 @@ import {
419
475
  } from "@elementor/editor-v1-adapters";
420
476
  import { SettingsIcon } from "@elementor/icons";
421
477
  import { Box as Box4, ToggleButton as ToggleButton3, Tooltip as BaseTooltip2 } from "@elementor/ui";
422
- import { __ as __4 } from "@wordpress/i18n";
478
+ import { __ as __5 } from "@wordpress/i18n";
423
479
  function SettingsButton() {
424
480
  const activeDocument = useActiveDocument2();
425
481
  const hostDocument = useHostDocument();
@@ -428,7 +484,7 @@ function SettingsButton() {
428
484
  if (!document2) {
429
485
  return null;
430
486
  }
431
- const title = __4("%s Settings", "elementor").replace("%s", document2.type.label);
487
+ const title = __5("%s Settings", "elementor").replace("%s", document2.type.label);
432
488
  return /* @__PURE__ */ React20.createElement(Tooltip3, { title }, /* @__PURE__ */ React20.createElement(Box4, { component: "span", "aria-label": void 0 }, /* @__PURE__ */ React20.createElement(
433
489
  ToggleButton3,
434
490
  {
@@ -482,7 +538,7 @@ function Tooltip3(props) {
482
538
  }
483
539
 
484
540
  // src/extensions/documents-indicator/index.ts
485
- function init() {
541
+ function init2() {
486
542
  injectIntoPageIndication({
487
543
  id: "document-settings-button",
488
544
  component: SettingsButton,
@@ -497,12 +553,12 @@ function init() {
497
553
  import { __useActiveDocument as useActiveDocument3 } from "@elementor/editor-documents";
498
554
  import { __privateRunCommand as runCommand } from "@elementor/editor-v1-adapters";
499
555
  import { EyeIcon } from "@elementor/icons";
500
- import { __ as __5 } from "@wordpress/i18n";
556
+ import { __ as __6 } from "@wordpress/i18n";
501
557
  function useActionProps() {
502
558
  const document2 = useActiveDocument3();
503
559
  return {
504
560
  icon: EyeIcon,
505
- title: __5("Preview Changes", "elementor"),
561
+ title: __6("Preview Changes", "elementor"),
506
562
  onClick: () => {
507
563
  const extendedWindow = window;
508
564
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -525,7 +581,7 @@ function useActionProps() {
525
581
  }
526
582
 
527
583
  // src/extensions/documents-preview/index.ts
528
- function init2() {
584
+ function init3() {
529
585
  utilitiesMenu.registerAction({
530
586
  id: "document-preview-button",
531
587
  priority: 30,
@@ -552,7 +608,7 @@ import {
552
608
  Tooltip as Tooltip4,
553
609
  usePopupState as usePopupState4
554
610
  } from "@elementor/ui";
555
- import { __ as __6 } from "@wordpress/i18n";
611
+ import { __ as __7 } from "@wordpress/i18n";
556
612
 
557
613
  // src/extensions/documents-save/components/primary-action-menu.tsx
558
614
  import * as React21 from "react";
@@ -651,7 +707,7 @@ function PrimaryAction() {
651
707
  ), /* @__PURE__ */ React22.createElement(
652
708
  Tooltip4,
653
709
  {
654
- title: __6("Save Options", "elementor"),
710
+ title: __7("Save Options", "elementor"),
655
711
  PopperProps: {
656
712
  sx: {
657
713
  "&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom": {
@@ -668,14 +724,14 @@ function PrimaryAction() {
668
724
  ...bindTrigger4(popupState),
669
725
  sx: { px: 0, height: "100%", borderRadius: 0 },
670
726
  disabled: isSaveOptionsDisabled,
671
- "aria-label": __6("Save Options", "elementor")
727
+ "aria-label": __7("Save Options", "elementor")
672
728
  },
673
729
  /* @__PURE__ */ React22.createElement(ChevronDownIcon, null)
674
730
  ))
675
731
  )), /* @__PURE__ */ React22.createElement(PrimaryActionMenu, { ...bindMenu4(popupState), onClick: popupState.close }));
676
732
  }
677
733
  function getLabel(document2) {
678
- return document2.userCan.publish ? __6("Publish", "elementor") : __6("Submit", "elementor");
734
+ return document2.userCan.publish ? __7("Publish", "elementor") : __7("Submit", "elementor");
679
735
  }
680
736
  function isPublishEnabled(document2) {
681
737
  if (document2.type.value === "kit") {
@@ -690,13 +746,13 @@ import {
690
746
  __useActiveDocumentActions as useActiveDocumentActions2
691
747
  } from "@elementor/editor-documents";
692
748
  import { LinkIcon } from "@elementor/icons";
693
- import { __ as __7 } from "@wordpress/i18n";
749
+ import { __ as __8 } from "@wordpress/i18n";
694
750
  function useDocumentCopyAndShareProps() {
695
751
  const document2 = useActiveDocument5();
696
752
  const { copyAndShare } = useActiveDocumentActions2();
697
753
  return {
698
754
  icon: LinkIcon,
699
- title: __7("Copy and Share", "elementor"),
755
+ title: __8("Copy and Share", "elementor"),
700
756
  onClick: copyAndShare,
701
757
  disabled: !document2 || document2.isSaving || document2.isSavingDraft || !("publish" === document2.status.value),
702
758
  visible: document2?.permissions?.showCopyAndShare
@@ -709,13 +765,13 @@ import {
709
765
  __useActiveDocumentActions as useActiveDocumentActions3
710
766
  } from "@elementor/editor-documents";
711
767
  import { FileReportIcon } from "@elementor/icons";
712
- import { __ as __8 } from "@wordpress/i18n";
768
+ import { __ as __9 } from "@wordpress/i18n";
713
769
  function useDocumentSaveDraftProps() {
714
770
  const document2 = useActiveDocument6();
715
771
  const { saveDraft } = useActiveDocumentActions3();
716
772
  return {
717
773
  icon: FileReportIcon,
718
- title: __8("Save Draft", "elementor"),
774
+ title: __9("Save Draft", "elementor"),
719
775
  onClick: saveDraft,
720
776
  disabled: !document2 || document2.isSaving || document2.isSavingDraft || !document2.isDirty
721
777
  };
@@ -724,12 +780,12 @@ function useDocumentSaveDraftProps() {
724
780
  // src/extensions/documents-save/hooks/use-document-save-template-props.ts
725
781
  import { __useActiveDocumentActions as useActiveDocumentActions4 } from "@elementor/editor-documents";
726
782
  import { FolderIcon } from "@elementor/icons";
727
- import { __ as __9 } from "@wordpress/i18n";
783
+ import { __ as __10 } from "@wordpress/i18n";
728
784
  function useDocumentSaveTemplateProps() {
729
785
  const { saveTemplate } = useActiveDocumentActions4();
730
786
  return {
731
787
  icon: FolderIcon,
732
- title: __9("Save as Template", "elementor"),
788
+ title: __10("Save as Template", "elementor"),
733
789
  onClick: saveTemplate
734
790
  };
735
791
  }
@@ -738,12 +794,12 @@ function useDocumentSaveTemplateProps() {
738
794
  import { __useActiveDocument as useActiveDocument7 } from "@elementor/editor-documents";
739
795
  import { __privateRunCommand as runCommand2 } from "@elementor/editor-v1-adapters";
740
796
  import { EyeIcon as EyeIcon2 } from "@elementor/icons";
741
- import { __ as __10 } from "@wordpress/i18n";
797
+ import { __ as __11 } from "@wordpress/i18n";
742
798
  function useDocumentViewPageProps() {
743
799
  const document2 = useActiveDocument7();
744
800
  return {
745
801
  icon: EyeIcon2,
746
- title: __10("View Page", "elementor"),
802
+ title: __11("View Page", "elementor"),
747
803
  onClick: () => document2?.id && runCommand2("editor/documents/view", {
748
804
  id: document2.id
749
805
  })
@@ -751,7 +807,7 @@ function useDocumentViewPageProps() {
751
807
  }
752
808
 
753
809
  // src/extensions/documents-save/index.ts
754
- function init3() {
810
+ function init4() {
755
811
  injectIntoPrimaryAction({
756
812
  id: "document-primary-action",
757
813
  component: PrimaryAction
@@ -786,11 +842,11 @@ import {
786
842
  __privateUseRouteStatus as useRouteStatus2
787
843
  } from "@elementor/editor-v1-adapters";
788
844
  import { PlusIcon } from "@elementor/icons";
789
- import { __ as __11 } from "@wordpress/i18n";
845
+ import { __ as __12 } from "@wordpress/i18n";
790
846
  function useActionProps2() {
791
847
  const { isActive, isBlocked } = useRouteStatus2("panel/elements");
792
848
  return {
793
- title: __11("Add Element", "elementor"),
849
+ title: __12("Add Element", "elementor"),
794
850
  icon: PlusIcon,
795
851
  onClick: () => {
796
852
  const extendedWindow = window;
@@ -817,10 +873,10 @@ import {
817
873
  routeOpenEvent,
818
874
  v1ReadyEvent
819
875
  } from "@elementor/editor-v1-adapters";
820
- import { __ as __12 } from "@wordpress/i18n";
876
+ import { __ as __13 } from "@wordpress/i18n";
821
877
  function syncPanelTitle() {
822
- const panelTitle = __12("Elements", "elementor");
823
- const tabTitle = __12("Widgets", "elementor");
878
+ const panelTitle = __13("Elements", "elementor");
879
+ const tabTitle = __13("Widgets", "elementor");
824
880
  listenTo(routeOpenEvent("panel/elements"), () => {
825
881
  setPanelTitle(panelTitle);
826
882
  setTabTitle(tabTitle);
@@ -843,7 +899,7 @@ function setTabTitle(title) {
843
899
  }
844
900
 
845
901
  // src/extensions/elements/index.ts
846
- function init4() {
902
+ function init5() {
847
903
  syncPanelTitle();
848
904
  toolsMenu.registerToggleAction({
849
905
  id: "open-elements-panel",
@@ -855,10 +911,10 @@ function init4() {
855
911
  // src/extensions/finder/hooks/use-action-props.ts
856
912
  import { __privateRunCommand as runCommand3 } from "@elementor/editor-v1-adapters";
857
913
  import { SearchIcon } from "@elementor/icons";
858
- import { __ as __13 } from "@wordpress/i18n";
914
+ import { __ as __14 } from "@wordpress/i18n";
859
915
  function useActionProps3() {
860
916
  return {
861
- title: __13("Finder", "elementor"),
917
+ title: __14("Finder", "elementor"),
862
918
  icon: SearchIcon,
863
919
  onClick: () => {
864
920
  const extendedWindow = window;
@@ -877,7 +933,7 @@ function useActionProps3() {
877
933
  }
878
934
 
879
935
  // src/extensions/finder/index.ts
880
- function init5() {
936
+ function init6() {
881
937
  utilitiesMenu.registerAction({
882
938
  id: "toggle-finder",
883
939
  priority: 15,
@@ -888,18 +944,19 @@ function init5() {
888
944
 
889
945
  // src/extensions/help/index.ts
890
946
  import { HelpIcon } from "@elementor/icons";
891
- import { __ as __14 } from "@wordpress/i18n";
892
- function init6() {
947
+ import { __ as __15 } from "@wordpress/i18n";
948
+ function init7() {
893
949
  utilitiesMenu.registerLink({
894
950
  id: "open-help-center",
895
951
  priority: 25,
896
952
  // After Finder.
897
953
  useProps: () => {
898
954
  return {
899
- title: __14("Help", "elementor"),
955
+ title: __15("Help", "elementor"),
900
956
  href: "https://go.elementor.com/editor-top-bar-learn/",
901
957
  icon: HelpIcon,
902
958
  target: "_blank",
959
+ showExternalLinkIcon: true,
903
960
  onClick: () => {
904
961
  const extendedWindow = window;
905
962
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -923,11 +980,11 @@ import {
923
980
  __privateUseRouteStatus as useRouteStatus3
924
981
  } from "@elementor/editor-v1-adapters";
925
982
  import { HistoryIcon } from "@elementor/icons";
926
- import { __ as __15 } from "@wordpress/i18n";
983
+ import { __ as __16 } from "@wordpress/i18n";
927
984
  function useActionProps4() {
928
985
  const { isActive, isBlocked } = useRouteStatus3("panel/history");
929
986
  return {
930
- title: __15("History", "elementor"),
987
+ title: __16("History", "elementor"),
931
988
  icon: HistoryIcon,
932
989
  onClick: () => {
933
990
  const extendedWindow = window;
@@ -948,7 +1005,7 @@ function useActionProps4() {
948
1005
  }
949
1006
 
950
1007
  // src/extensions/history/index.ts
951
- function init7() {
1008
+ function init8() {
952
1009
  mainMenu.registerToggleAction({
953
1010
  id: "open-history",
954
1011
  priority: 20,
@@ -959,11 +1016,11 @@ function init7() {
959
1016
  // src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
960
1017
  import { __privateRunCommand as runCommand4 } from "@elementor/editor-v1-adapters";
961
1018
  import { KeyboardIcon } from "@elementor/icons";
962
- import { __ as __16 } from "@wordpress/i18n";
1019
+ import { __ as __17 } from "@wordpress/i18n";
963
1020
  function useActionProps5() {
964
1021
  return {
965
1022
  icon: KeyboardIcon,
966
- title: __16("Keyboard Shortcuts", "elementor"),
1023
+ title: __17("Keyboard Shortcuts", "elementor"),
967
1024
  onClick: () => {
968
1025
  const extendedWindow = window;
969
1026
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -981,7 +1038,7 @@ function useActionProps5() {
981
1038
  }
982
1039
 
983
1040
  // src/extensions/keyboard-shortcuts/index.ts
984
- function init8() {
1041
+ function init9() {
985
1042
  mainMenu.registerAction({
986
1043
  id: "open-keyboard-shortcuts",
987
1044
  group: "default",
@@ -1008,7 +1065,7 @@ import {
1008
1065
  WidescreenIcon
1009
1066
  } from "@elementor/icons";
1010
1067
  import { Tab, Tabs, Tooltip as BaseTooltip3 } from "@elementor/ui";
1011
- import { __ as __17 } from "@wordpress/i18n";
1068
+ import { __ as __18 } from "@wordpress/i18n";
1012
1069
  function BreakpointsSwitcher() {
1013
1070
  const breakpoints = useBreakpoints();
1014
1071
  const activeBreakpoint = useActiveBreakpoint();
@@ -1037,7 +1094,7 @@ function BreakpointsSwitcher() {
1037
1094
  indicatorColor: "secondary",
1038
1095
  value: activeBreakpoint,
1039
1096
  onChange,
1040
- "aria-label": __17("Switch Device", "elementor"),
1097
+ "aria-label": __18("Switch Device", "elementor"),
1041
1098
  sx: {
1042
1099
  "& .MuiTabs-indicator": {
1043
1100
  backgroundColor: "text.primary"
@@ -1088,13 +1145,13 @@ var iconsMap = {
1088
1145
  var labelsMap = {
1089
1146
  default: "%s",
1090
1147
  // translators: %s: Breakpoint label, %d: Breakpoint size.
1091
- "min-width": __17("%s (%dpx and up)", "elementor"),
1148
+ "min-width": __18("%s (%dpx and up)", "elementor"),
1092
1149
  // translators: %s: Breakpoint label, %d: Breakpoint size.
1093
- "max-width": __17("%s (up to %dpx)", "elementor")
1150
+ "max-width": __18("%s (up to %dpx)", "elementor")
1094
1151
  };
1095
1152
 
1096
1153
  // src/extensions/responsive/index.ts
1097
- function init9() {
1154
+ function init10() {
1098
1155
  injectIntoResponsive({
1099
1156
  id: "responsive-breakpoints-switcher",
1100
1157
  component: BreakpointsSwitcher,
@@ -1141,7 +1198,7 @@ import {
1141
1198
  __useActiveDocumentActions as useActiveDocumentActions5
1142
1199
  } from "@elementor/editor-documents";
1143
1200
  import { Button as Button2, CircularProgress as CircularProgress2, Paper } from "@elementor/ui";
1144
- import { __ as __18 } from "@wordpress/i18n";
1201
+ import { __ as __19 } from "@wordpress/i18n";
1145
1202
  function PrimaryAction2() {
1146
1203
  const document2 = useActiveDocument8();
1147
1204
  const { save } = useActiveDocumentActions5();
@@ -1164,7 +1221,7 @@ function PrimaryAction2() {
1164
1221
  sx: { width: "100%" },
1165
1222
  onClick: () => document2 && !document2.isSaving ? save() : null
1166
1223
  },
1167
- document2?.isSaving ? /* @__PURE__ */ React25.createElement(CircularProgress2, null) : __18("Save Changes", "elementor")
1224
+ document2?.isSaving ? /* @__PURE__ */ React25.createElement(CircularProgress2, null) : __19("Save Changes", "elementor")
1168
1225
  )
1169
1226
  );
1170
1227
  }
@@ -1180,13 +1237,13 @@ import {
1180
1237
  __privateUseRouteStatus as useRouteStatus4
1181
1238
  } from "@elementor/editor-v1-adapters";
1182
1239
  import { AdjustmentsHorizontalIcon } from "@elementor/icons";
1183
- import { __ as __19 } from "@wordpress/i18n";
1240
+ import { __ as __20 } from "@wordpress/i18n";
1184
1241
  function useActionProps6() {
1185
1242
  const { isActive, isBlocked } = useRouteStatus4("panel/global", {
1186
1243
  blockOnKitRoutes: false
1187
1244
  });
1188
1245
  return {
1189
- title: __19("Site Settings", "elementor"),
1246
+ title: __20("Site Settings", "elementor"),
1190
1247
  icon: AdjustmentsHorizontalIcon,
1191
1248
  onClick: () => {
1192
1249
  const extendedWindow = window;
@@ -1211,7 +1268,7 @@ function useActionProps6() {
1211
1268
  }
1212
1269
 
1213
1270
  // src/extensions/site-settings/index.ts
1214
- function init10() {
1271
+ function init11() {
1215
1272
  injectIntoTop({
1216
1273
  id: "site-settings-primary-action-portal",
1217
1274
  component: PortalledPrimaryAction
@@ -1229,11 +1286,11 @@ import {
1229
1286
  __privateUseRouteStatus as useRouteStatus5
1230
1287
  } from "@elementor/editor-v1-adapters";
1231
1288
  import { StructureIcon } from "@elementor/icons";
1232
- import { __ as __20 } from "@wordpress/i18n";
1289
+ import { __ as __21 } from "@wordpress/i18n";
1233
1290
  function useActionProps7() {
1234
1291
  const { isActive, isBlocked } = useRouteStatus5("navigator");
1235
1292
  return {
1236
- title: __20("Structure", "elementor"),
1293
+ title: __21("Structure", "elementor"),
1237
1294
  icon: StructureIcon,
1238
1295
  onClick: () => {
1239
1296
  const extendedWindow = window;
@@ -1254,7 +1311,7 @@ function useActionProps7() {
1254
1311
  }
1255
1312
 
1256
1313
  // src/extensions/structure/index.ts
1257
- function init11() {
1314
+ function init12() {
1258
1315
  toolsMenu.registerToggleAction({
1259
1316
  id: "toggle-structure-view",
1260
1317
  priority: 3,
@@ -1265,11 +1322,11 @@ function init11() {
1265
1322
  // src/extensions/theme-builder/hooks/use-action-props.ts
1266
1323
  import { __privateRunCommand as runCommand7 } from "@elementor/editor-v1-adapters";
1267
1324
  import { ThemeBuilderIcon } from "@elementor/icons";
1268
- import { __ as __21 } from "@wordpress/i18n";
1325
+ import { __ as __22 } from "@wordpress/i18n";
1269
1326
  function useActionProps8() {
1270
1327
  return {
1271
1328
  icon: ThemeBuilderIcon,
1272
- title: __21("Theme Builder", "elementor"),
1329
+ title: __22("Theme Builder", "elementor"),
1273
1330
  onClick: () => {
1274
1331
  const extendedWindow = window;
1275
1332
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1287,7 +1344,7 @@ function useActionProps8() {
1287
1344
  }
1288
1345
 
1289
1346
  // src/extensions/theme-builder/index.ts
1290
- function init12() {
1347
+ function init13() {
1291
1348
  mainMenu.registerAction({
1292
1349
  id: "open-theme-builder",
1293
1350
  useProps: useActionProps8
@@ -1300,12 +1357,12 @@ import {
1300
1357
  __privateUseRouteStatus as useRouteStatus6
1301
1358
  } from "@elementor/editor-v1-adapters";
1302
1359
  import { ToggleRightIcon } from "@elementor/icons";
1303
- import { __ as __22 } from "@wordpress/i18n";
1360
+ import { __ as __23 } from "@wordpress/i18n";
1304
1361
  function useActionProps9() {
1305
1362
  const { isActive, isBlocked } = useRouteStatus6("panel/editor-preferences");
1306
1363
  return {
1307
1364
  icon: ToggleRightIcon,
1308
- title: __22("User Preferences", "elementor"),
1365
+ title: __23("User Preferences", "elementor"),
1309
1366
  onClick: () => {
1310
1367
  const extendedWindow = window;
1311
1368
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1325,7 +1382,7 @@ function useActionProps9() {
1325
1382
  }
1326
1383
 
1327
1384
  // src/extensions/user-preferences/index.ts
1328
- function init13() {
1385
+ function init14() {
1329
1386
  mainMenu.registerToggleAction({
1330
1387
  id: "open-user-preferences",
1331
1388
  priority: 30,
@@ -1337,15 +1394,16 @@ function init13() {
1337
1394
  // src/extensions/wordpress/index.ts
1338
1395
  import { __useActiveDocument as useActiveDocument9 } from "@elementor/editor-documents";
1339
1396
  import { WordpressIcon } from "@elementor/icons";
1340
- import { __ as __23 } from "@wordpress/i18n";
1341
- function init14() {
1397
+ import { __ as __24 } from "@wordpress/i18n";
1398
+ function init15() {
1342
1399
  mainMenu.registerLink({
1343
1400
  id: "exit-to-wordpress",
1344
1401
  group: "exits",
1402
+ priority: 20,
1345
1403
  useProps: () => {
1346
1404
  const document2 = useActiveDocument9();
1347
1405
  return {
1348
- title: __23("Exit to WordPress", "elementor"),
1406
+ title: __24("Exit to WordPress", "elementor"),
1349
1407
  href: document2?.links?.platformEdit,
1350
1408
  icon: WordpressIcon,
1351
1409
  onClick: () => {
@@ -1369,8 +1427,7 @@ function init14() {
1369
1427
  }
1370
1428
 
1371
1429
  // src/extensions/index.ts
1372
- function init15() {
1373
- init();
1430
+ function init16() {
1374
1431
  init2();
1375
1432
  init3();
1376
1433
  init4();
@@ -1384,6 +1441,8 @@ function init15() {
1384
1441
  init12();
1385
1442
  init13();
1386
1443
  init14();
1444
+ init15();
1445
+ init();
1387
1446
  }
1388
1447
 
1389
1448
  // src/sync/redirect-old-menus.ts
@@ -1399,9 +1458,9 @@ function redirectOldMenus() {
1399
1458
  }
1400
1459
 
1401
1460
  // src/init.ts
1402
- function init16() {
1461
+ function init17() {
1403
1462
  redirectOldMenus();
1404
- init15();
1463
+ init16();
1405
1464
  injectIntoTop2({
1406
1465
  id: "app-bar",
1407
1466
  component: AppBar
@@ -1409,7 +1468,7 @@ function init16() {
1409
1468
  }
1410
1469
  export {
1411
1470
  documentOptionsMenu,
1412
- init16 as init,
1471
+ init17 as init,
1413
1472
  injectIntoPageIndication,
1414
1473
  injectIntoPrimaryAction,
1415
1474
  injectIntoResponsive,