@elementor/editor-canvas 4.1.0-697 → 4.1.0-698
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -1
- package/dist/index.mjs +14 -1
- package/package.json +18 -18
- package/src/legacy/create-nested-templated-element-type.ts +11 -2
- package/src/legacy/create-templated-element-type.ts +8 -0
- package/src/legacy/types.ts +1 -0
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2008,6 +2008,7 @@ function createTemplatedElementView({
|
|
|
2008
2008
|
this._lastResolvedSettingsHash = settingsHash;
|
|
2009
2009
|
const context = {
|
|
2010
2010
|
id: this.model.get("id"),
|
|
2011
|
+
interaction_id: this.getInteractionId(),
|
|
2011
2012
|
type,
|
|
2012
2013
|
settings,
|
|
2013
2014
|
base_styles: baseStylesDictionary
|
|
@@ -2042,6 +2043,11 @@ function createTemplatedElementView({
|
|
|
2042
2043
|
_openEditingPanel(options) {
|
|
2043
2044
|
this._doAfterRender(() => super._openEditingPanel(options));
|
|
2044
2045
|
}
|
|
2046
|
+
getInteractionId() {
|
|
2047
|
+
const originId = this.model.get("originId");
|
|
2048
|
+
const id = this.model.get("id");
|
|
2049
|
+
return originId ?? id;
|
|
2050
|
+
}
|
|
2045
2051
|
};
|
|
2046
2052
|
}
|
|
2047
2053
|
|
|
@@ -2074,10 +2080,11 @@ function createNestedTemplatedElementType({
|
|
|
2074
2080
|
}
|
|
2075
2081
|
function buildEditorAttributes(model) {
|
|
2076
2082
|
const id = model.get("id");
|
|
2083
|
+
const originId = model.get("originId");
|
|
2077
2084
|
const cid = model.cid ?? "";
|
|
2078
2085
|
const attrs = {
|
|
2079
2086
|
"data-model-cid": cid,
|
|
2080
|
-
"data-interaction-id": id,
|
|
2087
|
+
"data-interaction-id": originId ?? id,
|
|
2081
2088
|
"x-ignore": "true"
|
|
2082
2089
|
};
|
|
2083
2090
|
return Object.entries(attrs).map(([key, value]) => `${key}="${value}"`).join(" ");
|
|
@@ -2154,6 +2161,7 @@ function createNestedTemplatedElementView({
|
|
|
2154
2161
|
this._lastResolvedSettingsHash = settingsHash;
|
|
2155
2162
|
const context = {
|
|
2156
2163
|
id: model.get("id"),
|
|
2164
|
+
interaction_id: this.getInteractionId(),
|
|
2157
2165
|
type,
|
|
2158
2166
|
settings,
|
|
2159
2167
|
base_styles: baseStylesDictionary,
|
|
@@ -2283,6 +2291,11 @@ function createNestedTemplatedElementView({
|
|
|
2283
2291
|
},
|
|
2284
2292
|
_openEditingPanel(options) {
|
|
2285
2293
|
this._doAfterRender(() => parentOpenEditingPanel.call(this, options));
|
|
2294
|
+
},
|
|
2295
|
+
getInteractionId() {
|
|
2296
|
+
const originId = this.model.get("originId");
|
|
2297
|
+
const id = this.model.get("id");
|
|
2298
|
+
return originId ?? id;
|
|
2286
2299
|
}
|
|
2287
2300
|
});
|
|
2288
2301
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1974,6 +1974,7 @@ function createTemplatedElementView({
|
|
|
1974
1974
|
this._lastResolvedSettingsHash = settingsHash;
|
|
1975
1975
|
const context = {
|
|
1976
1976
|
id: this.model.get("id"),
|
|
1977
|
+
interaction_id: this.getInteractionId(),
|
|
1977
1978
|
type,
|
|
1978
1979
|
settings,
|
|
1979
1980
|
base_styles: baseStylesDictionary
|
|
@@ -2008,6 +2009,11 @@ function createTemplatedElementView({
|
|
|
2008
2009
|
_openEditingPanel(options) {
|
|
2009
2010
|
this._doAfterRender(() => super._openEditingPanel(options));
|
|
2010
2011
|
}
|
|
2012
|
+
getInteractionId() {
|
|
2013
|
+
const originId = this.model.get("originId");
|
|
2014
|
+
const id = this.model.get("id");
|
|
2015
|
+
return originId ?? id;
|
|
2016
|
+
}
|
|
2011
2017
|
};
|
|
2012
2018
|
}
|
|
2013
2019
|
|
|
@@ -2040,10 +2046,11 @@ function createNestedTemplatedElementType({
|
|
|
2040
2046
|
}
|
|
2041
2047
|
function buildEditorAttributes(model) {
|
|
2042
2048
|
const id = model.get("id");
|
|
2049
|
+
const originId = model.get("originId");
|
|
2043
2050
|
const cid = model.cid ?? "";
|
|
2044
2051
|
const attrs = {
|
|
2045
2052
|
"data-model-cid": cid,
|
|
2046
|
-
"data-interaction-id": id,
|
|
2053
|
+
"data-interaction-id": originId ?? id,
|
|
2047
2054
|
"x-ignore": "true"
|
|
2048
2055
|
};
|
|
2049
2056
|
return Object.entries(attrs).map(([key, value]) => `${key}="${value}"`).join(" ");
|
|
@@ -2120,6 +2127,7 @@ function createNestedTemplatedElementView({
|
|
|
2120
2127
|
this._lastResolvedSettingsHash = settingsHash;
|
|
2121
2128
|
const context = {
|
|
2122
2129
|
id: model.get("id"),
|
|
2130
|
+
interaction_id: this.getInteractionId(),
|
|
2123
2131
|
type,
|
|
2124
2132
|
settings,
|
|
2125
2133
|
base_styles: baseStylesDictionary,
|
|
@@ -2249,6 +2257,11 @@ function createNestedTemplatedElementView({
|
|
|
2249
2257
|
},
|
|
2250
2258
|
_openEditingPanel(options) {
|
|
2251
2259
|
this._doAfterRender(() => parentOpenEditingPanel.call(this, options));
|
|
2260
|
+
},
|
|
2261
|
+
getInteractionId() {
|
|
2262
|
+
const originId = this.model.get("originId");
|
|
2263
|
+
const id = this.model.get("id");
|
|
2264
|
+
return originId ?? id;
|
|
2252
2265
|
}
|
|
2253
2266
|
});
|
|
2254
2267
|
}
|
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.1.0-
|
|
4
|
+
"version": "4.1.0-698",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -37,24 +37,24 @@
|
|
|
37
37
|
"react-dom": "^18.3.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elementor/editor": "4.1.0-
|
|
41
|
-
"@elementor/editor-controls": "4.1.0-
|
|
42
|
-
"@elementor/editor-documents": "4.1.0-
|
|
43
|
-
"@elementor/editor-elements": "4.1.0-
|
|
44
|
-
"@elementor/editor-interactions": "4.1.0-
|
|
45
|
-
"@elementor/editor-mcp": "4.1.0-
|
|
46
|
-
"@elementor/editor-notifications": "4.1.0-
|
|
47
|
-
"@elementor/editor-props": "4.1.0-
|
|
48
|
-
"@elementor/editor-responsive": "4.1.0-
|
|
49
|
-
"@elementor/editor-styles": "4.1.0-
|
|
50
|
-
"@elementor/editor-styles-repository": "4.1.0-
|
|
51
|
-
"@elementor/editor-ui": "4.1.0-
|
|
52
|
-
"@elementor/editor-v1-adapters": "4.1.0-
|
|
53
|
-
"@elementor/schema": "4.1.0-
|
|
54
|
-
"@elementor/twing": "4.1.0-
|
|
40
|
+
"@elementor/editor": "4.1.0-698",
|
|
41
|
+
"@elementor/editor-controls": "4.1.0-698",
|
|
42
|
+
"@elementor/editor-documents": "4.1.0-698",
|
|
43
|
+
"@elementor/editor-elements": "4.1.0-698",
|
|
44
|
+
"@elementor/editor-interactions": "4.1.0-698",
|
|
45
|
+
"@elementor/editor-mcp": "4.1.0-698",
|
|
46
|
+
"@elementor/editor-notifications": "4.1.0-698",
|
|
47
|
+
"@elementor/editor-props": "4.1.0-698",
|
|
48
|
+
"@elementor/editor-responsive": "4.1.0-698",
|
|
49
|
+
"@elementor/editor-styles": "4.1.0-698",
|
|
50
|
+
"@elementor/editor-styles-repository": "4.1.0-698",
|
|
51
|
+
"@elementor/editor-ui": "4.1.0-698",
|
|
52
|
+
"@elementor/editor-v1-adapters": "4.1.0-698",
|
|
53
|
+
"@elementor/schema": "4.1.0-698",
|
|
54
|
+
"@elementor/twing": "4.1.0-698",
|
|
55
55
|
"@elementor/ui": "1.36.17",
|
|
56
|
-
"@elementor/utils": "4.1.0-
|
|
57
|
-
"@elementor/wp-media": "4.1.0-
|
|
56
|
+
"@elementor/utils": "4.1.0-698",
|
|
57
|
+
"@elementor/wp-media": "4.1.0-698",
|
|
58
58
|
"@floating-ui/react": "^0.27.5",
|
|
59
59
|
"@wordpress/i18n": "^5.13.0"
|
|
60
60
|
},
|
|
@@ -61,13 +61,14 @@ export function createNestedTemplatedElementType( {
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
function buildEditorAttributes( model:
|
|
64
|
+
function buildEditorAttributes( model: ElementView[ 'model' ] ): string {
|
|
65
65
|
const id = model.get( 'id' );
|
|
66
|
+
const originId = model.get( 'originId' );
|
|
66
67
|
const cid = model.cid ?? '';
|
|
67
68
|
|
|
68
69
|
const attrs: Record< string, string > = {
|
|
69
70
|
'data-model-cid': cid,
|
|
70
|
-
'data-interaction-id': id,
|
|
71
|
+
'data-interaction-id': originId ?? id,
|
|
71
72
|
'x-ignore': 'true',
|
|
72
73
|
};
|
|
73
74
|
|
|
@@ -181,6 +182,7 @@ export function createNestedTemplatedElementView( {
|
|
|
181
182
|
|
|
182
183
|
const context = {
|
|
183
184
|
id: model.get( 'id' ),
|
|
185
|
+
interaction_id: this.getInteractionId(),
|
|
184
186
|
type,
|
|
185
187
|
settings,
|
|
186
188
|
base_styles: baseStylesDictionary,
|
|
@@ -361,5 +363,12 @@ export function createNestedTemplatedElementView( {
|
|
|
361
363
|
_openEditingPanel( options?: { scrollIntoView: boolean } ) {
|
|
362
364
|
this._doAfterRender( () => parentOpenEditingPanel.call( this, options ) );
|
|
363
365
|
},
|
|
366
|
+
|
|
367
|
+
getInteractionId() {
|
|
368
|
+
const originId = this.model.get( 'originId' );
|
|
369
|
+
const id = this.model.get( 'id' );
|
|
370
|
+
|
|
371
|
+
return originId ?? id;
|
|
372
|
+
},
|
|
364
373
|
} ) as unknown as typeof ElementView;
|
|
365
374
|
}
|
|
@@ -162,6 +162,7 @@ export function createTemplatedElementView( {
|
|
|
162
162
|
|
|
163
163
|
const context = {
|
|
164
164
|
id: this.model.get( 'id' ),
|
|
165
|
+
interaction_id: this.getInteractionId(),
|
|
165
166
|
type,
|
|
166
167
|
settings,
|
|
167
168
|
base_styles: baseStylesDictionary,
|
|
@@ -206,5 +207,12 @@ export function createTemplatedElementView( {
|
|
|
206
207
|
_openEditingPanel( options?: { scrollIntoView: boolean } ) {
|
|
207
208
|
this._doAfterRender( () => super._openEditingPanel( options ) );
|
|
208
209
|
}
|
|
210
|
+
|
|
211
|
+
getInteractionId() {
|
|
212
|
+
const originId = this.model.get( 'originId' );
|
|
213
|
+
const id = this.model.get( 'id' );
|
|
214
|
+
|
|
215
|
+
return originId ?? id;
|
|
216
|
+
}
|
|
209
217
|
};
|
|
210
218
|
}
|
package/src/legacy/types.ts
CHANGED