@elementor/editor-components 4.1.0-691 → 4.1.0-692
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.mjs
CHANGED
|
@@ -924,7 +924,7 @@ var EditModeDialog = ({ lockedBy }) => {
|
|
|
924
924
|
// src/components/instance-editing-panel/instance-editing-panel.tsx
|
|
925
925
|
import * as React20 from "react";
|
|
926
926
|
import { PencilIcon as PencilIcon2 } from "@elementor/icons";
|
|
927
|
-
import { Box as
|
|
927
|
+
import { Box as Box9, Stack as Stack11 } from "@elementor/ui";
|
|
928
928
|
import { hasProInstalled as hasProInstalled3 } from "@elementor/utils";
|
|
929
929
|
import { __ as __10 } from "@wordpress/i18n";
|
|
930
930
|
|
|
@@ -1428,14 +1428,14 @@ import * as React19 from "react";
|
|
|
1428
1428
|
import { ControlAdornmentsProvider } from "@elementor/editor-controls";
|
|
1429
1429
|
import { getFieldIndicators } from "@elementor/editor-editing-panel";
|
|
1430
1430
|
import { PanelBody } from "@elementor/editor-panels";
|
|
1431
|
-
import { Divider as Divider2, Stack as
|
|
1431
|
+
import { Divider as Divider2, Stack as Stack10 } from "@elementor/ui";
|
|
1432
1432
|
|
|
1433
1433
|
// src/components/instance-editing-panel/override-props-group.tsx
|
|
1434
1434
|
import * as React18 from "react";
|
|
1435
1435
|
import { useId } from "react";
|
|
1436
1436
|
import { useStateByElement } from "@elementor/editor-editing-panel";
|
|
1437
1437
|
import { CollapseIcon } from "@elementor/editor-ui";
|
|
1438
|
-
import { Box as
|
|
1438
|
+
import { Box as Box8, Collapse, ListItemButton as ListItemButton2, ListItemText, Stack as Stack9 } from "@elementor/ui";
|
|
1439
1439
|
|
|
1440
1440
|
// src/components/instance-editing-panel/override-prop-control.tsx
|
|
1441
1441
|
import * as React17 from "react";
|
|
@@ -1449,6 +1449,7 @@ import {
|
|
|
1449
1449
|
import {
|
|
1450
1450
|
BaseControl,
|
|
1451
1451
|
controlsRegistry,
|
|
1452
|
+
ControlTypeContainer,
|
|
1452
1453
|
createTopLevelObjectType,
|
|
1453
1454
|
ElementProvider,
|
|
1454
1455
|
isDynamicPropValue,
|
|
@@ -1456,7 +1457,7 @@ import {
|
|
|
1456
1457
|
useElement
|
|
1457
1458
|
} from "@elementor/editor-editing-panel";
|
|
1458
1459
|
import { getElementSettings, getElementType as getElementType2 } from "@elementor/editor-elements";
|
|
1459
|
-
import {
|
|
1460
|
+
import { Box as Box7 } from "@elementor/ui";
|
|
1460
1461
|
|
|
1461
1462
|
// src/hooks/use-controls-by-widget-type.ts
|
|
1462
1463
|
import { getElementType } from "@elementor/editor-elements";
|
|
@@ -1949,7 +1950,7 @@ function OverrideControl({ overridableProp }) {
|
|
|
1949
1950
|
return false;
|
|
1950
1951
|
}
|
|
1951
1952
|
},
|
|
1952
|
-
/* @__PURE__ */ React17.createElement(PropKeyProvider, { bind: overridableProp.overrideKey }, /* @__PURE__ */ React17.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React17.createElement(
|
|
1953
|
+
/* @__PURE__ */ React17.createElement(PropKeyProvider, { bind: overridableProp.overrideKey }, /* @__PURE__ */ React17.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React17.createElement(Box7, { mb: 1.5 }, /* @__PURE__ */ React17.createElement(ControlTypeContainer, { layout }, layout !== "custom" && /* @__PURE__ */ React17.createElement(ControlLabel, null, overridableProp.label), /* @__PURE__ */ React17.createElement(OriginalControl, { control, controlProps })))))
|
|
1953
1954
|
)))
|
|
1954
1955
|
);
|
|
1955
1956
|
}
|
|
@@ -2043,7 +2044,7 @@ function OverridePropsGroup({ group }) {
|
|
|
2043
2044
|
const labelId = `label-${id}`;
|
|
2044
2045
|
const contentId = `content-${id}`;
|
|
2045
2046
|
const title = group.label;
|
|
2046
|
-
return /* @__PURE__ */ React18.createElement(
|
|
2047
|
+
return /* @__PURE__ */ React18.createElement(Box8, { "aria-label": `${title} section` }, /* @__PURE__ */ React18.createElement(
|
|
2047
2048
|
ListItemButton2,
|
|
2048
2049
|
{
|
|
2049
2050
|
id: labelId,
|
|
@@ -2053,7 +2054,7 @@ function OverridePropsGroup({ group }) {
|
|
|
2053
2054
|
p: 0,
|
|
2054
2055
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2055
2056
|
},
|
|
2056
|
-
/* @__PURE__ */ React18.createElement(
|
|
2057
|
+
/* @__PURE__ */ React18.createElement(Stack9, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React18.createElement(
|
|
2057
2058
|
ListItemText,
|
|
2058
2059
|
{
|
|
2059
2060
|
secondary: title,
|
|
@@ -2062,12 +2063,12 @@ function OverridePropsGroup({ group }) {
|
|
|
2062
2063
|
}
|
|
2063
2064
|
)),
|
|
2064
2065
|
/* @__PURE__ */ React18.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
2065
|
-
), /* @__PURE__ */ React18.createElement(Collapse, { id: contentId, "aria-labelledby": labelId, in: isOpen, timeout: "auto" }, /* @__PURE__ */ React18.createElement(
|
|
2066
|
+
), /* @__PURE__ */ React18.createElement(Collapse, { id: contentId, "aria-labelledby": labelId, in: isOpen, timeout: "auto" }, /* @__PURE__ */ React18.createElement(Stack9, { direction: "column", gap: 1, p: 2 }, group.props.map((overrideKey) => /* @__PURE__ */ React18.createElement(OverridePropControl, { key: overrideKey, overrideKey })))));
|
|
2066
2067
|
}
|
|
2067
2068
|
|
|
2068
2069
|
// src/components/instance-editing-panel/instance-panel-body.tsx
|
|
2069
2070
|
function InstancePanelBody({ groups, isEmpty, emptyState, componentInstanceId }) {
|
|
2070
|
-
return /* @__PURE__ */ React19.createElement(PanelBody, null, /* @__PURE__ */ React19.createElement(ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, isEmpty ? emptyState : /* @__PURE__ */ React19.createElement(
|
|
2071
|
+
return /* @__PURE__ */ React19.createElement(PanelBody, null, /* @__PURE__ */ React19.createElement(ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, isEmpty ? emptyState : /* @__PURE__ */ React19.createElement(Stack10, { direction: "column", alignItems: "stretch" }, groups.map((group) => /* @__PURE__ */ React19.createElement(React19.Fragment, { key: group.id + componentInstanceId }, /* @__PURE__ */ React19.createElement(OverridePropsGroup, { group }), /* @__PURE__ */ React19.createElement(Divider2, null))))));
|
|
2071
2072
|
}
|
|
2072
2073
|
|
|
2073
2074
|
// src/components/instance-editing-panel/use-instance-panel-data.ts
|
|
@@ -2177,8 +2178,8 @@ function InstanceEditingPanel() {
|
|
|
2177
2178
|
}
|
|
2178
2179
|
const { componentId, component, overrides, overridableProps, groups, isEmpty, componentInstanceId } = data;
|
|
2179
2180
|
const panelTitle = __10("Edit %s", "elementor").replace("%s", component.name);
|
|
2180
|
-
const actions = /* @__PURE__ */ React20.createElement(
|
|
2181
|
-
return /* @__PURE__ */ React20.createElement(
|
|
2181
|
+
const actions = /* @__PURE__ */ React20.createElement(Stack11, { direction: "row", gap: 0.5 }, /* @__PURE__ */ React20.createElement(DetachAction, { componentInstanceId, componentId }), canEdit && /* @__PURE__ */ React20.createElement(EditComponentAction, { disabled: true, label: panelTitle, icon: PencilIcon2 }));
|
|
2182
|
+
return /* @__PURE__ */ React20.createElement(Box9, { "data-testid": "instance-editing-panel", sx: { display: "flex", flexDirection: "column", height: "100%" } }, /* @__PURE__ */ React20.createElement(
|
|
2182
2183
|
ComponentInstanceProvider,
|
|
2183
2184
|
{
|
|
2184
2185
|
componentId,
|