@elementor/editor-controls 0.18.1 → 0.19.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 +14 -0
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx +6 -1
- package/src/controls/gap-control.tsx +1 -1
- package/src/controls/linked-dimensions-control.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @elementor/editor-controls
|
|
2
2
|
|
|
3
|
+
## 0.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 869906f: Allow the user to publish the page after clicking one of the linked buttons
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 8523f8c: Updated tabs styles
|
|
12
|
+
- Updated dependencies [5387bcf]
|
|
13
|
+
- Updated dependencies [efd54a9]
|
|
14
|
+
- @elementor/editor-elements@0.6.5
|
|
15
|
+
- @elementor/editor-props@0.11.1
|
|
16
|
+
|
|
3
17
|
## 0.18.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1293,7 +1293,7 @@ var LinkedDimensionsControl = createControl(
|
|
|
1293
1293
|
const isLinked = !dimensionsValue && !sizeValue ? true : !!sizeValue;
|
|
1294
1294
|
const onLinkToggle = () => {
|
|
1295
1295
|
if (!isLinked) {
|
|
1296
|
-
setSizeValue(dimensionsValue["block-start"]?.value);
|
|
1296
|
+
setSizeValue(dimensionsValue["block-start"]?.value ?? null);
|
|
1297
1297
|
return;
|
|
1298
1298
|
}
|
|
1299
1299
|
const value = sizeValue ? import_editor_props13.sizePropTypeUtil.create(sizeValue) : null;
|
|
@@ -1927,7 +1927,7 @@ var GapControl = createControl(({ label }) => {
|
|
|
1927
1927
|
const isLinked = !directionValue && !sizeValue ? true : !!sizeValue;
|
|
1928
1928
|
const onLinkToggle = () => {
|
|
1929
1929
|
if (!isLinked) {
|
|
1930
|
-
setSizeValue(directionValue?.column?.value);
|
|
1930
|
+
setSizeValue(directionValue?.column?.value ?? null);
|
|
1931
1931
|
return;
|
|
1932
1932
|
}
|
|
1933
1933
|
const value = sizeValue ? import_editor_props17.sizePropTypeUtil.create(sizeValue) : null;
|
|
@@ -2497,7 +2497,18 @@ var Content2 = () => {
|
|
|
2497
2497
|
color: initialBackgroundColorOverlay.value,
|
|
2498
2498
|
gradient: initialBackgroundGradientOverlay.value
|
|
2499
2499
|
});
|
|
2500
|
-
return /* @__PURE__ */ React40.createElement(import_ui36.Box, { sx: { width: "100%" } }, /* @__PURE__ */ React40.createElement(import_ui36.Box, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React40.createElement(
|
|
2500
|
+
return /* @__PURE__ */ React40.createElement(import_ui36.Box, { sx: { width: "100%" } }, /* @__PURE__ */ React40.createElement(import_ui36.Box, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React40.createElement(
|
|
2501
|
+
import_ui36.Tabs,
|
|
2502
|
+
{
|
|
2503
|
+
size: "small",
|
|
2504
|
+
variant: "fullWidth",
|
|
2505
|
+
...getTabsProps(),
|
|
2506
|
+
"aria-label": (0, import_i18n17.__)("Background Overlay", "elementor")
|
|
2507
|
+
},
|
|
2508
|
+
/* @__PURE__ */ React40.createElement(import_ui36.Tab, { label: (0, import_i18n17.__)("Image", "elementor"), ...getTabProps("image") }),
|
|
2509
|
+
/* @__PURE__ */ React40.createElement(import_ui36.Tab, { label: (0, import_i18n17.__)("Gradient", "elementor"), ...getTabProps("gradient") }),
|
|
2510
|
+
/* @__PURE__ */ React40.createElement(import_ui36.Tab, { label: (0, import_i18n17.__)("Color", "elementor"), ...getTabProps("color") })
|
|
2511
|
+
)), /* @__PURE__ */ React40.createElement(import_ui36.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("image") }, /* @__PURE__ */ React40.createElement(PopoverContent, null, /* @__PURE__ */ React40.createElement(ImageOverlayContent, null))), /* @__PURE__ */ React40.createElement(import_ui36.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("gradient") }, /* @__PURE__ */ React40.createElement(BackgroundGradientColorControl, null)), /* @__PURE__ */ React40.createElement(import_ui36.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("color") }, /* @__PURE__ */ React40.createElement(PopoverContent, null, /* @__PURE__ */ React40.createElement(ColorOverlayContent, null))));
|
|
2501
2512
|
};
|
|
2502
2513
|
var ItemIcon2 = ({ value }) => {
|
|
2503
2514
|
switch (value.$$type) {
|