@amplifyup/sdk 0.1.39 → 0.1.40
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/AmplifyRenderer.js +11 -2
- package/dist/AmplifyRenderer.js.map +1 -1
- package/dist/AmplifyRenderer.mjs +11 -2
- package/dist/AmplifyRenderer.mjs.map +1 -1
- package/dist/react.js +231 -82
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +191 -46
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/AmplifyRenderer.mjs
CHANGED
|
@@ -2694,7 +2694,10 @@ function useLiveComposerProps(layoutNodeId, props) {
|
|
|
2694
2694
|
return;
|
|
2695
2695
|
}
|
|
2696
2696
|
if (!matchesNode(nodeId)) return;
|
|
2697
|
-
setLive(
|
|
2697
|
+
setLive((prev) => ({
|
|
2698
|
+
...prev,
|
|
2699
|
+
...nextProps
|
|
2700
|
+
}));
|
|
2698
2701
|
};
|
|
2699
2702
|
const onPatch = (event) => {
|
|
2700
2703
|
const detail = event.detail || {};
|
|
@@ -2741,6 +2744,12 @@ function useAmplifyUp() {
|
|
|
2741
2744
|
}
|
|
2742
2745
|
return context;
|
|
2743
2746
|
}
|
|
2747
|
+
function nodeRenderProps(node) {
|
|
2748
|
+
return {
|
|
2749
|
+
...node.settings || {},
|
|
2750
|
+
...node.props || {}
|
|
2751
|
+
};
|
|
2752
|
+
}
|
|
2744
2753
|
var ComponentRenderBoundary = class extends Component {
|
|
2745
2754
|
constructor() {
|
|
2746
2755
|
super(...arguments);
|
|
@@ -3164,7 +3173,7 @@ function AmplifyRenderer({
|
|
|
3164
3173
|
{
|
|
3165
3174
|
nodeId: node.id,
|
|
3166
3175
|
componentId: node.componentId,
|
|
3167
|
-
props: node
|
|
3176
|
+
props: nodeRenderProps(node),
|
|
3168
3177
|
slots: slotsToPass,
|
|
3169
3178
|
renderComponent
|
|
3170
3179
|
}
|