@elementor/editor-interactions 4.5.0-1271 → 4.5.0-1273
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 +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
- package/src/components/interactions-list.tsx +9 -5
- package/src/mcp/constants.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-interactions",
|
|
3
|
-
"version": "4.5.0-
|
|
3
|
+
"version": "4.5.0-1273",
|
|
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-
|
|
43
|
-
"@elementor/editor-elements": "4.5.0-
|
|
44
|
-
"@elementor/editor-mcp": "4.5.0-
|
|
45
|
-
"@elementor/editor-props": "4.5.0-
|
|
46
|
-
"@elementor/editor-responsive": "4.5.0-
|
|
47
|
-
"@elementor/editor-ui": "4.5.0-
|
|
48
|
-
"@elementor/editor-v1-adapters": "4.5.0-
|
|
49
|
-
"@elementor/locations": "4.5.0-
|
|
42
|
+
"@elementor/editor-controls": "4.5.0-1273",
|
|
43
|
+
"@elementor/editor-elements": "4.5.0-1273",
|
|
44
|
+
"@elementor/editor-mcp": "4.5.0-1273",
|
|
45
|
+
"@elementor/editor-props": "4.5.0-1273",
|
|
46
|
+
"@elementor/editor-responsive": "4.5.0-1273",
|
|
47
|
+
"@elementor/editor-ui": "4.5.0-1273",
|
|
48
|
+
"@elementor/editor-v1-adapters": "4.5.0-1273",
|
|
49
|
+
"@elementor/locations": "4.5.0-1273",
|
|
50
50
|
"@elementor/icons": "~1.79.0",
|
|
51
|
-
"@elementor/schema": "4.5.0-
|
|
52
|
-
"@elementor/session": "4.5.0-
|
|
51
|
+
"@elementor/schema": "4.5.0-1273",
|
|
52
|
+
"@elementor/session": "4.5.0-1273",
|
|
53
53
|
"@elementor/ui": "1.41.4",
|
|
54
|
-
"@elementor/utils": "4.5.0-
|
|
55
|
-
"@elementor/events": "4.5.0-
|
|
54
|
+
"@elementor/utils": "4.5.0-1273",
|
|
55
|
+
"@elementor/events": "4.5.0-1273",
|
|
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 =
|
|
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
|
-
|
|
71
|
-
|
|
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>
|
package/src/mcp/constants.ts
CHANGED