@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.
@@ -2694,7 +2694,10 @@ function useLiveComposerProps(layoutNodeId, props) {
2694
2694
  return;
2695
2695
  }
2696
2696
  if (!matchesNode(nodeId)) return;
2697
- setLive(nextProps);
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.props || {},
3176
+ props: nodeRenderProps(node),
3168
3177
  slots: slotsToPass,
3169
3178
  renderComponent
3170
3179
  }