@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.js
CHANGED
|
@@ -30010,8 +30010,14 @@ var Form2 = ({
|
|
|
30010
30010
|
}
|
|
30011
30011
|
};
|
|
30012
30012
|
const i18n2 = initI18n({ locale: siteConfig.locale.languageCode });
|
|
30013
|
-
const mappedFieldProps =
|
|
30014
|
-
|
|
30013
|
+
const mappedFieldProps = useMemo(
|
|
30014
|
+
() => mapFieldProps(fields, FIELD_PROP_MAP),
|
|
30015
|
+
[fields]
|
|
30016
|
+
);
|
|
30017
|
+
const mappedFieldTypes = useMemo(
|
|
30018
|
+
() => mapFieldTypes(mappedFieldProps, FIELD_TYPE_MAP),
|
|
30019
|
+
[mappedFieldProps]
|
|
30020
|
+
);
|
|
30015
30021
|
return /* @__PURE__ */ jsx(
|
|
30016
30022
|
FormViewerStatic,
|
|
30017
30023
|
{
|