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