@payloadcms/ui 4.0.0-internal.203916b → 4.0.0-internal.21664f3

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 (413) hide show
  1. package/dist/css/z-index.css +9 -0
  2. package/dist/elements/APIKeyInput/index.css +4 -4
  3. package/dist/elements/AnimateHeight/usePatchAnimateHeight.d.ts.map +1 -1
  4. package/dist/elements/AppHeader/index.css +2 -15
  5. package/dist/elements/AppHeader/index.d.ts.map +1 -1
  6. package/dist/elements/AppHeader/index.js +5 -9
  7. package/dist/elements/AppHeader/index.js.map +1 -1
  8. package/dist/elements/Button/index.d.ts.map +1 -1
  9. package/dist/elements/ClipboardAction/ClipboardActionLabel.d.ts.map +1 -1
  10. package/dist/elements/CodeEditor/CodeEditor.d.ts.map +1 -1
  11. package/dist/elements/CodeEditor/index.css +5 -0
  12. package/dist/elements/ColumnSelection/Popup.d.ts.map +1 -1
  13. package/dist/elements/ColumnSelection/Popup.js +5 -1
  14. package/dist/elements/ColumnSelection/Popup.js.map +1 -1
  15. package/dist/elements/ColumnSelection/matchesColumnSearch.d.ts +10 -0
  16. package/dist/elements/ColumnSelection/matchesColumnSearch.d.ts.map +1 -0
  17. package/dist/elements/ColumnSelection/matchesColumnSearch.js +21 -0
  18. package/dist/elements/ColumnSelection/matchesColumnSearch.js.map +1 -0
  19. package/dist/elements/ColumnSelection/matchesColumnSearch.spec.js +87 -0
  20. package/dist/elements/ColumnSelection/matchesColumnSearch.spec.js.map +1 -0
  21. package/dist/elements/DatePicker/DatePicker.d.ts.map +1 -1
  22. package/dist/elements/DatePicker/getFormattedLocale.d.ts.map +1 -1
  23. package/dist/elements/Dialog/DialogTitle/index.d.ts.map +1 -1
  24. package/dist/elements/DocumentControls/index.css +0 -2
  25. package/dist/elements/DocumentControls/index.d.ts +2 -2
  26. package/dist/elements/DocumentControls/index.d.ts.map +1 -1
  27. package/dist/elements/DocumentControls/index.js.map +1 -1
  28. package/dist/elements/DocumentDrawer/DrawerHeader/index.d.ts +2 -2
  29. package/dist/elements/DocumentDrawer/DrawerHeader/index.d.ts.map +1 -1
  30. package/dist/elements/DocumentDrawer/DrawerHeader/index.js.map +1 -1
  31. package/dist/elements/DocumentHeader/Tabs/tabs/index.d.ts.map +1 -1
  32. package/dist/elements/DocumentLocked/index.d.ts +2 -2
  33. package/dist/elements/DocumentLocked/index.d.ts.map +1 -1
  34. package/dist/elements/DocumentLocked/index.js.map +1 -1
  35. package/dist/elements/DraggableSortable/useDraggableSortable/index.d.ts.map +1 -1
  36. package/dist/elements/Drawer/index.d.ts.map +1 -1
  37. package/dist/elements/Drawer/index.js +1 -0
  38. package/dist/elements/Drawer/index.js.map +1 -1
  39. package/dist/elements/Drawer/useDrawerSlug.d.ts.map +1 -1
  40. package/dist/elements/DrawerActionHeader/index.d.ts.map +1 -1
  41. package/dist/elements/FieldSelect/reduceFieldOptions.d.ts.map +1 -1
  42. package/dist/elements/HTMLDiff/diff/index.d.ts.map +1 -1
  43. package/dist/elements/HTMLDiff/index.d.ts.map +1 -1
  44. package/dist/elements/Hierarchy/ColumnBrowser/index.d.ts.map +1 -1
  45. package/dist/elements/Hierarchy/Modal/index.d.ts.map +1 -1
  46. package/dist/elements/Hierarchy/Modal/useHierarchyModal.d.ts.map +1 -1
  47. package/dist/elements/Hierarchy/Search/useHierarchySearch.d.ts.map +1 -1
  48. package/dist/elements/Hierarchy/Tree/TreeFocusContext.d.ts +1 -1
  49. package/dist/elements/Hierarchy/Tree/TreeFocusContext.d.ts.map +1 -1
  50. package/dist/elements/Hierarchy/Tree/TreeNode/index.d.ts.map +1 -1
  51. package/dist/elements/Hierarchy/Tree/useChildren.d.ts.map +1 -1
  52. package/dist/elements/LeaveWithoutSaving/index.d.ts.map +1 -1
  53. package/dist/elements/LeaveWithoutSaving/usePreventLeave.d.ts.map +1 -1
  54. package/dist/elements/ListControls/index.js +1 -1
  55. package/dist/elements/ListControls/index.js.map +1 -1
  56. package/dist/elements/ListDrawer/index.d.ts.map +1 -1
  57. package/dist/elements/LoadingOverlay/reducer.d.ts.map +1 -1
  58. package/dist/elements/Locked/index.css +7 -4
  59. package/dist/elements/Locked/index.d.ts +2 -2
  60. package/dist/elements/Locked/index.d.ts.map +1 -1
  61. package/dist/elements/Locked/index.js +66 -53
  62. package/dist/elements/Locked/index.js.map +1 -1
  63. package/dist/elements/Nav/index.css +0 -5
  64. package/dist/elements/Pagination/index.css +5 -0
  65. package/dist/elements/Pagination/index.d.ts.map +1 -1
  66. package/dist/elements/Pagination/index.js +21 -21
  67. package/dist/elements/Pagination/index.js.map +1 -1
  68. package/dist/elements/PublishButton/ScheduleDrawer/buildUpcomingColumns.d.ts.map +1 -1
  69. package/dist/elements/PublishButton/ScheduleDrawer/buildUpcomingScheduleWhere.d.ts.map +1 -1
  70. package/dist/elements/ReactSelect/DefaultMenuPortal.d.ts +7 -0
  71. package/dist/elements/ReactSelect/DefaultMenuPortal.d.ts.map +1 -0
  72. package/dist/elements/ReactSelect/DefaultMenuPortal.js +120 -0
  73. package/dist/elements/ReactSelect/DefaultMenuPortal.js.map +1 -0
  74. package/dist/elements/ReactSelect/getCaptureMenuScroll.d.ts.map +1 -1
  75. package/dist/elements/ReactSelect/getMenuListStyles.d.ts +1 -1
  76. package/dist/elements/ReactSelect/getMenuListStyles.d.ts.map +1 -1
  77. package/dist/elements/ReactSelect/getMenuListStyles.js +13 -5
  78. package/dist/elements/ReactSelect/getMenuListStyles.js.map +1 -1
  79. package/dist/elements/ReactSelect/getMenuStyles.d.ts +10 -0
  80. package/dist/elements/ReactSelect/getMenuStyles.d.ts.map +1 -0
  81. package/dist/elements/ReactSelect/getMenuStyles.js +21 -0
  82. package/dist/elements/ReactSelect/getMenuStyles.js.map +1 -0
  83. package/dist/elements/ReactSelect/index.css +8 -1
  84. package/dist/elements/ReactSelect/index.d.ts.map +1 -1
  85. package/dist/elements/ReactSelect/index.js +24 -101
  86. package/dist/elements/ReactSelect/index.js.map +1 -1
  87. package/dist/elements/ReactSelect/types.d.ts +1 -2
  88. package/dist/elements/ReactSelect/types.d.ts.map +1 -1
  89. package/dist/elements/ReactSelect/types.js.map +1 -1
  90. package/dist/elements/RelationshipTable/AddNewButton.d.ts +2 -2
  91. package/dist/elements/RelationshipTable/AddNewButton.d.ts.map +1 -1
  92. package/dist/elements/Search/ListSearchFilter/index.d.ts.map +1 -1
  93. package/dist/elements/Search/ListSearchFilter/index.js +1 -0
  94. package/dist/elements/Search/ListSearchFilter/index.js.map +1 -1
  95. package/dist/elements/Search/SearchInput/index.d.ts +2 -0
  96. package/dist/elements/Search/SearchInput/index.d.ts.map +1 -1
  97. package/dist/elements/Search/SearchInput/index.js +21 -18
  98. package/dist/elements/Search/SearchInput/index.js.map +1 -1
  99. package/dist/elements/SelectAll/index.css +3 -1
  100. package/dist/elements/SelectRow/index.d.ts +2 -2
  101. package/dist/elements/SelectRow/index.d.ts.map +1 -1
  102. package/dist/elements/SelectRow/index.js.map +1 -1
  103. package/dist/elements/Table/DefaultCell/fields/index.d.ts +1 -1
  104. package/dist/elements/Table/DefaultCell/fields/index.d.ts.map +1 -1
  105. package/dist/elements/Table/OrderableRow.d.ts.map +1 -1
  106. package/dist/elements/Table/OrderableRowDragPreview.d.ts.map +1 -1
  107. package/dist/elements/Table/index.css +18 -0
  108. package/dist/elements/Tabs/index.d.ts.map +1 -1
  109. package/dist/elements/Thumbnail/createThumbnail.d.ts.map +1 -1
  110. package/dist/elements/Upload/index.d.ts.map +1 -1
  111. package/dist/elements/UserMenu/SubMenuHeader/index.d.ts.map +1 -1
  112. package/dist/elements/UserMenu/SubMenuHeader/index.js +8 -9
  113. package/dist/elements/UserMenu/SubMenuHeader/index.js.map +1 -1
  114. package/dist/elements/UserMenu/index.css +26 -1
  115. package/dist/elements/WhereBuilder/Condition/Relationship/optionsReducer.d.ts.map +1 -1
  116. package/dist/elements/WhereBuilder/Condition/Select/formatOptions.d.ts.map +1 -1
  117. package/dist/elements/WhereBuilder/Condition/validOperators.d.ts.map +1 -1
  118. package/dist/elements/WhereBuilder/field-types.d.ts.map +1 -1
  119. package/dist/exports/client/index.d.ts +0 -1
  120. package/dist/exports/client/index.d.ts.map +1 -1
  121. package/dist/exports/client/index.js +1 -1
  122. package/dist/exports/client/index.js.map +3 -3
  123. package/dist/exports/layouts.d.ts +1 -0
  124. package/dist/exports/layouts.d.ts.map +1 -1
  125. package/dist/exports/layouts.js +1 -0
  126. package/dist/exports/layouts.js.map +1 -1
  127. package/dist/exports/shared/index.d.ts +1 -0
  128. package/dist/exports/shared/index.d.ts.map +1 -1
  129. package/dist/exports/shared/index.js +2 -2
  130. package/dist/exports/shared/index.js.map +4 -4
  131. package/dist/fields/Array/index.d.ts +1 -1
  132. package/dist/fields/Array/index.d.ts.map +1 -1
  133. package/dist/fields/Array/index.js +7 -4
  134. package/dist/fields/Array/index.js.map +1 -1
  135. package/dist/fields/Blocks/index.d.ts +1 -1
  136. package/dist/fields/Blocks/index.d.ts.map +1 -1
  137. package/dist/fields/Blocks/index.js +6 -3
  138. package/dist/fields/Blocks/index.js.map +1 -1
  139. package/dist/fields/Checkbox/index.d.ts +1 -1
  140. package/dist/fields/Code/index.css +1 -1
  141. package/dist/fields/Code/index.d.ts +2 -2
  142. package/dist/fields/Collapsible/index.d.ts +1 -1
  143. package/dist/fields/DateTime/index.d.ts +1 -1
  144. package/dist/fields/Email/index.d.ts +1 -1
  145. package/dist/fields/Group/index.d.ts +2 -2
  146. package/dist/fields/JSON/index.d.ts +1 -1
  147. package/dist/fields/Join/index.d.ts +1 -1
  148. package/dist/fields/Number/index.d.ts +1 -1
  149. package/dist/fields/Password/types.d.ts +3 -3
  150. package/dist/fields/Password/types.d.ts.map +1 -1
  151. package/dist/fields/Password/types.js.map +1 -1
  152. package/dist/fields/Point/index.d.ts +1 -1
  153. package/dist/fields/Relationship/findOptionsByValue.d.ts.map +1 -1
  154. package/dist/fields/Relationship/index.d.ts +1 -1
  155. package/dist/fields/Relationship/optionsReducer.d.ts.map +1 -1
  156. package/dist/fields/Row/index.d.ts +1 -1
  157. package/dist/fields/Select/index.d.ts +1 -1
  158. package/dist/fields/Select/index.d.ts.map +1 -1
  159. package/dist/fields/Slug/index.d.ts +7 -5
  160. package/dist/fields/Slug/index.d.ts.map +1 -1
  161. package/dist/fields/Slug/index.js +6 -4
  162. package/dist/fields/Slug/index.js.map +1 -1
  163. package/dist/fields/Tabs/index.d.ts +1 -1
  164. package/dist/fields/Text/index.d.ts +1 -1
  165. package/dist/fields/Text/types.d.ts +2 -2
  166. package/dist/fields/Text/types.d.ts.map +1 -1
  167. package/dist/fields/Text/types.js.map +1 -1
  168. package/dist/fields/Textarea/index.d.ts +1 -1
  169. package/dist/fields/index.d.ts.map +1 -1
  170. package/dist/fields/index.js +2 -0
  171. package/dist/fields/index.js.map +1 -1
  172. package/dist/fields/mergeFieldStyles.d.ts +1 -1
  173. package/dist/fields/mergeFieldStyles.d.ts.map +1 -1
  174. package/dist/forms/Form/context.d.ts.map +1 -1
  175. package/dist/forms/Form/createNestedClientFieldPath.d.ts.map +1 -1
  176. package/dist/forms/Form/errorMessages.d.ts.map +1 -1
  177. package/dist/forms/Form/mergeServerFormState.d.ts.map +1 -1
  178. package/dist/forms/Form/reduceToSerializableFields.d.ts.map +1 -1
  179. package/dist/forms/Form/rowHelpers.d.ts.map +1 -1
  180. package/dist/forms/Form/rows.d.ts.map +1 -1
  181. package/dist/forms/RenderFields/RenderField.d.ts +1 -1
  182. package/dist/forms/RenderFields/RenderField.d.ts.map +1 -1
  183. package/dist/forms/RenderFields/RenderField.js +10 -0
  184. package/dist/forms/RenderFields/RenderField.js.map +1 -1
  185. package/dist/forms/WatchChildErrors/buildPathSegments.d.ts.map +1 -1
  186. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.d.ts.map +1 -1
  187. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js +12 -4
  188. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js.map +1 -1
  189. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.d.ts.map +1 -1
  190. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.d.ts.map +1 -1
  191. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.d.ts.map +1 -1
  192. package/dist/forms/fieldSchemasToFormState/index.d.ts.map +1 -1
  193. package/dist/forms/fieldSchemasToFormState/iterateFields.d.ts.map +1 -1
  194. package/dist/forms/useField/index.d.ts.map +1 -1
  195. package/dist/forms/withCondition/index.d.ts +1 -1
  196. package/dist/forms/withCondition/index.d.ts.map +1 -1
  197. package/dist/hooks/useDebouncedCallback.d.ts.map +1 -1
  198. package/dist/hooks/useDelay.d.ts.map +1 -1
  199. package/dist/hooks/useElementHeightVariable.d.ts.map +1 -1
  200. package/dist/hooks/useHotkey.d.ts.map +1 -1
  201. package/dist/hooks/useIntersect.d.ts.map +1 -1
  202. package/dist/hooks/usePopupWindow.d.ts +1 -1
  203. package/dist/hooks/usePopupWindow.d.ts.map +1 -1
  204. package/dist/hooks/useRelatedCollections.d.ts.map +1 -1
  205. package/dist/hooks/useResize.d.ts.map +1 -1
  206. package/dist/hooks/useUseAsTitle.d.ts.map +1 -1
  207. package/dist/layouts/Root/index.d.ts.map +1 -1
  208. package/dist/layouts/Root/index.js +7 -3
  209. package/dist/layouts/Root/index.js.map +1 -1
  210. package/dist/layouts/Root/index.spec.js +20 -0
  211. package/dist/layouts/Root/index.spec.js.map +1 -0
  212. package/dist/layouts/Root/viewport.d.ts +5 -0
  213. package/dist/layouts/Root/viewport.d.ts.map +1 -0
  214. package/dist/layouts/Root/viewport.js +17 -0
  215. package/dist/layouts/Root/viewport.js.map +1 -0
  216. package/dist/providers/Auth/index.d.ts +6 -6
  217. package/dist/providers/Auth/index.d.ts.map +1 -1
  218. package/dist/providers/Auth/index.js.map +1 -1
  219. package/dist/providers/ClientFunction/index.d.ts.map +1 -1
  220. package/dist/providers/DocumentInfo/index.js.map +1 -1
  221. package/dist/providers/DocumentInfo/types.d.ts +5 -5
  222. package/dist/providers/DocumentInfo/types.d.ts.map +1 -1
  223. package/dist/providers/DocumentInfo/types.js.map +1 -1
  224. package/dist/providers/DocumentInfo/useGetDocPermissions.d.ts.map +1 -1
  225. package/dist/providers/ListQuery/index.d.ts.map +1 -1
  226. package/dist/providers/ListQuery/index.js +8 -1
  227. package/dist/providers/ListQuery/index.js.map +1 -1
  228. package/dist/providers/ListQuery/mergeQuery.d.ts.map +1 -1
  229. package/dist/providers/ListQuery/sanitizeQuery.d.ts.map +1 -1
  230. package/dist/providers/LivePreview/sizeReducer.d.ts +1 -1
  231. package/dist/providers/LivePreview/sizeReducer.d.ts.map +1 -1
  232. package/dist/providers/TableColumns/buildColumnState/filterFields.d.ts.map +1 -1
  233. package/dist/providers/TableColumns/buildColumnState/filterFieldsWithPermissions.d.ts.map +1 -1
  234. package/dist/providers/TableColumns/buildColumnState/findValueFromPath.d.ts.map +1 -1
  235. package/dist/providers/TableColumns/buildColumnState/index.d.ts.map +1 -1
  236. package/dist/providers/TableColumns/getInitialColumns.d.ts +1 -1
  237. package/dist/providers/TableColumns/getInitialColumns.d.ts.map +1 -1
  238. package/dist/providers/Theme/index.d.ts +2 -2
  239. package/dist/providers/Theme/index.d.ts.map +1 -1
  240. package/dist/providers/Theme/index.js +2 -1
  241. package/dist/providers/Theme/index.js.map +1 -1
  242. package/dist/providers/Theme/shared.d.ts +3 -0
  243. package/dist/providers/Theme/shared.d.ts.map +1 -0
  244. package/dist/providers/Theme/shared.js +2 -0
  245. package/dist/providers/Theme/shared.js.map +1 -0
  246. package/dist/providers/UploadEdits/index.d.ts.map +1 -1
  247. package/dist/providers/UploadHandlers/index.d.ts.map +1 -1
  248. package/dist/styles.css +11 -1
  249. package/dist/utilities/api.d.ts.map +1 -1
  250. package/dist/utilities/buildClientFieldSchemaMap/index.d.ts.map +1 -1
  251. package/dist/utilities/buildClientFieldSchemaMap/traverseFields.d.ts.map +1 -1
  252. package/dist/utilities/buildFieldSchemaMap/index.d.ts.map +1 -1
  253. package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts.map +1 -1
  254. package/dist/utilities/buildFormState.d.ts +2 -2
  255. package/dist/utilities/buildFormState.d.ts.map +1 -1
  256. package/dist/utilities/buildFormState.js.map +1 -1
  257. package/dist/utilities/checkDependencies.d.ts.map +1 -1
  258. package/dist/utilities/combineFieldLabel.d.ts.map +1 -1
  259. package/dist/utilities/copyDataFromLocale.d.ts.map +1 -1
  260. package/dist/utilities/copyDataFromLocale.js +1 -0
  261. package/dist/utilities/copyDataFromLocale.js.map +1 -1
  262. package/dist/utilities/filterOutUploadFields.d.ts.map +1 -1
  263. package/dist/utilities/findLocaleFromCode.d.ts.map +1 -1
  264. package/dist/utilities/formatAbsoluteURL.d.ts.map +1 -1
  265. package/dist/utilities/formatDocTitle/formatDateTitle.d.ts.map +1 -1
  266. package/dist/utilities/formatDocTitle/formatRelationshipTitle.d.ts.map +1 -1
  267. package/dist/utilities/formatDocTitle/index.d.ts +1 -1
  268. package/dist/utilities/formatDocTitle/index.d.ts.map +1 -1
  269. package/dist/utilities/formatDocTitle/index.js +1 -1
  270. package/dist/utilities/formatDocTitle/index.js.map +1 -1
  271. package/dist/utilities/formatFields.d.ts.map +1 -1
  272. package/dist/utilities/formatMetadata.d.ts.map +1 -1
  273. package/dist/utilities/generateFieldID.d.ts.map +1 -1
  274. package/dist/utilities/getColumns.d.ts.map +1 -1
  275. package/dist/utilities/getDisplayedFieldValue.d.ts.map +1 -1
  276. package/dist/utilities/getDocPreferences.d.ts.map +1 -1
  277. package/dist/utilities/getDocumentData.d.ts.map +1 -1
  278. package/dist/utilities/getDocumentPermissions.d.ts.map +1 -1
  279. package/dist/utilities/getGlobalData.d.ts +2 -2
  280. package/dist/utilities/getGlobalData.d.ts.map +1 -1
  281. package/dist/utilities/getGlobalData.js.map +1 -1
  282. package/dist/utilities/getHasScheduledPublish.d.ts.map +1 -1
  283. package/dist/utilities/getIsLocked.d.ts.map +1 -1
  284. package/dist/utilities/getLanguageDir.d.ts +12 -0
  285. package/dist/utilities/getLanguageDir.d.ts.map +1 -0
  286. package/dist/utilities/getLanguageDir.js +12 -0
  287. package/dist/utilities/getLanguageDir.js.map +1 -0
  288. package/dist/utilities/getOffsetTop.d.ts.map +1 -1
  289. package/dist/utilities/getRequestHighContrast.d.ts.map +1 -1
  290. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  291. package/dist/utilities/getRequestTheme.d.ts +1 -1
  292. package/dist/utilities/getRequestTheme.d.ts.map +1 -1
  293. package/dist/utilities/getRequestTheme.js +1 -1
  294. package/dist/utilities/getRequestTheme.js.map +1 -1
  295. package/dist/utilities/getRouteWithoutAdmin.d.ts.map +1 -1
  296. package/dist/utilities/getSupportedMonacoLocale.d.ts.map +1 -1
  297. package/dist/utilities/getVersions.d.ts.map +1 -1
  298. package/dist/utilities/handleAuthRedirect.d.ts.map +1 -1
  299. package/dist/utilities/handleBackToDashboard.d.ts.map +1 -1
  300. package/dist/utilities/handleFormStateLocking.d.ts.map +1 -1
  301. package/dist/utilities/handleGoBack.d.ts.map +1 -1
  302. package/dist/utilities/handleLivePreview.d.ts.map +1 -1
  303. package/dist/utilities/handlePreview.d.ts.map +1 -1
  304. package/dist/utilities/handleServerFunctions.d.ts.map +1 -1
  305. package/dist/utilities/handleStaleDataCheck.d.ts.map +1 -1
  306. package/dist/utilities/handleTakeOver.d.ts +5 -5
  307. package/dist/utilities/handleTakeOver.d.ts.map +1 -1
  308. package/dist/utilities/handleTakeOver.js.map +1 -1
  309. package/dist/utilities/hasOptionLabelJSXElement.d.ts.map +1 -1
  310. package/dist/utilities/hasSavePermission.d.ts.map +1 -1
  311. package/dist/utilities/initReq.d.ts.map +1 -1
  312. package/dist/utilities/isClientUserObject.d.ts +2 -2
  313. package/dist/utilities/isClientUserObject.d.ts.map +1 -1
  314. package/dist/utilities/isClientUserObject.js.map +1 -1
  315. package/dist/utilities/isCustomAdminView.d.ts.map +1 -1
  316. package/dist/utilities/isEditing.d.ts.map +1 -1
  317. package/dist/utilities/isPathMatchingRoute.d.ts.map +1 -1
  318. package/dist/utilities/isPublicAdminRoute.d.ts.map +1 -1
  319. package/dist/utilities/isURLAllowed.d.ts.map +1 -1
  320. package/dist/utilities/isURLAllowed.js +9 -3
  321. package/dist/utilities/isURLAllowed.js.map +1 -1
  322. package/dist/utilities/recentlyViewed.d.ts.map +1 -1
  323. package/dist/utilities/reduceFieldsToOptions.d.ts.map +1 -1
  324. package/dist/utilities/reduceFieldsToValuesWithValidation.d.ts.map +1 -1
  325. package/dist/utilities/renderTable.d.ts +2 -2
  326. package/dist/utilities/renderTable.d.ts.map +1 -1
  327. package/dist/utilities/resolveFilterOptions.d.ts +1 -1
  328. package/dist/utilities/resolveFilterOptions.d.ts.map +1 -1
  329. package/dist/utilities/sanitizeFilterOptionsQuery.d.ts.map +1 -1
  330. package/dist/utilities/scrollToID.d.ts.map +1 -1
  331. package/dist/utilities/selectiveCache.d.ts.map +1 -1
  332. package/dist/utilities/setsAreEqual.d.ts.map +1 -1
  333. package/dist/utilities/slugify.d.ts +1 -1
  334. package/dist/utilities/slugify.js +1 -1
  335. package/dist/utilities/slugify.js.map +1 -1
  336. package/dist/utilities/traverseForLocalizedFields.d.ts.map +1 -1
  337. package/dist/utilities/upsertPreferences.d.ts.map +1 -1
  338. package/dist/views/CollectionTrash/generateCollectionTrashMetadata.d.ts.map +1 -1
  339. package/dist/views/Dashboard/Default/index.d.ts +2 -2
  340. package/dist/views/Dashboard/Default/index.d.ts.map +1 -1
  341. package/dist/views/Dashboard/Default/index.js.map +1 -1
  342. package/dist/views/Document/getCustomDocumentViewByKey.d.ts +1 -1
  343. package/dist/views/Document/getCustomDocumentViewByKey.d.ts.map +1 -1
  344. package/dist/views/Document/getCustomViewByRoute.d.ts +1 -1
  345. package/dist/views/Document/getCustomViewByRoute.d.ts.map +1 -1
  346. package/dist/views/Document/getDocumentView.d.ts.map +1 -1
  347. package/dist/views/Document/getMetaBySegment.d.ts.map +1 -1
  348. package/dist/views/Document/index.d.ts +1 -1
  349. package/dist/views/Document/index.d.ts.map +1 -1
  350. package/dist/views/Document/recordRecentlyViewed.d.ts.map +1 -1
  351. package/dist/views/Edit/index.d.ts.map +1 -1
  352. package/dist/views/Edit/index.js.map +1 -1
  353. package/dist/views/HierarchyList/HierarchyTable/SlotTable.d.ts +2 -2
  354. package/dist/views/HierarchyList/HierarchyTable/SlotTable.d.ts.map +1 -1
  355. package/dist/views/HierarchyList/HierarchyTable/SlotTable.js.map +1 -1
  356. package/dist/views/HierarchyList/HierarchyTable/types.d.ts +2 -2
  357. package/dist/views/HierarchyList/HierarchyTable/types.d.ts.map +1 -1
  358. package/dist/views/HierarchyList/HierarchyTable/types.js.map +1 -1
  359. package/dist/views/HierarchyList/TypeFilter/index.d.ts.map +1 -1
  360. package/dist/views/HierarchyList/TypeFilter/index.js +3 -0
  361. package/dist/views/HierarchyList/TypeFilter/index.js.map +1 -1
  362. package/dist/views/HierarchyList/index.d.ts.map +1 -1
  363. package/dist/views/HierarchyList/index.js +2 -6
  364. package/dist/views/HierarchyList/index.js.map +1 -1
  365. package/dist/views/List/createSerializableValue.d.ts.map +1 -1
  366. package/dist/views/List/extractRelationshipDisplayValue.d.ts.map +1 -1
  367. package/dist/views/List/extractValueOrRelationshipID.d.ts.map +1 -1
  368. package/dist/views/List/generateListViewMetadata.d.ts.map +1 -1
  369. package/dist/views/List/handleGroupBy.d.ts.map +1 -1
  370. package/dist/views/List/handleHierarchy.d.ts +1 -1
  371. package/dist/views/List/handleHierarchy.d.ts.map +1 -1
  372. package/dist/views/List/index.d.ts.map +1 -1
  373. package/dist/views/List/renderListViewSlots.d.ts.map +1 -1
  374. package/dist/views/List/resolveAllFilterOptions.d.ts.map +1 -1
  375. package/dist/views/List/transformColumnsToSelect.d.ts.map +1 -1
  376. package/dist/views/NotFound/page.d.ts.map +1 -1
  377. package/dist/views/Root/generateCustomViewMetadata.d.ts.map +1 -1
  378. package/dist/views/Root/generatePageMetadata.d.ts.map +1 -1
  379. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts +1 -1
  380. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts.map +1 -1
  381. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts +1 -1
  382. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts.map +1 -1
  383. package/dist/views/Root/getCustomViewByKey.d.ts.map +1 -1
  384. package/dist/views/Root/getCustomViewByRoute.d.ts.map +1 -1
  385. package/dist/views/Root/getRouteData.d.ts.map +1 -1
  386. package/dist/views/Root/index.d.ts.map +1 -1
  387. package/dist/views/Unauthorized/index.d.ts.map +1 -1
  388. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +1 -1
  389. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +1 -1
  390. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts.map +1 -1
  391. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -1
  392. package/dist/views/Version/RenderFieldsToDiff/fields/index.js +1 -0
  393. package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -1
  394. package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -1
  395. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +1 -1
  396. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +1 -0
  397. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +1 -1
  398. package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts.map +1 -1
  399. package/dist/views/Versions/buildColumns.d.ts +1 -1
  400. package/dist/views/Versions/buildColumns.d.ts.map +1 -1
  401. package/dist/views/Versions/fetchVersions.d.ts +4 -4
  402. package/dist/views/Versions/fetchVersions.d.ts.map +1 -1
  403. package/dist/widgets/CollectionCards/getCollectionCardsData.d.ts +2 -2
  404. package/dist/widgets/CollectionCards/getCollectionCardsData.d.ts.map +1 -1
  405. package/dist/widgets/CollectionCards/getCollectionCardsData.js.map +1 -1
  406. package/dist/widgets/CollectionCards/index.client.js.map +1 -1
  407. package/dist/widgets/WidgetCard/index.css +1 -1
  408. package/package.json +7 -6
  409. package/dist/elements/Nav/NavToggler/index.css +0 -12
  410. package/dist/elements/Nav/NavToggler/index.d.ts +0 -9
  411. package/dist/elements/Nav/NavToggler/index.d.ts.map +0 -1
  412. package/dist/elements/Nav/NavToggler/index.js +0 -91
  413. package/dist/elements/Nav/NavToggler/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"handleLivePreview.d.ts","sourceRoot":"","sources":["../../src/utilities/handleLivePreview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,eAAe,EAChB,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,oBAAoB,GAAI,mEAKlC;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,oBAAoB,EAAE,OAAO,CAAA;CAC9B;;;;;;;;;wBAsHwhJ,CAAC;;oBAAoF,CAAC;;;;;;;CAlH7mJ,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,6CAIlC;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,KAAG,OAcH,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAU,+DAOrC;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,GAAG,EAAE,cAAc,CAAA;CACpB,KAAG,OAAO,CAAC;IACV,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,cAAc,CAAC,EAAE,kBAAkB,CAAA;CACpC,CAqDA,CAAA"}
1
+ {"version":3,"file":"handleLivePreview.d.ts","sourceRoot":"","sources":["../../src/utilities/handleLivePreview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,eAAe,EAChB,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,oBAAoB,sEAK9B;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,oBAAoB,EAAE,OAAO,CAAA;CAC9B;;;;;;;;;;;;;;;;;;CAIC,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,gDAI9B;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,KAAG,OAcH,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,kEAO3B;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,GAAG,EAAE,cAAc,CAAA;CACpB,KAAG,OAAO,CAAC;IACV,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,cAAc,CAAC,EAAE,kBAAkB,CAAA;CACpC,CAqDA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"handlePreview.d.ts","sourceRoot":"","sources":["../../src/utilities/handlePreview.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,SAAS,CAAA;AAEhB;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,qCAG9B;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,KAAG,OAQH,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAU,+DAOjC;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,GAAG,EAAE,cAAc,CAAA;CACpB,KAAG,OAAO,CAAC;IACV,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAoCA,CAAA"}
1
+ {"version":3,"file":"handlePreview.d.ts","sourceRoot":"","sources":["../../src/utilities/handlePreview.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,SAAS,CAAA;AAEhB;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,wCAG1B;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,KAAG,OAQH,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,kEAOvB;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,GAAG,EAAE,cAAc,CAAA;CACpB,KAAG,OAAO,CAAC;IACV,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAoCA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"handleServerFunctions.d.ts","sourceRoot":"","sources":["../../src/utilities/handleServerFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,aAAa,EAEb,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAgChB;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,oBAEzC;IACD,aAAa,EAAE,aAAa,CAAA;CAC7B,KAAG,qBAkCH,CAAA"}
1
+ {"version":3,"file":"handleServerFunctions.d.ts","sourceRoot":"","sources":["../../src/utilities/handleServerFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,aAAa,EAEb,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAgChB;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,uBAErC;IACD,aAAa,EAAE,aAAa,CAAA;CAC7B,KAAG,qBAkCH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"handleStaleDataCheck.d.ts","sourceRoot":"","sources":["../../src/utilities/handleStaleDataCheck.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,KAAK,IAAI,GAAG;IACV,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,KAAK,MAAM,GAAG;IACZ,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAU,6DAMxC,IAAI,KAAG,OAAO,CAAC,MAAM,CAwDvB,CAAA"}
1
+ {"version":3,"file":"handleStaleDataCheck.d.ts","sourceRoot":"","sources":["../../src/utilities/handleStaleDataCheck.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,KAAK,IAAI,GAAG;IACV,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,KAAK,MAAM,GAAG;IACZ,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,oBAAoB,gEAM9B,IAAI,KAAG,OAAO,CAAC,MAAM,CAwDvB,CAAA"}
@@ -1,20 +1,20 @@
1
- import type { ClientUser } from 'payload';
1
+ import type { AuthenticatedUser, User } from 'payload';
2
2
  export interface HandleTakeOverParams {
3
3
  clearRouteCache?: () => void;
4
4
  collectionSlug?: string;
5
5
  documentLockStateRef: React.RefObject<{
6
6
  hasShownLockedModal: boolean;
7
7
  isLocked: boolean;
8
- user: ClientUser | number | string;
8
+ user: number | string | User;
9
9
  }>;
10
10
  globalSlug?: string;
11
11
  id: number | string;
12
12
  isLockingEnabled: boolean;
13
13
  isWithinDoc: boolean;
14
- setCurrentEditor: (value: React.SetStateAction<ClientUser | number | string>) => void;
14
+ setCurrentEditor: (value: React.SetStateAction<number | string | User>) => void;
15
15
  setIsReadOnlyForIncomingUser?: (value: React.SetStateAction<boolean>) => void;
16
- updateDocumentEditor: (docID: number | string, slug: string, user: ClientUser | number | string) => Promise<void>;
17
- user: ClientUser | number | string;
16
+ updateDocumentEditor: (docID: number | string, slug: string, user: number | string | User) => Promise<void>;
17
+ user: AuthenticatedUser | number | string;
18
18
  }
19
19
  export declare const handleTakeOver: ({ id, clearRouteCache, collectionSlug, documentLockStateRef, globalSlug, isLockingEnabled, isWithinDoc, setCurrentEditor, setIsReadOnlyForIncomingUser, updateDocumentEditor, user, }: HandleTakeOverParams) => Promise<void>;
20
20
  //# sourceMappingURL=handleTakeOver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleTakeOver.d.ts","sourceRoot":"","sources":["../../src/utilities/handleTakeOver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC;QACpC,mBAAmB,EAAE,OAAO,CAAA;QAC5B,QAAQ,EAAE,OAAO,CAAA;QACjB,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAAA;KACnC,CAAC,CAAA;IACF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,gBAAgB,EAAE,OAAO,CAAA;IACzB,WAAW,EAAE,OAAO,CAAA;IACpB,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC,KAAK,IAAI,CAAA;IACrF,4BAA4B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IAC7E,oBAAoB,EAAE,CACpB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,KAC/B,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAAA;CACnC;AAED,eAAO,MAAM,cAAc,GAAU,uLAYlC,oBAAoB,KAAG,OAAO,CAAC,IAAI,CAkCrC,CAAA"}
1
+ {"version":3,"file":"handleTakeOver.d.ts","sourceRoot":"","sources":["../../src/utilities/handleTakeOver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEtD,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC;QACpC,mBAAmB,EAAE,OAAO,CAAA;QAC5B,QAAQ,EAAE,OAAO,CAAA;QACjB,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAC7B,CAAC,CAAA;IACF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,gBAAgB,EAAE,OAAO,CAAA;IACzB,WAAW,EAAE,OAAO,CAAA;IACpB,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,KAAK,IAAI,CAAA;IAC/E,4BAA4B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IAC7E,oBAAoB,EAAE,CACpB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,KACzB,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,IAAI,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAA;CAC1C;AAED,eAAO,MAAM,cAAc,0LAYxB,oBAAoB,KAAG,OAAO,CAAC,IAAI,CAkCrC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"handleTakeOver.js","names":["handleTakeOver","id","clearRouteCache","collectionSlug","documentLockStateRef","globalSlug","isLockingEnabled","isWithinDoc","setCurrentEditor","setIsReadOnlyForIncomingUser","updateDocumentEditor","user","current","hasShownLockedModal","isLocked","error","console"],"sources":["../../src/utilities/handleTakeOver.tsx"],"sourcesContent":["import type { ClientUser } from 'payload'\n\nexport interface HandleTakeOverParams {\n clearRouteCache?: () => void\n collectionSlug?: string\n documentLockStateRef: React.RefObject<{\n hasShownLockedModal: boolean\n isLocked: boolean\n user: ClientUser | number | string\n }>\n globalSlug?: string\n id: number | string\n isLockingEnabled: boolean\n isWithinDoc: boolean\n setCurrentEditor: (value: React.SetStateAction<ClientUser | number | string>) => void\n setIsReadOnlyForIncomingUser?: (value: React.SetStateAction<boolean>) => void\n updateDocumentEditor: (\n docID: number | string,\n slug: string,\n user: ClientUser | number | string,\n ) => Promise<void>\n user: ClientUser | number | string\n}\n\nexport const handleTakeOver = async ({\n id,\n clearRouteCache,\n collectionSlug,\n documentLockStateRef,\n globalSlug,\n isLockingEnabled,\n isWithinDoc,\n setCurrentEditor,\n setIsReadOnlyForIncomingUser,\n updateDocumentEditor,\n user,\n}: HandleTakeOverParams): Promise<void> => {\n if (!isLockingEnabled) {\n return\n }\n\n try {\n // Call updateDocumentEditor to update the document's owner to the current user\n await updateDocumentEditor(id, collectionSlug ?? globalSlug, user)\n\n if (!isWithinDoc) {\n documentLockStateRef.current.hasShownLockedModal = true\n }\n\n // Update the locked state to reflect the current user as the owner\n documentLockStateRef.current = {\n hasShownLockedModal: documentLockStateRef.current?.hasShownLockedModal,\n isLocked: true,\n user,\n }\n setCurrentEditor(user)\n\n // If this is a takeover within the document, ensure the document is editable\n if (isWithinDoc && setIsReadOnlyForIncomingUser) {\n setIsReadOnlyForIncomingUser(false)\n }\n\n // Need to clear the route cache to refresh the page and update readOnly state for server rendered components\n if (clearRouteCache) {\n clearRouteCache()\n }\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error('Error during document takeover:', error)\n }\n}\n"],"mappings":"AAwBA,OAAO,MAAMA,cAAA,GAAiB,MAAAA,CAAO;EACnCC,EAAE;EACFC,eAAe;EACfC,cAAc;EACdC,oBAAoB;EACpBC,UAAU;EACVC,gBAAgB;EAChBC,WAAW;EACXC,gBAAgB;EAChBC,4BAA4B;EAC5BC,oBAAoB;EACpBC;AAAI,CACiB;EACrB,IAAI,CAACL,gBAAA,EAAkB;IACrB;EACF;EAEA,IAAI;IACF;IACA,MAAMI,oBAAA,CAAqBT,EAAA,EAAIE,cAAA,IAAkBE,UAAA,EAAYM,IAAA;IAE7D,IAAI,CAACJ,WAAA,EAAa;MAChBH,oBAAA,CAAqBQ,OAAO,CAACC,mBAAmB,GAAG;IACrD;IAEA;IACAT,oBAAA,CAAqBQ,OAAO,GAAG;MAC7BC,mBAAA,EAAqBT,oBAAA,CAAqBQ,OAAO,EAAEC,mBAAA;MACnDC,QAAA,EAAU;MACVH;IACF;IACAH,gBAAA,CAAiBG,IAAA;IAEjB;IACA,IAAIJ,WAAA,IAAeE,4BAAA,EAA8B;MAC/CA,4BAAA,CAA6B;IAC/B;IAEA;IACA,IAAIP,eAAA,EAAiB;MACnBA,eAAA;IACF;EACF,EAAE,OAAOa,KAAA,EAAO;IACd;IACAC,OAAA,CAAQD,KAAK,CAAC,mCAAmCA,KAAA;EACnD;AACF","ignoreList":[]}
1
+ {"version":3,"file":"handleTakeOver.js","names":["handleTakeOver","id","clearRouteCache","collectionSlug","documentLockStateRef","globalSlug","isLockingEnabled","isWithinDoc","setCurrentEditor","setIsReadOnlyForIncomingUser","updateDocumentEditor","user","current","hasShownLockedModal","isLocked","error","console"],"sources":["../../src/utilities/handleTakeOver.tsx"],"sourcesContent":["import type { AuthenticatedUser, User } from 'payload'\n\nexport interface HandleTakeOverParams {\n clearRouteCache?: () => void\n collectionSlug?: string\n documentLockStateRef: React.RefObject<{\n hasShownLockedModal: boolean\n isLocked: boolean\n user: number | string | User\n }>\n globalSlug?: string\n id: number | string\n isLockingEnabled: boolean\n isWithinDoc: boolean\n setCurrentEditor: (value: React.SetStateAction<number | string | User>) => void\n setIsReadOnlyForIncomingUser?: (value: React.SetStateAction<boolean>) => void\n updateDocumentEditor: (\n docID: number | string,\n slug: string,\n user: number | string | User,\n ) => Promise<void>\n user: AuthenticatedUser | number | string\n}\n\nexport const handleTakeOver = async ({\n id,\n clearRouteCache,\n collectionSlug,\n documentLockStateRef,\n globalSlug,\n isLockingEnabled,\n isWithinDoc,\n setCurrentEditor,\n setIsReadOnlyForIncomingUser,\n updateDocumentEditor,\n user,\n}: HandleTakeOverParams): Promise<void> => {\n if (!isLockingEnabled) {\n return\n }\n\n try {\n // Call updateDocumentEditor to update the document's owner to the current user\n await updateDocumentEditor(id, collectionSlug ?? globalSlug, user)\n\n if (!isWithinDoc) {\n documentLockStateRef.current.hasShownLockedModal = true\n }\n\n // Update the locked state to reflect the current user as the owner\n documentLockStateRef.current = {\n hasShownLockedModal: documentLockStateRef.current?.hasShownLockedModal,\n isLocked: true,\n user,\n }\n setCurrentEditor(user)\n\n // If this is a takeover within the document, ensure the document is editable\n if (isWithinDoc && setIsReadOnlyForIncomingUser) {\n setIsReadOnlyForIncomingUser(false)\n }\n\n // Need to clear the route cache to refresh the page and update readOnly state for server rendered components\n if (clearRouteCache) {\n clearRouteCache()\n }\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error('Error during document takeover:', error)\n }\n}\n"],"mappings":"AAwBA,OAAO,MAAMA,cAAA,GAAiB,MAAAA,CAAO;EACnCC,EAAE;EACFC,eAAe;EACfC,cAAc;EACdC,oBAAoB;EACpBC,UAAU;EACVC,gBAAgB;EAChBC,WAAW;EACXC,gBAAgB;EAChBC,4BAA4B;EAC5BC,oBAAoB;EACpBC;AAAI,CACiB;EACrB,IAAI,CAACL,gBAAA,EAAkB;IACrB;EACF;EAEA,IAAI;IACF;IACA,MAAMI,oBAAA,CAAqBT,EAAA,EAAIE,cAAA,IAAkBE,UAAA,EAAYM,IAAA;IAE7D,IAAI,CAACJ,WAAA,EAAa;MAChBH,oBAAA,CAAqBQ,OAAO,CAACC,mBAAmB,GAAG;IACrD;IAEA;IACAT,oBAAA,CAAqBQ,OAAO,GAAG;MAC7BC,mBAAA,EAAqBT,oBAAA,CAAqBQ,OAAO,EAAEC,mBAAA;MACnDC,QAAA,EAAU;MACVH;IACF;IACAH,gBAAA,CAAiBG,IAAA;IAEjB;IACA,IAAIJ,WAAA,IAAeE,4BAAA,EAA8B;MAC/CA,4BAAA,CAA6B;IAC/B;IAEA;IACA,IAAIP,eAAA,EAAiB;MACnBA,eAAA;IACF;EACF,EAAE,OAAOa,KAAA,EAAO;IACd;IACAC,OAAA,CAAQD,KAAK,CAAC,mCAAmCA,KAAA;EACnD;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"hasOptionLabelJSXElement.d.ts","sourceRoot":"","sources":["../../src/utilities/hasOptionLabelJSXElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAIxD,eAAO,MAAM,wBAAwB,GAAI,iBAAiB,yBAAyB,YAkBlF,CAAA"}
1
+ {"version":3,"file":"hasOptionLabelJSXElement.d.ts","sourceRoot":"","sources":["../../src/utilities/hasOptionLabelJSXElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAIxD,eAAO,MAAM,wBAAwB,oBAAqB,yBAAyB,YAkBlF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"hasSavePermission.d.ts","sourceRoot":"","sources":["../../src/utilities/hasSavePermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,4BAA4B,EAE7B,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,iBAAiB,GAAI,MAAM;IAItC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,4BAA4B,CAAA;IAI5C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;CACnB,YAeA,CAAA"}
1
+ {"version":3,"file":"hasSavePermission.d.ts","sourceRoot":"","sources":["../../src/utilities/hasSavePermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,4BAA4B,EAE7B,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,iBAAiB,SAAU;IAItC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,4BAA4B,CAAA;IAI5C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;CACnB,YAeA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"initReq.d.ts","sourceRoot":"","sources":["../../src/utilities/initReq.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EAEb,eAAe,EACf,aAAa,EACd,MAAM,SAAS,CAAA;AAGhB,OAAO,EACL,cAAc,EAMf,MAAM,SAAS,CAAA;AAahB;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAmB,6EAOpC;IACD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,CAAA;IACzD,SAAS,EAAE,SAAS,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAChD,aAAa,EAAE,aAAa,CAAA;CAC7B,KAAG,OAAO,CAAC,aAAa,CA2FxB,CAAA"}
1
+ {"version":3,"file":"initReq.d.ts","sourceRoot":"","sources":["../../src/utilities/initReq.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EAEb,eAAe,EACf,aAAa,EACd,MAAM,SAAS,CAAA;AAGhB,OAAO,EACL,cAAc,EAMf,MAAM,SAAS,CAAA;AAahB;;;;GAIG;AACH,eAAO,MAAM,OAAO,gFAOjB;IACD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,CAAA;IACzD,SAAS,EAAE,SAAS,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAChD,aAAa,EAAE,aAAa,CAAA;CAC7B,KAAG,OAAO,CAAC,aAAa,CA2FxB,CAAA"}
@@ -1,3 +1,3 @@
1
- import type { ClientUser } from 'payload';
2
- export declare const isClientUserObject: (user: any) => user is ClientUser;
1
+ import type { User } from 'payload';
2
+ export declare const isClientUserObject: (user: any) => user is User;
3
3
  //# sourceMappingURL=isClientUserObject.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isClientUserObject.d.ts","sourceRoot":"","sources":["../../src/utilities/isClientUserObject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,eAAO,MAAM,kBAAkB,GAAI,SAAI,KAAG,IAAI,IAAI,UAEjD,CAAA"}
1
+ {"version":3,"file":"isClientUserObject.d.ts","sourceRoot":"","sources":["../../src/utilities/isClientUserObject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEnC,eAAO,MAAM,kBAAkB,iBAAW,IAAI,IAAI,IAEjD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isClientUserObject.js","names":["isClientUserObject","user"],"sources":["../../src/utilities/isClientUserObject.ts"],"sourcesContent":["import type { ClientUser } from 'payload'\n\nexport const isClientUserObject = (user): user is ClientUser => {\n return user && typeof user === 'object'\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAA,GAAsBC,IAAA;EACjC,OAAOA,IAAA,IAAQ,OAAOA,IAAA,KAAS;AACjC","ignoreList":[]}
1
+ {"version":3,"file":"isClientUserObject.js","names":["isClientUserObject","user"],"sources":["../../src/utilities/isClientUserObject.ts"],"sourcesContent":["import type { User } from 'payload'\n\nexport const isClientUserObject = (user): user is User => {\n return user && typeof user === 'object'\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAA,GAAsBC,IAAA;EACjC,OAAOA,IAAA,IAAQ,OAAOA,IAAA,KAAS;AACjC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"isCustomAdminView.d.ts","sourceRoot":"","sources":["../../src/utilities/isCustomAdminView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,GAAI,gCAI/B;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,KAAG,OAiBH,CAAA"}
1
+ {"version":3,"file":"isCustomAdminView.d.ts","sourceRoot":"","sources":["../../src/utilities/isCustomAdminView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,mCAI3B;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,KAAG,OAiBH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isEditing.d.ts","sourceRoot":"","sources":["../../src/utilities/isEditing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,qCAIvB;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACrB,KAAG,OAA0D,CAAA"}
1
+ {"version":3,"file":"isEditing.d.ts","sourceRoot":"","sources":["../../src/utilities/isEditing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,wCAInB;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACrB,KAAG,OAA0D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isPathMatchingRoute.d.ts","sourceRoot":"","sources":["../../src/utilities/isPathMatchingRoute.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,6DAMjC;IACD,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,YA4BA,CAAA"}
1
+ {"version":3,"file":"isPathMatchingRoute.d.ts","sourceRoot":"","sources":["../../src/utilities/isPathMatchingRoute.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,gEAM7B;IACD,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,YA4BA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isPublicAdminRoute.d.ts","sourceRoot":"","sources":["../../src/utilities/isPublicAdminRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAmB9C,eAAO,MAAM,kBAAkB,GAAI,gCAIhC;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,KAAG,OAaH,CAAA"}
1
+ {"version":3,"file":"isPublicAdminRoute.d.ts","sourceRoot":"","sources":["../../src/utilities/isPublicAdminRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAmB9C,eAAO,MAAM,kBAAkB,mCAI5B;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,KAAG,OAaH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isURLAllowed.d.ts","sourceRoot":"","sources":["../../src/utilities/isURLAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,EAAE,WAAW,SAAS,KAAG,OA+BhE,CAAA"}
1
+ {"version":3,"file":"isURLAllowed.d.ts","sourceRoot":"","sources":["../../src/utilities/isURLAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,YAAY,QAAS,MAAM,aAAa,SAAS,KAAG,OAqChE,CAAA"}
@@ -12,9 +12,15 @@ export const isURLAllowed = (url, allowList) => {
12
12
  return typeof value === 'string' && parsedUrl.protocol === `${value}:`;
13
13
  }
14
14
  if (key === 'pathname') {
15
- // Convert wildcards to a regex
16
- const regexPattern = value.replace(/\*\*/g, '.*') // Match any path
17
- .replace(/\*/g, '[^/]*') // Match any part of a path segment
15
+ // Translate a small glob syntax to a regex. The pattern is escaped
16
+ // first so that metacharacters in the configured value (e.g. `.`)
17
+ // match literally and cannot broaden what the allow-list accepts.
18
+ // Wildcards become `\*` once escaped, so they are restored afterwards
19
+ // — translating `**` before `*` is safe because the resulting `.*`
20
+ // no longer contains an escaped `\*` for the next replace to match.
21
+ const regexPattern = value.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&') // Escape regex metacharacters
22
+ .replace(/\\\*\\\*/g, '.*') // `**` → match any path
23
+ .replace(/\\\*/g, '[^/]*') // `*` → match any part of a path segment
18
24
  ;
19
25
  const regex = new RegExp(`^${regexPattern}$`);
20
26
  return regex.test(parsedUrl.pathname);
@@ -1 +1 @@
1
- {"version":3,"file":"isURLAllowed.js","names":["isURLAllowed","url","allowList","parsedUrl","URL","some","allowItem","Object","entries","every","key","value","protocol","regexPattern","replace","regex","RegExp","test","pathname"],"sources":["../../src/utilities/isURLAllowed.ts"],"sourcesContent":["import type { AllowList } from 'payload'\n\nexport const isURLAllowed = (url: string, allowList: AllowList): boolean => {\n try {\n const parsedUrl = new URL(url)\n\n return allowList.some((allowItem) => {\n return Object.entries(allowItem).every(([key, value]) => {\n // Skip undefined or null values\n if (!value) {\n return true\n }\n // Compare protocol with colon\n if (key === 'protocol') {\n return typeof value === 'string' && parsedUrl.protocol === `${value}:`\n }\n\n if (key === 'pathname') {\n // Convert wildcards to a regex\n const regexPattern = value\n .replace(/\\*\\*/g, '.*') // Match any path\n .replace(/\\*/g, '[^/]*') // Match any part of a path segment\n const regex = new RegExp(`^${regexPattern}$`)\n return regex.test(parsedUrl.pathname)\n }\n\n // Default comparison for all other properties (hostname, port, search)\n return parsedUrl[key as keyof URL] === value\n })\n })\n } catch {\n return false // If the URL is invalid, deny by default\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,YAAA,GAAeA,CAACC,GAAA,EAAaC,SAAA;EACxC,IAAI;IACF,MAAMC,SAAA,GAAY,IAAIC,GAAA,CAAIH,GAAA;IAE1B,OAAOC,SAAA,CAAUG,IAAI,CAAEC,SAAA;MACrB,OAAOC,MAAA,CAAOC,OAAO,CAACF,SAAA,EAAWG,KAAK,CAAC,CAAC,CAACC,GAAA,EAAKC,KAAA,CAAM;QAClD;QACA,IAAI,CAACA,KAAA,EAAO;UACV,OAAO;QACT;QACA;QACA,IAAID,GAAA,KAAQ,YAAY;UACtB,OAAO,OAAOC,KAAA,KAAU,YAAYR,SAAA,CAAUS,QAAQ,KAAK,GAAGD,KAAA,GAAQ;QACxE;QAEA,IAAID,GAAA,KAAQ,YAAY;UACtB;UACA,MAAMG,YAAA,GAAeF,KAAA,CAClBG,OAAO,CAAC,SAAS,MAAM;UAAA,CACvBA,OAAO,CAAC,OAAO,SAAS;AAAA;UAC3B,MAAMC,KAAA,GAAQ,IAAIC,MAAA,CAAO,IAAIH,YAAA,GAAe;UAC5C,OAAOE,KAAA,CAAME,IAAI,CAACd,SAAA,CAAUe,QAAQ;QACtC;QAEA;QACA,OAAOf,SAAS,CAACO,GAAA,CAAiB,KAAKC,KAAA;MACzC;IACF;EACF,EAAE,MAAM;IACN,OAAO,MAAM;AAAA;EACf;AACF","ignoreList":[]}
1
+ {"version":3,"file":"isURLAllowed.js","names":["isURLAllowed","url","allowList","parsedUrl","URL","some","allowItem","Object","entries","every","key","value","protocol","regexPattern","replace","regex","RegExp","test","pathname"],"sources":["../../src/utilities/isURLAllowed.ts"],"sourcesContent":["import type { AllowList } from 'payload'\n\nexport const isURLAllowed = (url: string, allowList: AllowList): boolean => {\n try {\n const parsedUrl = new URL(url)\n\n return allowList.some((allowItem) => {\n return Object.entries(allowItem).every(([key, value]) => {\n // Skip undefined or null values\n if (!value) {\n return true\n }\n // Compare protocol with colon\n if (key === 'protocol') {\n return typeof value === 'string' && parsedUrl.protocol === `${value}:`\n }\n\n if (key === 'pathname') {\n // Translate a small glob syntax to a regex. The pattern is escaped\n // first so that metacharacters in the configured value (e.g. `.`)\n // match literally and cannot broaden what the allow-list accepts.\n // Wildcards become `\\*` once escaped, so they are restored afterwards\n // — translating `**` before `*` is safe because the resulting `.*`\n // no longer contains an escaped `\\*` for the next replace to match.\n const regexPattern = value\n .replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&') // Escape regex metacharacters\n .replace(/\\\\\\*\\\\\\*/g, '.*') // `**` → match any path\n .replace(/\\\\\\*/g, '[^/]*') // `*` → match any part of a path segment\n const regex = new RegExp(`^${regexPattern}$`)\n return regex.test(parsedUrl.pathname)\n }\n\n // Default comparison for all other properties (hostname, port, search)\n return parsedUrl[key as keyof URL] === value\n })\n })\n } catch {\n return false // If the URL is invalid, deny by default\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,YAAA,GAAeA,CAACC,GAAA,EAAaC,SAAA;EACxC,IAAI;IACF,MAAMC,SAAA,GAAY,IAAIC,GAAA,CAAIH,GAAA;IAE1B,OAAOC,SAAA,CAAUG,IAAI,CAAEC,SAAA;MACrB,OAAOC,MAAA,CAAOC,OAAO,CAACF,SAAA,EAAWG,KAAK,CAAC,CAAC,CAACC,GAAA,EAAKC,KAAA,CAAM;QAClD;QACA,IAAI,CAACA,KAAA,EAAO;UACV,OAAO;QACT;QACA;QACA,IAAID,GAAA,KAAQ,YAAY;UACtB,OAAO,OAAOC,KAAA,KAAU,YAAYR,SAAA,CAAUS,QAAQ,KAAK,GAAGD,KAAA,GAAQ;QACxE;QAEA,IAAID,GAAA,KAAQ,YAAY;UACtB;UACA;UACA;UACA;UACA;UACA;UACA,MAAMG,YAAA,GAAeF,KAAA,CAClBG,OAAO,CAAC,uBAAuB,QAAQ;UAAA,CACvCA,OAAO,CAAC,aAAa,MAAM;UAAA,CAC3BA,OAAO,CAAC,SAAS,SAAS;AAAA;UAC7B,MAAMC,KAAA,GAAQ,IAAIC,MAAA,CAAO,IAAIH,YAAA,GAAe;UAC5C,OAAOE,KAAA,CAAME,IAAI,CAACd,SAAA,CAAUe,QAAQ;QACtC;QAEA;QACA,OAAOf,SAAS,CAACO,GAAA,CAAiB,KAAKC,KAAA;MACzC;IACF;EACF,EAAE,MAAM;IACN,OAAO,MAAM;AAAA;EACf;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"recentlyViewed.d.ts","sourceRoot":"","sources":["../../src/utilities/recentlyViewed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAE5E;;;GAGG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAKxC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,0BAInC;IACD,QAAQ,EAAE,yBAAyB,GAAG,SAAS,CAAA;IAC/C,IAAI,EAAE,kBAAkB,CAAA;IACxB,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,KAAG,yBASH,CAAA"}
1
+ {"version":3,"file":"recentlyViewed.d.ts","sourceRoot":"","sources":["../../src/utilities/recentlyViewed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAE5E;;;GAGG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAKxC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,6BAI/B;IACD,QAAQ,EAAE,yBAAyB,GAAG,SAAS,CAAA;IAC/C,IAAI,EAAE,kBAAkB,CAAA;IACxB,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,KAAG,yBASH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"reduceFieldsToOptions.d.ts","sourceRoot":"","sources":["../../src/utilities/reduceFieldsToOptions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAyB,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAKjG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AASrE,KAAK,sBAAsB,GAAG;IAC5B,gBAAgB,CAAC,EAAE,yBAAyB,GAAG,0BAA0B,CAAA;IACzE,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,kFAMnC,sBAAsB,KAAG,YAAY,EA+OvC,CAAA"}
1
+ {"version":3,"file":"reduceFieldsToOptions.d.ts","sourceRoot":"","sources":["../../src/utilities/reduceFieldsToOptions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAyB,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAKjG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AASrE,KAAK,sBAAsB,GAAG;IAC5B,gBAAgB,CAAC,EAAE,yBAAyB,GAAG,0BAA0B,CAAA;IACzE,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qFAM/B,sBAAsB,KAAG,YAAY,EA+OvC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"reduceFieldsToValuesWithValidation.d.ts","sourceRoot":"","sources":["../../src/utilities/reduceFieldsToValuesWithValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAI9C,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,GAC7C,QAAQ,SAAS,EACjB,YAAY,OAAO,EACnB,wBAAwB,OAAO,KAC9B,UAwBF,CAAA"}
1
+ {"version":3,"file":"reduceFieldsToValuesWithValidation.d.ts","sourceRoot":"","sources":["../../src/utilities/reduceFieldsToValuesWithValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAI9C,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,WACrC,SAAS,cACL,OAAO,0BACK,OAAO,KAC9B,UAwBF,CAAA"}
@@ -25,8 +25,8 @@ export declare const renderTable: ({ clientCollectionConfig, clientConfig, colle
25
25
  req?: PayloadRequest;
26
26
  /** Show heading without requiring full groupBy context */
27
27
  showHeading?: boolean;
28
- tableAppearance?: "condensed" | "default";
29
- useAsTitle: CollectionConfig["admin"]["useAsTitle"];
28
+ tableAppearance?: 'condensed' | 'default';
29
+ useAsTitle: CollectionConfig['admin']['useAsTitle'];
30
30
  viewType?: ViewTypes;
31
31
  }) => {
32
32
  columnState: Column[];
@@ -1 +1 @@
1
- {"version":3,"file":"renderTable.d.ts","sourceRoot":"","sources":["../../src/utilities/renderTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EAEZ,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,cAAc,EACd,yBAAyB,EACzB,0BAA0B,EAC1B,SAAS,EACV,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE1E,OAAO,KAAK,MAAM,OAAO,CAAA;AA0BzB,eAAO,MAAM,aAAa,GACxB,QAAQ,KAAK,EAAE,EACf,WAAW,SAAS,KACnB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAoB3B,CAAA;AAEH,eAAO,MAAM,WAAW,GAAI,kTAwBzB;IACD,sBAAsB,CAAC,EAAE,sBAAsB,CAAA;IAC/C,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,gBAAgB,CAAC,EAAE,yBAAyB,CAAA;IAC5C,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,gBAAgB,CAAC,EAAE,0BAA0B,CAAA;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,UAAU,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;IACzC,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAA;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,KAAG;IACF,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;CAyNvB,CAAA"}
1
+ {"version":3,"file":"renderTable.d.ts","sourceRoot":"","sources":["../../src/utilities/renderTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EAEZ,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,cAAc,EACd,yBAAyB,EACzB,0BAA0B,EAC1B,SAAS,EACV,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE1E,OAAO,KAAK,MAAM,OAAO,CAAA;AA0BzB,eAAO,MAAM,aAAa,WAChB,KAAK,EAAE,aACJ,SAAS,KACnB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAoB3B,CAAA;AAEH,eAAO,MAAM,WAAW,qTAwBrB;IACD,sBAAsB,CAAC,EAAE,sBAAsB,CAAA;IAC/C,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,gBAAgB,CAAC,EAAE,yBAAyB,CAAA;IAC5C,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,gBAAgB,CAAC,EAAE,0BAA0B,CAAA;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,UAAU,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;IACzC,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAA;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,KAAG;IACF,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;CAyNvB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { FilterOptions, FilterOptionsProps, ResolvedFilterOptions } from 'payload';
2
2
  export declare const resolveFilterOptions: (filterOptions: FilterOptions, options: {
3
3
  relationTo: string | string[];
4
- } & Omit<FilterOptionsProps, "relationTo">) => Promise<ResolvedFilterOptions>;
4
+ } & Omit<FilterOptionsProps, 'relationTo'>) => Promise<ResolvedFilterOptions>;
5
5
  //# sourceMappingURL=resolveFilterOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveFilterOptions.d.ts","sourceRoot":"","sources":["../../src/utilities/resolveFilterOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEvF,eAAO,MAAM,oBAAoB,GAC/B,eAAe,aAAa,EAC5B,SAAS;IAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,KAClF,OAAO,CAAC,qBAAqB,CA4B/B,CAAA"}
1
+ {"version":3,"file":"resolveFilterOptions.d.ts","sourceRoot":"","sources":["../../src/utilities/resolveFilterOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEvF,eAAO,MAAM,oBAAoB,kBAChB,aAAa,WACnB;IAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,KAClF,OAAO,CAAC,qBAAqB,CA4B/B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sanitizeFilterOptionsQuery.d.ts","sourceRoot":"","sources":["../../src/utilities/sanitizeFilterOptionsQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,eAAO,MAAM,0BAA0B,GAAI,OAAO,KAAK,KAAG,KAqBzD,CAAA"}
1
+ {"version":3,"file":"sanitizeFilterOptionsQuery.d.ts","sourceRoot":"","sources":["../../src/utilities/sanitizeFilterOptionsQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,eAAO,MAAM,0BAA0B,UAAW,KAAK,KAAG,KAqBzD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"scrollToID.d.ts","sourceRoot":"","sources":["../../src/utilities/scrollToID.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,KAAG,IAUvC,CAAA"}
1
+ {"version":3,"file":"scrollToID.d.ts","sourceRoot":"","sources":["../../src/utilities/scrollToID.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,OAAQ,MAAM,KAAG,IAUvC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"selectiveCache.d.ts","sourceRoot":"","sources":["../../src/utilities/selectiveCache.ts"],"names":[],"mappings":"AAEA,KAAK,WAAW,GAAG,MAAM,CAAA;AAazB;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,SAAS,MAAM,GAAG,WAAW,EAAE,SAAS,EAAE,MAAM;mBAcjD,MAAM,OAAO,CAAC,MAAM,CAAC,0BAAiB,OAAO,CAAC,MAAM,CAAC;EAoBxF"}
1
+ {"version":3,"file":"selectiveCache.d.ts","sourceRoot":"","sources":["../../src/utilities/selectiveCache.ts"],"names":[],"mappings":"AAEA,KAAK,WAAW,GAAG,MAAM,CAAA;AAazB;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,SAAS,MAAM,GAAG,WAAW,EAAE,SAAS,EAAE,MAAM;IAgCjF,GAAG,YAlB6B,MAAM,OAAO,CAAC,MAAM,CAAC,0BAAiB,OAAO,CAAC,MAAM,CAAC;EAoBxF"}
@@ -1 +1 @@
1
- {"version":3,"file":"setsAreEqual.d.ts","sourceRoot":"","sources":["../../src/utilities/setsAreEqual.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,YAEvD,CAAA"}
1
+ {"version":3,"file":"setsAreEqual.d.ts","sourceRoot":"","sources":["../../src/utilities/setsAreEqual.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,YAEvD,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import type { Slugify } from 'payload/shared';
2
2
  import { type ServerFunction, type SlugifyServerFunctionArgs } from 'payload';
3
3
  /**
4
- * This server function is directly related to the {@link https://payloadcms.com/docs/fields/text#slug-field | Slug Field}.
4
+ * This server function is directly related to the {@link https://payloadcms.com/docs/fields/slug | Slug Field}.
5
5
  * This is a server function that is used to invoke the user's custom slugify function from the client.
6
6
  * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.
7
7
  * - Not through props
@@ -1,7 +1,7 @@
1
1
  import { flattenAllFields, getFieldByPath, UnauthorizedError } from 'payload';
2
2
  import { slugify as defaultSlugify } from 'payload/shared';
3
3
  /**
4
- * This server function is directly related to the {@link https://payloadcms.com/docs/fields/text#slug-field | Slug Field}.
4
+ * This server function is directly related to the {@link https://payloadcms.com/docs/fields/slug | Slug Field}.
5
5
  * This is a server function that is used to invoke the user's custom slugify function from the client.
6
6
  * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.
7
7
  * - Not through props
@@ -1 +1 @@
1
- {"version":3,"file":"slugify.js","names":["flattenAllFields","getFieldByPath","UnauthorizedError","slugify","defaultSlugify","slugifyHandler","args","collectionSlug","data","globalSlug","path","req","valueToSlugify","user","docConfig","payload","collections","config","globals","find","g","slug","Error","field","fields","customSlugify","custom","undefined","result"],"sources":["../../src/utilities/slugify.ts"],"sourcesContent":["import type { Slugify } from 'payload/shared'\n\nimport {\n flattenAllFields,\n getFieldByPath,\n type ServerFunction,\n type SlugifyServerFunctionArgs,\n UnauthorizedError,\n} from 'payload'\nimport { slugify as defaultSlugify } from 'payload/shared'\n\n/**\n * This server function is directly related to the {@link https://payloadcms.com/docs/fields/text#slug-field | Slug Field}.\n * This is a server function that is used to invoke the user's custom slugify function from the client.\n * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.\n * - Not through props\n * - Not from a server function defined within a server component (see below)\n * When a server function contains non-serializable data within its closure, it gets passed through the boundary (and breaks).\n * The only way to pass server functions to the client (that contain non-serializable data) is if it is globally defined.\n * But we also cannot define this function alongside the server component, as we will not have access to their custom slugify function.\n * See `ServerFunctionsProvider` for more details.\n */\nexport const slugifyHandler: ServerFunction<\n SlugifyServerFunctionArgs,\n Promise<ReturnType<Slugify>>\n> = async (args) => {\n const { collectionSlug, data, globalSlug, path, req, valueToSlugify } = args\n\n if (!req.user) {\n throw new UnauthorizedError()\n }\n\n const docConfig = collectionSlug\n ? req.payload.collections[collectionSlug]?.config\n : globalSlug\n ? req.payload.config.globals.find((g) => g.slug === globalSlug)\n : null\n\n if (!docConfig) {\n throw new Error()\n }\n\n const { field } = getFieldByPath({\n config: req.payload.config,\n fields: flattenAllFields({ fields: docConfig.fields }),\n path,\n })\n\n const customSlugify = (\n typeof field?.custom?.slugify === 'function' ? field.custom.slugify : undefined\n ) as Slugify\n\n const result = customSlugify\n ? await customSlugify({ data, req, valueToSlugify })\n : defaultSlugify(valueToSlugify)\n\n return result\n}\n"],"mappings":"AAEA,SACEA,gBAAgB,EAChBC,cAAc,EAGdC,iBAAiB,QACZ;AACP,SAASC,OAAA,IAAWC,cAAc,QAAQ;AAE1C;;;;;;;;;;;AAWA,OAAO,MAAMC,cAAA,GAGT,MAAOC,IAAA;EACT,MAAM;IAAEC,cAAc;IAAEC,IAAI;IAAEC,UAAU;IAAEC,IAAI;IAAEC,GAAG;IAAEC;EAAc,CAAE,GAAGN,IAAA;EAExE,IAAI,CAACK,GAAA,CAAIE,IAAI,EAAE;IACb,MAAM,IAAIX,iBAAA;EACZ;EAEA,MAAMY,SAAA,GAAYP,cAAA,GACdI,GAAA,CAAII,OAAO,CAACC,WAAW,CAACT,cAAA,CAAe,EAAEU,MAAA,GACzCR,UAAA,GACEE,GAAA,CAAII,OAAO,CAACE,MAAM,CAACC,OAAO,CAACC,IAAI,CAAEC,CAAA,IAAMA,CAAA,CAAEC,IAAI,KAAKZ,UAAA,IAClD;EAEN,IAAI,CAACK,SAAA,EAAW;IACd,MAAM,IAAIQ,KAAA;EACZ;EAEA,MAAM;IAAEC;EAAK,CAAE,GAAGtB,cAAA,CAAe;IAC/BgB,MAAA,EAAQN,GAAA,CAAII,OAAO,CAACE,MAAM;IAC1BO,MAAA,EAAQxB,gBAAA,CAAiB;MAAEwB,MAAA,EAAQV,SAAA,CAAUU;IAAO;IACpDd;EACF;EAEA,MAAMe,aAAA,GACJ,OAAOF,KAAA,EAAOG,MAAA,EAAQvB,OAAA,KAAY,aAAaoB,KAAA,CAAMG,MAAM,CAACvB,OAAO,GAAGwB,SAAA;EAGxE,MAAMC,MAAA,GAASH,aAAA,GACX,MAAMA,aAAA,CAAc;IAAEjB,IAAA;IAAMG,GAAA;IAAKC;EAAe,KAChDR,cAAA,CAAeQ,cAAA;EAEnB,OAAOgB,MAAA;AACT","ignoreList":[]}
1
+ {"version":3,"file":"slugify.js","names":["flattenAllFields","getFieldByPath","UnauthorizedError","slugify","defaultSlugify","slugifyHandler","args","collectionSlug","data","globalSlug","path","req","valueToSlugify","user","docConfig","payload","collections","config","globals","find","g","slug","Error","field","fields","customSlugify","custom","undefined","result"],"sources":["../../src/utilities/slugify.ts"],"sourcesContent":["import type { Slugify } from 'payload/shared'\n\nimport {\n flattenAllFields,\n getFieldByPath,\n type ServerFunction,\n type SlugifyServerFunctionArgs,\n UnauthorizedError,\n} from 'payload'\nimport { slugify as defaultSlugify } from 'payload/shared'\n\n/**\n * This server function is directly related to the {@link https://payloadcms.com/docs/fields/slug | Slug Field}.\n * This is a server function that is used to invoke the user's custom slugify function from the client.\n * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.\n * - Not through props\n * - Not from a server function defined within a server component (see below)\n * When a server function contains non-serializable data within its closure, it gets passed through the boundary (and breaks).\n * The only way to pass server functions to the client (that contain non-serializable data) is if it is globally defined.\n * But we also cannot define this function alongside the server component, as we will not have access to their custom slugify function.\n * See `ServerFunctionsProvider` for more details.\n */\nexport const slugifyHandler: ServerFunction<\n SlugifyServerFunctionArgs,\n Promise<ReturnType<Slugify>>\n> = async (args) => {\n const { collectionSlug, data, globalSlug, path, req, valueToSlugify } = args\n\n if (!req.user) {\n throw new UnauthorizedError()\n }\n\n const docConfig = collectionSlug\n ? req.payload.collections[collectionSlug]?.config\n : globalSlug\n ? req.payload.config.globals.find((g) => g.slug === globalSlug)\n : null\n\n if (!docConfig) {\n throw new Error()\n }\n\n const { field } = getFieldByPath({\n config: req.payload.config,\n fields: flattenAllFields({ fields: docConfig.fields }),\n path,\n })\n\n const customSlugify = (\n typeof field?.custom?.slugify === 'function' ? field.custom.slugify : undefined\n ) as Slugify\n\n const result = customSlugify\n ? await customSlugify({ data, req, valueToSlugify })\n : defaultSlugify(valueToSlugify)\n\n return result\n}\n"],"mappings":"AAEA,SACEA,gBAAgB,EAChBC,cAAc,EAGdC,iBAAiB,QACZ;AACP,SAASC,OAAA,IAAWC,cAAc,QAAQ;AAE1C;;;;;;;;;;;AAWA,OAAO,MAAMC,cAAA,GAGT,MAAOC,IAAA;EACT,MAAM;IAAEC,cAAc;IAAEC,IAAI;IAAEC,UAAU;IAAEC,IAAI;IAAEC,GAAG;IAAEC;EAAc,CAAE,GAAGN,IAAA;EAExE,IAAI,CAACK,GAAA,CAAIE,IAAI,EAAE;IACb,MAAM,IAAIX,iBAAA;EACZ;EAEA,MAAMY,SAAA,GAAYP,cAAA,GACdI,GAAA,CAAII,OAAO,CAACC,WAAW,CAACT,cAAA,CAAe,EAAEU,MAAA,GACzCR,UAAA,GACEE,GAAA,CAAII,OAAO,CAACE,MAAM,CAACC,OAAO,CAACC,IAAI,CAAEC,CAAA,IAAMA,CAAA,CAAEC,IAAI,KAAKZ,UAAA,IAClD;EAEN,IAAI,CAACK,SAAA,EAAW;IACd,MAAM,IAAIQ,KAAA;EACZ;EAEA,MAAM;IAAEC;EAAK,CAAE,GAAGtB,cAAA,CAAe;IAC/BgB,MAAA,EAAQN,GAAA,CAAII,OAAO,CAACE,MAAM;IAC1BO,MAAA,EAAQxB,gBAAA,CAAiB;MAAEwB,MAAA,EAAQV,SAAA,CAAUU;IAAO;IACpDd;EACF;EAEA,MAAMe,aAAA,GACJ,OAAOF,KAAA,EAAOG,MAAA,EAAQvB,OAAA,KAAY,aAAaoB,KAAA,CAAMG,MAAM,CAACvB,OAAO,GAAGwB,SAAA;EAGxE,MAAMC,MAAA,GAASH,aAAA,GACX,MAAMA,aAAA,CAAc;IAAEjB,IAAA;IAAMG,GAAA;IAAKC;EAAe,KAChDR,cAAA,CAAeQ,cAAA;EAEnB,OAAOgB,MAAA;AACT","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"traverseForLocalizedFields.d.ts","sourceRoot":"","sources":["../../src/utilities/traverseForLocalizedFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEjD,eAAO,MAAM,0BAA0B,GAAI,QAAQ,WAAW,EAAE,GAAG,KAAK,EAAE,KAAG,OA6C5E,CAAA"}
1
+ {"version":3,"file":"traverseForLocalizedFields.d.ts","sourceRoot":"","sources":["../../src/utilities/traverseForLocalizedFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEjD,eAAO,MAAM,0BAA0B,WAAY,WAAW,EAAE,GAAG,KAAK,EAAE,KAAG,OA6C5E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"upsertPreferences.d.ts","sourceRoot":"","sources":["../../src/utilities/upsertPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAO7E,KAAK,aAAa,CAAC,CAAC,IAAI;IACtB,EAAE,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACrC,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,YAAY,GAAG,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,GAAG,SAAS,KAAK,CAAC,CAAA;AAQ5E,eAAO,MAAM,cAAc,GAClB,CAAC,OACD,MAAM,WACF,OAAO,UACR,qBAAqB,YACnB,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CA+B5B,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAU,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,kDAKjF;IACD,WAAW,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,YAAY,EAAE,YAAY,KAAK,CAAC,CAAA;IACnF,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,cAAc,CAAA;IACnB,KAAK,EAAE,CAAC,CAAA;CACT,KAAG,OAAO,CAAC,CAAC,CA0DZ,CAAA"}
1
+ {"version":3,"file":"upsertPreferences.d.ts","sourceRoot":"","sources":["../../src/utilities/upsertPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAO7E,KAAK,aAAa,CAAC,CAAC,IAAI;IACtB,EAAE,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACrC,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,YAAY,GAAG,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,GAAG,SAAS,KAAK,CAAC,CAAA;AAQ5E,eAAO,MAAM,cAAc,GAClB,CAAC,OACD,MAAM,WACF,OAAO,UACR,qBAAqB,YACnB,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CA+B5B,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAU,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,oDAK/E;IACD,WAAW,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,YAAY,EAAE,YAAY,KAAK,CAAC,CAAA;IACnF,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,cAAc,CAAA;IACnB,KAAK,EAAE,CAAC,CAAA;CACT,KAAG,OAAO,CAAC,CAAC,CA0DZ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"generateCollectionTrashMetadata.d.ts","sourceRoot":"","sources":["../../../src/views/CollectionTrash/generateCollectionTrashMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAMrF,eAAO,MAAM,+BAA+B,GAAU,MAAM;IAC1D,gBAAgB,EAAE,yBAAyB,CAAA;IAC3C,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAA;CAC9C,KAAG,OAAO,CAAC,UAAU,CAqBrB,CAAA"}
1
+ {"version":3,"file":"generateCollectionTrashMetadata.d.ts","sourceRoot":"","sources":["../../../src/views/CollectionTrash/generateCollectionTrashMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAMrF,eAAO,MAAM,+BAA+B,SAAgB;IAC1D,gBAAgB,EAAE,yBAAyB,CAAA;IAC3C,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAA;CAC9C,KAAG,OAAO,CAAC,UAAU,CAqBrB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { AdminViewServerPropsOnly, ClientUser, Locale } from 'payload';
1
+ import type { AdminViewServerPropsOnly, Locale, User } from 'payload';
2
2
  import React from 'react';
3
3
  import type { groupNavItems } from '../../../utilities/groupNavItems.js';
4
4
  export type DashboardViewClientProps = {
@@ -9,7 +9,7 @@ export type DashboardViewServerPropsOnly = {
9
9
  data: {
10
10
  _isLocked: boolean;
11
11
  _lastEditedAt: string;
12
- _userEditing: ClientUser | number | string;
12
+ _userEditing: number | string | User;
13
13
  };
14
14
  lockDuration?: number;
15
15
  slug: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Dashboard/Default/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,EAAe,MAAM,SAAS,CAAA;AAExF,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AASxE,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAWD,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE;YAAE,SAAS,EAAE,OAAO,CAAC;YAAC,aAAa,EAAE,MAAM,CAAC;YAAC,YAAY,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAAA;SAAE,CAAA;QAC/F,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,IAAI,EAAE,MAAM,CAAA;KACb,CAAC,CAAA;IACF,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;CAC7C,GAAG,wBAAwB,CAAA;AAE5B,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,GAAG,4BAA4B,CAAA;AAE9F,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,wBAAwB,qBAuC/D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Dashboard/Default/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAe,IAAI,EAAE,MAAM,SAAS,CAAA;AAElF,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AASxE,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAWD,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE;YAAE,SAAS,EAAE,OAAO,CAAC;YAAC,aAAa,EAAE,MAAM,CAAC;YAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;SAAE,CAAA;QACzF,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,IAAI,EAAE,MAAM,CAAA;KACb,CAAC,CAAA;IACF,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;CAC7C,GAAG,wBAAwB,CAAA;AAE5B,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,GAAG,4BAA4B,CAAA;AAE9F,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,wBAAwB,qBAuC/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","RenderServerComponent","Gutter","ModularDashboard","baseClass","DefaultDashboard","props","i18n","locale","params","payload","permissions","searchParams","server","user","afterDashboard","beforeDashboard","config","admin","components","_jsxs","className","Component","importMap","serverProps","_jsx"],"sources":["../../../../src/views/Dashboard/Default/index.tsx"],"sourcesContent":["import type { AdminViewServerPropsOnly, ClientUser, Locale, ServerProps } from 'payload'\n\nimport React from 'react'\n\nimport type { groupNavItems } from '../../../utilities/groupNavItems.js'\n\nimport { RenderServerComponent } from '../../../elements/RenderServerComponent/index.js'\n// eslint-disable-next-line payload/no-imports-from-exports-dir -- Server component must reference exports/client bundle for proper client boundary in prod builds\nimport { Gutter } from '../../../exports/client/index.js'\nimport { ModularDashboard } from './ModularDashboard/index.js'\n\nconst baseClass = 'dashboard'\n\nexport type DashboardViewClientProps = {\n locale: Locale\n}\n\n// Neither DashboardViewClientProps, DashboardViewServerPropsOnly, nor\n// DashboardViewServerProps make much sense. They were created\n// before the modular dashboard existed, and they are tightly coupled to\n// the default layout of collection and global cards. All of their values\n// could have been derived from the req object, and the same likely applies\n// to other views. These types remain only for backward compatibility.\n// It is recommended to use the modular dashboard widgets, which have props\n// that are more agnostic to their content.\n\nexport type DashboardViewServerPropsOnly = {\n globalData: Array<{\n data: { _isLocked: boolean; _lastEditedAt: string; _userEditing: ClientUser | number | string }\n lockDuration?: number\n slug: string\n }>\n navGroups?: ReturnType<typeof groupNavItems>\n} & AdminViewServerPropsOnly\n\nexport type DashboardViewServerProps = DashboardViewClientProps & DashboardViewServerPropsOnly\n\nexport function DefaultDashboard(props: DashboardViewServerProps) {\n const { i18n, locale, params, payload, permissions, searchParams, server, user } = props\n const { afterDashboard, beforeDashboard } = payload.config.admin.components\n\n return (\n <Gutter className={baseClass}>\n {beforeDashboard &&\n RenderServerComponent({\n Component: beforeDashboard,\n importMap: payload.importMap,\n serverProps: {\n i18n,\n locale,\n params,\n payload,\n permissions,\n searchParams,\n server,\n user,\n } satisfies ServerProps,\n })}\n <ModularDashboard {...props} />\n {afterDashboard &&\n RenderServerComponent({\n Component: afterDashboard,\n importMap: payload.importMap,\n serverProps: {\n i18n,\n locale,\n params,\n payload,\n permissions,\n searchParams,\n server,\n user,\n } satisfies ServerProps,\n })}\n </Gutter>\n )\n}\n"],"mappings":";AAEA,OAAOA,KAAA,MAAW;AAIlB,SAASC,qBAAqB,QAAQ;AACtC;AACA,SAASC,MAAM,QAAQ;AACvB,SAASC,gBAAgB,QAAQ;AAEjC,MAAMC,SAAA,GAAY;AA0BlB,OAAO,SAASC,iBAAiBC,KAA+B;EAC9D,MAAM;IAAEC,IAAI;IAAEC,MAAM;IAAEC,MAAM;IAAEC,OAAO;IAAEC,WAAW;IAAEC,YAAY;IAAEC,MAAM;IAAEC;EAAI,CAAE,GAAGR,KAAA;EACnF,MAAM;IAAES,cAAc;IAAEC;EAAe,CAAE,GAAGN,OAAA,CAAQO,MAAM,CAACC,KAAK,CAACC,UAAU;EAE3E,oBACEC,KAAA,CAAClB,MAAA;IAAOmB,SAAA,EAAWjB,SAAA;eAChBY,eAAA,IACCf,qBAAA,CAAsB;MACpBqB,SAAA,EAAWN,eAAA;MACXO,SAAA,EAAWb,OAAA,CAAQa,SAAS;MAC5BC,WAAA,EAAa;QACXjB,IAAA;QACAC,MAAA;QACAC,MAAA;QACAC,OAAA;QACAC,WAAA;QACAC,YAAA;QACAC,MAAA;QACAC;MACF;IACF,I,aACFW,IAAA,CAACtB,gBAAA;MAAkB,GAAGG;QACrBS,cAAA,IACCd,qBAAA,CAAsB;MACpBqB,SAAA,EAAWP,cAAA;MACXQ,SAAA,EAAWb,OAAA,CAAQa,SAAS;MAC5BC,WAAA,EAAa;QACXjB,IAAA;QACAC,MAAA;QACAC,MAAA;QACAC,OAAA;QACAC,WAAA;QACAC,YAAA;QACAC,MAAA;QACAC;MACF;IACF;;AAGR","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","RenderServerComponent","Gutter","ModularDashboard","baseClass","DefaultDashboard","props","i18n","locale","params","payload","permissions","searchParams","server","user","afterDashboard","beforeDashboard","config","admin","components","_jsxs","className","Component","importMap","serverProps","_jsx"],"sources":["../../../../src/views/Dashboard/Default/index.tsx"],"sourcesContent":["import type { AdminViewServerPropsOnly, Locale, ServerProps, User } from 'payload'\n\nimport React from 'react'\n\nimport type { groupNavItems } from '../../../utilities/groupNavItems.js'\n\nimport { RenderServerComponent } from '../../../elements/RenderServerComponent/index.js'\n// eslint-disable-next-line payload/no-imports-from-exports-dir -- Server component must reference exports/client bundle for proper client boundary in prod builds\nimport { Gutter } from '../../../exports/client/index.js'\nimport { ModularDashboard } from './ModularDashboard/index.js'\n\nconst baseClass = 'dashboard'\n\nexport type DashboardViewClientProps = {\n locale: Locale\n}\n\n// Neither DashboardViewClientProps, DashboardViewServerPropsOnly, nor\n// DashboardViewServerProps make much sense. They were created\n// before the modular dashboard existed, and they are tightly coupled to\n// the default layout of collection and global cards. All of their values\n// could have been derived from the req object, and the same likely applies\n// to other views. These types remain only for backward compatibility.\n// It is recommended to use the modular dashboard widgets, which have props\n// that are more agnostic to their content.\n\nexport type DashboardViewServerPropsOnly = {\n globalData: Array<{\n data: { _isLocked: boolean; _lastEditedAt: string; _userEditing: number | string | User }\n lockDuration?: number\n slug: string\n }>\n navGroups?: ReturnType<typeof groupNavItems>\n} & AdminViewServerPropsOnly\n\nexport type DashboardViewServerProps = DashboardViewClientProps & DashboardViewServerPropsOnly\n\nexport function DefaultDashboard(props: DashboardViewServerProps) {\n const { i18n, locale, params, payload, permissions, searchParams, server, user } = props\n const { afterDashboard, beforeDashboard } = payload.config.admin.components\n\n return (\n <Gutter className={baseClass}>\n {beforeDashboard &&\n RenderServerComponent({\n Component: beforeDashboard,\n importMap: payload.importMap,\n serverProps: {\n i18n,\n locale,\n params,\n payload,\n permissions,\n searchParams,\n server,\n user,\n } satisfies ServerProps,\n })}\n <ModularDashboard {...props} />\n {afterDashboard &&\n RenderServerComponent({\n Component: afterDashboard,\n importMap: payload.importMap,\n serverProps: {\n i18n,\n locale,\n params,\n payload,\n permissions,\n searchParams,\n server,\n user,\n } satisfies ServerProps,\n })}\n </Gutter>\n )\n}\n"],"mappings":";AAEA,OAAOA,KAAA,MAAW;AAIlB,SAASC,qBAAqB,QAAQ;AACtC;AACA,SAASC,MAAM,QAAQ;AACvB,SAASC,gBAAgB,QAAQ;AAEjC,MAAMC,SAAA,GAAY;AA0BlB,OAAO,SAASC,iBAAiBC,KAA+B;EAC9D,MAAM;IAAEC,IAAI;IAAEC,MAAM;IAAEC,MAAM;IAAEC,OAAO;IAAEC,WAAW;IAAEC,YAAY;IAAEC,MAAM;IAAEC;EAAI,CAAE,GAAGR,KAAA;EACnF,MAAM;IAAES,cAAc;IAAEC;EAAe,CAAE,GAAGN,OAAA,CAAQO,MAAM,CAACC,KAAK,CAACC,UAAU;EAE3E,oBACEC,KAAA,CAAClB,MAAA;IAAOmB,SAAA,EAAWjB,SAAA;eAChBY,eAAA,IACCf,qBAAA,CAAsB;MACpBqB,SAAA,EAAWN,eAAA;MACXO,SAAA,EAAWb,OAAA,CAAQa,SAAS;MAC5BC,WAAA,EAAa;QACXjB,IAAA;QACAC,MAAA;QACAC,MAAA;QACAC,OAAA;QACAC,WAAA;QACAC,YAAA;QACAC,MAAA;QACAC;MACF;IACF,I,aACFW,IAAA,CAACtB,gBAAA;MAAkB,GAAGG;QACrBS,cAAA,IACCd,qBAAA,CAAsB;MACpBqB,SAAA,EAAWP,cAAA;MACXQ,SAAA,EAAWb,OAAA,CAAQa,SAAS;MAC5BC,WAAA,EAAa;QACXjB,IAAA;QACAC,MAAA;QACAC,MAAA;QACAC,OAAA;QACAC,WAAA;QACAC,YAAA;QACAC,MAAA;QACAC;MACF;IACF;;AAGR","ignoreList":[]}
@@ -1,3 +1,3 @@
1
1
  import type { EditViewComponent, SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload';
2
- export declare const getCustomDocumentViewByKey: (views: SanitizedCollectionConfig["admin"]["components"]["views"] | SanitizedGlobalConfig["admin"]["components"]["views"], customViewKey: string) => EditViewComponent;
2
+ export declare const getCustomDocumentViewByKey: (views: SanitizedCollectionConfig['admin']['components']['views'] | SanitizedGlobalConfig['admin']['components']['views'], customViewKey: string) => EditViewComponent;
3
3
  //# sourceMappingURL=getCustomDocumentViewByKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCustomDocumentViewByKey.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getCustomDocumentViewByKey.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAElG,eAAO,MAAM,0BAA0B,GACrC,OACI,yBAAyB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GACzD,qBAAqB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,EACzD,eAAe,MAAM,KACpB,iBAKF,CAAA"}
1
+ {"version":3,"file":"getCustomDocumentViewByKey.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getCustomDocumentViewByKey.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAElG,eAAO,MAAM,0BAA0B,UAEjC,yBAAyB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GACzD,qBAAqB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,iBAC1C,MAAM,KACpB,iBAKF,CAAA"}
@@ -2,7 +2,7 @@ import type { EditViewComponent, SanitizedCollectionConfig, SanitizedGlobalConfi
2
2
  export declare const getCustomViewByRoute: ({ baseRoute, currentRoute, views, }: {
3
3
  baseRoute: string;
4
4
  currentRoute: string;
5
- views: SanitizedCollectionConfig["admin"]["components"]["views"] | SanitizedGlobalConfig["admin"]["components"]["views"];
5
+ views: SanitizedCollectionConfig['admin']['components']['views'] | SanitizedGlobalConfig['admin']['components']['views'];
6
6
  }) => {
7
7
  Component: EditViewComponent;
8
8
  viewKey?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"getCustomViewByRoute.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getCustomViewByRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAIlG,eAAO,MAAM,oBAAoB,GAAI,qCAIlC;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EACD,yBAAyB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GACzD,qBAAqB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAA;CAC1D,KAAG;IACF,SAAS,EAAE,iBAAiB,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;CAoCjB,CAAA"}
1
+ {"version":3,"file":"getCustomViewByRoute.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getCustomViewByRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAIlG,eAAO,MAAM,oBAAoB,wCAI9B;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EACD,yBAAyB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GACzD,qBAAqB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAA;CAC1D,KAAG;IACF,SAAS,EAAE,iBAAiB,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;CAoCjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDocumentView.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getDocumentView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,6BAA6B,EAC7B,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,MAAM,MAAM,cAAc,CAAC,MAAM,SAAS,MAAM,IAAI;IAClD,SAAS,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;IAC5B,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,4EAM7B;IACD,gBAAgB,CAAC,EAAE,yBAAyB,CAAA;IAC5C,MAAM,EAAE,eAAe,CAAA;IACvB,cAAc,EAAE,6BAA6B,GAAG,yBAAyB,CAAA;IACzE,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,aAAa,EAAE,MAAM,EAAE,CAAA;CACxB,KAAG;IACF,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,IA2VH,CAAA"}
1
+ {"version":3,"file":"getDocumentView.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getDocumentView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,6BAA6B,EAC7B,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,MAAM,MAAM,cAAc,CAAC,MAAM,SAAS,MAAM,IAAI;IAClD,SAAS,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;IAC5B,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAA;AAED,eAAO,MAAM,eAAe,+EAMzB;IACD,gBAAgB,CAAC,EAAE,yBAAyB,CAAA;IAC5C,MAAM,EAAE,eAAe,CAAA;IACvB,cAAc,EAAE,6BAA6B,GAAG,yBAAyB,CAAA;IACzE,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,aAAa,EAAE,MAAM,EAAE,CAAA;CACxB,KAAG;IACF,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,IA2VH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getMetaBySegment.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getMetaBySegment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,EACV,gBAAgB,EAEhB,UAAU,EACV,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAUhB,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;IACjD,gBAAgB,CAAC,EAAE,IAAI,GAAG,yBAAyB,CAAA;IACnD,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,IAAI,GAAG,qBAAqB,CAAA;IAC3C,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAA;CACvF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAU,uEAOpC,oBAAoB,KAAG,OAAO,CAAC,UAAU,CAiI3C,CAAA"}
1
+ {"version":3,"file":"getMetaBySegment.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getMetaBySegment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,EACV,gBAAgB,EAEhB,UAAU,EACV,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAUhB,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;IACjD,gBAAgB,CAAC,EAAE,IAAI,GAAG,yBAAyB,CAAA;IACnD,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,IAAI,GAAG,qBAAqB,CAAA;IAC3C,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAA;CACvF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,0EAO1B,oBAAoB,KAAG,OAAO,CAAC,UAAU,CAiI3C,CAAA"}
@@ -20,5 +20,5 @@ export declare const renderDocument: ({ disableActions, documentSubViewType, dra
20
20
  data: Data;
21
21
  Document: React.ReactNode;
22
22
  }>;
23
- export declare function DocumentView(props: AdminViewServerProps): Promise<React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | (string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>)>;
23
+ export declare function DocumentView(props: AdminViewServerProps): Promise<Iterable<React.ReactNode> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | (string | number | bigint | boolean | Iterable<React.ReactNode> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal)>;
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Document/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,IAAI,EACJ,uBAAuB,EACvB,uBAAuB,EAEvB,iBAAiB,EACjB,gBAAgB,EAChB,gCAAgC,EACjC,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,MAAM,OAAO,CAAA;AA6BzB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,gBAAgB,CAAC,uBAAuB,CAAC,GACzC,KAAK,CAAC,EAAE,GACR,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAA;AAErC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAU,0PAgBlC;IACD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;IACzC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IACvC,QAAQ,CAAC,EAAE,gCAAgC,CAAA;CAC5C,GAAG,oBAAoB,KAAG,OAAO,CAAC;IACjC,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAsZA,CAAA;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE,oBAAoB,+QAuB7D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Document/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,IAAI,EACJ,uBAAuB,EACvB,uBAAuB,EAEvB,iBAAiB,EACjB,gBAAgB,EAChB,gCAAgC,EACjC,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,MAAM,OAAO,CAAA;AA6BzB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,gBAAgB,CAAC,uBAAuB,CAAC,GACzC,KAAK,CAAC,EAAE,GACR,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAA;AAErC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,6PAgBxB;IACD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;IACzC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IACvC,QAAQ,CAAC,EAAE,gCAAgC,CAAA;CAC5C,GAAG,oBAAoB,KAAG,OAAO,CAAC;IACjC,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAsZA,CAAA;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE,oBAAoB,+QAuB7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"recordRecentlyViewed.d.ts","sourceRoot":"","sources":["../../../src/views/Document/recordRecentlyViewed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA6B,MAAM,SAAS,CAAA;AAOxE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAU,8BAIxC;IACD,cAAc,EAAE,MAAM,CAAA;IACtB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,GAAG,EAAE,cAAc,CAAA;CACpB,KAAG,OAAO,CAAC,IAAI,CAmBf,CAAA"}
1
+ {"version":3,"file":"recordRecentlyViewed.d.ts","sourceRoot":"","sources":["../../../src/views/Document/recordRecentlyViewed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA6B,MAAM,SAAS,CAAA;AAOxE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,iCAI9B;IACD,cAAc,EAAE,MAAM,CAAA;IACtB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,GAAG,EAAE,cAAc,CAAA;CACpB,KAAG,OAAO,CAAC,IAAI,CAmBf,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Edit/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAc,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAGlE,OAAO,KAA4D,MAAM,OAAO,CAAA;AAsChF,OAAO,aAAa,CAAA;AAKpB,MAAM,MAAM,aAAa,GAAG;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA;AAKD,wBAAgB,eAAe,CAAC,EAC9B,sBAAsB,EACtB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,WAAW,EAAE,iBAAiB,EAC9B,aAAa,EACb,aAAa,EACb,UAAU,EACV,eAAe,EACf,MAAM,EACN,eAAe,EACf,MAAM,EAAE,YAAY,EACpB,cAAc,EACd,iBAAiB,GAClB,EAAE,uBAAuB,qBAixBzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Edit/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAQ,MAAM,SAAS,CAAA;AAG5D,OAAO,KAA4D,MAAM,OAAO,CAAA;AAsChF,OAAO,aAAa,CAAA;AAKpB,MAAM,MAAM,aAAa,GAAG;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA;AAKD,wBAAgB,eAAe,CAAC,EAC9B,sBAAsB,EACtB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,WAAW,EAAE,iBAAiB,EAC9B,aAAa,EACb,aAAa,EACb,UAAU,EACV,eAAe,EACf,MAAM,EACN,eAAe,EACf,MAAM,EAAE,YAAY,EACpB,cAAc,EACd,iBAAiB,GAClB,EAAE,uBAAuB,qBAixBzB"}