@contentful/experiences-visual-editor-react 3.8.0-dev-20250929T1511-4b6bf2c.0 → 3.8.0-dev-20250930T1552-65a9633.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 +9 -1
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +9 -1
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -51052,9 +51052,17 @@ const useComponentProps = ({ node, entityStore, areEntitiesFetched, resolveDesig
|
|
|
51052
51052
|
// eg: "/uuid" vs "/uuid/fields/[fileName]/~locale" as the regular BoundValue would have
|
|
51053
51053
|
const [, uuid, maybePath] = variableMapping.path.split('/');
|
|
51054
51054
|
const link = dataSource[uuid];
|
|
51055
|
-
let boundValue;
|
|
51056
51055
|
// starting from here, if the prop is of type 'BoundValue', and has prebinding
|
|
51057
51056
|
// we are going to resolve the incomplete path
|
|
51057
|
+
let boundValue;
|
|
51058
|
+
// TODO: Temporary fix while we look into SPA-3212 it occurs where we have prebound props but data source link is missing
|
|
51059
|
+
// this only occurs after live updates of nested patterns.
|
|
51060
|
+
if (!link && isPreboundProp(variableMapping) && variableMapping.isPrebound) {
|
|
51061
|
+
return {
|
|
51062
|
+
...acc,
|
|
51063
|
+
[variableName]: variableDefinition.defaultValue,
|
|
51064
|
+
};
|
|
51065
|
+
}
|
|
51058
51066
|
if (link && isPreboundProp(variableMapping) && variableMapping.isPrebound) {
|
|
51059
51067
|
const prebindingPath = getPrebindingPathBySourceEntry(variableMapping, (dataSourceKey) => {
|
|
51060
51068
|
const link = dataSource[dataSourceKey];
|