@bigbinary/neeto-form-frontend 4.4.3 → 4.4.5

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 (54) hide show
  1. package/app/javascript/src/translations/ar.json +2 -1
  2. package/app/javascript/src/translations/bg.json +2 -1
  3. package/app/javascript/src/translations/ca.json +2 -1
  4. package/app/javascript/src/translations/cs.json +2 -1
  5. package/app/javascript/src/translations/da.json +2 -1
  6. package/app/javascript/src/translations/de.json +2 -1
  7. package/app/javascript/src/translations/es-MX.json +2 -1
  8. package/app/javascript/src/translations/es.json +2 -1
  9. package/app/javascript/src/translations/et.json +2 -1
  10. package/app/javascript/src/translations/fi.json +2 -1
  11. package/app/javascript/src/translations/fil.json +2 -1
  12. package/app/javascript/src/translations/fr.json +2 -1
  13. package/app/javascript/src/translations/he.json +2 -1
  14. package/app/javascript/src/translations/hi.json +2 -1
  15. package/app/javascript/src/translations/hr.json +2 -1
  16. package/app/javascript/src/translations/hu.json +2 -1
  17. package/app/javascript/src/translations/id.json +2 -1
  18. package/app/javascript/src/translations/it.json +2 -1
  19. package/app/javascript/src/translations/ja.json +2 -1
  20. package/app/javascript/src/translations/ko.json +2 -1
  21. package/app/javascript/src/translations/nl.json +2 -1
  22. package/app/javascript/src/translations/pl.json +2 -1
  23. package/app/javascript/src/translations/pt-BR.json +2 -1
  24. package/app/javascript/src/translations/pt.json +2 -1
  25. package/app/javascript/src/translations/ro.json +2 -1
  26. package/app/javascript/src/translations/ru.json +2 -1
  27. package/app/javascript/src/translations/sk.json +2 -1
  28. package/app/javascript/src/translations/sl.json +2 -1
  29. package/app/javascript/src/translations/sv.json +2 -1
  30. package/app/javascript/src/translations/th.json +2 -1
  31. package/app/javascript/src/translations/tr.json +2 -1
  32. package/app/javascript/src/translations/uk.json +2 -1
  33. package/app/javascript/src/translations/vi.json +2 -1
  34. package/app/javascript/src/translations/zh-CN.json +2 -1
  35. package/app/javascript/src/translations/zh-TW.json +2 -1
  36. package/dist/ExternalForm.js +1 -1
  37. package/dist/Submission.js +11 -1
  38. package/dist/Submission.js.map +1 -1
  39. package/dist/UrlBuilder.js +1 -1
  40. package/dist/cjs/ExternalForm.js +1 -1
  41. package/dist/cjs/Submission.js +13 -3
  42. package/dist/cjs/Submission.js.map +1 -1
  43. package/dist/cjs/UrlBuilder.js +1 -1
  44. package/dist/cjs/index.js +1 -1
  45. package/dist/index.js +1 -1
  46. package/dist/main.css +1 -1
  47. package/dist/main.css.map +1 -1
  48. package/dist/{utils-CHyij-d8.js → utils-BRC5Gg_A.js} +7 -1
  49. package/dist/utils-BRC5Gg_A.js.map +1 -0
  50. package/dist/{utils-DMaHDZwO.js → utils-DklENIyr.js} +7 -1
  51. package/dist/utils-DklENIyr.js.map +1 -0
  52. package/package.json +5 -5
  53. package/dist/utils-CHyij-d8.js.map +0 -1
  54. package/dist/utils-DMaHDZwO.js.map +0 -1
@@ -132,7 +132,8 @@
132
132
  "captcha": "كابتشا",
133
133
  "smsReminder": "تذكير عبر الرسائل القصيرة",
134
134
  "opinionScale": "مقياس الرأي",
135
- "address": "العنوان"
135
+ "address": "العنوان",
136
+ "starRating": "تقييم النجوم"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "تم تقديم النموذج بنجاح!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "SMS напомняне",
90
90
  "opinionScale": "Масштаб на мнение",
91
- "address": "Адрес"
91
+ "address": "Адрес",
92
+ "starRating": "Оценка със звезди"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Формулярът е подаден успешно!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "Recordatori per SMS",
90
90
  "opinionScale": "Escala d'opinió",
91
- "address": "Adreça"
91
+ "address": "Adreça",
92
+ "starRating": "Valoració per estrelles"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "El formulari s'ha enviat correctament!"
@@ -132,7 +132,8 @@
132
132
  "captcha": "Captcha",
133
133
  "smsReminder": "SMS připomínka",
134
134
  "opinionScale": "Měřítko názoru",
135
- "address": "Adresa"
135
+ "address": "Adresa",
136
+ "starRating": "Hodnocení hvězdami"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "Formulář byl úspěšně odeslán!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "SMS påmindelse",
90
90
  "opinionScale": "Opinionskala",
91
- "address": "Adresse"
91
+ "address": "Adresse",
92
+ "starRating": "Stjernerangering"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Formularen er blevet indsendt med succes!"
@@ -132,7 +132,8 @@
132
132
  "captcha": "Captcha",
133
133
  "smsReminder": "SMS-Erinnerung",
134
134
  "opinionScale": "Meinungsskala",
135
- "address": "Adresse"
135
+ "address": "Adresse",
136
+ "starRating": "Sternebewertung"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "Das Formular wurde erfolgreich übermittelt!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "Recordatorio SMS",
90
90
  "opinionScale": "Escala de opinión",
91
- "address": "Dirección"
91
+ "address": "Dirección",
92
+ "starRating": "Calificación por estrellas"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "¡El formulario ha sido enviado exitosamente!"
@@ -132,7 +132,8 @@
132
132
  "captcha": "Captcha",
133
133
  "smsReminder": "Recordatorio por SMS",
134
134
  "opinionScale": "Escala de opinión",
135
- "address": "Dirección"
135
+ "address": "Dirección",
136
+ "starRating": "Clasificación por estrellas"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "¡El formulario ha sido enviado con éxito!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "SMS meenutus",
90
90
  "opinionScale": "Arvamuse skaala",
91
- "address": "Aadress"
91
+ "address": "Aadress",
92
+ "starRating": "Tähtede hinnang"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Vorm on edukalt esitatud!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "SMS muistutus",
90
90
  "opinionScale": "Mielipideasteikko",
91
- "address": "Osoite"
91
+ "address": "Osoite",
92
+ "starRating": "Tähtiarvio"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Lomake on lähetetty onnistuneesti!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "Paalala sa SMS",
90
90
  "opinionScale": "Sukatan ng Opinyon",
91
- "address": "Tirahan"
91
+ "address": "Tirahan",
92
+ "starRating": "Rating ng bituin"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Ang form ay matagumpay na naipasa!"
@@ -132,7 +132,8 @@
132
132
  "captcha": "Captcha",
133
133
  "smsReminder": "Rappel par SMS",
134
134
  "opinionScale": "Échelle d'opinion",
135
- "address": "Adresse"
135
+ "address": "Adresse",
136
+ "starRating": "Évaluation par étoiles"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "Le formulaire a été soumis avec succès !"
@@ -249,7 +249,8 @@
249
249
  "captcha": "קפצ'ה",
250
250
  "smsReminder": "תזכורת SMS",
251
251
  "opinionScale": "סקאלת דעת",
252
- "address": "כתובת"
252
+ "address": "כתובת",
253
+ "starRating": " דירוג כוכבים"
253
254
  },
254
255
  "toasts": {
255
256
  "formSubmitted": "הטופס הוגש בהצלחה!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "कैप्चा",
89
89
  "smsReminder": "SMS अनुस्मारक",
90
90
  "opinionScale": "राय स्केल",
91
- "address": "पता"
91
+ "address": "पता",
92
+ "starRating": "स्टार रेटिंग"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "फॉर्म सफलतापूर्वक जमा कर दिया गया है!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "SMS podsjetnik",
90
90
  "opinionScale": "Skala mišljenja",
91
- "address": "Adresa"
91
+ "address": "Adresa",
92
+ "starRating": "Ocjena zvjezdica"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Obrazac je uspješno podnesen!"
@@ -87,7 +87,8 @@
87
87
  "captcha": "Captcha",
88
88
  "smsReminder": "SMS emlékeztető",
89
89
  "opinionScale": "Vélemény skála",
90
- "address": "Cím"
90
+ "address": "Cím",
91
+ "starRating": "Csillagértékelés"
91
92
  },
92
93
  "toasts": {
93
94
  "formSubmitted": "A formot sikeresen benyújtották!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "Pengingat SMS",
90
90
  "opinionScale": "Skala pendapat",
91
- "address": "Alamat"
91
+ "address": "Alamat",
92
+ "starRating": "Penilaian bintang"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Formulir telah berhasil dikirim!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "Promemoria via SMS",
90
90
  "opinionScale": "Scala di opinione",
91
- "address": "Indirizzo"
91
+ "address": "Indirizzo",
92
+ "starRating": "Valutazione stellare"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Il modulo è stato inviato con successo!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "キャプチャ",
89
89
  "smsReminder": "SMSリマインダー",
90
90
  "opinionScale": "意見スケール",
91
- "address": "住所"
91
+ "address": "住所",
92
+ "starRating": "星の評価"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "フォームが正常に送信されました!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "캡차",
89
89
  "smsReminder": "SMS 알림",
90
90
  "opinionScale": "의견 척도",
91
- "address": "주소"
91
+ "address": "주소",
92
+ "starRating": "별점"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "양식이 성공적으로 제출되었습니다!"
@@ -132,7 +132,8 @@
132
132
  "captcha": "Captcha",
133
133
  "smsReminder": "SMS-herinnering",
134
134
  "opinionScale": "Opinieschaal",
135
- "address": "Adres"
135
+ "address": "Adres",
136
+ "starRating": "Sterbeoordeling"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "Formulier is succesvol ingediend!"
@@ -132,7 +132,8 @@
132
132
  "captcha": "CAPTCHA",
133
133
  "smsReminder": "Przypomnienie SMS",
134
134
  "opinionScale": "Skala opinii",
135
- "address": "Adres"
135
+ "address": "Adres",
136
+ "starRating": "Ocena gwiazdkowa"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "Formularz został pomyślnie przesłany!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "Lembrete por SMS",
90
90
  "opinionScale": "Escala de opinião",
91
- "address": "Endereço"
91
+ "address": "Endereço",
92
+ "starRating": "Classificação por estrelas"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "O formulário foi enviado com sucesso!"
@@ -132,7 +132,8 @@
132
132
  "captcha": "Captcha",
133
133
  "smsReminder": "Lembrete por SMS",
134
134
  "opinionScale": "Escala de opinião",
135
- "address": "Endereço"
135
+ "address": "Endereço",
136
+ "starRating": "Avaliação por estrelas"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "Formulário enviado com sucesso!"
@@ -132,7 +132,8 @@
132
132
  "captcha": "Captcha",
133
133
  "smsReminder": "Avertizare SMS",
134
134
  "opinionScale": "Scara de opinie",
135
- "address": "Adresă"
135
+ "address": "Adresă",
136
+ "starRating": "Evaluare pe stele"
136
137
  },
137
138
  "toasts": {
138
139
  "formSubmitted": "Formularul a fost trimis cu succes!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Капча",
89
89
  "smsReminder": "СМС-напоминание",
90
90
  "opinionScale": "Шкала мнений",
91
- "address": "Адрес"
91
+ "address": "Адрес",
92
+ "starRating": "Оценка звезд"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Форма успешно отправлена!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "SMS pripomienka",
90
90
  "opinionScale": "Miera názoru",
91
- "address": "Adresa"
91
+ "address": "Adresa",
92
+ "starRating": "Hodnotenie hviezdami"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Formulár bol úspešne odoslaný!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "CAPTCHA",
89
89
  "smsReminder": "SMS opomnik",
90
90
  "opinionScale": "Merska lestvica mnenja",
91
- "address": "Naslov"
91
+ "address": "Naslov",
92
+ "starRating": "Ocena zvezdic"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Obrazec je bil uspešno oddan!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "SMS-påminnelse",
90
90
  "opinionScale": "Åsiktsskala",
91
- "address": "Adress"
91
+ "address": "Adress",
92
+ "starRating": "Stjärnbetyg"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Formuläret har skickats in framgångsrikt!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "CAPTCHA",
89
89
  "smsReminder": "การเตือนข้อความ",
90
90
  "opinionScale": "มาตรวัดความคิดเห็น",
91
- "address": "ที่อยู่"
91
+ "address": "ที่อยู่",
92
+ "starRating": "การให้คะแนนดาว"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "แบบฟอร์มได้ถูกส่งเรียบร้อยแล้ว!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "SMS hatırlatıcısı",
90
90
  "opinionScale": "Görüş ölçeği",
91
- "address": "Adres"
91
+ "address": "Adres",
92
+ "starRating": "Yıldız derecelendirmesi"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Form başarıyla gönderildi!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Капча",
89
89
  "smsReminder": "SMS нагадування",
90
90
  "opinionScale": "Шкала думок",
91
- "address": "Адреса"
91
+ "address": "Адреса",
92
+ "starRating": "Рейтинг зірок"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Форму було успішно надіслано!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "Captcha",
89
89
  "smsReminder": "Nhắc nhở qua SMS",
90
90
  "opinionScale": "Thang ý kiến",
91
- "address": "Địa chỉ"
91
+ "address": "Địa chỉ",
92
+ "starRating": "Xếp hạng sao"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "Mẫu đã được gửi thành công!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "验证码",
89
89
  "smsReminder": "短信提醒",
90
90
  "opinionScale": "意见量表",
91
- "address": "地址"
91
+ "address": "地址",
92
+ "starRating": "星级评分"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "表单已成功提交!"
@@ -88,7 +88,8 @@
88
88
  "captcha": "驗證碼",
89
89
  "smsReminder": "短信提醒",
90
90
  "opinionScale": "意見評量",
91
- "address": "地址"
91
+ "address": "地址",
92
+ "starRating": "星級評價"
92
93
  },
93
94
  "toasts": {
94
95
  "formSubmitted": "表單已成功提交!"
@@ -26,7 +26,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
26
26
  import Check from '@bigbinary/neeto-icons/Check';
27
27
  import { jsx, jsxs } from 'react/jsx-runtime';
28
28
  import { C as CALLOUT_STYLES, b as CALLOUT_POSITIONS, L as LAST_ELEMENTS_THRESHOLD } from './yup-DL9p9dFl.js';
29
- import { c as clientI18nInstance, d as getWithExpiry, e as clearEmailVerificationDetails, g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, f as generateFormResponse, h as clearLocalStorageValues } from './utils-DMaHDZwO.js';
29
+ import { c as clientI18nInstance, d as getWithExpiry, e as clearEmailVerificationDetails, g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, f as generateFormResponse, h as clearLocalStorageValues } from './utils-DklENIyr.js';
30
30
  import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
31
31
  import '@babel/runtime/helpers/toConsumableArray';
32
32
  import '@bigbinary/neeto-commons-frontend/constants';
@@ -9,6 +9,7 @@ import { Q as QUESTION_TYPES, f as useSubmission } from './constants-30230o5k.js
9
9
  import { t } from 'i18next';
10
10
  import { dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
11
11
  import EditorContent from '@bigbinary/neeto-editor/EditorContent';
12
+ import { isEditorEmpty } from '@bigbinary/neeto-editor/utils';
12
13
  import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
13
14
  import { PhoneNumber } from '@bigbinary/neeto-molecules/PhoneNumber';
14
15
  import { isEmpty } from 'ramda';
@@ -2649,9 +2650,18 @@ var normalizeResponses = function normalizeResponses(_ref2) {
2649
2650
  var label = response.label;
2650
2651
  var value = response.value;
2651
2652
  if (omitKinds.includes(kind)) return;
2653
+ if (kind === QUESTION_TYPES.RICH_TEXT && isEditorEmpty(value)) {
2654
+ normalizedResponses.push({
2655
+ label: label,
2656
+ value: /*#__PURE__*/jsx("i", {
2657
+ children: t("neetoForm.common.unanswered")
2658
+ })
2659
+ });
2660
+ return;
2661
+ }
2652
2662
 
2653
2663
  // Name field doesn't have "label"
2654
- if (kind !== QUESTION_TYPES.name && isEmpty(value)) {
2664
+ if (kind !== QUESTION_TYPES.NAME && isEmpty(value)) {
2655
2665
  normalizedResponses.push({
2656
2666
  label: label,
2657
2667
  value: /*#__PURE__*/jsx("i", {