@contentful/experiences-visual-editor-react 1.0.7 → 1.0.8-beta.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 +8 -0
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +8 -0
- package/dist/renderApp.js.map +1 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -2502,6 +2502,14 @@ const useComponentProps = ({ node, areEntitiesFetched, resolveDesignValue, rende
|
|
|
2502
2502
|
[variableName]: value,
|
|
2503
2503
|
};
|
|
2504
2504
|
}
|
|
2505
|
+
else if (variableMapping.type === 'ComponentValue') {
|
|
2506
|
+
// We are rendering a pattern (assembly) entry. Content properties cannot be edited in this,
|
|
2507
|
+
// so we always render the default value
|
|
2508
|
+
return {
|
|
2509
|
+
...acc,
|
|
2510
|
+
[variableName]: variableDefinition.defaultValue,
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2505
2513
|
else {
|
|
2506
2514
|
return { ...acc };
|
|
2507
2515
|
}
|