@elementor/editor-editing-panel 1.22.0 → 1.23.0
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/CHANGELOG.md +18 -0
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/css-classes/css-class-menu.tsx +12 -15
- package/src/components/section.tsx +1 -1
- package/src/components/style-sections/layout-section/utils/rotated-icon.tsx +2 -0
- package/src/dynamics/components/dynamic-selection-control.tsx +1 -1
- package/src/dynamics/components/dynamic-selection.tsx +3 -3
- package/src/dynamics/hooks/use-prop-dynamic-tags.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c10d154: Change outer margin of dynamic tags popover
|
|
8
|
+
- 50938e4: Change controls menus text style
|
|
9
|
+
- 64ec032: Change the style from 'ListSubHeader' to 'MenuSubHeader'
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [2ea9555]
|
|
14
|
+
- Updated dependencies [50938e4]
|
|
15
|
+
- Updated dependencies [64ec032]
|
|
16
|
+
- @elementor/editor-elements@0.7.0
|
|
17
|
+
- @elementor/editor-controls@0.20.0
|
|
18
|
+
- @elementor/editor-ui@0.5.0
|
|
19
|
+
- @elementor/editor-styles-repository@0.8.1
|
|
20
|
+
|
|
3
21
|
## 1.22.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -247,7 +247,7 @@ function isAction(option) {
|
|
|
247
247
|
var React6 = __toESM(require("react"));
|
|
248
248
|
var import_react5 = require("react");
|
|
249
249
|
var import_editor_styles_repository3 = require("@elementor/editor-styles-repository");
|
|
250
|
-
var
|
|
250
|
+
var import_editor_ui2 = require("@elementor/editor-ui");
|
|
251
251
|
var import_icons = require("@elementor/icons");
|
|
252
252
|
var import_ui3 = require("@elementor/ui");
|
|
253
253
|
var import_i18n2 = require("@wordpress/i18n");
|
|
@@ -255,6 +255,7 @@ var import_i18n2 = require("@wordpress/i18n");
|
|
|
255
255
|
// src/components/css-classes/css-class-menu.tsx
|
|
256
256
|
var React5 = __toESM(require("react"));
|
|
257
257
|
var import_editor_styles_repository2 = require("@elementor/editor-styles-repository");
|
|
258
|
+
var import_editor_ui = require("@elementor/editor-ui");
|
|
258
259
|
var import_ui2 = require("@elementor/ui");
|
|
259
260
|
var import_i18n = require("@wordpress/i18n");
|
|
260
261
|
|
|
@@ -303,7 +304,7 @@ function CssClassMenu({ styleId, provider, popupState, handleRename, anchorEl })
|
|
|
303
304
|
onKeyDown: handleKeyDown
|
|
304
305
|
},
|
|
305
306
|
getMenuItemsByProvider({ provider, styleId, handleRename, closeMenu: popupState.close }),
|
|
306
|
-
/* @__PURE__ */ React5.createElement(import_ui2.
|
|
307
|
+
/* @__PURE__ */ React5.createElement(import_ui2.MenuSubheader, { sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 } }, (0, import_i18n.__)("Pseudo classes", "elementor")),
|
|
307
308
|
/* @__PURE__ */ React5.createElement(StateMenuItem, { key: "normal", state: null, styleId, closeMenu: popupState.close }),
|
|
308
309
|
STATES.map((state) => {
|
|
309
310
|
return /* @__PURE__ */ React5.createElement(StateMenuItem, { key: state, state, styleId, closeMenu: popupState.close });
|
|
@@ -329,7 +330,7 @@ function getMenuItemsByProvider({
|
|
|
329
330
|
if (actions.length) {
|
|
330
331
|
actions.unshift(
|
|
331
332
|
/* @__PURE__ */ React5.createElement(
|
|
332
|
-
import_ui2.
|
|
333
|
+
import_ui2.MenuSubheader,
|
|
333
334
|
{
|
|
334
335
|
key: "provider-label",
|
|
335
336
|
sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 }
|
|
@@ -347,7 +348,7 @@ function StateMenuItem({ state, styleId, closeMenu, ...props }) {
|
|
|
347
348
|
const isActive = styleId === activeId;
|
|
348
349
|
const isSelected = state === activeState && isActive;
|
|
349
350
|
return /* @__PURE__ */ React5.createElement(
|
|
350
|
-
|
|
351
|
+
import_editor_ui.MenuListItem,
|
|
351
352
|
{
|
|
352
353
|
...props,
|
|
353
354
|
selected: isSelected,
|
|
@@ -366,7 +367,7 @@ function StateMenuItem({ state, styleId, closeMenu, ...props }) {
|
|
|
366
367
|
function UnapplyClassMenuItem({ styleId, closeMenu, ...props }) {
|
|
367
368
|
const unapplyClass = useUnapplyClass(styleId);
|
|
368
369
|
return /* @__PURE__ */ React5.createElement(
|
|
369
|
-
|
|
370
|
+
import_editor_ui.MenuListItem,
|
|
370
371
|
{
|
|
371
372
|
...props,
|
|
372
373
|
onClick: () => {
|
|
@@ -383,7 +384,7 @@ function RenameClassMenuItem({
|
|
|
383
384
|
...props
|
|
384
385
|
}) {
|
|
385
386
|
return /* @__PURE__ */ React5.createElement(
|
|
386
|
-
|
|
387
|
+
import_editor_ui.MenuListItem,
|
|
387
388
|
{
|
|
388
389
|
...props,
|
|
389
390
|
onClick: () => {
|
|
@@ -394,7 +395,6 @@ function RenameClassMenuItem({
|
|
|
394
395
|
(0, import_i18n.__)("Rename", "elementor")
|
|
395
396
|
);
|
|
396
397
|
}
|
|
397
|
-
var StyledMenuItem = ({ ...props }) => /* @__PURE__ */ React5.createElement(import_ui2.MenuItem, { ...props, sx: { ...props.sx ?? {}, typography: "caption", color: "text.primary" } });
|
|
398
398
|
|
|
399
399
|
// src/components/css-classes/css-class-item.tsx
|
|
400
400
|
var CHIP_SIZE = "tiny";
|
|
@@ -419,7 +419,7 @@ function CssClassItem({
|
|
|
419
419
|
openEditMode,
|
|
420
420
|
error,
|
|
421
421
|
getProps: getEditableProps
|
|
422
|
-
} = (0,
|
|
422
|
+
} = (0, import_editor_ui2.useEditable)({
|
|
423
423
|
value: label,
|
|
424
424
|
onSubmit: renameLabel,
|
|
425
425
|
validation: validateLabel
|
|
@@ -432,7 +432,7 @@ function CssClassItem({
|
|
|
432
432
|
import_ui3.Chip,
|
|
433
433
|
{
|
|
434
434
|
size: CHIP_SIZE,
|
|
435
|
-
label: isEditing ? /* @__PURE__ */ React6.createElement(
|
|
435
|
+
label: isEditing ? /* @__PURE__ */ React6.createElement(import_editor_ui2.EditableField, { ref, error, ...getEditableProps() }) : /* @__PURE__ */ React6.createElement(import_editor_ui2.EllipsisWithTooltip, { maxWidth: "10ch", title: label, as: "div" }),
|
|
436
436
|
variant: isActive && !meta.state && !isEditing ? "filled" : "standard",
|
|
437
437
|
shape: "rounded",
|
|
438
438
|
icon,
|
|
@@ -866,7 +866,7 @@ function Section({ title, children, defaultExpanded = false }) {
|
|
|
866
866
|
import_ui9.ListItemText,
|
|
867
867
|
{
|
|
868
868
|
secondary: title,
|
|
869
|
-
secondaryTypographyProps: {
|
|
869
|
+
secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" }
|
|
870
870
|
}
|
|
871
871
|
),
|
|
872
872
|
/* @__PURE__ */ React13.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
@@ -2914,7 +2914,7 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
2914
2914
|
}
|
|
2915
2915
|
}
|
|
2916
2916
|
)), /* @__PURE__ */ React69.createElement(import_ui53.Divider, null), /* @__PURE__ */ React69.createElement(import_ui53.Box, { sx: { overflowY: "auto", height: 260, width: 220 } }, options13.length > 0 ? /* @__PURE__ */ React69.createElement(import_ui53.MenuList, { role: "listbox", tabIndex: 0 }, options13.map(([category, items3], index) => /* @__PURE__ */ React69.createElement(import_react21.Fragment, { key: index }, /* @__PURE__ */ React69.createElement(
|
|
2917
|
-
import_ui53.
|
|
2917
|
+
import_ui53.MenuSubheader,
|
|
2918
2918
|
{
|
|
2919
2919
|
sx: { px: 1.5, typography: "caption", color: "text.tertiary" }
|
|
2920
2920
|
},
|
|
@@ -3057,7 +3057,7 @@ var DynamicSettings = ({ controls }) => {
|
|
|
3057
3057
|
return null;
|
|
3058
3058
|
}
|
|
3059
3059
|
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(import_ui54.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React70.createElement(import_ui54.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React70.createElement(import_ui54.Divider, null), tabs.map(({ value }, index) => {
|
|
3060
|
-
return /* @__PURE__ */ React70.createElement(import_ui54.TabPanel, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React70.createElement(PopoverContent, { p:
|
|
3060
|
+
return /* @__PURE__ */ React70.createElement(import_ui54.TabPanel, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React70.createElement(PopoverContent, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
3061
3061
|
if (item.type === "control") {
|
|
3062
3062
|
return /* @__PURE__ */ React70.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
3063
3063
|
}
|