@elementor/editor-variables 4.0.0-680 → 4.0.0-681

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.mjs CHANGED
@@ -2731,7 +2731,7 @@ var VariableEdit = ({ onClose, onGoBack, onSubmit, editId }) => {
2731
2731
  // src/components/variables-selection.tsx
2732
2732
  import { useEffect as useEffect7, useState as useState12 } from "react";
2733
2733
  import * as React21 from "react";
2734
- import { trackViewPromotion as trackViewPromotion2 } from "@elementor/editor-controls";
2734
+ import { trackUpgradePromotionClick as trackUpgradePromotionClick2, trackViewPromotion as trackViewPromotion2 } from "@elementor/editor-controls";
2735
2735
  import {
2736
2736
  PopoverHeader as PopoverHeader3,
2737
2737
  PopoverMenuList,
@@ -2964,7 +2964,11 @@ var VariablesSelection = ({ closePopover, onAdd, onEdit, onSettings, disabled =
2964
2964
  __15("Upgrade to continue creating and editing %s variables.", "elementor"),
2965
2965
  variableType
2966
2966
  ),
2967
- upgradeUrl: getProUpgradeUrl(variableType)
2967
+ upgradeUrl: getProUpgradeUrl(variableType),
2968
+ onCtaClick: () => trackUpgradePromotionClick2({
2969
+ target_name: "variables_popover",
2970
+ location_l1: "variables_list"
2971
+ })
2968
2972
  }
2969
2973
  )), !hasSearchResults && hasVariables && /* @__PURE__ */ React21.createElement(
2970
2974
  NoSearchResults,
@@ -3806,7 +3810,7 @@ function initMcp() {
3806
3810
 
3807
3811
  // src/register-variable-types.tsx
3808
3812
  import * as React37 from "react";
3809
- import { trackUpgradePromotionClick as trackUpgradePromotionClick2 } from "@elementor/editor-controls";
3813
+ import { trackUpgradePromotionClick as trackUpgradePromotionClick3 } from "@elementor/editor-controls";
3810
3814
  import { colorPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil } from "@elementor/editor-props";
3811
3815
  import { CtaButton } from "@elementor/editor-ui";
3812
3816
  import { isExperimentActive as isExperimentActive2 } from "@elementor/editor-v1-adapters";
@@ -3994,7 +3998,7 @@ function registerVariableTypes() {
3994
3998
  {
3995
3999
  size: "small",
3996
4000
  href: "https://go.elementor.com/go-pro-panel-size-variable/",
3997
- onClick: () => trackUpgradePromotionClick2({ target_name: "variables_popover", location_l1: "variables_list" })
4001
+ onClick: () => trackUpgradePromotionClick3({ target_name: "variables_popover", location_l1: "variables_list" })
3998
4002
  }
3999
4003
  )
4000
4004
  };