@payloadcms/ui 3.68.0-internal-debug.2eb12b9 → 3.68.0-internal-debug.185cc5f

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 (253) hide show
  1. package/dist/elements/AnimateHeight/usePatchAnimateHeight.js +2 -2
  2. package/dist/elements/AnimateHeight/usePatchAnimateHeight.js.map +1 -1
  3. package/dist/elements/Autosave/index.js +1 -0
  4. package/dist/elements/Autosave/index.js.map +1 -1
  5. package/dist/elements/BulkUpload/EditMany/index.js +2 -2
  6. package/dist/elements/BulkUpload/EditMany/index.js.map +1 -1
  7. package/dist/elements/BulkUpload/FormsManager/index.js +8 -8
  8. package/dist/elements/BulkUpload/FormsManager/index.js.map +1 -1
  9. package/dist/elements/BulkUpload/index.js +12 -1
  10. package/dist/elements/BulkUpload/index.js.map +1 -1
  11. package/dist/elements/Button/index.js +2 -2
  12. package/dist/elements/Button/index.js.map +1 -1
  13. package/dist/elements/Button/types.js +13 -1
  14. package/dist/elements/Button/types.js.map +1 -1
  15. package/dist/elements/Card/index.js +5 -1
  16. package/dist/elements/Card/index.js.map +1 -1
  17. package/dist/elements/CodeEditor/CodeEditor.js +2 -2
  18. package/dist/elements/CodeEditor/CodeEditor.js.map +1 -1
  19. package/dist/elements/CodeEditor/types.js +3 -1
  20. package/dist/elements/CodeEditor/types.js.map +1 -1
  21. package/dist/elements/Collapsible/index.js +8 -1
  22. package/dist/elements/Collapsible/index.js.map +1 -1
  23. package/dist/elements/Combobox/index.js +6 -0
  24. package/dist/elements/Combobox/index.js.map +1 -1
  25. package/dist/elements/DatePicker/DatePicker.js +1 -0
  26. package/dist/elements/DatePicker/DatePicker.js.map +1 -1
  27. package/dist/elements/DatePicker/getFormattedLocale.js +1 -0
  28. package/dist/elements/DatePicker/getFormattedLocale.js.map +1 -1
  29. package/dist/elements/DeleteMany/index.js +25 -1
  30. package/dist/elements/DeleteMany/index.js.map +1 -1
  31. package/dist/elements/DocumentControls/index.js +1 -1
  32. package/dist/elements/DocumentControls/index.js.map +1 -1
  33. package/dist/elements/DocumentDrawer/Provider.js +5 -1
  34. package/dist/elements/DocumentDrawer/Provider.js.map +1 -1
  35. package/dist/elements/DocumentDrawer/types.js +11 -1
  36. package/dist/elements/DocumentDrawer/types.js.map +1 -1
  37. package/dist/elements/DraggableSortable/useDraggableSortable/index.js +1 -0
  38. package/dist/elements/DraggableSortable/useDraggableSortable/index.js.map +1 -1
  39. package/dist/elements/Drawer/index.js +3 -1
  40. package/dist/elements/Drawer/index.js.map +1 -1
  41. package/dist/elements/EditMany/DrawerContent.js +15 -1
  42. package/dist/elements/EditMany/DrawerContent.js.map +1 -1
  43. package/dist/elements/EditMany/index.js +3 -1
  44. package/dist/elements/EditMany/index.js.map +1 -1
  45. package/dist/elements/FolderView/Drawers/MoveToFolder/index.js +8 -1
  46. package/dist/elements/FolderView/Drawers/MoveToFolder/index.js.map +1 -1
  47. package/dist/elements/FolderView/FolderFileCard/index.js +1 -0
  48. package/dist/elements/FolderView/FolderFileCard/index.js.map +1 -1
  49. package/dist/elements/FolderView/MoveDocToFolder/index.js +2 -3
  50. package/dist/elements/FolderView/MoveDocToFolder/index.js.map +1 -1
  51. package/dist/elements/HTMLDiff/diff/index.js +24 -3
  52. package/dist/elements/HTMLDiff/diff/index.js.map +1 -1
  53. package/dist/elements/HydrateAuthProvider/index.js +6 -1
  54. package/dist/elements/HydrateAuthProvider/index.js.map +1 -1
  55. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js +3 -1
  56. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js.map +1 -1
  57. package/dist/elements/Link/index.js +5 -1
  58. package/dist/elements/Link/index.js.map +1 -1
  59. package/dist/elements/ListControls/types.js +7 -1
  60. package/dist/elements/ListControls/types.js.map +1 -1
  61. package/dist/elements/ListDrawer/DrawerContent.js +2 -2
  62. package/dist/elements/ListDrawer/DrawerContent.js.map +1 -1
  63. package/dist/elements/ListDrawer/Provider.js +8 -1
  64. package/dist/elements/ListDrawer/Provider.js.map +1 -1
  65. package/dist/elements/ListDrawer/index.js +2 -1
  66. package/dist/elements/ListDrawer/index.js.map +1 -1
  67. package/dist/elements/ListDrawer/types.js +5 -1
  68. package/dist/elements/ListDrawer/types.js.map +1 -1
  69. package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.js +5 -1
  70. package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.js.map +1 -1
  71. package/dist/elements/ListSelection/index.js +11 -1
  72. package/dist/elements/ListSelection/index.js.map +1 -1
  73. package/dist/elements/LivePreview/Toolbar/Controls/index.js +1 -1
  74. package/dist/elements/LivePreview/Toolbar/Controls/index.js.map +1 -1
  75. package/dist/elements/Logout/index.js +5 -1
  76. package/dist/elements/Logout/index.js.map +1 -1
  77. package/dist/elements/Pill/index.js +5 -2
  78. package/dist/elements/Pill/index.js.map +1 -1
  79. package/dist/elements/PublishMany/index.js +3 -1
  80. package/dist/elements/PublishMany/index.js.map +1 -1
  81. package/dist/elements/QueryPresets/QueryPresetBar/index.js +1 -2
  82. package/dist/elements/QueryPresets/QueryPresetBar/index.js.map +1 -1
  83. package/dist/elements/ReactSelect/index.js +2 -2
  84. package/dist/elements/ReactSelect/index.js.map +1 -1
  85. package/dist/elements/ReactSelect/types.js +8 -1
  86. package/dist/elements/ReactSelect/types.js.map +1 -1
  87. package/dist/elements/RelationshipTable/index.js +2 -2
  88. package/dist/elements/RelationshipTable/index.js.map +1 -1
  89. package/dist/elements/RestoreMany/index.js +1 -0
  90. package/dist/elements/RestoreMany/index.js.map +1 -1
  91. package/dist/elements/SaveButton/index.js +1 -2
  92. package/dist/elements/SaveButton/index.js.map +1 -1
  93. package/dist/elements/SaveDraftButton/index.js +1 -2
  94. package/dist/elements/SaveDraftButton/index.js.map +1 -1
  95. package/dist/elements/SearchFilter/types.js +19 -1
  96. package/dist/elements/SearchFilter/types.js.map +1 -1
  97. package/dist/elements/Status/index.js +2 -2
  98. package/dist/elements/Status/index.js.map +1 -1
  99. package/dist/elements/StepNav/index.js +5 -1
  100. package/dist/elements/StepNav/index.js.map +1 -1
  101. package/dist/elements/Table/DefaultCell/fields/Select/index.js +4 -4
  102. package/dist/elements/Table/DefaultCell/fields/Select/index.js.map +1 -1
  103. package/dist/elements/Table/DefaultCell/index.js +2 -1
  104. package/dist/elements/Table/DefaultCell/index.js.map +1 -1
  105. package/dist/elements/Table/RelationshipProvider/index.js +3 -0
  106. package/dist/elements/Table/RelationshipProvider/index.js.map +1 -1
  107. package/dist/elements/Thumbnail/createThumbnail.js +12 -12
  108. package/dist/elements/Thumbnail/createThumbnail.js.map +1 -1
  109. package/dist/elements/Tooltip/index.js +3 -1
  110. package/dist/elements/Tooltip/index.js.map +1 -1
  111. package/dist/elements/UnpublishMany/index.js +3 -1
  112. package/dist/elements/UnpublishMany/index.js.map +1 -1
  113. package/dist/elements/Upload/index.js +8 -8
  114. package/dist/elements/Upload/index.js.map +1 -1
  115. package/dist/elements/WhereBuilder/Condition/Number/index.js +1 -0
  116. package/dist/elements/WhereBuilder/Condition/Number/index.js.map +1 -1
  117. package/dist/elements/WhereBuilder/Condition/Relationship/index.js +5 -6
  118. package/dist/elements/WhereBuilder/Condition/Relationship/index.js.map +1 -1
  119. package/dist/elements/WhereBuilder/Condition/Text/index.js +1 -0
  120. package/dist/elements/WhereBuilder/Condition/Text/index.js.map +1 -1
  121. package/dist/elements/WhereBuilder/index.js +2 -2
  122. package/dist/elements/WhereBuilder/index.js.map +1 -1
  123. package/dist/exports/client/index.js +26 -2
  124. package/dist/exports/client/index.js.map +1 -1
  125. package/dist/exports/shared/index.js +2 -1
  126. package/dist/exports/shared/index.js.map +1 -1
  127. package/dist/fields/Blocks/BlockSelector/index.js +3 -1
  128. package/dist/fields/Blocks/BlockSelector/index.js.map +1 -1
  129. package/dist/fields/Email/index.js +1 -1
  130. package/dist/fields/Email/index.js.map +1 -1
  131. package/dist/fields/Group/index.js +1 -1
  132. package/dist/fields/Group/index.js.map +1 -1
  133. package/dist/fields/Number/index.js +5 -3
  134. package/dist/fields/Number/index.js.map +1 -1
  135. package/dist/fields/Password/types.js +11 -1
  136. package/dist/fields/Password/types.js.map +1 -1
  137. package/dist/fields/Point/index.js +2 -2
  138. package/dist/fields/Point/index.js.map +1 -1
  139. package/dist/fields/Relationship/select-components/MultiValueLabel/index.js +4 -1
  140. package/dist/fields/Relationship/select-components/MultiValueLabel/index.js.map +1 -1
  141. package/dist/fields/Relationship/select-components/SingleValue/index.js +4 -1
  142. package/dist/fields/Relationship/select-components/SingleValue/index.js.map +1 -1
  143. package/dist/fields/Text/index.js +3 -2
  144. package/dist/fields/Text/index.js.map +1 -1
  145. package/dist/fields/Upload/Input.js +3 -1
  146. package/dist/fields/Upload/Input.js.map +1 -1
  147. package/dist/fields/Upload/types.js +1 -0
  148. package/dist/fields/Upload/types.js.map +1 -1
  149. package/dist/fields/shared/index.js +2 -3
  150. package/dist/fields/shared/index.js.map +1 -1
  151. package/dist/forms/Form/fieldReducer.js +2 -1
  152. package/dist/forms/Form/fieldReducer.js.map +1 -1
  153. package/dist/forms/Form/index.js +12 -9
  154. package/dist/forms/Form/index.js.map +1 -1
  155. package/dist/forms/Form/mergeServerFormState.js +11 -3
  156. package/dist/forms/Form/mergeServerFormState.js.map +1 -1
  157. package/dist/forms/Form/reduceToSerializableFields.js +2 -2
  158. package/dist/forms/Form/reduceToSerializableFields.js.map +1 -1
  159. package/dist/forms/Form/types.js +52 -1
  160. package/dist/forms/Form/types.js.map +1 -1
  161. package/dist/forms/NullifyField/index.js +2 -1
  162. package/dist/forms/NullifyField/index.js.map +1 -1
  163. package/dist/forms/WatchChildErrors/index.js +6 -1
  164. package/dist/forms/WatchChildErrors/index.js.map +1 -1
  165. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js +20 -0
  166. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js.map +1 -1
  167. package/dist/forms/fieldSchemasToFormState/index.js +33 -1
  168. package/dist/forms/fieldSchemasToFormState/index.js.map +1 -1
  169. package/dist/forms/fieldSchemasToFormState/isRowCollapsed.js +2 -2
  170. package/dist/forms/fieldSchemasToFormState/isRowCollapsed.js.map +1 -1
  171. package/dist/forms/fieldSchemasToFormState/iterateFields.js +16 -0
  172. package/dist/forms/fieldSchemasToFormState/iterateFields.js.map +1 -1
  173. package/dist/forms/fieldSchemasToFormState/renderField.js +2 -2
  174. package/dist/forms/fieldSchemasToFormState/renderField.js.map +1 -1
  175. package/dist/forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js +22 -1
  176. package/dist/forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js.map +1 -1
  177. package/dist/forms/fieldSchemasToFormState/types.js +5 -1
  178. package/dist/forms/fieldSchemasToFormState/types.js.map +1 -1
  179. package/dist/forms/useField/index.js +1 -0
  180. package/dist/forms/useField/index.js.map +1 -1
  181. package/dist/forms/useField/types.js +19 -1
  182. package/dist/forms/useField/types.js.map +1 -1
  183. package/dist/hooks/useControllableState.js +9 -1
  184. package/dist/hooks/useControllableState.js.map +1 -1
  185. package/dist/hooks/useDelayedRender.js +3 -1
  186. package/dist/hooks/useDelayedRender.js.map +1 -1
  187. package/dist/hooks/useHotkey.js +2 -2
  188. package/dist/hooks/useHotkey.js.map +1 -1
  189. package/dist/hooks/usePayloadAPI.js +3 -4
  190. package/dist/hooks/usePayloadAPI.js.map +1 -1
  191. package/dist/hooks/usePopupWindow.js +2 -2
  192. package/dist/hooks/usePopupWindow.js.map +1 -1
  193. package/dist/hooks/useQueue.js +15 -7
  194. package/dist/hooks/useQueue.js.map +1 -1
  195. package/dist/hooks/useResize.js +4 -3
  196. package/dist/hooks/useResize.js.map +1 -1
  197. package/dist/providers/Auth/index.js +35 -3
  198. package/dist/providers/Auth/index.js.map +1 -1
  199. package/dist/providers/Config/index.js +10 -1
  200. package/dist/providers/Config/index.js.map +1 -1
  201. package/dist/providers/DocumentInfo/index.js +6 -7
  202. package/dist/providers/DocumentInfo/index.js.map +1 -1
  203. package/dist/providers/DocumentInfo/types.js +25 -1
  204. package/dist/providers/DocumentInfo/types.js.map +1 -1
  205. package/dist/providers/Folders/index.js +44 -2
  206. package/dist/providers/Folders/index.js.map +1 -1
  207. package/dist/providers/ListQuery/types.js +5 -1
  208. package/dist/providers/ListQuery/types.js.map +1 -1
  209. package/dist/providers/LivePreview/context.js +11 -1
  210. package/dist/providers/LivePreview/context.js.map +1 -1
  211. package/dist/providers/LivePreview/index.js +7 -4
  212. package/dist/providers/LivePreview/index.js.map +1 -1
  213. package/dist/providers/Preferences/index.js +7 -2
  214. package/dist/providers/Preferences/index.js.map +1 -1
  215. package/dist/providers/RouteTransition/index.js +9 -9
  216. package/dist/providers/RouteTransition/index.js.map +1 -1
  217. package/dist/providers/Selection/index.js +7 -2
  218. package/dist/providers/Selection/index.js.map +1 -1
  219. package/dist/providers/ServerFunctions/index.js +25 -22
  220. package/dist/providers/ServerFunctions/index.js.map +1 -1
  221. package/dist/providers/TableColumns/buildColumnState/index.js +10 -9
  222. package/dist/providers/TableColumns/buildColumnState/index.js.map +1 -1
  223. package/dist/providers/TableColumns/buildColumnState/renderCell.js +4 -3
  224. package/dist/providers/TableColumns/buildColumnState/renderCell.js.map +1 -1
  225. package/dist/providers/TableColumns/types.js +17 -1
  226. package/dist/providers/TableColumns/types.js.map +1 -1
  227. package/dist/utilities/abortAndIgnore.js +4 -6
  228. package/dist/utilities/abortAndIgnore.js.map +1 -1
  229. package/dist/utilities/buildFieldSchemaMap/traverseFields.js +2 -2
  230. package/dist/utilities/buildFieldSchemaMap/traverseFields.js.map +1 -1
  231. package/dist/utilities/copyDataFromLocale.js +6 -2
  232. package/dist/utilities/copyDataFromLocale.js.map +1 -1
  233. package/dist/utilities/getDisplayedFieldValue.js +8 -8
  234. package/dist/utilities/getDisplayedFieldValue.js.map +1 -1
  235. package/dist/utilities/getFolderResultsComponentAndData.js +2 -1
  236. package/dist/utilities/getFolderResultsComponentAndData.js.map +1 -1
  237. package/dist/utilities/handleFormStateLocking.js +2 -2
  238. package/dist/utilities/handleFormStateLocking.js.map +1 -1
  239. package/dist/utilities/hasSavePermission.js +5 -1
  240. package/dist/utilities/hasSavePermission.js.map +1 -1
  241. package/dist/utilities/isURLAllowed.js +6 -6
  242. package/dist/utilities/isURLAllowed.js.map +1 -1
  243. package/dist/utilities/renderTable.js +2 -1
  244. package/dist/utilities/renderTable.js.map +1 -1
  245. package/dist/utilities/schedulePublishHandler.js +3 -1
  246. package/dist/utilities/schedulePublishHandler.js.map +1 -1
  247. package/dist/utilities/upsertPreferences.js +1 -0
  248. package/dist/utilities/upsertPreferences.js.map +1 -1
  249. package/dist/views/Edit/index.js +7 -7
  250. package/dist/views/Edit/index.js.map +1 -1
  251. package/dist/views/List/ListHeader/index.js +6 -1
  252. package/dist/views/List/ListHeader/index.js.map +1 -1
  253. package/package.json +6 -5
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/exports/client/index.ts"],"sourcesContent":["/* eslint-disable perfectionist/sort-exports */\n'use client'\n\n// IMPORTANT: this file cannot use any wildcard exports because it is wrapped in a `use client` boundary\n// IMPORTANT: do _not_ alias any of the exports in this file, this will cause a mismatch between the unbundled exports\n\n// hooks\n\nexport { fieldComponents } from '../../fields/index.js'\n\nexport { useDebounce } from '../../hooks/useDebounce.js'\nexport { useDebouncedCallback } from '../../hooks/useDebouncedCallback.js'\nexport { useDebouncedEffect } from '../../hooks/useDebouncedEffect.js'\nexport { useDelay } from '../../hooks/useDelay.js'\nexport { useDelayedRender } from '../../hooks/useDelayedRender.js'\nexport { useHotkey } from '../../hooks/useHotkey.js'\nexport { useIntersect } from '../../hooks/useIntersect.js'\nexport { usePayloadAPI } from '../../hooks/usePayloadAPI.js'\nexport { useResize } from '../../hooks/useResize.js'\nexport { useThrottledEffect } from '../../hooks/useThrottledEffect.js'\nexport { useEffectEvent } from '../../hooks/useEffectEvent.js'\nexport { FieldPathContext, useFieldPath } from '../../forms/RenderFields/context.js'\nexport { useQueue } from '../../hooks/useQueue.js'\n\nexport { useUseTitleField } from '../../hooks/useUseAsTitle.js'\n\nexport { SortHeader } from '../../elements/SortHeader/index.js'\nexport { SortRow } from '../../elements/SortRow/index.js'\nexport { OrderableTable } from '../../elements/Table/OrderableTable.js'\n\n// query preset elements\nexport { QueryPresetsColumnsCell } from '../../elements/QueryPresets/cells/ColumnsCell/index.js'\nexport { QueryPresetsWhereCell } from '../../elements/QueryPresets/cells/WhereCell/index.js'\nexport { QueryPresetsAccessCell } from '../../elements/QueryPresets/cells/AccessCell/index.js'\nexport { QueryPresetsGroupByCell } from '../../elements/QueryPresets/cells/GroupByCell/index.js'\nexport { QueryPresetsColumnField } from '../../elements/QueryPresets/fields/ColumnsField/index.js'\nexport { QueryPresetsWhereField } from '../../elements/QueryPresets/fields/WhereField/index.js'\nexport { QueryPresetsGroupByField } from '../../elements/QueryPresets/fields/GroupByField/index.js'\n\n// elements\nexport { ConfirmationModal } from '../../elements/ConfirmationModal/index.js'\nexport type { OnCancel } from '../../elements/ConfirmationModal/index.js'\nexport { Link } from '../../elements/Link/index.js'\nexport { LeaveWithoutSaving } from '../../elements/LeaveWithoutSaving/index.js'\nexport { DocumentTakeOver } from '../../elements/DocumentTakeOver/index.js'\nexport { DocumentLocked } from '../../elements/DocumentLocked/index.js'\nexport { TableColumnsProvider, useTableColumns } from '../../providers/TableColumns/index.js'\nexport {\n RenderDefaultCell,\n useCellProps,\n} from '../../providers/TableColumns/RenderDefaultCell/index.js'\nexport { DateCell } from '../../elements/Table/DefaultCell/fields/Date/index.js'\n\nexport { Translation } from '../../elements/Translation/index.js'\nexport { default as DatePicker } from '../../elements/DatePicker/DatePicker.js'\nexport { ViewDescription } from '../../elements/ViewDescription/index.js'\nexport { AppHeader } from '../../elements/AppHeader/index.js'\nexport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nexport {\n BulkUploadDrawer,\n BulkUploadProvider,\n useBulkUpload,\n useBulkUploadDrawerSlug,\n} from '../../elements/BulkUpload/index.js'\nexport { DrawerContentContainer } from '../../elements/DrawerContentContainer/index.js'\nexport type { BulkUploadProps } from '../../elements/BulkUpload/index.js'\nexport { Banner } from '../../elements/Banner/index.js'\nexport { Button } from '../../elements/Button/index.js'\nexport { AnimateHeight } from '../../elements/AnimateHeight/index.js'\nexport { PillSelector, type SelectablePill } from '../../elements/PillSelector/index.js'\nexport { Card } from '../../elements/Card/index.js'\nexport { Collapsible, useCollapsible } from '../../elements/Collapsible/index.js'\nexport { CopyLocaleData } from '../../elements/CopyLocaleData/index.js'\nexport { CopyToClipboard } from '../../elements/CopyToClipboard/index.js'\nexport { DeleteMany } from '../../elements/DeleteMany/index.js'\nexport { DocumentControls } from '../../elements/DocumentControls/index.js'\nexport { Dropzone } from '../../elements/Dropzone/index.js'\nexport { documentDrawerBaseClass, useDocumentDrawer } from '../../elements/DocumentDrawer/index.js'\nexport { getHTMLDiffComponents } from '../../elements/HTMLDiff/index.js'\nexport type {\n DocumentDrawerProps,\n DocumentTogglerProps,\n UseDocumentDrawer,\n} from '../../elements/DocumentDrawer/types.js'\nexport { useClickOutside } from '../../hooks/useClickOutside.js'\nexport { useClickOutsideContext } from '../../providers/ClickOutside/index.js'\nexport { useDocumentDrawerContext } from '../../elements/DocumentDrawer/Provider.js'\nexport { DocumentFields } from '../../elements/DocumentFields/index.js'\nexport { Drawer, DrawerToggler, formatDrawerSlug } from '../../elements/Drawer/index.js'\nexport { useDrawerSlug } from '../../elements/Drawer/useDrawerSlug.js'\nexport { EditMany } from '../../elements/EditMany/index.js'\nexport { ErrorPill } from '../../elements/ErrorPill/index.js'\nexport { FullscreenModal } from '../../elements/FullscreenModal/index.js'\nexport { GenerateConfirmation } from '../../elements/GenerateConfirmation/index.js'\nexport { Gutter } from '../../elements/Gutter/index.js'\nexport { Hamburger } from '../../elements/Hamburger/index.js'\nexport { HydrateAuthProvider } from '../../elements/HydrateAuthProvider/index.js'\nexport { Locked } from '../../elements/Locked/index.js'\nexport { ListControls } from '../../elements/ListControls/index.js'\nexport { useListDrawer } from '../../elements/ListDrawer/index.js'\nexport type {\n ListDrawerProps,\n ListTogglerProps,\n RenderListServerFnArgs,\n RenderListServerFnReturnType,\n UseListDrawer,\n} from '../../elements/ListDrawer/types.js'\nexport { ListSelection } from '../../views/List/ListSelection/index.js'\nexport { CollectionListHeader as ListHeader } from '../../views/List/ListHeader/index.js'\nexport { GroupByHeader } from '../../views/List/GroupByHeader/index.js'\nexport { PageControls, PageControlsComponent } from '../../elements/PageControls/index.js'\nexport { StickyToolbar } from '../../elements/StickyToolbar/index.js'\n\nexport { GroupByPageControls } from '../../elements/PageControls/GroupByPageControls.js'\nexport { LoadingOverlayToggle } from '../../elements/Loading/index.js'\nexport { FormLoadingOverlayToggle } from '../../elements/Loading/index.js'\nexport { LoadingOverlay } from '../../elements/Loading/index.js'\nexport { Logout } from '../../elements/Logout/index.js'\nexport { Modal, useModal } from '../../elements/Modal/index.js'\nexport { NavToggler } from '../../elements/Nav/NavToggler/index.js'\nexport { NavContext, NavProvider, useNav } from '../../elements/Nav/context.js'\nexport { NavGroup } from '../../elements/NavGroup/index.js'\nexport { Pagination } from '../../elements/Pagination/index.js'\nexport { PerPage } from '../../elements/PerPage/index.js'\nexport { Pill } from '../../elements/Pill/index.js'\nimport * as PopupList from '../../elements/Popup/PopupButtonList/index.js'\nexport { PopupList }\nexport { Popup } from '../../elements/Popup/index.js'\nexport { Combobox } from '../../elements/Combobox/index.js'\nexport type { ComboboxEntry, ComboboxProps } from '../../elements/Combobox/index.js'\nexport { PublishMany } from '../../elements/PublishMany/index.js'\nexport { PublishButton } from '../../elements/PublishButton/index.js'\nexport { SaveButton } from '../../elements/SaveButton/index.js'\nexport { SaveDraftButton } from '../../elements/SaveDraftButton/index.js'\n\n// folder elements\nexport { FolderProvider, useFolder } from '../../providers/Folders/index.js'\nexport { BrowseByFolderButton } from '../../elements/FolderView/BrowseByFolderButton/index.js'\nexport { FolderTypeField } from '../../elements/FolderView/FolderTypeField/index.js'\nexport { FolderFileTable } from '../../elements/FolderView/FolderFileTable/index.js'\nexport { ItemCardGrid } from '../../elements/FolderView/ItemCardGrid/index.js'\n\nexport { type Option as ReactSelectOption, ReactSelect } from '../../elements/ReactSelect/index.js'\nexport { ReactSelect as Select } from '../../elements/ReactSelect/index.js'\nexport { RenderTitle } from '../../elements/RenderTitle/index.js'\nexport { ShimmerEffect } from '../../elements/ShimmerEffect/index.js'\nexport { StaggeredShimmers } from '../../elements/ShimmerEffect/index.js'\nexport { SortColumn } from '../../elements/SortColumn/index.js'\nexport { SetStepNav } from '../../elements/StepNav/SetStepNav.js'\nexport { useStepNav } from '../../elements/StepNav/index.js'\nexport type { StepNavItem } from '../../elements/StepNav/types.js'\nexport {\n RelationshipProvider,\n useListRelationships,\n} from '../../elements/Table/RelationshipProvider/index.js'\nexport { Table } from '../../elements/Table/index.js'\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import { Column } from 'payload'` instead.\n */\n Column,\n} from 'payload'\nexport { DefaultCell } from '../../elements/Table/DefaultCell/index.js'\nexport { Thumbnail } from '../../elements/Thumbnail/index.js'\nexport { Tooltip } from '../../elements/Tooltip/index.js'\nimport { toast } from 'sonner'\nexport { toast }\nexport { UnpublishMany } from '../../elements/UnpublishMany/index.js'\nexport { Upload } from '../../elements/Upload/index.js'\nexport { SearchFilter } from '../../elements/SearchFilter/index.js'\nexport { EditUpload } from '../../elements/EditUpload/index.js'\nexport { FileDetails } from '../../elements/FileDetails/index.js'\nexport { PreviewSizes } from '../../elements/PreviewSizes/index.js'\nexport { PreviewButton } from '../../elements/PreviewButton/index.js'\nexport { RelationshipTable } from '../../elements/RelationshipTable/index.js'\nexport { TimezonePicker } from '../../elements/TimezonePicker/index.js'\nexport {\n MoveDocToFolder,\n MoveDocToFolderButton,\n} from '../../elements/FolderView/MoveDocToFolder/index.js'\n\nexport { BlocksDrawer } from '../../fields/Blocks/BlocksDrawer/index.js'\nexport { BlockSelector } from '../../fields/Blocks/BlockSelector/index.js'\nexport { SectionTitle } from '../../fields/Blocks/SectionTitle/index.js'\n\n// fields\nexport { HiddenField } from '../../fields/Hidden/index.js'\nexport { ArrayField } from '../../fields/Array/index.js'\nexport { BlocksField } from '../../fields/Blocks/index.js'\nexport { CheckboxField, CheckboxInput } from '../../fields/Checkbox/index.js'\nexport { CodeField } from '../../fields/Code/index.js'\nexport { CodeEditor as CodeEditorLazy } from '../../elements/CodeEditor/index.js'\nexport { default as CodeEdiftor } from '../../elements/CodeEditor/CodeEditor.js'\n\nexport { CollapsibleField } from '../../fields/Collapsible/index.js'\nexport { ConfirmPasswordField } from '../../fields/ConfirmPassword/index.js'\nexport { DateTimeField } from '../../fields/DateTime/index.js'\nexport { EmailField } from '../../fields/Email/index.js'\nexport { FieldDescription } from '../../fields/FieldDescription/index.js'\nexport { FieldError } from '../../fields/FieldError/index.js'\nexport { FieldLabel } from '../../fields/FieldLabel/index.js'\nexport { GroupField } from '../../fields/Group/index.js'\nexport { JSONField } from '../../fields/JSON/index.js'\nexport { NumberField } from '../../fields/Number/index.js'\nexport { PasswordField } from '../../fields/Password/index.js'\nexport { PointField } from '../../fields/Point/index.js'\nexport { RadioGroupField } from '../../fields/RadioGroup/index.js'\nexport { RelationshipField, RelationshipInput } from '../../fields/Relationship/index.js'\nexport { RichTextField } from '../../fields/RichText/index.js'\nexport { RowField } from '../../fields/Row/index.js'\nexport { SelectField, SelectInput } from '../../fields/Select/index.js'\nexport { TabsField, TabsProvider } from '../../fields/Tabs/index.js'\nexport { TabComponent } from '../../fields/Tabs/Tab/index.js'\nexport { SlugField } from '../../fields/Slug/index.js'\n\nexport { TextField, TextInput } from '../../fields/Text/index.js'\nexport { JoinField } from '../../fields/Join/index.js'\nexport type { TextInputProps } from '../../fields/Text/index.js'\nexport { allFieldComponents } from '../../fields/index.js'\n\nexport { TextareaField, TextareaInput } from '../../fields/Textarea/index.js'\nexport type { TextAreaInputProps } from '../../fields/Textarea/index.js'\n\nexport { UIField } from '../../fields/UI/index.js'\nexport { UploadField, UploadInput } from '../../fields/Upload/index.js'\nexport type { UploadInputProps } from '../../fields/Upload/index.js'\n\nexport { fieldBaseClass } from '../../fields/shared/index.js'\n\n// forms\n\nexport {\n useAllFormFields,\n useDocumentForm,\n useForm,\n useFormBackgroundProcessing,\n useFormFields,\n useFormInitializing,\n useFormModified,\n useFormProcessing,\n useFormSubmitted,\n useWatchForm,\n} from '../../forms/Form/context.js'\nexport { Form, type FormProps } from '../../forms/Form/index.js'\nexport type { FieldAction } from '../../forms/Form/types.js'\nexport { fieldReducer } from '../../forms/Form/fieldReducer.js'\nexport { NullifyLocaleField } from '../../forms/NullifyField/index.js'\nexport { RenderFields } from '../../forms/RenderFields/index.js'\n\nexport { RowLabel, type RowLabelProps } from '../../forms/RowLabel/index.js'\nexport { RowLabelProvider, useRowLabel } from '../../forms/RowLabel/Context/index.js'\n\nexport { FormSubmit } from '../../forms/Submit/index.js'\nexport { WatchChildErrors } from '../../forms/WatchChildErrors/index.js'\nexport { FieldContext, useField } from '../../forms/useField/index.js'\nexport type { FieldType, Options } from '../../forms/useField/types.js'\n\nexport { withCondition } from '../../forms/withCondition/index.js'\nexport { WatchCondition } from '../../forms/withCondition/WatchCondition.js'\n\n// graphics\nexport { Account } from '../../graphics/Account/index.js'\nexport { PayloadIcon } from '../../graphics/Icon/index.js'\n\nexport { DefaultBlockImage } from '../../graphics/DefaultBlockImage/index.js'\nexport { File } from '../../graphics/File/index.js'\n\n// icons\nexport { CalendarIcon } from '../../icons/Calendar/index.js'\nexport { CheckIcon } from '../../icons/Check/index.js'\nexport { ChevronIcon } from '../../icons/Chevron/index.js'\nexport { CloseMenuIcon } from '../../icons/CloseMenu/index.js'\nexport { CodeBlockIcon } from '../../icons/CodeBlock/index.js'\nexport { CopyIcon } from '../../icons/Copy/index.js'\nexport { DragHandleIcon } from '../../icons/DragHandle/index.js'\nexport { EditIcon } from '../../icons/Edit/index.js'\nexport { ExternalLinkIcon } from '../../icons/ExternalLink/index.js'\nexport { LineIcon } from '../../icons/Line/index.js'\nexport { LinkIcon } from '../../icons/Link/index.js'\nexport { LogOutIcon } from '../../icons/LogOut/index.js'\nexport { MenuIcon } from '../../icons/Menu/index.js'\nexport { MinimizeMaximizeIcon } from '../../icons/MinimizeMaximize/index.js'\nexport { MoreIcon } from '../../icons/More/index.js'\nexport { PlusIcon } from '../../icons/Plus/index.js'\nexport { SearchIcon } from '../../icons/Search/index.js'\nexport { SwapIcon } from '../../icons/Swap/index.js'\nexport { XIcon } from '../../icons/X/index.js'\nexport { FolderIcon } from '../../icons/Folder/index.js'\nexport { GearIcon } from '../../icons/Gear/index.js'\nexport { DocumentIcon } from '../../icons/Document/index.js'\nexport { MoveFolderIcon } from '../../icons/MoveFolder/index.js'\nexport { GridViewIcon } from '../../icons/GridView/index.js'\nexport { ListViewIcon } from '../../icons/ListView/index.js'\nexport { Error as ErrorIcon } from '../../providers/ToastContainer/icons/Error.js'\nexport { Info as InfoIcon } from '../../providers/ToastContainer/icons/Info.js'\nexport { Success as SuccessIcon } from '../../providers/ToastContainer/icons/Success.js'\nexport { Warning as WarningIcon } from '../../providers/ToastContainer/icons/Warning.js'\n\n// providers\nexport {\n type RenderDocumentResult,\n type RenderDocumentServerFunction,\n ServerFunctionsContext,\n type ServerFunctionsContextType,\n ServerFunctionsProvider,\n useServerFunctions,\n} from '../../providers/ServerFunctions/index.js'\nexport { ActionsProvider, useActions } from '../../providers/Actions/index.js'\nexport { AuthProvider, useAuth } from '../../providers/Auth/index.js'\nexport type { UserWithToken } from '../../providers/Auth/index.js'\nexport { ClientFunctionProvider, useClientFunctions } from '../../providers/ClientFunction/index.js'\nexport { useAddClientFunction } from '../../providers/ClientFunction/index.js'\n\nexport { LivePreviewProvider } from '../../providers/LivePreview/index.js'\n\nexport { ProgressBar } from '../../providers/RouteTransition/ProgressBar/index.js'\nexport {\n RouteTransitionProvider,\n useRouteTransition,\n} from '../../providers/RouteTransition/index.js'\nexport { ConfigProvider, PageConfigProvider, useConfig } from '../../providers/Config/index.js'\nexport { DocumentEventsProvider, useDocumentEvents } from '../../providers/DocumentEvents/index.js'\nexport { DocumentInfoProvider, useDocumentInfo } from '../../providers/DocumentInfo/index.js'\nexport { useDocumentTitle } from '../../providers/DocumentTitle/index.js'\nexport type { DocumentInfoContext, DocumentInfoProps } from '../../providers/DocumentInfo/index.js'\nexport { useUploadControls } from '../../providers/UploadControls/index.js'\nexport { EditDepthProvider, useEditDepth } from '../../providers/EditDepth/index.js'\nexport {\n EntityVisibilityProvider,\n useEntityVisibility,\n} from '../../providers/EntityVisibility/index.js'\nexport { UploadEditsProvider, useUploadEdits } from '../../providers/UploadEdits/index.js'\nexport {\n ListDrawerContextProvider,\n useListDrawerContext,\n} from '../../elements/ListDrawer/Provider.js'\nexport { ListQueryProvider, useListQuery } from '../../providers/ListQuery/index.js'\nexport { LocaleProvider, useLocale } from '../../providers/Locale/index.js'\nexport { OperationProvider, useOperation } from '../../providers/Operation/index.js'\nexport { ParamsProvider, useParams } from '../../providers/Params/index.js'\nexport { PreferencesProvider, usePreferences } from '../../providers/Preferences/index.js'\nexport { RootProvider } from '../../providers/Root/index.js'\nexport {\n RouteCache as RouteCacheProvider,\n useRouteCache,\n} from '../../providers/RouteCache/index.js'\nexport { ScrollInfoProvider, useScrollInfo } from '../../providers/ScrollInfo/index.js'\nexport { SearchParamsProvider, useSearchParams } from '../../providers/SearchParams/index.js'\nexport { SelectionProvider, useSelection } from '../../providers/Selection/index.js'\nexport { UploadHandlersProvider, useUploadHandlers } from '../../providers/UploadHandlers/index.js'\nexport type { UploadHandlersContext } from '../../providers/UploadHandlers/index.js'\nexport { defaultTheme, type Theme, ThemeProvider, useTheme } from '../../providers/Theme/index.js'\nexport { TranslationProvider, useTranslation } from '../../providers/Translation/index.js'\nexport { useWindowInfo, WindowInfoProvider } from '../../providers/WindowInfo/index.js'\nexport { useControllableState } from '../../hooks/useControllableState.js'\n\nexport { Text as TextCondition } from '../../elements/WhereBuilder/Condition/Text/index.js'\nexport { Select as SelectCondition } from '../../elements/WhereBuilder/Condition/Select/index.js'\nexport { RelationshipFilter as RelationshipCondition } from '../../elements/WhereBuilder/Condition/Relationship/index.js'\nexport { NumberFilter as NumberCondition } from '../../elements/WhereBuilder/Condition/Number/index.js'\nexport { DateFilter as DateCondition } from '../../elements/WhereBuilder/Condition/Date/index.js'\nexport { EmailAndUsernameFields } from '../../elements/EmailAndUsername/index.js'\nexport { SelectAll } from '../../elements/SelectAll/index.js'\nexport { SelectRow } from '../../elements/SelectRow/index.js'\nexport { SelectMany } from '../../elements/SelectMany/index.js'\n\nexport { DefaultListView } from '../../views/List/index.js'\nexport { DefaultCollectionFolderView } from '../../views/CollectionFolder/index.js'\nexport { DefaultBrowseByFolderView } from '../../views/BrowseByFolder/index.js'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewSlots } from 'payload'` instead.\n */\n ListViewSlots,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewClientProps } from 'payload'` instead.\n */\n ListViewClientProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewClientProps } from 'payload'` instead.\n */\n ListViewClientProps as ListComponentClientProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewServerProps } from 'payload'` instead.\n */\n ListViewServerProps as ListComponentServerProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { CollectionPreferences } from 'payload'` instead.\n */\n ListPreferences,\n} from 'payload'\n\nexport type { ListHeaderProps } from '../../views/List/ListHeader/index.js'\n\nexport { DefaultEditView } from '../../views/Edit/index.js'\nexport { SetDocumentStepNav } from '../../views/Edit/SetDocumentStepNav/index.js'\nexport { SetDocumentTitle } from '../../views/Edit/SetDocumentTitle/index.js'\n\nexport { parseSearchParams } from '../../utilities/parseSearchParams.js'\nexport { FieldDiffLabel } from '../../elements/FieldDiffLabel/index.js'\nexport { FieldDiffContainer } from '../../elements/FieldDiffContainer/index.js'\nexport { formatTimeToNow } from '../../utilities/formatDocTitle/formatDateTitle.js'\nexport type {\n RenderFieldServerFnArgs,\n RenderFieldServerFnReturnType,\n} from '../../forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js'\n\nexport { useLivePreviewContext } from '../../providers/LivePreview/context.js'\nexport { LivePreviewWindow } from '../../elements/LivePreview/Window/index.js'\n"],"names":["fieldComponents","useDebounce","useDebouncedCallback","useDebouncedEffect","useDelay","useDelayedRender","useHotkey","useIntersect","usePayloadAPI","useResize","useThrottledEffect","useEffectEvent","FieldPathContext","useFieldPath","useQueue","useUseTitleField","SortHeader","SortRow","OrderableTable","QueryPresetsColumnsCell","QueryPresetsWhereCell","QueryPresetsAccessCell","QueryPresetsGroupByCell","QueryPresetsColumnField","QueryPresetsWhereField","QueryPresetsGroupByField","ConfirmationModal","Link","LeaveWithoutSaving","DocumentTakeOver","DocumentLocked","TableColumnsProvider","useTableColumns","RenderDefaultCell","useCellProps","DateCell","Translation","default","DatePicker","ViewDescription","AppHeader","RenderCustomComponent","BulkUploadDrawer","BulkUploadProvider","useBulkUpload","useBulkUploadDrawerSlug","DrawerContentContainer","Banner","Button","AnimateHeight","PillSelector","Card","Collapsible","useCollapsible","CopyLocaleData","CopyToClipboard","DeleteMany","DocumentControls","Dropzone","documentDrawerBaseClass","useDocumentDrawer","getHTMLDiffComponents","useClickOutside","useClickOutsideContext","useDocumentDrawerContext","DocumentFields","Drawer","DrawerToggler","formatDrawerSlug","useDrawerSlug","EditMany","ErrorPill","FullscreenModal","GenerateConfirmation","Gutter","Hamburger","HydrateAuthProvider","Locked","ListControls","useListDrawer","ListSelection","CollectionListHeader","ListHeader","GroupByHeader","PageControls","PageControlsComponent","StickyToolbar","GroupByPageControls","LoadingOverlayToggle","FormLoadingOverlayToggle","LoadingOverlay","Logout","Modal","useModal","NavToggler","NavContext","NavProvider","useNav","NavGroup","Pagination","PerPage","Pill","PopupList","Popup","Combobox","PublishMany","PublishButton","SaveButton","SaveDraftButton","FolderProvider","useFolder","BrowseByFolderButton","FolderTypeField","FolderFileTable","ItemCardGrid","ReactSelect","Select","RenderTitle","ShimmerEffect","StaggeredShimmers","SortColumn","SetStepNav","useStepNav","RelationshipProvider","useListRelationships","Table","DefaultCell","Thumbnail","Tooltip","toast","UnpublishMany","Upload","SearchFilter","EditUpload","FileDetails","PreviewSizes","PreviewButton","RelationshipTable","TimezonePicker","MoveDocToFolder","MoveDocToFolderButton","BlocksDrawer","BlockSelector","SectionTitle","HiddenField","ArrayField","BlocksField","CheckboxField","CheckboxInput","CodeField","CodeEditor","CodeEditorLazy","CodeEdiftor","CollapsibleField","ConfirmPasswordField","DateTimeField","EmailField","FieldDescription","FieldError","FieldLabel","GroupField","JSONField","NumberField","PasswordField","PointField","RadioGroupField","RelationshipField","RelationshipInput","RichTextField","RowField","SelectField","SelectInput","TabsField","TabsProvider","TabComponent","SlugField","TextField","TextInput","JoinField","allFieldComponents","TextareaField","TextareaInput","UIField","UploadField","UploadInput","fieldBaseClass","useAllFormFields","useDocumentForm","useForm","useFormBackgroundProcessing","useFormFields","useFormInitializing","useFormModified","useFormProcessing","useFormSubmitted","useWatchForm","Form","fieldReducer","NullifyLocaleField","RenderFields","RowLabel","RowLabelProvider","useRowLabel","FormSubmit","WatchChildErrors","FieldContext","useField","withCondition","WatchCondition","Account","PayloadIcon","DefaultBlockImage","File","CalendarIcon","CheckIcon","ChevronIcon","CloseMenuIcon","CodeBlockIcon","CopyIcon","DragHandleIcon","EditIcon","ExternalLinkIcon","LineIcon","LinkIcon","LogOutIcon","MenuIcon","MinimizeMaximizeIcon","MoreIcon","PlusIcon","SearchIcon","SwapIcon","XIcon","FolderIcon","GearIcon","DocumentIcon","MoveFolderIcon","GridViewIcon","ListViewIcon","Error","ErrorIcon","Info","InfoIcon","Success","SuccessIcon","Warning","WarningIcon","ServerFunctionsContext","ServerFunctionsProvider","useServerFunctions","ActionsProvider","useActions","AuthProvider","useAuth","ClientFunctionProvider","useClientFunctions","useAddClientFunction","LivePreviewProvider","ProgressBar","RouteTransitionProvider","useRouteTransition","ConfigProvider","PageConfigProvider","useConfig","DocumentEventsProvider","useDocumentEvents","DocumentInfoProvider","useDocumentInfo","useDocumentTitle","useUploadControls","EditDepthProvider","useEditDepth","EntityVisibilityProvider","useEntityVisibility","UploadEditsProvider","useUploadEdits","ListDrawerContextProvider","useListDrawerContext","ListQueryProvider","useListQuery","LocaleProvider","useLocale","OperationProvider","useOperation","ParamsProvider","useParams","PreferencesProvider","usePreferences","RootProvider","RouteCache","RouteCacheProvider","useRouteCache","ScrollInfoProvider","useScrollInfo","SearchParamsProvider","useSearchParams","SelectionProvider","useSelection","UploadHandlersProvider","useUploadHandlers","defaultTheme","ThemeProvider","useTheme","TranslationProvider","useTranslation","useWindowInfo","WindowInfoProvider","useControllableState","Text","TextCondition","SelectCondition","RelationshipFilter","RelationshipCondition","NumberFilter","NumberCondition","DateFilter","DateCondition","EmailAndUsernameFields","SelectAll","SelectRow","SelectMany","DefaultListView","DefaultCollectionFolderView","DefaultBrowseByFolderView","DefaultEditView","SetDocumentStepNav","SetDocumentTitle","parseSearchParams","FieldDiffLabel","FieldDiffContainer","formatTimeToNow","useLivePreviewContext","LivePreviewWindow"],"mappings":"AAAA,6CAA6C,GAC7C;AAEA,wGAAwG;AACxG,sHAAsH;AAEtH,QAAQ;AAER,SAASA,eAAe,QAAQ,wBAAuB;AAEvD,SAASC,WAAW,QAAQ,6BAA4B;AACxD,SAASC,oBAAoB,QAAQ,sCAAqC;AAC1E,SAASC,kBAAkB,QAAQ,oCAAmC;AACtE,SAASC,QAAQ,QAAQ,0BAAyB;AAClD,SAASC,gBAAgB,QAAQ,kCAAiC;AAClE,SAASC,SAAS,QAAQ,2BAA0B;AACpD,SAASC,YAAY,QAAQ,8BAA6B;AAC1D,SAASC,aAAa,QAAQ,+BAA8B;AAC5D,SAASC,SAAS,QAAQ,2BAA0B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ectionist/sort-exports */\n'use client'\n\n// IMPORTANT: this file cannot use any wildcard exports because it is wrapped in a `use client` boundary\n// IMPORTANT: do _not_ alias any of the exports in this file, this will cause a mismatch between the unbundled exports\n\n// hooks\n\nexport { fieldComponents } from '../../fields/index.js'\n\nexport { useDebounce } from '../../hooks/useDebounce.js'\nexport { useDebouncedCallback } from '../../hooks/useDebouncedCallback.js'\nexport { useDebouncedEffect } from '../../hooks/useDebouncedEffect.js'\nexport { useDelay } from '../../hooks/useDelay.js'\nexport { useDelayedRender } from '../../hooks/useDelayedRender.js'\nexport { useHotkey } from '../../hooks/useHotkey.js'\nexport { useIntersect } from '../../hooks/useIntersect.js'\nexport { usePayloadAPI } from '../../hooks/usePayloadAPI.js'\nexport { useResize } from '../../hooks/useResize.js'\nexport { useThrottledEffect } from '../../hooks/useThrottledEffect.js'\nexport { useEffectEvent } from '../../hooks/useEffectEvent.js'\nexport { FieldPathContext, useFieldPath } from '../../forms/RenderFields/context.js'\nexport { useQueue } from '../../hooks/useQueue.js'\n\nexport { useUseTitleField } from '../../hooks/useUseAsTitle.js'\n\nexport { SortHeader } from '../../elements/SortHeader/index.js'\nexport { SortRow } from '../../elements/SortRow/index.js'\nexport { OrderableTable } from '../../elements/Table/OrderableTable.js'\n\n// query preset elements\nexport { QueryPresetsColumnsCell } from '../../elements/QueryPresets/cells/ColumnsCell/index.js'\nexport { QueryPresetsWhereCell } from '../../elements/QueryPresets/cells/WhereCell/index.js'\nexport { QueryPresetsAccessCell } from '../../elements/QueryPresets/cells/AccessCell/index.js'\nexport { QueryPresetsGroupByCell } from '../../elements/QueryPresets/cells/GroupByCell/index.js'\nexport { QueryPresetsColumnField } from '../../elements/QueryPresets/fields/ColumnsField/index.js'\nexport { QueryPresetsWhereField } from '../../elements/QueryPresets/fields/WhereField/index.js'\nexport { QueryPresetsGroupByField } from '../../elements/QueryPresets/fields/GroupByField/index.js'\n\n// elements\nexport { ConfirmationModal } from '../../elements/ConfirmationModal/index.js'\nexport type { OnCancel } from '../../elements/ConfirmationModal/index.js'\nexport { Link } from '../../elements/Link/index.js'\nexport { LeaveWithoutSaving } from '../../elements/LeaveWithoutSaving/index.js'\nexport { DocumentTakeOver } from '../../elements/DocumentTakeOver/index.js'\nexport { DocumentLocked } from '../../elements/DocumentLocked/index.js'\nexport { TableColumnsProvider, useTableColumns } from '../../providers/TableColumns/index.js'\nexport {\n RenderDefaultCell,\n useCellProps,\n} from '../../providers/TableColumns/RenderDefaultCell/index.js'\nexport { DateCell } from '../../elements/Table/DefaultCell/fields/Date/index.js'\n\nexport { Translation } from '../../elements/Translation/index.js'\nexport { default as DatePicker } from '../../elements/DatePicker/DatePicker.js'\nexport { ViewDescription } from '../../elements/ViewDescription/index.js'\nexport { AppHeader } from '../../elements/AppHeader/index.js'\nexport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nexport {\n BulkUploadDrawer,\n BulkUploadProvider,\n useBulkUpload,\n useBulkUploadDrawerSlug,\n} from '../../elements/BulkUpload/index.js'\nexport { DrawerContentContainer } from '../../elements/DrawerContentContainer/index.js'\nexport type { BulkUploadProps } from '../../elements/BulkUpload/index.js'\nexport { Banner } from '../../elements/Banner/index.js'\nexport { Button } from '../../elements/Button/index.js'\nexport { AnimateHeight } from '../../elements/AnimateHeight/index.js'\nexport { PillSelector, type SelectablePill } from '../../elements/PillSelector/index.js'\nexport { Card } from '../../elements/Card/index.js'\nexport { Collapsible, useCollapsible } from '../../elements/Collapsible/index.js'\nexport { CopyLocaleData } from '../../elements/CopyLocaleData/index.js'\nexport { CopyToClipboard } from '../../elements/CopyToClipboard/index.js'\nexport { DeleteMany } from '../../elements/DeleteMany/index.js'\nexport { DocumentControls } from '../../elements/DocumentControls/index.js'\nexport { Dropzone } from '../../elements/Dropzone/index.js'\nexport { documentDrawerBaseClass, useDocumentDrawer } from '../../elements/DocumentDrawer/index.js'\nexport { getHTMLDiffComponents } from '../../elements/HTMLDiff/index.js'\nexport type {\n DocumentDrawerProps,\n DocumentTogglerProps,\n UseDocumentDrawer,\n} from '../../elements/DocumentDrawer/types.js'\nexport { useClickOutside } from '../../hooks/useClickOutside.js'\nexport { useClickOutsideContext } from '../../providers/ClickOutside/index.js'\nexport { useDocumentDrawerContext } from '../../elements/DocumentDrawer/Provider.js'\nexport { DocumentFields } from '../../elements/DocumentFields/index.js'\nexport { Drawer, DrawerToggler, formatDrawerSlug } from '../../elements/Drawer/index.js'\nexport { useDrawerSlug } from '../../elements/Drawer/useDrawerSlug.js'\nexport { EditMany } from '../../elements/EditMany/index.js'\nexport { ErrorPill } from '../../elements/ErrorPill/index.js'\nexport { FullscreenModal } from '../../elements/FullscreenModal/index.js'\nexport { GenerateConfirmation } from '../../elements/GenerateConfirmation/index.js'\nexport { Gutter } from '../../elements/Gutter/index.js'\nexport { Hamburger } from '../../elements/Hamburger/index.js'\nexport { HydrateAuthProvider } from '../../elements/HydrateAuthProvider/index.js'\nexport { Locked } from '../../elements/Locked/index.js'\nexport { ListControls } from '../../elements/ListControls/index.js'\nexport { useListDrawer } from '../../elements/ListDrawer/index.js'\nexport type {\n ListDrawerProps,\n ListTogglerProps,\n RenderListServerFnArgs,\n RenderListServerFnReturnType,\n UseListDrawer,\n} from '../../elements/ListDrawer/types.js'\nexport { ListSelection } from '../../views/List/ListSelection/index.js'\nexport { CollectionListHeader as ListHeader } from '../../views/List/ListHeader/index.js'\nexport { GroupByHeader } from '../../views/List/GroupByHeader/index.js'\nexport { PageControls, PageControlsComponent } from '../../elements/PageControls/index.js'\nexport { StickyToolbar } from '../../elements/StickyToolbar/index.js'\n\nexport { GroupByPageControls } from '../../elements/PageControls/GroupByPageControls.js'\nexport { LoadingOverlayToggle } from '../../elements/Loading/index.js'\nexport { FormLoadingOverlayToggle } from '../../elements/Loading/index.js'\nexport { LoadingOverlay } from '../../elements/Loading/index.js'\nexport { Logout } from '../../elements/Logout/index.js'\nexport { Modal, useModal } from '../../elements/Modal/index.js'\nexport { NavToggler } from '../../elements/Nav/NavToggler/index.js'\nexport { NavContext, NavProvider, useNav } from '../../elements/Nav/context.js'\nexport { NavGroup } from '../../elements/NavGroup/index.js'\nexport { Pagination } from '../../elements/Pagination/index.js'\nexport { PerPage } from '../../elements/PerPage/index.js'\nexport { Pill } from '../../elements/Pill/index.js'\nimport * as PopupList from '../../elements/Popup/PopupButtonList/index.js'\nexport { PopupList }\nexport { Popup } from '../../elements/Popup/index.js'\nexport { Combobox } from '../../elements/Combobox/index.js'\nexport type { ComboboxEntry, ComboboxProps } from '../../elements/Combobox/index.js'\nexport { PublishMany } from '../../elements/PublishMany/index.js'\nexport { PublishButton } from '../../elements/PublishButton/index.js'\nexport { SaveButton } from '../../elements/SaveButton/index.js'\nexport { SaveDraftButton } from '../../elements/SaveDraftButton/index.js'\n\n// folder elements\nexport { FolderProvider, useFolder } from '../../providers/Folders/index.js'\nexport { BrowseByFolderButton } from '../../elements/FolderView/BrowseByFolderButton/index.js'\nexport { FolderTypeField } from '../../elements/FolderView/FolderTypeField/index.js'\nexport { FolderFileTable } from '../../elements/FolderView/FolderFileTable/index.js'\nexport { ItemCardGrid } from '../../elements/FolderView/ItemCardGrid/index.js'\n\nexport { type Option as ReactSelectOption, ReactSelect } from '../../elements/ReactSelect/index.js'\nexport { ReactSelect as Select } from '../../elements/ReactSelect/index.js'\nexport { RenderTitle } from '../../elements/RenderTitle/index.js'\nexport { ShimmerEffect } from '../../elements/ShimmerEffect/index.js'\nexport { StaggeredShimmers } from '../../elements/ShimmerEffect/index.js'\nexport { SortColumn } from '../../elements/SortColumn/index.js'\nexport { SetStepNav } from '../../elements/StepNav/SetStepNav.js'\nexport { useStepNav } from '../../elements/StepNav/index.js'\nexport type { StepNavItem } from '../../elements/StepNav/types.js'\nexport {\n RelationshipProvider,\n useListRelationships,\n} from '../../elements/Table/RelationshipProvider/index.js'\nexport { Table } from '../../elements/Table/index.js'\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import { Column } from 'payload'` instead.\n */\n Column,\n} from 'payload'\nexport { DefaultCell } from '../../elements/Table/DefaultCell/index.js'\nexport { Thumbnail } from '../../elements/Thumbnail/index.js'\nexport { Tooltip } from '../../elements/Tooltip/index.js'\nimport { toast } from 'sonner'\nexport { toast }\nexport { UnpublishMany } from '../../elements/UnpublishMany/index.js'\nexport { Upload } from '../../elements/Upload/index.js'\nexport { SearchFilter } from '../../elements/SearchFilter/index.js'\nexport { EditUpload } from '../../elements/EditUpload/index.js'\nexport { FileDetails } from '../../elements/FileDetails/index.js'\nexport { PreviewSizes } from '../../elements/PreviewSizes/index.js'\nexport { PreviewButton } from '../../elements/PreviewButton/index.js'\nexport { RelationshipTable } from '../../elements/RelationshipTable/index.js'\nexport { TimezonePicker } from '../../elements/TimezonePicker/index.js'\nexport {\n MoveDocToFolder,\n MoveDocToFolderButton,\n} from '../../elements/FolderView/MoveDocToFolder/index.js'\n\nexport { BlocksDrawer } from '../../fields/Blocks/BlocksDrawer/index.js'\nexport { BlockSelector } from '../../fields/Blocks/BlockSelector/index.js'\nexport { SectionTitle } from '../../fields/Blocks/SectionTitle/index.js'\n\n// fields\nexport { HiddenField } from '../../fields/Hidden/index.js'\nexport { ArrayField } from '../../fields/Array/index.js'\nexport { BlocksField } from '../../fields/Blocks/index.js'\nexport { CheckboxField, CheckboxInput } from '../../fields/Checkbox/index.js'\nexport { CodeField } from '../../fields/Code/index.js'\nexport { CodeEditor as CodeEditorLazy } from '../../elements/CodeEditor/index.js'\nexport { default as CodeEdiftor } from '../../elements/CodeEditor/CodeEditor.js'\n\nexport { CollapsibleField } from '../../fields/Collapsible/index.js'\nexport { ConfirmPasswordField } from '../../fields/ConfirmPassword/index.js'\nexport { DateTimeField } from '../../fields/DateTime/index.js'\nexport { EmailField } from '../../fields/Email/index.js'\nexport { FieldDescription } from '../../fields/FieldDescription/index.js'\nexport { FieldError } from '../../fields/FieldError/index.js'\nexport { FieldLabel } from '../../fields/FieldLabel/index.js'\nexport { GroupField } from '../../fields/Group/index.js'\nexport { JSONField } from '../../fields/JSON/index.js'\nexport { NumberField } from '../../fields/Number/index.js'\nexport { PasswordField } from '../../fields/Password/index.js'\nexport { PointField } from '../../fields/Point/index.js'\nexport { RadioGroupField } from '../../fields/RadioGroup/index.js'\nexport { RelationshipField, RelationshipInput } from '../../fields/Relationship/index.js'\nexport { RichTextField } from '../../fields/RichText/index.js'\nexport { RowField } from '../../fields/Row/index.js'\nexport { SelectField, SelectInput } from '../../fields/Select/index.js'\nexport { TabsField, TabsProvider } from '../../fields/Tabs/index.js'\nexport { TabComponent } from '../../fields/Tabs/Tab/index.js'\nexport { SlugField } from '../../fields/Slug/index.js'\n\nexport { TextField, TextInput } from '../../fields/Text/index.js'\nexport { JoinField } from '../../fields/Join/index.js'\nexport type { TextInputProps } from '../../fields/Text/index.js'\nexport { allFieldComponents } from '../../fields/index.js'\n\nexport { TextareaField, TextareaInput } from '../../fields/Textarea/index.js'\nexport type { TextAreaInputProps } from '../../fields/Textarea/index.js'\n\nexport { UIField } from '../../fields/UI/index.js'\nexport { UploadField, UploadInput } from '../../fields/Upload/index.js'\nexport type { UploadInputProps } from '../../fields/Upload/index.js'\n\nexport { fieldBaseClass } from '../../fields/shared/index.js'\n\n// forms\n\nexport {\n useAllFormFields,\n useDocumentForm,\n useForm,\n useFormBackgroundProcessing,\n useFormFields,\n useFormInitializing,\n useFormModified,\n useFormProcessing,\n useFormSubmitted,\n useWatchForm,\n} from '../../forms/Form/context.js'\nexport { Form, type FormProps } from '../../forms/Form/index.js'\nexport type { FieldAction } from '../../forms/Form/types.js'\nexport { fieldReducer } from '../../forms/Form/fieldReducer.js'\nexport { NullifyLocaleField } from '../../forms/NullifyField/index.js'\nexport { RenderFields } from '../../forms/RenderFields/index.js'\n\nexport { RowLabel, type RowLabelProps } from '../../forms/RowLabel/index.js'\nexport { RowLabelProvider, useRowLabel } from '../../forms/RowLabel/Context/index.js'\n\nexport { FormSubmit } from '../../forms/Submit/index.js'\nexport { WatchChildErrors } from '../../forms/WatchChildErrors/index.js'\nexport { FieldContext, useField } from '../../forms/useField/index.js'\nexport type { FieldType, Options } from '../../forms/useField/types.js'\n\nexport { withCondition } from '../../forms/withCondition/index.js'\nexport { WatchCondition } from '../../forms/withCondition/WatchCondition.js'\n\n// graphics\nexport { Account } from '../../graphics/Account/index.js'\nexport { PayloadIcon } from '../../graphics/Icon/index.js'\n\nexport { DefaultBlockImage } from '../../graphics/DefaultBlockImage/index.js'\nexport { File } from '../../graphics/File/index.js'\n\n// icons\nexport { CalendarIcon } from '../../icons/Calendar/index.js'\nexport { CheckIcon } from '../../icons/Check/index.js'\nexport { ChevronIcon } from '../../icons/Chevron/index.js'\nexport { CloseMenuIcon } from '../../icons/CloseMenu/index.js'\nexport { CodeBlockIcon } from '../../icons/CodeBlock/index.js'\nexport { CopyIcon } from '../../icons/Copy/index.js'\nexport { DragHandleIcon } from '../../icons/DragHandle/index.js'\nexport { EditIcon } from '../../icons/Edit/index.js'\nexport { ExternalLinkIcon } from '../../icons/ExternalLink/index.js'\nexport { LineIcon } from '../../icons/Line/index.js'\nexport { LinkIcon } from '../../icons/Link/index.js'\nexport { LogOutIcon } from '../../icons/LogOut/index.js'\nexport { MenuIcon } from '../../icons/Menu/index.js'\nexport { MinimizeMaximizeIcon } from '../../icons/MinimizeMaximize/index.js'\nexport { MoreIcon } from '../../icons/More/index.js'\nexport { PlusIcon } from '../../icons/Plus/index.js'\nexport { SearchIcon } from '../../icons/Search/index.js'\nexport { SwapIcon } from '../../icons/Swap/index.js'\nexport { XIcon } from '../../icons/X/index.js'\nexport { FolderIcon } from '../../icons/Folder/index.js'\nexport { GearIcon } from '../../icons/Gear/index.js'\nexport { DocumentIcon } from '../../icons/Document/index.js'\nexport { MoveFolderIcon } from '../../icons/MoveFolder/index.js'\nexport { GridViewIcon } from '../../icons/GridView/index.js'\nexport { ListViewIcon } from '../../icons/ListView/index.js'\nexport { Error as ErrorIcon } from '../../providers/ToastContainer/icons/Error.js'\nexport { Info as InfoIcon } from '../../providers/ToastContainer/icons/Info.js'\nexport { Success as SuccessIcon } from '../../providers/ToastContainer/icons/Success.js'\nexport { Warning as WarningIcon } from '../../providers/ToastContainer/icons/Warning.js'\n\n// providers\nexport {\n type RenderDocumentResult,\n type RenderDocumentServerFunction,\n ServerFunctionsContext,\n type ServerFunctionsContextType,\n ServerFunctionsProvider,\n useServerFunctions,\n} from '../../providers/ServerFunctions/index.js'\nexport { ActionsProvider, useActions } from '../../providers/Actions/index.js'\nexport { AuthProvider, useAuth } from '../../providers/Auth/index.js'\nexport type { UserWithToken } from '../../providers/Auth/index.js'\nexport { ClientFunctionProvider, useClientFunctions } from '../../providers/ClientFunction/index.js'\nexport { useAddClientFunction } from '../../providers/ClientFunction/index.js'\n\nexport { LivePreviewProvider } from '../../providers/LivePreview/index.js'\n\nexport { ProgressBar } from '../../providers/RouteTransition/ProgressBar/index.js'\nexport {\n RouteTransitionProvider,\n useRouteTransition,\n} from '../../providers/RouteTransition/index.js'\nexport { ConfigProvider, PageConfigProvider, useConfig } from '../../providers/Config/index.js'\nexport { DocumentEventsProvider, useDocumentEvents } from '../../providers/DocumentEvents/index.js'\nexport { DocumentInfoProvider, useDocumentInfo } from '../../providers/DocumentInfo/index.js'\nexport { useDocumentTitle } from '../../providers/DocumentTitle/index.js'\nexport type { DocumentInfoContext, DocumentInfoProps } from '../../providers/DocumentInfo/index.js'\nexport { useUploadControls } from '../../providers/UploadControls/index.js'\nexport { EditDepthProvider, useEditDepth } from '../../providers/EditDepth/index.js'\nexport {\n EntityVisibilityProvider,\n useEntityVisibility,\n} from '../../providers/EntityVisibility/index.js'\nexport { UploadEditsProvider, useUploadEdits } from '../../providers/UploadEdits/index.js'\nexport {\n ListDrawerContextProvider,\n useListDrawerContext,\n} from '../../elements/ListDrawer/Provider.js'\nexport { ListQueryProvider, useListQuery } from '../../providers/ListQuery/index.js'\nexport { LocaleProvider, useLocale } from '../../providers/Locale/index.js'\nexport { OperationProvider, useOperation } from '../../providers/Operation/index.js'\nexport { ParamsProvider, useParams } from '../../providers/Params/index.js'\nexport { PreferencesProvider, usePreferences } from '../../providers/Preferences/index.js'\nexport { RootProvider } from '../../providers/Root/index.js'\nexport {\n RouteCache as RouteCacheProvider,\n useRouteCache,\n} from '../../providers/RouteCache/index.js'\nexport { ScrollInfoProvider, useScrollInfo } from '../../providers/ScrollInfo/index.js'\nexport { SearchParamsProvider, useSearchParams } from '../../providers/SearchParams/index.js'\nexport { SelectionProvider, useSelection } from '../../providers/Selection/index.js'\nexport { UploadHandlersProvider, useUploadHandlers } from '../../providers/UploadHandlers/index.js'\nexport type { UploadHandlersContext } from '../../providers/UploadHandlers/index.js'\nexport { defaultTheme, type Theme, ThemeProvider, useTheme } from '../../providers/Theme/index.js'\nexport { TranslationProvider, useTranslation } from '../../providers/Translation/index.js'\nexport { useWindowInfo, WindowInfoProvider } from '../../providers/WindowInfo/index.js'\nexport { useControllableState } from '../../hooks/useControllableState.js'\n\nexport { Text as TextCondition } from '../../elements/WhereBuilder/Condition/Text/index.js'\nexport { Select as SelectCondition } from '../../elements/WhereBuilder/Condition/Select/index.js'\nexport { RelationshipFilter as RelationshipCondition } from '../../elements/WhereBuilder/Condition/Relationship/index.js'\nexport { NumberFilter as NumberCondition } from '../../elements/WhereBuilder/Condition/Number/index.js'\nexport { DateFilter as DateCondition } from '../../elements/WhereBuilder/Condition/Date/index.js'\nexport { EmailAndUsernameFields } from '../../elements/EmailAndUsername/index.js'\nexport { SelectAll } from '../../elements/SelectAll/index.js'\nexport { SelectRow } from '../../elements/SelectRow/index.js'\nexport { SelectMany } from '../../elements/SelectMany/index.js'\n\nexport { DefaultListView } from '../../views/List/index.js'\nexport { DefaultCollectionFolderView } from '../../views/CollectionFolder/index.js'\nexport { DefaultBrowseByFolderView } from '../../views/BrowseByFolder/index.js'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewSlots } from 'payload'` instead.\n */\n ListViewSlots,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewClientProps } from 'payload'` instead.\n */\n ListViewClientProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewClientProps } from 'payload'` instead.\n */\n ListViewClientProps as ListComponentClientProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewServerProps } from 'payload'` instead.\n */\n ListViewServerProps as ListComponentServerProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { CollectionPreferences } from 'payload'` instead.\n */\n ListPreferences,\n} from 'payload'\n\nexport type { ListHeaderProps } from '../../views/List/ListHeader/index.js'\n\nexport { DefaultEditView } from '../../views/Edit/index.js'\nexport { SetDocumentStepNav } from '../../views/Edit/SetDocumentStepNav/index.js'\nexport { SetDocumentTitle } from '../../views/Edit/SetDocumentTitle/index.js'\n\nexport { parseSearchParams } from '../../utilities/parseSearchParams.js'\nexport { FieldDiffLabel } from '../../elements/FieldDiffLabel/index.js'\nexport { FieldDiffContainer } from '../../elements/FieldDiffContainer/index.js'\nexport { formatTimeToNow } from '../../utilities/formatDocTitle/formatDateTitle.js'\nexport type {\n RenderFieldServerFnArgs,\n RenderFieldServerFnReturnType,\n} from '../../forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js'\n\nexport { useLivePreviewContext } from '../../providers/LivePreview/context.js'\nexport { LivePreviewWindow } from '../../elements/LivePreview/Window/index.js'\n"],"names":["fieldComponents","useDebounce","useDebouncedCallback","useDebouncedEffect","useDelay","useDelayedRender","useHotkey","useIntersect","usePayloadAPI","useResize","useThrottledEffect","useEffectEvent","FieldPathContext","useFieldPath","useQueue","useUseTitleField","SortHeader","SortRow","OrderableTable","QueryPresetsColumnsCell","QueryPresetsWhereCell","QueryPresetsAccessCell","QueryPresetsGroupByCell","QueryPresetsColumnField","QueryPresetsWhereField","QueryPresetsGroupByField","ConfirmationModal","Link","LeaveWithoutSaving","DocumentTakeOver","DocumentLocked","TableColumnsProvider","useTableColumns","RenderDefaultCell","useCellProps","DateCell","Translation","default","DatePicker","ViewDescription","AppHeader","RenderCustomComponent","BulkUploadDrawer","BulkUploadProvider","useBulkUpload","useBulkUploadDrawerSlug","DrawerContentContainer","Banner","Button","AnimateHeight","PillSelector","Card","Collapsible","useCollapsible","CopyLocaleData","CopyToClipboard","DeleteMany","DocumentControls","Dropzone","documentDrawerBaseClass","useDocumentDrawer","getHTMLDiffComponents","useClickOutside","useClickOutsideContext","useDocumentDrawerContext","DocumentFields","Drawer","DrawerToggler","formatDrawerSlug","useDrawerSlug","EditMany","ErrorPill","FullscreenModal","GenerateConfirmation","Gutter","Hamburger","HydrateAuthProvider","Locked","ListControls","useListDrawer","ListSelection","CollectionListHeader","ListHeader","GroupByHeader","PageControls","PageControlsComponent","StickyToolbar","GroupByPageControls","LoadingOverlayToggle","FormLoadingOverlayToggle","LoadingOverlay","Logout","Modal","useModal","NavToggler","NavContext","NavProvider","useNav","NavGroup","Pagination","PerPage","Pill","PopupList","Popup","Combobox","PublishMany","PublishButton","SaveButton","SaveDraftButton","FolderProvider","useFolder","BrowseByFolderButton","FolderTypeField","FolderFileTable","ItemCardGrid","ReactSelect","Select","RenderTitle","ShimmerEffect","StaggeredShimmers","SortColumn","SetStepNav","useStepNav","RelationshipProvider","useListRelationships","Table","DefaultCell","Thumbnail","Tooltip","toast","UnpublishMany","Upload","SearchFilter","EditUpload","FileDetails","PreviewSizes","PreviewButton","RelationshipTable","TimezonePicker","MoveDocToFolder","MoveDocToFolderButton","BlocksDrawer","BlockSelector","SectionTitle","HiddenField","ArrayField","BlocksField","CheckboxField","CheckboxInput","CodeField","CodeEditor","CodeEditorLazy","CodeEdiftor","CollapsibleField","ConfirmPasswordField","DateTimeField","EmailField","FieldDescription","FieldError","FieldLabel","GroupField","JSONField","NumberField","PasswordField","PointField","RadioGroupField","RelationshipField","RelationshipInput","RichTextField","RowField","SelectField","SelectInput","TabsField","TabsProvider","TabComponent","SlugField","TextField","TextInput","JoinField","allFieldComponents","TextareaField","TextareaInput","UIField","UploadField","UploadInput","fieldBaseClass","useAllFormFields","useDocumentForm","useForm","useFormBackgroundProcessing","useFormFields","useFormInitializing","useFormModified","useFormProcessing","useFormSubmitted","useWatchForm","Form","fieldReducer","NullifyLocaleField","RenderFields","RowLabel","RowLabelProvider","useRowLabel","FormSubmit","WatchChildErrors","FieldContext","useField","withCondition","WatchCondition","Account","PayloadIcon","DefaultBlockImage","File","CalendarIcon","CheckIcon","ChevronIcon","CloseMenuIcon","CodeBlockIcon","CopyIcon","DragHandleIcon","EditIcon","ExternalLinkIcon","LineIcon","LinkIcon","LogOutIcon","MenuIcon","MinimizeMaximizeIcon","MoreIcon","PlusIcon","SearchIcon","SwapIcon","XIcon","FolderIcon","GearIcon","DocumentIcon","MoveFolderIcon","GridViewIcon","ListViewIcon","Error","ErrorIcon","Info","InfoIcon","Success","SuccessIcon","Warning","WarningIcon","ServerFunctionsContext","ServerFunctionsProvider","useServerFunctions","ActionsProvider","useActions","AuthProvider","useAuth","ClientFunctionProvider","useClientFunctions","useAddClientFunction","LivePreviewProvider","ProgressBar","RouteTransitionProvider","useRouteTransition","ConfigProvider","PageConfigProvider","useConfig","DocumentEventsProvider","useDocumentEvents","DocumentInfoProvider","useDocumentInfo","useDocumentTitle","useUploadControls","EditDepthProvider","useEditDepth","EntityVisibilityProvider","useEntityVisibility","UploadEditsProvider","useUploadEdits","ListDrawerContextProvider","useListDrawerContext","ListQueryProvider","useListQuery","LocaleProvider","useLocale","OperationProvider","useOperation","ParamsProvider","useParams","PreferencesProvider","usePreferences","RootProvider","RouteCache","RouteCacheProvider","useRouteCache","ScrollInfoProvider","useScrollInfo","SearchParamsProvider","useSearchParams","SelectionProvider","useSelection","UploadHandlersProvider","useUploadHandlers","defaultTheme","ThemeProvider","useTheme","TranslationProvider","useTranslation","useWindowInfo","WindowInfoProvider","useControllableState","Text","TextCondition","SelectCondition","RelationshipFilter","RelationshipCondition","NumberFilter","NumberCondition","DateFilter","DateCondition","EmailAndUsernameFields","SelectAll","SelectRow","SelectMany","DefaultListView","DefaultCollectionFolderView","DefaultBrowseByFolderView","DefaultEditView","SetDocumentStepNav","SetDocumentTitle","parseSearchParams","FieldDiffLabel","FieldDiffContainer","formatTimeToNow","useLivePreviewContext","LivePreviewWindow"],"mappings":"AAAA,6CAA6C,GAC7C;AAEA,wGAAwG;AACxG,sHAAsH;AAEtH,QAAQ;AAER,SAASA,eAAe,QAAQ,wBAAuB;AAEvD,SAASC,WAAW,QAAQ,6BAA4B;AACxD,SAASC,oBAAoB,QAAQ,sCAAqC;AAC1E,SAASC,kBAAkB,QAAQ,oCAAmC;AACtE,SAASC,QAAQ,QAAQ,0BAAyB;AAClD,SAASC,gBAAgB,QAAQ,kCAAiC;AAClE,SAASC,SAAS,QAAQ,2BAA0B;AACpD,SAASC,YAAY,QAAQ,8BAA6B;AAC1D,SAASC,aAAa,QAAQ,+BAA8B;AAC5D,SAASC,SAAS,QAAQ,2BAA0B;AACpD,SAASC,kBAAkB,QAAQ,oCAAmC;AACtE,SAASC,cAAc,QAAQ,gCAA+B;AAC9D,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,sCAAqC;AACpF,SAASC,QAAQ,QAAQ,0BAAyB;AAElD,SAASC,gBAAgB,QAAQ,+BAA8B;AAE/D,SAASC,UAAU,QAAQ,qCAAoC;AAC/D,SAASC,OAAO,QAAQ,kCAAiC;AACzD,SAASC,cAAc,QAAQ,yCAAwC;AAEvE,wBAAwB;AACxB,SAASC,uBAAuB,QAAQ,yDAAwD;AAChG,SAASC,qBAAqB,QAAQ,uDAAsD;AAC5F,SAASC,sBAAsB,QAAQ,wDAAuD;AAC9F,SAASC,uBAAuB,QAAQ,yDAAwD;AAChG,SAASC,uBAAuB,QAAQ,2DAA0D;AAClG,SAASC,sBAAsB,QAAQ,yDAAwD;AAC/F,SAASC,wBAAwB,QAAQ,2DAA0D;AAEnG,WAAW;AACX,SAASC,iB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a,QAAQ,sDAAqD;AACjG,SAASC,sBAAsB,QAAQ,2CAA0C;AACjF,SAASC,SAAS,QAAQ,oCAAmC;AAC7D,SAASC,SAAS,QAAQ,oCAAmC;AAC7D,SAASC,UAAU,QAAQ,qCAAoC;AAE/D,SAASC,eAAe,QAAQ,4BAA2B;AAC3D,SAASC,2BAA2B,QAAQ,wCAAuC;AACnF,SAASC,yBAAyB,QAAQ,sCAAqC;AAG7E;;;;GAIC,GAKD;;;;GAIC,GAKD;;;;GAIC,GAKD;;;;GAIC,GAKD;;;;GAIC,GAMH,SAASC,eAAe,QAAQ,4BAA2B;AAC3D,SAASC,kBAAkB,QAAQ,+CAA8C;AACjF,SAASC,gBAAgB,QAAQ,6CAA4C;AAE7E,SAASC,iBAAiB,QAAQ,uCAAsC;AACxE,SAASC,cAAc,QAAQ,yCAAwC;AACvE,SAASC,kBAAkB,QAAQ,6CAA4C;AAC/E,SAASC,eAAe,QAAQ,oDAAmD;AAMnF,SAASC,qBAAqB,QAAQ,yCAAwC;AAC9E,SAASC,iBAAiB,QAAQ,6CAA4C"}
@@ -1,5 +1,6 @@
1
1
  export { Translation } from '../../elements/Translation/index.js';
2
- export { withMergedProps } from '../../elements/withMergedProps/index.js'; // cannot be within a 'use client', thus we export this from shared
2
+ export { withMergedProps } from '../../elements/withMergedProps/index.js';
3
+ // cannot be within a 'use client', thus we export this from shared
3
4
  export { WithServerSideProps } from '../../elements/WithServerSideProps/index.js';
4
5
  export { mergeFieldStyles } from '../../fields/mergeFieldStyles.js';
5
6
  export { reduceToSerializableFields } from '../../forms/Form/reduceToSerializableFields.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/exports/shared/index.ts"],"sourcesContent":["export { Translation } from '../../elements/Translation/index.js'\nexport { withMergedProps } from '../../elements/withMergedProps/index.js' // cannot be within a 'use client', thus we export this from shared\nexport { WithServerSideProps } from '../../elements/WithServerSideProps/index.js'\nexport { mergeFieldStyles } from '../../fields/mergeFieldStyles.js'\nexport { reduceToSerializableFields } from '../../forms/Form/reduceToSerializableFields.js'\nexport { PayloadIcon } from '../../graphics/Icon/index.js'\nexport { PayloadLogo } from '../../graphics/Logo/index.js'\n// IMPORTANT: the shared.ts file CANNOT contain any Server Components _that import client components_.\nexport { filterFields } from '../../providers/TableColumns/buildColumnState/filterFields.js'\nexport { getInitialColumns } from '../../providers/TableColumns/getInitialColumns.js'\nexport { abortAndIgnore, handleAbortRef } from '../../utilities/abortAndIgnore.js'\nexport { requests } from '../../utilities/api.js'\nexport { findLocaleFromCode } from '../../utilities/findLocaleFromCode.js'\nexport { formatAdminURL } from '../../utilities/formatAdminURL.js'\nexport { formatDate } from '../../utilities/formatDocTitle/formatDateTitle.js'\nexport { formatDocTitle } from '../../utilities/formatDocTitle/index.js'\nexport {\n type EntityToGroup,\n EntityType,\n groupNavItems,\n type NavGroupType,\n} from '../../utilities/groupNavItems.js'\nexport { handleBackToDashboard } from '../../utilities/handleBackToDashboard.js'\nexport { handleGoBack } from '../../utilities/handleGoBack.js'\nexport { handleTakeOver } from '../../utilities/handleTakeOver.js'\nexport { hasSavePermission } from '../../utilities/hasSavePermission.js'\nexport { isClientUserObject } from '../../utilities/isClientUserObject.js'\nexport { isEditing } from '../../utilities/isEditing.js'\nexport { sanitizeID } from '../../utilities/sanitizeID.js'\n/**\n * @deprecated\n * The `mergeListSearchAndWhere` function is deprecated.\n * Import this from `payload/shared` instead.\n */\nexport { mergeListSearchAndWhere } from 'payload/shared'\n"],"names":["Translation","withMergedProps","WithServerSideProps","mergeFieldStyles","reduceToSerializableFields","PayloadIcon","PayloadLogo","filterFields","getInitialColumns","abortAndIgnore","handleAbortRef","requests","findLocaleFromCode","formatAdminURL","formatDate","formatDocTitle","EntityType","groupNavItems","handleBackToDashboard","handleGoBack","handleTakeOver","hasSavePermission","isClientUserObject","isEditing","sanitizeID","mergeListSearchAndWhere"],"mappings":"AAAA,SAASA,WAAW,QAAQ,sCAAqC;AACjE,SAASC,eAAe,QAAQ,0CAAyC,CAAC,mEAAmE;AAC7I,SAASC,mBAAmB,QAAQ,8CAA6C;AACjF,SAASC,gBAAgB,QAAQ,mCAAkC;AACnE,SAASC,0BAA0B,QAAQ,iDAAgD;AAC3F,SAASC,WAAW,QAAQ,+BAA8B;AAC1D,SAASC,WAAW,QAAQ,+BAA8B;AAC1D,sGAAsG;AACtG,SAASC,YAAY,QAAQ,gEAA+D;AAC5F,SAASC,iBAAiB,QAAQ,oDAAmD;AACrF,SAASC,cAAc,EAAEC,cAAc,QAAQ,oCAAmC;AAClF,SAASC,QAAQ,QAAQ,yBAAwB;AACjD,SAASC,kBAAkB,QAAQ,wCAAuC;AAC1E,SAASC,cAAc,QAAQ,oCAAmC;AAClE,SAASC,UAAU,QAAQ,oDAAmD;AAC9E,SAASC,cAAc,QAAQ,0CAAyC;AACxE,SAEEC,UAAU,EACVC,aAAa,QAER,mCAAkC;AACzC,SAASC,qBAAqB,QAAQ,2CAA0C;AAChF,SAASC,YAAY,QAAQ,kCAAiC;AAC9D,SAASC,cAAc,QAAQ,oCAAmC;AAClE,SAASC,iBAAiB,QAAQ,uCAAsC;AACxE,SAASC,kBAAkB,QAAQ,wCAAuC;AAC1E,SAASC,SAAS,QAAQ,+BAA8B;AACxD,SAASC,UAAU,QAAQ,gCAA+B;AAC1D;;;;CAIC,GACD,SAASC,uBAAuB,QAAQ,iBAAgB"}
1
+ {"version":3,"sources":["../../../src/exports/shared/index.ts"],"sourcesContent":["export { Translation } from '../../elements/Translation/index.js'\nexport { withMergedProps } from '../../elements/withMergedProps/index.js' // cannot be within a 'use client', thus we export this from shared\nexport { WithServerSideProps } from '../../elements/WithServerSideProps/index.js'\nexport { mergeFieldStyles } from '../../fields/mergeFieldStyles.js'\nexport { reduceToSerializableFields } from '../../forms/Form/reduceToSerializableFields.js'\nexport { PayloadIcon } from '../../graphics/Icon/index.js'\nexport { PayloadLogo } from '../../graphics/Logo/index.js'\n// IMPORTANT: the shared.ts file CANNOT contain any Server Components _that import client components_.\nexport { filterFields } from '../../providers/TableColumns/buildColumnState/filterFields.js'\nexport { getInitialColumns } from '../../providers/TableColumns/getInitialColumns.js'\nexport { abortAndIgnore, handleAbortRef } from '../../utilities/abortAndIgnore.js'\nexport { requests } from '../../utilities/api.js'\nexport { findLocaleFromCode } from '../../utilities/findLocaleFromCode.js'\nexport { formatAdminURL } from '../../utilities/formatAdminURL.js'\nexport { formatDate } from '../../utilities/formatDocTitle/formatDateTitle.js'\nexport { formatDocTitle } from '../../utilities/formatDocTitle/index.js'\nexport {\n type EntityToGroup,\n EntityType,\n groupNavItems,\n type NavGroupType,\n} from '../../utilities/groupNavItems.js'\nexport { handleBackToDashboard } from '../../utilities/handleBackToDashboard.js'\nexport { handleGoBack } from '../../utilities/handleGoBack.js'\nexport { handleTakeOver } from '../../utilities/handleTakeOver.js'\nexport { hasSavePermission } from '../../utilities/hasSavePermission.js'\nexport { isClientUserObject } from '../../utilities/isClientUserObject.js'\nexport { isEditing } from '../../utilities/isEditing.js'\nexport { sanitizeID } from '../../utilities/sanitizeID.js'\n/**\n * @deprecated\n * The `mergeListSearchAndWhere` function is deprecated.\n * Import this from `payload/shared` instead.\n */\nexport { mergeListSearchAndWhere } from 'payload/shared'\n"],"names":["Translation","withMergedProps","WithServerSideProps","mergeFieldStyles","reduceToSerializableFields","PayloadIcon","PayloadLogo","filterFields","getInitialColumns","abortAndIgnore","handleAbortRef","requests","findLocaleFromCode","formatAdminURL","formatDate","formatDocTitle","EntityType","groupNavItems","handleBackToDashboard","handleGoBack","handleTakeOver","hasSavePermission","isClientUserObject","isEditing","sanitizeID","mergeListSearchAndWhere"],"mappings":"AAAA,SAASA,WAAW,QAAQ,sCAAqC;AACjE,SAASC,eAAe,QAAQ,0CAAyC;AAAC,mEAAmE;AAC7I,SAASC,mBAAmB,QAAQ,8CAA6C;AACjF,SAASC,gBAAgB,QAAQ,mCAAkC;AACnE,SAASC,0BAA0B,QAAQ,iDAAgD;AAC3F,SAASC,WAAW,QAAQ,+BAA8B;AAC1D,SAASC,WAAW,QAAQ,+BAA8B;AAC1D,sGAAsG;AACtG,SAASC,YAAY,QAAQ,gEAA+D;AAC5F,SAASC,iBAAiB,QAAQ,oDAAmD;AACrF,SAASC,cAAc,EAAEC,cAAc,QAAQ,oCAAmC;AAClF,SAASC,QAAQ,QAAQ,yBAAwB;AACjD,SAASC,kBAAkB,QAAQ,wCAAuC;AAC1E,SAASC,cAAc,QAAQ,oCAAmC;AAClE,SAASC,UAAU,QAAQ,oDAAmD;AAC9E,SAASC,cAAc,QAAQ,0CAAyC;AACxE,SAEEC,UAAU,EACVC,aAAa,QAER,mCAAkC;AACzC,SAASC,qBAAqB,QAAQ,2CAA0C;AAChF,SAASC,YAAY,QAAQ,kCAAiC;AAC9D,SAASC,cAAc,QAAQ,oCAAmC;AAClE,SAASC,iBAAiB,QAAQ,uCAAsC;AACxE,SAASC,kBAAkB,QAAQ,wCAAuC;AAC1E,SAASC,SAAS,QAAQ,+BAA8B;AACxD,SAASC,UAAU,QAAQ,gCAA+B;AAC1D;;;;CAIC,GACD,SAASC,uBAAuB,QAAQ,iBAAgB"}
@@ -9,7 +9,9 @@ import { useConfig } from '../../../providers/Config/index.js';
9
9
  import { useTranslation } from '../../../providers/Translation/index.js';
10
10
  import { BlockSearch } from './BlockSearch/index.js';
11
11
  import './index.scss';
12
- const baseClass = 'blocks-drawer';
12
+ /**
13
+ * Control the search term state externally
14
+ */ const baseClass = 'blocks-drawer';
13
15
  const getBlockLabel = (block, i18n)=>{
14
16
  if (typeof block.labels.singular === 'string') {
15
17
  return block.labels.singular.toLowerCase();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/fields/Blocks/BlockSelector/index.tsx"],"sourcesContent":["'use client'\nimport type { I18nClient } from '@payloadcms/translations'\nimport type { ClientBlock } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React, { Fragment, useEffect, useMemo, useState } from 'react'\n\nimport { ThumbnailCard } from '../../../elements/ThumbnailCard/index.js'\nimport { DefaultBlockImage } from '../../../graphics/DefaultBlockImage/index.js'\nimport { useControllableState } from '../../../hooks/useControllableState.js'\nimport { useConfig } from '../../../providers/Config/index.js'\nimport { useTranslation } from '../../../providers/Translation/index.js'\nimport { BlockSearch } from './BlockSearch/index.js'\nimport './index.scss'\n\nexport type Props = {\n readonly blocks: (ClientBlock | string)[]\n readonly onSelect?: (blockType: string) => void\n /**\n * Control the search term state externally\n */\n searchTerm?: string\n}\n\nconst baseClass = 'blocks-drawer'\n\nconst getBlockLabel = (block: ClientBlock, i18n: I18nClient) => {\n if (typeof block.labels.singular === 'string') {\n return block.labels.singular.toLowerCase()\n }\n if (typeof block.labels.singular === 'object') {\n return getTranslation(block.labels.singular, i18n).toLowerCase()\n }\n return ''\n}\n\nexport const BlockSelector: React.FC<Props> = (props) => {\n const { blocks, onSelect, searchTerm: searchTermFromProps } = props\n\n const [searchTerm, setSearchTerm] = useControllableState(searchTermFromProps ?? '')\n\n const [filteredBlocks, setFilteredBlocks] = useState(blocks)\n const { i18n } = useTranslation()\n const { config } = useConfig()\n\n const blockGroups = useMemo(() => {\n const groups: Record<string, (ClientBlock | string)[]> = {\n _none: [],\n }\n\n filteredBlocks.forEach((block) => {\n if (typeof block === 'object' && block.admin?.group) {\n const group = block.admin.group\n const label = typeof group === 'string' ? group : getTranslation(group, i18n)\n\n if (Object.hasOwn(groups, label)) {\n groups[label].push(block)\n } else {\n groups[label] = [block]\n }\n } else {\n groups._none.push(block)\n }\n })\n\n return groups\n }, [filteredBlocks, i18n])\n\n useEffect(() => {\n const searchTermToUse = searchTerm.toLowerCase()\n\n const matchingBlocks = blocks?.reduce((matchedBlocks, _block) => {\n const block = typeof _block === 'string' ? config.blocksMap[_block] : _block\n const blockLabel = getBlockLabel(block, i18n)\n if (blockLabel.includes(searchTermToUse)) {\n matchedBlocks.push(block)\n }\n return matchedBlocks\n }, [])\n\n setFilteredBlocks(matchingBlocks)\n }, [searchTerm, blocks, i18n, config.blocksMap])\n\n return (\n <Fragment>\n <BlockSearch setSearchTerm={setSearchTerm} />\n <div className={`${baseClass}__blocks-wrapper`}>\n <ul className={`${baseClass}__block-groups`}>\n {Object.entries(blockGroups).map(([groupLabel, groupBlocks]) =>\n !groupBlocks.length ? null : (\n <li\n className={[\n `${baseClass}__block-group`,\n groupLabel === '_none' && `${baseClass}__block-group-none`,\n ]\n .filter(Boolean)\n .join(' ')}\n key={groupLabel}\n >\n {groupLabel !== '_none' && (\n <h3 className={`${baseClass}__block-group-label`}>{groupLabel}</h3>\n )}\n <ul className={`${baseClass}__blocks`}>\n {groupBlocks.map((_block, index) => {\n const block = typeof _block === 'string' ? config.blocksMap[_block] : _block\n\n const { slug, imageAltText, imageURL, labels: blockLabels } = block\n\n return (\n <li className={`${baseClass}__block`} key={index}>\n <ThumbnailCard\n alignLabel=\"center\"\n label={getTranslation(blockLabels?.singular, i18n)}\n onClick={() => {\n if (typeof onSelect === 'function') {\n onSelect(slug)\n }\n }}\n thumbnail={\n <div className={`${baseClass}__default-image`}>\n {imageURL ? (\n <img alt={imageAltText} src={imageURL} />\n ) : (\n <DefaultBlockImage />\n )}\n </div>\n }\n />\n </li>\n )\n })}\n </ul>\n </li>\n ),\n )}\n </ul>\n </div>\n </Fragment>\n )\n}\n"],"names":["getTranslation","React","Fragment","useEffect","useMemo","useState","ThumbnailCard","DefaultBlockImage","useControllableState","useConfig","useTranslation","BlockSearch","baseClass","getBlockLabel","block","i18n","labels","singular","toLowerCase","BlockSelector","props","blocks","onSelect","searchTerm","searchTermFromProps","setSearchTerm","filteredBlocks","setFilteredBlocks","config","blockGroups","groups","_none","forEach","admin","group","label","Object","hasOwn","push","searchTermToUse","matchingBlocks","reduce","matchedBlocks","_block","blocksMap","blockLabel","includes","div","className","ul","entries","map","groupLabel","groupBlocks","length","li","filter","Boolean","join","h3","index","slug","imageAltText","imageURL","blockLabels","alignLabel","onClick","thumbnail","img","alt","src"],"mappings":"AAAA;;AAIA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,OAAOC,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YAAYF,GAAG,CAAC,CAACR,QAAQiB;wCACxB,MAAM9C,QAAQ,OAAO6B,WAAW,WAAWf,OAAOgB,SAAS,CAACD,OAAO,GAAGA;wCAEtE,MAAM,EAAEkB,IAAI,EAAEC,YAAY,EAAEC,QAAQ,EAAE/C,QAAQgD,WAAW,EAAE,GAAGlD;wCAE9D,qBACE,KAACyC;4CAAGP,WAAW,GAAGpC,UAAU,OAAO,CAAC;sDAClC,cAAA,KAACN;gDACC2D,YAAW;gDACX9B,OAAOnC,eAAegE,aAAa/C,UAAUF;gDAC7CmD,SAAS;oDACP,IAAI,OAAO5C,aAAa,YAAY;wDAClCA,SAASuC;oDACX;gDACF;gDACAM,yBACE,KAACpB;oDAAIC,WAAW,GAAGpC,UAAU,eAAe,CAAC;8DAC1CmD,yBACC,KAACK;wDAAIC,KAAKP;wDAAcQ,KAAKP;uEAE7B,KAACxD;;;2CAdgCqD;oCAqB/C;;;2BAjCGR;;;;;AA0CrB,EAAC"}
1
+ {"version":3,"sources":["../../../../src/fields/Blocks/BlockSelector/index.tsx"],"sourcesContent":["'use client'\nimport type { I18nClient } from '@payloadcms/translations'\nimport type { ClientBlock } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React, { Fragment, useEffect, useMemo, useState } from 'react'\n\nimport { ThumbnailCard } from '../../../elements/ThumbnailCard/index.js'\nimport { DefaultBlockImage } from '../../../graphics/DefaultBlockImage/index.js'\nimport { useControllableState } from '../../../hooks/useControllableState.js'\nimport { useConfig } from '../../../providers/Config/index.js'\nimport { useTranslation } from '../../../providers/Translation/index.js'\nimport { BlockSearch } from './BlockSearch/index.js'\nimport './index.scss'\n\nexport type Props = {\n readonly blocks: (ClientBlock | string)[]\n readonly onSelect?: (blockType: string) => void\n /**\n * Control the search term state externally\n */\n searchTerm?: string\n}\n\nconst baseClass = 'blocks-drawer'\n\nconst getBlockLabel = (block: ClientBlock, i18n: I18nClient) => {\n if (typeof block.labels.singular === 'string') {\n return block.labels.singular.toLowerCase()\n }\n if (typeof block.labels.singular === 'object') {\n return getTranslation(block.labels.singular, i18n).toLowerCase()\n }\n return ''\n}\n\nexport const BlockSelector: React.FC<Props> = (props) => {\n const { blocks, onSelect, searchTerm: searchTermFromProps } = props\n\n const [searchTerm, setSearchTerm] = useControllableState(searchTermFromProps ?? '')\n\n const [filteredBlocks, setFilteredBlocks] = useState(blocks)\n const { i18n } = useTranslation()\n const { config } = useConfig()\n\n const blockGroups = useMemo(() => {\n const groups: Record<string, (ClientBlock | string)[]> = {\n _none: [],\n }\n\n filteredBlocks.forEach((block) => {\n if (typeof block === 'object' && block.admin?.group) {\n const group = block.admin.group\n const label = typeof group === 'string' ? group : getTranslation(group, i18n)\n\n if (Object.hasOwn(groups, label)) {\n groups[label].push(block)\n } else {\n groups[label] = [block]\n }\n } else {\n groups._none.push(block)\n }\n })\n\n return groups\n }, [filteredBlocks, i18n])\n\n useEffect(() => {\n const searchTermToUse = searchTerm.toLowerCase()\n\n const matchingBlocks = blocks?.reduce((matchedBlocks, _block) => {\n const block = typeof _block === 'string' ? config.blocksMap[_block] : _block\n const blockLabel = getBlockLabel(block, i18n)\n if (blockLabel.includes(searchTermToUse)) {\n matchedBlocks.push(block)\n }\n return matchedBlocks\n }, [])\n\n setFilteredBlocks(matchingBlocks)\n }, [searchTerm, blocks, i18n, config.blocksMap])\n\n return (\n <Fragment>\n <BlockSearch setSearchTerm={setSearchTerm} />\n <div className={`${baseClass}__blocks-wrapper`}>\n <ul className={`${baseClass}__block-groups`}>\n {Object.entries(blockGroups).map(([groupLabel, groupBlocks]) =>\n !groupBlocks.length ? null : (\n <li\n className={[\n `${baseClass}__block-group`,\n groupLabel === '_none' && `${baseClass}__block-group-none`,\n ]\n .filter(Boolean)\n .join(' ')}\n key={groupLabel}\n >\n {groupLabel !== '_none' && (\n <h3 className={`${baseClass}__block-group-label`}>{groupLabel}</h3>\n )}\n <ul className={`${baseClass}__blocks`}>\n {groupBlocks.map((_block, index) => {\n const block = typeof _block === 'string' ? config.blocksMap[_block] : _block\n\n const { slug, imageAltText, imageURL, labels: blockLabels } = block\n\n return (\n <li className={`${baseClass}__block`} key={index}>\n <ThumbnailCard\n alignLabel=\"center\"\n label={getTranslation(blockLabels?.singular, i18n)}\n onClick={() => {\n if (typeof onSelect === 'function') {\n onSelect(slug)\n }\n }}\n thumbnail={\n <div className={`${baseClass}__default-image`}>\n {imageURL ? (\n <img alt={imageAltText} src={imageURL} />\n ) : (\n <DefaultBlockImage />\n )}\n </div>\n }\n />\n </li>\n )\n })}\n </ul>\n </li>\n ),\n )}\n </ul>\n </div>\n </Fragment>\n )\n}\n"],"names":["getTranslation","React","Fragment","useEffect","useMemo","useState","ThumbnailCard","DefaultBlockImage","useControllableState","useConfig","useTranslation","BlockSearch","baseClass","getBlockLabel","block","i18n","labels","singular","toLowerCase","BlockSelector","props","blocks","onSelect","searchTerm","searchTermFromProps","setSearchTerm","filteredBlocks","setFilteredBlocks","config","blockGroups","groups","_none","forEach","admin","group","label","Object","hasOwn","push","searchTermToUse","matchingBlocks","reduce","matchedBlocks","_block","blocksMap","blockLabel","includes","div","className","ul","entries","map","groupLabel","groupBlocks","length","li","filter","Boolean","join","h3","index","slug","imageAltText","imageURL","blockLabels","alignLabel","onClick","thumbnail","img","alt","src"],"mappings":"AAAA;;AAIA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,OAAOC,SAASC,QAAQ,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,QAAO;AAErE,SAASC,aAAa,QAAQ,2CAA0C;AACxE,SAASC,iBAAiB,QAAQ,+CAA8C;AAChF,SAASC,oBAAoB,QAAQ,yCAAwC;AAC7E,SAASC,SAAS,QAAQ,qCAAoC;AAC9D,SAASC,cAAc,QAAQ,0CAAyC;AACxE,SAASC,WAAW,QAAQ,yBAAwB;AACpD,OAAO,eAAc;AAKnB;;GAEC,GAIH,MAAMC,YAAY;AAElB,MAAMC,gBAAgB,CAACC,OAAoBC;IACzC,IAAI,OAAOD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,OAAO5C,aAAa,YAAY;wDAClCA,SAASuC;oDACX;gDACF;gDACAM,yBACE,KAACpB;oDAAIC,WAAW,GAAGpC,UAAU,eAAe,CAAC;8DAC1CmD,yBACC,KAACK;wDAAIC,KAAKP;wDAAcQ,KAAKP;uEAE7B,KAACxD;;;2CAdgCqD;oCAqB/C;;;2BAjCGR;;;;;AA0CrB,EAAC"}
@@ -63,7 +63,7 @@ const EmailFieldComponent = (props)=>{
63
63
  })
64
64
  }),
65
65
  BeforeInput,
66
- /*#__PURE__*/ _jsx("input", {
66
+ /* disable eslint here because the label is dynamic */ /* eslint-disable-next-line jsx-a11y/control-has-associated-label */ /*#__PURE__*/ _jsx("input", {
67
67
  autoComplete: autoComplete,
68
68
  disabled: readOnly || disabled,
69
69
  id: `field-${path.replace(/\./g, '__')}`,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/fields/Email/index.tsx"],"sourcesContent":["'use client'\nimport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldValidation,\n} from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React, { useCallback, useMemo } from 'react'\n\nimport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nimport { FieldDescription } from '../../fields/FieldDescription/index.js'\nimport { FieldError } from '../../fields/FieldError/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { FieldLabel } from '../FieldLabel/index.js'\nimport { mergeFieldStyles } from '../mergeFieldStyles.js'\nimport { fieldBaseClass } from '../shared/index.js'\nimport './index.scss'\n\nconst EmailFieldComponent: EmailFieldClientComponent = (props) => {\n const {\n field,\n field: {\n admin: {\n autoComplete,\n className,\n description,\n placeholder,\n } = {} as EmailFieldClientProps['field']['admin'],\n label,\n localized,\n required,\n } = {} as EmailFieldClientProps['field'],\n path: pathFromProps,\n readOnly,\n validate,\n } = props\n\n const { i18n } = useTranslation()\n\n const memoizedValidate: EmailFieldValidation = useCallback(\n (value, options) => {\n if (typeof validate === 'function') {\n return validate(value, { ...options, required })\n }\n },\n [validate, required],\n )\n\n const {\n customComponents: { AfterInput, BeforeInput, Description, Error, Label } = {},\n disabled,\n path,\n setValue,\n showError,\n value,\n } = useField({\n potentiallyStalePath: pathFromProps,\n validate: memoizedValidate,\n })\n\n const styles = useMemo(() => mergeFieldStyles(field), [field])\n\n return (\n <div\n className={[\n fieldBaseClass,\n 'email',\n className,\n showError && 'error',\n (readOnly || disabled) && 'read-only',\n ]\n .filter(Boolean)\n .join(' ')}\n style={styles}\n >\n <RenderCustomComponent\n CustomComponent={Label}\n Fallback={\n <FieldLabel label={label} localized={localized} path={path} required={required} />\n }\n />\n <div className={`${fieldBaseClass}__wrap`}>\n <RenderCustomComponent\n CustomComponent={Error}\n Fallback={<FieldError path={path} showError={showError} />}\n />\n {BeforeInput}\n {/* disable eslint here because the label is dynamic */}\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <input\n autoComplete={autoComplete}\n disabled={readOnly || disabled}\n id={`field-${path.replace(/\\./g, '__')}`}\n name={path}\n onChange={setValue}\n placeholder={getTranslation(placeholder, i18n)}\n required={required}\n type=\"email\"\n value={(value as string) || ''}\n />\n {AfterInput}\n </div>\n <RenderCustomComponent\n CustomComponent={Description}\n Fallback={<FieldDescription description={description} path={path} />}\n />\n </div>\n )\n}\n\nexport const EmailField = withCondition(EmailFieldComponent)\n"],"names":["getTranslation","React","useCallback","useMemo","RenderCustomComponent","FieldDescription","FieldError","useField","withCondition","useTranslation","FieldLabel","mergeFieldStyles","fieldBaseClass","EmailFieldComponent","props","field","admin","autoComplete","className","description","placeholder","label","localized","required","path","pathFromProps","readOnly","validate","i18n","memoizedValidate","value","options","customComponents","AfterInput","BeforeInput","Description","Error","Label","disabled","setValue","showError","potentiallyStalePath","styles","div","filter","Boolean","join","style","CustomComponent","Fallback","input","id","replace","name","onChange","type","EmailField"],"mappings":"AAAA;;AAOA,SAASA,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W;YACTN;YACA;YACAM;YACAsB,aAAa;YACZd,CAAAA,YAAYY,QAAO,KAAM;SAC3B,CACEM,MAAM,CAACC,SACPC,IAAI,CAAC;QACRC,OAAOL;;0BAEP,KAACtC;gBACC4C,iBAAiBX;gBACjBY,wBACE,KAACvC;oBAAWW,OAAOA;oBAAOC,WAAWA;oBAAWE,MAAMA;oBAAMD,UAAUA;;;0BAG1E,MAACoB;gBAAIzB,WAAW,GAAGN,eAAe,MAAM,CAAC;;kCACvC,KAACR;wBACC4C,iBAAiBZ;wBACjBa,wBAAU,KAAC3C;4BAAWkB,MAAMA;4BAAMgB,WAAWA;;;oBAE9CN;kCAGD,KAACgB;wBACCjC,cAAcA;wBACdqB,UAAUZ,YAAYY;wBACtBa,IAAI,CAAC,MAAM,EAAE3B,KAAK4B,OAAO,CAAC,OAAO,OAAO;wBACxCC,MAAM7B;wBACN8B,UAAUf;wBACVnB,aAAapB,eAAeoB,aAAaQ;wBACzCL,UAAUA;wBACVgC,MAAK;wBACLzB,OAAO,AAACA,SAAoB;;oBAE7BG;;;0BAEH,KAAC7B;gBACC4C,iBAAiBb;gBACjBc,wBAAU,KAAC5C;oBAAiBc,aAAaA;oBAAaK,MAAMA;;;;;AAIpE;AAEA,OAAO,MAAMgC,aAAahD,cAAcK,qBAAoB"}
1
+ {"version":3,"sources":["../../../src/fields/Email/index.tsx"],"sourcesContent":["'use client'\nimport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldValidation,\n} from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React, { useCallback, useMemo } from 'react'\n\nimport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nimport { FieldDescription } from '../../fields/FieldDescription/index.js'\nimport { FieldError } from '../../fields/FieldError/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { FieldLabel } from '../FieldLabel/index.js'\nimport { mergeFieldStyles } from '../mergeFieldStyles.js'\nimport { fieldBaseClass } from '../shared/index.js'\nimport './index.scss'\n\nconst EmailFieldComponent: EmailFieldClientComponent = (props) => {\n const {\n field,\n field: {\n admin: {\n autoComplete,\n className,\n description,\n placeholder,\n } = {} as EmailFieldClientProps['field']['admin'],\n label,\n localized,\n required,\n } = {} as EmailFieldClientProps['field'],\n path: pathFromProps,\n readOnly,\n validate,\n } = props\n\n const { i18n } = useTranslation()\n\n const memoizedValidate: EmailFieldValidation = useCallback(\n (value, options) => {\n if (typeof validate === 'function') {\n return validate(value, { ...options, required })\n }\n },\n [validate, required],\n )\n\n const {\n customComponents: { AfterInput, BeforeInput, Description, Error, Label } = {},\n disabled,\n path,\n setValue,\n showError,\n value,\n } = useField({\n potentiallyStalePath: pathFromProps,\n validate: memoizedValidate,\n })\n\n const styles = useMemo(() => mergeFieldStyles(field), [field])\n\n return (\n <div\n className={[\n fieldBaseClass,\n 'email',\n className,\n showError && 'error',\n (readOnly || disabled) && 'read-only',\n ]\n .filter(Boolean)\n .join(' ')}\n style={styles}\n >\n <RenderCustomComponent\n CustomComponent={Label}\n Fallback={\n <FieldLabel label={label} localized={localized} path={path} required={required} />\n }\n />\n <div className={`${fieldBaseClass}__wrap`}>\n <RenderCustomComponent\n CustomComponent={Error}\n Fallback={<FieldError path={path} showError={showError} />}\n />\n {BeforeInput}\n {/* disable eslint here because the label is dynamic */}\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <input\n autoComplete={autoComplete}\n disabled={readOnly || disabled}\n id={`field-${path.replace(/\\./g, '__')}`}\n name={path}\n onChange={setValue}\n placeholder={getTranslation(placeholder, i18n)}\n required={required}\n type=\"email\"\n value={(value as string) || ''}\n />\n {AfterInput}\n </div>\n <RenderCustomComponent\n CustomComponent={Description}\n Fallback={<FieldDescription description={description} path={path} />}\n />\n </div>\n )\n}\n\nexport const EmailField = withCondition(EmailFieldComponent)\n"],"names":["getTranslation","React","useCallback","useMemo","RenderCustomComponent","FieldDescription","FieldError","useField","withCondition","useTranslation","FieldLabel","mergeFieldStyles","fieldBaseClass","EmailFieldComponent","props","field","admin","autoComplete","className","description","placeholder","label","localized","required","path","pathFromProps","readOnly","validate","i18n","memoizedValidate","value","options","customComponents","AfterInput","BeforeInput","Description","Error","Label","disabled","setValue","showError","potentiallyStalePath","styles","div","filter","Boolean","join","style","CustomComponent","Fallback","input","id","replace","name","onChange","type","EmailField"],"mappings":"AAAA;;AAOA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,OAAOC,SAASC,WAAW,EAAEC,OAAO,QAAQ,QAAO;AAEnD,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,SAASC,gBAAgB,QAAQ,yCAAwC;AACzE,SAASC,UAAU,QAAQ,mCAAkC;AAC7D,SAASC,QAAQ,QAAQ,gCAA+B;AACxD,SAASC,aAAa,QAAQ,qCAAoC;AAClE,SAASC,cAAc,QAAQ,uCAAsC;AACrE,SAASC,UAAU,QAAQ,yBAAwB;AACnD,SAASC,gBAAgB,QAAQ,yBAAwB;AACzD,SAASC,cAAc,QAAQ,qBAAoB;AACnD,OAAO,eAAc;AAErB,MAAMC,sBAAiD,CAACC;IACtD,MAAM,EACJC,KAAK,EACLA,OAAO,EACLC,OAAO,EACLC,YAAY,EACZC,SAAS,EACTC,WAAW,EACXC,WAAW,EACZ,GAAG,CAAC,CAA4C,EACjDC,KAAK,EACLC,SAAS,EACTC,QAAQ,EACT,GAAG,CAAC,CAAmC,EACxCC,MAAMC,aAAa,EACnBC,QAAQ,EACRC,QAAQ,EACT,GAAGb;IAEJ,MAAM,EAAEc,IAAI,EAAE,GAAGnB;IAEjB,MAAMoB,mBAAyC3B,YAC7C,CAAC4B,OAAOC;QACN,IAAI,OAAOJ,aAAa,YAAY;YAClC,OAAOA,SAASG,OAAO;gBAAE,GAAGC,OAAO;gBAAER;YAAS;QAChD;IACF,GACA;QAACI;QAAUJ;KAAS;IAGtB,MAAM,EACJS,kBAAkB,EAAEC,UAAU,EAAEC,W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jsx(RenderFields, {
96
+ /* Render an unnamed group differently */ groupHasName(field) ? /*#__PURE__*/ _jsx(RenderFields, {
97
97
  fields: fields,
98
98
  margins: "small",
99
99
  parentIndexPath: "",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/fields/Group/index.tsx"],"sourcesContent":["'use client'\n\nimport type { GroupFieldClientComponent } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { groupHasName } from 'payload/shared'\nimport React, { useMemo } from 'react'\n\nimport { useCollapsible } from '../../elements/Collapsible/provider.js'\nimport { ErrorPill } from '../../elements/ErrorPill/index.js'\nimport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nimport { FieldDescription } from '../../fields/FieldDescription/index.js'\nimport { FieldLabel } from '../../fields/FieldLabel/index.js'\nimport { useFormSubmitted } from '../../forms/Form/context.js'\nimport { RenderFields } from '../../forms/RenderFields/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { mergeFieldStyles } from '../mergeFieldStyles.js'\nimport './index.scss'\nimport { useRow } from '../Row/provider.js'\nimport { fieldBaseClass } from '../shared/index.js'\nimport { useTabs } from '../Tabs/provider.js'\nimport { GroupProvider, useGroup } from './provider.js'\n\nconst baseClass = 'group-field'\n\nexport const GroupFieldComponent: GroupFieldClientComponent = (props) => {\n const {\n field,\n field: { admin: { className, description, hideGutter } = {}, fields, label },\n indexPath,\n parentPath,\n parentSchemaPath,\n path,\n permissions,\n readOnly,\n schemaPath: schemaPathFromProps,\n } = props\n\n const schemaPath =\n schemaPathFromProps ?? (field.type === 'group' && groupHasName(field) ? field.name : path)\n\n const { i18n } = useTranslation()\n const { isWithinCollapsible } = useCollapsible()\n const isWithinGroup = useGroup()\n const isWithinRow = useRow()\n const isWithinTab = useTabs()\n\n const { customComponents: { AfterInput, BeforeInput, Description, Label } = {}, errorPaths } =\n useField({ path })\n\n const submitted = useFormSubmitted()\n const errorCount = errorPaths.length\n const fieldHasErrors = submitted && errorCount > 0\n\n const isTopLevel = !(isWithinCollapsible || isWithinGroup || isWithinRow)\n\n const styles = useMemo(() => mergeFieldStyles(field), [field])\n\n return (\n <div\n className={[\n fieldBaseClass,\n baseClass,\n isTopLevel && `${baseClass}--top-level`,\n isWithinCollapsible && `${baseClass}--within-collapsible`,\n isWithinGroup && `${baseClass}--within-group`,\n isWithinRow && `${baseClass}--within-row`,\n isWithinTab && `${baseClass}--within-tab`,\n !hideGutter && isWithinGroup && `${baseClass}--gutter`,\n fieldHasErrors && `${baseClass}--has-error`,\n className,\n ]\n .filter(Boolean)\n .join(' ')}\n id={`field-${path?.replace(/\\./g, '__')}`}\n style={styles}\n >\n <GroupProvider>\n <div className={`${baseClass}__wrap`}>\n {Boolean(Label || Description || label || fieldHasErrors) && (\n <div className={`${baseClass}__header`}>\n {Boolean(Label || Description || label) && (\n <header>\n <RenderCustomComponent\n CustomComponent={Label}\n Fallback={\n <h3 className={`${baseClass}__title`}>\n <FieldLabel\n as=\"span\"\n label={getTranslation(label, i18n)}\n localized={false}\n path={path}\n required={false}\n />\n </h3>\n }\n />\n <RenderCustomComponent\n CustomComponent={Description}\n Fallback={<FieldDescription description={description} path={path} />}\n />\n </header>\n )}\n {fieldHasErrors && <ErrorPill count={errorCount} i18n={i18n} withMessage />}\n </div>\n )}\n {BeforeInput}\n {/* Render an unnamed group differently */}\n {groupHasName(field) ? (\n <RenderFields\n fields={fields}\n margins=\"small\"\n parentIndexPath=\"\"\n parentPath={path}\n parentSchemaPath={schemaPath}\n permissions={permissions === true ? permissions : permissions?.fields}\n readOnly={readOnly}\n />\n ) : (\n <RenderFields\n fields={fields}\n margins=\"small\"\n parentIndexPath={indexPath}\n parentPath={parentPath}\n parentSchemaPath={parentSchemaPath}\n permissions={permissions}\n readOnly={readOnly}\n />\n )}\n </div>\n </GroupProvider>\n {AfterInput}\n </div>\n )\n}\n\nexport { GroupProvider, useGroup }\n\nexport const GroupField = withCondition(GroupFieldComponent)\n"],"names":["getTranslation","groupHasName","React","useMemo","useCollapsible","ErrorPill","RenderCustomComponent","FieldDescription","FieldLabel","useFormSubmitted","RenderFields","useField","withCondition","useTranslation","mergeFieldStyles","useRow","fieldBaseClass","useTabs","GroupProvider","useGroup","baseClass","GroupFieldComponent","props","field","admin","className","description","hideGutter","fields","label","indexPath","parentPath","parentSchemaPath","path","permissions","readOnly","schemaPath","schemaPathFromProps","type","name","i18n","isWithinCollapsible","isWithinGroup","isWithinRow","isWithinTab","customComponents","AfterInput","BeforeInput","Description","Label","errorPaths","submitted","errorCount","length","fieldHasErrors","isTopLevel","styles","div","filter","Boolean","join","id","replace","style","header","CustomComponent","Fallback","h3","as","localized","required","count","withMessage","margins","parentIndexPath","GroupField"],"mappings":"AAAA;;AAIA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,SAASC,YAAY,QAAQ,iBAAgB;AAC7C,OAAOC,SAASC,OAAO,QAAQ,QAAO;AAEtC,SAASC,cAAc,QAAQ,yCAAwC;AACvE,SAASC,SAAS,QAAQ,oCAAmC;AAC7D,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,SAASC,gBAAgB,QAAQ,yCAAwC;AACzE,SAASC,UAAU,QAAQ,mCAAkC;AAC7D,SAASC,gBAAgB,QAAQ,8BAA6B;AAC9D,SAASC,YAAY,QAAQ,oCAAmC;AAChE,SAASC,QAAQ,QAAQ,gCAA+B;AACxD,SAASC,aAAa,QAAQ,qCAAoC;AAClE,SAASC,cAAc,QAAQ,uCAAsC;AACrE,SAASC,gBAAgB,QAAQ,yBAAwB;AACzD,OAAO,eAAc;AACrB,SAASC,MAAM,QAAQ,qBAAoB;AAC3C,SAASC,cAAc,QAAQ,qBAAoB;AACnD,SAASC,OAAO,QAAQ,sBAAqB;AAC7C,SAASC,aAAa,EAAEC,QAAQ,QAAQ,gBAAe;AAEvD,MAAMC,YAAY;AAElB,OAAO,MAAMC,sBAAiD,CAACC;IAC7D,MAAM,EACJC,KAA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3CK;SACD,CACEiC,MAAM,CAACC,SACPC,IAAI,CAAC;QACRC,IAAI,CAAC,MAAM,EAAE5B,MAAM6B,QAAQ,OAAO,OAAO;QACzCC,OAAOP;;0BAEP,KAACtC;0BACC,cAAA,MAACuC;oBAAIhC,WAAW,GAAGL,UAAU,MAAM,CAAC;;wBACjCuC,QAAQV,SAASD,eAAenB,SAASyB,iCACxC,MAACG;4BAAIhC,WAAW,GAAGL,UAAU,QAAQ,CAAC;;gCACnCuC,QAAQV,SAASD,eAAenB,wBAC/B,MAACmC;;sDACC,KAAC1D;4CACC2D,iBAAiBhB;4CACjBiB,wBACE,KAACC;gDAAG1C,WAAW,GAAGL,UAAU,OAAO,CAAC;0DAClC,cAAA,KAACZ;oDACC4D,IAAG;oDACHvC,OAAO7B,eAAe6B,OAAOW;oDAC7B6B,WAAW;oDACXpC,MAAMA;oDACNqC,UAAU;;;;sDAKlB,KAAChE;4CACC2D,iBAAiBjB;4CACjBkB,wBAAU,KAAC3D;gDAAiBmB,aAAaA;gDAAaO,MAAMA;;;;;gCAIjEqB,gCAAkB,KAACjD;oCAAUkE,OAAOnB;oCAAYZ,MAAMA;oCAAMgC,WAAW;;;;wBAG3EzB;wBAEA9C,aAAasB,uBACZ,KAACb;4BACCkB,QAAQA;4BACR6C,SAAQ;4BACRC,iBAAgB;4BAChB3C,YAAYE;4BACZD,kBAAkBI;4BAClBF,aAAaA,gBAAgB,OAAOA,cAAcA,aAAaN;4BAC/DO,UAAUA;2CAGZ,KAACzB;4BACCkB,QAAQA;4BACR6C,SAAQ;4BACRC,iBAAiB5C;4BACjBC,YAAYA;4BACZC,kBAAkBA;4BAClBE,aAAaA;4BACbC,UAAUA;;;;;YAKjBW;;;AAGP,EAAC;AAED,SAAS5B,aAAa,EAAEC,QAAQ,GAAE;AAElC,OAAO,MAAMwD,aAAa/D,cAAcS,qBAAoB"}
1
+ {"version":3,"sources":["../../../src/fields/Group/index.tsx"],"sourcesContent":["'use client'\n\nimport type { GroupFieldClientComponent } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { groupHasName } from 'payload/shared'\nimport React, { useMemo } from 'react'\n\nimport { useCollapsible } from '../../elements/Collapsible/provider.js'\nimport { ErrorPill } from '../../elements/ErrorPill/index.js'\nimport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nimport { FieldDescription } from '../../fields/FieldDescription/index.js'\nimport { FieldLabel } from '../../fields/FieldLabel/index.js'\nimport { useFormSubmitted } from '../../forms/Form/context.js'\nimport { RenderFields } from '../../forms/RenderFields/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { mergeFieldStyles } from '../mergeFieldStyles.js'\nimport './index.scss'\nimport { useRow } from '../Row/provider.js'\nimport { fieldBaseClass } from '../shared/index.js'\nimport { useTabs } from '../Tabs/provider.js'\nimport { GroupProvider, useGroup } from './provider.js'\n\nconst baseClass = 'group-field'\n\nexport const GroupFieldComponent: GroupFieldClientComponent = (props) => {\n const {\n field,\n field: { admin: { className, description, hideGutter } = {}, fields, label },\n indexPath,\n parentPath,\n parentSchemaPath,\n path,\n permissions,\n readOnly,\n schemaPath: schemaPathFromProps,\n } = props\n\n const schemaPath =\n schemaPathFromProps ?? (field.type === 'group' && groupHasName(field) ? field.name : path)\n\n const { i18n } = useTranslation()\n const { isWithinCollapsible } = useCollapsible()\n const isWithinGroup = useGroup()\n const isWithinRow = useRow()\n const isWithinTab = useTabs()\n\n const { customComponents: { AfterInput, BeforeInput, Description, Label } = {}, errorPaths } =\n useField({ path })\n\n const submitted = useFormSubmitted()\n const errorCount = errorPaths.length\n const fieldHasErrors = submitted && errorCount > 0\n\n const isTopLevel = !(isWithinCollapsible || isWithinGroup || isWithinRow)\n\n const styles = useMemo(() => mergeFieldStyles(field), [field])\n\n return (\n <div\n className={[\n fieldBaseClass,\n baseClass,\n isTopLevel && `${baseClass}--top-level`,\n isWithinCollapsible && `${baseClass}--within-collapsible`,\n isWithinGroup && `${baseClass}--within-group`,\n isWithinRow && `${baseClass}--within-row`,\n isWithinTab && `${baseClass}--within-tab`,\n !hideGutter && isWithinGroup && `${baseClass}--gutter`,\n fieldHasErrors && `${baseClass}--has-error`,\n className,\n ]\n .filter(Boolean)\n .join(' ')}\n id={`field-${path?.replace(/\\./g, '__')}`}\n style={styles}\n >\n <GroupProvider>\n <div className={`${baseClass}__wrap`}>\n {Boolean(Label || Description || label || fieldHasErrors) && (\n <div className={`${baseClass}__header`}>\n {Boolean(Label || Description || label) && (\n <header>\n <RenderCustomComponent\n CustomComponent={Label}\n Fallback={\n <h3 className={`${baseClass}__title`}>\n <FieldLabel\n as=\"span\"\n label={getTranslation(label, i18n)}\n localized={false}\n path={path}\n required={false}\n />\n </h3>\n }\n />\n <RenderCustomComponent\n CustomComponent={Description}\n Fallback={<FieldDescription description={description} path={path} />}\n />\n </header>\n )}\n {fieldHasErrors && <ErrorPill count={errorCount} i18n={i18n} withMessage />}\n </div>\n )}\n {BeforeInput}\n {/* Render an unnamed group differently */}\n {groupHasName(field) ? (\n <RenderFields\n fields={fields}\n margins=\"small\"\n parentIndexPath=\"\"\n parentPath={path}\n parentSchemaPath={schemaPath}\n permissions={permissions === true ? permissions : permissions?.fields}\n readOnly={readOnly}\n />\n ) : (\n <RenderFields\n fields={fields}\n margins=\"small\"\n parentIndexPath={indexPath}\n parentPath={parentPath}\n parentSchemaPath={parentSchemaPath}\n permissions={permissions}\n readOnly={readOnly}\n />\n )}\n </div>\n </GroupProvider>\n {AfterInput}\n </div>\n )\n}\n\nexport { GroupProvider, useGroup }\n\nexport const GroupField = withCondition(GroupFieldComponent)\n"],"names":["getTranslation","groupHasName","React","useMemo","useCollapsible","ErrorPill","RenderCustomComponent","FieldDescription","FieldLabel","useFormSubmitted","RenderFields","useField","withCondition","useTranslation","mergeFieldStyles","useRow","fieldBaseClass","useTabs","GroupProvider","useGroup","baseClass","GroupFieldComponent","props","field","admin","className","description","hideGutter","fields","label","indexPath","parentPath","parentSchemaPath","path","permissions","readOnly","schemaPath","schemaPathFromProps","type","name","i18n","isWithinCollapsible","isWithinGroup","isWithinRow","isWithinTab","customComponents","AfterInput","BeforeInput","Description","Label","errorPaths","submitted","errorCount","length","fieldHasErrors","isTopLevel","styles","div","filter","Boolean","join","id","replace","style","header","CustomComponent","Fallback","h3","as","localized","required","count","withMessage","margins","parentIndexPath","GroupField"],"mappings":"AAAA;;AAIA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,SAASC,YAAY,QAAQ,iBAAgB;AAC7C,OAAOC,SAASC,OAAO,QAAQ,QAAO;AAEtC,SAASC,cAAc,QAAQ,yCAAwC;AACvE,SAASC,SAAS,QAAQ,oCAAmC;AAC7D,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,SAASC,gBAAgB,QAAQ,yCAAwC;AACzE,SAASC,UAAU,QAAQ,mCAAkC;AAC7D,SAASC,gBAAgB,QAAQ,8BAA6B;AAC9D,SAASC,YAAY,QAAQ,oCAAmC;AAChE,SAASC,QAAQ,QAAQ,gCAA+B;AACxD,SAASC,aAAa,QAAQ,qCAAoC;AAClE,SAASC,cAAc,QAAQ,uCAAsC;AACrE,SAASC,gBAAgB,QAAQ,yBAAwB;AACzD,OAAO,eAAc;AACrB,SAASC,MAAM,QAAQ,qBAAoB;AAC3C,SAASC,cAAc,QAAQ,qBAAoB;AACnD,SAASC,OAAO,QAAQ,sBAAqB;AAC7C,SAASC,aAAa,EAAEC,QAAQ,QAAQ,gBAAe;AAEvD,MAAMC,YAAY;AAElB,OAAO,MAAMC,sBAAiD,CAACC;IAC7D,MAAM,EACJC,KAAK,EACLA,OAAO,EAAEC,OAAO,EAAEC,SAAS,EAAEC,WAAW,EAAEC,UAAU,EAAE,GAAG,CAAC,CAAC,EAAEC,MAAM,EAAEC,KAAK,EAAE,EAC5EC,SAAS,EACTC,UAAU,EACVC,gBAAgB,EAChBC,IAAI,EACJC,WAAW,EACXC,QAAQ,EACRC,YA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QV,SAASD,eAAenB,SAASyB,iCACxC,MAACG;4BAAIhC,WAAW,GAAGL,UAAU,QAAQ,CAAC;;gCACnCuC,QAAQV,SAASD,eAAenB,wBAC/B,MAACmC;;sDACC,KAAC1D;4CACC2D,iBAAiBhB;4CACjBiB,wBACE,KAACC;gDAAG1C,WAAW,GAAGL,UAAU,OAAO,CAAC;0DAClC,cAAA,KAACZ;oDACC4D,IAAG;oDACHvC,OAAO7B,eAAe6B,OAAOW;oDAC7B6B,WAAW;oDACXpC,MAAMA;oDACNqC,UAAU;;;;sDAKlB,KAAChE;4CACC2D,iBAAiBjB;4CACjBkB,wBAAU,KAAC3D;gDAAiBmB,aAAaA;gDAAaO,MAAMA;;;;;gCAIjEqB,gCAAkB,KAACjD;oCAAUkE,OAAOnB;oCAAYZ,MAAMA;oCAAMgC,WAAW;;;;wBAG3EzB;wBACA,uCAAuC,GACvC9C,aAAasB,uBACZ,KAACb;4BACCkB,QAAQA;4BACR6C,SAAQ;4BACRC,iBAAgB;4BAChB3C,YAAYE;4BACZD,kBAAkBI;4BAClBF,aAAaA,gBAAgB,OAAOA,cAAcA,aAAaN;4BAC/DO,UAAUA;2CAGZ,KAACzB;4BACCkB,QAAQA;4BACR6C,SAAQ;4BACRC,iBAAiB5C;4BACjBC,YAAYA;4BACZC,kBAAkBA;4BAClBE,aAAaA;4BACbC,UAAUA;;;;;YAKjBW;;;AAGP,EAAC;AAED,SAAS5B,aAAa,EAAEC,QAAQ,GAAE;AAElC,OAAO,MAAMwD,aAAa/D,cAAcS,qBAAoB"}
@@ -50,8 +50,8 @@ const NumberFieldComponent = (props)=>{
50
50
  onChangeFromProps,
51
51
  setValue
52
52
  ]);
53
- const [valueToRender, setValueToRender] = useState([]) // Only for hasMany
54
- ;
53
+ const [valueToRender, setValueToRender] = useState([]);
54
+ // Only for hasMany
55
55
  const handleHasManyChange = useCallback((selectedOption)=>{
56
56
  if (!(readOnly || disabled)) {
57
57
  let newValue;
@@ -77,6 +77,7 @@ const NumberFieldComponent = (props)=>{
77
77
  setValueToRender(value.map((val, index)=>{
78
78
  return {
79
79
  id: `${val}${index}`,
80
+ // append index to avoid duplicate keys but allow duplicate numbers
80
81
  label: `${val}`,
81
82
  value: {
82
83
  toString: ()=>`${val}${index}`,
@@ -85,7 +86,8 @@ const NumberFieldComponent = (props)=>{
85
86
  };
86
87
  }));
87
88
  }
88
- }, [
89
+ }, // You're probably wondering, why the hell is this done that way? Well, React-select automatically uses "label-value" as a key, so we will get that react duplicate key warning if we just pass in the value as multiple values can be the same. So we need to append the index to the toString() of the value to avoid that warning, as it uses that as the key.
90
+ [
89
91
  value,
90
92
  hasMany
91
93
  ]);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/fields/Number/index.tsx"],"sourcesContent":["'use client'\nimport type { NumberFieldClientComponent, NumberFieldClientProps } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { isNumber } from 'payload/shared'\nimport React, { useCallback, useEffect, useMemo, useState } from 'react'\n\nimport type { Option } from '../../elements/ReactSelect/types.js'\n\nimport { ReactSelect } from '../../elements/ReactSelect/index.js'\nimport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { FieldDescription } from '../FieldDescription/index.js'\nimport { FieldError } from '../FieldError/index.js'\nimport { FieldLabel } from '../FieldLabel/index.js'\nimport { mergeFieldStyles } from '../mergeFieldStyles.js'\nimport './index.scss'\nimport { fieldBaseClass } from '../shared/index.js'\n\nconst NumberFieldComponent: NumberFieldClientComponent = (props) => {\n const {\n field,\n field: {\n admin: {\n className,\n description,\n placeholder: placeholderFromProps,\n step = 1,\n } = {} as NumberFieldClientProps['field']['admin'],\n hasMany = false,\n label,\n localized,\n max = Infinity,\n maxRows = Infinity,\n min = -Infinity,\n required,\n },\n onChange: onChangeFromProps,\n path: pathFromProps,\n readOnly,\n validate,\n } = props\n\n const { i18n, t } = useTranslation()\n\n const memoizedValidate = useCallback(\n (value, options) => {\n if (typeof validate === 'function') {\n return validate(value, { ...options, max, min, required })\n }\n },\n [validate, min, max, required],\n )\n\n const {\n customComponents: { AfterInput, BeforeInput, Description, Error, Label } = {},\n disabled,\n path,\n setValue,\n showError,\n value,\n } = useField<number | number[]>({\n potentiallyStalePath: pathFromProps,\n validate: memoizedValidate,\n })\n\n const handleChange = useCallback(\n (e) => {\n const val = parseFloat(e.target.value)\n let newVal = val\n\n if (Number.isNaN(val)) {\n newVal = null\n }\n\n if (typeof onChangeFromProps === 'function') {\n onChangeFromProps(newVal)\n }\n\n setValue(newVal)\n },\n [onChangeFromProps, setValue],\n )\n\n const [valueToRender, setValueToRender] = useState<\n { id: string; label: string; value: { value: number } }[]\n >([]) // Only for hasMany\n\n const handleHasManyChange = useCallback(\n (selectedOption) => {\n if (!(readOnly || disabled)) {\n let newValue\n if (!selectedOption) {\n newValue = []\n } else if (Array.isArray(selectedOption)) {\n newValue = selectedOption.map((option) => Number(option.value?.value || option.value))\n } else {\n newValue = [Number(selectedOption.value?.value || selectedOption.value)]\n }\n\n setValue(newValue)\n }\n },\n [readOnly, disabled, setValue],\n )\n\n // useEffect update valueToRender:\n useEffect(() => {\n if (hasMany && Array.isArray(value)) {\n setValueToRender(\n value.map((val, index) => {\n return {\n id: `${val}${index}`, // append index to avoid duplicate keys but allow duplicate numbers\n label: `${val}`,\n value: {\n toString: () => `${val}${index}`,\n value: (val as unknown as Record<string, number>)?.value || val,\n }, // You're probably wondering, why the hell is this done that way? Well, React-select automatically uses \"label-value\" as a key, so we will get that react duplicate key warning if we just pass in the value as multiple values can be the same. So we need to append the index to the toString() of the value to avoid that warning, as it uses that as the key.\n }\n }),\n )\n }\n }, [value, hasMany])\n\n const styles = useMemo(() => mergeFieldStyles(field), [field])\n\n const placeholder = getTranslation(placeholderFromProps, i18n)\n\n return (\n <div\n className={[\n fieldBaseClass,\n 'number',\n className,\n showError && 'error',\n (readOnly || disabled) && 'read-only',\n hasMany && 'has-many',\n ]\n .filter(Boolean)\n .join(' ')}\n style={styles}\n >\n <RenderCustomComponent\n CustomComponent={Label}\n Fallback={\n <FieldLabel label={label} localized={localized} path={path} required={required} />\n }\n />\n <div className={`${fieldBaseClass}__wrap`}>\n <RenderCustomComponent\n CustomComponent={Error}\n Fallback={<FieldError path={path} showError={showError} />}\n />\n {BeforeInput}\n {hasMany ? (\n <ReactSelect\n className={`field-${path.replace(/\\./g, '__')}`}\n disabled={readOnly || disabled}\n filterOption={(_, rawInput) => {\n const isOverHasMany = Array.isArray(value) && value.length >= maxRows\n return isNumber(rawInput) && !isOverHasMany\n }}\n isClearable\n isCreatable\n isMulti\n isSortable\n noOptionsMessage={() => {\n const isOverHasMany = Array.isArray(value) && value.length >= maxRows\n if (isOverHasMany) {\n return t('validation:limitReached', { max: maxRows, value: value.length + 1 })\n }\n return null\n }}\n // numberOnly\n onChange={handleHasManyChange}\n options={[]}\n placeholder={placeholder}\n showError={showError}\n value={valueToRender as Option[]}\n />\n ) : (\n <div>\n <input\n disabled={readOnly || disabled}\n id={`field-${path.replace(/\\./g, '__')}`}\n max={max}\n min={min}\n name={path}\n onChange={handleChange}\n onWheel={(e) => {\n // @ts-expect-error\n e.target.blur()\n }}\n placeholder={placeholder}\n step={step}\n type=\"number\"\n value={typeof value === 'number' ? value : ''}\n />\n </div>\n )}\n {AfterInput}\n <RenderCustomComponent\n CustomComponent={Description}\n Fallback={<FieldDescription description={description} path={path} />}\n />\n </div>\n </div>\n )\n}\n\nexport const NumberField = withCondition(NumberFieldComponent)\n"],"names":["getTranslation","isNumber","React","useCallback","useEffect","useMemo","useState","ReactSelect","RenderCustomComponent","useField","withCondition","useTranslation","FieldDescription","FieldError","FieldLabel","mergeFieldStyles","fieldBaseClass","NumberFieldComponent","props","field","admin","className","description","placeholder","placeholderFromProps","step","hasMany","label","localized","max","Infinity","maxRows","min","required","onChange","onChangeFromProps","path","pathFromProps","readOnly","validate","i18n","t","memoizedValidate","value","options","customComponents","AfterInput","BeforeInput","Description","Error","Label","disabled","setValue","showError","potentiallyStalePath","handleChange","e","val","parseFloat","target","newVal","Number","isNaN","valueToRender","setValueToRender","handleHasManyChange","selectedOption","newValue","Array","isArray","map","option","index","id","toString","styles","div","filter","Boolean","join","style","CustomComponent","Fallback","replace","filterOption","_","rawInput","isOverHasMany","length","isClearable","isCreatable","isMulti","isSortable","noOptionsMessage","input","name","onWheel","blur","type","NumberField"],"mappings":"AAAA;;AAGA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,SAASC,QAAQ,QAAQ,iBAAgB;AACzC,OAAOC,SAASC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,QAAO;AAIxE,SAASC,WAAW,QAAQ,sCAAqC;AACjE,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,SAASC,QAAQ,QAAQ,gCAA+B;AACxD,SAASC,aAAa,QAAQ,qCAAoC;AAClE,SAASC,cAAc,QAAQ,uCAAsC;AACrE,SAASC,gBAAgB,QAAQ,+BAA8B;AAC/D,SAASC,UAAU,QAAQ,yBAAwB;AACnD,SAASC,UAAU,QAAQ,yBAAwB;AACnD,SAASC,gBAAgB,QAAQ,yBAAwB;AACzD,OAAO,eAAc;AACrB,SAASC,cAAc,QAAQ,qBAAoB;AAEnD,MAAMC,uBAAmD,CAACC;IACxD,MAAM,EACJC,KAAK,EACLA,OAAO,EACLC,OAAO,EACLC,SAAS,EACTC,WAAW,EACXC,aAAaC,oBAAoB,EACjCC,OAAO,CAAC,EACT,GAAG,CAAC,CAA6C,EAClDC,UAAU,KAAK,EACfC,KAAK,EACLC,SAAS,EACTC,MAAMC,QAAQ,EACdC,UAAUD,QAAQ,EAClBE,MAAM,CAACF,QAAQ,EACfG,QAAQ,EACT,EACDC,UAAUC,iBAAiB,EAC3BC,MAAMC,aAAa,EACnBC,QAAQ,EACRC,QAAQ,EACT,GAAGrB;IAEJ,MAAM,EAAEsB,IAAI,EA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AW;wBACXC,OAAO;wBACPC,UAAU;wBACVC,kBAAkB;4BAChB,MAAMN,gBAAgBnB,MAAMC,OAAO,CAAC1B,UAAUA,MAAM6C,MAAM,IAAIzD;4BAC9D,IAAIwD,eAAe;gCACjB,OAAO9C,EAAE,2BAA2B;oCAAEZ,KAAKE;oCAASY,OAAOA,MAAM6C,MAAM,GAAG;gCAAE;4BAC9E;4BACA,OAAO;wBACT;wBACA,aAAa;wBACbtD,UAAU+B;wBACVrB,SAAS,EAAE;wBACXrB,aAAaA;wBACb8B,WAAWA;wBACXV,OAAOoB;uCAGT,KAACa;kCACC,cAAA,KAACkB;4BACC3C,UAAUb,YAAYa;4BACtBsB,IAAI,CAAC,MAAM,EAAErC,KAAK+C,OAAO,CAAC,OAAO,OAAO;4BACxCtD,KAAKA;4BACLG,KAAKA;4BACL+D,MAAM3D;4BACNF,UAAUqB;4BACVyC,SAAS,CAACxC;gCACR,mBAAmB;gCACnBA,EAAEG,MAAM,CAACsC,IAAI;4BACf;4BACA1E,aAAaA;4BACbE,MAAMA;4BACNyE,MAAK;4BACLvD,OAAO,OAAOA,UAAU,WAAWA,QAAQ;;;oBAIhDG;kCACD,KAACtC;wBACCyE,iBAAiBjC;wBACjBkC,wBAAU,KAACtE;4BAAiBU,aAAaA;4BAAac,MAAMA;;;;;;;AAKtE;AAEA,OAAO,MAAM+D,cAAczF,cAAcO,sBAAqB"}
1
+ {"version":3,"sources":["../../../src/fields/Number/index.tsx"],"sourcesContent":["'use client'\nimport type { NumberFieldClientComponent, NumberFieldClientProps } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { isNumber } from 'payload/shared'\nimport React, { useCallback, useEffect, useMemo, useState } from 'react'\n\nimport type { Option } from '../../elements/ReactSelect/types.js'\n\nimport { ReactSelect } from '../../elements/ReactSelect/index.js'\nimport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { FieldDescription } from '../FieldDescription/index.js'\nimport { FieldError } from '../FieldError/index.js'\nimport { FieldLabel } from '../FieldLabel/index.js'\nimport { mergeFieldStyles } from '../mergeFieldStyles.js'\nimport './index.scss'\nimport { fieldBaseClass } from '../shared/index.js'\n\nconst NumberFieldComponent: NumberFieldClientComponent = (props) => {\n const {\n field,\n field: {\n admin: {\n className,\n description,\n placeholder: placeholderFromProps,\n step = 1,\n } = {} as NumberFieldClientProps['field']['admin'],\n hasMany = false,\n label,\n localized,\n max = Infinity,\n maxRows = Infinity,\n min = -Infinity,\n required,\n },\n onChange: onChangeFromProps,\n path: pathFromProps,\n readOnly,\n validate,\n } = props\n\n const { i18n, t } = useTranslation()\n\n const memoizedValidate = useCallback(\n (value, options) => {\n if (typeof validate === 'function') {\n return validate(value, { ...options, max, min, required })\n }\n },\n [validate, min, max, required],\n )\n\n const {\n customComponents: { AfterInput, BeforeInput, Description, Error, Label } = {},\n disabled,\n path,\n setValue,\n showError,\n value,\n } = useField<number | number[]>({\n potentiallyStalePath: pathFromProps,\n validate: memoizedValidate,\n })\n\n const handleChange = useCallback(\n (e) => {\n const val = parseFloat(e.target.value)\n let newVal = val\n\n if (Number.isNaN(val)) {\n newVal = null\n }\n\n if (typeof onChangeFromProps === 'function') {\n onChangeFromProps(newVal)\n }\n\n setValue(newVal)\n },\n [onChangeFromProps, setValue],\n )\n\n const [valueToRender, setValueToRender] = useState<\n { id: string; label: string; value: { value: number } }[]\n >([]) // Only for hasMany\n\n const handleHasManyChange = useCallback(\n (selectedOption) => {\n if (!(readOnly || disabled)) {\n let newValue\n if (!selectedOption) {\n newValue = []\n } else if (Array.isArray(selectedOption)) {\n newValue = selectedOption.map((option) => Number(option.value?.value || option.value))\n } else {\n newValue = [Number(selectedOption.value?.value || selectedOption.value)]\n }\n\n setValue(newValue)\n }\n },\n [readOnly, disabled, setValue],\n )\n\n // useEffect update valueToRender:\n useEffect(() => {\n if (hasMany && Array.isArray(value)) {\n setValueToRender(\n value.map((val, index) => {\n return {\n id: `${val}${index}`, // append index to avoid duplicate keys but allow duplicate numbers\n label: `${val}`,\n value: {\n toString: () => `${val}${index}`,\n value: (val as unknown as Record<string, number>)?.value || val,\n }, // You're probably wondering, why the hell is this done that way? Well, React-select automatically uses \"label-value\" as a key, so we will get that react duplicate key warning if we just pass in the value as multiple values can be the same. So we need to append the index to the toString() of the value to avoid that warning, as it uses that as the key.\n }\n }),\n )\n }\n }, [value, hasMany])\n\n const styles = useMemo(() => mergeFieldStyles(field), [field])\n\n const placeholder = getTranslation(placeholderFromProps, i18n)\n\n return (\n <div\n className={[\n fieldBaseClass,\n 'number',\n className,\n showError && 'error',\n (readOnly || disabled) && 'read-only',\n hasMany && 'has-many',\n ]\n .filter(Boolean)\n .join(' ')}\n style={styles}\n >\n <RenderCustomComponent\n CustomComponent={Label}\n Fallback={\n <FieldLabel label={label} localized={localized} path={path} required={required} />\n }\n />\n <div className={`${fieldBaseClass}__wrap`}>\n <RenderCustomComponent\n CustomComponent={Error}\n Fallback={<FieldError path={path} showError={showError} />}\n />\n {BeforeInput}\n {hasMany ? (\n <ReactSelect\n className={`field-${path.replace(/\\./g, '__')}`}\n disabled={readOnly || disabled}\n filterOption={(_, rawInput) => {\n const isOverHasMany = Array.isArray(value) && value.length >= maxRows\n return isNumber(rawInput) && !isOverHasMany\n }}\n isClearable\n isCreatable\n isMulti\n isSortable\n noOptionsMessage={() => {\n const isOverHasMany = Array.isArray(value) && value.length >= maxRows\n if (isOverHasMany) {\n return t('validation:limitReached', { max: maxRows, value: value.length + 1 })\n }\n return null\n }}\n // numberOnly\n onChange={handleHasManyChange}\n options={[]}\n placeholder={placeholder}\n showError={showError}\n value={valueToRender as Option[]}\n />\n ) : (\n <div>\n <input\n disabled={readOnly || disabled}\n id={`field-${path.replace(/\\./g, '__')}`}\n max={max}\n min={min}\n name={path}\n onChange={handleChange}\n onWheel={(e) => {\n // @ts-expect-error\n e.target.blur()\n }}\n placeholder={placeholder}\n step={step}\n type=\"number\"\n value={typeof value === 'number' ? value : ''}\n />\n </div>\n )}\n {AfterInput}\n <RenderCustomComponent\n CustomComponent={Description}\n Fallback={<FieldDescription description={description} path={path} />}\n />\n </div>\n </div>\n )\n}\n\nexport const NumberField = withCondition(NumberFieldComponent)\n"],"names":["getTranslation","isNumber","React","useCallback","useEffect","useMemo","useState","ReactSelect","RenderCustomComponent","useField","withCondition","useTranslation","FieldDescription","FieldError","FieldLabel","mergeFieldStyles","fieldBaseClass","NumberFieldComponent","props","field","admin","className","description","placeholder","placeholderFromProps","step","hasMany","label","localized","max","Infinity","maxRows","min","required","onChange","onChangeFromProps","path","pathFromProps","readOnly","validate","i18n","t","memoizedValidate","value","options","customComponents","AfterInput","BeforeInput","Description","Error","Label","disabled","setValue","showError","potentiallyStalePath","handleChange","e","val","parseFloat","target","newVal","Number","isNaN","valueToRender","setValueToRender","handleHasManyChange","selectedOption","newValue","Array","isArray","map","option","index","id","toString","styles","div","filter","Boolean","join","style","CustomComponent","Fallback","replace","filterOption","_","rawInput","isOverHasMany","length","isClearable","isCreatable","isMulti","isSortable","noOptionsMessage","input","name","onWheel","blur","type","NumberField"],"mappings":"AAAA;;AAGA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,SAASC,QAAQ,QAAQ,iBAAgB;AACzC,OAAOC,SAASC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,QAAO;AAIxE,SAASC,WAAW,QAAQ,sCAAqC;AACjE,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,SAASC,QAAQ,QAAQ,gCAA+B;AACxD,SAASC,aAAa,QAAQ,qCAAoC;AAClE,SAASC,cAAc,QAAQ,uCAAsC;AACrE,SAASC,gBAAgB,QAAQ,+BAA8B;AAC/D,SAASC,UAAU,QAAQ,yBAAwB;AACnD,SAASC,UAAU,QAAQ,yBAAwB;AACnD,SAASC,gBAAgB,QAAQ,yBAAwB;AACzD,OAAO,eAAc;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,wBAAU,KAACtE;4BAAiBU,aAAaA;4BAAac,MAAMA;;;;;;;AAKtE;AAEA,OAAO,MAAM+D,cAAczF,cAAcO,sBAAqB"}
@@ -1,3 +1,13 @@
1
- export { };
1
+ /**
2
+ * @default ''
3
+ */ /**
4
+ * @default ''
5
+ */ /**
6
+ * @default ''
7
+ */ /**
8
+ * @default field.name
9
+ */ /**
10
+ * @default field.name
11
+ */ export { };
2
12
 
3
13
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/fields/Password/types.ts"],"sourcesContent":["import type {\n FieldBaseClient,\n PasswordFieldValidation,\n StaticDescription,\n TextFieldClient,\n} from 'payload'\nimport type { ChangeEvent, CSSProperties } from 'react'\nimport type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nexport type PasswordFieldProps = {\n readonly autoComplete?: string\n readonly field: MarkOptional<TextFieldClient, 'type'>\n /**\n * @default ''\n */\n readonly indexPath?: string\n readonly inputRef?: React.RefObject<HTMLInputElement>\n /**\n * @default ''\n */\n readonly parentPath?: string\n /**\n * @default ''\n */\n readonly parentSchemaPath?: string\n /**\n * @default field.name\n */\n readonly path: string\n /**\n * @default field.name\n */\n readonly schemaPath?: string\n readonly validate?: PasswordFieldValidation\n}\n\nexport type PasswordInputProps = {\n readonly AfterInput?: React.ReactNode\n readonly autoComplete?: string\n readonly BeforeInput?: React.ReactNode\n readonly className?: string\n readonly description?: StaticDescription\n readonly Description?: React.ReactNode\n readonly Error?: React.ReactNode\n readonly field?: MarkOptional<TextFieldClient, 'type'>\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly Label?: React.ReactNode\n readonly label: FieldBaseClient['label']\n readonly localized?: boolean\n readonly onChange?: (e: ChangeEvent<HTMLInputElement>) => void\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly path: string\n readonly placeholder?: Record<string, string> | string\n readonly readOnly?: boolean\n readonly required?: boolean\n readonly rtl?: boolean\n readonly showError?: boolean\n readonly style?: React.CSSProperties\n readonly value?: string\n readonly width?: CSSProperties['width']\n}\n"],"names":[],"mappings":"AAqCA,WAwBC"}
1
+ {"version":3,"sources":["../../../src/fields/Password/types.ts"],"sourcesContent":["import type {\n FieldBaseClient,\n PasswordFieldValidation,\n StaticDescription,\n TextFieldClient,\n} from 'payload'\nimport type { ChangeEvent, CSSProperties } from 'react'\nimport type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nexport type PasswordFieldProps = {\n readonly autoComplete?: string\n readonly field: MarkOptional<TextFieldClient, 'type'>\n /**\n * @default ''\n */\n readonly indexPath?: string\n readonly inputRef?: React.RefObject<HTMLInputElement>\n /**\n * @default ''\n */\n readonly parentPath?: string\n /**\n * @default ''\n */\n readonly parentSchemaPath?: string\n /**\n * @default field.name\n */\n readonly path: string\n /**\n * @default field.name\n */\n readonly schemaPath?: string\n readonly validate?: PasswordFieldValidation\n}\n\nexport type PasswordInputProps = {\n readonly AfterInput?: React.ReactNode\n readonly autoComplete?: string\n readonly BeforeInput?: React.ReactNode\n readonly className?: string\n readonly description?: StaticDescription\n readonly Description?: React.ReactNode\n readonly Error?: React.ReactNode\n readonly field?: MarkOptional<TextFieldClient, 'type'>\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly Label?: React.ReactNode\n readonly label: FieldBaseClient['label']\n readonly localized?: boolean\n readonly onChange?: (e: ChangeEvent<HTMLInputElement>) => void\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly path: string\n readonly placeholder?: Record<string, string> | string\n readonly readOnly?: boolean\n readonly required?: boolean\n readonly rtl?: boolean\n readonly showError?: boolean\n readonly style?: React.CSSProperties\n readonly value?: string\n readonly width?: CSSProperties['width']\n}\n"],"names":[],"mappings":"AAaE;;GAEC,GAGD;;GAEC,GAED;;GAEC,GAED;;GAEC,GAED;;GAEC,GAKH,WAwBC"}
@@ -84,7 +84,7 @@ export const PointFieldComponent = (props)=>{
84
84
  className: "input-wrapper",
85
85
  children: [
86
86
  BeforeInput,
87
- /*#__PURE__*/ _jsx("input", {
87
+ /* disable eslint rule because the label is dynamic */ /* eslint-disable-next-line jsx-a11y/control-has-associated-label */ /*#__PURE__*/ _jsx("input", {
88
88
  disabled: readOnly || disabled,
89
89
  id: `field-longitude-${path?.replace(/\./g, '__')}`,
90
90
  name: `${path}.longitude`,
@@ -121,7 +121,7 @@ export const PointFieldComponent = (props)=>{
121
121
  })
122
122
  }),
123
123
  BeforeInput,
124
- /*#__PURE__*/ _jsx("input", {
124
+ /* disable eslint rule because the label is dynamic */ /* eslint-disable-next-line jsx-a11y/control-has-associated-label */ /*#__PURE__*/ _jsx("input", {
125
125
  disabled: readOnly || disabled,
126
126
  id: `field-latitude-${path?.replace(/\./g, '__')}`,
127
127
  name: `${path}.latitude`,