@elementor/editor-interactions 4.5.0-1271 → 4.5.0-1272

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
@@ -1135,7 +1135,7 @@ var InteractionsListItem = ({
1135
1135
  };
1136
1136
 
1137
1137
  // src/components/interactions-list.tsx
1138
- var MAX_NUMBER_OF_INTERACTIONS = 5;
1138
+ var MAX_NUMBER_OF_INTERACTIONS = 10;
1139
1139
  function InteractionsList(props) {
1140
1140
  const { interactions, onSelectInteractions, onPlayInteraction, triggerCreateOnShowEmpty } = props;
1141
1141
  const { elementId } = useInteractionsContext();
@@ -1162,9 +1162,13 @@ function InteractionsList(props) {
1162
1162
  const isMaxNumberOfInteractionsReached = (0, import_react9.useMemo)(() => {
1163
1163
  return interactions.items?.length >= MAX_NUMBER_OF_INTERACTIONS;
1164
1164
  }, [interactions.items?.length]);
1165
- const infotipContent = isMaxNumberOfInteractionsReached ? /* @__PURE__ */ React10.createElement(import_ui6.Alert, { color: "secondary", icon: /* @__PURE__ */ React10.createElement(import_icons2.InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React10.createElement(import_ui6.AlertTitle, null, (0, import_i18n6.__)("Interactions", "elementor")), /* @__PURE__ */ React10.createElement(import_ui6.Box, { component: "span" }, (0, import_i18n6.__)(
1166
- "You've reached the limit of 5 interactions for this element. Please remove an interaction before creating a new one.",
1167
- "elementor"
1165
+ const infotipContent = isMaxNumberOfInteractionsReached ? /* @__PURE__ */ React10.createElement(import_ui6.Alert, { color: "secondary", icon: /* @__PURE__ */ React10.createElement(import_icons2.InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React10.createElement(import_ui6.AlertTitle, null, (0, import_i18n6.__)("Interactions", "elementor")), /* @__PURE__ */ React10.createElement(import_ui6.Box, { component: "span" }, (0, import_i18n6.sprintf)(
1166
+ /* translators: %d: maximum number of interactions per element */
1167
+ (0, import_i18n6.__)(
1168
+ "You've reached the limit of %d interactions for this element. Please remove an interaction before creating a new one.",
1169
+ "elementor"
1170
+ ),
1171
+ MAX_NUMBER_OF_INTERACTIONS
1168
1172
  ))) : void 0;
1169
1173
  const handleRepeaterChange = (0, import_react9.useCallback)(
1170
1174
  (newItems, _, meta) => {
@@ -2068,7 +2072,7 @@ var import_schema3 = require("@elementor/schema");
2068
2072
  var import_utils2 = require("@elementor/utils");
2069
2073
 
2070
2074
  // src/mcp/constants.ts
2071
- var MAX_INTERACTIONS_PER_ELEMENT = 5;
2075
+ var MAX_INTERACTIONS_PER_ELEMENT = 10;
2072
2076
  var EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION = `Everything related to V4 ( Atomic ) interactions.
2073
2077
  # Interactions
2074
2078
  - Create/update/delete interactions