@elementor/editor-app-bar 4.3.0-999 → 4.4.0-1064
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 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/src/components/actions/toggle-action.tsx +1 -0
- package/src/components/locations/utilities-menu-location.tsx +6 -6
- package/src/constants.ts +2 -2
- package/src/extensions/angie/components/angie-guide-location.tsx +1 -1
- package/src/extensions/documents-settings/index.ts +1 -1
- package/src/extensions/elements/hooks/use-action-props.ts +1 -0
- package/src/extensions/history/index.ts +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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:
|
|
245
|
-
utilities:
|
|
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",
|
|
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
|
|
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,
|
|
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:
|
|
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:
|
|
1491
|
+
priority: 3,
|
|
1491
1492
|
useProps: useActionProps7
|
|
1492
1493
|
});
|
|
1493
1494
|
}
|