@bigbinary/neeto-form-frontend 3.9.0 → 3.9.2

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.
Files changed (64) hide show
  1. package/app/javascript/src/translations/ar.json +3 -1
  2. package/app/javascript/src/translations/de.json +3 -1
  3. package/app/javascript/src/translations/es.json +3 -1
  4. package/app/javascript/src/translations/fr.json +3 -1
  5. package/app/javascript/src/translations/it.json +201 -0
  6. package/app/javascript/src/translations/nl.json +3 -1
  7. package/app/javascript/src/translations/pl.json +3 -1
  8. package/app/javascript/src/translations/pt.json +3 -1
  9. package/app/javascript/src/translations/ru.json +202 -0
  10. package/dist/BuildForm.js +17 -80
  11. package/dist/BuildForm.js.map +1 -1
  12. package/dist/ExternalForm.js +14 -14
  13. package/dist/ExternalForm.js.map +1 -1
  14. package/dist/Submission.js +2 -2
  15. package/dist/Submission.js.map +1 -1
  16. package/dist/UrlBuilder.js +12 -12
  17. package/dist/UrlBuilder.js.map +1 -1
  18. package/dist/{buildForm-b8eb931e.js → buildForm-CthgTgsm.js} +3 -7
  19. package/dist/{buildForm-b8eb931e.js.map → buildForm-CthgTgsm.js.map} +1 -1
  20. package/dist/{buildForm-dfd708c6.js → buildForm-GdQQ62ve.js} +2 -2
  21. package/dist/{buildForm-dfd708c6.js.map → buildForm-GdQQ62ve.js.map} +1 -1
  22. package/dist/cjs/BuildForm.js +149 -250
  23. package/dist/cjs/BuildForm.js.map +1 -1
  24. package/dist/cjs/ExternalForm.js +46 -67
  25. package/dist/cjs/ExternalForm.js.map +1 -1
  26. package/dist/cjs/Submission.js +11 -20
  27. package/dist/cjs/Submission.js.map +1 -1
  28. package/dist/cjs/UrlBuilder.js +21 -31
  29. package/dist/cjs/UrlBuilder.js.map +1 -1
  30. package/dist/cjs/hooks.js +4 -6
  31. package/dist/cjs/hooks.js.map +1 -1
  32. package/dist/cjs/index.js +8 -9
  33. package/dist/cjs/index.js.map +1 -1
  34. package/dist/{constants-56bf4022.js → constants-CAupEAeQ.js} +10 -18
  35. package/dist/{constants-d9148acf.js.map → constants-CAupEAeQ.js.map} +1 -1
  36. package/dist/{constants-4d9fc943.js → constants-D-XSuLo2.js} +10 -15
  37. package/dist/{constants-4d9fc943.js.map → constants-D-XSuLo2.js.map} +1 -1
  38. package/dist/{constants-75b78b3a.js → constants-DlRX5mcQ.js} +1 -1
  39. package/dist/{constants-75b78b3a.js.map → constants-DlRX5mcQ.js.map} +1 -1
  40. package/dist/{constants-d9148acf.js → constants-pb1PsblC.js} +4 -5
  41. package/dist/{constants-56bf4022.js.map → constants-pb1PsblC.js.map} +1 -1
  42. package/dist/hooks.js +4 -4
  43. package/dist/{index-b6bb805c.js → index-2caW4Cx0.js} +1 -1
  44. package/dist/{index-b6bb805c.js.map → index-2caW4Cx0.js.map} +1 -1
  45. package/dist/{index-2664c3e7.js → index-BL5SirYx.js} +1 -1
  46. package/dist/{index-2664c3e7.js.map → index-BL5SirYx.js.map} +1 -1
  47. package/dist/index.js +8 -7
  48. package/dist/index.js.map +1 -1
  49. package/dist/{useFormApi-e3476a20.js → useFormApi-BS-TCKwR.js} +7 -7
  50. package/dist/{useFormApi-e3476a20.js.map → useFormApi-BS-TCKwR.js.map} +1 -1
  51. package/dist/{useFormApi-408d0060.js → useFormApi-DAiOGCeD.js} +38 -47
  52. package/dist/useFormApi-DAiOGCeD.js.map +1 -0
  53. package/dist/{useFormSubmission-46db678f.js → useFormSubmission-B2aaxL1m.js} +2 -2
  54. package/dist/{useFormSubmission-46db678f.js.map → useFormSubmission-B2aaxL1m.js.map} +1 -1
  55. package/dist/{useFormSubmission-e2e84587.js → useFormSubmission-DeaBHZs7.js} +2 -2
  56. package/dist/{useFormSubmission-e2e84587.js.map → useFormSubmission-DeaBHZs7.js.map} +1 -1
  57. package/dist/{utils-6039d7d2.js → utils-BPSPfGM5.js} +38 -39
  58. package/dist/utils-BPSPfGM5.js.map +1 -0
  59. package/dist/{utils-3eb74c1b.js → utils-D-ZaPjZk.js} +97 -123
  60. package/dist/utils-D-ZaPjZk.js.map +1 -0
  61. package/package.json +103 -94
  62. package/dist/useFormApi-408d0060.js.map +0 -1
  63. package/dist/utils-3eb74c1b.js.map +0 -1
  64. package/dist/utils-6039d7d2.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"buildForm-b8eb931e.js","sources":["../app/javascript/src/stores/buildForm.js"],"sourcesContent":["import i18next from \"i18next\";\nimport { noop } from \"neetocist\";\nimport { withImmutableActions } from \"neetocommons/react-utils\";\nimport { mergeLeft, modify, prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nimport { isFunction } from \"utils\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useBuildFormStore = create(\n withImmutableActions(set => ({\n formState: {\n values: {},\n dirty: false,\n isSubmitting: false,\n isValid: true,\n errors: [],\n submitForm: noop,\n resetForm: noop,\n selectedLanguage: i18next.resolvedLanguage,\n formId: null,\n enabled: false,\n title: \"\",\n richTextFieldsToReset: [],\n helpDocUrls: {},\n enableDomainBlacklisting: true,\n enableDomainWhitelisting: true,\n },\n\n setFormData: arg =>\n set(modify(\"formState\", isFunction(arg) ? arg : mergeLeft(arg))),\n }))\n);\n\nexport const useBuildFormState = () => useBuildFormStore(prop(\"formState\"));\n\nexport default useBuildFormStore;\n"],"names":["useBuildFormStore","create","withImmutableActions","set","formState","values","dirty","isSubmitting","isValid","errors","submitForm","noop","resetForm","selectedLanguage","i18next","resolvedLanguage","formId","enabled","title","richTextFieldsToReset","helpDocUrls","enableDomainBlacklisting","enableDomainWhitelisting","setFormData","arg","modify","isFunction","mergeLeft","useBuildFormState","prop"],"mappings":";;;;;;;;;;;;;AAQA;AACA,IAAMA,iBAAiB,GAAGC,cAAM,CAC9BC,+BAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,SAAS,EAAE;MACTC,MAAM,EAAE,EAAE;AACVC,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,YAAY,EAAE,KAAK;AACnBC,MAAAA,OAAO,EAAE,IAAI;AACbC,MAAAA,MAAM,EAAE,EAAE;AACVC,MAAAA,UAAU,EAAEC,cAAI;AAChBC,MAAAA,SAAS,EAAED,cAAI;MACfE,gBAAgB,EAAEC,2BAAO,CAACC,gBAAgB;AAC1CC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,KAAK,EAAE,EAAE;AACTC,MAAAA,qBAAqB,EAAE,EAAE;MACzBC,WAAW,EAAE,EAAE;AACfC,MAAAA,wBAAwB,EAAE,IAAI;AAC9BC,MAAAA,wBAAwB,EAAE,IAAA;KAC3B;IAEDC,WAAW,EAAE,SAAAA,WAAAA,CAAAC,GAAG,EAAA;AAAA,MAAA,OACdrB,GAAG,CAACsB,YAAM,CAAC,WAAW,EAAEC,gBAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,eAAS,CAACH,GAAG,CAAC,CAAC,CAAC,CAAA;AAAA,KAAA;GACnE,CAAA;AAAA,CAAC,CACJ,EAAC;AAEYI,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAAS5B,iBAAiB,CAAC6B,UAAI,CAAC,WAAW,CAAC,CAAC,CAAA;AAAA;;;;;"}
1
+ {"version":3,"file":"buildForm-CthgTgsm.js","sources":["../app/javascript/src/stores/buildForm.js"],"sourcesContent":["import i18next from \"i18next\";\nimport { noop } from \"neetocist\";\nimport { withImmutableActions } from \"neetocommons/react-utils\";\nimport { mergeLeft, modify, prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nimport { isFunction } from \"utils\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useBuildFormStore = create(\n withImmutableActions(set => ({\n formState: {\n values: {},\n dirty: false,\n isSubmitting: false,\n isValid: true,\n errors: [],\n submitForm: noop,\n resetForm: noop,\n selectedLanguage: i18next.resolvedLanguage,\n formId: null,\n enabled: false,\n title: \"\",\n richTextFieldsToReset: [],\n helpDocUrls: {},\n enableDomainBlacklisting: true,\n enableDomainWhitelisting: true,\n },\n\n setFormData: arg =>\n set(modify(\"formState\", isFunction(arg) ? arg : mergeLeft(arg))),\n }))\n);\n\nexport const useBuildFormState = () => useBuildFormStore(prop(\"formState\"));\n\nexport default useBuildFormStore;\n"],"names":["useBuildFormStore","create","withImmutableActions","set","formState","values","dirty","isSubmitting","isValid","errors","submitForm","noop","resetForm","selectedLanguage","i18next","resolvedLanguage","formId","enabled","title","richTextFieldsToReset","helpDocUrls","enableDomainBlacklisting","enableDomainWhitelisting","setFormData","arg","modify","isFunction","mergeLeft","useBuildFormState","prop"],"mappings":";;;;;;;;;AAQA;AACA,IAAMA,iBAAiB,GAAGC,cAAM,CAC9BC,+BAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,SAAS,EAAE;MACTC,MAAM,EAAE,EAAE;AACVC,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,YAAY,EAAE,KAAK;AACnBC,MAAAA,OAAO,EAAE,IAAI;AACbC,MAAAA,MAAM,EAAE,EAAE;AACVC,MAAAA,UAAU,EAAEC,cAAI;AAChBC,MAAAA,SAAS,EAAED,cAAI;MACfE,gBAAgB,EAAEC,OAAO,CAACC,gBAAgB;AAC1CC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,KAAK,EAAE,EAAE;AACTC,MAAAA,qBAAqB,EAAE,EAAE;MACzBC,WAAW,EAAE,EAAE;AACfC,MAAAA,wBAAwB,EAAE,IAAI;AAC9BC,MAAAA,wBAAwB,EAAE,IAAA;KAC3B;AAEDC,IAAAA,WAAW,EAAE,SAAbA,WAAWA,CAAEC,GAAG,EAAA;AAAA,MAAA,OACdrB,GAAG,CAACsB,YAAM,CAAC,WAAW,EAAEC,gBAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,eAAS,CAACH,GAAG,CAAC,CAAC,CAAC,CAAA;AAAA,KAAA;GACnE,CAAA;AAAA,CAAC,CACJ,EAAC;AAEYI,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAAS5B,iBAAiB,CAAC6B,UAAI,CAAC,WAAW,CAAC,CAAC,CAAA;AAAA;;;;;"}
@@ -3,7 +3,7 @@ import { noop } from '@bigbinary/neeto-cist';
3
3
  import { withImmutableActions } from '@bigbinary/neeto-commons-frontend/react-utils';
4
4
  import { modify, mergeLeft, prop } from 'ramda';
5
5
  import { create } from 'zustand';
6
- import { i as isFunction } from './index-2664c3e7.js';
6
+ import { i as isFunction } from './index-BL5SirYx.js';
7
7
 
8
8
  /** @type {import("neetocommons/react-utils").ZustandStoreHook} */
9
9
  var useBuildFormStore = create(withImmutableActions(function (set) {
@@ -35,4 +35,4 @@ var useBuildFormState = function useBuildFormState() {
35
35
  };
36
36
 
37
37
  export { useBuildFormStore as a, useBuildFormState as u };
38
- //# sourceMappingURL=buildForm-dfd708c6.js.map
38
+ //# sourceMappingURL=buildForm-GdQQ62ve.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildForm-dfd708c6.js","sources":["../app/javascript/src/stores/buildForm.js"],"sourcesContent":["import i18next from \"i18next\";\nimport { noop } from \"neetocist\";\nimport { withImmutableActions } from \"neetocommons/react-utils\";\nimport { mergeLeft, modify, prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nimport { isFunction } from \"utils\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useBuildFormStore = create(\n withImmutableActions(set => ({\n formState: {\n values: {},\n dirty: false,\n isSubmitting: false,\n isValid: true,\n errors: [],\n submitForm: noop,\n resetForm: noop,\n selectedLanguage: i18next.resolvedLanguage,\n formId: null,\n enabled: false,\n title: \"\",\n richTextFieldsToReset: [],\n helpDocUrls: {},\n enableDomainBlacklisting: true,\n enableDomainWhitelisting: true,\n },\n\n setFormData: arg =>\n set(modify(\"formState\", isFunction(arg) ? arg : mergeLeft(arg))),\n }))\n);\n\nexport const useBuildFormState = () => useBuildFormStore(prop(\"formState\"));\n\nexport default useBuildFormStore;\n"],"names":["useBuildFormStore","create","withImmutableActions","set","formState","values","dirty","isSubmitting","isValid","errors","submitForm","noop","resetForm","selectedLanguage","i18next","resolvedLanguage","formId","enabled","title","richTextFieldsToReset","helpDocUrls","enableDomainBlacklisting","enableDomainWhitelisting","setFormData","arg","modify","isFunction","mergeLeft","useBuildFormState","prop"],"mappings":";;;;;;;AAQA;AACA,IAAMA,iBAAiB,GAAGC,MAAM,CAC9BC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,SAAS,EAAE;MACTC,MAAM,EAAE,EAAE;AACVC,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,YAAY,EAAE,KAAK;AACnBC,MAAAA,OAAO,EAAE,IAAI;AACbC,MAAAA,MAAM,EAAE,EAAE;AACVC,MAAAA,UAAU,EAAEC,IAAI;AAChBC,MAAAA,SAAS,EAAED,IAAI;MACfE,gBAAgB,EAAEC,OAAO,CAACC,gBAAgB;AAC1CC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,KAAK,EAAE,EAAE;AACTC,MAAAA,qBAAqB,EAAE,EAAE;MACzBC,WAAW,EAAE,EAAE;AACfC,MAAAA,wBAAwB,EAAE,IAAI;AAC9BC,MAAAA,wBAAwB,EAAE,IAAA;KAC3B;IAEDC,WAAW,EAAE,SAAAA,WAAAA,CAAAC,GAAG,EAAA;AAAA,MAAA,OACdrB,GAAG,CAACsB,MAAM,CAAC,WAAW,EAAEC,UAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,SAAS,CAACH,GAAG,CAAC,CAAC,CAAC,CAAA;AAAA,KAAA;GACnE,CAAA;AAAA,CAAC,CACJ,EAAC;AAEYI,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAAS5B,iBAAiB,CAAC6B,IAAI,CAAC,WAAW,CAAC,CAAC,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"buildForm-GdQQ62ve.js","sources":["../app/javascript/src/stores/buildForm.js"],"sourcesContent":["import i18next from \"i18next\";\nimport { noop } from \"neetocist\";\nimport { withImmutableActions } from \"neetocommons/react-utils\";\nimport { mergeLeft, modify, prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nimport { isFunction } from \"utils\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useBuildFormStore = create(\n withImmutableActions(set => ({\n formState: {\n values: {},\n dirty: false,\n isSubmitting: false,\n isValid: true,\n errors: [],\n submitForm: noop,\n resetForm: noop,\n selectedLanguage: i18next.resolvedLanguage,\n formId: null,\n enabled: false,\n title: \"\",\n richTextFieldsToReset: [],\n helpDocUrls: {},\n enableDomainBlacklisting: true,\n enableDomainWhitelisting: true,\n },\n\n setFormData: arg =>\n set(modify(\"formState\", isFunction(arg) ? arg : mergeLeft(arg))),\n }))\n);\n\nexport const useBuildFormState = () => useBuildFormStore(prop(\"formState\"));\n\nexport default useBuildFormStore;\n"],"names":["useBuildFormStore","create","withImmutableActions","set","formState","values","dirty","isSubmitting","isValid","errors","submitForm","noop","resetForm","selectedLanguage","i18next","resolvedLanguage","formId","enabled","title","richTextFieldsToReset","helpDocUrls","enableDomainBlacklisting","enableDomainWhitelisting","setFormData","arg","modify","isFunction","mergeLeft","useBuildFormState","prop"],"mappings":";;;;;;;AAQA;AACA,IAAMA,iBAAiB,GAAGC,MAAM,CAC9BC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,SAAS,EAAE;MACTC,MAAM,EAAE,EAAE;AACVC,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,YAAY,EAAE,KAAK;AACnBC,MAAAA,OAAO,EAAE,IAAI;AACbC,MAAAA,MAAM,EAAE,EAAE;AACVC,MAAAA,UAAU,EAAEC,IAAI;AAChBC,MAAAA,SAAS,EAAED,IAAI;MACfE,gBAAgB,EAAEC,OAAO,CAACC,gBAAgB;AAC1CC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,KAAK,EAAE,EAAE;AACTC,MAAAA,qBAAqB,EAAE,EAAE;MACzBC,WAAW,EAAE,EAAE;AACfC,MAAAA,wBAAwB,EAAE,IAAI;AAC9BC,MAAAA,wBAAwB,EAAE,IAAA;KAC3B;AAEDC,IAAAA,WAAW,EAAE,SAAbA,WAAWA,CAAEC,GAAG,EAAA;AAAA,MAAA,OACdrB,GAAG,CAACsB,MAAM,CAAC,WAAW,EAAEC,UAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,SAAS,CAACH,GAAG,CAAC,CAAC,CAAC,CAAA;AAAA,KAAA;GACnE,CAAA;AAAA,CAAC,CACJ,EAAC;AAEYI,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAAS5B,iBAAiB,CAAC6B,IAAI,CAAC,WAAW,CAAC,CAAC,CAAA;AAAA;;;;"}