@elementor/editor-variables 3.33.0-128 → 3.33.0-130

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 CHANGED
@@ -1534,17 +1534,17 @@ var unwrapValue = (input) => {
1534
1534
  };
1535
1535
 
1536
1536
  // src/utils/tracking.ts
1537
+ var import_mixpanel = require("@elementor/mixpanel");
1537
1538
  var trackVariableEvent = ({ varType, controlPath, action }) => {
1538
- const extendedWindow = window;
1539
- const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1539
+ const { dispatchEvent, config } = (0, import_mixpanel.getMixpanel)();
1540
1540
  if (!config?.names?.variables?.[action]) {
1541
1541
  return;
1542
1542
  }
1543
1543
  const name = config.names.variables[action];
1544
- extendedWindow.elementorCommon?.eventsManager?.dispatchEvent(name, {
1545
- location: config.locations.variables,
1546
- secondaryLocation: config.secondaryLocations.variablesPopover,
1547
- trigger: config.triggers.click,
1544
+ dispatchEvent?.(name, {
1545
+ location: config?.locations?.variables || "",
1546
+ secondaryLocation: config?.secondaryLocations?.variablesPopover || "",
1547
+ trigger: config?.triggers?.click || "",
1548
1548
  var_type: varType,
1549
1549
  control_path: controlPath,
1550
1550
  action_type: name