@payloadcms/next 4.0.0-internal.5f0cd13 → 4.0.0-internal.a0ef1b8

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 (698) hide show
  1. package/dist/@types/assets.d.js +2 -0
  2. package/dist/@types/assets.d.js.map +1 -0
  3. package/dist/adapters/handleServerFunctions.d.ts +2 -0
  4. package/dist/adapters/handleServerFunctions.d.ts.map +1 -0
  5. package/dist/adapters/handleServerFunctions.js +6 -0
  6. package/dist/adapters/handleServerFunctions.js.map +1 -0
  7. package/dist/adapters/layout.d.ts +7 -0
  8. package/dist/adapters/layout.d.ts.map +1 -0
  9. package/dist/adapters/layout.js +38 -0
  10. package/dist/adapters/layout.js.map +1 -0
  11. package/dist/adapters/metadata.d.ts.map +1 -0
  12. package/dist/adapters/metadata.js +21 -0
  13. package/dist/adapters/metadata.js.map +1 -0
  14. package/dist/adapters/views.d.ts +16 -0
  15. package/dist/adapters/views.d.ts.map +1 -0
  16. package/dist/adapters/views.js +23 -0
  17. package/dist/adapters/views.js.map +1 -0
  18. package/dist/exports/css.d.ts +3 -0
  19. package/dist/exports/css.d.ts.map +1 -0
  20. package/dist/exports/css.js +3 -0
  21. package/dist/exports/css.js.map +1 -0
  22. package/dist/exports/layouts.d.ts +2 -2
  23. package/dist/exports/layouts.d.ts.map +1 -1
  24. package/dist/exports/layouts.js +2 -2
  25. package/dist/exports/layouts.js.map +1 -1
  26. package/dist/exports/utilities.d.ts +0 -3
  27. package/dist/exports/utilities.d.ts.map +1 -1
  28. package/dist/exports/utilities.js +0 -2
  29. package/dist/exports/utilities.js.map +1 -1
  30. package/dist/exports/views.d.ts +2 -9
  31. package/dist/exports/views.d.ts.map +1 -1
  32. package/dist/exports/views.js +2 -9
  33. package/dist/exports/views.js.map +1 -1
  34. package/dist/prod/styles.css +1 -1
  35. package/package.json +9 -8
  36. package/dist/layouts/Root/NestProviders.d.ts +0 -12
  37. package/dist/layouts/Root/NestProviders.d.ts.map +0 -1
  38. package/dist/layouts/Root/NestProviders.js +0 -24
  39. package/dist/layouts/Root/NestProviders.js.map +0 -1
  40. package/dist/layouts/Root/checkDependencies.d.ts +0 -2
  41. package/dist/layouts/Root/checkDependencies.d.ts.map +0 -1
  42. package/dist/layouts/Root/checkDependencies.js +0 -49
  43. package/dist/layouts/Root/checkDependencies.js.map +0 -1
  44. package/dist/layouts/Root/index.d.ts +0 -34
  45. package/dist/layouts/Root/index.d.ts.map +0 -1
  46. package/dist/layouts/Root/index.js +0 -168
  47. package/dist/layouts/Root/index.js.map +0 -1
  48. package/dist/utilities/getHierarchyAncestry.d.ts +0 -24
  49. package/dist/utilities/getHierarchyAncestry.d.ts.map +0 -1
  50. package/dist/utilities/getHierarchyAncestry.js +0 -103
  51. package/dist/utilities/getHierarchyAncestry.js.map +0 -1
  52. package/dist/utilities/getPayloadHMR.d.ts +0 -11
  53. package/dist/utilities/getPayloadHMR.d.ts.map +0 -1
  54. package/dist/utilities/getPayloadHMR.js +0 -15
  55. package/dist/utilities/getPayloadHMR.js.map +0 -1
  56. package/dist/utilities/getPreferences.d.ts +0 -6
  57. package/dist/utilities/getPreferences.d.ts.map +0 -1
  58. package/dist/utilities/getPreferences.js +0 -26
  59. package/dist/utilities/getPreferences.js.map +0 -1
  60. package/dist/utilities/getRequestHighContrast.d.ts +0 -10
  61. package/dist/utilities/getRequestHighContrast.d.ts.map +0 -1
  62. package/dist/utilities/getRequestHighContrast.js +0 -18
  63. package/dist/utilities/getRequestHighContrast.js.map +0 -1
  64. package/dist/utilities/getRequestLocale.d.ts +0 -7
  65. package/dist/utilities/getRequestLocale.d.ts.map +0 -1
  66. package/dist/utilities/getRequestLocale.js +0 -20
  67. package/dist/utilities/getRequestLocale.js.map +0 -1
  68. package/dist/utilities/getRequestTheme.d.ts +0 -11
  69. package/dist/utilities/getRequestTheme.d.ts.map +0 -1
  70. package/dist/utilities/getRequestTheme.js +0 -22
  71. package/dist/utilities/getRequestTheme.js.map +0 -1
  72. package/dist/utilities/getRouteWithoutAdmin.d.ts +0 -5
  73. package/dist/utilities/getRouteWithoutAdmin.d.ts.map +0 -1
  74. package/dist/utilities/getRouteWithoutAdmin.js +0 -7
  75. package/dist/utilities/getRouteWithoutAdmin.js.map +0 -1
  76. package/dist/utilities/handleAuthRedirect.d.ts +0 -12
  77. package/dist/utilities/handleAuthRedirect.d.ts.map +0 -1
  78. package/dist/utilities/handleAuthRedirect.js +0 -41
  79. package/dist/utilities/handleAuthRedirect.js.map +0 -1
  80. package/dist/utilities/handleServerFunctions.d.ts +0 -3
  81. package/dist/utilities/handleServerFunctions.d.ts.map +0 -1
  82. package/dist/utilities/handleServerFunctions.js +0 -58
  83. package/dist/utilities/handleServerFunctions.js.map +0 -1
  84. package/dist/utilities/initReq.d.ts +0 -14
  85. package/dist/utilities/initReq.d.ts.map +0 -1
  86. package/dist/utilities/initReq.js +0 -112
  87. package/dist/utilities/initReq.js.map +0 -1
  88. package/dist/utilities/isCustomAdminView.d.ts +0 -10
  89. package/dist/utilities/isCustomAdminView.d.ts.map +0 -1
  90. package/dist/utilities/isCustomAdminView.js +0 -31
  91. package/dist/utilities/isCustomAdminView.js.map +0 -1
  92. package/dist/utilities/isCustomAdminView.spec.js +0 -90
  93. package/dist/utilities/isCustomAdminView.spec.js.map +0 -1
  94. package/dist/utilities/isPublicAdminRoute.d.ts +0 -7
  95. package/dist/utilities/isPublicAdminRoute.d.ts.map +0 -1
  96. package/dist/utilities/isPublicAdminRoute.js +0 -25
  97. package/dist/utilities/isPublicAdminRoute.js.map +0 -1
  98. package/dist/utilities/meta.d.ts +0 -6
  99. package/dist/utilities/meta.d.ts.map +0 -1
  100. package/dist/utilities/meta.js +0 -105
  101. package/dist/utilities/meta.js.map +0 -1
  102. package/dist/utilities/meta.spec.js +0 -83
  103. package/dist/utilities/meta.spec.js.map +0 -1
  104. package/dist/utilities/selectiveCache.d.ts +0 -12
  105. package/dist/utilities/selectiveCache.d.ts.map +0 -1
  106. package/dist/utilities/selectiveCache.js +0 -38
  107. package/dist/utilities/selectiveCache.js.map +0 -1
  108. package/dist/utilities/slugify.d.ts +0 -15
  109. package/dist/utilities/slugify.d.ts.map +0 -1
  110. package/dist/utilities/slugify.js +0 -47
  111. package/dist/utilities/slugify.js.map +0 -1
  112. package/dist/utilities/timestamp.d.ts +0 -2
  113. package/dist/utilities/timestamp.d.ts.map +0 -1
  114. package/dist/utilities/timestamp.js +0 -8
  115. package/dist/utilities/timestamp.js.map +0 -1
  116. package/dist/views/API/LocaleSelector/index.d.ts +0 -9
  117. package/dist/views/API/LocaleSelector/index.d.ts.map +0 -1
  118. package/dist/views/API/LocaleSelector/index.js +0 -44
  119. package/dist/views/API/LocaleSelector/index.js.map +0 -1
  120. package/dist/views/API/index.client.d.ts +0 -4
  121. package/dist/views/API/index.client.d.ts.map +0 -1
  122. package/dist/views/API/index.client.js +0 -249
  123. package/dist/views/API/index.client.js.map +0 -1
  124. package/dist/views/API/index.css +0 -205
  125. package/dist/views/API/index.d.ts +0 -4
  126. package/dist/views/API/index.d.ts.map +0 -1
  127. package/dist/views/API/index.js +0 -7
  128. package/dist/views/API/index.js.map +0 -1
  129. package/dist/views/API/metadata.d.ts +0 -6
  130. package/dist/views/API/metadata.d.ts.map +0 -1
  131. package/dist/views/API/metadata.js +0 -29
  132. package/dist/views/API/metadata.js.map +0 -1
  133. package/dist/views/Account/ResetPreferences/index.d.ts +0 -5
  134. package/dist/views/Account/ResetPreferences/index.d.ts.map +0 -1
  135. package/dist/views/Account/ResetPreferences/index.js +0 -110
  136. package/dist/views/Account/ResetPreferences/index.js.map +0 -1
  137. package/dist/views/Account/Settings/LanguageSelector.d.ts +0 -6
  138. package/dist/views/Account/Settings/LanguageSelector.d.ts.map +0 -1
  139. package/dist/views/Account/Settings/LanguageSelector.js +0 -52
  140. package/dist/views/Account/Settings/LanguageSelector.js.map +0 -1
  141. package/dist/views/Account/Settings/index.css +0 -26
  142. package/dist/views/Account/Settings/index.d.ts +0 -13
  143. package/dist/views/Account/Settings/index.d.ts.map +0 -1
  144. package/dist/views/Account/Settings/index.js +0 -34
  145. package/dist/views/Account/Settings/index.js.map +0 -1
  146. package/dist/views/Account/ToggleHighContrast/index.d.ts +0 -3
  147. package/dist/views/Account/ToggleHighContrast/index.d.ts.map +0 -1
  148. package/dist/views/Account/ToggleHighContrast/index.js +0 -45
  149. package/dist/views/Account/ToggleHighContrast/index.js.map +0 -1
  150. package/dist/views/Account/ToggleTheme/index.d.ts +0 -3
  151. package/dist/views/Account/ToggleTheme/index.d.ts.map +0 -1
  152. package/dist/views/Account/ToggleTheme/index.js +0 -60
  153. package/dist/views/Account/ToggleTheme/index.js.map +0 -1
  154. package/dist/views/Account/index.client.d.ts +0 -3
  155. package/dist/views/Account/index.client.d.ts.map +0 -1
  156. package/dist/views/Account/index.client.js +0 -37
  157. package/dist/views/Account/index.client.js.map +0 -1
  158. package/dist/views/Account/index.d.ts +0 -4
  159. package/dist/views/Account/index.d.ts.map +0 -1
  160. package/dist/views/Account/index.js +0 -183
  161. package/dist/views/Account/index.js.map +0 -1
  162. package/dist/views/Account/metadata.d.ts +0 -3
  163. package/dist/views/Account/metadata.d.ts.map +0 -1
  164. package/dist/views/Account/metadata.js +0 -14
  165. package/dist/views/Account/metadata.js.map +0 -1
  166. package/dist/views/CollectionTrash/index.d.ts +0 -18
  167. package/dist/views/CollectionTrash/index.d.ts.map +0 -1
  168. package/dist/views/CollectionTrash/index.js +0 -21
  169. package/dist/views/CollectionTrash/index.js.map +0 -1
  170. package/dist/views/CollectionTrash/metadata.d.ts +0 -7
  171. package/dist/views/CollectionTrash/metadata.d.ts.map +0 -1
  172. package/dist/views/CollectionTrash/metadata.js +0 -25
  173. package/dist/views/CollectionTrash/metadata.js.map +0 -1
  174. package/dist/views/CreateFirstUser/index.client.d.ts +0 -10
  175. package/dist/views/CreateFirstUser/index.client.d.ts.map +0 -1
  176. package/dist/views/CreateFirstUser/index.client.js +0 -119
  177. package/dist/views/CreateFirstUser/index.client.js.map +0 -1
  178. package/dist/views/CreateFirstUser/index.css +0 -69
  179. package/dist/views/CreateFirstUser/index.d.ts +0 -5
  180. package/dist/views/CreateFirstUser/index.d.ts.map +0 -1
  181. package/dist/views/CreateFirstUser/index.js +0 -92
  182. package/dist/views/CreateFirstUser/index.js.map +0 -1
  183. package/dist/views/CreateFirstUser/metadata.d.ts +0 -3
  184. package/dist/views/CreateFirstUser/metadata.d.ts.map +0 -1
  185. package/dist/views/CreateFirstUser/metadata.js +0 -14
  186. package/dist/views/CreateFirstUser/metadata.js.map +0 -1
  187. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts +0 -19
  188. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts.map +0 -1
  189. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js +0 -209
  190. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js.map +0 -1
  191. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts +0 -11
  192. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts.map +0 -1
  193. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js +0 -131
  194. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js.map +0 -1
  195. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts +0 -8
  196. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts.map +0 -1
  197. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js +0 -78
  198. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js.map +0 -1
  199. package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts +0 -22
  200. package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts.map +0 -1
  201. package/dist/views/Dashboard/Default/ModularDashboard/index.client.js +0 -440
  202. package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +0 -1
  203. package/dist/views/Dashboard/Default/ModularDashboard/index.css +0 -299
  204. package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts +0 -5
  205. package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts.map +0 -1
  206. package/dist/views/Dashboard/Default/ModularDashboard/index.js +0 -72
  207. package/dist/views/Dashboard/Default/ModularDashboard/index.js.map +0 -1
  208. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts +0 -15
  209. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts.map +0 -1
  210. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js +0 -106
  211. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js.map +0 -1
  212. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts +0 -12
  213. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts.map +0 -1
  214. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js +0 -65
  215. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js.map +0 -1
  216. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts +0 -21
  217. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts.map +0 -1
  218. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js +0 -80
  219. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js.map +0 -1
  220. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts +0 -21
  221. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts.map +0 -1
  222. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js +0 -188
  223. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js.map +0 -1
  224. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts +0 -7
  225. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts.map +0 -1
  226. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js +0 -38
  227. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js.map +0 -1
  228. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts +0 -4
  229. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts.map +0 -1
  230. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js +0 -21
  231. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js.map +0 -1
  232. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts +0 -4
  233. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts.map +0 -1
  234. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js +0 -10
  235. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js.map +0 -1
  236. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts +0 -23
  237. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts.map +0 -1
  238. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js +0 -103
  239. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js.map +0 -1
  240. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts +0 -2
  241. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts.map +0 -1
  242. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js +0 -269
  243. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js.map +0 -1
  244. package/dist/views/Dashboard/Default/index.d.ts +0 -21
  245. package/dist/views/Dashboard/Default/index.d.ts.map +0 -1
  246. package/dist/views/Dashboard/Default/index.js +0 -55
  247. package/dist/views/Dashboard/Default/index.js.map +0 -1
  248. package/dist/views/Dashboard/index.d.ts +0 -4
  249. package/dist/views/Dashboard/index.d.ts.map +0 -1
  250. package/dist/views/Dashboard/index.js +0 -51
  251. package/dist/views/Dashboard/index.js.map +0 -1
  252. package/dist/views/Dashboard/metadata.d.ts +0 -3
  253. package/dist/views/Dashboard/metadata.d.ts.map +0 -1
  254. package/dist/views/Dashboard/metadata.js +0 -16
  255. package/dist/views/Dashboard/metadata.js.map +0 -1
  256. package/dist/views/Document/getCustomDocumentViewByKey.d.ts +0 -3
  257. package/dist/views/Document/getCustomDocumentViewByKey.d.ts.map +0 -1
  258. package/dist/views/Document/getCustomDocumentViewByKey.js +0 -4
  259. package/dist/views/Document/getCustomDocumentViewByKey.js.map +0 -1
  260. package/dist/views/Document/getCustomViewByRoute.d.ts +0 -10
  261. package/dist/views/Document/getCustomViewByRoute.d.ts.map +0 -1
  262. package/dist/views/Document/getCustomViewByRoute.js +0 -35
  263. package/dist/views/Document/getCustomViewByRoute.js.map +0 -1
  264. package/dist/views/Document/getDocPreferences.d.ts +0 -11
  265. package/dist/views/Document/getDocPreferences.d.ts.map +0 -1
  266. package/dist/views/Document/getDocPreferences.js +0 -45
  267. package/dist/views/Document/getDocPreferences.js.map +0 -1
  268. package/dist/views/Document/getDocumentData.d.ts +0 -14
  269. package/dist/views/Document/getDocumentData.d.ts.map +0 -1
  270. package/dist/views/Document/getDocumentData.js +0 -60
  271. package/dist/views/Document/getDocumentData.js.map +0 -1
  272. package/dist/views/Document/getDocumentPermissions.d.ts +0 -18
  273. package/dist/views/Document/getDocumentPermissions.d.ts.map +0 -1
  274. package/dist/views/Document/getDocumentPermissions.js +0 -124
  275. package/dist/views/Document/getDocumentPermissions.js.map +0 -1
  276. package/dist/views/Document/getDocumentView.d.ts +0 -18
  277. package/dist/views/Document/getDocumentView.d.ts.map +0 -1
  278. package/dist/views/Document/getDocumentView.js +0 -304
  279. package/dist/views/Document/getDocumentView.js.map +0 -1
  280. package/dist/views/Document/getIsLocked.d.ts +0 -16
  281. package/dist/views/Document/getIsLocked.d.ts.map +0 -1
  282. package/dist/views/Document/getIsLocked.js +0 -79
  283. package/dist/views/Document/getIsLocked.js.map +0 -1
  284. package/dist/views/Document/getMetaBySegment.d.ts +0 -11
  285. package/dist/views/Document/getMetaBySegment.d.ts.map +0 -1
  286. package/dist/views/Document/getMetaBySegment.js +0 -150
  287. package/dist/views/Document/getMetaBySegment.js.map +0 -1
  288. package/dist/views/Document/getVersions.d.ts +0 -26
  289. package/dist/views/Document/getVersions.d.ts.map +0 -1
  290. package/dist/views/Document/getVersions.js +0 -230
  291. package/dist/views/Document/getVersions.js.map +0 -1
  292. package/dist/views/Document/handleServerFunction.d.ts +0 -3
  293. package/dist/views/Document/handleServerFunction.d.ts.map +0 -1
  294. package/dist/views/Document/handleServerFunction.js +0 -134
  295. package/dist/views/Document/handleServerFunction.js.map +0 -1
  296. package/dist/views/Document/index.d.ts +0 -25
  297. package/dist/views/Document/index.d.ts.map +0 -1
  298. package/dist/views/Document/index.js +0 -398
  299. package/dist/views/Document/index.js.map +0 -1
  300. package/dist/views/Document/metadata.d.ts +0 -3
  301. package/dist/views/Document/metadata.d.ts.map +0 -1
  302. package/dist/views/Document/metadata.js +0 -3
  303. package/dist/views/Document/metadata.js.map +0 -1
  304. package/dist/views/Document/renderDocumentSlots.d.ts +0 -15
  305. package/dist/views/Document/renderDocumentSlots.d.ts.map +0 -1
  306. package/dist/views/Document/renderDocumentSlots.js +0 -178
  307. package/dist/views/Document/renderDocumentSlots.js.map +0 -1
  308. package/dist/views/Edit/index.d.ts +0 -4
  309. package/dist/views/Edit/index.d.ts.map +0 -1
  310. package/dist/views/Edit/index.js +0 -11
  311. package/dist/views/Edit/index.js.map +0 -1
  312. package/dist/views/Edit/metadata.d.ts +0 -6
  313. package/dist/views/Edit/metadata.d.ts.map +0 -1
  314. package/dist/views/Edit/metadata.js +0 -52
  315. package/dist/views/Edit/metadata.js.map +0 -1
  316. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts +0 -3
  317. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +0 -1
  318. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +0 -181
  319. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +0 -1
  320. package/dist/views/ForgotPassword/index.d.ts +0 -5
  321. package/dist/views/ForgotPassword/index.d.ts.map +0 -1
  322. package/dist/views/ForgotPassword/index.js +0 -72
  323. package/dist/views/ForgotPassword/index.js.map +0 -1
  324. package/dist/views/ForgotPassword/metadata.d.ts +0 -3
  325. package/dist/views/ForgotPassword/metadata.d.ts.map +0 -1
  326. package/dist/views/ForgotPassword/metadata.js +0 -14
  327. package/dist/views/ForgotPassword/metadata.js.map +0 -1
  328. package/dist/views/Hierarchy/index.d.ts +0 -18
  329. package/dist/views/Hierarchy/index.d.ts.map +0 -1
  330. package/dist/views/Hierarchy/index.js +0 -20
  331. package/dist/views/Hierarchy/index.js.map +0 -1
  332. package/dist/views/List/createSerializableValue.d.ts +0 -2
  333. package/dist/views/List/createSerializableValue.d.ts.map +0 -1
  334. package/dist/views/List/createSerializableValue.js +0 -14
  335. package/dist/views/List/createSerializableValue.js.map +0 -1
  336. package/dist/views/List/enrichDocsWithVersionStatus.d.ts +0 -14
  337. package/dist/views/List/enrichDocsWithVersionStatus.d.ts.map +0 -1
  338. package/dist/views/List/enrichDocsWithVersionStatus.js +0 -96
  339. package/dist/views/List/enrichDocsWithVersionStatus.js.map +0 -1
  340. package/dist/views/List/extractRelationshipDisplayValue.d.ts +0 -3
  341. package/dist/views/List/extractRelationshipDisplayValue.d.ts.map +0 -1
  342. package/dist/views/List/extractRelationshipDisplayValue.js +0 -17
  343. package/dist/views/List/extractRelationshipDisplayValue.js.map +0 -1
  344. package/dist/views/List/extractValueOrRelationshipID.d.ts +0 -2
  345. package/dist/views/List/extractValueOrRelationshipID.d.ts.map +0 -1
  346. package/dist/views/List/extractValueOrRelationshipID.js +0 -19
  347. package/dist/views/List/extractValueOrRelationshipID.js.map +0 -1
  348. package/dist/views/List/handleGroupBy.d.ts +0 -24
  349. package/dist/views/List/handleGroupBy.d.ts.map +0 -1
  350. package/dist/views/List/handleGroupBy.js +0 -168
  351. package/dist/views/List/handleGroupBy.js.map +0 -1
  352. package/dist/views/List/handleHierarchy.d.ts +0 -18
  353. package/dist/views/List/handleHierarchy.d.ts.map +0 -1
  354. package/dist/views/List/handleHierarchy.js +0 -259
  355. package/dist/views/List/handleHierarchy.js.map +0 -1
  356. package/dist/views/List/handleServerFunction.d.ts +0 -4
  357. package/dist/views/List/handleServerFunction.d.ts.map +0 -1
  358. package/dist/views/List/handleServerFunction.js +0 -131
  359. package/dist/views/List/handleServerFunction.js.map +0 -1
  360. package/dist/views/List/index.css +0 -3
  361. package/dist/views/List/index.d.ts +0 -43
  362. package/dist/views/List/index.d.ts.map +0 -1
  363. package/dist/views/List/index.js +0 -445
  364. package/dist/views/List/index.js.map +0 -1
  365. package/dist/views/List/metadata.d.ts +0 -7
  366. package/dist/views/List/metadata.d.ts.map +0 -1
  367. package/dist/views/List/metadata.js +0 -24
  368. package/dist/views/List/metadata.js.map +0 -1
  369. package/dist/views/List/renderListViewSlots.d.ts +0 -12
  370. package/dist/views/List/renderListViewSlots.d.ts.map +0 -1
  371. package/dist/views/List/renderListViewSlots.js +0 -81
  372. package/dist/views/List/renderListViewSlots.js.map +0 -1
  373. package/dist/views/List/resolveAllFilterOptions.d.ts +0 -8
  374. package/dist/views/List/resolveAllFilterOptions.d.ts.map +0 -1
  375. package/dist/views/List/resolveAllFilterOptions.js +0 -49
  376. package/dist/views/List/resolveAllFilterOptions.js.map +0 -1
  377. package/dist/views/List/transformColumnsToSelect.d.ts +0 -3
  378. package/dist/views/List/transformColumnsToSelect.d.ts.map +0 -1
  379. package/dist/views/List/transformColumnsToSelect.js +0 -11
  380. package/dist/views/List/transformColumnsToSelect.js.map +0 -1
  381. package/dist/views/Login/LoginField/index.d.ts +0 -9
  382. package/dist/views/Login/LoginField/index.d.ts.map +0 -1
  383. package/dist/views/Login/LoginField/index.js +0 -98
  384. package/dist/views/Login/LoginField/index.js.map +0 -1
  385. package/dist/views/Login/LoginForm/index.css +0 -48
  386. package/dist/views/Login/LoginForm/index.d.ts +0 -11
  387. package/dist/views/Login/LoginForm/index.d.ts.map +0 -1
  388. package/dist/views/Login/LoginForm/index.js +0 -184
  389. package/dist/views/Login/LoginForm/index.js.map +0 -1
  390. package/dist/views/Login/index.css +0 -8
  391. package/dist/views/Login/index.d.ts +0 -6
  392. package/dist/views/Login/index.d.ts.map +0 -1
  393. package/dist/views/Login/index.js +0 -98
  394. package/dist/views/Login/index.js.map +0 -1
  395. package/dist/views/Login/metadata.d.ts +0 -3
  396. package/dist/views/Login/metadata.d.ts.map +0 -1
  397. package/dist/views/Login/metadata.js +0 -14
  398. package/dist/views/Login/metadata.js.map +0 -1
  399. package/dist/views/Logout/LogoutClient.d.ts +0 -18
  400. package/dist/views/Logout/LogoutClient.d.ts.map +0 -1
  401. package/dist/views/Logout/LogoutClient.js +0 -140
  402. package/dist/views/Logout/LogoutClient.js.map +0 -1
  403. package/dist/views/Logout/index.d.ts +0 -8
  404. package/dist/views/Logout/index.d.ts.map +0 -1
  405. package/dist/views/Logout/index.js +0 -36
  406. package/dist/views/Logout/index.js.map +0 -1
  407. package/dist/views/Logout/metadata.d.ts +0 -3
  408. package/dist/views/Logout/metadata.d.ts.map +0 -1
  409. package/dist/views/Logout/metadata.js +0 -13
  410. package/dist/views/Logout/metadata.js.map +0 -1
  411. package/dist/views/NotFound/index.client.d.ts +0 -4
  412. package/dist/views/NotFound/index.client.d.ts.map +0 -1
  413. package/dist/views/NotFound/index.client.js +0 -71
  414. package/dist/views/NotFound/index.client.js.map +0 -1
  415. package/dist/views/NotFound/index.css +0 -47
  416. package/dist/views/NotFound/index.d.ts +0 -21
  417. package/dist/views/NotFound/index.d.ts.map +0 -1
  418. package/dist/views/NotFound/index.js +0 -86
  419. package/dist/views/NotFound/index.js.map +0 -1
  420. package/dist/views/NotFound/metadata.d.ts +0 -8
  421. package/dist/views/NotFound/metadata.d.ts.map +0 -1
  422. package/dist/views/NotFound/metadata.js +0 -11
  423. package/dist/views/NotFound/metadata.js.map +0 -1
  424. package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts +0 -7
  425. package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts.map +0 -1
  426. package/dist/views/ResetPassword/ResetPasswordForm/index.js +0 -117
  427. package/dist/views/ResetPassword/ResetPasswordForm/index.js.map +0 -1
  428. package/dist/views/ResetPassword/index.d.ts +0 -6
  429. package/dist/views/ResetPassword/index.d.ts.map +0 -1
  430. package/dist/views/ResetPassword/index.js +0 -83
  431. package/dist/views/ResetPassword/index.js.map +0 -1
  432. package/dist/views/ResetPassword/metadata.d.ts +0 -3
  433. package/dist/views/ResetPassword/metadata.d.ts.map +0 -1
  434. package/dist/views/ResetPassword/metadata.js +0 -14
  435. package/dist/views/ResetPassword/metadata.js.map +0 -1
  436. package/dist/views/Root/attachViewActions.d.ts +0 -10
  437. package/dist/views/Root/attachViewActions.d.ts.map +0 -1
  438. package/dist/views/Root/attachViewActions.js +0 -27
  439. package/dist/views/Root/attachViewActions.js.map +0 -1
  440. package/dist/views/Root/generateCustomViewMetadata.d.ts +0 -11
  441. package/dist/views/Root/generateCustomViewMetadata.d.ts.map +0 -1
  442. package/dist/views/Root/generateCustomViewMetadata.js +0 -25
  443. package/dist/views/Root/generateCustomViewMetadata.js.map +0 -1
  444. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts +0 -12
  445. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts.map +0 -1
  446. package/dist/views/Root/getCustomCollectionViewByRoute.js +0 -48
  447. package/dist/views/Root/getCustomCollectionViewByRoute.js.map +0 -1
  448. package/dist/views/Root/getCustomCollectionViewByRoute.spec.js +0 -168
  449. package/dist/views/Root/getCustomCollectionViewByRoute.spec.js.map +0 -1
  450. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts +0 -12
  451. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts.map +0 -1
  452. package/dist/views/Root/getCustomGlobalViewByRoute.js +0 -46
  453. package/dist/views/Root/getCustomGlobalViewByRoute.js.map +0 -1
  454. package/dist/views/Root/getCustomViewByKey.d.ts +0 -10
  455. package/dist/views/Root/getCustomViewByKey.d.ts.map +0 -1
  456. package/dist/views/Root/getCustomViewByKey.js +0 -16
  457. package/dist/views/Root/getCustomViewByKey.js.map +0 -1
  458. package/dist/views/Root/getCustomViewByRoute.d.ts +0 -11
  459. package/dist/views/Root/getCustomViewByRoute.d.ts.map +0 -1
  460. package/dist/views/Root/getCustomViewByRoute.js +0 -48
  461. package/dist/views/Root/getCustomViewByRoute.js.map +0 -1
  462. package/dist/views/Root/getDocumentViewInfo.d.ts +0 -6
  463. package/dist/views/Root/getDocumentViewInfo.d.ts.map +0 -1
  464. package/dist/views/Root/getDocumentViewInfo.js +0 -28
  465. package/dist/views/Root/getDocumentViewInfo.js.map +0 -1
  466. package/dist/views/Root/getRouteData.d.ts +0 -45
  467. package/dist/views/Root/getRouteData.d.ts.map +0 -1
  468. package/dist/views/Root/getRouteData.js +0 -349
  469. package/dist/views/Root/getRouteData.js.map +0 -1
  470. package/dist/views/Root/index.d.ts +0 -23
  471. package/dist/views/Root/index.d.ts.map +0 -1
  472. package/dist/views/Root/index.js +0 -297
  473. package/dist/views/Root/index.js.map +0 -1
  474. package/dist/views/Root/isPathMatchingRoute.d.ts +0 -8
  475. package/dist/views/Root/isPathMatchingRoute.d.ts.map +0 -1
  476. package/dist/views/Root/isPathMatchingRoute.js +0 -33
  477. package/dist/views/Root/isPathMatchingRoute.js.map +0 -1
  478. package/dist/views/Root/isPathMatchingRoute.spec.js +0 -178
  479. package/dist/views/Root/isPathMatchingRoute.spec.js.map +0 -1
  480. package/dist/views/Root/metadata.d.ts.map +0 -1
  481. package/dist/views/Root/metadata.js +0 -173
  482. package/dist/views/Root/metadata.js.map +0 -1
  483. package/dist/views/Unauthorized/index.css +0 -44
  484. package/dist/views/Unauthorized/index.d.ts +0 -6
  485. package/dist/views/Unauthorized/index.d.ts.map +0 -1
  486. package/dist/views/Unauthorized/index.js +0 -33
  487. package/dist/views/Unauthorized/index.js.map +0 -1
  488. package/dist/views/Unauthorized/metadata.d.ts +0 -3
  489. package/dist/views/Unauthorized/metadata.d.ts.map +0 -1
  490. package/dist/views/Unauthorized/metadata.js +0 -14
  491. package/dist/views/Unauthorized/metadata.js.map +0 -1
  492. package/dist/views/Verify/index.client.d.ts +0 -7
  493. package/dist/views/Verify/index.client.d.ts.map +0 -1
  494. package/dist/views/Verify/index.client.js +0 -50
  495. package/dist/views/Verify/index.client.js.map +0 -1
  496. package/dist/views/Verify/index.d.ts +0 -6
  497. package/dist/views/Verify/index.d.ts.map +0 -1
  498. package/dist/views/Verify/index.js +0 -72
  499. package/dist/views/Verify/index.js.map +0 -1
  500. package/dist/views/Verify/metadata.d.ts +0 -3
  501. package/dist/views/Verify/metadata.d.ts.map +0 -1
  502. package/dist/views/Verify/metadata.js +0 -14
  503. package/dist/views/Verify/metadata.js.map +0 -1
  504. package/dist/views/Version/Default/SelectedLocalesContext.d.ts +0 -7
  505. package/dist/views/Version/Default/SelectedLocalesContext.d.ts.map +0 -1
  506. package/dist/views/Version/Default/SelectedLocalesContext.js +0 -8
  507. package/dist/views/Version/Default/SelectedLocalesContext.js.map +0 -1
  508. package/dist/views/Version/Default/SetStepNav.d.ts +0 -11
  509. package/dist/views/Version/Default/SetStepNav.d.ts.map +0 -1
  510. package/dist/views/Version/Default/SetStepNav.js +0 -135
  511. package/dist/views/Version/Default/SetStepNav.js.map +0 -1
  512. package/dist/views/Version/Default/index.css +0 -227
  513. package/dist/views/Version/Default/index.d.ts +0 -5
  514. package/dist/views/Version/Default/index.d.ts.map +0 -1
  515. package/dist/views/Version/Default/index.js +0 -255
  516. package/dist/views/Version/Default/index.js.map +0 -1
  517. package/dist/views/Version/Default/types.d.ts +0 -23
  518. package/dist/views/Version/Default/types.d.ts.map +0 -1
  519. package/dist/views/Version/Default/types.js +0 -2
  520. package/dist/views/Version/Default/types.js.map +0 -1
  521. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.css +0 -64
  522. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts +0 -27
  523. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts.map +0 -1
  524. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +0 -136
  525. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js.map +0 -1
  526. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts +0 -12
  527. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +0 -1
  528. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js +0 -80
  529. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js.map +0 -1
  530. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts +0 -31
  531. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +0 -1
  532. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +0 -439
  533. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +0 -1
  534. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.css +0 -97
  535. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts +0 -4
  536. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts.map +0 -1
  537. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js +0 -91
  538. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js.map +0 -1
  539. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts +0 -3
  540. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts.map +0 -1
  541. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +0 -61
  542. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +0 -1
  543. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.css +0 -29
  544. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts +0 -4
  545. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts.map +0 -1
  546. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js +0 -83
  547. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js.map +0 -1
  548. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.css +0 -5
  549. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts +0 -4
  550. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts.map +0 -1
  551. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +0 -66
  552. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +0 -1
  553. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.css +0 -40
  554. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +0 -5
  555. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +0 -1
  556. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -126
  557. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +0 -1
  558. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts +0 -10
  559. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts.map +0 -1
  560. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js +0 -67
  561. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js.map +0 -1
  562. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.css +0 -213
  563. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +0 -21
  564. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
  565. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -238
  566. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +0 -1
  567. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts +0 -3
  568. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts.map +0 -1
  569. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js +0 -17
  570. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js.map +0 -1
  571. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.css +0 -4
  572. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +0 -4
  573. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +0 -1
  574. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +0 -94
  575. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +0 -1
  576. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.css +0 -6
  577. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +0 -4
  578. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +0 -1
  579. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -158
  580. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +0 -1
  581. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.css +0 -4
  582. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +0 -4
  583. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +0 -1
  584. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +0 -109
  585. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +0 -1
  586. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.css +0 -188
  587. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts +0 -33
  588. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts.map +0 -1
  589. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js +0 -262
  590. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js.map +0 -1
  591. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +0 -3
  592. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
  593. package/dist/views/Version/RenderFieldsToDiff/fields/index.js +0 -36
  594. package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +0 -1
  595. package/dist/views/Version/RenderFieldsToDiff/index.css +0 -24
  596. package/dist/views/Version/RenderFieldsToDiff/index.d.ts +0 -3
  597. package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +0 -1
  598. package/dist/views/Version/RenderFieldsToDiff/index.js +0 -13
  599. package/dist/views/Version/RenderFieldsToDiff/index.js.map +0 -1
  600. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts +0 -25
  601. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +0 -1
  602. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +0 -242
  603. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +0 -1
  604. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js +0 -861
  605. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js.map +0 -1
  606. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts +0 -2
  607. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts.map +0 -1
  608. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js +0 -4
  609. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js.map +0 -1
  610. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js +0 -47
  611. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js.map +0 -1
  612. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts +0 -19
  613. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts.map +0 -1
  614. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +0 -45
  615. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +0 -1
  616. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +0 -135
  617. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +0 -1
  618. package/dist/views/Version/Restore/index.css +0 -26
  619. package/dist/views/Version/Restore/index.d.ts +0 -16
  620. package/dist/views/Version/Restore/index.d.ts.map +0 -1
  621. package/dist/views/Version/Restore/index.js +0 -106
  622. package/dist/views/Version/Restore/index.js.map +0 -1
  623. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts +0 -3
  624. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts.map +0 -1
  625. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js +0 -56
  626. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js.map +0 -1
  627. package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts +0 -33
  628. package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts.map +0 -1
  629. package/dist/views/Version/SelectComparison/VersionDrawer/index.js +0 -239
  630. package/dist/views/Version/SelectComparison/VersionDrawer/index.js.map +0 -1
  631. package/dist/views/Version/SelectComparison/index.d.ts +0 -5
  632. package/dist/views/Version/SelectComparison/index.d.ts.map +0 -1
  633. package/dist/views/Version/SelectComparison/index.js +0 -57
  634. package/dist/views/Version/SelectComparison/index.js.map +0 -1
  635. package/dist/views/Version/SelectComparison/types.d.ts +0 -26
  636. package/dist/views/Version/SelectComparison/types.d.ts.map +0 -1
  637. package/dist/views/Version/SelectComparison/types.js +0 -2
  638. package/dist/views/Version/SelectComparison/types.js.map +0 -1
  639. package/dist/views/Version/SelectLocales/index.d.ts +0 -12
  640. package/dist/views/Version/SelectLocales/index.d.ts.map +0 -1
  641. package/dist/views/Version/SelectLocales/index.js +0 -39
  642. package/dist/views/Version/SelectLocales/index.js.map +0 -1
  643. package/dist/views/Version/VersionPillLabel/VersionPillLabel.d.ts +0 -31
  644. package/dist/views/Version/VersionPillLabel/VersionPillLabel.d.ts.map +0 -1
  645. package/dist/views/Version/VersionPillLabel/VersionPillLabel.js +0 -122
  646. package/dist/views/Version/VersionPillLabel/VersionPillLabel.js.map +0 -1
  647. package/dist/views/Version/VersionPillLabel/getVersionLabel.d.ts +0 -37
  648. package/dist/views/Version/VersionPillLabel/getVersionLabel.d.ts.map +0 -1
  649. package/dist/views/Version/VersionPillLabel/getVersionLabel.js +0 -43
  650. package/dist/views/Version/VersionPillLabel/getVersionLabel.js.map +0 -1
  651. package/dist/views/Version/VersionPillLabel/index.css +0 -31
  652. package/dist/views/Version/fetchVersions.d.ts +0 -42
  653. package/dist/views/Version/fetchVersions.d.ts.map +0 -1
  654. package/dist/views/Version/fetchVersions.js +0 -151
  655. package/dist/views/Version/fetchVersions.js.map +0 -1
  656. package/dist/views/Version/index.d.ts +0 -4
  657. package/dist/views/Version/index.d.ts.map +0 -1
  658. package/dist/views/Version/index.js +0 -352
  659. package/dist/views/Version/index.js.map +0 -1
  660. package/dist/views/Version/metadata.d.ts +0 -6
  661. package/dist/views/Version/metadata.d.ts.map +0 -1
  662. package/dist/views/Version/metadata.js +0 -58
  663. package/dist/views/Version/metadata.js.map +0 -1
  664. package/dist/views/Versions/buildColumns.d.ts +0 -16
  665. package/dist/views/Versions/buildColumns.d.ts.map +0 -1
  666. package/dist/views/Versions/buildColumns.js +0 -88
  667. package/dist/views/Versions/buildColumns.js.map +0 -1
  668. package/dist/views/Versions/cells/AutosaveCell/index.css +0 -7
  669. package/dist/views/Versions/cells/AutosaveCell/index.d.ts +0 -21
  670. package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +0 -1
  671. package/dist/views/Versions/cells/AutosaveCell/index.js +0 -45
  672. package/dist/views/Versions/cells/AutosaveCell/index.js.map +0 -1
  673. package/dist/views/Versions/cells/CreatedAt/index.d.ts +0 -13
  674. package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +0 -1
  675. package/dist/views/Versions/cells/CreatedAt/index.js +0 -60
  676. package/dist/views/Versions/cells/CreatedAt/index.js.map +0 -1
  677. package/dist/views/Versions/cells/ID/index.d.ts +0 -5
  678. package/dist/views/Versions/cells/ID/index.d.ts.map +0 -1
  679. package/dist/views/Versions/cells/ID/index.js +0 -12
  680. package/dist/views/Versions/cells/ID/index.js.map +0 -1
  681. package/dist/views/Versions/index.client.d.ts +0 -9
  682. package/dist/views/Versions/index.client.d.ts.map +0 -1
  683. package/dist/views/Versions/index.client.js +0 -73
  684. package/dist/views/Versions/index.client.js.map +0 -1
  685. package/dist/views/Versions/index.css +0 -85
  686. package/dist/views/Versions/index.d.ts +0 -5
  687. package/dist/views/Versions/index.d.ts.map +0 -1
  688. package/dist/views/Versions/index.js +0 -178
  689. package/dist/views/Versions/index.js.map +0 -1
  690. package/dist/views/Versions/metadata.d.ts +0 -6
  691. package/dist/views/Versions/metadata.d.ts.map +0 -1
  692. package/dist/views/Versions/metadata.js +0 -51
  693. package/dist/views/Versions/metadata.js.map +0 -1
  694. package/dist/views/Versions/types.d.ts +0 -17
  695. package/dist/views/Versions/types.d.ts.map +0 -1
  696. package/dist/views/Versions/types.js +0 -2
  697. package/dist/views/Versions/types.js.map +0 -1
  698. /package/dist/{views/Root → adapters}/metadata.d.ts +0 -0
@@ -1,25 +0,0 @@
1
- import { getRouteWithoutAdmin } from './getRouteWithoutAdmin.js';
2
- // Routes that require admin authentication
3
- const publicAdminRoutes = ['createFirstUser', 'forgot', 'login', 'logout', 'forgot', 'inactivity', 'unauthorized', 'reset'];
4
- export const isPublicAdminRoute = ({
5
- adminRoute,
6
- config,
7
- route
8
- }) => {
9
- const isPublicAdminRoute = publicAdminRoutes.some(routeSegment => {
10
- const segment = config.admin?.routes?.[routeSegment] || routeSegment;
11
- const routeWithoutAdmin = getRouteWithoutAdmin({
12
- adminRoute,
13
- route
14
- });
15
- if (routeWithoutAdmin.startsWith(segment)) {
16
- return true;
17
- } else if (routeWithoutAdmin.includes('/verify/')) {
18
- return true;
19
- } else {
20
- return false;
21
- }
22
- });
23
- return isPublicAdminRoute;
24
- };
25
- //# sourceMappingURL=isPublicAdminRoute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isPublicAdminRoute.js","names":["getRouteWithoutAdmin","publicAdminRoutes","isPublicAdminRoute","adminRoute","config","route","some","routeSegment","segment","admin","routes","routeWithoutAdmin","startsWith","includes"],"sources":["../../src/utilities/isPublicAdminRoute.ts"],"sourcesContent":["import type { SanitizedConfig } from 'payload'\n\nimport { getRouteWithoutAdmin } from './getRouteWithoutAdmin.js'\n\n// Routes that require admin authentication\nconst publicAdminRoutes: (keyof Pick<\n SanitizedConfig['admin']['routes'],\n 'createFirstUser' | 'forgot' | 'inactivity' | 'login' | 'logout' | 'reset' | 'unauthorized'\n>)[] = [\n 'createFirstUser',\n 'forgot',\n 'login',\n 'logout',\n 'forgot',\n 'inactivity',\n 'unauthorized',\n 'reset',\n]\n\nexport const isPublicAdminRoute = ({\n adminRoute,\n config,\n route,\n}: {\n adminRoute: string\n config: SanitizedConfig\n route: string\n}): boolean => {\n const isPublicAdminRoute = publicAdminRoutes.some((routeSegment) => {\n const segment = config.admin?.routes?.[routeSegment] || routeSegment\n const routeWithoutAdmin = getRouteWithoutAdmin({ adminRoute, route })\n\n if (routeWithoutAdmin.startsWith(segment)) {\n return true\n } else if (routeWithoutAdmin.includes('/verify/')) {\n return true\n } else {\n return false\n }\n })\n\n return isPublicAdminRoute\n}\n"],"mappings":"AAEA,SAASA,oBAAoB,QAAQ;AAErC;AACA,MAAMC,iBAAA,GAGC,CACL,mBACA,UACA,SACA,UACA,UACA,cACA,gBACA,QACD;AAED,OAAO,MAAMC,kBAAA,GAAqBA,CAAC;EACjCC,UAAU;EACVC,MAAM;EACNC;AAAK,CAKN;EACC,MAAMH,kBAAA,GAAqBD,iBAAA,CAAkBK,IAAI,CAAEC,YAAA;IACjD,MAAMC,OAAA,GAAUJ,MAAA,CAAOK,KAAK,EAAEC,MAAA,GAASH,YAAA,CAAa,IAAIA,YAAA;IACxD,MAAMI,iBAAA,GAAoBX,oBAAA,CAAqB;MAAEG,UAAA;MAAYE;IAAM;IAEnE,IAAIM,iBAAA,CAAkBC,UAAU,CAACJ,OAAA,GAAU;MACzC,OAAO;IACT,OAAO,IAAIG,iBAAA,CAAkBE,QAAQ,CAAC,aAAa;MACjD,OAAO;IACT,OAAO;MACL,OAAO;IACT;EACF;EAEA,OAAOX,kBAAA;AACT","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- import type { Metadata } from 'next';
2
- import type { MetaConfig } from 'payload';
3
- export declare const generateMetadata: (args: {
4
- serverURL: string;
5
- } & MetaConfig) => Promise<Metadata>;
6
- //# sourceMappingURL=meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/utilities/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AAEpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAkDzC,eAAO,MAAM,gBAAgB,GAC3B,MAAM;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU,KACvC,OAAO,CAAC,QAAQ,CAwFlB,CAAA"}
@@ -1,105 +0,0 @@
1
- import { payloadFaviconDark, payloadFaviconLight, staticOGImage } from '@payloadcms/ui/assets';
2
- import * as qs from 'qs-esm';
3
- const appendTitleSuffix = (title, suffix) => {
4
- if (!suffix || !title) {
5
- return title ?? undefined;
6
- }
7
- if (typeof title === 'string') {
8
- return `${title} ${suffix}`;
9
- }
10
- if ('default' in title) {
11
- return {
12
- default: `${title.default} ${suffix}`,
13
- template: `${title.template} ${suffix}`
14
- };
15
- }
16
- if ('template' in title) {
17
- return {
18
- absolute: `${title.absolute} ${suffix}`,
19
- template: title.template !== null ? `${title.template} ${suffix}` : null
20
- };
21
- }
22
- return {
23
- absolute: `${title.absolute} ${suffix}`
24
- };
25
- };
26
- const getTitleString = title => {
27
- if (!title) {
28
- return undefined;
29
- }
30
- if (typeof title === 'string') {
31
- return title;
32
- }
33
- if ('absolute' in title) {
34
- return title.absolute;
35
- }
36
- return title.default;
37
- };
38
- const defaultOpenGraph = {
39
- description: 'Payload is a headless CMS and application framework built with TypeScript, Node.js, and React.',
40
- siteName: 'Payload App',
41
- title: 'Payload App'
42
- };
43
- export const generateMetadata = async args => {
44
- const {
45
- defaultOGImageType,
46
- serverURL,
47
- titleSuffix,
48
- ...rest
49
- } = args;
50
- /**
51
- * @todo find a way to remove the type assertion here.
52
- * It is a result of needing to `DeepCopy` the `MetaConfig` type from Payload.
53
- * This is required for the `DeepRequired` from `Config` to `SanitizedConfig`.
54
- */
55
- const incomingMetadata = rest;
56
- const icons = incomingMetadata.icons || [{
57
- type: 'image/png',
58
- rel: 'icon',
59
- sizes: '32x32',
60
- url: typeof payloadFaviconDark === 'object' ? payloadFaviconDark?.src : payloadFaviconDark
61
- }, {
62
- type: 'image/png',
63
- media: '(prefers-color-scheme: dark)',
64
- rel: 'icon',
65
- sizes: '32x32',
66
- url: typeof payloadFaviconLight === 'object' ? payloadFaviconLight?.src : payloadFaviconLight
67
- }];
68
- const metaTitle = appendTitleSuffix(incomingMetadata.title, titleSuffix);
69
- const titleStringForOg = typeof incomingMetadata.openGraph?.title === 'string' ? incomingMetadata.openGraph.title : getTitleString(incomingMetadata.title);
70
- const ogTitle = [titleStringForOg, titleSuffix].filter(Boolean).join(' ');
71
- const mergedOpenGraph = {
72
- ...(defaultOpenGraph || {}),
73
- ...(defaultOGImageType === 'dynamic' ? {
74
- images: [{
75
- alt: ogTitle,
76
- height: 630,
77
- url: `/api/og${qs.stringify({
78
- description: incomingMetadata.openGraph?.description || defaultOpenGraph.description,
79
- title: ogTitle
80
- }, {
81
- addQueryPrefix: true
82
- })}`,
83
- width: 1200
84
- }]
85
- } : {}),
86
- ...(defaultOGImageType === 'static' ? {
87
- images: [{
88
- alt: ogTitle,
89
- height: 480,
90
- url: typeof staticOGImage === 'object' ? staticOGImage?.src : staticOGImage,
91
- width: 640
92
- }]
93
- } : {}),
94
- title: ogTitle,
95
- ...(incomingMetadata.openGraph || {})
96
- };
97
- return Promise.resolve({
98
- ...incomingMetadata,
99
- icons,
100
- metadataBase: new URL(serverURL || process.env.PAYLOAD_PUBLIC_SERVER_URL || `http://localhost:${process.env.PORT || 3000}`),
101
- openGraph: mergedOpenGraph,
102
- title: metaTitle
103
- });
104
- };
105
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","names":["payloadFaviconDark","payloadFaviconLight","staticOGImage","qs","appendTitleSuffix","title","suffix","undefined","default","template","absolute","getTitleString","defaultOpenGraph","description","siteName","generateMetadata","args","defaultOGImageType","serverURL","titleSuffix","rest","incomingMetadata","icons","type","rel","sizes","url","src","media","metaTitle","titleStringForOg","openGraph","ogTitle","filter","Boolean","join","mergedOpenGraph","images","alt","height","stringify","addQueryPrefix","width","Promise","resolve","metadataBase","URL","process","env","PAYLOAD_PUBLIC_SERVER_URL","PORT"],"sources":["../../src/utilities/meta.ts"],"sourcesContent":["import type { Metadata } from 'next'\nimport type { Icon } from 'next/dist/lib/metadata/types/metadata-types.js'\nimport type { MetaConfig } from 'payload'\n\nimport { payloadFaviconDark, payloadFaviconLight, staticOGImage } from '@payloadcms/ui/assets'\nimport * as qs from 'qs-esm'\n\nconst appendTitleSuffix = (\n title: Metadata['title'],\n suffix: string | undefined,\n): Metadata['title'] => {\n if (!suffix || !title) {\n return title ?? undefined\n }\n if (typeof title === 'string') {\n return `${title} ${suffix}`\n }\n\n if ('default' in title) {\n return { default: `${title.default} ${suffix}`, template: `${title.template} ${suffix}` }\n }\n\n if ('template' in title) {\n return {\n absolute: `${title.absolute} ${suffix}`,\n template: title.template !== null ? `${title.template} ${suffix}` : null,\n }\n }\n\n return { absolute: `${title.absolute} ${suffix}` }\n}\n\nconst getTitleString = (title: Metadata['title']): string | undefined => {\n if (!title) {\n return undefined\n }\n if (typeof title === 'string') {\n return title\n }\n if ('absolute' in title) {\n return title.absolute\n }\n return title.default\n}\n\nconst defaultOpenGraph: Metadata['openGraph'] = {\n description:\n 'Payload is a headless CMS and application framework built with TypeScript, Node.js, and React.',\n siteName: 'Payload App',\n title: 'Payload App',\n}\n\nexport const generateMetadata = async (\n args: { serverURL: string } & MetaConfig,\n): Promise<Metadata> => {\n const { defaultOGImageType, serverURL, titleSuffix, ...rest } = args\n\n /**\n * @todo find a way to remove the type assertion here.\n * It is a result of needing to `DeepCopy` the `MetaConfig` type from Payload.\n * This is required for the `DeepRequired` from `Config` to `SanitizedConfig`.\n */\n const incomingMetadata = rest as Metadata\n\n const icons: Metadata['icons'] =\n incomingMetadata.icons ||\n ([\n {\n type: 'image/png',\n rel: 'icon',\n sizes: '32x32',\n url: typeof payloadFaviconDark === 'object' ? payloadFaviconDark?.src : payloadFaviconDark,\n },\n {\n type: 'image/png',\n media: '(prefers-color-scheme: dark)',\n rel: 'icon',\n sizes: '32x32',\n url:\n typeof payloadFaviconLight === 'object' ? payloadFaviconLight?.src : payloadFaviconLight,\n },\n ] satisfies Array<Icon>)\n\n const metaTitle: Metadata['title'] = appendTitleSuffix(incomingMetadata.title, titleSuffix)\n\n const titleStringForOg: string | undefined =\n typeof incomingMetadata.openGraph?.title === 'string'\n ? incomingMetadata.openGraph.title\n : getTitleString(incomingMetadata.title)\n\n const ogTitle = [titleStringForOg, titleSuffix].filter(Boolean).join(' ')\n\n const mergedOpenGraph: Metadata['openGraph'] = {\n ...(defaultOpenGraph || {}),\n ...(defaultOGImageType === 'dynamic'\n ? {\n images: [\n {\n alt: ogTitle,\n height: 630,\n url: `/api/og${qs.stringify(\n {\n description:\n incomingMetadata.openGraph?.description || defaultOpenGraph.description,\n title: ogTitle,\n },\n {\n addQueryPrefix: true,\n },\n )}`,\n width: 1200,\n },\n ],\n }\n : {}),\n ...(defaultOGImageType === 'static'\n ? {\n images: [\n {\n alt: ogTitle,\n height: 480,\n url: typeof staticOGImage === 'object' ? staticOGImage?.src : staticOGImage,\n width: 640,\n },\n ],\n }\n : {}),\n title: ogTitle,\n ...(incomingMetadata.openGraph || {}),\n }\n\n return Promise.resolve({\n ...incomingMetadata,\n icons,\n metadataBase: new URL(\n serverURL ||\n process.env.PAYLOAD_PUBLIC_SERVER_URL ||\n `http://localhost:${process.env.PORT || 3000}`,\n ),\n openGraph: mergedOpenGraph,\n title: metaTitle,\n })\n}\n"],"mappings":"AAIA,SAASA,kBAAkB,EAAEC,mBAAmB,EAAEC,aAAa,QAAQ;AACvE,YAAYC,EAAA,MAAQ;AAEpB,MAAMC,iBAAA,GAAoBA,CACxBC,KAAA,EACAC,MAAA;EAEA,IAAI,CAACA,MAAA,IAAU,CAACD,KAAA,EAAO;IACrB,OAAOA,KAAA,IAASE,SAAA;EAClB;EACA,IAAI,OAAOF,KAAA,KAAU,UAAU;IAC7B,OAAO,GAAGA,KAAA,IAASC,MAAA,EAAQ;EAC7B;EAEA,IAAI,aAAaD,KAAA,EAAO;IACtB,OAAO;MAAEG,OAAA,EAAS,GAAGH,KAAA,CAAMG,OAAO,IAAIF,MAAA,EAAQ;MAAEG,QAAA,EAAU,GAAGJ,KAAA,CAAMI,QAAQ,IAAIH,MAAA;IAAS;EAC1F;EAEA,IAAI,cAAcD,KAAA,EAAO;IACvB,OAAO;MACLK,QAAA,EAAU,GAAGL,KAAA,CAAMK,QAAQ,IAAIJ,MAAA,EAAQ;MACvCG,QAAA,EAAUJ,KAAA,CAAMI,QAAQ,KAAK,OAAO,GAAGJ,KAAA,CAAMI,QAAQ,IAAIH,MAAA,EAAQ,GAAG;IACtE;EACF;EAEA,OAAO;IAAEI,QAAA,EAAU,GAAGL,KAAA,CAAMK,QAAQ,IAAIJ,MAAA;EAAS;AACnD;AAEA,MAAMK,cAAA,GAAkBN,KAAA;EACtB,IAAI,CAACA,KAAA,EAAO;IACV,OAAOE,SAAA;EACT;EACA,IAAI,OAAOF,KAAA,KAAU,UAAU;IAC7B,OAAOA,KAAA;EACT;EACA,IAAI,cAAcA,KAAA,EAAO;IACvB,OAAOA,KAAA,CAAMK,QAAQ;EACvB;EACA,OAAOL,KAAA,CAAMG,OAAO;AACtB;AAEA,MAAMI,gBAAA,GAA0C;EAC9CC,WAAA,EACE;EACFC,QAAA,EAAU;EACVT,KAAA,EAAO;AACT;AAEA,OAAO,MAAMU,gBAAA,GAAmB,MAC9BC,IAAA;EAEA,MAAM;IAAEC,kBAAkB;IAAEC,SAAS;IAAEC,WAAW;IAAE,GAAGC;EAAA,CAAM,GAAGJ,IAAA;EAEhE;;;;;EAKA,MAAMK,gBAAA,GAAmBD,IAAA;EAEzB,MAAME,KAAA,GACJD,gBAAA,CAAiBC,KAAK,IACrB,CACC;IACEC,IAAA,EAAM;IACNC,GAAA,EAAK;IACLC,KAAA,EAAO;IACPC,GAAA,EAAK,OAAO1B,kBAAA,KAAuB,WAAWA,kBAAA,EAAoB2B,GAAA,GAAM3B;EAC1E,GACA;IACEuB,IAAA,EAAM;IACNK,KAAA,EAAO;IACPJ,GAAA,EAAK;IACLC,KAAA,EAAO;IACPC,GAAA,EACE,OAAOzB,mBAAA,KAAwB,WAAWA,mBAAA,EAAqB0B,GAAA,GAAM1B;EACzE,EACD;EAEH,MAAM4B,SAAA,GAA+BzB,iBAAA,CAAkBiB,gBAAA,CAAiBhB,KAAK,EAAEc,WAAA;EAE/E,MAAMW,gBAAA,GACJ,OAAOT,gBAAA,CAAiBU,SAAS,EAAE1B,KAAA,KAAU,WACzCgB,gBAAA,CAAiBU,SAAS,CAAC1B,KAAK,GAChCM,cAAA,CAAeU,gBAAA,CAAiBhB,KAAK;EAE3C,MAAM2B,OAAA,GAAU,CAACF,gBAAA,EAAkBX,WAAA,CAAY,CAACc,MAAM,CAACC,OAAA,EAASC,IAAI,CAAC;EAErE,MAAMC,eAAA,GAAyC;IAC7C,IAAIxB,gBAAA,IAAoB,CAAC,CAAC;IAC1B,IAAIK,kBAAA,KAAuB,YACvB;MACEoB,MAAA,EAAQ,CACN;QACEC,GAAA,EAAKN,OAAA;QACLO,MAAA,EAAQ;QACRb,GAAA,EAAK,UAAUvB,EAAA,CAAGqC,SAAS,CACzB;UACE3B,WAAA,EACEQ,gBAAA,CAAiBU,SAAS,EAAElB,WAAA,IAAeD,gBAAA,CAAiBC,WAAW;UACzER,KAAA,EAAO2B;QACT,GACA;UACES,cAAA,EAAgB;QAClB,IACC;QACHC,KAAA,EAAO;MACT;IAEJ,IACA,CAAC,CAAC;IACN,IAAIzB,kBAAA,KAAuB,WACvB;MACEoB,MAAA,EAAQ,CACN;QACEC,GAAA,EAAKN,OAAA;QACLO,MAAA,EAAQ;QACRb,GAAA,EAAK,OAAOxB,aAAA,KAAkB,WAAWA,aAAA,EAAeyB,GAAA,GAAMzB,aAAA;QAC9DwC,KAAA,EAAO;MACT;IAEJ,IACA,CAAC,CAAC;IACNrC,KAAA,EAAO2B,OAAA;IACP,IAAIX,gBAAA,CAAiBU,SAAS,IAAI,CAAC,CAAC;EACtC;EAEA,OAAOY,OAAA,CAAQC,OAAO,CAAC;IACrB,GAAGvB,gBAAgB;IACnBC,KAAA;IACAuB,YAAA,EAAc,IAAIC,GAAA,CAChB5B,SAAA,IACE6B,OAAA,CAAQC,GAAG,CAACC,yBAAyB,IACrC,oBAAoBF,OAAA,CAAQC,GAAG,CAACE,IAAI,IAAI,MAAM;IAElDnB,SAAA,EAAWK,eAAA;IACX/B,KAAA,EAAOwB;EACT;AACF","ignoreList":[]}
@@ -1,83 +0,0 @@
1
- import { describe, expect, it } from 'vitest';
2
- import { generateMetadata } from './meta.js';
3
- describe('generateMetadata', () => {
4
- it('should handle a string title with titleSuffix', async () => {
5
- const result = await generateMetadata({
6
- serverURL: 'http://localhost:3000',
7
- title: 'Dashboard',
8
- titleSuffix: '- My CMS'
9
- });
10
- expect(result.title).toBe('Dashboard - My CMS');
11
- });
12
- it('should apply titleSuffix to default and template fields of a TemplateString title object', async () => {
13
- const result = await generateMetadata({
14
- serverURL: 'http://localhost:3000',
15
- title: {
16
- default: 'Dashboard',
17
- template: '%s | Dashboard'
18
- },
19
- titleSuffix: '- My CMS'
20
- });
21
- expect(typeof result.title).toBe('object');
22
- expect(result.title.default).toBe('Dashboard - My CMS');
23
- expect(result.title.template).toBe('%s | Dashboard - My CMS');
24
- });
25
- it('should use the TemplateString default for ogTitle when title is a TemplateString object', async () => {
26
- const result = await generateMetadata({
27
- serverURL: 'http://localhost:3000',
28
- title: {
29
- default: 'My CMS',
30
- template: '%s | My CMS'
31
- },
32
- titleSuffix: '- Payload'
33
- });
34
- // OG title must be a plain string — extract from TemplateString.default and append titleSuffix
35
- expect(result.openGraph?.title).toBe('My CMS - Payload');
36
- });
37
- it('should use the TemplateString absolute for ogTitle when title has absolute property', async () => {
38
- const result = await generateMetadata({
39
- serverURL: 'http://localhost:3000',
40
- title: {
41
- absolute: 'My CMS Absolute'
42
- },
43
- titleSuffix: '- Payload'
44
- });
45
- expect(result.openGraph?.title).toBe('My CMS Absolute - Payload');
46
- });
47
- it('should apply titleSuffix to the absolute field of a TemplateString title object', async () => {
48
- const result = await generateMetadata({
49
- serverURL: 'http://localhost:3000',
50
- title: {
51
- absolute: 'My CMS Absolute'
52
- },
53
- titleSuffix: '- Payload'
54
- });
55
- expect(typeof result.title).toBe('object');
56
- expect(result.title.absolute).toBe('My CMS Absolute - Payload');
57
- });
58
- it('should use openGraph.title string over incomingMetadata.title for ogTitle', async () => {
59
- const result = await generateMetadata({
60
- serverURL: 'http://localhost:3000',
61
- title: 'My CMS',
62
- titleSuffix: '- Payload',
63
- openGraph: {
64
- title: 'Custom OG Title'
65
- }
66
- });
67
- expect(result.openGraph?.title).toBe('Custom OG Title');
68
- });
69
- it('should return undefined for metaTitle when no title and no titleSuffix are set', async () => {
70
- const result = await generateMetadata({
71
- serverURL: 'http://localhost:3000'
72
- });
73
- expect(result.title).toBeUndefined();
74
- });
75
- it('should return just the title when no titleSuffix is set', async () => {
76
- const result = await generateMetadata({
77
- serverURL: 'http://localhost:3000',
78
- title: 'My CMS'
79
- });
80
- expect(result.title).toBe('My CMS');
81
- });
82
- });
83
- //# sourceMappingURL=meta.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.spec.js","names":["describe","expect","it","generateMetadata","result","serverURL","title","titleSuffix","toBe","default","template","openGraph","absolute","toBeUndefined"],"sources":["../../src/utilities/meta.spec.ts"],"sourcesContent":["import { describe, expect, it } from 'vitest'\n\nimport { generateMetadata } from './meta.js'\n\ndescribe('generateMetadata', () => {\n it('should handle a string title with titleSuffix', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: 'Dashboard',\n titleSuffix: '- My CMS',\n })\n\n expect(result.title).toBe('Dashboard - My CMS')\n })\n\n it('should apply titleSuffix to default and template fields of a TemplateString title object', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: { default: 'Dashboard', template: '%s | Dashboard' },\n titleSuffix: '- My CMS',\n })\n\n expect(typeof result.title).toBe('object')\n expect((result.title as { default: string; template: string }).default).toBe(\n 'Dashboard - My CMS',\n )\n expect((result.title as { default: string; template: string }).template).toBe(\n '%s | Dashboard - My CMS',\n )\n })\n\n it('should use the TemplateString default for ogTitle when title is a TemplateString object', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: { default: 'My CMS', template: '%s | My CMS' },\n titleSuffix: '- Payload',\n })\n\n // OG title must be a plain string — extract from TemplateString.default and append titleSuffix\n expect(result.openGraph?.title).toBe('My CMS - Payload')\n })\n\n it('should use the TemplateString absolute for ogTitle when title has absolute property', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: { absolute: 'My CMS Absolute' },\n titleSuffix: '- Payload',\n })\n\n expect(result.openGraph?.title).toBe('My CMS Absolute - Payload')\n })\n\n it('should apply titleSuffix to the absolute field of a TemplateString title object', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: { absolute: 'My CMS Absolute' },\n titleSuffix: '- Payload',\n })\n\n expect(typeof result.title).toBe('object')\n expect((result.title as { absolute: string }).absolute).toBe('My CMS Absolute - Payload')\n })\n\n it('should use openGraph.title string over incomingMetadata.title for ogTitle', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: 'My CMS',\n titleSuffix: '- Payload',\n openGraph: { title: 'Custom OG Title' },\n })\n\n expect(result.openGraph?.title).toBe('Custom OG Title')\n })\n\n it('should return undefined for metaTitle when no title and no titleSuffix are set', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n })\n\n expect(result.title).toBeUndefined()\n })\n\n it('should return just the title when no titleSuffix is set', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: 'My CMS',\n })\n\n expect(result.title).toBe('My CMS')\n })\n})\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ;AAErC,SAASC,gBAAgB,QAAQ;AAEjCH,QAAA,CAAS,oBAAoB;EAC3BE,EAAA,CAAG,iDAAiD;IAClD,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;MACPC,WAAA,EAAa;IACf;IAEAN,MAAA,CAAOG,MAAA,CAAOE,KAAK,EAAEE,IAAI,CAAC;EAC5B;EAEAN,EAAA,CAAG,4FAA4F;IAC7F,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;QAAEG,OAAA,EAAS;QAAaC,QAAA,EAAU;MAAiB;MAC1DH,WAAA,EAAa;IACf;IAEAN,MAAA,CAAO,OAAOG,MAAA,CAAOE,KAAK,EAAEE,IAAI,CAAC;IACjCP,MAAA,CAAOG,MAAC,CAAOE,KAAK,CAA2CG,OAAO,EAAED,IAAI,CAC1E;IAEFP,MAAA,CAAOG,MAAC,CAAOE,KAAK,CAA2CI,QAAQ,EAAEF,IAAI,CAC3E;EAEJ;EAEAN,EAAA,CAAG,2FAA2F;IAC5F,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;QAAEG,OAAA,EAAS;QAAUC,QAAA,EAAU;MAAc;MACpDH,WAAA,EAAa;IACf;IAEA;IACAN,MAAA,CAAOG,MAAA,CAAOO,SAAS,EAAEL,KAAA,EAAOE,IAAI,CAAC;EACvC;EAEAN,EAAA,CAAG,uFAAuF;IACxF,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;QAAEM,QAAA,EAAU;MAAkB;MACrCL,WAAA,EAAa;IACf;IAEAN,MAAA,CAAOG,MAAA,CAAOO,SAAS,EAAEL,KAAA,EAAOE,IAAI,CAAC;EACvC;EAEAN,EAAA,CAAG,mFAAmF;IACpF,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;QAAEM,QAAA,EAAU;MAAkB;MACrCL,WAAA,EAAa;IACf;IAEAN,MAAA,CAAO,OAAOG,MAAA,CAAOE,KAAK,EAAEE,IAAI,CAAC;IACjCP,MAAA,CAAOG,MAAC,CAAOE,KAAK,CAA0BM,QAAQ,EAAEJ,IAAI,CAAC;EAC/D;EAEAN,EAAA,CAAG,6EAA6E;IAC9E,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;MACPC,WAAA,EAAa;MACbI,SAAA,EAAW;QAAEL,KAAA,EAAO;MAAkB;IACxC;IAEAL,MAAA,CAAOG,MAAA,CAAOO,SAAS,EAAEL,KAAA,EAAOE,IAAI,CAAC;EACvC;EAEAN,EAAA,CAAG,kFAAkF;IACnF,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;IACb;IAEAJ,MAAA,CAAOG,MAAA,CAAOE,KAAK,EAAEO,aAAa;EACpC;EAEAX,EAAA,CAAG,2DAA2D;IAC5D,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;IACT;IAEAL,MAAA,CAAOG,MAAA,CAAOE,KAAK,EAAEE,IAAI,CAAC;EAC5B;AACF","ignoreList":[]}
@@ -1,12 +0,0 @@
1
- type CachedValue = object;
2
- /**
3
- * Creates a selective cache function that provides more control over React's request-level caching behavior.
4
- *
5
- * @param namespace - A namespace to group related cached values
6
- * @returns A function that manages cached values within the specified namespace
7
- */
8
- export declare function selectiveCache<TValue extends object = CachedValue>(namespace: string): {
9
- get: (factory: () => Promise<TValue>, ...cacheArgs: any[]) => Promise<TValue>;
10
- };
11
- export {};
12
- //# sourceMappingURL=selectiveCache.d.ts.map
@@ -1 +0,0 @@
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;mBAejD,MAAM,OAAO,CAAC,MAAM,CAAC,0BAAiB,OAAO,CAAC,MAAM,CAAC;EAoBxF"}
@@ -1,38 +0,0 @@
1
- import { cache } from 'react';
2
- // Module-scoped cache container that holds all cached, stable containers
3
- // - these may hold the stable value, or a promise to the stable value
4
- const globalCacheContainer = {};
5
- /**
6
- * Creates a selective cache function that provides more control over React's request-level caching behavior.
7
- *
8
- * @param namespace - A namespace to group related cached values
9
- * @returns A function that manages cached values within the specified namespace
10
- */
11
- export function selectiveCache(namespace) {
12
- // Create a stable namespace container if it doesn't exist
13
- if (!globalCacheContainer[namespace]) {
14
- globalCacheContainer[namespace] = cache((...args) => ({
15
- value: null
16
- }));
17
- }
18
- /**
19
- * Gets or creates a cached value for a specific key within the namespace
20
- *
21
- * @param key - The key to identify the cached value
22
- * @param factory - A function that produces the value if not cached
23
- * @returns The cached or newly created value
24
- */
25
- const getCached = async (factory, ...cacheArgs) => {
26
- const stableObjectFn = globalCacheContainer[namespace];
27
- const stableObject = stableObjectFn(...cacheArgs);
28
- if (stableObject?.value && 'then' in stableObject.value && typeof stableObject.value?.then === 'function') {
29
- return await stableObject.value;
30
- }
31
- stableObject.value = factory();
32
- return await stableObject.value;
33
- };
34
- return {
35
- get: getCached
36
- };
37
- }
38
- //# sourceMappingURL=selectiveCache.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectiveCache.js","names":["cache","globalCacheContainer","selectiveCache","namespace","args","value","getCached","factory","cacheArgs","stableObjectFn","stableObject","then","get"],"sources":["../../src/utilities/selectiveCache.ts"],"sourcesContent":["import { cache } from 'react'\n\ntype CachedValue = object\n\n// Module-scoped cache container that holds all cached, stable containers\n// - these may hold the stable value, or a promise to the stable value\nconst globalCacheContainer: Record<\n string,\n <TValue extends object = CachedValue>(\n ...args: unknown[]\n ) => {\n value: null | Promise<TValue> | TValue\n }\n> = {}\n\n/**\n * Creates a selective cache function that provides more control over React's request-level caching behavior.\n *\n * @param namespace - A namespace to group related cached values\n * @returns A function that manages cached values within the specified namespace\n */\nexport function selectiveCache<TValue extends object = CachedValue>(namespace: string) {\n // Create a stable namespace container if it doesn't exist\n if (!globalCacheContainer[namespace]) {\n globalCacheContainer[namespace] = cache((...args) => ({\n value: null,\n }))\n }\n\n /**\n * Gets or creates a cached value for a specific key within the namespace\n *\n * @param key - The key to identify the cached value\n * @param factory - A function that produces the value if not cached\n * @returns The cached or newly created value\n */\n const getCached = async (factory: () => Promise<TValue>, ...cacheArgs): Promise<TValue> => {\n const stableObjectFn = globalCacheContainer[namespace]\n const stableObject = stableObjectFn<TValue>(...cacheArgs)\n\n if (\n stableObject?.value &&\n 'then' in stableObject.value &&\n typeof stableObject.value?.then === 'function'\n ) {\n return await stableObject.value\n }\n\n stableObject.value = factory()\n\n return await stableObject.value\n }\n\n return {\n get: getCached,\n }\n}\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ;AAItB;AACA;AACA,MAAMC,oBAAA,GAOF,CAAC;AAEL;;;;;;AAMA,OAAO,SAASC,eAAoDC,SAAiB;EACnF;EACA,IAAI,CAACF,oBAAoB,CAACE,SAAA,CAAU,EAAE;IACpCF,oBAAoB,CAACE,SAAA,CAAU,GAAGH,KAAA,CAAM,CAAC,GAAGI,IAAA,MAAU;MACpDC,KAAA,EAAO;IACT;EACF;EAEA;;;;;;;EAOA,MAAMC,SAAA,GAAY,MAAAA,CAAOC,OAAA,EAAgC,GAAGC,SAAA;IAC1D,MAAMC,cAAA,GAAiBR,oBAAoB,CAACE,SAAA,CAAU;IACtD,MAAMO,YAAA,GAAeD,cAAA,IAA0BD,SAAA;IAE/C,IACEE,YAAA,EAAcL,KAAA,IACd,UAAUK,YAAA,CAAaL,KAAK,IAC5B,OAAOK,YAAA,CAAaL,KAAK,EAAEM,IAAA,KAAS,YACpC;MACA,OAAO,MAAMD,YAAA,CAAaL,KAAK;IACjC;IAEAK,YAAA,CAAaL,KAAK,GAAGE,OAAA;IAErB,OAAO,MAAMG,YAAA,CAAaL,KAAK;EACjC;EAEA,OAAO;IACLO,GAAA,EAAKN;EACP;AACF","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- import type { Slugify } from 'payload/shared';
2
- import { type ServerFunction, type SlugifyServerFunctionArgs } from 'payload';
3
- /**
4
- * This server function is directly related to the {@link https://payloadcms.com/docs/fields/text#slug-field | Slug Field}.
5
- * This is a server function that is used to invoke the user's custom slugify function from the client.
6
- * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.
7
- * - Not through props
8
- * - Not from a server function defined within a server component (see below)
9
- * When a server function contains non-serializable data within its closure, it gets passed through the boundary (and breaks).
10
- * The only way to pass server functions to the client (that contain non-serializable data) is if it is globally defined.
11
- * But we also cannot define this function alongside the server component, as we will not have access to their custom slugify function.
12
- * See `ServerFunctionsProvider` for more details.
13
- */
14
- export declare const slugifyHandler: ServerFunction<SlugifyServerFunctionArgs, Promise<ReturnType<Slugify>>>;
15
- //# sourceMappingURL=slugify.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slugify.d.ts","sourceRoot":"","sources":["../../src/utilities/slugify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAE/B,MAAM,SAAS,CAAA;AAGhB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,EAAE,cAAc,CACzC,yBAAyB,EACzB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAiC7B,CAAA"}
@@ -1,47 +0,0 @@
1
- import { flattenAllFields, getFieldByPath, UnauthorizedError } from 'payload';
2
- import { slugify as defaultSlugify } from 'payload/shared';
3
- /**
4
- * This server function is directly related to the {@link https://payloadcms.com/docs/fields/text#slug-field | Slug Field}.
5
- * This is a server function that is used to invoke the user's custom slugify function from the client.
6
- * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.
7
- * - Not through props
8
- * - Not from a server function defined within a server component (see below)
9
- * When a server function contains non-serializable data within its closure, it gets passed through the boundary (and breaks).
10
- * The only way to pass server functions to the client (that contain non-serializable data) is if it is globally defined.
11
- * But we also cannot define this function alongside the server component, as we will not have access to their custom slugify function.
12
- * See `ServerFunctionsProvider` for more details.
13
- */
14
- export const slugifyHandler = async args => {
15
- const {
16
- collectionSlug,
17
- data,
18
- globalSlug,
19
- path,
20
- req,
21
- valueToSlugify
22
- } = args;
23
- if (!req.user) {
24
- throw new UnauthorizedError();
25
- }
26
- const docConfig = collectionSlug ? req.payload.collections[collectionSlug]?.config : globalSlug ? req.payload.config.globals.find(g => g.slug === globalSlug) : null;
27
- if (!docConfig) {
28
- throw new Error();
29
- }
30
- const {
31
- field
32
- } = getFieldByPath({
33
- config: req.payload.config,
34
- fields: flattenAllFields({
35
- fields: docConfig.fields
36
- }),
37
- path
38
- });
39
- const customSlugify = typeof field?.custom?.slugify === 'function' ? field.custom.slugify : undefined;
40
- const result = customSlugify ? await customSlugify({
41
- data,
42
- req,
43
- valueToSlugify
44
- }) : defaultSlugify(valueToSlugify);
45
- return result;
46
- };
47
- //# sourceMappingURL=slugify.js.map
@@ -1 +0,0 @@
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,2 +0,0 @@
1
- export declare const timestamp: (label: string) => void;
2
- //# sourceMappingURL=timestamp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../src/utilities/timestamp.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,SAMtC,CAAA"}
@@ -1,8 +0,0 @@
1
- export const timestamp = label => {
2
- if (!process.env.PAYLOAD_TIME) {
3
- process.env.PAYLOAD_TIME = String(new Date().getTime());
4
- }
5
- const now = new Date();
6
- console.log(`[${now.getTime() - Number(process.env.PAYLOAD_TIME)}ms] ${label}`);
7
- };
8
- //# sourceMappingURL=timestamp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timestamp.js","names":["timestamp","label","process","env","PAYLOAD_TIME","String","Date","getTime","now","console","log","Number"],"sources":["../../src/utilities/timestamp.ts"],"sourcesContent":["export const timestamp = (label: string) => {\n if (!process.env.PAYLOAD_TIME) {\n process.env.PAYLOAD_TIME = String(new Date().getTime())\n }\n const now = new Date()\n console.log(`[${now.getTime() - Number(process.env.PAYLOAD_TIME)}ms] ${label}`)\n}\n"],"mappings":"AAAA,OAAO,MAAMA,SAAA,GAAaC,KAAA;EACxB,IAAI,CAACC,OAAA,CAAQC,GAAG,CAACC,YAAY,EAAE;IAC7BF,OAAA,CAAQC,GAAG,CAACC,YAAY,GAAGC,MAAA,CAAO,IAAIC,IAAA,GAAOC,OAAO;EACtD;EACA,MAAMC,GAAA,GAAM,IAAIF,IAAA;EAChBG,OAAA,CAAQC,GAAG,CAAC,IAAIF,GAAA,CAAID,OAAO,KAAKI,MAAA,CAAOT,OAAA,CAAQC,GAAG,CAACC,YAAY,QAAQH,KAAA,EAAO;AAChF","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export declare const LocaleSelector: React.FC<{
3
- readonly localeOptions: {
4
- label: Record<string, string> | string;
5
- value: string;
6
- }[];
7
- readonly onChange: (value: string) => void;
8
- }>;
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/API/LocaleSelector/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE;QACtB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;QACtC,KAAK,EAAE,MAAM,CAAA;KACd,EAAE,CAAA;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C,CAcA,CAAA"}
@@ -1,44 +0,0 @@
1
- 'use client';
2
-
3
- import { c as _c } from "react/compiler-runtime";
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { SelectField, useTranslation } from '@payloadcms/ui';
6
- import React from 'react';
7
- export const LocaleSelector = t0 => {
8
- const $ = _c(6);
9
- const {
10
- localeOptions,
11
- onChange
12
- } = t0;
13
- const {
14
- t
15
- } = useTranslation();
16
- let t1;
17
- if ($[0] !== localeOptions || $[1] !== onChange || $[2] !== t) {
18
- let t2;
19
- if ($[4] !== onChange) {
20
- t2 = value => onChange(value);
21
- $[4] = onChange;
22
- $[5] = t2;
23
- } else {
24
- t2 = $[5];
25
- }
26
- t1 = _jsx(SelectField, {
27
- field: {
28
- name: "locale",
29
- label: t("general:locale"),
30
- options: localeOptions
31
- },
32
- onChange: t2,
33
- path: "locale"
34
- });
35
- $[0] = localeOptions;
36
- $[1] = onChange;
37
- $[2] = t;
38
- $[3] = t1;
39
- } else {
40
- t1 = $[3];
41
- }
42
- return t1;
43
- };
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["c","_c","SelectField","useTranslation","React","LocaleSelector","t0","$","localeOptions","onChange","t","t1","t2","value","_jsx","field","name","label","options","path"],"sources":["../../../../src/views/API/LocaleSelector/index.tsx"],"sourcesContent":["'use client'\nimport { SelectField, useTranslation } from '@payloadcms/ui'\nimport React from 'react'\n\nexport const LocaleSelector: React.FC<{\n readonly localeOptions: {\n label: Record<string, string> | string\n value: string\n }[]\n readonly onChange: (value: string) => void\n}> = ({ localeOptions, onChange }) => {\n const { t } = useTranslation()\n\n return (\n <SelectField\n field={{\n name: 'locale',\n label: t('general:locale'),\n options: localeOptions,\n }}\n onChange={(value: string) => onChange(value)}\n path=\"locale\"\n />\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AACA,SAASC,WAAW,EAAEC,cAAc,QAAQ;AAC5C,OAAOC,KAAA,MAAW;AAElB,OAAO,MAAMC,cAAA,GAMRC,EAAA;EAAA,MAAAC,CAAA,GAAAN,EAAA;EAAC;IAAAO,aAAA;IAAAC;EAAA,IAAAH,EAA2B;EAC/B;IAAAI;EAAA,IAAcP,cAAA;EAAA,IAAAQ,EAAA;EAAA,IAAAJ,CAAA,QAAAC,aAAA,IAAAD,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAG,CAAA;IAAA,IAAAE,EAAA;IAAA,IAAAL,CAAA,QAAAE,QAAA;MASAG,EAAA,GAAAC,KAAA,IAAmBJ,QAAA,CAASI,KAAA;MAAAN,CAAA,MAAAE,QAAA;MAAAF,CAAA,MAAAK,EAAA;IAAA;MAAAA,EAAA,GAAAL,CAAA;IAAA;IANxCI,EAAA,GAAAG,IAAA,CAAAZ,WAAA;MAAAa,KAAA;QAAAC,IAAA,EAEU;QAAAC,KAAA,EACCP,CAAA,CAAE;QAAAQ,OAAA,EACAV;MAAA;MAAAC,QAAA,EAEDG,EAA4B;MAAAO,IAAA,EACjC;IAAA,C;;;;;;;;SAPPR,E;CAUJ","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- import './index.css';
2
- import * as React from 'react';
3
- export declare const APIViewClient: React.FC;
4
- //# sourceMappingURL=index.client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../../src/views/API/index.client.tsx"],"names":[],"mappings":"AAoBA,OAAO,aAAa,CAAA;AAGpB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAkPjC,CAAA"}