@elementor/editor-interactions 4.4.1 → 4.4.2

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.4.1",
3
+ "version": "4.4.2",
4
4
  "private": false,
5
5
  "author": "Elementor Team",
6
6
  "homepage": "https://elementor.com/",
@@ -39,20 +39,19 @@
39
39
  "dev": "tsup --config=../../tsup.dev.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@elementor/editor-controls": "4.4.1",
43
- "@elementor/editor-elements": "4.4.1",
44
- "@elementor/editor-mcp": "4.4.1",
45
- "@elementor/editor-props": "4.4.1",
46
- "@elementor/editor-responsive": "4.4.1",
47
- "@elementor/editor-ui": "4.4.1",
48
- "@elementor/editor-v1-adapters": "4.4.1",
49
- "@elementor/locations": "4.4.1",
42
+ "@elementor/editor-controls": "4.4.2",
43
+ "@elementor/editor-elements": "4.4.2",
44
+ "@elementor/editor-mcp": "4.4.2",
45
+ "@elementor/editor-props": "4.4.2",
46
+ "@elementor/editor-responsive": "4.4.2",
47
+ "@elementor/editor-ui": "4.4.2",
48
+ "@elementor/editor-v1-adapters": "4.4.2",
50
49
  "@elementor/icons": "~1.78.1",
51
- "@elementor/schema": "4.4.1",
52
- "@elementor/session": "4.4.1",
50
+ "@elementor/schema": "4.4.2",
51
+ "@elementor/session": "4.4.2",
53
52
  "@elementor/ui": "1.41.4",
54
- "@elementor/utils": "4.4.1",
55
- "@elementor/events": "4.4.1",
53
+ "@elementor/utils": "4.4.2",
54
+ "@elementor/events": "4.4.2",
56
55
  "@wordpress/i18n": "^5.13.0"
57
56
  },
58
57
  "peerDependencies": {
@@ -1,28 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import { SwipeIcon } from '@elementor/icons';
3
- import { Box, Button, Stack, Typography } from '@elementor/ui';
3
+ import { Button, Stack, Typography } from '@elementor/ui';
4
4
  import { __ } from '@wordpress/i18n';
5
5
 
6
- import { InteractionsHeaderSlot } from './interactions-header-location';
7
-
8
- type EmptyStateProps = {
9
- elementId: string;
10
- onCreateInteraction: () => void;
11
- };
12
-
13
- export const EmptyState = ( { elementId, onCreateInteraction }: EmptyStateProps ) => {
6
+ export const EmptyState = ( { onCreateInteraction }: { onCreateInteraction: () => void } ) => {
14
7
  return (
15
8
  <Stack
16
9
  alignItems="center"
17
10
  justifyContent="center"
18
11
  height="100%"
19
12
  color="text.secondary"
20
- sx={ { position: 'relative', p: 2.5, pt: 8, pb: 5.5 } }
13
+ sx={ { p: 2.5, pt: 8, pb: 5.5 } }
21
14
  gap={ 1.5 }
22
15
  >
23
- <Box sx={ { position: 'absolute', top: 8, insetInlineEnd: 8 } }>
24
- <InteractionsHeaderSlot elementId={ elementId } />
25
- </Box>
26
16
  <SwipeIcon fontSize="large" />
27
17
 
28
18
  <Typography align="center" variant="subtitle2">
@@ -16,7 +16,6 @@ import {
16
16
  } from '../utils/scroll-interaction-event';
17
17
  import { trackInteractionCreated } from '../utils/tracking';
18
18
  import { DEFAULT_VALUES } from './interaction-details';
19
- import { InteractionsHeaderSlot } from './interactions-header-location';
20
19
  import { InteractionsListItem } from './interactions-list-item';
21
20
  export const MAX_NUMBER_OF_INTERACTIONS = 5;
22
21
 
@@ -123,7 +122,6 @@ export function InteractionsList( props: InteractionListProps ) {
123
122
  openOnAdd
124
123
  openItem={ triggerCreateOnShowEmpty ? 0 : undefined }
125
124
  label={ __( 'Interactions', 'elementor' ) }
126
- headerActions={ <InteractionsHeaderSlot elementId={ elementId } /> }
127
125
  values={ interactions.items }
128
126
  setValues={ handleRepeaterChange }
129
127
  showDuplicate={ false }
@@ -31,7 +31,6 @@ function InteractionsTabContent( { elementId }: { elementId: string } ) {
31
31
  </InteractionsProvider>
32
32
  ) : (
33
33
  <EmptyState
34
- elementId={ elementId }
35
34
  onCreateInteraction={ () => {
36
35
  firstInteractionState[ 1 ]( true );
37
36
  } }
package/src/index.ts CHANGED
@@ -10,7 +10,6 @@ export {
10
10
 
11
11
  export { ELEMENTS_INTERACTIONS_PROVIDER_KEY_PREFIX } from './providers/document-elements-interactions-provider';
12
12
  export { init } from './init';
13
- export { injectIntoInteractionsHeader, type InteractionsHeaderProps } from './components/interactions-header-location';
14
13
  export { registerInteractionsControl } from './interactions-controls-registry';
15
14
  export type { InteractionItemPropValue, FieldProps, ReplayFieldProps } from './types';
16
15
  export { TRIGGER_OPTIONS, BASE_TRIGGERS } from './components/controls/trigger';
@@ -1,12 +0,0 @@
1
- import { type ElementID } from '@elementor/editor-elements';
2
- import { createLocation } from '@elementor/locations';
3
-
4
- export type InteractionsHeaderProps = {
5
- elementId: ElementID;
6
- };
7
-
8
- export const {
9
- Slot: InteractionsHeaderSlot,
10
- inject: injectIntoInteractionsHeader,
11
- useInjections: useInteractionsHeaderInjections,
12
- } = createLocation< InteractionsHeaderProps >();