@elementor/editor-controls 4.1.0-828 → 4.1.0-830

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.mjs CHANGED
@@ -7911,15 +7911,27 @@ var EmailFormActionControl = createControl(({ toPlaceholder }) => {
7911
7911
  return /* @__PURE__ */ React111.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React111.createElement(Stack18, { gap: 2 }, /* @__PURE__ */ React111.createElement(ControlLabel, null, __54("Email settings", "elementor")), /* @__PURE__ */ React111.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React111.createElement(SubjectField, null), /* @__PURE__ */ React111.createElement(MessageField, null), /* @__PURE__ */ React111.createElement(FromEmailField, null), /* @__PURE__ */ React111.createElement(AdvancedSettings, null)));
7912
7912
  });
7913
7913
 
7914
+ // src/controls/attachment-type-control.tsx
7915
+ import * as React112 from "react";
7916
+ import { InfoAlert as InfoAlert3 } from "@elementor/editor-ui";
7917
+ import { Grid as Grid31 } from "@elementor/ui";
7918
+ import { __ as __55 } from "@wordpress/i18n";
7919
+ var AttachmentTypeControl = createControl(({ label, options }) => {
7920
+ return /* @__PURE__ */ React112.createElement(Grid31, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React112.createElement(Grid31, { item: true }, /* @__PURE__ */ React112.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React112.createElement(Grid31, { item: true }, /* @__PURE__ */ React112.createElement(SelectControl, { options })), /* @__PURE__ */ React112.createElement(Grid31, { item: true }, /* @__PURE__ */ React112.createElement(InfoAlert3, null, __55(
7921
+ "Linked uploads are saved to the server. Direct attachments will not appear under Submissions.",
7922
+ "elementor"
7923
+ ))));
7924
+ });
7925
+
7914
7926
  // src/components/promotions/display-conditions-control.tsx
7915
- import * as React113 from "react";
7927
+ import * as React114 from "react";
7916
7928
  import { useRef as useRef28 } from "react";
7917
7929
  import { SitemapIcon } from "@elementor/icons";
7918
7930
  import { IconButton as IconButton8, Stack as Stack19, Tooltip as Tooltip9 } from "@elementor/ui";
7919
- import { __ as __55 } from "@wordpress/i18n";
7931
+ import { __ as __56 } from "@wordpress/i18n";
7920
7932
 
7921
7933
  // src/components/promotions/promotion-trigger.tsx
7922
- import * as React112 from "react";
7934
+ import * as React113 from "react";
7923
7935
  import { forwardRef as forwardRef12, useCallback as useCallback5, useImperativeHandle, useState as useState19 } from "react";
7924
7936
  import { PromotionChip as PromotionChip2, PromotionInfotip } from "@elementor/editor-ui";
7925
7937
  import { Box as Box26 } from "@elementor/ui";
@@ -7939,7 +7951,7 @@ var PromotionTrigger = forwardRef12(
7939
7951
  });
7940
7952
  }, [trackingData]);
7941
7953
  useImperativeHandle(ref, () => ({ toggle }), [toggle]);
7942
- return /* @__PURE__ */ React112.createElement(React112.Fragment, null, promotion && /* @__PURE__ */ React112.createElement(
7954
+ return /* @__PURE__ */ React113.createElement(React113.Fragment, null, promotion && /* @__PURE__ */ React113.createElement(
7943
7955
  PromotionInfotip,
7944
7956
  {
7945
7957
  title: promotion.title,
@@ -7953,7 +7965,7 @@ var PromotionTrigger = forwardRef12(
7953
7965
  },
7954
7966
  onCtaClick: () => trackUpgradePromotionClick(trackingData)
7955
7967
  },
7956
- /* @__PURE__ */ React112.createElement(
7968
+ /* @__PURE__ */ React113.createElement(
7957
7969
  Box26,
7958
7970
  {
7959
7971
  onClick: (e) => {
@@ -7962,18 +7974,18 @@ var PromotionTrigger = forwardRef12(
7962
7974
  },
7963
7975
  sx: { cursor: "pointer", display: "inline-flex" }
7964
7976
  },
7965
- children ?? /* @__PURE__ */ React112.createElement(PromotionChip2, null)
7977
+ children ?? /* @__PURE__ */ React113.createElement(PromotionChip2, null)
7966
7978
  )
7967
7979
  ));
7968
7980
  }
7969
7981
  );
7970
7982
 
7971
7983
  // src/components/promotions/display-conditions-control.tsx
7972
- var ARIA_LABEL = __55("Display Conditions", "elementor");
7984
+ var ARIA_LABEL = __56("Display Conditions", "elementor");
7973
7985
  var TRACKING_DATA = { target_name: "display_conditions", location_l2: "general" };
7974
7986
  var DisplayConditionsControl = createControl(() => {
7975
7987
  const triggerRef = useRef28(null);
7976
- return /* @__PURE__ */ React113.createElement(
7988
+ return /* @__PURE__ */ React114.createElement(
7977
7989
  Stack19,
7978
7990
  {
7979
7991
  direction: "row",
@@ -7983,8 +7995,8 @@ var DisplayConditionsControl = createControl(() => {
7983
7995
  alignItems: "center"
7984
7996
  }
7985
7997
  },
7986
- /* @__PURE__ */ React113.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
7987
- /* @__PURE__ */ React113.createElement(Tooltip9, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React113.createElement(
7998
+ /* @__PURE__ */ React114.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
7999
+ /* @__PURE__ */ React114.createElement(Tooltip9, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React114.createElement(
7988
8000
  IconButton8,
7989
8001
  {
7990
8002
  size: "tiny",
@@ -7997,22 +8009,22 @@ var DisplayConditionsControl = createControl(() => {
7997
8009
  borderRadius: 1
7998
8010
  }
7999
8011
  },
8000
- /* @__PURE__ */ React113.createElement(SitemapIcon, { fontSize: "tiny", color: "disabled" })
8012
+ /* @__PURE__ */ React114.createElement(SitemapIcon, { fontSize: "tiny", color: "disabled" })
8001
8013
  ))
8002
8014
  );
8003
8015
  });
8004
8016
 
8005
8017
  // src/components/promotions/attributes-control.tsx
8006
- import * as React114 from "react";
8018
+ import * as React115 from "react";
8007
8019
  import { useRef as useRef29 } from "react";
8008
8020
  import { PlusIcon as PlusIcon3 } from "@elementor/icons";
8009
8021
  import { Stack as Stack20, Tooltip as Tooltip10 } from "@elementor/ui";
8010
- import { __ as __56 } from "@wordpress/i18n";
8011
- var ARIA_LABEL2 = __56("Attributes", "elementor");
8022
+ import { __ as __57 } from "@wordpress/i18n";
8023
+ var ARIA_LABEL2 = __57("Attributes", "elementor");
8012
8024
  var TRACKING_DATA2 = { target_name: "attributes", location_l2: "general" };
8013
8025
  var AttributesControl = createControl(() => {
8014
8026
  const triggerRef = useRef29(null);
8015
- return /* @__PURE__ */ React114.createElement(
8027
+ return /* @__PURE__ */ React115.createElement(
8016
8028
  Stack20,
8017
8029
  {
8018
8030
  direction: "row",
@@ -8022,8 +8034,8 @@ var AttributesControl = createControl(() => {
8022
8034
  alignItems: "center"
8023
8035
  }
8024
8036
  },
8025
- /* @__PURE__ */ React114.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
8026
- /* @__PURE__ */ React114.createElement(Tooltip10, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React114.createElement(
8037
+ /* @__PURE__ */ React115.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
8038
+ /* @__PURE__ */ React115.createElement(Tooltip10, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React115.createElement(
8027
8039
  PlusIcon3,
8028
8040
  {
8029
8041
  "aria-label": ARIA_LABEL2,
@@ -8037,17 +8049,17 @@ var AttributesControl = createControl(() => {
8037
8049
  });
8038
8050
 
8039
8051
  // src/components/icon-buttons/clear-icon-button.tsx
8040
- import * as React115 from "react";
8052
+ import * as React116 from "react";
8041
8053
  import { BrushBigIcon } from "@elementor/icons";
8042
8054
  import { IconButton as IconButton9, styled as styled11, Tooltip as Tooltip11 } from "@elementor/ui";
8043
8055
  var CustomIconButton = styled11(IconButton9)(({ theme }) => ({
8044
8056
  width: theme.spacing(2.5),
8045
8057
  height: theme.spacing(2.5)
8046
8058
  }));
8047
- var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React115.createElement(Tooltip11, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React115.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React115.createElement(BrushBigIcon, { fontSize: size })));
8059
+ var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React116.createElement(Tooltip11, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React116.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React116.createElement(BrushBigIcon, { fontSize: size })));
8048
8060
 
8049
8061
  // src/components/repeater/repeater.tsx
8050
- import * as React116 from "react";
8062
+ import * as React117 from "react";
8051
8063
  import { useEffect as useEffect18, useState as useState20 } from "react";
8052
8064
  import { CopyIcon as CopyIcon2, EyeIcon as EyeIcon2, EyeOffIcon as EyeOffIcon2, PlusIcon as PlusIcon4, XIcon as XIcon4 } from "@elementor/icons";
8053
8065
  import {
@@ -8059,7 +8071,7 @@ import {
8059
8071
  Tooltip as Tooltip12,
8060
8072
  usePopupState as usePopupState10
8061
8073
  } from "@elementor/ui";
8062
- import { __ as __57 } from "@wordpress/i18n";
8074
+ import { __ as __58 } from "@wordpress/i18n";
8063
8075
  var SIZE11 = "tiny";
8064
8076
  var EMPTY_OPEN_ITEM2 = -1;
8065
8077
  var Repeater3 = ({
@@ -8140,7 +8152,7 @@ var Repeater3 = ({
8140
8152
  };
8141
8153
  const isButtonDisabled = disabled || disableAddItemButton;
8142
8154
  const shouldShowInfotip = isButtonDisabled && addButtonInfotipContent;
8143
- const addButton = /* @__PURE__ */ React116.createElement(
8155
+ const addButton = /* @__PURE__ */ React117.createElement(
8144
8156
  IconButton10,
8145
8157
  {
8146
8158
  size: SIZE11,
@@ -8149,11 +8161,11 @@ var Repeater3 = ({
8149
8161
  },
8150
8162
  disabled: isButtonDisabled,
8151
8163
  onClick: addRepeaterItem,
8152
- "aria-label": __57("Add item", "elementor")
8164
+ "aria-label": __58("Add item", "elementor")
8153
8165
  },
8154
- /* @__PURE__ */ React116.createElement(PlusIcon4, { fontSize: SIZE11 })
8166
+ /* @__PURE__ */ React117.createElement(PlusIcon4, { fontSize: SIZE11 })
8155
8167
  );
8156
- return /* @__PURE__ */ React116.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React116.createElement(RepeaterHeader, { label, adornment: ControlAdornments }, shouldShowInfotip ? /* @__PURE__ */ React116.createElement(
8168
+ return /* @__PURE__ */ React117.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React117.createElement(RepeaterHeader, { label, adornment: ControlAdornments }, shouldShowInfotip ? /* @__PURE__ */ React117.createElement(
8157
8169
  Infotip4,
8158
8170
  {
8159
8171
  placement: "right",
@@ -8161,20 +8173,20 @@ var Repeater3 = ({
8161
8173
  color: "secondary",
8162
8174
  slotProps: { popper: { sx: { width: 300 } } }
8163
8175
  },
8164
- /* @__PURE__ */ React116.createElement(Box27, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
8165
- ) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React116.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
8176
+ /* @__PURE__ */ React117.createElement(Box27, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
8177
+ ) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React117.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
8166
8178
  const index = uniqueKeys.indexOf(key);
8167
8179
  const value = items2[index];
8168
8180
  if (!value) {
8169
8181
  return null;
8170
8182
  }
8171
- return /* @__PURE__ */ React116.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React116.createElement(
8183
+ return /* @__PURE__ */ React117.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React117.createElement(
8172
8184
  RepeaterItem,
8173
8185
  {
8174
8186
  disabled,
8175
8187
  propDisabled: value?.disabled,
8176
- label: /* @__PURE__ */ React116.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React116.createElement(itemSettings.Label, { value, index })),
8177
- startIcon: /* @__PURE__ */ React116.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React116.createElement(itemSettings.Icon, { value })),
8188
+ label: /* @__PURE__ */ React117.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React117.createElement(itemSettings.Label, { value, index })),
8189
+ startIcon: /* @__PURE__ */ React117.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React117.createElement(itemSettings.Icon, { value })),
8178
8190
  removeItem: () => removeRepeaterItem(index),
8179
8191
  duplicateItem: () => duplicateRepeaterItem(index),
8180
8192
  toggleDisableItem: () => toggleDisableRepeaterItem(index),
@@ -8188,7 +8200,7 @@ var Repeater3 = ({
8188
8200
  actions: itemSettings.actions,
8189
8201
  value
8190
8202
  },
8191
- (props) => /* @__PURE__ */ React116.createElement(
8203
+ (props) => /* @__PURE__ */ React117.createElement(
8192
8204
  itemSettings.Content,
8193
8205
  {
8194
8206
  ...props,
@@ -8230,16 +8242,16 @@ var RepeaterItem = ({
8230
8242
  );
8231
8243
  const triggerProps = bindTrigger7(popoverState);
8232
8244
  usePopoverDismiss({ isOpen: popoverState.isOpen, onClose: popoverProps.onClose });
8233
- const duplicateLabel = __57("Duplicate", "elementor");
8234
- const toggleLabel = propDisabled ? __57("Show", "elementor") : __57("Hide", "elementor");
8235
- const removeLabel = __57("Remove", "elementor");
8236
- return /* @__PURE__ */ React116.createElement(Box27, { sx: { display: "contents" } }, /* @__PURE__ */ React116.createElement(
8245
+ const duplicateLabel = __58("Duplicate", "elementor");
8246
+ const toggleLabel = propDisabled ? __58("Show", "elementor") : __58("Hide", "elementor");
8247
+ const removeLabel = __58("Remove", "elementor");
8248
+ return /* @__PURE__ */ React117.createElement(Box27, { sx: { display: "contents" } }, /* @__PURE__ */ React117.createElement(
8237
8249
  RepeaterTag,
8238
8250
  {
8239
8251
  disabled,
8240
8252
  label,
8241
8253
  ref: setRef,
8242
- "aria-label": __57("Open item", "elementor"),
8254
+ "aria-label": __58("Open item", "elementor"),
8243
8255
  ...triggerProps,
8244
8256
  onClick: (e) => {
8245
8257
  triggerProps.onClick(e);
@@ -8248,9 +8260,9 @@ var RepeaterItem = ({
8248
8260
  }
8249
8261
  },
8250
8262
  startIcon,
8251
- actions: /* @__PURE__ */ React116.createElement(React116.Fragment, null, showDuplicate && /* @__PURE__ */ React116.createElement(Tooltip12, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React116.createElement(IconButton10, { size: SIZE11, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React116.createElement(CopyIcon2, { fontSize: SIZE11 }))), showToggle && /* @__PURE__ */ React116.createElement(Tooltip12, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React116.createElement(IconButton10, { size: SIZE11, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React116.createElement(EyeOffIcon2, { fontSize: SIZE11 }) : /* @__PURE__ */ React116.createElement(EyeIcon2, { fontSize: SIZE11 }))), actions?.(value), showRemove && /* @__PURE__ */ React116.createElement(Tooltip12, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React116.createElement(IconButton10, { size: SIZE11, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React116.createElement(XIcon4, { fontSize: SIZE11 }))))
8263
+ actions: /* @__PURE__ */ React117.createElement(React117.Fragment, null, showDuplicate && /* @__PURE__ */ React117.createElement(Tooltip12, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React117.createElement(IconButton10, { size: SIZE11, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React117.createElement(CopyIcon2, { fontSize: SIZE11 }))), showToggle && /* @__PURE__ */ React117.createElement(Tooltip12, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React117.createElement(IconButton10, { size: SIZE11, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React117.createElement(EyeOffIcon2, { fontSize: SIZE11 }) : /* @__PURE__ */ React117.createElement(EyeIcon2, { fontSize: SIZE11 }))), actions?.(value), showRemove && /* @__PURE__ */ React117.createElement(Tooltip12, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React117.createElement(IconButton10, { size: SIZE11, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React117.createElement(XIcon4, { fontSize: SIZE11 }))))
8252
8264
  }
8253
- ), /* @__PURE__ */ React116.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React116.createElement(Box27, null, children({ anchorEl: ref }))));
8265
+ ), /* @__PURE__ */ React117.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React117.createElement(Box27, null, children({ anchorEl: ref }))));
8254
8266
  };
8255
8267
  var usePopover = (openOnMount, onOpen, onPopoverClose) => {
8256
8268
  const [ref, setRef] = useState20(null);
@@ -8275,7 +8287,7 @@ var usePopover = (openOnMount, onOpen, onPopoverClose) => {
8275
8287
  };
8276
8288
 
8277
8289
  // src/components/inline-editor-toolbar.tsx
8278
- import * as React118 from "react";
8290
+ import * as React119 from "react";
8279
8291
  import { useEffect as useEffect20, useMemo as useMemo17, useRef as useRef31, useState as useState21 } from "react";
8280
8292
  import { getContainer as getContainer2, getElementSetting } from "@elementor/editor-elements";
8281
8293
  import {
@@ -8298,14 +8310,14 @@ import {
8298
8310
  usePopupState as usePopupState11
8299
8311
  } from "@elementor/ui";
8300
8312
  import { useEditorState } from "@tiptap/react";
8301
- import { __ as __59 } from "@wordpress/i18n";
8313
+ import { __ as __60 } from "@wordpress/i18n";
8302
8314
 
8303
8315
  // src/components/url-popover.tsx
8304
- import * as React117 from "react";
8316
+ import * as React118 from "react";
8305
8317
  import { useEffect as useEffect19, useRef as useRef30 } from "react";
8306
8318
  import { ExternalLinkIcon } from "@elementor/icons";
8307
8319
  import { bindPopover as bindPopover9, Popover as Popover8, Stack as Stack21, TextField as TextField10, ToggleButton as ToggleButton2, Tooltip as Tooltip13 } from "@elementor/ui";
8308
- import { __ as __58 } from "@wordpress/i18n";
8320
+ import { __ as __59 } from "@wordpress/i18n";
8309
8321
  var UrlPopover = ({
8310
8322
  popupState,
8311
8323
  restoreValue,
@@ -8325,7 +8337,7 @@ var UrlPopover = ({
8325
8337
  restoreValue();
8326
8338
  popupState.close();
8327
8339
  };
8328
- return /* @__PURE__ */ React117.createElement(
8340
+ return /* @__PURE__ */ React118.createElement(
8329
8341
  Popover8,
8330
8342
  {
8331
8343
  slotProps: {
@@ -8336,30 +8348,30 @@ var UrlPopover = ({
8336
8348
  transformOrigin: { vertical: "top", horizontal: "left" },
8337
8349
  onClose: handleClose
8338
8350
  },
8339
- /* @__PURE__ */ React117.createElement(Stack21, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React117.createElement(
8351
+ /* @__PURE__ */ React118.createElement(Stack21, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React118.createElement(
8340
8352
  TextField10,
8341
8353
  {
8342
8354
  value,
8343
8355
  onChange,
8344
8356
  size: "tiny",
8345
8357
  fullWidth: true,
8346
- placeholder: __58("Type a URL", "elementor"),
8358
+ placeholder: __59("Type a URL", "elementor"),
8347
8359
  inputProps: { ref: inputRef },
8348
8360
  color: "secondary",
8349
8361
  InputProps: { sx: { borderRadius: "8px" } },
8350
8362
  onKeyUp: (event) => event.key === "Enter" && handleClose()
8351
8363
  }
8352
- ), /* @__PURE__ */ React117.createElement(Tooltip13, { title: __58("Open in a new tab", "elementor") }, /* @__PURE__ */ React117.createElement(
8364
+ ), /* @__PURE__ */ React118.createElement(Tooltip13, { title: __59("Open in a new tab", "elementor") }, /* @__PURE__ */ React118.createElement(
8353
8365
  ToggleButton2,
8354
8366
  {
8355
8367
  size: "tiny",
8356
8368
  value: "newTab",
8357
8369
  selected: openInNewTab,
8358
8370
  onClick: onToggleNewTab,
8359
- "aria-label": __58("Open in a new tab", "elementor"),
8371
+ "aria-label": __59("Open in a new tab", "elementor"),
8360
8372
  sx: { borderRadius: "8px" }
8361
8373
  },
8362
- /* @__PURE__ */ React117.createElement(ExternalLinkIcon, { fontSize: "tiny" })
8374
+ /* @__PURE__ */ React118.createElement(ExternalLinkIcon, { fontSize: "tiny" })
8363
8375
  )))
8364
8376
  );
8365
8377
  };
@@ -8415,7 +8427,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8415
8427
  useEffect20(() => {
8416
8428
  editor?.commands?.focus();
8417
8429
  }, [editor]);
8418
- return /* @__PURE__ */ React118.createElement(
8430
+ return /* @__PURE__ */ React119.createElement(
8419
8431
  Box28,
8420
8432
  {
8421
8433
  ref: toolbarRef,
@@ -8432,8 +8444,8 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8432
8444
  ...sx
8433
8445
  }
8434
8446
  },
8435
- /* @__PURE__ */ React118.createElement(Tooltip14, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React118.createElement(IconButton11, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
8436
- /* @__PURE__ */ React118.createElement(
8447
+ /* @__PURE__ */ React119.createElement(Tooltip14, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React119.createElement(IconButton11, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
8448
+ /* @__PURE__ */ React119.createElement(
8437
8449
  ToggleButtonGroup2,
8438
8450
  {
8439
8451
  value: editorState,
@@ -8455,7 +8467,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8455
8467
  }
8456
8468
  }
8457
8469
  },
8458
- formatButtonsList.map((button) => /* @__PURE__ */ React118.createElement(Tooltip14, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React118.createElement(
8470
+ formatButtonsList.map((button) => /* @__PURE__ */ React119.createElement(Tooltip14, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React119.createElement(
8459
8471
  ToggleButton3,
8460
8472
  {
8461
8473
  value: button.action,
@@ -8473,7 +8485,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8473
8485
  button.icon
8474
8486
  )))
8475
8487
  ),
8476
- /* @__PURE__ */ React118.createElement(
8488
+ /* @__PURE__ */ React119.createElement(
8477
8489
  UrlPopover,
8478
8490
  {
8479
8491
  popupState: linkPopupState,
@@ -8496,64 +8508,64 @@ var checkIfElementIsClickable = (elementId) => {
8496
8508
  };
8497
8509
  var toolbarButtons = {
8498
8510
  clear: {
8499
- label: __59("Clear", "elementor"),
8500
- icon: /* @__PURE__ */ React118.createElement(MinusIcon2, { fontSize: "tiny" }),
8511
+ label: __60("Clear", "elementor"),
8512
+ icon: /* @__PURE__ */ React119.createElement(MinusIcon2, { fontSize: "tiny" }),
8501
8513
  action: "clear",
8502
8514
  method: (editor) => {
8503
8515
  editor.chain().focus().clearNodes().unsetAllMarks().run();
8504
8516
  }
8505
8517
  },
8506
8518
  bold: {
8507
- label: __59("Bold", "elementor"),
8508
- icon: /* @__PURE__ */ React118.createElement(BoldIcon, { fontSize: "tiny" }),
8519
+ label: __60("Bold", "elementor"),
8520
+ icon: /* @__PURE__ */ React119.createElement(BoldIcon, { fontSize: "tiny" }),
8509
8521
  action: "bold",
8510
8522
  method: (editor) => {
8511
8523
  editor.chain().focus().toggleBold().run();
8512
8524
  }
8513
8525
  },
8514
8526
  italic: {
8515
- label: __59("Italic", "elementor"),
8516
- icon: /* @__PURE__ */ React118.createElement(ItalicIcon, { fontSize: "tiny" }),
8527
+ label: __60("Italic", "elementor"),
8528
+ icon: /* @__PURE__ */ React119.createElement(ItalicIcon, { fontSize: "tiny" }),
8517
8529
  action: "italic",
8518
8530
  method: (editor) => {
8519
8531
  editor.chain().focus().toggleItalic().run();
8520
8532
  }
8521
8533
  },
8522
8534
  underline: {
8523
- label: __59("Underline", "elementor"),
8524
- icon: /* @__PURE__ */ React118.createElement(UnderlineIcon, { fontSize: "tiny" }),
8535
+ label: __60("Underline", "elementor"),
8536
+ icon: /* @__PURE__ */ React119.createElement(UnderlineIcon, { fontSize: "tiny" }),
8525
8537
  action: "underline",
8526
8538
  method: (editor) => {
8527
8539
  editor.chain().focus().toggleUnderline().run();
8528
8540
  }
8529
8541
  },
8530
8542
  strike: {
8531
- label: __59("Strikethrough", "elementor"),
8532
- icon: /* @__PURE__ */ React118.createElement(StrikethroughIcon, { fontSize: "tiny" }),
8543
+ label: __60("Strikethrough", "elementor"),
8544
+ icon: /* @__PURE__ */ React119.createElement(StrikethroughIcon, { fontSize: "tiny" }),
8533
8545
  action: "strike",
8534
8546
  method: (editor) => {
8535
8547
  editor.chain().focus().toggleStrike().run();
8536
8548
  }
8537
8549
  },
8538
8550
  superscript: {
8539
- label: __59("Superscript", "elementor"),
8540
- icon: /* @__PURE__ */ React118.createElement(SuperscriptIcon, { fontSize: "tiny" }),
8551
+ label: __60("Superscript", "elementor"),
8552
+ icon: /* @__PURE__ */ React119.createElement(SuperscriptIcon, { fontSize: "tiny" }),
8541
8553
  action: "superscript",
8542
8554
  method: (editor) => {
8543
8555
  editor.chain().focus().toggleSuperscript().run();
8544
8556
  }
8545
8557
  },
8546
8558
  subscript: {
8547
- label: __59("Subscript", "elementor"),
8548
- icon: /* @__PURE__ */ React118.createElement(SubscriptIcon, { fontSize: "tiny" }),
8559
+ label: __60("Subscript", "elementor"),
8560
+ icon: /* @__PURE__ */ React119.createElement(SubscriptIcon, { fontSize: "tiny" }),
8549
8561
  action: "subscript",
8550
8562
  method: (editor) => {
8551
8563
  editor.chain().focus().toggleSubscript().run();
8552
8564
  }
8553
8565
  },
8554
8566
  link: {
8555
- label: __59("Link", "elementor"),
8556
- icon: /* @__PURE__ */ React118.createElement(LinkIcon3, { fontSize: "tiny" }),
8567
+ label: __60("Link", "elementor"),
8568
+ icon: /* @__PURE__ */ React119.createElement(LinkIcon3, { fontSize: "tiny" }),
8557
8569
  action: "link",
8558
8570
  method: null
8559
8571
  }
@@ -8562,7 +8574,7 @@ var { clear: clearButton, ...formatButtons } = toolbarButtons;
8562
8574
  var possibleFormats = Object.keys(formatButtons);
8563
8575
 
8564
8576
  // src/components/size/unstable-size-field.tsx
8565
- import * as React121 from "react";
8577
+ import * as React122 from "react";
8566
8578
  import { InputAdornment as InputAdornment6 } from "@elementor/ui";
8567
8579
 
8568
8580
  // src/hooks/use-size-value.ts
@@ -8605,7 +8617,7 @@ var differsFromExternal = (newState, externalState) => {
8605
8617
  };
8606
8618
 
8607
8619
  // src/components/size/unit-select.tsx
8608
- import * as React119 from "react";
8620
+ import * as React120 from "react";
8609
8621
  import { useId as useId4 } from "react";
8610
8622
  import { MenuListItem as MenuListItem8 } from "@elementor/editor-ui";
8611
8623
  import { bindMenu as bindMenu3, bindTrigger as bindTrigger8, Button as Button7, Menu as Menu4, styled as styled12, usePopupState as usePopupState12 } from "@elementor/ui";
@@ -8623,7 +8635,7 @@ var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
8623
8635
  onClick(options[index]);
8624
8636
  popupState.close();
8625
8637
  };
8626
- return /* @__PURE__ */ React119.createElement(React119.Fragment, null, /* @__PURE__ */ React119.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...bindTrigger8(popupState) }, value), /* @__PURE__ */ React119.createElement(Menu4, { MenuListProps: { dense: true }, ...bindMenu3(popupState) }, options.map((option, index) => /* @__PURE__ */ React119.createElement(
8638
+ return /* @__PURE__ */ React120.createElement(React120.Fragment, null, /* @__PURE__ */ React120.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...bindTrigger8(popupState) }, value), /* @__PURE__ */ React120.createElement(Menu4, { MenuListProps: { dense: true }, ...bindMenu3(popupState) }, options.map((option, index) => /* @__PURE__ */ React120.createElement(
8627
8639
  MenuListItem8,
8628
8640
  {
8629
8641
  key: option,
@@ -8652,11 +8664,11 @@ var StyledButton3 = styled12(Button7, {
8652
8664
  }));
8653
8665
 
8654
8666
  // src/components/size/unstable-size-input.tsx
8655
- import * as React120 from "react";
8667
+ import * as React121 from "react";
8656
8668
  import { forwardRef as forwardRef13 } from "react";
8657
8669
  var UnstableSizeInput = forwardRef13(
8658
8670
  ({ type, value, onChange, onKeyDown, onKeyUp, InputProps, onBlur, focused, disabled }, ref) => {
8659
- return /* @__PURE__ */ React120.createElement(
8671
+ return /* @__PURE__ */ React121.createElement(
8660
8672
  NumberInput,
8661
8673
  {
8662
8674
  ref,
@@ -8694,7 +8706,7 @@ var UnstableSizeField = ({
8694
8706
  const shouldHighlightUnit2 = () => {
8695
8707
  return hasValue(size);
8696
8708
  };
8697
- return /* @__PURE__ */ React121.createElement(
8709
+ return /* @__PURE__ */ React122.createElement(
8698
8710
  UnstableSizeInput,
8699
8711
  {
8700
8712
  type: "number",
@@ -8703,8 +8715,8 @@ var UnstableSizeField = ({
8703
8715
  onChange: (event) => setSize(event.target.value),
8704
8716
  InputProps: {
8705
8717
  ...InputProps,
8706
- startAdornment: startIcon && /* @__PURE__ */ React121.createElement(InputAdornment6, { position: "start" }, startIcon),
8707
- endAdornment: /* @__PURE__ */ React121.createElement(InputAdornment6, { position: "end" }, /* @__PURE__ */ React121.createElement(
8718
+ startAdornment: startIcon && /* @__PURE__ */ React122.createElement(InputAdornment6, { position: "start" }, startIcon),
8719
+ endAdornment: /* @__PURE__ */ React122.createElement(InputAdornment6, { position: "end" }, /* @__PURE__ */ React122.createElement(
8708
8720
  UnitSelect,
8709
8721
  {
8710
8722
  options: units2,
@@ -8754,6 +8766,7 @@ var useFontFamilies = () => {
8754
8766
  };
8755
8767
  export {
8756
8768
  AspectRatioControl,
8769
+ AttachmentTypeControl,
8757
8770
  AttributesControl,
8758
8771
  BackgroundControl,
8759
8772
  BoxShadowRepeaterControl,