@wix/headless-forms 0.0.28 → 0.0.30

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.
@@ -556,10 +556,10 @@ exports.Fields = react_1.default.forwardRef((props, ref) => {
556
556
  return ((0, jsx_runtime_1.jsx)(Form_js_1.Fields, { children: ({ form, formValues, submitForm, handleForm, addressTemplates, siteConfig, }) => {
557
557
  if (!form)
558
558
  return null;
559
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref, children: (0, jsx_runtime_1.jsx)(form_public_1.FormProvider, { currency: siteConfig?.currency ?? index_js_1.DEFAULT_CURRENCY, locale: currentLanguage, regionalFormat: currentLocale, addressTemplates: addressTemplates, children: (0, jsx_runtime_1.jsx)(form_public_1.UniqueFieldSuffixContextProvider, { parentId: form._id ?? '', children: (0, jsx_runtime_1.jsx)(FieldsWithForm, { form: form, values: formValues, onChange: handleForm, errors: formErrors, onValidate: handleFormValidate, fields: props.fieldMap, submitForm: submitForm, rowGapClassname: props.rowGapClassname, columnGapClassname: props.columnGapClassname, formRef: formRef }) }) }) }));
559
+ return ((0, jsx_runtime_1.jsx)("div", { ref: ref, children: (0, jsx_runtime_1.jsx)(form_public_1.FormProvider, { currency: siteConfig?.currency ?? index_js_1.DEFAULT_CURRENCY, locale: currentLanguage, regionalFormat: currentLocale, addressTemplates: addressTemplates, children: (0, jsx_runtime_1.jsx)(form_public_1.UniqueFieldSuffixContextProvider, { parentId: form._id ?? '', children: (0, jsx_runtime_1.jsx)(FieldsWithForm, { addressTemplates: addressTemplates, form: form, values: formValues, onChange: handleForm, errors: formErrors, onValidate: handleFormValidate, fields: props.fieldMap, submitForm: submitForm, rowGapClassname: props.rowGapClassname, columnGapClassname: props.columnGapClassname, formRef: formRef }) }) }) }));
560
560
  } }));
561
561
  });
562
- const FieldsWithForm = ({ form, submitForm, values, onChange, errors, onValidate, fields: fieldMap, rowGapClassname, columnGapClassname, formRef, }) => {
562
+ const FieldsWithForm = ({ form, submitForm, values, onChange, errors, onValidate, fields: fieldMap, rowGapClassname, columnGapClassname, formRef, addressTemplates, }) => {
563
563
  const coreUploadFile = async ({ file, formId, }) => {
564
564
  const uploadUrl = await (0, index_js_1.getUploadUrl)(formId, file);
565
565
  if (uploadUrl === undefined) {
@@ -583,6 +583,7 @@ const FieldsWithForm = ({ form, submitForm, values, onChange, errors, onValidate
583
583
  uploadFile: coreUploadFile,
584
584
  fieldMap,
585
585
  forwardedRef: formRef,
586
+ addressTemplates,
586
587
  });
587
588
  if (!formData)
588
589
  return null;
@@ -1,3 +1,3 @@
1
1
  export * as Form from './Form.js';
2
2
  export * from './types.js';
3
- export { Checkbox, CheckboxGroup, DateInput, DatePicker, DateTimeInput, Dropdown, FileUpload, MultilineAddress, NumberInput, PhoneInput, RadioGroup, RatingInput, Tags, TextArea, TextInput, TimeInput, LoginBar, SubmitButton, FormProvider, } from '@wix/form-public';
3
+ export { Checkbox, CheckboxGroup, DateInput, DatePicker, DateTimeInput, Dropdown, FileUpload, MultilineAddress, NumberInput, PhoneInput, RadioGroup, RatingInput, Tags, TextArea, TextInput, TimeInput, LoginBar, SubmitButton, FormProvider, FixedPayment, ProductList, } from '@wix/form-public';
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.FormProvider = exports.SubmitButton = exports.LoginBar = exports.TimeInput = exports.TextInput = exports.TextArea = exports.Tags = exports.RatingInput = exports.RadioGroup = exports.PhoneInput = exports.NumberInput = exports.MultilineAddress = exports.FileUpload = exports.Dropdown = exports.DateTimeInput = exports.DatePicker = exports.DateInput = exports.CheckboxGroup = exports.Checkbox = exports.Form = void 0;
39
+ exports.ProductList = exports.FixedPayment = exports.FormProvider = exports.SubmitButton = exports.LoginBar = exports.TimeInput = exports.TextInput = exports.TextArea = exports.Tags = exports.RatingInput = exports.RadioGroup = exports.PhoneInput = exports.NumberInput = exports.MultilineAddress = exports.FileUpload = exports.Dropdown = exports.DateTimeInput = exports.DatePicker = exports.DateInput = exports.CheckboxGroup = exports.Checkbox = exports.Form = void 0;
40
40
  exports.Form = __importStar(require("./Form.js"));
41
41
  __exportStar(require("./types.js"), exports);
42
42
  var form_public_1 = require("@wix/form-public");
@@ -59,3 +59,5 @@ Object.defineProperty(exports, "TimeInput", { enumerable: true, get: function ()
59
59
  Object.defineProperty(exports, "LoginBar", { enumerable: true, get: function () { return form_public_1.LoginBar; } });
60
60
  Object.defineProperty(exports, "SubmitButton", { enumerable: true, get: function () { return form_public_1.SubmitButton; } });
61
61
  Object.defineProperty(exports, "FormProvider", { enumerable: true, get: function () { return form_public_1.FormProvider; } });
62
+ Object.defineProperty(exports, "FixedPayment", { enumerable: true, get: function () { return form_public_1.FixedPayment; } });
63
+ Object.defineProperty(exports, "ProductList", { enumerable: true, get: function () { return form_public_1.ProductList; } });
@@ -520,10 +520,10 @@ export const Fields = React.forwardRef((props, ref) => {
520
520
  return (_jsx(CoreFields, { children: ({ form, formValues, submitForm, handleForm, addressTemplates, siteConfig, }) => {
521
521
  if (!form)
522
522
  return null;
523
- return (_jsx("div", { ref: ref, children: _jsx(FormProvider, { currency: siteConfig?.currency ?? DEFAULT_CURRENCY, locale: currentLanguage, regionalFormat: currentLocale, addressTemplates: addressTemplates, children: _jsx(UniqueFieldSuffixContextProvider, { parentId: form._id ?? '', children: _jsx(FieldsWithForm, { form: form, values: formValues, onChange: handleForm, errors: formErrors, onValidate: handleFormValidate, fields: props.fieldMap, submitForm: submitForm, rowGapClassname: props.rowGapClassname, columnGapClassname: props.columnGapClassname, formRef: formRef }) }) }) }));
523
+ return (_jsx("div", { ref: ref, children: _jsx(FormProvider, { currency: siteConfig?.currency ?? DEFAULT_CURRENCY, locale: currentLanguage, regionalFormat: currentLocale, addressTemplates: addressTemplates, children: _jsx(UniqueFieldSuffixContextProvider, { parentId: form._id ?? '', children: _jsx(FieldsWithForm, { addressTemplates: addressTemplates, form: form, values: formValues, onChange: handleForm, errors: formErrors, onValidate: handleFormValidate, fields: props.fieldMap, submitForm: submitForm, rowGapClassname: props.rowGapClassname, columnGapClassname: props.columnGapClassname, formRef: formRef }) }) }) }));
524
524
  } }));
525
525
  });
526
- const FieldsWithForm = ({ form, submitForm, values, onChange, errors, onValidate, fields: fieldMap, rowGapClassname, columnGapClassname, formRef, }) => {
526
+ const FieldsWithForm = ({ form, submitForm, values, onChange, errors, onValidate, fields: fieldMap, rowGapClassname, columnGapClassname, formRef, addressTemplates, }) => {
527
527
  const coreUploadFile = async ({ file, formId, }) => {
528
528
  const uploadUrl = await getUploadUrl(formId, file);
529
529
  if (uploadUrl === undefined) {
@@ -547,6 +547,7 @@ const FieldsWithForm = ({ form, submitForm, values, onChange, errors, onValidate
547
547
  uploadFile: coreUploadFile,
548
548
  fieldMap,
549
549
  forwardedRef: formRef,
550
+ addressTemplates,
550
551
  });
551
552
  if (!formData)
552
553
  return null;
@@ -1,3 +1,3 @@
1
1
  export * as Form from './Form.js';
2
2
  export * from './types.js';
3
- export { Checkbox, CheckboxGroup, DateInput, DatePicker, DateTimeInput, Dropdown, FileUpload, MultilineAddress, NumberInput, PhoneInput, RadioGroup, RatingInput, Tags, TextArea, TextInput, TimeInput, LoginBar, SubmitButton, FormProvider, } from '@wix/form-public';
3
+ export { Checkbox, CheckboxGroup, DateInput, DatePicker, DateTimeInput, Dropdown, FileUpload, MultilineAddress, NumberInput, PhoneInput, RadioGroup, RatingInput, Tags, TextArea, TextInput, TimeInput, LoginBar, SubmitButton, FormProvider, FixedPayment, ProductList, } from '@wix/form-public';
@@ -1,3 +1,3 @@
1
1
  export * as Form from './Form.js';
2
2
  export * from './types.js';
3
- export { Checkbox, CheckboxGroup, DateInput, DatePicker, DateTimeInput, Dropdown, FileUpload, MultilineAddress, NumberInput, PhoneInput, RadioGroup, RatingInput, Tags, TextArea, TextInput, TimeInput, LoginBar, SubmitButton, FormProvider, } from '@wix/form-public';
3
+ export { Checkbox, CheckboxGroup, DateInput, DatePicker, DateTimeInput, Dropdown, FileUpload, MultilineAddress, NumberInput, PhoneInput, RadioGroup, RatingInput, Tags, TextArea, TextInput, TimeInput, LoginBar, SubmitButton, FormProvider, FixedPayment, ProductList, } from '@wix/form-public';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-forms",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -42,7 +42,7 @@
42
42
  "vitest": "^3.1.4"
43
43
  },
44
44
  "dependencies": {
45
- "@wix/form-public": "^0.104.0",
45
+ "@wix/form-public": "^0.119.0",
46
46
  "@wix/forms": "^1.0.373",
47
47
  "@wix/headless-utils": "0.0.8",
48
48
  "@wix/locale-dataset-javascript": "^2.3.0",
@@ -60,5 +60,5 @@
60
60
  "groupId": "com.wixpress.headless-components"
61
61
  }
62
62
  },
63
- "falconPackageHash": "09f37f9ebb57ee174194b7302cde16d0e2b77de0d85569a252c0f030"
63
+ "falconPackageHash": "21bf371a4e99f2971a2472232824748dc123476295651b828d4e6764"
64
64
  }