@contentful/experiences-visual-editor-react 3.8.0-dev-20250926T1440-9676290.0 → 3.8.0-dev-20250929T1202-cb99bde.0
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 +10 -1
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +10 -1
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -42904,6 +42904,9 @@ const getPrebindingPathBySourceEntry = (preboundValueProperty, getHeadEntityByDa
|
|
|
42904
42904
|
return undefined;
|
|
42905
42905
|
}
|
|
42906
42906
|
const contentTypeId = headEntity.sys.contentType.sys.id;
|
|
42907
|
+
if (!preboundValueProperty.pathsByContentType?.[contentTypeId]) {
|
|
42908
|
+
return undefined;
|
|
42909
|
+
}
|
|
42907
42910
|
return preboundValueProperty.pathsByContentType?.[contentTypeId]?.path;
|
|
42908
42911
|
};
|
|
42909
42912
|
const parseDeepPath$1 = (deepPathCandidate) => {
|
|
@@ -51056,7 +51059,13 @@ const useComponentProps = ({ node, entityStore, areEntitiesFetched, resolveDesig
|
|
|
51056
51059
|
const prebindingPath = getPrebindingPathBySourceEntry(variableMapping, (dataSourceKey) => {
|
|
51057
51060
|
const link = dataSource[dataSourceKey];
|
|
51058
51061
|
return entityStore.getEntityFromLink(link);
|
|
51059
|
-
})
|
|
51062
|
+
});
|
|
51063
|
+
if (!prebindingPath) {
|
|
51064
|
+
return {
|
|
51065
|
+
...acc,
|
|
51066
|
+
[variableName]: variableDefinition.defaultValue,
|
|
51067
|
+
};
|
|
51068
|
+
}
|
|
51060
51069
|
// this allows us to resolve it regularly
|
|
51061
51070
|
boundValue = transformBoundContentValue(node.data.props, entityStore, link, resolveDesignValue, variableName, variableDefinition.type, prebindingPath);
|
|
51062
51071
|
}
|