@payloadcms/plugin-form-builder 4.0.0-internal.656159a → 4.0.0-internal.697830c

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 (206) hide show
  1. package/dist/collections/FormSubmissions/fields/defaultPaymentFields.d.ts.map +1 -1
  2. package/dist/collections/FormSubmissions/fields/defaultPaymentFields.js +7 -14
  3. package/dist/collections/FormSubmissions/fields/defaultPaymentFields.js.map +1 -1
  4. package/dist/collections/FormSubmissions/hooks/createCharge.d.ts.map +1 -1
  5. package/dist/collections/FormSubmissions/hooks/handleUploads.d.ts.map +1 -1
  6. package/dist/collections/FormSubmissions/hooks/sendEmail.d.ts.map +1 -1
  7. package/dist/collections/FormSubmissions/index.d.ts.map +1 -1
  8. package/dist/collections/Forms/fields.d.ts.map +1 -1
  9. package/dist/collections/Forms/fields.js +78 -156
  10. package/dist/collections/Forms/fields.js.map +1 -1
  11. package/dist/collections/Forms/index.d.ts +1 -1
  12. package/dist/collections/Forms/index.d.ts.map +1 -1
  13. package/dist/collections/Forms/index.js +19 -54
  14. package/dist/collections/Forms/index.js.map +1 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -23
  18. package/dist/index.js.map +1 -1
  19. package/dist/utilities/getPaymentTotal.d.ts.map +1 -1
  20. package/dist/utilities/lexical/nodeFormat.d.ts.map +1 -1
  21. package/dist/utilities/replaceDoubleCurlys.d.ts.map +1 -1
  22. package/package.json +4 -15
  23. package/dist/translations/index.d.ts +0 -6
  24. package/dist/translations/index.d.ts.map +0 -1
  25. package/dist/translations/index.js +0 -92
  26. package/dist/translations/index.js.map +0 -1
  27. package/dist/translations/languages/ar.d.ts +0 -4
  28. package/dist/translations/languages/ar.d.ts.map +0 -1
  29. package/dist/translations/languages/ar.js +0 -101
  30. package/dist/translations/languages/ar.js.map +0 -1
  31. package/dist/translations/languages/az.d.ts +0 -4
  32. package/dist/translations/languages/az.d.ts.map +0 -1
  33. package/dist/translations/languages/az.js +0 -101
  34. package/dist/translations/languages/az.js.map +0 -1
  35. package/dist/translations/languages/bg.d.ts +0 -4
  36. package/dist/translations/languages/bg.d.ts.map +0 -1
  37. package/dist/translations/languages/bg.js +0 -101
  38. package/dist/translations/languages/bg.js.map +0 -1
  39. package/dist/translations/languages/bnBd.d.ts +0 -4
  40. package/dist/translations/languages/bnBd.d.ts.map +0 -1
  41. package/dist/translations/languages/bnBd.js +0 -101
  42. package/dist/translations/languages/bnBd.js.map +0 -1
  43. package/dist/translations/languages/bnIn.d.ts +0 -4
  44. package/dist/translations/languages/bnIn.d.ts.map +0 -1
  45. package/dist/translations/languages/bnIn.js +0 -101
  46. package/dist/translations/languages/bnIn.js.map +0 -1
  47. package/dist/translations/languages/ca.d.ts +0 -4
  48. package/dist/translations/languages/ca.d.ts.map +0 -1
  49. package/dist/translations/languages/ca.js +0 -101
  50. package/dist/translations/languages/ca.js.map +0 -1
  51. package/dist/translations/languages/cs.d.ts +0 -4
  52. package/dist/translations/languages/cs.d.ts.map +0 -1
  53. package/dist/translations/languages/cs.js +0 -101
  54. package/dist/translations/languages/cs.js.map +0 -1
  55. package/dist/translations/languages/da.d.ts +0 -4
  56. package/dist/translations/languages/da.d.ts.map +0 -1
  57. package/dist/translations/languages/da.js +0 -101
  58. package/dist/translations/languages/da.js.map +0 -1
  59. package/dist/translations/languages/de.d.ts +0 -4
  60. package/dist/translations/languages/de.d.ts.map +0 -1
  61. package/dist/translations/languages/de.js +0 -101
  62. package/dist/translations/languages/de.js.map +0 -1
  63. package/dist/translations/languages/en.d.ts +0 -98
  64. package/dist/translations/languages/en.d.ts.map +0 -1
  65. package/dist/translations/languages/en.js +0 -101
  66. package/dist/translations/languages/en.js.map +0 -1
  67. package/dist/translations/languages/es.d.ts +0 -4
  68. package/dist/translations/languages/es.d.ts.map +0 -1
  69. package/dist/translations/languages/es.js +0 -101
  70. package/dist/translations/languages/es.js.map +0 -1
  71. package/dist/translations/languages/et.d.ts +0 -4
  72. package/dist/translations/languages/et.d.ts.map +0 -1
  73. package/dist/translations/languages/et.js +0 -101
  74. package/dist/translations/languages/et.js.map +0 -1
  75. package/dist/translations/languages/fa.d.ts +0 -4
  76. package/dist/translations/languages/fa.d.ts.map +0 -1
  77. package/dist/translations/languages/fa.js +0 -101
  78. package/dist/translations/languages/fa.js.map +0 -1
  79. package/dist/translations/languages/fr.d.ts +0 -4
  80. package/dist/translations/languages/fr.d.ts.map +0 -1
  81. package/dist/translations/languages/fr.js +0 -101
  82. package/dist/translations/languages/fr.js.map +0 -1
  83. package/dist/translations/languages/he.d.ts +0 -4
  84. package/dist/translations/languages/he.d.ts.map +0 -1
  85. package/dist/translations/languages/he.js +0 -101
  86. package/dist/translations/languages/he.js.map +0 -1
  87. package/dist/translations/languages/hr.d.ts +0 -4
  88. package/dist/translations/languages/hr.d.ts.map +0 -1
  89. package/dist/translations/languages/hr.js +0 -101
  90. package/dist/translations/languages/hr.js.map +0 -1
  91. package/dist/translations/languages/hu.d.ts +0 -4
  92. package/dist/translations/languages/hu.d.ts.map +0 -1
  93. package/dist/translations/languages/hu.js +0 -101
  94. package/dist/translations/languages/hu.js.map +0 -1
  95. package/dist/translations/languages/hy.d.ts +0 -4
  96. package/dist/translations/languages/hy.d.ts.map +0 -1
  97. package/dist/translations/languages/hy.js +0 -101
  98. package/dist/translations/languages/hy.js.map +0 -1
  99. package/dist/translations/languages/id.d.ts +0 -4
  100. package/dist/translations/languages/id.d.ts.map +0 -1
  101. package/dist/translations/languages/id.js +0 -101
  102. package/dist/translations/languages/id.js.map +0 -1
  103. package/dist/translations/languages/is.d.ts +0 -4
  104. package/dist/translations/languages/is.d.ts.map +0 -1
  105. package/dist/translations/languages/is.js +0 -101
  106. package/dist/translations/languages/is.js.map +0 -1
  107. package/dist/translations/languages/it.d.ts +0 -4
  108. package/dist/translations/languages/it.d.ts.map +0 -1
  109. package/dist/translations/languages/it.js +0 -101
  110. package/dist/translations/languages/it.js.map +0 -1
  111. package/dist/translations/languages/ja.d.ts +0 -4
  112. package/dist/translations/languages/ja.d.ts.map +0 -1
  113. package/dist/translations/languages/ja.js +0 -101
  114. package/dist/translations/languages/ja.js.map +0 -1
  115. package/dist/translations/languages/ko.d.ts +0 -4
  116. package/dist/translations/languages/ko.d.ts.map +0 -1
  117. package/dist/translations/languages/ko.js +0 -101
  118. package/dist/translations/languages/ko.js.map +0 -1
  119. package/dist/translations/languages/lt.d.ts +0 -4
  120. package/dist/translations/languages/lt.d.ts.map +0 -1
  121. package/dist/translations/languages/lt.js +0 -101
  122. package/dist/translations/languages/lt.js.map +0 -1
  123. package/dist/translations/languages/lv.d.ts +0 -4
  124. package/dist/translations/languages/lv.d.ts.map +0 -1
  125. package/dist/translations/languages/lv.js +0 -101
  126. package/dist/translations/languages/lv.js.map +0 -1
  127. package/dist/translations/languages/my.d.ts +0 -4
  128. package/dist/translations/languages/my.d.ts.map +0 -1
  129. package/dist/translations/languages/my.js +0 -101
  130. package/dist/translations/languages/my.js.map +0 -1
  131. package/dist/translations/languages/nb.d.ts +0 -4
  132. package/dist/translations/languages/nb.d.ts.map +0 -1
  133. package/dist/translations/languages/nb.js +0 -101
  134. package/dist/translations/languages/nb.js.map +0 -1
  135. package/dist/translations/languages/nl.d.ts +0 -4
  136. package/dist/translations/languages/nl.d.ts.map +0 -1
  137. package/dist/translations/languages/nl.js +0 -101
  138. package/dist/translations/languages/nl.js.map +0 -1
  139. package/dist/translations/languages/pl.d.ts +0 -4
  140. package/dist/translations/languages/pl.d.ts.map +0 -1
  141. package/dist/translations/languages/pl.js +0 -101
  142. package/dist/translations/languages/pl.js.map +0 -1
  143. package/dist/translations/languages/pt.d.ts +0 -4
  144. package/dist/translations/languages/pt.d.ts.map +0 -1
  145. package/dist/translations/languages/pt.js +0 -101
  146. package/dist/translations/languages/pt.js.map +0 -1
  147. package/dist/translations/languages/ro.d.ts +0 -4
  148. package/dist/translations/languages/ro.d.ts.map +0 -1
  149. package/dist/translations/languages/ro.js +0 -101
  150. package/dist/translations/languages/ro.js.map +0 -1
  151. package/dist/translations/languages/rs.d.ts +0 -4
  152. package/dist/translations/languages/rs.d.ts.map +0 -1
  153. package/dist/translations/languages/rs.js +0 -101
  154. package/dist/translations/languages/rs.js.map +0 -1
  155. package/dist/translations/languages/rsLatin.d.ts +0 -4
  156. package/dist/translations/languages/rsLatin.d.ts.map +0 -1
  157. package/dist/translations/languages/rsLatin.js +0 -101
  158. package/dist/translations/languages/rsLatin.js.map +0 -1
  159. package/dist/translations/languages/ru.d.ts +0 -4
  160. package/dist/translations/languages/ru.d.ts.map +0 -1
  161. package/dist/translations/languages/ru.js +0 -101
  162. package/dist/translations/languages/ru.js.map +0 -1
  163. package/dist/translations/languages/sk.d.ts +0 -4
  164. package/dist/translations/languages/sk.d.ts.map +0 -1
  165. package/dist/translations/languages/sk.js +0 -101
  166. package/dist/translations/languages/sk.js.map +0 -1
  167. package/dist/translations/languages/sl.d.ts +0 -4
  168. package/dist/translations/languages/sl.d.ts.map +0 -1
  169. package/dist/translations/languages/sl.js +0 -101
  170. package/dist/translations/languages/sl.js.map +0 -1
  171. package/dist/translations/languages/sv.d.ts +0 -4
  172. package/dist/translations/languages/sv.d.ts.map +0 -1
  173. package/dist/translations/languages/sv.js +0 -101
  174. package/dist/translations/languages/sv.js.map +0 -1
  175. package/dist/translations/languages/ta.d.ts +0 -4
  176. package/dist/translations/languages/ta.d.ts.map +0 -1
  177. package/dist/translations/languages/ta.js +0 -101
  178. package/dist/translations/languages/ta.js.map +0 -1
  179. package/dist/translations/languages/th.d.ts +0 -4
  180. package/dist/translations/languages/th.d.ts.map +0 -1
  181. package/dist/translations/languages/th.js +0 -101
  182. package/dist/translations/languages/th.js.map +0 -1
  183. package/dist/translations/languages/tr.d.ts +0 -4
  184. package/dist/translations/languages/tr.d.ts.map +0 -1
  185. package/dist/translations/languages/tr.js +0 -101
  186. package/dist/translations/languages/tr.js.map +0 -1
  187. package/dist/translations/languages/uk.d.ts +0 -4
  188. package/dist/translations/languages/uk.d.ts.map +0 -1
  189. package/dist/translations/languages/uk.js +0 -101
  190. package/dist/translations/languages/uk.js.map +0 -1
  191. package/dist/translations/languages/vi.d.ts +0 -4
  192. package/dist/translations/languages/vi.d.ts.map +0 -1
  193. package/dist/translations/languages/vi.js +0 -101
  194. package/dist/translations/languages/vi.js.map +0 -1
  195. package/dist/translations/languages/zh.d.ts +0 -4
  196. package/dist/translations/languages/zh.d.ts.map +0 -1
  197. package/dist/translations/languages/zh.js +0 -101
  198. package/dist/translations/languages/zh.js.map +0 -1
  199. package/dist/translations/languages/zhTw.d.ts +0 -4
  200. package/dist/translations/languages/zhTw.d.ts.map +0 -1
  201. package/dist/translations/languages/zhTw.js +0 -101
  202. package/dist/translations/languages/zhTw.js.map +0 -1
  203. package/dist/translations/types.d.ts +0 -5
  204. package/dist/translations/types.d.ts.map +0 -1
  205. package/dist/translations/types.js +0 -3
  206. package/dist/translations/types.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"defaultPaymentFields.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/fields/defaultPaymentFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,eAAO,MAAM,oBAAoB,EAAE,KA8DlC,CAAA"}
1
+ {"version":3,"file":"defaultPaymentFields.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/fields/defaultPaymentFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,eAAO,MAAM,oBAAoB,EAAE,KAgDlC,CAAA"}
@@ -5,21 +5,18 @@ export const defaultPaymentFields = {
5
5
  {
6
6
  name: 'field',
7
7
  type: 'text',
8
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
9
- t('plugin-form-builder:field')
8
+ label: 'Field'
10
9
  },
11
10
  {
12
11
  name: 'status',
13
12
  type: 'text',
14
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
15
- t('plugin-form-builder:paymentStatus')
13
+ label: 'Status'
16
14
  },
17
15
  {
18
16
  name: 'amount',
19
17
  type: 'number',
20
18
  admin: {
21
- description: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
22
- t('plugin-form-builder:amountInCents')
19
+ description: 'Amount in cents'
23
20
  }
24
21
  },
25
22
  {
@@ -33,24 +30,20 @@ export const defaultPaymentFields = {
33
30
  {
34
31
  name: 'token',
35
32
  type: 'text',
36
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
37
- t('plugin-form-builder:token')
33
+ label: 'token'
38
34
  },
39
35
  {
40
36
  name: 'brand',
41
37
  type: 'text',
42
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
43
- t('plugin-form-builder:brand')
38
+ label: 'Brand'
44
39
  },
45
40
  {
46
41
  name: 'number',
47
42
  type: 'text',
48
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
49
- t('plugin-form-builder:numberSingular')
43
+ label: 'Number'
50
44
  }
51
45
  ],
52
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
53
- t('plugin-form-builder:creditCard')
46
+ label: 'Credit Card'
54
47
  }
55
48
  ]
56
49
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/collections/FormSubmissions/fields/defaultPaymentFields.ts"],"sourcesContent":["import type { Field } from 'payload'\n\nexport const defaultPaymentFields: Field = {\n name: 'payment',\n type: 'group',\n fields: [\n {\n name: 'field',\n type: 'text',\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-form-builder:field'),\n },\n {\n name: 'status',\n type: 'text',\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-form-builder:paymentStatus'),\n },\n {\n name: 'amount',\n type: 'number',\n admin: {\n description: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-form-builder:amountInCents'),\n },\n },\n {\n name: 'paymentProcessor',\n type: 'text',\n },\n {\n name: 'creditCard',\n type: 'group',\n fields: [\n {\n name: 'token',\n type: 'text',\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-form-builder:token'),\n },\n {\n name: 'brand',\n type: 'text',\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-form-builder:brand'),\n },\n {\n name: 'number',\n type: 'text',\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-form-builder:numberSingular'),\n },\n ],\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-form-builder:creditCard'),\n },\n ],\n}\n"],"names":["defaultPaymentFields","name","type","fields","label","t","admin","description"],"mappings":"AAEA,OAAO,MAAMA,uBAA8B;IACzCC,MAAM;IACNC,MAAM;IACNC,QAAQ;QACN;YACEF,MAAM;YACNC,MAAM;YACNE,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;gBAC/DA,EAAE;QACN;QACA;YACEJ,MAAM;YACNC,MAAM;YACNE,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;gBAC/DA,EAAE;QACN;QACA;YACEJ,MAAM;YACNC,MAAM;YACNI,OAAO;gBACLC,aAAa,CAAC,EAAEF,CAAC,EAAE,GACjB,+DAA+D;oBAC/DA,EAAE;YACN;QACF;QACA;YACEJ,MAAM;YACNC,MAAM;QACR;QACA;YACED,MAAM;YACNC,MAAM;YACNC,QAAQ;gBACN;oBACEF,MAAM;oBACNC,MAAM;oBACNE,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;wBAC/DA,EAAE;gBACN;gBACA;oBACEJ,MAAM;oBACNC,MAAM;oBACNE,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;wBAC/DA,EAAE;gBACN;gBACA;oBACEJ,MAAM;oBACNC,MAAM;oBACNE,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;wBAC/DA,EAAE;gBACN;aACD;YACDD,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;gBAC/DA,EAAE;QACN;KACD;AACH,EAAC"}
1
+ {"version":3,"sources":["../../../../src/collections/FormSubmissions/fields/defaultPaymentFields.ts"],"sourcesContent":["import type { Field } from 'payload'\n\nexport const defaultPaymentFields: Field = {\n name: 'payment',\n type: 'group',\n fields: [\n {\n name: 'field',\n type: 'text',\n label: 'Field',\n },\n {\n name: 'status',\n type: 'text',\n label: 'Status',\n },\n {\n name: 'amount',\n type: 'number',\n admin: {\n description: 'Amount in cents',\n },\n },\n {\n name: 'paymentProcessor',\n type: 'text',\n },\n {\n name: 'creditCard',\n type: 'group',\n fields: [\n {\n name: 'token',\n type: 'text',\n label: 'token',\n },\n {\n name: 'brand',\n type: 'text',\n label: 'Brand',\n },\n {\n name: 'number',\n type: 'text',\n label: 'Number',\n },\n ],\n label: 'Credit Card',\n },\n ],\n}\n"],"names":["defaultPaymentFields","name","type","fields","label","admin","description"],"mappings":"AAEA,OAAO,MAAMA,uBAA8B;IACzCC,MAAM;IACNC,MAAM;IACNC,QAAQ;QACN;YACEF,MAAM;YACNC,MAAM;YACNE,OAAO;QACT;QACA;YACEH,MAAM;YACNC,MAAM;YACNE,OAAO;QACT;QACA;YACEH,MAAM;YACNC,MAAM;YACNG,OAAO;gBACLC,aAAa;YACf;QACF;QACA;YACEL,MAAM;YACNC,MAAM;QACR;QACA;YACED,MAAM;YACNC,MAAM;YACNC,QAAQ;gBACN;oBACEF,MAAM;oBACNC,MAAM;oBACNE,OAAO;gBACT;gBACA;oBACEH,MAAM;oBACNC,MAAM;oBACNE,OAAO;gBACT;gBACA;oBACEH,MAAM;oBACNC,MAAM;oBACNE,OAAO;gBACT;aACD;YACDA,OAAO;QACT;KACD;AACH,EAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createCharge.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/hooks/createCharge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAEhE,eAAO,MAAM,YAAY,qBACL,GAAG,cACT,uBAAuB,KAClC,OAAO,CAAC,GAAG,CAeb,CAAA"}
1
+ {"version":3,"file":"createCharge.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/hooks/createCharge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAEhE,eAAO,MAAM,YAAY,GACvB,kBAAkB,GAAG,EACrB,YAAY,uBAAuB,KAClC,OAAO,CAAC,GAAG,CAeb,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"handleUploads.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/hooks/handleUploads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAK3B,MAAM,SAAS,CAAA;AAKhB,OAAO,KAAK,EACV,uBAAuB,EAIxB,MAAM,mBAAmB,CAAA;AAE1B,KAAK,kBAAkB,GAAG,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAA;AAOnE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,uBACJ,kBAAkB,cAC1B,uBAAuB,0BAiSpC,CAAA"}
1
+ {"version":3,"file":"handleUploads.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/hooks/handleUploads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAK3B,MAAM,SAAS,CAAA;AAKhB,OAAO,KAAK,EACV,uBAAuB,EAIxB,MAAM,mBAAmB,CAAA;AAE1B,KAAK,kBAAkB,GAAG,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAA;AAOnE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,GACxB,oBAAoB,kBAAkB,EACtC,YAAY,uBAAuB,0BAiSpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sendEmail.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/hooks/sendEmail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAExD,OAAO,KAAK,EAAyB,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAKvF,KAAK,iBAAiB,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjE,eAAO,MAAM,SAAS,0BACG,iBAAiB,cAC5B,uBAAuB,kBA8FpC,CAAA"}
1
+ {"version":3,"file":"sendEmail.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/hooks/sendEmail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAExD,OAAO,KAAK,EAAyB,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAKvF,KAAK,iBAAiB,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjE,eAAO,MAAM,SAAS,GACpB,uBAAuB,iBAAiB,EACxC,YAAY,uBAAuB,kBA8FpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collections/FormSubmissions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA8B,gBAAgB,EAAS,MAAM,SAAS,CAAA;AAElF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAQ7D,eAAO,MAAM,4BAA4B,eAC3B,uBAAuB,KAClC,gBAiIF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collections/FormSubmissions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA8B,gBAAgB,EAAS,MAAM,SAAS,CAAA;AAElF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAQ7D,eAAO,MAAM,4BAA4B,GACvC,YAAY,uBAAuB,KAClC,gBAiIF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/collections/Forms/fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAA+B,MAAM,SAAS,CAAA;AAu8BjE,eAAO,MAAM,MAAM,EAAE;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,CAAA;CAe9C,CAAA"}
1
+ {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/collections/Forms/fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAA+B,MAAM,SAAS,CAAA;AAgzBjE,eAAO,MAAM,MAAM,EAAE;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,CAAA;CAe9C,CAAA"}
@@ -1,34 +1,29 @@
1
1
  const name = {
2
2
  name: 'name',
3
3
  type: 'text',
4
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
5
- t('plugin-form-builder:name'),
4
+ label: 'Name (lowercase, no special characters)',
6
5
  required: true
7
6
  };
8
7
  const label = {
9
8
  name: 'label',
10
9
  type: 'text',
11
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
12
- t('plugin-form-builder:label'),
10
+ label: 'Label',
13
11
  localized: true
14
12
  };
15
13
  const required = {
16
14
  name: 'required',
17
15
  type: 'checkbox',
18
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
19
- t('plugin-form-builder:required')
16
+ label: 'Required'
20
17
  };
21
18
  const width = {
22
19
  name: 'width',
23
20
  type: 'number',
24
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
25
- t('plugin-form-builder:fieldWidth')
21
+ label: 'Field Width (percentage)'
26
22
  };
27
23
  const placeholder = {
28
24
  name: 'placeholder',
29
25
  type: 'text',
30
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
31
- t('plugin-form-builder:placeholder')
26
+ label: 'Placeholder'
32
27
  };
33
28
  const Radio = {
34
29
  slug: 'radio',
@@ -65,8 +60,7 @@ const Radio = {
65
60
  admin: {
66
61
  width: '50%'
67
62
  },
68
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
69
- t('plugin-form-builder:defaultValue'),
63
+ label: 'Default Value',
70
64
  localized: true
71
65
  }
72
66
  ]
@@ -84,8 +78,7 @@ const Radio = {
84
78
  admin: {
85
79
  width: '50%'
86
80
  },
87
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
88
- t('plugin-form-builder:label'),
81
+ label: 'Label',
89
82
  localized: true,
90
83
  required: true
91
84
  },
@@ -95,29 +88,23 @@ const Radio = {
95
88
  admin: {
96
89
  width: '50%'
97
90
  },
98
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
99
- t('plugin-form-builder:value'),
91
+ label: 'Value',
100
92
  required: true
101
93
  }
102
94
  ]
103
95
  }
104
96
  ],
105
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
106
- t('plugin-form-builder:radioOptions'),
97
+ label: 'Radio Attribute Options',
107
98
  labels: {
108
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
109
- t('plugin-form-builder:optionPlural'),
110
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
111
- t('plugin-form-builder:optionSingular')
99
+ plural: 'Options',
100
+ singular: 'Option'
112
101
  }
113
102
  },
114
103
  required
115
104
  ],
116
105
  labels: {
117
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
118
- t('plugin-form-builder:radioPlural'),
119
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
120
- t('plugin-form-builder:radioSingular')
106
+ plural: 'Radio Fields',
107
+ singular: 'Radio'
121
108
  }
122
109
  };
123
110
  const Select = {
@@ -155,8 +142,7 @@ const Select = {
155
142
  admin: {
156
143
  width: '50%'
157
144
  },
158
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
159
- t('plugin-form-builder:defaultValue'),
145
+ label: 'Default Value',
160
146
  localized: true
161
147
  }
162
148
  ]
@@ -182,8 +168,7 @@ const Select = {
182
168
  admin: {
183
169
  width: '50%'
184
170
  },
185
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
186
- t('plugin-form-builder:label'),
171
+ label: 'Label',
187
172
  localized: true,
188
173
  required: true
189
174
  },
@@ -193,29 +178,23 @@ const Select = {
193
178
  admin: {
194
179
  width: '50%'
195
180
  },
196
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
197
- t('plugin-form-builder:value'),
181
+ label: 'Value',
198
182
  required: true
199
183
  }
200
184
  ]
201
185
  }
202
186
  ],
203
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
204
- t('plugin-form-builder:selectOptions'),
187
+ label: 'Select Attribute Options',
205
188
  labels: {
206
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
207
- t('plugin-form-builder:optionPlural'),
208
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
209
- t('plugin-form-builder:optionSingular')
189
+ plural: 'Options',
190
+ singular: 'Option'
210
191
  }
211
192
  },
212
193
  required
213
194
  ],
214
195
  labels: {
215
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
216
- t('plugin-form-builder:selectPlural'),
217
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
218
- t('plugin-form-builder:selectSingular')
196
+ plural: 'Select Fields',
197
+ singular: 'Select'
219
198
  }
220
199
  };
221
200
  const Text = {
@@ -253,8 +232,7 @@ const Text = {
253
232
  admin: {
254
233
  width: '50%'
255
234
  },
256
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
257
- t('plugin-form-builder:defaultValue'),
235
+ label: 'Default Value',
258
236
  localized: true
259
237
  }
260
238
  ]
@@ -262,10 +240,8 @@ const Text = {
262
240
  required
263
241
  ],
264
242
  labels: {
265
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
266
- t('plugin-form-builder:textPlural'),
267
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
268
- t('plugin-form-builder:textSingular')
243
+ plural: 'Text Fields',
244
+ singular: 'Text'
269
245
  }
270
246
  };
271
247
  const TextArea = {
@@ -303,8 +279,7 @@ const TextArea = {
303
279
  admin: {
304
280
  width: '50%'
305
281
  },
306
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
307
- t('plugin-form-builder:defaultValue'),
282
+ label: 'Default Value',
308
283
  localized: true
309
284
  }
310
285
  ]
@@ -312,10 +287,8 @@ const TextArea = {
312
287
  required
313
288
  ],
314
289
  labels: {
315
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
316
- t('plugin-form-builder:textareaPlural'),
317
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
318
- t('plugin-form-builder:textareaSingular')
290
+ plural: 'Text Area Fields',
291
+ singular: 'Text Area'
319
292
  }
320
293
  };
321
294
  const Number = {
@@ -353,18 +326,15 @@ const Number = {
353
326
  admin: {
354
327
  width: '50%'
355
328
  },
356
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
357
- t('plugin-form-builder:defaultValue')
329
+ label: 'Default Value'
358
330
  }
359
331
  ]
360
332
  },
361
333
  required
362
334
  ],
363
335
  labels: {
364
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
365
- t('plugin-form-builder:numberPlural'),
366
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
367
- t('plugin-form-builder:numberSingular')
336
+ plural: 'Number Fields',
337
+ singular: 'Number'
368
338
  }
369
339
  };
370
340
  const Email = {
@@ -391,10 +361,8 @@ const Email = {
391
361
  required
392
362
  ],
393
363
  labels: {
394
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
395
- t('plugin-form-builder:emailPlural'),
396
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
397
- t('plugin-form-builder:emailSingular')
364
+ plural: 'Email Fields',
365
+ singular: 'Email'
398
366
  }
399
367
  };
400
368
  const State = {
@@ -421,10 +389,8 @@ const State = {
421
389
  required
422
390
  ],
423
391
  labels: {
424
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
425
- t('plugin-form-builder:statePlural'),
426
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
427
- t('plugin-form-builder:stateSingular')
392
+ plural: 'State Fields',
393
+ singular: 'State'
428
394
  }
429
395
  };
430
396
  const Country = {
@@ -451,10 +417,8 @@ const Country = {
451
417
  required
452
418
  ],
453
419
  labels: {
454
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
455
- t('plugin-form-builder:countryPlural'),
456
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
457
- t('plugin-form-builder:countrySingular')
420
+ plural: 'Country Fields',
421
+ singular: 'Country'
458
422
  }
459
423
  };
460
424
  const Checkbox = {
@@ -497,15 +461,12 @@ const Checkbox = {
497
461
  {
498
462
  name: 'defaultValue',
499
463
  type: 'checkbox',
500
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
501
- t('plugin-form-builder:checkedByDefault')
464
+ label: 'Checked by default'
502
465
  }
503
466
  ],
504
467
  labels: {
505
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
506
- t('plugin-form-builder:checkboxPlural'),
507
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
508
- t('plugin-form-builder:checkboxSingular')
468
+ plural: 'Checkbox Fields',
469
+ singular: 'Checkbox'
509
470
  }
510
471
  };
511
472
  const Date = {
@@ -548,15 +509,12 @@ const Date = {
548
509
  {
549
510
  name: 'defaultValue',
550
511
  type: 'date',
551
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
552
- t('plugin-form-builder:defaultValue')
512
+ label: 'Default Value'
553
513
  }
554
514
  ],
555
515
  labels: {
556
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
557
- t('plugin-form-builder:datePlural'),
558
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
559
- t('plugin-form-builder:dateSingular')
516
+ plural: 'Date Fields',
517
+ singular: 'Date'
560
518
  }
561
519
  };
562
520
  const Payment = (fieldConfig)=>{
@@ -565,8 +523,7 @@ const Payment = (fieldConfig)=>{
565
523
  paymentProcessorField = {
566
524
  name: 'paymentProcessor',
567
525
  type: 'select',
568
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
569
- t('plugin-form-builder:paymentProcessor'),
526
+ label: 'Payment Processor',
570
527
  options: [],
571
528
  ...fieldConfig.paymentProcessor
572
529
  };
@@ -606,14 +563,11 @@ const Payment = (fieldConfig)=>{
606
563
  admin: {
607
564
  width: '50%'
608
565
  },
609
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
610
- t('plugin-form-builder:basePrice')
566
+ label: 'Base Price'
611
567
  }
612
568
  ]
613
569
  },
614
- ...paymentProcessorField ? [
615
- paymentProcessorField
616
- ] : [],
570
+ paymentProcessorField,
617
571
  {
618
572
  name: 'priceConditions',
619
573
  type: 'array',
@@ -631,22 +585,18 @@ const Payment = (fieldConfig)=>{
631
585
  name: 'condition',
632
586
  type: 'select',
633
587
  defaultValue: 'hasValue',
634
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
635
- t('plugin-form-builder:condition'),
588
+ label: 'Condition',
636
589
  options: [
637
590
  {
638
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
639
- t('plugin-form-builder:hasAnyValue'),
591
+ label: 'Has Any Value',
640
592
  value: 'hasValue'
641
593
  },
642
594
  {
643
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
644
- t('plugin-form-builder:equals'),
595
+ label: 'Equals',
645
596
  value: 'equals'
646
597
  },
647
598
  {
648
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
649
- t('plugin-form-builder:doesNotEqual'),
599
+ label: 'Does Not Equal',
650
600
  value: 'notEquals'
651
601
  }
652
602
  ]
@@ -657,8 +607,7 @@ const Payment = (fieldConfig)=>{
657
607
  admin: {
658
608
  condition: (_, { condition })=>condition === 'equals' || condition === 'notEquals'
659
609
  },
660
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
661
- t('plugin-form-builder:value')
610
+ label: 'Value'
662
611
  },
663
612
  {
664
613
  name: 'operator',
@@ -666,23 +615,19 @@ const Payment = (fieldConfig)=>{
666
615
  defaultValue: 'add',
667
616
  options: [
668
617
  {
669
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
670
- t('plugin-form-builder:add'),
618
+ label: 'Add',
671
619
  value: 'add'
672
620
  },
673
621
  {
674
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
675
- t('plugin-form-builder:subtract'),
622
+ label: 'Subtract',
676
623
  value: 'subtract'
677
624
  },
678
625
  {
679
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
680
- t('plugin-form-builder:multiply'),
626
+ label: 'Multiply',
681
627
  value: 'multiply'
682
628
  },
683
629
  {
684
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
685
- t('plugin-form-builder:divide'),
630
+ label: 'Divide',
686
631
  value: 'divide'
687
632
  }
688
633
  ]
@@ -694,17 +639,14 @@ const Payment = (fieldConfig)=>{
694
639
  width: '100%'
695
640
  },
696
641
  defaultValue: 'static',
697
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
698
- t('plugin-form-builder:valueType'),
642
+ label: 'Value Type',
699
643
  options: [
700
644
  {
701
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
702
- t('plugin-form-builder:staticValue'),
645
+ label: 'Static Value',
703
646
  value: 'static'
704
647
  },
705
648
  {
706
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
707
- t('plugin-form-builder:valueOfField'),
649
+ label: 'Value Of Field',
708
650
  value: 'valueOfField'
709
651
  }
710
652
  ]
@@ -717,26 +659,20 @@ const Payment = (fieldConfig)=>{
717
659
  Field: '@payloadcms/plugin-form-builder/client#DynamicPriceSelector'
718
660
  }
719
661
  },
720
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
721
- t('plugin-form-builder:value')
662
+ label: 'Value'
722
663
  }
723
664
  ],
724
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
725
- t('plugin-form-builder:priceConditions'),
665
+ label: 'Price Conditions',
726
666
  labels: {
727
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
728
- t('plugin-form-builder:priceConditionsPlural'),
729
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
730
- t('plugin-form-builder:priceConditionsSingular')
667
+ plural: 'Price Conditions',
668
+ singular: 'Price Condition'
731
669
  }
732
670
  },
733
671
  required
734
- ],
672
+ ].filter(Boolean),
735
673
  labels: {
736
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
737
- t('plugin-form-builder:paymentFieldPlural'),
738
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
739
- t('plugin-form-builder:paymentFieldSingular')
674
+ plural: 'Payment Fields',
675
+ singular: 'Payment'
740
676
  }
741
677
  };
742
678
  return fields;
@@ -751,10 +687,8 @@ const Message = {
751
687
  }
752
688
  ],
753
689
  labels: {
754
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
755
- t('plugin-form-builder:messagePlural'),
756
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
757
- t('plugin-form-builder:messageSingular')
690
+ plural: 'Message Blocks',
691
+ singular: 'Message'
758
692
  }
759
693
  };
760
694
  const Upload = (uploadCollections)=>{
@@ -782,11 +716,9 @@ const Upload = (uploadCollections)=>{
782
716
  name: 'uploadCollection',
783
717
  type: 'select',
784
718
  admin: {
785
- description: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
786
- t('plugin-form-builder:uploadCollectionDescription')
719
+ description: 'Select which upload collection to store files in'
787
720
  },
788
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
789
- t('plugin-form-builder:uploadCollection'),
721
+ label: 'Upload Collection',
790
722
  options: uploadCollections.map((slug)=>({
791
723
  label: slug,
792
724
  value: slug
@@ -797,25 +729,20 @@ const Upload = (uploadCollections)=>{
797
729
  name: 'mimeTypes',
798
730
  type: 'array',
799
731
  admin: {
800
- description: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
801
- t('plugin-form-builder:allowedFileTypesDescription')
732
+ description: 'Restrict allowed file types (e.g., image/*, application/pdf). Leave empty to allow all types.'
802
733
  },
803
734
  fields: [
804
735
  {
805
736
  name: 'mimeType',
806
737
  type: 'text',
807
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
808
- t('plugin-form-builder:mimeType'),
738
+ label: 'MIME Type',
809
739
  required: true
810
740
  }
811
741
  ],
812
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
813
- t('plugin-form-builder:allowedFileTypes'),
742
+ label: 'Allowed File Types',
814
743
  labels: {
815
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
816
- t('plugin-form-builder:mimeTypePlural'),
817
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
818
- t('plugin-form-builder:mimeTypeSingular')
744
+ plural: 'MIME Types',
745
+ singular: 'MIME Type'
819
746
  }
820
747
  },
821
748
  {
@@ -831,12 +758,10 @@ const Upload = (uploadCollections)=>{
831
758
  name: 'maxFileSize',
832
759
  type: 'number',
833
760
  admin: {
834
- description: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
835
- t('plugin-form-builder:maxFileSizeDescription'),
761
+ description: 'Maximum file size in bytes. Leave empty for no limit.',
836
762
  width: '50%'
837
763
  },
838
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
839
- t('plugin-form-builder:maxFileSize')
764
+ label: 'Max File Size (bytes)'
840
765
  }
841
766
  ]
842
767
  },
@@ -855,17 +780,14 @@ const Upload = (uploadCollections)=>{
855
780
  admin: {
856
781
  width: '50%'
857
782
  },
858
- label: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
859
- t('plugin-form-builder:allowMultipleFiles')
783
+ label: 'Allow Multiple Files'
860
784
  }
861
785
  ]
862
786
  }
863
787
  ],
864
788
  labels: {
865
- plural: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
866
- t('plugin-form-builder:uploadFieldPlural'),
867
- singular: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
868
- t('plugin-form-builder:uploadFieldSingular')
789
+ plural: 'Upload Fields',
790
+ singular: 'Upload'
869
791
  }
870
792
  };
871
793
  };