@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/renderApp.js
CHANGED
|
@@ -50868,6 +50868,14 @@ const useComponentProps = ({ node, areEntitiesFetched, resolveDesignValue, rende
|
|
|
50868
50868
|
[variableName]: value,
|
|
50869
50869
|
};
|
|
50870
50870
|
}
|
|
50871
|
+
else if (variableMapping.type === 'ComponentValue') {
|
|
50872
|
+
// We are rendering a pattern (assembly) entry. Content properties cannot be edited in this,
|
|
50873
|
+
// so we always render the default value
|
|
50874
|
+
return {
|
|
50875
|
+
...acc,
|
|
50876
|
+
[variableName]: variableDefinition.defaultValue,
|
|
50877
|
+
};
|
|
50878
|
+
}
|
|
50871
50879
|
else {
|
|
50872
50880
|
return { ...acc };
|
|
50873
50881
|
}
|