@elementor/editor-editing-panel 4.2.0-beta1 → 4.2.0-beta2

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
@@ -992,6 +992,9 @@ function ClassStatesMenu({ closeMenu }) {
992
992
  var CLASS_STATES_MAP = {
993
993
  selected: {
994
994
  label: __4("selected", "elementor")
995
+ },
996
+ disabled: {
997
+ label: __4("disabled", "elementor")
995
998
  }
996
999
  };
997
1000
  function useElementStates() {
@@ -2722,7 +2725,7 @@ import { CLASSES_PROP_KEY } from "@elementor/editor-props";
2722
2725
  import { useActiveBreakpoint } from "@elementor/editor-responsive";
2723
2726
  import { createLocation as createLocation4 } from "@elementor/locations";
2724
2727
  import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
2725
- import { Box as Box6, Divider as Divider5, Stack as Stack13 } from "@elementor/ui";
2728
+ import { Box as Box7, Divider as Divider5, Stack as Stack13 } from "@elementor/ui";
2726
2729
  import { __ as __62 } from "@wordpress/i18n";
2727
2730
 
2728
2731
  // src/contexts/styles-inheritance-context.tsx
@@ -4301,7 +4304,7 @@ var GapControlField = () => {
4301
4304
 
4302
4305
  // src/components/style-sections/layout-section/grid-auto-flow-field.tsx
4303
4306
  import * as React53 from "react";
4304
- import { ControlToggleButtonGroup as ControlToggleButtonGroup3 } from "@elementor/editor-controls";
4307
+ import { ControlToggleButtonGroup as ControlToggleButtonGroup3, useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
4305
4308
  import { ArrowDownSmallIcon as ArrowDownSmallIcon3, ArrowRightIcon as ArrowRightIcon2, LayoutDashboardIcon } from "@elementor/icons";
4306
4309
  import { Grid as Grid3, ToggleButton, Tooltip as Tooltip3, withDirection as withDirection7 } from "@elementor/ui";
4307
4310
  import { __ as __29 } from "@wordpress/i18n";
@@ -4324,7 +4327,7 @@ var directionOptions = [
4324
4327
  ];
4325
4328
  var parseAutoFlow = (value) => {
4326
4329
  if (!value) {
4327
- return { direction: "row", dense: false };
4330
+ return { direction: null, dense: false };
4328
4331
  }
4329
4332
  const dense = value.includes("dense");
4330
4333
  const direction = value.replace(/\s*dense\s*/, "").trim();
@@ -4334,27 +4337,33 @@ var composeAutoFlow = (direction, dense) => {
4334
4337
  return dense ? `${direction} dense` : direction;
4335
4338
  };
4336
4339
  var GridAutoFlowFieldContent = () => {
4337
- const { value, setValue } = useStylesField("grid-auto-flow", {
4340
+ const { value, setValue, canEdit } = useStylesField("grid-auto-flow", {
4338
4341
  history: { propDisplayName: AUTO_FLOW_LABEL }
4339
4342
  });
4343
+ const { placeholder } = useBoundProp4();
4340
4344
  const { direction, dense } = parseAutoFlow(value?.value ?? null);
4345
+ const directionPlaceholder = parseAutoFlow(placeholder?.value ?? null).direction;
4341
4346
  const handleDirectionChange = (newDirection) => {
4342
4347
  if (!newDirection) {
4348
+ setValue(null);
4343
4349
  return;
4344
4350
  }
4345
4351
  setValue({ $$type: "string", value: composeAutoFlow(newDirection, dense) });
4346
4352
  };
4347
4353
  const handleDenseToggle = () => {
4348
- setValue({ $$type: "string", value: composeAutoFlow(direction, !dense) });
4354
+ const nextDirection = direction ?? "row";
4355
+ setValue({ $$type: "string", value: composeAutoFlow(nextDirection, !dense) });
4349
4356
  };
4350
4357
  return /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: AUTO_FLOW_LABEL }, /* @__PURE__ */ React53.createElement(Grid3, { container: true, gap: 1, flexWrap: "nowrap", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React53.createElement(Grid3, { item: true, sx: { width: 64, maxWidth: "100%" } }, /* @__PURE__ */ React53.createElement(
4351
4358
  ControlToggleButtonGroup3,
4352
4359
  {
4353
4360
  items: directionOptions,
4354
4361
  value: direction,
4362
+ placeholder: directionPlaceholder,
4355
4363
  onChange: handleDirectionChange,
4356
4364
  exclusive: true,
4357
- fullWidth: true
4365
+ fullWidth: true,
4366
+ disabled: !canEdit
4358
4367
  }
4359
4368
  )), /* @__PURE__ */ React53.createElement(Grid3, { item: true }, /* @__PURE__ */ React53.createElement(Tooltip3, { title: DENSE_LABEL, placement: "top" }, /* @__PURE__ */ React53.createElement(
4360
4369
  ToggleButton,
@@ -4363,7 +4372,8 @@ var GridAutoFlowFieldContent = () => {
4363
4372
  selected: dense,
4364
4373
  onChange: handleDenseToggle,
4365
4374
  size: "tiny",
4366
- "aria-label": DENSE_LABEL
4375
+ "aria-label": DENSE_LABEL,
4376
+ disabled: !canEdit
4367
4377
  },
4368
4378
  /* @__PURE__ */ React53.createElement(LayoutDashboardIcon, { fontSize: "tiny" })
4369
4379
  )))));
@@ -4460,17 +4470,34 @@ var GridJustifyItemsField = () => /* @__PURE__ */ React55.createElement(StylesFi
4460
4470
 
4461
4471
  // src/components/style-sections/layout-section/grid-outline-field.tsx
4462
4472
  import * as React56 from "react";
4463
- import { SwitchControl as SwitchControl2 } from "@elementor/editor-controls";
4473
+ import { updateElementEditorSettings, useElementEditorSettings } from "@elementor/editor-elements";
4474
+ import { Box as Box5, Switch } from "@elementor/ui";
4464
4475
  import { __ as __32 } from "@wordpress/i18n";
4465
4476
  var GRID_OUTLINE_LABEL = __32("Show Grid Outline", "elementor");
4466
4477
  var GridOutlineField = () => {
4467
- return /* @__PURE__ */ React56.createElement(SettingsField, { bind: "grid_outline", propDisplayName: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React56.createElement(StylesFieldLayout, { label: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React56.createElement(SwitchControl2, null)));
4478
+ const { element } = useElement();
4479
+ const settings = useElementEditorSettings(element.id);
4480
+ const value = settings?.grid_outline ?? true;
4481
+ return /* @__PURE__ */ React56.createElement(StylesFieldLayout, { label: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React56.createElement(Box5, { sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React56.createElement(
4482
+ Switch,
4483
+ {
4484
+ "aria-label": GRID_OUTLINE_LABEL,
4485
+ checked: value,
4486
+ onChange: (event) => {
4487
+ updateElementEditorSettings({
4488
+ elementId: element.id,
4489
+ settings: { grid_outline: event.target.checked }
4490
+ });
4491
+ },
4492
+ size: "small"
4493
+ }
4494
+ )));
4468
4495
  };
4469
4496
 
4470
4497
  // src/components/style-sections/layout-section/grid-size-field.tsx
4471
4498
  import * as React57 from "react";
4472
4499
  import { useRef as useRef9 } from "react";
4473
- import { ControlActions, createControl, SizeComponent, useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
4500
+ import { ControlActions, createControl, SizeComponent, useBoundProp as useBoundProp5 } from "@elementor/editor-controls";
4474
4501
  import { Grid as Grid4 } from "@elementor/ui";
4475
4502
  import { __ as __33 } from "@wordpress/i18n";
4476
4503
 
@@ -4589,7 +4616,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
4589
4616
  const { value, setValue } = useStylesField(cssProp, {
4590
4617
  history: { propDisplayName: label }
4591
4618
  });
4592
- const { placeholder: inheritedPlaceholder } = useBoundProp4();
4619
+ const { placeholder: inheritedPlaceholder } = useBoundProp5();
4593
4620
  const anchorRef = useRef9(null);
4594
4621
  const local = parseValue(value);
4595
4622
  const inherited = parseValue(inheritedPlaceholder);
@@ -4848,12 +4875,12 @@ var PositionField = () => {
4848
4875
  import * as React65 from "react";
4849
4876
  import { NumberControl as NumberControl4 } from "@elementor/editor-controls";
4850
4877
  import { InfoCircleFilledIcon } from "@elementor/icons";
4851
- import { Alert as Alert3, AlertTitle as AlertTitle2, Box as Box5, Infotip } from "@elementor/ui";
4878
+ import { Alert as Alert3, AlertTitle as AlertTitle2, Box as Box6, Infotip } from "@elementor/ui";
4852
4879
  import { __ as __41 } from "@wordpress/i18n";
4853
4880
  var Z_INDEX_LABEL = __41("Z-index", "elementor");
4854
4881
  var ZIndexField = ({ disabled }) => {
4855
4882
  const StyleField = /* @__PURE__ */ React65.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(NumberControl4, { disabled })));
4856
- const content = /* @__PURE__ */ React65.createElement(Alert3, { color: "secondary", icon: /* @__PURE__ */ React65.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React65.createElement(AlertTitle2, null, __41("Z-index", "elementor")), /* @__PURE__ */ React65.createElement(Box5, { component: "span" }, __41(
4883
+ const content = /* @__PURE__ */ React65.createElement(Alert3, { color: "secondary", icon: /* @__PURE__ */ React65.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React65.createElement(AlertTitle2, null, __41("Z-index", "elementor")), /* @__PURE__ */ React65.createElement(Box6, { component: "span" }, __41(
4857
4884
  "z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
4858
4885
  "elementor"
4859
4886
  )));
@@ -4865,7 +4892,7 @@ var ZIndexField = ({ disabled }) => {
4865
4892
  color: "secondary",
4866
4893
  slotProps: { popper: { sx: { width: 300 } } }
4867
4894
  },
4868
- /* @__PURE__ */ React65.createElement(Box5, null, StyleField)
4895
+ /* @__PURE__ */ React65.createElement(Box6, null, StyleField)
4869
4896
  ) : /* @__PURE__ */ React65.createElement(React65.Fragment, null, StyleField);
4870
4897
  };
4871
4898
 
@@ -5607,7 +5634,7 @@ var StyleTab = () => {
5607
5634
  "transition"
5608
5635
  ]
5609
5636
  }
5610
- ), /* @__PURE__ */ React89.createElement(StyleTabSlot, null)), /* @__PURE__ */ React89.createElement(Box6, { sx: { height: "150px" } })))
5637
+ ), /* @__PURE__ */ React89.createElement(StyleTabSlot, null)), /* @__PURE__ */ React89.createElement(Box7, { sx: { height: "150px" } })))
5611
5638
  ));
5612
5639
  };
5613
5640
  function ClassesHeader({ children }) {
@@ -5769,16 +5796,16 @@ import * as React93 from "react";
5769
5796
  import {
5770
5797
  ControlFormLabel as ControlFormLabel3,
5771
5798
  Repeater,
5772
- useBoundProp as useBoundProp6
5799
+ useBoundProp as useBoundProp7
5773
5800
  } from "@elementor/editor-controls";
5774
5801
  import {
5775
- updateElementEditorSettings,
5802
+ updateElementEditorSettings as updateElementEditorSettings2,
5776
5803
  useElementChildren,
5777
- useElementEditorSettings
5804
+ useElementEditorSettings as useElementEditorSettings2
5778
5805
  } from "@elementor/editor-elements";
5779
5806
  import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
5780
5807
  import { InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
5781
- import { Alert as Alert4, Chip as Chip4, Infotip as Infotip2, Stack as Stack15, Switch, TextField as TextField2, Typography as Typography5 } from "@elementor/ui";
5808
+ import { Alert as Alert4, Chip as Chip4, Infotip as Infotip2, Stack as Stack15, Switch as Switch2, TextField as TextField2, Typography as Typography5 } from "@elementor/ui";
5782
5809
  import { __ as __67 } from "@wordpress/i18n";
5783
5810
 
5784
5811
  // src/controls-registry/element-controls/get-element-by-type.ts
@@ -5795,7 +5822,7 @@ var getElementByType = (elementId, type) => {
5795
5822
  };
5796
5823
 
5797
5824
  // src/controls-registry/element-controls/tabs-control/use-actions.ts
5798
- import { useBoundProp as useBoundProp5 } from "@elementor/editor-controls";
5825
+ import { useBoundProp as useBoundProp6 } from "@elementor/editor-controls";
5799
5826
  import {
5800
5827
  createElements,
5801
5828
  duplicateElements,
@@ -5808,7 +5835,7 @@ import { __ as __66 } from "@wordpress/i18n";
5808
5835
  var TAB_ELEMENT_TYPE = "e-tab";
5809
5836
  var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
5810
5837
  var useActions = () => {
5811
- const { value, setValue: setDefaultActiveTab } = useBoundProp5(numberPropTypeUtil3);
5838
+ const { value, setValue: setDefaultActiveTab } = useBoundProp6(numberPropTypeUtil3);
5812
5839
  const defaultActiveTab = value ?? 0;
5813
5840
  const duplicateItem = ({
5814
5841
  items: items3,
@@ -6069,7 +6096,7 @@ var ItemLabel = ({ value, index }) => {
6069
6096
  return /* @__PURE__ */ React93.createElement(Stack15, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React93.createElement("span", null, elementTitle), /* @__PURE__ */ React93.createElement(ItemDefaultTab, { index }));
6070
6097
  };
6071
6098
  var ItemDefaultTab = ({ index }) => {
6072
- const { value: defaultItem } = useBoundProp6(numberPropTypeUtil4);
6099
+ const { value: defaultItem } = useBoundProp7(numberPropTypeUtil4);
6073
6100
  const isDefault = defaultItem === index;
6074
6101
  if (!isDefault) {
6075
6102
  return null;
@@ -6083,10 +6110,10 @@ var ItemContent = ({ value, index }) => {
6083
6110
  return /* @__PURE__ */ React93.createElement(Stack15, { p: 2, gap: 1.5 }, /* @__PURE__ */ React93.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React93.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __67("Tabs", "elementor") }, /* @__PURE__ */ React93.createElement(DefaultTabControl, { tabIndex: index })));
6084
6111
  };
6085
6112
  var DefaultTabControl = ({ tabIndex }) => {
6086
- const { value, setValue } = useBoundProp6(numberPropTypeUtil4);
6113
+ const { value, setValue } = useBoundProp7(numberPropTypeUtil4);
6087
6114
  const isDefault = value === tabIndex;
6088
6115
  return /* @__PURE__ */ React93.createElement(Stack15, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React93.createElement(ControlFormLabel3, null, __67("Set as default tab", "elementor")), /* @__PURE__ */ React93.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React93.createElement(
6089
- Switch,
6116
+ Switch2,
6090
6117
  {
6091
6118
  size: "small",
6092
6119
  checked: isDefault,
@@ -6101,7 +6128,7 @@ var DefaultTabControl = ({ tabIndex }) => {
6101
6128
  )));
6102
6129
  };
6103
6130
  var TabLabelControl = ({ elementId }) => {
6104
- const editorSettings = useElementEditorSettings(elementId);
6131
+ const editorSettings = useElementEditorSettings2(elementId);
6105
6132
  const label = editorSettings?.title ?? "";
6106
6133
  return /* @__PURE__ */ React93.createElement(Stack15, { gap: 1 }, /* @__PURE__ */ React93.createElement(ControlFormLabel3, null, __67("Tab name", "elementor")), /* @__PURE__ */ React93.createElement(
6107
6134
  TextField2,
@@ -6109,7 +6136,7 @@ var TabLabelControl = ({ elementId }) => {
6109
6136
  size: "tiny",
6110
6137
  value: label,
6111
6138
  onChange: ({ target }) => {
6112
- updateElementEditorSettings({
6139
+ updateElementEditorSettings2({
6113
6140
  elementId,
6114
6141
  settings: { title: target.value }
6115
6142
  });
@@ -6166,7 +6193,7 @@ import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
6166
6193
 
6167
6194
  // src/dynamics/components/background-control-dynamic-tag.tsx
6168
6195
  import * as React94 from "react";
6169
- import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
6196
+ import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
6170
6197
  import {
6171
6198
  backgroundImageOverlayPropTypeUtil
6172
6199
  } from "@elementor/editor-props";
@@ -6177,7 +6204,7 @@ import { useMemo as useMemo12 } from "react";
6177
6204
 
6178
6205
  // src/dynamics/hooks/use-prop-dynamic-tags.ts
6179
6206
  import { useMemo as useMemo11 } from "react";
6180
- import { useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
6207
+ import { useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
6181
6208
 
6182
6209
  // src/dynamics/sync/get-atomic-dynamic-tags.ts
6183
6210
  import { getElementorConfig } from "@elementor/editor-v1-adapters";
@@ -6264,7 +6291,7 @@ var useAllPropDynamicTags = () => {
6264
6291
  };
6265
6292
  var usePropDynamicTagsInternal = (filterByLicense2) => {
6266
6293
  let categories = [];
6267
- const { propType } = useBoundProp7();
6294
+ const { propType } = useBoundProp8();
6268
6295
  if (propType) {
6269
6296
  const propDynamicType = getDynamicPropType(propType);
6270
6297
  categories = propDynamicType?.settings.categories || [];
@@ -6310,11 +6337,11 @@ var useDynamicTag = (tagName) => {
6310
6337
  // src/dynamics/components/background-control-dynamic-tag.tsx
6311
6338
  var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React94.createElement(DatabaseIcon, { fontSize: "tiny" });
6312
6339
  var BackgroundControlDynamicTagLabel = ({ value }) => {
6313
- const context = useBoundProp8(backgroundImageOverlayPropTypeUtil);
6340
+ const context = useBoundProp9(backgroundImageOverlayPropTypeUtil);
6314
6341
  return /* @__PURE__ */ React94.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React94.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React94.createElement(Wrapper2, { rawValue: value.value })));
6315
6342
  };
6316
6343
  var Wrapper2 = ({ rawValue }) => {
6317
- const { propType } = useBoundProp8();
6344
+ const { propType } = useBoundProp9();
6318
6345
  const imageOverlayPropType = propType.prop_types["background-image-overlay"];
6319
6346
  return /* @__PURE__ */ React94.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React94.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React94.createElement(Content, { rawValue: rawValue.image })));
6320
6347
  };
@@ -6330,14 +6357,14 @@ import {
6330
6357
  ControlFormLabel as ControlFormLabel4,
6331
6358
  PropKeyProvider as PropKeyProvider6,
6332
6359
  PropProvider as PropProvider6,
6333
- useBoundProp as useBoundProp11
6360
+ useBoundProp as useBoundProp12
6334
6361
  } from "@elementor/editor-controls";
6335
6362
  import { PopoverHeader as PopoverHeader2, SectionPopoverBody as SectionPopoverBody2 } from "@elementor/editor-ui";
6336
6363
  import { DatabaseIcon as DatabaseIcon3, SettingsIcon, XIcon } from "@elementor/icons";
6337
6364
  import {
6338
6365
  bindPopover,
6339
6366
  bindTrigger as bindTrigger2,
6340
- Box as Box7,
6367
+ Box as Box8,
6341
6368
  Divider as Divider8,
6342
6369
  Grid as Grid8,
6343
6370
  IconButton as IconButton2,
@@ -6362,7 +6389,7 @@ var usePersistDynamicValue = (propKey) => {
6362
6389
 
6363
6390
  // src/dynamics/dynamic-control.tsx
6364
6391
  import * as React96 from "react";
6365
- import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
6392
+ import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
6366
6393
 
6367
6394
  // src/dynamics/components/dynamic-conditional-control.tsx
6368
6395
  import * as React95 from "react";
@@ -6415,7 +6442,7 @@ var DynamicConditionalControl = ({
6415
6442
 
6416
6443
  // src/dynamics/dynamic-control.tsx
6417
6444
  var DynamicControl = ({ bind, children }) => {
6418
- const { value, setValue } = useBoundProp9(dynamicPropTypeUtil);
6445
+ const { value, setValue } = useBoundProp10(dynamicPropTypeUtil);
6419
6446
  const { name = "", group = "", settings } = value ?? {};
6420
6447
  const dynamicTag = useDynamicTag(name);
6421
6448
  if (!dynamicTag) {
@@ -6449,7 +6476,7 @@ var DynamicControl = ({ bind, children }) => {
6449
6476
  // src/dynamics/components/dynamic-selection.tsx
6450
6477
  import * as React97 from "react";
6451
6478
  import { Fragment as Fragment14, useEffect as useEffect9, useState as useState10 } from "react";
6452
- import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
6479
+ import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp11 } from "@elementor/editor-controls";
6453
6480
  import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
6454
6481
  import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
6455
6482
  import { Divider as Divider7, Link as Link2, Stack as Stack16, Typography as Typography6, useTheme as useTheme3 } from "@elementor/ui";
@@ -6462,8 +6489,8 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
6462
6489
  const [searchValue, setSearchValue] = useState10("");
6463
6490
  const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
6464
6491
  const theme = useTheme3();
6465
- const { value: anyValue } = useBoundProp10();
6466
- const { bind, value: dynamicValue, setValue } = useBoundProp10(dynamicPropTypeUtil);
6492
+ const { value: anyValue } = useBoundProp11();
6493
+ const { bind, value: dynamicValue, setValue } = useBoundProp11(dynamicPropTypeUtil);
6467
6494
  const [, updatePropValueHistory] = usePersistDynamicValue(bind);
6468
6495
  const isCurrentValueDynamic = !!dynamicValue;
6469
6496
  const options13 = useFilteredOptions(searchValue);
@@ -6615,8 +6642,8 @@ var useFilteredOptions = (searchValue) => {
6615
6642
  var SIZE3 = "tiny";
6616
6643
  var tagsWithoutTabs = ["popup"];
6617
6644
  var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
6618
- const { setValue: setAnyValue, propType } = useBoundProp11();
6619
- const { bind, value } = useBoundProp11(dynamicPropTypeUtil);
6645
+ const { setValue: setAnyValue, propType } = useBoundProp12();
6646
+ const { bind, value } = useBoundProp12(dynamicPropTypeUtil);
6620
6647
  const { expired: readonly } = useLicenseConfig();
6621
6648
  const originalPropType = createTopLevelObjectType({
6622
6649
  schema: {
@@ -6636,7 +6663,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
6636
6663
  if (!dynamicTag) {
6637
6664
  throw new Error(`Dynamic tag ${tagName} not found`);
6638
6665
  }
6639
- return /* @__PURE__ */ React98.createElement(Box7, null, /* @__PURE__ */ React98.createElement(
6666
+ return /* @__PURE__ */ React98.createElement(Box8, null, /* @__PURE__ */ React98.createElement(
6640
6667
  Tag,
6641
6668
  {
6642
6669
  fullWidth: true,
@@ -6839,11 +6866,11 @@ function getDynamicValue(name, settings, renderPostId) {
6839
6866
 
6840
6867
  // src/dynamics/hooks/use-prop-dynamic-action.tsx
6841
6868
  import * as React99 from "react";
6842
- import { useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
6869
+ import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
6843
6870
  import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
6844
6871
  import { __ as __70 } from "@wordpress/i18n";
6845
6872
  var usePropDynamicAction = () => {
6846
- const { propType } = useBoundProp12();
6873
+ const { propType } = useBoundProp13();
6847
6874
  const visible = !!propType && supportsDynamic(propType);
6848
6875
  return {
6849
6876
  visible,
@@ -6880,7 +6907,7 @@ var init2 = () => {
6880
6907
  };
6881
6908
 
6882
6909
  // src/reset-style-props.tsx
6883
- import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
6910
+ import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
6884
6911
  import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
6885
6912
  import { BrushBigIcon } from "@elementor/icons";
6886
6913
  import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
@@ -6940,7 +6967,7 @@ function initResetStyleProps() {
6940
6967
  }
6941
6968
  function useResetStyleValueProps() {
6942
6969
  const isStyle = useIsStyle();
6943
- const { value, resetValue, propType } = useBoundProp13();
6970
+ const { value, resetValue, propType } = useBoundProp14();
6944
6971
  const hasValue = value !== null && value !== void 0;
6945
6972
  const hasInitial = propType.initial_value !== void 0 && propType.initial_value !== null;
6946
6973
  const isRequired = !!propType.settings?.required;
@@ -6968,7 +6995,7 @@ function useResetStyleValueProps() {
6968
6995
 
6969
6996
  // src/styles-inheritance/components/styles-inheritance-indicator.tsx
6970
6997
  import * as React105 from "react";
6971
- import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
6998
+ import { useBoundProp as useBoundProp15 } from "@elementor/editor-controls";
6972
6999
  import { isEmpty as isEmpty3 } from "@elementor/editor-props";
6973
7000
  import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
6974
7001
  import { __ as __75 } from "@wordpress/i18n";
@@ -6983,7 +7010,7 @@ import {
6983
7010
  import { PopoverHeader as PopoverHeader3, useSectionWidth as useSectionWidth2 } from "@elementor/editor-ui";
6984
7011
  import {
6985
7012
  Backdrop,
6986
- Box as Box9,
7013
+ Box as Box10,
6987
7014
  Card,
6988
7015
  CardContent,
6989
7016
  ClickAwayListener,
@@ -7166,8 +7193,8 @@ var ValueComponent = ({ index, value }) => {
7166
7193
 
7167
7194
  // src/styles-inheritance/components/infotip/action-icons.tsx
7168
7195
  import * as React103 from "react";
7169
- import { Box as Box8 } from "@elementor/ui";
7170
- var ActionIcons = () => /* @__PURE__ */ React103.createElement(Box8, { display: "flex", gap: 0.5, alignItems: "center" });
7196
+ import { Box as Box9 } from "@elementor/ui";
7197
+ var ActionIcons = () => /* @__PURE__ */ React103.createElement(Box9, { display: "flex", gap: 0.5, alignItems: "center" });
7171
7198
 
7172
7199
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
7173
7200
  var SECTION_PADDING_INLINE = 32;
@@ -7217,7 +7244,7 @@ var StylesInheritanceInfotip = ({
7217
7244
  }
7218
7245
  },
7219
7246
  /* @__PURE__ */ React104.createElement(
7220
- Box9,
7247
+ Box10,
7221
7248
  {
7222
7249
  sx: {
7223
7250
  position: "sticky",
@@ -7244,7 +7271,7 @@ var StylesInheritanceInfotip = ({
7244
7271
  },
7245
7272
  /* @__PURE__ */ React104.createElement(Stack18, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
7246
7273
  return /* @__PURE__ */ React104.createElement(
7247
- Box9,
7274
+ Box10,
7248
7275
  {
7249
7276
  key: item.id,
7250
7277
  display: "flex",
@@ -7256,7 +7283,7 @@ var StylesInheritanceInfotip = ({
7256
7283
  )
7257
7284
  },
7258
7285
  /* @__PURE__ */ React104.createElement(
7259
- Box9,
7286
+ Box10,
7260
7287
  {
7261
7288
  display: "flex",
7262
7289
  gap: 0.5,
@@ -7272,9 +7299,9 @@ var StylesInheritanceInfotip = ({
7272
7299
  )
7273
7300
  ));
7274
7301
  if (isDisabled) {
7275
- return /* @__PURE__ */ React104.createElement(Box9, { sx: { display: "inline-flex" } }, children);
7302
+ return /* @__PURE__ */ React104.createElement(Box10, { sx: { display: "inline-flex" } }, children);
7276
7303
  }
7277
- return /* @__PURE__ */ React104.createElement(Box9, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React104.createElement(
7304
+ return /* @__PURE__ */ React104.createElement(Box10, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React104.createElement(
7278
7305
  TooltipOrInfotip,
7279
7306
  {
7280
7307
  showInfotip,
@@ -7302,7 +7329,7 @@ function TooltipOrInfotip({
7302
7329
  isDisabled
7303
7330
  }) {
7304
7331
  if (isDisabled) {
7305
- return /* @__PURE__ */ React104.createElement(Box9, { sx: { display: "inline-flex" } }, children);
7332
+ return /* @__PURE__ */ React104.createElement(Box10, { sx: { display: "inline-flex" } }, children);
7306
7333
  }
7307
7334
  if (showInfotip) {
7308
7335
  return /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(
@@ -7334,7 +7361,7 @@ function TooltipOrInfotip({
7334
7361
  var StylesInheritanceIndicator = ({
7335
7362
  customContext
7336
7363
  }) => {
7337
- const context = useBoundProp14();
7364
+ const context = useBoundProp15();
7338
7365
  const { path, propType } = customContext || context;
7339
7366
  const inheritanceChain = useStylesInheritanceChain(path);
7340
7367
  if (!path || !inheritanceChain.length) {