@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.
- package/dist/AmplifyRenderer.js +3 -18
- package/dist/AmplifyRenderer.js.map +1 -1
- package/dist/AmplifyRenderer.mjs +3 -18
- package/dist/AmplifyRenderer.mjs.map +1 -1
- package/dist/index.d.mts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/react.js +3 -18
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +3 -18
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -2203,13 +2203,13 @@ var AmplifyUpSDK = class {
|
|
|
2203
2203
|
});
|
|
2204
2204
|
}
|
|
2205
2205
|
/**
|
|
2206
|
-
* Track form field interaction
|
|
2206
|
+
* Track form field interaction. The typed value is never sent: the event
|
|
2207
|
+
* carries the field name and whether the field was filled.
|
|
2207
2208
|
*/
|
|
2208
2209
|
trackFormFieldInteraction(fieldName, fieldValue) {
|
|
2209
2210
|
this.track("Form Field Interaction", {
|
|
2210
2211
|
fieldName,
|
|
2211
|
-
|
|
2212
|
-
// Truncate for privacy
|
|
2212
|
+
filled: Boolean(fieldValue)
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
2215
|
/**
|
|
@@ -4064,26 +4064,11 @@ function ComposerProvider({
|
|
|
4064
4064
|
const detail = event.detail || {};
|
|
4065
4065
|
applyProps(detail.props, detail.layoutNodeId);
|
|
4066
4066
|
};
|
|
4067
|
-
const onMessage = (event) => {
|
|
4068
|
-
if (event.data?.type === "AMPLIFYUP_PROPS_PATCH") {
|
|
4069
|
-
applyProps(event.data.props, event.data.layoutNodeId);
|
|
4070
|
-
return;
|
|
4071
|
-
}
|
|
4072
|
-
if (event.data?.type !== "AMPLIFYUP_FIELD_PATCH") return;
|
|
4073
|
-
applyField(
|
|
4074
|
-
event.data.fieldName,
|
|
4075
|
-
event.data.value,
|
|
4076
|
-
event.data.layoutNodeId,
|
|
4077
|
-
event.data.ref
|
|
4078
|
-
);
|
|
4079
|
-
};
|
|
4080
4067
|
window.addEventListener("amplifyup:field-patch", onPatch);
|
|
4081
4068
|
window.addEventListener("amplifyup:props-patch", onPropsPatch);
|
|
4082
|
-
window.addEventListener("message", onMessage);
|
|
4083
4069
|
return () => {
|
|
4084
4070
|
window.removeEventListener("amplifyup:field-patch", onPatch);
|
|
4085
4071
|
window.removeEventListener("amplifyup:props-patch", onPropsPatch);
|
|
4086
|
-
window.removeEventListener("message", onMessage);
|
|
4087
4072
|
};
|
|
4088
4073
|
}, [ownsStore, store]);
|
|
4089
4074
|
return /* @__PURE__ */ jsxRuntime.jsx(ComposerStoreContext.Provider, { value: store, children });
|