@elementor/editor-editing-panel 4.4.0-1140 → 4.4.0-1142

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
@@ -624,12 +624,6 @@ var getStylesProviderThemeColor = (provider) => {
624
624
  }
625
625
  return getStyleProviderColors(provider).getThemeColor;
626
626
  };
627
- function getTempStylesProviderThemeColor(provider) {
628
- if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
629
- return (theme) => theme.palette.primary.main;
630
- }
631
- return getStylesProviderThemeColor(provider);
632
- }
633
627
 
634
628
  // src/utils/tracking/subscribe.ts
635
629
  var import_editor_styles_repository3 = require("@elementor/editor-styles-repository");
@@ -1190,7 +1184,7 @@ function StateMenuItem({ state, label, closeMenu, ...props }) {
1190
1184
  StyleIndicator,
1191
1185
  {
1192
1186
  "aria-label": (0, import_i18n5.__)("Has style", "elementor"),
1193
- getColor: getTempStylesProviderThemeColor(provider ?? "")
1187
+ getColor: getStylesProviderThemeColor(provider ?? "")
1194
1188
  }
1195
1189
  ), label)
1196
1190
  )
@@ -1289,7 +1283,7 @@ function CssClassItem(props) {
1289
1283
  openEditMode();
1290
1284
  }
1291
1285
  }, [id, convertedFromLocalId]);
1292
- return /* @__PURE__ */ React11.createElement(import_ui7.ThemeProvider, { palette: "default" }, /* @__PURE__ */ React11.createElement(
1286
+ return /* @__PURE__ */ React11.createElement(import_editor_ui3.ThemeProvider, null, /* @__PURE__ */ React11.createElement(
1293
1287
  import_ui7.UnstableChipGroup,
1294
1288
  {
1295
1289
  ref: setChipRef,
@@ -1406,7 +1400,7 @@ var EMPTY_OPTION = {
1406
1400
  label: (0, import_i18n8.__)("local", "elementor"),
1407
1401
  value: null,
1408
1402
  fixed: true,
1409
- color: getTempStylesProviderColorName("accent"),
1403
+ color: "accent",
1410
1404
  icon: /* @__PURE__ */ React13.createElement(import_icons4.MapPinIcon, null),
1411
1405
  provider: null
1412
1406
  };
@@ -1574,19 +1568,13 @@ function useOptions() {
1574
1568
  label: styleDef.label,
1575
1569
  value: styleDef.id,
1576
1570
  fixed: isElements,
1577
- color: getTempStylesProviderColorName(getStylesProviderColorName(provider.getKey())),
1571
+ color: getStylesProviderColorName(provider.getKey()),
1578
1572
  icon: isElements ? /* @__PURE__ */ React13.createElement(import_icons4.MapPinIcon, null) : null,
1579
1573
  provider: provider.getKey()
1580
1574
  };
1581
1575
  });
1582
1576
  });
1583
1577
  }
1584
- function getTempStylesProviderColorName(color) {
1585
- if (color === "accent") {
1586
- return "primary";
1587
- }
1588
- return color;
1589
- }
1590
1578
  function useCreateAction() {
1591
1579
  const [provider, createAction] = useCreateAndApplyClass();
1592
1580
  if (!provider || !createAction) {
@@ -1990,7 +1978,7 @@ var React93 = __toESM(require("react"));
1990
1978
  var import_editor_controls55 = require("@elementor/editor-controls");
1991
1979
  var import_editor_elements15 = require("@elementor/editor-elements");
1992
1980
  var import_editor_panels = require("@elementor/editor-panels");
1993
- var import_editor_ui8 = require("@elementor/editor-ui");
1981
+ var import_editor_ui9 = require("@elementor/editor-ui");
1994
1982
  var import_icons28 = require("@elementor/icons");
1995
1983
  var import_locations5 = require("@elementor/locations");
1996
1984
  var import_menus = require("@elementor/menus");
@@ -3425,10 +3413,11 @@ function useDirection() {
3425
3413
 
3426
3414
  // src/styles-inheritance/components/ui-providers.tsx
3427
3415
  var React33 = __toESM(require("react"));
3416
+ var import_editor_ui6 = require("@elementor/editor-ui");
3428
3417
  var import_ui20 = require("@elementor/ui");
3429
3418
  var UiProviders = ({ children }) => {
3430
3419
  const { isSiteRtl } = useDirection();
3431
- return /* @__PURE__ */ React33.createElement(import_ui20.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React33.createElement(import_ui20.ThemeProvider, null, children));
3420
+ return /* @__PURE__ */ React33.createElement(import_ui20.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React33.createElement(import_editor_ui6.ThemeProvider, null, children));
3432
3421
  };
3433
3422
 
3434
3423
  // src/components/style-sections/border-section/border-radius-field.tsx
@@ -3694,7 +3683,7 @@ function useComputedStyle(elementId) {
3694
3683
 
3695
3684
  // src/components/style-tab-collapsible-content.tsx
3696
3685
  var React43 = __toESM(require("react"));
3697
- var import_editor_ui6 = require("@elementor/editor-ui");
3686
+ var import_editor_ui7 = require("@elementor/editor-ui");
3698
3687
 
3699
3688
  // src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
3700
3689
  var React42 = __toESM(require("react"));
@@ -3764,7 +3753,7 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
3764
3753
 
3765
3754
  // src/components/style-tab-collapsible-content.tsx
3766
3755
  var StyleTabCollapsibleContent = ({ fields = [], children }) => {
3767
- return /* @__PURE__ */ React43.createElement(import_editor_ui6.CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
3756
+ return /* @__PURE__ */ React43.createElement(import_editor_ui7.CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
3768
3757
  };
3769
3758
  function getStylesInheritanceIndicators(fields) {
3770
3759
  if (fields.length === 0) {
@@ -5193,12 +5182,12 @@ var ColumnGapField = () => {
5193
5182
  // src/components/style-sections/typography-section/font-family-field.tsx
5194
5183
  var React74 = __toESM(require("react"));
5195
5184
  var import_editor_controls42 = require("@elementor/editor-controls");
5196
- var import_editor_ui7 = require("@elementor/editor-ui");
5185
+ var import_editor_ui8 = require("@elementor/editor-ui");
5197
5186
  var import_i18n51 = require("@wordpress/i18n");
5198
5187
  var FONT_FAMILY_LABEL = (0, import_i18n51.__)("Font family", "elementor");
5199
5188
  var FontFamilyField = () => {
5200
5189
  const fontFamilies = (0, import_editor_controls42.useFontFamilies)();
5201
- const sectionWidth = (0, import_editor_ui7.useSectionWidth)();
5190
+ const sectionWidth = (0, import_editor_ui8.useSectionWidth)();
5202
5191
  if (fontFamilies.length === 0) {
5203
5192
  return null;
5204
5193
  }
@@ -5822,12 +5811,12 @@ var EditingPanel = () => {
5822
5811
  if (ReplacementComponent) {
5823
5812
  panelContent = /* @__PURE__ */ React93.createElement(ReplacementComponent, null);
5824
5813
  }
5825
- return /* @__PURE__ */ React93.createElement(import_ui46.ErrorBoundary, { fallback: /* @__PURE__ */ React93.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React93.createElement(import_session9.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React93.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React93.createElement(import_editor_controls55.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React93.createElement(import_editor_controls55.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React93.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React93.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React93.createElement(PanelHeaderTopSlot, null), panelContent)))))));
5814
+ return /* @__PURE__ */ React93.createElement(import_ui46.ErrorBoundary, { fallback: /* @__PURE__ */ React93.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React93.createElement(import_session9.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React93.createElement(import_editor_ui9.ThemeProvider, null, /* @__PURE__ */ React93.createElement(import_editor_controls55.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React93.createElement(import_editor_controls55.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React93.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React93.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React93.createElement(PanelHeaderTopSlot, null), panelContent)))))));
5826
5815
  };
5827
5816
 
5828
5817
  // src/components/style-states/pseudo-state-menu-items.tsx
5829
5818
  var React94 = __toESM(require("react"));
5830
- var import_editor_ui9 = require("@elementor/editor-ui");
5819
+ var import_editor_ui10 = require("@elementor/editor-ui");
5831
5820
  var import_ui47 = require("@elementor/ui");
5832
5821
  var import_i18n67 = require("@wordpress/i18n");
5833
5822
  function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
@@ -5843,7 +5832,7 @@ function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
5843
5832
  },
5844
5833
  (0, import_i18n67.__)("States", "elementor")
5845
5834
  ), states.map((state) => /* @__PURE__ */ React94.createElement(
5846
- import_editor_ui9.MenuListItem,
5835
+ import_editor_ui10.MenuListItem,
5847
5836
  {
5848
5837
  key: state.key,
5849
5838
  selected: state.value === activeState,
@@ -7189,7 +7178,7 @@ var Content = ({ rawValue }) => {
7189
7178
  // src/dynamics/components/dynamic-selection-control.tsx
7190
7179
  var React103 = __toESM(require("react"));
7191
7180
  var import_editor_controls66 = require("@elementor/editor-controls");
7192
- var import_editor_ui11 = require("@elementor/editor-ui");
7181
+ var import_editor_ui12 = require("@elementor/editor-ui");
7193
7182
  var import_icons32 = require("@elementor/icons");
7194
7183
  var import_ui52 = require("@elementor/ui");
7195
7184
  var import_i18n78 = require("@wordpress/i18n");
@@ -7292,7 +7281,7 @@ var DynamicControl = ({ bind, children }) => {
7292
7281
  var React102 = __toESM(require("react"));
7293
7282
  var import_react47 = require("react");
7294
7283
  var import_editor_controls65 = require("@elementor/editor-controls");
7295
- var import_editor_ui10 = require("@elementor/editor-ui");
7284
+ var import_editor_ui11 = require("@elementor/editor-ui");
7296
7285
  var import_icons31 = require("@elementor/icons");
7297
7286
  var import_ui51 = require("@elementor/ui");
7298
7287
  var import_i18n77 = require("@wordpress/i18n");
@@ -7348,14 +7337,14 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7348
7337
  return /* @__PURE__ */ React102.createElement(ExpiredDynamicTags, null);
7349
7338
  }
7350
7339
  return /* @__PURE__ */ React102.createElement(import_react47.Fragment, null, /* @__PURE__ */ React102.createElement(
7351
- import_editor_ui10.SearchField,
7340
+ import_editor_ui11.SearchField,
7352
7341
  {
7353
7342
  value: searchValue,
7354
7343
  onSearch: handleSearch,
7355
7344
  placeholder: (0, import_i18n77.__)("Search dynamic tags\u2026", "elementor")
7356
7345
  }
7357
7346
  ), /* @__PURE__ */ React102.createElement(import_ui51.Divider, null), /* @__PURE__ */ React102.createElement(
7358
- import_editor_ui10.PopoverMenuList,
7347
+ import_editor_ui11.PopoverMenuList,
7359
7348
  {
7360
7349
  items: virtualizedItems,
7361
7350
  onSelect: handleSetDynamicTag,
@@ -7366,8 +7355,8 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7366
7355
  }
7367
7356
  ));
7368
7357
  };
7369
- return /* @__PURE__ */ React102.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n77.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React102.createElement(
7370
- import_editor_ui10.PopoverHeader,
7358
+ return /* @__PURE__ */ React102.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n77.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React102.createElement(
7359
+ import_editor_ui11.PopoverHeader,
7371
7360
  {
7372
7361
  title: (0, import_i18n77.__)("Dynamic tags", "elementor"),
7373
7362
  onClose: closePopover,
@@ -7405,7 +7394,7 @@ var NoDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragme
7405
7394
  /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n77.__)("Streamline your workflow with dynamic tags", "elementor")),
7406
7395
  /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n77.__)("Upgrade now to display your content dynamically.", "elementor")),
7407
7396
  /* @__PURE__ */ React102.createElement(
7408
- import_editor_ui10.CtaButton,
7397
+ import_editor_ui11.CtaButton,
7409
7398
  {
7410
7399
  size: "small",
7411
7400
  href: PRO_DYNAMIC_TAGS_URL,
@@ -7428,7 +7417,7 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.F
7428
7417
  /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n77.__)("Unlock your Dynamic tags again", "elementor")),
7429
7418
  /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n77.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
7430
7419
  /* @__PURE__ */ React102.createElement(
7431
- import_editor_ui10.CtaButton,
7420
+ import_editor_ui11.CtaButton,
7432
7421
  {
7433
7422
  size: "small",
7434
7423
  href: RENEW_DYNAMIC_TAGS_URL,
@@ -7508,7 +7497,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
7508
7497
  },
7509
7498
  ...(0, import_ui52.bindPopover)(selectionPopoverState)
7510
7499
  },
7511
- /* @__PURE__ */ React103.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n78.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React103.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
7500
+ /* @__PURE__ */ React103.createElement(import_editor_ui12.SectionPopoverBody, { "aria-label": (0, import_i18n78.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React103.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
7512
7501
  ));
7513
7502
  };
7514
7503
  var DynamicSettingsPopover = ({
@@ -7541,8 +7530,8 @@ var DynamicSettingsPopover = ({
7541
7530
  },
7542
7531
  ...(0, import_ui52.bindPopover)(popupState)
7543
7532
  },
7544
- /* @__PURE__ */ React103.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n78.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React103.createElement(
7545
- import_editor_ui11.PopoverHeader,
7533
+ /* @__PURE__ */ React103.createElement(import_editor_ui12.SectionPopoverBody, { "aria-label": (0, import_i18n78.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React103.createElement(
7534
+ import_editor_ui12.PopoverHeader,
7546
7535
  {
7547
7536
  title: dynamicTag.label,
7548
7537
  onClose: popupState.close,
@@ -7819,7 +7808,7 @@ var import_i18n84 = require("@wordpress/i18n");
7819
7808
  var React109 = __toESM(require("react"));
7820
7809
  var import_react49 = require("react");
7821
7810
  var import_editor_canvas5 = require("@elementor/editor-canvas");
7822
- var import_editor_ui12 = require("@elementor/editor-ui");
7811
+ var import_editor_ui13 = require("@elementor/editor-ui");
7823
7812
  var import_ui57 = require("@elementor/ui");
7824
7813
  var import_i18n83 = require("@wordpress/i18n");
7825
7814
 
@@ -8013,7 +8002,7 @@ var StylesInheritanceInfotip = ({
8013
8002
  setShowInfotip(false);
8014
8003
  };
8015
8004
  const key = path.join(".");
8016
- const sectionWidth = (0, import_editor_ui12.useSectionWidth)();
8005
+ const sectionWidth = (0, import_editor_ui13.useSectionWidth)();
8017
8006
  const resolve = (0, import_react49.useMemo)(() => {
8018
8007
  return (0, import_editor_canvas5.createPropsResolver)({
8019
8008
  transformers: import_editor_canvas5.stylesInheritanceTransformersRegistry,
@@ -8044,7 +8033,7 @@ var StylesInheritanceInfotip = ({
8044
8033
  backgroundColor: "background.paper"
8045
8034
  }
8046
8035
  },
8047
- /* @__PURE__ */ React109.createElement(import_editor_ui12.PopoverHeader, { title: (0, import_i18n83.__)("Style origin", "elementor"), onClose: closeInfotip })
8036
+ /* @__PURE__ */ React109.createElement(import_editor_ui13.PopoverHeader, { title: (0, import_i18n83.__)("Style origin", "elementor"), onClose: closeInfotip })
8048
8037
  ),
8049
8038
  /* @__PURE__ */ React109.createElement(
8050
8039
  import_ui57.CardContent,
@@ -8270,7 +8259,7 @@ var getGradientValue = (gradient) => {
8270
8259
  // src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
8271
8260
  var React114 = __toESM(require("react"));
8272
8261
  var import_editor_canvas9 = require("@elementor/editor-canvas");
8273
- var import_editor_ui13 = require("@elementor/editor-ui");
8262
+ var import_editor_ui14 = require("@elementor/editor-ui");
8274
8263
  var import_ui60 = require("@elementor/ui");
8275
8264
  var import_wp_media = require("@elementor/wp-media");
8276
8265
  var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React114.createElement(import_ui60.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(ItemIconImage, { value }), /* @__PURE__ */ React114.createElement(ItemLabelImage, { value })));
@@ -8292,7 +8281,7 @@ var ItemIconImage = ({ value }) => {
8292
8281
  };
8293
8282
  var ItemLabelImage = ({ value }) => {
8294
8283
  const { imageTitle } = useImage(value);
8295
- return /* @__PURE__ */ React114.createElement(import_editor_ui13.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React114.createElement("span", null, imageTitle));
8284
+ return /* @__PURE__ */ React114.createElement(import_editor_ui14.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React114.createElement("span", null, imageTitle));
8296
8285
  };
8297
8286
  var useImage = (image) => {
8298
8287
  let imageTitle, imageUrl = null;