@wix/form-public 0.92.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
@@ -21375,6 +21375,7 @@ var require_messages_en = __commonJS({
21375
21375
  "search.keyword.contacts.subscribe": "subscribe, subscription, opt in, newsletter, marketing, subscriber",
21376
21376
  "date-input.input.error.message.format-error": "Enter a month, day and year.",
21377
21377
  "contacts-first-name.input.error.message.required-error": "Enter a first name.",
21378
+ "add.scheduling-fields.scheduling": "Scheduling",
21378
21379
  "file-upload.dropzone.title": "Upload your file",
21379
21380
  "search.keyword.scheduling.appointment": "appointment, booking, schedule",
21380
21381
  "form.a11y.step.index.title": "Step {index} out of {total}",
@@ -21483,6 +21484,7 @@ var require_messages_en = __commonJS({
21483
21484
  "date-time-input.input.error.message.min-value-error": "Enter a valid date after today\u2019s date.",
21484
21485
  "dext-checkbox.input.error.message.required-error": "Check the box to continue.",
21485
21486
  "url-input.input.error.message.format-error": "Enter a web URL like https://www.example.com.",
21487
+ "file-upload.file.uploading-spinner.aria-label": "Loading file...",
21486
21488
  "add-other.default-other-option-label": "Other",
21487
21489
  "dext-checkbox.input.error.message.not-allowed-value": "Check the box to continue.",
21488
21490
  "field.date.placeholder.year": "Year",
@@ -21563,6 +21565,7 @@ var require_messages_en = __commonJS({
21563
21565
  "form.appointment.meeting-format.in-person-location-method-os-location": "Business location",
21564
21566
  "form.file-upload.error.limit": "You've reached your upload limit of {limit, number} files.",
21565
21567
  "contacts-email.input.error.message.required-error": "Enter an email address like example@mysite.com.",
21568
+ "file-upload.delete-file.aria.label": "Delete file",
21566
21569
  "field-context-menu.duplicate": "Duplicate"
21567
21570
  };
21568
21571
  }
@@ -31858,6 +31861,7 @@ var FormProvider = ({
31858
31861
  children,
31859
31862
  currency,
31860
31863
  locale,
31864
+ addressTemplates,
31861
31865
  regionalFormat = "en"
31862
31866
  }) => {
31863
31867
  const [i18nInstance, setI18nInstance] = React40.useState(null);
@@ -31885,6 +31889,7 @@ var FormProvider = ({
31885
31889
  currency,
31886
31890
  translationNamespace: FORM_VIEWER_NAMESPACE,
31887
31891
  WixRicosViewer: () => null,
31892
+ addressTemplates,
31888
31893
  children: /* @__PURE__ */ jsxRuntime.jsx(ExternalDataProvider, { externalData: {}, children: /* @__PURE__ */ jsxRuntime.jsx(FormStatusProvider, { children }) })
31889
31894
  }
31890
31895
  );