@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.
@@ -2696,7 +2696,10 @@ function useLiveComposerProps(layoutNodeId, props) {
2696
2696
  return;
2697
2697
  }
2698
2698
  if (!matchesNode(nodeId)) return;
2699
- setLive(nextProps);
2699
+ setLive((prev) => ({
2700
+ ...prev,
2701
+ ...nextProps
2702
+ }));
2700
2703
  };
2701
2704
  const onPatch = (event) => {
2702
2705
  const detail = event.detail || {};
@@ -2743,6 +2746,12 @@ function useAmplifyUp() {
2743
2746
  }
2744
2747
  return context;
2745
2748
  }
2749
+ function nodeRenderProps(node) {
2750
+ return {
2751
+ ...node.settings || {},
2752
+ ...node.props || {}
2753
+ };
2754
+ }
2746
2755
  var ComponentRenderBoundary = class extends react.Component {
2747
2756
  constructor() {
2748
2757
  super(...arguments);
@@ -3166,7 +3175,7 @@ function AmplifyRenderer({
3166
3175
  {
3167
3176
  nodeId: node.id,
3168
3177
  componentId: node.componentId,
3169
- props: node.props || {},
3178
+ props: nodeRenderProps(node),
3170
3179
  slots: slotsToPass,
3171
3180
  renderComponent
3172
3181
  }