@elementor/editor-components 3.35.0-480 → 3.35.0-481
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 +54 -49
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -22
- package/src/components/component-panel-header/component-panel-header.tsx +17 -21
- package/src/components/component-properties-panel/properties-group.tsx +10 -6
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
|
40
40
|
var import_editor_documents13 = require("@elementor/editor-documents");
|
|
41
41
|
var import_editor_editing_panel8 = require("@elementor/editor-editing-panel");
|
|
42
42
|
var import_editor_elements_panel = require("@elementor/editor-elements-panel");
|
|
43
|
-
var
|
|
43
|
+
var import_editor_panels5 = require("@elementor/editor-panels");
|
|
44
44
|
var import_editor_styles_repository2 = require("@elementor/editor-styles-repository");
|
|
45
45
|
var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
|
|
46
46
|
var import_store80 = require("@elementor/store");
|
|
@@ -380,6 +380,8 @@ var componentOverrideTransformer = (0, import_editor_canvas3.createTransformer)(
|
|
|
380
380
|
var React10 = __toESM(require("react"));
|
|
381
381
|
var import_editor_current_user = require("@elementor/editor-current-user");
|
|
382
382
|
var import_editor_documents6 = require("@elementor/editor-documents");
|
|
383
|
+
var import_editor_panels3 = require("@elementor/editor-panels");
|
|
384
|
+
var import_editor_ui6 = require("@elementor/editor-ui");
|
|
383
385
|
var import_icons7 = require("@elementor/icons");
|
|
384
386
|
var import_store29 = require("@elementor/store");
|
|
385
387
|
var import_ui10 = require("@elementor/ui");
|
|
@@ -1671,14 +1673,18 @@ function PropertiesGroup({
|
|
|
1671
1673
|
import_ui6.Box,
|
|
1672
1674
|
{
|
|
1673
1675
|
sx: {
|
|
1674
|
-
flex: 1,
|
|
1675
1676
|
height: 28,
|
|
1676
1677
|
display: "flex",
|
|
1677
1678
|
alignItems: "center",
|
|
1678
1679
|
border: 2,
|
|
1679
1680
|
borderColor: "text.secondary",
|
|
1680
1681
|
borderRadius: 1,
|
|
1681
|
-
pl: 0.5
|
|
1682
|
+
pl: 0.5,
|
|
1683
|
+
flexGrow: 1,
|
|
1684
|
+
overflow: "hidden",
|
|
1685
|
+
textOverflow: "ellipsis",
|
|
1686
|
+
whiteSpace: "nowrap",
|
|
1687
|
+
width: "100%"
|
|
1682
1688
|
}
|
|
1683
1689
|
},
|
|
1684
1690
|
/* @__PURE__ */ React6.createElement(
|
|
@@ -1693,12 +1699,13 @@ function PropertiesGroup({
|
|
|
1693
1699
|
}
|
|
1694
1700
|
)
|
|
1695
1701
|
) : /* @__PURE__ */ React6.createElement(
|
|
1696
|
-
|
|
1702
|
+
import_editor_ui3.EllipsisWithTooltip,
|
|
1697
1703
|
{
|
|
1704
|
+
title: group.label,
|
|
1705
|
+
as: import_ui6.Typography,
|
|
1698
1706
|
variant: "caption",
|
|
1699
1707
|
sx: { color: "text.primary", fontWeight: 400, lineHeight: 1.66 }
|
|
1700
|
-
}
|
|
1701
|
-
group.label
|
|
1708
|
+
}
|
|
1702
1709
|
), /* @__PURE__ */ React6.createElement(
|
|
1703
1710
|
import_ui6.IconButton,
|
|
1704
1711
|
{
|
|
@@ -2075,24 +2082,22 @@ var ComponentPanelHeader = () => {
|
|
|
2075
2082
|
properties_count: overridablePropsCount
|
|
2076
2083
|
});
|
|
2077
2084
|
};
|
|
2078
|
-
return /* @__PURE__ */ React10.createElement(import_ui10.Box, null, /* @__PURE__ */ React10.createElement(
|
|
2079
|
-
|
|
2085
|
+
return /* @__PURE__ */ React10.createElement(import_ui10.Box, null, /* @__PURE__ */ React10.createElement(import_editor_panels3.PanelHeader, { sx: { justifyContent: "start", px: 2 } }, /* @__PURE__ */ React10.createElement(import_ui10.Tooltip, { title: (0, import_i18n13.__)("Back", "elementor") }, /* @__PURE__ */ React10.createElement(import_ui10.IconButton, { size: "tiny", onClick: onBack, "aria-label": (0, import_i18n13.__)("Back", "elementor") }, /* @__PURE__ */ React10.createElement(import_icons7.ArrowLeftIcon, { fontSize: "tiny" }))), /* @__PURE__ */ React10.createElement(import_icons7.ComponentsFilledIcon, { fontSize: "tiny", stroke: "currentColor" }), /* @__PURE__ */ React10.createElement(
|
|
2086
|
+
import_editor_ui6.EllipsisWithTooltip,
|
|
2080
2087
|
{
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
sx: {
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
)
|
|
2095
|
-
), /* @__PURE__ */ React10.createElement(import_ui10.Divider, null), /* @__PURE__ */ React10.createElement(
|
|
2088
|
+
title: componentName,
|
|
2089
|
+
as: import_ui10.Typography,
|
|
2090
|
+
variant: "caption",
|
|
2091
|
+
sx: { fontWeight: 500, flexGrow: 1 }
|
|
2092
|
+
}
|
|
2093
|
+
), /* @__PURE__ */ React10.createElement(
|
|
2094
|
+
ComponentsBadge,
|
|
2095
|
+
{
|
|
2096
|
+
overridablePropsCount,
|
|
2097
|
+
ref: anchorRef,
|
|
2098
|
+
onClick: handleOpenPropertiesPanel
|
|
2099
|
+
}
|
|
2100
|
+
)), /* @__PURE__ */ React10.createElement(import_ui10.Divider, null), /* @__PURE__ */ React10.createElement(
|
|
2096
2101
|
ComponentIntroduction,
|
|
2097
2102
|
{
|
|
2098
2103
|
anchorRef,
|
|
@@ -2115,7 +2120,7 @@ function getComponentName() {
|
|
|
2115
2120
|
|
|
2116
2121
|
// src/components/components-tab/components.tsx
|
|
2117
2122
|
var React19 = __toESM(require("react"));
|
|
2118
|
-
var
|
|
2123
|
+
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
2119
2124
|
|
|
2120
2125
|
// src/hooks/use-components.ts
|
|
2121
2126
|
var import_store31 = require("@elementor/store");
|
|
@@ -2278,7 +2283,7 @@ var React15 = __toESM(require("react"));
|
|
|
2278
2283
|
var import_react8 = require("react");
|
|
2279
2284
|
var import_editor_canvas5 = require("@elementor/editor-canvas");
|
|
2280
2285
|
var import_editor_elements8 = require("@elementor/editor-elements");
|
|
2281
|
-
var
|
|
2286
|
+
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
2282
2287
|
var import_icons9 = require("@elementor/icons");
|
|
2283
2288
|
var import_ui13 = require("@elementor/ui");
|
|
2284
2289
|
var import_i18n19 = require("@wordpress/i18n");
|
|
@@ -2533,13 +2538,13 @@ var createComponentModel2 = (component) => {
|
|
|
2533
2538
|
|
|
2534
2539
|
// src/components/components-tab/delete-confirmation-dialog.tsx
|
|
2535
2540
|
var React14 = __toESM(require("react"));
|
|
2536
|
-
var
|
|
2541
|
+
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
2537
2542
|
var import_i18n18 = require("@wordpress/i18n");
|
|
2538
2543
|
function DeleteConfirmationDialog({ open, onClose, onConfirm }) {
|
|
2539
|
-
return /* @__PURE__ */ React14.createElement(
|
|
2544
|
+
return /* @__PURE__ */ React14.createElement(import_editor_ui7.ConfirmationDialog, { open, onClose }, /* @__PURE__ */ React14.createElement(import_editor_ui7.ConfirmationDialog.Title, null, (0, import_i18n18.__)("Delete this component?", "elementor")), /* @__PURE__ */ React14.createElement(import_editor_ui7.ConfirmationDialog.Content, null, /* @__PURE__ */ React14.createElement(import_editor_ui7.ConfirmationDialog.ContentText, null, (0, import_i18n18.__)(
|
|
2540
2545
|
"Existing instances on your pages will remain functional. You will no longer find this component in your list.",
|
|
2541
2546
|
"elementor"
|
|
2542
|
-
))), /* @__PURE__ */ React14.createElement(
|
|
2547
|
+
))), /* @__PURE__ */ React14.createElement(import_editor_ui7.ConfirmationDialog.Actions, { onClose, onConfirm }));
|
|
2543
2548
|
}
|
|
2544
2549
|
|
|
2545
2550
|
// src/components/components-tab/components-item.tsx
|
|
@@ -2554,7 +2559,7 @@ var ComponentItem = ({ component, renameComponent: renameComponent2 }) => {
|
|
|
2554
2559
|
openEditMode,
|
|
2555
2560
|
error,
|
|
2556
2561
|
getProps: getEditableProps
|
|
2557
|
-
} = (0,
|
|
2562
|
+
} = (0, import_editor_ui8.useEditable)({
|
|
2558
2563
|
value: component.name,
|
|
2559
2564
|
onSubmit: renameComponent2,
|
|
2560
2565
|
validation: validateComponentTitle
|
|
@@ -2586,7 +2591,7 @@ var ComponentItem = ({ component, renameComponent: renameComponent2 }) => {
|
|
|
2586
2591
|
setIsDeleteDialogOpen(false);
|
|
2587
2592
|
};
|
|
2588
2593
|
return /* @__PURE__ */ React15.createElement(import_ui13.Stack, null, /* @__PURE__ */ React15.createElement(
|
|
2589
|
-
|
|
2594
|
+
import_editor_ui8.WarningInfotip,
|
|
2590
2595
|
{
|
|
2591
2596
|
open: Boolean(error),
|
|
2592
2597
|
text: error ?? "",
|
|
@@ -2625,7 +2630,7 @@ var ComponentItem = ({ component, renameComponent: renameComponent2 }) => {
|
|
|
2625
2630
|
},
|
|
2626
2631
|
/* @__PURE__ */ React15.createElement(import_ui13.ListItemIcon, { size: "tiny" }, /* @__PURE__ */ React15.createElement(import_icons9.ComponentsIcon, { fontSize: "tiny" })),
|
|
2627
2632
|
/* @__PURE__ */ React15.createElement(Indicator, { isActive: isEditing, isError: !!error }, /* @__PURE__ */ React15.createElement(import_ui13.Box, { display: "flex", flex: 1, minWidth: 0, flexGrow: 1 }, isEditing ? /* @__PURE__ */ React15.createElement(
|
|
2628
|
-
|
|
2633
|
+
import_editor_ui8.EditableField,
|
|
2629
2634
|
{
|
|
2630
2635
|
ref: editableRef,
|
|
2631
2636
|
as: import_ui13.Typography,
|
|
@@ -2633,7 +2638,7 @@ var ComponentItem = ({ component, renameComponent: renameComponent2 }) => {
|
|
|
2633
2638
|
...getEditableProps()
|
|
2634
2639
|
}
|
|
2635
2640
|
) : /* @__PURE__ */ React15.createElement(
|
|
2636
|
-
|
|
2641
|
+
import_editor_ui8.EllipsisWithTooltip,
|
|
2637
2642
|
{
|
|
2638
2643
|
title: component.name,
|
|
2639
2644
|
as: import_ui13.Typography,
|
|
@@ -2658,7 +2663,7 @@ var ComponentItem = ({ component, renameComponent: renameComponent2 }) => {
|
|
|
2658
2663
|
}
|
|
2659
2664
|
},
|
|
2660
2665
|
canRename && /* @__PURE__ */ React15.createElement(
|
|
2661
|
-
|
|
2666
|
+
import_editor_ui8.MenuListItem,
|
|
2662
2667
|
{
|
|
2663
2668
|
sx: { minWidth: "160px" },
|
|
2664
2669
|
primaryTypographyProps: { variant: "caption", color: "text.primary" },
|
|
@@ -2670,7 +2675,7 @@ var ComponentItem = ({ component, renameComponent: renameComponent2 }) => {
|
|
|
2670
2675
|
(0, import_i18n19.__)("Rename", "elementor")
|
|
2671
2676
|
),
|
|
2672
2677
|
canDelete && /* @__PURE__ */ React15.createElement(
|
|
2673
|
-
|
|
2678
|
+
import_editor_ui8.MenuListItem,
|
|
2674
2679
|
{
|
|
2675
2680
|
sx: { minWidth: "160px" },
|
|
2676
2681
|
primaryTypographyProps: { variant: "caption", color: "error.light" },
|
|
@@ -2929,11 +2934,11 @@ var useFilteredComponents = () => {
|
|
|
2929
2934
|
|
|
2930
2935
|
// src/components/components-tab/components-pro-notification.tsx
|
|
2931
2936
|
var React18 = __toESM(require("react"));
|
|
2932
|
-
var
|
|
2937
|
+
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
2933
2938
|
var import_ui16 = require("@elementor/ui");
|
|
2934
2939
|
var import_i18n21 = require("@wordpress/i18n");
|
|
2935
2940
|
function ComponentsProNotification() {
|
|
2936
|
-
return /* @__PURE__ */ React18.createElement(import_ui16.Box, { sx: { px: 2 } }, /* @__PURE__ */ React18.createElement(
|
|
2941
|
+
return /* @__PURE__ */ React18.createElement(import_ui16.Box, { sx: { px: 2 } }, /* @__PURE__ */ React18.createElement(import_editor_ui9.InfoAlert, null, /* @__PURE__ */ React18.createElement(import_ui16.Typography, { variant: "caption", component: "span" }, /* @__PURE__ */ React18.createElement(import_ui16.Typography, { variant: "caption", component: "span", fontWeight: "bold" }, (0, import_i18n21.__)("Try Components for free:", "elementor")), " ", (0, import_i18n21.__)(
|
|
2937
2942
|
"Soon Components will be part of the Pro subscription, but what you create now will remain on your site.",
|
|
2938
2943
|
"elementor"
|
|
2939
2944
|
))));
|
|
@@ -2946,7 +2951,7 @@ var ComponentsContent = () => {
|
|
|
2946
2951
|
return /* @__PURE__ */ React19.createElement(React19.Fragment, null, hasComponents && /* @__PURE__ */ React19.createElement(ComponentSearch, null), hasComponents && !isProUser() && /* @__PURE__ */ React19.createElement(ComponentsProNotification, null), /* @__PURE__ */ React19.createElement(ComponentsList, null));
|
|
2947
2952
|
};
|
|
2948
2953
|
var Components = () => {
|
|
2949
|
-
return /* @__PURE__ */ React19.createElement(
|
|
2954
|
+
return /* @__PURE__ */ React19.createElement(import_editor_ui10.ThemeProvider, null, /* @__PURE__ */ React19.createElement(SearchProvider, { localStorageKey: "elementor-components-search" }, /* @__PURE__ */ React19.createElement(ComponentsContent, null)));
|
|
2950
2955
|
};
|
|
2951
2956
|
|
|
2952
2957
|
// src/components/consts.ts
|
|
@@ -2958,7 +2963,7 @@ var React20 = __toESM(require("react"));
|
|
|
2958
2963
|
var import_react11 = require("react");
|
|
2959
2964
|
var import_editor_elements10 = require("@elementor/editor-elements");
|
|
2960
2965
|
var import_editor_notifications3 = require("@elementor/editor-notifications");
|
|
2961
|
-
var
|
|
2966
|
+
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
2962
2967
|
var import_icons11 = require("@elementor/icons");
|
|
2963
2968
|
var import_store47 = require("@elementor/store");
|
|
2964
2969
|
var import_ui17 = require("@elementor/ui");
|
|
@@ -3272,7 +3277,7 @@ function CreateComponentForm() {
|
|
|
3272
3277
|
...eventData.current
|
|
3273
3278
|
});
|
|
3274
3279
|
};
|
|
3275
|
-
return /* @__PURE__ */ React20.createElement(
|
|
3280
|
+
return /* @__PURE__ */ React20.createElement(import_editor_ui11.ThemeProvider, null, /* @__PURE__ */ React20.createElement(
|
|
3276
3281
|
import_ui17.Popover,
|
|
3277
3282
|
{
|
|
3278
3283
|
open: element !== null,
|
|
@@ -3322,7 +3327,7 @@ var Form2 = ({
|
|
|
3322
3327
|
create: (0, import_i18n23.__)("Create", "elementor")
|
|
3323
3328
|
};
|
|
3324
3329
|
const nameInputId = "component-name";
|
|
3325
|
-
return /* @__PURE__ */ React20.createElement(
|
|
3330
|
+
return /* @__PURE__ */ React20.createElement(import_editor_ui11.Form, { onSubmit: handleSubmit }, /* @__PURE__ */ React20.createElement(import_ui17.Stack, { alignItems: "start", width: "268px" }, /* @__PURE__ */ React20.createElement(
|
|
3326
3331
|
import_ui17.Stack,
|
|
3327
3332
|
{
|
|
3328
3333
|
direction: "row",
|
|
@@ -3646,12 +3651,12 @@ function getComponentDOMElements(id2) {
|
|
|
3646
3651
|
|
|
3647
3652
|
// src/components/in-edit-mode.tsx
|
|
3648
3653
|
var React23 = __toESM(require("react"));
|
|
3649
|
-
var
|
|
3654
|
+
var import_editor_ui12 = require("@elementor/editor-ui");
|
|
3650
3655
|
var import_icons12 = require("@elementor/icons");
|
|
3651
3656
|
var import_ui18 = require("@elementor/ui");
|
|
3652
3657
|
var import_i18n25 = require("@wordpress/i18n");
|
|
3653
3658
|
var openEditModeDialog = (lockedBy) => {
|
|
3654
|
-
(0,
|
|
3659
|
+
(0, import_editor_ui12.openDialog)({
|
|
3655
3660
|
component: /* @__PURE__ */ React23.createElement(EditModeDialog, { lockedBy })
|
|
3656
3661
|
});
|
|
3657
3662
|
};
|
|
@@ -3660,7 +3665,7 @@ var EditModeDialog = ({ lockedBy }) => {
|
|
|
3660
3665
|
return /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(import_ui18.DialogHeader, { logo: false }, /* @__PURE__ */ React23.createElement(import_ui18.Box, { display: "flex", alignItems: "center", gap: 1 }, /* @__PURE__ */ React23.createElement(import_ui18.Icon, { color: "secondary" }, /* @__PURE__ */ React23.createElement(import_icons12.InfoCircleFilledIcon, { fontSize: "medium" })), /* @__PURE__ */ React23.createElement(import_ui18.Typography, { variant: "subtitle1" }, content))), /* @__PURE__ */ React23.createElement(import_ui18.DialogContent, null, /* @__PURE__ */ React23.createElement(import_ui18.Stack, { spacing: 2, direction: "column" }, /* @__PURE__ */ React23.createElement(import_ui18.Typography, { variant: "body2" }, (0, import_i18n25.__)(
|
|
3661
3666
|
"You can wait for them to finish or reach out to coordinate your changes together.",
|
|
3662
3667
|
"elementor"
|
|
3663
|
-
)), /* @__PURE__ */ React23.createElement(import_ui18.DialogActions, null, /* @__PURE__ */ React23.createElement(import_ui18.Button, { color: "secondary", variant: "contained", onClick:
|
|
3668
|
+
)), /* @__PURE__ */ React23.createElement(import_ui18.DialogActions, null, /* @__PURE__ */ React23.createElement(import_ui18.Button, { color: "secondary", variant: "contained", onClick: import_editor_ui12.closeDialog }, (0, import_i18n25.__)("Close", "elementor"))))));
|
|
3664
3669
|
};
|
|
3665
3670
|
|
|
3666
3671
|
// src/components/instance-editing-panel/instance-editing-panel.tsx
|
|
@@ -3668,8 +3673,8 @@ var React29 = __toESM(require("react"));
|
|
|
3668
3673
|
var import_editor_controls4 = require("@elementor/editor-controls");
|
|
3669
3674
|
var import_editor_editing_panel5 = require("@elementor/editor-editing-panel");
|
|
3670
3675
|
var import_editor_elements15 = require("@elementor/editor-elements");
|
|
3671
|
-
var
|
|
3672
|
-
var
|
|
3676
|
+
var import_editor_panels4 = require("@elementor/editor-panels");
|
|
3677
|
+
var import_editor_ui14 = require("@elementor/editor-ui");
|
|
3673
3678
|
var import_icons14 = require("@elementor/icons");
|
|
3674
3679
|
var import_ui23 = require("@elementor/ui");
|
|
3675
3680
|
var import_i18n27 = require("@wordpress/i18n");
|
|
@@ -3718,7 +3723,7 @@ var EmptyState2 = ({ onEditComponent }) => {
|
|
|
3718
3723
|
var React28 = __toESM(require("react"));
|
|
3719
3724
|
var import_react16 = require("react");
|
|
3720
3725
|
var import_editor_editing_panel4 = require("@elementor/editor-editing-panel");
|
|
3721
|
-
var
|
|
3726
|
+
var import_editor_ui13 = require("@elementor/editor-ui");
|
|
3722
3727
|
var import_ui22 = require("@elementor/ui");
|
|
3723
3728
|
|
|
3724
3729
|
// src/components/instance-editing-panel/override-prop-control.tsx
|
|
@@ -4074,7 +4079,7 @@ function OverridePropsGroup({ group, props, overrides }) {
|
|
|
4074
4079
|
sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
|
|
4075
4080
|
}
|
|
4076
4081
|
)),
|
|
4077
|
-
/* @__PURE__ */ React28.createElement(
|
|
4082
|
+
/* @__PURE__ */ React28.createElement(import_editor_ui13.CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
4078
4083
|
), /* @__PURE__ */ React28.createElement(import_ui22.Collapse, { id: contentId, "aria-labelledby": labelId, in: isOpen, timeout: "auto" }, /* @__PURE__ */ React28.createElement(import_ui22.Stack, { direction: "column", gap: 1, p: 2 }, group.props.map((overrideKey) => /* @__PURE__ */ React28.createElement(
|
|
4079
4084
|
OverridePropControl,
|
|
4080
4085
|
{
|
|
@@ -4102,7 +4107,7 @@ function InstanceEditingPanel() {
|
|
|
4102
4107
|
const isNonEmptyGroup = (group) => group !== null && group.props.length > 0;
|
|
4103
4108
|
const groups = overridableProps.groups.order.map((groupId) => overridableProps.groups.items[groupId] ?? null).filter(isNonEmptyGroup);
|
|
4104
4109
|
const isEmpty = groups.length === 0 || Object.keys(overridableProps.props).length === 0;
|
|
4105
|
-
return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(
|
|
4110
|
+
return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(import_editor_panels4.PanelHeader, { sx: { justifyContent: "start", px: 2 } }, /* @__PURE__ */ React29.createElement(import_ui23.Stack, { direction: "row", alignItems: "center", flexGrow: 1, gap: 1, maxWidth: "100%" }, /* @__PURE__ */ React29.createElement(import_icons14.ComponentsIcon, { fontSize: "small", sx: { color: "text.tertiary" } }), /* @__PURE__ */ React29.createElement(import_editor_ui14.EllipsisWithTooltip, { title: component.name, as: import_editor_panels4.PanelHeaderTitle, sx: { flexGrow: 1 } }), canEdit && /* @__PURE__ */ React29.createElement(import_ui23.Tooltip, { title: panelTitle }, /* @__PURE__ */ React29.createElement(import_ui23.IconButton, { size: "tiny", onClick: handleEditComponent, "aria-label": panelTitle }, /* @__PURE__ */ React29.createElement(import_icons14.PencilIcon, { fontSize: "tiny" }))))), /* @__PURE__ */ React29.createElement(import_editor_panels4.PanelBody, null, /* @__PURE__ */ React29.createElement(import_editor_controls4.ControlAdornmentsProvider, { items: (0, import_editor_editing_panel5.getFieldIndicators)("settings") }, isEmpty ? /* @__PURE__ */ React29.createElement(EmptyState2, { onEditComponent: handleEditComponent }) : /* @__PURE__ */ React29.createElement(import_ui23.Stack, { direction: "column", alignItems: "stretch" }, groups.map((group) => /* @__PURE__ */ React29.createElement(React29.Fragment, { key: group.id }, /* @__PURE__ */ React29.createElement(
|
|
4106
4111
|
OverridePropsGroup,
|
|
4107
4112
|
{
|
|
4108
4113
|
group,
|
|
@@ -5346,7 +5351,7 @@ function hasOverrides(settings) {
|
|
|
5346
5351
|
function init() {
|
|
5347
5352
|
import_editor_styles_repository2.stylesRepository.register(componentsStylesProvider);
|
|
5348
5353
|
(0, import_store80.__registerSlice)(slice);
|
|
5349
|
-
(0,
|
|
5354
|
+
(0, import_editor_panels5.__registerPanel)(panel);
|
|
5350
5355
|
(0, import_editor_canvas8.registerElementType)(
|
|
5351
5356
|
COMPONENT_WIDGET_TYPE,
|
|
5352
5357
|
(options) => createComponentType({ ...options, showLockedByModal: openEditModeDialog })
|