@elementor/editor-components 4.2.0-928 → 4.2.0-930
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 +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/create-component-type.ts +11 -1
package/dist/index.js
CHANGED
|
@@ -2874,7 +2874,15 @@ function createComponentView(options) {
|
|
|
2874
2874
|
getResolverRenderContext() {
|
|
2875
2875
|
const namespaceKey = this.getNamespaceKey();
|
|
2876
2876
|
const context = this.getRenderContext();
|
|
2877
|
-
|
|
2877
|
+
const ownContext = context?.[namespaceKey];
|
|
2878
|
+
if (!ownContext) {
|
|
2879
|
+
return this._parent?.getResolverRenderContext?.();
|
|
2880
|
+
}
|
|
2881
|
+
const parentResolverContext = this._parent?.getResolverRenderContext?.();
|
|
2882
|
+
return {
|
|
2883
|
+
...parentResolverContext,
|
|
2884
|
+
...ownContext
|
|
2885
|
+
};
|
|
2878
2886
|
}
|
|
2879
2887
|
afterSettingsResolve(settings) {
|
|
2880
2888
|
const componentInstance = settings.component_instance;
|