@wix/form-public 0.20.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.
@@ -1760,7 +1760,7 @@ export declare type VatIDValue = {
1760
1760
  export declare interface WixFile {
1761
1761
  fileId: string;
1762
1762
  displayName: string;
1763
- url: string;
1763
+ url?: string;
1764
1764
  fileType: string;
1765
1765
  }
1766
1766
 
@@ -1760,7 +1760,7 @@ export declare type VatIDValue = {
1760
1760
  export declare interface WixFile {
1761
1761
  fileId: string;
1762
1762
  displayName: string;
1763
- url: string;
1763
+ url?: string;
1764
1764
  fileType: string;
1765
1765
  }
1766
1766
 
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 = mapFieldProps(fields, FIELD_PROP_MAP);
30040
- const mappedFieldTypes = mapFieldTypes(mappedFieldProps, FIELD_TYPE_MAP);
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
  {