@elementor/editor-canvas 4.2.0-925 → 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
|
@@ -2742,7 +2742,8 @@ function createTemplatedElementView({
|
|
|
2742
2742
|
interaction_id: this.getInteractionId(),
|
|
2743
2743
|
type,
|
|
2744
2744
|
settings,
|
|
2745
|
-
base_styles: baseStylesDictionary
|
|
2745
|
+
base_styles: baseStylesDictionary,
|
|
2746
|
+
...this.getResolverRenderContext?.() ?? {}
|
|
2746
2747
|
};
|
|
2747
2748
|
return renderer.render(templateKey, context);
|
|
2748
2749
|
}).then((html) => {
|
|
@@ -2906,7 +2907,8 @@ function createNestedTemplatedElementView({
|
|
|
2906
2907
|
settings,
|
|
2907
2908
|
base_styles: baseStylesDictionary,
|
|
2908
2909
|
editor_attributes: buildEditorAttributes(model),
|
|
2909
|
-
editor_classes: buildEditorClasses(model)
|
|
2910
|
+
editor_classes: buildEditorClasses(model),
|
|
2911
|
+
...this.getResolverRenderContext?.() ?? {}
|
|
2910
2912
|
};
|
|
2911
2913
|
return renderer.render(templateKey, context);
|
|
2912
2914
|
}).then((html) => {
|
|
@@ -3080,8 +3082,10 @@ function createPromotionView(BaseView) {
|
|
|
3080
3082
|
return class extends BaseView {
|
|
3081
3083
|
_afterRender() {
|
|
3082
3084
|
super._afterRender();
|
|
3083
|
-
|
|
3084
|
-
|
|
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) => {
|
|
3085
3089
|
e.preventDefault();
|
|
3086
3090
|
e.stopPropagation();
|
|
3087
3091
|
window.$e.run(
|
|
@@ -3089,8 +3093,8 @@ function createPromotionView(BaseView) {
|
|
|
3089
3093
|
{ container: this.container }
|
|
3090
3094
|
);
|
|
3091
3095
|
});
|
|
3092
|
-
this.$el.off("click",
|
|
3093
|
-
this.$el.on("click",
|
|
3096
|
+
this.$el.off("click", unlockBtnSelector);
|
|
3097
|
+
this.$el.on("click", unlockBtnSelector, (e) => {
|
|
3094
3098
|
e.stopPropagation();
|
|
3095
3099
|
});
|
|
3096
3100
|
}
|
|
@@ -3108,8 +3112,8 @@ function createPromotionView(BaseView) {
|
|
|
3108
3112
|
}
|
|
3109
3113
|
onDestroy(...args) {
|
|
3110
3114
|
super.onDestroy(...args);
|
|
3111
|
-
this.$el.off("click", ".e-
|
|
3112
|
-
this.$el.off("click", ".e-
|
|
3115
|
+
this.$el.off("click", ".e-pro-promotion-placeholder__remove-btn");
|
|
3116
|
+
this.$el.off("click", ".e-pro-promotion-placeholder__unlock-btn");
|
|
3113
3117
|
}
|
|
3114
3118
|
};
|
|
3115
3119
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2702,7 +2702,8 @@ function createTemplatedElementView({
|
|
|
2702
2702
|
interaction_id: this.getInteractionId(),
|
|
2703
2703
|
type,
|
|
2704
2704
|
settings,
|
|
2705
|
-
base_styles: baseStylesDictionary
|
|
2705
|
+
base_styles: baseStylesDictionary,
|
|
2706
|
+
...this.getResolverRenderContext?.() ?? {}
|
|
2706
2707
|
};
|
|
2707
2708
|
return renderer.render(templateKey, context);
|
|
2708
2709
|
}).then((html) => {
|
|
@@ -2866,7 +2867,8 @@ function createNestedTemplatedElementView({
|
|
|
2866
2867
|
settings,
|
|
2867
2868
|
base_styles: baseStylesDictionary,
|
|
2868
2869
|
editor_attributes: buildEditorAttributes(model),
|
|
2869
|
-
editor_classes: buildEditorClasses(model)
|
|
2870
|
+
editor_classes: buildEditorClasses(model),
|
|
2871
|
+
...this.getResolverRenderContext?.() ?? {}
|
|
2870
2872
|
};
|
|
2871
2873
|
return renderer.render(templateKey, context);
|
|
2872
2874
|
}).then((html) => {
|
|
@@ -3040,8 +3042,10 @@ function createPromotionView(BaseView) {
|
|
|
3040
3042
|
return class extends BaseView {
|
|
3041
3043
|
_afterRender() {
|
|
3042
3044
|
super._afterRender();
|
|
3043
|
-
|
|
3044
|
-
|
|
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) => {
|
|
3045
3049
|
e.preventDefault();
|
|
3046
3050
|
e.stopPropagation();
|
|
3047
3051
|
window.$e.run(
|
|
@@ -3049,8 +3053,8 @@ function createPromotionView(BaseView) {
|
|
|
3049
3053
|
{ container: this.container }
|
|
3050
3054
|
);
|
|
3051
3055
|
});
|
|
3052
|
-
this.$el.off("click",
|
|
3053
|
-
this.$el.on("click",
|
|
3056
|
+
this.$el.off("click", unlockBtnSelector);
|
|
3057
|
+
this.$el.on("click", unlockBtnSelector, (e) => {
|
|
3054
3058
|
e.stopPropagation();
|
|
3055
3059
|
});
|
|
3056
3060
|
}
|
|
@@ -3068,8 +3072,8 @@ function createPromotionView(BaseView) {
|
|
|
3068
3072
|
}
|
|
3069
3073
|
onDestroy(...args) {
|
|
3070
3074
|
super.onDestroy(...args);
|
|
3071
|
-
this.$el.off("click", ".e-
|
|
3072
|
-
this.$el.off("click", ".e-
|
|
3075
|
+
this.$el.off("click", ".e-pro-promotion-placeholder__remove-btn");
|
|
3076
|
+
this.$el.off("click", ".e-pro-promotion-placeholder__unlock-btn");
|
|
3073
3077
|
}
|
|
3074
3078
|
};
|
|
3075
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-
|
|
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-
|
|
40
|
+
"@elementor/editor": "4.2.0-927",
|
|
41
41
|
"dompurify": "^3.2.6",
|
|
42
|
-
"@elementor/editor-controls": "4.2.0-
|
|
43
|
-
"@elementor/editor-documents": "4.2.0-
|
|
44
|
-
"@elementor/editor-elements": "4.2.0-
|
|
45
|
-
"@elementor/editor-interactions": "4.2.0-
|
|
46
|
-
"@elementor/editor-mcp": "4.2.0-
|
|
47
|
-
"@elementor/editor-notifications": "4.2.0-
|
|
48
|
-
"@elementor/editor-props": "4.2.0-
|
|
49
|
-
"@elementor/editor-responsive": "4.2.0-
|
|
50
|
-
"@elementor/editor-styles": "4.2.0-
|
|
51
|
-
"@elementor/editor-styles-repository": "4.2.0-
|
|
52
|
-
"@elementor/editor-ui": "4.2.0-
|
|
53
|
-
"@elementor/editor-v1-adapters": "4.2.0-
|
|
54
|
-
"@elementor/schema": "4.2.0-
|
|
55
|
-
"@elementor/twing": "4.2.0-
|
|
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-
|
|
58
|
-
"@elementor/wp-media": "4.2.0-
|
|
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
|
},
|
|
@@ -200,6 +200,7 @@ export function createNestedTemplatedElementView( {
|
|
|
200
200
|
base_styles: baseStylesDictionary,
|
|
201
201
|
editor_attributes: buildEditorAttributes( model ),
|
|
202
202
|
editor_classes: buildEditorClasses( model ),
|
|
203
|
+
...( this.getResolverRenderContext?.() ?? {} ),
|
|
203
204
|
};
|
|
204
205
|
|
|
205
206
|
return renderer.render( templateKey, context );
|
|
@@ -40,8 +40,11 @@ function createPromotionView( BaseView: typeof ElementView ): typeof ElementView
|
|
|
40
40
|
_afterRender() {
|
|
41
41
|
super._afterRender();
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
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',
|
|
55
|
-
this.$el.on( 'click',
|
|
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-
|
|
79
|
-
this.$el.off( 'click', '.e-
|
|
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
|
}
|