@elementor/editor-interactions 4.0.0-604 → 4.0.0-607

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/src/index.ts CHANGED
@@ -15,3 +15,4 @@ export type { InteractionItemPropValue, FieldProps, ReplayFieldProps } from './t
15
15
  export { TRIGGER_OPTIONS, BASE_TRIGGERS } from './components/controls/trigger';
16
16
  export { EASING_OPTIONS, BASE_EASINGS } from './components/controls/easing';
17
17
  export { REPLAY_OPTIONS, BASE_REPLAY } from './components/controls/replay';
18
+ export { EFFECT_OPTIONS, BASE_EFFECTS } from './components/controls/effect';
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import { type MouseEvent, useRef } from 'react';
3
3
  import { MenuListItem } from '@elementor/editor-ui';
4
4
  import { MenuSubheader, Select, type SelectChangeEvent } from '@elementor/ui';
5
+ import { __ } from '@wordpress/i18n';
5
6
 
6
7
  import { InteractionsPromotionChip, type InteractionsPromotionChipRef } from './interactions-promotion-chip';
7
8
 
@@ -10,7 +11,7 @@ type PromotionSelectProps = {
10
11
  onChange?: ( value: string ) => void;
11
12
  baseOptions: Record< string, string >;
12
13
  disabledOptions: Record< string, string >;
13
- promotionLabel: string;
14
+ promotionLabel?: string;
14
15
  promotionContent: string;
15
16
  upgradeUrl: string;
16
17
  };
@@ -56,7 +57,7 @@ export function PromotionSelect( {
56
57
  promotionRef.current?.toggle();
57
58
  } }
58
59
  >
59
- { promotionLabel }
60
+ { promotionLabel ?? __( 'PRO features', 'elementor' ) }
60
61
  <InteractionsPromotionChip
61
62
  content={ promotionContent }
62
63
  upgradeUrl={ upgradeUrl }