@elementor/editor-editing-panel 0.13.0 → 0.14.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.14.1](https://github.com/elementor/elementor-packages/compare/@elementor/editor-editing-panel@0.14.0...@elementor/editor-editing-panel@0.14.1) (2024-08-25)
7
+
8
+ **Note:** Version bump only for package @elementor/editor-editing-panel
9
+
10
+ # [0.14.0](https://github.com/elementor/elementor-packages/compare/@elementor/editor-editing-panel@0.13.0...@elementor/editor-editing-panel@0.14.0) (2024-08-22)
11
+
12
+ ### Features
13
+
14
+ - **editor-editing-panel:** add collapsible section [EDS-345] ([#248](https://github.com/elementor/elementor-packages/issues/248)) ([8e362a6](https://github.com/elementor/elementor-packages/commit/8e362a6176d03f6ba89dda0aef5d4f888c7afe44))
15
+
6
16
  # [0.13.0](https://github.com/elementor/elementor-packages/compare/@elementor/editor-editing-panel@0.12.0...@elementor/editor-editing-panel@0.13.0) (2024-08-21)
7
17
 
8
18
  ### Features
package/dist/index.js CHANGED
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  var import_editor_panels2 = require("@elementor/editor-panels");
27
27
 
28
28
  // src/components/editing-panel.tsx
29
- var React18 = __toESM(require("react"));
30
- var import_i18n6 = require("@wordpress/i18n");
29
+ var React19 = __toESM(require("react"));
30
+ var import_i18n7 = require("@wordpress/i18n");
31
31
 
32
32
  // src/hooks/use-selected-elements.ts
33
33
  var import_editor_v1_adapters = require("@elementor/editor-v1-adapters");
@@ -107,9 +107,9 @@ function useElementContext() {
107
107
  }
108
108
 
109
109
  // src/components/editing-panel-tabs.tsx
110
- var import_ui14 = require("@elementor/ui");
111
- var React17 = __toESM(require("react"));
112
- var import_i18n5 = require("@wordpress/i18n");
110
+ var import_ui15 = require("@elementor/ui");
111
+ var React18 = __toESM(require("react"));
112
+ var import_i18n6 = require("@wordpress/i18n");
113
113
 
114
114
  // src/components/settings-tab.tsx
115
115
  var React9 = __toESM(require("react"));
@@ -188,23 +188,26 @@ var SettingsControlProvider = ({ bind, children }) => {
188
188
  };
189
189
  return /* @__PURE__ */ React3.createElement(ControlContext.Provider, { value: { setValue, value, bind } }, children);
190
190
  };
191
- var SettingsControl = ({ children, bind }) => /* @__PURE__ */ React3.createElement(SettingsControlProvider, { bind }, /* @__PURE__ */ React3.createElement(StyledStack, { gap: 1, direction: "row", alignItems: "center", justifyContent: "space-between", flexWrap: "wrap" }, children));
192
- var StyledStack = (0, import_ui2.styled)(import_ui2.Stack)`
193
- & > * {
194
- flex-grow: 1;
195
- }
196
-
197
- & > label {
198
- min-width: 50%;
199
- }
200
- `;
191
+ var SettingsControl = ({ children, bind }) => /* @__PURE__ */ React3.createElement(SettingsControlProvider, { bind }, /* @__PURE__ */ React3.createElement(StyledStack, { direction: "row", alignItems: "center", justifyContent: "space-between", flexWrap: "wrap" }, children));
192
+ var StyledStack = (0, import_ui2.styled)(import_ui2.Stack)(({ theme }) => {
193
+ const gap = theme.spacing(1);
194
+ return {
195
+ gap,
196
+ "& > *": {
197
+ width: `calc(50% - ${gap} / 2)`
198
+ },
199
+ "& > label": {
200
+ flexShrink: 0
201
+ }
202
+ };
203
+ });
201
204
  SettingsControl.Label = ControlLabel;
202
205
 
203
- // src/components/collapsible-section.tsx
206
+ // src/components/accordion-section.tsx
204
207
  var React4 = __toESM(require("react"));
205
208
  var import_react3 = require("react");
206
209
  var import_ui3 = require("@elementor/ui");
207
- var CollapsibleSection = ({ title, children }) => {
210
+ var AccordionSection = ({ title, children }) => {
208
211
  const uid = (0, import_react3.useId)();
209
212
  const labelId = `label-${uid}`;
210
213
  const contentId = `content-${uid}`;
@@ -336,7 +339,7 @@ var SettingsTab = () => {
336
339
  return /* @__PURE__ */ React9.createElement(Control, { key: value.bind, control: value });
337
340
  }
338
341
  if (type === "section") {
339
- return /* @__PURE__ */ React9.createElement(CollapsibleSection, { key: type + "." + index, title: value.label }, value.items?.map((item) => {
342
+ return /* @__PURE__ */ React9.createElement(AccordionSection, { key: type + "." + index, title: value.label }, value.items?.map((item) => {
340
343
  if (item.type === "control") {
341
344
  return /* @__PURE__ */ React9.createElement(Control, { key: item.value.bind, control: item.value });
342
345
  }
@@ -360,7 +363,7 @@ var Control = ({ control }) => {
360
363
  };
361
364
 
362
365
  // src/components/style-tab.tsx
363
- var React16 = __toESM(require("react"));
366
+ var React17 = __toESM(require("react"));
364
367
 
365
368
  // src/contexts/style-context.tsx
366
369
  var React10 = __toESM(require("react"));
@@ -401,10 +404,10 @@ var useElementStyles = (elementID) => {
401
404
  };
402
405
 
403
406
  // src/components/style-tab.tsx
404
- var import_ui13 = require("@elementor/ui");
407
+ var import_ui14 = require("@elementor/ui");
405
408
 
406
409
  // src/components/style-sections/size-section.tsx
407
- var React13 = __toESM(require("react"));
410
+ var React14 = __toESM(require("react"));
408
411
 
409
412
  // src/controls/style-control.tsx
410
413
  var React11 = __toESM(require("react"));
@@ -480,12 +483,45 @@ var StyleControl = ({ bind, children }) => {
480
483
  };
481
484
  StyleControl.Label = ControlLabel;
482
485
 
483
- // src/controls/control-types/size-control.tsx
486
+ // src/components/collapsible-section.tsx
484
487
  var React12 = __toESM(require("react"));
488
+ var import_react5 = require("react");
489
+ var import_icons2 = require("@elementor/icons");
485
490
  var import_ui9 = require("@elementor/ui");
491
+ var import_i18n2 = require("@wordpress/i18n");
492
+ var CollapsibleSection = ({ children, defaultOpen = false }) => {
493
+ const [open, setOpen] = (0, import_react5.useState)(defaultOpen);
494
+ const handleToggle = () => {
495
+ setOpen((prevOpen) => !prevOpen);
496
+ };
497
+ return /* @__PURE__ */ React12.createElement(import_ui9.Stack, { sx: { py: 0.5 } }, /* @__PURE__ */ React12.createElement(
498
+ import_ui9.Button,
499
+ {
500
+ fullWidth: true,
501
+ size: "small",
502
+ color: "secondary",
503
+ variant: "outlined",
504
+ onClick: handleToggle,
505
+ endIcon: /* @__PURE__ */ React12.createElement(ChevronIcon, { open })
506
+ },
507
+ open ? (0, import_i18n2.__)("Show less", "elementor") : (0, import_i18n2.__)("Show more", "elementor")
508
+ ), /* @__PURE__ */ React12.createElement(import_ui9.Collapse, { in: open, timeout: "auto" }, children));
509
+ };
510
+ var ChevronIcon = (0, import_ui9.styled)(import_icons2.ChevronDownIcon, {
511
+ shouldForwardProp: (prop) => prop !== "open"
512
+ })(({ theme, open }) => ({
513
+ transform: open ? "rotate(180deg)" : "rotate(0)",
514
+ transition: theme.transitions.create("transform", {
515
+ duration: theme.transitions.duration.standard
516
+ })
517
+ }));
518
+
519
+ // src/controls/control-types/size-control.tsx
520
+ var React13 = __toESM(require("react"));
521
+ var import_ui10 = require("@elementor/ui");
486
522
 
487
523
  // src/controls/hooks/use-sync-external-state.tsx
488
- var import_react5 = require("react");
524
+ var import_react6 = require("react");
489
525
  var useSyncExternalState = ({
490
526
  external,
491
527
  setExternal,
@@ -504,8 +540,8 @@ var useSyncExternalState = ({
504
540
  }
505
541
  return externalValue;
506
542
  }
507
- const [internal, setInternal] = (0, import_react5.useState)(toInternal(external, void 0));
508
- (0, import_react5.useEffect)(() => {
543
+ const [internal, setInternal] = (0, import_react6.useState)(toInternal(external, void 0));
544
+ (0, import_react6.useEffect)(() => {
509
545
  setInternal((prevInternal) => toInternal(external, prevInternal));
510
546
  }, [external]);
511
547
  const setInternalValue = (setter) => {
@@ -549,8 +585,8 @@ var SizeControl = ({ units: units2, placeholder }) => {
549
585
  }
550
586
  }));
551
587
  };
552
- return /* @__PURE__ */ React12.createElement(import_ui9.Stack, { direction: "row" }, /* @__PURE__ */ React12.createElement(
553
- import_ui9.TextField,
588
+ return /* @__PURE__ */ React13.createElement(import_ui10.Stack, { direction: "row" }, /* @__PURE__ */ React13.createElement(
589
+ import_ui10.TextField,
554
590
  {
555
591
  size: "tiny",
556
592
  type: "number",
@@ -558,8 +594,8 @@ var SizeControl = ({ units: units2, placeholder }) => {
558
594
  onChange: handleSizeChange,
559
595
  placeholder
560
596
  }
561
- ), /* @__PURE__ */ React12.createElement(
562
- import_ui9.Select,
597
+ ), /* @__PURE__ */ React13.createElement(
598
+ import_ui10.Select,
563
599
  {
564
600
  size: "tiny",
565
601
  value: state.value.unit,
@@ -569,42 +605,42 @@ var SizeControl = ({ units: units2, placeholder }) => {
569
605
  transformOrigin: { vertical: "top", horizontal: "right" }
570
606
  }
571
607
  },
572
- units2.map((unit) => /* @__PURE__ */ React12.createElement(import_ui9.MenuItem, { key: unit, value: unit }, unit.toUpperCase()))
608
+ units2.map((unit) => /* @__PURE__ */ React13.createElement(import_ui10.MenuItem, { key: unit, value: unit }, unit.toUpperCase()))
573
609
  ));
574
610
  };
575
611
 
576
612
  // src/components/style-sections/size-section.tsx
577
- var import_ui10 = require("@elementor/ui");
578
- var import_i18n2 = require("@wordpress/i18n");
613
+ var import_ui11 = require("@elementor/ui");
614
+ var import_i18n3 = require("@wordpress/i18n");
579
615
  var SizeSection = () => {
580
- return /* @__PURE__ */ React13.createElement(CollapsibleSection, { title: (0, import_i18n2.__)("Size", "elementor") }, /* @__PURE__ */ React13.createElement(import_ui10.Stack, { gap: 1.5 }, /* @__PURE__ */ React13.createElement(import_ui10.Stack, { direction: "row", gap: 2 }, /* @__PURE__ */ React13.createElement(Control2, { bind: "width", label: (0, import_i18n2.__)("Width", "elementor") }), /* @__PURE__ */ React13.createElement(Control2, { bind: "height", label: (0, import_i18n2.__)("Height", "elementor") })), /* @__PURE__ */ React13.createElement(import_ui10.Stack, { direction: "row", gap: 2 }, /* @__PURE__ */ React13.createElement(Control2, { bind: "minWidth", label: (0, import_i18n2.__)("Min. Width", "elementor") }), /* @__PURE__ */ React13.createElement(Control2, { bind: "minHeight", label: (0, import_i18n2.__)("Min. Height", "elementor") })), /* @__PURE__ */ React13.createElement(import_ui10.Stack, { direction: "row", gap: 2 }, /* @__PURE__ */ React13.createElement(Control2, { bind: "maxWidth", label: (0, import_i18n2.__)("Max. Width", "elementor") }), /* @__PURE__ */ React13.createElement(Control2, { bind: "maxHeight", label: (0, import_i18n2.__)("Max. Height", "elementor") }))));
616
+ return /* @__PURE__ */ React14.createElement(AccordionSection, { title: (0, import_i18n3.__)("Size", "elementor") }, /* @__PURE__ */ React14.createElement(import_ui11.Stack, { gap: 1.5 }, /* @__PURE__ */ React14.createElement(import_ui11.Stack, { direction: "row", gap: 2 }, /* @__PURE__ */ React14.createElement(Control2, { bind: "width", label: (0, import_i18n3.__)("Width", "elementor") }), /* @__PURE__ */ React14.createElement(Control2, { bind: "height", label: (0, import_i18n3.__)("Height", "elementor") })), /* @__PURE__ */ React14.createElement(CollapsibleSection, null, /* @__PURE__ */ React14.createElement(import_ui11.Stack, { gap: 1.5, sx: { pt: 1.5 } }, /* @__PURE__ */ React14.createElement(import_ui11.Stack, { direction: "row", gap: 2 }, /* @__PURE__ */ React14.createElement(Control2, { bind: "minWidth", label: (0, import_i18n3.__)("Min. Width", "elementor") }), /* @__PURE__ */ React14.createElement(Control2, { bind: "minHeight", label: (0, import_i18n3.__)("Min. Height", "elementor") })), /* @__PURE__ */ React14.createElement(import_ui11.Stack, { direction: "row", gap: 2 }, /* @__PURE__ */ React14.createElement(Control2, { bind: "maxWidth", label: (0, import_i18n3.__)("Max. Width", "elementor") }), /* @__PURE__ */ React14.createElement(Control2, { bind: "maxHeight", label: (0, import_i18n3.__)("Max. Height", "elementor") }))))));
581
617
  };
582
618
  var units = ["px", "%", "em", "rem", "vw"];
583
619
  var Control2 = ({ label, bind }) => {
584
- return /* @__PURE__ */ React13.createElement(StyleControl, { bind }, /* @__PURE__ */ React13.createElement(import_ui10.Stack, { gap: 1, sx: { flex: "0 1 50%" } }, /* @__PURE__ */ React13.createElement(StyleControl.Label, null, label), /* @__PURE__ */ React13.createElement(SizeControl, { units })));
620
+ return /* @__PURE__ */ React14.createElement(StyleControl, { bind }, /* @__PURE__ */ React14.createElement(import_ui11.Stack, { gap: 1, sx: { flex: "0 1 50%" } }, /* @__PURE__ */ React14.createElement(StyleControl.Label, null, label), /* @__PURE__ */ React14.createElement(SizeControl, { units })));
585
621
  };
586
622
 
587
623
  // src/components/style-sections/typography-section.tsx
588
- var React15 = __toESM(require("react"));
589
- var import_ui12 = require("@elementor/ui");
624
+ var React16 = __toESM(require("react"));
625
+ var import_ui13 = require("@elementor/ui");
590
626
 
591
627
  // src/controls/control-types/text-style-control.tsx
592
- var React14 = __toESM(require("react"));
593
- var import_ui11 = require("@elementor/ui");
594
- var import_i18n3 = require("@wordpress/i18n");
628
+ var React15 = __toESM(require("react"));
629
+ var import_ui12 = require("@elementor/ui");
630
+ var import_i18n4 = require("@wordpress/i18n");
595
631
  var TextStyleControl = () => {
596
632
  const [fontStyle, setFontStyle] = useStyleControl("fontStyle");
597
633
  const [textDecoration, setTextDecoration] = useStyleControl("textDecoration");
598
634
  const formats = [fontStyle, ...(textDecoration || "").split(" ")];
599
- return /* @__PURE__ */ React14.createElement(import_ui11.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center" }, /* @__PURE__ */ React14.createElement(ControlLabel, null, (0, import_i18n3.__)("Style", "elementor")), /* @__PURE__ */ React14.createElement(import_ui11.ToggleButtonGroup, { value: formats }, /* @__PURE__ */ React14.createElement(
635
+ return /* @__PURE__ */ React15.createElement(import_ui12.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center" }, /* @__PURE__ */ React15.createElement(ControlLabel, null, (0, import_i18n4.__)("Style", "elementor")), /* @__PURE__ */ React15.createElement(import_ui12.ToggleButtonGroup, { value: formats }, /* @__PURE__ */ React15.createElement(
600
636
  ToggleButton,
601
637
  {
602
638
  value: "italic",
603
639
  onChange: (v) => setFontStyle(fontStyle === v ? null : v),
604
640
  "aria-label": "italic"
605
641
  },
606
- /* @__PURE__ */ React14.createElement("span", { style: { fontStyle: "italic", fontSize: "12px" } }, "I")
607
- ), /* @__PURE__ */ React14.createElement(
642
+ /* @__PURE__ */ React15.createElement("span", { style: { fontStyle: "italic", fontSize: "12px" } }, "I")
643
+ ), /* @__PURE__ */ React15.createElement(
608
644
  ShorthandControl,
609
645
  {
610
646
  value: "line-through",
@@ -612,8 +648,8 @@ var TextStyleControl = () => {
612
648
  updateValues: setTextDecoration,
613
649
  "aria-label": "line-through"
614
650
  },
615
- /* @__PURE__ */ React14.createElement("span", { style: { textDecoration: "line-through", fontSize: "12px" } }, "S")
616
- ), /* @__PURE__ */ React14.createElement(
651
+ /* @__PURE__ */ React15.createElement("span", { style: { textDecoration: "line-through", fontSize: "12px" } }, "S")
652
+ ), /* @__PURE__ */ React15.createElement(
617
653
  ShorthandControl,
618
654
  {
619
655
  value: "underline",
@@ -621,7 +657,7 @@ var TextStyleControl = () => {
621
657
  updateValues: setTextDecoration,
622
658
  "aria-label": "underline"
623
659
  },
624
- /* @__PURE__ */ React14.createElement("span", { style: { textDecoration: "underline", fontSize: "12px" } }, "U")
660
+ /* @__PURE__ */ React15.createElement("span", { style: { textDecoration: "underline", fontSize: "12px" } }, "U")
625
661
  )));
626
662
  };
627
663
  var ShorthandControl = ({
@@ -640,19 +676,19 @@ var ShorthandControl = ({
640
676
  updateValues([...valuesArr, newValue].join(" "));
641
677
  }
642
678
  };
643
- return /* @__PURE__ */ React14.createElement(ToggleButton, { value, onChange: toggleValue, selected, "aria-label": ariaLabel }, children);
679
+ return /* @__PURE__ */ React15.createElement(ToggleButton, { value, onChange: toggleValue, selected, "aria-label": ariaLabel }, children);
644
680
  };
645
681
  var ToggleButton = ({ onChange, ...props }) => {
646
682
  const handleChange = (_e, newValue) => {
647
683
  onChange(newValue);
648
684
  };
649
- return /* @__PURE__ */ React14.createElement(import_ui11.ToggleButton, { ...props, onChange: handleChange, size: "tiny", sx: { px: 1.5 } });
685
+ return /* @__PURE__ */ React15.createElement(import_ui12.ToggleButton, { ...props, onChange: handleChange, size: "tiny", sx: { px: 1.5 } });
650
686
  };
651
687
 
652
688
  // src/components/style-sections/typography-section.tsx
653
- var import_i18n4 = require("@wordpress/i18n");
689
+ var import_i18n5 = require("@wordpress/i18n");
654
690
  var TypographySection = () => {
655
- return /* @__PURE__ */ React15.createElement(CollapsibleSection, { title: (0, import_i18n4.__)("Typography", "elementor") }, /* @__PURE__ */ React15.createElement(import_ui12.Stack, { gap: 1.5 }, /* @__PURE__ */ React15.createElement(TextStyleControl, null)));
691
+ return /* @__PURE__ */ React16.createElement(AccordionSection, { title: (0, import_i18n5.__)("Typography", "elementor") }, /* @__PURE__ */ React16.createElement(import_ui13.Stack, { gap: 1.5 }, /* @__PURE__ */ React16.createElement(TextStyleControl, null)));
656
692
  };
657
693
 
658
694
  // src/components/style-tab.tsx
@@ -660,13 +696,13 @@ var StyleTab = () => {
660
696
  const { element } = useElementContext();
661
697
  const elementStyles = useElementStyles(element.id);
662
698
  const [selectedStyleDef = null] = Object.values(elementStyles || {});
663
- return /* @__PURE__ */ React16.createElement(StyleContext, { selectedStyleDef }, /* @__PURE__ */ React16.createElement(import_ui13.Stack, null, /* @__PURE__ */ React16.createElement(SizeSection, null), /* @__PURE__ */ React16.createElement(TypographySection, null)));
699
+ return /* @__PURE__ */ React17.createElement(StyleContext, { selectedStyleDef }, /* @__PURE__ */ React17.createElement(import_ui14.Stack, null, /* @__PURE__ */ React17.createElement(SizeSection, null), /* @__PURE__ */ React17.createElement(TypographySection, null)));
664
700
  };
665
701
 
666
702
  // src/components/editing-panel-tabs.tsx
667
703
  var EditingPanelTabs = () => {
668
- const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui14.useTabs)("settings");
669
- return /* @__PURE__ */ React17.createElement(import_ui14.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React17.createElement(import_ui14.Tabs, { variant: "fullWidth", indicatorColor: "secondary", textColor: "inherit", ...getTabsProps() }, /* @__PURE__ */ React17.createElement(import_ui14.Tab, { label: (0, import_i18n5.__)("General", "elementor"), ...getTabProps("settings") }), /* @__PURE__ */ React17.createElement(import_ui14.Tab, { label: (0, import_i18n5.__)("Style", "elementor"), ...getTabProps("style") })), /* @__PURE__ */ React17.createElement(import_ui14.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React17.createElement(SettingsTab, null)), /* @__PURE__ */ React17.createElement(import_ui14.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React17.createElement(StyleTab, null)));
704
+ const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui15.useTabs)("settings");
705
+ return /* @__PURE__ */ React18.createElement(import_ui15.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React18.createElement(import_ui15.Tabs, { variant: "fullWidth", indicatorColor: "secondary", textColor: "inherit", ...getTabsProps() }, /* @__PURE__ */ React18.createElement(import_ui15.Tab, { label: (0, import_i18n6.__)("General", "elementor"), ...getTabProps("settings") }), /* @__PURE__ */ React18.createElement(import_ui15.Tab, { label: (0, import_i18n6.__)("Style", "elementor"), ...getTabProps("style") })), /* @__PURE__ */ React18.createElement(import_ui15.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React18.createElement(SettingsTab, null)), /* @__PURE__ */ React18.createElement(import_ui15.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React18.createElement(StyleTab, null)));
670
706
  };
671
707
 
672
708
  // src/components/editing-panel.tsx
@@ -677,8 +713,8 @@ var EditingPanel = () => {
677
713
  if (elements.length !== 1 || !elementType) {
678
714
  return null;
679
715
  }
680
- const panelTitle = (0, import_i18n6.__)("Edit %s", "elementor").replace("%s", elementType.title);
681
- return /* @__PURE__ */ React18.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React18.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React18.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle)), /* @__PURE__ */ React18.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React18.createElement(ElementContext, { element: selectedElement }, /* @__PURE__ */ React18.createElement(EditingPanelTabs, null))));
716
+ const panelTitle = (0, import_i18n7.__)("Edit %s", "elementor").replace("%s", elementType.title);
717
+ return /* @__PURE__ */ React19.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React19.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React19.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle)), /* @__PURE__ */ React19.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React19.createElement(ElementContext, { element: selectedElement }, /* @__PURE__ */ React19.createElement(EditingPanelTabs, null))));
682
718
  };
683
719
 
684
720
  // src/panel.ts
@@ -701,11 +737,11 @@ var shouldUseV2Panel = () => {
701
737
  };
702
738
 
703
739
  // src/hooks/use-open-editor-panel.ts
704
- var import_react6 = require("react");
740
+ var import_react7 = require("react");
705
741
  var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
706
742
  var useOpenEditorPanel = () => {
707
743
  const { open } = usePanelActions();
708
- (0, import_react6.useEffect)(() => {
744
+ (0, import_react7.useEffect)(() => {
709
745
  return (0, import_editor_v1_adapters8.__privateListenTo)((0, import_editor_v1_adapters8.commandStartEvent)("panel/editor/open"), () => {
710
746
  if (shouldUseV2Panel()) {
711
747
  open();