@elementor/editor-editing-panel 1.35.0 → 1.36.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/dist/index.mjs CHANGED
@@ -7,6 +7,7 @@ var { registerControlReplacement, getControlReplacements } = createControlReplac
7
7
 
8
8
  // src/components/css-classes/css-class-selector.tsx
9
9
  import * as React7 from "react";
10
+ import { useRef, useState as useState4 } from "react";
10
11
  import { getElementSetting, updateElementSettings as updateElementSettings2, useElementSetting as useElementSetting2 } from "@elementor/editor-elements";
11
12
  import { classesPropTypeUtil } from "@elementor/editor-props";
12
13
  import {
@@ -16,6 +17,7 @@ import {
16
17
  useProviders,
17
18
  validateStyleLabel as validateStyleLabel2
18
19
  } from "@elementor/editor-styles-repository";
20
+ import { WarningInfotip } from "@elementor/editor-ui";
19
21
  import { MapPinIcon } from "@elementor/icons";
20
22
  import { createLocation } from "@elementor/locations";
21
23
  import { Chip as Chip3, FormLabel, Stack as Stack3 } from "@elementor/ui";
@@ -186,7 +188,20 @@ function useInputState(validate) {
186
188
  setError(errorMessage);
187
189
  }
188
190
  };
189
- return { inputValue, setInputValue, error, setError, handleInputChange };
191
+ const handleInputBlur = () => {
192
+ setInputValue("");
193
+ setError(null);
194
+ };
195
+ return {
196
+ inputValue,
197
+ setInputValue,
198
+ error,
199
+ setError,
200
+ inputHandlers: {
201
+ onChange: handleInputChange,
202
+ onBlur: handleInputBlur
203
+ }
204
+ };
190
205
  }
191
206
  function useOpenState(initialOpen = false) {
192
207
  const [open, setOpen] = useState(initialOpen);
@@ -253,7 +268,8 @@ function useFilterOptions(parameters) {
253
268
  }
254
269
 
255
270
  // src/components/creatable-autocomplete/creatable-autocomplete.tsx
256
- function CreatableAutocomplete({
271
+ var CreatableAutocomplete = React4.forwardRef(CreatableAutocompleteInner);
272
+ function CreatableAutocompleteInner({
257
273
  selected,
258
274
  options: options12,
259
275
  entityName,
@@ -262,8 +278,8 @@ function CreatableAutocomplete({
262
278
  onCreate,
263
279
  validate,
264
280
  ...props
265
- }) {
266
- const { inputValue, setInputValue, error, setError, handleInputChange } = useInputState(validate);
281
+ }, ref) {
282
+ const { inputValue, setInputValue, error, setError, inputHandlers } = useInputState(validate);
267
283
  const { open, openDropdown, closeDropdown } = useOpenState(props.open);
268
284
  const { createOption, loading } = useCreateOption({ onCreate, validate, setInputValue, setError, closeDropdown });
269
285
  const [internalOptions, internalSelected] = useMemo(
@@ -293,6 +309,7 @@ function CreatableAutocomplete({
293
309
  ));
294
310
  },
295
311
  ...props,
312
+ ref,
296
313
  freeSolo: true,
297
314
  multiple: true,
298
315
  clearOnBlur: true,
@@ -306,7 +323,7 @@ function CreatableAutocomplete({
306
323
  disableCloseOnSelect: true,
307
324
  value: internalSelected,
308
325
  options: internalOptions,
309
- ListboxComponent: error ? React4.forwardRef((_, ref) => /* @__PURE__ */ React4.createElement(ErrorText, { ref, error })) : void 0,
326
+ ListboxComponent: error ? React4.forwardRef((_, errorTextRef) => /* @__PURE__ */ React4.createElement(ErrorText, { ref: errorTextRef, error })) : void 0,
310
327
  renderGroup: (params) => /* @__PURE__ */ React4.createElement(Group, { ...params }),
311
328
  inputValue,
312
329
  renderInput: (params) => {
@@ -316,7 +333,7 @@ function CreatableAutocomplete({
316
333
  ...params,
317
334
  placeholder,
318
335
  error: Boolean(error),
319
- onChange: handleInputChange,
336
+ ...inputHandlers,
320
337
  sx: (theme) => ({
321
338
  ".MuiAutocomplete-inputRoot.MuiInputBase-adornedStart": {
322
339
  paddingLeft: theme.spacing(0.25),
@@ -364,7 +381,7 @@ var ErrorText = React4.forwardRef(({ error = "error" }, ref) => {
364
381
  padding: theme.spacing(2)
365
382
  })
366
383
  },
367
- /* @__PURE__ */ React4.createElement(Typography, { variant: "caption", sx: { color: "error.main" } }, error)
384
+ /* @__PURE__ */ React4.createElement(Typography, { variant: "caption", sx: { color: "error.main", display: "inline-block" } }, error)
368
385
  );
369
386
  });
370
387
  var StyledGroup = styled("li")`
@@ -613,7 +630,8 @@ function CssClassItem({
613
630
  icon,
614
631
  chipProps,
615
632
  onClickActive,
616
- renameLabel
633
+ renameLabel,
634
+ setError
617
635
  }) {
618
636
  const { meta, setMetaState } = useStyle();
619
637
  const popupState = usePopupState({ variant: "popover" });
@@ -628,7 +646,8 @@ function CssClassItem({
628
646
  } = useEditable({
629
647
  value: label,
630
648
  onSubmit: renameLabel,
631
- validation: validateLabel
649
+ validation: validateLabel,
650
+ onError: setError
632
651
  });
633
652
  const color = error ? "error" : colorProp;
634
653
  const providerActions = provider ? stylesRepository3.getProviderByKey(provider)?.actions : null;
@@ -649,7 +668,7 @@ function CssClassItem({
649
668
  Chip2,
650
669
  {
651
670
  size: CHIP_SIZE,
652
- label: isEditing ? /* @__PURE__ */ React6.createElement(EditableField, { ref, error, ...getEditableProps() }) : /* @__PURE__ */ React6.createElement(EllipsisWithTooltip, { maxWidth: "10ch", title: label, as: "div" }),
671
+ label: isEditing ? /* @__PURE__ */ React6.createElement(EditableField, { ref, ...getEditableProps() }) : /* @__PURE__ */ React6.createElement(EllipsisWithTooltip, { maxWidth: "10ch", title: label, as: "div" }),
653
672
  variant: isActive && !meta.state && !isEditing ? "filled" : "standard",
654
673
  shape: "rounded",
655
674
  icon,
@@ -730,51 +749,65 @@ function CssClassSelector() {
730
749
  const options12 = useOptions();
731
750
  const { value: appliedIds, setValue: setAppliedIds, pushValue: pushAppliedId } = useAppliedClassesIds();
732
751
  const { id: activeId, setId: setActiveId } = useStyle();
752
+ const autocompleteRef = useRef(null);
753
+ const [renameError, setRenameError] = useState4(null);
733
754
  const handleApply = useHandleApply(appliedIds, setAppliedIds);
734
755
  const { create, validate, entityName } = useCreateAction({ pushAppliedId, setActiveId });
735
756
  const applied = useAppliedOptions(options12, appliedIds);
736
757
  const active = applied.find((option) => option.value === activeId) ?? EMPTY_OPTION;
737
758
  const showPlaceholder = applied.every(({ fixed }) => fixed);
738
759
  return /* @__PURE__ */ React7.createElement(Stack3, { p: 2 }, /* @__PURE__ */ React7.createElement(Stack3, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React7.createElement(FormLabel, { htmlFor: ID, size: "small" }, __3("Classes", "elementor")), /* @__PURE__ */ React7.createElement(Stack3, { direction: "row", gap: 1 }, /* @__PURE__ */ React7.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React7.createElement(
739
- CreatableAutocomplete,
760
+ WarningInfotip,
740
761
  {
741
- id: ID,
742
- size: "tiny",
743
- placeholder: showPlaceholder ? __3("Type class name", "elementor") : void 0,
744
- options: options12,
745
- selected: applied,
746
- entityName,
747
- onSelect: handleApply,
748
- onCreate: create ?? void 0,
749
- validate: validate ?? void 0,
750
- limitTags: TAGS_LIMIT,
751
- getLimitTagsText: (more) => /* @__PURE__ */ React7.createElement(Chip3, { size: "tiny", variant: "standard", label: `+${more}`, clickable: true }),
752
- renderTags: (values, getTagProps) => values.map((value, index) => {
753
- const chipProps = getTagProps({ index });
754
- const isActive = value.value === active?.value;
755
- const renameLabel = (newLabel) => {
756
- if (!value.value) {
757
- throw new Error(`Cannot rename a class without style id`);
758
- }
759
- return updateClassByProvider(value.provider, { label: newLabel, id: value.value });
760
- };
761
- return /* @__PURE__ */ React7.createElement(
762
- CssClassItem,
763
- {
764
- key: chipProps.key,
765
- label: value.label,
766
- provider: value.provider,
767
- id: value.value,
768
- isActive,
769
- color: isActive && value.color ? value.color : "default",
770
- icon: value.icon,
771
- chipProps,
772
- onClickActive: () => setActiveId(value.value),
773
- renameLabel
774
- }
775
- );
776
- })
777
- }
762
+ open: Boolean(renameError),
763
+ text: renameError ?? "",
764
+ placement: "bottom",
765
+ width: autocompleteRef.current?.getBoundingClientRect().width,
766
+ offset: [0, -15]
767
+ },
768
+ /* @__PURE__ */ React7.createElement(
769
+ CreatableAutocomplete,
770
+ {
771
+ id: ID,
772
+ ref: autocompleteRef,
773
+ size: "tiny",
774
+ placeholder: showPlaceholder ? __3("Type class name", "elementor") : void 0,
775
+ options: options12,
776
+ selected: applied,
777
+ entityName,
778
+ onSelect: handleApply,
779
+ onCreate: create ?? void 0,
780
+ validate: validate ?? void 0,
781
+ limitTags: TAGS_LIMIT,
782
+ getLimitTagsText: (more) => /* @__PURE__ */ React7.createElement(Chip3, { size: "tiny", variant: "standard", label: `+${more}`, clickable: true }),
783
+ renderTags: (values, getTagProps) => values.map((value, index) => {
784
+ const chipProps = getTagProps({ index });
785
+ const isActive = value.value === active?.value;
786
+ const renameLabel = (newLabel) => {
787
+ if (!value.value) {
788
+ throw new Error(`Cannot rename a class without style id`);
789
+ }
790
+ return updateClassByProvider(value.provider, { label: newLabel, id: value.value });
791
+ };
792
+ return /* @__PURE__ */ React7.createElement(
793
+ CssClassItem,
794
+ {
795
+ key: chipProps.key,
796
+ label: value.label,
797
+ provider: value.provider,
798
+ id: value.value,
799
+ isActive,
800
+ color: isActive && value.color ? value.color : "default",
801
+ icon: value.icon,
802
+ chipProps,
803
+ onClickActive: () => setActiveId(value.value),
804
+ renameLabel,
805
+ setError: setRenameError
806
+ }
807
+ );
808
+ })
809
+ }
810
+ )
778
811
  ));
779
812
  }
780
813
  var updateClassByProvider = (provider, data) => {
@@ -967,7 +1000,7 @@ import { __ as __45 } from "@wordpress/i18n";
967
1000
 
968
1001
  // src/contexts/scroll-context.tsx
969
1002
  import * as React10 from "react";
970
- import { createContext as createContext4, useContext as useContext4, useEffect, useRef, useState as useState4 } from "react";
1003
+ import { createContext as createContext4, useContext as useContext4, useEffect, useRef as useRef2, useState as useState5 } from "react";
971
1004
  import { styled as styled3 } from "@elementor/ui";
972
1005
  var ScrollContext = createContext4(void 0);
973
1006
  var ScrollPanel = styled3("div")`
@@ -976,9 +1009,9 @@ var ScrollPanel = styled3("div")`
976
1009
  `;
977
1010
  var DEFAULT_SCROLL_DIRECTION = "up";
978
1011
  function ScrollProvider({ children }) {
979
- const [direction, setDirection] = useState4(DEFAULT_SCROLL_DIRECTION);
980
- const ref = useRef(null);
981
- const scrollPos = useRef(0);
1012
+ const [direction, setDirection] = useState5(DEFAULT_SCROLL_DIRECTION);
1013
+ const ref = useRef2(null);
1014
+ const scrollPos = useRef2(0);
982
1015
  useEffect(() => {
983
1016
  const scrollElement = ref.current;
984
1017
  if (!scrollElement) {
@@ -1005,13 +1038,13 @@ function useScrollDirection() {
1005
1038
  }
1006
1039
 
1007
1040
  // src/hooks/use-state-by-element.ts
1008
- import { useState as useState5 } from "react";
1041
+ import { useState as useState6 } from "react";
1009
1042
  import { getSessionStorageItem, setSessionStorageItem } from "@elementor/session";
1010
1043
  var useStateByElement = (key, initialValue) => {
1011
1044
  const { element } = useElement();
1012
1045
  const lookup = `elementor/editor-state/${element.id}/${key}`;
1013
1046
  const storedValue = getSessionStorageItem(lookup);
1014
- const [value, setValue] = useState5(storedValue ?? initialValue);
1047
+ const [value, setValue] = useState6(storedValue ?? initialValue);
1015
1048
  const doUpdate = (newValue) => {
1016
1049
  setSessionStorageItem(lookup, newValue);
1017
1050
  setValue(newValue);
@@ -1195,7 +1228,7 @@ var Control2 = ({ control }) => {
1195
1228
 
1196
1229
  // src/components/style-tab.tsx
1197
1230
  import * as React68 from "react";
1198
- import { useState as useState12 } from "react";
1231
+ import { useState as useState13 } from "react";
1199
1232
  import { CLASSES_PROP_KEY } from "@elementor/editor-props";
1200
1233
  import { useActiveBreakpoint } from "@elementor/editor-responsive";
1201
1234
  import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
@@ -1418,10 +1451,10 @@ var useBaseStyles = () => {
1418
1451
  };
1419
1452
 
1420
1453
  // src/hooks/use-active-style-def-id.ts
1421
- import { useState as useState6 } from "react";
1454
+ import { useState as useState7 } from "react";
1422
1455
  import { getElementStyles, useElementSetting as useElementSetting5 } from "@elementor/editor-elements";
1423
1456
  function useActiveStyleDefId(classProp) {
1424
- const [activeStyledDefId, setActiveStyledDefId] = useState6(null);
1457
+ const [activeStyledDefId, setActiveStyledDefId] = useState7(null);
1425
1458
  const appliedClassesIds = useAppliedClassesIds2(classProp)?.value || [];
1426
1459
  const fallback = useFirstAppliedClass(appliedClassesIds);
1427
1460
  const activeAndAppliedClassId = useActiveAndAppliedClassId(activeStyledDefId, appliedClassesIds);
@@ -1592,32 +1625,13 @@ function useStylesField(propName) {
1592
1625
 
1593
1626
  // src/styles-inheritance/styles-inheritance-indicator.tsx
1594
1627
  import * as React19 from "react";
1595
- import { useState as useState8 } from "react";
1628
+ import { useState as useState9 } from "react";
1596
1629
  import { useBoundProp } from "@elementor/editor-controls";
1597
1630
  import { ELEMENTS_BASE_STYLES_PROVIDER_KEY, isElementsStylesProvider as isElementsStylesProvider3 } from "@elementor/editor-styles-repository";
1631
+ import { isExperimentActive } from "@elementor/editor-v1-adapters";
1598
1632
  import { IconButton as IconButton2, Infotip } from "@elementor/ui";
1599
1633
  import { __ as __5 } from "@wordpress/i18n";
1600
1634
 
1601
- // src/sync/get-elementor-globals.ts
1602
- var getElementorConfig = () => {
1603
- const extendedWindow = window;
1604
- return extendedWindow.elementor?.config ?? {};
1605
- };
1606
- var getElementorFrontendConfig = () => {
1607
- const extendedWindow = window;
1608
- return extendedWindow.elementorFrontend?.config ?? {};
1609
- };
1610
- var getElementorCommonConfig = () => {
1611
- const extendedWindow = window;
1612
- return extendedWindow.elementorCommon?.config ?? {};
1613
- };
1614
-
1615
- // src/sync/is-experiment-active.ts
1616
- var isExperimentActive = (experiment) => {
1617
- const allFeatures = getElementorCommonConfig()?.experimentalFeatures ?? {};
1618
- return !!allFeatures?.[experiment];
1619
- };
1620
-
1621
1635
  // src/styles-inheritance/styles-inheritance-infotip.tsx
1622
1636
  import * as React18 from "react";
1623
1637
  import { useMemo as useMemo3 } from "react";
@@ -1626,10 +1640,10 @@ import { getStylesSchema } from "@elementor/editor-styles";
1626
1640
  import { Card, CardContent, List as List2, ListItem, ListItemText as ListItemText2 } from "@elementor/ui";
1627
1641
 
1628
1642
  // src/hooks/use-normalized-inheritance-chain-items.tsx
1629
- import { useEffect as useEffect3, useState as useState7 } from "react";
1643
+ import { useEffect as useEffect3, useState as useState8 } from "react";
1630
1644
  var MAXIMUM_ITEMS = 2;
1631
1645
  var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
1632
- const [items3, setItems] = useState7([]);
1646
+ const [items3, setItems] = useState8([]);
1633
1647
  useEffect3(() => {
1634
1648
  (async () => {
1635
1649
  const normalizedItems = await Promise.all(
@@ -1685,7 +1699,7 @@ var StyleIndicatorInfotip = ({ inheritanceChain, bind }) => {
1685
1699
 
1686
1700
  // src/styles-inheritance/styles-inheritance-indicator.tsx
1687
1701
  var StylesInheritanceIndicator = () => {
1688
- const [open, setOpen] = useState8(false);
1702
+ const [open, setOpen] = useState9(false);
1689
1703
  const { value, path } = useBoundProp();
1690
1704
  const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
1691
1705
  const [bind] = path;
@@ -1867,6 +1881,18 @@ import { __ as __8 } from "@wordpress/i18n";
1867
1881
 
1868
1882
  // src/hooks/use-direction.ts
1869
1883
  import { useTheme } from "@elementor/ui";
1884
+
1885
+ // src/sync/get-elementor-globals.ts
1886
+ var getElementorConfig = () => {
1887
+ const extendedWindow = window;
1888
+ return extendedWindow.elementor?.config ?? {};
1889
+ };
1890
+ var getElementorFrontendConfig = () => {
1891
+ const extendedWindow = window;
1892
+ return extendedWindow.elementorFrontend?.config ?? {};
1893
+ };
1894
+
1895
+ // src/hooks/use-direction.ts
1870
1896
  function useDirection() {
1871
1897
  const theme = useTheme();
1872
1898
  const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!getElementorFrontendConfig()?.is_rtl;
@@ -2059,7 +2085,7 @@ import { __ as __11 } from "@wordpress/i18n";
2059
2085
 
2060
2086
  // src/components/style-sections/layout-section/utils/rotated-icon.tsx
2061
2087
  import * as React33 from "react";
2062
- import { useRef as useRef2 } from "react";
2088
+ import { useRef as useRef3 } from "react";
2063
2089
  import { useTheme as useTheme2 } from "@elementor/ui";
2064
2090
  var CLOCKWISE_ANGLES = {
2065
2091
  row: 0,
@@ -2080,7 +2106,7 @@ var RotatedIcon = ({
2080
2106
  offset = 0,
2081
2107
  disableRotationForReversed = false
2082
2108
  }) => {
2083
- const rotate = useRef2(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
2109
+ const rotate = useRef3(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
2084
2110
  rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
2085
2111
  return /* @__PURE__ */ React33.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
2086
2112
  };
@@ -2287,6 +2313,7 @@ var AlignSelfChild = ({ parentStyleDirection }) => {
2287
2313
  // src/components/style-sections/layout-section/display-field.tsx
2288
2314
  import * as React37 from "react";
2289
2315
  import { ToggleControl as ToggleControl4 } from "@elementor/editor-controls";
2316
+ import { isExperimentActive as isExperimentActive2 } from "@elementor/editor-v1-adapters";
2290
2317
  import { Stack as Stack10 } from "@elementor/ui";
2291
2318
  import { __ as __14 } from "@wordpress/i18n";
2292
2319
  var displayFieldItems = [
@@ -2310,7 +2337,7 @@ var displayFieldItems = [
2310
2337
  }
2311
2338
  ];
2312
2339
  var DisplayField = () => {
2313
- const isDisplayNoneFeatureActive = isExperimentActive("e_v_3_30");
2340
+ const isDisplayNoneFeatureActive = isExperimentActive2("e_v_3_30");
2314
2341
  const items3 = [...displayFieldItems];
2315
2342
  if (isDisplayNoneFeatureActive) {
2316
2343
  items3.push({
@@ -2376,7 +2403,7 @@ var FlexDirectionField = () => {
2376
2403
 
2377
2404
  // src/components/style-sections/layout-section/flex-order-field.tsx
2378
2405
  import * as React39 from "react";
2379
- import { useState as useState9 } from "react";
2406
+ import { useState as useState10 } from "react";
2380
2407
  import { ControlToggleButtonGroup, NumberControl } from "@elementor/editor-controls";
2381
2408
  import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
2382
2409
  import { DirectionProvider as DirectionProvider5, Grid as Grid6, ThemeProvider as ThemeProvider5 } from "@elementor/ui";
@@ -2412,7 +2439,7 @@ var items = [
2412
2439
  ];
2413
2440
  var FlexOrderField = () => {
2414
2441
  const { isSiteRtl } = useDirection(), [order, setOrder] = useStylesField("order");
2415
- const [groupControlValue, setGroupControlValue] = useState9(getGroupControlValue(order?.value || null));
2442
+ const [groupControlValue, setGroupControlValue] = useState10(getGroupControlValue(order?.value || null));
2416
2443
  const handleToggleButtonChange = (group) => {
2417
2444
  setGroupControlValue(group);
2418
2445
  if (!group || group === CUSTOM) {
@@ -2450,7 +2477,7 @@ var getGroupControlValue = (order) => {
2450
2477
 
2451
2478
  // src/components/style-sections/layout-section/flex-size-field.tsx
2452
2479
  import * as React40 from "react";
2453
- import { useMemo as useMemo4, useState as useState10 } from "react";
2480
+ import { useMemo as useMemo4, useState as useState11 } from "react";
2454
2481
  import {
2455
2482
  ControlToggleButtonGroup as ControlToggleButtonGroup2,
2456
2483
  NumberControl as NumberControl2,
@@ -2487,7 +2514,7 @@ var FlexSizeField = () => {
2487
2514
  const grow = fields?.["flex-grow"]?.value || null;
2488
2515
  const shrink = fields?.["flex-shrink"]?.value || null;
2489
2516
  const basis = fields?.["flex-basis"]?.value || null;
2490
- const currentGroup = useMemo4(() => getActiveGroup({ grow, shrink, basis }), [grow, shrink, basis]), [activeGroup, setActiveGroup] = useState10(currentGroup);
2517
+ const currentGroup = useMemo4(() => getActiveGroup({ grow, shrink, basis }), [grow, shrink, basis]), [activeGroup, setActiveGroup] = useState11(currentGroup);
2491
2518
  const onChangeGroup = (group = null) => {
2492
2519
  setActiveGroup(group);
2493
2520
  if (!group || group === "custom") {
@@ -2671,6 +2698,7 @@ var shouldDisplayFlexFields = (display, local) => {
2671
2698
 
2672
2699
  // src/components/style-sections/position-section/position-section.tsx
2673
2700
  import * as React49 from "react";
2701
+ import { isExperimentActive as isExperimentActive3 } from "@elementor/editor-v1-adapters";
2674
2702
  import { useSessionStorage } from "@elementor/session";
2675
2703
 
2676
2704
  // src/components/style-sections/position-section/dimensions-field.tsx
@@ -2741,7 +2769,7 @@ var PositionSection = () => {
2741
2769
  "inset-inline-end"
2742
2770
  ]);
2743
2771
  const [dimensionsValuesFromHistory, updateDimensionsHistory, clearDimensionsHistory] = usePersistDimensions();
2744
- const isCssIdFeatureActive = isExperimentActive("e_v_3_30");
2772
+ const isCssIdFeatureActive = isExperimentActive3("e_v_3_30");
2745
2773
  const onPositionChange = (newPosition, previousPosition) => {
2746
2774
  if (newPosition === "static") {
2747
2775
  if (dimensionsValues) {
@@ -2849,11 +2877,11 @@ import * as React67 from "react";
2849
2877
 
2850
2878
  // src/components/collapsible-content.tsx
2851
2879
  import * as React53 from "react";
2852
- import { useState as useState11 } from "react";
2880
+ import { useState as useState12 } from "react";
2853
2881
  import { Button, Collapse as Collapse3, Stack as Stack15 } from "@elementor/ui";
2854
2882
  import { __ as __29 } from "@wordpress/i18n";
2855
2883
  var CollapsibleContent = ({ children, defaultOpen = false }) => {
2856
- const [open, setOpen] = useState11(defaultOpen);
2884
+ const [open, setOpen] = useState12(defaultOpen);
2857
2885
  const handleToggle = () => {
2858
2886
  setOpen((prevOpen) => !prevOpen);
2859
2887
  };
@@ -3200,7 +3228,7 @@ var stickyHeaderStyles = {
3200
3228
  var StyleTab = () => {
3201
3229
  const currentClassesProp = useCurrentClassesProp();
3202
3230
  const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
3203
- const [activeStyleState, setActiveStyleState] = useState12(null);
3231
+ const [activeStyleState, setActiveStyleState] = useState13(null);
3204
3232
  const breakpoint = useActiveBreakpoint();
3205
3233
  return /* @__PURE__ */ React68.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React68.createElement(
3206
3234
  StyleProvider,
@@ -3467,7 +3495,7 @@ var DynamicControl = ({ bind, children }) => {
3467
3495
 
3468
3496
  // src/dynamics/components/dynamic-selection.tsx
3469
3497
  import * as React73 from "react";
3470
- import { Fragment as Fragment9, useState as useState13 } from "react";
3498
+ import { Fragment as Fragment9, useState as useState14 } from "react";
3471
3499
  import { useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
3472
3500
  import { DatabaseIcon, SearchIcon } from "@elementor/icons";
3473
3501
  import {
@@ -3485,7 +3513,7 @@ import {
3485
3513
  import { __ as __47 } from "@wordpress/i18n";
3486
3514
  var SIZE3 = "tiny";
3487
3515
  var DynamicSelection = ({ onSelect }) => {
3488
- const [searchValue, setSearchValue] = useState13("");
3516
+ const [searchValue, setSearchValue] = useState14("");
3489
3517
  const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
3490
3518
  const { value: anyValue } = useBoundProp4();
3491
3519
  const { bind, value: dynamicValue, setValue } = useBoundProp4(dynamicPropTypeUtil);