@elementor/editor-app-bar 4.3.0-999 → 4.4.0-1065

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
@@ -26,6 +26,7 @@ declare function Link({ icon: Icon, title, visible, showExternalLinkIcon, ...pro
26
26
  type Props = {
27
27
  title: string;
28
28
  icon: ElementType;
29
+ id?: string;
29
30
  selected?: boolean;
30
31
  disabled?: boolean;
31
32
  visible?: boolean;
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ declare function Link({ icon: Icon, title, visible, showExternalLinkIcon, ...pro
26
26
  type Props = {
27
27
  title: string;
28
28
  icon: ElementType;
29
+ id?: string;
29
30
  selected?: boolean;
30
31
  disabled?: boolean;
31
32
  visible?: boolean;
package/dist/index.js CHANGED
@@ -241,8 +241,8 @@ var import_ui13 = require("@elementor/ui");
241
241
  // src/constants.ts
242
242
  var MIN_APP_BAR_WIDTH = 800;
243
243
  var DEFAULT_MAX_TOOLBAR_ACTIONS = {
244
- tools: 5,
245
- utilities: 4
244
+ tools: 6,
245
+ utilities: 5
246
246
  };
247
247
 
248
248
  // src/contexts/app-bar-size-context.tsx
@@ -556,7 +556,7 @@ function AngieGuideLocation() {
556
556
  ]
557
557
  }
558
558
  },
559
- /* @__PURE__ */ React16.createElement("span", null)
559
+ /* @__PURE__ */ React16.createElement("span", { style: { display: "contents" } })
560
560
  ));
561
561
  }
562
562
 
@@ -762,10 +762,10 @@ var { useMenuItems: useMenuItems4 } = utilitiesMenu;
762
762
  function UtilitiesMenuLocation() {
763
763
  const menuItems = useMenuItems4();
764
764
  const { utilities: maxToolbarActions } = useMaxToolbarActions();
765
- const shouldUsePopover = menuItems.default.length > maxToolbarActions + 1;
765
+ const shouldUsePopover = menuItems.default.length > maxToolbarActions;
766
766
  const toolbarMenuItems = shouldUsePopover ? menuItems.default.slice(0, maxToolbarActions) : menuItems.default;
767
767
  const popoverMenuItems = shouldUsePopover ? menuItems.default.slice(maxToolbarActions) : [];
768
- return /* @__PURE__ */ React22.createElement(ToolbarMenu, null, toolbarMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React22.createElement(import_react8.Fragment, { key: id }, /* @__PURE__ */ React22.createElement(MenuItem2, null))), popoverMenuItems.length > 0 && /* @__PURE__ */ React22.createElement(ToolbarMenuMore, { id: "elementor-editor-app-bar-utilities-more" }, popoverMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React22.createElement(MenuItem2, { key: id }))));
768
+ return /* @__PURE__ */ React22.createElement(ToolbarMenu, null, popoverMenuItems.length > 0 && /* @__PURE__ */ React22.createElement(ToolbarMenuMore, { id: "elementor-editor-app-bar-utilities-more" }, popoverMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React22.createElement(MenuItem2, { key: id }))), toolbarMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React22.createElement(import_react8.Fragment, { key: id }, /* @__PURE__ */ React22.createElement(MenuItem2, null))));
769
769
  }
770
770
 
771
771
  // src/components/app-bar.tsx
@@ -1295,7 +1295,7 @@ function useActionProps3() {
1295
1295
  function init5() {
1296
1296
  toolsMenu.registerToggleAction({
1297
1297
  id: "document-settings-button",
1298
- priority: 3,
1298
+ priority: 5,
1299
1299
  useProps: useActionProps3
1300
1300
  });
1301
1301
  }
@@ -1309,6 +1309,7 @@ function useActionProps4() {
1309
1309
  return {
1310
1310
  title: (0, import_i18n16.__)("Add Element", "elementor"),
1311
1311
  icon: import_icons14.PlusIcon,
1312
+ id: "ele-add-element",
1312
1313
  onClick: () => {
1313
1314
  const extendedWindow = window;
1314
1315
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1487,7 +1488,7 @@ function useActionProps7() {
1487
1488
  function init10() {
1488
1489
  toolsMenu.registerToggleAction({
1489
1490
  id: "open-history",
1490
- priority: 15,
1491
+ priority: 3,
1491
1492
  useProps: useActionProps7
1492
1493
  });
1493
1494
  }