@elementor/editor-app-bar 3.32.0-21 → 3.32.0-22

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 CHANGED
@@ -18,9 +18,8 @@ type Props$1 = {
18
18
  href?: string;
19
19
  visible?: boolean;
20
20
  target?: string;
21
- showExternalLinkIcon?: boolean;
22
21
  };
23
- declare function Link({ icon: Icon, title, visible, showExternalLinkIcon, ...props }: Props$1): React.JSX.Element | null;
22
+ declare function Link({ icon: Icon, title, visible, ...props }: Props$1): React.JSX.Element | null;
24
23
 
25
24
  type Props = {
26
25
  title: string;
package/dist/index.d.ts CHANGED
@@ -18,9 +18,8 @@ type Props$1 = {
18
18
  href?: string;
19
19
  visible?: boolean;
20
20
  target?: string;
21
- showExternalLinkIcon?: boolean;
22
21
  };
23
- declare function Link({ icon: Icon, title, visible, showExternalLinkIcon, ...props }: Props$1): React.JSX.Element | null;
22
+ declare function Link({ icon: Icon, title, visible, ...props }: Props$1): React.JSX.Element | null;
24
23
 
25
24
  type Props = {
26
25
  title: string;
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: () => init17,
34
+ init: () => init16,
35
35
  injectIntoPageIndication: () => injectIntoPageIndication,
36
36
  injectIntoPrimaryAction: () => injectIntoPrimaryAction,
37
37
  injectIntoResponsive: () => injectIntoResponsive,
@@ -76,10 +76,9 @@ function PopoverMenuItem({
76
76
  target,
77
77
  disabled,
78
78
  isGroupParent,
79
- showExternalLinkIcon,
80
79
  ...props
81
80
  }) {
82
- const isExternalLink = href && target === "_blank" && showExternalLinkIcon;
81
+ const isExternalLink = href && target === "_blank";
83
82
  return /* @__PURE__ */ React2.createElement(
84
83
  import_ui.MenuItem,
85
84
  {
@@ -153,12 +152,12 @@ function Action({ icon: Icon, title, visible = true, ...props }) {
153
152
 
154
153
  // src/components/actions/link.tsx
155
154
  var React5 = __toESM(require("react"));
156
- function Link({ icon: Icon, title, visible = true, showExternalLinkIcon = false, ...props }) {
155
+ function Link({ icon: Icon, title, visible = true, ...props }) {
157
156
  const { type } = useMenuContext();
158
157
  if (!visible) {
159
158
  return null;
160
159
  }
161
- 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 });
160
+ 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) });
162
161
  }
163
162
 
164
163
  // src/components/actions/toggle-action.tsx
@@ -452,42 +451,13 @@ function AppBar() {
452
451
  return /* @__PURE__ */ React19.createElement(import_ui11.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React19.createElement(import_ui11.AppBar, { position: "sticky" }, /* @__PURE__ */ React19.createElement(import_ui11.Toolbar, { disableGutters: true, variant: "dense" }, /* @__PURE__ */ React19.createElement(import_ui11.Box, { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", flexGrow: 1 }, /* @__PURE__ */ React19.createElement(import_ui11.Grid, { container: true, flexWrap: "nowrap" }, /* @__PURE__ */ React19.createElement(MainMenuLocation, null), document2?.permissions?.allowAddingWidgets && /* @__PURE__ */ React19.createElement(ToolsMenuLocation, null)), /* @__PURE__ */ React19.createElement(import_ui11.Grid, { container: true, justifyContent: "center" }, /* @__PURE__ */ React19.createElement(ToolbarMenu, { spacing: 1.5 }, /* @__PURE__ */ React19.createElement(import_ui11.Divider, { orientation: "vertical" }), /* @__PURE__ */ React19.createElement(PageIndicationLocation, null), /* @__PURE__ */ React19.createElement(import_ui11.Divider, { orientation: "vertical" }), /* @__PURE__ */ React19.createElement(ResponsiveLocation, null), /* @__PURE__ */ React19.createElement(import_ui11.Divider, { orientation: "vertical" }))), /* @__PURE__ */ React19.createElement(import_ui11.Grid, { container: true, justifyContent: "flex-end", flexWrap: "nowrap" }, /* @__PURE__ */ React19.createElement(UtilitiesMenuLocation, null), /* @__PURE__ */ React19.createElement(PrimaryActionLocation, null))))));
453
452
  }
454
453
 
455
- // src/extensions/connect/hooks/use-connect-link-config.tsx
456
- var import_icons4 = require("@elementor/icons");
457
- var import_i18n4 = require("@wordpress/i18n");
458
- function useConnectLinkConfig() {
459
- const extendedWindow = window;
460
- const isUserConnected = extendedWindow?.elementorCommon?.config.library_connect.is_connected ?? false;
461
- return isUserConnected ? {
462
- title: (0, import_i18n4.__)("My Elementor", "elementor"),
463
- href: extendedWindow?.elementorCommon?.config.user.top_bar.my_elementor_url,
464
- icon: import_icons4.UserIcon,
465
- target: "_blank"
466
- } : {
467
- title: (0, import_i18n4.__)("Connect my account", "elementor"),
468
- href: extendedWindow?.elementorCommon?.config.user.top_bar.connect_url,
469
- icon: import_icons4.UserIcon,
470
- target: "_blank"
471
- };
472
- }
473
-
474
- // src/extensions/connect/index.ts
475
- function init() {
476
- mainMenu.registerLink({
477
- id: "app-bar-connect",
478
- group: "exits",
479
- priority: 10,
480
- useProps: useConnectLinkConfig
481
- });
482
- }
483
-
484
454
  // src/extensions/documents-indicator/components/settings-button.tsx
485
455
  var React20 = __toESM(require("react"));
486
456
  var import_editor_documents2 = require("@elementor/editor-documents");
487
457
  var import_editor_v1_adapters = require("@elementor/editor-v1-adapters");
488
- var import_icons5 = require("@elementor/icons");
458
+ var import_icons4 = require("@elementor/icons");
489
459
  var import_ui12 = require("@elementor/ui");
490
- var import_i18n5 = require("@wordpress/i18n");
460
+ var import_i18n4 = require("@wordpress/i18n");
491
461
  function SettingsButton() {
492
462
  const activeDocument = (0, import_editor_documents2.__useActiveDocument)();
493
463
  const hostDocument = (0, import_editor_documents2.__useHostDocument)();
@@ -496,7 +466,7 @@ function SettingsButton() {
496
466
  if (!document2) {
497
467
  return null;
498
468
  }
499
- const title = (0, import_i18n5.__)("%s Settings", "elementor").replace("%s", document2.type.label);
469
+ const title = (0, import_i18n4.__)("%s Settings", "elementor").replace("%s", document2.type.label);
500
470
  return /* @__PURE__ */ React20.createElement(Tooltip3, { title }, /* @__PURE__ */ React20.createElement(import_ui12.Box, { component: "span", "aria-label": void 0 }, /* @__PURE__ */ React20.createElement(
501
471
  import_ui12.ToggleButton,
502
472
  {
@@ -530,7 +500,7 @@ function SettingsButton() {
530
500
  }
531
501
  }
532
502
  },
533
- /* @__PURE__ */ React20.createElement(import_icons5.SettingsIcon, { fontSize: "small" })
503
+ /* @__PURE__ */ React20.createElement(import_icons4.SettingsIcon, { fontSize: "small" })
534
504
  )));
535
505
  }
536
506
  function Tooltip3(props) {
@@ -550,7 +520,7 @@ function Tooltip3(props) {
550
520
  }
551
521
 
552
522
  // src/extensions/documents-indicator/index.ts
553
- function init2() {
523
+ function init() {
554
524
  injectIntoPageIndication({
555
525
  id: "document-settings-button",
556
526
  component: SettingsButton,
@@ -564,13 +534,13 @@ function init2() {
564
534
  // src/extensions/documents-preview/hooks/use-action-props.ts
565
535
  var import_editor_documents3 = require("@elementor/editor-documents");
566
536
  var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
567
- var import_icons6 = require("@elementor/icons");
568
- var import_i18n6 = require("@wordpress/i18n");
537
+ var import_icons5 = require("@elementor/icons");
538
+ var import_i18n5 = require("@wordpress/i18n");
569
539
  function useActionProps() {
570
540
  const document2 = (0, import_editor_documents3.__useActiveDocument)();
571
541
  return {
572
- icon: import_icons6.EyeIcon,
573
- title: (0, import_i18n6.__)("Preview Changes", "elementor"),
542
+ icon: import_icons5.EyeIcon,
543
+ title: (0, import_i18n5.__)("Preview Changes", "elementor"),
574
544
  onClick: () => {
575
545
  const extendedWindow = window;
576
546
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -593,7 +563,7 @@ function useActionProps() {
593
563
  }
594
564
 
595
565
  // src/extensions/documents-preview/index.ts
596
- function init3() {
566
+ function init2() {
597
567
  utilitiesMenu.registerAction({
598
568
  id: "document-preview-button",
599
569
  priority: 30,
@@ -606,9 +576,9 @@ function init3() {
606
576
  var React22 = __toESM(require("react"));
607
577
  var import_editor_documents4 = require("@elementor/editor-documents");
608
578
  var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
609
- var import_icons7 = require("@elementor/icons");
579
+ var import_icons6 = require("@elementor/icons");
610
580
  var import_ui14 = require("@elementor/ui");
611
- var import_i18n7 = require("@wordpress/i18n");
581
+ var import_i18n6 = require("@wordpress/i18n");
612
582
 
613
583
  // src/extensions/documents-save/components/primary-action-menu.tsx
614
584
  var React21 = __toESM(require("react"));
@@ -707,7 +677,7 @@ function PrimaryAction() {
707
677
  ), /* @__PURE__ */ React22.createElement(
708
678
  import_ui14.Tooltip,
709
679
  {
710
- title: (0, import_i18n7.__)("Save Options", "elementor"),
680
+ title: (0, import_i18n6.__)("Save Options", "elementor"),
711
681
  PopperProps: {
712
682
  sx: {
713
683
  "&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom": {
@@ -724,14 +694,14 @@ function PrimaryAction() {
724
694
  ...(0, import_ui14.bindTrigger)(popupState),
725
695
  sx: { px: 0, height: "100%", borderRadius: 0 },
726
696
  disabled: isSaveOptionsDisabled,
727
- "aria-label": (0, import_i18n7.__)("Save Options", "elementor")
697
+ "aria-label": (0, import_i18n6.__)("Save Options", "elementor")
728
698
  },
729
- /* @__PURE__ */ React22.createElement(import_icons7.ChevronDownIcon, null)
699
+ /* @__PURE__ */ React22.createElement(import_icons6.ChevronDownIcon, null)
730
700
  ))
731
701
  )), /* @__PURE__ */ React22.createElement(PrimaryActionMenu, { ...(0, import_ui14.bindMenu)(popupState), onClick: popupState.close }));
732
702
  }
733
703
  function getLabel(document2) {
734
- return document2.userCan.publish ? (0, import_i18n7.__)("Publish", "elementor") : (0, import_i18n7.__)("Submit", "elementor");
704
+ return document2.userCan.publish ? (0, import_i18n6.__)("Publish", "elementor") : (0, import_i18n6.__)("Submit", "elementor");
735
705
  }
736
706
  function isPublishEnabled(document2) {
737
707
  if (document2.type.value === "kit") {
@@ -742,14 +712,14 @@ function isPublishEnabled(document2) {
742
712
 
743
713
  // src/extensions/documents-save/hooks/use-document-copy-and-share-props.ts
744
714
  var import_editor_documents5 = require("@elementor/editor-documents");
745
- var import_icons8 = require("@elementor/icons");
746
- var import_i18n8 = require("@wordpress/i18n");
715
+ var import_icons7 = require("@elementor/icons");
716
+ var import_i18n7 = require("@wordpress/i18n");
747
717
  function useDocumentCopyAndShareProps() {
748
718
  const document2 = (0, import_editor_documents5.__useActiveDocument)();
749
719
  const { copyAndShare } = (0, import_editor_documents5.__useActiveDocumentActions)();
750
720
  return {
751
- icon: import_icons8.LinkIcon,
752
- title: (0, import_i18n8.__)("Copy and Share", "elementor"),
721
+ icon: import_icons7.LinkIcon,
722
+ title: (0, import_i18n7.__)("Copy and Share", "elementor"),
753
723
  onClick: copyAndShare,
754
724
  disabled: !document2 || document2.isSaving || document2.isSavingDraft || !("publish" === document2.status.value),
755
725
  visible: document2?.permissions?.showCopyAndShare
@@ -758,14 +728,14 @@ function useDocumentCopyAndShareProps() {
758
728
 
759
729
  // src/extensions/documents-save/hooks/use-document-save-draft-props.ts
760
730
  var import_editor_documents6 = require("@elementor/editor-documents");
761
- var import_icons9 = require("@elementor/icons");
762
- var import_i18n9 = require("@wordpress/i18n");
731
+ var import_icons8 = require("@elementor/icons");
732
+ var import_i18n8 = require("@wordpress/i18n");
763
733
  function useDocumentSaveDraftProps() {
764
734
  const document2 = (0, import_editor_documents6.__useActiveDocument)();
765
735
  const { saveDraft } = (0, import_editor_documents6.__useActiveDocumentActions)();
766
736
  return {
767
- icon: import_icons9.FileReportIcon,
768
- title: (0, import_i18n9.__)("Save Draft", "elementor"),
737
+ icon: import_icons8.FileReportIcon,
738
+ title: (0, import_i18n8.__)("Save Draft", "elementor"),
769
739
  onClick: saveDraft,
770
740
  disabled: !document2 || document2.isSaving || document2.isSavingDraft || !document2.isDirty
771
741
  };
@@ -773,13 +743,13 @@ function useDocumentSaveDraftProps() {
773
743
 
774
744
  // src/extensions/documents-save/hooks/use-document-save-template-props.ts
775
745
  var import_editor_documents7 = require("@elementor/editor-documents");
776
- var import_icons10 = require("@elementor/icons");
777
- var import_i18n10 = require("@wordpress/i18n");
746
+ var import_icons9 = require("@elementor/icons");
747
+ var import_i18n9 = require("@wordpress/i18n");
778
748
  function useDocumentSaveTemplateProps() {
779
749
  const { saveTemplate } = (0, import_editor_documents7.__useActiveDocumentActions)();
780
750
  return {
781
- icon: import_icons10.FolderIcon,
782
- title: (0, import_i18n10.__)("Save as Template", "elementor"),
751
+ icon: import_icons9.FolderIcon,
752
+ title: (0, import_i18n9.__)("Save as Template", "elementor"),
783
753
  onClick: saveTemplate
784
754
  };
785
755
  }
@@ -787,13 +757,13 @@ function useDocumentSaveTemplateProps() {
787
757
  // src/extensions/documents-save/hooks/use-document-view-page-props.ts
788
758
  var import_editor_documents8 = require("@elementor/editor-documents");
789
759
  var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
790
- var import_icons11 = require("@elementor/icons");
791
- var import_i18n11 = require("@wordpress/i18n");
760
+ var import_icons10 = require("@elementor/icons");
761
+ var import_i18n10 = require("@wordpress/i18n");
792
762
  function useDocumentViewPageProps() {
793
763
  const document2 = (0, import_editor_documents8.__useActiveDocument)();
794
764
  return {
795
- icon: import_icons11.EyeIcon,
796
- title: (0, import_i18n11.__)("View Page", "elementor"),
765
+ icon: import_icons10.EyeIcon,
766
+ title: (0, import_i18n10.__)("View Page", "elementor"),
797
767
  onClick: () => document2?.id && (0, import_editor_v1_adapters4.__privateRunCommand)("editor/documents/view", {
798
768
  id: document2.id
799
769
  })
@@ -801,7 +771,7 @@ function useDocumentViewPageProps() {
801
771
  }
802
772
 
803
773
  // src/extensions/documents-save/index.ts
804
- function init4() {
774
+ function init3() {
805
775
  injectIntoPrimaryAction({
806
776
  id: "document-primary-action",
807
777
  component: PrimaryAction
@@ -832,13 +802,13 @@ function init4() {
832
802
 
833
803
  // src/extensions/elements/hooks/use-action-props.ts
834
804
  var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
835
- var import_icons12 = require("@elementor/icons");
836
- var import_i18n12 = require("@wordpress/i18n");
805
+ var import_icons11 = require("@elementor/icons");
806
+ var import_i18n11 = require("@wordpress/i18n");
837
807
  function useActionProps2() {
838
808
  const { isActive, isBlocked } = (0, import_editor_v1_adapters5.__privateUseRouteStatus)("panel/elements");
839
809
  return {
840
- title: (0, import_i18n12.__)("Add Element", "elementor"),
841
- icon: import_icons12.PlusIcon,
810
+ title: (0, import_i18n11.__)("Add Element", "elementor"),
811
+ icon: import_icons11.PlusIcon,
842
812
  onClick: () => {
843
813
  const extendedWindow = window;
844
814
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -859,10 +829,10 @@ function useActionProps2() {
859
829
 
860
830
  // src/extensions/elements/sync/sync-panel-title.ts
861
831
  var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
862
- var import_i18n13 = require("@wordpress/i18n");
832
+ var import_i18n12 = require("@wordpress/i18n");
863
833
  function syncPanelTitle() {
864
- const panelTitle = (0, import_i18n13.__)("Elements", "elementor");
865
- const tabTitle = (0, import_i18n13.__)("Widgets", "elementor");
834
+ const panelTitle = (0, import_i18n12.__)("Elements", "elementor");
835
+ const tabTitle = (0, import_i18n12.__)("Widgets", "elementor");
866
836
  (0, import_editor_v1_adapters6.__privateListenTo)((0, import_editor_v1_adapters6.routeOpenEvent)("panel/elements"), () => {
867
837
  setPanelTitle(panelTitle);
868
838
  setTabTitle(tabTitle);
@@ -885,7 +855,7 @@ function setTabTitle(title) {
885
855
  }
886
856
 
887
857
  // src/extensions/elements/index.ts
888
- function init5() {
858
+ function init4() {
889
859
  syncPanelTitle();
890
860
  toolsMenu.registerToggleAction({
891
861
  id: "open-elements-panel",
@@ -896,12 +866,12 @@ function init5() {
896
866
 
897
867
  // src/extensions/finder/hooks/use-action-props.ts
898
868
  var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
899
- var import_icons13 = require("@elementor/icons");
900
- var import_i18n14 = require("@wordpress/i18n");
869
+ var import_icons12 = require("@elementor/icons");
870
+ var import_i18n13 = require("@wordpress/i18n");
901
871
  function useActionProps3() {
902
872
  return {
903
- title: (0, import_i18n14.__)("Finder", "elementor"),
904
- icon: import_icons13.SearchIcon,
873
+ title: (0, import_i18n13.__)("Finder", "elementor"),
874
+ icon: import_icons12.SearchIcon,
905
875
  onClick: () => {
906
876
  const extendedWindow = window;
907
877
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -919,7 +889,7 @@ function useActionProps3() {
919
889
  }
920
890
 
921
891
  // src/extensions/finder/index.ts
922
- function init6() {
892
+ function init5() {
923
893
  utilitiesMenu.registerAction({
924
894
  id: "toggle-finder",
925
895
  priority: 15,
@@ -929,20 +899,19 @@ function init6() {
929
899
  }
930
900
 
931
901
  // src/extensions/help/index.ts
932
- var import_icons14 = require("@elementor/icons");
933
- var import_i18n15 = require("@wordpress/i18n");
934
- function init7() {
902
+ var import_icons13 = require("@elementor/icons");
903
+ var import_i18n14 = require("@wordpress/i18n");
904
+ function init6() {
935
905
  utilitiesMenu.registerLink({
936
906
  id: "open-help-center",
937
907
  priority: 25,
938
908
  // After Finder.
939
909
  useProps: () => {
940
910
  return {
941
- title: (0, import_i18n15.__)("Help", "elementor"),
911
+ title: (0, import_i18n14.__)("Help", "elementor"),
942
912
  href: "https://go.elementor.com/editor-top-bar-learn/",
943
- icon: import_icons14.HelpIcon,
913
+ icon: import_icons13.HelpIcon,
944
914
  target: "_blank",
945
- showExternalLinkIcon: true,
946
915
  onClick: () => {
947
916
  const extendedWindow = window;
948
917
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -962,13 +931,13 @@ function init7() {
962
931
 
963
932
  // src/extensions/history/hooks/use-action-props.ts
964
933
  var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
965
- var import_icons15 = require("@elementor/icons");
966
- var import_i18n16 = require("@wordpress/i18n");
934
+ var import_icons14 = require("@elementor/icons");
935
+ var import_i18n15 = require("@wordpress/i18n");
967
936
  function useActionProps4() {
968
937
  const { isActive, isBlocked } = (0, import_editor_v1_adapters8.__privateUseRouteStatus)("panel/history");
969
938
  return {
970
- title: (0, import_i18n16.__)("History", "elementor"),
971
- icon: import_icons15.HistoryIcon,
939
+ title: (0, import_i18n15.__)("History", "elementor"),
940
+ icon: import_icons14.HistoryIcon,
972
941
  onClick: () => {
973
942
  const extendedWindow = window;
974
943
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -988,7 +957,7 @@ function useActionProps4() {
988
957
  }
989
958
 
990
959
  // src/extensions/history/index.ts
991
- function init8() {
960
+ function init7() {
992
961
  mainMenu.registerToggleAction({
993
962
  id: "open-history",
994
963
  priority: 20,
@@ -998,12 +967,12 @@ function init8() {
998
967
 
999
968
  // src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
1000
969
  var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
1001
- var import_icons16 = require("@elementor/icons");
1002
- var import_i18n17 = require("@wordpress/i18n");
970
+ var import_icons15 = require("@elementor/icons");
971
+ var import_i18n16 = require("@wordpress/i18n");
1003
972
  function useActionProps5() {
1004
973
  return {
1005
- icon: import_icons16.KeyboardIcon,
1006
- title: (0, import_i18n17.__)("Keyboard Shortcuts", "elementor"),
974
+ icon: import_icons15.KeyboardIcon,
975
+ title: (0, import_i18n16.__)("Keyboard Shortcuts", "elementor"),
1007
976
  onClick: () => {
1008
977
  const extendedWindow = window;
1009
978
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1021,7 +990,7 @@ function useActionProps5() {
1021
990
  }
1022
991
 
1023
992
  // src/extensions/keyboard-shortcuts/index.ts
1024
- function init9() {
993
+ function init8() {
1025
994
  mainMenu.registerAction({
1026
995
  id: "open-keyboard-shortcuts",
1027
996
  group: "default",
@@ -1034,9 +1003,9 @@ function init9() {
1034
1003
  // src/extensions/responsive/components/breakpoints-switcher.tsx
1035
1004
  var React23 = __toESM(require("react"));
1036
1005
  var import_editor_responsive = require("@elementor/editor-responsive");
1037
- var import_icons17 = require("@elementor/icons");
1006
+ var import_icons16 = require("@elementor/icons");
1038
1007
  var import_ui15 = require("@elementor/ui");
1039
- var import_i18n18 = require("@wordpress/i18n");
1008
+ var import_i18n17 = require("@wordpress/i18n");
1040
1009
  function BreakpointsSwitcher() {
1041
1010
  const breakpoints = (0, import_editor_responsive.useBreakpoints)();
1042
1011
  const activeBreakpoint = (0, import_editor_responsive.useActiveBreakpoint)();
@@ -1065,7 +1034,7 @@ function BreakpointsSwitcher() {
1065
1034
  indicatorColor: "secondary",
1066
1035
  value: activeBreakpoint,
1067
1036
  onChange,
1068
- "aria-label": (0, import_i18n18.__)("Switch Device", "elementor"),
1037
+ "aria-label": (0, import_i18n17.__)("Switch Device", "elementor"),
1069
1038
  sx: {
1070
1039
  "& .MuiTabs-indicator": {
1071
1040
  backgroundColor: "text.primary"
@@ -1105,24 +1074,24 @@ function Tooltip5(props) {
1105
1074
  );
1106
1075
  }
1107
1076
  var iconsMap = {
1108
- widescreen: import_icons17.WidescreenIcon,
1109
- desktop: import_icons17.DesktopIcon,
1110
- laptop: import_icons17.LaptopIcon,
1111
- tablet_extra: import_icons17.TabletLandscapeIcon,
1112
- tablet: import_icons17.TabletPortraitIcon,
1113
- mobile_extra: import_icons17.MobileLandscapeIcon,
1114
- mobile: import_icons17.MobilePortraitIcon
1077
+ widescreen: import_icons16.WidescreenIcon,
1078
+ desktop: import_icons16.DesktopIcon,
1079
+ laptop: import_icons16.LaptopIcon,
1080
+ tablet_extra: import_icons16.TabletLandscapeIcon,
1081
+ tablet: import_icons16.TabletPortraitIcon,
1082
+ mobile_extra: import_icons16.MobileLandscapeIcon,
1083
+ mobile: import_icons16.MobilePortraitIcon
1115
1084
  };
1116
1085
  var labelsMap = {
1117
1086
  default: "%s",
1118
1087
  // translators: %s: Breakpoint label, %d: Breakpoint size.
1119
- "min-width": (0, import_i18n18.__)("%s (%dpx and up)", "elementor"),
1088
+ "min-width": (0, import_i18n17.__)("%s (%dpx and up)", "elementor"),
1120
1089
  // translators: %s: Breakpoint label, %d: Breakpoint size.
1121
- "max-width": (0, import_i18n18.__)("%s (up to %dpx)", "elementor")
1090
+ "max-width": (0, import_i18n17.__)("%s (up to %dpx)", "elementor")
1122
1091
  };
1123
1092
 
1124
1093
  // src/extensions/responsive/index.ts
1125
- function init10() {
1094
+ function init9() {
1126
1095
  injectIntoResponsive({
1127
1096
  id: "responsive-breakpoints-switcher",
1128
1097
  component: BreakpointsSwitcher,
@@ -1161,7 +1130,7 @@ function getContainerRef() {
1161
1130
  var React25 = __toESM(require("react"));
1162
1131
  var import_editor_documents9 = require("@elementor/editor-documents");
1163
1132
  var import_ui17 = require("@elementor/ui");
1164
- var import_i18n19 = require("@wordpress/i18n");
1133
+ var import_i18n18 = require("@wordpress/i18n");
1165
1134
  function PrimaryAction2() {
1166
1135
  const document2 = (0, import_editor_documents9.__useActiveDocument)();
1167
1136
  const { save } = (0, import_editor_documents9.__useActiveDocumentActions)();
@@ -1184,7 +1153,7 @@ function PrimaryAction2() {
1184
1153
  sx: { width: "100%" },
1185
1154
  onClick: () => document2 && !document2.isSaving ? save() : null
1186
1155
  },
1187
- document2?.isSaving ? /* @__PURE__ */ React25.createElement(import_ui17.CircularProgress, null) : (0, import_i18n19.__)("Save Changes", "elementor")
1156
+ document2?.isSaving ? /* @__PURE__ */ React25.createElement(import_ui17.CircularProgress, null) : (0, import_i18n18.__)("Save Changes", "elementor")
1188
1157
  )
1189
1158
  );
1190
1159
  }
@@ -1196,15 +1165,15 @@ function PortalledPrimaryAction() {
1196
1165
 
1197
1166
  // src/extensions/site-settings/hooks/use-action-props.ts
1198
1167
  var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
1199
- var import_icons18 = require("@elementor/icons");
1200
- var import_i18n20 = require("@wordpress/i18n");
1168
+ var import_icons17 = require("@elementor/icons");
1169
+ var import_i18n19 = require("@wordpress/i18n");
1201
1170
  function useActionProps6() {
1202
1171
  const { isActive, isBlocked } = (0, import_editor_v1_adapters11.__privateUseRouteStatus)("panel/global", {
1203
1172
  blockOnKitRoutes: false
1204
1173
  });
1205
1174
  return {
1206
- title: (0, import_i18n20.__)("Site Settings", "elementor"),
1207
- icon: import_icons18.AdjustmentsHorizontalIcon,
1175
+ title: (0, import_i18n19.__)("Site Settings", "elementor"),
1176
+ icon: import_icons17.AdjustmentsHorizontalIcon,
1208
1177
  onClick: () => {
1209
1178
  const extendedWindow = window;
1210
1179
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1228,7 +1197,7 @@ function useActionProps6() {
1228
1197
  }
1229
1198
 
1230
1199
  // src/extensions/site-settings/index.ts
1231
- function init11() {
1200
+ function init10() {
1232
1201
  (0, import_editor.injectIntoTop)({
1233
1202
  id: "site-settings-primary-action-portal",
1234
1203
  component: PortalledPrimaryAction
@@ -1242,13 +1211,13 @@ function init11() {
1242
1211
 
1243
1212
  // src/extensions/structure/hooks/use-action-props.ts
1244
1213
  var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
1245
- var import_icons19 = require("@elementor/icons");
1246
- var import_i18n21 = require("@wordpress/i18n");
1214
+ var import_icons18 = require("@elementor/icons");
1215
+ var import_i18n20 = require("@wordpress/i18n");
1247
1216
  function useActionProps7() {
1248
1217
  const { isActive, isBlocked } = (0, import_editor_v1_adapters12.__privateUseRouteStatus)("navigator");
1249
1218
  return {
1250
- title: (0, import_i18n21.__)("Structure", "elementor"),
1251
- icon: import_icons19.StructureIcon,
1219
+ title: (0, import_i18n20.__)("Structure", "elementor"),
1220
+ icon: import_icons18.StructureIcon,
1252
1221
  onClick: () => {
1253
1222
  const extendedWindow = window;
1254
1223
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1268,7 +1237,7 @@ function useActionProps7() {
1268
1237
  }
1269
1238
 
1270
1239
  // src/extensions/structure/index.ts
1271
- function init12() {
1240
+ function init11() {
1272
1241
  toolsMenu.registerToggleAction({
1273
1242
  id: "toggle-structure-view",
1274
1243
  priority: 3,
@@ -1278,12 +1247,12 @@ function init12() {
1278
1247
 
1279
1248
  // src/extensions/theme-builder/hooks/use-action-props.ts
1280
1249
  var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
1281
- var import_icons20 = require("@elementor/icons");
1282
- var import_i18n22 = require("@wordpress/i18n");
1250
+ var import_icons19 = require("@elementor/icons");
1251
+ var import_i18n21 = require("@wordpress/i18n");
1283
1252
  function useActionProps8() {
1284
1253
  return {
1285
- icon: import_icons20.ThemeBuilderIcon,
1286
- title: (0, import_i18n22.__)("Theme Builder", "elementor"),
1254
+ icon: import_icons19.ThemeBuilderIcon,
1255
+ title: (0, import_i18n21.__)("Theme Builder", "elementor"),
1287
1256
  onClick: () => {
1288
1257
  const extendedWindow = window;
1289
1258
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1301,7 +1270,7 @@ function useActionProps8() {
1301
1270
  }
1302
1271
 
1303
1272
  // src/extensions/theme-builder/index.ts
1304
- function init13() {
1273
+ function init12() {
1305
1274
  mainMenu.registerAction({
1306
1275
  id: "open-theme-builder",
1307
1276
  useProps: useActionProps8
@@ -1310,13 +1279,13 @@ function init13() {
1310
1279
 
1311
1280
  // src/extensions/user-preferences/hooks/use-action-props.ts
1312
1281
  var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
1313
- var import_icons21 = require("@elementor/icons");
1314
- var import_i18n23 = require("@wordpress/i18n");
1282
+ var import_icons20 = require("@elementor/icons");
1283
+ var import_i18n22 = require("@wordpress/i18n");
1315
1284
  function useActionProps9() {
1316
1285
  const { isActive, isBlocked } = (0, import_editor_v1_adapters14.__privateUseRouteStatus)("panel/editor-preferences");
1317
1286
  return {
1318
- icon: import_icons21.ToggleRightIcon,
1319
- title: (0, import_i18n23.__)("User Preferences", "elementor"),
1287
+ icon: import_icons20.ToggleRightIcon,
1288
+ title: (0, import_i18n22.__)("User Preferences", "elementor"),
1320
1289
  onClick: () => {
1321
1290
  const extendedWindow = window;
1322
1291
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1336,7 +1305,7 @@ function useActionProps9() {
1336
1305
  }
1337
1306
 
1338
1307
  // src/extensions/user-preferences/index.ts
1339
- function init14() {
1308
+ function init13() {
1340
1309
  mainMenu.registerToggleAction({
1341
1310
  id: "open-user-preferences",
1342
1311
  priority: 30,
@@ -1347,19 +1316,18 @@ function init14() {
1347
1316
 
1348
1317
  // src/extensions/wordpress/index.ts
1349
1318
  var import_editor_documents10 = require("@elementor/editor-documents");
1350
- var import_icons22 = require("@elementor/icons");
1351
- var import_i18n24 = require("@wordpress/i18n");
1352
- function init15() {
1319
+ var import_icons21 = require("@elementor/icons");
1320
+ var import_i18n23 = require("@wordpress/i18n");
1321
+ function init14() {
1353
1322
  mainMenu.registerLink({
1354
1323
  id: "exit-to-wordpress",
1355
1324
  group: "exits",
1356
- priority: 20,
1357
1325
  useProps: () => {
1358
1326
  const document2 = (0, import_editor_documents10.__useActiveDocument)();
1359
1327
  return {
1360
- title: (0, import_i18n24.__)("Exit to WordPress", "elementor"),
1328
+ title: (0, import_i18n23.__)("Exit to WordPress", "elementor"),
1361
1329
  href: document2?.links?.platformEdit,
1362
- icon: import_icons22.WordpressIcon,
1330
+ icon: import_icons21.WordpressIcon,
1363
1331
  onClick: () => {
1364
1332
  const extendedWindow = window;
1365
1333
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1381,7 +1349,8 @@ function init15() {
1381
1349
  }
1382
1350
 
1383
1351
  // src/extensions/index.ts
1384
- function init16() {
1352
+ function init15() {
1353
+ init();
1385
1354
  init2();
1386
1355
  init3();
1387
1356
  init4();
@@ -1395,8 +1364,6 @@ function init16() {
1395
1364
  init12();
1396
1365
  init13();
1397
1366
  init14();
1398
- init15();
1399
- init();
1400
1367
  }
1401
1368
 
1402
1369
  // src/sync/redirect-old-menus.ts
@@ -1408,9 +1375,9 @@ function redirectOldMenus() {
1408
1375
  }
1409
1376
 
1410
1377
  // src/init.ts
1411
- function init17() {
1378
+ function init16() {
1412
1379
  redirectOldMenus();
1413
- init16();
1380
+ init15();
1414
1381
  (0, import_editor2.injectIntoTop)({
1415
1382
  id: "app-bar",
1416
1383
  component: AppBar