@amplifyup/sdk 0.3.2 → 0.3.3-uat.110.gb0b2158

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.
@@ -1811,13 +1811,13 @@ var AmplifyUpSDK = class {
1811
1811
  });
1812
1812
  }
1813
1813
  /**
1814
- * Track form field interaction
1814
+ * Track form field interaction. The typed value is never sent: the event
1815
+ * carries the field name and whether the field was filled.
1815
1816
  */
1816
1817
  trackFormFieldInteraction(fieldName, fieldValue) {
1817
1818
  this.track("Form Field Interaction", {
1818
1819
  fieldName,
1819
- fieldValue: fieldValue ? fieldValue.substring(0, 100) : void 0
1820
- // Truncate for privacy
1820
+ filled: Boolean(fieldValue)
1821
1821
  });
1822
1822
  }
1823
1823
  /**
@@ -3675,26 +3675,11 @@ function ComposerProvider({
3675
3675
  const detail = event.detail || {};
3676
3676
  applyProps(detail.props, detail.layoutNodeId);
3677
3677
  };
3678
- const onMessage = (event) => {
3679
- if (event.data?.type === "AMPLIFYUP_PROPS_PATCH") {
3680
- applyProps(event.data.props, event.data.layoutNodeId);
3681
- return;
3682
- }
3683
- if (event.data?.type !== "AMPLIFYUP_FIELD_PATCH") return;
3684
- applyField(
3685
- event.data.fieldName,
3686
- event.data.value,
3687
- event.data.layoutNodeId,
3688
- event.data.ref
3689
- );
3690
- };
3691
3678
  window.addEventListener("amplifyup:field-patch", onPatch);
3692
3679
  window.addEventListener("amplifyup:props-patch", onPropsPatch);
3693
- window.addEventListener("message", onMessage);
3694
3680
  return () => {
3695
3681
  window.removeEventListener("amplifyup:field-patch", onPatch);
3696
3682
  window.removeEventListener("amplifyup:props-patch", onPropsPatch);
3697
- window.removeEventListener("message", onMessage);
3698
3683
  };
3699
3684
  }, [ownsStore, store]);
3700
3685
  return /* @__PURE__ */ jsxRuntime.jsx(ComposerStoreContext.Provider, { value: store, children });