@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementor/editor-interactions",
3
- "version": "4.5.0-1271",
3
+ "version": "4.5.0-1272",
4
4
  "private": false,
5
5
  "author": "Elementor Team",
6
6
  "homepage": "https://elementor.com/",
@@ -39,20 +39,20 @@
39
39
  "dev": "tsup --config=../../tsup.dev.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@elementor/editor-controls": "4.5.0-1271",
43
- "@elementor/editor-elements": "4.5.0-1271",
44
- "@elementor/editor-mcp": "4.5.0-1271",
45
- "@elementor/editor-props": "4.5.0-1271",
46
- "@elementor/editor-responsive": "4.5.0-1271",
47
- "@elementor/editor-ui": "4.5.0-1271",
48
- "@elementor/editor-v1-adapters": "4.5.0-1271",
49
- "@elementor/locations": "4.5.0-1271",
42
+ "@elementor/editor-controls": "4.5.0-1272",
43
+ "@elementor/editor-elements": "4.5.0-1272",
44
+ "@elementor/editor-mcp": "4.5.0-1272",
45
+ "@elementor/editor-props": "4.5.0-1272",
46
+ "@elementor/editor-responsive": "4.5.0-1272",
47
+ "@elementor/editor-ui": "4.5.0-1272",
48
+ "@elementor/editor-v1-adapters": "4.5.0-1272",
49
+ "@elementor/locations": "4.5.0-1272",
50
50
  "@elementor/icons": "~1.79.0",
51
- "@elementor/schema": "4.5.0-1271",
52
- "@elementor/session": "4.5.0-1271",
51
+ "@elementor/schema": "4.5.0-1272",
52
+ "@elementor/session": "4.5.0-1272",
53
53
  "@elementor/ui": "1.41.4",
54
- "@elementor/utils": "4.5.0-1271",
55
- "@elementor/events": "4.5.0-1271",
54
+ "@elementor/utils": "4.5.0-1272",
55
+ "@elementor/events": "4.5.0-1272",
56
56
  "@wordpress/i18n": "^5.13.0"
57
57
  },
58
58
  "peerDependencies": {
@@ -3,7 +3,7 @@ import { useCallback, useEffect, useMemo, useRef } from 'react';
3
3
  import { Repeater, type SetRepeaterValuesMeta } from '@elementor/editor-controls';
4
4
  import { InfoCircleFilledIcon, PlayerPlayIcon } from '@elementor/icons';
5
5
  import { Alert, AlertTitle, Box, IconButton, Tooltip } from '@elementor/ui';
6
- import { __ } from '@wordpress/i18n';
6
+ import { __, sprintf } from '@wordpress/i18n';
7
7
 
8
8
  import { useInteractionsContext } from '../contexts/interactions-context';
9
9
  import { InteractionItemContextProvider } from '../contexts/interactions-item-context';
@@ -18,7 +18,7 @@ import { trackInteractionCreated } from '../utils/tracking';
18
18
  import { DEFAULT_VALUES } from './interaction-details';
19
19
  import { InteractionsHeaderSlot } from './interactions-header-location';
20
20
  import { InteractionsListItem } from './interactions-list-item';
21
- export const MAX_NUMBER_OF_INTERACTIONS = 5;
21
+ export const MAX_NUMBER_OF_INTERACTIONS = 10;
22
22
 
23
23
  export type InteractionListProps = {
24
24
  onSelectInteractions: ( interactions: ElementInteractions ) => void;
@@ -66,9 +66,13 @@ export function InteractionsList( props: InteractionListProps ) {
66
66
  <Alert color="secondary" icon={ <InfoCircleFilledIcon /> } size="small">
67
67
  <AlertTitle>{ __( 'Interactions', 'elementor' ) }</AlertTitle>
68
68
  <Box component="span">
69
- { __(
70
- "You've reached the limit of 5 interactions for this element. Please remove an interaction before creating a new one.",
71
- 'elementor'
69
+ { sprintf(
70
+ /* translators: %d: maximum number of interactions per element */
71
+ __(
72
+ "You've reached the limit of %d interactions for this element. Please remove an interaction before creating a new one.",
73
+ 'elementor'
74
+ ),
75
+ MAX_NUMBER_OF_INTERACTIONS
72
76
  ) }
73
77
  </Box>
74
78
  </Alert>
@@ -1,4 +1,4 @@
1
- export const MAX_INTERACTIONS_PER_ELEMENT = 5;
1
+ export const MAX_INTERACTIONS_PER_ELEMENT = 10;
2
2
  export const EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION = `Everything related to V4 ( Atomic ) interactions.
3
3
  # Interactions
4
4
  - Create/update/delete interactions