@elementor/editor-editing-panel 4.5.0-1180 → 4.5.0-1181

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.js CHANGED
@@ -35,6 +35,7 @@ __export(index_exports, {
35
35
  ControlLabel: () => ControlLabel,
36
36
  ControlTypeContainer: () => ControlTypeContainer,
37
37
  CreatableAutocomplete: () => CreatableAutocomplete,
38
+ CustomCssHeaderSlot: () => CustomCssHeaderSlot,
38
39
  CustomCssIndicator: () => CustomCssIndicator,
39
40
  DEFAULT_PSEUDO_STATES: () => DEFAULT_PSEUDO_STATES,
40
41
  EditingPanelTabs: () => EditingPanelTabs,
@@ -70,9 +71,12 @@ __export(index_exports, {
70
71
  init: () => init4,
71
72
  injectIntoClassSelectorActions: () => injectIntoClassSelectorActions,
72
73
  injectIntoCssClassConvert: () => injectIntoCssClassConvert,
74
+ injectIntoCustomCssHeader: () => injectIntoCustomCssHeader,
73
75
  injectIntoGridFields: () => injectIntoGridFields,
74
76
  injectIntoPanelHeaderTop: () => injectIntoPanelHeaderTop,
77
+ injectIntoStyleSectionHeader: () => injectIntoStyleSectionHeader,
75
78
  injectIntoStyleTab: () => injectIntoStyleTab,
79
+ injectIntoStyleTabHeader: () => injectIntoStyleTabHeader,
76
80
  isDynamicPropValue: () => isDynamicPropValue,
77
81
  registerEditingPanelReplacement: () => registerEditingPanelReplacement,
78
82
  registerElementPanelDefaults: () => registerElementPanelDefaults,
@@ -587,7 +591,7 @@ var import_react10 = require("react");
587
591
  var import_editor_styles_repository11 = require("@elementor/editor-styles-repository");
588
592
  var import_editor_ui4 = require("@elementor/editor-ui");
589
593
  var import_icons4 = require("@elementor/icons");
590
- var import_locations2 = require("@elementor/locations");
594
+ var import_locations3 = require("@elementor/locations");
591
595
  var import_ui9 = require("@elementor/ui");
592
596
  var import_i18n8 = require("@wordpress/i18n");
593
597
 
@@ -632,6 +636,14 @@ var trackStyles = (provider, event, data) => {
632
636
  providerInstance?.actions.tracking?.({ event, ...data });
633
637
  };
634
638
 
639
+ // src/components/style-tab-header-location.tsx
640
+ var import_locations2 = require("@elementor/locations");
641
+ var {
642
+ Slot: StyleTabHeaderSlot,
643
+ inject: injectIntoStyleTabHeader,
644
+ useInjections: useStyleTabHeaderInjections
645
+ } = (0, import_locations2.createLocation)();
646
+
635
647
  // src/components/css-classes/css-class-item.tsx
636
648
  var React11 = __toESM(require("react"));
637
649
  var import_react9 = require("react");
@@ -1404,8 +1416,9 @@ var EMPTY_OPTION = {
1404
1416
  icon: /* @__PURE__ */ React13.createElement(import_icons4.MapPinIcon, null),
1405
1417
  provider: null
1406
1418
  };
1407
- var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = (0, import_locations2.createLocation)();
1419
+ var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = (0, import_locations3.createLocation)();
1408
1420
  function CssClassSelector() {
1421
+ const { element } = useElement();
1409
1422
  const options13 = useOptions();
1410
1423
  const { id: activeId, setId: setActiveId } = useStyle();
1411
1424
  const autocompleteRef = (0, import_react10.useRef)(null);
@@ -1423,7 +1436,7 @@ function CssClassSelector() {
1423
1436
  const clearMissingClasses = (0, import_react10.useCallback)(() => {
1424
1437
  unapplyClasses(missingClassesIds);
1425
1438
  }, [missingClassesIds, unapplyClasses]);
1426
- return /* @__PURE__ */ React13.createElement(import_ui9.Stack, { p: 2 }, /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(import_ui9.FormLabel, { htmlFor: ID, size: "small" }, (0, import_i18n8.__)("Classes", "elementor")), /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
1439
+ return /* @__PURE__ */ React13.createElement(import_ui9.Stack, { p: 2 }, /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(import_ui9.FormLabel, { htmlFor: ID, size: "small" }, (0, import_i18n8.__)("Classes", "elementor")), /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(StyleTabHeaderSlot, { elementId: element.id }), /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
1427
1440
  import_editor_ui4.WarningInfotip,
1428
1441
  {
1429
1442
  open: Boolean(renameError),
@@ -1980,7 +1993,7 @@ var import_editor_elements16 = require("@elementor/editor-elements");
1980
1993
  var import_editor_panels = require("@elementor/editor-panels");
1981
1994
  var import_editor_ui9 = require("@elementor/editor-ui");
1982
1995
  var import_icons28 = require("@elementor/icons");
1983
- var import_locations5 = require("@elementor/locations");
1996
+ var import_locations7 = require("@elementor/locations");
1984
1997
  var import_menus = require("@elementor/menus");
1985
1998
  var import_session9 = require("@elementor/session");
1986
1999
  var import_ui46 = require("@elementor/ui");
@@ -2019,7 +2032,7 @@ var EditingPanelStickyPromotion = () => {
2019
2032
  };
2020
2033
 
2021
2034
  // src/components/editing-panel-tabs.tsx
2022
- var import_react38 = require("react");
2035
+ var import_react39 = require("react");
2023
2036
  var React92 = __toESM(require("react"));
2024
2037
  var import_editor_current_user = require("@elementor/editor-current-user");
2025
2038
  var import_editor_elements15 = require("@elementor/editor-elements");
@@ -2417,7 +2430,15 @@ var React21 = __toESM(require("react"));
2417
2430
  var import_react18 = require("react");
2418
2431
  var import_editor_ui5 = require("@elementor/editor-ui");
2419
2432
  var import_ui14 = require("@elementor/ui");
2420
- function Section({ title, children, defaultExpanded = false, titleEnd, unmountOnExit = true, action }) {
2433
+ function Section({
2434
+ title,
2435
+ children,
2436
+ defaultExpanded = false,
2437
+ titleEnd,
2438
+ titleActions,
2439
+ unmountOnExit = true,
2440
+ action
2441
+ }) {
2421
2442
  const [isOpen, setIsOpen] = useStateByElement(title, !!defaultExpanded);
2422
2443
  const ref = (0, import_react18.useRef)(null);
2423
2444
  const isDisabled = !!action;
@@ -2447,7 +2468,15 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
2447
2468
  secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" },
2448
2469
  sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
2449
2470
  }
2450
- ), (0, import_editor_ui5.getCollapsibleValue)(titleEnd, isOpen)),
2471
+ ), (0, import_editor_ui5.getCollapsibleValue)(titleEnd, isOpen), titleActions && /* @__PURE__ */ React21.createElement(
2472
+ import_ui14.Stack,
2473
+ {
2474
+ direction: "row",
2475
+ alignItems: "center",
2476
+ onClick: (event) => event.stopPropagation()
2477
+ },
2478
+ titleActions
2479
+ )),
2451
2480
  action?.component,
2452
2481
  /* @__PURE__ */ React21.createElement(
2453
2482
  import_editor_ui5.CollapseIcon,
@@ -2510,7 +2539,7 @@ var controlTypes = {
2510
2539
  toggle: { component: import_editor_controls2.ToggleControl, layout: "full", propTypeUtil: import_editor_props6.stringPropTypeUtil },
2511
2540
  "date-time": { component: import_editor_controls2.DateTimeControl, layout: "full", propTypeUtil: import_editor_props6.DateTimePropTypeUtil },
2512
2541
  video: { component: import_editor_controls2.VideoMediaControl, layout: "full", propTypeUtil: import_editor_props6.videoSrcPropTypeUtil },
2513
- "inline-editing": { component: import_editor_controls2.InlineEditingControl, layout: "full", propTypeUtil: import_editor_props6.escapedHtmlPropTypeUtil },
2542
+ "inline-editing": { component: import_editor_controls2.InlineEditingControl, layout: "custom", propTypeUtil: import_editor_props6.escapedHtmlPropTypeUtil },
2514
2543
  email: { component: import_editor_controls2.EmailFormActionControl, layout: "custom", propTypeUtil: import_editor_props6.emailsPropTypeUtil },
2515
2544
  "date-range": {
2516
2545
  component: import_editor_controls2.DateRangeControl,
@@ -2870,10 +2899,10 @@ function isControlHiddenByDependencies(control, propsSchema, settings, elementId
2870
2899
 
2871
2900
  // src/components/style-tab.tsx
2872
2901
  var React91 = __toESM(require("react"));
2873
- var import_react37 = require("react");
2902
+ var import_react38 = require("react");
2874
2903
  var import_editor_props17 = require("@elementor/editor-props");
2875
2904
  var import_editor_responsive4 = require("@elementor/editor-responsive");
2876
- var import_locations4 = require("@elementor/locations");
2905
+ var import_locations6 = require("@elementor/locations");
2877
2906
  var import_session8 = require("@elementor/session");
2878
2907
  var import_ui44 = require("@elementor/ui");
2879
2908
 
@@ -3709,7 +3738,7 @@ var EffectsSection = () => {
3709
3738
  var React62 = __toESM(require("react"));
3710
3739
  var import_editor_controls31 = require("@elementor/editor-controls");
3711
3740
  var import_editor_elements14 = require("@elementor/editor-elements");
3712
- var import_locations3 = require("@elementor/locations");
3741
+ var import_locations4 = require("@elementor/locations");
3713
3742
  var import_i18n39 = require("@wordpress/i18n");
3714
3743
 
3715
3744
  // src/hooks/use-computed-style.ts
@@ -4868,7 +4897,7 @@ var WrapField = () => {
4868
4897
  var DISPLAY_LABEL2 = (0, import_i18n39.__)("Display", "elementor");
4869
4898
  var FLEX_WRAP_LABEL2 = (0, import_i18n39.__)("Flex wrap", "elementor");
4870
4899
  var DEFAULT_PARENT_FLOW_DIRECTION = "row";
4871
- var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = (0, import_locations3.createLocation)();
4900
+ var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = (0, import_locations4.createLocation)();
4872
4901
  var LayoutSection = () => {
4873
4902
  const { value: display } = useStylesField("display", {
4874
4903
  history: { propDisplayName: DISPLAY_LABEL2 }
@@ -5684,8 +5713,25 @@ var STYLE_SECTION_NAMES = STYLE_SECTIONS.map((section) => section.name);
5684
5713
 
5685
5714
  // src/components/style-tab-section.tsx
5686
5715
  var React89 = __toESM(require("react"));
5716
+
5717
+ // src/components/style-section-header-location.tsx
5718
+ var import_react37 = require("react");
5719
+ var import_locations5 = require("@elementor/locations");
5720
+ var { Slot: StyleSectionHeaderSlot, inject: injectStyleSectionHeader } = (0, import_locations5.createLocation)();
5721
+ var injectIntoStyleSectionHeader = ({ id, component, sections, options: options13 }) => {
5722
+ const filteredComponent = (props) => {
5723
+ if (sections && !sections.includes(props.sectionName)) {
5724
+ return null;
5725
+ }
5726
+ return (0, import_react37.createElement)(component, props);
5727
+ };
5728
+ injectStyleSectionHeader({ id, component: filteredComponent, options: options13 });
5729
+ };
5730
+
5731
+ // src/components/style-tab-section.tsx
5687
5732
  var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
5688
5733
  const { component, name, title, action } = section;
5734
+ const { element } = useElement();
5689
5735
  const tabDefaults = useDefaultPanelSettings();
5690
5736
  const SectionComponent = component || (() => /* @__PURE__ */ React89.createElement(React89.Fragment, null));
5691
5737
  const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
@@ -5695,6 +5741,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
5695
5741
  title,
5696
5742
  defaultExpanded: isExpanded,
5697
5743
  titleEnd: getStylesInheritanceIndicators(fields),
5744
+ titleActions: element ? /* @__PURE__ */ React89.createElement(StyleSectionHeaderSlot, { elementId: element.id, sectionName: name }) : void 0,
5698
5745
  unmountOnExit,
5699
5746
  action
5700
5747
  },
@@ -5720,7 +5767,7 @@ var StyleSections = () => {
5720
5767
 
5721
5768
  // src/components/style-tab.tsx
5722
5769
  var TABS_HEADER_HEIGHT = "37px";
5723
- var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = (0, import_locations4.createLocation)();
5770
+ var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = (0, import_locations6.createLocation)();
5724
5771
  var stickyHeaderStyles = {
5725
5772
  position: "sticky",
5726
5773
  zIndex: 1100,
@@ -5731,7 +5778,7 @@ var stickyHeaderStyles = {
5731
5778
  var StyleTab = () => {
5732
5779
  const currentClassesProp = useCurrentClassesProp();
5733
5780
  const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp ?? "");
5734
- const [activeStyleState, setActiveStyleState] = (0, import_react37.useState)(null);
5781
+ const [activeStyleState, setActiveStyleState] = (0, import_react38.useState)(null);
5735
5782
  const breakpoint = (0, import_editor_responsive4.useActiveBreakpoint)();
5736
5783
  if (!currentClassesProp) {
5737
5784
  return null;
@@ -5782,7 +5829,7 @@ var EditingPanelTabs = () => {
5782
5829
  return (
5783
5830
  // When switching between elements, the local states should be reset. We are using key to rerender the tabs.
5784
5831
  // Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
5785
- /* @__PURE__ */ React92.createElement(import_react38.Fragment, { key: element.id }, /* @__PURE__ */ React92.createElement(PanelTabContent, null))
5832
+ /* @__PURE__ */ React92.createElement(import_react39.Fragment, { key: element.id }, /* @__PURE__ */ React92.createElement(PanelTabContent, null))
5786
5833
  );
5787
5834
  };
5788
5835
  var PanelTabContent = () => {
@@ -5851,7 +5898,7 @@ var resolveCurrentTab = ({
5851
5898
  };
5852
5899
 
5853
5900
  // src/components/editing-panel.tsx
5854
- var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = (0, import_locations5.createLocation)();
5901
+ var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = (0, import_locations7.createLocation)();
5855
5902
  var { useMenuItems } = import_menus.controlActionsMenu;
5856
5903
  var EditingPanel = () => {
5857
5904
  const { element, elementType, settings } = (0, import_editor_elements16.useSelectedElementSettings)();
@@ -5901,13 +5948,22 @@ function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
5901
5948
  )));
5902
5949
  }
5903
5950
 
5951
+ // src/components/custom-css-header-location.tsx
5952
+ var import_locations8 = require("@elementor/locations");
5953
+ var {
5954
+ Slot: CustomCssHeaderSlot,
5955
+ inject: injectIntoCustomCssHeader,
5956
+ useInjections: useCustomCssHeaderInjections
5957
+ } = (0, import_locations8.createLocation)();
5958
+
5904
5959
  // src/init.ts
5905
5960
  var import_editor = require("@elementor/editor");
5961
+ var import_editor_controls72 = require("@elementor/editor-controls");
5906
5962
  var import_editor_panels3 = require("@elementor/editor-panels");
5907
5963
  var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
5908
5964
 
5909
5965
  // src/hooks/use-open-editor-panel.ts
5910
- var import_react39 = require("react");
5966
+ var import_react40 = require("react");
5911
5967
  var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
5912
5968
 
5913
5969
  // src/panel.ts
@@ -5931,7 +5987,7 @@ var isAtomicWidgetSelected = () => {
5931
5987
  // src/hooks/use-open-editor-panel.ts
5932
5988
  var useOpenEditorPanel = () => {
5933
5989
  const { open } = usePanelActions();
5934
- (0, import_react39.useEffect)(() => {
5990
+ (0, import_react40.useEffect)(() => {
5935
5991
  return (0, import_editor_v1_adapters9.__privateListenTo)((0, import_editor_v1_adapters9.commandStartEvent)("panel/editor/open"), () => {
5936
5992
  if (isAtomicWidgetSelected()) {
5937
5993
  open();
@@ -5951,12 +6007,12 @@ var import_editor_controls57 = require("@elementor/editor-controls");
5951
6007
 
5952
6008
  // src/components/promotions/custom-css.tsx
5953
6009
  var React95 = __toESM(require("react"));
5954
- var import_react40 = require("react");
6010
+ var import_react41 = require("react");
5955
6011
  var import_editor_controls56 = require("@elementor/editor-controls");
5956
6012
  var import_i18n68 = require("@wordpress/i18n");
5957
6013
  var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
5958
6014
  var CustomCssSection = () => {
5959
- const triggerRef = (0, import_react40.useRef)(null);
6015
+ const triggerRef = (0, import_react41.useRef)(null);
5960
6016
  return /* @__PURE__ */ React95.createElement(
5961
6017
  StyleTabSection,
5962
6018
  {
@@ -6162,7 +6218,7 @@ var useActions = () => {
6162
6218
  };
6163
6219
 
6164
6220
  // src/controls-registry/element-controls/accordion-items-control/use-show-icon-write-through.ts
6165
- var import_react41 = require("react");
6221
+ var import_react42 = require("react");
6166
6222
  var import_editor_elements19 = require("@elementor/editor-elements");
6167
6223
  var import_editor_props19 = require("@elementor/editor-props");
6168
6224
  var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
@@ -6268,8 +6324,8 @@ var cascadeDifferentOpenIconToHeaders = (0, import_editor_v1_adapters10.undoable
6268
6324
  }
6269
6325
  );
6270
6326
  function useDifferentOpenIconWriteThrough(accordionId, differentOpenIcon) {
6271
- const previousRef = (0, import_react41.useRef)(null);
6272
- (0, import_react41.useEffect)(() => {
6327
+ const previousRef = (0, import_react42.useRef)(null);
6328
+ (0, import_react42.useEffect)(() => {
6273
6329
  const previous = previousRef.current;
6274
6330
  previousRef.current = { accordionId, differentOpenIcon };
6275
6331
  if (!previous || previous.accordionId !== accordionId || previous.differentOpenIcon === differentOpenIcon) {
@@ -6279,8 +6335,8 @@ function useDifferentOpenIconWriteThrough(accordionId, differentOpenIcon) {
6279
6335
  }, [accordionId, differentOpenIcon]);
6280
6336
  }
6281
6337
  function useShowIconWriteThrough(accordionId, showIcon) {
6282
- const previousRef = (0, import_react41.useRef)(null);
6283
- (0, import_react41.useEffect)(() => {
6338
+ const previousRef = (0, import_react42.useRef)(null);
6339
+ (0, import_react42.useEffect)(() => {
6284
6340
  const previous = previousRef.current;
6285
6341
  previousRef.current = { accordionId, showIcon };
6286
6342
  if (!previous || previous.accordionId !== accordionId || previous.showIcon === showIcon) {
@@ -6523,7 +6579,7 @@ var addItem = ({
6523
6579
  };
6524
6580
 
6525
6581
  // src/controls-registry/element-controls/list-items-control/use-show-markers-write-through.ts
6526
- var import_react42 = require("react");
6582
+ var import_react43 = require("react");
6527
6583
  var import_editor_elements22 = require("@elementor/editor-elements");
6528
6584
  var import_editor_props22 = require("@elementor/editor-props");
6529
6585
  var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
@@ -6575,8 +6631,8 @@ function getListItemIds(listId) {
6575
6631
  return itemContainers.map((item) => item.id);
6576
6632
  }
6577
6633
  function useShowMarkersWriteThrough(listId, showMarkers) {
6578
- const previousRef = (0, import_react42.useRef)(null);
6579
- (0, import_react42.useEffect)(() => {
6634
+ const previousRef = (0, import_react43.useRef)(null);
6635
+ (0, import_react43.useEffect)(() => {
6580
6636
  const previous = previousRef.current;
6581
6637
  previousRef.current = { listId, showMarkers };
6582
6638
  if (!previous || previous.listId !== listId || previous.showMarkers === showMarkers) {
@@ -6689,7 +6745,7 @@ var ListItemLabelControl = ({ elementId, fallbackLabel }) => {
6689
6745
 
6690
6746
  // src/controls-registry/element-controls/menu-items-control/menu-items-control.tsx
6691
6747
  var React98 = __toESM(require("react"));
6692
- var import_react43 = require("react");
6748
+ var import_react44 = require("react");
6693
6749
  var import_editor_controls60 = require("@elementor/editor-controls");
6694
6750
  var import_editor_elements26 = require("@elementor/editor-elements");
6695
6751
  var import_ui50 = require("@elementor/ui");
@@ -6864,7 +6920,7 @@ var ItemContent3 = ({ value }) => {
6864
6920
  };
6865
6921
  var ItemNameControl2 = ({ elementId }) => {
6866
6922
  const editorSettings = (0, import_editor_elements26.useElementEditorSettings)(elementId);
6867
- const inputId = (0, import_react43.useId)();
6923
+ const inputId = (0, import_react44.useId)();
6868
6924
  return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { gap: 1 }, /* @__PURE__ */ React98.createElement(import_editor_controls60.ControlFormLabel, { htmlFor: inputId }, (0, import_i18n76.__)("Name", "elementor")), /* @__PURE__ */ React98.createElement(
6869
6925
  import_ui50.TextField,
6870
6926
  {
@@ -7261,17 +7317,17 @@ var import_editor_props28 = require("@elementor/editor-props");
7261
7317
  var import_icons30 = require("@elementor/icons");
7262
7318
 
7263
7319
  // src/dynamics/hooks/use-dynamic-tag.ts
7264
- var import_react46 = require("react");
7320
+ var import_react47 = require("react");
7265
7321
 
7266
7322
  // src/dynamics/hooks/use-prop-dynamic-tags.ts
7267
- var import_react45 = require("react");
7323
+ var import_react46 = require("react");
7268
7324
  var import_editor_controls63 = require("@elementor/editor-controls");
7269
7325
 
7270
7326
  // src/dynamics/sync/get-atomic-dynamic-tags.ts
7271
7327
  var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
7272
7328
 
7273
7329
  // src/hooks/use-license-config.ts
7274
- var import_react44 = require("react");
7330
+ var import_react45 = require("react");
7275
7331
  var config = { expired: false };
7276
7332
  var listeners = /* @__PURE__ */ new Set();
7277
7333
  function setLicenseConfig(newConfig) {
@@ -7286,7 +7342,7 @@ function subscribe(listener) {
7286
7342
  return () => listeners.delete(listener);
7287
7343
  }
7288
7344
  function useLicenseConfig() {
7289
- return (0, import_react44.useSyncExternalStore)(subscribe, getLicenseConfig, getLicenseConfig);
7345
+ return (0, import_react45.useSyncExternalStore)(subscribe, getLicenseConfig, getLicenseConfig);
7290
7346
  }
7291
7347
 
7292
7348
  // src/dynamics/sync/get-atomic-dynamic-tags.ts
@@ -7355,7 +7411,7 @@ var usePropDynamicTagsInternal = (filterByLicense2) => {
7355
7411
  categories = propDynamicType?.settings.categories || [];
7356
7412
  }
7357
7413
  const categoriesKey = categories.join();
7358
- return (0, import_react45.useMemo)(
7414
+ return (0, import_react46.useMemo)(
7359
7415
  () => getDynamicTagsByCategories(categories, filterByLicense2),
7360
7416
  // eslint-disable-next-line react-hooks/exhaustive-deps
7361
7417
  [categoriesKey, filterByLicense2]
@@ -7389,7 +7445,7 @@ var getDynamicTagsByCategories = (categories, filterByLicense2) => {
7389
7445
  // src/dynamics/hooks/use-dynamic-tag.ts
7390
7446
  var useDynamicTag = (tagName) => {
7391
7447
  const dynamicTags = useAllPropDynamicTags();
7392
- return (0, import_react46.useMemo)(() => dynamicTags.find((tag) => tag.name === tagName) ?? null, [dynamicTags, tagName]);
7448
+ return (0, import_react47.useMemo)(() => dynamicTags.find((tag) => tag.name === tagName) ?? null, [dynamicTags, tagName]);
7393
7449
  };
7394
7450
 
7395
7451
  // src/dynamics/components/background-control-dynamic-tag.tsx
@@ -7431,7 +7487,7 @@ var import_editor_controls65 = require("@elementor/editor-controls");
7431
7487
 
7432
7488
  // src/dynamics/components/dynamic-conditional-control.tsx
7433
7489
  var React101 = __toESM(require("react"));
7434
- var import_react47 = require("react");
7490
+ var import_react48 = require("react");
7435
7491
  var import_editor_props29 = require("@elementor/editor-props");
7436
7492
  var DynamicConditionalControl = ({
7437
7493
  children,
@@ -7439,7 +7495,7 @@ var DynamicConditionalControl = ({
7439
7495
  propsSchema,
7440
7496
  dynamicSettings
7441
7497
  }) => {
7442
- const defaults = (0, import_react47.useMemo)(() => {
7498
+ const defaults = (0, import_react48.useMemo)(() => {
7443
7499
  if (!propsSchema) {
7444
7500
  return {};
7445
7501
  }
@@ -7449,7 +7505,7 @@ var DynamicConditionalControl = ({
7449
7505
  return result;
7450
7506
  }, {});
7451
7507
  }, [propsSchema]);
7452
- const convertedSettings = (0, import_react47.useMemo)(() => {
7508
+ const convertedSettings = (0, import_react48.useMemo)(() => {
7453
7509
  if (!dynamicSettings) {
7454
7510
  return {};
7455
7511
  }
@@ -7468,7 +7524,7 @@ var DynamicConditionalControl = ({
7468
7524
  {}
7469
7525
  );
7470
7526
  }, [dynamicSettings]);
7471
- const effectiveSettings = (0, import_react47.useMemo)(() => {
7527
+ const effectiveSettings = (0, import_react48.useMemo)(() => {
7472
7528
  return { ...defaults, ...convertedSettings };
7473
7529
  }, [defaults, convertedSettings]);
7474
7530
  if (!propType?.dependencies?.terms.length) {
@@ -7513,7 +7569,7 @@ var DynamicControl = ({ bind, children }) => {
7513
7569
 
7514
7570
  // src/dynamics/components/dynamic-selection.tsx
7515
7571
  var React103 = __toESM(require("react"));
7516
- var import_react48 = require("react");
7572
+ var import_react49 = require("react");
7517
7573
  var import_editor_controls66 = require("@elementor/editor-controls");
7518
7574
  var import_editor_ui11 = require("@elementor/editor-ui");
7519
7575
  var import_icons31 = require("@elementor/icons");
@@ -7524,7 +7580,7 @@ var PROMO_TEXT_WIDTH = 170;
7524
7580
  var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
7525
7581
  var RENEW_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-renew-modal/";
7526
7582
  var DynamicSelection = ({ close: closePopover, expired = false }) => {
7527
- const [searchValue, setSearchValue] = (0, import_react48.useState)("");
7583
+ const [searchValue, setSearchValue] = (0, import_react49.useState)("");
7528
7584
  const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
7529
7585
  const theme = (0, import_ui52.useTheme)();
7530
7586
  const { value: anyValue } = (0, import_editor_controls66.useBoundProp)();
@@ -7533,7 +7589,7 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7533
7589
  const isCurrentValueDynamic = !!dynamicValue;
7534
7590
  const options13 = useFilteredOptions(searchValue);
7535
7591
  const hasNoDynamicTags = !options13.length && !searchValue.trim();
7536
- (0, import_react48.useEffect)(() => {
7592
+ (0, import_react49.useEffect)(() => {
7537
7593
  if (hasNoDynamicTags) {
7538
7594
  (0, import_editor_controls66.trackViewPromotion)({ target_name: "dynamic_tags" });
7539
7595
  } else if (expired) {
@@ -7570,7 +7626,7 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7570
7626
  if (expired) {
7571
7627
  return /* @__PURE__ */ React103.createElement(ExpiredDynamicTags, null);
7572
7628
  }
7573
- return /* @__PURE__ */ React103.createElement(import_react48.Fragment, null, /* @__PURE__ */ React103.createElement(
7629
+ return /* @__PURE__ */ React103.createElement(import_react49.Fragment, null, /* @__PURE__ */ React103.createElement(
7574
7630
  import_editor_ui11.SearchField,
7575
7631
  {
7576
7632
  value: searchValue,
@@ -8040,22 +8096,22 @@ var import_i18n86 = require("@wordpress/i18n");
8040
8096
 
8041
8097
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
8042
8098
  var React110 = __toESM(require("react"));
8043
- var import_react50 = require("react");
8099
+ var import_react51 = require("react");
8044
8100
  var import_editor_canvas5 = require("@elementor/editor-canvas");
8045
8101
  var import_editor_ui13 = require("@elementor/editor-ui");
8046
8102
  var import_ui58 = require("@elementor/ui");
8047
8103
  var import_i18n85 = require("@wordpress/i18n");
8048
8104
 
8049
8105
  // src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
8050
- var import_react49 = require("react");
8106
+ var import_react50 = require("react");
8051
8107
  var import_editor_canvas4 = require("@elementor/editor-canvas");
8052
8108
  var import_editor_styles8 = require("@elementor/editor-styles");
8053
8109
  var import_editor_styles_repository18 = require("@elementor/editor-styles-repository");
8054
8110
  var import_i18n83 = require("@wordpress/i18n");
8055
8111
  var MAXIMUM_ITEMS = 2;
8056
8112
  var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
8057
- const [items3, setItems] = (0, import_react49.useState)([]);
8058
- (0, import_react49.useEffect)(() => {
8113
+ const [items3, setItems] = (0, import_react50.useState)([]);
8114
+ (0, import_react50.useEffect)(() => {
8059
8115
  (async () => {
8060
8116
  const normalizedItems = await Promise.all(
8061
8117
  inheritanceChain.filter(({ style }) => style).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
@@ -8106,7 +8162,7 @@ var getTransformedValue = async (item, bind, resolve) => {
8106
8162
  }
8107
8163
  });
8108
8164
  const value = result?.[bind] ?? result;
8109
- if ((0, import_react49.isValidElement)(value)) {
8165
+ if ((0, import_react50.isValidElement)(value)) {
8110
8166
  return value;
8111
8167
  }
8112
8168
  if (typeof value === "object") {
@@ -8221,8 +8277,8 @@ var StylesInheritanceInfotip = ({
8221
8277
  children,
8222
8278
  isDisabled
8223
8279
  }) => {
8224
- const [showInfotip, setShowInfotip] = (0, import_react50.useState)(false);
8225
- const triggerRef = (0, import_react50.useRef)(null);
8280
+ const [showInfotip, setShowInfotip] = (0, import_react51.useState)(false);
8281
+ const triggerRef = (0, import_react51.useRef)(null);
8226
8282
  const toggleInfotip = () => {
8227
8283
  if (isDisabled) {
8228
8284
  return;
@@ -8237,7 +8293,7 @@ var StylesInheritanceInfotip = ({
8237
8293
  };
8238
8294
  const key = path.join(".");
8239
8295
  const sectionWidth = (0, import_editor_ui13.useSectionWidth)();
8240
- const resolve = (0, import_react50.useMemo)(() => {
8296
+ const resolve = (0, import_react51.useMemo)(() => {
8241
8297
  return (0, import_editor_canvas5.createPropsResolver)({
8242
8298
  transformers: import_editor_canvas5.stylesInheritanceTransformersRegistry,
8243
8299
  schema: { [key]: propType }
@@ -8647,6 +8703,7 @@ var init3 = () => {
8647
8703
 
8648
8704
  // src/init.ts
8649
8705
  function init4() {
8706
+ (0, import_editor_controls72.init)();
8650
8707
  (0, import_editor_panels3.registerPanel)(panel);
8651
8708
  blockV1Panel();
8652
8709
  (0, import_editor.injectIntoLogic)({
@@ -8672,6 +8729,7 @@ var blockV1Panel = () => {
8672
8729
  ControlLabel,
8673
8730
  ControlTypeContainer,
8674
8731
  CreatableAutocomplete,
8732
+ CustomCssHeaderSlot,
8675
8733
  CustomCssIndicator,
8676
8734
  DEFAULT_PSEUDO_STATES,
8677
8735
  EditingPanelTabs,
@@ -8707,9 +8765,12 @@ var blockV1Panel = () => {
8707
8765
  init,
8708
8766
  injectIntoClassSelectorActions,
8709
8767
  injectIntoCssClassConvert,
8768
+ injectIntoCustomCssHeader,
8710
8769
  injectIntoGridFields,
8711
8770
  injectIntoPanelHeaderTop,
8771
+ injectIntoStyleSectionHeader,
8712
8772
  injectIntoStyleTab,
8773
+ injectIntoStyleTabHeader,
8713
8774
  isDynamicPropValue,
8714
8775
  registerEditingPanelReplacement,
8715
8776
  registerElementPanelDefaults,