@contentful/experiences-visual-editor-react 3.8.0-dev-20250926T1440-9676290.0 → 3.8.0-dev-20250926T1559-e1ab24d.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/index.js
CHANGED
|
@@ -1530,6 +1530,9 @@ const getPrebindingPathBySourceEntry = (preboundValueProperty, getHeadEntityByDa
|
|
|
1530
1530
|
return undefined;
|
|
1531
1531
|
}
|
|
1532
1532
|
const contentTypeId = headEntity.sys.contentType.sys.id;
|
|
1533
|
+
if (!preboundValueProperty.pathsByContentType?.[contentTypeId]) {
|
|
1534
|
+
return undefined;
|
|
1535
|
+
}
|
|
1533
1536
|
return preboundValueProperty.pathsByContentType?.[contentTypeId]?.path;
|
|
1534
1537
|
};
|
|
1535
1538
|
const parseDeepPath$1 = (deepPathCandidate) => {
|
|
@@ -5110,7 +5113,13 @@ const useComponentProps = ({ node, entityStore, areEntitiesFetched, resolveDesig
|
|
|
5110
5113
|
const prebindingPath = getPrebindingPathBySourceEntry(variableMapping, (dataSourceKey) => {
|
|
5111
5114
|
const link = dataSource[dataSourceKey];
|
|
5112
5115
|
return entityStore.getEntityFromLink(link);
|
|
5113
|
-
})
|
|
5116
|
+
});
|
|
5117
|
+
if (!prebindingPath) {
|
|
5118
|
+
return {
|
|
5119
|
+
...acc,
|
|
5120
|
+
[variableName]: variableDefinition.defaultValue,
|
|
5121
|
+
};
|
|
5122
|
+
}
|
|
5114
5123
|
// this allows us to resolve it regularly
|
|
5115
5124
|
boundValue = transformBoundContentValue(node.data.props, entityStore, link, resolveDesignValue, variableName, variableDefinition.type, prebindingPath);
|
|
5116
5125
|
}
|