@wix/form-public 0.93.0 → 0.95.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/_tsup-dts-rollup.d.cts +6 -1
- package/dist/_tsup-dts-rollup.d.ts +6 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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';
|
|
@@ -52,6 +53,7 @@ import { Tags } from '@wix/form-fields/headless';
|
|
|
52
53
|
import { TextArea } from '@wix/form-fields/headless';
|
|
53
54
|
import { TextInput } from '@wix/form-fields/headless';
|
|
54
55
|
import { TimeInput } from '@wix/form-fields/headless';
|
|
56
|
+
import { UniqueFieldSuffixContextProvider } from '@wix/form-fields';
|
|
55
57
|
import { useFieldProps } from '@wix/form-fields';
|
|
56
58
|
|
|
57
59
|
declare interface AppointmentSubmitData {
|
|
@@ -136,7 +138,7 @@ declare interface FormError {
|
|
|
136
138
|
export { FormError }
|
|
137
139
|
export { FormError as FormError_alias_1 }
|
|
138
140
|
|
|
139
|
-
declare const FormProvider: ({ children, currency, locale, regionalFormat, }: FormProviderProps) => JSX_2.Element | null;
|
|
141
|
+
declare const FormProvider: ({ children, currency, locale, addressTemplates, regionalFormat, }: FormProviderProps) => JSX_2.Element | null;
|
|
140
142
|
export { FormProvider }
|
|
141
143
|
export { FormProvider as FormProvider_alias_1 }
|
|
142
144
|
|
|
@@ -145,6 +147,7 @@ export declare interface FormProviderProps {
|
|
|
145
147
|
currency: Currency;
|
|
146
148
|
locale: string;
|
|
147
149
|
regionalFormat?: string;
|
|
150
|
+
addressTemplates?: AddressTemplate[];
|
|
148
151
|
}
|
|
149
152
|
|
|
150
153
|
declare type FormValues = {
|
|
@@ -280,6 +283,8 @@ export { TextInput }
|
|
|
280
283
|
|
|
281
284
|
export { TimeInput }
|
|
282
285
|
|
|
286
|
+
export { UniqueFieldSuffixContextProvider }
|
|
287
|
+
|
|
283
288
|
export declare type UploadFile = (params: UploadFileParams) => Promise<FileDescriptor>;
|
|
284
289
|
|
|
285
290
|
export declare interface UploadFileParams {
|
|
@@ -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';
|
|
@@ -52,6 +53,7 @@ import { Tags } from '@wix/form-fields/headless';
|
|
|
52
53
|
import { TextArea } from '@wix/form-fields/headless';
|
|
53
54
|
import { TextInput } from '@wix/form-fields/headless';
|
|
54
55
|
import { TimeInput } from '@wix/form-fields/headless';
|
|
56
|
+
import { UniqueFieldSuffixContextProvider } from '@wix/form-fields';
|
|
55
57
|
import { useFieldProps } from '@wix/form-fields';
|
|
56
58
|
|
|
57
59
|
declare interface AppointmentSubmitData {
|
|
@@ -136,7 +138,7 @@ declare interface FormError {
|
|
|
136
138
|
export { FormError }
|
|
137
139
|
export { FormError as FormError_alias_1 }
|
|
138
140
|
|
|
139
|
-
declare const FormProvider: ({ children, currency, locale, regionalFormat, }: FormProviderProps) => JSX_2.Element | null;
|
|
141
|
+
declare const FormProvider: ({ children, currency, locale, addressTemplates, regionalFormat, }: FormProviderProps) => JSX_2.Element | null;
|
|
140
142
|
export { FormProvider }
|
|
141
143
|
export { FormProvider as FormProvider_alias_1 }
|
|
142
144
|
|
|
@@ -145,6 +147,7 @@ export declare interface FormProviderProps {
|
|
|
145
147
|
currency: Currency;
|
|
146
148
|
locale: string;
|
|
147
149
|
regionalFormat?: string;
|
|
150
|
+
addressTemplates?: AddressTemplate[];
|
|
148
151
|
}
|
|
149
152
|
|
|
150
153
|
declare type FormValues = {
|
|
@@ -280,6 +283,8 @@ export { TextInput }
|
|
|
280
283
|
|
|
281
284
|
export { TimeInput }
|
|
282
285
|
|
|
286
|
+
export { UniqueFieldSuffixContextProvider }
|
|
287
|
+
|
|
283
288
|
export declare type UploadFile = (params: UploadFileParams) => Promise<FileDescriptor>;
|
|
284
289
|
|
|
285
290
|
export declare interface UploadFileParams {
|
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
|
);
|
|
@@ -38327,6 +38329,7 @@ exports.Tags = Tags;
|
|
|
38327
38329
|
exports.TextArea = TextArea;
|
|
38328
38330
|
exports.TextInput = TextInput;
|
|
38329
38331
|
exports.TimeInput = TimeInput2;
|
|
38332
|
+
exports.UniqueFieldSuffixContextProvider = UniqueFieldSuffixContextProvider;
|
|
38330
38333
|
exports.useFieldProps = useFieldProps;
|
|
38331
38334
|
exports.useForm = useForm3;
|
|
38332
38335
|
//# sourceMappingURL=index.cjs.map
|