@elementor/editor-variables 3.33.0-127 → 3.33.0-129
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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -12
- package/src/utils/tracking.ts +7 -22
package/dist/index.mjs
CHANGED
|
@@ -1521,17 +1521,17 @@ var unwrapValue = (input) => {
|
|
|
1521
1521
|
};
|
|
1522
1522
|
|
|
1523
1523
|
// src/utils/tracking.ts
|
|
1524
|
+
import { getMixpanel } from "@elementor/mixpanel";
|
|
1524
1525
|
var trackVariableEvent = ({ varType, controlPath, action }) => {
|
|
1525
|
-
const
|
|
1526
|
-
const config = extendedWindow?.elementorCommon?.eventsManager?.config;
|
|
1526
|
+
const { dispatchEvent, config } = getMixpanel();
|
|
1527
1527
|
if (!config?.names?.variables?.[action]) {
|
|
1528
1528
|
return;
|
|
1529
1529
|
}
|
|
1530
1530
|
const name = config.names.variables[action];
|
|
1531
|
-
|
|
1532
|
-
location: config
|
|
1533
|
-
secondaryLocation: config
|
|
1534
|
-
trigger: config
|
|
1531
|
+
dispatchEvent?.(name, {
|
|
1532
|
+
location: config?.locations?.variables || "",
|
|
1533
|
+
secondaryLocation: config?.secondaryLocations?.variablesPopover || "",
|
|
1534
|
+
trigger: config?.triggers?.click || "",
|
|
1535
1535
|
var_type: varType,
|
|
1536
1536
|
control_path: controlPath,
|
|
1537
1537
|
action_type: name
|