@wix/form-public 0.21.0 → 0.22.0
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/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -30036,8 +30036,14 @@ var Form2 = ({
|
|
|
30036
30036
|
}
|
|
30037
30037
|
};
|
|
30038
30038
|
const i18n2 = initI18n({ locale: siteConfig.locale.languageCode });
|
|
30039
|
-
const mappedFieldProps =
|
|
30040
|
-
|
|
30039
|
+
const mappedFieldProps = React30.useMemo(
|
|
30040
|
+
() => mapFieldProps(fields, FIELD_PROP_MAP),
|
|
30041
|
+
[fields]
|
|
30042
|
+
);
|
|
30043
|
+
const mappedFieldTypes = React30.useMemo(
|
|
30044
|
+
() => mapFieldTypes(mappedFieldProps, FIELD_TYPE_MAP),
|
|
30045
|
+
[mappedFieldProps]
|
|
30046
|
+
);
|
|
30041
30047
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30042
30048
|
FormViewerStatic,
|
|
30043
30049
|
{
|