@elementor/editor-variables 4.3.0-953 → 4.3.0-955
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 +14 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/utils/tracking.ts +19 -21
package/dist/index.js
CHANGED
|
@@ -105,24 +105,21 @@ var trackVariablesManagerEvent = ({ action, source, varType, controlPath }) => {
|
|
|
105
105
|
dispatchEvent?.(name, eventData);
|
|
106
106
|
};
|
|
107
107
|
var trackVariableSyncToV3 = ({ variableLabel, action }) => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
const name = config.names.variables.variableSyncToV3;
|
|
114
|
-
const isSync = action === "sync";
|
|
115
|
-
dispatchEvent?.(name, {
|
|
116
|
-
interaction_type: "click",
|
|
117
|
-
target_type: variableLabel,
|
|
118
|
-
target_name: isSync ? "sync_to_v3" : "unsync_to_v3",
|
|
119
|
-
interaction_result: isSync ? "var_is_synced_to_V3" : "var_is_unsynced_from_V3",
|
|
120
|
-
target_location: "widget_panel",
|
|
121
|
-
location_l1: "var_manager",
|
|
122
|
-
interaction_description: isSync ? `user_synced_${variableLabel}_to_v3` : `user_unsync_${variableLabel}_from_v3`
|
|
123
|
-
});
|
|
124
|
-
} catch {
|
|
108
|
+
const { dispatchEvent, config } = (0, import_events.getMixpanel)();
|
|
109
|
+
if (!config?.names?.variables?.variableSyncToV3) {
|
|
110
|
+
return;
|
|
125
111
|
}
|
|
112
|
+
const name = config.names.variables.variableSyncToV3;
|
|
113
|
+
const isSync = action === "sync";
|
|
114
|
+
dispatchEvent?.(name, {
|
|
115
|
+
interaction_type: "click",
|
|
116
|
+
target_type: variableLabel,
|
|
117
|
+
target_name: isSync ? "sync_to_v3" : "unsync_to_v3",
|
|
118
|
+
interaction_result: isSync ? "var_is_synced_to_V3" : "var_is_unsynced_from_V3",
|
|
119
|
+
target_location: "widget_panel",
|
|
120
|
+
location_l1: "var_manager",
|
|
121
|
+
interaction_description: isSync ? `user_synced_${variableLabel}_to_v3` : `user_unsync_${variableLabel}_from_v3`
|
|
122
|
+
});
|
|
126
123
|
};
|
|
127
124
|
|
|
128
125
|
// src/utils/validations.ts
|