@elementor/editor-editing-panel 4.0.0-521 → 4.0.0-522

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 CHANGED
@@ -1318,6 +1318,13 @@ declare const registerEditingPanelReplacement: ({ id, priority, ...props }: Omit
1318
1318
  priority?: number;
1319
1319
  }) => void;
1320
1320
 
1321
+ type V4PromotionData = {
1322
+ title: string;
1323
+ content: string;
1324
+ image: string;
1325
+ ctaUrl: string;
1326
+ };
1327
+
1321
1328
  declare function doGetAppliedClasses(elementId: string, classesPropType?: string): string[];
1322
1329
  declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
1323
1330
  declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
@@ -1361,4 +1368,4 @@ type TagInstance = {
1361
1368
 
1362
1369
  declare const isDynamicPropValue: (prop: PropValue) => prop is DynamicPropValue;
1363
1370
 
1364
- export { Control as BaseControl, type ControlType, CustomCssIndicator, type DynamicTag, type DynamicTags, type DynamicTagsManager, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getFieldIndicators, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
1371
+ export { Control as BaseControl, type ControlType, CustomCssIndicator, type DynamicTag, type DynamicTags, type DynamicTagsManager, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type V4PromotionData, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getFieldIndicators, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
package/dist/index.d.ts CHANGED
@@ -1318,6 +1318,13 @@ declare const registerEditingPanelReplacement: ({ id, priority, ...props }: Omit
1318
1318
  priority?: number;
1319
1319
  }) => void;
1320
1320
 
1321
+ type V4PromotionData = {
1322
+ title: string;
1323
+ content: string;
1324
+ image: string;
1325
+ ctaUrl: string;
1326
+ };
1327
+
1321
1328
  declare function doGetAppliedClasses(elementId: string, classesPropType?: string): string[];
1322
1329
  declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
1323
1330
  declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
@@ -1361,4 +1368,4 @@ type TagInstance = {
1361
1368
 
1362
1369
  declare const isDynamicPropValue: (prop: PropValue) => prop is DynamicPropValue;
1363
1370
 
1364
- export { Control as BaseControl, type ControlType, CustomCssIndicator, type DynamicTag, type DynamicTags, type DynamicTagsManager, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getFieldIndicators, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
1371
+ export { Control as BaseControl, type ControlType, CustomCssIndicator, type DynamicTag, type DynamicTags, type DynamicTagsManager, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type V4PromotionData, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getFieldIndicators, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
package/dist/index.js CHANGED
@@ -4785,14 +4785,16 @@ var EditingPanelHooks = () => {
4785
4785
  return null;
4786
4786
  };
4787
4787
 
4788
+ // src/components/promotions/init.tsx
4789
+ var import_editor_controls50 = require("@elementor/editor-controls");
4790
+
4788
4791
  // src/components/promotions/custom-css.tsx
4789
4792
  var React83 = __toESM(require("react"));
4790
4793
  var import_react36 = require("react");
4791
4794
  var import_editor_ui8 = require("@elementor/editor-ui");
4792
4795
  var import_i18n57 = require("@wordpress/i18n");
4793
4796
  function getCustomCssPromotion() {
4794
- const extendedWindow = window;
4795
- return extendedWindow.elementor?.config?.v4Promotions?.customCss;
4797
+ return window.elementor?.config?.v4Promotions?.customCss;
4796
4798
  }
4797
4799
  var CustomCssSection = () => {
4798
4800
  const [showInfoTip, setShowInfoTip] = (0, import_react36.useState)(false);
@@ -4837,12 +4839,13 @@ var init = () => {
4837
4839
  component: CustomCssSection,
4838
4840
  options: { overwrite: true }
4839
4841
  });
4842
+ controlsRegistry.register("display-conditions", import_editor_controls50.DisplayConditionsControl, "two-columns");
4840
4843
  }
4841
4844
  };
4842
4845
 
4843
4846
  // src/controls-registry/element-controls/tabs-control/tabs-control.tsx
4844
4847
  var React84 = __toESM(require("react"));
4845
- var import_editor_controls51 = require("@elementor/editor-controls");
4848
+ var import_editor_controls52 = require("@elementor/editor-controls");
4846
4849
  var import_editor_elements17 = require("@elementor/editor-elements");
4847
4850
  var import_editor_props16 = require("@elementor/editor-props");
4848
4851
  var import_icons22 = require("@elementor/icons");
@@ -4867,14 +4870,14 @@ var getElementByType = (elementId, type) => {
4867
4870
  };
4868
4871
 
4869
4872
  // src/controls-registry/element-controls/tabs-control/use-actions.ts
4870
- var import_editor_controls50 = require("@elementor/editor-controls");
4873
+ var import_editor_controls51 = require("@elementor/editor-controls");
4871
4874
  var import_editor_elements16 = require("@elementor/editor-elements");
4872
4875
  var import_editor_props15 = require("@elementor/editor-props");
4873
4876
  var import_i18n58 = require("@wordpress/i18n");
4874
4877
  var TAB_ELEMENT_TYPE = "e-tab";
4875
4878
  var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
4876
4879
  var useActions = () => {
4877
- const { value, setValue: setDefaultActiveTab } = (0, import_editor_controls50.useBoundProp)(import_editor_props15.numberPropTypeUtil);
4880
+ const { value, setValue: setDefaultActiveTab } = (0, import_editor_controls51.useBoundProp)(import_editor_props15.numberPropTypeUtil);
4878
4881
  const defaultActiveTab = value ?? 0;
4879
4882
  const duplicateItem = ({
4880
4883
  items: items3,
@@ -5104,7 +5107,7 @@ var TabsControlContent = ({ label }) => {
5104
5107
  }
5105
5108
  };
5106
5109
  return /* @__PURE__ */ React84.createElement(
5107
- import_editor_controls51.Repeater,
5110
+ import_editor_controls52.Repeater,
5108
5111
  {
5109
5112
  showToggle: false,
5110
5113
  values: repeaterValues,
@@ -5128,7 +5131,7 @@ var ItemLabel = ({ value, index }) => {
5128
5131
  return /* @__PURE__ */ React84.createElement(import_ui38.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React84.createElement("span", null, elementTitle), /* @__PURE__ */ React84.createElement(ItemDefaultTab, { index }));
5129
5132
  };
5130
5133
  var ItemDefaultTab = ({ index }) => {
5131
- const { value: defaultItem } = (0, import_editor_controls51.useBoundProp)(import_editor_props16.numberPropTypeUtil);
5134
+ const { value: defaultItem } = (0, import_editor_controls52.useBoundProp)(import_editor_props16.numberPropTypeUtil);
5132
5135
  const isDefault = defaultItem === index;
5133
5136
  if (!isDefault) {
5134
5137
  return null;
@@ -5142,9 +5145,9 @@ var ItemContent = ({ value, index }) => {
5142
5145
  return /* @__PURE__ */ React84.createElement(import_ui38.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React84.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React84.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n59.__)("Tabs", "elementor") }, /* @__PURE__ */ React84.createElement(DefaultTabControl, { tabIndex: index })));
5143
5146
  };
5144
5147
  var DefaultTabControl = ({ tabIndex }) => {
5145
- const { value, setValue } = (0, import_editor_controls51.useBoundProp)(import_editor_props16.numberPropTypeUtil);
5148
+ const { value, setValue } = (0, import_editor_controls52.useBoundProp)(import_editor_props16.numberPropTypeUtil);
5146
5149
  const isDefault = value === tabIndex;
5147
- return /* @__PURE__ */ React84.createElement(import_ui38.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React84.createElement(import_editor_controls51.ControlFormLabel, null, (0, import_i18n59.__)("Set as default tab", "elementor")), /* @__PURE__ */ React84.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React84.createElement(
5150
+ return /* @__PURE__ */ React84.createElement(import_ui38.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React84.createElement(import_editor_controls52.ControlFormLabel, null, (0, import_i18n59.__)("Set as default tab", "elementor")), /* @__PURE__ */ React84.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React84.createElement(
5148
5151
  import_ui38.Switch,
5149
5152
  {
5150
5153
  size: "small",
@@ -5162,7 +5165,7 @@ var DefaultTabControl = ({ tabIndex }) => {
5162
5165
  var TabLabelControl = ({ elementId }) => {
5163
5166
  const editorSettings = (0, import_editor_elements17.useElementEditorSettings)(elementId);
5164
5167
  const label = editorSettings?.title ?? "";
5165
- return /* @__PURE__ */ React84.createElement(import_ui38.Stack, { gap: 1 }, /* @__PURE__ */ React84.createElement(import_editor_controls51.ControlFormLabel, null, (0, import_i18n59.__)("Tab name", "elementor")), /* @__PURE__ */ React84.createElement(
5168
+ return /* @__PURE__ */ React84.createElement(import_ui38.Stack, { gap: 1 }, /* @__PURE__ */ React84.createElement(import_editor_controls52.ControlFormLabel, null, (0, import_i18n59.__)("Tab name", "elementor")), /* @__PURE__ */ React84.createElement(
5166
5169
  import_ui38.TextField,
5167
5170
  {
5168
5171
  size: "tiny",
@@ -5216,12 +5219,12 @@ var registerElementControls = () => {
5216
5219
 
5217
5220
  // src/dynamics/init.ts
5218
5221
  var import_editor_canvas3 = require("@elementor/editor-canvas");
5219
- var import_editor_controls58 = require("@elementor/editor-controls");
5222
+ var import_editor_controls59 = require("@elementor/editor-controls");
5220
5223
  var import_menus2 = require("@elementor/menus");
5221
5224
 
5222
5225
  // src/dynamics/components/background-control-dynamic-tag.tsx
5223
5226
  var React85 = __toESM(require("react"));
5224
- var import_editor_controls53 = require("@elementor/editor-controls");
5227
+ var import_editor_controls54 = require("@elementor/editor-controls");
5225
5228
  var import_editor_props18 = require("@elementor/editor-props");
5226
5229
  var import_icons23 = require("@elementor/icons");
5227
5230
 
@@ -5230,7 +5233,7 @@ var import_react39 = require("react");
5230
5233
 
5231
5234
  // src/dynamics/hooks/use-prop-dynamic-tags.ts
5232
5235
  var import_react38 = require("react");
5233
- var import_editor_controls52 = require("@elementor/editor-controls");
5236
+ var import_editor_controls53 = require("@elementor/editor-controls");
5234
5237
 
5235
5238
  // src/dynamics/sync/get-atomic-dynamic-tags.ts
5236
5239
  var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
@@ -5314,7 +5317,7 @@ var useAllPropDynamicTags = () => {
5314
5317
  };
5315
5318
  var usePropDynamicTagsInternal = (filterByLicense2) => {
5316
5319
  let categories = [];
5317
- const { propType } = (0, import_editor_controls52.useBoundProp)();
5320
+ const { propType } = (0, import_editor_controls53.useBoundProp)();
5318
5321
  if (propType) {
5319
5322
  const propDynamicType = getDynamicPropType(propType);
5320
5323
  categories = propDynamicType?.settings.categories || [];
@@ -5360,13 +5363,13 @@ var useDynamicTag = (tagName) => {
5360
5363
  // src/dynamics/components/background-control-dynamic-tag.tsx
5361
5364
  var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React85.createElement(import_icons23.DatabaseIcon, { fontSize: "tiny" });
5362
5365
  var BackgroundControlDynamicTagLabel = ({ value }) => {
5363
- const context = (0, import_editor_controls53.useBoundProp)(import_editor_props18.backgroundImageOverlayPropTypeUtil);
5364
- return /* @__PURE__ */ React85.createElement(import_editor_controls53.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React85.createElement(import_editor_controls53.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React85.createElement(Wrapper2, { rawValue: value.value })));
5366
+ const context = (0, import_editor_controls54.useBoundProp)(import_editor_props18.backgroundImageOverlayPropTypeUtil);
5367
+ return /* @__PURE__ */ React85.createElement(import_editor_controls54.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React85.createElement(import_editor_controls54.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React85.createElement(Wrapper2, { rawValue: value.value })));
5365
5368
  };
5366
5369
  var Wrapper2 = ({ rawValue }) => {
5367
- const { propType } = (0, import_editor_controls53.useBoundProp)();
5370
+ const { propType } = (0, import_editor_controls54.useBoundProp)();
5368
5371
  const imageOverlayPropType = propType.prop_types["background-image-overlay"];
5369
- return /* @__PURE__ */ React85.createElement(import_editor_controls53.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React85.createElement(import_editor_controls53.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React85.createElement(Content, { rawValue: rawValue.image })));
5372
+ return /* @__PURE__ */ React85.createElement(import_editor_controls54.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React85.createElement(import_editor_controls54.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React85.createElement(Content, { rawValue: rawValue.image })));
5370
5373
  };
5371
5374
  var Content = ({ rawValue }) => {
5372
5375
  const src = rawValue.value.src;
@@ -5376,7 +5379,7 @@ var Content = ({ rawValue }) => {
5376
5379
 
5377
5380
  // src/dynamics/components/dynamic-selection-control.tsx
5378
5381
  var React89 = __toESM(require("react"));
5379
- var import_editor_controls56 = require("@elementor/editor-controls");
5382
+ var import_editor_controls57 = require("@elementor/editor-controls");
5380
5383
  var import_editor_ui10 = require("@elementor/editor-ui");
5381
5384
  var import_icons25 = require("@elementor/icons");
5382
5385
  var import_ui40 = require("@elementor/ui");
@@ -5392,7 +5395,7 @@ var usePersistDynamicValue = (propKey) => {
5392
5395
 
5393
5396
  // src/dynamics/dynamic-control.tsx
5394
5397
  var React87 = __toESM(require("react"));
5395
- var import_editor_controls54 = require("@elementor/editor-controls");
5398
+ var import_editor_controls55 = require("@elementor/editor-controls");
5396
5399
 
5397
5400
  // src/dynamics/components/dynamic-conditional-control.tsx
5398
5401
  var React86 = __toESM(require("react"));
@@ -5444,7 +5447,7 @@ var DynamicConditionalControl = ({
5444
5447
 
5445
5448
  // src/dynamics/dynamic-control.tsx
5446
5449
  var DynamicControl = ({ bind, children }) => {
5447
- const { value, setValue } = (0, import_editor_controls54.useBoundProp)(dynamicPropTypeUtil);
5450
+ const { value, setValue } = (0, import_editor_controls55.useBoundProp)(dynamicPropTypeUtil);
5448
5451
  const { name = "", group = "", settings } = value ?? {};
5449
5452
  const dynamicTag = useDynamicTag(name);
5450
5453
  if (!dynamicTag) {
@@ -5464,7 +5467,7 @@ var DynamicControl = ({ bind, children }) => {
5464
5467
  });
5465
5468
  };
5466
5469
  const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
5467
- return /* @__PURE__ */ React87.createElement(import_editor_controls54.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React87.createElement(import_editor_controls54.PropKeyProvider, { bind }, /* @__PURE__ */ React87.createElement(
5470
+ return /* @__PURE__ */ React87.createElement(import_editor_controls55.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React87.createElement(import_editor_controls55.PropKeyProvider, { bind }, /* @__PURE__ */ React87.createElement(
5468
5471
  DynamicConditionalControl,
5469
5472
  {
5470
5473
  propType: dynamicPropType,
@@ -5478,7 +5481,7 @@ var DynamicControl = ({ bind, children }) => {
5478
5481
  // src/dynamics/components/dynamic-selection.tsx
5479
5482
  var import_react40 = require("react");
5480
5483
  var React88 = __toESM(require("react"));
5481
- var import_editor_controls55 = require("@elementor/editor-controls");
5484
+ var import_editor_controls56 = require("@elementor/editor-controls");
5482
5485
  var import_editor_ui9 = require("@elementor/editor-ui");
5483
5486
  var import_icons24 = require("@elementor/icons");
5484
5487
  var import_ui39 = require("@elementor/ui");
@@ -5491,8 +5494,8 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
5491
5494
  const [searchValue, setSearchValue] = (0, import_react40.useState)("");
5492
5495
  const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
5493
5496
  const theme = (0, import_ui39.useTheme)();
5494
- const { value: anyValue } = (0, import_editor_controls55.useBoundProp)();
5495
- const { bind, value: dynamicValue, setValue } = (0, import_editor_controls55.useBoundProp)(dynamicPropTypeUtil);
5497
+ const { value: anyValue } = (0, import_editor_controls56.useBoundProp)();
5498
+ const { bind, value: dynamicValue, setValue } = (0, import_editor_controls56.useBoundProp)(dynamicPropTypeUtil);
5496
5499
  const [, updatePropValueHistory] = usePersistDynamicValue(bind);
5497
5500
  const isCurrentValueDynamic = !!dynamicValue;
5498
5501
  const options12 = useFilteredOptions(searchValue);
@@ -5622,8 +5625,8 @@ var useFilteredOptions = (searchValue) => {
5622
5625
  var SIZE3 = "tiny";
5623
5626
  var tagsWithoutTabs = ["popup"];
5624
5627
  var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
5625
- const { setValue: setAnyValue, propType } = (0, import_editor_controls56.useBoundProp)();
5626
- const { bind, value } = (0, import_editor_controls56.useBoundProp)(dynamicPropTypeUtil);
5628
+ const { setValue: setAnyValue, propType } = (0, import_editor_controls57.useBoundProp)();
5629
+ const { bind, value } = (0, import_editor_controls57.useBoundProp)(dynamicPropTypeUtil);
5627
5630
  const { expired: readonly } = useLicenseConfig();
5628
5631
  const originalPropType = createTopLevelObjectType({
5629
5632
  schema: {
@@ -5635,7 +5638,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
5635
5638
  const { name: tagName = "" } = value;
5636
5639
  const dynamicTag = useDynamicTag(tagName);
5637
5640
  if (!isDynamicTagSupported(tagName) && OriginalControl) {
5638
- return /* @__PURE__ */ React89.createElement(import_editor_controls56.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React89.createElement(import_editor_controls56.PropKeyProvider, { bind }, /* @__PURE__ */ React89.createElement(OriginalControl, { ...props })));
5641
+ return /* @__PURE__ */ React89.createElement(import_editor_controls57.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React89.createElement(import_editor_controls57.PropKeyProvider, { bind }, /* @__PURE__ */ React89.createElement(OriginalControl, { ...props })));
5639
5642
  }
5640
5643
  const removeDynamicTag = () => {
5641
5644
  setAnyValue(propValueFromHistory ?? null);
@@ -5784,7 +5787,7 @@ var Control2 = ({ control }) => {
5784
5787
  display: "grid",
5785
5788
  gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
5786
5789
  } : {};
5787
- return /* @__PURE__ */ React89.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React89.createElement(import_ui40.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React89.createElement(import_ui40.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React89.createElement(import_editor_controls56.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React89.createElement(import_ui40.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React89.createElement(Control, { type: control.type, props: controlProps }))));
5790
+ return /* @__PURE__ */ React89.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React89.createElement(import_ui40.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React89.createElement(import_ui40.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React89.createElement(import_editor_controls57.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React89.createElement(import_ui40.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React89.createElement(Control, { type: control.type, props: controlProps }))));
5788
5791
  };
5789
5792
  function ControlsItemsStack({ items: items3 }) {
5790
5793
  return /* @__PURE__ */ React89.createElement(import_ui40.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
@@ -5842,11 +5845,11 @@ function getDynamicValue(name, settings) {
5842
5845
 
5843
5846
  // src/dynamics/hooks/use-prop-dynamic-action.tsx
5844
5847
  var React90 = __toESM(require("react"));
5845
- var import_editor_controls57 = require("@elementor/editor-controls");
5848
+ var import_editor_controls58 = require("@elementor/editor-controls");
5846
5849
  var import_icons26 = require("@elementor/icons");
5847
5850
  var import_i18n62 = require("@wordpress/i18n");
5848
5851
  var usePropDynamicAction = () => {
5849
- const { propType } = (0, import_editor_controls57.useBoundProp)();
5852
+ const { propType } = (0, import_editor_controls58.useBoundProp)();
5850
5853
  const visible = !!propType && supportsDynamic(propType);
5851
5854
  return {
5852
5855
  visible,
@@ -5859,16 +5862,16 @@ var usePropDynamicAction = () => {
5859
5862
  // src/dynamics/init.ts
5860
5863
  var { registerPopoverAction } = import_menus2.controlActionsMenu;
5861
5864
  var init2 = () => {
5862
- (0, import_editor_controls58.registerControlReplacement)({
5865
+ (0, import_editor_controls59.registerControlReplacement)({
5863
5866
  component: DynamicSelectionControl,
5864
5867
  condition: ({ value }) => isDynamicPropValue(value)
5865
5868
  });
5866
- (0, import_editor_controls58.injectIntoRepeaterItemLabel)({
5869
+ (0, import_editor_controls59.injectIntoRepeaterItemLabel)({
5867
5870
  id: "dynamic-background-image",
5868
5871
  condition: ({ value }) => isDynamicPropValue(value.value?.image?.value?.src),
5869
5872
  component: BackgroundControlDynamicTagLabel
5870
5873
  });
5871
- (0, import_editor_controls58.injectIntoRepeaterItemIcon)({
5874
+ (0, import_editor_controls59.injectIntoRepeaterItemIcon)({
5872
5875
  id: "dynamic-background-image",
5873
5876
  condition: ({ value }) => isDynamicPropValue(value.value?.image?.value?.src),
5874
5877
  component: BackgroundControlDynamicTagIcon
@@ -5882,7 +5885,7 @@ var init2 = () => {
5882
5885
  };
5883
5886
 
5884
5887
  // src/reset-style-props.tsx
5885
- var import_editor_controls59 = require("@elementor/editor-controls");
5888
+ var import_editor_controls60 = require("@elementor/editor-controls");
5886
5889
  var import_editor_variables2 = require("@elementor/editor-variables");
5887
5890
  var import_icons27 = require("@elementor/icons");
5888
5891
  var import_menus3 = require("@elementor/menus");
@@ -5941,7 +5944,7 @@ function initResetStyleProps() {
5941
5944
  }
5942
5945
  function useResetStyleValueProps() {
5943
5946
  const isStyle = useIsStyle();
5944
- const { value, resetValue, propType } = (0, import_editor_controls59.useBoundProp)();
5947
+ const { value, resetValue, propType } = (0, import_editor_controls60.useBoundProp)();
5945
5948
  const hasValue = value !== null && value !== void 0;
5946
5949
  const hasInitial = propType.initial_value !== void 0 && propType.initial_value !== null;
5947
5950
  const isRequired = !!propType.settings?.required;
@@ -5969,7 +5972,7 @@ function useResetStyleValueProps() {
5969
5972
 
5970
5973
  // src/styles-inheritance/components/styles-inheritance-indicator.tsx
5971
5974
  var React96 = __toESM(require("react"));
5972
- var import_editor_controls60 = require("@elementor/editor-controls");
5975
+ var import_editor_controls61 = require("@elementor/editor-controls");
5973
5976
  var import_editor_props21 = require("@elementor/editor-props");
5974
5977
  var import_editor_styles_repository16 = require("@elementor/editor-styles-repository");
5975
5978
  var import_i18n67 = require("@wordpress/i18n");
@@ -6341,7 +6344,7 @@ function TooltipOrInfotip({
6341
6344
  var StylesInheritanceIndicator = ({
6342
6345
  customContext
6343
6346
  }) => {
6344
- const context = (0, import_editor_controls60.useBoundProp)();
6347
+ const context = (0, import_editor_controls61.useBoundProp)();
6345
6348
  const { path, propType } = customContext || context;
6346
6349
  const inheritanceChain = useStylesInheritanceChain(path);
6347
6350
  if (!path || !inheritanceChain.length) {