@elementor/editor-components 3.35.0-347 → 3.35.0-349

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
@@ -278,25 +278,9 @@ var componentInstanceTransformer = (0, import_editor_canvas.createTransformer)(
278
278
 
279
279
  // src/component-overridable-transformer.ts
280
280
  var import_editor_canvas2 = require("@elementor/editor-canvas");
281
- var componentOverridableTransformer = (0, import_editor_canvas2.createTransformer)(
282
- async (value, options) => {
283
- return await transformOriginValue(value, options);
284
- }
285
- );
286
- async function transformOriginValue(value, options) {
287
- if (!value.origin_value || !value.origin_value.value || !value.origin_value.$$type) {
288
- return null;
289
- }
290
- const transformer = import_editor_canvas2.settingsTransformersRegistry.get(value.origin_value.$$type);
291
- if (!transformer) {
292
- return null;
293
- }
294
- try {
295
- return await transformer(value.origin_value.value, options);
296
- } catch {
297
- return null;
298
- }
299
- }
281
+ var componentOverridableTransformer = (0, import_editor_canvas2.createTransformer)((value) => {
282
+ return value.origin_value;
283
+ });
300
284
 
301
285
  // src/components/component-panel-header/component-panel-header.tsx
302
286
  var React2 = __toESM(require("react"));
@@ -896,21 +880,47 @@ var ComponentItem = ({ component }) => {
896
880
  }
897
881
  archiveComponent(component.id);
898
882
  };
899
- return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
883
+ return /* @__PURE__ */ React5.createElement(import_ui4.Stack, null, /* @__PURE__ */ React5.createElement(
900
884
  import_ui4.ListItemButton,
901
885
  {
902
886
  draggable: true,
903
887
  onDragStart: () => (0, import_editor_canvas4.startDragElementFromPanel)(componentModel),
904
888
  onDragEnd: handleDragEnd,
905
889
  shape: "rounded",
906
- sx: { border: "solid 1px", borderColor: "divider", py: 0.5, px: 1 }
890
+ sx: {
891
+ border: "solid 1px",
892
+ borderColor: "divider",
893
+ py: 0.5,
894
+ px: 1,
895
+ display: "flex",
896
+ width: "100%",
897
+ alignItems: "center",
898
+ gap: 1
899
+ }
907
900
  },
908
- /* @__PURE__ */ React5.createElement(import_ui4.Box, { sx: { display: "flex", width: "100%", alignItems: "center", gap: 1 }, onClick: handleClick }, /* @__PURE__ */ React5.createElement(import_ui4.ListItemIcon, { size: "tiny" }, /* @__PURE__ */ React5.createElement(import_icons4.ComponentsIcon, { fontSize: "tiny" })), /* @__PURE__ */ React5.createElement(
909
- import_ui4.ListItemText,
901
+ /* @__PURE__ */ React5.createElement(
902
+ import_ui4.Box,
910
903
  {
911
- primary: /* @__PURE__ */ React5.createElement(import_ui4.Typography, { variant: "caption", sx: { color: "text.primary" } }, component.name)
912
- }
913
- )),
904
+ onClick: handleClick,
905
+ sx: {
906
+ display: "flex",
907
+ alignItems: "center",
908
+ gap: 1,
909
+ minWidth: 0,
910
+ flexGrow: 1
911
+ }
912
+ },
913
+ /* @__PURE__ */ React5.createElement(import_ui4.ListItemIcon, { size: "tiny" }, /* @__PURE__ */ React5.createElement(import_icons4.ComponentsIcon, { fontSize: "tiny" })),
914
+ /* @__PURE__ */ React5.createElement(import_ui4.Box, { display: "flex", flex: 1, minWidth: 0, flexGrow: 1 }, /* @__PURE__ */ React5.createElement(
915
+ import_editor_ui.EllipsisWithTooltip,
916
+ {
917
+ title: component.name,
918
+ as: import_ui4.Typography,
919
+ variant: "caption",
920
+ color: "text.primary"
921
+ }
922
+ ))
923
+ ),
914
924
  /* @__PURE__ */ React5.createElement(import_ui4.IconButton, { size: "tiny", ...(0, import_ui4.bindTrigger)(popupState), "aria-label": "More actions" }, /* @__PURE__ */ React5.createElement(import_icons4.DotsVerticalIcon, { fontSize: "tiny" }))
915
925
  ), /* @__PURE__ */ React5.createElement(
916
926
  import_ui4.Menu,