@elementor/editor-variables 4.3.0-954 → 4.3.0-956

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementor/editor-variables",
3
- "version": "4.3.0-954",
3
+ "version": "4.3.0-956",
4
4
  "private": false,
5
5
  "author": "Elementor Team",
6
6
  "homepage": "https://elementor.com/",
@@ -39,22 +39,22 @@
39
39
  "dev": "tsup --config=../../tsup.dev.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@elementor/editor": "4.3.0-954",
43
- "@elementor/editor-canvas": "4.3.0-954",
44
- "@elementor/editor-controls": "4.3.0-954",
45
- "@elementor/editor-current-user": "4.3.0-954",
46
- "@elementor/editor-mcp": "4.3.0-954",
47
- "@elementor/editor-panels": "4.3.0-954",
48
- "@elementor/editor-props": "4.3.0-954",
49
- "@elementor/editor-ui": "4.3.0-954",
50
- "@elementor/editor-v1-adapters": "4.3.0-954",
51
- "@elementor/menus": "4.3.0-954",
52
- "@elementor/http-client": "4.3.0-954",
42
+ "@elementor/editor": "4.3.0-956",
43
+ "@elementor/editor-canvas": "4.3.0-956",
44
+ "@elementor/editor-controls": "4.3.0-956",
45
+ "@elementor/editor-current-user": "4.3.0-956",
46
+ "@elementor/editor-mcp": "4.3.0-956",
47
+ "@elementor/editor-panels": "4.3.0-956",
48
+ "@elementor/editor-props": "4.3.0-956",
49
+ "@elementor/editor-ui": "4.3.0-956",
50
+ "@elementor/editor-v1-adapters": "4.3.0-956",
51
+ "@elementor/menus": "4.3.0-956",
52
+ "@elementor/http-client": "4.3.0-956",
53
53
  "@elementor/icons": "~1.75.1",
54
- "@elementor/events": "4.3.0-954",
55
- "@elementor/schema": "4.3.0-954",
54
+ "@elementor/events": "4.3.0-956",
55
+ "@elementor/schema": "4.3.0-956",
56
56
  "@elementor/ui": "1.37.5",
57
- "@elementor/utils": "4.3.0-954",
57
+ "@elementor/utils": "4.3.0-956",
58
58
  "@wordpress/i18n": "^5.13.0"
59
59
  },
60
60
  "peerDependencies": {
@@ -84,25 +84,23 @@ type VariableSyncToV3Data = {
84
84
  };
85
85
 
86
86
  export const trackVariableSyncToV3 = ( { variableLabel, action }: VariableSyncToV3Data ) => {
87
- try {
88
- const { dispatchEvent, config } = getMixpanel();
89
- if ( ! config?.names?.variables?.variableSyncToV3 ) {
90
- return;
91
- }
92
-
93
- const name = config.names.variables.variableSyncToV3;
94
- const isSync = action === 'sync';
95
-
96
- dispatchEvent?.( name, {
97
- interaction_type: 'click',
98
- target_type: variableLabel,
99
- target_name: isSync ? 'sync_to_v3' : 'unsync_to_v3',
100
- interaction_result: isSync ? 'var_is_synced_to_V3' : 'var_is_unsynced_from_V3',
101
- target_location: 'widget_panel',
102
- location_l1: 'var_manager',
103
- interaction_description: isSync
104
- ? `user_synced_${ variableLabel }_to_v3`
105
- : `user_unsync_${ variableLabel }_from_v3`,
106
- } );
107
- } catch {}
87
+ const { dispatchEvent, config } = getMixpanel();
88
+ if ( ! config?.names?.variables?.variableSyncToV3 ) {
89
+ return;
90
+ }
91
+
92
+ const name = config.names.variables.variableSyncToV3;
93
+ const isSync = action === 'sync';
94
+
95
+ dispatchEvent?.( name, {
96
+ interaction_type: 'click',
97
+ target_type: variableLabel,
98
+ target_name: isSync ? 'sync_to_v3' : 'unsync_to_v3',
99
+ interaction_result: isSync ? 'var_is_synced_to_V3' : 'var_is_unsynced_from_V3',
100
+ target_location: 'widget_panel',
101
+ location_l1: 'var_manager',
102
+ interaction_description: isSync
103
+ ? `user_synced_${ variableLabel }_to_v3`
104
+ : `user_unsync_${ variableLabel }_from_v3`,
105
+ } );
108
106
  };