payload 3.0.0-beta.78 → 3.0.0-beta.79

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 (234) hide show
  1. package/bin.js +33 -10
  2. package/dist/admin/RichText.d.ts +20 -17
  3. package/dist/admin/RichText.d.ts.map +1 -1
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/elements/Cell.d.ts +11 -26
  6. package/dist/admin/elements/Cell.d.ts.map +1 -1
  7. package/dist/admin/elements/Cell.js.map +1 -1
  8. package/dist/admin/elements/Tab.d.ts +16 -15
  9. package/dist/admin/elements/Tab.d.ts.map +1 -1
  10. package/dist/admin/elements/Tab.js.map +1 -1
  11. package/dist/admin/fields/Array.d.ts +6 -13
  12. package/dist/admin/fields/Array.d.ts.map +1 -1
  13. package/dist/admin/fields/Array.js.map +1 -1
  14. package/dist/admin/fields/Blocks.d.ts +8 -25
  15. package/dist/admin/fields/Blocks.d.ts.map +1 -1
  16. package/dist/admin/fields/Blocks.js.map +1 -1
  17. package/dist/admin/fields/Checkbox.d.ts +9 -9
  18. package/dist/admin/fields/Checkbox.d.ts.map +1 -1
  19. package/dist/admin/fields/Checkbox.js.map +1 -1
  20. package/dist/admin/fields/Code.d.ts +5 -7
  21. package/dist/admin/fields/Code.d.ts.map +1 -1
  22. package/dist/admin/fields/Code.js.map +1 -1
  23. package/dist/admin/fields/Collapsible.d.ts +3 -4
  24. package/dist/admin/fields/Collapsible.d.ts.map +1 -1
  25. package/dist/admin/fields/Collapsible.js.map +1 -1
  26. package/dist/admin/fields/Date.d.ts +4 -7
  27. package/dist/admin/fields/Date.d.ts.map +1 -1
  28. package/dist/admin/fields/Date.js.map +1 -1
  29. package/dist/admin/fields/Email.d.ts +5 -7
  30. package/dist/admin/fields/Email.d.ts.map +1 -1
  31. package/dist/admin/fields/Email.js.map +1 -1
  32. package/dist/admin/fields/Group.d.ts +3 -6
  33. package/dist/admin/fields/Group.d.ts.map +1 -1
  34. package/dist/admin/fields/Group.js.map +1 -1
  35. package/dist/admin/fields/Hidden.d.ts +7 -5
  36. package/dist/admin/fields/Hidden.d.ts.map +1 -1
  37. package/dist/admin/fields/Hidden.js.map +1 -1
  38. package/dist/admin/fields/JSON.d.ts +4 -7
  39. package/dist/admin/fields/JSON.d.ts.map +1 -1
  40. package/dist/admin/fields/JSON.js.map +1 -1
  41. package/dist/admin/fields/Number.d.ts +5 -12
  42. package/dist/admin/fields/Number.d.ts.map +1 -1
  43. package/dist/admin/fields/Number.js.map +1 -1
  44. package/dist/admin/fields/Point.d.ts +4 -6
  45. package/dist/admin/fields/Point.d.ts.map +1 -1
  46. package/dist/admin/fields/Point.js.map +1 -1
  47. package/dist/admin/fields/Radio.d.ts +6 -9
  48. package/dist/admin/fields/Radio.d.ts.map +1 -1
  49. package/dist/admin/fields/Radio.js.map +1 -1
  50. package/dist/admin/fields/Relationship.d.ts +4 -9
  51. package/dist/admin/fields/Relationship.d.ts.map +1 -1
  52. package/dist/admin/fields/Relationship.js.map +1 -1
  53. package/dist/admin/fields/RichText.d.ts +5 -6
  54. package/dist/admin/fields/RichText.d.ts.map +1 -1
  55. package/dist/admin/fields/RichText.js.map +1 -1
  56. package/dist/admin/fields/Row.d.ts +3 -4
  57. package/dist/admin/fields/Row.d.ts.map +1 -1
  58. package/dist/admin/fields/Row.js.map +1 -1
  59. package/dist/admin/fields/Select.d.ts +6 -11
  60. package/dist/admin/fields/Select.d.ts.map +1 -1
  61. package/dist/admin/fields/Select.js.map +1 -1
  62. package/dist/admin/fields/Tabs.d.ts +8 -12
  63. package/dist/admin/fields/Tabs.d.ts.map +1 -1
  64. package/dist/admin/fields/Tabs.js.map +1 -1
  65. package/dist/admin/fields/Text.d.ts +7 -13
  66. package/dist/admin/fields/Text.d.ts.map +1 -1
  67. package/dist/admin/fields/Text.js.map +1 -1
  68. package/dist/admin/fields/Textarea.d.ts +7 -9
  69. package/dist/admin/fields/Textarea.d.ts.map +1 -1
  70. package/dist/admin/fields/Textarea.js.map +1 -1
  71. package/dist/admin/fields/Upload.d.ts +6 -7
  72. package/dist/admin/fields/Upload.d.ts.map +1 -1
  73. package/dist/admin/fields/Upload.js.map +1 -1
  74. package/dist/admin/forms/Error.d.ts +10 -10
  75. package/dist/admin/forms/Error.d.ts.map +1 -1
  76. package/dist/admin/forms/Error.js.map +1 -1
  77. package/dist/admin/forms/Field.d.ts +17 -24
  78. package/dist/admin/forms/Field.d.ts.map +1 -1
  79. package/dist/admin/forms/Field.js +1 -0
  80. package/dist/admin/forms/Field.js.map +1 -1
  81. package/dist/admin/forms/FieldDescription.d.ts +10 -9
  82. package/dist/admin/forms/FieldDescription.d.ts.map +1 -1
  83. package/dist/admin/forms/FieldDescription.js.map +1 -1
  84. package/dist/admin/forms/Label.d.ts +14 -15
  85. package/dist/admin/forms/Label.d.ts.map +1 -1
  86. package/dist/admin/forms/Label.js.map +1 -1
  87. package/dist/admin/types.d.ts +30 -11
  88. package/dist/admin/types.d.ts.map +1 -1
  89. package/dist/admin/types.js.map +1 -1
  90. package/dist/admin/views/types.d.ts +21 -13
  91. package/dist/admin/views/types.d.ts.map +1 -1
  92. package/dist/admin/views/types.js.map +1 -1
  93. package/dist/auth/baseFields/apiKey.js +2 -2
  94. package/dist/auth/baseFields/apiKey.js.map +1 -1
  95. package/dist/auth/baseFields/email.js +1 -1
  96. package/dist/auth/baseFields/email.js.map +1 -1
  97. package/dist/auth/baseFields/username.js +1 -1
  98. package/dist/auth/baseFields/username.js.map +1 -1
  99. package/dist/auth/baseFields/verification.js +1 -1
  100. package/dist/auth/baseFields/verification.js.map +1 -1
  101. package/dist/bin/generateImportMap/index.d.ts +47 -0
  102. package/dist/bin/generateImportMap/index.d.ts.map +1 -0
  103. package/dist/bin/generateImportMap/index.js +129 -0
  104. package/dist/bin/generateImportMap/index.js.map +1 -0
  105. package/dist/bin/generateImportMap/iterateCollections.d.ts +12 -0
  106. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -0
  107. package/dist/bin/generateImportMap/iterateCollections.js +41 -0
  108. package/dist/bin/generateImportMap/iterateCollections.js.map +1 -0
  109. package/dist/bin/generateImportMap/iterateConfig.d.ts +10 -0
  110. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -0
  111. package/dist/bin/generateImportMap/iterateConfig.js +75 -0
  112. package/dist/bin/generateImportMap/iterateConfig.js.map +1 -0
  113. package/dist/bin/generateImportMap/iterateFields.d.ts +12 -0
  114. package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -0
  115. package/dist/bin/generateImportMap/iterateFields.js +56 -0
  116. package/dist/bin/generateImportMap/iterateFields.js.map +1 -0
  117. package/dist/bin/generateImportMap/iterateGlobals.d.ts +12 -0
  118. package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +1 -0
  119. package/dist/bin/generateImportMap/iterateGlobals.js +34 -0
  120. package/dist/bin/generateImportMap/iterateGlobals.js.map +1 -0
  121. package/dist/bin/generateImportMap/parsePayloadComponent.d.ts +6 -0
  122. package/dist/bin/generateImportMap/parsePayloadComponent.d.ts.map +1 -0
  123. package/dist/bin/generateImportMap/parsePayloadComponent.js +19 -0
  124. package/dist/bin/generateImportMap/parsePayloadComponent.js.map +1 -0
  125. package/dist/bin/index.d.ts.map +1 -1
  126. package/dist/bin/index.js +35 -4
  127. package/dist/bin/index.js.map +1 -1
  128. package/dist/collections/config/client.d.ts +32 -308
  129. package/dist/collections/config/client.d.ts.map +1 -1
  130. package/dist/collections/config/client.js +1 -82
  131. package/dist/collections/config/client.js.map +1 -1
  132. package/dist/collections/config/types.d.ts +9 -9
  133. package/dist/collections/config/types.d.ts.map +1 -1
  134. package/dist/collections/config/types.js.map +1 -1
  135. package/dist/config/client.d.ts +12 -6
  136. package/dist/config/client.d.ts.map +1 -1
  137. package/dist/config/client.js +1 -49
  138. package/dist/config/client.js.map +1 -1
  139. package/dist/config/defaults.d.ts.map +1 -1
  140. package/dist/config/defaults.js +4 -0
  141. package/dist/config/defaults.js.map +1 -1
  142. package/dist/config/types.d.ts +111 -52
  143. package/dist/config/types.d.ts.map +1 -1
  144. package/dist/config/types.js.map +1 -1
  145. package/dist/exports/node.d.ts +0 -1
  146. package/dist/exports/node.d.ts.map +1 -1
  147. package/dist/exports/node.js +0 -1
  148. package/dist/exports/node.js.map +1 -1
  149. package/dist/exports/shared.d.ts +2 -1
  150. package/dist/exports/shared.d.ts.map +1 -1
  151. package/dist/exports/shared.js +2 -1
  152. package/dist/exports/shared.js.map +1 -1
  153. package/dist/fields/config/client.d.ts +3 -1642
  154. package/dist/fields/config/client.d.ts.map +1 -1
  155. package/dist/fields/config/client.js +1 -81
  156. package/dist/fields/config/client.js.map +1 -1
  157. package/dist/fields/config/sanitize.d.ts.map +1 -1
  158. package/dist/fields/config/sanitize.js +23 -22
  159. package/dist/fields/config/sanitize.js.map +1 -1
  160. package/dist/fields/config/types.d.ts +385 -56
  161. package/dist/fields/config/types.d.ts.map +1 -1
  162. package/dist/fields/config/types.js +3 -0
  163. package/dist/fields/config/types.js.map +1 -1
  164. package/dist/globals/config/client.d.ts +26 -14
  165. package/dist/globals/config/client.d.ts.map +1 -1
  166. package/dist/globals/config/client.js +1 -47
  167. package/dist/globals/config/client.js.map +1 -1
  168. package/dist/globals/config/types.d.ts +3 -3
  169. package/dist/globals/config/types.js.map +1 -1
  170. package/dist/index.d.ts +15 -11
  171. package/dist/index.d.ts.map +1 -1
  172. package/dist/index.js +7 -7
  173. package/dist/index.js.map +1 -1
  174. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  175. package/dist/uploads/getBaseFields.js +5 -2
  176. package/dist/uploads/getBaseFields.js.map +1 -1
  177. package/dist/uploads/types.d.ts +4 -0
  178. package/dist/uploads/types.d.ts.map +1 -1
  179. package/dist/uploads/types.js.map +1 -1
  180. package/dist/utilities/fieldSchemaToJSON.d.ts +4 -4
  181. package/dist/utilities/fieldSchemaToJSON.d.ts.map +1 -1
  182. package/dist/utilities/fieldSchemaToJSON.js +0 -10
  183. package/dist/utilities/fieldSchemaToJSON.js.map +1 -1
  184. package/dist/utilities/flattenTopLevelFields.d.ts +4 -3
  185. package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
  186. package/dist/utilities/flattenTopLevelFields.js +12 -7
  187. package/dist/utilities/flattenTopLevelFields.js.map +1 -1
  188. package/dist/utilities/getEntityPolicies.d.ts.map +1 -1
  189. package/dist/utilities/getEntityPolicies.js +5 -5
  190. package/dist/utilities/getEntityPolicies.js.map +1 -1
  191. package/dist/utilities/telemetry/conf/index.js.map +1 -1
  192. package/dist/versions/baseFields.js +1 -1
  193. package/dist/versions/baseFields.js.map +1 -1
  194. package/package.json +3 -10
  195. package/dist/admin/fields/index.d.ts +0 -65
  196. package/dist/admin/fields/index.d.ts.map +0 -1
  197. package/dist/admin/fields/index.js +0 -3
  198. package/dist/admin/fields/index.js.map +0 -1
  199. package/dist/admin/forms/FieldMap.d.ts +0 -23
  200. package/dist/admin/forms/FieldMap.d.ts.map +0 -1
  201. package/dist/admin/forms/FieldMap.js +0 -3
  202. package/dist/admin/forms/FieldMap.js.map +0 -1
  203. package/dist/admin/forms/FieldTypes.d.ts +0 -27
  204. package/dist/admin/forms/FieldTypes.d.ts.map +0 -1
  205. package/dist/admin/forms/FieldTypes.js +0 -3
  206. package/dist/admin/forms/FieldTypes.js.map +0 -1
  207. package/dist/bin/loader/clientExtensions.d.ts +0 -2
  208. package/dist/bin/loader/clientExtensions.d.ts.map +0 -1
  209. package/dist/bin/loader/clientExtensions.js +0 -13
  210. package/dist/bin/loader/clientExtensions.js.map +0 -1
  211. package/dist/bin/loader/compile.d.ts +0 -5
  212. package/dist/bin/loader/compile.d.ts.map +0 -1
  213. package/dist/bin/loader/compile.js +0 -27
  214. package/dist/bin/loader/compile.js.map +0 -1
  215. package/dist/bin/loader/ignores.d.ts +0 -2
  216. package/dist/bin/loader/ignores.d.ts.map +0 -1
  217. package/dist/bin/loader/ignores.js +0 -5
  218. package/dist/bin/loader/ignores.js.map +0 -1
  219. package/dist/bin/loader/index.d.ts +0 -34
  220. package/dist/bin/loader/index.d.ts.map +0 -1
  221. package/dist/bin/loader/index.js +0 -116
  222. package/dist/bin/loader/index.js.map +0 -1
  223. package/dist/bin/loader/read-default-tsconfig.d.ts +0 -29
  224. package/dist/bin/loader/read-default-tsconfig.d.ts.map +0 -1
  225. package/dist/bin/loader/read-default-tsconfig.js +0 -116
  226. package/dist/bin/loader/read-default-tsconfig.js.map +0 -1
  227. package/dist/bin/loader/resolveOriginalPath.d.ts +0 -10
  228. package/dist/bin/loader/resolveOriginalPath.d.ts.map +0 -1
  229. package/dist/bin/loader/resolveOriginalPath.js +0 -36
  230. package/dist/bin/loader/resolveOriginalPath.js.map +0 -1
  231. package/dist/utilities/importWithoutClientFiles.d.ts +0 -7
  232. package/dist/utilities/importWithoutClientFiles.d.ts.map +0 -1
  233. package/dist/utilities/importWithoutClientFiles.js +0 -47
  234. package/dist/utilities/importWithoutClientFiles.js.map +0 -1
@@ -1,14 +1,11 @@
1
- import type { DateField } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { DateFieldClient } from '../../fields/config/types.js';
2
3
  import type { DateFieldValidation } from '../../fields/validations.js';
3
4
  import type { ErrorComponent } from '../forms/Error.js';
4
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
6
  export type DateFieldProps = {
6
- date?: DateField['admin']['date'];
7
- name?: string;
8
- path?: string;
9
- placeholder?: DateField['admin']['placeholder'] | string;
10
- validate?: DateFieldValidation;
11
- width?: string;
7
+ readonly field: MarkOptional<DateFieldClient, 'type'>;
8
+ readonly validate?: DateFieldValidation;
12
9
  } & Omit<FormFieldBase, 'validate'>;
13
10
  export type DateFieldLabelComponent = LabelComponent<'date'>;
14
11
  export type DateFieldDescriptionComponent = DescriptionComponent<'date'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK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AAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Date.ts"],"sourcesContent":["import type { DateField } from '../../fields/config/types.js'\nimport type { DateFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type DateFieldProps = {\n date?: DateField['admin']['date']\n name?: string\n path?: string\n placeholder?: DateField['admin']['placeholder'] | string\n validate?: DateFieldValidation\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type DateFieldLabelComponent = LabelComponent<'date'>\n\nexport type DateFieldDescriptionComponent = DescriptionComponent<'date'>\n\nexport type DateFieldErrorComponent = ErrorComponent<'date'>\n"],"names":[],"mappings":"AAkBA,WAA4D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Date.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { DateFieldClient } from '../../fields/config/types.js'\nimport type { DateFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type DateFieldProps = {\n readonly field: MarkOptional<DateFieldClient, 'type'>\n readonly validate?: DateFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type DateFieldLabelComponent = LabelComponent<'date'>\n\nexport type DateFieldDescriptionComponent = DescriptionComponent<'date'>\n\nexport type DateFieldErrorComponent = ErrorComponent<'date'>\n"],"names":[],"mappings":"AAgBA,WAA4D"}
@@ -1,14 +1,12 @@
1
- import type { EmailField } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { EmailFieldClient } from '../../fields/config/types.js';
2
3
  import type { EmailFieldValidation } from '../../fields/validations.js';
3
4
  import type { ErrorComponent } from '../forms/Error.js';
4
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
6
  export type EmailFieldProps = {
6
- autoComplete?: string;
7
- name?: string;
8
- path?: string;
9
- placeholder?: EmailField['admin']['placeholder'];
10
- validate?: EmailFieldValidation;
11
- width?: string;
7
+ readonly autoComplete?: string;
8
+ readonly field: MarkOptional<EmailFieldClient, 'type'>;
9
+ readonly validate?: EmailFieldValidation;
12
10
  } & Omit<FormFieldBase, 'validate'>;
13
11
  export type EmailFieldLabelComponent = LabelComponent<'email'>;
14
12
  export type EmailFieldDescriptionComponent = DescriptionComponent<'email'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAA;IAChD,QAAQ,CAAC,EAAE,oBAAoB,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Email.ts"],"sourcesContent":["import type { EmailField } from '../../fields/config/types.js'\nimport type { EmailFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type EmailFieldProps = {\n autoComplete?: string\n name?: string\n path?: string\n placeholder?: EmailField['admin']['placeholder']\n validate?: EmailFieldValidation\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type EmailFieldLabelComponent = LabelComponent<'email'>\n\nexport type EmailFieldDescriptionComponent = DescriptionComponent<'email'>\n\nexport type EmailFieldErrorComponent = ErrorComponent<'email'>\n"],"names":[],"mappings":"AAkBA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Email.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { EmailFieldClient } from '../../fields/config/types.js'\nimport type { EmailFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type EmailFieldProps = {\n readonly autoComplete?: string\n readonly field: MarkOptional<EmailFieldClient, 'type'>\n readonly validate?: EmailFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type EmailFieldLabelComponent = LabelComponent<'email'>\n\nexport type EmailFieldDescriptionComponent = DescriptionComponent<'email'>\n\nexport type EmailFieldErrorComponent = ErrorComponent<'email'>\n"],"names":[],"mappings":"AAiBA,WAA8D"}
@@ -1,12 +1,9 @@
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { GroupFieldClient } from '../../fields/config/types.js';
1
3
  import type { ErrorComponent } from '../forms/Error.js';
2
- import type { FieldMap } from '../forms/FieldMap.js';
3
4
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
5
  export type GroupFieldProps = {
5
- fieldMap: FieldMap;
6
- forceRender?: boolean;
7
- hideGutter?: boolean;
8
- name?: string;
9
- width?: string;
6
+ readonly field: MarkOptional<GroupFieldClient, 'type'>;
10
7
  } & FormFieldBase;
11
8
  export type GroupFieldLabelComponent = LabelComponent<'group'>;
12
9
  export type GroupFieldDescriptionComponent = DescriptionComponent<'group'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;CACvD,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Group.ts"],"sourcesContent":["import type { ErrorComponent } from '../forms/Error.js'\nimport type { FieldMap } from '../forms/FieldMap.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type GroupFieldProps = {\n fieldMap: FieldMap\n forceRender?: boolean\n hideGutter?: boolean\n name?: string\n width?: string\n} & FormFieldBase\n\nexport type GroupFieldLabelComponent = LabelComponent<'group'>\n\nexport type GroupFieldDescriptionComponent = DescriptionComponent<'group'>\n\nexport type GroupFieldErrorComponent = ErrorComponent<'group'>\n"],"names":[],"mappings":"AAgBA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Group.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { GroupFieldClient } from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type GroupFieldProps = {\n readonly field: MarkOptional<GroupFieldClient, 'type'>\n} & FormFieldBase\n\nexport type GroupFieldLabelComponent = LabelComponent<'group'>\n\nexport type GroupFieldDescriptionComponent = DescriptionComponent<'group'>\n\nexport type GroupFieldErrorComponent = ErrorComponent<'group'>\n"],"names":[],"mappings":"AAcA,WAA8D"}
@@ -1,11 +1,13 @@
1
+ import type { ClientField } from '../../fields/config/client.js';
1
2
  import type { ErrorComponent } from '../forms/Error.js';
2
3
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
3
4
  export type HiddenFieldProps = {
4
- disableModifyingForm?: false;
5
- forceUsePathFromProps?: boolean;
6
- name?: string;
7
- path?: string;
8
- value?: unknown;
5
+ readonly disableModifyingForm?: false;
6
+ readonly field?: {
7
+ readonly name?: string;
8
+ } & Pick<ClientField, '_path'>;
9
+ readonly forceUsePathFromProps?: boolean;
10
+ readonly value?: unknown;
9
11
  } & FormFieldBase;
10
12
  export type HiddenFieldLabelComponent = LabelComponent<'hidden'>;
11
13
  export type HiddenFieldDescriptionComponent = DescriptionComponent<'hidden'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Hidden.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Hidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAA;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE5E,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
1
+ {"version":3,"file":"Hidden.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Hidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAA;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACf,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KACvB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;IAC9B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE5E,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Hidden.ts"],"sourcesContent":["import type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type HiddenFieldProps = {\n disableModifyingForm?: false\n forceUsePathFromProps?: boolean\n name?: string\n path?: string\n value?: unknown\n} & FormFieldBase\n\nexport type HiddenFieldLabelComponent = LabelComponent<'hidden'>\n\nexport type HiddenFieldDescriptionComponent = DescriptionComponent<'hidden'>\n\nexport type HiddenFieldErrorComponent = ErrorComponent<'hidden'>\n"],"names":[],"mappings":"AAeA,WAAgE"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Hidden.ts"],"sourcesContent":["import type { ClientField } from '../../fields/config/client.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type HiddenFieldProps = {\n readonly disableModifyingForm?: false\n readonly field?: {\n readonly name?: string\n } & Pick<ClientField, '_path'>\n readonly forceUsePathFromProps?: boolean\n readonly value?: unknown\n} & FormFieldBase\n\nexport type HiddenFieldLabelComponent = LabelComponent<'hidden'>\n\nexport type HiddenFieldDescriptionComponent = DescriptionComponent<'hidden'>\n\nexport type HiddenFieldErrorComponent = ErrorComponent<'hidden'>\n"],"names":[],"mappings":"AAiBA,WAAgE"}
@@ -1,14 +1,11 @@
1
- import type { JSONField } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { JSONFieldClient } from '../../fields/config/types.js';
2
3
  import type { JSONFieldValidation } from '../../fields/validations.js';
3
4
  import type { ErrorComponent } from '../forms/Error.js';
4
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
6
  export type JSONFieldProps = {
6
- editorOptions?: JSONField['admin']['editorOptions'];
7
- jsonSchema?: Record<string, unknown>;
8
- name?: string;
9
- path?: string;
10
- validate?: JSONFieldValidation;
11
- width?: string;
7
+ readonly field: MarkOptional<JSONFieldClient, 'type'>;
8
+ readonly validate?: JSONFieldValidation;
12
9
  } & Omit<FormFieldBase, 'validate'>;
13
10
  export type JSONFieldLabelComponent = LabelComponent<'json'>;
14
11
  export type JSONFieldDescriptionComponent = DescriptionComponent<'json'>;
@@ -1 +1 @@
1
- {"version":3,"file":"JSON.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/JSON.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,CAAA;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;I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/JSON.ts"],"sourcesContent":["import type { JSONField } from '../../fields/config/types.js'\nimport type { JSONFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type JSONFieldProps = {\n editorOptions?: JSONField['admin']['editorOptions']\n jsonSchema?: Record<string, unknown>\n name?: string\n path?: string\n validate?: JSONFieldValidation\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type JSONFieldLabelComponent = LabelComponent<'json'>\n\nexport type JSONFieldDescriptionComponent = DescriptionComponent<'json'>\n\nexport type JSONFieldErrorComponent = ErrorComponent<'json'>\n"],"names":[],"mappings":"AAkBA,WAA4D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/JSON.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { JSONFieldClient } from '../../fields/config/types.js'\nimport type { JSONFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type JSONFieldProps = {\n readonly field: MarkOptional<JSONFieldClient, 'type'>\n readonly validate?: JSONFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type JSONFieldLabelComponent = LabelComponent<'json'>\n\nexport type JSONFieldDescriptionComponent = DescriptionComponent<'json'>\n\nexport type JSONFieldErrorComponent = ErrorComponent<'json'>\n"],"names":[],"mappings":"AAgBA,WAA4D"}
@@ -1,19 +1,12 @@
1
- import type { NumberField } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { NumberFieldClient } from '../../fields/config/types.js';
2
3
  import type { NumberFieldValidation } from '../../fields/validations.js';
3
4
  import type { ErrorComponent } from '../forms/Error.js';
4
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
6
  export type NumberFieldProps = {
6
- hasMany?: boolean;
7
- max?: number;
8
- maxRows?: number;
9
- min?: number;
10
- name?: string;
11
- onChange?: (e: number) => void;
12
- path?: string;
13
- placeholder?: NumberField['admin']['placeholder'];
14
- step?: number;
15
- validate?: NumberFieldValidation;
16
- width?: string;
7
+ readonly field: MarkOptional<NumberFieldClient, 'type'>;
8
+ readonly onChange?: (e: number) => void;
9
+ readonly validate?: NumberFieldValidation;
17
10
  } & Omit<FormFieldBase, 'validate'>;
18
11
  export type NumberFieldLabelComponent = LabelComponent<'number'>;
19
12
  export type NumberFieldDescriptionComponent = DescriptionComponent<'number'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAA;IACjD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,qBAAqB,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE5E,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
1
+ {"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;IACvD,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAA;CAC1C,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE5E,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Number.ts"],"sourcesContent":["import type { NumberField } from '../../fields/config/types.js'\nimport type { NumberFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type NumberFieldProps = {\n hasMany?: boolean\n max?: number\n maxRows?: number\n min?: number\n name?: string\n onChange?: (e: number) => void\n path?: string\n placeholder?: NumberField['admin']['placeholder']\n step?: number\n validate?: NumberFieldValidation\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type NumberFieldLabelComponent = LabelComponent<'number'>\n\nexport type NumberFieldDescriptionComponent = DescriptionComponent<'number'>\n\nexport type NumberFieldErrorComponent = ErrorComponent<'number'>\n"],"names":[],"mappings":"AAuBA,WAAgE"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Number.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { NumberFieldClient } from '../../fields/config/types.js'\nimport type { NumberFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type NumberFieldProps = {\n readonly field: MarkOptional<NumberFieldClient, 'type'>\n readonly onChange?: (e: number) => void\n readonly validate?: NumberFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type NumberFieldLabelComponent = LabelComponent<'number'>\n\nexport type NumberFieldDescriptionComponent = DescriptionComponent<'number'>\n\nexport type NumberFieldErrorComponent = ErrorComponent<'number'>\n"],"names":[],"mappings":"AAiBA,WAAgE"}
@@ -1,13 +1,11 @@
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { PointFieldClient } from '../../fields/config/types.js';
1
3
  import type { PointFieldValidation } from '../../fields/validations.js';
2
4
  import type { ErrorComponent } from '../forms/Error.js';
3
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
6
  export type PointFieldProps = {
5
- name?: string;
6
- path?: string;
7
- placeholder?: string;
8
- step?: number;
9
- validate?: PointFieldValidation;
10
- width?: string;
7
+ readonly field: MarkOptional<PointFieldClient, 'type'>;
8
+ readonly validate?: PointFieldValidation;
11
9
  } & Omit<FormFieldBase, 'validate'>;
12
10
  export type PointFieldLabelComponent = LabelComponent<'point'>;
13
11
  export type PointFieldDescriptionComponent = DescriptionComponent<'point'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,oBAAoB,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Point.ts"],"sourcesContent":["import type { PointFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type PointFieldProps = {\n name?: string\n path?: string\n placeholder?: string\n step?: number\n validate?: PointFieldValidation\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type PointFieldLabelComponent = LabelComponent<'point'>\n\nexport type PointFieldDescriptionComponent = DescriptionComponent<'point'>\n\nexport type PointFieldErrorComponent = ErrorComponent<'point'>\n"],"names":[],"mappings":"AAiBA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Point.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { PointFieldClient } from '../../fields/config/types.js'\nimport type { PointFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type PointFieldProps = {\n readonly field: MarkOptional<PointFieldClient, 'type'>\n readonly validate?: PointFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type PointFieldLabelComponent = LabelComponent<'point'>\n\nexport type PointFieldDescriptionComponent = DescriptionComponent<'point'>\n\nexport type PointFieldErrorComponent = ErrorComponent<'point'>\n"],"names":[],"mappings":"AAgBA,WAA8D"}
@@ -1,16 +1,13 @@
1
- import type { Option } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { RadioFieldClient } from '../../fields/config/types.js';
2
3
  import type { RadioFieldValidation } from '../../fields/validations.js';
3
4
  import type { ErrorComponent } from '../forms/Error.js';
4
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
6
  export type RadioFieldProps = {
6
- layout?: 'horizontal' | 'vertical';
7
- name?: string;
8
- onChange?: OnChange;
9
- options?: Option[];
10
- path?: string;
11
- validate?: RadioFieldValidation;
12
- value?: string;
13
- width?: string;
7
+ readonly field: MarkOptional<RadioFieldClient, 'type'>;
8
+ readonly onChange?: OnChange;
9
+ readonly validate?: RadioFieldValidation;
10
+ readonly value?: string;
14
11
  } & Omit<FormFieldBase, 'validate'>;
15
12
  export type OnChange<T = string> = (value: T) => void;
16
13
  export type RadioFieldLabelComponent = LabelComponent<'radio'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Radio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CA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AAC,CAAC,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;AAErD,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Radio.ts"],"sourcesContent":["import type { Option } from '../../fields/config/types.js'\nimport type { RadioFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RadioFieldProps = {\n layout?: 'horizontal' | 'vertical'\n name?: string\n onChange?: OnChange\n options?: Option[]\n path?: string\n validate?: RadioFieldValidation\n value?: string\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type OnChange<T = string> = (value: T) => void\n\nexport type RadioFieldLabelComponent = LabelComponent<'radio'>\n\nexport type RadioFieldDescriptionComponent = DescriptionComponent<'radio'>\n\nexport type RadioFieldErrorComponent = ErrorComponent<'radio'>\n"],"names":[],"mappings":"AAsBA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Radio.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RadioFieldClient } from '../../fields/config/types.js'\nimport type { RadioFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RadioFieldProps = {\n readonly field: MarkOptional<RadioFieldClient, 'type'>\n readonly onChange?: OnChange\n readonly validate?: RadioFieldValidation\n readonly value?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type OnChange<T = string> = (value: T) => void\n\nexport type RadioFieldLabelComponent = LabelComponent<'radio'>\n\nexport type RadioFieldDescriptionComponent = DescriptionComponent<'radio'>\n\nexport type RadioFieldErrorComponent = ErrorComponent<'radio'>\n"],"names":[],"mappings":"AAoBA,WAA8D"}
@@ -1,16 +1,11 @@
1
- import type { RelationshipField } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { RelationshipFieldClient } from '../../fields/config/types.js';
2
3
  import type { RelationshipFieldValidation } from '../../fields/validations.js';
3
4
  import type { ErrorComponent } from '../forms/Error.js';
4
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
6
  export type RelationshipFieldProps = {
6
- allowCreate?: RelationshipField['admin']['allowCreate'];
7
- hasMany?: boolean;
8
- isSortable?: boolean;
9
- name: string;
10
- relationTo?: RelationshipField['relationTo'];
11
- sortOptions?: RelationshipField['admin']['sortOptions'];
12
- validate?: RelationshipFieldValidation;
13
- width?: string;
7
+ readonly field: MarkOptional<RelationshipFieldClient, 'type'>;
8
+ readonly validate?: RelationshipFieldValidation;
14
9
  } & Omit<FormFieldBase, 'validate'>;
15
10
  export type RelationshipFieldLabelComponent = LabelComponent<'relationship'>;
16
11
  export type RelationshipFieldDescriptionComponent = DescriptionComponent<'relationship'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Relationship.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Relationship.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAA;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,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B,CAAC,cAAc,CAAC,CAAA;AAExF,MAAM,MAAM,+BAA+B,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Relationship.ts"],"sourcesContent":["import type { RelationshipField } from '../../fields/config/types.js'\nimport type { RelationshipFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RelationshipFieldProps = {\n allowCreate?: RelationshipField['admin']['allowCreate']\n hasMany?: boolean\n isSortable?: boolean\n name: string\n relationTo?: RelationshipField['relationTo']\n sortOptions?: RelationshipField['admin']['sortOptions']\n validate?: RelationshipFieldValidation\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type RelationshipFieldLabelComponent = LabelComponent<'relationship'>\n\nexport type RelationshipFieldDescriptionComponent = DescriptionComponent<'relationship'>\n\nexport type RelationshipFieldErrorComponent = ErrorComponent<'relationship'>\n"],"names":[],"mappings":"AAoBA,WAA4E"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Relationship.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RelationshipFieldClient } from '../../fields/config/types.js'\nimport type { RelationshipFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RelationshipFieldProps = {\n readonly field: MarkOptional<RelationshipFieldClient, 'type'>\n readonly validate?: RelationshipFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type RelationshipFieldLabelComponent = LabelComponent<'relationship'>\n\nexport type RelationshipFieldDescriptionComponent = DescriptionComponent<'relationship'>\n\nexport type RelationshipFieldErrorComponent = ErrorComponent<'relationship'>\n"],"names":[],"mappings":"AAgBA,WAA4E"}
@@ -1,12 +1,11 @@
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { RichTextFieldClient } from '../../fields/config/types.js';
1
3
  import type { RichTextFieldValidation } from '../../fields/validations.js';
2
4
  import type { ErrorComponent } from '../forms/Error.js';
3
- import type { MappedField } from '../forms/FieldMap.js';
4
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
- export type RichTextComponentProps = {
6
- name: string;
7
- richTextComponentMap?: Map<string, MappedField[] | React.ReactNode>;
8
- validate?: RichTextFieldValidation;
9
- width?: string;
6
+ export type RichTextFieldProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = {
7
+ readonly field: MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>;
8
+ readonly validate?: RichTextFieldValidation;
10
9
  } & Omit<FormFieldBase, 'validate'>;
11
10
  export type RichTextFieldLabelComponent = LabelComponent<'richText'>;
12
11
  export type RichTextFieldDescriptionComponent = DescriptionComponent<'richText'>;
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/RichText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,oBAAoB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAA;IACnE,QAAQ,CAAC,EAAE,uBAAuB,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAEpE,MAAM,MAAM,iCAAiC,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;AAEhF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/RichText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,kBAAkB,CAC5B,MAAM,SAAS,MAAM,GAAG,GAAG,EAC3B,aAAa,GAAG,GAAG,EACnB,gBAAgB,GAAG,MAAM,IACvB;IACF,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,mBAAmB,CAAC,MAAM,EAAE,aAAa,EAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAA;IAClG,QAAQ,CAAC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;CAC5C,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAEpE,MAAM,MAAM,iCAAiC,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;AAEhF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/RichText.ts"],"sourcesContent":["import type { RichTextFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { MappedField } from '../forms/FieldMap.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RichTextComponentProps = {\n name: string\n richTextComponentMap?: Map<string, MappedField[] | React.ReactNode>\n validate?: RichTextFieldValidation\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type RichTextFieldLabelComponent = LabelComponent<'richText'>\n\nexport type RichTextFieldDescriptionComponent = DescriptionComponent<'richText'>\n\nexport type RichTextFieldErrorComponent = ErrorComponent<'richText'>\n"],"names":[],"mappings":"AAgBA,WAAoE"}
1
+ {"version":3,"sources":["../../../src/admin/fields/RichText.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RichTextFieldClient } from '../../fields/config/types.js'\nimport type { RichTextFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RichTextFieldProps<\n TValue extends object = any,\n TAdapterProps = any,\n TExtraProperties = object,\n> = {\n readonly field: MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>\n readonly validate?: RichTextFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type RichTextFieldLabelComponent = LabelComponent<'richText'>\n\nexport type RichTextFieldDescriptionComponent = DescriptionComponent<'richText'>\n\nexport type RichTextFieldErrorComponent = ErrorComponent<'richText'>\n"],"names":[],"mappings":"AAoBA,WAAoE"}
@@ -1,12 +1,11 @@
1
1
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from 'payload';
2
+ import type { MarkOptional } from 'ts-essentials';
3
+ import type { RowFieldClient } from '../../fields/config/types.js';
2
4
  import type { ErrorComponent } from '../forms/Error.js';
3
- import type { FieldMap } from '../forms/FieldMap.js';
4
5
  export type RowFieldProps = {
5
- fieldMap: FieldMap;
6
+ field: MarkOptional<RowFieldClient, 'type'>;
6
7
  forceRender?: boolean;
7
8
  indexPath: string;
8
- path?: string;
9
- width?: string;
10
9
  } & FormFieldBase;
11
10
  export type RowFieldLabelComponent = LabelComponent<'row'>;
12
11
  export type RowFieldDescriptionComponent = DescriptionComponent<'row'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAElF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,QAAQ,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAE1D,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAA;AAEtE,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA"}
1
+ {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;CAClB,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAE1D,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAA;AAEtE,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Row.ts"],"sourcesContent":["import type { DescriptionComponent, FormFieldBase, LabelComponent } from 'payload'\n\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { FieldMap } from '../forms/FieldMap.js'\n\nexport type RowFieldProps = {\n fieldMap: FieldMap\n forceRender?: boolean\n indexPath: string\n path?: string\n width?: string\n} & FormFieldBase\n\nexport type RowFieldLabelComponent = LabelComponent<'row'>\n\nexport type RowFieldDescriptionComponent = DescriptionComponent<'row'>\n\nexport type RowFieldErrorComponent = ErrorComponent<'row'>\n"],"names":[],"mappings":"AAiBA,WAA0D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Row.ts"],"sourcesContent":["import type { DescriptionComponent, FormFieldBase, LabelComponent } from 'payload'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { RowFieldClient } from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\n\nexport type RowFieldProps = {\n field: MarkOptional<RowFieldClient, 'type'>\n forceRender?: boolean\n indexPath: string\n} & FormFieldBase\n\nexport type RowFieldLabelComponent = LabelComponent<'row'>\n\nexport type RowFieldDescriptionComponent = DescriptionComponent<'row'>\n\nexport type RowFieldErrorComponent = ErrorComponent<'row'>\n"],"names":[],"mappings":"AAgBA,WAA0D"}
@@ -1,18 +1,13 @@
1
- import type { Option } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { SelectFieldClient } from '../../fields/config/types.js';
2
3
  import type { SelectFieldValidation } from '../../fields/validations.js';
3
4
  import type { ErrorComponent } from '../forms/Error.js';
4
5
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
6
  export type SelectFieldProps = {
6
- hasMany?: boolean;
7
- isClearable?: boolean;
8
- isSortable?: boolean;
9
- name?: string;
10
- onChange?: (e: string | string[]) => void;
11
- options?: Option[];
12
- path?: string;
13
- validate?: SelectFieldValidation;
14
- value?: string;
15
- width?: string;
7
+ readonly field: MarkOptional<SelectFieldClient, 'type'>;
8
+ readonly onChange?: (e: string | string[]) => void;
9
+ readonly validate?: SelectFieldValidation;
10
+ readonly value?: string;
16
11
  } & Omit<FormFieldBase, 'validate'>;
17
12
  export type SelectFieldLabelComponent = LabelComponent<'select'>;
18
13
  export type SelectFieldDescriptionComponent = DescriptionComponent<'select'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,qBAAqB,CAAA;IAChC,KAAK,CAA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,CAAC,QAAQ,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Select.ts"],"sourcesContent":["import type { Option } from '../../fields/config/types.js'\nimport type { SelectFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type SelectFieldProps = {\n hasMany?: boolean\n isClearable?: boolean\n isSortable?: boolean\n name?: string\n onChange?: (e: string | string[]) => void\n options?: Option[]\n path?: string\n validate?: SelectFieldValidation\n value?: string\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type SelectFieldLabelComponent = LabelComponent<'select'>\n\nexport type SelectFieldDescriptionComponent = DescriptionComponent<'select'>\n\nexport type SelectFieldErrorComponent = ErrorComponent<'select'>\n"],"names":[],"mappings":"AAsBA,WAAgE"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Select.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { SelectFieldClient } from '../../fields/config/types.js'\nimport type { SelectFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type SelectFieldProps = {\n readonly field: MarkOptional<SelectFieldClient, 'type'>\n readonly onChange?: (e: string | string[]) => void\n readonly validate?: SelectFieldValidation\n readonly value?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type SelectFieldLabelComponent = LabelComponent<'select'>\n\nexport type SelectFieldDescriptionComponent = DescriptionComponent<'select'>\n\nexport type SelectFieldErrorComponent = ErrorComponent<'select'>\n"],"names":[],"mappings":"AAkBA,WAAgE"}
@@ -1,19 +1,15 @@
1
- import type { TabsField } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { ClientField, NamedTab, TabsFieldClient, UnnamedTab } from '../../fields/config/types.js';
2
3
  import type { ErrorComponent } from '../forms/Error.js';
3
- import type { FieldMap } from '../forms/FieldMap.js';
4
4
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
+ export type ClientTab = ({
6
+ fields: ClientField[];
7
+ } & Omit<NamedTab, 'fields'>) | ({
8
+ fields: ClientField[];
9
+ } & Omit<UnnamedTab, 'fields'>);
5
10
  export type TabsFieldProps = {
6
- forceRender?: boolean;
7
- name?: string;
8
- path?: string;
9
- tabs?: MappedTab[];
10
- width?: string;
11
+ readonly field: MarkOptional<TabsFieldClient, 'type'>;
11
12
  } & FormFieldBase;
12
- export type MappedTab = {
13
- fieldMap?: FieldMap;
14
- label: TabsField['tabs'][0]['label'];
15
- name?: string;
16
- };
17
13
  export type TabsFieldLabelComponent = LabelComponent<'tabs'>;
18
14
  export type TabsFieldDescriptionComponent = DescriptionComponent<'tabs'>;
19
15
  export type TabsFieldErrorComponent = ErrorComponent<'tabs'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,KAAK,EAAE,SAAS,CA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1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Tabs.ts"],"sourcesContent":["import type { TabsField } from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { FieldMap } from '../forms/FieldMap.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type TabsFieldProps = {\n forceRender?: boolean\n name?: string\n path?: string\n tabs?: MappedTab[]\n width?: string\n} & FormFieldBase\n\nexport type MappedTab = {\n fieldMap?: FieldMap\n label: TabsField['tabs'][0]['label']\n name?: string\n}\n\nexport type TabsFieldLabelComponent = LabelComponent<'tabs'>\n\nexport type TabsFieldDescriptionComponent = DescriptionComponent<'tabs'>\n\nexport type TabsFieldErrorComponent = ErrorComponent<'tabs'>\n"],"names":[],"mappings":"AAuBA,WAA4D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Tabs.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type {\n ClientField,\n NamedTab,\n TabsFieldClient,\n UnnamedTab,\n} from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type ClientTab =\n | ({ fields: ClientField[] } & Omit<NamedTab, 'fields'>)\n | ({ fields: ClientField[] } & Omit<UnnamedTab, 'fields'>)\n\nexport type TabsFieldProps = {\n readonly field: MarkOptional<TabsFieldClient, 'type'>\n} & FormFieldBase\n\nexport type TabsFieldLabelComponent = LabelComponent<'tabs'>\n\nexport type TabsFieldDescriptionComponent = DescriptionComponent<'tabs'>\n\nexport type TabsFieldErrorComponent = ErrorComponent<'tabs'>\n"],"names":[],"mappings":"AAuBA,WAA4D"}
@@ -1,20 +1,14 @@
1
- import type { TextField } from '../../fields/config/types.js';
1
+ import type React from 'react';
2
+ import type { MarkOptional } from 'ts-essentials';
3
+ import type { TextFieldClient } from '../../fields/config/types.js';
2
4
  import type { TextFieldValidation } from '../../fields/validations.js';
3
5
  import type { ErrorComponent } from '../forms/Error.js';
4
6
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
7
  export type TextFieldProps = {
6
- hasMany?: boolean;
7
- inputRef?: React.MutableRefObject<HTMLInputElement>;
8
- maxLength?: number;
9
- maxRows?: number;
10
- minLength?: number;
11
- minRows?: number;
12
- name?: string;
13
- onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
14
- path?: string;
15
- placeholder?: TextField['admin']['placeholder'];
16
- validate?: TextFieldValidation;
17
- width?: string;
8
+ readonly field: MarkOptional<TextFieldClient, 'type'>;
9
+ readonly inputRef?: React.RefObject<HTMLInputElement>;
10
+ readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
11
+ readonly validate?: TextFieldValidation;
18
12
  } & Omit<FormFieldBase, 'validate'>;
19
13
  export type TextFieldLabelComponent = LabelComponent<'text'>;
20
14
  export type TextFieldDescriptionComponent = DescriptionComponent<'text'>;
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAA;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAA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CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Text.ts"],"sourcesContent":["import type { TextField } from '../../fields/config/types.js'\nimport type { TextFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type TextFieldProps = {\n hasMany?: boolean\n inputRef?: React.MutableRefObject<HTMLInputElement>\n maxLength?: number\n maxRows?: number\n minLength?: number\n minRows?: number\n name?: string\n onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n path?: string\n placeholder?: TextField['admin']['placeholder']\n validate?: TextFieldValidation\n width?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type TextFieldLabelComponent = LabelComponent<'text'>\n\nexport type TextFieldDescriptionComponent = DescriptionComponent<'text'>\n\nexport type TextFieldErrorComponent = ErrorComponent<'text'>\n"],"names":[],"mappings":"AAwBA,WAA4D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Text.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextFieldClient } from '../../fields/config/types.js'\nimport type { TextFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type TextFieldProps = {\n readonly field: MarkOptional<TextFieldClient, 'type'>\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type TextFieldLabelComponent = LabelComponent<'text'>\n\nexport type TextFieldDescriptionComponent = DescriptionComponent<'text'>\n\nexport type TextFieldErrorComponent = ErrorComponent<'text'>\n"],"names":[],"mappings":"AAmBA,WAA4D"}
@@ -1,16 +1,14 @@
1
- import type { TextareaField } from '../../fields/config/types.js';
1
+ import type React from 'react';
2
+ import type { MarkOptional } from 'ts-essentials';
3
+ import type { TextareaFieldClient } from '../../fields/config/types.js';
2
4
  import type { TextareaFieldValidation } from '../../fields/validations.js';
3
5
  import type { ErrorComponent } from '../forms/Error.js';
4
6
  import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
7
  export type TextareaFieldProps = {
6
- maxLength?: number;
7
- minLength?: number;
8
- name?: string;
9
- path?: string;
10
- placeholder?: TextareaField['admin']['placeholder'];
11
- rows?: number;
12
- validate?: TextareaFieldValidation;
13
- width?: string;
8
+ readonly field: MarkOptional<TextareaFieldClient, 'type'>;
9
+ readonly inputRef?: React.Ref<HTMLInputElement>;
10
+ readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
11
+ readonly validate?: TextareaFieldValidation;
14
12
  } & Omit<FormFieldBase, 'validate'>;
15
13
  export type TextareaFieldLabelComponent = LabelComponent<'textarea'>;
16
14
  export type TextareaFieldDescriptionComponent = DescriptionComponent<'textarea'>;