@elementor/editor-canvas 4.2.0-926 → 4.2.0-927

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
@@ -3082,8 +3082,10 @@ function createPromotionView(BaseView) {
3082
3082
  return class extends BaseView {
3083
3083
  _afterRender() {
3084
3084
  super._afterRender();
3085
- this.$el.off("click", ".e-form-placeholder__remove-btn");
3086
- this.$el.on("click", ".e-form-placeholder__remove-btn", (e) => {
3085
+ const removeBtnSelector = ".e-pro-promotion-placeholder__remove-btn";
3086
+ const unlockBtnSelector = ".e-pro-promotion-placeholder__unlock-btn";
3087
+ this.$el.off("click", removeBtnSelector);
3088
+ this.$el.on("click", removeBtnSelector, (e) => {
3087
3089
  e.preventDefault();
3088
3090
  e.stopPropagation();
3089
3091
  window.$e.run(
@@ -3091,8 +3093,8 @@ function createPromotionView(BaseView) {
3091
3093
  { container: this.container }
3092
3094
  );
3093
3095
  });
3094
- this.$el.off("click", ".e-form-placeholder__unlock-btn");
3095
- this.$el.on("click", ".e-form-placeholder__unlock-btn", (e) => {
3096
+ this.$el.off("click", unlockBtnSelector);
3097
+ this.$el.on("click", unlockBtnSelector, (e) => {
3096
3098
  e.stopPropagation();
3097
3099
  });
3098
3100
  }
@@ -3110,8 +3112,8 @@ function createPromotionView(BaseView) {
3110
3112
  }
3111
3113
  onDestroy(...args) {
3112
3114
  super.onDestroy(...args);
3113
- this.$el.off("click", ".e-form-placeholder__remove-btn");
3114
- this.$el.off("click", ".e-form-placeholder__unlock-btn");
3115
+ this.$el.off("click", ".e-pro-promotion-placeholder__remove-btn");
3116
+ this.$el.off("click", ".e-pro-promotion-placeholder__unlock-btn");
3115
3117
  }
3116
3118
  };
3117
3119
  }
package/dist/index.mjs CHANGED
@@ -3042,8 +3042,10 @@ function createPromotionView(BaseView) {
3042
3042
  return class extends BaseView {
3043
3043
  _afterRender() {
3044
3044
  super._afterRender();
3045
- this.$el.off("click", ".e-form-placeholder__remove-btn");
3046
- this.$el.on("click", ".e-form-placeholder__remove-btn", (e) => {
3045
+ const removeBtnSelector = ".e-pro-promotion-placeholder__remove-btn";
3046
+ const unlockBtnSelector = ".e-pro-promotion-placeholder__unlock-btn";
3047
+ this.$el.off("click", removeBtnSelector);
3048
+ this.$el.on("click", removeBtnSelector, (e) => {
3047
3049
  e.preventDefault();
3048
3050
  e.stopPropagation();
3049
3051
  window.$e.run(
@@ -3051,8 +3053,8 @@ function createPromotionView(BaseView) {
3051
3053
  { container: this.container }
3052
3054
  );
3053
3055
  });
3054
- this.$el.off("click", ".e-form-placeholder__unlock-btn");
3055
- this.$el.on("click", ".e-form-placeholder__unlock-btn", (e) => {
3056
+ this.$el.off("click", unlockBtnSelector);
3057
+ this.$el.on("click", unlockBtnSelector, (e) => {
3056
3058
  e.stopPropagation();
3057
3059
  });
3058
3060
  }
@@ -3070,8 +3072,8 @@ function createPromotionView(BaseView) {
3070
3072
  }
3071
3073
  onDestroy(...args) {
3072
3074
  super.onDestroy(...args);
3073
- this.$el.off("click", ".e-form-placeholder__remove-btn");
3074
- this.$el.off("click", ".e-form-placeholder__unlock-btn");
3075
+ this.$el.off("click", ".e-pro-promotion-placeholder__remove-btn");
3076
+ this.$el.off("click", ".e-pro-promotion-placeholder__unlock-btn");
3075
3077
  }
3076
3078
  };
3077
3079
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-canvas",
3
3
  "description": "Elementor Editor Canvas",
4
- "version": "4.2.0-926",
4
+ "version": "4.2.0-927",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -37,25 +37,25 @@
37
37
  "react-dom": "^18.3.1"
38
38
  },
39
39
  "dependencies": {
40
- "@elementor/editor": "4.2.0-926",
40
+ "@elementor/editor": "4.2.0-927",
41
41
  "dompurify": "^3.2.6",
42
- "@elementor/editor-controls": "4.2.0-926",
43
- "@elementor/editor-documents": "4.2.0-926",
44
- "@elementor/editor-elements": "4.2.0-926",
45
- "@elementor/editor-interactions": "4.2.0-926",
46
- "@elementor/editor-mcp": "4.2.0-926",
47
- "@elementor/editor-notifications": "4.2.0-926",
48
- "@elementor/editor-props": "4.2.0-926",
49
- "@elementor/editor-responsive": "4.2.0-926",
50
- "@elementor/editor-styles": "4.2.0-926",
51
- "@elementor/editor-styles-repository": "4.2.0-926",
52
- "@elementor/editor-ui": "4.2.0-926",
53
- "@elementor/editor-v1-adapters": "4.2.0-926",
54
- "@elementor/schema": "4.2.0-926",
55
- "@elementor/twing": "4.2.0-926",
42
+ "@elementor/editor-controls": "4.2.0-927",
43
+ "@elementor/editor-documents": "4.2.0-927",
44
+ "@elementor/editor-elements": "4.2.0-927",
45
+ "@elementor/editor-interactions": "4.2.0-927",
46
+ "@elementor/editor-mcp": "4.2.0-927",
47
+ "@elementor/editor-notifications": "4.2.0-927",
48
+ "@elementor/editor-props": "4.2.0-927",
49
+ "@elementor/editor-responsive": "4.2.0-927",
50
+ "@elementor/editor-styles": "4.2.0-927",
51
+ "@elementor/editor-styles-repository": "4.2.0-927",
52
+ "@elementor/editor-ui": "4.2.0-927",
53
+ "@elementor/editor-v1-adapters": "4.2.0-927",
54
+ "@elementor/schema": "4.2.0-927",
55
+ "@elementor/twing": "4.2.0-927",
56
56
  "@elementor/ui": "1.37.5",
57
- "@elementor/utils": "4.2.0-926",
58
- "@elementor/wp-media": "4.2.0-926",
57
+ "@elementor/utils": "4.2.0-927",
58
+ "@elementor/wp-media": "4.2.0-927",
59
59
  "@floating-ui/react": "^0.27.5",
60
60
  "@wordpress/i18n": "^5.13.0"
61
61
  },
@@ -40,8 +40,11 @@ function createPromotionView( BaseView: typeof ElementView ): typeof ElementView
40
40
  _afterRender() {
41
41
  super._afterRender();
42
42
 
43
- this.$el.off( 'click', '.e-form-placeholder__remove-btn' );
44
- this.$el.on( 'click', '.e-form-placeholder__remove-btn', ( e: Event ) => {
43
+ const removeBtnSelector = '.e-pro-promotion-placeholder__remove-btn';
44
+ const unlockBtnSelector = '.e-pro-promotion-placeholder__unlock-btn';
45
+
46
+ this.$el.off( 'click', removeBtnSelector );
47
+ this.$el.on( 'click', removeBtnSelector, ( e: Event ) => {
45
48
  e.preventDefault();
46
49
  e.stopPropagation();
47
50
 
@@ -51,8 +54,8 @@ function createPromotionView( BaseView: typeof ElementView ): typeof ElementView
51
54
  );
52
55
  } );
53
56
 
54
- this.$el.off( 'click', '.e-form-placeholder__unlock-btn' );
55
- this.$el.on( 'click', '.e-form-placeholder__unlock-btn', ( e: Event ) => {
57
+ this.$el.off( 'click', unlockBtnSelector );
58
+ this.$el.on( 'click', unlockBtnSelector, ( e: Event ) => {
56
59
  e.stopPropagation();
57
60
  } );
58
61
  }
@@ -75,8 +78,8 @@ function createPromotionView( BaseView: typeof ElementView ): typeof ElementView
75
78
 
76
79
  onDestroy( ...args: unknown[] ) {
77
80
  super.onDestroy( ...args );
78
- this.$el.off( 'click', '.e-form-placeholder__remove-btn' );
79
- this.$el.off( 'click', '.e-form-placeholder__unlock-btn' );
81
+ this.$el.off( 'click', '.e-pro-promotion-placeholder__remove-btn' );
82
+ this.$el.off( 'click', '.e-pro-promotion-placeholder__unlock-btn' );
80
83
  }
81
84
  } as unknown as typeof ElementView;
82
85
  }