@elementor/editor-components 4.2.0-945 → 4.2.0-beta1
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.d.mts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -23
- package/src/create-component-type.ts +1 -1
- package/src/index.ts +3 -1
- package/src/utils/detach-component-instance/detach-component-instance.ts +1 -1
- package/src/utils/tracking.ts +14 -6
package/dist/index.mjs
CHANGED
|
@@ -1105,8 +1105,8 @@ var componentInstancePropTypeUtil = createPropUtils4(
|
|
|
1105
1105
|
import { getMixpanel } from "@elementor/events";
|
|
1106
1106
|
import { __getState as getState2 } from "@elementor/store";
|
|
1107
1107
|
var FEATURE_NAME = "Components";
|
|
1108
|
-
var trackComponentEvent = ({ action, source, ...data }) => {
|
|
1109
|
-
if (source === "system") {
|
|
1108
|
+
var trackComponentEvent = ({ action, source, executedBy, ...data }) => {
|
|
1109
|
+
if (source === "system" || executedBy === "system") {
|
|
1110
1110
|
return;
|
|
1111
1111
|
}
|
|
1112
1112
|
const { dispatchEvent, config } = getMixpanel();
|
|
@@ -1114,7 +1114,7 @@ var trackComponentEvent = ({ action, source, ...data }) => {
|
|
|
1114
1114
|
return;
|
|
1115
1115
|
}
|
|
1116
1116
|
const name = config.names.components[action];
|
|
1117
|
-
dispatchEvent?.(name, { ...data, source, "Feature name": FEATURE_NAME });
|
|
1117
|
+
dispatchEvent?.(name, { ...data, executed_by: executedBy ?? source, "Feature name": FEATURE_NAME });
|
|
1118
1118
|
};
|
|
1119
1119
|
var onElementDrop = (_args, element) => {
|
|
1120
1120
|
if (!(element?.model?.get("widgetType") === "e-component")) {
|
|
@@ -1130,7 +1130,7 @@ var onElementDrop = (_args, element) => {
|
|
|
1130
1130
|
const { locations, secondaryLocations } = eventsManagerConfig;
|
|
1131
1131
|
trackComponentEvent({
|
|
1132
1132
|
action: "instanceAdded",
|
|
1133
|
-
|
|
1133
|
+
executedBy: "user",
|
|
1134
1134
|
instance_id: instanceId,
|
|
1135
1135
|
component_uid: componentUID,
|
|
1136
1136
|
component_name: componentName,
|
|
@@ -1354,7 +1354,7 @@ async function detachComponentInstance({
|
|
|
1354
1354
|
const componentUid = selectComponent(getState3(), componentId)?.uid;
|
|
1355
1355
|
trackComponentEvent({
|
|
1356
1356
|
action: "detached",
|
|
1357
|
-
|
|
1357
|
+
executedBy: "user",
|
|
1358
1358
|
component_uid: componentUid,
|
|
1359
1359
|
instance_id: instanceId,
|
|
1360
1360
|
location: trackingInfo.location,
|
|
@@ -2874,7 +2874,7 @@ function createComponentView(options) {
|
|
|
2874
2874
|
const editorSettings = this.model.get("editor_settings");
|
|
2875
2875
|
trackComponentEvent({
|
|
2876
2876
|
action: "edited",
|
|
2877
|
-
|
|
2877
|
+
executedBy: "user",
|
|
2878
2878
|
component_uid: editorSettings?.component_uid,
|
|
2879
2879
|
component_name: editorSettings?.title,
|
|
2880
2880
|
location,
|
|
@@ -3300,6 +3300,8 @@ export {
|
|
|
3300
3300
|
publishDraftComponentsInPageBeforeSave,
|
|
3301
3301
|
registerComponentsReducer,
|
|
3302
3302
|
resolveOverridePropValue,
|
|
3303
|
+
selectComponentByUid,
|
|
3304
|
+
selectCreatedThisSession,
|
|
3303
3305
|
selectOverridableProps,
|
|
3304
3306
|
selectPath,
|
|
3305
3307
|
slice,
|