@elementor/editor-editing-panel 4.2.0-847 → 4.2.0-849

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
@@ -152,7 +152,7 @@ import * as React11 from "react";
152
152
  import { useRef, useState as useState4 } from "react";
153
153
  import {
154
154
  isElementsStylesProvider as isElementsStylesProvider4,
155
- stylesRepository as stylesRepository6,
155
+ stylesRepository as stylesRepository7,
156
156
  useProviders,
157
157
  useUserStylesCapability as useUserStylesCapability5,
158
158
  validateStyleLabel as validateStyleLabel2
@@ -554,7 +554,7 @@ var StyledGroupItems = styled("ul")`
554
554
  import * as React10 from "react";
555
555
  import { useEffect, useMemo as useMemo3, useState as useState3 } from "react";
556
556
  import { isClassState } from "@elementor/editor-styles";
557
- import { stylesRepository as stylesRepository5, useUserStylesCapability as useUserStylesCapability4, validateStyleLabel } from "@elementor/editor-styles-repository";
557
+ import { stylesRepository as stylesRepository6, useUserStylesCapability as useUserStylesCapability4, validateStyleLabel } from "@elementor/editor-styles-repository";
558
558
  import { EditableField, EllipsisWithTooltip, useEditable } from "@elementor/editor-ui";
559
559
  import { DotsVerticalIcon } from "@elementor/icons";
560
560
  import { useSessionStorage as useSessionStorage3 } from "@elementor/session";
@@ -588,7 +588,7 @@ function CssClassProvider({ children, ...contextValue }) {
588
588
  import * as React9 from "react";
589
589
  import {
590
590
  isElementsStylesProvider as isElementsStylesProvider3,
591
- stylesRepository as stylesRepository4,
591
+ stylesRepository as stylesRepository5,
592
592
  useUserStylesCapability as useUserStylesCapability3
593
593
  } from "@elementor/editor-styles-repository";
594
594
  import { MenuItemInfotip, MenuListItem as MenuListItem2 } from "@elementor/editor-ui";
@@ -614,7 +614,7 @@ var StyleIndicator = styled2("div", {
614
614
 
615
615
  // src/components/css-classes/duplicate-class-menu-item.tsx
616
616
  import * as React7 from "react";
617
- import { stylesRepository as stylesRepository3, useUserStylesCapability as useUserStylesCapability2 } from "@elementor/editor-styles-repository";
617
+ import { stylesRepository as stylesRepository4, useUserStylesCapability as useUserStylesCapability2 } from "@elementor/editor-styles-repository";
618
618
  import { MenuListItem } from "@elementor/editor-ui";
619
619
  import { useSessionStorage as useSessionStorage2 } from "@elementor/session";
620
620
  import { __ as __2 } from "@wordpress/i18n";
@@ -630,6 +630,7 @@ import { __ } from "@wordpress/i18n";
630
630
  import { setDocumentModifiedStatus } from "@elementor/editor-documents";
631
631
  import { getElementSetting as getElementSetting2, updateElementSettings as updateElementSettings2 } from "@elementor/editor-elements";
632
632
  import { classesPropTypeUtil as classesPropTypeUtil2 } from "@elementor/editor-props";
633
+ import { stylesRepository as stylesRepository3 } from "@elementor/editor-styles-repository";
633
634
  function doGetAppliedClasses(elementId, classesPropType = "classes") {
634
635
  return getElementSetting2(elementId, classesPropType)?.value || [];
635
636
  }
@@ -640,6 +641,17 @@ function doApplyClasses(elementId, classIds, classesPropType = "classes") {
640
641
  withHistory: false
641
642
  });
642
643
  setDocumentModifiedStatus(true);
644
+ ensureClassesAreLoaded(classIds);
645
+ }
646
+ function ensureClassesAreLoaded(classIds) {
647
+ const providers = stylesRepository3.getProviders();
648
+ classIds.forEach((classId) => {
649
+ stylesRepository3.getProviderByKey(classId)?.actions.get(classId);
650
+ const owningProvider = providers.find(
651
+ (provider) => provider.actions.all().some((style) => style.id === classId)
652
+ );
653
+ owningProvider?.actions.get(classId);
654
+ });
643
655
  }
644
656
  function doUnapplyClass(elementId, classId, classesPropType = "classes") {
645
657
  const appliedClasses = getElementSetting2(elementId, classesPropType)?.value || [];
@@ -820,7 +832,7 @@ function DuplicateClassMenuItem({ closeMenu }) {
820
832
  if (!provider || !classId) {
821
833
  return null;
822
834
  }
823
- const providerInstance = stylesRepository3.getProviderByKey(provider);
835
+ const providerInstance = stylesRepository4.getProviderByKey(provider);
824
836
  const createAction = providerInstance?.actions.create;
825
837
  const getAction = providerInstance?.actions.get;
826
838
  if (!createAction || !getAction) {
@@ -976,7 +988,7 @@ function useElementStates() {
976
988
  }
977
989
  function useModifiedStates(styleId) {
978
990
  const { meta } = useStyle();
979
- const styleDef = stylesRepository4.all().find((style) => style.id === styleId);
991
+ const styleDef = stylesRepository5.all().find((style) => style.id === styleId);
980
992
  return Object.fromEntries(
981
993
  styleDef?.variants.filter((variant) => meta.breakpoint === variant.meta.breakpoint).map((variant) => [variant.meta.state ?? "normal", true]) ?? []
982
994
  );
@@ -989,7 +1001,7 @@ function getMenuItemsByProvider({
989
1001
  if (!provider) {
990
1002
  return [];
991
1003
  }
992
- const providerInstance = stylesRepository4.getProviderByKey(provider);
1004
+ const providerInstance = stylesRepository5.getProviderByKey(provider);
993
1005
  const providerActions = providerInstance?.actions;
994
1006
  const canUpdate = providerActions?.update;
995
1007
  const canDuplicate = providerActions?.create && providerActions?.get;
@@ -1139,7 +1151,7 @@ function CssClassItem(props) {
1139
1151
  onError: setError
1140
1152
  });
1141
1153
  const color = error ? "error" : colorProp;
1142
- const providerActions = provider ? stylesRepository5.getProviderByKey(provider)?.actions : null;
1154
+ const providerActions = provider ? stylesRepository6.getProviderByKey(provider)?.actions : null;
1143
1155
  const allowRename = Boolean(providerActions?.update) && userCan(provider ?? "")?.update;
1144
1156
  const isShowingState = isActive && meta.state;
1145
1157
  const stateLabel = useMemo3(() => {
@@ -1329,7 +1341,7 @@ var updateClassByProvider = (provider, data) => {
1329
1341
  if (!provider) {
1330
1342
  return;
1331
1343
  }
1332
- const providerInstance = stylesRepository6.getProviderByKey(provider);
1344
+ const providerInstance = stylesRepository7.getProviderByKey(provider);
1333
1345
  if (!providerInstance) {
1334
1346
  return;
1335
1347
  }
@@ -2578,7 +2590,7 @@ import { getWidgetsCache } from "@elementor/editor-elements";
2578
2590
  import { classesPropTypeUtil as classesPropTypeUtil3 } from "@elementor/editor-props";
2579
2591
  import { getBreakpointsTree as getBreakpointsTree2 } from "@elementor/editor-responsive";
2580
2592
  import { getStylesSchema } from "@elementor/editor-styles";
2581
- import { stylesRepository as stylesRepository7 } from "@elementor/editor-styles-repository";
2593
+ import { stylesRepository as stylesRepository8 } from "@elementor/editor-styles-repository";
2582
2594
 
2583
2595
  // src/styles-inheritance/create-styles-inheritance.ts
2584
2596
  import {
@@ -2855,7 +2867,7 @@ var useAppliedStyles = () => {
2855
2867
  useStylesRerender();
2856
2868
  const classesProp = usePanelElementSetting(currentClassesProp);
2857
2869
  const appliedStyles = classesPropTypeUtil3.extract(classesProp) ?? [];
2858
- return stylesRepository7.all().filter((style) => [...baseStyles, ...appliedStyles].includes(style.id));
2870
+ return stylesRepository8.all().filter((style) => [...baseStyles, ...appliedStyles].includes(style.id));
2859
2871
  };
2860
2872
  var useBaseStyles = () => {
2861
2873
  const { elementType } = useElement();
@@ -4194,48 +4206,100 @@ var GridJustifyItemsField = () => /* @__PURE__ */ React50.createElement(StylesFi
4194
4206
  // src/components/style-sections/layout-section/grid-size-field.tsx
4195
4207
  import * as React51 from "react";
4196
4208
  import { useRef as useRef8 } from "react";
4197
- import { SizeComponent } from "@elementor/editor-controls";
4209
+ import { SizeComponent, useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
4210
+ import { stringPropTypeUtil as stringPropTypeUtil3 } from "@elementor/editor-props";
4198
4211
  import { Grid as Grid4 } from "@elementor/ui";
4199
4212
  import { __ as __29 } from "@wordpress/i18n";
4200
4213
  var FR = "fr";
4201
4214
  var CUSTOM2 = "custom";
4202
4215
  var UNITS = [FR, CUSTOM2];
4216
+ var EMPTY = { kind: "empty" };
4203
4217
  var REPEAT_FR_PATTERN = /^repeat\(\s*(\d+)\s*,\s*1fr\s*\)$/;
4204
- var cssToTrackValue = (css) => {
4218
+ var parseCss = (css) => {
4205
4219
  if (!css) {
4206
- return null;
4220
+ return EMPTY;
4207
4221
  }
4208
4222
  const match = css.match(REPEAT_FR_PATTERN);
4209
4223
  if (match) {
4210
- return { size: parseInt(match[1], 10), unit: FR };
4224
+ const count = parseInt(match[1], 10);
4225
+ return count >= 1 ? { kind: "fr", count } : EMPTY;
4211
4226
  }
4212
- return { size: css, unit: CUSTOM2 };
4227
+ return { kind: "custom", raw: css };
4213
4228
  };
4214
- var trackValueToCss = (trackValue) => {
4215
- if (!trackValue || trackValue.size === "" || trackValue.size === null) {
4216
- return null;
4229
+ var fromSizeInput = (v) => {
4230
+ if (v.size === "" || Number.isNaN(v.size)) {
4231
+ return EMPTY;
4232
+ }
4233
+ if (v.unit === FR) {
4234
+ const n = Number(v.size);
4235
+ return Number.isFinite(n) && n >= 1 ? { kind: "fr", count: Math.trunc(n) } : EMPTY;
4236
+ }
4237
+ return { kind: "custom", raw: String(v.size) };
4238
+ };
4239
+ var toCss = (v) => {
4240
+ switch (v.kind) {
4241
+ case "empty":
4242
+ return null;
4243
+ case "fr":
4244
+ return `repeat(${v.count}, 1fr)`;
4245
+ case "custom":
4246
+ return v.raw;
4247
+ }
4248
+ };
4249
+ var toSizeInput = (v, fallbackUnit = FR) => {
4250
+ switch (v.kind) {
4251
+ case "empty":
4252
+ return { size: "", unit: fallbackUnit };
4253
+ case "fr":
4254
+ return { size: v.count, unit: FR };
4255
+ case "custom":
4256
+ return { size: v.raw, unit: CUSTOM2 };
4217
4257
  }
4218
- if (trackValue.unit === FR) {
4219
- return `repeat(${trackValue.size}, 1fr)`;
4258
+ };
4259
+ var toPlaceholder = (v) => {
4260
+ switch (v.kind) {
4261
+ case "empty":
4262
+ return void 0;
4263
+ case "fr":
4264
+ return String(v.count);
4265
+ case "custom":
4266
+ return v.raw;
4220
4267
  }
4221
- return String(trackValue.size);
4222
4268
  };
4223
- var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React51.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React51.createElement(GridTrackFieldContent, { cssProp, label }));
4269
+ var unitOf = (v, fallback = FR) => {
4270
+ if (v.kind === "fr") {
4271
+ return FR;
4272
+ }
4273
+ if (v.kind === "custom") {
4274
+ return CUSTOM2;
4275
+ }
4276
+ return fallback;
4277
+ };
4278
+ var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React51.createElement(UiProviders, null, /* @__PURE__ */ React51.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React51.createElement(GridTrackFieldContent, { cssProp, label })));
4224
4279
  var GridTrackFieldContent = ({ cssProp, label }) => {
4225
4280
  const { value, setValue } = useStylesField(cssProp, {
4226
4281
  history: { propDisplayName: label }
4227
4282
  });
4283
+ const { placeholder: inheritedPlaceholder } = useBoundProp4();
4228
4284
  const anchorRef = useRef8(null);
4229
- const trackValue = cssToTrackValue(value?.value ?? null);
4230
- const handleChange = (newValue) => {
4231
- const css = trackValueToCss(newValue);
4232
- setValue(css ? { $$type: "string", value: css } : null);
4285
+ const local = parseCss(value?.value ?? null);
4286
+ const inherited = parseCss(stringPropTypeUtil3.extract(inheritedPlaceholder));
4287
+ const displayValue = local.kind !== "empty" ? toSizeInput(local) : toSizeInput(EMPTY, unitOf(inherited));
4288
+ const placeholder = toPlaceholder(inherited);
4289
+ const handleChange = (raw) => {
4290
+ const next = fromSizeInput(raw);
4291
+ if (next.kind === "empty" && local.kind !== "empty" && raw.unit !== unitOf(local)) {
4292
+ return;
4293
+ }
4294
+ const css = toCss(next);
4295
+ setValue(css === null ? null : { $$type: "string", value: css });
4233
4296
  };
4234
4297
  return /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React51.createElement("div", { ref: anchorRef }, /* @__PURE__ */ React51.createElement(
4235
4298
  SizeComponent,
4236
4299
  {
4237
4300
  units: UNITS,
4238
- value: trackValue ?? { size: NaN, unit: FR },
4301
+ value: displayValue,
4302
+ placeholder,
4239
4303
  defaultUnit: FR,
4240
4304
  setValue: handleChange,
4241
4305
  onBlur: () => {
@@ -5509,7 +5573,7 @@ import * as React89 from "react";
5509
5573
  import {
5510
5574
  ControlFormLabel as ControlFormLabel3,
5511
5575
  Repeater,
5512
- useBoundProp as useBoundProp5
5576
+ useBoundProp as useBoundProp6
5513
5577
  } from "@elementor/editor-controls";
5514
5578
  import {
5515
5579
  updateElementEditorSettings,
@@ -5535,7 +5599,7 @@ var getElementByType = (elementId, type) => {
5535
5599
  };
5536
5600
 
5537
5601
  // src/controls-registry/element-controls/tabs-control/use-actions.ts
5538
- import { useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
5602
+ import { useBoundProp as useBoundProp5 } from "@elementor/editor-controls";
5539
5603
  import {
5540
5604
  createElements,
5541
5605
  duplicateElements,
@@ -5548,7 +5612,7 @@ import { __ as __63 } from "@wordpress/i18n";
5548
5612
  var TAB_ELEMENT_TYPE = "e-tab";
5549
5613
  var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
5550
5614
  var useActions = () => {
5551
- const { value, setValue: setDefaultActiveTab } = useBoundProp4(numberPropTypeUtil3);
5615
+ const { value, setValue: setDefaultActiveTab } = useBoundProp5(numberPropTypeUtil3);
5552
5616
  const defaultActiveTab = value ?? 0;
5553
5617
  const duplicateItem = ({
5554
5618
  items: items3,
@@ -5809,7 +5873,7 @@ var ItemLabel = ({ value, index }) => {
5809
5873
  return /* @__PURE__ */ React89.createElement(Stack14, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React89.createElement("span", null, elementTitle), /* @__PURE__ */ React89.createElement(ItemDefaultTab, { index }));
5810
5874
  };
5811
5875
  var ItemDefaultTab = ({ index }) => {
5812
- const { value: defaultItem } = useBoundProp5(numberPropTypeUtil4);
5876
+ const { value: defaultItem } = useBoundProp6(numberPropTypeUtil4);
5813
5877
  const isDefault = defaultItem === index;
5814
5878
  if (!isDefault) {
5815
5879
  return null;
@@ -5823,7 +5887,7 @@ var ItemContent = ({ value, index }) => {
5823
5887
  return /* @__PURE__ */ React89.createElement(Stack14, { p: 2, gap: 1.5 }, /* @__PURE__ */ React89.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React89.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __64("Tabs", "elementor") }, /* @__PURE__ */ React89.createElement(DefaultTabControl, { tabIndex: index })));
5824
5888
  };
5825
5889
  var DefaultTabControl = ({ tabIndex }) => {
5826
- const { value, setValue } = useBoundProp5(numberPropTypeUtil4);
5890
+ const { value, setValue } = useBoundProp6(numberPropTypeUtil4);
5827
5891
  const isDefault = value === tabIndex;
5828
5892
  return /* @__PURE__ */ React89.createElement(Stack14, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React89.createElement(ControlFormLabel3, null, __64("Set as default tab", "elementor")), /* @__PURE__ */ React89.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React89.createElement(
5829
5893
  Switch,
@@ -5906,7 +5970,7 @@ import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
5906
5970
 
5907
5971
  // src/dynamics/components/background-control-dynamic-tag.tsx
5908
5972
  import * as React90 from "react";
5909
- import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
5973
+ import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
5910
5974
  import {
5911
5975
  backgroundImageOverlayPropTypeUtil
5912
5976
  } from "@elementor/editor-props";
@@ -5917,7 +5981,7 @@ import { useMemo as useMemo13 } from "react";
5917
5981
 
5918
5982
  // src/dynamics/hooks/use-prop-dynamic-tags.ts
5919
5983
  import { useMemo as useMemo12 } from "react";
5920
- import { useBoundProp as useBoundProp6 } from "@elementor/editor-controls";
5984
+ import { useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
5921
5985
 
5922
5986
  // src/dynamics/sync/get-atomic-dynamic-tags.ts
5923
5987
  import { getElementorConfig } from "@elementor/editor-v1-adapters";
@@ -6004,7 +6068,7 @@ var useAllPropDynamicTags = () => {
6004
6068
  };
6005
6069
  var usePropDynamicTagsInternal = (filterByLicense2) => {
6006
6070
  let categories = [];
6007
- const { propType } = useBoundProp6();
6071
+ const { propType } = useBoundProp7();
6008
6072
  if (propType) {
6009
6073
  const propDynamicType = getDynamicPropType(propType);
6010
6074
  categories = propDynamicType?.settings.categories || [];
@@ -6050,11 +6114,11 @@ var useDynamicTag = (tagName) => {
6050
6114
  // src/dynamics/components/background-control-dynamic-tag.tsx
6051
6115
  var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React90.createElement(DatabaseIcon, { fontSize: "tiny" });
6052
6116
  var BackgroundControlDynamicTagLabel = ({ value }) => {
6053
- const context = useBoundProp7(backgroundImageOverlayPropTypeUtil);
6117
+ const context = useBoundProp8(backgroundImageOverlayPropTypeUtil);
6054
6118
  return /* @__PURE__ */ React90.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React90.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React90.createElement(Wrapper2, { rawValue: value.value })));
6055
6119
  };
6056
6120
  var Wrapper2 = ({ rawValue }) => {
6057
- const { propType } = useBoundProp7();
6121
+ const { propType } = useBoundProp8();
6058
6122
  const imageOverlayPropType = propType.prop_types["background-image-overlay"];
6059
6123
  return /* @__PURE__ */ React90.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React90.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React90.createElement(Content, { rawValue: rawValue.image })));
6060
6124
  };
@@ -6070,7 +6134,7 @@ import {
6070
6134
  ControlFormLabel as ControlFormLabel4,
6071
6135
  PropKeyProvider as PropKeyProvider6,
6072
6136
  PropProvider as PropProvider6,
6073
- useBoundProp as useBoundProp10
6137
+ useBoundProp as useBoundProp11
6074
6138
  } from "@elementor/editor-controls";
6075
6139
  import { PopoverHeader as PopoverHeader2, SectionPopoverBody as SectionPopoverBody2 } from "@elementor/editor-ui";
6076
6140
  import { DatabaseIcon as DatabaseIcon3, SettingsIcon, XIcon } from "@elementor/icons";
@@ -6102,7 +6166,7 @@ var usePersistDynamicValue = (propKey) => {
6102
6166
 
6103
6167
  // src/dynamics/dynamic-control.tsx
6104
6168
  import * as React92 from "react";
6105
- import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
6169
+ import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
6106
6170
 
6107
6171
  // src/dynamics/components/dynamic-conditional-control.tsx
6108
6172
  import * as React91 from "react";
@@ -6155,7 +6219,7 @@ var DynamicConditionalControl = ({
6155
6219
 
6156
6220
  // src/dynamics/dynamic-control.tsx
6157
6221
  var DynamicControl = ({ bind, children }) => {
6158
- const { value, setValue } = useBoundProp8(dynamicPropTypeUtil);
6222
+ const { value, setValue } = useBoundProp9(dynamicPropTypeUtil);
6159
6223
  const { name = "", group = "", settings } = value ?? {};
6160
6224
  const dynamicTag = useDynamicTag(name);
6161
6225
  if (!dynamicTag) {
@@ -6189,7 +6253,7 @@ var DynamicControl = ({ bind, children }) => {
6189
6253
  // src/dynamics/components/dynamic-selection.tsx
6190
6254
  import * as React93 from "react";
6191
6255
  import { Fragment as Fragment14, useEffect as useEffect9, useState as useState10 } from "react";
6192
- import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
6256
+ import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
6193
6257
  import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
6194
6258
  import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
6195
6259
  import { Divider as Divider7, Link as Link2, Stack as Stack15, Typography as Typography5, useTheme as useTheme3 } from "@elementor/ui";
@@ -6202,8 +6266,8 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
6202
6266
  const [searchValue, setSearchValue] = useState10("");
6203
6267
  const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
6204
6268
  const theme = useTheme3();
6205
- const { value: anyValue } = useBoundProp9();
6206
- const { bind, value: dynamicValue, setValue } = useBoundProp9(dynamicPropTypeUtil);
6269
+ const { value: anyValue } = useBoundProp10();
6270
+ const { bind, value: dynamicValue, setValue } = useBoundProp10(dynamicPropTypeUtil);
6207
6271
  const [, updatePropValueHistory] = usePersistDynamicValue(bind);
6208
6272
  const isCurrentValueDynamic = !!dynamicValue;
6209
6273
  const options13 = useFilteredOptions(searchValue);
@@ -6355,8 +6419,8 @@ var useFilteredOptions = (searchValue) => {
6355
6419
  var SIZE3 = "tiny";
6356
6420
  var tagsWithoutTabs = ["popup"];
6357
6421
  var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
6358
- const { setValue: setAnyValue, propType } = useBoundProp10();
6359
- const { bind, value } = useBoundProp10(dynamicPropTypeUtil);
6422
+ const { setValue: setAnyValue, propType } = useBoundProp11();
6423
+ const { bind, value } = useBoundProp11(dynamicPropTypeUtil);
6360
6424
  const { expired: readonly } = useLicenseConfig();
6361
6425
  const originalPropType = createTopLevelObjectType({
6362
6426
  schema: {
@@ -6575,11 +6639,11 @@ function getDynamicValue(name, settings) {
6575
6639
 
6576
6640
  // src/dynamics/hooks/use-prop-dynamic-action.tsx
6577
6641
  import * as React95 from "react";
6578
- import { useBoundProp as useBoundProp11 } from "@elementor/editor-controls";
6642
+ import { useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
6579
6643
  import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
6580
6644
  import { __ as __67 } from "@wordpress/i18n";
6581
6645
  var usePropDynamicAction = () => {
6582
- const { propType } = useBoundProp11();
6646
+ const { propType } = useBoundProp12();
6583
6647
  const visible = !!propType && supportsDynamic(propType);
6584
6648
  return {
6585
6649
  visible,
@@ -6616,7 +6680,7 @@ var init2 = () => {
6616
6680
  };
6617
6681
 
6618
6682
  // src/reset-style-props.tsx
6619
- import { useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
6683
+ import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
6620
6684
  import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
6621
6685
  import { BrushBigIcon } from "@elementor/icons";
6622
6686
  import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
@@ -6676,7 +6740,7 @@ function initResetStyleProps() {
6676
6740
  }
6677
6741
  function useResetStyleValueProps() {
6678
6742
  const isStyle = useIsStyle();
6679
- const { value, resetValue, propType } = useBoundProp12();
6743
+ const { value, resetValue, propType } = useBoundProp13();
6680
6744
  const hasValue = value !== null && value !== void 0;
6681
6745
  const hasInitial = propType.initial_value !== void 0 && propType.initial_value !== null;
6682
6746
  const isRequired = !!propType.settings?.required;
@@ -6704,7 +6768,7 @@ function useResetStyleValueProps() {
6704
6768
 
6705
6769
  // src/styles-inheritance/components/styles-inheritance-indicator.tsx
6706
6770
  import * as React101 from "react";
6707
- import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
6771
+ import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
6708
6772
  import { isEmpty as isEmpty2 } from "@elementor/editor-props";
6709
6773
  import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
6710
6774
  import { __ as __72 } from "@wordpress/i18n";
@@ -7070,7 +7134,7 @@ function TooltipOrInfotip({
7070
7134
  var StylesInheritanceIndicator = ({
7071
7135
  customContext
7072
7136
  }) => {
7073
- const context = useBoundProp13();
7137
+ const context = useBoundProp14();
7074
7138
  const { path, propType } = customContext || context;
7075
7139
  const inheritanceChain = useStylesInheritanceChain(path);
7076
7140
  if (!path || !inheritanceChain.length) {