@elementor/editor-editing-panel 1.48.0 → 1.50.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 +48 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +56 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/components/css-classes/css-class-item.tsx +3 -2
- package/src/components/css-classes/css-class-menu.tsx +2 -2
- package/src/components/css-classes/css-class-selector.tsx +10 -2
- package/src/components/popover-body.tsx +12 -0
- package/src/components/style-sections/effects-section/effects-section.tsx +6 -1
- package/src/components/style-sections/layout-section/flex-order-field.tsx +6 -1
- package/src/dynamics/components/dynamic-selection-control.tsx +22 -14
- package/src/dynamics/components/dynamic-selection.tsx +32 -36
- package/src/index.ts +1 -1
- package/src/reset-style-props.tsx +1 -1
- package/src/styles-inheritance/components/styles-inheritance-infotip.tsx +1 -1
- package/src/utils/get-styles-provider-color.ts +8 -0
- package/src/components/popover-scrollable-content.tsx +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.50.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 64b3e09: Adds support for the backdrop-filter css property to atomic widgets.
|
|
8
|
+
- 3d530f6: Change the positioning of the advanced dynamic tags settings.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 22b87fb: Add temporary theme provider to css class selector.
|
|
13
|
+
- 0db150c: Update the popover height.
|
|
14
|
+
- Updated dependencies [64b3e09]
|
|
15
|
+
- Updated dependencies [3904505]
|
|
16
|
+
- Updated dependencies [0db150c]
|
|
17
|
+
- Updated dependencies [cdbd491]
|
|
18
|
+
- Updated dependencies [b90d7db]
|
|
19
|
+
- @elementor/editor-controls@1.5.0
|
|
20
|
+
- @elementor/editor-canvas@0.28.0
|
|
21
|
+
- @elementor/editor-props@0.18.0
|
|
22
|
+
- @elementor/editor-ui@0.14.2
|
|
23
|
+
- @elementor/editor-styles-repository@0.10.7
|
|
24
|
+
- @elementor/editor-elements@0.9.2
|
|
25
|
+
- @elementor/editor-styles@0.6.14
|
|
26
|
+
- @elementor/editor@0.21.1
|
|
27
|
+
- @elementor/editor-documents@0.13.10
|
|
28
|
+
- @elementor/editor-panels@0.17.1
|
|
29
|
+
|
|
30
|
+
## 1.49.0
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- 90ec4c6: reset functionality added to flex order filed
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [669f39f]
|
|
39
|
+
- Updated dependencies [2e677ee]
|
|
40
|
+
- Updated dependencies [068f659]
|
|
41
|
+
- Updated dependencies [e7cca0a]
|
|
42
|
+
- Updated dependencies [07ca7e9]
|
|
43
|
+
- @elementor/editor-controls@1.4.0
|
|
44
|
+
- @elementor/editor-ui@0.14.1
|
|
45
|
+
- @elementor/editor-canvas@0.27.0
|
|
46
|
+
- @elementor/editor-props@0.17.0
|
|
47
|
+
- @elementor/editor-styles-repository@0.10.6
|
|
48
|
+
- @elementor/editor-elements@0.9.1
|
|
49
|
+
- @elementor/editor-styles@0.6.13
|
|
50
|
+
|
|
3
51
|
## 1.48.0
|
|
4
52
|
|
|
5
53
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import * as _elementor_editor_props from '@elementor/editor-props';
|
|
|
6
6
|
import { ChipProps, Theme } from '@elementor/ui';
|
|
7
7
|
import * as _elementor_locations from '@elementor/locations';
|
|
8
8
|
import * as _elementor_menus from '@elementor/menus';
|
|
9
|
-
import {
|
|
9
|
+
import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
|
|
10
10
|
|
|
11
11
|
declare const EXPERIMENTAL_FEATURES: {
|
|
12
12
|
V_3_30: string;
|
|
@@ -71,11 +71,11 @@ declare const controlActionsMenu: _elementor_menus.Menu<{
|
|
|
71
71
|
|
|
72
72
|
declare const useFontFamilies: () => FontCategory[];
|
|
73
73
|
|
|
74
|
-
type Props = React.ComponentProps<typeof
|
|
75
|
-
declare const
|
|
74
|
+
type Props = React.ComponentProps<typeof PopoverBody$1>;
|
|
75
|
+
declare const PopoverBody: (props: Props) => React.JSX.Element;
|
|
76
76
|
|
|
77
77
|
declare const useSectionWidth: () => number;
|
|
78
78
|
|
|
79
79
|
declare function init(): void;
|
|
80
80
|
|
|
81
|
-
export { EXPERIMENTAL_FEATURES, type PopoverActionProps,
|
|
81
|
+
export { EXPERIMENTAL_FEATURES, type PopoverActionProps, PopoverBody, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, registerControlReplacement, registerStyleProviderToColors, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as _elementor_editor_props from '@elementor/editor-props';
|
|
|
6
6
|
import { ChipProps, Theme } from '@elementor/ui';
|
|
7
7
|
import * as _elementor_locations from '@elementor/locations';
|
|
8
8
|
import * as _elementor_menus from '@elementor/menus';
|
|
9
|
-
import {
|
|
9
|
+
import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
|
|
10
10
|
|
|
11
11
|
declare const EXPERIMENTAL_FEATURES: {
|
|
12
12
|
V_3_30: string;
|
|
@@ -71,11 +71,11 @@ declare const controlActionsMenu: _elementor_menus.Menu<{
|
|
|
71
71
|
|
|
72
72
|
declare const useFontFamilies: () => FontCategory[];
|
|
73
73
|
|
|
74
|
-
type Props = React.ComponentProps<typeof
|
|
75
|
-
declare const
|
|
74
|
+
type Props = React.ComponentProps<typeof PopoverBody$1>;
|
|
75
|
+
declare const PopoverBody: (props: Props) => React.JSX.Element;
|
|
76
76
|
|
|
77
77
|
declare const useSectionWidth: () => number;
|
|
78
78
|
|
|
79
79
|
declare function init(): void;
|
|
80
80
|
|
|
81
|
-
export { EXPERIMENTAL_FEATURES, type PopoverActionProps,
|
|
81
|
+
export { EXPERIMENTAL_FEATURES, type PopoverActionProps, PopoverBody, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, registerControlReplacement, registerStyleProviderToColors, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
EXPERIMENTAL_FEATURES: () => EXPERIMENTAL_FEATURES,
|
|
34
|
-
|
|
34
|
+
PopoverBody: () => PopoverBody,
|
|
35
35
|
controlActionsMenu: () => controlActionsMenu,
|
|
36
36
|
init: () => init3,
|
|
37
37
|
injectIntoClassSelectorActions: () => injectIntoClassSelectorActions,
|
|
@@ -182,6 +182,12 @@ var getStylesProviderThemeColor = (provider) => {
|
|
|
182
182
|
}
|
|
183
183
|
return getStyleProviderColors(provider).getThemeColor;
|
|
184
184
|
};
|
|
185
|
+
function getTempStylesProviderThemeColor(provider) {
|
|
186
|
+
if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
|
|
187
|
+
return (theme) => theme.palette.primary.main;
|
|
188
|
+
}
|
|
189
|
+
return getStylesProviderThemeColor(provider);
|
|
190
|
+
}
|
|
185
191
|
|
|
186
192
|
// src/components/creatable-autocomplete/creatable-autocomplete.tsx
|
|
187
193
|
var React4 = __toESM(require("react"));
|
|
@@ -853,7 +859,7 @@ function StateMenuItem({ state, closeMenu, ...props }) {
|
|
|
853
859
|
StyleIndicator,
|
|
854
860
|
{
|
|
855
861
|
"aria-label": (0, import_i18n2.__)("Has style", "elementor"),
|
|
856
|
-
getColor:
|
|
862
|
+
getColor: getTempStylesProviderThemeColor(provider ?? "")
|
|
857
863
|
}
|
|
858
864
|
), state ?? "normal")
|
|
859
865
|
)
|
|
@@ -930,7 +936,7 @@ function CssClassItem(props) {
|
|
|
930
936
|
const providerActions = provider ? import_editor_styles_repository5.stylesRepository.getProviderByKey(provider)?.actions : null;
|
|
931
937
|
const allowRename = Boolean(providerActions?.update) && userCan(provider ?? "")?.update;
|
|
932
938
|
const isShowingState = isActive && meta.state;
|
|
933
|
-
return /* @__PURE__ */ React7.createElement(
|
|
939
|
+
return /* @__PURE__ */ React7.createElement(import_ui5.ThemeProvider, { palette: "default" }, /* @__PURE__ */ React7.createElement(
|
|
934
940
|
import_ui5.UnstableChipGroup,
|
|
935
941
|
{
|
|
936
942
|
ref: setChipRef,
|
|
@@ -1008,7 +1014,7 @@ var EMPTY_OPTION = {
|
|
|
1008
1014
|
label: (0, import_i18n4.__)("local", "elementor"),
|
|
1009
1015
|
value: null,
|
|
1010
1016
|
fixed: true,
|
|
1011
|
-
color: "accent",
|
|
1017
|
+
color: getTempStylesProviderColorName("accent"),
|
|
1012
1018
|
icon: /* @__PURE__ */ React8.createElement(import_icons2.MapPinIcon, null),
|
|
1013
1019
|
provider: null
|
|
1014
1020
|
};
|
|
@@ -1119,13 +1125,19 @@ function useOptions() {
|
|
|
1119
1125
|
label: styleDef.label,
|
|
1120
1126
|
value: styleDef.id,
|
|
1121
1127
|
fixed: isElements,
|
|
1122
|
-
color: getStylesProviderColorName(provider.getKey()),
|
|
1128
|
+
color: getTempStylesProviderColorName(getStylesProviderColorName(provider.getKey())),
|
|
1123
1129
|
icon: isElements ? /* @__PURE__ */ React8.createElement(import_icons2.MapPinIcon, null) : null,
|
|
1124
1130
|
provider: provider.getKey()
|
|
1125
1131
|
};
|
|
1126
1132
|
});
|
|
1127
1133
|
});
|
|
1128
1134
|
}
|
|
1135
|
+
function getTempStylesProviderColorName(color) {
|
|
1136
|
+
if (color === "accent") {
|
|
1137
|
+
return "primary";
|
|
1138
|
+
}
|
|
1139
|
+
return color;
|
|
1140
|
+
}
|
|
1129
1141
|
function useCreateAction() {
|
|
1130
1142
|
const [provider, createAction] = useCreateAndApplyClass();
|
|
1131
1143
|
if (!provider || !createAction) {
|
|
@@ -2382,7 +2394,7 @@ var StylesInheritanceInfotip = ({ inheritanceChain, propType, path, label, child
|
|
|
2382
2394
|
const toggleInfotip = () => setShowInfotip((prev) => !prev);
|
|
2383
2395
|
const closeInfotip = () => setShowInfotip(false);
|
|
2384
2396
|
const key = path.join(".");
|
|
2385
|
-
const sectionWidth = useSectionWidth()
|
|
2397
|
+
const sectionWidth = useSectionWidth();
|
|
2386
2398
|
const resolve = (0, import_react23.useMemo)(() => {
|
|
2387
2399
|
return (0, import_editor_canvas2.createPropsResolver)({
|
|
2388
2400
|
transformers: stylesInheritanceTransformersRegistry,
|
|
@@ -2869,11 +2881,12 @@ var OpacityControlField = () => {
|
|
|
2869
2881
|
|
|
2870
2882
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
2871
2883
|
var BOX_SHADOW_LABEL = (0, import_i18n19.__)("Box shadow", "elementor");
|
|
2872
|
-
var FILTER_LABEL = (0, import_i18n19.__)("
|
|
2884
|
+
var FILTER_LABEL = (0, import_i18n19.__)("Filters", "elementor");
|
|
2873
2885
|
var TRANSFORM_LABEL = (0, import_i18n19.__)("Transform", "elementor");
|
|
2886
|
+
var BACKDROP_FILTER_LABEL = (0, import_i18n19.__)("Backdrop filters", "elementor");
|
|
2874
2887
|
var EffectsSection = () => {
|
|
2875
2888
|
const isVersion331Active = (0, import_editor_v1_adapters10.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_31);
|
|
2876
|
-
return /* @__PURE__ */ React42.createElement(SectionContent, null, isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(OpacityControlField, null), /* @__PURE__ */ React42.createElement(PanelDivider, null)), /* @__PURE__ */ React42.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.BoxShadowRepeaterControl, null)), isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.TransformRepeaterControl, null)), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.FilterRepeaterControl, null))));
|
|
2889
|
+
return /* @__PURE__ */ React42.createElement(SectionContent, null, isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(OpacityControlField, null), /* @__PURE__ */ React42.createElement(PanelDivider, null)), /* @__PURE__ */ React42.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.BoxShadowRepeaterControl, null)), isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.TransformRepeaterControl, null)), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.FilterRepeaterControl, null)), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.FilterRepeaterControl, { filterPropName: "backdrop-filter" }))));
|
|
2877
2890
|
};
|
|
2878
2891
|
|
|
2879
2892
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -3268,6 +3281,10 @@ var FlexOrderField = () => {
|
|
|
3268
3281
|
history: { propDisplayName: ORDER_LABEL }
|
|
3269
3282
|
});
|
|
3270
3283
|
const [groupControlValue, setGroupControlValue] = (0, import_react26.useState)(getGroupControlValue(order?.value || null));
|
|
3284
|
+
(0, import_react26.useEffect)(() => {
|
|
3285
|
+
const newGroupControlValue = getGroupControlValue(order?.value || null);
|
|
3286
|
+
setGroupControlValue(newGroupControlValue);
|
|
3287
|
+
}, [order?.value]);
|
|
3271
3288
|
const handleToggleButtonChange = (group) => {
|
|
3272
3289
|
setGroupControlValue(group);
|
|
3273
3290
|
if (!group || group === CUSTOM) {
|
|
@@ -4458,12 +4475,12 @@ var { panel, usePanelActions, usePanelStatus } = (0, import_editor_panels2.__cre
|
|
|
4458
4475
|
component: EditingPanel
|
|
4459
4476
|
});
|
|
4460
4477
|
|
|
4461
|
-
// src/components/popover-
|
|
4478
|
+
// src/components/popover-body.tsx
|
|
4462
4479
|
var React87 = __toESM(require("react"));
|
|
4463
4480
|
var import_editor_ui6 = require("@elementor/editor-ui");
|
|
4464
|
-
var
|
|
4481
|
+
var PopoverBody = (props) => {
|
|
4465
4482
|
const sectionWidth = useSectionWidth();
|
|
4466
|
-
return /* @__PURE__ */ React87.createElement(import_editor_ui6.
|
|
4483
|
+
return /* @__PURE__ */ React87.createElement(import_editor_ui6.PopoverBody, { ...props, width: sectionWidth });
|
|
4467
4484
|
};
|
|
4468
4485
|
|
|
4469
4486
|
// src/init.ts
|
|
@@ -4690,21 +4707,21 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
4690
4707
|
label: item.label
|
|
4691
4708
|
}))
|
|
4692
4709
|
]);
|
|
4693
|
-
return /* @__PURE__ */ React90.createElement(
|
|
4710
|
+
return /* @__PURE__ */ React90.createElement(PopoverBody, null, /* @__PURE__ */ React90.createElement(
|
|
4694
4711
|
import_editor_ui7.PopoverHeader,
|
|
4695
4712
|
{
|
|
4696
4713
|
title: (0, import_i18n63.__)("Dynamic tags", "elementor"),
|
|
4697
4714
|
onClose: closePopover,
|
|
4698
4715
|
icon: /* @__PURE__ */ React90.createElement(import_icons26.DatabaseIcon, { fontSize: SIZE6 })
|
|
4699
4716
|
}
|
|
4700
|
-
),
|
|
4717
|
+
), hasNoDynamicTags ? /* @__PURE__ */ React90.createElement(NoDynamicTags, null) : /* @__PURE__ */ React90.createElement(import_react42.Fragment, null, /* @__PURE__ */ React90.createElement(
|
|
4701
4718
|
import_editor_ui7.PopoverSearch,
|
|
4702
4719
|
{
|
|
4703
4720
|
value: searchValue,
|
|
4704
4721
|
onSearch: handleSearch,
|
|
4705
4722
|
placeholder: (0, import_i18n63.__)("Search dynamic tags\u2026", "elementor")
|
|
4706
4723
|
}
|
|
4707
|
-
), /* @__PURE__ */ React90.createElement(import_ui46.Divider, null), /* @__PURE__ */ React90.createElement(
|
|
4724
|
+
), /* @__PURE__ */ React90.createElement(import_ui46.Divider, null), /* @__PURE__ */ React90.createElement(
|
|
4708
4725
|
import_editor_ui7.PopoverMenuList,
|
|
4709
4726
|
{
|
|
4710
4727
|
items: virtualizedItems,
|
|
@@ -4714,7 +4731,7 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
4714
4731
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
4715
4732
|
noResultsComponent: /* @__PURE__ */ React90.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
4716
4733
|
}
|
|
4717
|
-
)))
|
|
4734
|
+
)));
|
|
4718
4735
|
};
|
|
4719
4736
|
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React90.createElement(
|
|
4720
4737
|
import_ui46.Stack,
|
|
@@ -4731,7 +4748,7 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React90.createElem
|
|
|
4731
4748
|
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n63.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React90.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
4732
4749
|
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n63.__)("Try something else.", "elementor"), /* @__PURE__ */ React90.createElement(import_ui46.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n63.__)("Clear & try again", "elementor")))
|
|
4733
4750
|
);
|
|
4734
|
-
var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(
|
|
4751
|
+
var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(import_ui46.Divider, null), /* @__PURE__ */ React90.createElement(
|
|
4735
4752
|
import_ui46.Stack,
|
|
4736
4753
|
{
|
|
4737
4754
|
gap: 1,
|
|
@@ -4807,7 +4824,7 @@ var DynamicSelectionControl = () => {
|
|
|
4807
4824
|
},
|
|
4808
4825
|
...(0, import_ui47.bindPopover)(selectionPopoverState)
|
|
4809
4826
|
},
|
|
4810
|
-
/* @__PURE__ */ React91.createElement(
|
|
4827
|
+
/* @__PURE__ */ React91.createElement(PopoverBody, null, /* @__PURE__ */ React91.createElement(DynamicSelection, { close: selectionPopoverState.close }))
|
|
4811
4828
|
));
|
|
4812
4829
|
};
|
|
4813
4830
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
@@ -4821,21 +4838,21 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
4821
4838
|
{
|
|
4822
4839
|
disablePortal: true,
|
|
4823
4840
|
disableScrollLock: true,
|
|
4824
|
-
anchorOrigin: { vertical: "bottom", horizontal: "
|
|
4841
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
4842
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
4825
4843
|
PaperProps: {
|
|
4826
|
-
sx: { my:
|
|
4844
|
+
sx: { my: 1 }
|
|
4827
4845
|
},
|
|
4828
4846
|
...(0, import_ui47.bindPopover)(popupState)
|
|
4829
4847
|
},
|
|
4830
|
-
/* @__PURE__ */ React91.createElement(
|
|
4848
|
+
/* @__PURE__ */ React91.createElement(PopoverBody, null, /* @__PURE__ */ React91.createElement(
|
|
4831
4849
|
import_editor_ui8.PopoverHeader,
|
|
4832
4850
|
{
|
|
4833
4851
|
title: dynamicTag.label,
|
|
4834
4852
|
onClose: popupState.close,
|
|
4835
4853
|
icon: /* @__PURE__ */ React91.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE7 })
|
|
4836
4854
|
}
|
|
4837
|
-
),
|
|
4838
|
-
/* @__PURE__ */ React91.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls })
|
|
4855
|
+
), /* @__PURE__ */ React91.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
4839
4856
|
));
|
|
4840
4857
|
};
|
|
4841
4858
|
var DynamicSettings = ({ controls }) => {
|
|
@@ -4844,13 +4861,21 @@ var DynamicSettings = ({ controls }) => {
|
|
|
4844
4861
|
if (!tabs.length) {
|
|
4845
4862
|
return null;
|
|
4846
4863
|
}
|
|
4847
|
-
return /* @__PURE__ */ React91.createElement(
|
|
4848
|
-
return /* @__PURE__ */ React91.createElement(
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4864
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(import_ui47.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React91.createElement(import_ui47.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React91.createElement(import_ui47.Divider, null), tabs.map(({ value }, index) => {
|
|
4865
|
+
return /* @__PURE__ */ React91.createElement(
|
|
4866
|
+
import_ui47.TabPanel,
|
|
4867
|
+
{
|
|
4868
|
+
key: index,
|
|
4869
|
+
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
4870
|
+
...getTabPanelProps(index)
|
|
4871
|
+
},
|
|
4872
|
+
/* @__PURE__ */ React91.createElement(import_ui47.Stack, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
4873
|
+
if (item.type === "control") {
|
|
4874
|
+
return /* @__PURE__ */ React91.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
4875
|
+
}
|
|
4876
|
+
return null;
|
|
4877
|
+
}))
|
|
4878
|
+
);
|
|
4854
4879
|
}));
|
|
4855
4880
|
};
|
|
4856
4881
|
var Control3 = ({ control }) => {
|
|
@@ -4961,7 +4986,7 @@ function initResetStyleProps() {
|
|
|
4961
4986
|
useProps: useResetStyleValueProps
|
|
4962
4987
|
});
|
|
4963
4988
|
}
|
|
4964
|
-
var EXCLUDED_BINDS = ["
|
|
4989
|
+
var EXCLUDED_BINDS = ["flex-grow", "flex-shrink", "flex-basis"];
|
|
4965
4990
|
function useResetStyleValueProps() {
|
|
4966
4991
|
const isStyle = useIsStyle();
|
|
4967
4992
|
const { value, setValue, path, bind } = (0, import_editor_controls59.useBoundProp)();
|
|
@@ -5131,7 +5156,7 @@ var blockV1Panel = () => {
|
|
|
5131
5156
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5132
5157
|
0 && (module.exports = {
|
|
5133
5158
|
EXPERIMENTAL_FEATURES,
|
|
5134
|
-
|
|
5159
|
+
PopoverBody,
|
|
5135
5160
|
controlActionsMenu,
|
|
5136
5161
|
init,
|
|
5137
5162
|
injectIntoClassSelectorActions,
|