@elementor/editor-controls 4.4.0-1141 → 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
@@ -7071,6 +7071,7 @@ function createIconPropValue(icon, library) {
7071
7071
 
7072
7072
  // src/controls/svg-media-overlay.tsx
7073
7073
  var React91 = __toESM(require("react"));
7074
+ var import_editor_ui13 = require("@elementor/editor-ui");
7074
7075
  var import_icons27 = require("@elementor/icons");
7075
7076
  var import_ui74 = require("@elementor/ui");
7076
7077
  var import_i18n39 = require("@wordpress/i18n");
@@ -7125,7 +7126,7 @@ var UploadControl = ({ isAdmin, onUpload }) => {
7125
7126
  if (isAdmin) {
7126
7127
  return /* @__PURE__ */ React91.createElement(MediaUploadButton, { onClick: onUpload });
7127
7128
  }
7128
- return /* @__PURE__ */ React91.createElement(import_ui74.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React91.createElement(MediaUploadButton, { disabled: true }));
7129
+ return /* @__PURE__ */ React91.createElement(import_editor_ui13.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React91.createElement(MediaUploadButton, { disabled: true }));
7129
7130
  };
7130
7131
 
7131
7132
  // src/controls/svg-media-preview.tsx
@@ -7561,7 +7562,7 @@ var BackgroundImageOverlayAttachment = () => {
7561
7562
  var React97 = __toESM(require("react"));
7562
7563
  var import_react58 = require("react");
7563
7564
  var import_editor_props38 = require("@elementor/editor-props");
7564
- var import_editor_ui13 = require("@elementor/editor-ui");
7565
+ var import_editor_ui14 = require("@elementor/editor-ui");
7565
7566
  var import_icons29 = require("@elementor/icons");
7566
7567
  var import_ui80 = require("@elementor/ui");
7567
7568
  var import_i18n44 = require("@wordpress/i18n");
@@ -7599,7 +7600,7 @@ var BackgroundImageOverlayPosition = () => {
7599
7600
  disabled: stringPropContext.disabled,
7600
7601
  value: (backgroundImageOffsetContext.value ? "custom" : stringPropContext.value) ?? ""
7601
7602
  },
7602
- backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */ React97.createElement(import_editor_ui13.MenuListItem, { key: value, value: value ?? "" }, label))
7603
+ backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */ React97.createElement(import_editor_ui14.MenuListItem, { key: value, value: value ?? "" }, label))
7603
7604
  ))))), isCustom ? /* @__PURE__ */ React97.createElement(PropProvider, { ...backgroundImageOffsetContext }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React97.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React97.createElement(
7604
7605
  SizeControl,
7605
7606
  {
@@ -8262,7 +8263,7 @@ var KeyValueControl = createControl((props = {}) => {
8262
8263
  // src/controls/position-control.tsx
8263
8264
  var React104 = __toESM(require("react"));
8264
8265
  var import_editor_props45 = require("@elementor/editor-props");
8265
- var import_editor_ui14 = require("@elementor/editor-ui");
8266
+ var import_editor_ui15 = require("@elementor/editor-ui");
8266
8267
  var import_icons32 = require("@elementor/icons");
8267
8268
  var import_ui88 = require("@elementor/ui");
8268
8269
  var import_i18n50 = require("@wordpress/i18n");
@@ -8302,7 +8303,7 @@ var PositionControl = () => {
8302
8303
  renderValue: (selectedValue) => getSelectRenderValue(positionOptions, placeholder, selectedValue),
8303
8304
  fullWidth: true
8304
8305
  },
8305
- positionOptions.map(({ label, value }) => /* @__PURE__ */ React104.createElement(import_editor_ui14.MenuListItem, { key: value, value: value ?? "" }, label))
8306
+ positionOptions.map(({ label, value }) => /* @__PURE__ */ React104.createElement(import_editor_ui15.MenuListItem, { key: value, value: value ?? "" }, label))
8306
8307
  )))), isCustom && /* @__PURE__ */ React104.createElement(PropProvider, { ...positionContext }, /* @__PURE__ */ React104.createElement(import_ui88.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React104.createElement(import_ui88.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React104.createElement(import_ui88.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React104.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React104.createElement(
8307
8308
  SizeControl,
8308
8309
  {
@@ -8716,7 +8717,7 @@ var Label2 = ({ label, value }) => {
8716
8717
 
8717
8718
  // src/controls/transform-control/transform-settings-control.tsx
8718
8719
  var React116 = __toESM(require("react"));
8719
- var import_editor_ui15 = require("@elementor/editor-ui");
8720
+ var import_editor_ui16 = require("@elementor/editor-ui");
8720
8721
  var import_icons38 = require("@elementor/icons");
8721
8722
  var import_ui100 = require("@elementor/ui");
8722
8723
  var import_i18n59 = require("@wordpress/i18n");
@@ -8820,7 +8821,7 @@ var TransformSettingsControl = ({
8820
8821
  ...popupProps
8821
8822
  },
8822
8823
  /* @__PURE__ */ React116.createElement(
8823
- import_editor_ui15.PopoverHeader,
8824
+ import_editor_ui16.PopoverHeader,
8824
8825
  {
8825
8826
  title: (0, import_i18n59.__)("Transform settings", "elementor"),
8826
8827
  onClose: popupState.close,
@@ -9149,7 +9150,7 @@ function subscribeToTransitionEvent() {
9149
9150
  var React119 = __toESM(require("react"));
9150
9151
  var import_react72 = require("react");
9151
9152
  var import_editor_props56 = require("@elementor/editor-props");
9152
- var import_editor_ui16 = require("@elementor/editor-ui");
9153
+ var import_editor_ui17 = require("@elementor/editor-ui");
9153
9154
  var import_icons40 = require("@elementor/icons");
9154
9155
  var import_ui103 = require("@elementor/ui");
9155
9156
  var import_i18n62 = require("@wordpress/i18n");
@@ -9281,10 +9282,10 @@ var TransitionSelector = ({
9281
9282
  }
9282
9283
  },
9283
9284
  /* @__PURE__ */ React119.createElement("span", null, item.value),
9284
- showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React119.createElement(import_editor_ui16.PromotionChip, null)
9285
+ showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React119.createElement(import_editor_ui17.PromotionChip, null)
9285
9286
  ),
9286
9287
  footer: showPromotion ? /* @__PURE__ */ React119.createElement(
9287
- import_editor_ui16.PromotionAlert,
9288
+ import_editor_ui17.PromotionAlert,
9288
9289
  {
9289
9290
  message: (0, import_i18n62.__)(
9290
9291
  "Upgrade to customize transition properties and control effects.",
@@ -10313,13 +10314,13 @@ var InlineEditingControl = createControl(
10313
10314
  // src/controls/email-form-action-control/index.tsx
10314
10315
  var React133 = __toESM(require("react"));
10315
10316
  var import_editor_props68 = require("@elementor/editor-props");
10316
- var import_editor_ui18 = require("@elementor/editor-ui");
10317
+ var import_editor_ui19 = require("@elementor/editor-ui");
10317
10318
  var import_ui117 = require("@elementor/ui");
10318
10319
  var import_i18n69 = require("@wordpress/i18n");
10319
10320
 
10320
10321
  // src/controls/email-form-action-control/fields.tsx
10321
10322
  var React132 = __toESM(require("react"));
10322
- var import_editor_ui17 = require("@elementor/editor-ui");
10323
+ var import_editor_ui18 = require("@elementor/editor-ui");
10323
10324
  var import_ui116 = require("@elementor/ui");
10324
10325
  var import_i18n68 = require("@wordpress/i18n");
10325
10326
 
@@ -10542,7 +10543,7 @@ var SendToField = ({ placeholder }) => {
10542
10543
  placeholder,
10543
10544
  suggestions
10544
10545
  }
10545
- ), shouldShowMentionsInfo() && /* @__PURE__ */ React132.createElement(import_editor_ui17.InfoAlert, null, (0, import_i18n68.__)("Type @ or an email field name to insert its submitted value.", "elementor"))));
10546
+ ), shouldShowMentionsInfo() && /* @__PURE__ */ React132.createElement(import_editor_ui18.InfoAlert, null, (0, import_i18n68.__)("Type @ or an email field name to insert its submitted value.", "elementor"))));
10546
10547
  };
10547
10548
  var SubjectField = () => /* @__PURE__ */ React132.createElement(
10548
10549
  FieldValueMentionField,
@@ -10554,7 +10555,7 @@ var SubjectField = () => /* @__PURE__ */ React132.createElement(
10554
10555
  );
10555
10556
  var MessageField = () => {
10556
10557
  const suggestions = useFormFieldSuggestions();
10557
- return /* @__PURE__ */ React132.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React132.createElement(import_ui116.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React132.createElement(import_ui116.Grid, { item: true }, /* @__PURE__ */ React132.createElement(ControlFormLabel, null, (0, import_i18n68.__)("Message", "elementor"))), /* @__PURE__ */ React132.createElement(import_ui116.Grid, { item: true }, /* @__PURE__ */ React132.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React132.createElement(import_ui116.Grid, { item: true }, /* @__PURE__ */ React132.createElement(import_editor_ui17.InfoAlert, null, shouldShowMentionsInfo() ? (0, import_i18n68.__)(
10558
+ return /* @__PURE__ */ React132.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React132.createElement(import_ui116.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React132.createElement(import_ui116.Grid, { item: true }, /* @__PURE__ */ React132.createElement(ControlFormLabel, null, (0, import_i18n68.__)("Message", "elementor"))), /* @__PURE__ */ React132.createElement(import_ui116.Grid, { item: true }, /* @__PURE__ */ React132.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React132.createElement(import_ui116.Grid, { item: true }, /* @__PURE__ */ React132.createElement(import_editor_ui18.InfoAlert, null, shouldShowMentionsInfo() ? (0, import_i18n68.__)(
10558
10559
  "[all-fields] shortcode sends all fields. Type @ to insert specific fields and customize your message.",
10559
10560
  "elementor"
10560
10561
  ) : (0, import_i18n68.__)("[all-fields] shortcode sends all fields.", "elementor")))));
@@ -10624,15 +10625,15 @@ var EmailFormActionControl = createControl(
10624
10625
  return /* @__PURE__ */ React133.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React133.createElement(import_ui117.Stack, { gap: 2 }, /* @__PURE__ */ React133.createElement(ControlLabel, null, label ? label + " " + (0, import_i18n69.__)("settings", "elementor") : (0, import_i18n69.__)("Email settings", "elementor")), /* @__PURE__ */ React133.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React133.createElement(SubjectField, null), /* @__PURE__ */ React133.createElement(MessageField, null), /* @__PURE__ */ React133.createElement(FromEmailField, null), /* @__PURE__ */ React133.createElement(AdvancedSettings, null)));
10625
10626
  }
10626
10627
  );
10627
- var AdvancedSettings = () => /* @__PURE__ */ React133.createElement(import_editor_ui18.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React133.createElement(import_ui117.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React133.createElement(import_ui117.Stack, { gap: 2 }, /* @__PURE__ */ React133.createElement(FromNameField, null), /* @__PURE__ */ React133.createElement(ReplyToField, null), /* @__PURE__ */ React133.createElement(CcField, null), /* @__PURE__ */ React133.createElement(BccField, null), /* @__PURE__ */ React133.createElement(import_ui117.Divider, null), /* @__PURE__ */ React133.createElement(MetaDataField, null), /* @__PURE__ */ React133.createElement(SendAsField, null))));
10628
+ var AdvancedSettings = () => /* @__PURE__ */ React133.createElement(import_editor_ui19.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React133.createElement(import_ui117.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React133.createElement(import_ui117.Stack, { gap: 2 }, /* @__PURE__ */ React133.createElement(FromNameField, null), /* @__PURE__ */ React133.createElement(ReplyToField, null), /* @__PURE__ */ React133.createElement(CcField, null), /* @__PURE__ */ React133.createElement(BccField, null), /* @__PURE__ */ React133.createElement(import_ui117.Divider, null), /* @__PURE__ */ React133.createElement(MetaDataField, null), /* @__PURE__ */ React133.createElement(SendAsField, null))));
10628
10629
 
10629
10630
  // src/controls/attachment-type-control.tsx
10630
10631
  var React134 = __toESM(require("react"));
10631
- var import_editor_ui19 = require("@elementor/editor-ui");
10632
+ var import_editor_ui20 = require("@elementor/editor-ui");
10632
10633
  var import_ui118 = require("@elementor/ui");
10633
10634
  var import_i18n70 = require("@wordpress/i18n");
10634
10635
  var AttachmentTypeControl = createControl(({ label, options }) => {
10635
- return /* @__PURE__ */ React134.createElement(import_ui118.Grid, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React134.createElement(import_ui118.Grid, { item: true }, /* @__PURE__ */ React134.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React134.createElement(import_ui118.Grid, { item: true }, /* @__PURE__ */ React134.createElement(SelectControl, { options })), /* @__PURE__ */ React134.createElement(import_ui118.Grid, { item: true }, /* @__PURE__ */ React134.createElement(import_editor_ui19.InfoAlert, null, (0, import_i18n70.__)(
10636
+ return /* @__PURE__ */ React134.createElement(import_ui118.Grid, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React134.createElement(import_ui118.Grid, { item: true }, /* @__PURE__ */ React134.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React134.createElement(import_ui118.Grid, { item: true }, /* @__PURE__ */ React134.createElement(SelectControl, { options })), /* @__PURE__ */ React134.createElement(import_ui118.Grid, { item: true }, /* @__PURE__ */ React134.createElement(import_editor_ui20.InfoAlert, null, (0, import_i18n70.__)(
10636
10637
  "Linked uploads are saved to the server. Direct attachments will not appear under Submissions.",
10637
10638
  "elementor"
10638
10639
  ))));
@@ -10688,7 +10689,7 @@ var import_i18n71 = require("@wordpress/i18n");
10688
10689
  // src/components/promotions/promotion-trigger.tsx
10689
10690
  var React136 = __toESM(require("react"));
10690
10691
  var import_react81 = require("react");
10691
- var import_editor_ui20 = require("@elementor/editor-ui");
10692
+ var import_editor_ui21 = require("@elementor/editor-ui");
10692
10693
  var import_ui120 = require("@elementor/ui");
10693
10694
  function getV4Promotion(key) {
10694
10695
  return window.elementor?.config?.v4Promotions?.[key];
@@ -10707,7 +10708,7 @@ var PromotionTrigger = (0, import_react81.forwardRef)(
10707
10708
  }, [trackingData]);
10708
10709
  (0, import_react81.useImperativeHandle)(ref, () => ({ toggle }), [toggle]);
10709
10710
  return /* @__PURE__ */ React136.createElement(React136.Fragment, null, promotion && /* @__PURE__ */ React136.createElement(
10710
- import_editor_ui20.PromotionInfotip,
10711
+ import_editor_ui21.PromotionInfotip,
10711
10712
  {
10712
10713
  title: promotion.title,
10713
10714
  content: promotion.content,
@@ -10729,7 +10730,7 @@ var PromotionTrigger = (0, import_react81.forwardRef)(
10729
10730
  },
10730
10731
  sx: { cursor: "pointer", display: "inline-flex" }
10731
10732
  },
10732
- children ?? /* @__PURE__ */ React136.createElement(import_editor_ui20.PromotionChip, null)
10733
+ children ?? /* @__PURE__ */ React136.createElement(import_editor_ui21.PromotionChip, null)
10733
10734
  )
10734
10735
  ));
10735
10736
  }
@@ -11080,7 +11081,7 @@ var differsFromExternal = (newState, externalState) => {
11080
11081
  // src/components/size/unit-select.tsx
11081
11082
  var React141 = __toESM(require("react"));
11082
11083
  var import_react85 = require("react");
11083
- var import_editor_ui21 = require("@elementor/editor-ui");
11084
+ var import_editor_ui22 = require("@elementor/editor-ui");
11084
11085
  var import_ui125 = require("@elementor/ui");
11085
11086
  var menuItemContentStyles2 = {
11086
11087
  display: "flex",
@@ -11097,7 +11098,7 @@ var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
11097
11098
  popupState.close();
11098
11099
  };
11099
11100
  return /* @__PURE__ */ React141.createElement(React141.Fragment, null, /* @__PURE__ */ React141.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...(0, import_ui125.bindTrigger)(popupState) }, value), /* @__PURE__ */ React141.createElement(import_ui125.Menu, { MenuListProps: { dense: true }, ...(0, import_ui125.bindMenu)(popupState) }, options.map((option, index) => /* @__PURE__ */ React141.createElement(
11100
- import_editor_ui21.MenuListItem,
11101
+ import_editor_ui22.MenuListItem,
11101
11102
  {
11102
11103
  key: option,
11103
11104
  onClick: () => handleMenuItemClick(index),