@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.mjs
CHANGED
|
@@ -197,8 +197,8 @@ import { AppBar as BaseAppBar, Box as Box3, Divider as Divider2, Grid, ThemeProv
|
|
|
197
197
|
// src/constants.ts
|
|
198
198
|
var MIN_APP_BAR_WIDTH = 800;
|
|
199
199
|
var DEFAULT_MAX_TOOLBAR_ACTIONS = {
|
|
200
|
-
tools:
|
|
201
|
-
utilities:
|
|
200
|
+
tools: 6,
|
|
201
|
+
utilities: 5
|
|
202
202
|
};
|
|
203
203
|
|
|
204
204
|
// src/contexts/app-bar-size-context.tsx
|
|
@@ -512,7 +512,7 @@ function AngieGuideLocation() {
|
|
|
512
512
|
]
|
|
513
513
|
}
|
|
514
514
|
},
|
|
515
|
-
/* @__PURE__ */ React16.createElement("span",
|
|
515
|
+
/* @__PURE__ */ React16.createElement("span", { style: { display: "contents" } })
|
|
516
516
|
));
|
|
517
517
|
}
|
|
518
518
|
|
|
@@ -730,10 +730,10 @@ var { useMenuItems: useMenuItems4 } = utilitiesMenu;
|
|
|
730
730
|
function UtilitiesMenuLocation() {
|
|
731
731
|
const menuItems = useMenuItems4();
|
|
732
732
|
const { utilities: maxToolbarActions } = useMaxToolbarActions();
|
|
733
|
-
const shouldUsePopover = menuItems.default.length > maxToolbarActions
|
|
733
|
+
const shouldUsePopover = menuItems.default.length > maxToolbarActions;
|
|
734
734
|
const toolbarMenuItems = shouldUsePopover ? menuItems.default.slice(0, maxToolbarActions) : menuItems.default;
|
|
735
735
|
const popoverMenuItems = shouldUsePopover ? menuItems.default.slice(maxToolbarActions) : [];
|
|
736
|
-
return /* @__PURE__ */ React22.createElement(ToolbarMenu, null,
|
|
736
|
+
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(Fragment4, { key: id }, /* @__PURE__ */ React22.createElement(MenuItem2, null))));
|
|
737
737
|
}
|
|
738
738
|
|
|
739
739
|
// src/components/app-bar.tsx
|
|
@@ -1287,7 +1287,7 @@ function useActionProps3() {
|
|
|
1287
1287
|
function init5() {
|
|
1288
1288
|
toolsMenu.registerToggleAction({
|
|
1289
1289
|
id: "document-settings-button",
|
|
1290
|
-
priority:
|
|
1290
|
+
priority: 5,
|
|
1291
1291
|
useProps: useActionProps3
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
@@ -1304,6 +1304,7 @@ function useActionProps4() {
|
|
|
1304
1304
|
return {
|
|
1305
1305
|
title: __16("Add Element", "elementor"),
|
|
1306
1306
|
icon: PlusIcon,
|
|
1307
|
+
id: "ele-add-element",
|
|
1307
1308
|
onClick: () => {
|
|
1308
1309
|
const extendedWindow = window;
|
|
1309
1310
|
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
@@ -1490,7 +1491,7 @@ function useActionProps7() {
|
|
|
1490
1491
|
function init10() {
|
|
1491
1492
|
toolsMenu.registerToggleAction({
|
|
1492
1493
|
id: "open-history",
|
|
1493
|
-
priority:
|
|
1494
|
+
priority: 3,
|
|
1494
1495
|
useProps: useActionProps7
|
|
1495
1496
|
});
|
|
1496
1497
|
}
|