@wix/form-public 0.93.0 → 0.94.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.
@@ -1,3 +1,4 @@
1
+ import { AddressTemplate } from '@wix/form-fields';
1
2
  import { Checkbox } from '@wix/form-fields/headless';
2
3
  import { CheckboxGroup } from '@wix/form-fields/headless';
3
4
  import { DateInput } from '@wix/form-fields/headless';
@@ -136,7 +137,7 @@ declare interface FormError {
136
137
  export { FormError }
137
138
  export { FormError as FormError_alias_1 }
138
139
 
139
- declare const FormProvider: ({ children, currency, locale, regionalFormat, }: FormProviderProps) => JSX_2.Element | null;
140
+ declare const FormProvider: ({ children, currency, locale, addressTemplates, regionalFormat, }: FormProviderProps) => JSX_2.Element | null;
140
141
  export { FormProvider }
141
142
  export { FormProvider as FormProvider_alias_1 }
142
143
 
@@ -145,6 +146,7 @@ export declare interface FormProviderProps {
145
146
  currency: Currency;
146
147
  locale: string;
147
148
  regionalFormat?: string;
149
+ addressTemplates?: AddressTemplate[];
148
150
  }
149
151
 
150
152
  declare type FormValues = {
@@ -1,3 +1,4 @@
1
+ import { AddressTemplate } from '@wix/form-fields';
1
2
  import { Checkbox } from '@wix/form-fields/headless';
2
3
  import { CheckboxGroup } from '@wix/form-fields/headless';
3
4
  import { DateInput } from '@wix/form-fields/headless';
@@ -136,7 +137,7 @@ declare interface FormError {
136
137
  export { FormError }
137
138
  export { FormError as FormError_alias_1 }
138
139
 
139
- declare const FormProvider: ({ children, currency, locale, regionalFormat, }: FormProviderProps) => JSX_2.Element | null;
140
+ declare const FormProvider: ({ children, currency, locale, addressTemplates, regionalFormat, }: FormProviderProps) => JSX_2.Element | null;
140
141
  export { FormProvider }
141
142
  export { FormProvider as FormProvider_alias_1 }
142
143
 
@@ -145,6 +146,7 @@ export declare interface FormProviderProps {
145
146
  currency: Currency;
146
147
  locale: string;
147
148
  regionalFormat?: string;
149
+ addressTemplates?: AddressTemplate[];
148
150
  }
149
151
 
150
152
  declare type FormValues = {
package/dist/index.cjs CHANGED
@@ -31861,6 +31861,7 @@ var FormProvider = ({
31861
31861
  children,
31862
31862
  currency,
31863
31863
  locale,
31864
+ addressTemplates,
31864
31865
  regionalFormat = "en"
31865
31866
  }) => {
31866
31867
  const [i18nInstance, setI18nInstance] = React40.useState(null);
@@ -31888,6 +31889,7 @@ var FormProvider = ({
31888
31889
  currency,
31889
31890
  translationNamespace: FORM_VIEWER_NAMESPACE,
31890
31891
  WixRicosViewer: () => null,
31892
+ addressTemplates,
31891
31893
  children: /* @__PURE__ */ jsxRuntime.jsx(ExternalDataProvider, { externalData: {}, children: /* @__PURE__ */ jsxRuntime.jsx(FormStatusProvider, { children }) })
31892
31894
  }
31893
31895
  );